this._D=this._D||{};(function(_){var window=this;
try{
_.t("sy1a0");

_.W("a","block",1,function(a){a=a||{};return(0,_.I)('<svg class="'+(a.ob?_.F("a-s-fa-Ha-pa"):"")+'" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>')});

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("nQy7te");


_.w();

}catch(e){_._DumpException(e)}
try{
_.t("byfTOb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("LEikZe");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sHns9b");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("rJmJrc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("VLKYIb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("WxwHof");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("n7wSQ");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("JMlBJd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("h8Xfyd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("emj");

_.w();

}catch(e){_._DumpException(e)}
try{
var Kub,Nub;Kub=[4,5,6,7];_.AB=function(a){_.K.call(this,a)};_.M(_.AB,_.K);_.AB.prototype.Bb=function(){return _.B(this,1)};_.AB.prototype.Bc=function(a){return _.y(this,1,a)};_.AB.prototype.p$=function(){return _.B(this,2)};_.AB.prototype.Vb="JmcaR";_.Lub=function(a){_.K.call(this,a)};_.M(_.Lub,_.K);_.Lub.prototype.O=function(){return _.Q(this,1)};_.Lub.prototype.Vb="dvhrqe";_.Mub=function(a){_.K.call(this,a)};_.M(_.Mub,_.K);_.Mub.prototype.$o=function(){return _.B(this,2)};
_.Mub.prototype.P1=function(){return _.B(this,3)};Nub=[5];_.Oub=function(a){_.K.call(this,a)};_.M(_.Oub,_.K);_.Oub.prototype.O=function(){return _.Q(this,4)};_.Oub.prototype.setActive=function(a){return _.y(this,4,a)};_.Pub=function(a){_.K.call(this,a,-1,Nub)};_.M(_.Pub,_.K);_.g=_.Pub.prototype;_.g.NZ=function(){return _.B(this,1)};_.g.LT=function(){return _.B(this,3)};_.g.YJ=function(){return _.Pj(this,_.Mub,5)};_.g.Ol=function(){return _.B(this,6)};_.g.Cq=function(){return _.B(this,7)};
_.g.XM=function(){return _.B(this,9)};_.g.Ws=function(){return _.B(this,10)};_.g.HJ=function(){return _.C(this,_.Oub,12)};_.g.Qk=function(){return _.B(this,13)};_.g.Mz=function(){return _.B(this,16)};_.g.wzb=function(){return _.P(this,16)};_.g.Nz=function(){return _.B(this,17)};_.g.Vb="dzR11e";_.Qub=function(a){_.K.call(this,a,-1,Kub)};_.M(_.Qub,_.K);_.Qub.prototype.O=function(){return _.C(this,_.Pub,1)};_.Qub.prototype.hN=function(){return _.C(this,_.AB,8)};
_.Qub.prototype.V=function(){return _.C(this,_.Lub,9)};_.t("sy136");
_.BB=function(a){_.K.call(this,a,-1,Rub)};_.M(_.BB,_.K);_.BB.prototype.getUser=function(){return _.C(this,_.Jk,1)};_.BB.prototype.getMetadata=function(){return _.C(this,_.Qub,3)};_.BB.prototype.vo=function(){return _.P(this,3)};var Rub=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.qc=function(a){_.oi.call(this,_.Ac);this.error=a};_.M(_.qc,_.oi);_.t("sy137");
var vnb;_.xA=function(a){_.K.call(this,a,-1,vnb)};_.M(_.xA,_.K);_.xA.prototype.O=function(){return _.Sd(this,1)};_.yA=function(a,b){return _.Cj(a,1,b)};_.xA.prototype.hn=function(){return _.Sd(this,2)};_.zA=function(a,b){return _.Cj(a,2,b)};_.xA.prototype.ve=function(){return _.C(this,_.tf,3)};_.AA=function(a,b){return _.J(a,3,b)};_.wnb=function(a,b){return _.y(a,5,b)};vnb=[1,2,6,11];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy138");

_.w();

}catch(e){_._DumpException(e)}
try{
_.CB=function(a){return a instanceof _.pc?a:a instanceof _.oc?new _.pc(void 0,a):a instanceof Error?new _.pc(a.message,void 0,a):new _.pc("Not an Error",void 0,Error("sb`"+JSON.stringify(a)))};_.Sub=function(a){return a instanceof Error?_.CB(a).Qg:a instanceof _.pc?a.Qg:a};_.t("sy139");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Tub=function(a,b,c,d,e,f,h){return(0,_.I)(_.Tn("a",b,!1)({fillColor:d,mb:c,color:"#000000",ob:!0,ws:e,size:f,Xd:h},a))};_.t("sy13a");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy13b");
_.DB={FL:"jb",Pga:"kb",pU:"lb",oU:"mb"};_.Uub=new Map([[_.DB.FL,1],[_.DB.Pga,2],[_.DB.pU,2],[_.DB.oU,3]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.nA=function(a){if(Array.isArray(a))return a.map(_.nA).join("");if(_.B(a,2)){if(!a.getId())throw Error("sd");return a.getId()+"/"+_.B(a,2)+","}return""};_.t("sy14l");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy14n");

_.w();

}catch(e){_._DumpException(e)}
try{
_.yyb=function(a){a=parseInt(_.B(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Ayb=function(a,b,c,d){var e=_.Oe.getService(a);a=e.og(a,c);_.zyb(a.H.lk,b,d);e.$f(a)};_.zyb=function(a,b,c){var d=new _.Byb;b.LU&&_.y(d,2,b.LU);b.fG&&0<=b.fG&&_.y(d,1,b.fG);b.quotaType&&_.y(d,3,b.quotaType);_.Cyb(a,d);c&&(b=new _.Dyb,_.y(b,1,c),_.Eyb(a,b))};_.Fyb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.Gyb=function(a,b){return!_.S(a,6,!1)||_.S(b,15,!1)};
_.Cyb=function(a,b){b&&(a=a.Vc(),_.J(a,29,b))};_.Eyb=function(a,b){b&&(a=a.Vc(),_.J(a,38,b))};_.Byb=function(a){_.K.call(this,a)};_.M(_.Byb,_.K);_.Dyb=function(a){_.K.call(this,a)};_.M(_.Dyb,_.K);_.Dyb.prototype.Ph=function(){return _.B(this,1)};_.t("sy16r");
_.Iyb=function(a,b,c){var d=_.E(a.get(_.BDa),1,""),e=_.yyb(b);d=new _.fj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.kj(_.pj(_.pj(_.pj(_.pj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.Hyb(a,e,c)),-1!=parseInt(String(_.C(b,_.ey,2)),10)?"upgrade":"")};
_.Hyb=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};
_.Jyb=function(a,b,c){if(!b)return"g1_widget_unknown";a=Number(_.B(b,3));return c?isNaN(a)?"g1_settings":100<=a?"g1_settings_oos":90<=a?"g1_settings_ninety":80<=a?"g1_settings_eighty":70<=a?"g1_settings_seventy":"g1_settings_normal":isNaN(a)?"g1_widget_unknown":100<=a?"g1_widget_oos":90<=a?"g1_widget_ninety":80<=a?"g1_widget_eighty":70<=a?"g1_widget_seventy":"g1_widget_normal"};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy171");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/

_.w();

}catch(e){_._DumpException(e)}
try{
var mzb;_.lzb=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};mzb=function(a){var b=_.paa(_.LEa,function(c){return a==c});if(void 0===b)throw Error("qb`"+a);return b};_.nzb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.LEa[a.name]):(this.code=a=a.code,this.name=mzb(a));_.ea.call(this,_.lzb("%s %s",this.name,b))};_.Rf(_.nzb,_.ea);var ozb=function(a,b){_.oi.call(this,a.type,b)};
_.Rf(ozb,_.oi);_.t("sy172");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.pzb=function(){_.xi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.u)(this.r0,this);this.H.onprogress=(0,_.u)(this.r0,this);this.H.onload=(0,_.u)(this.r0,this);this.H.onabort=(0,_.u)(this.r0,this);this.H.onerror=(0,_.u)(this.r0,this);this.H.onloadend=(0,_.u)(this.r0,this)};_.Rf(_.pzb,_.xi);_.g=_.pzb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.nzb(a,"aborting read");}};_.g.Wj=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.nzb(this.H.error,"reading file")};_.g.r0=function(a){this.dispatchEvent(new ozb(a,this))};_.g.Ya=function(){_.pzb.wb.Ya.call(this);delete this.H};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy18h");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy18i");
_.YC=function(a){_.K.call(this,a)};_.M(_.YC,_.K);_.YC.prototype.ha=function(){return _.Aj(this,1)};_.YC.prototype.V=function(){return _.Aj(this,2)};_.YC.prototype.O=function(){return _.Aj(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy197");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy198");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy19c");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy19d");

_.w();

}catch(e){_._DumpException(e)}
try{
_.rtb=function(a){_.K.call(this,a)};_.M(_.rtb,_.K);_.rtb.prototype.O=function(){return _.B(this,1)};_.rtb.prototype.Bb=function(){return _.B(this,2)};_.rtb.prototype.Bc=function(a){return _.y(this,2,a)};_.rtb.prototype.V=function(){return _.B(this,3)};_.t("sy19b");
_.ttb=function(a){_.K.call(this,a,-1,stb)};_.M(_.ttb,_.K);_.ttb.prototype.O=function(){return _.Sd(this,1)};var stb=[1];
_.vtb=function(a){_.K.call(this,a,-1,utb)};_.M(_.vtb,_.K);_.vtb.prototype.O=function(){return _.Pj(this,_.rtb,1)};var utb=[1];
_.xtb=function(a){_.K.call(this,a,-1,wtb)};_.M(_.xtb,_.K);_.xtb.prototype.O=function(){return _.Pj(this,_.vtb,1)};var wtb=[1];
_.ytb=function(a){_.K.call(this,a)};_.M(_.ytb,_.K);_.ytb.prototype.V=function(){return _.C(this,_.xtb,1)};_.ytb.prototype.O=function(){return _.C(this,_.ttb,2)};
_.qB=function(a){_.K.call(this,a,-1,ztb)};_.M(_.qB,_.K);_.g=_.qB.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.wd=function(){return _.Pj(this,_.cl,2)};_.g.Tw=function(a){return _.Jj(this,2,a)};_.g.qh=function(a,b){return _.Rj(this,2,a,_.cl,b)};_.g.Vj=function(){return _.B(this,3)};_.g.kl=function(){return _.S(this,5,!0)};_.g.e6=function(){return _.C(this,_.ytb,7)};_.g.bsa=function(){return _.Q(this,8)};_.g.Yf=function(){return _.B(this,17)};
_.g.vP=function(a){return _.y(this,17,a)};_.g.Xe=function(){return _.B(this,12)};_.g.Fi=function(a){return _.y(this,12,a)};_.g.Un=function(){return _.B(this,15)};_.g.hka=function(){return _.Sd(this,18)};var ztb=[2,14,18];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy19e");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy19g");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ah");
_.CD=function(a){_.K.call(this,a)};_.M(_.CD,_.K);_.CD.prototype.getKey=function(){return _.C(this,_.Sb,1)};_.CD.prototype.ht=function(){return _.P(this,1)};_.CD.prototype.ve=function(){return _.C(this,_.tf,2)};
_.DD=function(a){_.K.call(this,a)};_.M(_.DD,_.K);_.DD.prototype.ve=function(){return _.C(this,_.tf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ai");
_.BD=function(a){_.K.call(this,a,-1,qDb)};_.M(_.BD,_.K);_.BD.prototype.ve=function(){return _.C(this,_.tf,1)};var qDb=[3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1aq");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.YD=function(a,b,c){_.O.call(this);this.Fn=null!=c?(0,_.u)(a,c):a;this.ka=b;this.Lg=(0,_.u)(this.q9a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.Rf(_.YD,_.O);_.g=_.YD.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.Pf()+this.ka:this.H=_.zi(this.Lg,this.ka)};_.g.stop=function(){this.H&&(_.Ai(this.H),this.H=null);this.W=null;this.O=!1;this.ha=[]};_.g.pause=function(){++this.V};
_.g.resume=function(){this.V&&(--this.V,!this.V&&this.O&&(this.O=!1,this.Fn.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.YD.wb.Ya.call(this)};_.g.q9a=function(){this.H&&(_.Ai(this.H),this.H=null);this.W?(this.H=_.zi(this.Lg,this.W-_.Pf()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Fn.apply(null,this.ha))};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d7");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d6");
_.lG=function(a){_.K.call(this,a)};_.M(_.lG,_.K);_.lG.prototype.getName=function(){return _.B(this,1)};_.lG.prototype.$c=function(a){return _.y(this,1,a)};_.lG.prototype.ve=function(){return _.C(this,_.tf,2)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d9");
_.mG=function(a){_.K.call(this,a)};_.M(_.mG,_.K);_.g=_.mG.prototype;_.g.zi=function(){return _.B(this,1)};_.g.ti=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.tf,3)};_.g.Ip=function(){return _.B(this,4)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1da");
var XVb;_.nG=function(a){_.K.call(this,a,-1,XVb)};_.M(_.nG,_.K);_.nG.prototype.O=function(){return _.Sd(this,1)};_.nG.prototype.hn=function(){return _.Sd(this,2)};_.YVb=function(a,b){return _.Cj(a,2,b)};_.nG.prototype.ve=function(){return _.C(this,_.tf,3)};_.ZVb=function(a,b){return _.J(a,3,b)};XVb=[1,2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.oG=function(a){_.K.call(this,a)};_.M(_.oG,_.K);_.g=_.oG.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,5)};_.g.Id=function(a){return _.y(this,5,a)};_.g.jt=function(){return _.P(this,5)};_.t("sy1db");
_.pG=function(a){_.K.call(this,a,-1,$Vb)};_.M(_.pG,_.K);_.pG.prototype.hn=function(){return _.Sd(this,1)};_.aWb=function(a,b){return _.Cj(a,1,b)};_.pG.prototype.ve=function(){return _.C(this,_.tf,2)};var $Vb=[1,3];

_.w();

}catch(e){_._DumpException(e)}
try{
_.qG=function(a,b){return _.y(a,4,b)};_.bWb=function(a,b){_.y(a,11,b)};_.cWb=function(a,b){return _.y(a,25,b)};_.t("sy1dc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1d8");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1na");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1df");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dg");
_.xG=function(a){_.K.call(this,a)};_.M(_.xG,_.K);_.xG.prototype.Ac=function(){return _.B(this,1)};_.$Wb=function(a){var b=new _.xG;return _.y(b,1,a)};_.xG.prototype.zi=function(){return _.B(this,2)};_.xG.prototype.ti=function(a){return _.y(this,2,a)};_.xG.prototype.ve=function(){return _.C(this,_.tf,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1dh");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1h1");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1il");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ncc=function(a,b){return _.Mcc()?(new _.n.Intl.Collator([a||"en-CA"],b||{})).compare:function(c,d){return c.localeCompare(d)}};_.Mcc=function(){var a=_.n.Intl;return!(!a||!a.Collator)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1jb");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.YH=function(a,b,c,d){this.ha=a;this.W=b;this.H=this.V=a;this.ka=c||0;this.ma=d||2};_.YH.prototype.O=0;_.YH.prototype.reset=function(){this.H=this.V=this.ha;this.O=0};_.YH.prototype.Za=function(){return this.V};_.ZH=function(a){a.H=Math.min(a.W,a.H*a.ma);a.V=Math.min(a.W,a.H+(a.ka?Math.round(a.ka*(Math.random()-.5)*2*a.H):0));a.O++};

_.w();

}catch(e){_._DumpException(e)}
try{
_.Occ=function(a,b,c){_.cj(a.url,function(d){d=d.target;d.tv()?b(d.Cl()):c(d.Bb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.Pcc=function(a,b,c,d){return _.E(a,1).split("/").pop()==d?(d=_.B(a,2),Array.isArray(d)?new b(d):c(_.pb(a.Za()))):null};_.t("sy1j2");
_.Rcc=function(a){_.K.call(this,a,-1,Qcc)};_.M(_.Rcc,_.K);var Qcc=[2];
_.Scc=function(a){_.K.call(this,a)};_.M(_.Scc,_.K);var Tcc=function(){var a=new _.Scc,b=document.documentElement.getAttribute("lang");return _.y(a,5,b)};_.Scc.prototype.Ki=function(){return _.B(this,7)};
_.Ucc=function(a){_.K.call(this,a)};_.M(_.Ucc,_.K);
var Vcc;_.$H=function(a){_.K.call(this,a,31,Vcc)};_.M(_.$H,_.K);_.aI=function(a,b){return _.y(a,8,b)};Vcc=[3,20,27];
var Xcc=function(a){_.K.call(this,a,17,Wcc)};_.M(Xcc,_.K);var Ycc=function(a){var b=Date.now().toString();return _.y(a,4,b)},Zcc=function(a,b){return _.Jj(a,3,b)},$cc=function(a,b){return _.y(a,14,b)},Wcc=[3,5];
var bdc=function(a){_.K.call(this,a,6,adc)};_.M(bdc,_.K);var adc=[5];
var cdc=function(a){_.K.call(this,a)};_.M(cdc,_.K);
var ddc=new _.xk(175237375,cdc);
_.bI=function(a,b,c,d,e,f,h,k,l,p,q){_.xi.call(this);var r=this;this.Ka="";this.O=[];this.Hc="";this.Gb=this.Nb=this.ha=!1;this.Sc=this.rb=-1;this.Rb=!1;this.Fa=this.V=null;this.va=0;this.le=1;this.timeoutMillis=0;this.kb=!1;_.xi.call(this);this.Uc=a;this.oc=b||_.Nf;this.ka=new Xcc;this.Ed=d;this.Ab=q;this.ne=_.Bb(_.bja,0,1);this.Ba=e||null;this.Ha=c||null;this.Ta=h||!1;this.$a=l||null;this.Bd=null;this.withCredentials=!k;this.zc=f||!1;this.Rd=!this.zc&&(_.vj.Kn&&_.Eb(65)||_.vj.Iu&&_.Eb(45)||_.vj.Wx&&
_.Eb(12)||_.Vg()&&0<=_.lg(_.Cia(),12))&&!!_.rf()&&!!_.rf().navigator&&!!_.rf().navigator.sendBeacon;a=_.y(new _.Ucc,1,1);f||(f=Tcc(),_.J(a,11,f));_.J(this.ka,1,a);_.y(this.ka,2,this.Uc);this.ma=new _.YH(1E4,3E5,.1);this.H=new _.yi(this.ma.Za());this.Ma(this.H);_.Be(this.H,"tick",_.qga(edc(this,p)),!1,this);this.Qa=new _.yi(6E5);this.Ma(this.Qa);_.Be(this.Qa,"tick",_.qga(edc(this,p)),!1,this);this.Ta||this.Qa.start();this.zc||(_.Be(_.rf(),"beforeunload",this.ta,!1,this),_.Be(_.rf(),"unload",this.ta,
!1,this),_.Be(document,"visibilitychange",function(){"hidden"===document.visibilityState&&r.ta()}),_.Be(document,"pagehide",this.ta,!1,this))};_.M(_.bI,_.xi);var edc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.bI.prototype.Ya=function(){this.ta();_.xi.prototype.Ya.call(this)};var fdc=function(a){a.Ba||(a.Ba=.01>a.ne()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ba};
_.bI.prototype.W=function(a){a instanceof _.$H?this.log(a):(a=_.aI(new _.$H,a.Jc()),this.log(a))};_.gdc=function(a,b){b?(a.V||(a.V=new _.Rcc),b=b.Jc(),_.y(a.V,4,b)):a.V&&_.Dj(a.V,4)};_.hdc=function(a){a.Nb=a.Rd};_.idc=function(a,b){a.ma=new _.YH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Za())};
_.bI.prototype.log=function(a){a=a.clone();var b=this.le++;_.y(a,21,b);this.Ka&&_.y(a,26,this.Ka);if(!_.B(a,1)){b=a;var c=Date.now().toString();_.y(b,1,c)}_.P(a,15)||_.y(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.J(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.va;this.O.push(a);this.dispatchEvent(new jdc(a));this.Ta||this.H.enabled||this.H.start()};
_.bI.prototype.flush=function(a,b){var c=this;if(0===this.O.length)a&&a();else if(this.kb)kdc(this);else{var d=Date.now();if(this.Sc>d&&this.rb<d)b&&b("throttled");else{var e=$cc(Zcc(Ycc(this.ka.clone()),this.O),this.va);d={};var f=this.oc();f&&(d.Authorization=f);var h=fdc(this);this.Ha&&(d["X-Goog-AuthUser"]=this.Ha,h=_.Xi(h,"authuser",this.Ha));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Xi(h,"pageId",this.$a));if(f&&this.Hc===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.va=0,this.ha)a&&a();else{var k=e.Jc(),l;this.Fa&&this.Fa.lu(k.length)&&(l=this.Fa.R7b(k));var p={url:h,body:k,clb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(z){c.ma.reset();c.H.setInterval(c.ma.Za());if(z){var A=null;try{var D=JSON.parse(z.replace(")]}'\n",""));A=new bdc(D)}catch(G){}A&&(z=Number(_.Pma(A,1,"-1")),0<z&&(c.rb=Date.now(),c.Sc=c.rb+z),A=_.rb(A,ddc))&&(A=_.Uj(A,1,-1),-1!=A&&(c.Rb||_.idc(c,A)))}a&&a()},r=
function(z){var A=_.Pj(e,_.$H,3);_.ZH(c.ma);c.H.setInterval(c.ma.Za());401===z&&f&&(c.Hc=f);if(500<=z&&600>z||401===z||0===z)c.O=A.concat(c.O),c.Ta||c.H.enabled||c.H.start();b&&b("net-send-failed",z)},v=function(){c.Ab?c.Ab.send(p,q,r):c.Ed(p,q,r)};l?l.then(function(z){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=z;p.clb=2;v()},function(){v()}):v()}}}};_.bI.prototype.ta=function(){this.ha||(this.Nb&&kdc(this),this.Gb&&ldc(this),this.flush())};
var kdc=function(a){mdc(a,32,10,function(b,c){b=_.Xi(b,"format","json");b=_.rf().navigator.sendBeacon(b,c.Jc());a.kb&&!b&&(a.kb=!1);return b})},ldc=function(a){mdc(a,6,5,function(b,c){b=_.Vi(b,"format","base64json","p",_.wj(c.Jc(),3));_.Eg(new Image,b);return!0})},mdc=function(a,b,c,d){if(0!==a.O.length){var e=_.Tla(fdc(a),"format");e=_.Vi(e,"auth",a.oc(),"authuser",a.Ha||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Zcc(Ycc(a.ka.clone()),h);0===f&&$cc(k,a.va);if(!d(e,k))break;a.O=
a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.va=0}},jdc=function(){_.oi.call(this,"event-logged",void 0)};_.M(jdc,_.oi);

_.w();

}catch(e){_._DumpException(e)}
try{
var ndc=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=p=0}function b(r){for(var v=h,z=0;64>z;z+=4)v[z/4]=r[z]<<24|r[z+1]<<16|r[z+2]<<8|r[z+3];for(z=16;80>z;z++)r=v[z-3]^v[z-8]^v[z-14]^v[z-16],v[z]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],D=e[2],G=e[3],H=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var L=G^A&(D^G);var N=1518500249}else L=A^D^G,N=1859775393;else 60>z?(L=A&D|G&(A|D),N=2400959708):(L=A^D^G,N=3395469782);L=((r<<5|r>>>27)&4294967295)+
L+H+N+v[z]&4294967295;H=G;G=D;D=(A<<30|A>>>2)&4294967295;A=r;r=L}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+D&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+H&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var z=[],A=0,D=r.length;A<D;++A)z.push(r.charCodeAt(A));r=z}v||(v=r.length);z=0;if(0==p)for(;z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64;for(;z<v;)if(f[p++]=r[z++],q++,64==p)for(p=0,b(f);z+64<v;)b(r.slice(z,z+64)),z+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var z=63;56<=z;z--)f[z]=v&255,v>>>=8;b(f);for(z=v=0;5>z;z++)for(var A=24;0<=A;A-=8)r[v++]=e[z]>>A&255;return r}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var p,q;a();return{reset:a,update:c,digest:d,digestString:function(){for(var r=d(),v="",z=0;z<r.length;z++)v+="0123456789ABCDEF".charAt(Math.floor(r[z]/16))+"0123456789ABCDEF".charAt(r[z]%16);return v}}};_.t("sy1j9");
var odc=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("Ne`"+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==
c&&"devtools"!==c)throw Error("Oe`"+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
var qdc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,pdc(odc(d),a,c||null)].join(" "):null},pdc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ia(d,function(k){e.push(k)}),rdc(e.join(" "));var f=[],h=[];_.Ia(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.pa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ia(d,function(k){e.push(k)});a=rdc(e.join(" "));a=[c,a];_.pa(h)||a.push(h.join(""));return a.join("_")},rdc=function(a){var b=
ndc();b.update(a);return b.digestString().toLowerCase()};
var sdc={};
var tdc,vdc;tdc=function(a){return!!sdc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.udc=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;tdc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.UPa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");tdc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};vdc=function(a,b,c,d){(a=_.n[a])||(a=(new _.UPa(document)).get(b));return a?qdc(a,c,d):null};
_.wdc=function(a,b){b=void 0===b?!1:b;var c=odc(String(_.n.location.href)),d=[];if(_.udc(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.n.__SAPISID:_.n.__APISID;e||(e=new _.UPa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?qdc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&tdc(b)&&((b=vdc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=vdc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.cI=function(a,b){a.H=b;a.ka=0};_.dI=function(a,b){return _.y(a,b,_.mb([]))};_.t("sy1jc");
_.eI=function(a,b,c,d,e,f,h){_.bI.call(this,a,_.wdc,b,_.Occ,c,d,e,void 0,f,h)};_.M(_.eI,_.bI);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1k5");
_.xdc=function(a){_.K.call(this,a)};_.M(_.xdc,_.K);_.g=_.xdc.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.P(this,1)};_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Si=function(){return _.Dj(this,2)};_.g.lh=function(){return _.P(this,2)};
_.fI=function(a){_.K.call(this,a,-1,ydc)};_.M(_.fI,_.K);_.fI.prototype.Rz=function(){return _.B(this,1)};_.fI.prototype.getUrl=function(){return _.B(this,3)};var ydc=[2,4,6];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1k6");
_.zdc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.Adc=_.Za(_.zdc);

_.w();

}catch(e){_._DumpException(e)}
try{
_.Bdc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.t("sy1me");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Cdc=function(){this.blockSize=-1};

_.w();

}catch(e){_._DumpException(e)}
try{
_.gI=function(a,b){a.V.remove(b);return a};_.hI=function(){return"goog_"+_.uia++};_.Ddc=function(a,b,c,d,e,f){var h=new _.fj(null,void 0);a&&_.gj(h,a);b&&_.jma(h,b);c&&_.hj(h,c);d&&_.ij(h,d);e&&h.Gi(e);f&&_.jj(h,f);return h};_.iI=function(a){return new _.Sh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{f9:!0,value:p}:{f9:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Sja(h,_.Bb(e,f,!0),_.Bb(e,f,!1));else b(d)})};
_.jI=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new _.Cq(c,e,d-c,a-e)}return null};_.kI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.kI.prototype.clone=function(){return new _.kI(this.start,this.end)};_.lI=function(a){return a.end-a.start};_.t("sy1mi");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.mI=function(a,b,c){_.O.call(this);this.Fn=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.M(_.mI,_.O);_.g=_.mI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:Edc(this)};_.g.stop=function(){this.H&&(_.Ai(this.H),this.H=null,this.O=!1,this.W=null)};_.g.pause=function(){this.V++};_.g.resume=function(){this.V--;this.V||!this.O||this.H||(this.O=!1,Edc(this))};_.g.Ya=function(){_.O.prototype.Ya.call(this);this.stop()};
var Edc=function(a){a.H=_.zi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,Edc(a))},a.ha);var b=a.W;a.W=null;a.Fn.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var Fdc,Idc;Fdc=[3,42];_.Gdc=function(a){_.K.call(this,a,-1,Fdc)};_.M(_.Gdc,_.K);_.Gdc.prototype.getMimeType=function(){return _.B(this,27)};_.Hdc=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};Idc=function(a,b){if(b&&a in b)return a;var c=_.HFa();return c?(c=c.toLowerCase(),a=c+_.xia(a),void 0===b||a in b?a:null):null};_.t("sy1mj");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Jdc=function(a){_.oi.call(this,"visibilitychange");this.hidden=a};_.M(Jdc,_.oi);
_.Kdc=function(a){_.xi.call(this);this.hd=a||_.lh();if(this.Fz=this.Jrb())this.H=_.Be(this.hd.Ub(),this.Fz,(0,_.u)(this.d$a,this))};_.Rf(_.Kdc,_.xi);_.g=_.Kdc.prototype;_.g.Jrb=_.jda(function(){var a=this.lu(),b="hidden"!=this.Uza();if(a){var c;b?c=((_.HFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.Uza=_.jda(function(){return Idc("hidden",this.hd.Ub())});_.g.qtb=_.jda(function(){return Idc("visibilityState",this.hd.Ub())});_.g.lu=function(){return!!this.Uza()};
_.g.BB=function(){return!!this.hd.Ub()[this.Uza()]};_.g.d$a=function(){var a=this.lu()?this.hd.Ub()[this.qtb()]:null;a=new Jdc(this.BB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.vi(this.H);_.Kdc.wb.Ya.call(this)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1mk");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.nI=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.Rf(_.nI,_.Cdc);_.nI.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.V=this.O=0};
var Ldc=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.H[0];c=a.H[1];e=a.H[2];var f=a.H[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>
15);h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.H[2]=a.H[2]+e&4294967295;a.H[3]=a.H[3]+f&4294967295};
_.nI.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.W,e=this.O,f=0;f<b;){if(0==e)for(;f<=c;)Ldc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Ldc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Ldc(this,d);e=0;break}}this.O=e;this.V+=b};
_.nI.prototype.digest=function(){var a=Array((56>this.O?this.blockSize:2*this.blockSize)-this.O);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.V;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.H[b]>>>d&255;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var Mdc;Mdc=[2];_.oI=function(a){_.K.call(this,a,-1,Mdc)};_.M(_.oI,_.K);_.oI.prototype.Bb=function(){return _.B(this,1)};_.oI.prototype.Bc=function(a){return _.y(this,1,a)};_.oI.prototype.cVa=function(){return _.Pj(this,_.n7a,2)};_.oI.prototype.Vj=function(){return _.B(this,3)};_.t("sy1ne");
var Ndc;_.pI=function(a){_.K.call(this,a,-1,Ndc)};_.M(_.pI,_.K);_.pI.prototype.O=function(){return _.Sd(this,1)};_.pI.prototype.ve=function(){return _.C(this,_.tf,2)};_.Odc=function(a,b){return _.J(a,2,b)};_.pI.prototype.zi=function(){return _.Uj(this,3,20)};_.pI.prototype.ti=function(a){return _.y(this,3,a)};_.Pdc=function(a,b){return _.y(a,4,b)};Ndc=[1];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nr");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Qdc=function(a){_.O.call(this);this.O=a;this.H={};this.O.yO((0,_.u)(this.V,this))};_.Rf(_.Qdc,_.O);_.Sdc=function(a,b){if(-1!=b.indexOf(":"))throw Error("Pe`"+b);if(b in a.H)throw Error("Qe`"+b);var c=new Rdc(a,b);return a.H[b]=c};_.Qdc.prototype.V=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.H&&(c=this.H[c])&&c.O&&c.O(a,b)}};_.Qdc.prototype.Ya=function(){_.La(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var Rdc=function(a,b){_.O.call(this);this.Ng=a;this.H=b};_.Rf(Rdc,_.O);_.g=Rdc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Ng.O.registerService(this.H+":"+a,(0,_.u)(this.mTa,this,b),c)};_.g.yO=function(a){this.O=(0,_.u)(this.mTa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Re");this.Ng.O.send(this.H+":"+a,b)};_.g.mTa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Ng=this.Ng.H[this.H]=null};

_.w();

}catch(e){_._DumpException(e)}
try{
var Tdc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.hga);try{delete a[_.hga]}catch(b){}},qI=function(a){var b=[],c=[],d={},e=function(f,h){var k=h+"  ";try{if(void 0===f)b.push("undefined");else if(null===f)b.push("NULL");else if("string"===typeof f)b.push('"'+f.replace(/\n/g,"\n"+h)+'"');else if("function"===typeof f)b.push(String(f).replace(/\n/g,"\n"+h));else if(_.Ba(f)){f[_.hga]||c.push(f);var l=_.Ca(f);if(d[l])b.push("*** reference loop detected (id="+l+") ***");else{d[l]=
!0;b.push("{");for(var p in f)"function"!==typeof f[p]&&(b.push("\n"),b.push(k),b.push(p+" = "),e(f[p],k));b.push("\n"+h+"}");delete d[l]}}else b.push(f)}catch(q){b.push("*** "+q+" ***")}};e(a,"");for(a=0;a<c.length;a++)Tdc(c[a]);return b.join("")};_.t("sy1ns");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Udc,tI,Wdc,Vdc;_.sI=function(a,b,c){if("number"===typeof a)var d={name:Vdc(a)};else d=a,a=Wdc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ea.call(this,b)};_.Rf(_.sI,_.ea);_.sI.prototype.getName=function(){return this.O.name||""};tI={Rib:1,aib:2,NOT_FOUND_ERR:3,k8a:4,p8a:5,cib:6,Mib:7,ABORT_ERR:8,pib:9,$5b:10,TIMEOUT_ERR:11,mib:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Xdc=(_.n.rI||_.n.tL||tI).Rib;_.Ydc=(_.n.rI||_.n.tL||tI).aib;_.Zdc=(_.n.rI||_.n.tL||tI).NOT_FOUND_ERR;
_.$dc=(_.n.rI||_.n.tL||tI).k8a;_.aec=(_.n.rI||_.n.tL||tI).p8a;_.bec=(_.n.rI||_.n.tL||tI).cib;_.cec=(_.n.rI||_.n.tL||tI).Mib;_.dec=(_.n.rI||_.n.tL||tI).ABORT_ERR;_.eec=(_.n.rI||_.n.tL||tI).pib;_.fec=(_.n.rI||_.n.tL||tI).TIMEOUT_ERR;_.gec=(_.n.rI||_.n.tL||tI).mib;_.hec=(_.n.DOMException||tI).INVALID_ACCESS_ERR;_.iec=(_.n.DOMException||tI).INVALID_STATE_ERR;
Wdc=function(a){switch(a){case "UnknownError":return _.Xdc;case "NotFoundError":return _.Zdc;case "ConstraintError":return _.$dc;case "DataError":return _.aec;case "TransactionInactiveError":return _.cec;case "AbortError":return _.dec;case "ReadOnlyError":return _.eec;case "TimeoutError":return _.fec;case "QuotaExceededError":return _.gec;case "InvalidAccessError":return _.hec;case "InvalidStateError":return _.iec;default:return _.Xdc}};
Vdc=function(a){switch(a){case _.Xdc:return"UnknownError";case _.Zdc:return"NotFoundError";case _.$dc:return"ConstraintError";case _.aec:return"DataError";case _.cec:return"TransactionInactiveError";case _.dec:return"AbortError";case _.eec:return"ReadOnlyError";case _.fec:return"TimeoutError";case _.gec:return"QuotaExceededError";case _.hec:return"InvalidAccessError";case _.iec:return"InvalidStateError";default:return"UnknownError"}};
_.uI=function(a,b){return"error"in a?new _.sI(a.error,b):new _.sI({name:"UnknownError"},b)};_.vI=function(a,b){if("name"in a)return b=b+": "+a.message,new _.sI(a,b);if("code"in a){var c=Vdc(a.code);b=b+": "+a.message;return new _.sI({name:c},b)}return new _.sI({name:"UnknownError"},b)};
_.jec=function(a){this.H=a};_.kec=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.jec.prototype.range=function(){return this.H};
var lec=function(a){this.H=a};lec.prototype.getName=function(){return this.H.name};var mec=function(a,b,c,d){var e=new _.$h;try{var f=a.H[b](d)}catch(h){return c+=" with key "+qI(d),e.Hd(_.vI(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+qI(d);e.Hd(_.uI(h.target,c))};return e};lec.prototype.get=function(a){return mec(this,"get","getting from index "+this.getName(),a)};
lec.prototype.getKey=function(a){return mec(this,"getKey","getting key from index "+this.getName(),a)};lec.prototype.getAll=function(a,b){return _.nec(this,"getAll","getting all from index "+this.getName(),a,b)};
_.nec=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.jec?d.range():(new _.jec(_.kec.only(d))).range();var h=new _.$h;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?qI(f):"<all>"),h.Hd(_.vI(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?qI(f):"<all>");h.Hd(_.uI(l.target,c))};return h};
var oec=function(a){this.H=a};oec.prototype.getName=function(){return this.H.name};var pec=function(a,b,c,d,e){var f=new _.$h;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=qI(d),e&&(c+=", with key "+qI(e)),f.Hd(_.vI(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=qI(d);e&&(c+=", with key "+qI(e));f.Hd(_.uI(k.target,c))};return f};_.g=oec.prototype;_.g.put=function(a,b){return pec(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return pec(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.$h;try{var c=this.H["delete"](a instanceof _.jec?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+qI(a),b.Hd(_.vI(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+qI(a);b.Hd(_.uI(e.target,f))};return b};
_.g.get=function(a){var b=new _.$h;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+qI(a),b.Hd(_.vI(e,c)),b}c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){var f="getting from "+d.getName()+" with key "+qI(a);b.Hd(_.uI(e.target,f))};return b};_.g.getAll=function(a,b){return qec(this,"getting all from index "+this.getName(),a,b)};
var qec=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.jec?c.range():(new _.jec(_.kec.only(c))).range();var f=new _.$h;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?qI(e):"<all>"),f.Hd(_.vI(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?qI(e):"<all>");f.Hd(_.uI(k.target,b))};return f};
oec.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.$h;try{var c=this.H.clear()}catch(d){return b.Hd(_.vI(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Hd(_.uI(d.target,a))};return b};oec.prototype.getIndex=function(a){try{return new lec(this.H.index(a))}catch(b){throw _.vI(b,"getting index "+a);}};
oec.prototype.count=function(a){var b=new _.$h;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Hd(_.uI(e.target,d.getName()))}}catch(e){b.Hd(_.vI(e,this.getName()))}return b};
var rec=function(a,b){_.xi.call(this);this.H=a;this.O=b;this.Cb=new _.Me(this);this.Cb.listen(this.H,"complete",(0,_.u)(this.dispatchEvent,this,"complete"));this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.e$a)};_.Rf(rec,_.xi);_.g=rec.prototype;_.g.e$a=function(a){a.target instanceof _.sI?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.uI(a.target,"in transaction")})};_.g.Zg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new oec(this.H.objectStore(a))}catch(b){throw _.vI(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.vI(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.$h;_.Se(this,"complete",(0,_.u)(a.callback,a));var b=_.Se(this,"abort",function(){_.vi(c);a.Hd(new _.sI(_.dec,"waiting for transaction to complete"))});var c=_.Se(this,"error",function(e){_.vi(b);a.Hd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){rec.wb.Ya.call(this);this.Cb.dispose()};
var sec=function(a){_.xi.call(this);this.H=a;this.Cb=new _.Me(this);this.Cb.listen(this.H,"abort",(0,_.u)(this.dispatchEvent,this,"abort"));this.Cb.listen(this.H,"error",this.f$a);this.Cb.listen(this.H,"versionchange",this.Xob);this.Cb.listen(this.H,"close",(0,_.u)(this.dispatchEvent,this,"close"))};_.Rf(sec,_.xi);_.g=sec.prototype;_.g.lsa=!0;_.g.f$a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Xob=function(a){this.dispatchEvent(new tec(a.oldVersion,a.newVersion))};_.g.close=function(){this.lsa&&(this.H.close(),this.lsa=!1)};_.g.Cg=function(){return this.lsa};_.g.getName=function(){return this.H.name};_.g.Ai=function(){return Number(this.H.version)};_.uec=function(a,b,c){try{return new oec(a.H.createObjectStore(b,c))}catch(d){throw _.vI(d,"creating object store "+b);}};
_.vec=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new rec(d,a)}catch(e){throw _.vI(e,"creating transaction");}};sec.prototype.Ya=function(){sec.wb.Ya.call(this);this.Cb.dispose()};var tec=function(a,b){_.oi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.Rf(tec,_.oi);
_.wec=function(){void 0==Udc&&(Udc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Udc};
_.xec=function(a,b,c,d){var e=new _.$h;b=b?_.wec().open(a,b):_.wec().open(a);b.onsuccess=function(f){f=new sec(f.target.result);e.callback(f)};b.onerror=function(f){e.Hd(_.uI(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new sec(f.target.result);c(new tec(f.oldVersion,f.newVersion),h,new rec(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new tec(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.yec=function(a,b){this.ka=a;this.va=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.Occ;this.H=""};_.t("sy1nt");
_.yec.prototype.build=function(){var a=new _.bI(this.ka,this.Ka?this.Ka:_.wdc,this.va,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Fa){var b=this.Fa;_.B(b,1)||_.y(b,1,1);_.J(a.ka,1,b)}if(this.O){b=this.O;var c=_.C(a.ka,_.Ucc,1),d=_.C(c,_.Scc,11);d||(d=new _.Scc);_.y(d,7,b);_.J(c,11,d);_.B(c,1)||_.y(c,1,1);_.J(a.ka,1,c)}this.ha&&(a.Fa=this.ha);this.H&&(a.Ka=this.H);this.Ba&&_.gdc(a,this.Ba);this.Qa&&(b=this.Qa,a.V||(a.V=new _.Rcc),_.Cj(a.V,2,b));this.Ha&&(b=this.Ha,
a.Rb=!0,_.idc(a,b));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.zec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.t("sy1nu");
_.Aec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.Aec.prototype.xA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.aI(new _.$H,a.Jc());b(a);return new _.Sh(function(d){c(d,function(){d()})}.bind(this))};
_.Bec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.hdc(this.O)};_.Bec.prototype.xA=function(a){var b=this.H?this.H.W.bind(this.H):this.O.log.bind(this.O),c=this.H?this.H.flush.bind(this.H):this.O.flush.bind(this.O);a=_.aI(new _.$H,a.Jc());b(a);c()};

_.w();

}catch(e){_._DumpException(e)}
try{
var Cec=function(a){_.K.call(this,a)};_.M(Cec,_.K);Cec.prototype.getEmail=function(){return _.E(this,3,"")};Cec.prototype.jp=function(){return _.P(this,3)};_.wI=function(a){return _.C(a,Cec,36,1)};_.t("sy1ng");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nf");
_.xI=function(a){_.K.call(this,a)};_.M(_.xI,_.K);_.xI.prototype.ve=function(){return _.C(this,_.tf,1)};_.yI=function(a,b){return _.J(a,1,b)};_.xI.prototype.Hg=function(){return _.B(this,4)};_.xI.prototype.Foa=function(a){return _.y(this,4,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1ni");

_.w();

}catch(e){_._DumpException(e)}
try{
var Dec=function(a){_.K.call(this,a)},Iec;_.M(Dec,_.K);var Eec=function(a){_.K.call(this,a)};_.M(Eec,_.K);_.zI=function(a){_.K.call(this,a)};_.M(_.zI,_.K);_.zI.prototype.J4=function(a){_.y(this,3,a)};_.zI.prototype.Ll=function(a){return _.J(this,5,a)};_.zI.prototype.getMimeType=function(){return _.B(this,7)};var Fec=[2],Gec=function(a){_.K.call(this,a,-1,Fec)};_.M(Gec,_.K);var Hec=function(a){_.K.call(this,a)};_.M(Hec,_.K);Iec=function(a){this.H=a};_.Jec=function(a){this.jd=a};
_.Jec.prototype.getId=function(){return this.jd};var Kec=function(a){_.K.call(this,a)};_.M(Kec,_.K);Kec.prototype.Ai=function(){return _.B(this,1)};var Lec=function(a){_.K.call(this,a)};_.M(Lec,_.K);
var Nec=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.XAa.length;a++){var b=_.XAa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;Mec(this,b);break}}},Mec=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
Nec.prototype.xA=function(a){if(this.ha&&this.O){var b=_.C(a,_.Ob,2)||new _.Ob,c=_.C(a,_.Zo,5)||new _.Zo,d=_.C(a,_.zI,3)||new _.zI;a=_.Pj(a,_.Wya,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Jc(),session_info:b.Jc(),session_invariants:c.Jc(),client_info:d.Jc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.t("sy1nk");
var Oec=function(){_.So.call(this)};_.M(Oec,_.So);Oec.prototype.sv=function(){return 1==_.B(_.C(this.H,Dec,7),1)};var Pec=new _.Oo("high_frequency_builder");
var Qec=function(a,b,c){a=new _.yi(a);c.Ma(a);var d=new _.Me(c);c.Ma(d);d.listen(a,"tick",b);a.start()};
var Rec=function(){_.So.call(this)};_.M(Rec,_.So);var Sec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.Co;var e=new _.vya;e=_.y(e,1,d);_.J(b,1,e);_.y(b,3,1);_.J(a.H,8,b);_.y(a.H,12,c);_.y(a.H,13,c);_.y(a.H,4,d);_.y(a.H,3,c)}else 1==b&&(b=new _.Co,e=new _.wya,d=_.y(e,1,d),_.J(b,2,d),_.y(b,3,2),_.J(a.H,8,b),_.y(a.H,12,c),_.y(a.H,3,c));return a},Tec=new _.Oo("system_builder");
var Uec=function(a,b){_.O.call(this);this.O=a;this.H=new _.Kdc(b);this.Ma(this.H);this.Cb=new _.Me(this);this.Ma(this.Cb);this.H.lu()&&this.Cb.listen(this.H,"visibilitychange",this.V)};_.M(Uec,_.O);Uec.prototype.V=function(){if(this.O.yP()){var a=this.H.BB()?102001:102E3;a=this.O.OF(a,0);this.O.Qp(a)}};
var Vec=function(a,b,c){c=void 0===c?!1:c;_.O.call(this);this.H=a;this.O=b;this.Ma(this.O);this.W=c;this.V=null};_.M(Vec,_.O);_.g=Vec.prototype;_.g.Qp=function(a){var b=this.H;_.y(a.H,6,b.W);a=a.build();b.H.add(a);b.V=!0;b=this.O;3<=b.H.H.$b()&&b.O.oe();return new Iec(a)};_.g.OF=function(a,b){a=Sec(Wec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.JL=function(){return this.H.O};
_.g.kw=function(a){var b=this.H,c=_.To(a,Tec),d=b.ha++,e=_.C(_.C(c.H,_.Co,8),_.wya,2),f=1E3*Date.now();_.y(e,2,f);_.y(c.H,13,d);b.ka.remove(_.B(a.H,12))};_.g.OZ=function(){var a=this.O;if(!a.ha||a.H.V){var b=Xec(a.H,691).build();b=Yec(a.H,[b]);a.ka.xA(b)}a.W();this.H.ma=!1;this.V&&(_.aa(this.V),this.V=null)};_.g.PZ=function(){var a=this.H,b=Xec(a,716);Zec(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new Uec(this))};_.g.lja=function(){this.O.W();return _.iI(Array.from(this.O.V)).then()};
_.g.yP=function(){var a=this.H;return a.va&&a.ma&&!0};
var $ec=function(a,b,c,d,e){_.O.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.mI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.M($ec,_.O);$ec.prototype.initialize=function(){Qec(this.ma,this.O.oe,this.O);Qec(36E5,this.va,this)};$ec.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=afc(this.H),c=this.ta.xA(b);c&&(_.Zh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
$ec.prototype.va=function(){var a=this.H,b=Xec(a,1153).build();a.H.add(b);this.O.oe()};
var bfc=function(a){_.O.call(this);this.H=a;this.Ma(this.H)};_.M(bfc,_.O);_.g=bfc.prototype;_.g.Qp=function(a){a=this.H.Qp(a);this.lja();return a};_.g.OF=function(a,b){return this.H.OF(a,b)};_.g.JL=function(){return this.H.JL()};_.g.kw=function(a){return this.H.kw(a)};_.g.OZ=function(){return this.H.OZ()};_.g.PZ=function(){return this.H.PZ()};_.g.lja=function(){return this.H.lja()};_.g.yP=function(){return this.H.yP()};
var cfc=function(){};cfc.prototype.MQ=function(){return new Oec};
var dfc=function(){this.H=[]};dfc.prototype.add=function(a){this.H.push(a)};dfc.prototype.$b=function(){return this.H.length};
var efc=function(){this.H={}};efc.prototype.add=function(a){var b=_.B(a.H,12);this.H[b]=a};efc.prototype.remove=function(a){delete this.H[a]};
var ffc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new efc;this.H=new dfc;this.ma=this.va=this.V=!1},Wec=function(a,b){a=_.To((new _.So).initialize(new _.Wya,a.Ba),Tec);_.y(a.H,10,b);return a},afc=function(a){var b=a.H,c=b.H;b.H=[];return Yec(a,c)},Yec=function(a,b){var c=new _.lAa;var d=a.O.W.clone();c=_.J(c,2,d);d=a.O;(d=d.O?d.O.clone():null)&&_.J(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.C(b[h],_.Mo,5);if(k&&_.C(k,_.Gdc,1)){k=_.C(k,_.Gdc,1);_.P(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.C(k,Eec,20);if(void 0!==k&&void 0===f){f=new Lec;var l=_.Q(k,2);void 0!==l&&_.y(f,2,l);k=_.Q(k,1);void 0!==k&&_.y(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?d.H.clone():null;if(void 0!==e||void 0!==f)d||(d=new _.zI),void 0!==e&&_.y(d,6,e),void 0!==f&&_.J(d,13,f);(e=d)&&_.J(c,3,e);a=a.O.ha.clone();_.J(c,4,a);_.Jj(c,1,b);return c},Xec=function(a,b){var c=Sec(Wec(a,b),0,a.ha++);var d=a.ka;var e=Object.keys(d.H);if(0==e.length)d=null;else{for(var f=[],h=0;h<e.length;h++){var k=
Number(e[h]),l=d.H[k],p=new Hec;k=_.y(p,1,k);l=_.B(l.H,10);l=_.y(k,2,l);f.push(l)}d=f}716!=b&&(b=a.ta,_.y(c.H,6,a.W),e=new Gec,b=_.y(e,1,b),d&&_.Jj(b,2,d),d=_.Uo(c),_.J(d,3,b));Zec(a,c);return c},Zec=function(a,b){a.W=_.B(b.H,12);a.ta=_.B(_.C(_.C(b.H,_.Co,8),_.vya,1),1)};
var gfc=function(){};gfc.prototype.MQ=function(){return new Rec};
var hfc=function(){this.H=this.O=null};hfc.prototype.build=function(){null==this.H&&(this.H=new _.zza);_.Wo(this.H,Tec,new gfc);_.Wo(this.H,Pec,new cfc);var a=this.H;var b=this.O;if(!_.P(_.ifc(b),1)){var c=_.ifc(b),d=new _.Xza;_.J(c,1,d)}b=_.C(_.ifc(b),_.Xza,1);a.H=b;b=_.Qa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new ffc(this.O,this.H)};
var jfc=function(){this.W=new _.Ob;this.O=null;this.ha=new Kec;_.y(this.ha,1,6);this.H=this.V=null};jfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.kfc=function(a,b){_.y(a.W,2,b);return a};_.lfc=function(a,b){if(null==a.V){a.V=new _.jAa;var c=_.ifc(a);_.J(c,2,a.V)}_.y(a.V,1,b)};_.ifc=function(a){null==a.O&&(a.O=new _.Zo);return a.O};_.mfc=function(a){null==a.H&&(a.H=new _.zI);return a.H};
_.nfc=function(){this.H=this.ha=null;this.W=new jfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.ofc=function(a,b){a.ha=b;return a};_.pfc=function(a,b){a.H=b;return a};_.qfc=function(a,b){a.V=b;return a};_.nfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.rfc=function(a,b){_.y(a.W.W,6,b);return a};
_.nfc.prototype.build=function(){var a=new hfc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Nec;this.H=this.ha=b}b=new $ec(a,this.ha,this.H,this.ma,this.O);a=new Vec(a,b,!1);this.ka&&(a=new bfc(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.AI=function(a){return a instanceof Error};_.BI=function(a){return _.S(a,84,!1)};_.t("sy1n8");
_.sfc=function(a){_.K.call(this,a)};_.M(_.sfc,_.K);
_.CI=function(a){_.K.call(this,a)};_.M(_.CI,_.K);_.CI.prototype.getOptions=function(){return _.C(this,_.sfc,1)};_.CI.prototype.Un=function(){return _.B(this,2)};_.CI.prototype.qd=function(){return _.C(this,_.ff,3)};
_.tfc=function(a){_.K.call(this,a,-1,void 0,_.DI)};_.M(_.tfc,_.K);_.DI=[[3,4,5,6,7,8,9,10]];
var EI,vfc;EI={};_.ufc=(EI[1]="modifiedDate",EI[2]="modifiedByMeDate",EI[3]="quotaBytesUsed",EI[4]="title",EI[6]="lastViewedByMeDate",EI[10]="createdDate",EI[7]="sharedWithMeDate",EI[9]="starred",EI[11]="recency",EI[5]="relevance",EI[12]="trashedDate",EI[13]="lastViewedByMeDate",EI);vfc={};_.wfc=(vfc[1]="asc",vfc[2]="desc",vfc);
_.xfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.yfc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.Pf();this.date=new Date(a)};_.Rf(_.yfc,_.Kt);_.g=_.yfc.prototype;_.g.clone=function(){var a=new _.yfc(this.date);a.zG=this.zG;a.qV=this.qV;return a};_.g.add=function(a){(a.W||a.V)&&_.Jt.prototype.add.call(this,new _.It(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.fw))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.Kt.prototype.getUTCFullYear;
_.g.getMonth=_.Kt.prototype.getUTCMonth;_.g.getDate=_.Kt.prototype.getUTCDate;_.g.getHours=_.Kt.prototype.getUTCHours;_.g.getMinutes=_.Kt.prototype.getUTCMinutes;_.g.getSeconds=_.Kt.prototype.Z8a;_.g.getMilliseconds=_.Kt.prototype.Y8a;_.g.getDay=_.Kt.prototype.getUTCDay;_.g.setFullYear=_.Kt.prototype.setUTCFullYear;_.g.setMonth=_.Kt.prototype.setUTCMonth;_.g.setDate=_.Kt.prototype.setUTCDate;_.g.setHours=_.Kt.prototype.LLa;_.g.setMinutes=_.Kt.prototype.MLa;_.g.setSeconds=_.Kt.prototype.NLa;
_.g.setMilliseconds=_.Kt.prototype.$8a;
var zfc,Bfc;zfc={};_.Afc=(zfc[1]="0",zfc[2]="1",zfc[3]="2",zfc);Bfc={};_.Cfc=(Bfc[1]="asc",Bfc[2]="desc",Bfc);
_.Dfc=new _.Oo("drive_dataservice_builder");
_.Efc=_.$g&&0>_.lg(_.ch,"533");
_.Ffc=new _.Jec("drive_dataservice_invariants");
_.Gfc=new Map([[[1],1],[[6],7],[[2],2]]);_.Hfc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Ifc=new Map([[12,function(a){return _.Q(a,69)}],[24,function(a){return _.S(a,3,!1)}],[9,function(a){return _.S(a,17,!1)}],[21,function(a){return _.BI(a)}],[13,function(a){return _.Q(a,60)}],[2,function(a){return _.S(a,8,!0)}],[6,function(a){return _.S(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.S(a,56,!1)}],[17,function(a){return _.S(a,57,!1)}],[18,function(a){return _.S(a,54,!1)}],[19,function(a){return _.S(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Jfc=new Map([[36,function(a){return _.S(a,11,!1)}],[34,function(a){return _.S(a,9,!1)}],[25,function(a){return _.S(a,1,!1)}],[33,function(a){return _.S(a,8,!1)}],[26,function(a){return _.S(a,2,!1)}],[27,function(a){return _.S(a,3,!1)}],[29,function(a){return _.S(a,4,!1)}],[32,function(a){return _.S(a,7,!1)}],[40,function(a){return _.S(a,15,!1)}],[43,function(a){return _.S(a,18,!1)}],[42,function(a){return _.S(a,17,!1)}],[30,function(a){return _.S(a,5,!1)}],[31,function(a){return _.S(a,6,!1)}],[35,
function(a){return _.S(a,10,!1)}],[38,function(a){return _.S(a,13,!1)}],[39,function(a){return _.S(a,14,!1)}],[41,function(a){return _.S(a,16,!1)}]]);_.Kfc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.Lfc=new Map([[[3,4,5,6,8],3],[[1],1],[[15],15],[[2],2],[[7],4],[[9],5],[[10],6],[[11],7],[[16],16],[[12],8],[[13],9],[[14],10],[[200],200],[[201],201],[[202],202],[[203],203],[[204],204],[[205],205],[[206],206],[[207],207],[[208],208],[[209],209],[[210],210],[[211],211],[[212],212],[[213],213],[[214],214],[[215],215],[[216],216],[[217],217],[[218],218],[[219],219],[[220],220],[[221],221],[[222],222],[[223],223],[[224],224],[[225],225],[[226],226],[[227],227],[[228],228],[[229],229],[[230],230],
[[231],231],[[232],232],[[233],233],[[234],234],[[235],235],[[236],236],[[237],237],[[238],238],[[239],239],[[240],240],[[241],241],[[242],242],[[251],251],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247],[[248],248],[[249],249],[[250],250],[[252],252],[[253],253],[[254],254]]);_.Mfc=new Map([[[2],3],[[1],2],[[0],1]]);_.Nfc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Ofc=new Map([[[_.Ydc],1],[[_.Zdc],2],[[_.$dc],3],[[_.aec],4],[[_.bec],5],[[_.cec],6],[[_.dec],7],[[_.eec],8],[[_.fec],10],[[_.gec],11],[[_.hec],12],[[_.iec],13]]);_.Pfc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nd");
_.FI=function(a){_.K.call(this,a,-1,Qfc)};_.M(_.FI,_.K);_.FI.prototype.Ac=function(){return _.B(this,2)};_.GI=function(a,b){return _.y(a,2,b)};_.g=_.FI.prototype;_.g.qk=function(){return _.S(this,3,!1)};_.g.getItem=function(){return _.C(this,_.cl,4)};_.g.setItem=function(a){return _.J(this,4,a)};_.g.yc=function(){return _.B(this,7)};_.g.V9=function(){return _.B(this,13)};_.g.aIa=function(a){_.y(this,13,a)};var Qfc=[8,17];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nj");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nb");
_.jG=function(a){_.K.call(this,a,-1,QVb)};_.M(_.jG,_.K);_.jG.prototype.getId=function(){return _.B(this,1)};_.jG.prototype.Ob=function(a){return _.y(this,1,a)};_.jG.prototype.ks=function(){return _.B(this,2)};_.jG.prototype.fK=function(){return _.P(this,2)};var QVb=[5,6,9,10,12,13,15,16];
var RVb;_.kG=function(a){_.K.call(this,a,-1,RVb)};_.M(_.kG,_.K);_.kG.prototype.Gm=function(){return _.B(this,1)};_.SVb=function(a,b){return _.y(a,1,b)};RVb=[2,4];

_.w();

}catch(e){_._DumpException(e)}
try{
var Ufc;_.JI=function(a){if(a instanceof _.oc)return a;if(_.AI(a)){if(a=_.Sub(a))return a}else a="string"===typeof a?_.BEa(a):_.BEa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.HI(a,2);_.II(a,6);return a};_.Rfc=function(a){var b=a.mk();a=a.YF();return 15===b||32===b||33===b||401===a};_.Sfc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.Tfc=function(a){_.K.call(this,a)};_.M(_.Tfc,_.K);
_.KI=function(a){return _.Uj(a,1,0)};_.LI=function(a){return _.C(a,_.Tfc,4)};_.HI=function(a,b){return _.y(a,1,b)};_.II=function(a,b){return _.y(a,2,b)};Ufc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.MI=function(a){_.K.call(this,a,-1,Ufc)};_.M(_.MI,_.K);_.g=_.MI.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.Fe=function(){return _.B(this,3)};
_.g.Jl=function(a){return _.y(this,3,a)};_.g.Ev=function(a){return _.y(this,4,a)};_.g.Vh=function(){return _.Q(this,5)};_.g.In=function(a){return _.y(this,5,a)};_.g.getMimeType=function(){return _.B(this,6)};_.g.tE=function(a,b){_.Nj(this,8,a,b)};_.g.Wi=function(){return _.B(this,12)};_.g.ve=function(){return _.C(this,_.tf,17)};_.g.Ai=function(){return _.B(this,20)};_.g.yc=function(){return _.B(this,21)};_.NI=function(a,b){return _.y(a,16,b)};_.t("sy1nc");
_.OI=function(a){_.K.call(this,a,-1,Vfc)};_.M(_.OI,_.K);_.OI.prototype.UQ=function(){return _.Uj(this,2,100)};_.OI.prototype.PO=function(a){return _.y(this,2,a)};_.OI.prototype.ve=function(){return _.C(this,_.tf,6)};_.OI.prototype.yc=function(){return _.B(this,8)};var Vfc=[5];
var Wfc;Wfc={};_.Xfc=(Wfc[0]="/drive/v2internal",Wfc[1]="/drive/v2internal.corp",Wfc[2]="/drive/v2internal.scary",Wfc[4]="/drive/v2internal.scary",Wfc[5]="/drive/v2beta",Wfc[6]="/drive/v2.1beta",Wfc);
_.Yfc=new Set([0,1,2,3]);
_.Zfc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.$fc=_.y(new _.MI,15,!0);_.agc=_.NI(new _.MI,!0);_.bgc=_.NI(new _.MI,!1);
_.cgc=new Map([["CacheSize","Number of items currently in the in-memory cache."],["SecondaryFields","List of secondary fields"],["CachedCorpusType","Type of corpus cached (full, partial)."],["InitialChanges","Status of initial catchup changelog requests."],["SdkBackfillEnabled","Whether backfill via Drive SDK is enabled."],["UploadFailureCount","Number of failed uploads."],["UploadSuccessCount","Number of successful uploads."],["UploadTotalCount","Number of initiated uploads."],["InitialViewDataLoaded",
"Whether initial view data was loaded before the initial query."]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1nh");
_.dgc=new Set([7,4,5,9,6,10,11,12]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.egc=function(a){a=_.fb(a);return 0===a.length?_.Pha:new _.qg(a,_.Nha)};_.t("sy1nv");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.fgc=function(a,b,c){this.blockSize=-1;this.H=a;this.blockSize=c||a.blockSize||16;this.V=Array(this.blockSize);this.O=Array(this.blockSize);a=b;a.length>this.blockSize&&(this.H.update(a),a=this.H.digest(),this.H.reset());for(c=0;c<this.blockSize;c++)b=c<a.length?a[c]:0,this.V[c]=b^92,this.O[c]=b^54;this.H.update(this.O)};_.Rf(_.fgc,_.Cdc);_.fgc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};_.fgc.prototype.update=function(a,b){this.H.update(a,b)};
_.fgc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.ggc=function(a,b){a.reset();a.update(b);return a.digest()};
_.hgc=function(){this.blockSize=-1;this.blockSize=64;this.H=[];this.ha=[];this.ka=[];this.W=[];this.W[0]=128;for(var a=1;a<this.blockSize;++a)this.W[a]=0;this.V=this.O=0;this.reset()};_.Rf(_.hgc,_.Cdc);_.hgc.prototype.reset=function(){this.H[0]=1732584193;this.H[1]=4023233417;this.H[2]=2562383102;this.H[3]=271733878;this.H[4]=3285377520;this.V=this.O=0};
var igc=function(a,b,c){c||(c=0);var d=a.ka;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.H[0];c=a.H[1];var h=a.H[2],k=a.H[3],l=a.H[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(h^k);var p=1518500249}else f=c^h^k,p=1859775393;else 60>e?(f=c&h|k&(c|h),p=2400959708):
(f=c^h^k,p=3395469782);f=(b<<5|b>>>27)+f+l+p+d[e]&4294967295;l=k;k=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.H[0]=a.H[0]+b&4294967295;a.H[1]=a.H[1]+c&4294967295;a.H[2]=a.H[2]+h&4294967295;a.H[3]=a.H[3]+k&4294967295;a.H[4]=a.H[4]+l&4294967295};
_.hgc.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.ha,f=this.O;d<b;){if(0==f)for(;d<=c;)igc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){igc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){igc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.hgc.prototype.digest=function(){var a=[],b=8*this.V;56>this.O?this.update(this.W,56-this.O):this.update(this.W,this.blockSize-(this.O-56));for(var c=this.blockSize-1;56<=c;c--)this.ha[c]=b&255,b/=256;igc(this,this.ha);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.H[c]>>d&255,++b;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.PI=function(a,b){return _.y(a,82,b)};_.QI=function(a){return _.y(a,3,!0)};_.jgc=function(a,b){return _.y(a,7,b)};_.t("sy1n9");
_.kgc=new Map([[1,6],[2,6],[3,6],[9,6],[4,2],[8,2],[6,7],[7,8]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.RI={v_:"Versions",c7:"Metadata",S5:"Data",oU:"Offline"};_.lgc=new Map([[_.RI.v_,"versionKey"],[_.RI.c7,"k"]]);_.mgc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var qgc;_.ngc=function(a){var b={};_.La(a,function(c,d){b[d.toLowerCase()]=c});return b};_.ogc=function(a){return(a=a&&_.ngc(a))&&a["x-guploader-uploadid"]};_.pgc=function(a){return(a=a&&_.ngc(a))&&a["x-google-trace"]};qgc=[6];_.SI=function(a){_.K.call(this,a,-1,qgc)};_.M(_.SI,_.K);_.TI=function(a,b){return _.y(a,14,b)};_.t("sy1nx");
var rgc,tgc;
_.sgc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=rgc(e)||new _.oc;_.y(e,8,!0);k&&(k=_.jj(new _.fj(k),void 0).toString(),_.y(e,19,k));e.YF()||_.y(e,15,a||f);e.getMessage()||_.fq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.B(e,4)||_.gq(e,d);e.mk()||(5===f?_.TI(e,7):0!==a||d?403===a?_.TI(e,22):503===a||429===a?_.TI(e,24):(_.Dj(e,14),_.y(e,10,1),_.y(e,8,!0)):l||_.TI(e,2));e.Jca(_.ogc(c));e.Aca(_.pgc(c));
return e};rgc=function(a){if(!_.Ba(a))return null;var b=new _.oc,c=a.error;if(!c)return _.gq(b,JSON.stringify(a)),null;_.y(b,15,c.code);_.fq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=tgc[c];d?_.y(b,10,d):c&&!d&&_.y(b,10,2);(a=a.debugInfo)&&_.gq(b,a);return b};
tgc={appliedCategoryLimitExceeded:64,authError:15,backendError:9,badContent:14,badRequest:11,cannotAddParent:63,cannotMoveTrashedItemIntoTeamDrive:45,conflict:8,conversionCorruptedInput:16,conversionInputDoesNotMatchSpecifiedMimeType:17,conversionInputTooLarge:18,conversionInvalidRequest:19,conversionInvalidLanguage:20,conversionMissingCredentials:21,conversionOutputTooLarge:22,conversionQuotaExceeded:23,conversionTimeout:24,conversionTooManyCharts:25,conversionTooManyDrawings:26,conversionTooManyImages:27,
conversionUnsupportedConversionPath:28,conversionUnsupportedLanguage:29,conversionUnsupportedFormat:30,deadlineExceeded:31,expiredMoveValidationToken:66,fileOwnerNotMemberOfTeamDrive:42,fileOwnerNotMemberOfTeamDriveDomain:43,fileOwnerNotMemberOfWriterDomain:47,fileWriterTeamDriveMoveInDisabled:46,forbidden:10,internalError:3,invalid:12,missingCookie:33,notFound:4,quotaExceeded:6,rateLimitExceeded:7,responseTooLarge:5,required:32,uploadBrokenConnection:35,shareOutNotPermittedForContent:50,crossDomainMoveRestriction:52,
teamDriveFileLimitExceeded:40,teamDriveHierarchyTooDeep:49,teamDriveMembershipRequired:48,teamDriveNameRequired:59,teamDriveNameTooLong:44,teamDrivesFileTypeNotSupported:39,teamDrivesFolderMoveInNotSupported:36,teamDrivesFolderMoveOutNotSupported:37,teamDrivesParentLimit:41,teamDrivesShortcutFileNotSupported:38,tooManyFiles:53,tooManySourceIdsForMove:65,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,
sharedDriveInitializationInProgress:68,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,simultaneousPreflightLimitExceeded:67,mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62,permissionDenied:69};

_.w();

}catch(e){_._DumpException(e)}
try{
_.ugc=function(a,b){return _.y(a,1,b)};_.vgc=function(a,b){return _.J(a,1,b)};_.wgc=function(a,b){return _.y(a,2,b)};_.xgc=function(a,b){return _.J(a,3,b)};_.t("sy1ny");

_.w();

}catch(e){_._DumpException(e)}
try{
_.ygc=function(a){for(var b in a)delete a[b]};_.UI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.mla)(a)};_.VI=function(a){return _.S(a,5,!1)};_.zgc=function(a,b){var c=_.C(a.H,_.xya,9);null==c&&(c=new _.xya);var d=_.B(b.H,10);d=_.y(c,5,d);b=_.B(b.H,12);_.y(d,2,b);_.J(a.H,9,c)};_.Agc=function(a,b){a=_.Mi(a);b=_.Mi(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Bgc=function(a){var b=_.ula(a);if("undefined"==typeof b)throw Error("X");var c=new _.oj(null,void 0);a=_.tla(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.sma(c,e,f):c.add(e,f)}return c};_.t("sy1nz");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1o0");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Cgc=function(a,b,c){c&&(a=_.Mg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Kg(a));return a};_.Dgc=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};_.t("sy1o8");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Egc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.w();

}catch(e){_._DumpException(e)}
try{
var Fgc,Ggc,Kgc,Ogc,Pgc,Qgc,hhc,PJ,ihc,jhc,qhc,Mgc,Yhc,Lgc,qic,ric,yic,Aic,Cic,Eic,Fic,Gic,Iic,Yic,Zic,bjc,cjc,djc,fjc,gjc,ijc,ljc,ojc,pK,rK,qjc,sjc,vjc,wjc,xjc,yjc,zjc,Ajc,Djc,Fjc,Gjc,Ijc,Jjc,Yjc,Xjc,akc,ckc,dkc,ekc,jkc,mkc,okc,pkc,vkc,ukc,tkc,rkc,skc,ahc,bhc,rhc,Dkc,Ekc,zkc,Fkc,Akc,khc,Gkc,lhc,mhc,nhc,ohc,phc,Hkc,Jkc;_.WI=function(a,b,c){var d=new _.oc,e=_.ska(_.WI);_.y(d,20,e);_.II(d,a);_.HI(d,b?b:2);c&&_.TI(d,c);return d};
_.XI=function(a){var b;a instanceof _.oc?b=new _.pc(null,a):_.AI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("rb`"+a);b.stack||(b.stack=_.ska(_.XI));return b};_.YI=function(a){throw _.CB(a);};Fgc=function(a){return 7===a.mk()||24===a.Dp()&&(a=a.YF(),503===a||429===a)?!0:!1};Ggc=function(a,b){return b?b+"("+a+")":a};
_.ZI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.sAb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.Hgc.includes(p)){var q=_.Ddb.get(p);if(q){var r=_.Gdb[p];a.IE&&r&&(q=r);a.xq&&(a.IE?(p=_.Fdb[p])&&(q=p):(p=_.Edb[p])&&(q=p));q.split(",").forEach(function(v){var z=_.yia(v,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={L5:f.L5},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.L5=[];l.forEach(function(p){return function(q){p.L5.push(q)}}(f));"owners"==k&&b&&f.L5.push("kind");e.push(Ggc(f.L5.join(","),k))}return Ggc(e.join(","),c)};_.Igc=function(a){var b=new _.Vo;b.append(_.ZI(a,!0));return b.toString()};_.Jgc=function(a,b){return a.filter(function(c){return b.includes(c)})};Kgc=function(a){a=a.filter(function(b){return!_.Ddb.has(b)});if(a.length)throw Error("Tc`"+a.join(", "));};
_.Ngc=function(a){if(a){var b=a.getMimeType();b&&_.qG(a,b.toLowerCase());Lgc(a,_.Pj(a,Mgc,58).map(function(c){var d=c.getMimeType();d&&_.y(c,1,d.toLowerCase());return c}))}};Ogc=function(a){if(_.Ta(a))return"\r\n";var b="";_.La(a,function(c,d){b+=d+": "+c+"\r\n"});return b};Pgc=function(a,b){b&&(_.pj(a,"openDrive",!!_.S(b,2,!1)),_.pj(a,"reason",_.B(b,1)||0),_.pj(a,"syncType",_.B(b,3)||0),_.pj(a,"errorRecovery",!!_.S(b,4,!1)))};
Qgc=function(a){a=_.fq(_.TI(_.HI(new _.oc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.CB(a);};
hhc=function(a){if(a instanceof _.$I)return"request access";if(a instanceof _.aJ)return"admin migrate to TD";if(a instanceof _.bJ)return"authorize app";if(a instanceof _.cJ)return"copy item";if(a instanceof _.dJ)return"change category links";if(a instanceof _.eJ)return"create item";if(a instanceof _.fJ)return"create ws";if("undefined"!=typeof _.gJ&&a instanceof _.gJ)return"delete app";if("undefined"!=typeof _.hJ&&a instanceof _.hJ)return"delete backup";if(a instanceof _.iJ)return"delete item";if("undefined"!=
typeof _.jJ&&a instanceof _.jJ)return"delete permission";if(a instanceof _.kJ)return"delete revision";if(a instanceof _.lJ)return"delete TD";if(a instanceof _.CD)return"delete pref";if(a instanceof _.mJ)return"delete ws";if(a instanceof _.nJ)return"download item";if(a instanceof _.oJ||a instanceof _.pJ)return"empty trash";if(a instanceof _.qJ)return"find by ID";if(a instanceof _.xA)return"find by IDs";if(a instanceof _.Rgc)return"item export start";if("undefined"!=typeof _.rJ&&a instanceof _.rJ)return"get app";
if("undefined"!=typeof _.sJ&&a instanceof _.sJ)return"insert app";if("undefined"!=typeof _.tJ&&a instanceof _.tJ)return"insert permission";if(a instanceof _.CI)return a=a.qd(),_.uJ(a)?"quick access item query":_.vJ(a)?"people predict item query":_.wJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.xJ&&a instanceof _.xJ)return"list android backup items request";if(a instanceof _.yJ){var b="unknown";switch(a.getType()){case 1:b="installed";break;case 2:b="installed w/ app data";break;
case 3:b="all installable";break;case 4:b="installed w/ quota"}return"list apps ["+b+"]"}return"undefined"!=typeof _.Sgc&&a instanceof _.Sgc?"list backups":a instanceof _.OI?"list changes":a instanceof _.zJ?"list permissions":"undefined"!=typeof _.AJ&&a instanceof _.AJ?"list revisions":a instanceof _.BJ?"migrate to shared drive":a instanceof _.CJ?"partial download item":a instanceof _.DJ?"people api":a instanceof _.lG?"get published category":"undefined"!=typeof _.EJ&&a instanceof _.EJ?"get remaining changes":
a instanceof _.FJ?"remove item":"undefined"!=typeof _.GJ&&a instanceof _.GJ?"reparent item":a instanceof _.HJ?"restore item":a instanceof _.mG?"list suggested workspace items":a instanceof _.cA?"list suggested workspaces":"undefined"!=typeof _.IJ&&a instanceof _.IJ?"update app":a instanceof _.JJ?"update category metadata":a instanceof _.MI?"update item":a instanceof _.KJ?"update revision":a instanceof _.LJ?"update TD":a instanceof _.DD?"update pref":a instanceof _.MJ?"update ws":a instanceof _.xI?
"get account":a instanceof _.pG?"get workspace":a instanceof _.Tgc?"list activity":a instanceof _.Ugc?"list category metadata":a instanceof _.Vgc?"create TD":"undefined"!=typeof _.Wgc&&a instanceof _.Wgc?"item export cancel":"undefined"!=typeof _.Xgc&&a instanceof _.Xgc?"item export status":"undefined"!=typeof _.Ygc&&a instanceof _.Ygc?"generate cse token":"undefined"!=typeof _.Zgc&&a instanceof _.Zgc?"get largest change ID":a instanceof _.BD?"list prefs":a instanceof _.NJ?"multipart upload":a instanceof
_.$gc?"list published categories":a instanceof ahc?"init resumable upload":a instanceof bhc?"resumable upload chunk":a instanceof _.chc?"resumable upload":a instanceof _.nG?"get TD":"undefined"!=typeof _.dhc&&a instanceof _.dhc?"move TD preflight":a instanceof _.OJ?"list TDs":"undefined"!=typeof _.ehc&&a instanceof _.ehc?"get TD stats":a instanceof _.fhc?"test connection":"undefined"!=typeof _.ghc&&a instanceof _.ghc?"list workspaces":"unknown"};
PJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};ihc=function(a){if(a instanceof _.eJ||a instanceof _.NJ||a instanceof _.chc||a instanceof ahc||a instanceof bhc)return(new _.QJ).Bc(8);throw Error("ef");};jhc=function(a){if(a instanceof _.MI){var b=_.Ej(_.Dj(a.clone(),1),17);b=_.Tj(b,_.$fc)}else b=!1;b||(a instanceof _.MI?(a=_.Ej(_.Dj(a.clone(),1),17),b=_.Tj(a,_.agc)||_.Tj(a,_.bgc)):b=!1);return b?!1:!0};
_.RJ=function(a){return khc.includes(a.constructor)?jhc(a):!1};qhc=function(a,b){if(lhc.includes(a.constructor))return!0;if(b){if(_.S(b,54,!1)&&mhc.includes(a.constructor))return!0;var c=_.LI(b);if(c&&!_.S(c,7,!1)&&nhc.includes(a.constructor)&&!_.SJ(a)||_.S(b,56,!1)&&_.SJ(a)||_.S(b,57,!1)&&ohc.includes(a.constructor)||!(!_.S(b,53,!1)||mhc.includes(a.constructor)||nhc.includes(a.constructor)||_.SJ(a)||ohc.includes(a.constructor)||phc.includes(a.constructor)))return!0}return!1};
_.TJ=function(a,b,c,d,e){if(_.S(a,89,!1)){if(c&&c.length&&d){c=b.concat(rhc(d,c));var f=void 0===f?!1:f;a=new Map;b=[];c=_.m(c);for(d=c.next();!d.done;d=c.next()){d=d.value;var h=d.getId();a.has(h)?f&&a.get(h)!==_.B(d,2)&&Qgc(h):(a.set(h,_.B(d,2)),b.push(d))}f=b}else f=b;f.length&&(f=_.nA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.shc=function(a){var b=new _.Jk;return _.y(b,1,a)};_.thc=function(a,b){return _.y(a,7,b)};_.uhc=function(a,b){return _.y(a,8,b)};
_.vhc=function(a,b){return _.y(a,11,b)};_.whc=function(a,b){return _.y(a,1,b)};_.xhc=function(a,b){return _.y(a,4,b)};_.yhc=function(a,b){return _.y(a,5,b)};_.zhc=function(a,b){return _.y(a,6,b)};_.Ahc=function(a,b){return _.y(a,7,b)};_.Bhc=function(a,b){return _.y(a,8,b)};_.Chc=function(a,b){return _.y(a,9,b)};_.Dhc=function(a,b){return _.y(a,10,b)};_.Ehc=function(a,b){return _.y(a,11,b)};_.Fhc=function(a,b){return _.y(a,12,b)};_.Ghc=function(a,b){return _.y(a,16,b)};
_.Hhc=function(a,b){return _.y(a,17,b)};_.Ihc=function(a,b){return _.y(a,20,b)};_.Jhc=function(a,b){return _.y(a,21,b)};_.Khc=function(a,b){return _.y(a,31,b)};_.Lhc=function(a,b){return _.y(a,32,b)};_.Mhc=function(a,b){return _.y(a,33,b)};_.Nhc=function(a,b){return _.y(a,42,b)};_.Ohc=function(a,b){return _.y(a,43,b)};_.Phc=function(a,b){return _.y(a,46,b)};_.Qhc=function(a,b){return _.y(a,47,b)};_.Rhc=function(a,b){return _.y(a,48,b)};_.UJ=function(a){_.K.call(this,a)};_.M(_.UJ,_.K);
_.Shc=function(a){_.K.call(this,a)};_.M(_.Shc,_.K);_.Thc=function(a,b){return _.y(a,1,b)};_.Uhc=function(a,b){return _.y(a,2,b)};Mgc=function(a){_.K.call(this,a)};_.M(Mgc,_.K);Mgc.prototype.getMimeType=function(){return _.B(this,1)};Mgc.prototype.getUrl=function(){return _.B(this,2)};_.XJ=function(a){_.K.call(this,a)};_.M(_.XJ,_.K);_.XJ.prototype.Ge=function(){return _.B(this,2)};_.XJ.prototype.zh=function(a){return _.y(this,2,a)};_.XJ.prototype.yh=function(a){return _.y(this,3,a)};
_.Vhc=function(a,b){return _.y(a,1,b)};_.Whc=function(a,b){return _.Jj(a,2,b)};_.Xhc=function(a,b){return _.Jj(a,3,b)};Yhc=[2];_.YJ=function(a){_.K.call(this,a,-1,Yhc)};_.M(_.YJ,_.K);_.YJ.prototype.Fe=function(){return _.B(this,1)};_.YJ.prototype.Jl=function(a){return _.y(this,1,a)};_.YJ.prototype.$ua=function(a,b){return _.Nj(this,2,a,b)};_.ZJ=function(a){_.K.call(this,a)};_.M(_.ZJ,_.K);_.ZJ.prototype.Ge=function(){return _.B(this,1)};_.ZJ.prototype.zh=function(a){return _.y(this,1,a)};
_.ZJ.prototype.yh=function(a){return _.y(this,2,a)};_.$J=function(a,b){return _.Cj(a,2,b)};_.Zhc=function(a,b){_.y(a,8,b)};_.$hc=function(a,b){return _.Jj(a,15,b)};_.aic=function(a,b){return _.J(a,17,b)};_.bic=function(a,b){return _.y(a,19,b)};_.cic=function(a,b){_.y(a,26,b)};_.dic=function(a,b){_.y(a,31,b)};_.eic=function(a,b){_.y(a,34,b)};_.fic=function(a,b){return _.y(a,44,b)};_.gic=function(a,b){_.J(a,47,b)};_.hic=function(a,b){return _.y(a,52,b)};Lgc=function(a,b){_.Jj(a,58,b)};
_.iic=function(a,b){return _.y(a,72,b)};_.aK=function(a,b){return _.J(a,84,b)};_.jic=function(a,b){_.J(a,85,b)};_.kic=function(a,b){_.J(a,91,b)};_.lic=function(a,b){return _.y(a,92,b)};_.mic=function(a,b){return _.y(a,93,b)};_.nic=function(a,b){_.J(a,95,b)};_.oic=function(a,b){return _.y(a,136,b)};_.pic=function(a){_.K.call(this,a)};_.M(_.pic,_.K);_.bK=function(a){return _.S(a,2,!1)};qic=[3];ric=function(a){_.K.call(this,a,-1,qic)};_.M(ric,_.K);
ric.prototype.di=function(){var a=_.B(this,3);this.Ka||(this.Ka={});if(!this.Ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Ka[3]=!0}_.kb(this)&&_.lb(a);return a};var sic=[3],tic=function(a){_.K.call(this,a,-1,sic)};_.M(tic,_.K);tic.prototype.di=function(){return _.Sd(this,3)};var uic=[3],vic=function(a){_.K.call(this,a,-1,uic)};_.M(vic,_.K);vic.prototype.di=function(){return _.Sd(this,3)};_.cK=function(a){_.K.call(this,a)};_.M(_.cK,_.K);_.cK.prototype.Za=function(){return _.B(this,1)};
_.cK.prototype.Jb=function(a){return _.y(this,1,a)};_.cK.prototype.Si=function(){return _.Dj(this,1)};_.cK.prototype.lh=function(){return _.P(this,1)};_.fK=function(a){return _.zj(a,45,1)};_.uJ=function(a){return _.S(a,47,!1)};_.vJ=function(a){return _.S(a,49,!1)};_.wJ=function(a){return _.S(a,52,!1)};_.gK=function(a){return _.E(a,2,"")};_.wic=function(a,b){return _.Cj(a,27,b)};_.hK=function(a){return _.zj(a,39,0)};_.iK=function(a){return _.S(a,40,!1)};
_.xic=function(a){return _.Jt.prototype.ZO.call(a,!0)+"T"+_.Qg(a.getHours(),2)+":"+_.Qg(a.getMinutes(),2)+":"+_.Qg(a.getSeconds(),2)+a.m$()};yic=function(a,b){return _.nec(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.zic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.vI(c,"deleting object store "+b);}};Aic=function(){var a=new _.nfc;a.O=12E4;a.ma=!0;return a};_.Bic=function(a){_.K.call(this,a)};_.M(_.Bic,_.K);Cic=[3,4,10,18,19,28];
_.eJ=function(a){_.K.call(this,a,-1,Cic)};_.M(_.eJ,_.K);_.g=_.eJ.prototype;_.g.getMimeType=function(){return _.B(this,1)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.tE=function(a,b){_.Nj(this,3,a,b)};_.g.ve=function(){return _.C(this,_.tf,7)};_.g.dj=function(){return _.B(this,9)};_.g.yc=function(){return _.B(this,14)};_.g.Jz=function(){return _.C(this,_.Bic,15)};_.g.R1=function(){return _.B(this,21)};_.g.Ac=function(){return _.B(this,23)};
_.g.fl=function(){return _.B(this,33)};_.jK=function(a,b){return _.y(a,1,b)};_.kK=function(a,b){return _.Cj(a,3,b)};_.Dic=function(a,b){return _.y(a,12,b)};_.iJ=function(a){_.K.call(this,a)};_.M(_.iJ,_.K);_.iJ.prototype.getId=function(){return _.B(this,1)};_.iJ.prototype.Ob=function(a){return _.y(this,1,a)};_.iJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.lJ=function(a){_.K.call(this,a)};_.M(_.lJ,_.K);_.lJ.prototype.getId=function(){return _.B(this,1)};
_.lJ.prototype.Ob=function(a){return _.y(this,1,a)};_.lJ.prototype.ve=function(){return _.C(this,_.tf,2)};Eic=[7,8];_.LJ=function(a){_.K.call(this,a,-1,Eic)};_.M(_.LJ,_.K);_.g=_.LJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.tf,4)};_.OJ=function(a){_.K.call(this,a)};_.M(_.OJ,_.K);
_.OJ.prototype.getOptions=function(){return _.C(this,_.sfc,1)};_.OJ.prototype.Un=function(){return _.B(this,2)};_.OJ.prototype.qd=function(){return _.C(this,_.pI,3)};Fic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};Gic=null;_.Hic=function(a){if(_.Bma)return _.n.atob(a);var b="";_.Dma(a,function(c){b+=String.fromCharCode(c)});return b};Iic=function(){this.O=0;this.H=[]};_.g=Iic.prototype;_.g.add=function(a){var b=this.H[this.O];this.H[this.O]=a;this.O=(this.O+1)%40;return b};
_.g.get=function(a){a=Jic(this,a);return this.H[a]};_.g.set=function(a,b){a=Jic(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.kh=function(){var a=this.$b(),b=this.$b(),c=[];for(a=this.$b()-a;a<b;a++)c.push(this.get(a));return c};_.g.Jf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};_.g.hf=function(a){return a<this.$b()};
_.g.zq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Jic=function(a,b){if(b>=a.H.length)throw Error("ha");return 40>a.H.length?b:(a.O+Number(b))%40},Kic=function(a){_.K.call(this,a)};_.M(Kic,_.K);_.Lic=function(a){_.K.call(this,a)};_.M(_.Lic,_.K);_.Lic.prototype.Xe=function(){return _.B(this,1)};_.Lic.prototype.Fi=function(a){return _.y(this,1,a)};_.Lic.prototype.Bb=function(){return _.B(this,4)};_.Lic.prototype.Bc=function(a){return _.y(this,4,a)};
var Mic=function(a){_.K.call(this,a)};_.M(Mic,_.K);Mic.prototype.Tn=function(){return _.B(this,5)};var Nic=function(a,b){_.y(a,6,b)},Oic=function(a){_.K.call(this,a)};_.M(Oic,_.K);_.g=Oic.prototype;_.g.Wgb=function(a){_.y(this,1,a)};_.g.XNb=function(a){_.y(this,2,a)};_.g.wy=function(){return _.Q(this,3)};_.g.Xgb=function(a){_.y(this,3,a)};_.g.ENb=function(a){_.y(this,4,a)};var Pic=function(a){_.K.call(this,a)};_.M(Pic,_.K);Pic.prototype.wy=function(){return _.Q(this,2)};
var Qic=function(a,b){return _.y(a,2,b)},Ric=function(a,b){_.y(a,3,b)};Pic.prototype.qB=function(){return _.B(this,6)};var Sic=function(a,b){return _.y(a,8,b)},Tic=function(a){_.K.call(this,a)};_.M(Tic,_.K);var Uic=function(a){_.K.call(this,a)};_.M(Uic,_.K);var Vic=function(a,b){_.y(a,4,b)},Wic=function(a){_.K.call(this,a)};_.M(Wic,_.K);Wic.prototype.qd=function(){return _.C(this,_.Lic,1)};Wic.prototype.getState=function(){return _.C(this,Mic,2)};Wic.prototype.Id=function(a){return _.J(this,2,a)};
Wic.prototype.jt=function(){return _.P(this,2)};var Xic=function(a){_.K.call(this,a)};_.M(Xic,_.K);Xic.prototype.getEnvironment=function(){return _.B(this,2)};Xic.prototype.setEnvironment=function(a){return _.y(this,2,a)};_.Hgc=[42,1005,20,50,18,1003,1002];Yic=[73,71];_.lK=function(a){_.K.call(this,a)};_.M(_.lK,_.K);_.lK.prototype.getId=function(){return _.B(this,1)};_.lK.prototype.Ob=function(a){return _.y(this,1,a)};_.lK.prototype.getMimeType=function(){return _.B(this,2)};
_.lK.prototype.TF=function(){return _.B(this,8)};Zic=[22];_.QJ=function(a){_.K.call(this,a,-1,Zic)};_.M(_.QJ,_.K);_.g=_.QJ.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.getItem=function(){return _.C(this,_.cl,2)};_.g.setItem=function(a){return _.J(this,2,a)};_.g.Vj=function(){return _.B(this,3)};_.g.Ac=function(){return _.B(this,5)};_.$ic=function(a,b){return _.y(a,5,b)};_.g=_.QJ.prototype;_.g.UJ=function(){return _.B(this,7)};
_.g.Jca=function(a){return _.y(this,7,a)};_.g.lfa=function(a){_.y(this,9,a)};_.g.jMa=function(a){_.y(this,10,a)};_.g.aN=function(){return _.B(this,16)};_.g.Aca=function(a){return _.y(this,16,a)};var ajc=function(a){_.oi.call(this,a);this.connectionState=_.Uub.get(a)};_.M(ajc,_.oi);bjc=function(a){var b=new _.$h;a.listen("loadend",_.Bb(function(c,d){var e=d.Wj(),f=d.getError();null==e||f?c.Hd(f):c.callback(e);d.dispose()},b,a));return b};_.$I=function(a){_.K.call(this,a)};_.M(_.$I,_.K);
_.$I.prototype.Ac=function(){return _.B(this,1)};_.aJ=function(a){_.K.call(this,a)};_.M(_.aJ,_.K);_.aJ.prototype.getId=function(){return _.B(this,1)};_.aJ.prototype.Ob=function(a){return _.y(this,1,a)};_.aJ.prototype.rk=function(){return _.B(this,2)};_.aJ.prototype.O=function(a){_.y(this,4,a)};_.bJ=function(a){_.K.call(this,a)};_.M(_.bJ,_.K);_.bJ.prototype.Bh=function(){return _.B(this,1)};_.bJ.prototype.Ac=function(){return _.B(this,2)};_.bJ.prototype.ve=function(){return _.C(this,_.tf,4)};
cjc=[3,7];_.cJ=function(a){_.K.call(this,a,-1,cjc)};_.M(_.cJ,_.K);_.g=_.cJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};_.g.setTitle=function(a){return _.y(this,2,a)};_.g.tE=function(a,b){_.Nj(this,3,a,b)};_.g.ve=function(){return _.C(this,_.tf,5)};_.fJ=function(a){_.K.call(this,a)};_.M(_.fJ,_.K);_.fJ.prototype.getTitle=function(){return _.B(this,1)};_.fJ.prototype.setTitle=function(a){return _.y(this,1,a)};
_.fJ.prototype.ve=function(){return _.C(this,_.tf,2)};_.kJ=function(a){_.K.call(this,a)};_.M(_.kJ,_.K);_.kJ.prototype.Ac=function(){return _.B(this,1)};_.kJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.mJ=function(a){_.K.call(this,a)};_.M(_.mJ,_.K);_.mJ.prototype.getId=function(){return _.B(this,1)};_.mJ.prototype.Ob=function(a){return _.y(this,1,a)};_.mJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.oJ=function(a){_.K.call(this,a)};_.M(_.oJ,_.K);
_.oJ.prototype.ve=function(){return _.C(this,_.tf,1)};_.FJ=function(a){_.K.call(this,a)};_.M(_.FJ,_.K);_.g=_.FJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getParent=function(){return _.B(this,2)};_.g.Dg=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.tf,3)};_.HJ=function(a){_.K.call(this,a)};_.M(_.HJ,_.K);_.g=_.HJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};
_.g.getParent=function(){return _.B(this,2)};_.g.Dg=function(a){return _.y(this,2,a)};_.g.ve=function(){return _.C(this,_.tf,3)};_.KJ=function(a){_.K.call(this,a)};_.M(_.KJ,_.K);_.KJ.prototype.Ac=function(){return _.B(this,1)};_.KJ.prototype.ve=function(){return _.C(this,_.tf,4)};_.MJ=function(a){_.K.call(this,a)};_.M(_.MJ,_.K);_.g=_.MJ.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};
_.g.setTitle=function(a){return _.y(this,2,a)};_.g.getState=function(){return _.B(this,3)};_.g.Id=function(a){return _.y(this,3,a)};_.g.jt=function(){return _.P(this,3)};_.g.ve=function(){return _.C(this,_.tf,5)};djc=[2,3];_.dJ=function(a){_.K.call(this,a,-1,djc)};_.M(_.dJ,_.K);_.dJ.prototype.yc=function(){return _.B(this,1)};_.dJ.prototype.ve=function(){return _.C(this,_.tf,4)};_.ejc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};fjc=[3,4];_.yJ=function(a){_.K.call(this,a,-1,fjc)};
_.M(_.yJ,_.K);_.yJ.prototype.getType=function(){return _.B(this,1)};_.yJ.prototype.ve=function(){return _.C(this,_.tf,2)};_.BJ=function(a){_.K.call(this,a)};_.M(_.BJ,_.K);_.BJ.prototype.O=function(a){_.y(this,4,a)};gjc=[1];_.DJ=function(a){_.K.call(this,a,-1,gjc)};_.M(_.DJ,_.K);_.DJ.prototype.hn=function(){return _.Sd(this,1)};_.hjc=function(a){_.K.call(this,a)};_.M(_.hjc,_.K);_.g=_.hjc.prototype;_.g.getKey=function(){return _.B(this,1)};_.g.ht=function(){return _.P(this,1)};
_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Si=function(){return _.Dj(this,2)};_.g.lh=function(){return _.P(this,2)};_.g.Fe=function(){return _.B(this,3)};_.g.Jl=function(a){return _.y(this,3,a)};_.g.getType=function(){return _.B(this,4)};ijc=[1];_.jjc=function(a){_.K.call(this,a,-1,ijc)};_.M(_.jjc,_.K);_.kjc=function(){var a=void 0===a?1E3:a;this.O=new _.pl;this.H=new _.pl;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};
_.mjc=function(a){var b=a.O.kh();a.V&&b.push(ljc("...","...","...","..."));_.ya(b,a.H.kh());return b};_.njc=function(a){var b=[];a=_.mjc(a);for(var c=0;c<a.length;c++){var d=a[c];b.push(d.totalTime+"\t|\t"+d.level+"\t|\t"+d.logName+"\t|\t"+d.message)}return b.join("\n")};_.kjc.prototype.info=function(a,b){_.mK(this,a,b,"info")};_.kjc.prototype.config=function(a,b){_.mK(this,a,b,"config")};
_.kjc.prototype.log=function(a,b,c){if(!Gic){Gic={};for(var d=0,e;e=_.xka[d];d++)Gic[e.value]=e,Gic[e.name]=e}_.mK(this,a,b,c)};_.mK=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.ql(a.H));var e=Date.now()-a.startTime;b=ljc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};ljc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};ojc=function(a){_.oi.call(this,"Fb");this.H=a};_.M(ojc,_.oi);ojc.prototype.Te=function(){return this.H};
_.nK=function(a){a.supportsTeamDrives=!0};_.pjc=function(a){this.O=new Set;this.H=[].concat(_.md(_.Sd(a,27)));this.initialize(a)};_.pjc.prototype.initialize=function(a){var b=_.Jgc(this.H,_.Sd(a,28));if(0<b.length)throw Error("Te`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.VI(_.wI(a))||(this.H.push(45),this.H.push(25),this.H.push(35),this.H.push(96),this.H.push(1004),this.H.push(28),this.H.push(189),this.H.push(190));_.Da(this.H);this.H.sort();Kgc(this.H)};
_.oK=function(a){return[].concat(_.md(a.H))};pK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.qK=function(a,b,c){0!==b.length&&(a.KI.length&&a.append(" "+(c||"and")+" "),a.append(b))};rK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(pK(c));e.push("in");e.push(b);_.qK(a,e.join(" "))}};_.sK=function(a,b,c,d){d=void 0===d?"and":d;if(null!=c){var e=[];e.push(b);e.push("=");e.push((!!c).toString());_.qK(a,e.join(" "),d)}};
qjc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.qK(a,d.join(""))}};_.rjc=function(a){var b=new _.yfc;b.setTime(a);return b};sjc=function(a,b){b=_.Sd(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(pK(b));_.qK(a,c.join(" "))}};_.tjc=function(a){a=_.Pj(a,_.cK,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Za());return b.join(",")};
_.ujc=function(a){a=a.sB();return null==a||0==a.length?"":a.map(function(b){b=_.B(b,1);if(0==b)throw Error("Ue");return _.Adc[b]}).join(",")};vjc=function(a,b){if(a.length){var c=new _.Vo;a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=[];e.push(b?"shortcutDetails.targetMimeType":"mimeType");e.push("contains");e.push(pK(d.Za()));_.qK(c,e.join(" "),"or")}return c.toString()}return""};
wjc=function(a,b,c){if(a.length){var d=[];b&&d.push("not");d.push(c?"shortcutDetails.targetMimeType":"mimeType");d.push("in");a=a.map(function(e){return pK(e.Za())});d.push(a.join(", "));return d.join(" ")}return""};xjc=function(a){if(_.Q(a,2))return"any";switch(a.Za()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};yjc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};
zjc=function(a,b,c){if(null!=_.B(c,2)){var d=yjc(_.B(c,1));c=pK(_.xic(_.rjc(_.B(c,2)||0)));_.qK(a,[b,d,c].join(" "))}};Ajc=function(a){switch(a){case 1:return"anyoneCanFind";case 2:return"anyoneWithLink";case 3:return"domainCanFind";case 4:return"domainWithLink";case 5:return"limited"}return""};
_.Bjc=function(a){for(var b=new _.Vo,c=_.Pj(a,_.Dl,4),d=0;d<c.length;d++){var e=c[d],f=e.Za();if(f){var h=_.B(e,1),k=_.S(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(pK(f));_.qK(b,l.join(" "))}}for(var p=_.Pj(a,_.Cl,5),q=0;q<p.length;q++){var r=p[q],v=r.Za();if(v){var z=[];_.S(r,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(pK(v));_.qK(b,z.join(" "))}}var A=_.Hl(a);if(A&&0!=A.length){for(var D=[],G=[],H=[],L=[],N=[],R=[],X=0;X<A.length;X++){var ia=
A[X];ia.Za()&&(1===_.zj(ia,3,0)?_.Q(ia,4)?G.push(ia):D.push(ia):_.Q(ia,4)?_.S(ia,2,!1)?R.push(ia):N.push(ia):_.S(ia,2,!1)?L.push(ia):H.push(ia))}var ja=vjc(D,!1),wa=vjc(G,!0),ha=wjc(H,!1,!1),Wa=wjc(L,!0,!1),Ja=wjc(N,!1,!0),nb=wjc(R,!0,!0),$a=new _.Vo;if(ha||Ja||ja||wa)_.qK($a,ha,"or"),_.qK($a,Ja,"or"),_.qK($a,ja,"or"),_.qK($a,wa,"or");$a.KI.length&&_.qK(b,"("+$a.toString()+")","and");var yb=new _.Vo;if(Wa||nb)_.qK(yb,Wa,"and"),_.qK(yb,nb,"and");yb.KI.length&&_.qK(b,"("+yb.toString()+")","and")}for(var Zb=
_.Pj(a,_.Al,7),Gc=0;Gc<Zb.length;Gc++)zjc(b,"modifiedDate",Zb[Gc]);for(var he=_.Pj(a,_.Al,8),Pd=0;Pd<he.length;Pd++)zjc(b,"lastViewedByMeDate",he[Pd]);_.sK(b,"trashed",a.Vh());_.sK(b,"explicitlyTrashed",_.Q(a,17));_.sK(b,"starred",_.Q(a,10));_.sK(b,"hidden",_.Q(a,11));for(var Ed=_.Il(a),vf=0;vf<Ed.length;vf++){var od=Ed[vf];rK(b,"parents",od.Za(),_.S(od,2,!1))}for(var Db=_.Pj(a,_.hf,13),ie=0;ie<Db.length;ie++){var pg=Db[ie];rK(b,"owners",pg.Za(),_.S(pg,2,!1))}for(var Ee=_.Pj(a,_.hf,14),hi=0;hi<Ee.length;hi++){var cf=
Ee[hi];rK(b,"writers",cf.Za(),_.S(cf,2,!1))}for(var Di=_.Pj(a,_.hf,15),dh=0;dh<Di.length;dh++){var pm=Di[dh];rK(b,"readers",pm.Za(),_.S(pm,2,!1))}_.Q(a,16)&&_.qK(b,"sharedWithMe");_.sK(b,"unparented",_.Q(a,34));for(var kf=_.Pj(a,_.wl,35)||[],xe=_.m(kf),Wf=xe.next();!Wf.done;Wf=xe.next())rK(b,"ancestors",Wf.value.Za(),!1);for(var si=_.Pj(a,_.wl,38)||[],Wj=_.m(si),qm=Wj.next();!qm.done;qm=Wj.next())rK(b,"descendants",qm.value.Za(),!1);for(var Io=_.Pj(a,_.Bl,37)||[],rm=_.m(Io),Kh=rm.next();!Kh.done;Kh=
rm.next())rK(b,"folderFeatures",Kh.value.Za(),!1);for(var Ql=_.Sd(a,39),Xj=_.m(Ql),Wg=Xj.next();!Wg.done;Wg=Xj.next()){var Fj=Wg.value,Gj=[];Gj.push("templateData.description");Gj.push("contains");Gj.push(pK(Fj));_.qK(b,Gj.join(" "))}for(var Yj=_.Sd(a,40),Xh=0;Xh<Yj.length;Xh++){var lj=[];0==Xh&&lj.push("(");lj.push(pK(Yj[Xh]));lj.push("in");lj.push("templateData.categories");Xh==Yj.length-1&&lj.push(")");_.qK(b,lj.join(" "),0==Xh?"and":"or")}var Hj=_.B(a,41);if(null!=Hj){var $i=[];$i.push("templateData.galleryState");
$i.push("=");$i.push(pK(_.Afc[Hj]||""));_.qK(b,$i.join(" "))}var Zj=_.B(a,42);if(null!=Zj){var Lh=[];Lh.push("visibility");Lh.push("=");Lh.push(pK(Ajc(Zj)));_.qK(b,Lh.join(" "))}for(var Qm=_.Pj(a,_.vl,44),mj=0;mj<Qm.length;++mj){var ak=Qm[mj];rK(b,"actionItems",xjc(ak),_.S(ak,3,!1))}if(_.P(a,50)){var ml=[];ml.push("pairedDocType");var bk=_.S(a,50,!1)?"!=":"=";ml.push(bk);ml.push(pK("NONE"));_.qK(b,ml.join(" "))}rK(b,"workspaceIds",a.Ip(),!1);for(var Rm=_.Pj(a,_.xl,57),nl=0;nl<Rm.length;nl++){var ol=
[];0==nl&&ol.push("(");ol.push(pK(Rm[nl].Za()));ol.push("in");ol.push("approvals");nl==Rm.length-1&&ol.push(")");_.qK(b,ol.join(" "),0==nl?"and":"or")}if(_.P(a,58)){var Bf=a.Fq(),ck=Bf.Za(),Rl=_.S(Bf,2,!1);if(ck){var rk=[];Rl&&rk.push("not");rk.push("creator");rk.push("=");rk.push(pK(ck));_.qK(b,rk.join(" "))}}var Rk=_.C(a,_.Foa,59);if(Rk)for(var nc=_.m(_.Pj(Rk,_.Coa,1)),nj=nc.next();!nj.done;nj=nc.next()){var Mh=nj.value;rK(b,"categoryMetadata",Mh.Gm());for(var Sk=_.m(Mh.Hk()),Yh=Sk.next();!Yh.done;Yh=
Sk.next()){var ii=Yh.value,cg=_.B(ii,1),sk=_.xj(ii,_.zl[0]);if(10==sk){_.C(ii,_.toa,10);var Jo=_.Q(ii,15);(void 0===Jo?0:Jo)?_.qK(b,cg+" is null"):_.qK(b,"not ("+cg+" is null)")}else{var xh=new _.Vo,yh=void 0;switch(sk){case 3:yh=_.C(ii,ric,3);for(var qn=_.m(yh.di()),Ij=qn.next();!Ij.done;Ij=qn.next())_.sK(xh,cg,Ij.value,"or");break;case 14:for(var Rn=yh=_.C(ii,_.moa,14),sm=new Map([[1,"="],[2,">"],[3,"<"]]),tk=_.m(Rn.di()),tm=tk.next();!tm.done;tm=tk.next()){var Sn=tm.value,Ko=sm.get(_.B(Rn,2));
if(!Ko)throw Error("Ve");var wq=[cg,Ko,pK(Sn.getYear()+"-"+Sn.getMonth()+"-"+Sn.getDay())];_.qK(xh,wq.join(" "),"or")}break;case 8:for(var Em=yh=_.C(ii,_.soa,8),Fm=new Map([[1,"="],[2,">"],[3,"<"]]),Mj=_.m(Em.di()),$o=Mj.next();!$o.done;$o=Mj.next()){var ap=$o.value,Nq=Fm.get(_.B(Em,2));if(!Nq)throw Error("Ve");_.qK(xh,[cg,Nq,ap].join(" "),"or")}break;case 9:for(var Hr=yh=_.C(ii,tic,9),Gv=new Map([[1,"in"]]),Qs=_.m(Hr.di()),du=Qs.next();!du.done;du=Qs.next()){var gB=du.value,Oy=Gv.get(_.B(Hr,2));
if(!Oy)throw Error("Ve");_.qK(xh,[gB,Oy,cg].join(" "),"or")}break;case 6:for(var Py=yh=_.C(ii,_.xoa,6),Rs=new Map([[1,"="]]),Oq=_.m(Py.di()),Ir=Oq.next();!Ir.done;Ir=Oq.next()){var hB=Ir.value,FD=Rs.get(_.B(Py,2));if(!FD)throw Error("Ve");_.qK(xh,[cg,FD,pK(hB)].join(" "),"or")}break;case 7:for(var Hv=yh=_.C(ii,_.voa,7),Qy=new Map([[1,"in"]]),Iv=_.m(Hv.di()),hx=Iv.next();!hx.done;hx=Iv.next()){var ix=hx.value,Ss=Qy.get(_.B(Hv,2));if(!Ss)throw Error("Ve");_.qK(xh,[pK(ix),Ss,cg].join(" "),"or")}break;
case 4:for(var eu=yh=_.C(ii,_.zoa,4),yl=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),Ts=_.m(eu.di()),$l=Ts.next();!$l.done;$l=Ts.next()){var GD=$l.value,iB=yl.get(_.B(eu,2));if(!iB)throw Error("Ve");_.qK(xh,[cg,iB,pK(GD)].join(" "),"or")}break;case 5:for(var jx=yh=_.C(ii,vic,5),dj=new Map([[1,"in"]]),HD=_.m(jx.di()),fu=HD.next();!fu.done;fu=HD.next()){var Us=fu.value,bT=dj.get(_.B(jx,2));if(!bT)throw Error("Ve");_.qK(xh,[pK(Us),bT,cg].join(" "),"or")}break;case 12:for(var N7=yh=_.C(ii,_.qoa,
12),VJ=new Map([[1,"="]]),Lg=_.m(N7.di()),cT=Lg.next();!cT.done;cT=Lg.next()){var kx=cT.value,am=VJ.get(_.B(N7,2));if(!am)throw Error("Ve");_.qK(xh,[cg,am,pK(kx)].join(" "),"or")}break;case 11:for(var jB=yh=_.C(ii,_.ooa,11),dT=new Map([[1,"in"]]),uO=_.m(jB.di()),ho=uO.next();!ho.done;ho=uO.next()){var $Z=ho.value,vO=dT.get(_.B(jB,2));if(!vO)throw Error("Ve");_.qK(xh,[pK($Z),vO,cg].join(" "),"or")}}_.Q(ii,15)?_.qK(b,"not ("+xh+")"):_.qK(b,1<yh.di().length?"("+xh+")":""+xh)}}}null!=_.Q(a,60)&&_.sK(b,
"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var gu=_.Q(a,65);if(null!=gu){var ID=[];ID.push("clientEncryptionDetails.encryptionState");ID.push("=");ID.push(pK(gu?"encrypted":"unencrypted"));_.qK(b,ID.join(" "))}var Ry=_.Pj(a,_.hf,68);if(Ry.length){for(var eT=[],O7=[],a_=_.m(Ry),Sy=a_.next();!Sy.done;Sy=a_.next()){var lx=Sy.value,WJ="sharedFrom = "+pK(lx.Za());_.S(lx,2,!1)?O7.push(WJ):eT.push(WJ)}qjc(b,eT,!1);qjc(b,O7,!0)}var P7=_.Pj(a,_.hf,67);if(P7.length){for(var fT=[],wO=[],b_=_.m(P7),
kB=b_.next();!kB.done;kB=b_.next()){var c_=kB.value,d_="sharedTo = "+pK(c_.Za());_.S(c_,2,!1)?wO.push(d_):fT.push(d_)}qjc(b,fT,!1);qjc(b,wO,!0)}null!=_.Q(a,69)&&_.sK(b,"linkShareMetadata.securityUpdateEnabled",_.Q(a,69));null!=_.Q(a,72)&&_.sK(b,"canAcceptOwnership",_.Q(a,72));if(_.Q(a,73)){var e_=(new _.lf).Jb("application/vnd.google-apps.shortcut");_.sK(b,"impactedByMultiparentingMigration",!0);_.qK(b,wjc([e_],!1,!1))}1==_.fK(a)&&sjc(b,a);return b.toString()};
_.Cjc=function(a){var b=new _.Vo(_.Bjc(a));_.S(a,74,!1)?_.qK(b,"isQuickAccessForSharedFilesRequest"):_.uJ(a)?_.qK(b,"isQuickAccessRequest"):_.vJ(a)?_.qK(b,"isPeoplePredictRequest"):_.wJ(a)&&_.qK(b,"isDrivePriorityRequest");var c=a.wc();if(c){var d=[];d.push("sortBy");d.push(_.ufc[c.getType()]);d.push(_.Cfc[c.sf()]);_.Q(c,3)&&d.push("foldersFirst");_.qK(b,d.join(" "))}_.sK(b,"domainSearch",_.Q(a,18));_.sK(b,"offline",_.Q(a,19));_.Pj(a,_.cK,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.tjc(a)),
_.qK(b,c.join(" ")));a.sB().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.ujc(a)),_.qK(b,c.join(" ")));if(c=_.fK(a))d=[],d.push("corpora"),d.push("="),d.push(pK(_.ejc[c])),_.qK(b,d.join(" "));_.S(a,66,!0)||_.sK(b,"includeItemsFromAllDrives",_.S(a,66,!0));1!=_.fK(a)&&sjc(b,a);_.S(a,48,!1)&&_.qK(b,"cachedOnly");return b.toString()};
_.SJ=function(a){if(a instanceof _.CI)a=a.qd();else if(!a)return!1;return a instanceof _.cA||a instanceof _.mG||"undefined"!=typeof _.tK&&a instanceof _.tK||a instanceof _.ff&&(_.uJ(a)||_.vJ(a)||_.wJ(a))};Djc=function(){_.So.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.M(Djc,_.So);_.Ejc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};Fjc=function(a,b){a.V||(a.V=b)};Djc.prototype.vj=function(){_.Ejc(this);(0,this.ha)()};Gjc=function(a,b){a.ha||(a.ha=b)};
_.uK=function(a){if(!a.O){a.O=new Wic;var b=_.Uo(a);_.J(b,56,a.O)}return a.O};Djc.prototype.getState=function(){var a=_.uK(this).getState();a||(a=new Mic,_.uK(this).Id(a));return a};var Hjc=function(a,b){var c=new Kic;_.y(c,1,b);a=_.Uo(a);_.J(a,12,c)};Djc.prototype.ma=function(){var a=_.C(_.uK(this),Oic,4);if(!a){a=new Oic;var b=_.uK(this);_.J(b,4,a)}return a};Ijc=function(a){var b=_.C(_.uK(a),Pic,8);b||(b=new Pic,a=_.uK(a),_.J(a,8,b));return b};
Jjc=function(a){var b=_.C(_.uK(a),Uic,19);b||(b=new Uic,a=_.uK(a),_.J(a,19,b));return b};_.Kjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.xi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.M(_.Kjc,_.xi);_.g=_.Kjc.prototype;_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Il=function(){return 1===this.connectionState||2===this.connectionState};_.g.Te=function(){return 3===this.connectionState};_.g.get=function(){return this.connectionState};
_.g.update=function(a){if(this.V)return!1;if(this.connectionState!==a||this.H&&1===a){if(2===a)var b=3===this.connectionState?_.DB.pU:_.DB.Pga;else 1===a?(b=_.DB.FL,this.O=!0):3===a&&(b=_.DB.oU);if(b)return b=new ajc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var Ljc=function(a,b){this.userId=a;this.H=b;this.db=null},Njc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return Mjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Ye"))},function(d){return a.handleError(d)})},"readwrite")};Ljc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.qAb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var Ojc=function(a){return new _.Sh(function(b){var c=new Map;Mjc(a,function(d){return yic(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(p){return[p,d.get(p)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={Sqa:f.Sqa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Sqa=k;l.then(function(p){return function(q){q&&c.set(p.Sqa,new _.lAa(q.qAb))}}(f))}return _.iI([].concat(_.md(e.values()))).then(function(){return b(c)})})})})},Pjc=function(a,b){return Mjc(a,
function(c){return c.remove(b)},"readwrite")},Mjc=function(a,b,c){c=void 0===c?"readonly":c;return Qjc(a).then(function(d){try{var e=_.vec(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.XI(f):void 0)}},function(d){return a.handleError(d)})},Qjc=function(a){return a.db?_.Th(a.db):_.xec("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.zic(c,"OfflineImpressions");b=_.uec(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.vI(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Ze"))}).then(function(b){return a.db=b},function(b){return _.Uh(_.XI(b))})};Ljc.prototype.handleError=function(a){a||(a=Error("$e"));_.mK(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Th()};
_.Rjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.xi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.M(_.Rjc,_.xi);_.Rjc.prototype.Te=function(){return this.H};_.Rjc.prototype.Ll=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new ojc(a)))};_.Rjc.prototype.Ty=function(a){this.O=a};
var Tjc=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Kb=new _.Me(this);this.Kb.listen(b,"Fb",function(k){k.Te()||Sjc(h)});this.Kb.listen(c,[_.DB.FL,_.DB.pU],function(){return void Sjc(h)});this.W=e;f.then(function(){return Sjc(h)})};_.M(Tjc,_.xi);Tjc.prototype.xA=function(a){return(this.H.Te()||this.connectionState.Te())&&this.H.O?Njc(this.O,a):this.V.xA(a)};
var Sjc=function(a){return a.H.O?Ojc(a.O).then(function(b){b.forEach(function(c,d){a.V.xA(c).then(function(){return Ujc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Ujc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Gb");return Pjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Tjc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Vjc=function(){};Vjc.prototype.MQ=function(){return new Djc};var Wjc=function(){this.H=new Xic};Wjc.prototype.O=function(a){_.J(a,13,this.H)};Wjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
Yjc=function(a,b,c,d){this.V=b;this.connectionState=c;this.lw=d;this.O=this.H=null;this.client=_.vK(_.Lfc,_.hK(a));this.W=_.B(a,94);this.ka=_.vK(_.Pfc,_.zj(a.ag(),8,0));this.Twa=_.vK(_.Mfc,_.zj(a.ag(),9,2));this.ma=_.S(a,10,!1);this.ku=_.VI(_.wI(a));this.iCa=_.iK(a);this.ha=Xjc(a);this.buildLabel=a.Ki()};Xjc=function(a){var b=[].concat(_.md(_.Ifc.keys())),c=[].concat(_.md(_.Jfc.keys())),d=_.LI(a);return b.filter(function(e){return _.Ifc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Jfc.get(e)(d)}))};
_.vK=function(a,b){a=_.m(a);for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;if(c.includes(b))return d}return 0};Yjc.prototype.Tn=function(a){return null==a?0:a?2:1};var Zjc=function(a){if(a.O)return a.O.H("aU7Ts")};
Yjc.prototype.Bb=function(a){return a instanceof _.qB||"undefined"!=typeof _.wK&&a instanceof _.wK||"undefined"!=typeof _.xK&&a instanceof _.xK||"undefined"!=typeof _.yK&&a instanceof _.yK?a.Bb():"undefined"!=typeof _.zK&&a instanceof _.zK||"undefined"!=typeof _.AK&&a instanceof _.AK||"undefined"!=typeof _.BK&&a instanceof _.BK||"undefined"!=typeof _.CK&&a instanceof _.CK||"undefined"!=typeof _.DK&&a instanceof _.DK?a.response?a.response.Bb():null:null};Yjc.prototype.Ki=function(){return this.buildLabel};
var $jc=function(a){return a.V.Te()||a.connectionState.Te()?2:1};Yjc.prototype.getEnvironment=function(){return this.lw};akc=function(a,b){this.H=a;var c=new _.Kya;_.Lya(c,b.ha);a=this.H.JL();var d=_.mfc(a);_.J(d,10,c);(c=b.Ki())&&_.lfc(a,c);this.H.PZ();this.O=b};
_.bkc=function(a,b,c){var d=_.To(a.H.OF(b,c),_.Dfc);Hjc(d,$jc(a.O));b=Zjc(a.O);"boolean"===typeof b&&Nic(d.getState(),b);1===c&&Fjc(d,function(){return void a.H.kw(d)});Gjc(d,function(){var e=a.O;e=e.H?e.H.Ld():void 0;var f=d.getState();_.y(f,1,e);a.H.Qp(d)});return d};
ckc=function(a){var b=new _.zza,c=new Wjc;_.y(c.H,1,a.client);_.y(c.H,8,a.W);_.y(c.H,3,a.ka);_.y(c.H,4,a.Twa);_.y(c.H,5,a.ma);_.y(c.H,6,a.ku);_.y(c.H,7,a.iCa);a=c.setEnvironment(a.getEnvironment());_.zec(b,_.Ffc,a);_.Wo(b,_.Dfc,new Vjc);return b};
dkc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.eI(906,b,void 0,_.Sfc());l.ha=!1;var p=new _.Aec(l);b=new Date;l=_.rfc(_.qfc(_.pfc(Aic(),new _.Bec(l)),ckc(c)),109).setSessionId(b.getTime()+"_"+_.Sg());if(k){a=new Tjc(p,d,e,new Ljc(a,f),f,h);_.ofc(l,a);d=l.build();_.kfc(d.JL(),1E3*b.getTime());var q=new akc(d,c);(new _.Me).listen(a,"Gb",function(){_.bkc(q,106008,0).vj()});return q}_.ofc(l,p);a=l.build();_.kfc(a.JL(),1E3*b.getTime());return new akc(a,c)};
ekc=function(a,b){this.V=a;this.W=b};ekc.prototype.O=function(a,b){this.V&&_.fkc(this)&&(a=_.bkc(this.V,a,0),b&&_.zgc(a,b),a.vj())};_.EK=function(a,b){if(a.V&&_.fkc(a)){a=_.bkc(a.V,106018,0);var c=_.C(_.uK(a),Tic,15);if(!c){c=new Tic;var d=_.uK(a);_.J(d,15,c)}c=_.y(c,1,1);_.y(c,2,b);a.vj()}};ekc.prototype.H=function(a,b){return this.V&&_.fkc(this)?(a=_.bkc(this.V,a,1),b&&_.zgc(a,b),a):null};_.fkc=function(a){return!(!a.V||!a.V.H.yP())};
_.gkc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.KI(_.wI(a)).toString(),l=_.gK(_.wI(a));f=new Yjc(a,b,c,f);a=h?dkc(l,k,f,b,c,d,e,_.S(a,17,!1)):null;return new ekc(a,f)};_.qJ=function(a){_.K.call(this,a)};_.M(_.qJ,_.K);_.hkc=function(a){_.K.call(this,a)};_.M(_.hkc,_.K);_.hkc.prototype.getId=function(){return _.B(this,1)};_.hkc.prototype.Ob=function(a){return _.y(this,1,a)};_.hkc.prototype.ve=function(){return _.C(this,_.tf,2)};_.zJ=function(a){_.K.call(this,a)};_.M(_.zJ,_.K);
_.zJ.prototype.Un=function(){return _.B(this,2)};_.zJ.prototype.qd=function(){return _.C(this,_.hkc,3)};_.pJ=function(a){_.K.call(this,a)};_.M(_.pJ,_.K);_.pJ.prototype.qd=function(){return _.C(this,_.oJ,1)};_.pJ.prototype.Qca=function(a){return _.y(this,2,a)};_.nJ=function(a){_.K.call(this,a)};_.M(_.nJ,_.K);_.nJ.prototype.getId=function(){return _.B(this,1)};_.nJ.prototype.Ob=function(a){return _.y(this,1,a)};_.ikc=function(a,b){return _.y(a,2,b)};_.CJ=function(a){_.K.call(this,a)};_.M(_.CJ,_.K);
_.CJ.prototype.qd=function(){return _.C(this,_.nJ,1)};jkc=[2];_.JJ=function(a){_.K.call(this,a,-1,jkc)};_.M(_.JJ,_.K);_.JJ.prototype.Ac=function(){return _.B(this,1)};_.JJ.prototype.KV=function(){return _.Pj(this,_.kG,2)};_.JJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.kkc=function(a){_.K.call(this,a)};_.M(_.kkc,_.K);_.kkc.prototype.nk=function(){return _.B(this,1)};_.lkc=function(a){var b=new _.kkc;return _.y(b,1,a)};mkc=[1];_.Rgc=function(a){_.K.call(this,a,-1,mkc)};_.M(_.Rgc,_.K);
_.nkc=function(){this.H={}};okc=function(a,b,c){if(a.H[b])throw Error("af");a.H[b]=c};_.nkc.prototype.notify=function(a,b){for(var c=0;c<a.length;c++)if(this.H[a[c]])try{this.H[a[c]](b)}catch(d){_.n.setTimeout(function(){throw d;},0)}};pkc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.qkc=function(a,b){this.H=a;this.V=b;this.O=_.Xfc[_.zj(a.ag(),8,0)];this.W=_.Xfc[_.zj(a.ag(),51,5)];this.nonce=_.Sg()};
_.qkc.prototype.lc=function(a,b){if(b.NN)rkc(this,a,b),skc(this,a,b);else if(11===a.Vm){if(b.NJb){var c=b.zD||_.E(this.H.ag(),37,"");_.pj(a.uri,"key",c)}rkc(this,a,b);tkc(this,a,b)}else switch(a.uri=ukc(this,a.Vm,a.uri),a.Vm){case 1:tkc(this,a,b);rkc(this,a,b);break;case 0:b.ku||_.VI(_.wI(this.H))||(b.Gjb?_.pj(a.uri,"dsNonce",_.Sg()):_.S(this.H,83,!1)&&_.pj(a.uri,"dsNonce",this.nonce));tkc(this,a,b);skc(this,a,b);rkc(this,a,b);break;case 2:case 3:case 4:case 5:tkc(this,a,b);skc(this,a,b);rkc(this,
a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:tkc(this,a,b);skc(this,a,b);break;default:throw Error("bf`"+a.Vm);}};vkc=function(a,b){var c=ukc(a,b,new _.fj);if(!c.H)throw Error("df");return _.ij(_.hj(_.gj(new _.fj,c.O),c.H),c.W).Gi(_.Yfc.has(b)?"/batch"+a.O:"/batch")};
ukc=function(a,b,c){var d=_.B(a.H.ag(),57);switch(b){case 0:a=d+a.O;break;case 1:a=d+"/batch"+a.O;break;case 2:a=d+"/upload"+a.O;break;case 3:a=d+"/upload"+a.O+"/batch";break;case 4:return c;case 5:a=d+a.W;break;case 7:a=_.E(a.H.ag(),62,"");break;case 8:a=_.B(a.H.ag(),53);break;case 9:a=_.B(a.H.ag(),56);break;case 10:a=_.B(a.H.ag(),22);break;case 13:a=_.B(a.H.ag(),55);break;case 12:a=_.B(a.H.ag(),43);break;default:throw Error("bf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.fj(a);
_.Gd(c,"/")&&(c=c.slice(1));return new _.fj(a+"/"+c)};tkc=function(a,b,c){a=_.wI(a.H);c.ku||_.VI(a)||(c=[{key:"u",value:_.gK(a)}],b.headers.authorization=_.wdc(c)||"",c=_.KI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
rkc=function(a,b,c){var d=_.wI(a.H),e=a.H.ag(),f=c.s6a||!!_.B(e,13);c=c.t6a||_.S(e,14,!1);var h=11===b.Vm;f&&((f=_.B(e,13))&&_.Gd(f,"email:")?_.pj(b.uri,"trace",f):f&&"trace:true"===f?_.pj(b.uri,"$trace","true"):f?_.pj(b.uri,"trace","token:"+f):_.pj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.pj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.zj(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
skc=function(a,b,c){c.ku||_.VI(_.wI(a.H))?_.pj(b.uri,"key",_.E(a.H.ag(),36,"")):(a=c.zD||_.E(a.H.ag(),37,""),_.pj(b.uri,"key",a))};_.Tgc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Ugc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.$gc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.fhc=function(){this.H=_.uf(new _.tf,312)};_.Vgc=function(a){this.request=a;this.requestId=_.Sg()};
_.chc=function(a,b,c,d){this.request=a;this.file=b;this.mQ=void 0===c?null:c;this.metadata=d};ahc=function(a,b){this.request=a;this.metadata=b};bhc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.NJ=function(a,b,c,d){this.request=a;this.file=b;this.mQ=void 0===c?null:c;this.metadata=d};_.wkc=function(a,b){_.YH.call(this,a?a:500,b?b:6E5)};_.M(_.wkc,_.YH);_.xkc=function(a,b){this.O=b;this.H=new Map;this.ola(_.Pj(a,_.El,91))};
_.xkc.prototype.ola=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.B(c,2);if(!b||!c)break;var d=_.ykc(this,b);if(d){d!==c&&Qgc(b);break}this.H.set(b,c)}};rhc=function(a,b){return[].concat(_.md(new Set(b))).map(function(c){var d=(new _.El).Ob(c);a.H.has(c)?_.Fl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Fl(d,_.jl(c));return d}).filter(function(c){return _.P(c,2)})};_.ykc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.P(a,140)?_.jl(a):null};
_.FK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Bd=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.FK.prototype.getState=function(){return this.state};
_.FK.prototype.vM=function(a){var b=this;if(this.W)return this.W;var c=_.Wh();this.W=c.promise.then(function(){return _.lkc(1)},function(d){d=_.CB(d).Qg;var e=0;2===d.Dp()?e=3:_.Rfc(d)&&(e=2);return _.lkc(e)});a&&this.W.then(function(d){3===d.nk()&&_.EK(b.Bd,186469046)});this.H&&(a=_.B(Jjc(this.H),4)||0,Vic(Jjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);zkc(this,c);return this.W};_.Ckc=function(a,b){Akc(a,3)&&_.Bkc(a,b)};_.FK.prototype.reset=function(){this.O=null;Dkc(this)};
Dkc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.Bkc=function(a,b){if(!a.O&&!a.V){a.H=a.Bd.H(106025);if(a.H){var c=Jjc(a.H);var d=!(!a.state.isConnected()&&a.state.Il());c=_.y(c,1,d);c=_.y(c,2,a.state.O);_.y(c,5,!!b)}a.O=new _.wkc(5E3,6E4);Ekc(a)}};Ekc=function(a){Dkc(a);zkc(a);a.O&&(a.timeout=setTimeout(function(){return void Ekc(a)},a.O.Za()),_.ZH(a.O))};
zkc=function(a,b){_.Zh((a.ha?a.ha():_.Th()).then(null,function(){return null}),function(){if(a.H){var c=_.B(Jjc(a.H),3)||0,d=Jjc(a.H);_.y(d,3,c+1)}Fkc(a,b)})};Fkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Re(new _.fhc)}).then(null,function(d){d=_.CB(d);_.Rfc(d.Qg)&&Akc(a,2);return _.Uh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.FK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
Akc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.Zfc.get(b)),!0):!1};khc=[_.$I,_.bJ,_.aJ,_.dJ,_.cJ,_.eJ,_.fJ,_.iJ,_.kJ,_.lJ,_.mJ,_.oJ,_.pJ,_.BJ,_.FJ,_.HJ,_.JJ,_.MI,_.KJ,_.LJ,_.MJ,_.Vgc,_.NJ];Gkc=[_.OI];lhc=[_.lG,_.$gc];mhc=[_.zJ,_.xI,_.BD,_.OJ];nhc=[_.CI,_.qJ,_.xA,_.OI,_.Ugc];ohc=[_.OJ,_.nG];phc=[_.nJ,_.Rgc,_.yJ,_.CJ,_.DJ,_.Tgc,_.NJ,bhc,ahc];
Hkc=function(a){return a instanceof _.CI||a instanceof _.OJ||"undefined"!=typeof _.GK&&a instanceof _.GK||a instanceof _.LJ||a instanceof _.lJ||a instanceof _.eJ||a instanceof _.iJ||a instanceof _.MI&&_.RJ(a)};_.Ikc=function(a,b){this.H=b;this.m4={};this.hj=new Iic;b=_.ZI({fields:_.Sd(a,28),xq:_.VI(_.wI(a))});this.Jb("SecondaryFields",b);this.Jb("SdkBackfillEnabled",!!_.S(a,45,!1)+" (Include corpus cache: "+!!_.S(a,46,!1)+")")};_.Ikc.prototype.Jb=function(a,b){this.m4[a]=Jkc(a,b)};
var Kkc=function(a,b){var c=a.m4[b];c||(c=Jkc(b,0,2),a.m4[b]=c);c.Jb(String(Number(c.Za())+1))};_.Ikc.prototype.Jz=function(a){var b=_.Qa(this.m4);this.H&&b.push(Jkc("CacheSize",this.H.Ld()));b.push(Jkc("InitialViewDataLoaded",a));a=new _.jjc;_.Jj(a,1,b);return _.ei(a)};Jkc=function(a,b,c){var d=new _.hjc;_.y(d,1,a);_.y(d,4,c||1);d.Jb(String(b));d.Jl(_.cgc.get(a));return d};
_.Lkc=function(a,b,c){var d=new _.tfc;_.y(d,2,"Pending...");b instanceof _.CI?_.Qj(d,3,_.DI[0],b):b instanceof _.OJ?_.Qj(d,4,_.DI[0],b):"undefined"!=typeof _.GK&&b instanceof _.GK?_.Qj(d,5,_.DI[0],b):b instanceof _.LJ?_.Qj(d,6,_.DI[0],b):b instanceof _.lJ?_.Qj(d,7,_.DI[0],b):b instanceof _.eJ?_.Qj(d,8,_.DI[0],b):b instanceof _.iJ?_.Qj(d,9,_.DI[0],b):b instanceof _.MI&&_.Qj(d,10,_.DI[0],b);var e=hhc(b),f=[];if(b instanceof _.aJ)PJ(f,"ID",b.getId()),PJ(f,"Parent ID",b.rk());else if(b instanceof _.lJ)PJ(f,
"TD ID",b.getId());else if(b instanceof _.CI)b=_.Cjc(b.qd()),PJ(f,"Query",b);else if(b instanceof _.OJ)PJ(f,"Query","All");else if(b instanceof _.LJ)PJ(f,"TD ID",b.getId()),PJ(f,"Title",b.getTitle()),PJ(f,"Theme Image ID",_.B(b,3));else if(b instanceof _.eJ)PJ(f,"MimeType",b.getMimeType()),PJ(f,"Title",b.getTitle()),PJ(f,"Parents",_.Sd(b,3)),PJ(f,"Convert",_.Q(b,8)),PJ(f,"Request ID",b.dj()),PJ(f,"Parent Request IDs",_.Sd(b,10)),PJ(f,"Revision Item ID",_.B(b,12)),PJ(f,"Pinned",_.Q(b,8));else if(b instanceof
_.fJ)PJ(f,"Title",b.getTitle());else if(b instanceof _.iJ)PJ(f,"ID",b.getId());else if(b instanceof _.mJ)PJ(f,"WS ID",b.getId());else if(b instanceof _.BJ)PJ(f,"Source ID",_.B(b,1)),PJ(f,"Destination Parent ID",_.B(b,2)),PJ(f,"validation token",_.B(b,4));else if(b instanceof _.MI){if(PJ(f,"ID",b.getId()),PJ(f,"Title",b.getTitle()),PJ(f,"Description",b.Fe()),PJ(f,"Starred",_.Q(b,4)),PJ(f,"Trashed",b.Vh()),PJ(f,"MimeType",b.getMimeType()),PJ(f,"Parents",_.Sd(b,8)),PJ(f,"Parents to add",_.Sd(b,9)),PJ(f,
"Parents to remove",_.Sd(b,10)),PJ(f,"Restricted",_.Q(b,11)),PJ(f,"Folder Color",b.Wi()),PJ(f,"Update Last Viewed",_.Q(b,15)),PJ(f,"Subscribed",_.Q(b,16)),PJ(f,"Available Offline",_.Q(b,18)),PJ(f,"Wksp to add",_.Sd(b,31)),PJ(f,"Wksp to remove",_.Sd(b,32)),b=_.C(b,_.Zk,25))PJ(f,"Read Only",_.Q(b,1)),PJ(f,"Reason",_.B(b,2))}else b instanceof _.MJ?(PJ(f,"WS ID",b.getId()),PJ(f,"Title",b.getTitle()),PJ(f,"State",b.getState())):b instanceof _.Vgc&&PJ(f,"Title",b.request.getTitle());_.y(d,1,"Request: "+
e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.hj.add(d);return d};_.Mkc=function(a,b){for(var c=new _.Vo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.Cgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.y(a,2,c.toString()||"Done.")};_.Ikc.prototype.eR=function(){return this.hj.kh()};_.t("sy1o2");
_.HK=function(a){_.K.call(this,a)};_.M(_.HK,_.K);_.HK.prototype.ld=function(){return _.C(this,_.qB,1)};_.Nkc=function(a,b){return _.J(a,1,b)};_.HK.prototype.Un=function(){return _.B(this,3)};
_.Okc=function(a,b,c){_.oi.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.M(_.Okc,_.oi);
_.Pkc=function(a,b){this.O=a;this.V=b;this.H=null};
var IK=function(a){_.xi.call(this);this.name=a};_.M(IK,_.xi);_.g=IK.prototype;_.g.a4=function(){};_.g.MEa=function(){};_.g.A0a=function(){};_.g.iMa=function(){};_.g.z0a=function(){};_.g.PF=function(){this.dispatchEvent(new _.oi("Mb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Qkc=function(a,b){IK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.O,"Fb",function(d){d.Te()||c.PF()});this.Pc.listen(this.H,"nb",this.PF)};_.M(Qkc,IK);Qkc.prototype.max=function(){var a=this.O.Te(),b=this.H.AB();return!a&&b?Infinity:0};Qkc.prototype.a4=function(){this.PF()};
var Rkc=function(a){IK.call(this,"Online");var b=this;this.connectionState=a;this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.connectionState,[_.DB.FL,_.DB.Pga,_.DB.pU],function(){return b.PF()})};_.M(Rkc,IK);Rkc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Rkc.prototype.a4=function(){this.PF()};
_.Skc=function(a,b){this.H=a;this.O=b};_.Tkc=function(a){return a.H instanceof _.FK?new Rkc(a.H.getState()):new Qkc(a.O,a.H)};_.Skc.prototype.Ij=function(){return this.H instanceof _.FK?this.H.getState():this.O};
var Vkc;_.Ukc=function(a,b,c){this.AK=c;this.O=!0;this.V=0;this.H=new _.YH(a,b,.5)};Vkc=function(a){return a.H.O+a.V};
_.JK=function(a,b){IK.call(this,"Backoff");this.H=a;this.O=b};_.M(_.JK,IK);_.JK.prototype.max=function(){return this.H.O?Infinity:0};_.JK.prototype.iMa=function(){var a=this.H;a.V=0;a.H.reset()};_.JK.prototype.z0a=function(a){var b=this;Wkc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Za(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.PF()},a),_.ZH(this.H.H))};
var Wkc=function(a){var b;return(a=null===(b=_.fa(a.FD))||void 0===b?void 0:b.response)?Fgc(_.Sub(a)):!1};_.JK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Xkc=function(a,b){IK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.M(_.Xkc,IK);_.Xkc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Xkc.prototype.a4=function(a){a>=this.O?this.PF():null==this.H&&Ykc(this)};_.Xkc.prototype.MEa=function(a,b){0<b?Ykc(this):this.H=null};var Ykc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.PF.bind(a),a.V)};
_.KK=function(){this.hj=[]};_.g=_.KK.prototype;_.g.add=function(a,b){b?this.hj.unshift(a):this.hj.push(a);return!0};_.g.msa=function(a){return _.Aa(this.hj,0,a)};_.g.Ld=function(){return this.hj.length};_.g.cancel=function(a){return _.ua(this.hj,function(b){return b.xv.config.requestId===a?(b.ke.resolve(ihc(b.xv.Jw)),!0):!1})};_.g.eK=function(){return _.ig(this.hj,function(a){return _.RJ(a.xv.Jw)})};
var Zkc=function(){IK.call(this,"Immediate")};_.M(Zkc,IK);Zkc.prototype.max=function(){return Infinity};Zkc.prototype.a4=function(){this.PF()};
var $kc=function(){IK.call(this,"One Request")};_.M($kc,IK);$kc.prototype.max=function(){return 1};
_.LK=function(a){IK.call(this,"Parallel");this.limit=a;this.H=0};_.M(_.LK,IK);_.LK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.LK.prototype.a4=function(){this.H<this.limit&&this.PF()};_.LK.prototype.MEa=function(a){this.H+=a.length};_.LK.prototype.A0a=function(a){this.H-=a.length;this.H<this.limit&&this.PF()};
var alc=function(){_.xi.apply(this,arguments)};_.M(alc,_.xi);var clc=function(a,b){a.dispatchEvent(new blc(b))};alc.prototype.O=function(){};var blc=function(a){_.oi.call(this,"Nb");this.request=a};_.M(blc,_.oi);
_.MK=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ma=0;this.W=new Map;this.Pc=new _.Me(this);this.Ma(this.Pc);for(a=0;a<this.H.length;a++)this.Pc.listen(this.H[a],"Mb",this.z_a);for(a=0;a<this.O.length;a++)this.Pc.listen(this.O[a],"Nb",function(k){dlc(h,!0,k.request)});this.ka=_.yt("drive.ds.network.queue.Queue [%s]",f)};_.M(_.MK,_.xi);_.MK.prototype.add=function(a){return dlc(this,!1,{xv:a,ke:_.Wh(),FD:[]})};
_.MK.prototype.cancel=function(a){var b=this.V.cancel(a),c=this.buckets.some(function(d){return d.cancel(a)});b?this.log("Canceled ID "+a+" during execution."):c&&this.log("Canceled ID "+a+" inside bucket.");return b||c};_.MK.prototype.eK=function(){return this.V.eK()?!0:this.buckets.some(function(a){return a.eK()})};
var dlc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.fq(new _.oc,"No queue bucket accepted request."),_.Uh(_.CB(a));for(var d=elc(a),e=0;e<a.H.length;e++)a.H[e].a4(d);return c.ke.promise};_.g=_.MK.prototype;
_.g.z_a=function(){var a=elc(this);if(a){for(var b=this.H.reduce(function(e,f){return Math.min(e,f.max(a))},Infinity),c=[],d=0;d<this.buckets.length&&0===c.length;d++)c=this.buckets[d].msa(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.svb.bind(this,a[e]),this.rvb.bind(this,a[e]));e=elc(this);for(var f=0;f<this.H.length;f++)this.H[f].MEa(a,e);_.Zh(_.iI(d).then(this.qvb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.z_a.bind(this),0)};
_.g.svb=function(a,b){var c=a.xv.config;this.log(hhc(a.xv.Jw)+" request completed successfully. xd4: "+!(!c||!c.NN));this.H.forEach(function(d){return d.iMa()});this.O.forEach(function(d){return d.O(a)});a.ke.resolve(b)};
_.g.rvb=function(a,b){b=_.CB(b);this.log(hhc(a.xv.Jw)+(" request failed with error: "+b.ha+"."));a.FD.push({response:b,zQb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].z0a(a);a.xv.config.IEa||!this.O.some(function(d){return d.intercept(a)})?a.ke.reject(b):this.log(hhc(a.xv.Jw)+" encountered an error, but was intercepted to be retried.")};_.g.qvb=function(a){elc(this);for(var b=0;b<this.H.length;b++)this.H[b].A0a(a)};
var elc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Ld()){b=a.buckets[c].Ld();break}return b};_.MK.prototype.log=function(a){this.ha.info(this.ka,a)};
_.flc=function(a,b,c,d){alc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Uj(a,21,1E3);this.ta=_.Uj(a,1,1);this.ma=function(){return new _.Ukc(_.Uj(a,63,1E3),_.Uj(a,64,3E5),_.Uj(a,65,10))}};_.M(_.flc,alc);
_.flc.prototype.intercept=function(a){var b=a.FD.length,c=0<b&&_.fa(a.FD).response||null;if(c){c=_.JI(c);if(2===c.Dp())return glc(this,a);if(_.Rfc(c))return 2>=b?(clc(this,a),a=!0):a=!1,a;var d=c.mk();if(3===d||31===d||13===d||9===d)return hlc(this,a,b);if(Fgc(c))return b=Vkc(this.V),c=this.V,Vkc(c)<c.AK?(this.log("Backoff number "+b+" for a User Rate Limit error."),clc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var glc=function(a,b){var c=ilc(a,b),d=Vkc(c);if(Vkc(c)<c.AK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Te()?(d=c.H.Za(),_.n.setTimeout(function(){return clc(a,b)},d),_.ZH(c.H)):(_.n.setTimeout(function(){return clc(a,b)}),c.V++),!0;a.H.delete(b);return!1},ilc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},hlc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.n.setTimeout(function(){return clc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.flc.prototype.O=function(a){this.H.delete(a)};_.flc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var jlc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Sfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.pzb,d=bjc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.nzb(_.XI(e),"reading data"))}},klc=function(a){return jlc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var llc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ka=c;this.W=d;this.Qa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.va=this.ha=null;this.ke=_.Wh();this.finished=!1;this.Ba=this.wu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Jz();a=_.Sfc()&&a?_.B(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.tO="progress_"+this.requestId;h.tO=this.tO;this.ma=!!f.metadata};
llc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};llc.prototype.start=function(){var a=this,b=new ahc(this.request.request,this.request.metadata),c=mlc(this);this.Ha.then(function(d){return d.Re(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;nlc(a)},function(d){return void a.ke.reject(d)});return _.Zh(this.ke.promise.then(function(d){olc(a,d);return d},function(d){d=_.CB(d);olc(a,d.Qg);return _.Uh(d)}),function(){pkc(a.H,[a.tO])})};
var mlc=function(a){var b=_.Ya(a.config);okc(a.H,a.tO,Fic(function(){return void a.H.notify([a.requestId],0)}));return b};llc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ke.resolve(ihc(this.request)),!0)};
var nlc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),plc(a,4))},plc=function(a,b){qlc(a).then(function(c){if(c){var d=rlc(a,c.blob.size);a.Ha.then(function(f){return f.Re(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.UJ()&&(a.va=f.UJ());f.aN()&&(a.Fa=f.aN());a.progress<a.fileSize?nlc(a):a.ke.resolve(f)},function(f){if(d.IEa)a.cancel();else{var h=_.JI(f);h.CBa()||h.dla()||a.ma?slc(a,b,h,!1):klc(c.blob).then(function(k){k=k?_.MEa.get(k)||
25:38;_.TI(h,k);k=38===h.Dp();var l=38!==h.Dp()&&25!==h.Dp();slc(a,b,h,k,l)},function(){})}})}else{var e=_.CB(_.TI(_.fq(new _.oc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ke.reject(e)}})},slc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.lfa(f);!e&&0<b?(a.wu++,d&&(a.W=Math.max(262144*Math.floor(a.W/262144/2),8388608)),setTimeout(function(){b--;a.log("Retrying chunk "+a.Ba+" with "+b+" attempts remaining "+((d?"and chunk size lowered to "+(a.W+" bytes "):
"")+"for ")+(a.ha+"."));plc(a,b)},a.Qa*Math.pow(1.5,f))):a.ke.reject(_.CB(c))},qlc=function(a,b){return a.ma&&a.V?_.Th(a.V):tlc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return qlc(a,Math.min(2*a.O,a.fileSize-a.progress));a.ka&&(c=new Blob([a.ka,c]),a.ka=null);var d=c.size%262144;a.finished=a.progress+a.O===a.fileSize;0<d&&!a.finished&&(a.ka=c.slice(-1*d),c=c.slice(0,-1*d));a.V=new bhc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.B(a.request.request,
12)||void 0);return a.V})},tlc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.mQ?a.request.mQ(b,a.O):_.Th(_.Egc(a.request.file,b,b+a.O))},rlc=function(a,b){var c=_.Ya(a.config);c.jRa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;pkc(a.H,[a.tO]);okc(a.H,a.tO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},olc=function(a,b){b.jMa(3);b.lfa(a.wu);b.UJ()||b.Jca(a.va);b.aN()||b.Aca(a.Fa)};
_.ulc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.ulc.prototype.create=function(a,b){return new llc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.vlc=function(a){this.O=a;this.H={}};_.vlc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].xv.Jw instanceof _.chc)b.push(wlc(this,a[c].xv));else{var d=_.fq(new _.oc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.CB(d)))}return b};_.vlc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.vlc.prototype.eK=function(){return!_.Ta(this.H)};
var wlc=function(a,b){var c=a.O.create(b.Jw,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.Zh(d,function(){delete a.H[e]})};
_.xlc=function(a,b){return new _.MK(b,a,[new Zkc],[new _.KK],[],"immediate")};_.ylc=function(a,b,c,d,e){return new _.MK(e,a,[_.Tkc(d),new _.JK(c,e),new $kc],[new _.KK],[new _.flc(b,c,d.Ij(),e)],"connected")};_.zlc=function(a,b,c,d,e,f,h){h=void 0===h?_.Uj(b,10,50):h;return new _.MK(e,a,[_.Tkc(d),new _.Xkc(h,_.Uj(b,12,10)),new _.LK(3*h),new _.JK(c,e)],[new _.KK],[new _.flc(b,c,d.Ij(),e)],f)};_.Alc=function(a,b,c){b=_.Uj(b,46,1);return new _.MK(c,a,[new _.LK(b)],[new _.KK],[],"resumable_upload")};
_.Blc=function(a,b,c,d,e,f,h,k){this.iI=a;this.ma=b;this.V=c;this.H=d;this.W=e;this.ha=f;this.ka=h;this.O=k};_.Blc.prototype.Re=function(a,b){return Clc(this,a,b).then(null,function(c){c=_.CB(c);var d=c.Qg;jhc(a)||_.hq(d);return _.Uh(c)})};
var Clc=function(a,b,c){c=void 0===c?{}:c;var d=a.iI.validate(b);if(d)return _.Uh(_.CB(d));var e=a.ma.translate(b);e instanceof _.oc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.V.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.V.execute(a,e,c)||void 0;return _.Th(d).then(function(){if(e instanceof _.oc)return _.Uh(_.CB(e));if(Array.isArray(e)){var f=e.map(function(h){return Dlc(a,b,h,c)});return _.iI(f)}return Dlc(a,b,e,c)},function(f){return _.Uh(_.CB(f))})},
Dlc=function(a,b,c,d){var e=Elc(a,c);if(!e)return b=_.TI(_.fq(new _.oc,"Failed to choose a queue for server request."),18),_.Uh(_.CB(b));if(b instanceof _.nJ||b instanceof _.CJ)d.Gjb=!0;if(e===a.H[7]||e===a.H[8])d.NN=!0;d=e.add({Jw:c,config:d});(_.RJ(b)||_.RJ(c))&&_.Zh(d,function(){var f=a.W;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.Blc.prototype.cancel=function(a){return _.Oa(this.H,function(b){return b.cancel(a)})};
var Elc=function(a,b){var c,d=!1;b instanceof _.qJ?d=!(null===(c=_.C(b,_.xA,2))||void 0===c||!_.Q(c,7)):b instanceof _.xA?d=!!_.Q(b,7):b instanceof _.CI&&(d=(d=b.qd())&&!!_.Q(d,46));return(b instanceof _.fhc||b instanceof _.fI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.chc&&a.H[5]?a.H[5]:d&&qhc(b,a.O)&&a.H[7]?a.H[7]:qhc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.qJ||b instanceof _.xA)&&a.H[6]?a.H[6]:(d||Gkc.includes(b.constructor))&&a.H[3]?a.H[3]:khc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var Flc=function(a){this.H=a};Flc.prototype.build=function(a,b){var c="====="+_.Sg()+"=====",d=a[0].Vm,e=b.every(function(l){return l.NN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=vkc(this.H,a[0].Vm);_.pj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=Glc[d],h=Hlc[d]||{},h["content-type"]=_.yt('multipart/mixed; boundary="%s"',c),d=Ilc[d],k=new _.fj("");a=Jlc(this,a,b,c,e);return{Vm:f,body:a,headers:h,method:d,uri:k}};
var Jlc=function(a,b,c,d,e){for(var f=Ogc(Klc[b[0].Vm]||{}),h="",k=0;k<b.length;k++){e&&tkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=ukc(p,q.Vm,q.uri);switch(q.Vm){case 0:case 5:skc(p,q,r);rkc(p,q,r);break;case 2:tkc(p,q,r);skc(p,q,r);var v=q,z=_.B(p.H.ag(),57);v.headers.host=_.tj(z).H;v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;rkc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("cf`"+q.Vm);default:throw Error("bf`"+
q.Vm);}p=l;q=p.uri.clone();_.gj(q,"");_.hj(q,"");_.ij(q,null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Ogc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},Llc={},Glc=(Llc[0]=1,Llc[2]=3,Llc),Mlc={},Ilc=(Mlc[0]="POST",Mlc[2]="PUT",Mlc[12]="POST",Mlc),Nlc={},Olc={},Hlc=(Olc[2]=(Nlc["x-goog-upload-protocol"]="batch",Nlc),Olc),Plc={},Qlc={},Rlc={},Slc={},Klc=(Slc[0]=(Plc["content-type"]="application/http",Plc["content-transfer-encoding"]="binary",Plc),Slc[12]=
(Qlc["content-type"]="application/http",Qlc["content-transfer-encoding"]="binary",Qlc),Slc[2]=(Rlc["content-type"]="application/http",Rlc),Slc);
var Tlc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Ulc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Vlc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.hj=new Map};Vlc.prototype.add=function(a,b){var c="DEFAULT";b.NN&&(c=vkc(this.V,a.Vm).toString());this.hj.has(c)||this.hj.set(c,[]);c=this.hj.get(c);if(1<=c.length&&!b.NN&&!Glc[a.Vm])return a=_.fq(new _.oc,"Unsupported batch API: "+a.Vm),_.Uh(_.CB(a));var d=_.Wh();c.push({request:a,config:b,ke:d});return d.promise};
Vlc.prototype.send=function(){for(var a={},b=_.m(this.hj.entries()),c=b.next();!c.done;a={ara:a.ara},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Wlc(this,d)}catch(f){var e=_.XI(f);e=_.gq(_.fq(new _.oc,"Error executing XHR: "+e.message),e.stack);a.ara=_.CB(e);d.forEach(function(h){return function(k){k.ke.reject(h.ara)}}(a));this.hj.delete(c)}}};
var Wlc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.fCa&&!c.config.NN){var d=!1;if(Glc[c.request.Vm]){var e={Vm:c.request.Vm,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.lc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Xlc(a,c);return}}}Ylc(a,b)},Xlc=function(a,b){var c=b.ke;a.W.ah(b.request,b.config).then(function(d){c.resolve(d);Zlc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Ylc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.ah(a.ha.build(c,d),{fCa:!0,NN:d.every(function(e){return e.NN})}).then(function(e){e.headers=_.ngc(e.headers);var f=Ulc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.pc("Could not extract batch boundary.",_.TI(_.gq(new _.oc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.Gd(_.pia(h[0]),f)&&_.je(h[1]))h=_.pia(h[0]).substring(f.length);else throw new _.pc("Could not parse batch response; did not begin and end with boundary.",
_.TI(_.gq(new _.oc,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var p=h?c[l]:void 0,q=k,r=q.push;var v=void 0;var z,A=e.headers,D=f[l],G=p&&p.uri,H=D.split("\r\n\r\n");if(2>H.length)v=new _.pc("Individual batch response contained too few parts.",_.TI(_.gq(new _.oc,D),17));else{var L=H[1].split("\r\n");if(z=Tlc.exec(L[0])){p=_.Ug(z[1]);z=z[2];L.shift();A=_.Ya(A);for(var N=Object,R=N.assign,X={},ia=0;ia<L.length;ia++){var ja=_.yia(L[ia],":",1);ja&&2===
ja.length&&(X[(0,_.kg)(ja[0])]=(0,_.kg)(ja[1]))}L=_.ngc(X);R.call(N,A,L);try{v=_.je(_.Rg(H[2]))?void 0:JSON.parse(H[2])}catch(wa){}v=(p=_.sgc(p,z,A,D,v,void 0,void 0,G&&G.toString()))?_.CB(p):{headers:A,text:D,json:v||void 0}}else v=new _.pc("Could not extract HTTP status code and text.",_.TI(_.gq(new _.oc,D),16))}r.call(q,v)}return k}).then(null,function(e){e=_.CB(e);return _.Bdc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].ke,l=e[h];l instanceof _.oc||l instanceof _.pc?
(l=_.CB(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Zlc(a,b[0])})},Zlc=function(a,b){var c=b.request.Vm;b=!b.config.ku&&_.oa($lc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=Akc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.vj(),a.H=null)}else a.O&&b&&a.O.va()};
Vlc.prototype.handleError=function(a,b){a=_.Sub(b);if(2===a.Dp()){if(this.H)return _.Ckc(this.H),!0}else if(_.Rfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.Bkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var $lc=[0,2,4,7,8];
var amc=function(){_.bj.apply(this,arguments)};_.M(amc,_.bj);amc.prototype.getAllResponseHeaders=function(){return _.pia(_.bj.prototype.getAllResponseHeaders.call(this))};
var bmc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};
bmc.prototype.ah=function(a,b){var c=this;try{this.W.lc(a,b);var d=new amc;d.pC=!0;var e=b.requestId||"",f=_.Wh();d.listen("complete",function(){var h=b.fCa,k=4===a.Vm;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.O[e],delete c.H[e]);var l={headers:_.gma(d),text:d.Cl()};if(!h)try{l.json=_.UI(d)}catch(p){}h=_.sgc(d.Bb(),_.dma(d),l.headers,l.text,l.json,d.O,_.hma(d),String(d.ta),k);d.dispose();h?f.reject(_.CB(h)):f.resolve(l)});e&&b.tO&&!b.NN&&(this.O[e]=d,this.H[e]=b,d.Gb=!0,d.listen("uploadprogress",
function(h){h.lengthComputable&&c.V.notify([b.tO],b.jRa?h.loaded/h.total:h.loaded/h.total/2)}),b.jRa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.V.notify([b.tO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Uh(_.CB(h))}};bmc.prototype.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.IEa=!0,b.abort(),!0):!1};
_.cmc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new Flc(this.O);this.W=new bmc(this.O,this.va)};_.g=_.cmc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].xv;this.V.push(e);b.push(this.Ba.CE(e,a[d].FD));c.push(Hkc(e.Jw)?_.Lkc(this.ma,e.Jw):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.CB(_.sgc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Vlc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Iqa:e.Iqa},k++){e.Iqa=a[k].xv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Iqa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].xv,l=d[e].then(this.nnb.bind(this,k.Jw,c[e],a[e].FD)).then(null,function(p){return Promise.reject(_.CB(p))}),l.then(this.kMa.bind(this,k),this.kMa.bind(this,k)),b.push(l);return b};_.g.nnb=function(a,b,c,d){a=this.ta.CE(a,d,c);b&&(c=a.wd?a.wd():[],_.Mkc(b,c));return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.eK=function(){return this.V.some(function(a){return _.RJ(a.Jw)})};_.g.kMa=function(a){_.ta(this.V,a)};
_.dmc=function(){};_.dmc.prototype.execute=function(){return null};
var emc=function(){};
var fmc=function(a,b){this.H=a;this.O=b};
_.gmc=function(a,b,c,d,e){this.id=a;this.jwt=b;this.currentKaclsId=c;this.currentKaclsName=void 0===d?"":d;this.customerId=void 0===e?"":e};
var hmc;hmc=function(a){this.H=a};_.NK=function(a,b){if(!_.Ba(b))throw new _.pc("Expected an object, but got a "+_.gga(b)+".",_.WI(11,void 0,8));var c=b.kind;if(!c)throw new _.pc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.WI(11,void 0,21));if(!a.includes(c))throw new _.pc("Expected "+a.join(" or ")+" but got a "+c+".",_.WI(11,void 0,9));};_.OK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.imc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.whc(new _.Xk,a.canAddChildren);c=_.y(c,18,a.canChangeTeamDriveBackground);c=_.y(c,2,a.canComment);c=_.y(c,3,a.canCopy);b=_.Fhc(_.Ahc(_.Ghc(_.Hhc(_.Ihc(_.Ehc(_.Dhc(_.zhc(_.yhc(_.xhc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.y(b,13,a.canRenameTeamDrive);b=_.Jhc(_.Chc(_.Bhc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.y(b,27,a.canModifyContentRestriction);b=_.y(b,26,a.canShareOutsideDomain);b=_.Mhc(_.Lhc(_.Khc(_.y(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.y(b,34,a.canDeleteChildren);b=_.y(b,35,a.canTrashChildren);b=_.y(b,36,a.canRequestApproval);b=_.y(b,37,a.canReadCategoryMetadata);b=_.y(b,38,a.canEditCategoryMetadata);b=_.y(b,39,a.canChangeCategoryReferences);b=_.y(b,49,a.canSetMissingRequiredFields);
b=_.y(b,40,a.canAddMyDriveParent);b=_.y(b,41,a.canRemoveMyDriveParent);b=_.Ohc(_.Nhc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.y(b,44,a.canRead);b=_.Rhc(_.Qhc(_.Phc(_.y(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.y(b,50,a.canChangeSecurityUpdateEnabled);b=_.y(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.y(b,52,a.canCreateDecryptedCopy);b=_.y(b,53,a.canCreateEncryptedCopy);b=_.y(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren);return _.y(b,55,a.canBlockOwner)};_.PK=function(a,b){_.NK(["drive#user"],b);var c=_.uhc(_.vhc(_.shc(1).Ob(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.Hn(b.picture.url);_.BI(a.H)&&_.uhc(c,b.emailAddressFromAccount||b.emailAddress);_.thc(c,a.Qf(b.id));_.y(c,9,b.domain);return c};hmc.prototype.Qf=function(a){if(a)return _.gK(_.wI(this.H))==a};
var jmc,pmc,Emc,mmc,umc,tmc,vmc,xmc,zmc,lmc,Bmc,Amc,Cmc,Dmc,Gmc,Hmc,Fmc,wmc;jmc=function(a,b){this.H=a;this.O=b};
_.nmc=function(a,b,c){var d=new _.HK,e=new _.qB,f=e.Tw;_.NK(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.kmc(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var p=_.kmc(a,k[l]);h.push(p)}e=f.call(e,h);e=_.y(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.NK(["drive#fileList"],b);if(h=b.spellResponse){f=[];var q=h.spellCorrections;for(h=0;h<q.length;h++){k=q[h].spellFragments;a=[];for(l=0;l<k.length;l++){p=k[l];var r=(new _.rtb).Bc(lmc[p.status]);
r=_.y(r,1,p.original);p=_.y(r,3,p.correction);a.push(p)}k=new _.vtb;a=_.Jj(k,1,a);f.push(a)}q=new _.xtb;_.Jj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var v=new _.ttb;_.Cj(v,1,f)}q||v?(f=new _.ytb,q&&_.J(f,1,q),v&&_.J(f,2,v),v=f):v=null;_.J(e,7,v);v=mmc(b);_.Cj(e,18,v)}d=_.Nkc(d,e);c=_.pgc(c);c=_.y(d,2,c);b.nextPageToken&&_.y(c,3,b.nextPageToken);return c};
pmc=function(a,b,c,d,e){_.NK(["drive#adminFile","drive#file","drive#revision"],b);var f=_.$ic(new _.QJ,c);"drive#adminFile"==b.kind?(_.NK(["drive#adminFile"],b),c=(new _.cl).Ob(b.id),b.parentId&&_.$J(c,[b.parentId]),_.iic(c,b.teamDriveId),f.setItem(c),_.$ic(f,c.getId())):"drive#file"==b.kind?(b=_.kmc(a,b),f.setItem(b),c||_.$ic(f,b.getId())):"drive#revision"==b.kind&&(b=_.omc(a,b),_.J(f,4,b));f.Jca(_.ogc(d));f.Aca(_.pgc(d));(d=(d=d&&_.ngc(d))&&d["x-server-object-version"])&&e&&(e=(new _.lK).Ob(d),
_.J(f,4,e));f.Bc(1);return f};_.qmc=function(a,b){return _.$ic(new _.QJ,a).Bc(1).Jca(_.ogc(b)).Aca(_.pgc(b))};_.smc=function(a,b,c,d){d||_.NK(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.rmc(a,b[c],d);f&&e.push(f)}return e};
_.rmc=function(a,b,c){c||_.NK(["drive#permission"],b);c=_.thc(_.vhc(_.shc(tmc[b.type]).Ob(b.id),b.userId),a.H.Qf(b.userId));c=_.y(c,4,b.withLink);c=_.uhc(c.$c(b.name).Hn(b.photoLink),b.emailAddress);c=_.y(c,9,b.domain);c=_.y(c,10,b.deleted);c=_.y(c,12,b.audienceId);c=_.y(c,13,b.customerId);c.getId()||c.Ob(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.BI(a.O)&&c.$c(b.nameIfNotUser);a=umc[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.y(c,6,a);
return c};
_.kmc=function(a,b){_.NK(["drive#file"],b);var c=b.title,d=(new _.cl).Ob(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.fic(_.bic(_.qG(_.$J(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.y(c,90,Number(b.thumbnailVersion));_.y(c,21,b.iconLink);c.Jl(b.description);_.cic(c,b.explicitlyTrashed);_.y(c,22,b.shared);null!=b.quotaBytesUsed&&_.y(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.y(c,14,Number(b.fileSize));_.y(c,
30,b.copyable);b.labels&&(d=b.labels,c.Ev(d.starred),_.y(c,6,d.hidden),c.In(d.trashed),_.Zhc(c,d.restricted),_.y(c,9,d.viewed));_.y(c,10,_.OK(b.createdDate));_.y(c,69,_.OK(b.serverCreatedDate));_.bWb(c,_.OK(b.modifiedDate));_.y(c,12,_.OK(b.modifiedByMeDate));_.y(c,13,_.OK(b.lastViewedByMeDate));_.y(c,23,_.OK(b.sharedWithMeDate));_.y(c,62,_.OK(b.subscribedDate));_.y(c,70,_.OK(b.recency));b.recencyReason&&_.y(c,71,vmc[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.PK(a.H,
e[f]))&&d.push(h);_.$hc(c,d);b.lastModifyingUser&&(d=_.PK(a.H,b.lastModifyingUser),_.aic(c,d));b.userPermission&&_.cWb(c,umc[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.XJ).zh(e.width).yh(e.height),d=_.y(d,4,e.rotation),e.date&&(e=e.date,f=new _.yfc,f.setMilliseconds(0),wmc.parse(e,f),_.y(d,1,f.getTime())),_.J(c,27,d));null!=b.folderColor&&_.eic(c,Number(b.folderColor));_.dic(c,b.subscribed);_.y(c,45,b.fileExtension);_.Cj(c,50,b.folderFeatures);_.y(c,36,b.flaggedForAbuse);
_.y(c,53,b.gplusMedia);_.y(c,46,b.primarySyncParentId||void 0);_.y(c,35,b.hasChildFolders);b.source&&(_.y(c,42,b.source.client_service_id),_.y(c,43,b.source.value));b.sharingUser&&(d=_.PK(a.H,b.sharingUser),_.gic(c,d));b.sources?_.Cj(c,56,b.sources):b.gplusMedia&&_.Cj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.zdc[h]&&(h=_.bf(new _.af,_.zdc[h]),e.push(h));c.BA(e)}_.y(c,63,b.ownedByMe);_.y(c,29,b.shareable);b.sourceAppId&&_.y(c,61,b.sourceAppId);_.y(c,74,b.changed);
null!=b.recursiveFileSize&&_.y(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.y(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.Lna).Ob(h.id);h=_.y(k,2,xmc[h.type]);e.push(h)}_.Jj(c,83,e)}b.capabilities&&_.aK(c,_.imc(b.capabilities));b.permissionsSummary&&_.jic(c,_.ymc(a,b.permissionsSummary));b.headRevisionId&&_.y(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.YJ).Jl(d.description),
e=_.y(e,3,zmc[d.galleryState]),d=_.Cj(e,2,d.category),_.J(c,86,d));_.iic(c,b.teamDriveId);_.y(c,76,b.hasAugmentedPermissions);_.y(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.PK(a.H,b.creator),_.kic(c,d));_.lic(c,b.primaryDomainName);_.mic(c,b.organizationDisplayName);_.y(c,94,b.passivelySubscribed);b.trashingUser&&_.nic(c,_.PK(a.H,b.trashingUser));c.Qca(_.OK(b.trashedDate));b.version&&_.y(c,75,Number(b.version));_.y(c,98,b.hasVisitorPermissions);_.y(c,102,b.hasAppsScriptAddOn);(d=b.pairedDocType)&&
_.y(c,101,Amc[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.ZJ).zh(d.width).yh(d.height),d.durationMillis&&_.y(e,3,Number(d.durationMillis)),_.J(c,103,e));_.Cj(c,104,b.detectors);_.y(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.Uhc(_.Thc(new _.Zk,f.readOnly),f.reason),d.push(f);_.Jj(c,125,d)}if(d=b.publishingInfo)_.y(c,118,d.published),_.y(c,119,d.publishedUrl);_.Cj(c,120,b.workspaceIds);
b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.y(c,126,b.approvalMetadata.approvalVersion);if(b.approvalMetadata&&b.approvalMetadata.approvalSummaries){d=[];e=_.m(b.approvalMetadata.approvalSummaries);for(f=e.next();!f.done;f=e.next())f=f.value,f=(new _.Nna).Ob(f.approvalId).Bc(Bmc[f.status]),d.push(f);_.Jj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.Xna,e=_.y(e,1,d.targetId),e=_.y(e,3,d.targetMimeType),e=_.y(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&_.y(e,4,Cmc[d.targetLookupStatus]||
0),d.targetFile&&(d=_.kmc(a,d.targetFile),_.J(e,5,d)),_.J(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.UJ,e=_.y(e,1,Dmc[d.encryptionState]),d.decryptionMetadata&&(d=Emc(d.decryptionMetadata),_.J(e,2,d)),_.J(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Ona,e=_.y(e,2,d.securityUpdateEligible),e=_.y(e,3,d.securityUpdateEnabled),d=_.y(e,5,d.securityUpdateExplicitlySet),_.J(c,139,d));_.y(c,140,b.resourceKey);_.Cj(c,135,b.authorizedAppIds);_.oic(c,b.customerId);
_.y(c,144,b.abuseIsAppealable);b.abuseNoticeReason&&_.y(c,145,Fmc[b.abuseNoticeReason]);_.Ngc(c);_.BI(a.O)&&_.hic(c,5);return c};
_.omc=function(a,b){_.NK(["drive#revision"],b);var c=(new _.lK).Ob(b.id);c=_.y(c,2,b.mimeType);c=_.y(c,3,_.OK(b.modifiedDate));c=_.y(c,4,b.pinned);c=_.y(c,5,b.downloadUrl);c=_.y(c,7,b.originalFilename);null!=b.fileSize&&_.y(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.PK(a.H,b.lastModifyingUser),_.J(c,9,a));b.decryptionMetadata&&(b=Emc(b.decryptionMetadata),_.J(c,10,b));return c};
_.ymc=function(a,b){a=_.Xhc(_.Whc(_.Vhc(new _.Sna,b.entryCount),_.smc(a,b,"visibility",!0)),_.smc(a,b,"selectPermissions",!0));a=_.y(a,4,b.memberCount);a=_.y(a,5,b.userEntryCount);return _.y(a,6,b.groupEntryCount)};Emc=function(a){var b=a.wrappedKey;var c=new _.Shc;b=b?_.Hic(b):void 0;c=_.y(c,1,b);c=_.y(c,2,Number(a.kaclsId));c=_.y(c,5,a.kaclsName);c=_.y(c,3,Gmc[a.aes256GcmChunkSize]);c=_.y(c,6,Hmc[a.keyFormat]);return _.y(c,4,a.jwt)};
mmc=function(a){_.NK(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};umc={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};tmc={anyone:4,audience:5,domain:3,group:2,user:1};vmc={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};xmc={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};zmc={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};lmc={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
Bmc={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};Amc={docs:1,sheets:2,slides:3};Cmc={ok:1,notFound:2,permissionDenied:3};Dmc={unencrypted:1,encrypted:2};Gmc={unset:0,"default":1,small:2,size16kb:3};Hmc={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};Fmc={UNKNOWN_REASON:0,ACCESSIBLE_ONLY_TO_OWNER:1,ACCESSIBLE_ONLY_TO_OWNING_CUSTOMER:2,SUSPICIOUS_OTHER:3,SUSPICIOUS_PHISHING:4,SUSPICIOUS_MALWARE:5};wmc=new _.oWa("yyyy:MM:dd HH:mm:ss");
var Imc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var Lmc;_.Jmc=function(a){this.V=new hmc(a);this.oF=new jmc(this.V,a)};_.Jmc.prototype.CE=function(a,b,c){c=void 0===c?[]:c;try{return Kmc(this,a,b,c)}catch(d){_.YI(d)}};
var Kmc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.eJ)return _.QK(a,b,c);if(b instanceof _.nJ)return Lmc(0,c,d);if(b instanceof _.xA||b instanceof _.qJ){if(!c.json)throw _.RK();return _.nmc(a.oF,c.json,c.headers)}if(b instanceof _.NJ)return _.QK(a,b,c);if("undefined"!=typeof _.Ygc&&b instanceof _.Ygc){if(!c.json)throw _.RK();a=c.json;return new _.gmc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.Mmc&&b instanceof _.Mmc){if(!c.json)throw _.RK();
return _.omc(a.oF,c.json)}if(b instanceof _.CJ)return Lmc(b.qd(),c,d);if(b instanceof bhc){if(b.V){if(!c.json)throw _.RK();a=pmc(a.oF,c.json,null,c.headers,!!b.revisionId)}else a=_.qmc(null,c.headers);return a}if(b instanceof ahc){a=_.ngc(c.headers);b=a.location;if(!b)throw a=_.TI(new _.oc,10),new _.pc("No upload session URI included.",a);return new Imc(b,_.ogc(a),_.pgc(a))}if(b instanceof _.fhc)return new emc;throw new _.pc("FromXhrConverter: Unsupported request type.",new _.oc);};
_.Jmc.prototype.ha=function(){return null};Lmc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new fmc(_.Naa(b.text),c.length):new fmc(new Uint8Array(_.wma(b.text)),c.length)};_.QK=function(a,b,c){if(!c.json){if(b instanceof _.MI)return _.qmc(_.Nmc(b));throw _.RK();}var d=!1;b instanceof _.NJ&&(d=!!_.B(b.request,12));return pmc(a.oF,c.json,_.Nmc(b),c.headers,d)};_.RK=function(){var a=_.TI(new _.oc,11);return new _.pc("FromXhrConverter: JSON required, but none found",a)};
_.Nmc=function(a){return a.getId?a.getId():a.Ac?a.Ac():null};
var Rmc,Smc,Umc,Omc,Vmc,Pmc;
Rmc=function(a,b){var c={};_.je(_.Rg(a.getTitle()))||(_.B(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Ac()&&_.hfa(a.getMimeType())&&b)){var d=b.n$(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.wj(b.V()),h.kaclsId=b.ha(),h.aes256GcmChunkSize=Omc[d?d.O():0],h.keyFormat=Pmc[e?e.O():0],h);c.clientEncryptionDetails=f}_.Qmc(c,_.Sd(a,3));(b=a.Ac())&&(c.id=b);_.B(a,16)&&(c.embeddingParent=_.B(a,16));a.R1()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.R1());"number"===typeof _.B(a,26)&&(c.modifiedDate=_.xic(_.rjc(_.B(a,26)||0)));return c};_.Qmc=function(a,b){if(b.length){a.parents=[];for(var c=0;c<b.length;c++){var d={};d.id=b[c];a.parents.push(d)}}};Smc={};_.Tmc=(Smc[1]="active",Smc[2]="archived",Smc);Umc={};Omc=(Umc[0]="unset",Umc[1]="default",Umc[2]="small",Umc[3]="size16kb",Umc);Vmc={};Pmc=(Vmc[0]="unsetKeyFormat",Vmc[1]="tinkKeyset",Vmc[2]="tinkAesGcmKey",Vmc);
var Ymc=function(a,b,c){return(a.mQ?a.mQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return jlc(d)}).then(function(d){return Wmc(a,b,d,c)},Xmc)},Wmc=function(a,b,c,d){var e=!!_.B(a.request,12),f="files";e&&(f+="/"+_.B(a.request,12));f=new _.fj(f);_.pj(f,"uploadType","multipart");_.pj(f,"supportsTeamDrives",!0);_.pj(f,"pinned",!!_.S(a.request,13,!1));null!=_.Q(a.request,8)&&_.pj(f,"convert",_.Q(a.request,8));_.pj(f,"fields",_.Igc({fields:_.oK(b).filter(function(q){return 194!=q}),xq:!1}));
Pgc(f,a.request.ve());var h=Rmc(a.request,a.metadata),k=_.Sg();b={};b=(b["content-type"]=_.yt('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var p={};p=(p["content-transfer-encoding"]="base64",p);a.request.getMimeType()&&(p["content-type"]=a.request.getMimeType());_.TJ(d,_.Pj(a.request,_.El,28),[],null,b);a="--"+k;a=a+"\r\n"+Ogc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+Ogc(p)+"\r\n"+c+"\r\n"+
a+"--";return{Vm:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},Xmc=function(a){if(a instanceof _.nzb){var b=new _.oc;_.fq(b,"fs.Error: "+a.message);a=(a=a.name)?_.MEa.get(a)||25:38;_.TI(b,a);b=_.CB(b)}else b=_.XI(a);return Promise.reject(b)};
_.SK=function(a,b,c,d){this.H=a;this.Mg=b;this.O=c;this.Bd=d;this.ka=_.LI(a)||new _.Tfc};_.SK.prototype.CE=function(a,b){try{return a.Jw instanceof _.NJ?Ymc(a.Jw,this.Mg,this.H):Promise.resolve(this.V(a.Jw,a.config,b))}catch(c){return c instanceof _.pc?a=c.Qg:(a=new _.oc,_.fq(a,"Error converting XHR: "+c.message),_.gq(a,c.stack),_.TI(a,4)),Promise.reject(a)}};
_.SK.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.eJ){h=(e=!!_.B(a,12))?"PUT":"POST";var q="files";e&&(q+="/"+_.B(a,12),k.pinned=!!_.S(a,13,!1));null!=_.Q(a,8)&&(k.convert=_.Q(a,8));k.fields=_.Igc({fields:this.Hg(c),xq:_.VI(_.wI(this.H)),IE:_.BI(this.H)});e=Rmc(a);f["content-type"]="application/json";var r=a.ve();p=!0;_.nK(k);_.Zmc(this.H,k);_.TJ(this.H,_.Pj(a,_.El,28),_.Sd(a,3).concat([_.B(a,16),a.R1(),a.Ac()]),this.O,f)}else if(a instanceof _.nJ||a instanceof
_.CJ)a instanceof _.CJ?(l=a.qd(),_.P(a,2)&&(q="bytes="+_.B(a,2)+"-",_.P(a,3)&&(q+=_.B(a,3)),f.range=q)):l=a,q="files/"+l.getId(),_.B(l,2)&&(k.revisionId=_.B(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.TJ(this.H,[_.Fl((new _.El).Ob(l.getId()),_.B(l,3))],[l.getId()],this.O,f),p=l=!0;else if(a instanceof _.qJ||a instanceof _.xA){if(a instanceof _.qJ)q=_.B(a,1),a=_.C(a,_.xA,2);else if(a instanceof _.xA)q=0,_.EK(this.Bd,190196159);else throw Error("ag");p=a.hn()[q];q="files/"+
p;r=_.va(this.Hg(c),this.Hg(c,a.O()));_.Da(r);k.fields=_.Igc({fields:r,xq:_.VI(_.wI(this.H)),IE:_.BI(this.H)});_.nK(k);_.$mc(this.H,k);_.anc(this.H,k);this.W(p,k);r=a.ve();p=!0;_.Q(a,7)&&(b.fCa=!0);_.TJ(this.H,_.Pj(a,_.El,11),a.hn(),this.O,f)}else if("undefined"!=typeof _.Ygc&&a instanceof _.Ygc)q="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,r=a.H;else if("undefined"!=typeof _.Mmc&&a instanceof _.Mmc)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",
q="files/"+a.id+"/revisions/"+a.revisionId,p=l=!0;else if(a instanceof bhc){d=4;h="PUT";q=a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var v=a.H;b=a.O;f["content-range"]=a.V?_.yt("bytes %d-%d/%d",v,b,b+1):_.yt("bytes %d-%d/*",v,b)}v=a.blob;p=!0}else a instanceof ahc?(d=2,h=(e=!!_.B(a.request,12))?"PUT":"POST",q="files",e&&(q+="/"+_.B(a.request,12)),k.uploadType="resumable",k.pinned=!!_.S(a.request,13,!1),null!=_.Q(a.request,8)&&(k.convert=_.Q(a.request,8)),k.fields=_.Igc({fields:this.Hg(c).filter(function(z){return 194!=
z}),xq:_.VI(_.wI(this.H)),IE:_.BI(this.H)}),_.nK(k),e=Rmc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.TJ(this.H,[],_.Sd(a.request,3),this.O,f),r=a.request.ve(),p=!0):a instanceof _.fhc?(q="about",k.fields="kind",r=a.H,p=!0):_.bnc(a);p&&_.cnc(c,k);0!=d||l||r&&_.B(r,1)||_.EK(this.Bd,74438989);return _.dnc(this,d,q,k,f,h,r,e,v)};
_.dnc=function(a,b,c,d,e,f,h,k,l){c=new _.fj(c);[10,12,13].includes(b)||Pgc(c,h);_.S(a.ka,11,!1)&&(a=a.H.Ki())&&(e["X-Goog-Drive-Client-Version"]=a);d=_.m(Object.entries(d));for(a=d.next();!a.done;a=d.next())h=_.m(a.value),a=h.next().value,h=h.next().value,_.qj(c,a,h);return{Vm:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.$mc=function(a,b){_.S(a.ag(),23,!1)&&(b.includePermissionsForView="published")};_.SK.prototype.W=function(){};
_.anc=function(a,b){_.S(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.Zmc=function(a,b){_.S(a,3,!1)&&(b.enforceSingleParent=!0)};_.cnc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.fa(a).zQb):b.retryCount=0};_.SK.prototype.Hg=function(a,b){b||(b=_.oK(this.Mg));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return Yic.includes(c)}));return b};_.bnc=function(a){var b=_.TI(new _.oc,4);throw new _.pc("ToXhrConverter: Unsupported request type: "+hhc(a),b);};
_.TK=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.ta=f;this.hj={};this.ha={};this.Bd=null;_.De(this,function(){h.hG()})};_.M(_.TK,_.xi);_.TK.prototype.rQ=function(){return _.hI()};
_.TK.prototype.upload=function(a,b,c,d){Kkc(this.V,"UploadTotalCount");var e=a.dj();if(e&&this.hj[e])throw new _.pc("Upload requested with a duplicate request ID.");var f=_.Sd(a,10);if(f&&f.length){if(1!==f.length)throw new _.pc("Multi-parented uploads are not supported.");var h=this.hj[f[0]];if(!h)throw new _.pc("The parent upload request must precede this request.");}!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);e||(e=this.rQ(),_.y(a,9,e));a=a.clone();f=enc(this,e);this.hj[e]={request:a,
file:b,Zf:f,OM:!1,wu:0,success:!1,zE:!1,children:[],metadata:c,pla:void 0,mQ:d};h?fnc(this,e,h):this.ka(e);return f.Wm()};
var enc=function(a,b){var c=new _.$h;c.jg(_.Bb(a.Fa,b),_.Bb(a.Ha,b),a);return c},fnc=function(a,b,c,d){var e=a.hj[b];c.children.push(b);_.Da(c.children);c.Zf.then(function(f){if(1===f.Bb()&&(f=f.Ac(),_.Sd(e.request,3).push(f),_.dI(e.request,10),!c.zE||d)){a.ka(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.Zf.Hd(_.AI(f)?f:Error(f))})};
_.TK.prototype.Fa=function(a,b){Kkc(this.V,"UploadSuccessCount");a=this.hj[a];a.success=1===b.Bb();(b=a.pla)&&!a.zE&&(Qic(Sic(Ijc(b),a.wu),!0),b.vj())};_.TK.prototype.Ha=function(a,b){var c=_.C(this.O,_.SI,58);c&&_.S(c,1,!1)&&(this.ha[a]=b);Kkc(this.V,"UploadFailureCount");c=this.hj[a];(a=c.pla)&&!c.zE&&(Qic(Sic(Ijc(a),c.wu),!1),b=(c=b&&b.Qg)&&c.mk(),c=c&&c.Dp(),b?Ric(Ijc(a),gnc.get(b)||13):c&&Ric(Ijc(a),hnc.get(c)||0),a.vj())};
_.TK.prototype.ka=function(a){var b=this.hj[a];if(!b.OM){b.OM=!0;a=this.hj[a];var c=a.request,d=_.C(this.O,_.SI,58);d&&_.S(d,4,!1)&&(d=c.getTitle().match(inc))&&(!d[1]||a.wu<Number(d[1].substr(1)))&&(c=c.clone(),_.ra(_.Sd(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Jz())?_.B(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.ag();d=_.Uj(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.ta&&3!==d){var f=this.ta.H(106012);if(f){b.pla=f;f=Ijc(f);f=_.y(f,1,2===d?2:1);f=_.y(f,4,!!b.metadata);
var h=!!_.B(a,12);f=_.y(f,5,h);e=_.y(f,6,e);c=_.Uj(c,32,1073741824);_.y(e,7,c)}}switch(d){case 2:b.file&&jnc(this,new _.chc(a,b.file,b.mQ,b.metadata),b.Zf,a.dj());break;case 1:b.file&&(c=b.Zf,d=b.file,e=b.metadata,b=b.mQ,f=_.C(this.O,_.pic,2),jnc(this,new _.NJ(a,d,b,f&&_.bK(f)?e:void 0),c,a.dj()));break;case 3:jnc(this,a,b.Zf,a.dj());break;default:throw new _.pc("Upload type ${uploadType} not supported.");}}};
var jnc=function(a,b,c,d){okc(a.Ba,d,a.ma.bind(a,d));_.Zh(a.W.then(function(e){return e.Re(b,{requestId:d})}).then(null,function(e){return knc(a,b,e)}),function(){pkc(a.Ba,[d])}).then(c.callback,c.Hd,c)},knc=function(a,b,c){var d=_.CB(c),e=b instanceof _.NJ&&b.request.Ac()||"";c=d.Qg;if(e&&8===c.mk()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.zA(new _.xA,[e]);return _.fi(a.W.then(function(h){return h.Re(f)}).then(function(h){h=h.ld().wd()[0];var k=b.request;if(h&&!h.Vh()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.$ic((new _.QJ).setItem(h),e).Bc(1);a.log("No matching item found for: "+e);return _.Uh(d)}))}return _.gi(d)};_.g=_.TK.prototype;
_.g.cancel=function(a){var b=this,c=this.hj[a];if(c&&(!c.zE||0!==c.children.length))if(c.zE=!0,c.Zf.dg())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ia(c.children,this.cancel,this);else{var d=c.pla;d&&(Ric(Qic(Sic(Ijc(d),c.wu),!1),2),d.vj());var e=_.Wh();c.OM?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.OM=!0,c.Zf.callback(ihc(c.request)),e.resolve(!0));e.promise.then(function(f){return b.log('[Cancel] Upload of "'+
c.request.getTitle()+'" was '+(f?"cancelled.":"in-flight. Cannot cancel."))})}};_.g.hG=function(){var a=this;_.La(this.hj,function(b,c){a.cancel(c)})};
_.g.retry=function(a){var b=this,c=new Set(a),d=[],e={};a.forEach(function(f){if(!e[f])if(b.hj[f]){var h=[];do{h.push(f);var k=(_.Sd(b.hj[f].request,10)||[])[0];if(k){var l=b.hj[k];if(l.success||!l.Zf.dg()||e[k])break;else if(!c.has(k)){e[f]=new _.pc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ka(h,function(p){var q=b.hj[p];q.wu++;if(!e[p])if(!q.Zf.dg()||q.success)e[p]=new _.pc("Unable to retry request.");else{var r=(_.Sd(q.request,10)||[])[0];e[r]instanceof _.pc?
e[p]=e[r]:(q.Zf=enc(b,p),q.OM=!1,q.zE=!1,(r=r?b.hj[r]:null)?fnc(b,p,r,!0):d.push(p),e[p]=q.Zf.Wm())}})}else e[f]=new _.pc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.$h?f:_.gi(f)});_.Ia(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.qd=function(a){return this.hj[a]};var inc=/^uploadTestFailMe(\.[1-9])?$/,hnc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),gnc=new Map([[3,14]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1o5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1o6");

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1o7");

_.w();

}catch(e){_._DumpException(e)}
try{
var lnc;lnc=[1];_.UK=function(a){_.K.call(this,a,-1,lnc)};_.M(_.UK,_.K);_.UK.prototype.O=function(){return _.Sd(this,1)};_.t("sy1o4");
var mnc;_.VK=function(a){_.K.call(this,a,-1,mnc)};_.M(_.VK,_.K);_.VK.prototype.Bb=function(){return _.B(this,1)};_.VK.prototype.Bc=function(a){return _.y(this,1,a)};_.VK.prototype.aj=function(){return _.Pj(this,_.cl,2)};_.nnc=function(a,b){return _.Jj(a,2,b)};_.VK.prototype.wq=function(a,b){return _.Rj(this,2,a,_.cl,b)};_.VK.prototype.Yf=function(){return _.B(this,4)};_.onc=function(a,b){return _.y(a,4,b)};mnc=[2];

_.w();

}catch(e){_._DumpException(e)}
try{
_.t("sy1o3");
_.dWb=function(a){_.K.call(this,a)};_.M(_.dWb,_.K);_.dWb.prototype.zi=function(){return _.B(this,3)};_.dWb.prototype.ti=function(a){return _.y(this,3,a)};_.dWb.prototype.ve=function(){return _.C(this,_.tf,5)};_.dWb.prototype.getCustomer=function(){return _.B(this,6)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.WK=function(a,b){_.y(a,1,b)};_.t("sy1o9");

_.w();

}catch(e){_._DumpException(e)}
try{
_.qnc=function(a){return _.ue(a).Hg(_.S(a.get(_.gp),19,!1)?pnc:_.se)};_.t("sy1ob");
var pnc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,210,7,24,25,159,154,158,155,55,4,83,19,2,6,27];

_.w();

}catch(e){_._DumpException(e)}
try{
var rnc,snc,tnc,unc,vnc,xnc,ync,znc,Anc,Bnc,Dnc,Enc,Fnc,Gnc,Hnc,ZK,Mnc,Nnc,$K,aL,Onc,Pnc,Rnc,Snc,Tnc,Unc,Vnc,Xnc,Ync,Znc,$nc,aoc,boc,coc,eoc,goc,noc,poc,soc,toc,woc,zoc,eL,Aoc,Boc,Coc,Doc,Eoc,Foc,Goc,Hoc,Ioc,Loc,Koc,Ooc,Qoc,Soc,Uoc,Yoc,$oc,apc,bpc,cpc,dpc,epc,ipc,kpc,lpc,mpc,XK,npc,opc,Jnc,Inc,Knc,Lnc,Hqc,Iqc,iL,kL,Lqc,Zqc,brc,crc,drc,grc,Joc,Jrc,Krc,Lrc,Mrc,Orc,Prc,Qrc,Rrc,lL,Src,mL,Trc,Urc,Vrc,Wrc,Xrc,Yrc,nL,Zrc,$rc,asc,bsc,csc,dsc,oL,lsc,usc,stc,ttc,vtc,wtc,Htc,Itc,Jtc,Ktc,Ntc,Ptc,Ztc,muc,nuc,
ouc,puc,IL,quc,JL,ruc,suc,tuc,uuc,vuc,xuc,wuc,jvc,joc,kvc,nvc,ovc,Kzc,Lzc,Szc,bAc,sAc,yAc,FAc,HAc,MAc,SAc;rnc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Sd(a,3),Convert:_.Q(a,8),ID:a.dj()};var b=[];_.La(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
snc=function(a){var b=[];b.push(rnc(a.request));if(a.file){var c=[];c.push("Size: "+a.file.size);a.file.type&&c.push("Type: "+a.file.type);a.file.lastModifiedDate&&c.push("Last modified: "+a.file.lastModifiedDate);b.push("File: "+c.join("; "))}a.wu&&b.push("# of retries by client: "+a.wu);var d="";a.OM?a.Zf.dg()?a.Zf.jg(function(){d="Completed successfully."},function(e){d=e instanceof _.ai?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
tnc=function(a,b,c,d,e,f){var h=_.yt("Drive Upload Report: %d/%d failed",_.Pa(f),_.Pa(e));a=a.ag();d.push("Batch query interval: "+_.Uj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Uj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Uj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Uj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Uj(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.La(e,function(p){l.push(snc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.njc(b)});_.La(f,function(p,q){var r=k.push;q=e[q].request;q=_.yt('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.dj()||"");var v=p.Qg;v=v?_.B(v,4):"No detail.";r.call(k,{name:q,content:p.toString()+"\n"+v})});return{title:h,description:d,aQ:k,od:152391,c9:c,l0:361003}};unc=function(a){return Array.prototype.concat.apply([],arguments)};vnc=function(a,b,c){c=_.Fa(a,b,c);return 0>c?(_.Aa(a,-(c+1),0,b),!0):!1};
xnc=function(a,b){var c=new _.UK,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.m7a.get(b.hv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}wnc(c,[].concat(_.md(d)));return c};
ync=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Lea:c.Lea},d=a.next())if(d=d.value){c.Lea=new Map;[].concat(_.md(_.dl(d)),[d.om(),d.Qt(),d.Fq()]).forEach(function(p){return function(q){q&&p.Lea.set(XK(q),q)}}(c));for(var e=[],f=_.m(c.Lea.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(XK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.Lk(h))}b.push(d.getId()+","+d.hv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};znc=function(a){var b=new _.Vo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.ZI(a,!0,"file"));a.n7&&(b.append(",teamDriveId,teamDrive("),b.append(a.n7),b.append(")"));b.append(")");return b.toString()};Anc=function(a){var b=new _.Vo;b.append("kind,nextPageToken,items(");b.append(_.ZI(a,!0));b.append("),incompleteSearch");a.n7&&(b.append(","),b.append(a.n7));return b.toString()};
Bnc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.C(d,_.UJ,138),k=_.C(d,_.Zk,111),l=_.C(d,_.XJ,27),p=_.il(d),q=d.Hf(),r=d.wg(),v=_.C(d,_.ZJ,103);switch(e){case 227:_.Dj(d,144);break;case 228:_.Dj(d,145);break;case 74:_.Kj(d,83);break;case 188:_.Dj(d,137);break;case 149:_.dI(d,128);break;case 148:_.Kj(d,127);break;case 138:_.Dj(d,126);break;case 184:_.dI(d,135);break;case 76:f&&_.Dj(f,1);break;case 223:f&&_.Dj(f,54);break;case 208:f&&_.Dj(f,48);break;case 185:f&&
_.Dj(f,40);break;case 224:f&&_.Dj(f,55);break;case 213:f&&_.Dj(f,50);break;case 156:f&&_.Dj(f,39);break;case 61:f&&_.Dj(f,2);break;case 216:f&&_.Dj(f,52);break;case 217:f&&_.Dj(f,53);break;case 77:f&&_.Dj(f,4);break;case 134:f&&_.Dj(f,34);break;case 147:f&&_.Dj(f,38);break;case 81:f&&_.Dj(f,10);break;case 82:f&&_.Dj(f,11);break;case 114:f&&_.Dj(f,27);break;case 133:f&&_.Dj(f,33);break;case 202:f&&_.Dj(f,47);break;case 132:f&&_.Dj(f,32);break;case 101:f&&_.Dj(f,20);break;case 201:f&&_.Dj(f,46);break;
case 131:f&&_.Dj(f,31);break;case 200:f&&_.Dj(f,45);break;case 130:f&&_.Dj(f,30);break;case 93:f&&_.Dj(f,17);break;case 191:f&&_.Dj(f,44);break;case 146:f&&_.Dj(f,37);break;case 90:f&&_.Dj(f,16);break;case 78:f&&_.Dj(f,7);break;case 186:f&&_.Dj(f,41);break;case 222:f&&_.Dj(f,51);break;case 85:f&&_.Dj(f,12);break;case 137:f&&_.Dj(f,36);break;case 209:f&&_.Dj(f,49);break;case 79:f&&_.Dj(f,8);break;case 189:f&&_.Dj(f,42);break;case 190:f&&_.Dj(f,43);break;case 80:f&&_.Dj(f,9);break;case 135:f&&_.Dj(f,
35);break;case 102:f&&_.Dj(f,21);break;case 69:_.Dj(d,74);break;case 194:h&&_.Ej(h,2);break;case 193:h&&_.Dj(h,1);break;case 1004:_.Dj(d,108);break;case 136:_.Kj(d,125);break;case 115:k&&_.Dj(k,1);break;case 116:k&&_.Dj(k,2);break;case 34:_.Dj(d,30);f&&_.Dj(f,3);break;case 9:_.Dj(d,10);break;case 91:_.Ej(d,91);break;case 43:_.Dj(d,42);_.Dj(d,43);break;case 187:_.Dj(d,136);break;case 26:_.Dj(d,24);break;case 108:_.dI(d,104);break;case 41:_.Dj(d,40);f&&_.Dj(f,5);break;case 42:_.Dj(d,41);break;case 1005:_.Kj(d,
117);break;case 59:f&&_.Dj(f,6);break;case 28:_.Dj(d,26);break;case 44:_.Dj(d,45);break;case 13:_.Dj(d,14);break;case 48:_.Dj(d,36);break;case 38:_.Dj(d,34);break;case 49:_.dI(d,50);break;case 51:_.Dj(d,53);break;case 104:_.Dj(d,102);break;case 39:_.Dj(d,35);break;case 87:_.Dj(d,76);break;case 100:_.Dj(d,98);break;case 72:_.Dj(d,78);break;case 5:_.Dj(d,6);break;case 20:_.Dj(d,21);break;case 21:break;case 29:l&&_.Dj(l,1);break;case 31:l&&_.Dj(l,3);break;case 92:l&&_.Dj(l,4);break;case 30:l&&_.Dj(l,
2);break;case 16:_.Ej(d,17);break;case 12:_.Dj(d,13);break;case 211:p&&_.Dj(p,2);break;case 212:p&&_.Dj(p,3);break;case 220:p&&_.Dj(p,5);break;case 157:r&&_.Kj(r,8);break;case 3:_.Dj(d,4);break;case 11:_.Dj(d,12);break;case 10:_.Dj(d,11);break;case 50:_.Dj(d,49);_.Dj(d,51);_.Ej(d,81);break;case 18:_.Dj(d,19);break;case 95:_.Dj(d,93);break;case 58:_.Dj(d,63);break;case 14:_.Kj(d,15);break;case 103:_.Dj(d,101);break;case 1:_.dI(d,2);break;case 96:_.Dj(d,94);break;case 1003:_.Kj(d,107);break;case 75:_.Ej(d,
85);break;case 94:_.Dj(d,92);break;case 45:_.Dj(d,46);break;case 124:_.Dj(d,118);break;case 125:_.Dj(d,119);break;case 1002:_.Ej(d,100);break;case 32:_.Dj(d,28);break;case 67:_.Dj(d,70);break;case 68:_.Dj(d,71);break;case 73:_.Dj(d,79);break;case 71:_.Dj(d,77);break;case 221:r&&_.Dj(r,9);break;case 210:_.Dj(d,140);break;case 7:_.Dj(d,8);break;case 122:_.Ej(d,109);break;case 66:_.Dj(d,69);break;case 33:_.Dj(d,29);break;case 24:_.Dj(d,22);break;case 25:_.Dj(d,23);break;case 46:_.Ej(d,47);break;case 192:q&&
_.Dj(q,6);break;case 159:q&&_.Ej(q,5);break;case 154:q&&_.Dj(q,1);break;case 158:q&&_.Dj(q,4);break;case 155:q&&_.Dj(q,3);break;case 52:_.dI(d,56);break;case 56:_.Dj(d,61);break;case 55:_.Kj(d,60);break;case 4:_.Dj(d,5);break;case 35:_.Dj(d,31);break;case 57:_.Dj(d,62);break;case 83:_.Dj(d,72);break;case 84:_.Ej(d,86);break;case 19:_.Dj(d,20);_.Dj(d,44);_.Dj(d,90);break;case 2:_.Dj(d,3);break;case 6:_.Dj(d,7);break;case 98:_.Dj(d,96);break;case 97:_.Ej(d,95);break;case 27:_.Dj(d,25);break;case 70:_.Dj(d,
75);break;case 107:v&&_.Dj(v,3);break;case 106:v&&_.Dj(v,2);break;case 105:v&&_.Dj(v,1);break;case 8:_.Dj(d,9);break;case 126:_.dI(d,120);break;default:throw Error("Qc`"+e);}}};Dnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.md(a),_.md(Cnc)));a=[].concat(_.md(_.Ddb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)Bnc(b[d],a)}};
Enc=function(a,b){var c=a.getCapabilities()||new _.Xk,d=_.C(a,_.UJ,138),e=_.C(a,_.Zk,111),f=_.C(a,_.XJ,27),h=_.il(a),k=a.Hf(),l=a.wg(),p=_.C(a,_.ZJ,103);switch(b){case 227:return null!=_.Q(a,144);case 228:return null!=_.B(a,145);case 74:return 0<a.Zt().length;case 188:return null!=_.Q(a,137);case 149:return 0<_.Sd(a,128).length;case 148:return 0<a.jza().length;case 138:return null!=a.k9();case 184:return 0<_.Sd(a,135).length;case 76:return null!=_.Yk(c);case 223:return null!=_.Q(c,54);case 208:return null!=
_.Q(c,48);case 185:return null!=_.Q(c,40);case 224:return null!=_.Q(c,55);case 213:return null!=_.Q(c,50);case 156:return null!=_.Q(c,39);case 61:return null!=_.Q(c,2);case 216:return null!=_.Q(c,52);case 217:return null!=_.Q(c,53);case 77:return null!=_.Q(c,4);case 134:return null!=_.Q(c,34);case 147:return null!=_.Q(c,38);case 81:return null!=_.Q(c,10);case 82:return null!=_.Q(c,11);case 114:return null!=_.Q(c,27);case 133:return null!=_.Q(c,33);case 202:return null!=_.Q(c,47);case 132:return null!=
_.Q(c,32);case 101:return null!=_.Q(c,20);case 201:return null!=_.Q(c,46);case 131:return null!=_.Q(c,31);case 200:return null!=_.Q(c,45);case 130:return null!=_.Q(c,30);case 93:return null!=_.Q(c,17);case 191:return null!=_.Q(c,44);case 146:return null!=_.Q(c,37);case 90:return null!=_.qe(c);case 78:return null!=_.Q(c,7);case 186:return null!=_.Q(c,41);case 222:return null!=_.Q(c,51);case 85:return null!=_.Q(c,12);case 137:return null!=_.Q(c,36);case 209:return null!=_.Q(c,49);case 79:return null!=
_.Q(c,8);case 189:return null!=_.Q(c,42);case 190:return null!=_.Q(c,43);case 80:return null!=_.Q(c,9);case 135:return null!=_.Q(c,35);case 102:return null!=_.Q(c,21);case 69:return null!=_.Q(a,74);case 194:return null!=d&&null!=_.C(d,_.Shc,2);case 193:return null!=d&&null!=_.B(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.c1().length;case 115:return null!=e&&null!=_.Q(e,1);case 116:return null!=e&&null!=_.B(e,2);case 34:return null!=_.Q(a,30)||null!=_.Q(c,3);case 9:return null!=a.SC();
case 91:return null!=a.Fq();case 43:return null!=_.B(a,42)||null!=_.B(a,43);case 187:return null!=a.fl();case 26:return null!=a.Fe();case 108:return 0<_.Sd(a,104).length;case 41:return null!=_.Q(c,5);case 42:return null!=_.B(a,41);case 1005:return 0<_.hl(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.JI();case 44:return null!=_.B(a,45);case 13:return null!=a.TF();case 48:return null!=_.Q(a,36);case 38:return null!=a.Wi();case 49:return 0<_.Sd(a,50).length;case 51:return null!=_.Q(a,
53);case 104:return null!=_.Q(a,102);case 39:return null!=a.Zja();case 87:return null!=_.el(a);case 100:return null!=_.Q(a,98);case 72:return null!=_.B(a,78);case 5:return null!=_.Q(a,6);case 20:return null!=a.af();case 21:return null!=a.getId();case 29:return!(!f||null==_.B(f,1));case 31:return!(!f||null==_.B(f,3));case 92:return!(!f||null==_.B(f,4));case 30:return!(!f||null==f.Ge());case 16:return null!=a.om();case 12:return null!=a.kz();case 211:return null!=h&&null!=_.Q(h,2);case 212:return null!=
h&&null!=_.Q(h,3);case 220:return null!=h&&null!=_.Q(h,5);case 157:return!(!l||!_.Pj(l,_.bl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.kB();case 10:return null!=a.vq();case 50:return null!=_.Q(a,49)||null!=_.Q(a,51)||null!=a.Mm();case 18:return null!=a.Fp();case 14:return 0<_.dl(a).length;case 95:return null!=a.Rl();case 58:return null!=_.Q(a,63);case 103:return null!=_.B(a,101);case 1:return 0<a.kk().length;case 96:return null!=_.Q(a,94);case 1003:return 0<_.gl(a).length;case 75:return null!=
a.Wv();case 94:return null!=a.oN();case 45:return null!=a.Aw();case 124:return null!=_.Q(a,118);case 125:return null!=_.B(a,119);case 1002:return null!=_.fl(a);case 32:return null!=a.Mu();case 67:return null!=a.RJ();case 68:return null!=_.B(a,71);case 73:return null!=_.B(a,79);case 71:return null!=a.K1();case 221:return null!=l&&null!=_.Q(l,9);case 210:return null!=_.jl(a);case 7:return null!=a.Y6();case 122:return null!=_.YK(a);case 66:return null!=_.B(a,69);case 33:return null!=_.Q(a,29);case 24:return null!=
a.Fj();case 25:return null!=a.vy();case 46:return null!=a.Qt();case 192:return null!=k&&null!=_.Q(k,6);case 159:return null!=k&&null!=_.Xd(k);case 154:return null!=k&&null!=_.B(k,1);case 158:return null!=k&&null!=_.Zd(k);case 155:return null!=k&&null!=_.B(k,3);case 52:return 0<_.Sd(a,56).length;case 55:return 0<a.sB().length;case 56:return null!=_.B(a,61);case 4:return null!=a.YA();case 35:return null!=_.Q(a,31);case 57:return null!=_.B(a,62);case 83:return null!=a.yc();case 84:return null!=_.C(a,
_.YJ,86);case 2:return null!=a.getTitle();case 19:return null!=a.Tx()||null!=_.Q(a,44)||null!=_.B(a,90);case 6:return null!=a.Vh();case 98:return null!=a.Xv();case 97:return null!=a.gD();case 27:return null!=a.Wo();case 70:return null!=a.Ai();case 107:return null!=p&&null!=_.B(p,3);case 106:return null!=p&&null!=_.B(p,2);case 105:return null!=p&&null!=p.Ge();case 8:return null!=_.Q(a,9);case 126:return 0<_.Sd(a,120).length;default:throw Error("Rc`"+b);}};
Fnc=function(a,b){return b.every(function(c){return Enc(a,c)})};Gnc=function(a,b,c){c=void 0===c?[]:c;var d=a.concat(c);return b.every(function(e){return(new Set(d)).has(e)})};Hnc=function(a,b){var c=new Set(b.concat(_.Hgc));return a.filter(function(d){return!c.has(d)})};
ZK=function(a,b,c){var d,e;b=b.clone();for(var f=b.getCapabilities(),h=_.m(c),k=h.next();!k.done;k=h.next()){var l=k.value;if(Enc(b,l))if(_.Hdb.has(l)){if(f){var p=a.getCapabilities()||new _.Xk;_.aK(a,p);switch(l){case 76:_.whc(p,_.Yk(f));break;case 223:var q=_.Q(f,54);_.y(p,54,q);break;case 208:_.Rhc(p,_.Q(f,48));break;case 185:var r=_.Q(f,40);_.y(p,40,r);break;case 224:var v=_.Q(f,55);_.y(p,55,v);break;case 213:var z=_.Q(f,50);_.y(p,50,z);break;case 156:var A=_.Q(f,39);_.y(p,39,A);break;case 61:var D=
_.Q(f,2);_.y(p,2,D);break;case 216:var G=_.Q(f,52);_.y(p,52,G);break;case 217:var H=_.Q(f,53);_.y(p,53,H);break;case 77:_.xhc(p,_.Q(f,4));break;case 134:var L=_.Q(f,34);_.y(p,34,L);break;case 147:var N=_.Q(f,38);_.y(p,38,N);break;case 81:_.Dhc(p,_.Q(f,10));break;case 82:_.Ehc(p,_.Q(f,11));break;case 114:var R=_.Q(f,27);_.y(p,27,R);break;case 133:_.Mhc(p,_.Q(f,33));break;case 202:_.Qhc(p,_.Q(f,47));_.Lhc(p,_.Q(f,32));break;case 132:_.Lhc(p,_.Q(f,32));break;case 101:_.Ihc(p,_.Q(f,20));break;case 201:_.Phc(p,
_.Q(f,46));break;case 131:_.Khc(p,_.Q(f,31));break;case 200:var X=_.Q(f,45);_.y(p,45,X);break;case 130:var ia=_.Q(f,30);_.y(p,30,ia);break;case 93:_.Hhc(p,_.Q(f,17));break;case 191:var ja=_.Q(f,44);_.y(p,44,ja);break;case 146:var wa=_.Q(f,37);_.y(p,37,wa);break;case 90:_.Ghc(p,_.qe(f));break;case 78:_.Ahc(p,_.Q(f,7));break;case 186:var ha=_.Q(f,41);_.y(p,41,ha);break;case 222:var Wa=_.Q(f,51);_.y(p,51,Wa);break;case 85:_.Fhc(p,_.Q(f,12));break;case 137:var Ja=_.Q(f,36);_.y(p,36,Ja);break;case 209:var nb=
_.Q(f,49);_.y(p,49,nb);break;case 79:_.Bhc(p,_.Q(f,8));break;case 189:_.Nhc(p,_.Q(f,42));break;case 190:_.Ohc(p,_.Q(f,43));break;case 80:_.Chc(p,_.Q(f,9));break;case 135:var $a=_.Q(f,35);_.y(p,35,$a);break;case 102:_.Jhc(p,_.Q(f,21));break;case 34:var yb=_.Q(b,30);_.y(a,30,yb);var Zb=_.Q(f,3);_.y(p,3,Zb);break;case 41:var Gc=_.Q(b,40);_.y(a,40,Gc);_.yhc(p,_.Q(f,5));break;case 59:_.zhc(p,_.Q(f,6))}}}else if(_.Idb.has(l)){var he=_.C(b,_.UJ,138);if(he){var Pd=_.C(a,_.UJ,138)||new _.UJ;_.J(a,138,Pd);
switch(l){case 194:var Ed=_.C(he,_.Shc,2);_.J(Pd,2,Ed);break;case 193:var vf=_.B(he,1);_.y(Pd,1,vf)}}}else if(_.Jdb.has(l)){var od=_.C(b,_.Zk,111);if(od){var Db=_.C(a,_.Zk,111)||new _.Zk;_.J(a,111,Db);switch(l){case 115:_.Thc(Db,_.Q(od,1));break;case 116:_.Uhc(Db,_.B(od,2))}}}else if(_.Kdb.has(l)){var ie=_.C(b,_.XJ,27);if(ie){var pg=_.C(a,_.XJ,27)||new _.XJ;_.J(a,27,pg);switch(l){case 29:var Ee=_.B(ie,1);_.y(pg,1,Ee);break;case 31:pg.yh(_.B(ie,3));break;case 92:var hi=_.B(ie,4);_.y(pg,4,hi);break;
case 30:pg.zh(ie.Ge())}}}else if(_.Ldb.has(l)){var cf=_.il(b);if(cf){var Di=_.il(a)||new _.Ona;_.J(a,139,Di);switch(l){case 211:var dh=_.Q(cf,2);_.y(Di,2,dh);break;case 212:var pm=_.Q(cf,3);_.y(Di,3,pm);break;case 220:var kf=_.Q(cf,5);_.y(Di,5,kf)}}}else if(_.Mdb.has(l)){var xe=b.Hf();if(xe){var Wf=a.Hf()||new _.Xna;_.J(a,132,Wf);switch(l){case 192:var si=_.Q(xe,6);_.y(Wf,6,si);break;case 159:var Wj=_.Xd(xe);_.J(Wf,5,Wj);break;case 154:var qm=_.B(xe,1);_.y(Wf,1,qm);break;case 158:var Io=_.Zd(xe);
_.y(Wf,4,Io);break;case 155:var rm=_.B(xe,3);_.y(Wf,3,rm)}}}else if(_.Ndb.has(l)){var Kh=b.wg();switch(l){case 157:if(Kh){var Ql=a.wg()||new _.Vna;Inc(a,Ql);Jnc(Ql,_.Pj(Kh,_.bl,8))}break;case 221:if(Kh){var Xj=a.wg()||new _.Vna;Inc(a,Xj);var Wg=_.Q(Kh,9);_.y(Xj,9,Wg)}}}else if(_.Odb.has(l)){var Fj=_.C(b,_.ZJ,103);if(Fj){var Gj=_.C(a,_.ZJ,103)||new _.ZJ;_.J(a,103,Gj);switch(l){case 107:var Yj=_.B(Fj,3);_.y(Gj,3,Yj);break;case 106:Gj.yh(_.B(Fj,2));break;case 105:Gj.zh(Fj.Ge())}}}else switch(l){case 227:var Xh=
_.Q(b,144);_.y(a,144,Xh);break;case 228:var lj=_.B(b,145);_.y(a,145,lj);break;case 74:var Hj=b.Zt();_.Jj(a,83,Hj);break;case 188:var $i=_.Q(b,137);_.y(a,137,$i);break;case 149:var Zj=_.Sd(b,128);_.Cj(a,128,Zj);break;case 148:var Lh=b.jza();_.Jj(a,127,Lh);break;case 138:var Qm=b.k9();_.y(a,126,Qm);break;case 184:var mj=_.Sd(b,135);_.Cj(a,135,mj);break;case 69:var ak=_.Q(b,74);_.y(a,74,ak);break;case 1004:var ml=_.Q(b,108);_.y(a,108,ml);break;case 136:var bk=b.c1();_.Jj(a,125,bk);break;case 9:var Rm=
b.SC();_.y(a,10,Rm);break;case 91:_.kic(a,b.Fq());break;case 43:var nl=_.B(b,42);_.y(a,42,nl);var ol=_.B(b,43);_.y(a,43,ol);break;case 187:_.oic(a,b.fl());break;case 26:a.Jl(b.Fe());break;case 108:var Bf=_.Sd(b,104);_.Cj(a,104,Bf);break;case 42:var ck=_.B(b,41);_.y(a,41,ck);break;case 1005:var Rl=_.hl(b);_.Jj(a,117,Rl);break;case 28:_.cic(a,b.JI());break;case 44:var rk=_.B(b,45);_.y(a,45,rk);break;case 13:var Rk=b.TF();_.y(a,14,Rk);break;case 48:var nc=_.Q(b,36);_.y(a,36,nc);break;case 38:_.eic(a,
b.Wi());break;case 49:var nj=_.Sd(b,50);_.Cj(a,50,nj);break;case 51:var Mh=_.Q(b,53);_.y(a,53,Mh);break;case 104:var Sk=_.Q(b,102);_.y(a,102,Sk);break;case 39:var Yh=b.Zja();_.y(a,35,Yh);break;case 87:var ii=_.el(b);_.y(a,76,ii);break;case 100:var cg=_.Q(b,98);_.y(a,98,cg);break;case 72:var sk=_.B(b,78);_.y(a,78,sk);break;case 5:var Jo=_.Q(b,6);_.y(a,6,Jo);break;case 20:var xh=b.af();_.y(a,21,xh);break;case 21:a.Ob(b.getId());break;case 16:_.aic(a,b.om());break;case 12:var yh=b.kz();_.y(a,13,yh);
break;case 3:_.qG(a,b.getMimeType());break;case 11:var qn=b.kB();_.y(a,12,qn);break;case 10:_.bWb(a,b.vq());break;case 50:var Ij=_.Q(b,49);_.y(a,49,Ij);var Rn=_.Q(b,51);_.y(a,51,Rn);var sm=b.Mm();_.J(a,81,sm);break;case 95:_.mic(a,b.Rl());break;case 18:_.bic(a,b.Fp());break;case 58:var tk=_.Q(b,63);_.y(a,63,tk);break;case 14:_.$hc(a,_.dl(b));break;case 1:_.$J(a,b.kk());break;case 96:var tm=_.Q(b,94);_.y(a,94,tm);break;case 103:var Sn=_.B(b,101);_.y(a,101,Sn);break;case 1003:Knc(a,_.gl(b));break;case 75:_.jic(a,
b.Wv());break;case 94:_.lic(a,b.oN());break;case 45:var Ko=b.Aw();_.y(a,46,Ko);break;case 124:var wq=_.Q(b,118);_.y(a,118,wq);break;case 125:var Em=_.B(b,119);_.y(a,119,Em);break;case 1002:var Fm=_.fl(b).clone();(null===(d=_.fl(a))||void 0===d?0:_.Q(d,3))&&_.y(Fm,3,!0);(null===(e=_.fl(a))||void 0===e?0:_.Q(e,4))&&_.y(Fm,4,!0);_.J(a,100,Fm);break;case 32:var Mj=b.Mu();_.y(a,28,Mj);break;case 67:var $o=b.RJ();_.y(a,70,$o);break;case 68:var ap=_.B(b,71);_.y(a,71,ap);break;case 73:var Nq=_.B(b,79);_.y(a,
79,Nq);break;case 71:var Hr=b.K1();_.y(a,77,Hr);break;case 210:var Gv=_.jl(b);_.y(a,140,Gv);break;case 7:_.Zhc(a,b.Y6());break;case 122:Lnc(a,_.YK(b));break;case 66:var Qs=_.B(b,69);_.y(a,69,Qs);break;case 33:var du=_.Q(b,29);_.y(a,29,du);break;case 24:var gB=b.Fj();_.y(a,22,gB);break;case 25:var Oy=b.vy();_.y(a,23,Oy);break;case 46:_.gic(a,b.Qt());break;case 52:var Py=_.Sd(b,56);_.Cj(a,56,Py);break;case 56:var Rs=_.B(b,61);_.y(a,61,Rs);break;case 55:a.BA(b.sB());break;case 4:a.Ev(b.YA());break;case 35:_.dic(a,
_.Q(b,31));break;case 57:var Oq=_.B(b,62);_.y(a,62,Oq);break;case 83:_.iic(a,b.yc());break;case 84:var Ir=_.C(b,_.YJ,86);_.J(a,86,Ir);break;case 98:a.Qca(b.Xv());break;case 97:_.nic(a,b.gD());break;case 19:var hB=b.Tx();_.y(a,20,hB);_.fic(a,_.Q(b,44));var FD=_.B(b,90);_.y(a,90,FD);break;case 2:a.setTitle(b.getTitle());break;case 6:a.In(b.Vh());break;case 27:_.cWb(a,b.Wo());break;case 70:var Hv=b.Ai();_.y(a,75,Hv);break;case 8:var Qy=_.Q(b,9);_.y(a,9,Qy);break;case 126:var Iv=_.Sd(b,120);_.Cj(a,120,
Iv);break;default:throw Error("Sc`"+l);}}};Mnc=function(a,b){var c=_.Bz[a];return b.filter(function(d){return!c||!c.has(d)})};Nnc=function(a,b,c){a=Mnc(c,a);return Gnc(b,a,_.Hgc)};$K=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};aL=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&$K(a)?(a=a.Hf(),!!a&&"application/vnd.google-apps.folder"===_.B(a,3)):"application/vnd.google-apps.folder"===c};
Onc=function(a){var b=a&&a.getId()||null;a&&$K(a)&&(a=(a=a.Hf())&&_.B(a,1))&&(b=a);return b};Pnc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};Rnc=function(a){return Qnc.some(function(b){return Enc(a,b)})};Snc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(b.hv())})};Tnc=function(a){return Snc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Unc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Tj(d,f)||(d=_.o7a(4).setItem(f),c[e]=d):(d=_.o7a(2).setItem(d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=_.o7a(1).setItem(d),c[e]=d)});return c};Vnc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(Unc(a,b))};_.Wnc=function(a,b){a=0===b?1:a/b;return 1<=a?6:.95<=a?5:.9<=a?4:.8<=a?3:.7<=a?2:1};
Xnc=function(a,b){var c=_.ngc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};Ync=function(a,b){return 0<=b?!a||a<=b:!0};Znc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.Mcc()&&4===b.getType()?"title_natural":_.ufc[b.getType()];b=_.wfc[b.sf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};$nc=function(a,b){var c=a.Mm();c||(c=new _.Pna,b&&_.J(a,81,c));return c};
aoc=function(a){if(aL(a))_.WK($nc(a,!0),!0);else if(aL(a,!0)){var b=a.Hf();if(b=b&&_.Xd(b))_.WK($nc(b,!0),!0),_.WK($nc(a,!0),!0)}};boc=function(a){return!!a.Mm()&&!aL(a)};coc=function(a){var b=[];_.Ia(a,function(c){if(3!=c.hv()){var d=c;if(null!=_.Q(d,49)||null!=_.Q(d,51)||null!=d.Mm())c=c.clone(),_.Dj(c,49),_.Dj(c,51),_.Ej(c,81);b.push(c)}});return b};
eoc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.K?a[b]=c.Jc():c&&c instanceof _.wK?a[b]=c.Jc(function(d){return d?d.Jc():null}):c&&c instanceof doc&&(a[b]=c.Jc())}};goc=function(a){var b=a.slice(0),c=new Set(b);foc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
noc=function(a,b,c){var d=_.C(a,hoc,66);if(d){var e=_.B(d,1),f=_.iK(a);a=_.KI(_.wI(a));e=new _.fj(e);var h=new _.fj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.wj(k,3);_.pj(e,"co",h);h=e.Ke();!f&&0<a&&(h+="u/"+a+"/");e.Gi(h+"_/dataservice/cacheproxy");f=_.B(d,5)||"";if(_.Agc(window.location.href,e.toString())&&f)return e=goc(c),c=_.B(d,6),b="#"+b+"_",d=new _.nI,d.update(e.join(",")),b+=_.Hdc(d.digest()),c&&(b+="&jobset="+c),b=_.Iy(f+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.Vga(b),
void 0),b=new ioc(c.port),c.port.start()):b=new ioc(new Worker(_.Vga(b),void 0)),new joc(new koc(b,!0),1,f,e);c=e.toString();b="cpiframe_"+_.hI();c=_.sh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Oha(_.egc(_.Yf("display: none;")));document.body.appendChild(c);c=_.Ddc(e.O,void 0,e.H,e.W).toString();return new joc(new koc(loc(window.frames[b],c),!0),0,e.toString())}b=new moc;return new joc(new koc(b.O,!1),2,"inline",c,new koc(b.H,!1))};
poc=function(a){var b=new ooc;if(a instanceof _.$I)_.Qj(b,16,bL[0],a);else if(a instanceof _.aJ)_.Qj(b,1,bL[0],a);else if(a instanceof _.bJ)_.Qj(b,2,bL[0],a);else if(a instanceof _.cL)_.Qj(b,17,bL[0],a);else if(a instanceof _.eJ)_.Qj(b,3,bL[0],a);else if(a instanceof _.GK)_.Qj(b,4,bL[0],a);else if(a instanceof _.cJ)_.Qj(b,5,bL[0],a);else if(a instanceof _.iJ)_.Qj(b,6,bL[0],a);else if(a instanceof _.kJ)_.Qj(b,7,bL[0],a);else if(a instanceof _.lJ)_.Qj(b,8,bL[0],a);else if(a instanceof _.oJ)_.Qj(b,9,
bL[0],a);else if(a instanceof _.BJ)_.Qj(b,18,bL[0],a);else if(a instanceof _.FJ)_.Qj(b,10,bL[0],a);else if(a instanceof _.GJ)_.Qj(b,11,bL[0],a);else if(a instanceof _.HJ)_.Qj(b,12,bL[0],a);else if(a instanceof _.MI)_.Qj(b,13,bL[0],a);else if(a instanceof _.KJ)_.Qj(b,14,bL[0],a);else if(a instanceof _.LJ)_.Qj(b,15,bL[0],a);else throw new _.pc("Unsupported request type");return b};
soc=function(a){a=a.map(function(c){var d=new qoc;if(c instanceof _.$I)_.Qj(d,6,dL[0],c);else if(c instanceof _.cL)_.Qj(d,7,dL[0],c);else if(c instanceof _.iJ)_.Qj(d,1,dL[0],c);else if(c instanceof _.FJ)_.Qj(d,2,dL[0],c);else if(c instanceof _.GJ)_.Qj(d,3,dL[0],c);else if(c instanceof _.MI)_.Qj(d,4,dL[0],c);else if(c instanceof _.LJ)_.Qj(d,5,dL[0],c);else throw new _.pc("Unsupported request type");return d});var b=new roc;_.Jj(b,1,a);return b};
toc=function(a){return _.Pj(a,qoc,1).map(function(b){return _.C(b,_.$I,6)||_.C(b,_.iJ,1)||_.C(b,_.FJ,2)||_.C(b,_.GJ,3)||_.C(b,_.MI,4)||_.C(b,_.LJ,5)||_.C(b,_.cL,7)})};woc=function(a){var b=new uoc;if(a instanceof _.CD)_.Qj(b,1,voc[0],a);else if(a instanceof _.DD)_.Qj(b,2,voc[0],a);else throw new _.pc("Unsupported request type");return b};
zoc=function(a){var b=new xoc;if(a instanceof _.fJ)_.Qj(b,1,yoc[0],a);else if(a instanceof _.mJ)_.Qj(b,2,yoc[0],a);else if(a instanceof _.MJ)_.Qj(b,3,yoc[0],a);else throw new _.pc("Unsupported request type");return b};eL=function(a,b,c){return b?new c(JSON.parse(a)):a};Aoc=function(a){a={t:a.title,d:a.description,c:a.od,fi:a.c9,dti:a.l0,a:a.aQ?a.aQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.M8})}):void 0};return JSON.stringify(a)};
Boc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,od:a.c,c9:a.fi,l0:a.dti,aQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,M8:b.ec}}):void 0}};Coc=function(a,b,c){a=a?1:2;a=_.cd(_.bd(new _.ad,12),a);var d=(new _.ff).In(!0);d=_.y(d,17,!0);a=_.gf(d,a);c&&_.Jl(a,c);c=new _.sfc;b&&_.ugc(c,b);return _.vgc(_.xgc(new _.CI,a),c)};Doc=function(a){return a.map(function(b){return b.getItem()})};
Eoc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};Foc=function(a,b){var c=new _.fj(_.E(b,16,"")+"/open"),d=a.getId();$K(a)&&(d=Onc(a));_.pj(c,"id",d);_.pj(c,"authuser",_.KI(_.wI(b)));_.S(b,89,!1)&&_.P(a,140)&&_.pj(c,"resourcekey",_.jl(a));return c.toString()};Goc=function(a){return String.fromCharCode(10>a?48+a:87+a)};Hoc=function(a){var b=Array(18);b[0]="0";b[1]="x";for(var c=0;8>c;c++){var d=a.charCodeAt(7-c);b[2*c+2]=Goc(d>>4);b[2*c+3]=Goc(d&15)}return b.join("")};
Ioc=function(a){_.Qf("drive.DebugUtil.printFindById",function(c){a.SM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.Qf("drive.DebugUtil.getLogs",function(){return _.njc(a.Uf())});_.Qf("drive.DebugUtil.printLogs",function(){window.console.log(_.njc(a.Uf()))});_.Qf("drive.DebugUtil.printRequestHistory",function(){a.eR().then(function(c){c.forEach(function(d){window.console.log(_.B(d,1));window.console.log(_.B(d,2))})})});_.Qf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.S(b,1,!1)&&(_.Qf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.Qf("drive.DebugUtil.setOffline",function(c){return void a.Ll(c)}))};Loc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.tf;_.uf(b,305);_.wf(b,!0);_.y(b,3,2);var c=new _.BD;_.J(c,1,b);Joc(c,[7]);a=a.then(function(d){return d.Re(c)}).then(Koc);return _.fi(a)};
Koc=function(a){a=_.Pj(a,_.op,3);var b=new Moc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.B(d,2))&&(c=_.Ug(c.Za()),_.y(b,3,c))});return"number"===typeof _.B(b,3)?b:null};Ooc=function(a,b){var c=Noc(a.lm,b.Ac());if(c){var d=c.getItem(),e=d.Wv();if(e){var f=e.hR(),h=_.ua(f,function(k){return k.getId()===_.B(b,2)});_.Whc(e,f);h||(f=_.Pj(e,_.Jk,3),_.ua(f,function(k){return k.getId()===_.B(b,2)}),_.Xhc(e,f));_.Vhc(e,(_.B(e,1)||1)-1);a.ql([d],c.V)}}};
Qoc=function(a,b,c){if(b=Noc(a.lm,b.Ac())){var d=b.getItem(),e=d.Wv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Pj(e,_.Jk,3);f.push(c);_.Ga(f,Poc);_.Xhc(e,f)}else f=e.hR(),f.push(c),_.Ga(f,Poc),_.Whc(e,f);_.Vhc(e,(_.B(e,1)||0)+1);a.ql([d],b.V)}}};Soc=function(a){return a.map(function(b){var c=new _.Mub;c=_.y(c,3,Roc[b.serviceName]);return _.y(c,2,Number(b.bytesUsed))})};
Uoc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return Toc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Yoc=function(a){var b=a.json.exportJob,c=Voc[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.df(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.df(b.failedItemInfos||[],function(l){var p=_.qG((new _.cl).Ob(l.docId).setTitle(l.title),l.mediaType);p=(new _.Woc).setItem(p);p=_.y(p,3,l.relativePath);return _.y(p,4,l.cause)});return new Xoc(c,d,k,f,h,e,a,b)};
$oc=function(a){var b={},c=a.getKey(),d=c&&_.B(c,2);b.key=d;b.value=a.Za();(a=c&&_.pp(c))&&(b.namespace=Zoc[a]);return b};apc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Zoc[a[c]]);return b};bpc=function(a){return"kind,defaultAppIds,items("+a+")"};cpc=function(a,b){return _.S(b,93,!1)?a+",adminSecureLinkSetting":a};dpc=function(a,b){var c;return(null===(c=_.LI(b))||void 0===c?0:_.S(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
epc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
ipc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.LI(b))||void 0===c?0:_.S(c,18,!1))||(null===(d=_.LI(b))||void 0===d?0:_.S(d,17,!1)))null===(e=_.LI(b))||void 0===e?void 0:_.y(e,15,!0);_.y(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.S(f,61,!1),k=_.LI(f),l=!!k&&_.S(k,10,!1);if(_.VI(_.wI(f))||!h&&!l)_.y(f,61,!1),_.Ej(f,66),k&&_.y(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.C(f,hoc,66);p&&_.B(p,1)||(h=!1);_.iK(f)&&!_.S(f,52,!1)&&(h=!1)}h?k&&_.y(k,10,!1):(_.y(f,61,!1),_.Ej(f,66));
f=h||l}if(f)return f=_.S(b,61,!1)?3:5,a=new fL(a,b,f),new fpc(a);f=_.VI(_.wI(b))?2:1;a=new gL(a,b,f,void 0,void 0,void 0);return _.VI(_.wI(b))?new gpc(a):new hpc(a)};kpc=function(a){return _.ue(a).Hg(_.S(a.get(_.gp),19,!1)?jpc:_.zVa)};lpc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};mpc=function(a,b){return _.Jj(a,1,b)};XK=function(a){return _.B(a,11)};npc=[1];opc=function(a){_.K.call(this,a,-1,npc)};_.M(opc,_.K);
opc.prototype.fha=function(a){_.Rj(this,1,a,_.Jk,void 0)};var ppc=function(a){var b=new opc;return _.Jj(b,1,a)},qpc=function(a,b){return _.J(a,1,b)},rpc=function(a,b){_.Jj(a,2,b)},spc=function(a,b){_.J(a,6,b)},tpc=function(a,b){_.J(a,7,b)},upc=function(a,b){return _.Qj(a,3,_.Nk[0],b)},vpc=function(a){_.K.call(this,a)};_.M(vpc,_.K);var wpc=function(a){_.K.call(this,a)};_.M(wpc,_.K);var xpc=function(a){_.K.call(this,a)};_.M(xpc,_.K);var ypc=function(a){_.K.call(this,a)};_.M(ypc,_.K);
var zpc=function(a){_.K.call(this,a)};_.M(zpc,_.K);var Apc=function(a){_.K.call(this,a)};_.M(Apc,_.K);var Bpc=function(a){_.K.call(this,a)};_.M(Bpc,_.K);var Cpc=function(a){_.K.call(this,a)};_.M(Cpc,_.K);var Dpc=function(a){_.K.call(this,a)};_.M(Dpc,_.K);var Epc=function(a){_.K.call(this,a)};_.M(Epc,_.K);var Fpc=function(a){_.K.call(this,a)};_.M(Fpc,_.K);var Gpc=function(a){_.K.call(this,a)};_.M(Gpc,_.K);var Hpc=function(a){_.K.call(this,a)};_.M(Hpc,_.K);var Ipc=function(a){_.K.call(this,a)};
_.M(Ipc,_.K);var Jpc=function(a,b){_.Jj(a,1,b)},Kpc=function(a,b){return _.y(a,2,b)},Lpc=function(a,b){return _.J(a,3,b)},Mpc=function(a,b){return _.y(a,4,b)},Npc=[[1,2,3,4]],Opc=function(a){_.K.call(this,a,-1,void 0,Npc)};_.M(Opc,_.K);var Ppc=function(a,b){_.Jj(a,1,b)},Qpc=function(a,b){return _.J(a,2,b)},Rpc=[[1]],Spc=function(a){_.K.call(this,a,-1,void 0,Rpc)};_.M(Spc,_.K);
var Tpc=function(a,b){_.Jj(a,1,b)},Upc=function(a,b){return _.J(a,4,b)},Vpc=function(a,b){_.J(a,5,b)},Wpc=function(a,b){_.Jj(a,2,b)},Xpc=function(a,b){_.Jj(a,4,b)},Ypc=function(a,b){return _.J(a,5,b)},Zpc=[[1,2]],$pc=function(a){_.K.call(this,a,-1,void 0,Zpc)};_.M($pc,_.K);var aqc=function(a,b){_.Jj(a,1,b)},bqc=function(a,b){return _.J(a,2,b)},cqc=[[1]],dqc=function(a){_.K.call(this,a,-1,void 0,cqc)};_.M(dqc,_.K);
var eqc=function(a,b){_.Jj(a,2,b)},fqc=function(a){var b=new _.Uk;return _.Jj(b,3,a)},gqc=[[1,2]],hqc=function(a){_.K.call(this,a,-1,void 0,gqc)};_.M(hqc,_.K);hqc.prototype.zg=function(a){return _.Qj(this,1,gqc[0],a)};var iqc=[1],jqc=function(a){_.K.call(this,a,-1,iqc)};_.M(jqc,_.K);jqc.prototype.Ip=function(){return _.B(this,2)};var kqc=function(a,b){_.Jj(a,1,b)},lqc=function(a,b){return _.y(a,2,b)},mqc=function(a,b){return _.J(a,3,b)},nqc=[[1]],oqc=function(a){_.K.call(this,a,-1,void 0,nqc)};
_.M(oqc,_.K);var pqc=[2],qqc=function(a){_.K.call(this,a,-1,pqc)};_.M(qqc,_.K);var rqc=function(a,b){_.Jj(a,2,b)},sqc=function(a,b){return _.J(a,3,b)},tqc=[[1]],uqc=function(a){_.K.call(this,a,-1,void 0,tqc)};_.M(uqc,_.K);uqc.prototype.zg=function(a){return _.Qj(this,1,tqc[0],a)};var vqc=function(a,b){_.Jj(a,1,b)},wqc=function(a,b){return _.Jj(a,2,b)},xqc=[[1,2]],yqc=function(a){_.K.call(this,a,-1,void 0,xqc)};_.M(yqc,_.K);
var zqc=function(a,b){_.Jj(a,1,b)},Aqc=function(a,b){return _.J(a,2,b)},Bqc=[[1]],Cqc=function(a){_.K.call(this,a,-1,void 0,Bqc)};_.M(Cqc,_.K);var Dqc=function(a,b){return _.J(a,1,b)},Eqc=function(a,b){return _.y(a,2,b)},Fqc=function(a,b){return _.y(a,3,b)},Gqc=function(a){_.K.call(this,a)};_.M(Gqc,_.K);Jnc=function(a,b){_.Jj(a,8,b)};Inc=function(a,b){return _.J(a,73,b)};Knc=function(a,b){_.Jj(a,107,b)};_.YK=function(a){return _.C(a,Gqc,109)};Lnc=function(a,b){_.J(a,109,b)};
Hqc=function(a){var b=new _.nk;var c=_.B(a,1);null!=c&&_.vk(b,1,c);c=_.B(a,2);null!=c&&_.vk(b,2,c);return _.pk(b)};Iqc=function(a){_.K.call(this,a)};_.M(Iqc,_.K);var hoc=function(a){_.K.call(this,a)};_.M(hoc,_.K);var Jqc=[11],Kqc=function(a){_.K.call(this,a,-1,Jqc)};_.M(Kqc,_.K);var hL=function(a){_.K.call(this,a)};_.M(hL,_.K);hL.prototype.getKey=function(){return _.B(this,2)};hL.prototype.ht=function(){return _.P(this,2)};iL=function(a){return _.E(a,4,"en")};
_.jL=function(a){return _.C(a,Kqc,34,1)};kL=function(a,b,c){if(b.length!=c.length)return!0;for(var d=0;d<b.length;d++)if(!a.O(b[d]||void 0,c[d]||void 0))return!0;return!1};Lqc=function(a,b){return _.y(a,5,b)};_.Mqc=function(a,b){return _.y(a,2,b)};_.Nqc=function(a,b){return _.y(a,3,b)};_.Rqc=function(a,b){return _.y(a,1,b)};_.Sqc=function(a,b){return _.y(a,2,b)};_.Tqc=function(a,b){return _.Jj(a,5,b)};_.Uqc=function(a,b){return _.y(a,6,b)};_.Vqc=function(a,b){return _.y(a,7,b)};
_.Wqc=function(a,b){return _.y(a,8,b)};_.Xqc=function(a,b){return _.y(a,10,b)};_.Yqc=function(a,b){return _.y(a,15,b)};Zqc=[2];_.$qc=function(a){_.K.call(this,a,-1,Zqc)};_.M(_.$qc,_.K);_.$qc.prototype.Ph=function(){return _.B(this,1)};_.arc=function(a,b){return _.J(a,1,b)};brc=function(a,b){return _.y(a,2,b)};crc=function(a,b){return _.y(a,3,b)};drc=function(a,b){_.Jj(a,4,b)};_.erc=function(a,b){_.J(a,8,b)};_.frc=function(a,b){_.J(a,9,b)};grc=function(a){_.K.call(this,a)};_.M(grc,_.K);
grc.prototype.Za=function(){return _.Aj(this,1)};grc.prototype.Jb=function(a){return _.Lj(this,1,a,0)};Joc=function(a,b){_.Cj(a,3,b)};_.hrc=function(a){_.K.call(this,a)};_.M(_.hrc,_.K);_.hrc.prototype.getId=function(){return _.B(this,1)};_.hrc.prototype.Ob=function(a){return _.y(this,1,a)};_.hrc.prototype.Ge=function(){return _.B(this,4)};_.hrc.prototype.zh=function(a){return _.y(this,4,a)};_.GK=function(a){_.K.call(this,a)};_.M(_.GK,_.K);_.GK.prototype.getTitle=function(){return _.B(this,1)};
_.GK.prototype.setTitle=function(a){return _.y(this,1,a)};_.GK.prototype.ve=function(){return _.C(this,_.tf,2)};var irc=function(a,b){return _.Cj(a,9,b)},jrc=function(a,b){return _.Cj(a,10,b)},krc=function(a,b){return _.y(a,36,b)},lrc=function(a,b){return _.Jj(a,38,b)},mrc=function(a,b){return _.y(a,2,b)},nrc=function(a,b){return _.J(a,3,b)},orc=function(){var a=new _.FI;return _.y(a,5,!0)},prc=function(a){_.K.call(this,a)};_.M(prc,_.K);var qrc=function(a){_.K.call(this,a)};_.M(qrc,_.K);
var rrc=function(a){_.K.call(this,a)};_.M(rrc,_.K);var src=function(a){_.K.call(this,a)};_.M(src,_.K);var trc=function(a){_.K.call(this,a)};_.M(trc,_.K);var urc=function(a){_.K.call(this,a)};_.M(urc,_.K);urc.prototype.wy=function(){return _.Q(this,1)};urc.prototype.Tn=function(){return _.B(this,5)};urc.prototype.Lm=function(){return _.B(this,6)};urc.prototype.Bt=function(a){return _.y(this,6,a)};
var vrc=function(a,b){return _.y(a,1,b)},wrc=function(a,b){return _.y(a,3,b)},xrc=function(a,b){return _.y(a,4,b)},yrc=function(a,b){_.y(a,7,b)},zrc=function(a){_.K.call(this,a)};_.M(zrc,_.K);zrc.prototype.wy=function(){return _.Q(this,2)};var Arc=function(a,b){_.y(a,1,b)},Brc=function(a){_.K.call(this,a)};_.M(Brc,_.K);Brc.prototype.Lm=function(){return _.B(this,3)};Brc.prototype.Bt=function(a){return _.y(this,3,a)};Brc.prototype.Tn=function(){return _.B(this,4)};
var Crc=function(a){_.K.call(this,a)};_.M(Crc,_.K);var Drc=function(a){_.K.call(this,a)};_.M(Drc,_.K);var Erc=function(a,b){return _.y(a,1,b)},Frc=function(a,b){return _.y(a,2,b)},Grc=function(a,b){_.y(a,3,b)},Hrc=[1,3,5],Irc=function(a){_.K.call(this,a,-1,Hrc)};_.M(Irc,_.K);Irc.prototype.SE=function(){return _.Sd(this,1)};Irc.prototype.wy=function(){return _.Q(this,2)};Irc.prototype.Tn=function(){return _.B(this,7)};Jrc=function(a,b){_.y(a,2,b)};Krc=function(a,b){_.Nj(a,5,b,void 0)};
Lrc=function(a,b){_.y(a,6,b)};Mrc=function(a,b){_.y(a,7,b)};_.Nrc=function(a,b){_.J(a,2,b)};Orc=function(a,b,c){_.mK(a,b,c,"warning")};Prc=function(a){return[].concat(_.md(a.O))};Qrc=function(a){return a.H.concat([].concat(_.md(a.O)))};Rrc=function(a,b){var c=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.H.includes(d)||a.O.has(d)||(a.O.add(d),c.add(d));return[].concat(_.md(c))};lL=function(a){var b=_.uK(a).qd();b||(b=new _.Lic,a=_.uK(a),_.J(a,1,b));return b};
Src=function(a){var b=_.C(_.uK(a),Irc,3);b||(b=new Irc,a=_.uK(a),_.J(a,3,b));return b};mL=function(a){var b=_.C(_.uK(a),urc,16);b||(b=new urc,a=_.uK(a),_.J(a,16,b));return b};Trc=function(a){var b=_.C(_.uK(a),rrc,7);b||(b=new rrc,a=_.uK(a),_.J(a,7,b));return b};Urc=function(a){var b=_.C(_.uK(a),trc,12);b||(b=new trc,a=_.uK(a),_.J(a,12,b));return b};Vrc=function(a){var b=_.C(_.uK(a),zrc,17);b||(b=new zrc,a=_.uK(a),_.J(a,17,b));return b};
Wrc=function(a){var b=_.C(_.uK(a),Drc,21);b||(b=new Drc,a=_.uK(a),_.J(a,21,b));return b};
Xrc=function(a){if(a instanceof _.pI)return 2;if(a instanceof _.nG)return 10;if(a instanceof _.ff)return _.uJ(a)?3:_.vJ(a)?7:_.wJ(a)?8:1;if(a instanceof _.xA)return 9;if(a instanceof _.xG)return 11;if(a instanceof _.DJ)return 15;if(a instanceof _.xI)return 6;if(a instanceof _.yJ){a=a.getType();if(1==a)return 5;if(2==a)return 16;if(4==a)return 17;if(3==a)return 18}else{if(a instanceof _.BD)return 4;if(a instanceof _.eA)return 12;if(a instanceof _.pG)return 13}return 0};
Yrc=function(a){var b=null;a instanceof _.qB||"undefined"!=typeof _.wK&&a instanceof _.wK||"undefined"!=typeof _.xK&&a instanceof _.xK?b=a.Xe()||0:"undefined"!=typeof _.zK&&a instanceof _.zK||"undefined"!=typeof _.AK&&a instanceof _.AK||"undefined"!=typeof _.BK&&a instanceof _.BK||"undefined"!=typeof _.CK&&a instanceof _.CK||"undefined"!=typeof _.DK&&a instanceof _.DK?b=a.Me:"undefined"!=typeof _.yK&&a instanceof _.yK&&(b=a.Xe());return b||0};
nL=function(a,b,c){return a.V&&_.fkc(a)?(a=_.bkc(a.V,b,0),c&&_.zgc(a,c),a):null};Zrc=function(a){a.V&&_.fkc(a)&&(a=a.V,a.H.yP()&&a.H.OZ())};$rc=function(a){var b=new _.qJ;return _.y(b,1,a)};asc=function(a,b){return _.J(a,2,b)};bsc=function(a,b){return _.J(a,1,b)};csc=function(a,b){a.ha=b};dsc=[2];oL=function(a){_.K.call(this,a,-1,dsc)};_.M(oL,_.K);oL.prototype.Bb=function(){return _.B(this,1)};oL.prototype.Bc=function(a){return _.y(this,1,a)};oL.prototype.fha=function(a){_.Rj(this,2,a,_.Jk,void 0)};
oL.prototype.Vj=function(){return _.B(this,3)};var esc=[2],fsc=function(a){_.K.call(this,a,-1,esc)};_.M(fsc,_.K);fsc.prototype.Bb=function(){return _.B(this,1)};fsc.prototype.Bc=function(a){return _.y(this,1,a)};fsc.prototype.Vj=function(){return _.B(this,3)};
var gsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.Cn,a.H.promise):null},hsc=function(a){for(var b=[],c=_.m(a.W),d=c.next();!d.done;d=c.next()){d=_.m(d.value);d.next();d=d.next().value;d=_.m(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.xv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.hj);for(e=d.next();!e.done;e=d.next())(e=e.value.xv.config.timestamp)&&c.push(e);_.ya(b,c)}return b},wnc=function(a,b){return _.Cj(a,1,b)},isc=function(a){if(8192>=
a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(a,c,c+8192));return b},jsc=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=a.er(!1);b=b.er(!1);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.constructor.messageId&&(d[0]=a.constructor.messageId,e=1);for(;e<f;e++)_.Oaa(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)},ksc={SUCCESS:1,j6b:2,iYb:3,OTb:4,w6b:5,N0b:6,E0b:7,wUb:8,
h5b:9,w5b:10,i6b:11,bWb:12,GVb:13,iZb:14,CXb:15,KVb:16,JVb:17,PVb:18,MVb:19,NVb:20,N5b:21,s6b:22,f1b:23,k0b:24,oUb:25,PERMISSION_DENIED:26,A_b:27,BUb:28,AUb:29,INTERRUPTED:30,F1b:31,Z1b:32,qWb:33,wWb:34,o5b:35,DWb:36,DXb:37,vWb:38,D0b:39,iVb:40,A1b:41,a2b:42,f5b:43,UUb:44,hVb:45,AXb:46,v_b:47,B0b:48,X0b:49,B1b:50,Z4b:51,HVb:52,g5b:53,e5b:54,$Ub:55,XUb:56,OWb:57,T_b:58,C1b:59,VZb:60,r3b:61,f4b:62,M4b:63,xZb:64,m0b:65,z6b:66,FWb:67,EXb:68,h6b:69,CZb:70,zUb:71,MUb:72,n4b:73,N4b:74,J4b:75,H4b:76,b4b:190,
G4b:191,o4b:192,u4b:126,q4b:128,r4b:129,s4b:130,t4b:131,v4b:132,w4b:133,A3b:127,x3b:134,y3b:135,C3b:136,D3b:137,E3b:138,z3b:194,B3b:195,F3b:196,w3b:197,e4b:189,q3b:139,s3b:140,G3b:141,H3b:142,T3b:143,W3b:144,X3b:145,Y3b:146,Z3b:147,$3b:148,a4b:149,d4b:150,j4b:151,l4b:152,m4b:153,p4b:154,x4b:155,z4b:156,A4b:157,B4b:158,C4b:159,D4b:160,E4b:161,I4b:162,L4b:163,O4b:164,t3b:165,u3b:166,v3b:167,o3b:168,p3b:169,K3b:170,I3b:171,J3b:172,L3b:173,M3b:174,N3b:175,O3b:176,P3b:177,Q3b:178,R3b:179,S3b:180,U3b:181,
V3b:182,c4b:106,k4b:183,y4b:184,F4b:185,g4b:186,h4b:187,i4b:188,K4b:244,z1b:77,m6b:78,r6b:79,H_b:80,nZb:81,pZb:82,NWb:83,zXb:84,B_b:85,G5b:86,uWb:87,EZb:88,DZb:89,R4b:90,P4b:91,Q4b:92,n6b:93,wVb:94,vVb:95,sVb:96,uVb:97,tVb:98,y6b:99,$2b:100,SVb:101,LVb:102,QVb:103,OVb:104,RVb:105,FXb:107,t5b:108,U2b:109,b6b:110,IXb:111,HXb:112,$Zb:113,a_b:114,e2b:115,aVb:116,h_b:117,XWb:118,o6b:119,J0b:120,K0b:121,jZb:193,IVb:122,kWb:123,mZb:124,f0b:125,FZb:198,K1b:199,uZb:200,rTb:201,AZb:202,yZb:203,CUb:204,X6b:205,
o_b:206,pVb:207,G0b:208,$1b:209,W2b:210,STb:211,YZb:212,e_b:213,j5b:214,i5b:215,wZb:216,hZb:217,vZb:218,HWb:219,x5b:220,IWb:221,WZb:222,q5b:223,I6b:224,q0b:225,p5b:226,mWb:227,n_b:228,MWb:229,kVb:230,E5b:231,h0b:232,FILE_TOO_LARGE:233,BZb:234,GWb:235,wXb:236,W1b:237,n0b:238,cTb:239,lVb:240,u0b:241,g3b:242,sWb:243,pTb:245,qZb:246,Z0b:247,oZb:248,G_b:249,l0b:250,BXb:251,pYb:252,ZZb:253,YUb:254,GXb:255,x6b:256,bYb:257,Q_b:258,l2b:259,J1b:260,MZb:261,XVb:262,tWb:263,nUb:264,z_b:265,v6b:266,gTb:267,fUb:268,
eUb:269,C0b:270,aTb:271,bTb:272,qUb:273,oVb:274},pL=function(a,b){_.oi.call(this,"Ea");this.error=a;this.H=b};_.M(pL,_.oi);lsc={p6b:0,R_b:1,h1b:2,V0b:3,HZb:4,PTb:5,S_b:6,W0b:7,PYb:8,mUb:9,T0b:10};_.qL=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.V=a;this.va=b;this.Fa=c;this.request=e;this.Ba=f;this.H=[];this.items=[];this.ha=!0;this.O=!1;this.suggestionSessionId=null;this.Ha=d;this.status=6;this.ka=wnc(new _.UK,[1]);this.limit=e.zi();this.Me=0;_.De(this,function(){h.O=!1;h.H=[]});_.x7a++};
_.M(_.qL,_.xi);_.g=_.qL.prototype;_.g.xi=function(){return String(_.Ca(this))};_.g.isActive=function(){return this.O};_.g.activate=function(){this.O=!0;_.pa(this.items)&&6===this.Bb()&&this.Oj()||msc(this)};_.g.qd=function(){return this.request};_.g.zi=function(){return this.limit};_.g.Bb=function(){return this.status};_.g.Nq=function(){return this.ka};_.g.Oj=function(){return this.ha};
_.g.yr=function(){var a=_.w7a().my(this.H,this.items),b=(new _.oI).Bc(this.Bb());a=_.Jj(b,2,a);this.H=this.items;return a};_.g.Gr=function(a){this.O&&(this.limit+=a||50,this.Ha(this.xi(),this.limit))};var nsc=function(a,b){return a.Bb()!==b.Bb()||kL(_.w7a(),a.items,b.wd())},osc=function(a,b){a.items=b.wd();a.status=b.Bb();_.BI(a.Ba)&&(a.ka=xnc(a.status,a.items));a.ha=b.kl();a.Me=b.Xe()};
_.qL.prototype.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a query after "+a.H+" retries.",a.error)))};_.qL.prototype.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};_.qL.prototype.vu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+rL(this.V,this.qd());return _.fi(this.va.then(function(d){return d.ILb(a,b,c.qd(),c.zi(),c.items)}))};
var msc=function(a){a.isActive()&&(a.log("Livelist "+a.xi()+" returning "+a.items.length+". Status: "+(_.Za(ksc)[a.Bb()]+". Datasource: ")+(_.Za(lsc)[a.Me]+". Query: ")+(rL(a.V,a.request)+" ")+ync(a.items)),psc(a,a.items,a.request),a.dispatchEvent(new _.oi(_.Bc,a)))},psc=function(a,b,c){if(_.uJ(c))c="quick access";else if(_.vJ(c))c="people predict";else if(_.wJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.xi()+" returning "+a.items.length+
" for "+(c+": "+b))};_.qL.prototype.refresh=function(){};_.qL.prototype.log=function(a){this.Fa.info(this.W,a)};_.qL.prototype.Ya=function(){_.y7a++;_.xi.prototype.Ya.call(this)};var qsc=function(){this.map={};this.status=6;this.Me=null};_.g=qsc.prototype;_.g.Bb=function(){return this.status};_.g.Bc=function(a){this.status=a};_.g.Xe=function(){return this.Me};_.g.Fi=function(a){this.Me=a};_.g.eq=function(){return this.map};var rsc=function(a,b){a.map=b};
qsc.prototype.Jc=function(a){var b=[];_.La(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Me,me:b})};var ssc=function(a,b,c){c=JSON.parse(c);a.Bc(c.s);a.Fi(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},tsc=function(){qsc.apply(this,arguments)};_.M(tsc,qsc);_.wK=function(){qsc.apply(this,arguments)};_.M(_.wK,qsc);usc=[2,6];_.xK=function(a){_.K.call(this,a,-1,usc)};_.M(_.xK,_.K);_.g=_.xK.prototype;
_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.wd=function(){return _.Pj(this,_.cl,2)};_.g.Tw=function(a){return _.Jj(this,2,a)};_.g.qh=function(a,b){return _.Rj(this,2,a,_.cl,b)};_.g.Vj=function(){return _.B(this,3)};_.g.kl=function(){return _.S(this,4,!0)};var vsc=function(a,b){return _.Jj(a,6,b)};_.xK.prototype.Yf=function(){return _.B(this,10)};_.xK.prototype.vP=function(a){return _.y(this,10,a)};_.xK.prototype.Xe=function(){return _.B(this,9)};
_.xK.prototype.Fi=function(a){return _.y(this,9,a)};var Cnc=[1004,1005,1002,1003],Qnc=[1002,1003,1005],sL=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.ta=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=wnc(new _.UK,[1]);this.log("Creating find by ids live map: "+this.request.hn().join(", "));_.De(this,function(){h.O=!1;h.H=[]});_.mkb++};_.M(sL,_.xi);_.g=sL.prototype;_.g.xi=function(){return String(_.Ca(this))};
_.g.activate=function(){this.O=!0;_.Ta(this.items)&&6===this.status||wsc(this)};_.g.qd=function(){return this.request};_.g.getData=function(){this.H=this.items;var a=new _.wK;_.BI(this.V)?a.Bc(Snc(Object.values(this.items))?6:this.status):a.Bc(this.status);a.map=this.items;return a};_.g.yr=function(){var a=Unc(this.H,this.items),b=new tsc;b.Bc(this.status);b.map=a;this.H=this.items;return b};_.g.Bb=function(){return this.status};_.g.Nq=function(){return this.W};
_.g.gT=function(a){xsc(a);var b=this.request;this.request=a;this.ta(this.xi(),b,a)};_.g.update=function(a){var b=this;0<=_.na(this.qd().hn(),"root")?this.ma.addCallback(function(c){var d=a.eq()[c];d&&(_.Ua(a.map,c),a.map.root=d);ysc(b,a)}):ysc(this,a)};var ysc=function(a,b){if(a.status!==b.Bb()||Vnc(a.items,b.eq()))a.status=b.Bb(),a.items=b.eq(),_.BI(a.V)&&(a.W=xnc(a.status,Object.values(a.items))),wsc(a)};
sL.prototype.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};sL.prototype.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};var wsc=function(a){a.O&&(a.log("Livelist "+a.xi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.Za(ksc)[a.Bb()]+". Query: ")+(rL(a.ka,a.request)+" ")+ync(Object.values(a.items))),a.dispatchEvent(new _.oi(_.Bc,a)))};
sL.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};sL.prototype.Ya=function(){_.nkb++;_.xi.prototype.Ya.call(this)};var zsc=[1,2],Asc=function(a){_.K.call(this,a,-1,zsc)};_.M(Asc,_.K);_.Bsc=function(a){_.K.call(this,a)};_.M(_.Bsc,_.K);_.Bsc.prototype.Bb=function(){return _.B(this,1)};_.Bsc.prototype.Bc=function(a){return _.y(this,1,a)};_.Bsc.prototype.jn=function(){return _.C(this,_.oG,2)};var Csc=function(a){_.oi.call(this,a)};_.M(Csc,_.oi);
var Dsc=[5,7,9],Esc=function(a){_.K.call(this,a,-1,Dsc)};_.M(Esc,_.K);_.g=Esc.prototype;_.g.getUser=function(){return _.C(this,_.Jk,1)};_.g.RA=function(a){_.y(this,2,a)};_.g.setBooleanValue=function(a){return _.y(this,3,a)};_.g.setTextValue=function(a){return _.y(this,4,a)};_.g.Soa=function(a){return _.Cj(this,5,a)};_.g.addTextValues=function(a,b){return _.Nj(this,5,a,b)};_.g.setSelectionValue=function(a){return _.y(this,6,a)};_.g.Ooa=function(a){return _.Cj(this,7,a)};
_.g.addSelectionValues=function(a,b){return _.Nj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.y(this,8,a)};_.g.Goa=function(a){return _.Cj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.Nj(this,9,a,b)};var Fsc=[7,10,12,16,13,3],uL=function(a){_.K.call(this,a,-1,Fsc)};_.M(uL,_.K);var vL=function(a){return _.B(a,4)};_.g=uL.prototype;_.g.RA=function(a){_.y(this,4,a)};_.g.setBooleanValue=function(a){return _.y(this,5,a)};_.g.B9a=function(){return _.B(this,6)};
_.g.setTextValue=function(a){return _.y(this,6,a)};_.g.Soa=function(a){return _.Cj(this,7,a)};_.g.addTextValues=function(a,b){return _.Nj(this,7,a,b)};_.g.z9a=function(){return _.B(this,8)};_.g.setLongTextValue=function(a){return _.y(this,8,a)};_.g.A9a=function(){return _.B(this,9)};_.g.setSelectionValue=function(a){return _.y(this,9,a)};_.g.cMa=function(){return _.Sd(this,10)};_.g.Ooa=function(a){return _.Cj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.Nj(this,10,a,b)};
_.g.y9a=function(){return _.B(this,11)};_.g.setIntegerValue=function(a){return _.y(this,11,a)};_.g.Goa=function(a){return _.Cj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.Nj(this,12,a,b)};_.g.C9a=function(){return _.C(this,_.Jk,15)};_.g.setUserValue=function(a){return _.J(this,15,a)};_.g.BWa=function(){return _.Pj(this,_.Jk,16)};var Gsc=function(a,b){_.Jj(a,16,b)};uL.prototype.addUserValues=function(a,b){return _.Rj(this,16,a,_.Jk,b)};uL.prototype.O=function(){return _.B(this,17)};
uL.prototype.setDateStringValue=function(a){return _.y(this,17,a)};uL.prototype.V=function(){return _.P(this,17)};var Hsc=function(a,b){_.Jj(a,13,b)};uL.prototype.getId=function(){return _.B(this,14)};uL.prototype.Ob=function(a){return _.y(this,14,a)};uL.prototype.getName=function(){return _.B(this,1)};uL.prototype.$c=function(a){return _.y(this,1,a)};var Isc=[2],wL=function(a){_.K.call(this,a,-1,Isc)};_.M(wL,_.K);wL.prototype.getName=function(){return _.B(this,1)};
wL.prototype.$c=function(a){return _.y(this,1,a)};wL.prototype.O=function(){return _.Pj(this,uL,2)};var Jsc=function(a,b){_.Jj(a,2,b)};wL.prototype.Ac=function(){return _.B(this,3)};var Ksc=function(a,b){return _.y(a,3,b)},Lsc=function(a){_.K.call(this,a)};_.M(Lsc,_.K);Lsc.prototype.O=function(){return _.C(this,_.YC,1)};Lsc.prototype.V=function(){return _.C(this,_.YC,2)};Lsc.prototype.ha=function(){return _.C(this,_.YC,3)};var Msc=function(a){_.K.call(this,a)};_.M(Msc,_.K);
Msc.prototype.V=function(){return _.Q(this,1)};Msc.prototype.O=function(){return _.Q(this,3)};Msc.prototype.ha=function(){return _.Q(this,4)};var xL=[[13,19,12,11,10,15,14,9,8,18,17,16]],Nsc=function(a){_.K.call(this,a)};_.M(Nsc,_.K);Nsc.prototype.O=function(){return _.Q(this,1)};Nsc.prototype.V=function(){return _.Q(this,2)};var Osc=function(a){_.K.call(this,a)};_.M(Osc,_.K);Osc.prototype.O=function(){return _.B(this,4)};var Psc=function(a){_.K.call(this,a)};_.M(Psc,_.K);
Psc.prototype.V=function(){return _.B(this,1)};Psc.prototype.O=function(){return _.B(this,2)};var Qsc=function(a){_.K.call(this,a)};_.M(Qsc,_.K);Qsc.prototype.V=function(){return _.B(this,1)};Qsc.prototype.O=function(){return _.B(this,2)};var Rsc=function(a){_.K.call(this,a)};_.M(Rsc,_.K);var Ssc=[1],Tsc=function(a){_.K.call(this,a)};_.M(Tsc,_.K);Tsc.prototype.O=function(){return _.Q(this,1)};Tsc.prototype.V=function(){return _.Q(this,2)};var Usc=function(a){_.K.call(this,a)};_.M(Usc,_.K);_.g=Usc.prototype;
_.g.Q9a=function(){return _.Q(this,1)};_.g.R9a=function(){return _.Q(this,2)};_.g.N9a=function(){return _.C(this,Lsc,3)};_.g.S9a=function(){return _.P(this,3)};_.g.P9a=function(){return _.C(this,Lsc,4)};_.g.U9a=function(){return _.P(this,4)};_.g.O9a=function(){return _.B(this,5)};_.g.T9a=function(){return _.P(this,5)};var Vsc=function(a){_.K.call(this,a)};_.M(Vsc,_.K);_.g=Vsc.prototype;_.g.getLabel=function(){return _.B(this,1)};_.g.Lp=function(){return _.P(this,1)};
_.g.Za=function(){return _.B(this,2)};_.g.Jb=function(a){return _.y(this,2,a)};_.g.Si=function(){return _.Dj(this,2)};_.g.lh=function(){return _.P(this,2)};_.g.Fe=function(){return _.B(this,5)};_.g.Jl=function(a){return _.y(this,5,a)};_.g.M9a=function(){return _.P(this,5)};_.g.getCapabilities=function(){return _.C(this,Tsc,3)};_.g.L9a=function(){return _.C(this,Usc,4)};var Wsc=function(a){_.K.call(this,a,-1,Ssc)};_.M(Wsc,_.K);Wsc.prototype.O=function(){return _.Pj(this,Vsc,1)};
var Xsc=function(a,b){_.Jj(a,1,b)},Ysc=function(a){_.K.call(this,a)};_.M(Ysc,_.K);Ysc.prototype.O=function(){return _.B(this,1)};Ysc.prototype.pW=function(){return _.P(this,1)};Ysc.prototype.getOptions=function(){return _.C(this,Wsc,2)};var Zsc=function(a){_.K.call(this,a)};_.M(Zsc,_.K);Zsc.prototype.pW=function(){return _.P(this,1)};Zsc.prototype.getOptions=function(){return _.C(this,Qsc,2)};var $sc=function(a){_.K.call(this,a)};_.M($sc,_.K);var atc=function(a){_.K.call(this,a)};_.M(atc,_.K);
atc.prototype.pW=function(){return _.P(this,1)};atc.prototype.getOptions=function(){return _.C(this,$sc,2)};var yL=[[3,4,5,6,7,8,9,10,11,12]],btc=function(a){_.K.call(this,a,-1,void 0,yL)};_.M(btc,_.K);_.g=btc.prototype;_.g.Oca=function(a){return _.Qj(this,3,yL[0],a)};_.g.I4a=function(a){return _.Qj(this,4,yL[0],a)};_.g.X3a=function(a){return _.Qj(this,5,yL[0],a)};_.g.W3a=function(a){return _.Qj(this,6,yL[0],a)};_.g.J3a=function(a){return _.Qj(this,7,yL[0],a)};
_.g.v4a=function(a){return _.Qj(this,8,yL[0],a)};_.g.u4a=function(a){return _.Qj(this,9,yL[0],a)};_.g.N4a=function(a){return _.Qj(this,10,yL[0],a)};_.g.Uoa=function(a){return _.Qj(this,11,yL[0],a)};_.g.Coa=function(a){return _.Qj(this,12,yL[0],a)};var ctc=function(a){_.K.call(this,a)};_.M(ctc,_.K);var dtc=function(a){_.K.call(this,a)};_.M(dtc,_.K);dtc.prototype.O=function(){return _.B(this,1)};dtc.prototype.pW=function(){return _.P(this,1)};
dtc.prototype.getOptions=function(){return _.C(this,ctc,2)};var etc=function(a){_.K.call(this,a,-1,void 0,xL)};_.M(etc,_.K);_.g=etc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.F9a=function(){return _.B(this,2)};_.g.se=function(){return _.B(this,4)};_.g.E9a=function(){return _.C(this,Msc,5)};_.g.getCapabilities=function(){return _.C(this,Nsc,6)};_.g.K9a=function(){return _.B(this,7)};_.g.J3a=function(a){return _.Qj(this,13,xL[0],a)};
_.g.D9a=function(){return _.C(this,Osc,19)};_.g.Coa=function(a){return _.Qj(this,19,xL[0],a)};_.g.W3a=function(a){return _.Qj(this,12,xL[0],a)};_.g.X3a=function(a){return _.Qj(this,11,xL[0],a)};_.g.Asb=function(){return _.C(this,Psc,10)};_.g.G9a=function(){return _.C(this,Ysc,15)};_.g.u4a=function(a){return _.Qj(this,15,xL[0],a)};_.g.H9a=function(){return _.C(this,Wsc,14)};_.g.v4a=function(a){return _.Qj(this,14,xL[0],a)};_.g.I4a=function(a){return _.Qj(this,9,xL[0],a)};
_.g.I9a=function(){return _.C(this,Qsc,8)};_.g.Oca=function(a){return _.Qj(this,8,xL[0],a)};_.g.J9a=function(){return _.C(this,dtc,18)};_.g.Uoa=function(a){return _.Qj(this,18,xL[0],a)};_.g.N4a=function(a){return _.Qj(this,17,xL[0],a)};var ftc=[5],gtc=function(a){_.K.call(this,a)};_.M(gtc,_.K);gtc.prototype.ha=function(){return _.Q(this,1)};gtc.prototype.O=function(){return _.Q(this,2)};gtc.prototype.ka=function(){return _.Q(this,3)};gtc.prototype.V=function(){return _.Q(this,4)};
var zL=function(a){_.K.call(this,a,-1,ftc)};_.M(zL,_.K);zL.prototype.getName=function(){return _.B(this,1)};zL.prototype.$c=function(a){return _.y(this,1,a)};zL.prototype.Gm=function(){return _.B(this,2)};var htc=function(a,b){return _.y(a,2,b)};zL.prototype.V=function(){return _.B(this,14)};var itc=function(a,b){return _.y(a,14,b)};_.g=zL.prototype;_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.Fe=function(){return _.B(this,4)};
_.g.Jl=function(a){return _.y(this,4,a)};_.g.V9a=function(){return _.B(this,15)};_.g.Hk=function(){return _.Pj(this,etc,5)};var jtc=function(a,b){return _.Jj(a,5,b)},ktc=function(a,b){_.J(a,6,b)},ltc=function(a,b){_.J(a,7,b)},mtc=function(a,b){_.J(a,8,b)},ntc=function(a,b){return _.y(a,9,b)},otc=function(a,b){return _.y(a,10,b)},ptc=function(a,b){return _.y(a,11,b)};zL.prototype.O=function(){return _.C(this,Msc,12)};var qtc=function(a,b){_.J(a,12,b)};
zL.prototype.getCapabilities=function(){return _.C(this,gtc,13)};var rtc=function(a,b){_.J(a,13,b)};zL.prototype.getCustomer=function(){return _.B(this,16)};stc=function(a,b){return _.y(a,16,b)};ttc=[3];_.AL=function(a){_.K.call(this,a,-1,ttc)};_.M(_.AL,_.K);_.AL.prototype.getType=function(){return _.B(this,1)};_.AL.prototype.Ac=function(){return _.B(this,2)};_.cL=function(a){_.K.call(this,a)};_.M(_.cL,_.K);_.cL.prototype.getId=function(){return _.B(this,1)};
_.cL.prototype.Ob=function(a){return _.y(this,1,a)};_.cL.prototype.ve=function(){return _.C(this,_.tf,3)};_.utc=function(a){_.K.call(this,a)};_.M(_.utc,_.K);_.utc.prototype.getFeature=function(){return _.B(this,1)};vtc=[1];_.tK=function(a){_.K.call(this,a,-1,vtc)};_.M(_.tK,_.K);wtc=[2,3,8];_.GJ=function(a){_.K.call(this,a,-1,wtc)};_.M(_.GJ,_.K);_.GJ.prototype.getId=function(){return _.B(this,1)};_.GJ.prototype.Ob=function(a){return _.y(this,1,a)};
_.GJ.prototype.ve=function(){return _.C(this,_.tf,4)};_.GJ.prototype.yc=function(){return _.B(this,5)};var xtc=function(a){_.K.call(this,a)};_.M(xtc,_.K);var ytc=[1,2,4],ztc=function(a){_.K.call(this,a)};_.M(ztc,_.K);ztc.prototype.getType=function(){return _.B(this,1)};var Atc=function(a){var b=new ztc;return _.y(b,1,a)},Btc=function(a,b){return _.J(a,2,b)};ztc.prototype.sy=function(){return _.B(this,3)};ztc.prototype.Uy=function(a){return _.y(this,3,a)};
ztc.prototype.Li=function(){return _.B(this,4)};ztc.prototype.setPosition=function(a){return _.y(this,4,a)};var Ctc=[2],Dtc=function(a){_.K.call(this,a,-1,Ctc)};_.M(Dtc,_.K);Dtc.prototype.Bb=function(){return _.B(this,1)};Dtc.prototype.Bc=function(a){return _.y(this,1,a)};var Etc=[2],BL=function(a){_.K.call(this,a,-1,Etc)};_.M(BL,_.K);BL.prototype.Bb=function(){return _.B(this,1)};BL.prototype.Bc=function(a){return _.y(this,1,a)};BL.prototype.O=function(){return _.Pj(this,wL,2)};
var Ftc=function(a,b){return _.Jj(a,2,b)};BL.prototype.Vj=function(){return _.B(this,3)};var Gtc=function(a){_.K.call(this,a)};_.M(Gtc,_.K);Gtc.prototype.Bb=function(){return _.B(this,1)};Gtc.prototype.Bc=function(a){return _.y(this,1,a)};Htc=function(a,b){return _.J(a,2,b)};Itc={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};Jtc=function(a,b){return new _.jec(_.kec.bound(a,b,void 0,void 0))};
Ktc=function(){var a=new _.$h,b=_.wec().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Hd(_.uI(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.Ltc=function(a){_.K.call(this,a)};_.M(_.Ltc,_.K);_.Ltc.prototype.Cp=function(){return _.B(this,1)};_.Ltc.prototype.Ld=function(){return _.B(this,2)};_.Ltc.prototype.setSize=function(a){return _.y(this,2,a)};_.Ltc.prototype.getUrl=function(){return _.B(this,3)};
_.Mtc=function(a){_.K.call(this,a)};_.M(_.Mtc,_.K);_.Mtc.prototype.getType=function(){return _.B(this,1)};Ntc=[2,3];_.Otc=function(a){_.K.call(this,a,-1,Ntc)};_.M(_.Otc,_.K);Ptc=[4,5,6,17,18,24];_.CL=function(a){_.K.call(this,a,-1,Ptc)};_.M(_.CL,_.K);_.CL.prototype.getId=function(){return _.B(this,1)};_.CL.prototype.Ob=function(a){return _.y(this,1,a)};_.CL.prototype.getName=function(){return _.B(this,2)};_.CL.prototype.$c=function(a){return _.y(this,2,a)};
var Qtc=function(a,b){return _.Cj(a,4,b)},Rtc=function(a,b){return _.Cj(a,5,b)};_.CL.prototype.OQ=function(){return _.B(this,8)};_.CL.prototype.getType=function(){return _.B(this,23)};var Moc=function(a){_.K.call(this,a)};_.M(Moc,_.K);var Stc=[3],DL=function(a){_.K.call(this,a,-1,Stc)};_.M(DL,_.K);DL.prototype.fq=function(){return _.B(this,1)};var Ttc=function(a,b){return _.y(a,1,b)};DL.prototype.getTitle=function(){return _.B(this,2)};DL.prototype.setTitle=function(a){return _.y(this,2,a)};
DL.prototype.wd=function(){return _.Pj(this,_.cl,3)};var Utc=function(a,b){return _.Jj(a,3,b)};DL.prototype.qh=function(a,b){return _.Rj(this,3,a,_.cl,b)};DL.prototype.V=function(){return _.B(this,4)};var Vtc=function(a,b){return _.y(a,4,b)};DL.prototype.O=function(){return _.C(this,_.Mk,5)};var Wtc=function(a,b){return _.J(a,5,b)},Xtc=[2],EL=function(a){_.K.call(this,a,-1,Xtc)};_.M(EL,_.K);EL.prototype.Bb=function(){return _.B(this,1)};EL.prototype.Bc=function(a){return _.y(this,1,a)};
EL.prototype.nl=function(){return _.Pj(this,DL,2)};var Ytc=function(a,b){return _.Jj(a,2,b)};EL.prototype.Yf=function(){return _.B(this,4)};Ztc=function(a,b){return _.y(a,4,b)};_.yK=function(a){_.K.call(this,a)};_.M(_.yK,_.K);_.g=_.yK.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.MT=function(){return _.Bj(this,2,void 0,_.oG)};_.g.Vj=function(){return _.B(this,3)};_.g.Xe=function(){return _.B(this,5)};_.g.Fi=function(a){return _.y(this,5,a)};
var $tc=[1],dL=[[1,2,3,4,5,6,7]],qoc=function(a){_.K.call(this,a,-1,void 0,dL)};_.M(qoc,_.K);var roc=function(a){_.K.call(this,a,-1,$tc)};_.M(roc,_.K);var FL=function(a){_.K.call(this,a)};_.M(FL,_.K);FL.prototype.getQuery=function(){return _.C(this,_.ff,1,1)};var auc=function(a,b){return _.J(a,1,b)};FL.prototype.Un=function(){return _.B(this,4)};var buc=function(a,b){return _.J(a,5,b)},cuc=[1,2,5,7,9,10,12,14],GL=function(a){_.K.call(this,a,-1,cuc)};_.M(GL,_.K);
GL.prototype.wd=function(){return _.Pj(this,_.cl,1)};var duc=function(a,b){return _.Jj(a,1,b)};GL.prototype.qh=function(a,b){return _.Rj(this,1,a,_.cl,b)};GL.prototype.fha=function(a){_.Rj(this,2,a,_.Jk,void 0)};var euc=function(a,b){return _.y(a,3,b)};GL.prototype.Vn=function(){return _.B(this,4)};GL.prototype.Au=function(a){return _.y(this,4,a)};var fuc=function(a,b){return _.Jj(a,5,b)};GL.prototype.hv=function(){return _.Q(this,6)};var guc=function(a,b){return _.y(a,6,b)};
GL.prototype.qf=function(){return _.C(this,_.BB,8)};var huc=function(a,b){return _.Cj(a,12,b)};GL.prototype.Tn=function(){return _.zj(this,13,0)};var iuc=function(a,b){return _.y(a,13,b)},juc={rUb:0,pUb:1,g_b:2,r5b:3,u5b:4},bL=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]],ooc=function(a){_.K.call(this,a,-1,void 0,bL)};_.M(ooc,_.K);var voc=[[1,2]],uoc=function(a){_.K.call(this,a,-1,void 0,voc)};_.M(uoc,_.K);var yoc=[[1,2,3]],xoc=function(a){_.K.call(this,a,-1,void 0,yoc)};_.M(xoc,_.K);
var kuc=function(a,b){return 1<a?2===b:a===b},luc=function(a,b){if(0<=b)return!a||a<b?b:a;if(-1===b)return!a||1>=a?2:a+1;if(-2===b)return!a||2>=a?1:a-1;throw Error("Se");},HL=function(a,b,c,d,e){this.item=a;this.count=void 0===b?0:b;this.V=void 0===c?1:c;this.O=d;this.H=e};_.g=HL.prototype;_.g.clone=function(){return new HL(this.item.clone(),this.count,this.V,this.O,this.H)};_.g.getId=function(){return this.item.getId()};_.g.$b=function(){return this.count};_.g.getItem=function(){return this.item};
_.g.setItem=function(a){this.item=a;return this};_.g.Wy=function(a){this.V=a};_.g.equals=function(a){return this.count===a.$b()&&this.V===a.V&&this.O===a.O&&this.H===a.H&&_.Tj(this.item,a.getItem())};muc=function(a,b){a.H=b;return a};_.zK=function(a,b,c){this.response=a;this.Me=void 0===b?0:b;this.T_=void 0===c?null:c};_.AK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Me=void 0===d?0:d};
nuc=function(a){_.AK.call(this,a,void 0,void 0,void 0);this.G3a=new _.Cn};_.M(nuc,_.AK);ouc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.CK=function(a,b,c){this.response=a;this.Me=void 0===b?0:b;this.T_=void 0===c?null:c};_.BK=function(a,b,c){this.response=a;this.Me=void 0===b?0:b;this.T_=void 0===c?null:c};_.DK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Me=void 0===d?0:d};puc=function(a){return[].concat(_.md(new Set(a.map(function(b){return _.xfc.get(b)}).filter(function(b){return b})))).join(",")};
IL=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.md(b));b=puc(b);var d=_.BI(a)?"kind,id,name,colorRgb,backgroundImageLink,creator(kind,permissionId,id,emailAddressFromAccount),permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId":
_.S(a,80,!1)?"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary(entryCount,userEntryCount,groupEntryCount,memberCount,selectPermissions(kind,id,userId,emailAddress,domain,role,type,additionalRoles,view,audienceId,customerId,name,photoLink)),trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden,customerId";
c=c?"canAddChildren,canChangeDriveBackground,canComment,canCopy,canDeleteDrive,canDownload,canEdit,canManageMembers,canShare,canRename,canRenameDrive,canDeleteChildren,canTrashChildren":"canAddChildren,canAddFolderFromAnotherDrive,canChangeTeamDriveBackground,canComment,canCopy,canDeleteTeamDrive,canDownload,canEdit,canManageMembers,canManageVisitors,canRemoveChildren,canRename,canRenameTeamDrive,canShareOutsideDomain,canDeleteChildren,canTrashChildren";_.S(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.S(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"};quc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+IL(a,b,!1)+")"};JL=function(a){return a instanceof _.cl?null!=a.getId()&&a.getId()==a.yc():null!=a.Ac()&&a.Ac()==a.yc()};
ruc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.wg();null!=e&&Inc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||new _.Xk,h=_.Q(e,13);_.y(f,13,h);_.aK(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.Xk,e=_.Q(e,18),_.y(f,18,e),_.aK(a,f));ZK(a,b,[76,208,156,61,77,134,81,82,101,93,90,78,222,85,79,189,190,80,135,102,34,91,41,59,95,75,94,221,122,2]);d.wg()&&ZK(a,d,c)};
suc=function(a,b,c){c=void 0===c?[]:c;if(!b||!JL(a)&&!JL(b))return a;if(2==a.hv()){c=_.B(a,82);var d=b.clone();ruc(d,a);_.hic(d,b.hv());_.PI(d,c);return d}a=a.clone();ruc(a,b,c);return a};tuc=function(a){return(a=a?a.wg():null)&&_.Q(a,7)||!1};uuc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)};
vuc=function(a,b,c,d){d.length&&(new Set(d.filter(function(e){return!a.W.has(e)&&!c.has(e)}))).forEach(function(e){a.log("Creating field cache for field: "+e);c.add(e);b[e]={}})};xuc=function(a,b,c){b.every(function(d){return JL(d)})?wuc(b,c,a.H,a.O):b.every(function(d){return!JL(d)})&&wuc(b,c,a.items,a.fields)};
wuc=function(a,b,c,d){b=_.Jgc(b,[].concat(_.md(d)));if(0!==b.length)for(a=_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Hf();e=e?_.Xd(e):null;for(var f=_.m(b),h=f.next();!h.done;h=f.next()){h=h.value;var k=c[h][d.getId()];k&&ZK(d,k,[h]);e&&(k=c[h][e.getId()])&&ZK(e,k,[h])}}};uuc.prototype.update=function(a,b,c){b&&JL(b)?yuc(a,b,this.H,this.O,c):yuc(a,b,this.items,this.fields,c)};
uuc.prototype.uJ=function(a){var b=this;_.La(this.items,function(c,d){_.Ua(b.items[d],a)});_.La(this.H,function(c,d){_.Ua(b.H[d],a)})};var yuc=function(a,b,c,d,e){_.La(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.Ua(f,a):b&&Fnc(b,[h])&&(f[a]=zuc(b,h)),b)){var k=b.Hf();(k=k?_.Xd(k):null)&&Fnc(k,[h])&&(f[k.getId()]=zuc(k,h))}});b&&Bnc(b,[].concat(_.md(d)))},zuc=function(a,b){var c=new _.cl;c.Ob(a.getId());ZK(c,a,[b]);return c};
uuc.prototype.clear=function(){var a=this;_.La(this.items,function(b,c){a.items[c]={}});_.La(this.H,function(b,c){a.H[c]={}})};uuc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Auc=function(a,b,c){var d=this;this.pt=b;this.uv=c;this.Jd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=Auc.prototype;_.g.ly=function(){return this.Jd};
_.g.Xj=function(a){var b=new Map;a=_.m(a.hn());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Jd.has(c)&&b.set(c,this.Jd.get(c).getItem());return b};_.g.query=function(a,b){var c=[];if(Buc(a)){for(var d=_.m(this.Jd.values()),e=d.next();!e.done;e=d.next())e=e.value,KL(this.pt,a,e.getItem())&&(void 0===b||kuc(e.V,b))&&c.push(e);this.uv.sort(a,c)}return c};_.g.get=function(a){return this.Jd.get(a)||null};
_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Jd.get(c.value))&&b.push(c);return b};_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,Cuc(this,a.H)?(this.Jd.delete(a.id),a.H.count--):this.Jd.set(a.id,a.H)):(this.Jd.delete(a.id),a.O.count--)};var Cuc=function(a,b){return 1<b.$b()||kuc(b.V,2)||b.getItem().JI()||boc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};
Auc.prototype.uJ=function(){for(var a=_.m(this.Jd.values()),b=a.next();!b.done;b=a.next())b=b.value,Cuc(this,b)&&(this.Jd.delete(b.getId()),b.count--)};var Duc=function(a,b,c,d){this.Mg=a;this.W=b;this.O=c;this.V=d},Noc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),xuc(a.V,[b.getItem()],Qrc(a.Mg)),b):null};Duc.prototype.H=function(a){return(a=Noc(this,a))?a.getItem():null};
var Euc=function(a,b){var c={};b.forEach(function(d){var e=Noc(a,d);e&&(c[d]=e)});return c},Fuc=function(a,b){return _.Na(Euc(a,b),function(c){return c.getItem()})},Guc=function(a,b){b=LL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};Duc.prototype.query=function(a){return Guc(this,a).map(function(b){return b.getItem()})};Duc.prototype.Ld=function(){return this.O.ly().size};
var Huc=function(a){var b=new Set;a=_.m(a.O.ly().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.dl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||XK(e));(d=c.om())&&b.add(d.getId()||XK(d));(d=c.Qt())&&b.add(d.getId()||XK(d));(d=c.Fq())&&b.add(d.getId()||XK(d));(c=c.gD())&&b.add(c.getId()||XK(c))}return b.size},Iuc=function(a){var b=new _.Vo;_.sK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.sK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
Juc=function(a){switch(a?a.getType():-1){case 1:return[10];case 2:return[11];case 3:return[32];case 4:return[2];case 6:return[12];case 7:return[25];case 9:return[4];case 10:return[9];case 11:return[67];case 12:return[98];default:return null}},Kuc=function(a){var b=_.Mcc(),c={};b&&(c.numeric=b);this.H=_.Ncc(a,c)};Kuc.prototype.compare=function(a,b,c){b=Luc(b);c=Luc(c);a=a.wc();var d=Juc(a);if(a&&d){d=Muc(this,a);var e=4===a.getType()?this.H:_.Ea;return Nuc(a,d,e,b,c)}return _.Ea(b.getId(),c.getId())};
Kuc.prototype.sort=function(a,b,c){a=a.wc();var d=Juc(a);a&&d&&(d=Muc(this,a),d=Ouc(b,d),_.Ga(b,Puc(this,a,d)));c&&0<c&&_.Aa(b,c,b.length-c)};
var Luc=function(a){return a instanceof _.cl?a:a.getItem()},Muc=function(a,b){b=Juc(b);return _.u(a.O,a,b,_.Ea)},Ouc=function(a,b){var c={};a.forEach(function(d){d=Luc(d);var e=d.getId();c[e]=b(d)});return c},Puc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ea;d=Luc(d);e=Luc(e);return Nuc(b,function(h){return c[h.getId()]},f,d,e)}},Nuc=function(a,b,c,d,e){var f=1===a.sf()?1:-1;if(_.Q(a,3)){a=aL(d,!0);var h=aL(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ea(d.getId(),
e.getId()))};Kuc.prototype.O=function(a,b,c){for(var d=Quc(a[0],c),e=1;e<a.length;e++){var f=Quc(a[e],c);d=1===b(f,d)?f:d}return d};
var Quc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.YA()||!1;case 12:return b.kz()||0;case 11:return b.kB()||0;case 10:return b.vq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.vy()||0;case 57:return _.B(b,62)||0;case 32:return b.Mu()||0;case 9:return b.SC()||0;case 67:return b.RJ()||0;case 98:return b.Xv()||0;default:return""}},Ruc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.xq=_.VI(_.wI(b));
a=_.LI(b);this.V=!(!a||!_.S(a,1,!1));this.O=!(!a||!_.S(a,8,!1))};Ruc.prototype.Au=function(a){this.rootId=a||""};
var LL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Ob(a.rootId);_.Il(b).filter(function(d){return"root"===d.Za()}).forEach(function(d){return d.Jb(a.rootId)});_.nf(b,_.Hl(b).map(function(d){d.Jb(d.Za().toLowerCase());return d}));c&&_.Gl(b,a.fields);b.O().sort();return b},rL=function(a,b,c){if(b instanceof _.ff){b=LL(a,b);var d=_.Cjc(b)}else if(b instanceof _.xA)d=b.hn().sort().join(","),_.S(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.pI)return d=Iuc(b),d+"|tdList";if(b instanceof _.nG)return d=
b.hn().sort().join(","),b.O().length&&(d+="|"+puc(b.O())),d+"|tdMap";throw Error("We");}return 3===c?d:d+"|"+Suc(a,b.O(),2===c)},Suc=function(a,b,c){var d="default";if(0===b.length)return d;var e=new Set(b),f=new Set(a.fields);c?(f.forEach(function(h){return e.delete(h)}),f.clear()):[].concat(_.md(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.ZI({fields:[].concat(_.md(f)),xq:a.xq}));e.size&&(d=d+" + "+_.ZI({fields:[].concat(_.md(e)),xq:a.xq}));
return d};Ruc.prototype.equals=function(a,b,c){var d;c&&(d=3);return rL(this,a,d)===rL(this,b,d)};
var xsc=function(a){if(!a.hn().every(function(b){return!_.je(b)}))throw new _.pc("Invalid ids for FindByIdsRequest");},Uuc=function(a,b,c){if(_.vJ(b))throw new _.pc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");Tuc(a,b,c)},Tuc=function(a,b,c){var d;a.O||(d=_.WI(3));if(b.getId())throw new _.pc("Use findByIds() for find by id queries.",d?d:_.WI(3));if(!b.zi()||0>=b.zi())throw new _.pc("A positive limit is required on an ItemQueryRequest.",d?d:_.WI(3));
_.Sd(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),Vuc(a,d,b.O()));if(c=(c=b.wc())&&Juc(c))d=b.O().length?b.O():a.fields,Vuc(a,d,c);if(_.uJ(b)){if(a.xq)throw new _.pc("User must be authenticated for a Quick Access request.");if(!Wuc(a)&&20<b.zi())throw new _.pc("Limit must be in the range [1, 20].");c=2===_.fK(b);d=_.Sd(b,33).length;if(c&&1!==d||d&&!c)throw new _.pc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Kj(_.Dj(_.Dj(_.Dj(_.Dj(_.dI(_.Dj(_.Ej(_.dI(b.clone(),
1),30),32),33),45),47),74),48),6);d=new _.ff;if(!_.Tj(c,d))throw new _.pc("Some fields specified are not valid for a Quick Access request. Valid: field, request_descriptor, limit, team_drive, corpora, is_quick_access_request and mime_type. Extra: "+jsc(d,c));}else if(_.S(b,74,!1))throw new _.pc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.wJ(b)){if(a.xq)throw new _.pc("User must be authenticated for a DrivePriority request.");if(2===
_.fK(b))throw new _.pc("Team Drive corpora is not valid for a Drive Priority request.");a=_.Dj(_.Dj(_.Dj(_.Ej(_.dI(b.clone(),1),30),32),45),52);b=new _.ff;if(!_.Tj(a,b))throw new _.pc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+jsc(b,a));}},Xuc=function(a,b,c){if(!_.vJ(b))throw new _.pc("Expected a PeoplePredict request.");Tuc(a,b,c);if(a.xq)throw new _.pc("User must be authenticated for a People Predict request.");
if(2===_.fK(b))throw new _.pc("Team Drive corpora is not valid for a People Predict request.");a=_.Dj(_.Dj(_.Dj(_.Ej(_.dI(b.clone(),1),30),32),45),49);b=new _.ff;if(!_.Tj(a,b))throw new _.pc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+jsc(b,a));},Vuc=function(a,b,c){var d;a.O||(d=_.WI(3));if(!Gnc(b,c,_.Hgc)){var e=_.ZI({fields:c,xq:a.xq}),f=_.ZI({fields:b,xq:a.xq});a=_.ZI({fields:Hnc(c,
b),xq:a.xq});throw new _.pc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.WI(3));}},Wuc=function(a){return 200<=_.hK(a.H)&&300>_.hK(a.H)},Yuc=function(a){var b=new Set;a=_.m(_.Hl(a));for(var c=a.next();!c.done;c=a.next())switch(_.uOa(c.value.Za())){case 7:b.add("IMAGE_ALL");break;case 2:b.add("AUDIO_ALL");break;case 14:b.add("VIDEO_ALL");break;case 4:b.add("DRAWING_ALL");break;case 10:b.add("PRESENTATION_ALL");break;case 12:b.add("SPREADSHEET_ALL");
break;case 3:b.add("DOCUMENT_ALL");break;case 6:b.add("DRIVE_FORM")}return[].concat(_.md(b))},Zuc=function(a){switch(_.hK(a)){case 3:case 12:case 204:return"GOOGLE_DOCS";case 4:case 13:case 207:return"GOOGLE_SHEETS";case 5:case 14:case 205:case 208:return"GOOGLE_SLIDES";case 6:case 203:return"GOOGLE_FORMS";case 232:return"GOOGLE_MEET";case 8:case 201:return"GOOGLE_SITES";case 229:case 216:return"GOOGLE_CLASSROOM";case 202:case 1:case 9:return"GOOGLE_DRIVE";case 228:return"GOOGLE_GMAIL";case 236:return"GOOGLE_CHAT";
default:return"UNSPECIFIED_APPLICATION"}},$uc=function(a){_.O.call(this);this.H=a};_.Rf($uc,_.O);_.g=$uc.prototype;_.g.cancel=function(){this.H.cancel()};_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.H.addCallback(function(d){d.registerService(a,b,c)})};_.g.yO=function(a){this.H.addCallback(function(b){b.yO(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();$uc.wb.Ya.call(this)};
var ioc=function(a){_.Ty.call(this);this.H=a;this.V=_.Be(this.H,"message",this.vob,!1,this)};_.Rf(ioc,_.Ty);_.g=ioc.prototype;_.g.Bd=null;_.g.send=function(a,b){var c=[];b=this.Fya(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.Efc&&(a=(0,_.Ci)(a));this.H.postMessage(a,c)};
_.g.vob=function(a){a=a.Be;var b=a.data;if(_.Efc)try{b=JSON.parse(b)}catch(e){return}if(_.Ba(b)&&b["--goog.messaging.PortChannel"]&&"serviceName"in b&&"payload"in b){var c=b.serviceName;b=b.payload;var d=this.getService(c,b);d&&(b=this.O(c,this.$Ba(a.ports||[],b),d.SEa),null!=b&&d.callback(b))}};
_.g.Fya=function(a,b){return b&&"[object MessagePort]"==Object.prototype.toString.call(b)?(a.push(b),{_port:{type:"real",index:a.length-1}}):Array.isArray(b)?b.map((0,_.u)(this.Fya,this,a)):b&&b.constructor==Object?_.Na(b,function(c,d){c=this.Fya(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.$Ba=function(a,b){return Array.isArray(b)?b.map((0,_.u)(this.$Ba,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Na(b,function(c,d){return this.$Ba(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.vi(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;ioc.wb.Ya.call(this)};
var loc=function(a,b){if("*"==b)return new $uc(_.gi(Error("Xe")));var c=new _.yi(50),d=_.Bb(_.aa,c),e=new _.$h(d);_.bi(e,d);c.start();_.Be(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new ioc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new $uc(e)},avc=function(a){_.O.call(this);this.H=new _.Qdc(a);this.V={};this.O=_.Sdc(this.H,
"private");this.W=_.Sdc(this.H,"public");this.O.registerService("mics",(0,_.u)(this.Olb,this),!0)};_.Rf(avc,_.O);_.g=avc.prototype;_.g.YEb=0;_.g.Ya=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.YEb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Olb=function(a){var b=a.signature;a=a.data;b in this.V&&((0,this.V[b])(a),delete this.V[b])};_.g.registerService=function(a,b){this.W.registerService(a,(0,_.u)(this.Nlb,this,b),!0)};
_.g.Nlb=function(a,b){a=a(b.data);var c=b.signature;_.Th(a).then((0,_.u)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var bvc=function(a,b){_.O.call(this);this.W=b;this.started=!1;this.H=new _.Qdc(a);this.Ma(this.H);this.O=new avc(_.Sdc(this.H,"direct"));this.Ma(this.O)};_.M(bvc,_.O);bvc.prototype.registerService=function(a,b){this.O.registerService(a,b)};bvc.prototype.send=function(a,b,c){this.O.send(a,b||{},function(d){return(c||_.Nf)(d)})};
var koc=function(a,b){bvc.call(this,a,b);this.V=new avc(_.Sdc(this.H,"passthrough"));this.Ma(this.V)};_.M(koc,bvc);var ML=function(a,b,c){a.V.registerService(b,function(d){return c(d)})},NL=function(a,b,c,d){a.V.send(b,c||{},d||_.Nf)};koc.prototype.start=function(){this.started||(this.started=!0)};var foc=[],cvc=function(){_.Ty.call(this);this.H=null};_.M(cvc,_.Ty);cvc.prototype.send=function(a,b){_.m8a(this.H,a,b)};
var moc=function(){this.O=new cvc;this.H=new cvc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},dvc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},evc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&eoc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},fvc=function(a){var b=new dvc(a.c,a.m,a.a,a.req);b.H=a.s;return b},gvc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},hvc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&eoc(a.data);return{d:a.data,err:a.error&&b?a.error.Jc():a.error,uid:a.O,s:b}},ivc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.oc(JSON.parse(a.err)):c;a=new gvc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},doc=function(a,b){this.H=a;this.FD=b};doc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.FD[b];return a};
doc.prototype.Jc=function(){for(var a={},b={},c=0;c<this.FD.length;c++){var d=this.FD[c],e=this.H[c];d instanceof Error?b[e]=_.JI(d).Jc():a[e]=d.Jc()}return{r:a,e:b}};jvc=function(a,b){if(b){var c=[],d=[];_.La(a.r,function(e,f){c.push(f);d.push(new _.QJ(JSON.parse(e)))});_.La(a.e,function(e,f){c.push(f);e=new _.oc(JSON.parse(e));d.push(_.XI(e))});return new doc(c,d)}return a};joc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
kvc={$Sb:0,vTb:1,sZb:3,J6b:5,jib:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.gJ=function(a){_.K.call(this,a)};_.M(_.gJ,_.K);_.gJ.prototype.Bh=function(){return _.B(this,1)};_.gJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.jJ=function(a){_.K.call(this,a)};_.M(_.jJ,_.K);_.jJ.prototype.Ac=function(){return _.B(this,1)};_.jJ.prototype.ve=function(){return _.C(this,_.tf,3)};_.rJ=function(a){_.K.call(this,a)};_.M(_.rJ,_.K);_.rJ.prototype.Bh=function(){return _.B(this,1)};
_.rJ.prototype.ve=function(){return _.C(this,_.tf,2)};_.sJ=function(a){_.K.call(this,a)};_.M(_.sJ,_.K);_.sJ.prototype.Bh=function(){return _.B(this,1)};_.sJ.prototype.ve=function(){return _.C(this,_.tf,2)};_.tJ=function(a){_.K.call(this,a)};_.M(_.tJ,_.K);_.g=_.tJ.prototype;_.g.Ac=function(){return _.B(this,1)};_.g.zf=function(){return _.B(this,2)};_.g.getType=function(){return _.B(this,3)};_.g.Za=function(){return _.B(this,4)};_.g.Jb=function(a){return _.y(this,4,a)};
_.g.Si=function(){return _.Dj(this,4)};_.g.lh=function(){return _.P(this,4)};_.g.ve=function(){return _.C(this,_.tf,7)};_.AJ=function(a){_.K.call(this,a)};_.M(_.AJ,_.K);_.AJ.prototype.Ac=function(){return _.B(this,1)};_.AJ.prototype.ve=function(){return _.C(this,_.tf,2)};_.AJ.prototype.zi=function(){return _.Uj(this,3,1E3)};_.AJ.prototype.ti=function(a){return _.y(this,3,a)};_.EJ=function(a){_.K.call(this,a)};_.M(_.EJ,_.K);_.EJ.prototype.ve=function(){return _.C(this,_.tf,1)};
var lvc=function(){var a=new _.EJ,b=_.uf(new _.tf,301);return _.J(a,1,b)};_.EJ.prototype.yc=function(){return _.B(this,3)};_.ehc=function(a){_.K.call(this,a)};_.M(_.ehc,_.K);_.ehc.prototype.yc=function(){return _.B(this,1)};_.IJ=function(a){_.K.call(this,a)};_.M(_.IJ,_.K);_.IJ.prototype.Bh=function(){return _.B(this,1)};_.IJ.prototype.ve=function(){return _.C(this,_.tf,4)};var mvc=function(a){_.K.call(this,a)};_.M(mvc,_.K);nvc=function(a,b){return _.y(a,1,b)};_.hJ=function(a){_.K.call(this,a)};
_.M(_.hJ,_.K);_.hJ.prototype.getId=function(){return _.B(this,1)};_.hJ.prototype.Ob=function(a){return _.y(this,1,a)};_.xJ=function(a){_.K.call(this,a)};_.M(_.xJ,_.K);_.xJ.prototype.getId=function(){return _.B(this,1)};_.xJ.prototype.Ob=function(a){return _.y(this,1,a)};_.Sgc=function(a){_.K.call(this,a)};_.M(_.Sgc,_.K);_.Wgc=function(a){this.H=a;this.type=1};_.Xgc=function(a){this.H=a;this.type=0};_.dhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.ghc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};ovc=function(a,b,c){_.xi.call(this);this.Ba=a;this.ma=b;this.O=!0;this.ha=this.H=this.timeout=this.W=null;this.V=!1;this.ka=c};_.M(ovc,_.xi);ovc.prototype.AB=function(){return this.O};ovc.prototype.kQ=function(){var a=this;if(this.W)return this.W;var b=_.Wh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);pvc(this,b);return b.promise};
ovc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,qvc(this))};ovc.prototype.va=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.n.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new Csc("nb")))};
var rvc=function(a,b){a.ha=b},qvc=function(a){a.H||(a.H=new _.wkc(5E3),a.timeout=_.n.setTimeout(function(){return svc(a)},a.H.Za()))},svc=function(a){pvc(a);a.H&&(_.ZH(a.H),a.timeout=_.n.setTimeout(function(){return svc(a)},a.H.Za()))},pvc=function(a,b){var c=_.Th();a.ha&&(c=a.ha());c.then(function(){return tvc(a,b)})},tvc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Re(new _.fhc)});b?c.then(function(){b.resolve(nvc(new mvc,1))},function(d){var e=_.CB(d).Qg;
d=0;_.Rfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.hq(e),_.y(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new mvc;nvc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.CB(d);_.Rfc(d.Qg)&&a.V&&(a.dispatchEvent(new Csc("ob")),a.V=!1)})};ovc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};
var uvc=function(a){return _.C(a,_.CI,3)||_.C(a,_.OJ,4)||_.C(a,_.GK,5)||_.C(a,_.LJ,6)||_.C(a,_.lJ,7)||_.C(a,_.eJ,8)||_.C(a,_.iJ,9)||_.C(a,_.MI,10)},vvc=function(a){_.K.call(this,a)};_.M(vvc,_.K);_.g=vvc.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.Rz=function(){return _.B(this,3)};_.g.Ke=function(){return _.B(this,4)};_.g.Gi=function(a){return _.y(this,4,a)};var wvc=function(a){this.Bd=a;this.H=new Map;this.O=this.Bd.W};
wvc.prototype.create=function(a,b){if(0!=Xrc(b)){var c=this.Bd.H(106001);if(c){var d=Xrc(b),e=lL(c);_.y(e,2,d);d=lL(c);e=null;if(b instanceof _.xG||b instanceof _.xA||b instanceof _.ff||b instanceof _.yJ||b instanceof _.BD||b instanceof _.nG||b instanceof _.pI||b instanceof _.xI||b instanceof _.pG||b instanceof _.eA)e=b.ve();e=e&&_.S(e,2,!1);_.y(d,7,"boolean"==typeof e?e:void 0);d=lL(c);b=b instanceof _.ff?0<_.Il(b).length:void 0;_.y(d,8,b);this.H.set(a,c)}}};
var xvc=function(a,b,c){if(a=a.H.get(b))a=lL(a),_.y(a,5,c)},yvc=function(a,b,c){(a=a.H.get(b))&&_.Q(lL(a),8)&&(a=lL(a),_.y(a,9,c))},zvc=function(a,b,c,d,e){var f=a.H.get(b);f&&(lL(f).Bc(c),lL(f).Fi(d),null!=e&&(c=lL(f),_.y(c,6,e)),f.vj(),a.H.delete(b))},Avc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Bb(c);c=Yrc(c);if(1==e||2==c)e=_.vK(_.Hfc,c),d=lL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.dgc.has(e):null,zvc(a,b,1,e,d)}},Bvc=function(a,b,c){var d=a.O.Bb(c);d=_.vK(_.Gfc,d||22);var e=Yrc(c);e=_.vK(_.Hfc,
e);zvc(a,b,d,e,"undefined"!=typeof _.zK&&c instanceof _.zK||"undefined"!=typeof _.BK&&c instanceof _.BK||"undefined"!=typeof _.CK&&c instanceof _.CK?c.T_:null)},OL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(lL(d).Bc(c),d.vj(),a.H.delete(b))},Cvc=[2,4],PL=function(a){_.K.call(this,a,-1,Cvc)};_.M(PL,_.K);PL.prototype.Bb=function(){return _.B(this,1)};PL.prototype.Bc=function(a){return _.y(this,1,a)};PL.prototype.Vj=function(){return _.B(this,3)};
var Dvc=[4,9],Evc=function(a){_.K.call(this,a,-1,Dvc)};_.M(Evc,_.K);_.g=Evc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.RVa=function(){return _.B(this,2)};_.g.fMa=function(){return _.B(this,3)};_.g.osb=function(){return _.Pj(this,_.FI,4)};var Fvc={q6b:0,R0b:1,U0b:2,S0b:4,zZb:5,LWb:6,GZb:7,g1b:8},Gvc=function(a){_.K.call(this,a)};_.M(Gvc,_.K);Gvc.prototype.getUrl=function(){return _.B(this,1)};var QL=function(a){_.K.call(this,a)};_.M(QL,_.K);
var Hvc=function(a,b){return _.y(a,1,b)};QL.prototype.getName=function(){return _.B(this,2)};QL.prototype.$c=function(a){return _.y(this,2,a)};QL.prototype.getEmail=function(){return _.B(this,3)};var Ivc=function(a,b){return _.y(a,3,b)};QL.prototype.jp=function(){return _.P(this,3)};var Jvc=[1],Kvc=function(a){_.K.call(this,a,-1,Jvc)};_.M(Kvc,_.K);var Lvc=function(a,b){return _.Jj(a,1,b)},Mvc=function(a){_.K.call(this,a)};_.M(Mvc,_.K);_.g=Mvc.prototype;_.g.Ac=function(){return _.B(this,1)};
_.g.Bb=function(){return _.B(this,2)};_.g.Bc=function(a){return _.y(this,2,a)};_.g.getError=function(){return _.C(this,_.oc,3)};_.g.Le=function(a){return _.J(this,3,a)};_.g.Xn=function(){return _.P(this,3)};var Nvc=[2],RL=function(a){_.K.call(this,a,-1,Nvc)};_.M(RL,_.K);RL.prototype.Bb=function(){return _.B(this,1)};RL.prototype.Bc=function(a){return _.y(this,1,a)};RL.prototype.nl=function(){return _.Pj(this,_.oG,2)};var Ovc=function(a,b){return _.Jj(a,2,b)};
RL.prototype.Vj=function(){return _.B(this,3)};var Pvc=[1],Qvc=function(a){_.K.call(this,a,-1,Pvc)};_.M(Qvc,_.K);var Rvc=function(a,b){return _.Cj(a,1,b)},Svc=function(a,b){this.O=a|0;this.H=b|0};Svc.prototype.equals=function(a){return this===a?!0:a instanceof Svc?this.O===a.O&&this.H===a.H:!1};Svc.prototype.Ec=function(){return 31*this.O+17*this.H|0};
var Tvc=function(a,b){return new Svc(a,b)},Uvc=function(a,b){b=~b;a?a=~a+1:b+=1;return Tvc(a,b)},Vvc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?Uvc:Tvc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},Wvc=function(){this.H=this.W=this.O=this.V=null},Xvc=function(a,b,c){this.id=a;this.O=b;this.H=c},Yvc=function(a,b){return new Xvc((a?a:b).getId(),a,b)},SL=function(a){return new Xvc(a.getId(),null,a)},Zvc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},TL=function(a,b,c){if(a.started)throw Error("ff");c={Co:new Set(b),callback:c};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.O.get(d)||[];e.push(c);a.O.set(d,e)}},UL=function(a,b){if(!a.started)throw Error("gf");if(!a.enabled)throw Error("hf`"+a.error+"`"+(a.error.stack?"\nOriginal stack: "+a.error.stack:""));a.log("Passing Milestone: "+b);a.V.add(b);var c=a.O.get(b);if(c){a.O.delete(b);for(var d=0;d<c.length;++d){var e=c[d];e.Co.delete(b);if(0===e.Co.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f?_.XI(f):null,f;}}}};Zvc.prototype.H=function(a){return this.V.has(a)};Zvc.prototype.start=function(){this.started=!0};Zvc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var $vc=function(){_.xi.call(this);this.H=Date.now()};_.M($vc,_.xi);$vc.prototype.jF=function(){this.H=Date.now();this.dispatchEvent("Hb")};var awc=function(a,b){this.pt=a;this.uv=b;this.YG=!0;this.d8=!1;this.Me=0},VL=function(a,b){(a.YG=b)||a.uJ()};_.g=awc.prototype;
_.g.Jka=function(a,b){if(5===this.xE(a))throw Error("jf");for(var c=[],d=_.m(this.ly()),e=d.next();!e.done;e=d.next())e=e.value,KL(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.Ld=function(){return this.ly().length};_.g.Xj=function(a,b){b=this.Jka(a,b);b=Doc(b);var c=new _.qB;c.Tw(b);c.Bc(this.LN(a)?6:1);return c};_.g.update=function(a){var b=this.ts(a.O),c=this.ts(a.H);if(!b&&!c)return!1;b&&this.lJ(a.O);c&&this.uR(a.H);return!0};
_.g.xE=function(a){return this.YG&&this.d8?Buc(a)?1:5:5};_.g.eX=function(){this.d8=!0};_.g.ts=function(a){return!!a&&this.YG};_.g.Fi=function(a){this.Me=a};_.g.Xe=function(){return this.Me};var XL=function(a,b,c,d,e,f){f=void 0===f?"":f;awc.call(this,a,b);var h=this;this.W=c;this.nextPageToken=f;this.Jd=[];this.O={};this.request=LL(c,d,!0);this.H=!e;bwc(this,e);this.V=function(k,l){return h.uv.compare(h.request,k,l)}};_.M(XL,awc);_.g=XL.prototype;_.g.qd=function(){return this.request};
_.g.uR=function(a){var b=this.O[a.getId()];b&&this.lJ(b);vnc(this.Jd,a,this.V);this.O[a.getId()]=a;a.count++;this.Jd.length>this.request.zi()&&(this.lJ(_.fa(this.Jd)),this.H=!1)};_.g.lJ=function(a){var b=this.Jd,c=_.Fa(b,a,this.V);0<=c&&_.sa(b,c);_.Ua(this.O,a.getId());a.count--};_.g.uJ=function(){this.Jd.forEach(function(a){a.count--});this.Jd=[];this.O={}};_.g.ly=function(){return this.Jd};
_.g.xE=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=Gnc(b,a,_.Hgc);return b?this.H?1:6:5};_.g.Jka=function(a,b){if(5===this.xE(a))throw Error("jf");b=b?Math.min(b,this.Jd.length):this.Jd.length;return _.za(this.Jd,0,b)};_.g.ts=function(a){if(!awc.prototype.ts.call(this,a)||!KL(this.pt,this.request,a.getItem()))return!1;if(this.H||_.S(this.request,48,!1))return!0;var b=_.fa(this.Jd);return!!b&&0>=this.V(a,b)};_.g.LN=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.ql=function(a,b){var c=this,d=_.fa(this.Jd);!this.H&&d&&_.ma(a,function(e){return e.getId()===d.getId()})&&(b?(this.lJ(d),bwc(this,_.fa(a))):this.H=!0);_.Ia(a,function(e){c.update(SL(e))})};var bwc=function(a,b){b&&KL(a.pt,a.request,b.getItem())&&a.uR(b)};XL.prototype.qy=function(){return this.nextPageToken};var YL=function(a,b){awc.call(this,a,b);this.Jd=new Map};_.M(YL,awc);YL.prototype.uR=function(a){this.Jd.set(a.getId(),a);a.count++};
YL.prototype.lJ=function(a){this.Jd.delete(a.getId());a.count--};YL.prototype.uJ=function(){for(var a=_.m(this.Jd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Jd=new Map};YL.prototype.ly=function(){return Array.from(this.Jd.values())};var ZL=function(a,b){YL.call(this,a,b);this.eX()};_.M(ZL,YL);_.g=ZL.prototype;
_.g.xE=function(a){var b=this,c=YL.prototype.xE.call(this,a);if(5===c)return c;if(0<_.Sd(a,33).length)return 5;a=_.Il(a);return 0<a.length?a.every(function(d){return(d=b.Jd.get(d.Za()))&&!d.getItem().yc()&&d.H})?1:5:5};_.g.ts=function(a){return YL.prototype.ts.call(this,a)&&!(null===a||void 0===a?0:a.getItem().yc())};_.g.Jka=function(a,b){for(var c=[],d=_.m(this.ly()),e=d.next();!e.done;e=d.next())e=e.value,KL(this.pt,a,e.getItem())&&c.push(e);this.uv.sort(a,c,b);return c};_.g.qd=function(){return new _.ff};
_.g.getType=function(){return"MyDriveCorpusCache"};_.g.LN=function(){return!1};var cwc=function(a){return[].concat(_.md(a.Jd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},$L=function(a,b,c,d){YL.call(this,a,b);var e=this;this.H=d;TL(c,["aU7Ts","BNEDtc"],function(){return e.eX()})};_.M($L,YL);
$L.prototype.xE=function(a){var b=this,c=YL.prototype.xE.call(this,a);if(5==c)return c;if(0<_.Sd(a,33).length)return 5;a=_.Il(a);return 0<a.length&&!a.every(function(d){d=b.Jd.get(d.Za());return null!=d&&!d.getItem().yc()&&Pnc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};$L.prototype.ts=function(a){return YL.prototype.ts.call(this,a)&&dwc(this,a.getItem())};var dwc=function(a,b){if(_.Q(b,31)||!a.d8)return!0;var c=a.H();return b.kk().some(function(d){var e=a.Jd.get(d);return d==c||null!=e&&Pnc(e.getItem())})};
$L.prototype.eX=function(){YL.prototype.eX.call(this);for(var a=_.m(this.Jd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;dwc(this,c.getItem())||(c.count--,this.Jd.delete(b))}};$L.prototype.qd=function(){return new _.ff};$L.prototype.getType=function(){return"SubscribedCorpusCache"};$L.prototype.LN=function(){return!1};var ewc=/^[\x00-\x7F]*$/,fwc=function(){this.rootId=""};fwc.prototype.Au=function(a){this.rootId=a||""};
var Buc=function(a){return gwc(a)&&0==_.Sd(a,40).length&&void 0==_.B(a,41)},gwc=function(a){var b=!0;_.Pj(a,_.hf,13).forEach(function(d){"me"!=d.Za()&&(b=!1)});var c=a.wc();c=!c||5!=c.getType();return 0==_.Pj(a,_.Cl,5).length&&0==_.Pj(a,_.hf,14).length&&0==_.Pj(a,_.hf,15).length&&!_.P(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.Pj(a,_.wl,35).length&&0==_.Pj(a,_.wl,38).length&&c&&b&&0==_.Sd(a,39).length&&!_.B(a,42)&&0==_.Pj(a,_.vl,44).length&&!_.uJ(a)&&!_.vJ(a)&&!_.wJ(a)&&0==_.Pj(a,_.xl,57).length&&hwc(a)&&
!_.C(a,_.Foa,59)&&null==_.Q(a,60)&&0==_.Pj(a,_.hf,68).length&&0==_.Pj(a,_.hf,67).length&&null==_.Q(a,69)&&!_.Q(a,73)},hwc=function(a){return _.Pj(a,_.Dl,4).every(function(b){b=b.Za();return!b||!b.includes("*")&&ewc.test(b)})};fwc.prototype.V8=function(a,b){var c=this;return b.filter(function(d){return KL(c,a,d)})};
var KL=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!JL(c);if(d){d=!0;var e=_.Pj(b,_.Dl,4);if(hwc(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Za()){var k=_.S(h,3,!1),l=(c.getTitle()||"").toLowerCase(),p=h.Za().toLowerCase();if(2==_.B(h,1))l=p==l,d=d&&(k?!l:l);else{h=[];if(0<=p.indexOf("-"))for(var q=RegExp("\\w*-[\\w-]*"),r=_.m(p.match(q)||[]),v=r.next();!v.done;v=r.next())h.push(v.value),p=p.replace(q,"");h.push.apply(h,_.md(p.split(RegExp("\\b"))));for(p=0;p<h.length&&d;p++)q=h[p],
r=!0,0!=(0,_.kg)(q).length&&(0==q.replace(/\./g,"").length&&(r=!1),q=!!l.match(r?new RegExp("(^|[^\\w])"+_.Og(q)+"($|[^\\w])|(^|[ ])"+_.Og(q)):new RegExp(_.Og(q))),d=d&&(k?!q:q))}}}else d=!0}if(d){l=_.Hl(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Za()&&(q=c.getMimeType()||"",_.Q(h,4)&&(q=(p=c.Hf())&&_.B(p,3)||""),p=_.S(h,2,!1),r=h.Za(),_.SJ(b)&&(r=r.toLowerCase(),q=q.toLowerCase()),h=0===_.zj(h,3,0)?r===q:q.includes(r),p?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=
!0,e=_.Pj(b,_.Al,7),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.vq(),d=d&&iwc(k,f);if(d)for(d=!0,e=_.Pj(b,_.Al,8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.kz(),d=d&&iwc(k,f);d&&(d=b.Vh(),e=(e=_.fK(b))&&(2==e||3==e),d=null==d||d==!!c.Vh()&&(!d||1==c.Wo()||!!e));d&&(d=null==_.Q(b,10)||_.Q(b,10)==!!c.YA());d&&(d=null==_.Q(b,11)||_.Q(b,11)==!!_.Q(c,6));if(d)a:{d=_.Il(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Za()&&(f="root"==e.Za()&&a.rootId||e.Za(),f=c.kk().includes(f),
_.S(e,2,!1)?f:!f)){d=!1;break a}d=!0}if(a=d)a:{a=_.Pj(b,_.hf,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,"me"==d.Za()&&(e=1==c.Wo(),_.S(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.Q(b,16)||(_.Q(b,16)?null!=c.vy():!0));a&&(a=_.Q(b,17),d=(d=_.fK(b))&&(2==d||3==d),a=null==a||a==!!c.JI()&&(!a||1==c.Wo()||!!d));a&&(a=$nc(c),a=null==_.Q(b,19)||_.Q(b,19)==!!_.$k(a));a&&(a=!0);if(a=a&&jwc(b,c)&&kwc(b,c))a=_.Sd(b,33),a=!a.length||a.includes(c.yc()||"");if(a=a&&lwc(b,c))_.B(b,41)?(a=_.C(c,
_.YJ,86),a=null!=a&&_.B(b,41)==_.B(a,3)):a=!0;if(a=a&&mwc(b,c))a=_.fK(b),1==a?(a=_.Q(c,31),a=!!_.Il(b).length||!!_.Pj(b,_.wl,35).length||1==_.Q(b,18)||_.uJ(b)||_.vJ(b)||_.wJ(b)||!!b.Ip()||null==a||a):a=2==a?!!c.yc():!0;a&&(a=_.uJ(b)?!_.P(c,100)||c.Vh()?!1:_.S(b,74,!1)?!!_.Q(_.fl(c),4):!!_.Q(_.fl(c),3):!0);a&&(a=_.vJ(b)?!!_.gl(c).length&&!c.Vh():!0);a&&(a=_.wJ(b)?!!_.hl(c).length&&!c.Vh():!0);a&&(a=_.P(b,50)?_.S(b,50,!1)?_.P(c,101)&&0!==_.B(c,101):!_.P(c,101):!0);a&&(a=b.Ip(),a=!a||_.Sd(c,120).includes(a));
a&&(c=_.C(c,_.UJ,138),null==_.Q(b,65)||null==c?a=!0:(c=2==_.B(c,1),a=_.Q(b,65)==c));return a},iwc=function(a,b){if(null!=_.B(b,2))switch(_.B(b,1)){case 1:return a<=_.B(b,2);case 2:return a<_.B(b,2);case 3:return a==_.B(b,2);case 4:return a>_.B(b,2);case 5:return a>=_.B(b,2);default:return!1}return!0},jwc=function(a,b){var c=_.bb(_.Sd(b,56));a=_.Pj(a,_.cK,25);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},kwc=function(a,b){if(0==a.sB().length)return!0;var c=_.bb(b.sB().map(function(d){return _.B(d,
1)}));a=_.bb(a.sB().map(function(d){return _.B(d,1)}));return _.Oa(a,function(d,e){return c[e]})},lwc=function(a,b){var c=_.bb(_.Sd(b,50));a=_.Pj(a,_.Bl,37);return 0==a.length?!0:a.every(function(d){return c[d.Za()]})},mwc=function(a,b){if(_.Sd(a,40).length){if(b=_.C(b,_.YJ,86)){var c=_.bb(_.Sd(b,2));return _.Sd(a,40).some(function(d){return c[d]})}return!1}return!0},aM=function(a,b,c,d){d=void 0===d?5E3:d;YL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.M(aM,YL);_.g=aM.prototype;
_.g.xE=function(a){var b=this,c=YL.prototype.xE.call(this,a);if(5==c)return c;c=_.Il(a);var d=c.every(function(e){var f=e.Za();return(null!=b.Jd.get(f)||b.teamDriveId==f)&&!_.S(e,2,!1)});if(0<c.length&&d)return 1;a=_.Sd(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.ts=function(a){return YL.prototype.ts.call(this,a)&&!!a&&a.getItem().yc()==this.teamDriveId&&!JL(a.getItem())};_.g.LN=function(){return!1};_.g.qd=function(){var a=new _.ff;_.Kl(a,[this.teamDriveId]);_.Ll(a,2);return a};
_.g.yc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var nwc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.ff;_.y(a,48,!0);b=new _.ad;_.bd(b,11);_.cd(b,2);_.gf(a,b);this.ma=LL(this.W,a,!0)};nwc.prototype.add=function(a){a instanceof $L?this.H=a:a instanceof ZL?this.O=a:a instanceof XL?(this.log("Adding new cache hint for "+rL(this.W,a.qd(),2)),this.ha.push(a)):a instanceof aM&&this.V.push(a)};
nwc.prototype.remove=function(a){var b=this;if(a instanceof $L)this.H&&(VL(this.H,!1),this.H=null);else if(a instanceof ZL)this.O&&(VL(this.O,!1),this.O=null);else if(a instanceof XL){var c=_.la(this.ha,function(d){return b.W.equals(d.qd(),a.qd())});0<=c&&(VL(this.ha[c],!1),_.sa(this.ha,c))}else a instanceof aM&&(c=_.la(this.V,function(d){return b.W.equals(d.qd(),a.qd())}),0<=c&&(VL(this.V[c],!1),_.sa(this.V,c)))};
var owc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.ya(b,_.xa(a.ha));_.ya(b,_.xa(a.V));return b},pwc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.qd().clone(),_.Dj(c,32),_.Kj(c,26),!_.Tj(a.ma,c)):!0})};nwc.prototype.eW=function(){return _.xa(this.V)};var qwc=function(a,b){return _.ig(a.V,function(c){return c.yc()===b})},rwc=function(a,b){return pwc(a).find(function(c){return a.W.equals(c.qd(),LL(a.W,b,!0))})};
nwc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var swc=function(a,b){_.oi.call(this,"Ib");this.ids=a;this.error=b};_.M(swc,_.oi);swc.prototype.getError=function(){return this.error};swc.prototype.H=function(){return this.ids};var twc=function(a){_.oi.call(this,"Jb");this.people=a};_.M(twc,_.oi);twc.prototype.getPeople=function(){return this.people};var uwc=function(a){_.oi.call(this,"Kb");this.people=a};_.M(uwc,_.oi);
uwc.prototype.getPeople=function(){return this.people};var wwc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Me=c;this.V=this.W=null;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0);vwc(this)};wwc.prototype.Xe=function(){return this.Me};
var xwc=function(a){return 0===a.Me?1:2===a.Me||(1===a.Me||4===a.Me)&&(a.person.jp()||a.O)?3:2},ywc=function(a,b,c){if(_.B(b,1)!==_.B(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=xwc(a),e=a.Xe();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=Ivc(b.clone(),a.getEmail(b)),e=!_.Tj(a.person,b),a.person=b,a.Me=c,vwc(a),e||d!==xwc(a);if(4===c)return a.Me=c,vwc(a),d!==xwc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(Ivc(a.person,a.getEmail(b)),!0):!1};
wwc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var vwc=function(a){1===a.Me?(a.W=Date.now(),a.V=null):4===a.Me&&(a.V=Date.now())},Awc=function(a,b,c,d){_.xi.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.mI(function(){return zwc(e)},100,this)};_.M(Awc,_.xi);Awc.prototype.ah=function(a){a&&_.BI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.oe())};
var zwc=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};Awc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Re;var e=new _.DJ;e=_.Cj(e,1,a);return d.call(c,e)}).then(function(c){c=_.Pj(c,QL,1);b.dispatchEvent(new twc(c))},function(c){c=_.CB(c);b.dispatchEvent(new swc(a,c))})};
Awc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var Dwc=function(a,b,c,d,e){_.xi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Pc=new _.Me(this);this.Ma(this.Pc);this.ka=b;this.ha=d;this.ta=_.Uj(_.C(a,Iqc,85)||new Iqc,1,864E5);this.W=new Awc(a,b,c,e);this.ma=new _.YD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:nL(h,106015);if(k){h=_.C(_.uK(k),src,11);if(!h){h=new src;var l=_.uK(k);_.J(l,11,h)}h=_.y(h,1,f.H.size);_.y(h,2,f.O.size);k.vj()}},500,this);this.Pc.listen(this.W,"Jb",function(h){h=h.getPeople();Bwc(f,
h,1);f.ma.oe()});this.Pc.listen(this.W,"Ib",function(h){Cwc(f,h)})};_.M(Dwc,_.xi);Dwc.prototype.get=function(a){var b=this.H.get(a);return b?(Ewc(this,b)&&Fwc(this,a),b):null};var Fwc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.ah(b);var c=new _.Cn;a.V.set(b,c);return c.promise};Dwc.prototype.Sb=function(a){var b=this;return Gwc(this,a)?Promise.resolve(this.H.get(a)):Fwc(this,a).then(function(){return b.H.get(a)})};
Dwc.prototype.vc=function(){return 0===this.H.size};Dwc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var Hwc=function(a){return[].concat(_.md(a.H.values())).filter(function(b){return 3===xwc(b)&&4!==b.Xe()}).map(function(b){return b.person.clone()})},Iwc=function(a,b){return(a=a.H.get(b))?[].concat(_.md(a.H)):[]},Jwc=function(a,b,c){c=_.m(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a.H.get(d);e&&(e.H.delete(b),0===[].concat(_.md(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},Bwc=function(a,b,c){if(![1,2].includes(c))throw Error("kf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(Fvc)[c]+".")),Kwc(a,b,c))},Mwc=function(a,b,c,d){0!==b.length&&Lwc(a,b,c,void 0===d?0:d)},Gwc=function(a,b){b=a.H.get(b);return!(!b||3!==xwc(b)||Ewc(a,b))},Lwc=function(a,b,c,d){d=void 0===d?0:d;var e=!1;b=_.m(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var h=_.B(f,1),k=a.H.get(h);if(k)ywc(k,f,d)&&(e=!0),c&&k.H.add(c);else if(4!==d){e=!0;k=a;var l=d,p=c;1!==l&&Fwc(k,_.B(f,1));l=new wwc(f,p,l);k.H.set(_.B(f,1),l)}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},Ewc=function(a,
b){switch(b.Xe()){case 1:return Date.now()-Number(b.W)>a.ta;case 4:return 1E3<Date.now()-Number(b.V);default:return!0}};Dwc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var Cwc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():Hvc(new QL,c)});Kwc(a,b,4)},Kwc=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.B(e.value,1);var f=a.V.get(e);f&&(f.resolve(),a.V.delete(e))}Lwc(a,b,void 0,c)&&a.dispatchEvent(new uwc(b))},Nwc=function(a,b,c,d,e,f){_.xi.call(this);var h=this;this.Pc=new _.Me(this);this.Ma(this.Pc);this.H=new Dwc(a,b,c,e,f);this.O=_.LI(a)||new _.Tfc;this.Pc.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.M(Nwc,_.xi);Nwc.prototype.fP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=Owc(this,[c]).map(function(e){return Pwc(b,e)});Mwc(this.H,d,a.H.getId(),this.Xe(_.B(c,82)))}a.O&&Jwc(this.H,a.id,Qwc(this,a))};Nwc.prototype.Xe=function(a){return _.kgc.get(a)||0};
var Qwc=function(a,b){var c=Rwc(a,b.O),d=Rwc(a,b.H);return c.filter(function(e){return!d.includes(e)})},Rwc=function(a,b){return b?Swc(a,[b.getItem()]):[]},Uwc=function(a,b){b=b.getUser();Mwc(a.H,[Pwc(a,b)],"ACCOUNT");Twc(a,b)},Wwc=function(a,b){var c=_.Pj(b,_.lK,2).map(function(d){var e=_.C(d,_.Jk,9,1);return a.H.Sb(XK(e)).then(function(){return void Vwc(a,[e])})});return Promise.all(c).then(function(){return b})},Xwc=function(a,b){Vwc(a,Owc(a,b))},Vwc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,XK(c)&&Twc(a,c)},Ywc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,XK(f)&&(d.add(XK(f)),Mwc(a.H,[Pwc(a,f)],c));return Promise.all([].concat(_.md(d)).map(function(h){return a.H.Sb(h)})).then(function(){return Vwc(a,b)})},$wc=function(a,b){return Swc(a,[b]).some(function(c){return!Zwc(a,c)})},Zwc=function(a,b){return Gwc(a.H,b)},Swc=function(a,b){var c=new Set;a=Owc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=XK(b.value))&&c.add(b);return[].concat(_.md(c))},
Owc=function(a,b){return b.map(function(c){var d=c.Wv();d=d?[].concat(_.md(d.hR()),_.md(_.Pj(d,_.Jk,3))):[];var e=c.Hf();e=(e=e&&_.Xd(e))?Owc(a,[e]):[];return[].concat(_.md(_.dl(c)),[c.om(),c.Qt(),c.Fq(),c.gD()],_.md(d),_.md(e))}).flat().filter(function(c){return c&&!!XK(c)})};Nwc.prototype.Fd=function(a){return Iwc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var axc=function(a){return Lvc(new Kvc,Hwc(a.H))},bxc=function(a,b){return b.map(function(c){c=c.clone();var d=Owc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Dj(e,3),_.Dj(e,8),_.Dj(e,5);return c})},dxc=function(a,b){return b.some(function(c){return cxc(a,c)})},cxc=function(a,b){return Owc(a,[b]).some(function(c){return _.P(c,3)||c.jp()||_.P(c,5)})},Twc=function(a,b){var c=a.H.get(XK(b));if(c){a=c.person.clone();var d=_.uhc(b.$c(a.getName()),a.getEmail());c=xwc(c);_.y(d,16,c);
(a=_.C(a,Gvc,4))&&b.Hn(a.getUrl())}},Pwc=function(a,b){var c=XK(b);c=Ivc(Hvc(new QL,c).$c(b.getName()),b.getEmail());var d=new Gvc;var e=_.B(b,5);d=_.y(d,1,e);c=_.J(c,4,d);_.S(a.O,9,!1)&&(_.Dj(b,3),_.Dj(b,8),_.Dj(b,5));return c},exc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};exc.prototype.Yf=function(){return this.suggestionSessionId};exc.prototype.gAa=function(){return this.O};exc.prototype.vc=function(){return this.H};
var fxc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},gxc=function(a,b){a=fxc(a);b=fxc(b);return!(!a||!b||a!==b)},hxc=function(a){return a.Ac()+"_"+fxc(a.getName())},ixc=function(a,b){var c=_.Sd(a,1).map(function(d,e){return b[Number(e)].value.G3a.promise});return Promise.allSettled(c).then(function(d){return _.Sd(a,1).map(function(e,f){e=e.toString();var h=new Mvc;e=_.y(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Bc(1):(e.Bc(3),e.Le(f.reason.Qg));return e})})},bM=function(a,
b){_.O.call(this);this.O=a;this.request=b;this.Gy=new Set;this.status=6;this.V=new Map;this.Me=0};_.M(bM,_.O);_.g=bM.prototype;_.g.ji=function(a){var b=this;this.Gy.add(a);return this.resize().then(function(){return b.vO(a)})};_.g.dk=function(a){this.Gy.delete(a);0===this.Gy.size&&this.dispose()};_.g.Xe=function(){return this.Me};_.g.Fi=function(a){this.Me=a};
_.g.mD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Hu(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.OX():_.Th([])};_.g.OX=function(){for(var a=[],b=_.m(this.Gy.values()),c=b.next();!c.done;c=b.next())a.push(this.vO(c.value));return _.Vh(a)};
_.g.NX=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Gy.values()),e=d.next();!e.done;c={Mqa:c.Mqa},e=d.next())c.Mqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.NX(f.Mqa,a)}}(c)));return _.Vh(b)};_.g.mA=function(){for(var a=this,b=[],c={},d=_.m(this.Gy.values()),e=d.next();!e.done;c={Nqa:c.Nqa},e=d.next())c.Nqa=e.value,b.push(this.O.then(function(f){return function(h){return void h.mA(f.Nqa)}}(c)));return _.Vh(b).then(function(){a.Fi(0===a.Xe()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Gy.forEach(function(d){d=b.vka(d);c=Math.max(c,d.zi?d.zi()||0:0)});a.kfa(c)})};var jxc=function(a,b){return b?a.V.get(a.cka(b))||null:null};_.g=bM.prototype;_.g.YH=function(a,b){var c=jxc(this,a);b=luc(c,b);this.V.set(this.cka(a),b)};_.g.cka=function(a){return a};_.g.gMa=function(){return[]};_.g.vO=function(a){var b=this;return this.O.then(function(c){return void c.vO(a,b.Xj())})};_.g.removeItem=function(){};
var cM=function(a,b){_.xi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.M(cM,_.xi);var kxc=function(a){return!a.O||""!==a.pageToken};cM.prototype.ah=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&kxc(this)?lxc(this):_.Th()};
var lxc=function(a){a.O=!0;a.H=!0;var b=a.eia(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return mxc(a,c)},function(c){return a.handleError(c)})},mxc=function(a,b){a.H=!1;a.pageToken=a.pka(b);b=a.Gja(b);b.forEach(function(c){return a.data.push(c)});a.g6(b);return a.data.length<a.limit&&kxc(a)?_.Vh([_.Th(b),lxc(a)]).then(function(c){return c[0].concat(c[1])}):_.Th(b)};
cM.prototype.handleError=function(a){this.H=!1;a=_.JI(a);var b=new pL(a);this.hMa(b);this.dispatchEvent(b);return _.Uh(a)};cM.prototype.g6=function(){};cM.prototype.hMa=function(){};var nxc=function(a,b,c){cM.call(this,c,function(d){return a.then(function(e){return e.Re(d)}).Eg(function(e){return void _.YI(e)})});this.V=b};_.M(nxc,cM);_.g=nxc.prototype;_.g.eia=function(a,b,c){a=a.clone();a.ti(b);return new _.Ugc(a,c)};_.g.pka=function(a){return a.pageToken||""};_.g.Gja=function(a){return a.response.O()};
_.g.g6=function(a){this.V.mD(a,!1,1)};_.g.hMa=function(a){this.V.uB(this.request,a)};var oxc=function(a,b,c,d){bM.call(this,a,d.clone());this.ha=b;this.W=c;this.data=[];this.H=null};_.M(oxc,bM);_.g=oxc.prototype;_.g.refresh=function(){this.mA();this.H=new nxc(this.ha,this.W,this.request);return this.H.ah(this.request.zi()||100)};_.g.Cp=function(a){return this.data.find(function(b){return gxc(b.getName(),a)})};
_.g.kfa=function(a){this.H&&a===this.request.zi()||(this.request.ti(a),this.H?this.H.ah(a):this.refresh())};_.g.Xj=function(){var a=this,b=Ftc((new BL).Bc(this.status),this.data.filter(function(c){return a.W.cDa(c)}).map(function(c){return c.clone()}));return new _.AK(b,void 0,void 0,this.Xe())};_.g.mD=function(a,b,c){var d=this;a=a.filter(function(e){return e.Ac()===d.request.Ac()});return bM.prototype.mD.call(this,a,b,c)};
_.g.Hu=function(a,b){b=void 0===b?1:b;if(!Ync(jxc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return gxc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.YH(a.getName(),b);return!0};_.g.removeItem=function(a){_.ua(this.data,function(b){return gxc(b.getName(),a)})&&(this.V.delete(this.cka(a)),this.OX())};_.g.cka=function(a){return fxc(a)};_.g.YH=function(a,b){this.Cp(a)&&bM.prototype.YH.call(this,a,b)};
_.g.gMa=function(a){var b=this;return a instanceof _.JJ&&a.Ac()===this.request.Ac()?a.KV().map(function(c){return b.Cp(c.Gm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var dM=function(){this.H=new Map};dM.prototype.ji=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.gia(b),this.H.set(c,d));d.ji(a);return e};var pxc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.bxa(c),a.H.set(d,e));e.ji(b);return f};
dM.prototype.dk=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.dk(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var qxc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.dk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},rxc=function(a,b){return a.H.get(b)};dM.prototype.mD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.cDa(f)});this.H.forEach(function(f){f.mD(e,b,c)})};dM.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var sxc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.gMa(b)});return[].concat.apply([],_.md(a))};dM.prototype.YH=function(a,b){this.H.forEach(function(c){c.YH(a,b)})};dM.prototype.cDa=function(){return!0};dM.prototype.uB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.NX(b)};dM.prototype.L2=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.gia(b),f.Fi(c),this.H.set(e,f),this.mD(a,d))};var txc=function(){this.V=new Set;this.O=0;this.H=[]},uxc=function(a,b){a.V.add(b)};
txc.prototype.W=function(a){this.V.delete(a)};var vxc=function(a,b){var c;if(c=b instanceof _.cl)c=b.Xv(),c=!!(b.Vh()&&c&&c<=Math.max.apply(Math,_.md([a.O].concat(_.md(a.H)))));if(c)return!0;b=b instanceof _.cl?b.getId():b;return a.V.has(b)},wxc=function(a,b){return _.ua(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};txc.prototype.V8=function(a){var b=this;return a.filter(function(c){return!vxc(b,c)})};var xxc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new txc};_.M(xxc,dM);
var yxc=function(a,b){uxc(a.O,hxc(b));(a=rxc(a,b.Ac()))&&a.OX()};_.g=xxc.prototype;_.g.getKey=function(a){return a.Ac()};_.g.gia=function(a){return new oxc(this.V,this.W,this,a)};_.g.bxa=function(a){return new oxc(this.V,this.W,this,a)};_.g.No=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=rxc(this,b.getId()))&&b.refresh()};_.g.cDa=function(a){return!vxc(this.O,hxc(a))};
var zxc=function(a,b){this.O=a;this.H=b},Axc=function(a,b){b=_.$Wb(b);var c=new nxc(a.O,a.H,b);new Promise(function(d,e){return c.ah(100).then(d,e)})},Bxc=function(){this.Jd={}},eM=function(a,b){Cxc(a,"subscribed");b&&Cxc(a,b);return a.Jd[b||"subscribed"].ke.promise},Cxc=function(a,b){a.Jd[b]||(a.Jd[b]={count:0,AR:[],L1a:[],ke:_.Wh()});a.Jd[b].count++},Exc=function(a,b){b&&!Dxc(a,b)||Dxc(a,"subscribed")},Dxc=function(a,b){if(!a.Jd[b])return!1;a.Jd[b].count--;0===a.Jd[b].count&&(a.Jd[b].ke.resolve({items:a.Jd[b].AR,
FKb:a.Jd[b].L1a}),_.Ua(a.Jd,b));return!0};Bxc.prototype.No=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.yc();f&&f===e.Ac()&&c.Jd[f]&&c.Jd[f].L1a.push(e);c.Jd[d]&&c.Jd[d].AR.push(e)})};var Fxc=function(a,b,c){cM.call(this,a,c);this.V=b};_.M(Fxc,cM);Fxc.prototype.eia=function(a,b){return a.clone().ti(b)};Fxc.prototype.pka=function(){return""};Fxc.prototype.Gja=function(a){return[a]};Fxc.prototype.g6=function(a){this.V(a)};
var Gxc=function(a,b,c,d){bM.call(this,a,d.clone());this.ha=b;this.H=this.SS=null;this.W=c};_.M(Gxc,bM);Gxc.prototype.refresh=function(){var a=this;this.mA();this.H=new Fxc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Re(b)})});return this.H.ah(this.request.zi()||0)};Gxc.prototype.kfa=function(a){1===this.status||this.H&&a===this.request.zi()||(this.request.ti(a),this.H?this.H.ah(a):this.refresh())};
Gxc.prototype.Xj=function(){if(this.SS)return this.SS;var a=new EL;a.Bc(this.status);return a};Gxc.prototype.Hu=function(a){this.SS=a;return!0};var Hxc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.M(Hxc,dM);_.g=Hxc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.gia=function(a){var b=this;return new Gxc(this.O,this.W,function(c){b.mD(c,!1)},a)};_.g.bxa=function(){throw Error("lf");};
_.g.L2=function(a,b,c,d){var e=a[0].nl();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.fq()}).join(", "));dM.prototype.L2.call(this,a,b,c,d)};var Ixc=function(a,b,c,d){_.xi.call(this);this.request=a;this.Ba=b;this.ta=c;this.va=d;this.ma=0;this.ke=null;this.O=new Set};_.M(Ixc,_.xi);
Ixc.prototype.ah=function(){var a=this;if(this.ke)return this.ke.promise;this.ke=_.Wh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={bra:b.bra,tea:b.tea},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.tea=d;b.bra=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Re(f.bra)}}(b)).then(function(f){return function(h){var k=f.tea;a.V(h);Jxc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.tea,h)}}(b))}return this.ke.promise};
var Jxc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Da"),a.ke.resolve()):a.dispatchEvent("Aa")};Ixc.prototype.handleError=function(a,b){b=_.CB(b);var c=b.Qg;5===c.Xs()||4===c.mk()?(this.va.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),Jxc(this,a)):(a=new pL(c,_.Uj(this.ta.ag(),1,1)),this.dispatchEvent(a),this.ke.reject(b))};
var Kxc=function(a){var b=new _.oG;b.Ob(a);return b},Lxc=function(a,b,c,d,e){Ixc.call(this,a.clone(),c,d,e);this.H=b};_.M(Lxc,Ixc);Lxc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.aWb(a.clone(),[c]);b.set(c,d)});return b};Lxc.prototype.V=function(a){var b=[];a.MT().forEach(function(c){b.push(c)});this.H(b,!0)};Lxc.prototype.ha=function(){this.H([],!1)};Lxc.prototype.ka=function(a){this.H([Kxc(a)],!0)};
var Mxc=function(a,b,c,d,e,f){bM.call(this,a,f.clone());this.ma=b;this.W=c;this.ka=d;this.ha=e;this.Xk={};this.H=null};_.M(Mxc,bM);Mxc.prototype.refresh=function(){this.H=new Lxc(this.request,this.ha,this.ma,this.W,this.ka);return this.H.ah()};Mxc.prototype.kfa=function(){this.H||this.refresh()};Mxc.prototype.Xj=function(){var a=new _.yK;a.Bc(this.status);_.La(this.Xk,function(b,c){a.MT().set(c,b||new _.oG)});a.Fi(this.Xe());return a};
Mxc.prototype.Hu=function(a){var b=a.getId();if(_.Tj(a,Kxc(a.getId()))){if(this.Xk[b])return delete this.Xk[b],!0}else if(0<=this.request.hn().indexOf(b))return this.Xk[b]=a,!0;return!1};var Nxc=function(a,b){a=a.getState();return null==a||b.getState()==a},Oxc=function(a,b,c){cM.call(this,a,c);this.V=b};_.M(Oxc,cM);Oxc.prototype.eia=function(a,b,c){a=a.clone();a.ti(b);return new _.ghc(a,c)};Oxc.prototype.pka=function(a){return a.pageToken||""};Oxc.prototype.Gja=function(a){return a.response.nl()};
Oxc.prototype.g6=function(a){this.V(a)};var Pxc=function(a){this.H=_.Ncc(a,{numeric:!0})};Pxc.prototype.O=function(a,b,c){var d=b.getTitle()||"",e=c.getTitle()||"",f;d!==e?f=this.H(d,e)*(a?1:-1):f=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};Pxc.prototype.V=function(a,b,c){var d=_.B(b,4),e=_.B(c,4),f;d!==e?f=_.Ea(d,e)*(a?1:-1):f=_.Ea(b.getId(),c.getId())*(a?1:-1);return f};
var Qxc=function(a,b,c,d,e){bM.call(this,a,e.clone());this.ha=b;this.Xk=[];this.H=null;this.W=d;a=new Pxc(c);b=(c=this.request.Bw())?c.getType():0;c=c?c.sf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};_.M(Qxc,bM);Qxc.prototype.refresh=function(){var a=this;this.mA();this.H=new Oxc(this.request,this.W,function(b){return a.ha.then(function(c){return c.Re(b)})});return this.H.ah(this.request.zi()||0)};
Qxc.prototype.kfa=function(a){1===this.status||this.H&&a===this.request.zi()||(this.request.ti(a),this.H?this.H.ah(a):this.refresh())};Qxc.prototype.Xj=function(){var a=new RL;a.Bc(this.status);Ovc(a,this.Xk.map(function(b){return b.clone()}));return new _.DK(a,void 0,1!==this.status&&kxc(this.H),this.Xe())};Qxc.prototype.Hu=function(a){var b=_.ua(this.Xk,function(c){return c.getId()===a.getId()});return a&&Nxc(this.request,a)&&!_.Tj(a,Kxc(a.getId()))?vnc(this.Xk,a,this.ka):b};
var Rxc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.M(Rxc,dM);_.g=Rxc.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.gia=function(a){var b=this;return new Qxc(this.V,this.ha,iL(_.wI(this.O)),function(c){return void b.mD(c,!1)},a)};_.g.bxa=function(a){var b=this;return new Mxc(this.V,this.ha,this.O,this.W,function(c,d){return b.mD(c,d)},a)};
_.g.L2=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));dM.prototype.L2.call(this,a,b,c,d)};
var Sxc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();$K(a)&&(c=(c=a.Hf())?_.B(c,3):"");aL(a)&&(a.Wi()&&(c+="+"+String(a.Wi())),a.Fj()&&(c+="+shared"));return _.RTa(c,b?"32":"16")},Txc=function(a,b){b=Object.entries(b);return 0===b.length?a:a+"?"+b.map(function(c){var d=_.m(c);c=d.next().value;d=d.next().value;return c+"="+d}).join("&")},Uxc=function(a,b){var c=_.Q(a,44),d=a.Hf();if(d){if(1!==_.Zd(d))return null;c=(c=_.Xd(d))?_.Q(c,44):!0}if(!c)return null;c={};d=a.getId();$K(a)&&(d=Onc(a));
d=[_.E(b,65,"https://lh3.google.com"),"u",_.KI(_.wI(b)),"d",d].join("/");d+="={size}";_.S(b,89,!1)&&_.P(a,140)&&(c.resourcekey=_.jl(a));return d=Txc(d,c)},Vxc=function(a){this.H=a},Xxc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=Sxc(b,_.S(a.H,75,!1));_.y(b,21,d)}c.includes(18)&&_.bic(b,Foc(b,a.H));c.includes(19)&&(d=Uxc(b,a.H),_.y(b,20,d));Wxc(a,b,c);if($K(b)){if(d=(d=b.Hf())&&_.Xd(d)){if(c.includes(20)&&c.includes(3)){var e=Sxc(d,_.S(a.H,75,!1));_.y(d,21,e)}c.includes(18)&&_.bic(d,Foc(d,
a.H));c.includes(19)&&(e=Uxc(d,a.H),_.y(d,20,e));Wxc(a,d,c)}_.fic(b,!!b.Tx())}},Wxc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!aL(b)&&!$K(b)&&!_.Fd(e)&&(!b.Y6()||2!==b.Wo()),d&&_.y(b,40,e),e&&c&&(a=a.H,d=b.getId(),$K(b)&&(d=Onc(b)),c=new _.fj(_.E(a,16,"")+"/uc"),_.pj(c,"id",d),_.pj(c,"authuser",_.KI(_.wI(a))),_.pj(c,"export","download"),_.S(a,89,!1)&&_.P(b,140)&&_.pj(c,"resourcekey",_.jl(b)),_.y(b,41,c.toString())))}},Yxc=function(a,b){this.pia="";
this.startTime=b||new Date;this.Bda=a;this.O$=Hoc(a)};Yxc.prototype.clone=function(){return new Yxc(this.Bda,this.startTime)};var Zxc=function(){this.H=null;this.GY=[]},$xc=function(a){return _.df(a.GY,function(b){return _.Ya(b)})};Zxc.prototype.sN=function(){return this.H};
Zxc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new Wvc;e.V=Vvc(d.O$);var f=_.Sg().substring(0,8);d=Hoc(f);f=(new vvc).Ob(f);f=_.y(f,2,d);b=_.y(f,3,b).Gi(c);this.GY.push(b);e.O=Vvc(d);e.H=Tvc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.nk;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.ok(d,1,1);var k=d.O;lpc(k,f);lpc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.ok(d,2,1),k=d.O,lpc(k,f),lpc(k,h));f=e.W;null!=f&&(_.ok(d,3,5),lpc(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.ok(d,4,1),h=d.O,lpc(h,f),lpc(h,e));e=_.pk(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var ayc=function(){this.Eb=[];this.O=this.H=0};ayc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Eb,e=0;e<a;++e){b=b+1&255;c=c+d[b]&255;var f=d[b];d[b]=d[c];d[c]=f}this.H=b;this.O=c};
var byc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Eb,h=0;h<c;++h){d=d+1&255;e=e+f[d]&255;var k=f[d];f[d]=f[e];f[e]=k;b[h]^=f[f[d]+f[e]&255]}a.H=d;a.O=e},cyc=function(a){this.key=a;this.H=new _.hgc;this.O=new _.fgc(new _.hgc,_.wma(a))};cyc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=isc(b);c=dyc(this,a);return b.concat(c,eyc(this,b,a,!0))};
var fyc=function(a,b){var c=eyc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=dyc(a,c);if(b!==a)throw Error("mf");return c},dyc=function(a,b){a=_.ggc(a.O,_.Dgc(b));return isc(a)},eyc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new ayc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Eb,h=0;256>h;++h)f[h]=h;var k=0;for(h=0;256>h;++h){k=k+f[h]+a[h%e]&255;var l=f[h];f[h]=f[k];f[k]=l}b.H=0;b.O=0;b.discard(1536);if(d){d="";for(e=0;e<c.length/8192;e++)a=_.Dgc(c.substring(8192*
e,8192*(e+1))),byc(b,a),d+=isc(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.n.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;byc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("nf");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=gyc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=gyc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=gyc(d,e++),k=gyc(d,e++),l=gyc(d,e++),f=((f&7)<<18|(h&63)<<12|(k&63)<<6|l&63)-65536,b[a++]=String.fromCharCode(55296+(f>>10)),b[a++]=String.fromCharCode(56320+(f&1023))):(h=gyc(d,e++),k=gyc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},gyc=function(a,b){return a[Math.floor(b/8192)][b%8192]},hyc=function(a,b,c){this.data=a;this.AZa=b;this.H=c;this.isEncrypted=!1};hyc.prototype.getData=function(){return this.data};
hyc.prototype.Lm=function(){return this.AZa};var iyc=function(a,b,c,d){this.O=a;this.H=_.Wh();this.lp=!1;this.V=_.E(b,7,"");this.W=_.Uj(_.jL(b),6,2E7);this.IE=_.BI(b);this.ha=_.Uj(_.jL(b),12,0);this.ka=c;this.Bd=d||null};iyc.prototype.initialize=function(){var a=this;this.lp||(this.lp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.fi(this.H.promise)};
iyc.prototype.hB=function(a){if(a instanceof _.BB)return 0;if(a instanceof PL)return 1;if(a instanceof Asc)return 5;if(a instanceof GL)return 3;if(a instanceof Kvc)return 6;throw new _.pc("Unsupported dataShard in getDataType");};var jyc=function(a){if(0==a)return _.BB;if(1==a)return PL;if(5==a)return Asc;if(3==a)return GL;if(6==a)return Kvc;throw new _.pc("Unsupported dataType:"+a+" in getDataTypeCtor");};iyc.prototype.Tn=function(a){if(a instanceof GL)return a.Tn()};
iyc.prototype.Lm=function(a){if(a instanceof GL)return a.wd().length};iyc.prototype.hv=function(a){if(a instanceof GL)return a=a.hv(),null!=a?a:void 0};
var oyc=function(a,b,c,d){if(0==c.length)return _.Th();for(var e=a.hB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.hB(h.value);var k=a.Tn(c[0]),l=0;3==e&&kyc(a,c);var p=!!b;return lyc(a,c).then(function(q){if(p){var r=a.Bd?a.Bd.H(106023,d):null;l=q.reduce(function(z,A){(A=A.Lm())&&(z+=A);return z},0);var v=myc(a,b,q.map(function(z){return z.getData()})).then(function(z){if(z.length!=q.length)return _.Uh(Error("of"));z=_.m(z.entries());for(var A=z.next();!A.done;A=z.next()){var D=_.m(A.value);A=
D.next().value;D=D.next().value;A=q[A];A.data=D;A.isEncrypted=!0}return q});r&&(yrc(xrc(wrc(mL(r),_.vK(_.Nfc,e)),_.vK(_.Kfc,k)),!0),v.then(function(){var z=l;vrc(mL(r),!0).Bt(z);r.vj()},function(){var z=l;vrc(mL(r),!1).Bt(z);r.vj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return nyc(a.O,q,e,k,p,d)})})},lyc=function(a,b){return new _.Sh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Jc();p.length>a.W?e=!0:f.push(new hyc(p,a.Lm(l),a.hv(l)))}});if(e){var h=
Error("pf"),k=new _.oc;_.HI(k,2);_.TI(k,23);_.y(k,21,h.message);_.hq(k);a.ka(k);d(h)}c(f)})},kyc=function(a,b){a.Tn(b[0]);for(var c=_.m(b),d=c.next();!d.done;d=c.next())a.Tn(d.value);a.IE||pyc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Tn()){d=[];for(var e=b[c].wd();e.length>a;){var f=_.Aa(e,a-1,a);f=duc(new GL,f);d.push(f)}duc(b[c],e);d.length&&_.Bb(_.Aa,b,c+1,0).apply(null,d)}},fM=function(a,b,c,d,e,f){var h=_.Wh(),k;_.Zh(a.H.promise.then(function(){return qyc(a.O,c,d,e)}).then(function(l){var p=
l.map(function(r){return r.data}),q=new _.$h;if(l[0]&&l[0].H0){if(k=a.Bd?a.Bd.H(106022,f):null)yrc(xrc(wrc(mL(k),_.vK(_.Nfc,c)),_.vK(_.Kfc,d)),!0),q.Wm().then(function(r){var v=k;r=void 0!=r;vrc(mL(v),r);_.Ejc(v)});ryc(a,q,b,p)}else q.callback(p);return _.Th(q)},function(){}).then(function(l){var p=[];if(l){var q=0;l=_.m(l);for(var r=l.next();!r.done;r=l.next())r=r.value,r=new (jyc(c))(JSON.parse(r)),q+=a.Lm(r),p.push(r);3==c&&(a.IE||syc(p),tyc(p));k&&mL(k).Bt(q)}h.resolve(p)}),function(){k&&k.vj()}).Eg(h.reject,
h);return h.promise},pyc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(_.Pj(a[b],_.Jk,2).length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.$hc(f,uyc(_.dl(f),b,c)),_.aic(f,uyc([f.om()],b,c)[0]),_.gic(f,uyc([f.Qt()],b,c)[0]),_.kic(f,uyc([f.Fq()],b,c)[0]),_.nic(f,uyc([f.gD()],b,c)[0]),f=f.Wv())_.Whc(f,uyc(f.hR(),b,c)),_.Xhc(f,uyc(_.Pj(f,_.Jk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});
_.Jj(a[0],2,h)}},uyc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;f&&f.getId()?(e=f.getId(),b.has(e)?_.Tj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.Jk,f.Ob(e),c.set(e,f),d.push(f))):d.push(f)}return d},syc=function(a){var b=new Map,c=new Map;a[0]&&_.Pj(a[0],_.Jk,2)&&_.Pj(a[0],_.Jk,2).forEach(function(h){b.set(h.getId(),h);h=(new _.Jk).Ob(h.getId());c.set(h.getId(),h)});if(b.size){a=_.m(a);for(var d=a.next();!d.done;d=
a.next()){d=d.value;var e=d.wd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.$hc(f,vyc(_.dl(f),b,c)),_.aic(f,vyc([f.om()],b,c)[0]),_.gic(f,vyc([f.Qt()],b,c)[0]),_.kic(f,vyc([f.Fq()],b,c)[0]),_.nic(f,vyc([f.gD()],b,c)[0]),f=f.Wv())_.Whc(f,vyc(f.hR(),b,c)),_.Xhc(f,vyc(_.Pj(f,_.Jk,3),b,c));_.Kj(d,2)}}},vyc=function(a,b,c){if(!a)return a;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.getId()){var f=e.getId();_.Tj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);
return d},tyc=function(a){for(var b={},c=1;c<a.length;b={bea:b.bea},c++)if(!a[c].Tn()){for(var d=0,e=c;e<a.length&&!a[e].Tn();e++)d++;e=a[c-1];d=_.Aa(a,c,d);b.bea=e.wd();d.forEach(function(f){return function(h){_.ya(f.bea,h.wd())}}(b));duc(e,b.bea)}},myc=function(a,b,c){if(!_.Sfc()&&a.V){var d=new Worker(_.Vga(_.Iy(a.V)),void 0),e=new _.$h;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Hd(Error(String(k)))},!1);
c=Rvc(new Qvc,c);d.postMessage({command:"encrypt",data:{request:c.Jc(),key:b}});return e}try{a=[];var f=new cyc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.ei(a)}catch(k){h=_.gi(k)}return h},ryc=function(a,b,c,d){for(var e=0;e<d.length;e++)if(d[e].length>a.W){b.callback(void 0);return}if(!_.Sfc()&&a.V){var f=new Worker(_.Vga(_.Iy(a.V)),void 0);f.addEventListener("message",function(k){f.terminate();b.callback(k.data)},!1);f.addEventListener("error",function(){f.terminate();b.callback(void 0)},
!1);f.postMessage({command:"decrypt",data:{dumps:d,key:c}})}else try{a=[];var h=new cyc(c);for(c=0;c<d.length;c++)a.push(fyc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},wyc=/^[\w]+$/,xyc=function(a,b,c){return[a.ks(),a.clientId,b?"#":gM(a)].join(":")+":"+(c||"")},yyc=function(a,b,c){this.global=void 0===c?!1:c;a.match(wyc);this.key=a;this.value=b};yyc.prototype.getKey=function(){return this.key};yyc.prototype.Za=function(){return this.value};
var zyc=function(a,b){return{k:xyc(b,a.global,a.key),v:a.value}},Ayc=function(a,b){a=xyc(a,b);return Jtc(a+"A",a+"z")},Byc=function(a,b){this.H=a;this.O=b},Cyc=function(a){return a?new Byc(a.versionKey,a.versionChangeTimestamp):null},Dyc=function(a,b){return a+":"+b},Eyc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.H0=void 0===e?null:e},Fyc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.H0}},Gyc=function(a,b,c,d){a=gM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.yt(":%02d",c)},Hyc=function(a,b,c,d){c=Gyc(a,b,void 0===c?0:c,d);a=gM(a)+"_"+b;3===b&&(a+="_"+d);return Jtc(c,a+":a")},Iyc=function(a){var b=gM(a)+"_";a=gM(a)+"_A";return Jtc(b,a)},Jyc=function(a){return a?new Eyc(a.data,a.index,a.size,a.timestamp,a.e):null},Kyc=function(a,b,c,d,e,f){f=void 0===f?Date.now():f;this.userId=a;this.clientId=b;this.W=c;this.V=d;this.O=null;this.ha=this.ka=!1;this.ma=void 0;this.fields=_.xa(e);_.Ga(this.fields);_.Da(this.fields);this.H=f};
Kyc.prototype.ks=function(){return this.userId};Kyc.prototype.Hg=function(){return _.xa(this.fields)};
var gM=function(a){if(!a.O){var b=new _.nI;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Hdc(b.digest())}return a.O},Lyc=function(a){return{versionKey:gM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},Myc=function(a){var b=!0;b=void 0===b?!1:b;if(!a)return null;var c=a.versionInfo,d=a.versionKey;if(!c||!d)return null;a=new Kyc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:gM(a)!==d&&(a=null);return a},hM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.O.call(this);var e=this;this.Bd=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Qa=a.then(function(f){e.version=f});this.Kb=new _.Me(this);this.Ma(this.Kb)};_.M(hM,_.O);hM.prototype.initialize=function(){return Nyc(this)};
var Nyc=function(a,b){a.V||(a.V=_.Wh(),a.Qa.then(function(){b?(a.va=!1,Oyc(a,b),a.log("Initialized database GoogleDriveDs with existing IndexedDb"),a.V.resolve()):(a.W&&(a.ma=a.W.H(106004)),a.log("Opening database GoogleDriveDs (version 2)"),_.xec("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).jg(a.Ka.bind(a),a.ta.bind(a)),_.Bi(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.pc("Database version error",void 0,_.AI(c)?c:void 0))}));return a.V.promise},Oyc=function(a,b){a.H=b;a.Kb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Kb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};hM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ia(b.H.objectStoreNames,function(c){return _.zic(b,c)});_.La(_.RI,function(c){var d=_.lgc.get(c);_.uec(b,c,d?{keyPath:d}:void 0)})};
hM.prototype.ta=function(a){var b;a&&a instanceof _.sI&&"InvalidStateError"==a.getName()&&_.vj.Iu?b=Error("qf"):_.AI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);Pyc(this,!1)};hM.prototype.Ka=function(a){this.ka?a.dispose():(Oyc(this,a),this.Ma(this.H),this.readOnly||Qyc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),Pyc(this,!0))};
var Pyc=function(a,b){if(a.ma){var c=a.ma,d=_.C(_.uK(c),prc,5);d||(d=new prc,c=_.uK(c),_.J(c,5,d));d=_.y(d,1,2);c=a.Ai().W;d=_.y(d,2,c);c=a.Ai().ka;d=_.y(d,5,c);b=_.y(d,3,b);b=_.y(b,4,a.Ba);d=a.Ai().ma;_.y(b,6,d);a.ma.vj();a.ma=null}};hM.prototype.Ha=function(){this.H||this.Pf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("rf")))};hM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};hM.prototype.Pf=function(){return this.ka};
var Ryc=function(a){return a.ka?a.O:null};hM.prototype.Ai=function(){return this.version};
var iM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.vec(a,[b],c)}catch(d){return null}},Qyc=function(a){var b=_.RI.v_,c=iM(a,b,"readwrite");if(!c)return _.Uh(Error("sf"));c.objectStore(b).put(Lyc(a.Ai()));return _.Th(c.wait()).then(function(){})},Syc=function(a){if(!a.H)return _.Uh(Error("tf"));if(a.Pf())return _.Uh(Error(a.O));var b=_.RI.v_,c=iM(a,b,"readwrite");if(!c)return _.Uh(Error("uf"));b=c.objectStore(b);return _.Th(b.remove(gM(a.Ai())))},
Tyc=function(a,b,c){if(!a.length)return b.resolve([]),null;var d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())(e=Jyc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("vf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("wf")),0;e=d[0].size;if(!e)return b.reject(Error("xf")),0;if(e>d.length)return b.reject(Error("yf`"+e+"`"+d.length)),0;for(var f=0;f<e;f++)if(!d[f]||d[f].size!=e||d[f].timestamp!=a)return b.reject(Error("zf`"+e)),0;if(c&&a<c)return b.reject(Error("Af`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},qyc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Uh(Error("Bf"));if(a.Pf())return _.Uh(Error(a.O));var e=Hyc(a.Ai(),b,0,c),f=_.RI.S5,h=iM(a,f);if(!h)return _.Uh(Error("Cf"));e=h.objectStore(f).getAll(e);var k=_.Wh();e.jg(function(l){l=Tyc(l,k,d);a.readOnly||null==l||Uyc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},nyc=function(a,b,c,d,e,f){if(a.H){if(a.Pf())return _.Uh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Uh(Error("Df"))}else return _.Uh(Error("Ef"));var h=Date.now(),k=b.length,l=b.map(function(v,z){return{key:Gyc(a.Ai(),c,z,d),data:new Eyc(v.getData(),z,k,h,e),metadata:v}}),p=_.RI.S5;b=iM(a,p,"readwrite");if(!b)return _.Uh(Error("Ff"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={uea:q.uea},r=l.next())r=r.value,q.uea=Vyc(a,c,d,r.metadata,f),p.put(Fyc(r.data),r.key).then(function(v){return function(){var z=v.uea;z&&(vrc(mL(z),!0),z.vj())}}(q),function(v){return function(z){var A=
v.uea,D=z instanceof _.sI?z.code:_.Xdc;A&&a.W&&(z=vrc(mL(A),!1),D=_.vK(_.Ofc,D),_.y(z,2,D),A.vj())}}(q));return _.Th(b.wait()).then(function(){})},Vyc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=xrc(wrc(mL(a),_.vK(_.Nfc,b)),_.vK(_.Kfc,c)),f=f.Tn(d.H),f=_.y(b,5,f),yrc(f,d.isEncrypted),void 0!=d.Lm()&&mL(a).Bt(d.Lm());return a}return null},Uyc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Pf())return _.Uh(Error(a.O));if(3==b&&void 0==c)return _.Uh(Error("Gf"))}else return _.Uh(Error("Hf"));
b=Hyc(a.Ai(),b,d,c);c=_.RI.S5;a=iM(a,c,"readwrite");if(!a)return _.Uh(Error("If"));a.objectStore(c).remove(b);return _.Th(a.wait()).then(function(){})},Wyc=function(a){if(!a.H)return _.Uh(Error("Jf"));if(a.Pf())return _.Uh(Error(a.O));var b=Iyc(a.Ai()),c=_.RI.S5;a=iM(a,c,"readwrite");if(!a)return _.Uh(Error("Kf"));a.objectStore(c).remove(b);return _.Th(a.wait()).then(function(){})};
hM.prototype.getMetadata=function(a){if(this.H){if(this.Pf())return _.Uh(Error(this.O));if(a&&0==a.length)return _.Uh(Error("Lf"))}else return _.Uh(Error("Mf"));var b=this.Ai(),c=_.RI.c7,d=iM(this,c);if(!d)return _.Uh(Error("Nf"));c=d.objectStore(c);if(a){d=[];a=_.m(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d.push(_.Th(c.get(xyc(b,e.global,e.key))));c=_.Vh(d)}else c=_.Vh([c.getAll(Ayc(b,!1)).then(),c.getAll(Ayc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return unc(f,h)});return c.then(function(f){return f.map(function(h){a:{if(h){var k=h.k.split(":"),l="#"===k[2];if(4===k.length&&(l||k[2]===gM(b))){h=k[0]!==b.ks()||k[1]!==String(b.clientId)?void 0:new yyc(k[3],h.v,l);break a}}h=void 0}return h})})};
var Xyc=function(a,b){if(a.H){if(a.Pf())return _.Uh(Error(a.O));if(0==b.length)return _.Uh(Error("Of"))}else return _.Uh(Error("Pf"));var c=_.RI.c7,d=iM(a,c,"readwrite");if(!d)return _.Uh(Error("Qf"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(zyc(e.value,a.Ai())).then());return _.Vh(d).then(function(){})},Yyc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Pf())return _.Uh(Error(a.O))}else return _.Uh(Error("Sf"));var c=a.Ai(),d=_.RI.c7;a=iM(a,d,"readwrite");
if(!a)return _.Uh(Error("Tf"));d=a.objectStore(d);a=[];a.push(d.remove(Ayc(c,!1)).then());b&&a.push(d.remove(Ayc(c,!0)).then());return _.Vh(a).then(function(){})},Zyc=function(a){if(!a.H)return _.Uh(Error("Uf"));if(a.Pf())return _.Uh(Error(a.O));var b=Dyc(a.Ai().ks(),a.Ai().clientId),c=_.RI.oU;a=iM(a,c);if(!a)return _.Uh(Error("Vf"));c=a.objectStore(c);return _.Th(c.get(b)).then(function(d){return Cyc(d)})},$yc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Uh(Error("Wf"));if(a.Pf())return _.Uh(Error(a.O));
var c=a.Ai(),d=Dyc(c.ks(),c.clientId);b=new Byc(gM(c),b?Date.now():void 0);c=_.RI.oU;a=iM(a,c,"readwrite");if(!a)return _.Uh(Error("Xf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Th(a.wait())};hM.prototype.Ll=function(a){var b=this;return this.H?this.Pf()?_.Uh(Error(this.O)):Zyc(this).then(function(c){var d=gM(b.Ai());if(c)if(a){if(!c.O&&d==c.H&&d!=gM(a))return $yc(b,!0);if(c.O&&d==gM(a))return $yc(b)}else{if(d!=c.H)return $yc(b)}else if(!a)return $yc(b)}):_.Uh(Error("Yf"))};
var azc=function(a){if(!a.H)return _.Uh(Error("Zf"));if(a.Pf())return _.Uh(Error(a.O));var b=a.Ai(),c=Dyc(b.ks(),b.clientId);return Zyc(a).then(function(d){if(d){d=_.RI.oU;var e=iM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
hM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Pf()?_.Uh(Error(this.O)):Zyc(this).then(function(c){var d=c&&c.H==gM(b.Ai());return d&&!a?!1:(c&&d?azc(b):_.Th()).then(function(){return _.Vh([Yyc(b,a),Wyc(b),Syc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Uh(Error("$f"))};hM.prototype.close=function(){this.ha("Closing database")};hM.prototype.log=function(a){this.Bd.info("drive.ds.sync.storage.VersionedDb",a)};
var bzc=function(a){if(1>=a.Ai())return!1;var b=a.H.objectStoreNames;return _.Qa(_.RI).every(function(c){return b&&b.contains(c)})},czc=function(){var a=_.Wh();_.xec("GoogleDriveDs").jg(function(b){b?bzc(b)?a.resolve(b):(b.close(),_.Th(Ktc()).then(function(){return void a.resolve(null)},function(){return void a.resolve(null)})):a.resolve(null)},function(){return void a.resolve(null)});return a.promise},dzc=function(a,b,c){var d=_.Wh();a?_.vec(a,[_.RI.v_],"readonly").objectStore(_.RI.v_).getAll().jg(function(e){e=
_.Qa(e).map(function(f){return Myc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.ks()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},ezc=function(a,b,c){var d=_.Wh();czc().then(function(e){if(e){var f=_.RI.oU;_.vec(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return Cyc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.RI.v_,p=_.vec(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
Myc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.bi(p.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},fzc=function(a,b,c){var d=_.Wh(),e=new hM(_.Th(a),b);Nyc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},gzc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=fzc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Vh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+gM(l)))});d.resolve(k)})},hzc=function(a,b,c){var d=Date.now()-12096E5,e=_.Wh();czc().then(function(f){f?(_.Zh(e.promise,function(){f.close()}),dzc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){gzc(h,c,f,e)})):e.resolve([])});return e.promise},izc=function(a,b,c){var d=_.Wh();czc().then(function(e){e?
(_.Zh(d.promise,function(){e.close()}),dzc(e,a,b).then(function(f){gzc(f,c,e,d,!0)})):d.resolve([])});return d.promise},jzc=function(a,b,c,d){if(a.length){var e=_.RI.S5,f=a.shift(),h=Gyc(f,3,0,1);try{_.vec(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=Jyc(k))&&(!k.H0||k.H0&&d.has(f.V))?b.resolve(f):jzc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},kzc=function(a,b,c,d,e,f,h){var k=_.Wh();czc().then(function(l){l?(_.Zh(k.promise,function(){l.close()}),
dzc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=gM(q))&&q.W==c&&q.H>=e&&Nnc(d.filter(function(r){return!_.mgc.has(r)}),q.Hg(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),jzc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},lzc={key:"rid",global:!0},mzc={key:"ooi",global:!0},nzc={key:"rtds",global:!1},ozc={key:"dct",global:!1},pzc={key:"pc",global:!1},qzc=function(a){this.H=new _.Sh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};qzc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Pf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Za():void 0},function(){})})};qzc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Pf()?Xyc(c,[new yyc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};qzc.prototype.Vn=function(){return this.get(lzc).then(function(a){return a?a:null})};
qzc.prototype.Au=function(a){return this.set(lzc,a)};var rzc=function(a){return a.get(mzc).then(function(b){return"boolean"===typeof b?b:null})};qzc.prototype.Ty=function(a){return this.set(mzc,a)};var szc=function(a){return a.get(pzc).then(function(b){return"boolean"===typeof b?b:null})},tzc=function(a){return a.get(nzc).then(function(b){return Array.isArray(b)?b:null})},uzc=function(a){return a.get(ozc).then(function(b){return"number"===typeof b?b:null})},vzc=function(){this.hj=[]};_.M(vzc,_.KK);
vzc.prototype.add=function(a,b){var c=a.xv.Jw;return c instanceof _.NJ&&_.B(c.request,12)?_.KK.prototype.add.call(this,a,b):!1};vzc.prototype.msa=function(a){return this.hj.splice(0,Math.min(a,1))};var wzc=function(a,b){this.hj=[];this.H=b};_.M(wzc,_.KK);wzc.prototype.add=function(a,b){return a.xv.Jw instanceof _.NJ?!1:_.KK.prototype.add.call(this,a,b)};
wzc.prototype.msa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.hj.length&&b.length<a;f++){var h=this.hj[f],k=h.xv.Jw;k instanceof _.gJ||k instanceof _.sJ||k instanceof _.IJ?k="app|"+k.Bh():k instanceof _.bJ||k instanceof _.cJ||k instanceof _.iJ||k instanceof _.MI?k="item|"+(k instanceof _.bJ?k.Ac():k.getId()):k instanceof _.jJ||k instanceof _.tJ?k="item|"+k.Ac():k instanceof _.kJ||k instanceof _.KJ?k="item|"+k.Ac():k instanceof _.DD||k instanceof _.CD?(k=k instanceof _.DD?_.C(k,_.op,1).getKey():
k.getKey(),k="pref|"+_.B(k,2)+"|"+_.pp(k)):k=k instanceof _.lJ?"td|"+k.getId():null;var l=h.xv.Jw;if(l instanceof _.eJ)l=!!_.Q(l,8);else if(l instanceof _.cJ){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Pdb.has(l.getMimeType()));l=p}else l=!1;if(k&&d[k]||l&&5===e)break;b.push(h);c.unshift(f);k&&(d[k]=!0);l&&e++}for(a=0;a<c.length;a++)_.sa(this.hj,c[a]);return b};
var xzc=function(a,b,c,d,e,f,h,k,l){a=a.ag();h=new _.ulc(k,h,d,_.Uj(a,32,1073741824),_.Uj(a,21,1E3));h=new _.vlc(h);k=new _.Ukc(_.Uj(a,59,2E3),_.Uj(a,60,2E4),_.Uj(a,61,6));c=new _.Skc(l?l:c,l?void 0:e);e={};e[1]=_.xlc(b,d);e[2]=_.ylc(b,a,k,c,d);e[3]=_.zlc(b,a,k,c,d,"batch");l=_.Uj(a,10,50);f=new _.MK(d,b,[_.Tkc(c),new _.Xkc(l,_.Uj(a,11,100)),new _.LK(l),new _.JK(k,d)],[new wzc(a,f),new vzc,new _.KK],[new _.flc(a,k,c.Ij(),d)],"mutation");return e[4]=f,e[5]=_.Alc(h,a,d),e[6]=_.zlc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.zlc(b,a,k,c,d,"xd4_batch"),e[8]=_.zlc(b,a,k,c,d,"xd4_batch_one",1),e},yzc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},zzc=function(a){var b={};return b.parentId=a.rk(),b},Azc=function(a){var b={};_.Qmc(b,[_.B(a,2)||""]);return b},Bzc=function(a){var b={};_.je(_.Rg(a.getTitle()))||(b.title=a.getTitle());_.Qmc(b,_.Sd(a,3));_.Q(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b},Czc=function(a){var b={};null!=a.getTitle()&&(b.title=
a.getTitle());null!=_.B(a,3)&&(b.workspaceToken=_.B(a,3));return b},Dzc=function(a){var b={};b.sourceIds=_.Sd(a.request,1);b.destinationFolderId=_.B(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b},Ezc=function(a){var b={},c={};_.je(_.Rg(a.getTitle()))||(b.title=a.getTitle());null!=a.Fe()&&(b.description=a.Fe());null!=_.Q(a,4)&&(c.starred=_.Q(a,4));null!=a.Vh()&&(c.trashed=a.Vh());_.je(_.Rg(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.B(a,7)&&(b.modifiedDate=
_.xic(_.rjc(_.B(a,7)||0)));null!=_.Q(a,11)&&(c.restricted=_.Q(a,11));_.Pa(c)&&(b.labels=c);null!=a.Wi()&&(b.folderColor=a.Wi());null!=_.Q(a,16)&&(b.subscribed=_.Q(a,16));null!=_.Q(a,40)&&(c={},b.linkShareMetadata=(c.securityUpdateEnabled=_.Q(a,40),c));if(c=_.C(a,_.Zk,25)){b.contentRestrictions=[];var d={};null!=_.Q(c,1)&&(d.readOnly=_.Q(c,1));null!=_.B(c,2)&&(d.reason=_.B(c,2));b.contentRestrictions.push(d)}_.Qmc(b,_.Sd(a,8));return b},Fzc=function(a){var b={};null!=_.Q(a,3)&&(b.pinned=_.Q(a,3));
return b},Gzc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.B(a,3))b.backgroundImageId=_.B(a,3);else{var c=_.B(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Pg)("0",6-c.length)+c);c=_.C(a,_.hrc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.B(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.B(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.Ge())&&(a.width=c);b.backgroundImageFile=a}}return b},Hzc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());
null!=a.getState()&&(a=_.Tmc[a.getState()])&&(b.state=a);return b},Izc=function(a){_.K.call(this,a)};_.M(Izc,_.K);Izc.prototype.Fe=function(){return _.E(this,1)};Izc.prototype.Jl=function(a){return _.ek(this,1,a)};Izc.prototype.getUrl=function(){return _.E(this,2)};_.Jzc=function(a){_.K.call(this,a)};_.M(_.Jzc,_.K);_.Jzc.prototype.getType=function(){return _.zj(this,1,0)};_.Jzc.prototype.getContext=function(){return _.C(this,Izc,2)};Kzc=[1];Lzc=[2,4];_.Mzc=function(a){_.K.call(this,a,-1,Lzc)};
_.M(_.Mzc,_.K);_.Mzc.prototype.getLabel=function(){return _.E(this,1)};_.Mzc.prototype.getTitle=function(){return _.E(this,3)};_.Mzc.prototype.setTitle=function(a){return _.ek(this,3,a)};_.Nzc=function(a){_.K.call(this,a,-1,Kzc)};_.M(_.Nzc,_.K);_.Ozc=[[2,3,4]];_.jM=function(a){_.K.call(this,a)};_.M(_.jM,_.K);_.jM.prototype.se=function(){return _.E(this,3)};_.jM.prototype.Hn=function(a){return _.ek(this,4,a)};_.Pzc=function(a){_.K.call(this,a)};_.M(_.Pzc,_.K);
_.Qzc=function(a){_.K.call(this,a,-1,void 0,_.Ozc)};_.M(_.Qzc,_.K);var Rzc=function(a){_.K.call(this,a)};_.M(Rzc,_.K);Szc=[3,5];_.kM=[[8,9,10,11,12,13,14]];_.Tzc=function(a){_.K.call(this,a)};_.M(_.Tzc,_.K);_.Uzc=function(a){_.K.call(this,a,-1,Szc,_.kM)};_.M(_.Uzc,_.K);_.Uzc.prototype.Bb=function(){return _.zj(this,6,0)};_.Uzc.prototype.Bc=function(a){return _.fk(this,6,a)};var Vzc=function(a){_.K.call(this,a)};_.M(Vzc,_.K);var Wzc=function(a){_.K.call(this,a)};_.M(Wzc,_.K);
var Xzc=function(a){_.K.call(this,a)};_.M(Xzc,_.K);var Yzc=[1],Zzc=function(a){_.K.call(this,a,-1,Yzc)};_.M(Zzc,_.K);var $zc=function(a){_.K.call(this,a)};_.M($zc,_.K);var aAc=function(a){_.K.call(this,a)};_.M(aAc,_.K);bAc=[7];_.cAc=[[1,2,3]];_.dAc=function(a){_.K.call(this,a)};_.M(_.dAc,_.K);_.eAc=function(a){_.K.call(this,a)};_.M(_.eAc,_.K);_.fAc=function(a){_.K.call(this,a)};_.M(_.fAc,_.K);_.gAc=function(a){_.K.call(this,a,-1,bAc,_.cAc)};_.M(_.gAc,_.K);_.hAc=function(a){_.K.call(this,a)};
_.M(_.hAc,_.K);_.hAc.prototype.getName=function(){return _.E(this,1)};_.hAc.prototype.$c=function(a){return _.ek(this,1,a)};var iAc=function(a){_.K.call(this,a)};_.M(iAc,_.K);iAc.prototype.getName=function(){return _.E(this,1)};iAc.prototype.$c=function(a){return _.ek(this,1,a)};iAc.prototype.getTitle=function(){return _.E(this,2)};iAc.prototype.setTitle=function(a){return _.ek(this,2,a)};var jAc=[[1,4]],kAc=function(a){_.K.call(this,a,-1,void 0,jAc)};_.M(kAc,_.K);
kAc.prototype.getUser=function(){return _.C(this,_.Qzc,1)};var lAc=[[8,9,10]],mAc=function(a){_.K.call(this,a)};_.M(mAc,_.K);mAc.prototype.getType=function(){return _.zj(this,6,0)};var nAc=function(a){_.K.call(this,a)};_.M(nAc,_.K);_.oAc=function(a){_.K.call(this,a,-1,void 0,lAc)};_.M(_.oAc,_.K);_.g=_.oAc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ek(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.ek(this,2,a)};
_.g.Oja=function(){return _.C(this,mAc,9)};_.g.jVa=function(){return _.C(this,nAc,10)};_.g.Ai=function(){return _.Uj(this,5)};_.g.getMimeType=function(){return _.E(this,6)};_.g.ZC=function(){return _.C(this,kAc,7)};var pAc=function(a){_.K.call(this,a)};_.M(pAc,_.K);var qAc=[[8,9,10]],rAc=function(a){_.K.call(this,a,-1,void 0,qAc)};_.M(rAc,_.K);_.g=rAc.prototype;_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ek(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};
_.g.setTitle=function(a){return _.ek(this,2,a)};_.g.Oja=function(){return _.C(this,mAc,9)};_.g.jVa=function(){return _.C(this,nAc,10)};sAc=[[1,3]];_.lM=function(a){_.K.call(this,a,-1,void 0,sAc)};_.M(_.lM,_.K);_.lM.prototype.Uh=function(){return _.C(this,rAc,1)};_.tAc=[[1,2,3]];_.uAc=function(a){_.K.call(this,a)};_.M(_.uAc,_.K);_.vAc=function(a){_.K.call(this,a,-1,void 0,_.tAc)};_.M(_.vAc,_.K);var wAc=function(a){_.K.call(this,a)};_.M(wAc,_.K);var xAc=function(a){_.K.call(this,a)};_.M(xAc,_.K);
yAc=[2,3];_.zAc=function(a){_.K.call(this,a,-1,yAc)};_.M(_.zAc,_.K);_.zAc.prototype.getType=function(){return _.zj(this,1,0)};_.AAc=function(a){_.K.call(this,a)};_.M(_.AAc,_.K);_.AAc.prototype.getType=function(){return _.zj(this,1,0)};var BAc=function(a){_.K.call(this,a)};_.M(BAc,_.K);BAc.prototype.getType=function(){return _.zj(this,1,0)};var CAc=function(a){_.K.call(this,a)};_.M(CAc,_.K);_.DAc=function(a){_.K.call(this,a)};_.M(_.DAc,_.K);_.DAc.prototype.O=function(){return _.S(this,1)};
var EAc=function(a){_.K.call(this,a)};_.M(EAc,_.K);FAc=[1,2,4];_.GAc=function(a){_.K.call(this,a)};_.M(_.GAc,_.K);HAc=[1,2];_.IAc=function(a){_.K.call(this,a)};_.M(_.IAc,_.K);_.IAc.prototype.getParent=function(){return _.C(this,_.lM,1)};_.IAc.prototype.Dg=function(a){return _.J(this,1,a)};_.JAc=function(a){_.K.call(this,a,-1,HAc)};_.M(_.JAc,_.K);_.KAc=function(a){_.K.call(this,a,-1,FAc)};_.M(_.KAc,_.K);_.mM=function(a){_.K.call(this,a)};_.M(_.mM,_.K);
_.mM.prototype.getEmail=function(){return _.E(this,1)};_.mM.prototype.getTitle=function(){return _.E(this,2)};_.mM.prototype.setTitle=function(a){return _.ek(this,2,a)};_.nM=[[2,3,4,5]];_.oM=function(a){_.K.call(this,a,-1,void 0,_.nM)};_.M(_.oM,_.K);_.oM.prototype.zf=function(){return _.zj(this,1,0)};_.oM.prototype.getUser=function(){return _.C(this,_.Qzc,2)};var LAc=function(a){_.K.call(this,a)};_.M(LAc,_.K);MAc=[1,2,3,4];_.NAc=function(a){_.K.call(this,a,-1,MAc)};_.M(_.NAc,_.K);
_.OAc=function(a){_.K.call(this,a)};_.M(_.OAc,_.K);_.PAc=function(a){_.K.call(this,a)};_.M(_.PAc,_.K);_.QAc=function(a){_.K.call(this,a)};_.M(_.QAc,_.K);_.RAc=function(a){_.K.call(this,a)};_.M(_.RAc,_.K);_.RAc.prototype.getType=function(){return _.zj(this,1,0)};SAc=[1];_.TAc=function(a){_.K.call(this,a)};_.M(_.TAc,_.K);_.TAc.prototype.getFeature=function(){return _.zj(this,1,0)};_.UAc=function(a){_.K.call(this,a,-1,SAc)};_.M(_.UAc,_.K);var VAc=function(a){_.K.call(this,a)};_.M(VAc,_.K);
var WAc=function(a){_.K.call(this,a)};_.M(WAc,_.K);var XAc=function(a){_.K.call(this,a)};_.M(XAc,_.K);XAc.prototype.getType=function(){return _.zj(this,1,0)};_.pM=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];_.qM=function(a){_.K.call(this,a,-1,void 0,_.pM)};_.M(_.qM,_.K);_.qM.prototype.Vz=function(){return _.C(this,XAc,10)};_.YAc=function(a){_.K.call(this,a)};_.M(_.YAc,_.K);var ZAc=function(a){_.K.call(this,a)};_.M(ZAc,_.K);_.$Ac=function(a){_.K.call(this,a)};_.M(_.$Ac,_.K);
_.aBc=function(a){_.K.call(this,a)};_.M(_.aBc,_.K);_.aBc.prototype.getType=function(){return _.zj(this,1,0)};_.bBc=[[1,2,3,4,5]];_.cBc=function(a){_.K.call(this,a,-1,void 0,_.bBc)};_.M(_.cBc,_.K);_.cBc.prototype.getUser=function(){return _.C(this,_.Qzc,1)};var dBc=function(a){_.K.call(this,a)};_.M(dBc,_.K);dBc.prototype.getType=function(){return _.zj(this,2,0)};dBc.prototype.Bh=function(){return _.E(this,1)};_.eBc=function(a){_.K.call(this,a)};_.M(_.eBc,_.K);_.g=_.eBc.prototype;
_.g.getName=function(){return _.E(this,1)};_.g.$c=function(a){return _.ek(this,1,a)};_.g.getTitle=function(){return _.E(this,2)};_.g.setTitle=function(a){return _.ek(this,2,a)};_.g.Na=function(){return _.C(this,_.oAc,3)};_.fBc=function(a){_.K.call(this,a)};_.M(_.fBc,_.K);_.fBc.prototype.getParent=function(){return _.C(this,_.oAc,4)};_.fBc.prototype.Dg=function(a){return _.J(this,4,a)};_.gBc=[[1,5,3]];_.hBc=function(a){_.K.call(this,a,-1,void 0,_.gBc)};_.M(_.hBc,_.K);
_.hBc.prototype.Uh=function(){return _.C(this,_.oAc,1)};_.iBc=function(a){_.K.call(this,a)};_.M(_.iBc,_.K);_.iBc.prototype.O=function(){return _.B(this,1)};var jBc=function(a){_.K.call(this,a)};_.M(jBc,_.K);jBc.prototype.O=function(){return _.Q(this,1)};jBc.prototype.V=function(){return _.B(this,2)};_.rM=function(a){_.K.call(this,a)};_.M(_.rM,_.K);_.g=_.rM.prototype;_.g.getId=function(){return _.B(this,1)};_.g.Ob=function(a){return _.y(this,1,a)};_.g.getTitle=function(){return _.B(this,2)};
_.g.setTitle=function(a){return _.y(this,2,a)};_.g.osa=function(){return _.B(this,3)};_.g.fz=function(){return _.B(this,4)};_.g.s$=function(){return _.C(this,jBc,6)};_.g.Frb=function(){return _.C(this,_.iBc,7)};_.g.oVa=function(){return _.B(this,8)};_.g.nsa=function(){return _.Q(this,9)};_.sM=function(a){_.K.call(this,a)};_.M(_.sM,_.K);_.g=_.sM.prototype;_.g.getType=function(){return _.B(this,1)};_.g.getId=function(){return _.B(this,2)};_.g.Ob=function(a){return _.y(this,2,a)};
_.g.getTitle=function(){return _.B(this,3)};_.g.setTitle=function(a){return _.y(this,3,a)};_.g.Ld=function(){return _.B(this,5)};_.g.setSize=function(a){return _.y(this,5,a)};_.g.g$a=function(){return _.B(this,6)};_.kBc=function(a,b){return _.y(a,6,b)};_.sM.prototype.Fe=function(){return _.B(this,8)};_.sM.prototype.Jl=function(a){return _.y(this,8,a)};_.sM.prototype.O=function(){return _.Q(this,9)};var jpc=[90,59,75];_.t("sy1o1");
var lBc=function(a){_.K.call(this,a)};_.M(lBc,_.K);
var mBc=function(a){_.K.call(this,a)};_.M(mBc,_.K);mBc.prototype.getType=function(){return _.B(this,1)};var nBc=function(a){var b=new mBc;return _.y(b,1,a)},oBc=function(a,b){return _.J(a,2,b)};mBc.prototype.sy=function(){return _.B(this,3)};mBc.prototype.Uy=function(a){return _.y(this,3,a)};mBc.prototype.Li=function(){return _.B(this,4)};mBc.prototype.setPosition=function(a){return _.y(this,4,a)};
var tM=function(a){_.K.call(this,a)};_.M(tM,_.K);tM.prototype.getType=function(){return _.B(this,1)};var pBc=function(a){var b=new tM;return _.y(b,1,a)};tM.prototype.jn=function(){return _.C(this,DL,2)};var qBc=function(a,b){return _.J(a,2,b)};tM.prototype.sy=function(){return _.B(this,3)};tM.prototype.Uy=function(a){return _.y(this,3,a)};tM.prototype.Li=function(){return _.B(this,4)};tM.prototype.setPosition=function(a){return _.y(this,4,a)};
var uM=function(a){_.K.call(this,a)};_.M(uM,_.K);uM.prototype.getType=function(){return _.B(this,1)};var rBc=function(a){var b=new uM;return _.y(b,1,a)};uM.prototype.jn=function(){return _.C(this,_.oG,2)};var sBc=function(a,b){return _.J(a,2,b)};uM.prototype.sy=function(){return _.B(this,3)};uM.prototype.Uy=function(a){return _.y(this,3,a)};uM.prototype.Li=function(){return _.B(this,4)};uM.prototype.setPosition=function(a){return _.y(this,4,a)};
var tBc=function(a){_.K.call(this,a)};_.M(tBc,_.K);tBc.prototype.Bb=function(){return _.B(this,1)};tBc.prototype.Bc=function(a){return _.y(this,1,a)};tBc.prototype.wr=function(){return _.C(this,_.CL,2)};
var vBc=function(a){_.K.call(this,a,-1,uBc)};_.M(vBc,_.K);vBc.prototype.Bb=function(){return _.B(this,1)};vBc.prototype.Bc=function(a){return _.y(this,1,a)};vBc.prototype.Vj=function(){return _.B(this,3)};var uBc=[2];
var wBc=function(a){_.K.call(this,a)};_.M(wBc,_.K);wBc.prototype.ld=function(){return _.C(this,oL,1)};wBc.prototype.Un=function(){return _.B(this,2)};
var xBc=function(a){_.K.call(this,a)};_.M(xBc,_.K);_.g=xBc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.wr=function(){return _.C(this,_.CL,2)};_.g.Vj=function(){return _.B(this,3)};_.g.Bh=function(){return _.B(this,4)};
var vM=function(a){_.K.call(this,a)};_.M(vM,_.K);vM.prototype.Bb=function(){return _.B(this,1)};vM.prototype.Bc=function(a){return _.y(this,1,a)};vM.prototype.Vj=function(){return _.B(this,3)};
var yBc=function(a){_.K.call(this,a)};_.M(yBc,_.K);_.g=yBc.prototype;_.g.Bb=function(){return _.B(this,1)};_.g.Bc=function(a){return _.y(this,1,a)};_.g.Vj=function(){return _.B(this,2)};_.g.lMa=function(){return _.C(this,_.op,3)};_.g.getKey=function(){return _.C(this,_.Sb,4)};_.g.ht=function(){return _.P(this,4)};
var ABc=function(a){_.K.call(this,a,-1,void 0,zBc)};_.M(ABc,_.K);ABc.prototype.getKey=function(){return _.B(this,1)};ABc.prototype.ht=function(){return _.P(this,1)};var CBc=function(a){_.K.call(this,a,-1,BBc)};_.M(CBc,_.K);var zBc=[[2,4,6,10],[3,5,7,8,9]],BBc=[1];
var DBc=function(a){_.K.call(this,a)};_.M(DBc,_.K);
var wM=function(a){_.K.call(this,a,-1,EBc)};_.M(wM,_.K);wM.prototype.Bb=function(){return _.B(this,1)};wM.prototype.Bc=function(a){return _.y(this,1,a)};wM.prototype.O=function(){return _.Pj(this,zL,2)};var FBc=function(a,b){return _.Jj(a,2,b)};wM.prototype.Vj=function(){return _.B(this,3)};var EBc=[2];
var GBc=function(a){_.K.call(this,a)};_.M(GBc,_.K);GBc.prototype.Bb=function(){return _.B(this,1)};GBc.prototype.Bc=function(a){return _.y(this,1,a)};GBc.prototype.O=function(){return _.C(this,zL,2)};GBc.prototype.Vj=function(){return _.B(this,3)};
var HBc=function(a){_.K.call(this,a)};_.M(HBc,_.K);HBc.prototype.qy=function(){return _.B(this,2)};
var JBc=function(a){_.K.call(this,a,-1,IBc)};_.M(JBc,_.K);JBc.prototype.Bb=function(){return _.B(this,1)};JBc.prototype.Bc=function(a){return _.y(this,1,a)};JBc.prototype.aj=function(){return _.Pj(this,_.n7a,2)};JBc.prototype.wq=function(a,b){return _.Rj(this,2,a,_.n7a,b)};var IBc=[2];
var LBc=function(a){_.K.call(this,a,-1,KBc)};_.M(LBc,_.K);LBc.prototype.Bb=function(){return _.B(this,1)};LBc.prototype.Bc=function(a){return _.y(this,1,a)};LBc.prototype.nl=function(){return _.Pj(this,tM,2)};var KBc=[2];
_.NBc=function(a){_.K.call(this,a,-1,MBc)};_.M(_.NBc,_.K);var MBc=[1];
var xM=function(a){_.K.call(this,a,-1,OBc)},RBc,SBc;_.M(xM,_.K);xM.prototype.Un=function(){return _.B(this,1)};var PBc=function(a,b){return _.y(a,1,b)},QBc=function(a,b){return _.y(a,2,b)};xM.prototype.Bb=function(){return _.B(this,3)};xM.prototype.Bc=function(a){return _.y(this,3,a)};RBc=function(a,b){return _.y(a,4,b)};SBc=function(a,b){return _.Jj(a,5,b)};_.TBc=function(a){_.K.call(this,a)};_.M(_.TBc,_.K);_.TBc.prototype.$b=function(){return _.B(this,2)};_.VBc=function(a){_.K.call(this,a,-1,UBc)};
_.M(_.VBc,_.K);var WBc=function(a,b){return _.y(a,1,b)},XBc=function(a,b){return _.y(a,2,b)},YBc=function(a,b){return _.Jj(a,3,b)},OBc=[5],UBc=[3];
_.yM=function(a){_.K.call(this,a,-1,ZBc)};_.M(_.yM,_.K);_.yM.prototype.KV=function(){return _.Pj(this,_.kG,2)};_.yM.prototype.ve=function(){return _.C(this,_.tf,3)};var ZBc=[1,2];
_.zM=function(a){_.K.call(this,a)};_.M(_.zM,_.K);_.zM.prototype.Bb=function(){return _.B(this,1)};_.zM.prototype.Bc=function(a){return _.y(this,1,a)};_.zM.prototype.qf=function(){return _.C(this,_.BB,2)};_.$Bc=function(a,b){return _.J(a,2,b)};_.zM.prototype.Vj=function(){return _.B(this,3)};
var aCc=function(a){_.K.call(this,a)};_.M(aCc,_.K);aCc.prototype.Bb=function(){return _.B(this,1)};aCc.prototype.Bc=function(a){return _.y(this,1,a)};
var cCc=function(a){_.K.call(this,a,-1,bCc)};_.M(cCc,_.K);cCc.prototype.Bb=function(){return _.B(this,1)};cCc.prototype.Bc=function(a){return _.y(this,1,a)};cCc.prototype.nl=function(){return _.Pj(this,uM,2)};var bCc=[2];
_.AM=function(a){_.K.call(this,a)};_.M(_.AM,_.K);_.AM.prototype.uY=function(a){_.J(this,1,a)};_.AM.prototype.ev=function(){return _.C(this,_.cy,2)};_.AM.prototype.MO=function(a){_.J(this,2,a)};
_.eCc=function(a){_.K.call(this,a,-1,void 0,dCc)};_.M(_.eCc,_.K);_.eCc.prototype.Ph=function(){return _.C(this,dBc,2)};_.eCc.prototype.O=function(a){_.Qj(this,5,dCc[0],a)};var dCc=[[5,6]];
_.hCc=function(a){_.K.call(this,a,-1,fCc,gCc)};_.M(_.hCc,_.K);_.hCc.prototype.O=function(a){_.Qj(this,6,gCc[0],a)};var fCc=[3,4,5],gCc=[[6,7]];
var iCc=function(a){_.K.call(this,a)};_.M(iCc,_.K);iCc.prototype.getType=function(){return _.B(this,1)};var jCc=function(a){var b=new iCc;return _.y(b,1,a)};iCc.prototype.sy=function(){return _.B(this,3)};iCc.prototype.Uy=function(a){return _.y(this,3,a)};iCc.prototype.Li=function(){return _.B(this,4)};iCc.prototype.setPosition=function(a){return _.y(this,4,a)};
var lCc=function(a){_.K.call(this,a,-1,kCc)};_.M(lCc,_.K);lCc.prototype.Bb=function(){return _.B(this,1)};lCc.prototype.Bc=function(a){return _.y(this,1,a)};lCc.prototype.Vj=function(){return _.B(this,3)};var kCc=[2];
_.mCc=function(a){_.K.call(this,a)};_.M(_.mCc,_.K);_.mCc.prototype.getId=function(){return _.B(this,1)};_.mCc.prototype.Ob=function(a){return _.y(this,1,a)};_.mCc.prototype.ve=function(){return _.C(this,_.tf,4)};
var oCc=function(a){_.K.call(this,a,-1,nCc)};_.M(oCc,_.K);oCc.prototype.Bb=function(){return _.B(this,1)};oCc.prototype.Bc=function(a){return _.y(this,1,a)};oCc.prototype.Vj=function(){return _.B(this,3)};var nCc=[2];
_.BM=function(a){_.K.call(this,a)};_.M(_.BM,_.K);_.BM.prototype.getType=function(){return _.B(this,1)};var pCc=function(a){var b=new _.BM;return _.y(b,1,a)},qCc=function(a,b){return _.J(a,2,b)};_.BM.prototype.sy=function(){return _.B(this,3)};_.BM.prototype.Uy=function(a){return _.y(this,3,a)};_.BM.prototype.Li=function(){return _.B(this,4)};_.BM.prototype.setPosition=function(a){return _.y(this,4,a)};
_.Woc=function(a){_.K.call(this,a)};_.M(_.Woc,_.K);_.g=_.Woc.prototype;_.g.getItem=function(){return _.C(this,_.cl,1)};_.g.setItem=function(a){return _.J(this,1,a)};_.g.getError=function(){return _.C(this,_.oc,2)};_.g.Le=function(a){return _.J(this,2,a)};_.g.Xn=function(){return _.P(this,2)};_.g.Xs=function(){return _.B(this,4)};
var sCc=function(a){_.K.call(this,a,-1,rCc)};_.M(sCc,_.K);var rCc=[2,4];
var uCc=function(a){_.K.call(this,a,-1,tCc)};_.M(uCc,_.K);var tCc=[1];
var wCc=function(a){_.K.call(this,a,-1,vCc)};_.M(wCc,_.K);wCc.prototype.Bb=function(){return _.B(this,1)};wCc.prototype.Bc=function(a){return _.y(this,1,a)};wCc.prototype.Vj=function(){return _.B(this,3)};var vCc=[2];
var yCc=function(a){_.K.call(this,a,-1,xCc)};_.M(yCc,_.K);yCc.prototype.Bb=function(){return _.B(this,1)};yCc.prototype.Bc=function(a){return _.y(this,1,a)};yCc.prototype.Vj=function(){return _.B(this,3)};var xCc=[2];
var zCc=function(a){_.K.call(this,a)};_.M(zCc,_.K);
var BCc=function(a){_.K.call(this,a,-1,ACc)};_.M(BCc,_.K);BCc.prototype.O=function(){return _.B(this,2)};var CCc=function(a,b){_.y(a,2,b)},ACc=[1];
var ECc=function(a){_.K.call(this,a,-1,DCc)};_.M(ECc,_.K);ECc.prototype.qy=function(){return _.E(this,2)};var DCc=[1];
var FCc=function(a){_.oi.call(this,"Ob");this.dataType=a};_.M(FCc,_.oi);
var GCc=function(a,b){_.oi.call(this,"Pb");this.aPa=a;this.Sta=b};_.M(GCc,_.oi);
var HCc=function(){};_.g=HCc.prototype;_.g.FM=function(a,b){return Btc(Atc(1),a).setPosition(b)};_.g.DM=function(a,b){return Btc(Atc(2).setPosition(b),a)};_.g.DE=function(a,b,c){return Btc(Atc(3).Uy(b).setPosition(c),a)};_.g.sQ=function(a,b){return Btc(Atc(4),a).setPosition(b)};_.g.cN=function(a){return _.C(a,wL,2)};
var ICc=function(){_.Ey.call(this,new HCc,function(a){return a&&a.getName()})};_.M(ICc,_.Ey);
var CM=function(a,b,c){c=void 0===c?50:c;_.xi.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=wnc(new _.UK,[1]);this.ha=this.H=!1;this.Pc=new _.Me(this);this.Ma(this.Pc);_.De(this,function(){d.active=!1;d.Pc.removeAll()})};_.M(CM,_.xi);_.g=CM.prototype;_.g.xi=function(){return String(_.Ca(this))};_.g.Te=function(){return this.W.Te()||this.connectionState.Te()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Pc.listen(this.W,"Fb",function(){return void a.Tt()}),this.Pc.listen(this.connectionState,[].concat(_.md(Object.values(_.DB))),function(){return void a.Tt()}),this.W.Te()?this.Pc.Zc(this.W,"Fb",function(b){b.Te()||(a.NG(),a.dispatchEvent(new _.oi(_.mq)))}):this.connectionState.Te()?this.Pc.Zc(this.connectionState,[_.DB.FL,_.DB.pU],function(){a.NG();a.dispatchEvent(new _.oi(_.mq))}):(this.NG(),this.dispatchEvent(new _.oi(_.mq))))};
_.g.NG=function(){};_.g.Gr=function(a){var b=this;if(this.Oj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Tt();this.W.Te()?this.Pc.Zc(this.W,"Fb",function(d){d.Te()||b.bP()}):this.bP()}};_.g.KL=function(){this.Te()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Bb=function(){return this.status};_.g.Nq=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.qc(a))};_.g.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};_.g.Oj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Pc.removeAll();this.activate()};_.g.bP=function(){};
var JCc=function(a,b,c,d,e){CM.call(this,a,b,e.zi()||void 0);this.ka=c;this.request=e;this.V=[];this.data=[];this.changed=!1;this.O=new ICc;this.ma=d};_.M(JCc,CM);_.g=JCc.prototype;_.g.NG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.getData=function(){return Ftc(new BL,this.data).Bc(this.status)};_.g.yr=function(){var a=this.O.my(this.V,this.data);this.V=this.data;var b=(new Dtc).Bc(this.status);return _.Jj(b,2,a)};
_.g.bP=function(){this.ma(this.xi(),this.limit)};_.g.Tt=function(){if(this.active){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,KCc(this)}};_.g.$b=function(){return this.data.length};_.g.qd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||kL(this.O,this.data,b.O()))this.H=!0,this.status=b.Bb(),this.data=b.O(),this.ha=a.H,KCc(this)};
var KCc=function(a){a.log("Livelist "+a.xi()+" returning "+a.data.length+" for "+(a.request.Ac()+". Status: ")+(_.Za(ksc)[a.Bb()]+"."));a.dispatchEvent(new _.oi(_.Bc,a))};JCc.prototype.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};JCc.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var LCc=function(a,b,c,d,e,f,h){_.qL.call(this,a,b,c,e,f,d);this.Bd=h;this.W="drive.ds.sync.ViewCacheLiveList";this.ta=null;this.ma=void 0};_.M(LCc,_.qL);LCc.prototype.getData=function(){this.H=this.items;var a=Lqc((new _.qB).Bc(this.Bb()).Tw(this.items),this.Oj());a=_.J(a,7,this.ta).vP(this.suggestionSessionId).Fi(this.Me);return _.Cj(a,18,this.ma)};
LCc.prototype.update=function(a){if(nsc(this,a)&&(osc(this,a),this.ta=a.e6(),this.suggestionSessionId=a.Yf(),this.ma=a.hka(),msc(this),this.suggestionSessionId&&Wuc(this.V)&&(a=this.Bd.H(106027)))){var b=_.C(_.uK(a),Crc,20);if(!b){b=new Crc;var c=_.uK(a);_.J(c,20,b)}_.y(b,1,this.suggestionSessionId);a.vj()}};
var MCc=function(a,b){var c={};a=_.Ma(a,function(d){return!!d});b=_.Ma(b,function(d){return!!d});_.La(a,function(d,e){var f=b[e];f?_.Tj(d,f)||(d=sBc(rBc(4),f),c[e]=d):(d=sBc(rBc(2),d),c[e]=d)});_.La(b,function(d,e){a[e]||(d=sBc(rBc(1),d),c[e]=d)});return c},NCc=function(a,b){return _.Pa(a)!==_.Pa(b)||!_.Ta(MCc(a,b))};
var OCc=function(a,b){_.xi.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.M(OCc,_.xi);_.g=OCc.prototype;_.g.activate=function(){this.active||(this.active=!0,_.Ta(this.data)&&6===this.status||this.dispatchEvent(new _.oi(_.Bc,this)))};_.g.Bb=function(){return this.status};_.g.Nq=function(){return new _.UK};_.g.getData=function(){this.H=this.data;var a=(new _.yK).Bc(this.status);_.La(this.data,function(b,c){a.MT().set(c,b||new _.oG)});return a};
_.g.yr=function(){var a=MCc(this.H,this.data);this.H=this.data;var b=(new aCc).Bc(this.status);_.La(a,function(c,d){_.Bj(b,2,void 0,uM).set(d,c)});return b};_.g.gT=function(){throw Error("bg");};_.g.xi=function(){return String(_.Ca(this))};_.g.qd=function(){return this.request};_.g.update=function(a){var b={};a.MT().forEach(function(c,d){c||(c=Kxc(d));b[d]=c});if(this.status!==a.Bb()||NCc(this.H,b))this.status=a.Bb(),this.data=b,this.active&&this.dispatchEvent(new _.oi(_.Bc,this))};
_.g.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};
var PCc=function(a,b,c,d,e,f){_.qL.call(this,a,b,c,d,e,f);this.ma=[];this.W="drive.ds.sync.PeoplePredictLiveList"};_.M(PCc,_.qL);PCc.prototype.getData=function(){this.H=this.items;var a=(new _.xK).Bc(this.Bb()).Tw(this.items);var b=this.Oj();a=_.y(a,4,b);return vsc(a,this.ma).vP(this.suggestionSessionId).Fi(this.Me)};PCc.prototype.update=function(a){nsc(this,a)&&(osc(this,a),this.ma=_.Pj(a,_.Jk,6),this.suggestionSessionId=a.Yf(),msc(this))};
var QCc=function(){};_.g=QCc.prototype;_.g.FM=function(a,b){return qBc(pBc(1),a).setPosition(b)};_.g.DM=function(a,b){return qBc(pBc(2).setPosition(b),a)};_.g.DE=function(a,b,c){return qBc(pBc(3).Uy(b).setPosition(c),a)};_.g.sQ=function(a,b){return qBc(pBc(4),a).setPosition(b)};_.g.cN=function(a){return a.jn()};
var RCc=function(){_.Ey.call(this,new QCc,function(a){return a&&a.fq()})};_.M(RCc,_.Ey);
var SCc=function(a,b,c){CM.call(this,a.Ij(),a.nk(),b.zi()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new RCc;this.suggestionSessionId=null;this.ka=c};_.M(SCc,CM);_.g=SCc.prototype;_.g.NG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.getData=function(){this.O=this.data;return Ztc(Ytc((new EL).Bc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.yr=function(){var a=this.V.my(this.O,this.data);this.O=this.data;var b=(new LBc).Bc(this.status);return _.Jj(b,2,a)};_.g.bP=function(){};_.g.Tt=function(){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))};_.g.$b=function(){return this.data.length};_.g.qd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Bb()||kL(this.V,this.data,a.nl())){this.changed=this.H=!0;this.data=a.nl();if(a=a.Yf())this.suggestionSessionId=a;this.Tt()}};_.g.refresh=function(){this.ka()};_.g.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var TCc=function(a,b,c){_.xi.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=wnc(new _.UK,[1]);this.O=!0;this.limit=a.zi();_.De(this,function(){d.H=!1;d.V=[]})};_.M(TCc,_.xi);_.g=TCc.prototype;_.g.xi=function(){return String(_.Ca(this))};_.g.activate=function(){this.H=!0;_.pa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.oi(_.Bc,this))};_.g.qd=function(){return this.request};_.g.Bb=function(){return this.status};
_.g.Nq=function(){return this.W};_.g.Oj=function(){return this.O};_.g.getData=function(){this.V=this.items;return Lqc((new _.qB).Bc(this.status).Tw(this.items),this.O)};_.g.yr=function(){var a=_.w7a().my(this.V,this.items),b=(new _.oI).Bc(this.status);a=_.Jj(b,2,a);this.V=this.items;return a};_.g.Gr=function(a){this.H&&(this.limit+=a||20,this.ka.GF(this.xi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Bb()||kL(_.w7a(),this.items,a.wd()))this.items=a.wd(),this.status=a.Bb(),_.BI(this.ha)&&(this.W=xnc(this.status,this.items)),this.O=a.kl(),this.H&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};_.g.vu=function(){throw Error("cg");};_.g.refresh=function(){};
var UCc=function(a,b,c){_.xi.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=wnc(new _.UK,[1]);this.context.Uf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.hn().join(", "));_.De(this,function(){d.V=!1;d.O=[]})};_.M(UCc,_.xi);_.g=UCc.prototype;_.g.xi=function(){return String(_.Ca(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.qd=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.wK;a.Bc(this.status);a.map=this.H;return a};_.g.yr=function(){var a=Unc(this.O,this.H),b=new tsc;b.Bc(this.status);b.map=a;this.O=this.H;return b};_.g.Bb=function(){return this.status};_.g.Nq=function(){return this.W};
_.g.gT=function(a){var b=this.request;this.request=a;this.ha.ZY(this.xi(),b,a)};_.g.update=function(a){if(this.status!==a.Bb()||Vnc(this.H,a.eq()))this.status=a.Bb(),this.H=a.eq(),_.BI(this.context.Lc)&&(this.W=xnc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.nW=function(){this.dispatchEvent(new _.oi(_.KEa))};
var VCc=function(){};_.g=VCc.prototype;_.g.FM=function(a,b){return sBc(rBc(1),a).setPosition(b)};_.g.DM=function(a,b){return sBc(rBc(2).setPosition(b),a)};_.g.DE=function(a,b,c){return sBc(rBc(3).Uy(b).setPosition(c),a)};_.g.sQ=function(a,b){return sBc(rBc(4),a).setPosition(b)};_.g.cN=function(a){return a.jn()};
var WCc=function(){_.Ey.call(this,new VCc,function(a){return a&&a.getId()})};_.M(WCc,_.Ey);
var XCc=function(a,b,c){CM.call(this,a.Ij(),a.nk(),b.zi()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new WCc};_.M(XCc,CM);_.g=XCc.prototype;_.g.NG=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.oi(_.Bc,this))};_.g.getData=function(){this.O=this.data;return Ovc((new RL).Bc(this.status),this.data.slice(0))};_.g.yr=function(){var a=this.V.my(this.O,this.data);this.O=this.data;var b=(new cCc).Bc(this.status);return _.Jj(b,2,a)};
_.g.bP=function(){this.ka.GF(this.xi(),this.limit)};_.g.Tt=function(){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))};_.g.$b=function(){return this.data.length};_.g.qd=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Bb()||kL(this.V,this.data,b.nl()))this.H=!0,this.status=b.Bb(),this.data=b.nl(),this.ha=a.H,this.dispatchEvent(new _.oi(_.Bc,this))};
_.g.uB=function(a){this.dispatchEvent(new _.qc(new _.pc("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var YCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.wf;this.O=this.context.qfa;this.ta=this.context.h6};_.g=YCc.prototype;_.g.cxa=function(a){var b=this,c=new LCc(this.context.Bm,this.context.fQ,this.context.Uf(),this.context.Lc,function(d,e){b.GF(d,e)},a,this.context.Jk());this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.fxa=function(a){var b=this,c=new PCc(this.context.Bm,this.context.fQ,this.context.Uf(),function(d,e){b.GF(d,e)},a,this.context.Lc);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.$wa=function(a){var b=this,c=new sL(this.context.Lc,this.context.Bm,this.context.Uf(),this.context.QZ,this.ZY.bind(this),a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.ixa=function(a){var b=this,c=new TCc(a,this,this.context.Lc);this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.jxa=function(a){var b=this,c=new UCc(this.context,this,a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.mxa=function(a){var b=this,c=new XCc(this.context,a,this);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.gxa=function(a){var b=this,c=new SCc(this.context,a,function(){if(a instanceof _.cA){var d=ZCc(b.context);rxc(d,d.getKey(a)).refresh()}});this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.nxa=function(a){var b=this,c=new OCc(this.context,a);this.ji(c);_.De(c,function(){b.dk(c)});return c};_.g.Wwa=function(a){var b=this,c=new JCc(this.context.Ij(),this.context.nk(),this.context.Uf(),function(d,e){b.GF(d,e)},a);this.ji(c);_.De(c,function(){b.dk(c)});return c};
_.g.ji=function(a){var b=a.xi();this.H[b]=a;this.ha.create(b,a.qd());if(a.qd()instanceof _.eA)a=this.O.ji(b,a.qd());else if(a.qd()instanceof _.pG)a=pxc(this.O,b,a.qd());else if(a.qd()instanceof _.cA)a=ZCc(this.context).ji(b,a.qd());else if(a.qd()instanceof _.xG)a=this.ta.ji(b,a.qd());else{var c=a.qd(),d=rL(this.context.Bm,c,2);this.log("Registering LiveList "+a.xi()+" "+d);a=this.W.ji(b,c)}"boolean"===typeof a&&xvc(this.ha,b,a)};
_.g.dk=function(a){if(a.qd()instanceof _.eA)this.O.dk(a.xi(),a.qd());else if(a.qd()instanceof _.pG)qxc(this.O,a.xi(),a.qd());else if(a.qd()instanceof _.cA)ZCc(this.context).dk(a.xi(),a.qd());else if(a.qd()instanceof _.xG)this.ta.dk(a.xi(),a.qd());else{var b=a.qd(),c=rL(this.context.Bm,b,2);this.log("Unregistering LiveList "+a.xi()+" "+c);this.W.dk(a.xi(),b)}OL(this.ha,a.xi(),4);delete this.H[a.xi()]};_.g.ZY=function(a,b,c){this.W.dk(a,b);this.W.ji(a,c)};
_.g.GF=function(a,b){var c=$Cc(this,a).qd();c.ti(b);c instanceof _.eA?this.O.ji(a,c):c instanceof _.pG?pxc(this.O,a,c):c instanceof _.xG?this.ta.ji(a,c):this.W.ji(a,c)};_.g.vO=function(a,b){var c=this.H[a]&&this.H[a].qd();c&&(c instanceof _.ff?Dnc(c.O(),b.wd().filter(function(d){return!JL(d)})):c instanceof _.xA&&Dnc(c.O(),Object.values(b.eq()).filter(function(d){return d&&!JL(d)})));this.ka[a]=b;this.V||(this.V=_.zi(this.Z8,50,this))};
_.g.NX=function(a,b){this.ma[a]=b;this.V||(this.V=_.zi(this.Z8,50,this))};_.g.mA=function(a){(a=this.H[a])&&a.nW()};_.g.Z8=function(){_.Ai(this.V);this.V=null;var a=Object.keys(this.ka),b=Object.keys(this.ma);a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.ka[c];if(d){delete this.ka[c];var e=this.H[c];e&&(Avc(this.ha,c,d),e.update(d))}}b=_.m(b);for(c=b.next();!c.done;c=b.next())if(a=c.value,c=this.ma[a])if(delete this.ma[a],d=this.H[a])OL(this.ha,a,3),d.uB(c)};
_.g.vka=function(a){return $Cc(this,a).qd()};var $Cc=function(a,b){if(!a.H[b])throw Error("dg`"+b);return a.H[b]};YCc.prototype.log=function(a,b){this.context.Uf().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var aDc=function(){},bDc=function(a){this.H=a},Xoc=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.jA=f;this.H=h;this.W=k};
var DM=function(a,b){_.xi.call(this);this.O=a;this.request=b;this.ke=_.Wh();this.complete=!1;this.H=""};_.M(DM,_.xi);DM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Re(a.request)}).then(this.W.bind(this)).Eg(this.handleError.bind(this));return this.ke.promise};DM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new GCc(0,this.H));cDc(this)};
var cDc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Re(new _.Xgc(a.H))}).then(function(b){if(a.complete||1!==b.status&&3!==b.status&&2!==b.status){a.complete=!0;if(4===b.status){var c=new sCc;c=_.Cj(c,2,b.V);c=_.y(c,3,a.H);c=_.y(c,5,b.ka);c=_.y(c,6,b.ha);c=_.y(c,7,b.jA);c=_.y(c,8,b.H);b=_.Jj(c,4,b.W);a.ke.resolve(b)}else b=_.II(_.gq(_.fq(new _.oc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new GCc(b.O,
a.H)),cDc(a)}).Eg(function(b){a.handleError(b)})},5E3)};DM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Re(new _.Wgc(a.H))}).then(this.V.bind(this)).Eg(this.handleError.bind(this))};DM.prototype.V=function(){if(!this.complete){var a=new sCc;a=_.y(a,3,this.H);a=_.y(a,1,!0);this.ke.resolve(a);this.complete=!0;this.dispose()}};DM.prototype.handleError=function(a){this.complete=!0;this.ke.reject(_.XI(a));this.dispose()};
var dDc=function(){_.oi.call(this,"VbxEwf")};_.M(dDc,_.oi);
var eDc=function(a,b){this.context=a;this.H=null;this.qc=b||null};_.g=eDc.prototype;_.g.La=function(){return _.C(this.context.Lc,_.SI,58)};_.g.getContext=function(){return this.context};_.g.Jz=function(){return this.context.SA.Jz(this.H)};_.g.Uf=function(){return this.context.Uf()};_.g.SM=function(a){return _.ei(this.context.wf.lm.H(a))};_.g.eR=function(){return _.ei(this.context.SA.eR())};
_.g.d5=function(a,b,c){var d=new _.$h;if(_.C(a,_.CI,3)||_.C(a,_.OJ,4)||_.C(a,_.GK,5)||_.C(a,_.LJ,6)||_.C(a,_.lJ,7)||_.C(a,_.eJ,8)||_.C(a,_.iJ,9)||_.C(a,_.MI,10)){var e=uvc(a);this.context.Om().then(function(f){return f.Re(e,{s6a:b,t6a:c})}).then(this.h$a.bind(this,d),d.Hd,d);return d}throw Error("eg");};
_.g.h$a=function(a,b){var c=[],d="";if(b instanceof _.HK){c=b.ld().wd();var e=_.B(b,2);d=b.Un()}else if(b instanceof _.QJ)b.getItem()&&c.push(b.getItem()),e=b.aN();else throw Error("fg");a.callback({items:c,pia:e,pageToken:d})};_.g.Mpa=function(){var a=this.context.Lc,b=a.ag();a="email:"+_.wI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a)};_.g.Qha=function(){this.context.Ls.hS();var a=this.context.Lc;izc(_.gK(_.wI(a)),_.hK(a),this.context.Uf()).Eg(function(){})};
_.g.j9=function(){return _.Xfc[_.zj(this.context.Lc.ag(),8,0)]};_.g.ida=function(){this.context.QF.H=new Yxc(_.Sg().substring(0,8))};_.g.QS=function(){var a=this.context.QF.sN(),b=null;a&&(b=$xc(this.context.QF),b={traceId:a,spanRecs:b});a=this.context.QF;a.H=null;a.GY=[];return _.ei(b)};_.g.sN=function(){return _.ei(this.context.QF.sN())};
_.g.getState=function(a){var b=this.context.Lj,c=b.H.bind(b);b={};b.b=this.context.Lc.Ki();b.m_ril=c("jroI5d");b.m_cil=c("T8oKm");b.m_icp=c("aU7Ts");b.m_idl=c("ZA9qG");b.m_il=c("W6J7De");b.m_if=c("DEJoH");b.m_pl=c("zaOY7");b.m_ps=c("mrK8ic");b.m_sls=c("Gv4zef");b.m_cp=c("BNEDtc");b.cs_cs=this.context.wf.lm.Ld();c=this.context.wf.Zr;var d=c.H;d&&(b.cs_sutd=d.d8,b.cs_ss=d.Ld());b.cs_ch=pwc(c).length;b.cs_td=c.eW().length;(c=this.context.i6)&&(b.t_cps=c.rWa().getStats().join(","));b.t_id=fDc(this.context);
var e=[];gDc(this.context.dR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.gz?this.context.nk().isConnected():this.context.yI.AB();b.n_o=this.context.gz?this.context.nk().Te():this.context.Ij().Te();b.n_csm=!!this.context.gz;a&&(b.csw_cc=_.Pa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.ei(JSON.stringify(b))};_.g.jpa=function(){this.qc&&(this.qc.dispatchEvent(new dDc),this.qc.Cu())};
_.g.Ll=function(a){var b=this.context.gz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.Bkc(b))};
var jDc=function(a,b){this.context=a;this.Mg=b;this.H=_.Jgc(_.oK(this.Mg),hDc);this.O=_.Jgc(_.oK(this.Mg),iDc)};
jDc.prototype.ql=function(a){var b=this,c=this.context.XP.qf().qf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Ngc(h);var k=h.getId(),l=b.context.Vn();_.hic(h,3);_.PI(h,5);var p=$nc(h,!0);h.getCapabilities()||_.aK(h,new _.Xk);_.Q(p,2)&&((p=h.kk())&&p.length?_.y(h,46,p[0]):(_.$J(h,[l]),_.y(h,46,l)),l=h.vq(),_.y(h,12,l),l=new _.Jk,l.Ob(d),_.y(l,6,1),_.thc(l,!0),_.aic(h,l),_.$hc(h,[l]),_.cWb(h,1));e[k]=h});a=Object.keys(e);c=this.context.wf;var f=Euc(c.lm,a);_.La(f,function(h,
k){ZK(h.getItem(),e[k],b.H);(b.context.Ij().Te()||b.context.nk().Te()||3===h.getItem().hv())&&ZK(h.getItem(),e[k],b.O);_.Ua(e,k)});_.La(e,function(h){_.$k(h.Mm())&&(f[h.getId()]=new HL(h))});kDc(c,Object.values(f))};
var lDc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.ql(c)},mDc=function(a){a=a.context.wf;var b=new _.ff;b.Ll(!0);b=Guc(a.lm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.hv()){var h=new _.FI;_.GI(h,f.getId());_.QI(h);d.push(h)}else h=new _.Pna,_.WK(h,!1),_.y(h,2,!1),_.J(f,81,h),c.push(b[e])}kDc(a,c);a.No(d)},hDc=[50],iDc=[12,11,10,67,68];
var nDc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new jDc(a,a.Mg)};_.g=nDc.prototype;_.g.qY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.j$a.bind(this);var b=this.i$a.bind(this);this.log("Querying all offline items.");this.H.yV().jg(a,b);this.V||(this.H.D_((0,_.u)(this.Owb,this)),this.V=!0)}}else mDc(this.O)};_.g.j$a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.ql(a);UL(this.context.Lj,"GZTDpc")};_.g.i$a=function(){this.log("Error fetching offline items.")};
_.g.Owb=function(a){this.log("Handling offline change(s): "+a.length);lDc(this.O,a)};_.g.log=function(a){this.context.Uf().info("drive.ds.sync.offline.LocalDataService",a)};
var EM=function(a){_.xi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Pc=new _.Me(this);this.ma=null;this.Ta=this.va=!1;var b=new nDc(a);this.context.ha=b;this.Fa=new eDc(a,this);Ioc(this.Fa);(b=_.C(a.Lc,_.SI,58))&&_.S(b,1,!1);this.Ma(this.Pc);this.O=this.context.Lj;this.W=a.nfa;this.V=new YCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.WRa()};_.M(EM,_.xi);_.g=EM.prototype;_.g.WRa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Wh();var b=this.context.Jk().H(106E3);this.ma.promise.then(function(){b&&b.vj()},function(){_.EK(a.context.Jk(),181008852)});var c=_.iK(this.context.Lc)?"(coldstart) ":"";this.context.Uf().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Lc.Ki());this.Pc.listen(this.context,_.Ac,this.tub);this.Pc.listen(this.context.yI,["nb","ob"],function(d){return void a.dispatchEvent(d)});this.Pc.listen(this.context.nk(),[].concat(_.md(Object.values(_.DB))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();UL(this.O,"NSockf")}return this.ma.promise};_.g.TWa=function(){this.context.Uf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.tub=function(a){var b=a.error,c=b.Qg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.NY=function(){throw FM("teamDriveQuery");};_.g.qda=function(){throw FM("teamDriveFindByIds");};
_.g.Epa=function(){throw FM("teamDriveMovePreflight");};_.g.VFa=function(){throw FM("peoplePredictQuery");};_.g.query=function(a){Uuc(this.context.Bm,a,Prc(this.context.Mg));this.jF();var b=a.clone();b=this.V.cxa(b);this.Ta||(a=a.ve(),a&&121===_.B(a,1)||(this.Ta=!0,this.Pc.listen(b,_.Bc,this.mMa)));return b};_.g.mMa=function(a){a=a.currentTarget;if(1===a.Bb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Pc.Wc(a,_.Bc,this.mMa)}};_.g.Bq=function(a){this.jF();xsc(a);return this.V.$wa(a.clone())};
_.g.Yua=function(){throw FM("activityQuery");};_.g.Kva=function(){throw FM("backupsQuery");};_.g.GGa=function(){throw FM("refreshBackups");};_.g.zV=function(){throw FM("getAndroidBackupItems");};_.g.r8=function(){throw FM("deleteBackup");};_.g.YFa=function(){throw FM("permissionQuery");};_.g.$$=function(){throw FM("insertPermission");};_.g.s8=function(){throw FM("deletePermission");};_.g.ud=function(){throw FM("mutate");};_.g.XN=function(){throw FM("mutateWorkspace");};
_.g.wz=function(){throw FM("bulkMutate");};_.g.Zwa=function(){throw FM("createFileUploader");};_.g.kSa=function(a){return new DM(this.context.Om(),a)};_.g.xr=function(a){if(3===a.getType())return _.fi(this.context.Om().then(function(b){return b.Re(a)}).then(null,_.YI));throw FM("getApps with type "+a.getType());};_.g.wr=function(){throw FM("getApp");};_.g.baa=function(){throw FM("installApp");};_.g.q8=function(){throw FM("deleteApp");};_.g.dT=function(){throw FM("updateApp");};
_.g.wN=function(){throw FM("getUserAccount");};_.g.LG=function(){throw FM("getUserPrefs");};_.g.YR=function(){throw FM("mutateUserPref");};_.g.hu=function(){throw FM("getRevisions");};_.g.FBa=function(){return!1};_.g.Ll=function(a){this.context.gz?a?_.Ckc(this.context.gz,!0):this.context.nk().Te()&&this.context.gz.vM(!0).then(null,function(){}):this.context.Ij().Ll(a)};_.g.Ty=function(){throw FM("setOfflineOptIn");};_.g.qY=function(){throw FM("setLocalItemService");};_.g.jF=function(){};
_.g.$R=function(){this.context.$R();this.context.Jk().O(106006)};_.g.A9=function(){return this.Fa};_.g.nY=function(){};_.g.AB=function(){return this.context.yI.AB()};_.g.kQ=function(){return _.S(this.context.Lc.ag(),52,!1)?_.Th(nvc(new mvc,0)):this.context.yI.kQ()};_.g.isConnected=function(){return 1===this.context.nk().get()};_.g.N7=function(){var a=this.context.gz;return a?a.vM():_.Th(_.lkc(0))};_.g.sync=function(){throw FM("sync");};_.g.Cu=function(){return this.context.Cu()};
_.g.tba=function(){throw FM("offlineDataLoaded");};_.g.Hna=function(a){return this.context.Om().then(function(b){return b.Re(a)}).then(function(b){return b})};_.g.lwa=function(){throw FM("categoryMetadataQuery");};_.g.M7=function(){throw FM("changeCategoryLinks");};_.g.eP=function(){throw FM("updateCategoryMetadata");};_.g.qGa=function(){throw FM("publishedCategoriesQuery");};_.g.rGa=function(){throw FM("publishedCategoryQuery");};_.g.UKa=function(){throw FM("workspaceFindByIdsRequest");};
_.g.yqa=function(){throw FM("workspaceQueryRequest");};_.g.kJa=function(){throw FM("suggestedWorkspaceItemQueryRequest");};_.g.lJa=function(){throw FM("suggestedWorkspaceQueryRequest");};_.g.B_=function(){throw FM("addCacheHint");};_.g.g0=function(){throw FM("createUserFeedback");};_.g.No=function(){throw FM("handleChanges");};var FM=function(a){return new _.pc(a+" is unsupported",_.WI(3))};
var gpc=function(a){EM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.Au("")};_.M(gpc,EM);gpc.prototype.$a=function(){TL(this.O,["NSockf"],this.TWa.bind(this))};
var oDc=new Set([1,2,4,5,6]),pDc=function(a,b,c,d,e){this.O=a;this.ka=b;this.ha=c;this.W=d;this.V=e;this.H=null;this.status=3;this.Me=0};pDc.prototype.qf=function(){var a=new _.zM;a.Bc(this.status);this.H&&_.$Bc(a,qDc(this));return a};
var rDc=function(a,b,c,d){d=void 0===d?!1:d;var e=oDc.has(c);if(1===a.status&&!e)return!1;a.Me=c;var f=a.status;c=!a.H;if(_.BI(a.O)){var h=(h=b&&b.getUser())&&XK(h);h=!(!h||!Zwc(a.ka,h));a.status=h&&e||d?1:6}f=!_.Tj(a.H,b)||(_.BI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.BI(a.O)||(a.status=e||d?1:6);c&&(UL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};pDc.prototype.Xe=function(){return this.Me};
var qDc=function(a){return a.H?a.H.clone():null};
var sDc=function(a){_.xi.call(this);this.ha=a;this.Me=0};_.M(sDc,_.xi);var tDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Qtc(a,_.Sd(a,4).map(b));Rtc(a,_.Sd(a,5).map(b));return a};_.g=sDc.prototype;_.g.xr=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.gQ=function(){};_.g.lD=function(){return 0!==this.Me};_.g.Xe=function(){return this.Me};
var uDc=new Set([1,2,4,5,6]),vDc=function(a,b,c){sDc.call(this,b);this.W=a;this.V=c;this.H={};this.O=[];this.status=6;this.lp=!1};_.M(vDc,sDc);vDc.prototype.xr=function(){var a=new PL;if(!_.Ta(this.H)){_.Cj(a,4,this.O);var b=[];_.La(this.H,function(c){b.push(c.clone())});_.Jj(a,2,b)}a.Bc(this.status);return a};vDc.prototype.put=function(a){this.H[a.getId()]=tDc(a);this.V.update(1);this.dispatchEvent(new _.oi("Qb",this))};vDc.prototype.remove=function(a){_.Ua(this.H,a)&&this.V.update(1)};
vDc.prototype.gQ=function(a,b,c){c=void 0===c?!1:c;var d=!uDc.has(b);1===this.status&&d||(this.Me=b,wDc(this,a,!d||c),d||this.V.update(1),this.lp||(this.lp=!0,this.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),UL(this.ha,"nVUlO")))};
var wDc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Sd(b,4);if(!d)if(e.length!==a.O.length)d=!0;else{var f=e.concat(a.O);_.Da(f);d=f.length!==a.O.length}a.O=e;var h=_.Ya(a.H);_.ygc(a.H);b=_.Pj(b,_.CL,2);d||(d=b.length!==_.Pa(h));b.forEach(function(k){var l=tDc(k);a.H[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Tj(l,k))});a.W.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.oi("Qb",a))};
var GM=function(a){_.O.call(this);this.context=a;this.Gy=new Set;this.zp=6;this.wCa=!0;this.Me=0;this.Pc=new _.Me(this);this.Ma(this.Pc)};_.M(GM,_.O);_.g=GM.prototype;_.g.ji=function(a){this.iRa(a);this.Gy.add(a);this.resize(!0);this.vO(a)};_.g.iRa=function(){};_.g.dk=function(a){this.Gy.delete(a);0!=this.Gy.size||this.dZa()?this.resize(!1):this.dispose()};_.g.Xe=function(){return this.Me};_.g.Fi=function(a){this.Me=a};_.g.XB=function(a){this.wCa=!1;this.zp=a};_.g.DJ=function(){return this.zp};
_.g.refresh=function(){};_.g.Xj=function(){};
var yDc=function(a,b,c){if(Array.isArray(c)){c.forEach(function(k,l,p){p[l]=k.clone()});var d=c}else{d=[];for(var e=_.m(Object.entries(c)),f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;if(h=h.next().value)h=h.clone(),c[f]=h,d.push(h)}}xDc(a.context.wf,d,b);d.forEach(function(k){Xxc(a.context.qMa,k,b);if(k.yc()){var l=k.getCapabilities();JL(k)?l&&(_.Fhc(l,_.Q(l,13)),_.Chc(l,!1),_.Jhc(l,!1)):aL(k)?(l&&_.y(l,3,!1),_.y(k,30,!1)):l&&(_.Nhc(l,!1),_.Ohc(l,!1))}k.getCapabilities()||_.aK(k,
new _.Xk)})};GM.prototype.resize=function(){};GM.prototype.qd=function(){};GM.prototype.ql=function(a,b){var c=this,d=!1;a.forEach(function(e){e=SL(e);d=c.Hu(e,!0)||d});b||(1!=this.DJ()&&(d=!0),this.XB(1));d&&this.OX()};var zDc=function(a,b){var c=!1;b.forEach(function(d){c=a.Hu(d)||c});c&&a.OX();return c};_.g=GM.prototype;_.g.update=function(a){return zDc(this,[a])};_.g.Hu=function(){};_.g.OX=function(){var a=this;this.hRa();this.Gy.forEach(function(b){a.vO(b)})};_.g.hRa=function(){};
_.g.vO=function(a){var b=ADc(this.context).vka(a);this.qYa(b)||(b=this.Xj(b),ADc(this.context).vO(a,b))};_.g.NX=function(a){var b=this;this.XB(3);this.Gy.forEach(function(c){ADc(b.context).NX(c,a)})};_.g.mA=function(){var a=this;this.Gy.forEach(function(b){ADc(a.context).mA(b)});this.Fi(0==this.Xe()?1:6)};_.g.dZa=function(){return!1};_.g.qYa=function(){return!1};
var BDc=function(a){_.oi.call(this,"Ba");this.id=a};_.M(BDc,_.oi);
var CDc=function(a,b,c,d){d=void 0===d?!1:d;_.xi.call(this);this.request=a;this.context=b;this.KKa=d;this.ke=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.M(CDc,_.xi);
CDc.prototype.ah=function(){var a=this;if(this.ke)return this.ke.promise;this.ke=_.Wh();for(var b={},c=_.m(this.request.hn().entries()),d=c.next();!d.done;b={cra:b.cra,lea:b.lea,Oqa:b.Oqa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Oqa=e;b.cra=asc($rc(d),this.request);b.lea=void 0;this.KKa&&(b.lea={KKa:!0});this.context.Om().then(function(f){return function(h){return h.Re(f.cra,f.lea)}}(b)).then(function(f){return void DDc(a,f)},function(f){return function(h){var k=f.Oqa;h=
_.CB(h);5===h.Qg.Xs()||4===h.Qg.mk()?(a.context.Uf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),EDc(a)):a.handleError(h)}}(b))}return this.ke.promise};var DDc=function(a,b){b.ld().wd().forEach(function(c){_.PI(c,1);a.W.push(c)});EDc(a)},EDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
CDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;FDc(this);GDc(this);this.O.size===this.request.hn().length?(this.context.wf.ql([],1,this.originalRequest,!1),this.dispatchEvent("Da"),this.ke.resolve(this.items)):this.dispatchEvent("Aa")};
var FDc=function(a){var b=a.W;a.W=[];b=a.context.pfa.V8(b);if(_.VI(_.wI(a.context.Lc))){var c=a.context.wf.lm;_.Ia(b,function(d){var e=c.H(d.getId());e&&_.$J(d,e.kk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.wf.ql(b,1,a.originalRequest,!0)},GDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.QI(_.GI(new _.FI,c));a.context.wf.No([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new BDc(c))})};
CDc.prototype.handleError=function(a){var b=new pL(a.Qg,_.Uj(this.context.Lc.ag(),1,1));this.context.wf.uB(this.request,b);this.dispatchEvent(b);this.ke.reject(a)};
var HDc=function(a,b,c,d){GM.call(this,a);this.Mg=b;this.request=c;this.Jd={};this.H=null;this.O=_.LI(a.Lc)||new _.Tfc;d&&this.ql(d,!0)};_.M(HDc,GM);
HDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.zp=6;if(_.S(this.request,5,!1))return this.XB(1),_.Th();var b=!this.wCa&&_.S(this.O,3,!1)?!1:!Gnc(_.oK(this.Mg),this.request.O()),c=[],d=this.context.Vn();this.request.hn().forEach(function(h){if("root"!==h&&h!==d){var k=a.Jd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.hv()||b)l=l&&l.Mm(),k=!(l&&_.Q(l,2));k&&c.push(h)}});if(0===c.length)return this.ql([],!1),_.Th();this.H=_.Wh();this.H.promise.then(function(){a.H=null},function(){a.H=
null});var e=this.request.clone();_.zA(e,c);var f=new CDc(e,this.context,this.request);this.context.Ij().Te()?(this.Pc.listen(this.context.Ij(),"Fb",function(h){h.Te()||(a.Pc.Wc(a.context.Ij(),"Fb"),IDc(a,f,a.H))}),this.zp=0<Object.values(this.Jd).length?1:2):(this.context.nk().Te()&&(this.zp=0<Object.values(this.Jd).length?1:2),IDc(this,f,this.H));return this.H.promise};var IDc=function(a,b,c){a.Pc.listen(b,"Ba",function(d){a.Jd[d.id]=null});a.mA();b.ah().then(function(){c.resolve()},c.reject)};
_.g=HDc.prototype;_.g.Nha=function(a){var b=this;if(this.context.Bm.equals(a,this.request,!0)){if(Gnc(_.oK(this.Mg),a.O()))return!0;if(Gnc(this.request.O(),a.O(),_.oK(this.Mg))){if(this.wCa)return!0;if(_.S(this.O,5,!1)&&_.S(this.O,3,!1))return this.request.hn().every(function(c){return(c=b.Jd[c])&&_.Q(c.getItem(),31)})}}return!1};
_.g.Xj=function(a){var b=new _.wK;_.BI(this.context.Lc)?b.Bc(Tnc(Object.values(this.Jd))?6:this.zp):b.Bc(this.zp);b.Fi(this.Xe());rsc(b,_.Na(this.Jd,function(c){return c?c.getItem():null}));yDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.qd=function(){return this.request};_.g.Hu=function(a){var b=this.ts(a.O),c=this.ts(a.H);if(b||c)c?(this.Jd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Jd[a.id]=null,a.O.count--);else return!1;return!0};
_.g.ts=function(a){return!!a&&_.oa(this.request.hn(),a.getId())};
var JDc=function(a,b){_.oi.call(this,a);this.changes=b};_.M(JDc,_.oi);
var KDc=function(a){var b=new exc;if(a.Yf()){var c=a.Yf();b.H=!1;b.suggestionSessionId=c}a instanceof _.xK&&_.Pj(a,_.Jk,6).length?(a=_.Pj(a,_.Jk,6),b.H=!1,b.V=a):a instanceof _.qB&&(a.e6()||a.bsa()||a.hka().length)&&(c=a.e6(),b.H=!1,b.W=c,c=a.bsa()||!1,b.H=!1,b.incompleteSearch=c,a=a.hka(),b.H=!1,b.O=a);return b};
var HM=function(a,b,c,d,e){e=void 0===e?"":e;_.xi.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ka=a.Uf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.nGa(b);this.ha=new exc};_.M(HM,_.xi);var LDc=function(a){return!a.va||""!==a.nextPageToken},NDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&LDc(a)?MDc(a):_.ei()};HM.prototype.$b=function(){return this.V.length};HM.prototype.H=function(){return this.V.slice()};
var MDc=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.$h;d.addCallback(function(f){return void ODc(a,c,f)});var e=_.wgc(_.xgc(new _.CI,a.Fa),c);b=_.ugc(new _.sfc,b);a.Ha&&_.y(b,10,!0);_.vgc(e,b);a.va=!0;a.O=!0;a.context.Om().then(function(f){return f.Re(e)}).then(a.ta.bind(a,d),a.handleError.bind(a,d,b));return d};
HM.prototype.ta=function(a,b){this.O=!1;if(b instanceof _.xK)var c=b;else c=b.ld(),this.nextPageToken=b.Un()||"";this.ha=KDc(c);this.ha.vc()||this.dispatchEvent("Ca");a.callback(c.wd())};
HM.prototype.handleError=function(a,b,c){c=_.CB(c);this.O=!1;if(5===c.Qg.Xs())a.callback([]);else{if(10===c.Qg.Xs()&&(_.ugc(b,Math.ceil(_.Uj(b,1,1E3)/2-2E-15)),1<_.Uj(b,1,1E3))){var d=_.vgc(_.wgc(_.xgc(new _.CI,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Om().then(function(e){return e.Re(d)}).then(this.ta.bind(this,a),this.handleError.bind(this,a,b));return}b=new pL(c.Qg,_.Uj(this.context.Lc.ag(),1,1));this.nMa(b);this.dispatchEvent(b);a.Hd(c)}};
var ODc=function(a,b,c){for(var d=new Set,e=_.m(c),f=e.next();!f.done;f=e.next()){f=f.value;if(d.has(f.getId())){f="Encountered duplicate item in server query response. itemId: "+(f.getId()+", query: ")+(_.Cjc(a.request)+" paginationToken: ")+b;b=_.hq(_.fq(_.II(_.HI(new _.oc,2),9),f));a.context.dispatchEvent(new _.qc(new _.pc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.PI(b.value,
a.ma?2:1);c=[];b=_.m(a.J1a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.GI(new _.FI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new JDc("Aa",c));if(a.V.length<a.W&&a.nextPageToken)return MDc(a);a.dispatchEvent("Da")};_.g=HM.prototype;_.g.J1a=function(a){return a};_.g.nMa=function(){};_.g.qd=function(){return this.request};_.g.nGa=function(a){a=a.clone();this.ma&&_.y(a,46,!0);return a};_.g.log=function(a){this.Ka.info("drive.ds.sync.query.QueryRunner",a)};
var PDc=function(a,b,c,d){HM.call(this,a,b,void 0,c,d)};_.M(PDc,HM);PDc.prototype.J1a=function(a){a=this.context.pfa.V8(a);this.context.wf.ql(a,1,this.request,LDc(this));return a};PDc.prototype.nMa=function(a){this.context.wf.uB(this.request,a)};PDc.prototype.nGa=function(a){var b=a=HM.prototype.nGa.call(this,a),c=_.Il(b);0===_.Sd(b,33).length&&1===c.length&&(c=this.context.wf.lm.H(c[0].Za()))&&(c=c.yc())&&(_.Kl(b,[c]),_.Ll(b,2));QDc(this,a);return a};
var QDc=function(a,b){if(_.Il(b).some(function(d){return(d=a.context.wf.lm.H(d.Za()))&&_.Q(d,108)})){var c=b.ve();c||(c=new _.tf,_.Jl(b,c));_.uf(c,937)}};
var RDc=function(a,b,c,d){this.context=a;this.Mg=b;this.W=d;this.Jna=0;this.H=c},VDc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.Ll(_.Gl(_.Kl(new _.ff,[b]),_.oK(a.Mg)),1),d=_.uf(new _.tf,306);_.Jl(c,d);SDc(a);c=new PDc(a.context,c);NDc(c,5E3).addCallback(a.V.bind(a,c));TDc(a);UDc(a,b)}},TDc=function(a){var b=_.Qa(a.H);b=b.filter(function(d){return d instanceof HDc});var c=new Set;b.forEach(function(d){d.qd().hn().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.uf(new _.tf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.xO([].concat(_.md(c)),b)},UDc=function(a,b){var c=[];(a.context.wf.wGa.qQ[b||"subscribed"]||[]).forEach(function(d){_.La(a.H,function(e){_.Tj(e.qd(),d)&&c.push(e)})});_.Da(c);0<c.length&&(SDc(a),c.forEach(function(d){d=rL(a.context.Bm,d.qd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Zh(_.Vh(c.map(function(d){return d.refresh().Eg(_.Nf)})),a.O.bind(a)))};
RDc.prototype.xO=function(a,b,c,d,e){c=void 0===c?!1:c;a=a.filter(function(f){return!_.je(f)});if(0===a.length)return _.Th({});a=_.y(_.yA(_.zA(new _.xA,a),d||_.oK(this.Mg)),7,!0);_.AA(a,b);e&&e.length&&_.Jj(a,11,e);SDc(this);b=new CDc(a,this.context,void 0,c);return _.Zh(b.ah(),this.V.bind(this,b))};RDc.prototype.V=function(a){a.dispose();this.O()};var SDc=function(a){a.Jna++;a.context.Ls.setActive(!1)};RDc.prototype.O=function(){this.Jna--;0===this.Jna&&this.context.Ls.setActive(!0)};
RDc.prototype.log=function(a){this.context.Uf().info("drive.ds.sync.cache.CacheRefresher",a)};
var WDc=function(a,b,c){_.O.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ke=null;a=new _.tf;_.wf(a,!1);_.uf(a,305);_.Jl(this.request,a);this.Pc=new _.Me(this);this.Ma(this.Pc)};_.M(WDc,_.O);
WDc.prototype.ah=function(){if(!this.ke){this.ke=_.Wh();if(_.S(this.request,48,!1))return this.H.Fi(9),this.ke.resolve(this.H),this.ke.promise;this.O=new HM(this.context,this.request,!0);this.Pc.listen(this.O,"Aa",this.W);this.Pc.listen(this.O,"Da",this.V.bind(this));this.Pc.listen(this.O,"Ea",this.ke.reject.bind(this.ke));NDc(this.O,this.request.zi())}return this.ke.promise};WDc.prototype.W=function(a){a=_.m(a.changes);for(var b=a.next();!b.done;b=a.next())b=b.value.getItem(),this.H.update(SL(new HL(b)))};
WDc.prototype.V=function(){this.H instanceof XL?this.H.H=!LDc(this.O):LDc(this.O)&&VL(this.H,!1);this.H.Fi(5);this.ke.resolve(this.H)};
var YDc=function(a,b){_.oi.call(this,XDc);this.cache=a;this.changes=b};_.M(YDc,_.oi);var XDc="Rb";
var ZDc=function(a,b){return new _.Sh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.ly()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();aoc(k.getItem());f.set(l,muc(new HL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.Ac(),l=f.get(l)||null,k.qk()?l&&a.update(new Xvc(l.getId(),l,null)):(k=k.getItem(),aoc(k),a.update(Yvc(l,muc(new HL(k),null===l||void 0===l?void 0:l.H))));a.eX();c(e.FKb)},d)})};
var $Dc=function(a,b){_.O.call(this);this.context=a;this.Mg=b};_.M($Dc,_.O);
$Dc.prototype.ah=function(a){this.log("Running initial view populator (IVDP).");try{var b=new GL(JSON.parse(a))}catch(q){this.handleError("Error parsing initial view dump.",_.XI(q));return}a=_.wI(this.context.Lc);if(!_.VI(a)){var c=b.qf();if(c){var d=c.getUser();d&&d.getId()===_.E(a,6,"")&&rDc(this.context.XP,c,4)}(a=b.Vn())&&this.context.Au(a,6)}var e=_.B(b,3)||void 0;e&&aEc(this.context,e,!0);if((a=_.Pj(b,_.op,9))&&a.length){c=(c=this.context.Lc.ag())&&_.Sd(c,30)||[];var f=new Set(c);a.forEach(function(q){(q=
(q=q.getKey())&&_.pp(q))&&f.add(q)});this.context.eE.gQ(a,4,[].concat(_.md(f.values())))}a=b.wd();a.forEach(function(q){_.Ngc(q);_.PI(q,6)});if(c=_.Pj(b,FL,5)[0])if(b=this.context.Bm,Nnc(_.oK(this.Mg),c.getQuery().O(),_.hK(this.context.Lc)))if((d=c.getQuery().wc())&&4===d.getType()&&!_.Mcc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=LL(b,c.getQuery());var h=_.B(c,2)||void 0;d.ti(h);h=a.map(function(q){return new HL(q,void 0,1,e)});var k=_.C(c,_.cl,
3);if(k&&_.B(c,2)){var l=h[h.length-1];_.PI(k,6);if(!_.Tj(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.LI(this.context.Lc))&&_.S(k,2,!1)&&c.Un()||"";var p=new XL(this.context.pt,this.context.uv,this.context.Bm,d,l,c);p.Fi(4);h.forEach(function(q){p.update(SL(q))});bEc(this.context.wf,p);l=p.qd();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+rL(b,l));b=new _.CI;_.xgc(b,l);l=_.Lkc(this.context.SA,
b,"IVDP");_.Mkc(l,a);UL(this.context.Lj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+Suc(b,c.getQuery().O()));else this.handleError("No initial query found")};$Dc.prototype.handleError=function(a,b){var c=b?void 0:_.hq(_.II(_.HI(new _.oc,2),6));b=new _.pc(a,c,b);this.context.pJ(b.Qg);this.log("Initial view dump population failed. Message: "+a);UL(this.context.Lj,"DEJoH")};$Dc.prototype.log=function(a){this.context.Uf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var cEc=function(a){_.xi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new $L(a.pt,a.uv,a.Lj,function(){return a.Vn()});this.H=this.context.Lc;this.ta=new ZL(a.pt,a.uv)};_.M(cEc,_.xi);
var dEc=function(a,b){var c=_.Uj(a.H,31,2E4);("number"===typeof _.B(b,3)?_.B(b,3):c+1)>c?(VL(a.O,!1),b="partialCorpus",a.log("Too many subscribed items; skipping subscribed cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.SA.Jb("CachedCorpusType",b)};cEc.prototype.log=function(a,b){this.context.Uf().log(this.W,a,b||"info")};var eEc=function(a,b){0===a.V&&(a.V=b)};
var fEc=function(a,b){var c;if(c=!!b&&!!b.wg())a=_.Q(a,4),c=null==a||!!_.Q(b.wg(),7)==a;return c};
var gEc=function(a,b){_.xi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.M(gEc,_.xi);gEc.prototype.ah=function(){return this.H||this.O&&""===this.nextPageToken?_.ei():hEc(this)};gEc.prototype.$b=function(){return this.V.length};
var hEc=function(a){a.O=!0;a.H=!0;var b=mrc(nrc(new _.OJ,a.request),a.nextPageToken),c=_.Lkc(a.context.SA,b);return _.fi(a.context.Om().then(function(d){return d.Re(b)}).then(function(d){var e=d.ld().wd();a.nextPageToken=d.Un()||"";iEc(a,c,e)},function(d){return void a.handleError(d)}))},iEc=function(a,b,c){_.Mkc(b,c);for(b=0;b<c.length;b++)_.PI(c[b],1);a.context.wf.ql(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ia(c,function(e){this.V.push(e.getId());e=_.GI(new _.FI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new JDc("Aa",d));a.nextPageToken?hEc(a):(a.H=!1,a.dispatchEvent("Da"))};gEc.prototype.handleError=function(a){this.H=!1;a=new pL(_.JI(a),_.Uj(this.context.Lc.ag(),1,1));this.dispatchEvent(a)};gEc.prototype.qd=function(){return this.request};
var jEc=function(a){this.H=_.Ncc(a,{numeric:!0})};jEc.prototype.sort=function(a){_.Ga(a,this.compare.bind(this))};jEc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ea(a.getId(),b.getId()):c};
var kEc=function(a,b,c,d){d=void 0===d?!1:d;GM.call(this,a);this.Mg=b;this.Jd=[];this.ke=null;this.request=c.clone();this.Av=new gEc(a,this.request);this.nPb=new jEc(iL(_.wI(a.Lc)));this.HCa=null!=_.Q(this.request,6);_.De(this,this.xmb,this);d&&(this.ke=_.Wh(),this.ke.resolve())};_.M(kEc,GM);_.g=kEc.prototype;_.g.refresh=function(){3===this.zp&&(this.zp=6,this.ke=null);return this.qca()};_.g.isInitialized=function(){return!!this.ke};
_.g.qca=function(){var a=this;if(this.isInitialized())return this.ke.promise;this.ke=_.Wh();this.context.Ij().Te()?this.Pc.listen(this.context.Ij(),"Fb",function(b){b.Te()||(a.Pc.Wc(a.context.Ij(),"Fb"),a.mA(),a.Av.ah().jg(a.ke.resolve,a.ke.reject,a.ke))}):this.context.nk().Te()?this.Pc.Zc(this.context.nk(),[_.DB.FL,_.DB.pU],function(){a.mA();a.Av.ah().jg(a.ke.resolve,a.ke.reject,a.ke)}):(this.mA(),this.Av.ah().jg(this.ke.resolve,this.ke.reject,this.ke));return this.ke.promise};_.g.resize=function(){};
_.g.qd=function(){return this.request};_.g.ly=function(){return this.Jd};_.g.Nha=function(a){return this.context.Bm.equals(a,this.request)};_.g.Xj=function(a){a=a.zi();this.nPb.sort(this.Jd);var b=Doc(_.za(this.Jd,0,Math.min(a,this.Jd.length)));yDc(this,Qrc(this.Mg),b);var c=new _.qB;c.Tw(b);c.Bc(this.Ewa(a));c.Fi(this.Xe());Lqc(c,a<this.Jd.length||!(this.context.Ij().Te()||this.context.nk().Te())&&1!==this.zp);return c};
_.g.Ewa=function(a){return 1===this.zp||a<=this.Jd.length?1:this.context.Ij().Te()||this.context.nk().Te()?0<this.Jd.length?1:2:6};_.g.ql=function(a,b){this.isInitialized()&&GM.prototype.ql.call(this,a,b)};_.g.Hu=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.ma(this.Jd,function(h){return h.getId()===c}),e=!!d;b=this.ts(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.qKa(f,a.H):this.lJ(f):this.uR(a.H);else return!1;return!0};_.g.uR=function(a){this.Jd.push(a);a.count++};
_.g.lJ=function(a){_.ta(this.Jd,a);a.count--};_.g.Oya=function(a){return _.na(this.Jd,a)};_.g.qKa=function(a,b){this.Jd[this.Oya(a)]=b;b.count++;a.count--};_.g.ts=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.HCa&&null!=_.Q(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Jd.find(function(d){return c===d.getId()},this);a=JL(a.getItem())&&fEc(this.request,a.getItem());return b&&a}return JL(a.getItem())&&fEc(this.request,a.getItem())};_.g.xmb=function(){this.Jd.forEach(function(a){a.count--})};
_.g.dZa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ld=function(){return this.Jd.length};_.g.eX=function(){this.zp=1};
var lEc=function(a){this.H=a},mEc=function(a,b,c,d,e){if(0===e||null===b){var f=new HBc;_.y(f,2,b);_.y(f,1,d);return _.Th(f)}var h=lvc();_.y(h,2,b);c&&_.y(h,3,c);return a.H.then(function(k){return k.Re(h)}).then(function(k){var l,p=null!==(l=k.qy())&&void 0!==l?l:null;k=d+_.B(k,1);return mEc(a,p,c,k,e-1)})};
var nEc=function(a,b){cEc.call(this,a);this.Mg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.AD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.M(nEc,cEc);nEc.prototype.handleError=function(){this.log("Local dump population failed.");UL(this.context.Lj,"mrK8ic")};
nEc.prototype.ah=function(){var a=this;if(this.ka)return this.ka;if(this.context.xQ){var b=new _.$h;this.ka=b;this.initialize().then(function(){var c=_.Pj(_.jL(a.H),hL,11);c=c[0]&&c[0].getKey()||"";return oEc(a,a.context.xQ,c,4)}).Eg(function(c){if(_.S(a.H,8,!0))return pEc(a);throw c;}).then(function(){_.BI(a.H)||a.context.wf.sq.H.clear();UL(a.context.Lj,"zaOY7");b.callback()},function(c){eEc(a,8);a.handleError();b.Hd(c)});return b}this.handleError();return _.gi(Error("gg"))};
nEc.prototype.initialize=function(){var a=this;return _.Th(this.context.xQ.initialize()).then(function(){if(!_.iK(a.H)){var b=_.Uj(_.jL(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Sh(function(c,d){szc(a.context.tD).then(function(e){e?c():d(Error("hg"))})})}})};
var oEc=function(a,b,c,d){return _.Sf(a,function f(){var h=this,k;return _.Hf(f,function(l){return 1==l.H?(k=h.ha,qEc(h,b,c,k),rEc(h,b,c,k),sEc(h,b,c,k),_.Af(l,tEc(h,b,c,k),2)):_.Af(l,Promise.all([uEc(h,b,c,d,k),vEc(h,b,c,d,k),wEc(h,b,c,d,k),xEc(h,b,c,d,k)]),0)})})},qEc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};fM(b,c,0,void 0,d,a.AD).then(function(f){f[0]?rDc(a.context.XP,f[0],a.Xe(),_.iK(a.H)):e()},function(){return e()})},rEc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};fM(b,c,1,void 0,d,a.AD).then(function(f){f[0]?a.context.RZ.gQ(f[0],a.Xe(),_.iK(a.H)):e()},function(){return e()})},sEc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};fM(b,c,5,void 0,d,a.AD).then(function(f){if(f[0]){f=f[0];var h=_.Pj(f,_.op,1);h.length&&a.context.eE.gQ(h,a.Xe(),_.Sd(f,2),_.iK(a.H))}else e()},function(){return e()})},uEc=function(a,b,c,d,e){var f=new _.Cn;fM(b,c,3,1,e,a.AD).then(function(h){return yEc(a,
h[0])}).then(function(h){if(h){b!==a.context.xQ||Nnc(_.Sd(h,12),_.oK(a.Mg),_.hK(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ls.hS());var k=_.B(h,3);if(!k||0>k)throw Error("kg");a.context.Au(h.Vn(),d);k=_.B(h,3);"number"===typeof k&&aEc(a.context,Number(k));_.iK(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.RDa());a.ql(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},vEc=function(a,
b,c,d,e){var f=new _.Cn;fM(b,c,3,2,e,a.AD).then(function(h){h[0]?(a.ql(h[0],d),f.resolve()):f.reject(Error("ig"))},function(h){return f.reject(h)});return f.promise},wEc=function(a,b,c,d,e){var f=new _.Cn;fM(b,c,3,4,e,a.AD).then(function(h){h.forEach(function(k){a.ql(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},xEc=function(a,b,c,d,e){var f=new _.Cn;fM(b,c,3,3,e,a.AD).then(function(h){h.length?h.forEach(function(k){a.ql(k,d)}):UL(a.context.Lj,"rVezo");f.resolve()},function(h){return f.reject(h)});
return f.promise},tEc=function(a,b,c,d){var e=new _.Cn;fM(b,c,6,void 0,d,a.AD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=h.value,_.Pj(h,QL,1).length&&(a.log("Importing "+_.Pj(h,QL,1).length+" people into the PeopleCache."),h=_.Pj(h,QL,1),Bwc(a.context.wf.sq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},yEc=function(a,b){var c=_.B(b,3);if(c&&!_.iK(a.H)){var d=new lEc(a.context.Om()),e=_.Uj(_.jL(a.H),13,5);return mEc(d,c,null,0,e).then(function(f){return _.P(f,
2)?(a.log("Encrypted dump too stale."),a.context.Jk().O(106007),eEc(a,9),null):b},function(){return b})}return _.Th(b)},pEc=function(a){var b=gM(a.context.LL.Ai()),c=_.Pj(_.jL(a.H),hL,11).filter(function(d){return d.ht()});return kzc(_.gK(_.wI(a.H)),_.hK(a.H),_.Uj(_.jL(a.H),10,0)||0,_.oK(a.Mg),a.ha||0,c.map(function(d){return _.B(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.B(k,1)}),f=new hM(_.Th(d),a.context.Uf(),null,!0),h=new iyc(f,a.H,function(k){a.context.pJ(k)});
h.initialize();a.ma=!0;return oEc(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([pzc])}).then(function(k){k[0]?(k=k[0].Za(),k=a.context.tD.set(pzc,k)):k=Promise.resolve();return k}).then(function(){f.close()})}return _.Uh(Error("jg"))})},CEc=function(a,b,c){switch(b.Tn()){case 1:return zEc(a,b,c);case 2:var d;b=_.C(b,Moc,11);if(!b)throw Error("lg");dEc(a,b);(b=a.O.YG?a.O:(null===(d=_.LI(a.H))||void 0===d?0:_.S(d,17,!1))?a.ta:null)?(b.Fi(a.Xe()),a=[{cache:b,changes:eM(a.context.xz,
null)}]):a=[];return a;case 3:return AEc(a,b);case 4:return BEc(a,b);default:return null}},zEc=function(a,b,c){var d=[];_.Pj(b,FL,5).forEach(function(e){var f=void 0,h=_.C(e,_.cl,3);h&&(_.Ngc(h),_.Q(a.H,67)&&Bnc(h,Qnc),_.PI(h,c),f=new HL(h));var k=e.getQuery();if(!_.S(k,48,!1)||_.Pj(a.H,_.ff,44).some(function(l){if(!_.S(l,48,!1))return!1;l=LL(a.context.Bm,l,!0);return _.Tj(l,k)}))e=new XL(a.context.pt,a.context.uv,a.context.Bm,k,f),e.Fi(a.Xe()),d.push({cache:e,changes:eM(a.context.xz,null)})});return d},
BEc=function(a,b){return _.Pj(b,FL,5).map(function(c){c=new kEc(a.context,a.Mg,_.C(c,_.pI,5),!0);c.Fi(a.Xe());return{cache:c,changes:eM(a.context.xz,null)}})},AEc=function(a,b){var c=_.Sd(_.Pj(b,FL,5)[0].getQuery(),33)[0],d=_.B(b,3)||void 0;b=eM(a.context.xz,c);IM(a.context).addCallback(function(f){f.gva(c,d)});var e=new aM(a.context.pt,a.context.uv,c);e.Fi(a.Xe());return[{cache:e,changes:b}]};
nEc.prototype.ql=function(a,b){var c=this,d=CEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.wd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Ngc(h);_.Q(this.H,67)&&Bnc(h,Qnc);_.PI(h,b);_.BI(this.H)||this.context.wf.sq.H.vc()||Xwc(this.context.wf.sq,[h]);f=new HL(h);_.Sd(a,14).includes(h.getId())&&muc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(SL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new YDc(l,k.changes));c.log("Imported "+l.Ld()+" items into the "+l.getType());var p=null;
l instanceof aM&&(p=l.yc());c.context.X$.promise.then(function(){Exc(c.context.xz,p)})});1===a.Tn()&&UL(this.context.Lj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Tn()+".")};nEc.prototype.Xe=function(){return this.ma?7:3};
var DEc=function(a){_.O.call(this);this.context=a};_.M(DEc,_.O);DEc.prototype.ah=function(a){try{EEc(this,new ABc(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var EEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:FEc(a,b);break;case 4:GEc(a,b);break;case 6:HEc(a,b);break;case 2:IEc(a,b);break;case 7:JEc(a,b);break;case 5:_.Pj(_.C(b,CBc,7),ABc,1).forEach(function(c){EEc(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},FEc=function(a,b){var c=_.C(b,_.ff,2);b=JSON.parse(_.B(b,3)||"{}");var d=new _.CI;_.xgc(d,c);b=a.context.dR().qsa.CE(d,{headers:{},text:"",json:b}).ld();
KEc(a,c,b)},HEc=function(a,b){KEc(a,_.C(b,_.ff,2),_.C(b,_.qB,9))},KEc=function(a,b,c){for(var d=c.wd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.PI(f.value,7);c=KDc(c);a=a.context.wf;b=LL(a.context.Bm,b);e=JM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.O[e];f||(f=new KM(a.context,b),f.Fi(2),a.O[e]=f);c.vc()||f.psa(c);a.ql(d,1,b)},IEc=function(a,b){b=_.C(b,_.aA,5);var c=a.context.Lc.ag();c=c&&_.Sd(c,30)||[];var d=new Set(c);_.Pj(b,_.op,3).forEach(function(e){(e=(e=e.getKey())&&
_.pp(e))&&d.add(e)});a.context.eE.gQ(_.Pj(b,_.op,3),2,[].concat(_.md(d.values())))},GEc=function(a,b){a.context.qfa.L2(_.C(b,RL,8).nl(),_.C(b,_.eA,6),2,!1)},JEc=function(a,b){var c=_.C(b,_.cA,10);b=JSON.parse(_.B(b,3)||"{}");b=a.context.dR().qsa.CE(c,{headers:{},text:"",json:b});ZCc(a.context).L2([b],c,2,!1)};DEc.prototype.handleError=function(a,b){var c=b?void 0:_.hq(_.II(_.HI(new _.oc,2),6));this.context.dispatchEvent(new _.qc(new _.pc(a,c,b)));this.log("Prefetched request population failed.")};
DEc.prototype.log=function(a){this.context.Uf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var LM=function(a){cEc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.va=Math.ceil(1.1*_.Uj(a.Lc,31,2E4))};_.M(LM,cEc);LM.prototype.ah=function(){if(!_.S(this.H,45,!1))return eEc(this,5),this.handleError(),_.gi(Error("mg"));this.log("Drive SDK cache population initiated.");return this.context.zVa().addCallback(this.Fa,this).addCallback(this.Ba,this).Pg(this.handleError,this)};
LM.prototype.Fa=function(){var a=this;UL(this.context.Lj,"L6uQWd");IM(this.context).addCallback(function(b){b.Gda()});if(_.S(this.H,46,!1))return Loc(this.context.Om(),this.context.Uf()).addCallback(function(b){if(!b)throw eEc(a,4),Error("ng");dEc(a,b)});this.log("Subscribed corpus cache population disabled.");VL(this.O,!1);return _.ei()};
LM.prototype.Ba=function(){this.context.RDa();var a=new _.$h;if(this.O.YG){this.log("Starting subscribed corpus cache population.");var b=this.O.qd();b.ti(this.va);this.O.Fi(5);LEc(this,this.O,b)}b=_.Pj(this.H,_.ff,44);b=_.m(b);for(var c=b.next();!c.done;c=b.next())c=new XL(this.context.pt,this.context.uv,this.context.Bm,c.value),c.Fi(5),LEc(this,c,c.qd()),c=rL(this.context.Bm,c.qd()),this.log("Starting "+c+" cache hint corpus cache population.");_.Vh(this.ka).then(a.callback,this.ma.bind(this,a),
a);return a};var LEc=function(a,b,c){var d=eM(a.context.xz,null);b=new WDc(a.context,b,c);a.ha.push(b);b=_.Zh(b.ah().then(function(e){!e.YG&&e instanceof $L&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.SA.Jb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new YDc(e,d))}),function(){a.context.X$.promise.then(function(){Exc(a.context.xz,null)})});a.ka.push(b)};
LM.prototype.ma=function(a,b){for(var c=_.m(this.ha),d=c.next();!d.done;d=c.next())d.value.dispose();eEc(this,7);c=b;b instanceof pL?c=_.XI(b.error):_.AI(b)||(c=Error("og`"+b));a.Hd(c)};LM.prototype.handleError=function(){this.log("Drive SDK cache population failed.");UL(this.context.Lj,"Gv4zef")};LM.prototype.Xe=function(){return 5};
var MEc=function(a,b){_.O.call(this);this.context=a;this.V=b;this.Pc=new _.Me(this);this.impression=null;this.W=[];this.Ma(this.Pc);this.H=new nEc(this.context,this.context.Mg);this.Ma(this.H);this.O=new LM(this.context);this.Ma(this.O)};_.M(MEc,_.O);
MEc.prototype.ah=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.Jk().H(106002);_.n._DRIVE_dsp&&NEc(this);_.n._DRIVE_dspc=function(c){NEc(a,c)};eM(this.context.xz,null);_.S(this.context.Lc,24,!1)&&!_.iK(this.context.Lc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?OEc(this):_.n._DRIVE_ivdc=function(){OEc(a)});var b=this.context.xQ;if(b)return this.Pc.listen(this.H,XDc,this.ha),this.Pc.listen(this.O,XDc,this.ha),(!_.S(this.context.Lc,10,!1)&&_.Q(this.context.Lc,
69)?this.context.DX.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.AD=a.impression);return a.H.ah().jg(function(){return PEc(a,a.H.Xe())},function(){QEc(a,a.H.Xe(),a.H.V);return _.iK(a.context.Lc)?a.handleError(Error("pg")):a.O.ah().then(function(){return PEc(a,a.O.Xe())},function(c){QEc(a,a.O.Xe(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.AI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var NEc=function(a,b){var c=new DEc(a.context);(_.n._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.ah(d)});c.dispose()};MEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(REc(this,b,a.changes))};
var PEc=function(a,b){Exc(a.context.xz,null);UL(a.context.Lj,"L6uQWd");IM(a.context).addCallback(function(c){c.Gda()});return Promise.all(a.W).then(function(){SEc(a,b)})},SEc=function(a,b){if(!a.isDisposed()){_.iK(a.context.Lc)||TEc(a.V,_.Pj(a.context.Lc,_.ff,44));a.log("Corpus cache population complete.");var c=a.context.Lj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ls.SDa():szc(a.context.tD).then(function(d){d&&a.context.Ls.SDa()},function(){});UL(c,"rVezo");UL(c,"BNEDtc");a.impression&&(b=_.vK(_.Hfc,
b),Krc(Src(a.impression),b),Jrc(Src(a.impression),!0),Lrc(Src(a.impression),Huc(a.V.lm)),Mrc(Src(a.impression),a.context.wf.Tn()),a.impression.vj());a.dispose()}},QEc=function(a,b,c){a.impression&&(b=_.vK(_.Hfc,b),Krc(Src(a.impression),b),a=Src(a.impression),_.Nj(a,3,c,void 0))};
MEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;Exc(this.context.xz,null);var c=this.context.Lj;UL(c,"L6uQWd");IM(this.context).addCallback(function(d){d.Gda()});UL(c,"mrK8ic");UL(c,"Gv4zef");UL(c,"rVezo");UL(c,"BNEDtc");this.context.SA.Jb("CachedCorpusType","partialCorpus");c=!!this.H.context.xQ||_.S(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.AI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.pc(b,void 0,c),c=a.Qg,_.HI(c,_.iK(this.context.Lc)?3:1),_.II(c,
6),_.fq(c,b),_.hq(c),this.context.dispatchEvent(new _.qc(a))):this.log("Corpus population skipped");this.impression&&(Jrc(Src(this.impression),!1),this.impression.vj());this.dispose()};var REc=function(a,b,c){return ZDc(b,c).then(function(d){d.some(function(e){return b instanceof aM&&e.qk()&&e.Ac()===b.yc()})||bEc(a.V,b,d)},function(){return a.handleError(Error("qg"))})},OEc=function(a){if(_.n._DRIVE_ivd){var b=new $Dc(a.context,a.context.Mg);a.Ma(b);b.ah(_.n._DRIVE_ivd)}else UL(a.context.Lj,"DEJoH")};
MEc.prototype.log=function(a){this.context.Uf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var UEc=function(){YL.apply(this,arguments)};_.M(UEc,YL);UEc.prototype.ts=function(a){var b;if(b=YL.prototype.ts.call(this,a))a=a&&a.getItem()&&a.getItem().Mm(),b=!(!a||!_.Q(a,3));return b};UEc.prototype.qd=function(){};UEc.prototype.getType=function(){};UEc.prototype.LN=function(){};
var VEc=function(a,b){this.context=a;this.H=b;this.qQ={}},XEc=function(a,b){if(!_.uJ(b)){var c=_.Sd(b,33);if(1===c.length)WEc(a,c[0],b);else{c=_.Il(b);if(1===c.length&&!_.S(c[0],2,!1)){var d=c[0].Za();c=a.H.get(d);if(!c){c=a.context.wf.xI;var e=_.uf(new _.tf,310);c.xO([d],e).then(function(f){if((f=f[d])&&f.yc()){var h=f.getCapabilities();h&&_.qe(h)&&(f=f.yc(),WEc(a,f,b))}else WEc(a,null,b)});return}if(c.getItem().yc()&&_.qe(c.getItem().getCapabilities())){c=c.getItem().yc();WEc(a,c,b);return}}WEc(a,
null,b)}}},WEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!JL(d.getItem()))return}d=b||"subscribed";a.qQ[d]||(a.qQ[d]=[]);a.qQ[d].push(c);b&&(IM(a.context).addCallback(function(e){e.gva(b)}),YEc(a.context.wJa,b))},ZEc=function(a,b){if(!_.uJ(b)){var c={},d;for(d in a.qQ){c.zT=d;for(var e=0;e<a.qQ[c.zT].length;e++)if(_.Tj(b,a.qQ[c.zT][e])){_.sa(a.qQ[c.zT],e);"subscribed"!==c.zT&&IM(a.context).addCallback(function(f){return function(h){h.aHa(f.zT,!1)}}(c));return}c={zT:c.zT}}}};
var $Ec=function(){this.H=new Map;this.O=[];this.V=[]};
$Ec.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();$K(e)&&(a?(e=a.getItem().Hf())&&_.B(e,1)&&(1===_.Zd(e)||3===_.Zd(e))&&(e=_.B(e,1),this.H.has(e)||this.H.set(e,new Set),this.H.get(e).add(c)):!a&&d&&this.H.forEach(function(f,h,k){f.delete(c)&&0===f.size&&k.delete(h)}));!a&&d&&this.H.has(c)?(this.H.get(c).forEach(function(f){b.O.push(f)}),this.H.delete(c)):this.H.has(c)&&a&&(!d||d&&!_.Tj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var aFc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},bFc=function(a){a.O=[];a.V=[]};
var cFc=function(a,b){Ixc.call(this,a.clone(),b.Om(),b.Lc,b.Uf());this.context=b};_.M(cFc,Ixc);cFc.prototype.W=function(a){var b=new Map;a.hn().forEach(function(c){var d=_.YVb(a.clone(),[c]);b.set(c,d)});return b};cFc.prototype.V=function(a){a=a.wd()[0];this.context.wf.ql([a],1,void 0,!0,this.request.O())};cFc.prototype.ha=function(a){this.context.wf.ql([],1,a,!1,this.request.O())};cFc.prototype.ka=function(a){a=_.QI(_.GI(new _.FI,a));this.context.wf.No([a])};
var dFc=function(a,b,c,d){GM.call(this,a);this.Mg=b;this.request=c;this.Jd={};d&&this.ql(d,!0)};_.M(dFc,GM);_.g=dFc.prototype;
_.g.refresh=function(){var a=this;this.zp=6;var b=IL(this.context.Lc)!==IL(this.context.Lc,this.request.O()),c=[];this.request.hn().forEach(function(h){var k=a.Jd[h];k&&k.getItem().wg()&&!b||c.push(h)});if(0===c.length)return this.ql([],!1),_.Th();var d=this.request.clone();_.YVb(d,c);var e=new cFc(d,this.context),f=_.Wh();this.context.Ij().Te()?(this.Pc.listen(this.context.Ij(),"Fb",function(h){h.Te()||(a.Pc.Wc(a.context.Ij(),"Fb"),a.mA(),e.ah().then(f.resolve,f.reject,f))}),this.zp=0<_.Pa(this.Jd)?
1:2):(this.context.nk().Te()&&(this.zp=0<_.Pa(this.Jd)?1:2),this.mA(),e.ah().then(f.resolve,f.reject,f));return f.promise};_.g.Nha=function(a){return this.context.Bm.equals(a,this.request)&&Gnc(_.oK(this.Mg),a.O())};_.g.Xj=function(a){var b=new _.wK;b.Bc(this.zp);b.Fi(this.Xe());rsc(b,_.Na(this.Jd,function(c){return c?c.getItem():null}));yDc(this,a.O(),b.eq());return b};_.g.resize=function(){};_.g.qd=function(){return this.request};
_.g.Hu=function(a){var b=this.ts(a.O),c=this.ts(a.H);if(b||c)c?(this.Jd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Jd[a.id]=null,a.O.count--);else return!1;return!0};_.g.ts=function(a){return!!a&&this.request.hn().includes(a.getId())};
var KM=function(a,b,c,d,e){GM.call(this,a);var f=this;this.V=0;this.Jd=[];this.O=new Map;this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.ma=this.Ba=null;this.ta=Date.now();this.request=b.clone();this.Av=new PDc(this.context,this.request,!1,e);b=this.request.wc()&&Juc(this.request.wc());var h=this.context.uv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.HCa=!b||!Buc(this.request)||_.VI(_.wI(a.Lc));this.Fa=gwc(this.request);
c&&this.ql(c,!d);this.va=_.Uj(a.Lc.ag(),16,36E5);_.SJ(this.request)&&this.Pc.listen(this.context.$ga,"Hb",this.Ha);_.De(this,function(){_.aa(f.Av);f.clear()})};_.M(KM,GM);KM.prototype.refresh=function(){return eFc(this,!1)};var eFc=function(a,b){a.zp=6;if(_.S(a.request,48,!1))return a.zp=1,_.Th();if(_.SJ(a.request)){var c=fFc,d=a.context.$ga.H;d=Math.max(Date.now()-d,a.va);c(a,Math.min(d,2592E5))}return gFc(a,b)};
KM.prototype.initialize=function(){return this.count>=this.request.zi()||1===this.zp?_.Th():this.refresh()};KM.prototype.clear=function(){hFc(this)};var hFc=function(a){a.Jd.forEach(function(b){b.count--});a.count=0;a.Jd=[];a.O.clear()},fFc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return eFc(a,!0)},b)};KM.prototype.Ha=function(){Date.now()-this.ta>this.va&&fFc(this,0)};
var gFc=function(a,b){a.Av&&(a.Pc.Wc(a.Av,"Ca",a.psa),a.Pc.Wc(a.Av,"Da",a.oMa),a.Av.dispose());var c=a.request.ve();c&&_.wf(c,!1);a.Av=new PDc(a.context,a.request,b);a.V=0;a.Pc.listen(a.Av,"Ca",function(){return a.psa(a.Av.ha)});a.Pc.listen(a.Av,"Da",a.oMa);return a.qca()};
KM.prototype.qca=function(){var a=this,b=_.Wh();this.context.Ij().Te()?this.Pc.listen(this.context.Ij(),"Fb",function(c){c.Te()||(a.Pc.Wc(a.context.Ij(),"Fb"),iFc(a,b))}):this.context.nk().Te()?this.Pc.Zc(this.context.nk(),[_.DB.FL,_.DB.pU],function(){iFc(a,b)}):iFc(this,b);return b.promise};var iFc=function(a,b){a.mA();var c=a.request.zi()+a.V;_.hka(NDc(a.Av,c).jg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=KM.prototype;
_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.md(this.Gy)))),d=c.next();!d.done;d=c.next())d=d.value,d=ADc(this.context).vka(d),b=Math.max(b,d.zi());_.SJ(this.request)?(this.request.ti(b),2!==this.Xe()&&!this.Av.O&&(b>this.count||a)?this.refresh():this.uJ()):this.request.zi()!==b&&(this.request.ti(b),b>this.count?this.qca():this.uJ())};_.g.qd=function(){return this.request};_.g.Nha=function(a){return this.context.Bm.equals(a,this.request)};
_.g.Xj=function(a){var b=a.zi(),c,d=!1;if(_.vJ(this.request)){var e=this.Jd.slice();var f=this.W.slice(0,b);if(this.W.length>b){var h=f.map(function(l){return l.getId()});for(c=0;c<e.length;c++){var k=e[c];d=_.gl(k.getItem()).filter(function(l){return h.includes(_.C(l,_.Jk,1).getId())});k=k.clone();Knc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.gl(l.getItem()).length})}d=Tnc(e);c=new _.xK;_.y(c,4,!1);vsc(c,f)}else e=this.Jd.slice(0,b),c=new _.qB,Lqc(c,b<this.Jd.length||!(this.context.Ij().Te()||
this.context.nk().Te())&&1!==this.zp),_.J(c,7,this.ka),_.y(c,8,this.incompleteSearch),_.Cj(c,18,this.ha),d=Tnc(e);e=Doc(e);yDc(this,a.O(),e);c.Tw(e);c.Bc(d?6:this.Ewa(b));c.Fi(this.Xe());c.vP(this.suggestionSessionId);return c};_.g.Ewa=function(a){return 1===this.zp||a<=this.count?1:this.context.Ij().Te()||this.context.nk().Te()?0<this.Jd.length?1:2:6};_.g.psa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.gAa();this.W=a.V;this.suggestionSessionId=a.Yf()};
_.g.oMa=function(){var a=this.request.zi()-this.count;0<a&&LDc(this.Av)&&(this.V+=a,this.qca())};_.g.ql=function(a,b){_.SJ(this.request)&&hFc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=SL(d.value),c=this.Hu(d,!0)||c;b||(1!==this.zp&&(c=!0),this.zp=1);if(a=this.H){a:{a=this.Jd;d=this.H||_.Ea;for(var e=1;e<a.length;e++)if(0<d(a[e-1],a[e])){a=!1;break a}a=!0}a=!a}a&&(this.ao("ViewCache unsorted after import"),this.context.uv.sort(this.request,this.Jd));c&&(this.OX(),jFc(this,b))};
var jFc=function(a,b){_.Il(a.request).length&&a.Jd.length&&a.context.QZ.then(function(c){var d=nL(a.context.Jk(),106024,a.ma);if(d){var e=_.Il(a.request)[0].Za(),f=_.C(_.uK(d),Brc,18);if(!f){f=new Brc;var h=_.uK(d);_.J(h,18,f)}f=_.y(f,1,!b);c=_.y(f,2,c===e).Bt(a.Jd.length);e=a.context.wf.Tn();_.y(c,4,e);a.ma=d;d.vj()}})};_.g=KM.prototype;
_.g.Hu=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.ts(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.ao("Updating different wrapper from the existing one"):this.ao("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.qKa(f,a.H):(this.lJ(f),_.SJ(this.request)&&fFc(this,0));else{if(_.SJ(this.request)&&!b)return!1;this.uR(a.H)}else return!1;return!0};_.g.uR=function(a){this.H?vnc(this.Jd,a,this.H):this.Jd.push(a);a.count++;kFc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.lJ=function(a){if(this.H){var b=this.Jd,c=_.Fa(b,a,this.H);0<=c&&_.sa(b,c)}else _.ta(this.Jd,a);a.count--;kFc(a)&&this.count--;this.O.delete(a.getId())};_.g.Oya=function(a){return this.H?_.Fa(this.Jd,a,this.H):_.na(this.Jd,a)};_.g.qKa=function(a,b){this.H&&0!==this.H(a,b)?(this.lJ(a),this.uR(b)):(this.Jd[this.Oya(a)]=b,b.count++,kFc(b)&&this.count++,a.count--,kFc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.ts=function(a,b){if(!a)return!1;if(this.HCa&&!_.SJ(this.request)){if(b)return!0;if(!this.Fa){var c=a.getId();b=!!this.Jd.find(function(e){return c===e.getId()},this);a=KL(this.context.pt,this.request,a.getItem());return b&&a}}if(!KL(this.context.pt,this.request,a.getItem()))return!1;var d=1.2*this.request.zi();if(1===this.zp||!this.H||kuc(a.V,2)||this.count<d||b||boc(a.getItem()))return!0;b=0===this.Jd.length?null:this.Jd[this.Jd.length-1];return!!b&&0>=this.H(a,b)};
_.g.uJ=function(){if(1!==this.zp&&!this.context.Ij().Te()&&!this.context.nk().Te()){var a=1.2*this.request.zi();if(!(a>=this.count||this.Av&&a>=this.Av.$b())){a=this.count-this.request.zi();for(var b=this.Jd.length-1;0<=b&&0<a;b--){var c=this.Jd[b];kuc(c.V,2)||boc(c.getItem())||(c.count--,kFc(c)&&this.count--,this.O.delete(c.getId()),_.sa(this.Jd,b),a--)}gFc(this,!1)}}};_.g.ao=function(a){var b=new _.oc;_.HI(b,2);_.II(b,6);_.hq(b);this.context.dispatchEvent(new _.qc(new _.pc(a,b)))};
var kFc=function(a){return!kuc(a.V,2)&&3!==a.getItem().hv()};KM.prototype.iRa=function(a){var b=this,c=_.Il(this.request);c.length&&(c=c.some(function(d){return(d=b.context.wf.lm.H(d.Za()))&&_.Q(d,108)}),yvc(this.context.nfa,a,c))};KM.prototype.hRa=function(){this.uJ()};KM.prototype.qYa=function(a){return 1!==this.zp&&a.zi()>this.count&&this.Av.O};
var MM=function(a,b){var c;_.O.call(this);var d=this;this.O={};this.W=new $Ec;this.Pc=new _.Me(this);this.Ma(this.Pc);this.context=a;this.Mg=b;this.Zr=new nwc(a.Bm,a.Uf());if(null===(c=_.LI(this.context.Lc))||void 0===c?0:_.S(c,15,!1))b=new ZL(a.pt,a.uv),this.Zr.add(b),a.ofa.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Zr)||void 0===e?void 0:e.O)||void 0===f?void 0:VL(f,!(null===(k=null===(h=d.Zr)||void 0===h?void 0:h.H)||void 0===k?0:k.YG))});this.H=new Auc(a.QZ,a.pt,a.uv);_.Q(a.Lc,
60)&&(this.va=new UEc(a.pt,a.uv));this.V=new uuc(a.Uf(),_.oK(this.Mg));lFc(this,_.Sd(this.context.Lc,28));this.lm=new Duc(this.Mg,this.context.Bm,this.H,this.V);this.context.Jk().W.H=this.lm;this.xI=new RDc(this.context,this.Mg,this.O,this.H);this.wGa=new VEc(this.context,this.H);this.ka=new MEc(this.context,this);_.De(this.ka,function(){d.ka=null});this.ta=_.Jgc(_.oK(this.Mg),mFc);TL(this.context.Lj,["NSockf"],function(){return d.initialize()});TL(this.context.Lj,["NSockf","jroI5d"],function(){var e=
d.context.Lc;if(_.C(e,_.cl,12))e=_.C(e,_.cl,12);else{var f=_.thc(_.vhc(new _.Jk,_.gK(_.wI(e))),!0);f=_.y(f,6,1);var h=_.E(_.wI(e),6,"");h&&f.Ob(h);f=_.cWb(_.$hc(_.aic(_.qG((new _.cl).Ob(d.context.Vn()).setTitle(_.E(e,38,"My Drive")),"application/vnd.google-apps.folder").In(!1),f),[f]),1);f=_.y(f,29,!0);f=_.y(f,63,!0);e=_.whc(new _.Xk,_.S(e,6,!0));e=_.y(e,2,!1);e=_.aK(f,_.Jhc(_.Chc(_.Bhc(_.Fhc(_.Ghc(_.Ehc(_.Dhc(_.Ahc(_.zhc(_.yhc(_.xhc(_.y(e,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}d.ql([e],
1);UL(d.context.Lj,"hVFf7")});this.ha=_.Wh();TL(this.context.Lj,["BNEDtc"],function(){d.ha.resolve()});this.sq=new Nwc(this.context.Lc,this.context.Uf(),a.Om(),a.nfa,this.context.Jk(),this.context.DX.promise);_.BI(this.context.Lc)&&this.Pc.listen(this.sq,"Kb",this.ma);this.pMa=new _.xkc(this.context.Lc,this.lm)};_.M(MM,_.O);
MM.prototype.ma=function(a){var b=a.getPeople();this.log("Handling PeopleCache updated with "+b.length+".");var c=new Set;a=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=_.B(d.value,1);for(var e=this.sq.Fd(d),f=_.m(e),h=f.next();!h.done;h=f.next())c.add(h.value);if(e=h=e[e.length-1])d=this.sq.H.get(d),e=!(!d||1!==d.Xe()&&4!==d.Xe()||3===xwc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.H.get(h))?(h=d.getItem().clone(),nFc(this,h),b.push(Yvc(d,new HL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");oFc(this,b,[]);this.context.Ls.update(6);a.size&&this.xI.xO([].concat(_.md(a)),_.uf(new _.tf,311))};MM.prototype.initialize=function(){this.ka.ah()};
MM.prototype.ji=function(a,b){if(b instanceof _.ff)b=LL(this.context.Bm,b),pFc(this,b.O()),XEc(this.wGa,b),b=qFc(this,b),b.cache.ji(a);else if(b instanceof _.xA)b=rFc(this,b),pFc(this,b.O()),b=sFc(this,b),b.cache.ji(a);else if(b instanceof _.pI){var c=JM(this,b),d=this.O[c];d?(3==d.DJ()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,sv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new kEc(this.context,this.Mg,b),d.refresh().Eg(_.Nf),this.O[c]=d,b={cache:d,sv:!0});b.cache.ji(a)}else if(b instanceof _.nG)c=b.O(),d=this.V,vuc(d,d.H,d.O,c),b=sFc(this,b),b.cache.ji(a);else throw Error("rg");return b.sv};MM.prototype.dk=function(a,b){if(b instanceof _.ff)b=LL(this.context.Bm,b),ZEc(this.wGa,b);else if(b instanceof _.xA)b=rFc(this,b);else if(!(b instanceof _.pI||b instanceof _.nG))throw Error("rg");b=JM(this,b);var c=this.O[b];c&&(c.dk(a),c.isDisposed()&&delete this.O[b])};
var JM=function(a,b){return rL(a.context.Bm,b,2)},qFc=function(a,b){var c,d,e=JM(a,b),f=a.O[e];if(f)return 3==f.DJ()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,sv:!1};for(var h=[],k=5,l,p,q=!1,r=owc(a.Zr),v=0;v<r.length;v++){var z=r[v];k=z.xE(b);if(5!=k){r=1==k?void 0:b.zi();if((null===(c=_.LI(a.context.Lc))||void 0===c?0:_.S(c,18,!1))&&z instanceof ZL){q=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=z.Jka(b,r);l=z.Xe();p=z instanceof XL?z.qy():"";a.log(e+" | ItemQueryRequest backed by "+z.getType()+" | size "+(z.Ld()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Ij().Te()||a.context.nk().Te())h=h.concat(a.H.query(b,1)),_.Da(h,void 0,function(A){return A.getId()}),k=(k=a.Zr.H)&&k.d8&&5!=k.xE(b)?k.xE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");f=new KM(a.context,b,h,1==k,p);l&&f.Fi(l);f.ql(a.H.query(b,
2),1!=k);h=f.initialize();(null===(d=_.LI(a.context.Lc))||void 0===d?0:_.S(d,18,!1))&&q&&h.then(function(){return IM(a.context)}).then(function(A){return A.rWa().DSb()}).then(function(){var A,D;if(f.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var G=f.Xj(b).wd().map(function(R){return R.getId()}),H=(null===(D=null===(A=a.Zr)||void 0===A?void 0:A.O)||void 0===D?void 0:D.Xj(b,b.zi()).wd().map(function(R){return R.getId()}))||[],L=_.Ha(G.sort(),
H.sort()),N=nL(a.context.Jk(),106030);N&&(Grc(Frc(Erc(Wrc(N),G.length),H.length),L),N.vj());L?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+G.length+".  Cache: ")+(H.length+".\nNetwork: ")+(G+".\nCache: ")+(H+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});h.Eg(function(A){A=_.JI(A);_.hq(A);a.context.dispatchEvent(new _.qc(new _.pc("Error during view cache init",
A)))});a.O[e]=f;return{cache:f,sv:!0}},sFc=function(a,b){var c=JM(a,b),d=!1,e=a.O[c];if(e&&e.Nha(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.H.getAll(b.hn()),h;b instanceof _.xA?h=new HDc(a.context,a.Mg,b,f):h=new dFc(a.context,a.Mg,b,f);f.length&&h.Fi(8);h.refresh().Eg(_.Nf);b=h;d=!0;a.O[c]=b;e?(tFc(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c)):(e=b,a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items.")))}return{cache:e,
sv:d}};MM.prototype.eW=function(){return Object.values(this.O).filter(function(a){return a.qd()instanceof _.pI})};
MM.prototype.b2a=function(a){for(var b=_.uf(new _.tf,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=Suc(this.context.Bm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.xI.xO([a],b,!1,c))};
var xDc=function(a,b,c){c&&c.length&&xuc(a.V,b,c);_.BI(a.context.Lc)&&Xwc(a.sq,b)},bEc=function(a,b,c){var d,e,f;if(b instanceof kEc){var h=JM(a,b.qd());if(a.O[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof awc&&a.Zr.remove(b);h=new Map;var k=a.H.ly(),l=new Map(k);k=[];for(var p=_.m(b.ly()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.H.get(r);if(v){var z=v.getItem().hv();(null===(d=_.LI(a.context.Lc))||void 0===d?0:_.S(d,15,!1))&&!0===q.H&&muc(v,
q.H);3==z||4==z?h.set(q.getId(),q.getItem()):v!=q&&k.push(new Xvc(q.getId(),q,v));l.delete(r)}else{r=SL(q);if(null===(e=_.LI(a.context.Lc))||void 0===e?0:_.S(e,15,!1))null===(f=a.Zr.O)||void 0===f?void 0:f.update(r);a.H.update(r);a.W.update(r);_.BI(a.context.Lc)&&a.sq.fP(r)}_.BI(a.context.Lc)&&nFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(SL(q.value));k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);b instanceof kEc?(k=JM(a,b.qd()),a.O[k]=b):a.Zr.add(b);
k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.FI,_.GI(p,l.getId()),p.setItem(l),k.push(p);a.No(k);a.log("Merged cache: "+b.getType());b instanceof aM&&c.forEach(function(A){uFc(a.context.rsa,A)});a.context.Ls.update(3)},tFc=function(a,b){(new Set([].concat(_.md(a.Gy)))).forEach(function(c){b.ji(c);a.dk(c)})};
MM.prototype.ql=function(a,b,c,d,e){var f=this,h;e||(e=c?[].concat(_.md(c.O().filter(function(D){return!_.oK(f.Mg).includes(D)}))):[]);c&&c instanceof _.ff&&_.SJ(c)&&vFc(this,a,c);for(var k=[],l=[],p=0;p<a.length;p++){var q=a[p],r=new HL(q,void 0,b),v=this.H.get(q.getId()),z=v?v.getItem():null,A=wFc(this,v,r);if(null!=A)r.Wy(A),xFc(this,z,q),aoc(q),q=suc(q,z,e),r.setItem(q);else if(null!=v)r=v,q=z;else continue;_.BI(this.context.Lc)&&nFc(this,q);!v||yFc(this,z,q,e)?(l.push(Yvc(v,r)),k.push(r)):k.push(v)}a=
null;if(c){if(c instanceof _.ff){if(null===(h=_.LI(this.context.Lc))||void 0===h?0:_.S(h,15,!1))a=_.Il(c),1==a.length&&(a=a[0].Za(),(a=this.H.get(a))&&!a.H&&muc(a,!d));(a=rwc(this.Zr,c))&&a.ql(k,!!d)}c=JM(this,c);(a=this.O[c])&&a.ql(k,!!d)}0<l.length&&(_.BI(this.context.Lc)&&l.forEach(function(D){return f.sq.fP(D)}),oFc(this,l,e,a?[a]:[]),zFc(this,k));ADc(this.context).Z8()};
var nFc=function(a,b){$wc(a.sq,b)||5!=b.hv()||_.hic(b,1)},yFc=function(a,b,c,d){(b=b?_.Dj(b.clone(),82):null)&&xDc(a,[b],d);c=_.Dj(c.clone(),82);xDc(a,[c],[]);return!_.Tj(b,c)},vFc=function(a,b,c){AFc(a,b,c);b.forEach(function(d,e){var f=a.lm.H(d.getId());f&&(ZK(f,d,[1002]),ZK(f,d,[1003]),ZK(f,d,[1005]),b[e]=f);_.uJ(c)&&0<_.Sd(c,33).length&&_.iic(d,_.Sd(c,33)[0])})},AFc=function(a,b,c){var d;_.uJ(c)?d="quick access":_.vJ(c)?d="people predict":_.wJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},kDc=function(a,b){var c=new Map;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,c.get(d.V)||c.set(d.V,[]),c.get(d.V).push(d);c=_.m(c);for(b=c.next();!b.done;b=c.next())d=_.m(b.value),b=d.next().value,d=d.next().value,a.ql(Doc(d),b)};MM.prototype.ola=function(a){this.pMa.ola(a)};
MM.prototype.No=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.qk()?null:e.getItem(),h=e.Ac(),k=(h=this.H.get(h))?h.getItem():null,l=null;if(f){l=new HL(f,void 0,void 0,_.B(e,1)||void 0);var p=wFc(this,h,l);if(null==p)continue;l.Wy(p);xFc(this,k,f);_.S(e,5,!1)&&Bnc(f,Qnc);aoc(f);f=suc(f,k);l.setItem(f);_.BI(this.context.Lc)&&nFc(this,f)}if(k&&!f||f&&yFc(this,k,f,[]))this.context.wJa.xy(e),c.push(Yvc(h,l))}_.BI(this.context.Lc)&&c.forEach(function(q){return b.sq.fP(q)});oFc(this,
c,[])};var xFc=function(a,b,c){b&&!c.Mm()&&ZK(c,b,a.ta);var d=b?b.Hf():null,e=c.Hf();e=e?_.Xd(e):null;d&&e&&xFc(a,_.Xd(d),e);b&&!_.fl(c)&&ZK(c,b,[1002]);b&&!_.gl(c).length&&ZK(c,b,[1003]);b&&!_.hl(c).length&&ZK(c,b,[1005]);b&&null==c.K1()&&ZK(c,b,[71]);b&&null==_.B(c,79)&&ZK(c,b,[73]);b&&_.Q(b,31)&&!_.Q(c,31)&&(Bnc(c,Qnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
MM.prototype.uB=function(a,b){if(a instanceof _.ff||a instanceof _.xA||a instanceof _.pI)a=JM(this,a),(a=this.O[a])&&a.NX(b);else throw Error("rg");};var wFc=function(a,b,c){var d=c.getItem();if(vxc(a.context.pfa,d))return null;if(b){a=b.V;var e=c.V;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=a.hv()&&!JL(a)&&!JL(d)&&a.yc()==d.yc())if(a.Ai()&&d.Ai()){if(a.Ai()>d.Ai())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.vq()>d.vq())return null}return luc(b&&b.V,c.V)};
MM.prototype.YH=function(a,b){(a=this.H.get(a))&&a.Wy(luc(a.V,b))};
var oFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.LI(a.context.Lc))||void 0===e?0:_.S(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&muc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.O);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ta(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())zDc(h.value,b);h=owc(a.Zr);d=0;c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=
!1,l=_.m(b);for(h=l.next();!h.done;h=l.next())f.update(h.value)&&(k=!0);k&&d++;f instanceof aM&&f.Ld()>=1.2*f.limit&&BFc(a.context.wJa,f.yc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.Q(a.context.Lc,60)&&a.va.update(h),a.H.update(h),a.H.get(h.id)||a.V.uJ(h.id),a.W.update(h);0<d&&a.context.Ls.dna(d);CFc(a)},CFc=function(a){var b=a.W.O.slice(0),c=aFc(a.W);bFc(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.tf;_.uf(d,308);a.xI.xO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=Euc(a.lm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Hf(),k=_.B(h,1);if(k=a.lm.H(k))_.J(h,5,k),_.y(h,4,1),e.push(f)});kDc(a,e)}},DFc=function(a){ADc(a.context).Z8();a.H.uJ()},rFc=function(a,b){_.Ga(b.O());var c=_.na(b.hn(),"root");if(0>c)return b;b=b.clone();b.hn()[c]=a.context.Vn();return b},lFc=function(a,b){var c;null!==(c=_.LI(a.context.Lc))&&void 0!==c&&_.S(c,1,!1)||(b=Rrc(a.Mg,b),a=a.V,vuc(a,a.items,a.fields,b))},pFc=function(a,b){var c;if(null===(c=_.LI(a.context.Lc))||
void 0===c?0:_.S(c,1,!1))b=Rrc(a.Mg,b),a=a.V,vuc(a,a.items,a.fields,b)},zFc=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().hv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.uf(new _.tf,311);a.xI.xO(c,d)}})},TEc=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!rwc(a.Zr,c)){a.log("Adding new cache hint for "+JM(a,c));var d=new XL(a.context.pt,a.context.uv,a.context.Bm,
c);c=new WDc(a.context,d,c);var e=eM(a.context.xz,null);_.Zh(c.ah().then(function(){ZDc(d,e).then(function(f){bEc(a,d,f)})}),function(){Exc(a.context.xz,null)})}})})};MM.prototype.Tn=function(){var a=this.Zr.H;return a&&a.YG?1:2};MM.prototype.log=function(a,b){this.context.Uf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var mFc=[50];
var FFc=function(a){_.O.call(this);var b=this;this.context=a;this.H=[];this.V=new _.pl;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Wh();this.va=c.promise;tzc(this.context.tD).then(function(d){b.H=d||[];c.resolve();EFc(b)},function(){return c.resolve()});TL(this.context.Lj,["rVezo"],(0,_.u)(this.W,this))};_.M(FFc,_.O);
var YEc=function(a,b){_.S(a.context.Lc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ta(a.H,b);for(tuc(a.context.wf.lm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Aa(a.H,0,0,b);a.H.length>2*_.Uj(a.context.Lc,47,5);)a.H.pop();a.context.tD.set(nzc,a.H)}a.context.wf.Zr.eW().length+a.O.size<_.Uj(a.context.Lc,47,5)&&(EFc(a),a.W())})},GFc=function(a,b){_.ta(a.H,b)&&a.context.tD.set(nzc,a.H)};
FFc.prototype.xy=function(a){uFc(this.context.rsa,a);if(JL(a)){var b=a.yc();a.qk()?BFc(this,b,!0):(a=a.getItem(),tuc(a)&&GFc(this,b))}};var BFc=function(a,b,c){GFc(a,b);a.V.contains(b)&&a.V.remove(b);var d=a.O.get(b);d&&d.dispose();a.O.delete(b);d=a.context.wf.Zr;for(var e=d.eW(),f=0;f<e.length;f++){var h=e[f];if(h.yc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ls.update(3);break}}IM(a.context).addCallback(function(k){k.aHa(b,c)});a.W()};
FFc.prototype.W=function(){if(this.context.Lj.H("rVezo")){var a=this.context.wf.Zr;HFc(this);for(var b={};this.V.$b()&&!(this.ha>=_.Uj(this.context.Lc,47,5));){var c=_.ql(this.V);this.ha++;qwc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Kea=new _.ehc,_.y(b.Kea,1,c),this.context.Om().then(function(d){return function(e){return e.Re(d.Kea)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Kea:b.Kea}}}};
var EFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},HFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){EFc(a);a.W()},36E5)};FFc.prototype.ta=function(a,b){var c=_.B(b,1);c&&c>_.Uj(this.context.Lc,48,1E3)?(this.log(a,"Too large to backfill: "+_.B(b,1)),IFc(this,a,!1)):JFc(this,a)};
FFc.prototype.ma=function(a,b){(b=_.JI(b).mk())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.QI(_.jgc(_.GI(new _.FI,a),a)),this.context.wf.No([a])):JFc(this,a)};
var JFc=function(a,b){var c=new aM(a.context.pt,a.context.uv,b),d=c.qd().clone();d.ti(_.Uj(a.context.Lc,48,1E3));d=new WDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=eM(a.context.xz,b);IM(a.context).addCallback(function(f){f.gva(b)});_.Zh(d.ah().then(function(){KFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;IFc(a,b,!0)}),function(){Exc(a.context.xz,b)})},KFc=function(a,b,c,d){c.YG?(c.eX(),ZDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Ld());bEc(a.context.wf,
c,e);IFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");IFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),IFc(a,b,!0))},IFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&IM(a.context).addCallback(function(e){e.aHa(b,!1)});a.W();0<a.O.size||a.context.wf.Zr.eW().map(function(e){return e.yc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){BFc(a,e,!0)})};
FFc.prototype.log=function(a,b){this.context.Uf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var LFc=function(){_.O.apply(this,arguments)};_.M(LFc,_.O);
var OFc=function(a,b){b=MFc(b);var c=a.getItem(),d=NFc(c.getCapabilities());b.Y3.forEach(function(e){_.cWb(e.getItem(),c.Wo());_.aK(e.getItem(),d.clone())});return b},RFc=function(a,b,c){var d=PFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={qK:c?c:new HL(b),children:[]};QFc(a,d,c);return c},PFc=function(a){var b={};a=_.m(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.m(c.getItem().kk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},QFc=
function(a,b,c){var d=c.qK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(QFc(a,b,{qK:e,parent:c,children:[]}))});return c},TFc=function(a,b){b=b.children.filter(function(l){return!_.el(l.qK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.qK.getItem();if(!c.has(f.getId())){_.cWb(f,a.Wo());SFc(a,f,e.parent?e.parent.qK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.el(k.qK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.qK)}}return d},
UFc=function(a){a=a.children.filter(function(h){return!_.el(h.qK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.qK.getItem();if(!b.has(e.getId())){c.push(_.QI(_.GI(new _.FI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.el(f.qK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},MFc=function(a){var b=[],c=[];a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.getItem();_.el(e)||_.Q(e,137)?c.push(e):b.push(d)}return{uQ:c,Y3:b}},NFc=
function(a){a=a.clone();var b=null!=_.Q(a,34)?_.Q(a,34):_.Q(a,7),c=null!=_.Q(a,35)?_.Q(a,35):_.Q(a,7);_.y(a,45,c);_.Phc(a,b);_.y(a,30,c);_.Khc(a,b);_.Qhc(a,c);_.Lhc(a,c);_.Mhc(a,b);_.xhc(a,b);_.Chc(a,c);_.Ihc(a,b);_.Hhc(a,_.Q(a,7));_.Bhc(a,_.Q(a,10)||_.Q(a,11));_.Jhc(a,_.Yk(a));_.Dj(a,18);_.Dj(a,13);_.Dj(a,10);_.Nhc(a,_.Q(a,42));_.Ohc(a,_.Q(a,43));_.Rhc(a,_.Q(a,48));return a},SFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.Q(d,30);_.y(e,30,f);_.Khc(e,_.Q(d,31));_.Qhc(e,_.Q(d,
47));_.Lhc(e,_.Q(d,32));_.Mhc(e,_.Q(d,33));_.xhc(e,_.Q(d,4));_.Chc(e,_.Q(d,9));_.Jhc(e,_.Q(d,21));_.Ihc(e,_.Q(d,20));_.Hhc(e,_.Q(d,17));_.whc(e,_.Yk(d));_.Ahc(e,_.Q(d,7));_.Dhc(e,_.Q(d,10));_.Ehc(e,_.Q(d,11));f=_.Q(d,45);_.y(e,45,f);_.Phc(e,_.Q(d,46));_.Rhc(e,_.Q(d,48));a=_.el(a);_.y(b,137,a);c&&(c=c.getCapabilities(),aL(b)?(_.Bhc(e,_.Q(c,43)),_.Ohc(e,_.Q(c,43)),_.Nhc(e,_.Q(c,42))):_.Bhc(e,_.Q(c,42)))};
var VFc=function(a){this.context=a;this.V=new LFc;this.O=_.uf(new _.tf,306);this.H=a.wf},uFc=function(a,b){if(JL(b))b.qk()?WFc(a,b):XFc(a,b);else if(_.S(a.context.Lc,86,!1)){var c=b.Ac(),d=a.H.lm.H(c);var e=d&&d.yc();var f=b.getItem()&&b.getItem().yc();if(!d||!e||!aL(b.getItem()||d)||f&&f!==e)e=!1;else if(e=!!_.el(d),!b.qk()){var h=b.getItem();f=_.el(d)!==_.el(h);h=h.Wo()!==d.Wo();e=f||e&&h}if(e)if(b.qk()){if(b=YFc(a,d.yc()),d=a.V,e=(new _.cl).Ob(c),b=(b=RFc(d,e,b))?UFc(b):[],a.context.wf.No(b),a.log(c,
"SD shared folder delete | Removed "+b.length+" item(s)"),a=nL(a.context.Jk(),106009))c=Trc(a),_.y(c,2,b.length),a.vj()}else if(c=b.getItem(),d=YFc(a,c.yc()),e=a.V,c=b.getItem(),c=(d=RFc(e,c,d))?TFc(c,d):[],kDc(a.context.wf,c),a.log(b.Ac(),"SD shared folder update | Updated "+c.length+" item(s)"),a=nL(a.context.Jk(),106010))b=Trc(a),_.y(b,1,c.length),a.vj()}},WFc=function(a,b){var c=b.Ac();b=YFc(a,c);b=MFc(b);var d=_.df(b.Y3,function(e){return _.QI(_.GI(new _.FI,e.getId()))});a.context.wf.No(d);a.H.xI.xO(b.uQ.map(function(e){return e.getId()}),
a.O,void 0,void 0,b.uQ.map(function(e){return _.Fl((new _.El).Ob(e.getId()),_.jl(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.uQ.length+" divergent items"));if(a=nL(a.context.Jk(),106016))c=Urc(a),_.y(c,1,b.uQ.length),_.y(c,2,b.Y3.length),a.vj()},XFc=function(a,b){var c=b.Ac(),d=YFc(a,c),e=a.H.lm.H(c);b=OFc(b,d);kDc(a.context.wf,b.Y3);a.H.xI.xO(b.uQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.uQ.map(function(h){return _.Fl((new _.El).Ob(h.getId()),_.jl(h))}));a.log(c,"SD update | Update "+
b.Y3.length+" item(s), "+(b.uQ.length+" divergent items"));if(d=nL(a.context.Jk(),106017)){var f=Urc(d);_.y(f,1,b.uQ.length);_.y(f,2,b.Y3.length);d.vj()}e||VDc(a.H.xI,c)},YFc=function(a,b){var c=new _.ff;_.Kl(c,[b]);_.Ll(c,2);return Guc(a.H.lm,c)};VFc.prototype.log=function(a,b){this.context.Uf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var ZFc=function(a,b,c){this.H=a;this.V=b;this.pJ=c};
ZFc.prototype.Yw=function(a,b){var c=this;if(a.KV().length){var d=rxc(this.H,a.Ac());if(d){var e=d?sxc(this.H,a):[];for(var f={},h=_.m(a.KV()),k=h.next();!k.done;f={xL:f.xL},k=h.next())if(k=k.value,f.xL=$Fc(e,k.Gm(),a.Ac()),_.Q(k,3))yxc(this.H,f.xL),_.Zh(b,function(r){return function(){c.H.O.W(hxc(r.xL))}}(f));else{for(var l=_.m(_.Pj(k,_.jG,2)),p=l.next();!p.done;p=l.next())aGc(this,f.xL,p.value);k=_.m(_.Sd(k,4));for(l=k.next();!l.done;l=k.next())bGc(f.xL,l.value);this.H.mD([f.xL],!1,-1);b.then(function(r){return function(){return void c.H.YH(r.xL.getName(),
-2)}}(f),function(r){return function(){c.H.YH(r.xL.getName(),-2)}}(f))}e=this.ld(d.Xj().response)}}e=e?e:this.ld();var q=e.G3a;b.then(function(r){q.resolve(r)},function(r){q.reject(_.CB(r));c.handleError(a.Ac(),r)});return e};ZFc.prototype.ld=function(a){a=void 0===a?new BL:a;return new nuc(a.Bc(1))};var $Fc=function(a,b,c){var d=a.find(function(e){return gxc(e.getName(),b)});d||(d=Ksc((new wL).$c(b),c),a.push(d));return d};
ZFc.prototype.handleError=function(a,b){Axc(this.V,a);a=_.JI(b);_.y(a,21,"Server error updating metadata after optimistic application.");this.pJ(a)};
var aGc=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new uL,d.Ob(c.getId()),Jsc(b,b.O().concat([d])),cGc(d,c));if(1===vL(d))d.setBooleanValue(_.Q(c,3));else if(12===vL(d))d.setDateStringValue(_.B(c,17));else if(2===vL(d))d.setTextValue(_.B(c,4));else if(3===vL(d))_.Sd(c,6).length?d.Soa(_.Sd(c,6)):_.Sd(c,5).length&&(a=_.Sd(d,7).concat(_.Sd(c,5)),d.Soa(a));else if(4===vL(d))d.setLongTextValue(_.B(c,7));else if(5===vL(d))d.setSelectionValue(_.B(c,8));else if(6===
vL(d))_.Sd(c,10).length?d.Ooa(_.Sd(c,10)):_.Sd(c,9).length&&(a=d.cMa().concat(_.Sd(c,9)),d.Ooa(a));else if(7===vL(d))d.setIntegerValue(_.B(c,11));else if(8===vL(d))_.Sd(c,13).length?d.Goa(_.Sd(c,13)):_.Sd(c,12).length&&(a=_.Sd(d,12).concat(_.Sd(c,12)),d.Goa(a));else if(10===vL(d))d.setUserValue(a.O(_.B(c,14)));else if(11===vL(d))_.Sd(c,16).length?Gsc(d,_.Sd(c,16).map(a.O)):_.Sd(c,15).length&&Gsc(d,d.BWa().concat(_.Sd(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(vL(d)+
"."),new _.pc(d,new _.oc);},bGc=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===vL(a))_.Dj(a,5);else if(12===vL(a))_.Dj(a,17);else if(2===vL(a))_.Dj(a,6);else if(3===vL(a))_.dI(a,7);else if(4===vL(a))_.Dj(a,8);else if(5===vL(a))_.Dj(a,9);else if(6===vL(a))_.dI(a,10);else if(7===vL(a))_.Dj(a,11);else if(8===vL(a))_.dI(a,12);else if(10===vL(a))_.Ej(a,15);else if(11===vL(a))_.Kj(a,16);else throw a="Optimistic Applier: Unsupported value type "+(vL(a)+"."),new _.pc(a,new _.oc);
},cGc=function(a,b){_.P(b,3)?a.RA(1):_.P(b,17)?a.RA(12):_.P(b,4)?a.RA(2):_.Sd(b,6).length||_.Sd(b,5).length?a.RA(3):_.P(b,7)?a.RA(4):_.P(b,8)?a.RA(5):_.Sd(b,10).length||_.Sd(b,9).length?a.RA(6):_.P(b,11)?a.RA(7):_.Sd(b,13).length||_.Sd(b,12).length?a.RA(8):_.P(b,14)?a.RA(10):(_.Sd(b,16).length||_.Sd(b,15).length)&&a.RA(11)};ZFc.prototype.O=function(a){return _.uhc(_.shc(1),a)};
var dGc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Mg=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};dGc.prototype.apply=function(a,b){var c=this;if(!_.RJ(a))return b;var d=null;a instanceof _.iJ?d=eGc(this,a,b):a instanceof _.pJ?d=fGc(this,a,b):a instanceof _.MI?d=this.Yw(a,b):a instanceof _.dJ?d=gGc(this,a,b):a instanceof _.JJ&&(d=this.va.Yw(a,b));d&&(this.W++,this.ha.setActive(!1),_.Zh(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.Th(d):b};
var eGc=function(a,b,c){uxc(a.O,b.getId());var d=a.H.lm.H(b.getId());_.Zh(c.then(function(){return void a.ma("VMiG2e")},a.ta.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.JI(e);_.y(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.QJ).Bc(1)},fGc=function(a,b,c){var d=_.B(b,2);d&&a.O.H.push(d);c.then(function(){d&&wxc(a.O,d)&&_.Zh(hGc(a,d,new _.wkc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ta(a.O.H,
d)});c.then(null,function(e){e=_.JI(e);_.y(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.QJ).Bc(1)},hGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Th();var f=_.Wh(),h=c.Za();_.ZH(c);setTimeout(function(){a.ka.then(function(k){var l=_.uf(new _.tf,1425);l=Coc(!0,1,l);return k.Re(l).then(function(p){if(p=p.ld())if(p=p.wd()[0],!p||(p.Xv()||0)>b){f.resolve();return}_.Zh(hGc(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.Zh(hGc(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},gGc=function(a,b,c){var d=b.yc(),e=a.H.lm.H(d);if(!e)return null;e=e.clone();xDc(a.H,[e],[157]);var f=e.wg();iGc(f,_.Pj(b,_.bl,2));jGc(f,_.Pj(b,_.bl,3));a.H.ql([e],-1,void 0,void 0,[157]);_.Zh(c,function(){a.H.YH(d,-2)}).then(function(h){a.H.ql([_.C(h,_.cl,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.JI(h);_.y(h,21,"Server error updating item after optimistic application.");a.V(h)});return Htc(new Gtc,e).Bc(1)},
iGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Bea:c.Bea},d=b.next())c.Bea=d.value,_.Pj(a,_.bl,8).some(function(e){return function(f){return f.Gm()==e.Bea.Gm()}}(c))||_.Rj(a,8,c.Bea,_.bl,void 0)},jGc=function(a,b){var c=b.map(function(d){return d.Gm()});b=_.Pj(a,_.bl,8).filter(function(d){return!c.includes(d.Gm())});Jnc(a,b)};
dGc.prototype.Yw=function(a,b){var c=this,d=this.H.lm.H(a.getId());if(!d||d.yc()&&0==a.Vh()||null!=_.Q(a,40))return null;var e=_.Sd(a,10),f=_.Sd(a,9);if(0<e.length&&0<f.length&&(e=Object.values(Fuc(this.H.lm,e.concat(f))).map(function(k){return k.yc()||"root"}),_.Da(e),1<e.length))return null;var h=d.clone();kGc(this,a,h);this.H.ql([h],-1,void 0,void 0,Prc(this.Mg));b.then(function(){return c.H.YH(a.getId(),-2)},function(){c.H.YH(a.getId(),-2);c.ta(a.getId(),d)});b.then(null,function(k){k=_.JI(k);
if(63==k.mk()){var l=h.getId();_.y(k,22,l);_.y(k,23,f[0])}_.y(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.$ic((new _.QJ).setItem(h),h.getId()).Bc(1)};
var kGc=function(a,b,c){null!=b.Fe()&&c.Jl(b.Fe());null!=b.Wi()&&_.eic(c,b.Wi());null!=b.getMimeType()&&_.qG(c,b.getMimeType());null!=_.B(b,7)&&_.bWb(c,_.B(b,7));null!=_.Q(b,11)&&_.Zhc(c,_.Q(b,11));null!=_.Q(b,4)&&c.Ev(_.Q(b,4));null!=_.Q(b,16)&&_.dic(c,_.Q(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Vh()&&(c.In(b.Vh()),_.cic(c,b.Vh()));null!=_.Q(b,18)&&_.WK($nc(c,!0),_.Q(b,18));_.Sd(b,8).length&&_.$J(c,_.Sd(b,8));if(_.Sd(b,9).length){var d=new Set(c.kk());_.Sd(b,9).forEach(function(p){return d.add(p)});
_.$J(c,[].concat(_.md(d)))}if(_.Sd(b,10).length){var e=new Set(c.kk());_.Sd(b,10).forEach(function(p){return e.delete(p)});_.$J(c,[].concat(_.md(e)));var f=c.Aw();f&&_.Sd(b,10).includes(f)&&_.Dj(c,46)}if(!c.Aw()){var h=a.Ba();f=c.kk().find(function(p){var q=a.H.lm.H(p);return q&&!!q.Aw()||p==h});_.y(c,46,f||void 0)}c.kk().length&&(f=a.H.lm.H(c.kk()[0]))&&_.iic(c,f.yc());if(f=_.C(b,_.Zk,25)){var k=_.C(c,_.Zk,111)||new _.Zk;null!=_.Q(f,1)&&_.Thc(k,_.Q(f,1));null!=_.B(f,2)&&_.Uhc(k,_.B(f,2));_.J(c,111,
k)}var l=_.Sd(c,120);_.Sd(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.Sd(b,32).forEach(function(p){_.ta(l,p)});_.Cj(c,120,l)};dGc.prototype.ta=function(a,b){var c=this,d=_.zA(new _.xA,[a]);this.ka.then(function(e){return e.Re(d)}).then(function(e){e=e.ld().wd()[0];c.H.ql([e.clone()],1)},function(){b&&c.H.ql([b.clone()],1)})};
var lGc=function(a){this.H=a};_.M(lGc,_.dmc);lGc.prototype.execute=function(a,b,c){var d=_.dmc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.KKa||b instanceof _.CI&&_.SJ(b.qd()))if(c=gsc(this.H))return c;return b instanceof _.pJ?(c=_.uf(new _.tf,1424),a.Re(Coc(!1,1,c)).then(function(e){(e=e.ld())&&(e=e.wd()[0])&&_.P(e,96)&&b.Qca(e.Xv())},function(){})):null};
var Poc=function(a,b){return[mGc,nGc,oGc,pGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ea(d(a),d(b));return e},0)},mGc=function(a){return qGc[a.zf()]},nGc=function(a){return rGc[a.getType()]},oGc=function(a){return a.getName()||""},pGc=function(a){return a.getId()||""},NM={},qGc=(NM[5]=0,NM[7]=1,NM[1]=2,NM[3]=3,NM[4]=4,NM[2]=5,NM[6]=6,NM),sGc={},rGc=(sGc[1]=0,sGc[2]=1,sGc[3]=2,sGc[4]=3,sGc);
var tGc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ma=b;this.O=c;this.W=d;this.ha=e;this.V=f;this.ka=h;this.ta=k;this.Mg=l};
tGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.QJ&&8===b.Bb()))if(a instanceof _.cJ||a instanceof _.eJ||a instanceof _.Vgc||a instanceof _.BJ||a instanceof _.MI||a instanceof _.LJ||a instanceof _.chc||a instanceof _.NJ||a instanceof _.cL){var d=_.PI(b.getItem().clone(),9);this.H.ql([d],1);Xxc(this.ta,b.getItem(),_.oK(this.Mg))}else if(a instanceof _.iJ)b=_.QI(_.GI(new _.FI,a.getId())),this.H.No([b]);else if(a instanceof _.lJ)b=_.QI(_.jgc(_.GI(new _.FI,a.getId()),a.getId())),this.H.No([b]),
uFc(this.ma,b);else if(a instanceof _.pJ)b=Coc(!0).qd(),b=this.H.lm.query(b).map(function(e){return _.QI(_.GI(new _.FI,e.getId()))}),this.H.No(b);else if(a instanceof _.gJ)this.O.remove(a.Bh());else if(a instanceof _.sJ||a instanceof _.IJ)this.O.put(b.wr());else if(a instanceof _.jJ)Ooc(this.H,a);else if(a instanceof _.CD)this.W.remove(a.getKey());else if(a instanceof _.tJ)Qoc(this.H,a,_.C(b,_.Jk,2));else if(a instanceof _.DD)this.W.put(b.lMa());else if(a instanceof _.fJ||a instanceof _.MJ)this.ha.mD([b.jn()],
!1);else if(a instanceof _.mJ)this.ha.mD([Kxc(a.getId())],!1);else if(a instanceof _.Ugc)this.V.mD(b.response.O(),!1,1);else if(a instanceof _.JJ)a.KV().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Gm()||"",a.Ac())}),Axc(this.ka,a.Ac()),this.H.b2a(a.Ac());else if(a instanceof _.tK)for(b=_.m(_.Pj(a,_.utc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.C(d,_.AL,2),d.getType()){case 1:case 2:if(d=this.H.lm.H(d.Ac()))d=
_.GI(orc(),d.getId()).setItem(d.clone()),this.H.No([d])}}};
var uGc=function(a){this.H=a};
uGc.prototype.translate=function(a){if(a instanceof _.FJ){var b=this.H.H(a.getId());if(!b)return new _.oc;var c=(new _.MI).Ob(a.getId());if(b.yc()){var d=b.getCapabilities();_.qe(d)||_.Q(d,9)?c.In(!0):_.NI(c,!1)}else d=a.getParent(),1===b.Wo()?c.In(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?jrc(c,[d]):_.NI(c,!1)):_.NI(c,!1);return c}if(a instanceof _.GJ)return lrc(krc(jrc(irc((new _.MI).Ob(a.getId()),_.Sd(a,2)),_.Sd(a,3)),_.Q(a,6)),_.Pj(a,_.El,8));if(a instanceof _.HJ){b=this.H.H(a.getId());
if(!b)return new _.oc;c=(new _.MI).Ob(a.getId());b.yc()?(d=b.getCapabilities(),_.qe(d)||_.Q(d,9)?c.In(!1):_.NI(c,!0)):(d=a.getParent(),1===b.Wo()?c.In(!1):d?(b=this.H.H(d),!b||_.Yk(b.getCapabilities())?irc(c,[d]):_.NI(c,!0)):_.NI(c,!0));return c}if(a instanceof _.GK)return new _.Vgc(a);if(a instanceof _.yM)return _.Sd(a,1).map(function(f){var h=new _.JJ;f=_.y(h,1,f);h=a.KV();f=_.Jj(f,2,h);h=a.ve();return _.J(f,3,h)});if(a instanceof _.oJ){c=Coc(!1,1).qd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Xv())&&(e=Math.max(e,f))});return bsc(new _.pJ,a).Qca(e)}return a};
var vGc=function(){};vGc.prototype.validate=function(a){var b=null;a instanceof _.xJ?(a=a.getId()||"",_.je(a)&&(b="Tried to request backup with no id.")):a instanceof _.hJ&&(a=a.getId()||"",_.je(a)&&(b="Tried to delete backup with no id."));return b?_.JI(b):null};
var wGc={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},xGc={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},yGc={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2,MULTIPARENTING_MIGRATION:4},zGc={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},AGc={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},BGc={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},CGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,
RESOLVED:5,REOPENED:6},DGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},EGc={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},FGc={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},GGc={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},HGc={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},IGc={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},JGc={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},KGc={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},LGc={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},MGc={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},NGc={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},OGc={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},PGc={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},QGc={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},RGc={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},YGc=function(a){return a.map(function(b){var c=new _.hCc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=SGc(e);_.J(c,2,d);break;case "actors":d=TGc(e);_.Jj(c,3,d);break;case "actions":d=UGc(e);_.Jj(c,
4,d);break;case "targets":d=VGc(e);_.Jj(c,5,d);break;case "timestamp":c.O(WGc(e));break;case "timeRange":d=XGc(e),_.Qj(c,7,gCc[0],d)}}return c})},UGc=function(a){return a.map(function(b){var c=new _.eCc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=SGc(e);_.J(c,1,d);break;case "source":d=new dBc;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.fk(d,2,wGc[h]);break;case "appId":_.ek(d,1,h)}}_.J(c,2,d);break;case "actor":d=ZGc(e);_.J(c,3,d);break;case "target":d=$Gc(e);_.J(c,4,d);break;case "timestamp":c.O(WGc(e));break;case "timeRange":d=XGc(e),_.Qj(c,6,dCc[0],d)}}return c})},VGc=function(a){return a.map(function(b){return $Gc(b)})},bHc=function(a){return a.map(function(b){return aHc(b)})},cHc=function(a){return a.map(function(b){var c=new _.IAc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=
_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "parent":c.Dg(aHc(e));break;case "shortcut":d=aHc(e),_.J(c,2,d)}}return c})},$Gc=function(a){var b=new _.hBc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=dHc(d);_.Qj(b,1,_.gBc[0],c);break;case "drive":c=new _.eBc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);
break;case "title":c.setTitle(f);break;case "root":e=dHc(f),_.J(c,3,e)}}_.Qj(b,5,_.gBc[0],c);break;case "fileComment":c=new _.fBc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.ek(c,1,f);break;case "legacyDiscussionId":_.ek(c,2,f);break;case "linkToDiscussion":_.ek(c,3,f);break;case "parent":c.Dg(dHc(f))}_.Qj(b,3,_.gBc[0],c)}}return b},aHc=function(a){var b=new _.lM;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new rAc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.$c(f);break;case "title":c.setTitle(f);break;case "driveFile":e=c;f=new pAc;_.Qj(e,8,qAc[0],f);break;case "driveFolder":e=eHc(f);_.Qj(c,9,qAc[0],e);break;case "driveShortcut":e=fHc(f),_.Qj(c,10,qAc[0],e)}}_.Qj(b,1,sAc[0],c);break;case "drive":c=gHc(d),_.Qj(b,3,
sAc[0],c)}}return b},dHc=function(a){var b=new _.oAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d);break;case "mimeType":_.ek(b,6,d);break;case "version":_.dk(b,5,d);break;case "owner":c=new kAc;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=hHc(f);_.J(c,3,e);break;case "user":e=
OM(f);_.Qj(c,1,jAc[0],e);break;case "drive":e=gHc(f),_.Qj(c,4,jAc[0],e)}}_.J(b,7,c);break;case "driveFile":c=new pAc;_.Qj(b,8,lAc[0],c);break;case "driveFolder":c=eHc(d);_.Qj(b,9,lAc[0],c);break;case "driveShortcut":c=fHc(d),_.Qj(b,10,lAc[0],c)}}return b},gHc=function(a){var b=new iAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "title":b.setTitle(d)}}return b},eHc=function(a){var b=new mAc;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.fk(b,6,xGc[d])}}return b},fHc=function(a){var b=new nAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "targetName":_.ek(b,1,d);break;case "targetMimeType":_.ek(b,2,d)}}return b},TGc=function(a){return a.map(function(b){return ZGc(b)})},ZGc=function(a){var b=new _.cBc;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=OM(d);_.Qj(b,1,_.bBc[0],c);break;case "anonymous":c=new ZAc;_.Qj(b,2,_.bBc[0],c);break;case "impersonation":c=new _.$Ac;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=OM(f),_.J(c,1,e)}}_.Qj(b,3,_.bBc[0],c);break;case "system":c=new _.aBc;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=
d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.fk(c,1,yGc[f])}_.Qj(b,4,_.bBc[0],c);break;case "administrator":c=new _.YAc,_.Qj(b,5,_.bBc[0],c)}}return b},iHc=function(a){return a.map(function(b){return OM(b)})},OM=function(a){var b=new _.Qzc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.jM;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=
_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.ek(c,1,f);break;case "isCurrentUser":_.Vj(c,2,f);break;case "displayName":_.ek(c,3,f);break;case "photoUrl":c.Hn(f)}}_.Qj(b,2,_.Ozc[0],c);break;case "unknownUser":c=new Rzc;_.Qj(b,4,_.Ozc[0],c);break;case "deletedUser":c=new _.Pzc,_.Qj(b,3,_.Ozc[0],c)}}return b},WGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.S3a((new _.cy).setSeconds(a),b)},XGc=function(a){var b=new _.AM;a=_.m(Object.entries(a));
for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.uY(WGc(d));break;case "endTime":b.MO(WGc(d))}}return b},hHc=function(a){var b=new _.hAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.$c(d);break;case "legacyId":_.ek(b,3,d);break;case "audienceDisplayName":_.ek(b,4,d)}}return b},SGc=function(a){for(var b=new _.qM,c=_.m(Object.entries(a)),
d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.vAc,l=_.m(Object.entries(h)),p=l.next();!p.done;p=l.next()){var q=_.m(p.value),r=q.next().value,v=q.next().value;switch(r){case "new":var z=k,A=new wAc;_.Qj(z,1,_.tAc[0],A);break;case "upload":var D=k,G=new xAc;_.Qj(D,2,_.tAc[0],G);break;case "copy":for(var H=v,L=new _.uAc,N=_.m(Object.entries(H)),R=N.next();!R.done;R=N.next()){var X=_.m(R.value),ia=X.next().value,ja=X.next().value;
switch(ia){case "originalObject":var wa=aHc(ja);_.J(L,1,wa)}}_.Qj(k,3,_.tAc[0],L)}}_.Qj(b,1,_.pM[0],k);break;case "edit":var ha=new CAc;_.Qj(b,2,_.pM[0],ha);break;case "move":for(var Wa=new _.KAc,Ja=_.m(Object.entries(h)),nb=Ja.next();!nb.done;nb=Ja.next()){var $a=_.m(nb.value),yb=$a.next().value,Zb=$a.next().value;switch(yb){case "addedParents":var Gc=bHc(Zb);_.Jj(Wa,1,Gc);break;case "removedParents":var he=bHc(Zb);_.Jj(Wa,2,he);break;case "fromOwnershipTransfer":_.Vj(Wa,3,Zb);break;case "reparents":var Pd=
Zb.map(jHc);_.Jj(Wa,4,Pd);break;case "multiparentingMigration":for(var Ed=Zb,vf=new _.JAc,od=_.m(Object.entries(Ed)),Db=od.next();!Db.done;Db=od.next()){var ie=_.m(Db.value),pg=ie.next().value,Ee=ie.next().value;switch(pg){case "removedParents":var hi=bHc(Ee);_.Jj(vf,2,hi);break;case "migratedParents":var cf=cHc(Ee);_.Jj(vf,1,cf)}}_.J(Wa,5,vf)}}_.Qj(b,3,_.pM[0],Wa);break;case "rename":for(var Di=new _.QAc,dh=_.m(Object.entries(h)),pm=dh.next();!pm.done;pm=dh.next()){var kf=_.m(pm.value),xe=kf.next().value,
Wf=kf.next().value;switch(xe){case "oldTitle":_.ek(Di,1,Wf);break;case "newTitle":_.ek(Di,2,Wf)}}_.Qj(b,4,_.pM[0],Di);break;case "delete":for(var si=new _.AAc,Wj=_.m(Object.entries(h)),qm=Wj.next();!qm.done;qm=Wj.next()){var Io=_.m(qm.value),rm=Io.next().value,Kh=Io.next().value;switch(rm){case "type":_.fk(si,1,zGc[Kh])}}_.Qj(b,5,_.pM[0],si);break;case "restore":for(var Ql=new _.RAc,Xj=_.m(Object.entries(h)),Wg=Xj.next();!Wg.done;Wg=Xj.next()){var Fj=_.m(Wg.value),Gj=Fj.next().value,Yj=Fj.next().value;
switch(Gj){case "type":_.fk(Ql,1,AGc[Yj])}}_.Qj(b,6,_.pM[0],Ql);break;case "permissionChange":for(var Xh=new _.NAc,lj=_.m(Object.entries(h)),Hj=lj.next();!Hj.done;Hj=lj.next()){var $i=_.m(Hj.value),Zj=$i.next().value,Lh=$i.next().value;switch(Zj){case "addedPermissions":var Qm=kHc(Lh);_.Jj(Xh,1,Qm);break;case "removedPermissions":var mj=kHc(Lh);_.Jj(Xh,2,mj);break;case "resharedPermissions":var ak=kHc(Lh);_.Jj(Xh,3,ak);break;case "otherActivePermissions":var ml=kHc(Lh);_.Jj(Xh,4,ml)}}_.Qj(b,7,_.pM[0],
Xh);break;case "comment":for(var bk=new _.gAc,Rm=_.m(Object.entries(h)),nl=Rm.next();!nl.done;nl=Rm.next()){var ol=_.m(nl.value),Bf=ol.next().value,ck=ol.next().value;switch(Bf){case "post":for(var Rl=ck,rk=new _.dAc,Rk=_.m(Object.entries(Rl)),nc=Rk.next();!nc.done;nc=Rk.next()){var nj=_.m(nc.value),Mh=nj.next().value,Sk=nj.next().value;switch(Mh){case "subtype":_.fk(rk,1,CGc[Sk])}}_.Qj(bk,1,_.cAc[0],rk);break;case "assignment":for(var Yh=ck,ii=new _.eAc,cg=_.m(Object.entries(Yh)),sk=cg.next();!sk.done;sk=
cg.next()){var Jo=_.m(sk.value),xh=Jo.next().value,yh=Jo.next().value;switch(xh){case "subtype":_.fk(ii,1,DGc[yh]);break;case "assignedUser":var qn=OM(yh);_.J(ii,7,qn)}}_.Qj(bk,2,_.cAc[0],ii);break;case "suggestion":for(var Ij=ck,Rn=new _.fAc,sm=_.m(Object.entries(Ij)),tk=sm.next();!tk.done;tk=sm.next()){var tm=_.m(tk.value),Sn=tm.next().value,Ko=tm.next().value;switch(Sn){case "subtype":_.fk(Rn,1,EGc[Ko])}}_.Qj(bk,3,_.cAc[0],Rn);break;case "mentionedUsers":var wq=iHc(ck);_.Jj(bk,7,wq)}}_.Qj(b,8,
_.pM[0],bk);break;case "dlpChange":for(var Em=new _.zAc,Fm=_.m(Object.entries(h)),Mj=Fm.next();!Mj.done;Mj=Fm.next()){var $o=_.m(Mj.value),ap=$o.next().value,Nq=$o.next().value;switch(ap){case "type":_.fk(Em,1,FGc[Nq])}}_.Qj(b,9,_.pM[0],Em);break;case "view":for(var Hr=new XAc,Gv=_.m(Object.entries(h)),Qs=Gv.next();!Qs.done;Qs=Gv.next()){var du=_.m(Qs.value),gB=du.next().value,Oy=du.next().value;switch(gB){case "type":_.fk(Hr,1,GGc[Oy]);break;case "viewHistoryVisibility":for(var Py=Oy,Rs=new WAc,
Oq=_.m(Object.entries(Py)),Ir=Oq.next();!Ir.done;Ir=Oq.next()){var hB=_.m(Ir.value),FD=hB.next().value,Hv=hB.next().value;switch(FD){case "domainPolicyVisibilityState":_.fk(Rs,1,HGc[Hv]);break;case "namedPartyState":_.fk(Rs,2,IGc[Hv])}}_.J(Hr,2,Rs)}}_.Qj(b,10,_.pM[0],Hr);break;case "download":for(var Qy=new BAc,Iv=_.m(Object.entries(h)),hx=Iv.next();!hx.done;hx=Iv.next()){var ix=_.m(hx.value),Ss=ix.next().value,eu=ix.next().value;switch(Ss){case "type":_.fk(Qy,1,JGc[eu])}}_.Qj(b,11,_.pM[0],Qy);break;
case "reference":for(var yl=new _.Jzc,Ts=_.m(Object.entries(h)),$l=Ts.next();!$l.done;$l=Ts.next()){var GD=_.m($l.value),iB=GD.next().value,jx=GD.next().value;switch(iB){case "type":_.fk(yl,1,KGc[jx]);break;case "context":for(var dj=jx,HD=new Izc,fu=_.m(Object.entries(dj)),Us=fu.next();!Us.done;Us=fu.next()){var bT=_.m(Us.value),N7=bT.next().value,VJ=bT.next().value;switch(N7){case "description":HD.Jl(VJ);break;case "url":_.ek(HD,2,VJ)}}_.J(yl,2,HD)}}_.Qj(b,12,_.pM[0],yl);break;case "settingsChange":for(var Lg=
new _.UAc,cT=_.m(Object.entries(h)),kx=cT.next();!kx.done;kx=cT.next()){var am=_.m(kx.value),jB=am.next().value,dT=am.next().value;switch(jB){case "restrictionChanges":var uO=lHc(dT);_.Jj(Lg,1,uO)}}_.Qj(b,13,_.pM[0],Lg);break;case "approvalChange":for(var ho=new _.Uzc,$Z=_.m(Object.entries(h)),vO=$Z.next();!vO.done;vO=$Z.next()){var gu=_.m(vO.value),ID=gu.next().value,Ry=gu.next().value;switch(ID){case "approvalName":_.ek(ho,2,Ry);break;case "approvalEventNames":_.Cj(ho,3,Ry);break;case "initiator":var eT=
OM(Ry);_.J(ho,4,eT);break;case "reviewers":var O7=iHc(Ry);_.Jj(ho,5,O7);break;case "status":ho.Bc(NGc[Ry]);break;case "dueTime":var a_=WGc(Ry);_.J(ho,7,a_);break;case "approvalRequested":var Sy=ho,lx=new Vzc;_.Qj(Sy,8,_.kM[0],lx);break;case "approvalCancelled":var WJ=ho,P7=new Wzc;_.Qj(WJ,9,_.kM[0],P7);break;case "reviewerResponded":for(var fT=Ry,wO=new _.Tzc,b_=_.m(Object.entries(fT)),kB=b_.next();!kB.done;kB=b_.next()){var c_=_.m(kB.value),d_=c_.next().value,e_=c_.next().value;switch(d_){case "reviewerDecision":_.fk(wO,
1,OGc[e_])}}_.Qj(ho,10,_.kM[0],wO);break;case "commentAdded":var oB=ho,Yy=new Xzc;_.Qj(oB,11,_.kM[0],Yy);break;case "reviewersChanged":for(var IO=Ry,DG=new Zzc,CT=_.m(Object.entries(IO)),dK=CT.next();!dK.done;dK=CT.next()){var t8=_.m(dK.value),Iza=t8.next().value,u8=t8.next().value;switch(Iza){case "reviewerChanges":var v8=mHc(u8);_.Jj(DG,1,v8)}}_.Qj(ho,12,_.kM[0],DG);break;case "dueTimeChanged":for(var Oqc=Ry,CAb=new aAc,Jza=_.m(Object.entries(Oqc)),Kza=Jza.next();!Kza.done;Kza=Jza.next()){var DAb=
_.m(Kza.value),EAb=DAb.next().value,NZa=DAb.next().value;switch(EAb){case "oldDueTime":var LD=WGc(NZa);_.J(CAb,1,LD)}}_.Qj(ho,13,_.kM[0],CAb)}}_.Qj(b,18,_.pM[0],ho);break;case "lock":var FAb=new EAc;_.Qj(b,15,_.pM[0],FAb);break;case "unlock":var GAb=new VAc;_.Qj(b,16,_.pM[0],GAb);break;case "appliedLabelChange":for(var OZa=new _.Nzc,PZa=_.m(Object.entries(h)),Lza=PZa.next();!Lza.done;Lza=PZa.next()){var QZa=_.m(Lza.value),RZa=QZa.next().value,HAb=QZa.next().value;switch(RZa){case "changes":var IAb=
nHc(HAb);_.Jj(OZa,1,IAb)}}_.Qj(b,19,_.pM[0],OZa);break;case "publishChange":for(var Mza=new _.PAc,JAb=_.m(Object.entries(h)),x_=JAb.next();!x_.done;x_=JAb.next()){var Lia=_.m(x_.value),DT=Lia.next().value,KAb=Lia.next().value;switch(DT){case "oldPublishState":var Pqc=oHc(KAb);_.J(Mza,1,Pqc);break;case "newPublishState":var Qqc=oHc(KAb);_.J(Mza,2,Qqc)}}_.Qj(b,20,_.pM[0],Mza);break;case "linkShareMetadataChange":for(var SZa=new _.DAc,eK=_.m(Object.entries(h)),TZa=eK.next();!TZa.done;TZa=eK.next()){var Nza=
_.m(TZa.value),LAb=Nza.next().value,UZa=Nza.next().value;switch(LAb){case "securityUpdateEnabled":_.Vj(SZa,1,UZa)}}_.Qj(b,21,_.pM[0],SZa)}}return b},jHc=function(a){var b=new _.GAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.fk(b,1,RGc[d])}}return b},kHc=function(a){return a.map(function(b){var c=new _.oM;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;
e=e.next().value;switch(d){case "role":_.fk(c,1,BGc[e]);break;case "user":d=OM(e);_.Qj(c,2,_.nM[0],d);break;case "group":d=new _.mM;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.ek(d,1,h);break;case "title":d.setTitle(h)}}_.Qj(c,3,_.nM[0],d);break;case "domain":d=hHc(e);_.Qj(c,4,_.nM[0],d);break;case "anyone":d=new LAc;_.Qj(c,5,_.nM[0],d);break;case "allowDiscovery":_.Vj(c,6,e)}}return c})},lHc=function(a){return a.map(function(b){var c=
new _.TAc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.fk(c,1,LGc[e]);break;case "newRestriction":_.fk(c,2,MGc[e])}}return c})},mHc=function(a){return a.map(function(b){var c=new $zc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=OM(e);_.J(c,3,d);break;case "addedReviewer":d=OM(e),_.J(c,4,d)}}return c})},
nHc=function(a){return a.map(function(b){var c=new _.Mzc;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":_.ek(c,1,e);break;case "types":d=pHc(e),_.Cj(c,2,d)}}return c})},pHc=function(a){return a.map(function(b){return PGc[b]})},oHc=function(a){var b=new _.OAc;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.fk(b,
1,QGc[d]);break;case "signinRequired":_.Vj(b,2,d);break;case "publishedTime":c=WGc(d),_.J(b,3,c)}}return b};
var rHc=function(a,b){var c=new xBc;b=_.y(c,4,b);a&&"drive#app"==a.kind&&(a=qHc(a),_.J(b,2,a));return b},qHc=function(a){_.NK(["drive#app"],a);var b=(new _.CL).Ob(a.id);b=_.y(b,3,a.useByDefault).$c(a.name);b=_.y(b,7,a.openUrlTemplate);b=Rtc(Qtc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.y(b,8,a.createUrl);b=_.y(b,9,a.createInFolderTemplate);b=_.y(b,10,a.objectType);b=_.y(b,11,a.supportsCreate);b=_.y(b,12,a.supportsImport);b=_.y(b,13,a.supportsMultiOpen);b=_.y(b,27,a.supportsOfflineCreate);b=
_.y(b,14,a.installed);b=_.y(b,15,a.authorized);b=_.y(b,16,a.productUrl);b=_.Cj(b,17,a.primaryFileExtensions);b=_.Cj(b,18,a.secondaryFileExtensions);b=_.y(b,19,a.shortDescription);b=_.y(b,20,a.longDescription);b=_.y(b,21,a.productId);b=_.y(b,22,a.removable);b=_.y(b,23,sHc[a.type]);b=_.y(b,25,a.hasAppData);b=_.y(b,26,a.appDataQuotaBytesUsed);b=_.y(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.y(b,30,a.hasDriveWideScope);b=_.y(b,31,a.driveSource);b=_.y(b,32,a.driveBranded);b=_.y(b,33,a.hidden);b=_.y(b,
34,a.supportsMobileBrowser);b=_.y(b,35,a.supportsTeamDrives);b=_.y(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.Ltc;l=_.y(l,3,k.iconUrl).setSize(k.size);k.category&&_.y(l,1,tHc[k.category]);h.call(f,l)}_.Jj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.Cj(b,24,d);c=a.rankingInfo||{};a=new _.Otc;d=c.absoluteScore;null!=d&&_.y(a,1,Number(d));d=uHc(c.mimeTypeScores||[]);_.Jj(a,2,d);c=uHc(c.fileExtensionScores||[]);
_.Jj(a,3,c);_.J(b,29,a);return b},uHc=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.Mtc;d=_.y(d,1,a[c].type);d=_.y(d,2,Number(a[c].score));b.push(d)}return b},sHc={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},tHc={application:1,document:2,documentShared:3};
var wHc=function(a){var b=new yCc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.rM).Ob(c.id).setTitle(c.title);d=_.y(d,3,_.OK(c.updateTime));d=_.y(d,4,vHc[c.backupSource]);d=_.y(d,5,c.iconUri);d=_.y(d,8,_.OK(c.expiryTime));d=_.y(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.fz()){var e=new jBc;e=_.y(e,1,c.whatsappOngoingBackupEnabled);c=_.y(e,2,c.whatsappPhoneNumber);_.J(d,6,c)}else 2===d.fz()&&(e=new _.iBc,e=_.y(e,1,c.deviceName),e=_.y(e,2,c.deviceModelName),
e=_.y(e,3,c.shouldIncludeSpecialSyncItems),c=_.y(e,4,c.deviceAndroidId),_.J(d,7,c));return d});_.Jj(b,2,a);return b},yHc=function(a){var b=new uCc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.sM).Ob(c.id);d=_.y(d,1,xHc[c.type]).setTitle(c.title);d=_.y(d,4,c.iconUri);d=_.kBc(d.setSize(c.size),_.OK(c.updateTime));d=_.y(d,7,c.hasCustomBehavior).Jl(c.description);return _.y(d,9,c.ongoingSyncEnabled)});_.Jj(b,1,a);return b},vHc={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},xHc={TYPE_UNSPECIFIED:0,TYPE_APP:1,TYPE_SYNC_CALENDAR:2,TYPE_SYNC_CONTACTS:3,TYPE_SYNC_PHOTOS_AND_VIDEOS:4,TYPE_CALL_HISTORY:5,TYPE_DEVICE_SETTINGS:6,TYPE_SMS:7,TYPE_MMS:8};
var zHc=function(a,b){this.H=a;this.O=b};
var AHc={read:2,write:3,comment:4},BHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.qG((new _.cl).Ob(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.aK(d,_.imc(c.userCapabilities));_.oK(b).includes(19)&&_.fic(d,!0);Xxc(a,d,_.oK(b));_.hic(d,4);return d},EHc=function(a,b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=CHc(f.person).Ob(h);(f.childItem||[]).forEach(function(l){e.some(function(r){return r.getId()===h})||e.push(k);var p=l.itemId,q=d.find(function(r){return r.getId()===
p});q||(q=BHc(a,b,l),d.push(q));l=Fqc(Eqc(Dqc(new _.Qna,k.clone()),DHc(l)),l.url);_.Rj(q,107,l,_.Qna,void 0)})}});return vsc((new _.xK).Tw(d),e).vP(c.suggestionSessionId)},CHc=function(a){return _.uhc((new _.Jk).Ob(a.id).$c(a.displayName),a.emailAddress).Hn(a.photoUrl)},GHc=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=BHc(a,b,e);e=FHc(e);f=_.Jj(f,117,e);d.push(f)}});c=(new _.qB).Tw(d).vP(c.suggestionSessionId);return _.Nkc(new _.HK,c)},FHc=function(a){var b=a.action;
return b?b.map(function(c){var d=new _.xna,e=HHc(c);e&&_.Qj(d,2,_.Nk[0],e);(e=IHc(c))&&upc(d,e);(e=JHc(c))&&_.Qj(d,4,_.Nk[0],e);(e=KHc(c))&&_.Qj(d,5,_.Nk[0],e);(e=LHc(c))&&_.Qj(d,6,_.Nk[0],e);(e=MHc(c))&&_.Qj(d,7,_.Nk[0],e);(e=NHc(c))&&_.Qj(d,8,_.Nk[0],e);(e=OHc(c))&&_.Qj(d,9,_.Nk[0],e);(e=PHc(c))&&_.Qj(d,10,_.Nk[0],e);(c=QHc(c))&&_.Qj(d,11,_.Nk[0],c);return d}):(a=PM(a),a=fqc([a]),[upc(new _.xna,a)])},SHc=function(a){return(a.justification||[]).map(function(b){return RHc(b)})},PM=function(a){return(a=
a.justification)?RHc(a):null},RHc=function(a){var b=qpc(new _.Mk,THc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=CHc(c),_.Qj(b,3,_.wna[0],c),rpc(b,[c])):d?(c=(d.person||[]).map(function(e){return CHc(e)}),d=ppc(c),_.Qj(b,4,_.wna[0],d),rpc(b,c)):(c=(a.person||[]).map(function(e){return CHc(e)}),c.length&&(d=ppc(c),_.Qj(b,4,_.wna[0],d),rpc(b,c)));_.y(b,5,_.OK(a.eventTime));spc(b,THc(a.justificationDescription));tpc(b,THc(a.unstructuredJustificationDescription));return b},THc=function(a){if(!a)return null;
a=a.textSegment||[];return mpc(new _.Gk,a.map(function(b){var c=(new _.Hk).nh(b.text),d=b.link;if(d){var e=new _.Ik;d=_.y(e,1,d.url)}else d=null;c=_.J(c,2,d);c=_.y(c,3,b.bold);return _.y(c,4,b.italic)}))},HHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Upc(new _.Dna,PM(a));Tpc(b,(a.subAction||[]).map(function(c){var d=new _.Fna;c.reply?(c=new _.zna,_.Qj(d,1,_.Ena[0],c)):c.resolve?(c=new Cpc,_.Qj(d,2,_.Ena[0],c)):c.reassign?(c=new Apc,_.Qj(d,3,_.Ena[0],c)):c.acceptSuggestion?(c=new vpc,
_.Qj(d,4,_.Ena[0],c)):c.rejectSuggestion?(c=new Bpc,_.Qj(d,5,_.Ena[0],c)):c.openThread&&(c=new _.yna,_.Qj(d,6,_.Ena[0],c));return d}));_.y(b,2,a.discussionId);_.y(b,3,a.postId);Vpc(b,THc(a.anchorText));return b},JHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Ypc(new _.Qk,PM(a));Xpc(b,(a.subAction||[]).map(function(c){var d=new $pc;c.suggestedShare?(c=new Gpc,_.Qj(d,1,Zpc[0],c)):c.responseToRequest&&(c=new Dpc,_.Qj(d,2,Zpc[0],c));return d}));Wpc(b,(a.sharee||[]).map(function(c){return CHc(c)}));
_.y(b,3,AHc[a.shareeRole]);return b},IHc=function(a){a=a.documentViewAction;if(!a)return null;var b=fqc(SHc(a));eqc(b,(a.subAction||[]).map(function(c){var d=new hqc;c.open?d.zg(new xpc):c.reviewEdits&&(c=new Epc,_.Qj(d,2,gqc[0],c));return d}));return b},KHc=function(a){a=a.emailViewAction;if(!a)return null;var b=sqc(new qqc,PM(a));rqc(b,(a.subAction||[]).map(function(c){var d=new uqc;c.openEmail&&d.zg(new ypc);return d}));return b},LHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=
Mpc(Lpc(Kpc(new _.Ok,a.eventId),PM(a)),a.guestCount);Jpc(b,(a.subAction||[]).map(function(c){var d=new Opc;if(c.viewCalendarEvent){var e=new Hpc;_.Qj(d,1,Npc[0],e)}c.shareWithAttendees&&(e=new Fpc,_.Qj(d,2,Npc[0],e));c.present&&(e=new zpc,_.Qj(d,3,Npc[0],e));c.openDocument&&(c=new xpc,_.Qj(d,4,Npc[0],c));return d}));return b},MHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=mqc(lqc(new jqc,a.workspaceId),PM(a));kqc(b,(a.subAction||[]).map(function(c){var d=new oqc;c.addToWorkspace&&
(c=new wpc,_.Qj(d,1,nqc[0],c));return d}));return b},NHc=function(a){a=a.documentTopicAction;if(!a)return null;var b=bqc(new _.Tk,PM(a));aqc(b,(a.subAction||[]).map(function(c){var d=new dqc;c.openDocument&&(c=new xpc,_.Qj(d,1,cqc[0],c));return d}));return b},OHc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=Aqc(new _.Wk,PM(a));zqc(b,(a.subAction||[]).map(function(c){var d=new Cqc;c.openDocument&&(c=new xpc,_.Qj(d,1,Bqc[0],c));return d}));return b},PHc=function(a){a=a.collaboratorActivityAction;
if(!a)return null;var b=Qpc(new _.Pk,PM(a));Ppc(b,(a.subAction||[]).map(function(c){var d=new Spc;c.openDocument&&(c=new xpc,_.Qj(d,1,Rpc[0],c));return d}));return b},QHc=function(a){a=a.formResponseAction;if(!a)return null;var b=wqc(new _.Vk,SHc(a));vqc(b,(a.subAction||[]).map(function(c){var d=new yqc;c.openDocument?(c=new xpc,_.Qj(d,1,xqc[0],c)):c.viewResponses&&(c=new Ipc,_.Qj(d,2,xqc[0],c));return d}));return b},DHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<
a.length?(a[0]||{}).text||"":""};
var UHc=function(a,b){this.H=a;this.O=b},WHc=function(a,b,c){_.NK(["drive#categoryMetadataList"],c);var d=new BL,e=Object.values(c.categoryMetadata||{});Ftc(d,e.map(function(f){return VHc(a,f,b.Ac())}));d.Bc(1);return new _.AK(d,yzc(c))},YHc=function(a,b){var c=new wM;FBc(c,(b.categories||[]).map(function(d){return XHc(a,d)}));c.Bc(1);return new ouc(c,yzc(b))},VHc=function(a,b,c){_.NK(["drive#categoryMetadata"],b);c=Ksc((new wL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);Jsc(c,b.map(function(d){return ZHc(a,
d)}).filter(function(d){return d}));return c},XHc=function(a,b){var c,d=stc(jtc(ptc(otc(ntc(itc(htc((new zL).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).Jl(b.description),_.OK(b.createTime)),_.OK(b.updateTime)),_.OK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){var f=e.type;var h=(new etc).Ob(e.id);h=_.y(h,2,e.queryGuid);h=_.y(h,3,e.helpText);h=_.y(h,4,e.displayName);if(e.attributeDisplayHints){var k=$Hc(e.attributeDisplayHints);_.J(h,5,k)}if(e.capabilities){k=
e.capabilities;var l=new Nsc;l=_.y(l,1,k.canSearch);k=_.y(l,2,k.canWrite);_.J(h,6,k)}_.y(h,7,aIc[f]);e=e[bIc(f)+"Options"];return cIc(a,h,f,e)?h:null}).filter(function(e){return e})),b.customer);b.createdBy&&ktc(d,dIc(b.createdBy));b.updatedBy&&ltc(d,dIc(b.updatedBy));b.publishedBy&&mtc(d,dIc(b.publishedBy));b.displayHints&&qtc(d,$Hc(b.displayHints));b.capabilities&&rtc(d,eIc(b.capabilities));b.learnMoreUri&&_.y(d,15,b.learnMoreUri);return d},ZHc=function(a,b){_.NK(["drive#categoryAttributeValue"],
b);var c=(new uL).Ob(b.id);if(b.userScoped)b=Object.values(b.userScoped),Hsc(c,b.map(function(d){_.NK(["drive#userScopedAttributeValue"],d);var e=new Esc,f=_.PK(a.H,d.scopedUser);e=_.J(e,1,f);return a.Jb(e,d)?e:null}).filter(function(d){return d})),c.RA(9);else if(!a.Jb(c,b))return null;return c},$Hc=function(a){var b=new Msc;b=_.y(b,1,a.disabled);b=_.y(b,2,a.hidden);b=_.y(b,3,a.activatedInAllDrives);return _.y(b,4,!!a.required)},eIc=function(a){var b=new gtc;b=_.y(b,1,a.canSearch);b=_.y(b,2,a.canApply);
b=_.y(b,4,a.canRemove);return _.y(b,3,a.canManageSharedDriveActivation)},cIc=function(a,b,c,d){return fIc(a,function(){gIc(a)[c](b,d)},c,b)},hIc=function(a){a=void 0===a?{}:a;var b=new Qsc;b=_.y(b,1,a.minSize);return _.y(b,2,a.maxSize)},jIc=function(a){var b=new Wsc;Xsc(b,(a.choices||[]).map(function(c){var d=new Vsc;d=_.y(d,1,c.label).Jb(c.value);c.description&&d.Jl(c.description);if(c.capabilities){var e=c.capabilities;var f=new Tsc;f=_.y(f,1,e.canSearch);e=_.y(f,2,e.canSelect);_.J(d,3,e)}c.displayHints&&
(c=c.displayHints,e=new Usc,e=_.y(e,1,c.disabled),e=_.y(e,2,c.hidden),c.badgePriority&&_.y(e,5,c.badgePriority),c.badgeColors&&(f=iIc(c.badgeColors),_.J(e,3,f)),c.darkBadgeColors&&(c=iIc(c.darkBadgeColors),_.J(e,4,c)),_.J(d,4,e));return d}));return b},iIc=function(a){var b=new Lsc;var c=kIc(a.backgroundColor);b=_.J(b,1,c);c=kIc(a.foregroundColor);b=_.J(b,2,c);a=kIc(a.soloColor);return _.J(b,3,a)},kIc=function(a){var b=new _.YC;b=_.Lj(b,1,a.red,0);b=_.Lj(b,2,a.green,0);b=_.Lj(b,3,a.blue,0);a.alpha&&
(a=(new grc).Jb(a.alpha),_.J(b,4,a));return b},lIc=function(a){var b=new $sc;b=_.y(b,1,a.showThousandsSeparator);b=_.y(b,2,a.minValue);return _.y(b,3,a.maxValue)},mIc=function(a){var b=(new _.koa).setYear(a.year).setMonth(a.month);return _.y(b,3,a.day)};UHc.prototype.Jb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.RA(aIc[d]);return fIc(this,function(){nIc(c)[d](a,b[b.valueType])},b.valueType)};
var fIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof btc))return Orc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},dIc=function(a){return _.shc(1).Ob(a.personName.split("/")[1])},bIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},gIc=function(a){return{BOOLEAN:function(b,c){var d=b.J3a;var e=new Rsc;e=_.y(e,1,c.trueLabel);c=_.y(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.Oca(hIc(c))},TEXT_LIST:function(b,c){var d=b.I4a;var e=new Zsc;e=_.y(e,1,c.maxEntries);c=hIc(c.options);c=_.J(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new Psc;d=_.y(d,1,c.minSize);c=_.y(d,2,c.maxSize);return _.Qj(b,10,xL[0],c)},SELECTION:function(b,c){return b.v4a(jIc(c))},SELECTION_LIST:function(b,c){var d=b.u4a;var e=new Ysc;e=_.y(e,1,c.maxEntries);c=jIc(c.options);c=_.J(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.X3a(lIc(c))},INTEGER_LIST:function(b,
c){var d=b.W3a;var e=new atc;e=_.y(e,1,c.maxEntries);c=lIc(c.options);c=_.J(e,2,c);return d.call(b,c)},USER:function(b){return b.N4a(new ctc)},USER_LIST:function(b,c){var d=b.Uoa,e=new dtc;c=_.y(e,1,c.maxEntries);e=new ctc;c=_.J(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.Coa;var e=new Osc;e=_.y(e,4,c.dateFormat);var f=mIc(c.minValue);e=_.J(e,2,f);c=mIc(c.maxValue);c=_.J(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new btc;d=_.y(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.y(d,2,aIc[e]);c=c[bIc(e)+"Options"];cIc(a,d,e,c);return _.Qj(b,16,xL[0],d)}}},nIc=function(a){return{BOOLEAN:function(b,c){return b.setBooleanValue(c)},TEXT:function(b,c){return b.setTextValue(c)},TEXT_LIST:function(b,c){return b.Soa(c)},LONG_TEXT:function(b,c){return b.setLongTextValue(c)},SELECTION:function(b,c){return b.setSelectionValue(c)},SELECTION_LIST:function(b,c){return b.Ooa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Goa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.PK(a.H,c))},USER_LIST:function(b,c){Gsc(b,c.map(function(d){return _.PK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},aIc={BOOLEAN:1,TEXT:2,TEXT_LIST:3,LONG_TEXT:4,SELECTION:5,SELECTION_LIST:6,INTEGER:7,INTEGER_LIST:8,USER_SCOPED:9,USER:10,USER_LIST:11,DATE:12,DATE_STRING:12};
var oIc=function(a,b){this.H=a;this.O=b},sIc=function(a,b){_.NK(["drive#about"],b);var c=new _.zM,d=new _.BB;if(b.user){var e=_.PK(a.H,b.user);_.J(d,1,e)}a=pIc(a,b);a=crc(brc(_.arc(new _.Qub,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.erc(a,_.Nqc(_.Mqc((new _.AB).Bc(qIc[e.status]),Number(e.trialMillisRemaining)),_.OK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.frc(a,_.Sqc(_.Rqc(new _.Lub,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&drc(a,b.importFormats.map(function(f){var h=new _.$qc;h=_.y(h,1,f.source);return _.Cj(h,2,f.targets)}));b.adminSecureLinkSetting&&_.y(a,10,rIc[b.adminSecureLinkSetting]);_.J(d,3,a);_.$Bc(c,d);b=b.largestChangeId;null!=b&&_.y(c,4,Number(b));return c},pIc=function(a,b){var c;var d=new _.Pub;d=_.y(d,1,Number(b.quotaBytesTotal));d=_.y(d,2,Number(b.quotaBytesUsed));d=_.y(d,3,Number(b.quotaBytesUsedAggregate));d=_.y(d,4,Number(b.quotaBytesUsedInTrash));d=_.Wqc(_.Vqc(_.Uqc(_.Tqc(d,
Soc(b.quotaBytesByService||[])),tIc[b.quotaType]),Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-Uoc(b);d=_.y(d,9,e);d=_.Xqc(d,Number(b.quotaBytesUsedAggregate));d=_.y(d,11,Number(b.quotaBytesUsedInTrash));d=_.y(d,13,_.Wnc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Yqc(d,uIc[b.quotaStatus]||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Oub;var f=
_.T3a(new Date(b.graceQuotaInfo.endDate));e=_.J(e,1,f);e=_.y(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.J(d,12,e)}if(null===(c=_.LI(a.O))||void 0===c?0:_.S(c,16,!1)){var h;(a=d.HJ())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);h=_.y(d,16,Number(b.individualQuotaBytesTotal));h=_.y(h,17,_.Wnc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal)));b=_.y(h,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},uIc={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},Toc=new Set(["POOLED_STORAGE","FAMILY"]),qIc={isInTrial:1,hasPaidContract:2,noSubscription:3,trialExpired:4},Roc={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},tIc={LIMITED:1,UNLIMITED:2,POOLED:3},rIc={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var vIc=function(a){a=a.personResponse;return Lvc(new Kvc,a.map(function(b){var c=b.person;b=Hvc(new QL,b.personId);var d=b.$c,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=Ivc(b,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new Gvc;c=_.y(d,1,c&&!c.isDefault?c.url:null);return _.J(b,4,c)}))};
var wIc=function(a){this.H=a},yIc=function(a,b){_.NK(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return xIc(a,c)})},xIc=function(a,b){_.NK(["drive#teamDrive","drive#drive"],b);var c=new _.Vna,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.y(c,2,d);_.y(c,1,b.backgroundImageLink);_.y(c,3,b.trusted);_.y(c,5,b.backgroundImageGridViewLink);_.y(c,6,b.backgroundImageListViewLink);_.y(c,7,b.hidden);_.y(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
Jnc(c,d.map(function(e){_.NK(["drive#driveCategoryReference"],e);var f=new _.bl;return _.y(f,1,e.category)}));c=_.oic(_.mic(_.lic(_.hic(_.iic(Inc(_.qG((new _.cl).Ob(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.Ghc(_.imc(b.capabilities),!0),_.aK(c,d));b.permissionsSummary&&_.jic(c,_.ymc(a.H,b.permissionsSummary));b.restrictions&&Lnc(c,zIc(b.restrictions));return c},zIc=function(a){var b=new Gqc;
b=_.y(b,1,a.copyRequiresWriterPermission);b=_.y(b,2,a.disallowDriveFileStream);b=_.y(b,3,a.domainUsersOnly);return _.y(b,4,a.teamMembersOnly)};
var AIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Zoc=_.Za(AIc);
var BIc=function(a){_.NK(["drive#setting"],a);var b=new _.Sb;b=_.y(b,2,a.key);b=_.y(b,1,AIc[a.namespace]);return _.rBa(new _.op,b).Jb(a.value)};
var DIc=function(a){_.NK(["drive#workspaceList"],a);var b=a.items||[];b=Ovc(new RL,b.map(function(c){return CIc(c)}));return new _.DK(b,yzc(a))},CIc=function(a){_.NK(["drive#workspace"],a);var b=(new _.oG).Ob(a.id).setTitle(a.title);b=_.y(b,3,_.OK(a.createdDate));return _.y(b,4,_.OK(a.modifiedDate)).Id(EIc[a.state])},FIc=function(a,b,c){var d=c.item||[];return _.onc(_.nnc(new _.VK,d.map(function(e){return BHc(a,b,e)})),c.suggestionSessionId)},HIc=function(a,b,c){var d=c.item||[];return Ztc(Ytc(new EL,
d.map(function(e){return GIc(a,b,e)})),c.suggestionSessionId)},GIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return Wtc(Utc(Vtc(Ttc(new DL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return BHc(a,b,f)})),PM(c))},IIc=function(a){var b=new _.Bsc;a.kind&&(a=CIc(a),_.J(b,2,a));b.Bc(1);return b},EIc={active:1,archived:2};
var Voc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var JIc=function(a,b,c,d){_.Jmc.call(this,b);this.Mg=a;this.ka=c;this.O=d;this.W=null;this.ma=new oIc(this.V,b);this.H=new wIc(this.oF);this.ta=new zHc(this.oF,this.H)};_.M(JIc,_.Jmc);var KIc=function(a){a.W||(a.W=new UHc(a.V,a.ka));return a.W};
JIc.prototype.ha=function(a,b){if(a instanceof _.$I)var c=_.qmc(_.Nmc(a));else{if(a instanceof _.aJ)var d=_.QK(this,a,b);else{if(a instanceof _.Ugc)var e=LIc(this,a.request,b);else{if(a instanceof _.bJ)var f=_.QK(this,a,b);else{if(a instanceof _.dJ){if(!b.json)throw _.RK();var h=Htc((new Gtc).Bc(1),xIc(this.H,b.json))}else{if(a instanceof _.cJ)var k=_.QK(this,a,b);else{if(a instanceof _.tK)var l=new xtc;else{if(a instanceof _.fJ)var p=MIc(a,b);else{if(a instanceof _.gJ)var q=rHc(void 0,a.Bh());else{if(a instanceof
_.hJ)var r=new zCc;else{if(a instanceof _.iJ)var v=_.qmc(_.Nmc(a));else{if(a instanceof _.jJ)var z=new vM;else{if(a instanceof _.kJ)var A=_.qmc(_.Nmc(a));else{if(a instanceof _.lJ)var D=_.qmc(_.Nmc(a));else{if(a instanceof _.CD){var G=new yBc,H=a.getKey();var L=_.J(G,4,H)}else{if(a instanceof _.mJ)var N=MIc(a,b);else{if(a instanceof _.pJ)var R=_.qmc(_.Nmc(a));else{if(a instanceof _.Rgc){if(!b.json)throw _.RK();var X=new bDc(b.json.exportJob.id)}else{if(a instanceof _.rJ){if(!b.json)throw _.RK();var ia=
b.json,ja=new tBc,wa=qHc(ia);var ha=_.J(ja,2,wa).Bc(1)}else{if(a instanceof _.sJ)var Wa=NIc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.RK();var Ja=(new vM).Bc(1),nb=_.rmc(this.oF,b.json);var $a=_.J(Ja,2,nb)}else{if(a instanceof _.CI)a:{if(!b.json)throw _.RK();if(a instanceof _.CI){var yb=a.qd();if(yb&&_.uJ(yb)){for(var Zb=this.O,Gc=this.Mg,he=b.json,Pd=[],Ed=_.m(he.item||[]),vf=Ed.next();!vf.done;vf=Ed.next()){var od=vf.value;if(od.driveItem){var Db=new _.Tna,ie=_.y(Db,2,DHc(od));_.S(yb,74,
!1)?_.y(ie,4,!0):_.y(ie,3,!0);var pg=BHc(Zb,Gc,od);var Ee=_.J(pg,100,ie);Pd.push(Ee)}}var hi=(new _.qB).Tw(Pd).vP(he.suggestionSessionId);var cf=_.Nkc(new _.HK,hi);break a}if(yb&&_.vJ(yb)){cf=EHc(this.O,this.Mg,b.json);break a}if(yb&&_.wJ(yb)){cf=GHc(this.O,this.Mg,b.json);break a}}cf=_.nmc(this.oF,b.json,b.headers)}else{if(a instanceof _.xJ){if(!b.json)throw _.RK();var Di=yHc(b.json)}else{if(a instanceof _.yJ){if(!b.json)throw _.RK();var dh=b.json;_.NK(["drive#appList"],dh);for(var pm=new PL,kf=
[],xe=dh.items||[],Wf=0;Wf<xe.length;Wf++)kf.push(qHc(xe[Wf]));var si=_.Jj(pm,2,kf);var Wj=_.Cj(si,4,dh.defaultAppIds).Bc(1)}else{if(a instanceof _.Sgc){if(!b.json)throw _.RK();var qm=wHc(b.json)}else{if(a instanceof _.OI)var Io=OIc(this,b);else{if(a instanceof _.zJ){if(!b.json)throw _.RK();var rm=new wBc,Kh=this.oF,Ql=b.json,Xj=new oL,Wg=_.smc(Kh,Ql,"items");var Fj=_.Jj(Xj,2,Wg);var Gj=_.J(rm,1,Fj);var Yj=_.y(Gj,2,yzc(b.json))}else{if(a instanceof _.AJ){if(!b.json)throw _.RK();var Xh=this.oF,lj=
b.json,Hj=new fsc;_.NK(["drive#revisionList"],lj);for(var $i=[],Zj=lj.items||[],Lh=0;Lh<Zj.length;Lh++){var Qm=_.omc(Xh,Zj[Lh]);$i.push(Qm)}var mj=_.Jj(Hj,2,$i)}else{if(a instanceof _.BJ)var ak=_.QK(this,a,b);else{if(a instanceof _.fI)var ml=PIc(a,b);else{if(a instanceof _.DJ){if(!b.json)throw _.RK();var bk=vIc(b.json)}else{if(a instanceof _.$gc){if(!b.json)throw _.RK();var Rm=YHc(KIc(this),b.json)}else{if(a instanceof _.lG){if(!b.json)throw _.RK();var nl=KIc(this),ol=b.json,Bf=new GBc,ck=XHc(nl,
ol);var Rl=_.J(Bf,2,ck).Bc(1)}else{if(a instanceof _.EJ){if(!b.json)throw _.RK();var rk=b.json;_.NK(["drive#remainingCount"],rk);var Rk=new HBc,nc=rk.nextPageToken;null!=nc&&_.y(Rk,2,Number(nc));_.y(Rk,1,Number(rk.remainingCount));var nj=Rk}else{if(a instanceof _.nG){if(!b.json)throw _.RK();var Mh=(new _.qB).Tw([xIc(this.H,b.json)])}else{if(a instanceof _.OJ){if(!b.json)throw _.RK();var Sk=(new _.qB).Tw(yIc(this.H,b.json)),Yh=_.Nkc(new _.HK,Sk);var ii=_.y(Yh,3,yzc(b.json))}else{if(a instanceof _.IJ)var cg=
NIc(a,b);else{if(a instanceof _.JJ)var sk=LIc(this,a,b);else{if(a instanceof _.MI)var Jo=_.QK(this,a,b);else{if(a instanceof _.KJ)var xh=_.QK(this,a,b);else{if(a instanceof _.LJ)var yh=QIc(this,b);else{if(a instanceof _.DD){if(!b.json)throw _.RK();var qn=BIc(b.json),Ij=new yBc;var Rn=_.J(Ij,3,qn);var sm=qn.getKey();var tk=_.J(Rn,4,sm)}else{if(a instanceof _.MJ)var tm=MIc(a,b);else{if(a instanceof _.xI){if(!b.json)throw _.RK();var Sn=sIc(this.ma,b.json)}else{if(a instanceof _.pG){if(!b.json)throw _.RK();
var Ko=CIc(b.json),wq=new _.yK;wq.MT().set(Ko.getId(),Ko);var Em=wq}else{if(a instanceof _.Tgc){if(!b.json)throw _.RK();for(var Fm=b.json,Mj=new ECc,$o=_.m(Object.entries(Fm)),ap=$o.next();!ap.done;ap=$o.next()){var Nq=_.m(ap.value),Hr=Nq.next().value,Gv=Nq.next().value;switch(Hr){case "nextPageToken":_.ek(Mj,2,Gv);break;case "activities":var Qs=YGc(Gv);_.Jj(Mj,1,Qs)}}var du=Mj}else{if(a instanceof _.Vgc)var gB=QIc(this,b);else{if("undefined"!=typeof _.Zgc&&a instanceof _.Zgc)var Oy=OIc(this,b);else{if(a instanceof
_.Wgc){if(!b.json)throw _.RK();var Py=new aDc}else{if(a instanceof _.Xgc){if(!b.json)throw _.RK();var Rs=Yoc(b)}else{if(a instanceof _.BD){if(!b.json)throw _.RK();var Oq=b.json,Ir=new _.aA;_.NK(["drive#settingList"],Oq);for(var hB=[],FD=Oq.items||[],Hv=0;Hv<FD.length;Hv++){var Qy=BIc(FD[Hv]);Qy&&hB.push(Qy)}var Iv=_.pkb(Ir,hB)}else{if(a instanceof _.cA){if(!b.json)throw _.RK();var hx=HIc(this.O,this.Mg,b.json).Bc(1)}else{if(a instanceof _.mG){if(!b.json)throw _.RK();var ix=FIc(this.O,this.Mg,b.json)}else{if(a instanceof
_.ehc){if(!b.json)throw _.RK();var Ss=b.json;_.NK(["drive#teamDrive"],Ss);var eu=Ss.recursiveFolderCount,yl=Ss.recursiveFileCount,Ts=new lBc;var $l=_.y(Ts,1,yl);var GD=_.y($l,2,eu)}else{if(a instanceof _.dhc)var iB=RIc(b);else{if(a instanceof _.ghc){if(!b.json)throw _.RK();var jx=DIc(b.json)}else jx=a instanceof _.cL?QIc(this,b):null;iB=jx}GD=iB}ix=GD}hx=ix}Iv=hx}Rs=Iv}Py=Rs}Oy=Py}gB=Oy}du=gB}Em=du}Sn=Em}tm=Sn}tk=tm}yh=tk}xh=yh}Jo=xh}sk=Jo}cg=sk}ii=cg}Mh=ii}nj=Mh}Rl=nj}Rm=Rl}bk=Rm}ml=bk}ak=ml}mj=
ak}Yj=mj}Io=Yj}qm=Io}Wj=qm}Di=Wj}cf=Di}$a=cf}Wa=$a}ha=Wa}X=ha}R=X}N=R}L=N}D=L}A=D}z=A}v=z}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var MIc=function(a,b){if(!b.json){if(a instanceof _.mJ)return IIc({});throw _.RK();}return IIc(b.json)},QIc=function(a,b){if(!b.json)throw _.RK();a=xIc(a.H,b.json);return(new _.QJ).Bc(1).setItem(a)},LIc=function(a,b,c){if(!c.json)throw _.RK();return WHc(KIc(a),b,c.json)},NIc=function(a,b){if(!b.json)throw _.RK();return rHc(b.json,a.Bh())},OIc=function(a,b){if(!b.json)throw _.RK();a=a.ta;var c=b.json;_.NK(["drive#about","drive#changeList"],c);b=new Evc;var d=c.nextPageToken;null!=d&&_.y(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.y(b,3,Number(d));if("drive#changeList"==c.kind){_.NK(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.NK(["drive#change"],h);var k=new _.FI;k=_.y(k,1,Number(h.id));h.teamDriveId?(_.jgc(k,h.teamDriveId),_.GI(k,h.teamDriveId)):_.GI(k,h.fileId);h.file?k.setItem(_.kmc(f.H,h.file)):h.teamDrive&&k.setItem(xIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.QI(k);d.push(k)}_.Jj(b,4,d)}return b},RIc=function(a){var b,c;if(!a.json)throw _.RK();
a=a.json;var d=a.result&&a.result.status;d=d&&SIc[d];var e=null!==(c=a.result&&(null===(b=a.result.sourceResults)||void 0===b?void 0:b.map(function(f){var h,k;return YBc(XBc(WBc(new _.VBc,f.sourceId),f.fileCount),null!==(k=null===(h=f.unmovableFileReasons)||void 0===h?void 0:h.map(function(l){var p=new _.TBc;p=_.y(p,1,l.unmovableReason);return _.y(p,2,l.count)}))&&void 0!==k?k:[])})))&&void 0!==c?c:[];return SBc(RBc(QBc(PBc(new xM,yzc(a)),a.processedFileCount).Bc(d),a.result&&a.result.validationToken),
e)},PIc=function(a,b){var c=new BCc;if(_.Sd(a,6).length){var d=[];Xnc(_.Sd(a,6),b.headers).forEach(function(e,f){var h=new _.xdc;e=_.y(h,1,f).Jb(e);d.push(e)});_.Jj(c,1,d)}CCc(c,b.json?JSON.stringify(b.json):b.text);return c},SIc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var UIc=function(a){var b=new _.Vo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(TIc[a]);_.qK(b,c.join(" "))}return b.toString()},VIc={},TIc=(VIc[1]="active",VIc[2]="archived",VIc);
var WIc=function(a,b,c,d){_.SK.call(this,b,c,a.pMa,d);this.ma=a;this.ha=new Ruc(_.oK(c),b)};_.M(WIc,_.SK);
WIc.prototype.V=function(a,b,c){var d=this;try{return _.SK.prototype.V.call(this,a,b,c)}catch(N){}var e=0,f={},h="GET",k={},l=!1,p=!1;if(a instanceof _.aJ){h="POST";var q="admin/files/"+a.getId()+"/migrateToTeamDrive";_.Q(a,3)&&(k.useDomainAdminAccess=!0);k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();_.P(a,4)&&(k.preFlightValidationToken=_.B(a,4));var r=zzc(a);f["content-type"]="application/json";l=p=!0;_.TJ(this.H,[],[a.getId(),a.rk()],this.O,f)}else if(a instanceof _.bJ){h="POST";q=
"files/"+a.Ac()+"/authorize";k.appId=a.Bh();_.Q(a,3)&&(k.propagate=!0);var v=a.ve();p=!0;_.nK(k);_.TJ(this.H,[],[a.Ac()],this.O,f)}else if(a instanceof _.cL)q="drives/"+a.getId(),h="PUT",r={},r=(r.removeSecureLinkUpdateForAllFiles=_.S(a,2,!1),r),f["content-type"]="application/json",k.fields=IL(this.H,[],!0),v=a.ve(),p=!0;else if(a instanceof _.Vgc)h="POST",q="teamdrives/"+a.requestId,k.fields=IL(this.H),r={},r=(r.name=a.request.getTitle(),r),f["content-type"]="application/json",v=a.request.ve(),p=
!0;else if(a instanceof _.fJ)h="POST",q="workspaces",k.fields="kind,id,title,createdDate,modifiedDate,state",r=Czc(a),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.cJ)h="POST",q="files/"+a.getId()+"/copy",k.fields=_.Igc({fields:this.Hg(c),xq:_.VI(_.wI(this.H)),IE:_.BI(this.H)}),k.convert=_.S(a,4,!1),r=Bzc(a),f["content-type"]="application/json",v=a.ve(),a=_.Sd(a,3).concat([a.getId()]),_.TJ(this.H,[],a,this.O,f),p=!0,_.nK(k),_.Zmc(this.H,k);else if(a instanceof _.gJ)h="DELETE",
q="apps/"+a.Bh(),k.appId=a.Bh(),k.deleteAppData=!!_.Q(a,2),v=a.ve(),p=!0;else if(a instanceof _.hJ)h="DELETE",q="backups/"+a.getId(),e=9;else if(a instanceof _.iJ)h="DELETE",q="files/"+a.getId(),v=a.ve(),p=!0,_.nK(k),_.Zmc(this.H,k),_.TJ(this.H,[],[a.getId()],this.O,f);else if(a instanceof _.jJ)h="DELETE",q="files/"+a.Ac()+"/permissions/"+_.B(a,2),v=a.ve(),p=!0,_.nK(k);else if(a instanceof _.kJ)h="DELETE",q="files/"+a.Ac()+"/revisions/"+_.B(a,2),v=a.ve(),p=!0,_.TJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof
_.lJ)h="DELETE",q="teamdrives/"+a.getId(),v=a.ve(),p=!0;else if(a instanceof _.CD)h="DELETE",v=a.getKey(),q="settings/"+_.B(v,2),_.pp(v)&&(k.namespace=Zoc[_.pp(v)]),v=a.ve(),p=!0;else if(a instanceof _.mJ)h="DELETE",q="workspaces/"+a.getId(),v=a.ve(),p=!0;else if(a instanceof _.pJ)h="DELETE",q="files/trash",v=a.qd().ve(),p=!0,_.Zmc(this.H,k);else if(a instanceof _.rJ)q="apps/"+a.Bh(),v=a.ve(),p=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if(a instanceof _.xJ)q="backups/"+a.getId()+"/items",e=9,k.languageCode=iL(_.wI(this.H));else if(a instanceof _.sJ)h="POST",q="apps",k.appId=a.Bh(),v=a.ve(),p=!0;else if(a instanceof _.tJ)h="POST",q="files/"+a.Ac()+"/permissions",k.fields=_.BI(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",k.emailMessage=
_.B(a,5)||"",k.sendNotificationEmail=!_.S(a,6,!1),r={},1==a.zf()?r.role="owner":3==a.zf()?r.role="writer":4==a.zf()?(r.role="reader",r.additionalRoles=["commenter"]):2==a.zf()&&(r.role="reader"),1==a.getType()?r.type="user":2==a.getType()?r.type="group":3==a.getType()?r.type="domain":4==a.getType()?r.type="anyone":5==a.getType()&&(r.type="audience"),a.Za()&&(r.value=a.Za()),r.withLink=!_.S(a,8,!1),f["content-type"]="application/json",v=a.ve(),p=!0,_.nK(k);else if(a instanceof _.Rgc)e=8,h="POST",q=
"/v1/exports",f["content-type"]="application/json",r=_.Sd(a,1).map(function(N){if(_.S(d.H,89,!1)){var R=_.ykc(d.O,N);if(null!==R)return{id:N,resource_key:{resource_key:R}}}return{id:N}}),r={archiveFormat:null,archivePrefix:_.B(a,2),conversions:null,items:r,locale:null};else if(a instanceof _.CI||a instanceof _.tK||a instanceof _.cA||a instanceof _.mG)if(b=a instanceof _.CI?a.qd():a,_.SJ(b)){e=10;h="POST";q="/v1/items";f["content-type"]="application/json";r={};var z=9==_.hK(this.H)?"WEB_MOBILE":"WEB_DESKTOP",
A={};A.applicationType=Zuc(this.H);A.platformType=z;A.languageCode=iL(_.wI(this.H));A.timeZone=(new _.Jt).m$();A.requestType="LIVE_REQUEST";a instanceof _.CI&&(z=a.getOptions())&&_.S(z,10,!1)&&(A.requestType="BACKGROUND_REQUEST");b instanceof _.ff?_.uJ(b)?(Wuc(this.ha)?(A.scenarioType="ONE_PICK",this.Bd.O(106026)):_.S(b,74,!1)?A.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":A.scenarioType="QUICK_ACCESS",2==_.fK(b)&&(Wuc(this.ha)||(A.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),r.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",
stringValue:_.Sd(b,33)[0]}),_.Hl(b).length&&(r.itemType=Yuc(b))):_.vJ(b)?A.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.wJ(b)&&(A.scenarioType="DRIVE_PRIORITY"):b instanceof _.tK?(q="/v1/userfeedback",r.userFeedback=_.Pj(b,_.utc,1).map(function(N){var R=_.C(N,_.AL,2),X={},ia={};ia.feedbackType=Itc[R.getType()];X.item=ia;X.clientInfo=A;switch(N.getFeature()){case 1:A.scenarioType="DRIVE_PRIORITY";ia.itemId=R.Ac();break;case 3:A.scenarioType="QUICK_ACCESS";ia.itemId=R.Ac();break;case 4:A.scenarioType=
"QUICK_ACCESS_FOR_SHARED_FILES";ia.itemId=R.Ac();break;case 2:A.scenarioType="DRIVE_WORKSPACES",ia.itemId=R.Ac(),ia.childItem=_.Pj(R,_.AL,3).map(function(ja){var wa={};wa.itemId=ja.Ac();return wa})}return X})):b instanceof _.cA?A.scenarioType="DRIVE_WORKSPACES":b instanceof _.mG?(A.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",r.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Ip()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.Q(b,5)}]):_.bnc(a);
b instanceof _.tK||(r.maxSuggestions=b.zi(),r.clientInfo=A)}else{v=b.ve();p=!0;q="files";k.q=_.Bjc(b);z=[];var D;(D=_.LI(this.H))&&_.S(D,4,!1)?(D=_.va(this.Hg(c),this.Hg(c,b.O())),_.Da(D)):D=_.xa(this.Hg(c));var G=void 0,H=!1;0<_.Pj(b,_.Cl,5).length&&(G=_.B(this.H.ag(),50),H=!0);k.fields=Anc({fields:D,xq:_.VI(_.wI(this.H)),n7:G||void 0,IE:_.BI(this.H),sAb:H});k.appDataFilter="NO_APP_DATA";0<_.Pj(b,_.cK,25).length&&(k.sources=_.tjc(b));0<b.sB().length&&(k.spaces=_.ujc(b));a.Un()&&(k.pageToken=a.Un());
(a=a.getOptions())&&_.Uj(a,1,1E3)&&(k.maxResults=_.Uj(a,1,1E3));_.S(b,36,!1)&&(k.includeUnsubscribed=!0);_.B(b,43)&&(k.rawUserQuery=_.B(b,43));_.nK(k);k.includeItemsFromAllDrives=_.S(b,66,!0);0<_.Sd(b,33).length&&2==_.fK(b)&&(a=_.Sd(b,33)[0],k.teamDriveId=a,z.push(a));k.corpora=_.ejc[_.fK(b)];_.Q(b,18)&&(_.Ua(k,"corpora"),k.corpus="DOMAIN");a=_.Il(b);D=_.Pj(b,_.wl,35);G=_.Pj(b,_.wl,38);z=z.concat(a.filter(function(N){return!_.S(N,2,!1)}).map(function(N){return N.Za()})).concat(D.map(function(N){return N.Za()})).concat(G.map(function(N){return N.Za()}));
_.TJ(this.H,_.Pj(b,_.El,63),z,this.O,f);Znc(k,b.wc());_.$mc(this.H,k);_.anc(this.H,k);_.C(b,_.Bea,64)&&(a=Hqc(_.C(b,_.Bea,64)),a=_.ob(a,4),k.searchSessionData=a)}else if(a instanceof _.yJ){q="apps";switch(a.getType()){case 1:k.fields=XIc;break;case 2:k.fields=YIc;break;case 4:k.fields=ZIc;break;case 3:e=5,q="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",
k.appQueryScope="all_webstore",b.ku=!0}k.languageCode=iL(_.wI(this.H));0<_.Sd(a,3).length&&(k.appFilterExtensions=_.Sd(a,3).join(","));0<_.Sd(a,4).length&&(k.appFilterMimeTypes=_.Sd(a,4).join(","));v=a.ve();p=!0}else if(a instanceof _.Sgc)q="backups",e=9,k.languageCode=iL(_.wI(this.H));else if(a instanceof _.OI)q="changes",k.includeDeleted=_.S(a,3,!0),k.includeSubscribed=_.S(a,4,!0),k.maxResults=a.UQ(),k.startChangeId=_.B(a,1),k.fields=znc({fields:this.Hg(c),n7:IL(this.H,_.Sd(a,5)),xq:_.VI(_.wI(this.H)),
IE:_.BI(this.H)}),k.appDataFilter="NO_APP_DATA",a.yc()||(k.filters="DRIVE_DATASERVICE"),v=_.Sd(this.H.ag(),31),v.length&&(k.spaces=_.df(v,function(N){return _.Adc[N]}).join(",")),_.nK(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.yc()&&(k.teamDriveId=a.yc()),v=a.ve(),p=!0;else if(a instanceof _.zJ)b=a.qd(),q="files/"+b.getId()+"/permissions",k.fields=_.BI(this.H)?"kind,items(kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken":
"kind,items(kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId),nextPageToken",a.Un()&&(k.pageToken=a.Un()),_.B(a,1)&&(k.maxResults=_.B(a,1)),v=b.ve(),p=!0,_.nK(k),_.$mc(this.H,k),_.anc(this.H,k),_.TJ(this.H,[],[b.getId()],this.O,f);else if(a instanceof _.AJ)k.fields=_.BI(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":
"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",k.maxResults=a.zi(),q="files/"+a.Ac()+"/revisions",v=a.ve(),p=!0,_.TJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof _.BJ)h="POST",q="files/"+(_.B(a,1)||"")+"/migrateToDrive",_.Q(a,3)&&(k.useDomainAdminAccess=!0),k.fields=_.Igc({fields:this.Hg(c),xq:_.VI(_.wI(this.H)),IE:_.BI(this.H)}),k.fileId=_.B(a,1),_.P(a,4)&&(k.preFlightValidationToken=
_.B(a,4)),r=Azc(a),f["content-type"]="application/json",l=p=!0,_.TJ(this.H,[],[_.B(a,1)||"",_.B(a,2)||""],this.O,f);else if(a instanceof _.nG)q="teamdrives/"+a.hn()[0],k.fields=IL(this.H,a.O()),v=a.ve(),p=!0;else if(a instanceof _.dhc)h="POST",q="admin/files/migrateToTeamDrivePreFlight",_.Q(a.request,3)&&(k.useDomainAdminAccess=!0),r=Dzc(a),f["content-type"]="application/json",p=l=!0,_.TJ(this.H,[],_.Sd(a.request,1),this.O,f);else if(a instanceof _.OJ)v=a.qd(),q="teamdrives",k.fields=quc(this.H,v.O()),
k.q=Iuc(v),a.Un()&&(k.pageToken=a.Un()),(v=(v=a.getOptions())&&_.Uj(v,1,1E3))&&(k.maxResults=v),v=a.qd().ve(),p=!0;else if(a instanceof _.ehc)q="teamdrives/"+a.yc(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",p=l=!0;else if(a instanceof _.IJ)h="PUT",q="apps/"+a.Bh(),k.appId=a.Bh(),r={},r.useByDefault=_.Q(a,2),_.Q(a,3)&&(r.hasAppData=!1),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.MI)h="PUT",q="files/"+a.getId(),k.fields=_.Igc({fields:this.Hg(c),xq:_.VI(_.wI(this.H)),
IE:_.BI(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.Q(a,15),k.fileId=a.getId(),_.Sd(a,9).length&&(k.addParents=_.Sd(a,9).join(",")),_.Sd(a,10).length&&(k.removeParents=_.Sd(a,10).join(",")),_.Sd(a,31).length&&(k.addWorkspaces=_.Sd(a,31).join(",")),_.Sd(a,32).length&&(k.removeWorkspaces=_.Sd(a,32).join(",")),null!=_.Q(a,24)&&(k.confirmed=_.Q(a,24)),k.languageCode=iL(_.wI(this.H)),r=Ezc(a),f["content-type"]="application/json",v=a.ve(),p=!0,_.nK(k),this.W(a.getId(),k),_.Q(a,36)?
k.bypassMultiparentingCheck=!0:_.Zmc(this.H,k),b=_.Sd(a,9).concat(_.Sd(a,10)),b.push(a.getId()),_.TJ(this.H,_.Pj(a,_.El,38),b,this.O,f);else if(a instanceof _.KJ)h="PUT",q="files/"+a.Ac()+"/revisions/"+_.B(a,2),r=Fzc(a),f["content-type"]="application/json",v=a.ve(),_.TJ(this.H,[],[a.Ac()],this.O,f);else if(a instanceof _.LJ)q="teamdrives/"+a.getId(),null!=_.Q(a,15)?(h="POST",q+="/"+(_.Q(a,15)?"hide":"unhide")):(h="PUT",r=Gzc(a),f["content-type"]="application/json"),k.fields=IL(this.H),v=a.ve(),p=
!0;else if(a instanceof _.MJ)h="PUT",q="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",r=Hzc(a),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.DD)h="PUT",r=_.C(a,_.op,1),v=r.getKey(),q="settings/"+_.B(v,2),(v=_.pp(v))&&(k.namespace=Zoc[v]),r=$oc(r),f["content-type"]="application/json",v=a.ve(),p=!0;else if(a instanceof _.xI)q="about",k.fields=_.BI(this.H)?"kind,user(kind,id,permissionId,emailAddressFromAccount,domain),quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus":
"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites),graceQuotaInfo,quotaStatus",k.fields=cpc(k.fields,this.H),k.fields=dpc(k.fields,this.H),v=a.ve(),p=!0;else if(a instanceof _.fI){e=11;h=a.Rz();q=a.getUrl();var L=_.B(a,5)||"";_.Pj(a,_.xdc,2).forEach(function(N){f[N.getKey()]=
N.Za()});_.Pj(a,_.xdc,4).forEach(function(N){k[N.getKey()]=N.Za()});_.Q(a,7)&&(b.NJb=!0);_.Q(a,8)&&(b.ku=!0);_.Q(a,9)&&(b.IEa=!0)}else a instanceof _.Ugc?(b=a.request.Ac(),q="files/"+b+"/listCategoryMetadata",v=a.request.ve(),a.pageToken&&(k.pageToken=a.pageToken),a.request.zi()&&(k.maxResults=a.request.zi()),k.fields="kind,nextPageToken,categoryMetadata",_.TJ(this.H,[],[b],this.O,f)):a instanceof _.JJ?(f["content-type"]="application/json",h="POST",b=a.Ac(),q="files/"+b+"/updateCategoryMetadata",
v=a.ve(),r={categoryMetadata:a.KV().map(function(N){var R=_.Pj(N,_.jG,2).map(function(ia){return{id:ia.getId(),userId:ia.ks(),setBooleanValue:_.Q(ia,3),setTextValue:_.B(ia,4),setTextValues:_.Sd(ia,6),addTextValues:_.Sd(ia,5),setLongTextValue:_.B(ia,7),setSelectionValue:_.B(ia,8),setSelectionValues:_.Sd(ia,10),addSelectionValues:_.Sd(ia,9),setIntegerValue:_.B(ia,11),setIntegerValues:_.Sd(ia,13),addIntegerValues:_.Sd(ia,12),setUserValue:_.B(ia,14),setUserValues:_.Sd(ia,16),addUserValues:_.Sd(ia,15),
setDateStringValue:_.B(ia,17)}}),X={categoryName:N.Gm()};R.length?X.categoryAttributeValueDeltas=R:_.Sd(N,4).length?X.revertAttributeIds=_.Sd(N,4):_.Q(N,3)&&(X.removeCategory=_.Q(N,3));return X})},_.TJ(this.H,[],[b],this.O,f)):a instanceof _.DJ?(e=13,q=_.VI(_.wI(this.H))?"/v2/people/public":"/v2/people",k.person_id=a.hn(),k["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],k["merged_person_source_options.included_profile_states"]=
["DASHER_ADMIN_DISABLED"],_.VI(_.wI(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.$gc?(e=12,q="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.zi()&&(k.maxResults=a.request.zi()),a.request.getCustomer()&&(k.customer=a.request.getCustomer()),k.$outputDefaults=!0,k.languageCode=iL(_.wI(this.H))):a instanceof _.lG?(e=12,q="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=
iL(_.wI(this.H))):a instanceof _.dJ?(f["content-type"]="application/json",h="POST",q="drives/"+a.yc()+"/changeCategoryReferences",v=a.ve(),p=!0,k.fields=IL(this.H,[157],!0),r={},b=_.Pj(a,_.bl,2),b.length&&(r.addCategoryReferences=b.map(function(N){return{category:N.Gm()}})),a=_.Pj(a,_.bl,3),a.length&&(r.removeCategoryReferences=a.map(function(N){return N.Gm()}))):a instanceof _.pG?(q="workspaces/"+a.hn()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",v=a.ve(),p=!0):a instanceof _.Tgc?
(e=7,h="POST",q="/v2/activity:query",f["content-type"]="application/json",r={},r.pageSize=a.pageSize,a.pageToken&&(r.pageToken=a.pageToken),b="items/"+a.request.getId(),_.S(a.request,2,!1)?r.ancestorName=b:r.itemName=b,r.consolidationStrategy={legacy:{}},(a=_.LI(this.H))&&_.S(a,13,!1)&&(r.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:MULTIPARENTING_MIGRATION")):a instanceof _.Wgc?(e=8,h="POST",q="/v1/exports/"+a.H+":cancel"):a instanceof _.Xgc?(e=8,q="/v1/exports/"+
a.H):"undefined"!=typeof _.Zgc&&a instanceof _.Zgc?(q="changes",k.fields="kind,largestChangeId",_.nK(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&(k.teamDriveId=a.teamDriveId),v=a.H,p=!0):a instanceof _.BD?(q="settings",v=_.Sd(a,3),k.namespace=apc(v),v=a.ve(),p=!0):a instanceof _.ghc?(q="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.zi()&&(k.maxResults=a.request.zi()),k.q=UIc(a.request),(v=a.request.Bw())&&
1==v.getType()&&(k.orderBy="title"),v=a.request.ve(),p=!0):a instanceof _.EJ?(q="changes/getRemainingCount",k.pageToken=_.B(a,2),_.P(a,3)&&(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.yc()),v=a.ve()):a instanceof _.$I?(f["content-type"]="application/json",h="POST",q="files/"+a.Ac()+"/sendAccessRequest",r={},l=!0):_.bnc(a);p&&_.cnc(c,k);0!=e||l||v&&_.B(v,1)||_.EK(this.Bd,74438989);return _.dnc(this,e,q,k,f,h,v,r,L)};
WIc.prototype.W=function(a,b){a=this.ma.lm.H(a);b.expectedParentIds=a?a.kk().join(","):[]};
var XIc=bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing"),YIc=
bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData"),
ZIc=bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData,appDataQuotaBytesUsed");
var $Ic=function(a,b,c,d,e,f,h,k,l,p,q,r,v,z,A,D,G,H,L,N,R,X,ia){this.qoa=_.Wh();this.mfa=new _.nkc;var ja=new _.Pkc(this.eK.bind(this),function(){return R("w8KrJc")}),wa=new uGc(b.lm),ha=new lGc(ja);c=new dGc(b,f,new ZFc(d,e,c),h,this.qoa.promise,k,l,c,R);d=new tGc(b,p,q,r,v,d,e,D,k);this.O=new _.qkc(a,z);z=new WIc(b,a,k,X);this.qsa=new JIc(k,a,A,D);this.H=xzc(a,new _.cmc(this.O,this.mfa,z,this.qsa,G,H,L),H,A,N,b.lm,this.mfa,this.qoa.promise,L||void 0);this.qoa.resolve(ia?ia:new _.Blc(new vGc,wa,
ha,this.H,ja,c,d,a))};$Ic.prototype.eK=function(){return _.Oa(this.H,function(a){return a.eK()})};var gDc=function(a){var b=new Map,c=Date.now();_.La(a.H,function(d,e){d=hsc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var aJc=function(a,b){var c=this;this.context=a;this.Mg=b;this.ha=null;this.AR=0;this.ka=this.active=!1;this.H=this.ta=null;this.V={};this.Fa=this.Ba=!1;this.Bd=a.Jk();this.W=_.Wh();this.O=a.Lc;this.Ha=_.LI(this.O)||new _.Tfc;b=_.jL(this.O);this.va=new _.wkc(_.Uj(b,2,37500),_.Uj(b,3,6E5));this.ma=a.xQ;_.La(kvc,function(d){c.V[d]=[]});TL(a.Lj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});TL(a.Lj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});TL(a.Lj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.mL().Eg(_.Nf)})};_.g=aJc.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,IM(this.context).addCallback(function(b){a.ma.initialize().jg(function(){a.ha=b;a.setActive(!0)},function(c){c&&Orc(a.context.Uf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.XI(c));a.log("Error initializing dump storage");a.hS()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.dna=function(a){this.active&&(this.AR+=a,this.AR>_.Uj(_.jL(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.dR().eK()||0<b.wf.xI.Jna||b.Ij().Te()||b.nk().Te())||((this.active=a)?(this.W.resolve(),this.H||this.mL().Eg(_.Nf)):(this.W=_.Wh(),_.n.clearTimeout(this.ta)))}};_.g.hS=function(){this.ka=!0};_.g.AWa=function(){return this.H?this.H.promise:_.Th()};
_.g.mL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Wh();_.Zh(this.H.promise,function(){a.H=null});var b=this.Bd.H(106021)||void 0;this.W.promise.then(function(){return rzc(a.context.tD)}).then(function(c){var d=!c;return a.ka?d:_.Vh([bJc(a,3,d,void 0,void 0,b),bJc(a,0,d,void 0,!0,b),bJc(a,1,d,void 0,!0,b),bJc(a,5,d,void 0,!0,b),bJc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.pc("Failed to update dump",void 0,_.XI(e));return _.Uh(e)})},function(){return _.Uh(Error("sg"))}).then(function(c){a.H.resolve(c);
b&&(c=Vrc(b),_.y(c,2,!0),b.vj())},function(c){a.H.reject(c);b&&(c=Vrc(b),_.y(c,2,!1),b.vj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.$h,e=this.Bd.H(106021)||void 0;e&&(Arc(Vrc(e),_.vK(_.Nfc,a)),d.then(function(){var f=Vrc(e);_.y(f,2,!0);e.vj()},function(){var f=Vrc(e);_.y(f,2,!1);e.vj()}));this.W.promise.then(function(){return rzc(c.context.tD)}).then(function(f){f=!f;c.ka?d.callback():_.ci(bJc(c,a,f,b,void 0,e),d)});return d};
var bJc=function(a,b,c,d,e,f){var h=_.fa(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.Zf.Wm();var k=new _.$h;_.bi(h.Zf,function(){_.ci(a.Hu(b,c,d,e,f),k)})}else k=a.Hu(b,c,d,e,f);var l={encrypt:c,Zf:k};a.V[b].push(l);_.bi(k,function(){_.ua(a.V[b],function(p){return l===p})});k.Pg(function(p){a.ma.O.Pf()?a.hS():p instanceof _.pc&&(p=p.O||null,p instanceof _.sI&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.hS());return null});
return k};
aJc.prototype.Hu=function(a,b,c,d,e){var f=this,h=new _.$h;this.W.promise.then(function(){if(3===a)_.ci(cJc(f,c||!1,b,e),h);else{switch(a){case 0:var k=qDc(f.context.XP);break;case 1:k=f.context.RZ.xr();break;case 5:k=dJc(f.context.eE);break;case 6:k=axc(f.context.wf.sq);break;default:h.Hd("Invalid data type to write to storage.");return}if(k){var l=_.Pj(_.jL(f.O),hL,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):oyc(f.ma,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Hd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Hd("Failed to get data to write to dump.")}});return h};
var cJc=function(a,b,c,d){_.n.clearTimeout(a.ta);a.ta=_.n.setTimeout((0,_.u)(a.Ka,a),a.va.Za());if(b&&0===a.AR)return _.ei();a.AR=0;var e=_.Pj(_.jL(a.O),hL,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.ei();var f=[];_.La(juc,function(k){0<k&&(k=eJc(a,k),k.length&&f.push(oyc(a.ma,c?e:null,k,d)))});var h=new _.$h;Promise.all(f).then(function(){a.Fa&&a.context.tD.set(pzc,!0);h.callback()},function(k){return void h.Hd(k)});return h};
aJc.prototype.Ka=function(){_.ZH(this.va);this.update(3,!0)};
var eJc=function(a,b){switch(b){case 1:return[fJc(a)];case 2:var c;b=null===(c=_.LI(a.context.Lc))||void 0===c?void 0:_.S(c,17,!1);c=a.context.wf.Zr;var d=c.H;c=(b=!b||d&&d.YG?d:c.O)?b.ly():[];c=gJc(a,_.Qa(Eoc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Uj(_.jL(a.O),5,2E4)&&(b&&VL(b,!1),c=[]);c=duc(new GL,hJc(c));d=a.context.wf.Zr;a=new Moc;(d=d.H)&&d.YG&&(d=d.ly(),_.y(a,3,d.length));a=_.J(c,11,a);a=iuc(a,2);b&&guc(a,b.LN());b instanceof ZL&&(b=cwc(b),_.Cj(a,14,b));return[a];
case 3:return iJc(a);case 4:return jJc(a);default:throw new _.pc("Unsupported CacheType");}},fJc=function(a){for(var b={},c=[],d=pwc(a.context.wf.Zr,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.ly(),l=gJc(a,Doc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ia(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=auc(new FL,h.qd()),h.H||(_.y(l,2,k),_.J(l,3,p),e=!1),c.push(l)}d=_.Qa(b);a.log("Exporting "+d.length+" initial dump items.");return guc(iuc(fuc(duc(euc(huc((new GL).Au(a.context.Vn()),_.oK(a.Mg)),a.ha.aR(null)),
hJc(d)),c),1),!e)},iJc=function(a){var b=[],c=a.ha;a.context.wf.Zr.eW().forEach(function(d){var e=c.aR(d.yc());if(e){var f=gJc(a,Doc(d.ly()));a.log("Exporting "+f.length+" TD dump items for: "+d.yc());e=guc(iuc(euc(duc(new GL,hJc(f)),e),3),d.LN(d.qd()));d=auc(new FL,d.qd());fuc(e,[d]);b.push(e)}});return b},jJc=function(a){var b={},c=[];a.context.wf.eW().forEach(function(d){1===d.DJ()&&null==_.Q(d.qd(),6)&&(Doc(d.ly()).forEach(function(e){b[e.getId()]=e}),d=buc(auc(new FL,new _.ff),d.qd()),c.push(d))});
return[guc(iuc(fuc(duc(new GL,hJc(Object.values(b))),c),4),!1)]},gJc=function(a,b){b=coc(b);_.Q(a.O,67)&&(b=kJc(b));_.BI(a.O)&&(_.S(a.Ha,9,!1)?dxc(a.context.wf.sq,b)&&(_.EK(a.Bd,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=bxc(a.context.wf.sq,b)):b=bxc(a.context.wf.sq,b));return b.filter(function(c){return 4!==c.hv()})},kJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Rnc(c)?(c=c.clone(),Bnc(c,Qnc),b.push(c)):b.push(c);
return b},hJc=function(a){return a.map(function(b){return b.clone()})};aJc.prototype.log=function(a,b){this.context.Uf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};aJc.prototype.SDa=function(){this.Fa=!0};
var lJc=function(){};_.g=lJc.prototype;_.g.setActive=function(){};_.g.hS=function(){};_.g.update=function(){return _.ei()};_.g.AWa=function(){return _.Th()};_.g.mL=function(){return _.Th()};_.g.dna=function(){};_.g.SDa=function(){};
var fL=function(a,b,c,d){_.xi.call(this);var e=this;this.Aa=a;this.lw=c;this.rootId=null;this.Fa=!0;this.ha=null;this.ma=[];this.va=d||new _.kjc;this.Lc=b.clone();(a=_.LI(this.Lc))&&_.S(a,1,!1)&&_.dI(this.Lc,28);this.Mg=new _.pjc(this.Lc);this.Bm=new Ruc(_.oK(this.Mg),this.Lc);mJc(this);this.DX=new _.Cn;this.rb=_.n.setTimeout(function(){e.Uf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.DX.resolve();e.Jk().O(106020)},1E4);this.QZ=new _.$h;this.Ba=new _.Rjc(_.iK(this.Lc),_.S(this.Lc.ag(),
52,!1));this.connectionState=new _.Kjc(_.iK(this.Lc)?3:1,!_.S(this.Lc.ag(),52,!1));this.Bd=_.gkc(this.Lc,this.Ba,this.connectionState,this.va,this.DX.promise,this.lw);this.nfa=new wvc(this.Bd);this.fQ=new _.$h;nJc(this)};_.M(fL,_.xi);fL.prototype.getEnvironment=function(){return this.lw};fL.prototype.$R=function(){this.Uf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.rb);this.DX.resolve()};
var nJc=function(a){var b=function(){a.Cu().Eg(_.Nf)},c=a.Aa;(c=c&&_.kc(c,_.bm))?_.Se(c,"w",b):_.Sfc()||_.Se(_.n,"unload",b)};fL.prototype.Cu=function(){this.Bd.O(106005);Zrc(this.Bd);var a=this.ma.map(function(b){return b()});_.qa(this.ma);return _.iI(a).then()};var oJc=function(a,b){a.ma.push(b)};_.g=fL.prototype;_.g.Uf=function(){return this.va};_.g.Au=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.QZ.callback(a),a.length&&this.q4a(a,b||null))};_.g.q4a=function(){};
_.g.Vn=function(){return this.rootId};_.g.Jk=function(){return this.Bd};var pJc=function(a){if(!a.ha)throw Error("tg");return a.ha},qJc=function(a,b){a.ha=b};fL.prototype.AB=function(){return this.Fa||this.connectionState.isConnected()};fL.prototype.Ij=function(){return this.Ba};fL.prototype.nk=function(){return this.connectionState};fL.prototype.gNb=function(a){this.fQ.callback(a)};
var mJc=function(a){var b=a.Lc.ag();0===_.Sd(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.y(b,19,3));if(!_.E(b,37,""))throw Error("ug");_.B(b,57)||(a.log("No root URI provided; using prod default."),_.y(b,57,"https://clients6.google.com"));if(_.S(_.jL(a.Lc),9,!1))if(b=_.Pj(_.jL(a.Lc),hL,11),0<b.length){if(!_.B(b[0],1)||!b[0].getKey()&&!_.iK(a.Lc)&&!_.S(a.Lc,10,!1))throw Error("vg");}else _.y(_.jL(a.Lc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.S(_.jL(a.Lc),9,!1)&&(_.iK(a.Lc)||_.S(a.Lc,10,!1)))throw Error("wg");var c=_.wI(a.Lc);b=!(!c||!_.VI(c));c=c&&_.gK(c)||"";if(!b&&!c)throw Error("xg");b&&_.Kj(a.Lc,44);_.Pj(a.Lc,_.ff,44).forEach(function(d){try{Uuc(a.Bm,d)}catch(e){if(e instanceof _.pc&&(d=e.Qg)&&3===d.Xs())throw Error("yg");throw e;}})};fL.prototype.pJ=function(a){this.dispatchEvent(new _.qc(new _.pc(void 0,a)))};fL.prototype.log=function(a){this.Uf().info("drive.ds.sync.ThinContext",a)};
var rJc=function(a,b){this.H=a;this.Me=b};
var sJc=new Set([5,4,1,6,2]),tJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),uJc=function(a,b,c){_.xi.call(this);this.ha=a;this.V=b;this.W=c;this.HF=new Map;this.O=new Map;this.status=6;this.H=null};_.M(uJc,_.xi);
uJc.prototype.gQ=function(a,b,c,d){var e=this;if((d=void 0===d?!1:d)&&!c.length){var f=new Set;a.forEach(function(q){(q=(q=q.getKey())&&_.pp(q))&&f.add(q)});[].concat(_.md(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=sJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.pp(r);r=r&&_.B(r,2);v=k.get(v);r&&v&&v.set(r,vJc(q))});var l=0,p=0;[].concat(_.md(k.keys())).forEach(function(q){var r=k.get(q),v=e.HF.get(q);v?h&&
(r.forEach(function(z){var A=z.getKey();(A=v.get(A&&_.B(A,2)))&&_.Tj(z,A)||l++}),[].concat(_.md(v.values())).forEach(function(z){z=z.getKey();r.has(_.B(z,2))||p++}),e.HF.set(q,r),e.O.set(q,b)):(l+=r.size,e.HF.set(q,r),e.O.set(q,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(p?" (removed "+p+")":""));if(1!==this.status||l){if(h||d)this.status=1,UL(this.V,"px2C2c");UL(this.V,"rkYxSd")}(l||p)&&wJc(this,!h)}};
uJc.prototype.lD=function(){return 0<this.HF.size};var wJc=function(a,b){b||a.H||(a.H=_.n.setTimeout(function(){_.n.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.oi("WPi0i"))};uJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.pp(b);b=b&&_.B(b,2);if(c&&b&&(c=this.HF.get(c))){var d=c.get(b);a=vJc(a);d&&_.Tj(a,d)||(c.set(b,a),wJc(this))}};uJc.prototype.remove=function(a){var b=a&&_.pp(a);a=a&&_.B(a,2);b&&a&&(b=this.HF.get(b))&&b.delete(a)&&wJc(this)};
var dJc=function(a,b){var c=[];(b||[].concat(_.md(a.HF.keys()))).forEach(function(e){(e=a.HF.get(e))&&[].concat(_.md(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.HF.has(e)}):[].concat(_.md(a.HF.keys()));var d=new Asc;_.Jj(d,1,c);_.Cj(d,2,b);return d};
uJc.prototype.LG=function(a){var b=this,c=dJc(this,a),d=new _.aA;d.Bc(this.status);_.pkb(d,_.Pj(c,_.op,1));_.J(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);tJc.has(f)&&Infinity>tJc.get(f)&&(e=f)});return new rJc(d,e)};var vJc=function(a){a=a.clone();a.lh()||a.Jb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var xJc=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},zJc=function(a,b){return yJc(a[b])+(yJc(a[b+1])<<8)+(yJc(a[b+2])<<16)+(yJc(a[b+3])<<24)},yJc=function(a){return 127<a?a-256:a};
var gL=function(a,b,c,d,e,f){fL.call(this,a,b,c,d);var h=this;this.Ta=_.Wh();this.pt=new fwc;this.W=null;this.O=_.Wh();this.Ha=new _.$h;this.i6=null;this.pfa=new txc;this.V=null;this.$a=_.Wh();this.ta=new _.$h;this.QF=new Zxc;this.xz=new Bxc;this.$ga=new $vc;this.X$=new _.Cn;this.Ka=!1;this.ofa=new _.Cn;this.H={};this.ka=null;this.Kb=new _.Me;this.Ma(this.Kb);this.Lj=e?e:new Zvc(this.Uf());this.Jk().W.O=this.Lj;this.LL=_.S(_.jL(b),9,!1)&&epc()?AJc(this,b):null;this.uv=new Kuc(iL(_.wI(b)));this.tD=
BJc(this,this.LL);this.xQ=CJc(this,this.LL,b);this.Ls=DJc(this);this.wf=new MM(this,this.Mg);(a=(a=_.C(this.Lc,_.cl,12))&&a.getId())&&this.Au(a,6);this.XP=new pDc(this.Lc,this.wf.sq,this.Lj,this.Uf(),this.Ls);this.RZ=new vDc(this.Uf(),this.Lj,this.Ls);this.eE=new uJc(this.Uf(),this.Lj,this.Ls);this.yI=new ovc(this.Om(),this.Uf(),function(k){return void h.pJ(k)});this.gz=_.S(this.Lc.ag(),52,!1)?new _.FK(this.nk(),this.Om(),this.Uf(),this.Jk()):null;TL(this.Lj,["mrK8ic"],function(){h.$a.promise.then(function(){aEc(h,
h.V)})});this.qMa=new Vxc(this.Lc);this.SA=new _.Ikc(this.Lc,this.wf.lm);this.rsa=new VFc(this);this.h6=new xxc(this.O.promise,this.Om());this.kb=new zxc(this.Om(),this.h6);this.qfa=new Rxc(this.O.promise,this.Om(),this.Uf(),this.Lc);this.Qa=new $Ic(this.Lc,this.wf,this.pJ.bind(this),this.h6,this.kb,this.Ls,this.pfa,this.Mg,this.Vn.bind(this),this.rsa,this.RZ,this.eE,this.qfa,this.QF,this.Uf(),this.qMa,this.SA,this.yI,this.gz,this.Ij(),this.Wob.bind(this),this.Jk(),f);this.Ta.resolve(this.Qa);this.wJa=
new FFc(this);TL(this.Lj,["BNEDtc"],function(){return h.ofa.resolve()});oJc(this,function(){h.Ls.hS();return _.Th()})};_.M(gL,fL);
var AJc=function(a,b){var c=_.gK(_.wI(b)),d=_.hK(b),e=function(){},f=_.Pj(_.jL(b),hL,11);f=f[0]&&_.B(f[0],1);var h=new Kyc(c,d,_.Uj(_.jL(b),10,0)||0,f||"",_.oK(a.Mg));_.iK(b)?c=ezc(c,d).then(function(l){return l?l:h}):_.S(b,10,!1)&&0<_.Uj(_.jL(b),8,432E6)?(b=EJc(a,c),c=ezc(c,d,b).then(function(l){return l&&(e=function(p){return p.Ll(h).Eg(function(){return null})},!l.ha)?l:h})):c=_.Th(h);var k=new hM(c,a.Uf(),a.Jk());k.initialize().then(function(){return e(k)},function(){return null});return k},EJc=
function(a,b){var c=_.Uj(_.jL(a.Lc),8,432E6);if(!_.iK(a.Lc)&&0<c){a=Math;var d=a.abs;b=_.wma(b);var e=0,f=b.length,h={a:-1640531527,b:-1640531527,c:314159265},k;for(k=f;12<=k;k-=12,e+=12)h.a+=zJc(b,e),h.b+=zJc(b,e+4),h.c+=zJc(b,e+8),xJc(h);h.c+=f;switch(k){case 11:h.c+=b[e+10]<<24;case 10:h.c+=(b[e+9]&255)<<16;case 9:h.c+=(b[e+8]&255)<<8;case 8:h.b+=zJc(b,e+4);h.a+=zJc(b,e);break;case 7:h.b+=(b[e+6]&255)<<16;case 6:h.b+=(b[e+5]&255)<<8;case 5:h.b+=b[e+4]&255;case 4:h.a+=zJc(b,e);break;case 3:h.a+=
(b[e+2]&255)<<16;case 2:h.a+=(b[e+1]&255)<<8;case 1:h.a+=b[e]&255}b=xJc(h);return d.call(a,b)%c}};gL.prototype.Ty=function(a){var b=this;return this.LL?this.LL.Pf()?_.Uh(Error("zg`"+Ryc(this.LL))):rzc(this.tD).then(function(c){var d=b.LL,e=[];e.push(b.Ls.AWa());e.push(a?d.Ll():azc(d));if(a===c)return _.Vh(e).then(function(){return!1});!1===a&&(e.push(Qyc(d)),(c=b.Vn())&&e.push(b.tD.Au(c)));return _.Vh(e).then(function(){return b.tD.Ty(a)},function(){return!1})}):_.Uh(Error("Ag"))};
var CJc=function(a,b,c){var d=null;b&&(d=new iyc(b,c,function(e){a.pJ(e)},a.Jk()),d.initialize());return d},BJc=function(a,b){var c=new qzc(b||void 0);c.Vn().then(function(d){d&&a.Au(d,5)});b&&(rzc(c).then(function(d){a.Ij().Ty(d)}),_.Vh([b.initialize(),a.DX.promise]).then(function(){FJc(a,c)},function(){}));return c},FJc=function(a,b){uzc(b).then(function(c){(!c||c<Date.now()-864E5)&&hzc(_.gK(_.wI(a.Lc)),_.hK(a.Lc),a.Uf()).then(function(d){d&&(d=Date.now(),b.set(ozc,d))},function(){})})},DJc=function(a){if(!a.xQ)return new lJc;
var b=new aJc(a,a.Mg);a.Kb.listen(a.Ij(),"Fb",function(c){return void b.setActive(!c.Te())});a.Kb.listen(a.nk(),[].concat(_.md(Object.values(_.DB))),function(){return void b.setActive(a.nk().isConnected())});return b};gL.prototype.nY=function(a){this.i6=a;this.Ha.callback(a)};var IM=function(a){return a.Ha.Wm()},fDc=function(a){return a.LL?a.LL.Pf():null},GJc=function(a,b){a.Lj.H("NSockf")?UL(a.Lj,b):TL(a.Lj,["NSockf"],function(){UL(a.Lj,b)})};
gL.prototype.q4a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.pt.Au(a),this.Bm.Au(a),6!==b&&1!==b||this.tD.Au(a),GJc(this,"jroI5d"))};gL.prototype.zVa=function(){return this.ta.Wm()};var aEc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.$a.resolve()):a.ta.dg()||(a.ta.callback(b),GJc(a,"T8oKm")))},ADc=function(a){if(!a.W)throw Error("Bg");return a.W};_.g=gL.prototype;_.g.dR=function(){return this.Qa};_.g.Om=function(){return this.Ta.promise.then(function(a){return a.qoa.promise})};
_.g.RDa=function(){this.Ka||(this.Ka=!0,this.X$.resolve(),UL(this.Lj,"aU7Ts"))};_.g.AB=function(){throw Error("Cg");};_.g.Wob=function(a){this.dispatchEvent(a)};var HJc=function(a,b){lFc(a.wf,b)},IJc=function(a,b,c){a.H[b]=c},ZCc=function(a){a.ka||(a.ka=new Hxc(a.O.promise,a.Om(),a.Uf()));return a.ka};
var QM=function(a,b,c){_.xi.call(this);var d=this;this.Fa=a;this.rb=b;this.va=_.Wh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return JJc(d,e)})};_.M(QM,_.xi);var JJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;ML(a.channel,a.Fa,function(c){c=ivc(c);a.F$(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.va.resolve()};QM.prototype.F$=function(){};
QM.prototype.send=function(a,b,c,d){var e=this,f=_.Wh();this.va.promise.then(function(){var h=e.channel;NL(h,e.Fa,evc(new dvc(e.clientId,a,b,d),h.W),function(k){return void KJc(k,a,f,c||function(){})})});return f.promise};var KJc=function(a,b,c,d){a=ivc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.oc,_.HI(d,2),_.II(d,6),_.y(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.pc(void 0,d)))};QM.prototype.log=function(a){this.Ba&&this.Ba.info(this.rb,a)};
var LJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var RM=function(a,b){_.O.call(this);this.V=a;this.va=b;this.Ka=this.UU()};_.M(RM,_.O);RM.prototype.registerService=function(a){var b=this;ML(a,this.V,function(c){return b.Dw(c)})};
RM.prototype.Dw=function(a){var b=this;a=fvc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof gvc)return hvc(f,c);if(f.then)return f.then(function(h){return hvc(h,c)},function(h){h=_.JI(h);return hvc(b.ld(void 0,h),c)})}catch(h){e=_.XI(h)}f=new _.oc;_.HI(f,2);_.II(f,3);_.fq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.y(f,20,e.stack);return hvc(this.ld(void 0,f),c)};
RM.prototype.ld=function(a,b,c){if(a&&!b)return new gvc(a,void 0,c);a=_.JI(b);return new gvc(void 0,a,c)};RM.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&NL(a,this.V,hvc(this.ld(c,d,b),a.W))};
var MJc=function(){this.channels={};this.H=this.O=this.V=0},NJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Pa(a.channels));return c},OJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var PJc=function(a,b){RM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.wf;this.O=this.context.qfa;this.W=ZCc(this.context);this.ka=this.context.h6};_.M(PJc,RM);
PJc.prototype.UU=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.ff);return a.ji(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.pI);return a.ji(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.xA);return a.ji(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.nG);return a.ji(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=eL(c.args[0],!!c.H,_.ff);return a.dk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.pI);return a.dk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.xA);return a.dk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.nG);return a.dk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=eL(c.args[0],!!c.H,_.xA);c=eL(c.args[1],!!c.H,_.xA);return a.ZY(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=eL(c.args[0],!!c.H,_.nG);c=eL(c.args[1],!!c.H,_.nG);return a.ZY(d,e,c)},b["4.7"]=function(c){return a.GF(c)},b["4.8"]=function(c){return a.GF(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.eA);return a.ji(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.pG);return a.ji(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.eA);return a.dk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=eL(c.args[0],!!c.H,_.pG);return a.dk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.xG);return a.ji(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.xG);return a.dk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.cA);return a.ji(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=eL(c.args[0],!!c.H,_.cA);return a.dk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.cA){var d=a.W;rxc(d,d.getKey(c)).refresh()}return a.ld([])},b};PJc.prototype.ji=function(a,b){var c=this,d=new _.Cn;this.H[a]={query:b,mSb:d.promise};b instanceof _.eA?d.resolve(this.O.ji(a,b)):b instanceof _.pG?d.resolve(pxc(this.O,a,b)):b instanceof _.cA?d.resolve(this.W.ji(a,b)):b instanceof _.xG?d.resolve(this.ka.ji(a,b)):d.resolve(this.ha.ji(a,b));return d.promise.then(function(){return c.ld([])})};PJc.prototype.dk=function(a,b){QJc(this,a,b);return this.ld([])};
var QJc=function(a,b,c){delete a.H[b];c instanceof _.eA?a.O.dk(b,c):c instanceof _.pG?qxc(a.O,b,c):c instanceof _.cA?a.W.dk(b,c):c instanceof _.xG?a.ka.dk(b,c):a.ha.dk(b,c)};_.g=PJc.prototype;_.g.ZY=function(a,b,c){QJc(this,a,b);return this.ji(a,c)};_.g.GF=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.ti(a.args[0]);c instanceof _.eA?this.O.ji(b,c):c instanceof _.pG?pxc(this.O,b,c):c instanceof _.cA?this.W.ji(b,c):c instanceof _.xG?this.ka.ji(b,c):this.ha.ji(b,c);return this.ld([])};
_.g.vO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.Tg(a[0]),f=a[1];d.mSb.then(function(h){b instanceof _.DK||b instanceof _.AK?c.update(e,f,[b.response,b.pageToken,b.H,b.Me,h]):(d.query instanceof _.ff?Dnc(d.query.O(),b.wd().filter(function(k){return!JL(k)})):d.query instanceof _.xA&&Dnc(d.query.O(),Object.values(b.eq()).filter(function(k){return k&&!JL(k)})),c.update(e,f,[b,h]))})}};
_.g.NX=function(a,b){if(this.H[a]){var c=a.split(":");a=_.Tg(c[0]);c=c[1];var d=b.error;d.lfa(b.H);this.update(a,c,void 0,d)}};_.g.mA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.Tg(a[0]),a[1],["cacheRefresh"]))};_.g.Z8=function(){};_.g.vka=function(a){if(!this.H[a])throw Error("dg`"+a);return this.H[a].query};var RJc=function(a,b){_.La(a.H,function(c,d){_.Tg(d.split(":")[0])===b&&QJc(a,d,c.query)})};
var SJc=function(a,b,c){QM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.M(SJc,QM);SJc.prototype.cxa=function(a){var b=this;a=new LCc(this.context.Bm,this.context.fQ,this.context.Uf(),this.context.Lc,function(c,d){return b.GF(c,d)},a,this.context.Jk());TJc(this,a);return a};SJc.prototype.fxa=function(a){var b=this;a=new PCc(this.context.Bm,this.context.fQ,this.context.Uf(),function(c,d){return b.GF(c,d)},a,this.context.Lc);TJc(this,a);return a};
var TJc=function(a,b){a.ji(b);_.De(b,function(){a.dk(b);a.send("4.3",[b.qd()],void 0,b.xi())});a.send("4.1",[b.qd()],void 0,b.xi())};_.g=SJc.prototype;_.g.$wa=function(a){var b=this,c=new sL(this.context.Lc,this.context.Bm,this.context.Uf(),this.context.QZ,this.ZY.bind(this),a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.4",[c.qd()],void 0,c.xi())});this.send("4.2",[c.qd()],void 0,c.xi());return c};
_.g.ixa=function(a){var b=this,c=new TCc(a,this,this.context.Lc);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.11",[c.qd()],void 0,c.xi())});this.send("4.9",[c.qd()],void 0,c.xi());return c};_.g.jxa=function(a){var b=this,c=new UCc(this.context,this,a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.12",[c.qd()],void 0,c.xi())});this.send("4.10",[c.qd()],void 0,c.xi());return c};
_.g.mxa=function(a){var b=this,c=new XCc(this.context,a,this);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.15",[c.qd()],void 0,c.xi())});this.send("4.13",[c.qd()],void 0,c.xi());return c};_.g.nxa=function(a){var b=this,c=new OCc(this.context,a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.16",[c.qd()],void 0,c.xi())});this.send("4.14",[c.qd()],void 0,c.xi());return c};
_.g.gxa=function(a){var b=this,c=new SCc(this.context,a,function(){b.send("4.21",[],void 0,c.xi())});this.ji(c);_.De(c,function(){b.dk(c);b.send("4.23",[c.qd()],void 0,c.xi())});this.send("4.22",[c.qd()],void 0,c.xi());return c};_.g.Wwa=function(a){var b=this,c=new JCc(this.context.Ij(),this.context.nk(),this.context.Uf(),function(d,e){return b.GF(d,e)},a);this.ji(c);_.De(c,function(){b.dk(c);b.send("4.19",[c.qd()],void 0,c.xi())});this.send("4.18",[c.qd()],void 0,c.xi());return c};
_.g.ji=function(a){this.H.create(a.xi(),a.qd());this.O[a.xi()]=a};_.g.dk=function(a){OL(this.H,a.xi(),4);delete this.O[a.xi()]};_.g.ZY=function(a,b,c){if(b instanceof _.xA&&c instanceof _.xA)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.nG&&c instanceof _.nG)this.send("4.6",[b,c],void 0,a);else throw Error("Dg");};
_.g.GF=function(a,b){if(!this.O[a])throw Error("dg`"+a);var c=this.O[a];if(c.qd()instanceof _.ff)var d="4.7";else if(c.qd()instanceof _.pI)d="4.8";else if(c.qd()instanceof _.xG)d="4.20";else if(c.qd()instanceof _.eA)d="4.17";else throw Error("Eg");c.qd().ti(b);this.send(d,[b],void 0,a)};
_.g.F$=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new pL(d,d.a7()),a.uB(b),OL(this.H,a.xi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.nW();return}var h=a.qd();if(h instanceof _.ff||h instanceof _.pI)h instanceof _.ff&&_.vJ(h)?e=eL(d,b,_.xK):e=eL(d,b,_.qB);else if(h instanceof _.xA||h instanceof _.nG)b?(e=new _.wK,ssc(e,function(k){return new _.cl(JSON.parse(k))},d)):e=d;else if(h instanceof _.xG)e=new _.AK(eL(d,b,BL),c[f++],c[f++],c[f++]);else if(h instanceof _.eA)e=new _.DK(eL(d,
b,RL),c[f++],c[f++],c[f++]);else if(h instanceof _.pG)e=eL(d,b,_.yK);else if(h instanceof _.cA)e=eL(d,b,EL);else throw Error("Fg");}e&&(b=f,c&&"boolean"===typeof c[b]&&xvc(this.H,a.xi(),!!c[b]),Avc(this.H,a.xi(),e),a.update(e))}};
var SM=function(){_.xi.apply(this,arguments);this.commands=new _.pl;this.ha=this.active=this.lp=!1};_.M(SM,_.xi);SM.prototype.initialize=function(){this.lp||(this.lp=!0,this.V(),this.setActive(!0))};SM.prototype.V=function(){};SM.prototype.setActive=function(a){this.active=a;UJc(this)};var UJc=function(a){if(a.active&&!a.ha){var b=_.ql(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.ql(a.commands))}else a.ha=!0,_.Zh(a.Ba(b),function(){a.ha=!1;UJc(a)})}};SM.prototype.ka=function(){};
SM.prototype.Ba=function(){};SM.prototype.va=function(){return!0};SM.prototype.enqueue=function(a){try{var b=new _.$h;this.commands.enqueue(new VJc(a,b));UJc(this);return b}catch(c){return _.gi(_.XI(c))}};var VJc=function(a,b){this.H=a;this.Zf=b};VJc.prototype.getCommand=function(){return this.H};VJc.prototype.CG=function(){return this.Zf};
var YJc=function(a){SM.call(this);var b=this;this.context=a;this.O=null;this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.context,"VMiG2e",function(){return void WJc(b)});this.H=this.context.wf.sq;_.BI(this.context.Lc)&&this.Pc.listen(this.H,"Kb",this.W);var c=a.Lj;TL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.zj(a.Lc.ag(),17,1)&&(d.push("iuEtc"),TL(c,["mrK8ic"],function(){UL(c,"iuEtc")}));TL(c,d,function(){XJc(b)})};_.M(YJc,SM);YJc.prototype.V=function(){ZJc(this)};
var XJc=function(a){if(1===a.context.XP.qf().Bb())Promise.resolve();else{var b=_.uf(_.wf(new _.tf,!0),301);b=_.yI(new _.xI,b);a.refresh(b).then(null,function(c){c=_.JI(c);_.y(c,21,"Initial account request failed.");a.context.pJ(c)})}},WJc=function(a){var b=_.uf(new _.tf,304);b=_.yI(new _.xI,b);a.refresh(b).then(null,function(){})};
YJc.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.Zh(this.context.Om().then(function(d){return d.Re(a,b)}).then(function(d){var e=d.qf(),f=e.getUser();if(f&&!1===_.Kk(f))d=_.KI(_.wI(c.context.Lc)),d=Error("Gg`"+d+"`"+XK(f)),_.xb(d),_.EK(c.context.Jk(),73301807),d=Promise.reject(d);else{f=c.context.XP;var h=0===f.Xe()?1:6;_.BI(c.context.Lc)&&Uwc(c.H,e);h=rDc(f,e,h);(e=e.getMetadata())&&c.context.Au(_.B(e,2),1);(d=_.B(d,4))&&aEc(c.context,d,!0);h&&c.dispatchEvent(new _.oi("WPi0i"));d=
Promise.resolve(new _.CK(f.qf(),f.Xe(),!1))}return d}).then(function(d){return d},function(d){d=_.JI(d);_.y(d,5,1);return Promise.reject(new _.pc("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
YJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.zD&&(c.zD=b.zD);this.refresh(b.request,c).then(function(e){return a.CG().callback(e)},function(e){return void a.CG().Hd(e)})}else if(b=this.context.XP,c=b.qf(),_.BI(this.context.Lc)){c=c.qf();var d=c.getUser();d=Zwc(this.H,XK(d));Uwc(this.H,c);rDc(b,c,b.Xe())&&this.dispatchEvent(new _.oi("WPi0i"));a.CG().callback(new _.CK(b.qf(),b.Xe(),d))}else c.Bb(),b=new _.CK(c,b.Xe(),!0),a.CG().callback(b)};
var ZJc=function(a){var b=a.context.Lc.ag();_.n.setTimeout(function(){var c=_.uf(new _.tf,306);c=_.yI(new _.xI,c);a.refresh(c).then(function(){ZJc(a)},function(){ZJc(a)})},Math.ceil(_.Uj(b,7,9E5)*Math.random())+_.Uj(b,3,72E5))};YJc.prototype.W=function(a){var b=this.context.XP,c=b.qf().qf();c&&a.getPeople().find(function(d){return _.B(d,1)===XK(c.getUser())})&&(Uwc(this.H,c),rDc(b,c,b.Xe())&&this.dispatchEvent(new _.oi("WPi0i")))};var $Jc=function(a,b,c){this.request=a;this.H=!!b;this.zD=c||null};
var bKc=function(a){SM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.context.RZ,"Qb",_.Bb(this.dispatchEvent,new _.oi("Qb",this)));aKc(this)};_.M(bKc,SM);
var aKc=function(a){var b=a.context.Lj;TL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.iK(a.context.Lc)){var c=_.zj(a.context.Lc.ag(),18,1);TL(b,["NSockf"],function(){1===c?cKc(a):a.setActive(!0)});2===c&&TL(b,["mrK8ic"],function(){a.W||cKc(a)})}},cKc=function(a){var b=new _.tf;_.wf(b,!0);_.uf(b,301);var c=new _.yJ;_.Nrc(c,b);_.y(c,1,1);a.refresh(c).Eg(function(){return null})};
bKc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Wh();this.O=d.promise;_.Zh(this.O,function(){c.O=null;dKc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.yJ;_.y(h,1,this.H);_.Nrc(h,a.ve());this.context.Om().then(function(k){return k.Re(h,b)}).then(function(k){c.error=null;var l=c.context.RZ;l.gQ(k,l.lD()?6:1);d.resolve()},function(k){c.H=e;k=_.CB(k);var l=k.Qg;_.y(l,5,2);f?(_.HI(l,1),k.message="Initial app settings refresh failed.",
_.y(k.Qg,21,"Initial app settings refresh failed."),c.context.pJ(l),c.setActive(!0)):(_.HI(l,2),k.message="Error occurred while loading the latest set of apps.",_.y(k.Qg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};bKc.prototype.va=function(){return!1};
bKc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.mja,f=c.zD?{zD:c.zD}:void 0;if(!eKc(d))return this.context.Om().then(function(l){return l.Re(d,f)}).then(function(l){a.CG().callback(new _.zK(l,1,!1))},function(l){a.CG().Hd(_.XI(l))}),_.Th();c=_.Th();var h=!1;this.O?fKc(this,d.getType())?e=this.O:c=e=new _.Sh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&fKc(this,d.getType())&&!this.error?(h=!0,e=_.Th()):e=this.refresh(d,f);
var k=a.CG();e.then(function(){var l=b.context.RZ;k.callback(new _.zK(l.xr(),l.Xe(),h))},function(l){k.Hd(l)});return c.then()};
var eKc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Sd(a,4),a=_.Sd(a,3),!(b&&b.length)&&!(a&&a.length)):!1},fKc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},dKc=function(a){var b=a.context.Lc.ag(),c=new _.tf;_.uf(c,306);var d=new _.yJ;_.y(d,1,1);_.Nrc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Uj(b,7,9E5)*Math.random())+_.Uj(b,4,72E5))},gKc=function(a,b,c){this.request=a;this.mja=!!b;this.zD=c||null};
var iKc=function(a){SM.call(this);var b=this;this.context=a;this.error=null;this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.context.eE,"WPi0i",function(){return b.dispatchEvent(new _.oi("WPi0i"))});this.H=_.Wh();this.O=_.Sd(this.context.Lc.ag(),30);hKc(this)};_.M(iKc,SM);
var hKc=function(a){var b=a.context.Lj;TL(b,["rkYxSd"],function(){return a.initialize()});TL(b,["px2C2c"],function(){a.context.Uf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.zj(a.context.Lc.ag(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&TL(b,["mrK8ic"],function(){UL(b,"OZvrNc")}));!_.S(a.context.Lc,11,!1)&&_.S(a.context.Lc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.Pj(dJc(a.context.eE),_.op,1).length||(b.H("NSockf")?
UL(b,"DEJoH"):TL(b,["NSockf"],function(){UL(b,"DEJoH")}))},12E3));TL(b,c,function(){if(!b.H("px2C2c")){var e=new _.tf;_.wf(e,!0);_.uf(e,301);var f=new _.BD;_.J(f,1,e);Joc(f,jKc(a));a.query(f).Eg(function(){a.initialize()})}})};iKc.prototype.V=function(){var a="User prefs detected: "+_.Pj(dJc(this.context.eE),_.op,1).length;this.context.Uf().info("drive.ds.sync.userprefs.UserPrefsManager",a);kKc(this)};
iKc.prototype.query=function(a,b){var c=this,d=b?{zD:b}:void 0;return this.context.Om().then(function(e){return e.Re(a,d)}).then(function(e){c.error=null;var f=c.context.eE;f.gQ(_.Pj(e,_.op,3),f.lD()?6:1,_.Sd(a,3))}).then(null,function(e){e=_.CB(e);_.y(e.Qg,5,4);0<c.commands.$b()||c.context.pJ(e.Qg);c.error=e;throw e;})};
iKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.CG(),e=new Set([].concat(_.md(this.context.eE.HF.keys()))),f=_.Sd(c.request,3);f.find(function(h){return!e.has(h)})&&(c.mja=!0);this.error?d.Hd(this.error):c.mja?(Joc(c.request,jKc(this,f)),_.Zh(this.H?this.H.promise:this.query(c.request,c.zD||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var jKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.md(a.O),_.md([].concat(_.md(a.context.eE.HF.keys()))),_.md(b)));return[].concat(_.md(a.values()))};
iKc.prototype.getData=function(a,b,c){b=this.context.eE.LG(b);a.callback(new _.BK(b.H,b.Me,c))};var kKc=function(a){var b=a.context.Lc.ag();_.n.setTimeout(function(){var c=new _.BD,d=new _.tf;_.uf(d,306);_.J(c,1,d);Joc(c,jKc(a));_.Zh(a.query(c).Eg(_.Nf),function(){kKc(a)})},Math.ceil(_.Uj(b,7,9E5)*Math.random())+_.Uj(b,5,72E5))},lKc=function(a,b,c){this.request=a;this.mja=!!b;this.zD=c||null};
var mKc=function(a,b,c,d){RM.call(this,"IS",b);this.context=a;this.Pc=new _.Me(this);this.Ba=_.Wh();this.O=null;this.ha=!1;this.W=null;this.Fa=new eDc(a);Ioc(this.Fa);this.Ma(this.Pc);this.ka=new YJc(a);this.Ma(this.ka);this.Pc.listen(this.ka,"WPi0i",function(){return c(new FCc(1))});this.ma=new bKc(a);this.Ma(this.ma);this.Pc.listen(this.ma,"Qb",function(){return c(new FCc(2))});this.ta=new iKc(a);this.Ma(this.ta);this.Pc.listen(this.ta,"WPi0i",function(){return c(new FCc(4))});this.Ha=d;this.H=
this.context.Om()};_.M(mKc,RM);_.g=mKc.prototype;
_.g.UU=function(){var a={};return a["3.43"]=this.B_.bind(this),a["3.42"]=this.M7.bind(this),a["3.1"]=this.wN.bind(this),a["3.2"]=this.LG.bind(this),a["3.3"]=this.ud.bind(this),a["3.35"]=this.XN.bind(this),a["3.4"]=this.wz.bind(this),a["3.5"]=this.xr.bind(this),a["3.6"]=this.YR.bind(this),a["3.8"]=this.Ll.bind(this),a["3.36"]=this.Ty.bind(this),a["3.9"]=this.jF.bind(this),a["3.10"]=this.wr.bind(this),a["3.11"]=this.baa.bind(this),a["3.12"]=this.q8.bind(this),a["3.13"]=this.dT.bind(this),a["3.14"]=
this.$$.bind(this),a["3.15"]=this.s8.bind(this),a["3.16"]=this.hu.bind(this),a["3.17"]=this.ZCb.bind(this),a["3.18"]=this.cDb.bind(this),a["3.19"]=this.kQ.bind(this),a["3.20"]=this.aDb.bind(this),a["3.25"]=this.$Cb.bind(this),a["3.22"]=this.r8.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Hna.bind(this),a["3.29"]=this.gxb.bind(this),a["3.40"]=this.eDb.bind(this),a["3.33"]=this.fDb.bind(this),a["3.39"]=this.eP.bind(this),a["3.37"]=this.dDb.bind(this),a["3.38"]=this.k$a.bind(this),a["3.41"]=
this.$R.bind(this),a["3.44"]=this.g0.bind(this),a["3.45"]=this.No.bind(this),a["3.46"]=this.N7.bind(this),a};_.g.wN=function(a){var b=this,c=eL(a.args[0],!!a.H,_.xI);a=new $Jc(c,a.args[1],this.context.H[a.clientId]);UL(this.context.Lj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.ld([d.response,d.Me,d.T_])},function(d){return b.ld(void 0,d)})};
_.g.LG=function(a){var b=this,c=eL(a.args[0],!!a.H,_.BD);a=new lKc(c,a.args[1],this.context.H[a.clientId]);UL(this.context.Lj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.ld([d.response,d.Me,d.T_])},function(d){return b.ld(void 0,d)})};
_.g.ud=function(a){var b=this,c=eL(a.args[0],!!a.H,ooc),d=_.C(c,_.$I,16)||_.C(c,_.aJ,1)||_.C(c,_.bJ,2)||_.C(c,_.eJ,3)||_.C(c,_.GK,4)||_.C(c,_.cJ,5)||_.C(c,_.iJ,6)||_.C(c,_.kJ,7)||_.C(c,_.lJ,8)||_.C(c,_.oJ,9)||_.C(c,_.BJ,18)||_.C(c,_.FJ,10)||_.C(c,_.GJ,11)||_.C(c,_.HJ,12)||_.C(c,_.MI,13)||_.C(c,_.KJ,14)||_.C(c,_.LJ,15)||_.C(c,_.cL,17),e=TM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.XN=function(a){var b=this,c=eL(a.args[0],!!a.H,xoc),d=_.C(c,_.fJ,1)||_.C(c,_.mJ,2)||_.C(c,_.MJ,3),e=TM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.wz=function(a){var b=this,c=eL(a.args[0],!!a.H,roc),d=TM(this,a),e=[],f=[];toc(c).forEach(function(h){h instanceof _.$I?e.push(String(h.Ac())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Re(h,d)}))});a=_.iI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Zh(a,function(){return void DFc(b.context.wf)});return a.then(function(h){return b.ld([new doc(e,h)])})};
_.g.xr=function(a){var b=this,c=eL(a.args[0],!!a.H,_.yJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=TM(this,a);a=this.H.then(function(f){return f.Re(c,e)}).then(function(f){return new _.zK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.zK(f.response,f.Me,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new gKc(c,d,this.context.H[a.clientId]),UL(this.context.Lj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.ld([f.response,f.Me,f.T_])},function(f){return b.ld(void 0,
f)})};_.g.YR=function(a){var b=this,c=eL(a.args[0],!!a.H,uoc),d=_.C(c,_.CD,1)||_.C(c,_.DD,2),e=TM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};_.g.Ll=function(a){a=a.args[0];if(this.context.gz)a?_.Ckc(this.context.gz,!0):this.context.nk().Te()&&this.context.gz.vM(!0).then(null,function(){});else try{this.context.Ij().Ll(a)}catch(b){return this.ld(void 0,b)}return this.ld([])};
_.g.Ty=function(a){var b=this,c=a.args[0];return this.context.Ty(c).then(function(d){return d?(b.context.Ij().Ty(c),b.Ha(c),b.context.Ls.mL().Eg(function(){return!c})):_.Th(!c)}).then(function(d){return b.ld([d])},function(d){return b.ld(void 0,d)})};_.g.sync=function(){var a=this;return _.Vh([this.context.X$.promise,this.context.ofa.promise]).then(function(){return a.context.Ls.mL()}).then(function(){return a.ld([])},function(b){return a.ld(void 0,b)})};
_.g.jF=function(){try{var a=this.context.i6;a&&a.koa();this.context.$ga.jF();return this.ld([])}catch(b){return this.ld(void 0,b)}};_.g.$R=function(){this.context.$R();return this.ld([])};_.g.wr=function(a){var b=this,c=eL(a.args[0],!!a.H,_.rJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.baa=function(a){var b=this,c=eL(a.args[0],!!a.H,_.sJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.q8=function(a){var b=this,c=eL(a.args[0],!!a.H,_.gJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.dT=function(a){var b=this,c=eL(a.args[0],!!a.H,_.IJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.$$=function(a){var b=this,c=eL(a.args[0],!!a.H,_.tJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return _.BI(b.context.Lc)?Ywc(b.context.wf.sq,[_.C(e,_.Jk,2)],c.Ac()).then(function(){return e}):e}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.s8=function(a){var b=this,c=eL(a.args[0],!!a.H,_.jJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.hu=function(a){var b=this,c=eL(a.args[0],!!a.H,_.AJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d).then(function(f){return _.BI(b.context.Lc)?Wwc(b.context.wf.sq,f):f})}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.ZCb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.mCc),d=new _.Tgc(c,a.args[1],a.args[2]||void 0),e=TM(this,a);return this.H.then(function(f){return f.Re(d,e)}).then(function(f){return b.ld([f])},function(f){return b.ld(void 0,f)})};
_.g.cDb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.zJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d).then(function(f){return _.BI(b.context.Lc)?Ywc(b.context.wf.sq,_.Pj(f.ld(),_.Jk,2),c.qd().getId()).then(function(){return f}):f})}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.kQ=function(){var a=this;return(_.S(this.context.Lc.ag(),52,!1)?_.Th(nvc(new mvc,0)):this.context.yI.kQ()).then(function(b){return a.ld([b])},function(b){return a.ld(void 0,b)})};
_.g.aDb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.Sgc),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.$Cb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.xJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.r8=function(a){var b=this,c=eL(a.args[0],!!a.H,_.hJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.Hna=function(a){var b=this,c=eL(a.args[0],!!a.H,_.fI),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e,null])},function(e){return b.ld([null,_.JI(e)])})};_.g.gxb=function(){return this.ld([!0])};
_.g.eDb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.mG),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.fDb=function(a){var b=this,c=eL(a.args[0],!!a.H,_.cA),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.B_=function(a){a=eL(a.args[0],!!a.H,_.ff);TEc(this.context.wf,[a]);return this.ld([])};
_.g.M7=function(a){var b=this,c=eL(a.args[0],!!a.H,_.dJ),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.eP=function(a){var b=this,c=eL(a.args[0],!!a.H,_.yM),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return ixc(c,e)}).then(function(e){return b.ld(e)},function(e){return b.ld(void 0,e)})};
_.g.dDb=function(a){var b=this,c=new _.$gc(eL(a.args[0],!!a.H,_.dWb),a.args[1]),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e.response,e.pageToken])},function(e){return b.ld(void 0,e)})};_.g.k$a=function(a){var b=this,c=eL(a.args[0],!!a.H,_.lG),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};
_.g.g0=function(a){var b=this,c=eL(a.args[0],!!a.H,_.tK),d=TM(this,a);return this.H.then(function(e){return e.Re(c,d)}).then(function(e){return b.ld([e])},function(e){return b.ld(void 0,e)})};_.g.No=function(a){var b=a.args.map(function(c){return eL(c,!!a.H,_.FI)});this.context.wf.No(b);DFc(this.context.wf);return this.ld([])};_.g.N7=function(){var a=this,b=this.context.gz;return(b?b.vM():_.Th(_.lkc(0))).then(function(c){return a.ld([c])},function(c){return a.ld(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Wh();this.context.Uf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Lc.Ki());this.Pc.listen(this.context,_.Ac,function(e){e=e.error;var f=e.Qg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):Orc(a.context.Uf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Lj,c=["hVFf7"];_.iK(this.context.Lc)&&c.push("BNEDtc");TL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});TL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){IM(a.context).then(function(e){return void e.start()})};TL(b,["T8oKm","ZA9qG"],function(){return void d()});TL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();UL(b,"NSockf")}return this.O.promise};_.g.tba=function(){return this.Ba.promise};_.g.Cu=function(){var a=this.context.i6;a&&a.dispose();return this.context.Cu()};
var TM=function(a,b){return(a=a.context.H[b.clientId])?{zD:a}:{}};
var nKc=function(a,b,c){RM.call(this,"DU",b);this.context=a;this.O=c;this.H=new eDc(a)};_.M(nKc,RM);_.g=nKc.prototype;
_.g.UU=function(){var a=this,b={};return b["5.1"]=function(){return a.Qha()},b["5.2"]=function(c){return a.SM(c)},b["5.4"]=function(c){return a.Jz(c)},b["5.5"]=function(){return a.eR()},b["5.10"]=function(){return a.sN()},b["5.6"]=function(){return a.ida()},b["5.7"]=function(){return a.QS()},b["5.9"]=function(c){return a.Mpa(c)},b["5.8"]=function(c){return a.d5(c)},b["5.11"]=function(){return a.jpa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Ll(c)},b};
_.g.Qha=function(){var a=this;this.context.Ls.hS();var b=this.context.Lc;return izc(_.gK(_.wI(b)),_.hK(b),this.context.Uf()).Eg(function(){}).then(function(){return a.ld([])})};_.g.SM=function(a){a=this.context.wf.lm.H(a.args[0]);return this.ld([a])};_.g.Jz=function(a){var b=this;return this.context.SA.Jz(a.args[0]).then(function(c){return b.ld([c])})};_.g.eR=function(){return this.ld(this.context.SA.eR())};
_.g.d5=function(a){var b=this,c=eL(a.args[0],!!a.H,_.tfc),d=a.args[1],e=a.args[2];if(_.C(c,_.CI,3)||_.C(c,_.OJ,4)||_.C(c,_.GK,5)||_.C(c,_.LJ,6)||_.C(c,_.lJ,7)||_.C(c,_.eJ,8)||_.C(c,_.iJ,9)||_.C(c,_.MI,10)){var f=uvc(c);return this.context.Om().then(function(h){return h.Re(f,{s6a:d,t6a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.HK){k=h.ld().wd();var p=_.B(h,2);l=h.Un()}else if(h instanceof _.QJ)h.getItem()&&k.push(h.getItem()),p=h.aN();else{h=b.ld(void 0,Error("fg"));break a}h=b.ld([p,
l].concat(_.md(k)))}return h},function(h){return b.ld(void 0,h)})}return _.Th(this.ld(void 0,Error("eg")))};_.g.Mpa=function(){var a=this.context.Lc,b=a.ag();a="email:"+_.wI(a).getEmail().replace(/@.*$/,"");_.y(b,13,a);return this.ld([])};_.g.ida=function(){this.context.QF.H=new Yxc(_.Sg().substring(0,8));return this.ld([])};_.g.QS=function(){var a=this.context.QF.sN();if(a){var b=$xc(this.context.QF);a=[a.Bda,a.startTime].concat(_.md(b))}else a=[];b=this.context.QF;b.H=null;b.GY=[];return this.ld(a)};
_.g.sN=function(){var a=this.context.QF.sN();return this.ld(a?[a.Bda,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.ld([b])})};_.g.jpa=function(){var a=[this.O.Cu(),_.Bi(3E4)];_.Zh(_.Tja(a),function(){_.n.setTimeout(function(){self.close()})});return this.ld([])};_.g.Ll=function(a){this.H.Ll(a.args[0]);return this.ld([])};
var oKc=function(a,b,c,d,e,f,h){_.TK.call(this,a,b,c,d,f,h);this.H=e;this.Bd=null};_.M(oKc,_.TK);oKc.prototype.CM=function(a,b){var c=this;return _.fi(this.H.then(function(d){return d.H2a(tnc(c.O,c.va,a,b,c.hj,c.ha))},null))};oKc.prototype.ma=function(a,b){var c=this.qd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Jz();e&&(d=_.B(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.Okc(a,b,d))}};
var pKc=function(a,b,c,d,e,f,h,k){RM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Bd=h;this.H={};this.O={};this.Pc=new _.Me(this);this.Ma(this.Pc)};_.M(pKc,RM);_.g=pKc.prototype;
_.g.UU=function(){var a=this,b={};return b["7.1"]=function(c){return a.upload(c)},b["7.2"]=function(c){return a.cancel(c)},b["7.3"]=function(c){return a.hG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.CM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.ld([])},b["7.7"]=function(c){c=c.args;var d=c[0];a.O[d].resolve(null!=c[1]?c[1]:null);delete a.O[d];return a.ld([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=eL(a.args[0],!!a.H,_.eJ),e=a.args[1];if(!this.H[c]){var f=new oKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Bd);this.Pc.listen(f,"Lb",_.Bb(this.l$a,a.clientId,a.requestId));this.Ma(f);this.H[c]=f}return this.H[c].upload(d,e,void 0,function(h,k){var l=a.clientId,p=a.requestId,q=d.dj(),r=_.Wh();b.O[q]=r;b.update(l,p,qKc(3,q,[h,k]));return r.promise}).then(function(h){return b.ld([h])},function(h){return b.ld(void 0,h)})};
_.g.cancel=function(a){var b=a.clientId+":"+a.requestId;this.H[b]&&this.H[b].cancel(a.args[0]);return this.ld([])};_.g.hG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].hG();return this.ld([])};
_.g.retry=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c;if(this.H[d]){var e=a.args[0],f=a.args.slice(1),h=this.H[d].retry(f),k={},l=0;_.Ia(f,function(p){k[p]=h[l++]});_.La(k,function(p,q){p.jg(function(r){b.update(a.clientId,c,qKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,qKc(1,e,[q,r.Qg]))})});return this.ld([])}return this.ld(void 0,_.JI("Could not retry upload."))};
_.g.CM=function(a){var b=a.clientId+":"+a.requestId,c=a.args[0];a=a.args.slice(1);return this.H[b]?(b=this.H[b],c=tnc(b.O,b.va,c,a,b.hj,b.ha),this.ld([Aoc(c)])):this.ld(void 0,_.JI("FileUploader not found."))};_.g.l$a=function(a,b,c){this.update(a,b,qKc(2,c.requestId,[c.progress,c.totalBytes]))};var qKc=function(a,b,c){return[Number(a),b].concat(_.md(c))};
var rKc=function(a,b){RM.call(this,"IE",b);this.O=a;this.H=new Map};_.M(rKc,RM);rKc.prototype.UU=function(){var a=this,b={};return b["9.1"]=function(c){return a.export(c)},b["9.2"]=function(c){return a.cancel(c)},b};
rKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=eL(a.args[0],!!a.H,_.Rgc);e=new DM(this.O,e);var f=_.Be(e,"Pb",function(h){b.update(a.clientId,c,[h.aPa,h.Sta])});_.De(e,function(){_.vi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.ld([h])},function(h){return b.ld(void 0,h)})};rKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.ld([])};
var sKc=function(a,b){RM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Wh();this.O=new jDc(a,a.Mg)};_.M(sKc,RM);sKc.prototype.UU=function(){var a=this,b={};return b["6.1"]=function(c){return tKc(a,c)},b["6.2"]=function(c){return uKc(a,c)},b["6.3"]=function(){a.H&&(mDc(a.O),a.H=!1,a.W=_.Wh());return a.ld([])},b};
var tKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return eL(d,!!b.H,_.cl)});a.O.ql(c);UL(a.context.Lj,"GZTDpc");a.W.resolve()}return a.ld([])},uKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return eL(d,!!b.H,_.FI)});lDc(a.O,c);return a.ld([])})};
var vKc=function(){var a=this;this.services=new Map;"IS LRM DU ODS FU IE TM".split(" ").forEach(function(b){if(a.services.has(b))throw Error("Hg`"+b);a.services.set(b,new _.$h)})};vKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.dg())b.callback(a);else throw Error("Ig`"+a.V);};var wKc=function(a,b){a=_.m(a.services);for(var c=a.next();!c.done;c=a.next())c=_.m(c.value),c.next(),c.next().value.addCallback(function(d){d.registerService(b)})};vKc.prototype.zo=function(){return[].concat(_.md(this.services.values())).every(function(a){return a.dg()})};
var xKc=function(){},yKc={0:2E3,1:3E3,2:5E3},zKc=function(a,b){this.request=a;this.ha=b;this.O=_.Wh();this.continuationToken="";this.V=0;this.zE=this.W=!1;this.H=xKc};zKc.prototype.ah=function(a){var b=this;this.W||(this.W=!0,this.sendRequest());a&&(this.H=a);return this.O.promise.then(function(c){b.H=xKc;b.V=0;return c},function(c){b.H=xKc;b.V=0;return Promise.reject(c)})};
zKc.prototype.sendRequest=function(){var a=this;if(this.zE)this.O.resolve((new xM).Bc(8));else{var b=new _.dhc(this.request,this.continuationToken);this.ha.then(function(c){return c.Re(b)}).then(function(c){AKc(a,c)},function(c){a.handleError(c)})}};var AKc=function(a,b){var c;a.continuationToken=null!==(c=b.Un())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},BKc(a.V++,a.ka)):a.O.resolve(b)};zKc.prototype.handleError=function(a){a=_.CB(a);this.O.reject(a)};
zKc.prototype.cancel=function(){this.zE=!0};var BKc=function(a,b){return b?b:(a=yKc[a])?a:1E4};
var CKc=function(a,b){RM.call(this,"TM",b);this.O=a;this.H=new Map};_.M(CKc,RM);CKc.prototype.UU=function(){var a=this,b={};return b["10.1"]=function(c){return DKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var DKc=function(a,b){var c=b.clientId+":"+b.requestId,d=eL(b.args[0],!!b.H,_.NBc);d=new zKc(d,a.O);a.H.set(c,d);return _.Zh(d.ah(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.ld([e])},function(e){return a.ld(void 0,e)}),function(){a.H.delete(c)})};CKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.ld([])};
var UM=function(a,b,c){_.O.call(this);this.H=a;this.lw=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ka=_.Wh();this.W=!1;this.Ba=_.Wh();this.O=_.Wh();this.ta=null;this.va=this.Ta=!1;this.Ab=_.Wh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.Xy=Date.now();this.services=new vKc;this.Kb=new _.Me(this);this.Ma(this.Kb)};_.M(UM,_.O);UM.prototype.nY=function(a){this.O.promise.then(function(b){b.i6||a.FMa(b)})};
var HKc=function(a,b){var c=NJc(a.H,b),d=a.Rb.bind(a,c);ML(b,"8.1",d);b.registerService("8.1",d);ML(b,"8.4",a.Qa.bind(a,c));b.registerService("8.5",function(f){return EKc(a,c,f)});ML(b,"8.2",a.Gb.bind(a,c));ML(b,"8.3",a.Nb.bind(a,c));wKc(a.services,b);b.start();FKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Vh([a.Ka.promise,a.Ba.promise]).then((0,_.u)(a.initialize,a)));e.push(a.ta);_.Vh(e).then(function(){return void GKc(a,c,b)},function(f){a.Ta=!0;NL(b,"2.2",{err:_.JI(f).Jc()},d)})},IKc=function(a){return Math.floor((Date.now()-
a.Xy)/1E3)},JKc=function(a,b,c){var d=function(e){NL(b,"2.8",{au:"nb"===e.type})};a.Kb.listen(c.yI,["nb","ob"],d);_.De(b,a.Kb.Wc.bind(a.Kb,c.yI,["nb","ob"],d))},KKc=function(a,b,c){var d=c.nk(),e=[].concat(_.md(Object.values(_.DB))),f=function(h){NL(b,"2.19",{cs:h.connectionState})};a.Kb.listen(d,e,f);_.De(b,function(){a.Kb.Wc(d,e,f)})};
UM.prototype.Rb=function(a){var b=OJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){RJc(d,a)}),b.dispose(),this.log(_.yt("Client %d disconnected (num clients remaining: %d)",a,_.Pa(this.H.channels))),0===_.Pa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.Zh(d.Cu(),c)})}};
UM.prototype.Qa=function(a,b){if(this.ha.has(a))return _.Th();var c=new _.Wb(JSON.parse(b.dsc));_.y(c,24,!1);this.Ha||(this.Ha=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){IJc(d,a,_.E(c.ag(),37,""));HJc(d,_.Sd(c,28));d.wf.ola(_.Pj(c,_.El,91));return d.DX.promise.then(function(){TEc(d.wf,_.Pj(c,_.ff,44))})},function(){})};
UM.prototype.Gb=function(a,b){var c=this;if(!this.ma.has(a)){this.ma.add(a);var d=b.ivd;d&&this.O.promise.then(function(e){e=new $Dc(e,e.Mg);e.ah(d);e.dispose();(e=c.H.channels[a]||null)&&NL(e,"2.16")})}};UM.prototype.Nb=function(a,b){var c=this;this.V.has(a)||this.V.set(a,new Set);var d=this.V.get(a),e=b.dsp;if(e){var f=[];for(b=0;b<e.length;b++)e[b]&&(d.has(b)?e[b]=void 0:(f.push(b),d.add(b)));f.length&&this.O.promise.then(function(h){LKc(new DEc(h),e);(h=c.H.channels[a]||null)&&NL(h,"2.17",{t:f})})}};
var LKc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.ah(c)});a.dispose()};UM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Qa(this.H.channels)),d=c.next();!d.done;b={fea:b.fea,Iea:b.Iea},d=c.next())b.fea=d.value,b.Iea=_.Wh(),NL(b.fea,"2.12",void 0,function(e){return function(){e.fea.dispose();e.Iea.resolve()}}(b)),a.push(b.Iea.promise);return _.Vh(a).then()};
UM.prototype.initialize=function(a){var b=this;a=a[0];_.wic(a,this.fields);var c=_.C(a,_.SI,58);c=c&&_.S(c,1,!1)?this.kb:void 0;try{var d=new gL(null,a,this.lw,c,void 0,void 0),e=d.Jk().H(106E3);oJc(d,this.$a.bind(this));this.Kb.listen(d.Ij(),"Fb",function(k){k={os:k.Te()};for(var l=_.m(_.Qa(b.H.channels)),p=l.next();!p.done;p=l.next())NL(p.value,"2.6",k)});this.Kb.listen(d,_.Ac,this.rb);this.Kb.listen(d,"w8KrJc",this.Hc);rvc(d.yI,this.ka.bind(this));var f=d.gz;f&&csc(f,function(){return b.ka()});
this.O.resolve(d);var h=MKc(this,d,new mKc(d,this.H,(0,_.u)(this.oc,this),(0,_.u)(this.zc,this)));e&&h.then(function(){return e&&e.vj()});return h}catch(k){return _.Uh(k)}};
var MKc=function(a,b,c){a.services.activate(c);a.services.activate(new PJc(b,a.H));a.services.activate(new nKc(b,a.H,c));a.services.activate(new sKc(b,a.H));a.services.activate(new pKc(b.Lc,b.SA,b.dR().mfa,b.Om(),b.fQ,b.Uf(),b.Jk(),a.H));a.services.activate(new rKc(b.Om(),a.H));a.services.activate(new CKc(b.Om(),a.H));return c.initialize()},GKc=function(a,b,c){var d=_.Pa(a.H.channels);a.log(_.yt("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));NL(c,"2.2",{id:b,
clients:d,uptimeSec:IKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.QZ.addCallback(function(f){c.isDisposed()||NL(c,"2.5",{id:f})});1<d&&IM(e).addCallback(function(f){return f.swa()});(a.services.services.get("IS")||null).addCallback(function(f){f.tba().then(function(){c.isDisposed()||NL(c,"2.14")})});JKc(a,c,e);KKc(a,c,e)})};UM.prototype.oc=function(a){a={dt:a.dataType};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())NL(c.value,"2.15",a)};
UM.prototype.zc=function(a){var b={oois:a};_.Qa(this.H.channels).forEach(function(c){NL(c,"2.18",b)})};UM.prototype.rb=function(a){a={p:a.error.Qg.Jc()};for(var b=_.m(_.Qa(this.H.channels)),c=b.next();!c.done;c=b.next())NL(c.value,"2.10",a)};UM.prototype.Hc=function(){for(var a=_.m(_.Qa(this.H.channels)),b=a.next();!b.done;b=a.next())NL(b.value,"2.7")};var FKc=function(a,b,c){a.ha.has(b)?_.Th():new _.Sh(function(d){NL(c,"2.1",void 0,function(e){d(a.Qa(b,e))})})};
UM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Uh(Error("Jg"));if(this.W&&this.Fa.has(a))return _.Th()}b=b||_.Qa(this.H.channels)[0];if(!b)return _.Uh(Error("Kg"));var d=_.Wh();b.send("1.1",void 0,function(e){EKc(c,a,e);d.resolve()});return d.promise};var EKc=function(a,b,c){_.La(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.va&&(a.va=!0,a.Ab.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
UM.prototype.log=function(a){this.O.promise.then(function(b){return b.Uf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var NKc=function(a,b){QM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.M(NKc,QM);_.g=NKc.prototype;_.g.La=function(){return _.C(this.context.Lc,_.SI,58)};_.g.getContext=function(){return this.context};_.g.Jz=function(){return _.fi(this.send("5.4",[this.H],function(a,b){return eL(a[0],b,_.jjc)}))};_.g.Uf=function(){return this.context.Uf()};_.g.SM=function(a){return _.fi(this.send("5.2",[a],function(b,c){return b[0]?eL(b[0],c,_.cl):null}))};
_.g.eR=function(){return _.fi(this.send("5.5",[],function(a,b){return a.map(function(c){return eL(c,b,_.tfc)})}))};_.g.d5=function(a,b,c){return _.fi(this.send("5.8",[a,b,c],function(d,e){var f=d[0],h=d[1];return{items:d.slice(2).map(function(k){return eL(k,e,_.cl)}),pia:f,pageToken:h}}))};_.g.Mpa=function(){this.send("5.9",[])};_.g.Qha=function(){this.send("5.1",[])};_.g.j9=function(){return _.Xfc[_.zj(this.context.Lc.ag(),8,0)]};_.g.ida=function(){this.send("5.6",[])};
_.g.QS=function(){return _.fi(this.send("5.7",[],function(a,b){if(0===a.length)return null;var c=a[0],d=new Date(a[1]);a=a.slice(2).map(function(e){return eL(e,b,vvc)});return{traceId:new Yxc(c,d),spanRecs:a}}))};_.g.sN=function(){return _.fi(this.send("5.10",[],function(a){return 0===a.length?null:new Yxc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.fi(this.send("5.12",[],function(a){return a[0]}))};_.g.jpa=function(){this.send("5.11",[])};_.g.Ll=function(a){this.send("5.13",[a])};
var OKc=function(a,b){QM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ca(this))};_.M(OKc,QM);OKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return eL(b[0],c,sCc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};OKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
OKc.prototype.F$=function(a,b,c){this.dispatchEvent(new GCc(c[0],c[1]))};
var PKc=function(a){QM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.M(PKc,QM);PKc.prototype.qY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.yV().jg(function(c){b.log("Forwarding all offline items response, count:"+c.length);b.send("6.1",c)},function(){b.log("Error fetching offline items.")}),this.H.D_(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var QKc=function(a,b){cM.call(this,a,b)};_.M(QKc,cM);QKc.prototype.eia=function(a,b,c){return new _.$gc(a,c)};QKc.prototype.pka=function(a){return a.pageToken||""};QKc.prototype.Gja=function(a){return a.response.O()};QKc.prototype.g6=function(){};
var RKc=function(a,b,c){CM.call(this,a.Ij(),a.nk(),b.zi()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new QKc(this.request,this.ka)};_.M(RKc,CM);_.g=RKc.prototype;_.g.NG=function(){this.V.ah().then(this.m$a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return FBc(new wM,this.O).Bc(this.status)};_.g.yr=function(){return new DBc};_.g.Oj=function(){return!this.Te()&&(!this.H||kxc(this.V))};_.g.m$a=function(a){this.changed=this.H=!0;this.O=a;this.Tt()};
_.g.Tt=function(){if(this.active){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))}};_.g.$b=function(){return this.O.length};
var SKc=function(a,b,c){CM.call(this,a.Ij(),a.nk(),b.zi()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.u7a;this.suggestionSessionId=null;this.ka=c};_.M(SKc,CM);_.g=SKc.prototype;_.g.NG=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.aj();a.suggestionSessionId=b.Yf();a.Tt()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.onc(_.nnc((new _.VK).Bc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.yr=function(){var a=this.V.my(this.O,this.data);this.O=this.data;var b=(new JBc).Bc(this.status);return _.Jj(b,2,a)};_.g.bP=function(){};_.g.Tt=function(){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))};_.g.$b=function(){return this.data.length};
var TKc=function(){};_.g=TKc.prototype;_.g.FM=function(a,b){b=jCc(1).setPosition(b);_.J(b,2,a);return b};_.g.DM=function(a,b){b=jCc(2).setPosition(b);_.J(b,2,a);return b};_.g.DE=function(a,b,c){b=jCc(3).Uy(b).setPosition(c);_.J(b,2,a);return b};_.g.sQ=function(a,b){b=jCc(4).setPosition(b);_.J(b,2,a);return b};_.g.cN=function(a){return _.C(a,_.hCc,2)};
var VKc=function(){_.Ey.call(this,new TKc,function(a){return UKc(a)})};_.M(VKc,_.Ey);var UKc=function(a){switch(_.xj(a,gCc[0])){case 6:return _.dy(_.C(a,_.cy,6)).getTime().toString();case 7:var b=_.C(a,_.AM,7);a=_.C(b,_.cy,1);b=b.ev();return a&&b?(a=_.dy(a).getTime(),_.dy(b).getTime()+"--"+a):"";default:return""}},XKc=function(){WKc||(WKc=new VKc);return WKc},WKc;
var YKc=function(a,b,c,d){CM.call(this,b.Ij(),b.nk(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.wkc(_.Uj(b.Lc.ag(),6,1E3));this.ta=c};_.M(YKc,CM);_.g=YKc.prototype;_.g.activate=function(){CM.prototype.activate.call(this);this.Tt()};_.g.NG=function(){_.Q(this.request,3)?this.page():this.poll()};_.g.Gr=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;CM.prototype.Gr.call(this,a)};
_.g.getData=function(){var a=(new oCc).Bc(this.status);_.Jj(a,2,this.O.slice(0,this.limit));this.ka=_.xa(this.O);return a};_.g.yr=function(){var a=XKc().my(this.ka,this.O),b=new lCc;a=_.Jj(b,2,a).Bc(this.status);this.ka=_.xa(this.O);return a};_.g.Oj=function(){return!this.Te()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.qd=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.V=!0,this.Oj()&&this.O.length<this.limit?this.ta(this.request,this.limit-this.O.length,this.token).then(function(c){b.H=!0;var d=_.Pj(c,_.hCc,1);b.O=b.O.concat(d);b.token=c.qy()||"";0<d.length&&(b.changed=!0);b.Tt();b.page(a)},function(c){b.dispatchEvent(new _.qc(c));b.V=!1}):(this.V=!1,a&&a.callback(),ZKc(this))):this.V=!1};
_.g.poll=function(){var a=this;this.active&&(this.V=!0,this.ta(this.request,this.limit).then(function(b){var c=XKc();a.H=!0;var d=_.Pj(b,_.hCc,1);kL(c,a.O.slice(0,d.length),d)?(a.O=d,a.token=b.qy()||"",a.changed=!0,a.Tt(),a.page()):(a.V=!1,ZKc(a))},function(b){a.dispatchEvent(new _.qc(b));a.V=!1}))};_.g.Tt=function(){if(this.active){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))}};
_.g.KL=function(){this.Te()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.bP=function(){this.active&&this.Oj()&&!this.V&&this.page(new _.$h)};var ZKc=function(a){_.Q(a.request,3)||(_.ZH(a.ma),_.n.setTimeout((0,_.u)(a.poll,a),a.ma.Za()))};YKc.prototype.$b=function(){return this.O.length};
var $Kc=function(){};_.g=$Kc.prototype;_.g.FM=function(a,b){return qCc(pCc(1),a).setPosition(b)};_.g.DM=function(a,b){return qCc(pCc(2).setPosition(b),a)};_.g.DE=function(a,b,c){return qCc(pCc(3).Uy(b).setPosition(c),a)};_.g.sQ=function(a,b){return qCc(pCc(4),a).setPosition(b)};_.g.cN=function(a){return _.C(a,_.rM,2)};
var aLc=function(){_.Ey.call(this,new $Kc,function(a){return a.getId()})};_.M(aLc,_.Ey);var cLc=function(){bLc||(bLc=new aLc);return bLc},bLc;
var dLc=function(a,b,c){CM.call(this,b.Ij(),b.nk());this.request=a;this.ka=[];this.O=[];this.changed=!1;this.V=new _.wkc(_.Uj(b.Lc.ag(),54,1E3));this.ma=c};_.M(dLc,CM);_.g=dLc.prototype;_.g.activate=function(){CM.prototype.activate.call(this);this.Tt()};_.g.NG=function(){this.poll()};_.g.getData=function(){var a=new yCc;a=_.Jj(a,2,this.O).Bc(this.status);this.ka=_.xa(this.O);return a};_.g.yr=function(){var a=cLc().my(this.ka,this.O),b=new wCc;a=_.Jj(b,2,a).Bc(this.status);this.ka=_.xa(this.O);return a};
_.g.Oj=function(){return!this.Te()&&!this.H};_.g.poll=function(){var a=this,b=new _.$h;this.ma(this.request).then(function(c){a.H=!0;c=_.Pj(c,_.rM,2);kL(cLc(),a.O,c)&&(a.changed=!0,a.O=c,a.V.reset());a.Tt();b.callback();eLc(a)},function(c){a.dispatchEvent(new _.qc(c));b.Hd(c);eLc(a)});return b};_.g.Tt=function(){if(this.active){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))}};_.g.bP=function(){};
var eLc=function(a){a.active&&(_.n.setTimeout((0,_.u)(a.poll,a),a.V.Za()),_.ZH(a.V))};dLc.prototype.$b=function(){return this.O.length};
var fLc=function(){};_.g=fLc.prototype;_.g.FM=function(a,b){return oBc(nBc(1),a).setPosition(b)};_.g.DM=function(a,b){return oBc(nBc(2).setPosition(b),a)};_.g.DE=function(a,b,c){return oBc(nBc(3).Uy(b).setPosition(c),a)};_.g.sQ=function(a,b){return oBc(nBc(4),a).setPosition(b)};_.g.cN=function(a){return _.C(a,_.Jk,2)};
var gLc=function(){_.Ey.call(this,new fLc,function(a){return a.getId()})};_.M(gLc,_.Ey);_.Of(gLc);
var VM=function(a,b,c){_.xi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.M(VM,_.xi);VM.prototype.ti=function(a){this.limit=a};VM.prototype.ah=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():hLc(this)};VM.prototype.rka=function(){return this.permissions};
var hLc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.zJ;c=_.J(c,3,a.request);c=_.y(c,2,a.nextPageToken);b=_.y(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};VM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Un()||"";a=_.Pj(a.ld(),_.Jk,2);this.permissions=_.va(this.permissions,a);a.length&&this.dispatchEvent("Aa");if(this.nextPageToken&&this.permissions.length<this.limit)return hLc(this);this.dispatchEvent("Da")};
VM.prototype.handleError=function(a){this.H=!1;a=new pL(_.JI(a),_.Uj(this.context.Lc.ag(),1,1));this.dispatchEvent(a)};
var iLc=function(a,b,c,d){CM.call(this,b.Ij(),b.nk(),d||100);var e=this;this.request=a;this.context=b;this.ka=[];this.permissions=[];this.changed=!1;this.V=null;this.ma=c;this.O=new VM(b,this.request,this.ma);_.De(this,function(){e.V&&(_.n.clearTimeout(e.V),e.V=null)})};_.M(iLc,CM);_.g=iLc.prototype;_.g.activate=function(){CM.prototype.activate.call(this);this.Tt()};_.g.NG=function(){this.query()};_.g.Gr=function(a){CM.prototype.Gr.call(this,a||100)};
_.g.getData=function(){var a=new oL;a=_.Jj(a,2,this.permissions.slice(0,this.limit)).Bc(this.status);this.ka=_.xa(this.permissions);return a};_.g.yr=function(){var a=gLc.tb().my(this.ka,this.permissions),b=new vBc;a=_.Jj(b,2,a).Bc(this.status);this.ka=_.xa(this.permissions);return a};_.g.Oj=function(){var a;(a=!this.Te())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.qd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new VM(this.context,this.request,this.ma);this.O.ti(this.limit);return this.O.ah().then(function(){return jLc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){CM.prototype.handleError.call(this,a);kLc(this)};var jLc=function(a){a.H=!0;var b=a.O.rka();kL(gLc.tb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Tt();kLc(a)};
iLc.prototype.Tt=function(){if(this.active){var a=this.status;this.KL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.oi(_.Bc,this))}};iLc.prototype.bP=function(){var a=this;this.O.ti(this.limit);this.O.ah().then(function(){return jLc(a)},function(b){return a.handleError(b)})};var kLc=function(a){if(a.active){var b=a.context.Lc.ag();a.V=_.n.setTimeout((0,_.u)(a.query,a),Math.ceil(_.Uj(b,7,9E5)*Math.random())+_.Uj(b,15,36E5))}};iLc.prototype.$b=function(){return this.permissions.length};
var lLc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.oi(_.Bc,a))},0)};
var mLc=function(){},nLc=function(a,b){QM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=mLc;this.H=null;this.id=String(_.Ca(this))};_.M(nLc,QM);nLc.prototype.F$=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(eL(a,b,xM)))};nLc.prototype.ah=function(a){a=void 0===a?mLc:a;if(!this.H){this.O=a;var b=_.Wh();this.H=b;this.send("10.1",[this.request],function(c,d){return eL(c[0],d,xM)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
nLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var oLc=function(a,b,c){_.xi.call(this);var d=this;this.instanceId=a;this.H=b;this.V=c;this.wu={};this.O={};_.De(this,function(){d.H("7.6",[])})};_.M(oLc,_.xi);_.g=oLc.prototype;_.g.getId=function(){return this.instanceId};_.g.rQ=function(){return _.hI()};
_.g.upload=function(a,b){!_.B(a,26)&&b&&b.lastModified&&_.y(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.Bic;_.y(d,1,b.size);_.J(a,15,d);this.O[a.dj()]=b}return _.fi(this.H("7.1",[a,c],function(e,f){return eL(e[0],f,_.QJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.hG=function(){this.H("7.3",[])};
_.g.retry=function(a){for(var b={},c=_.m(a),d=c.next();!d.done;d=c.next())b[d.value]=new _.$h;c=this.rQ();this.wu[c]=b;b=_.Qa(b);this.H("7.4",[c].concat(_.md(a)));return b};_.g.CM=function(a,b){var c=this;return _.fi(this.H("7.5",[a].concat(_.md(b)),function(d){return Boc(d[0])}).then(function(d){return c.V.addCallback(function(e){return e.H2a(d)})}))};var pLc=function(a,b,c,d){if(a.wu[b]&&a.wu[b][c]){var e=a.wu[b][c];d instanceof _.QJ?e.callback(d):e.Hd(d);delete a.wu[b][c];_.Ta(a.wu[b])&&delete a.wu[b]}};
var qLc=function(a,b){QM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.M(qLc,QM);var rLc=function(a){var b=_.hI(),c=new oLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.De(c,function(){return void a.H.delete(b)});return c};
qLc.prototype.F$=function(a,b,c){if((a=this.H.get(a))&&c){var d=c[1],e=c.slice(2);switch(c[0]){case 3:b=e[0];e=e[1];e=Math.min(e,1073741824);c=a.O[d];a.H("7.7",[d,_.Egc(c,b,Math.min(c.size,b+e))]);break;case 0:b=eL(e[1],b,_.QJ);pLc(a,d,e[0],b);break;case 1:b=new _.pc(void 0,eL(e[1],b,_.oc));pLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.Okc(d,e[0],e[1]));break;default:throw Error("Lg");}}};
var sLc=function(a,b){if(0===a.length)throw new _.pc("mutateUserPref requires a namespace.",_.WI(3));var c=null;b instanceof _.DD?c=(b=(b=_.C(b,_.op,1))&&b.getKey())&&_.pp(b)||null:b instanceof _.CD&&(c=(b=b.getKey())&&_.pp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.pc("mutateUserPref unsupported for namespace: "+c,_.WI(3));};
var tLc=function(a){this.H=a};
var fpc=function(a){QM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(uLc=_.Wh()).promise);var b=this;this.ta=null;this.Qa=this.Ta=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.Cn;this.Ka=new _.Cn;this.V=uLc;uLc=void 0;this.context=a;qJc(this.context,new PKc(this.V.promise));Rrc(this.context.Mg,_.Sd(this.context.Lc,28));this.H=this.context.nfa;this.O=new SJc(this.V.promise,this.context,this.H);this.Ab=new qLc(this.V.promise,this.context.fQ);this.Ha=new NKc(this.V.promise,this.context);
this.Pc=new _.Me(this);this.Ma(this.Pc);this.Pc.listen(this.context.nk(),[].concat(_.md(Object.values(_.DB))),function(c){return void b.dispatchEvent(c)})},uLc;_.M(fpc,QM);
fpc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.va.promise;var b=this.context.Jk().H(106E3);this.ta.then(function(){b&&b.vj();a.w1a()},function(){_.EK(a.context.Jk(),181008852)});var c=_.iK(this.context.Lc)?"(coldstart) ":"";this.context.Uf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Lc.Ki());var d=noc(this.context.Lc,this.xi(),_.oK(this.context.Mg));vLc(this,d);2===d.H?(c=new UM(new MJc,6,this.context.Uf()),HKc(c,d.O),this.Ka.resolve(c)):
Ioc(this.Ha);this.context.Uf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();oJc(this.context,function(){return wLc(d.channel)})}return this.ta};
var wLc=function(a){return _.Tja([new _.Sh(function(b){a.isDisposed()||NL(a,"8.1",void 0,function(){a.dispose();b()})}),_.Bi(1E4)])},vLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.xi(),fds:_.oK(a.context.Mg)}}):c.registerService("1.1",function(){return xLc(a,b)});2===b.H?a.Ka.promise.then(function(){return void yLc(a,b)}):yLc(a,b);ML(c,"2.1",function(){return{dsc:a.context.Lc.Jc()}});ML(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new LJc(d.id,
c,a.context.Uf(),d.clients)),d.dsp&&zLc(c),d.ivd&&ALc(a,c)):(d=new _.oc(JSON.parse(d.err)),a.va.reject(new _.pc("Unable to initialize dataservice.",d)))});ML(c,"2.15",function(d){a.dispatchEvent(new FCc(d.dt))});ML(c,"2.5",function(d){a.context.Au(d.id)});ML(c,"2.6",function(d){a.context.Ij().Ll(d.os)});ML(c,"2.18",function(d){a.context.Ij().Ty(d.oois)});ML(c,"2.7",function(){a.ma=!1});ML(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new Csc(d.au?"nb":"ob"))});ML(c,"2.19",function(d){a.context.nk().update(d.cs)});
ML(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.yt("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Uf().config(e,d);break;case "fine":_.mK(a.context.Uf(),e,d,"fine");break;case "finer":_.mK(a.context.Uf(),e,d,"finer");break;case "finest":_.mK(a.context.Uf(),e,d,"finest");break;case "info":a.context.Uf().info(e,d);break;case "warning":case "severe":Orc(a.context.Uf(),e,d);break;default:Orc(a.context.Uf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),Orc(a.context.Uf(),
e,d)}});ML(c,"2.10",function(d){return void a.C$(d)});ML(c,"2.12",function(){a.Qa=!0;WM(a)});ML(c,"2.14",function(){return a.kb.resolve()});ML(c,"2.16",function(){return a.$a=!0});ML(c,"2.17",function(d){a.context.Uf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},yLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",xLc(a,b));NL(b.channel,"8.4",{dsc:a.context.Lc.Jc()});zLc(b.channel);ALc(a,b.channel)},zLc=function(a){_.n._DRIVE_dsp&&NL(a,"8.3",{dsp:BLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];NL(a,"8.3",{dsp:BLc(c)})}}},ALc=function(a,b){_.S(a.context.Lc,24,!1)&&(_.n._DRIVE_ivd?NL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&NL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},xLc=function(a,b){var c={};if(1===b.H){var d=new _.UPa(document);c.__SAPISID=d.get("SAPISID")||d.get("__Secure-3PAPISID");c.__APISID=d.get("APISID")||d.get("__Secure-APISID")}return{ac:c,bl:a.context.Lc.Ki(),
ufds:b.V}};fpc.prototype.xi=function(){var a=_.Kj(_.Kj(_.dI(this.context.Lc.clone(),28),44),91),b=new _.nI;b.update(_.gK(_.wI(a)));b.update(String(_.KI(_.wI(a))));b.update(a.Jc());return _.Hdc(b.digest())};var BLc=function(a){var b=[],c=[,!0,!0,!0,!0,,!0,!0];a.forEach(function(d,e){d&&c[e]&&(b[e]=d)});return 0<b.length?b:null};_.g=fpc.prototype;_.g.C$=function(a){this.dispatchEvent(new _.qc(new _.pc(void 0,new _.oc(JSON.parse(a.p)))))};
_.g.query=function(a){WM(this);Uuc(this.context.Bm,a,Prc(this.context.Mg));this.jF();var b=this.O.cxa(a);this.Ta||(a=a.ve(),a&&121===_.B(a,1)||(this.Ta=!0,this.Pc.listen(b,_.Bc,this.rMa)));return b};_.g.rMa=function(a){a=a.currentTarget;1===a.Bb()&&(this.Ha.H=this.$a,this.Pc.Wc(a,_.Bc,this.rMa))};_.g.Bq=function(a){WM(this);xsc(a);this.jF();return this.O.$wa(a)};
_.g.Yua=function(a,b){var c=this;WM(this);if(this.ka&&_.Tj(this.ka.qd(),a))return this.ka;this.ka=new YKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return eL(h[0],k,ECc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.YFa=function(a,b){var c=this;WM(this);if(this.ha&&_.Tj(this.ha.qd(),a))return lLc(this.ha),this.ha;this.ha=new iLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return eL(e[0],f,wBc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.$$=function(a){WM(this);return _.fi(this.send("3.14",[a],function(b,c){return eL(b[0],c,vM)}))};_.g.s8=function(a){WM(this);return _.fi(this.send("3.15",[a],function(b,c){return eL(b[0],c,vM)}))};
_.g.ud=function(a){WM(this);!this.ma&&_.RJ(a)&&(this.ma=!0);a=poc(a);return _.fi(this.send("3.3",[a],function(b,c){return eL(b[0],c,_.QJ)}))};_.g.XN=function(a){WM(this);a=zoc(a);return this.send("3.35",[a],function(b,c){return eL(b[0],c,_.Bsc)})};_.g.wz=function(a){WM(this);for(var b=0;b<a.length;b++)!this.ma&&_.RJ(a[b])&&(this.ma=!0);a=soc(a);return _.fi(this.send("3.4",[a],function(c,d){return jvc(c[0],d).get()}))};_.g.Zwa=function(){WM(this);return rLc(this.Ab)};
_.g.kSa=function(a){WM(this);return new OKc(this.V.promise,a)};_.g.xr=function(a,b){var c=this;WM(this);var d=_.Sg();this.H.create(d,a);return _.fi(this.send("3.5",[a,!!b],function(e,f){f=eL(e[0],f,PL);return new _.zK(f,e[1],e[2])})).addCallback(function(e){Bvc(c.H,d,e);return e.response}).Pg(function(e){OL(c.H,d);return e})};_.g.wr=function(a){WM(this);return this.send("3.10",[a],function(b,c){return eL(b[0],c,tBc)})};
_.g.baa=function(a){WM(this);return _.fi(this.send("3.11",[a],function(b,c){return eL(b[0],c,xBc)}))};_.g.q8=function(a){WM(this);return _.fi(this.send("3.12",[a],function(b,c){return eL(b[0],c,xBc)}))};_.g.dT=function(a){WM(this);return _.fi(this.send("3.13",[a],function(b,c){return eL(b[0],c,xBc)}))};
_.g.wN=function(a,b){var c=this;WM(this);var d=_.Sg();this.H.create(d,a);return _.fi(this.send("3.1",[a,!!b],function(e,f){f=eL(e[0],f,_.zM);return new _.CK(f,e[1],e[2])})).addCallback(function(e){Bvc(c.H,d,e);return e.response}).Pg(function(e){OL(c.H,d);return e})};
_.g.LG=function(a,b){var c=this,d=_.Sd(this.context.Lc.ag(),30);if(!d||0===d.length)return _.gi(new _.pc("getUserPrefs requires a namespace.",_.WI(3)));0===_.Sd(a,3).length&&Joc(a,d);WM(this);var e=_.Sg();this.H.create(e,a);return _.fi(this.send("3.2",[a,!!b],function(f,h){h=eL(f[0],h,_.aA);return new _.BK(h,f[1],f[2])})).addCallback(function(f){Bvc(c.H,e,f);return f.response}).Pg(function(f){OL(c.H,e);return f})};
_.g.YR=function(a){WM(this);sLc(_.Sd(this.context.Lc.ag(),30),a);a=woc(a);return this.send("3.6",[a],function(b,c){return eL(b[0],c,yBc)})};_.g.hu=function(a){WM(this);return _.fi(this.send("3.16",[a],function(b,c){return eL(b[0],c,fsc)}))};_.g.FBa=function(){return this.ma};_.g.Ll=function(a){WM(this);this.send("3.8",[a])};_.g.Ty=function(a){WM(this);return _.Th(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.qY=function(a){WM(this);pJc(this.context).qY(a);this.Ty(!!a)};
_.g.jF=function(){WM(this);this.send("3.9",[])};_.g.$R=function(){WM(this);this.send("3.41",[]);this.context.$R();var a=nL(this.context.Jk(),106006);a&&this.V.promise.then(function(b){var c=_.C(_.uK(a),qrc,6);if(!c){c=new qrc;var d=_.uK(a);_.J(d,6,c)}c=_.y(c,1,b.clientId);_.y(c,2,b.O);a.vj()},function(){})};_.g.AB=function(){WM(this);return this.context.AB()};_.g.kQ=function(){WM(this);return _.Th(this.send("3.19",[],function(a,b){return eL(a[0],b,mvc)}))};_.g.isConnected=function(){return this.context.nk().isConnected()};
_.g.N7=function(){return this.send("3.46",[],function(a,b){return eL(a[0],b,_.kkc)})};_.g.A9=function(){return this.Ha};_.g.sync=function(){WM(this);return _.Th(this.send("3.28",[]))};_.g.Cu=function(){return this.context.Cu()};_.g.nY=function(a){this.Ka.promise.then(function(b){return void b.nY(a)})};_.g.qda=function(a){WM(this);return this.O.jxa(a)};_.g.NY=function(a){WM(this);return this.O.ixa(a)};_.g.VFa=function(a){WM(this);Xuc(this.context.Bm,a,Prc(this.context.Mg));return this.O.fxa(a)};
_.g.Epa=function(a){WM(this);return new nLc(this.V.promise,a)};_.g.Kva=function(a){var b=this;WM(this);if(!this.W||this.W.isDisposed())this.W=new dLc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return eL(d[0],e,yCc)})});return this.W};_.g.GGa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Th()};_.g.r8=function(a){WM(this);return _.fi(this.send("3.22",[a],function(b,c){return eL(b[0],c,zCc)}))};
_.g.zV=function(a){WM(this);return _.fi(this.send("3.25",[a],function(b,c){return eL(b[0],c,uCc)}))};_.g.tba=function(){return this.kb.promise};_.g.Hna=function(a){var b=_.Wh();_.fi(this.send("3.30",[a],function(c,d){c[0]?b.resolve(eL(c[0],d,BCc)):b.reject(new _.pc(void 0,eL(c[1],d,_.oc)))})).Pg(function(c){return void b.reject(c)});return b.promise};_.g.lwa=function(a){WM(this);return this.O.Wwa(a)};_.g.M7=function(a){WM(this);return this.send("3.42",[a],function(b,c){return eL(b[0],c,Gtc)})};
_.g.eP=function(a){WM(this);var b=new _.Cn;this.send("3.39",[a],function(c,d){return c.map(function(e){return eL(e,d,Mvc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new tLc(b.promise))};_.g.qGa=function(a){var b=this;WM(this);return new RKc(this.context,a,function(c){return _.Th(b.send("3.37",[c.request,c.pageToken],function(d,e){return new ouc(eL(d[0],e,wM),d[1])}))})};
_.g.rGa=function(a){WM(this);return this.send("3.38",[a],function(b,c){return eL(b[0],c,GBc)})};_.g.UKa=function(a){WM(this);return this.O.nxa(a)};_.g.yqa=function(a){WM(this);return this.O.mxa(a)};_.g.kJa=function(a){var b=this;WM(this);return new SKc(this.context,a,function(){return _.Th(b.send("3.40",[a],function(c,d){return eL(c[0],d,_.VK)}))})};_.g.lJa=function(a){WM(this);return this.O.gxa(a)};_.g.B_=function(a){WM(this);this.send("3.43",[a])};
_.g.g0=function(a){WM(this);return _.Th(this.send("3.44",[a],function(b,c){return eL(b[0],c,xtc)}))};_.g.No=function(a){WM(this);if(1!==_.hK(this.context.Lc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Ng"));if(!c.qk()&&!c.getItem())return Promise.reject(Error("Og"))}return Promise.resolve(this.send("3.45",a))};
_.g.w1a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Bi(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Tja(b).then(function(c){c?_.zi(a.w1a.bind(a),6E4):(a.Qa=!0,WM(a))})}};var WM=function(a){a.Qa&&a.dispatchEvent(new dDc)};
var hpc=function(a){EM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Wh();this.H=a.Om()};_.M(hpc,EM);hpc.prototype.WRa=function(){this.Ha=new YJc(this.context);this.Ma(this.Ha);this.Ka=new bKc(this.context);this.Ma(this.Ka);this.Qa=new iKc(this.context);this.Ma(this.Qa)};
hpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.iK(this.context.Lc)&&b.push("BNEDtc");TL(this.O,b,function(){return void a.TWa()});TL(this.O,["T8oKm","ZA9qG"],function(){return void CLc(a)});TL(this.O,["T8oKm","mrK8ic"],function(){return void CLc(a)});this.Pc.listen(this.Ha,"WPi0i",this.ssa.bind(this,1));this.Pc.listen(this.Ka,"Qb",this.ssa.bind(this,2));this.Pc.listen(this.Qa,"WPi0i",this.ssa.bind(this,4));TL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var CLc=function(a){IM(a.context).addCallback(function(b){b.start()})};
_.g=hpc.prototype;_.g.ssa=function(a){_.oa(ytc,a)&&this.dispatchEvent(new FCc(a))};_.g.NY=function(a){return this.V.ixa(a.clone())};_.g.VFa=function(a){Xuc(this.context.Bm,a,Prc(this.context.Mg));return this.V.fxa(a.clone())};_.g.qda=function(a){return this.V.jxa(a.clone())};_.g.Epa=function(a){return new zKc(a,this.context.Om())};
_.g.Yua=function(a,b){var c=this;if(this.ta&&_.Tj(this.ta.qd(),a))return this.ta;this.ta=new YKc(a.clone(),this.context,this.yjb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.yjb=function(a,b,c){var d=new _.Tgc(a,b,c);return _.fi(this.H.then(function(e){return e.Re(d)}).Eg(function(e){return _.YI(e)}))};_.g.Kva=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new dLc(a,this.context,function(c){return DLc(b,c)});return this.ha};var DLc=function(a,b){return _.fi(a.H.then(function(c){return c.Re(b)}).Eg(function(c){return _.YI(c)}))};
_.g=hpc.prototype;_.g.GGa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Th()};_.g.zV=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}))};_.g.r8=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}))};_.g.YFa=function(a,b){var c=this;if(this.ka&&_.Tj(this.ka.qd(),a))return lLc(this.ka),this.ka;this.ka=new iLc(a.clone(),this.context,this.bKb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.bKb=function(a){var b=this;return this.H.then(function(c){return c.Re(a)}).then(function(c){return _.BI(b.context.Lc)?Ywc(b.context.wf.sq,_.Pj(c.ld(),_.Jk,2),a.qd().getId()).then(function(){return c}):c},_.YI)};_.g.$$=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Re(a)}).then(function(c){return _.BI(b.context.Lc)?Ywc(b.context.wf.sq,[_.C(c,_.Jk,2)],a.Ac()).then(function(){return c}):c},_.YI))};
_.g.s8=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};_.g.lwa=function(a){return this.V.Wwa(a.clone())};_.g.M7=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.YI)};_.g.eP=function(a){return this.H.then(function(b){return b.Re(a)}).then(function(b){var c=new _.Cn;ixc(a,b).then(function(d){return c.resolve(d)});return new tLc(c.promise)},function(b){return void _.YI(b)})};_.g.qGa=function(a){var b=this;return new RKc(this.context,a,function(c){return b.H.then(function(d){return d.Re(c)}).Eg(function(d){return _.YI(d)})})};
_.g.rGa=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.YI)};_.g.ud=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};_.g.XN=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.YI)};_.g.wz=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.$I?c.push(String(f.Ac())):c.push(String(f.getId()));d.push(b.ud(f))});a=new _.so(d);var e=new _.$h;a.addCallback(this.gmb.bind(this,e,c));return e};
_.g.Zwa=function(){return new oKc(this.context.Lc,this.context.SA,this.context.dR().mfa,this.context.Om(),this.context.fQ,this.context.Uf(),this.context.Jk())};_.g.xr=function(a,b){var c=this,d=_.Sg();this.W.create(d,a);3===a.getType()?a=EM.prototype.xr.call(this,a).addCallback(function(e){return new _.zK(e,1,!1)}):(UL(this.O,"Qubz4b"),a=this.Ka.enqueue(new gKc(a,b)));return a.addCallback(function(e){Bvc(c.W,d,e);return e.response}).Pg(function(){OL(c.W,d)})};
_.g.wr=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};_.g.baa=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};_.g.q8=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};_.g.dT=function(a){return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};
_.g.wN=function(a,b){var c=this;UL(this.O,"iuEtc");var d=_.Sg();this.W.create(d,a);return this.Ha.enqueue(new $Jc(a,b)).addCallback(function(e){Bvc(c.W,d,e);return e.response}).Pg(function(){OL(c.W,d)})};
_.g.LG=function(a,b){var c=this,d=_.Sd(this.context.Lc.ag(),30);if(!d||0===d.length)return _.gi(new _.pc("getUserPrefs requires a namespace.",_.WI(3)));0===_.Sd(a,3).length&&Joc(a,d);var e=_.Sg();this.W.create(e,a);UL(this.O,"OZvrNc");return this.Qa.enqueue(new lKc(a,b)).addCallback(function(f){Bvc(c.W,e,f);return f.response}).Pg(function(){OL(c.W,e)})};_.g.YR=function(a){sLc(_.Sd(this.context.Lc.ag(),30),a);return _.fi(this.H.then(function(b){return b.Re(a)}).then(null,_.YI))};
_.g.hu=function(a){var b=this;return _.fi(this.H.then(function(c){return c.Re(a)}).then(function(c){return _.BI(b.context.Lc)?Wwc(b.context.wf.sq,c):c},_.YI))};_.g.UKa=function(a){return this.V.nxa(a.clone())};_.g.yqa=function(a){return this.V.mxa(a.clone())};_.g.kJa=function(a){var b=this;return new SKc(this.context,a,function(c){return b.H.then(function(d){return d.Re(c)}).Eg(function(d){return _.YI(d)})})};_.g.lJa=function(a){return this.V.gxa(a.clone())};
_.g.B_=function(a){TEc(this.context.wf,[a])};_.g.g0=function(a){return this.H.then(function(b){return b.Re(a)}).then(null,_.YI)};_.g.No=function(a){if(1!==_.hK(this.context.Lc))return Promise.reject(Error("Mg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Ac())return Promise.reject(Error("Ng"));if(!c.qk()&&!c.getItem())return Promise.reject(Error("Og"))}this.context.wf.No(a);DFc(this.context.wf);return Promise.resolve()};_.g.FBa=function(){return this.context.dR().eK()};
_.g.Ty=function(a){var b=this;return this.context.Ty(a).then(function(c){return c?(b.context.Ij().Ty(a),b.context.Ls.mL()):_.Th(!a)})};_.g.qY=function(a){pJc(this.context).qY(a);this.Ty(!!a)};_.g.jF=function(){IM(this.context).addCallback(function(a){a&&a.koa()});this.context.$ga.jF()};_.g.nY=function(a){a.FMa(this.context)};_.g.gmb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];DFc(this.context.wf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Vh([this.context.X$.promise,this.context.ofa.promise]).then(function(){return a.context.Ls.mL()}).then()};_.g.Cu=function(){IM(this.context).addCallback(function(a){a&&a.dispose()});return EM.prototype.Cu.call(this)};_.g.tba=function(){return this.kb.promise};
var ELc=function(){var a='<div class="'+_.F("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.F("la-Y-A")+" "+_.F("kc-A")+'" data-target="reload">');return(0,_.I)(a+"Reload</button>")};
_.An({id:_.cm,callback:function(a){var b=_.qnc(a),c=kpc(a),d=_.C(a.get(_.Wc),_.Wb,10);_.wic(d,b);_.Cj(d,28,c);b=ipc(a,d);a.registerService(_.dm,b.A9());_.Se(b,"VbxEwf",function(){var e={};_.yc(_.Pt.getService(a),new _.pq(new _.oq(ELc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
_.FLc=function(a,b){return _.J(a,17,b)};_.GLc=function(a,b){return _.y(a,2,b)};_.HLc=function(a,b){return _.y(a,1,b)};_.ILc=function(a,b){return _.J(a,2,b)};_.JLc=function(a,b){return _.Jj(a,1,b)};_.KLc=function(a,b){return _.Cj(a,1,b)};_.LLc=function(a,b){return _.Jj(a,2,b)};_.MLc=function(a,b){return _.J(a,3,b)};_.t("RsR2Mc");

_.w();

}catch(e){_._DumpException(e)}
})(this._D);
// Google Inc.
