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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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

_.Dcc=function(a,b){return _.pd(a,b)};

_.u();

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

_.amb=function(a,b){a.filters.push(new _.bu(1,b));return a};_.bmb=function(a){a.approvalSummaries||(a.approvalSummaries=_.bSa(a.jg,a.getItem().kBa));return a.approvalSummaries};_.cmb=function(a){null===a.contentRestrictions&&(a.contentRestrictions=_.bSa(a.jg,a.getItem().d2));return a.contentRestrictions};

_.u();

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


_.u();

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

_.EA=function(a){if(Array.isArray(a))return a.map(_.EA).join("");if(_.el(a)){if(!a.getId())throw Error("Td");return a.getId()+"/"+_.el(a)+","}return""};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.pvb=function(a,b,c){_.Tq(a,b)&&(_.Sd(a,b),_.Uq(a,c))};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var rvb;_.qvb=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")};rvb=function(a){var b=_.Caa(_.gFa,function(c){return a==c});if(void 0===b)throw Error("Kb`"+a);return b};_.svb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.gFa[a.name]):(this.code=a=a.code,this.name=rvb(a));_.ja.call(this,_.qvb("%s %s",this.name,b))};_.fg(_.svb,_.ja);var tvb=function(a,b){_.gi.call(this,a.type,b)};
_.fg(tvb,_.gi);_.uvb=function(){_.pi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.L)(this.m1,this);this.H.onprogress=(0,_.L)(this.m1,this);this.H.onload=(0,_.L)(this.m1,this);this.H.onabort=(0,_.L)(this.m1,this);this.H.onerror=(0,_.L)(this.m1,this);this.H.onloadend=(0,_.L)(this.m1,this)};_.fg(_.uvb,_.pi);_.g=_.uvb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.svb(a,"aborting read");}};_.g.ak=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.svb(this.H.error,"reading file")};_.g.m1=function(a){this.dispatchEvent(new tvb(a,this))};_.g.Ya=function(){_.uvb.ub.Ya.call(this);delete this.H};

_.u();

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

var Iwb,Lwb;Iwb=[4,5,6,7];_.TB=function(a){_.J.call(this,a)};_.K(_.TB,_.J);_.TB.prototype.Cb=function(){return _.z(this,1)};_.TB.prototype.Dc=function(a){return _.x(this,1,a)};_.TB.prototype.uaa=function(){return _.z(this,2)};_.TB.prototype.Tb="JmcaR";_.Jwb=function(a){_.J.call(this,a)};_.K(_.Jwb,_.J);_.Jwb.prototype.H=function(){return _.Q(this,1)};_.Jwb.prototype.Tb="dvhrqe";_.Kwb=function(a){_.J.call(this,a)};_.K(_.Kwb,_.J);_.Kwb.prototype.Vo=function(){return _.z(this,2)};
_.Kwb.prototype.S2=function(){return _.z(this,3)};Lwb=[5];_.Mwb=function(a){_.J.call(this,a)};_.K(_.Mwb,_.J);_.Mwb.prototype.H=function(){return _.Q(this,4)};_.Mwb.prototype.setActive=function(a){return _.x(this,4,a)};_.Nwb=function(a){_.J.call(this,a,-1,Lwb)};_.K(_.Nwb,_.J);_.g=_.Nwb.prototype;_.g.K_=function(){return _.z(this,1)};_.g.cM=function(){return _.z(this,3)};_.g.tK=function(){return _.yb(this,_.Kwb,5)};_.g.yk=function(){return _.z(this,6)};_.g.nq=function(){return _.z(this,7)};
_.g.cK=function(){return _.z(this,9)};_.g.jt=function(){return _.z(this,10)};_.g.gK=function(){return _.y(this,_.Mwb,12)};_.g.Mk=function(){return _.z(this,13)};_.g.Vw=function(){return _.z(this,16)};_.g.sDb=function(){return _.dj(this,16)};_.g.Iv=function(){return _.z(this,17)};_.g.Tb="dzR11e";_.Owb=function(a){_.J.call(this,a,-1,Iwb)};_.K(_.Owb,_.J);_.Owb.prototype.ul=function(){return _.y(this,_.Nwb,1)};_.Owb.prototype.yN=function(){return _.y(this,_.TB,8)};
_.Owb.prototype.H=function(){return _.y(this,_.Jwb,9)};_.UB=function(a){_.J.call(this,a,-1,Pwb)};_.K(_.UB,_.J);_.UB.prototype.getUser=function(){return _.y(this,_.lk,1)};_.UB.prototype.getMetadata=function(){return _.y(this,_.Owb,3)};_.UB.prototype.Do=function(){return _.dj(this,3)};var Pwb=[2];

_.u();

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

_.Qwb=function(a,b,c,d,e,f,h){return(0,_.F)(_.rn("b",b,!1)({fillColor:d,ab:c,color:"#000000",nb:!0,Gr:e,size:f,Sd:h},a))};

_.u();

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

_.VB={$L:"bb",eia:"cb",bV:"db",aV:"eb"};_.Rwb=new Map([[_.VB.$L,1],[_.VB.eia,2],[_.VB.bV,2],[_.VB.aV,3]]);

_.u();

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


_.u();

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

_.$yb=function(a){a=parseInt(a.H()||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.bzb=function(a,b,c,d){var e=_.pf.getService(a);a=e.Yf(a,c);_.azb(a.H.zj,b,d);e.Pf(a)};_.azb=function(a,b,c){var d=new _.czb;b.TQ&&_.x(d,2,b.TQ);b.VE&&0<=b.VE&&_.x(d,1,b.VE);b.quotaType&&_.x(d,3,b.quotaType);_.dzb(a,d);c&&(b=new _.ezb,_.x(b,1,c),_.fzb(a,b))};_.gzb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.dzb=function(a,b){b&&(a=a.Rc(),_.G(a,29,b))};
_.fzb=function(a,b){b&&(a=a.Rc(),_.G(a,38,b))};_.czb=function(a){_.J.call(this,a)};_.K(_.czb,_.J);_.czb.prototype.yk=function(){return _.z(this,3)};_.ezb=function(a){_.J.call(this,a)};_.K(_.ezb,_.J);_.ezb.prototype.mi=function(){return _.z(this,1)};
var hzb;_.izb=function(a,b,c){var d=_.C(a.get(_.SDa),1,"");a=_.$yb(b);d=new _.Si(d);a:switch(a){case "over":var e="o";break a;case "near":e="u";break a;default:e="m"}return _.Ui(_.Xi(_.Xi(_.Xi(_.Xi(d,"i",e),"utm_source","drive"),"utm_medium","web"),"utm_campaign",hzb(a,c)),-1!==parseInt(String(b.V()),10)?"upgrade":"")};
hzb=function(a,b){switch(b){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(a){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(a){case "near":case "over":return"upsell";default:return"manage"}}};

_.u();

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

_.SC=function(a){_.J.call(this,a)};_.K(_.SC,_.J);_.SC.prototype.wa=function(){return _.ij(this,1)};_.SC.prototype.V=function(){return _.ij(this,2)};_.SC.prototype.H=function(){return _.ij(this,3)};

_.u();

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


_.u();

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


_.u();

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


_.u();

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


_.u();

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

_.oD=function(a){_.J.call(this,a)};_.K(_.oD,_.J);_.oD.prototype.getKey=function(){return _.y(this,_.Lc,1)};_.oD.prototype.vt=function(){return _.dj(this,1)};_.oD.prototype.re=function(){return _.y(this,_.Lf,2)};
_.pD=function(a){_.J.call(this,a)};_.K(_.pD,_.J);_.pD.prototype.re=function(){return _.y(this,_.Lf,2)};

_.u();

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

_.nD=function(a){_.J.call(this,a,-1,cCb)};_.K(_.nD,_.J);_.nD.prototype.re=function(){return _.y(this,_.Lf,1)};var cCb=[3];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.BD=function(a,b,c){_.N.call(this);this.$m=null!=c?(0,_.L)(a,c):a;this.ka=b;this.qg=(0,_.L)(this.lcb,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.fg(_.BD,_.N);_.g=_.BD.prototype;_.g.oe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.dg()+this.ka:this.H=_.ri(this.qg,this.ka)};_.g.stop=function(){this.H&&(_.si(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.$m.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.BD.ub.Ya.call(this)};_.g.lcb=function(){this.H&&(_.si(this.H),this.H=null);this.W?(this.H=_.ri(this.qg,this.W-_.dg()),this.W=null):this.V?this.O=!0:(this.O=!1,this.$m.apply(null,this.ha))};

_.u();

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


_.u();

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

_.YF=function(a){_.J.call(this,a,-1,NVb)};_.K(_.YF,_.J);_.YF.prototype.getId=function(){return _.z(this,1)};_.YF.prototype.Nb=function(a){return _.x(this,1,a)};_.YF.prototype.Eu=function(){return _.z(this,2)};_.YF.prototype.BK=function(){return _.dj(this,2)};var NVb=[5,6,9,10,12,13,15,16];
var OVb;_.ZF=function(a){_.J.call(this,a,-1,OVb)};_.K(_.ZF,_.J);_.ZF.prototype.Jm=function(){return _.z(this,1)};_.PVb=function(a,b){return _.x(a,1,b)};OVb=[2,4];

_.u();

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


_.u();

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

_.$F=function(a){_.J.call(this,a)};_.K(_.$F,_.J);_.$F.prototype.getName=function(){return _.z(this,1)};_.$F.prototype.$c=function(a){return _.x(this,1,a)};_.$F.prototype.re=function(){return _.y(this,_.Lf,2)};

_.u();

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

_.WVb=function(a){_.J.call(this,a)};_.K(_.WVb,_.J);_.WVb.prototype.xi=function(){return _.z(this,3)};_.WVb.prototype.cj=function(a){return _.x(this,3,a)};_.WVb.prototype.re=function(){return _.y(this,_.Lf,5)};_.WVb.prototype.getCustomer=function(){return _.z(this,6)};

_.u();

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

var XVb;_.Ic=function(a){_.gi.call(this,_.bd);this.error=a};_.K(_.Ic,_.gi);_.aG=function(a){_.J.call(this,a,-1,XVb)};_.K(_.aG,_.J);_.aG.prototype.H=function(){return _.re(this,1)};_.bG=function(a,b){return _.jj(a,1,b)};_.aG.prototype.V=function(){return _.re(this,2)};_.cG=function(a,b){return _.jj(a,2,b)};_.aG.prototype.re=function(){return _.y(this,_.Lf,3)};_.dG=function(a,b){return _.G(a,3,b)};_.YVb=function(a,b){return _.x(a,5,b)};XVb=[1,2,6,11];

_.u();

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

_.eG=function(a){_.J.call(this,a)};_.K(_.eG,_.J);_.g=_.eG.prototype;_.g.xi=function(){return _.z(this,1)};_.g.cj=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};_.g.Xq=function(){return _.z(this,4)};

_.u();

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

_.fG=function(a){_.J.call(this,a,-1,ZVb)};_.K(_.fG,_.J);_.fG.prototype.H=function(){return _.re(this,1)};_.fG.prototype.V=function(){return _.re(this,2)};_.fG.prototype.re=function(){return _.y(this,_.Lf,3)};var ZVb=[1,2];

_.u();

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

_.gG=function(a){_.J.call(this,a,-1,$Vb)};_.K(_.gG,_.J);_.aWb=function(a,b){return _.jj(a,1,b)};_.gG.prototype.re=function(){return _.y(this,_.Lf,2)};var $Vb=[1,3];

_.u();

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

_.hG=function(a,b){return _.x(a,4,b)};_.bWb=function(a,b){return _.x(a,25,b)};

_.u();

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


_.u();

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

_.nG=function(a){_.J.call(this,a)};_.K(_.nG,_.J);_.nG.prototype.qc=function(){return _.z(this,1)};_.VWb=function(a){var b=new _.nG;return _.x(b,1,a)};_.nG.prototype.xi=function(){return _.z(this,2)};_.nG.prototype.cj=function(a){return _.x(this,2,a)};_.nG.prototype.re=function(){return _.y(this,_.Lf,3)};

_.u();

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

_.PH=function(a){_.J.call(this,a)};_.K(_.PH,_.J);_.PH.prototype.re=function(){return _.y(this,_.Lf,1)};_.QH=function(a,b){return _.G(a,1,b)};_.PH.prototype.hh=function(){return _.z(this,4)};_.PH.prototype.sKa=function(a){return _.x(this,4,a)};

_.u();

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


_.u();

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

var Ecc;_.RH=function(a){_.J.call(this,a,-1,Ecc)};_.K(_.RH,_.J);_.RH.prototype.H=function(){return _.re(this,1)};_.RH.prototype.re=function(){return _.y(this,_.Lf,2)};_.Fcc=function(a,b){return _.G(a,2,b)};_.RH.prototype.xi=function(){return _.wj(this,3,20)};_.RH.prototype.cj=function(a){return _.x(this,3,a)};_.Gcc=function(a,b){return _.x(a,4,b)};Ecc=[1];

_.u();

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

/*

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

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Jcc=function(a){_.N.call(this);this.O=a;this.H={};this.O.XO((0,_.L)(this.V,this))};_.fg(_.Jcc,_.N);_.Lcc=function(a,b){if(-1!=b.indexOf(":"))throw Error("ef`"+b);if(b in a.H)throw Error("ff`"+b);var c=new Kcc(a,b);return a.H[b]=c};_.Jcc.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)}};_.Jcc.prototype.Ya=function(){_.Ta(this.H,function(a){_.ca(a)});_.ca(this.O);delete this.H;delete this.O};
var Kcc=function(a,b){_.N.call(this);this.Ig=a;this.H=b};_.fg(Kcc,_.N);_.g=Kcc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.Ig.O.registerService(this.H+":"+a,(0,_.L)(this.FWa,this,b),c)};_.g.XO=function(a){this.O=(0,_.L)(this.FWa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("gf");this.Ig.O.send(this.H+":"+a,b)};_.g.FWa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Ig=this.Ig.H[this.H]=null};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Mcc=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Ncc=function(){this.blockSize=-1};
_.SH=function(){this.blockSize=-1;this.blockSize=64;this.H=Array(4);this.W=Array(this.blockSize);this.V=this.O=0;this.reset()};_.fg(_.SH,_.Ncc);_.SH.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 Occ=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};
_.SH.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;)Occ(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Occ(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Occ(this,d);e=0;break}}this.O=e;this.V+=b};
_.SH.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};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Pcc,TH,Qcc,VH,Scc,Rcc;Pcc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.gha);try{delete a[_.gha]}catch(b){}};
TH=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(_.Ea(f)){f[_.gha]||c.push(f);var l=_.Fa(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++)Pcc(c[a]);return b.join("")};_.UH=function(a,b,c){if("number"===typeof a)var d={name:Rcc(a)};else d=a,a=Scc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ja.call(this,b)};_.fg(_.UH,_.ja);_.UH.prototype.getName=function(){return this.O.name||""};
VH={Fmb:1,Flb:2,NOT_FOUND_ERR:3,Nab:4,Sab:5,Hlb:6,Amb:7,ABORT_ERR:8,Ylb:9,oac:10,TIMEOUT_ERR:11,Vlb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Tcc=(_.n.H||_.n.O||VH).Fmb;_.Ucc=(_.n.H||_.n.O||VH).Flb;_.Vcc=(_.n.H||_.n.O||VH).NOT_FOUND_ERR;_.Wcc=(_.n.H||_.n.O||VH).Nab;_.Xcc=(_.n.H||_.n.O||VH).Sab;_.Ycc=(_.n.H||_.n.O||VH).Hlb;_.Zcc=(_.n.H||_.n.O||VH).Amb;_.$cc=(_.n.H||_.n.O||VH).ABORT_ERR;_.adc=(_.n.H||_.n.O||VH).Ylb;_.bdc=(_.n.H||_.n.O||VH).TIMEOUT_ERR;_.cdc=(_.n.H||_.n.O||VH).Vlb;
_.ddc=(_.n.DOMException||VH).INVALID_ACCESS_ERR;_.edc=(_.n.DOMException||VH).INVALID_STATE_ERR;
Scc=function(a){switch(a){case "UnknownError":return _.Tcc;case "NotFoundError":return _.Vcc;case "ConstraintError":return _.Wcc;case "DataError":return _.Xcc;case "TransactionInactiveError":return _.Zcc;case "AbortError":return _.$cc;case "ReadOnlyError":return _.adc;case "TimeoutError":return _.bdc;case "QuotaExceededError":return _.cdc;case "InvalidAccessError":return _.ddc;case "InvalidStateError":return _.edc;default:return _.Tcc}};
Rcc=function(a){switch(a){case _.Tcc:return"UnknownError";case _.Vcc:return"NotFoundError";case _.Wcc:return"ConstraintError";case _.Xcc:return"DataError";case _.Zcc:return"TransactionInactiveError";case _.$cc:return"AbortError";case _.adc:return"ReadOnlyError";case _.bdc:return"TimeoutError";case _.cdc:return"QuotaExceededError";case _.ddc:return"InvalidAccessError";case _.edc:return"InvalidStateError";default:return"UnknownError"}};
_.WH=function(a,b){return"error"in a?new _.UH(a.error,b):new _.UH({name:"UnknownError"},b)};_.XH=function(a,b){if("name"in a)return b=b+": "+a.message,new _.UH(a,b);if("code"in a){var c=Rcc(a.code);b=b+": "+a.message;return new _.UH({name:c},b)}return new _.UH({name:"UnknownError"},b)};
_.fdc=function(a){this.H=a};_.gdc=_.n.IDBKeyRange||_.n.webkitIDBKeyRange;_.fdc.prototype.range=function(){return this.H};
var hdc=function(a){this.H=a};hdc.prototype.getName=function(){return this.H.name};var idc=function(a,b,c,d){var e=new _.Th;try{var f=a.H[b](d)}catch(h){return c+=" with key "+TH(d),e.Gd(_.XH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+TH(d);e.Gd(_.WH(h.target,c))};return e};hdc.prototype.get=function(a){return idc(this,"get","getting from index "+this.getName(),a)};
hdc.prototype.getKey=function(a){return idc(this,"getKey","getting key from index "+this.getName(),a)};hdc.prototype.getAll=function(a,b){return _.jdc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.jdc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.fdc?d.range():(new _.fdc(_.gdc.only(d))).range();var h=new _.Th;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?TH(f):"<all>"),h.Gd(_.XH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?TH(f):"<all>");h.Gd(_.WH(l.target,c))};return h};
var kdc=function(a){this.H=a};kdc.prototype.getName=function(){return this.H.name};var ldc=function(a,b,c,d,e){var f=new _.Th;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=TH(d),e&&(c+=", with key "+TH(e)),f.Gd(_.XH(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=TH(d);e&&(c+=", with key "+TH(e));f.Gd(_.WH(k.target,c))};return f};_.g=kdc.prototype;_.g.put=function(a,b){return ldc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return ldc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.Th;try{var c=this.H["delete"](a instanceof _.fdc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+TH(a);b.Gd(_.WH(e.target,f))};return b};
_.g.get=function(a){var b=new _.Th;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+TH(a),b.Gd(_.XH(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 "+TH(a);b.Gd(_.WH(e.target,f))};return b};_.g.getAll=function(a,b){return mdc(this,"getting all from index "+this.getName(),a,b)};
var mdc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.fdc?c.range():(new _.fdc(_.gdc.only(c))).range();var f=new _.Th;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?TH(e):"<all>"),f.Gd(_.XH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?TH(e):"<all>");f.Gd(_.WH(k.target,b))};return f};
kdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.Th;try{var c=this.H.clear()}catch(d){return b.Gd(_.XH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Gd(_.WH(d.target,a))};return b};kdc.prototype.getIndex=function(a){try{return new hdc(this.H.index(a))}catch(b){throw _.XH(b,"getting index "+a);}};
kdc.prototype.count=function(a){var b=new _.Th;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.Gd(_.WH(e.target,d.getName()))}}catch(e){b.Gd(_.XH(e,this.getName()))}return b};
var ndc=function(a,b){_.pi.call(this);this.H=a;this.O=b;this.Eb=new _.nf(this);this.Eb.listen(this.H,"complete",(0,_.L)(this.dispatchEvent,this,"complete"));this.Eb.listen(this.H,"abort",(0,_.L)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Ocb)};_.fg(ndc,_.pi);_.g=ndc.prototype;_.g.Ocb=function(a){a.target instanceof _.UH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.WH(a.target,"in transaction")})};_.g.Fg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new kdc(this.H.objectStore(a))}catch(b){throw _.XH(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.XH(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.Th;_.ki(this,"complete",(0,_.L)(a.callback,a));var b=_.ki(this,"abort",function(){_.ni(c);a.Gd(new _.UH(_.$cc,"waiting for transaction to complete"))});var c=_.ki(this,"error",function(e){_.ni(b);a.Gd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){ndc.ub.Ya.call(this);this.Eb.dispose()};
var odc=function(a){_.pi.call(this);this.H=a;this.Eb=new _.nf(this);this.Eb.listen(this.H,"abort",(0,_.L)(this.dispatchEvent,this,"abort"));this.Eb.listen(this.H,"error",this.Pcb);this.Eb.listen(this.H,"versionchange",this.Msb);this.Eb.listen(this.H,"close",(0,_.L)(this.dispatchEvent,this,"close"))};_.fg(odc,_.pi);_.g=odc.prototype;_.g.dua=!0;_.g.Pcb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.Msb=function(a){this.dispatchEvent(new pdc(a.oldVersion,a.newVersion))};_.g.close=function(){this.dua&&(this.H.close(),this.dua=!1)};_.g.Dg=function(){return this.dua};_.g.getName=function(){return this.H.name};_.g.nj=function(){return Number(this.H.version)};_.qdc=function(a,b,c){try{return new kdc(a.H.createObjectStore(b,c))}catch(d){throw _.XH(d,"creating object store "+b);}};
_.rdc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new ndc(d,a)}catch(e){throw _.XH(e,"creating transaction");}};odc.prototype.Ya=function(){odc.ub.Ya.call(this);this.Eb.dispose()};var pdc=function(a,b){_.gi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.fg(pdc,_.gi);
_.sdc=function(){void 0==Qcc&&(Qcc=_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB);return Qcc};
_.tdc=function(a,b,c,d){var e=new _.Th;b=b?_.sdc().open(a,b):_.sdc().open(a);b.onsuccess=function(f){f=new odc(f.target.result);e.callback(f)};b.onerror=function(f){e.Gd(_.WH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new odc(f.target.result);c(new pdc(f.oldVersion,f.newVersion),h,new ndc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new pdc(f.oldVersion,f.newVersion))};return e};

_.u();

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

/*

 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.Wa=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++};

_.u();

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

_.udc=function(a,b,c){_.zma(a.url,function(d){d=d.target;d.vA()?b(d.Wk()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.vdc=function(a,b,c,d){return _.C(a,1).split("/").pop()==d?(d=_.z(a,2),Array.isArray(d)?new b(d):c(_.tb(a.Wa()))):null};_.xdc=function(a){_.J.call(this,a,-1,wdc)};_.K(_.xdc,_.J);var wdc=[2];
_.ydc=function(a){_.J.call(this,a)};_.K(_.ydc,_.J);var zdc=function(){var a=new _.ydc,b=document.documentElement.getAttribute("lang");return _.x(a,5,b)};_.ydc.prototype.Ki=function(){return _.z(this,7)};
_.Adc=function(a){_.J.call(this,a)};_.K(_.Adc,_.J);
var Bdc;_.$H=function(a){_.J.call(this,a,31,Bdc)};_.K(_.$H,_.J);_.aI=function(a,b){return _.x(a,8,b)};Bdc=[3,20,27];
var Ddc=function(a){_.J.call(this,a,17,Cdc)};_.K(Ddc,_.J);var Edc=function(a){var b=Date.now().toString();return _.x(a,4,b)},Fdc=function(a,b){return _.lj(a,3,b)},Gdc=function(a,b){return _.x(a,14,b)},Cdc=[3,5];
var Idc=function(a){_.J.call(this,a,6,Hdc)};_.K(Idc,_.J);var Hdc=[5];
var Jdc=function(a){_.J.call(this,a)};_.K(Jdc,_.J);
var Kdc=_.Eb(175237375,Jdc);
_.bI=function(a,b,c,d,e,f,h,k,l,p,q){_.pi.call(this);var r=this;this.Ia="";this.O=[];this.Ec="";this.Gb=this.Kb=this.ha=!1;this.Nc=this.ob=-1;this.Qb=!1;this.Ba=this.V=null;this.ta=0;this.le=1;this.timeoutMillis=0;this.kb=!1;_.pi.call(this);this.Vc=a;this.jc=b||_.bg;this.ka=new Ddc;this.Ad=d;this.yb=q;this.he=_.Ob(_.Jja,0,1);this.wa=e||null;this.Fa=c||null;this.Pa=h||!1;this.$a=l||null;this.Xf=null;this.withCredentials=!k;this.tc=f||!1;this.Rd=!this.tc&&(_.bj.wo&&_.Qb(65)||_.bj.ev&&_.Qb(45)||_.bj.xx&&
_.Qb(12)||_.Sa()&&0<=_.Ra(_.zaa(),12))&&!!_.If()&&!!_.If().navigator&&!!_.If().navigator.sendBeacon;a=_.x(new _.Adc,1,1);f||(f=zdc(),_.G(a,11,f));_.G(this.ka,1,a);_.x(this.ka,2,this.Vc);this.ma=new _.YH(1E4,3E5,.1);this.H=new _.qi(this.ma.Wa());this.Ja(this.H);_.cf(this.H,"tick",_.uha(Ldc(this,p)),!1,this);this.Ka=new _.qi(6E5);this.Ja(this.Ka);_.cf(this.Ka,"tick",_.uha(Ldc(this,p)),!1,this);this.Pa||this.Ka.start();this.tc||(_.cf(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
r.Ua()}),_.cf(document,"pagehide",this.Ua,!1,this))};_.K(_.bI,_.pi);var Ldc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.bI.prototype.Ya=function(){this.Ua();_.pi.prototype.Ya.call(this)};var Mdc=function(a){a.wa||(a.wa=.01>a.he()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.wa};_.bI.prototype.W=function(a){a instanceof _.$H?this.log(a):(a=_.aI(new _.$H,a.Hc()),this.log(a))};
_.Ndc=function(a,b){b?(a.V||(a.V=new _.xdc),b=b.Hc(),_.x(a.V,4,b)):a.V&&_.vb(a.V,4)};_.Odc=function(a){a.Kb=a.Rd};_.Pdc=function(a,b){a.ma=new _.YH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Wa())};
_.bI.prototype.log=function(a){a=a.clone();var b=this.le++;_.x(a,21,b);this.Ia&&_.x(a,26,this.Ia);if(!_.z(a,1)){b=a;var c=Date.now().toString();_.x(b,1,c)}_.dj(a,15)||_.x(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.G(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.ta;this.O.push(a);this.dispatchEvent(new Qdc(a));this.Pa||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)Rdc(this);else{var d=Date.now();if(this.Nc>d&&this.ob<d)b&&b("throttled");else{var e=Gdc(Fdc(Edc(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=Mdc(this);this.Fa&&(d["X-Goog-AuthUser"]=this.Fa,h=_.Li(h,"authuser",this.Fa));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Li(h,"pageId",this.$a));if(f&&this.Ec===f)b&&b("stale-auth-token");else if(this.O=[],this.H.enabled&&this.H.stop(),
this.ta=0,this.ha)a&&a();else{var k=e.Hc(),l;this.Ba&&this.Ba.Ku(k.length)&&(l=this.Ba.hcc(k));var p={url:h,body:k,Wob:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(w){c.ma.reset();c.H.setInterval(c.ma.Wa());if(w){var A=null;try{var B=JSON.parse(w.replace(")]}'\n",""));A=new Idc(B)}catch(E){}A&&(w=Number(_.rna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Nc=c.ob+w),A=_.sj(A,Kdc))&&(A=_.wj(A,1,-1),-1!=A&&(c.Qb||_.Pdc(c,A)))}a&&a()},r=
function(w){var A=_.yb(e,_.$H,3);_.ZH(c.ma);c.H.setInterval(c.ma.Wa());401===w&&f&&(c.Ec=f);if(500<=w&&600>w||401===w||0===w)c.O=A.concat(c.O),c.Pa||c.H.enabled||c.H.start();b&&b("net-send-failed",w)},v=function(){c.yb?c.yb.send(p,q,r):c.Ad(p,q,r)};l?l.then(function(w){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=w;p.Wob=2;v()},function(){v()}):v()}}}};_.bI.prototype.Ua=function(){this.ha||(this.Kb&&Rdc(this),this.Gb&&Sdc(this),this.flush())};
var Rdc=function(a){Tdc(a,32,10,function(b,c){b=_.Li(b,"format","json");b=_.If().navigator.sendBeacon(b,c.Hc());a.kb&&!b&&(a.kb=!1);return b})},Sdc=function(a){Tdc(a,6,5,function(b,c){b=_.Ji(b,"format","base64json","p",_.cj(c.Hc(),3));if(15360<b.length)return!1;_.Tg(new Image,b);return!0})},Tdc=function(a,b,c,d){if(0!==a.O.length){var e=_.uma(Mdc(a),"format");e=_.Ji(e,"auth",a.jc(),"authuser",a.Fa||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Fdc(Edc(a.ka.clone()),h);0===f&&Gdc(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},Qdc=function(){_.gi.call(this,"event-logged",void 0)};_.K(Qdc,_.gi);

_.u();

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

var Udc=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,w=0;64>w;w+=4)v[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=v[w-3]^v[w-8]^v[w-14]^v[w-16],v[w]=(r<<1|r>>>31)&4294967295;r=e[0];var A=e[1],B=e[2],E=e[3],I=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var M=E^A&(B^E);var P=1518500249}else M=A^B^E,P=1859775393;else 60>w?(M=A&B|E&(A|B),P=2400959708):(M=A^B^E,P=3395469782);M=((r<<5|r>>>27)&4294967295)+
M+I+P+v[w]&4294967295;I=E;E=B;B=(A<<30|A>>>2)&4294967295;A=r;r=M}e[0]=e[0]+r&4294967295;e[1]=e[1]+A&4294967295;e[2]=e[2]+B&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+I&4294967295}function c(r,v){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],A=0,B=r.length;A<B;++A)w.push(r.charCodeAt(A));r=w}v||(v=r.length);w=0;if(0==p)for(;w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64;for(;w<v;)if(f[p++]=r[w++],q++,64==p)for(p=0,b(f);w+64<v;)b(r.slice(w,w+64)),w+=64,q+=64}function d(){var r=[],
v=8*q;56>p?c(k,56-p):c(k,64-(p-56));for(var w=63;56<=w;w--)f[w]=v&255,v>>>=8;b(f);for(w=v=0;5>w;w++)for(var A=24;0<=A;A-=8)r[v++]=e[w]>>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="",w=0;w<r.length;w++)v+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return v}}},Vdc=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("hf`"+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("jf`"+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 Xdc=function(a,b,c){var d=String(_.n.location.href);return d&&a&&b?[b,Wdc(Vdc(d),a,c||null)].join(" "):null},Wdc=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ma(d,function(k){e.push(k)}),Ydc(e.join(" "));var f=[],h=[];_.Ma(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.qa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ma(d,function(k){e.push(k)});a=Ydc(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},Ydc=function(a){var b=
Udc();b.update(a);return b.digestString().toLowerCase()};
var Zdc={};
var $dc,bec;$dc=function(a){return!!Zdc.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.aec=function(a){a=void 0===a?!1:a;var b=_.n.__SAPISID||_.n.__APISID||_.n.__3PSAPISID||_.n.__OVERRIDE_SID;$dc(a)&&(b=b||_.n.__1PSAPISID);if(b)return!0;var c=new _.wNa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");$dc(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};bec=function(a,b,c,d){(a=_.n[a])||(a=(new _.wNa(document)).get(b));return a?Xdc(a,c,d):null};
_.cec=function(a,b){b=void 0===b?!1:b;var c=Vdc(String(_.n.location.href)),d=[];if(_.aec(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 _.wNa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Xdc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&$dc(b)&&((b=bec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=bec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.u();

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

_.dec=function(a,b){this.ka=a;this.wa=b;this.V="https://play.google.com/log?format=json&hasfast=true";this.W=!1;this.ma=_.udc;this.H=""};
_.dec.prototype.build=function(){var a=new _.bI(this.ka,this.Ka?this.Ka:_.cec,this.wa,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;_.z(b,1)||_.x(b,1,1);_.G(a.ka,1,b)}if(this.O){b=this.O;var c=_.y(a.ka,_.Adc,1),d=_.y(c,_.ydc,11);d||(d=new _.ydc);_.x(d,7,b);_.G(c,11,d);_.z(c,1)||_.x(c,1,1);_.G(a.ka,1,c)}this.ha&&(a.Ba=this.ha);this.H&&(a.Ia=this.H);this.Ba&&_.Ndc(a,this.Ba);this.Pa&&(b=this.Pa,a.V||(a.V=new _.xdc),_.jj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.Pdc(a,b));return a};

_.u();

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

_.eec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.fec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.fec.prototype.PA=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.Hc());b(a);return new _.Nh(function(d){c(d,function(){d()})}.bind(this))};
_.gec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Odc(this.O)};_.gec.prototype.PA=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.Hc());b(a);c()};

_.u();

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


_.u();

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

var hec;hec=[1];_.cI=function(a){_.J.call(this,a,-1,hec)};_.K(_.cI,_.J);_.cI.prototype.H=function(){return _.re(this,1)};_.iec=function(a,b){return _.jj(a,1,b)};_.dI=function(a){_.J.call(this,a)};_.K(_.dI,_.J);_.g=_.dI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.getState=function(){return _.z(this,5)};_.g.Id=function(a){return _.x(this,5,a)};
_.g.wt=function(){return _.dj(this,5)};_.jec=function(a){_.J.call(this,a)};_.K(_.jec,_.J);_.jec.prototype.H=function(){return _.z(this,1)};_.jec.prototype.Cb=function(){return _.z(this,2)};_.jec.prototype.Dc=function(a){return _.x(this,2,a)};_.jec.prototype.V=function(){return _.z(this,3)};_.lec=function(a){_.J.call(this,a,-1,kec)};_.K(_.lec,_.J);_.lec.prototype.H=function(){return _.re(this,1)};var kec=[1];
_.nec=function(a){_.J.call(this,a,-1,mec)};_.K(_.nec,_.J);_.nec.prototype.H=function(){return _.yb(this,_.jec,1)};var mec=[1];
_.pec=function(a){_.J.call(this,a,-1,oec)};_.K(_.pec,_.J);_.pec.prototype.H=function(){return _.yb(this,_.nec,1)};var oec=[1];
_.qec=function(a){_.J.call(this,a)};_.K(_.qec,_.J);_.qec.prototype.V=function(){return _.y(this,_.pec,1)};_.qec.prototype.H=function(){return _.y(this,_.lec,2)};
_.eI=function(a){_.J.call(this,a,-1,rec)};_.K(_.eI,_.J);_.g=_.eI.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Ak,2)};_.g.iB=function(a){return _.lj(this,2,a)};_.g.dh=function(a,b){return _.qj(this,2,a,_.Ak,b)};_.g.Yj=function(){return _.z(this,3)};_.g.Tl=function(){return _.R(this,5,!0)};_.g.i7=function(){return _.y(this,_.qec,7)};_.g.eua=function(){return _.Q(this,8)};_.g.Vf=function(){return _.z(this,17)};
_.g.gQ=function(a){return _.x(this,17,a)};_.g.We=function(){return _.z(this,12)};_.g.ti=function(a){return _.x(this,12,a)};_.g.Yn=function(){return _.z(this,15)};_.g.Ila=function(){return _.re(this,18)};var rec=[2,14,18];_.eI.prototype.Tb="eO39Zd";

_.u();

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

var sec=function(a){_.J.call(this,a)};_.K(sec,_.J);sec.prototype.getEmail=function(){return _.C(this,3,"")};sec.prototype.wq=function(){return _.dj(this,3)};_.fI=function(a){return _.y(a,sec,36,1)};

_.u();

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


_.u();

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

_.gI=function(a,b){return _.x(a,b,_.ona)};_.tec=function(a){if(_.gna)return _.n.atob(a);var b="";_.ina(a,function(c){b+=String.fromCharCode(c)});return b};_.hI=function(a,b,c,d,e,f,h){_.bI.call(this,a,_.cec,b,_.udc,c,d,e,void 0,f,h)};_.K(_.hI,_.bI);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var uec;_.iI=function(a,b,c){if(0!==a.O)return!1;_.x(b,c,a.H.ka());return!0};uec=[3,42];_.vec=function(a){_.J.call(this,a,-1,uec)};_.K(_.vec,_.J);_.vec.prototype.getMimeType=function(){return _.z(this,27)};var wec=function(a,b){if(b&&a in b)return a;var c=_.PFa();return c?(c=c.toLowerCase(),a=c+_.Zja(a),void 0===b||a in b?a:null):null};
var xec=function(a){_.gi.call(this,"visibilitychange");this.hidden=a};_.K(xec,_.gi);
_.yec=function(a){_.pi.call(this);this.xd=a||_.tc();if(this.Uz=this.Cvb())this.H=_.cf(this.xd.Vb(),this.Uz,(0,_.L)(this.Qcb,this))};_.fg(_.yec,_.pi);_.g=_.yec.prototype;_.g.Cvb=_.sea(function(){var a=this.Ku(),b="hidden"!=this.UBa();if(a){var c;b?c=((_.PFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.UBa=_.sea(function(){return wec("hidden",this.xd.Vb())});_.g.uxb=_.sea(function(){return wec("visibilityState",this.xd.Vb())});_.g.Ku=function(){return!!this.UBa()};
_.g.VB=function(){return!!this.xd.Vb()[this.UBa()]};_.g.Qcb=function(){var a=this.Ku()?this.xd.Vb()[this.uxb()]:null;a=new xec(this.VB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.ni(this.H);_.yec.ub.Ya.call(this)};

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.zec=function(a,b,c,d,e,f){var h=new _.Si(null,void 0);a&&h.Or(a);b&&_.Qma(h,b);c&&h.Nn(c);d&&h.TA(d);e&&h.Bi(e);f&&_.Ti(h,f);return h};_.Aec=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};_.jI=function(a){return new _.Nh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{p$:!0,value:p}:{p$:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.Fka(h,_.Ob(e,f,!0),_.Ob(e,f,!1));else b(d)})};
_.kI=function(a,b,c){_.N.call(this);this.$m=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.K(_.kI,_.N);_.g=_.kI.prototype;_.g.oe=function(a){this.W=arguments;this.H||this.V?this.O=!0:Bec(this)};_.g.stop=function(){this.H&&(_.si(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,Bec(this))};_.g.Ya=function(){_.N.prototype.Ya.call(this);this.stop()};
var Bec=function(a){a.H=_.ri(function(){a.H=null;a.O&&!a.V&&(a.O=!1,Bec(a))},a.ha);var b=a.W;a.W=null;a.$m.apply(null,b)};

_.u();

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

var Cec=function(a){_.J.call(this,a)},Hec;_.K(Cec,_.J);var Dec=function(a){_.J.call(this,a)};_.K(Dec,_.J);_.lI=function(a){_.J.call(this,a)};_.K(_.lI,_.J);_.lI.prototype.A5=function(a){_.x(this,3,a)};_.lI.prototype.Ll=function(a){return _.G(this,5,a)};_.lI.prototype.getMimeType=function(){return _.z(this,7)};var Eec=[2],Fec=function(a){_.J.call(this,a,-1,Eec)};_.K(Fec,_.J);var Gec=function(a){_.J.call(this,a)};_.K(Gec,_.J);Hec=function(a){this.H=a};_.Iec=function(a){this.Ld=a};
_.Iec.prototype.getId=function(){return this.Ld};var Jec=function(a){_.J.call(this,a)};_.K(Jec,_.J);Jec.prototype.nj=function(){return _.z(this,1)};var Kec=function(a){_.J.call(this,a)};_.K(Kec,_.J);
var Mec=function(){this.H=this.W=!1;this.Mo=null;for(var a=this.V=this.O=0;a<_.VBa.length;a++){var b=_.VBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.W=!0;Lec(this,b);break}}},Lec=function(a,b){a.Mo=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.H=!0;a.Mo.onDisconnect.addListener(function(){a.H=!1});document.addEventListener("mousemove",function(c){a.O=c.clientX;a.V=c.clientY})};
Mec.prototype.PA=function(a){if(this.W&&this.H){var b=_.y(a,_.oc,2)||new _.oc,c=_.y(a,_.vo,5)||new _.vo,d=_.y(a,_.lI,3)||new _.lI;a=_.yb(a,_.io,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.Mo.postMessage({detail:{impression:e.value.Hc(),session_info:b.Hc(),session_invariants:c.Hc(),client_info:d.Hc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.O,clientY:this.V}}))}};
var Nec=function(){_.oo.call(this)};_.K(Nec,_.oo);Nec.prototype.Rv=function(){return 1==_.z(_.y(this.H,Cec,7),1)};var Oec=new _.ko("high_frequency_builder");
var Pec=function(a,b,c){a=new _.qi(a);c.Ja(a);var d=new _.nf(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var Qec=function(){_.oo.call(this)};_.K(Qec,_.oo);var Rec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.bo;var e=new _.Lza;e=_.x(e,1,d);_.G(b,1,e);_.x(b,3,1);_.G(a.H,8,b);_.x(a.H,12,c);_.x(a.H,13,c);_.x(a.H,4,d);_.x(a.H,3,c)}else 1==b&&(b=new _.bo,e=new _.Mza,d=_.x(e,1,d),_.G(b,2,d),_.x(b,3,2),_.G(a.H,8,b),_.x(a.H,12,c),_.x(a.H,3,c));return a},Sec=new _.ko("system_builder");
var Tec=function(a,b){_.N.call(this);this.O=a;this.H=new _.yec(b);this.Ja(this.H);this.Eb=new _.nf(this);this.Ja(this.Eb);this.H.Ku()&&this.Eb.listen(this.H,"visibilitychange",this.V)};_.K(Tec,_.N);Tec.prototype.V=function(){if(this.O.hQ()){var a=this.H.VB()?102001:102E3;a=this.O.rG(a,0);this.O.an(a)}};
var Uec=function(a,b,c){c=void 0===c?!1:c;_.N.call(this);this.H=a;this.O=b;this.Ja(this.O);this.W=c;this.V=null};_.K(Uec,_.N);_.g=Uec.prototype;_.g.an=function(a){var b=this.H;_.x(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 Hec(a)};_.g.rG=function(a,b){a=Rec(Vec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.dM=function(){return this.H.O};
_.g.Lw=function(a){var b=this.H,c=_.po(a,Sec),d=b.ha++,e=_.y(_.y(c.H,_.bo,8),_.Mza,2),f=1E3*Date.now();_.x(e,2,f);_.x(c.H,13,d);b.ka.remove(_.z(a.H,12))};_.g.M_=function(){var a=this.O;if(!a.ha||a.H.V){var b=Wec(a.H,691).build();b=Xec(a.H,[b]);a.ka.PA(b)}a.W();this.H.ma=!1;this.V&&(_.ca(this.V),this.V=null)};_.g.N_=function(){var a=this.H,b=Wec(a,716);Yec(a,b);b=b.build();a.H.add(b);a.wa=!0;a.ma=!0;this.O.initialize();this.O.O.oe();this.W&&(this.V=new Tec(this))};_.g.j7=function(){this.O.W();return _.jI(Array.from(this.O.V)).then()};
_.g.hQ=function(){var a=this.H;return a.wa&&a.ma&&!0};
var Zec=function(a,b,c,d,e){_.N.call(this);this.H=a;this.ta=b;this.ka=c;this.O=new _.kI(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.K(Zec,_.N);Zec.prototype.initialize=function(){Pec(this.ma,this.O.oe,this.O);Pec(36E5,this.wa,this)};Zec.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=$ec(this.H),c=this.ta.PA(b);c&&(_.Sh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
Zec.prototype.wa=function(){var a=this.H,b=Wec(a,1153).build();a.H.add(b);this.O.oe()};
var afc=function(a){_.N.call(this);this.H=a;this.Ja(this.H)};_.K(afc,_.N);_.g=afc.prototype;_.g.an=function(a){a=this.H.an(a);this.j7();return a};_.g.rG=function(a,b){return this.H.rG(a,b)};_.g.dM=function(){return this.H.dM()};_.g.Lw=function(a){return this.H.Lw(a)};_.g.M_=function(){return this.H.M_()};_.g.N_=function(){return this.H.N_()};_.g.j7=function(){return this.H.j7()};_.g.hQ=function(){return this.H.hQ()};
var bfc=function(){};bfc.prototype.AR=function(){return new Nec};
var cfc=function(){this.H=[]};cfc.prototype.add=function(a){this.H.push(a)};cfc.prototype.$b=function(){return this.H.length};
var dfc=function(){this.H={}};dfc.prototype.add=function(a){this.H[_.z(a.H,12)]=a};dfc.prototype.remove=function(a){delete this.H[a]};
var efc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new dfc;this.H=new cfc;this.ma=this.wa=this.V=!1},Vec=function(a,b){a=_.po((new _.oo).initialize(new _.io,a.Ba),Sec);_.x(a.H,10,b);return a},$ec=function(a){var b=a.H,c=b.H;b.H=[];return Xec(a,c)},Xec=function(a,b){var c=new _.jBa;var d=a.O.O.clone();c=_.G(c,2,d);d=a.O;(d=d.V?d.V.clone():null)&&_.G(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.y(b[h],_.ho,5);if(k&&_.y(k,_.vec,1)){k=_.y(k,_.vec,1);_.dj(k,12)&&
void 0===e&&(e=_.Q(k,12));k=_.y(k,Dec,20);if(void 0!==k&&void 0===f){f=new Kec;var l=_.Q(k,2);void 0!==l&&_.x(f,2,l);k=_.Q(k,1);void 0!==k&&_.x(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 _.lI),void 0!==e&&_.x(d,6,e),void 0!==f&&_.G(d,13,f);(e=d)&&_.G(c,3,e);a=a.O.ha.clone();_.G(c,4,a);_.lj(c,1,b);return c},Wec=function(a,b){var c=Rec(Vec(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 Gec;k=_.x(p,1,k);l=_.x(k,2,_.z(l.H,10));f.push(l)}d=f}716!=b&&(b=a.ta,_.x(c.H,6,a.W),e=new Fec,b=_.x(e,1,b),d&&_.lj(b,2,d),d=_.qo(c),_.G(d,3,b));Yec(a,c);return c},Yec=function(a,b){a.W=_.z(b.H,12);a.ta=_.z(_.y(_.y(b.H,_.bo,8),_.Lza,1),1)};
var ffc=function(){};ffc.prototype.AR=function(){return new Qec};
var gfc=function(){this.H=this.O=null};gfc.prototype.build=function(){null==this.H&&(this.H=new _.KAa);_.so(this.H,Sec,new ffc);_.so(this.H,Oec,new bfc);var a=this.H;var b=this.O;if(!_.dj(_.hfc(b),1)){var c=_.hfc(b),d=new _.$Aa;_.G(c,1,d)}b=_.y(_.hfc(b),_.$Aa,1);a.H=b;b=_.Ya(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new efc(this.O,this.H)};
var ifc=function(){this.O=new _.oc;this.V=null;this.ha=new Jec;_.x(this.ha,1,6);this.H=this.W=null};ifc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.jfc=function(a,b){_.x(a.O,2,b);return a};_.kfc=function(a,b){if(null==a.W){a.W=new _.hBa;var c=_.hfc(a);_.G(c,2,a.W)}_.x(a.W,1,b)};_.hfc=function(a){null==a.V&&(a.V=new _.vo);return a.V};_.lfc=function(a){null==a.H&&(a.H=new _.lI);return a.H};
_.mfc=function(){this.H=this.ha=null;this.W=new ifc;this.V=null;this.ka=this.ma=!1;this.O=null};_.nfc=function(a,b){a.ha=b;return a};_.ofc=function(a,b){a.H=b;return a};_.pfc=function(a,b){a.V=b;return a};_.mfc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.qfc=function(a,b){_.x(a.W.O,6,b);return a};
_.mfc.prototype.build=function(){var a=new gfc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Mec;this.H=this.ha=b}b=new Zec(a,this.ha,this.H,this.ma,this.O);a=new Uec(a,b,!1);this.ka&&(a=new afc(a));return a};

_.u();

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

_.mI=function(a){return _.R(a,84,!1)};
_.rfc=function(a){_.J.call(this,a)};_.K(_.rfc,_.J);
_.nI=function(a){_.J.call(this,a)};_.K(_.nI,_.J);_.nI.prototype.getOptions=function(){return _.y(this,_.rfc,1)};_.nI.prototype.Yn=function(){return _.z(this,2)};_.nI.prototype.jd=function(){return _.y(this,_.Af,3)};
_.sfc=function(a){_.J.call(this,a)};_.K(_.sfc,_.J);_.oI=[3,4,5,6,7,8,9,10];
_.tfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var wfc;_.ufc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.vfc=_.fb(_.ufc);wfc={};_.xfc=(wfc[0]="UNSPECIFIED_FEEDBACK",wfc[1]="IMPLICIT_REJECT",wfc[2]="NOT_HELPFUL_RIGHT_NOW",wfc);
var pI,zfc;pI={};_.yfc=(pI[1]="modifiedDate",pI[2]="modifiedByMeDate",pI[3]="quotaBytesUsed",pI[4]="title",pI[6]="lastViewedByMeDate",pI[10]="createdDate",pI[7]="sharedWithMeDate",pI[9]="starred",pI[11]="recency",pI[5]="relevance",pI[12]="trashedDate",pI[13]="lastViewedByMeDate",pI);zfc={};_.Afc=(zfc[1]="asc",zfc[2]="desc",zfc);
var Bfc,Dfc;Bfc={};_.Cfc=(Bfc[1]="0",Bfc[2]="1",Bfc[3]="2",Bfc);Dfc={};_.Efc=(Dfc[1]="asc",Dfc[2]="desc",Dfc);
_.Ffc=new _.ko("drive_dataservice_builder");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Gfc=_.Ag&&0>_.Ra(_.Dg,"533");
_.Hfc=new _.Iec("drive_dataservice_invariants");
_.Ifc=new Map([[[1],1],[[6],7],[[2],2]]);_.Jfc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.Kfc=new Map([[12,function(a){return _.Q(a,69)}],[24,function(a){return _.R(a,3,!1)}],[9,function(a){return _.R(a,17,!1)}],[21,function(a){return _.mI(a)}],[13,function(a){return _.Q(a,60)}],[2,function(a){return _.R(a,8,!0)}],[6,function(a){return _.R(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.R(a,56,!1)}],[17,function(a){return _.R(a,57,!1)}],[18,function(a){return _.R(a,54,!1)}],[19,function(a){return _.R(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.Lfc=new Map([[34,function(a){return _.R(a,9,!1)}],[33,function(a){return _.R(a,8,!1)}],[29,function(a){return _.R(a,4,!1)}],[32,function(a){return _.R(a,7,!1)}],[40,function(a){return _.R(a,15,!1)}],[43,function(a){return _.R(a,18,!1)}],[42,function(a){return _.R(a,17,!1)}],[44,function(a){return _.R(a,19,!1)}],[45,function(a){return _.R(a,20,!1)}],[30,function(a){return _.R(a,5,!1)}],[31,function(a){return _.R(a,6,!1)}],[35,function(a){return _.R(a,10,!1)}],[39,function(a){return _.R(a,14,!1)}],
[41,function(a){return _.R(a,16,!1)}],[46,function(a){return _.R(a,21,!1)}],[47,function(a){return _.R(a,22,!1)}],[48,function(a){return _.R(a,23,!1)}]]);_.Mfc=new Map([[[1],1],[[2],2],[[3],3],[[4],4],[[5],5]]);
_.Nfc=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],[[255],255],[[256],256],[[257],257],[[258],258]]);_.Ofc=new Map([[[2],3],[[1],2],[[0],1]]);_.Pfc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);
_.Qfc=new Map([[[_.Ucc],1],[[_.Vcc],2],[[_.Wcc],3],[[_.Xcc],4],[[_.Ycc],5],[[_.Zcc],6],[[_.$cc],7],[[_.adc],8],[[_.bdc],10],[[_.cdc],11],[[_.ddc],12],[[_.edc],13]]);_.Rfc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.u();

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


_.u();

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


_.u();

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

_.qI=function(a){_.J.call(this,a,-1,Sfc)};_.K(_.qI,_.J);_.qI.prototype.qc=function(){return _.z(this,2)};_.rI=function(a,b){return _.x(a,2,b)};_.g=_.qI.prototype;_.g.getItem=function(){return _.y(this,_.Ak,4)};_.g.setItem=function(a){return _.G(this,4,a)};_.g.uc=function(){return _.z(this,7)};_.g.Ela=function(){return _.z(this,13)};_.g.yKa=function(a){_.x(this,13,a)};var Sfc=[8,17];

_.u();

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

var Tfc;Tfc="Y Z E P T G M K  m u n".split(" ");_.Ufc=function(a,b){var c=a;a=c;var d="",e=1;0>c&&(c=-c);if(Infinity===c)b=(Infinity*Math.sign(a)).toString();else{for(var f=0;f<Tfc.length;f++){var h=Tfc[f];e=_.Rwa[h];if(c>=e||1>=e&&c>.1*e){d=h;break}}d||(e=1);b=Math.pow(10,void 0!==b?b:2);b=Math.round(a/e*b)/b+""+d}return b};_.Vfc=function(a){return _.je().get(a,16,void 0)};

_.u();

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

_.sI=function(a){return a instanceof Error};

_.u();

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

var Yfc;_.vI=function(a){if(a instanceof _.Gc)return a;if(_.sI(a)){if(a=_.zda(a))return a}else a="string"===typeof a?_.ZBa(a):_.ZBa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.tI(a,2);_.uI(a,6);return a};_.Wfc=function(a){var b=a.Wj();a=a.oG();return 15===b||32===b||33===b||401===a};_.Xfc=function(){return _.n.WorkerGlobalScope&&self instanceof _.n.WorkerGlobalScope};_.wI=function(a){return _.wj(a,1,0)};
_.tI=function(a,b){return _.x(a,1,b)};_.uI=function(a,b){return _.x(a,2,b)};Yfc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.xI=function(a){_.J.call(this,a,-1,Yfc)};_.K(_.xI,_.J);_.g=_.xI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.Bf=function(){return _.z(this,3)};_.g.kl=function(a){return _.x(this,3,a)};_.g.ox=function(a){return _.x(this,4,a)};
_.g.Qh=function(){return _.Q(this,5)};_.g.Qo=function(a){return _.x(this,5,a)};_.g.getMimeType=function(){return _.z(this,6)};_.g.UE=function(a,b){_.nj(this,8,a,b)};_.g.Mi=function(){return _.z(this,12)};_.g.re=function(){return _.y(this,_.Lf,17)};_.g.nj=function(){return _.z(this,20)};_.g.uc=function(){return _.z(this,21)};_.yI=function(a,b){return _.x(a,16,b)};
_.zI=function(a){_.J.call(this,a,-1,Zfc)};_.K(_.zI,_.J);_.zI.prototype.NR=function(){return _.wj(this,2,100)};_.zI.prototype.oP=function(a){return _.x(this,2,a)};_.zI.prototype.re=function(){return _.y(this,_.Lf,6)};_.zI.prototype.uc=function(){return _.z(this,8)};var Zfc=[5];
_.$fc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var agc;agc={};_.bgc=(agc[0]="/drive/v2internal",agc[1]="/drive/v2internal.corp",agc[2]="/drive/v2internal.scary",agc[4]="/drive/v2internal.scary",agc[5]="/drive/v2beta",agc[6]="/drive/v2.1beta",agc);
_.cgc=new Set([0,1,2,3]);
_.dgc=_.x(new _.xI,15,!0);_.egc=_.yI(new _.xI,!0);_.fgc=_.yI(new _.xI,!1);
_.ggc=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."]]);

_.u();

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

_.hgc=new Set([7,4,5,9,6,10,11,12]);

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.igc=function(a){a=_.lb(a);return 0===a.length?_.ija:new _.Hg(a,_.gja)};_.jgc=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)};_.fg(_.jgc,_.Ncc);_.jgc.prototype.reset=function(){this.H.reset();this.H.update(this.O)};
_.jgc.prototype.update=function(a,b){this.H.update(a,b)};_.jgc.prototype.digest=function(){var a=this.H.digest();this.H.reset();this.H.update(this.V);this.H.update(a);return this.H.digest()};_.kgc=function(a,b){a.reset();a.update(b);return a.digest()};
_.lgc=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()};_.fg(_.lgc,_.Ncc);_.lgc.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 mgc=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};
_.lgc.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;)mgc(this,a,d),d+=this.blockSize;if("string"===typeof a)for(;d<b;){if(e[f]=a.charCodeAt(d),++f,++d,f==this.blockSize){mgc(this,e);f=0;break}}else for(;d<b;)if(e[f]=a[d],++f,++d,f==this.blockSize){mgc(this,e);f=0;break}}this.O=f;this.V+=b}};
_.lgc.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;mgc(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};

_.u();

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

_.AI=function(a,b){return _.x(a,82,b)};_.BI=function(a){return _.R(a,3,!1)};_.CI=function(a){return _.x(a,3,!0)};_.ngc=function(a,b){return _.x(a,7,b)};
_.ogc=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
*/
_.DI={q0:"Versions",d8:"Metadata",S6:"Data",aV:"Offline"};_.pgc=new Map([[_.DI.q0,"versionKey"],[_.DI.d8,"k"]]);_.qgc=new Set([1004]);

_.u();

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

_.rgc=function(a){_.J.call(this,a)};_.K(_.rgc,_.J);_.g=_.rgc.prototype;_.g.getKey=function(){return _.z(this,1)};_.g.vt=function(){return _.dj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.dj(this,2)};
_.EI=function(a){_.J.call(this,a,-1,sgc)};_.K(_.EI,_.J);_.EI.prototype.fA=function(){return _.z(this,1)};_.EI.prototype.getUrl=function(){return _.z(this,3)};var sgc=[2,4,6];

_.u();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.tgc=function(a,b,c){c&&(a=_.bh(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.ah(a));return a};_.FI=function(){return"goog_"+_.Wja++};_.ugc=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};
_.GI=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};_.GI.prototype.clone=function(){return new _.GI(this.start,this.end)};_.HI=function(a){return a.end-a.start};
_.vgc=function(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};

_.u();

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

var Agc,Cgc;_.wgc=function(a){var b={};_.Ta(a,function(c,d){b[d.toLowerCase()]=c});return b};_.xgc=function(a){return(a=a&&_.wgc(a))&&a["x-guploader-uploadid"]};_.ygc=function(a){return(a=a&&_.wgc(a))&&a["x-google-trace"]};_.II=function(a,b){return _.x(a,14,b)};
_.Bgc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.zgc(a))return null;e=Agc(e)||new _.Gc;_.x(e,8,!0);k&&(k=_.Ti(new _.Si(k),void 0).toString(),_.x(e,19,k));e.oG()||_.x(e,15,a||f);e.getMessage()||_.Bo(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.z(e,4)||_.Co(e,d);e.Wj()||(5===f?_.II(e,7):0!==a||d?403===a?_.II(e,22):503===a||429===a?_.II(e,24):(_.vb(e,14),_.x(e,10,1),_.x(e,8,!0)):l||_.II(e,2));e.Sda(_.xgc(c));e.Hda(_.ygc(c));return e};
Agc=function(a){if(!_.Ea(a))return null;var b=new _.Gc,c=a.error;if(!c)return _.Co(b,JSON.stringify(a)),null;_.x(b,15,c.code);_.Bo(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=Cgc[c];d?_.x(b,10,d):c&&!d&&_.x(b,10,2);(a=a.debugInfo)&&_.Co(b,a);return b};_.zgc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
Cgc={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};

_.u();

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

_.Dgc=function(a){for(var b in a)delete a[b]};_.JI=function(a,b){if(a.H)return a=a.H.responseText,b&&0==a.indexOf(b)&&(a=a.substring(b.length)),(0,_.cma)(a)};_.KI=function(a){return _.R(a,5,!1)};_.Egc=function(a,b){var c=_.y(a.H,_.Nza,9);null==c&&(c=new _.Nza);var d=_.x(c,5,_.z(b.H,10));_.x(d,2,_.z(b.H,12));_.G(a.H,9,c)};_.Fgc=function(a,b){a=_.xi(a);b=_.xi(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Ggc=function(a){var b=_.Oma(a);if("undefined"==typeof b)throw Error("V");var c=new _.Vi(null,void 0);a=_.Nma(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.Yma(c,e,f):c.add(e,f)}return c};

_.u();

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


_.u();

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

var Hgc,Igc,Lgc,Pgc,Qgc,Rgc,Sgc,Tgc,khc,FJ,lhc,mhc,thc,zhc,Lhc,Mgc,hic,jic,lic,nic,Jic,Nic,Oic,Pic,Ric,Tic,cK,eK,Wic,Xic,$ic,ajc,bjc,cjc,djc,ejc,hjc,jjc,kjc,Cjc,Gjc,Ijc,Jjc,Kjc,Qjc,Rjc,Ahc,$jc,akc,Wjc,bkc,Xjc,dkc,ekc,kkc,jkc,ikc,gkc,hkc,dhc,ehc,nhc,lkc,ohc,phc,qhc,rhc,shc,mkc,okc;_.LI=function(){var a=_.gc.apply(0,arguments);return function(b){return a.some(function(c){return c(b)})}};_.MI=function(a,b,c){var d=new _.Gc,e=_.fla(_.MI);_.x(d,20,e);_.uI(d,a);_.tI(d,b?b:2);c&&_.II(d,c);return d};
_.NI=function(a){var b;a instanceof _.Gc?b=new _.Hc(null,a):_.sI(a)?b=a:b=_.n.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("Lb`"+a);b.stack||(b.stack=_.fla(_.NI));return b};Hgc=function(a){return 7===a.Wj()||24===a.Ip()&&(a=a.oG(),503===a||429===a)?!0:!1};Igc=function(a,b){return b?b+"("+a+")":a};
_.OI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.sEb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.Jgc.includes(p)){var q=_.pjb.get(p);if(q){var r=_.sjb[p];a.iF&&r&&(q=r);a.anonymous&&(a.iF?(p=_.rjb[p])&&(q=p):(p=_.qjb[p])&&(q=p));q.split(",").forEach(function(v){var w=_.$ja(v,"/",1);1<w.length?(d[w[0]]||(d[w[0]]=[]),d[w[0]].push(w[1])):e.push(v)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={K6:f.K6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.K6=[];l.forEach(function(p){return function(q){p.K6.push(q)}}(f));"owners"==k&&b&&f.K6.push("kind");e.push(Igc(f.K6.join(","),k))}return Igc(e.join(","),c)};_.Kgc=function(a){var b=new _.ro;b.append(_.OI(a,!0));return b.toString()};Lgc=function(a){a=a.filter(function(b){return!_.pjb.has(b)});if(a.length)throw Error("nd`"+a.join(", "));};
_.Ogc=function(a){if(a){var b=a.getMimeType();b&&_.hG(a,b.toLowerCase());Mgc(a,_.yb(a,Ngc,58).map(function(c){var d=c.getMimeType();d&&_.x(c,1,d.toLowerCase());return c}))}};Pgc=function(a,b){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;_.Yi(b,c,d)}};Qgc=function(a,b){b&&Pgc({openDrive:!!_.R(b,2,!1),reason:_.z(b,1)||0,syncType:_.z(b,3)||0,errorRecovery:!!_.R(b,4,!1)},a)};Rgc=function(a){return 10>a?"0"+a:""+a};
Sgc=function(a){if(_.ab(a))return"\r\n";var b="";_.Ta(a,function(c,d){b+=d+": "+c+"\r\n"});return b};Tgc=function(a){a=_.Bo(_.II(_.tI(new _.Gc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.xd(a);};
khc=function(a){if(a instanceof _.PI)return"request access";if(a instanceof _.QI)return"admin migrate to TD";if(a instanceof _.RI)return"authorize app";if(a instanceof _.SI)return"copy item";if(a instanceof _.TI)return"change category links";if(a instanceof _.UI)return"create item";if(a instanceof _.VI)return"create ws";if("undefined"!=typeof _.WI&&a instanceof _.WI)return"delete app";if("undefined"!=typeof _.XI&&a instanceof _.XI)return"delete backup";if(a instanceof _.YI)return"delete item";if("undefined"!=
typeof _.ZI&&a instanceof _.ZI)return"delete permission";if(a instanceof _.$I)return"delete revision";if(a instanceof _.aJ)return"delete TD";if(a instanceof _.oD)return"delete pref";if(a instanceof _.bJ)return"delete ws";if(a instanceof _.cJ)return"download item";if(a instanceof _.dJ||a instanceof _.eJ)return"empty trash";if(a instanceof _.fJ)return"find by ID";if(a instanceof _.aG)return"find by IDs";if(a instanceof _.Ugc)return"item export start";if("undefined"!=typeof _.gJ&&a instanceof _.gJ)return"get app";
if("undefined"!=typeof _.hJ&&a instanceof _.hJ)return"insert app";if("undefined"!=typeof _.iJ&&a instanceof _.iJ)return"insert permission";if(a instanceof _.nI)return a=a.jd(),_.jJ(a)?"quick access item query":_.kJ(a)?"people predict item query":_.lJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.mJ&&a instanceof _.mJ)return"list android backup items request";if(a instanceof _.oJ){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 _.Vgc&&a instanceof _.Vgc?"list backups":a instanceof _.zI?"list changes":a instanceof _.pJ?"list permissions":"undefined"!=typeof _.qJ&&a instanceof _.qJ?"list revisions":a instanceof _.rJ?"migrate to shared drive":a instanceof _.sJ?"partial download item":a instanceof _.tJ?"people api":a instanceof _.$F?"get published category":"undefined"!=typeof _.uJ&&a instanceof _.uJ?"get remaining changes":
a instanceof _.vJ?"remove item":"undefined"!=typeof _.wJ&&a instanceof _.wJ?"reparent item":a instanceof _.xJ?"restore item":a instanceof _.eG?"list suggested workspace items":a instanceof _.$z?"list suggested workspaces":"undefined"!=typeof _.yJ&&a instanceof _.yJ?"update app":a instanceof _.zJ?"update category metadata":a instanceof _.xI?"update item":a instanceof _.AJ?"update revision":a instanceof _.BJ?"update TD":a instanceof _.pD?"update pref":a instanceof _.CJ?"update ws":a instanceof _.PH?
"get account":a instanceof _.gG?"get workspace":a instanceof _.Wgc?"list activity":a instanceof _.Xgc?"list category metadata":a instanceof _.Ygc?"create TD":"undefined"!=typeof _.Zgc&&a instanceof _.Zgc?"item export cancel":"undefined"!=typeof _.$gc&&a instanceof _.$gc?"item export status":"undefined"!=typeof _.ahc&&a instanceof _.ahc?"generate cse token":"undefined"!=typeof _.bhc&&a instanceof _.bhc?"get largest change ID":a instanceof _.nD?"list prefs":a instanceof _.DJ?"multipart upload":a instanceof
_.chc?"list published categories":a instanceof dhc?"init resumable upload":a instanceof ehc?"resumable upload chunk":a instanceof _.fhc?"resumable upload":a instanceof _.fG?"get TD":"undefined"!=typeof _.ghc&&a instanceof _.ghc?"move TD preflight":a instanceof _.EJ?"list TDs":"undefined"!=typeof _.hhc&&a instanceof _.hhc?"get TD stats":a instanceof _.ihc?"test connection":"undefined"!=typeof _.jhc&&a instanceof _.jhc?"list workspaces":"unknown"};
FJ=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};lhc=function(a){if(a instanceof _.UI||a instanceof _.DJ||a instanceof _.fhc||a instanceof dhc||a instanceof ehc)return(new _.GJ).Dc(8);throw Error("wf");};mhc=function(a){if(a instanceof _.xI){var b=_.kj(_.vb(a.clone(),1),17);b=_.uj(b,_.dgc)}else b=!1;b||(a instanceof _.xI?(a=_.kj(_.vb(a.clone(),1),17),b=_.uj(a,_.egc)||_.uj(a,_.fgc)):b=!1);return b?!1:!0};
_.HJ=function(a){return nhc.includes(a.constructor)?mhc(a):!1};
thc=function(a,b){var c;if(ohc.includes(a.constructor))return!0;if(b){if(_.R(b,54,!1)&&phc.includes(a.constructor))return!0;var d=_.IJ(b);if(d&&!_.R(d,7,!1)&&qhc.includes(a.constructor)&&!_.JJ(a)||_.R(b,56,!1)&&_.JJ(a)||_.R(b,57,!1)&&rhc.includes(a.constructor)||!(!_.R(b,53,!1)||phc.includes(a.constructor)||qhc.includes(a.constructor)||_.JJ(a)||rhc.includes(a.constructor)||shc.includes(a.constructor))||(null===(c=_.IJ(b))||void 0===c?0:_.R(c,20,!1))&&a.constructor===_.tJ)return!0}return!1};
zhc=function(a,b){var c,d={};_.Se(_.gh(a.getTitle()))||(_.z(a,12)?d.originalFilename=a.getTitle():d.title=a.getTitle());if(a.getMimeType()&&(d.mimeType=a.getMimeType(),a.qc()&&_.Bga(a.getMimeType())&&b)){var e=b.mma(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.cj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:uhc[e?e.H():0],keyFormat:vhc[f?f.H():0]};d.clientEncryptionDetails=h}_.whc(d,_.re(a,3));if(b=a.qc())d.id=b;_.z(a,16)&&(d.embeddingParent=
_.z(a,16));a.U2()&&(d.shortcutDetails={targetId:a.U2()});"number"===typeof _.z(a,26)&&(d.modifiedDate=_.xhc(_.yhc(_.z(a,26)||0)));return d};_.whc=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)}}};
_.KJ=function(a,b,c,d,e){if(_.R(a,89,!1)){if(c&&c.length&&d){c=b.concat(Ahc(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)!==_.el(d)&&Tgc(h):(a.set(h,_.el(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.EA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.Bhc=function(a){var b=new _.lk;return _.x(b,1,a)};_.Chc=function(a,b){return _.x(a,7,b)};_.Dhc=function(a,b){return _.x(a,8,b)};
_.Ehc=function(a,b){return _.x(a,11,b)};_.Fhc=function(a,b){return _.x(a,16,b)};_.LJ=function(a){_.J.call(this,a)};_.K(_.LJ,_.J);_.Ghc=function(a){_.J.call(this,a)};_.K(_.Ghc,_.J);var Ngc=function(a){_.J.call(this,a)};_.K(Ngc,_.J);Ngc.prototype.getMimeType=function(){return _.z(this,1)};Ngc.prototype.getUrl=function(){return _.z(this,2)};_.MJ=function(a){_.J.call(this,a)};_.K(_.MJ,_.J);_.MJ.prototype.Ce=function(){return _.z(this,2)};_.MJ.prototype.oh=function(a){return _.x(this,2,a)};
_.MJ.prototype.Ah=function(a){return _.x(this,3,a)};_.Hhc=function(a){_.J.call(this,a)};_.K(_.Hhc,_.J);_.Ihc=function(a,b){return _.x(a,1,b)};_.Jhc=function(a,b){return _.lj(a,2,b)};_.Khc=function(a,b){return _.lj(a,3,b)};Lhc=[2];_.NJ=function(a){_.J.call(this,a,-1,Lhc)};_.K(_.NJ,_.J);_.NJ.prototype.Bf=function(){return _.z(this,1)};_.NJ.prototype.kl=function(a){return _.x(this,1,a)};_.NJ.prototype.Xwa=function(a,b){return _.nj(this,2,a,b)};_.OJ=function(a){_.J.call(this,a)};_.K(_.OJ,_.J);
_.OJ.prototype.Ce=function(){return _.z(this,1)};_.OJ.prototype.oh=function(a){return _.x(this,1,a)};_.OJ.prototype.Ah=function(a){return _.x(this,2,a)};_.PJ=function(a,b){return _.jj(a,2,b)};_.Mhc=function(a,b){return _.lj(a,15,b)};_.Nhc=function(a,b){return _.G(a,17,b)};_.Ohc=function(a,b){return _.x(a,19,b)};_.Phc=function(a,b){_.x(a,34,b)};_.Qhc=function(a,b){_.G(a,47,b)};_.Rhc=function(a,b){return _.x(a,52,b)};Mgc=function(a,b){_.lj(a,58,b)};_.Shc=function(a,b){return _.x(a,72,b)};
_.QJ=function(a,b){return _.G(a,84,b)};_.Thc=function(a,b){_.G(a,85,b)};_.Uhc=function(a,b){_.G(a,91,b)};_.Vhc=function(a,b){return _.x(a,92,b)};_.Whc=function(a,b){return _.x(a,93,b)};_.Xhc=function(a,b){_.G(a,95,b)};_.Yhc=function(a,b){return _.x(a,136,b)};_.Zhc=function(a){_.J.call(this,a)};_.K(_.Zhc,_.J);_.RJ=function(a){return _.R(a,2,!1)};_.$hc=function(a){_.J.call(this,a)};_.K(_.$hc,_.J);var aic=[3],bic=function(a){_.J.call(this,a,-1,aic)};_.K(bic,_.J);
bic.prototype.yi=function(){var a=_.re(this,3,!1);this.ka||(this.ka={});if(!this.ka[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.ka[3]=!0}_.qb(this)&&_.rb(a);return a};bic.prototype.zn=function(a){return _.jj(this,3,a)};var cic=[3],dic=function(a){_.J.call(this,a,-1,cic)};_.K(dic,_.J);dic.prototype.yi=function(){return _.re(this,3)};dic.prototype.zn=function(a){return _.jj(this,3,a)};var eic=[3],fic=function(a){_.J.call(this,a,-1,eic)};_.K(fic,_.J);
fic.prototype.yi=function(){return _.re(this,3)};fic.prototype.zn=function(a){return _.jj(this,3,a)};_.SJ=function(a){_.J.call(this,a)};_.K(_.SJ,_.J);_.SJ.prototype.Wa=function(){return _.z(this,1)};_.SJ.prototype.Hb=function(a){return _.x(this,1,a)};_.SJ.prototype.Di=function(){return _.vb(this,1)};_.SJ.prototype.Ng=function(){return _.dj(this,1)};_.TJ=function(a){return _.hj(a,45,1)};_.jJ=function(a){return _.R(a,47,!1)};_.kJ=function(a){return _.R(a,49,!1)};_.lJ=function(a){return _.R(a,52,!1)};
_.UJ=function(a){return _.C(a,2,"")};_.IJ=function(a){return _.y(a,_.$hc,4)};_.VJ=function(a){return _.R(a,10,!1)};_.gic=function(a,b){return _.jj(a,27,b)};_.WJ=function(a){return _.hj(a,39,0)};_.XJ=function(a){return _.R(a,40,!1)};_.xhc=function(a){return _.kt.prototype.AP.call(a,!0)+"T"+_.fh(a.getHours(),2)+":"+_.fh(a.getMinutes(),2)+":"+_.fh(a.getSeconds(),2)+a.saa()};hic=function(a,b){return _.jdc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.iic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.XH(c,"deleting object store "+b);}};jic=function(){var a=new _.mfc;a.O=12E4;a.ma=!0;return a};_.kic=function(a){_.J.call(this,a)};_.K(_.kic,_.J);lic=[3,4,10,18,19,28];_.UI=function(a){_.J.call(this,a,-1,lic)};_.K(_.UI,_.J);_.g=_.UI.prototype;_.g.getMimeType=function(){return _.z(this,1)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.UE=function(a,b){_.nj(this,3,a,b)};
_.g.re=function(){return _.y(this,_.Lf,7)};_.g.mj=function(){return _.z(this,9)};_.g.uc=function(){return _.z(this,14)};_.g.Zz=function(){return _.y(this,_.kic,15)};_.g.U2=function(){return _.z(this,21)};_.g.qc=function(){return _.z(this,23)};_.g.Li=function(){return _.z(this,33)};_.YJ=function(a,b){return _.x(a,1,b)};_.ZJ=function(a,b){return _.jj(a,3,b)};_.mic=function(a,b){return _.x(a,12,b)};_.YI=function(a){_.J.call(this,a)};_.K(_.YI,_.J);_.YI.prototype.getId=function(){return _.z(this,1)};
_.YI.prototype.Nb=function(a){return _.x(this,1,a)};_.YI.prototype.re=function(){return _.y(this,_.Lf,3)};_.aJ=function(a){_.J.call(this,a)};_.K(_.aJ,_.J);_.aJ.prototype.getId=function(){return _.z(this,1)};_.aJ.prototype.Nb=function(a){return _.x(this,1,a)};_.aJ.prototype.re=function(){return _.y(this,_.Lf,2)};nic=[7,8];_.BJ=function(a){_.J.call(this,a,-1,nic)};_.K(_.BJ,_.J);_.g=_.BJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,4)};_.EJ=function(a){_.J.call(this,a)};_.K(_.EJ,_.J);_.EJ.prototype.getOptions=function(){return _.y(this,_.rfc,1)};_.EJ.prototype.Yn=function(){return _.z(this,2)};_.EJ.prototype.jd=function(){return _.y(this,_.RH,3)};var oic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},pic=null,qic=function(){this.O=0;this.H=[]};_.g=qic.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=ric(this,a);return this.H[a]};_.g.set=function(a,b){a=ric(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};_.g.lc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.jh=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.Qf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};
_.g.qf=function(a){return a<this.$b()};_.g.Qq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var ric=function(a,b){if(b>=a.H.length)throw Error("na");return 40>a.H.length?b:(a.O+Number(b))%40},sic=function(a){_.J.call(this,a)};_.K(sic,_.J);_.tic=function(a){_.J.call(this,a)};_.K(_.tic,_.J);_.tic.prototype.We=function(){return _.z(this,1)};_.tic.prototype.ti=function(a){return _.x(this,1,a)};_.tic.prototype.Cb=function(){return _.z(this,4)};
_.tic.prototype.Dc=function(a){return _.x(this,4,a)};var uic=function(a){_.J.call(this,a)};_.K(uic,_.J);uic.prototype.Wo=function(){return _.z(this,5)};var vic=function(a,b){_.x(a,6,b)},wic=function(a){_.J.call(this,a)};_.K(wic,_.J);_.g=wic.prototype;_.g.Qkb=function(a){return _.x(this,1,a)};_.g.OSb=function(a){return _.x(this,2,a)};_.g.Py=function(){return _.Q(this,3)};_.g.Rkb=function(a){return _.x(this,3,a)};_.g.oSb=function(a){return _.x(this,4,a)};_.g.qSb=function(a){return _.x(this,5,a)};
_.g.ASb=function(a){return _.x(this,6,a)};_.g.QSb=function(a){_.x(this,7,a)};var xic=function(a){_.J.call(this,a)};_.K(xic,_.J);xic.prototype.Py=function(){return _.Q(this,2)};var yic=function(a,b){return _.x(a,2,b)},zic=function(a,b){_.x(a,3,b)};xic.prototype.LB=function(){return _.z(this,6)};var Aic=function(a,b){return _.x(a,8,b)},Bic=function(a){_.J.call(this,a)};_.K(Bic,_.J);var Cic=function(a){_.J.call(this,a)};_.K(Cic,_.J);var Dic=function(a,b){_.x(a,4,b)},Eic=function(a){_.J.call(this,a)};
_.K(Eic,_.J);Eic.prototype.jd=function(){return _.y(this,_.tic,1)};Eic.prototype.getState=function(){return _.y(this,uic,2)};Eic.prototype.Id=function(a){return _.G(this,2,a)};Eic.prototype.wt=function(){return _.dj(this,2)};var Fic=function(a){_.J.call(this,a)};_.K(Fic,_.J);Fic.prototype.Hj=function(){return _.z(this,1)};Fic.prototype.getEnvironment=function(){return _.z(this,2)};Fic.prototype.setEnvironment=function(a){return _.x(this,2,a)};_.yhc=function(a){var b=new _.aNa;b.setTime(a);return b};
_.Gic=function(){var a=void 0===a?3E3:a;this.O=new _.Jk;this.H=new _.Jk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Hic=function(a){var b=a.O.jh();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ca(b,a.H.jh());return b};_.Iic=function(a){var b=[];a=_.Hic(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")};
_.Gic.prototype.info=function(a,b){_.$J(this,a,b,"info")};_.Gic.prototype.config=function(a,b){_.$J(this,a,b,"config")};_.Gic.prototype.log=function(a,b,c){if(!pic){pic={};for(var d=0,e;e=_.kla[d];d++)pic[e.value]=e,pic[e.name]=e}_.$J(this,a,b,c)};_.$J=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.Kk(a.H));var e=Date.now()-a.startTime;b={logName:b,message:c,level:d,totalTime:1E3<e?(e/1E3).toFixed(1)+"s":e+"ms"};a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};_.Jgc=[42,1005,20,50,18,1003,1002];
_.aK=function(a){_.J.call(this,a)};_.K(_.aK,_.J);_.aK.prototype.getId=function(){return _.z(this,1)};_.aK.prototype.Nb=function(a){return _.x(this,1,a)};_.aK.prototype.getMimeType=function(){return _.z(this,2)};Jic=[22];_.GJ=function(a){_.J.call(this,a,-1,Jic)};_.K(_.GJ,_.J);_.g=_.GJ.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.getItem=function(){return _.y(this,_.Ak,2)};_.g.setItem=function(a){return _.G(this,2,a)};
_.g.Yj=function(){return _.z(this,3)};_.g.JB=function(){return _.y(this,_.aK,4)};_.g.qc=function(){return _.z(this,5)};_.Kic=function(a,b){return _.x(a,5,b)};_.g=_.GJ.prototype;_.g.rK=function(){return _.z(this,7)};_.g.Sda=function(a){return _.x(this,7,a)};_.g.Ega=function(a){_.x(this,9,a)};_.g.kPa=function(a){_.x(this,10,a)};_.g.tN=function(){return _.z(this,16)};_.g.Hda=function(a){return _.x(this,16,a)};
var Lic=function(a){var b=new _.Th;a.listen("loadend",_.Ob(function(c,d){var e=d.ak(),f=d.getError();null==e||f?c.Gd(f):c.callback(e);d.dispose()},b,a));return b},Mic=function(a){_.gi.call(this,a);this.H=_.Rwb.get(a)};_.K(Mic,_.gi);_.RI=function(a){_.J.call(this,a)};_.K(_.RI,_.J);_.RI.prototype.Jh=function(){return _.z(this,1)};_.RI.prototype.qc=function(){return _.z(this,2)};_.RI.prototype.re=function(){return _.y(this,_.Lf,4)};_.PI=function(a){_.J.call(this,a)};_.K(_.PI,_.J);
_.PI.prototype.qc=function(){return _.z(this,1)};_.QI=function(a){_.J.call(this,a)};_.K(_.QI,_.J);_.QI.prototype.getId=function(){return _.z(this,1)};_.QI.prototype.Nb=function(a){return _.x(this,1,a)};_.QI.prototype.Zj=function(){return _.z(this,2)};_.QI.prototype.H=function(a){_.x(this,4,a)};Nic=[3,7];_.SI=function(a){_.J.call(this,a,-1,Nic)};_.K(_.SI,_.J);_.g=_.SI.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.UE=function(a,b){_.nj(this,3,a,b)};_.g.re=function(){return _.y(this,_.Lf,5)};_.$I=function(a){_.J.call(this,a)};_.K(_.$I,_.J);_.$I.prototype.qc=function(){return _.z(this,1)};_.$I.prototype.re=function(){return _.y(this,_.Lf,3)};_.dJ=function(a){_.J.call(this,a)};_.K(_.dJ,_.J);_.dJ.prototype.re=function(){return _.y(this,_.Lf,1)};_.vJ=function(a){_.J.call(this,a)};_.K(_.vJ,_.J);_.g=_.vJ.prototype;
_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getParent=function(){return _.z(this,2)};_.g.Ug=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};_.xJ=function(a){_.J.call(this,a)};_.K(_.xJ,_.J);_.g=_.xJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getParent=function(){return _.z(this,2)};_.g.Ug=function(a){return _.x(this,2,a)};_.g.re=function(){return _.y(this,_.Lf,3)};
_.AJ=function(a){_.J.call(this,a)};_.K(_.AJ,_.J);_.AJ.prototype.qc=function(){return _.z(this,1)};_.AJ.prototype.re=function(){return _.y(this,_.Lf,4)};_.VI=function(a){_.J.call(this,a)};_.K(_.VI,_.J);_.VI.prototype.getTitle=function(){return _.z(this,1)};_.VI.prototype.setTitle=function(a){return _.x(this,1,a)};_.VI.prototype.re=function(){return _.y(this,_.Lf,2)};_.bJ=function(a){_.J.call(this,a)};_.K(_.bJ,_.J);_.bJ.prototype.getId=function(){return _.z(this,1)};
_.bJ.prototype.Nb=function(a){return _.x(this,1,a)};_.bJ.prototype.re=function(){return _.y(this,_.Lf,3)};_.CJ=function(a){_.J.call(this,a)};_.K(_.CJ,_.J);_.g=_.CJ.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.getState=function(){return _.z(this,3)};_.g.Id=function(a){return _.x(this,3,a)};_.g.wt=function(){return _.dj(this,3)};
_.g.re=function(){return _.y(this,_.Lf,5)};Oic=[2,3];_.TI=function(a){_.J.call(this,a,-1,Oic)};_.K(_.TI,_.J);_.TI.prototype.uc=function(){return _.z(this,1)};_.TI.prototype.re=function(){return _.y(this,_.Lf,4)};Pic=[3,4];_.oJ=function(a){_.J.call(this,a,-1,Pic)};_.K(_.oJ,_.J);_.oJ.prototype.getType=function(){return _.z(this,1)};_.oJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.Qic=function(a){_.J.call(this,a)};_.K(_.Qic,_.J);_.g=_.Qic.prototype;_.g.getKey=function(){return _.z(this,1)};
_.g.vt=function(){return _.dj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.dj(this,2)};_.g.Bf=function(){return _.z(this,3)};_.g.kl=function(a){return _.x(this,3,a)};_.g.getType=function(){return _.z(this,4)};Ric=[1];_.Sic=function(a){_.J.call(this,a,-1,Ric)};_.K(_.Sic,_.J);_.rJ=function(a){_.J.call(this,a)};_.K(_.rJ,_.J);_.rJ.prototype.H=function(a){_.x(this,4,a)};Tic=[1];
_.tJ=function(a){_.J.call(this,a,-1,Tic)};_.K(_.tJ,_.J);_.Uic=function(a){this.O=new Set;this.H=[].concat(_.fc(_.re(a,27)));this.initialize(a)};_.Uic.prototype.initialize=function(a){this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.KI(_.fI(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));_.Ga(this.H);this.H.sort();Lgc(this.H)};_.bK=function(a){return[].concat(_.fc(a.H))};
_.Vic={1:"default",2:"teamDrive",3:"default,allTeamDrives"};cK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.dK=function(a,b,c){0!==b.length&&(a.SI.length&&a.append(" "+(c||"and")+" "),a.append(b))};eK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(cK(c));e.push("in");e.push(b);_.dK(a,e.join(" "))}};_.fK=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());_.dK(a,e.join(" "),d)}};
Wic=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.dK(a,d.join(""))}};Xic=function(a,b){b=_.re(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(cK(b));_.dK(a,c.join(" "))}};_.Yic=function(a){a=_.yb(a,_.SJ,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Wa());return b.join(",")};_.Zic=function(a){a=a.lA();return null==a||0==a.length?"":a.map(function(b){b=b.$R();if(0==b)throw Error("lf");return _.vfc[b]}).join(",")};
$ic=function(a,b){if(a.length){var c=new _.ro;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(cK(d.Wa()));_.dK(c,e.join(" "),"or")}return c.toString()}return""};ajc=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 cK(e.Wa())});d.push(a.join(", "));return d.join(" ")}return""};
bjc=function(a){if(_.Q(a,2))return"any";switch(a.Wa()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};cjc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};djc=function(a,b,c){if(null!=_.z(c,2)){var d=cjc(_.z(c,1));c=cK(_.xhc(_.yhc(_.z(c,2)||0)));_.dK(a,[b,d,c].join(" "))}};
ejc=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""};
_.fjc=function(a,b){b=void 0===b?!1:b;for(var c=new _.ro,d=_.yb(a,_.cl,4),e=0;e<d.length;e++){var f=d[e],h=f.Wa();if(h){var k=_.z(f,1),l=_.R(f,3,!1),p=[];l&&1==k&&p.push("not");p.push("title");p.push(1==k?"contains":l?"!=":"=");p.push(cK(h));_.dK(c,p.join(" "))}}for(var q=_.yb(a,_.$k,5),r=0;r<q.length;r++){var v=q[r],w=v.Wa();if(w){var A=[];_.R(v,2,!1)&&A.push("not");A.push("fullText");A.push("contains");A.push(cK(w));_.dK(c,A.join(" "))}}var B=_.hl(a);if(B&&0!=B.length){for(var E=[],I=[],M=[],P=
[],T=[],aa=[],ba=0;ba<B.length;ba++){var da=B[ba];da.Wa()&&(1===_.hj(da,3,0)?_.Q(da,4)?I.push(da):E.push(da):_.Q(da,4)?_.R(da,2,!1)?aa.push(da):T.push(da):_.R(da,2,!1)?P.push(da):M.push(da))}var ha=$ic(E,!1),xa=$ic(I,!0),ua=ajc(M,!1,!1),Ja=ajc(P,!0,!1),ib=ajc(T,!1,!0),Ub=ajc(aa,!0,!0),cc=new _.ro;if(ua||ib||ha||xa)_.dK(cc,ua,"or"),_.dK(cc,ib,"or"),_.dK(cc,ha,"or"),_.dK(cc,xa,"or");cc.SI.length&&_.dK(c,"("+cc.toString()+")","and");var Pc=new _.ro;if(Ja||Ub)_.dK(Pc,Ja,"and"),_.dK(Pc,Ub,"and");Pc.SI.length&&
_.dK(c,"("+Pc.toString()+")","and")}for(var yc=_.yb(a,_.Uk,7),Hb=0;Hb<yc.length;Hb++)djc(c,"modifiedDate",yc[Hb]);for(var Ee=_.yb(a,_.Uk,8),$d=0;$d<Ee.length;$d++)djc(c,"lastViewedByMeDate",Ee[$d]);_.fK(c,"trashed",a.Qh());_.fK(c,"explicitlyTrashed",_.Q(a,17));_.fK(c,"starred",_.Q(a,10));_.fK(c,"hidden",_.Q(a,11));for(var Gh=_.jl(a),sd=0;sd<Gh.length;sd++){var Sb=Gh[sd];eK(c,"parents",Sb.Wa(),_.R(Sb,2,!1))}var vi=b;vi=void 0===vi?!1:vi;for(var bk=_.yb(a,_.Cf,13),ug=0;ug<bk.length;ug++){var vj=bk[ug];
if(vi){if(vj.Wa()){var Kj=[],hm=[];_.R(vj,2,!1)?Kj.push("not ("):Kj.push("(");hm.push(cK(vj.Wa()));hm.push("in");hm.push("owners");hm.push("or");hm.push("creator");hm.push("=");hm.push(cK(vj.Wa()));Kj.push(hm.join(" "));Kj.push(")");_.dK(c,Kj.join(""))}}else eK(c,"owners",vj.Wa(),_.R(vj,2,!1))}for(var Ei=_.yb(a,_.Cf,14),Hp=0;Hp<Ei.length;Hp++){var Re=Ei[Hp];eK(c,"writers",Re.Wa(),_.R(Re,2,!1))}for(var wi=_.yb(a,_.Cf,15),Vk=0;Vk<wi.length;Vk++){var Ip=wi[Vk];eK(c,"readers",Ip.Wa(),_.R(Ip,2,!1))}_.Q(a,
16)&&_.dK(c,"sharedWithMe");_.fK(c,"unparented",_.Q(a,34));for(var ck=_.yb(a,_.Rk,35)||[],Aq=_.m(ck),Bq=Aq.next();!Bq.done;Bq=Aq.next())eK(c,"ancestors",Bq.value.Wa(),!1);for(var fn=_.yb(a,_.Rk,38)||[],Gm=_.m(fn),zl=Gm.next();!zl.done;zl=Gm.next())eK(c,"descendants",zl.value.Wa(),!1);for(var Mr=_.yb(a,_.Zk,37)||[],gj=_.m(Mr),Nr=gj.next();!Nr.done;Nr=gj.next())eK(c,"folderFeatures",Nr.value.Wa(),!1);for(var Jp=_.re(a,39),Cq=_.m(Jp),Or=Cq.next();!Or.done;Or=Cq.next()){var Kp=Or.value,Pr=[];Pr.push("templateData.description");
Pr.push("contains");Pr.push(cK(Kp));_.dK(c,Pr.join(" "))}for(var Un=_.re(a,40),tk=0;tk<Un.length;tk++){var uk=[];0==tk&&uk.push("(");uk.push(cK(Un[tk]));uk.push("in");uk.push("templateData.categories");tk==Un.length-1&&uk.push(")");_.dK(c,uk.join(" "),0==tk?"and":"or")}var Sc=_.z(a,41);if(null!=Sc){var gn=[];gn.push("templateData.galleryState");gn.push("=");gn.push(cK(_.Cfc[Sc]||""));_.dK(c,gn.join(" "))}var Xs=_.z(a,42);if(null!=Xs){var Dq=[];Dq.push("visibility");Dq.push("=");Dq.push(cK(ejc(Xs)));
_.dK(c,Dq.join(" "))}for(var Qr=_.yb(a,_.Qk,44),Cu=0;Cu<Qr.length;++Cu){var Rr=Qr[Cu];eK(c,"actionItems",bjc(Rr),_.R(Rr,3,!1))}if(_.dj(a,50)){var Ql=[];Ql.push("pairedDocType");Ql.push(_.R(a,50,!1)?"!=":"=");Ql.push(cK("NONE"));_.dK(c,Ql.join(" "))}eK(c,"workspaceIds",a.Xq(),!1);for(var Ro=_.yb(a,_.Sk,57),Vn=0;Vn<Ro.length;Vn++){var Wn=[];0==Vn&&Wn.push("(");Wn.push(cK(Ro[Vn].Wa()));Wn.push("in");Wn.push("approvals");Vn==Ro.length-1&&Wn.push(")");_.dK(c,Wn.join(" "),0==Vn?"and":"or")}if(_.dj(a,58)){var Px=
a.oq(),mw=Px.Wa();if(mw){var Lp=[];_.R(Px,2,!1)&&Lp.push("not");Lp.push("creator");Lp.push("=");Lp.push(cK(mw));_.dK(c,Lp.join(" "))}}var Mz=_.y(a,_.zpa,59);if(Mz)for(var Du=_.m(_.yb(Mz,_.wpa,1)),Sr=Du.next();!Sr.done;Sr=Du.next()){var Tr=Sr.value;eK(c,"categoryMetadata",Tr.Jm());for(var Ys=_.m(Tr.Xj()),Wk=Ys.next();!Wk.done;Wk=Ys.next()){var Fi=Wk.value,im=_.z(Fi,1),Pg=_.Bb(Fi,_.Tk);if(10==Pg){_.zj(Fi,_.npa,10,_.Tk);var nw=_.Q(Fi,15);(void 0===nw?0:nw)?_.dK(c,im+" is null"):_.dK(c,"not ("+im+" is null)")}else{var Gi=
new _.ro,Xk=void 0;switch(Pg){case 3:Xk=_.zj(Fi,bic,3,_.Tk);for(var Eu=_.m(Xk.yi()),Yk=Eu.next();!Yk.done;Yk=Eu.next())_.fK(Gi,im,Yk.value,"or");break;case 14:for(var Zs=Xk=_.zj(Fi,_.gpa,14,_.Tk),ow=new Map([[1,"="],[2,">"],[3,"<"]]),$s=_.m(Zs.yi()),Fu=$s.next();!Fu.done;Fu=$s.next()){var Ur=Fu.value,Mp=ow.get(_.z(Zs,2));if(!Mp)throw Error("mf");_.dK(Gi,[im,Mp,cK(Ur.getYear()+"-"+Rgc(Ur.getMonth())+"-"+Rgc(Ur.getDay()))].join(" "),"or")}break;case 8:for(var cv=Xk=_.zj(Fi,_.mpa,8,_.Tk),dv=new Map([[1,
"="],[2,">"],[3,"<"]]),ev=_.m(cv.yi()),my=ev.next();!my.done;my=ev.next()){var Rw=my.value,tN=dv.get(_.z(cv,2));if(!tN)throw Error("mf");_.dK(Gi,[im,tN,Rw].join(" "),"or")}break;case 9:for(var yg=Xk=_.zj(Fi,dic,9,_.Tk),ar=new Map([[1,"in"]]),nJ=_.m(yg.yi()),uN=nJ.next();!uN.done;uN=nJ.next()){var vN=uN.value,hS=ar.get(_.z(yg,2));if(!hS)throw Error("mf");_.dK(Gi,[vN,hS,im].join(" "),"or")}break;case 6:for(var ny=Xk=_.zj(Fi,_.rpa,6,_.Tk),nZ=new Map([[1,"="]]),wN=_.m(ny.yi()),oZ=wN.next();!oZ.done;oZ=
wN.next()){var pZ=oZ.value,iS=nZ.get(_.z(ny,2));if(!iS)throw Error("mf");_.dK(Gi,[im,iS,cK(pZ)].join(" "),"or")}break;case 7:for(var ZC=Xk=_.zj(Fi,_.ppa,7,_.Tk),qZ=new Map([[1,"in"]]),rZ=_.m(ZC.yi()),HF=rZ.next();!HF.done;HF=rZ.next()){var MA=HF.value,sZ=qZ.get(_.z(ZC,2));if(!sZ)throw Error("mf");_.dK(Gi,[cK(MA),sZ,im].join(" "),"or")}break;case 4:for(var tZ=Xk=_.zj(Fi,_.tpa,4,_.Tk),f7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),uZ=_.m(tZ.yi()),vZ=uZ.next();!vZ.done;vZ=uZ.next()){var wZ=vZ.value,
g7=f7.get(_.z(tZ,2));if(!g7)throw Error("mf");_.dK(Gi,[im,g7,cK(wZ)].join(" "),"or")}break;case 5:for(var xZ=Xk=_.zj(Fi,fic,5,_.Tk),mha=new Map([[1,"in"]]),iwb=_.m(xZ.yi()),qXa=iwb.next();!qXa.done;qXa=iwb.next()){var rXa=qXa.value,sXa=mha.get(_.z(xZ,2));if(!sXa)throw Error("mf");_.dK(Gi,[cK(rXa),sXa,im].join(" "),"or")}break;case 12:for(var IF=Xk=_.zj(Fi,_.kpa,12,_.Tk),Bkc=new Map([[1,"="]]),jwb=_.m(IF.yi()),jS=jwb.next();!jS.done;jS=jwb.next()){var Sw=jS.value,h7=Bkc.get(_.z(IF,2));if(!h7)throw Error("mf");
_.dK(Gi,[im,h7,cK(Sw)].join(" "),"or")}break;case 11:for(var nha=Xk=_.zj(Fi,_.ipa,11,_.Tk),yZ=new Map([[1,"in"]]),Fxa=_.m(nha.yi()),Gxa=Fxa.next();!Gxa.done;Gxa=Fxa.next()){var oha=Gxa.value,kwb=yZ.get(_.z(nha,2));if(!kwb)throw Error("mf");_.dK(Gi,[cK(oha),kwb,im].join(" "),"or")}}_.Q(Fi,15)?_.dK(c,"not ("+Gi+")"):_.dK(c,1<Xk.yi().length?"("+Gi+")":""+Gi)}}}null!=_.Q(a,60)&&_.fK(c,"linkShareMetadata.securityUpdateEligible",_.Q(a,60));var pha=_.Q(a,65);if(null!=pha){var Hxa=[];Hxa.push("clientEncryptionDetails.encryptionState");
Hxa.push("=");Hxa.push(cK(pha?"encrypted":"unencrypted"));_.dK(c,Hxa.join(" "))}var lwb=_.yb(a,_.Cf,68);if(lwb.length){for(var mwb=[],nwb=[],Ixa=_.m(lwb),tXa=Ixa.next();!tXa.done;tXa=Ixa.next()){var i7=tXa.value,qha="sharedFrom = "+cK(i7.Wa());_.R(i7,2,!1)?nwb.push(qha):mwb.push(qha)}Wic(c,mwb,!1);Wic(c,nwb,!0)}var j7=_.yb(a,_.Cf,67);if(j7.length){for(var uXa=[],owb=[],zZ=_.m(j7),vXa=zZ.next();!vXa.done;vXa=zZ.next()){var pwb=vXa.value,wXa="sharedTo = "+cK(pwb.Wa());_.R(pwb,2,!1)?owb.push(wXa):uXa.push(wXa)}Wic(c,
uXa,!1);Wic(c,owb,!0)}null!=_.Q(a,69)&&_.fK(c,"linkShareMetadata.securityUpdateEnabled",_.Q(a,69));null!=_.Q(a,72)&&_.fK(c,"canAcceptOwnership",_.Q(a,72));if(_.Q(a,73)){var xXa=(new _.al).Hb("application/vnd.google-apps.shortcut");_.fK(c,"impactedByMultiparentingMigration",!0);_.dK(c,ajc([xXa],!1,!1))}1==_.TJ(a)&&Xic(c,a);return c.toString()};
_.gjc=function(a){var b=new _.ro(_.fjc(a));_.R(a,74,!1)?_.dK(b,"isQuickAccessForSharedFilesRequest"):_.jJ(a)?_.dK(b,"isQuickAccessRequest"):_.kJ(a)?_.dK(b,"isPeoplePredictRequest"):_.lJ(a)&&_.dK(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.yfc[c.getType()]);d.push(_.Efc[c.Uf()]);_.Q(c,3)&&d.push("foldersFirst");_.dK(b,d.join(" "))}_.fK(b,"domainSearch",_.Q(a,18));_.fK(b,"offline",_.Q(a,19));_.yb(a,_.SJ,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.Yic(a)),
_.dK(b,c.join(" ")));a.lA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.Zic(a)),_.dK(b,c.join(" ")));if(c=_.TJ(a))d=[],d.push("corpora"),d.push("="),d.push(cK(_.Vic[c])),_.dK(b,d.join(" "));_.R(a,66,!0)||_.fK(b,"includeItemsFromAllDrives",_.R(a,66,!0));1!=_.TJ(a)&&Xic(b,a);_.R(a,48,!1)&&_.dK(b,"cachedOnly");return b.toString()};
_.JJ=function(a){if(a instanceof _.nI)a=a.jd();else if(!a)return!1;return a instanceof _.$z||a instanceof _.eG||"undefined"!=typeof _.gK&&a instanceof _.gK||a instanceof _.Af&&(_.jJ(a)||_.kJ(a)||_.lJ(a))};hjc=function(){_.oo.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.K(hjc,_.oo);_.ijc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};jjc=function(a,b){a.V||(a.V=b)};hjc.prototype.Bj=function(){_.ijc(this);(0,this.ha)()};kjc=function(a,b){a.ha||(a.ha=b)};
_.hK=function(a){if(!a.O){a.O=new Eic;var b=_.qo(a);_.G(b,56,a.O)}return a.O};hjc.prototype.getState=function(){var a=_.hK(this).getState();a||(a=new uic,_.hK(this).Id(a));return a};var ljc=function(a,b){var c=new sic;_.x(c,1,b);a=_.qo(a);_.G(a,12,c)};hjc.prototype.ma=function(){var a=_.y(_.hK(this),wic,4);if(!a){a=new wic;var b=_.hK(this);_.G(b,4,a)}return a};
var mjc=function(a){var b=_.y(_.hK(a),xic,8);b||(b=new xic,a=_.hK(a),_.G(a,8,b));return b},njc=function(a){var b=_.y(_.hK(a),Cic,19);b||(b=new Cic,a=_.hK(a),_.G(a,19,b));return b},ojc=function(a){_.gi.call(this,"rb");this.H=a};_.K(ojc,_.gi);ojc.prototype.Me=function(){return this.H};_.pjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.pi.call(this);this.O=!1;this.H=b?1:a;this.V=b?!0:1===a;this.W=b};_.K(_.pjc,_.pi);_.g=_.pjc.prototype;_.g.isConnected=function(){return!this.O&&1===this.H};
_.g.Ik=function(){return 1===this.H||2===this.H};_.g.Me=function(){return 3===this.H};_.g.get=function(){return this.H};_.g.update=function(a){if(this.W)return!1;if(this.H!==a||this.O&&1===a){if(2===a)var b=3===this.H?_.VB.bV:_.VB.eia;else 1===a?(b=_.VB.$L,this.V=!0):3===a&&(b=_.VB.aV);if(b)return b=new Mic(b),this.H=a,this.O=!1,this.dispatchEvent(b),!0}return!1};
var qjc=function(a,b){this.userId=a;this.H=b;this.db=null},sjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return rjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("pf"))},function(d){return a.handleError(d)})},"readwrite")};qjc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.pEb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var tjc=function(a){return new _.Nh(function(b){var c=new Map;rjc(a,function(d){return hic(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={Asa:f.Asa},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Asa=k;l.then(function(p){return function(q){q&&c.set(p.Asa,new _.jBa(q.pEb))}}(f))}return _.jI([].concat(_.fc(e.values()))).then(function(){return b(c)})})})})},ujc=function(a,b){return rjc(a,
function(c){return c.remove(b)},"readwrite")},rjc=function(a,b,c){c=void 0===c?"readonly":c;return vjc(a).then(function(d){try{var e=_.rdc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.NI(f):void 0)}},function(d){return a.handleError(d)})},vjc=function(a){return a.db?_.Oh(a.db):_.tdc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.iic(c,"OfflineImpressions");b=_.qdc(c,"OfflineImpressions",
{autoIncrement:!0});try{b.H.createIndex("userId","userId",void 0)}catch(d){throw _.XH(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("qf"))}).then(function(b){return a.db=b},function(b){return _.Ph(_.NI(b))})};qjc.prototype.handleError=function(a){a||(a=Error("rf"));_.$J(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Oh()};
_.wjc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.pi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.K(_.wjc,_.pi);_.wjc.prototype.Me=function(){return this.H};_.wjc.prototype.Ll=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new ojc(a)))};_.wjc.prototype.nz=function(a){this.O=a};
var yjc=function(a,b,c,d,e,f){_.pi.call(this);var h=this;this.V=a;this.H=b;this.W=c;this.O=d;this.Jb=new _.nf(this);this.Jb.listen(b,"rb",function(k){k.Me()||xjc(h)});this.Jb.listen(c,[_.VB.$L,_.VB.bV],function(){return void xjc(h)});this.ha=e;f.then(function(){return xjc(h)})};_.K(yjc,_.pi);yjc.prototype.PA=function(a){return(a=(this.H.Me()||this.W.Me())&&this.H.O?sjc(this.O,a):this.V.PA(a))?a:void 0};
var xjc=function(a){return a.H.O?tjc(a.O).then(function(b){b.forEach(function(c,d){a.V.PA(c).then(function(){return zjc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},zjc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("sb");return ujc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
yjc.prototype.log=function(a){this.ha.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Ajc=function(){};Ajc.prototype.AR=function(){return new hjc};var Bjc=function(){this.H=new Fic};Bjc.prototype.O=function(a){_.G(a,13,this.H)};Bjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Djc=function(a,b,c,d){this.ka=b;this.ha=c;this.Mw=d;this.O=this.H=this.V=null;this.client=_.iK(_.Nfc,_.WJ(a));this.ma=_.z(a,94);this.ta=_.iK(_.Rfc,_.hj(a.Tf(),8,0));this.Pya=_.iK(_.Ofc,_.hj(a.Tf(),9,2));this.wa=_.VJ(a);this.Ju=_.KI(_.fI(a));this.vEa=_.XJ(a);this.W=Cjc(a);this.buildLabel=a.Ki()};Djc.prototype.Hj=function(){return this.client};
Cjc=function(a){var b=[].concat(_.fc(_.Kfc.keys())),c=[].concat(_.fc(_.Lfc.keys())),d=_.IJ(a);return b.filter(function(e){return _.Kfc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Lfc.get(e)(d)}))};_.iK=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};Djc.prototype.Wo=function(a){return null==a?0:a?2:1};var Ejc=function(a){if(a.O)return a.O.H("aU7Ts")};
Djc.prototype.Cb=function(a){return a instanceof _.eI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK||"undefined"!=typeof _.lK&&a instanceof _.lK?a.Cb():"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?a.response?a.response.Cb():null:null};Djc.prototype.Ki=function(){return this.buildLabel};
var Fjc=function(a){return a.ka.Me()||a.ha.Me()?2:1};Djc.prototype.getEnvironment=function(){return this.Mw};Gjc=function(a,b){this.H=a;var c=new _.Zza;_.$za(c,b.W);a=this.H.dM();var d=_.lfc(a);_.G(d,10,c);(c=b.Ki())&&_.kfc(a,c);this.H.N_();this.O=b};
_.Hjc=function(a,b,c){var d=_.po(a.H.rG(b,c),_.Ffc);ljc(d,Fjc(a.O));b=Ejc(a.O);"boolean"===typeof b&&vic(d.getState(),b);1===c&&jjc(d,function(){return void a.H.Lw(d)});kjc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.getSize();e=d.getState();_.x(e,1,f);var h,k;f=null===(k=null===(h=a.O.H)||void 0===h?void 0:h.H)||void 0===k?void 0:k.getSize();h=d.getState();_.x(h,2,f);var l,p;h=null===(p=null===(l=a.O.H)||void 0===l?void 0:l.O)||void 0===p?void 0:p.getSize();l=d.getState();_.x(l,
7,h);a.H.an(d)});return d};Ijc=function(a){var b=new _.KAa,c=new Bjc,d=a.Hj();_.x(c.H,1,d);_.x(c.H,8,a.ma);_.x(c.H,3,a.ta);_.x(c.H,4,a.Pya);_.x(c.H,5,a.wa);_.x(c.H,6,a.Ju);_.x(c.H,7,a.vEa);a=c.setEnvironment(a.getEnvironment());_.eec(b,_.Hfc,a);_.so(b,_.Ffc,new Ajc);return b};
Jjc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.hI(906,b,void 0,_.Xfc());l.ha=!1;var p=new _.fec(l);b=new Date;l=_.qfc(_.pfc(_.ofc(jic(),new _.gec(l)),Ijc(c)),109).setSessionId(b.getTime()+"_"+_.hh());if(k){a=new yjc(p,d,e,new qjc(a,f),f,h);_.nfc(l,a);d=l.build();_.jfc(d.dM(),1E3*b.getTime());var q=new Gjc(d,c);(new _.nf).listen(a,"sb",function(){_.Hjc(q,106008,0).Bj()});return q}_.nfc(l,p);a=l.build();_.jfc(a.dM(),1E3*b.getTime());return new Gjc(a,c)};
Kjc=function(a,b){this.V=a;this.W=b};Kjc.prototype.O=function(a,b){this.V&&_.Ljc(this)&&(a=_.Hjc(this.V,a,0),b&&_.Egc(a,b),a.Bj())};_.rK=function(a,b){if(a.V&&_.Ljc(a)){a=_.Hjc(a.V,106018,0);var c=_.y(_.hK(a),Bic,15);if(!c){c=new Bic;var d=_.hK(a);_.G(d,15,c)}c=_.x(c,1,1);_.x(c,2,b);a.Bj()}};Kjc.prototype.H=function(a,b){return this.V&&_.Ljc(this)?(a=_.Hjc(this.V,a,1),b&&_.Egc(a,b),a):null};_.Ljc=function(a){return!(!a.V||!a.V.H.hQ())};
_.Mjc=function(a,b,c,d,e,f){var h=_.Q(a,59),k=_.wI(_.fI(a)).toString(),l=_.UJ(_.fI(a));f=new Djc(a,b,c,f);a=h?Jjc(l,k,f,b,c,d,e,_.R(a,17,!1)):null;return new Kjc(a,f)};_.Njc=function(a){_.J.call(this,a)};_.K(_.Njc,_.J);_.Njc.prototype.xk=function(){return _.z(this,1)};_.Ojc=function(a){var b=new _.Njc;return _.x(b,1,a)};_.cJ=function(a){_.J.call(this,a)};_.K(_.cJ,_.J);_.cJ.prototype.getId=function(){return _.z(this,1)};_.cJ.prototype.Nb=function(a){return _.x(this,1,a)};
_.Pjc=function(a,b){return _.x(a,2,b)};Qjc=[1];_.Ugc=function(a){_.J.call(this,a,-1,Qjc)};_.K(_.Ugc,_.J);_.sJ=function(a){_.J.call(this,a)};_.K(_.sJ,_.J);_.sJ.prototype.jd=function(){return _.y(this,_.cJ,1)};Rjc=[2];_.zJ=function(a){_.J.call(this,a,-1,Rjc)};_.K(_.zJ,_.J);_.zJ.prototype.qc=function(){return _.z(this,1)};_.zJ.prototype.uW=function(){return _.yb(this,_.ZF,2)};_.zJ.prototype.re=function(){return _.y(this,_.Lf,3)};_.eJ=function(a){_.J.call(this,a)};_.K(_.eJ,_.J);
_.eJ.prototype.jd=function(){return _.y(this,_.dJ,1)};_.eJ.prototype.Wda=function(a){return _.x(this,2,a)};_.Sjc=function(a){_.J.call(this,a)};_.K(_.Sjc,_.J);_.Sjc.prototype.getId=function(){return _.z(this,1)};_.Sjc.prototype.Nb=function(a){return _.x(this,1,a)};_.Sjc.prototype.re=function(){return _.y(this,_.Lf,2)};_.pJ=function(a){_.J.call(this,a)};_.K(_.pJ,_.J);_.pJ.prototype.Yn=function(){return _.z(this,2)};_.pJ.prototype.jd=function(){return _.y(this,_.Sjc,3)};
_.fJ=function(a){_.J.call(this,a)};_.K(_.fJ,_.J);_.Tjc=function(a,b){this.O=b;this.H=new Map;this.Xma(_.yb(a,_.dl,91))};_.Tjc.prototype.Xma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.el(c);if(!b||!c)break;var d=_.Ujc(this,b);if(d){d!==c&&Tgc(b);break}this.H.set(b,c)}};
Ahc=function(a,b){return[].concat(_.fc(new Set(b))).map(function(c){var d=(new _.dl).Nb(c);a.H.has(c)?_.fl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.fl(d,_.Gk(c));return d}).filter(function(c){return _.dj(c,2)})};_.Ujc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.dj(a,140)?_.Gk(a):null};_.Xgc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.chc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.ihc=function(){this.H=_.Mf(new _.Lf,312)};
_.Vjc=function(a,b){_.YH.call(this,a?a:500,b?b:6E5)};_.K(_.Vjc,_.YH);_.sK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Xf=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.sK.prototype.getState=function(){return this.state};
_.sK.prototype.NM=function(a){var b=this;if(this.W)return this.W;var c=_.Rh();this.W=c.promise.then(function(){return _.Ojc(1)},function(d){d=_.xd(d).tg;var e=0;2===d.Ip()?e=3:_.Wfc(d)&&(e=2);return _.Ojc(e)});a&&this.W.then(function(d){3===d.xk()&&_.rK(b.Xf,186469046)});this.H&&(a=_.z(njc(this.H),4)||0,Dic(njc(this.H),a+1));setTimeout(function(){b.W=null},5E3);Wjc(this,c);return this.W};_.Zjc=function(a,b){Xjc(a,3)&&_.Yjc(a,b)};_.sK.prototype.reset=function(){this.O=null;$jc(this)};
$jc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.Yjc=function(a,b){if(!a.O&&!a.V){a.H=a.Xf.H(106025);if(a.H){var c=njc(a.H);var d=!(!a.state.isConnected()&&a.state.Ik());c=_.x(c,1,d);c=_.x(c,2,a.state.V);_.x(c,5,!!b)}a.O=new _.Vjc(5E3,6E4);akc(a)}};akc=function(a){$jc(a);Wjc(a);a.O&&(a.timeout=setTimeout(function(){return void akc(a)},a.O.Wa()),_.ZH(a.O))};
Wjc=function(a,b){var c=function(){if(a.H){var d=_.z(njc(a.H),3)||0,e=njc(a.H);_.x(e,3,d+1)}bkc(a,b)};(a.ha?a.ha():_.Oh(void 0)).then(null,function(){return null}).then(c,c)};bkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Qe(new _.ihc)}).then(null,function(d){d=_.xd(d);_.Wfc(d.tg)&&Xjc(a,2);return _.Ph(d)});b?b.resolve(c):c.then(null,function(){return null})};_.sK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
Xjc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.$fc.get(b)),!0):!1};_.ckc=function(){this.H={}};dkc=function(a,b,c){if(a.H[b])throw Error("sf");a.H[b]=c};_.ckc.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)}};ekc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.fkc=function(a,b){this.H=a;this.V=b;this.O=_.bgc[_.hj(a.Tf(),8,0)];this.W=_.bgc[_.hj(a.Tf(),51,5)]};
_.fkc.prototype.kc=function(a,b){if(b.jO)gkc(this,a,b),hkc(this,a,b);else{var c={};if(11===a.mn){if(b.yOb){var d=b.bE||_.C(this.H.Tf(),37,"");c.key=d;Pgc(c,a.uri)}gkc(this,a,b);ikc(this,a,b)}else switch(a.uri=jkc(this,a.mn,a.uri),a.mn){case 1:ikc(this,a,b);gkc(this,a,b);break;case 0:b.Ju||_.KI(_.fI(this.H))||_.R(this.H,83,!1)&&Pgc({dsNonce:_.hh()},a.uri);ikc(this,a,b);hkc(this,a,b);gkc(this,a,b);break;case 2:case 3:case 4:case 5:ikc(this,a,b);hkc(this,a,b);gkc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:ikc(this,
a,b);hkc(this,a,b);break;default:throw Error("tf`"+a.mn);}}};kkc=function(a,b){var c=jkc(a,b,new _.Si);if(!c.zH())throw Error("vf");return(new _.Si).Or(c.Oo).Nn(c.ik()).TA(c.Ly()).Bi(_.cgc.has(b)?"/batch"+a.O:"/batch")};
jkc=function(a,b,c){var d=_.z(a.H.Tf(),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=_.C(a.H.Tf(),62,"");break;case 8:a=_.z(a.H.Tf(),53);break;case 9:a=_.z(a.H.Tf(),56);break;case 10:a=_.z(a.H.Tf(),22);break;case 13:a=_.z(a.H.Tf(),55);break;case 12:a=_.z(a.H.Tf(),43);break;default:throw Error("tf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.Si(a);
_.fe(c,"/")&&(c=c.slice(1));return new _.Si(a+"/"+c)};ikc=function(a,b,c){a=_.fI(a.H);c.Ju||_.KI(a)||(b.headers.authorization=_.cec([{key:"u",value:_.UJ(a)}])||"",c=_.wI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
gkc=function(a,b,c){var d=_.fI(a.H),e=a.H.Tf(),f=c.U9a||_.R(e,14,!1),h=11===b.mn;if(c.T9a||_.z(e,13)){c=_.z(e,13);var k={};c&&_.fe(c,"email:")?k.trace=c:c&&"trace:true"===c?k.$trace="true":k.trace=c?"token:"+c:"email:"+d.getEmail().replace(/(@|\+).*$/,"");h||(k["trace.deb"]="genoa:3:all,driveService:3:all"+(2===_.hj(e,9,2)?"":",cospel:3:all,DriveService:3:all"));Pgc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
hkc=function(a,b,c){a=c.Ju||_.KI(_.fI(a.H))?_.C(a.H.Tf(),36,""):c.bE||_.C(a.H.Tf(),37,"");Pgc({key:a},b.uri)};_.Wgc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.Ygc=function(a){this.request=a;this.requestId=_.hh()};_.fhc=function(a,b,c,d){this.request=a;this.file=b;this.aR=void 0===c?null:c;this.metadata=d};dhc=function(a,b){this.request=a;this.metadata=b};ehc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.C1a=e;this.contentType=f;this.revisionId=h};
_.DJ=function(a,b,c,d){this.request=a;this.file=b;this.aR=void 0===c?null:c;this.metadata=d};nhc=[_.PI,_.RI,_.QI,_.TI,_.SI,_.UI,_.VI,_.YI,_.$I,_.aJ,_.bJ,_.dJ,_.eJ,_.rJ,_.vJ,_.xJ,_.zJ,_.xI,_.AJ,_.BJ,_.CJ,_.Ygc,_.DJ];lkc=[_.zI];ohc=[_.$F,_.chc];phc=[_.pJ,_.PH,_.nD,_.EJ];qhc=[_.nI,_.fJ,_.aG,_.zI,_.Xgc];rhc=[_.EJ,_.fG];shc=[_.cJ,_.Ugc,_.oJ,_.sJ,_.tJ,_.Wgc,_.DJ,ehc,dhc];
mkc=function(a){return a instanceof _.nI||a instanceof _.EJ||"undefined"!=typeof _.tK&&a instanceof _.tK||a instanceof _.BJ||a instanceof _.aJ||a instanceof _.UI||a instanceof _.YI||a instanceof _.xI&&_.HJ(a)};_.nkc=function(a,b,c){this.O=a;this.H=b;this.Bg=c;this.i5={};this.aj=new qic;this.Hb("SdkBackfillEnabled",!!_.R(a,45,!1)+" (Include corpus cache: "+!!_.R(a,46,!1)+")")};_.nkc.prototype.Hb=function(a,b){this.i5[a]=okc(a,b)};
var pkc=function(a,b){var c=a.i5[b];c||(c=okc(b,0,2),a.i5[b]=c);c.Hb(String(Number(c.Wa())+1))};_.nkc.prototype.Zz=function(a){var b=_.Ya(this.i5);this.H&&b.push(okc("CacheSize",this.H.getSize()));this.Bg&&b.push(okc("SecondaryFields",_.OI({fields:[].concat(_.fc(this.Bg.O)),anonymous:_.KI(_.fI(this.O))})));b.push(okc("InitialViewDataLoaded",a));a=new _.Sic;_.lj(a,1,b);return _.Yh(a)};okc=function(a,b,c){var d=new _.Qic;_.x(d,1,a);_.x(d,4,c||1);d.Hb(String(b));d.kl(_.ggc.get(a));return d};
_.qkc=function(a,b,c){var d=new _.sfc;_.x(d,2,"Pending...");b instanceof _.nI?_.pj(d,3,_.oI,b):b instanceof _.EJ?_.pj(d,4,_.oI,b):"undefined"!=typeof _.tK&&b instanceof _.tK?_.pj(d,5,_.oI,b):b instanceof _.BJ?_.pj(d,6,_.oI,b):b instanceof _.aJ?_.pj(d,7,_.oI,b):b instanceof _.UI?_.pj(d,8,_.oI,b):b instanceof _.YI?_.pj(d,9,_.oI,b):b instanceof _.xI&&_.pj(d,10,_.oI,b);var e=khc(b),f=[];if(b instanceof _.QI)FJ(f,"ID",b.getId()),FJ(f,"Parent ID",b.Zj());else if(b instanceof _.aJ)FJ(f,"TD ID",b.getId());
else if(b instanceof _.nI)b=_.gjc(b.jd()),FJ(f,"Query",b);else if(b instanceof _.EJ)FJ(f,"Query","All");else if(b instanceof _.BJ)FJ(f,"TD ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Theme Image ID",_.z(b,3));else if(b instanceof _.UI)FJ(f,"MimeType",b.getMimeType()),FJ(f,"Title",b.getTitle()),FJ(f,"Parents",_.re(b,3)),FJ(f,"Convert",_.Q(b,8)),FJ(f,"Request ID",b.mj()),FJ(f,"Parent Request IDs",_.re(b,10)),FJ(f,"Revision Item ID",_.z(b,12)),FJ(f,"Pinned",_.Q(b,8));else if(b instanceof _.VI)FJ(f,
"Title",b.getTitle());else if(b instanceof _.YI)FJ(f,"ID",b.getId());else if(b instanceof _.bJ)FJ(f,"WS ID",b.getId());else if(b instanceof _.rJ)FJ(f,"Source ID",_.z(b,1)),FJ(f,"Destination Parent ID",_.z(b,2)),FJ(f,"validation token",_.z(b,4));else if(b instanceof _.xI){if(FJ(f,"ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Description",b.Bf()),FJ(f,"Starred",_.Q(b,4)),FJ(f,"Trashed",b.Qh()),FJ(f,"MimeType",b.getMimeType()),FJ(f,"Parents",_.re(b,8)),FJ(f,"Parents to add",_.re(b,9)),FJ(f,"Parents to remove",
_.re(b,10)),FJ(f,"Restricted",_.Q(b,11)),FJ(f,"Folder Color",b.Mi()),FJ(f,"Update Last Viewed",_.Q(b,15)),FJ(f,"Subscribed",_.Q(b,16)),FJ(f,"Available Offline",_.Q(b,18)),FJ(f,"Wksp to add",_.re(b,31)),FJ(f,"Wksp to remove",_.re(b,32)),b=_.y(b,_.vk,25))FJ(f,"Read Only",_.Q(b,1)),FJ(f,"Reason",_.z(b,2))}else b instanceof _.CJ?(FJ(f,"WS ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"State",b.getState())):b instanceof _.Ygc&&FJ(f,"Title",b.request.getTitle());_.x(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.aj.add(d);return d};_.rkc=function(a,b){for(var c=new _.ro,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.tgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.x(a,2,c.toString()||"Done.")};_.nkc.prototype.ZR=function(){return this.aj.jh()};
_.uK=function(a){_.J.call(this,a)};_.K(_.uK,_.J);_.uK.prototype.Zc=function(){return _.y(this,_.eI,1)};_.skc=function(a,b){return _.G(a,1,b)};_.uK.prototype.Yn=function(){return _.z(this,3)};
_.tkc=function(a,b,c){_.gi.call(this,"Cb");this.requestId=a;this.progress=b;this.totalBytes=c};_.K(_.tkc,_.gi);
var vkc;_.ukc=function(a,b){this.O=a;this.V=b;this.H=null};vkc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var vK=function(a){_.pi.call(this);this.name=a};_.K(vK,_.pi);_.g=vK.prototype;_.g.Y4=function(){};_.g.eHa=function(){};_.g.T3a=function(){};_.g.jPa=function(){};_.g.S3a=function(){};_.g.sG=function(){this.dispatchEvent(new _.gi("Db"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var wkc=function(a,b){vK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.O,"rb",function(d){d.Me()||c.sG()});this.Oc.listen(this.H,"fb",this.sG)};_.K(wkc,vK);wkc.prototype.max=function(){var a=this.O.Me(),b=this.H.UB();return!a&&b?Infinity:0};wkc.prototype.Y4=function(){this.sG()};
var xkc=function(a){vK.call(this,"Online");var b=this;this.H=a;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.H,[_.VB.$L,_.VB.eia,_.VB.bV],function(){return b.sG()})};_.K(xkc,vK);xkc.prototype.max=function(){return this.H.isConnected()?Infinity:0};xkc.prototype.Y4=function(){this.sG()};
_.ykc=function(a,b){this.H=a;this.O=b};_.zkc=function(a){return a.H instanceof _.sK?new xkc(a.H.getState()):new wkc(a.O,a.H)};_.ykc.prototype.Ij=function(){return this.H instanceof _.sK?this.H.getState():this.O};
var Ckc;_.Akc=function(a,b,c){this.WK=c;this.O=!0;this.V=0;this.H=new _.YH(a,b,.5)};Ckc=function(a){return a.H.O+a.V};
_.wK=function(a,b){vK.call(this,"Backoff");this.H=a;this.O=b};_.K(_.wK,vK);_.wK.prototype.max=function(){return this.H.O?Infinity:0};_.wK.prototype.jPa=function(){var a=this.H;a.V=0;a.H.reset()};_.wK.prototype.S3a=function(a){var b=this;Dkc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Wa(),this.log("Stopping new requests for "+a+" ms."),_.n.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.sG()},a),_.ZH(this.H.H))};
var Dkc=function(a){var b;return(a=null===(b=_.ka(a.eE))||void 0===b?void 0:b.response)?Hgc(_.zda(a)):!1};_.wK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Ekc=function(a,b){vK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.K(_.Ekc,vK);_.Ekc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Ekc.prototype.Y4=function(a){a>=this.O?this.sG():null==this.H&&Fkc(this)};_.Ekc.prototype.eHa=function(a,b){0<b?Fkc(this):this.H=null};var Fkc=function(a){a.H=Date.now()-1;_.n.setTimeout(a.sG.bind(a),a.V)};
_.xK=function(){this.aj=[]};_.g=_.xK.prototype;_.g.add=function(a,b){b?this.aj.unshift(a):this.aj.push(a);return!0};_.g.hua=function(a){return _.ta(this.aj,0,a)};_.g.getSize=function(){return this.aj.length};_.g.cancel=function(a){return _.za(this.aj,function(b){return b.Yv.config.requestId===a?(b.ee.resolve(lhc(b.Yv.kx)),!0):!1})};_.g.zK=function(){return _.sg(this.aj,function(a){return _.HJ(a.Yv.kx)})};
var Gkc=function(){vK.call(this,"Immediate")};_.K(Gkc,vK);Gkc.prototype.max=function(){return Infinity};Gkc.prototype.Y4=function(){this.sG()};
var Hkc=function(){vK.call(this,"One Request")};_.K(Hkc,vK);Hkc.prototype.max=function(){return 1};
_.yK=function(a){vK.call(this,"Parallel");this.limit=a;this.H=0};_.K(_.yK,vK);_.yK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.yK.prototype.Y4=function(){this.H<this.limit&&this.sG()};_.yK.prototype.eHa=function(a){this.H+=a.length};_.yK.prototype.T3a=function(a){this.H-=a.length;this.H<this.limit&&this.sG()};
var Ikc=function(){_.pi.apply(this,arguments)};_.K(Ikc,_.pi);var Kkc=function(a,b){a.dispatchEvent(new Jkc(b))};Ikc.prototype.O=function(){};var Jkc=function(a){_.gi.call(this,"Eb");this.request=a};_.K(Jkc,_.gi);
_.zK=function(a,b,c,d,e,f){_.pi.call(this);var h=this;this.ha=a;this.V=b;this.H=c;this.buckets=d;this.O=e;this.ka=0;this.W=new Map;this.Oc=new _.nf(this);this.Ja(this.Oc);for(a=0;a<this.H.length;a++)this.Oc.listen(this.H[a],"Db",this.a3a);for(a=0;a<this.O.length;a++)this.Oc.listen(this.O[a],"Eb",function(k){Lkc(h,!0,k.request)});this.logName=(0,_.Ws)("drive.ds.network.queue.Queue [%s]",f)};_.K(_.zK,_.pi);_.zK.prototype.add=function(a){return Lkc(this,!1,{Yv:a,ee:_.Rh(),eE:[]})};
_.zK.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};_.zK.prototype.zK=function(){return this.V.zK()?!0:this.buckets.some(function(a){return a.zK()})};
var Lkc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Bo(new _.Gc,"No queue bucket accepted request."),_.Ph(_.xd(a));for(var d=Mkc(a),e=0;e<a.H.length;e++)a.H[e].Y4(d);return c.ee.promise};_.g=_.zK.prototype;
_.g.a3a=function(){var a=Mkc(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].hua(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.ka++);this.W.set(c,a);for(var d=this.V.execute(a),e=0;e<a.length;e++)d[e].then(this.qzb.bind(this,a[e]),this.pzb.bind(this,a[e]));e=Mkc(this);for(var f=0;f<this.H.length;f++)this.H[f].eHa(a,e);_.Sh(_.jI(d).then(this.ozb.bind(this,a)),function(){b.W.delete(c)});_.n.setTimeout(this.a3a.bind(this),0)};
_.g.qzb=function(a,b){var c=a.Yv.config;this.log(khc(a.Yv.kx)+" request completed successfully. xd4: "+!(!c||!c.jO));this.H.forEach(function(d){return d.jPa()});this.O.forEach(function(d){return d.O(a)});a.ee.resolve(b)};
_.g.pzb=function(a,b){b=_.xd(b);this.log(khc(a.Yv.kx)+(" request failed with error: "+b.ha+"."));a.eE.push({response:b,tVb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].S3a(a);a.Yv.config.aHa||!this.O.some(function(d){return d.intercept(a)})?a.ee.reject(b):this.log(khc(a.Yv.kx)+" encountered an error, but was intercepted to be retried.")};_.g.ozb=function(a){Mkc(this);for(var b=0;b<this.H.length;b++)this.H[b].T3a(a)};
var Mkc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].getSize()){b=a.buckets[c].getSize();break}return b};_.zK.prototype.log=function(a){this.ha.info(this.logName,a)};
_.Nkc=function(a,b,c,d){Ikc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.wj(a,21,1E3);this.ta=_.wj(a,1,1);this.ma=function(){return new _.Akc(_.wj(a,63,1E3),_.wj(a,64,3E5),_.wj(a,65,10))}};_.K(_.Nkc,Ikc);
_.Nkc.prototype.intercept=function(a){var b=a.eE.length,c=0<b&&_.ka(a.eE).response||null;if(c){c=_.vI(c);if(2===c.Ip())return Okc(this,a);if(_.Wfc(c))return 2>=b?(Kkc(this,a),a=!0):a=!1,a;var d=c.Wj();if(3===d||31===d||13===d||9===d)return Pkc(this,a,b);if(Hgc(c))return b=Ckc(this.V),c=this.V,Ckc(c)<c.WK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Kkc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Okc=function(a,b){var c=Qkc(a,b),d=Ckc(c);if(Ckc(c)<c.WK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Me()?(d=c.H.Wa(),_.n.setTimeout(function(){return Kkc(a,b)},d),_.ZH(c.H)):(_.n.setTimeout(function(){return Kkc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Qkc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Pkc=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 Kkc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Nkc.prototype.O=function(a){this.H.delete(a)};_.Nkc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Rkc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Xfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.uvb,d=Lic(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.svb(_.NI(e),"reading data"))}},Skc=function(a){return Rkc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Tkc=function(a,b,c,d,e,f,h){this.Ia=a;this.H=b;this.Ka=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Fa=this.wa=this.ha=null;this.ee=_.Rh();this.finished=!1;this.Ba=this.Pu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Zz();a=_.Xfc()&&a?_.z(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};
Tkc.prototype.log=function(a){this.Ka.info("drive.ds.sync.request.ResumableUpload",a)};Tkc.prototype.start=function(){var a=this,b=new dhc(this.request.request,this.request.metadata),c=Ukc(this);this.Ia.then(function(d){return d.Qe(b,c)}).then(function(d){a.ha=d.O;a.wa=d.H;a.Fa=d.V;Vkc(a)},function(d){return void a.ee.reject(d)});return _.Sh(this.ee.promise.then(function(d){Wkc(a,d);return d},function(d){d=_.xd(d);Wkc(a,d.tg);return _.Ph(d)}),function(){ekc(a.H,[a.TO])})};
var Ukc=function(a){var b=_.eb(a.config);dkc(a.H,a.TO,oic(function(){return void a.H.notify([a.requestId],0)}));return b};Tkc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.ee.resolve(lhc(this.request)),!0)};
var Vkc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),Xkc(a,4))},Xkc=function(a,b){Ykc(a).then(function(c){if(c){var d=Zkc(a,c.blob.size);a.Ia.then(function(f){return f.Qe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.rK()&&(a.wa=f.rK());f.tN()&&(a.Fa=f.tN());a.progress<a.fileSize?Vkc(a):a.ee.resolve(f)},function(f){if(d.aHa)a.cancel();else{var h=_.vI(f);h.PDa()||h.Nma()||a.ma?$kc(a,b,h,!1):Skc(c.blob).then(function(k){k=k?_.hFa.get(k)||
25:38;_.II(h,k);$kc(a,b,h,38===h.Ip(),38!==h.Ip()&&25!==h.Ip())},function(){})}})}else{var e=_.xd(_.II(_.Bo(new _.Gc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.ee.reject(e)}})},$kc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.Ega(f);!e&&0<b?(a.Pu++,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+"."));Xkc(a,b)},a.Pa*Math.pow(1.5,f))):a.ee.reject(_.xd(c))},Ykc=function(a,b){return a.ma&&a.V?_.Oh(a.V):alc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return Ykc(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 ehc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.z(a.request.request,12)||
void 0);return a.V})},alc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.aR?a.request.aR(b,a.O):_.Oh(_.vgc(a.request.file,b,b+a.O))},Zkc=function(a,b){var c=_.eb(a.config);c.xUa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;ekc(a.H,[a.TO]);dkc(a.H,a.TO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},Wkc=function(a,b){b.kPa(3);b.Ega(a.Pu);b.rK()||b.Sda(a.wa);b.tN()||b.Hda(a.Fa)};
_.blc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.blc.prototype.create=function(a,b){return new Tkc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.clc=function(a){this.O=a;this.H={}};_.clc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Yv.kx instanceof _.fhc)b.push(dlc(this,a[c].Yv));else{var d=_.Bo(new _.Gc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.xd(d)))}return b};_.clc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.clc.prototype.zK=function(){return!_.ab(this.H)};
var dlc=function(a,b){var c=a.O.create(b.kx,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;d.then(function(){delete a.H[e]},function(){delete a.H[e]});return d};
_.elc=function(a,b){return new _.zK(b,a,[new Gkc],[new _.xK],[],"immediate")};_.flc=function(a,b,c,d,e){return new _.zK(e,a,[_.zkc(d),new _.wK(c,e),new Hkc],[new _.xK],[new _.Nkc(b,c,d.Ij(),e)],"connected")};_.glc=function(a,b,c,d,e,f,h){h=void 0===h?_.wj(b,10,50):h;return new _.zK(e,a,[_.zkc(d),new _.Ekc(h,_.wj(b,12,10)),new _.yK(3*h),new _.wK(c,e)],[new _.xK],[new _.Nkc(b,c,d.Ij(),e)],f)};_.hlc=function(a,b,c){return new _.zK(c,a,[new _.yK(_.wj(b,46,1))],[new _.xK],[],"resumable_upload")};
_.ilc=function(a,b,c,d,e,f,h,k){this.GI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.ilc.prototype.Qe=function(a,b){return jlc(this,a,b).then(null,function(c){c=_.xd(c);var d=c.tg;mhc(a)||_.Do(d);return _.Ph(c)})};
var jlc=function(a,b,c){c=void 0===c?{}:c;var d=a.GI.validate(b);if(d)return _.Ph(_.xd(d));var e=a.ma.translate(b);e instanceof _.Gc?d=void 0:Array.isArray(e)?(d=e.map(function(f){return a.W.execute(a,f,c)}).filter(function(f){return!!f}),d=0<d.length?Promise.all(d):void 0):d=a.W.execute(a,e,c)||void 0;return _.Oh(d).then(function(){if(e instanceof _.Gc)return _.Ph(_.xd(e));if(Array.isArray(e)){var f=e.map(function(h){return klc(a,b,h,c)});return _.jI(f)}return klc(a,b,e,c)},function(f){return _.Ph(_.xd(f))})},
klc=function(a,b,c,d){var e=llc(a,c);if(!e)return b=_.II(_.Bo(new _.Gc,"Failed to choose a queue for server request."),18),_.Ph(_.xd(b));if(e===a.H[7]||e===a.H[8])d.jO=!0;d=e.add({kx:c,config:d});(_.HJ(b)||_.HJ(c))&&d.then(function(){vkc(a.V)},function(){vkc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.ilc.prototype.cancel=function(a){return _.Wa(this.H,function(b){return b.cancel(a)})};
var llc=function(a,b){var c,d=!1;b instanceof _.fJ?d=!(null===(c=_.y(b,_.aG,2))||void 0===c||!_.Q(c,7)):b instanceof _.aG?d=!!_.Q(b,7):b instanceof _.nI&&(d=(d=b.jd())&&!!_.Q(d,46));return(b instanceof _.ihc||b instanceof _.EI&&_.Q(b,9))&&a.H[1]?a.H[1]:b instanceof _.fhc&&a.H[5]?a.H[5]:d&&thc(b,a.O)&&a.H[7]?a.H[7]:thc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.fJ||b instanceof _.aG)&&a.H[6]?a.H[6]:(d||lkc.includes(b.constructor))&&a.H[3]?a.H[3]:nhc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var mlc=function(a){this.H=a};mlc.prototype.build=function(a,b){var c="====="+_.hh()+"=====",d=a[0].mn,e=b.every(function(l){return l.jO});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=kkc(this.H,a[0].mn);_.Xi(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=nlc[d],h=olc[d]||{},h["content-type"]=(0,_.Ws)('multipart/mixed; boundary="%s"',c),d=plc[d],k=new _.Si("");a=qlc(this,a,b,c,e);return{mn:f,body:a,headers:h,method:d,uri:k}};
var qlc=function(a,b,c,d,e){for(var f=Sgc(rlc[b[0].mn]||{}),h="",k=0;k<b.length;k++){e&&ikc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=jkc(p,q.mn,q.uri);switch(q.mn){case 0:case 5:hkc(p,q,r);gkc(p,q,r);break;case 2:ikc(p,q,r);hkc(p,q,r);var v=q,w=_.z(p.H.Tf(),57);v.headers.host=_.$i(w).ik();v.headers.origin=_.n.location.origin?_.n.location.origin:_.n.location.protocol+"//"+_.n.location.host;gkc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("uf`"+q.mn);default:throw Error("tf`"+
q.mn);}p=l;q=p.uri.clone();q.Or("");q.Nn("");q.TA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Sgc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},slc={},nlc=(slc[0]=1,slc[2]=3,slc),tlc={},plc=(tlc[0]="POST",tlc[2]="PUT",tlc[12]="POST",tlc),ulc={},vlc={},olc=(vlc[2]=(ulc["x-goog-upload-protocol"]="batch",ulc),vlc),wlc={},xlc={},ylc={},zlc={},Alc={},rlc=(Alc[0]=(wlc["content-type"]="application/http",wlc["content-transfer-encoding"]="binary",wlc),
Alc[13]=(xlc["content-type"]="application/http",xlc["content-transfer-encoding"]="binary",xlc),Alc[12]=(ylc["content-type"]="application/http",ylc["content-transfer-encoding"]="binary",ylc),Alc[2]=(zlc["content-type"]="application/http",zlc),Alc);
var Blc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Clc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Dlc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.aj=new Map};Dlc.prototype.add=function(a,b){var c="DEFAULT";b.jO&&(c=kkc(this.V,a.mn).toString());this.aj.has(c)||this.aj.set(c,[]);c=this.aj.get(c);if(1<=c.length&&!b.jO&&!nlc[a.mn])return a=_.Bo(new _.Gc,"Unsupported batch API: "+a.mn),_.Ph(_.xd(a));var d=_.Rh();c.push({request:a,config:b,ee:d});return d.promise};
Dlc.prototype.send=function(){for(var a={},b=_.m(this.aj.entries()),c=b.next();!c.done;a={Jsa:a.Jsa},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Elc(this,d)}catch(f){var e=_.NI(f);e=_.Co(_.Bo(new _.Gc,"Error executing XHR: "+e.message),e.stack);a.Jsa=_.xd(e);d.forEach(function(h){return function(k){k.ee.reject(h.Jsa)}}(a));this.aj.delete(c)}}};
var Elc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.sEa&&!c.config.jO){var d=!1;if(nlc[c.request.mn]){var e={mn:c.request.mn,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.V.kc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){Flc(a,c);return}}}Glc(a,b)},Flc=function(a,b){var c=b.ee;a.W.nh(b.request,b.config).then(function(d){c.resolve(d);Hlc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Glc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.nh(a.ha.build(c,d),{sEa:!0,jO:d.every(function(e){return e.jO})}).then(function(e){e.headers=_.wgc(e.headers);var f=Clc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Hc("Could not extract batch boundary.",_.II(_.Co(new _.Gc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.fe(_.Rja(h[0]),f)&&_.Se(h[1]))h=_.Rja(h[0]).substring(f.length);else throw new _.Hc("Could not parse batch response; did not begin and end with boundary.",
_.II(_.Co(new _.Gc,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 w,A=e.headers,B=f[l],E=p&&p.uri,I=B.split("\r\n\r\n");if(2>I.length)v=new _.Hc("Individual batch response contained too few parts.",_.II(_.Co(new _.Gc,B),17));else{var M=I[1].split("\r\n");if(w=Blc.exec(M[0])){p=_.jh(w[1]);w=w[2];M.shift();A=_.eb(A);for(var P=Object,T=P.assign,aa={},ba=0;ba<M.length;ba++){var da=_.$ja(M[ba],":",1);da&&2===
da.length&&(aa[(0,_.vg)(da[0])]=(0,_.vg)(da[1]))}M=_.wgc(aa);T.call(P,A,M);try{v=_.Se(_.gh(I[2]))?void 0:JSON.parse(I[2])}catch(ha){}v=(p=_.Bgc(p,w,A,B,v,void 0,void 0,E&&E.toString()))?_.xd(p):{headers:A,text:B,json:v||void 0}}else v=new _.Hc("Could not extract HTTP status code and text.",_.II(_.Co(new _.Gc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.xd(e);return _.Mcc(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].ee,l=e[h];l instanceof _.Gc||l instanceof
_.Hc?(l=_.xd(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Hlc(a,b[0])})},Hlc=function(a,b){var c=b.request.mn;b=!b.config.Ju&&_.pa(Ilc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=Xjc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.V)&&(a.H.Bj(),a.H=null)}else a.O&&b&&a.O.wa()};
Dlc.prototype.handleError=function(a,b){a=_.zda(b);if(2===a.Ip()){if(this.H)return _.Zjc(this.H),!0}else if(_.Wfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.W&&b.isConnected()?b.O=!0:!1;b&&_.Yjc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Ilc=[0,2,4,7,8];
var Jlc=function(){_.Pi.apply(this,arguments)};_.K(Jlc,_.Pi);Jlc.prototype.getAllResponseHeaders=function(){return _.Rja(_.Pi.prototype.getAllResponseHeaders.call(this))};
var Klc=function(a,b){this.ha=a;this.W=b;this.V={};this.O={};this.H={}};
Klc.prototype.nh=function(a,b){var c=this;try{this.ha.kc(a,b);var d=new Jlc;d.LC=!0;var e=b.requestId||"",f=_.Rh();d.listen("complete",function(){var h=b.sEa,k=4===a.mn;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.V[e],delete c.O[e],delete c.H[e]);var l={headers:_.Jma(d),text:d.Wk()};if((!b.eUb||_.zgc(d.Cb()))&&!h)try{l.json=_.JI(d)}catch(p){}h=_.Bgc(d.Cb(),_.Gma(d),l.headers,l.text,l.json,d.O,_.Kma(d),String(d.ta),k);d.dispose();h?f.reject(_.xd(h)):f.resolve(l)});e&&b.xOb&&(this.H[e]=0,d.listen("readystatechange",
function(){if(3===_.Qi(d)&&d.vA()&&200===d.Cb()){var h=d.Wk(),k=c.H[e];h.length>k&&(k=h.substring(k),c.H[e]=h.length,b.xOb(k))}}));e&&b.TO&&!b.jO&&(this.V[e]=d,this.O[e]=b,d.Gb=!0,d.listen("uploadprogress",function(h){h.lengthComputable&&c.W.notify([b.TO],b.xUa?h.loaded/h.total:h.loaded/h.total/2)}),b.xUa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.W.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 _.Ph(_.xd(h))}};
Klc.prototype.cancel=function(a){var b=this.V[a];a=this.O[a];return b&&b.isActive()?(a.aHa=!0,b.abort(),!0):!1};
_.Llc=function(a,b,c,d,e,f,h){this.O=a;this.wa=b;this.Ba=c;this.ta=d;this.ma=e;this.ha=f;this.H=h;this.V=[];this.ka=new mlc(this.O);this.W=new Klc(this.O,this.wa)};_.g=_.Llc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Yv;this.V.push(e);b.push(this.Ba.convert(e,a[d].eE));c.push(mkc(e.kx)?_.qkc(this.ma,e.kx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.xd(_.Bgc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Dlc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={osa:e.osa},k++){e.osa=a[k].Yv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.osa)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Yv,l=d[e].then(this.$qb.bind(this,k.kx,c[e],a[e].eE)).then(null,function(p){return Promise.reject(_.xd(p))}),l.then(this.lPa.bind(this,k),this.lPa.bind(this,k)),b.push(l);return b};_.g.$qb=function(a,b,c,d){a=this.ta.convert(a,d,c);b&&a.then(function(e){e=e.Bd?e.Bd():[];_.rkc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.zK=function(){return this.V.some(function(a){return _.HJ(a.kx)})};_.g.lPa=function(a){_.ya(this.V,a)};
_.Mlc=function(){};_.Mlc.prototype.execute=function(){return null};
var Nlc=function(){};
var Olc=function(a,b){this.H=a;this.retryCount=b};
_.AK=function(a){return function(b){return b.kind===a}};
_.Plc=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 Qlc;Qlc=function(a){this.H=a};_.BK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Hc("Expected an object, but got a "+_.fha(b)+".",_.MI(11,void 0,8));if(null===b||void 0===b||void 0===b.kind)throw new _.Hc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.MI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Hc("Unexpected response type: "+c+".",_.MI(11,void 0,9));};_.CK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Rlc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.rk;c=_.x(c,1,a.canAddChildren);c=_.x(c,18,a.canChangeTeamDriveBackground);c=_.x(c,2,a.canComment);c=_.x(c,3,a.canCopy);b=_.x(c,4,b);b=_.x(b,5,a.canDownload);b=_.x(b,6,a.canEdit);b=_.x(b,10,a.canManageMembers);b=_.x(b,11,a.canManageVisitors);b=_.x(b,20,a.canMoveItemIntoTeamDrive);b=_.x(b,17,a.canMoveTeamDriveItem);b=_.Fhc(b,a.canReadTeamDrive);b=_.x(b,7,a.canRemoveChildren);b=_.x(b,12,a.canRename);b=_.x(b,13,a.canRenameTeamDrive);
b=_.x(b,8,a.canShare);b=_.x(b,9,a.canTrash);b=_.x(b,21,a.canUntrash);b=_.x(b,27,a.canModifyContentRestriction);b=_.x(b,26,a.canShareOutsideDomain);b=_.x(b,30,a.canMoveItemWithinTeamDrive);b=_.x(b,31,a.canMoveItemOutOfTeamDrive);b=_.x(b,32,a.canMoveChildrenWithinTeamDrive);b=_.x(b,33,a.canMoveChildrenOutOfTeamDrive);b=_.x(b,34,a.canDeleteChildren);b=_.x(b,35,a.canTrashChildren);b=_.x(b,36,a.canRequestApproval);b=_.x(b,37,a.canReadCategoryMetadata);b=_.x(b,38,a.canEditCategoryMetadata);b=_.x(b,39,a.canChangeCategoryReferences);
b=_.x(b,49,a.canSetMissingRequiredFields);b=_.x(b,40,a.canAddMyDriveParent);b=_.x(b,41,a.canRemoveMyDriveParent);b=_.x(b,42,a.canShareChildFiles);b=_.x(b,43,a.canShareChildFolders);b=_.x(b,44,a.canRead);b=_.x(b,45,a.canMoveItemWithinDrive);b=_.x(b,46,a.canMoveItemOutOfDrive);b=_.x(b,47,a.canMoveChildrenWithinDrive);b=_.x(b,48,a.canAddFolderFromAnotherDrive);b=_.x(b,50,a.canChangeSecurityUpdateEnabled);b=_.x(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.x(b,52,a.canCreateDecryptedCopy);b=_.x(b,
53,a.canCreateEncryptedCopy);b=_.x(b,54,void 0===a.canAddEncryptedChildren?a.canAddChildren:a.canAddEncryptedChildren);return _.x(b,55,a.canBlockOwner)};_.DK=function(a,b){_.BK(_.AK("drive#user"),b);var c=_.Dhc(_.Ehc(_.Bhc(1).Nb(b.permissionId),b.id).$c(b.displayName),b.emailAddress);b.picture&&c.On(b.picture.url);_.mI(a.H)&&_.Dhc(c,b.emailAddressFromAccount||b.emailAddress);_.Chc(c,a.mf(b.id));c.Nn(b.domain);return c};Qlc.prototype.mf=function(a){if(a)return _.UJ(_.fI(this.H))==a};
var Slc,Xlc,emc,kmc,$lc,Zlc,bmc,dmc,fmc,Ulc,hmc,gmc,imc,jmc,mmc,nmc,lmc,cmc;Slc=function(a,b){this.H=a;this.O=b};
_.Vlc=function(a,b,c){var d=new _.uK,e=new _.eI,f=e.iB,h=[];if(_.AK("drive#file")(b))(a=_.Tlc(a,b))&&h.push(a);else if(_.AK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Tlc(a,k[l]);h.push(p)}e=f.call(e,h);if(_.AK("drive#fileList")(b)){_.x(e,8,b.incompleteSearch);if(h=b.spellResponse){f=[];var q=_.m(h.spellCorrections);for(a=q.next();!a.done;a=q.next()){h=[];a=_.m(a.value.spellFragments);for(k=a.next();!k.done;k=a.next())k=k.value,l=(new _.jec).Dc(Ulc.get(k.status)),l=_.x(l,
1,k.original),k=_.x(l,3,k.correction),h.push(k);a=new _.nec;h=_.lj(a,1,h);f.push(h)}q=new _.pec;_.lj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.lec;_.jj(r,1,f)}q||r?(f=new _.qec,q&&_.G(f,1,q),r&&_.G(f,2,r),r=f):r=null;_.G(e,7,r);r=[];f=_.m(b.items||[]);for(q=f.next();!q.done;q=f.next())q=q.value,h=q.id,!h||"1"!=q.searchResultSource&&"3"!=q.searchResultSource||r.push(h);_.jj(e,18,r)}d=_.skc(d,e);c=_.ygc(c);c=_.x(d,2,c);_.AK("drive#fileList")(b)&&b.nextPageToken&&_.x(c,3,b.nextPageToken);
return c};Xlc=function(a,b,c,d,e){var f=_.Kic(new _.GJ,c);_.AK("drive#adminFile")(b)?(c=(new _.Ak).Nb(b.id),b.parentId&&_.PJ(c,[b.parentId]),_.Shc(c,b.teamDriveId),f.setItem(c),_.Kic(f,c.getId())):_.AK("drive#file")(b)?(b=_.Tlc(a,b),f.setItem(b),c||_.Kic(f,b.getId())):_.AK("drive#revision")(b)&&(b=_.Wlc(a,b),_.G(f,4,b));f.Sda(_.xgc(d));f.Hda(_.ygc(d));(d=(d=d&&_.wgc(d))&&d["x-server-object-version"])&&e&&(e=(new _.aK).Nb(d),_.G(f,4,e));f.Dc(1);return f};_.Ylc=function(a,b){return _.Kic(new _.GJ,a).Dc(1).Sda(_.xgc(b)).Hda(_.ygc(b))};
_.amc=function(a,b){var c=_.Chc(_.Ehc(_.Bhc(Zlc.get(b.type)).Nb(b.id),b.userId),a.H.mf(b.userId));c=_.x(c,4,b.withLink);c=_.Dhc(c.$c(b.name).On(b.photoLink),b.emailAddress).Nn(b.domain);c=_.x(c,10,b.deleted);c=_.x(c,12,b.audienceId);c=_.x(c,13,b.customerId);_.mI(a.O)&&c.$c(b.nameIfNotUser);b.role&&(a=$lc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.x(c,6,a));return c};
_.Tlc=function(a,b){var c=b.title,d=(new _.Ak).Nb(b.id),e=[];if(b&&b.parents)for(var f=_.m(b.parents),h=f.next();!h.done;h=f.next())e.push(h.value.id);c=_.Ohc(_.hG(_.PJ(d,e).setTitle(c),b.mimeType),b.alternateLink);c=_.x(c,44,b.hasThumbnail);null!=b.thumbnailVersion&&_.x(c,90,Number(b.thumbnailVersion));_.x(c,21,b.iconLink);c.kl(b.description);_.x(c,26,b.explicitlyTrashed);_.x(c,22,b.shared);null!=b.quotaBytesUsed&&_.x(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.x(c,14,Number(b.fileSize));
_.x(c,30,b.copyable);b.labels&&(d=b.labels,c.ox(d.starred),_.x(c,6,d.hidden),c.Qo(d.trashed),_.x(c,8,d.restricted),_.x(c,9,d.viewed));_.x(c,10,_.CK(b.createdDate));_.x(c,69,_.CK(b.serverCreatedDate));_.x(c,11,_.CK(b.modifiedDate));_.x(c,12,_.CK(b.modifiedByMeDate));_.x(c,13,_.CK(b.lastViewedByMeDate));_.x(c,23,_.CK(b.sharedWithMeDate));_.x(c,62,_.CK(b.mfc));_.x(c,70,_.CK(b.recency));b.recencyReason&&(d=bmc.get(b.recencyReason)||0,_.x(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.DK(a.H,e[f]))&&d.push(h);_.Mhc(c,d);b.lastModifyingUser&&(d=_.DK(a.H,b.lastModifyingUser),_.Nhc(c,d));b.userPermission&&(d=$lc.get(b.userPermission.role),_.bWb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.MJ).oh(e.width).Ah(e.height),d=_.x(d,4,e.rotation),e.date&&(e=e.date,f=new _.aNa,f.setMilliseconds(0),cmc.parse(e,f),_.x(d,1,f.getTime())),_.G(c,27,d));null!=b.folderColor&&_.Phc(c,Number(b.folderColor));_.x(c,31,b.subscribed);_.x(c,45,b.fileExtension);_.jj(c,50,b.folderFeatures);
_.x(c,36,b.flaggedForAbuse);_.x(c,53,b.gplusMedia);_.x(c,46,b.primarySyncParentId||void 0);_.x(c,35,b.hasChildFolders);b.source&&(_.x(c,42,b.source.client_service_id),_.x(c,43,b.source.value));b.sharingUser&&(d=_.DK(a.H,b.sharingUser),_.Qhc(c,d));b.sources?_.jj(c,56,b.sources):b.gplusMedia&&_.jj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.ufc[h]&&(h=_.yf(new _.xf,_.ufc[h]),e.push(h));c.UA(e)}_.x(c,63,b.ownedByMe);_.x(c,29,b.shareable);b.sourceAppId&&_.x(c,
61,b.sourceAppId);_.x(c,74,b.changed);if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++){var k=d[f];k.id&&k.type&&(h=(new _.Foa).Nb(k.id),k=dmc.get(k.type),h=_.x(h,2,k),e.push(h))}_.lj(c,83,e)}b.capabilities&&_.QJ(c,_.Rlc(b.capabilities));b.permissionsSummary&&_.Thc(c,emc(a,b.permissionsSummary));b.headRevisionId&&_.x(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.NJ).kl(d.description),f=fmc.get(d.galleryState),e=_.x(e,3,f),d=_.jj(e,2,d.category),_.G(c,86,d));_.Shc(c,
b.teamDriveId);_.x(c,76,b.hasAugmentedPermissions);_.x(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.DK(a.H,b.creator),_.Uhc(c,d));_.Vhc(c,b.primaryDomainName);_.Whc(c,b.organizationDisplayName);_.x(c,94,b.passivelySubscribed);b.trashingUser&&_.Xhc(c,_.DK(a.H,b.trashingUser));c.Wda(_.CK(b.trashedDate));b.version&&_.x(c,75,Number(b.version));_.x(c,98,b.hasVisitorPermissions);_.x(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=gmc.get(d),_.x(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.OJ).oh(d.width).Ah(d.height),d.durationMillis&&_.x(e,3,Number(d.durationMillis)),_.G(c,103,e));_.jj(c,104,b.detectors);_.x(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,h=(new _.vk).rP(f.readOnly),f=_.x(h,2,f.reason),d.push(f);_.lj(c,125,d)}if(d=b.publishingInfo)_.x(c,118,d.published),_.x(c,119,d.publishedUrl);_.jj(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.x(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 _.Hoa).Nb(f.approvalId).Dc(hmc.get(f.status)),d.push(f);_.lj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.Qoa,e=_.x(e,1,d.targetId),e=_.x(e,3,d.targetMimeType),e=_.x(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&(f=imc.get(d.targetLookupStatus)||0,_.x(e,4,f)),d.targetFile&&(d=_.Tlc(a,
d.targetFile),_.G(e,5,d)),_.G(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.LJ,f=jmc.get(d.encryptionState),e=_.x(e,1,f),d.decryptionMetadata&&(d=kmc(d.decryptionMetadata),_.G(e,2,d)),_.G(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Hhc,e=_.x(e,2,d.securityUpdateEligible),e=_.x(e,3,d.securityUpdateEnabled),d=_.x(e,5,d.securityUpdateExplicitlySet),_.G(c,139,d));_.x(c,140,b.resourceKey);_.jj(c,135,b.authorizedAppIds);_.Yhc(c,b.customerId);_.x(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=lmc.get(b.abuseNoticeReason)||0,_.x(c,145,b));_.Ogc(c);_.mI(a.O)&&_.Rhc(c,5);return c};_.Wlc=function(a,b){var c=(new _.aK).Nb(b.id);c=_.x(c,2,b.mimeType);c=_.x(c,3,_.CK(b.modifiedDate));c=_.x(c,4,b.pinned);c=_.x(c,5,b.downloadUrl);c=_.x(c,7,b.originalFilename);null!=b.fileSize&&_.x(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.DK(a.H,b.lastModifyingUser),_.G(c,9,a));b.decryptionMetadata&&(b=kmc(b.decryptionMetadata),_.G(c,10,b));return c};
emc=function(a,b){return _.Khc(_.Jhc(_.Ihc(new _.Loa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.Bhc(Zlc.get(c.type)).Nn(c.domain);d=_.x(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=$lc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.x(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.amc(a,c)}))};
kmc=function(a){var b=a.wrappedKey;var c=new _.Ghc;b=b?_.tec(b):void 0;c=_.x(c,1,b);c=_.x(c,2,Number(a.kaclsId));c=_.x(c,5,a.kaclsName);b=mmc.get(a.aes256GcmChunkSize);c=_.x(c,3,b);b=nmc.get(a.keyFormat);c=_.x(c,6,b);return _.x(c,4,a.jwt)};$lc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);Zlc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);bmc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
dmc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);fmc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);Ulc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);hmc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);gmc=new Map([["docs",1],["sheets",2],["slides",3]]);imc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);jmc=new Map([["unencrypted",1],["encrypted",2]]);mmc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
nmc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);lmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);cmc=new _.EVa("yyyy:MM:dd HH:mm:ss");
var omc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var qmc,smc;_.pmc=function(a){this.V=a;this.W=new Qlc(a);this.NF=new Slc(this.W,a);this.V=a};
_.pmc.prototype.convert=function(a,b,c){c=void 0===c?[]:c;try{var d=this.ka(a,b);if(d)var e=Promise.resolve(d);else{if(a instanceof _.UI)var f=Promise.resolve(_.EK(this,a,b));else{if(a instanceof _.cJ)var h=qmc(this,0,b,c);else{if(a instanceof _.aG||a instanceof _.fJ){var k=Promise,l=k.resolve;if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#fileList"),_.AK("drive#file")),b.json);var p=_.Vlc(this.NF,b.json,b.headers);var q=l.call(k,p)}else{if(a instanceof _.DJ)k=Promise.resolve(_.EK(this,a,b));else{if("undefined"!=
typeof _.ahc&&a instanceof _.ahc){var r=Promise,v=r.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#generateCseTokenResponse"),b.json);var w=b.json;var A=v.call(r,new _.Plc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.rmc&&a instanceof _.rmc){var B=Promise,E=B.resolve;if(!b.json)throw _.FK();_.BK(_.AK("drive#revision"),b.json);var I=_.Wlc(this.NF,b.json);r=E.call(B,I)}else{if(a instanceof _.sJ)B=qmc(this,a.jd(),b,c);else{if(a instanceof ehc){l=
Promise;var M=l.resolve;if(a.C1a){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),b.json);var P=Xlc(this.NF,b.json,null,b.headers,!!a.revisionId)}else P=_.Ylc(null,b.headers);var T=M.call(l,P)}else{if(a instanceof dhc){a=Promise;var aa=a.resolve,ba=_.wgc(b.headers),da=ba.location;if(!da){var ha=_.II(new _.Gc,10);throw new _.Hc("No upload session URI included.",ha);}var xa=new omc(da,_.xgc(ba),_.ygc(ba));var ua=aa.call(a,xa)}else ua=a instanceof
_.ihc?Promise.resolve(new Nlc):Promise.reject(new _.Hc("FromXhrConverter: Unsupported request type.",new _.Gc));T=ua}B=T}r=B}A=r}k=A}q=k}h=q}f=h}e=f}return e}catch(Ja){return Promise.reject(_.xd(Ja))}};_.pmc.prototype.ka=function(){return null};
qmc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.wj(a.V,95,0)?smc(c.text,_.wj(a.V,95,0)).then(function(e){return new Olc(e,d.length)}):Promise.resolve(new Olc(_.eba(c.text),d.length)):b?Promise.reject(Error("rg")):Promise.resolve(new Olc(new Uint8Array(_.bna(c.text)),d.length))};
smc=function(a,b){return new Promise(function(c){for(var d=[],e={i_:0};e.i_<Math.floor(a.length/b);e={i_:e.i_},e.i_++)_.ri(function(f){return function(){d.push(_.eba(a.slice(f.i_*b,(f.i_+1)*b)))}}(e),0);_.ri(function(){d.push(_.eba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.ri(function(){var f=d.map(function(l){return l.byteLength}).reduce(function(l,p){return l+p});f=new Uint8Array(f);for(var h=0,k=0;k<d.length;k++)f.set(d[k],h),h+=d[k].byteLength;c(f)},0)})};
_.EK=function(a,b,c){if(!c.json){if(b instanceof _.xI)return _.Ylc(_.tmc(b));throw _.FK();}var d=!1;b instanceof _.DJ&&(d=!!_.z(b.request,12));_.BK(_.LI(_.AK("drive#file"),_.AK("drive#adminFile"),_.AK("drive#revision")),c.json);return Xlc(a.NF,c.json,_.tmc(b),c.headers,d)};_.FK=function(){var a=_.II(new _.Gc,11);return new _.Hc("FromXhrConverter: JSON required, but none found",a)};_.tmc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var umc,wmc,uhc,xmc,vhc;umc={};_.vmc=(umc[1]="active",umc[2]="archived",umc);wmc={};uhc=(wmc[0]="unset",wmc[1]="default",wmc[2]="small",wmc[3]="size16kb",wmc);xmc={};vhc=(xmc[0]="unsetKeyFormat",xmc[1]="tinkKeyset",xmc[2]="tinkAesGcmKey",xmc);
var Amc=function(a,b,c){return(a.aR?a.aR(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Rkc(d)}).then(function(d){return ymc(a,b,d,c)},zmc)},ymc=function(a,b,c,d){var e=!!_.z(a.request,12),f={},h="files";e&&(h+="/"+_.z(a.request,12));h=new _.Si(h);f.uploadType="multipart";f.supportsTeamDrives=!0;f.pinned=!!_.R(a.request,13,!1);null!=_.Q(a.request,8)&&(f.convert=_.Q(a.request,8));f.fields=_.Kgc({fields:_.bK(b).filter(function(q){return 194!=q}),anonymous:!1});Pgc(f,h);Qgc(h,a.request.re());
var k=zhc(a.request,a.metadata);f=_.hh();b={};b=(b["content-type"]=(0,_.Ws)('multipart/related; boundary="%s"',f),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";k=JSON.stringify(k);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());_.KJ(d,_.yb(a.request,_.dl,28),[],null,b);a="--"+f;a=a+"\r\n"+Sgc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+Sgc(p)+"\r\n"+c+"\r\n"+a+"--";return{mn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},zmc=function(a){if(a instanceof _.svb){var b=new _.Gc;_.Bo(b,"fs.Error: "+a.message);a=(a=a.name)?_.hFa.get(a)||25:38;_.II(b,a);b=_.xd(b)}else b=_.NI(a);return Promise.reject(b)};
_.GK=function(a,b,c,d){this.H=a;this.Bg=b;this.O=c;this.Xf=d};_.GK.prototype.convert=function(a,b){try{return a.kx instanceof _.DJ?Amc(a.kx,this.Bg,this.H):Promise.resolve(this.V(a.kx,a.config,b))}catch(c){return c instanceof _.Hc?a=c.tg:(a=new _.Gc,_.Bo(a,"Error converting XHR: "+c.message),_.Co(a,c.stack),_.II(a,4)),Promise.reject(a)}};
_.GK.prototype.V=function(a,b,c){var d,e=0,f,h={},k="GET",l={},p=!1,q=!1;if(a instanceof _.UI){k=(f=!!_.z(a,12))?"PUT":"POST";var r="files";f&&(r+="/"+_.z(a,12),l.pinned=!!_.R(a,13,!1));null!=_.Q(a,8)&&(l.convert=_.Q(a,8));l.fields=_.Kgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)});f=zhc(a);h["content-type"]="application/json";var v=a.re();q=!0;l.supportsTeamDrives=!0;_.R(this.H,3,!1)&&(l.enforceSingleParent=!0);_.KJ(this.H,_.yb(a,_.dl,28),_.re(a,3).concat([_.z(a,16),a.U2(),a.qc()]),
this.O,h)}else if(a instanceof _.cJ||a instanceof _.sJ)a instanceof _.sJ?(p=a.jd(),_.dj(a,2)&&(r="bytes="+_.z(a,2)+"-",_.dj(a,3)&&(r+=_.z(a,3)),h.range=r)):p=a,b.eUb=!0,r="files/"+p.getId(),_.z(p,2)&&(l.revisionId=_.z(p,2)),l.alt="media",h["X-Goog-Encode-Response-If-Executable"]="base64",_.KJ(this.H,[_.fl((new _.dl).Nb(p.getId()),_.z(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.fJ||a instanceof _.aG){if(a instanceof _.fJ){r=_.z(a,1);var w=_.y(a,_.aG,2)}else if(a instanceof _.aG)r=0,
w=a,a.V(),_.rK(this.Xf,190196159);else throw Error("sg");var A=w.V()[r];r="files/"+A;a=_.Aa(this.hh(),this.hh(w.H()));_.Ga(a);l.fields=_.Kgc({fields:a,anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)});l.supportsTeamDrives=!0;_.R(this.H,14,!1)&&(l.useLegacyDomainPermissionBehavior=!1);this.W(A,l);v=w.re();q=!0;_.Q(w,7)&&(b.sEa=!0);10!=_.WJ(this.H)||(null===(d=_.IJ(this.H))||void 0===d?0:_.R(d,22,!1))?_.KJ(this.H,_.yb(w,_.dl,11).filter(function(E){return E.getId()==A}),[A],this.O,h):_.KJ(this.H,_.yb(w,
_.dl,11),w.V(),this.O,h)}else if("undefined"!=typeof _.ahc&&a instanceof _.ahc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.rmc&&a instanceof _.rmc)l.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",r="files/"+a.id+"/revisions/"+a.revisionId,q=p=!0;else if(a instanceof ehc){e=4;k="PUT";r=a.V;a.contentType&&(h["content-type"]=a.contentType);if(a.O>=a.H){var B=
a.H;b=a.O;h["content-range"]=a.C1a?(0,_.Ws)("bytes %d-%d/%d",B,b,b+1):(0,_.Ws)("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof dhc?(e=2,k=(f=!!_.z(a.request,12))?"PUT":"POST",r="files",f&&(r+="/"+_.z(a.request,12)),l.uploadType="resumable",l.pinned=!!_.R(a.request,13,!1),null!=_.Q(a.request,8)&&(l.convert=_.Q(a.request,8)),l.fields=_.Kgc({fields:this.hh().filter(function(E){return 194!=E}),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),l.supportsTeamDrives=!0,f=zhc(a.request,a.metadata),h["content-type"]=
"application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.KJ(this.H,[],_.re(a.request,3),this.O,h),v=a.request.re(),q=!0):a instanceof _.ihc?(r="about",l.fields="kind",v=a.H,q=!0):_.Bmc(a);q&&_.Cmc(c,l);0!=e||p||v&&_.z(v,1)||_.rK(this.Xf,74438989);return _.Dmc(this,e,r,l,h,k,v,f,B)};
_.Dmc=function(a,b,c,d,e,f,h,k,l){c=new _.Si(c);[10,12,13].includes(b)||Qgc(c,h);(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,_.Yi(c,a,h);return{mn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.GK.prototype.W=function(){};_.Cmc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ka(a).tVb):b.retryCount=0};
_.GK.prototype.hh=function(a){a||(a=_.bK(this.Bg));return a};_.Bmc=function(a){var b=_.II(new _.Gc,4);throw new _.Hc("ToXhrConverter: Unsupported request type: "+khc(a),b);};
_.HK=function(a,b,c,d,e,f){_.pi.call(this);var h=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.Ba=e;this.wa=f;this.aj={};this.ka={};this.Xf=null;_.ef(this,function(){h.IG()})};_.K(_.HK,_.pi);_.HK.prototype.fR=function(){return _.FI()};
_.HK.prototype.upload=function(a,b,c,d){pkc(this.V,"UploadTotalCount");var e=a.mj();if(e&&this.aj[e])throw new _.Hc("Upload requested with a duplicate request ID.");var f=_.re(a,10);if(f&&f.length){if(1!==f.length)throw new _.Hc("Multi-parented uploads are not supported.");var h=this.aj[f[0]];if(!h)throw new _.Hc("The parent upload request must precede this request.");}!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);e||(e=this.fR(),_.x(a,9,e));a=a.clone();f=Emc(this,e);this.aj[e]={request:a,
file:b,Ee:f,hN:!1,Pu:0,success:!1,ZE:!1,children:[],metadata:c,Yma:void 0,aR:d};h?Fmc(this,e,h):this.ma(e);return f.nn()};
var Emc=function(a,b){var c=new _.Th;c.dg(_.Ob(a.Fa,b),_.Ob(a.Ia,b),a);return c},Fmc=function(a,b,c,d){var e=a.aj[b];c.children.push(b);_.Ga(c.children);c.Ee.then(function(f){if(1===f.Cb()&&(f=f.qc(),_.re(e.request,3).push(f),_.gI(e.request,10),!c.ZE||d)){a.ma(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.Ee.Gd(_.sI(f)?f:Error(f))})};
_.HK.prototype.Fa=function(a,b){pkc(this.V,"UploadSuccessCount");a=this.aj[a];a.success=1===b.Cb();(b=a.Yma)&&!a.ZE&&(yic(Aic(mjc(b),a.Pu),!0),b.Bj())};_.HK.prototype.Ia=function(a,b){var c=this.O.dH();c&&_.R(c,1,!1)&&(this.ka[a]=b);pkc(this.V,"UploadFailureCount");c=this.aj[a];(a=c.Yma)&&!c.ZE&&(yic(Aic(mjc(a),c.Pu),!1),b=(c=b&&b.tg)&&c.Wj(),c=c&&c.Ip(),b?zic(mjc(a),Gmc.get(b)||13):c&&zic(mjc(a),Hmc.get(c)||0),a.Bj())};
_.HK.prototype.ma=function(a){var b=this.aj[a];if(!b.hN){b.hN=!0;a=this.aj[a];var c=a.request,d=this.O.dH();d&&_.R(d,4,!1)&&(d=c.getTitle().match(Imc))&&(!d[1]||a.Pu<Number(d[1].substr(1)))&&(c=c.clone(),_.sa(_.re(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Zz())?_.z(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Tf();var e=_.wj(c,33,1048576);e=b.file&&b.file&&d>e?2:b.file?1:3;if(this.wa&&3!==e){var f=this.wa.H(106012);f&&(b.Yma=f,f=mjc(f),f=_.x(f,1,2===e?2:1),f=_.x(f,4,!!b.metadata),f=_.x(f,
5,!!_.z(a,12)),d=_.x(f,6,d),_.x(d,7,_.wj(c,32,1073741824)))}switch(e){case 2:b.file&&Jmc(this,new _.fhc(a,b.file,b.aR,b.metadata),b.Ee,a.mj());break;case 1:b.file&&(c=b.Ee,d=b.file,e=b.metadata,b=b.aR,f=_.y(this.O,_.Zhc,2),Jmc(this,new _.DJ(a,d,b,f&&_.RJ(f)?e:void 0),c,a.mj()));break;case 3:Jmc(this,a,b.Ee,a.mj());break;default:throw new _.Hc("Upload type ${uploadType} not supported.");}}};
var Jmc=function(a,b,c,d){dkc(a.W,d,a.ta.bind(a,d));var e=a.ha.then(function(f){return f.Qe(b,{requestId:d})}).then(null,function(f){return Kmc(a,b,f)});e.then(function(){ekc(a.W,[d])},function(){ekc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Gd(f)})},Kmc=function(a,b,c){var d=_.xd(c),e=b instanceof _.DJ&&b.request.qc()||"";c=d.tg;if(e&&8===c.Wj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.cG(new _.aG,[e]);return _.Zh(a.ha.then(function(h){return h.Qe(f)}).then(function(h){h=
h.Zc().Bd()[0];var k=b.request;if(h&&!h.Qh()&&(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Kic((new _.GJ).setItem(h),e).Dc(1);a.log("No matching item found for: "+e);return _.Ph(d)}))}return _.$h(d)};_.g=_.HK.prototype;
_.g.cancel=function(a){var b=this,c=this.aj[a];if(c&&(!c.ZE||0!==c.children.length))if(c.ZE=!0,c.Ee.Wf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ma(c.children,this.cancel,this);else{var d=c.Yma;d&&(zic(yic(Aic(mjc(d),c.Pu),!1),2),d.Bj());var e=_.Rh();c.hN?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.hN=!0,c.Ee.callback(lhc(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.IG=function(){var a=this;_.Ta(this.aj,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.aj[f]){var h=[];do{h.push(f);var k=(_.re(b.aj[f].request,10)||[])[0];if(k){var l=b.aj[k];if(l.success||!l.Ee.Wf()||e[k])break;else if(!c.has(k)){e[f]=new _.Hc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.la(h,function(p){var q=b.aj[p];q.Pu++;if(!e[p])if(!q.Ee.Wf()||q.success)e[p]=new _.Hc("Unable to retry request.");else{var r=(_.re(q.request,10)||[])[0];e[r]instanceof _.Hc?
e[p]=e[r]:(q.Ee=Emc(b,p),q.hN=!1,q.ZE=!1,(r=r?b.aj[r]:null)?Fmc(b,p,r,!0):d.push(p),e[p]=q.Ee.nn())}})}else e[f]=new _.Hc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.Th?f:_.$h(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.jd=function(a){return this.aj[a]};var Imc=/^uploadTestFailMe(\.[1-9])?$/,Hmc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),Gmc=new Map([[3,14]]);

_.u();

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

_.Lmc=function(a,b){return _.x(a,1,b)};_.Mmc=function(a,b){return _.G(a,1,b)};_.Nmc=function(a,b){return _.x(a,2,b)};_.Omc=function(a,b){return _.G(a,3,b)};

_.u();

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


_.u();

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

var Pmc;_.IK=function(a){_.J.call(this,a,-1,Pmc)};_.K(_.IK,_.J);_.IK.prototype.Cb=function(){return _.z(this,1)};_.IK.prototype.Dc=function(a){return _.x(this,1,a)};_.IK.prototype.Nh=function(){return _.yb(this,_.Ak,2)};_.Qmc=function(a,b){return _.lj(a,2,b)};_.IK.prototype.Oq=function(a,b){return _.qj(this,2,a,_.Ak,b)};_.IK.prototype.Vf=function(){return _.z(this,4)};_.Rmc=function(a,b){return _.x(a,4,b)};Pmc=[2];

_.u();

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

_.JK=function(a,b){_.x(a,1,b)};

_.u();

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

var Smc;_.Tmc=function(a){return _.Xe(a).hh(_.R(a.get(_.Jo),19,!1)?Smc:_.Ve)};Smc=[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];

_.u();

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

var Umc,Vmc,Wmc,Xmc,Ymc,KK,Zmc,$mc,anc,bnc,cnc,dnc,enc,gnc,hnc,inc,jnc,knc,NK,pnc,qnc,rnc,OK,PK,snc,tnc,vnc,wnc,xnc,znc,Anc,Bnc,Cnc,Dnc,Enc,Gnc,Inc,Pnc,Rnc,Unc,Vnc,Ync,aoc,TK,boc,coc,doc,eoc,foc,goc,hoc,ioc,joc,koc,loc,moc,noc,ooc,poc,roc,soc,toc,woc,voc,zoc,Boc,Doc,Foc,Joc,Poc,Ooc,Woc,Xoc,Yoc,Zoc,$oc,dpc,fpc,gpc,hpc,LK,ipc,jpc,mnc,lnc,nnc,onc,Gqc,YK,aL,Wqc,Zqc,$qc,arc,drc,uoc,erc,Grc,Hrc,Irc,Jrc,Krc,Mrc,bL,Nrc,cL,Orc,Prc,Qrc,Rrc,Src,Trc,dL,Urc,Vrc,Wrc,Xrc,Yrc,Zrc,$rc,lsc,Ksc,Msc,Nsc,Ssc,Tsc,atc,
ktc,ttc,Btc,Htc,Otc,Qtc,Vtc,auc,puc,quc,tuc,vuc,Puc,Qvc,Lnc,Rvc,Svc,Tvc,Yvc,fwc,gwc,jAc,epc;Umc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.re(a,3),Convert:_.Q(a,8),ID:a.mj()};var b=[];_.Ta(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
Vmc=function(a){var b=[];b.push(Umc(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.Pu&&b.push("# of retries by client: "+a.Pu);var d="";a.hN?a.Ee.Wf()?a.Ee.dg(function(){d="Completed successfully."},function(e){d=e instanceof _.Uh?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
Wmc=function(a,b,c,d,e,f){var h=_.Xa(e),k=_.Xa(f);h=(0,_.Ws)("Drive Upload Report: %d/%d failed",k,h);a=a.Tf();d.push("Batch query interval: "+_.wj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.wj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.wj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.wj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.wj(a,10,50)+" files");d=d.join("\n");var l=[],p=[];_.Ta(e,function(q){p.push(Vmc(q))});
l.push({name:"AllUploadRequests.txt",content:p.join("\n---------\n")});l.push({name:"DataserviceLogs.txt",content:_.Iic(b)});_.Ta(f,function(q,r){var v=l.push;r=e[r].request;r=(0,_.Ws)('ErrorResponseFor"%s"(ID:%s).txt',r.getTitle()||"",r.mj()||"");var w=q.tg;v.call(l,{name:r,content:q.toString()+"\n"+(w?_.z(w,4):"No detail.")})});return{title:h,description:d,NQ:l,Ed:152391,m$:c,f1:361003}};Xmc=function(a){return Array.prototype.concat.apply([],arguments)};
Ymc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.va(a,b,-(c+1)),!0):!1};KK=function(a){throw _.xd(a);};Zmc=function(a,b){var c=new _.cI,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.b7a.get(b.Kv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.iec(c,[].concat(_.fc(d)));return c};
$mc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={$fa:c.$fa},d=a.next())if(d=d.value){c.$fa=new Map;[].concat(_.fc(_.Bk(d)),[d.Dm(),d.Xr(),d.oq()]).forEach(function(p){return function(q){q&&p.$fa.set(LK(q),q)}}(c));for(var e=[],f=_.m(c.$fa.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(LK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.nk(h))}b.push(d.getId()+","+d.Kv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};anc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.uj(d,f)||(d=_.zEa(4).setItem(f),c[e]=d):(d=_.zEa(2).setItem(d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=_.zEa(1).setItem(d),c[e]=d)});return c};bnc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(anc(a,b))};
cnc=function(a){var b=new _.ro;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.OI(a,!0,"file"));a.v8&&(b.append(",teamDriveId,teamDrive("),b.append(a.v8),b.append(")"));b.append(")");return b.toString()};dnc=function(a){var b=new _.ro;b.append("kind,nextPageToken,items(");b.append(_.OI(a,!0));b.append("),incompleteSearch");a.v8&&(b.append(","),b.append(a.v8));return b.toString()};
enc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.y(d,_.LJ,138),k=_.y(d,_.vk,111),l=_.y(d,_.MJ,27),p=_.y(d,_.Hhc,139),q=d.yf(),r=d.Vh(),v=_.y(d,_.OJ,103);switch(e){case 227:_.vb(d,144);break;case 228:_.vb(d,145);break;case 74:_.mj(d,83);break;case 188:_.vb(d,137);break;case 149:_.gI(d,128);break;case 148:_.mj(d,127);break;case 138:_.vb(d,126);break;case 184:_.gI(d,135);break;case 76:f&&_.vb(f,1);break;case 223:f&&_.vb(f,54);break;case 208:f&&_.vb(f,48);break;case 185:f&&
_.vb(f,40);break;case 224:f&&_.vb(f,55);break;case 213:f&&_.vb(f,50);break;case 156:f&&_.vb(f,39);break;case 61:f&&_.vb(f,2);break;case 216:f&&_.vb(f,52);break;case 217:f&&_.vb(f,53);break;case 77:f&&_.vb(f,4);break;case 134:f&&_.vb(f,34);break;case 147:f&&_.vb(f,38);break;case 81:f&&_.vb(f,10);break;case 82:f&&_.vb(f,11);break;case 114:f&&_.vb(f,27);break;case 133:f&&_.vb(f,33);break;case 202:f&&_.vb(f,47);break;case 132:f&&_.vb(f,32);break;case 101:f&&_.vb(f,20);break;case 201:f&&_.vb(f,46);break;
case 131:f&&_.vb(f,31);break;case 200:f&&_.vb(f,45);break;case 130:f&&_.vb(f,30);break;case 93:f&&_.vb(f,17);break;case 191:f&&_.vb(f,44);break;case 146:f&&_.vb(f,37);break;case 90:f&&_.vb(f,16);break;case 78:f&&_.vb(f,7);break;case 186:f&&_.vb(f,41);break;case 222:f&&_.vb(f,51);break;case 85:f&&_.vb(f,12);break;case 137:f&&_.vb(f,36);break;case 209:f&&_.vb(f,49);break;case 79:f&&_.vb(f,8);break;case 189:f&&_.vb(f,42);break;case 190:f&&_.vb(f,43);break;case 80:f&&_.vb(f,9);break;case 135:f&&_.vb(f,
35);break;case 102:f&&_.vb(f,21);break;case 69:_.vb(d,74);break;case 194:h&&_.kj(h,2);break;case 193:h&&_.vb(h,1);break;case 1004:_.vb(d,108);break;case 136:_.mj(d,125);break;case 115:k&&_.vb(k,1);break;case 116:k&&_.vb(k,2);break;case 34:_.vb(d,30);f&&_.vb(f,3);break;case 9:_.vb(d,10);break;case 91:_.kj(d,91);break;case 43:_.vb(d,42);_.vb(d,43);break;case 187:_.vb(d,136);break;case 26:_.vb(d,24);break;case 108:_.gI(d,104);break;case 41:_.vb(d,40);f&&_.vb(f,5);break;case 42:_.vb(d,41);break;case 1005:_.mj(d,
117);break;case 59:f&&_.vb(f,6);break;case 28:_.vb(d,26);break;case 44:_.vb(d,45);break;case 13:_.vb(d,14);break;case 48:_.vb(d,36);break;case 38:_.vb(d,34);break;case 49:_.gI(d,50);break;case 51:_.vb(d,53);break;case 104:_.vb(d,102);break;case 39:_.vb(d,35);break;case 87:_.vb(d,76);break;case 100:_.vb(d,98);break;case 72:_.vb(d,78);break;case 5:_.vb(d,6);break;case 20:_.vb(d,21);break;case 21:break;case 29:l&&_.vb(l,1);break;case 31:l&&_.vb(l,3);break;case 92:l&&_.vb(l,4);break;case 30:l&&_.vb(l,
2);break;case 16:_.kj(d,17);break;case 12:_.vb(d,13);break;case 211:p&&_.vb(p,2);break;case 212:p&&_.vb(p,3);break;case 220:p&&_.vb(p,5);break;case 157:r&&_.mj(r,8);break;case 3:_.vb(d,4);break;case 11:_.vb(d,12);break;case 10:_.vb(d,11);break;case 50:_.vb(d,49);_.vb(d,51);_.kj(d,81);break;case 18:_.vb(d,19);break;case 95:_.vb(d,93);break;case 58:_.vb(d,63);break;case 14:_.mj(d,15);break;case 103:_.vb(d,101);break;case 1:_.gI(d,2);break;case 96:_.vb(d,94);break;case 1003:_.mj(d,107);break;case 75:_.kj(d,
85);break;case 94:_.vb(d,92);break;case 45:_.vb(d,46);break;case 124:_.vb(d,118);break;case 125:_.vb(d,119);break;case 1002:_.kj(d,100);break;case 32:_.vb(d,28);break;case 67:_.vb(d,70);break;case 68:_.vb(d,71);break;case 221:r&&_.vb(r,9);break;case 210:_.vb(d,140);break;case 7:_.vb(d,8);break;case 122:_.kj(d,109);break;case 66:_.vb(d,69);break;case 33:_.vb(d,29);break;case 24:_.vb(d,22);break;case 25:_.vb(d,23);break;case 46:_.kj(d,47);break;case 192:q&&_.vb(q,6);break;case 159:q&&_.kj(q,5);break;
case 154:q&&_.vb(q,1);break;case 158:q&&_.vb(q,4);break;case 155:q&&_.vb(q,3);break;case 52:_.gI(d,56);break;case 56:_.vb(d,61);break;case 55:_.mj(d,60);break;case 4:_.vb(d,5);break;case 35:_.vb(d,31);break;case 57:_.vb(d,62);break;case 83:_.vb(d,72);break;case 84:_.kj(d,86);break;case 19:_.vb(d,20);_.vb(d,44);_.vb(d,90);break;case 2:_.vb(d,3);break;case 6:_.vb(d,7);break;case 98:_.vb(d,96);break;case 97:_.kj(d,95);break;case 27:_.vb(d,25);break;case 70:_.vb(d,75);break;case 107:v&&_.vb(v,3);break;
case 106:v&&_.vb(v,2);break;case 105:v&&_.vb(v,1);break;case 8:_.vb(d,9);break;case 126:_.gI(d,120);break;default:throw Error("kd`"+e);}}};gnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.fc(a),_.fc(fnc)));a=[].concat(_.fc(_.pjb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)enc(b[d],a)}};
hnc=function(a,b){var c=a.getCapabilities()||new _.rk,d=_.y(a,_.LJ,138),e=_.y(a,_.vk,111),f=_.y(a,_.MJ,27),h=_.y(a,_.Hhc,139),k=a.yf(),l=a.Vh(),p=_.y(a,_.OJ,103);switch(b){case 227:return null!=_.Q(a,144);case 228:return null!=_.z(a,145);case 74:return 0<a.vu().length;case 188:return null!=_.Q(a,137);case 149:return 0<_.re(a,128).length;case 148:return 0<a.kBa().length;case 138:return null!=a.t$();case 184:return 0<_.re(a,135).length;case 76:return null!=_.sk(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!=_.Oe(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!=_.y(d,_.Ghc,2);case 193:return null!=d&&null!=_.z(d,1);case 1004:return null!=_.Q(a,108);case 136:return 0<a.d2().length;case 115:return null!=e&&null!=_.Q(e,1);case 116:return null!=e&&null!=_.z(e,2);case 34:return null!=_.Q(a,30)||null!=_.Q(c,3);case 9:return null!=a.nD();
case 91:return null!=a.oq();case 43:return null!=_.z(a,42)||null!=_.z(a,43);case 187:return null!=a.Li();case 26:return null!=a.Bf();case 108:return 0<_.re(a,104).length;case 41:return null!=_.Q(c,5);case 42:return null!=_.z(a,41);case 1005:return 0<_.Fk(a).length;case 59:return null!=_.Q(c,6);case 28:return null!=a.kJ();case 44:return null!=_.z(a,45);case 13:return null!=a.sM();case 48:return null!=_.Q(a,36);case 38:return null!=a.Mi();case 49:return 0<_.re(a,50).length;case 51:return null!=_.Q(a,
53);case 104:return null!=_.Q(a,102);case 39:return null!=a.wla();case 87:return null!=_.Ck(a);case 100:return null!=_.Q(a,98);case 72:return null!=_.z(a,78);case 5:return null!=_.Q(a,6);case 20:return null!=a.sf();case 21:return null!=a.getId();case 29:return!(!f||null==_.z(f,1));case 31:return!(!f||null==_.z(f,3));case 92:return!(!f||null==_.z(f,4));case 30:return!(!f||null==f.Ce());case 16:return null!=a.Dm();case 12:return null!=a.Fz();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||!_.yb(l,_.yk,8));case 3:return null!=a.getMimeType();case 11:return null!=a.GB();case 10:return null!=a.Nq();case 50:return null!=_.Q(a,49)||null!=_.Q(a,51)||null!=a.Wm();case 18:return null!=a.qq();case 14:return 0<_.Bk(a).length;case 95:return null!=a.Gl();case 58:return null!=_.Q(a,63);case 103:return null!=_.z(a,101);case 1:return 0<a.vk().length;case 96:return null!=_.Q(a,94);case 1003:return 0<_.Ek(a).length;case 75:return null!=
a.Aw();case 94:return null!=a.GN();case 45:return null!=a.Yw();case 124:return null!=_.Q(a,118);case 125:return null!=_.z(a,119);case 1002:return null!=_.Dk(a);case 32:return null!=a.qv();case 67:return null!=_.z(a,70);case 68:return null!=_.z(a,71);case 221:return null!=l&&null!=_.Q(l,9);case 210:return null!=_.Gk(a);case 7:return null!=a.c8();case 122:return null!=_.MK(a);case 66:return null!=_.z(a,69);case 33:return null!=_.Q(a,29);case 24:return null!=a.xj();case 25:return null!=a.Oy();case 46:return null!=
a.Xr();case 192:return null!=k&&null!=_.Q(k,6);case 159:return null!=k&&null!=_.we(k);case 154:return null!=k&&null!=_.z(k,1);case 158:return null!=k&&null!=_.ye(k);case 155:return null!=k&&null!=_.z(k,3);case 52:return 0<_.re(a,56).length;case 55:return 0<a.lA().length;case 56:return null!=_.z(a,61);case 4:return null!=a.oB();case 35:return null!=_.Q(a,31);case 57:return null!=_.z(a,62);case 83:return null!=a.uc();case 84:return null!=_.y(a,_.NJ,86);case 2:return null!=a.getTitle();case 19:return null!=
a.Gz()||null!=_.Q(a,44)||null!=_.z(a,90);case 6:return null!=a.Qh();case 98:return null!=a.Bw();case 97:return null!=a.CD();case 27:return null!=a.Bp();case 70:return null!=a.nj();case 107:return null!=p&&null!=_.z(p,3);case 106:return null!=p&&null!=_.z(p,2);case 105:return null!=p&&null!=p.Ce();case 8:return null!=_.Q(a,9);case 126:return 0<_.re(a,120).length;default:throw Error("ld`"+b);}};inc=function(a,b){return b.every(function(c){return hnc(a,c)})};
jnc=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)})};knc=function(a,b){var c=new Set(b.concat(_.Jgc));return a.filter(function(d){return!c.has(d)})};
NK=function(a,b,c){var d,e;b=b.clone();var f=b.getCapabilities();c=_.m(c);for(var h=c.next();!h.done;h=c.next())if(h=h.value,hnc(b,h))if(_.tjb.has(h)){if(f){var k=a.getCapabilities()||new _.rk;_.QJ(a,k);switch(h){case 76:_.x(k,1,_.sk(f));break;case 223:_.x(k,54,_.Q(f,54));break;case 208:_.x(k,48,_.Q(f,48));break;case 185:_.x(k,40,_.Q(f,40));break;case 224:_.x(k,55,_.Q(f,55));break;case 213:_.x(k,50,_.Q(f,50));break;case 156:_.x(k,39,_.Q(f,39));break;case 61:_.x(k,2,_.Q(f,2));break;case 216:_.x(k,
52,_.Q(f,52));break;case 217:_.x(k,53,_.Q(f,53));break;case 77:_.x(k,4,_.Q(f,4));break;case 134:_.x(k,34,_.Q(f,34));break;case 147:_.x(k,38,_.Q(f,38));break;case 81:_.x(k,10,_.Q(f,10));break;case 82:_.x(k,11,_.Q(f,11));break;case 114:_.x(k,27,_.Q(f,27));break;case 133:_.x(k,33,_.Q(f,33));break;case 202:_.x(k,47,_.Q(f,47));_.x(k,32,_.Q(f,32));break;case 132:_.x(k,32,_.Q(f,32));break;case 101:_.x(k,20,_.Q(f,20));break;case 201:_.x(k,46,_.Q(f,46));break;case 131:_.x(k,31,_.Q(f,31));break;case 200:_.x(k,
45,_.Q(f,45));break;case 130:_.x(k,30,_.Q(f,30));break;case 93:_.x(k,17,_.Q(f,17));break;case 191:_.x(k,44,_.Q(f,44));break;case 146:_.x(k,37,_.Q(f,37));break;case 90:_.Fhc(k,_.Oe(f));break;case 78:_.x(k,7,_.Q(f,7));break;case 186:_.x(k,41,_.Q(f,41));break;case 222:_.x(k,51,_.Q(f,51));break;case 85:_.x(k,12,_.Q(f,12));break;case 137:_.x(k,36,_.Q(f,36));break;case 209:_.x(k,49,_.Q(f,49));break;case 79:_.x(k,8,_.Q(f,8));break;case 189:_.x(k,42,_.Q(f,42));break;case 190:_.x(k,43,_.Q(f,43));break;case 80:_.x(k,
9,_.Q(f,9));break;case 135:_.x(k,35,_.Q(f,35));break;case 102:_.x(k,21,_.Q(f,21));break;case 34:_.x(a,30,_.Q(b,30));_.x(k,3,_.Q(f,3));break;case 41:_.x(a,40,_.Q(b,40));_.x(k,5,_.Q(f,5));break;case 59:_.x(k,6,_.Q(f,6))}}}else if(_.ujb.has(h)){var l=_.y(b,_.LJ,138);if(l)switch(k=_.y(a,_.LJ,138)||new _.LJ,_.G(a,138,k),h){case 194:h=_.y(l,_.Ghc,2);_.G(k,2,h);break;case 193:_.x(k,1,_.z(l,1))}}else if(_.vjb.has(h)){if(k=_.y(b,_.vk,111))switch(l=_.y(a,_.vk,111)||new _.vk,_.G(a,111,l),h){case 115:l.rP(_.Q(k,
1));break;case 116:_.x(l,2,_.z(k,2))}}else if(_.wjb.has(h)){if(k=_.y(b,_.MJ,27))switch(l=_.y(a,_.MJ,27)||new _.MJ,_.G(a,27,l),h){case 29:_.x(l,1,_.z(k,1));break;case 31:l.Ah(_.z(k,3));break;case 92:_.x(l,4,_.z(k,4));break;case 30:l.oh(k.Ce())}}else if(_.xjb.has(h)){if(k=_.y(b,_.Hhc,139))switch(l=_.y(a,_.Hhc,139)||new _.Hhc,_.G(a,139,l),h){case 211:_.x(l,2,_.Q(k,2));break;case 212:_.x(l,3,_.Q(k,3));break;case 220:_.x(l,5,_.Q(k,5))}}else if(_.yjb.has(h)){if(l=b.yf())switch(k=a.yf()||new _.Qoa,_.G(a,
132,k),h){case 192:_.x(k,6,_.Q(l,6));break;case 159:h=_.we(l);_.G(k,5,h);break;case 154:_.x(k,1,_.z(l,1));break;case 158:_.x(k,4,_.ye(l));break;case 155:_.x(k,3,_.z(l,3))}}else if(_.zjb.has(h))switch(k=b.Vh(),h){case 157:k&&(h=a.Vh()||new _.Ooa,lnc(a,h),mnc(h,_.yb(k,_.yk,8)));break;case 221:k&&(h=a.Vh()||new _.Ooa,lnc(a,h),_.x(h,9,_.Q(k,9)))}else if(_.Ajb.has(h)){if(k=_.y(b,_.OJ,103))switch(l=_.y(a,_.OJ,103)||new _.OJ,_.G(a,103,l),h){case 107:_.x(l,3,_.z(k,3));break;case 106:l.Ah(_.z(k,2));break;
case 105:l.oh(k.Ce())}}else switch(h){case 227:_.x(a,144,_.Q(b,144));break;case 228:_.x(a,145,_.z(b,145));break;case 74:h=b.vu();_.lj(a,83,h);break;case 188:_.x(a,137,_.Q(b,137));break;case 149:h=_.re(b,128);_.jj(a,128,h);break;case 148:h=b.kBa();_.lj(a,127,h);break;case 138:_.x(a,126,b.t$());break;case 184:h=_.re(b,135);_.jj(a,135,h);break;case 69:_.x(a,74,_.Q(b,74));break;case 1004:_.x(a,108,_.Q(b,108));break;case 136:h=b.d2();_.lj(a,125,h);break;case 9:_.x(a,10,b.nD());break;case 91:_.Uhc(a,b.oq());
break;case 43:_.x(a,42,_.z(b,42));_.x(a,43,_.z(b,43));break;case 187:_.Yhc(a,b.Li());break;case 26:a.kl(b.Bf());break;case 108:h=_.re(b,104);_.jj(a,104,h);break;case 42:_.x(a,41,_.z(b,41));break;case 1005:h=_.Fk(b);_.lj(a,117,h);break;case 28:_.x(a,26,b.kJ());break;case 44:_.x(a,45,_.z(b,45));break;case 13:_.x(a,14,b.sM());break;case 48:_.x(a,36,_.Q(b,36));break;case 38:_.Phc(a,b.Mi());break;case 49:h=_.re(b,50);_.jj(a,50,h);break;case 51:_.x(a,53,_.Q(b,53));break;case 104:_.x(a,102,_.Q(b,102));break;
case 39:_.x(a,35,b.wla());break;case 87:_.x(a,76,_.Ck(b));break;case 100:_.x(a,98,_.Q(b,98));break;case 72:_.x(a,78,_.z(b,78));break;case 5:_.x(a,6,_.Q(b,6));break;case 20:h=b.sf();_.x(a,21,h);break;case 21:a.Nb(b.getId());break;case 16:_.Nhc(a,b.Dm());break;case 12:_.x(a,13,b.Fz());break;case 3:_.hG(a,b.getMimeType());break;case 11:_.x(a,12,b.GB());break;case 10:_.x(a,11,b.Nq());break;case 50:_.x(a,49,_.Q(b,49));_.x(a,51,_.Q(b,51));h=b.Wm();_.G(a,81,h);break;case 95:_.Whc(a,b.Gl());break;case 18:_.Ohc(a,
b.qq());break;case 58:_.x(a,63,_.Q(b,63));break;case 14:_.Mhc(a,_.Bk(b));break;case 1:_.PJ(a,b.vk());break;case 96:_.x(a,94,_.Q(b,94));break;case 103:_.x(a,101,_.z(b,101));break;case 1003:nnc(a,_.Ek(b));break;case 75:_.Thc(a,b.Aw());break;case 94:_.Vhc(a,b.GN());break;case 45:_.x(a,46,b.Yw());break;case 124:_.x(a,118,_.Q(b,118));break;case 125:_.x(a,119,_.z(b,119));break;case 1002:h=_.Dk(b).clone();(null===(d=_.Dk(a))||void 0===d?0:_.Q(d,3))&&_.x(h,3,!0);(null===(e=_.Dk(a))||void 0===e?0:_.Q(e,4))&&
_.x(h,4,!0);_.G(a,100,h);break;case 32:_.x(a,28,b.qv());break;case 67:_.x(a,70,_.z(b,70));break;case 68:_.x(a,71,_.z(b,71));break;case 210:_.x(a,140,_.Gk(b));break;case 7:_.x(a,8,b.c8());break;case 122:onc(a,_.MK(b));break;case 66:_.x(a,69,_.z(b,69));break;case 33:_.x(a,29,_.Q(b,29));break;case 24:_.x(a,22,b.xj());break;case 25:_.x(a,23,b.Oy());break;case 46:_.Qhc(a,b.Xr());break;case 52:h=_.re(b,56);_.jj(a,56,h);break;case 56:_.x(a,61,_.z(b,61));break;case 55:a.UA(b.lA());break;case 4:a.ox(b.oB());
break;case 35:_.x(a,31,_.Q(b,31));break;case 57:_.x(a,62,_.z(b,62));break;case 83:_.Shc(a,b.uc());break;case 84:h=_.y(b,_.NJ,86);_.G(a,86,h);break;case 98:a.Wda(b.Bw());break;case 97:_.Xhc(a,b.CD());break;case 19:_.x(a,20,b.Gz());_.x(a,44,_.Q(b,44));_.x(a,90,_.z(b,90));break;case 2:a.setTitle(b.getTitle());break;case 6:a.Qo(b.Qh());break;case 27:_.bWb(a,b.Bp());break;case 70:_.x(a,75,b.nj());break;case 8:_.x(a,9,_.Q(b,9));break;case 126:h=_.re(b,120);_.jj(a,120,h);break;default:throw Error("md`"+
h);}};pnc=function(a,b){return a.filter(function(c){return b.includes(c)})};qnc=function(a,b){var c=_.Yz[a];return b.filter(function(d){return!c||!c.has(d)})};rnc=function(a,b,c){a=qnc(c,a);return jnc(b,a,_.Jgc)};OK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};PK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&OK(a)?(a=a.yf(),!!a&&"application/vnd.google-apps.folder"===_.z(a,3)):"application/vnd.google-apps.folder"===c};
snc=function(a){var b=a&&a.getId()||null;a&&OK(a)&&(a=(a=a.yf())&&_.z(a,1))&&(b=a);return b};tnc=function(a){return!!_.Q(a,31)&&!_.Q(a,94)};vnc=function(a){return unc.some(function(b){return hnc(a,b)})};wnc=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Kv())})};xnc=function(a){return wnc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};_.ync=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};
znc=function(a,b){return 0<=b?!a||a<=b:!0};Anc=function(a,b){var c=a.Wm();c||(c=new _.Ioa,b&&_.G(a,81,c));return c};Bnc=function(a){if(PK(a))_.JK(Anc(a,!0),!0);else if(PK(a,!0)){var b=a.yf();if(b=b&&_.we(b))_.JK(Anc(b,!0),!0),_.JK(Anc(a,!0),!0)}};Cnc=function(a){return!!a.Wm()&&!PK(a)};Dnc=function(a){var b=[];_.Ma(a,function(c){if(3!=c.Kv()){if(null!=_.Q(c,49)||null!=_.Q(c,51)||null!=c.Wm())c=c.clone(),_.vb(c,49),_.vb(c,51),_.kj(c,81);b.push(c)}});return b};
Enc=function(a,b){if(b){var c=[];_.Q(b,3)&&c.push("folder");var d=_.Hcc()&&4===b.getType()?"title_natural":_.yfc[b.getType()];b=_.Afc[b.Uf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};Gnc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.J?a[b]=c.Hc():c&&c instanceof _.jK?a[b]=c.Hc(function(d){return d?d.Hc():null}):c&&c instanceof Fnc&&(a[b]=c.Hc())}};Inc=function(a){var b=a.slice(0),c=new Set(b);Hnc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
Pnc=function(a,b,c){var d=_.y(a,Jnc,66);if(d){var e=_.XJ(a),f=_.wI(_.fI(a));a=new _.Si(_.z(d,1));var h=new _.Si(window.location);var k=h.Oo+"://"+h.ik();null!=h.Mo&&(k+=":"+h.Ly());h=_.cj(k,3);_.Xi(a,"co",h);h=a.He();!e&&0<f&&(h+="u/"+f+"/");a.Bi(h+"_/dataservice/cacheproxy");e=_.z(d,5)||"";if(_.Fgc(window.location.href,a.toString())&&e)return a=Inc(c),c=_.z(d,6),b="#"+b+"_",d=new _.SH,d.update(a.join(",")),b+=_.Aec(d.digest()),c&&(b+="&jobset="+c),b=_.Ky(e+"?"+b),_.n.SharedWorker?(c=new SharedWorker(_.rca(b),
void 0),b=new Knc(c.port),c.port.start()):b=new Knc(new Worker(_.rca(b),void 0)),new Lnc(new Mnc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.FI();c=_.sh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.hja(_.igc(_.kg("display: none;")));document.body.appendChild(c);c=_.zec(a.Oo,void 0,a.ik(),a.Ly()).toString();return new Lnc(new Mnc(Nnc(window.frames[b],c),!0),0,a.toString())}a=new Onc;return new Lnc(new Mnc(a.O,!1),2,"inline",c,new Mnc(a.H,!1))};
Rnc=function(a){var b=new Qnc;if(a instanceof _.PI)_.pj(b,16,QK,a);else if(a instanceof _.QI)_.pj(b,1,QK,a);else if(a instanceof _.RI)_.pj(b,2,QK,a);else if(a instanceof RK)_.pj(b,17,QK,a);else if(a instanceof _.UI)_.pj(b,3,QK,a);else if(a instanceof _.tK)_.pj(b,4,QK,a);else if(a instanceof _.SI)_.pj(b,5,QK,a);else if(a instanceof _.YI)_.pj(b,6,QK,a);else if(a instanceof _.$I)_.pj(b,7,QK,a);else if(a instanceof _.aJ)_.pj(b,8,QK,a);else if(a instanceof _.dJ)_.pj(b,9,QK,a);else if(a instanceof _.rJ)_.pj(b,
18,QK,a);else if(a instanceof _.vJ)_.pj(b,10,QK,a);else if(a instanceof _.wJ)_.pj(b,11,QK,a);else if(a instanceof _.xJ)_.pj(b,12,QK,a);else if(a instanceof _.xI)_.pj(b,13,QK,a);else if(a instanceof _.AJ)_.pj(b,14,QK,a);else if(a instanceof _.BJ)_.pj(b,15,QK,a);else throw new _.Hc("Unsupported request type");return b};
Unc=function(a){a=a.map(function(c){var d=new Snc;if(c instanceof _.PI)_.pj(d,6,SK,c);else if(c instanceof RK)_.pj(d,7,SK,c);else if(c instanceof _.YI)_.pj(d,1,SK,c);else if(c instanceof _.vJ)_.pj(d,2,SK,c);else if(c instanceof _.wJ)_.pj(d,3,SK,c);else if(c instanceof _.xI)_.pj(d,4,SK,c);else if(c instanceof _.BJ)_.pj(d,5,SK,c);else throw new _.Hc("Unsupported request type");return d});var b=new Tnc;_.lj(b,1,a);return b};
Vnc=function(a){return _.yb(a,Snc,1).map(function(b){return _.zj(b,_.PI,6,SK)||_.zj(b,_.YI,1,SK)||_.zj(b,_.vJ,2,SK)||_.zj(b,_.wJ,3,SK)||_.zj(b,_.xI,4,SK)||_.zj(b,_.BJ,5,SK)||_.zj(b,RK,7,SK)})};Ync=function(a){var b=new Wnc;if(a instanceof _.oD)_.pj(b,1,Xnc,a);else if(a instanceof _.pD)_.pj(b,2,Xnc,a);else throw new _.Hc("Unsupported request type");return b};
aoc=function(a){var b=new Znc;if(a instanceof _.VI)_.pj(b,1,$nc,a);else if(a instanceof _.bJ)_.pj(b,2,$nc,a);else if(a instanceof _.CJ)_.pj(b,3,$nc,a);else throw new _.Hc("Unsupported request type");return b};TK=function(a,b,c){return b?new c(JSON.parse(a)):a};boc=function(a){a={t:a.title,d:a.description,c:a.Ed,fi:a.m$,dti:a.f1,a:a.NQ?a.NQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.U9})}):void 0};return JSON.stringify(a)};
coc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,m$:a.fi,f1:a.dti,NQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,U9:b.ec}}):void 0}};doc=function(a,b){var c=_.wgc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};eoc=function(a,b,c){a=a?1:2;a=_.td(_.ud(new _.vd,12),a);var d=(new _.Af).Qo(!0);d=_.x(d,17,!0);a=_.Bf(d,a);c&&_.kl(a,c);c=new _.rfc;b&&_.Lmc(c,b);return _.Mmc(_.Omc(new _.nI,a),c)};foc=function(a){return a.map(function(b){return b.getItem()})};
goc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};hoc=function(a,b){var c=new _.Si(_.C(b,16,"")+"/open"),d=a.getId();OK(a)&&(d=snc(a));_.Xi(c,"id",d);_.Xi(c,"authuser",_.wI(_.fI(b)));_.R(b,89,!1)&&_.dj(a,140)&&_.Xi(c,"resourcekey",_.Gk(a));return c.toString()};ioc=function(a){return String.fromCharCode(10>a?48+a:87+a)};joc=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]=ioc(d>>4);b[2*c+3]=ioc(d&15)}return b.join("")};
koc=function(a){var b={};_.whc(b,[_.z(a,2)||""]);return b};loc=function(a){var b={};_.Se(_.gh(a.getTitle()))||(b.title=a.getTitle());_.whc(b,_.re(a,3));_.Q(a,8)&&(b.description="",b.labels={starred:!1});return b};moc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.z(a,3)&&(b.workspaceToken=_.z(a,3));return b};
noc=function(a){var b,c={};c.sourceIds=_.re(a.request,1);c.destinationFolderId=null!==(b=_.z(a.request,2))&&void 0!==b?b:void 0;a.pageToken&&(c.continuationToken=a.pageToken);return c};
ooc=function(a){var b={},c={};_.Se(_.gh(a.getTitle()))||(b.title=a.getTitle());null!=a.Bf()&&(b.description=a.Bf());null!=_.Q(a,4)&&(c.starred=_.Q(a,4));null!=a.Qh()&&(c.trashed=a.Qh());_.Se(_.gh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.z(a,7)&&(b.modifiedDate=_.xhc(_.yhc(_.z(a,7)||0)));null!=_.Q(a,11)&&(c.restricted=_.Q(a,11));_.Xa(c)&&(b.labels=c);null!=a.Mi()&&(b.folderColor=a.Mi());null!=_.Q(a,16)&&(b.subscribed=_.Q(a,16));null!=_.Q(a,40)&&(b.linkShareMetadata={securityUpdateEnabled:_.Q(a,
40)});if(c=_.y(a,_.vk,25)){b.contentRestrictions=[];var d={};null!=_.Q(c,1)&&(d.readOnly=_.Q(c,1));null!=_.z(c,2)&&(d.reason=_.z(c,2));b.contentRestrictions.push(d)}_.whc(b,_.re(a,8));return b};poc=function(a){var b={};null!=_.Q(a,3)&&(b.pinned=_.Q(a,3));return b};
roc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.z(a,3))b.backgroundImageId=_.z(a,3);else{var c=_.z(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.eh)("0",6-c.length)+c);c=_.y(a,_.qoc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.z(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.z(c,3);"number"===typeof d&&(a.yCoordinate=d);if(c=c.Ce())a.width=c;b.backgroundImageFile=a}}return b};
soc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.vmc[a.getState()])&&(b.state=a);return b};
toc=function(a){_.eg("drive.DebugUtil.printFindById",function(c){a.mN(c).then(function(d){window.console.log(JSON.stringify(d))})});_.eg("drive.DebugUtil.getLogs",function(){return _.Iic(a.Be())});_.eg("drive.DebugUtil.printLogs",function(){window.console.log(_.Iic(a.Be()))});_.eg("drive.DebugUtil.printRequestHistory",function(){a.ZR().then(function(c){c.forEach(function(d){window.console.log(_.z(d,1));window.console.log(_.z(d,2))})})});_.eg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.La();b&&_.R(b,1,!1)&&(_.eg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.eg("drive.DebugUtil.setOffline",function(c){return void a.Ll(c)}))};woc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Lf;_.Mf(b,305);_.Nf(b,!0);_.x(b,3,2);var c=new _.nD;_.G(c,1,b);uoc(c,[7]);a=a.then(function(d){return d.Qe(c)}).then(voc);return _.Zh(a)};
voc=function(a){a=_.yb(a,_.Qo,3);var b=new xoc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.To(d))&&(c=_.jh(c.Wa()),_.x(b,3,c))});return"number"===typeof _.z(b,3)?b:null};zoc=function(a,b){var c=yoc(a.bm,b.qc());if(c){var d=c.getItem(),e=d.Aw();if(e){var f=e.bS(),h=_.za(f,function(k){return k.getId()===_.z(b,2)});_.Jhc(e,f);h||(f=_.yb(e,_.lk,3),_.za(f,function(k){return k.getId()===_.z(b,2)}),_.Khc(e,f));_.Ihc(e,(_.z(e,1)||1)-1);a.$k([d],c.V)}}};
Boc=function(a,b,c){if(b=yoc(a.bm,b.qc())){var d=b.getItem(),e=d.Aw();if(e){if(1===c.getType()||2===c.getType()){var f=_.yb(e,_.lk,3);f.push(c);_.Ka(f,Aoc);_.Khc(e,f)}else f=e.bS(),f.push(c),_.Ka(f,Aoc),_.Jhc(e,f);_.Ihc(e,(_.z(e,1)||0)+1);a.$k([d],b.V)}}};Doc=function(a){return a.map(function(b){var c=new _.Kwb;var d=b.serviceName?Coc.get(b.serviceName):void 0;c=_.x(c,3,d);return _.x(c,2,Number(b.bytesUsed))})};
Foc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&Eoc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Joc=function(a){var b=a.exportJob,c=b.status;c=c?Goc.get(c)||0:0;var d=Number(a.percentDone),e=b.items?b.items.length:0;a=a.numFetchedFiles||0;var f=0,h=0,k=(b.archives||[]).map(function(l){f+=Number(l.sizeOfContents)||0;h+=Number(l.compressedSize)||0;return l.storagePath});b=(b.failedItemInfos||[]).map(function(l){var p=_.hG((new _.Ak).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.Hoc).setItem(p);p=_.x(p,3,l.relativePath);return _.x(p,4,l.cause)});return new Ioc(c,d,k,f,h,e,a,b)};
Poc=function(a){var b=Koc(new UK,Loc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&Moc[d])&&b.Dc(d);c.sourceResults&&Noc(b,c.sourceResults.map(function(e){return Ooc(e)}));c.validationToken&&_.x(b,4,c.validationToken)}void 0!==a&&_.x(b,2,a);return b};Ooc=function(a){var b=Qoc(Roc(new _.Soc,a.sourceId),a.fileCount);a.unmovableFileReasons&&Toc(b,a.unmovableFileReasons.map(function(c){var d=new _.Uoc;d=_.x(d,1,c.unmovableReason);return _.x(d,2,c.count)}));return b};
Woc=function(a){var b={},c=a.getKey();b.key=c&&_.To(c);b.value=a.Wa();(a=c&&_.So(c))&&(b.namespace=Voc[a]);return b};Xoc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Voc[a[c]]);return b};Yoc=function(a){return"kind,defaultAppIds,items("+a+")"};Zoc=function(a,b){var c;return(null===(c=_.IJ(b))||void 0===c?0:_.R(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
$oc=function(){var a=!(!_.n.IDBObjectStore||!_.n.IDBObjectStore.prototype.getAll);return!!(_.n.indexedDB||_.n.mozIndexedDB||_.n.webkitIndexedDB||_.n.moz_indexedDB)&&a};
dpc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.IJ(b))||void 0===c?0:_.R(c,18,!1))||(null===(d=_.IJ(b))||void 0===d?0:_.R(d,17,!1)))null===(e=_.IJ(b))||void 0===e?void 0:_.x(e,15,!0);_.x(b,75,1<_.n.devicePixelRatio);var f=b;var h=_.R(f,61,!1),k=_.IJ(f),l=!!k&&_.R(k,10,!1);if(_.KI(_.fI(f))||!h&&!l)_.x(f,61,!1),_.kj(f,66),k&&_.x(k,10,!1),f=!1;else{if(h){_.n.SharedWorker||(h=!1);var p=_.y(f,Jnc,66);p&&_.z(p,1)||(h=!1);_.XJ(f)&&!_.R(f,52,!1)&&(h=!1)}h?k&&_.x(k,10,!1):(_.x(f,61,!1),_.kj(f,66));
f=h||l}if(f)return b=new VK(a,b,_.R(b,61,!1)?3:5),new apc(b);f=_.KI(_.fI(b))?2:1;a=new WK(a,b,f,void 0,void 0,void 0);return _.KI(_.fI(b))?new bpc(a):new cpc(a)};fpc=function(a){return _.Xe(a).hh(_.R(a.get(_.Jo),19,!1)?epc:_.SUa)};gpc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};hpc=function(a,b){return _.lj(a,1,b)};LK=function(a){return _.z(a,11)};ipc=[1];jpc=function(a){_.J.call(this,a,-1,ipc)};_.K(jpc,_.J);
jpc.prototype.EN=function(){return _.yb(this,_.lk,1)};jpc.prototype.wia=function(a){_.qj(this,1,a,_.lk,void 0)};var kpc=function(a){var b=new jpc;return _.lj(b,1,a)},lpc=function(a,b){return _.G(a,1,b)},mpc=function(a,b){_.lj(a,2,b)},npc=function(a,b){_.G(a,6,b)},opc=function(a,b){_.G(a,7,b)},ppc=function(a,b){return _.pj(a,3,_.pk,b)},qpc=function(a){_.J.call(this,a)};_.K(qpc,_.J);var rpc=function(a){_.J.call(this,a)};_.K(rpc,_.J);var spc=function(a){_.J.call(this,a)};_.K(spc,_.J);
var tpc=function(a){_.J.call(this,a)};_.K(tpc,_.J);var upc=function(a){_.J.call(this,a)};_.K(upc,_.J);var vpc=function(a){_.J.call(this,a)};_.K(vpc,_.J);var wpc=function(a){_.J.call(this,a)};_.K(wpc,_.J);var xpc=function(a){_.J.call(this,a)};_.K(xpc,_.J);var ypc=function(a){_.J.call(this,a)};_.K(ypc,_.J);var zpc=function(a){_.J.call(this,a)};_.K(zpc,_.J);var Apc=function(a){_.J.call(this,a)};_.K(Apc,_.J);var Bpc=function(a){_.J.call(this,a)};_.K(Bpc,_.J);var Cpc=function(a){_.J.call(this,a)};
_.K(Cpc,_.J);var Dpc=function(a){_.J.call(this,a)};_.K(Dpc,_.J);var Epc=function(a,b){_.lj(a,1,b)},Fpc=function(a,b){return _.x(a,2,b)},Gpc=function(a,b){return _.G(a,3,b)},Hpc=function(a,b){return _.x(a,4,b)},Ipc=function(a){_.J.call(this,a)};_.K(Ipc,_.J);var Jpc=function(a,b){_.lj(a,1,b)},Kpc=function(a,b){return _.G(a,2,b)},Lpc=function(a){_.J.call(this,a)};_.K(Lpc,_.J);
var Mpc=function(a,b){_.lj(a,1,b)},Npc=function(a,b){return _.G(a,4,b)},Opc=function(a,b){_.G(a,5,b)},Ppc=function(a,b){_.lj(a,2,b)},Qpc=function(a,b){_.x(a,3,b)},Rpc=function(a,b){_.lj(a,4,b)},Spc=function(a,b){return _.G(a,5,b)},Tpc=function(a){_.J.call(this,a)};_.K(Tpc,_.J);var Upc=function(a,b){_.lj(a,1,b)},Vpc=function(a,b){return _.G(a,2,b)},Wpc=function(a){_.J.call(this,a)};_.K(Wpc,_.J);
var Xpc=function(a,b){_.lj(a,2,b)},Ypc=function(a){var b=new _.Aoa;return _.lj(b,3,a)},Zpc=[1,2],$pc=function(a){_.J.call(this,a)};_.K($pc,_.J);$pc.prototype.Ff=function(a){return _.pj(this,1,Zpc,a)};var aqc=[1],bqc=function(a){_.J.call(this,a,-1,aqc)};_.K(bqc,_.J);bqc.prototype.Xq=function(){return _.z(this,2)};var cqc=function(a,b){_.lj(a,1,b)},dqc=function(a,b){return _.x(a,2,b)},eqc=function(a,b){return _.G(a,3,b)},fqc=function(a){_.J.call(this,a)};_.K(fqc,_.J);
var gqc=[2],hqc=function(a){_.J.call(this,a,-1,gqc)};_.K(hqc,_.J);var iqc=function(a,b){_.lj(a,2,b)},jqc=function(a,b){return _.G(a,3,b)},kqc=[1],lqc=function(a){_.J.call(this,a)};_.K(lqc,_.J);lqc.prototype.Ff=function(a){return _.pj(this,1,kqc,a)};var mqc=function(a,b){_.lj(a,1,b)},nqc=function(a,b){return _.lj(a,2,b)},oqc=function(a){_.J.call(this,a)};_.K(oqc,_.J);var pqc=function(a,b){_.lj(a,1,b)},qqc=function(a,b){return _.G(a,2,b)},rqc=function(a){_.J.call(this,a)};_.K(rqc,_.J);
var sqc=[1,2,3,4],tqc=[1],uqc=[1,2],vqc=[1],wqc=[1],xqc=[1,2],yqc=[1],zqc=function(a,b){return _.G(a,1,b)},Aqc=function(a,b){return _.x(a,2,b)},Bqc=function(a,b){return _.x(a,3,b)},Cqc=function(a,b){return _.x(a,4,b)},Dqc=function(a,b){return _.x(a,5,b)},Eqc=function(a,b){return _.x(a,6,b)},Fqc=function(a){_.J.call(this,a)};_.K(Fqc,_.J);mnc=function(a,b){_.lj(a,8,b)};lnc=function(a,b){return _.G(a,73,b)};nnc=function(a,b){_.lj(a,107,b)};_.MK=function(a){return _.y(a,Fqc,109)};
onc=function(a,b){_.G(a,109,b)};Gqc=function(a){_.J.call(this,a)};_.K(Gqc,_.J);var Hqc=function(a){_.J.call(this,a)};_.K(Hqc,_.J);var Iqc=function(a,b){_.Qj(b,a,1);_.Qj(b,a,2);_.Ij(a,b)},Jqc=function(a){_.J.call(this,a)};_.K(Jqc,_.J);var Jnc=function(a){_.J.call(this,a)};_.K(Jnc,_.J);var Kqc=[11],Lqc=function(a){_.J.call(this,a,-1,Kqc)};_.K(Lqc,_.J);var XK=function(a){_.J.call(this,a)};_.K(XK,_.J);XK.prototype.getKey=function(){return _.z(this,2)};XK.prototype.vt=function(){return _.dj(this,2)};
YK=function(a){return _.C(a,4,"en")};_.ZK=function(a){return _.y(a,Lqc,34,1)};aL=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};_.Mqc=function(a,b){return _.x(a,2,b)};_.Nqc=function(a,b){return _.x(a,3,b)};_.Oqc=function(a,b){return _.x(a,1,b)};_.Pqc=function(a,b){return _.x(a,2,b)};_.Qqc=function(a,b){return _.lj(a,5,b)};_.Rqc=function(a,b){return _.x(a,6,b)};_.Sqc=function(a,b){return _.x(a,7,b)};
_.Tqc=function(a,b){return _.x(a,8,b)};_.Uqc=function(a,b){return _.x(a,10,b)};_.Vqc=function(a,b){return _.x(a,15,b)};Wqc=[2];_.Xqc=function(a){_.J.call(this,a,-1,Wqc)};_.K(_.Xqc,_.J);_.Xqc.prototype.mi=function(){return _.z(this,1)};_.Yqc=function(a,b){return _.G(a,1,b)};Zqc=function(a,b){return _.x(a,2,b)};$qc=function(a,b){return _.x(a,3,b)};arc=function(a,b){_.lj(a,4,b)};_.brc=function(a,b){_.G(a,8,b)};_.crc=function(a,b){_.G(a,9,b)};drc=function(a){_.J.call(this,a)};_.K(drc,_.J);
drc.prototype.Wa=function(){return _.ij(this,1)};drc.prototype.Hb=function(a){return _.wb(this,1,a,0)};uoc=function(a,b){_.jj(a,3,b)};erc=function(a,b){return _.x(a,5,b)};_.qoc=function(a){_.J.call(this,a)};_.K(_.qoc,_.J);_.qoc.prototype.getId=function(){return _.z(this,1)};_.qoc.prototype.Nb=function(a){return _.x(this,1,a)};_.qoc.prototype.Ce=function(){return _.z(this,4)};_.qoc.prototype.oh=function(a){return _.x(this,4,a)};_.tK=function(a){_.J.call(this,a)};_.K(_.tK,_.J);
_.tK.prototype.getTitle=function(){return _.z(this,1)};_.tK.prototype.setTitle=function(a){return _.x(this,1,a)};_.tK.prototype.re=function(){return _.y(this,_.Lf,2)};var frc=function(a,b){return _.jj(a,9,b)},grc=function(a,b){return _.jj(a,10,b)},hrc=function(a,b){return _.x(a,36,b)},irc=function(a,b){return _.lj(a,38,b)},jrc=function(a,b){return _.x(a,2,b)},krc=function(a,b){return _.G(a,3,b)},lrc=function(){var a=new _.qI;return _.x(a,5,!0)},mrc=function(a){_.J.call(this,a)};_.K(mrc,_.J);
var nrc=function(a){_.J.call(this,a)};_.K(nrc,_.J);var orc=function(a){_.J.call(this,a)};_.K(orc,_.J);var prc=function(a){_.J.call(this,a)};_.K(prc,_.J);var qrc=function(a){_.J.call(this,a)};_.K(qrc,_.J);var rrc=function(a){_.J.call(this,a)};_.K(rrc,_.J);rrc.prototype.Py=function(){return _.Q(this,1)};rrc.prototype.Wo=function(){return _.z(this,5)};rrc.prototype.Vm=function(){return _.z(this,6)};rrc.prototype.fw=function(a){return _.x(this,6,a)};
var src=function(a,b){return _.x(a,1,b)},trc=function(a,b){return _.x(a,3,b)},urc=function(a,b){return _.x(a,4,b)},vrc=function(a,b){_.x(a,7,b)},wrc=function(a){_.J.call(this,a)};_.K(wrc,_.J);wrc.prototype.Py=function(){return _.Q(this,2)};var xrc=function(a,b){_.x(a,1,b)},yrc=function(a){_.J.call(this,a)};_.K(yrc,_.J);yrc.prototype.Vm=function(){return _.z(this,3)};yrc.prototype.fw=function(a){return _.x(this,3,a)};yrc.prototype.Wo=function(){return _.z(this,4)};
var zrc=function(a){_.J.call(this,a)};_.K(zrc,_.J);var Arc=function(a){_.J.call(this,a)};_.K(Arc,_.J);var Brc=function(a,b){return _.x(a,1,b)},Crc=function(a,b){return _.x(a,2,b)},Drc=function(a,b){_.x(a,3,b)},Erc=[1,3,5],Frc=function(a){_.J.call(this,a,-1,Erc)};_.K(Frc,_.J);Frc.prototype.zD=function(){return _.re(this,1)};Frc.prototype.Py=function(){return _.Q(this,2)};Frc.prototype.Wo=function(){return _.z(this,7)};Grc=function(a,b){_.x(a,2,b)};Hrc=function(a,b){_.nj(a,5,b,void 0)};
Irc=function(a,b){_.x(a,6,b)};Jrc=function(a,b){_.x(a,7,b)};Krc=function(a,b,c){_.$J(a,b,c,"warning")};_.Lrc=function(a,b){_.G(a,2,b)};Mrc=function(a){return a.H.concat([].concat(_.fc(a.O)))};bL=function(a){var b=_.hK(a).jd();b||(b=new _.tic,a=_.hK(a),_.G(a,1,b));return b};Nrc=function(a){var b=_.y(_.hK(a),Frc,3);b||(b=new Frc,a=_.hK(a),_.G(a,3,b));return b};cL=function(a){var b=_.y(_.hK(a),rrc,16);b||(b=new rrc,a=_.hK(a),_.G(a,16,b));return b};
Orc=function(a){var b=_.y(_.hK(a),orc,7);b||(b=new orc,a=_.hK(a),_.G(a,7,b));return b};Prc=function(a){var b=_.y(_.hK(a),qrc,12);b||(b=new qrc,a=_.hK(a),_.G(a,12,b));return b};Qrc=function(a){var b=_.y(_.hK(a),wrc,17);b||(b=new wrc,a=_.hK(a),_.G(a,17,b));return b};Rrc=function(a){var b=_.y(_.hK(a),Arc,21);b||(b=new Arc,a=_.hK(a),_.G(a,21,b));return b};
Src=function(a){if(a instanceof _.RH)return 2;if(a instanceof _.fG)return 10;if(a instanceof _.Af)return _.jJ(a)?3:_.kJ(a)?7:_.lJ(a)?8:1;if(a instanceof _.aG)return 9;if(a instanceof _.nG)return 11;if(a instanceof _.tJ)return 15;if(a instanceof _.PH)return 6;if(a instanceof _.oJ){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 _.nD)return 4;if(a instanceof _.bA)return 12;if(a instanceof _.gG)return 13}return 0};
Trc=function(a){var b=null;a instanceof _.eI||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK?b=a.We()||0:"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK||"undefined"!=typeof _.qK&&a instanceof _.qK?b=a.Pe:"undefined"!=typeof _.lK&&a instanceof _.lK&&(b=a.We());return b||0};
dL=function(a,b,c){return a.V&&_.Ljc(a)?(a=_.Hjc(a.V,b,0),c&&_.Egc(a,c),a):null};Urc=function(a){a.V&&_.Ljc(a)&&(a=a.V,a.H.hQ()&&a.H.M_())};Vrc=function(a,b){return _.G(a,1,b)};Wrc=function(a){var b=new _.fJ;return _.x(b,1,a)};Xrc=function(a,b){return _.G(a,2,b)};Yrc=function(a,b){a.ha=b};Zrc=[2];$rc=function(a){_.J.call(this,a,-1,Zrc)};_.K($rc,_.J);_.g=$rc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.EN=function(){return _.yb(this,_.lk,2)};
_.g.wia=function(a){_.qj(this,2,a,_.lk,void 0)};_.g.Yj=function(){return _.z(this,3)};var asc=function(a,b){return _.lj(a,2,b)},bsc=[2],csc=function(a){_.J.call(this,a,-1,bsc)};_.K(csc,_.J);csc.prototype.Cb=function(){return _.z(this,1)};csc.prototype.Dc=function(a){return _.x(this,1,a)};csc.prototype.Yj=function(){return _.z(this,3)};
var dsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.bn,a.H.promise):null},esc=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.Yv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.aj);for(e=d.next();!e.done;e=d.next())(e=e.value.Yv.config.timestamp)&&c.push(e);_.Ca(b,c)}return b},fsc=function(a,b){return asc(new $rc,(b.items||
[]).map(function(c){return _.amc(a,c)}))},gsc=function(a,b){return Eqc(Dqc(Cqc(_.Khc(_.Ihc(new _.Loa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.amc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},hsc=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},isc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Ls();
b=b.Ls();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++)_.fba(c[e],b[e])||(d[e]=b[e]);return _.jba(a.constructor,d)},jsc=[2],ksc=function(a){_.J.call(this,a,-1,jsc)};_.K(ksc,_.J);ksc.prototype.Cb=function(){return _.z(this,1)};ksc.prototype.Dc=function(a){return _.x(this,1,a)};ksc.prototype.EYa=function(){return _.yb(this,_.yEa,2)};ksc.prototype.Yj=function(){return _.z(this,3)};lsc=[2,6];
_.kK=function(a){_.J.call(this,a,-1,lsc)};_.K(_.kK,_.J);_.g=_.kK.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Bd=function(){return _.yb(this,_.Ak,2)};_.g.iB=function(a){return _.lj(this,2,a)};_.g.dh=function(a,b){return _.qj(this,2,a,_.Ak,b)};_.g.Yj=function(){return _.z(this,3)};_.g.Tl=function(){return _.R(this,4,!0)};var msc=function(a,b){return _.lj(a,6,b)};_.kK.prototype.Vf=function(){return _.z(this,10)};
_.kK.prototype.gQ=function(a){return _.x(this,10,a)};_.kK.prototype.We=function(){return _.z(this,9)};_.kK.prototype.ti=function(a){return _.x(this,9,a)};
var nsc={SUCCESS:1,yac:2,l2b:3,LYb:4,Lac:5,$5b:6,O5b:7,xZb:8,u$b:9,J$b:10,xac:11,c0b:12,H_b:13,n3b:14,E1b:15,L_b:16,K_b:17,Q_b:18,N_b:19,O_b:20,aac:21,Hac:22,t6b:23,x5b:24,pZb:25,PERMISSION_DENIED:26,L4b:27,DZb:28,CZb:29,INTERRUPTED:30,T6b:31,n7b:32,r0b:33,x0b:34,B$b:35,E0b:36,F1b:37,w0b:38,N5b:39,i_b:40,O6b:41,p7b:42,s$b:43,VZb:44,h_b:45,C1b:46,G4b:47,L5b:48,j6b:49,P6b:50,l$b:51,I_b:52,t$b:53,r$b:54,a_b:55,YZb:56,P0b:57,f5b:58,Q6b:59,b4b:60,E8b:61,s9b:62,Z9b:63,D3b:64,z5b:65,Oac:66,G0b:67,G1b:68,
wac:69,I3b:70,BZb:71,QZb:72,A9b:73,$9b:74,W9b:75,U9b:76,o9b:190,T9b:191,B9b:192,H9b:126,D9b:128,E9b:129,F9b:130,G9b:131,I9b:132,J9b:133,N8b:127,K8b:134,L8b:135,P8b:136,Q8b:137,R8b:138,M8b:194,O8b:195,S8b:196,J8b:197,r9b:189,D8b:139,F8b:140,T8b:141,U8b:142,f9b:143,i9b:144,j9b:145,k9b:146,l9b:147,m9b:148,n9b:149,q9b:150,w9b:151,y9b:152,z9b:153,C9b:154,K9b:155,M9b:156,N9b:157,O9b:158,P9b:159,Q9b:160,R9b:161,V9b:162,Y9b:163,a$b:164,G8b:165,H8b:166,I8b:167,B8b:168,C8b:169,X8b:170,V8b:171,W8b:172,Y8b:173,
Z8b:174,$8b:175,a9b:176,b9b:177,c9b:178,d9b:179,e9b:180,g9b:181,h9b:182,p9b:106,x9b:183,L9b:184,S9b:185,t9b:186,u9b:187,v9b:188,X9b:244,N6b:77,Bac:78,Gac:79,S4b:80,s3b:81,u3b:82,O0b:83,B1b:84,M4b:85,U$b:86,v0b:87,K3b:88,J3b:89,d$b:90,b$b:91,c$b:92,Cac:93,x_b:94,w_b:95,t_b:96,v_b:97,u_b:98,Nac:99,n8b:100,T_b:101,M_b:102,R_b:103,P_b:104,S_b:105,H1b:107,G$b:108,h8b:109,qac:110,K1b:111,J1b:112,g4b:113,h4b:114,t7b:115,b_b:116,o4b:117,$0b:118,Dac:119,T5b:120,U5b:121,o3b:193,J_b:122,l0b:123,r3b:124,s5b:125,
L3b:198,Y6b:199,A3b:200,oYb:201,G3b:202,E3b:203,GZb:204,lbc:205,x4b:206,q_b:207,Q5b:208,o7b:209,j8b:210,PYb:211,e4b:212,l4b:213,w$b:214,v$b:215,C3b:216,m3b:217,B3b:218,I0b:219,K$b:220,J0b:221,c4b:222,D$b:223,Xac:224,D5b:225,C$b:226,n0b:227,v4b:228,N0b:229,l_b:230,S$b:231,u5b:232,FILE_TOO_LARGE:233,H3b:234,H0b:235,y1b:236,j7b:237,A5b:238,$Xb:239,m_b:240,H5b:241,u8b:242,t0b:243,mYb:245,v3b:246,m6b:247,t3b:248,R4b:249,y5b:250,D1b:251,s2b:252,f4b:253,ZZb:254,I1b:255,Mac:256,e2b:257,b5b:258,B7b:259,X6b:260,
S3b:261,Y_b:262,u0b:263,oZb:264,K4b:265,Kac:266,dYb:267,eZb:268,dZb:269,M5b:270,YXb:271,ZXb:272,rZb:273,p_b:274,gZb:275,fZb:276,w4b:277,L1b:278,x3b:279,u7b:280,O$b:281,c5b:282,y4b:283,z4b:284,k_b:285,QYb:286,Y5b:287,AZb:288,EZb:289,FZb:290,l3b:291},osc={Eac:0,d5b:1,v6b:2,h6b:3,N3b:4,MYb:5,e5b:6,i6b:7,T2b:8,nZb:9,f6b:10},psc=function(){this.map={};this.status=6;this.Pe=null};_.g=psc.prototype;_.g.Cb=function(){return this.status};_.g.Dc=function(a){this.status=a};_.g.We=function(){return this.Pe};
_.g.ti=function(a){this.Pe=a};_.g.kt=function(){return this.map};var qsc=function(a,b){a.map=b};psc.prototype.Hc=function(a){var b=[];_.Ta(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Pe,me:b})};var rsc=function(a,b,c){c=JSON.parse(c);a.Dc(c.s);a.ti(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},ssc=function(){psc.apply(this,arguments)};_.K(ssc,psc);_.jK=function(){psc.apply(this,arguments)};_.K(_.jK,psc);
var eL=function(a){_.pi.call(this);var b=this;this.wa=a;this.active=!1;_.ef(this,function(){b.active=!1})};_.K(eL,_.pi);eL.prototype.Oi=function(){return String(_.Fa(this))};eL.prototype.activate=function(){this.active||(this.log("livelist "+this.Oi()+" activated."),this.active=!0,this.bQ())};eL.prototype.isActive=function(){return this.active};eL.prototype.log=function(a,b){this.wa.log(this.logName,a,void 0===b?"info":b)};
_.fL=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.ma=b;this.request=e;this.ta=f;this.H=[];this.items=[];this.status=6;this.W=_.iec(new _.cI,[1]);this.V=!0;this.Pe=0;this.Ba=d;this.limit=e.xi();_.ef(this,function(){h.H=[]});_.c7a++};_.K(_.fL,eL);_.g=_.fL.prototype;_.g.activate=function(){eL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.nk()||tsc(this)};_.g.bQ=function(){};_.g.jd=function(){return this.request};_.g.xi=function(){return this.limit};_.g.Cb=function(){return this.status};
_.g.us=function(){return this.W};_.g.nk=function(){return this.V};_.g.hs=function(){var a=_.Hy(_.a7a(),this.H,this.items),b=(new ksc).Dc(this.Cb());a=_.lj(b,2,a);this.H=this.items;return a};_.g.Iu=function(a){this.isActive()&&(this.limit+=a||50,this.log("incrementMaxCount with "+a+" called on Livelist "+(this.Oi()+". New limit is ")+(this.limit+".")),this.Ba(this.Oi(),this.limit))};
var usc=function(a,b){return a.Cb()!==b.Cb()||aL(_.a7a(),a.items,b.Bd())},vsc=function(a,b){a.items=b.Bd();a.status=b.Cb();_.mI(a.ta)&&(a.W=Zmc(a.status,a.items));a.V=b.Tl();a.Pe=b.We()};_.fL.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.fL.prototype.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};
_.fL.prototype.Ou=function(a,b){var c=this;b+="\n\n\nQuery:\n"+gL(this.O,this.jd());return this.ma.then(function(d){return d.tQb(a,b,c.jd(),c.xi(),c.items)})};
var tsc=function(a){if(a.isActive()){var b=a.us().H();a.log("Livelist "+a.Oi()+" returning "+a.items.length+". Status: "+(_.fb(nsc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.fb(osc)[a.Pe]+". Query: ")+(gL(a.O,a.request)+" ")+$mc(a.items));wsc(a,a.items,a.request);a.dispatchEvent(new _.gi(_.cd,a))}},wsc=function(a,b,c){if(_.jJ(c))c="quick access";else if(_.kJ(c))c="people predict";else if(_.lJ(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");
a.log("Livelist "+a.Oi()+" returning "+a.items.length+" for "+(c+": "+b))};_.fL.prototype.refresh=function(){};_.fL.prototype.Ya=function(){_.d7a++;eL.prototype.Ya.call(this)};var xsc=[1,2],ysc=function(a){_.J.call(this,a,-1,xsc)};_.K(ysc,_.J);
var fnc=[1004,1005,1002,1003],unc=[1002,1003,1005],zsc=function(a,b,c,d,e,f){eL.call(this,c);var h=this;this.O=a;this.W=b;this.ha=d;this.ka=e;this.request=f;this.logName="drive.ds.sync.IdViewCacheLiveMap";this.H={};this.items={};this.status=6;this.V=_.iec(new _.cI,[1]);this.log("Creating find by ids live map: "+this.request.V().join(", "));_.ef(this,function(){h.H={}});_.Cjb++};_.K(zsc,eL);_.g=zsc.prototype;_.g.bQ=function(){_.ab(this.items)&&6===this.status||Asc(this)};_.g.jd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.jK;_.mI(this.O)?a.Dc(wnc(Object.values(this.items))?6:this.status):a.Dc(this.status);a.map=this.items;return a};_.g.hs=function(){var a=anc(this.H,this.items),b=new ssc;b.Dc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.us=function(){return this.V};_.g.$T=function(a){Bsc(a);var b=this.request;this.request=a;this.ka(this.Oi(),b,a)};
_.g.update=function(a){var b=this;0<=_.oa(this.jd().V(),"root")?this.ha.addCallback(function(c){var d=a.kt()[c];d&&(_.bb(a.map,c),a.map.root=d);Csc(b,a)}):Csc(this,a)};var Csc=function(a,b){if(a.status!==b.Cb()||bnc(a.items,b.kt()))a.status=b.Cb(),a.items=b.kt(),_.mI(a.O)&&(a.V=Zmc(a.status,Object.values(a.items))),Asc(a)};zsc.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};zsc.prototype.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};
var Asc=function(a){a.isActive()&&(a.log("Livelist "+a.Oi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.fb(nsc)[a.Cb()]+". Query: ")+(gL(a.W,a.request)+" ")+$mc(Object.values(a.items))),a.dispatchEvent(new _.gi(_.cd,a)))};zsc.prototype.Ya=function(){_.Djb++;eL.prototype.Ya.call(this)};_.Dsc=function(a){_.J.call(this,a)};_.K(_.Dsc,_.J);_.Dsc.prototype.Cb=function(){return _.z(this,1)};_.Dsc.prototype.Dc=function(a){return _.x(this,1,a)};
_.Dsc.prototype.un=function(){return _.y(this,_.dI,2)};var Esc=function(a){_.gi.call(this,a)};_.K(Esc,_.gi);var Fsc=[5,7,9],Gsc=function(a){_.J.call(this,a,-1,Fsc)};_.K(Gsc,_.J);_.g=Gsc.prototype;_.g.getUser=function(){return _.y(this,_.lk,1)};_.g.jB=function(a){_.x(this,2,a)};_.g.setBooleanValue=function(a){return _.x(this,3,a)};_.g.setTextValue=function(a){return _.x(this,4,a)};_.g.zqa=function(a){return _.jj(this,5,a)};_.g.addTextValues=function(a,b){return _.nj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.x(this,6,a)};_.g.vqa=function(a){return _.jj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.nj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.x(this,8,a)};_.g.mqa=function(a){return _.jj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.nj(this,9,a,b)};var Hsc=[7,10,12,16,13,3],hL=function(a){_.J.call(this,a,-1,Hsc)};_.K(hL,_.J);var iL=function(a){return _.z(a,4)};_.g=hL.prototype;_.g.jB=function(a){_.x(this,4,a)};
_.g.setBooleanValue=function(a){return _.x(this,5,a)};_.g.ucb=function(){return _.z(this,6)};_.g.setTextValue=function(a){return _.x(this,6,a)};_.g.zqa=function(a){return _.jj(this,7,a)};_.g.addTextValues=function(a,b){return _.nj(this,7,a,b)};_.g.scb=function(){return _.z(this,8)};_.g.setLongTextValue=function(a){return _.x(this,8,a)};_.g.tcb=function(){return _.z(this,9)};_.g.setSelectionValue=function(a){return _.x(this,9,a)};_.g.bPa=function(){return _.re(this,10)};
_.g.vqa=function(a){return _.jj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.nj(this,10,a,b)};_.g.rcb=function(){return _.z(this,11)};_.g.setIntegerValue=function(a){return _.x(this,11,a)};_.g.mqa=function(a){return _.jj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.nj(this,12,a,b)};_.g.vcb=function(){return _.y(this,_.lk,15)};_.g.setUserValue=function(a){return _.G(this,15,a)};_.g.b_a=function(){return _.yb(this,_.lk,16)};var Isc=function(a,b){_.lj(a,16,b)};
hL.prototype.addUserValues=function(a,b){return _.qj(this,16,a,_.lk,b)};hL.prototype.H=function(){return _.z(this,17)};hL.prototype.setDateStringValue=function(a){return _.x(this,17,a)};hL.prototype.V=function(){return _.dj(this,17)};var Jsc=function(a,b){_.lj(a,13,b)};hL.prototype.getId=function(){return _.z(this,14)};hL.prototype.Nb=function(a){return _.x(this,14,a)};hL.prototype.getName=function(){return _.z(this,1)};hL.prototype.$c=function(a){return _.x(this,1,a)};Ksc=[3];
_.jL=function(a){_.J.call(this,a,-1,Ksc)};_.K(_.jL,_.J);_.jL.prototype.getType=function(){return _.z(this,1)};_.jL.prototype.qc=function(){return _.z(this,2)};_.Lsc=function(a){_.J.call(this,a)};_.K(_.Lsc,_.J);_.Lsc.prototype.getFeature=function(){return _.z(this,1)};Msc=[1];_.gK=function(a){_.J.call(this,a,-1,Msc)};_.K(_.gK,_.J);var RK=function(a){_.J.call(this,a)};_.K(RK,_.J);RK.prototype.getId=function(){return _.z(this,1)};RK.prototype.Nb=function(a){return _.x(this,1,a)};
RK.prototype.re=function(){return _.y(this,_.Lf,3)};Nsc=[2,3,8];_.wJ=function(a){_.J.call(this,a,-1,Nsc)};_.K(_.wJ,_.J);_.wJ.prototype.getId=function(){return _.z(this,1)};_.wJ.prototype.Nb=function(a){return _.x(this,1,a)};_.wJ.prototype.re=function(){return _.y(this,_.Lf,4)};_.wJ.prototype.uc=function(){return _.z(this,5)};var Osc=function(a){_.J.call(this,a)};_.K(Osc,_.J);var Psc=[1,2,4],Qsc=function(a){_.J.call(this,a)};_.K(Qsc,_.J);Qsc.prototype.Bf=function(){return _.C(this,1)};
Qsc.prototype.kl=function(a){return _.Cj(this,1,a)};Qsc.prototype.getUrl=function(){return _.C(this,2)};_.Rsc=function(a){_.J.call(this,a)};_.K(_.Rsc,_.J);_.Rsc.prototype.getType=function(){return _.hj(this,1,0)};_.Rsc.prototype.getContext=function(){return _.y(this,Qsc,2)};Ssc=[1];Tsc=[2,4];_.Usc=function(a){_.J.call(this,a,-1,Tsc)};_.K(_.Usc,_.J);_.Usc.prototype.getLabel=function(){return _.C(this,1)};_.Usc.prototype.getTitle=function(){return _.C(this,3)};
_.Usc.prototype.setTitle=function(a){return _.Cj(this,3,a)};_.Vsc=function(a){_.J.call(this,a,-1,Ssc)};_.K(_.Vsc,_.J);_.Wsc=[2,3,4];_.Xsc=function(a){_.J.call(this,a)};_.K(_.Xsc,_.J);_.Xsc.prototype.te=function(){return _.C(this,3)};_.Xsc.prototype.On=function(a){return _.Cj(this,4,a)};_.Ysc=function(a){_.J.call(this,a)};_.K(_.Ysc,_.J);_.Zsc=function(a){_.J.call(this,a)};_.K(_.Zsc,_.J);var $sc=function(a){_.J.call(this,a)};_.K($sc,_.J);atc=[3,5];_.kL=[8,9,10,11,12,13,14];
_.btc=function(a){_.J.call(this,a)};_.K(_.btc,_.J);_.ctc=function(a){_.J.call(this,a,-1,atc)};_.K(_.ctc,_.J);_.ctc.prototype.Cb=function(){return _.hj(this,6,0)};_.ctc.prototype.Dc=function(a){return _.Dj(this,6,a)};var dtc=function(a){_.J.call(this,a)};_.K(dtc,_.J);var etc=function(a){_.J.call(this,a)};_.K(etc,_.J);var ftc=function(a){_.J.call(this,a)};_.K(ftc,_.J);var gtc=[1],htc=function(a){_.J.call(this,a,-1,gtc)};_.K(htc,_.J);var itc=function(a){_.J.call(this,a)};_.K(itc,_.J);
var jtc=function(a){_.J.call(this,a)};_.K(jtc,_.J);ktc=[7];_.ltc=[1,2,3];_.mtc=function(a){_.J.call(this,a)};_.K(_.mtc,_.J);_.ntc=function(a){_.J.call(this,a)};_.K(_.ntc,_.J);_.otc=function(a){_.J.call(this,a)};_.K(_.otc,_.J);_.ptc=function(a){_.J.call(this,a,-1,ktc)};_.K(_.ptc,_.J);var qtc=function(a){_.J.call(this,a)};_.K(qtc,_.J);qtc.prototype.getName=function(){return _.C(this,1)};qtc.prototype.$c=function(a){return _.Cj(this,1,a)};var rtc=function(a){_.J.call(this,a)};_.K(rtc,_.J);
rtc.prototype.getName=function(){return _.C(this,1)};rtc.prototype.$c=function(a){return _.Cj(this,1,a)};rtc.prototype.getTitle=function(){return _.C(this,2)};rtc.prototype.setTitle=function(a){return _.Cj(this,2,a)};_.stc=[1,4];ttc=function(a){_.J.call(this,a)};_.K(ttc,_.J);ttc.prototype.getUser=function(){return _.zj(this,_.Zsc,1,_.stc)};ttc.prototype.ik=function(){return _.y(this,qtc,3)};ttc.prototype.Nn=function(a){return _.G(this,3,a)};ttc.prototype.zH=function(){return _.dj(this,3)};
var utc=[8,9,10],vtc=function(a){_.J.call(this,a)};_.K(vtc,_.J);vtc.prototype.getType=function(){return _.hj(this,6,0)};var wtc=function(a){_.J.call(this,a)};_.K(wtc,_.J);_.xtc=function(a){_.J.call(this,a)};_.K(_.xtc,_.J);_.g=_.xtc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Cj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Cj(this,2,a)};_.g.mla=function(){return _.zj(this,vtc,9,utc)};
_.g.LYa=function(){return _.zj(this,wtc,10,utc)};_.g.nj=function(){return _.wj(this,5)};_.g.getMimeType=function(){return _.C(this,6)};_.g.hA=function(){return _.y(this,ttc,7)};var ytc=function(a){_.J.call(this,a)};_.K(ytc,_.J);var ztc=[8,9,10],Atc=function(a){_.J.call(this,a)};_.K(Atc,_.J);_.g=Atc.prototype;_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Cj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Cj(this,2,a)};
_.g.mla=function(){return _.zj(this,vtc,9,ztc)};_.g.LYa=function(){return _.zj(this,wtc,10,ztc)};Btc=[1,3];_.lL=function(a){_.J.call(this,a)};_.K(_.lL,_.J);_.lL.prototype.Mh=function(){return _.zj(this,Atc,1,Btc)};_.Ctc=[1,2,3];_.Dtc=function(a){_.J.call(this,a)};_.K(_.Dtc,_.J);_.Etc=function(a){_.J.call(this,a)};_.K(_.Etc,_.J);var Ftc=function(a){_.J.call(this,a)};_.K(Ftc,_.J);var Gtc=function(a){_.J.call(this,a)};_.K(Gtc,_.J);Htc=[2,3];_.Itc=function(a){_.J.call(this,a,-1,Htc)};_.K(_.Itc,_.J);
_.Itc.prototype.getType=function(){return _.hj(this,1,0)};_.Jtc=function(a){_.J.call(this,a)};_.K(_.Jtc,_.J);_.Jtc.prototype.getType=function(){return _.hj(this,1,0)};var Ktc=function(a){_.J.call(this,a)};_.K(Ktc,_.J);Ktc.prototype.getType=function(){return _.hj(this,1,0)};var Ltc=function(a){_.J.call(this,a)};_.K(Ltc,_.J);_.Mtc=function(a){_.J.call(this,a)};_.K(_.Mtc,_.J);_.Mtc.prototype.H=function(){return _.R(this,1)};var Ntc=function(a){_.J.call(this,a)};_.K(Ntc,_.J);Otc=[1,2,4];
_.Ptc=function(a){_.J.call(this,a)};_.K(_.Ptc,_.J);Qtc=[1,2];_.Rtc=function(a){_.J.call(this,a)};_.K(_.Rtc,_.J);_.Rtc.prototype.getParent=function(){return _.y(this,_.lL,1)};_.Rtc.prototype.Ug=function(a){return _.G(this,1,a)};_.Stc=function(a){_.J.call(this,a,-1,Qtc)};_.K(_.Stc,_.J);_.Ttc=function(a){_.J.call(this,a,-1,Otc)};_.K(_.Ttc,_.J);_.mL=function(a){_.J.call(this,a)};_.K(_.mL,_.J);_.mL.prototype.getEmail=function(){return _.C(this,1)};_.mL.prototype.getTitle=function(){return _.C(this,2)};
_.mL.prototype.setTitle=function(a){return _.Cj(this,2,a)};_.nL=[2,3,4,5];_.oL=function(a){_.J.call(this,a)};_.K(_.oL,_.J);_.g=_.oL.prototype;_.g.Df=function(){return _.hj(this,1,0)};_.g.getUser=function(){return _.zj(this,_.Zsc,2,_.nL)};_.g.ik=function(){return _.zj(this,qtc,4,_.nL)};_.g.Nn=function(a){return _.pj(this,4,_.nL,a)};_.g.zH=function(){return _.ej(this,4,_.nL)};var Utc=function(a){_.J.call(this,a)};_.K(Utc,_.J);Vtc=[1,2,3,4];_.Wtc=function(a){_.J.call(this,a,-1,Vtc)};_.K(_.Wtc,_.J);
_.Xtc=function(a){_.J.call(this,a)};_.K(_.Xtc,_.J);_.Ytc=function(a){_.J.call(this,a)};_.K(_.Ytc,_.J);_.Ztc=function(a){_.J.call(this,a)};_.K(_.Ztc,_.J);_.$tc=function(a){_.J.call(this,a)};_.K(_.$tc,_.J);_.$tc.prototype.getType=function(){return _.hj(this,1,0)};auc=[1];_.buc=function(a){_.J.call(this,a)};_.K(_.buc,_.J);_.buc.prototype.getFeature=function(){return _.hj(this,1,0)};_.cuc=function(a){_.J.call(this,a,-1,auc)};_.K(_.cuc,_.J);var duc=function(a){_.J.call(this,a)};_.K(duc,_.J);
var euc=function(a){_.J.call(this,a)};_.K(euc,_.J);var fuc=function(a){_.J.call(this,a)};_.K(fuc,_.J);fuc.prototype.getType=function(){return _.hj(this,1,0)};_.pL=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.qL=function(a){_.J.call(this,a)};_.K(_.qL,_.J);_.qL.prototype.ax=function(){return _.zj(this,fuc,10,_.pL)};var guc=function(a){_.J.call(this,a)};_.K(guc,_.J);guc.prototype.getType=function(){return _.hj(this,2,0)};guc.prototype.Jh=function(){return _.C(this,1)};
_.huc=function(a){_.J.call(this,a)};_.K(_.huc,_.J);var iuc=function(a){_.J.call(this,a)};_.K(iuc,_.J);_.juc=function(a){_.J.call(this,a)};_.K(_.juc,_.J);_.kuc=function(a){_.J.call(this,a)};_.K(_.kuc,_.J);_.kuc.prototype.getType=function(){return _.hj(this,1,0)};_.rL=[1,2,3,4,5];_.luc=function(a){_.J.call(this,a)};_.K(_.luc,_.J);_.luc.prototype.getUser=function(){return _.zj(this,_.Zsc,1,_.rL)};_.muc=function(a){_.J.call(this,a)};_.K(_.muc,_.J);_.g=_.muc.prototype;
_.g.getName=function(){return _.C(this,1)};_.g.$c=function(a){return _.Cj(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.Cj(this,2,a)};_.g.Ma=function(){return _.y(this,_.xtc,3)};_.nuc=function(a){_.J.call(this,a)};_.K(_.nuc,_.J);_.nuc.prototype.getParent=function(){return _.y(this,_.xtc,4)};_.nuc.prototype.Ug=function(a){return _.G(this,4,a)};_.sL=[1,5,3];_.ouc=function(a){_.J.call(this,a)};_.K(_.ouc,_.J);
_.ouc.prototype.Mh=function(){return _.zj(this,_.xtc,1,_.sL)};puc=function(a,b){return new _.fdc(_.gdc.bound(a,b,void 0,void 0))};quc=function(){var a=new _.Th,b=_.sdc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Gd(_.WH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.ruc=function(a){_.J.call(this,a)};_.K(_.ruc,_.J);_.ruc.prototype.Hp=function(){return _.z(this,1)};
_.ruc.prototype.getSize=function(){return _.z(this,2)};_.ruc.prototype.setSize=function(a){return _.x(this,2,a)};_.ruc.prototype.getUrl=function(){return _.z(this,3)};_.suc=function(a){_.J.call(this,a)};_.K(_.suc,_.J);_.suc.prototype.getType=function(){return _.z(this,1)};tuc=[2,3];_.uuc=function(a){_.J.call(this,a,-1,tuc)};_.K(_.uuc,_.J);vuc=[4,5,6,17,18,24];_.tL=function(a){_.J.call(this,a,-1,vuc)};_.K(_.tL,_.J);_.tL.prototype.getId=function(){return _.z(this,1)};
_.tL.prototype.Nb=function(a){return _.x(this,1,a)};_.tL.prototype.getName=function(){return _.z(this,2)};_.tL.prototype.$c=function(a){return _.x(this,2,a)};var wuc=function(a,b){return _.jj(a,4,b)},xuc=function(a,b){return _.jj(a,5,b)};_.tL.prototype.FR=function(){return _.z(this,8)};_.tL.prototype.getType=function(){return _.z(this,23)};var uL=function(a){_.J.call(this,a)};_.K(uL,_.J);uL.prototype.getQuery=function(){return _.y(this,_.Af,1,1)};uL.prototype.Vg=function(a){return _.G(this,1,a)};
uL.prototype.AK=function(){return _.dj(this,1)};uL.prototype.Yn=function(){return _.z(this,4)};var yuc=function(a,b){return _.G(a,5,b)},xoc=function(a){_.J.call(this,a)};_.K(xoc,_.J);var zuc=[1,2,5,7,9,10,12,14],vL=function(a){_.J.call(this,a,-1,zuc)};_.K(vL,_.J);vL.prototype.Bd=function(){return _.yb(this,_.Ak,1)};var Auc=function(a,b){return _.lj(a,1,b)};vL.prototype.dh=function(a,b){return _.qj(this,1,a,_.Ak,b)};vL.prototype.EN=function(){return _.yb(this,_.lk,2)};
vL.prototype.wia=function(a){_.qj(this,2,a,_.lk,void 0)};var Buc=function(a,b){return _.x(a,3,b)};vL.prototype.Cu=function(){return _.z(this,4)};vL.prototype.qz=function(a){return _.x(this,4,a)};var Cuc=function(a,b){return _.lj(a,5,b)};vL.prototype.Kv=function(){return _.Q(this,6)};var Duc=function(a,b){return _.x(a,6,b)};vL.prototype.Hf=function(){return _.y(this,_.UB,8)};var Euc=function(a,b){return _.jj(a,12,b)};vL.prototype.Wo=function(){return _.hj(this,13,0)};
var Fuc=function(a,b){return _.x(a,13,b)},Guc={sZb:0,qZb:1,n4b:2,E$b:3,H$b:4,Z5b:5},Huc=[1],SK=[1,2,3,4,5,6,7],Snc=function(a){_.J.call(this,a)};_.K(Snc,_.J);var Tnc=function(a){_.J.call(this,a,-1,Huc)};_.K(Tnc,_.J);var QK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],Qnc=function(a){_.J.call(this,a)};_.K(Qnc,_.J);var Xnc=[1,2],Wnc=function(a){_.J.call(this,a)};_.K(Wnc,_.J);var $nc=[1,2,3],Znc=function(a){_.J.call(this,a)};_.K(Znc,_.J);var Iuc=[3],wL=function(a){_.J.call(this,a,-1,Iuc)};_.K(wL,_.J);
wL.prototype.tq=function(){return _.z(this,1)};var Juc=function(a,b){return _.x(a,1,b)};wL.prototype.getTitle=function(){return _.z(this,2)};wL.prototype.setTitle=function(a){return _.x(this,2,a)};wL.prototype.Bd=function(){return _.yb(this,_.Ak,3)};var Kuc=function(a,b){return _.lj(a,3,b)};wL.prototype.dh=function(a,b){return _.qj(this,3,a,_.Ak,b)};wL.prototype.V=function(){return _.z(this,4)};var Luc=function(a,b){return _.x(a,4,b)};wL.prototype.H=function(){return _.y(this,_.ok,5)};
var Muc=function(a,b){return _.G(a,5,b)},Nuc=[2],xL=function(a){_.J.call(this,a,-1,Nuc)};_.K(xL,_.J);xL.prototype.Cb=function(){return _.z(this,1)};xL.prototype.Dc=function(a){return _.x(this,1,a)};xL.prototype.Zk=function(){return _.yb(this,wL,2)};var Ouc=function(a,b){return _.lj(a,2,b)};xL.prototype.Vf=function(){return _.z(this,4)};Puc=function(a,b){return _.x(a,4,b)};_.lK=function(a){_.J.call(this,a)};_.K(_.lK,_.J);_.g=_.lK.prototype;_.g.Cb=function(){return _.z(this,1)};
_.g.Dc=function(a){return _.x(this,1,a)};_.g.EU=function(){return _.Ab(this,2,void 0,_.dI)};_.g.Yj=function(){return _.z(this,3)};_.g.We=function(){return _.z(this,5)};_.g.ti=function(a){return _.x(this,5,a)};var Quc=function(a,b){return 1<a?2===b:a===b},Ruc=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("kf");},yL=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=yL.prototype;
_.g.clone=function(){return new yL(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.VA=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&&_.uj(this.item,a.getItem())};
var Suc=function(a,b){a.H=b;return a},zL=function(a){return a instanceof _.Ak?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},Tuc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Vh();null!=e&&lnc(a,e.clone());if((e=b.getCapabilities())&&null!=_.Q(e,13)){var f=a.getCapabilities()||new _.rk;_.x(f,13,_.Q(e,13));_.QJ(a,f)}e&&null!=_.Q(e,18)&&(f=a.getCapabilities()||new _.rk,_.x(f,18,_.Q(e,18)),_.QJ(a,f));NK(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.Vh()&&NK(a,d,c)},Uuc=function(a,b,c){c=void 0===c?[]:c;if(!b||!zL(a)&&!zL(b))return a;if(2==a.Kv()){c=_.z(a,82);var d=b.clone();Tuc(d,a);_.Rhc(d,b.Kv());_.AI(d,c);return d}a=a.clone();Tuc(a,b,c);return a},Vuc=function(a){return(a=a?a.Vh():null)&&_.Q(a,7)||!1},Wuc=function(a,b){this.V=a;this.Bg=b;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(_.bK(this.Bg))},Yuc=function(a,b){var c=a.Bg;var d=new Set;b=_.m(b);for(var e=b.next();!e.done;e=
b.next())e=e.value,c.H.includes(e)||c.O.has(e)||(c.O.add(e),d.add(e));c=[].concat(_.fc(d));Xuc(a,a.items,a.fields,c)},Xuc=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]={}})},$uc=function(a,b,c){b.every(function(d){return zL(d)})?Zuc(b,c,a.H,a.O):b.every(function(d){return!zL(d)})&&Zuc(b,c,a.items,a.fields)},Zuc=function(a,b,c,d){b=pnc(b,[].concat(_.fc(d)));if(0!==b.length)for(a=
_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.yf();e=e?_.we(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&&NK(d,k,[h]);e&&(k=c[h][e.getId()])&&NK(e,k,[h])}}};Wuc.prototype.update=function(a,b,c){b&&zL(b)?avc(a,b,this.H,this.O,c):avc(a,b,this.items,this.fields,c)};Wuc.prototype.NJ=function(a){var b=this;_.Ta(this.items,function(c,d){_.bb(b.items[d],a)});_.Ta(this.H,function(c,d){_.bb(b.H[d],a)})};
var avc=function(a,b,c,d,e){_.Ta(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.bb(f,a):b&&inc(b,[h])&&(f[a]=bvc(b,h)),b)){var k=b.yf();(k=k?_.we(k):null)&&inc(k,[h])&&(f[k.getId()]=bvc(k,h))}});b&&enc(b,[].concat(_.fc(d)))},bvc=function(a,b){var c=new _.Ak;c.Nb(a.getId());NK(c,a,[b]);return c};Wuc.prototype.clear=function(){var a=this;_.Ta(this.items,function(b,c){a.items[c]={}});_.Ta(this.H,function(b,c){a.H[c]={}})};
Wuc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var cvc=function(a,b,c){var d=this;this.Bt=b;this.Tv=c;this.Dd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=cvc.prototype;_.g.Dy=function(){return this.Dd};_.g.lk=function(a){var b=new Map;a=_.m(a.V());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Dd.has(c)&&b.set(c,this.Dd.get(c).getItem());return b};
_.g.query=function(a,b){var c=[];if(dvc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Bt,a,e.getItem())&&(void 0===b||Quc(e.V,b))&&c.push(e);this.Tv.sort(a,c)}return c};_.g.get=function(a){return this.Dd.get(a)||null};_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Dd.get(c.value))&&b.push(c);return b};
_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,evc(this,a.H)?(this.Dd.delete(a.id),a.H.count--):this.Dd.set(a.id,a.H)):(this.Dd.delete(a.id),a.O.count--)};var evc=function(a,b){return 1<b.$b()||Quc(b.V,2)||b.getItem().kJ()||Cnc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};cvc.prototype.NJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,evc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var fvc=function(a,b,c,d){this.Bg=a;this.W=b;this.O=c;this.V=d},yoc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),$uc(a.V,[b.getItem()],Mrc(a.Bg)),b):null};fvc.prototype.H=function(a){return(a=yoc(this,a))?a.getItem():null};var gvc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=yoc(a,d);e&&(c[d]=e)}return c},hvc=function(a,b){return _.Va(gvc(a,b),function(c){return c.getItem()})},ivc=function(a,b){b=BL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
fvc.prototype.query=function(a){return ivc(this,a).map(function(b){return b.getItem()})};fvc.prototype.getSize=function(){return this.O.Dy().size};
var jvc=function(a){var b=new Set;a=_.m(a.O.Dy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Bk(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||LK(e));(d=c.Dm())&&b.add(d.getId()||LK(d));(d=c.Xr())&&b.add(d.getId()||LK(d));(d=c.oq())&&b.add(d.getId()||LK(d));(c=c.CD())&&b.add(c.getId()||LK(c))}return b.size},kvc=function(a){return[].concat(_.fc(new Set(a.map(function(b){return _.tfc.get(b)}).filter(function(b){return b})))).join(",")},CL=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.fc(b));b=kvc(b);var d=_.mI(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":
_.R(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";_.R(a,77,!1)&&(c+=",canChangeCategoryReferences");
return(b.length?d+","+b:d)+",capabilities("+c+")"},lvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+CL(a,b,!1)+")"},mvc=function(a){var b=new _.ro;_.fK(b,"hidden",_.Q(a,4));a=_.Q(a,6);null!=a&&_.fK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},nvc=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}},ovc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.oB()||!1;case 12:return b.Fz()||0;case 11:return b.GB()||0;case 10:return b.Nq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Oy()||0;case 57:return _.z(b,62)||0;case 32:return b.qv()||0;case 9:return b.nD()||0;case 67:return _.z(b,70)||0;case 98:return b.Bw()||0;default:return""}},pvc=function(a){var b=_.Hcc(),c={};b&&(c.numeric=b);this.H=_.Icc(a,c)};
pvc.prototype.compare=function(a,b,c){b=qvc(b);c=qvc(c);a=a.Lc();var d=nvc(a);if(a&&d){d=rvc(this,a);var e=4===a.getType()?this.H:_.Ha;return svc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};pvc.prototype.sort=function(a,b,c){a=a.Lc();var d=nvc(a);a&&d&&(d=rvc(this,a),d=tvc(b,d),_.Ka(b,uvc(this,a,d)));c&&0<c&&_.ta(b,c,b.length-c)};
var qvc=function(a){return a instanceof _.Ak?a:a.getItem()},rvc=function(a,b){b=nvc(b);return _.L(a.O,a,b,_.Ha)},tvc=function(a,b){var c={};a.forEach(function(d){d=qvc(d);var e=d.getId();c[e]=b(d)});return c},uvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=qvc(d);e=qvc(e);return svc(b,function(h){return c[h.getId()]},f,d,e)}},svc=function(a,b,c,d,e){var f=1===a.Uf()?1:-1;if(_.Q(a,3)){a=PK(d,!0);var h=PK(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ha(d.getId(),
e.getId()))};pvc.prototype.O=function(a,b,c){for(var d=ovc(a[0],c),e=1;e<a.length;e++){var f=ovc(a[e],c);d=1===b(f,d)?f:d}return d};var vvc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.KI(_.fI(b));a=_.IJ(b);this.O=!(!a||!_.R(a,8,!1))};vvc.prototype.qz=function(a){this.rootId=a||""};
var BL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.jl(b).filter(function(d){return"root"===d.Wa()}).forEach(function(d){return d.Hb(a.rootId)});_.il(b,_.hl(b).map(function(d){d.Hb(d.Wa().toLowerCase());return d}));c&&_.gl(b,a.fields);b.H().sort();return b},gL=function(a,b,c){if(b instanceof _.Af){b=BL(a,b);var d=_.gjc(b)}else if(b instanceof _.aG)d=b.V().sort().join(","),_.R(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.RH)return d=mvc(b),d+"|tdList";if(b instanceof _.fG)return d=
b.V().sort().join(","),b.H().length&&(d+="|"+kvc(b.H())),d+"|tdMap";throw Error("nf");}return 3===c?d:d+"|"+wvc(a,b.H(),2===c)},wvc=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(_.fc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.OI({fields:[].concat(_.fc(f)),anonymous:a.anonymous}));e.size&&(d=d+" + "+_.OI({fields:[].concat(_.fc(e)),
anonymous:a.anonymous}));return d};vvc.prototype.equals=function(a,b,c){var d;c&&(d=3);return gL(this,a,d)===gL(this,b,d)};
var Bsc=function(a){if(!a.V().every(function(b){return!_.Se(b)}))throw new _.Hc("Invalid ids for FindByIdsRequest");},yvc=function(a,b){if(_.kJ(b))throw new _.Hc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");xvc(a,b)},xvc=function(a,b){var c;a.O||(c=_.MI(3));if(b.getId())throw new _.Hc("Use findByIds() for find by id queries.",c?c:_.MI(3));if(!b.xi()||0>=b.xi())throw new _.Hc("A positive limit is required on an ItemQueryRequest.",c?c:_.MI(3));_.re(b,
33);if(c=(c=b.Lc())&&nvc(c)){var d=b.H().length?b.H():a.fields;zvc(a,d,c)}if(_.jJ(b)){if(a.anonymous)throw new _.Hc("User must be authenticated for a Quick Access request.");if(!Avc(a)&&20<b.xi())throw new _.Hc("Limit must be in the range [1, 20].");c=2===_.TJ(b);d=_.re(b,33).length;if(c&&1!==d||d&&!c)throw new _.Hc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.mj(_.vb(_.kj(_.vb(_.vb(_.vb(_.gI(_.vb(_.kj(_.gI(b.clone(),1),30),32),33),45),47),
74),75),48),6);d=new _.Af;if(!_.uj(c,d))throw new _.Hc("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: "+isc(d,c));}else if(_.R(b,74,!1))throw new _.Hc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.lJ(b)){if(a.anonymous)throw new _.Hc("User must be authenticated for a DrivePriority request.");if(2===_.TJ(b))throw new _.Hc("Team Drive corpora is not valid for a Drive Priority request.");
a=_.vb(_.vb(_.vb(_.kj(_.gI(b.clone(),1),30),32),45),52);b=new _.Af;if(!_.uj(a,b))throw new _.Hc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+isc(b,a));}},Bvc=function(a,b){xvc(a,b);zvc(a,a.fields.slice(),b.H())},Cvc=function(a,b){if(!_.kJ(b))throw new _.Hc("Expected a PeoplePredict request.");xvc(a,b);if(a.anonymous)throw new _.Hc("User must be authenticated for a People Predict request.");
if(2===_.TJ(b))throw new _.Hc("Team Drive corpora is not valid for a People Predict request.");a=_.vb(_.vb(_.vb(_.kj(_.gI(b.clone(),1),30),32),45),49);b=new _.Af;if(!_.uj(a,b))throw new _.Hc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+isc(b,a));},zvc=function(a,b,c){var d;a.O||(d=_.MI(3));if(!jnc(b,c,_.Jgc)){var e=_.OI({fields:c,anonymous:a.anonymous}),f=_.OI({fields:b,anonymous:a.anonymous});
a=_.OI({fields:knc(c,b),anonymous:a.anonymous});throw new _.Hc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.MI(3));}},Avc=function(a){return 200<=_.WJ(a.H)&&300>_.WJ(a.H)},Dvc=function(a){var b=new Set;a=_.m(_.hl(a));for(var c=a.next();!c.done;c=a.next())switch(_.zMa(c.value.Wa())){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(_.fc(b))},Evc=function(a){switch(_.WJ(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"}},Fvc=function(a){a=_.jl(a);return 1===a.length?a[0].Wa():null},Gvc=function(a){_.N.call(this);this.H=a};_.fg(Gvc,_.N);_.g=Gvc.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.XO=function(a){this.H.addCallback(function(b){b.XO(a)})};
_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();Gvc.ub.Ya.call(this)};var Knc=function(a){_.Qy.call(this);this.Mo=a;this.H=_.cf(this.Mo,"message",this.jsb,!1,this)};_.fg(Knc,_.Qy);_.g=Knc.prototype;_.g.Xf=null;_.g.send=function(a,b){var c=[];b=this.DAa(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.Gfc&&(a=(0,_.ui)(a));this.Mo.postMessage(a,c)};
_.g.jsb=function(a){a=a.ze;var b=a.data;if(_.Gfc)try{b=JSON.parse(b)}catch(e){return}if(_.Ea(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.nEa(a.ports||[],b),d.kHa),null!=b&&d.callback(b))}};
_.g.DAa=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,_.L)(this.DAa,this,a)):b&&b.constructor==Object?_.Va(b,function(c,d){c=this.DAa(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.nEa=function(a,b){return Array.isArray(b)?b.map((0,_.L)(this.nEa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Va(b,function(c,d){return this.nEa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.ni(this.H);"[object MessagePort]"==Object.prototype.toString.call(this.Mo)?this.Mo.close():"[object Worker]"==Object.prototype.toString.call(this.Mo)&&this.Mo.terminate();delete this.Mo;Knc.ub.Ya.call(this)};
var Nnc=function(a,b){if("*"==b)return new Gvc(_.$h(Error("of")));var c=new _.qi(50),d=_.Ob(_.ca,c),e=new _.Th(d);_.Vh(e,d);c.start();_.cf(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new Knc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new Gvc(e)},Hvc=function(a){_.N.call(this);this.H=new _.Jcc(a);this.V={};this.O=_.Lcc(this.H,
"private");this.W=_.Lcc(this.H,"public");this.O.registerService("mics",(0,_.L)(this.Hpb,this),!0)};_.fg(Hvc,_.N);_.g=Hvc.prototype;_.g.KJb=0;_.g.Ya=function(){_.ca(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.KJb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.Hpb=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,_.L)(this.Gpb,this,b),!0)};
_.g.Gpb=function(a,b){a=a(b.data);var c=b.signature;_.Oh(a).then((0,_.L)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var Ivc=function(a,b){_.N.call(this);this.W=b;this.started=!1;this.V=new _.Jcc(a);this.Ja(this.V);this.H=new Hvc(_.Lcc(this.V,"direct"));this.Ja(this.H)};_.K(Ivc,_.N);Ivc.prototype.registerService=function(a,b){this.H.registerService(a,function(c){return b(c)})};Ivc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.bg)(d)})};
var Mnc=function(a,b){Ivc.call(this,a,b);this.O=new Hvc(_.Lcc(this.V,"passthrough"));this.Ja(this.O)};_.K(Mnc,Ivc);var DL=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},EL=function(a,b,c,d){a.O.send(b,c||{},d?function(e){return d(e)}:_.bg)};Mnc.prototype.start=function(){this.started||(this.started=!0)};var Hnc=[],Jvc=function(){_.Qy.call(this);this.H=null};_.K(Jvc,_.Qy);Jvc.prototype.send=function(a,b){_.c8a(this.H,a,b)};
var Onc=function(){this.O=new Jvc;this.H=new Jvc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},Kvc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},Lvc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&Gnc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},Mvc=function(a){var b=new Kvc(a.c,a.m,a.a,a.req);b.H=a.s;return b},Nvc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},Ovc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&Gnc(a.data);return{d:a.data,err:a.error&&b?a.error.Hc():a.error,uid:a.O,s:b}},Pvc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Gc(JSON.parse(a.err)):c;a=new Nvc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},Fnc=function(a,b){this.H=a;this.eE=b};Fnc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.eE[b];return a};
Fnc.prototype.Hc=function(){for(var a={},b={},c=0;c<this.eE.length;c++){var d=this.eE[c],e=this.H[c];d instanceof Error?b[e]=_.vI(d).Hc():a[e]=d.Hc()}return{r:a,e:b}};Qvc=function(a,b){if(b){var c=[],d=[];_.Ta(a.r,function(e,f){c.push(f);d.push(new _.GJ(JSON.parse(e)))});_.Ta(a.e,function(e,f){c.push(f);e=new _.Gc(JSON.parse(e));d.push(_.NI(e))});return new Fnc(c,d)}return a};Lnc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.mK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};_.nK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};Rvc=function(a){_.nK.call(this,a,void 0,void 0,void 0);this.g7a=new _.bn};_.K(Rvc,_.nK);Svc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.pK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};
_.oK=function(a,b,c){this.response=a;this.Pe=void 0===b?0:b;this.O0=void 0===c?null:c};_.qK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Pe=void 0===d?0:d};Tvc={XXb:0,sYb:1,y3b:3,Yac:5,Qlb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.Uvc=function(a){_.J.call(this,a)};_.K(_.Uvc,_.J);_.Uvc.prototype.H=function(){return _.z(this,1)};var Vvc=function(a){_.J.call(this,a)};_.K(Vvc,_.J);Vvc.prototype.H=function(){return _.Q(this,1)};
Vvc.prototype.V=function(){return _.z(this,2)};_.FL=function(a){_.J.call(this,a)};_.K(_.FL,_.J);_.g=_.FL.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.x(this,2,a)};_.g.gua=function(){return _.z(this,3)};_.g.Bz=function(){return _.z(this,4)};_.g.waa=function(){return _.y(this,Vvc,6)};_.g.yvb=function(){return _.y(this,_.Uvc,7)};_.g.QYa=function(){return _.z(this,8)};
_.g.fua=function(){return _.Q(this,9)};_.GL=function(a){_.J.call(this,a)};_.K(_.GL,_.J);_.g=_.GL.prototype;_.g.getType=function(){return _.z(this,1)};_.g.getId=function(){return _.z(this,2)};_.g.Nb=function(a){return _.x(this,2,a)};_.g.getTitle=function(){return _.z(this,3)};_.g.setTitle=function(a){return _.x(this,3,a)};_.g.getSize=function(){return _.z(this,5)};_.g.setSize=function(a){return _.x(this,5,a)};_.g.Rcb=function(){return _.z(this,6)};_.Wvc=function(a,b){return _.x(a,6,b)};
_.GL.prototype.Bf=function(){return _.z(this,8)};_.GL.prototype.kl=function(a){return _.x(this,8,a)};_.GL.prototype.H=function(){return _.Q(this,9)};_.WI=function(a){_.J.call(this,a)};_.K(_.WI,_.J);_.WI.prototype.Jh=function(){return _.z(this,1)};_.WI.prototype.re=function(){return _.y(this,_.Lf,3)};_.gJ=function(a){_.J.call(this,a)};_.K(_.gJ,_.J);_.gJ.prototype.Jh=function(){return _.z(this,1)};_.gJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.hJ=function(a){_.J.call(this,a)};_.K(_.hJ,_.J);
_.hJ.prototype.Jh=function(){return _.z(this,1)};_.hJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.yJ=function(a){_.J.call(this,a)};_.K(_.yJ,_.J);_.yJ.prototype.Jh=function(){return _.z(this,1)};_.yJ.prototype.re=function(){return _.y(this,_.Lf,4)};var Xvc=function(a){_.J.call(this,a)};_.K(Xvc,_.J);Yvc=function(a,b){return _.x(a,1,b)};_.XI=function(a){_.J.call(this,a)};_.K(_.XI,_.J);_.XI.prototype.getId=function(){return _.z(this,1)};_.XI.prototype.Nb=function(a){return _.x(this,1,a)};
_.mJ=function(a){_.J.call(this,a)};_.K(_.mJ,_.J);_.mJ.prototype.getId=function(){return _.z(this,1)};_.mJ.prototype.Nb=function(a){return _.x(this,1,a)};_.Vgc=function(a){_.J.call(this,a)};_.K(_.Vgc,_.J);_.uJ=function(a){_.J.call(this,a)};_.K(_.uJ,_.J);_.uJ.prototype.re=function(){return _.y(this,_.Lf,1)};var Zvc=function(){var a=new _.uJ,b=_.Mf(new _.Lf,301);return _.G(a,1,b)};_.uJ.prototype.uc=function(){return _.z(this,3)};_.ZI=function(a){_.J.call(this,a)};_.K(_.ZI,_.J);
_.ZI.prototype.qc=function(){return _.z(this,1)};_.ZI.prototype.re=function(){return _.y(this,_.Lf,3)};_.iJ=function(a){_.J.call(this,a)};_.K(_.iJ,_.J);_.g=_.iJ.prototype;_.g.qc=function(){return _.z(this,1)};_.g.Df=function(){return _.z(this,2)};_.g.getType=function(){return _.z(this,3)};_.g.Wa=function(){return _.z(this,4)};_.g.Hb=function(a){return _.x(this,4,a)};_.g.Di=function(){return _.vb(this,4)};_.g.Ng=function(){return _.dj(this,4)};_.g.re=function(){return _.y(this,_.Lf,7)};
_.hhc=function(a){_.J.call(this,a)};_.K(_.hhc,_.J);_.hhc.prototype.uc=function(){return _.z(this,1)};_.qJ=function(a){_.J.call(this,a)};_.K(_.qJ,_.J);_.qJ.prototype.qc=function(){return _.z(this,1)};_.qJ.prototype.re=function(){return _.y(this,_.Lf,2)};_.qJ.prototype.xi=function(){return _.wj(this,3,1E3)};_.qJ.prototype.cj=function(a){return _.x(this,3,a)};var $vc=function(a,b,c){_.pi.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};_.K($vc,_.pi);
$vc.prototype.UB=function(){return this.O};$vc.prototype.YQ=function(){var a=this;if(this.W)return this.W;var b=_.Rh();this.W=b.promise;_.n.setTimeout(function(){a.W=null},5E3);awc(this,b);return b.promise};$vc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,bwc(this))};$vc.prototype.wa=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 Esc("fb")))};
var cwc=function(a,b){a.ha=b},bwc=function(a){a.H||(a.H=new _.Vjc(5E3),a.timeout=_.n.setTimeout(function(){return dwc(a)},a.H.Wa()))},dwc=function(a){awc(a);a.H&&(_.ZH(a.H),a.timeout=_.n.setTimeout(function(){return dwc(a)},a.H.Wa()))},awc=function(a,b){var c=_.Oh();a.ha&&(c=a.ha());c.then(function(){return ewc(a,b)})},ewc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Qe(new _.ihc)});b?c.then(function(){b.resolve(Yvc(new Xvc,1))},function(d){var e=_.xd(d).tg;
d=0;_.Wfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Do(e),_.x(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new Xvc;Yvc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.xd(d);_.Wfc(d.tg)&&a.V&&(a.dispatchEvent(new Esc("gb")),a.V=!1)})};$vc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.jhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.Zgc=function(a){this.H=a;this.type=1};_.$gc=function(a){this.H=a;this.type=0};_.ghc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};fwc=function(a){return _.zj(a,_.nI,3,_.oI)||_.zj(a,_.EJ,4,_.oI)||_.zj(a,_.tK,5,_.oI)||_.zj(a,_.BJ,6,_.oI)||_.zj(a,_.aJ,7,_.oI)||_.zj(a,_.UI,8,_.oI)||_.zj(a,_.YI,9,_.oI)||_.zj(a,_.xI,10,_.oI)};gwc=function(a){_.J.call(this,a)};_.K(gwc,_.J);_.g=gwc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};
_.g.fA=function(){return _.z(this,3)};_.g.He=function(){return _.z(this,4)};_.g.Bi=function(a){return _.x(this,4,a)};_.g.Oma=function(){return _.dj(this,4)};var hwc=function(a){this.Xf=a;this.H=new Map;this.O=this.Xf.W};
hwc.prototype.create=function(a,b){if(0!=Src(b)){var c=this.Xf.H(106001);if(c){var d=Src(b),e=bL(c);_.x(e,2,d);d=bL(c);e=null;if(b instanceof _.nG||b instanceof _.aG||b instanceof _.Af||b instanceof _.oJ||b instanceof _.nD||b instanceof _.fG||b instanceof _.RH||b instanceof _.PH||b instanceof _.gG||b instanceof _.bA)e=b.re();e=e&&_.R(e,2,!1);_.x(d,7,"boolean"==typeof e?e:void 0);d=bL(c);b=b instanceof _.Af?0<_.jl(b).length:void 0;_.x(d,8,b);this.H.set(a,c)}}};
var iwc=function(a,b,c){if(a=a.H.get(b))a=bL(a),_.x(a,5,c)},jwc=function(a,b,c){(a=a.H.get(b))&&_.Q(bL(a),8)&&(a=bL(a),_.x(a,9,c))},kwc=function(a,b,c,d,e){var f=a.H.get(b);f&&(bL(f).Dc(c),bL(f).ti(d),null!=e&&(c=bL(f),_.x(c,6,e)),f.Bj(),a.H.delete(b))},lwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=Trc(c);if(1==e||2==c)e=_.iK(_.Jfc,c),d=bL(d),d=3==e||8==e?!_.Q(d,5):0!=e?_.hgc.has(e):null,kwc(a,b,1,e,d)}},mwc=function(a,b,c){var d=a.O.Cb(c);d=_.iK(_.Ifc,d||22);var e=Trc(c);e=_.iK(_.Jfc,
e);kwc(a,b,d,e,"undefined"!=typeof _.mK&&c instanceof _.mK||"undefined"!=typeof _.oK&&c instanceof _.oK||"undefined"!=typeof _.pK&&c instanceof _.pK?c.O0:null)},HL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(bL(d).Dc(c),d.Bj(),a.H.delete(b))},nwc=[2,4],IL=function(a){_.J.call(this,a,-1,nwc)};_.K(IL,_.J);IL.prototype.Cb=function(){return _.z(this,1)};IL.prototype.Dc=function(a){return _.x(this,1,a)};IL.prototype.Yj=function(){return _.z(this,3)};
var owc=[4,9],pwc=function(a){_.J.call(this,a,-1,owc)};_.K(pwc,_.J);_.g=pwc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.tZa=function(){return _.z(this,2)};_.g.gPa=function(){return _.z(this,3)};_.g.pwb=function(){return _.yb(this,_.qI,4)};var qwc=[2],JL=function(a){_.J.call(this,a,-1,qwc)};_.K(JL,_.J);JL.prototype.getName=function(){return _.z(this,1)};JL.prototype.$c=function(a){return _.x(this,1,a)};JL.prototype.H=function(){return _.yb(this,hL,2)};
var rwc=function(a,b){_.lj(a,2,b)};JL.prototype.qc=function(){return _.z(this,3)};var swc=function(a,b){return _.x(a,3,b)},twc=[2],KL=function(a){_.J.call(this,a,-1,twc)};_.K(KL,_.J);KL.prototype.Cb=function(){return _.z(this,1)};KL.prototype.Dc=function(a){return _.x(this,1,a)};KL.prototype.H=function(){return _.yb(this,JL,2)};var uwc=function(a,b){return _.lj(a,2,b)};KL.prototype.Yj=function(){return _.z(this,3)};var vwc=function(a){_.J.call(this,a)};_.K(vwc,_.J);_.g=vwc.prototype;
_.g.qc=function(){return _.z(this,1)};_.g.Cb=function(){return _.z(this,2)};_.g.Dc=function(a){return _.x(this,2,a)};_.g.getError=function(){return _.y(this,_.Gc,3)};_.g.Re=function(a){return _.G(this,3,a)};_.g.co=function(){return _.dj(this,3)};var wwc={Fac:0,d6b:1,g6b:2,e6b:4,F3b:5,M0b:6,M3b:7,u6b:8},xwc=function(a){_.J.call(this,a)};_.K(xwc,_.J);xwc.prototype.getUrl=function(){return _.z(this,1)};var LL=function(a){_.J.call(this,a)};_.K(LL,_.J);var ywc=function(a,b){return _.x(a,1,b)};
LL.prototype.getName=function(){return _.z(this,2)};LL.prototype.$c=function(a){return _.x(this,2,a)};LL.prototype.getEmail=function(){return _.z(this,3)};var zwc=function(a,b){return _.x(a,3,b)};LL.prototype.wq=function(){return _.dj(this,3)};var Awc=[1],Bwc=function(a){_.J.call(this,a,-1,Awc)};_.K(Bwc,_.J);var Cwc=function(a,b){return _.lj(a,1,b)},Dwc=[2],ML=function(a){_.J.call(this,a,-1,Dwc)};_.K(ML,_.J);ML.prototype.Cb=function(){return _.z(this,1)};
ML.prototype.Dc=function(a){return _.x(this,1,a)};ML.prototype.Zk=function(){return _.yb(this,_.dI,2)};var Ewc=function(a,b){return _.lj(a,2,b)};ML.prototype.Yj=function(){return _.z(this,3)};var Fwc=function(a,b){this.O=a|0;this.H=b|0};Fwc.prototype.equals=function(a){return this===a?!0:a instanceof Fwc?this.O===a.O&&this.H===a.H:!1};Fwc.prototype.Ac=function(){return 31*this.O+17*this.H|0};
var Gwc=function(a,b){return new Fwc(a,b)},Hwc=function(a,b){b=~b;a?a=~a+1:b+=1;return Gwc(a,b)},Iwc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?Hwc:Gwc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},Jwc=function(){this.H=this.W=this.O=this.V=null},Kwc=[1],Lwc=function(a){_.J.call(this,a,-1,Kwc)};_.K(Lwc,_.J);
var Mwc=function(a,b){return _.jj(a,1,b)},Nwc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},NL=function(a,b,c){if(a.started)throw Error("xf");c={Ko: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)}},OL=function(a,b){if(!a.started)throw Error("yf");if(!a.enabled)throw Error("zf`"+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.Ko.delete(b);if(0===e.Ko.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.NI(f):null,f;}}}};Nwc.prototype.H=function(a){return this.V.has(a)};Nwc.prototype.start=function(){this.started=!0};Nwc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var Owc=function(a,b,c){this.id=a;this.O=b;this.H=c},Pwc=function(a,b){return new Owc((a?a:b).getId(),a,b)},PL=function(a){return new Owc(a.getId(),null,a)},Qwc=function(a,b){this.Bt=a;this.Tv=b;this.MD=!0;this.l9=!1;this.Pe=0},QL=function(a,b){(a.MD=b)||a.NJ()};_.g=Qwc.prototype;_.g.sma=function(a,b){if(5===this.XE(a))throw Error("Af");for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Bt,a,e.getItem())&&c.push(e);this.Tv.sort(a,c,b);return c};_.g.getSize=function(){return this.Dy().length};
_.g.lk=function(a,b){a=this.sma(a,b);a=foc(a);b=new _.eI;b.iB(a);b.Dc(this.gO()?6:1);return b};_.g.update=function(a){var b=this.zs(a.O),c=this.zs(a.H);if(!b&&!c)return!1;b&&this.DJ(a.O);c&&this.qS(a.H);return!0};_.g.XE=function(a){return this.MD&&this.l9?dvc(a)?1:5:5};_.g.aY=function(){this.l9=!0};_.g.zs=function(a){return!!a&&this.MD};_.g.ti=function(a){this.Pe=a};_.g.We=function(){return this.Pe};
var RL=function(a,b,c,d,e,f){f=void 0===f?"":f;Qwc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Dd=[];this.O={};this.request=BL(c,d,!0);this.W=gL(c,d);this.H=!e;Rwc(this,e);this.V=function(k,l){return h.Tv.compare(h.request,k,l)}};_.K(RL,Qwc);_.g=RL.prototype;_.g.jd=function(){return this.request};_.g.pN=function(){return this.W};
_.g.qS=function(a){var b=this.O[a.getId()];b&&this.DJ(b);Ymc(this.Dd,a,this.V);this.O[a.getId()]=a;a.count++;this.Dd.length>this.request.xi()&&(this.DJ(_.ka(this.Dd)),this.H=!1)};_.g.DJ=function(a){var b=this.Dd,c=_.Ia(b,a,this.V);0<=c&&_.wa(b,c);_.bb(this.O,a.getId());a.count--};_.g.NJ=function(){this.Dd.forEach(function(a){a.count--});this.Dd=[];this.O={}};_.g.Dy=function(){return this.Dd};
_.g.XE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=jnc(b,a,_.Jgc);return b?this.H?1:6:5};_.g.sma=function(a,b){if(5===this.XE(a))throw Error("Af");b=b?Math.min(b,this.Dd.length):this.Dd.length;return _.Da(this.Dd,0,b)};_.g.zs=function(a){if(!Qwc.prototype.zs.call(this,a)||!AL(this.Bt,this.request,a.getItem()))return!1;if(this.H||_.R(this.request,48,!1))return!0;var b=_.ka(this.Dd);return!!b&&0>=this.V(a,b)};_.g.gO=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.$k=function(a,b){var c=this,d=_.ka(this.Dd);!this.H&&d&&_.na(a,function(e){return e.getId()===d.getId()})&&(b?(this.DJ(d),Rwc(this,_.ka(a))):this.H=!0);_.Ma(a,function(e){c.update(PL(e))})};var Rwc=function(a,b){b&&AL(a.Bt,a.request,b.getItem())&&a.qS(b)};RL.prototype.Jy=function(){return this.nextPageToken};var SL=function(a,b){Qwc.call(this,a,b);this.Dd=new Map};_.K(SL,Qwc);SL.prototype.qS=function(a){this.Dd.set(a.getId(),a);a.count++};
SL.prototype.DJ=function(a){this.Dd.delete(a.getId());a.count--};SL.prototype.NJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Dd=new Map};SL.prototype.Dy=function(){return Array.from(this.Dd.values())};var Swc=function(a,b){SL.call(this,a,b);this.aY()};_.K(Swc,SL);_.g=Swc.prototype;
_.g.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5===c)return c;if(0<_.re(a,33).length)return 5;a=_.jl(a);return 0<a.length?a.every(function(d){return(d=b.Dd.get(d.Wa()))&&!d.getItem().uc()&&d.H})?1:5:5};_.g.zs=function(a){return SL.prototype.zs.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.sma=function(a,b){for(var c=[],d=_.m(this.Dy()),e=d.next();!e.done;e=d.next())e=e.value,AL(this.Bt,a,e.getItem())&&c.push(e);this.Tv.sort(a,c,b);return c};_.g.jd=function(){return new _.Af};
_.g.pN=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.gO=function(){return!1};var Twc=function(a){return[].concat(_.fc(a.Dd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},TL=function(a,b,c,d){SL.call(this,a,b);var e=this;this.H=d;NL(c,["aU7Ts","BNEDtc"],function(){return e.aY()})};_.K(TL,SL);
TL.prototype.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5==c)return c;if(0<_.re(a,33).length)return 5;a=_.jl(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Wa());return null!=d&&!d.getItem().uc()&&tnc(d.getItem())&&!_.Q(d.getItem(),108)})?5:1};TL.prototype.zs=function(a){return SL.prototype.zs.call(this,a)&&Uwc(this,a.getItem())};var Uwc=function(a,b){if(_.Q(b,31)||!a.l9)return!0;var c=a.H();return b.vk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&tnc(e.getItem())})};
_.g=TL.prototype;_.g.aY=function(){SL.prototype.aY.call(this);for(var a=_.m(this.Dd),b=a.next();!b.done;b=a.next()){var c=_.m(b.value);b=c.next().value;c=c.next().value;Uwc(this,c.getItem())||(c.count--,this.Dd.delete(b))}};_.g.jd=function(){return new _.Af};_.g.pN=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.gO=function(){return!1};
var Vwc=/^[\x00-\x7F]*$/,UL=function(){this.H=[this.W,this.O,this.V,this.ha,this.IIb,this.EIb,this.uIb,this.xIb,this.wIb,this.BIb,this.sIb,this.vIb,this.CIb,this.DIb,this.FIb,this.tIb,this.HIb,this.GIb,this.pIb,this.zIb,this.yIb,this.qIb,this.AIb,this.JIb,this.rIb];this.rootId=""};UL.prototype.qz=function(a){this.rootId=a||""};
var dvc=function(a){return Wwc(a)&&0==_.re(a,40).length&&void 0==_.z(a,41)},Wwc=function(a){var b=!0;_.yb(a,_.Cf,13).forEach(function(d){"me"!=d.Wa()&&(b=!1)});var c=a.Lc();c=!c||5!=c.getType();return 0==_.yb(a,_.$k,5).length&&0==_.yb(a,_.Cf,14).length&&0==_.yb(a,_.Cf,15).length&&!_.dj(a,58)&&!_.Q(a,18)&&!_.Q(a,34)&&0==_.yb(a,_.Rk,35).length&&0==_.yb(a,_.Rk,38).length&&c&&b&&0==_.re(a,39).length&&!_.z(a,42)&&0==_.yb(a,_.Qk,44).length&&!_.jJ(a)&&!_.kJ(a)&&!_.lJ(a)&&0==_.yb(a,_.Sk,57).length&&Xwc(a)&&
!_.y(a,_.zpa,59)&&null==_.Q(a,60)&&0==_.yb(a,_.Cf,68).length&&0==_.yb(a,_.Cf,67).length&&null==_.Q(a,69)&&!_.Q(a,73)},Xwc=function(a){return _.yb(a,_.cl,4).every(function(b){b=b.Wa();return!b||!b.includes("*")&&Vwc.test(b)})};UL.prototype.e$=function(a,b){var c=this;return b.filter(function(d){return AL(c,a,d)})};var AL=function(a,b,c){return!!c&&Ywc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},Ywc=function(a,b){return b.getId()!=a.rootId&&!zL(b)};
UL.prototype.W=function(a,b){var c=!0,d=_.yb(a,_.cl,4);if(!Xwc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Wa()){var f=_.R(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Wa().toLowerCase();if(2==_.z(e,1))h=k==h,c=c&&(f?!h:h);else{e=[];if(0<=k.indexOf("-"))for(var l=RegExp("\\w*-[\\w-]*"),p=_.m(k.match(l)||[]),q=p.next();!q.done;q=p.next())e.push(q.value),k=k.replace(l,"");e.push.apply(e,_.fc(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.vg)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.dh(l)+"($|[^\\w])|(^|[ ])"+_.dh(l)):new RegExp(_.dh(l))),c=c&&(f?!l:l))}}}return c};
UL.prototype.O=function(a,b){var c=_.hl(a),d=0,e=0,f=!1,h=!1;c=_.m(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,k.Wa()){var l=b.getMimeType()||"";if(_.Q(k,4)){var p=b.yf();l=p&&_.z(p,3)||""}p=_.R(k,2,!1);var q=k.Wa();_.JJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.hj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
UL.prototype.V=function(a,b){var c=!0;a=_.yb(a,_.Uk,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Nq();c=c&&Zwc(e,d)}return c};UL.prototype.ha=function(a,b){var c=!0;a=_.yb(a,_.Uk,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Fz();c=c&&Zwc(e,d)}return c};var Zwc=function(a,b){if(null!=_.z(b,2))switch(_.z(b,1)){case 1:return a<=_.z(b,2);case 2:return a<_.z(b,2);case 3:return a==_.z(b,2);case 4:return a>_.z(b,2);case 5:return a>=_.z(b,2);default:return!1}return!0};
_.g=UL.prototype;_.g.IIb=function(a,b){var c=a.Qh();a=_.TJ(a);return null==c||c==!!b.Qh()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.EIb=function(a,b){return null==_.Q(a,10)||_.Q(a,10)==!!b.oB()};_.g.uIb=function(a,b){return null==_.Q(a,11)||_.Q(a,11)==!!_.Q(b,6)};_.g.xIb=function(a,b){a=_.jl(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Wa()){var d="root"==c.Wa()&&this.rootId||c.Wa();d=b.vk().includes(d);if(_.R(c,2,!1)?d:!d)return!1}return!0};
_.g.wIb=function(a,b){a=_.yb(a,_.Cf,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Wa()){var d=1==b.Bp();if(_.R(c,2,!1)?d:!d)return!1}return!0};_.g.BIb=function(a,b){return null==_.Q(a,16)||(_.Q(a,16)?null!=b.Oy():!0)};_.g.sIb=function(a,b){var c=_.Q(a,17);a=_.TJ(a);return null==c||c==!!b.kJ()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.vIb=function(a,b){b=Anc(b);return null==_.Q(a,19)||_.Q(a,19)==!!_.wk(b)};
_.g.CIb=function(a,b){a=_.yb(a,_.SJ,25);if(0==a.length)return!0;var c=new Set(_.re(b,56));return a.every(function(d){return c.has(d.Wa())})};_.g.DIb=function(a,b){if(0==a.lA().length)return!0;if(0==b.lA().length)return!1;var c=new Set(b.lA().map(function(d){return d.$R()}));return a.lA().some(function(d){return c.has(d.$R())})};_.g.FIb=function(a,b){a=_.re(a,33);return!a.length||a.includes(b.uc()||"")};_.g.tIb=function(a,b){a=_.yb(a,_.Zk,37);if(0==a.length)return!0;var c=new Set(_.re(b,50));return a.every(function(d){return c.has(d.Wa())})};
_.g.HIb=function(a,b){return _.z(a,41)?(b=_.y(b,_.NJ,86),null!=b&&_.z(a,41)==_.z(b,3)):!0};_.g.GIb=function(a,b){if(_.re(a,40).length){if(b=_.y(b,_.NJ,86)){var c=new Set(_.re(b,2));return _.re(a,40).some(function(d){return c.has(d)})}return!1}return!0};_.g.pIb=function(a,b){var c=_.TJ(a);return 1==c?(b=_.Q(b,31),!!_.jl(a).length||!!_.yb(a,_.Rk,35).length||1==_.Q(a,18)||_.jJ(a)||_.kJ(a)||_.lJ(a)||!!a.Xq()||null==b||b):2==c?!!b.uc():!0};
_.g.zIb=function(a,b){return _.jJ(a)?!_.dj(b,100)||b.Qh()?!1:_.R(a,74,!1)?!!_.Q(_.Dk(b),4):!!_.Q(_.Dk(b),3):!0};_.g.yIb=function(a,b){return _.kJ(a)?!!_.Ek(b).length&&!b.Qh():!0};_.g.qIb=function(a,b){return _.lJ(a)?!!_.Fk(b).length&&!b.Qh():!0};_.g.AIb=function(a,b){return _.dj(a,50)?_.R(a,50,!1)?_.dj(b,101)&&0!==_.z(b,101):!_.dj(b,101):!0};_.g.JIb=function(a,b){a=a.Xq();return!a||_.re(b,120).includes(a)};
_.g.rIb=function(a,b){b=_.y(b,_.LJ,138);return null==_.Q(a,65)||null==b?!0:_.Q(a,65)==(2==_.z(b,1))};var VL=function(a,b,c,d){d=void 0===d?5E3:d;SL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.K(VL,SL);_.g=VL.prototype;
_.g.XE=function(a){var b=this,c=SL.prototype.XE.call(this,a);if(5==c)return c;c=_.jl(a);var d=c.every(function(e){var f=e.Wa();return(null!=b.Dd.get(f)||b.teamDriveId==f)&&!_.R(e,2,!1)});if(0<c.length&&d)return 1;a=_.re(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.zs=function(a){return SL.prototype.zs.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!zL(a.getItem())};_.g.gO=function(){return!1};_.g.jd=function(){var a=new _.Af;_.ll(a,[this.teamDriveId]);_.ml(a,2);return a};
_.g.pN=function(){return null};_.g.uc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var $wc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.Af;_.x(a,48,!0);b=new _.vd;_.ud(b,11);_.td(b,2);_.Bf(a,b);this.ma=BL(this.W,a,!0)};
$wc.prototype.add=function(a){a instanceof TL?this.H=a:a instanceof Swc?this.O=a:a instanceof RL?(this.log("Adding new cache hint for "+gL(this.W,a.jd(),2)),this.ha.push(a)):a instanceof VL&&this.V.push(a)};
$wc.prototype.remove=function(a){var b=this;if(a instanceof TL)this.H&&(QL(this.H,!1),this.H=null);else if(a instanceof Swc)this.O&&(QL(this.O,!1),this.O=null);else if(a instanceof RL){var c=_.ma(this.ha,function(d){return b.W.equals(d.jd(),a.jd())});0<=c&&(QL(this.ha[c],!1),_.wa(this.ha,c))}else a instanceof VL&&(c=_.ma(this.V,function(d){return b.W.equals(d.jd(),a.jd())}),0<=c&&(QL(this.V[c],!1),_.wa(this.V,c)))};
var axc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.Ca(b,_.Ba(a.ha));_.Ca(b,_.Ba(a.V));return b},bxc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.jd().clone(),_.vb(c,32),_.mj(c,26),!_.uj(a.ma,c)):!0})};$wc.prototype.SW=function(){return _.Ba(this.V)};var cxc=function(a,b){return _.sg(a.V,function(c){return c.uc()===b})},dxc=function(a,b){return bxc(a).find(function(c){return a.W.equals(c.jd(),BL(a.W,b,!0))})};
$wc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var exc=function(a,b){_.gi.call(this,"tb");this.ids=a;this.error=b};_.K(exc,_.gi);exc.prototype.getError=function(){return this.error};exc.prototype.H=function(){return this.ids};var fxc=function(a){_.gi.call(this,"ub");this.people=a};_.K(fxc,_.gi);fxc.prototype.getPeople=function(){return this.people};var gxc=function(a){_.gi.call(this,"vb");this.people=a};_.K(gxc,_.gi);
gxc.prototype.getPeople=function(){return this.people};var hxc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Pe=c;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0)};hxc.prototype.We=function(){return this.Pe};
var ixc=function(a){return 0===a.Pe?1:2===a.Pe||(1===a.Pe||4===a.Pe)&&(a.person.wq()||a.O)?3:2},jxc=function(a,b,c){if(_.z(b,1)!==_.z(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=ixc(a),e=a.We();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=zwc(b.clone(),a.getEmail(b)),e=!_.uj(a.person,b),a.person=b,a.Pe=c,e||d!==ixc(a);if(4===c)return a.Pe=c,_.x(a.person,6,_.z(b,6)),d!==ixc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(zwc(a.person,a.getEmail(b)),!0):!1};
hxc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var lxc=function(a,b,c,d){var e;_.pi.call(this);var f=this;this.O=a;this.V=b;this.W=c;this.ka=d;this.H=[];this.ha=(null===(e=_.IJ(a))||void 0===e?0:_.R(e,20,!1))?450:50;this.ma=new _.kI(function(){return kxc(f)},100,this)};_.K(lxc,_.pi);lxc.prototype.nh=function(a){a&&_.mI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.oe())};
var kxc=function(a){a.ka.then(function(){for(;a.H.length;){var b=a.H.splice(0,a.ha);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};lxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Qe;var e=new _.tJ;e=_.jj(e,1,a);return d.call(c,e)}).then(function(c){c=_.yb(c,LL,1);b.dispatchEvent(new fxc(c))},function(c){c=_.xd(c);b.dispatchEvent(new exc(a,c))})};
lxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var oxc=function(a,b,c,d,e){_.pi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Oc=new _.nf(this);this.Ja(this.Oc);this.ka=b;this.ha=d;this.ta=_.wj(_.y(a,Jqc,85)||new Jqc,1,864E5);this.W=new lxc(a,b,c,e);this.ma=new _.BD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:dL(h,106015);if(k){h=_.y(_.hK(k),prc,11);if(!h){h=new prc;var l=_.hK(k);_.G(l,11,h)}h=_.x(h,1,f.H.size);_.x(h,2,f.O.size);k.Bj()}},500,this);this.Oc.listen(this.W,"ub",function(h){h=h.getPeople();mxc(f,
h,1);f.ma.oe()});this.Oc.listen(this.W,"tb",function(h){nxc(f,h)})};_.K(oxc,_.pi);oxc.prototype.get=function(a){var b=this.H.get(a);return b?(pxc(this,b)&&qxc(this,a),b):null};var qxc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.nh(b);var c=new _.bn;a.V.set(b,c);return c.promise};oxc.prototype.Sb=function(a){var b=this;return rxc(this,a)?Promise.resolve(this.H.get(a)):qxc(this,a).then(function(){return b.H.get(a)})};
oxc.prototype.lc=function(){return 0===this.H.size};oxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var sxc=function(a){return[].concat(_.fc(a.H.values())).filter(function(b){return 3===ixc(b)&&4!==b.We()}).map(function(b){return b.person.clone()})},txc=function(a,b){return(a=a.H.get(b))?[].concat(_.fc(a.H)):[]},uxc=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(_.fc(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},mxc=function(a,b,c){if(![1,2].includes(c))throw Error("Bf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(wwc)[c]+".")),vxc(a,b,c))},xxc=function(a,b,c,d){0!==b.length&&wxc(a,b,c,void 0===d?0:d)},rxc=function(a,b){b=a.H.get(b);return!(!b||3!==ixc(b)||pxc(a,b))},wxc=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=_.z(f,1),k=a.H.get(h);if(k)jxc(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&&2!==l&&qxc(k,_.z(f,1));k.H.set(_.z(f,1),new hxc(f,p,l))}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},pxc=
function(a,b){switch(b.We()){case 1:case 2:return null==_.z(b.person.clone(),5)||Date.now()-Number(_.z(b.person.clone(),5))>a.ta;case 4:return 1E3<Date.now()-Number(_.z(b.person.clone(),6));default:return!0}};oxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var nxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():ywc(new LL,c)});vxc(a,b,4)},vxc=function(a,b,c){for(var d=Date.now(),e=_.m(b),f=e.next();!f.done;f=e.next()){var h=f.value;f=_.z(h,1);1===c?_.x(h,5,d):4===c&&_.x(h,6,d);if(h=a.V.get(f))h.resolve(),a.V.delete(f)}wxc(a,b,void 0,c)&&a.dispatchEvent(new gxc(b))},yxc=function(a,b,c,d,e){_.pi.call(this);var f=this;this.Oc=new _.nf(this);this.Ja(this.Oc);this.H=new oxc(a,b,c,d,e);this.O=_.IJ(a)||new _.$hc;this.Oc.listen(this.H,
"vb",function(h){return f.dispatchEvent(h)})};_.K(yxc,_.pi);yxc.prototype.GP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=zxc(this,[c]).map(function(e){return Axc(b,e)});xxc(this.H,d,a.H.getId(),this.We(_.z(c,82)))}a.O&&uxc(this.H,a.id,Bxc(this,a))};yxc.prototype.We=function(a){return _.ogc.get(a)||0};
var Bxc=function(a,b){var c=Cxc(a,b.O),d=Cxc(a,b.H);return c.filter(function(e){return!d.includes(e)})},Cxc=function(a,b){return b?Dxc(a,[b.getItem()]):[]},Fxc=function(a,b){b=b.getUser();xxc(a.H,[Axc(a,b)],"ACCOUNT");Exc(a,b)},Hxc=function(a,b){var c=_.yb(b,_.aK,2).map(function(d){var e=_.y(d,_.lk,9,1);return a.H.Sb(LK(e)).then(function(){return void Gxc(a,[e])})});return Promise.all(c).then(function(){return b})},Ixc=function(a,b){Gxc(a,zxc(a,b))},Gxc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,LK(c)&&Exc(a,c)},Jxc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,LK(f)&&(d.add(LK(f)),xxc(a.H,[Axc(a,f)],c));return Promise.all([].concat(_.fc(d)).map(function(h){return a.H.Sb(h)})).then(function(){return Gxc(a,b)})},Kxc=function(a,b){return Dxc(a,[b]).some(function(c){return!rxc(a.H,c)})},Dxc=function(a,b){var c=new Set;a=zxc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=LK(b.value))&&c.add(b);return[].concat(_.fc(c))},zxc=function(a,
b){return b.map(function(c){var d=c.Aw();d=d?[].concat(_.fc(d.bS()),_.fc(_.yb(d,_.lk,3))):[];var e=c.yf();e=(e=e&&_.we(e))?zxc(a,[e]):[];return[].concat(_.fc(_.Bk(c)),[c.Dm(),c.Xr(),c.oq(),c.CD()],_.fc(d),_.fc(e))}).flat().filter(function(c){return c&&!!LK(c)})};yxc.prototype.Hd=function(a){return txc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var Lxc=function(a){return Cwc(new Bwc,sxc(a.H))},Mxc=function(a,b){return b.map(function(c){c=c.clone();var d=zxc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.vb(e,3),_.vb(e,8),_.vb(e,5);return c})},Oxc=function(a,b){return b.some(function(c){return Nxc(a,c)})},Nxc=function(a,b){return zxc(a,[b]).some(function(c){return _.dj(c,3)||c.wq()||_.dj(c,5)})},Exc=function(a,b){var c=a.H.get(LK(b));if(c){a=c.person.clone();var d=_.Dhc(b.$c(a.getName()),a.getEmail());c=ixc(c);_.x(d,16,
c);(a=_.y(a,xwc,4))&&b.On(a.getUrl())}},Axc=function(a,b){var c=LK(b);c=zwc(ywc(new LL,c).$c(b.getName()),b.getEmail());var d=new xwc;d=_.x(d,1,_.z(b,5));c=_.G(c,4,d);_.R(a.O,9,!1)&&(_.vb(b,3),_.vb(b,8),_.vb(b,5));return c},Pxc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};Pxc.prototype.Vf=function(){return this.suggestionSessionId};Pxc.prototype.iCa=function(){return this.O};Pxc.prototype.lc=function(){return this.H};
var Qxc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},Rxc=function(a,b){a=Qxc(a);b=Qxc(b);return!(!a||!b||a!==b)},Sxc=function(a){return a.qc()+"_"+Qxc(a.getName())},Txc=function(a,b){var c=_.re(a,1).map(function(d,e){return b[Number(e)].value.g7a.promise});return Promise.allSettled(c).then(function(d){return _.re(a,1).map(function(e,f){e=e.toString();var h=new vwc;e=_.x(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Dc(1):(e.Dc(3),e.Re(f.reason.tg));return e})})},WL=function(a,
b){_.N.call(this);this.O=a;this.request=b;this.Xy=new Set;this.status=6;this.W=new Map;this.Pe=0};_.K(WL,_.N);_.g=WL.prototype;_.g.Zh=function(a){var b=this;this.Xy.add(a);return this.resize().then(function(){return b.VO(a)})};_.g.dk=function(a){this.Xy.delete(a);0===this.Xy.size&&this.dispose()};_.g.We=function(){return this.Pe};_.g.ti=function(a){this.Pe=a};
_.g.JD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.qw(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.IY():_.Oh([])};_.g.IY=function(){for(var a=[],b=_.m(this.Xy.values()),c=b.next();!c.done;c=b.next())a.push(this.VO(c.value));return _.Qh(a)};
_.g.HY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Xy.values()),e=d.next();!e.done;c={tsa:c.tsa},e=d.next())c.tsa=e.value,b.push(this.O.then(function(f){return function(h){return void h.HY(f.tsa,a)}}(c)));return _.Qh(b)};_.g.KA=function(){for(var a=this,b=[],c={},d=_.m(this.Xy.values()),e=d.next();!e.done;c={usa:c.usa},e=d.next())c.usa=e.value,b.push(this.O.then(function(f){return function(h){return void h.KA(f.usa)}}(c)));return _.Qh(b).then(function(){a.ti(0===a.We()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Xy.forEach(function(d){d=b.Yla(d);c=Math.max(c,d.xi?d.xi()||0:0)});a.Dga(c)})};var Uxc=function(a,b){return b?a.W.get(a.zla(b))||null:null};_.g=WL.prototype;_.g.fG=function(a,b){var c=Uxc(this,a);b=Ruc(c,b);this.W.set(this.zla(a),b)};_.g.zla=function(a){return a};_.g.hPa=function(){return[]};_.g.VO=function(a){var b=this;return this.O.then(function(c){return void c.VO(a,b.lk())})};_.g.removeItem=function(){};
var XL=function(a,b){_.gi.call(this,"Ab");this.error=a;this.retryCount=b};_.K(XL,_.gi);var YL=function(a,b){_.pi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.K(YL,_.pi);var Vxc=function(a){return!a.O||""!==a.pageToken};YL.prototype.nh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&Vxc(this)?Wxc(this):_.Oh([])};
var Wxc=function(a){a.O=!0;a.H=!0;var b=a.Eja(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return Xxc(a,c)},function(c){return a.handleError(c)})},Xxc=function(a,b){a.H=!1;a.pageToken=a.Rla(b);b=a.dla(b);b.forEach(function(c){return a.data.push(c)});a.k7(b);return a.data.length<a.limit&&Vxc(a)?_.Qh([_.Oh(b),Wxc(a)]).then(function(c){return c[0].concat(c[1])}):_.Oh(b)};
YL.prototype.handleError=function(a){this.H=!1;a=_.vI(a);var b=new XL(a);this.iPa(b);this.dispatchEvent(b);return _.Ph(a)};YL.prototype.k7=function(){};YL.prototype.iPa=function(){};var Yxc=function(a,b,c){YL.call(this,c,function(d){return a.then(function(e){return e.Qe(d)}).then(null,function(e){KK(e)})});this.V=b};_.K(Yxc,YL);_.g=Yxc.prototype;_.g.Eja=function(a,b,c){a=a.clone();a.cj(b);return new _.Xgc(a,c)};_.g.Rla=function(a){return a.pageToken||""};_.g.dla=function(a){return a.response.H()};
_.g.k7=function(a){this.V.JD(a,!1,1)};_.g.iPa=function(a){this.V.PB(this.request,a)};var Zxc=function(a,b,c,d){WL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.K(Zxc,WL);_.g=Zxc.prototype;_.g.refresh=function(){this.KA();this.H=new Yxc(this.ha,this.V,this.request);return this.H.nh(this.request.xi()||100)};_.g.Hp=function(a){return this.data.find(function(b){return Rxc(b.getName(),a)})};
_.g.Dga=function(a){this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};_.g.lk=function(){var a=this,b=uwc((new KL).Dc(this.status),this.data.filter(function(c){return a.V.rFa(c)}).map(function(c){return c.clone()}));return new _.nK(b,void 0,void 0,this.We())};_.g.JD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return WL.prototype.JD.call(this,a,b,c)};
_.g.qw=function(a,b){b=void 0===b?1:b;if(!znc(Uxc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return Rxc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.fG(a.getName(),b);return!0};_.g.removeItem=function(a){_.za(this.data,function(b){return Rxc(b.getName(),a)})&&(this.W.delete(this.zla(a)),this.IY())};_.g.zla=function(a){return Qxc(a)};_.g.fG=function(a,b){this.Hp(a)&&WL.prototype.fG.call(this,a,b)};
_.g.hPa=function(a){var b=this;return a instanceof _.zJ&&a.qc()===this.request.qc()?a.uW().map(function(c){return b.Hp(c.Jm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var ZL=function(){this.H=new Map};ZL.prototype.Zh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Hja(b),this.H.set(c,d));d.Zh(a);return e};var $xc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.Yya(c),a.H.set(d,e));e.Zh(b);return f};
ZL.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 ayc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.dk(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},byc=function(a,b){return a.H.get(b)};ZL.prototype.JD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.rFa(f)});this.H.forEach(function(f){f.JD(e,b,c)})};ZL.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var cyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.hPa(b)});return[].concat.apply([],_.fc(a))};ZL.prototype.fG=function(a,b){this.H.forEach(function(c){c.fG(a,b)})};ZL.prototype.rFa=function(){return!0};ZL.prototype.PB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.HY(b)};ZL.prototype.I3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Hja(b),f.ti(c),this.H.set(e,f),this.JD(a,d))};
var dyc=function(){this.H=new Set;this.V=0;this.O=[]},eyc=function(a,b){a.H.add(b)},fyc=function(a,b){var c;if(c=b instanceof _.Ak)c=b.Bw(),c=!!(b.Qh()&&c&&c<=Math.max.apply(Math,_.fc([a.V].concat(_.fc(a.O)))));if(c)return!0;b=b instanceof _.Ak?b.getId():b;return a.H.has(b)},gyc=function(a,b){return _.za(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};dyc.prototype.e$=function(a){var b=this;return a.filter(function(c){return!fyc(b,c)})};
var hyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new dyc};_.K(hyc,ZL);var iyc=function(a,b){eyc(a.O,Sxc(b));(a=byc(a,b.qc()))&&a.IY()};_.g=hyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.Hja=function(a){return new Zxc(this.V,this.W,this,a)};_.g.Yya=function(a){return new Zxc(this.V,this.W,this,a)};_.g.Co=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=byc(this,b.getId()))&&b.refresh()};_.g.rFa=function(a){return!fyc(this.O,Sxc(a))};
var jyc=function(a){var b=new _.dI;b.Nb(a);return b},kyc=function(){_.pi.call(this);this.H=Date.now()};_.K(kyc,_.pi);kyc.prototype.IF=function(){this.H=Date.now();this.dispatchEvent("Bb")};
var lyc=function(a,b){this.O=a;this.H=b},myc=function(a,b){b=_.VWb(b);var c=new Yxc(a.O,a.H,b);new Promise(function(d,e){return c.nh(100).then(d,e)})},nyc=function(){this.Dd={}},$L=function(a,b){oyc(a,"subscribed");b&&oyc(a,b);return a.Dd[b||"subscribed"].ee.promise},oyc=function(a,b){a.Dd[b]||(a.Dd[b]={count:0,yS:[],g5a:[],ee:_.Rh()});a.Dd[b].count++},aM=function(a,b){b&&!pyc(a,b)||pyc(a,"subscribed")},pyc=function(a,b){if(!a.Dd[b])return!1;a.Dd[b].count--;0===a.Dd[b].count&&(a.Dd[b].ee.resolve({items:a.Dd[b].yS,
rPb:a.Dd[b].g5a}),_.bb(a.Dd,b));return!0};nyc.prototype.Co=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.uc();f&&f===e.qc()&&c.Dd[f]&&c.Dd[f].g5a.push(e);c.Dd[d]&&c.Dd[d].yS.push(e)})};var qyc=function(a,b,c){YL.call(this,a,c);this.V=b};_.K(qyc,YL);qyc.prototype.Eja=function(a,b){return a.clone().cj(b)};qyc.prototype.Rla=function(){return""};qyc.prototype.dla=function(a){return[a]};qyc.prototype.k7=function(a){this.V(a)};
var ryc=function(a,b,c,d){WL.call(this,a,d.clone());this.ka=b;this.H=this.V=null;this.ha=c};_.K(ryc,WL);ryc.prototype.refresh=function(){var a=this;this.KA();this.H=new qyc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Qe(b)})});return this.H.nh(this.request.xi()||0)};ryc.prototype.Dga=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};
ryc.prototype.lk=function(){if(this.V)return this.V;var a=new xL;a.Dc(this.status);return a};ryc.prototype.qw=function(a){this.V=a;return!0};var syc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.K(syc,ZL);_.g=syc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Hja=function(a){var b=this;return new ryc(this.O,this.W,function(c){b.JD(c,!1)},a)};_.g.Yya=function(){throw Error("Cf");};
_.g.I3=function(a,b,c,d){var e=a[0].Zk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.tq()}).join(", "));ZL.prototype.I3.call(this,a,b,c,d)};var tyc=function(a,b,c,d){_.pi.call(this);this.request=a;this.Ba=b;this.ta=c;this.wa=d;this.ma=0;this.ee=null;this.O=new Set};_.K(tyc,_.pi);
tyc.prototype.nh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Rh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={Ksa:b.Ksa,Hfa:b.Hfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Hfa=d;b.Ksa=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Qe(f.Ksa)}}(b)).then(function(f){return function(h){var k=f.Hfa;a.V(h);uyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.Hfa,h)}}(b))}return this.ee.promise};
var uyc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("zb"),a.ee.resolve()):a.dispatchEvent("wb")};tyc.prototype.handleError=function(a,b){b=_.xd(b);var c=b.tg;5===c.gB()||4===c.Wj()?(this.wa.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),uyc(this,a)):(a=new XL(c,_.wj(this.ta.Tf(),1,1)),this.dispatchEvent(a),this.ee.reject(b))};var vyc=function(a,b,c,d,e){tyc.call(this,a.clone(),c,d,e);this.H=b};_.K(vyc,tyc);
vyc.prototype.W=function(a){for(var b=new Map,c=_.m(_.re(a,1)),d=c.next();!d.done;d=c.next()){d=d.value;var e=_.aWb(a.clone(),[d]);b.set(d,e)}return b};vyc.prototype.V=function(a){var b=[];a=_.m(a.EU().values());for(var c=a.next();!c.done;c=a.next())b.push(c.value);this.H(b,!0)};vyc.prototype.ha=function(){this.H([],!1)};vyc.prototype.ka=function(a){this.H([jyc(a)],!0)};var wyc=function(a,b,c,d,e,f){WL.call(this,a,f.clone());this.ma=b;this.V=c;this.ka=d;this.ha=e;this.Sk={};this.H=null};_.K(wyc,WL);
wyc.prototype.refresh=function(){this.H=new vyc(this.request,this.ha,this.ma,this.V,this.ka);return this.H.nh()};wyc.prototype.Dga=function(){this.H||this.refresh()};wyc.prototype.lk=function(){var a=new _.lK;a.Dc(this.status);_.Ta(this.Sk,function(b,c){a.EU().set(c,b||new _.dI)});a.ti(this.We());return a};wyc.prototype.qw=function(a){var b=a.getId();if(_.uj(a,jyc(a.getId()))){if(this.Sk[b])return delete this.Sk[b],!0}else if(0<=_.re(this.request,1).indexOf(b))return this.Sk[b]=a,!0;return!1};
var xyc=function(a,b){a=a.getState();return null==a||b.getState()==a},yyc=function(a,b,c){YL.call(this,a,c);this.V=b};_.K(yyc,YL);yyc.prototype.Eja=function(a,b,c){a=a.clone();a.cj(b);return new _.jhc(a,c)};yyc.prototype.Rla=function(a){return a.pageToken||""};yyc.prototype.dla=function(a){return a.response.Zk()};yyc.prototype.k7=function(a){this.V(a)};var zyc=function(a){this.H=_.Icc(a,{numeric:!0})};
zyc.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=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};zyc.prototype.V=function(a,b,c){var d=_.z(b,4),e=_.z(c,4),f;d!==e?f=_.Ha(d,e)*(a?1:-1):f=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};var Ayc=function(a,b,c,d,e){WL.call(this,a,e.clone());this.ha=b;this.Sk=[];this.H=null;this.V=d;a=new zyc(c);b=(c=this.request.MB())?c.getType():0;c=c?c.Uf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.K(Ayc,WL);Ayc.prototype.refresh=function(){var a=this;this.KA();this.H=new yyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.nh(this.request.xi()||0)};Ayc.prototype.Dga=function(a){1===this.status||this.H&&a===this.request.xi()||(this.request.cj(a),this.H?this.H.nh(a):this.refresh())};Ayc.prototype.lk=function(){var a=new ML;a.Dc(this.status);Ewc(a,this.Sk.map(function(b){return b.clone()}));return new _.qK(a,void 0,1!==this.status&&Vxc(this.H),this.We())};
Ayc.prototype.qw=function(a){var b=_.za(this.Sk,function(c){return c.getId()===a.getId()});return a&&xyc(this.request,a)&&!_.uj(a,jyc(a.getId()))?Ymc(this.Sk,a,this.ka):b};var Byc=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d;this.logName="drive.ds.sync.cache.WorkspaceCacheManager"};_.K(Byc,ZL);_.g=Byc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.Hja=function(a){var b=this;return new Ayc(this.V,this.ha,YK(_.fI(this.O)),function(c){return void b.JD(c,!1)},a)};_.g.Yya=function(a){var b=this;return new wyc(this.V,this.ha,this.O,this.W,function(c,d){return b.JD(c,d)},a)};_.g.I3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));ZL.prototype.I3.call(this,a,b,c,d)};
var Cyc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();OK(a)&&(c=(c=a.yf())?_.z(c,3):"");PK(a)&&(a.Mi()&&(c+="+"+String(a.Mi())),a.xj()&&(c+="+shared"));return _.zfa(c,b?"32":"16")},Dyc=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("&")},Eyc=function(a,b){var c=_.Q(a,44),d=a.yf();if(d){if(1!==_.ye(d))return null;c=(c=_.we(d))?_.Q(c,44):!0}if(!c)return null;c={};d=a.getId();OK(a)&&(d=snc(a));
d=[_.C(b,65,"https://lh3.google.com"),"u",_.wI(_.fI(b)),"d",d].join("/");_.R(b,89,!1)&&_.dj(a,140)&&(c.resourcekey=_.Gk(a));return d=Dyc(d+"={size}",c)},Fyc=function(a){this.H=a},Hyc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=Cyc(b,_.R(a.H,75,!1));_.x(b,21,d)}c.includes(18)&&_.Ohc(b,hoc(b,a.H));c.includes(19)&&(d=Eyc(b,a.H),_.x(b,20,d));Gyc(a,b,c);if(OK(b)){if(d=(d=b.yf())&&_.we(d)){if(c.includes(20)&&c.includes(3)){var e=Cyc(d,_.R(a.H,75,!1));_.x(d,21,e)}c.includes(18)&&_.Ohc(d,hoc(d,
a.H));c.includes(19)&&(e=Eyc(d,a.H),_.x(d,20,e));Gyc(a,d,c)}_.x(b,44,!!b.Gz())}},Gyc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!PK(b)&&!OK(b)&&!_.ee(e)&&(!b.c8()||2!==b.Bp()),d&&_.x(b,40,e),e&&c&&(a=a.H,d=b.getId(),OK(b)&&(d=snc(b)),c=new _.Si(_.C(a,16,"")+"/uc"),_.Xi(c,"id",d),_.Xi(c,"authuser",_.wI(_.fI(a))),_.Xi(c,"export","download"),_.R(a,89,!1)&&_.dj(b,140)&&_.Xi(c,"resourcekey",_.Gk(b)),_.x(b,41,c.toString())))}},Iyc=function(a,b){this.Rja="";
this.startTime=b||new Date;this.H=a;this.Uaa=joc(a)};Iyc.prototype.clone=function(){return new Iyc(this.H,this.startTime)};var Jyc=function(){this.H=null;this.yZ=[]},Kyc=function(a){return _.zf(a.yZ,function(b){return _.eb(b)})};Jyc.prototype.LN=function(){return this.H};
Jyc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new Jwc;e.V=Iwc(d.Uaa);var f=_.hh().substring(0,8);d=joc(f);f=(new gwc).Nb(f);f=_.x(f,2,d);b=_.x(f,3,b).Bi(c);this.yZ.push(b);e.O=Iwc(d);e.H=Gwc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Kna;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Hj(d,1,1);var k=d.H;gpc(k,f);gpc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.Hj(d,2,1),k=d.H,gpc(k,f),gpc(k,h));f=e.W;null!=f&&(_.Hj(d,3,5),gpc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Hj(d,4,1),h=d.H,gpc(h,f),gpc(h,e));e=_.Pna(d);a["X-Google-DapperTraceInfo"]=_.n.btoa(c.call(b,null,e))}}};var Lyc=function(){this.Fb=[];this.O=this.H=0};Lyc.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Fb,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 Myc=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Fb,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},Nyc=function(a){this.key=a;this.H=new _.lgc;this.O=new _.jgc(new _.lgc,_.bna(a))};Nyc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=hsc(b);c=Oyc(this,a);return b.concat(c,Pyc(this,b,a,!0))};
var Qyc=function(a,b){var c=Pyc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=Oyc(a,c);if(b!==a)throw Error("Df");return c},Oyc=function(a,b){a=_.kgc(a.O,_.ugc(b));return hsc(a)},Pyc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new Lyc;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Fb,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=_.ugc(c.substring(8192*
e,8192*(e+1))),Myc(b,a),d+=hsc(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;Myc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("Ef");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=Ryc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=Ryc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=Ryc(d,e++),k=Ryc(d,e++),l=Ryc(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=Ryc(d,e++),k=Ryc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},Ryc=function(a,b){return a[Math.floor(b/8192)][b%8192]},Syc=function(a,b,c){this.data=a;this.d2a=b;this.H=c;this.isEncrypted=!1};Syc.prototype.getData=function(){return this.data};
Syc.prototype.Vm=function(){return this.d2a};var Tyc=function(a,b,c,d){this.O=a;this.H=_.Rh();this.qp=!1;this.V=_.C(b,7,"");this.W=_.wj(_.ZK(b),6,2E7);this.iF=_.mI(b);this.ha=_.wj(_.ZK(b),12,0);this.ka=c;this.Xf=d||null};Tyc.prototype.initialize=function(){var a=this;this.qp||(this.qp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.Zh(this.H.promise)};
Tyc.prototype.EB=function(a){if(a instanceof _.UB)return 0;if(a instanceof IL)return 1;if(a instanceof ysc)return 5;if(a instanceof vL)return 3;if(a instanceof Bwc)return 6;throw new _.Hc("Unsupported dataShard in getDataType");};var Uyc=function(a){if(0==a)return _.UB;if(1==a)return IL;if(5==a)return ysc;if(3==a)return vL;if(6==a)return Bwc;throw new _.Hc("Unsupported dataType:"+a+" in getDataTypeCtor");};Tyc.prototype.Wo=function(a){if(a instanceof vL)return a.Wo()};
Tyc.prototype.Vm=function(a){if(a instanceof vL)return a.Bd().length};Tyc.prototype.Kv=function(a){if(a instanceof vL)return a=a.Kv(),null!=a?a:void 0};
var Zyc=function(a,b,c,d){if(0==c.length)return _.Oh();for(var e=a.EB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.EB(h.value);var k=a.Wo(c[0]),l=0;3==e&&Vyc(a,c);var p=!!b;return Wyc(a,c).then(function(q){if(p){var r=a.Xf?a.Xf.H(106023,d):null;l=q.reduce(function(w,A){(A=A.Vm())&&(w+=A);return w},0);var v=Xyc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Ph(Error("Ff"));w=_.m(w.entries());for(var A=w.next();!A.done;A=w.next()){var B=_.m(A.value);A=
B.next().value;B=B.next().value;A=q[A];A.data=B;A.isEncrypted=!0}return q});r&&(vrc(urc(trc(cL(r),_.iK(_.Pfc,e)),_.iK(_.Mfc,k)),!0),v.then(function(){var w=l;src(cL(r),!0).fw(w);r.Bj()},function(){var w=l;src(cL(r),!1).fw(w);r.Bj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return Yyc(a.O,q,e,k,p,d)})})},Wyc=function(a,b){return new _.Nh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Hc();p.length>a.W?e=!0:f.push(new Syc(p,a.Vm(l),a.Kv(l)))}});if(e){var h=
Error("Gf"),k=new _.Gc;_.tI(k,2);_.II(k,23);_.x(k,21,h.message);_.Do(k);a.ka(k);d(h)}c(f)})},Vyc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.iF||$yc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Wo()){d=[];for(var e=b[c].Bd();e.length>a;){var f=_.ta(e,a-1,a);f=Auc(new vL,f);d.push(f)}Auc(b[c],e);d.length&&_.Ob(_.ta,b,c+1,0).apply(null,d)}},bM=function(a,b,c,d,e,f){var h=_.Rh(),k;_.Sh(a.H.promise.then(function(){return azc(a.O,c,d,e)}).then(function(l){var p=l.map(function(r){return r.data}),
q=new _.Th;if(l[0]&&l[0].B1){if(k=a.Xf?a.Xf.H(106022,f):null)vrc(urc(trc(cL(k),_.iK(_.Pfc,c)),_.iK(_.Mfc,d)),!0),q.nn().then(function(r){var v=k;r=void 0!=r;src(cL(v),r);_.ijc(v)});bzc(a,q,b,p)}else q.callback(p);return _.Oh(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 (Uyc(c))(JSON.parse(r)),q+=a.Vm(r),p.push(r);3==c&&(a.iF||czc(p),dzc(p));k&&cL(k).fw(q)}h.resolve(p)}),function(){k&&k.Bj()}).fj(h.reject,h);return h.promise},
$yc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].EN().length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.Bd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Mhc(f,ezc(_.Bk(f),b,c)),_.Nhc(f,ezc([f.Dm()],b,c)[0]),_.Qhc(f,ezc([f.Xr()],b,c)[0]),_.Uhc(f,ezc([f.oq()],b,c)[0]),_.Xhc(f,ezc([f.CD()],b,c)[0]),f=f.Aw())_.Jhc(f,ezc(f.bS(),b,c)),_.Khc(f,ezc(_.yb(f,_.lk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.lj(a[0],2,h)}},
ezc=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)?_.uj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.lk,f.Nb(e),c.set(e,f),d.push(f))):d.push(f)}return d},czc=function(a){var b=new Map,c=new Map;a[0]&&a[0].EN()&&a[0].EN().forEach(function(h){b.set(h.getId(),h);h=(new _.lk).Nb(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.Bd()||
[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Mhc(f,fzc(_.Bk(f),b,c)),_.Nhc(f,fzc([f.Dm()],b,c)[0]),_.Qhc(f,fzc([f.Xr()],b,c)[0]),_.Uhc(f,fzc([f.oq()],b,c)[0]),_.Xhc(f,fzc([f.CD()],b,c)[0]),f=f.Aw())_.Jhc(f,fzc(f.bS(),b,c)),_.Khc(f,fzc(_.yb(f,_.lk,3),b,c));_.mj(d,2)}}},fzc=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();_.uj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);return d},dzc=
function(a){for(var b={},c=1;c<a.length;b={pfa:b.pfa},c++)if(!a[c].Wo()){for(var d=0,e=c;e<a.length&&!a[e].Wo();e++)d++;e=a[c-1];d=_.ta(a,c,d);b.pfa=e.Bd();d.forEach(function(f){return function(h){_.Ca(f.pfa,h.Bd())}}(b));Auc(e,b.pfa)}},Xyc=function(a,b,c){if(!_.Xfc()&&a.V){var d=new Worker(_.rca(_.Ky(a.V)),void 0),e=new _.Th;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Gd(Error(String(k)))},!1);c=Mwc(new Lwc,
c);d.postMessage({command:"encrypt",data:{request:c.Hc(),key:b}});return e}try{a=[];var f=new Nyc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.Yh(a)}catch(k){h=_.$h(k)}return h},bzc=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(!_.Xfc()&&a.V){var f=new Worker(_.rca(_.Ky(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 Nyc(c);for(c=0;c<d.length;c++)a.push(Qyc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},gzc=/^[\w]+$/,hzc=function(a,b,c){return[a.Eu(),a.clientId,b?"#":cM(a)].join(":")+":"+(c||"")},izc=function(a,b,c){this.global=void 0===c?!1:c;a.match(gzc);this.key=a;this.value=b};izc.prototype.getKey=function(){return this.key};izc.prototype.Wa=function(){return this.value};
var jzc=function(a,b){return{k:hzc(b,a.global,a.key),v:a.value}},kzc=function(a,b){a=hzc(a,b);return puc(a+"A",a+"z")},lzc=function(a,b){this.H=a;this.O=b},mzc=function(a){return a?new lzc(a.versionKey,a.versionChangeTimestamp):null},nzc=function(a,b){return a+":"+b},ozc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.B1=void 0===e?null:e},pzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.B1}},qzc=function(a,b,c,d){a=cM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=(0,_.Ws)(":%02d",c)},rzc=function(a,b,c,d){c=qzc(a,b,void 0===c?0:c,d);a=cM(a)+"_"+b;3===b&&(a+="_"+d);return puc(c,a+":a")},szc=function(a){var b=cM(a)+"_";a=cM(a)+"_A";return puc(b,a)},tzc=function(a){return a?new ozc(a.data,a.index,a.size,a.timestamp,a.e):null},uzc=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=_.Ba(e);_.Ka(this.fields);_.Ga(this.fields);this.H=
f};uzc.prototype.Eu=function(){return this.userId};uzc.prototype.hh=function(){return _.Ba(this.fields)};
var cM=function(a){if(!a.O){var b=new _.SH;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.Aec(b.digest())}return a.O},vzc=function(a){return{versionKey:cM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},wzc=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 uzc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:cM(a)!==d&&(a=null);return a},dM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.N.call(this);var e=this;this.Xf=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.wa=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Pa=a.then(function(f){e.version=f});this.Jb=new _.nf(this);this.Ja(this.Jb)};_.K(dM,_.N);dM.prototype.initialize=function(){return xzc(this)};
var xzc=function(a,b){a.V||(a.V=_.Rh(),a.Pa.then(function(){b?(a.wa=!1,yzc(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)"),_.tdc("GoogleDriveDs",2,a.Fa.bind(a),a.ta.bind(a)).dg(a.Ka.bind(a),a.ta.bind(a)),_.ti(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Hc("Database version error",void 0,_.sI(c)?c:void 0))}));return a.V.promise},yzc=function(a,b){a.H=b;a.Jb.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Jb.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};dM.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.iic(b,c)});_.Ta(_.DI,function(c){var d=_.pgc.get(c);_.qdc(b,c,d?{keyPath:d}:void 0)})};
dM.prototype.ta=function(a){var b;a&&a instanceof _.UH&&"InvalidStateError"==a.getName()&&_.bj.ev?b=Error("Hf"):_.sI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);zzc(this,!1)};dM.prototype.Ka=function(a){this.ka?a.dispose():(yzc(this,a),this.Ja(this.H),this.readOnly||Azc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),zzc(this,!0))};
var zzc=function(a,b){if(a.ma){var c=a.ma,d=_.y(_.hK(c),mrc,5);d||(d=new mrc,c=_.hK(c),_.G(c,5,d));d=_.x(d,1,2);d=_.x(d,2,a.nj().W);d=_.x(d,5,a.nj().ka);b=_.x(d,3,b);b=_.x(b,4,a.Ba);_.x(b,6,a.nj().ma);a.ma.Bj();a.ma=null}};dM.prototype.Ia=function(){this.H||this.If()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("If")))};dM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.wa&&this.H.close())};dM.prototype.If=function(){return this.ka};
var Bzc=function(a){return a.ka?a.O:null};dM.prototype.nj=function(){return this.version};
var eM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.rdc(a,[b],c)}catch(d){return null}},Azc=function(a){var b=_.DI.q0,c=eM(a,b,"readwrite");if(!c)return _.Ph(Error("Jf"));c.objectStore(b).put(vzc(a.nj()));return _.Oh(c.wait()).then(function(){})},Czc=function(a){if(!a.H)return _.Ph(Error("Kf"));if(a.If())return _.Ph(Error(a.O));var b=_.DI.q0,c=eM(a,b,"readwrite");if(!c)return _.Ph(Error("Lf"));b=c.objectStore(b);return _.Oh(b.remove(cM(a.nj())))},
Dzc=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=tzc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("Mf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("Nf")),0;e=d[0].size;if(!e)return b.reject(Error("Of")),0;if(e>d.length)return b.reject(Error("Pf`"+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("Qf`"+e)),0;if(c&&a<c)return b.reject(Error("Rf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},azc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Ph(Error("Sf"));if(a.If())return _.Ph(Error(a.O));var e=rzc(a.nj(),b,0,c),f=_.DI.S6,h=eM(a,f);if(!h)return _.Ph(Error("Tf"));e=h.objectStore(f).getAll(e);var k=_.Rh();e.dg(function(l){l=Dzc(l,k,d);a.readOnly||null==l||Ezc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},Yyc=function(a,b,c,d,e,f){if(a.H){if(a.If())return _.Ph(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Ph(Error("Uf"))}else return _.Ph(Error("Vf"));var h=Date.now(),k=b.length,l=b.map(function(v,w){return{key:qzc(a.nj(),c,w,d),data:new ozc(v.getData(),w,k,h,e),metadata:v}}),p=_.DI.S6;b=eM(a,p,"readwrite");if(!b)return _.Ph(Error("Wf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={Ifa:q.Ifa},r=l.next())r=r.value,q.Ifa=Fzc(a,c,d,r.metadata,f),p.put(pzc(r.data),r.key).then(function(v){return function(){var w=v.Ifa;w&&(src(cL(w),!0),w.Bj())}}(q),function(v){return function(w){var A=
v.Ifa,B=w instanceof _.UH?w.code:_.Tcc;A&&a.W&&(w=src(cL(A),!1),B=_.iK(_.Qfc,B),_.x(w,2,B),A.Bj())}}(q));return _.Oh(b.wait()).then(function(){})},Fzc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=urc(trc(cL(a),_.iK(_.Pfc,b)),_.iK(_.Mfc,c)),f=_.x(b,5,f.Wo(d.H)),vrc(f,d.isEncrypted),void 0!=d.Vm()&&cL(a).fw(d.Vm());return a}return null},Ezc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.If())return _.Ph(Error(a.O));if(3==b&&void 0==c)return _.Ph(Error("Xf"))}else return _.Ph(Error("Yf"));
b=rzc(a.nj(),b,d,c);c=_.DI.S6;a=eM(a,c,"readwrite");if(!a)return _.Ph(Error("Zf"));a.objectStore(c).remove(b);return _.Oh(a.wait()).then(function(){})},Gzc=function(a){if(!a.H)return _.Ph(Error("$f"));if(a.If())return _.Ph(Error(a.O));var b=szc(a.nj()),c=_.DI.S6;a=eM(a,c,"readwrite");if(!a)return _.Ph(Error("ag"));a.objectStore(c).remove(b);return _.Oh(a.wait()).then(function(){})};
dM.prototype.getMetadata=function(a){if(this.H){if(this.If())return _.Ph(Error(this.O));if(a&&0==a.length)return _.Ph(Error("bg"))}else return _.Ph(Error("cg"));var b=this.nj(),c=_.DI.d8,d=eM(this,c);if(!d)return _.Ph(Error("dg"));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(_.Oh(c.get(hzc(b,e.global,e.key))));c=_.Qh(d)}else c=_.Qh([c.getAll(kzc(b,!1)).then(),c.getAll(kzc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return Xmc(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]===cM(b))){h=k[0]!==b.Eu()||k[1]!==String(b.clientId)?void 0:new izc(k[3],h.v,l);break a}}h=void 0}return h})})};
var Hzc=function(a,b){if(a.H){if(a.If())return _.Ph(Error(a.O));if(0==b.length)return _.Ph(Error("eg"))}else return _.Ph(Error("fg"));var c=_.DI.d8,d=eM(a,c,"readwrite");if(!d)return _.Ph(Error("gg"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(jzc(e.value,a.nj())).then());return _.Qh(d).then(function(){})},Izc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.If())return _.Ph(Error(a.O))}else return _.Ph(Error("ig"));var c=a.nj(),d=_.DI.d8;a=eM(a,d,"readwrite");
if(!a)return _.Ph(Error("jg"));d=a.objectStore(d);a=[];a.push(d.remove(kzc(c,!1)).then());b&&a.push(d.remove(kzc(c,!0)).then());return _.Qh(a).then(function(){})},Jzc=function(a){if(!a.H)return _.Ph(Error("kg"));if(a.If())return _.Ph(Error(a.O));var b=nzc(a.nj().Eu(),a.nj().clientId),c=_.DI.aV;a=eM(a,c);if(!a)return _.Ph(Error("lg"));c=a.objectStore(c);return _.Oh(c.get(b)).then(function(d){return mzc(d)})},Kzc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Ph(Error("mg"));if(a.If())return _.Ph(Error(a.O));
var c=a.nj(),d=nzc(c.Eu(),c.clientId);b=new lzc(cM(c),b?Date.now():void 0);c=_.DI.aV;a=eM(a,c,"readwrite");if(!a)return _.Ph(Error("ng"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Oh(a.wait())};dM.prototype.Ll=function(a){var b=this;return this.H?this.If()?_.Ph(Error(this.O)):Jzc(this).then(function(c){var d=cM(b.nj());if(c)if(a){if(!c.O&&d==c.H&&d!=cM(a))return Kzc(b,!0);if(c.O&&d==cM(a))return Kzc(b)}else{if(d!=c.H)return Kzc(b)}else if(!a)return Kzc(b)}):_.Ph(Error("og"))};
var Lzc=function(a){if(!a.H)return _.Ph(Error("pg"));if(a.If())return _.Ph(Error(a.O));var b=a.nj(),c=nzc(b.Eu(),b.clientId);return Jzc(a).then(function(d){if(d){d=_.DI.aV;var e=eM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
dM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.If()?_.Ph(Error(this.O)):Jzc(this).then(function(c){var d=c&&c.H==cM(b.nj());return d&&!a?!1:(c&&d?Lzc(b):_.Oh()).then(function(){return _.Qh([Izc(b,a),Gzc(b),Czc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Ph(Error("qg"))};dM.prototype.close=function(){this.ha("Closing database")};dM.prototype.log=function(a){this.Xf.info("drive.ds.sync.storage.VersionedDb",a)};
var Mzc=function(a){if(1>=a.nj())return!1;var b=a.H.objectStoreNames;return _.Ya(_.DI).every(function(c){return b&&b.contains(c)})},Nzc=function(){var a=_.Rh();_.tdc("GoogleDriveDs").dg(function(b){b?Mzc(b)?a.resolve(b):(b.close(),_.Oh(quc()).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},Ozc=function(a,b,c){var d=_.Rh();a?_.rdc(a,[_.DI.q0],"readonly").objectStore(_.DI.q0).getAll().dg(function(e){e=
_.Ya(e).map(function(f){return wzc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.Eu()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},Pzc=function(a,b,c){var d=_.Rh();Nzc().then(function(e){if(e){var f=_.DI.aV;_.rdc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return mzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.DI.q0,p=_.rdc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
wzc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.Vh(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},Qzc=function(a,b,c){var d=_.Rh(),e=new dM(_.Oh(a),b);xzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},Rzc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=Qzc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Qh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+cM(l)))});d.resolve(k)})},Szc=function(a,b,c){var d=Date.now()-12096E5,e=_.Rh();Nzc().then(function(f){f?(_.Sh(e.promise,function(){f.close()}),Ozc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){Rzc(h,c,f,e)})):e.resolve([])});return e.promise},Tzc=function(a,b,c){var d=_.Rh();Nzc().then(function(e){e?
(_.Sh(d.promise,function(){e.close()}),Ozc(e,a,b).then(function(f){Rzc(f,c,e,d,!0)})):d.resolve([])});return d.promise},Uzc=function(a,b,c,d){if(a.length){var e=_.DI.S6,f=a.shift(),h=qzc(f,3,0,1);try{_.rdc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=tzc(k))&&(!k.B1||k.B1&&d.has(f.V))?b.resolve(f):Uzc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},Vzc=function(a,b,c,d,e,f,h){var k=_.Rh();Nzc().then(function(l){l?(_.Sh(k.promise,function(){l.close()}),
Ozc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=cM(q))&&q.W==c&&q.H>=e&&rnc(d.filter(function(r){return!_.qgc.has(r)}),q.hh(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),Uzc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},Wzc={key:"rid",global:!0},Xzc={key:"ooi",global:!0},Yzc={key:"rtds",global:!1},Zzc={key:"dct",global:!1},$zc={key:"pc",global:!1},aAc=function(a){this.H=new _.Nh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};aAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.If())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Wa():void 0},function(){})})};aAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.If()?Hzc(c,[new izc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};aAc.prototype.Cu=function(){return this.get(Wzc).then(function(a){return a?a:null})};
aAc.prototype.qz=function(a){return this.set(Wzc,a)};var bAc=function(a){return a.get(Xzc).then(function(b){return"boolean"===typeof b?b:null})};aAc.prototype.nz=function(a){return this.set(Xzc,a)};var cAc=function(a){return a.get($zc).then(function(b){return"boolean"===typeof b?b:null})},dAc=function(a){return a.get(Yzc).then(function(b){return Array.isArray(b)?b:null})},eAc=function(a){return a.get(Zzc).then(function(b){return"number"===typeof b?b:null})},fAc=function(){this.aj=[]};_.K(fAc,_.xK);
fAc.prototype.add=function(a,b){var c=a.Yv.kx;return c instanceof _.DJ&&_.z(c.request,12)?_.xK.prototype.add.call(this,a,b):!1};fAc.prototype.hua=function(a){return this.aj.splice(0,Math.min(a,1))};var gAc=function(a,b){this.aj=[];this.H=b};_.K(gAc,_.xK);gAc.prototype.add=function(a,b){return a.Yv.kx instanceof _.DJ?!1:_.xK.prototype.add.call(this,a,b)};
gAc.prototype.hua=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.aj.length&&b.length<a;f++){var h=this.aj[f],k=h.Yv.kx;k instanceof _.WI||k instanceof _.hJ||k instanceof _.yJ?k="app|"+k.Jh():k instanceof _.RI||k instanceof _.SI||k instanceof _.YI||k instanceof _.xI?k="item|"+(k instanceof _.RI?k.qc():k.getId()):k instanceof _.ZI||k instanceof _.iJ?k="item|"+k.qc():k instanceof _.$I||k instanceof _.AJ?k="item|"+k.qc():k instanceof _.pD||k instanceof _.oD?(k=k instanceof _.pD?_.y(k,_.Qo,1).getKey():
k.getKey(),k="pref|"+_.To(k)+"|"+_.So(k)):k=k instanceof _.aJ?"td|"+k.getId():null;var l=h.Yv.kx;if(l instanceof _.UI)l=!!_.Q(l,8);else if(l instanceof _.SI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.Bjb.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++)_.wa(this.aj,c[a]);return b};
var hAc=function(a,b,c,d,e,f,h,k,l){a=a.Tf();h=new _.clc(new _.blc(k,h,d,_.wj(a,32,1073741824),_.wj(a,21,1E3)));k=new _.Akc(_.wj(a,59,2E3),_.wj(a,60,2E4),_.wj(a,61,6));c=new _.ykc(l?l:c,l?void 0:e);e={};e[1]=_.elc(b,d);e[2]=_.flc(b,a,k,c,d);e[3]=_.glc(b,a,k,c,d,"batch");l=_.wj(a,10,50);f=new _.zK(d,b,[_.zkc(c),new _.Ekc(l,_.wj(a,11,100)),new _.yK(l),new _.wK(k,d)],[new gAc(a,f),new fAc,new _.xK],[new _.Nkc(a,k,c.Ij(),d)],"mutation");return e[4]=f,e[5]=_.hlc(h,a,d),e[6]=_.glc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.glc(b,a,k,c,d,"xd4_batch"),e[8]=_.glc(b,a,k,c,d,"xd4_batch_one",1),e},Loc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},iAc=function(a){_.J.call(this,a)};_.K(iAc,_.J);iAc.prototype.Cb=function(){return _.z(this,1)};iAc.prototype.Dc=function(a){return _.x(this,1,a)};jAc=function(a,b){return _.G(a,2,b)};epc=[90,59,75];_.fM=function(a){_.J.call(this,a)};_.K(_.fM,_.J);_.fM.prototype.Cb=function(){return _.z(this,1)};
_.fM.prototype.Dc=function(a){return _.x(this,1,a)};_.fM.prototype.Hf=function(){return _.y(this,_.UB,2)};_.kAc=function(a,b){return _.G(a,2,b)};_.fM.prototype.Yj=function(){return _.z(this,3)};
_.gM=function(a){_.J.call(this,a)};_.K(_.gM,_.J);_.gM.prototype.lZ=function(a){_.G(this,1,a)};_.gM.prototype.Hv=function(){return _.y(this,_.Fy,2)};_.gM.prototype.lP=function(a){_.G(this,2,a)};
_.lAc=function(a){_.J.call(this,a)};_.K(_.lAc,_.J);_.lAc.prototype.mi=function(){return _.y(this,guc,2)};_.lAc.prototype.V=function(a){_.pj(this,5,_.mAc,a)};_.mAc=[5,6];
var nAc;_.oAc=function(a){_.J.call(this,a,-1,nAc)};_.K(_.oAc,_.J);_.oAc.prototype.V=function(a){_.pj(this,6,_.hM,a)};nAc=[3,4,5];_.hM=[6,7];
var pAc=function(a){_.J.call(this,a)};_.K(pAc,_.J);pAc.prototype.getType=function(){return _.z(this,1)};var qAc=function(a){var b=new pAc;return _.x(b,1,a)};pAc.prototype.Ny=function(){return _.z(this,3)};pAc.prototype.oz=function(a){return _.x(this,3,a)};pAc.prototype.Fi=function(){return _.z(this,4)};pAc.prototype.setPosition=function(a){return _.x(this,4,a)};
var sAc=function(a){_.J.call(this,a,-1,rAc)};_.K(sAc,_.J);sAc.prototype.Cb=function(){return _.z(this,1)};sAc.prototype.Dc=function(a){return _.x(this,1,a)};sAc.prototype.Yj=function(){return _.z(this,3)};var rAc=[2];
_.tAc=function(a){_.J.call(this,a)};_.K(_.tAc,_.J);_.tAc.prototype.getId=function(){return _.z(this,1)};_.tAc.prototype.Nb=function(a){return _.x(this,1,a)};_.tAc.prototype.re=function(){return _.y(this,_.Lf,4)};
var vAc=function(a){_.J.call(this,a,-1,uAc)};_.K(vAc,_.J);vAc.prototype.Cb=function(){return _.z(this,1)};vAc.prototype.Dc=function(a){return _.x(this,1,a)};vAc.prototype.Yj=function(){return _.z(this,3)};var uAc=[2];
var wAc=function(a){_.J.call(this,a)};_.K(wAc,_.J);wAc.prototype.Cb=function(){return _.z(this,1)};wAc.prototype.Dc=function(a){return _.x(this,1,a)};wAc.prototype.xr=function(){return _.y(this,_.tL,2)};
var xAc=function(a){_.J.call(this,a)};_.K(xAc,_.J);_.g=xAc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.xr=function(){return _.y(this,_.tL,2)};_.g.Yj=function(){return _.z(this,3)};_.g.Jh=function(){return _.z(this,4)};
_.iM=function(a){_.J.call(this,a)};_.K(_.iM,_.J);_.iM.prototype.getType=function(){return _.z(this,1)};var yAc=function(a){var b=new _.iM;return _.x(b,1,a)},zAc=function(a,b){return _.G(a,2,b)};_.iM.prototype.Ny=function(){return _.z(this,3)};_.iM.prototype.oz=function(a){return _.x(this,3,a)};_.iM.prototype.Fi=function(){return _.z(this,4)};_.iM.prototype.setPosition=function(a){return _.x(this,4,a)};
var BAc=function(a){_.J.call(this,a,-1,AAc)};_.K(BAc,_.J);var AAc=[1];
var DAc=function(a){_.J.call(this,a,-1,CAc)};_.K(DAc,_.J);DAc.prototype.Cb=function(){return _.z(this,1)};DAc.prototype.Dc=function(a){return _.x(this,1,a)};DAc.prototype.Yj=function(){return _.z(this,3)};var CAc=[2];
var FAc=function(a){_.J.call(this,a,-1,EAc)};_.K(FAc,_.J);FAc.prototype.Cb=function(){return _.z(this,1)};FAc.prototype.Dc=function(a){return _.x(this,1,a)};FAc.prototype.Yj=function(){return _.z(this,3)};var EAc=[2];
var GAc=function(a){_.J.call(this,a)};_.K(GAc,_.J);
var HAc=function(a){_.J.call(this,a)};_.K(HAc,_.J);HAc.prototype.Jy=function(){return _.z(this,2)};
var IAc=function(a){_.J.call(this,a)};_.K(IAc,_.J);IAc.prototype.H=function(){return _.y(this,_.SC,1)};IAc.prototype.V=function(){return _.y(this,_.SC,2)};IAc.prototype.wa=function(){return _.y(this,_.SC,3)};
var JAc=function(a){_.J.call(this,a)};_.K(JAc,_.J);JAc.prototype.H=function(){return _.Q(this,1)};JAc.prototype.V=function(){return _.Q(this,3)};JAc.prototype.wa=function(){return _.Q(this,4)};
var KAc=function(a){_.J.call(this,a)};_.K(KAc,_.J);_.g=KAc.prototype;_.g.getId=function(){return _.z(this,1)};_.g.Nb=function(a){return _.x(this,1,a)};_.g.Ucb=function(){return _.z(this,2)};_.g.te=function(){return _.z(this,4)};_.g.Tcb=function(){return _.y(this,JAc,5)};_.g.getCapabilities=function(){return _.y(this,LAc,6)};_.g.Zcb=function(){return _.z(this,7)};_.g.k7a=function(a){return _.pj(this,13,jM,a)};_.g.Scb=function(){return _.zj(this,MAc,19,jM)};
_.g.rPa=function(a){return _.pj(this,19,jM,a)};_.g.w7a=function(a){return _.pj(this,12,jM,a)};_.g.x7a=function(a){return _.pj(this,11,jM,a)};_.g.Awb=function(){return _.zj(this,NAc,10,jM)};_.g.Vcb=function(){return _.zj(this,OAc,15,jM)};_.g.W7a=function(a){return _.pj(this,15,jM,a)};_.g.Wcb=function(){return _.zj(this,PAc,14,jM)};_.g.X7a=function(a){return _.pj(this,14,jM,a)};_.g.i8a=function(a){return _.pj(this,9,jM,a)};_.g.Xcb=function(){return _.zj(this,QAc,8,jM)};
_.g.sPa=function(a){return _.pj(this,8,jM,a)};_.g.Ycb=function(){return _.zj(this,RAc,18,jM)};_.g.tPa=function(a){return _.pj(this,18,jM,a)};_.g.n8a=function(a){return _.pj(this,17,jM,a)};var LAc=function(a){_.J.call(this,a)};_.K(LAc,_.J);LAc.prototype.H=function(){return _.Q(this,1)};LAc.prototype.V=function(){return _.Q(this,2)};var SAc=function(a){_.J.call(this,a)};_.K(SAc,_.J);var PAc=function(a){_.J.call(this,a,-1,TAc)};_.K(PAc,_.J);PAc.prototype.H=function(){return _.yb(this,UAc,1)};
var VAc=function(a,b){_.lj(a,1,b)},UAc=function(a){_.J.call(this,a)};_.K(UAc,_.J);_.g=UAc.prototype;_.g.getLabel=function(){return _.z(this,1)};_.g.Qp=function(){return _.dj(this,1)};_.g.Wa=function(){return _.z(this,2)};_.g.Hb=function(a){return _.x(this,2,a)};_.g.Di=function(){return _.vb(this,2)};_.g.Ng=function(){return _.dj(this,2)};_.g.Bf=function(){return _.z(this,5)};_.g.kl=function(a){return _.x(this,5,a)};_.g.adb=function(){return _.dj(this,5)};
_.g.getCapabilities=function(){return _.y(this,WAc,3)};_.g.$cb=function(){return _.y(this,XAc,4)};var WAc=function(a){_.J.call(this,a)};_.K(WAc,_.J);WAc.prototype.H=function(){return _.Q(this,1)};WAc.prototype.V=function(){return _.Q(this,2)};var XAc=function(a){_.J.call(this,a)};_.K(XAc,_.J);_.g=XAc.prototype;_.g.edb=function(){return _.Q(this,1)};_.g.fdb=function(){return _.Q(this,2)};_.g.bdb=function(){return _.y(this,IAc,3)};_.g.gdb=function(){return _.dj(this,3)};
_.g.ddb=function(){return _.y(this,IAc,4)};_.g.idb=function(){return _.dj(this,4)};_.g.cdb=function(){return _.z(this,5)};_.g.hdb=function(){return _.dj(this,5)};var OAc=function(a){_.J.call(this,a)};_.K(OAc,_.J);OAc.prototype.H=function(){return _.z(this,1)};OAc.prototype.eX=function(){return _.dj(this,1)};OAc.prototype.getOptions=function(){return _.y(this,PAc,2)};var QAc=function(a){_.J.call(this,a)};_.K(QAc,_.J);QAc.prototype.V=function(){return _.z(this,1)};
QAc.prototype.H=function(){return _.z(this,2)};var YAc=function(a){_.J.call(this,a)};_.K(YAc,_.J);YAc.prototype.eX=function(){return _.dj(this,1)};YAc.prototype.getOptions=function(){return _.y(this,QAc,2)};var NAc=function(a){_.J.call(this,a)};_.K(NAc,_.J);NAc.prototype.V=function(){return _.z(this,1)};NAc.prototype.H=function(){return _.z(this,2)};var ZAc=function(a){_.J.call(this,a)};_.K(ZAc,_.J);var $Ac=function(a){_.J.call(this,a)};_.K($Ac,_.J);$Ac.prototype.eX=function(){return _.dj(this,1)};
$Ac.prototype.getOptions=function(){return _.y(this,ZAc,2)};var aBc=function(a){_.J.call(this,a)};_.K(aBc,_.J);_.g=aBc.prototype;_.g.sPa=function(a){return _.pj(this,3,kM,a)};_.g.i8a=function(a){return _.pj(this,4,kM,a)};_.g.x7a=function(a){return _.pj(this,5,kM,a)};_.g.w7a=function(a){return _.pj(this,6,kM,a)};_.g.k7a=function(a){return _.pj(this,7,kM,a)};_.g.X7a=function(a){return _.pj(this,8,kM,a)};_.g.W7a=function(a){return _.pj(this,9,kM,a)};_.g.n8a=function(a){return _.pj(this,10,kM,a)};
_.g.tPa=function(a){return _.pj(this,11,kM,a)};_.g.rPa=function(a){return _.pj(this,12,kM,a)};var bBc=function(a){_.J.call(this,a)};_.K(bBc,_.J);var RAc=function(a){_.J.call(this,a)};_.K(RAc,_.J);RAc.prototype.H=function(){return _.z(this,1)};RAc.prototype.eX=function(){return _.dj(this,1)};RAc.prototype.getOptions=function(){return _.y(this,bBc,2)};var MAc=function(a){_.J.call(this,a)};_.K(MAc,_.J);MAc.prototype.H=function(){return _.z(this,4)};
var jM=[13,19,12,11,10,15,14,9,8,18,17,16],TAc=[1],kM=[3,4,5,6,7,8,9,10,11,12];
var cBc=function(a){_.J.call(this,a)};_.K(cBc,_.J);cBc.prototype.getType=function(){return _.z(this,1)};var dBc=function(a){var b=new cBc;return _.x(b,1,a)},eBc=function(a,b){return _.G(a,2,b)};cBc.prototype.Ny=function(){return _.z(this,3)};cBc.prototype.oz=function(a){return _.x(this,3,a)};cBc.prototype.Fi=function(){return _.z(this,4)};cBc.prototype.setPosition=function(a){return _.x(this,4,a)};
var gBc=function(a){_.J.call(this,a,-1,fBc)};_.K(gBc,_.J);gBc.prototype.Cb=function(){return _.z(this,1)};gBc.prototype.Dc=function(a){return _.x(this,1,a)};var fBc=[2];
var hBc=function(a){_.J.call(this,a)};_.K(hBc,_.J);
var lM=function(a){_.J.call(this,a,-1,iBc)};_.K(lM,_.J);lM.prototype.getName=function(){return _.z(this,1)};lM.prototype.$c=function(a){return _.x(this,1,a)};lM.prototype.Jm=function(){return _.z(this,2)};var jBc=function(a,b){return _.x(a,2,b)};lM.prototype.V=function(){return _.z(this,14)};var kBc=function(a,b){return _.x(a,14,b)};_.g=lM.prototype;_.g.getTitle=function(){return _.z(this,3)};_.g.setTitle=function(a){return _.x(this,3,a)};_.g.Bf=function(){return _.z(this,4)};
_.g.kl=function(a){return _.x(this,4,a)};_.g.jdb=function(){return _.z(this,15)};_.g.Xj=function(){return _.yb(this,KAc,5)};var lBc=function(a,b){return _.lj(a,5,b)},mBc=function(a,b){_.G(a,6,b)},nBc=function(a,b){_.G(a,7,b)},oBc=function(a,b){_.G(a,8,b)},pBc=function(a,b){return _.x(a,9,b)},qBc=function(a,b){return _.x(a,10,b)},rBc=function(a,b){return _.x(a,11,b)};lM.prototype.H=function(){return _.y(this,JAc,12)};var sBc=function(a,b){_.G(a,12,b)};
lM.prototype.getCapabilities=function(){return _.y(this,tBc,13)};var uBc=function(a,b){_.G(a,13,b)};lM.prototype.getCustomer=function(){return _.z(this,16)};var vBc=function(a,b){return _.x(a,16,b)},tBc=function(a){_.J.call(this,a)};_.K(tBc,_.J);tBc.prototype.wa=function(){return _.Q(this,1)};tBc.prototype.H=function(){return _.Q(this,2)};tBc.prototype.Ba=function(){return _.Q(this,3)};tBc.prototype.V=function(){return _.Q(this,4)};var iBc=[5];
var mM=function(a){_.J.call(this,a,-1,wBc)};_.K(mM,_.J);mM.prototype.Cb=function(){return _.z(this,1)};mM.prototype.Dc=function(a){return _.x(this,1,a)};mM.prototype.H=function(){return _.yb(this,lM,2)};var xBc=function(a,b){return _.lj(a,2,b)};mM.prototype.Yj=function(){return _.z(this,3)};var wBc=[2];
var yBc=function(a){_.J.call(this,a)};_.K(yBc,_.J);yBc.prototype.Cb=function(){return _.z(this,1)};yBc.prototype.Dc=function(a){return _.x(this,1,a)};yBc.prototype.H=function(){return _.y(this,lM,2)};yBc.prototype.Yj=function(){return _.z(this,3)};
_.nM=function(a){_.J.call(this,a,-1,zBc)};_.K(_.nM,_.J);_.nM.prototype.uW=function(){return _.yb(this,_.ZF,2)};_.nM.prototype.re=function(){return _.y(this,_.Lf,3)};var zBc=[1,2];
_.Hoc=function(a){_.J.call(this,a)};_.K(_.Hoc,_.J);_.g=_.Hoc.prototype;_.g.getItem=function(){return _.y(this,_.Ak,1)};_.g.setItem=function(a){return _.G(this,1,a)};_.g.getError=function(){return _.y(this,_.Gc,2)};_.g.Re=function(a){return _.G(this,2,a)};_.g.co=function(){return _.dj(this,2)};
var BBc=function(a){_.J.call(this,a,-1,ABc)};_.K(BBc,_.J);var ABc=[2,4];
var DBc=function(a){_.J.call(this,a,-1,CBc)};_.K(DBc,_.J);DBc.prototype.H=function(){return _.z(this,2)};var EBc=function(a,b){_.x(a,2,b)},CBc=[1];
var FBc=function(a){_.J.call(this,a)};_.K(FBc,_.J);FBc.prototype.getType=function(){return _.z(this,1)};var GBc=function(a){var b=new FBc;return _.x(b,1,a)},HBc=function(a,b){return _.G(a,2,b)};FBc.prototype.Ny=function(){return _.z(this,3)};FBc.prototype.oz=function(a){return _.x(this,3,a)};FBc.prototype.Fi=function(){return _.z(this,4)};FBc.prototype.setPosition=function(a){return _.x(this,4,a)};
var JBc=function(a){_.J.call(this,a,-1,IBc)};_.K(JBc,_.J);JBc.prototype.Cb=function(){return _.z(this,1)};JBc.prototype.Dc=function(a){return _.x(this,1,a)};JBc.prototype.Yj=function(){return _.z(this,3)};var IBc=[2];
var KBc=function(a){_.J.call(this,a)};_.K(KBc,_.J);KBc.prototype.Zc=function(){return _.y(this,$rc,1)};KBc.prototype.Yn=function(){return _.z(this,2)};
var oM=function(a){_.J.call(this,a)};_.K(oM,_.J);oM.prototype.Cb=function(){return _.z(this,1)};oM.prototype.Dc=function(a){return _.x(this,1,a)};oM.prototype.Yj=function(){return _.z(this,3)};
var LBc=function(a){_.J.call(this,a)};_.K(LBc,_.J);LBc.prototype.getKey=function(){return _.z(this,1)};LBc.prototype.vt=function(){return _.dj(this,1)};var NBc=function(a){_.J.call(this,a,-1,MBc)};_.K(NBc,_.J);var OBc=[2,4,6,10],PBc=[3,5,7,8,9],MBc=[1];
var QBc=function(a){_.J.call(this,a)};_.K(QBc,_.J);
_.SBc=function(a){_.J.call(this,a,-1,RBc)};_.K(_.SBc,_.J);var RBc=[1];
var UK=function(a){_.J.call(this,a,-1,TBc)},Noc;_.K(UK,_.J);UK.prototype.Yn=function(){return _.z(this,1)};var Koc=function(a,b){return _.x(a,1,b)};UK.prototype.Cb=function(){return _.z(this,3)};UK.prototype.Dc=function(a){return _.x(this,3,a)};Noc=function(a,b){_.lj(a,5,b)};_.Uoc=function(a){_.J.call(this,a)};_.K(_.Uoc,_.J);_.Uoc.prototype.$b=function(){return _.z(this,2)};_.Soc=function(a){_.J.call(this,a,-1,UBc)};_.K(_.Soc,_.J);
var Roc=function(a,b){return _.x(a,1,b)},Qoc=function(a,b){return _.x(a,2,b)},Toc=function(a,b){_.lj(a,3,b)},TBc=[5],UBc=[3];
var VBc=function(a){_.J.call(this,a)};_.K(VBc,_.J);_.g=VBc.prototype;_.g.Cb=function(){return _.z(this,1)};_.g.Dc=function(a){return _.x(this,1,a)};_.g.Yj=function(){return _.z(this,2)};_.g.mPa=function(){return _.y(this,_.Qo,3)};_.g.getKey=function(){return _.y(this,_.Lc,4)};_.g.vt=function(){return _.dj(this,4)};
var pM=function(a){_.J.call(this,a)};_.K(pM,_.J);pM.prototype.getType=function(){return _.z(this,1)};var WBc=function(a){var b=new pM;return _.x(b,1,a)};pM.prototype.un=function(){return _.y(this,wL,2)};var XBc=function(a,b){return _.G(a,2,b)};pM.prototype.Ny=function(){return _.z(this,3)};pM.prototype.oz=function(a){return _.x(this,3,a)};pM.prototype.Fi=function(){return _.z(this,4)};pM.prototype.setPosition=function(a){return _.x(this,4,a)};
var qM=function(a){_.J.call(this,a)};_.K(qM,_.J);qM.prototype.getType=function(){return _.z(this,1)};var YBc=function(a){var b=new qM;return _.x(b,1,a)};qM.prototype.un=function(){return _.y(this,_.dI,2)};var ZBc=function(a,b){return _.G(a,2,b)};qM.prototype.Ny=function(){return _.z(this,3)};qM.prototype.oz=function(a){return _.x(this,3,a)};qM.prototype.Fi=function(){return _.z(this,4)};qM.prototype.setPosition=function(a){return _.x(this,4,a)};
var aCc=function(a){_.J.call(this,a,-1,$Bc)};_.K(aCc,_.J);aCc.prototype.Cb=function(){return _.z(this,1)};aCc.prototype.Dc=function(a){return _.x(this,1,a)};aCc.prototype.Nh=function(){return _.yb(this,_.yEa,2)};aCc.prototype.Oq=function(a,b){return _.qj(this,2,a,_.yEa,b)};var $Bc=[2];
var cCc=function(a){_.J.call(this,a,-1,bCc)};_.K(cCc,_.J);cCc.prototype.Cb=function(){return _.z(this,1)};cCc.prototype.Dc=function(a){return _.x(this,1,a)};cCc.prototype.Zk=function(){return _.yb(this,pM,2)};var bCc=[2];
var dCc=function(a){_.J.call(this,a)};_.K(dCc,_.J);dCc.prototype.Cb=function(){return _.z(this,1)};dCc.prototype.Dc=function(a){return _.x(this,1,a)};
var fCc=function(a){_.J.call(this,a,-1,eCc)};_.K(fCc,_.J);fCc.prototype.Cb=function(){return _.z(this,1)};fCc.prototype.Dc=function(a){return _.x(this,1,a)};fCc.prototype.Zk=function(){return _.yb(this,qM,2)};var eCc=[2];
var hCc=function(a){_.J.call(this,a,-1,gCc)};_.K(hCc,_.J);hCc.prototype.Jy=function(){return _.C(this,2)};var gCc=[1];
var iCc=function(a){_.gi.call(this,"Fb");this.dataType=a};_.K(iCc,_.gi);
var jCc=function(a,b){_.gi.call(this,"Gb");this.percentDone=a;this.Nva=b};_.K(jCc,_.gi);
var kCc=function(){};_.g=kCc.prototype;_.g.ZM=function(a,b){return eBc(dBc(1),a).setPosition(b)};_.g.XM=function(a,b){return eBc(dBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return eBc(dBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return eBc(dBc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,JL,2)};
var lCc=function(){_.Iy.call(this,new kCc,function(a){return a&&a.getName()})};_.K(lCc,_.Iy);
var rM=function(a,b,c,d){d=void 0===d?50:d;eL.call(this,a);var e=this;this.V=b;this.W=c;this.limit=d;this.active=!1;this.status=6;this.Ba=_.iec(new _.cI,[1]);this.ka=this.H=!1;this.Oc=new _.nf(this);this.Ja(this.Oc);_.ef(this,function(){e.Oc.removeAll()})};_.K(rM,eL);_.g=rM.prototype;_.g.Me=function(){return this.V.Me()||this.W.Me()};
_.g.bQ=function(){var a=this;this.Oc.listen(this.V,"rb",function(){return void a.hu()});this.Oc.listen(this.W,[].concat(_.fc(Object.values(_.VB))),function(){return void a.hu()});this.V.Me()?this.Oc.hd(this.V,"rb",function(b){b.Me()||(a.tH(),a.dispatchEvent(new _.gi(_.Rp)))}):this.W.Me()?this.Oc.hd(this.W,[_.VB.$L,_.VB.bV],function(){a.tH();a.dispatchEvent(new _.gi(_.Rp))}):(this.tH(),this.dispatchEvent(new _.gi(_.Rp)))};_.g.tH=function(){};
_.g.Iu=function(a){var b=this;if(this.nk()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.hu();this.V.Me()?this.Oc.hd(this.V,"rb",function(d){d.Me()||b.DP()}):this.DP()}};_.g.eM=function(){this.Me()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.us=function(){return this.Ba};_.g.handleError=function(a){this.dispatchEvent(new _.Ic(a))};_.g.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};_.g.nk=function(){return!this.H||this.ka};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Oc.removeAll();this.activate()};_.g.DP=function(){};
var mCc=function(a,b,c,d,e){rM.call(this,c,a,b,e.xi()||void 0);this.request=e;this.logName="drive.ds.sync.CategoryMetadataLiveList";this.ha=[];this.data=[];this.changed=!1;this.O=new lCc;this.ma=d};_.K(mCc,rM);_.g=mCc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.getData=function(){return uwc(new KL,this.data).Dc(this.status)};
_.g.hs=function(){var a=_.Hy(this.O,this.ha,this.data);this.ha=this.data;var b=(new gBc).Dc(this.status);return _.lj(b,2,a)};_.g.DP=function(){this.ma(this.Oi(),this.limit)};_.g.hu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,nCc(this)}};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.O,this.data,b.H()))this.H=!0,this.status=b.Cb(),this.data=b.H(),this.ka=a.H,nCc(this)};var nCc=function(a){a.log("Livelist "+a.Oi()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.fb(nsc)[a.Cb()]+"."));a.dispatchEvent(new _.gi(_.cd,a))};mCc.prototype.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a category metadata query after "+a.retryCount+" retries.",a.error)))};
var oCc=function(a,b,c,d,e,f,h){_.fL.call(this,a,b,c,e,f,d);this.Xf=h;this.logName="drive.ds.sync.ViewCacheLiveList";this.ka=null;this.ha=void 0;this.suggestionSessionId=null};_.K(oCc,_.fL);oCc.prototype.getData=function(){this.H=this.items;var a=erc((new _.eI).Dc(this.Cb()).iB(this.items),this.nk());a=_.G(a,7,this.ka).gQ(this.suggestionSessionId).ti(this.Pe);return _.jj(a,18,this.ha)};
oCc.prototype.update=function(a){if(usc(this,a)&&(vsc(this,a),this.ka=a.i7(),this.suggestionSessionId=a.Vf(),this.ha=a.Ila(),tsc(this),this.suggestionSessionId&&Avc(this.O)&&(a=this.Xf.H(106027)))){var b=_.y(_.hK(a),zrc,20);if(!b){b=new zrc;var c=_.hK(a);_.G(c,20,b)}_.x(b,1,this.suggestionSessionId);a.Bj()}};
var pCc=function(a,b){var c={};a=_.Ua(a,function(d){return!!d});b=_.Ua(b,function(d){return!!d});_.Ta(a,function(d,e){var f=b[e];f?_.uj(d,f)||(d=ZBc(YBc(4),f),c[e]=d):(d=ZBc(YBc(2),d),c[e]=d)});_.Ta(b,function(d,e){a[e]||(d=ZBc(YBc(1),d),c[e]=d)});return c},qCc=function(a,b){return _.Xa(a)!==_.Xa(b)||!_.ab(pCc(a,b))};
var rCc=function(a,b){eL.call(this,a);this.request=b;this.logName="drive.ds.sync.WorkspaceFindByIdsLiveMap";this.status=6;this.H={};this.data={}};_.K(rCc,eL);_.g=rCc.prototype;_.g.bQ=function(){_.ab(this.data)&&6===this.status||this.dispatchEvent(new _.gi(_.cd,this))};_.g.Cb=function(){return this.status};_.g.us=function(){return new _.cI};_.g.getData=function(){this.H=this.data;var a=(new _.lK).Dc(this.status);_.Ta(this.data,function(b,c){a.EU().set(c,b||new _.dI)});return a};
_.g.hs=function(){var a=pCc(this.H,this.data);this.H=this.data;var b=(new dCc).Dc(this.status);_.Ta(a,function(c,d){_.Ab(b,2,void 0,qM).set(d,c)});return b};_.g.$T=function(){throw Error("tg");};_.g.jd=function(){return this.request};_.g.update=function(a){var b={};a.EU().forEach(function(c,d){c||(c=jyc(d));b[d]=c});if(this.status!==a.Cb()||qCc(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.gi(_.cd,this))};
_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Workspace find by id after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};
var sCc=function(a,b,c,d,e,f){_.fL.call(this,a,b,c,d,e,f);this.ha=[];this.suggestionSessionId=null;this.logName="drive.ds.sync.PeoplePredictLiveList"};_.K(sCc,_.fL);sCc.prototype.getData=function(){this.H=this.items;var a=(new _.kK).Dc(this.Cb()).iB(this.items);var b=this.nk();a=_.x(a,4,b);return msc(a,this.ha).gQ(this.suggestionSessionId).ti(this.Pe)};sCc.prototype.update=function(a){usc(this,a)&&(vsc(this,a),this.ha=_.yb(a,_.lk,6),this.suggestionSessionId=a.Vf(),tsc(this))};
var tCc=function(){};_.g=tCc.prototype;_.g.ZM=function(a,b){return XBc(WBc(1),a).setPosition(b)};_.g.XM=function(a,b){return XBc(WBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return XBc(WBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return XBc(WBc(4),a).setPosition(b)};_.g.uN=function(a){return a.un()};
var uCc=function(){_.Iy.call(this,new tCc,function(a){return a&&a.tq()})};_.K(uCc,_.Iy);
var vCc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new uCc;this.suggestionSessionId=null;this.ma=c};_.K(vCc,rM);_.g=vCc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Puc(Ouc((new xL).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.hs=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new cCc).Dc(this.status);return _.lj(b,2,a)};_.g.DP=function(){};_.g.hu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||aL(this.ha,this.data,a.Zk())){this.changed=this.H=!0;this.data=a.Zk();if(a=a.Vf())this.suggestionSessionId=a;this.hu()}};_.g.refresh=function(){this.ma()};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Suggested Workspace query after "+(a.retryCount+" retries."),a.error)))};
var wCc=function(a,b,c,d){eL.call(this,a);var e=this;this.request=b;this.ha=c;this.W=d;this.logName="drive.ds.sync.TeamDriveLiveList";this.O=[];this.items=[];this.status=6;this.V=_.iec(new _.cI,[1]);this.H=!0;this.limit=b.xi();_.ef(this,function(){e.O=[]})};_.K(wCc,eL);_.g=wCc.prototype;_.g.bQ=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.gi(_.cd,this))};_.g.jd=function(){return this.request};_.g.Cb=function(){return this.status};_.g.us=function(){return this.V};
_.g.nk=function(){return this.H};_.g.getData=function(){this.O=this.items;return erc((new _.eI).Dc(this.status).iB(this.items),this.H)};_.g.hs=function(){var a=_.Hy(_.a7a(),this.O,this.items),b=(new ksc).Dc(this.status);a=_.lj(b,2,a);this.O=this.items;return a};_.g.Iu=function(a){this.isActive()&&(this.limit+=a||20,this.ha.gG(this.Oi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||aL(_.a7a(),this.items,a.Bd()))this.items=a.Bd(),this.status=a.Cb(),_.mI(this.W)&&(this.V=Zmc(this.status,this.items)),this.H=a.Tl(),this.isActive()&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Team Drive query after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};_.g.Ou=function(){throw Error("ug");};_.g.refresh=function(){};
var xCc=function(a,b,c){eL.call(this,a.Be());var d=this;this.context=a;this.W=b;this.request=c;this.logName="drive.ds.sync.TeamDriveLiveMap";this.O={};this.H={};this.status=6;this.V=_.iec(new _.cI,[1]);this.log("Creating TD find by ids live map: "+this.request.V().join(", "));_.ef(this,function(){d.O={}})};_.K(xCc,eL);_.g=xCc.prototype;_.g.bQ=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.jd=function(){return this.request};
_.g.getData=function(){this.O=this.H;var a=new _.jK;a.Dc(this.status);a.map=this.H;return a};_.g.hs=function(){var a=anc(this.O,this.H),b=new ssc;b.Dc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.us=function(){return this.V};_.g.$T=function(a){var b=this.request;this.request=a;this.W.OZ(this.Oi(),b,a)};
_.g.update=function(a){if(this.status!==a.Cb()||bnc(this.H,a.kt()))this.status=a.Cb(),this.H=a.kt(),_.mI(this.context.Xc)&&(this.V=Zmc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a team drive find-by-IDs query after "+a.retryCount+" retries.",a.error)))};_.g.bX=function(){this.dispatchEvent(new _.gi(_.XEa))};
var yCc=function(){};_.g=yCc.prototype;_.g.ZM=function(a,b){return ZBc(YBc(1),a).setPosition(b)};_.g.XM=function(a,b){return ZBc(YBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return ZBc(YBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return ZBc(YBc(4),a).setPosition(b)};_.g.uN=function(a){return a.un()};
var zCc=function(){_.Iy.call(this,new yCc,function(a){return a&&a.getId()})};_.K(zCc,_.Iy);
var ACc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.ma=c;this.logName="drive.ds.sync.WorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new zCc};_.K(ACc,rM);_.g=ACc.prototype;_.g.tH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.gi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Ewc((new ML).Dc(this.status),this.data.slice(0))};
_.g.hs=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new fCc).Dc(this.status);return _.lj(b,2,a)};_.g.DP=function(){this.ma.gG(this.Oi(),this.limit)};_.g.hu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.jd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||aL(this.ha,this.data,b.Zk()))this.H=!0,this.status=b.Cb(),this.data=b.Zk(),this.ka=a.H,this.dispatchEvent(new _.gi(_.cd,this))};_.g.PB=function(a){this.dispatchEvent(new _.Ic(new _.Hc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var BCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Jf;this.O=this.context.Iga;this.ta=this.context.l7};_.g=BCc.prototype;_.g.Zya=function(a){var b=this,c=new oCc(this.context.Pl,this.context.RQ,this.context.Be(),this.context.Xc,function(d,e){b.gG(d,e)},a,this.context.kk());this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.bza=function(a){var b=this,c=new sCc(this.context.Pl,this.context.RQ,this.context.Be(),function(d,e){b.gG(d,e)},a,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.Wya=function(a){var b=this,c=new zsc(this.context.Xc,this.context.Pl,this.context.Be(),this.context.O_,this.OZ.bind(this),a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.eza=function(a){var b=this,c=new wCc(this.context.Be(),a,this,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.fza=function(a){var b=this,c=new xCc(this.context,this,a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.iza=function(a){var b=this,c=new ACc(this.context,a,this);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.cza=function(a){var b=this,c=new vCc(this.context,a,function(){if(a instanceof _.$z){var d=CCc(b.context);byc(d,d.getKey(a)).refresh()}});this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.jza=function(a){var b=this,c=new rCc(this.context.Be(),a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};_.g.Sya=function(a){var b=this,c=new mCc(this.context.Ij(),this.context.xk(),this.context.Be(),function(d,e){b.gG(d,e)},a);this.Zh(c);_.ef(c,function(){b.dk(c)});return c};
_.g.Zh=function(a){var b=a.Oi();this.H[b]=a;this.ha.create(b,a.jd());if(a.jd()instanceof _.bA)a=this.O.Zh(b,a.jd());else if(a.jd()instanceof _.gG)a=$xc(this.O,b,a.jd());else if(a.jd()instanceof _.$z)a=CCc(this.context).Zh(b,a.jd());else if(a.jd()instanceof _.nG)a=this.ta.Zh(b,a.jd());else{var c=a.jd(),d=gL(this.context.Pl,c,2);this.log("Registering LiveList "+a.Oi()+" "+d);a=this.W.Zh(b,c)}"boolean"===typeof a&&iwc(this.ha,b,a)};
_.g.dk=function(a){if(a.jd()instanceof _.bA)this.O.dk(a.Oi(),a.jd());else if(a.jd()instanceof _.gG)ayc(this.O,a.Oi(),a.jd());else if(a.jd()instanceof _.$z)CCc(this.context).dk(a.Oi(),a.jd());else if(a.jd()instanceof _.nG)this.ta.dk(a.Oi(),a.jd());else{var b=a.jd(),c=gL(this.context.Pl,b,2);this.log("Unregistering LiveList "+a.Oi()+" "+c);this.W.dk(a.Oi(),b)}HL(this.ha,a.Oi(),4);delete this.H[a.Oi()]};_.g.OZ=function(a,b,c){this.W.dk(a,b);this.W.Zh(a,c)};
_.g.gG=function(a,b){var c=DCc(this,a).jd();c.cj(b);c instanceof _.bA?this.O.Zh(a,c):c instanceof _.gG?$xc(this.O,a,c):c instanceof _.nG?this.ta.Zh(a,c):this.W.Zh(a,c)};_.g.VO=function(a,b){var c=this.H[a]&&this.H[a].jd();c&&(c instanceof _.Af?gnc(c.H(),b.Bd().filter(function(d){return!zL(d)})):c instanceof _.aG&&gnc(c.H(),Object.values(b.kt()).filter(function(d){return d&&!zL(d)})));this.ka[a]=b;this.V||(this.V=_.ri(this.i$,50,this))};
_.g.HY=function(a,b){this.ma[a]=b;this.V||(this.V=_.ri(this.i$,50,this))};_.g.KA=function(a){(a=this.H[a])&&a.bX()};_.g.i$=function(){_.si(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&&(lwc(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])HL(this.ha,a,3),d.PB(c)};
_.g.Yla=function(a){return DCc(this,a).jd()};var DCc=function(a,b){if(!a.H[b])throw Error("vg`"+b);return a.H[b]};BCc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var ECc=function(){},FCc=function(a){this.H=a},Ioc=function(a,b,c,d,e,f,h,k){this.status=a;this.percentDone=b;this.H=c;this.W=d;this.V=e;this.FA=f;this.numFetchedFiles=h;this.O=k};
var sM=function(a,b){_.pi.call(this);this.O=a;this.request=b;this.ee=_.Rh();this.complete=!1;this.H=""};_.K(sM,_.pi);sM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Qe(a.request)}).then(this.W.bind(this)).then(null,this.handleError.bind(this));return this.ee.promise};sM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new jCc(0,this.H));GCc(this)};
var GCc=function(a){_.n.setTimeout(function(){a.O.then(function(b){return b.Qe(new _.$gc(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 BBc;c=_.jj(c,2,b.H);c=_.x(c,3,a.H);c=_.x(c,5,b.W);c=_.x(c,6,b.V);c=_.x(c,7,b.FA);c=_.x(c,8,b.numFetchedFiles);b=_.lj(c,4,b.O);a.ee.resolve(b)}else b=_.uI(_.Co(_.Bo(new _.Gc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new jCc(b.percentDone,
a.H)),GCc(a)}).then(null,function(b){a.handleError(b)})},5E3)};sM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Qe(new _.Zgc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};sM.prototype.V=function(){if(!this.complete){var a=new BBc;a=_.x(a,3,this.H);a=_.x(a,1,!0);this.ee.resolve(a);this.complete=!0;this.dispose()}};sM.prototype.handleError=function(a){this.complete=!0;this.ee.reject(_.NI(a));this.dispose()};
var HCc=function(){_.gi.call(this,"VbxEwf")};_.K(HCc,_.gi);
var ICc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=ICc.prototype;_.g.La=function(){return this.context.Xc.dH()};_.g.getContext=function(){return this.context};_.g.Zz=function(){return this.context.kB.Zz(this.H)};_.g.Be=function(){return this.context.Be()};_.g.mN=function(a){return _.Yh(this.context.Jf.bm.H(a))};_.g.ZR=function(){return _.Yh(this.context.kB.ZR())};
_.g.Y5=function(a,b,c){var d=new _.Th;if(_.zj(a,_.nI,3,_.oI)||_.zj(a,_.EJ,4,_.oI)||_.zj(a,_.tK,5,_.oI)||_.zj(a,_.BJ,6,_.oI)||_.zj(a,_.aJ,7,_.oI)||_.zj(a,_.UI,8,_.oI)||_.zj(a,_.YI,9,_.oI)||_.zj(a,_.xI,10,_.oI)){var e=fwc(a);this.context.Lm().then(function(f){return f.Qe(e,{T9a:b,U9a:c})}).then(function(f){var h=[],k="";if(f instanceof _.uK){h=f.Zc().Bd();var l=_.z(f,2);k=f.Yn()}else if(f instanceof _.GJ)f.getItem()&&h.push(f.getItem()),l=f.tN();else throw Error("xg");d.callback({items:h,Rja:l,pageToken:k})},
function(f){return void d.Gd(f)});return d}throw Error("wg");};_.g.tra=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a)};_.g.lja=function(){this.context.Ts.dT();var a=this.context.Xc;Tzc(_.UJ(_.fI(a)),_.WJ(a),this.context.Be()).then(null,function(){})};_.g.Rka=function(){return _.bgc[_.hj(this.context.Xc.Tf(),8,0)]};_.g.oea=function(){this.context.tG.H=new Iyc(_.hh().substring(0,8))};
_.g.KT=function(){var a=this.context.tG.LN(),b=null;a&&(b=Kyc(this.context.tG),b={traceId:a,spanRecs:b});a=this.context.tG;a.H=null;a.yZ=[];return _.Yh(b)};_.g.LN=function(){return _.Yh(this.context.tG.LN())};
_.g.getState=function(a){var b=this.context.Oj,c=b.H.bind(b);b={};b.b=this.context.Xc.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.Jf.bm.getSize();c=this.context.Jf.St;var d=c.H;d&&(b.cs_sutd=d.l9,b.cs_ss=d.getSize());b.cs_ch=bxc(c).length;b.cs_td=c.SW().length;if(c=this.context.m7)b.t_cps=c.SZa().getStats().join(",");b.t_id=JCc(this.context);
var e=[];KCc(this.context.YR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.Cz?this.context.xk().isConnected():this.context.ZI.UB();b.n_o=this.context.Cz?this.context.xk().Me():this.context.Ij().Me();b.n_csm=!!this.context.Cz;a&&(b.csw_cc=_.Xa(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.Yh(JSON.stringify(b))};_.g.Oqa=function(){this.oc&&(this.oc.dispatchEvent(new HCc),this.oc.Kt())};
_.g.Ll=function(a){var b=this.context.Cz;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.Yjc(b))};
var NCc=function(a,b){this.context=a;this.Bg=b;this.H=pnc(_.bK(this.Bg),LCc);this.O=pnc(_.bK(this.Bg),MCc)};
NCc.prototype.$k=function(a){var b=this,c=this.context.KQ.Hf().Hf(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Ogc(h);var k=h.getId(),l=b.context.Cu();_.Rhc(h,3);_.AI(h,5);var p=Anc(h,!0);h.getCapabilities()||_.QJ(h,new _.rk);_.Q(p,2)&&((p=h.vk())&&p.length?_.x(h,46,p[0]):(_.PJ(h,[l]),_.x(h,46,l)),_.x(h,12,h.Nq()),l=new _.lk,l.Nb(d),_.x(l,6,1),_.Chc(l,!0),_.Nhc(h,l),_.Mhc(h,[l]),_.bWb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Jf;var f=gvc(c.bm,a);_.Ta(f,function(h,k){NK(h.getItem(),
e[k],b.H);(b.context.Ij().Me()||b.context.xk().Me()||3===h.getItem().Kv())&&NK(h.getItem(),e[k],b.O);_.bb(e,k)});_.Ta(e,function(h){_.wk(h.Wm())&&(f[h.getId()]=new yL(h))});OCc(c,Object.values(f))};
var PCc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.$k(c)},QCc=function(a){a=a.context.Jf;var b=new _.Af;b.Ll(!0);b=ivc(a.bm,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.Kv()){var h=new _.qI;_.rI(h,f.getId());_.CI(h);d.push(h)}else h=new _.Ioa,_.JK(h,!1),_.x(h,2,!1),_.G(f,81,h),c.push(b[e])}OCc(a,c);a.Co(d)},LCc=[50],MCc=[12,11,10,67,68];
var RCc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new NCc(a,a.Bg)};_.g=RCc.prototype;_.g.iZ=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.mdb.bind(this);var b=this.kdb.bind(this);this.log("Querying all offline items.");this.H.hW().dg(a,b);this.V||(this.H.A0((0,_.L)(this.NAb,this)),this.V=!0)}}else QCc(this.O)};_.g.mdb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.$k(a);OL(this.context.Oj,"GZTDpc")};_.g.kdb=function(){this.log("Error fetching offline items.")};
_.g.NAb=function(a){this.log("Handling offline change(s): "+a.length);PCc(this.O,a)};_.g.log=function(a){this.context.Be().info("drive.ds.sync.offline.LocalDataService",a)};
var tM=function(a){_.pi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Oc=new _.nf(this);this.ma=null;this.Ua=this.wa=!1;var b=new RCc(a);this.context.ha=b;this.Fa=new ICc(a,this);toc(this.Fa);a.Xc.dH();this.Ja(this.Oc);this.O=this.context.Oj;this.W=a.kua;this.V=new BCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.kVa()};_.K(tM,_.pi);_.g=tM.prototype;_.g.kVa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Rh();var b=this.context.kk().H(106E3);this.ma.promise.then(function(){b&&b.Bj()},function(){_.rK(a.context.kk(),181008852)});this.context.Be().info(this.Ba,"Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+" with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.bd,this.syb);this.Oc.listen(this.context.ZI,["fb","gb"],function(c){return void a.dispatchEvent(c)});this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),
function(c){return void a.dispatchEvent(c)});this.$a();this.O.start();OL(this.O,"NSockf")}return this.ma.promise};_.g.v_a=function(){this.context.Be().info(this.Ba,"Ready to process requests.");this.wa||(this.wa=!0,this.ma.resolve())};_.g.syb=function(a){var b=a.error,c=b.tg;c&&3===c.getType()&&!this.wa?(this.wa=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.Q5=function(){throw uM("teamDriveQuery");};_.g.jra=function(){throw uM("teamDriveFindByIds");};
_.g.kra=function(){throw uM("teamDriveMovePreflight");};_.g.jIa=function(){throw uM("peoplePredictQuery");};_.g.query=function(a){yvc(this.context.Pl,a);this.IF();var b=a.clone();b=this.V.Zya(b);this.Ua||(a=a.re(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.cd,this.nPa)));return b};_.g.nPa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Oc.Uc(a,_.cd,this.nPa)}};_.g.et=function(a){this.IF();Bsc(a);return this.V.Wya(a.clone())};
_.g.Vwa=function(){throw uM("activityQuery");};_.g.Kxa=function(){throw uM("backupsQuery");};_.g.YIa=function(){throw uM("refreshBackups");};_.g.iW=function(){throw uM("getAndroidBackupItems");};_.g.y9=function(){throw uM("deleteBackup");};_.g.mIa=function(){throw uM("permissionQuery");};_.g.gba=function(){throw uM("insertPermission");};_.g.z9=function(){throw uM("deletePermission");};_.g.ad=function(){throw uM("mutate");};_.g.uO=function(){throw uM("mutateWorkspace");};
_.g.XC=function(){throw uM("bulkMutate");};_.g.Vya=function(){throw uM("createFileUploader");};_.g.EVa=function(a){return new sM(this.context.Lm(),a)};_.g.ht=function(a){if(3===a.getType())return _.Zh(this.context.Lm().then(function(b){return b.Qe(a)}).then(null,KK));throw uM("getApps with type "+a.getType());};_.g.xr=function(){throw uM("getApp");};_.g.iba=function(){throw uM("installApp");};_.g.x9=function(){throw uM("deleteApp");};_.g.WT=function(){throw uM("updateApp");};
_.g.RN=function(){throw uM("getUserAccount");};_.g.rH=function(){throw uM("getUserPrefs");};_.g.TS=function(){throw uM("mutateUserPref");};_.g.Bu=function(){throw uM("getRevisions");};_.g.SDa=function(){return!1};_.g.Ll=function(a){this.context.Cz?a?_.Zjc(this.context.Cz,!0):this.context.xk().Me()&&this.context.Cz.NM(!0).then(null,function(){}):this.context.Ij().Ll(a)};_.g.nz=function(){throw uM("setOfflineOptIn");};_.g.iZ=function(){throw uM("setLocalItemService");};_.g.IF=function(){};
_.g.WS=function(){this.context.WS();this.context.kk().O(106006)};_.g.J$=function(){return this.Fa};_.g.fZ=function(){};_.g.UB=function(){return this.context.ZI.UB()};_.g.YQ=function(){return _.R(this.context.Xc.Tf(),52,!1)?_.Oh(Yvc(new Xvc,0)):this.context.ZI.YQ()};_.g.isConnected=function(){return 1===this.context.xk().get()};_.g.U8=function(){var a=this.context.Cz;return a?a.NM():_.Oh(_.Ojc(0))};_.g.sync=function(){throw uM("sync");};_.g.Kt=function(){return this.context.Kt()};
_.g.yca=function(){throw uM("offlineDataLoaded");};_.g.npa=function(a){return this.context.Lm().then(function(b){return b.Qe(a)}).then(function(b){return b})};_.g.kya=function(){throw uM("categoryMetadataQuery");};_.g.T8=function(){throw uM("changeCategoryLinks");};_.g.FP=function(){throw uM("updateCategoryMetadata");};_.g.JIa=function(){throw uM("publishedCategoriesQuery");};_.g.KIa=function(){throw uM("publishedCategoryQuery");};_.g.ANa=function(){throw uM("workspaceFindByIdsRequest");};
_.g.dsa=function(){throw uM("workspaceQueryRequest");};_.g.ULa=function(){throw uM("suggestedWorkspaceItemQueryRequest");};_.g.VLa=function(){throw uM("suggestedWorkspaceQueryRequest");};_.g.y0=function(){throw uM("addCacheHint");};_.g.Z0=function(){throw uM("createUserFeedback");};_.g.Co=function(){throw uM("handleChanges");};var uM=function(a){return new _.Hc(a+" is unsupported",_.MI(3))};
var bpc=function(a){tM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.qz("")};_.K(bpc,tM);bpc.prototype.$a=function(){NL(this.O,["NSockf"],this.v_a.bind(this))};
var SCc=new Set([1,2,4,5,6]),TCc=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.Pe=0};TCc.prototype.Hf=function(){var a=new _.fM;a.Dc(this.status);this.H&&_.kAc(a,UCc(this));return a};
var VCc=function(a,b,c,d){d=void 0===d?!1:d;var e=SCc.has(c);if(1===a.status&&!e)return!1;a.Pe=c;var f=a.status;c=!a.H;if(_.mI(a.O)){var h=(h=b&&b.getUser())&&LK(h);h=!(!h||!rxc(a.ka.H,h));a.status=h&&e||d?1:6}f=!_.uj(a.H,b)||(_.mI(a.O)?a.status!==f:6===a.status&&e);a.H=b.clone();_.mI(a.O)||(a.status=e||d?1:6);c&&(OL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};TCc.prototype.We=function(){return this.Pe};
var UCc=function(a){return a.H?a.H.clone():null};
var WCc=function(a){_.pi.call(this);this.W=a;this.Pe=0};_.K(WCc,_.pi);var XCc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};wuc(a,_.re(a,4).map(b));xuc(a,_.re(a,5).map(b));return a};WCc.prototype.SQ=function(){};WCc.prototype.yH=function(){return 0!==this.Pe};WCc.prototype.We=function(){return this.Pe};
var YCc=new Set([1,2,4,5,6]),ZCc=function(a,b,c){WCc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.qp=!1};_.K(ZCc,WCc);ZCc.prototype.ht=function(){var a=new IL;if(!_.ab(this.apps)){_.jj(a,4,this.H);var b=[];_.Ta(this.apps,function(c){b.push(c.clone())});_.lj(a,2,b)}a.Dc(this.status);return a};ZCc.prototype.put=function(a){this.apps[a.getId()]=XCc(a);this.O.update(1);this.dispatchEvent(new _.gi("Hb",this))};ZCc.prototype.remove=function(a){_.bb(this.apps,a)&&this.O.update(1)};
ZCc.prototype.SQ=function(a,b,c){c=void 0===c?!1:c;var d=!YCc.has(b);1===this.status&&d||(this.Pe=b,$Cc(this,a,!d||c),d||this.O.update(1),this.qp||(this.qp=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),OL(this.W,"nVUlO")))};
var $Cc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.re(b,4);if(!d)if(e.length!==a.H.length)d=!0;else{var f=e.concat(a.H);_.Ga(f);d=f.length!==a.H.length}a.H=e;var h=_.eb(a.apps);_.Dgc(a.apps);b=_.yb(b,_.tL,2);d||(d=b.length!==_.Xa(h));b.forEach(function(k){var l=XCc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.uj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.gi("Hb",a))};
var vM=function(a){_.N.call(this);this.context=a;this.Xy=new Set;this.Cp=6;this.KEa=!0;this.Pe=0;this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(vM,_.N);_.g=vM.prototype;_.g.Zh=function(a){this.wUa(a);this.Xy.add(a);this.resize(!0);this.VO(a)};_.g.wUa=function(){};_.g.dk=function(a){this.Xy.delete(a);0!=this.Xy.size||this.K1a()?this.resize(!1):this.dispose()};_.g.We=function(){return this.Pe};_.g.ti=function(a){this.Pe=a};_.g.wT=function(a){this.KEa=!1;this.Cp=a};_.g.pW=function(){return this.Cp};
var bDc=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)}}aDc(a.context.Jf,d,b);d.forEach(function(k){Hyc(a.context.uPa,k,b);if(k.uc()){var l=k.getCapabilities();zL(k)?l&&(_.x(l,12,_.Q(l,13)),_.x(l,9,!1),_.x(l,21,!1)):PK(k)?(l&&_.x(l,3,!1),_.x(k,30,!1)):l&&(_.x(l,42,!1),_.x(l,43,!1))}k.getCapabilities()||
_.QJ(k,new _.rk)})};vM.prototype.jd=function(){};vM.prototype.$k=function(a,b){var c=this,d=!1;a.forEach(function(e){e=PL(e);d=c.qw(e,!0)||d});b||(1!=this.pW()&&(d=!0),this.wT(1));d&&this.IY()};var cDc=function(a,b){var c=!1;b.forEach(function(d){c=a.qw(d)||c});c&&a.IY();return c};_.g=vM.prototype;_.g.update=function(a){return cDc(this,[a])};_.g.IY=function(){var a=this;this.vUa();this.Xy.forEach(function(b){a.VO(b)})};_.g.vUa=function(){};
_.g.VO=function(a){var b=dDc(this.context).Yla(a);this.X0a(b)||(b=this.lk(b),dDc(this.context).VO(a,b))};_.g.HY=function(a){var b=this;this.wT(3);this.Xy.forEach(function(c){dDc(b.context).HY(c,a)})};_.g.KA=function(){var a=this;this.Xy.forEach(function(b){dDc(a.context).KA(b)});this.ti(0==this.We()?1:6)};_.g.K1a=function(){return!1};_.g.X0a=function(){return!1};
var eDc=function(a){_.gi.call(this,"xb");this.id=a};_.K(eDc,_.gi);
var fDc=function(a,b,c,d){d=void 0===d?!1:d;_.pi.call(this);this.request=a;this.context=b;this.qNa=d;this.ee=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.K(fDc,_.pi);
fDc.prototype.nh=function(){var a=this;if(this.ee)return this.ee.promise;this.ee=_.Rh();for(var b={},c=_.m(this.request.V().entries()),d=c.next();!d.done;b={Lsa:b.Lsa,zfa:b.zfa,vsa:b.vsa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.vsa=e;b.Lsa=Xrc(Wrc(d),this.request);b.zfa=void 0;this.qNa&&(b.zfa={qNa:!0});this.context.Lm().then(function(f){return function(h){return h.Qe(f.Lsa,f.zfa)}}(b)).then(function(f){return void gDc(a,f)},function(f){return function(h){var k=f.vsa;h=
_.xd(h);5===h.tg.gB()||4===h.tg.Wj()?(a.context.Be().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),hDc(a)):a.handleError(h)}}(b))}return this.ee.promise};var gDc=function(a,b){b.Zc().Bd().forEach(function(c){_.AI(c,1);a.W.push(c)});hDc(a)},hDc=function(a){a.H||(a.H=_.n.setTimeout(a.ha.bind(a),10))};
fDc.prototype.ha=function(){_.n.clearTimeout(this.H);this.H=null;iDc(this);jDc(this);this.O.size===this.request.V().length?(this.context.Jf.$k([],1,this.originalRequest,!1),this.dispatchEvent("zb"),this.ee.resolve(this.items)):this.dispatchEvent("wb")};
var iDc=function(a){var b=a.W;a.W=[];b=a.context.Hga.e$(b);if(_.KI(_.fI(a.context.Xc))){var c=a.context.Jf.bm;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.PJ(d,e.vk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Jf.$k(b,1,a.originalRequest,!0)},jDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.CI(_.rI(new _.qI,c));a.context.Jf.Co([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new eDc(c))})};
fDc.prototype.handleError=function(a){var b=new XL(a.tg,_.wj(this.context.Xc.Tf(),1,1));this.context.Jf.PB(this.request,b);this.dispatchEvent(b);this.ee.reject(a)};
var kDc=function(a,b,c,d){vM.call(this,a);this.Bg=b;this.request=c;this.Dd={};this.H=null;this.O=_.IJ(a.Xc)||new _.$hc;d&&this.$k(d,!0)};_.K(kDc,vM);
kDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Cp=6;if(_.R(this.request,5,!1))return this.wT(1),_.Oh();var b=this.KEa?!jnc(_.bK(this.Bg),this.request.H()):!1,c=[],d=this.context.Cu();this.request.V().forEach(function(h){if("root"!==h&&h!==d){var k=a.Dd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.Kv()||b)l=l&&l.Wm(),k=!(l&&_.Q(l,2));k&&c.push(h)}});if(0===c.length)return this.$k([],!1),_.Oh();this.H=_.Rh();this.H.promise.then(function(){a.H=null},function(){a.H=null});var e=
this.request.clone();_.cG(e,c);var f=new fDc(e,this.context,this.request);this.context.Ij().Me()?(this.Oc.listen(this.context.Ij(),"rb",function(h){h.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),lDc(a,f,a.H))}),this.Cp=0<Object.values(this.Dd).length?1:2):(this.context.xk().Me()&&(this.Cp=0<Object.values(this.Dd).length?1:2),lDc(this,f,this.H));return this.H.promise};var lDc=function(a,b,c){a.Oc.listen(b,"xb",function(d){a.Dd[d.id]=null});a.KA();b.nh().then(function(){c.resolve()},c.reject)};_.g=kDc.prototype;
_.g.ija=function(a){var b=this;if(this.context.Pl.equals(a,this.request,!0)){if(jnc(_.bK(this.Bg),a.H()))return!0;if(jnc(this.request.H(),a.H(),_.bK(this.Bg))){if(this.KEa)return!0;if(_.R(this.O,5,!1))return this.request.V().every(function(c){return(c=b.Dd[c])&&_.Q(c.getItem(),31)})}}return!1};
_.g.lk=function(a){var b=new _.jK;_.mI(this.context.Xc)?b.Dc(xnc(Object.values(this.Dd))?6:this.Cp):b.Dc(this.Cp);b.ti(this.We());qsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));bDc(this,a.H(),b.kt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return Object.values(this.Dd).length};
_.g.qw=function(a){var b=this.zs(a.O),c=this.zs(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.zs=function(a){return!!a&&_.pa(this.request.V(),a.getId())};
var mDc=function(a,b){_.gi.call(this,a);this.changes=b};_.K(mDc,_.gi);
var nDc=function(a){var b=new Pxc;if(a.Vf()){var c=a.Vf();b.H=!1;b.suggestionSessionId=c}a instanceof _.kK&&_.yb(a,_.lk,6).length?(a=_.yb(a,_.lk,6),b.H=!1,b.V=a):a instanceof _.eI&&(a.i7()||a.eua()||a.Ila().length)&&(c=a.i7(),b.H=!1,b.W=c,c=a.eua()||!1,b.H=!1,b.incompleteSearch=c,a=a.Ila(),b.H=!1,b.O=a);return b};
var wM=function(a,b,c,d,e,f,h,k,l){l=void 0===l?"":l;_.pi.call(this);this.Ua=a;this.Ba=b;this.Pa=c;this.ta=d;this.$a=e;this.request=f;this.nextPageToken=l;this.W=0;this.wa=!1;this.V=[];this.O=!1;this.ka=0;this.Fa=new Set;this.ma=h||!1;this.Ka=k||!1;this.Ia=this.FIa(f);this.ha=new Pxc};_.K(wM,_.pi);var oDc=function(a){return!a.wa||""!==a.nextPageToken},qDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&oDc(a)?pDc(a):_.Yh()};wM.prototype.$b=function(){return this.V.length};wM.prototype.H=function(){return this.V.slice()};
var pDc=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 _.Th;d.addCallback(function(h){rDc(a,c,h)});var e=_.Nmc(_.Omc(new _.nI,a.Ia),c),f=_.Lmc(new _.rfc,b);a.Ka&&_.x(f,10,!0);_.Mmc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Qe(e)}).then(function(h){sDc(a,d,h)},function(h){a.handleError(d,f,h)});return d},sDc=function(a,b,c){a.O=!1;if(c instanceof _.kK)var d=c;else d=c.Zc(),a.nextPageToken=c.Yn()||"";a.ha=nDc(d);a.ha.lc()||
a.dispatchEvent("yb");b.callback(d.Bd())};wM.prototype.handleError=function(a,b,c){var d=this;c=_.xd(c);this.O=!1;if(5===c.tg.gB())a.callback([]);else{if(10===c.tg.gB()&&(_.Lmc(b,Math.ceil(_.wj(b,1,1E3)/2-2E-15)),1<_.wj(b,1,1E3))){var e=_.Mmc(_.Nmc(_.Omc(new _.nI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Qe(e)}).then(function(h){sDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new XL(c.tg,_.wj(this.Pa.Tf(),1,1));this.oPa(f);this.dispatchEvent(f);a.Gd(c)}};
var rDc=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: ")+(_.gjc(a.request)+" paginationToken: ")+b;b=_.Do(_.Bo(_.uI(_.tI(new _.Gc,2),9),f));a.$a(new _.Ic(new _.Hc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Fa.has(h.getId());a.Fa.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.AI(b.value,a.ma?
2:1);c=[];b=_.m(a.e5a(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.rI(new _.qI,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new mDc("wb",c));a.V.length<a.W&&a.nextPageToken?pDc(a):a.dispatchEvent("zb")};_.g=wM.prototype;_.g.e5a=function(a){return a};_.g.oPa=function(){};_.g.jd=function(){return this.request};_.g.FIa=function(a){a=a.clone();this.ma&&_.x(a,46,!0);return a};_.g.log=function(a){this.Ua.info("drive.ds.sync.query.QueryRunner",a)};
var tDc=function(a,b,c,d){wM.call(this,a.Be(),a.Lm(),a.Xc,a.Jf.bm,a.dispatchEvent,b,void 0,c,d);this.context=a};_.K(tDc,wM);tDc.prototype.e5a=function(a){a=this.context.Hga.e$(a);this.context.Jf.$k(a,1,this.request,oDc(this));return a};tDc.prototype.oPa=function(a){this.context.Jf.PB(this.request,a)};tDc.prototype.FIa=function(a){var b=a=wM.prototype.FIa.call(this,a),c=_.jl(b);0===_.re(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Wa()))&&(c=c.uc())&&(_.ll(b,[c]),_.ml(b,2));uDc(this,a);return a};
var uDc=function(a,b){if(_.jl(b).some(function(d){return(d=a.ta.H(d.Wa()))&&_.Q(d,108)})){var c=b.re();c||(c=new _.Lf,_.kl(b,c));_.Mf(c,937)}};
var vDc=function(a,b,c,d){this.context=a;this.Bg=b;this.V=d;this.ppa=0;this.O=c},zDc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.ml(_.gl(_.ll(new _.Af,[b]),_.bK(a.Bg)),1),d=_.Mf(new _.Lf,306);_.kl(c,d);wDc(a);c=new tDc(a.context,c);qDc(c,5E3).addCallback(a.H.bind(a,c));xDc(a);yDc(a,b)}},xDc=function(a){var b=_.Ya(a.O).filter(function(d){return d instanceof kDc}),c=new Set;b.forEach(function(d){d.jd().V().forEach(function(e){a.V.get(e)||c.add(e)})});b=_.Mf(new _.Lf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.WO([].concat(_.fc(c)),b)},yDc=function(a,b){var c=[];(a.context.Jf.PIa.eR[b||"subscribed"]||[]).forEach(function(d){_.Ta(a.O,function(e){_.uj(e.jd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(wDc(a),c.forEach(function(d){d=gL(a.context.Pl,d.jd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Qh(c.map(function(d){return d.refresh().then(null,_.bg)})).then(function(){ADc(a)},function(){ADc(a)}))};
vDc.prototype.WO=function(a,b,c,d,e){var f=this;c=void 0===c?!1:c;a=a.filter(function(k){return!_.Se(k)});if(0===a.length)return _.Oh({});a=_.x(_.bG(_.cG(new _.aG,a),d||_.bK(this.Bg)),7,!0);_.dG(a,b);e&&e.length&&_.lj(a,11,e);wDc(this);var h=new fDc(a,this.context,void 0,c);b=h.nh();b.then(function(){f.H(h)},function(){f.H(h)});return b};vDc.prototype.H=function(a){a.dispose();ADc(this)};var wDc=function(a){a.ppa++;a.context.Ts.setActive(!1)},ADc=function(a){a.ppa--;0===a.ppa&&a.context.Ts.setActive(!0)};
vDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CacheRefresher",a)};
var BDc=function(a,b,c){_.N.call(this);this.context=a;this.H=b;this.request=c;this.O=this.ee=null;a=new _.Lf;_.Nf(a,!1);_.Mf(a,305);_.kl(this.request,a);this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(BDc,_.N);
BDc.prototype.nh=function(){if(!this.ee){this.ee=_.Rh();if(_.R(this.request,48,!1))return this.H.ti(9),this.ee.resolve(this.H),this.ee.promise;this.O=new wM(this.context.Be(),this.context.Lm(),this.context.Xc,this.context.Jf.bm,this.context.dispatchEvent,this.request,!0);this.Oc.listen(this.O,"wb",this.W);this.Oc.listen(this.O,"zb",this.V.bind(this));this.Oc.listen(this.O,"Ab",this.ee.reject.bind(this.ee));qDc(this.O,this.request.xi())}return this.ee.promise};
BDc.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(PL(new yL(b)))};BDc.prototype.V=function(){this.H instanceof RL?this.H.H=!oDc(this.O):oDc(this.O)&&QL(this.H,!1);this.H.ti(5);this.ee.resolve(this.H)};
var DDc=function(a,b){_.gi.call(this,CDc);this.cache=a;this.changes=b};_.K(DDc,_.gi);var CDc="Ib";
var EDc=function(a,b){return new _.Nh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.Dy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();Bnc(k.getItem());f.set(l,Suc(new yL(k.getItem()),k.H))}h=_.m(e.items);for(k=h.next();!k.done;k=h.next())k=k.value,l=k.qc(),l=f.get(l)||null,_.BI(k)?l&&a.update(new Owc(l.getId(),l,null)):(k=k.getItem(),Bnc(k),a.update(Pwc(l,Suc(new yL(k),null===l||void 0===l?void 0:l.H))));a.aY();c(e.rPb)},d)})};
var FDc=function(a,b){_.N.call(this);this.context=a;this.Bg=b};_.K(FDc,_.N);
FDc.prototype.nh=function(a){this.log("Running initial view populator (IVDP).");try{var b=new vL(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.NI(l));return}a=_.fI(this.context.Xc);if(!_.KI(a)){var c=b.Hf();if(c){var d=c.getUser();d&&d.getId()===_.C(a,6,"")&&VCc(this.context.KQ,c,4)}(a=b.Cu())&&this.context.qz(a,6)}var e=_.z(b,3)||void 0;e&&GDc(this.context,e,!0);if((a=_.yb(b,_.Qo,9))&&a.length){c=(c=this.context.Xc.Tf())&&_.re(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.So(l))&&f.add(l)});this.context.FE.SQ(a,4,[].concat(_.fc(f.values())))}a=b.Bd();a.forEach(function(l){_.Ogc(l);_.AI(l,6)});if(c=_.yb(b,uL,5)[0])if(b=this.context.Pl,rnc(_.bK(this.Bg),c.getQuery().H(),_.WJ(this.context.Xc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!_.Hcc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=BL(b,c.getQuery());d.cj(_.z(c,2)||void 0);b=a.map(function(l){return new yL(l,void 0,1,e)});var h=_.y(c,_.Ak,3);if(h&&
_.z(c,2)){var k=b[b.length-1];_.AI(h,6);if(!_.uj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}k=new RL(this.context.Bt,this.context.Tv,this.context.Pl,d,k,c.Yn()||"");k.ti(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(PL(h.value))?c++:d++;HDc(this.context.Jf,k);b=k.jd();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.pN());k=new _.nI;_.Omc(k,b);k=_.qkc(this.context.kB,
k,"IVDP");_.rkc(k,a);OL(this.context.Oj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+wvc(b,c.getQuery().H()));else this.handleError("No initial query found")};FDc.prototype.handleError=function(a,b){var c=b?void 0:_.Do(_.uI(_.tI(new _.Gc,2),6));b=new _.Hc(a,c,b);this.context.HJ(b.tg);this.log("Initial view dump population failed. Message: "+a);OL(this.context.Oj,"DEJoH")};FDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var IDc=function(a){_.pi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new TL(a.Bt,a.Tv,a.Oj,function(){return a.Cu()});this.H=this.context.Xc;this.ta=new Swc(a.Bt,a.Tv)};_.K(IDc,_.pi);
var JDc=function(a,b){var c=_.wj(a.H,31,2E4);b="number"===typeof _.z(b,3)?_.z(b,3):c+1;b>c?(QL(a.O,!1),c="partialCorpus",a.log("Too many subscribed items at "+b+"; skipping subscribed cache.")):(c="fullCorpus",a.log("Caching all subscribed items."));a.context.kB.Hb("CachedCorpusType",c)};IDc.prototype.log=function(a,b){this.context.Be().log(this.W,a,b||"info")};var KDc=function(a,b){0===a.V&&(a.V=b)};
var LDc=function(a,b){var c;if(c=!!b&&!!b.Vh())a=_.Q(a,4),c=null==a||!!_.Q(b.Vh(),7)==a;return c};
var MDc=function(a,b){_.pi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.K(MDc,_.pi);MDc.prototype.nh=function(){return this.H||this.O&&""===this.nextPageToken?_.Yh():NDc(this)};MDc.prototype.$b=function(){return this.V.length};
var NDc=function(a){a.O=!0;a.H=!0;var b=jrc(krc(new _.EJ,a.request),a.nextPageToken),c=_.qkc(a.context.kB,b);return _.Zh(a.context.Lm().then(function(d){return d.Qe(b)}).then(function(d){var e=d.Zc().Bd();a.nextPageToken=d.Yn()||"";ODc(a,c,e)},function(d){return void a.handleError(d)}))},ODc=function(a,b,c){_.rkc(b,c);for(b=0;b<c.length;b++)_.AI(c[b],1);a.context.Jf.$k(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ma(c,function(e){this.V.push(e.getId());e=_.rI(new _.qI,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new mDc("wb",d));a.nextPageToken?NDc(a):(a.H=!1,a.dispatchEvent("zb"))};MDc.prototype.handleError=function(a){this.H=!1;a=new XL(_.vI(a),_.wj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};MDc.prototype.jd=function(){return this.request};
var PDc=function(a){this.H=_.Icc(a,{numeric:!0})};PDc.prototype.sort=function(a){_.Ka(a,this.compare.bind(this))};PDc.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ha(a.getId(),b.getId()):c};
var QDc=function(a,b,c,d){d=void 0===d?!1:d;vM.call(this,a);this.Bg=b;this.Dd=[];this.ee=null;this.request=c.clone();this.bw=new MDc(a,this.request);this.jUb=new PDc(YK(_.fI(a.Xc)));this.WEa=null!=_.Q(this.request,6);_.ef(this,this.lqb,this);d&&(this.ee=_.Rh(),this.ee.resolve())};_.K(QDc,vM);_.g=QDc.prototype;_.g.refresh=function(){3===this.Cp&&(this.Cp=6,this.ee=null);return this.vda()};_.g.isInitialized=function(){return!!this.ee};
_.g.vda=function(){var a=this;if(this.isInitialized())return this.ee.promise;this.ee=_.Rh();this.context.Ij().Me()?this.Oc.listen(this.context.Ij(),"rb",function(b){b.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),a.KA(),a.bw.nh().dg(a.ee.resolve,a.ee.reject,a.ee))}):this.context.xk().Me()?this.Oc.hd(this.context.xk(),[_.VB.$L,_.VB.bV],function(){a.KA();a.bw.nh().dg(a.ee.resolve,a.ee.reject,a.ee)}):(this.KA(),this.bw.nh().dg(this.ee.resolve,this.ee.reject,this.ee));return this.ee.promise};_.g.resize=function(){};
_.g.jd=function(){return this.request};_.g.Dy=function(){return this.Dd};_.g.ija=function(a){return this.context.Pl.equals(a,this.request)};_.g.lk=function(a){a=a.xi();this.jUb.sort(this.Dd);var b=foc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));bDc(this,Mrc(this.Bg),b);var c=new _.eI;c.iB(b);c.Dc(this.Cya(a));c.ti(this.We());erc(c,a<this.Dd.length||!(this.context.Ij().Me()||this.context.xk().Me())&&1!==this.Cp);return c};
_.g.Cya=function(a){return 1===this.Cp||a<=this.Dd.length?1:this.context.Ij().Me()||this.context.xk().Me()?0<this.Dd.length?1:2:6};_.g.$k=function(a,b){this.isInitialized()&&vM.prototype.$k.call(this,a,b)};_.g.qw=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.na(this.Dd,function(h){return h.getId()===c}),e=!!d;b=this.zs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.VMa(f,a.H):this.DJ(f):this.qS(a.H);else return!1;return!0};_.g.qS=function(a){this.Dd.push(a);a.count++};
_.g.DJ=function(a){_.ya(this.Dd,a);a.count--};_.g.MAa=function(a){return _.oa(this.Dd,a)};_.g.VMa=function(a,b){this.Dd[this.MAa(a)]=b;b.count++;a.count--};_.g.zs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.WEa&&null!=_.Q(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Dd.find(function(d){return c===d.getId()},this);a=zL(a.getItem())&&LDc(this.request,a.getItem());return b&&a}return zL(a.getItem())&&LDc(this.request,a.getItem())};_.g.lqb=function(){this.Dd.forEach(function(a){a.count--})};
_.g.K1a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.getSize=function(){return this.Dd.length};_.g.aY=function(){this.Cp=1};
var RDc=function(a){this.H=a},SDc=function(a,b,c,d,e){if(0===e||null===b){var f=new HAc;_.x(f,2,b);_.x(f,1,d);return _.Oh(f)}var h=Zvc();_.x(h,2,b);c&&_.x(h,3,c);return a.H.then(function(k){return k.Qe(h)}).then(function(k){var l,p=null!==(l=k.Jy())&&void 0!==l?l:null;return SDc(a,p,c,d+_.z(k,1),e-1)})};
var TDc=function(a,b){IDc.call(this,a);this.Bg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.cE=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.K(TDc,IDc);TDc.prototype.handleError=function(){this.log("Local dump population failed.");OL(this.context.Oj,"mrK8ic")};
TDc.prototype.nh=function(){var a=this;if(this.ka)return this.ka;if(this.context.mR){var b=new _.Th;this.ka=b;this.initialize().then(function(){var c=_.yb(_.ZK(a.H),XK,11);c=c[0]&&c[0].getKey()||"";return UDc(a,a.context.mR,c,4)}).then(null,function(c){if(_.R(a.H,8,!0))return VDc(a,c);throw c;}).then(function(){_.mI(a.H)||a.context.Jf.Kq.H.clear();OL(a.context.Oj,"zaOY7");b.callback()},function(c){KDc(a,8);a.handleError();b.Gd(c)});return b}this.handleError();return _.$h(Error("yg"))};
TDc.prototype.initialize=function(){var a=this;return _.Oh(this.context.mR.initialize()).then(function(){if(!_.XJ(a.H)){var b=_.wj(_.ZK(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Nh(function(c,d){cAc(a.context.UD).then(function(e){e?c():d(Error("zg"))})})}})};
var UDc=function(a,b,c,d){var e;return _.Zf(function(f){return 1==f.H?(e=a.ha,WDc(a,b,c,e),XDc(a,b,c,e),YDc(a,b,c,e),_.Sf(f,ZDc(a,b,c,e),2)):_.Sf(f,Promise.all([$Dc(a,b,c,d,e),aEc(a,b,c,d,e),bEc(a,b,c,d,e),cEc(a,b,c,d,e)]),0)})},WDc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};bM(b,c,0,void 0,d,a.cE).then(function(f){f[0]?VCc(a.context.KQ,f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},XDc=function(a,b,c,d){var e=function(){return a.log("Failed to load apps from storage.")};
bM(b,c,1,void 0,d,a.cE).then(function(f){f[0]?a.context.P_.SQ(f[0],a.We(),_.XJ(a.H)):e()},function(){return e()})},YDc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};bM(b,c,5,void 0,d,a.cE).then(function(f){if(f[0]){f=f[0];var h=_.yb(f,_.Qo,1);h.length&&a.context.FE.SQ(h,a.We(),_.re(f,2),_.XJ(a.H))}else e()},function(){return e()})},$Dc=function(a,b,c,d,e){var f=new _.bn;bM(b,c,3,1,e,a.cE).then(function(h){return dEc(a,h[0])}).then(function(h){if(h){b!==
a.context.mR||rnc(_.re(h,12),_.bK(a.Bg),_.WJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Ts.dT());var k=_.z(h,3);if(!k||0>k)throw Error("Cg");a.context.qz(h.Cu(),d);k=_.z(h,3);"number"===typeof k&&GDc(a.context,Number(k));if(_.XJ(a.H)||_.VJ(a.H))a.log((_.XJ(a.H)?"Coldstart":"Background")+": Firing INITIAL_CHANGES_PROCESSED."),a.context.iGa();a.$k(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},function(h){return f.reject(h)});
return f.promise},aEc=function(a,b,c,d,e){return eEc(a,2,b,c,d,e).then(function(){var f,h;return null===(f=_.IJ(a.H))||void 0===f||!_.R(f,17,!1)||null!==(h=a.O)&&void 0!==h&&h.MD?Promise.resolve():eEc(a,5,b,c,d,e)},function(){var f;return(null===(f=_.IJ(a.H))||void 0===f?0:_.R(f,17,!1))?eEc(a,5,b,c,d,e):Promise.reject(Error("Ag"))})},eEc=function(a,b,c,d,e,f){var h=new _.bn;bM(c,d,3,b,f,a.cE).then(function(k){k[0]?(a.$k(k[0],e),h.resolve()):h.reject(Error("Bg"))},function(k){return h.reject(k)});
return h.promise},bEc=function(a,b,c,d,e){var f=new _.bn;bM(b,c,3,4,e,a.cE).then(function(h){h.forEach(function(k){a.$k(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},cEc=function(a,b,c,d,e){var f=new _.bn;bM(b,c,3,3,e,a.cE).then(function(h){h.length?h.forEach(function(k){a.$k(k,d)}):OL(a.context.Oj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},ZDc=function(a,b,c,d){var e=new _.bn;bM(b,c,6,void 0,d,a.cE).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=
f.next())h=h.value,_.yb(h,LL,1).length&&(a.log("Importing "+_.yb(h,LL,1).length+" people into the PeopleCache."),h=_.yb(h,LL,1),mxc(a.context.Jf.Kq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},dEc=function(a,b){var c=_.z(b,3);if(c&&!_.XJ(a.H)){var d=new RDc(a.context.Lm()),e=_.wj(_.ZK(a.H),13,5);return SDc(d,c,null,0,e).then(function(f){return _.dj(f,2)?(a.log("Encrypted dump too stale."),a.context.kk().O(106007),KDc(a,9),null):b},function(){return b})}return _.Oh(b)},VDc=
function(a,b){var c=cM(a.context.fM.nj()),d=_.yb(_.ZK(a.H),XK,11).filter(function(e){return e.vt()});return Vzc(_.UJ(_.fI(a.H)),_.WJ(a.H),_.wj(_.ZK(a.H),10,0)||0,_.bK(a.Bg),a.ha||0,d.map(function(e){return _.z(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.z(l,1)}),h=new dM(_.Oh(e),a.context.Be(),null,!0),k=new Tyc(h,a.H,function(l){a.context.HJ(l)});k.initialize();a.ma=!0;return UDc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([$zc])}).then(function(l){l[0]?
(l=l[0].Wa(),l=a.context.UD.set($zc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Ph(new _.Hc("No compatible dumps to forklift were found.",null,b))})},jEc=function(a,b,c){var d;switch(b.Wo()){case 1:return fEc(a,b,c);case 2:return gEc(a,b,a.O);case 5:return(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,17,!1))?gEc(a,b,a.ta):null;case 3:return hEc(a,b);case 4:return iEc(a,b);default:return null}},fEc=function(a,b,c){var d=[];_.yb(b,uL,5).forEach(function(e){var f=void 0,h=_.y(e,
_.Ak,3);h&&(_.Ogc(h),_.Q(a.H,67)&&enc(h,unc),_.AI(h,c),f=new yL(h));var k=e.getQuery();if(!_.R(k,48,!1)||_.yb(a.H,_.Af,44).some(function(l){if(!_.R(l,48,!1))return!1;l=BL(a.context.Pl,l,!0);return _.uj(l,k)}))e=new RL(a.context.Bt,a.context.Tv,a.context.Pl,k,f),e.ti(a.We()),d.push({cache:e,changes:$L(a.context.Bx,null)})});return d},gEc=function(a,b,c){b=_.y(b,xoc,11);if(!b)throw Error("Dg");JDc(a,b);return c.MD?(c.ti(a.We()),[{cache:c,changes:$L(a.context.Bx,null)}]):[]},iEc=function(a,b){return _.yb(b,
uL,5).map(function(c){c=new QDc(a.context,a.Bg,_.y(c,_.RH,5),!0);c.ti(a.We());return{cache:c,changes:$L(a.context.Bx,null)}})},hEc=function(a,b){var c=_.re(_.yb(b,uL,5)[0].getQuery(),33)[0],d=_.z(b,3)||void 0;b=$L(a.context.Bx,c);xM(a.context).addCallback(function(f){f.exa(c,d)});var e=new VL(a.context.Bt,a.context.Tv,c);e.ti(a.We());return[{cache:e,changes:b}]};
TDc.prototype.$k=function(a,b){var c=this,d=jEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.Bd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Ogc(h);_.Q(this.H,67)&&enc(h,unc);_.AI(h,b);_.mI(this.H)||this.context.Jf.Kq.H.lc()||Ixc(this.context.Jf.Kq,[h]);f=new yL(h);_.re(a,14).includes(h.getId())&&Suc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(PL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new DDc(l,k.changes));c.log("Imported "+l.getSize()+" items into the "+l.getType());var p=
null;l instanceof VL&&(p=l.uc());c.context.eba.promise.then(function(){aM(c.context.Bx,p)})});1===a.Wo()&&OL(this.context.Oj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Wo()+".")};TDc.prototype.We=function(){return this.ma?7:3};
var kEc=function(a){_.N.call(this);this.context=a};_.K(kEc,_.N);kEc.prototype.nh=function(a){try{return lEc(this,new LBc(JSON.parse(a)))}catch(b){return this.handleError("Error parsing prefetched request.",b),Promise.resolve()}};
var lEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:b=mEc(a,b);break;case 4:b=nEc(a,b);break;case 6:b=oEc(a,b);break;case 2:b=pEc(a,b);break;case 7:b=qEc(a,b);break;case 5:b=Promise.all(_.yb(_.zj(b,NBc,7,PBc),LBc,1).map(function(c){lEc(a,c)}));break;default:return a.handleError("Unsupported prefetched request."),Promise.resolve()}return b},mEc=function(a,b){var c=_.zj(b,_.Af,2,OBc);b=JSON.parse(_.yj(b,3,PBc)||"{}");var d=new _.nI;
_.Omc(d,c);return a.context.YR().jua.convert(d,{headers:{},text:"",json:b}).then(function(e){rEc(a,c,e.Zc())})},oEc=function(a,b){return rEc(a,_.zj(b,_.Af,2,OBc),_.zj(b,_.eI,9,PBc))},rEc=function(a,b,c){for(var d=c.Bd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.AI(f.value,7);c=nDc(c);a=a.context.Jf;b=BL(a.context.Pl,b);e=yM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.V[e];f||(f=new zM(a.context,b),f.ti(2),sEc(a,e,f));c.lc()||f.iua(c);a.$k(d,1,b);return Promise.resolve()},
pEc=function(a,b){_.zj(b,_.nD,4,OBc);b=_.zj(b,_.Xz,5,PBc);var c=a.context.Xc.Tf();c=c&&_.re(c,30)||[];var d=new Set(c);_.yb(b,_.Qo,3).forEach(function(e){(e=(e=e.getKey())&&_.So(e))&&d.add(e)});a.context.FE.SQ(_.yb(b,_.Qo,3),2,[].concat(_.fc(d.values())));return Promise.resolve()},nEc=function(a,b){a.context.Iga.I3(_.zj(b,ML,8,PBc).Zk(),_.zj(b,_.bA,6,OBc),2,!1);return Promise.resolve()},qEc=function(a,b){var c=_.zj(b,_.$z,10,OBc);b=JSON.parse(_.yj(b,3,PBc)||"{}");return a.context.YR().jua.convert(c,
{headers:{},text:"",json:b}).then(function(d){CCc(a.context).I3([d],c,2,!1)})};kEc.prototype.handleError=function(a,b){var c=b?void 0:_.Do(_.uI(_.tI(new _.Gc,2),6));this.context.dispatchEvent(new _.Ic(new _.Hc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};kEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var tEc=function(a){IDc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.wj(a.Xc,31,2E4))};_.K(tEc,IDc);tEc.prototype.nh=function(){if(!_.R(this.H,45,!1))return KDc(this,5),this.handleError(),_.$h(Error("Eg"));this.log("Drive SDK cache population initiated.");return this.context.cZa().addCallback(this.Ba,this).addCallback(this.wa,this).Ag(this.handleError,this)};
tEc.prototype.Ba=function(){var a=this;OL(this.context.Oj,"L6uQWd");xM(this.context).addCallback(function(b){b.Rea()});if(_.R(this.H,46,!1))return woc(this.context.Lm(),this.context.Be()).addCallback(function(b){if(!b)throw KDc(a,4),Error("Fg");JDc(a,b)});this.log("Subscribed corpus cache population disabled.");QL(this.O,!1);return _.Yh()};
tEc.prototype.wa=function(){var a=this;this.context.iGa();var b=new _.Th;if(this.O.MD){this.log("Starting subscribed corpus cache population.");var c=this.O.jd();c.cj(this.ma);this.O.ti(5);uEc(this,this.O,c)}c=_.yb(this.H,_.Af,44);c=_.m(c);for(var d=c.next();!d.done;d=c.next())d=new RL(this.context.Bt,this.context.Tv,this.context.Pl,d.value),d.ti(5),uEc(this,d,d.jd()),d=gL(this.context.Pl,d.jd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Qh(this.ka).then(function(e){b.callback(e)},
function(e){for(var f=_.m(a.ha),h=f.next();!h.done;h=f.next())h.value.dispose();KDc(a,7);f=e;e instanceof XL?f=_.NI(e.error):_.sI(e)||(f=Error("Gg`"+e));b.Gd(f)});return b};
var uEc=function(a,b,c){var d=$L(a.context.Bx,null);b=new BDc(a.context,b,c);a.ha.push(b);b=b.nh().then(function(e){!e.MD&&e instanceof TL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.kB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new DDc(e,d))});b.then(function(){vEc(a)},function(){vEc(a)});a.ka.push(b)},vEc=function(a){a.context.eba.promise.then(function(){aM(a.context.Bx,null)})};
tEc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");OL(this.context.Oj,"Gv4zef")};tEc.prototype.We=function(){return 5};
var wEc=function(a,b){_.N.call(this);this.context=a;this.V=b;this.Oc=new _.nf(this);this.impression=null;this.W=[];this.Ja(this.Oc);this.H=new TDc(this.context,this.context.Bg);this.Ja(this.H);this.O=new tEc(this.context);this.Ja(this.O)};_.K(wEc,_.N);
wEc.prototype.nh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.kk().H(106002);_.n._DRIVE_dsp&&xEc(this);_.n._DRIVE_dspc=function(c){xEc(a,c)};$L(this.context.Bx,null);_.R(this.context.Xc,24,!1)&&!_.XJ(this.context.Xc)&&(_.n._DRIVE_ivd||null===_.n._DRIVE_ivd?yEc(this):_.n._DRIVE_ivdc=function(){yEc(a)});var b=this.context.mR;if(b)return this.Oc.listen(this.H,CDc,this.ha),this.Oc.listen(this.O,CDc,this.ha),(!_.VJ(this.context.Xc)&&_.Q(this.context.Xc,
69)?this.context.wY.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.cE=a.impression);return a.H.nh().dg(function(){return zEc(a,a.H.We())},function(){AEc(a,a.H.We(),a.H.V);return _.XJ(a.context.Xc)?a.handleError(Error("Hg")):a.O.nh().then(function(){return zEc(a,a.O.We())},function(c){AEc(a,a.O.We(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.sI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var xEc=function(a,b){a=new kEc(a.context);var c=[,!0,!0,!0,!0,,!0,!0],d=(_.n._DRIVE_dsp||[]).filter(function(f,h){return f&&c[h]&&(!b||h===Number(b))});d=_.m(d);for(var e=d.next();!e.done;e=d.next())a.nh(e.value);a.dispose()};wEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(BEc(this,b,a.changes))};
var zEc=function(a,b){aM(a.context.Bx,null);OL(a.context.Oj,"L6uQWd");xM(a.context).addCallback(function(c){c.Rea()});return Promise.all(a.W).then(function(){CEc(a,b)})},CEc=function(a,b){if(!a.isDisposed()){_.XJ(a.context.Xc)||DEc(a.V,_.yb(a.context.Xc,_.Af,44));a.log("Corpus cache population complete.");var c=a.context.Oj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Ts.jGa():cAc(a.context.UD).then(function(d){d&&a.context.Ts.jGa()},function(){});OL(c,"rVezo");OL(c,"BNEDtc");a.impression&&(b=_.iK(_.Jfc,
b),Hrc(Nrc(a.impression),b),Grc(Nrc(a.impression),!0),Irc(Nrc(a.impression),jvc(a.V.bm)),Jrc(Nrc(a.impression),a.context.Jf.Wo()),a.impression.Bj());a.dispose()}},AEc=function(a,b,c){a.impression&&(b=_.iK(_.Jfc,b),Hrc(Nrc(a.impression),b),a=Nrc(a.impression),_.nj(a,3,c,void 0))};
wEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;aM(this.context.Bx,null);var c=this.context.Oj;OL(c,"L6uQWd");xM(this.context).addCallback(function(d){d.Rea()});OL(c,"mrK8ic");OL(c,"Gv4zef");OL(c,"rVezo");OL(c,"BNEDtc");this.context.kB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.mR||_.R(this.O.H,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.sI(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Hc(b,void 0,c),c=a.tg,_.tI(c,_.XJ(this.context.Xc)?3:1),_.uI(c,
6),_.Bo(c,b),_.Do(c),this.context.dispatchEvent(new _.Ic(a))):this.log("Corpus population skipped");this.impression&&(Grc(Nrc(this.impression),!1),this.impression.Bj());this.dispose()};var BEc=function(a,b,c){return EDc(b,c).then(function(d){d.some(function(e){return b instanceof VL&&_.BI(e)&&e.qc()===b.uc()})||HDc(a.V,b,d)},function(){return a.handleError(Error("Ig"))})},yEc=function(a){if(_.n._DRIVE_ivd){var b=new FDc(a.context,a.context.Bg);a.Ja(b);b.nh(_.n._DRIVE_ivd)}else OL(a.context.Oj,"DEJoH")};
wEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var EEc=function(){SL.apply(this,arguments)};_.K(EEc,SL);_.g=EEc.prototype;_.g.zs=function(a){var b;if(b=SL.prototype.zs.call(this,a))a=a&&a.getItem()&&a.getItem().Wm(),b=!(!a||!_.Q(a,3));return b};_.g.jd=function(){};_.g.pN=function(){return null};_.g.getType=function(){};_.g.gO=function(){};
var FEc=function(a,b){this.context=a;this.H=b;this.eR={}},HEc=function(a,b){if(!_.jJ(b)){var c=_.re(b,33);if(1===c.length)GEc(a,c[0],b);else{c=_.jl(b);if(1===c.length&&!_.R(c[0],2,!1)){var d=c[0].Wa();c=a.H.get(d);if(!c){c=a.context.Jf.YI;var e=_.Mf(new _.Lf,310);c.WO([d],e).then(function(f){if((f=f[d])&&f.uc()){var h=f.getCapabilities();h&&_.Oe(h)&&(f=f.uc(),GEc(a,f,b))}else GEc(a,null,b)});return}if(c.getItem().uc()&&_.Oe(c.getItem().getCapabilities())){c=c.getItem().uc();GEc(a,c,b);return}}GEc(a,
null,b)}}},GEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!zL(d.getItem()))return}d=b||"subscribed";a.eR[d]||(a.eR[d]=[]);a.eR[d].push(c);b&&(xM(a.context).addCallback(function(e){e.exa(b)}),IEc(a.context.eMa,b))},JEc=function(a,b){if(!_.jJ(b)){var c={},d;for(d in a.eR){c.sU=d;for(var e=0;e<a.eR[c.sU].length;e++)if(_.uj(b,a.eR[c.sU][e])){_.wa(a.eR[c.sU],e);"subscribed"!==c.sU&&xM(a.context).addCallback(function(f){return function(h){h.sJa(f.sU,!1)}}(c));return}c={sU:c.sU}}}};
var KEc=function(){this.H=new Map;this.O=[];this.V=[]};
KEc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();OK(e)&&(a?(e=a.getItem().yf())&&_.z(e,1)&&(1===_.ye(e)||3===_.ye(e))&&(e=_.z(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&&!_.uj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var LEc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},MEc=function(a){a.O=[];a.V=[]};
var NEc=function(a,b){tyc.call(this,a.clone(),b.Lm(),b.Xc,b.Be());this.context=b};_.K(NEc,tyc);NEc.prototype.W=function(a){var b=new Map;a.V().forEach(function(c){var d=a.clone();d=_.jj(d,2,[c]);b.set(c,d)});return b};NEc.prototype.V=function(a){a=a.Bd()[0];this.context.Jf.$k([a],1,void 0,!0,this.request.H())};NEc.prototype.ha=function(a){this.context.Jf.$k([],1,a,!1,this.request.H())};NEc.prototype.ka=function(a){a=_.CI(_.rI(new _.qI,a));this.context.Jf.Co([a])};
var OEc=function(a,b,c,d){vM.call(this,a);this.Bg=b;this.request=c;this.Dd={};d&&this.$k(d,!0)};_.K(OEc,vM);_.g=OEc.prototype;
_.g.refresh=function(){var a=this;this.Cp=6;var b=CL(this.context.Xc)!==CL(this.context.Xc,this.request.H()),c=[];this.request.V().forEach(function(h){var k=a.Dd[h];k&&k.getItem().Vh()&&!b||c.push(h)});if(0===c.length)return this.$k([],!1),_.Oh();var d=this.request.clone();_.jj(d,2,c);var e=new NEc(d,this.context),f=_.Rh();this.context.Ij().Me()?(this.Oc.listen(this.context.Ij(),"rb",function(h){h.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),a.KA(),e.nh().then(f.resolve,f.reject,f))}),this.Cp=0<_.Xa(this.Dd)?
1:2):(this.context.xk().Me()&&(this.Cp=0<_.Xa(this.Dd)?1:2),this.KA(),e.nh().then(f.resolve,f.reject,f));return f.promise};_.g.ija=function(a){return this.context.Pl.equals(a,this.request)&&jnc(_.bK(this.Bg),a.H())};_.g.lk=function(a){var b=new _.jK;b.Dc(this.Cp);b.ti(this.We());qsc(b,_.Va(this.Dd,function(c){return c?c.getItem():null}));bDc(this,a.H(),b.kt());return b};_.g.resize=function(){};_.g.jd=function(){return this.request};_.g.getSize=function(){return _.Xa(this.Dd)};
_.g.qw=function(a){var b=this.zs(a.O),c=this.zs(a.H);if(b||c)c?(this.Dd[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Dd[a.id]=null,a.O.count--);else return!1;return!0};_.g.zs=function(a){return!!a&&this.request.V().includes(a.getId())};
var zM=function(a,b,c,d,e){vM.call(this,a);var f=this;this.V=0;this.Dd=[];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.Fa=gL(this.context.Pl,b);this.bw=new tDc(this.context,this.request,!1,e);b=this.request.Lc()&&nvc(this.request.Lc());var h=this.context.Tv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.WEa=!b||!dvc(this.request)||_.KI(_.fI(a.Xc));
this.Ia=Wwc(this.request);c&&this.$k(c,!d);this.wa=_.wj(a.Xc.Tf(),16,36E5);_.JJ(this.request)&&this.Oc.listen(this.context.qia,"Bb",this.Ka);_.ef(this,function(){(0,_.ca)(f.bw);f.clear()})};_.K(zM,vM);zM.prototype.refresh=function(){this.log(this.pN()+" | Refresh called, currently "+this.getSize()+" items cached");return PEc(this,!1)};
var PEc=function(a,b){a.Cp=6;if(_.R(a.request,48,!1))return a.Cp=1,_.Oh();if(_.JJ(a.request)){var c=QEc,d=a.context.qia.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return REc(a,b)};zM.prototype.initialize=function(){return this.count>=this.request.xi()||1===this.Cp?_.Oh():this.refresh()};zM.prototype.clear=function(){SEc(this)};
var SEc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},QEc=function(a,b){_.n.clearTimeout(a.Ba);a.Ba=_.n.setTimeout(function(){return PEc(a,!0)},b)};zM.prototype.Ka=function(){Date.now()-this.ta>this.wa&&QEc(this,0)};
var REc=function(a,b){a.bw&&(a.Oc.Uc(a.bw,"yb",a.iua),a.Oc.Uc(a.bw,"zb",a.pPa),a.bw.dispose());var c=a.request.re();c&&_.Nf(c,!1);a.bw=new tDc(a.context,a.request,b);a.V=0;a.Oc.listen(a.bw,"yb",function(){return a.iua(a.bw.ha)});a.Oc.listen(a.bw,"zb",a.pPa);return a.vda()};
zM.prototype.vda=function(){var a=this,b=_.Rh();this.context.Ij().Me()?this.Oc.listen(this.context.Ij(),"rb",function(c){c.Me()||(a.Oc.Uc(a.context.Ij(),"rb"),TEc(a,b))}):this.context.xk().Me()?this.Oc.hd(this.context.xk(),[_.VB.$L,_.VB.bV],function(){TEc(a,b)}):TEc(this,b);return b.promise};var TEc=function(a,b){a.KA();_.Vka(qDc(a.bw,a.request.xi()+a.V).dg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=zM.prototype;
_.g.resize=function(a){this.log(this.pN()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.fc(this.Xy)))),d=c.next();!d.done;d=c.next())d=d.value,d=dDc(this.context).Yla(d),b=Math.max(b,d.xi());_.JJ(this.request)?(this.request.cj(b),2!==this.We()&&!this.bw.O&&(b>this.count||a)?this.refresh():this.NJ()):this.request.xi()!==b&&(this.request.cj(b),b>this.count?this.vda():this.NJ())};_.g.jd=function(){return this.request};_.g.pN=function(){return this.Fa};_.g.getSize=function(){return this.Dd.length};
_.g.ija=function(a){return this.context.Pl.equals(a,this.request)};
_.g.lk=function(a){var b=a.xi(),c,d=!1;if(_.kJ(this.request)){var e=this.Dd.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=_.Ek(k.getItem()).filter(function(l){return h.includes(_.y(l,_.lk,1).getId())});k=k.clone();nnc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Ek(l.getItem()).length})}d=xnc(e);c=new _.kK;_.x(c,4,!1);msc(c,f)}else e=this.Dd.slice(0,b),c=new _.eI,erc(c,b<this.Dd.length||!(this.context.Ij().Me()||
this.context.xk().Me())&&1!==this.Cp),_.G(c,7,this.ka),_.x(c,8,this.incompleteSearch),_.jj(c,18,this.ha),d=xnc(e);e=foc(e);bDc(this,a.H(),e);c.iB(e);c.Dc(d?6:this.Cya(b));c.ti(this.We());c.gQ(this.suggestionSessionId);return c};_.g.Cya=function(a){return 1===this.Cp||a<=this.count?1:this.context.Ij().Me()||this.context.xk().Me()?0<this.Dd.length?1:2:6};_.g.iua=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.iCa();this.W=a.V;this.suggestionSessionId=a.Vf()};
_.g.pPa=function(){var a=this.request.xi()-this.count;0<a&&oDc(this.bw)&&(this.V+=a,this.vda())};_.g.$k=function(a,b){_.JJ(this.request)&&SEc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=PL(d.value),c=this.qw(d,!0)||c;b||(1!==this.Cp&&(c=!0),this.Cp=1);if(a=this.H){a:{a=this.Dd;d=this.H||_.Ha;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.vp("ViewCache unsorted after import"),this.context.Tv.sort(this.request,this.Dd));c&&(this.IY(),UEc(this,b))};
var UEc=function(a,b){_.jl(a.request).length&&a.Dd.length&&a.context.O_.then(function(c){var d=dL(a.context.kk(),106024,a.ma);if(d){var e=_.jl(a.request)[0].Wa(),f=_.y(_.hK(d),yrc,18);if(!f){f=new yrc;var h=_.hK(d);_.G(h,18,f)}f=_.x(f,1,!b);c=_.x(f,2,c===e).fw(a.Dd.length);_.x(c,4,a.context.Jf.Wo());a.ma=d;d.Bj()}})};_.g=zM.prototype;
_.g.qw=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.zs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.vp("Updating different wrapper from the existing one"):this.vp("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.VMa(f,a.H):(this.DJ(f),_.JJ(this.request)&&QEc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.qS(a.H)}else return!1;return!0};_.g.qS=function(a){this.H?Ymc(this.Dd,a,this.H):this.Dd.push(a);a.count++;VEc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.DJ=function(a){if(this.H){var b=this.Dd,c=_.Ia(b,a,this.H);0<=c&&_.wa(b,c)}else _.ya(this.Dd,a);a.count--;VEc(a)&&this.count--;this.O.delete(a.getId())};_.g.MAa=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.oa(this.Dd,a)};_.g.VMa=function(a,b){this.H&&0!==this.H(a,b)?(this.DJ(a),this.qS(b)):(this.Dd[this.MAa(a)]=b,b.count++,VEc(b)&&this.count++,a.count--,VEc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.zs=function(a,b){if(!a)return!1;if(this.WEa&&!_.JJ(this.request)){if(b)return!0;if(!this.Ia){var c=a.getId();b=!!this.Dd.find(function(e){return c===e.getId()},this);a=AL(this.context.Bt,this.request,a.getItem());return b&&a}}if(!AL(this.context.Bt,this.request,a.getItem()))return!1;var d=1.2*this.request.xi();if(1===this.Cp||!this.H||Quc(a.V,2)||this.count<d||b||Cnc(a.getItem()))return!0;b=0===this.Dd.length?null:this.Dd[this.Dd.length-1];return!!b&&0>=this.H(a,b)};
_.g.NJ=function(){this.log(this.pN()+" | Evict called");if(1!==this.Cp&&!this.context.Ij().Me()&&!this.context.xk().Me()){var a=1.2*this.request.xi();if(!(a>=this.count||this.bw&&a>=this.bw.$b())){a=this.count-this.request.xi();for(var b=this.Dd.length-1;0<=b&&0<a;b--){var c=this.Dd[b];Quc(c.V,2)||Cnc(c.getItem())||(c.count--,VEc(c)&&this.count--,this.O.delete(c.getId()),_.wa(this.Dd,b),a--)}REc(this,!1)}}};
_.g.vp=function(a){var b=new _.Gc;_.tI(b,2);_.uI(b,6);_.Do(b);this.context.dispatchEvent(new _.Ic(new _.Hc(a,b)))};var VEc=function(a){return!Quc(a.V,2)&&3!==a.getItem().Kv()};zM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};zM.prototype.wUa=function(a){var b=this,c=_.jl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Jf.bm.H(d.Wa()))&&_.Q(d,108)}),jwc(this.context.kua,a,c))};zM.prototype.vUa=function(){this.NJ()};
zM.prototype.X0a=function(a){return 1!==this.Cp&&a.xi()>this.count&&this.bw.O};
var WEc=function(a,b,c,d,e,f){_.N.call(this);this.V=a;this.ka=b;this.H=c;this.W=d;this.O=e;this.ha=f;this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(WEc,_.N);
var ZEc=function(a,b,c){var d,e,f,h;if(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))if(null===(e=a.O.get(b))||void 0===e||!e.H){if(c&&(null===(h=null===(f=a.H)||void 0===f?void 0:_.IJ(f))||void 0===h?0:_.R(h,19,!1)))return XEc(a,b);void 0!==c&&YEc(a,b,!c)}return Promise.resolve([])},XEc=function(a,b){var c=_.pga(new _.Af,[(new _.Kd).Hb(b)]),d=new wM(a.V,a.ka,a.H,a.W,a.ha,c,!1,!0);a.log("Paginating to cache more items for "+b);var e=new _.bn;a.Oc.listen(d,"wb",function(f){e.resolve(f.changes)});
qDc(d,1E3).then(function(){e.resolve([]);YEc(a,b,!oDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},YEc=function(a,b,c){var d;a.log("Setting hasAllImmediateChildren for "+b+" to "+c);null===(d=a.O.get(b))||void 0===d?void 0:Suc(d,c)};WEc.prototype.log=function(a,b){this.V.log("drive.ds.sync.ProgressiveSyncer",a,void 0===b?"info":b)};
var AM=function(a,b){var c;_.N.call(this);var d=this;this.V={};this.ha=new KEc;this.Oc=new _.nf(this);this.Ja(this.Oc);this.context=a;this.Bg=b;this.H=this.context.Xc;this.St=new $wc(a.Pl,a.Be());this.context.kk().W.H=this.St;if(null===(c=_.IJ(this.H))||void 0===c?0:_.R(c,15,!1))b=new Swc(a.Bt,a.Tv),this.St.add(b),a.Gga.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.St)||void 0===e?void 0:e.O)||void 0===f?void 0:QL(f,!(null===(k=null===(h=d.St)||void 0===h?void 0:h.H)||void 0===k?0:k.MD))});
this.O=new cvc(a.O_,a.Bt,a.Tv);_.Q(a.Xc,60)&&(this.Ba=new EEc(a.Bt,a.Tv));this.W=new Wuc(a.Be(),this.Bg);this.bm=new fvc(this.Bg,this.context.Pl,this.O,this.W);this.context.kk().W.V=this.bm;this.YI=new vDc(this.context,this.Bg,this.V,this.O);this.PIa=new FEc(this.context,this.O);this.ma=new wEc(this.context,this);_.ef(this.ma,function(){d.ma=null});this.wa=pnc(_.bK(this.Bg),$Ec);NL(this.context.Oj,["NSockf"],function(){return d.initialize()});NL(this.context.Oj,["NSockf","jroI5d"],function(){if(_.y(d.H,
_.Ak,12))var e=_.y(d.H,_.Ak,12);else{e=_.Chc(_.Ehc(new _.lk,_.UJ(_.fI(d.H))),!0);e=_.x(e,6,1);var f=_.C(_.fI(d.H),6,"");f&&e.Nb(f);e=_.bWb(_.Mhc(_.Nhc(_.hG((new _.Ak).Nb(d.context.Cu()).setTitle(_.C(d.H,38,"My Drive")),"application/vnd.google-apps.folder").Qo(!1),e),[e]),1);e=_.x(e,29,!0);e=_.x(e,63,!0);f=new _.rk;f=_.x(f,1,_.R(d.H,6,!0));f=_.x(f,2,!1);f=_.x(f,3,!1);f=_.x(f,4,!1);f=_.x(f,5,!1);f=_.x(f,6,!0);f=_.x(f,7,!0);f=_.x(f,10,!1);f=_.x(f,11,!1);f=_.Fhc(f,!1);f=_.x(f,12,!1);f=_.x(f,8,!1);f=_.x(f,
9,!1);f=_.x(f,21,!1);e=_.QJ(e,f)}d.$k([e],1);OL(d.context.Oj,"hVFf7")});this.ka=_.Rh();NL(this.context.Oj,["BNEDtc"],function(){d.ka.resolve()});this.Kq=new yxc(this.H,this.context.Be(),a.Lm(),this.context.kk(),this.context.wY.promise);_.mI(this.H)&&this.Oc.listen(this.Kq,"vb",this.ta);this.qPa=new _.Tjc(this.H,this.bm);this.Fa=new WEc(a.Be(),a.Lm(),a.Xc,this.bm,this.O,a.dispatchEvent)};_.K(AM,_.N);
AM.prototype.ta=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=_.z(d.value,1);for(var e=this.Kq.Hd(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.Kq.H.get(d),e=!(!d||1!==d.We()&&4!==d.We()||3===ixc(d));e&&a.add(h)}b=[];c=_.m(c);for(h=c.next();!h.done;h=c.next())h=h.value,(d=this.O.get(h))?(h=d.getItem().clone(),aFc(this,h),b.push(Pwc(d,new yL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");bFc(this,b,[]);this.context.Ts.update(6);a.size&&this.YI.WO([].concat(_.fc(a)),_.Mf(new _.Lf,311))};AM.prototype.initialize=function(){this.ma.nh()};
AM.prototype.Zh=function(a,b){if(b instanceof _.Af){b=BL(this.context.Pl,b);var c=b.H();Yuc(this.W,c);HEc(this.PIa,b);b=cFc(this,b);b.cache.Zh(a)}else if(b instanceof _.aG)b=dFc(this,b),c=b.H(),Yuc(this.W,c),b=eFc(this,b),b.cache.Zh(a);else if(b instanceof _.RH){c=yM(this,b);var d=this.V[c];d?(3==d.pW()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Rv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new QDc(this.context,this.Bg,b),d.refresh().then(null,_.bg),sEc(this,c,d),b={cache:d,Rv:!0});b.cache.Zh(a)}else if(b instanceof _.fG)c=b.H(),d=this.W,Xuc(d,d.H,d.O,c),b=eFc(this,b),b.cache.Zh(a);else throw Error("Jg");return b.Rv};AM.prototype.dk=function(a,b){if(b instanceof _.Af)b=BL(this.context.Pl,b),JEc(this.PIa,b);else if(b instanceof _.aG)b=dFc(this,b);else if(!(b instanceof _.RH||b instanceof _.fG))throw Error("Jg");b=yM(this,b);var c=this.V[b];c&&(c.dk(a),c.isDisposed()&&delete this.V[b])};
var yM=function(a,b){return gL(a.context.Pl,b,2)},cFc=function(a,b){var c,d,e=yM(a,b),f=a.V[e];if(f)return 3==f.pW()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,Rv:!1};var h=[],k=5;f=!1;for(var l=axc(a.St),p=0;p<l.length;p++){var q=l[p];k=q.XE(b);if(5!=k){l=1==k?void 0:b.xi();if((null===(c=_.IJ(a.H))||void 0===c?0:_.R(c,18,!1))&&q instanceof Swc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.sma(b,l);var r=q.We();var v=q instanceof RL?q.Jy():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.getSize()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Ij().Me()||a.context.xk().Me())h=h.concat(a.O.query(b,1)),_.Ga(h,void 0,function(A){return A.getId()}),k=(k=a.St.H)&&k.l9&&5!=k.XE(b)?k.XE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var w=new zM(a.context,b,h,1==k,v);r&&w.ti(r);
w.$k(a.O.query(b,2),1!=k);r=w.initialize();(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,18,!1))&&f&&r.then(function(){return xM(a.context)}).then(function(A){return A.SZa().AXb()}).then(function(){var A,B;if(w.isDisposed())a.log("Partial Caching dark launch: ViewCache is disposed skipping match check for "+e);else{var E=w.lk(b).Bd().map(function(T){return T.getId()}),I=(null===(B=null===(A=a.St)||void 0===A?void 0:A.O)||void 0===B?void 0:B.lk(b,b.xi()).Bd().map(function(T){return T.getId()}))||[],M=
_.La(E.sort(),I.sort()),P=dL(a.context.kk(),106030);P&&(Drc(Crc(Brc(Rrc(P),E.length),I.length),M),P.Bj());M?a.log("Partial Caching dark launch: Network/Cache match for "+e):a.log("Partial Caching dark launch: Network/Cache mismatch for "+e+("\nNetwork: "+E.length+".  Cache: ")+(I.length+".\nNetwork: ")+(E+".\nCache: ")+(I+"."),"warning")}},function(){a.log("Partial Caching dark launch: Error waiting for changelog processing.Won't be checking match for "+e,"warning")});r.then(null,function(A){A=_.vI(A);
_.Do(A);a.context.dispatchEvent(new _.Ic(new _.Hc("Error during view cache init",A)))});sEc(a,e,w);return{cache:w,Rv:!0}},eFc=function(a,b){var c=yM(a,b),d=!1,e=a.V[c];if(e&&e.ija(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.V()),h;b instanceof _.aG?h=new kDc(a.context,a.Bg,b,f):h=new OEc(a.context,a.Bg,b,f);f.length&&h.ti(8);h.refresh().then(null,_.bg);b=h;d=!0;sEc(a,c,b);e?(fFc(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,Rv:d}};AM.prototype.SW=function(){return Object.values(this.V).filter(function(a){return a.jd()instanceof _.RH})};
AM.prototype.y5a=function(a){for(var b=_.Mf(new _.Lf,309),c=[],d=_.m(Object.entries(this.W.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=wvc(this.context.Pl,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.YI.WO([a],b,!1,c))};
var aDc=function(a,b,c){c&&c.length&&$uc(a.W,b,c);_.mI(a.H)&&Ixc(a.Kq,b)},HDc=function(a,b,c){var d,e,f;if(b instanceof QDc){var h=yM(a,b.jd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof Qwc&&a.St.remove(b);h=new Map;var k=a.O.Dy(),l=new Map(k);k=[];for(var p=_.m(b.Dy()),q=p.next();!q.done;q=p.next()){q=q.value;var r=q.getId(),v=a.O.get(r);if(v){var w=v.getItem().Kv();(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))&&!0===q.H&&Suc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new Owc(q.getId(),q,v));l.delete(r)}else{r=PL(q);if(null===(e=_.IJ(a.H))||void 0===e?0:_.R(e,15,!1))null===(f=a.St.O)||void 0===f?void 0:f.update(r);a.O.update(r);a.ha.update(r);_.mI(a.H)&&a.Kq.GP(r)}_.mI(a.H)&&aFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(PL(q.value));a.log("Applying "+k.length+" updates to newly added CorpusCache");k=_.m(k);for(l=k.next();!l.done;l=k.next())b.update(l.value);b instanceof QDc?(k=yM(a,b.jd()),
sEc(a,k,b)):a.St.add(b);k=[];h=_.m(h.values());for(l=h.next();!l.done;l=h.next())l=l.value,p=new _.qI,_.rI(p,l.getId()),p.setItem(l),k.push(p);a.Co(k);a.log("Merged cache: "+b.getType());b instanceof VL&&c.forEach(function(A){a.context.lua.propagate(A)});b instanceof RL&&gFc(a,b.jd(),!b.H);a.context.Ts.update(3)},gFc=function(a,b,c){var d;(null===(d=_.IJ(a.H))||void 0===d?0:_.R(d,15,!1))&&(b=Fvc(b))&&ZEc(a.Fa,b,c).then(function(e){a.Co(e)})},fFc=function(a,b){(new Set([].concat(_.fc(a.Xy)))).forEach(function(c){b.Zh(c);
a.dk(c)})};
AM.prototype.$k=function(a,b,c,d,e){var f=this;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.fc(c.H().filter(function(A){return!_.bK(f.Bg).includes(A)}))):[]);c&&c instanceof _.Af&&_.JJ(c)&&hFc(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new yL(p,void 0,b),r=this.O.get(p.getId()),v=r?r.getItem():null,w=iFc(this,r,q);if(null!=w)q.VA(w),jFc(this,v,p),Bnc(p),p=Uuc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.mI(this.H)&&aFc(this,p);!r||kFc(this,v,p,e)?(k.push(Pwc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.Af&&(gFc(this,c,d),(a=dxc(this.St,c))&&a.$k(h,!!d)),c=yM(this,c),(a=this.V[c])&&a.$k(h,!!d));0<k.length&&(_.mI(this.H)&&k.forEach(function(A){return f.Kq.GP(A)}),bFc(this,k,e,a?[a]:[]),lFc(this,h));dDc(this.context).i$()};
var aFc=function(a,b){Kxc(a.Kq,b)||5!=b.Kv()||_.Rhc(b,1)},kFc=function(a,b,c,d){(b=b?_.vb(b.clone(),82):null)&&aDc(a,[b],d);c=_.vb(c.clone(),82);aDc(a,[c],[]);return!_.uj(b,c)},hFc=function(a,b,c){mFc(a,b,c);b.forEach(function(d,e){var f=a.bm.H(d.getId());f&&(NK(f,d,[1002]),NK(f,d,[1003]),NK(f,d,[1005]),b[e]=f);_.jJ(c)&&0<_.re(c,33).length&&_.Shc(d,_.re(c,33)[0])})},mFc=function(a,b,c){var d;_.jJ(c)?d="quick access":_.kJ(c)?d="people predict":_.lJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},OCc=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.$k(foc(d),b)};AM.prototype.Xma=function(a){this.qPa.Xma(a)};
AM.prototype.Co=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=_.BI(e)?null:e.getItem(),h=e.qc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new yL(f,void 0,void 0,_.z(e,1)||void 0);var p=iFc(this,h,l);if(null==p)continue;l.VA(p);jFc(this,k,f);_.R(e,5,!1)&&enc(f,unc);Bnc(f);f=Uuc(f,k);l.setItem(f);_.mI(this.H)&&aFc(this,f)}if(k&&!f||f&&kFc(this,k,f,[]))this.context.eMa.Qy(e),c.push(Pwc(h,l))}_.mI(this.H)&&c.forEach(function(q){return b.Kq.GP(q)});bFc(this,c,[])};
var jFc=function(a,b,c){b&&!c.Wm()&&NK(c,b,a.wa);var d=b?b.yf():null,e=c.yf();e=e?_.we(e):null;d&&e&&jFc(a,_.we(d),e);b&&!_.Dk(c)&&NK(c,b,[1002]);b&&!_.Ek(c).length&&NK(c,b,[1003]);b&&!_.Fk(c).length&&NK(c,b,[1005]);b&&_.Q(b,31)&&!_.Q(c,31)&&(enc(c,unc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};AM.prototype.PB=function(a,b){if(a instanceof _.Af||a instanceof _.aG||a instanceof _.RH)a=yM(this,a),(a=this.V[a])&&a.HY(b);else throw Error("Jg");};
var iFc=function(a,b,c){var d=c.getItem();if(fyc(a.context.Hga,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.Kv()&&!zL(a)&&!zL(d)&&a.uc()==d.uc())if(a.nj()&&d.nj()){if(a.nj()>d.nj())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Nq()>d.Nq())return null}return Ruc(b&&b.V,c.V)};AM.prototype.fG=function(a,b){(a=this.O.get(a))&&a.VA(Ruc(a.V,b))};
var bFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.IJ(a.H))||void 0===e?0:_.R(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&Suc(h.H,h.O.H);h=_.m(b);for(f=h.next();!f.done;f=h.next())f=f.value,a.W.update(f.id,f.H?f.H.getItem():null,c);c=Object.values(a.V);d=_.m(d);for(h=d.next();!h.done;h=d.next())_.ya(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())cDc(h.value,b);d=new Set;h=axc(a.St);c=_.m(h);for(h=c.next();!h.done;h=c.next()){f=h.value;var k=_.m(b);
for(h=k.next();!h.done;h=k.next())h=h.value,f.update(h)&&d.add(h.id);f instanceof VL&&f.getSize()>=1.2*f.limit&&nFc(a.context.eMa,f.uc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.Q(a.H,60)&&a.Ba.update(h),a.O.update(h),a.O.get(h.id)||a.W.NJ(h.id),a.ha.update(h);d.size&&a.context.Ts.Loa(d.size);oFc(a)},oFc=function(a){var b=a.ha.O.slice(0),c=LEc(a.ha);MEc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Lf;_.Mf(d,308);a.YI.WO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=gvc(a.bm,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().yf(),k=a.bm.H(_.z(h,1));k&&(_.G(h,5,k),_.x(h,4,1),e.push(f))});OCc(a,e)}},pFc=function(a){dDc(a.context).i$();a.O.NJ()},dFc=function(a,b){_.Ka(b.H());var c=_.oa(b.V(),"root");if(0>c)return b;b=b.clone();b.V()[c]=a.context.Cu();return b},lFc=function(a,b){a.ka.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().Kv()});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+
c.length+" partial items. "+c);var d=_.Mf(new _.Lf,311);a.YI.WO(c,d)}})},DEc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={r6:c.r6,nsa:c.nsa},e=d.next()){e=e.value;if(dxc(a.St,e))break;c.r6=new RL(a.context.Bt,a.context.Tv,a.context.Pl,e);e=new BDc(a.context,c.r6,e);c.nsa=$L(a.context.Bx,null);e.nh().then(function(f){return function(){EDc(f.r6,f.nsa).then(function(h){HDc(a,f.r6,h)})}}(c)).then(function(){aM(a.context.Bx,null)},function(){aM(a.context.Bx,null)})}})};
AM.prototype.Wo=function(){var a=this.St.H;return a&&a.MD?1:2};AM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var sEc=function(a,b,c){a.V[b]=c;a.log(b+" | Set cache with "+c.getSize()+" items")},$Ec=[50];
var rFc=function(a){_.N.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Jk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Rh();this.wa=c.promise;dAc(this.context.UD).then(function(d){b.H=d||[];c.resolve();qFc(b)},function(){return c.resolve()});NL(this.context.Oj,["rVezo"],(0,_.L)(this.W,this))};_.K(rFc,_.N);
var IEc=function(a,b){_.R(a.context.Xc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.ya(a.H,b);for(Vuc(a.context.Jf.bm.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.va(a.H,b,0);a.H.length>2*_.wj(a.context.Xc,47,5);)a.H.pop();a.context.UD.set(Yzc,a.H)}a.context.Jf.St.SW().length+a.O.size<_.wj(a.context.Xc,47,5)&&(qFc(a),a.W())})},sFc=function(a,b){_.ya(a.H,b)&&a.context.UD.set(Yzc,a.H)};
rFc.prototype.Qy=function(a){this.context.lua.propagate(a);if(zL(a)){var b=a.uc();_.BI(a)?nFc(this,b,!0):(a=a.getItem(),Vuc(a)&&sFc(this,b))}};var nFc=function(a,b,c){sFc(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.Jf.St;for(var e=d.SW(),f=0;f<e.length;f++){var h=e[f];if(h.uc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Ts.update(3);break}}xM(a.context).addCallback(function(k){k.sJa(b,c)});a.W()};
rFc.prototype.W=function(){if(this.context.Oj.H("rVezo")){var a=this.context.Jf.St;tFc(this);for(var b={};this.V.$b()&&!(this.ha>=_.wj(this.context.Xc,47,5));){var c=_.Kk(this.V);this.ha++;cxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Zfa=new _.hhc,_.x(b.Zfa,1,c),this.context.Lm().then(function(d){return function(e){return e.Qe(d.Zfa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Zfa:b.Zfa}}}};
var qFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},tFc=function(a){_.n.clearTimeout(a.ka);a.ka=_.n.setTimeout(function(){qFc(a);a.W()},36E5)};rFc.prototype.ta=function(a,b){var c=_.z(b,1);c&&c>_.wj(this.context.Xc,48,1E3)?(this.log(a,"Too large to backfill: "+_.z(b,1)),uFc(this,a,!1)):vFc(this,a)};
rFc.prototype.ma=function(a,b){(b=_.vI(b).Wj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.CI(_.ngc(_.rI(new _.qI,a),a)),this.context.Jf.Co([a])):vFc(this,a)};
var vFc=function(a,b){var c=new VL(a.context.Bt,a.context.Tv,b),d=c.jd().clone();d.cj(_.wj(a.context.Xc,48,1E3));d=new BDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=$L(a.context.Bx,b);xM(a.context).addCallback(function(f){f.exa(b)});d.nh().then(function(){wFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;uFc(a,b,!0)}).then(function(){aM(a.context.Bx,b)},function(){aM(a.context.Bx,b)})},wFc=function(a,b,c,d){c.MD?(c.aY(),EDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.getSize());HDc(a.context.Jf,c,e);uFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");uFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),uFc(a,b,!0))},uFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&xM(a.context).addCallback(function(e){e.sJa(b,!1)});a.W();0<a.O.size||a.context.Jf.St.SW().map(function(e){return e.uc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){nFc(a,e,!0)})};
rFc.prototype.log=function(a,b){this.context.Be().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var xFc=function(){_.N.apply(this,arguments)};_.K(xFc,_.N);
var AFc=function(a,b){b=yFc(b);var c=a.getItem(),d=zFc(c.getCapabilities());b.V4.forEach(function(e){_.bWb(e.getItem(),c.Bp());_.QJ(e.getItem(),d.clone())});return b},DFc=function(a,b,c){var d=BFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={MK:c?c:new yL(b),children:[]};CFc(a,d,c);return c},BFc=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().vk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},CFc=
function(a,b,c){var d=c.MK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(CFc(a,b,{MK:e,parent:c,children:[]}))});return c},FFc=function(a,b){b=b.children.filter(function(l){return!_.Ck(l.MK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.MK.getItem();if(!c.has(f.getId())){_.bWb(f,a.Bp());EFc(a,f,e.parent?e.parent.MK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.Ck(k.MK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.MK)}}return d},
GFc=function(a){a=a.children.filter(function(h){return!_.Ck(h.MK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.MK.getItem();if(!b.has(e.getId())){c.push(_.CI(_.rI(new _.qI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Ck(f.MK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},yFc=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();_.Ck(e)||_.Q(e,137)?c.push(e):b.push(d)}return{jR:c,V4:b}},zFc=
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);_.x(a,45,c);_.x(a,46,b);_.x(a,30,c);_.x(a,31,b);_.x(a,47,c);_.x(a,32,c);_.x(a,33,b);_.x(a,4,b);_.x(a,9,c);_.x(a,20,b);_.x(a,17,_.Q(a,7));_.x(a,8,_.Q(a,10)||_.Q(a,11));_.x(a,21,_.sk(a));_.vb(a,18);_.vb(a,13);_.vb(a,10);_.x(a,42,_.Q(a,42));_.x(a,43,_.Q(a,43));_.x(a,48,_.Q(a,48));return a},EFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities();_.x(e,30,_.Q(d,30));_.x(e,31,_.Q(d,31));_.x(e,
47,_.Q(d,47));_.x(e,32,_.Q(d,32));_.x(e,33,_.Q(d,33));_.x(e,4,_.Q(d,4));_.x(e,9,_.Q(d,9));_.x(e,21,_.Q(d,21));_.x(e,20,_.Q(d,20));_.x(e,17,_.Q(d,17));_.x(e,1,_.sk(d));_.x(e,7,_.Q(d,7));_.x(e,10,_.Q(d,10));_.x(e,11,_.Q(d,11));_.x(e,45,_.Q(d,45));_.x(e,46,_.Q(d,46));_.x(e,48,_.Q(d,48));_.x(b,137,_.Ck(a));c&&(a=c.getCapabilities(),PK(b)?(_.x(e,8,_.Q(a,43)),_.x(e,43,_.Q(a,43)),_.x(e,42,_.Q(a,42))):_.x(e,8,_.Q(a,42)))};
var HFc=function(a){this.context=a;this.V=new xFc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Mf(new _.Lf,306);this.H=a.Jf};
HFc.prototype.propagate=function(a){if(zL(a))_.BI(a)?IFc(this,a):JFc(this,a);else if(_.R(this.context.Xc,86,!1)){var b=a.qc(),c=this.H.bm.H(b);var d=c&&c.uc();var e=a.getItem()&&a.getItem().uc();if(!c||!d||!PK(a.getItem()||c)||e&&e!==d)d=!1;else if(d=!!_.Ck(c),!_.BI(a)){e=a.getItem();var f=e.Bp()!==c.Bp();d=_.Ck(c)!==_.Ck(e)||d&&f}if(d)if(_.BI(a)){if(a=KFc(this,c.uc()),c=this.V,d=(new _.Ak).Nb(b),a=(a=DFc(c,d,a))?GFc(a):[],this.context.Jf.Co(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=dL(this.context.kk(),106009))c=Orc(b),_.x(c,2,a.length),b.Bj()}else if(b=a.getItem(),c=KFc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=DFc(d,b,c))?FFc(b,c):[],OCc(this.context.Jf,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=dL(this.context.kk(),106010))c=Orc(a),_.x(c,1,b.length),a.Bj()}};
var IFc=function(a,b){var c=b.qc();b=KFc(a,c);b=yFc(b);var d=_.zf(b.V4,function(e){return _.CI(_.rI(new _.qI,e.getId()))});a.context.Jf.Co(d);a.H.YI.WO(b.jR.map(function(e){return e.getId()}),a.O,void 0,void 0,b.jR.map(function(e){return _.fl((new _.dl).Nb(e.getId()),_.Gk(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.jR.length+" divergent items"));if(a=dL(a.context.kk(),106016))c=Prc(a),_.x(c,1,b.jR.length),_.x(c,2,b.V4.length),a.Bj()},JFc=function(a,b){var c=b.qc(),d=KFc(a,c),e=a.H.bm.H(c);
b=AFc(b,d);OCc(a.context.Jf,b.V4);a.H.YI.WO(b.jR.map(function(h){return h.getId()}),a.O,void 0,void 0,b.jR.map(function(h){return _.fl((new _.dl).Nb(h.getId()),_.Gk(h))}));a.log(c,"SD update | Update "+b.V4.length+" item(s), "+(b.jR.length+" divergent items"));if(d=dL(a.context.kk(),106017)){var f=Prc(d);_.x(f,1,b.jR.length);_.x(f,2,b.V4.length);d.Bj()}e||zDc(a.H.YI,c)},KFc=function(a,b){var c=new _.Af;_.ll(c,[b]);_.ml(c,2);return ivc(a.H.bm,c)};
HFc.prototype.log=function(a,b){this.context.Be().info(this.logName,a+": "+b)};
var LFc=function(a,b,c){this.H=a;this.V=b;this.HJ=c},PFc=function(a,b,c){if(b.uW().length){var d=byc(a.H,b.qc());if(d){var e=d?cyc(a.H,b):[];for(var f={},h=_.m(b.uW()),k=h.next();!k.done;f={NI:f.NI},k=h.next())if(k=k.value,f.NI=MFc(e,k.Jm(),b.qc()),_.Q(k,3))iyc(a.H,f.NI),c.then(function(r){return function(){var v=Sxc(r.NI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=Sxc(r.NI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.yb(k,_.YF,2)),p=l.next();!p.done;p=l.next())NFc(a,f.NI,p.value);
k=_.m(_.re(k,4));for(l=k.next();!l.done;l=k.next())OFc(f.NI,l.value);a.H.JD([f.NI],!1,-1);c.then(function(r){return function(){return void a.H.fG(r.NI.getName(),-2)}}(f),function(r){return function(){a.H.fG(r.NI.getName(),-2)}}(f))}e=a.Zc(d.lk().response)}}e=e?e:a.Zc();var q=e.g7a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.xd(r));a.handleError(b.qc(),r)});return e};LFc.prototype.Zc=function(a){a=void 0===a?new KL:a;return new Rvc(a.Dc(1))};
var MFc=function(a,b,c){var d=a.find(function(e){return Rxc(e.getName(),b)});d||(d=swc((new JL).$c(b),c),a.push(d));return d};LFc.prototype.handleError=function(a,b){myc(this.V,a);a=_.vI(b);_.x(a,21,"Server error updating metadata after optimistic application.");this.HJ(a)};
var NFc=function(a,b,c){var d=b.H().find(function(e){return e.getId()===c.getId()});d||(d=new hL,d.Nb(c.getId()),rwc(b,b.H().concat([d])),QFc(d,c));if(1===iL(d))d.setBooleanValue(_.Q(c,3));else if(12===iL(d))d.setDateStringValue(_.z(c,17));else if(2===iL(d))d.setTextValue(_.z(c,4));else if(3===iL(d))_.re(c,6).length?d.zqa(_.re(c,6)):_.re(c,5).length&&(a=_.re(d,7).concat(_.re(c,5)),d.zqa(a));else if(4===iL(d))d.setLongTextValue(_.z(c,7));else if(5===iL(d))d.setSelectionValue(_.z(c,8));else if(6===
iL(d))_.re(c,10).length?d.vqa(_.re(c,10)):_.re(c,9).length&&(a=d.bPa().concat(_.re(c,9)),d.vqa(a));else if(7===iL(d))d.setIntegerValue(_.z(c,11));else if(8===iL(d))_.re(c,13).length?d.mqa(_.re(c,13)):_.re(c,12).length&&(a=_.re(d,12).concat(_.re(c,12)),d.mqa(a));else if(10===iL(d))d.setUserValue(a.O(_.z(c,14)));else if(11===iL(d))_.re(c,16).length?Isc(d,_.re(c,16).map(a.O)):_.re(c,15).length&&Isc(d,d.b_a().concat(_.re(c,15).map(a.O)));else throw new _.Hc("Optimistic Applier: Unsupported value type "+
(iL(d)+"."),new _.Gc);},OFc=function(a,b){if(a=a.H().find(function(c){return c.getId()===b}))if(1===iL(a))_.vb(a,5);else if(12===iL(a))_.vb(a,17);else if(2===iL(a))_.vb(a,6);else if(3===iL(a))_.gI(a,7);else if(4===iL(a))_.vb(a,8);else if(5===iL(a))_.vb(a,9);else if(6===iL(a))_.gI(a,10);else if(7===iL(a))_.vb(a,11);else if(8===iL(a))_.gI(a,12);else if(10===iL(a))_.kj(a,15);else if(11===iL(a))_.mj(a,16);else throw new _.Hc("Optimistic Applier: Unsupported value type "+(iL(a)+"."),new _.Gc);},QFc=function(a,
b){_.dj(b,3)?a.jB(1):_.dj(b,17)?a.jB(12):_.dj(b,4)?a.jB(2):_.re(b,6).length||_.re(b,5).length?a.jB(3):_.dj(b,7)?a.jB(4):_.dj(b,8)?a.jB(5):_.re(b,10).length||_.re(b,9).length?a.jB(6):_.dj(b,11)?a.jB(7):_.re(b,13).length||_.re(b,12).length?a.jB(8):_.dj(b,14)?a.jB(10):(_.re(b,16).length||_.re(b,15).length)&&a.jB(11)};LFc.prototype.O=function(a){return _.Dhc(_.Bhc(1),a)};
var RFc=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ka=b;this.wa=c;this.O=d;this.ma=e;this.Bg=f;this.ha=0;this.V=k;this.W=l;this.Ba=h};
RFc.prototype.apply=function(a,b){var c=this;if(!_.HJ(a))return b;var d=null;a instanceof _.YI?d=SFc(this,a,b):a instanceof _.eJ?d=TFc(this,a,b):a instanceof _.xI?d=UFc(this,a,b):a instanceof _.TI?d=VFc(this,a,b):a instanceof _.zJ&&(d=PFc(this.wa,a,b));d&&(this.ha++,this.ka.setActive(!1),a=function(){c.ha--;0==c.ha&&c.ka.setActive(!0)},b.then(a,a));return d?_.Oh(d):b};
var SFc=function(a,b,c){eyc(a.O,b.getId());var d=a.H.bm.H(b.getId());c.then(function(){a.W("VMiG2e")},a.ta.bind(a,b.getId(),d)).then(function(){var e=b.getId();a.O.H.delete(e)},function(){var e=b.getId();a.O.H.delete(e)});c.then(null,function(e){e=_.vI(e);_.x(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},TFc=function(a,b,c){var d=_.z(b,2);d&&a.O.O.push(d);c.then(function(){d&&gyc(a.O,d)&&WFc(a,d,new _.Vjc(1E4,3E5),Date.now()+72E5,5).then(function(){a.W("VMiG2e")},
function(){a.W("VMiG2e")})},function(){d&&_.ya(a.O.O,d)});c.then(null,function(e){e=_.vI(e);_.x(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.GJ).Dc(1)},WFc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Oh();var f=_.Rh(),h=c.Wa();_.ZH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Mf(new _.Lf,1425);l=eoc(!0,1,l);return k.Qe(l).then(function(p){if(p=p.Zc())if(p=p.Bd()[0],!p||(p.Bw()||0)>b){f.resolve();return}WFc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=WFc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},VFc=function(a,b,c){var d=b.uc(),e=a.H.bm.H(d);if(!e)return null;e=e.clone();aDc(a.H,[e],[157]);var f=e.Vh();XFc(f,_.yb(b,_.yk,2));YFc(f,_.yb(b,_.yk,3));a.H.$k([e],-1,void 0,void 0,[157]);c.then(function(){a.H.fG(d,-2)},function(){a.H.fG(d,-2)});c.then(function(h){a.H.$k([_.y(h,_.Ak,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.vI(h);
_.x(h,21,"Server error updating item after optimistic application.");a.V(h)});return jAc(new iAc,e).Dc(1)},XFc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={Pfa:c.Pfa},d=b.next())c.Pfa=d.value,_.yb(a,_.yk,8).some(function(e){return function(f){return f.Jm()==e.Pfa.Jm()}}(c))||_.qj(a,8,c.Pfa,_.yk,void 0)},YFc=function(a,b){var c=b.map(function(d){return d.Jm()});b=_.yb(a,_.yk,8).filter(function(d){return!c.includes(d.Jm())});mnc(a,b)},UFc=function(a,b,c){var d=a.H.bm.H(b.getId());if(!d||
d.uc()&&0==b.Qh()||null!=_.Q(b,40))return null;var e=_.re(b,10),f=_.re(b,9);if(0<e.length&&0<f.length&&(e=Object.values(hvc(a.H.bm,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();ZFc(a,b,h);a.H.$k([h],-1,void 0,void 0,[].concat(_.fc(a.Bg.O)));c.then(function(){return a.H.fG(b.getId(),-2)},function(){a.H.fG(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.vI(k);if(63==k.Wj()){var l=h.getId();_.x(k,22,l);_.x(k,23,f[0])}_.x(k,21,"Server error updating item after optimistic application.");
a.V(k)});return _.Kic((new _.GJ).setItem(h),h.getId()).Dc(1)},ZFc=function(a,b,c){null!=b.Bf()&&c.kl(b.Bf());null!=b.Mi()&&_.Phc(c,b.Mi());null!=b.getMimeType()&&_.hG(c,b.getMimeType());null!=_.z(b,7)&&_.x(c,11,_.z(b,7));null!=_.Q(b,11)&&_.x(c,8,_.Q(b,11));null!=_.Q(b,4)&&c.ox(_.Q(b,4));null!=_.Q(b,16)&&_.x(c,31,_.Q(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Qh()&&(c.Qo(b.Qh()),_.x(c,26,b.Qh()));null!=_.Q(b,18)&&_.JK(Anc(c,!0),_.Q(b,18));_.re(b,8).length&&_.PJ(c,_.re(b,8));if(_.re(b,
9).length){var d=new Set(c.vk());_.re(b,9).forEach(function(p){return d.add(p)});_.PJ(c,[].concat(_.fc(d)))}if(_.re(b,10).length){var e=new Set(c.vk());_.re(b,10).forEach(function(p){return e.delete(p)});_.PJ(c,[].concat(_.fc(e)));var f=c.Yw();f&&_.re(b,10).includes(f)&&_.vb(c,46)}if(!c.Yw()){var h=a.Ba();f=c.vk().find(function(p){var q=a.H.bm.H(p);return q&&!!q.Yw()||p==h});_.x(c,46,f||void 0)}c.vk().length&&(f=a.H.bm.H(c.vk()[0]))&&_.Shc(c,f.uc());if(f=_.y(b,_.vk,25)){var k=_.y(c,_.vk,111)||new _.vk;
null!=_.Q(f,1)&&k.rP(_.Q(f,1));null!=_.z(f,2)&&_.x(k,2,_.z(f,2));_.G(c,111,k)}var l=_.re(c,120);_.re(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.re(b,32).forEach(function(p){_.ya(l,p)});_.jj(c,120,l)};RFc.prototype.ta=function(a,b){var c=this,d=_.cG(new _.aG,[a]);this.ma.then(function(e){return e.Qe(d)}).then(function(e){e=e.Zc().Bd()[0];c.H.$k([e.clone()],1)},function(){b&&c.H.$k([b.clone()],1)})};
var $Fc=function(a){this.H=a};_.K($Fc,_.Mlc);$Fc.prototype.execute=function(a,b,c){var d=_.Mlc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.qNa||b instanceof _.nI&&_.JJ(b.jd()))if(c=dsc(this.H))return c;return b instanceof _.eJ?(c=_.Mf(new _.Lf,1424),a.Qe(eoc(!1,1,c)).then(function(e){(e=e.Zc())&&(e=e.Bd()[0])&&_.dj(e,96)&&b.Wda(e.Bw())},_.bg)):null};
var Aoc=function(a,b){return[aGc,bGc,cGc,dGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},aGc=function(a){return eGc[a.Df()]},bGc=function(a){return fGc[a.getType()]},cGc=function(a){return a.getName()||""},dGc=function(a){return a.getId()||""},BM={},eGc=(BM[5]=0,BM[7]=1,BM[1]=2,BM[3]=3,BM[4]=4,BM[2]=5,BM[6]=6,BM),gGc={},fGc=(gGc[1]=0,gGc[2]=1,gGc[3]=2,gGc[4]=3,gGc);
var hGc=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.Bg=l};
hGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.GJ&&8===b.Cb()))if(a instanceof _.SI||a instanceof _.UI||a instanceof _.Ygc||a instanceof _.rJ||a instanceof _.xI||a instanceof _.BJ||a instanceof _.fhc||a instanceof _.DJ||a instanceof RK){var d=_.AI(b.getItem().clone(),9);this.H.$k([d],1);Hyc(this.ta,b.getItem(),_.bK(this.Bg))}else if(a instanceof _.YI)b=_.CI(_.rI(new _.qI,a.getId())),this.H.Co([b]);else if(a instanceof _.aJ)b=_.CI(_.ngc(_.rI(new _.qI,a.getId()),a.getId())),this.H.Co([b]),
this.ma.propagate(b);else if(a instanceof _.eJ)b=eoc(!0).jd(),b=this.H.bm.query(b).map(function(e){return _.CI(_.rI(new _.qI,e.getId()))}),this.H.Co(b);else if(a instanceof _.WI)this.O.remove(a.Jh());else if(a instanceof _.hJ||a instanceof _.yJ)this.O.put(b.xr());else if(a instanceof _.ZI)zoc(this.H,a);else if(a instanceof _.oD)this.W.remove(a.getKey());else if(a instanceof _.iJ)Boc(this.H,a,_.y(b,_.lk,2));else if(a instanceof _.pD)this.W.put(b.mPa());else if(a instanceof _.VI||a instanceof _.CJ)this.ha.JD([b.un()],
!1);else if(a instanceof _.bJ)this.ha.JD([jyc(a.getId())],!1);else if(a instanceof _.Xgc)this.V.JD(b.response.H(),!1,1);else if(a instanceof _.zJ)a.uW().filter(function(e){return _.Q(e,3)}).forEach(function(e){return c.V.removeItem(e.Jm()||"",a.qc())}),myc(this.ka,a.qc()),this.H.y5a(a.qc());else if(a instanceof _.gK)for(b=_.m(_.yb(a,_.Lsc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.y(d,_.jL,2),d.getType()){case 1:case 2:if(d=this.H.bm.H(d.qc()))d=
_.rI(lrc(),d.getId()).setItem(d.clone()),this.H.Co([d])}}};
var iGc=function(a){this.H=a};
iGc.prototype.translate=function(a){if(a instanceof _.vJ){var b=this.H.H(a.getId());if(!b)return new _.Gc;var c=(new _.xI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Oe(d)||_.Q(d,9)?c.Qo(!0):_.yI(c,!1)}else d=a.getParent(),1===b.Bp()?c.Qo(!0):d?(b=this.H.H(d),!b||_.Q(b.getCapabilities(),7)?grc(c,[d]):_.yI(c,!1)):_.yI(c,!1);return c}if(a instanceof _.wJ)return irc(hrc(grc(frc((new _.xI).Nb(a.getId()),_.re(a,2)),_.re(a,3)),_.Q(a,6)),_.yb(a,_.dl,8));if(a instanceof _.xJ){b=this.H.H(a.getId());
if(!b)return new _.Gc;c=(new _.xI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Oe(d)||_.Q(d,9)?c.Qo(!1):_.yI(c,!0)):(d=a.getParent(),1===b.Bp()?c.Qo(!1):d?(b=this.H.H(d),!b||_.sk(b.getCapabilities())?frc(c,[d]):_.yI(c,!0)):_.yI(c,!0));return c}if(a instanceof _.tK)return new _.Ygc(a);if(a instanceof _.nM)return _.re(a,1).map(function(f){var h=new _.zJ;f=_.x(h,1,f);h=a.uW();f=_.lj(f,2,h);h=a.re();return _.G(f,3,h)});if(a instanceof _.dJ){c=eoc(!1,1).jd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Bw())&&(e=Math.max(e,f))});return Vrc(new _.eJ,a).Wda(e)}return a};
var jGc=function(){};jGc.prototype.validate=function(a){var b=null;a instanceof _.mJ?(a=a.getId()||"",_.Se(a)&&(b="Tried to request backup with no id.")):a instanceof _.XI&&(a=a.getId()||"",_.Se(a)&&(b="Tried to delete backup with no id."));return b?_.vI(b):null};
var kGc=function(a,b){this.H=a;this.O=b},nGc=function(a,b){var c=new _.fM,d=new _.UB;if(b.user){var e=_.DK(a.H,b.user);_.G(d,1,e)}a=lGc(a,b);a=$qc(Zqc(_.Yqc(new _.Owb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.brc(a,_.Nqc(_.Mqc((new _.TB).Dc(mGc.get(e.status)),Number(e.trialMillisRemaining)),_.CK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.crc(a,_.Pqc(_.Oqc(new _.Jwb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&arc(a,b.importFormats.map(function(f){var h=new _.Xqc;h=_.x(h,1,f.source);return _.jj(h,2,f.targets)}));_.G(d,3,a);_.kAc(c,d);b=b.largestChangeId;null!=b&&_.x(c,4,Number(b));return c},lGc=function(a,b){var c;var d=new _.Nwb;d=_.x(d,1,Number(b.quotaBytesTotal));d=_.x(d,2,Number(b.quotaBytesUsed));d=_.x(d,3,Number(b.quotaBytesUsedAggregate));d=_.x(d,4,Number(b.quotaBytesUsedInTrash));d=_.Tqc(_.Sqc(_.Rqc(_.Qqc(d,Doc(b.quotaBytesByService||[])),b.quotaType?oGc.get(b.quotaType):void 0),
Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var e=Number(b.quotaBytesUsedAggregate)-Foc(b);d=_.x(d,9,e);d=_.Uqc(d,Number(b.quotaBytesUsedAggregate));d=_.x(d,11,Number(b.quotaBytesUsedInTrash));d=_.x(d,13,_.ync(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Vqc(d,pGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Mwb;var f=_.T6a(new Date(b.graceQuotaInfo.endDate));e=
_.G(e,1,f);e=_.x(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.G(d,12,e)}if(null===(c=_.IJ(a.O))||void 0===c?0:_.R(c,16,!1)){var h;(a=d.gK())&&(null===(h=null===b||void 0===b?void 0:b.graceQuotaInfo)||void 0===h?0:h.gracePeriodActive)&&a.setActive(!!b.graceQuotaInfo.gracePeriodActive);isNaN(Number(b.individualQuotaBytesTotal))||(h=_.x(d,16,Number(b.individualQuotaBytesTotal)),_.x(h,17,_.ync(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))));b=_.x(d,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},pGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),Eoc=new Set(["POOLED_STORAGE","FAMILY"]),mGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),Coc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),oGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var qGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),rGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),sGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),tGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),uGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),vGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),wGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),xGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),yGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["ACCEPTED",7],["REJECTED",
8],["ACCEPT_DELETED",9],["REJECT_DELETED",10]]),zGc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),AGc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),BGc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),CGc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),DGc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),EGc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),FGc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),GGc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),HGc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),IGc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),JGc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),KGc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),LGc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),SGc=function(a){return a.map(function(b){var c=new _.oAc;if(b.primaryActionDetail){var d=MGc(b.primaryActionDetail);_.G(c,2,d)}b.actors&&(d=NGc(b.actors),_.lj(c,3,d));b.actions&&(d=OGc(b.actions),_.lj(c,4,d));b.targets&&
(d=PGc(b.targets),_.lj(c,5,d));b.timestamp&&c.V(QGc(b.timestamp));b.timeRange&&(b=RGc(b.timeRange),_.pj(c,7,_.hM,b));return c})},OGc=function(a){return a.map(function(b){var c=new _.lAc;if(b.detail){var d=MGc(b.detail);_.G(c,1,d)}if(b.source){d=b.source;var e=new guc;if(d.type){var f=qGc.get(d.type);_.Dj(e,2,f)}d.appId&&_.Cj(e,1,d.appId);_.G(c,2,e)}b.actor&&(d=TGc(b.actor),_.G(c,3,d));b.target&&(d=UGc(b.target),_.G(c,4,d));b.timestamp&&c.V(QGc(b.timestamp));b.timeRange&&(b=RGc(b.timeRange),_.pj(c,
6,_.mAc,b));return c})},PGc=function(a){return a.map(function(b){return UGc(b)})},WGc=function(a){return a.map(function(b){return VGc(b)})},XGc=function(a){return a.map(function(b){var c=new _.Rtc;b.parent&&c.Ug(VGc(b.parent));b.shortcut&&(b=VGc(b.shortcut),_.G(c,2,b));return c})},UGc=function(a){var b=new _.ouc;if(a.driveItem){var c=YGc(a.driveItem);_.pj(b,1,_.sL,c)}if(a.drive){var d=a.drive;c=new _.muc;d.name&&c.$c(d.name);d.title&&c.setTitle(d.title);d.root&&(d=YGc(d.root),_.G(c,3,d));_.pj(b,5,
_.sL,c)}a.fileComment&&(a=a.fileComment,c=new _.nuc,a.legacyCommentId&&_.Cj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Cj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Cj(c,3,a.linkToDiscussion),a.parent&&c.Ug(YGc(a.parent)),_.pj(b,3,_.sL,c));return b},VGc=function(a){var b=new _.lL;if(a.driveItem){var c=a.driveItem,d=new Atc;c.name&&d.$c(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new ytc;_.pj(d,8,ztc,e)}c.driveFolder&&(e=ZGc(c.driveFolder),_.pj(d,9,ztc,e));c.driveShortcut&&
(c=$Gc(c.driveShortcut),_.pj(d,10,ztc,c));_.pj(b,1,Btc,d)}a.drive&&(a=aHc(a.drive),_.pj(b,3,Btc,a));return b},YGc=function(a){var b=new _.xtc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Cj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Bj(b,5,c);if(a.owner){var d=a.owner;c=new ttc;d.domain&&c.Nn(bHc(d.domain));if(d.user){var e=CM(d.user);_.pj(c,1,_.stc,e)}d.drive&&(d=aHc(d.drive),_.pj(c,4,_.stc,d));_.G(b,7,c)}a.driveFile&&(c=new ytc,_.pj(b,8,utc,c));a.driveFolder&&(c=ZGc(a.driveFolder),
_.pj(b,9,utc,c));a.driveShortcut&&(a=$Gc(a.driveShortcut),_.pj(b,10,utc,a));return b},aHc=function(a){var b=new rtc;a.name&&b.$c(a.name);a.title&&b.setTitle(a.title);return b},ZGc=function(a){var b=new vtc;a.type&&(a=rGc.get(a.type),_.Dj(b,6,a));return b},$Gc=function(a){var b=new wtc;a.targetName&&_.Cj(b,1,a.targetName);a.targetMimeType&&_.Cj(b,2,a.targetMimeType);return b},NGc=function(a){return a.map(function(b){return TGc(b)})},TGc=function(a){var b=new _.luc;if(a.user){var c=CM(a.user);_.pj(b,
1,_.rL,c)}a.anonymous&&(c=new iuc,_.pj(b,2,_.rL,c));if(a.impersonation){var d=a.impersonation;c=new _.juc;d.impersonatedUser&&(d=CM(d.impersonatedUser),_.G(c,1,d));_.pj(b,3,_.rL,c)}a.system&&(d=a.system,c=new _.kuc,d.type&&(d=sGc.get(d.type),_.Dj(c,1,d)),_.pj(b,4,_.rL,c));a.administrator&&(a=new _.huc,_.pj(b,5,_.rL,a));return b},cHc=function(a){return a.map(function(b){return CM(b)})},CM=function(a){var b=new _.Zsc;if(a.knownUser){var c=a.knownUser,d=new _.Xsc;c.personName&&_.Cj(d,1,c.personName);
c.isCurrentUser&&_.Aj(d,2,c.isCurrentUser);c.displayName&&_.Cj(d,3,c.displayName);c.photoUrl&&d.On(c.photoUrl);_.pj(b,2,_.Wsc,d)}a.unknownUser&&(c=new $sc,_.pj(b,4,_.Wsc,c));a.deletedUser&&(a=new _.Ysc,_.pj(b,3,_.Wsc,a));return b},QGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.S6a((new _.Fy).setSeconds(a),b)},RGc=function(a){var b=new _.gM;a.startTime&&b.lZ(QGc(a.startTime));a.endTime&&b.lP(QGc(a.endTime));return b},bHc=function(a){var b=new qtc;a.name&&b.$c(a.name);
a.legacyId&&_.Cj(b,3,a.legacyId);a.audienceDisplayName&&_.Cj(b,4,a.audienceDisplayName);return b},MGc=function(a){var b=new _.qL;if(a.create){var c=a.create,d=new _.Etc;if(c.new){var e=new Ftc;_.pj(d,1,_.Ctc,e)}c.upload&&(e=new Gtc,_.pj(d,2,_.Ctc,e));c.copy&&(e=c.copy,c=new _.Dtc,e.originalObject&&(e=VGc(e.originalObject),_.G(c,1,e)),_.pj(d,3,_.Ctc,c));_.pj(b,1,_.pL,d)}a.edit&&(d=new Ltc,_.pj(b,2,_.pL,d));if(a.move){c=a.move;d=new _.Ttc;c.addedParents&&(e=WGc(c.addedParents),_.lj(d,1,e));c.removedParents&&
(e=WGc(c.removedParents),_.lj(d,2,e));c.fromOwnershipTransfer&&_.Aj(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(dHc),_.lj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.Stc;if(e.removedParents){var f=WGc(e.removedParents);_.lj(c,2,f)}e.migratedParents&&(e=XGc(e.migratedParents),_.lj(c,1,e));_.G(d,5,c)}_.pj(b,3,_.pL,d)}a.rename&&(d=a.rename,c=new _.Ztc,d.oldTitle&&_.Cj(c,1,d.oldTitle),d.newTitle&&_.Cj(c,2,d.newTitle),_.pj(b,4,_.pL,c));a.delete&&(c=a.delete,
d=new _.Jtc,c.type&&(c=tGc.get(c.type),_.Dj(d,1,c)),_.pj(b,5,_.pL,d));a.restore&&(c=a.restore,d=new _.$tc,c.type&&(c=uGc.get(c.type),_.Dj(d,1,c)),_.pj(b,6,_.pL,d));a.permissionChange&&(c=a.permissionChange,d=new _.Wtc,c.addedPermissions&&(e=eHc(c.addedPermissions),_.lj(d,1,e)),c.removedPermissions&&(e=eHc(c.removedPermissions),_.lj(d,2,e)),c.resharedPermissions&&(e=eHc(c.resharedPermissions),_.lj(d,3,e)),c.otherActivePermissions&&(c=eHc(c.otherActivePermissions),_.lj(d,4,c)),_.pj(b,7,_.pL,d));if(a.comment){c=
a.comment;d=new _.ptc;c.post&&(f=c.post,e=new _.mtc,f.subtype&&(f=wGc.get(f.subtype),_.Dj(e,1,f)),_.pj(d,1,_.ltc,e));if(c.assignment){f=c.assignment;e=new _.ntc;if(f.subtype){var h=xGc.get(f.subtype);_.Dj(e,1,h)}f.assignedUser&&(f=CM(f.assignedUser),_.G(e,7,f));_.pj(d,2,_.ltc,e)}c.suggestion&&(f=c.suggestion,e=new _.otc,f.subtype&&(f=yGc.get(f.subtype),_.Dj(e,1,f)),_.pj(d,3,_.ltc,e));c.mentionedUsers&&(c=cHc(c.mentionedUsers),_.lj(d,7,c));_.pj(b,8,_.pL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.Itc,c.type&&
(c=zGc.get(c.type),_.Dj(d,1,c)),_.pj(b,9,_.pL,d));if(c=a.view){d=new fuc;(e=AGc.get(c.type))&&_.Dj(d,1,e);if(e=c.viewHistoryVisibility)c=new euc,(f=BGc.get(e.domainPolicyVisibilityState))&&_.Dj(c,1,f),(e=CGc.get(e.namedPartyState))&&_.Dj(c,2,e),_.G(d,2,c);_.pj(b,10,_.pL,d)}if(c=a.download)d=new Ktc,(c=DGc.get(c.type))&&_.Dj(d,1,c),_.pj(b,11,_.pL,d);a.reference&&(c=a.reference,d=new _.Rsc,c.type&&(e=EGc.get(c.type),_.Dj(d,1,e)),c.context&&(c=c.context,e=new Qsc,c.description&&e.kl(c.description),c.url&&
_.Cj(e,2,c.url),_.G(d,2,e)),_.pj(b,12,_.pL,d));a.settingsChange&&(c=a.settingsChange,d=new _.cuc,c.restrictionChanges&&(c=fHc(c.restrictionChanges),_.lj(d,1,c)),_.pj(b,13,_.pL,d));a.approvalChange&&(c=a.approvalChange,d=new _.ctc,c.approvalName&&_.Cj(d,2,c.approvalName),c.approvalEventNames&&_.jj(d,3,c.approvalEventNames),c.initiator&&(e=CM(c.initiator),_.G(d,4,e)),c.reviewers&&(e=cHc(c.reviewers),_.lj(d,5,e)),c.status&&d.Dc(HGc.get(c.status)),c.dueTime&&(e=QGc(c.dueTime),_.G(d,7,e)),c.approvalRequested&&
(e=new dtc,_.pj(d,8,_.kL,e)),c.approvalCancelled&&(e=new etc,_.pj(d,9,_.kL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.btc,f.reviewerDecision&&(f=IGc.get(f.reviewerDecision),_.Dj(e,1,f)),_.pj(d,10,_.kL,e)),c.commentAdded&&(e=new ftc,_.pj(d,11,_.kL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new htc,f.reviewerChanges&&(f=gHc(f.reviewerChanges),_.lj(e,1,f)),_.pj(d,12,_.kL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new jtc,e.oldDueTime&&(e=QGc(e.oldDueTime),_.G(c,1,e)),_.pj(d,13,_.kL,
c)),_.pj(b,18,_.pL,d));a.lock&&(d=new Ntc,_.pj(b,15,_.pL,d));a.unlock&&(d=new duc,_.pj(b,16,_.pL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.Vsc,c.changes&&(c=hHc(c.changes),_.lj(d,1,c)),_.pj(b,19,_.pL,d));a.publishChange&&(c=a.publishChange,d=new _.Ytc,c.oldPublishState&&(e=iHc(c.oldPublishState),_.G(d,1,e)),c.newPublishState&&(c=iHc(c.newPublishState),_.G(d,2,c)),_.pj(b,20,_.pL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.Mtc,a.securityUpdateEnabled&&_.Aj(d,
1,a.securityUpdateEnabled),_.pj(b,21,_.pL,d));return b},dHc=function(a){var b=new _.Ptc;a.reason&&(a=LGc.get(a.reason),_.Dj(b,1,a));return b},eHc=function(a){return a.map(function(b){var c=new _.oL;if(b.role){var d=vGc.get(b.role);_.Dj(c,1,d)}b.user&&(d=CM(b.user),_.pj(c,2,_.nL,d));if(b.group){d=b.group;var e=new _.mL;d.email&&_.Cj(e,1,d.email);d.title&&e.setTitle(d.title);_.pj(c,3,_.nL,e)}b.domain&&c.Nn(bHc(b.domain));b.anyone&&(d=new Utc,_.pj(c,5,_.nL,d));b.allowDiscovery&&_.Aj(c,6,b.allowDiscovery);
return c})},fHc=function(a){return a.map(function(b){var c=new _.buc;if(b.feature){var d=FGc.get(b.feature);_.Dj(c,1,d)}b.newRestriction&&(b=GGc.get(b.newRestriction),_.Dj(c,2,b));return c})},gHc=function(a){return a.map(function(b){var c=new itc;if(b.removedReviewer){var d=CM(b.removedReviewer);_.G(c,3,d)}b.addedReviewer&&(b=CM(b.addedReviewer),_.G(c,4,b));return c})},hHc=function(a){return a.map(function(b){var c=new _.Usc;b.label&&_.Cj(c,1,b.label);b.types&&(b=jHc(b.types),_.jj(c,2,b));return c})},
jHc=function(a){return a.map(function(b){return JGc.get(b)})},iHc=function(a){var b=new _.Xtc;if(a.publishMode){var c=KGc.get(a.publishMode);_.Dj(b,1,c)}a.signinRequired&&_.Aj(b,2,a.signinRequired);a.publishedTime&&(a=QGc(a.publishedTime),_.G(b,3,a));return b};
var lHc=function(a){return(a.items||[]).map(function(b){return kHc(b)})},mHc=function(a,b){var c=new xAc;b=_.x(c,4,b);a&&(a=kHc(a),_.G(b,2,a));return b},kHc=function(a){var b=(new _.tL).Nb(a.id);b=_.x(b,3,a.useByDefault).$c(a.name);b=_.x(b,7,a.openUrlTemplate);b=xuc(wuc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.x(b,8,a.createUrl);b=_.x(b,9,a.createInFolderTemplate);b=_.x(b,10,a.objectType);b=_.x(b,11,a.supportsCreate);b=_.x(b,12,a.supportsImport);b=_.x(b,13,a.supportsMultiOpen);b=_.x(b,27,a.supportsOfflineCreate);
b=_.x(b,14,a.installed);b=_.x(b,15,a.authorized);b=_.x(b,16,a.productUrl);b=_.jj(b,17,a.primaryFileExtensions);b=_.jj(b,18,a.secondaryFileExtensions);b=_.x(b,19,a.shortDescription);b=_.x(b,20,a.longDescription);b=_.x(b,21,a.productId);b=_.x(b,22,a.removable);var c=nHc.get(a.type);b=_.x(b,23,c);b=_.x(b,25,a.hasAppData);b=_.x(b,26,Number(a.appDataQuotaBytesUsed));b=_.x(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.x(b,30,a.hasDriveWideScope);b=_.x(b,31,a.driveSource);b=_.x(b,32,a.driveBranded);b=
_.x(b,33,a.hidden);b=_.x(b,34,a.supportsMobileBrowser);b=_.x(b,35,a.supportsTeamDrives);b=_.x(b,36,a.hasGsmListing);c=a.icons||[];for(var d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.ruc;l=_.x(l,3,k.iconUrl).setSize(k.size);k.category&&(k=oHc.get(k.category),_.x(l,1,k));h.call(f,l)}_.lj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.jj(b,24,d);c=a.rankingInfo||{};a=new _.uuc;d=c.absoluteScore;null!=d&&_.x(a,1,Number(d));d=pHc(c.mimeTypeScores||[]);_.lj(a,
2,d);c=pHc(c.fileExtensionScores||[]);_.lj(a,3,c);_.G(b,29,a);return b},pHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.suc;c=_.x(d,1,c);return _.x(c,2,Number(b))})},nHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),oHc=new Map([["application",1],["document",2],["documentShared",3]]);
var rHc=function(a){var b=new FAc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.FL).Nb(c.id).setTitle(c.title);d=_.x(d,3,_.CK(c.updateTime));var e=qHc.get(c.backupSource);d=_.x(d,4,e);d=_.x(d,5,c.iconUri);d=_.x(d,8,_.CK(c.expiryTime));d=_.x(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.Bz())e=new Vvc,e=_.x(e,1,c.whatsappOngoingBackupEnabled),c=_.x(e,2,c.whatsappPhoneNumber),_.G(d,6,c);else if(2===d.Bz()){e=Number(c.deviceAndroidId);var f=new _.Uvc;
f=_.x(f,1,c.deviceName);f=_.x(f,2,c.deviceModelName);c=_.x(f,3,c.shouldIncludeSpecialSyncItems);c=_.x(c,4,isNaN(e)?void 0:e);_.G(d,7,c)}return d});_.lj(b,2,a);return b},tHc=function(a){var b=new BAc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.GL).Nb(c.id);var e=sHc.get(c.type);d=_.x(d,1,e).setTitle(c.title);d=_.x(d,4,c.iconUri);d=_.Wvc(d.setSize(c.size?Number(c.size):void 0),_.CK(c.updateTime));d=_.x(d,7,c.hasCustomBehavior).kl(c.description);return _.x(d,9,c.ongoingSyncEnabled)});
_.lj(b,1,a);return b},qHc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),sHc=new Map([["TYPE_UNSPECIFIED",0],["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 uHc=function(a,b){this.H=a;this.O=b};
var Goc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var vHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),wHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Ak).Nb(d);c&&(_.hG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.QJ(d,_.Rlc(c.userCapabilities)));_.bK(b).includes(19)&&_.x(d,44,!0);Hyc(a,d,_.bK(b));_.Rhc(d,4);return d},zHc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={Vfa:f.Vfa},k=h.next()){var l=k.value;if(l.person){f.Vfa=l.itemId;k=xHc(l.person).Nb(f.Vfa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={ysa:p.ysa},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.Vfa}}(f))||e.push(k);p.ysa=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.ysa}}(p));void 0===q&&(q=wHc(a,b,r),d.push(q));r=Bqc(Aqc(zqc(new _.Joa,k.clone()),yHc(r)),r.url);_.qj(q,107,r,_.Joa,void 0)}}}return msc((new _.kK).iB(d),e).gQ(c.suggestionSessionId)},xHc=function(a){return _.Dhc((new _.lk).Nb(a.id).$c(a.displayName),a.emailAddress).On(a.photoUrl)},KHc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.loa,e=AHc(c);e&&_.pj(d,2,_.pk,e);(e=BHc(c))&&ppc(d,e);(e=CHc(c))&&_.pj(d,4,_.pk,e);(e=DHc(c))&&_.pj(d,5,_.pk,e);(e=EHc(c))&&_.pj(d,6,_.pk,e);(e=FHc(c))&&_.pj(d,7,_.pk,e);(e=GHc(c))&&_.pj(d,8,_.pk,e);(e=HHc(c))&&_.pj(d,9,_.pk,e);(e=IHc(c))&&_.pj(d,10,_.pk,e);(c=JHc(c))&&_.pj(d,11,_.pk,c);return d}):(a=DM(a),a=Ypc([a]),[ppc(new _.loa,a)])},MHc=function(a){return(a.justification||[]).map(function(b){return LHc(b)})},DM=function(a){return(a=a.justification)?
LHc(a):null},LHc=function(a){var b=lpc(new _.ok,NHc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=xHc(c),_.pj(b,3,_.koa,c),mpc(b,[c])):d?(c=(d.person||[]).map(function(e){return xHc(e)}),d=kpc(c),_.pj(b,4,_.koa,d),mpc(b,c)):(c=(a.person||[]).map(function(e){return xHc(e)}),c.length&&(d=kpc(c),_.pj(b,4,_.koa,d),mpc(b,c)));_.x(b,5,_.CK(a.eventTime));npc(b,NHc(a.justificationDescription));opc(b,NHc(a.unstructuredJustificationDescription));return b},NHc=function(a){if(!a)return null;a=a.textSegment||
[];return hpc(new _.ik,a.map(function(b){var c=(new _.jk).mh(b.text),d=b.link;if(d){var e=new _.kk;d=_.x(e,1,d.url)}else d=null;c=_.G(c,2,d);c=_.x(c,3,b.bold);return _.x(c,4,b.italic)}))},AHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Npc(new _.toa,DM(a));Mpc(b,(a.subAction||[]).map(function(c){var d=new _.uoa;c.reply?(c=new _.noa,_.pj(d,1,_.qk,c)):c.resolve?(c=new xpc,_.pj(d,2,_.qk,c)):c.reassign?(c=new vpc,_.pj(d,3,_.qk,c)):c.acceptSuggestion?(c=new qpc,_.pj(d,4,_.qk,c)):c.rejectSuggestion?
(c=new wpc,_.pj(d,5,_.qk,c)):c.openThread&&(c=new _.moa,_.pj(d,6,_.qk,c));return d}));_.x(b,2,a.discussionId);_.x(b,3,a.postId);Opc(b,NHc(a.anchorText));return b},CHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Spc(new _.woa,DM(a));Rpc(b,(a.subAction||[]).map(function(c){var d=new Tpc;c.suggestedShare?(c=new Bpc,_.pj(d,1,uqc,c)):c.responseToRequest&&(c=new ypc,_.pj(d,2,uqc,c));return d}));Ppc(b,(a.sharee||[]).map(function(c){return xHc(c)}));Qpc(b,vHc.get(a.shareeRole));return b},
BHc=function(a){a=a.documentViewAction;if(!a)return null;var b=Ypc(MHc(a));Xpc(b,(a.subAction||[]).map(function(c){var d=new $pc;c.open?d.Ff(new spc):c.reviewEdits&&(c=new zpc,_.pj(d,2,Zpc,c));return d}));return b},DHc=function(a){a=a.emailViewAction;if(!a)return null;var b=jqc(new hqc,DM(a));iqc(b,(a.subAction||[]).map(function(c){var d=new lqc;c.open&&d.Ff(new tpc);return d}));return b},EHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=Hpc(Gpc(Fpc(new _.poa,a.eventId),DM(a)),a.guestCount);
Epc(b,(a.subAction||[]).map(function(c){var d=new Ipc;if(c.viewCalendarEvent){var e=new Cpc;_.pj(d,1,sqc,e)}c.shareWithAttendees&&(e=new Apc,_.pj(d,2,sqc,e));c.present&&(e=new upc,_.pj(d,3,sqc,e));c.openDocument&&(c=new spc,_.pj(d,4,sqc,c));return d}));return b},FHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=eqc(dqc(new bqc,a.workspaceId),DM(a));cqc(b,(a.subAction||[]).map(function(c){var d=new fqc;c.addToWorkspace&&(c=new rpc,_.pj(d,1,wqc,c));return d}));return b},GHc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=Vpc(new _.yoa,DM(a));Upc(b,(a.subAction||[]).map(function(c){var d=new Wpc;c.openDocument&&(c=new spc,_.pj(d,1,vqc,c));return d}));return b},HHc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=qqc(new _.Eoa,DM(a));pqc(b,(a.subAction||[]).map(function(c){var d=new rqc;c.openDocument&&(c=new spc,_.pj(d,1,yqc,c));return d}));return b},IHc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=Kpc(new _.roa,DM(a));Jpc(b,(a.subAction||
[]).map(function(c){var d=new Lpc;c.openDocument&&(c=new spc,_.pj(d,1,tqc,c));return d}));return b},JHc=function(a){a=a.formResponseAction;if(!a)return null;var b=nqc(new _.Coa,MHc(a));mqc(b,(a.subAction||[]).map(function(c){var d=new oqc;c.openDocument?(c=new spc,_.pj(d,1,xqc,c)):c.viewResponses&&(c=new Dpc,_.pj(d,2,xqc,c));return d}));return b},yHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var OHc=function(a,b){this.H=a;this.O=b},QHc=function(a,b,c){var d=new KL,e=Object.values(c.categoryMetadata||{});uwc(d,e.map(function(f){return PHc(a,f,b.qc())}));d.Dc(1);return new _.nK(d,Loc(c))},SHc=function(a,b){var c=new mM;xBc(c,(b.categories||[]).map(function(d){return RHc(a,d)}));c.Dc(1);return new Svc(c,Loc(b))},PHc=function(a,b,c){c=swc((new JL).$c(b.categoryName),c);b=Object.values(b.attributeValues||[]);rwc(c,b.map(function(d){return THc(a,d)}).filter(function(d){return null!==d}));return c},
RHc=function(a,b){var c,d=vBc(lBc(rBc(qBc(pBc(kBc(jBc((new lM).$c(b.name),b.categoryName),b.latestName).setTitle(b.title).kl(b.description),_.CK(b.createTime)),_.CK(b.updateTime)),_.CK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new KAc).Nb(e.id);h=_.x(h,2,e.queryGuid);h=_.x(h,3,e.helpText);h=_.x(h,4,e.displayName);if(e.attributeDisplayHints){var k=UHc(e.attributeDisplayHints);_.G(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new LAc;l=_.x(l,
1,k.canSearch);k=_.x(l,2,k.canWrite);_.G(h,6,k)}if(f&&(_.x(h,7,VHc[f]),e=e[WHc(f)+"Options"],!XHc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&mBc(d,YHc(b.createdBy));b.TWb&&nBc(d,YHc(b.TWb));b.publishedBy&&oBc(d,YHc(b.publishedBy));b.displayHints&&sBc(d,UHc(b.displayHints));b.capabilities&&uBc(d,ZHc(b.capabilities));b.learnMoreUri&&_.x(d,15,b.learnMoreUri);return d},THc=function(a,b){var c=(new hL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
Jsc(c,b.map(function(d){if(d.scopedUser){var e=new Gsc;var f=_.DK(a.H,d.scopedUser);e=_.G(e,1,f);d=a.Hb(e,d)?e:null}else d=null;return d}).filter(function(d){return null!==d})),c.jB(9);else if(!a.Hb(c,b))return null;return c},UHc=function(a){var b=new JAc;b=_.x(b,1,a.disabled);b=_.x(b,2,a.hidden);b=_.x(b,3,a.activatedInAllDrives);return _.x(b,4,!!a.required)},ZHc=function(a){var b=new tBc;b=_.x(b,1,a.canSearch);b=_.x(b,2,a.canApply);b=_.x(b,4,a.canRemove);return _.x(b,3,a.canManageSharedDriveActivation)},
XHc=function(a,b,c,d){return $Hc(a,function(){aIc(a)[c](b,d)},c,b)},bIc=function(a){a=void 0===a?{}:a;var b=new QAc;b=_.x(b,1,a.minSize);return _.x(b,2,a.maxSize)},dIc=function(a){var b=new PAc;VAc(b,(a.choices||[]).map(function(c){var d=new UAc;d=_.x(d,1,c.label).Hb(c.value);c.description&&d.kl(c.description);if(c.capabilities){var e=c.capabilities;var f=new WAc;f=_.x(f,1,e.canSearch);e=_.x(f,2,e.canSelect);_.G(d,3,e)}c.displayHints&&(c=c.displayHints,e=new XAc,e=_.x(e,1,c.disabled),e=_.x(e,2,c.hidden),
c.badgePriority&&_.x(e,5,c.badgePriority),c.badgeColors&&(f=cIc(c.badgeColors),_.G(e,3,f)),c.darkBadgeColors&&(c=cIc(c.darkBadgeColors),_.G(e,4,c)),_.G(d,4,e));return d}));return b},cIc=function(a){var b=new IAc;var c=eIc(a.backgroundColor);b=_.G(b,1,c);c=eIc(a.foregroundColor);b=_.G(b,2,c);a=eIc(a.soloColor);return _.G(b,3,a)},eIc=function(a){var b=new _.SC;b=_.wb(b,1,a.red,0);b=_.wb(b,2,a.green,0);b=_.wb(b,3,a.blue,0);a.alpha&&(a=(new drc).Hb(a.alpha),_.G(b,4,a));return b},fIc=function(a){var b=
new ZAc;b=_.x(b,1,a.showThousandsSeparator);b=_.x(b,2,Number(a.minValue));return _.x(b,3,Number(a.maxValue))},gIc=function(a){var b=(new _.epa).setYear(a.year).setMonth(a.month);return _.x(b,3,a.day)};OHc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.jB(VHc[d]);return $Hc(this,function(){hIc(c)[d](a,b[b.valueType])},b.valueType)};
var $Hc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof aBc))return Krc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},YHc=function(a){return _.Bhc(1).Nb(a.personName.split("/")[1])},WHc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},aIc=function(a){return{BOOLEAN:function(b,c){var d=b.k7a;var e=new SAc;e=_.x(e,1,c.trueLabel);c=_.x(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.sPa(bIc(c))},TEXT_LIST:function(b,c){var d=b.i8a;var e=new YAc;e=_.x(e,1,c.maxEntries);c=bIc(c.options);c=_.G(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new NAc;d=_.x(d,1,c.minSize);c=_.x(d,2,c.maxSize);return _.pj(b,10,jM,c)},SELECTION:function(b,c){return b.X7a(dIc(c))},SELECTION_LIST:function(b,c){var d=b.W7a;var e=new OAc;e=_.x(e,1,c.maxEntries);c=dIc(c.options);c=_.G(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.x7a(fIc(c))},INTEGER_LIST:function(b,
c){var d=b.w7a;var e=new $Ac;e=_.x(e,1,c.maxEntries);c=fIc(c.options);c=_.G(e,2,c);return d.call(b,c)},USER:function(b){return b.n8a(new bBc)},USER_LIST:function(b,c){var d=b.tPa,e=new RAc;c=_.x(e,1,c.maxEntries);e=new bBc;c=_.G(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.rPa;var e=new MAc;e=_.x(e,4,c.dateFormat);var f=gIc(c.minValue);e=_.G(e,2,f);c=gIc(c.maxValue);c=_.G(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new aBc;d=_.x(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.x(d,2,VHc[e]);var f=WHc(e)+"Options";XHc(a,d,e,c[f]);return _.pj(b,16,jM,d)}}},hIc=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.zqa(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.vqa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.mqa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.DK(a.H,c))},USER_LIST:function(b,c){Isc(b,c.map(function(d){return _.DK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},VHc={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 Moc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var jIc=function(a){a=a.personResponse||[];return Cwc(new Bwc,a.map(function(b){var c=b.person;b=ywc(new LL,b.personId);var d=b.$c;var e=c;e=void 0===e?{}:e;var f,h;e=e.metadata;e=null!==(h=null===(f=null===e||void 0===e?void 0:e.bestDisplayName)||void 0===f?void 0:f.displayName)&&void 0!==h?h:"";f=zwc(d.call(b,e),iIc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new xwc;c=_.x(h,1,c&&!c.isDefault?c.url:null);return _.G(f,4,c)}))},iIc=function(a){a=void 0===a?{}:a;var b;a=(a.email||[]).find(function(c){return"SIGNUP_EMAIL"===
c.classification&&!0===c.metadata.primary});return null!==(b=null===a||void 0===a?void 0:a.value)&&void 0!==b?b:""};
var kIc=function(a){this.H=a},mIc=function(a,b){return(b.items||[]).map(function(c){return lIc(a,c)})},lIc=function(a,b){var c=new _.Ooa,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.x(c,2,d);_.x(c,1,b.backgroundImageLink);_.x(c,3,b.trusted);_.x(c,5,b.backgroundImageGridViewLink);_.x(c,6,b.backgroundImageListViewLink);_.x(c,7,b.hidden);_.x(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&mnc(c,d.map(function(e){var f=new _.yk;return _.x(f,1,
e.category)}));c=_.Yhc(_.Whc(_.Vhc(_.Rhc(_.Shc(lnc(_.hG((new _.Ak).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.Fhc(_.Rlc(b.capabilities),!0),_.QJ(c,d));b.permissionsSummary&&_.Thc(c,gsc(a.H,b.permissionsSummary));b.restrictions&&onc(c,nIc(b.restrictions));return c},nIc=function(a){var b=new Fqc;b=_.x(b,1,a.copyRequiresWriterPermission);b=_.x(b,2,a.disallowDriveFileStream);b=_.x(b,3,a.domainUsersOnly);
"teamMembersOnly"in a&&_.x(b,4,a.teamMembersOnly);return b};
var oIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Voc=_.fb(oIc);
var pIc=function(a){var b=new _.Lc;b=_.x(b,2,a.key);b=_.x(b,1,a.namespace?oIc[a.namespace]:void 0);return _.zCa(new _.Qo,b).Hb(a.value)};
var rIc=function(a){var b=a.items||[];b=Ewc(new ML,b.map(function(c){return qIc(c)}));return new _.qK(b,Loc(a))},qIc=function(a){var b=(new _.dI).Nb(a.id).setTitle(a.title);b=_.x(b,3,_.CK(a.createdDate));return _.x(b,4,_.CK(a.modifiedDate)).Id(a.state?sIc[a.state]:void 0)},tIc=function(a,b,c){var d=c.item||[];return _.Rmc(_.Qmc(new _.IK,d.map(function(e){return wHc(a,b,e)})),c.suggestionSessionId)},vIc=function(a,b,c){var d=c.item||[];return Puc(Ouc(new xL,d.map(function(e){return uIc(a,b,e)})),c.suggestionSessionId)},
uIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return Muc(Kuc(Luc(Juc(new wL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return wHc(a,b,f)})),DM(c))},wIc=function(a){var b=new _.Dsc;a.kind&&(a=qIc(a),_.G(b,2,a));b.Dc(1);return b},sIc={active:1,archived:2};
var xIc=function(a,b,c,d){_.pmc.call(this,b);this.Bg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new kGc(this.W,b);this.H=new kIc(this.NF);this.wa=new uHc(this.NF,this.H)};_.K(xIc,_.pmc);var yIc=function(a){a.ha||(a.ha=new OHc(a.W,a.ma));return a.ha};
xIc.prototype.ka=function(a,b){if(a instanceof _.PI)var c=_.Ylc(_.tmc(a));else{if(a instanceof _.QI)var d=_.EK(this,a,b);else{if(a instanceof _.Xgc)var e=zIc(this,a.request,b);else{if(a instanceof _.RI)var f=_.EK(this,a,b);else{if(a instanceof _.TI){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var h=jAc((new iAc).Dc(1),lIc(this.H,b.json))}else{if(a instanceof _.SI)var k=_.EK(this,a,b);else{if(a instanceof _.gK)var l=new Osc;else{if(a instanceof _.VI)var p=
AIc(a,b);else{if(a instanceof _.WI)var q=mHc(void 0,a.Jh());else{if(a instanceof _.XI)var r=new GAc;else{if(a instanceof _.YI)var v=_.Ylc(_.tmc(a));else{if(a instanceof _.ZI)var w=new oM;else{if(a instanceof _.$I)var A=_.Ylc(_.tmc(a));else{if(a instanceof _.aJ)var B=_.Ylc(_.tmc(a));else{if(a instanceof _.oD){var E=new VBc,I=a.getKey();var M=_.G(E,4,I)}else{if(a instanceof _.bJ)var P=AIc(a,b);else{if(a instanceof _.eJ)var T=_.Ylc(_.tmc(a));else{if(a instanceof _.Ugc){if(!b.json)throw _.FK();var aa=
new FCc(b.json.exportJob.id)}else{if(a instanceof _.gJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);var ba=b.json,da=new wAc,ha=kHc(ba);var xa=_.G(da,2,ha).Dc(1)}else{if(a instanceof _.hJ)var ua=BIc(a,b);else{if(a instanceof _.iJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#permission"),b.json);var Ja=(new oM).Dc(1),ib=_.amc(this.NF,b.json);var Ub=_.G(Ja,2,ib)}else{if(a instanceof _.nI)a:{if(!b.json)throw _.FK();if(a instanceof _.nI){var cc=a.jd();if(cc&&_.jJ(cc)){for(var Pc=this.O,yc=this.Bg,
Hb=b.json,Ee=[],$d=_.m(Hb.item||[]),Gh=$d.next();!Gh.done;Gh=$d.next()){var sd=Gh.value;if(sd.driveItem){var Sb=new _.Moa,vi=_.x(Sb,2,yHc(sd));_.R(cc,74,!1)?_.x(vi,4,!0):_.x(vi,3,!0);var bk=wHc(Pc,yc,sd);var ug=_.G(bk,100,vi);Ee.push(ug)}}var vj=(new _.eI).iB(Ee).gQ(Hb.suggestionSessionId);var Kj=_.skc(new _.uK,vj);break a}if(cc&&_.kJ(cc)){Kj=zHc(this.O,this.Bg,b.json);break a}if(cc&&_.lJ(cc)){for(var hm=this.O,Ei=this.Bg,Hp=b.json,Re=[],wi=_.m(Hp.item||[]),Vk=wi.next();!Vk.done;Vk=wi.next()){var Ip=
Vk.value;if(Ip.driveItem){var ck=wHc(hm,Ei,Ip),Aq=KHc(Ip);var Bq=_.lj(ck,117,Aq);Re.push(Bq)}}var fn=(new _.eI).iB(Re).gQ(Hp.suggestionSessionId);Kj=_.skc(new _.uK,fn);break a}}_.BK(_.AK("drive#fileList"),b.json);Kj=_.Vlc(this.NF,b.json,b.headers)}else{if(a instanceof _.mJ){if(!b.json)throw _.FK();var Gm=tHc(b.json)}else{if(a instanceof _.oJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#appList"),b.json);var zl=b.json,Mr=new IL,gj=lHc(zl);var Nr=_.lj(Mr,2,gj);var Jp=_.jj(Nr,4,zl.defaultAppIds).Dc(1)}else{if(a instanceof
_.Vgc){if(!b.json)throw _.FK();var Cq=rHc(b.json)}else{if(a instanceof _.zI)var Or=CIc(this,b);else{if(a instanceof _.pJ){var Kp=b.json;if(!Kp)throw _.FK();_.BK(_.AK("drive#permissionList"),Kp);var Pr=new KBc,Un=fsc(this.NF,Kp);var tk=_.G(Pr,1,Un);var uk=_.x(tk,2,Loc(Kp))}else{if(a instanceof _.qJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#revisionList"),b.json);for(var Sc=this.NF,gn=b.json,Xs=new csc,Dq=[],Qr=gn.items||[],Cu=0;Cu<Qr.length;Cu++){var Rr=_.Wlc(Sc,Qr[Cu]);Dq.push(Rr)}var Ql=_.lj(Xs,
2,Dq)}else{if(a instanceof _.rJ)var Ro=_.EK(this,a,b);else{if(a instanceof _.EI)var Vn=DIc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.FK();var Wn=jIc(b.json)}else{if(a instanceof _.chc){if(!b.json)throw _.FK();var Px=SHc(yIc(this),b.json)}else{if(a instanceof _.$F){if(!b.json)throw _.FK();var mw=yIc(this),Lp=b.json,Mz=new yBc,Du=RHc(mw,Lp);var Sr=_.G(Mz,2,Du).Dc(1)}else{if(a instanceof _.uJ){if(!b.json)throw _.FK();_.BK(_.AK("drive#remainingCount"),b.json);var Tr=b.json,Ys=new HAc,Wk=Tr.nextPageToken;
null!=Wk&&_.x(Ys,2,Number(Wk));_.x(Ys,1,Number(Tr.remainingCount));var Fi=Ys}else{if(a instanceof _.fG){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);var im=(new _.eI).iB([lIc(this.H,b.json)])}else{if(a instanceof _.EJ){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDriveList"),_.AK("drive#driveList")),b.json);var Pg=(new _.eI).iB(mIc(this.H,b.json)),nw=_.skc(new _.uK,Pg);var Gi=_.x(nw,3,Loc(b.json))}else{if(a instanceof _.yJ)var Xk=BIc(a,b);else{if(a instanceof
_.zJ)var Eu=zIc(this,a,b);else{if(a instanceof _.xI)var Yk=_.EK(this,a,b);else{if(a instanceof _.AJ)var Zs=_.EK(this,a,b);else{if(a instanceof _.BJ)var ow=EIc(this,b);else{if(a instanceof _.pD){if(!b.json)throw _.FK();_.BK(_.AK("drive#setting"),b.json);var $s=pIc(b.json),Fu=new VBc;var Ur=_.G(Fu,3,$s);var Mp=$s.getKey();var cv=_.G(Ur,4,Mp)}else{if(a instanceof _.CJ)var dv=AIc(a,b);else{if(a instanceof _.PH){if(!b.json)throw _.FK();_.BK(_.AK("drive#about"),b.json);var ev=nGc(this.ta,b.json)}else{if(a instanceof
_.gG){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspace"),b.json);var my=qIc(b.json),Rw=new _.lK;Rw.EU().set(my.getId(),my);var tN=Rw}else{if(a instanceof _.Wgc){if(!b.json)throw _.FK();var yg=b.json,ar;null!==(ar=_.IJ(this.V))&&void 0!==ar&&_.R(ar,21,!1)&&(sGc.set("HIERARCHY_RECONCILIATION",3),LGc.set("UNMOVABLE_ITEM_REPARENTED",3));var nJ=new hCc;yg.nextPageToken&&_.Cj(nJ,2,yg.nextPageToken);if(yg.activities){var uN=SGc(yg.activities);_.lj(nJ,1,uN)}var vN=nJ}else{if(a instanceof _.Ygc)var hS=EIc(this,
b);else{if("undefined"!=typeof _.bhc&&a instanceof _.bhc)var ny=CIc(this,b);else{if(a instanceof _.Zgc){if(!b.json)throw _.FK();var nZ=new ECc}else{if(a instanceof _.$gc){if(!b.json)throw _.FK();var wN=Joc(b.json)}else{if(a instanceof _.nD){if(!b.json)throw _.FK();_.BK(_.AK("drive#settingList"),b.json);for(var oZ=b.json,pZ=new _.Xz,iS=[],ZC=oZ.items||[],qZ=0;qZ<ZC.length;qZ++){var rZ=pIc(ZC[qZ]);rZ&&iS.push(rZ)}var HF=_.ojb(pZ,iS)}else{if(a instanceof _.$z){if(!b.json)throw _.FK();var MA=vIc(this.O,
this.Bg,b.json).Dc(1)}else{if(a instanceof _.eG){if(!b.json)throw _.FK();var sZ=tIc(this.O,this.Bg,b.json)}else{if(a instanceof _.hhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#teamDrive"),b.json);var tZ=b.json,f7=tZ.recursiveFolderCount,uZ=tZ.recursiveFileCount,vZ=new QBc;var wZ=_.x(vZ,1,uZ);var g7=_.x(wZ,2,f7)}else{if(a instanceof _.ghc){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#migrateToDrivePreFlightResponse"),_.AK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var xZ=Poc(b.json)}else{if(a instanceof
_.jhc){if(!b.json)throw _.FK();_.BK(_.AK("drive#workspaceList"),b.json);var mha=rIc(b.json)}else mha=a instanceof RK?EIc(this,b):null;xZ=mha}g7=xZ}sZ=g7}MA=sZ}HF=MA}wN=HF}nZ=wN}ny=nZ}hS=ny}vN=hS}tN=vN}ev=tN}dv=ev}cv=dv}ow=cv}Zs=ow}Yk=Zs}Eu=Yk}Xk=Eu}Gi=Xk}im=Gi}Fi=im}Sr=Fi}Px=Sr}Wn=Px}Vn=Wn}Ro=Vn}Ql=Ro}uk=Ql}Or=uk}Cq=Or}Jp=Cq}Gm=Jp}Kj=Gm}Ub=Kj}ua=Ub}xa=ua}aa=xa}T=aa}P=T}M=P}B=M}A=B}w=A}v=w}r=v}q=r}p=q}l=p}k=l}h=k}f=h}e=f}d=e}c=d}return c};
var AIc=function(a,b){if(!b.json){if(a instanceof _.bJ)return wIc({});throw _.FK();}_.BK(_.AK("drive#workspace"),b.json);return wIc(b.json)},EIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#teamDrive"),_.AK("drive#drive")),b.json);a=lIc(a.H,b.json);return(new _.GJ).Dc(1).setItem(a)},zIc=function(a,b,c){if(!c.json)throw _.FK();_.BK(_.AK("drive#categoryMetadataList"),c.json);return QHc(yIc(a),b,c.json)},BIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.AK("drive#app"),b.json);return mHc(b.json,
a.Jh())},CIc=function(a,b){if(!b.json)throw _.FK();_.BK(_.LI(_.AK("drive#about"),_.AK("drive#changeList")),b.json);a=a.wa;var c=b.json;b=new pwc;var d=c.largestChangeId;null!=d&&_.x(b,3,Number(d));if(_.AK("drive#changeList")(c)){d=c.nextPageToken;null!=d&&_.x(b,2,Number(d));d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];var k=new _.qI;k=_.x(k,1,Number(h.id));h.teamDriveId?(_.ngc(k,h.teamDriveId),_.rI(k,h.teamDriveId)):_.rI(k,h.fileId);h.file?k.setItem(_.Tlc(f.H,h.file)):h.teamDrive&&
k.setItem(lIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.CI(k);d.push(k)}_.lj(b,4,d)}return b},DIc=function(a,b){var c=new DBc;if(_.re(a,6).length){var d=[];doc(_.re(a,6),b.headers).forEach(function(e,f){var h=new _.rgc;e=_.x(h,1,f).Hb(e);d.push(e)});_.lj(c,1,d)}EBc(c,b.json?JSON.stringify(b.json):b.text);return c};
var GIc=function(a){var b=new _.ro;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(FIc[a]);_.dK(b,c.join(" "))}return b.toString()},HIc={},FIc=(HIc[1]="active",HIc[2]="archived",HIc);
var IIc=function(a,b,c,d){_.GK.call(this,b,c,a.qPa,d);this.ka=a;this.ha=new vvc(_.bK(c),b)};_.K(IIc,_.GK);
IIc.prototype.V=function(a,b,c){var d=this,e,f,h,k,l,p;try{return _.GK.prototype.V.call(this,a,b,c)}catch(xa){}var q=0,r={},v="GET",w={},A=!1,B=!1;if(a instanceof _.QI){v="POST";var E="admin/files/"+a.getId()+"/migrateToTeamDrive";_.Q(a,3)&&(w.useDomainAdminAccess=!0);w.fields="kind,id,parentId,teamDriveId";w.fileId=a.getId();_.dj(a,4)&&(w.preFlightValidationToken=_.z(a,4));var I={parentId:a.Zj()};r["content-type"]="application/json";A=B=!0;_.KJ(this.H,[],[a.getId(),a.Zj()],this.O,r)}else if(a instanceof
_.RI){v="POST";E="files/"+a.qc()+"/authorize";w.appId=a.Jh();_.Q(a,3)&&(w.propagate=!0);var M=a.re();B=!0;w.supportsTeamDrives=!0;_.KJ(this.H,[],[a.qc()],this.O,r)}else if(a instanceof RK)E="drives/"+a.getId(),v="PUT",I={removeSecureLinkUpdateForAllFiles:_.R(a,2,!1)},r["content-type"]="application/json",w.fields=CL(this.H,[],!0),M=a.re(),B=!0;else if(a instanceof _.Ygc)v="POST",E="teamdrives/"+a.requestId,w.fields=CL(this.H),I={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.re(),
B=!0;else if(a instanceof _.VI)v="POST",E="workspaces",w.fields="kind,id,title,createdDate,modifiedDate,state",I=moc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.SI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.Kgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.convert=_.R(a,4,!1),I=loc(a),r["content-type"]="application/json",M=a.re(),a=_.re(a,3).concat([a.getId()]),_.KJ(this.H,[],a,this.O,r),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=
!0);else if(a instanceof _.WI)v="DELETE",E="apps/"+a.Jh(),w.appId=a.Jh(),w.deleteAppData=!!_.Q(a,2),M=a.re(),B=!0;else if(a instanceof _.XI)v="DELETE",E="backups/"+a.getId(),q=9;else if(a instanceof _.YI)v="DELETE",E="files/"+a.getId(),M=a.re(),B=!0,w.supportsTeamDrives=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0),_.KJ(this.H,[],[a.getId()],this.O,r);else if(a instanceof _.ZI)v="DELETE",E="files/"+a.qc()+"/permissions/"+_.z(a,2),M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.$I)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.z(a,2),M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.aJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.oD)v="DELETE",M=a.getKey(),E="settings/"+_.To(M),_.So(M)&&(w.namespace=Voc[_.So(M)]),M=a.re(),B=!0;else if(a instanceof _.bJ)v="DELETE",E="workspaces/"+a.getId(),M=a.re(),B=!0;else if(a instanceof _.eJ)v="DELETE",E="files/trash",M=a.jd().re(),B=!0,_.R(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.gJ)E="apps/"+a.Jh(),M=a.re(),B=!0,w.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 _.mJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=YK(_.fI(this.H));else if(a instanceof _.hJ)v="POST",E="apps",w.appId=a.Jh(),M=a.re(),B=!0;else if(a instanceof _.iJ)v="POST",E="files/"+a.qc()+"/permissions",w.fields=_.mI(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",w.emailMessage=
_.z(a,5)||"",w.sendNotificationEmail=!_.R(a,6,!1),M={},B=a.Df(),1==B?M.role="owner":3==B?M.role="writer":4==B?(M.role="reader",M.additionalRoles=["commenter"]):2==B&&(M.role="reader"),B=a.getType(),1==B?M.type="user":2==B?M.type="group":3==B?M.type="domain":4==B?M.type="anyone":5==B&&(M.type="audience"),a.Wa()&&(M.value=a.Wa()),M.withLink=!_.R(a,8,!1),I=M,r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.Ugc)q=8,v="POST",E="/v1/exports",r["content-type"]=
"application/json",I=_.re(a,1).map(function(xa){if(_.R(d.H,89,!1)){var ua=_.Ujc(d.O,xa);if(null!==ua)return{id:xa,resource_key:{resource_key:ua}}}return{id:xa}}),I={archiveFormat:null,archivePrefix:_.z(a,2),conversions:null,items:I,locale:null};else if(a instanceof _.nI||a instanceof _.gK||a instanceof _.$z||a instanceof _.eG)if(b=a instanceof _.nI?a.jd():a,_.JJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var P=9==_.WJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",T={};I={};T.applicationType=
Evc(this.H);T.platformType=P;T.languageCode=YK(_.fI(this.H));T.timeZone=(new _.kt).saa();T.requestType="LIVE_REQUEST";a instanceof _.nI&&(P=a.getOptions())&&_.R(P,10,!1)&&(T.requestType="BACKGROUND_REQUEST");if(b instanceof _.Af)if(_.jJ(b)){if(Avc(this.ha)){T.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.y(b,Gqc,75))||void 0===e?void 0:_.y(e,Hqc,1))||void 0===f?void 0:_.z(f,1))T.clientTags=T.clientTags||[],T.clientTags.push({name:a});this.Xf.O(106026)}else _.R(b,74,!1)?T.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":
T.scenarioType="QUICK_ACCESS";2==_.TJ(b)&&(_.re(b,33),Avc(this.ha)||(T.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),I.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.re(b,33)[0]}]);_.hl(b).length&&(I.itemType=Dvc(b))}else _.kJ(b)?T.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.lJ(b)&&(T.scenarioType="DRIVE_PRIORITY");else b instanceof _.gK?(E="/v1/userfeedback",I.userFeedback=_.yb(b,_.Lsc,1).map(function(xa){var ua=_.y(xa,_.jL,2),Ja={},ib={};ib.feedbackType=[_.xfc[ua.getType()]];Ja.item=
ib;Ja.clientInfo=T;switch(xa.getFeature()){case 1:T.scenarioType="DRIVE_PRIORITY";ib.itemId=ua.qc();break;case 3:T.scenarioType="QUICK_ACCESS";ib.itemId=ua.qc();break;case 4:T.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";ib.itemId=ua.qc();break;case 2:T.scenarioType="DRIVE_WORKSPACES",ib.itemId=ua.qc(),ib.childItem=_.yb(ua,_.jL,3).map(function(Ub){var cc;return{itemId:null!==(cc=Ub.qc())&&void 0!==cc?cc:void 0}})}return Ja})):b instanceof _.$z?T.scenarioType="DRIVE_WORKSPACES":b instanceof _.eG?(T.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",I.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Xq()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:null!==(h=_.Q(b,5))&&void 0!==h?h:void 0}]):_.Bmc(a);b instanceof _.gK||(I.maxSuggestions=b.xi(),I.clientInfo=T)}else{M=b.re();B=!0;b.getId();E="files";w.q=_.fjc(b,null===(k=_.IJ(this.H))||void 0===k?void 0:_.R(k,23,!1));P=[];var aa;(aa=_.IJ(this.H))&&_.R(aa,4,!1)?(aa=_.Aa(this.hh(),this.hh(b.H())),_.Ga(aa)):aa=
_.Ba(this.hh());var ba=void 0,da=!1;0<_.yb(b,_.$k,5).length&&(ba=_.z(this.H.Tf(),50),da=!0);w.fields=dnc({fields:aa,anonymous:_.KI(_.fI(this.H)),v8:ba||void 0,iF:_.mI(this.H),sEb:da});w.appDataFilter="NO_APP_DATA";0<_.yb(b,_.SJ,25).length&&(w.sources=_.Yic(b));0<b.lA().length&&(w.spaces=_.Zic(b));a.Yn()&&(w.pageToken=a.Yn());(a=a.getOptions())&&_.wj(a,1,1E3)&&(w.maxResults=_.wj(a,1,1E3));_.R(b,36,!1)&&(w.includeUnsubscribed=!0);_.z(b,43)&&(w.rawUserQuery=_.z(b,43));w.supportsTeamDrives=!0;w.includeItemsFromAllDrives=
_.R(b,66,!0);0<_.re(b,33).length&&2==_.TJ(b)&&(a=_.re(b,33)[0],w.teamDriveId=a,P.push(a));w.corpora=_.Vic[_.TJ(b)];_.Q(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.jl(b);aa=_.yb(b,_.Rk,35);ba=_.yb(b,_.Rk,38);P=P.concat(a.filter(function(xa){return!_.R(xa,2,!1)}).map(function(xa){return xa.Wa()})).concat(aa.map(function(xa){return xa.Wa()})).concat(ba.map(function(xa){return xa.Wa()}));_.KJ(this.H,_.yb(b,_.dl,63),P,this.O,r);Enc(w,b.Lc());_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=
!1);_.y(b,_.Bpa,64)&&(a=_.Lj(_.y(b,_.Bpa,64),Iqc),a=_.sb(a,4),w.searchSessionData=a)}else if(a instanceof _.oJ){E="apps";switch(a.getType()){case 1:w.fields=JIc;break;case 2:w.fields=KIc;break;case 4:w.fields=LIc;break;case 3:q=5,E="apps",w.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",w.appQueryScope="all_webstore",b.Ju=!0}w.languageCode=YK(_.fI(this.H));
0<_.re(a,3).length&&(w.appFilterExtensions=_.re(a,3).join(","));0<_.re(a,4).length&&(w.appFilterMimeTypes=_.re(a,4).join(","));M=a.re();B=!0}else if(a instanceof _.Vgc)E="backups",q=9,w.languageCode=YK(_.fI(this.H));else if(a instanceof _.zI)E="changes",w.includeDeleted=_.R(a,3,!0),w.includeSubscribed=_.R(a,4,!0),w.maxResults=a.NR(),w.startChangeId=_.z(a,1),w.fields=cnc({fields:this.hh(),v8:CL(this.H,_.re(a,5)),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.appDataFilter="NO_APP_DATA",a.uc()||(w.filters=
"DRIVE_DATASERVICE"),M=_.re(this.H.Tf(),31),M.length&&(w.spaces=_.zf(M,function(xa){return _.vfc[xa]}).join(",")),w.supportsTeamDrives=!0,w.includeCorpusRemovals=!0,w.includeItemsFromAllDrives=!0,a.uc()&&(w.teamDriveId=a.uc()),M=a.re(),B=!0;else if(a instanceof _.pJ)b=a.jd(),E="files/"+b.getId()+"/permissions",w.fields=_.mI(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.Yn()&&(w.pageToken=a.Yn()),_.z(a,1)&&(w.maxResults=_.z(a,1)),M=b.re(),B=!0,w.supportsTeamDrives=!0,_.R(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=!1),_.KJ(this.H,[],[b.getId()],this.O,r);else if(a instanceof _.qJ)w.fields=_.mI(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))",
w.maxResults=a.xi(),E="files/"+a.qc()+"/revisions",M=a.re(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.rJ)v="POST",E="files/"+(_.z(a,1)||"")+"/migrateToDrive",_.Q(a,3)&&(w.useDomainAdminAccess=!0),w.fields=_.Kgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.fileId=null!==(l=_.z(a,1))&&void 0!==l?l:void 0,_.dj(a,4)&&(w.preFlightValidationToken=_.z(a,4)),I=koc(a),r["content-type"]="application/json",A=B=!0,_.KJ(this.H,[],[_.z(a,1)||"",_.z(a,2)||""],this.O,r);
else if(a instanceof _.fG)a.V(),E="teamdrives/"+a.V()[0],w.fields=CL(this.H,a.H()),M=a.re(),B=!0;else if(a instanceof _.ghc)v="POST",E="admin/files/migrateToTeamDrivePreFlight",_.Q(a.request,3)&&(w.useDomainAdminAccess=!0),I=noc(a),r["content-type"]="application/json",B=A=!0,_.KJ(this.H,[],_.re(a.request,1),this.O,r);else if(a instanceof _.EJ){M=a.jd();E="teamdrives";w.fields=lvc(this.H,M.H());w.q=mvc(M);a.Yn()&&(w.pageToken=a.Yn());if(M=(M=a.getOptions())&&_.wj(M,1,1E3))w.maxResults=M;M=a.jd().re();
B=!0}else if(a instanceof _.hhc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.yJ)v="PUT",E="apps/"+a.Jh(),w.appId=a.Jh(),B={},B.useByDefault=null!==(p=_.Q(a,2))&&void 0!==p?p:void 0,_.Q(a,3)&&(B.hasAppData=!1),r["content-type"]="application/json",M=a.re(),I=B,B=!0;else if(a instanceof _.xI)v="PUT",E="files/"+a.getId(),w.fields=_.Kgc({fields:this.hh(),anonymous:_.KI(_.fI(this.H)),iF:_.mI(this.H)}),w.modifiedDateBehavior="DRIVE_UI",w.updateViewedDate=
!!_.Q(a,15),w.fileId=a.getId(),_.re(a,9).length&&(w.addParents=_.re(a,9).join(",")),_.re(a,10).length&&(w.removeParents=_.re(a,10).join(",")),_.re(a,31).length&&(w.addWorkspaces=_.re(a,31).join(",")),_.re(a,32).length&&(w.removeWorkspaces=_.re(a,32).join(",")),null!=_.Q(a,24)&&(w.confirmed=_.Q(a,24)),w.languageCode=YK(_.fI(this.H)),I=ooc(a),r["content-type"]="application/json",M=a.re(),B=!0,w.supportsTeamDrives=!0,this.W(a.getId(),w),_.Q(a,36)?w.bypassMultiparentingCheck=!0:_.R(this.H,3,!1)&&(w.enforceSingleParent=
!0),b=_.re(a,9).concat(_.re(a,10)),b.push(a.getId()),_.KJ(this.H,_.yb(a,_.dl,38),b,this.O,r);else if(a instanceof _.AJ)v="PUT",E="files/"+a.qc()+"/revisions/"+_.z(a,2),I=poc(a),r["content-type"]="application/json",M=a.re(),_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.BJ)E="teamdrives/"+a.getId(),null!=_.Q(a,15)?(v="POST",E+="/"+(_.Q(a,15)?"hide":"unhide")):(v="PUT",I=roc(a),r["content-type"]="application/json"),w.fields=CL(this.H),M=a.re(),B=!0;else if(a instanceof _.CJ)v="PUT",E="workspaces/"+
a.getId(),w.fields="kind,id,title,createdDate,modifiedDate,state",I=soc(a),r["content-type"]="application/json",M=a.re(),B=!0;else if(a instanceof _.pD){v="PUT";M=_.y(a,_.Qo,1);B=M.getKey();E="settings/"+_.To(B);if(B=_.So(B))w.namespace=Voc[B];I=Woc(M);r["content-type"]="application/json";M=a.re();B=!0}else if(a instanceof _.PH)E="about",w.fields=_.mI(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",w.fields=Zoc(w.fields,this.H),M=a.re(),B=!0;else if(a instanceof _.EI){q=11;v=a.fA();E=a.getUrl();var ha=_.z(a,5)||"";_.yb(a,_.rgc,2).forEach(function(xa){r[xa.getKey()]=
xa.Wa()});P=_.m(_.yb(a,_.rgc,4));for(aa=P.next();!aa.done;aa=P.next())aa=aa.value,w[aa.getKey()]=aa.Wa();_.Q(a,7)&&(b.yOb=!0);_.Q(a,8)&&(b.Ju=!0);_.Q(a,9)&&(b.aHa=!0)}else a instanceof _.Xgc?(b=a.request.qc(),E="files/"+b+"/listCategoryMetadata",M=a.request.re(),a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),w.fields="kind,nextPageToken,categoryMetadata",_.KJ(this.H,[],[b],this.O,r)):a instanceof _.zJ?(r["content-type"]="application/json",v="POST",b=a.qc(),E=
"files/"+b+"/updateCategoryMetadata",M=a.re(),I={categoryMetadata:a.uW().map(function(xa){var ua=_.yb(xa,_.YF,2).map(function(ib){return{id:ib.getId(),userId:ib.Eu(),setBooleanValue:_.Q(ib,3),setTextValue:_.z(ib,4),setTextValues:_.re(ib,6),addTextValues:_.re(ib,5),setLongTextValue:_.z(ib,7),setSelectionValue:_.z(ib,8),setSelectionValues:_.re(ib,10),addSelectionValues:_.re(ib,9),setIntegerValue:_.z(ib,11),setIntegerValues:_.re(ib,13),addIntegerValues:_.re(ib,12),setUserValue:_.z(ib,14),setUserValues:_.re(ib,
16),addUserValues:_.re(ib,15),setDateStringValue:_.z(ib,17)}}),Ja={categoryName:xa.Jm()};ua.length?Ja.categoryAttributeValueDeltas=ua:_.re(xa,4).length?Ja.revertAttributeIds=_.re(xa,4):_.Q(xa,3)&&(Ja.removeCategory=_.Q(xa,3));return Ja})},_.KJ(this.H,[],[b],this.O,r)):a instanceof _.tJ?(q=13,E=_.KI(_.fI(this.H))?"/v2/people/public":"/v2/people",r["content-type"]="application/json",w.person_id=_.re(a,1),w["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],w["request_mask.include_field.paths"]=
["person.metadata.best_display_name","person.photo","person.email"],w["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.KI(_.fI(this.H))||(w["core_id_params.enable_private_names"]=!0)):a instanceof _.chc?(q=12,E="/v1/categories/-/published",r["content-type"]="application/json",a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),a.request.getCustomer()&&(w.customer=a.request.getCustomer()),w.$outputDefaults=!0,w.languageCode=YK(_.fI(this.H))):
a instanceof _.$F?(q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=YK(_.fI(this.H))):a instanceof _.TI?(r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.re(),B=!0,w.fields=CL(this.H,[157],!0),I={},b=_.yb(a,_.yk,2),b.length&&(I.addCategoryReferences=b.map(function(xa){return{category:xa.Jm()}})),a=_.yb(a,_.yk,3),a.length&&(I.removeCategoryReferences=a.map(function(xa){return xa.Jm()}))):a instanceof _.gG?
(_.re(a,1),E="workspaces/"+_.re(a,1)[0],w.fields="kind,id,title,createdDate,modifiedDate,state",M=a.re(),B=!0):a instanceof _.Wgc?(q=7,v="POST",E="/v2/activity:query",r["content-type"]="application/json",I={},I.pageSize=a.pageSize,a.pageToken&&(I.pageToken=a.pageToken),b="items/"+a.request.getId(),_.R(a.request,2,!1)?I.ancestorName=b:I.itemName=b,I.consolidationStrategy={legacy:{}},a=["MULTIPARENTING_MIGRATION"],b=_.IJ(this.H),(null===b||void 0===b?0:_.R(b,21,!1))&&a.push("HIERARCHY_RECONCILIATION"),
I.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:("+(a.join(" ")+")")):a instanceof _.Zgc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.$gc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.bhc&&a instanceof _.bhc?(E="changes",w.fields="kind,largestChangeId",w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,a.teamDriveId&&(w.teamDriveId=a.teamDriveId),M=a.H,B=!0):a instanceof _.nD?(E="settings",M=_.re(a,3),w.namespace=Xoc(M),M=a.re(),B=!0):a instanceof
_.jhc?(E="workspaces",w.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(w.pageToken=a.pageToken),a.request.xi()&&(w.maxResults=a.request.xi()),w.q=GIc(a.request),(M=a.request.MB())&&1==M.getType()&&(w.orderBy="title"),M=a.request.re(),B=!0):a instanceof _.uJ?(E="changes/getRemainingCount",w.pageToken=_.z(a,2),_.dj(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.re()):a instanceof _.PI?(r["content-type"]="application/json",
v="POST",E="files/"+a.qc()+"/sendAccessRequest",I={},A=!0):_.Bmc(a);B&&_.Cmc(c,w);0!=q||A||M&&_.z(M,1)||_.rK(this.Xf,74438989);return _.Dmc(this,q,E,w,r,v,M,I,ha)};IIc.prototype.W=function(a,b){a=this.ka.bm.H(a);b.expectedParentIds=a?a.vk().join(","):[]};
var JIc=Yoc("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"),KIc=
Yoc("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"),
LIc=Yoc("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 MIc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,w,A,B,E,I,M,P,T,aa,ba){this.Zpa=_.Rh();this.Fga=new _.ckc;var da=new _.ukc(this.zK.bind(this),function(){return T("w8KrJc")}),ha=new iGc(b.bm),xa=new $Fc(da);c=new RFc(b,f,new LFc(d,e,c),h,this.Zpa.promise,k,l,c,T);d=new hGc(b,p,q,r,v,d,e,B,k);this.O=new _.fkc(a,w);w=new IIc(b,a,k,aa);this.jua=new xIc(k,a,A,B);this.H=hAc(a,new _.Llc(this.O,this.Fga,w,this.jua,E,I,M),I,A,P,b.bm,this.Fga,this.Zpa.promise,M||void 0);this.Zpa.resolve(ba?ba:new _.ilc(new jGc,
ha,xa,this.H,da,c,d,a))};MIc.prototype.zK=function(){return _.Wa(this.H,function(a){return a.zK()})};var KCc=function(a){var b=new Map,c=Date.now();_.Ta(a.H,function(d,e){d=esc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var NIc=function(a,b){var c=this;this.context=a;this.Bg=b;this.ka=null;this.yS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Fa=!1;this.Xf=a.kk();this.ha=_.Rh();this.O=a.Xc;this.Ka=_.IJ(this.O)||new _.$hc;b=_.ZK(this.O);this.Ba=new _.Vjc(_.wj(b,2,37500),_.wj(b,3,6E5));this.ta=a.mR;_.Ta(Tvc,function(d){c.W[d]=[]});this.V=a.Jf.St;NL(a.Oj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});NL(a.Oj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});NL(a.Oj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.HL().then(null,_.bg)})};_.g=NIc.prototype;_.g.initialize=function(){var a=this;this.Fa||(this.Fa=!0,xM(this.context).addCallback(function(b){a.ta.initialize().dg(function(){a.ka=b;a.setActive(!0)},function(c){c&&Krc(a.context.Be(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.NI(c));a.log("Error initializing dump storage");a.dT()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.Loa=function(a){this.active&&(this.yS+=a,this.yS>_.wj(_.ZK(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.YR().zK()||0<b.Jf.YI.ppa||b.Ij().Me()||b.xk().Me())||((this.active=a)?(this.ha.resolve(),this.H||this.HL().then(null,_.bg)):(this.ha=_.Rh(),_.n.clearTimeout(this.wa)))}};_.g.dT=function(){this.ma=!0};_.g.a_a=function(){return this.H?this.H.promise:_.Oh()};
_.g.HL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Rh();_.Sh(this.H.promise,function(){a.H=null});var b=this.Xf.H(106021)||void 0;this.ha.promise.then(function(){return bAc(a.context.UD)}).then(function(c){var d=!c;return a.ma?d:_.Qh([OIc(a,3,d,void 0,void 0,b),OIc(a,0,d,void 0,!0,b),OIc(a,1,d,void 0,!0,b),OIc(a,5,d,void 0,!0,b),OIc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Hc("Failed to update dump",void 0,_.NI(e));return _.Ph(e)})},function(){return _.Ph(Error("Kg"))}).then(function(c){a.H.resolve(c);
b&&(c=Qrc(b),_.x(c,2,!0),b.Bj())},function(c){a.H.reject(c);b&&(c=Qrc(b),_.x(c,2,!1),b.Bj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.Th,e=this.Xf.H(106021)||void 0;e&&(xrc(Qrc(e),_.iK(_.Pfc,a)),d.then(function(){var f=Qrc(e);_.x(f,2,!0);e.Bj()},function(){var f=Qrc(e);_.x(f,2,!1);e.Bj()}));this.ha.promise.then(function(){return bAc(c.context.UD)}).then(function(f){f=!f;c.ma?d.callback():_.Wh(OIc(c,a,f,b,void 0,e),d)});return d};
var OIc=function(a,b,c,d,e,f){var h=_.ka(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.Ee.nn();var k=new _.Th;_.Vh(h.Ee,function(){_.Wh(a.qw(b,c,d,e,f),k)})}else k=a.qw(b,c,d,e,f);var l={encrypt:c,Ee:k};a.W[b].push(l);_.Vh(k,function(){_.za(a.W[b],function(p){return l===p})});k.Ag(function(p){a.ta.O.If()?a.dT():p instanceof _.Hc&&(p=p.O||null,p instanceof _.UH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.dT());return null});
return k};
NIc.prototype.qw=function(a,b,c,d,e){var f=this,h=new _.Th;this.ha.promise.then(function(){if(3===a)_.Wh(PIc(f,c||!1,b,e),h);else{switch(a){case 0:var k=UCc(f.context.KQ);break;case 1:k=f.context.P_.ht();break;case 5:k=QIc(f.context.FE);break;case 6:k=Lxc(f.context.Jf.Kq);break;default:h.Gd("Invalid data type to write to storage.");return}if(k){var l=_.yb(_.ZK(f.O),XK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):Zyc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Gd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Gd("Failed to get data to write to dump.")}});return h};
var PIc=function(a,b,c,d){_.VJ(a.O)||(_.n.clearTimeout(a.wa),a.wa=_.n.setTimeout(function(){_.ZH(a.Ba);a.update(3,!0)},a.Ba.Wa()));if(b&&0===a.yS)return _.Yh();a.yS=0;b=_.yb(_.ZK(a.O),XK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.Yh();for(var e=[],f=_.m(RIc(a)),h=f.next();!h.done;h=f.next())h=SIc(a,h.value),h.length&&e.push(Zyc(a.ta,c?b:null,h,d));var k=new _.Th;Promise.all(e).then(function(){a.Ia&&a.context.UD.set($zc,!0);k.callback()},function(l){return void k.Gd(l)});
return k},RIc=function(a){var b,c,d,e=Object.values(Guc).filter(function(f){return 0<f&&!TIc.includes(f)});(null===(b=_.IJ(a.context.Xc))||void 0===b?0:_.R(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.MD)||null===(d=a.V.O)||void 0===d||!d.MD?e.push(2):e.push(5):e.push(2);return e},SIc=function(a,b){switch(b){case 1:return[UIc(a)];case 2:return b=a.V.H,a=Fuc(VIc(a,b),2),b&&Duc(a,b.gO()),[a];case 5:return b=a.V.O,a=Fuc(VIc(a,b),5),b&&(Duc(a,b.gO()),b=Twc(b),_.jj(a,14,b)),[a];case 3:return WIc(a);case 4:return XIc(a);
default:throw new _.Hc("Unsupported CacheType");}},UIc=function(a){for(var b={},c=[],d=bxc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.Dy(),l=YIc(a,foc(k));k=l.length;var p=0<k?l[k-1]:null;_.Ma(l,function(q){b[q.getId()]=q});if(0<k||h.H)l=(new uL).Vg(h.jd()),h.H||(_.x(l,2,k),_.G(l,3,p),e=!1),c.push(l)}d=_.Ya(b);a.log("Exporting "+d.length+" initial dump items.");return Duc(Fuc(Cuc(Auc(Buc(Euc((new vL).qz(a.context.Cu()),_.bK(a.Bg)),a.ka.mH(null)),ZIc(d)),c),1),!e)},VIc=function(a,b){var c=b?b.Dy():
[];c=YIc(a,_.Ya(goc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.wj(_.ZK(a.O),5,2E4)&&(b&&QL(b,!1),c=[]);c=Auc(new vL,ZIc(c));var d=new xoc;(a=a.V.H)&&a.MD&&(a=a.Dy(),_.x(d,3,a.length));a=_.G(c,11,d);b&&Duc(a,b.gO());return a},WIc=function(a){var b=[],c=a.ka;a.V.SW().forEach(function(d){var e=c.mH(d.uc());if(e){var f=YIc(a,foc(d.Dy()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=Duc(Fuc(Buc(Auc(new vL,ZIc(f)),e),3),d.gO());d=(new uL).Vg(d.jd());Cuc(e,[d]);
b.push(e)}});return b},XIc=function(a){var b={},c=[];a.context.Jf.SW().forEach(function(d){1===d.pW()&&null==_.Q(d.jd(),6)&&(foc(d.Dy()).forEach(function(e){b[e.getId()]=e}),d=yuc((new uL).Vg(new _.Af),d.jd()),c.push(d))});return[Duc(Fuc(Cuc(Auc(new vL,ZIc(Object.values(b))),c),4),!1)]},YIc=function(a,b){b=Dnc(b);_.Q(a.O,67)&&(b=$Ic(b));_.mI(a.O)&&(_.R(a.Ka,9,!1)?Oxc(a.context.Jf.Kq,b)&&(_.rK(a.Xf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=Mxc(a.context.Jf.Kq,
b)):b=Mxc(a.context.Jf.Kq,b));return b.filter(function(c){return 4!==c.Kv()})},$Ic=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,vnc(c)?(c=c.clone(),enc(c,unc),b.push(c)):b.push(c);return b},ZIc=function(a){return a.map(function(b){return b.clone()})};NIc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};NIc.prototype.jGa=function(){this.Ia=!0};var TIc=[2,5];
var aJc=function(){};_.g=aJc.prototype;_.g.setActive=function(){};_.g.dT=function(){};_.g.update=function(){return _.Yh()};_.g.a_a=function(){return _.Oh()};_.g.HL=function(){return _.Oh()};_.g.Loa=function(){};_.g.jGa=function(){};
var VK=function(a,b,c,d){_.pi.call(this);var e=this;this.Aa=a;this.Mw=c;this.rootId=null;this.Ia=!0;this.ha=null;this.ta=[];this.Ba=d||new _.Gic;this.Xc=b.clone();_.gI(this.Xc,28);this.Bg=new _.Uic(this.Xc);this.Pl=new vvc(_.bK(this.Bg),this.Xc);bJc(this);this.wY=new _.bn;this.yb=_.n.setTimeout(function(){e.Be().info("drive.ds.sync.ThinContext","Page stable timed out.");e.wY.resolve();e.kk().O(106020)},1E4);this.O_=new _.Th;this.Fa=new _.wjc(_.XJ(this.Xc),_.R(this.Xc.Tf(),52,!1));this.ka=new _.pjc(_.XJ(this.Xc)?
3:1,!_.R(this.Xc.Tf(),52,!1));this.Xf=_.Mjc(this.Xc,this.Fa,this.ka,this.Ba,this.wY.promise,this.Mw);this.kua=new hwc(this.Xf);this.RQ=new _.Th;this.log("Enabled experiments: "+this.kk().W.W);cJc(this)};_.K(VK,_.pi);VK.prototype.getEnvironment=function(){return this.Mw};VK.prototype.WS=function(){this.Be().info("drive.ds.sync.ThinContext","Notified of page stable.");_.n.clearTimeout(this.yb);this.wY.resolve()};
var cJc=function(a){var b=function(){a.Kt().then(null,_.bg)},c=a.Aa;(c=c&&_.Dc(c,_.Dl))?_.ki(c,"w",b):_.Xfc()||_.ki(_.n,"unload",b)};VK.prototype.Kt=function(){this.Xf.O(106005);Urc(this.Xf);var a=this.ta.map(function(b){return b()});_.ra(this.ta);return Promise.all(a).then()};var dJc=function(a,b){a.ta.push(b)};_.g=VK.prototype;_.g.Be=function(){return this.Ba};_.g.qz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.O_.callback(a),a.length&&this.S7a(a,b||null))};
_.g.S7a=function(){};_.g.Cu=function(){return this.rootId};_.g.kk=function(){return this.Xf};var eJc=function(a){if(!a.ha)throw Error("Lg");return a.ha},fJc=function(a,b){a.ha=b};VK.prototype.UB=function(){return this.Ia||this.ka.isConnected()};VK.prototype.Ij=function(){return this.Fa};VK.prototype.xk=function(){return this.ka};VK.prototype.QRb=function(a){this.RQ.callback(a)};
var bJc=function(a){var b=a.Xc.Tf();0===_.re(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.x(b,19,3));if(!_.C(b,37,""))throw Error("Mg");_.z(b,57)||(a.log("No root URI provided; using prod default."),_.x(b,57,"https://clients6.google.com"));if(_.R(_.ZK(a.Xc),9,!1))if(b=_.yb(_.ZK(a.Xc),XK,11),0<b.length){if(!_.z(b[0],1)||!b[0].getKey()&&!_.XJ(a.Xc)&&!_.VJ(a.Xc))throw Error("Ng");}else _.x(_.ZK(a.Xc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.R(_.ZK(a.Xc),9,!1)&&(_.XJ(a.Xc)||_.VJ(a.Xc)))throw Error("Og");var c=_.fI(a.Xc);b=!(!c||!_.KI(c));c=c&&_.UJ(c)||"";if(!b&&!c)throw Error("Pg");b&&_.mj(a.Xc,44);_.yb(a.Xc,_.Af,44).forEach(function(d){try{Bvc(a.Pl,d)}catch(e){if(e instanceof _.Hc&&(d=e.tg)&&3===d.gB())throw Error("Qg");throw e;}})};VK.prototype.HJ=function(a){this.dispatchEvent(new _.Ic(new _.Hc(void 0,a)))};VK.prototype.log=function(a){this.Be().info("drive.ds.sync.ThinContext",a)};
var gJc=function(a,b){this.H=a;this.Pe=b};
var hJc=new Set([5,4,1,6,2]),iJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),jJc=function(a,b,c){_.pi.call(this);this.ha=a;this.V=b;this.W=c;this.hG=new Map;this.O=new Map;this.status=6;this.H=null};_.K(jJc,_.pi);
jJc.prototype.SQ=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())&&_.So(q))&&f.add(q)});[].concat(_.fc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=hJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.To(r);r=k.get(r&&_.So(r));v&&r&&r.set(v,kJc(q))});var l=0,p=0;[].concat(_.fc(k.keys())).forEach(function(q){var r=k.get(q),v=e.hG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.To(A)))&&_.uj(w,A)||l++}),[].concat(_.fc(v.values())).forEach(function(w){w=w.getKey();r.has(_.To(w))||p++}),e.hG.set(q,r),e.O.set(q,b)):(l+=r.size,e.hG.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,OL(this.V,"px2C2c");OL(this.V,"rkYxSd")}(l||p)&&lJc(this,!h)}};jJc.prototype.yH=function(){return 0<this.hG.size};
var lJc=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 _.gi("WPi0i"))};jJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.So(b);b=b&&_.To(b);if(c&&b&&(c=this.hG.get(c))){var d=c.get(b);a=kJc(a);d&&_.uj(a,d)||(c.set(b,a),lJc(this))}};jJc.prototype.remove=function(a){var b=a&&_.So(a);a=a&&_.To(a);b&&a&&(b=this.hG.get(b))&&b.delete(a)&&lJc(this)};
var QIc=function(a,b){var c=[];(b||[].concat(_.fc(a.hG.keys()))).forEach(function(e){(e=a.hG.get(e))&&[].concat(_.fc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.hG.has(e)}):[].concat(_.fc(a.hG.keys()));var d=new ysc;_.lj(d,1,c);_.jj(d,2,b);return d};
jJc.prototype.rH=function(a){var b=this,c=QIc(this,a),d=new _.Xz;d.Dc(this.status);_.ojb(d,_.yb(c,_.Qo,1));_.G(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);iJc.has(f)&&Infinity>iJc.get(f)&&(e=f)});return new gJc(d,e)};var kJc=function(a){a=a.clone();a.Ng()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var mJc=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},oJc=function(a,b){return nJc(a[b])+(nJc(a[b+1])<<8)+(nJc(a[b+2])<<16)+(nJc(a[b+3])<<24)},nJc=function(a){return 127<a?a-256:a};
var WK=function(a,b,c,d,e,f){VK.call(this,a,b,c,d);var h=this;this.$a=_.Rh();this.Bt=new UL;this.W=null;this.O=_.Rh();this.Ka=new _.Th;this.m7=null;this.Hga=new dyc;this.V=null;this.kb=_.Rh();this.wa=new _.Th;this.tG=new Jyc;this.Bx=new nyc;this.qia=new kyc;this.eba=new _.bn;this.Pa=!1;this.Gga=new _.bn;this.H={};this.ma=null;this.Jb=new _.nf;this.Ja(this.Jb);this.Oj=e?e:new Nwc(this.Be());this.kk().W.O=this.Oj;this.fM=_.R(_.ZK(b),9,!1)&&$oc()?pJc(this,b):null;this.Tv=new pvc(YK(_.fI(b)));this.UD=
qJc(this,this.fM);this.mR=rJc(this,this.fM,b);this.Jf=new AM(this,this.Bg);this.Ts=sJc(this);(a=(a=_.y(this.Xc,_.Ak,12))&&a.getId())&&this.qz(a,6);this.KQ=new TCc(this.Xc,this.Jf.Kq,this.Oj,this.Be(),this.Ts);this.P_=new ZCc(this.Be(),this.Oj,this.Ts);this.FE=new jJc(this.Be(),this.Oj,this.Ts);this.ZI=new $vc(this.Lm(),this.Be(),function(k){return void h.HJ(k)});this.Cz=_.R(this.Xc.Tf(),52,!1)?new _.sK(this.xk(),this.Lm(),this.Be(),this.kk()):null;NL(this.Oj,["mrK8ic"],function(){h.kb.promise.then(function(){GDc(h,
h.V)})});this.uPa=new Fyc(this.Xc);this.kB=new _.nkc(this.Xc,this.Jf.bm,this.Bg);this.lua=new HFc(this);this.l7=new hyc(this.O.promise,this.Lm());this.ob=new lyc(this.Lm(),this.l7);this.Iga=new Byc(this.O.promise,this.Lm(),this.Be(),this.Xc);this.Ua=new MIc(this.Xc,this.Jf,this.HJ.bind(this),this.l7,this.ob,this.Ts,this.Hga,this.Bg,this.Cu.bind(this),this.lua,this.P_,this.FE,this.Iga,this.tG,this.Be(),this.uPa,this.kB,this.ZI,this.Cz,this.Ij(),this.Lsb.bind(this),this.kk(),f);this.$a.resolve(this.Ua);
this.eMa=new rFc(this);NL(this.Oj,["BNEDtc"],function(){return h.Gga.resolve()});dJc(this,function(){h.Ts.dT();return _.Oh()})};_.K(WK,VK);
var pJc=function(a,b){var c=_.UJ(_.fI(b)),d=_.WJ(b),e=function(){},f=_.yb(_.ZK(b),XK,11);f=f[0]&&_.z(f[0],1);var h=new uzc(c,d,_.wj(_.ZK(b),10,0)||0,f||"",_.bK(a.Bg));_.XJ(b)?c=Pzc(c,d).then(function(l){return l?l:h}):_.VJ(b)&&0<_.wj(_.ZK(b),8,432E6)?(b=tJc(a,c),c=Pzc(c,d,b).then(function(l){return l&&(e=function(p){return p.Ll(h).then(null,_.bg)},!l.ha)?l:h})):c=_.Oh(h);var k=new dM(c,a.Be(),a.kk());k.initialize().then(function(){return e(k)},function(){return null});return k},tJc=function(a,b){var c=
_.wj(_.ZK(a.Xc),8,432E6);if(!_.XJ(a.Xc)&&0<c){a=Math;var d=a.abs;b=_.bna(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+=oJc(b,e),h.b+=oJc(b,e+4),h.c+=oJc(b,e+8),mJc(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+=oJc(b,e+4);h.a+=oJc(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+=oJc(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=mJc(h);return d.call(a,b)%c}};WK.prototype.nz=function(a){var b=this;return this.fM?this.fM.If()?_.Ph(Error("Rg`"+Bzc(this.fM))):bAc(this.UD).then(function(c){var d=b.fM,e=[];e.push(b.Ts.a_a());e.push(a?d.Ll():Lzc(d));if(a===c)return _.Qh(e).then(function(){return!1});!1===a&&(e.push(Azc(d)),(c=b.Cu())&&e.push(b.UD.qz(c)));return _.Qh(e).then(function(){return b.UD.nz(a)},function(){return!1})}):_.Ph(Error("Sg"))};
var rJc=function(a,b,c){var d=null;b&&(d=new Tyc(b,c,function(e){a.HJ(e)},a.kk()),d.initialize());return d},qJc=function(a,b){var c=new aAc(b||void 0);c.Cu().then(function(d){d&&a.qz(d,5)});b&&(bAc(c).then(function(d){a.Ij().nz(d)}),_.Qh([b.initialize(),a.wY.promise]).then(function(){uJc(a,c)},function(){}));return c},uJc=function(a,b){eAc(b).then(function(c){(!c||c<Date.now()-864E5)&&Szc(_.UJ(_.fI(a.Xc)),_.WJ(a.Xc),a.Be()).then(function(d){d&&(d=Date.now(),b.set(Zzc,d))},function(){})})},sJc=function(a){if(!a.mR)return new aJc;
var b=new NIc(a,a.Bg);a.Jb.listen(a.Ij(),"rb",function(c){return void b.setActive(!c.Me())});a.Jb.listen(a.xk(),[].concat(_.fc(Object.values(_.VB))),function(){return void b.setActive(a.xk().isConnected())});return b};WK.prototype.fZ=function(a){this.m7=a;this.Ka.callback(a)};var xM=function(a){return a.Ka.nn()},JCc=function(a){return a.fM?a.fM.If():null},vJc=function(a,b){a.Oj.H("NSockf")?OL(a.Oj,b):NL(a.Oj,["NSockf"],function(){OL(a.Oj,b)})};
WK.prototype.S7a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Bt.qz(a),this.Pl.qz(a),6!==b&&1!==b||this.UD.qz(a),vJc(this,"jroI5d"))};WK.prototype.cZa=function(){return this.wa.nn()};var GDc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.kb.resolve()):a.wa.Wf()||(a.wa.callback(b),vJc(a,"T8oKm")))},dDc=function(a){if(!a.W)throw Error("Tg");return a.W};_.g=WK.prototype;_.g.YR=function(){return this.Ua};_.g.Lm=function(){return this.$a.promise.then(function(a){return a.Zpa.promise})};
_.g.iGa=function(){this.Pa||(this.Pa=!0,this.eba.resolve(),OL(this.Oj,"aU7Ts"))};_.g.UB=function(){throw Error("Ug");};_.g.Lsb=function(a){this.dispatchEvent(a)};var wJc=function(a,b,c){a.H[b]=c},CCc=function(a){a.ma||(a.ma=new syc(a.O.promise,a.Lm(),a.Be()));return a.ma};
var EM=function(a,b,c){_.pi.call(this);var d=this;this.Fa=a;this.logName=b;this.wa=_.Rh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return xJc(d,e)})};_.K(EM,_.pi);var xJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;DL(a.channel,a.Fa,function(c){c=Pvc(c);a.Kaa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Fa);a.wa.resolve()};EM.prototype.Kaa=function(){};
EM.prototype.send=function(a,b,c,d){var e=this,f=_.Rh();this.wa.promise.then(function(){var h=e.channel;EL(h,e.Fa,Lvc(new Kvc(e.clientId,a,b,d),h.W),function(k){return void yJc(k,a,f,c||function(){})})});return f.promise};var yJc=function(a,b,c,d){a=Pvc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Gc,_.tI(d,2),_.uI(d,6),_.x(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Hc(void 0,d)))};EM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var zJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var FM=function(a,b){_.N.call(this);this.V=a;this.wa=b;this.Ka=this.BV()};_.K(FM,_.N);_.g=FM.prototype;_.g.registerService=function(a){var b=this;DL(a,this.V,function(c){return b.ex(c)})};
_.g.ex=function(a){var b=this;a=Mvc(a);var c=a.H,d=this.Ka[a.method],e=null;if(d)try{var f=d(a);if(f instanceof Nvc)return Ovc(f,c);if(f.then)return f.then(function(h){return Ovc(h,c)},function(h){h=_.vI(h);return Ovc(b.Zc(void 0,h),c)})}catch(h){e=_.NI(h)}f=new _.Gc;_.tI(f,2);_.uI(f,3);_.Bo(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.x(f,20,e.stack);return Ovc(this.Zc(void 0,f),c)};
_.g.Zc=function(a,b,c){if(a&&!b)return new Nvc(a,void 0,c);a=_.vI(b);return new Nvc(void 0,a,c)};_.g.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&EL(a,this.V,Ovc(this.Zc(c,d,b),a.W))};_.g.Kt=function(){return Promise.resolve()};
var AJc=function(){this.channels={};this.H=this.O=this.V=0},BJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Xa(a.channels));return c},CJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var DJc=function(a,b){FM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Jf;this.O=this.context.Iga;this.W=CCc(this.context);this.ka=this.context.l7};_.K(DJc,FM);
DJc.prototype.BV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.Af);return a.Zh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.RH);return a.Zh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.Zh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.fG);return a.Zh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=TK(c.args[0],!!c.H,_.Af);return a.dk(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.RH);return a.dk(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.aG);return a.dk(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.fG);return a.dk(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=TK(c.args[0],!!c.H,_.aG);c=TK(c.args[1],!!c.H,_.aG);return a.OZ(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=TK(c.args[0],!!c.H,_.fG);c=TK(c.args[1],!!c.H,_.fG);return a.OZ(d,e,c)},b["4.7"]=function(c){return a.gG(c)},b["4.8"]=function(c){return a.gG(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.Zh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.gG);return a.Zh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.bA);return a.dk(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=TK(c.args[0],!!c.H,_.gG);return a.dk(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.nG);return a.Zh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.nG);return a.dk(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.$z);return a.Zh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=TK(c.args[0],!!c.H,_.$z);return a.dk(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.$z){var d=a.W;byc(d,d.getKey(c)).refresh()}return a.Zc([])},b};DJc.prototype.Zh=function(a,b){var c=this,d=new _.bn;this.H[a]={query:b,kXb:d.promise};b instanceof _.bA?d.resolve(this.O.Zh(a,b)):b instanceof _.gG?d.resolve($xc(this.O,a,b)):b instanceof _.$z?d.resolve(this.W.Zh(a,b)):b instanceof _.nG?d.resolve(this.ka.Zh(a,b)):d.resolve(this.ha.Zh(a,b));return d.promise.then(function(){return c.Zc([])})};DJc.prototype.dk=function(a,b){EJc(this,a,b);return this.Zc([])};
var EJc=function(a,b,c){delete a.H[b];c instanceof _.bA?a.O.dk(b,c):c instanceof _.gG?ayc(a.O,b,c):c instanceof _.$z?a.W.dk(b,c):c instanceof _.nG?a.ka.dk(b,c):a.ha.dk(b,c)};_.g=DJc.prototype;_.g.OZ=function(a,b,c){EJc(this,a,b);return this.Zh(a,c)};_.g.gG=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.cj(a.args[0]);c instanceof _.bA?this.O.Zh(b,c):c instanceof _.gG?$xc(this.O,b,c):c instanceof _.$z?this.W.Zh(b,c):c instanceof _.nG?this.ka.Zh(b,c):this.ha.Zh(b,c);return this.Zc([])};
_.g.VO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.ih(a[0]),f=a[1];d.kXb.then(function(h){b instanceof _.qK||b instanceof _.nK?c.update(e,f,[b.response,b.pageToken,b.H,b.Pe,h]):(d.query instanceof _.Af?gnc(d.query.H(),b.Bd().filter(function(k){return!zL(k)})):d.query instanceof _.aG&&gnc(d.query.H(),Object.values(b.kt()).filter(function(k){return k&&!zL(k)})),c.update(e,f,[b,h]))})}};
_.g.HY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.ih(c[0]);c=c[1];var d=b.error;d.Ega(b.retryCount);this.update(a,c,void 0,d)}};_.g.KA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.ih(a[0]),a[1],["cacheRefresh"]))};_.g.i$=function(){};_.g.Yla=function(a){if(!this.H[a])throw Error("vg`"+a);return this.H[a].query};var FJc=function(a,b){_.Ta(a.H,function(c,d){_.ih(d.split(":")[0])===b&&EJc(a,d,c.query)})};
var GJc=function(a,b,c){EM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.K(GJc,EM);GJc.prototype.Zya=function(a){var b=this;a=new oCc(this.context.Pl,this.context.RQ,this.context.Be(),this.context.Xc,function(c,d){return b.gG(c,d)},a,this.context.kk());HJc(this,a);return a};GJc.prototype.bza=function(a){var b=this;a=new sCc(this.context.Pl,this.context.RQ,this.context.Be(),function(c,d){return b.gG(c,d)},a,this.context.Xc);HJc(this,a);return a};
var HJc=function(a,b){a.Zh(b);_.ef(b,function(){a.dk(b);a.send("4.3",[b.jd()],void 0,b.Oi())});a.send("4.1",[b.jd()],void 0,b.Oi())};_.g=GJc.prototype;_.g.Wya=function(a){var b=this,c=new zsc(this.context.Xc,this.context.Pl,this.context.Be(),this.context.O_,this.OZ.bind(this),a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.4",[c.jd()],void 0,c.Oi())});this.send("4.2",[c.jd()],void 0,c.Oi());return c};
_.g.eza=function(a){var b=this,c=new wCc(this.context.Be(),a,this,this.context.Xc);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.11",[c.jd()],void 0,c.Oi())});this.send("4.9",[c.jd()],void 0,c.Oi());return c};_.g.fza=function(a){var b=this,c=new xCc(this.context,this,a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.12",[c.jd()],void 0,c.Oi())});this.send("4.10",[c.jd()],void 0,c.Oi());return c};
_.g.iza=function(a){var b=this,c=new ACc(this.context,a,this);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.15",[c.jd()],void 0,c.Oi())});this.send("4.13",[c.jd()],void 0,c.Oi());return c};_.g.jza=function(a){var b=this,c=new rCc(this.context.Be(),a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.16",[c.jd()],void 0,c.Oi())});this.send("4.14",[c.jd()],void 0,c.Oi());return c};
_.g.cza=function(a){var b=this,c=new vCc(this.context,a,function(){b.send("4.21",[],void 0,c.Oi())});this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.23",[c.jd()],void 0,c.Oi())});this.send("4.22",[c.jd()],void 0,c.Oi());return c};_.g.Sya=function(a){var b=this,c=new mCc(this.context.Ij(),this.context.xk(),this.context.Be(),function(d,e){return b.gG(d,e)},a);this.Zh(c);_.ef(c,function(){b.dk(c);b.send("4.19",[c.jd()],void 0,c.Oi())});this.send("4.18",[c.jd()],void 0,c.Oi());return c};
_.g.Zh=function(a){this.H.create(a.Oi(),a.jd());this.O[a.Oi()]=a};_.g.dk=function(a){HL(this.H,a.Oi(),4);delete this.O[a.Oi()]};_.g.OZ=function(a,b,c){if(b instanceof _.aG&&c instanceof _.aG)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.fG&&c instanceof _.fG)this.send("4.6",[b,c],void 0,a);else throw Error("Vg");};
_.g.gG=function(a,b){if(!this.O[a])throw Error("vg`"+a);var c=this.O[a];if(c.jd()instanceof _.Af)var d="4.7";else if(c.jd()instanceof _.RH)d="4.8";else if(c.jd()instanceof _.nG)d="4.20";else if(c.jd()instanceof _.bA)d="4.17";else throw Error("Wg");c.jd().cj(b);this.send(d,[b],void 0,a)};
_.g.Kaa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.PB(new XL(d,d.Z6())),HL(this.H,a.Oi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.bX();return}var h=a.jd();if(h instanceof _.Af||h instanceof _.RH)h instanceof _.Af&&_.kJ(h)?e=TK(d,b,_.kK):e=TK(d,b,_.eI);else if(h instanceof _.aG||h instanceof _.fG)b?(e=new _.jK,rsc(e,function(k){return new _.Ak(JSON.parse(k))},d)):e=d;else if(h instanceof _.nG)e=new _.nK(TK(d,b,KL),c[f++],c[f++],c[f++]);else if(h instanceof _.bA)e=new _.qK(TK(d,
b,ML),c[f++],c[f++],c[f++]);else if(h instanceof _.gG)e=TK(d,b,_.lK);else if(h instanceof _.$z)e=TK(d,b,xL);else throw Error("Xg");}e&&(b=f,c&&"boolean"===typeof c[b]&&iwc(this.H,a.Oi(),!!c[b]),lwc(this.H,a.Oi(),e),a.update(e))}};
var GM=function(){_.pi.apply(this,arguments);this.commands=new _.Jk;this.ha=this.active=this.qp=!1};_.K(GM,_.pi);GM.prototype.initialize=function(){this.qp||(this.qp=!0,this.V(),this.setActive(!0))};GM.prototype.V=function(){};GM.prototype.setActive=function(a){this.active=a;IJc(this)};var IJc=function(a){if(a.active&&!a.ha){var b=_.Kk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Kk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;IJc(a)};a.Ba(b).then(c,c)}}};GM.prototype.ka=function(){};
GM.prototype.Ba=function(){};GM.prototype.wa=function(){return!0};GM.prototype.enqueue=function(a){try{var b=new _.Th;this.commands.enqueue(new JJc(a,b));IJc(this);return b}catch(c){return _.$h(_.NI(c))}};var JJc=function(a,b){this.H=a;this.Ee=b};JJc.prototype.getCommand=function(){return this.H};
var MJc=function(a){GM.call(this);var b=this;this.context=a;this.H=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context,"VMiG2e",function(){return void KJc(b)});this.O=this.context.Jf.Kq;_.mI(this.context.Xc)&&this.Oc.listen(this.O,"vb",this.W);var c=a.Oj;NL(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.hj(a.Xc.Tf(),17,1)&&(d.push("iuEtc"),NL(c,["mrK8ic"],function(){OL(c,"iuEtc")}));NL(c,d,function(){LJc(b)})};_.K(MJc,GM);MJc.prototype.V=function(){NJc(this)};
var LJc=function(a){if(1===a.context.KQ.Hf().Cb())Promise.resolve();else{var b=_.Mf(_.Nf(new _.Lf,!0),301);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(c){c=_.vI(c);_.x(c,21,"Initial account request failed.");a.context.HJ(c)})}},KJc=function(a){var b=_.Mf(new _.Lf,304);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(){})};
MJc.prototype.refresh=function(a,b){var c=this;this.H||(this.H=this.context.Lm().then(function(d){return d.Qe(a,b)}).then(function(d){var e=d.Hf(),f=e.getUser();if(f&&!1===_.mk(f))d=_.wI(_.fI(c.context.Xc)),d=Error("Yg`"+d+"`"+LK(f)),_.Lb(d),_.rK(c.context.kk(),73301807),d=Promise.reject(d);else{f=c.context.KQ;var h=0===f.We()?1:6;_.mI(c.context.Xc)&&Fxc(c.O,e);h=VCc(f,e,h);(e=e.getMetadata())&&c.context.qz(_.z(e,2),1);(d=_.z(d,4))&&GDc(c.context,d,!0);h&&c.dispatchEvent(new _.gi("WPi0i"));d=Promise.resolve(new _.pK(f.Hf(),
f.We(),!1))}return d}).then(function(d){return d},function(d){d=_.vI(d);_.x(d,5,1);return Promise.reject(new _.Hc("Error fetching account from server.",d))}),this.H.then(function(){c.H=null},function(){c.H=null}));return this.H};
MJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.bE&&(c.bE=b.bE);this.refresh(b.request,c).then(function(e){return a.Ee.callback(e)},function(e){a.Ee.Gd(e)})}else if(b=this.context.KQ,c=b.Hf(),_.mI(this.context.Xc)){c=c.Hf();var d=c.getUser();d=rxc(this.O.H,LK(d));Fxc(this.O,c);VCc(b,c,b.We())&&this.dispatchEvent(new _.gi("WPi0i"));a.Ee.callback(new _.pK(b.Hf(),b.We(),d))}else c.Cb(),b=new _.pK(c,b.We(),!0),a.Ee.callback(b)};
var NJc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=_.Mf(new _.Lf,306);c=_.QH(new _.PH,c);a.refresh(c).then(function(){NJc(a)},function(){NJc(a)})},Math.ceil(_.wj(b,7,9E5)*Math.random())+_.wj(b,3,72E5))};MJc.prototype.W=function(a){var b=this.context.KQ,c=b.Hf().Hf();c&&a.getPeople().find(function(d){return _.z(d,1)===LK(c.getUser())})&&(Fxc(this.O,c),VCc(b,c,b.We())&&this.dispatchEvent(new _.gi("WPi0i")))};var OJc=function(a,b,c){this.request=a;this.H=!!b;this.bE=c||null};
var QJc=function(a){GM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context.P_,"Hb",_.Ob(this.dispatchEvent,new _.gi("Hb",this)));PJc(this)};_.K(QJc,GM);
var PJc=function(a){var b=a.context.Oj;NL(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.XJ(a.context.Xc)){var c=_.hj(a.context.Xc.Tf(),18,1);NL(b,["NSockf"],function(){1===c?RJc(a):a.setActive(!0)});2===c&&NL(b,["mrK8ic"],function(){a.W||RJc(a)})}},RJc=function(a){var b=new _.Lf;_.Nf(b,!0);_.Mf(b,301);var c=new _.oJ;_.Lrc(c,b);_.x(c,1,1);a.refresh(c).then(null,function(){return null})};
QJc.prototype.refresh=function(a,b){var c=this;_.n.clearTimeout(this.ma);this.ma=0;var d=_.Rh();this.O=d.promise;this.O.then(function(){SJc(c)},function(){SJc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.oJ;_.x(h,1,this.H);_.Lrc(h,a.re());this.context.Lm().then(function(k){return k.Qe(h,b)}).then(function(k){c.error=null;var l=c.context.P_;l.SQ(k,l.yH()?6:1);d.resolve()},function(k){c.H=e;k=_.xd(k);var l=k.tg;_.x(l,5,2);f?(_.tI(l,1),k.message="Initial app settings refresh failed.",
_.x(k.tg,21,"Initial app settings refresh failed."),c.context.HJ(l),c.setActive(!0)):(_.tI(l,2),k.message="Error occurred while loading the latest set of apps.",_.x(k.tg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};QJc.prototype.wa=function(){return!1};
QJc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.Nka,f=c.bE?{bE:c.bE}:void 0;if(!TJc(d))return this.context.Lm().then(function(l){return l.Qe(d,f)}).then(function(l){a.Ee.callback(new _.mK(l,1,!1))},function(l){a.Ee.Gd(_.NI(l))}),_.Oh(void 0);c=_.Oh();var h=!1;this.O?UJc(this,d.getType())?e=this.O:c=e=new _.Nh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&UJc(this,d.getType())&&!this.error?(h=!0,e=_.Oh()):e=this.refresh(d,
f);var k=a.Ee;e.then(function(){var l=b.context.P_;k.callback(new _.mK(l.ht(),l.We(),h))},function(l){k.Gd(l)});return c.then()};
var TJc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.re(a,4),a=_.re(a,3),!(b&&b.length)&&!(a&&a.length)):!1},UJc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},SJc=function(a){a.O=null;var b=a.context.Xc.Tf(),c=new _.Lf;_.Mf(c,306);var d=new _.oJ;_.x(d,1,1);_.Lrc(d,c);a.ma=_.n.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.wj(b,7,9E5)*Math.random())+_.wj(b,4,72E5))},VJc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Pf.Object.defineProperties(VJc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},Nka:{configurable:!0,enumerable:!0,get:function(){return this.H}},bE:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var XJc=function(a){GM.call(this);var b=this;this.context=a;this.error=null;this.Oc=new _.nf(this);this.Ja(this.Oc);this.Oc.listen(this.context.FE,"WPi0i",function(){return b.dispatchEvent(new _.gi("WPi0i"))});this.H=_.Rh();this.O=_.re(this.context.Xc.Tf(),30);WJc(this)};_.K(XJc,GM);
var WJc=function(a){var b=a.context.Oj;NL(b,["rkYxSd"],function(){return a.initialize()});NL(b,["px2C2c"],function(){a.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.hj(a.context.Xc.Tf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&NL(b,["mrK8ic"],function(){OL(b,"OZvrNc")}));!_.R(a.context.Xc,11,!1)&&_.R(a.context.Xc,24,!1)&&(c.push("DEJoH"),_.n.setTimeout(function(){0<_.yb(QIc(a.context.FE),_.Qo,1).length||(b.H("NSockf")?
OL(b,"DEJoH"):NL(b,["NSockf"],function(){OL(b,"DEJoH")}))},12E3));NL(b,c,function(){if(!b.H("px2C2c")){var e=new _.Lf;_.Nf(e,!0);_.Mf(e,301);var f=new _.nD;_.G(f,1,e);uoc(f,YJc(a));a.query(f).then(null,function(){a.initialize()})}})};XJc.prototype.V=function(){var a="User prefs detected: "+_.yb(QIc(this.context.FE),_.Qo,1).length;this.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager",a);ZJc(this)};
XJc.prototype.query=function(a,b){var c=this,d=b?{bE:b}:void 0;return this.context.Lm().then(function(e){return e.Qe(a,d)}).then(function(e){c.error=null;var f=c.context.FE;f.SQ(_.yb(e,_.Qo,3),f.yH()?6:1,_.re(a,3))}).then(null,function(e){e=_.xd(e);_.x(e.tg,5,4);0<c.commands.$b()||c.context.HJ(e.tg);c.error=e;throw e;})};
XJc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Ee,e=new Set([].concat(_.fc(this.context.FE.hG.keys()))),f=_.re(c.request,3);f.find(function(h){return!e.has(h)})&&(c.Nka=!0);this.error?d.Gd(this.error):c.Nka?(uoc(c.request,YJc(this,f)),(this.H?this.H.promise:this.query(c.request,c.bE||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var YJc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.fc(a.O),_.fc([].concat(_.fc(a.context.FE.hG.keys()))),_.fc(b)));return[].concat(_.fc(a.values()))};XJc.prototype.getData=function(a,b,c){b=this.context.FE.rH(b);a.callback(new _.oK(b.H,b.Pe,c))};
var ZJc=function(a){var b=a.context.Xc.Tf();_.n.setTimeout(function(){var c=new _.nD,d=new _.Lf;_.Mf(d,306);_.G(c,1,d);uoc(c,YJc(a));a.query(c).then(null,_.bg).then(function(){ZJc(a)},function(){ZJc(a)})},Math.ceil(_.wj(b,7,9E5)*Math.random())+_.wj(b,5,72E5))},$Jc=function(a,b,c){this.request=a;this.Nka=!!b;this.bE=c||null};
var aKc=function(a,b,c,d){FM.call(this,"IS",b);this.context=a;this.Oc=new _.nf(this);this.Ba=_.Rh();this.O=null;this.ha=!1;this.W=null;this.Fa=new ICc(a);toc(this.Fa);this.Ja(this.Oc);this.ka=new MJc(a);this.Ja(this.ka);this.Oc.listen(this.ka,"WPi0i",function(){return c(new iCc(1))});this.ma=new QJc(a);this.Ja(this.ma);this.Oc.listen(this.ma,"Hb",function(){return c(new iCc(2))});this.ta=new XJc(a);this.Ja(this.ta);this.Oc.listen(this.ta,"WPi0i",function(){return c(new iCc(4))});this.Ia=d;this.H=
this.context.Lm()};_.K(aKc,FM);_.g=aKc.prototype;
_.g.BV=function(){var a={};return a["3.43"]=this.y0.bind(this),a["3.42"]=this.T8.bind(this),a["3.1"]=this.RN.bind(this),a["3.2"]=this.rH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.uO.bind(this),a["3.4"]=this.XC.bind(this),a["3.5"]=this.ht.bind(this),a["3.6"]=this.TS.bind(this),a["3.8"]=this.Ll.bind(this),a["3.36"]=this.nz.bind(this),a["3.9"]=this.IF.bind(this),a["3.10"]=this.xr.bind(this),a["3.11"]=this.iba.bind(this),a["3.12"]=this.x9.bind(this),a["3.13"]=this.WT.bind(this),a["3.14"]=
this.gba.bind(this),a["3.15"]=this.z9.bind(this),a["3.16"]=this.Bu.bind(this),a["3.17"]=this.iHb.bind(this),a["3.18"]=this.mHb.bind(this),a["3.19"]=this.YQ.bind(this),a["3.20"]=this.kHb.bind(this),a["3.25"]=this.jHb.bind(this),a["3.22"]=this.y9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.npa.bind(this),a["3.29"]=this.gBb.bind(this),a["3.40"]=this.oHb.bind(this),a["3.33"]=this.pHb.bind(this),a["3.39"]=this.FP.bind(this),a["3.37"]=this.nHb.bind(this),a["3.38"]=this.ndb.bind(this),a["3.41"]=
this.WS.bind(this),a["3.44"]=this.Z0.bind(this),a["3.45"]=this.Co.bind(this),a["3.46"]=this.U8.bind(this),a};_.g.RN=function(a){var b=this,c=TK(a.args[0],!!a.H,_.PH);a=new OJc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Zc([d.response,d.Pe,d.O0])},function(d){return b.Zc(void 0,d)})};
_.g.rH=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nD);a=new $Jc(c,a.args[1],this.context.H[a.clientId]);OL(this.context.Oj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Zc([d.response,d.Pe,d.O0])},function(d){return b.Zc(void 0,d)})};
_.g.ad=function(a){var b=this,c=TK(a.args[0],!!a.H,Qnc),d=_.zj(c,_.PI,16,QK)||_.zj(c,_.QI,1,QK)||_.zj(c,_.RI,2,QK)||_.zj(c,_.UI,3,QK)||_.zj(c,_.tK,4,QK)||_.zj(c,_.SI,5,QK)||_.zj(c,_.YI,6,QK)||_.zj(c,_.$I,7,QK)||_.zj(c,_.aJ,8,QK)||_.zj(c,_.dJ,9,QK)||_.zj(c,_.rJ,18,QK)||_.zj(c,_.vJ,10,QK)||_.zj(c,_.wJ,11,QK)||_.zj(c,_.xJ,12,QK)||_.zj(c,_.xI,13,QK)||_.zj(c,_.AJ,14,QK)||_.zj(c,_.BJ,15,QK)||_.zj(c,RK,17,QK),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},
function(f){return b.Zc(void 0,f)})};_.g.uO=function(a){var b=this,c=TK(a.args[0],!!a.H,Znc),d=_.zj(c,_.VI,1,$nc)||_.zj(c,_.bJ,2,$nc)||_.zj(c,_.CJ,3,$nc),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.XC=function(a){var b=this,c=TK(a.args[0],!!a.H,Tnc),d=HM(this,a),e=[],f=[];Vnc(c).forEach(function(h){h instanceof _.PI?e.push(String(h.qc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Qe(h,d)}))});a=_.jI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Sh(a,function(){return void pFc(b.context.Jf)});return a.then(function(h){return b.Zc([new Fnc(e,h)])})};
_.g.ht=function(a){var b=this,c=TK(a.args[0],!!a.H,_.oJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=HM(this,a);a=this.H.then(function(f){return f.Qe(c,e)}).then(function(f){return new _.mK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.mK(f.response,f.Pe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new VJc(c,d,this.context.H[a.clientId]),OL(this.context.Oj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Zc([f.response,f.Pe,f.O0])},function(f){return b.Zc(void 0,
f)})};_.g.TS=function(a){var b=this,c=TK(a.args[0],!!a.H,Wnc),d=_.zj(c,_.oD,1,Xnc)||_.zj(c,_.pD,2,Xnc),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};_.g.Ll=function(a){a=a.args[0];if(this.context.Cz)a?_.Zjc(this.context.Cz,!0):this.context.xk().Me()&&this.context.Cz.NM(!0).then(null,function(){});else try{this.context.Ij().Ll(a)}catch(b){return this.Zc(void 0,b)}return this.Zc([])};
_.g.nz=function(a){var b=this,c=a.args[0];return this.context.nz(c).then(function(d){return d?(b.context.Ij().nz(c),b.Ia(c),b.context.Ts.HL().then(null,function(){return!c})):_.Oh(!c)}).then(function(d){return b.Zc([d])},function(d){return b.Zc(void 0,d)})};
_.g.sync=function(){var a=this;return _.Qh([this.context.eba.promise,this.context.Gga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Nh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ts.HL()}).then(function(){return a.Zc([])},function(b){return a.Zc(void 0,b)})};_.g.IF=function(){try{var a=this.context.m7;a&&a.Tpa();this.context.qia.IF();return this.Zc([])}catch(b){return this.Zc(void 0,b)}};
_.g.WS=function(){this.context.WS();return this.Zc([])};_.g.xr=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.iba=function(a){var b=this,c=TK(a.args[0],!!a.H,_.hJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.x9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.WI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.WT=function(a){var b=this,c=TK(a.args[0],!!a.H,_.yJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.gba=function(a){var b=this,c=TK(a.args[0],!!a.H,_.iJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return _.mI(b.context.Xc)?Jxc(b.context.Jf.Kq,[_.y(e,_.lk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.z9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.ZI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Bu=function(a){var b=this,c=TK(a.args[0],!!a.H,_.qJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.mI(b.context.Xc)?Hxc(b.context.Jf.Kq,f):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.iHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.tAc),d=new _.Wgc(c,a.args[1],a.args[2]||void 0),e=HM(this,a);return this.H.then(function(f){return f.Qe(d,e)}).then(function(f){return b.Zc([f])},function(f){return b.Zc(void 0,f)})};
_.g.mHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.pJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.mI(b.context.Xc)?Jxc(b.context.Jf.Kq,f.Zc().EN(),c.jd().getId()).then(function(){return f}):f})}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.YQ=function(){var a=this;return(_.R(this.context.Xc.Tf(),52,!1)?_.Oh(Yvc(new Xvc,0)):this.context.ZI.YQ()).then(function(b){return a.Zc([b])},function(b){return a.Zc(void 0,b)})};
_.g.kHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.Vgc),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.jHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.mJ),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.y9=function(a){var b=this,c=TK(a.args[0],!!a.H,_.XI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.npa=function(a){var b=this,c=TK(a.args[0],!!a.H,_.EI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e,null])},function(e){return b.Zc([null,_.vI(e)])})};_.g.gBb=function(){return this.Zc([!0])};
_.g.oHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.eG),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.pHb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.$z),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.y0=function(a){a=TK(a.args[0],!!a.H,_.Af);DEc(this.context.Jf,[a]);return this.Zc([])};
_.g.T8=function(a){var b=this,c=TK(a.args[0],!!a.H,_.TI),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.FP=function(a){var b=this,c=TK(a.args[0],!!a.H,_.nM),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return Txc(c,e)}).then(function(e){return b.Zc(e)},function(e){return b.Zc(void 0,e)})};
_.g.nHb=function(a){var b=this,c=new _.chc(TK(a.args[0],!!a.H,_.WVb),a.args[1]),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e.response,e.pageToken])},function(e){return b.Zc(void 0,e)})};_.g.ndb=function(a){var b=this,c=TK(a.args[0],!!a.H,_.$F),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};
_.g.Z0=function(a){var b=this,c=TK(a.args[0],!!a.H,_.gK),d=HM(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Zc([e])},function(e){return b.Zc(void 0,e)})};_.g.Co=function(a){var b=a.args.map(function(c){return TK(c,!!a.H,_.qI)});this.context.Jf.Co(b);pFc(this.context.Jf);return this.Zc([])};_.g.U8=function(){var a=this,b=this.context.Cz;return(b?b.NM():_.Oh(_.Ojc(0))).then(function(c){return a.Zc([c])},function(c){return a.Zc(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Rh();this.context.Be().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Xc.Ki());this.Oc.listen(this.context,_.bd,function(e){e=e.error;var f=e.tg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):Krc(a.context.Be(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Oj,c=["hVFf7"];_.XJ(this.context.Xc)&&c.push("BNEDtc");NL(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});NL(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){xM(a.context).then(function(e){return void e.start()})};NL(b,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void d()});NL(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();OL(b,"NSockf")}return this.O.promise};_.g.yca=function(){return this.Ba.promise};_.g.Kt=function(){var a=this.context.m7;a&&a.dispose();return this.context.Kt()};
var HM=function(a,b){return(a=a.context.H[b.clientId])?{bE:a}:{}};
var bKc=function(a,b,c){FM.call(this,"DU",b);this.context=a;this.O=c;this.H=new ICc(a)};_.K(bKc,FM);_.g=bKc.prototype;
_.g.BV=function(){var a=this,b={};return b["5.1"]=function(){return a.lja()},b["5.2"]=function(c){return a.mN(c)},b["5.4"]=function(c){return a.Zz(c)},b["5.5"]=function(){return a.ZR()},b["5.10"]=function(){return a.LN()},b["5.6"]=function(){return a.oea()},b["5.7"]=function(){return a.KT()},b["5.9"]=function(c){return a.tra(c)},b["5.8"]=function(c){return a.Y5(c)},b["5.11"]=function(){return a.Oqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Ll(c)},b};
_.g.lja=function(){var a=this;this.context.Ts.dT();var b=this.context.Xc;return Tzc(_.UJ(_.fI(b)),_.WJ(b),this.context.Be()).then(null,function(){}).then(function(){return a.Zc([])})};_.g.mN=function(a){a=this.context.Jf.bm.H(a.args[0]);return this.Zc([a])};_.g.Zz=function(a){var b=this;return this.context.kB.Zz(a.args[0]).then(function(c){return b.Zc([c])})};_.g.ZR=function(){return this.Zc(this.context.kB.ZR())};
_.g.Y5=function(a){var b=this,c=TK(a.args[0],!!a.H,_.sfc),d=a.args[1],e=a.args[2];if(_.zj(c,_.nI,3,_.oI)||_.zj(c,_.EJ,4,_.oI)||_.zj(c,_.tK,5,_.oI)||_.zj(c,_.BJ,6,_.oI)||_.zj(c,_.aJ,7,_.oI)||_.zj(c,_.UI,8,_.oI)||_.zj(c,_.YI,9,_.oI)||_.zj(c,_.xI,10,_.oI)){var f=fwc(c);return this.context.Lm().then(function(h){return h.Qe(f,{T9a:d,U9a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.uK){k=h.Zc().Bd();var p=_.z(h,2);l=h.Yn()}else if(h instanceof _.GJ)h.getItem()&&k.push(h.getItem()),p=h.tN();
else{h=b.Zc(void 0,Error("xg"));break a}h=b.Zc([p,l].concat(_.fc(k)))}return h},function(h){return b.Zc(void 0,h)})}return _.Oh(this.Zc(void 0,Error("wg")))};_.g.tra=function(){var a=this.context.Xc,b=a.Tf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.x(b,13,a);return this.Zc([])};_.g.oea=function(){this.context.tG.H=new Iyc(_.hh().substring(0,8));return this.Zc([])};
_.g.KT=function(){var a=this.context.tG.LN();if(a){var b=Kyc(this.context.tG);a=[a.H,a.startTime].concat(_.fc(b))}else a=[];b=this.context.tG;b.H=null;b.yZ=[];return this.Zc(a)};_.g.LN=function(){var a=this.context.tG.LN();return this.Zc(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.wa).then(function(b){return a.Zc([b])})};_.g.Oqa=function(){var a=[this.O.Kt(),_.ti(3E4)];_.Sh(_.Gka(a),function(){_.n.setTimeout(function(){self.close()})});return this.Zc([])};
_.g.Ll=function(a){this.H.Ll(a.args[0]);return this.Zc([])};
var cKc=function(a,b,c,d,e,f,h){_.HK.call(this,a,b,c,d,f,h);this.H=e;this.Xf=null};_.K(cKc,_.HK);cKc.prototype.WM=function(a,b){var c=this;return _.Zh(this.H.then(function(d){return d.f6a(Wmc(c.O,c.Ba,a,b,c.aj,c.ka))},null))};cKc.prototype.ta=function(a,b){var c=this.jd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Zz();e&&(d=_.z(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.tkc(a,b,d))}};
var dKc=function(a,b,c,d,e,f,h,k){FM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Xf=h;this.H={};this.O={};this.Oc=new _.nf(this);this.Ja(this.Oc)};_.K(dKc,FM);_.g=dKc.prototype;
_.g.BV=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.IG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.WM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.Zc([])},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.Zc([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=TK(a.args[0],!!a.H,_.UI),e=a.args[1];if(!this.H[c]){var f=new cKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Xf);this.Oc.listen(f,"Cb",_.Ob(this.odb,a.clientId,a.requestId));this.Ja(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.mj(),r=_.Rh();b.O[q]=r;b.update(l,p,eKc(3,q,[h,k]));return r.promise}).then(function(h){return b.Zc([h])},function(h){return b.Zc(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.Zc([])};_.g.IG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].IG();return this.Zc([])};
_.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;_.Ma(f,function(p){k[p]=h[l++]});_.Ta(k,function(p,q){p.dg(function(r){b.update(a.clientId,c,eKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,eKc(1,e,[q,r.tg]))})});return this.Zc([])}return this.Zc(void 0,_.vI("Could not retry upload."))};
_.g.WM=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=Wmc(b.O,b.Ba,c,a,b.aj,b.ka),this.Zc([boc(c)])):this.Zc(void 0,_.vI("FileUploader not found."))};_.g.odb=function(a,b,c){this.update(a,b,eKc(2,c.requestId,[c.progress,c.totalBytes]))};var eKc=function(a,b,c){return[Number(a),b].concat(_.fc(c))};
var fKc=function(a,b){FM.call(this,"IE",b);this.O=a;this.H=new Map};_.K(fKc,FM);fKc.prototype.BV=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};
fKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=TK(a.args[0],!!a.H,_.Ugc);e=new sM(this.O,e);var f=_.cf(e,"Gb",function(h){b.update(a.clientId,c,[h.percentDone,h.Nva])});_.ef(e,function(){_.ni(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Zc([h])},function(h){return b.Zc(void 0,h)})};fKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Zc([])};
var gKc=function(a,b){FM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Rh();this.O=new NCc(a,a.Bg)};_.K(gKc,FM);gKc.prototype.BV=function(){var a=this,b={};return b["6.1"]=function(c){return hKc(a,c)},b["6.2"]=function(c){return iKc(a,c)},b["6.3"]=function(){a.H&&(QCc(a.O),a.H=!1,a.W=_.Rh());return a.Zc([])},b};
var hKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return TK(d,!!b.H,_.Ak)});a.O.$k(c);OL(a.context.Oj,"GZTDpc");a.W.resolve()}return a.Zc([])},iKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return TK(d,!!b.H,_.qI)});PCc(a.O,c);return a.Zc([])})};
var jKc=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("Zg`"+b);a.services.set(b,new _.Th)})};jKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Wf())b.callback(a);else throw Error("$g`"+a.V);};var kKc=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)})};jKc.prototype.Go=function(){return[].concat(_.fc(this.services.values())).every(function(a){return a.Wf()})};
var lKc=function(){},mKc={0:2E3,1:3E3,2:5E3},nKc=function(a,b){this.request=a;this.ha=b;this.O=_.Rh();this.continuationToken="";this.V=0;this.ZE=this.W=!1;this.H=lKc};nKc.prototype.nh=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=lKc;b.V=0;return c},function(c){b.H=lKc;b.V=0;return Promise.reject(c)})};
nKc.prototype.sendRequest=function(){var a=this;if(this.ZE)this.O.resolve((new UK).Dc(8));else{var b=new _.ghc(this.request,this.continuationToken);this.ha.then(function(c){return c.Qe(b)}).then(function(c){oKc(a,c)},function(c){a.handleError(c)})}};var oKc=function(a,b){var c;a.continuationToken=null!==(c=b.Yn())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},pKc(a.V++,a.ka)):a.O.resolve(b)};nKc.prototype.handleError=function(a){a=_.xd(a);this.O.reject(a)};
nKc.prototype.cancel=function(){this.ZE=!0};var pKc=function(a,b){return b?b:(a=mKc[a])?a:1E4};
var qKc=function(a,b){FM.call(this,"TM",b);this.O=a;this.H=new Map};_.K(qKc,FM);qKc.prototype.BV=function(){var a=this,b={};return b["10.1"]=function(c){return rKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var rKc=function(a,b){var c=b.clientId+":"+b.requestId,d=TK(b.args[0],!!b.H,_.SBc);d=new nKc(d,a.O);a.H.set(c,d);d=d.nh(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.Zc([e])},function(e){return a.Zc(void 0,e)});d.then(function(){a.H.delete(c)},function(){a.H.delete(c)});return d};qKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Zc([])};
var IM=function(a,b,c){_.N.call(this);this.H=a;this.Mw=b;this.kb=c;this.fields=null;this.Ia=!1;this.Ka=_.Rh();this.W=!1;this.Ba=_.Rh();this.O=_.Rh();this.ta=null;this.wa=this.Ua=!1;this.yb=_.Rh();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.rz=Date.now();this.services=new jKc;this.Jb=new _.nf(this);this.Ja(this.Jb)};_.K(IM,_.N);IM.prototype.fZ=function(a){this.O.promise.then(function(b){b.m7||a.OPa(b)})};
var vKc=function(a,b){var c=BJc(a.H,b),d=a.Qb.bind(a,c);DL(b,"8.1",d);b.registerService("8.1",d);DL(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return sKc(a,c,f)});DL(b,"8.2",a.Gb.bind(a,c));DL(b,"8.3",a.Kb.bind(a,c));kKc(a.services,b);b.start();tKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Qh([a.Ka.promise,a.Ba.promise]).then(function(f){return a.initialize(f)}));e.push(a.ta);_.Qh(e).then(function(){return void uKc(a,c,b)},function(f){a.Ua=!0;EL(b,"2.2",{err:_.vI(f).Hc()},d)})},wKc=
function(a){return Math.floor((Date.now()-a.rz)/1E3)},xKc=function(a,b,c){var d=function(e){EL(b,"2.8",{au:"fb"===e.type})};a.Jb.listen(c.ZI,["fb","gb"],d);_.ef(b,function(){return a.Jb.Uc(c.ZI,["fb","gb"],d)})},yKc=function(a,b,c){var d=c.xk(),e=[].concat(_.fc(Object.values(_.VB))),f=function(h){EL(b,"2.19",{cs:h.H})};a.Jb.listen(d,e,f);_.ef(b,function(){a.Jb.Uc(d,e,f)})};
IM.prototype.Qb=function(a){var b=CJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){FJc(d,a)}),b.dispose(),this.log((0,_.Ws)("Client %d disconnected (num clients remaining: %d)",a,_.Xa(this.H.channels))),0===_.Xa(this.H.channels))){var c=function(){_.n.setTimeout(function(){self.close()})};this.Ua?c():(this.services.services.get("IS")||null).addCallback(function(d){d.Kt().then(c,c)})}};
IM.prototype.Pa=function(a,b){if(this.ha.has(a))return _.Oh();var c=new _.Qc(JSON.parse(b.dsc));_.x(c,24,!1);this.Ia||(this.Ia=!0,this.Ka.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){wJc(d,a,_.C(c.Tf(),37,""));d.Jf.Xma(_.yb(c,_.dl,91));return d.wY.promise.then(function(){DEc(d.Jf,_.yb(c,_.Af,44))})},function(){})};
IM.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 FDc(e,e.Bg);e.nh(d);e.dispose();(e=c.H.channels[a]||null)&&EL(e,"2.16")})}};IM.prototype.Kb=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){zKc(new kEc(h),e);(h=c.H.channels[a]||null)&&EL(h,"2.17",{t:f})})}};
var zKc=function(a,b){b=b.filter(function(d){return void 0!==d});if(b.length){b=_.m(b);for(var c=b.next();!c.done;c=b.next())a.nh(c.value);a.dispose()}};IM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Ya(this.H.channels)),d=c.next();!d.done;b={sfa:b.sfa,Xfa:b.Xfa},d=c.next())b.sfa=d.value,b.Xfa=_.Rh(),EL(b.sfa,"2.12",void 0,function(e){return function(){e.sfa.dispose();e.Xfa.resolve()}}(b)),a.push(b.Xfa.promise);return _.Qh(a).then()};
IM.prototype.initialize=function(a){var b=this;a=a[0];_.gic(a,this.fields);var c=a.dH();c=c&&_.R(c,1,!1)?this.kb:void 0;try{var d=new WK(null,a,this.Mw,c,void 0,void 0),e=d.kk().H(106E3);dJc(d,this.$a.bind(this));this.Jb.listen(d.Ij(),"rb",function(k){k={os:k.Me()};for(var l=_.m(_.Ya(b.H.channels)),p=l.next();!p.done;p=l.next())EL(p.value,"2.6",k)});this.Jb.listen(d,_.bd,this.ob);this.Jb.listen(d,"w8KrJc",this.jc);cwc(d.ZI,this.ka.bind(this));var f=d.Cz;f&&Yrc(f,function(){return b.ka()});this.O.resolve(d);
var h=AKc(this,d,new aKc(d,this.H,function(k){k={dt:k.dataType};for(var l=_.m(_.Ya(b.H.channels)),p=l.next();!p.done;p=l.next())EL(p.value,"2.15",k)},function(k){return BKc(b,k)}));e&&h.then(function(){return e&&e.Bj()});return h}catch(k){return _.Ph(k)}};
var AKc=function(a,b,c){a.services.activate(c);a.services.activate(new DJc(b,a.H));a.services.activate(new bKc(b,a.H,c));a.services.activate(new gKc(b,a.H));a.services.activate(new dKc(b.Xc,b.kB,b.YR().Fga,b.Lm(),b.RQ,b.Be(),b.kk(),a.H));a.services.activate(new fKc(b.Lm(),a.H));a.services.activate(new qKc(b.Lm(),a.H));return c.initialize()},uKc=function(a,b,c){var d=_.Xa(a.H.channels);a.log((0,_.Ws)("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));EL(c,"2.2",
{id:b,clients:d,uptimeSec:wKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.O_.addCallback(function(f){c.isDisposed()||EL(c,"2.5",{id:f})});1<d&&xM(e).addCallback(function(f){return f.oya()});(a.services.services.get("IS")||null).addCallback(function(f){f.yca().then(function(){c.isDisposed()||EL(c,"2.14")})});xKc(a,c,e);yKc(a,c,e)})},BKc=function(a,b){var c={oois:b};_.Ya(a.H.channels).forEach(function(d){EL(d,"2.18",c)})};
IM.prototype.ob=function(a){a={p:a.error.tg.Hc()};for(var b=_.m(_.Ya(this.H.channels)),c=b.next();!c.done;c=b.next())EL(c.value,"2.10",a)};IM.prototype.jc=function(){for(var a=_.m(_.Ya(this.H.channels)),b=a.next();!b.done;b=a.next())EL(b.value,"2.7")};var tKc=function(a,b,c){a.ha.has(b)?_.Oh():new _.Nh(function(d){EL(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
IM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Ph(Error("ah"));if(this.W&&this.Fa.has(a))return _.Oh(void 0)}b=b||_.Ya(this.H.channels)[0];if(!b)return _.Ph(Error("bh"));var d=_.Rh();b.send("1.1",void 0,function(e){sKc(c,a,e);d.resolve()});return d.promise};var sKc=function(a,b,c){_.Ta(c.ac,function(d,e){_.n[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.wa&&(a.wa=!0,a.yb.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
IM.prototype.log=function(a){this.O.promise.then(function(b){return b.Be().info("drive.ds.sync.cacheproxy.Worker",a)})};
var CKc=function(a,b){EM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.K(CKc,EM);_.g=CKc.prototype;_.g.La=function(){return this.context.Xc.dH()};_.g.getContext=function(){return this.context};_.g.Zz=function(){return _.Zh(this.send("5.4",[this.H],function(a,b){return TK(a[0],b,_.Sic)}))};_.g.Be=function(){return this.context.Be()};_.g.mN=function(a){return _.Zh(this.send("5.2",[a],function(b,c){return b[0]?TK(b[0],c,_.Ak):null}))};
_.g.ZR=function(){return _.Zh(this.send("5.5",[],function(a,b){return a.map(function(c){return TK(c,b,_.sfc)})}))};_.g.Y5=function(a,b,c){return _.Zh(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 TK(k,e,_.Ak)}),Rja:f,pageToken:h}}))};_.g.tra=function(){this.send("5.9",[])};_.g.lja=function(){this.send("5.1",[])};_.g.Rka=function(){return _.bgc[_.hj(this.context.Xc.Tf(),8,0)]};_.g.oea=function(){this.send("5.6",[])};
_.g.KT=function(){return _.Zh(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 TK(e,b,gwc)});return{traceId:new Iyc(c,d),spanRecs:a}}))};_.g.LN=function(){return _.Zh(this.send("5.10",[],function(a){return 0===a.length?null:new Iyc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.Zh(this.send("5.12",[],function(a){return a[0]}))};_.g.Oqa=function(){this.send("5.11",[])};_.g.Ll=function(a){this.send("5.13",[a])};
var DKc=function(a,b){EM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Fa(this))};_.K(DKc,EM);DKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return TK(b[0],c,BBc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};DKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
DKc.prototype.Kaa=function(a,b,c){this.dispatchEvent(new jCc(c[0],c[1]))};
var EKc=function(a){EM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.K(EKc,EM);EKc.prototype.iZ=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.hW().dg(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.A0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var FKc=function(a,b){YL.call(this,a,b)};_.K(FKc,YL);FKc.prototype.Eja=function(a,b,c){return new _.chc(a,c)};FKc.prototype.Rla=function(a){return a.pageToken||""};FKc.prototype.dla=function(a){return a.response.H()};FKc.prototype.k7=function(){};
var GKc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||void 0);this.request=b;this.logName="drive.ds.sync.PublishedCategoriesLiveList";this.O=[];this.changed=!1;this.ma=c;this.ha=new FKc(this.request,this.ma)};_.K(GKc,rM);_.g=GKc.prototype;_.g.tH=function(){this.ha.nh().then(this.pdb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return xBc(new mM,this.O).Dc(this.status)};_.g.hs=function(){return new hBc};_.g.nk=function(){return!this.Me()&&(!this.H||Vxc(this.ha))};
_.g.pdb=function(a){this.changed=this.H=!0;this.O=a;this.hu()};_.g.hu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))}};_.g.$b=function(){return this.O.length};
var HKc=function(a,b,c){rM.call(this,a.Be(),a.Ij(),a.xk(),b.xi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceItemQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.ha=new _.Z6a;this.suggestionSessionId=null;this.ma=c};_.K(HKc,rM);_.g=HKc.prototype;_.g.tH=function(){var a=this;this.ma(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Nh();a.suggestionSessionId=b.Vf();a.hu()},this.handleError.bind(this))};
_.g.getData=function(){this.O=this.data;return _.Rmc(_.Qmc((new _.IK).Dc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.hs=function(){var a=_.Hy(this.ha,this.O,this.data);this.O=this.data;var b=(new aCc).Dc(this.status);return _.lj(b,2,a)};_.g.DP=function(){};_.g.hu=function(){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))};_.g.$b=function(){return this.data.length};
var IKc=function(){};_.g=IKc.prototype;_.g.ZM=function(a,b){b=qAc(1).setPosition(b);_.G(b,2,a);return b};_.g.XM=function(a,b){b=qAc(2).setPosition(b);_.G(b,2,a);return b};_.g.bF=function(a,b,c){b=qAc(3).oz(b).setPosition(c);_.G(b,2,a);return b};_.g.gR=function(a,b){b=qAc(4).setPosition(b);_.G(b,2,a);return b};_.g.uN=function(a){return _.y(a,_.oAc,2)};
var JKc=function(){_.Iy.call(this,new IKc,function(a){a:switch(_.Bb(a,_.hM)){case 6:a=_.Gy(_.zj(a,_.Fy,6,_.hM)).getTime().toString();break a;case 7:var b=_.zj(a,_.gM,7,_.hM);a=_.y(b,_.Fy,1);b=b.Hv();a=a&&b?_.Gy(b).getTime()+"--"+_.Gy(a).getTime():"";break a;default:a=""}return a})};_.K(JKc,_.Iy);var LKc=function(){KKc||(KKc=new JKc);return KKc},KKc;
var MKc=function(a,b,c,d){rM.call(this,b.Be(),b.Ij(),b.xk(),d);this.request=a;this.logName="drive.ds.sync.SyncedActivityQueryLiveList";this.O=!1;this.ha=[];this.activities=[];this.token="";this.changed=!1;this.ma=new _.Vjc(_.wj(b.Xc.Tf(),6,1E3));this.ta=c};_.K(MKc,rM);_.g=MKc.prototype;_.g.bQ=function(){rM.prototype.bQ.call(this);this.hu()};_.g.tH=function(){_.Q(this.request,3)?this.page():this.poll()};
_.g.Iu=function(a){if(a=a||50,this.activities.length>this.limit)this.changed=!0;rM.prototype.Iu.call(this,a)};_.g.getData=function(){var a=(new vAc).Dc(this.status);_.lj(a,2,this.activities.slice(0,this.limit));this.ha=_.Ba(this.activities);return a};_.g.hs=function(){var a=_.Hy(LKc(),this.ha,this.activities),b=new sAc;a=_.lj(b,2,a).Dc(this.status);this.ha=_.Ba(this.activities);return a};_.g.nk=function(){return!this.Me()&&(!this.H||this.activities.length>this.limit||!!this.token)};_.g.jd=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.O=!0,this.nk()&&this.activities.length<this.limit?this.ta(this.request,this.limit-this.activities.length,this.token).then(function(c){b.H=!0;var d=_.yb(c,_.oAc,1);b.activities=b.activities.concat(d);b.token=c.Jy()||"";0<d.length&&(b.changed=!0);b.hu();b.page(a)},function(c){b.dispatchEvent(new _.Ic(c));b.O=!1}):(this.O=!1,a&&a.callback(),NKc(this))):this.O=!1};
_.g.poll=function(){var a=this;this.active&&(this.O=!0,this.ta(this.request,this.limit).then(function(b){var c=LKc();a.H=!0;var d=_.yb(b,_.oAc,1);aL(c,a.activities.slice(0,d.length),d)?(a.activities=d,a.token=b.Jy()||"",a.changed=!0,a.hu(),a.page()):(a.O=!1,NKc(a))},function(b){a.dispatchEvent(new _.Ic(b));a.O=!1}))};_.g.hu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))}};
_.g.eM=function(){this.Me()&&!this.H?this.status=2:this.status=this.activities.length<this.limit&&(!this.H||this.token)?6:1};_.g.DP=function(){this.active&&this.nk()&&!this.O&&this.page(new _.Th)};var NKc=function(a){_.Q(a.request,3)||(_.ZH(a.ma),_.n.setTimeout((0,_.L)(a.poll,a),a.ma.Wa()))};MKc.prototype.$b=function(){return this.activities.length};
var OKc=function(){};_.g=OKc.prototype;_.g.ZM=function(a,b){return zAc(yAc(1),a).setPosition(b)};_.g.XM=function(a,b){return zAc(yAc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return zAc(yAc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return zAc(yAc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,_.FL,2)};
var PKc=function(){_.Iy.call(this,new OKc,function(a){return a.getId()})};_.K(PKc,_.Iy);var RKc=function(){QKc||(QKc=new PKc);return QKc},QKc;
var SKc=function(a,b,c){rM.call(this,b.Be(),b.Ij(),b.xk());this.request=a;this.logName="drive.ds.sync.SyncedBackupsQueryLiveList";this.ha=[];this.backups=[];this.changed=!1;this.O=new _.Vjc(_.wj(b.Xc.Tf(),54,1E3));this.ma=c};_.K(SKc,rM);_.g=SKc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.hu()};_.g.tH=function(){this.poll()};_.g.getData=function(){var a=new FAc;a=_.lj(a,2,this.backups).Dc(this.status);this.ha=_.Ba(this.backups);return a};
_.g.hs=function(){var a=_.Hy(RKc(),this.ha,this.backups),b=new DAc;a=_.lj(b,2,a).Dc(this.status);this.ha=_.Ba(this.backups);return a};_.g.nk=function(){return!this.Me()&&!this.H};_.g.poll=function(){var a=this,b=new _.Th;this.ma(this.request).then(function(c){a.H=!0;c=_.yb(c,_.FL,2);aL(RKc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.hu();b.callback();TKc(a)},function(c){a.dispatchEvent(new _.Ic(c));b.Gd(c);TKc(a)});return b};
_.g.hu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))}};_.g.DP=function(){};var TKc=function(a){a.active&&(_.n.setTimeout((0,_.L)(a.poll,a),a.O.Wa()),_.ZH(a.O))};SKc.prototype.$b=function(){return this.backups.length};
var UKc=function(){};_.g=UKc.prototype;_.g.ZM=function(a,b){return HBc(GBc(1),a).setPosition(b)};_.g.XM=function(a,b){return HBc(GBc(2).setPosition(b),a)};_.g.bF=function(a,b,c){return HBc(GBc(3).oz(b).setPosition(c),a)};_.g.gR=function(a,b){return HBc(GBc(4),a).setPosition(b)};_.g.uN=function(a){return _.y(a,_.lk,2)};
var VKc=function(){_.Iy.call(this,new UKc,function(a){return a.getId()})};_.K(VKc,_.Iy);
var JM=function(a,b,c){_.pi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.K(JM,_.pi);JM.prototype.cj=function(a){this.limit=a};JM.prototype.nh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():WKc(this)};JM.prototype.Tla=function(){return this.permissions};
var WKc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.pJ;c=_.G(c,3,a.request);c=_.x(c,2,a.nextPageToken);b=_.x(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};JM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Yn()||"";a=a.Zc().EN();this.permissions=_.Aa(this.permissions,a);a.length&&this.dispatchEvent("wb");if(this.nextPageToken&&this.permissions.length<this.limit)return WKc(this);this.dispatchEvent("zb")};
JM.prototype.handleError=function(a){this.H=!1;a=new XL(_.vI(a),_.wj(this.context.Xc.Tf(),1,1));this.dispatchEvent(a)};
var XKc=function(a,b,c,d){rM.call(this,b.Be(),b.Ij(),b.xk(),d||100);var e=this;this.request=a;this.context=b;this.logName="drive.ds.sync.SyncedPermissionQueryLiveList";this.ma=[];this.permissions=[];this.changed=!1;this.ha=null;this.ta=c;this.O=new JM(b,this.request,this.ta);_.ef(this,function(){e.ha&&(_.n.clearTimeout(e.ha),e.ha=null)})};_.K(XKc,rM);_.g=XKc.prototype;_.g.activate=function(){rM.prototype.activate.call(this);this.hu()};_.g.tH=function(){this.query()};
_.g.Iu=function(a){rM.prototype.Iu.call(this,a||100)};_.g.getData=function(){var a=asc(new $rc,this.permissions.slice(0,this.limit)).Dc(this.status);this.ma=_.Ba(this.permissions);return a};_.g.hs=function(){var a=_.Hy(_.Sl(VKc),this.ma,this.permissions),b=new JBc;a=_.lj(b,2,a).Dc(this.status);this.ma=_.Ba(this.permissions);return a};_.g.nk=function(){var a;(a=!this.Me())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.jd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new JM(this.context,this.request,this.ta);this.O.cj(this.limit);return this.O.nh().then(function(){return YKc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){rM.prototype.handleError.call(this,a);ZKc(this)};var YKc=function(a){a.H=!0;var b=a.O.Tla();aL(_.Sl(VKc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.hu();ZKc(a)};
XKc.prototype.hu=function(){if(this.active){var a=this.status;this.eM();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.gi(_.cd,this))}};XKc.prototype.DP=function(){var a=this;this.O.cj(this.limit);this.O.nh().then(function(){return YKc(a)},function(b){return a.handleError(b)})};var ZKc=function(a){if(a.active){var b=a.context.Xc.Tf();a.ha=_.n.setTimeout((0,_.L)(a.query,a),Math.ceil(_.wj(b,7,9E5)*Math.random())+_.wj(b,15,36E5))}};XKc.prototype.$b=function(){return this.permissions.length};
var $Kc=function(a){6!==a.status&&_.n.setTimeout(function(){a.dispatchEvent(new _.gi(_.cd,a))},0)};
var aLc=function(){},bLc=function(a,b){EM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=aLc;this.H=null;this.id=String(_.Fa(this))};_.K(bLc,EM);bLc.prototype.Kaa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(TK(a,b,UK)))};bLc.prototype.nh=function(a){a=void 0===a?aLc:a;if(!this.H){this.O=a;var b=_.Rh();this.H=b;this.send("10.1",[this.request],function(c,d){return TK(c[0],d,UK)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
bLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var cLc=function(a,b,c){_.pi.call(this);var d=this;this.instanceId=a;this.H=b;this.O=c;this.Pu={};this.files={};_.ef(this,function(){d.H("7.6",[])})};_.K(cLc,_.pi);_.g=cLc.prototype;_.g.getId=function(){return this.instanceId};_.g.fR=function(){return _.FI()};
_.g.upload=function(a,b){!_.z(a,26)&&b&&b.lastModified&&_.x(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.kic;_.x(d,1,b.size);_.G(a,15,d);this.files[a.mj()]=b}return _.Zh(this.H("7.1",[a,c],function(e,f){return TK(e[0],f,_.GJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.IG=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 _.Th;c=this.fR();this.Pu[c]=b;b=_.Ya(b);this.H("7.4",[c].concat(_.fc(a)));return b};_.g.WM=function(a,b){var c=this;return _.Zh(this.H("7.5",[a].concat(_.fc(b)),function(d){return coc(d[0])}).then(function(d){return c.O.addCallback(function(e){return e.f6a(d)})}))};var dLc=function(a,b,c,d){if(a.Pu[b]&&a.Pu[b][c]){var e=a.Pu[b][c];d instanceof _.GJ?e.callback(d):e.Gd(d);delete a.Pu[b][c];_.ab(a.Pu[b])&&delete a.Pu[b]}};
var eLc=function(a,b){EM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.K(eLc,EM);var fLc=function(a){var b=_.FI(),c=new cLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ef(c,function(){return void a.H.delete(b)});return c};
eLc.prototype.Kaa=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.files[d];a.H("7.7",[d,_.vgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=TK(e[1],b,_.GJ);dLc(a,d,e[0],b);break;case 1:b=new _.Hc(void 0,TK(e[1],b,_.Gc));dLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.tkc(d,e[0],e[1]));break;default:throw Error("ch");}}};
var gLc=function(a,b){if(0===a.length)throw new _.Hc("mutateUserPref requires a namespace.",_.MI(3));var c=null;b instanceof _.pD?c=(b=(b=_.y(b,_.Qo,1))&&b.getKey())&&_.So(b)||null:b instanceof _.oD&&(c=(b=b.getKey())&&_.So(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Hc("mutateUserPref unsupported for namespace: "+c,_.MI(3));};
var hLc=function(a){this.H=a};
var apc=function(a){EM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(iLc=_.Rh()).promise);var b=this;this.ta=null;this.Pa=this.Ua=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.bn;this.Ka=new _.bn;this.V=iLc;iLc=void 0;this.context=a;fJc(this.context,new EKc(this.V.promise));this.H=this.context.kua;this.O=new GJc(this.V.promise,this.context,this.H);this.ob=new eLc(this.V.promise,this.context.RQ);this.Ia=new CKc(this.V.promise,this.context);this.Oc=new _.nf(this);this.Ja(this.Oc);
this.Oc.listen(this.context.xk(),[].concat(_.fc(Object.values(_.VB))),function(c){return void b.dispatchEvent(c)})},iLc;_.K(apc,EM);
apc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.wa.promise;var b=this.context.kk().H(106E3);this.ta.then(function(){b&&b.Bj();a.R4a()},function(){_.rK(a.context.kk(),181008852)});this.context.Be().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.XJ(this.context.Xc)?"(coldstart) ":"")+"with client build: "+this.context.Xc.Ki());var c=Pnc(this.context.Xc,this.Oi(),_.bK(this.context.Bg));jLc(this,c);if(2===c.H){var d=new IM(new AJc,6,this.context.Be());vKc(d,c.O);this.Ka.resolve(d)}else toc(this.Ia);
this.context.Be().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();dJc(this.context,function(){return kLc(c.channel)})}return this.ta};
var kLc=function(a){return _.Gka([new _.Nh(function(b){a.isDisposed()||EL(a,"8.1",void 0,function(){a.dispose();b()})}),_.ti(1E4)])},jLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Oi(),fds:_.bK(a.context.Bg)}}):c.registerService("1.1",function(){return lLc(a,b)});2===b.H?a.Ka.promise.then(function(){return void mLc(a,b)}):mLc(a,b);DL(c,"2.1",function(){return{dsc:a.context.Xc.Hc()}});DL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new zJc(d.id,
c,a.context.Be(),d.clients)),d.dsp&&nLc(c),d.ivd&&oLc(a,c)):(d=new _.Gc(JSON.parse(d.err)),a.wa.reject(new _.Hc("Unable to initialize dataservice.",d)))});DL(c,"2.15",function(d){a.dispatchEvent(new iCc(d.dt))});DL(c,"2.5",function(d){a.context.qz(d.id)});DL(c,"2.6",function(d){a.context.Ij().Ll(d.os)});DL(c,"2.18",function(d){a.context.Ij().nz(d.oois)});DL(c,"2.7",function(){a.ma=!1});DL(c,"2.8",function(d){a.context.Ia=d.au;a.dispatchEvent(new Esc(d.au?"fb":"gb"))});DL(c,"2.19",function(d){a.context.xk().update(d.cs)});
DL(c,"2.9",function(d){var e=d.logName,f=d.level;d=(0,_.Ws)("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Be().config(e,d);break;case "fine":_.$J(a.context.Be(),e,d,"fine");break;case "finer":_.$J(a.context.Be(),e,d,"finer");break;case "finest":_.$J(a.context.Be(),e,d,"finest");break;case "info":a.context.Be().info(e,d);break;case "warning":case "severe":Krc(a.context.Be(),e,d);break;default:Krc(a.context.Be(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),Krc(a.context.Be(),
e,d)}});DL(c,"2.10",function(d){return void a.Gaa(d)});DL(c,"2.12",function(){a.Pa=!0;KM(a)});DL(c,"2.14",function(){return a.kb.resolve()});DL(c,"2.16",function(){return a.$a=!0});DL(c,"2.17",function(d){a.context.Be().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},mLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",lLc(a,b));EL(b.channel,"8.4",{dsc:a.context.Xc.Hc()});nLc(b.channel);oLc(a,b.channel)},nLc=function(a){_.n._DRIVE_dsp&&EL(a,"8.3",{dsp:pLc(_.n._DRIVE_dsp)});
_.n._DRIVE_dspc=function(b){if(_.n._DRIVE_dsp){var c=[];c[b]=_.n._DRIVE_dsp[b];EL(a,"8.3",{dsp:pLc(c)})}}},oLc=function(a,b){_.R(a.context.Xc,24,!1)&&(_.n._DRIVE_ivd?EL(b,"8.2",{ivd:_.n._DRIVE_ivd}):void 0===_.n._DRIVE_ivd&&(_.n._DRIVE_ivdc=function(){_.n._DRIVE_ivd&&EL(b,"8.2",{ivd:_.n._DRIVE_ivd})}))},lLc=function(a,b){var c={};if(1===b.H){var d=new _.wNa(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.Xc.Ki(),
ufds:b.V}};apc.prototype.Oi=function(){var a=_.mj(_.mj(_.gI(this.context.Xc.clone(),28),44),91),b=new _.SH;b.update(_.UJ(_.fI(a)));b.update(String(_.wI(_.fI(a))));b.update(a.Hc());return _.Aec(b.digest())};var pLc=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=apc.prototype;_.g.Gaa=function(a){this.dispatchEvent(new _.Ic(new _.Hc(void 0,new _.Gc(JSON.parse(a.p)))))};
_.g.query=function(a){KM(this);yvc(this.context.Pl,a);this.IF();var b=this.O.Zya(a);this.Ua||(a=a.re(),a&&121===_.z(a,1)||(this.Ua=!0,this.Oc.listen(b,_.cd,this.vPa)));return b};_.g.vPa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Oc.Uc(a,_.cd,this.vPa))};_.g.et=function(a){KM(this);Bsc(a);this.IF();return this.O.Wya(a)};
_.g.Vwa=function(a,b){var c=this;KM(this);if(this.ka&&_.uj(this.ka.jd(),a))return this.ka;this.ka=new MKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return TK(h[0],k,hCc)})},b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.mIa=function(a,b){var c=this;KM(this);if(this.ha&&_.uj(this.ha.jd(),a))return $Kc(this.ha),this.ha;this.ha=new XKc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return TK(e[0],f,KBc)})},b);_.n.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.gba=function(a){KM(this);return _.Zh(this.send("3.14",[a],function(b,c){return TK(b[0],c,oM)}))};_.g.z9=function(a){KM(this);return _.Zh(this.send("3.15",[a],function(b,c){return TK(b[0],c,oM)}))};
_.g.ad=function(a){KM(this);!this.ma&&_.HJ(a)&&(this.ma=!0);a=Rnc(a);return _.Zh(this.send("3.3",[a],function(b,c){return TK(b[0],c,_.GJ)}))};_.g.uO=function(a){KM(this);a=aoc(a);return this.send("3.35",[a],function(b,c){return TK(b[0],c,_.Dsc)})};_.g.XC=function(a){KM(this);for(var b=0;b<a.length;b++)!this.ma&&_.HJ(a[b])&&(this.ma=!0);a=Unc(a);return _.Zh(this.send("3.4",[a],function(c,d){return Qvc(c[0],d).get()}))};_.g.Vya=function(){KM(this);return fLc(this.ob)};
_.g.EVa=function(a){KM(this);return new DKc(this.V.promise,a)};_.g.ht=function(a,b){var c=this;KM(this);var d=_.hh();this.H.create(d,a);return _.Zh(this.send("3.5",[a,!!b],function(e,f){f=TK(e[0],f,IL);return new _.mK(f,e[1],e[2])})).addCallback(function(e){mwc(c.H,d,e);return e.response}).Ag(function(e){HL(c.H,d);return e})};_.g.xr=function(a){KM(this);return this.send("3.10",[a],function(b,c){return TK(b[0],c,wAc)})};
_.g.iba=function(a){KM(this);return _.Zh(this.send("3.11",[a],function(b,c){return TK(b[0],c,xAc)}))};_.g.x9=function(a){KM(this);return _.Zh(this.send("3.12",[a],function(b,c){return TK(b[0],c,xAc)}))};_.g.WT=function(a){KM(this);return _.Zh(this.send("3.13",[a],function(b,c){return TK(b[0],c,xAc)}))};
_.g.RN=function(a,b){var c=this;KM(this);var d=_.hh();this.H.create(d,a);return _.Zh(this.send("3.1",[a,!!b],function(e,f){f=TK(e[0],f,_.fM);return new _.pK(f,e[1],e[2])})).addCallback(function(e){mwc(c.H,d,e);return e.response}).Ag(function(e){HL(c.H,d);return e})};
_.g.rH=function(a,b){var c=this,d=_.re(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.$h(new _.Hc("getUserPrefs requires a namespace.",_.MI(3)));0===_.re(a,3).length&&uoc(a,d);KM(this);var e=_.hh();this.H.create(e,a);return _.Zh(this.send("3.2",[a,!!b],function(f,h){h=TK(f[0],h,_.Xz);return new _.oK(h,f[1],f[2])})).addCallback(function(f){mwc(c.H,e,f);return f.response}).Ag(function(f){HL(c.H,e);return f})};
_.g.TS=function(a){KM(this);gLc(_.re(this.context.Xc.Tf(),30),a);a=Ync(a);return this.send("3.6",[a],function(b,c){return TK(b[0],c,VBc)})};_.g.Bu=function(a){KM(this);return _.Zh(this.send("3.16",[a],function(b,c){return TK(b[0],c,csc)}))};_.g.SDa=function(){return this.ma};_.g.Ll=function(a){KM(this);this.send("3.8",[a])};_.g.nz=function(a){KM(this);return _.Oh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.iZ=function(a){KM(this);eJc(this.context).iZ(a);this.nz(!!a)};
_.g.IF=function(){KM(this);this.send("3.9",[])};_.g.WS=function(){KM(this);this.send("3.41",[]);this.context.WS();var a=dL(this.context.kk(),106006);a&&this.V.promise.then(function(b){var c=_.y(_.hK(a),nrc,6);if(!c){c=new nrc;var d=_.hK(a);_.G(d,6,c)}c=_.x(c,1,b.clientId);_.x(c,2,b.O);a.Bj()},function(){})};_.g.UB=function(){KM(this);return this.context.UB()};_.g.YQ=function(){KM(this);return _.Oh(this.send("3.19",[],function(a,b){return TK(a[0],b,Xvc)}))};_.g.isConnected=function(){return this.context.xk().isConnected()};
_.g.U8=function(){return this.send("3.46",[],function(a,b){return TK(a[0],b,_.Njc)})};_.g.J$=function(){return this.Ia};_.g.sync=function(){KM(this);return _.Oh(this.send("3.28",[]))};_.g.Kt=function(){return this.context.Kt()};_.g.fZ=function(a){this.Ka.promise.then(function(b){return void b.fZ(a)})};_.g.jra=function(a){KM(this);return this.O.fza(a)};_.g.Q5=function(a){KM(this);return this.O.eza(a)};_.g.jIa=function(a){KM(this);Cvc(this.context.Pl,a);return this.O.bza(a)};
_.g.kra=function(a){KM(this);return new bLc(this.V.promise,a)};_.g.Kxa=function(a){var b=this;KM(this);if(!this.W||this.W.isDisposed())this.W=new SKc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return TK(d[0],e,FAc)})});return this.W};_.g.YIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Oh()};_.g.y9=function(a){KM(this);return _.Zh(this.send("3.22",[a],function(b,c){return TK(b[0],c,GAc)}))};
_.g.iW=function(a){KM(this);return _.Zh(this.send("3.25",[a],function(b,c){return TK(b[0],c,BAc)}))};_.g.yca=function(){return this.kb.promise};_.g.npa=function(a){var b=_.Rh();_.Zh(this.send("3.30",[a],function(c,d){c[0]?b.resolve(TK(c[0],d,DBc)):b.reject(new _.Hc(void 0,TK(c[1],d,_.Gc)))})).Ag(function(c){return void b.reject(c)});return b.promise};_.g.kya=function(a){KM(this);return this.O.Sya(a)};_.g.T8=function(a){KM(this);return this.send("3.42",[a],function(b,c){return TK(b[0],c,iAc)})};
_.g.FP=function(a){KM(this);var b=new _.bn;this.send("3.39",[a],function(c,d){return c.map(function(e){return TK(e,d,vwc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new hLc(b.promise))};_.g.JIa=function(a){var b=this;KM(this);return new GKc(this.context,a,function(c){return _.Oh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new Svc(TK(d[0],e,mM),d[1])}))})};
_.g.KIa=function(a){KM(this);return this.send("3.38",[a],function(b,c){return TK(b[0],c,yBc)})};_.g.ANa=function(a){KM(this);return this.O.jza(a)};_.g.dsa=function(a){KM(this);return this.O.iza(a)};_.g.ULa=function(a){var b=this;KM(this);return new HKc(this.context,a,function(){return _.Oh(b.send("3.40",[a],function(c,d){return TK(c[0],d,_.IK)}))})};_.g.VLa=function(a){KM(this);return this.O.cza(a)};_.g.y0=function(a){KM(this);Bvc(this.context.Pl,a);this.send("3.43",[a])};
_.g.Z0=function(a){KM(this);return _.Oh(this.send("3.44",[a],function(b,c){return TK(b[0],c,Osc)}))};_.g.Co=function(a){KM(this);if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}return Promise.resolve(this.send("3.45",a))};
_.g.R4a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.ti(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.Gka(b).then(function(c){c?_.ri(a.R4a.bind(a),6E4):(a.Pa=!0,KM(a))})}};var KM=function(a){a.Pa&&a.dispatchEvent(new HCc)};
var cpc=function(a){tM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Rh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Lm()};_.K(cpc,tM);cpc.prototype.kVa=function(){this.Ia=new MJc(this.context);this.Ja(this.Ia);this.Ka=new QJc(this.context);this.Ja(this.Ka);this.Pa=new XJc(this.context);this.Ja(this.Pa)};
cpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.XJ(this.context.Xc)&&b.push("BNEDtc");NL(this.O,b,function(){return void a.v_a()});NL(this.O,["T8oKm",_.VJ(this.context.Xc)?"BNEDtc":"ZA9qG"],function(){return void qLc(a)});NL(this.O,["T8oKm","mrK8ic"],function(){return void qLc(a)});this.Oc.listen(this.Ia,"WPi0i",this.mua.bind(this,1));this.Oc.listen(this.Ka,"Hb",this.mua.bind(this,2));this.Oc.listen(this.Pa,"WPi0i",this.mua.bind(this,4));NL(this.O,["GZTDpc"],function(){return a.kb.resolve()})};
var qLc=function(a){xM(a.context).addCallback(function(b){b.start()})};_.g=cpc.prototype;_.g.mua=function(a){_.pa(Psc,a)&&this.dispatchEvent(new iCc(a))};_.g.Q5=function(a){return this.V.eza(a.clone())};_.g.jIa=function(a){Cvc(this.context.Pl,a);return this.V.bza(a.clone())};_.g.jra=function(a){return this.V.fza(a.clone())};_.g.kra=function(a){return new nKc(a,this.context.Lm())};
_.g.Vwa=function(a,b){var c=this;if(this.ta&&_.uj(this.ta.jd(),a))return this.ta;this.ta=new MKc(a.clone(),this.context,this.lnb.bind(this),b);_.n.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.lnb=function(a,b,c){var d=new _.Wgc(a,b,c);return _.Zh(this.H.then(function(e){return e.Qe(d)}).then(null,function(e){return KK(e)}))};_.g.Kxa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new SKc(a,this.context,function(c){return rLc(b,c)});return this.ha};
var rLc=function(a,b){return _.Zh(a.H.then(function(c){return c.Qe(b)}).then(null,function(c){return KK(c)}))};_.g=cpc.prototype;_.g.YIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Oh()};_.g.iW=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}))};_.g.y9=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}))};
_.g.mIa=function(a,b){var c=this;if(this.ka&&_.uj(this.ka.jd(),a))return $Kc(this.ka),this.ka;this.ka=new XKc(a.clone(),this.context,this.NOb.bind(this),b);_.n.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.NOb=function(a){var b=this;return this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Jxc(b.context.Jf.Kq,c.Zc().EN(),a.jd().getId()).then(function(){return c}):c},KK)};
_.g.gba=function(a){var b=this;return _.Zh(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Jxc(b.context.Jf.Kq,[_.y(c,_.lk,2)],a.qc()).then(function(){return c}):c},KK))};_.g.z9=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.kya=function(a){return this.V.Sya(a.clone())};_.g.T8=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};
_.g.FP=function(a){return this.H.then(function(b){return b.Qe(a)}).then(function(b){var c=new _.bn;Txc(a,b).then(function(d){return c.resolve(d)});return new hLc(c.promise)},function(b){KK(b)})};_.g.JIa=function(a){var b=this;return new GKc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).then(null,function(d){return KK(d)})})};_.g.KIa=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};
_.g.ad=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.uO=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};_.g.XC=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.PI?c.push(String(f.qc())):c.push(String(f.getId()));d.push(b.ad(f))});a=new _.Pn(d);var e=new _.Th;a.addCallback(this.Vpb.bind(this,e,c));return e};
_.g.Vya=function(){return new cKc(this.context.Xc,this.context.kB,this.context.YR().Fga,this.context.Lm(),this.context.RQ,this.context.Be(),this.context.kk())};_.g.ht=function(a,b){var c=this,d=_.hh();this.W.create(d,a);3===a.getType()?a=tM.prototype.ht.call(this,a).addCallback(function(e){return new _.mK(e,1,!1)}):(OL(this.O,"Qubz4b"),a=this.Ka.enqueue(new VJc(a,b)));return a.addCallback(function(e){mwc(c.W,d,e);return e.response}).Ag(function(){HL(c.W,d)})};
_.g.xr=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.iba=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.x9=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};_.g.WT=function(a){return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};
_.g.RN=function(a,b){var c=this;OL(this.O,"iuEtc");var d=_.hh();this.W.create(d,a);return this.Ia.enqueue(new OJc(a,b)).addCallback(function(e){mwc(c.W,d,e);return e.response}).Ag(function(){HL(c.W,d)})};
_.g.rH=function(a,b){var c=this,d=_.re(this.context.Xc.Tf(),30);if(!d||0===d.length)return _.$h(new _.Hc("getUserPrefs requires a namespace.",_.MI(3)));0===_.re(a,3).length&&uoc(a,d);var e=_.hh();this.W.create(e,a);OL(this.O,"OZvrNc");return this.Pa.enqueue(new $Jc(a,b)).addCallback(function(f){mwc(c.W,e,f);return f.response}).Ag(function(){HL(c.W,e)})};_.g.TS=function(a){gLc(_.re(this.context.Xc.Tf(),30),a);return _.Zh(this.H.then(function(b){return b.Qe(a)}).then(null,KK))};
_.g.Bu=function(a){var b=this;return _.Zh(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.mI(b.context.Xc)?Hxc(b.context.Jf.Kq,c):c},KK))};_.g.ANa=function(a){return this.V.jza(a.clone())};_.g.dsa=function(a){return this.V.iza(a.clone())};_.g.ULa=function(a){var b=this;return new HKc(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).then(null,function(d){return KK(d)})})};_.g.VLa=function(a){return this.V.cza(a.clone())};
_.g.y0=function(a){Bvc(this.context.Pl,a);DEc(this.context.Jf,[a])};_.g.Z0=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,KK)};_.g.Co=function(a){if(1!==_.WJ(this.context.Xc))return Promise.reject(Error("dh"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("eh"));if(!_.BI(c)&&!c.getItem())return Promise.reject(Error("fh"))}this.context.Jf.Co(a);pFc(this.context.Jf);return Promise.resolve()};_.g.SDa=function(){return this.context.YR().zK()};
_.g.nz=function(a){var b=this;return this.context.nz(a).then(function(c){return c?(b.context.Ij().nz(a),b.context.Ts.HL()):_.Oh(!a)})};_.g.iZ=function(a){eJc(this.context).iZ(a);this.nz(!!a)};_.g.IF=function(){xM(this.context).addCallback(function(a){a&&a.Tpa()});this.context.qia.IF()};_.g.fZ=function(a){a.OPa(this.context)};_.g.Vpb=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];pFc(this.context.Jf);a.callback(d)};
_.g.sync=function(){var a=this;return _.Qh([this.context.eba.promise,this.context.Gga.promise]).then(function(){return xM(a.context).then()}).then(function(b){return new _.Nh(function(c,d){b.sync().then(function(){return c()},function(e){return d(e)})})}).then(function(){return a.context.Ts.HL()}).then()};_.g.Kt=function(){xM(this.context).addCallback(function(a){a&&a.dispose()});return tM.prototype.Kt.call(this)};_.g.yca=function(){return this.kb.promise};
var sLc=function(){var a='<div class="'+_.D("la-r")+'">';a=a+'Er is iets misgegaan. Laad opnieuw.</div><button class="'+(_.D("la-Y-A")+" "+_.D("kc-A")+'" data-target="reload">');return(0,_.F)(a+"Opnieuw laden</button>")};
_.$m({id:_.El,callback:function(a){var b=_.Tmc(a),c=fpc(a),d=_.y(a.get(_.Hd),_.Qc,10);_.gic(d,b);_.jj(d,28,c);b=dpc(a,d);a.registerService(_.Fl,b.J$());_.ki(b,"VbxEwf",function(){var e={};_.Cd(_.Zq.getService(a),new _.Yp(new _.Xp(sLc,{}),"d",(e.reload=function(){_.n.window.location.reload()},e),4))});return b}});

_.u();

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

_.tLc=function(a,b){return _.x(a,2,b)};_.uLc=function(a,b){return _.x(a,1,b)};_.vLc=function(a,b){return _.G(a,2,b)};_.wLc=function(a,b){return _.lj(a,1,b)};_.xLc=function(a,b){return _.jj(a,1,b)};_.yLc=function(a,b){return _.lj(a,2,b)};_.zLc=function(a,b){return _.G(a,3,b)};

_.u();

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