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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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


_.t();

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

_.fmb=function(a,b){a.filters.push(new _.fu(1,b));return a};_.gmb=function(a){a.approvalSummaries||(a.approvalSummaries=_.jSa(a.Yf,a.getItem().lAa));return a.approvalSummaries};

_.t();

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


_.t();

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

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

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy14p");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Avb=function(a,b,c){_.$q(a,b)&&(_.Nd(a,b),_.ar(a,c))};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy14q");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Cvb;_.Bvb=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")};Cvb=function(a){var b=_.qaa(_.fFa,function(c){return a==c});if(void 0===b)throw Error("Bb`"+a);return b};_.Dvb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=_.fFa[a.name]):(this.code=a=a.code,this.name=Cvb(a));_.ia.call(this,_.Bvb("%s %s",this.name,b))};_.ig(_.Dvb,_.ia);var Evb=function(a,b){_.pi.call(this,a.type,b)};
_.ig(Evb,_.pi);_.Fvb=function(){_.yi.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.K)(this.Y0,this);this.H.onprogress=(0,_.K)(this.Y0,this);this.H.onload=(0,_.K)(this.Y0,this);this.H.onabort=(0,_.K)(this.Y0,this);this.H.onerror=(0,_.K)(this.Y0,this);this.H.onloadend=(0,_.K)(this.Y0,this)};_.ig(_.Fvb,_.yi);_.g=_.Fvb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Dvb(a,"aborting read");}};_.g.ak=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Dvb(this.H.error,"reading file")};_.g.Y0=function(a){this.dispatchEvent(new Evb(a,this))};_.g.Ya=function(){_.Fvb.ub.Ya.call(this);delete this.H};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy153");

var Twb,Wwb;Twb=[4,5,6,7];_.VB=function(a){_.I.call(this,a)};_.J(_.VB,_.I);_.VB.prototype.Cb=function(){return _.y(this,1)};_.VB.prototype.Cc=function(a){return _.u(this,1,a)};_.VB.prototype.baa=function(){return _.y(this,2)};_.VB.prototype.Tb="JmcaR";_.Uwb=function(a){_.I.call(this,a)};_.J(_.Uwb,_.I);_.Uwb.prototype.H=function(){return _.N(this,1)};_.Uwb.prototype.Tb="dvhrqe";_.Vwb=function(a){_.I.call(this,a)};_.J(_.Vwb,_.I);_.Vwb.prototype.To=function(){return _.y(this,2)};
_.Vwb.prototype.C2=function(){return _.y(this,3)};Wwb=[5];_.Xwb=function(a){_.I.call(this,a)};_.J(_.Xwb,_.I);_.Xwb.prototype.H=function(){return _.N(this,4)};_.Xwb.prototype.setActive=function(a){return _.u(this,4,a)};_.Ywb=function(a){_.I.call(this,a,-1,Wwb)};_.J(_.Ywb,_.I);_.g=_.Ywb.prototype;_.g.y_=function(){return _.y(this,1)};_.g.sU=function(){return _.y(this,3)};_.g.lK=function(){return _.zb(this,_.Vwb,5)};_.g.xk=function(){return _.y(this,6)};_.g.nq=function(){return _.y(this,7)};
_.g.UJ=function(){return _.y(this,9)};_.g.jt=function(){return _.y(this,10)};_.g.YJ=function(){return _.x(this,_.Xwb,12)};_.g.Nk=function(){return _.y(this,13)};_.g.Uw=function(){return _.y(this,16)};_.g.WBb=function(){return _.mj(this,16)};_.g.Hv=function(){return _.y(this,17)};_.g.Tb="dzR11e";_.Zwb=function(a){_.I.call(this,a,-1,Twb)};_.J(_.Zwb,_.I);_.Zwb.prototype.ul=function(){return _.x(this,_.Ywb,1)};_.Zwb.prototype.iN=function(){return _.x(this,_.VB,8)};
_.Zwb.prototype.H=function(){return _.x(this,_.Uwb,9)};_.WB=function(a){_.I.call(this,a,-1,$wb)};_.J(_.WB,_.I);_.WB.prototype.getUser=function(){return _.x(this,_.xk,1)};_.WB.prototype.getMetadata=function(){return _.x(this,_.Zwb,3)};_.WB.prototype.Fo=function(){return _.mj(this,3)};var $wb=[2];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy154");

_.axb=function(a,b,c,d,e,f,h){return(0,_.D)(_.yn("b",b,!1)({fillColor:d,ab:c,color:"#000000",nb:!0,Ir:e,size:f,Sd:h},a))};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy155");

_.XB={NL:"eb",Aha:"fb",SU:"gb",RU:"hb"};_.bxb=new Map([[_.XB.NL,1],[_.XB.Aha,2],[_.XB.SU,2],[_.XB.RU,3]]);

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy15u");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy16d");

_.tzb=function(a){a=parseInt(a.H()||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.vzb=function(a,b,c,d){var e=_.mf.getService(a);a=e.$f(a,c);_.uzb(a.H.yj,b,d);e.Qf(a)};_.uzb=function(a,b,c){var d=new _.wzb;b.EQ&&_.u(d,2,b.EQ);b.SE&&0<=b.SE&&_.u(d,1,b.SE);b.quotaType&&_.u(d,3,b.quotaType);_.xzb(a,d);c&&(b=new _.yzb,_.u(b,1,c),_.zzb(a,b))};_.Azb=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.xzb=function(a,b){b&&(a=a.Rc(),_.F(a,29,b))};
_.zzb=function(a,b){b&&(a=a.Rc(),_.F(a,38,b))};_.wzb=function(a){_.I.call(this,a)};_.J(_.wzb,_.I);_.wzb.prototype.xk=function(){return _.y(this,3)};_.yzb=function(a){_.I.call(this,a)};_.J(_.yzb,_.I);_.yzb.prototype.li=function(){return _.y(this,1)};
var Bzb;_.Czb=function(a,b,c){var d=_.z(a.get(_.UDa),1,"");a=_.tzb(b);d=new _.$i(d);a:switch(a){case "over":var e="o";break a;case "near":e="u";break a;default:e="m"}return _.bj(_.ej(_.ej(_.ej(_.ej(d,"i",e),"utm_source","drive"),"utm_medium","web"),"utm_campaign",Bzb(a,c)),-1!==parseInt(String(b.V()),10)?"upgrade":"")};
Bzb=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"}}};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy17s");

_.UC=function(a){_.I.call(this,a)};_.J(_.UC,_.I);_.UC.prototype.wa=function(){return _.qj(this,1)};_.UC.prototype.V=function(){return _.qj(this,2)};_.UC.prototype.H=function(){return _.qj(this,3)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18f");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18l");


_.t();

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


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy18n");


_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy19f");

_.pD=function(a){_.I.call(this,a)};_.J(_.pD,_.I);_.pD.prototype.getKey=function(){return _.x(this,_.kc,1)};_.pD.prototype.vt=function(){return _.mj(this,1)};_.pD.prototype.se=function(){return _.x(this,_.Lf,2)};
_.qD=function(a){_.I.call(this,a)};_.J(_.qD,_.I);_.qD.prototype.se=function(){return _.x(this,_.Lf,2)};

_.t();

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

_.oD=function(a){_.I.call(this,a,-1,vCb)};_.J(_.oD,_.I);_.oD.prototype.se=function(){return _.x(this,_.Lf,1)};var vCb=[3];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy19m");

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.DD=function(a,b,c){_.L.call(this);this.Ym=null!=c?(0,_.K)(a,c):a;this.ka=b;this.tg=(0,_.K)(this.Wab,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.ig(_.DD,_.L);_.g=_.DD.prototype;_.g.qe=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.gg()+this.ka:this.H=_.Ai(this.tg,this.ka)};_.g.stop=function(){this.H&&(_.Ci(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.Ym.apply(null,this.ha)))};_.g.Ya=function(){this.stop();_.DD.ub.Ya.call(this)};_.g.Wab=function(){this.H&&(_.Ci(this.H),this.H=null);this.W?(this.H=_.Ai(this.tg,this.W-_.gg()),this.W=null):this.V?this.O=!0:(this.O=!1,this.Ym.apply(null,this.ha))};

_.t();

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


_.t();

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

_.UF=function(a){_.I.call(this,a,-1,cVb)};_.J(_.UF,_.I);_.UF.prototype.getId=function(){return _.y(this,1)};_.UF.prototype.Nb=function(a){return _.u(this,1,a)};_.UF.prototype.Au=function(){return _.y(this,2)};_.UF.prototype.sK=function(){return _.mj(this,2)};var cVb=[5,6,9,10,12,13,15,16];
var dVb;_.VF=function(a){_.I.call(this,a,-1,dVb)};_.J(_.VF,_.I);_.VF.prototype.Hm=function(){return _.y(this,1)};_.eVb=function(a,b){return _.u(a,1,b)};dVb=[2,4];

_.t();

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


_.t();

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

_.WF=function(a){_.I.call(this,a)};_.J(_.WF,_.I);_.WF.prototype.getName=function(){return _.y(this,1)};_.WF.prototype.Zc=function(a){return _.u(this,1,a)};_.WF.prototype.se=function(){return _.x(this,_.Lf,2)};

_.t();

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

_.lVb=function(a){_.I.call(this,a)};_.J(_.lVb,_.I);_.lVb.prototype.wi=function(){return _.y(this,3)};_.lVb.prototype.Gi=function(a){return _.u(this,3,a)};_.lVb.prototype.se=function(){return _.x(this,_.Lf,5)};_.lVb.prototype.getCustomer=function(){return _.y(this,6)};

_.t();

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

var mVb;_.Sc=function(a){_.pi.call(this,_.bd);this.error=a};_.J(_.Sc,_.pi);_.XF=function(a){_.I.call(this,a,-1,mVb)};_.J(_.XF,_.I);_.XF.prototype.H=function(){return _.me(this,1)};_.YF=function(a,b){return _.rj(a,1,b)};_.XF.prototype.nm=function(){return _.me(this,2)};_.ZF=function(a,b){return _.rj(a,2,b)};_.XF.prototype.se=function(){return _.x(this,_.Lf,3)};_.$F=function(a,b){return _.F(a,3,b)};_.nVb=function(a,b){return _.u(a,5,b)};mVb=[1,2,6,11];

_.t();

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

_.aG=function(a){_.I.call(this,a)};_.J(_.aG,_.I);_.g=_.aG.prototype;_.g.wi=function(){return _.y(this,1)};_.g.Gi=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.se=function(){return _.x(this,_.Lf,3)};_.g.Xq=function(){return _.y(this,4)};

_.t();

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

_.bG=function(a){_.I.call(this,a,-1,oVb)};_.J(_.bG,_.I);_.bG.prototype.H=function(){return _.me(this,1)};_.bG.prototype.nm=function(){return _.me(this,2)};_.bG.prototype.se=function(){return _.x(this,_.Lf,3)};var oVb=[1,2];

_.t();

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

_.cG=function(a){_.I.call(this,a,-1,pVb)};_.J(_.cG,_.I);_.cG.prototype.nm=function(){return _.me(this,1)};_.qVb=function(a,b){return _.rj(a,1,b)};_.cG.prototype.se=function(){return _.x(this,_.Lf,2)};var pVb=[1,3];

_.t();

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

_.dG=function(a,b){return _.u(a,4,b)};_.rVb=function(a,b){return _.u(a,25,b)};

_.t();

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


_.t();

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

_.jG=function(a){_.I.call(this,a)};_.J(_.jG,_.I);_.jG.prototype.qc=function(){return _.y(this,1)};_.kWb=function(a){var b=new _.jG;return _.u(b,1,a)};_.jG.prototype.wi=function(){return _.y(this,2)};_.jG.prototype.Gi=function(a){return _.u(this,2,a)};_.jG.prototype.se=function(){return _.x(this,_.Lf,3)};

_.t();

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

_.PH=function(a){_.I.call(this,a)};_.J(_.PH,_.I);_.PH.prototype.se=function(){return _.x(this,_.Lf,1)};_.QH=function(a,b){return _.F(a,1,b)};_.PH.prototype.ah=function(){return _.y(this,4)};_.PH.prototype.uJa=function(a){return _.u(this,4,a)};

_.t();

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


_.t();

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

var Gcc;_.RH=function(a){_.I.call(this,a,-1,Gcc)};_.J(_.RH,_.I);_.RH.prototype.H=function(){return _.me(this,1)};_.RH.prototype.se=function(){return _.x(this,_.Lf,2)};_.Hcc=function(a,b){return _.F(a,2,b)};_.RH.prototype.wi=function(){return _.Dj(this,3,20)};_.RH.prototype.Gi=function(a){return _.u(this,3,a)};_.Icc=function(a,b){return _.u(a,4,b)};Gcc=[1];

_.t();

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

/*

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

_.t();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Lcc=function(a){_.L.call(this);this.O=a;this.H={};this.O.JO((0,_.K)(this.V,this))};_.ig(_.Lcc,_.L);_.Ncc=function(a,b){if(-1!=b.indexOf(":"))throw Error("$e`"+b);if(b in a.H)throw Error("af`"+b);var c=new Mcc(a,b);return a.H[b]=c};_.Lcc.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)}};_.Lcc.prototype.Ya=function(){_.Ra(this.H,function(a){_.da(a)});_.da(this.O);delete this.H;delete this.O};
var Mcc=function(a,b){_.L.call(this);this.Ig=a;this.H=b};_.ig(Mcc,_.L);_.g=Mcc.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,_.K)(this.pVa,this,b),c)};_.g.JO=function(a){this.O=(0,_.K)(this.pVa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("bf");this.Ig.O.send(this.H+":"+a,b)};_.g.pVa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Ya=function(){this.Ig=this.Ig.H[this.H]=null};

_.t();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Occ=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};_.Pcc=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()};_.ig(_.SH,_.Pcc);_.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 Qcc=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;)Qcc(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){Qcc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){Qcc(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};

_.t();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Rcc,TH,Scc,VH,Ucc,Tcc;Rcc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.Lga);try{delete a[_.Lga]}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[_.Lga]||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++)Rcc(c[a]);return b.join("")};_.UH=function(a,b,c){if("number"===typeof a)var d={name:Tcc(a)};else d=a,a=Ucc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.ia.call(this,b)};_.ig(_.UH,_.ia);_.UH.prototype.getName=function(){return this.O.name||""};
VH={ilb:1,okb:2,NOT_FOUND_ERR:3,x$a:4,C$a:5,qkb:6,dlb:7,ABORT_ERR:8,Hkb:9,E9b:10,TIMEOUT_ERR:11,Dkb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.Vcc=(_.aa.H||_.aa.O||VH).ilb;_.Wcc=(_.aa.H||_.aa.O||VH).okb;_.Xcc=(_.aa.H||_.aa.O||VH).NOT_FOUND_ERR;_.Ycc=(_.aa.H||_.aa.O||VH).x$a;_.Zcc=(_.aa.H||_.aa.O||VH).C$a;_.$cc=(_.aa.H||_.aa.O||VH).qkb;_.adc=(_.aa.H||_.aa.O||VH).dlb;_.bdc=(_.aa.H||_.aa.O||VH).ABORT_ERR;_.cdc=(_.aa.H||_.aa.O||VH).Hkb;_.ddc=(_.aa.H||_.aa.O||VH).TIMEOUT_ERR;
_.edc=(_.aa.H||_.aa.O||VH).Dkb;_.fdc=(_.aa.DOMException||VH).INVALID_ACCESS_ERR;_.gdc=(_.aa.DOMException||VH).INVALID_STATE_ERR;
Ucc=function(a){switch(a){case "UnknownError":return _.Vcc;case "NotFoundError":return _.Xcc;case "ConstraintError":return _.Ycc;case "DataError":return _.Zcc;case "TransactionInactiveError":return _.adc;case "AbortError":return _.bdc;case "ReadOnlyError":return _.cdc;case "TimeoutError":return _.ddc;case "QuotaExceededError":return _.edc;case "InvalidAccessError":return _.fdc;case "InvalidStateError":return _.gdc;default:return _.Vcc}};
Tcc=function(a){switch(a){case _.Vcc:return"UnknownError";case _.Xcc:return"NotFoundError";case _.Ycc:return"ConstraintError";case _.Zcc:return"DataError";case _.adc:return"TransactionInactiveError";case _.bdc:return"AbortError";case _.cdc:return"ReadOnlyError";case _.ddc:return"TimeoutError";case _.edc:return"QuotaExceededError";case _.fdc:return"InvalidAccessError";case _.gdc: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=Tcc(a.code);b=b+": "+a.message;return new _.UH({name:c},b)}return new _.UH({name:"UnknownError"},b)};
_.hdc=function(a){this.H=a};_.idc=_.aa.IDBKeyRange||_.aa.webkitIDBKeyRange;_.hdc.prototype.range=function(){return this.H};
var jdc=function(a){this.H=a};jdc.prototype.getName=function(){return this.H.name};var kdc=function(a,b,c,d){var e=new _.$h;try{var f=a.H[b](d)}catch(h){return c+=" with key "+TH(d),e.Hd(_.XH(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+TH(d);e.Hd(_.WH(h.target,c))};return e};jdc.prototype.get=function(a){return kdc(this,"get","getting from index "+this.getName(),a)};
jdc.prototype.getKey=function(a){return kdc(this,"getKey","getting key from index "+this.getName(),a)};jdc.prototype.getAll=function(a,b){return _.ldc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.ldc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.hdc?d.range():(new _.hdc(_.idc.only(d))).range();var h=new _.$h;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?TH(f):"<all>"),h.Hd(_.XH(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?TH(f):"<all>");h.Hd(_.WH(l.target,c))};return h};
var mdc=function(a){this.H=a};mdc.prototype.getName=function(){return this.H.name};var ndc=function(a,b,c,d,e){var f=new _.$h;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=TH(d),e&&(c+=", with key "+TH(e)),f.Hd(_.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.Hd(_.WH(k.target,c))};return f};_.g=mdc.prototype;_.g.put=function(a,b){return ndc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return ndc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.$h;try{var c=this.H["delete"](a instanceof _.hdc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+TH(a),b.Hd(_.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.Hd(_.WH(e.target,f))};return b};
_.g.get=function(a){var b=new _.$h;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+TH(a),b.Hd(_.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.Hd(_.WH(e.target,f))};return b};_.g.getAll=function(a,b){return odc(this,"getting all from index "+this.getName(),a,b)};
var odc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.hdc?c.range():(new _.hdc(_.idc.only(c))).range();var f=new _.$h;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?TH(e):"<all>"),f.Hd(_.XH(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?TH(e):"<all>");f.Hd(_.WH(k.target,b))};return f};
mdc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.$h;try{var c=this.H.clear()}catch(d){return b.Hd(_.XH(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Hd(_.WH(d.target,a))};return b};mdc.prototype.getIndex=function(a){try{return new jdc(this.H.index(a))}catch(b){throw _.XH(b,"getting index "+a);}};
mdc.prototype.count=function(a){var b=new _.$h;try{var c=this.H.count(a?a.range():null);c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){b.Hd(_.WH(e.target,d.getName()))}}catch(e){b.Hd(_.XH(e,this.getName()))}return b};
var pdc=function(a,b){_.yi.call(this);this.H=a;this.O=b;this.Db=new _.kf(this);this.Db.listen(this.H,"complete",(0,_.K)(this.dispatchEvent,this,"complete"));this.Db.listen(this.H,"abort",(0,_.K)(this.dispatchEvent,this,"abort"));this.Db.listen(this.H,"error",this.ybb)};_.ig(pdc,_.yi);_.g=pdc.prototype;_.g.ybb=function(a){a.target instanceof _.UH?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.WH(a.target,"in transaction")})};_.g.Eg=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new mdc(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 _.$h;_.ti(this,"complete",(0,_.K)(a.callback,a));var b=_.ti(this,"abort",function(){_.wi(c);a.Hd(new _.UH(_.bdc,"waiting for transaction to complete"))});var c=_.ti(this,"error",function(e){_.wi(b);a.Hd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Ya=function(){pdc.ub.Ya.call(this);this.Db.dispose()};
var qdc=function(a){_.yi.call(this);this.H=a;this.Db=new _.kf(this);this.Db.listen(this.H,"abort",(0,_.K)(this.dispatchEvent,this,"abort"));this.Db.listen(this.H,"error",this.zbb);this.Db.listen(this.H,"versionchange",this.lrb);this.Db.listen(this.H,"close",(0,_.K)(this.dispatchEvent,this,"close"))};_.ig(qdc,_.yi);_.g=qdc.prototype;_.g.qta=!0;_.g.zbb=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.lrb=function(a){this.dispatchEvent(new rdc(a.oldVersion,a.newVersion))};_.g.close=function(){this.qta&&(this.H.close(),this.qta=!1)};_.g.Bg=function(){return this.qta};_.g.getName=function(){return this.H.name};_.g.lj=function(){return Number(this.H.version)};_.sdc=function(a,b,c){try{return new mdc(a.H.createObjectStore(b,c))}catch(d){throw _.XH(d,"creating object store "+b);}};
_.tdc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new pdc(d,a)}catch(e){throw _.XH(e,"creating transaction");}};qdc.prototype.Ya=function(){qdc.ub.Ya.call(this);this.Db.dispose()};var rdc=function(a,b){_.pi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.ig(rdc,_.pi);
_.udc=function(){void 0==Scc&&(Scc=_.aa.indexedDB||_.aa.mozIndexedDB||_.aa.webkitIndexedDB||_.aa.moz_indexedDB);return Scc};
_.vdc=function(a,b,c,d){var e=new _.$h;b=b?_.udc().open(a,b):_.udc().open(a);b.onsuccess=function(f){f=new qdc(f.target.result);e.callback(f)};b.onerror=function(f){e.Hd(_.WH(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new qdc(f.target.result);c(new rdc(f.oldVersion,f.newVersion),h,new pdc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new rdc(f.oldVersion,f.newVersion))};return e};

_.t();

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

/*

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

_.t();

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

_.wdc=function(a,b,c){_.ima(a.url,function(d){d=d.target;d.QB()?b(d.wl()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.xdc=function(a,b,c,d){return _.z(a,1).split("/").pop()==d?(d=_.y(a,2),Array.isArray(d)?new b(d):c(_.ub(a.Xa()))):null};_.zdc=function(a){_.I.call(this,a,-1,ydc)};_.J(_.zdc,_.I);var ydc=[2];
_.Adc=function(a){_.I.call(this,a)};_.J(_.Adc,_.I);var Bdc=function(){var a=new _.Adc,b=document.documentElement.getAttribute("lang");return _.u(a,5,b)};_.Adc.prototype.Mi=function(){return _.y(this,7)};
_.Cdc=function(a){_.I.call(this,a)};_.J(_.Cdc,_.I);
var Ddc;_.$H=function(a){_.I.call(this,a,31,Ddc)};_.J(_.$H,_.I);_.aI=function(a,b){return _.u(a,8,b)};Ddc=[3,20,27];
var Fdc=function(a){_.I.call(this,a,17,Edc)};_.J(Fdc,_.I);var Gdc=function(a){var b=Date.now().toString();return _.u(a,4,b)},Hdc=function(a,b){return _.tj(a,3,b)},Idc=function(a,b){return _.u(a,14,b)},Edc=[3,5];
var Kdc=function(a){_.I.call(this,a,6,Jdc)};_.J(Kdc,_.I);var Jdc=[5];
var Ldc=function(a){_.I.call(this,a)};_.J(Ldc,_.I);
var Mdc=new _.jj(175237375,Ldc);
_.bI=function(a,b,c,d,e,f,h,k,l,p,q){_.yi.call(this);var r=this;this.Ia="";this.O=[];this.Dc="";this.Gb=this.Kb=this.ha=!1;this.Mc=this.ob=-1;this.Qb=!1;this.Ba=this.V=null;this.ta=0;this.le=1;this.timeoutMillis=0;this.kb=!1;_.yi.call(this);this.Pc=a;this.jc=b||_.eg;this.ka=new Fdc;this.yd=d;this.yb=q;this.ie=_.gb(_.nja,0,1);this.wa=e||null;this.Ga=c||null;this.Pa=h||!1;this.$a=l||null;this.Zf=null;this.withCredentials=!k;this.tc=f||!1;this.Rd=!this.tc&&(_.kj.xo&&_.Nb(65)||_.kj.Zu&&_.Nb(45)||_.kj.vx&&
_.Nb(12)||_.ib()&&0<=_.hb(_.Gaa(),12))&&!!_.Jf()&&!!_.Jf().navigator&&!!_.Jf().navigator.sendBeacon;a=_.u(new _.Cdc,1,1);f||(f=Bdc(),_.F(a,11,f));_.F(this.ka,1,a);_.u(this.ka,2,this.Pc);this.ma=new _.YH(1E4,3E5,.1);this.H=new _.zi(this.ma.Xa());this.Ja(this.H);_.Ze(this.H,"tick",_.Uga(Ndc(this,p)),!1,this);this.La=new _.zi(6E5);this.Ja(this.La);_.Ze(this.La,"tick",_.Uga(Ndc(this,p)),!1,this);this.Pa||this.La.start();this.tc||(_.Ze(document,"visibilitychange",function(){"hidden"===document.visibilityState&&
r.Ta()}),_.Ze(document,"pagehide",this.Ta,!1,this))};_.J(_.bI,_.yi);var Ndc=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.bI.prototype.Ya=function(){this.Ta();_.yi.prototype.Ya.call(this)};var Odc=function(a){a.wa||(a.wa=.01>a.ie()?"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.Gc()),this.log(a))};
_.Pdc=function(a,b){b?(a.V||(a.V=new _.zdc),b=b.Gc(),_.u(a.V,4,b)):a.V&&_.wb(a.V,4)};_.Qdc=function(a){a.Kb=a.Rd};_.Rdc=function(a,b){a.ma=new _.YH(1>b?1:b,3E5,.1);a.H.setInterval(a.ma.Xa())};
_.bI.prototype.log=function(a){a=a.clone();var b=this.le++;_.u(a,21,b);this.Ia&&_.u(a,26,this.Ia);if(!_.y(a,1)){b=a;var c=Date.now().toString();_.u(b,1,c)}_.mj(a,15)||_.u(a,15,60*(new Date).getTimezoneOffset());this.V&&(b=this.V.clone(),_.F(a,16,b));for(;1E3<=this.O.length;)this.O.shift(),++this.ta;this.O.push(a);this.dispatchEvent(new Sdc(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)Tdc(this);else{var d=Date.now();if(this.Mc>d&&this.ob<d)b&&b("throttled");else{var e=Idc(Hdc(Gdc(this.ka.clone()),this.O),this.ta);d={};var f=this.jc();f&&(d.Authorization=f);var h=Odc(this);this.Ga&&(d["X-Goog-AuthUser"]=this.Ga,h=_.Si(h,"authuser",this.Ga));this.$a&&(d["X-Goog-PageId"]=this.$a,h=_.Si(h,"pageId",this.$a));if(f&&this.Dc===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.Gc(),l;this.Ba&&this.Ba.Gu(k.length)&&(l=this.Ba.yac(k));var p={url:h,body:k,rnb:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},q=function(w){c.ma.reset();c.H.setInterval(c.ma.Xa());if(w){var A=null;try{var B=JSON.parse(w.replace(")]}'\n",""));A=new Kdc(B)}catch(E){}A&&(w=Number(_.bna(A,1,"-1")),0<w&&(c.ob=Date.now(),c.Mc=c.ob+w),A=_.Aj(A,Mdc))&&(A=_.Dj(A,1,-1),-1!=A&&(c.Qb||_.Rdc(c,A)))}a&&a()},r=
function(w){var A=_.zb(e,_.$H,3);_.ZH(c.ma);c.H.setInterval(c.ma.Xa());401===w&&f&&(c.Dc=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.yd(p,q,r)};l?l.then(function(w){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=w;p.rnb=2;v()},function(){v()}):v()}}}};_.bI.prototype.Ta=function(){this.ha||(this.Kb&&Tdc(this),this.Gb&&Udc(this),this.flush())};
var Tdc=function(a){Vdc(a,32,10,function(b,c){b=_.Si(b,"format","json");b=_.Jf().navigator.sendBeacon(b,c.Gc());a.kb&&!b&&(a.kb=!1);return b})},Udc=function(a){Vdc(a,6,5,function(b,c){b=_.Qi(b,"format","base64json","p",_.lj(c.Gc(),3));if(15360<b.length)return!1;_.Xg(new Image,b);return!0})},Vdc=function(a,b,c,d){if(0!==a.O.length){var e=_.dma(Odc(a),"format");e=_.Qi(e,"auth",a.jc(),"authuser",a.Ga||"0");for(var f=0;f<c&&a.O.length;++f){var h=a.O.slice(0,b),k=Hdc(Gdc(a.ka.clone()),h);0===f&&Idc(k,
a.ta);if(!d(e,k))break;a.O=a.O.slice(h.length)}a.H.enabled&&a.H.stop();a.ta=0}},Sdc=function(){_.pi.call(this,"event-logged",void 0)};_.J(Sdc,_.pi);

_.t();

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

var Wdc=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],G=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var M=E^A&(B^E);var Q=1518500249}else M=A^B^E,Q=1859775393;else 60>w?(M=A&B|E&(A|B),Q=2400959708):(M=A^B^E,Q=3395469782);M=((r<<5|r>>>27)&4294967295)+
M+G+Q+v[w]&4294967295;G=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]+G&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}}},Xdc=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("cf`"+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("df`"+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 Zdc=function(a,b,c){var d=String(_.aa.location.href);return d&&a&&b?[b,Ydc(Xdc(d),a,c||null)].join(" "):null},Ydc=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)}),$dc(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=$dc(e.join(" "));a=[c,a];_.qa(h)||a.push(h.join(""));return a.join("_")},$dc=function(a){var b=
Wdc();b.update(a);return b.digestString().toLowerCase()};
var aec={};
var bec,dec;bec=function(a){return!!aec.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.cec=function(a){a=void 0===a?!1:a;var b=_.aa.__SAPISID||_.aa.__APISID||_.aa.__3PSAPISID||_.aa.__OVERRIDE_SID;bec(a)&&(b=b||_.aa.__1PSAPISID);if(b)return!0;var c=new _.HNa(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");bec(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};dec=function(a,b,c,d){(a=_.aa[a])||(a=(new _.HNa(document)).get(b));return a?Zdc(a,c,d):null};
_.eec=function(a,b){b=void 0===b?!1:b;var c=Xdc(String(_.aa.location.href)),d=[];if(_.cec(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.aa.__SAPISID:_.aa.__APISID;e||(e=new _.HNa(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Zdc(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&bec(b)&&((b=dec("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=dec("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.t();

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

_.fec=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=_.wdc;this.H=""};
_.fec.prototype.build=function(){var a=new _.bI(this.ka,this.La?this.La:_.eec,this.wa,this.ma,this.V,this.W,!1,void 0,void 0,void 0,this.ta?this.ta:void 0);if(this.Ga){var b=this.Ga;_.y(b,1)||_.u(b,1,1);_.F(a.ka,1,b)}if(this.O){b=this.O;var c=_.x(a.ka,_.Cdc,1),d=_.x(c,_.Adc,11);d||(d=new _.Adc);_.u(d,7,b);_.F(c,11,d);_.y(c,1)||_.u(c,1,1);_.F(a.ka,1,c)}this.ha&&(a.Ba=this.ha);this.H&&(a.Ia=this.H);this.Ba&&_.Pdc(a,this.Ba);this.Pa&&(b=this.Pa,a.V||(a.V=new _.zdc),_.rj(a.V,2,b));this.Ia&&(b=this.Ia,
a.Qb=!0,_.Rdc(a,b));return a};

_.t();

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

_.gec=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.hec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null};_.hec.prototype.NA=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.Gc());b(a);return new _.Sh(function(d){c(d,function(){d()})}.bind(this))};
_.iec=function(a){var b;this.O=(b=void 0===b?!1:b)?null:a;this.H=b?a:null;this.O&&_.Qdc(this.O)};_.iec.prototype.NA=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.Gc());b(a);c()};

_.t();

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


_.t();

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

var jec;jec=[1];_.cI=function(a){_.I.call(this,a,-1,jec)};_.J(_.cI,_.I);_.cI.prototype.H=function(){return _.me(this,1)};_.kec=function(a,b){return _.rj(a,1,b)};_.dI=function(a){_.I.call(this,a)};_.J(_.dI,_.I);_.g=_.dI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.getState=function(){return _.y(this,5)};_.g.Jd=function(a){return _.u(this,5,a)};
_.g.wt=function(){return _.mj(this,5)};_.lec=function(a){_.I.call(this,a)};_.J(_.lec,_.I);_.lec.prototype.H=function(){return _.y(this,1)};_.lec.prototype.Cb=function(){return _.y(this,2)};_.lec.prototype.Cc=function(a){return _.u(this,2,a)};_.lec.prototype.V=function(){return _.y(this,3)};_.nec=function(a){_.I.call(this,a,-1,mec)};_.J(_.nec,_.I);_.nec.prototype.H=function(){return _.me(this,1)};var mec=[1];
_.pec=function(a){_.I.call(this,a,-1,oec)};_.J(_.pec,_.I);_.pec.prototype.H=function(){return _.zb(this,_.lec,1)};var oec=[1];
_.rec=function(a){_.I.call(this,a,-1,qec)};_.J(_.rec,_.I);_.rec.prototype.H=function(){return _.zb(this,_.pec,1)};var qec=[1];
_.sec=function(a){_.I.call(this,a)};_.J(_.sec,_.I);_.sec.prototype.V=function(){return _.x(this,_.rec,1)};_.sec.prototype.H=function(){return _.x(this,_.nec,2)};
_.eI=function(a){_.I.call(this,a,-1,tec)};_.J(_.eI,_.I);_.g=_.eI.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.zd=function(){return _.zb(this,_.Kk,2)};_.g.fB=function(a){return _.tj(this,2,a)};_.g.$g=function(a,b){return _.yj(this,2,a,_.Kk,b)};_.g.Yj=function(){return _.y(this,3)};_.g.Rl=function(){return _.P(this,5,!0)};_.g.R6=function(){return _.x(this,_.sec,7)};_.g.rta=function(){return _.N(this,8)};_.g.Wf=function(){return _.y(this,17)};
_.g.RP=function(a){return _.u(this,17,a)};_.g.Xe=function(){return _.y(this,12)};_.g.mi=function(a){return _.u(this,12,a)};_.g.$n=function(){return _.y(this,15)};_.g.$ka=function(){return _.me(this,18)};var tec=[2,14,18];_.eI.prototype.Tb="eO39Zd";

_.t();

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

var uec=function(a){_.I.call(this,a)};_.J(uec,_.I);uec.prototype.getEmail=function(){return _.z(this,3,"")};uec.prototype.wq=function(){return _.mj(this,3)};_.fI=function(a){return _.x(a,uec,36,1)};

_.t();

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


_.t();

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

_.gI=function(a,b){return _.u(a,b,_.Zma)};_.vec=function(a){if(_.Qma)return _.aa.atob(a);var b="";_.Sma(a,function(c){b+=String.fromCharCode(c)});return b};_.hI=function(a,b,c,d,e,f,h){_.bI.call(this,a,_.eec,b,_.wdc,c,d,e,void 0,f,h)};_.J(_.hI,_.bI);

_.t();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var wec;_.iI=function(a,b,c){_.u(b,c,a.W())};wec=[3,42];_.xec=function(a){_.I.call(this,a,-1,wec)};_.J(_.xec,_.I);_.xec.prototype.getMimeType=function(){return _.y(this,27)};var yec=function(a,b){if(b&&a in b)return a;var c=_.ZFa();return c?(c=c.toLowerCase(),a=c+_.Dja(a),void 0===b||a in b?a:null):null};
var zec=function(a){_.pi.call(this,"visibilitychange");this.hidden=a};_.J(zec,_.pi);
_.Aec=function(a){_.yi.call(this);this.qd=a||_.Cc();if(this.Sz=this.eub())this.H=_.Ze(this.qd.Xb(),this.Sz,(0,_.K)(this.Abb,this))};_.ig(_.Aec,_.yi);_.g=_.Aec.prototype;_.g.eub=_.Sda(function(){var a=this.Gu(),b="hidden"!=this.UAa();if(a){var c;b?c=((_.ZFa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.UAa=_.Sda(function(){return yec("hidden",this.qd.Xb())});_.g.Xvb=_.Sda(function(){return yec("visibilityState",this.qd.Xb())});_.g.Gu=function(){return!!this.UAa()};
_.g.OB=function(){return!!this.qd.Xb()[this.UAa()]};_.g.Abb=function(){var a=this.Gu()?this.qd.Xb()[this.Xvb()]:null;a=new zec(this.OB(),a);this.dispatchEvent(a)};_.g.Ya=function(){_.wi(this.H);_.Aec.ub.Ya.call(this)};

_.t();

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

/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Bec=function(a,b,c,d,e,f){var h=new _.$i(null,void 0);a&&h.Pr(a);b&&_.zma(h,b);c&&h.Nn(c);d&&h.RA(d);e&&h.Ai(e);f&&_.aj(h,f);return h};_.Cec=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 _.Sh(function(b){var c=a.length,d=[];if(c)for(var e=function(k,l,p){c--;d[k]=l?{U9:!0,value:p}:{U9:!1,reason:p};0==c&&b(d)},f=0,h;f<a.length;f++)h=a[f],_.oka(h,_.gb(e,f,!0),_.gb(e,f,!1));else b(d)})};
_.kI=function(a,b,c){_.L.call(this);this.Ym=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.J(_.kI,_.L);_.g=_.kI.prototype;_.g.qe=function(a){this.W=arguments;this.H||this.V?this.O=!0:Dec(this)};_.g.stop=function(){this.H&&(_.Ci(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,Dec(this))};_.g.Ya=function(){_.L.prototype.Ya.call(this);this.stop()};
var Dec=function(a){a.H=_.Ai(function(){a.H=null;a.O&&!a.V&&(a.O=!1,Dec(a))},a.ha);var b=a.W;a.W=null;a.Ym.apply(null,b)};

_.t();

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

var Eec=function(a){_.I.call(this,a)},Jec;_.J(Eec,_.I);var Fec=function(a){_.I.call(this,a)};_.J(Fec,_.I);_.lI=function(a){_.I.call(this,a)};_.J(_.lI,_.I);_.lI.prototype.k5=function(a){_.u(this,3,a)};_.lI.prototype.Jl=function(a){return _.F(this,5,a)};_.lI.prototype.getMimeType=function(){return _.y(this,7)};var Gec=[2],Hec=function(a){_.I.call(this,a,-1,Gec)};_.J(Hec,_.I);var Iec=function(a){_.I.call(this,a)};_.J(Iec,_.I);Jec=function(a){this.H=a};_.Kec=function(a){this.Ld=a};
_.Kec.prototype.getId=function(){return this.Ld};var Lec=function(a){_.I.call(this,a)};_.J(Lec,_.I);Lec.prototype.lj=function(){return _.y(this,1)};var Mec=function(a){_.I.call(this,a)};_.J(Mec,_.I);
var Oec=function(){this.H=this.W=!1;this.Oo=null;for(var a=this.V=this.O=0;a<_.uBa.length;a++){var b=_.uBa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.W=!0;Nec(this,b);break}}},Nec=function(a,b){a.Oo=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.H=!0;a.Oo.onDisconnect.addListener(function(){a.H=!1});document.addEventListener("mousemove",function(c){a.O=c.clientX;a.V=c.clientY})};
Oec.prototype.NA=function(a){if(this.W&&this.H){var b=_.x(a,_.hc,2)||new _.hc,c=_.x(a,_.Do,5)||new _.Do,d=_.x(a,_.lI,3)||new _.lI;a=_.zb(a,_.qo,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.Oo.postMessage({detail:{impression:e.value.Gc(),session_info:b.Gc(),session_invariants:c.Gc(),client_info:d.Gc()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.O,clientY:this.V}}))}};
var Pec=function(){_.wo.call(this)};_.J(Pec,_.wo);Pec.prototype.Pv=function(){return 1==_.y(_.x(this.H,Eec,7),1)};var Qec=new _.so("high_frequency_builder");
var Rec=function(a,b,c){a=new _.zi(a);c.Ja(a);var d=new _.kf(c);c.Ja(d);d.listen(a,"tick",b);a.start()};
var Sec=function(){_.wo.call(this)};_.J(Sec,_.wo);var Tec=function(a,b,c){var d=1E3*Date.now();if(0==b){b=new _.ko;var e=new _.gza;e=_.u(e,1,d);_.F(b,1,e);_.u(b,3,1);_.F(a.H,8,b);_.u(a.H,12,c);_.u(a.H,13,c);_.u(a.H,4,d);_.u(a.H,3,c)}else 1==b&&(b=new _.ko,e=new _.hza,d=_.u(e,1,d),_.F(b,2,d),_.u(b,3,2),_.F(a.H,8,b),_.u(a.H,12,c),_.u(a.H,3,c));return a},Uec=new _.so("system_builder");
var Vec=function(a,b){_.L.call(this);this.O=a;this.H=new _.Aec(b);this.Ja(this.H);this.Db=new _.kf(this);this.Ja(this.Db);this.H.Gu()&&this.Db.listen(this.H,"visibilitychange",this.V)};_.J(Vec,_.L);Vec.prototype.V=function(){if(this.O.SP()){var a=this.H.OB()?102001:102E3;a=this.O.iG(a,0);this.O.Zm(a)}};
var Wec=function(a,b,c){c=void 0===c?!1:c;_.L.call(this);this.H=a;this.O=b;this.Ja(this.O);this.W=c;this.V=null};_.J(Wec,_.L);_.g=Wec.prototype;_.g.Zm=function(a){var b=this.H;_.u(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.qe();return new Jec(a)};_.g.iG=function(a,b){a=Tec(Xec(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.RL=function(){return this.H.O};
_.g.Kw=function(a){var b=this.H,c=_.xo(a,Uec),d=b.ha++,e=_.x(_.x(c.H,_.ko,8),_.hza,2),f=1E3*Date.now();_.u(e,2,f);_.u(c.H,13,d);b.ka.remove(_.y(a.H,12))};_.g.A_=function(){var a=this.O;if(!a.ha||a.H.V){var b=Yec(a.H,691).build();b=Zec(a.H,[b]);a.ka.NA(b)}a.W();this.H.ma=!1;this.V&&(_.da(this.V),this.V=null)};_.g.B_=function(){var a=this.H,b=Yec(a,716);$ec(a,b);b=b.build();a.H.add(b);a.wa=!0;a.ma=!0;this.O.initialize();this.O.O.qe();this.W&&(this.V=new Vec(this))};_.g.S6=function(){this.O.W();return _.jI(Array.from(this.O.V)).then()};
_.g.SP=function(){var a=this.H;return a.wa&&a.ma&&!0};
var afc=function(a,b,c,d,e){_.L.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};_.J(afc,_.L);afc.prototype.initialize=function(){Rec(this.ma,this.O.qe,this.O);Rec(36E5,this.wa,this)};afc.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=bfc(this.H),c=this.ta.NA(b);c&&(_.Zh(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
afc.prototype.wa=function(){var a=this.H,b=Yec(a,1153).build();a.H.add(b);this.O.qe()};
var cfc=function(a){_.L.call(this);this.H=a;this.Ja(this.H)};_.J(cfc,_.L);_.g=cfc.prototype;_.g.Zm=function(a){a=this.H.Zm(a);this.S6();return a};_.g.iG=function(a,b){return this.H.iG(a,b)};_.g.RL=function(){return this.H.RL()};_.g.Kw=function(a){return this.H.Kw(a)};_.g.A_=function(){return this.H.A_()};_.g.B_=function(){return this.H.B_()};_.g.S6=function(){return this.H.S6()};_.g.SP=function(){return this.H.SP()};
var dfc=function(){};dfc.prototype.kR=function(){return new Pec};
var efc=function(){this.H=[]};efc.prototype.add=function(a){this.H.push(a)};efc.prototype.$b=function(){return this.H.length};
var ffc=function(){this.H={}};ffc.prototype.add=function(a){this.H[_.y(a.H,12)]=a};ffc.prototype.remove=function(a){delete this.H[a]};
var gfc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.ta=this.W=null;this.ka=new ffc;this.H=new efc;this.ma=this.wa=this.V=!1},Xec=function(a,b){a=_.xo((new _.wo).initialize(new _.qo,a.Ba),Uec);_.u(a.H,10,b);return a},bfc=function(a){var b=a.H,c=b.H;b.H=[];return Zec(a,c)},Zec=function(a,b){var c=new _.JAa;var d=a.O.O.clone();c=_.F(c,2,d);d=a.O;(d=d.V?d.V.clone():null)&&_.F(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.x(b[h],_.po,5);if(k&&_.x(k,_.xec,1)){k=_.x(k,_.xec,1);_.mj(k,12)&&
void 0===e&&(e=_.N(k,12));k=_.x(k,Fec,20);if(void 0!==k&&void 0===f){f=new Mec;var l=_.N(k,2);void 0!==l&&_.u(f,2,l);k=_.N(k,1);void 0!==k&&_.u(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&&_.u(d,6,e),void 0!==f&&_.F(d,13,f);(e=d)&&_.F(c,3,e);a=a.O.ha.clone();_.F(c,4,a);_.tj(c,1,b);return c},Yec=function(a,b){var c=Tec(Xec(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 Iec;k=_.u(p,1,k);l=_.u(k,2,_.y(l.H,10));f.push(l)}d=f}716!=b&&(b=a.ta,_.u(c.H,6,a.W),e=new Hec,b=_.u(e,1,b),d&&_.tj(b,2,d),d=_.yo(c),_.F(d,3,b));$ec(a,c);return c},$ec=function(a,b){a.W=_.y(b.H,12);a.ta=_.y(_.x(_.x(b.H,_.ko,8),_.gza,1),1)};
var hfc=function(){};hfc.prototype.kR=function(){return new Sec};
var ifc=function(){this.H=this.O=null};ifc.prototype.build=function(){null==this.H&&(this.H=new _.fAa);_.Ao(this.H,Uec,new hfc);_.Ao(this.H,Qec,new dfc);var a=this.H;var b=this.O;if(!_.mj(_.jfc(b),1)){var c=_.jfc(b),d=new _.vAa;_.F(c,1,d)}b=_.x(_.jfc(b),_.vAa,1);a.H=b;b=_.Wa(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new gfc(this.O,this.H)};
var kfc=function(){this.O=new _.hc;this.V=null;this.ha=new Lec;_.u(this.ha,1,6);this.H=this.W=null};kfc.prototype.setSessionId=function(a){this.O.setSessionId(a);return this};_.lfc=function(a,b){_.u(a.O,2,b);return a};_.mfc=function(a,b){if(null==a.W){a.W=new _.HAa;var c=_.jfc(a);_.F(c,2,a.W)}_.u(a.W,1,b)};_.jfc=function(a){null==a.V&&(a.V=new _.Do);return a.V};_.nfc=function(a){null==a.H&&(a.H=new _.lI);return a.H};
_.ofc=function(){this.H=this.ha=null;this.W=new kfc;this.V=null;this.ka=this.ma=!1;this.O=null};_.pfc=function(a,b){a.ha=b;return a};_.qfc=function(a,b){a.H=b;return a};_.rfc=function(a,b){a.V=b;return a};_.ofc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.sfc=function(a,b){_.u(a.W.O,6,b);return a};
_.ofc.prototype.build=function(){var a=new ifc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new Oec;this.H=this.ha=b}b=new afc(a,this.ha,this.H,this.ma,this.O);a=new Wec(a,b,!1);this.ka&&(a=new cfc(a));return a};

_.t();

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

_.mI=function(a){return _.P(a,84,!1)};
_.tfc=function(a){_.I.call(this,a)};_.J(_.tfc,_.I);
_.nI=function(a){_.I.call(this,a)};_.J(_.nI,_.I);_.nI.prototype.getOptions=function(){return _.x(this,_.tfc,1)};_.nI.prototype.$n=function(){return _.y(this,2)};_.nI.prototype.hd=function(){return _.x(this,_.zf,3)};
_.ufc=function(a){_.I.call(this,a)};_.J(_.ufc,_.I);_.oI=[3,4,5,6,7,8,9,10];
_.vfc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
var yfc;_.wfc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.xfc=_.db(_.wfc);yfc={};_.zfc=(yfc[0]="UNSPECIFIED_FEEDBACK",yfc[1]="IMPLICIT_REJECT",yfc[2]="NOT_HELPFUL_RIGHT_NOW",yfc);
var pI,Bfc;pI={};_.Afc=(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);Bfc={};_.Cfc=(Bfc[1]="asc",Bfc[2]="desc",Bfc);
var Dfc,Ffc;Dfc={};_.Efc=(Dfc[1]="0",Dfc[2]="1",Dfc[3]="2",Dfc);Ffc={};_.Gfc=(Ffc[1]="asc",Ffc[2]="desc",Ffc);
_.Hfc=new _.so("drive_dataservice_builder");
/*

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

_.t();

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


_.t();

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


_.t();

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

_.qI=function(a){_.I.call(this,a,-1,Ufc)};_.J(_.qI,_.I);_.qI.prototype.qc=function(){return _.y(this,2)};_.rI=function(a,b){return _.u(a,2,b)};_.g=_.qI.prototype;_.g.Vk=function(){return _.P(this,3,!1)};_.g.getItem=function(){return _.x(this,_.Kk,4)};_.g.setItem=function(a){return _.F(this,4,a)};_.g.uc=function(){return _.y(this,7)};_.g.Wka=function(){return _.y(this,13)};_.g.zJa=function(a){_.u(this,13,a)};var Ufc=[8,17];

_.t();

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

var Vfc;Vfc="Y Z E P T G M K  m u n".split(" ");_.Wfc=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<Vfc.length;f++){var h=Vfc[f];e=_.mwa[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};_.Xfc=function(a){return _.ee().get(a,16,void 0)};

_.t();

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

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

_.t();

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

var $fc;_.vI=function(a){if(a instanceof _.Pc)return a;if(_.sI(a)){if(a=_.bda(a))return a}else a="string"===typeof a?_.WEa(a):_.WEa("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};_.Yfc=function(a){var b=a.Wj();a=a.gG();return 15===b||32===b||33===b||401===a};_.Zfc=function(){return _.aa.WorkerGlobalScope&&self instanceof _.aa.WorkerGlobalScope};_.wI=function(a){return _.Dj(a,1,0)};
_.tI=function(a,b){return _.u(a,1,b)};_.uI=function(a,b){return _.u(a,2,b)};$fc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.xI=function(a){_.I.call(this,a,-1,$fc)};_.J(_.xI,_.I);_.g=_.xI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.Af=function(){return _.y(this,3)};_.g.kl=function(a){return _.u(this,3,a)};_.g.fw=function(a){return _.u(this,4,a)};
_.g.Nh=function(){return _.N(this,5)};_.g.Pn=function(a){return _.u(this,5,a)};_.g.getMimeType=function(){return _.y(this,6)};_.g.RE=function(a,b){_.vj(this,8,a,b)};_.g.Ni=function(){return _.y(this,12)};_.g.se=function(){return _.x(this,_.Lf,17)};_.g.lj=function(){return _.y(this,20)};_.g.uc=function(){return _.y(this,21)};_.yI=function(a,b){return _.u(a,16,b)};
_.zI=function(a){_.I.call(this,a,-1,agc)};_.J(_.zI,_.I);_.zI.prototype.vR=function(){return _.Dj(this,2,100)};_.zI.prototype.aP=function(a){return _.u(this,2,a)};_.zI.prototype.se=function(){return _.x(this,_.Lf,6)};_.zI.prototype.uc=function(){return _.y(this,8)};var agc=[5];
_.bgc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
var cgc;cgc={};_.dgc=(cgc[0]="/drive/v2internal",cgc[1]="/drive/v2internal.corp",cgc[2]="/drive/v2internal.scary",cgc[4]="/drive/v2internal.scary",cgc[5]="/drive/v2beta",cgc[6]="/drive/v2.1beta",cgc);
_.egc=new Set([0,1,2,3]);
_.fgc=_.u(new _.xI,15,!0);_.ggc=_.yI(new _.xI,!0);_.hgc=_.yI(new _.xI,!1);
_.igc=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."]]);

_.t();

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

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

_.t();

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

/*

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

_.t();

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

_.AI=function(a,b){return _.u(a,82,b)};_.BI=function(a){return _.u(a,3,!0)};_.pgc=function(a,b){return _.u(a,7,b)};
_.qgc=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
*/
_.CI={d0:"Versions",N7:"Metadata",z6:"Data",RU:"Offline"};_.rgc=new Map([[_.CI.d0,"versionKey"],[_.CI.N7,"k"]]);_.sgc=new Set([1004]);

_.t();

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

_.tgc=function(a){_.I.call(this,a)};_.J(_.tgc,_.I);_.g=_.tgc.prototype;_.g.getKey=function(){return _.y(this,1)};_.g.vt=function(){return _.mj(this,1)};_.g.Xa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Ci=function(){return _.wb(this,2)};_.g.Ng=function(){return _.mj(this,2)};
_.DI=function(a){_.I.call(this,a,-1,ugc)};_.J(_.DI,_.I);_.DI.prototype.dA=function(){return _.y(this,1)};_.DI.prototype.getUrl=function(){return _.y(this,3)};var ugc=[2,4,6];

_.t();

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

/*

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

_.t();

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

var Bgc,Dgc,Fgc;_.ygc=function(a){var b={};_.Ra(a,function(c,d){b[d.toLowerCase()]=c});return b};_.zgc=function(a){return(a=a&&_.ygc(a))&&a["x-guploader-uploadid"]};_.Agc=function(a){return(a=a&&_.ygc(a))&&a["x-google-trace"]};Bgc=[6];_.HI=function(a){_.I.call(this,a,-1,Bgc)};_.J(_.HI,_.I);_.II=function(a,b){return _.u(a,14,b)};
_.Egc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(!_.Cgc(a))return null;e=Dgc(e)||new _.Pc;_.u(e,8,!0);k&&(k=_.aj(new _.$i(k),void 0).toString(),_.u(e,19,k));e.gG()||_.u(e,15,a||f);e.getMessage()||_.Sp(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.y(e,4)||_.Tp(e,d);e.Wj()||(5===f?_.II(e,7):0!==a||d?403===a?_.II(e,22):503===a||429===a?_.II(e,24):(_.wb(e,14),_.u(e,10,1),_.u(e,8,!0)):l||_.II(e,2));e.yda(_.zgc(c));e.oda(_.Agc(c));return e};
Dgc=function(a){if(!_.Ea(a))return null;var b=new _.Pc,c=a.error;if(!c)return _.Tp(b,JSON.stringify(a)),null;_.u(b,15,c.code);_.Sp(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=Fgc[c];d?_.u(b,10,d):c&&!d&&_.u(b,10,2);(a=a.debugInfo)&&_.Tp(b,a);return b};_.Cgc=function(a){return 200===a||204===a||308===a||206===a?!1:!0};
Fgc={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};

_.t();

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

_.Ggc=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,_.Mla)(a)};_.KI=function(a){return _.P(a,5,!1)};_.Hgc=function(a,b){var c=_.x(a.H,_.iza,9);null==c&&(c=new _.iza);var d=_.u(c,5,_.y(b.H,10));_.u(d,2,_.y(b.H,12));_.F(a.H,9,c)};_.Igc=function(a,b){a=_.Fi(a);b=_.Fi(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
_.Jgc=function(a){var b=_.xma(a);if("undefined"==typeof b)throw Error("V");var c=new _.cj(null,void 0);a=_.wma(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.Hma(c,e,f):c.add(e,f)}return c};

_.t();

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

var Kgc,Lgc,Pgc,Tgc,Ugc,Vgc,Wgc,Xgc,ohc,FJ,phc,qhc,xhc,Dhc,Phc,Qgc,lic,nic,pic,ric,Nic,Ric,Sic,Tic,Vic,Xic,bK,dK,$ic,ajc,djc,ejc,fjc,gjc,hjc,ijc,ljc,njc,ojc,Gjc,Kjc,Mjc,Njc,Ojc,Ujc,Vjc,Ehc,dkc,ekc,$jc,fkc,akc,hkc,ikc,okc,nkc,mkc,kkc,lkc,hhc,ihc,rhc,pkc,shc,thc,uhc,vhc,whc,qkc,skc;_.LI=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return function(d){return b.some(function(e){return e(d)})}};
_.MI=function(a,b,c){var d=new _.Pc,e=_.Pka(_.MI);_.u(d,20,e);_.uI(d,a);_.tI(d,b?b:2);c&&_.II(d,c);return d};_.NI=function(a){var b;a instanceof _.Pc?b=new _.Rc(null,a):_.sI(a)?b=a:b=_.aa.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("Cb`"+a);b.stack||(b.stack=_.Pka(_.NI));return b};Kgc=function(a){return 7===a.Wj()||24===a.Lp()&&(a=a.gG(),503===a||429===a)?!0:!1};Lgc=function(a,b){return b?b+"("+a+")":a};
_.OI=function(a,b,c){var d={},e=[];b&&e.push("kind");a.UCb&&e.push("searchResultSource");a.fields.forEach(function(p){if(!_.Mgc.includes(p)){var q=_.hdb.get(p);if(q){var r=_.kdb[p];a.eF&&r&&(q=r);a.anonymous&&(a.eF?(p=_.jdb[p])&&(q=p):(p=_.idb[p])&&(q=p));q.split(",").forEach(function(v){var w=_.Eja(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={s6:f.s6},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.s6=[];l.forEach(function(p){return function(q){p.s6.push(q)}}(f));"owners"==k&&b&&f.s6.push("kind");e.push(Lgc(f.s6.join(","),k))}return Lgc(e.join(","),c)};_.Ngc=function(a){var b=new _.zo;b.append(_.OI(a,!0));return b.toString()};_.Ogc=function(a,b){return a.filter(function(c){return b.includes(c)})};Pgc=function(a){a=a.filter(function(b){return!_.hdb.has(b)});if(a.length)throw Error("dd`"+a.join(", "));};
_.Sgc=function(a){if(a){var b=a.getMimeType();b&&_.dG(a,b.toLowerCase());Qgc(a,_.zb(a,Rgc,58).map(function(c){var d=c.getMimeType();d&&_.u(c,1,d.toLowerCase());return c}))}};Tgc=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;_.fj(b,c,d)}};Ugc=function(a,b){b&&Tgc({openDrive:!!_.P(b,2,!1),reason:_.y(b,1)||0,syncType:_.y(b,3)||0,errorRecovery:!!_.P(b,4,!1)},a)};Vgc=function(a){return 10>a?"0"+a:""+a};
Wgc=function(a){if(_.Za(a))return"\r\n";var b="";_.Ra(a,function(c,d){b+=d+": "+c+"\r\n"});return b};Xgc=function(a){a=_.Sp(_.II(_.tI(new _.Pc,2),39),"Multiple resource key definitions found for itemId "+a);throw _.Vc(a);};
ohc=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 _.pD)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 _.XF)return"find by IDs";if(a instanceof _.Ygc)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.hd(),_.jJ(a)?"quick access item query":_.kJ(a)?"people predict item query":_.mJ(a)?"drive priority query":"item query";if("undefined"!=typeof _.nJ&&a instanceof _.nJ)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 _.Zgc&&a instanceof _.Zgc?"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 _.WF?"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 _.aG?"list suggested workspace items":a instanceof _.cA?"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 _.qD?"update pref":a instanceof _.CJ?"update ws":a instanceof _.PH?
"get account":a instanceof _.cG?"get workspace":a instanceof _.$gc?"list activity":a instanceof _.ahc?"list category metadata":a instanceof _.bhc?"create TD":"undefined"!=typeof _.chc&&a instanceof _.chc?"item export cancel":"undefined"!=typeof _.dhc&&a instanceof _.dhc?"item export status":"undefined"!=typeof _.ehc&&a instanceof _.ehc?"generate cse token":"undefined"!=typeof _.fhc&&a instanceof _.fhc?"get largest change ID":a instanceof _.oD?"list prefs":a instanceof _.DJ?"multipart upload":a instanceof
_.ghc?"list published categories":a instanceof hhc?"init resumable upload":a instanceof ihc?"resumable upload chunk":a instanceof _.jhc?"resumable upload":a instanceof _.bG?"get TD":"undefined"!=typeof _.khc&&a instanceof _.khc?"move TD preflight":a instanceof _.EJ?"list TDs":"undefined"!=typeof _.lhc&&a instanceof _.lhc?"get TD stats":a instanceof _.mhc?"test connection":"undefined"!=typeof _.nhc&&a instanceof _.nhc?"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))};phc=function(a){if(a instanceof _.UI||a instanceof _.DJ||a instanceof _.jhc||a instanceof hhc||a instanceof ihc)return(new _.GJ).Cc(8);throw Error("sf");};qhc=function(a){if(a instanceof _.xI){var b=_.sj(_.wb(a.clone(),1),17);b=_.Cj(b,_.fgc)}else b=!1;b||(a instanceof _.xI?(a=_.sj(_.wb(a.clone(),1),17),b=_.Cj(a,_.ggc)||_.Cj(a,_.hgc)):b=!1);return b?!1:!0};
_.HJ=function(a){return rhc.includes(a.constructor)?qhc(a):!1};
xhc=function(a,b){var c;if(shc.includes(a.constructor))return!0;if(b){if(_.P(b,54,!1)&&thc.includes(a.constructor))return!0;var d=_.IJ(b);if(d&&!_.P(d,7,!1)&&uhc.includes(a.constructor)&&!_.JJ(a)||_.P(b,56,!1)&&_.JJ(a)||_.P(b,57,!1)&&vhc.includes(a.constructor)||!(!_.P(b,53,!1)||thc.includes(a.constructor)||uhc.includes(a.constructor)||_.JJ(a)||vhc.includes(a.constructor)||whc.includes(a.constructor))||(null===(c=_.IJ(b))||void 0===c?0:_.P(c,20,!1))&&a.constructor===_.tJ)return!0}return!1};
Dhc=function(a,b){var c,d={};_.Oe(_.lh(a.getTitle()))||(_.y(a,12)?d.originalFilename=a.getTitle():d.title=a.getTitle());if(a.getMimeType()&&(d.mimeType=a.getMimeType(),a.qc()&&_.Lfa(a.getMimeType())&&b)){var e=b.Ela(),f=b.H(),h={encryptionState:"encrypted"};h.decryptionMetadata={wrappedKey:_.lj(b.V()),kaclsId:null!==(c=b.wa())&&void 0!==c?c:void 0,aes256GcmChunkSize:yhc[e?e.H():0],keyFormat:zhc[f?f.H():0]};d.clientEncryptionDetails=h}_.Ahc(d,_.me(a,3));if(b=a.qc())d.id=b;_.y(a,16)&&(d.embeddingParent=
_.y(a,16));a.E2()&&(d.shortcutDetails={targetId:a.E2()});"number"===typeof _.y(a,26)&&(d.modifiedDate=_.Bhc(_.Chc(_.y(a,26)||0)));return d};_.Ahc=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(_.P(a,89,!1)){if(c&&c.length&&d){c=b.concat(Ehc(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)!==_.ll(d)&&Xgc(h):(a.set(h,_.ll(d)),b.push(d))}f=b}else f=b;f.length&&(f=_.HA(f),f.length&&(e["X-Goog-Drive-Resource-Keys"]=f))}};_.Fhc=function(a){var b=new _.xk;return _.u(b,1,a)};_.Ghc=function(a,b){return _.u(a,7,b)};_.Hhc=function(a,b){return _.u(a,8,b)};
_.Ihc=function(a,b){return _.u(a,11,b)};_.Jhc=function(a,b){return _.u(a,16,b)};_.LJ=function(a){_.I.call(this,a)};_.J(_.LJ,_.I);_.Khc=function(a){_.I.call(this,a)};_.J(_.Khc,_.I);var Rgc=function(a){_.I.call(this,a)};_.J(Rgc,_.I);Rgc.prototype.getMimeType=function(){return _.y(this,1)};Rgc.prototype.getUrl=function(){return _.y(this,2)};_.MJ=function(a){_.I.call(this,a)};_.J(_.MJ,_.I);_.MJ.prototype.Ce=function(){return _.y(this,2)};_.MJ.prototype.lh=function(a){return _.u(this,2,a)};
_.MJ.prototype.yh=function(a){return _.u(this,3,a)};_.Lhc=function(a){_.I.call(this,a)};_.J(_.Lhc,_.I);_.Mhc=function(a,b){return _.u(a,1,b)};_.Nhc=function(a,b){return _.tj(a,2,b)};_.Ohc=function(a,b){return _.tj(a,3,b)};Phc=[2];_.NJ=function(a){_.I.call(this,a,-1,Phc)};_.J(_.NJ,_.I);_.NJ.prototype.Af=function(){return _.y(this,1)};_.NJ.prototype.kl=function(a){return _.u(this,1,a)};_.NJ.prototype.dwa=function(a,b){return _.vj(this,2,a,b)};_.OJ=function(a){_.I.call(this,a)};_.J(_.OJ,_.I);
_.OJ.prototype.Ce=function(){return _.y(this,1)};_.OJ.prototype.lh=function(a){return _.u(this,1,a)};_.OJ.prototype.yh=function(a){return _.u(this,2,a)};_.PJ=function(a,b){return _.rj(a,2,b)};_.Qhc=function(a,b){return _.tj(a,15,b)};_.Rhc=function(a,b){return _.F(a,17,b)};_.Shc=function(a,b){return _.u(a,19,b)};_.Thc=function(a,b){_.u(a,34,b)};_.Uhc=function(a,b){_.F(a,47,b)};_.Vhc=function(a,b){return _.u(a,52,b)};Qgc=function(a,b){_.tj(a,58,b)};_.Whc=function(a,b){return _.u(a,72,b)};
_.QJ=function(a,b){return _.F(a,84,b)};_.Xhc=function(a,b){_.F(a,85,b)};_.Yhc=function(a,b){_.F(a,91,b)};_.Zhc=function(a,b){return _.u(a,92,b)};_.$hc=function(a,b){return _.u(a,93,b)};_.aic=function(a,b){_.F(a,95,b)};_.bic=function(a,b){return _.u(a,136,b)};_.cic=function(a){_.I.call(this,a)};_.J(_.cic,_.I);_.RJ=function(a){return _.P(a,2,!1)};_.dic=function(a){_.I.call(this,a)};_.J(_.dic,_.I);var eic=[3],fic=function(a){_.I.call(this,a,-1,eic)};_.J(fic,_.I);
fic.prototype.xi=function(){var a=_.me(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};fic.prototype.wn=function(a){return _.rj(this,3,a)};var gic=[3],hic=function(a){_.I.call(this,a,-1,gic)};_.J(hic,_.I);hic.prototype.xi=function(){return _.me(this,3)};hic.prototype.wn=function(a){return _.rj(this,3,a)};var iic=[3],jic=function(a){_.I.call(this,a,-1,iic)};_.J(jic,_.I);
jic.prototype.xi=function(){return _.me(this,3)};jic.prototype.wn=function(a){return _.rj(this,3,a)};_.SJ=function(a){_.I.call(this,a)};_.J(_.SJ,_.I);_.SJ.prototype.Xa=function(){return _.y(this,1)};_.SJ.prototype.Hb=function(a){return _.u(this,1,a)};_.SJ.prototype.Ci=function(){return _.wb(this,1)};_.SJ.prototype.Ng=function(){return _.mj(this,1)};_.TJ=function(a){return _.pj(a,45,1)};_.jJ=function(a){return _.P(a,47,!1)};_.kJ=function(a){return _.P(a,49,!1)};_.mJ=function(a){return _.P(a,52,!1)};
_.UJ=function(a){return _.z(a,2,"")};_.IJ=function(a){return _.x(a,_.dic,4)};_.kic=function(a,b){return _.rj(a,27,b)};_.VJ=function(a){return _.pj(a,39,0)};_.WJ=function(a){return _.P(a,40,!1)};_.Bhc=function(a){return _.ot.prototype.mP.call(a,!0)+"T"+_.kh(a.getHours(),2)+":"+_.kh(a.getMinutes(),2)+":"+_.kh(a.getSeconds(),2)+a.$$()};lic=function(a,b){return _.ldc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};
_.mic=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.XH(c,"deleting object store "+b);}};nic=function(){var a=new _.ofc;a.O=12E4;a.ma=!0;return a};_.oic=function(a){_.I.call(this,a)};_.J(_.oic,_.I);pic=[3,4,10,18,19,28];_.UI=function(a){_.I.call(this,a,-1,pic)};_.J(_.UI,_.I);_.g=_.UI.prototype;_.g.getMimeType=function(){return _.y(this,1)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.RE=function(a,b){_.vj(this,3,a,b)};
_.g.se=function(){return _.x(this,_.Lf,7)};_.g.kj=function(){return _.y(this,9)};_.g.uc=function(){return _.y(this,14)};_.g.Xz=function(){return _.x(this,_.oic,15)};_.g.E2=function(){return _.y(this,21)};_.g.qc=function(){return _.y(this,23)};_.g.Wi=function(){return _.y(this,33)};_.XJ=function(a,b){return _.u(a,1,b)};_.YJ=function(a,b){return _.rj(a,3,b)};_.qic=function(a,b){return _.u(a,12,b)};_.YI=function(a){_.I.call(this,a)};_.J(_.YI,_.I);_.YI.prototype.getId=function(){return _.y(this,1)};
_.YI.prototype.Nb=function(a){return _.u(this,1,a)};_.YI.prototype.se=function(){return _.x(this,_.Lf,3)};_.aJ=function(a){_.I.call(this,a)};_.J(_.aJ,_.I);_.aJ.prototype.getId=function(){return _.y(this,1)};_.aJ.prototype.Nb=function(a){return _.u(this,1,a)};_.aJ.prototype.se=function(){return _.x(this,_.Lf,2)};ric=[7,8];_.BJ=function(a){_.I.call(this,a,-1,ric)};_.J(_.BJ,_.I);_.g=_.BJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.se=function(){return _.x(this,_.Lf,4)};_.EJ=function(a){_.I.call(this,a)};_.J(_.EJ,_.I);_.EJ.prototype.getOptions=function(){return _.x(this,_.tfc,1)};_.EJ.prototype.$n=function(){return _.y(this,2)};_.EJ.prototype.hd=function(){return _.x(this,_.RH,3)};var sic=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}},tic=null,uic=function(){this.O=0;this.H=[]};_.g=uic.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=vic(this,a);return this.H[a]};_.g.set=function(a,b){a=vic(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.eh=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.Rf=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};
_.g.tf=function(a){return a<this.$b()};_.g.Pq=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var vic=function(a,b){if(b>=a.H.length)throw Error("la");return 40>a.H.length?b:(a.O+Number(b))%40},wic=function(a){_.I.call(this,a)};_.J(wic,_.I);_.xic=function(a){_.I.call(this,a)};_.J(_.xic,_.I);_.xic.prototype.Xe=function(){return _.y(this,1)};_.xic.prototype.mi=function(a){return _.u(this,1,a)};_.xic.prototype.Cb=function(){return _.y(this,4)};
_.xic.prototype.Cc=function(a){return _.u(this,4,a)};var yic=function(a){_.I.call(this,a)};_.J(yic,_.I);yic.prototype.Uo=function(){return _.y(this,5)};var zic=function(a,b){_.u(a,6,b)},Aic=function(a){_.I.call(this,a)};_.J(Aic,_.I);_.g=Aic.prototype;_.g.Ajb=function(a){_.u(this,1,a)};_.g.jRb=function(a){_.u(this,2,a)};_.g.Py=function(){return _.N(this,3)};_.g.Bjb=function(a){_.u(this,3,a)};_.g.OQb=function(a){_.u(this,4,a)};var Bic=function(a){_.I.call(this,a)};_.J(Bic,_.I);
Bic.prototype.Py=function(){return _.N(this,2)};var Cic=function(a,b){return _.u(a,2,b)},Dic=function(a,b){_.u(a,3,b)};Bic.prototype.FB=function(){return _.y(this,6)};var Eic=function(a,b){return _.u(a,8,b)},Fic=function(a){_.I.call(this,a)};_.J(Fic,_.I);var Gic=function(a){_.I.call(this,a)};_.J(Gic,_.I);var Hic=function(a,b){_.u(a,4,b)},Iic=function(a){_.I.call(this,a)};_.J(Iic,_.I);Iic.prototype.hd=function(){return _.x(this,_.xic,1)};Iic.prototype.getState=function(){return _.x(this,yic,2)};
Iic.prototype.Jd=function(a){return _.F(this,2,a)};Iic.prototype.wt=function(){return _.mj(this,2)};var Jic=function(a){_.I.call(this,a)};_.J(Jic,_.I);Jic.prototype.Ij=function(){return _.y(this,1)};Jic.prototype.getEnvironment=function(){return _.y(this,2)};Jic.prototype.setEnvironment=function(a){return _.u(this,2,a)};_.Chc=function(a){var b=new _.lNa;b.setTime(a);return b};
_.Kic=function(){var a=void 0===a?3E3:a;this.O=new _.Tk;this.H=new _.Tk;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.Lic=function(a){var b=a.O.eh();a.V&&b.push({logName:"...",message:"...",level:"...",totalTime:"..."});_.Ba(b,a.H.eh());return b};_.Mic=function(a){var b=[];a=_.Lic(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")};
_.Kic.prototype.info=function(a,b){_.ZJ(this,a,b,"info")};_.Kic.prototype.config=function(a,b){_.ZJ(this,a,b,"config")};_.Kic.prototype.log=function(a,b,c){if(!tic){tic={};for(var d=0,e;e=_.Uka[d];d++)tic[e.value]=e,tic[e.name]=e}_.ZJ(this,a,b,c)};_.ZJ=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.Uk(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)};_.Mgc=[42,1005,20,50,18,1003,1002];
_.$J=function(a){_.I.call(this,a)};_.J(_.$J,_.I);_.$J.prototype.getId=function(){return _.y(this,1)};_.$J.prototype.Nb=function(a){return _.u(this,1,a)};_.$J.prototype.getMimeType=function(){return _.y(this,2)};Nic=[22];_.GJ=function(a){_.I.call(this,a,-1,Nic)};_.J(_.GJ,_.I);_.g=_.GJ.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.getItem=function(){return _.x(this,_.Kk,2)};_.g.setItem=function(a){return _.F(this,2,a)};
_.g.Yj=function(){return _.y(this,3)};_.g.DB=function(){return _.x(this,_.$J,4)};_.g.qc=function(){return _.y(this,5)};_.Oic=function(a,b){return _.u(a,5,b)};_.g=_.GJ.prototype;_.g.jK=function(){return _.y(this,7)};_.g.yda=function(a){return _.u(this,7,a)};_.g.ega=function(a){_.u(this,9,a)};_.g.YNa=function(a){_.u(this,10,a)};_.g.cN=function(){return _.y(this,16)};_.g.oda=function(a){return _.u(this,16,a)};
var Pic=function(a){var b=new _.$h;a.listen("loadend",_.gb(function(c,d){var e=d.ak(),f=d.getError();null==e||f?c.Hd(f):c.callback(e);d.dispose()},b,a));return b},Qic=function(a){_.pi.call(this,a);this.connectionState=_.bxb.get(a)};_.J(Qic,_.pi);_.RI=function(a){_.I.call(this,a)};_.J(_.RI,_.I);_.RI.prototype.Gh=function(){return _.y(this,1)};_.RI.prototype.qc=function(){return _.y(this,2)};_.RI.prototype.se=function(){return _.x(this,_.Lf,4)};_.PI=function(a){_.I.call(this,a)};_.J(_.PI,_.I);
_.PI.prototype.qc=function(){return _.y(this,1)};_.QI=function(a){_.I.call(this,a)};_.J(_.QI,_.I);_.QI.prototype.getId=function(){return _.y(this,1)};_.QI.prototype.Nb=function(a){return _.u(this,1,a)};_.QI.prototype.Zj=function(){return _.y(this,2)};_.QI.prototype.H=function(a){_.u(this,4,a)};Ric=[3,7];_.SI=function(a){_.I.call(this,a,-1,Ric)};_.J(_.SI,_.I);_.g=_.SI.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.RE=function(a,b){_.vj(this,3,a,b)};_.g.se=function(){return _.x(this,_.Lf,5)};_.$I=function(a){_.I.call(this,a)};_.J(_.$I,_.I);_.$I.prototype.qc=function(){return _.y(this,1)};_.$I.prototype.se=function(){return _.x(this,_.Lf,3)};_.dJ=function(a){_.I.call(this,a)};_.J(_.dJ,_.I);_.dJ.prototype.se=function(){return _.x(this,_.Lf,1)};_.vJ=function(a){_.I.call(this,a)};_.J(_.vJ,_.I);_.g=_.vJ.prototype;
_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.Ug=function(a){return _.u(this,2,a)};_.g.se=function(){return _.x(this,_.Lf,3)};_.xJ=function(a){_.I.call(this,a)};_.J(_.xJ,_.I);_.g=_.xJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getParent=function(){return _.y(this,2)};_.g.Ug=function(a){return _.u(this,2,a)};_.g.se=function(){return _.x(this,_.Lf,3)};
_.AJ=function(a){_.I.call(this,a)};_.J(_.AJ,_.I);_.AJ.prototype.qc=function(){return _.y(this,1)};_.AJ.prototype.se=function(){return _.x(this,_.Lf,4)};_.VI=function(a){_.I.call(this,a)};_.J(_.VI,_.I);_.VI.prototype.getTitle=function(){return _.y(this,1)};_.VI.prototype.setTitle=function(a){return _.u(this,1,a)};_.VI.prototype.se=function(){return _.x(this,_.Lf,2)};_.bJ=function(a){_.I.call(this,a)};_.J(_.bJ,_.I);_.bJ.prototype.getId=function(){return _.y(this,1)};
_.bJ.prototype.Nb=function(a){return _.u(this,1,a)};_.bJ.prototype.se=function(){return _.x(this,_.Lf,3)};_.CJ=function(a){_.I.call(this,a)};_.J(_.CJ,_.I);_.g=_.CJ.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.getState=function(){return _.y(this,3)};_.g.Jd=function(a){return _.u(this,3,a)};_.g.wt=function(){return _.mj(this,3)};
_.g.se=function(){return _.x(this,_.Lf,5)};Sic=[2,3];_.TI=function(a){_.I.call(this,a,-1,Sic)};_.J(_.TI,_.I);_.TI.prototype.uc=function(){return _.y(this,1)};_.TI.prototype.se=function(){return _.x(this,_.Lf,4)};Tic=[3,4];_.oJ=function(a){_.I.call(this,a,-1,Tic)};_.J(_.oJ,_.I);_.oJ.prototype.getType=function(){return _.y(this,1)};_.oJ.prototype.se=function(){return _.x(this,_.Lf,2)};_.Uic=function(a){_.I.call(this,a)};_.J(_.Uic,_.I);_.g=_.Uic.prototype;_.g.getKey=function(){return _.y(this,1)};
_.g.vt=function(){return _.mj(this,1)};_.g.Xa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Ci=function(){return _.wb(this,2)};_.g.Ng=function(){return _.mj(this,2)};_.g.Af=function(){return _.y(this,3)};_.g.kl=function(a){return _.u(this,3,a)};_.g.getType=function(){return _.y(this,4)};Vic=[1];_.Wic=function(a){_.I.call(this,a,-1,Vic)};_.J(_.Wic,_.I);_.rJ=function(a){_.I.call(this,a)};_.J(_.rJ,_.I);_.rJ.prototype.H=function(a){_.u(this,4,a)};Xic=[1];
_.tJ=function(a){_.I.call(this,a,-1,Xic)};_.J(_.tJ,_.I);_.tJ.prototype.nm=function(){return _.me(this,1)};_.Yic=function(a){this.O=new Set;this.H=[].concat(_.bc(_.me(a,27)));this.initialize(a)};
_.Yic.prototype.initialize=function(a){var b=_.Ogc(this.H,_.me(a,28));if(0<b.length)throw Error("ff`"+b.join(","));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();Pgc(this.H)};_.aK=function(a){return[].concat(_.bc(a.H))};_.Zic={1:"default",2:"teamDrive",3:"default,allTeamDrives"};
bK=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.cK=function(a,b,c){0!==b.length&&(a.DI.length&&a.append(" "+(c||"and")+" "),a.append(b))};dK=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(bK(c));e.push("in");e.push(b);_.cK(a,e.join(" "))}};_.eK=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());_.cK(a,e.join(" "),d)}};
$ic=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.cK(a,d.join(""))}};ajc=function(a,b){b=_.me(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(bK(b));_.cK(a,c.join(" "))}};_.bjc=function(a){a=_.zb(a,_.SJ,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Xa());return b.join(",")};_.cjc=function(a){a=a.iA();return null==a||0==a.length?"":a.map(function(b){b=b.LR();if(0==b)throw Error("gf");return _.xfc[b]}).join(",")};
djc=function(a,b){if(a.length){var c=new _.zo;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(bK(d.Xa()));_.cK(c,e.join(" "),"or")}return c.toString()}return""};ejc=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 bK(e.Xa())});d.push(a.join(", "));return d.join(" ")}return""};
fjc=function(a){if(_.N(a,2))return"any";switch(a.Xa()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};gjc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};hjc=function(a,b,c){if(null!=_.y(c,2)){var d=gjc(_.y(c,1));c=bK(_.Bhc(_.Chc(_.y(c,2)||0)));_.cK(a,[b,d,c].join(" "))}};
ijc=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""};
_.jjc=function(a,b){b=void 0===b?!1:b;for(var c=new _.zo,d=_.zb(a,_.jl,4),e=0;e<d.length;e++){var f=d[e],h=f.Xa();if(h){var k=_.y(f,1),l=_.P(f,3,!1),p=[];l&&1==k&&p.push("not");p.push("title");p.push(1==k?"contains":l?"!=":"=");p.push(bK(h));_.cK(c,p.join(" "))}}for(var q=_.zb(a,_.il,5),r=0;r<q.length;r++){var v=q[r],w=v.Xa();if(w){var A=[];_.P(v,2,!1)&&A.push("not");A.push("fullText");A.push("contains");A.push(bK(w));_.cK(c,A.join(" "))}}var B=_.ol(a);if(B&&0!=B.length){for(var E=[],G=[],M=[],Q=
[],S=[],Y=[],ba=0;ba<B.length;ba++){var ca=B[ba];ca.Xa()&&(1===_.pj(ca,3,0)?_.N(ca,4)?G.push(ca):E.push(ca):_.N(ca,4)?_.P(ca,2,!1)?Y.push(ca):S.push(ca):_.P(ca,2,!1)?Q.push(ca):M.push(ca))}var pa=djc(E,!1),sa=djc(G,!0),Ca=ejc(M,!1,!1),La=ejc(Q,!0,!1),fb=ejc(S,!1,!0),Yb=ejc(Y,!0,!0),ac=new _.zo;if(Ca||fb||pa||sa)_.cK(ac,Ca,"or"),_.cK(ac,fb,"or"),_.cK(ac,pa,"or"),_.cK(ac,sa,"or");ac.DI.length&&_.cK(c,"("+ac.toString()+")","and");var Nc=new _.zo;if(La||Yb)_.cK(Nc,La,"and"),_.cK(Nc,Yb,"and");Nc.DI.length&&
_.cK(c,"("+Nc.toString()+")","and")}for(var xc=_.zb(a,_.gl,7),Eb=0;Eb<xc.length;Eb++)hjc(c,"modifiedDate",xc[Eb]);for(var Ce=_.zb(a,_.gl,8),Sd=0;Sd<Ce.length;Sd++)hjc(c,"lastViewedByMeDate",Ce[Sd]);_.eK(c,"trashed",a.Nh());_.eK(c,"explicitlyTrashed",_.N(a,17));_.eK(c,"starred",_.N(a,10));_.eK(c,"hidden",_.N(a,11));for(var Ch=_.pl(a),re=0;re<Ch.length;re++){var Ob=Ch[re];dK(c,"parents",Ob.Xa(),_.P(Ob,2,!1))}var hf=b;hf=void 0===hf?!1:hf;for(var bk=_.zb(a,_.Bf,13),Of=0;Of<bk.length;Of++){var Yi=bk[Of];
if(hf){if(Yi.Xa()){var Bi=[],im=[];_.P(Yi,2,!1)?Bi.push("not ("):Bi.push("(");im.push(bK(Yi.Xa()));im.push("in");im.push("owners");im.push("or");im.push("creator");im.push("=");im.push(bK(Yi.Xa()));Bi.push(im.join(" "));Bi.push(")");_.cK(c,Bi.join(""))}}else dK(c,"owners",Yi.Xa(),_.P(Yi,2,!1))}for(var Wo=_.zb(a,_.Bf,14),bh=0;bh<Wo.length;bh++){var Ge=Wo[bh];dK(c,"writers",Ge.Xa(),_.P(Ge,2,!1))}for(var ei=_.zb(a,_.Bf,15),Im=0;Im<ei.length;Im++){var Th=ei[Im];dK(c,"readers",Th.Xa(),_.P(Th,2,!1))}_.N(a,
16)&&_.cK(c,"sharedWithMe");_.eK(c,"unparented",_.N(a,34));for(var Yn=_.zb(a,_.dl,35)||[],Uh=_.m(Yn),Xo=Uh.next();!Xo.done;Xo=Uh.next())dK(c,"ancestors",Xo.value.Xa(),!1);for(var jm=_.zb(a,_.dl,38)||[],Np=_.m(jm),Jm=Np.next();!Jm.done;Jm=Np.next())dK(c,"descendants",Jm.value.Xa(),!1);for(var km=_.zb(a,_.hl,37)||[],oi=_.m(km),Nr=oi.next();!Nr.done;Nr=oi.next())dK(c,"folderFeatures",Nr.value.Xa(),!1);for(var Op=_.me(a,39),Hq=_.m(Op),Or=Hq.next();!Or.done;Or=Hq.next()){var Pp=Or.value,Pr=[];Pr.push("templateData.description");
Pr.push("contains");Pr.push(bK(Pp));_.cK(c,Pr.join(" "))}for(var Zn=_.me(a,40),vk=0;vk<Zn.length;vk++){var wk=[];0==vk&&wk.push("(");wk.push(bK(Zn[vk]));wk.push("in");wk.push("templateData.categories");vk==Zn.length-1&&wk.push(")");_.cK(c,wk.join(" "),0==vk?"and":"or")}var Qc=_.y(a,41);if(null!=Qc){var ln=[];ln.push("templateData.galleryState");ln.push("=");ln.push(bK(_.Efc[Qc]||""));_.cK(c,ln.join(" "))}var Ys=_.y(a,42);if(null!=Ys){var Iq=[];Iq.push("visibility");Iq.push("=");Iq.push(bK(ijc(Ys)));
_.cK(c,Iq.join(" "))}for(var Qr=_.zb(a,_.cl,44),Fu=0;Fu<Qr.length;++Fu){var Rr=Qr[Fu];dK(c,"actionItems",fjc(Rr),_.P(Rr,3,!1))}if(_.mj(a,50)){var Rl=[];Rl.push("pairedDocType");Rl.push(_.P(a,50,!1)?"!=":"=");Rl.push(bK("NONE"));_.cK(c,Rl.join(" "))}dK(c,"workspaceIds",a.Xq(),!1);for(var Yo=_.zb(a,_.el,57),$n=0;$n<Yo.length;$n++){var ao=[];0==$n&&ao.push("(");ao.push(bK(Yo[$n].Xa()));ao.push("in");ao.push("approvals");$n==Yo.length-1&&ao.push(")");_.cK(c,ao.join(" "),0==$n?"and":"or")}if(_.mj(a,58)){var Ox=
a.oq(),tw=Ox.Xa();if(tw){var Qp=[];_.P(Ox,2,!1)&&Qp.push("not");Qp.push("creator");Qp.push("=");Qp.push(bK(tw));_.cK(c,Qp.join(" "))}}var Qz=_.x(a,_.Zoa,59);if(Qz)for(var Gu=_.m(_.zb(Qz,_.Woa,1)),Sr=Gu.next();!Sr.done;Sr=Gu.next()){var Tr=Sr.value;dK(c,"categoryMetadata",Tr.Hm());for(var Zs=_.m(Tr.Xj()),Yk=Zs.next();!Yk.done;Yk=Zs.next()){var Li=Yk.value,lm=_.y(Li,1),Qg=_.Cb(Li,_.fl);if(10==Qg){_.Gj(Li,_.Noa,10,_.fl);var uw=_.N(Li,15);(void 0===uw?0:uw)?_.cK(c,lm+" is null"):_.cK(c,"not ("+lm+" is null)")}else{var Mi=
new _.zo,Zk=void 0;switch(Qg){case 3:Zk=_.Gj(Li,fic,3,_.fl);for(var Hu=_.m(Zk.xi()),$k=Hu.next();!$k.done;$k=Hu.next())_.eK(Mi,lm,$k.value,"or");break;case 14:for(var $s=Zk=_.Gj(Li,_.Goa,14,_.fl),vw=new Map([[1,"="],[2,">"],[3,"<"]]),at=_.m($s.xi()),Iu=at.next();!Iu.done;Iu=at.next()){var Ur=Iu.value,Rp=vw.get(_.y($s,2));if(!Rp)throw Error("hf");_.cK(Mi,[lm,Rp,bK(Ur.getYear()+"-"+Vgc(Ur.getMonth())+"-"+Vgc(Ur.getDay()))].join(" "),"or")}break;case 8:for(var gv=Zk=_.Gj(Li,_.Moa,8,_.fl),hv=new Map([[1,
"="],[2,">"],[3,"<"]]),iv=_.m(gv.xi()),py=iv.next();!py.done;py=iv.next()){var Uw=py.value,tN=hv.get(_.y(gv,2));if(!tN)throw Error("hf");_.cK(Mi,[lm,tN,Uw].join(" "),"or")}break;case 9:for(var zg=Zk=_.Gj(Li,hic,9,_.fl),dr=new Map([[1,"in"]]),lJ=_.m(zg.xi()),uN=lJ.next();!uN.done;uN=lJ.next()){var vN=uN.value,fS=dr.get(_.y(zg,2));if(!fS)throw Error("hf");_.cK(Mi,[vN,fS,lm].join(" "),"or")}break;case 6:for(var qy=Zk=_.Gj(Li,_.Roa,6,_.fl),gZ=new Map([[1,"="]]),wN=_.m(qy.xi()),hZ=wN.next();!hZ.done;hZ=
wN.next()){var iZ=hZ.value,gS=gZ.get(_.y(qy,2));if(!gS)throw Error("hf");_.cK(Mi,[lm,gS,bK(iZ)].join(" "),"or")}break;case 7:for(var aD=Zk=_.Gj(Li,_.Poa,7,_.fl),jZ=new Map([[1,"in"]]),kZ=_.m(aD.xi()),GF=kZ.next();!GF.done;GF=kZ.next()){var LA=GF.value,lZ=jZ.get(_.y(aD,2));if(!lZ)throw Error("hf");_.cK(Mi,[bK(LA),lZ,lm].join(" "),"or")}break;case 4:for(var mZ=Zk=_.Gj(Li,_.Toa,4,_.fl),e7=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),nZ=_.m(mZ.xi()),oZ=nZ.next();!oZ.done;oZ=nZ.next()){var pZ=oZ.value,
f7=e7.get(_.y(mZ,2));if(!f7)throw Error("hf");_.cK(Mi,[lm,f7,bK(pZ)].join(" "),"or")}break;case 5:for(var qZ=Zk=_.Gj(Li,jic,5,_.fl),hha=new Map([[1,"in"]]),Fwb=_.m(qZ.xi()),zXa=Fwb.next();!zXa.done;zXa=Fwb.next()){var AXa=zXa.value,BXa=hha.get(_.y(qZ,2));if(!BXa)throw Error("hf");_.cK(Mi,[bK(AXa),BXa,lm].join(" "),"or")}break;case 12:for(var HF=Zk=_.Gj(Li,_.Koa,12,_.fl),Skc=new Map([[1,"="]]),Gwb=_.m(HF.xi()),hS=Gwb.next();!hS.done;hS=Gwb.next()){var Vw=hS.value,g7=Skc.get(_.y(HF,2));if(!g7)throw Error("hf");
_.cK(Mi,[lm,g7,bK(Vw)].join(" "),"or")}break;case 11:for(var iha=Zk=_.Gj(Li,_.Ioa,11,_.fl),rZ=new Map([[1,"in"]]),Exa=_.m(iha.xi()),Fxa=Exa.next();!Fxa.done;Fxa=Exa.next()){var jha=Fxa.value,Hwb=rZ.get(_.y(iha,2));if(!Hwb)throw Error("hf");_.cK(Mi,[bK(jha),Hwb,lm].join(" "),"or")}}_.N(Li,15)?_.cK(c,"not ("+Mi+")"):_.cK(c,1<Zk.xi().length?"("+Mi+")":""+Mi)}}}null!=_.N(a,60)&&_.eK(c,"linkShareMetadata.securityUpdateEligible",_.N(a,60));var kha=_.N(a,65);if(null!=kha){var Gxa=[];Gxa.push("clientEncryptionDetails.encryptionState");
Gxa.push("=");Gxa.push(bK(kha?"encrypted":"unencrypted"));_.cK(c,Gxa.join(" "))}var Iwb=_.zb(a,_.Bf,68);if(Iwb.length){for(var Jwb=[],Kwb=[],Hxa=_.m(Iwb),CXa=Hxa.next();!CXa.done;CXa=Hxa.next()){var h7=CXa.value,lha="sharedFrom = "+bK(h7.Xa());_.P(h7,2,!1)?Kwb.push(lha):Jwb.push(lha)}$ic(c,Jwb,!1);$ic(c,Kwb,!0)}var i7=_.zb(a,_.Bf,67);if(i7.length){for(var DXa=[],Lwb=[],sZ=_.m(i7),EXa=sZ.next();!EXa.done;EXa=sZ.next()){var Mwb=EXa.value,FXa="sharedTo = "+bK(Mwb.Xa());_.P(Mwb,2,!1)?Lwb.push(FXa):DXa.push(FXa)}$ic(c,
DXa,!1);$ic(c,Lwb,!0)}null!=_.N(a,69)&&_.eK(c,"linkShareMetadata.securityUpdateEnabled",_.N(a,69));null!=_.N(a,72)&&_.eK(c,"canAcceptOwnership",_.N(a,72));if(_.N(a,73)){var GXa=(new _.Df).Hb("application/vnd.google-apps.shortcut");_.eK(c,"impactedByMultiparentingMigration",!0);_.cK(c,ejc([GXa],!1,!1))}1==_.TJ(a)&&ajc(c,a);return c.toString()};
_.kjc=function(a){var b=new _.zo(_.jjc(a));_.P(a,74,!1)?_.cK(b,"isQuickAccessForSharedFilesRequest"):_.jJ(a)?_.cK(b,"isQuickAccessRequest"):_.kJ(a)?_.cK(b,"isPeoplePredictRequest"):_.mJ(a)&&_.cK(b,"isDrivePriorityRequest");var c=a.Kc();if(c){var d=[];d.push("sortBy");d.push(_.Afc[c.getType()]);d.push(_.Gfc[c.Vf()]);_.N(c,3)&&d.push("foldersFirst");_.cK(b,d.join(" "))}_.eK(b,"domainSearch",_.N(a,18));_.eK(b,"offline",_.N(a,19));_.zb(a,_.SJ,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.bjc(a)),
_.cK(b,c.join(" ")));a.iA().length&&(c=[],c.push("spaces"),c.push("contains"),c.push(_.cjc(a)),_.cK(b,c.join(" ")));if(c=_.TJ(a))d=[],d.push("corpora"),d.push("="),d.push(bK(_.Zic[c])),_.cK(b,d.join(" "));_.P(a,66,!0)||_.eK(b,"includeItemsFromAllDrives",_.P(a,66,!0));1!=_.TJ(a)&&ajc(b,a);_.P(a,48,!1)&&_.cK(b,"cachedOnly");return b.toString()};
_.JJ=function(a){if(a instanceof _.nI)a=a.hd();else if(!a)return!1;return a instanceof _.cA||a instanceof _.aG||"undefined"!=typeof _.fK&&a instanceof _.fK||a instanceof _.zf&&(_.jJ(a)||_.kJ(a)||_.mJ(a))};ljc=function(){_.wo.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.J(ljc,_.wo);_.mjc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};njc=function(a,b){a.V||(a.V=b)};ljc.prototype.Aj=function(){_.mjc(this);(0,this.ha)()};ojc=function(a,b){a.ha||(a.ha=b)};
_.gK=function(a){if(!a.O){a.O=new Iic;var b=_.yo(a);_.F(b,56,a.O)}return a.O};ljc.prototype.getState=function(){var a=_.gK(this).getState();a||(a=new yic,_.gK(this).Jd(a));return a};var pjc=function(a,b){var c=new wic;_.u(c,1,b);a=_.yo(a);_.F(a,12,c)};ljc.prototype.ma=function(){var a=_.x(_.gK(this),Aic,4);if(!a){a=new Aic;var b=_.gK(this);_.F(b,4,a)}return a};
var qjc=function(a){var b=_.x(_.gK(a),Bic,8);b||(b=new Bic,a=_.gK(a),_.F(a,8,b));return b},rjc=function(a){var b=_.x(_.gK(a),Gic,19);b||(b=new Gic,a=_.gK(a),_.F(a,19,b));return b},sjc=function(a){_.pi.call(this,"ub");this.H=a};_.J(sjc,_.pi);sjc.prototype.Me=function(){return this.H};_.tjc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.yi.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b?!0:1===a;this.V=b};_.J(_.tjc,_.yi);_.g=_.tjc.prototype;
_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.Hk=function(){return 1===this.connectionState||2===this.connectionState};_.g.Me=function(){return 3===this.connectionState};_.g.get=function(){return this.connectionState};
_.g.update=function(a){if(this.V)return!1;if(this.connectionState!==a||this.H&&1===a){if(2===a)var b=3===this.connectionState?_.XB.SU:_.XB.Aha;else 1===a?(b=_.XB.NL,this.O=!0):3===a&&(b=_.XB.RU);if(b)return b=new Qic(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var ujc=function(a,b){this.userId=a;this.H=b;this.db=null},wjc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return vjc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("lf"))},function(d){return a.handleError(d)})},"readwrite")};ujc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.RCb=b.toJSON(),d)).then(null,function(e){c.handleError(e)})};
var xjc=function(a){return new _.Sh(function(b){var c=new Map;vjc(a,function(d){return lic(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={Qra:f.Qra},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;f.Qra=k;l.then(function(p){return function(q){q&&c.set(p.Qra,new _.JAa(q.RCb))}}(f))}return _.jI([].concat(_.bc(e.values()))).then(function(){return b(c)})})})})},yjc=function(a,b){return vjc(a,
function(c){return c.remove(b)},"readwrite")},vjc=function(a,b,c){c=void 0===c?"readonly":c;return zjc(a).then(function(d){try{var e=_.tdc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f?_.NI(f):void 0)}},function(d){return a.handleError(d)})},zjc=function(a){return a.db?_.Vh(a.db):_.vdc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.mic(c,"OfflineImpressions");b=_.sdc(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("mf"))}).then(function(b){return a.db=b},function(b){return _.Wh(_.NI(b))})};ujc.prototype.handleError=function(a){a||(a=Error("nf"));_.ZJ(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.Vh()};
_.Ajc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.yi.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.J(_.Ajc,_.yi);_.Ajc.prototype.Me=function(){return this.H};_.Ajc.prototype.Jl=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new sjc(a)))};_.Ajc.prototype.lz=function(a){this.O=a};
var Cjc=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Jb=new _.kf(this);this.Jb.listen(b,"ub",function(k){k.Me()||Bjc(h)});this.Jb.listen(c,[_.XB.NL,_.XB.SU],function(){return void Bjc(h)});this.W=e;f.then(function(){return Bjc(h)})};_.J(Cjc,_.yi);Cjc.prototype.NA=function(a){return(a=(this.H.Me()||this.connectionState.Me())&&this.H.O?wjc(this.O,a):this.V.NA(a))?a:void 0};
var Bjc=function(a){return a.H.O?xjc(a.O).then(function(b){b.forEach(function(c,d){a.V.NA(c).then(function(){return Djc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},Djc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("vb");return yjc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
Cjc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var Ejc=function(){};Ejc.prototype.kR=function(){return new ljc};var Fjc=function(){this.H=new Jic};Fjc.prototype.O=function(a){_.F(a,13,this.H)};Fjc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
var Hjc=function(a,b,c,d){this.ha=b;this.connectionState=c;this.Lw=d;this.O=this.H=this.V=null;this.client=_.hK(_.Pfc,_.VJ(a));this.ka=_.y(a,94);this.ma=_.hK(_.Tfc,_.pj(a.Uf(),8,0));this.Uxa=_.hK(_.Qfc,_.pj(a.Uf(),9,2));this.ta=_.P(a,10,!1);this.Fu=_.KI(_.fI(a));this.zDa=_.WJ(a);this.W=Gjc(a);this.buildLabel=a.Mi()};Hjc.prototype.Ij=function(){return this.client};
Gjc=function(a){var b=[].concat(_.bc(_.Mfc.keys())),c=[].concat(_.bc(_.Nfc.keys())),d=_.IJ(a);return b.filter(function(e){return _.Mfc.get(e)(a)}).concat(c.filter(function(e){return d&&_.Nfc.get(e)(d)}))};_.hK=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};Hjc.prototype.Uo=function(a){return null==a?0:a?2:1};var Ijc=function(a){if(a.O)return a.O.H("aU7Ts")};
Hjc.prototype.Cb=function(a){return a instanceof _.eI||"undefined"!=typeof _.iK&&a instanceof _.iK||"undefined"!=typeof _.jK&&a instanceof _.jK||"undefined"!=typeof _.kK&&a instanceof _.kK?a.Cb():"undefined"!=typeof _.lK&&a instanceof _.lK||"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK?a.response?a.response.Cb():null:null};Hjc.prototype.Mi=function(){return this.buildLabel};
var Jjc=function(a){return a.ha.Me()||a.connectionState.Me()?2:1};Hjc.prototype.getEnvironment=function(){return this.Lw};Kjc=function(a,b){this.H=a;var c=new _.uza;_.vza(c,b.W);a=this.H.RL();var d=_.nfc(a);_.F(d,10,c);(c=b.Mi())&&_.mfc(a,c);this.H.B_();this.O=b};
_.Ljc=function(a,b,c){var d=_.xo(a.H.iG(b,c),_.Hfc);pjc(d,Jjc(a.O));b=Ijc(a.O);"boolean"===typeof b&&zic(d.getState(),b);1===c&&njc(d,function(){return void a.H.Kw(d)});ojc(d,function(){var e;var f=null===(e=a.O.V)||void 0===e?void 0:e.Ad();e=d.getState();_.u(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.Ad();h=d.getState();_.u(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.Ad();l=d.getState();_.u(l,7,h);a.H.Zm(d)});
return d};Mjc=function(a){var b=new _.fAa,c=new Fjc,d=a.Ij();_.u(c.H,1,d);_.u(c.H,8,a.ka);_.u(c.H,3,a.ma);_.u(c.H,4,a.Uxa);_.u(c.H,5,a.ta);_.u(c.H,6,a.Fu);_.u(c.H,7,a.zDa);a=c.setEnvironment(a.getEnvironment());_.gec(b,_.Jfc,a);_.Ao(b,_.Hfc,new Ejc);return b};
Njc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.hI(906,b,void 0,_.Zfc());l.ha=!1;var p=new _.hec(l);b=new Date;l=_.sfc(_.rfc(_.qfc(nic(),new _.iec(l)),Mjc(c)),109).setSessionId(b.getTime()+"_"+_.mh());if(k){a=new Cjc(p,d,e,new ujc(a,f),f,h);_.pfc(l,a);d=l.build();_.lfc(d.RL(),1E3*b.getTime());var q=new Kjc(d,c);(new _.kf).listen(a,"vb",function(){_.Ljc(q,106008,0).Aj()});return q}_.pfc(l,p);a=l.build();_.lfc(a.RL(),1E3*b.getTime());return new Kjc(a,c)};
Ojc=function(a,b){this.V=a;this.W=b};Ojc.prototype.O=function(a,b){this.V&&_.Pjc(this)&&(a=_.Ljc(this.V,a,0),b&&_.Hgc(a,b),a.Aj())};_.qK=function(a,b){if(a.V&&_.Pjc(a)){a=_.Ljc(a.V,106018,0);var c=_.x(_.gK(a),Fic,15);if(!c){c=new Fic;var d=_.gK(a);_.F(d,15,c)}c=_.u(c,1,1);_.u(c,2,b);a.Aj()}};Ojc.prototype.H=function(a,b){return this.V&&_.Pjc(this)?(a=_.Ljc(this.V,a,1),b&&_.Hgc(a,b),a):null};_.Pjc=function(a){return!(!a.V||!a.V.H.SP())};
_.Qjc=function(a,b,c,d,e,f){var h=_.N(a,59),k=_.wI(_.fI(a)).toString(),l=_.UJ(_.fI(a));f=new Hjc(a,b,c,f);a=h?Njc(l,k,f,b,c,d,e,_.P(a,17,!1)):null;return new Ojc(a,f)};_.Rjc=function(a){_.I.call(this,a)};_.J(_.Rjc,_.I);_.Rjc.prototype.wk=function(){return _.y(this,1)};_.Sjc=function(a){var b=new _.Rjc;return _.u(b,1,a)};_.cJ=function(a){_.I.call(this,a)};_.J(_.cJ,_.I);_.cJ.prototype.getId=function(){return _.y(this,1)};_.cJ.prototype.Nb=function(a){return _.u(this,1,a)};
_.Tjc=function(a,b){return _.u(a,2,b)};Ujc=[1];_.Ygc=function(a){_.I.call(this,a,-1,Ujc)};_.J(_.Ygc,_.I);_.sJ=function(a){_.I.call(this,a)};_.J(_.sJ,_.I);_.sJ.prototype.hd=function(){return _.x(this,_.cJ,1)};Vjc=[2];_.zJ=function(a){_.I.call(this,a,-1,Vjc)};_.J(_.zJ,_.I);_.zJ.prototype.qc=function(){return _.y(this,1)};_.zJ.prototype.kW=function(){return _.zb(this,_.VF,2)};_.zJ.prototype.se=function(){return _.x(this,_.Lf,3)};_.eJ=function(a){_.I.call(this,a)};_.J(_.eJ,_.I);
_.eJ.prototype.hd=function(){return _.x(this,_.dJ,1)};_.eJ.prototype.Cda=function(a){return _.u(this,2,a)};_.Wjc=function(a){_.I.call(this,a)};_.J(_.Wjc,_.I);_.Wjc.prototype.getId=function(){return _.y(this,1)};_.Wjc.prototype.Nb=function(a){return _.u(this,1,a)};_.Wjc.prototype.se=function(){return _.x(this,_.Lf,2)};_.pJ=function(a){_.I.call(this,a)};_.J(_.pJ,_.I);_.pJ.prototype.$n=function(){return _.y(this,2)};_.pJ.prototype.hd=function(){return _.x(this,_.Wjc,3)};
_.fJ=function(a){_.I.call(this,a)};_.J(_.fJ,_.I);_.Xjc=function(a,b){this.O=b;this.H=new Map;this.oma(_.zb(a,_.kl,91))};_.Xjc.prototype.oma=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=c.getId();c=_.ll(c);if(!b||!c)break;var d=_.Yjc(this,b);if(d){d!==c&&Xgc(b);break}this.H.set(b,c)}};
Ehc=function(a,b){return[].concat(_.bc(new Set(b))).map(function(c){var d=(new _.kl).Nb(c);a.H.has(c)?_.ml(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.ml(d,_.Qk(c));return d}).filter(function(c){return _.mj(c,2)})};_.Yjc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.mj(a,140)?_.Qk(a):null};_.ahc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.ghc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.mhc=function(){this.H=_.Mf(new _.Lf,312)};
_.Zjc=function(a,b){_.YH.call(this,a?a:500,b?b:6E5)};_.J(_.Zjc,_.YH);_.rK=function(a,b,c,d){this.state=a;this.ma=b;this.ka=c;this.Zf=d;this.ha=this.O=this.timeout=this.W=null;this.V=!1;this.H=null};_.rK.prototype.getState=function(){return this.state};
_.rK.prototype.yM=function(a){var b=this;if(this.W)return this.W;var c=_.Yh();this.W=c.promise.then(function(){return _.Sjc(1)},function(d){d=_.Vc(d).ug;var e=0;2===d.Lp()?e=3:_.Yfc(d)&&(e=2);return _.Sjc(e)});a&&this.W.then(function(d){3===d.wk()&&_.qK(b.Zf,186469046)});this.H&&(a=_.y(rjc(this.H),4)||0,Hic(rjc(this.H),a+1));setTimeout(function(){b.W=null},5E3);$jc(this,c);return this.W};_.ckc=function(a,b){akc(a,3)&&_.bkc(a,b)};_.rK.prototype.reset=function(){this.O=null;dkc(this)};
dkc=function(a){a.timeout&&(clearTimeout(a.timeout),a.timeout=null)};_.bkc=function(a,b){if(!a.O&&!a.V){a.H=a.Zf.H(106025);if(a.H){var c=rjc(a.H);var d=!(!a.state.isConnected()&&a.state.Hk());c=_.u(c,1,d);c=_.u(c,2,a.state.O);_.u(c,5,!!b)}a.O=new _.Zjc(5E3,6E4);ekc(a)}};ekc=function(a){dkc(a);$jc(a);a.O&&(a.timeout=setTimeout(function(){return void ekc(a)},a.O.Xa()),_.ZH(a.O))};
$jc=function(a,b){var c=function(){if(a.H){var d=_.y(rjc(a.H),3)||0,e=rjc(a.H);_.u(e,3,d+1)}fkc(a,b)};(a.ha?a.ha():_.Vh(void 0)).then(null,function(){return null}).then(c,c)};fkc=function(a,b){a.log("Checking connection state.");var c=a.ma.then(function(d){return d.Pe(new _.mhc)}).then(null,function(d){d=_.Vc(d);_.Yfc(d.ug)&&akc(a,2);return _.Wh(d)});b?b.resolve(c):c.then(null,function(){return null})};_.rK.prototype.log=function(a){this.ka.info("drive.ds.sync.connection.StateManager",a)};
akc=function(a,b){return!a.V&&a.state.update(b)?(a.log("Connection status: "+_.bgc.get(b)),!0):!1};_.gkc=function(){this.H={}};hkc=function(a,b,c){if(a.H[b])throw Error("of");a.H[b]=c};_.gkc.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){_.aa.setTimeout(function(){throw d;},0)}};ikc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.jkc=function(a,b){this.H=a;this.V=b;this.O=_.dgc[_.pj(a.Uf(),8,0)];this.W=_.dgc[_.pj(a.Uf(),51,5)]};
_.jkc.prototype.kc=function(a,b){if(b.UN)kkc(this,a,b),lkc(this,a,b);else{var c={};if(11===a.jn){if(b.WMb){var d=b.WD||_.z(this.H.Uf(),37,"");c.key=d;Tgc(c,a.uri)}kkc(this,a,b);mkc(this,a,b)}else switch(a.uri=nkc(this,a.jn,a.uri),a.jn){case 1:mkc(this,a,b);kkc(this,a,b);break;case 0:b.Fu||_.KI(_.fI(this.H))||_.P(this.H,83,!1)&&Tgc({dsNonce:_.mh()},a.uri);mkc(this,a,b);lkc(this,a,b);kkc(this,a,b);break;case 2:case 3:case 4:case 5:mkc(this,a,b);lkc(this,a,b);kkc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:mkc(this,
a,b);lkc(this,a,b);break;default:throw Error("pf`"+a.jn);}}};okc=function(a,b){var c=nkc(a,b,new _.$i);if(!c.nH())throw Error("rf");return(new _.$i).Pr(c.Qo).Nn(c.kk()).RA(c.My()).Ai(_.egc.has(b)?"/batch"+a.O:"/batch")};
nkc=function(a,b,c){var d=_.y(a.H.Uf(),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=_.z(a.H.Uf(),62,"");break;case 8:a=_.y(a.H.Uf(),53);break;case 9:a=_.y(a.H.Uf(),56);break;case 10:a=_.y(a.H.Uf(),22);break;case 13:a=_.y(a.H.Uf(),55);break;case 12:a=_.y(a.H.Uf(),43);break;default:throw Error("pf`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.$i(a);
_.ae(c,"/")&&(c=c.slice(1));return new _.$i(a+"/"+c)};mkc=function(a,b,c){a=_.fI(a.H);c.Fu||_.KI(a)||(b.headers.authorization=_.eec([{key:"u",value:_.UJ(a)}])||"",c=_.wI(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
kkc=function(a,b,c){var d=_.fI(a.H),e=a.H.Uf(),f=c.H8a||_.P(e,14,!1),h=11===b.jn;if(c.G8a||_.y(e,13)){c=_.y(e,13);var k={};c&&_.ae(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===_.pj(e,9,2)?"":",cospel:3:all,DriveService:3:all"));Tgc(k,b.uri)}f&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
lkc=function(a,b,c){a=c.Fu||_.KI(_.fI(a.H))?_.z(a.H.Uf(),36,""):c.WD||_.z(a.H.Uf(),37,"");Tgc({key:a},b.uri)};_.$gc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.bhc=function(a){this.request=a;this.requestId=_.mh()};_.jhc=function(a,b,c,d){this.request=a;this.file=b;this.LQ=void 0===c?null:c;this.metadata=d};hhc=function(a,b){this.request=a;this.metadata=b};ihc=function(a,b,c,d,e,f,h){this.V=a;this.blob=b;this.H=c;this.O=d;this.l0a=e;this.contentType=f;this.revisionId=h};
_.DJ=function(a,b,c,d){this.request=a;this.file=b;this.LQ=void 0===c?null:c;this.metadata=d};rhc=[_.PI,_.RI,_.QI,_.TI,_.SI,_.UI,_.VI,_.YI,_.$I,_.aJ,_.bJ,_.dJ,_.eJ,_.rJ,_.vJ,_.xJ,_.zJ,_.xI,_.AJ,_.BJ,_.CJ,_.bhc,_.DJ];pkc=[_.zI];shc=[_.WF,_.ghc];thc=[_.pJ,_.PH,_.oD,_.EJ];uhc=[_.nI,_.fJ,_.XF,_.zI,_.ahc];vhc=[_.EJ,_.bG];whc=[_.cJ,_.Ygc,_.oJ,_.sJ,_.tJ,_.$gc,_.DJ,ihc,hhc];
qkc=function(a){return a instanceof _.nI||a instanceof _.EJ||"undefined"!=typeof _.sK&&a instanceof _.sK||a instanceof _.BJ||a instanceof _.aJ||a instanceof _.UI||a instanceof _.YI||a instanceof _.xI&&_.HJ(a)};_.rkc=function(a,b){this.H=b;this.T4={};this.cj=new uic;b=_.OI({fields:_.me(a,28),anonymous:_.KI(_.fI(a))});this.Hb("SecondaryFields",b);this.Hb("SdkBackfillEnabled",!!_.P(a,45,!1)+" (Include corpus cache: "+!!_.P(a,46,!1)+")")};_.rkc.prototype.Hb=function(a,b){this.T4[a]=skc(a,b)};
var tkc=function(a,b){var c=a.T4[b];c||(c=skc(b,0,2),a.T4[b]=c);c.Hb(String(Number(c.Xa())+1))};_.rkc.prototype.Xz=function(a){var b=_.Wa(this.T4);this.H&&b.push(skc("CacheSize",this.H.Ad()));b.push(skc("InitialViewDataLoaded",a));a=new _.Wic;_.tj(a,1,b);return _.fi(a)};skc=function(a,b,c){var d=new _.Uic;_.u(d,1,a);_.u(d,4,c||1);d.Hb(String(b));d.kl(_.igc.get(a));return d};
_.ukc=function(a,b,c){var d=new _.ufc;_.u(d,2,"Pending...");b instanceof _.nI?_.xj(d,3,_.oI,b):b instanceof _.EJ?_.xj(d,4,_.oI,b):"undefined"!=typeof _.sK&&b instanceof _.sK?_.xj(d,5,_.oI,b):b instanceof _.BJ?_.xj(d,6,_.oI,b):b instanceof _.aJ?_.xj(d,7,_.oI,b):b instanceof _.UI?_.xj(d,8,_.oI,b):b instanceof _.YI?_.xj(d,9,_.oI,b):b instanceof _.xI&&_.xj(d,10,_.oI,b);var e=ohc(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=_.kjc(b.hd()),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",_.y(b,3));else if(b instanceof _.UI)FJ(f,"MimeType",b.getMimeType()),FJ(f,"Title",b.getTitle()),FJ(f,"Parents",_.me(b,3)),FJ(f,"Convert",_.N(b,8)),FJ(f,"Request ID",b.kj()),FJ(f,"Parent Request IDs",_.me(b,10)),FJ(f,"Revision Item ID",_.y(b,12)),FJ(f,"Pinned",_.N(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",_.y(b,1)),FJ(f,"Destination Parent ID",_.y(b,2)),FJ(f,"validation token",_.y(b,4));else if(b instanceof _.xI){if(FJ(f,"ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"Description",b.Af()),FJ(f,"Starred",_.N(b,4)),FJ(f,"Trashed",b.Nh()),FJ(f,"MimeType",b.getMimeType()),FJ(f,"Parents",_.me(b,8)),FJ(f,"Parents to add",_.me(b,9)),FJ(f,"Parents to remove",
_.me(b,10)),FJ(f,"Restricted",_.N(b,11)),FJ(f,"Folder Color",b.Ni()),FJ(f,"Update Last Viewed",_.N(b,15)),FJ(f,"Subscribed",_.N(b,16)),FJ(f,"Available Offline",_.N(b,18)),FJ(f,"Wksp to add",_.me(b,31)),FJ(f,"Wksp to remove",_.me(b,32)),b=_.x(b,_.Fk,25))FJ(f,"Read Only",_.N(b,1)),FJ(f,"Reason",_.y(b,2))}else b instanceof _.CJ?(FJ(f,"WS ID",b.getId()),FJ(f,"Title",b.getTitle()),FJ(f,"State",b.getState())):b instanceof _.bhc&&FJ(f,"Title",b.request.getTitle());_.u(d,1,"Request: "+e+(c?" ("+c+")":"")+
"\n"+f.join("\n"));a.cj.add(d);return d};_.vkc=function(a,b){for(var c=new _.zo,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.vgc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.u(a,2,c.toString()||"Done.")};_.rkc.prototype.JR=function(){return this.cj.eh()};
_.tK=function(a){_.I.call(this,a)};_.J(_.tK,_.I);_.tK.prototype.Yc=function(){return _.x(this,_.eI,1)};_.wkc=function(a,b){return _.F(a,1,b)};_.tK.prototype.$n=function(){return _.y(this,3)};
_.xkc=function(a,b,c){_.pi.call(this,"Fb");this.requestId=a;this.progress=b;this.totalBytes=c};_.J(_.xkc,_.pi);
var zkc;_.ykc=function(a,b){this.O=a;this.V=b;this.H=null};zkc=function(a){a.O()||(a.H&&(a.H.resolve(),a.H=null),a.V())};
var uK=function(a){_.yi.call(this);this.name=a};_.J(uK,_.yi);_.g=uK.prototype;_.g.I4=function(){};_.g.gGa=function(){};_.g.H2a=function(){};_.g.XNa=function(){};_.g.G2a=function(){};_.g.jG=function(){this.dispatchEvent(new _.pi("Gb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
var Akc=function(a,b){uK.call(this,"Online");var c=this;this.O=a;this.H=b;this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.O,"ub",function(d){d.Me()||c.jG()});this.Nc.listen(this.H,"ib",this.jG)};_.J(Akc,uK);Akc.prototype.max=function(){var a=this.O.Me(),b=this.H.NB();return!a&&b?Infinity:0};Akc.prototype.I4=function(){this.jG()};
var Bkc=function(a){uK.call(this,"Online");var b=this;this.connectionState=a;this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.connectionState,[_.XB.NL,_.XB.Aha,_.XB.SU],function(){return b.jG()})};_.J(Bkc,uK);Bkc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};Bkc.prototype.I4=function(){this.jG()};
_.Ckc=function(a,b){this.H=a;this.O=b};_.Dkc=function(a){return a.H instanceof _.rK?new Bkc(a.H.getState()):new Akc(a.O,a.H)};_.Ckc.prototype.Jj=function(){return this.H instanceof _.rK?this.H.getState():this.O};
var Fkc;_.Ekc=function(a,b,c){this.LK=c;this.O=!0;this.V=0;this.H=new _.YH(a,b,.5)};Fkc=function(a){return a.H.O+a.V};
_.vK=function(a,b){uK.call(this,"Backoff");this.H=a;this.O=b};_.J(_.vK,uK);_.vK.prototype.max=function(){return this.H.O?Infinity:0};_.vK.prototype.XNa=function(){var a=this.H;a.V=0;a.H.reset()};_.vK.prototype.G2a=function(a){var b=this;Gkc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Xa(),this.log("Stopping new requests for "+a+" ms."),_.aa.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.jG()},a),_.ZH(this.H.H))};
var Gkc=function(a){var b;return(a=null===(b=_.ja(a.ZD))||void 0===b?void 0:b.response)?Kgc(_.bda(a)):!1};_.vK.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.Hkc=function(a,b){uK.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.J(_.Hkc,uK);_.Hkc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.Hkc.prototype.I4=function(a){a>=this.O?this.jG():null==this.H&&Ikc(this)};_.Hkc.prototype.gGa=function(a,b){0<b?Ikc(this):this.H=null};var Ikc=function(a){a.H=Date.now()-1;_.aa.setTimeout(a.jG.bind(a),a.V)};
_.wK=function(){this.cj=[]};_.g=_.wK.prototype;_.g.add=function(a,b){b?this.cj.unshift(a):this.cj.push(a);return!0};_.g.uta=function(a){return _.ua(this.cj,0,a)};_.g.Ad=function(){return this.cj.length};_.g.cancel=function(a){return _.ya(this.cj,function(b){return b.Wv.config.requestId===a?(b.he.resolve(phc(b.Wv.jx)),!0):!1})};_.g.qK=function(){return _.xg(this.cj,function(a){return _.HJ(a.Wv.jx)})};
var Jkc=function(){uK.call(this,"Immediate")};_.J(Jkc,uK);Jkc.prototype.max=function(){return Infinity};Jkc.prototype.I4=function(){this.jG()};
var Kkc=function(){uK.call(this,"One Request")};_.J(Kkc,uK);Kkc.prototype.max=function(){return 1};
_.xK=function(a){uK.call(this,"Parallel");this.limit=a;this.H=0};_.J(_.xK,uK);_.xK.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.xK.prototype.I4=function(){this.H<this.limit&&this.jG()};_.xK.prototype.gGa=function(a){this.H+=a.length};_.xK.prototype.H2a=function(a){this.H-=a.length;this.H<this.limit&&this.jG()};
var Lkc=function(){_.yi.apply(this,arguments)};_.J(Lkc,_.yi);var Nkc=function(a,b){a.dispatchEvent(new Mkc(b))};Lkc.prototype.O=function(){};var Mkc=function(a){_.pi.call(this,"Hb");this.request=a};_.J(Mkc,_.pi);
_.yK=function(a,b,c,d,e,f){_.yi.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.Nc=new _.kf(this);this.Ja(this.Nc);for(a=0;a<this.H.length;a++)this.Nc.listen(this.H[a],"Gb",this.M1a);for(a=0;a<this.O.length;a++)this.Nc.listen(this.O[a],"Hb",function(k){Okc(h,!0,k.request)});this.logName=_.dt("drive.ds.network.queue.Queue [%s]",f)};_.J(_.yK,_.yi);_.yK.prototype.add=function(a){return Okc(this,!1,{Wv:a,he:_.Yh(),ZD:[]})};
_.yK.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};_.yK.prototype.qK=function(){return this.V.qK()?!0:this.buckets.some(function(a){return a.qK()})};
var Okc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Sp(new _.Pc,"No queue bucket accepted request."),_.Wh(_.Vc(a));for(var d=Pkc(a),e=0;e<a.H.length;e++)a.H[e].I4(d);return c.he.promise};_.g=_.yK.prototype;
_.g.M1a=function(){var a=Pkc(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].uta(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.Uxb.bind(this,a[e]),this.Txb.bind(this,a[e]));e=Pkc(this);for(var f=0;f<this.H.length;f++)this.H[f].gGa(a,e);_.Zh(_.jI(d).then(this.Sxb.bind(this,a)),function(){b.W.delete(c)});_.aa.setTimeout(this.M1a.bind(this),0)};
_.g.Uxb=function(a,b){var c=a.Wv.config;this.log(ohc(a.Wv.jx)+" request completed successfully. xd4: "+!(!c||!c.UN));this.H.forEach(function(d){return d.XNa()});this.O.forEach(function(d){return d.O(a)});a.he.resolve(b)};
_.g.Txb=function(a,b){b=_.Vc(b);this.log(ohc(a.Wv.jx)+(" request failed with error: "+b.ha+"."));a.ZD.push({response:b,OTb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].G2a(a);a.Wv.config.cGa||!this.O.some(function(d){return d.intercept(a)})?a.he.reject(b):this.log(ohc(a.Wv.jx)+" encountered an error, but was intercepted to be retried.")};_.g.Sxb=function(a){Pkc(this);for(var b=0;b<this.H.length;b++)this.H[b].H2a(a)};
var Pkc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Ad()){b=a.buckets[c].Ad();break}return b};_.yK.prototype.log=function(a){this.ha.info(this.logName,a)};
_.Qkc=function(a,b,c,d){Lkc.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.Dj(a,21,1E3);this.ta=_.Dj(a,1,1);this.ma=function(){return new _.Ekc(_.Dj(a,63,1E3),_.Dj(a,64,3E5),_.Dj(a,65,10))}};_.J(_.Qkc,Lkc);
_.Qkc.prototype.intercept=function(a){var b=a.ZD.length,c=0<b&&_.ja(a.ZD).response||null;if(c){c=_.vI(c);if(2===c.Lp())return Rkc(this,a);if(_.Yfc(c))return 2>=b?(Nkc(this,a),a=!0):a=!1,a;var d=c.Wj();if(3===d||31===d||13===d||9===d)return Tkc(this,a,b);if(Kgc(c))return b=Fkc(this.V),c=this.V,Fkc(c)<c.LK?(this.log("Backoff number "+b+" for a User Rate Limit error."),Nkc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var Rkc=function(a,b){var c=Ukc(a,b),d=Fkc(c);if(Fkc(c)<c.LK)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.Me()?(d=c.H.Xa(),_.aa.setTimeout(function(){return Nkc(a,b)},d),_.ZH(c.H)):(_.aa.setTimeout(function(){return Nkc(a,b)}),c.V++),!0;a.H.delete(b);return!1},Ukc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},Tkc=function(a,b,c){var d=a.ta;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.aa.setTimeout(function(){return Nkc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.Qkc.prototype.O=function(a){this.H.delete(a)};_.Qkc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var Vkc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.Zfc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Fvb,d=Pic(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Dvb(_.NI(e),"reading data"))}},Wkc=function(a){return Vkc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var Xkc=function(a,b,c,d,e,f,h){this.Ia=a;this.H=b;this.La=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.ta=this.progress=0;this.Ga=this.wa=this.ha=null;this.he=_.Yh();this.finished=!1;this.Ba=this.Mu=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.Xz();a=_.Zfc()&&a?_.y(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.EO="progress_"+this.requestId;h.EO=this.EO;this.ma=!!f.metadata};
Xkc.prototype.log=function(a){this.La.info("drive.ds.sync.request.ResumableUpload",a)};Xkc.prototype.start=function(){var a=this,b=new hhc(this.request.request,this.request.metadata),c=Ykc(this);this.Ia.then(function(d){return d.Pe(b,c)}).then(function(d){a.ha=d.O;a.wa=d.H;a.Ga=d.V;Zkc(a)},function(d){return void a.he.reject(d)});return _.Zh(this.he.promise.then(function(d){$kc(a,d);return d},function(d){d=_.Vc(d);$kc(a,d.ug);return _.Wh(d)}),function(){ikc(a.H,[a.EO])})};
var Ykc=function(a){var b=_.cb(a.config);hkc(a.H,a.EO,sic(function(){return void a.H.notify([a.requestId],0)}));return b};Xkc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.he.resolve(phc(this.request)),!0)};
var Zkc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),alc(a,4))},alc=function(a,b){blc(a).then(function(c){if(c){var d=clc(a,c.blob.size);a.Ia.then(function(f){return f.Pe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.ta+=h;a.Ba++;f.jK()&&(a.wa=f.jK());f.cN()&&(a.Ga=f.cN());a.progress<a.fileSize?Zkc(a):a.he.resolve(f)},function(f){if(d.cGa)a.cancel();else{var h=_.vI(f);h.QCa()||h.dma()||a.ma?dlc(a,b,h,!1):Wkc(c.blob).then(function(k){k=k?_.gFa.get(k)||
25:38;_.II(h,k);dlc(a,b,h,38===h.Lp(),38!==h.Lp()&&25!==h.Lp())},function(){})}})}else{var e=_.Vc(_.II(_.Sp(new _.Pc,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.he.reject(e)}})},dlc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.ega(f);!e&&0<b?(a.Mu++,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+"."));alc(a,b)},a.Pa*Math.pow(1.5,f))):a.he.reject(_.Vc(c))},blc=function(a,b){return a.ma&&a.V?_.Vh(a.V):elc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return blc(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 ihc(a.ha,c,a.ta,a.ta+c.size-1,a.finished,a.request.request.getMimeType(),_.y(a.request.request,12)||
void 0);return a.V})},elc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.LQ?a.request.LQ(b,a.O):_.Vh(_.xgc(a.request.file,b,b+a.O))},clc=function(a,b){var c=_.cb(a.config);c.gTa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;ikc(a.H,[a.EO]);hkc(a.H,a.EO,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},$kc=function(a,b){b.YNa(3);b.ega(a.Mu);b.jK()||b.yda(a.wa);b.cN()||b.oda(a.Ga)};
_.flc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.flc.prototype.create=function(a,b){return new Xkc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.glc=function(a){this.O=a;this.H={}};_.glc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].Wv.jx instanceof _.jhc)b.push(hlc(this,a[c].Wv));else{var d=_.Sp(new _.Pc,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.Vc(d)))}return b};_.glc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.glc.prototype.qK=function(){return!_.Za(this.H)};
var hlc=function(a,b){var c=a.O.create(b.jx,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};
_.ilc=function(a,b){return new _.yK(b,a,[new Jkc],[new _.wK],[],"immediate")};_.jlc=function(a,b,c,d,e){return new _.yK(e,a,[_.Dkc(d),new _.vK(c,e),new Kkc],[new _.wK],[new _.Qkc(b,c,d.Jj(),e)],"connected")};_.klc=function(a,b,c,d,e,f,h){h=void 0===h?_.Dj(b,10,50):h;return new _.yK(e,a,[_.Dkc(d),new _.Hkc(h,_.Dj(b,12,10)),new _.xK(3*h),new _.vK(c,e)],[new _.wK],[new _.Qkc(b,c,d.Jj(),e)],f)};_.llc=function(a,b,c){return new _.yK(c,a,[new _.xK(_.Dj(b,46,1))],[new _.wK],[],"resumable_upload")};
_.mlc=function(a,b,c,d,e,f,h,k){this.tI=a;this.ma=b;this.W=c;this.H=d;this.V=e;this.ha=f;this.ka=h;this.O=k};_.mlc.prototype.Pe=function(a,b){return nlc(this,a,b).then(null,function(c){c=_.Vc(c);var d=c.ug;qhc(a)||_.Up(d);return _.Wh(c)})};
var nlc=function(a,b,c){c=void 0===c?{}:c;var d=a.tI.validate(b);if(d)return _.Wh(_.Vc(d));var e=a.ma.translate(b);e instanceof _.Pc?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 _.Vh(d).then(function(){if(e instanceof _.Pc)return _.Wh(_.Vc(e));if(Array.isArray(e)){var f=e.map(function(h){return olc(a,b,h,c)});return _.jI(f)}return olc(a,b,e,c)},function(f){return _.Wh(_.Vc(f))})},
olc=function(a,b,c,d){var e=plc(a,c);if(!e)return b=_.II(_.Sp(new _.Pc,"Failed to choose a queue for server request."),18),_.Wh(_.Vc(b));if(e===a.H[7]||e===a.H[8])d.UN=!0;d=e.add({jx:c,config:d});(_.HJ(b)||_.HJ(c))&&d.then(function(){zkc(a.V)},function(){zkc(a.V)});b=a.ha.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.mlc.prototype.cancel=function(a){return _.Ua(this.H,function(b){return b.cancel(a)})};
var plc=function(a,b){var c,d=!1;b instanceof _.fJ?d=!(null===(c=_.x(b,_.XF,2))||void 0===c||!_.N(c,7)):b instanceof _.XF?d=!!_.N(b,7):b instanceof _.nI&&(d=(d=b.hd())&&!!_.N(d,46));return(b instanceof _.mhc||b instanceof _.DI&&_.N(b,9))&&a.H[1]?a.H[1]:b instanceof _.jhc&&a.H[5]?a.H[5]:d&&xhc(b,a.O)&&a.H[7]?a.H[7]:xhc(b,a.O)&&a.H[8]?a.H[8]:d&&(b instanceof _.fJ||b instanceof _.XF)&&a.H[6]?a.H[6]:(d||pkc.includes(b.constructor))&&a.H[3]?a.H[3]:rhc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var qlc=function(a){this.H=a};qlc.prototype.build=function(a,b){var c="====="+_.mh()+"=====",d=a[0].jn,e=b.every(function(l){return l.UN});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=okc(this.H,a[0].jn);_.ej(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=rlc[d],h=slc[d]||{},h["content-type"]=_.dt('multipart/mixed; boundary="%s"',c),d=tlc[d],k=new _.$i("");a=ulc(this,a,b,c,e);return{jn:f,body:a,headers:h,method:d,uri:k}};
var ulc=function(a,b,c,d,e){for(var f=Wgc(vlc[b[0].jn]||{}),h="",k=0;k<b.length;k++){e&&mkc(a.H,b[k],c[k]);var l=b[k],p=a.H,q=l,r=c[k];q.uri=nkc(p,q.jn,q.uri);switch(q.jn){case 0:case 5:lkc(p,q,r);kkc(p,q,r);break;case 2:mkc(p,q,r);lkc(p,q,r);var v=q,w=_.y(p.H.Uf(),57);v.headers.host=_.hj(w).kk();v.headers.origin=_.aa.location.origin?_.aa.location.origin:_.aa.location.protocol+"//"+_.aa.location.host;kkc(p,q,r);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("qf`"+q.jn);default:throw Error("pf`"+
q.jn);}p=l;q=p.uri.clone();q.Pr("");q.Nn("");q.RA(null);l=f+"\r\n"+(p.method+" "+q+" HTTP/1.1\r\n")+Wgc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},wlc={},rlc=(wlc[0]=1,wlc[2]=3,wlc),xlc={},tlc=(xlc[0]="POST",xlc[2]="PUT",xlc[12]="POST",xlc),ylc={},zlc={},slc=(zlc[2]=(ylc["x-goog-upload-protocol"]="batch",ylc),zlc),Alc={},Blc={},Clc={},Dlc={},Elc={},vlc=(Elc[0]=(Alc["content-type"]="application/http",Alc["content-transfer-encoding"]="binary",Alc),
Elc[13]=(Blc["content-type"]="application/http",Blc["content-transfer-encoding"]="binary",Blc),Elc[12]=(Clc["content-type"]="application/http",Clc["content-transfer-encoding"]="binary",Clc),Elc[2]=(Dlc["content-type"]="application/http",Dlc),Elc);
var Flc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,Glc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var Hlc=function(a,b,c,d,e){this.V=a;this.W=b;this.ha=c;this.H=d;this.O=e;this.cj=new Map};Hlc.prototype.add=function(a,b){var c="DEFAULT";b.UN&&(c=okc(this.V,a.jn).toString());this.cj.has(c)||this.cj.set(c,[]);c=this.cj.get(c);if(1<=c.length&&!b.UN&&!rlc[a.jn])return a=_.Sp(new _.Pc,"Unsupported batch API: "+a.jn),_.Wh(_.Vc(a));var d=_.Yh();c.push({request:a,config:b,he:d});return d.promise};
Hlc.prototype.send=function(){for(var a={},b=_.m(this.cj.entries()),c=b.next();!c.done;a={Zra:a.Zra},c=b.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;try{Ilc(this,d)}catch(f){var e=_.NI(f);e=_.Tp(_.Sp(new _.Pc,"Error executing XHR: "+e.message),e.stack);a.Zra=_.Vc(e);d.forEach(function(h){return function(k){k.he.reject(h.Zra)}}(a));this.cj.delete(c)}}};
var Ilc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.wDa&&!c.config.UN){var d=!1;if(rlc[c.request.jn]){var e={jn:c.request.jn,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){Jlc(a,c);return}}}Klc(a,b)},Jlc=function(a,b){var c=b.he;a.W.kh(b.request,b.config).then(function(d){c.resolve(d);Llc(a,b)},function(d){a.handleError(b,d);c.reject(d)})},Klc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);
d.push(e.config)});a.W.kh(a.ha.build(c,d),{wDa:!0,UN:d.every(function(e){return e.UN})}).then(function(e){e.headers=_.ygc(e.headers);var f=Glc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Rc("Could not extract batch boundary.",_.II(_.Tp(new _.Pc,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.ae(_.vja(h[0]),f)&&_.Oe(h[1]))h=_.vja(h[0]).substring(f.length);else throw new _.Rc("Could not parse batch response; did not begin and end with boundary.",
_.II(_.Tp(new _.Pc,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,G=B.split("\r\n\r\n");if(2>G.length)v=new _.Rc("Individual batch response contained too few parts.",_.II(_.Tp(new _.Pc,B),17));else{var M=G[1].split("\r\n");if(w=Flc.exec(M[0])){p=_.oh(w[1]);w=w[2];M.shift();A=_.cb(A);for(var Q=Object,S=Q.assign,Y={},ba=0;ba<M.length;ba++){var ca=_.Eja(M[ba],":",1);ca&&2===
ca.length&&(Y[(0,_.Ag)(ca[0])]=(0,_.Ag)(ca[1]))}M=_.ygc(Y);S.call(Q,A,M);try{v=_.Oe(_.lh(G[2]))?void 0:JSON.parse(G[2])}catch(pa){}v=(p=_.Egc(p,w,A,B,v,void 0,void 0,E&&E.toString()))?_.Vc(p):{headers:A,text:B,json:v||void 0}}else v=new _.Rc("Could not extract HTTP status code and text.",_.II(_.Tp(new _.Pc,B),16))}r.call(q,v)}return k}).then(null,function(e){e=_.Vc(e);return _.Occ(e,b.length)}).then(function(e){for(var f=!1,h=0;h<b.length;h++){var k=b[h].he,l=e[h];l instanceof _.Pc||l instanceof _.Rc?
(l=_.Vc(l),f||(f=a.handleError(b[h],l)),k.reject(l)):k.resolve(l)}f||Llc(a,b[0])})},Llc=function(a,b){var c=b.request.jn;b=!b.config.Fu&&_.oa(Mlc,c);if(a.H){if(a=a.H,c=b?1:2,!a.state.isConnected()||b)c=akc(a,c),b&&c&&a.reset(),a.H&&c&&(b||!a.state.O)&&(a.H.Aj(),a.H=null)}else a.O&&b&&a.O.wa()};
Hlc.prototype.handleError=function(a,b){a=_.bda(b);if(2===a.Lp()){if(this.H)return _.ckc(this.H),!0}else if(_.Yfc(a)){if(this.H){a=this.H;if(b=!a.V)b=a.state,b=!b.V&&b.isConnected()?b.H=!0:!1;b&&_.bkc(a);return!0}if(this.O)return this.O.ta(),!0}return!1};var Mlc=[0,2,4,7,8];
var Nlc=function(){_.Wi.apply(this,arguments)};_.J(Nlc,_.Wi);Nlc.prototype.getAllResponseHeaders=function(){return _.vja(_.Wi.prototype.getAllResponseHeaders.call(this))};
var Olc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};
Olc.prototype.kh=function(a,b){var c=this;try{this.W.kc(a,b);var d=new Nlc;d.FC=!0;var e=b.requestId||"",f=_.Yh();d.listen("complete",function(){var h=b.wDa,k=4===a.jn;h=void 0===h?!1:h;k=void 0===k?!1:k;e&&(delete c.O[e],delete c.H[e]);var l={headers:_.sma(d),text:d.wl()};if((!b.zSb||_.Cgc(d.Cb()))&&!h)try{l.json=_.JI(d)}catch(p){}h=_.Egc(d.Cb(),_.pma(d),l.headers,l.text,l.json,d.O,_.tma(d),String(d.ta),k);d.dispose();h?f.reject(_.Vc(h)):f.resolve(l)});e&&b.EO&&!b.UN&&(this.O[e]=d,this.H[e]=b,d.Gb=
!0,d.listen("uploadprogress",function(h){h.lengthComputable&&c.V.notify([b.EO],b.gTa?h.loaded/h.total:h.loaded/h.total/2)}),b.gTa||d.listen("downloadprogress",function(h){h.lengthComputable&&c.V.notify([b.EO],h.loaded/h.total/2+.5)}));d.send(a.uri,a.method,a.body,a.headers);return f.promise}catch(h){return _.Wh(_.Vc(h))}};Olc.prototype.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.cGa=!0,b.abort(),!0):!1};
_.Plc=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 qlc(this.O);this.W=new Olc(this.O,this.wa)};_.g=_.Plc.prototype;
_.g.execute=function(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d].Wv;this.V.push(e);b.push(this.Ba.convert(e,a[d].ZD));c.push(qkc(e.jx)?_.ukc(this.ma,e.jx):void 0)}if(this.H&&this.H.V){var f=Promise.reject(_.Vc(_.Egc(0,"",{},"",void 0,-99)));return a.map(function(){return f})}var h=new Hlc(this.O,this.W,this.ka,this.H||void 0,this.ha||void 0);d=[];e={};for(var k=0;k<a.length;e={Era:e.Era},k++){e.Era=a[k].Wv.config;var l=b[k].then(function(p){return function(q){return h.add(q,p.Era)}}(e));d.push(l)}Promise.allSettled(b).then(function(){h.send()});
b=[];for(e=0;e<a.length;e++)k=a[e].Wv,l=d[e].then(this.ypb.bind(this,k.jx,c[e],a[e].ZD)).then(null,function(p){return Promise.reject(_.Vc(p))}),l.then(this.ZNa.bind(this,k),this.ZNa.bind(this,k)),b.push(l);return b};_.g.ypb=function(a,b,c,d){a=this.ta.convert(a,d,c);b&&a.then(function(e){e=e.zd?e.zd():[];_.vkc(b,e)});return a};_.g.cancel=function(a){return this.W.cancel(a)};_.g.qK=function(){return this.V.some(function(a){return _.HJ(a.jx)})};_.g.ZNa=function(a){_.xa(this.V,a)};
_.Qlc=function(){};_.Qlc.prototype.execute=function(){return null};
var Rlc=function(){};
var Slc=function(a,b){this.H=a;this.retryCount=b};
_.zK=function(a){return function(b){return b.kind===a}};
_.Tlc=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 Ulc;Ulc=function(a){this.H=a};_.AK=function(a,b){if(!_.Ea(b)||null===b)throw new _.Rc("Expected an object, but got a "+_.Kga(b)+".",_.MI(11,void 0,8));if(null===b||void 0===b||void 0===b.kind)throw new _.Rc("Expected 'kind' parameter in response: "+JSON.stringify(b),_.MI(11,void 0,21));var c=b.kind;if(!a(b))throw new _.Rc("Unexpected response type: "+c+".",_.MI(11,void 0,9));};_.BK=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.Vlc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=new _.Dk;c=_.u(c,1,a.canAddChildren);c=_.u(c,18,a.canChangeTeamDriveBackground);c=_.u(c,2,a.canComment);c=_.u(c,3,a.canCopy);b=_.u(c,4,b);b=_.u(b,5,a.canDownload);b=_.u(b,6,a.canEdit);b=_.u(b,10,a.canManageMembers);b=_.u(b,11,a.canManageVisitors);b=_.u(b,20,a.canMoveItemIntoTeamDrive);b=_.u(b,17,a.canMoveTeamDriveItem);b=_.Jhc(b,a.canReadTeamDrive);b=_.u(b,7,a.canRemoveChildren);b=_.u(b,12,a.canRename);b=_.u(b,13,a.canRenameTeamDrive);
b=_.u(b,8,a.canShare);b=_.u(b,9,a.canTrash);b=_.u(b,21,a.canUntrash);b=_.u(b,27,a.canModifyContentRestriction);b=_.u(b,26,a.canShareOutsideDomain);b=_.u(b,30,a.canMoveItemWithinTeamDrive);b=_.u(b,31,a.canMoveItemOutOfTeamDrive);b=_.u(b,32,a.canMoveChildrenWithinTeamDrive);b=_.u(b,33,a.canMoveChildrenOutOfTeamDrive);b=_.u(b,34,a.canDeleteChildren);b=_.u(b,35,a.canTrashChildren);b=_.u(b,36,a.canRequestApproval);b=_.u(b,37,a.canReadCategoryMetadata);b=_.u(b,38,a.canEditCategoryMetadata);b=_.u(b,39,a.canChangeCategoryReferences);
b=_.u(b,49,a.canSetMissingRequiredFields);b=_.u(b,40,a.canAddMyDriveParent);b=_.u(b,41,a.canRemoveMyDriveParent);b=_.u(b,42,a.canShareChildFiles);b=_.u(b,43,a.canShareChildFolders);b=_.u(b,44,a.canRead);b=_.u(b,45,a.canMoveItemWithinDrive);b=_.u(b,46,a.canMoveItemOutOfDrive);b=_.u(b,47,a.canMoveChildrenWithinDrive);b=_.u(b,48,a.canAddFolderFromAnotherDrive);b=_.u(b,50,a.canChangeSecurityUpdateEnabled);b=_.u(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.u(b,52,a.canCreateDecryptedCopy);b=_.u(b,
53,a.canCreateEncryptedCopy);b=_.u(b,54,void 0===a.canAddEncryptedChildren?a.canAddChildren:a.canAddEncryptedChildren);return _.u(b,55,a.canBlockOwner)};_.CK=function(a,b){_.AK(_.zK("drive#user"),b);var c=_.Hhc(_.Ihc(_.Fhc(1).Nb(b.permissionId),b.id).Zc(b.displayName),b.emailAddress);b.picture&&c.On(b.picture.url);_.mI(a.H)&&_.Hhc(c,b.emailAddressFromAccount||b.emailAddress);_.Ghc(c,a.nf(b.id));c.Nn(b.domain);return c};Ulc.prototype.nf=function(a){if(a)return _.UJ(_.fI(this.H))==a};
var Wlc,amc,imc,omc,dmc,cmc,fmc,hmc,jmc,Ylc,lmc,kmc,mmc,nmc,qmc,rmc,pmc,gmc;Wlc=function(a,b){this.H=a;this.O=b};
_.Zlc=function(a,b,c){var d=new _.tK,e=new _.eI,f=e.fB,h=[];if(_.zK("drive#file")(b))(a=_.Xlc(a,b))&&h.push(a);else if(_.zK("drive#fileList")(b))for(var k=b.items||[],l=0;l<k.length;l++){var p=_.Xlc(a,k[l]);h.push(p)}e=f.call(e,h);if(_.zK("drive#fileList")(b)){_.u(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 _.lec).Cc(Ylc.get(k.status)),l=_.u(l,
1,k.original),k=_.u(l,3,k.correction),h.push(k);a=new _.pec;h=_.tj(a,1,h);f.push(h)}q=new _.rec;_.tj(q,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var r=new _.nec;_.rj(r,1,f)}q||r?(f=new _.sec,q&&_.F(f,1,q),r&&_.F(f,2,r),r=f):r=null;_.F(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);_.rj(e,18,r)}d=_.wkc(d,e);c=_.Agc(c);c=_.u(d,2,c);_.zK("drive#fileList")(b)&&b.nextPageToken&&_.u(c,3,b.nextPageToken);
return c};amc=function(a,b,c,d,e){var f=_.Oic(new _.GJ,c);_.zK("drive#adminFile")(b)?(c=(new _.Kk).Nb(b.id),b.parentId&&_.PJ(c,[b.parentId]),_.Whc(c,b.teamDriveId),f.setItem(c),_.Oic(f,c.getId())):_.zK("drive#file")(b)?(b=_.Xlc(a,b),f.setItem(b),c||_.Oic(f,b.getId())):_.zK("drive#revision")(b)&&(b=_.$lc(a,b),_.F(f,4,b));f.yda(_.zgc(d));f.oda(_.Agc(d));(d=(d=d&&_.ygc(d))&&d["x-server-object-version"])&&e&&(e=(new _.$J).Nb(d),_.F(f,4,e));f.Cc(1);return f};_.bmc=function(a,b){return _.Oic(new _.GJ,a).Cc(1).yda(_.zgc(b)).oda(_.Agc(b))};
_.emc=function(a,b){var c=_.Ghc(_.Ihc(_.Fhc(cmc.get(b.type)).Nb(b.id),b.userId),a.H.nf(b.userId));c=_.u(c,4,b.withLink);c=_.Hhc(c.Zc(b.name).On(b.photoLink),b.emailAddress).Nn(b.domain);c=_.u(c,10,b.deleted);c=_.u(c,12,b.audienceId);c=_.u(c,13,b.customerId);_.mI(a.O)&&c.Zc(b.nameIfNotUser);b.role&&(a=dmc.get(b.role),2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6),_.u(c,6,a));return c};
_.Xlc=function(a,b){var c=b.title,d=(new _.Kk).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=_.Shc(_.dG(_.PJ(d,e).setTitle(c),b.mimeType),b.alternateLink);c=_.u(c,44,b.hasThumbnail);null!=b.thumbnailVersion&&_.u(c,90,Number(b.thumbnailVersion));_.u(c,21,b.iconLink);c.kl(b.description);_.u(c,26,b.explicitlyTrashed);_.u(c,22,b.shared);null!=b.quotaBytesUsed&&_.u(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.u(c,14,Number(b.fileSize));
_.u(c,30,b.copyable);b.labels&&(d=b.labels,c.fw(d.starred),_.u(c,6,d.hidden),c.Pn(d.trashed),_.u(c,8,d.restricted),_.u(c,9,d.viewed));_.u(c,10,_.BK(b.createdDate));_.u(c,69,_.BK(b.serverCreatedDate));_.u(c,11,_.BK(b.modifiedDate));_.u(c,12,_.BK(b.modifiedByMeDate));_.u(c,13,_.BK(b.lastViewedByMeDate));_.u(c,23,_.BK(b.sharedWithMeDate));_.u(c,62,_.BK(b.Gdc));_.u(c,70,_.BK(b.recency));b.recencyReason&&(d=fmc.get(b.recencyReason)||0,_.u(c,71,d));d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=
_.CK(a.H,e[f]))&&d.push(h);_.Qhc(c,d);b.lastModifyingUser&&(d=_.CK(a.H,b.lastModifyingUser),_.Rhc(c,d));b.userPermission&&(d=dmc.get(b.userPermission.role),_.rVb(c,d));b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.MJ).lh(e.width).yh(e.height),d=_.u(d,4,e.rotation),e.date&&(e=e.date,f=new _.lNa,f.setMilliseconds(0),gmc.parse(e,f),_.u(d,1,f.getTime())),_.F(c,27,d));null!=b.folderColor&&_.Thc(c,Number(b.folderColor));_.u(c,31,b.subscribed);_.u(c,45,b.fileExtension);_.rj(c,50,b.folderFeatures);
_.u(c,36,b.flaggedForAbuse);_.u(c,53,b.gplusMedia);_.u(c,46,b.primarySyncParentId||void 0);_.u(c,35,b.hasChildFolders);b.source&&(_.u(c,42,b.source.client_service_id),_.u(c,43,b.source.value));b.sharingUser&&(d=_.CK(a.H,b.sharingUser),_.Uhc(c,d));b.sources?_.rj(c,56,b.sources):b.gplusMedia&&_.rj(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.wfc[h]&&(h=_.wf(new _.vf,_.wfc[h]),e.push(h));c.SA(e)}_.u(c,63,b.ownedByMe);_.u(c,29,b.shareable);b.sourceAppId&&_.u(c,
61,b.sourceAppId);_.u(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 _.goa).Nb(k.id),k=hmc.get(k.type),h=_.u(h,2,k),e.push(h))}_.tj(c,83,e)}b.capabilities&&_.QJ(c,_.Vlc(b.capabilities));b.permissionsSummary&&_.Xhc(c,imc(a,b.permissionsSummary));b.headRevisionId&&_.u(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.NJ).kl(d.description),f=jmc.get(d.galleryState),e=_.u(e,3,f),d=_.rj(e,2,d.category),_.F(c,86,d));_.Whc(c,
b.teamDriveId);_.u(c,76,b.hasAugmentedPermissions);_.u(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.CK(a.H,b.creator),_.Yhc(c,d));_.Zhc(c,b.primaryDomainName);_.$hc(c,b.organizationDisplayName);_.u(c,94,b.passivelySubscribed);b.trashingUser&&_.aic(c,_.CK(a.H,b.trashingUser));c.Cda(_.BK(b.trashedDate));b.version&&_.u(c,75,Number(b.version));_.u(c,98,b.hasVisitorPermissions);_.u(c,102,b.hasAppsScriptAddOn);if(d=b.pairedDocType)d=kmc.get(d),_.u(c,101,d);b.videoMediaMetadata&&(d=b.videoMediaMetadata,
e=(new _.OJ).lh(d.width).yh(d.height),d.durationMillis&&_.u(e,3,Number(d.durationMillis)),_.F(c,103,e));_.rj(c,104,b.detectors);_.u(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 _.Fk).dP(f.readOnly),f=_.u(h,2,f.reason),d.push(f);_.tj(c,125,d)}if(d=b.publishingInfo)_.u(c,118,d.published),_.u(c,119,d.publishedUrl);_.rj(c,120,b.workspaceIds);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.u(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 _.ioa).Nb(f.approvalId).Cc(lmc.get(f.status)),d.push(f);_.tj(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.roa,e=_.u(e,1,d.targetId),e=_.u(e,3,d.targetMimeType),e=_.u(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&(f=mmc.get(d.targetLookupStatus)||0,_.u(e,4,f)),d.targetFile&&(d=_.Xlc(a,
d.targetFile),_.F(e,5,d)),_.F(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.LJ,f=nmc.get(d.encryptionState),e=_.u(e,1,f),d.decryptionMetadata&&(d=omc(d.decryptionMetadata),_.F(e,2,d)),_.F(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.Lhc,e=_.u(e,2,d.securityUpdateEligible),e=_.u(e,3,d.securityUpdateEnabled),d=_.u(e,5,d.securityUpdateExplicitlySet),_.F(c,139,d));_.u(c,140,b.resourceKey);_.rj(c,135,b.authorizedAppIds);_.bic(c,b.customerId);_.u(c,144,b.abuseIsAppealable);
b.abuseNoticeReason&&(b=pmc.get(b.abuseNoticeReason)||0,_.u(c,145,b));_.Sgc(c);_.mI(a.O)&&_.Vhc(c,5);return c};_.$lc=function(a,b){var c=(new _.$J).Nb(b.id);c=_.u(c,2,b.mimeType);c=_.u(c,3,_.BK(b.modifiedDate));c=_.u(c,4,b.pinned);c=_.u(c,5,b.downloadUrl);c=_.u(c,7,b.originalFilename);null!=b.fileSize&&_.u(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.CK(a.H,b.lastModifyingUser),_.F(c,9,a));b.decryptionMetadata&&(b=omc(b.decryptionMetadata),_.F(c,10,b));return c};
imc=function(a,b){return _.Ohc(_.Nhc(_.Mhc(new _.moa,b.entryCount),(b.visibility||[]).map(function(c){var d=_.Fhc(cmc.get(c.type)).Nn(c.domain);d=_.u(d,4,c.withLink).Nb(c.type+"|"+(c.domain||"")+"|"+c.withLink);if(c.role){var e=dmc.get(c.role);2==e&&c.additionalRoles&&"commenter"==c.additionalRoles[0]&&(e=4);_.u(d,6,e)}return d})),(b.selectPermissions||[]).map(function(c){return _.emc(a,c)}))};
omc=function(a){var b=a.wrappedKey;var c=new _.Khc;b=b?_.vec(b):void 0;c=_.u(c,1,b);c=_.u(c,2,Number(a.kaclsId));c=_.u(c,5,a.kaclsName);b=qmc.get(a.aes256GcmChunkSize);c=_.u(c,3,b);b=rmc.get(a.keyFormat);c=_.u(c,6,b);return _.u(c,4,a.jwt)};dmc=new Map([["fileOrganizer",7],["organizer",5],["owner",1],["reader",2],["writer",3]]);cmc=new Map([["anyone",4],["audience",5],["domain",3],["group",2],["user",1]]);fmc=new Map([["createdByMe",1],["modifiedByMe",2],["modified",3],["viewedByMe",4]]);
hmc=new Map([["MENTION",0],["SUGGESTION",1],["ASSIGNMENT",2]]);jmc=new Map([["UNAVAILABLE",1],["AVAILABLE",2],["PENDING",3]]);Ylc=new Map([["CORRECT",1],["INCORRECT",2],["SUSPICIOUS",3]]);lmc=new Map([["IN_PROGRESS",1],["APPROVED",2],["CANCELLED",3]]);kmc=new Map([["docs",1],["sheets",2],["slides",3]]);mmc=new Map([["ok",1],["notFound",2],["permissionDenied",3]]);nmc=new Map([["unencrypted",1],["encrypted",2]]);qmc=new Map([["unset",0],["default",1],["small",2],["size16kb",3]]);
rmc=new Map([["unsetKeyFormat",0],["tinkKeyset",1],["tinkAesGcmKey",2]]);pmc=new Map([["unknownReason",0],["accessibleOnlyToOwner",1],["accessibleOnlyToOwningCustomer",2],["suspiciousOther",3],["suspiciousPhishing",4],["suspiciousMalware",5],["accessibleOnlyToOwnerInSomeRegions",6],["accessibleOnlyToOwningCustomerInSomeRegions",7],["suspiciousInSomeRegions",8]]);gmc=new _.RVa("yyyy:MM:dd HH:mm:ss");
var smc=function(a,b,c){this.O=a;this.H=b;this.V=c};
var umc,wmc;_.tmc=function(a){this.V=a;this.W=new Ulc(a);this.JF=new Wlc(this.W,a);this.V=a};
_.tmc.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(_.DK(this,a,b));else{if(a instanceof _.cJ)var h=umc(this,0,b,c);else{if(a instanceof _.XF||a instanceof _.fJ){var k=Promise,l=k.resolve;if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#fileList"),_.zK("drive#file")),b.json);var p=_.Zlc(this.JF,b.json,b.headers);var q=l.call(k,p)}else{if(a instanceof _.DJ)k=Promise.resolve(_.DK(this,a,b));else{if("undefined"!=
typeof _.ehc&&a instanceof _.ehc){var r=Promise,v=r.resolve;if(!b.json)throw _.EK();_.AK(_.zK("drive#generateCseTokenResponse"),b.json);var w=b.json;var A=v.call(r,new _.Tlc(w.fileId,w.jwt,Number(w.currentKaclsId),w.currentKaclsName,w.customerId))}else{if("undefined"!=typeof _.vmc&&a instanceof _.vmc){var B=Promise,E=B.resolve;if(!b.json)throw _.EK();_.AK(_.zK("drive#revision"),b.json);var G=_.$lc(this.JF,b.json);r=E.call(B,G)}else{if(a instanceof _.sJ)B=umc(this,a.hd(),b,c);else{if(a instanceof ihc){l=
Promise;var M=l.resolve;if(a.l0a){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#file"),_.zK("drive#adminFile"),_.zK("drive#revision")),b.json);var Q=amc(this.JF,b.json,null,b.headers,!!a.revisionId)}else Q=_.bmc(null,b.headers);var S=M.call(l,Q)}else{if(a instanceof hhc){a=Promise;var Y=a.resolve,ba=_.ygc(b.headers),ca=ba.location;if(!ca){var pa=_.II(new _.Pc,10);throw new _.Rc("No upload session URI included.",pa);}var sa=new smc(ca,_.zgc(ba),_.Agc(ba));var Ca=Y.call(a,sa)}else Ca=a instanceof _.mhc?
Promise.resolve(new Rlc):Promise.reject(new _.Rc("FromXhrConverter: Unsupported request type.",new _.Pc));S=Ca}B=S}r=B}A=r}k=A}q=k}h=q}f=h}e=f}return e}catch(La){return Promise.reject(_.Vc(La))}};_.tmc.prototype.ka=function(){return null};
umc=function(a,b,c,d){b=c.headers["x-goog-safety-encoding"];return"base64"===b?0<_.Dj(a.V,95,0)?wmc(c.text,_.Dj(a.V,95,0)).then(function(e){return new Slc(e,d.length)}):Promise.resolve(new Slc(_.dba(c.text),d.length)):b?Promise.reject(Error("ng")):Promise.resolve(new Slc(new Uint8Array(_.Lma(c.text)),d.length))};
wmc=function(a,b){return new Promise(function(c){for(var d=[],e={$Z:0};e.$Z<Math.floor(a.length/b);e={$Z:e.$Z},e.$Z++)_.Ai(function(f){return function(){d.push(_.dba(a.slice(f.$Z*b,(f.$Z+1)*b)))}}(e),0);_.Ai(function(){d.push(_.dba(a.slice(Math.floor(a.length/b)*b,a.length)))},0);_.Ai(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)})};
_.DK=function(a,b,c){if(!c.json){if(b instanceof _.xI)return _.bmc(_.xmc(b));throw _.EK();}var d=!1;b instanceof _.DJ&&(d=!!_.y(b.request,12));_.AK(_.LI(_.zK("drive#file"),_.zK("drive#adminFile"),_.zK("drive#revision")),c.json);return amc(a.JF,c.json,_.xmc(b),c.headers,d)};_.EK=function(){var a=_.II(new _.Pc,11);return new _.Rc("FromXhrConverter: JSON required, but none found",a)};_.xmc=function(a){return a.getId?a.getId():a.qc?a.qc():null};
var ymc,Amc,yhc,Bmc,zhc;ymc={};_.zmc=(ymc[1]="active",ymc[2]="archived",ymc);Amc={};yhc=(Amc[0]="unset",Amc[1]="default",Amc[2]="small",Amc[3]="size16kb",Amc);Bmc={};zhc=(Bmc[0]="unsetKeyFormat",Bmc[1]="tinkKeyset",Bmc[2]="tinkAesGcmKey",Bmc);
var Emc=function(a,b,c){return(a.LQ?a.LQ(0,a.file.size):Promise.resolve(a.file)).then(function(d){return Vkc(d)}).then(function(d){return Cmc(a,b,d,c)},Dmc)},Cmc=function(a,b,c,d){var e=!!_.y(a.request,12),f={},h="files";e&&(h+="/"+_.y(a.request,12));h=new _.$i(h);f.uploadType="multipart";f.supportsTeamDrives=!0;f.pinned=!!_.P(a.request,13,!1);null!=_.N(a.request,8)&&(f.convert=_.N(a.request,8));f.fields=_.Ngc({fields:_.aK(b).filter(function(q){return 194!=q}),anonymous:!1});Tgc(f,h);Ugc(h,a.request.se());
var k=Dhc(a.request,a.metadata);f=_.mh();b={};b=(b["content-type"]=_.dt('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,_.zb(a.request,_.kl,28),[],null,b);a="--"+f;a=a+"\r\n"+Wgc(l)+"\r\n"+k+"\r\n"+a+"\r\n"+Wgc(p)+"\r\n"+c+"\r\n"+a+"--";return{jn:2,
headers:b,method:e?"PUT":"POST",uri:h,body:a}},Dmc=function(a){if(a instanceof _.Dvb){var b=new _.Pc;_.Sp(b,"fs.Error: "+a.message);a=(a=a.name)?_.gFa.get(a)||25:38;_.II(b,a);b=_.Vc(b)}else b=_.NI(a);return Promise.reject(b)};
_.FK=function(a,b,c,d){this.H=a;this.Dg=b;this.O=c;this.Zf=d};_.FK.prototype.convert=function(a,b){try{return a.jx instanceof _.DJ?Emc(a.jx,this.Dg,this.H):Promise.resolve(this.V(a.jx,a.config,b))}catch(c){return c instanceof _.Rc?a=c.ug:(a=new _.Pc,_.Sp(a,"Error converting XHR: "+c.message),_.Tp(a,c.stack),_.II(a,4)),Promise.reject(a)}};
_.FK.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=!!_.y(a,12))?"PUT":"POST";var r="files";f&&(r+="/"+_.y(a,12),l.pinned=!!_.P(a,13,!1));null!=_.N(a,8)&&(l.convert=_.N(a,8));l.fields=_.Ngc({fields:this.ah(),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)});f=Dhc(a);h["content-type"]="application/json";var v=a.se();q=!0;l.supportsTeamDrives=!0;_.P(this.H,3,!1)&&(l.enforceSingleParent=!0);_.KJ(this.H,_.zb(a,_.kl,28),_.me(a,3).concat([_.y(a,16),a.E2(),a.qc()]),
this.O,h)}else if(a instanceof _.cJ||a instanceof _.sJ)a instanceof _.sJ?(p=a.hd(),_.mj(a,2)&&(r="bytes="+_.y(a,2)+"-",_.mj(a,3)&&(r+=_.y(a,3)),h.range=r)):p=a,b.zSb=!0,r="files/"+p.getId(),_.y(p,2)&&(l.revisionId=_.y(p,2)),l.alt="media",h["X-Goog-Encode-Response-If-Executable"]="base64",_.KJ(this.H,[_.ml((new _.kl).Nb(p.getId()),_.y(p,3))],[p.getId()],this.O,h),q=p=!0;else if(a instanceof _.fJ||a instanceof _.XF){if(a instanceof _.fJ){r=_.y(a,1);var w=_.x(a,_.XF,2)}else if(a instanceof _.XF)r=0,
w=a,a.nm(),_.qK(this.Zf,190196159);else throw Error("og");var A=w.nm()[r];r="files/"+A;a=_.za(this.ah(),this.ah(w.H()));_.Ga(a);l.fields=_.Ngc({fields:a,anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)});l.supportsTeamDrives=!0;_.Fmc(this.H,l);_.P(this.H,14,!1)&&(l.useLegacyDomainPermissionBehavior=!1);this.W(A,l);v=w.se();q=!0;_.N(w,7)&&(b.wDa=!0);10!=_.VJ(this.H)||(null===(d=_.IJ(this.H))||void 0===d?0:_.P(d,22,!1))?_.KJ(this.H,_.zb(w,_.kl,11).filter(function(E){return E.getId()==A}),[A],this.O,h):
_.KJ(this.H,_.zb(w,_.kl,11),w.nm(),this.O,h)}else if("undefined"!=typeof _.ehc&&a instanceof _.ehc)r="files/generateCseToken",a.id&&(l.fileId=a.id),l.role=a.role,v=a.H;else if("undefined"!=typeof _.vmc&&a instanceof _.vmc)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 ihc){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.l0a?_.dt("bytes %d-%d/%d",B,b,b+1):_.dt("bytes %d-%d/*",B,b)}B=a.blob;q=!0}else a instanceof hhc?(e=2,k=(f=!!_.y(a.request,12))?"PUT":"POST",r="files",f&&(r+="/"+_.y(a.request,12)),l.uploadType="resumable",l.pinned=!!_.P(a.request,13,!1),null!=_.N(a.request,8)&&(l.convert=_.N(a.request,8)),l.fields=_.Ngc({fields:this.ah().filter(function(E){return 194!=E}),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)}),l.supportsTeamDrives=!0,f=Dhc(a.request,a.metadata),
h["content-type"]="application/json",null!=a.request.getMimeType()&&(h["x-upload-content-type"]=a.request.getMimeType()),_.KJ(this.H,[],_.me(a.request,3),this.O,h),v=a.request.se(),q=!0):a instanceof _.mhc?(r="about",l.fields="kind",v=a.H,q=!0):_.Gmc(a);q&&_.Hmc(c,l);0!=e||p||v&&_.y(v,1)||_.qK(this.Zf,74438989);return _.Imc(this,e,r,l,h,k,v,f,B)};
_.Imc=function(a,b,c,d,e,f,h,k,l){c=new _.$i(c);[10,12,13].includes(b)||Ugc(c,h);(a=a.H.Mi())&&(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,_.fj(c,a,h);return{jn:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.Fmc=function(a,b){_.P(a.Uf(),23,!1)&&(b.includePermissionsForView="published")};_.FK.prototype.W=function(){};
_.Hmc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ja(a).OTb):b.retryCount=0};_.FK.prototype.ah=function(a){a||(a=_.aK(this.Dg));return a};_.Gmc=function(a){var b=_.II(new _.Pc,4);throw new _.Rc("ToXhrConverter: Unsupported request type: "+ohc(a),b);};
_.GK=function(a,b,c,d,e,f){_.yi.call(this);var h=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.Ba=e;this.wa=f;this.cj={};this.ka={};this.Zf=null;_.af(this,function(){h.yG()})};_.J(_.GK,_.yi);_.GK.prototype.QQ=function(){return _.EI()};
_.GK.prototype.upload=function(a,b,c,d){tkc(this.V,"UploadTotalCount");var e=a.kj();if(e&&this.cj[e])throw new _.Rc("Upload requested with a duplicate request ID.");var f=_.me(a,10);if(f&&f.length){if(1!==f.length)throw new _.Rc("Multi-parented uploads are not supported.");var h=this.cj[f[0]];if(!h)throw new _.Rc("The parent upload request must precede this request.");}!_.y(a,26)&&b&&b.lastModified&&_.u(a,26,b.lastModified);e||(e=this.QQ(),_.u(a,9,e));a=a.clone();f=Jmc(this,e);this.cj[e]={request:a,
file:b,Ee:f,SM:!1,Mu:0,success:!1,WE:!1,children:[],metadata:c,pma:void 0,LQ:d};h?Kmc(this,e,h):this.ma(e);return f.ln()};
var Jmc=function(a,b){var c=new _.$h;c.hg(_.gb(a.Ga,b),_.gb(a.Ia,b),a);return c},Kmc=function(a,b,c,d){var e=a.cj[b];c.children.push(b);_.Ga(c.children);c.Ee.then(function(f){if(1===f.Cb()&&(f=f.qc(),_.me(e.request,3).push(f),_.gI(e.request,10),!c.WE||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.Hd(_.sI(f)?f:Error(f))})};
_.GK.prototype.Ga=function(a,b){tkc(this.V,"UploadSuccessCount");a=this.cj[a];a.success=1===b.Cb();(b=a.pma)&&!a.WE&&(Cic(Eic(qjc(b),a.Mu),!0),b.Aj())};_.GK.prototype.Ia=function(a,b){var c=_.x(this.O,_.HI,58);c&&_.P(c,1,!1)&&(this.ka[a]=b);tkc(this.V,"UploadFailureCount");c=this.cj[a];(a=c.pma)&&!c.WE&&(Cic(Eic(qjc(a),c.Mu),!1),b=(c=b&&b.ug)&&c.Wj(),c=c&&c.Lp(),b?Dic(qjc(a),Lmc.get(b)||13):c&&Dic(qjc(a),Mmc.get(c)||0),a.Aj())};
_.GK.prototype.ma=function(a){var b=this.cj[a];if(!b.SM){b.SM=!0;a=this.cj[a];var c=a.request,d=_.x(this.O,_.HI,58);d&&_.P(d,4,!1)&&(d=c.getTitle().match(Nmc))&&(!d[1]||a.Mu<Number(d[1].substr(1)))&&(c=c.clone(),_.ta(_.me(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.Xz())?_.y(c,1)||0:0;d=b.file&&b.file.size||c;c=this.O.Uf();var e=_.Dj(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.pma=f,f=qjc(f),f=_.u(f,1,2===e?2:1),f=_.u(f,4,!!b.metadata),
f=_.u(f,5,!!_.y(a,12)),d=_.u(f,6,d),_.u(d,7,_.Dj(c,32,1073741824)))}switch(e){case 2:b.file&&Omc(this,new _.jhc(a,b.file,b.LQ,b.metadata),b.Ee,a.kj());break;case 1:b.file&&(c=b.Ee,d=b.file,e=b.metadata,b=b.LQ,f=_.x(this.O,_.cic,2),Omc(this,new _.DJ(a,d,b,f&&_.RJ(f)?e:void 0),c,a.kj()));break;case 3:Omc(this,a,b.Ee,a.kj());break;default:throw new _.Rc("Upload type ${uploadType} not supported.");}}};
var Omc=function(a,b,c,d){hkc(a.W,d,a.ta.bind(a,d));var e=a.ha.then(function(f){return f.Pe(b,{requestId:d})}).then(null,function(f){return Pmc(a,b,f)});e.then(function(){ikc(a.W,[d])},function(){ikc(a.W,[d])});e.then(function(f){c.callback(f)},function(f){c.Hd(f)})},Pmc=function(a,b,c){var d=_.Vc(c),e=b instanceof _.DJ&&b.request.qc()||"";c=d.ug;if(e&&8===c.Wj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.ZF(new _.XF,[e]);return _.gi(a.ha.then(function(h){return h.Pe(f)}).then(function(h){h=
h.Yc().zd()[0];var k=b.request;if(h&&!h.Nh()&&(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.Oic((new _.GJ).setItem(h),e).Cc(1);a.log("No matching item found for: "+e);return _.Wh(d)}))}return _.hi(d)};_.g=_.GK.prototype;
_.g.cancel=function(a){var b=this,c=this.cj[a];if(c&&(!c.WE||0!==c.children.length))if(c.WE=!0,c.Ee.Xf())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.pma;d&&(Dic(Cic(Eic(qjc(d),c.Mu),!1),2),d.Aj());var e=_.Yh();c.SM?this.ha.then(function(f){return void e.resolve(f.cancel(a))}):(c.SM=!0,c.Ee.callback(phc(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.yG=function(){var a=this;_.Ra(this.cj,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.cj[f]){var h=[];do{h.push(f);var k=(_.me(b.cj[f].request,10)||[])[0];if(k){var l=b.cj[k];if(l.success||!l.Ee.Xf()||e[k])break;else if(!c.has(k)){e[f]=new _.Rc("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ka(h,function(p){var q=b.cj[p];q.Mu++;if(!e[p])if(!q.Ee.Xf()||q.success)e[p]=new _.Rc("Unable to retry request.");else{var r=(_.me(q.request,10)||[])[0];e[r]instanceof _.Rc?
e[p]=e[r]:(q.Ee=Jmc(b,p),q.SM=!1,q.WE=!1,(r=r?b.cj[r]:null)?Kmc(b,p,r,!0):d.push(p),e[p]=q.Ee.ln())}})}else e[f]=new _.Rc("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.$h?f:_.hi(f)});_.Ma(d,this.ma,this);return a};_.g.log=function(){this.isDisposed()};_.g.hd=function(a){return this.cj[a]};var Nmc=/^uploadTestFailMe(\.[1-9])?$/,Mmc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),Lmc=new Map([[3,14]]);

_.t();

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

_.Qmc=function(a,b){return _.u(a,1,b)};_.Rmc=function(a,b){return _.F(a,1,b)};_.Smc=function(a,b){return _.u(a,2,b)};_.Tmc=function(a,b){return _.F(a,3,b)};

_.t();

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


_.t();

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

var Umc;_.HK=function(a){_.I.call(this,a,-1,Umc)};_.J(_.HK,_.I);_.HK.prototype.Cb=function(){return _.y(this,1)};_.HK.prototype.Cc=function(a){return _.u(this,1,a)};_.HK.prototype.Jh=function(){return _.zb(this,_.Kk,2)};_.Vmc=function(a,b){return _.tj(a,2,b)};_.HK.prototype.Nq=function(a,b){return _.yj(this,2,a,_.Kk,b)};_.HK.prototype.Wf=function(){return _.y(this,4)};_.Wmc=function(a,b){return _.u(a,4,b)};Umc=[2];

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1gz");

_.IK=function(a,b){_.u(a,1,b)};

_.t();

}catch(e){_._DumpException(e)}
try{
_.n("sy1h0");

var Xmc;_.Ymc=function(a){return _.Te(a).ah(_.P(a.get(_.Jo),19,!1)?Xmc:_.Re)};Xmc=[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];

_.t();

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

var Zmc,$mc,anc,bnc,cnc,JK,dnc,enc,fnc,gnc,hnc,jnc,knc,lnc,mnc,nnc,MK,snc,tnc,NK,OK,unc,vnc,xnc,ync,znc,Anc,Bnc,Dnc,Enc,Fnc,Gnc,Hnc,Inc,Knc,Mnc,Tnc,Vnc,Ync,Znc,boc,eoc,SK,foc,goc,hoc,ioc,joc,koc,loc,moc,noc,ooc,poc,qoc,roc,soc,toc,voc,woc,xoc,Aoc,zoc,Doc,Foc,Hoc,Joc,Noc,Toc,Soc,$oc,apc,bpc,cpc,dpc,hpc,jpc,kpc,lpc,KK,mpc,npc,pnc,onc,qnc,rnc,Kqc,XK,$K,$qc,crc,drc,erc,hrc,yoc,irc,Krc,Lrc,Mrc,Nrc,Orc,Qrc,Rrc,Src,aL,Trc,bL,Urc,Vrc,Wrc,Xrc,Yrc,Zrc,cL,$rc,asc,bsc,csc,dsc,esc,fsc,rsc,Qsc,Ssc,Tsc,Ysc,Zsc,
gtc,qtc,ztc,Htc,Ntc,Utc,Wtc,auc,guc,vuc,wuc,zuc,Buc,Vuc,Uvc,Pnc,Vvc,Wvc,Xvc,bwc,jwc,kwc,nAc,ipc;Zmc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.me(a,3),Convert:_.N(a,8),ID:a.kj()};var b=[];_.Ra(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
$mc=function(a){var b=[];b.push(Zmc(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.Mu&&b.push("# of retries by client: "+a.Mu);var d="";a.SM?a.Ee.Xf()?a.Ee.hg(function(){d="Completed successfully."},function(e){d=e instanceof _.ai?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
anc=function(a,b,c,d,e,f){var h=_.dt("Drive Upload Report: %d/%d failed",_.Va(f),_.Va(e));a=a.Uf();d.push("Batch query interval: "+_.Dj(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.Dj(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.Dj(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.Dj(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.Dj(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.Ra(e,function(p){l.push($mc(p))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.Mic(b)});_.Ra(f,function(p,q){var r=k.push;q=e[q].request;q=_.dt('ErrorResponseFor"%s"(ID:%s).txt',q.getTitle()||"",q.kj()||"");var v=p.ug;r.call(k,{name:q,content:p.toString()+"\n"+(v?_.y(v,4):"No detail.")})});return{title:h,description:d,xQ:k,Ed:152391,R9:c,S0:361003}};bnc=function(a){return Array.prototype.concat.apply([],arguments)};cnc=function(a,b,c){c=_.Ia(a,b,c);return 0>c?(_.va(a,b,-(c+1)),!0):!1};
JK=function(a){throw _.Vc(a);};dnc=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=_.k7a.get(b.Jv()))&&d.add(b):d.add(1);0===d.size&&d.add(0)}_.kec(c,[].concat(_.bc(d)));return c};
enc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={Cfa:c.Cfa},d=a.next())if(d=d.value){c.Cfa=new Map;[].concat(_.bc(_.Lk(d)),[d.Cm(),d.Zr(),d.oq()]).forEach(function(p){return function(q){q&&p.Cfa.set(KK(q),q)}}(c));for(var e=[],f=_.m(c.Cfa.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName(),l=h.getEmail();e.push(KK(h)+"-"+((k?k.length:k)+"-")+((l?l.length:l)+"-")+_.zk(h))}b.push(d.getId()+","+d.Jv()+","+(e.length?e.join(","):"-"))}return b.length?"People: "+
b.join("|"):""};fnc=function(a){var b=new _.zo;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.OI(a,!0,"file"));a.a8&&(b.append(",teamDriveId,teamDrive("),b.append(a.a8),b.append(")"));b.append(")");return b.toString()};gnc=function(a){var b=new _.zo;b.append("kind,nextPageToken,items(");b.append(_.OI(a,!0));b.append("),incompleteSearch");a.a8&&(b.append(","),b.append(a.a8));return b.toString()};
hnc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.x(d,_.LJ,138),k=_.x(d,_.Fk,111),l=_.x(d,_.MJ,27),p=_.x(d,_.Lhc,139),q=d.xf(),r=d.Uh(),v=_.x(d,_.OJ,103);switch(e){case 227:_.wb(d,144);break;case 228:_.wb(d,145);break;case 74:_.uj(d,83);break;case 188:_.wb(d,137);break;case 149:_.gI(d,128);break;case 148:_.uj(d,127);break;case 138:_.wb(d,126);break;case 184:_.gI(d,135);break;case 76:f&&_.wb(f,1);break;case 223:f&&_.wb(f,54);break;case 208:f&&_.wb(f,48);break;case 185:f&&
_.wb(f,40);break;case 224:f&&_.wb(f,55);break;case 213:f&&_.wb(f,50);break;case 156:f&&_.wb(f,39);break;case 61:f&&_.wb(f,2);break;case 216:f&&_.wb(f,52);break;case 217:f&&_.wb(f,53);break;case 77:f&&_.wb(f,4);break;case 134:f&&_.wb(f,34);break;case 147:f&&_.wb(f,38);break;case 81:f&&_.wb(f,10);break;case 82:f&&_.wb(f,11);break;case 114:f&&_.wb(f,27);break;case 133:f&&_.wb(f,33);break;case 202:f&&_.wb(f,47);break;case 132:f&&_.wb(f,32);break;case 101:f&&_.wb(f,20);break;case 201:f&&_.wb(f,46);break;
case 131:f&&_.wb(f,31);break;case 200:f&&_.wb(f,45);break;case 130:f&&_.wb(f,30);break;case 93:f&&_.wb(f,17);break;case 191:f&&_.wb(f,44);break;case 146:f&&_.wb(f,37);break;case 90:f&&_.wb(f,16);break;case 78:f&&_.wb(f,7);break;case 186:f&&_.wb(f,41);break;case 222:f&&_.wb(f,51);break;case 85:f&&_.wb(f,12);break;case 137:f&&_.wb(f,36);break;case 209:f&&_.wb(f,49);break;case 79:f&&_.wb(f,8);break;case 189:f&&_.wb(f,42);break;case 190:f&&_.wb(f,43);break;case 80:f&&_.wb(f,9);break;case 135:f&&_.wb(f,
35);break;case 102:f&&_.wb(f,21);break;case 69:_.wb(d,74);break;case 194:h&&_.sj(h,2);break;case 193:h&&_.wb(h,1);break;case 1004:_.wb(d,108);break;case 136:_.uj(d,125);break;case 115:k&&_.wb(k,1);break;case 116:k&&_.wb(k,2);break;case 34:_.wb(d,30);f&&_.wb(f,3);break;case 9:_.wb(d,10);break;case 91:_.sj(d,91);break;case 43:_.wb(d,42);_.wb(d,43);break;case 187:_.wb(d,136);break;case 26:_.wb(d,24);break;case 108:_.gI(d,104);break;case 41:_.wb(d,40);f&&_.wb(f,5);break;case 42:_.wb(d,41);break;case 1005:_.uj(d,
117);break;case 59:f&&_.wb(f,6);break;case 28:_.wb(d,26);break;case 44:_.wb(d,45);break;case 13:_.wb(d,14);break;case 48:_.wb(d,36);break;case 38:_.wb(d,34);break;case 49:_.gI(d,50);break;case 51:_.wb(d,53);break;case 104:_.wb(d,102);break;case 39:_.wb(d,35);break;case 87:_.wb(d,76);break;case 100:_.wb(d,98);break;case 72:_.wb(d,78);break;case 5:_.wb(d,6);break;case 20:_.wb(d,21);break;case 21:break;case 29:l&&_.wb(l,1);break;case 31:l&&_.wb(l,3);break;case 92:l&&_.wb(l,4);break;case 30:l&&_.wb(l,
2);break;case 16:_.sj(d,17);break;case 12:_.wb(d,13);break;case 211:p&&_.wb(p,2);break;case 212:p&&_.wb(p,3);break;case 220:p&&_.wb(p,5);break;case 157:r&&_.uj(r,8);break;case 3:_.wb(d,4);break;case 11:_.wb(d,12);break;case 10:_.wb(d,11);break;case 50:_.wb(d,49);_.wb(d,51);_.sj(d,81);break;case 18:_.wb(d,19);break;case 95:_.wb(d,93);break;case 58:_.wb(d,63);break;case 14:_.uj(d,15);break;case 103:_.wb(d,101);break;case 1:_.gI(d,2);break;case 96:_.wb(d,94);break;case 1003:_.uj(d,107);break;case 75:_.sj(d,
85);break;case 94:_.wb(d,92);break;case 45:_.wb(d,46);break;case 124:_.wb(d,118);break;case 125:_.wb(d,119);break;case 1002:_.sj(d,100);break;case 32:_.wb(d,28);break;case 67:_.wb(d,70);break;case 68:_.wb(d,71);break;case 221:r&&_.wb(r,9);break;case 210:_.wb(d,140);break;case 7:_.wb(d,8);break;case 122:_.sj(d,109);break;case 66:_.wb(d,69);break;case 33:_.wb(d,29);break;case 24:_.wb(d,22);break;case 25:_.wb(d,23);break;case 46:_.sj(d,47);break;case 192:q&&_.wb(q,6);break;case 159:q&&_.sj(q,5);break;
case 154:q&&_.wb(q,1);break;case 158:q&&_.wb(q,4);break;case 155:q&&_.wb(q,3);break;case 52:_.gI(d,56);break;case 56:_.wb(d,61);break;case 55:_.uj(d,60);break;case 4:_.wb(d,5);break;case 35:_.wb(d,31);break;case 57:_.wb(d,62);break;case 83:_.wb(d,72);break;case 84:_.sj(d,86);break;case 19:_.wb(d,20);_.wb(d,44);_.wb(d,90);break;case 2:_.wb(d,3);break;case 6:_.wb(d,7);break;case 98:_.wb(d,96);break;case 97:_.sj(d,95);break;case 27:_.wb(d,25);break;case 70:_.wb(d,75);break;case 107:v&&_.wb(v,3);break;
case 106:v&&_.wb(v,2);break;case 105:v&&_.wb(v,1);break;case 8:_.wb(d,9);break;case 126:_.gI(d,120);break;default:throw Error("ad`"+e);}}};jnc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.bc(a),_.bc(inc)));a=[].concat(_.bc(_.hdb.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)hnc(b[d],a)}};
knc=function(a,b){var c=a.getCapabilities()||new _.Dk,d=_.x(a,_.LJ,138),e=_.x(a,_.Fk,111),f=_.x(a,_.MJ,27),h=_.x(a,_.Lhc,139),k=a.xf(),l=a.Uh(),p=_.x(a,_.OJ,103);switch(b){case 227:return null!=_.N(a,144);case 228:return null!=_.y(a,145);case 74:return 0<a.ou().length;case 188:return null!=_.N(a,137);case 149:return 0<_.me(a,128).length;case 148:return 0<a.lAa().length;case 138:return null!=a.a$();case 184:return 0<_.me(a,135).length;case 76:return null!=_.Ek(c);case 223:return null!=_.N(c,54);case 208:return null!=
_.N(c,48);case 185:return null!=_.N(c,40);case 224:return null!=_.N(c,55);case 213:return null!=_.N(c,50);case 156:return null!=_.N(c,39);case 61:return null!=_.N(c,2);case 216:return null!=_.N(c,52);case 217:return null!=_.N(c,53);case 77:return null!=_.N(c,4);case 134:return null!=_.N(c,34);case 147:return null!=_.N(c,38);case 81:return null!=_.N(c,10);case 82:return null!=_.N(c,11);case 114:return null!=_.N(c,27);case 133:return null!=_.N(c,33);case 202:return null!=_.N(c,47);case 132:return null!=
_.N(c,32);case 101:return null!=_.N(c,20);case 201:return null!=_.N(c,46);case 131:return null!=_.N(c,31);case 200:return null!=_.N(c,45);case 130:return null!=_.N(c,30);case 93:return null!=_.N(c,17);case 191:return null!=_.N(c,44);case 146:return null!=_.N(c,37);case 90:return null!=_.Le(c);case 78:return null!=_.N(c,7);case 186:return null!=_.N(c,41);case 222:return null!=_.N(c,51);case 85:return null!=_.N(c,12);case 137:return null!=_.N(c,36);case 209:return null!=_.N(c,49);case 79:return null!=
_.N(c,8);case 189:return null!=_.N(c,42);case 190:return null!=_.N(c,43);case 80:return null!=_.N(c,9);case 135:return null!=_.N(c,35);case 102:return null!=_.N(c,21);case 69:return null!=_.N(a,74);case 194:return null!=d&&null!=_.x(d,_.Khc,2);case 193:return null!=d&&null!=_.y(d,1);case 1004:return null!=_.N(a,108);case 136:return 0<a.P1().length;case 115:return null!=e&&null!=_.N(e,1);case 116:return null!=e&&null!=_.y(e,2);case 34:return null!=_.N(a,30)||null!=_.N(c,3);case 9:return null!=a.kD();
case 91:return null!=a.oq();case 43:return null!=_.y(a,42)||null!=_.y(a,43);case 187:return null!=a.Wi();case 26:return null!=a.Af();case 108:return 0<_.me(a,104).length;case 41:return null!=_.N(c,5);case 42:return null!=_.y(a,41);case 1005:return 0<_.Pk(a).length;case 59:return null!=_.N(c,6);case 28:return null!=a.ZI();case 44:return null!=_.y(a,45);case 13:return null!=a.fM();case 48:return null!=_.N(a,36);case 38:return null!=a.Ni();case 49:return 0<_.me(a,50).length;case 51:return null!=_.N(a,
53);case 104:return null!=_.N(a,102);case 39:return null!=a.Oka();case 87:return null!=_.Mk(a);case 100:return null!=_.N(a,98);case 72:return null!=_.y(a,78);case 5:return null!=_.N(a,6);case 20:return null!=a.jf();case 21:return null!=a.getId();case 29:return!(!f||null==_.y(f,1));case 31:return!(!f||null==_.y(f,3));case 92:return!(!f||null==_.y(f,4));case 30:return!(!f||null==f.Ce());case 16:return null!=a.Cm();case 12:return null!=a.Dz();case 211:return null!=h&&null!=_.N(h,2);case 212:return null!=
h&&null!=_.N(h,3);case 220:return null!=h&&null!=_.N(h,5);case 157:return!(!l||!_.zb(l,_.Ik,8));case 3:return null!=a.getMimeType();case 11:return null!=a.zB();case 10:return null!=a.Mq();case 50:return null!=_.N(a,49)||null!=_.N(a,51)||null!=a.Um();case 18:return null!=a.qq();case 14:return 0<_.Lk(a).length;case 95:return null!=a.El();case 58:return null!=_.N(a,63);case 103:return null!=_.y(a,101);case 1:return 0<a.uk().length;case 96:return null!=_.N(a,94);case 1003:return 0<_.Ok(a).length;case 75:return null!=
a.zw();case 94:return null!=a.qN();case 45:return null!=a.Yw();case 124:return null!=_.N(a,118);case 125:return null!=_.y(a,119);case 1002:return null!=_.Nk(a);case 32:return null!=a.kv();case 67:return null!=a.gK();case 68:return null!=_.y(a,71);case 221:return null!=l&&null!=_.N(l,9);case 210:return null!=_.Qk(a);case 7:return null!=a.M7();case 122:return null!=_.LK(a);case 66:return null!=_.y(a,69);case 33:return null!=_.N(a,29);case 24:return null!=a.wj();case 25:return null!=a.Oy();case 46:return null!=
a.Zr();case 192:return null!=k&&null!=_.N(k,6);case 159:return null!=k&&null!=_.se(k);case 154:return null!=k&&null!=_.y(k,1);case 158:return null!=k&&null!=_.ue(k);case 155:return null!=k&&null!=_.y(k,3);case 52:return 0<_.me(a,56).length;case 55:return 0<a.iA().length;case 56:return null!=_.y(a,61);case 4:return null!=a.lB();case 35:return null!=_.N(a,31);case 57:return null!=_.y(a,62);case 83:return null!=a.uc();case 84:return null!=_.x(a,_.NJ,86);case 2:return null!=a.getTitle();case 19:return null!=
a.Ez()||null!=_.N(a,44)||null!=_.y(a,90);case 6:return null!=a.Nh();case 98:return null!=a.Aw();case 97:return null!=a.zD();case 27:return null!=a.Bp();case 70:return null!=a.lj();case 107:return null!=p&&null!=_.y(p,3);case 106:return null!=p&&null!=_.y(p,2);case 105:return null!=p&&null!=p.Ce();case 8:return null!=_.N(a,9);case 126:return 0<_.me(a,120).length;default:throw Error("bd`"+b);}};lnc=function(a,b){return b.every(function(c){return knc(a,c)})};
mnc=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)})};nnc=function(a,b){var c=new Set(b.concat(_.Mgc));return a.filter(function(d){return!c.has(d)})};
MK=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,knc(b,h))if(_.ldb.has(h)){if(f){var k=a.getCapabilities()||new _.Dk;_.QJ(a,k);switch(h){case 76:_.u(k,1,_.Ek(f));break;case 223:_.u(k,54,_.N(f,54));break;case 208:_.u(k,48,_.N(f,48));break;case 185:_.u(k,40,_.N(f,40));break;case 224:_.u(k,55,_.N(f,55));break;case 213:_.u(k,50,_.N(f,50));break;case 156:_.u(k,39,_.N(f,39));break;case 61:_.u(k,2,_.N(f,2));break;case 216:_.u(k,
52,_.N(f,52));break;case 217:_.u(k,53,_.N(f,53));break;case 77:_.u(k,4,_.N(f,4));break;case 134:_.u(k,34,_.N(f,34));break;case 147:_.u(k,38,_.N(f,38));break;case 81:_.u(k,10,_.N(f,10));break;case 82:_.u(k,11,_.N(f,11));break;case 114:_.u(k,27,_.N(f,27));break;case 133:_.u(k,33,_.N(f,33));break;case 202:_.u(k,47,_.N(f,47));_.u(k,32,_.N(f,32));break;case 132:_.u(k,32,_.N(f,32));break;case 101:_.u(k,20,_.N(f,20));break;case 201:_.u(k,46,_.N(f,46));break;case 131:_.u(k,31,_.N(f,31));break;case 200:_.u(k,
45,_.N(f,45));break;case 130:_.u(k,30,_.N(f,30));break;case 93:_.u(k,17,_.N(f,17));break;case 191:_.u(k,44,_.N(f,44));break;case 146:_.u(k,37,_.N(f,37));break;case 90:_.Jhc(k,_.Le(f));break;case 78:_.u(k,7,_.N(f,7));break;case 186:_.u(k,41,_.N(f,41));break;case 222:_.u(k,51,_.N(f,51));break;case 85:_.u(k,12,_.N(f,12));break;case 137:_.u(k,36,_.N(f,36));break;case 209:_.u(k,49,_.N(f,49));break;case 79:_.u(k,8,_.N(f,8));break;case 189:_.u(k,42,_.N(f,42));break;case 190:_.u(k,43,_.N(f,43));break;case 80:_.u(k,
9,_.N(f,9));break;case 135:_.u(k,35,_.N(f,35));break;case 102:_.u(k,21,_.N(f,21));break;case 34:_.u(a,30,_.N(b,30));_.u(k,3,_.N(f,3));break;case 41:_.u(a,40,_.N(b,40));_.u(k,5,_.N(f,5));break;case 59:_.u(k,6,_.N(f,6))}}}else if(_.mdb.has(h)){var l=_.x(b,_.LJ,138);if(l)switch(k=_.x(a,_.LJ,138)||new _.LJ,_.F(a,138,k),h){case 194:h=_.x(l,_.Khc,2);_.F(k,2,h);break;case 193:_.u(k,1,_.y(l,1))}}else if(_.ndb.has(h)){if(k=_.x(b,_.Fk,111))switch(l=_.x(a,_.Fk,111)||new _.Fk,_.F(a,111,l),h){case 115:l.dP(_.N(k,
1));break;case 116:_.u(l,2,_.y(k,2))}}else if(_.odb.has(h)){if(k=_.x(b,_.MJ,27))switch(l=_.x(a,_.MJ,27)||new _.MJ,_.F(a,27,l),h){case 29:_.u(l,1,_.y(k,1));break;case 31:l.yh(_.y(k,3));break;case 92:_.u(l,4,_.y(k,4));break;case 30:l.lh(k.Ce())}}else if(_.pdb.has(h)){if(k=_.x(b,_.Lhc,139))switch(l=_.x(a,_.Lhc,139)||new _.Lhc,_.F(a,139,l),h){case 211:_.u(l,2,_.N(k,2));break;case 212:_.u(l,3,_.N(k,3));break;case 220:_.u(l,5,_.N(k,5))}}else if(_.qdb.has(h)){if(l=b.xf())switch(k=a.xf()||new _.roa,_.F(a,
132,k),h){case 192:_.u(k,6,_.N(l,6));break;case 159:h=_.se(l);_.F(k,5,h);break;case 154:_.u(k,1,_.y(l,1));break;case 158:_.u(k,4,_.ue(l));break;case 155:_.u(k,3,_.y(l,3))}}else if(_.rdb.has(h))switch(k=b.Uh(),h){case 157:k&&(h=a.Uh()||new _.poa,onc(a,h),pnc(h,_.zb(k,_.Ik,8)));break;case 221:k&&(h=a.Uh()||new _.poa,onc(a,h),_.u(h,9,_.N(k,9)))}else if(_.sdb.has(h)){if(k=_.x(b,_.OJ,103))switch(l=_.x(a,_.OJ,103)||new _.OJ,_.F(a,103,l),h){case 107:_.u(l,3,_.y(k,3));break;case 106:l.yh(_.y(k,2));break;
case 105:l.lh(k.Ce())}}else switch(h){case 227:_.u(a,144,_.N(b,144));break;case 228:_.u(a,145,_.y(b,145));break;case 74:h=b.ou();_.tj(a,83,h);break;case 188:_.u(a,137,_.N(b,137));break;case 149:h=_.me(b,128);_.rj(a,128,h);break;case 148:h=b.lAa();_.tj(a,127,h);break;case 138:_.u(a,126,b.a$());break;case 184:h=_.me(b,135);_.rj(a,135,h);break;case 69:_.u(a,74,_.N(b,74));break;case 1004:_.u(a,108,_.N(b,108));break;case 136:h=b.P1();_.tj(a,125,h);break;case 9:_.u(a,10,b.kD());break;case 91:_.Yhc(a,b.oq());
break;case 43:_.u(a,42,_.y(b,42));_.u(a,43,_.y(b,43));break;case 187:_.bic(a,b.Wi());break;case 26:a.kl(b.Af());break;case 108:h=_.me(b,104);_.rj(a,104,h);break;case 42:_.u(a,41,_.y(b,41));break;case 1005:h=_.Pk(b);_.tj(a,117,h);break;case 28:_.u(a,26,b.ZI());break;case 44:_.u(a,45,_.y(b,45));break;case 13:_.u(a,14,b.fM());break;case 48:_.u(a,36,_.N(b,36));break;case 38:_.Thc(a,b.Ni());break;case 49:h=_.me(b,50);_.rj(a,50,h);break;case 51:_.u(a,53,_.N(b,53));break;case 104:_.u(a,102,_.N(b,102));break;
case 39:_.u(a,35,b.Oka());break;case 87:_.u(a,76,_.Mk(b));break;case 100:_.u(a,98,_.N(b,98));break;case 72:_.u(a,78,_.y(b,78));break;case 5:_.u(a,6,_.N(b,6));break;case 20:h=b.jf();_.u(a,21,h);break;case 21:a.Nb(b.getId());break;case 16:_.Rhc(a,b.Cm());break;case 12:_.u(a,13,b.Dz());break;case 3:_.dG(a,b.getMimeType());break;case 11:_.u(a,12,b.zB());break;case 10:_.u(a,11,b.Mq());break;case 50:_.u(a,49,_.N(b,49));_.u(a,51,_.N(b,51));h=b.Um();_.F(a,81,h);break;case 95:_.$hc(a,b.El());break;case 18:_.Shc(a,
b.qq());break;case 58:_.u(a,63,_.N(b,63));break;case 14:_.Qhc(a,_.Lk(b));break;case 1:_.PJ(a,b.uk());break;case 96:_.u(a,94,_.N(b,94));break;case 103:_.u(a,101,_.y(b,101));break;case 1003:qnc(a,_.Ok(b));break;case 75:_.Xhc(a,b.zw());break;case 94:_.Zhc(a,b.qN());break;case 45:_.u(a,46,b.Yw());break;case 124:_.u(a,118,_.N(b,118));break;case 125:_.u(a,119,_.y(b,119));break;case 1002:h=_.Nk(b).clone();(null===(d=_.Nk(a))||void 0===d?0:_.N(d,3))&&_.u(h,3,!0);(null===(e=_.Nk(a))||void 0===e?0:_.N(e,4))&&
_.u(h,4,!0);_.F(a,100,h);break;case 32:_.u(a,28,b.kv());break;case 67:_.u(a,70,b.gK());break;case 68:_.u(a,71,_.y(b,71));break;case 210:_.u(a,140,_.Qk(b));break;case 7:_.u(a,8,b.M7());break;case 122:rnc(a,_.LK(b));break;case 66:_.u(a,69,_.y(b,69));break;case 33:_.u(a,29,_.N(b,29));break;case 24:_.u(a,22,b.wj());break;case 25:_.u(a,23,b.Oy());break;case 46:_.Uhc(a,b.Zr());break;case 52:h=_.me(b,56);_.rj(a,56,h);break;case 56:_.u(a,61,_.y(b,61));break;case 55:a.SA(b.iA());break;case 4:a.fw(b.lB());
break;case 35:_.u(a,31,_.N(b,31));break;case 57:_.u(a,62,_.y(b,62));break;case 83:_.Whc(a,b.uc());break;case 84:h=_.x(b,_.NJ,86);_.F(a,86,h);break;case 98:a.Cda(b.Aw());break;case 97:_.aic(a,b.zD());break;case 19:_.u(a,20,b.Ez());_.u(a,44,_.N(b,44));_.u(a,90,_.y(b,90));break;case 2:a.setTitle(b.getTitle());break;case 6:a.Pn(b.Nh());break;case 27:_.rVb(a,b.Bp());break;case 70:_.u(a,75,b.lj());break;case 8:_.u(a,9,_.N(b,9));break;case 126:h=_.me(b,120);_.rj(a,120,h);break;default:throw Error("cd`"+
h);}};snc=function(a,b){var c=_.zz[a];return b.filter(function(d){return!c||!c.has(d)})};tnc=function(a,b,c){a=snc(c,a);return mnc(b,a,_.Mgc)};NK=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};OK=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&NK(a)?(a=a.xf(),!!a&&"application/vnd.google-apps.folder"===_.y(a,3)):"application/vnd.google-apps.folder"===c};
unc=function(a){var b=a&&a.getId()||null;a&&NK(a)&&(a=(a=a.xf())&&_.y(a,1))&&(b=a);return b};vnc=function(a){return!!_.N(a,31)&&!_.N(a,94)};xnc=function(a){return wnc.some(function(b){return knc(a,b)})};ync=function(a){return a.filter(function(b){return!!b}).some(function(b){return[4,5,2].includes(b.Jv())})};znc=function(a){return ync(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};
Anc=function(a,b){var c={};a=_.Sa(a,function(d){return!!d});b=_.Sa(b,function(d){return!!d});_.Ra(a,function(d,e){var f=b[e];f?_.Cj(d,f)||(d=_.AEa(4).setItem(f),c[e]=d):(d=_.AEa(2).setItem(d),c[e]=d)});_.Ra(b,function(d,e){a[e]||(d=_.AEa(1).setItem(d),c[e]=d)});return c};Bnc=function(a,b){return _.Va(a)!==_.Va(b)||!_.Za(Anc(a,b))};_.Cnc=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};Dnc=function(a,b){return 0<=b?!a||a<=b:!0};
Enc=function(a,b){var c=a.Um();c||(c=new _.joa,b&&_.F(a,81,c));return c};Fnc=function(a){if(OK(a))_.IK(Enc(a,!0),!0);else if(OK(a,!0)){var b=a.xf();if(b=b&&_.se(b))_.IK(Enc(b,!0),!0),_.IK(Enc(a,!0),!0)}};Gnc=function(a){return!!a.Um()&&!OK(a)};Hnc=function(a){var b=[];_.Ma(a,function(c){if(3!=c.Jv()){if(null!=_.N(c,49)||null!=_.N(c,51)||null!=c.Um())c=c.clone(),_.wb(c,49),_.wb(c,51),_.sj(c,81);b.push(c)}});return b};
Inc=function(a,b){if(b){var c=[];_.N(b,3)&&c.push("folder");var d=_.Jcc()&&4===b.getType()?"title_natural":_.Afc[b.getType()];b=_.Cfc[b.Vf()];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};Knc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.I?a[b]=c.Gc():c&&c instanceof _.iK?a[b]=c.Gc(function(d){return d?d.Gc():null}):c&&c instanceof Jnc&&(a[b]=c.Gc())}};Mnc=function(a){var b=a.slice(0),c=new Set(b);Lnc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
Tnc=function(a,b,c){var d=_.x(a,Nnc,66);if(d){var e=_.WJ(a),f=_.wI(_.fI(a));a=new _.$i(_.y(d,1));var h=new _.$i(window.location);var k=h.Qo+"://"+h.kk();null!=h.Oo&&(k+=":"+h.My());h=_.lj(k,3);_.ej(a,"co",h);h=a.Ie();!e&&0<f&&(h+="u/"+f+"/");a.Ai(h+"_/dataservice/cacheproxy");e=_.y(d,5)||"";if(_.Igc(window.location.href,a.toString())&&e)return a=Mnc(c),c=_.y(d,6),b="#"+b+"_",d=new _.SH,d.update(a.join(",")),b+=_.Cec(d.digest()),c&&(b+="&jobset="+c),b=_.My(e+"?"+b),_.aa.SharedWorker?(c=new SharedWorker(_.kca(b),
void 0),b=new Onc(c.port),c.port.start()):b=new Onc(new Worker(_.kca(b),void 0)),new Pnc(new Qnc(b,!0),1,e,a);c=a.toString();b="cpiframe_"+_.EI();c=_.xh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.Mia(_.kgc(_.og("display: none;")));document.body.appendChild(c);c=_.Bec(a.Qo,void 0,a.kk(),a.My()).toString();return new Pnc(new Qnc(Rnc(window.frames[b],c),!0),0,a.toString())}a=new Snc;return new Pnc(new Qnc(a.O,!1),2,"inline",c,new Qnc(a.H,!1))};
Vnc=function(a){var b=new Unc;if(a instanceof _.PI)_.xj(b,16,PK,a);else if(a instanceof _.QI)_.xj(b,1,PK,a);else if(a instanceof _.RI)_.xj(b,2,PK,a);else if(a instanceof QK)_.xj(b,17,PK,a);else if(a instanceof _.UI)_.xj(b,3,PK,a);else if(a instanceof _.sK)_.xj(b,4,PK,a);else if(a instanceof _.SI)_.xj(b,5,PK,a);else if(a instanceof _.YI)_.xj(b,6,PK,a);else if(a instanceof _.$I)_.xj(b,7,PK,a);else if(a instanceof _.aJ)_.xj(b,8,PK,a);else if(a instanceof _.dJ)_.xj(b,9,PK,a);else if(a instanceof _.rJ)_.xj(b,
18,PK,a);else if(a instanceof _.vJ)_.xj(b,10,PK,a);else if(a instanceof _.wJ)_.xj(b,11,PK,a);else if(a instanceof _.xJ)_.xj(b,12,PK,a);else if(a instanceof _.xI)_.xj(b,13,PK,a);else if(a instanceof _.AJ)_.xj(b,14,PK,a);else if(a instanceof _.BJ)_.xj(b,15,PK,a);else throw new _.Rc("Unsupported request type");return b};
Ync=function(a){a=a.map(function(c){var d=new Wnc;if(c instanceof _.PI)_.xj(d,6,RK,c);else if(c instanceof QK)_.xj(d,7,RK,c);else if(c instanceof _.YI)_.xj(d,1,RK,c);else if(c instanceof _.vJ)_.xj(d,2,RK,c);else if(c instanceof _.wJ)_.xj(d,3,RK,c);else if(c instanceof _.xI)_.xj(d,4,RK,c);else if(c instanceof _.BJ)_.xj(d,5,RK,c);else throw new _.Rc("Unsupported request type");return d});var b=new Xnc;_.tj(b,1,a);return b};
Znc=function(a){return _.zb(a,Wnc,1).map(function(b){return _.Gj(b,_.PI,6,RK)||_.Gj(b,_.YI,1,RK)||_.Gj(b,_.vJ,2,RK)||_.Gj(b,_.wJ,3,RK)||_.Gj(b,_.xI,4,RK)||_.Gj(b,_.BJ,5,RK)||_.Gj(b,QK,7,RK)})};boc=function(a){var b=new $nc;if(a instanceof _.pD)_.xj(b,1,aoc,a);else if(a instanceof _.qD)_.xj(b,2,aoc,a);else throw new _.Rc("Unsupported request type");return b};
eoc=function(a){var b=new coc;if(a instanceof _.VI)_.xj(b,1,doc,a);else if(a instanceof _.bJ)_.xj(b,2,doc,a);else if(a instanceof _.CJ)_.xj(b,3,doc,a);else throw new _.Rc("Unsupported request type");return b};SK=function(a,b,c){return b?new c(JSON.parse(a)):a};foc=function(a){a={t:a.title,d:a.description,c:a.Ed,fi:a.R9,dti:a.S0,a:a.xQ?a.xQ.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.y9})}):void 0};return JSON.stringify(a)};
goc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Ed:a.c,R9:a.fi,S0:a.dti,xQ:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,y9:b.ec}}):void 0}};hoc=function(a,b){var c=_.ygc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};ioc=function(a,b,c){a=a?1:2;a=_.Cd(_.Bd(new _.Ad,12),a);var d=(new _.zf).Pn(!0);d=_.u(d,17,!0);a=_.Af(d,a);c&&_.ql(a,c);c=new _.tfc;b&&_.Qmc(c,b);return _.Rmc(_.Tmc(new _.nI,a),c)};joc=function(a){return a.map(function(b){return b.getItem()})};
koc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};loc=function(a,b){var c=new _.$i(_.z(b,16,"")+"/open"),d=a.getId();NK(a)&&(d=unc(a));_.ej(c,"id",d);_.ej(c,"authuser",_.wI(_.fI(b)));_.P(b,89,!1)&&_.mj(a,140)&&_.ej(c,"resourcekey",_.Qk(a));return c.toString()};moc=function(a){return String.fromCharCode(10>a?48+a:87+a)};noc=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]=moc(d>>4);b[2*c+3]=moc(d&15)}return b.join("")};
ooc=function(a){var b={};_.Ahc(b,[_.y(a,2)||""]);return b};poc=function(a){var b={};_.Oe(_.lh(a.getTitle()))||(b.title=a.getTitle());_.Ahc(b,_.me(a,3));_.N(a,8)&&(b.description="",b.labels={starred:!1});return b};qoc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.y(a,3)&&(b.workspaceToken=_.y(a,3));return b};
roc=function(a){var b,c={};c.sourceIds=_.me(a.request,1);c.destinationFolderId=null!==(b=_.y(a.request,2))&&void 0!==b?b:void 0;a.pageToken&&(c.continuationToken=a.pageToken);return c};
soc=function(a){var b={},c={};_.Oe(_.lh(a.getTitle()))||(b.title=a.getTitle());null!=a.Af()&&(b.description=a.Af());null!=_.N(a,4)&&(c.starred=_.N(a,4));null!=a.Nh()&&(c.trashed=a.Nh());_.Oe(_.lh(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.y(a,7)&&(b.modifiedDate=_.Bhc(_.Chc(_.y(a,7)||0)));null!=_.N(a,11)&&(c.restricted=_.N(a,11));_.Va(c)&&(b.labels=c);null!=a.Ni()&&(b.folderColor=a.Ni());null!=_.N(a,16)&&(b.subscribed=_.N(a,16));null!=_.N(a,40)&&(b.linkShareMetadata={securityUpdateEnabled:_.N(a,
40)});if(c=_.x(a,_.Fk,25)){b.contentRestrictions=[];var d={};null!=_.N(c,1)&&(d.readOnly=_.N(c,1));null!=_.y(c,2)&&(d.reason=_.y(c,2));b.contentRestrictions.push(d)}_.Ahc(b,_.me(a,8));return b};toc=function(a){var b={};null!=_.N(a,3)&&(b.pinned=_.N(a,3));return b};
voc=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.y(a,3))b.backgroundImageId=_.y(a,3);else{var c=_.y(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.jh)("0",6-c.length)+c);c=_.x(a,_.uoc,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.y(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.y(c,3);"number"===typeof d&&(a.yCoordinate=d);if(c=c.Ce())a.width=c;b.backgroundImageFile=a}}return b};
woc=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.zmc[a.getState()])&&(b.state=a);return b};
xoc=function(a){_.hg("drive.DebugUtil.printFindById",function(c){a.XM(c).then(function(d){window.console.log(JSON.stringify(d))})});_.hg("drive.DebugUtil.getLogs",function(){return _.Mic(a.Be())});_.hg("drive.DebugUtil.printLogs",function(){window.console.log(_.Mic(a.Be()))});_.hg("drive.DebugUtil.printRequestHistory",function(){a.JR().then(function(c){c.forEach(function(d){window.console.log(_.y(d,1));window.console.log(_.y(d,2))})})});_.hg("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.P(b,1,!1)&&(_.hg("drive.DebugUtil.getContext",function(){return a.getContext()}),_.hg("drive.DebugUtil.setOffline",function(c){return void a.Jl(c)}))};Aoc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.Lf;_.Mf(b,305);_.Nf(b,!0);_.u(b,3,2);var c=new _.oD;_.F(c,1,b);yoc(c,[7]);a=a.then(function(d){return d.Pe(c)}).then(zoc);return _.gi(a)};
zoc=function(a){a=_.zb(a,_.Ro,3);var b=new Boc;a.forEach(function(c){var d=c.getKey();"corpusSize"===(d&&_.y(d,2))&&(c=_.oh(c.Xa()),_.u(b,3,c))});return"number"===typeof _.y(b,3)?b:null};Doc=function(a,b){var c=Coc(a.$l,b.qc());if(c){var d=c.getItem(),e=d.zw();if(e){var f=e.NR(),h=_.ya(f,function(k){return k.getId()===_.y(b,2)});_.Nhc(e,f);h||(f=_.zb(e,_.xk,3),_.ya(f,function(k){return k.getId()===_.y(b,2)}),_.Ohc(e,f));_.Mhc(e,(_.y(e,1)||1)-1);a.$k([d],c.V)}}};
Foc=function(a,b,c){if(b=Coc(a.$l,b.qc())){var d=b.getItem(),e=d.zw();if(e){if(1===c.getType()||2===c.getType()){var f=_.zb(e,_.xk,3);f.push(c);_.Ja(f,Eoc);_.Ohc(e,f)}else f=e.NR(),f.push(c),_.Ja(f,Eoc),_.Nhc(e,f);_.Mhc(e,(_.y(e,1)||0)+1);a.$k([d],b.V)}}};Hoc=function(a){return a.map(function(b){var c=new _.Vwb;var d=b.serviceName?Goc.get(b.serviceName):void 0;c=_.u(c,3,d);return _.u(c,2,Number(b.bytesUsed))})};
Joc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return c.serviceName&&Ioc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
Noc=function(a){var b=a.exportJob,c=b.status;c=c?Koc.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=_.dG((new _.Kk).Nb(l.docId).setTitle(l.title),l.mediaType);p=(new _.Loc).setItem(p);p=_.u(p,3,l.relativePath);return _.u(p,4,l.cause)});return new Moc(c,d,k,f,h,e,a,b)};
Toc=function(a){var b=Ooc(new TK,Poc(a)),c=a.result;a=a.processedFileCount;if(c){var d=c.status;(d=d&&Qoc[d])&&b.Cc(d);c.sourceResults&&Roc(b,c.sourceResults.map(function(e){return Soc(e)}));c.validationToken&&_.u(b,4,c.validationToken)}void 0!==a&&_.u(b,2,a);return b};Soc=function(a){var b=Uoc(Voc(new _.Woc,a.sourceId),a.fileCount);a.unmovableFileReasons&&Xoc(b,a.unmovableFileReasons.map(function(c){var d=new _.Yoc;d=_.u(d,1,c.unmovableReason);return _.u(d,2,c.count)}));return b};
$oc=function(a){var b={},c=a.getKey();b.key=c&&_.y(c,2);b.value=a.Xa();(a=c&&_.So(c))&&(b.namespace=Zoc[a]);return b};apc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(Zoc[a[c]]);return b};bpc=function(a){return"kind,defaultAppIds,items("+a+")"};cpc=function(a,b){var c;return(null===(c=_.IJ(b))||void 0===c?0:_.P(c,16,!1))?a+",individualQuotaBytesTotal,individualQuotaBytesUsedAggregate":a};
dpc=function(){var a=!(!_.aa.IDBObjectStore||!_.aa.IDBObjectStore.prototype.getAll);return!!(_.aa.indexedDB||_.aa.mozIndexedDB||_.aa.webkitIndexedDB||_.aa.moz_indexedDB)&&a};
hpc=function(a,b){var c,d,e;b=b.clone();if((null===(c=_.IJ(b))||void 0===c?0:_.P(c,18,!1))||(null===(d=_.IJ(b))||void 0===d?0:_.P(d,17,!1)))null===(e=_.IJ(b))||void 0===e?void 0:_.u(e,15,!0);_.u(b,75,1<_.aa.devicePixelRatio);var f=b;var h=_.P(f,61,!1),k=_.IJ(f),l=!!k&&_.P(k,10,!1);if(_.KI(_.fI(f))||!h&&!l)_.u(f,61,!1),_.sj(f,66),k&&_.u(k,10,!1),f=!1;else{if(h){_.aa.SharedWorker||(h=!1);var p=_.x(f,Nnc,66);p&&_.y(p,1)||(h=!1);_.WJ(f)&&!_.P(f,52,!1)&&(h=!1)}h?k&&_.u(k,10,!1):(_.u(f,61,!1),_.sj(f,66));
f=h||l}if(f)return b=new UK(a,b,_.P(b,61,!1)?3:5),new epc(b);f=_.KI(_.fI(b))?2:1;a=new VK(a,b,f,void 0,void 0,void 0);return _.KI(_.fI(b))?new fpc(a):new gpc(a)};jpc=function(a){return _.Te(a).ah(_.P(a.get(_.Jo),19,!1)?ipc:_.cVa)};kpc=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};lpc=function(a,b){return _.tj(a,1,b)};KK=function(a){return _.y(a,11)};mpc=[1];npc=function(a){_.I.call(this,a,-1,mpc)};_.J(npc,_.I);
npc.prototype.oN=function(){return _.zb(this,_.xk,1)};npc.prototype.Qha=function(a){_.yj(this,1,a,_.xk,void 0)};var opc=function(a){var b=new npc;return _.tj(b,1,a)},ppc=function(a,b){return _.F(a,1,b)},qpc=function(a,b){_.tj(a,2,b)},rpc=function(a,b){_.F(a,6,b)},spc=function(a,b){_.F(a,7,b)},tpc=function(a,b){return _.xj(a,3,_.Bk,b)},upc=function(a){_.I.call(this,a)};_.J(upc,_.I);var vpc=function(a){_.I.call(this,a)};_.J(vpc,_.I);var wpc=function(a){_.I.call(this,a)};_.J(wpc,_.I);
var xpc=function(a){_.I.call(this,a)};_.J(xpc,_.I);var ypc=function(a){_.I.call(this,a)};_.J(ypc,_.I);var zpc=function(a){_.I.call(this,a)};_.J(zpc,_.I);var Apc=function(a){_.I.call(this,a)};_.J(Apc,_.I);var Bpc=function(a){_.I.call(this,a)};_.J(Bpc,_.I);var Cpc=function(a){_.I.call(this,a)};_.J(Cpc,_.I);var Dpc=function(a){_.I.call(this,a)};_.J(Dpc,_.I);var Epc=function(a){_.I.call(this,a)};_.J(Epc,_.I);var Fpc=function(a){_.I.call(this,a)};_.J(Fpc,_.I);var Gpc=function(a){_.I.call(this,a)};
_.J(Gpc,_.I);var Hpc=function(a){_.I.call(this,a)};_.J(Hpc,_.I);var Ipc=function(a,b){_.tj(a,1,b)},Jpc=function(a,b){return _.u(a,2,b)},Kpc=function(a,b){return _.F(a,3,b)},Lpc=function(a,b){return _.u(a,4,b)},Mpc=function(a){_.I.call(this,a)};_.J(Mpc,_.I);var Npc=function(a,b){_.tj(a,1,b)},Opc=function(a,b){return _.F(a,2,b)},Ppc=function(a){_.I.call(this,a)};_.J(Ppc,_.I);
var Qpc=function(a,b){_.tj(a,1,b)},Rpc=function(a,b){return _.F(a,4,b)},Spc=function(a,b){_.F(a,5,b)},Tpc=function(a,b){_.tj(a,2,b)},Upc=function(a,b){_.u(a,3,b)},Vpc=function(a,b){_.tj(a,4,b)},Wpc=function(a,b){return _.F(a,5,b)},Xpc=function(a){_.I.call(this,a)};_.J(Xpc,_.I);var Ypc=function(a,b){_.tj(a,1,b)},Zpc=function(a,b){return _.F(a,2,b)},$pc=function(a){_.I.call(this,a)};_.J($pc,_.I);
var aqc=function(a,b){_.tj(a,2,b)},bqc=function(a){var b=new _.boa;return _.tj(b,3,a)},cqc=[1,2],dqc=function(a){_.I.call(this,a)};_.J(dqc,_.I);dqc.prototype.Nf=function(a){return _.xj(this,1,cqc,a)};var eqc=[1],fqc=function(a){_.I.call(this,a,-1,eqc)};_.J(fqc,_.I);fqc.prototype.Xq=function(){return _.y(this,2)};var gqc=function(a,b){_.tj(a,1,b)},hqc=function(a,b){return _.u(a,2,b)},iqc=function(a,b){return _.F(a,3,b)},jqc=function(a){_.I.call(this,a)};_.J(jqc,_.I);
var kqc=[2],lqc=function(a){_.I.call(this,a,-1,kqc)};_.J(lqc,_.I);var mqc=function(a,b){_.tj(a,2,b)},nqc=function(a,b){return _.F(a,3,b)},oqc=[1],pqc=function(a){_.I.call(this,a)};_.J(pqc,_.I);pqc.prototype.Nf=function(a){return _.xj(this,1,oqc,a)};var qqc=function(a,b){_.tj(a,1,b)},rqc=function(a,b){return _.tj(a,2,b)},sqc=function(a){_.I.call(this,a)};_.J(sqc,_.I);var tqc=function(a,b){_.tj(a,1,b)},uqc=function(a,b){return _.F(a,2,b)},vqc=function(a){_.I.call(this,a)};_.J(vqc,_.I);
var wqc=[1,2,3,4],xqc=[1],yqc=[1,2],zqc=[1],Aqc=[1],Bqc=[1,2],Cqc=[1],Dqc=function(a,b){return _.F(a,1,b)},Eqc=function(a,b){return _.u(a,2,b)},Fqc=function(a,b){return _.u(a,3,b)},Gqc=function(a,b){return _.u(a,4,b)},Hqc=function(a,b){return _.u(a,5,b)},Iqc=function(a,b){return _.u(a,6,b)},Jqc=function(a){_.I.call(this,a)};_.J(Jqc,_.I);pnc=function(a,b){_.tj(a,8,b)};onc=function(a,b){return _.F(a,73,b)};qnc=function(a,b){_.tj(a,107,b)};_.LK=function(a){return _.x(a,Jqc,109)};
rnc=function(a,b){_.F(a,109,b)};Kqc=function(a){_.I.call(this,a)};_.J(Kqc,_.I);var Lqc=function(a){_.I.call(this,a)};_.J(Lqc,_.I);var Mqc=function(a){var b=new _.Rj;_.Zj(b,a,1);_.Zj(b,a,2);_.Uj(a,b);return _.Tj(b)},Nqc=function(a){_.I.call(this,a)};_.J(Nqc,_.I);var Nnc=function(a){_.I.call(this,a)};_.J(Nnc,_.I);var Oqc=[11],Pqc=function(a){_.I.call(this,a,-1,Oqc)};_.J(Pqc,_.I);var WK=function(a){_.I.call(this,a)};_.J(WK,_.I);WK.prototype.getKey=function(){return _.y(this,2)};
WK.prototype.vt=function(){return _.mj(this,2)};XK=function(a){return _.z(a,4,"en")};_.ZK=function(a){return _.x(a,Pqc,34,1)};$K=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};_.Qqc=function(a,b){return _.u(a,2,b)};_.Rqc=function(a,b){return _.u(a,3,b)};_.Sqc=function(a,b){return _.u(a,1,b)};_.Tqc=function(a,b){return _.u(a,2,b)};_.Uqc=function(a,b){return _.tj(a,5,b)};_.Vqc=function(a,b){return _.u(a,6,b)};
_.Wqc=function(a,b){return _.u(a,7,b)};_.Xqc=function(a,b){return _.u(a,8,b)};_.Yqc=function(a,b){return _.u(a,10,b)};_.Zqc=function(a,b){return _.u(a,15,b)};$qc=[2];_.arc=function(a){_.I.call(this,a,-1,$qc)};_.J(_.arc,_.I);_.arc.prototype.li=function(){return _.y(this,1)};_.brc=function(a,b){return _.F(a,1,b)};crc=function(a,b){return _.u(a,2,b)};drc=function(a,b){return _.u(a,3,b)};erc=function(a,b){_.tj(a,4,b)};_.frc=function(a,b){_.F(a,8,b)};_.grc=function(a,b){_.F(a,9,b)};
hrc=function(a){_.I.call(this,a)};_.J(hrc,_.I);hrc.prototype.Xa=function(){return _.qj(this,1)};hrc.prototype.Hb=function(a){return _.xb(this,1,a,0)};yoc=function(a,b){_.rj(a,3,b)};irc=function(a,b){return _.u(a,5,b)};_.uoc=function(a){_.I.call(this,a)};_.J(_.uoc,_.I);_.uoc.prototype.getId=function(){return _.y(this,1)};_.uoc.prototype.Nb=function(a){return _.u(this,1,a)};_.uoc.prototype.Ce=function(){return _.y(this,4)};_.uoc.prototype.lh=function(a){return _.u(this,4,a)};
_.sK=function(a){_.I.call(this,a)};_.J(_.sK,_.I);_.sK.prototype.getTitle=function(){return _.y(this,1)};_.sK.prototype.setTitle=function(a){return _.u(this,1,a)};_.sK.prototype.se=function(){return _.x(this,_.Lf,2)};
var jrc=function(a,b){return _.rj(a,9,b)},krc=function(a,b){return _.rj(a,10,b)},lrc=function(a,b){return _.u(a,36,b)},mrc=function(a,b){return _.tj(a,38,b)},nrc=function(a,b){return _.u(a,2,b)},orc=function(a,b){return _.F(a,3,b)},prc=function(){var a=new _.qI;return _.u(a,5,!0)},qrc=function(a){_.I.call(this,a)};_.J(qrc,_.I);var rrc=function(a){_.I.call(this,a)};_.J(rrc,_.I);var src=function(a){_.I.call(this,a)};_.J(src,_.I);var trc=function(a){_.I.call(this,a)};_.J(trc,_.I);
var urc=function(a){_.I.call(this,a)};_.J(urc,_.I);var vrc=function(a){_.I.call(this,a)};_.J(vrc,_.I);vrc.prototype.Py=function(){return _.N(this,1)};vrc.prototype.Uo=function(){return _.y(this,5)};vrc.prototype.Tm=function(){return _.y(this,6)};vrc.prototype.ew=function(a){return _.u(this,6,a)};var wrc=function(a,b){return _.u(a,1,b)},xrc=function(a,b){return _.u(a,3,b)},yrc=function(a,b){return _.u(a,4,b)},zrc=function(a,b){_.u(a,7,b)},Arc=function(a){_.I.call(this,a)};_.J(Arc,_.I);
Arc.prototype.Py=function(){return _.N(this,2)};var Brc=function(a,b){_.u(a,1,b)},Crc=function(a){_.I.call(this,a)};_.J(Crc,_.I);Crc.prototype.Tm=function(){return _.y(this,3)};Crc.prototype.ew=function(a){return _.u(this,3,a)};Crc.prototype.Uo=function(){return _.y(this,4)};var Drc=function(a){_.I.call(this,a)};_.J(Drc,_.I);var Erc=function(a){_.I.call(this,a)};_.J(Erc,_.I);
var Frc=function(a,b){return _.u(a,1,b)},Grc=function(a,b){return _.u(a,2,b)},Hrc=function(a,b){_.u(a,3,b)},Irc=[1,3,5],Jrc=function(a){_.I.call(this,a,-1,Irc)};_.J(Jrc,_.I);Jrc.prototype.vD=function(){return _.me(this,1)};Jrc.prototype.Py=function(){return _.N(this,2)};Jrc.prototype.Uo=function(){return _.y(this,7)};Krc=function(a,b){_.u(a,2,b)};Lrc=function(a,b){_.vj(a,5,b,void 0)};Mrc=function(a,b){_.u(a,6,b)};Nrc=function(a,b){_.u(a,7,b)};Orc=function(a,b,c){_.ZJ(a,b,c,"warning")};
_.Prc=function(a,b){_.F(a,2,b)};Qrc=function(a){return[].concat(_.bc(a.O))};Rrc=function(a){return a.H.concat([].concat(_.bc(a.O)))};Src=function(a,b){var c=new Set;b=_.m(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.H.includes(d)||a.O.has(d)||(a.O.add(d),c.add(d));return[].concat(_.bc(c))};aL=function(a){var b=_.gK(a).hd();b||(b=new _.xic,a=_.gK(a),_.F(a,1,b));return b};Trc=function(a){var b=_.x(_.gK(a),Jrc,3);b||(b=new Jrc,a=_.gK(a),_.F(a,3,b));return b};
bL=function(a){var b=_.x(_.gK(a),vrc,16);b||(b=new vrc,a=_.gK(a),_.F(a,16,b));return b};Urc=function(a){var b=_.x(_.gK(a),src,7);b||(b=new src,a=_.gK(a),_.F(a,7,b));return b};Vrc=function(a){var b=_.x(_.gK(a),urc,12);b||(b=new urc,a=_.gK(a),_.F(a,12,b));return b};Wrc=function(a){var b=_.x(_.gK(a),Arc,17);b||(b=new Arc,a=_.gK(a),_.F(a,17,b));return b};Xrc=function(a){var b=_.x(_.gK(a),Erc,21);b||(b=new Erc,a=_.gK(a),_.F(a,21,b));return b};
Yrc=function(a){if(a instanceof _.RH)return 2;if(a instanceof _.bG)return 10;if(a instanceof _.zf)return _.jJ(a)?3:_.kJ(a)?7:_.mJ(a)?8:1;if(a instanceof _.XF)return 9;if(a instanceof _.jG)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 _.oD)return 4;if(a instanceof _.eA)return 12;if(a instanceof _.cG)return 13}return 0};
Zrc=function(a){var b=null;a instanceof _.eI||"undefined"!=typeof _.iK&&a instanceof _.iK||"undefined"!=typeof _.jK&&a instanceof _.jK?b=a.Xe()||0:"undefined"!=typeof _.lK&&a instanceof _.lK||"undefined"!=typeof _.mK&&a instanceof _.mK||"undefined"!=typeof _.nK&&a instanceof _.nK||"undefined"!=typeof _.oK&&a instanceof _.oK||"undefined"!=typeof _.pK&&a instanceof _.pK?b=a.Oe:"undefined"!=typeof _.kK&&a instanceof _.kK&&(b=a.Xe());return b||0};
cL=function(a,b,c){return a.V&&_.Pjc(a)?(a=_.Ljc(a.V,b,0),c&&_.Hgc(a,c),a):null};$rc=function(a){a.V&&_.Pjc(a)&&(a=a.V,a.H.SP()&&a.H.A_())};asc=function(a,b){return _.F(a,1,b)};bsc=function(a){var b=new _.fJ;return _.u(b,1,a)};csc=function(a,b){return _.F(a,2,b)};dsc=function(a,b){a.ha=b};esc=[2];fsc=function(a){_.I.call(this,a,-1,esc)};_.J(fsc,_.I);_.g=fsc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.oN=function(){return _.zb(this,_.xk,2)};
_.g.Qha=function(a){_.yj(this,2,a,_.xk,void 0)};_.g.Yj=function(){return _.y(this,3)};var gsc=function(a,b){return _.tj(a,2,b)},hsc=[2],isc=function(a){_.I.call(this,a,-1,hsc)};_.J(isc,_.I);isc.prototype.Cb=function(){return _.y(this,1)};isc.prototype.Cc=function(a){return _.u(this,1,a)};isc.prototype.Yj=function(){return _.y(this,3)};
var jsc=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.kn,a.H.promise):null},ksc=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.Wv.config.timestamp)&&b.push(e)}a=_.m(a.buckets);for(d=a.next();!d.done;d=a.next()){c=[];d=_.m(d.value.cj);for(e=d.next();!e.done;e=d.next())(e=e.value.Wv.config.timestamp)&&c.push(e);_.Ba(b,c)}return b},lsc=function(a,b){return gsc(new fsc,(b.items||
[]).map(function(c){return _.emc(a,c)}))},msc=function(a,b){return Iqc(Hqc(Gqc(_.Ohc(_.Mhc(new _.moa,b.entryCount),(b.selectPermissions||[]).map(function(c){return _.emc(a,c)})),b.memberCount),b.userEntryCount),b.groupEntryCount)},nsc=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},osc=function(a,b){if(!(a instanceof b.constructor))throw Error("$");var c=a.Os(!1);
b=b.Os(!1);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.constructor.messageId&&(d[0]=a.constructor.messageId,e=1);for(;e<f;e++)_.eba(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)},psc=[2],qsc=function(a){_.I.call(this,a,-1,psc)};_.J(qsc,_.I);qsc.prototype.Cb=function(){return _.y(this,1)};qsc.prototype.Cc=function(a){return _.u(this,1,a)};qsc.prototype.nXa=function(){return _.zb(this,_.zEa,2)};qsc.prototype.Yj=function(){return _.y(this,3)};rsc=[2,6];
_.jK=function(a){_.I.call(this,a,-1,rsc)};_.J(_.jK,_.I);_.g=_.jK.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.zd=function(){return _.zb(this,_.Kk,2)};_.g.fB=function(a){return _.tj(this,2,a)};_.g.$g=function(a,b){return _.yj(this,2,a,_.Kk,b)};_.g.Yj=function(){return _.y(this,3)};_.g.Rl=function(){return _.P(this,4,!0)};var ssc=function(a,b){return _.tj(a,6,b)};_.jK.prototype.Wf=function(){return _.y(this,10)};
_.jK.prototype.RP=function(a){return _.u(this,10,a)};_.jK.prototype.Xe=function(){return _.y(this,9)};_.jK.prototype.mi=function(a){return _.u(this,9,a)};
var tsc={SUCCESS:1,O9b:2,G0b:3,eXb:4,a$b:5,s4b:6,g4b:7,SXb:8,L8b:9,$8b:10,N9b:11,xZb:12,bZb:13,I1b:14,Z_b:15,fZb:16,eZb:17,kZb:18,hZb:19,iZb:20,r9b:21,X9b:22,L4b:23,Q3b:24,KXb:25,PERMISSION_DENIED:26,e3b:27,YXb:28,XXb:29,INTERRUPTED:30,k5b:31,F5b:32,MZb:33,SZb:34,S8b:35,ZZb:36,$_b:37,RZb:38,f4b:39,DYb:40,f5b:41,H5b:42,J8b:43,pYb:44,CYb:45,X_b:46,$2b:47,d4b:48,C4b:49,g5b:50,C8b:51,cZb:52,K8b:53,I8b:54,vYb:55,sYb:56,j_b:57,y3b:58,h5b:59,w2b:60,W6b:61,K7b:62,q8b:63,Y1b:64,S3b:65,d$b:66,a_b:67,a0b:68,
M9b:69,c2b:70,WXb:71,kYb:72,S7b:73,r8b:74,n8b:75,l8b:76,G7b:190,k8b:191,T7b:192,Z7b:126,V7b:128,W7b:129,X7b:130,Y7b:131,$7b:132,a8b:133,e7b:127,b7b:134,c7b:135,g7b:136,h7b:137,i7b:138,d7b:194,f7b:195,j7b:196,a7b:197,J7b:189,V6b:139,X6b:140,k7b:141,l7b:142,x7b:143,A7b:144,B7b:145,C7b:146,D7b:147,E7b:148,F7b:149,I7b:150,O7b:151,Q7b:152,R7b:153,U7b:154,b8b:155,d8b:156,e8b:157,f8b:158,g8b:159,h8b:160,i8b:161,m8b:162,p8b:163,s8b:164,Y6b:165,Z6b:166,$6b:167,T6b:168,U6b:169,o7b:170,m7b:171,n7b:172,p7b:173,
q7b:174,r7b:175,s7b:176,t7b:177,u7b:178,v7b:179,w7b:180,y7b:181,z7b:182,H7b:106,P7b:183,c8b:184,j8b:185,L7b:186,M7b:187,N7b:188,o8b:244,e5b:77,R9b:78,W9b:79,l3b:80,N1b:81,P1b:82,i_b:83,W_b:84,f3b:85,k9b:86,QZb:87,e2b:88,d2b:89,v8b:90,t8b:91,u8b:92,S9b:93,SYb:94,RYb:95,OYb:96,QYb:97,PYb:98,c$b:99,F6b:100,nZb:101,gZb:102,lZb:103,jZb:104,mZb:105,b0b:107,X8b:108,z6b:109,G9b:110,e0b:111,d0b:112,B2b:113,C2b:114,L5b:115,wYb:116,J2b:117,u_b:118,T9b:119,l4b:120,m4b:121,J1b:193,dZb:122,GZb:123,M1b:124,L3b:125,
f2b:198,p5b:199,V1b:200,IWb:201,a2b:202,Z1b:203,aYb:204,B$b:205,R2b:206,LYb:207,i4b:208,G5b:209,B6b:210,iXb:211,z2b:212,G2b:213,N8b:214,M8b:215,X1b:216,H1b:217,W1b:218,c_b:219,a9b:220,d_b:221,x2b:222,U8b:223,m$b:224,W3b:225,T8b:226,IZb:227,P2b:228,h_b:229,GYb:230,i9b:231,N3b:232,FILE_TOO_LARGE:233,b2b:234,b_b:235,T_b:236,B5b:237,T3b:238,tWb:239,HYb:240,$3b:241,M6b:242,OZb:243,GWb:245,Q1b:246,E4b:247,O1b:248,k3b:249,R3b:250,Y_b:251,N0b:252,A2b:253,tYb:254,c0b:255,b$b:256,z0b:257,u3b:258,T5b:259,o5b:260,
m2b:261,sZb:262,PZb:263,JXb:264,d3b:265,$9b:266,xWb:267,zXb:268,yXb:269,e4b:270,rWb:271,sWb:272,MXb:273,KYb:274,BXb:275,AXb:276,Q2b:277,f0b:278,S1b:279,M5b:280,e9b:281,v3b:282,S2b:283,T2b:284,FYb:285,jXb:286,q4b:287,VXb:288,ZXb:289,$Xb:290},usc={U9b:0,w3b:1,N4b:2,A4b:3,h2b:4,fXb:5,x3b:6,B4b:7,o1b:8,IXb:9,y4b:10},vsc=function(){this.map={};this.status=6;this.Oe=null};_.g=vsc.prototype;_.g.Cb=function(){return this.status};_.g.Cc=function(a){this.status=a};_.g.Xe=function(){return this.Oe};
_.g.mi=function(a){this.Oe=a};_.g.kt=function(){return this.map};var wsc=function(a,b){a.map=b};vsc.prototype.Gc=function(a){var b=[];_.Ra(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Oe,me:b})};var xsc=function(a,b,c){c=JSON.parse(c);a.Cc(c.s);a.mi(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d},ysc=function(){vsc.apply(this,arguments)};_.J(ysc,vsc);_.iK=function(){vsc.apply(this,arguments)};_.J(_.iK,vsc);
var dL=function(a){_.yi.call(this);var b=this;this.ta=a;this.active=!1;_.af(this,function(){b.active=!1})};_.J(dL,_.yi);dL.prototype.Oi=function(){return String(_.Fa(this))};dL.prototype.activate=function(){this.active||(this.log("livelist "+this.Oi()+" activated."),this.active=!0,this.MP())};dL.prototype.isActive=function(){return this.active};dL.prototype.log=function(a,b){this.ta.log(this.logName,a,void 0===b?"info":b)};
_.eL=function(a,b,c,d,e,f){dL.call(this,c);var h=this;this.O=a;this.ma=b;this.request=e;this.wa=f;this.H=[];this.items=[];this.status=6;this.W=_.kec(new _.cI,[1]);this.V=!0;this.Oe=0;this.Ba=d;this.limit=e.wi();_.af(this,function(){h.H=[]});_.l7a++};_.J(_.eL,dL);_.g=_.eL.prototype;_.g.activate=function(){dL.prototype.activate.call(this);_.qa(this.items)&&6===this.Cb()&&this.nk()||zsc(this)};_.g.MP=function(){};_.g.hd=function(){return this.request};_.g.wi=function(){return this.limit};_.g.Cb=function(){return this.status};
_.g.ws=function(){return this.W};_.g.nk=function(){return this.V};_.g.ms=function(){var a=_.Jy(_.j7a(),this.H,this.items),b=(new qsc).Cc(this.Cb());a=_.tj(b,2,a);this.H=this.items;return a};_.g.Eu=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 Asc=function(a,b){return a.Cb()!==b.Cb()||$K(_.j7a(),a.items,b.zd())},Bsc=function(a,b){a.items=b.zd();a.status=b.Cb();_.mI(a.wa)&&(a.W=dnc(a.status,a.items));a.V=b.Rl();a.Oe=b.Xe()};_.eL.prototype.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a query after "+a.retryCount+" retries.",a.error)))};_.eL.prototype.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};
_.eL.prototype.Lu=function(a,b){var c=this;b+="\n\n\nQuery:\n"+fL(this.O,this.hd());return this.ma.then(function(d){return d.SOb(a,b,c.hd(),c.wi(),c.items)})};
var zsc=function(a){if(a.isActive()){var b=a.ws().H();a.log("Livelist "+a.Oi()+" returning "+a.items.length+". Status: "+(_.db(tsc)[a.Cb()]+". ")+(6===a.Cb()?"MissingTypes: "+b.join(",")+". ":"")+("Datasource: "+_.db(usc)[a.Oe]+". Query: ")+(fL(a.O,a.request)+" ")+enc(a.items));Csc(a,a.items,a.request);a.dispatchEvent(new _.pi(_.cd,a))}},Csc=function(a,b,c){if(_.jJ(c))c="quick access";else if(_.kJ(c))c="people predict";else if(_.mJ(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))};_.eL.prototype.refresh=function(){};_.eL.prototype.Ya=function(){_.m7a++;dL.prototype.Ya.call(this)};var inc=[1004,1005,1002,1003],wnc=[1002,1003,1005],Dsc=[1,2],Esc=function(a){_.I.call(this,a,-1,Dsc)};_.J(Esc,_.I);
var Fsc=function(a,b,c,d,e,f){dL.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=_.kec(new _.cI,[1]);this.log("Creating find by ids live map: "+this.request.nm().join(", "));_.af(this,function(){h.H={}});_.Njb++};_.J(Fsc,dL);_.g=Fsc.prototype;_.g.MP=function(){_.Za(this.items)&&6===this.status||Gsc(this)};_.g.hd=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.iK;_.mI(this.O)?a.Cc(ync(Object.values(this.items))?6:this.status):a.Cc(this.status);a.map=this.items;return a};_.g.ms=function(){var a=Anc(this.H,this.items),b=new ysc;b.Cc(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};_.g.NT=function(a){Hsc(a);var b=this.request;this.request=a;this.ka(this.Oi(),b,a)};
_.g.update=function(a){var b=this;0<=_.na(this.hd().nm(),"root")?this.ha.addCallback(function(c){var d=a.kt()[c];d&&(_.$a(a.map,c),a.map.root=d);Isc(b,a)}):Isc(this,a)};var Isc=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=dnc(a.status,Object.values(a.items))),Gsc(a)};Fsc.prototype.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a find-by-IDs query after "+a.retryCount+" retries.",a.error)))};Fsc.prototype.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};
var Gsc=function(a){a.isActive()&&(a.log("Livelist "+a.Oi()+" returning "+(Object.values(a.items).length+". Status: ")+(_.db(tsc)[a.Cb()]+". Query: ")+(fL(a.W,a.request)+" ")+enc(Object.values(a.items))),a.dispatchEvent(new _.pi(_.cd,a)))};Fsc.prototype.Ya=function(){_.Ojb++;dL.prototype.Ya.call(this)};_.Jsc=function(a){_.I.call(this,a)};_.J(_.Jsc,_.I);_.Jsc.prototype.Cb=function(){return _.y(this,1)};_.Jsc.prototype.Cc=function(a){return _.u(this,1,a)};
_.Jsc.prototype.rn=function(){return _.x(this,_.dI,2)};var Ksc=function(a){_.pi.call(this,a)};_.J(Ksc,_.pi);var Lsc=[5,7,9],Msc=function(a){_.I.call(this,a,-1,Lsc)};_.J(Msc,_.I);_.g=Msc.prototype;_.g.getUser=function(){return _.x(this,_.xk,1)};_.g.gB=function(a){_.u(this,2,a)};_.g.setBooleanValue=function(a){return _.u(this,3,a)};_.g.setTextValue=function(a){return _.u(this,4,a)};_.g.Ppa=function(a){return _.rj(this,5,a)};_.g.addTextValues=function(a,b){return _.vj(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.u(this,6,a)};_.g.Lpa=function(a){return _.rj(this,7,a)};_.g.addSelectionValues=function(a,b){return _.vj(this,7,a,b)};_.g.setIntegerValue=function(a){return _.u(this,8,a)};_.g.Cpa=function(a){return _.rj(this,9,a)};_.g.addIntegerValues=function(a,b){return _.vj(this,9,a,b)};var Nsc=[7,10,12,16,13,3],gL=function(a){_.I.call(this,a,-1,Nsc)};_.J(gL,_.I);var hL=function(a){return _.y(a,4)};_.g=gL.prototype;_.g.gB=function(a){_.u(this,4,a)};
_.g.setBooleanValue=function(a){return _.u(this,5,a)};_.g.ebb=function(){return _.y(this,6)};_.g.setTextValue=function(a){return _.u(this,6,a)};_.g.Ppa=function(a){return _.rj(this,7,a)};_.g.addTextValues=function(a,b){return _.vj(this,7,a,b)};_.g.cbb=function(){return _.y(this,8)};_.g.setLongTextValue=function(a){return _.u(this,8,a)};_.g.dbb=function(){return _.y(this,9)};_.g.setSelectionValue=function(a){return _.u(this,9,a)};_.g.PNa=function(){return _.me(this,10)};
_.g.Lpa=function(a){return _.rj(this,10,a)};_.g.addSelectionValues=function(a,b){return _.vj(this,10,a,b)};_.g.bbb=function(){return _.y(this,11)};_.g.setIntegerValue=function(a){return _.u(this,11,a)};_.g.Cpa=function(a){return _.rj(this,12,a)};_.g.addIntegerValues=function(a,b){return _.vj(this,12,a,b)};_.g.fbb=function(){return _.x(this,_.xk,15)};_.g.setUserValue=function(a){return _.F(this,15,a)};_.g.LYa=function(){return _.zb(this,_.xk,16)};var Osc=function(a,b){_.tj(a,16,b)};
gL.prototype.addUserValues=function(a,b){return _.yj(this,16,a,_.xk,b)};gL.prototype.H=function(){return _.y(this,17)};gL.prototype.setDateStringValue=function(a){return _.u(this,17,a)};gL.prototype.V=function(){return _.mj(this,17)};var Psc=function(a,b){_.tj(a,13,b)};gL.prototype.getId=function(){return _.y(this,14)};gL.prototype.Nb=function(a){return _.u(this,14,a)};gL.prototype.getName=function(){return _.y(this,1)};gL.prototype.Zc=function(a){return _.u(this,1,a)};Qsc=[3];
_.iL=function(a){_.I.call(this,a,-1,Qsc)};_.J(_.iL,_.I);_.iL.prototype.getType=function(){return _.y(this,1)};_.iL.prototype.qc=function(){return _.y(this,2)};_.Rsc=function(a){_.I.call(this,a)};_.J(_.Rsc,_.I);_.Rsc.prototype.getFeature=function(){return _.y(this,1)};Ssc=[1];_.fK=function(a){_.I.call(this,a,-1,Ssc)};_.J(_.fK,_.I);var QK=function(a){_.I.call(this,a)};_.J(QK,_.I);QK.prototype.getId=function(){return _.y(this,1)};QK.prototype.Nb=function(a){return _.u(this,1,a)};
QK.prototype.se=function(){return _.x(this,_.Lf,3)};Tsc=[2,3,8];_.wJ=function(a){_.I.call(this,a,-1,Tsc)};_.J(_.wJ,_.I);_.wJ.prototype.getId=function(){return _.y(this,1)};_.wJ.prototype.Nb=function(a){return _.u(this,1,a)};_.wJ.prototype.se=function(){return _.x(this,_.Lf,4)};_.wJ.prototype.uc=function(){return _.y(this,5)};var Usc=function(a){_.I.call(this,a)};_.J(Usc,_.I);var Vsc=[1,2,4],Wsc=function(a){_.I.call(this,a)};_.J(Wsc,_.I);Wsc.prototype.Af=function(){return _.z(this,1)};
Wsc.prototype.kl=function(a){return _.Jj(this,1,a)};Wsc.prototype.getUrl=function(){return _.z(this,2)};_.Xsc=function(a){_.I.call(this,a)};_.J(_.Xsc,_.I);_.Xsc.prototype.getType=function(){return _.pj(this,1,0)};_.Xsc.prototype.getContext=function(){return _.x(this,Wsc,2)};Ysc=[1];Zsc=[2,4];_.$sc=function(a){_.I.call(this,a,-1,Zsc)};_.J(_.$sc,_.I);_.$sc.prototype.getLabel=function(){return _.z(this,1)};_.$sc.prototype.getTitle=function(){return _.z(this,3)};
_.$sc.prototype.setTitle=function(a){return _.Jj(this,3,a)};_.atc=function(a){_.I.call(this,a,-1,Ysc)};_.J(_.atc,_.I);_.btc=[2,3,4];_.ctc=function(a){_.I.call(this,a)};_.J(_.ctc,_.I);_.ctc.prototype.ve=function(){return _.z(this,3)};_.ctc.prototype.On=function(a){return _.Jj(this,4,a)};_.dtc=function(a){_.I.call(this,a)};_.J(_.dtc,_.I);_.etc=function(a){_.I.call(this,a)};_.J(_.etc,_.I);var ftc=function(a){_.I.call(this,a)};_.J(ftc,_.I);gtc=[3,5];_.jL=[8,9,10,11,12,13,14];
_.htc=function(a){_.I.call(this,a)};_.J(_.htc,_.I);_.itc=function(a){_.I.call(this,a,-1,gtc)};_.J(_.itc,_.I);_.itc.prototype.Cb=function(){return _.pj(this,6,0)};_.itc.prototype.Cc=function(a){return _.Kj(this,6,a)};var jtc=function(a){_.I.call(this,a)};_.J(jtc,_.I);var ktc=function(a){_.I.call(this,a)};_.J(ktc,_.I);var ltc=function(a){_.I.call(this,a)};_.J(ltc,_.I);var mtc=[1],ntc=function(a){_.I.call(this,a,-1,mtc)};_.J(ntc,_.I);var otc=function(a){_.I.call(this,a)};_.J(otc,_.I);
var ptc=function(a){_.I.call(this,a)};_.J(ptc,_.I);qtc=[7];_.rtc=[1,2,3];_.stc=function(a){_.I.call(this,a)};_.J(_.stc,_.I);_.ttc=function(a){_.I.call(this,a)};_.J(_.ttc,_.I);_.utc=function(a){_.I.call(this,a)};_.J(_.utc,_.I);_.vtc=function(a){_.I.call(this,a,-1,qtc)};_.J(_.vtc,_.I);var wtc=function(a){_.I.call(this,a)};_.J(wtc,_.I);wtc.prototype.getName=function(){return _.z(this,1)};wtc.prototype.Zc=function(a){return _.Jj(this,1,a)};var xtc=function(a){_.I.call(this,a)};_.J(xtc,_.I);
xtc.prototype.getName=function(){return _.z(this,1)};xtc.prototype.Zc=function(a){return _.Jj(this,1,a)};xtc.prototype.getTitle=function(){return _.z(this,2)};xtc.prototype.setTitle=function(a){return _.Jj(this,2,a)};_.ytc=[1,4];ztc=function(a){_.I.call(this,a)};_.J(ztc,_.I);ztc.prototype.getUser=function(){return _.Gj(this,_.etc,1,_.ytc)};ztc.prototype.kk=function(){return _.x(this,wtc,3)};ztc.prototype.Nn=function(a){return _.F(this,3,a)};ztc.prototype.nH=function(){return _.mj(this,3)};
var Atc=[8,9,10],Btc=function(a){_.I.call(this,a)};_.J(Btc,_.I);Btc.prototype.getType=function(){return _.pj(this,6,0)};var Ctc=function(a){_.I.call(this,a)};_.J(Ctc,_.I);_.Dtc=function(a){_.I.call(this,a)};_.J(_.Dtc,_.I);_.g=_.Dtc.prototype;_.g.getName=function(){return _.z(this,1)};_.g.Zc=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Eka=function(){return _.Gj(this,Btc,9,Atc)};
_.g.uXa=function(){return _.Gj(this,Ctc,10,Atc)};_.g.lj=function(){return _.Dj(this,5)};_.g.getMimeType=function(){return _.z(this,6)};_.g.AB=function(){return _.x(this,ztc,7)};var Etc=function(a){_.I.call(this,a)};_.J(Etc,_.I);var Ftc=[8,9,10],Gtc=function(a){_.I.call(this,a)};_.J(Gtc,_.I);_.g=Gtc.prototype;_.g.getName=function(){return _.z(this,1)};_.g.Zc=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};
_.g.Eka=function(){return _.Gj(this,Btc,9,Ftc)};_.g.uXa=function(){return _.Gj(this,Ctc,10,Ftc)};Htc=[1,3];_.kL=function(a){_.I.call(this,a)};_.J(_.kL,_.I);_.kL.prototype.Kh=function(){return _.Gj(this,Gtc,1,Htc)};_.Itc=[1,2,3];_.Jtc=function(a){_.I.call(this,a)};_.J(_.Jtc,_.I);_.Ktc=function(a){_.I.call(this,a)};_.J(_.Ktc,_.I);var Ltc=function(a){_.I.call(this,a)};_.J(Ltc,_.I);var Mtc=function(a){_.I.call(this,a)};_.J(Mtc,_.I);Ntc=[2,3];_.Otc=function(a){_.I.call(this,a,-1,Ntc)};_.J(_.Otc,_.I);
_.Otc.prototype.getType=function(){return _.pj(this,1,0)};_.Ptc=function(a){_.I.call(this,a)};_.J(_.Ptc,_.I);_.Ptc.prototype.getType=function(){return _.pj(this,1,0)};var Qtc=function(a){_.I.call(this,a)};_.J(Qtc,_.I);Qtc.prototype.getType=function(){return _.pj(this,1,0)};var Rtc=function(a){_.I.call(this,a)};_.J(Rtc,_.I);_.Stc=function(a){_.I.call(this,a)};_.J(_.Stc,_.I);_.Stc.prototype.H=function(){return _.P(this,1)};var Ttc=function(a){_.I.call(this,a)};_.J(Ttc,_.I);Utc=[1,2,4];
_.Vtc=function(a){_.I.call(this,a)};_.J(_.Vtc,_.I);Wtc=[1,2];_.Xtc=function(a){_.I.call(this,a)};_.J(_.Xtc,_.I);_.Xtc.prototype.getParent=function(){return _.x(this,_.kL,1)};_.Xtc.prototype.Ug=function(a){return _.F(this,1,a)};_.Ytc=function(a){_.I.call(this,a,-1,Wtc)};_.J(_.Ytc,_.I);_.Ztc=function(a){_.I.call(this,a,-1,Utc)};_.J(_.Ztc,_.I);_.lL=function(a){_.I.call(this,a)};_.J(_.lL,_.I);_.lL.prototype.getEmail=function(){return _.z(this,1)};_.lL.prototype.getTitle=function(){return _.z(this,2)};
_.lL.prototype.setTitle=function(a){return _.Jj(this,2,a)};_.mL=[2,3,4,5];_.nL=function(a){_.I.call(this,a)};_.J(_.nL,_.I);_.g=_.nL.prototype;_.g.Bf=function(){return _.pj(this,1,0)};_.g.getUser=function(){return _.Gj(this,_.etc,2,_.mL)};_.g.kk=function(){return _.Gj(this,wtc,4,_.mL)};_.g.Nn=function(a){return _.xj(this,4,_.mL,a)};_.g.nH=function(){return _.nj(this,4,_.mL)};var $tc=function(a){_.I.call(this,a)};_.J($tc,_.I);auc=[1,2,3,4];_.buc=function(a){_.I.call(this,a,-1,auc)};_.J(_.buc,_.I);
_.cuc=function(a){_.I.call(this,a)};_.J(_.cuc,_.I);_.duc=function(a){_.I.call(this,a)};_.J(_.duc,_.I);_.euc=function(a){_.I.call(this,a)};_.J(_.euc,_.I);_.fuc=function(a){_.I.call(this,a)};_.J(_.fuc,_.I);_.fuc.prototype.getType=function(){return _.pj(this,1,0)};guc=[1];_.huc=function(a){_.I.call(this,a)};_.J(_.huc,_.I);_.huc.prototype.getFeature=function(){return _.pj(this,1,0)};_.iuc=function(a){_.I.call(this,a,-1,guc)};_.J(_.iuc,_.I);var juc=function(a){_.I.call(this,a)};_.J(juc,_.I);
var kuc=function(a){_.I.call(this,a)};_.J(kuc,_.I);var luc=function(a){_.I.call(this,a)};_.J(luc,_.I);luc.prototype.getType=function(){return _.pj(this,1,0)};_.oL=[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21];_.pL=function(a){_.I.call(this,a)};_.J(_.pL,_.I);_.pL.prototype.$w=function(){return _.Gj(this,luc,10,_.oL)};var muc=function(a){_.I.call(this,a)};_.J(muc,_.I);muc.prototype.getType=function(){return _.pj(this,2,0)};muc.prototype.Gh=function(){return _.z(this,1)};
_.nuc=function(a){_.I.call(this,a)};_.J(_.nuc,_.I);var ouc=function(a){_.I.call(this,a)};_.J(ouc,_.I);_.puc=function(a){_.I.call(this,a)};_.J(_.puc,_.I);_.quc=function(a){_.I.call(this,a)};_.J(_.quc,_.I);_.quc.prototype.getType=function(){return _.pj(this,1,0)};_.qL=[1,2,3,4,5];_.ruc=function(a){_.I.call(this,a)};_.J(_.ruc,_.I);_.ruc.prototype.getUser=function(){return _.Gj(this,_.etc,1,_.qL)};_.suc=function(a){_.I.call(this,a)};_.J(_.suc,_.I);_.g=_.suc.prototype;
_.g.getName=function(){return _.z(this,1)};_.g.Zc=function(a){return _.Jj(this,1,a)};_.g.getTitle=function(){return _.z(this,2)};_.g.setTitle=function(a){return _.Jj(this,2,a)};_.g.Ma=function(){return _.x(this,_.Dtc,3)};_.tuc=function(a){_.I.call(this,a)};_.J(_.tuc,_.I);_.tuc.prototype.getParent=function(){return _.x(this,_.Dtc,4)};_.tuc.prototype.Ug=function(a){return _.F(this,4,a)};_.rL=[1,5,3];_.uuc=function(a){_.I.call(this,a)};_.J(_.uuc,_.I);
_.uuc.prototype.Kh=function(){return _.Gj(this,_.Dtc,1,_.rL)};vuc=function(a,b){return new _.hdc(_.idc.bound(a,b,void 0,void 0))};wuc=function(){var a=new _.$h,b=_.udc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Hd(_.WH(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.xuc=function(a){_.I.call(this,a)};_.J(_.xuc,_.I);_.xuc.prototype.Kp=function(){return _.y(this,1)};_.xuc.prototype.Ad=function(){return _.y(this,2)};
_.xuc.prototype.setSize=function(a){return _.u(this,2,a)};_.xuc.prototype.getUrl=function(){return _.y(this,3)};_.yuc=function(a){_.I.call(this,a)};_.J(_.yuc,_.I);_.yuc.prototype.getType=function(){return _.y(this,1)};zuc=[2,3];_.Auc=function(a){_.I.call(this,a,-1,zuc)};_.J(_.Auc,_.I);Buc=[4,5,6,17,18,24];_.sL=function(a){_.I.call(this,a,-1,Buc)};_.J(_.sL,_.I);_.sL.prototype.getId=function(){return _.y(this,1)};_.sL.prototype.Nb=function(a){return _.u(this,1,a)};
_.sL.prototype.getName=function(){return _.y(this,2)};_.sL.prototype.Zc=function(a){return _.u(this,2,a)};var Cuc=function(a,b){return _.rj(a,4,b)},Duc=function(a,b){return _.rj(a,5,b)};_.sL.prototype.oR=function(){return _.y(this,8)};_.sL.prototype.getType=function(){return _.y(this,23)};var tL=function(a){_.I.call(this,a)};_.J(tL,_.I);tL.prototype.getQuery=function(){return _.x(this,_.zf,1,1)};tL.prototype.Vg=function(a){return _.F(this,1,a)};tL.prototype.rK=function(){return _.mj(this,1)};
tL.prototype.$n=function(){return _.y(this,4)};var Euc=function(a,b){return _.F(a,5,b)},Boc=function(a){_.I.call(this,a)};_.J(Boc,_.I);var Fuc=[1,2,5,7,9,10,12,14],uL=function(a){_.I.call(this,a,-1,Fuc)};_.J(uL,_.I);uL.prototype.zd=function(){return _.zb(this,_.Kk,1)};var Guc=function(a,b){return _.tj(a,1,b)};uL.prototype.$g=function(a,b){return _.yj(this,1,a,_.Kk,b)};uL.prototype.oN=function(){return _.zb(this,_.xk,2)};uL.prototype.Qha=function(a){_.yj(this,2,a,_.xk,void 0)};
var Huc=function(a,b){return _.u(a,3,b)};uL.prototype.yu=function(){return _.y(this,4)};uL.prototype.oz=function(a){return _.u(this,4,a)};var Iuc=function(a,b){return _.tj(a,5,b)};uL.prototype.Jv=function(){return _.N(this,6)};var Juc=function(a,b){return _.u(a,6,b)};uL.prototype.Ff=function(){return _.x(this,_.WB,8)};var Kuc=function(a,b){return _.rj(a,12,b)};uL.prototype.Uo=function(){return _.pj(this,13,0)};
var Luc=function(a,b){return _.u(a,13,b)},Muc={NXb:0,LXb:1,I2b:2,V8b:3,Y8b:4,r4b:5},Nuc=[1],RK=[1,2,3,4,5,6,7],Wnc=function(a){_.I.call(this,a)};_.J(Wnc,_.I);var Xnc=function(a){_.I.call(this,a,-1,Nuc)};_.J(Xnc,_.I);var PK=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],Unc=function(a){_.I.call(this,a)};_.J(Unc,_.I);var aoc=[1,2],$nc=function(a){_.I.call(this,a)};_.J($nc,_.I);var doc=[1,2,3],coc=function(a){_.I.call(this,a)};_.J(coc,_.I);var Ouc=[3],vL=function(a){_.I.call(this,a,-1,Ouc)};_.J(vL,_.I);
vL.prototype.tq=function(){return _.y(this,1)};var Puc=function(a,b){return _.u(a,1,b)};vL.prototype.getTitle=function(){return _.y(this,2)};vL.prototype.setTitle=function(a){return _.u(this,2,a)};vL.prototype.zd=function(){return _.zb(this,_.Kk,3)};var Quc=function(a,b){return _.tj(a,3,b)};vL.prototype.$g=function(a,b){return _.yj(this,3,a,_.Kk,b)};vL.prototype.V=function(){return _.y(this,4)};var Ruc=function(a,b){return _.u(a,4,b)};vL.prototype.H=function(){return _.x(this,_.Ak,5)};
var Suc=function(a,b){return _.F(a,5,b)},Tuc=[2],wL=function(a){_.I.call(this,a,-1,Tuc)};_.J(wL,_.I);wL.prototype.Cb=function(){return _.y(this,1)};wL.prototype.Cc=function(a){return _.u(this,1,a)};wL.prototype.Yk=function(){return _.zb(this,vL,2)};var Uuc=function(a,b){return _.tj(a,2,b)};wL.prototype.Wf=function(){return _.y(this,4)};Vuc=function(a,b){return _.u(a,4,b)};_.kK=function(a){_.I.call(this,a)};_.J(_.kK,_.I);_.g=_.kK.prototype;_.g.Cb=function(){return _.y(this,1)};
_.g.Cc=function(a){return _.u(this,1,a)};_.g.uU=function(){return _.Bb(this,2,void 0,_.dI)};_.g.Yj=function(){return _.y(this,3)};_.g.Xe=function(){return _.y(this,5)};_.g.mi=function(a){return _.u(this,5,a)};var Wuc=function(a,b){return 1<a?2===b:a===b},Xuc=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("ef");},xL=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=xL.prototype;
_.g.clone=function(){return new xL(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.pz=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&&_.Cj(this.item,a.getItem())};
var Yuc=function(a,b){a.H=b;return a},yL=function(a){return a instanceof _.Kk?null!=a.getId()&&a.getId()==a.uc():null!=a.qc()&&a.qc()==a.uc()},Zuc=function(a,b,c){c=void 0===c?[]:c;var d=a.clone(),e=b.Uh();null!=e&&onc(a,e.clone());if((e=b.getCapabilities())&&null!=_.N(e,13)){var f=a.getCapabilities()||new _.Dk;_.u(f,13,_.N(e,13));_.QJ(a,f)}e&&null!=_.N(e,18)&&(f=a.getCapabilities()||new _.Dk,_.u(f,18,_.N(e,18)),_.QJ(a,f));MK(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.Uh()&&MK(a,d,c)},$uc=function(a,b,c){c=void 0===c?[]:c;if(!b||!yL(a)&&!yL(b))return a;if(2==a.Jv()){c=_.y(a,82);var d=b.clone();Zuc(d,a);_.Vhc(d,b.Jv());_.AI(d,c);return d}a=a.clone();Zuc(a,b,c);return a},avc=function(a){return(a=a?a.Uh():null)&&_.N(a,7)||!1},bvc=function(a,b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},cvc=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]={}})},evc=function(a,b,c){b.every(function(d){return yL(d)})?dvc(b,c,a.H,a.O):b.every(function(d){return!yL(d)})&&dvc(b,c,a.items,a.fields)},dvc=function(a,b,c,d){b=_.Ogc(b,[].concat(_.bc(d)));if(0!==b.length)for(a=_.m(a),d=a.next();!d.done;d=a.next()){d=d.value;var e=d.xf();e=e?_.se(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&&MK(d,k,[h]);e&&(k=c[h][e.getId()])&&MK(e,k,[h])}}};
bvc.prototype.update=function(a,b,c){b&&yL(b)?fvc(a,b,this.H,this.O,c):fvc(a,b,this.items,this.fields,c)};bvc.prototype.EJ=function(a){var b=this;_.Ra(this.items,function(c,d){_.$a(b.items[d],a)});_.Ra(this.H,function(c,d){_.$a(b.H[d],a)})};
var fvc=function(a,b,c,d,e){_.Ra(c,function(f,h){h=Number(h);if(e.includes(h)&&(f[a]&&!b?_.$a(f,a):b&&lnc(b,[h])&&(f[a]=gvc(b,h)),b)){var k=b.xf();(k=k?_.se(k):null)&&lnc(k,[h])&&(f[k.getId()]=gvc(k,h))}});b&&hnc(b,[].concat(_.bc(d)))},gvc=function(a,b){var c=new _.Kk;c.Nb(a.getId());MK(c,a,[b]);return c};bvc.prototype.clear=function(){var a=this;_.Ra(this.items,function(b,c){a.items[c]={}});_.Ra(this.H,function(b,c){a.H[c]={}})};
bvc.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var hvc=function(a,b,c){var d=this;this.Bt=b;this.Rv=c;this.Dd=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=hvc.prototype;_.g.Fy=function(){return this.Dd};_.g.dk=function(a){var b=new Map;a=_.m(a.nm());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(ivc(a)){for(var d=_.m(this.Dd.values()),e=d.next();!e.done;e=d.next())e=e.value,zL(this.Bt,a,e.getItem())&&(void 0===b||Wuc(e.V,b))&&c.push(e);this.Rv.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--,jvc(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 jvc=function(a,b){return 1<b.$b()||Wuc(b.V,2)||b.getItem().ZI()||Gnc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};hvc.prototype.EJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b=b.value,jvc(this,b)&&(this.Dd.delete(b.getId()),b.count--)};
var kvc=function(a,b,c,d){this.Dg=a;this.W=b;this.O=c;this.V=d},Coc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),evc(a.V,[b.getItem()],Rrc(a.Dg)),b):null};kvc.prototype.H=function(a){return(a=Coc(this,a))?a.getItem():null};var lvc=function(a,b){var c={};b.forEach(function(d){var e=Coc(a,d);e&&(c[d]=e)});return c},mvc=function(a,b){return _.Ta(lvc(a,b),function(c){return c.getItem()})},nvc=function(a,b){b=AL(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};
kvc.prototype.query=function(a){return nvc(this,a).map(function(b){return b.getItem()})};kvc.prototype.Ad=function(){return this.O.Fy().size};
var ovc=function(a){var b=new Set;a=_.m(a.O.Fy().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Lk(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||KK(e));(d=c.Cm())&&b.add(d.getId()||KK(d));(d=c.Zr())&&b.add(d.getId()||KK(d));(d=c.oq())&&b.add(d.getId()||KK(d));(c=c.zD())&&b.add(c.getId()||KK(c))}return b.size},pvc=function(a){return[].concat(_.bc(new Set(a.map(function(b){return _.vfc.get(b)}).filter(function(b){return b})))).join(",")},BL=function(a,
b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.bc(b));b=pvc(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":
_.P(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";_.P(a,77,!1)&&(c+=",canChangeCategoryReferences");
return(b.length?d+","+b:d)+",capabilities("+c+")"},qvc=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+BL(a,b,!1)+")"},rvc=function(a){var b=new _.zo;_.eK(b,"hidden",_.N(a,4));a=_.N(a,6);null!=a&&_.eK(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},svc=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}},tvc=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.lB()||!1;case 12:return b.Dz()||0;case 11:return b.zB()||0;case 10:return b.Mq()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.Oy()||0;case 57:return _.y(b,62)||0;case 32:return b.kv()||0;case 9:return b.kD()||0;case 67:return b.gK()||0;case 98:return b.Aw()||0;default:return""}},uvc=function(a){var b=_.Jcc(),c={};b&&(c.numeric=b);this.H=_.Kcc(a,c)};
uvc.prototype.compare=function(a,b,c){b=vvc(b);c=vvc(c);a=a.Kc();var d=svc(a);if(a&&d){d=wvc(this,a);var e=4===a.getType()?this.H:_.Ha;return xvc(a,d,e,b,c)}return _.Ha(b.getId(),c.getId())};uvc.prototype.sort=function(a,b,c){a=a.Kc();var d=svc(a);a&&d&&(d=wvc(this,a),d=yvc(b,d),_.Ja(b,zvc(this,a,d)));c&&0<c&&_.ua(b,c,b.length-c)};
var vvc=function(a){return a instanceof _.Kk?a:a.getItem()},wvc=function(a,b){b=svc(b);return _.K(a.O,a,b,_.Ha)},yvc=function(a,b){var c={};a.forEach(function(d){d=vvc(d);var e=d.getId();c[e]=b(d)});return c},zvc=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ha;d=vvc(d);e=vvc(e);return xvc(b,function(h){return c[h.getId()]},f,d,e)}},xvc=function(a,b,c,d,e){var f=1===a.Vf()?1:-1;if(_.N(a,3)){a=OK(d,!0);var h=OK(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()))};uvc.prototype.O=function(a,b,c){for(var d=tvc(a[0],c),e=1;e<a.length;e++){var f=tvc(a[e],c);d=1===b(f,d)?f:d}return d};var Avc=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.anonymous=_.KI(_.fI(b));a=_.IJ(b);this.V=!(!a||!_.P(a,1,!1));this.O=!(!a||!_.P(a,8,!1))};Avc.prototype.oz=function(a){this.rootId=a||""};
var AL=function(a,b,c){b=b.clone();"root"===b.getId()&&b.Nb(a.rootId);_.pl(b).filter(function(d){return"root"===d.Xa()}).forEach(function(d){return d.Hb(a.rootId)});_.Ff(b,_.ol(b).map(function(d){d.Hb(d.Xa().toLowerCase());return d}));c&&_.nl(b,a.fields);b.H().sort();return b},fL=function(a,b,c){if(b instanceof _.zf){b=AL(a,b);var d=_.kjc(b)}else if(b instanceof _.XF)d=b.nm().sort().join(","),_.P(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.RH)return d=rvc(b),d+"|tdList";if(b instanceof _.bG)return d=
b.nm().sort().join(","),b.H().length&&(d+="|"+pvc(b.H())),d+"|tdMap";throw Error("jf");}return 3===c?d:d+"|"+Bvc(a,b.H(),2===c)},Bvc=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(_.bc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.OI({fields:[].concat(_.bc(f)),anonymous:a.anonymous}));e.size&&(d=d+" + "+_.OI({fields:[].concat(_.bc(e)),
anonymous:a.anonymous}));return d};Avc.prototype.equals=function(a,b,c){var d;c&&(d=3);return fL(this,a,d)===fL(this,b,d)};
var Hsc=function(a){if(!a.nm().every(function(b){return!_.Oe(b)}))throw new _.Rc("Invalid ids for FindByIdsRequest");},Dvc=function(a,b,c){if(_.kJ(b))throw new _.Rc("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");Cvc(a,b,c)},Cvc=function(a,b,c){var d;a.O||(d=_.MI(3));if(b.getId())throw new _.Rc("Use findByIds() for find by id queries.",d?d:_.MI(3));if(!b.wi()||0>=b.wi())throw new _.Rc("A positive limit is required on an ItemQueryRequest.",d?d:_.MI(3));
_.me(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),Evc(a,d,b.H()));if(c=(c=b.Kc())&&svc(c))d=b.H().length?b.H():a.fields,Evc(a,d,c);if(_.jJ(b)){if(a.anonymous)throw new _.Rc("User must be authenticated for a Quick Access request.");if(!Fvc(a)&&20<b.wi())throw new _.Rc("Limit must be in the range [1, 20].");c=2===_.TJ(b);d=_.me(b,33).length;if(c&&1!==d||d&&!c)throw new _.Rc("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.uj(_.wb(_.sj(_.wb(_.wb(_.wb(_.gI(_.wb(_.sj(_.gI(b.clone(),
1),30),32),33),45),47),74),75),48),6);d=new _.zf;if(!_.Cj(c,d))throw new _.Rc("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: "+osc(d,c));}else if(_.P(b,74,!1))throw new _.Rc("If is_quick_access_for_shared_files_request is set to true, is_quick_access_request must also be true.");if(_.mJ(b)){if(a.anonymous)throw new _.Rc("User must be authenticated for a DrivePriority request.");
if(2===_.TJ(b))throw new _.Rc("Team Drive corpora is not valid for a Drive Priority request.");a=_.wb(_.wb(_.wb(_.sj(_.gI(b.clone(),1),30),32),45),52);b=new _.zf;if(!_.Cj(a,b))throw new _.Rc("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+osc(b,a));}},Gvc=function(a,b,c){if(!_.kJ(b))throw new _.Rc("Expected a PeoplePredict request.");Cvc(a,b,c);if(a.anonymous)throw new _.Rc("User must be authenticated for a People Predict request.");
if(2===_.TJ(b))throw new _.Rc("Team Drive corpora is not valid for a People Predict request.");a=_.wb(_.wb(_.wb(_.sj(_.gI(b.clone(),1),30),32),45),49);b=new _.zf;if(!_.Cj(a,b))throw new _.Rc("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+osc(b,a));},Evc=function(a,b,c){var d;a.O||(d=_.MI(3));if(!mnc(b,c,_.Mgc)){var e=_.OI({fields:c,anonymous:a.anonymous}),f=_.OI({fields:b,anonymous:a.anonymous});
a=_.OI({fields:nnc(c,b),anonymous:a.anonymous});throw new _.Rc("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.MI(3));}},Fvc=function(a){return 200<=_.VJ(a.H)&&300>_.VJ(a.H)},Hvc=function(a){var b=new Set;a=_.m(_.ol(a));for(var c=a.next();!c.done;c=a.next())switch(_.JMa(c.value.Xa())){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(_.bc(b))},Ivc=function(a){switch(_.VJ(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"}},Jvc=function(a){a=_.pl(a);return 1===a.length?a[0].Xa():null},Kvc=function(a){_.L.call(this);this.H=a};_.ig(Kvc,_.L);_.g=Kvc.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.JO=function(a){this.H.addCallback(function(b){b.JO(a)})};
_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Ya=function(){this.cancel();Kvc.ub.Ya.call(this)};var Onc=function(a){_.Sy.call(this);this.Oo=a;this.H=_.Ze(this.Oo,"message",this.Jqb,!1,this)};_.ig(Onc,_.Sy);_.g=Onc.prototype;_.g.Zf=null;_.g.send=function(a,b){var c=[];b=this.Gza(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.Ifc&&(a=(0,_.Ei)(a));this.Oo.postMessage(a,c)};
_.g.Jqb=function(a){a=a.ze;var b=a.data;if(_.Ifc)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.rDa(a.ports||[],b),d.mGa),null!=b&&d.callback(b))}};
_.g.Gza=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,_.K)(this.Gza,this,a)):b&&b.constructor==Object?_.Ta(b,function(c,d){c=this.Gza(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.rDa=function(a,b){return Array.isArray(b)?b.map((0,_.K)(this.rDa,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.Ta(b,function(c,d){return this.rDa(a,"_port"==d?c.val:c)},this):b};_.g.Ya=function(){_.wi(this.H);"[object MessagePort]"==Object.prototype.toString.call(this.Oo)?this.Oo.close():"[object Worker]"==Object.prototype.toString.call(this.Oo)&&this.Oo.terminate();delete this.Oo;Onc.ub.Ya.call(this)};
var Rnc=function(a,b){if("*"==b)return new Kvc(_.hi(Error("kf")));var c=new _.zi(50),d=_.gb(_.da,c),e=new _.$h(d);_.bi(e,d);c.start();_.Ze(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new Onc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new Kvc(e)},Lvc=function(a){_.L.call(this);this.H=new _.Lcc(a);this.V={};this.O=_.Ncc(this.H,
"private");this.W=_.Ncc(this.H,"public");this.O.registerService("mics",(0,_.K)(this.bob,this),!0)};_.ig(Lvc,_.L);_.g=Lvc.prototype;_.g.eIb=0;_.g.Ya=function(){_.da(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.eIb++;this.V[d]=c;c={signature:d};c.data=b;this.W.send(a,c)};_.g.bob=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,_.K)(this.aob,this,b),!0)};
_.g.aob=function(a,b){a=a(b.data);var c=b.signature;_.Vh(a).then((0,_.K)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var Mvc=function(a,b){_.L.call(this);this.W=b;this.started=!1;this.V=new _.Lcc(a);this.Ja(this.V);this.H=new Lvc(_.Ncc(this.V,"direct"));this.Ja(this.H)};_.J(Mvc,_.L);Mvc.prototype.registerService=function(a,b){this.H.registerService(a,b)};Mvc.prototype.send=function(a,b,c){this.H.send(a,b||{},function(d){return(c||_.eg)(d)})};
var Qnc=function(a,b){Mvc.call(this,a,b);this.O=new Lvc(_.Ncc(this.V,"passthrough"));this.Ja(this.O)};_.J(Qnc,Mvc);var CL=function(a,b,c){a.O.registerService(b,function(d){return c(d)})},DL=function(a,b,c,d){a.O.send(b,c||{},d||_.eg)};Qnc.prototype.start=function(){this.started||(this.started=!0)};var Lnc=[],Nvc=function(){_.Sy.call(this);this.H=null};_.J(Nvc,_.Sy);Nvc.prototype.send=function(a,b){_.k8a(this.H,a,b)};
var Snc=function(){this.O=new Nvc;this.H=new Nvc;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)},Ovc=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d;this.H=void 0},Pvc=function(a,b){b=void 0===b?!1:b;void 0===a.H&&(a.H=b)&&Knc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.H}},Qvc=function(a){var b=new Ovc(a.c,a.m,a.a,a.req);b.H=a.s;return b},Rvc=function(a,b,c){this.data=b?void 0:a;this.error=b;this.O=c;this.H=void 0},Svc=function(a,b){b=
void 0===b?!1:b;void 0===a.H&&a.data&&(a.H=b)&&Knc(a.data);return{d:a.data,err:a.error&&b?a.error.Gc():a.error,uid:a.O,s:b}},Tvc=function(a){var b=a.s,c=a.err;c=void 0===c?void 0:b?new _.Pc(JSON.parse(a.err)):c;a=new Rvc(c?void 0:a.d,c,a.uid);c||(a.H=b);return a},Jnc=function(a,b){this.H=a;this.ZD=b};Jnc.prototype.get=function(){for(var a={},b=0;b<this.H.length;b++)a[this.H[b]]=this.ZD[b];return a};
Jnc.prototype.Gc=function(){for(var a={},b={},c=0;c<this.ZD.length;c++){var d=this.ZD[c],e=this.H[c];d instanceof Error?b[e]=_.vI(d).Gc():a[e]=d.Gc()}return{r:a,e:b}};Uvc=function(a,b){if(b){var c=[],d=[];_.Ra(a.r,function(e,f){c.push(f);d.push(new _.GJ(JSON.parse(e)))});_.Ra(a.e,function(e,f){c.push(f);e=new _.Pc(JSON.parse(e));d.push(_.NI(e))});return new Jnc(c,d)}return a};Pnc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};
_.lK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.C0=void 0===c?null:c};_.mK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Oe=void 0===d?0:d};Vvc=function(a){_.mK.call(this,a,void 0,void 0,void 0);this.V5a=new _.kn};_.J(Vvc,_.mK);Wvc=function(a,b){this.response=a;this.pageToken=void 0===b?"":b};_.oK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.C0=void 0===c?null:c};
_.nK=function(a,b,c){this.response=a;this.Oe=void 0===b?0:b;this.C0=void 0===c?null:c};_.pK=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Oe=void 0===d?0:d};Xvc={qWb:0,MWb:1,T1b:3,n$b:5,zkb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.Yvc=function(a){_.I.call(this,a)};_.J(_.Yvc,_.I);_.Yvc.prototype.H=function(){return _.y(this,1)};var Zvc=function(a){_.I.call(this,a)};_.J(Zvc,_.I);Zvc.prototype.H=function(){return _.N(this,1)};
Zvc.prototype.V=function(){return _.y(this,2)};_.EL=function(a){_.I.call(this,a)};_.J(_.EL,_.I);_.g=_.EL.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.getTitle=function(){return _.y(this,2)};_.g.setTitle=function(a){return _.u(this,2,a)};_.g.tta=function(){return _.y(this,3)};_.g.zz=function(){return _.y(this,4)};_.g.daa=function(){return _.x(this,Zvc,6)};_.g.aub=function(){return _.x(this,_.Yvc,7)};_.g.zXa=function(){return _.y(this,8)};
_.g.sta=function(){return _.N(this,9)};_.FL=function(a){_.I.call(this,a)};_.J(_.FL,_.I);_.g=_.FL.prototype;_.g.getType=function(){return _.y(this,1)};_.g.getId=function(){return _.y(this,2)};_.g.Nb=function(a){return _.u(this,2,a)};_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.u(this,3,a)};_.g.Ad=function(){return _.y(this,5)};_.g.setSize=function(a){return _.u(this,5,a)};_.g.Bbb=function(){return _.y(this,6)};_.$vc=function(a,b){return _.u(a,6,b)};
_.FL.prototype.Af=function(){return _.y(this,8)};_.FL.prototype.kl=function(a){return _.u(this,8,a)};_.FL.prototype.H=function(){return _.N(this,9)};_.WI=function(a){_.I.call(this,a)};_.J(_.WI,_.I);_.WI.prototype.Gh=function(){return _.y(this,1)};_.WI.prototype.se=function(){return _.x(this,_.Lf,3)};_.gJ=function(a){_.I.call(this,a)};_.J(_.gJ,_.I);_.gJ.prototype.Gh=function(){return _.y(this,1)};_.gJ.prototype.se=function(){return _.x(this,_.Lf,2)};_.hJ=function(a){_.I.call(this,a)};_.J(_.hJ,_.I);
_.hJ.prototype.Gh=function(){return _.y(this,1)};_.hJ.prototype.se=function(){return _.x(this,_.Lf,2)};_.yJ=function(a){_.I.call(this,a)};_.J(_.yJ,_.I);_.yJ.prototype.Gh=function(){return _.y(this,1)};_.yJ.prototype.se=function(){return _.x(this,_.Lf,4)};var awc=function(a){_.I.call(this,a)};_.J(awc,_.I);bwc=function(a,b){return _.u(a,1,b)};_.XI=function(a){_.I.call(this,a)};_.J(_.XI,_.I);_.XI.prototype.getId=function(){return _.y(this,1)};_.XI.prototype.Nb=function(a){return _.u(this,1,a)};
_.nJ=function(a){_.I.call(this,a)};_.J(_.nJ,_.I);_.nJ.prototype.getId=function(){return _.y(this,1)};_.nJ.prototype.Nb=function(a){return _.u(this,1,a)};_.Zgc=function(a){_.I.call(this,a)};_.J(_.Zgc,_.I);_.uJ=function(a){_.I.call(this,a)};_.J(_.uJ,_.I);_.uJ.prototype.se=function(){return _.x(this,_.Lf,1)};var cwc=function(){var a=new _.uJ,b=_.Mf(new _.Lf,301);return _.F(a,1,b)};_.uJ.prototype.uc=function(){return _.y(this,3)};_.ZI=function(a){_.I.call(this,a)};_.J(_.ZI,_.I);
_.ZI.prototype.qc=function(){return _.y(this,1)};_.ZI.prototype.se=function(){return _.x(this,_.Lf,3)};_.iJ=function(a){_.I.call(this,a)};_.J(_.iJ,_.I);_.g=_.iJ.prototype;_.g.qc=function(){return _.y(this,1)};_.g.Bf=function(){return _.y(this,2)};_.g.getType=function(){return _.y(this,3)};_.g.Xa=function(){return _.y(this,4)};_.g.Hb=function(a){return _.u(this,4,a)};_.g.Ci=function(){return _.wb(this,4)};_.g.Ng=function(){return _.mj(this,4)};_.g.se=function(){return _.x(this,_.Lf,7)};
_.lhc=function(a){_.I.call(this,a)};_.J(_.lhc,_.I);_.lhc.prototype.uc=function(){return _.y(this,1)};_.qJ=function(a){_.I.call(this,a)};_.J(_.qJ,_.I);_.qJ.prototype.qc=function(){return _.y(this,1)};_.qJ.prototype.se=function(){return _.x(this,_.Lf,2)};_.qJ.prototype.wi=function(){return _.Dj(this,3,1E3)};_.qJ.prototype.Gi=function(a){return _.u(this,3,a)};var dwc=function(a,b,c){_.yi.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};_.J(dwc,_.yi);
dwc.prototype.NB=function(){return this.O};dwc.prototype.JQ=function(){var a=this;if(this.W)return this.W;var b=_.Yh();this.W=b.promise;_.aa.setTimeout(function(){a.W=null},5E3);ewc(this,b);return b.promise};dwc.prototype.ta=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,fwc(this))};dwc.prototype.wa=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.aa.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new Ksc("ib")))};
var gwc=function(a,b){a.ha=b},fwc=function(a){a.H||(a.H=new _.Zjc(5E3),a.timeout=_.aa.setTimeout(function(){return hwc(a)},a.H.Xa()))},hwc=function(a){ewc(a);a.H&&(_.ZH(a.H),a.timeout=_.aa.setTimeout(function(){return hwc(a)},a.H.Xa()))},ewc=function(a,b){var c=_.Vh();a.ha&&(c=a.ha());c.then(function(){return iwc(a,b)})},iwc=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Pe(new _.mhc)});b?c.then(function(){b.resolve(bwc(new awc,1))},function(d){var e=_.Vc(d).ug;
d=0;_.Yfc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Up(e),_.u(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new awc;bwc(e,d);b.resolve(e)}):c.then(null,function(d){d=_.Vc(d);_.Yfc(d.ug)&&a.V&&(a.dispatchEvent(new Ksc("jb")),a.V=!1)})};dwc.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};_.nhc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};
_.chc=function(a){this.H=a;this.type=1};_.dhc=function(a){this.H=a;this.type=0};_.khc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};jwc=function(a){return _.Gj(a,_.nI,3,_.oI)||_.Gj(a,_.EJ,4,_.oI)||_.Gj(a,_.sK,5,_.oI)||_.Gj(a,_.BJ,6,_.oI)||_.Gj(a,_.aJ,7,_.oI)||_.Gj(a,_.UI,8,_.oI)||_.Gj(a,_.YI,9,_.oI)||_.Gj(a,_.xI,10,_.oI)};kwc=function(a){_.I.call(this,a)};_.J(kwc,_.I);_.g=kwc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};
_.g.dA=function(){return _.y(this,3)};_.g.Ie=function(){return _.y(this,4)};_.g.Ai=function(a){return _.u(this,4,a)};_.g.ema=function(){return _.mj(this,4)};var lwc=function(a){this.Zf=a;this.H=new Map;this.O=this.Zf.W};
lwc.prototype.create=function(a,b){if(0!=Yrc(b)){var c=this.Zf.H(106001);if(c){var d=Yrc(b),e=aL(c);_.u(e,2,d);d=aL(c);e=null;if(b instanceof _.jG||b instanceof _.XF||b instanceof _.zf||b instanceof _.oJ||b instanceof _.oD||b instanceof _.bG||b instanceof _.RH||b instanceof _.PH||b instanceof _.cG||b instanceof _.eA)e=b.se();e=e&&_.P(e,2,!1);_.u(d,7,"boolean"==typeof e?e:void 0);d=aL(c);b=b instanceof _.zf?0<_.pl(b).length:void 0;_.u(d,8,b);this.H.set(a,c)}}};
var mwc=function(a,b,c){if(a=a.H.get(b))a=aL(a),_.u(a,5,c)},nwc=function(a,b,c){(a=a.H.get(b))&&_.N(aL(a),8)&&(a=aL(a),_.u(a,9,c))},owc=function(a,b,c,d,e){var f=a.H.get(b);f&&(aL(f).Cc(c),aL(f).mi(d),null!=e&&(c=aL(f),_.u(c,6,e)),f.Aj(),a.H.delete(b))},pwc=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=Zrc(c);if(1==e||2==c)e=_.hK(_.Lfc,c),d=aL(d),d=3==e||8==e?!_.N(d,5):0!=e?_.jgc.has(e):null,owc(a,b,1,e,d)}},qwc=function(a,b,c){var d=a.O.Cb(c);d=_.hK(_.Kfc,d||22);var e=Zrc(c);e=_.hK(_.Lfc,
e);owc(a,b,d,e,"undefined"!=typeof _.lK&&c instanceof _.lK||"undefined"!=typeof _.nK&&c instanceof _.nK||"undefined"!=typeof _.oK&&c instanceof _.oK?c.C0:null)},GL=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(aL(d).Cc(c),d.Aj(),a.H.delete(b))},rwc=[2,4],HL=function(a){_.I.call(this,a,-1,rwc)};_.J(HL,_.I);HL.prototype.Cb=function(){return _.y(this,1)};HL.prototype.Cc=function(a){return _.u(this,1,a)};HL.prototype.Yj=function(){return _.y(this,3)};
var swc=[4,9],twc=function(a){_.I.call(this,a,-1,swc)};_.J(twc,_.I);_.g=twc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.bYa=function(){return _.y(this,2)};_.g.UNa=function(){return _.y(this,3)};_.g.Tub=function(){return _.zb(this,_.qI,4)};var uwc=[2],IL=function(a){_.I.call(this,a,-1,uwc)};_.J(IL,_.I);IL.prototype.getName=function(){return _.y(this,1)};IL.prototype.Zc=function(a){return _.u(this,1,a)};IL.prototype.H=function(){return _.zb(this,gL,2)};
var vwc=function(a,b){_.tj(a,2,b)};IL.prototype.qc=function(){return _.y(this,3)};var wwc=function(a,b){return _.u(a,3,b)},xwc=[2],JL=function(a){_.I.call(this,a,-1,xwc)};_.J(JL,_.I);JL.prototype.Cb=function(){return _.y(this,1)};JL.prototype.Cc=function(a){return _.u(this,1,a)};JL.prototype.H=function(){return _.zb(this,IL,2)};var ywc=function(a,b){return _.tj(a,2,b)};JL.prototype.Yj=function(){return _.y(this,3)};var zwc=function(a){_.I.call(this,a)};_.J(zwc,_.I);_.g=zwc.prototype;
_.g.qc=function(){return _.y(this,1)};_.g.Cb=function(){return _.y(this,2)};_.g.Cc=function(a){return _.u(this,2,a)};_.g.getError=function(){return _.x(this,_.Pc,3)};_.g.Qe=function(a){return _.F(this,3,a)};_.g.ho=function(){return _.mj(this,3)};var Awc={V9b:0,w4b:1,z4b:2,x4b:4,$1b:5,g_b:6,g2b:7,M4b:8},Bwc=function(a){_.I.call(this,a)};_.J(Bwc,_.I);Bwc.prototype.getUrl=function(){return _.y(this,1)};var KL=function(a){_.I.call(this,a)};_.J(KL,_.I);var Cwc=function(a,b){return _.u(a,1,b)};
KL.prototype.getName=function(){return _.y(this,2)};KL.prototype.Zc=function(a){return _.u(this,2,a)};KL.prototype.getEmail=function(){return _.y(this,3)};var Dwc=function(a,b){return _.u(a,3,b)};KL.prototype.wq=function(){return _.mj(this,3)};var Ewc=[1],Fwc=function(a){_.I.call(this,a,-1,Ewc)};_.J(Fwc,_.I);var Gwc=function(a,b){return _.tj(a,1,b)},Hwc=[2],LL=function(a){_.I.call(this,a,-1,Hwc)};_.J(LL,_.I);LL.prototype.Cb=function(){return _.y(this,1)};
LL.prototype.Cc=function(a){return _.u(this,1,a)};LL.prototype.Yk=function(){return _.zb(this,_.dI,2)};var Iwc=function(a,b){return _.tj(a,2,b)};LL.prototype.Yj=function(){return _.y(this,3)};var Jwc=function(a,b){this.O=a|0;this.H=b|0};Jwc.prototype.equals=function(a){return this===a?!0:a instanceof Jwc?this.O===a.O&&this.H===a.H:!1};Jwc.prototype.zc=function(){return 31*this.O+17*this.H|0};
var Kwc=function(a,b){return new Jwc(a,b)},Lwc=function(a,b){b=~b;a?a=~a+1:b+=1;return Kwc(a,b)},Mwc=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?Lwc:Kwc)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},Nwc=function(){this.H=this.W=this.O=this.V=null},Owc=[1],Pwc=function(a){_.I.call(this,a,-1,Owc)};_.J(Pwc,_.I);
var Qwc=function(a,b){return _.rj(a,1,b)},Rwc=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=null;this.started=!1},ML=function(a,b,c){if(a.started)throw Error("tf");c={Mo: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)}},NL=function(a,b){if(!a.started)throw Error("uf");if(!a.enabled)throw Error("vf`"+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.Mo.delete(b);if(0===e.Mo.size)try{e.callback()}catch(f){throw a.enabled=!1,a.error=f?_.NI(f):null,f;}}}};Rwc.prototype.H=function(a){return this.V.has(a)};Rwc.prototype.start=function(){this.started=!0};Rwc.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};
var Swc=function(a,b,c){this.id=a;this.O=b;this.H=c},Twc=function(a,b){return new Swc((a?a:b).getId(),a,b)},OL=function(a){return new Swc(a.getId(),null,a)},Uwc=function(a,b){this.Bt=a;this.Rv=b;this.JD=!0;this.N8=!1;this.Oe=0},PL=function(a,b){(a.JD=b)||a.EJ()};_.g=Uwc.prototype;_.g.Kla=function(a,b){if(5===this.UE(a))throw Error("wf");for(var c=[],d=_.m(this.Fy()),e=d.next();!e.done;e=d.next())e=e.value,zL(this.Bt,a,e.getItem())&&c.push(e);this.Rv.sort(a,c,b);return c};_.g.Ad=function(){return this.Fy().length};
_.g.dk=function(a,b){a=this.Kla(a,b);a=joc(a);b=new _.eI;b.fB(a);b.Cc(this.RN()?6:1);return b};_.g.update=function(a){var b=this.Bs(a.O),c=this.Bs(a.H);if(!b&&!c)return!1;b&&this.uJ(a.O);c&&this.cS(a.H);return!0};_.g.UE=function(a){return this.JD&&this.N8?ivc(a)?1:5:5};_.g.NX=function(){this.N8=!0};_.g.Bs=function(a){return!!a&&this.JD};_.g.mi=function(a){this.Oe=a};_.g.Xe=function(){return this.Oe};
var QL=function(a,b,c,d,e,f){f=void 0===f?"":f;Uwc.call(this,a,b);var h=this;this.ha=c;this.nextPageToken=f;this.Dd=[];this.O={};this.request=AL(c,d,!0);this.W=fL(c,d);this.H=!e;Vwc(this,e);this.V=function(k,l){return h.Rv.compare(h.request,k,l)}};_.J(QL,Uwc);_.g=QL.prototype;_.g.hd=function(){return this.request};_.g.ZM=function(){return this.W};
_.g.cS=function(a){var b=this.O[a.getId()];b&&this.uJ(b);cnc(this.Dd,a,this.V);this.O[a.getId()]=a;a.count++;this.Dd.length>this.request.wi()&&(this.uJ(_.ja(this.Dd)),this.H=!1)};_.g.uJ=function(a){var b=this.Dd,c=_.Ia(b,a,this.V);0<=c&&_.wa(b,c);_.$a(this.O,a.getId());a.count--};_.g.EJ=function(){this.Dd.forEach(function(a){a.count--});this.Dd=[];this.O={}};_.g.Fy=function(){return this.Dd};
_.g.UE=function(a){var b;if(b=this.ha.equals(this.request,a,!0))a=a.H(),b=this.request.H(),b=mnc(b,a,_.Mgc);return b?this.H?1:6:5};_.g.Kla=function(a,b){if(5===this.UE(a))throw Error("wf");b=b?Math.min(b,this.Dd.length):this.Dd.length;return _.Da(this.Dd,0,b)};_.g.Bs=function(a){if(!Uwc.prototype.Bs.call(this,a)||!zL(this.Bt,this.request,a.getItem()))return!1;if(this.H||_.P(this.request,48,!1))return!0;var b=_.ja(this.Dd);return!!b&&0>=this.V(a,b)};_.g.RN=function(){return this.H?!1:!0};
_.g.getType=function(){return"CacheHintCorpusCache"};_.g.$k=function(a,b){var c=this,d=_.ja(this.Dd);!this.H&&d&&_.ma(a,function(e){return e.getId()===d.getId()})&&(b?(this.uJ(d),Vwc(this,_.ja(a))):this.H=!0);_.Ma(a,function(e){c.update(OL(e))})};var Vwc=function(a,b){b&&zL(a.Bt,a.request,b.getItem())&&a.cS(b)};QL.prototype.Ky=function(){return this.nextPageToken};var RL=function(a,b){Uwc.call(this,a,b);this.Dd=new Map};_.J(RL,Uwc);RL.prototype.cS=function(a){this.Dd.set(a.getId(),a);a.count++};
RL.prototype.uJ=function(a){this.Dd.delete(a.getId());a.count--};RL.prototype.EJ=function(){for(var a=_.m(this.Dd.values()),b=a.next();!b.done;b=a.next())b.value.count--;this.Dd=new Map};RL.prototype.Fy=function(){return Array.from(this.Dd.values())};var Wwc=function(a,b){RL.call(this,a,b);this.NX()};_.J(Wwc,RL);_.g=Wwc.prototype;
_.g.UE=function(a){var b=this,c=RL.prototype.UE.call(this,a);if(5===c)return c;if(0<_.me(a,33).length)return 5;a=_.pl(a);return 0<a.length?a.every(function(d){return(d=b.Dd.get(d.Xa()))&&!d.getItem().uc()&&d.H})?1:5:5};_.g.Bs=function(a){return RL.prototype.Bs.call(this,a)&&!(null===a||void 0===a?0:a.getItem().uc())};_.g.Kla=function(a,b){for(var c=[],d=_.m(this.Fy()),e=d.next();!e.done;e=d.next())e=e.value,zL(this.Bt,a,e.getItem())&&c.push(e);this.Rv.sort(a,c,b);return c};_.g.hd=function(){return new _.zf};
_.g.ZM=function(){return null};_.g.getType=function(){return"MyDriveCorpusCache"};_.g.RN=function(){return!1};var Xwc=function(a){return[].concat(_.bc(a.Dd.values())).filter(function(b){return b.H}).map(function(b){return b.getId()})},SL=function(a,b,c,d){RL.call(this,a,b);var e=this;this.H=d;ML(c,["aU7Ts","BNEDtc"],function(){return e.NX()})};_.J(SL,RL);
SL.prototype.UE=function(a){var b=this,c=RL.prototype.UE.call(this,a);if(5==c)return c;if(0<_.me(a,33).length)return 5;a=_.pl(a);return 0<a.length&&!a.every(function(d){d=b.Dd.get(d.Xa());return null!=d&&!d.getItem().uc()&&vnc(d.getItem())&&!_.N(d.getItem(),108)})?5:1};SL.prototype.Bs=function(a){return RL.prototype.Bs.call(this,a)&&Ywc(this,a.getItem())};var Ywc=function(a,b){if(_.N(b,31)||!a.N8)return!0;var c=a.H();return b.uk().some(function(d){var e=a.Dd.get(d);return d==c||null!=e&&vnc(e.getItem())})};
_.g=SL.prototype;_.g.NX=function(){RL.prototype.NX.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;Ywc(this,c.getItem())||(c.count--,this.Dd.delete(b))}};_.g.hd=function(){return new _.zf};_.g.ZM=function(){return null};_.g.getType=function(){return"SubscribedCorpusCache"};_.g.RN=function(){return!1};
var Zwc=/^[\x00-\x7F]*$/,TL=function(){this.H=[this.W,this.O,this.V,this.ha,this.cHb,this.ZGb,this.PGb,this.SGb,this.RGb,this.WGb,this.NGb,this.QGb,this.XGb,this.YGb,this.$Gb,this.OGb,this.bHb,this.aHb,this.KGb,this.UGb,this.TGb,this.LGb,this.VGb,this.dHb,this.MGb];this.rootId=""};TL.prototype.oz=function(a){this.rootId=a||""};
var ivc=function(a){return $wc(a)&&0==_.me(a,40).length&&void 0==_.y(a,41)},$wc=function(a){var b=!0;_.zb(a,_.Bf,13).forEach(function(d){"me"!=d.Xa()&&(b=!1)});var c=a.Kc();c=!c||5!=c.getType();return 0==_.zb(a,_.il,5).length&&0==_.zb(a,_.Bf,14).length&&0==_.zb(a,_.Bf,15).length&&!_.mj(a,58)&&!_.N(a,18)&&!_.N(a,34)&&0==_.zb(a,_.dl,35).length&&0==_.zb(a,_.dl,38).length&&c&&b&&0==_.me(a,39).length&&!_.y(a,42)&&0==_.zb(a,_.cl,44).length&&!_.jJ(a)&&!_.kJ(a)&&!_.mJ(a)&&0==_.zb(a,_.el,57).length&&axc(a)&&
!_.x(a,_.Zoa,59)&&null==_.N(a,60)&&0==_.zb(a,_.Bf,68).length&&0==_.zb(a,_.Bf,67).length&&null==_.N(a,69)&&!_.N(a,73)},axc=function(a){return _.zb(a,_.jl,4).every(function(b){b=b.Xa();return!b||!b.includes("*")&&Zwc.test(b)})};TL.prototype.J9=function(a,b){var c=this;return b.filter(function(d){return zL(c,a,d)})};var zL=function(a,b,c){return!!c&&bxc(a,c)&&a.H.every(function(d){return d.call(a,b,c)})},bxc=function(a,b){return b.getId()!=a.rootId&&!yL(b)};
TL.prototype.W=function(a,b){var c=!0,d=_.zb(a,_.jl,4);if(!axc(a))return!0;for(a=0;a<d.length&&c;a++){var e=d[a];if(e.Xa()){var f=_.P(e,3,!1),h=(b.getTitle()||"").toLowerCase(),k=e.Xa().toLowerCase();if(2==_.y(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,_.bc(k.split(RegExp("\\b"))));for(k=0;k<e.length&&c;k++)l=e[k],p=!0,0!=(0,_.Ag)(l).length&&(0==l.replace(/\./g,
"").length&&(p=!1),l=!!h.match(p?new RegExp("(^|[^\\w])"+_.ih(l)+"($|[^\\w])|(^|[ ])"+_.ih(l)):new RegExp(_.ih(l))),c=c&&(f?!l:l))}}}return c};
TL.prototype.O=function(a,b){var c=_.ol(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.Xa()){var l=b.getMimeType()||"";if(_.N(k,4)){var p=b.xf();l=p&&_.y(p,3)||""}p=_.P(k,2,!1);var q=k.Xa();_.JJ(a)&&(q=q.toLowerCase(),l=l.toLowerCase());k=0===_.pj(k,3,0)?q===l:l.includes(q);p?(e++,h=h||k):(d++,f=f||k)}return d&&!f||e&&h?!1:!0};
TL.prototype.V=function(a,b){var c=!0;a=_.zb(a,_.gl,7);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Mq();c=c&&cxc(e,d)}return c};TL.prototype.ha=function(a,b){var c=!0;a=_.zb(a,_.gl,8);a=_.m(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b.Dz();c=c&&cxc(e,d)}return c};var cxc=function(a,b){if(null!=_.y(b,2))switch(_.y(b,1)){case 1:return a<=_.y(b,2);case 2:return a<_.y(b,2);case 3:return a==_.y(b,2);case 4:return a>_.y(b,2);case 5:return a>=_.y(b,2);default:return!1}return!0};
_.g=TL.prototype;_.g.cHb=function(a,b){var c=a.Nh();a=_.TJ(a);return null==c||c==!!b.Nh()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.ZGb=function(a,b){return null==_.N(a,10)||_.N(a,10)==!!b.lB()};_.g.PGb=function(a,b){return null==_.N(a,11)||_.N(a,11)==!!_.N(b,6)};_.g.SGb=function(a,b){a=_.pl(a);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Xa()){var d="root"==c.Xa()&&this.rootId||c.Xa();d=b.uk().includes(d);if(_.P(c,2,!1)?d:!d)return!1}return!0};
_.g.RGb=function(a,b){a=_.zb(a,_.Bf,13);a=_.m(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"me"==c.Xa()){var d=1==b.Bp();if(_.P(c,2,!1)?d:!d)return!1}return!0};_.g.WGb=function(a,b){return null==_.N(a,16)||(_.N(a,16)?null!=b.Oy():!0)};_.g.NGb=function(a,b){var c=_.N(a,17);a=_.TJ(a);return null==c||c==!!b.ZI()&&(!c||1==b.Bp()||!(!a||2!=a&&3!=a))};_.g.QGb=function(a,b){b=Enc(b);return null==_.N(a,19)||_.N(a,19)==!!_.Gk(b)};
_.g.XGb=function(a,b){a=_.zb(a,_.SJ,25);if(0==a.length)return!0;var c=new Set(_.me(b,56));return a.every(function(d){return c.has(d.Xa())})};_.g.YGb=function(a,b){if(0==a.iA().length)return!0;if(0==b.iA().length)return!1;var c=new Set(b.iA().map(function(d){return d.LR()}));return a.iA().some(function(d){return c.has(d.LR())})};_.g.$Gb=function(a,b){a=_.me(a,33);return!a.length||a.includes(b.uc()||"")};_.g.OGb=function(a,b){a=_.zb(a,_.hl,37);if(0==a.length)return!0;var c=new Set(_.me(b,50));return a.every(function(d){return c.has(d.Xa())})};
_.g.bHb=function(a,b){return _.y(a,41)?(b=_.x(b,_.NJ,86),null!=b&&_.y(a,41)==_.y(b,3)):!0};_.g.aHb=function(a,b){if(_.me(a,40).length){if(b=_.x(b,_.NJ,86)){var c=new Set(_.me(b,2));return _.me(a,40).some(function(d){return c.has(d)})}return!1}return!0};_.g.KGb=function(a,b){var c=_.TJ(a);return 1==c?(b=_.N(b,31),!!_.pl(a).length||!!_.zb(a,_.dl,35).length||1==_.N(a,18)||_.jJ(a)||_.kJ(a)||_.mJ(a)||!!a.Xq()||null==b||b):2==c?!!b.uc():!0};
_.g.UGb=function(a,b){return _.jJ(a)?!_.mj(b,100)||b.Nh()?!1:_.P(a,74,!1)?!!_.N(_.Nk(b),4):!!_.N(_.Nk(b),3):!0};_.g.TGb=function(a,b){return _.kJ(a)?!!_.Ok(b).length&&!b.Nh():!0};_.g.LGb=function(a,b){return _.mJ(a)?!!_.Pk(b).length&&!b.Nh():!0};_.g.VGb=function(a,b){return _.mj(a,50)?_.P(a,50,!1)?_.mj(b,101)&&0!==_.y(b,101):!_.mj(b,101):!0};_.g.dHb=function(a,b){a=a.Xq();return!a||_.me(b,120).includes(a)};
_.g.MGb=function(a,b){b=_.x(b,_.LJ,138);return null==_.N(a,65)||null==b?!0:_.N(a,65)==(2==_.y(b,1))};var UL=function(a,b,c,d){d=void 0===d?5E3:d;RL.call(this,a,b);this.teamDriveId=c;this.limit=d};_.J(UL,RL);_.g=UL.prototype;
_.g.UE=function(a){var b=this,c=RL.prototype.UE.call(this,a);if(5==c)return c;c=_.pl(a);var d=c.every(function(e){var f=e.Xa();return(null!=b.Dd.get(f)||b.teamDriveId==f)&&!_.P(e,2,!1)});if(0<c.length&&d)return 1;a=_.me(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.Bs=function(a){return RL.prototype.Bs.call(this,a)&&!!a&&a.getItem().uc()==this.teamDriveId&&!yL(a.getItem())};_.g.RN=function(){return!1};_.g.hd=function(){var a=new _.zf;_.rl(a,[this.teamDriveId]);_.sl(a,2);return a};
_.g.ZM=function(){return null};_.g.uc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var dxc=function(a,b){this.W=a;this.ka=b;this.ha=[];this.O=this.H=null;this.V=[];a=new _.zf;_.u(a,48,!0);b=new _.Ad;_.Bd(b,11);_.Cd(b,2);_.Af(a,b);this.ma=AL(this.W,a,!0)};
dxc.prototype.add=function(a){a instanceof SL?this.H=a:a instanceof Wwc?this.O=a:a instanceof QL?(this.log("Adding new cache hint for "+fL(this.W,a.hd(),2)),this.ha.push(a)):a instanceof UL&&this.V.push(a)};
dxc.prototype.remove=function(a){var b=this;if(a instanceof SL)this.H&&(PL(this.H,!1),this.H=null);else if(a instanceof Wwc)this.O&&(PL(this.O,!1),this.O=null);else if(a instanceof QL){var c=_.la(this.ha,function(d){return b.W.equals(d.hd(),a.hd())});0<=c&&(PL(this.ha[c],!1),_.wa(this.ha,c))}else a instanceof UL&&(c=_.la(this.V,function(d){return b.W.equals(d.hd(),a.hd())}),0<=c&&(PL(this.V[c],!1),_.wa(this.V,c)))};
var exc=function(a){var b=[];a.H&&b.push(a.H);a.O&&b.push(a.O);_.Ba(b,_.Aa(a.ha));_.Ba(b,_.Aa(a.V));return b},fxc=function(a,b){b=void 0===b?!1:b;return a.ha.filter(function(c){return a.H&&b?(c=c.hd().clone(),_.wb(c,32),_.uj(c,26),!_.Cj(a.ma,c)):!0})};dxc.prototype.GW=function(){return _.Aa(this.V)};var gxc=function(a,b){return _.xg(a.V,function(c){return c.uc()===b})},hxc=function(a,b){return fxc(a).find(function(c){return a.W.equals(c.hd(),AL(a.W,b,!0))})};
dxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.CorpusCacheList",a,void 0===b?"info":b)};var ixc=function(a,b){_.pi.call(this,"wb");this.ids=a;this.error=b};_.J(ixc,_.pi);ixc.prototype.getError=function(){return this.error};ixc.prototype.H=function(){return this.ids};var jxc=function(a){_.pi.call(this,"xb");this.people=a};_.J(jxc,_.pi);jxc.prototype.getPeople=function(){return this.people};var kxc=function(a){_.pi.call(this,"yb");this.people=a};_.J(kxc,_.pi);
kxc.prototype.getPeople=function(){return this.people};var lxc=function(a,b,c){c=void 0===c?0:c;this.person=a;this.Oe=c;this.O=!1;this.H=new Set(b?[b]:[]);6===c&&(this.O=!0)};lxc.prototype.Xe=function(){return this.Oe};
var mxc=function(a){return 0===a.Oe?1:2===a.Oe||(1===a.Oe||4===a.Oe)&&(a.person.wq()||a.O)?3:2},nxc=function(a,b,c){if(_.y(b,1)!==_.y(a.person.clone(),1))return!1;6===c&&(a.O=!0);var d=mxc(a),e=a.Xe();if(4===c?0:1===e?1===c:5===e||6===e||2===e||4===e?0!==c&&e!==c:1)return b=Dwc(b.clone(),a.getEmail(b)),e=!_.Cj(a.person,b),a.person=b,a.Oe=c,e||d!==mxc(a);if(4===c)return a.Oe=c,_.u(a.person,6,_.y(b,6)),d!==mxc(a);c=b;return!a.person.getEmail()&&c.getEmail()?(Dwc(a.person,a.getEmail(b)),!0):!1};
lxc.prototype.getEmail=function(a){var b=this.person.getEmail();a=a.getEmail();return!a&&b&&0!==b.length?b:a};var pxc=function(a,b,c,d){var e;_.yi.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:_.P(e,20,!1))?450:50;this.ma=new _.kI(function(){return oxc(f)},100,this)};_.J(pxc,_.yi);pxc.prototype.kh=function(a){a&&_.mI(this.O)&&(this.H.includes(a)||this.H.push(a),this.ma.qe())};
var oxc=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)}})};pxc.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){var d=c.Pe;var e=new _.tJ;e=_.rj(e,1,a);return d.call(c,e)}).then(function(c){c=_.zb(c,KL,1);b.dispatchEvent(new jxc(c))},function(c){c=_.Vc(c);b.dispatchEvent(new ixc(a,c))})};
pxc.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var sxc=function(a,b,c,d,e){_.yi.call(this);var f=this;this.H=new Map;this.O=new Set;this.V=new Map;this.Nc=new _.kf(this);this.Ja(this.Nc);this.ka=b;this.ha=d;this.ta=_.Dj(_.x(a,Nqc,85)||new Nqc,1,864E5);this.W=new pxc(a,b,c,e);this.ma=new _.DD(function(){var h,k=null===(h=f.ha)||void 0===h?void 0:cL(h,106015);if(k){h=_.x(_.gK(k),trc,11);if(!h){h=new trc;var l=_.gK(k);_.F(l,11,h)}h=_.u(h,1,f.H.size);_.u(h,2,f.O.size);k.Aj()}},500,this);this.Nc.listen(this.W,"xb",function(h){h=h.getPeople();qxc(f,
h,1);f.ma.qe()});this.Nc.listen(this.W,"wb",function(h){rxc(f,h)})};_.J(sxc,_.yi);sxc.prototype.get=function(a){var b=this.H.get(a);return b?(txc(this,b)&&uxc(this,a),b):null};var uxc=function(a,b){if(!b)return Promise.resolve();if(a.V.has(b))return a.V.get(b).promise;a.W.kh(b);var c=new _.kn;a.V.set(b,c);return c.promise};sxc.prototype.Rb=function(a){var b=this;return vxc(this,a)?Promise.resolve(this.H.get(a)):uxc(this,a).then(function(){return b.H.get(a)})};
sxc.prototype.lc=function(){return 0===this.H.size};sxc.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear();this.O.clear()};
var wxc=function(a){return[].concat(_.bc(a.H.values())).filter(function(b){return 3===mxc(b)&&4!==b.Xe()}).map(function(b){return b.person.clone()})},xxc=function(a,b){return(a=a.H.get(b))?[].concat(_.bc(a.H)):[]},yxc=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(_.bc(e.H)).length&&(a.H.delete(d),a.O.delete(d)))}},qxc=function(a,b,c){if(![1,2].includes(c))throw Error("xf");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(Awc)[c]+".")),zxc(a,b,c))},Bxc=function(a,b,c,d){0!==b.length&&Axc(a,b,c,void 0===d?0:d)},vxc=function(a,b){b=a.H.get(b);return!(!b||3!==mxc(b)||txc(a,b))},Axc=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=_.y(f,1),k=a.H.get(h);if(k)nxc(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&&uxc(k,_.y(f,1));k.H.set(_.y(f,1),new lxc(f,p,l))}e&&1===d&&(f.getName()?a.O.delete(h):a.O.add(h))}return e},txc=
function(a,b){switch(b.Xe()){case 1:case 2:return null==_.y(b.person.clone(),5)||Date.now()-Number(_.y(b.person.clone(),5))>a.ta;case 4:return 1E3<Date.now()-Number(_.y(b.person.clone(),6));default:return!0}};sxc.prototype.log=function(a,b){this.ka.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var rxc=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():Cwc(new KL,c)});zxc(a,b,4)},zxc=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=_.y(h,1);1===c?_.u(h,5,d):4===c&&_.u(h,6,d);if(h=a.V.get(f))h.resolve(),a.V.delete(f)}Axc(a,b,void 0,c)&&a.dispatchEvent(new kxc(b))},Cxc=function(a,b,c,d,e){_.yi.call(this);var f=this;this.Nc=new _.kf(this);this.Ja(this.Nc);this.H=new sxc(a,b,c,d,e);this.O=_.IJ(a)||new _.dic;this.Nc.listen(this.H,
"yb",function(h){return f.dispatchEvent(h)})};_.J(Cxc,_.yi);Cxc.prototype.tP=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=Dxc(this,[c]).map(function(e){return Exc(b,e)});Bxc(this.H,d,a.H.getId(),this.Xe(_.y(c,82)))}a.O&&yxc(this.H,a.id,Fxc(this,a))};Cxc.prototype.Xe=function(a){return _.qgc.get(a)||0};
var Fxc=function(a,b){var c=Gxc(a,b.O),d=Gxc(a,b.H);return c.filter(function(e){return!d.includes(e)})},Gxc=function(a,b){return b?Hxc(a,[b.getItem()]):[]},Jxc=function(a,b){b=b.getUser();Bxc(a.H,[Exc(a,b)],"ACCOUNT");Ixc(a,b)},Lxc=function(a,b){var c=_.zb(b,_.$J,2).map(function(d){var e=_.x(d,_.xk,9,1);return a.H.Rb(KK(e)).then(function(){return void Kxc(a,[e])})});return Promise.all(c).then(function(){return b})},Mxc=function(a,b){Kxc(a,Dxc(a,b))},Kxc=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,KK(c)&&Ixc(a,c)},Nxc=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,KK(f)&&(d.add(KK(f)),Bxc(a.H,[Exc(a,f)],c));return Promise.all([].concat(_.bc(d)).map(function(h){return a.H.Rb(h)})).then(function(){return Kxc(a,b)})},Oxc=function(a,b){return Hxc(a,[b]).some(function(c){return!vxc(a.H,c)})},Hxc=function(a,b){var c=new Set;a=Dxc(a,b);a=_.m(a);for(b=a.next();!b.done;b=a.next())(b=KK(b.value))&&c.add(b);return[].concat(_.bc(c))},Dxc=function(a,
b){return b.map(function(c){var d=c.zw();d=d?[].concat(_.bc(d.NR()),_.bc(_.zb(d,_.xk,3))):[];var e=c.xf();e=(e=e&&_.se(e))?Dxc(a,[e]):[];return[].concat(_.bc(_.Lk(c)),[c.Cm(),c.Zr(),c.oq(),c.zD()],_.bc(d),_.bc(e))}).flat().filter(function(c){return c&&!!KK(c)})};Cxc.prototype.Id=function(a){return xxc(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var Pxc=function(a){return Gwc(new Fwc,wxc(a.H))},Qxc=function(a,b){return b.map(function(c){c=c.clone();var d=Dxc(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.wb(e,3),_.wb(e,8),_.wb(e,5);return c})},Sxc=function(a,b){return b.some(function(c){return Rxc(a,c)})},Rxc=function(a,b){return Dxc(a,[b]).some(function(c){return _.mj(c,3)||c.wq()||_.mj(c,5)})},Ixc=function(a,b){var c=a.H.get(KK(b));if(c){a=c.person.clone();var d=_.Hhc(b.Zc(a.getName()),a.getEmail());c=mxc(c);_.u(d,16,
c);(a=_.x(a,Bwc,4))&&b.On(a.getUrl())}},Exc=function(a,b){var c=KK(b);c=Dwc(Cwc(new KL,c).Zc(b.getName()),b.getEmail());var d=new Bwc;d=_.u(d,1,_.y(b,5));c=_.F(c,4,d);_.P(a.O,9,!1)&&(_.wb(b,3),_.wb(b,8),_.wb(b,5));return c},Txc=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};Txc.prototype.Wf=function(){return this.suggestionSessionId};Txc.prototype.hBa=function(){return this.O};Txc.prototype.lc=function(){return this.H};
var Uxc=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},Vxc=function(a,b){a=Uxc(a);b=Uxc(b);return!(!a||!b||a!==b)},Wxc=function(a){return a.qc()+"_"+Uxc(a.getName())},Xxc=function(a,b){var c=_.me(a,1).map(function(d,e){return b[Number(e)].value.V5a.promise});return Promise.allSettled(c).then(function(d){return _.me(a,1).map(function(e,f){e=e.toString();var h=new zwc;e=_.u(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Cc(1):(e.Cc(3),e.Qe(f.reason.ug));return e})})},VL=function(a,
b){_.L.call(this);this.O=a;this.request=b;this.Yy=new Set;this.status=6;this.W=new Map;this.Oe=0};_.J(VL,_.L);_.g=VL.prototype;_.g.Zh=function(a){var b=this;this.Yy.add(a);return this.resize().then(function(){return b.GO(a)})};_.g.ek=function(a){this.Yy.delete(a);0===this.Yy.size&&this.dispose()};_.g.Xe=function(){return this.Oe};_.g.mi=function(a){this.Oe=a};
_.g.FD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Wu(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.wY():_.Vh([])};_.g.wY=function(){for(var a=[],b=_.m(this.Yy.values()),c=b.next();!c.done;c=b.next())a.push(this.GO(c.value));return _.Xh(a)};
_.g.vY=function(a){this.status=3;for(var b=[],c={},d=_.m(this.Yy.values()),e=d.next();!e.done;c={Jra:c.Jra},e=d.next())c.Jra=e.value,b.push(this.O.then(function(f){return function(h){return void h.vY(f.Jra,a)}}(c)));return _.Xh(b)};_.g.GA=function(){for(var a=this,b=[],c={},d=_.m(this.Yy.values()),e=d.next();!e.done;c={Kra:c.Kra},e=d.next())c.Kra=e.value,b.push(this.O.then(function(f){return function(h){return void h.GA(f.Kra)}}(c)));return _.Xh(b).then(function(){a.mi(0===a.Xe()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.Yy.forEach(function(d){d=b.qla(d);c=Math.max(c,d.wi?d.wi()||0:0)});a.dga(c)})};var Yxc=function(a,b){return b?a.W.get(a.Rka(b))||null:null};_.g=VL.prototype;_.g.ZF=function(a,b){var c=Yxc(this,a);b=Xuc(c,b);this.W.set(this.Rka(a),b)};_.g.Rka=function(a){return a};_.g.VNa=function(){return[]};_.g.GO=function(a){var b=this;return this.O.then(function(c){return void c.GO(a,b.dk())})};_.g.removeItem=function(){};
var WL=function(a,b){_.pi.call(this,"Db");this.error=a;this.retryCount=b};_.J(WL,_.pi);var XL=function(a,b){_.yi.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.J(XL,_.yi);var Zxc=function(a){return!a.O||""!==a.pageToken};XL.prototype.kh=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&Zxc(this)?$xc(this):_.Vh([])};
var $xc=function(a){a.O=!0;a.H=!0;var b=a.Zia(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return ayc(a,c)},function(c){return a.handleError(c)})},ayc=function(a,b){a.H=!1;a.pageToken=a.jla(b);b=a.wka(b);b.forEach(function(c){return a.data.push(c)});a.T6(b);return a.data.length<a.limit&&Zxc(a)?_.Xh([_.Vh(b),$xc(a)]).then(function(c){return c[0].concat(c[1])}):_.Vh(b)};
XL.prototype.handleError=function(a){this.H=!1;a=_.vI(a);var b=new WL(a);this.WNa(b);this.dispatchEvent(b);return _.Wh(a)};XL.prototype.T6=function(){};XL.prototype.WNa=function(){};var byc=function(a,b,c){XL.call(this,c,function(d){return a.then(function(e){return e.Pe(d)}).then(null,function(e){JK(e)})});this.V=b};_.J(byc,XL);_.g=byc.prototype;_.g.Zia=function(a,b,c){a=a.clone();a.Gi(b);return new _.ahc(a,c)};_.g.jla=function(a){return a.pageToken||""};_.g.wka=function(a){return a.response.H()};
_.g.T6=function(a){this.V.FD(a,!1,1)};_.g.WNa=function(a){this.V.IB(this.request,a)};var cyc=function(a,b,c,d){VL.call(this,a,d.clone());this.ha=b;this.V=c;this.data=[];this.H=null};_.J(cyc,VL);_.g=cyc.prototype;_.g.refresh=function(){this.GA();this.H=new byc(this.ha,this.V,this.request);return this.H.kh(this.request.wi()||100)};_.g.Kp=function(a){return this.data.find(function(b){return Vxc(b.getName(),a)})};
_.g.dga=function(a){this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.kh(a):this.refresh())};_.g.dk=function(){var a=this,b=ywc((new JL).Cc(this.status),this.data.filter(function(c){return a.V.vEa(c)}).map(function(c){return c.clone()}));return new _.mK(b,void 0,void 0,this.Xe())};_.g.FD=function(a,b,c){var d=this;a=a.filter(function(e){return e.qc()===d.request.qc()});return VL.prototype.FD.call(this,a,b,c)};
_.g.Wu=function(a,b){b=void 0===b?1:b;if(!Dnc(Yxc(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return Vxc(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.ZF(a.getName(),b);return!0};_.g.removeItem=function(a){_.ya(this.data,function(b){return Vxc(b.getName(),a)})&&(this.W.delete(this.Rka(a)),this.wY())};_.g.Rka=function(a){return Uxc(a)};_.g.ZF=function(a,b){this.Kp(a)&&VL.prototype.ZF.call(this,a,b)};
_.g.VNa=function(a){var b=this;return a instanceof _.zJ&&a.qc()===this.request.qc()?a.kW().map(function(c){return b.Kp(c.Hm())}).filter(function(c){return!!c}).map(function(c){return c.clone()}):[]};var YL=function(){this.H=new Map};YL.prototype.Zh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.bja(b),this.H.set(c,d));d.Zh(a);return e};var dyc=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.cya(c),a.H.set(d,e));e.Zh(b);return f};
YL.prototype.ek=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.ek(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var eyc=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.ek(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},fyc=function(a,b){return a.H.get(b)};YL.prototype.FD=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.vEa(f)});this.H.forEach(function(f){f.FD(e,b,c)})};YL.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var gyc=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.VNa(b)});return[].concat.apply([],_.bc(a))};YL.prototype.ZF=function(a,b){this.H.forEach(function(c){c.ZF(a,b)})};YL.prototype.vEa=function(){return!0};YL.prototype.IB=function(a,b){(a=this.H.get(this.getKey(a)))&&a.vY(b)};YL.prototype.t3=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.bja(b),f.mi(c),this.H.set(e,f),this.FD(a,d))};
var hyc=function(){this.H=new Set;this.V=0;this.O=[]},iyc=function(a,b){a.H.add(b)},jyc=function(a,b){var c;if(c=b instanceof _.Kk)c=b.Aw(),c=!!(b.Nh()&&c&&c<=Math.max.apply(Math,_.bc([a.V].concat(_.bc(a.O)))));if(c)return!0;b=b instanceof _.Kk?b.getId():b;return a.H.has(b)},kyc=function(a,b){return _.ya(a.O,function(c){return c===b})&&b>a.V?(a.V=b,!0):!1};hyc.prototype.J9=function(a){var b=this;return a.filter(function(c){return!jyc(b,c)})};
var lyc=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new hyc};_.J(lyc,YL);var myc=function(a,b){iyc(a.O,Wxc(b));(a=fyc(a,b.qc()))&&a.wY()};_.g=lyc.prototype;_.g.getKey=function(a){return a.qc()};_.g.bja=function(a){return new cyc(this.V,this.W,this,a)};_.g.cya=function(a){return new cyc(this.V,this.W,this,a)};_.g.Eo=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=fyc(this,b.getId()))&&b.refresh()};_.g.vEa=function(a){return!jyc(this.O,Wxc(a))};
var nyc=function(a){var b=new _.dI;b.Nb(a);return b},oyc=function(){_.yi.call(this);this.H=Date.now()};_.J(oyc,_.yi);oyc.prototype.FF=function(){this.H=Date.now();this.dispatchEvent("Eb")};
var pyc=function(a,b){this.O=a;this.H=b},qyc=function(a,b){b=_.kWb(b);var c=new byc(a.O,a.H,b);new Promise(function(d,e){return c.kh(100).then(d,e)})},ryc=function(){this.Dd={}},ZL=function(a,b){syc(a,"subscribed");b&&syc(a,b);return a.Dd[b||"subscribed"].he.promise},syc=function(a,b){a.Dd[b]||(a.Dd[b]={count:0,mS:[],T3a:[],he:_.Yh()});a.Dd[b].count++},$L=function(a,b){b&&!tyc(a,b)||tyc(a,"subscribed")},tyc=function(a,b){if(!a.Dd[b])return!1;a.Dd[b].count--;0===a.Dd[b].count&&(a.Dd[b].he.resolve({items:a.Dd[b].mS,
NNb:a.Dd[b].T3a}),_.$a(a.Dd,b));return!0};ryc.prototype.Eo=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].T3a.push(e);c.Dd[d]&&c.Dd[d].mS.push(e)})};var uyc=function(a,b,c){XL.call(this,a,c);this.V=b};_.J(uyc,XL);uyc.prototype.Zia=function(a,b){return a.clone().Gi(b)};uyc.prototype.jla=function(){return""};uyc.prototype.wka=function(a){return[a]};uyc.prototype.T6=function(a){this.V(a)};
var vyc=function(a,b,c,d){VL.call(this,a,d.clone());this.ka=b;this.H=this.V=null;this.ha=c};_.J(vyc,VL);vyc.prototype.refresh=function(){var a=this;this.GA();this.H=new uyc(this.request,this.ha,function(b){return a.ka.then(function(c){return c.Pe(b)})});return this.H.kh(this.request.wi()||0)};vyc.prototype.dga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.kh(a):this.refresh())};
vyc.prototype.dk=function(){if(this.V)return this.V;var a=new wL;a.Cc(this.status);return a};vyc.prototype.Wu=function(a){this.V=a;return!0};var wyc=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.J(wyc,YL);_.g=wyc.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.bja=function(a){var b=this;return new vyc(this.O,this.W,function(c){b.FD(c,!1)},a)};_.g.cya=function(){throw Error("yf");};
_.g.t3=function(a,b,c,d){var e=a[0].Yk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.tq()}).join(", "));YL.prototype.t3.call(this,a,b,c,d)};var xyc=function(a,b,c,d){_.yi.call(this);this.request=a;this.Ba=b;this.ta=c;this.wa=d;this.ma=0;this.he=null;this.O=new Set};_.J(xyc,_.yi);
xyc.prototype.kh=function(){var a=this;if(this.he)return this.he.promise;this.he=_.Yh();for(var b={},c=_.m(this.W(this.request)),d=c.next();!d.done;b={$ra:b.$ra,jfa:b.jfa},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.jfa=d;b.$ra=e;this.ma++;this.Ba.then(function(f){return function(h){return h.Pe(f.$ra)}}(b)).then(function(f){return function(h){var k=f.jfa;a.V(h);yyc(a,k)}}(b),function(f){return function(h){return void a.handleError(f.jfa,h)}}(b))}return this.he.promise};
var yyc=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Cb"),a.he.resolve()):a.dispatchEvent("zb")};xyc.prototype.handleError=function(a,b){b=_.Vc(b);var c=b.ug;5===c.Dv()||4===c.Wj()?(this.wa.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),yyc(this,a)):(a=new WL(c,_.Dj(this.ta.Uf(),1,1)),this.dispatchEvent(a),this.he.reject(b))};var zyc=function(a,b,c,d,e){xyc.call(this,a.clone(),c,d,e);this.H=b};_.J(zyc,xyc);
zyc.prototype.W=function(a){var b=new Map;a.nm().forEach(function(c){var d=_.qVb(a.clone(),[c]);b.set(c,d)});return b};zyc.prototype.V=function(a){var b=[];a.uU().forEach(function(c){b.push(c)});this.H(b,!0)};zyc.prototype.ha=function(){this.H([],!1)};zyc.prototype.ka=function(a){this.H([nyc(a)],!0)};var Ayc=function(a,b,c,d,e,f){VL.call(this,a,f.clone());this.ma=b;this.V=c;this.ka=d;this.ha=e;this.Rk={};this.H=null};_.J(Ayc,VL);
Ayc.prototype.refresh=function(){this.H=new zyc(this.request,this.ha,this.ma,this.V,this.ka);return this.H.kh()};Ayc.prototype.dga=function(){this.H||this.refresh()};Ayc.prototype.dk=function(){var a=new _.kK;a.Cc(this.status);_.Ra(this.Rk,function(b,c){a.uU().set(c,b||new _.dI)});a.mi(this.Xe());return a};Ayc.prototype.Wu=function(a){var b=a.getId();if(_.Cj(a,nyc(a.getId()))){if(this.Rk[b])return delete this.Rk[b],!0}else if(0<=this.request.nm().indexOf(b))return this.Rk[b]=a,!0;return!1};
var Byc=function(a,b){a=a.getState();return null==a||b.getState()==a},Cyc=function(a,b,c){XL.call(this,a,c);this.V=b};_.J(Cyc,XL);Cyc.prototype.Zia=function(a,b,c){a=a.clone();a.Gi(b);return new _.nhc(a,c)};Cyc.prototype.jla=function(a){return a.pageToken||""};Cyc.prototype.wka=function(a){return a.response.Yk()};Cyc.prototype.T6=function(a){this.V(a)};var Dyc=function(a){this.H=_.Kcc(a,{numeric:!0})};
Dyc.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};Dyc.prototype.V=function(a,b,c){var d=_.y(b,4),e=_.y(c,4),f;d!==e?f=_.Ha(d,e)*(a?1:-1):f=_.Ha(b.getId(),c.getId())*(a?1:-1);return f};var Eyc=function(a,b,c,d,e){VL.call(this,a,e.clone());this.ha=b;this.Rk=[];this.H=null;this.V=d;a=new Dyc(c);b=(c=this.request.Mx())?c.getType():0;c=c?c.Vf():0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.J(Eyc,VL);Eyc.prototype.refresh=function(){var a=this;this.GA();this.H=new Cyc(this.request,this.V,function(b){return a.ha.then(function(c){return c.Pe(b)})});return this.H.kh(this.request.wi()||0)};Eyc.prototype.dga=function(a){1===this.status||this.H&&a===this.request.wi()||(this.request.Gi(a),this.H?this.H.kh(a):this.refresh())};Eyc.prototype.dk=function(){var a=new LL;a.Cc(this.status);Iwc(a,this.Rk.map(function(b){return b.clone()}));return new _.pK(a,void 0,1!==this.status&&Zxc(this.H),this.Xe())};
Eyc.prototype.Wu=function(a){var b=_.ya(this.Rk,function(c){return c.getId()===a.getId()});return a&&Byc(this.request,a)&&!_.Cj(a,nyc(a.getId()))?cnc(this.Rk,a,this.ka):b};var Fyc=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"};_.J(Fyc,YL);_.g=Fyc.prototype;_.g.log=function(a){this.W.info(this.logName,a)};_.g.getKey=function(a){return a.toString()};
_.g.bja=function(a){var b=this;return new Eyc(this.V,this.ha,XK(_.fI(this.O)),function(c){return void b.FD(c,!1)},a)};_.g.cya=function(a){var b=this;return new Ayc(this.V,this.ha,this.O,this.W,function(c,d){return b.FD(c,d)},a)};_.g.t3=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));YL.prototype.t3.call(this,a,b,c,d)};
var Gyc=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();NK(a)&&(c=(c=a.xf())?_.y(c,3):"");OK(a)&&(a.Ni()&&(c+="+"+String(a.Ni())),a.wj()&&(c+="+shared"));return _.cSa(c,b?"32":"16")},Hyc=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("&")},Iyc=function(a,b){var c=_.N(a,44),d=a.xf();if(d){if(1!==_.ue(d))return null;c=(c=_.se(d))?_.N(c,44):!0}if(!c)return null;c={};d=a.getId();NK(a)&&(d=unc(a));
d=[_.z(b,65,"https://lh3.google.com"),"u",_.wI(_.fI(b)),"d",d].join("/");_.P(b,89,!1)&&_.mj(a,140)&&(c.resourcekey=_.Qk(a));return d=Hyc(d+"={size}",c)},Jyc=function(a){this.H=a},Lyc=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=Gyc(b,_.P(a.H,75,!1));_.u(b,21,d)}c.includes(18)&&_.Shc(b,loc(b,a.H));c.includes(19)&&(d=Iyc(b,a.H),_.u(b,20,d));Kyc(a,b,c);if(NK(b)){if(d=(d=b.xf())&&_.se(d)){if(c.includes(20)&&c.includes(3)){var e=Gyc(d,_.P(a.H,75,!1));_.u(d,21,e)}c.includes(18)&&_.Shc(d,loc(d,
a.H));c.includes(19)&&(e=Iyc(d,a.H),_.u(d,20,e));Kyc(a,d,c)}_.u(b,44,!!b.Ez())}},Kyc=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!OK(b)&&!NK(b)&&!_.$d(e)&&(!b.M7()||2!==b.Bp()),d&&_.u(b,40,e),e&&c&&(a=a.H,d=b.getId(),NK(b)&&(d=unc(b)),c=new _.$i(_.z(a,16,"")+"/uc"),_.ej(c,"id",d),_.ej(c,"authuser",_.wI(_.fI(a))),_.ej(c,"export","download"),_.P(a,89,!1)&&_.mj(b,140)&&_.ej(c,"resourcekey",_.Qk(b)),_.u(b,41,c.toString())))}},Myc=function(a,b){this.kja="";
this.startTime=b||new Date;this.H=a;this.Baa=noc(a)};Myc.prototype.clone=function(){return new Myc(this.H,this.startTime)};var Nyc=function(){this.H=null;this.mZ=[]},Oyc=function(a){return _.xf(a.mZ,function(b){return _.cb(b)})};Nyc.prototype.vN=function(){return this.H};
Nyc.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new Nwc;e.V=Mwc(d.Baa);var f=_.mh().substring(0,8);d=noc(f);f=(new kwc).Nb(f);f=_.u(f,2,d);b=_.u(f,3,b).Ai(c);this.mZ.push(b);e.O=Mwc(d);e.H=Kwc(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.Rj;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.Sj(d,1,1);var k=d.H;kpc(k,f);kpc(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.Sj(d,2,1),k=d.H,kpc(k,f),kpc(k,h));f=e.W;null!=f&&(_.Sj(d,3,5),kpc(d.H,f));e.H&&
(f=e.H.O>>>0,e=e.H.H>>>0,_.Sj(d,4,1),h=d.H,kpc(h,f),kpc(h,e));e=_.Tj(d);a["X-Google-DapperTraceInfo"]=_.aa.btoa(c.call(b,null,e))}}};var Pyc=function(){this.Fb=[];this.O=this.H=0};Pyc.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 Qyc=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},Ryc=function(a){this.key=a;this.H=new _.ngc;this.O=new _.lgc(new _.ngc,_.Lma(a))};Ryc.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=nsc(b);c=Syc(this,a);return b.concat(c,Tyc(this,b,a,!0))};
var Uyc=function(a,b){var c=Tyc(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=Syc(a,c);if(b!==a)throw Error("zf");return c},Syc=function(a,b){a=_.mgc(a.O,_.wgc(b));return nsc(a)},Tyc=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new Pyc;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=_.wgc(c.substring(8192*
e,8192*(e+1))),Qyc(b,a),d+=nsc(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.aa.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;Qyc(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("Af");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=Vyc(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=Vyc(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&63)):
239<f&&365>f?(h=Vyc(d,e++),k=Vyc(d,e++),l=Vyc(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=Vyc(d,e++),k=Vyc(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},Vyc=function(a,b){return a[Math.floor(b/8192)][b%8192]},Wyc=function(a,b,c){this.data=a;this.O0a=b;this.H=c;this.isEncrypted=!1};Wyc.prototype.getData=function(){return this.data};
Wyc.prototype.Tm=function(){return this.O0a};var Xyc=function(a,b,c,d){this.O=a;this.H=_.Yh();this.mp=!1;this.V=_.z(b,7,"");this.W=_.Dj(_.ZK(b),6,2E7);this.eF=_.mI(b);this.ha=_.Dj(_.ZK(b),12,0);this.ka=c;this.Zf=d||null};Xyc.prototype.initialize=function(){var a=this;this.mp||(this.mp=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.gi(this.H.promise)};
Xyc.prototype.wB=function(a){if(a instanceof _.WB)return 0;if(a instanceof HL)return 1;if(a instanceof Esc)return 5;if(a instanceof uL)return 3;if(a instanceof Fwc)return 6;throw new _.Rc("Unsupported dataShard in getDataType");};var Yyc=function(a){if(0==a)return _.WB;if(1==a)return HL;if(5==a)return Esc;if(3==a)return uL;if(6==a)return Fwc;throw new _.Rc("Unsupported dataType:"+a+" in getDataTypeCtor");};Xyc.prototype.Uo=function(a){if(a instanceof uL)return a.Uo()};
Xyc.prototype.Tm=function(a){if(a instanceof uL)return a.zd().length};Xyc.prototype.Jv=function(a){if(a instanceof uL)return a=a.Jv(),null!=a?a:void 0};
var czc=function(a,b,c,d){if(0==c.length)return _.Vh();for(var e=a.wB(c[0]),f=_.m(c),h=f.next();!h.done;h=f.next())a.wB(h.value);var k=a.Uo(c[0]),l=0;3==e&&Zyc(a,c);var p=!!b;return $yc(a,c).then(function(q){if(p){var r=a.Zf?a.Zf.H(106023,d):null;l=q.reduce(function(w,A){(A=A.Tm())&&(w+=A);return w},0);var v=azc(a,b,q.map(function(w){return w.getData()})).then(function(w){if(w.length!=q.length)return _.Wh(Error("Bf"));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&&(zrc(yrc(xrc(bL(r),_.hK(_.Rfc,e)),_.hK(_.Ofc,k)),!0),v.then(function(){var w=l;wrc(bL(r),!0).ew(w);r.Aj()},function(){var w=l;wrc(bL(r),!1).ew(w);r.Aj()}));return v}return q}).then(function(q){return a.H.promise.then(function(){return bzc(a.O,q,e,k,p,d)})})},$yc=function(a,b){return new _.Sh(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var p=l.Gc();p.length>a.W?e=!0:f.push(new Wyc(p,a.Tm(l),a.Jv(l)))}});if(e){var h=
Error("Cf"),k=new _.Pc;_.tI(k,2);_.II(k,23);_.u(k,21,h.message);_.Up(k);a.ka(k);d(h)}c(f)})},Zyc=function(a,b){for(var c=_.m(b),d=c.next();!d.done;d=c.next());a.eF||dzc(b);if(a.ha)for(a=a.ha,c=b.length-1;0<=c;c--)if(b[c].Uo()){d=[];for(var e=b[c].zd();e.length>a;){var f=_.ua(e,a-1,a);f=Guc(new uL,f);d.push(f)}Guc(b[c],e);d.length&&_.gb(_.ua,b,c+1,0).apply(null,d)}},aM=function(a,b,c,d,e,f){var h=_.Yh(),k;_.Zh(a.H.promise.then(function(){return ezc(a.O,c,d,e)}).then(function(l){var p=l.map(function(r){return r.data}),
q=new _.$h;if(l[0]&&l[0].l1){if(k=a.Zf?a.Zf.H(106022,f):null)zrc(yrc(xrc(bL(k),_.hK(_.Rfc,c)),_.hK(_.Ofc,d)),!0),q.ln().then(function(r){var v=k;r=void 0!=r;wrc(bL(v),r);_.mjc(v)});fzc(a,q,b,p)}else q.callback(p);return _.Vh(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 (Yyc(c))(JSON.parse(r)),q+=a.Tm(r),p.push(r);3==c&&(a.eF||gzc(p),hzc(p));k&&bL(k).ew(q)}h.resolve(p)}),function(){k&&k.Aj()}).Ii(h.reject,h);return h.promise},
dzc=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].oN().length)return;b=new Map;for(var c=new Map,d=_.m(a),e=d.next();!e.done;e=d.next()){e=e.value.zd()||[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Qhc(f,izc(_.Lk(f),b,c)),_.Rhc(f,izc([f.Cm()],b,c)[0]),_.Uhc(f,izc([f.Zr()],b,c)[0]),_.Yhc(f,izc([f.oq()],b,c)[0]),_.aic(f,izc([f.zD()],b,c)[0]),f=f.zw())_.Nhc(f,izc(f.NR(),b,c)),_.Ohc(f,izc(_.zb(f,_.xk,3),b,c))}var h=[];b.forEach(function(k){h.push(k)});_.tj(a[0],2,h)}},
izc=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)?_.Cj(f,b.get(e))?d.push(c.get(e)):d.push(f):(b.set(e,f.clone()),f=new _.xk,f.Nb(e),c.set(e,f),d.push(f))):d.push(f)}return d},gzc=function(a){var b=new Map,c=new Map;a[0]&&a[0].oN()&&a[0].oN().forEach(function(h){b.set(h.getId(),h);h=(new _.xk).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.zd()||
[];e=_.m(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,_.Qhc(f,jzc(_.Lk(f),b,c)),_.Rhc(f,jzc([f.Cm()],b,c)[0]),_.Uhc(f,jzc([f.Zr()],b,c)[0]),_.Yhc(f,jzc([f.oq()],b,c)[0]),_.aic(f,jzc([f.zD()],b,c)[0]),f=f.zw())_.Nhc(f,jzc(f.NR(),b,c)),_.Ohc(f,jzc(_.zb(f,_.xk,3),b,c));_.uj(d,2)}}},jzc=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();_.Cj(c.get(f),e)?d.push(b.get(f).clone()):d.push(e)}else d.push(e);return d},hzc=
function(a){for(var b={},c=1;c<a.length;b={Sea:b.Sea},c++)if(!a[c].Uo()){for(var d=0,e=c;e<a.length&&!a[e].Uo();e++)d++;e=a[c-1];d=_.ua(a,c,d);b.Sea=e.zd();d.forEach(function(f){return function(h){_.Ba(f.Sea,h.zd())}}(b));Guc(e,b.Sea)}},azc=function(a,b,c){if(!_.Zfc()&&a.V){var d=new Worker(_.kca(_.My(a.V)),void 0),e=new _.$h;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Hd(Error(String(k)))},!1);c=Qwc(new Pwc,
c);d.postMessage({command:"encrypt",data:{request:c.Gc(),key:b}});return e}try{a=[];var f=new Ryc(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.fi(a)}catch(k){h=_.hi(k)}return h},fzc=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(!_.Zfc()&&a.V){var f=new Worker(_.kca(_.My(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 Ryc(c);for(c=0;c<d.length;c++)a.push(Uyc(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},kzc=/^[\w]+$/,lzc=function(a,b,c){return[a.Au(),a.clientId,b?"#":bM(a)].join(":")+":"+(c||"")},mzc=function(a,b,c){this.global=void 0===c?!1:c;a.match(kzc);this.key=a;this.value=b};mzc.prototype.getKey=function(){return this.key};mzc.prototype.Xa=function(){return this.value};
var nzc=function(a,b){return{k:lzc(b,a.global,a.key),v:a.value}},ozc=function(a,b){a=lzc(a,b);return vuc(a+"A",a+"z")},pzc=function(a,b){this.H=a;this.O=b},qzc=function(a){return a?new pzc(a.versionKey,a.versionChangeTimestamp):null},rzc=function(a,b){return a+":"+b},szc=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.l1=void 0===e?null:e},tzc=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.l1}},uzc=function(a,b,c,d){a=bM(a)+"_"+b;
3===b&&(a+="_"+d);return a+=_.dt(":%02d",c)},vzc=function(a,b,c,d){c=uzc(a,b,void 0===c?0:c,d);a=bM(a)+"_"+b;3===b&&(a+="_"+d);return vuc(c,a+":a")},wzc=function(a){var b=bM(a)+"_";a=bM(a)+"_A";return vuc(b,a)},xzc=function(a){return a?new szc(a.data,a.index,a.size,a.timestamp,a.e):null},yzc=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=_.Aa(e);_.Ja(this.fields);_.Ga(this.fields);this.H=f};
yzc.prototype.Au=function(){return this.userId};yzc.prototype.ah=function(){return _.Aa(this.fields)};
var bM=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=_.Cec(b.digest())}return a.O},zzc=function(a){return{versionKey:bM(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},Azc=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 yzc(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:bM(a)!==d&&(a=null);return a},cM=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.L.call(this);var e=this;this.Zf=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 _.kf(this);this.Ja(this.Jb)};_.J(cM,_.L);cM.prototype.initialize=function(){return Bzc(this)};
var Bzc=function(a,b){a.V||(a.V=_.Yh(),a.Pa.then(function(){b?(a.wa=!1,Czc(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)"),_.vdc("GoogleDriveDs",2,a.Ga.bind(a),a.ta.bind(a)).hg(a.La.bind(a),a.ta.bind(a)),_.Di(2E4).then(a.Ia.bind(a)))},function(c){a.V.reject(new _.Rc("Database version error",void 0,_.sI(c)?c:void 0))}));return a.V.promise},Czc=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"))};cM.prototype.Ga=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ma(b.H.objectStoreNames,function(c){return _.mic(b,c)});_.Ra(_.CI,function(c){var d=_.rgc.get(c);_.sdc(b,c,d?{keyPath:d}:void 0)})};
cM.prototype.ta=function(a){var b;a&&a instanceof _.UH&&"InvalidStateError"==a.getName()&&_.kj.Zu?b=Error("Df"):_.sI(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);Dzc(this,!1)};cM.prototype.La=function(a){this.ka?a.dispose():(Czc(this,a),this.Ja(this.H),this.readOnly||Ezc(this).then(null,function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),Dzc(this,!0))};
var Dzc=function(a,b){if(a.ma){var c=a.ma,d=_.x(_.gK(c),qrc,5);d||(d=new qrc,c=_.gK(c),_.F(c,5,d));d=_.u(d,1,2);d=_.u(d,2,a.lj().W);d=_.u(d,5,a.lj().ka);b=_.u(d,3,b);b=_.u(b,4,a.Ba);_.u(b,6,a.lj().ma);a.ma.Aj();a.ma=null}};cM.prototype.Ia=function(){this.H||this.Hf()||(this.ha("Opening database GoogleDriveDs timed out."),this.ta(Error("Ef")))};cM.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.wa&&this.H.close())};cM.prototype.Hf=function(){return this.ka};
var Fzc=function(a){return a.ka?a.O:null};cM.prototype.lj=function(){return this.version};
var dM=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.tdc(a,[b],c)}catch(d){return null}},Ezc=function(a){var b=_.CI.d0,c=dM(a,b,"readwrite");if(!c)return _.Wh(Error("Ff"));c.objectStore(b).put(zzc(a.lj()));return _.Vh(c.wait()).then(function(){})},Gzc=function(a){if(!a.H)return _.Wh(Error("Gf"));if(a.Hf())return _.Wh(Error(a.O));var b=_.CI.d0,c=dM(a,b,"readwrite");if(!c)return _.Wh(Error("Hf"));b=c.objectStore(b);return _.Vh(b.remove(bM(a.lj())))},
Hzc=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=xzc(e.value))&&(d[e.index]=e);if(!d[0])return b.reject(Error("If")),0;a=d[0].timestamp;if(!a)return b.reject(Error("Jf")),0;e=d[0].size;if(!e)return b.reject(Error("Kf")),0;if(e>d.length)return b.reject(Error("Lf`"+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("Mf`"+e)),0;if(c&&a<c)return b.reject(Error("Nf`"+a+"`"+c)),d.length>
e?e:null;if(d.length>e)return b.resolve(d.slice(0,e)),e;b.resolve(d);return null},ezc=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.Wh(Error("Of"));if(a.Hf())return _.Wh(Error(a.O));var e=vzc(a.lj(),b,0,c),f=_.CI.z6,h=dM(a,f);if(!h)return _.Wh(Error("Pf"));e=h.objectStore(f).getAll(e);var k=_.Yh();e.hg(function(l){l=Hzc(l,k,d);a.readOnly||null==l||Izc(a,b,c,l).then(null,function(){})},k.reject);return k.promise},bzc=function(a,b,c,d,e,f){if(a.H){if(a.Hf())return _.Wh(Error(a.O));if(100<b.length||
3==c&&void 0==d)return _.Wh(Error("Qf"))}else return _.Wh(Error("Rf"));var h=Date.now(),k=b.length,l=b.map(function(v,w){return{key:uzc(a.lj(),c,w,d),data:new szc(v.getData(),w,k,h,e),metadata:v}}),p=_.CI.z6;b=dM(a,p,"readwrite");if(!b)return _.Wh(Error("Sf"));p=b.objectStore(p);var q={};l=_.m(l);for(var r=l.next();!r.done;q={kfa:q.kfa},r=l.next())r=r.value,q.kfa=Jzc(a,c,d,r.metadata,f),p.put(tzc(r.data),r.key).then(function(v){return function(){var w=v.kfa;w&&(wrc(bL(w),!0),w.Aj())}}(q),function(v){return function(w){var A=
v.kfa,B=w instanceof _.UH?w.code:_.Vcc;A&&a.W&&(w=wrc(bL(A),!1),B=_.hK(_.Sfc,B),_.u(w,2,B),A.Aj())}}(q));return _.Vh(b.wait()).then(function(){})},Jzc=function(a,b,c,d,e){if(a.W){var f=a.W.W;if(a=a.W.H(106019,e))b=yrc(xrc(bL(a),_.hK(_.Rfc,b)),_.hK(_.Ofc,c)),f=_.u(b,5,f.Uo(d.H)),zrc(f,d.isEncrypted),void 0!=d.Tm()&&bL(a).ew(d.Tm());return a}return null},Izc=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Hf())return _.Wh(Error(a.O));if(3==b&&void 0==c)return _.Wh(Error("Tf"))}else return _.Wh(Error("Uf"));
b=vzc(a.lj(),b,d,c);c=_.CI.z6;a=dM(a,c,"readwrite");if(!a)return _.Wh(Error("Vf"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})},Kzc=function(a){if(!a.H)return _.Wh(Error("Wf"));if(a.Hf())return _.Wh(Error(a.O));var b=wzc(a.lj()),c=_.CI.z6;a=dM(a,c,"readwrite");if(!a)return _.Wh(Error("Xf"));a.objectStore(c).remove(b);return _.Vh(a.wait()).then(function(){})};
cM.prototype.getMetadata=function(a){if(this.H){if(this.Hf())return _.Wh(Error(this.O));if(a&&0==a.length)return _.Wh(Error("Yf"))}else return _.Wh(Error("Zf"));var b=this.lj(),c=_.CI.N7,d=dM(this,c);if(!d)return _.Wh(Error("$f"));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(_.Vh(c.get(lzc(b,e.global,e.key))));c=_.Xh(d)}else c=_.Xh([c.getAll(ozc(b,!1)).then(),c.getAll(ozc(b,!0)).then()]).then(function(f){var h=_.m(f);f=h.next().value;h=h.next().value;
return bnc(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]===bM(b))){h=k[0]!==b.Au()||k[1]!==String(b.clientId)?void 0:new mzc(k[3],h.v,l);break a}}h=void 0}return h})})};
var Lzc=function(a,b){if(a.H){if(a.Hf())return _.Wh(Error(a.O));if(0==b.length)return _.Wh(Error("ag"))}else return _.Wh(Error("bg"));var c=_.CI.N7,d=dM(a,c,"readwrite");if(!d)return _.Wh(Error("cg"));c=d.objectStore(c);d=[];b=_.m(b);for(var e=b.next();!e.done;e=b.next())d.push(c.put(nzc(e.value,a.lj())).then());return _.Xh(d).then(function(){})},Mzc=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Hf())return _.Wh(Error(a.O))}else return _.Wh(Error("eg"));var c=a.lj(),d=_.CI.N7;a=dM(a,d,"readwrite");
if(!a)return _.Wh(Error("fg"));d=a.objectStore(d);a=[];a.push(d.remove(ozc(c,!1)).then());b&&a.push(d.remove(ozc(c,!0)).then());return _.Xh(a).then(function(){})},Nzc=function(a){if(!a.H)return _.Wh(Error("gg"));if(a.Hf())return _.Wh(Error(a.O));var b=rzc(a.lj().Au(),a.lj().clientId),c=_.CI.RU;a=dM(a,c);if(!a)return _.Wh(Error("hg"));c=a.objectStore(c);return _.Vh(c.get(b)).then(function(d){return qzc(d)})},Ozc=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.Wh(Error("ig"));if(a.Hf())return _.Wh(Error(a.O));
var c=a.lj(),d=rzc(c.Au(),c.clientId);b=new pzc(bM(c),b?Date.now():void 0);c=_.CI.RU;a=dM(a,c,"readwrite");if(!a)return _.Wh(Error("jg"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return _.Vh(a.wait())};cM.prototype.Jl=function(a){var b=this;return this.H?this.Hf()?_.Wh(Error(this.O)):Nzc(this).then(function(c){var d=bM(b.lj());if(c)if(a){if(!c.O&&d==c.H&&d!=bM(a))return Ozc(b,!0);if(c.O&&d==bM(a))return Ozc(b)}else{if(d!=c.H)return Ozc(b)}else if(!a)return Ozc(b)}):_.Wh(Error("kg"))};
var Pzc=function(a){if(!a.H)return _.Wh(Error("lg"));if(a.Hf())return _.Wh(Error(a.O));var b=a.lj(),c=rzc(b.Au(),b.clientId);return Nzc(a).then(function(d){if(d){d=_.CI.RU;var e=dM(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
cM.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Hf()?_.Wh(Error(this.O)):Nzc(this).then(function(c){var d=c&&c.H==bM(b.lj());return d&&!a?!1:(c&&d?Pzc(b):_.Vh()).then(function(){return _.Xh([Mzc(b,a),Kzc(b),Gzc(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.Wh(Error("mg"))};cM.prototype.close=function(){this.ha("Closing database")};cM.prototype.log=function(a){this.Zf.info("drive.ds.sync.storage.VersionedDb",a)};
var Qzc=function(a){if(1>=a.lj())return!1;var b=a.H.objectStoreNames;return _.Wa(_.CI).every(function(c){return b&&b.contains(c)})},Rzc=function(){var a=_.Yh();_.vdc("GoogleDriveDs").hg(function(b){b?Qzc(b)?a.resolve(b):(b.close(),_.Vh(wuc()).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},Szc=function(a,b,c){var d=_.Yh();a?_.tdc(a,[_.CI.d0],"readonly").objectStore(_.CI.d0).getAll().hg(function(e){e=
_.Wa(e).map(function(f){return Azc(f)}).filter(function(f){return null!=f});d.resolve(e.filter(function(f){return(!b||f.Au()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},Tzc=function(a,b,c){var d=_.Yh();Rzc().then(function(e){if(e){var f=_.CI.RU;_.tdc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return qzc(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.CI.d0,p=_.tdc(e,[l],"readonly");p.objectStore(l).get(h.H).then(function(q){(q=
Azc(q))?(q.ka=!0,0>k?q.ha=!0:0<k&&(q.ma=k),d.resolve(q)):d.resolve(null)});_.bi(p.wait(),function(){e.close()})}else d.resolve(null),e.close()},function(h){d.reject(h);e.close()})}else d.resolve(null)},d.reject);return d.promise},Uzc=function(a,b,c){var d=_.Yh(),e=new cM(_.Vh(a),b);Bzc(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},Vzc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=Uzc(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?
h:void 0}))});_.Xh(f).then(function(h){var k=[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+bM(l)))});d.resolve(k)})},Wzc=function(a,b,c){var d=Date.now()-12096E5,e=_.Yh();Rzc().then(function(f){f?(_.Zh(e.promise,function(){f.close()}),Szc(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){Vzc(h,c,f,e)})):e.resolve([])});return e.promise},Xzc=function(a,b,c){var d=_.Yh();Rzc().then(function(e){e?
(_.Zh(d.promise,function(){e.close()}),Szc(e,a,b).then(function(f){Vzc(f,c,e,d,!0)})):d.resolve([])});return d.promise},Yzc=function(a,b,c,d){if(a.length){var e=_.CI.z6,f=a.shift(),h=uzc(f,3,0,1);try{_.tdc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=xzc(k))&&(!k.l1||k.l1&&d.has(f.V))?b.resolve(f):Yzc(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},Zzc=function(a,b,c,d,e,f,h){var k=_.Yh();Rzc().then(function(l){l?(_.Zh(k.promise,function(){l.close()}),
Szc(l,a,b).then(function(p){return p.filter(function(q){return(!h||h!=bM(q))&&q.W==c&&q.H>=e&&tnc(d.filter(function(r){return!_.sgc.has(r)}),q.ah(),b)})},function(){return[]}).then(function(p){p.length?(p.sort(function(q,r){return r.H-q.H}),Yzc(p,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},$zc={key:"rid",global:!0},aAc={key:"ooi",global:!0},bAc={key:"rtds",global:!1},cAc={key:"dct",global:!1},dAc={key:"pc",global:!1},eAc=function(a){this.H=new _.Sh(function(b){a?a.initialize().then(function(){return b(a)},
function(){return b(null)}):b(null)})};eAc.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Hf())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Xa():void 0},function(){})})};eAc.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Hf()?Lzc(c,[new mzc(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};eAc.prototype.yu=function(){return this.get($zc).then(function(a){return a?a:null})};
eAc.prototype.oz=function(a){return this.set($zc,a)};var fAc=function(a){return a.get(aAc).then(function(b){return"boolean"===typeof b?b:null})};eAc.prototype.lz=function(a){return this.set(aAc,a)};var gAc=function(a){return a.get(dAc).then(function(b){return"boolean"===typeof b?b:null})},hAc=function(a){return a.get(bAc).then(function(b){return Array.isArray(b)?b:null})},iAc=function(a){return a.get(cAc).then(function(b){return"number"===typeof b?b:null})},jAc=function(){this.cj=[]};_.J(jAc,_.wK);
jAc.prototype.add=function(a,b){var c=a.Wv.jx;return c instanceof _.DJ&&_.y(c.request,12)?_.wK.prototype.add.call(this,a,b):!1};jAc.prototype.uta=function(a){return this.cj.splice(0,Math.min(a,1))};var kAc=function(a,b){this.cj=[];this.H=b};_.J(kAc,_.wK);kAc.prototype.add=function(a,b){return a.Wv.jx instanceof _.DJ?!1:_.wK.prototype.add.call(this,a,b)};
kAc.prototype.uta=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.cj.length&&b.length<a;f++){var h=this.cj[f],k=h.Wv.jx;k instanceof _.WI||k instanceof _.hJ||k instanceof _.yJ?k="app|"+k.Gh():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 _.qD||k instanceof _.pD?(k=k instanceof _.qD?_.x(k,_.Ro,1).getKey():
k.getKey(),k="pref|"+_.y(k,2)+"|"+_.So(k)):k=k instanceof _.aJ?"td|"+k.getId():null;var l=h.Wv.jx;if(l instanceof _.UI)l=!!_.N(l,8);else if(l instanceof _.SI){l=this.H.H(l.getId());var p;if(p=!!l)p=!!(l&&l.getMimeType()&&_.tdb.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.cj,c[a]);return b};
var lAc=function(a,b,c,d,e,f,h,k,l){a=a.Uf();h=new _.glc(new _.flc(k,h,d,_.Dj(a,32,1073741824),_.Dj(a,21,1E3)));k=new _.Ekc(_.Dj(a,59,2E3),_.Dj(a,60,2E4),_.Dj(a,61,6));c=new _.Ckc(l?l:c,l?void 0:e);e={};e[1]=_.ilc(b,d);e[2]=_.jlc(b,a,k,c,d);e[3]=_.klc(b,a,k,c,d,"batch");l=_.Dj(a,10,50);f=new _.yK(d,b,[_.Dkc(c),new _.Hkc(l,_.Dj(a,11,100)),new _.xK(l),new _.vK(k,d)],[new kAc(a,f),new jAc,new _.wK],[new _.Qkc(a,k,c.Jj(),d)],"mutation");return e[4]=f,e[5]=_.llc(h,a,d),e[6]=_.klc(b,a,k,c,d,"find_by_ids_batch"),
e[7]=_.klc(b,a,k,c,d,"xd4_batch"),e[8]=_.klc(b,a,k,c,d,"xd4_batch_one",1),e},Poc=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""},mAc=function(a){_.I.call(this,a)};_.J(mAc,_.I);mAc.prototype.Cb=function(){return _.y(this,1)};mAc.prototype.Cc=function(a){return _.u(this,1,a)};nAc=function(a,b){return _.F(a,2,b)};ipc=[90,59,75];_.eM=function(a){_.I.call(this,a)};_.J(_.eM,_.I);_.eM.prototype.Cb=function(){return _.y(this,1)};
_.eM.prototype.Cc=function(a){return _.u(this,1,a)};_.eM.prototype.Ff=function(){return _.x(this,_.WB,2)};_.oAc=function(a,b){return _.F(a,2,b)};_.eM.prototype.Yj=function(){return _.y(this,3)};
_.fM=function(a){_.I.call(this,a)};_.J(_.fM,_.I);_.fM.prototype.aZ=function(a){_.F(this,1,a)};_.fM.prototype.Gv=function(){return _.x(this,_.Hy,2)};_.fM.prototype.YO=function(a){_.F(this,2,a)};
_.pAc=function(a){_.I.call(this,a)};_.J(_.pAc,_.I);_.pAc.prototype.li=function(){return _.x(this,muc,2)};_.pAc.prototype.V=function(a){_.xj(this,5,_.qAc,a)};_.qAc=[5,6];
var rAc;_.sAc=function(a){_.I.call(this,a,-1,rAc)};_.J(_.sAc,_.I);_.sAc.prototype.V=function(a){_.xj(this,6,_.gM,a)};rAc=[3,4,5];_.gM=[6,7];
var tAc=function(a){_.I.call(this,a)};_.J(tAc,_.I);tAc.prototype.getType=function(){return _.y(this,1)};var uAc=function(a){var b=new tAc;return _.u(b,1,a)};tAc.prototype.Ny=function(){return _.y(this,3)};tAc.prototype.mz=function(a){return _.u(this,3,a)};tAc.prototype.Ei=function(){return _.y(this,4)};tAc.prototype.setPosition=function(a){return _.u(this,4,a)};
var wAc=function(a){_.I.call(this,a,-1,vAc)};_.J(wAc,_.I);wAc.prototype.Cb=function(){return _.y(this,1)};wAc.prototype.Cc=function(a){return _.u(this,1,a)};wAc.prototype.Yj=function(){return _.y(this,3)};var vAc=[2];
_.xAc=function(a){_.I.call(this,a)};_.J(_.xAc,_.I);_.xAc.prototype.getId=function(){return _.y(this,1)};_.xAc.prototype.Nb=function(a){return _.u(this,1,a)};_.xAc.prototype.se=function(){return _.x(this,_.Lf,4)};
var zAc=function(a){_.I.call(this,a,-1,yAc)};_.J(zAc,_.I);zAc.prototype.Cb=function(){return _.y(this,1)};zAc.prototype.Cc=function(a){return _.u(this,1,a)};zAc.prototype.Yj=function(){return _.y(this,3)};var yAc=[2];
var AAc=function(a){_.I.call(this,a)};_.J(AAc,_.I);AAc.prototype.Cb=function(){return _.y(this,1)};AAc.prototype.Cc=function(a){return _.u(this,1,a)};AAc.prototype.yr=function(){return _.x(this,_.sL,2)};
var BAc=function(a){_.I.call(this,a)};_.J(BAc,_.I);_.g=BAc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.yr=function(){return _.x(this,_.sL,2)};_.g.Yj=function(){return _.y(this,3)};_.g.Gh=function(){return _.y(this,4)};
_.hM=function(a){_.I.call(this,a)};_.J(_.hM,_.I);_.hM.prototype.getType=function(){return _.y(this,1)};var CAc=function(a){var b=new _.hM;return _.u(b,1,a)},DAc=function(a,b){return _.F(a,2,b)};_.hM.prototype.Ny=function(){return _.y(this,3)};_.hM.prototype.mz=function(a){return _.u(this,3,a)};_.hM.prototype.Ei=function(){return _.y(this,4)};_.hM.prototype.setPosition=function(a){return _.u(this,4,a)};
var FAc=function(a){_.I.call(this,a,-1,EAc)};_.J(FAc,_.I);var EAc=[1];
var HAc=function(a){_.I.call(this,a,-1,GAc)};_.J(HAc,_.I);HAc.prototype.Cb=function(){return _.y(this,1)};HAc.prototype.Cc=function(a){return _.u(this,1,a)};HAc.prototype.Yj=function(){return _.y(this,3)};var GAc=[2];
var JAc=function(a){_.I.call(this,a,-1,IAc)};_.J(JAc,_.I);JAc.prototype.Cb=function(){return _.y(this,1)};JAc.prototype.Cc=function(a){return _.u(this,1,a)};JAc.prototype.Yj=function(){return _.y(this,3)};var IAc=[2];
var KAc=function(a){_.I.call(this,a)};_.J(KAc,_.I);
var LAc=function(a){_.I.call(this,a)};_.J(LAc,_.I);LAc.prototype.Ky=function(){return _.y(this,2)};
var MAc=function(a){_.I.call(this,a)};_.J(MAc,_.I);MAc.prototype.H=function(){return _.x(this,_.UC,1)};MAc.prototype.V=function(){return _.x(this,_.UC,2)};MAc.prototype.wa=function(){return _.x(this,_.UC,3)};
var NAc=function(a){_.I.call(this,a)};_.J(NAc,_.I);NAc.prototype.H=function(){return _.N(this,1)};NAc.prototype.V=function(){return _.N(this,3)};NAc.prototype.wa=function(){return _.N(this,4)};
var OAc=function(a){_.I.call(this,a)};_.J(OAc,_.I);_.g=OAc.prototype;_.g.getId=function(){return _.y(this,1)};_.g.Nb=function(a){return _.u(this,1,a)};_.g.Ebb=function(){return _.y(this,2)};_.g.ve=function(){return _.y(this,4)};_.g.Dbb=function(){return _.x(this,NAc,5)};_.g.getCapabilities=function(){return _.x(this,PAc,6)};_.g.Jbb=function(){return _.y(this,7)};_.g.Y5a=function(a){return _.xj(this,13,iM,a)};_.g.Cbb=function(){return _.Gj(this,QAc,19,iM)};
_.g.eOa=function(a){return _.xj(this,19,iM,a)};_.g.j6a=function(a){return _.xj(this,12,iM,a)};_.g.k6a=function(a){return _.xj(this,11,iM,a)};_.g.dvb=function(){return _.Gj(this,RAc,10,iM)};_.g.Fbb=function(){return _.Gj(this,SAc,15,iM)};_.g.J6a=function(a){return _.xj(this,15,iM,a)};_.g.Gbb=function(){return _.Gj(this,TAc,14,iM)};_.g.K6a=function(a){return _.xj(this,14,iM,a)};_.g.Y6a=function(a){return _.xj(this,9,iM,a)};_.g.Hbb=function(){return _.Gj(this,UAc,8,iM)};
_.g.fOa=function(a){return _.xj(this,8,iM,a)};_.g.Ibb=function(){return _.Gj(this,VAc,18,iM)};_.g.gOa=function(a){return _.xj(this,18,iM,a)};_.g.c7a=function(a){return _.xj(this,17,iM,a)};var PAc=function(a){_.I.call(this,a)};_.J(PAc,_.I);PAc.prototype.H=function(){return _.N(this,1)};PAc.prototype.V=function(){return _.N(this,2)};var WAc=function(a){_.I.call(this,a)};_.J(WAc,_.I);var TAc=function(a){_.I.call(this,a,-1,XAc)};_.J(TAc,_.I);TAc.prototype.H=function(){return _.zb(this,YAc,1)};
var ZAc=function(a,b){_.tj(a,1,b)},YAc=function(a){_.I.call(this,a)};_.J(YAc,_.I);_.g=YAc.prototype;_.g.getLabel=function(){return _.y(this,1)};_.g.Rp=function(){return _.mj(this,1)};_.g.Xa=function(){return _.y(this,2)};_.g.Hb=function(a){return _.u(this,2,a)};_.g.Ci=function(){return _.wb(this,2)};_.g.Ng=function(){return _.mj(this,2)};_.g.Af=function(){return _.y(this,5)};_.g.kl=function(a){return _.u(this,5,a)};_.g.Lbb=function(){return _.mj(this,5)};
_.g.getCapabilities=function(){return _.x(this,$Ac,3)};_.g.Kbb=function(){return _.x(this,aBc,4)};var $Ac=function(a){_.I.call(this,a)};_.J($Ac,_.I);$Ac.prototype.H=function(){return _.N(this,1)};$Ac.prototype.V=function(){return _.N(this,2)};var aBc=function(a){_.I.call(this,a)};_.J(aBc,_.I);_.g=aBc.prototype;_.g.Pbb=function(){return _.N(this,1)};_.g.Qbb=function(){return _.N(this,2)};_.g.Mbb=function(){return _.x(this,MAc,3)};_.g.Rbb=function(){return _.mj(this,3)};
_.g.Obb=function(){return _.x(this,MAc,4)};_.g.Tbb=function(){return _.mj(this,4)};_.g.Nbb=function(){return _.y(this,5)};_.g.Sbb=function(){return _.mj(this,5)};var SAc=function(a){_.I.call(this,a)};_.J(SAc,_.I);SAc.prototype.H=function(){return _.y(this,1)};SAc.prototype.TW=function(){return _.mj(this,1)};SAc.prototype.getOptions=function(){return _.x(this,TAc,2)};var UAc=function(a){_.I.call(this,a)};_.J(UAc,_.I);UAc.prototype.V=function(){return _.y(this,1)};
UAc.prototype.H=function(){return _.y(this,2)};var bBc=function(a){_.I.call(this,a)};_.J(bBc,_.I);bBc.prototype.TW=function(){return _.mj(this,1)};bBc.prototype.getOptions=function(){return _.x(this,UAc,2)};var RAc=function(a){_.I.call(this,a)};_.J(RAc,_.I);RAc.prototype.V=function(){return _.y(this,1)};RAc.prototype.H=function(){return _.y(this,2)};var cBc=function(a){_.I.call(this,a)};_.J(cBc,_.I);var dBc=function(a){_.I.call(this,a)};_.J(dBc,_.I);dBc.prototype.TW=function(){return _.mj(this,1)};
dBc.prototype.getOptions=function(){return _.x(this,cBc,2)};var eBc=function(a){_.I.call(this,a)};_.J(eBc,_.I);_.g=eBc.prototype;_.g.fOa=function(a){return _.xj(this,3,jM,a)};_.g.Y6a=function(a){return _.xj(this,4,jM,a)};_.g.k6a=function(a){return _.xj(this,5,jM,a)};_.g.j6a=function(a){return _.xj(this,6,jM,a)};_.g.Y5a=function(a){return _.xj(this,7,jM,a)};_.g.K6a=function(a){return _.xj(this,8,jM,a)};_.g.J6a=function(a){return _.xj(this,9,jM,a)};_.g.c7a=function(a){return _.xj(this,10,jM,a)};
_.g.gOa=function(a){return _.xj(this,11,jM,a)};_.g.eOa=function(a){return _.xj(this,12,jM,a)};var fBc=function(a){_.I.call(this,a)};_.J(fBc,_.I);var VAc=function(a){_.I.call(this,a)};_.J(VAc,_.I);VAc.prototype.H=function(){return _.y(this,1)};VAc.prototype.TW=function(){return _.mj(this,1)};VAc.prototype.getOptions=function(){return _.x(this,fBc,2)};var QAc=function(a){_.I.call(this,a)};_.J(QAc,_.I);QAc.prototype.H=function(){return _.y(this,4)};
var iM=[13,19,12,11,10,15,14,9,8,18,17,16],XAc=[1],jM=[3,4,5,6,7,8,9,10,11,12];
var gBc=function(a){_.I.call(this,a)};_.J(gBc,_.I);gBc.prototype.getType=function(){return _.y(this,1)};var hBc=function(a){var b=new gBc;return _.u(b,1,a)},iBc=function(a,b){return _.F(a,2,b)};gBc.prototype.Ny=function(){return _.y(this,3)};gBc.prototype.mz=function(a){return _.u(this,3,a)};gBc.prototype.Ei=function(){return _.y(this,4)};gBc.prototype.setPosition=function(a){return _.u(this,4,a)};
var kBc=function(a){_.I.call(this,a,-1,jBc)};_.J(kBc,_.I);kBc.prototype.Cb=function(){return _.y(this,1)};kBc.prototype.Cc=function(a){return _.u(this,1,a)};var jBc=[2];
var lBc=function(a){_.I.call(this,a)};_.J(lBc,_.I);
var kM=function(a){_.I.call(this,a,-1,mBc)};_.J(kM,_.I);kM.prototype.getName=function(){return _.y(this,1)};kM.prototype.Zc=function(a){return _.u(this,1,a)};kM.prototype.Hm=function(){return _.y(this,2)};var nBc=function(a,b){return _.u(a,2,b)};kM.prototype.V=function(){return _.y(this,14)};var oBc=function(a,b){return _.u(a,14,b)};_.g=kM.prototype;_.g.getTitle=function(){return _.y(this,3)};_.g.setTitle=function(a){return _.u(this,3,a)};_.g.Af=function(){return _.y(this,4)};
_.g.kl=function(a){return _.u(this,4,a)};_.g.Ubb=function(){return _.y(this,15)};_.g.Xj=function(){return _.zb(this,OAc,5)};var pBc=function(a,b){return _.tj(a,5,b)},qBc=function(a,b){_.F(a,6,b)},rBc=function(a,b){_.F(a,7,b)},sBc=function(a,b){_.F(a,8,b)},tBc=function(a,b){return _.u(a,9,b)},uBc=function(a,b){return _.u(a,10,b)},vBc=function(a,b){return _.u(a,11,b)};kM.prototype.H=function(){return _.x(this,NAc,12)};var wBc=function(a,b){_.F(a,12,b)};
kM.prototype.getCapabilities=function(){return _.x(this,xBc,13)};var yBc=function(a,b){_.F(a,13,b)};kM.prototype.getCustomer=function(){return _.y(this,16)};var zBc=function(a,b){return _.u(a,16,b)},xBc=function(a){_.I.call(this,a)};_.J(xBc,_.I);xBc.prototype.wa=function(){return _.N(this,1)};xBc.prototype.H=function(){return _.N(this,2)};xBc.prototype.Ba=function(){return _.N(this,3)};xBc.prototype.V=function(){return _.N(this,4)};var mBc=[5];
var lM=function(a){_.I.call(this,a,-1,ABc)};_.J(lM,_.I);lM.prototype.Cb=function(){return _.y(this,1)};lM.prototype.Cc=function(a){return _.u(this,1,a)};lM.prototype.H=function(){return _.zb(this,kM,2)};var BBc=function(a,b){return _.tj(a,2,b)};lM.prototype.Yj=function(){return _.y(this,3)};var ABc=[2];
var CBc=function(a){_.I.call(this,a)};_.J(CBc,_.I);CBc.prototype.Cb=function(){return _.y(this,1)};CBc.prototype.Cc=function(a){return _.u(this,1,a)};CBc.prototype.H=function(){return _.x(this,kM,2)};CBc.prototype.Yj=function(){return _.y(this,3)};
_.mM=function(a){_.I.call(this,a,-1,DBc)};_.J(_.mM,_.I);_.mM.prototype.kW=function(){return _.zb(this,_.VF,2)};_.mM.prototype.se=function(){return _.x(this,_.Lf,3)};var DBc=[1,2];
_.Loc=function(a){_.I.call(this,a)};_.J(_.Loc,_.I);_.g=_.Loc.prototype;_.g.getItem=function(){return _.x(this,_.Kk,1)};_.g.setItem=function(a){return _.F(this,1,a)};_.g.getError=function(){return _.x(this,_.Pc,2)};_.g.Qe=function(a){return _.F(this,2,a)};_.g.ho=function(){return _.mj(this,2)};_.g.Dv=function(){return _.y(this,4)};
var FBc=function(a){_.I.call(this,a,-1,EBc)};_.J(FBc,_.I);var EBc=[2,4];
var HBc=function(a){_.I.call(this,a,-1,GBc)};_.J(HBc,_.I);HBc.prototype.H=function(){return _.y(this,2)};var IBc=function(a,b){_.u(a,2,b)},GBc=[1];
var JBc=function(a){_.I.call(this,a)};_.J(JBc,_.I);JBc.prototype.getType=function(){return _.y(this,1)};var KBc=function(a){var b=new JBc;return _.u(b,1,a)},LBc=function(a,b){return _.F(a,2,b)};JBc.prototype.Ny=function(){return _.y(this,3)};JBc.prototype.mz=function(a){return _.u(this,3,a)};JBc.prototype.Ei=function(){return _.y(this,4)};JBc.prototype.setPosition=function(a){return _.u(this,4,a)};
var NBc=function(a){_.I.call(this,a,-1,MBc)};_.J(NBc,_.I);NBc.prototype.Cb=function(){return _.y(this,1)};NBc.prototype.Cc=function(a){return _.u(this,1,a)};NBc.prototype.Yj=function(){return _.y(this,3)};var MBc=[2];
var OBc=function(a){_.I.call(this,a)};_.J(OBc,_.I);OBc.prototype.Yc=function(){return _.x(this,fsc,1)};OBc.prototype.$n=function(){return _.y(this,2)};
var nM=function(a){_.I.call(this,a)};_.J(nM,_.I);nM.prototype.Cb=function(){return _.y(this,1)};nM.prototype.Cc=function(a){return _.u(this,1,a)};nM.prototype.Yj=function(){return _.y(this,3)};
var PBc=function(a){_.I.call(this,a)};_.J(PBc,_.I);PBc.prototype.getKey=function(){return _.y(this,1)};PBc.prototype.vt=function(){return _.mj(this,1)};var RBc=function(a){_.I.call(this,a,-1,QBc)};_.J(RBc,_.I);var SBc=[2,4,6,10],TBc=[3,5,7,8,9],QBc=[1];
var UBc=function(a){_.I.call(this,a)};_.J(UBc,_.I);
_.WBc=function(a){_.I.call(this,a,-1,VBc)};_.J(_.WBc,_.I);var VBc=[1];
var TK=function(a){_.I.call(this,a,-1,XBc)},Roc;_.J(TK,_.I);TK.prototype.$n=function(){return _.y(this,1)};var Ooc=function(a,b){return _.u(a,1,b)};TK.prototype.Cb=function(){return _.y(this,3)};TK.prototype.Cc=function(a){return _.u(this,3,a)};Roc=function(a,b){_.tj(a,5,b)};_.Yoc=function(a){_.I.call(this,a)};_.J(_.Yoc,_.I);_.Yoc.prototype.$b=function(){return _.y(this,2)};_.Woc=function(a){_.I.call(this,a,-1,YBc)};_.J(_.Woc,_.I);
var Voc=function(a,b){return _.u(a,1,b)},Uoc=function(a,b){return _.u(a,2,b)},Xoc=function(a,b){_.tj(a,3,b)},XBc=[5],YBc=[3];
var ZBc=function(a){_.I.call(this,a)};_.J(ZBc,_.I);_.g=ZBc.prototype;_.g.Cb=function(){return _.y(this,1)};_.g.Cc=function(a){return _.u(this,1,a)};_.g.Yj=function(){return _.y(this,2)};_.g.$Na=function(){return _.x(this,_.Ro,3)};_.g.getKey=function(){return _.x(this,_.kc,4)};_.g.vt=function(){return _.mj(this,4)};
var oM=function(a){_.I.call(this,a)};_.J(oM,_.I);oM.prototype.getType=function(){return _.y(this,1)};var $Bc=function(a){var b=new oM;return _.u(b,1,a)};oM.prototype.rn=function(){return _.x(this,vL,2)};var aCc=function(a,b){return _.F(a,2,b)};oM.prototype.Ny=function(){return _.y(this,3)};oM.prototype.mz=function(a){return _.u(this,3,a)};oM.prototype.Ei=function(){return _.y(this,4)};oM.prototype.setPosition=function(a){return _.u(this,4,a)};
var pM=function(a){_.I.call(this,a)};_.J(pM,_.I);pM.prototype.getType=function(){return _.y(this,1)};var bCc=function(a){var b=new pM;return _.u(b,1,a)};pM.prototype.rn=function(){return _.x(this,_.dI,2)};var cCc=function(a,b){return _.F(a,2,b)};pM.prototype.Ny=function(){return _.y(this,3)};pM.prototype.mz=function(a){return _.u(this,3,a)};pM.prototype.Ei=function(){return _.y(this,4)};pM.prototype.setPosition=function(a){return _.u(this,4,a)};
var eCc=function(a){_.I.call(this,a,-1,dCc)};_.J(eCc,_.I);eCc.prototype.Cb=function(){return _.y(this,1)};eCc.prototype.Cc=function(a){return _.u(this,1,a)};eCc.prototype.Jh=function(){return _.zb(this,_.zEa,2)};eCc.prototype.Nq=function(a,b){return _.yj(this,2,a,_.zEa,b)};var dCc=[2];
var gCc=function(a){_.I.call(this,a,-1,fCc)};_.J(gCc,_.I);gCc.prototype.Cb=function(){return _.y(this,1)};gCc.prototype.Cc=function(a){return _.u(this,1,a)};gCc.prototype.Yk=function(){return _.zb(this,oM,2)};var fCc=[2];
var hCc=function(a){_.I.call(this,a)};_.J(hCc,_.I);hCc.prototype.Cb=function(){return _.y(this,1)};hCc.prototype.Cc=function(a){return _.u(this,1,a)};
var jCc=function(a){_.I.call(this,a,-1,iCc)};_.J(jCc,_.I);jCc.prototype.Cb=function(){return _.y(this,1)};jCc.prototype.Cc=function(a){return _.u(this,1,a)};jCc.prototype.Yk=function(){return _.zb(this,pM,2)};var iCc=[2];
var lCc=function(a){_.I.call(this,a,-1,kCc)};_.J(lCc,_.I);lCc.prototype.Ky=function(){return _.z(this,2)};var kCc=[1];
var mCc=function(a){_.pi.call(this,"Ib");this.dataType=a};_.J(mCc,_.pi);
var nCc=function(a,b){_.pi.call(this,"Jb");this.percentDone=a;this.Zua=b};_.J(nCc,_.pi);
var oCc=function(){};_.g=oCc.prototype;_.g.JM=function(a,b){return iBc(hBc(1),a).setPosition(b)};_.g.IM=function(a,b){return iBc(hBc(2).setPosition(b),a)};_.g.ZE=function(a,b,c){return iBc(hBc(3).mz(b).setPosition(c),a)};_.g.RQ=function(a,b){return iBc(hBc(4),a).setPosition(b)};_.g.dN=function(a){return _.x(a,IL,2)};
var pCc=function(){_.Ky.call(this,new oCc,function(a){return a&&a.getName()})};_.J(pCc,_.Ky);
var qM=function(a,b,c,d){d=void 0===d?50:d;dL.call(this,a);var e=this;this.V=b;this.connectionState=c;this.limit=d;this.active=!1;this.status=6;this.wa=_.kec(new _.cI,[1]);this.ha=this.H=!1;this.Nc=new _.kf(this);this.Ja(this.Nc);_.af(this,function(){e.Nc.removeAll()})};_.J(qM,dL);_.g=qM.prototype;_.g.Me=function(){return this.V.Me()||this.connectionState.Me()};
_.g.MP=function(){var a=this;this.Nc.listen(this.V,"ub",function(){return void a.eu()});this.Nc.listen(this.connectionState,[].concat(_.bc(Object.values(_.XB))),function(){return void a.eu()});this.V.Me()?this.Nc.$c(this.V,"ub",function(b){b.Me()||(a.hH(),a.dispatchEvent(new _.pi(_.Zp)))}):this.connectionState.Me()?this.Nc.$c(this.connectionState,[_.XB.NL,_.XB.SU],function(){a.hH();a.dispatchEvent(new _.pi(_.Zp))}):(this.hH(),this.dispatchEvent(new _.pi(_.Zp)))};_.g.hH=function(){};
_.g.Eu=function(a){var b=this;if(this.nk()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.eu();this.V.Me()?this.Nc.$c(this.V,"ub",function(d){d.Me()||b.pP()}):this.pP()}};_.g.SL=function(){this.Me()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.wa};_.g.handleError=function(a){this.dispatchEvent(new _.Sc(a))};_.g.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};_.g.nk=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Nc.removeAll();this.activate()};_.g.pP=function(){};
var qCc=function(a,b,c,d,e){qM.call(this,c,a,b,e.wi()||void 0);this.request=e;this.logName="drive.ds.sync.CategoryMetadataLiveList";this.W=[];this.data=[];this.changed=!1;this.O=new pCc;this.ka=d};_.J(qCc,qM);_.g=qCc.prototype;_.g.hH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.getData=function(){return ywc(new JL,this.data).Cc(this.status)};
_.g.ms=function(){var a=_.Jy(this.O,this.W,this.data);this.W=this.data;var b=(new kBc).Cc(this.status);return _.tj(b,2,a)};_.g.pP=function(){this.ka(this.Oi(),this.limit)};_.g.eu=function(){if(this.active){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,rCc(this)}};_.g.$b=function(){return this.data.length};_.g.hd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||$K(this.O,this.data,b.H()))this.H=!0,this.status=b.Cb(),this.data=b.H(),this.ha=a.H,rCc(this)};var rCc=function(a){a.log("Livelist "+a.Oi()+" returning "+a.data.length+" for "+(a.request.qc()+". Status: ")+(_.db(tsc)[a.Cb()]+"."));a.dispatchEvent(new _.pi(_.cd,a))};qCc.prototype.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a category metadata query after "+a.retryCount+" retries.",a.error)))};
var sCc=function(a,b,c,d,e,f,h){_.eL.call(this,a,b,c,e,f,d);this.Zf=h;this.logName="drive.ds.sync.ViewCacheLiveList";this.ka=null;this.ha=void 0;this.suggestionSessionId=null};_.J(sCc,_.eL);sCc.prototype.getData=function(){this.H=this.items;var a=irc((new _.eI).Cc(this.Cb()).fB(this.items),this.nk());a=_.F(a,7,this.ka).RP(this.suggestionSessionId).mi(this.Oe);return _.rj(a,18,this.ha)};
sCc.prototype.update=function(a){if(Asc(this,a)&&(Bsc(this,a),this.ka=a.R6(),this.suggestionSessionId=a.Wf(),this.ha=a.$ka(),zsc(this),this.suggestionSessionId&&Fvc(this.O)&&(a=this.Zf.H(106027)))){var b=_.x(_.gK(a),Drc,20);if(!b){b=new Drc;var c=_.gK(a);_.F(c,20,b)}_.u(b,1,this.suggestionSessionId);a.Aj()}};
var tCc=function(a,b){var c={};a=_.Sa(a,function(d){return!!d});b=_.Sa(b,function(d){return!!d});_.Ra(a,function(d,e){var f=b[e];f?_.Cj(d,f)||(d=cCc(bCc(4),f),c[e]=d):(d=cCc(bCc(2),d),c[e]=d)});_.Ra(b,function(d,e){a[e]||(d=cCc(bCc(1),d),c[e]=d)});return c},uCc=function(a,b){return _.Va(a)!==_.Va(b)||!_.Za(tCc(a,b))};
var vCc=function(a,b){dL.call(this,a);this.request=b;this.logName="drive.ds.sync.WorkspaceFindByIdsLiveMap";this.status=6;this.H={};this.data={}};_.J(vCc,dL);_.g=vCc.prototype;_.g.MP=function(){_.Za(this.data)&&6===this.status||this.dispatchEvent(new _.pi(_.cd,this))};_.g.Cb=function(){return this.status};_.g.ws=function(){return new _.cI};_.g.getData=function(){this.H=this.data;var a=(new _.kK).Cc(this.status);_.Ra(this.data,function(b,c){a.uU().set(c,b||new _.dI)});return a};
_.g.ms=function(){var a=tCc(this.H,this.data);this.H=this.data;var b=(new hCc).Cc(this.status);_.Ra(a,function(c,d){_.Bb(b,2,void 0,pM).set(d,c)});return b};_.g.NT=function(){throw Error("pg");};_.g.hd=function(){return this.request};_.g.update=function(a){var b={};a.uU().forEach(function(c,d){c||(c=nyc(d));b[d]=c});if(this.status!==a.Cb()||uCc(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.pi(_.cd,this))};
_.g.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a Workspace find by id after "+a.retryCount+" retries.",a.error)))};_.g.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};
var wCc=function(a,b,c,d,e,f){_.eL.call(this,a,b,c,d,e,f);this.ha=[];this.suggestionSessionId=null;this.logName="drive.ds.sync.PeoplePredictLiveList"};_.J(wCc,_.eL);wCc.prototype.getData=function(){this.H=this.items;var a=(new _.jK).Cc(this.Cb()).fB(this.items);var b=this.nk();a=_.u(a,4,b);return ssc(a,this.ha).RP(this.suggestionSessionId).mi(this.Oe)};wCc.prototype.update=function(a){Asc(this,a)&&(Bsc(this,a),this.ha=_.zb(a,_.xk,6),this.suggestionSessionId=a.Wf(),zsc(this))};
var xCc=function(){};_.g=xCc.prototype;_.g.JM=function(a,b){return aCc($Bc(1),a).setPosition(b)};_.g.IM=function(a,b){return aCc($Bc(2).setPosition(b),a)};_.g.ZE=function(a,b,c){return aCc($Bc(3).mz(b).setPosition(c),a)};_.g.RQ=function(a,b){return aCc($Bc(4),a).setPosition(b)};_.g.dN=function(a){return a.rn()};
var yCc=function(){_.Ky.call(this,new xCc,function(a){return a&&a.tq()})};_.J(yCc,_.Ky);
var zCc=function(a,b,c){qM.call(this,a.Be(),a.Jj(),a.wk(),b.wi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new yCc;this.suggestionSessionId=null;this.ka=c};_.J(zCc,qM);_.g=zCc.prototype;_.g.hH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Vuc(Uuc((new wL).Cc(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new gCc).Cc(this.status);return _.tj(b,2,a)};_.g.pP=function(){};_.g.eu=function(){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.hd=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||$K(this.W,this.data,a.Yk())){this.changed=this.H=!0;this.data=a.Yk();if(a=a.Wf())this.suggestionSessionId=a;this.eu()}};_.g.refresh=function(){this.ka()};_.g.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a Suggested Workspace query after "+(a.retryCount+" retries."),a.error)))};
var ACc=function(a,b,c,d){dL.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=_.kec(new _.cI,[1]);this.H=!0;this.limit=b.wi();_.af(this,function(){e.O=[]})};_.J(ACc,dL);_.g=ACc.prototype;_.g.MP=function(){_.qa(this.items)&&6===this.status&&this.H||this.dispatchEvent(new _.pi(_.cd,this))};_.g.hd=function(){return this.request};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};
_.g.nk=function(){return this.H};_.g.getData=function(){this.O=this.items;return irc((new _.eI).Cc(this.status).fB(this.items),this.H)};_.g.ms=function(){var a=_.Jy(_.j7a(),this.O,this.items),b=(new qsc).Cc(this.status);a=_.tj(b,2,a);this.O=this.items;return a};_.g.Eu=function(a){this.isActive()&&(this.limit+=a||20,this.ha.$F(this.Oi(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||$K(_.j7a(),this.items,a.zd()))this.items=a.zd(),this.status=a.Cb(),_.mI(this.W)&&(this.V=dnc(this.status,this.items)),this.H=a.Rl(),this.isActive()&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a Team Drive query after "+a.retryCount+" retries.",a.error)))};_.g.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};_.g.Lu=function(){throw Error("qg");};_.g.refresh=function(){};
var BCc=function(a,b,c){dL.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=_.kec(new _.cI,[1]);this.log("Creating TD find by ids live map: "+this.request.nm().join(", "));_.af(this,function(){d.O={}})};_.J(BCc,dL);_.g=BCc.prototype;_.g.MP=function(){(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.hd=function(){return this.request};
_.g.getData=function(){this.O=this.H;var a=new _.iK;a.Cc(this.status);a.map=this.H;return a};_.g.ms=function(){var a=Anc(this.O,this.H),b=new ysc;b.Cc(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.ws=function(){return this.V};_.g.NT=function(a){var b=this.request;this.request=a;this.W.EZ(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.Vc)&&(this.V=dnc(this.status,Object.values(this.H))),this.isActive()&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a team drive find-by-IDs query after "+a.retryCount+" retries.",a.error)))};_.g.QW=function(){this.dispatchEvent(new _.pi(_.eFa))};
var CCc=function(){};_.g=CCc.prototype;_.g.JM=function(a,b){return cCc(bCc(1),a).setPosition(b)};_.g.IM=function(a,b){return cCc(bCc(2).setPosition(b),a)};_.g.ZE=function(a,b,c){return cCc(bCc(3).mz(b).setPosition(c),a)};_.g.RQ=function(a,b){return cCc(bCc(4),a).setPosition(b)};_.g.dN=function(a){return a.rn()};
var DCc=function(){_.Ky.call(this,new CCc,function(a){return a&&a.getId()})};_.J(DCc,_.Ky);
var ECc=function(a,b,c){qM.call(this,a.Be(),a.Jj(),a.wk(),b.wi()||10);this.request=b;this.ka=c;this.logName="drive.ds.sync.WorkspaceQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new DCc};_.J(ECc,qM);_.g=ECc.prototype;_.g.hH=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.pi(_.cd,this))};_.g.getData=function(){this.O=this.data;return Iwc((new LL).Cc(this.status),this.data.slice(0))};
_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new jCc).Cc(this.status);return _.tj(b,2,a)};_.g.pP=function(){this.ka.$F(this.Oi(),this.limit)};_.g.eu=function(){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))};_.g.$b=function(){return this.data.length};_.g.hd=function(){return this.request};
_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||$K(this.W,this.data,b.Yk()))this.H=!0,this.status=b.Cb(),this.data=b.Yk(),this.ha=a.H,this.dispatchEvent(new _.pi(_.cd,this))};_.g.IB=function(a){this.dispatchEvent(new _.Sc(new _.Rc("Error occurred running a Workspace query after "+a.retryCount+" retries.",a.error)))};
var FCc=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.Df;this.O=this.context.iga;this.ta=this.context.U6};_.g=FCc.prototype;_.g.dya=function(a){var b=this,c=new sCc(this.context.Am,this.context.CQ,this.context.Be(),this.context.Vc,function(d,e){b.$F(d,e)},a,this.context.mk());this.Zh(c);_.af(c,function(){b.ek(c)});return c};
_.g.gya=function(a){var b=this,c=new wCc(this.context.Am,this.context.CQ,this.context.Be(),function(d,e){b.$F(d,e)},a,this.context.Vc);this.Zh(c);_.af(c,function(){b.ek(c)});return c};_.g.aya=function(a){var b=this,c=new Fsc(this.context.Vc,this.context.Am,this.context.Be(),this.context.C_,this.EZ.bind(this),a);this.Zh(c);_.af(c,function(){b.ek(c)});return c};_.g.jya=function(a){var b=this,c=new ACc(this.context.Be(),a,this,this.context.Vc);this.Zh(c);_.af(c,function(){b.ek(c)});return c};
_.g.kya=function(a){var b=this,c=new BCc(this.context,this,a);this.Zh(c);_.af(c,function(){b.ek(c)});return c};_.g.nya=function(a){var b=this,c=new ECc(this.context,a,this);this.Zh(c);_.af(c,function(){b.ek(c)});return c};_.g.hya=function(a){var b=this,c=new zCc(this.context,a,function(){if(a instanceof _.cA){var d=GCc(b.context);fyc(d,d.getKey(a)).refresh()}});this.Zh(c);_.af(c,function(){b.ek(c)});return c};
_.g.oya=function(a){var b=this,c=new vCc(this.context.Be(),a);this.Zh(c);_.af(c,function(){b.ek(c)});return c};_.g.Xxa=function(a){var b=this,c=new qCc(this.context.Jj(),this.context.wk(),this.context.Be(),function(d,e){b.$F(d,e)},a);this.Zh(c);_.af(c,function(){b.ek(c)});return c};
_.g.Zh=function(a){var b=a.Oi();this.H[b]=a;this.ha.create(b,a.hd());if(a.hd()instanceof _.eA)a=this.O.Zh(b,a.hd());else if(a.hd()instanceof _.cG)a=dyc(this.O,b,a.hd());else if(a.hd()instanceof _.cA)a=GCc(this.context).Zh(b,a.hd());else if(a.hd()instanceof _.jG)a=this.ta.Zh(b,a.hd());else{var c=a.hd(),d=fL(this.context.Am,c,2);this.log("Registering LiveList "+a.Oi()+" "+d);a=this.W.Zh(b,c)}"boolean"===typeof a&&mwc(this.ha,b,a)};
_.g.ek=function(a){if(a.hd()instanceof _.eA)this.O.ek(a.Oi(),a.hd());else if(a.hd()instanceof _.cG)eyc(this.O,a.Oi(),a.hd());else if(a.hd()instanceof _.cA)GCc(this.context).ek(a.Oi(),a.hd());else if(a.hd()instanceof _.jG)this.ta.ek(a.Oi(),a.hd());else{var b=a.hd(),c=fL(this.context.Am,b,2);this.log("Unregistering LiveList "+a.Oi()+" "+c);this.W.ek(a.Oi(),b)}GL(this.ha,a.Oi(),4);delete this.H[a.Oi()]};_.g.EZ=function(a,b,c){this.W.ek(a,b);this.W.Zh(a,c)};
_.g.$F=function(a,b){var c=HCc(this,a).hd();c.Gi(b);c instanceof _.eA?this.O.Zh(a,c):c instanceof _.cG?dyc(this.O,a,c):c instanceof _.jG?this.ta.Zh(a,c):this.W.Zh(a,c)};_.g.GO=function(a,b){var c=this.H[a]&&this.H[a].hd();c&&(c instanceof _.zf?jnc(c.H(),b.zd().filter(function(d){return!yL(d)})):c instanceof _.XF&&jnc(c.H(),Object.values(b.kt()).filter(function(d){return d&&!yL(d)})));this.ka[a]=b;this.V||(this.V=_.Ai(this.N9,50,this))};
_.g.vY=function(a,b){this.ma[a]=b;this.V||(this.V=_.Ai(this.N9,50,this))};_.g.GA=function(a){(a=this.H[a])&&a.QW()};_.g.N9=function(){_.Ci(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&&(pwc(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])GL(this.ha,a,3),d.IB(c)};
_.g.qla=function(a){return HCc(this,a).hd()};var HCc=function(a,b){if(!a.H[b])throw Error("rg`"+b);return a.H[b]};FCc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.LocalLiveRequestManager",a,void 0===b?"info":b)};
var ICc=function(){},JCc=function(a){this.H=a},Moc=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.BA=f;this.numFetchedFiles=h;this.O=k};
var rM=function(a,b){_.yi.call(this);this.O=a;this.request=b;this.he=_.Yh();this.complete=!1;this.H=""};_.J(rM,_.yi);rM.prototype.start=function(){var a=this;this.O.then(function(b){return b.Pe(a.request)}).then(this.W.bind(this)).then(null,this.handleError.bind(this));return this.he.promise};rM.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new nCc(0,this.H));KCc(this)};
var KCc=function(a){_.aa.setTimeout(function(){a.O.then(function(b){return b.Pe(new _.dhc(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 FBc;c=_.rj(c,2,b.H);c=_.u(c,3,a.H);c=_.u(c,5,b.W);c=_.u(c,6,b.V);c=_.u(c,7,b.BA);c=_.u(c,8,b.numFetchedFiles);b=_.tj(c,4,b.O);a.he.resolve(b)}else b=_.uI(_.Tp(_.Sp(new _.Pc,"Export failed for request "+a.H+": "+b.status),JSON.stringify(b)),8),a.handleError(b);a.dispose()}else a.dispatchEvent(new nCc(b.percentDone,
a.H)),KCc(a)}).then(null,function(b){a.handleError(b)})},5E3)};rM.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Pe(new _.chc(a.H))}).then(this.V.bind(this)).then(null,this.handleError.bind(this))};rM.prototype.V=function(){if(!this.complete){var a=new FBc;a=_.u(a,3,this.H);a=_.u(a,1,!0);this.he.resolve(a);this.complete=!0;this.dispose()}};rM.prototype.handleError=function(a){this.complete=!0;this.he.reject(_.NI(a));this.dispose()};
var LCc=function(){_.pi.call(this,"VbxEwf")};_.J(LCc,_.pi);
var MCc=function(a,b){this.context=a;this.H=null;this.oc=b||null};_.g=MCc.prototype;_.g.Ka=function(){return _.x(this.context.Vc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Xz=function(){return this.context.hB.Xz(this.H)};_.g.Be=function(){return this.context.Be()};_.g.XM=function(a){return _.fi(this.context.Df.$l.H(a))};_.g.JR=function(){return _.fi(this.context.hB.JR())};
_.g.I5=function(a,b,c){var d=new _.$h;if(_.Gj(a,_.nI,3,_.oI)||_.Gj(a,_.EJ,4,_.oI)||_.Gj(a,_.sK,5,_.oI)||_.Gj(a,_.BJ,6,_.oI)||_.Gj(a,_.aJ,7,_.oI)||_.Gj(a,_.UI,8,_.oI)||_.Gj(a,_.YI,9,_.oI)||_.Gj(a,_.xI,10,_.oI)){var e=jwc(a);this.context.Km().then(function(f){return f.Pe(e,{G8a:b,H8a:c})}).then(function(f){var h=[],k="";if(f instanceof _.tK){h=f.Yc().zd();var l=_.y(f,2);k=f.$n()}else if(f instanceof _.GJ)f.getItem()&&h.push(f.getItem()),l=f.cN();else throw Error("tg");d.callback({items:h,kja:l,pageToken:k})},
function(f){return void d.Hd(f)});return d}throw Error("sg");};_.g.Hqa=function(){var a=this.context.Vc,b=a.Uf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.u(b,13,a)};_.g.Gia=function(){this.context.Vs.RS();var a=this.context.Vc;Xzc(_.UJ(_.fI(a)),_.VJ(a),this.context.Be()).then(null,function(){})};_.g.Z9=function(){return _.dgc[_.pj(this.context.Vc.Uf(),8,0)]};_.g.Wda=function(){this.context.kG.H=new Myc(_.mh().substring(0,8))};
_.g.yT=function(){var a=this.context.kG.vN(),b=null;a&&(b=Oyc(this.context.kG),b={traceId:a,spanRecs:b});a=this.context.kG;a.H=null;a.mZ=[];return _.fi(b)};_.g.vN=function(){return _.fi(this.context.kG.vN())};
_.g.getState=function(a){var b=this.context.Oj,c=b.H.bind(b);b={};b.b=this.context.Vc.Mi();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.Df.$l.Ad();c=this.context.Df.Rt;var d=c.H;d&&(b.cs_sutd=d.N8,b.cs_ss=d.Ad());b.cs_ch=fxc(c).length;b.cs_td=c.GW().length;if(c=this.context.V6)b.t_cps=c.BYa().getStats().join(",");b.t_id=NCc(this.context);
var e=[];OCc(this.context.IR()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.Az?this.context.wk().isConnected():this.context.KI.NB();b.n_o=this.context.Az?this.context.wk().Me():this.context.Jj().Me();b.n_csm=!!this.context.Az;a&&(b.csw_cc=_.Va(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.fi(JSON.stringify(b))};_.g.cqa=function(){this.oc&&(this.oc.dispatchEvent(new LCc),this.oc.Su())};
_.g.Jl=function(a){var b=this.context.Az;b&&a!==b.V&&(b.V=a,b.reset(),a?b.state.update(3):_.bkc(b))};
var RCc=function(a,b){this.context=a;this.Dg=b;this.H=_.Ogc(_.aK(this.Dg),PCc);this.O=_.Ogc(_.aK(this.Dg),QCc)};
RCc.prototype.$k=function(a){var b=this,c=this.context.uQ.Ff().Ff(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.Sgc(h);var k=h.getId(),l=b.context.yu();_.Vhc(h,3);_.AI(h,5);var p=Enc(h,!0);h.getCapabilities()||_.QJ(h,new _.Dk);_.N(p,2)&&((p=h.uk())&&p.length?_.u(h,46,p[0]):(_.PJ(h,[l]),_.u(h,46,l)),_.u(h,12,h.Mq()),l=new _.xk,l.Nb(d),_.u(l,6,1),_.Ghc(l,!0),_.Rhc(h,l),_.Qhc(h,[l]),_.rVb(h,1));e[k]=h});a=Object.keys(e);c=this.context.Df;var f=lvc(c.$l,a);_.Ra(f,function(h,k){MK(h.getItem(),
e[k],b.H);(b.context.Jj().Me()||b.context.wk().Me()||3===h.getItem().Jv())&&MK(h.getItem(),e[k],b.O);_.$a(e,k)});_.Ra(e,function(h){_.Gk(h.Um())&&(f[h.getId()]=new xL(h))});SCc(c,Object.values(f))};
var TCc=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.$k(c)},UCc=function(a){a=a.context.Df;var b=new _.zf;b.Jl(!0);b=nvc(a.$l,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===f.Jv()){var h=new _.qI;_.rI(h,f.getId());_.BI(h);d.push(h)}else h=new _.joa,_.IK(h,!1),_.u(h,2,!1),_.F(f,81,h),c.push(b[e])}SCc(a,c);a.Eo(d)},PCc=[50],QCc=[12,11,10,67,68];
var VCc=function(a){this.context=a;this.H=null;this.V=!1;this.O=new RCc(a,a.Dg)};_.g=VCc.prototype;_.g.YY=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.Wbb.bind(this);var b=this.Vbb.bind(this);this.log("Querying all offline items.");this.H.ZV().hg(a,b);this.V||(this.H.n0((0,_.K)(this.qzb,this)),this.V=!0)}}else UCc(this.O)};_.g.Wbb=function(a){this.log("Processing all offline item(s): "+a.length);this.O.$k(a);NL(this.context.Oj,"GZTDpc")};_.g.Vbb=function(){this.log("Error fetching offline items.")};
_.g.qzb=function(a){this.log("Handling offline change(s): "+a.length);TCc(this.O,a)};_.g.log=function(a){this.context.Be().info("drive.ds.sync.offline.LocalDataService",a)};
var sM=function(a){_.yi.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Nc=new _.kf(this);this.ma=null;this.Ta=this.wa=!1;var b=new VCc(a);this.context.ha=b;this.Ga=new MCc(a,this);xoc(this.Ga);_.x(a.Vc,_.HI,58);this.Ja(this.Nc);this.O=this.context.Oj;this.W=a.xta;this.V=new FCc(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.UTa()};_.J(sM,_.yi);_.g=sM.prototype;_.g.UTa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.Yh();var b=this.context.mk().H(106E3);this.ma.promise.then(function(){b&&b.Aj()},function(){_.qK(a.context.mk(),181008852)});this.context.Be().info(this.Ba,"Initializing "+(_.WJ(this.context.Vc)?"(coldstart) ":"")+" with client build: "+this.context.Vc.Mi());this.Nc.listen(this.context,_.bd,this.Wwb);this.Nc.listen(this.context.KI,["ib","jb"],function(c){return void a.dispatchEvent(c)});this.Nc.listen(this.context.wk(),[].concat(_.bc(Object.values(_.XB))),
function(c){return void a.dispatchEvent(c)});this.$a();this.O.start();NL(this.O,"NSockf")}return this.ma.promise};_.g.dZa=function(){this.context.Be().info(this.Ba,"Ready to process requests.");this.wa||(this.wa=!0,this.ma.resolve())};_.g.Wwb=function(a){var b=a.error,c=b.ug;c&&3===c.getType()&&!this.wa?(this.wa=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.y5=function(){throw tM("teamDriveQuery");};_.g.xqa=function(){throw tM("teamDriveFindByIds");};
_.g.yqa=function(){throw tM("teamDriveMovePreflight");};_.g.lHa=function(){throw tM("peoplePredictQuery");};_.g.query=function(a){Dvc(this.context.Am,a,Qrc(this.context.Dg));this.FF();var b=a.clone();b=this.V.dya(b);this.Ta||(a=a.se(),a&&121===_.y(a,1)||(this.Ta=!0,this.Nc.listen(b,_.cd,this.aOa)));return b};_.g.aOa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Ga.H=b;this.Nc.Tc(a,_.cd,this.aOa)}};_.g.gt=function(a){this.FF();Hsc(a);return this.V.aya(a.clone())};
_.g.bwa=function(){throw tM("activityQuery");};_.g.Qwa=function(){throw tM("backupsQuery");};_.g.aIa=function(){throw tM("refreshBackups");};_.g.$V=function(){throw tM("getAndroidBackupItems");};_.g.c9=function(){throw tM("deleteBackup");};_.g.oHa=function(){throw tM("permissionQuery");};_.g.Oaa=function(){throw tM("insertPermission");};_.g.d9=function(){throw tM("deletePermission");};_.g.ad=function(){throw tM("mutate");};_.g.gO=function(){throw tM("mutateWorkspace");};
_.g.RC=function(){throw tM("bulkMutate");};_.g.$xa=function(){throw tM("createFileUploader");};_.g.mUa=function(a){return new rM(this.context.Km(),a)};_.g.ks=function(a){if(3===a.getType())return _.gi(this.context.Km().then(function(b){return b.Pe(a)}).then(null,JK));throw tM("getApps with type "+a.getType());};_.g.yr=function(){throw tM("getApp");};_.g.Qaa=function(){throw tM("installApp");};_.g.b9=function(){throw tM("deleteApp");};_.g.KT=function(){throw tM("updateApp");};
_.g.BN=function(){throw tM("getUserAccount");};_.g.fH=function(){throw tM("getUserPrefs");};_.g.IS=function(){throw tM("mutateUserPref");};_.g.xu=function(){throw tM("getRevisions");};_.g.UCa=function(){return!1};_.g.Jl=function(a){this.context.Az?a?_.ckc(this.context.Az,!0):this.context.wk().Me()&&this.context.Az.yM(!0).then(null,function(){}):this.context.Jj().Jl(a)};_.g.lz=function(){throw tM("setOfflineOptIn");};_.g.YY=function(){throw tM("setLocalItemService");};_.g.FF=function(){};
_.g.LS=function(){this.context.LS();this.context.mk().O(106006)};_.g.r$=function(){return this.Ga};_.g.VY=function(){};_.g.NB=function(){return this.context.KI.NB()};_.g.JQ=function(){return _.P(this.context.Vc.Uf(),52,!1)?_.Vh(bwc(new awc,0)):this.context.KI.JQ()};_.g.isConnected=function(){return 1===this.context.wk().get()};_.g.w8=function(){var a=this.context.Az;return a?a.yM():_.Vh(_.Sjc(0))};_.g.sync=function(){throw tM("sync");};_.g.Su=function(){return this.context.Su()};
_.g.cca=function(){throw tM("offlineDataLoaded");};_.g.Foa=function(a){return this.context.Km().then(function(b){return b.Pe(a)}).then(function(b){return b})};_.g.qxa=function(){throw tM("categoryMetadataQuery");};_.g.v8=function(){throw tM("changeCategoryLinks");};_.g.sP=function(){throw tM("updateCategoryMetadata");};_.g.MHa=function(){throw tM("publishedCategoriesQuery");};_.g.NHa=function(){throw tM("publishedCategoryQuery");};_.g.wMa=function(){throw tM("workspaceFindByIdsRequest");};
_.g.tra=function(){throw tM("workspaceQueryRequest");};_.g.VKa=function(){throw tM("suggestedWorkspaceItemQueryRequest");};_.g.WKa=function(){throw tM("suggestedWorkspaceQueryRequest");};_.g.l0=function(){throw tM("addCacheHint");};_.g.N0=function(){throw tM("createUserFeedback");};_.g.Eo=function(){throw tM("handleChanges");};var tM=function(a){return new _.Rc(a+" is unsupported",_.MI(3))};
var fpc=function(a){sM.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.oz("")};_.J(fpc,sM);fpc.prototype.$a=function(){ML(this.O,["NSockf"],this.dZa.bind(this))};
var WCc=new Set([1,2,4,5,6]),XCc=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.Oe=0};XCc.prototype.Ff=function(){var a=new _.eM;a.Cc(this.status);this.H&&_.oAc(a,YCc(this));return a};
var ZCc=function(a,b,c,d){d=void 0===d?!1:d;var e=WCc.has(c);if(1===a.status&&!e)return!1;a.Oe=c;var f=a.status;c=!a.H;if(_.mI(a.O)){var h=(h=b&&b.getUser())&&KK(h);h=!(!h||!vxc(a.ka.H,h));a.status=h&&e||d?1:6}f=!_.Cj(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&&(NL(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};XCc.prototype.Xe=function(){return this.Oe};
var YCc=function(a){return a.H?a.H.clone():null};
var $Cc=function(a){_.yi.call(this);this.W=a;this.Oe=0};_.J($Cc,_.yi);var aDc=function(a){a=a.clone();var b=function(c){return c.toLowerCase()};Cuc(a,_.me(a,4).map(b));Duc(a,_.me(a,5).map(b));return a};_.g=$Cc.prototype;_.g.ks=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.DQ=function(){};_.g.mH=function(){return 0!==this.Oe};_.g.Xe=function(){return this.Oe};
var bDc=new Set([1,2,4,5,6]),cDc=function(a,b,c){$Cc.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.mp=!1};_.J(cDc,$Cc);cDc.prototype.ks=function(){var a=new HL;if(!_.Za(this.apps)){_.rj(a,4,this.H);var b=[];_.Ra(this.apps,function(c){b.push(c.clone())});_.tj(a,2,b)}a.Cc(this.status);return a};cDc.prototype.put=function(a){this.apps[a.getId()]=aDc(a);this.O.update(1);this.dispatchEvent(new _.pi("Kb",this))};cDc.prototype.remove=function(a){_.$a(this.apps,a)&&this.O.update(1)};
cDc.prototype.DQ=function(a,b,c){c=void 0===c?!1:c;var d=!bDc.has(b);1===this.status&&d||(this.Oe=b,dDc(this,a,!d||c),d||this.O.update(1),this.mp||(this.mp=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),NL(this.W,"nVUlO")))};
var dDc=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.me(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=_.cb(a.apps);_.Ggc(a.apps);b=_.zb(b,_.sL,2);d||(d=b.length!==_.Va(h));b.forEach(function(k){var l=aDc(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Cj(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.pi("Kb",a))};
var uM=function(a){_.L.call(this);this.context=a;this.Yy=new Set;this.Fp=6;this.NDa=!0;this.Oe=0;this.Nc=new _.kf(this);this.Ja(this.Nc)};_.J(uM,_.L);_.g=uM.prototype;_.g.Zh=function(a){this.fTa(a);this.Yy.add(a);this.resize(!0);this.GO(a)};_.g.fTa=function(){};_.g.ek=function(a){this.Yy.delete(a);0!=this.Yy.size||this.t0a()?this.resize(!1):this.dispose()};_.g.Xe=function(){return this.Oe};_.g.mi=function(a){this.Oe=a};_.g.kT=function(a){this.NDa=!1;this.Fp=a};_.g.fW=function(){return this.Fp};
_.g.refresh=function(){};_.g.dk=function(){};
var fDc=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)}}eDc(a.context.Df,d,b);d.forEach(function(k){Lyc(a.context.hOa,k,b);if(k.uc()){var l=k.getCapabilities();yL(k)?l&&(_.u(l,12,_.N(l,13)),_.u(l,9,!1),_.u(l,21,!1)):OK(k)?(l&&_.u(l,3,!1),_.u(k,30,!1)):l&&(_.u(l,42,!1),_.u(l,43,!1))}k.getCapabilities()||
_.QJ(k,new _.Dk)})};uM.prototype.resize=function(){};uM.prototype.hd=function(){};uM.prototype.$k=function(a,b){var c=this,d=!1;a.forEach(function(e){e=OL(e);d=c.Wu(e,!0)||d});b||(1!=this.fW()&&(d=!0),this.kT(1));d&&this.wY()};var gDc=function(a,b){var c=!1;b.forEach(function(d){c=a.Wu(d)||c});c&&a.wY();return c};_.g=uM.prototype;_.g.update=function(a){return gDc(this,[a])};_.g.Wu=function(){};_.g.wY=function(){var a=this;this.eTa();this.Yy.forEach(function(b){a.GO(b)})};_.g.eTa=function(){};
_.g.GO=function(a){var b=hDc(this.context).qla(a);this.G_a(b)||(b=this.dk(b),hDc(this.context).GO(a,b))};_.g.vY=function(a){var b=this;this.kT(3);this.Yy.forEach(function(c){hDc(b.context).vY(c,a)})};_.g.GA=function(){var a=this;this.Yy.forEach(function(b){hDc(a.context).GA(b)});this.mi(0==this.Xe()?1:6)};_.g.t0a=function(){return!1};_.g.G_a=function(){return!1};
var iDc=function(a){_.pi.call(this,"Ab");this.id=a};_.J(iDc,_.pi);
var jDc=function(a,b,c,d){d=void 0===d?!1:d;_.yi.call(this);this.request=a;this.context=b;this.nMa=d;this.he=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.J(jDc,_.yi);
jDc.prototype.kh=function(){var a=this;if(this.he)return this.he.promise;this.he=_.Yh();for(var b={},c=_.m(this.request.nm().entries()),d=c.next();!d.done;b={asa:b.asa,bfa:b.bfa,Lra:b.Lra},d=c.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;b.Lra=e;b.asa=csc(bsc(d),this.request);b.bfa=void 0;this.nMa&&(b.bfa={nMa:!0});this.context.Km().then(function(f){return function(h){return h.Pe(f.asa,f.bfa)}}(b)).then(function(f){return void kDc(a,f)},function(f){return function(h){var k=f.Lra;h=
_.Vc(h);5===h.ug.Dv()||4===h.ug.Wj()?(a.context.Be().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+k+" due to: "+h.message),a.V.push(k),lDc(a)):a.handleError(h)}}(b))}return this.he.promise};var kDc=function(a,b){b.Yc().zd().forEach(function(c){_.AI(c,1);a.W.push(c)});lDc(a)},lDc=function(a){a.H||(a.H=_.aa.setTimeout(a.ha.bind(a),10))};
jDc.prototype.ha=function(){_.aa.clearTimeout(this.H);this.H=null;mDc(this);nDc(this);this.O.size===this.request.nm().length?(this.context.Df.$k([],1,this.originalRequest,!1),this.dispatchEvent("Cb"),this.he.resolve(this.items)):this.dispatchEvent("zb")};
var mDc=function(a){var b=a.W;a.W=[];b=a.context.hga.J9(b);if(_.KI(_.fI(a.context.Vc))){var c=a.context.Df.$l;_.Ma(b,function(d){var e=c.H(d.getId());e&&_.PJ(d,e.uk())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.Df.$k(b,1,a.originalRequest,!0)},nDc=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.BI(_.rI(new _.qI,c));a.context.Df.Eo([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new iDc(c))})};
jDc.prototype.handleError=function(a){var b=new WL(a.ug,_.Dj(this.context.Vc.Uf(),1,1));this.context.Df.IB(this.request,b);this.dispatchEvent(b);this.he.reject(a)};
var oDc=function(a,b,c,d){uM.call(this,a);this.Dg=b;this.request=c;this.Dd={};this.H=null;this.O=_.IJ(a.Vc)||new _.dic;d&&this.$k(d,!0)};_.J(oDc,uM);
oDc.prototype.refresh=function(){var a=this;if(this.H)return this.H.promise;this.Fp=6;if(_.P(this.request,5,!1))return this.kT(1),_.Vh();var b=this.NDa?!mnc(_.aK(this.Dg),this.request.H()):!1,c=[],d=this.context.yu();this.request.nm().forEach(function(h){if("root"!==h&&h!==d){var k=a.Dd[h],l=k&&k.getItem();if(k=!k||l&&1!==l.Jv()||b)l=l&&l.Um(),k=!(l&&_.N(l,2));k&&c.push(h)}});if(0===c.length)return this.$k([],!1),_.Vh();this.H=_.Yh();this.H.promise.then(function(){a.H=null},function(){a.H=null});
var e=this.request.clone();_.ZF(e,c);var f=new jDc(e,this.context,this.request);this.context.Jj().Me()?(this.Nc.listen(this.context.Jj(),"ub",function(h){h.Me()||(a.Nc.Tc(a.context.Jj(),"ub"),pDc(a,f,a.H))}),this.Fp=0<Object.values(this.Dd).length?1:2):(this.context.wk().Me()&&(this.Fp=0<Object.values(this.Dd).length?1:2),pDc(this,f,this.H));return this.H.promise};var pDc=function(a,b,c){a.Nc.listen(b,"Ab",function(d){a.Dd[d.id]=null});a.GA();b.kh().then(function(){c.resolve()},c.reject)};_.g=oDc.prototype;
_.g.Cia=function(a){var b=this;if(this.context.Am.equals(a,this.request,!0)){if(mnc(_.aK(this.Dg),a.H()))return!0;if(mnc(this.request.H(),a.H(),_.aK(this.Dg))){if(this.NDa)return!0;if(_.P(this.O,5,!1))return this.request.nm().every(function(c){return(c=b.Dd[c])&&_.N(c.getItem(),31)})}}return!1};
_.g.dk=function(a){var b=new _.iK;_.mI(this.context.Vc)?b.Cc(znc(Object.values(this.Dd))?6:this.Fp):b.Cc(this.Fp);b.mi(this.Xe());wsc(b,_.Ta(this.Dd,function(c){return c?c.getItem():null}));fDc(this,a.H(),b.kt());return b};_.g.resize=function(){};_.g.hd=function(){return this.request};_.g.Ad=function(){return Object.values(this.Dd).length};_.g.Wu=function(a){var b=this.Bs(a.O),c=this.Bs(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.Bs=function(a){return!!a&&_.oa(this.request.nm(),a.getId())};
var qDc=function(a,b){_.pi.call(this,a);this.changes=b};_.J(qDc,_.pi);
var rDc=function(a){var b=new Txc;if(a.Wf()){var c=a.Wf();b.H=!1;b.suggestionSessionId=c}a instanceof _.jK&&_.zb(a,_.xk,6).length?(a=_.zb(a,_.xk,6),b.H=!1,b.V=a):a instanceof _.eI&&(a.R6()||a.rta()||a.$ka().length)&&(c=a.R6(),b.H=!1,b.W=c,c=a.rta()||!1,b.H=!1,b.incompleteSearch=c,a=a.$ka(),b.H=!1,b.O=a);return b};
var vM=function(a,b,c,d,e,f,h,k,l){l=void 0===l?"":l;_.yi.call(this);this.Ta=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.Ga=new Set;this.ma=h||!1;this.La=k||!1;this.Ia=this.IHa(f);this.ha=new Txc};_.J(vM,_.yi);var sDc=function(a){return!a.wa||""!==a.nextPageToken},uDc=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&sDc(a)?tDc(a):_.fi()};vM.prototype.$b=function(){return this.V.length};vM.prototype.H=function(){return this.V.slice()};
var tDc=function(a){var b=a.W-a.V.length+a.ka;a.log("Get more items called with limit of "+b);var c=a.nextPageToken,d=new _.$h;d.addCallback(function(h){vDc(a,c,h)});var e=_.Smc(_.Tmc(new _.nI,a.Ia),c),f=_.Qmc(new _.tfc,b);a.La&&_.u(f,10,!0);_.Rmc(e,f);a.wa=!0;a.O=!0;a.Ba.then(function(h){return h.Pe(e)}).then(function(h){wDc(a,d,h)},function(h){a.handleError(d,f,h)});return d},wDc=function(a,b,c){a.O=!1;if(c instanceof _.jK)var d=c;else d=c.Yc(),a.nextPageToken=c.$n()||"";a.ha=rDc(d);a.ha.lc()||
a.dispatchEvent("Bb");b.callback(d.zd())};vM.prototype.handleError=function(a,b,c){var d=this;c=_.Vc(c);this.O=!1;if(5===c.ug.Dv())a.callback([]);else{if(10===c.ug.Dv()&&(_.Qmc(b,Math.ceil(_.Dj(b,1,1E3)/2-2E-15)),1<_.Dj(b,1,1E3))){var e=_.Rmc(_.Smc(_.Tmc(new _.nI,this.Ia),this.nextPageToken),b);this.O=!0;this.Ba.then(function(h){return h.Pe(e)}).then(function(h){wDc(d,a,h)},function(h){d.handleError(a,b,h)});return}var f=new WL(c.ug,_.Dj(this.Pa.Uf(),1,1));this.bOa(f);this.dispatchEvent(f);a.Hd(c)}};
var vDc=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: ")+(_.kjc(a.request)+" paginationToken: ")+b;b=_.Up(_.Sp(_.uI(_.tI(new _.Pc,2),9),f));a.$a(new _.Sc(new _.Rc(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ga.has(h.getId());a.Ga.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.S3a(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 qDc("zb",c));a.V.length<a.W&&a.nextPageToken?tDc(a):a.dispatchEvent("Cb")};_.g=vM.prototype;_.g.S3a=function(a){return a};_.g.bOa=function(){};_.g.hd=function(){return this.request};_.g.IHa=function(a){a=a.clone();this.ma&&_.u(a,46,!0);return a};_.g.log=function(a){this.Ta.info("drive.ds.sync.query.QueryRunner",a)};
var xDc=function(a,b,c,d){vM.call(this,a.Be(),a.Km(),a.Vc,a.Df.$l,a.dispatchEvent,b,void 0,c,d);this.context=a};_.J(xDc,vM);xDc.prototype.S3a=function(a){a=this.context.hga.J9(a);this.context.Df.$k(a,1,this.request,sDc(this));return a};xDc.prototype.bOa=function(a){this.context.Df.IB(this.request,a)};xDc.prototype.IHa=function(a){var b=a=vM.prototype.IHa.call(this,a),c=_.pl(b);0===_.me(b,33).length&&1===c.length&&(c=this.ta.H(c[0].Xa()))&&(c=c.uc())&&(_.rl(b,[c]),_.sl(b,2));yDc(this,a);return a};
var yDc=function(a,b){if(_.pl(b).some(function(d){return(d=a.ta.H(d.Xa()))&&_.N(d,108)})){var c=b.se();c||(c=new _.Lf,_.ql(b,c));_.Mf(c,937)}};
var zDc=function(a,b,c,d){this.context=a;this.Dg=b;this.W=d;this.Hoa=0;this.O=c},DDc=function(a,b){if(b){a.log("Processing potential rejoin for TD: "+b);var c=_.sl(_.nl(_.rl(new _.zf,[b]),_.aK(a.Dg)),1),d=_.Mf(new _.Lf,306);_.ql(c,d);ADc(a);c=new xDc(a.context,c);uDc(c,5E3).addCallback(a.H.bind(a,c));BDc(a);CDc(a,b)}},BDc=function(a){var b=_.Wa(a.O);b=b.filter(function(d){return d instanceof oDc});var c=new Set;b.forEach(function(d){d.hd().nm().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.Mf(new _.Lf,
310);a.log("Re-querying missing find-by-ids :"+c.size);a.HO([].concat(_.bc(c)),b)},CDc=function(a,b){var c=[];(a.context.Df.SHa.PQ[b||"subscribed"]||[]).forEach(function(d){_.Ra(a.O,function(e){_.Cj(e.hd(),d)&&c.push(e)})});_.Ga(c);0<c.length&&(ADc(a),c.forEach(function(d){d=fL(a.context.Am,d.hd(),3);a.log("Refreshing "+b+" cache: "+d)}),_.Zh(_.Xh(c.map(function(d){return d.refresh().Ii(_.eg)})),a.V.bind(a)))};
zDc.prototype.HO=function(a,b,c,d,e){var f=this;c=void 0===c?!1:c;a=a.filter(function(k){return!_.Oe(k)});if(0===a.length)return _.Vh({});a=_.u(_.YF(_.ZF(new _.XF,a),d||_.aK(this.Dg)),7,!0);_.$F(a,b);e&&e.length&&_.tj(a,11,e);ADc(this);var h=new jDc(a,this.context,void 0,c);b=h.kh();b.then(function(){f.H(h)},function(){f.H(h)});return b};zDc.prototype.H=function(a){a.dispose();this.V()};var ADc=function(a){a.Hoa++;a.context.Vs.setActive(!1)};zDc.prototype.V=function(){this.Hoa--;0===this.Hoa&&this.context.Vs.setActive(!0)};
zDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CacheRefresher",a)};
var EDc=function(a,b,c){_.L.call(this);this.context=a;this.H=b;this.request=c;this.O=this.he=null;a=new _.Lf;_.Nf(a,!1);_.Mf(a,305);_.ql(this.request,a);this.Nc=new _.kf(this);this.Ja(this.Nc)};_.J(EDc,_.L);
EDc.prototype.kh=function(){if(!this.he){this.he=_.Yh();if(_.P(this.request,48,!1))return this.H.mi(9),this.he.resolve(this.H),this.he.promise;this.O=new vM(this.context.Be(),this.context.Km(),this.context.Vc,this.context.Df.$l,this.context.dispatchEvent,this.request,!0);this.Nc.listen(this.O,"zb",this.W);this.Nc.listen(this.O,"Cb",this.V.bind(this));this.Nc.listen(this.O,"Db",this.he.reject.bind(this.he));uDc(this.O,this.request.wi())}return this.he.promise};
EDc.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(OL(new xL(b)))};EDc.prototype.V=function(){this.H instanceof QL?this.H.H=!sDc(this.O):sDc(this.O)&&PL(this.H,!1);this.H.mi(5);this.he.resolve(this.H)};
var GDc=function(a,b){_.pi.call(this,FDc);this.cache=a;this.changes=b};_.J(GDc,_.pi);var FDc="Lb";
var HDc=function(a,b){return new _.Sh(function(c,d){b.then(function(e){for(var f=new Map,h=_.m(a.Fy()),k=h.next();!k.done;k=h.next()){k=k.value;var l=k.getId();Fnc(k.getItem());f.set(l,Yuc(new xL(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,k.Vk()?l&&a.update(new Swc(l.getId(),l,null)):(k=k.getItem(),Fnc(k),a.update(Twc(l,Yuc(new xL(k),null===l||void 0===l?void 0:l.H))));a.NX();c(e.NNb)},d)})};
var IDc=function(a,b){_.L.call(this);this.context=a;this.Dg=b};_.J(IDc,_.L);
IDc.prototype.kh=function(a){this.log("Running initial view populator (IVDP).");try{var b=new uL(JSON.parse(a))}catch(l){this.handleError("Error parsing initial view dump.",_.NI(l));return}a=_.fI(this.context.Vc);if(!_.KI(a)){var c=b.Ff();if(c){var d=c.getUser();d&&d.getId()===_.z(a,6,"")&&ZCc(this.context.uQ,c,4)}(a=b.yu())&&this.context.oz(a,6)}var e=_.y(b,3)||void 0;e&&JDc(this.context,e,!0);if((a=_.zb(b,_.Ro,9))&&a.length){c=(c=this.context.Vc.Uf())&&_.me(c,30)||[];var f=new Set(c);a.forEach(function(l){(l=
(l=l.getKey())&&_.So(l))&&f.add(l)});this.context.CE.DQ(a,4,[].concat(_.bc(f.values())))}a=b.zd();a.forEach(function(l){_.Sgc(l);_.AI(l,6)});if(c=_.zb(b,tL,5)[0])if(b=this.context.Am,tnc(_.aK(this.Dg),c.getQuery().H(),_.VJ(this.context.Vc)))if((d=c.getQuery().Kc())&&4===d.getType()&&!_.Jcc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=AL(b,c.getQuery());d.Gi(_.y(c,2)||void 0);b=a.map(function(l){return new xL(l,void 0,1,e)});var h=_.x(c,_.Kk,3);if(h&&
_.y(c,2)){var k=b[b.length-1];_.AI(h,6);if(!_.Cj(h,k.getItem())){this.handleError("Invalid last item in initial view data.");return}}h=_.IJ(this.context.Vc);k=new QL(this.context.Bt,this.context.Rv,this.context.Am,d,k,h&&_.P(h,2,!1)&&c.$n()||"");k.mi(4);d=c=0;b=_.m(b);for(h=b.next();!h.done;h=b.next())k.update(OL(h.value))?c++:d++;KDc(this.context.Df,k);b=k.hd();this.log("Imported "+c+" initial view items (IVDP) successfully ("+d+" failed) into the cache hint corpus cache. Query: "+k.ZM());k=new _.nI;
_.Tmc(k,b);k=_.ukc(this.context.hB,k,"IVDP");_.vkc(k,a);NL(this.context.Oj,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+Bvc(b,c.getQuery().H()));else this.handleError("No initial query found")};IDc.prototype.handleError=function(a,b){var c=b?void 0:_.Up(_.uI(_.tI(new _.Pc,2),6));b=new _.Rc(a,c,b);this.context.yJ(b.ug);this.log("Initial view dump population failed. Message: "+a);NL(this.context.Oj,"DEJoH")};
IDc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var LDc=function(a){_.yi.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new SL(a.Bt,a.Rv,a.Oj,function(){return a.yu()});this.H=this.context.Vc;this.ta=new Wwc(a.Bt,a.Rv)};_.J(LDc,_.yi);
var MDc=function(a,b){var c=_.Dj(a.H,31,2E4);b="number"===typeof _.y(b,3)?_.y(b,3):c+1;b>c?(PL(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.hB.Hb("CachedCorpusType",c)};LDc.prototype.log=function(a,b){this.context.Be().log(this.W,a,b||"info")};var NDc=function(a,b){0===a.V&&(a.V=b)};
var ODc=function(a,b){var c;if(c=!!b&&!!b.Uh())a=_.N(a,4),c=null==a||!!_.N(b.Uh(),7)==a;return c};
var PDc=function(a,b){_.yi.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.J(PDc,_.yi);PDc.prototype.kh=function(){return this.H||this.O&&""===this.nextPageToken?_.fi():QDc(this)};PDc.prototype.$b=function(){return this.V.length};
var QDc=function(a){a.O=!0;a.H=!0;var b=nrc(orc(new _.EJ,a.request),a.nextPageToken),c=_.ukc(a.context.hB,b);return _.gi(a.context.Km().then(function(d){return d.Pe(b)}).then(function(d){var e=d.Yc().zd();a.nextPageToken=d.$n()||"";RDc(a,c,e)},function(d){return void a.handleError(d)}))},RDc=function(a,b,c){_.vkc(b,c);for(b=0;b<c.length;b++)_.AI(c[b],1);a.context.Df.$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 qDc("zb",d));a.nextPageToken?QDc(a):(a.H=!1,a.dispatchEvent("Cb"))};PDc.prototype.handleError=function(a){this.H=!1;a=new WL(_.vI(a),_.Dj(this.context.Vc.Uf(),1,1));this.dispatchEvent(a)};PDc.prototype.hd=function(){return this.request};
var SDc=function(a){this.H=_.Kcc(a,{numeric:!0})};SDc.prototype.sort=function(a){_.Ja(a,this.compare.bind(this))};SDc.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 TDc=function(a,b,c,d){d=void 0===d?!1:d;uM.call(this,a);this.Dg=b;this.Dd=[];this.he=null;this.request=c.clone();this.$v=new PDc(a,this.request);this.ESb=new SDc(XK(_.fI(a.Vc)));this.ZDa=null!=_.N(this.request,6);_.af(this,this.Gob,this);d&&(this.he=_.Yh(),this.he.resolve())};_.J(TDc,uM);_.g=TDc.prototype;_.g.refresh=function(){3===this.Fp&&(this.Fp=6,this.he=null);return this.bda()};_.g.isInitialized=function(){return!!this.he};
_.g.bda=function(){var a=this;if(this.isInitialized())return this.he.promise;this.he=_.Yh();this.context.Jj().Me()?this.Nc.listen(this.context.Jj(),"ub",function(b){b.Me()||(a.Nc.Tc(a.context.Jj(),"ub"),a.GA(),a.$v.kh().hg(a.he.resolve,a.he.reject,a.he))}):this.context.wk().Me()?this.Nc.$c(this.context.wk(),[_.XB.NL,_.XB.SU],function(){a.GA();a.$v.kh().hg(a.he.resolve,a.he.reject,a.he)}):(this.GA(),this.$v.kh().hg(this.he.resolve,this.he.reject,this.he));return this.he.promise};_.g.resize=function(){};
_.g.hd=function(){return this.request};_.g.Fy=function(){return this.Dd};_.g.Cia=function(a){return this.context.Am.equals(a,this.request)};_.g.dk=function(a){a=a.wi();this.ESb.sort(this.Dd);var b=joc(_.Da(this.Dd,0,Math.min(a,this.Dd.length)));fDc(this,Rrc(this.Dg),b);var c=new _.eI;c.fB(b);c.Cc(this.Hxa(a));c.mi(this.Xe());irc(c,a<this.Dd.length||!(this.context.Jj().Me()||this.context.wk().Me())&&1!==this.Fp);return c};
_.g.Hxa=function(a){return 1===this.Fp||a<=this.Dd.length?1:this.context.Jj().Me()||this.context.wk().Me()?0<this.Dd.length?1:2:6};_.g.$k=function(a,b){this.isInitialized()&&uM.prototype.$k.call(this,a,b)};_.g.Wu=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.ma(this.Dd,function(h){return h.getId()===c}),e=!!d;b=this.Bs(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.VLa(f,a.H):this.uJ(f):this.cS(a.H);else return!1;return!0};_.g.cS=function(a){this.Dd.push(a);a.count++};
_.g.uJ=function(a){_.xa(this.Dd,a);a.count--};_.g.Pza=function(a){return _.na(this.Dd,a)};_.g.VLa=function(a,b){this.Dd[this.Pza(a)]=b;b.count++;a.count--};_.g.Bs=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.ZDa&&null!=_.N(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Dd.find(function(d){return c===d.getId()},this);a=yL(a.getItem())&&ODc(this.request,a.getItem());return b&&a}return yL(a.getItem())&&ODc(this.request,a.getItem())};_.g.Gob=function(){this.Dd.forEach(function(a){a.count--})};
_.g.t0a=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Ad=function(){return this.Dd.length};_.g.NX=function(){this.Fp=1};
var UDc=function(a){this.H=a},VDc=function(a,b,c,d,e){if(0===e||null===b){var f=new LAc;_.u(f,2,b);_.u(f,1,d);return _.Vh(f)}var h=cwc();_.u(h,2,b);c&&_.u(h,3,c);return a.H.then(function(k){return k.Pe(h)}).then(function(k){var l,p=null!==(l=k.Ky())&&void 0!==l?l:null;return VDc(a,p,c,d+_.y(k,1),e-1)})};
var WDc=function(a,b){LDc.call(this,a);this.Dg=b;this.ha=void 0;this.ka=null;this.ma=!1;this.XD=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator"};_.J(WDc,LDc);WDc.prototype.handleError=function(){this.log("Local dump population failed.");NL(this.context.Oj,"mrK8ic")};
WDc.prototype.kh=function(){var a=this;if(this.ka)return this.ka;if(this.context.WQ){var b=new _.$h;this.ka=b;this.initialize().then(function(){var c=_.zb(_.ZK(a.H),WK,11);c=c[0]&&c[0].getKey()||"";return XDc(a,a.context.WQ,c,4)}).then(null,function(c){if(_.P(a.H,8,!0))return YDc(a,c);throw c;}).then(function(){_.mI(a.H)||a.context.Df.Jq.H.clear();NL(a.context.Oj,"zaOY7");b.callback()},function(c){NDc(a,8);a.handleError();b.Hd(c)});return b}this.handleError();return _.hi(Error("ug"))};
WDc.prototype.initialize=function(){var a=this;return _.Vh(this.context.WQ.initialize()).then(function(){if(!_.WJ(a.H)){var b=_.Dj(_.ZK(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.Sh(function(c,d){gAc(a.context.OD).then(function(e){e?c():d(Error("vg"))})})}})};
var XDc=function(a,b,c,d){return _.jg(a,function f(){var h=this,k;return _.$f(f,function(l){return 1==l.H?(k=h.ha,ZDc(h,b,c,k),$Dc(h,b,c,k),aEc(h,b,c,k),_.Tf(l,bEc(h,b,c,k),2)):_.Tf(l,Promise.all([cEc(h,b,c,d,k),dEc(h,b,c,d,k),eEc(h,b,c,d,k),fEc(h,b,c,d,k)]),0)})})},ZDc=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};aM(b,c,0,void 0,d,a.XD).then(function(f){f[0]?ZCc(a.context.uQ,f[0],a.Xe(),_.WJ(a.H)):e()},function(){return e()})},$Dc=function(a,b,c,d){var e=
function(){return a.log("Failed to load apps from storage.")};aM(b,c,1,void 0,d,a.XD).then(function(f){f[0]?a.context.D_.DQ(f[0],a.Xe(),_.WJ(a.H)):e()},function(){return e()})},aEc=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};aM(b,c,5,void 0,d,a.XD).then(function(f){if(f[0]){f=f[0];var h=_.zb(f,_.Ro,1);h.length&&a.context.CE.DQ(h,a.Xe(),_.me(f,2),_.WJ(a.H))}else e()},function(){return e()})},cEc=function(a,b,c,d,e){var f=new _.kn;aM(b,c,3,1,e,a.XD).then(function(h){return gEc(a,
h[0])}).then(function(h){if(h){b!==a.context.WQ||tnc(_.me(h,12),_.aK(a.Dg),_.VJ(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Vs.RS());var k=_.y(h,3);if(!k||0>k)throw Error("yg");a.context.oz(h.yu(),d);k=_.y(h,3);"number"===typeof k&&JDc(a.context,Number(k));_.WJ(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.lFa());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},
dEc=function(a,b,c,d,e){return hEc(a,2,b,c,d,e).then(function(){var f,h;return null===(f=_.IJ(a.H))||void 0===f||!_.P(f,17,!1)||null!==(h=a.O)&&void 0!==h&&h.JD?Promise.resolve():hEc(a,5,b,c,d,e)},function(){var f;return(null===(f=_.IJ(a.H))||void 0===f?0:_.P(f,17,!1))?hEc(a,5,b,c,d,e):Promise.reject(Error("wg"))})},hEc=function(a,b,c,d,e,f){var h=new _.kn;aM(c,d,3,b,f,a.XD).then(function(k){k[0]?(a.$k(k[0],e),h.resolve()):h.reject(Error("xg"))},function(k){return h.reject(k)});return h.promise},
eEc=function(a,b,c,d,e){var f=new _.kn;aM(b,c,3,4,e,a.XD).then(function(h){h.forEach(function(k){a.$k(k,d)});f.resolve()},function(h){return f.reject(h)});return f.promise},fEc=function(a,b,c,d,e){var f=new _.kn;aM(b,c,3,3,e,a.XD).then(function(h){h.length?h.forEach(function(k){a.$k(k,d)}):NL(a.context.Oj,"rVezo");f.resolve()},function(h){return f.reject(h)});return f.promise},bEc=function(a,b,c,d){var e=new _.kn;aM(b,c,6,void 0,d,a.XD).then(function(f){f=_.m(f);for(var h=f.next();!h.done;h=f.next())h=
h.value,_.zb(h,KL,1).length&&(a.log("Importing "+_.zb(h,KL,1).length+" people into the PeopleCache."),h=_.zb(h,KL,1),qxc(a.context.Df.Jq.H,h,2));e.resolve()},function(f){return e.reject(f)});return e.promise},gEc=function(a,b){var c=_.y(b,3);if(c&&!_.WJ(a.H)){var d=new UDc(a.context.Km()),e=_.Dj(_.ZK(a.H),13,5);return VDc(d,c,null,0,e).then(function(f){return _.mj(f,2)?(a.log("Encrypted dump too stale."),a.context.mk().O(106007),NDc(a,9),null):b},function(){return b})}return _.Vh(b)},YDc=function(a,
b){var c=bM(a.context.TL.lj()),d=_.zb(_.ZK(a.H),WK,11).filter(function(e){return e.vt()});return Zzc(_.UJ(_.fI(a.H)),_.VJ(a.H),_.Dj(_.ZK(a.H),10,0)||0,_.aK(a.Dg),a.ha||0,d.map(function(e){return _.y(e,1)}),c).then(function(e){if(e){var f=d.find(function(l){return e.V===_.y(l,1)}),h=new cM(_.Vh(e),a.context.Be(),null,!0),k=new Xyc(h,a.H,function(l){a.context.yJ(l)});k.initialize();a.ma=!0;return XDc(a,k,f?f.getKey():null,8).then(function(){return h.getMetadata([dAc])}).then(function(l){l[0]?(l=l[0].Xa(),
l=a.context.OD.set(dAc,l)):l=Promise.resolve();return l}).then(function(){h.close()})}return _.Wh(new _.Rc("No compatible dumps to forklift were found.",null,b))})},mEc=function(a,b,c){var d;switch(b.Uo()){case 1:return iEc(a,b,c);case 2:return jEc(a,b,a.O);case 5:return(null===(d=_.IJ(a.H))||void 0===d?0:_.P(d,17,!1))?jEc(a,b,a.ta):null;case 3:return kEc(a,b);case 4:return lEc(a,b);default:return null}},iEc=function(a,b,c){var d=[];_.zb(b,tL,5).forEach(function(e){var f=void 0,h=_.x(e,_.Kk,3);h&&
(_.Sgc(h),_.N(a.H,67)&&hnc(h,wnc),_.AI(h,c),f=new xL(h));var k=e.getQuery();if(!_.P(k,48,!1)||_.zb(a.H,_.zf,44).some(function(l){if(!_.P(l,48,!1))return!1;l=AL(a.context.Am,l,!0);return _.Cj(l,k)}))e=new QL(a.context.Bt,a.context.Rv,a.context.Am,k,f),e.mi(a.Xe()),d.push({cache:e,changes:ZL(a.context.zx,null)})});return d},jEc=function(a,b,c){b=_.x(b,Boc,11);if(!b)throw Error("zg");MDc(a,b);return c.JD?(c.mi(a.Xe()),[{cache:c,changes:ZL(a.context.zx,null)}]):[]},lEc=function(a,b){return _.zb(b,tL,
5).map(function(c){c=new TDc(a.context,a.Dg,_.x(c,_.RH,5),!0);c.mi(a.Xe());return{cache:c,changes:ZL(a.context.zx,null)}})},kEc=function(a,b){var c=_.me(_.zb(b,tL,5)[0].getQuery(),33)[0],d=_.y(b,3)||void 0;b=ZL(a.context.zx,c);wM(a.context).addCallback(function(f){f.lwa(c,d)});var e=new UL(a.context.Bt,a.context.Rv,c);e.mi(a.Xe());return[{cache:e,changes:b}]};
WDc.prototype.$k=function(a,b){var c=this,d=mEc(this,a,b);if(d&&0!==d.length){for(var e=_.m(a.zd()),f=e.next();!f.done;f=e.next()){var h=f.value;_.Sgc(h);_.N(this.H,67)&&hnc(h,wnc);_.AI(h,b);_.mI(this.H)||this.context.Df.Jq.H.lc()||Mxc(this.context.Df.Jq,[h]);f=new xL(h);_.me(a,14).includes(h.getId())&&Yuc(f,!0);for(h=0;h<d.length;h++)d[h].cache.update(OL(f))}d.forEach(function(k){var l=k.cache;c.dispatchEvent(new GDc(l,k.changes));c.log("Imported "+l.Ad()+" items into the "+l.getType());var p=null;
l instanceof UL&&(p=l.uc());c.context.Laa.promise.then(function(){$L(c.context.zx,p)})});1===a.Uo()&&NL(this.context.Oj,"ZA9qG")}else this.log("Ignoring corpus cache for "+a.Uo()+".")};WDc.prototype.Xe=function(){return this.ma?7:3};
var nEc=function(a){_.L.call(this);this.context=a};_.J(nEc,_.L);nEc.prototype.kh=function(a){try{return oEc(this,new PBc(JSON.parse(a)))}catch(b){return this.handleError("Error parsing prefetched request.",b),Promise.resolve()}};
var oEc=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:b=pEc(a,b);break;case 4:b=qEc(a,b);break;case 6:b=rEc(a,b);break;case 2:b=sEc(a,b);break;case 7:b=tEc(a,b);break;case 5:b=Promise.all(_.zb(_.Gj(b,RBc,7,TBc),PBc,1).map(function(c){oEc(a,c)}));break;default:return a.handleError("Unsupported prefetched request."),Promise.resolve()}return b},pEc=function(a,b){var c=_.Gj(b,_.zf,2,SBc);b=JSON.parse(_.Fj(b,3,TBc)||"{}");var d=new _.nI;
_.Tmc(d,c);return a.context.IR().wta.convert(d,{headers:{},text:"",json:b}).then(function(e){uEc(a,c,e.Yc())})},rEc=function(a,b){return uEc(a,_.Gj(b,_.zf,2,SBc),_.Gj(b,_.eI,9,TBc))},uEc=function(a,b,c){for(var d=c.zd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.AI(f.value,7);c=rDc(c);a=a.context.Df;b=AL(a.context.Am,b);e=xM(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.V[e];f||(f=new yM(a.context,b),f.mi(2),vEc(a,e,f));c.lc()||f.vta(c);a.$k(d,1,b);return Promise.resolve()},
sEc=function(a,b){_.Gj(b,_.oD,4,SBc);b=_.Gj(b,_.aA,5,TBc);var c=a.context.Vc.Uf();c=c&&_.me(c,30)||[];var d=new Set(c);_.zb(b,_.Ro,3).forEach(function(e){(e=(e=e.getKey())&&_.So(e))&&d.add(e)});a.context.CE.DQ(_.zb(b,_.Ro,3),2,[].concat(_.bc(d.values())));return Promise.resolve()},qEc=function(a,b){a.context.iga.t3(_.Gj(b,LL,8,TBc).Yk(),_.Gj(b,_.eA,6,SBc),2,!1);return Promise.resolve()},tEc=function(a,b){var c=_.Gj(b,_.cA,10,SBc);b=JSON.parse(_.Fj(b,3,TBc)||"{}");return a.context.IR().wta.convert(c,
{headers:{},text:"",json:b}).then(function(d){GCc(a.context).t3([d],c,2,!1)})};nEc.prototype.handleError=function(a,b){var c=b?void 0:_.Up(_.uI(_.tI(new _.Pc,2),6));this.context.dispatchEvent(new _.Sc(new _.Rc(a,c,b instanceof Error?b:null)));this.log("Prefetched request population failed.")};nEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var wEc=function(a){LDc.call(this,a);this.ha=[];this.ka=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.Dj(a.Vc,31,2E4))};_.J(wEc,LDc);wEc.prototype.kh=function(){if(!_.P(this.H,45,!1))return NDc(this,5),this.handleError(),_.hi(Error("Ag"));this.log("Drive SDK cache population initiated.");return this.context.LXa().addCallback(this.Ba,this).addCallback(this.wa,this).zg(this.handleError,this)};
wEc.prototype.Ba=function(){var a=this;NL(this.context.Oj,"L6uQWd");wM(this.context).addCallback(function(b){b.vea()});if(_.P(this.H,46,!1))return Aoc(this.context.Km(),this.context.Be()).addCallback(function(b){if(!b)throw NDc(a,4),Error("Bg");MDc(a,b)});this.log("Subscribed corpus cache population disabled.");PL(this.O,!1);return _.fi()};
wEc.prototype.wa=function(){var a=this;this.context.lFa();var b=new _.$h;if(this.O.JD){this.log("Starting subscribed corpus cache population.");var c=this.O.hd();c.Gi(this.ma);this.O.mi(5);xEc(this,this.O,c)}c=_.zb(this.H,_.zf,44);c=_.m(c);for(var d=c.next();!d.done;d=c.next())d=new QL(this.context.Bt,this.context.Rv,this.context.Am,d.value),d.mi(5),xEc(this,d,d.hd()),d=fL(this.context.Am,d.hd()),this.log("Starting "+d+" cache hint corpus cache population.");_.Xh(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();NDc(a,7);f=e;e instanceof WL?f=_.NI(e.error):_.sI(e)||(f=Error("Cg`"+e));b.Hd(f)});return b};
var xEc=function(a,b,c){var d=ZL(a.context.zx,null);b=new EDc(a.context,b,c);a.ha.push(b);b=b.kh().then(function(e){!e.JD&&e instanceof SL&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.hB.Hb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new GDc(e,d))});b.then(function(){yEc(a)},function(){yEc(a)});a.ka.push(b)},yEc=function(a){a.context.Laa.promise.then(function(){$L(a.context.zx,null)})};
wEc.prototype.handleError=function(){this.log("Drive SDK cache population failed.");NL(this.context.Oj,"Gv4zef")};wEc.prototype.Xe=function(){return 5};
var zEc=function(a,b){_.L.call(this);this.context=a;this.V=b;this.Nc=new _.kf(this);this.impression=null;this.W=[];this.Ja(this.Nc);this.H=new WDc(this.context,this.context.Dg);this.Ja(this.H);this.O=new wEc(this.context);this.Ja(this.O)};_.J(zEc,_.L);
zEc.prototype.kh=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.mk().H(106002);_.aa._DRIVE_dsp&&AEc(this);_.aa._DRIVE_dspc=function(c){AEc(a,c)};ZL(this.context.zx,null);_.P(this.context.Vc,24,!1)&&!_.WJ(this.context.Vc)&&(_.aa._DRIVE_ivd||null===_.aa._DRIVE_ivd?BEc(this):_.aa._DRIVE_ivdc=function(){BEc(a)});var b=this.context.WQ;if(b)return this.Nc.listen(this.H,FDc,this.ha),this.Nc.listen(this.O,FDc,this.ha),(!_.P(this.context.Vc,10,!1)&&_.N(this.context.Vc,
69)?this.context.jY.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.XD=a.impression);return a.H.kh().hg(function(){return CEc(a,a.H.Xe())},function(){DEc(a,a.H.Xe(),a.H.V);return _.WJ(a.context.Vc)?a.handleError(Error("Dg")):a.O.kh().then(function(){return CEc(a,a.O.Xe())},function(c){DEc(a,a.O.Xe(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.sI(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var AEc=function(a,b){var c=new nEc(a.context);(_.aa._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.kh(d)});c.dispose()};zEc.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(EEc(this,b,a.changes))};
var CEc=function(a,b){$L(a.context.zx,null);NL(a.context.Oj,"L6uQWd");wM(a.context).addCallback(function(c){c.vea()});return Promise.all(a.W).then(function(){FEc(a,b)})},FEc=function(a,b){if(!a.isDisposed()){_.WJ(a.context.Vc)||GEc(a.V,_.zb(a.context.Vc,_.zf,44));a.log("Corpus cache population complete.");var c=a.context.Oj;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Vs.mFa():gAc(a.context.OD).then(function(d){d&&a.context.Vs.mFa()},function(){});NL(c,"rVezo");NL(c,"BNEDtc");a.impression&&(b=_.hK(_.Lfc,
b),Lrc(Trc(a.impression),b),Krc(Trc(a.impression),!0),Mrc(Trc(a.impression),ovc(a.V.$l)),Nrc(Trc(a.impression),a.context.Df.Uo()),a.impression.Aj());a.dispose()}},DEc=function(a,b,c){a.impression&&(b=_.hK(_.Lfc,b),Lrc(Trc(a.impression),b),a=Trc(a.impression),_.vj(a,3,c,void 0))};
zEc.prototype.handleError=function(a,b){b=void 0===b?!1:b;$L(this.context.zx,null);var c=this.context.Oj;NL(c,"L6uQWd");wM(this.context).addCallback(function(d){d.vea()});NL(c,"mrK8ic");NL(c,"Gv4zef");NL(c,"rVezo");NL(c,"BNEDtc");this.context.hB.Hb("CachedCorpusType","partialCorpus");c=!!this.H.context.WQ||_.P(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 _.Rc(b,void 0,c),c=a.ug,_.tI(c,_.WJ(this.context.Vc)?3:1),_.uI(c,
6),_.Sp(c,b),_.Up(c),this.context.dispatchEvent(new _.Sc(a))):this.log("Corpus population skipped");this.impression&&(Krc(Trc(this.impression),!1),this.impression.Aj());this.dispose()};var EEc=function(a,b,c){return HDc(b,c).then(function(d){d.some(function(e){return b instanceof UL&&e.Vk()&&e.qc()===b.uc()})||KDc(a.V,b,d)},function(){return a.handleError(Error("Eg"))})},BEc=function(a){if(_.aa._DRIVE_ivd){var b=new IDc(a.context,a.context.Dg);a.Ja(b);b.kh(_.aa._DRIVE_ivd)}else NL(a.context.Oj,"DEJoH")};
zEc.prototype.log=function(a){this.context.Be().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var HEc=function(){RL.apply(this,arguments)};_.J(HEc,RL);_.g=HEc.prototype;_.g.Bs=function(a){var b;if(b=RL.prototype.Bs.call(this,a))a=a&&a.getItem()&&a.getItem().Um(),b=!(!a||!_.N(a,3));return b};_.g.hd=function(){};_.g.ZM=function(){return null};_.g.getType=function(){};_.g.RN=function(){};
var IEc=function(a,b){this.context=a;this.H=b;this.PQ={}},KEc=function(a,b){if(!_.jJ(b)){var c=_.me(b,33);if(1===c.length)JEc(a,c[0],b);else{c=_.pl(b);if(1===c.length&&!_.P(c[0],2,!1)){var d=c[0].Xa();c=a.H.get(d);if(!c){c=a.context.Df.JI;var e=_.Mf(new _.Lf,310);c.HO([d],e).then(function(f){if((f=f[d])&&f.uc()){var h=f.getCapabilities();h&&_.Le(h)&&(f=f.uc(),JEc(a,f,b))}else JEc(a,null,b)});return}if(c.getItem().uc()&&_.Le(c.getItem().getCapabilities())){c=c.getItem().uc();JEc(a,c,b);return}}JEc(a,
null,b)}}},JEc=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!yL(d.getItem()))return}d=b||"subscribed";a.PQ[d]||(a.PQ[d]=[]);a.PQ[d].push(c);b&&(wM(a.context).addCallback(function(e){e.lwa(b)}),LEc(a.context.fLa,b))},MEc=function(a,b){if(!_.jJ(b)){var c={},d;for(d in a.PQ){c.hU=d;for(var e=0;e<a.PQ[c.hU].length;e++)if(_.Cj(b,a.PQ[c.hU][e])){_.wa(a.PQ[c.hU],e);"subscribed"!==c.hU&&wM(a.context).addCallback(function(f){return function(h){h.uIa(f.hU,!1)}}(c));return}c={hU:c.hU}}}};
var NEc=function(){this.H=new Map;this.O=[];this.V=[]};
NEc.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();NK(e)&&(a?(e=a.getItem().xf())&&_.y(e,1)&&(1===_.ue(e)||3===_.ue(e))&&(e=_.y(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&&!_.Cj(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var OEc=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},PEc=function(a){a.O=[];a.V=[]};
var QEc=function(a,b){xyc.call(this,a.clone(),b.Km(),b.Vc,b.Be());this.context=b};_.J(QEc,xyc);QEc.prototype.W=function(a){var b=new Map;a.nm().forEach(function(c){var d=a.clone();d=_.rj(d,2,[c]);b.set(c,d)});return b};QEc.prototype.V=function(a){a=a.zd()[0];this.context.Df.$k([a],1,void 0,!0,this.request.H())};QEc.prototype.ha=function(a){this.context.Df.$k([],1,a,!1,this.request.H())};QEc.prototype.ka=function(a){a=_.BI(_.rI(new _.qI,a));this.context.Df.Eo([a])};
var REc=function(a,b,c,d){uM.call(this,a);this.Dg=b;this.request=c;this.Dd={};d&&this.$k(d,!0)};_.J(REc,uM);_.g=REc.prototype;
_.g.refresh=function(){var a=this;this.Fp=6;var b=BL(this.context.Vc)!==BL(this.context.Vc,this.request.H()),c=[];this.request.nm().forEach(function(h){var k=a.Dd[h];k&&k.getItem().Uh()&&!b||c.push(h)});if(0===c.length)return this.$k([],!1),_.Vh();var d=this.request.clone();_.rj(d,2,c);var e=new QEc(d,this.context),f=_.Yh();this.context.Jj().Me()?(this.Nc.listen(this.context.Jj(),"ub",function(h){h.Me()||(a.Nc.Tc(a.context.Jj(),"ub"),a.GA(),e.kh().then(f.resolve,f.reject,f))}),this.Fp=0<_.Va(this.Dd)?
1:2):(this.context.wk().Me()&&(this.Fp=0<_.Va(this.Dd)?1:2),this.GA(),e.kh().then(f.resolve,f.reject,f));return f.promise};_.g.Cia=function(a){return this.context.Am.equals(a,this.request)&&mnc(_.aK(this.Dg),a.H())};_.g.dk=function(a){var b=new _.iK;b.Cc(this.Fp);b.mi(this.Xe());wsc(b,_.Ta(this.Dd,function(c){return c?c.getItem():null}));fDc(this,a.H(),b.kt());return b};_.g.resize=function(){};_.g.hd=function(){return this.request};_.g.Ad=function(){return _.Va(this.Dd)};
_.g.Wu=function(a){var b=this.Bs(a.O),c=this.Bs(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.Bs=function(a){return!!a&&this.request.nm().includes(a.getId())};
var yM=function(a,b,c,d,e){uM.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.Ga=fL(this.context.Am,b);this.$v=new xDc(this.context,this.request,!1,e);b=this.request.Kc()&&svc(this.request.Kc());var h=this.context.Rv;this.H=b?function(k,l){return h.compare(f.request,k,l)}:null;this.ZDa=!b||!ivc(this.request)||_.KI(_.fI(a.Vc));
this.Ia=$wc(this.request);c&&this.$k(c,!d);this.wa=_.Dj(a.Vc.Uf(),16,36E5);_.JJ(this.request)&&this.Nc.listen(this.context.Kha,"Eb",this.La);_.af(this,function(){_.da(f.$v);f.clear()})};_.J(yM,uM);yM.prototype.refresh=function(){this.log(this.ZM()+" | Refresh called, currently "+this.Ad()+" items cached");return SEc(this,!1)};
var SEc=function(a,b){a.Fp=6;if(_.P(a.request,48,!1))return a.Fp=1,_.Vh();if(_.JJ(a.request)){var c=TEc,d=a.context.Kha.H;d=Math.max(Date.now()-d,a.wa);c(a,Math.min(d,2592E5))}return UEc(a,b)};yM.prototype.initialize=function(){return this.count>=this.request.wi()||1===this.Fp?_.Vh():this.refresh()};yM.prototype.clear=function(){VEc(this)};
var VEc=function(a){a.Dd.forEach(function(b){b.count--});a.count=0;a.Dd=[];a.O.clear()},TEc=function(a,b){_.aa.clearTimeout(a.Ba);a.Ba=_.aa.setTimeout(function(){return SEc(a,!0)},b)};yM.prototype.La=function(){Date.now()-this.ta>this.wa&&TEc(this,0)};
var UEc=function(a,b){a.$v&&(a.Nc.Tc(a.$v,"Bb",a.vta),a.Nc.Tc(a.$v,"Cb",a.cOa),a.$v.dispose());var c=a.request.se();c&&_.Nf(c,!1);a.$v=new xDc(a.context,a.request,b);a.V=0;a.Nc.listen(a.$v,"Bb",function(){return a.vta(a.$v.ha)});a.Nc.listen(a.$v,"Cb",a.cOa);return a.bda()};
yM.prototype.bda=function(){var a=this,b=_.Yh();this.context.Jj().Me()?this.Nc.listen(this.context.Jj(),"ub",function(c){c.Me()||(a.Nc.Tc(a.context.Jj(),"ub"),WEc(a,b))}):this.context.wk().Me()?this.Nc.$c(this.context.wk(),[_.XB.NL,_.XB.SU],function(){WEc(a,b)}):WEc(this,b);return b.promise};var WEc=function(a,b){a.GA();_.Eka(uDc(a.$v,a.request.wi()+a.V).hg(b.resolve,b.reject,b),function(){return a.ta=Date.now()})};_.g=yM.prototype;
_.g.resize=function(a){this.log(this.ZM()+" | Resize called");var b=0;for(var c=_.m(new Set([].concat(_.bc(this.Yy)))),d=c.next();!d.done;d=c.next())d=d.value,d=hDc(this.context).qla(d),b=Math.max(b,d.wi());_.JJ(this.request)?(this.request.Gi(b),2!==this.Xe()&&!this.$v.O&&(b>this.count||a)?this.refresh():this.EJ()):this.request.wi()!==b&&(this.request.Gi(b),b>this.count?this.bda():this.EJ())};_.g.hd=function(){return this.request};_.g.ZM=function(){return this.Ga};_.g.Ad=function(){return this.Dd.length};
_.g.Cia=function(a){return this.context.Am.equals(a,this.request)};
_.g.dk=function(a){var b=a.wi(),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=_.Ok(k.getItem()).filter(function(l){return h.includes(_.x(l,_.xk,1).getId())});k=k.clone();qnc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Ok(l.getItem()).length})}d=znc(e);c=new _.jK;_.u(c,4,!1);ssc(c,f)}else e=this.Dd.slice(0,b),c=new _.eI,irc(c,b<this.Dd.length||!(this.context.Jj().Me()||
this.context.wk().Me())&&1!==this.Fp),_.F(c,7,this.ka),_.u(c,8,this.incompleteSearch),_.rj(c,18,this.ha),d=znc(e);e=joc(e);fDc(this,a.H(),e);c.fB(e);c.Cc(d?6:this.Hxa(b));c.mi(this.Xe());c.RP(this.suggestionSessionId);return c};_.g.Hxa=function(a){return 1===this.Fp||a<=this.count?1:this.context.Jj().Me()||this.context.wk().Me()?0<this.Dd.length?1:2:6};_.g.vta=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.hBa();this.W=a.V;this.suggestionSessionId=a.Wf()};
_.g.cOa=function(){var a=this.request.wi()-this.count;0<a&&sDc(this.$v)&&(this.V+=a,this.bda())};_.g.$k=function(a,b){_.JJ(this.request)&&VEc(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=OL(d.value),c=this.Wu(d,!0)||c;b||(1!==this.Fp&&(c=!0),this.Fp=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.np("ViewCache unsorted after import"),this.context.Rv.sort(this.request,this.Dd));c&&(this.wY(),XEc(this,b))};
var XEc=function(a,b){_.pl(a.request).length&&a.Dd.length&&a.context.C_.then(function(c){var d=cL(a.context.mk(),106024,a.ma);if(d){var e=_.pl(a.request)[0].Xa(),f=_.x(_.gK(d),Crc,18);if(!f){f=new Crc;var h=_.gK(d);_.F(h,18,f)}f=_.u(f,1,!b);c=_.u(f,2,c===e).ew(a.Dd.length);_.u(c,4,a.context.Df.Uo());a.ma=d;d.Aj()}})};_.g=yM.prototype;
_.g.Wu=function(a,b){var c=this.O.get(a.id),d=!!c,e=this.Bs(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.np("Updating different wrapper from the existing one"):this.np("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.VLa(f,a.H):(this.uJ(f),_.JJ(this.request)&&TEc(this,0));else{if(_.JJ(this.request)&&!b)return!1;this.cS(a.H)}else return!1;return!0};_.g.cS=function(a){this.H?cnc(this.Dd,a,this.H):this.Dd.push(a);a.count++;YEc(a)&&this.count++;this.O.set(a.getId(),a)};
_.g.uJ=function(a){if(this.H){var b=this.Dd,c=_.Ia(b,a,this.H);0<=c&&_.wa(b,c)}else _.xa(this.Dd,a);a.count--;YEc(a)&&this.count--;this.O.delete(a.getId())};_.g.Pza=function(a){return this.H?_.Ia(this.Dd,a,this.H):_.na(this.Dd,a)};_.g.VLa=function(a,b){this.H&&0!==this.H(a,b)?(this.uJ(a),this.cS(b)):(this.Dd[this.Pza(a)]=b,b.count++,YEc(b)&&this.count++,a.count--,YEc(a)&&this.count--,this.O.delete(a.getId()),this.O.set(b.getId(),b))};
_.g.Bs=function(a,b){if(!a)return!1;if(this.ZDa&&!_.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=zL(this.context.Bt,this.request,a.getItem());return b&&a}}if(!zL(this.context.Bt,this.request,a.getItem()))return!1;var d=1.2*this.request.wi();if(1===this.Fp||!this.H||Wuc(a.V,2)||this.count<d||b||Gnc(a.getItem()))return!0;b=0===this.Dd.length?null:this.Dd[this.Dd.length-1];return!!b&&0>=this.H(a,b)};
_.g.EJ=function(){this.log(this.ZM()+" | Evict called");if(1!==this.Fp&&!this.context.Jj().Me()&&!this.context.wk().Me()){var a=1.2*this.request.wi();if(!(a>=this.count||this.$v&&a>=this.$v.$b())){a=this.count-this.request.wi();for(var b=this.Dd.length-1;0<=b&&0<a;b--){var c=this.Dd[b];Wuc(c.V,2)||Gnc(c.getItem())||(c.count--,YEc(c)&&this.count--,this.O.delete(c.getId()),_.wa(this.Dd,b),a--)}UEc(this,!1)}}};
_.g.np=function(a){var b=new _.Pc;_.tI(b,2);_.uI(b,6);_.Up(b);this.context.dispatchEvent(new _.Sc(new _.Rc(a,b)))};var YEc=function(a){return!Wuc(a.V,2)&&3!==a.getItem().Jv()};yM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.ViewCache",a,void 0===b?"info":b)};yM.prototype.fTa=function(a){var b=this,c=_.pl(this.request);c.length&&(c=c.some(function(d){return(d=b.context.Df.$l.H(d.Xa()))&&_.N(d,108)}),nwc(this.context.xta,a,c))};yM.prototype.eTa=function(){this.EJ()};
yM.prototype.G_a=function(a){return 1!==this.Fp&&a.wi()>this.count&&this.$v.O};
var ZEc=function(a,b,c,d,e,f){_.L.call(this);this.V=a;this.ka=b;this.H=c;this.W=d;this.O=e;this.ha=f;this.Nc=new _.kf(this);this.Ja(this.Nc)};_.J(ZEc,_.L);
var bFc=function(a,b,c){var d,e,f,h;if(null===(d=_.IJ(a.H))||void 0===d?0:_.P(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:_.P(h,19,!1)))return $Ec(a,b);void 0!==c&&aFc(a,b,!c)}return Promise.resolve([])},$Ec=function(a,b){var c=_.Tfa(new _.zf,[(new _.yd).Hb(b)]),d=new vM(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 _.kn;a.Nc.listen(d,"zb",function(f){e.resolve(f.changes)});
uDc(d,1E3).then(function(){e.resolve([]);aFc(a,b,!sDc(d))},function(f){e.reject(f);a.log("Error trying to backfill "+b+" "+f)});return e.promise},aFc=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:Yuc(d,c)};ZEc.prototype.log=function(a,b){this.V.log("drive.ds.sync.ProgressiveSyncer",a,void 0===b?"info":b)};
var zM=function(a,b){var c;_.L.call(this);var d=this;this.V={};this.ha=new NEc;this.Nc=new _.kf(this);this.Ja(this.Nc);this.context=a;this.Dg=b;this.H=this.context.Vc;this.Rt=new dxc(a.Am,a.Be());this.context.mk().W.H=this.Rt;if(null===(c=_.IJ(this.H))||void 0===c?0:_.P(c,15,!1))b=new Wwc(a.Bt,a.Rv),this.Rt.add(b),a.gga.promise.then(function(){var e,f,h,k;null===(f=null===(e=d.Rt)||void 0===e?void 0:e.O)||void 0===f?void 0:PL(f,!(null===(k=null===(h=d.Rt)||void 0===h?void 0:h.H)||void 0===k?0:k.JD))});
this.O=new hvc(a.C_,a.Bt,a.Rv);_.N(a.Vc,60)&&(this.Ba=new HEc(a.Bt,a.Rv));this.W=new bvc(a.Be(),_.aK(this.Dg));cFc(this,_.me(this.H,28));this.$l=new kvc(this.Dg,this.context.Am,this.O,this.W);this.context.mk().W.V=this.$l;this.JI=new zDc(this.context,this.Dg,this.V,this.O);this.SHa=new IEc(this.context,this.O);this.ma=new zEc(this.context,this);_.af(this.ma,function(){d.ma=null});this.wa=_.Ogc(_.aK(this.Dg),dFc);ML(this.context.Oj,["NSockf"],function(){return d.initialize()});ML(this.context.Oj,["NSockf",
"jroI5d"],function(){if(_.x(d.H,_.Kk,12))var e=_.x(d.H,_.Kk,12);else{e=_.Ghc(_.Ihc(new _.xk,_.UJ(_.fI(d.H))),!0);e=_.u(e,6,1);var f=_.z(_.fI(d.H),6,"");f&&e.Nb(f);e=_.rVb(_.Qhc(_.Rhc(_.dG((new _.Kk).Nb(d.context.yu()).setTitle(_.z(d.H,38,"My Drive")),"application/vnd.google-apps.folder").Pn(!1),e),[e]),1);e=_.u(e,29,!0);e=_.u(e,63,!0);f=new _.Dk;f=_.u(f,1,_.P(d.H,6,!0));f=_.u(f,2,!1);f=_.u(f,3,!1);f=_.u(f,4,!1);f=_.u(f,5,!1);f=_.u(f,6,!0);f=_.u(f,7,!0);f=_.u(f,10,!1);f=_.u(f,11,!1);f=_.Jhc(f,!1);
f=_.u(f,12,!1);f=_.u(f,8,!1);f=_.u(f,9,!1);f=_.u(f,21,!1);e=_.QJ(e,f)}d.$k([e],1);NL(d.context.Oj,"hVFf7")});this.ka=_.Yh();ML(this.context.Oj,["BNEDtc"],function(){d.ka.resolve()});this.Jq=new Cxc(this.H,this.context.Be(),a.Km(),this.context.mk(),this.context.jY.promise);_.mI(this.H)&&this.Nc.listen(this.Jq,"yb",this.ta);this.dOa=new _.Xjc(this.H,this.$l);this.Ga=new ZEc(a.Be(),a.Km(),a.Vc,this.$l,this.O,a.dispatchEvent)};_.J(zM,_.L);
zM.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=_.y(d.value,1);for(var e=this.Jq.Id(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.Jq.H.get(d),e=!(!d||1!==d.Xe()&&4!==d.Xe()||3===mxc(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(),eFc(this,h),b.push(Twc(d,new xL(h,
void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+h+".","warning");fFc(this,b,[]);this.context.Vs.update(6);a.size&&this.JI.HO([].concat(_.bc(a)),_.Mf(new _.Lf,311))};zM.prototype.initialize=function(){this.ma.kh()};
zM.prototype.Zh=function(a,b){if(b instanceof _.zf)b=AL(this.context.Am,b),gFc(this,b.H()),KEc(this.SHa,b),b=hFc(this,b),b.cache.Zh(a);else if(b instanceof _.XF)b=iFc(this,b),gFc(this,b.H()),b=jFc(this,b),b.cache.Zh(a);else if(b instanceof _.RH){var c=xM(this,b),d=this.V[c];d?(3==d.fW()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,Pv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new TDc(this.context,this.Dg,b),d.refresh().Ii(_.eg),vEc(this,c,d),b={cache:d,Pv:!0});b.cache.Zh(a)}else if(b instanceof _.bG)c=b.H(),d=this.W,cvc(d,d.H,d.O,c),b=jFc(this,b),b.cache.Zh(a);else throw Error("Fg");return b.Pv};zM.prototype.ek=function(a,b){if(b instanceof _.zf)b=AL(this.context.Am,b),MEc(this.SHa,b);else if(b instanceof _.XF)b=iFc(this,b);else if(!(b instanceof _.RH||b instanceof _.bG))throw Error("Fg");b=xM(this,b);var c=this.V[b];c&&(c.ek(a),c.isDisposed()&&delete this.V[b])};
var xM=function(a,b){return fL(a.context.Am,b,2)},hFc=function(a,b){var c,d,e=xM(a,b),f=a.V[e];if(f)return 3==f.fW()?(a.log(e+" | ItemQueryRequest backed by refreshing existing cache"),f.refresh()):a.log(e+" | ItemQueryRequest backed by existing view cache"),{cache:f,Pv:!1};var h=[],k=5;f=!1;for(var l=exc(a.Rt),p=0;p<l.length;p++){var q=l[p];k=q.UE(b);if(5!=k){l=1==k?void 0:b.wi();if((null===(c=_.IJ(a.H))||void 0===c?0:_.P(c,18,!1))&&q instanceof Wwc){f=!0;k=5;a.log("Partial Caching dark launch: Skipped returning from the MyDrive cache for "+
(e+"."));break}h=q.Kla(b,l);var r=q.Xe();var v=q instanceof QL?q.Ky():"";a.log(e+" | ItemQueryRequest backed by "+q.getType()+" | size "+(q.Ad()+" | initial "+h.length));break}}5==k&&a.log(e+" | ItemQueryRequest backed by new cache");if(a.context.Jj().Me()||a.context.wk().Me())h=h.concat(a.O.query(b,1)),_.Ga(h,void 0,function(A){return A.getId()}),k=(k=a.Rt.H)&&k.N8&&5!=k.UE(b)?k.UE(b):6,a.log("Offline: Populate with "+h.length+" initial items(s)");var w=new yM(a.context,b,h,1==k,v);r&&w.mi(r);w.$k(a.O.query(b,
2),1!=k);r=w.initialize();(null===(d=_.IJ(a.H))||void 0===d?0:_.P(d,18,!1))&&f&&r.then(function(){return wM(a.context)}).then(function(A){return A.BYa().TVb()}).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.dk(b).zd().map(function(S){return S.getId()}),G=(null===(B=null===(A=a.Rt)||void 0===A?void 0:A.O)||void 0===B?void 0:B.dk(b,b.wi()).zd().map(function(S){return S.getId()}))||[],M=_.Ka(E.sort(),G.sort()),
Q=cL(a.context.mk(),106030);Q&&(Hrc(Grc(Frc(Xrc(Q),E.length),G.length),M),Q.Aj());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: ")+(G.length+".\nNetwork: ")+(E+".\nCache: ")+(G+"."),"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);_.Up(A);a.context.dispatchEvent(new _.Sc(new _.Rc("Error during view cache init",
A)))});vEc(a,e,w);return{cache:w,Pv:!0}},jFc=function(a,b){var c=xM(a,b),d=!1,e=a.V[c];if(e&&e.Cia(b))a.log("FindByIdsRequest backed by existing query cache: "+c);else{var f=a.O.getAll(b.nm()),h;b instanceof _.XF?h=new oDc(a.context,a.Dg,b,f):h=new REc(a.context,a.Dg,b,f);f.length&&h.mi(8);h.refresh().then(null,_.eg);b=h;d=!0;vEc(a,c,b);e?(kFc(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,
Pv:d}};zM.prototype.GW=function(){return Object.values(this.V).filter(function(a){return a.hd()instanceof _.RH})};
zM.prototype.k4a=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=Bvc(this.context.Am,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.JI.HO([a],b,!1,c))};
var eDc=function(a,b,c){c&&c.length&&evc(a.W,b,c);_.mI(a.H)&&Mxc(a.Jq,b)},KDc=function(a,b,c){var d,e,f;if(b instanceof TDc){var h=xM(a,b.hd());if(a.V[h]){a.log(h+" | Cache already exists, ignoring persisted data");return}}b instanceof Uwc&&a.Rt.remove(b);h=new Map;var k=a.O.Fy(),l=new Map(k);k=[];for(var p=_.m(b.Fy()),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().Jv();(null===(d=_.IJ(a.H))||void 0===d?0:_.P(d,15,!1))&&!0===q.H&&Yuc(v,q.H);3==w||4==
w?h.set(q.getId(),q.getItem()):v!=q&&k.push(new Swc(q.getId(),q,v));l.delete(r)}else{r=OL(q);if(null===(e=_.IJ(a.H))||void 0===e?0:_.P(e,15,!1))null===(f=a.Rt.O)||void 0===f?void 0:f.update(r);a.O.update(r);a.ha.update(r);_.mI(a.H)&&a.Jq.tP(r)}_.mI(a.H)&&eFc(a,q.getItem())}l=_.m(l.values());for(q=l.next();!q.done;q=l.next())k.push(OL(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 TDc?(k=xM(a,b.hd()),
vEc(a,k,b)):a.Rt.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.Eo(k);a.log("Merged cache: "+b.getType());b instanceof UL&&c.forEach(function(A){a.context.yta.propagate(A)});b instanceof QL&&lFc(a,b.hd(),!b.H);a.context.Vs.update(3)},lFc=function(a,b,c){var d;(null===(d=_.IJ(a.H))||void 0===d?0:_.P(d,15,!1))&&(b=Jvc(b))&&bFc(a.Ga,b,c).then(function(e){a.Eo(e)})},kFc=function(a,b){(new Set([].concat(_.bc(a.Yy)))).forEach(function(c){b.Zh(c);
a.ek(c)})};
zM.prototype.$k=function(a,b,c,d,e){var f=this;this.log("Importing "+a.length+" items");e||(e=c?[].concat(_.bc(c.H().filter(function(A){return!_.aK(f.Dg).includes(A)}))):[]);c&&c instanceof _.zf&&_.JJ(c)&&mFc(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var p=a[l],q=new xL(p,void 0,b),r=this.O.get(p.getId()),v=r?r.getItem():null,w=nFc(this,r,q);if(null!=w)q.pz(w),oFc(this,v,p),Fnc(p),p=$uc(p,v,e),q.setItem(p);else if(null!=r)q=r,p=v;else continue;_.mI(this.H)&&eFc(this,p);!r||pFc(this,v,p,e)?(k.push(Twc(r,
q)),h.push(q)):h.push(r)}a=null;c&&(c instanceof _.zf&&(lFc(this,c,d),(a=hxc(this.Rt,c))&&a.$k(h,!!d)),c=xM(this,c),(a=this.V[c])&&a.$k(h,!!d));0<k.length&&(_.mI(this.H)&&k.forEach(function(A){return f.Jq.tP(A)}),fFc(this,k,e,a?[a]:[]),qFc(this,h));hDc(this.context).N9()};
var eFc=function(a,b){Oxc(a.Jq,b)||5!=b.Jv()||_.Vhc(b,1)},pFc=function(a,b,c,d){(b=b?_.wb(b.clone(),82):null)&&eDc(a,[b],d);c=_.wb(c.clone(),82);eDc(a,[c],[]);return!_.Cj(b,c)},mFc=function(a,b,c){rFc(a,b,c);b.forEach(function(d,e){var f=a.$l.H(d.getId());f&&(MK(f,d,[1002]),MK(f,d,[1003]),MK(f,d,[1005]),b[e]=f);_.jJ(c)&&0<_.me(c,33).length&&_.Whc(d,_.me(c,33)[0])})},rFc=function(a,b,c){var d;_.jJ(c)?d="quick access":_.kJ(c)?d="people predict":_.mJ(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" ItemSuggest items for "+d+": "+c)},SCc=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(joc(d),b)};zM.prototype.oma=function(a){this.dOa.oma(a)};
zM.prototype.Eo=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.Vk()?null:e.getItem(),h=e.qc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new xL(f,void 0,void 0,_.y(e,1)||void 0);var p=nFc(this,h,l);if(null==p)continue;l.pz(p);oFc(this,k,f);_.P(e,5,!1)&&hnc(f,wnc);Fnc(f);f=$uc(f,k);l.setItem(f);_.mI(this.H)&&eFc(this,f)}if(k&&!f||f&&pFc(this,k,f,[]))this.context.fLa.Qy(e),c.push(Twc(h,l))}_.mI(this.H)&&c.forEach(function(q){return b.Jq.tP(q)});fFc(this,c,[])};
var oFc=function(a,b,c){b&&!c.Um()&&MK(c,b,a.wa);var d=b?b.xf():null,e=c.xf();e=e?_.se(e):null;d&&e&&oFc(a,_.se(d),e);b&&!_.Nk(c)&&MK(c,b,[1002]);b&&!_.Ok(c).length&&MK(c,b,[1003]);b&&!_.Pk(c).length&&MK(c,b,[1005]);b&&_.N(b,31)&&!_.N(c,31)&&(hnc(c,wnc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};zM.prototype.IB=function(a,b){if(a instanceof _.zf||a instanceof _.XF||a instanceof _.RH)a=xM(this,a),(a=this.V[a])&&a.vY(b);else throw Error("Fg");};
var nFc=function(a,b,c){var d=c.getItem();if(jyc(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.Jv()&&!yL(a)&&!yL(d)&&a.uc()==d.uc())if(a.lj()&&d.lj()){if(a.lj()>d.lj())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Mq()>d.Mq())return null}return Xuc(b&&b.V,c.V)};zM.prototype.ZF=function(a,b){(a=this.O.get(a))&&a.pz(Xuc(a.V,b))};
var fFc=function(a,b,c,d){d=void 0===d?[]:d;var e;if(null===(e=_.IJ(a.H))||void 0===e?0:_.P(e,15,!1))for(var f=_.m(b),h=f.next();!h.done;h=f.next())h=h.value,h.O&&h.H&&Yuc(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())_.xa(c,h.value);d=_.m(c);for(h=d.next();!h.done;h=d.next())gDc(h.value,b);d=new Set;h=exc(a.Rt);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 UL&&f.Ad()>=1.2*f.limit&&sFc(a.context.fLa,f.uc(),!1)}b=_.m(b);for(h=b.next();!h.done;h=b.next())h=h.value,_.N(a.H,60)&&a.Ba.update(h),a.O.update(h),a.O.get(h.id)||a.W.EJ(h.id),a.ha.update(h);d.size&&a.context.Vs.boa(d.size);tFc(a)},tFc=function(a){var b=a.ha.O.slice(0),c=OEc(a.ha);PEc(a.ha);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.Lf;_.Mf(d,308);a.JI.HO(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+
c.join(", "));b=lvc(a.$l,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().xf(),k=a.$l.H(_.y(h,1));k&&(_.F(h,5,k),_.u(h,4,1),e.push(f))});SCc(a,e)}},uFc=function(a){hDc(a.context).N9();a.O.EJ()},iFc=function(a,b){_.Ja(b.H());var c=_.na(b.nm(),"root");if(0>c)return b;b=b.clone();b.nm()[c]=a.context.yu();return b},cFc=function(a,b){var c;null!==(c=_.IJ(a.H))&&void 0!==c&&_.P(c,1,!1)||(b=Src(a.Dg,b),a=a.W,cvc(a,a.items,a.fields,b))},gFc=function(a,b){var c;if(null===(c=_.IJ(a.H))||void 0===
c?0:_.P(c,1,!1))b=Src(a.Dg,b),a=a.W,cvc(a,a.items,a.fields,b)},qFc=function(a,b){a.ka.promise.then(function(){var c=b.filter(function(e){return 4==e.getItem().Jv()});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.JI.HO(c,d)}})},GEc=function(a,b){a.ka.promise.then(function(){for(var c={},d=_.m(b),e=d.next();!e.done;c={b6:c.b6,Dra:c.Dra},e=d.next()){e=e.value;if(hxc(a.Rt,e))break;c.b6=new QL(a.context.Bt,a.context.Rv,
a.context.Am,e);e=new EDc(a.context,c.b6,e);c.Dra=ZL(a.context.zx,null);e.kh().then(function(f){return function(){HDc(f.b6,f.Dra).then(function(h){KDc(a,f.b6,h)})}}(c)).then(function(){$L(a.context.zx,null)},function(){$L(a.context.zx,null)})}})};zM.prototype.Uo=function(){var a=this.Rt.H;return a&&a.JD?1:2};zM.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};
var vEc=function(a,b,c){a.V[b]=c;a.log(b+" | Set cache with "+c.Ad()+" items")},dFc=[50];
var wFc=function(a){_.L.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Tk;this.O=new Map;this.ka=-1;this.ha=0;var c=_.Yh();this.wa=c.promise;hAc(this.context.OD).then(function(d){b.H=d||[];c.resolve();vFc(b)},function(){return c.resolve()});ML(this.context.Oj,["rVezo"],(0,_.K)(this.W,this))};_.J(wFc,_.L);
var LEc=function(a,b){_.P(a.context.Vc,46,!1)&&a.wa.then(function(){if(a.H[0]!==b){_.xa(a.H,b);for(avc(a.context.Df.$l.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.va(a.H,b,0);a.H.length>2*_.Dj(a.context.Vc,47,5);)a.H.pop();a.context.OD.set(bAc,a.H)}a.context.Df.Rt.GW().length+a.O.size<_.Dj(a.context.Vc,47,5)&&(vFc(a),a.W())})},xFc=function(a,b){_.xa(a.H,b)&&a.context.OD.set(bAc,a.H)};
wFc.prototype.Qy=function(a){this.context.yta.propagate(a);if(yL(a)){var b=a.uc();a.Vk()?sFc(this,b,!0):(a=a.getItem(),avc(a)&&xFc(this,b))}};var sFc=function(a,b,c){xFc(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.Df.Rt;for(var e=d.GW(),f=0;f<e.length;f++){var h=e[f];if(h.uc()===b){a.log(b,"Cache removed");d.remove(h);a.context.Vs.update(3);break}}wM(a.context).addCallback(function(k){k.uIa(b,c)});a.W()};
wFc.prototype.W=function(){if(this.context.Oj.H("rVezo")){var a=this.context.Df.Rt;yFc(this);for(var b={};this.V.$b()&&!(this.ha>=_.Dj(this.context.Vc,47,5));){var c=_.Uk(this.V);this.ha++;gxc(a,c)||this.O.has(c)||(this.O.set(c,null),b.Bfa=new _.lhc,_.u(b.Bfa,1,c),this.context.Km().then(function(d){return function(e){return e.Pe(d.Bfa)}}(b)).then(this.ta.bind(this,c),this.ma.bind(this,c)));b={Bfa:b.Bfa}}}};
var vFc=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},yFc=function(a){_.aa.clearTimeout(a.ka);a.ka=_.aa.setTimeout(function(){vFc(a);a.W()},36E5)};wFc.prototype.ta=function(a,b){var c=_.y(b,1);c&&c>_.Dj(this.context.Vc,48,1E3)?(this.log(a,"Too large to backfill: "+_.y(b,1)),zFc(this,a,!1)):AFc(this,a)};
wFc.prototype.ma=function(a,b){(b=_.vI(b).Wj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.BI(_.pgc(_.rI(new _.qI,a),a)),this.context.Df.Eo([a])):AFc(this,a)};
var AFc=function(a,b){var c=new UL(a.context.Bt,a.context.Rv,b),d=c.hd().clone();d.Gi(_.Dj(a.context.Vc,48,1E3));d=new EDc(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=ZL(a.context.zx,b);wM(a.context).addCallback(function(f){f.lwa(b)});d.kh().then(function(){BFc(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;zFc(a,b,!0)}).then(function(){$L(a.context.zx,b)},function(){$L(a.context.zx,b)})},BFc=function(a,b,c,d){c.JD?(c.NX(),HDc(c,d).then(function(e){a.log(b,"Backfill complete, size: "+
c.Ad());KDc(a.context.Df,c,e);zFc(a,b,!1)},function(){a.log(b,"Backfill changes failed");zFc(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),zFc(a,b,!0))},zFc=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&wM(a.context).addCallback(function(e){e.uIa(b,!1)});a.W();0<a.O.size||a.context.Df.Rt.GW().map(function(e){return e.uc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){sFc(a,e,!0)})};
wFc.prototype.log=function(a,b){this.context.Be().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var CFc=function(){_.L.apply(this,arguments)};_.J(CFc,_.L);
var FFc=function(a,b){b=DFc(b);var c=a.getItem(),d=EFc(c.getCapabilities());b.D4.forEach(function(e){_.rVb(e.getItem(),c.Bp());_.QJ(e.getItem(),d.clone())});return b},IFc=function(a,b,c){var d=GFc(c);c=c.find(function(e){return e.getId()===b.getId()});c={CK:c?c:new xL(b),children:[]};HFc(a,d,c);return c},GFc=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().uk()),e=d.next();!e.done;e=d.next())e=e.value,b[e]||(b[e]=[]),b[e].push(c)}return b},HFc=
function(a,b,c){var d=c.CK.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(HFc(a,b,{CK:e,parent:c,children:[]}))});return c},KFc=function(a,b){b=b.children.filter(function(l){return!_.Mk(l.CK.getItem())});for(var c=new Map,d=[];b.length;){var e=b.pop(),f=e.CK.getItem();if(!c.has(f.getId())){_.rVb(f,a.Bp());JFc(a,f,e.parent?e.parent.CK.getItem():void 0);for(var h=_.m(e.children),k=h.next();!k.done;k=h.next())k=k.value,_.Mk(k.CK.getItem())||b.push(k);c.set(f.getId(),!0);d.push(e.CK)}}return d},
LFc=function(a){a=a.children.filter(function(h){return!_.Mk(h.CK.getItem())});for(var b=new Map,c=[];a.length;){var d=a.pop(),e=d.CK.getItem();if(!b.has(e.getId())){c.push(_.BI(_.rI(new _.qI,e.getId())));d=_.m(d.children);for(var f=d.next();!f.done;f=d.next())f=f.value,_.Mk(f.CK.getItem())||a.push(f);b.set(e.getId(),!0)}}return c},DFc=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();_.Mk(e)||_.N(e,137)?c.push(e):b.push(d)}return{TQ:c,D4:b}},EFc=
function(a){a=a.clone();var b=null!=_.N(a,34)?_.N(a,34):_.N(a,7),c=null!=_.N(a,35)?_.N(a,35):_.N(a,7);_.u(a,45,c);_.u(a,46,b);_.u(a,30,c);_.u(a,31,b);_.u(a,47,c);_.u(a,32,c);_.u(a,33,b);_.u(a,4,b);_.u(a,9,c);_.u(a,20,b);_.u(a,17,_.N(a,7));_.u(a,8,_.N(a,10)||_.N(a,11));_.u(a,21,_.Ek(a));_.wb(a,18);_.wb(a,13);_.wb(a,10);_.u(a,42,_.N(a,42));_.u(a,43,_.N(a,43));_.u(a,48,_.N(a,48));return a},JFc=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities();_.u(e,30,_.N(d,30));_.u(e,31,_.N(d,31));_.u(e,
47,_.N(d,47));_.u(e,32,_.N(d,32));_.u(e,33,_.N(d,33));_.u(e,4,_.N(d,4));_.u(e,9,_.N(d,9));_.u(e,21,_.N(d,21));_.u(e,20,_.N(d,20));_.u(e,17,_.N(d,17));_.u(e,1,_.Ek(d));_.u(e,7,_.N(d,7));_.u(e,10,_.N(d,10));_.u(e,11,_.N(d,11));_.u(e,45,_.N(d,45));_.u(e,46,_.N(d,46));_.u(e,48,_.N(d,48));_.u(b,137,_.Mk(a));c&&(a=c.getCapabilities(),OK(b)?(_.u(e,8,_.N(a,43)),_.u(e,43,_.N(a,43)),_.u(e,42,_.N(a,42))):_.u(e,8,_.N(a,42)))};
var MFc=function(a){this.context=a;this.V=new CFc;this.logName="drive.ds.sync.change.TdChangeProcessor";this.O=_.Mf(new _.Lf,306);this.H=a.Df};
MFc.prototype.propagate=function(a){if(yL(a))a.Vk()?NFc(this,a):OFc(this,a);else if(_.P(this.context.Vc,86,!1)){var b=a.qc(),c=this.H.$l.H(b);var d=c&&c.uc();var e=a.getItem()&&a.getItem().uc();if(!c||!d||!OK(a.getItem()||c)||e&&e!==d)d=!1;else if(d=!!_.Mk(c),!a.Vk()){e=a.getItem();var f=e.Bp()!==c.Bp();d=_.Mk(c)!==_.Mk(e)||d&&f}if(d)if(a.Vk()){if(a=PFc(this,c.uc()),c=this.V,d=(new _.Kk).Nb(b),a=(a=IFc(c,d,a))?LFc(a):[],this.context.Df.Eo(a),this.log(b,"SD shared folder delete | Removed "+a.length+
" item(s)"),b=cL(this.context.mk(),106009))c=Urc(b),_.u(c,2,a.length),b.Aj()}else if(b=a.getItem(),c=PFc(this,b.uc()),d=this.V,b=a.getItem(),b=(c=IFc(d,b,c))?KFc(b,c):[],SCc(this.context.Df,b),this.log(a.qc(),"SD shared folder update | Updated "+b.length+" item(s)"),a=cL(this.context.mk(),106010))c=Urc(a),_.u(c,1,b.length),a.Aj()}};
var NFc=function(a,b){var c=b.qc();b=PFc(a,c);b=DFc(b);var d=_.xf(b.D4,function(e){return _.BI(_.rI(new _.qI,e.getId()))});a.context.Df.Eo(d);a.H.JI.HO(b.TQ.map(function(e){return e.getId()}),a.O,void 0,void 0,b.TQ.map(function(e){return _.ml((new _.kl).Nb(e.getId()),_.Qk(e))}));a.log(c,"SD delete | Remove "+d.length+" item(s), "+(b.TQ.length+" divergent items"));if(a=cL(a.context.mk(),106016))c=Vrc(a),_.u(c,1,b.TQ.length),_.u(c,2,b.D4.length),a.Aj()},OFc=function(a,b){var c=b.qc(),d=PFc(a,c),e=a.H.$l.H(c);
b=FFc(b,d);SCc(a.context.Df,b.D4);a.H.JI.HO(b.TQ.map(function(h){return h.getId()}),a.O,void 0,void 0,b.TQ.map(function(h){return _.ml((new _.kl).Nb(h.getId()),_.Qk(h))}));a.log(c,"SD update | Update "+b.D4.length+" item(s), "+(b.TQ.length+" divergent items"));if(d=cL(a.context.mk(),106017)){var f=Vrc(d);_.u(f,1,b.TQ.length);_.u(f,2,b.D4.length);d.Aj()}e||DDc(a.H.JI,c)},PFc=function(a,b){var c=new _.zf;_.rl(c,[b]);_.sl(c,2);return nvc(a.H.$l,c)};
MFc.prototype.log=function(a,b){this.context.Be().info(this.logName,a+": "+b)};
var QFc=function(a,b,c){this.H=a;this.V=b;this.yJ=c},UFc=function(a,b,c){if(b.kW().length){var d=fyc(a.H,b.qc());if(d){var e=d?gyc(a.H,b):[];for(var f={},h=_.m(b.kW()),k=h.next();!k.done;f={AI:f.AI},k=h.next())if(k=k.value,f.AI=RFc(e,k.Hm(),b.qc()),_.N(k,3))myc(a.H,f.AI),c.then(function(r){return function(){var v=Wxc(r.AI);a.H.O.H.delete(v)}}(f),function(r){return function(){var v=Wxc(r.AI);a.H.O.H.delete(v)}}(f));else{for(var l=_.m(_.zb(k,_.UF,2)),p=l.next();!p.done;p=l.next())SFc(a,f.AI,p.value);
k=_.m(_.me(k,4));for(l=k.next();!l.done;l=k.next())TFc(f.AI,l.value);a.H.FD([f.AI],!1,-1);c.then(function(r){return function(){return void a.H.ZF(r.AI.getName(),-2)}}(f),function(r){return function(){a.H.ZF(r.AI.getName(),-2)}}(f))}e=a.Yc(d.dk().response)}}e=e?e:a.Yc();var q=e.V5a;c.then(function(r){q.resolve(r)},function(r){q.reject(_.Vc(r));a.handleError(b.qc(),r)});return e};QFc.prototype.Yc=function(a){a=void 0===a?new JL:a;return new Vvc(a.Cc(1))};
var RFc=function(a,b,c){var d=a.find(function(e){return Vxc(e.getName(),b)});d||(d=wwc((new IL).Zc(b),c),a.push(d));return d};QFc.prototype.handleError=function(a,b){qyc(this.V,a);a=_.vI(b);_.u(a,21,"Server error updating metadata after optimistic application.");this.yJ(a)};
var SFc=function(a,b,c){var d=b.H().find(function(e){return e.getId()===c.getId()});d||(d=new gL,d.Nb(c.getId()),vwc(b,b.H().concat([d])),VFc(d,c));if(1===hL(d))d.setBooleanValue(_.N(c,3));else if(12===hL(d))d.setDateStringValue(_.y(c,17));else if(2===hL(d))d.setTextValue(_.y(c,4));else if(3===hL(d))_.me(c,6).length?d.Ppa(_.me(c,6)):_.me(c,5).length&&(a=_.me(d,7).concat(_.me(c,5)),d.Ppa(a));else if(4===hL(d))d.setLongTextValue(_.y(c,7));else if(5===hL(d))d.setSelectionValue(_.y(c,8));else if(6===
hL(d))_.me(c,10).length?d.Lpa(_.me(c,10)):_.me(c,9).length&&(a=d.PNa().concat(_.me(c,9)),d.Lpa(a));else if(7===hL(d))d.setIntegerValue(_.y(c,11));else if(8===hL(d))_.me(c,13).length?d.Cpa(_.me(c,13)):_.me(c,12).length&&(a=_.me(d,12).concat(_.me(c,12)),d.Cpa(a));else if(10===hL(d))d.setUserValue(a.O(_.y(c,14)));else if(11===hL(d))_.me(c,16).length?Osc(d,_.me(c,16).map(a.O)):_.me(c,15).length&&Osc(d,d.LYa().concat(_.me(c,15).map(a.O)));else throw new _.Rc("Optimistic Applier: Unsupported value type "+
(hL(d)+"."),new _.Pc);},TFc=function(a,b){if(a=a.H().find(function(c){return c.getId()===b}))if(1===hL(a))_.wb(a,5);else if(12===hL(a))_.wb(a,17);else if(2===hL(a))_.wb(a,6);else if(3===hL(a))_.gI(a,7);else if(4===hL(a))_.wb(a,8);else if(5===hL(a))_.wb(a,9);else if(6===hL(a))_.gI(a,10);else if(7===hL(a))_.wb(a,11);else if(8===hL(a))_.gI(a,12);else if(10===hL(a))_.sj(a,15);else if(11===hL(a))_.uj(a,16);else throw new _.Rc("Optimistic Applier: Unsupported value type "+(hL(a)+"."),new _.Pc);},VFc=function(a,
b){_.mj(b,3)?a.gB(1):_.mj(b,17)?a.gB(12):_.mj(b,4)?a.gB(2):_.me(b,6).length||_.me(b,5).length?a.gB(3):_.mj(b,7)?a.gB(4):_.mj(b,8)?a.gB(5):_.me(b,10).length||_.me(b,9).length?a.gB(6):_.mj(b,11)?a.gB(7):_.me(b,13).length||_.me(b,12).length?a.gB(8):_.mj(b,14)?a.gB(10):(_.me(b,16).length||_.me(b,15).length)&&a.gB(11)};QFc.prototype.O=function(a){return _.Hhc(_.Fhc(1),a)};
var WFc=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.Dg=f;this.ha=0;this.V=k;this.W=l;this.Ba=h};
WFc.prototype.apply=function(a,b){var c=this;if(!_.HJ(a))return b;var d=null;a instanceof _.YI?d=XFc(this,a,b):a instanceof _.eJ?d=YFc(this,a,b):a instanceof _.xI?d=ZFc(this,a,b):a instanceof _.TI?d=$Fc(this,a,b):a instanceof _.zJ&&(d=UFc(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?_.Vh(d):b};
var XFc=function(a,b,c){iyc(a.O,b.getId());var d=a.H.$l.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);_.u(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.GJ).Cc(1)},YFc=function(a,b,c){var d=_.y(b,2);d&&a.O.O.push(d);c.then(function(){d&&kyc(a.O,d)&&aGc(a,d,new _.Zjc(1E4,3E5),Date.now()+72E5,5).then(function(){a.W("VMiG2e")},
function(){a.W("VMiG2e")})},function(){d&&_.xa(a.O.O,d)});c.then(null,function(e){e=_.vI(e);_.u(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.GJ).Cc(1)},aGc=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.Vh();var f=_.Yh(),h=c.Xa();_.ZH(c);setTimeout(function(){a.ma.then(function(k){var l=_.Mf(new _.Lf,1425);l=ioc(!0,1,l);return k.Pe(l).then(function(p){if(p=p.Yc())if(p=p.zd()[0],!p||(p.Aw()||0)>b){f.resolve();return}aGc(a,b,c,d,e).then(function(){f.resolve()},
function(){f.resolve()})},function(){var p=aGc(a,b,c,d,e-1);p.then(function(){f.resolve()},function(){f.resolve()});return p})})},h);return f.promise},$Fc=function(a,b,c){var d=b.uc(),e=a.H.$l.H(d);if(!e)return null;e=e.clone();eDc(a.H,[e],[157]);var f=e.Uh();bGc(f,_.zb(b,_.Ik,2));cGc(f,_.zb(b,_.Ik,3));a.H.$k([e],-1,void 0,void 0,[157]);c.then(function(){a.H.ZF(d,-2)},function(){a.H.ZF(d,-2)});c.then(function(h){a.H.$k([_.x(h,_.Kk,2)],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.vI(h);
_.u(h,21,"Server error updating item after optimistic application.");a.V(h)});return nAc(new mAc,e).Cc(1)},bGc=function(a,b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={rfa:c.rfa},d=b.next())c.rfa=d.value,_.zb(a,_.Ik,8).some(function(e){return function(f){return f.Hm()==e.rfa.Hm()}}(c))||_.yj(a,8,c.rfa,_.Ik,void 0)},cGc=function(a,b){var c=b.map(function(d){return d.Hm()});b=_.zb(a,_.Ik,8).filter(function(d){return!c.includes(d.Hm())});pnc(a,b)},ZFc=function(a,b,c){var d=a.H.$l.H(b.getId());if(!d||
d.uc()&&0==b.Nh()||null!=_.N(b,40))return null;var e=_.me(b,10),f=_.me(b,9);if(0<e.length&&0<f.length&&(e=Object.values(mvc(a.H.$l,e.concat(f))).map(function(k){return k.uc()||"root"}),_.Ga(e),1<e.length))return null;var h=d.clone();dGc(a,b,h);a.H.$k([h],-1,void 0,void 0,Qrc(a.Dg));c.then(function(){return a.H.ZF(b.getId(),-2)},function(){a.H.ZF(b.getId(),-2);a.ta(b.getId(),d)});c.then(null,function(k){k=_.vI(k);if(63==k.Wj()){var l=h.getId();_.u(k,22,l);_.u(k,23,f[0])}_.u(k,21,"Server error updating item after optimistic application.");
a.V(k)});return _.Oic((new _.GJ).setItem(h),h.getId()).Cc(1)},dGc=function(a,b,c){null!=b.Af()&&c.kl(b.Af());null!=b.Ni()&&_.Thc(c,b.Ni());null!=b.getMimeType()&&_.dG(c,b.getMimeType());null!=_.y(b,7)&&_.u(c,11,_.y(b,7));null!=_.N(b,11)&&_.u(c,8,_.N(b,11));null!=_.N(b,4)&&c.fw(_.N(b,4));null!=_.N(b,16)&&_.u(c,31,_.N(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Nh()&&(c.Pn(b.Nh()),_.u(c,26,b.Nh()));null!=_.N(b,18)&&_.IK(Enc(c,!0),_.N(b,18));_.me(b,8).length&&_.PJ(c,_.me(b,8));if(_.me(b,
9).length){var d=new Set(c.uk());_.me(b,9).forEach(function(p){return d.add(p)});_.PJ(c,[].concat(_.bc(d)))}if(_.me(b,10).length){var e=new Set(c.uk());_.me(b,10).forEach(function(p){return e.delete(p)});_.PJ(c,[].concat(_.bc(e)));var f=c.Yw();f&&_.me(b,10).includes(f)&&_.wb(c,46)}if(!c.Yw()){var h=a.Ba();f=c.uk().find(function(p){var q=a.H.$l.H(p);return q&&!!q.Yw()||p==h});_.u(c,46,f||void 0)}c.uk().length&&(f=a.H.$l.H(c.uk()[0]))&&_.Whc(c,f.uc());if(f=_.x(b,_.Fk,25)){var k=_.x(c,_.Fk,111)||new _.Fk;
null!=_.N(f,1)&&k.dP(_.N(f,1));null!=_.y(f,2)&&_.u(k,2,_.y(f,2));_.F(c,111,k)}var l=_.me(c,120);_.me(b,31).forEach(function(p){l.includes(p)||l.push(p)});_.me(b,32).forEach(function(p){_.xa(l,p)});_.rj(c,120,l)};WFc.prototype.ta=function(a,b){var c=this,d=_.ZF(new _.XF,[a]);this.ma.then(function(e){return e.Pe(d)}).then(function(e){e=e.Yc().zd()[0];c.H.$k([e.clone()],1)},function(){b&&c.H.$k([b.clone()],1)})};
var eGc=function(a){this.H=a};_.J(eGc,_.Qlc);eGc.prototype.execute=function(a,b,c){var d=_.Qlc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.nMa||b instanceof _.nI&&_.JJ(b.hd()))if(c=jsc(this.H))return c;return b instanceof _.eJ?(c=_.Mf(new _.Lf,1424),a.Pe(ioc(!1,1,c)).then(function(e){(e=e.Yc())&&(e=e.zd()[0])&&_.mj(e,96)&&b.Cda(e.Aw())},_.eg)):null};
var Eoc=function(a,b){return[fGc,gGc,hGc,iGc].reduce(function(c,d){var e;0!==c?e=c:e=_.Ha(d(a),d(b));return e},0)},fGc=function(a){return jGc[a.Bf()]},gGc=function(a){return kGc[a.getType()]},hGc=function(a){return a.getName()||""},iGc=function(a){return a.getId()||""},AM={},jGc=(AM[5]=0,AM[7]=1,AM[1]=2,AM[3]=3,AM[4]=4,AM[2]=5,AM[6]=6,AM),lGc={},kGc=(lGc[1]=0,lGc[2]=1,lGc[3]=2,lGc[4]=3,lGc);
var mGc=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.Dg=l};
mGc.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.GJ&&8===b.Cb()))if(a instanceof _.SI||a instanceof _.UI||a instanceof _.bhc||a instanceof _.rJ||a instanceof _.xI||a instanceof _.BJ||a instanceof _.jhc||a instanceof _.DJ||a instanceof QK){var d=_.AI(b.getItem().clone(),9);this.H.$k([d],1);Lyc(this.ta,b.getItem(),_.aK(this.Dg))}else if(a instanceof _.YI)b=_.BI(_.rI(new _.qI,a.getId())),this.H.Eo([b]);else if(a instanceof _.aJ)b=_.BI(_.pgc(_.rI(new _.qI,a.getId()),a.getId())),this.H.Eo([b]),
this.ma.propagate(b);else if(a instanceof _.eJ)b=ioc(!0).hd(),b=this.H.$l.query(b).map(function(e){return _.BI(_.rI(new _.qI,e.getId()))}),this.H.Eo(b);else if(a instanceof _.WI)this.O.remove(a.Gh());else if(a instanceof _.hJ||a instanceof _.yJ)this.O.put(b.yr());else if(a instanceof _.ZI)Doc(this.H,a);else if(a instanceof _.pD)this.W.remove(a.getKey());else if(a instanceof _.iJ)Foc(this.H,a,_.x(b,_.xk,2));else if(a instanceof _.qD)this.W.put(b.$Na());else if(a instanceof _.VI||a instanceof _.CJ)this.ha.FD([b.rn()],
!1);else if(a instanceof _.bJ)this.ha.FD([nyc(a.getId())],!1);else if(a instanceof _.ahc)this.V.FD(b.response.H(),!1,1);else if(a instanceof _.zJ)a.kW().filter(function(e){return _.N(e,3)}).forEach(function(e){return c.V.removeItem(e.Hm()||"",a.qc())}),qyc(this.ka,a.qc()),this.H.k4a(a.qc());else if(a instanceof _.fK)for(b=_.m(_.zb(a,_.Rsc,1)),d=b.next();!d.done;d=b.next())switch(d=d.value,d.getFeature()){case 3:case 4:case 1:switch(d=_.x(d,_.iL,2),d.getType()){case 1:case 2:if(d=this.H.$l.H(d.qc()))d=
_.rI(prc(),d.getId()).setItem(d.clone()),this.H.Eo([d])}}};
var nGc=function(a){this.H=a};
nGc.prototype.translate=function(a){if(a instanceof _.vJ){var b=this.H.H(a.getId());if(!b)return new _.Pc;var c=(new _.xI).Nb(a.getId());if(b.uc()){var d=b.getCapabilities();_.Le(d)||_.N(d,9)?c.Pn(!0):_.yI(c,!1)}else d=a.getParent(),1===b.Bp()?c.Pn(!0):d?(b=this.H.H(d),!b||_.N(b.getCapabilities(),7)?krc(c,[d]):_.yI(c,!1)):_.yI(c,!1);return c}if(a instanceof _.wJ)return mrc(lrc(krc(jrc((new _.xI).Nb(a.getId()),_.me(a,2)),_.me(a,3)),_.N(a,6)),_.zb(a,_.kl,8));if(a instanceof _.xJ){b=this.H.H(a.getId());
if(!b)return new _.Pc;c=(new _.xI).Nb(a.getId());b.uc()?(d=b.getCapabilities(),_.Le(d)||_.N(d,9)?c.Pn(!1):_.yI(c,!0)):(d=a.getParent(),1===b.Bp()?c.Pn(!1):d?(b=this.H.H(d),!b||_.Ek(b.getCapabilities())?jrc(c,[d]):_.yI(c,!0)):_.yI(c,!0));return c}if(a instanceof _.sK)return new _.bhc(a);if(a instanceof _.mM)return _.me(a,1).map(function(f){var h=new _.zJ;f=_.u(h,1,f);h=a.kW();f=_.tj(f,2,h);h=a.se();return _.F(f,3,h)});if(a instanceof _.dJ){c=ioc(!1,1).hd();var e=0;this.H.query(c).forEach(function(f){(f=
f.Aw())&&(e=Math.max(e,f))});return asc(new _.eJ,a).Cda(e)}return a};
var oGc=function(){};oGc.prototype.validate=function(a){var b=null;a instanceof _.nJ?(a=a.getId()||"",_.Oe(a)&&(b="Tried to request backup with no id.")):a instanceof _.XI&&(a=a.getId()||"",_.Oe(a)&&(b="Tried to delete backup with no id."));return b?_.vI(b):null};
var pGc=function(a,b){this.H=a;this.O=b},sGc=function(a,b){var c=new _.eM,d=new _.WB;if(b.user){var e=_.CK(a.H,b.user);_.F(d,1,e)}a=qGc(a,b);a=drc(crc(_.brc(new _.Zwb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.frc(a,_.Rqc(_.Qqc((new _.VB).Cc(rGc.get(e.status)),Number(e.trialMillisRemaining)),_.BK(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.grc(a,_.Tqc(_.Sqc(new _.Uwb,e.canAdministerTeam),e.canManageInvites)));
b.importFormats&&erc(a,b.importFormats.map(function(f){var h=new _.arc;h=_.u(h,1,f.source);return _.rj(h,2,f.targets)}));_.F(d,3,a);_.oAc(c,d);b=b.largestChangeId;null!=b&&_.u(c,4,Number(b));return c},qGc=function(a,b){var c;var d=new _.Ywb;d=_.u(d,1,Number(b.quotaBytesTotal));d=_.u(d,2,Number(b.quotaBytesUsed));d=_.u(d,3,Number(b.quotaBytesUsedAggregate));d=_.u(d,4,Number(b.quotaBytesUsedInTrash));d=_.Xqc(_.Wqc(_.Vqc(_.Uqc(d,Hoc(b.quotaBytesByService||[])),b.quotaType?tGc.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)-Joc(b);d=_.u(d,9,e);d=_.Yqc(d,Number(b.quotaBytesUsedAggregate));d=_.u(d,11,Number(b.quotaBytesUsedInTrash));d=_.u(d,13,_.Cnc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));d=_.Zqc(d,uGc.get(b.quotaStatus)||0);if(b.graceQuotaInfo&&b.graceQuotaInfo.endDate){e=new _.Xwb;var f=_.b7a(new Date(b.graceQuotaInfo.endDate));e=
_.F(e,1,f);e=_.u(e,2,Number(b.graceQuotaInfo.additionalQuotaBytes));_.F(d,12,e)}if(null===(c=_.IJ(a.O))||void 0===c?0:_.P(c,16,!1)){var h;(a=d.YJ())&&(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=_.u(d,16,Number(b.individualQuotaBytesTotal)),_.u(h,17,_.Cnc(Number(b.individualQuotaBytesUsedAggregate),Number(b.individualQuotaBytesTotal))));b=_.u(d,9,Number(b.individualQuotaBytesUsedAggregate))}else b=
d;return b},uGc=new Map([["softLimitExceeded",2],["hardLimitExceeded",3],["underLimit",1]]),Ioc=new Set(["POOLED_STORAGE","FAMILY"]),rGc=new Map([["isInTrial",1],["hasPaidContract",2],["noSubscription",3],["trialExpired",4]]),Goc=new Map([["DRIVE",1],["FAMILY",4],["GMAIL",2],["PHOTOS",3],["POOLED_STORAGE",5]]),tGc=new Map([["LIMITED",1],["UNLIMITED",2],["POOLED",3]]);
var vGc=new Map([["TYPE_UNSPECIFIED",0],["MOBILE",1],["SYNC_CLIENT",2],["APP",3]]),wGc=new Map([["TYPE_UNSPECIFIED",0],["MY_DRIVE_ROOT",1],["SHARED_DRIVE_ROOT",2],["STANDARD_FOLDER",3]]),xGc=new Map([["TYPE_UNSPECIFIED",0],["USER_DELETION",1],["TRASH_AUTO_PURGE",2],["MULTIPARENTING_MIGRATION",4]]),yGc=new Map([["TYPE_UNSPECIFIED",0],["TRASH",1],["PERMANENT_DELETE",2]]),zGc=new Map([["TYPE_UNSPECIFIED",0],["UNTRASH",1],["REVIVE",2]]),AGc=new Map([["ROLE_UNSPECIFIED",0],["OWNER",1],["ORGANIZER",2],
["FILE_ORGANIZER",3],["EDITOR",4],["COMMENTER",5],["VIEWER",6],["PUBLISHED_VIEWER",7]]),BGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6]]),CGc=new Map([["SUBTYPE_UNSPECIFIED",0],["ADDED",1],["DELETED",2],["REPLY_ADDED",3],["REPLY_DELETED",4],["RESOLVED",5],["REOPENED",6],["REASSIGNED",7]]),DGc=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]]),EGc=new Map([["TYPE_UNSPECIFIED",0],["FLAGGED",1],["CLEARED",2]]),FGc=new Map([["TYPE_UNSPECIFIED",0],["LOADED_FOR_VIEW",1],["VIEWED_MORE_CONTENT",2],["OPEN_WITH_APP_INITIATED",3]]),GGc=new Map([["DOMAIN_VISIBILITY_UNKNOWN",0],["DOMAIN_VISIBILITY_CONSUMER",1],["DOMAIN_VISIBILITY_SAME_DOMAIN",2],["DOMAIN_VISIBILITY_ALL_DOMAINS",3],["DOMAIN_VISIBILITY_RESTRICTED",4]]),HGc=new Map([["NAMED_PARTY_UNKNOWN",0],["NAMED_PARTY_UNNAMED",1],["NAMED_PARTY_NAMED",
2]]),IGc=new Map([["TYPE_UNSPECIFIED",0],["DOWNLOADED",1],["DOWNLOAD_INITIATED",2],["PRINT_INITIATED",3]]),JGc=new Map([["UNSPECIFIED_REFERENCE_TYPE",0],["LINK",1],["DISCUSS",2]]),KGc=new Map([["FEATURE_UNSPECIFIED",0],["SHARING_OUTSIDE_DOMAIN",1],["DIRECT_SHARING",2],["ITEM_DUPLICATION",3],["DRIVE_FILE_STREAM",4]]),LGc=new Map([["RESTRICTION_UNSPECIFIED",0],["UNRESTRICTED",1],["FULLY_RESTRICTED",2]]),MGc=new Map([["STATUS_UNSPECIFIED",0],["IN_PROGRESS",1],["COMPLETED",2],["CANCELLED",3]]),NGc=new Map([["DECISION_UNSPECIFIED",
0],["APPROVED",1],["DECLINED",2]]),OGc=new Map([["TYPE_UNSPECIFIED",0],["LABEL_ADDED",1],["LABEL_REMOVED",2],["LABEL_FIELD_VALUE_CHANGED",3]]),PGc=new Map([["PUBLISH_MODE_UNSPECIFIED",0],["NONE",1],["FIXED",2],["AUTO",3]]),QGc=new Map([["REASON_UNSPECIFIED",0],["ORPHAN_REPARENTED",1]]),XGc=function(a){return a.map(function(b){var c=new _.sAc;if(b.primaryActionDetail){var d=RGc(b.primaryActionDetail);_.F(c,2,d)}b.actors&&(d=SGc(b.actors),_.tj(c,3,d));b.actions&&(d=TGc(b.actions),_.tj(c,4,d));b.targets&&
(d=UGc(b.targets),_.tj(c,5,d));b.timestamp&&c.V(VGc(b.timestamp));b.timeRange&&(b=WGc(b.timeRange),_.xj(c,7,_.gM,b));return c})},TGc=function(a){return a.map(function(b){var c=new _.pAc;if(b.detail){var d=RGc(b.detail);_.F(c,1,d)}if(b.source){d=b.source;var e=new muc;if(d.type){var f=vGc.get(d.type);_.Kj(e,2,f)}d.appId&&_.Jj(e,1,d.appId);_.F(c,2,e)}b.actor&&(d=YGc(b.actor),_.F(c,3,d));b.target&&(d=ZGc(b.target),_.F(c,4,d));b.timestamp&&c.V(VGc(b.timestamp));b.timeRange&&(b=WGc(b.timeRange),_.xj(c,
6,_.qAc,b));return c})},UGc=function(a){return a.map(function(b){return ZGc(b)})},aHc=function(a){return a.map(function(b){return $Gc(b)})},bHc=function(a){return a.map(function(b){var c=new _.Xtc;b.parent&&c.Ug($Gc(b.parent));b.shortcut&&(b=$Gc(b.shortcut),_.F(c,2,b));return c})},ZGc=function(a){var b=new _.uuc;if(a.driveItem){var c=cHc(a.driveItem);_.xj(b,1,_.rL,c)}if(a.drive){var d=a.drive;c=new _.suc;d.name&&c.Zc(d.name);d.title&&c.setTitle(d.title);d.root&&(d=cHc(d.root),_.F(c,3,d));_.xj(b,5,
_.rL,c)}a.fileComment&&(a=a.fileComment,c=new _.tuc,a.legacyCommentId&&_.Jj(c,1,a.legacyCommentId),a.legacyDiscussionId&&_.Jj(c,2,a.legacyDiscussionId),a.linkToDiscussion&&_.Jj(c,3,a.linkToDiscussion),a.parent&&c.Ug(cHc(a.parent)),_.xj(b,3,_.rL,c));return b},$Gc=function(a){var b=new _.kL;if(a.driveItem){var c=a.driveItem,d=new Gtc;c.name&&d.Zc(c.name);c.title&&d.setTitle(c.title);if(c.driveFile){var e=new Etc;_.xj(d,8,Ftc,e)}c.driveFolder&&(e=dHc(c.driveFolder),_.xj(d,9,Ftc,e));c.driveShortcut&&
(c=eHc(c.driveShortcut),_.xj(d,10,Ftc,c));_.xj(b,1,Htc,d)}a.drive&&(a=fHc(a.drive),_.xj(b,3,Htc,a));return b},cHc=function(a){var b=new _.Dtc;a.name&&b.Zc(a.name);a.title&&b.setTitle(a.title);a.mimeType&&_.Jj(b,6,a.mimeType);var c=Number(a.version);isFinite(c)&&_.Ij(b,5,c);if(a.owner){var d=a.owner;c=new ztc;d.domain&&c.Nn(gHc(d.domain));if(d.user){var e=BM(d.user);_.xj(c,1,_.ytc,e)}d.drive&&(d=fHc(d.drive),_.xj(c,4,_.ytc,d));_.F(b,7,c)}a.driveFile&&(c=new Etc,_.xj(b,8,Atc,c));a.driveFolder&&(c=dHc(a.driveFolder),
_.xj(b,9,Atc,c));a.driveShortcut&&(a=eHc(a.driveShortcut),_.xj(b,10,Atc,a));return b},fHc=function(a){var b=new xtc;a.name&&b.Zc(a.name);a.title&&b.setTitle(a.title);return b},dHc=function(a){var b=new Btc;a.type&&(a=wGc.get(a.type),_.Kj(b,6,a));return b},eHc=function(a){var b=new Ctc;a.targetName&&_.Jj(b,1,a.targetName);a.targetMimeType&&_.Jj(b,2,a.targetMimeType);return b},SGc=function(a){return a.map(function(b){return YGc(b)})},YGc=function(a){var b=new _.ruc;if(a.user){var c=BM(a.user);_.xj(b,
1,_.qL,c)}a.anonymous&&(c=new ouc,_.xj(b,2,_.qL,c));if(a.impersonation){var d=a.impersonation;c=new _.puc;d.impersonatedUser&&(d=BM(d.impersonatedUser),_.F(c,1,d));_.xj(b,3,_.qL,c)}a.system&&(d=a.system,c=new _.quc,d.type&&(d=xGc.get(d.type),_.Kj(c,1,d)),_.xj(b,4,_.qL,c));a.administrator&&(a=new _.nuc,_.xj(b,5,_.qL,a));return b},hHc=function(a){return a.map(function(b){return BM(b)})},BM=function(a){var b=new _.etc;if(a.knownUser){var c=a.knownUser,d=new _.ctc;c.personName&&_.Jj(d,1,c.personName);
c.isCurrentUser&&_.Hj(d,2,c.isCurrentUser);c.displayName&&_.Jj(d,3,c.displayName);c.photoUrl&&d.On(c.photoUrl);_.xj(b,2,_.btc,d)}a.unknownUser&&(c=new ftc,_.xj(b,4,_.btc,c));a.deletedUser&&(a=new _.dtc,_.xj(b,3,_.btc,a));return b},VGc=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.a7a((new _.Hy).setSeconds(a),b)},WGc=function(a){var b=new _.fM;a.startTime&&b.aZ(VGc(a.startTime));a.endTime&&b.YO(VGc(a.endTime));return b},gHc=function(a){var b=new wtc;a.name&&b.Zc(a.name);
a.legacyId&&_.Jj(b,3,a.legacyId);a.audienceDisplayName&&_.Jj(b,4,a.audienceDisplayName);return b},RGc=function(a){var b=new _.pL;if(a.create){var c=a.create,d=new _.Ktc;if(c.new){var e=new Ltc;_.xj(d,1,_.Itc,e)}c.upload&&(e=new Mtc,_.xj(d,2,_.Itc,e));c.copy&&(e=c.copy,c=new _.Jtc,e.originalObject&&(e=$Gc(e.originalObject),_.F(c,1,e)),_.xj(d,3,_.Itc,c));_.xj(b,1,_.oL,d)}a.edit&&(d=new Rtc,_.xj(b,2,_.oL,d));if(a.move){c=a.move;d=new _.Ztc;c.addedParents&&(e=aHc(c.addedParents),_.tj(d,1,e));c.removedParents&&
(e=aHc(c.removedParents),_.tj(d,2,e));c.fromOwnershipTransfer&&_.Hj(d,3,c.fromOwnershipTransfer);c.reparents&&(e=c.reparents.map(iHc),_.tj(d,4,e));if(c.multiparentingMigration){e=c.multiparentingMigration;c=new _.Ytc;if(e.removedParents){var f=aHc(e.removedParents);_.tj(c,2,f)}e.migratedParents&&(e=bHc(e.migratedParents),_.tj(c,1,e));_.F(d,5,c)}_.xj(b,3,_.oL,d)}a.rename&&(d=a.rename,c=new _.euc,d.oldTitle&&_.Jj(c,1,d.oldTitle),d.newTitle&&_.Jj(c,2,d.newTitle),_.xj(b,4,_.oL,c));a.delete&&(c=a.delete,
d=new _.Ptc,c.type&&(c=yGc.get(c.type),_.Kj(d,1,c)),_.xj(b,5,_.oL,d));a.restore&&(c=a.restore,d=new _.fuc,c.type&&(c=zGc.get(c.type),_.Kj(d,1,c)),_.xj(b,6,_.oL,d));a.permissionChange&&(c=a.permissionChange,d=new _.buc,c.addedPermissions&&(e=jHc(c.addedPermissions),_.tj(d,1,e)),c.removedPermissions&&(e=jHc(c.removedPermissions),_.tj(d,2,e)),c.resharedPermissions&&(e=jHc(c.resharedPermissions),_.tj(d,3,e)),c.otherActivePermissions&&(c=jHc(c.otherActivePermissions),_.tj(d,4,c)),_.xj(b,7,_.oL,d));if(a.comment){c=
a.comment;d=new _.vtc;c.post&&(f=c.post,e=new _.stc,f.subtype&&(f=BGc.get(f.subtype),_.Kj(e,1,f)),_.xj(d,1,_.rtc,e));if(c.assignment){f=c.assignment;e=new _.ttc;if(f.subtype){var h=CGc.get(f.subtype);_.Kj(e,1,h)}f.assignedUser&&(f=BM(f.assignedUser),_.F(e,7,f));_.xj(d,2,_.rtc,e)}c.suggestion&&(f=c.suggestion,e=new _.utc,f.subtype&&(f=DGc.get(f.subtype),_.Kj(e,1,f)),_.xj(d,3,_.rtc,e));c.mentionedUsers&&(c=hHc(c.mentionedUsers),_.tj(d,7,c));_.xj(b,8,_.oL,d)}a.dlpChange&&(c=a.dlpChange,d=new _.Otc,c.type&&
(c=EGc.get(c.type),_.Kj(d,1,c)),_.xj(b,9,_.oL,d));if(c=a.view){d=new luc;(e=FGc.get(c.type))&&_.Kj(d,1,e);if(e=c.viewHistoryVisibility)c=new kuc,(f=GGc.get(e.domainPolicyVisibilityState))&&_.Kj(c,1,f),(e=HGc.get(e.namedPartyState))&&_.Kj(c,2,e),_.F(d,2,c);_.xj(b,10,_.oL,d)}if(c=a.download)d=new Qtc,(c=IGc.get(c.type))&&_.Kj(d,1,c),_.xj(b,11,_.oL,d);a.reference&&(c=a.reference,d=new _.Xsc,c.type&&(e=JGc.get(c.type),_.Kj(d,1,e)),c.context&&(c=c.context,e=new Wsc,c.description&&e.kl(c.description),c.url&&
_.Jj(e,2,c.url),_.F(d,2,e)),_.xj(b,12,_.oL,d));a.settingsChange&&(c=a.settingsChange,d=new _.iuc,c.restrictionChanges&&(c=kHc(c.restrictionChanges),_.tj(d,1,c)),_.xj(b,13,_.oL,d));a.approvalChange&&(c=a.approvalChange,d=new _.itc,c.approvalName&&_.Jj(d,2,c.approvalName),c.approvalEventNames&&_.rj(d,3,c.approvalEventNames),c.initiator&&(e=BM(c.initiator),_.F(d,4,e)),c.reviewers&&(e=hHc(c.reviewers),_.tj(d,5,e)),c.status&&d.Cc(MGc.get(c.status)),c.dueTime&&(e=VGc(c.dueTime),_.F(d,7,e)),c.approvalRequested&&
(e=new jtc,_.xj(d,8,_.jL,e)),c.approvalCancelled&&(e=new ktc,_.xj(d,9,_.jL,e)),c.reviewerResponded&&(f=c.reviewerResponded,e=new _.htc,f.reviewerDecision&&(f=NGc.get(f.reviewerDecision),_.Kj(e,1,f)),_.xj(d,10,_.jL,e)),c.commentAdded&&(e=new ltc,_.xj(d,11,_.jL,e)),c.reviewersChanged&&(f=c.reviewersChanged,e=new ntc,f.reviewerChanges&&(f=lHc(f.reviewerChanges),_.tj(e,1,f)),_.xj(d,12,_.jL,e)),c.dueTimeChanged&&(e=c.dueTimeChanged,c=new ptc,e.oldDueTime&&(e=VGc(e.oldDueTime),_.F(c,1,e)),_.xj(d,13,_.jL,
c)),_.xj(b,18,_.oL,d));a.lock&&(d=new Ttc,_.xj(b,15,_.oL,d));a.unlock&&(d=new juc,_.xj(b,16,_.oL,d));a.appliedLabelChange&&(c=a.appliedLabelChange,d=new _.atc,c.changes&&(c=mHc(c.changes),_.tj(d,1,c)),_.xj(b,19,_.oL,d));a.publishChange&&(c=a.publishChange,d=new _.duc,c.oldPublishState&&(e=nHc(c.oldPublishState),_.F(d,1,e)),c.newPublishState&&(c=nHc(c.newPublishState),_.F(d,2,c)),_.xj(b,20,_.oL,d));a.linkShareMetadataChange&&(a=a.linkShareMetadataChange,d=new _.Stc,a.securityUpdateEnabled&&_.Hj(d,
1,a.securityUpdateEnabled),_.xj(b,21,_.oL,d));return b},iHc=function(a){var b=new _.Vtc;a.reason&&(a=QGc.get(a.reason),_.Kj(b,1,a));return b},jHc=function(a){return a.map(function(b){var c=new _.nL;if(b.role){var d=AGc.get(b.role);_.Kj(c,1,d)}b.user&&(d=BM(b.user),_.xj(c,2,_.mL,d));if(b.group){d=b.group;var e=new _.lL;d.email&&_.Jj(e,1,d.email);d.title&&e.setTitle(d.title);_.xj(c,3,_.mL,e)}b.domain&&c.Nn(gHc(b.domain));b.anyone&&(d=new $tc,_.xj(c,5,_.mL,d));b.allowDiscovery&&_.Hj(c,6,b.allowDiscovery);
return c})},kHc=function(a){return a.map(function(b){var c=new _.huc;if(b.feature){var d=KGc.get(b.feature);_.Kj(c,1,d)}b.newRestriction&&(b=LGc.get(b.newRestriction),_.Kj(c,2,b));return c})},lHc=function(a){return a.map(function(b){var c=new otc;if(b.removedReviewer){var d=BM(b.removedReviewer);_.F(c,3,d)}b.addedReviewer&&(b=BM(b.addedReviewer),_.F(c,4,b));return c})},mHc=function(a){return a.map(function(b){var c=new _.$sc;b.label&&_.Jj(c,1,b.label);b.types&&(b=oHc(b.types),_.rj(c,2,b));return c})},
oHc=function(a){return a.map(function(b){return OGc.get(b)})},nHc=function(a){var b=new _.cuc;if(a.publishMode){var c=PGc.get(a.publishMode);_.Kj(b,1,c)}a.signinRequired&&_.Hj(b,2,a.signinRequired);a.publishedTime&&(a=VGc(a.publishedTime),_.F(b,3,a));return b};
var qHc=function(a){return(a.items||[]).map(function(b){return pHc(b)})},rHc=function(a,b){var c=new BAc;b=_.u(c,4,b);a&&(a=pHc(a),_.F(b,2,a));return b},pHc=function(a){var b=(new _.sL).Nb(a.id);b=_.u(b,3,a.useByDefault).Zc(a.name);b=_.u(b,7,a.openUrlTemplate);b=Duc(Cuc(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.u(b,8,a.createUrl);b=_.u(b,9,a.createInFolderTemplate);b=_.u(b,10,a.objectType);b=_.u(b,11,a.supportsCreate);b=_.u(b,12,a.supportsImport);b=_.u(b,13,a.supportsMultiOpen);b=_.u(b,27,a.supportsOfflineCreate);
b=_.u(b,14,a.installed);b=_.u(b,15,a.authorized);b=_.u(b,16,a.productUrl);b=_.rj(b,17,a.primaryFileExtensions);b=_.rj(b,18,a.secondaryFileExtensions);b=_.u(b,19,a.shortDescription);b=_.u(b,20,a.longDescription);b=_.u(b,21,a.productId);b=_.u(b,22,a.removable);var c=sHc.get(a.type);b=_.u(b,23,c);b=_.u(b,25,a.hasAppData);b=_.u(b,26,Number(a.appDataQuotaBytesUsed));b=_.u(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.u(b,30,a.hasDriveWideScope);b=_.u(b,31,a.driveSource);b=_.u(b,32,a.driveBranded);b=
_.u(b,33,a.hidden);b=_.u(b,34,a.supportsMobileBrowser);b=_.u(b,35,a.supportsTeamDrives);b=_.u(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 _.xuc;l=_.u(l,3,k.iconUrl).setSize(k.size);k.category&&(k=tHc.get(k.category),_.u(l,1,k));h.call(f,l)}_.tj(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.rj(b,24,d);c=a.rankingInfo||{};a=new _.Auc;d=c.absoluteScore;null!=d&&_.u(a,1,Number(d));d=uHc(c.mimeTypeScores||[]);_.tj(a,
2,d);c=uHc(c.fileExtensionScores||[]);_.tj(a,3,c);_.F(b,29,a);return b},uHc=function(a){return a.map(function(b){var c=b.type;b=b.score;var d=new _.yuc;c=_.u(d,1,c);return _.u(c,2,Number(b))})},sHc=new Map([["WEB_ONLY",1],["WEB_AND_CHROME_EXTENSION",2],["CHROME_EXTENSION_ONLY",3]]),tHc=new Map([["application",1],["document",2],["documentShared",3]]);
var wHc=function(a){var b=new JAc;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.EL).Nb(c.id).setTitle(c.title);d=_.u(d,3,_.BK(c.updateTime));var e=vHc.get(c.backupSource);d=_.u(d,4,e);d=_.u(d,5,c.iconUri);d=_.u(d,8,_.BK(c.expiryTime));d=_.u(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.zz())e=new Zvc,e=_.u(e,1,c.whatsappOngoingBackupEnabled),c=_.u(e,2,c.whatsappPhoneNumber),_.F(d,6,c);else if(2===d.zz()){e=Number(c.deviceAndroidId);var f=new _.Yvc;
f=_.u(f,1,c.deviceName);f=_.u(f,2,c.deviceModelName);c=_.u(f,3,c.shouldIncludeSpecialSyncItems);c=_.u(c,4,isNaN(e)?void 0:e);_.F(d,7,c)}return d});_.tj(b,2,a);return b},yHc=function(a){var b=new FAc;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.FL).Nb(c.id);var e=xHc.get(c.type);d=_.u(d,1,e).setTitle(c.title);d=_.u(d,4,c.iconUri);d=_.$vc(d.setSize(c.size?Number(c.size):void 0),_.BK(c.updateTime));d=_.u(d,7,c.hasCustomBehavior).kl(c.description);return _.u(d,9,c.ongoingSyncEnabled)});
_.tj(b,1,a);return b},vHc=new Map([["BACKUP_SOURCE_UNSPECIFIED",0],["BACKUP_SOURCE_WHATSAPP",1],["BACKUP_SOURCE_ANDROID",2]]),xHc=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 zHc=function(a,b){this.H=a;this.O=b};
var Koc=new Map([["QUEUED",1],["COUNTING",3],["BUILDING",2],["SUCCEEDED",4],["FAILED",5]]);
var AHc=new Map([["READ",2],["WRITE",3],["COMMENT",4]]),BHc=function(a,b,c){var d=c.itemId;c=c.driveItem;d=(new _.Kk).Nb(d);c&&(_.dG(d.setTitle(c.title),c.mimeType),c.userCapabilities&&_.QJ(d,_.Vlc(c.userCapabilities)));_.aK(b).includes(19)&&_.u(d,44,!0);Lyc(a,d,_.aK(b));_.Vhc(d,4);return d},EHc=function(a,b,c){for(var d=[],e=[],f={},h=_.m(c.item||[]),k=h.next();!k.done;f={xfa:f.xfa},k=h.next()){var l=k.value;if(l.person){f.xfa=l.itemId;k=CHc(l.person).Nb(f.xfa);var p={};l=_.m(l.childItem||[]);for(var q=
l.next();!q.done;p={Ora:p.Ora},q=l.next()){var r=q.value;e.some(function(v){return function(w){return w.getId()===v.xfa}}(f))||e.push(k);p.Ora=r.itemId;q=d.find(function(v){return function(w){return w.getId()===v.Ora}}(p));void 0===q&&(q=BHc(a,b,r),d.push(q));r=Fqc(Eqc(Dqc(new _.koa,k.clone()),DHc(r)),r.url);_.yj(q,107,r,_.koa,void 0)}}}return ssc((new _.jK).fB(d),e).RP(c.suggestionSessionId)},CHc=function(a){return _.Hhc((new _.xk).Nb(a.id).Zc(a.displayName),a.emailAddress).On(a.photoUrl)},PHc=function(a){var b=
a.action;return b?b.map(function(c){var d=new _.Nna,e=FHc(c);e&&_.xj(d,2,_.Bk,e);(e=GHc(c))&&tpc(d,e);(e=HHc(c))&&_.xj(d,4,_.Bk,e);(e=IHc(c))&&_.xj(d,5,_.Bk,e);(e=JHc(c))&&_.xj(d,6,_.Bk,e);(e=KHc(c))&&_.xj(d,7,_.Bk,e);(e=LHc(c))&&_.xj(d,8,_.Bk,e);(e=MHc(c))&&_.xj(d,9,_.Bk,e);(e=NHc(c))&&_.xj(d,10,_.Bk,e);(c=OHc(c))&&_.xj(d,11,_.Bk,c);return d}):(a=CM(a),a=bqc([a]),[tpc(new _.Nna,a)])},RHc=function(a){return(a.justification||[]).map(function(b){return QHc(b)})},CM=function(a){return(a=a.justification)?
QHc(a):null},QHc=function(a){var b=ppc(new _.Ak,SHc(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=CHc(c),_.xj(b,3,_.Mna,c),qpc(b,[c])):d?(c=(d.person||[]).map(function(e){return CHc(e)}),d=opc(c),_.xj(b,4,_.Mna,d),qpc(b,c)):(c=(a.person||[]).map(function(e){return CHc(e)}),c.length&&(d=opc(c),_.xj(b,4,_.Mna,d),qpc(b,c)));_.u(b,5,_.BK(a.eventTime));rpc(b,SHc(a.justificationDescription));spc(b,SHc(a.unstructuredJustificationDescription));return b},SHc=function(a){if(!a)return null;a=a.textSegment||
[];return lpc(new _.sk,a.map(function(b){var c=(new _.tk).hh(b.text),d=b.link;if(d){var e=new _.uk;d=_.u(e,1,d.url)}else d=null;c=_.F(c,2,d);c=_.u(c,3,b.bold);return _.u(c,4,b.italic)}))},FHc=function(a){a=a.documentDocosAction;if(!a)return null;var b=Rpc(new _.Vna,CM(a));Qpc(b,(a.subAction||[]).map(function(c){var d=new _.Wna;c.reply?(c=new _.Pna,_.xj(d,1,_.Ck,c)):c.resolve?(c=new Bpc,_.xj(d,2,_.Ck,c)):c.reassign?(c=new zpc,_.xj(d,3,_.Ck,c)):c.acceptSuggestion?(c=new upc,_.xj(d,4,_.Ck,c)):c.rejectSuggestion?
(c=new Apc,_.xj(d,5,_.Ck,c)):c.openThread&&(c=new _.Ona,_.xj(d,6,_.Ck,c));return d}));_.u(b,2,a.discussionId);_.u(b,3,a.postId);Spc(b,SHc(a.anchorText));return b},HHc=function(a){a=a.documentShareAction;if(!a)return null;var b=Wpc(new _.Yna,CM(a));Vpc(b,(a.subAction||[]).map(function(c){var d=new Xpc;c.suggestedShare?(c=new Fpc,_.xj(d,1,yqc,c)):c.responseToRequest&&(c=new Cpc,_.xj(d,2,yqc,c));return d}));Tpc(b,(a.sharee||[]).map(function(c){return CHc(c)}));Upc(b,AHc.get(a.shareeRole));return b},
GHc=function(a){a=a.documentViewAction;if(!a)return null;var b=bqc(RHc(a));aqc(b,(a.subAction||[]).map(function(c){var d=new dqc;c.open?d.Nf(new wpc):c.reviewEdits&&(c=new Dpc,_.xj(d,2,cqc,c));return d}));return b},IHc=function(a){a=a.emailViewAction;if(!a)return null;var b=nqc(new lqc,CM(a));mqc(b,(a.subAction||[]).map(function(c){var d=new pqc;c.open&&d.Nf(new xpc);return d}));return b},JHc=function(a){a=a.calendarEventAction;if(!a)return null;var b=Lpc(Kpc(Jpc(new _.Rna,a.eventId),CM(a)),a.guestCount);
Ipc(b,(a.subAction||[]).map(function(c){var d=new Mpc;if(c.viewCalendarEvent){var e=new Gpc;_.xj(d,1,wqc,e)}c.shareWithAttendees&&(e=new Epc,_.xj(d,2,wqc,e));c.present&&(e=new ypc,_.xj(d,3,wqc,e));c.openDocument&&(c=new wpc,_.xj(d,4,wqc,c));return d}));return b},KHc=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=iqc(hqc(new fqc,a.workspaceId),CM(a));gqc(b,(a.subAction||[]).map(function(c){var d=new jqc;c.addToWorkspace&&(c=new vpc,_.xj(d,1,Aqc,c));return d}));return b},LHc=function(a){a=
a.documentTopicAction;if(!a)return null;var b=Zpc(new _.$na,CM(a));Ypc(b,(a.subAction||[]).map(function(c){var d=new $pc;c.openDocument&&(c=new wpc,_.xj(d,1,zqc,c));return d}));return b},MHc=function(a){a=a.popularDocumentAction;if(!a)return null;var b=uqc(new _.foa,CM(a));tqc(b,(a.subAction||[]).map(function(c){var d=new vqc;c.openDocument&&(c=new wpc,_.xj(d,1,Cqc,c));return d}));return b},NHc=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=Opc(new _.Tna,CM(a));Npc(b,(a.subAction||
[]).map(function(c){var d=new Ppc;c.openDocument&&(c=new wpc,_.xj(d,1,xqc,c));return d}));return b},OHc=function(a){a=a.formResponseAction;if(!a)return null;var b=rqc(new _.doa,RHc(a));qqc(b,(a.subAction||[]).map(function(c){var d=new sqc;c.openDocument?(c=new wpc,_.xj(d,1,Bqc,c)):c.viewResponses&&(c=new Hpc,_.xj(d,2,Bqc,c));return d}));return b},DHc=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var THc=function(a,b){this.H=a;this.O=b},VHc=function(a,b,c){var d=new JL,e=Object.values(c.categoryMetadata||{});ywc(d,e.map(function(f){return UHc(a,f,b.qc())}));d.Cc(1);return new _.mK(d,Poc(c))},XHc=function(a,b){var c=new lM;BBc(c,(b.categories||[]).map(function(d){return WHc(a,d)}));c.Cc(1);return new Wvc(c,Poc(b))},UHc=function(a,b,c){c=wwc((new IL).Zc(b.categoryName),c);b=Object.values(b.attributeValues||[]);vwc(c,b.map(function(d){return YHc(a,d)}).filter(function(d){return null!==d}));return c},
WHc=function(a,b){var c,d=zBc(pBc(vBc(uBc(tBc(oBc(nBc((new kM).Zc(b.name),b.categoryName),b.latestName).setTitle(b.title).kl(b.description),_.BK(b.createTime)),_.BK(b.updateTime)),_.BK(b.publishTime)),(null!==(c=b.attributes)&&void 0!==c?c:[]).map(function(e){a:{var f=e.type;var h=(new OAc).Nb(e.id);h=_.u(h,2,e.queryGuid);h=_.u(h,3,e.helpText);h=_.u(h,4,e.displayName);if(e.attributeDisplayHints){var k=ZHc(e.attributeDisplayHints);_.F(h,5,k)}if(e.capabilities){k=e.capabilities;var l=new PAc;l=_.u(l,
1,k.canSearch);k=_.u(l,2,k.canWrite);_.F(h,6,k)}if(f&&(_.u(h,7,$Hc[f]),e=e[aIc(f)+"Options"],!bIc(a,h,f,e))){f=null;break a}f=h}return f}).filter(function(e){return null!==e})),b.customer);b.createdBy&&qBc(d,cIc(b.createdBy));b.kVb&&rBc(d,cIc(b.kVb));b.publishedBy&&sBc(d,cIc(b.publishedBy));b.displayHints&&wBc(d,ZHc(b.displayHints));b.capabilities&&yBc(d,dIc(b.capabilities));b.learnMoreUri&&_.u(d,15,b.learnMoreUri);return d},YHc=function(a,b){var c=(new gL).Nb(b.id);if(b.userScoped)b=Object.values(b.userScoped),
Psc(c,b.map(function(d){if(d.scopedUser){var e=new Msc;var f=_.CK(a.H,d.scopedUser);e=_.F(e,1,f);d=a.Hb(e,d)?e:null}else d=null;return d}).filter(function(d){return null!==d})),c.gB(9);else if(!a.Hb(c,b))return null;return c},ZHc=function(a){var b=new NAc;b=_.u(b,1,a.disabled);b=_.u(b,2,a.hidden);b=_.u(b,3,a.activatedInAllDrives);return _.u(b,4,!!a.required)},dIc=function(a){var b=new xBc;b=_.u(b,1,a.canSearch);b=_.u(b,2,a.canApply);b=_.u(b,4,a.canRemove);return _.u(b,3,a.canManageSharedDriveActivation)},
bIc=function(a,b,c,d){return eIc(a,function(){fIc(a)[c](b,d)},c,b)},gIc=function(a){a=void 0===a?{}:a;var b=new UAc;b=_.u(b,1,a.minSize);return _.u(b,2,a.maxSize)},iIc=function(a){var b=new TAc;ZAc(b,(a.choices||[]).map(function(c){var d=new YAc;d=_.u(d,1,c.label).Hb(c.value);c.description&&d.kl(c.description);if(c.capabilities){var e=c.capabilities;var f=new $Ac;f=_.u(f,1,e.canSearch);e=_.u(f,2,e.canSelect);_.F(d,3,e)}c.displayHints&&(c=c.displayHints,e=new aBc,e=_.u(e,1,c.disabled),e=_.u(e,2,c.hidden),
c.badgePriority&&_.u(e,5,c.badgePriority),c.badgeColors&&(f=hIc(c.badgeColors),_.F(e,3,f)),c.darkBadgeColors&&(c=hIc(c.darkBadgeColors),_.F(e,4,c)),_.F(d,4,e));return d}));return b},hIc=function(a){var b=new MAc;var c=jIc(a.backgroundColor);b=_.F(b,1,c);c=jIc(a.foregroundColor);b=_.F(b,2,c);a=jIc(a.soloColor);return _.F(b,3,a)},jIc=function(a){var b=new _.UC;b=_.xb(b,1,a.red,0);b=_.xb(b,2,a.green,0);b=_.xb(b,3,a.blue,0);a.alpha&&(a=(new hrc).Hb(a.alpha),_.F(b,4,a));return b},kIc=function(a){var b=
new cBc;b=_.u(b,1,a.showThousandsSeparator);b=_.u(b,2,Number(a.minValue));return _.u(b,3,Number(a.maxValue))},lIc=function(a){var b=(new _.Eoa).setYear(a.year).setMonth(a.month);return _.u(b,3,a.day)};THc.prototype.Hb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.gB($Hc[d]);return eIc(this,function(){mIc(c)[d](a,b[b.valueType])},b.valueType)};
var eIc=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof eBc))return Orc(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},cIc=function(a){return _.Fhc(1).Nb(a.personName.split("/")[1])},aIc=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},fIc=function(a){return{BOOLEAN:function(b,c){var d=b.Y5a;var e=new WAc;e=_.u(e,1,c.trueLabel);c=_.u(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.fOa(gIc(c))},TEXT_LIST:function(b,c){var d=b.Y6a;var e=new bBc;e=_.u(e,1,c.maxEntries);c=gIc(c.options);c=_.F(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new RAc;d=_.u(d,1,c.minSize);c=_.u(d,2,c.maxSize);return _.xj(b,10,iM,c)},SELECTION:function(b,c){return b.K6a(iIc(c))},SELECTION_LIST:function(b,c){var d=b.J6a;var e=new SAc;e=_.u(e,1,c.maxEntries);c=iIc(c.options);c=_.F(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.k6a(kIc(c))},INTEGER_LIST:function(b,
c){var d=b.j6a;var e=new dBc;e=_.u(e,1,c.maxEntries);c=kIc(c.options);c=_.F(e,2,c);return d.call(b,c)},USER:function(b){return b.c7a(new fBc)},USER_LIST:function(b,c){var d=b.gOa,e=new VAc;c=_.u(e,1,c.maxEntries);e=new fBc;c=_.F(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.eOa;var e=new QAc;e=_.u(e,4,c.dateFormat);var f=lIc(c.minValue);e=_.F(e,2,f);c=lIc(c.maxValue);c=_.F(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new eBc;d=_.u(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.u(d,2,$Hc[e]);var f=aIc(e)+"Options";bIc(a,d,e,c[f]);return _.xj(b,16,iM,d)}}},mIc=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.Ppa(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.Lpa(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.Cpa(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.CK(a.H,c))},USER_LIST:function(b,c){Osc(b,c.map(function(d){return _.CK(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},$Hc={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 Qoc={movable:1,deadlineExceeded:2,exceedsSourceLimit:3,exceedsDestinationDepthLimit:4,exceedsDestinationSizeLimit:5,tooManyUnmovableFiles:6,tooHighProportionUnmovableFiles:7};
var oIc=function(a){a=a.personResponse||[];return Gwc(new Fwc,a.map(function(b){var c=b.person;b=Cwc(new KL,b.personId);var d=b.Zc;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=Dwc(d.call(b,e),nIc(c));c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;h=new Bwc;c=_.u(h,1,c&&!c.isDefault?c.url:null);return _.F(f,4,c)}))},nIc=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 pIc=function(a){this.H=a},rIc=function(a,b){return(b.items||[]).map(function(c){return qIc(a,c)})},qIc=function(a,b){var c=new _.poa,d=b.colorRgb;d?(d=d.substring(1),d=/^[a-fA-F0-9]+$/.test(d)?parseInt(d,16):0):d=0;_.u(c,2,d);_.u(c,1,b.backgroundImageLink);_.u(c,3,b.trusted);_.u(c,5,b.backgroundImageGridViewLink);_.u(c,6,b.backgroundImageListViewLink);_.u(c,7,b.hidden);_.u(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&pnc(c,d.map(function(e){var f=new _.Ik;return _.u(f,1,
e.category)}));c=_.bic(_.$hc(_.Zhc(_.Vhc(_.Whc(onc(_.dG((new _.Kk).Nb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName),b.customerId);b.capabilities&&(d=_.Jhc(_.Vlc(b.capabilities),!0),_.QJ(c,d));b.permissionsSummary&&_.Xhc(c,msc(a.H,b.permissionsSummary));b.restrictions&&rnc(c,sIc(b.restrictions));return c},sIc=function(a){var b=new Jqc;b=_.u(b,1,a.copyRequiresWriterPermission);b=_.u(b,2,a.disallowDriveFileStream);b=_.u(b,3,a.domainUsersOnly);
"teamMembersOnly"in a&&_.u(b,4,a.teamMembersOnly);return b};
var tIc={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},Zoc=_.db(tIc);
var uIc=function(a){var b=new _.kc;b=_.u(b,2,a.key);b=_.u(b,1,a.namespace?tIc[a.namespace]:void 0);return _.PBa(new _.Ro,b).Hb(a.value)};
var wIc=function(a){var b=a.items||[];b=Iwc(new LL,b.map(function(c){return vIc(c)}));return new _.pK(b,Poc(a))},vIc=function(a){var b=(new _.dI).Nb(a.id).setTitle(a.title);b=_.u(b,3,_.BK(a.createdDate));return _.u(b,4,_.BK(a.modifiedDate)).Jd(a.state?xIc[a.state]:void 0)},yIc=function(a,b,c){var d=c.item||[];return _.Wmc(_.Vmc(new _.HK,d.map(function(e){return BHc(a,b,e)})),c.suggestionSessionId)},AIc=function(a,b,c){var d=c.item||[];return Vuc(Uuc(new wL,d.map(function(e){return zIc(a,b,e)})),c.suggestionSessionId)},
zIc=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return Suc(Quc(Ruc(Puc(new vL,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return BHc(a,b,f)})),CM(c))},BIc=function(a){var b=new _.Jsc;a.kind&&(a=vIc(a),_.F(b,2,a));b.Cc(1);return b},xIc={active:1,archived:2};
var CIc=function(a,b,c,d){_.tmc.call(this,b);this.Dg=a;this.ma=c;this.O=d;this.ha=null;this.ta=new pGc(this.W,b);this.H=new pIc(this.JF);this.wa=new zHc(this.JF,this.H)};_.J(CIc,_.tmc);var DIc=function(a){a.ha||(a.ha=new THc(a.W,a.ma));return a.ha};
CIc.prototype.ka=function(a,b){if(a instanceof _.PI)var c=_.bmc(_.xmc(a));else{if(a instanceof _.QI)var d=_.DK(this,a,b);else{if(a instanceof _.ahc)var e=EIc(this,a.request,b);else{if(a instanceof _.RI)var f=_.DK(this,a,b);else{if(a instanceof _.TI){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#teamDrive"),_.zK("drive#drive")),b.json);var h=nAc((new mAc).Cc(1),qIc(this.H,b.json))}else{if(a instanceof _.SI)var k=_.DK(this,a,b);else{if(a instanceof _.fK)var l=new Usc;else{if(a instanceof _.VI)var p=
FIc(a,b);else{if(a instanceof _.WI)var q=rHc(void 0,a.Gh());else{if(a instanceof _.XI)var r=new KAc;else{if(a instanceof _.YI)var v=_.bmc(_.xmc(a));else{if(a instanceof _.ZI)var w=new nM;else{if(a instanceof _.$I)var A=_.bmc(_.xmc(a));else{if(a instanceof _.aJ)var B=_.bmc(_.xmc(a));else{if(a instanceof _.pD){var E=new ZBc,G=a.getKey();var M=_.F(E,4,G)}else{if(a instanceof _.bJ)var Q=FIc(a,b);else{if(a instanceof _.eJ)var S=_.bmc(_.xmc(a));else{if(a instanceof _.Ygc){if(!b.json)throw _.EK();var Y=
new JCc(b.json.exportJob.id)}else{if(a instanceof _.gJ){if(!b.json)throw _.EK();_.AK(_.zK("drive#app"),b.json);var ba=b.json,ca=new AAc,pa=pHc(ba);var sa=_.F(ca,2,pa).Cc(1)}else{if(a instanceof _.hJ)var Ca=GIc(a,b);else{if(a instanceof _.iJ){if(!b.json)throw _.EK();_.AK(_.zK("drive#permission"),b.json);var La=(new nM).Cc(1),fb=_.emc(this.JF,b.json);var Yb=_.F(La,2,fb)}else{if(a instanceof _.nI)a:{if(!b.json)throw _.EK();if(a instanceof _.nI){var ac=a.hd();if(ac&&_.jJ(ac)){for(var Nc=this.O,xc=this.Dg,
Eb=b.json,Ce=[],Sd=_.m(Eb.item||[]),Ch=Sd.next();!Ch.done;Ch=Sd.next()){var re=Ch.value;if(re.driveItem){var Ob=new _.noa,hf=_.u(Ob,2,DHc(re));_.P(ac,74,!1)?_.u(hf,4,!0):_.u(hf,3,!0);var bk=BHc(Nc,xc,re);var Of=_.F(bk,100,hf);Ce.push(Of)}}var Yi=(new _.eI).fB(Ce).RP(Eb.suggestionSessionId);var Bi=_.wkc(new _.tK,Yi);break a}if(ac&&_.kJ(ac)){Bi=EHc(this.O,this.Dg,b.json);break a}if(ac&&_.mJ(ac)){for(var im=this.O,Wo=this.Dg,bh=b.json,Ge=[],ei=_.m(bh.item||[]),Im=ei.next();!Im.done;Im=ei.next()){var Th=
Im.value;if(Th.driveItem){var Yn=BHc(im,Wo,Th),Uh=PHc(Th);var Xo=_.tj(Yn,117,Uh);Ge.push(Xo)}}var jm=(new _.eI).fB(Ge).RP(bh.suggestionSessionId);Bi=_.wkc(new _.tK,jm);break a}}_.AK(_.zK("drive#fileList"),b.json);Bi=_.Zlc(this.JF,b.json,b.headers)}else{if(a instanceof _.nJ){if(!b.json)throw _.EK();var Np=yHc(b.json)}else{if(a instanceof _.oJ){if(!b.json)throw _.EK();_.AK(_.zK("drive#appList"),b.json);var Jm=b.json,km=new HL,oi=qHc(Jm);var Nr=_.tj(km,2,oi);var Op=_.rj(Nr,4,Jm.defaultAppIds).Cc(1)}else{if(a instanceof
_.Zgc){if(!b.json)throw _.EK();var Hq=wHc(b.json)}else{if(a instanceof _.zI)var Or=HIc(this,b);else{if(a instanceof _.pJ){var Pp=b.json;if(!Pp)throw _.EK();_.AK(_.zK("drive#permissionList"),Pp);var Pr=new OBc,Zn=lsc(this.JF,Pp);var vk=_.F(Pr,1,Zn);var wk=_.u(vk,2,Poc(Pp))}else{if(a instanceof _.qJ){if(!b.json)throw _.EK();_.AK(_.zK("drive#revisionList"),b.json);for(var Qc=this.JF,ln=b.json,Ys=new isc,Iq=[],Qr=ln.items||[],Fu=0;Fu<Qr.length;Fu++){var Rr=_.$lc(Qc,Qr[Fu]);Iq.push(Rr)}var Rl=_.tj(Ys,
2,Iq)}else{if(a instanceof _.rJ)var Yo=_.DK(this,a,b);else{if(a instanceof _.DI)var $n=IIc(a,b);else{if(a instanceof _.tJ){if(!b.json)throw _.EK();var ao=oIc(b.json)}else{if(a instanceof _.ghc){if(!b.json)throw _.EK();var Ox=XHc(DIc(this),b.json)}else{if(a instanceof _.WF){if(!b.json)throw _.EK();var tw=DIc(this),Qp=b.json,Qz=new CBc,Gu=WHc(tw,Qp);var Sr=_.F(Qz,2,Gu).Cc(1)}else{if(a instanceof _.uJ){if(!b.json)throw _.EK();_.AK(_.zK("drive#remainingCount"),b.json);var Tr=b.json,Zs=new LAc,Yk=Tr.nextPageToken;
null!=Yk&&_.u(Zs,2,Number(Yk));_.u(Zs,1,Number(Tr.remainingCount));var Li=Zs}else{if(a instanceof _.bG){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#teamDrive"),_.zK("drive#drive")),b.json);var lm=(new _.eI).fB([qIc(this.H,b.json)])}else{if(a instanceof _.EJ){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#teamDriveList"),_.zK("drive#driveList")),b.json);var Qg=(new _.eI).fB(rIc(this.H,b.json)),uw=_.wkc(new _.tK,Qg);var Mi=_.u(uw,3,Poc(b.json))}else{if(a instanceof _.yJ)var Zk=GIc(a,b);else{if(a instanceof
_.zJ)var Hu=EIc(this,a,b);else{if(a instanceof _.xI)var $k=_.DK(this,a,b);else{if(a instanceof _.AJ)var $s=_.DK(this,a,b);else{if(a instanceof _.BJ)var vw=JIc(this,b);else{if(a instanceof _.qD){if(!b.json)throw _.EK();_.AK(_.zK("drive#setting"),b.json);var at=uIc(b.json),Iu=new ZBc;var Ur=_.F(Iu,3,at);var Rp=at.getKey();var gv=_.F(Ur,4,Rp)}else{if(a instanceof _.CJ)var hv=FIc(a,b);else{if(a instanceof _.PH){if(!b.json)throw _.EK();_.AK(_.zK("drive#about"),b.json);var iv=sGc(this.ta,b.json)}else{if(a instanceof
_.cG){if(!b.json)throw _.EK();_.AK(_.zK("drive#workspace"),b.json);var py=vIc(b.json),Uw=new _.kK;Uw.uU().set(py.getId(),py);var tN=Uw}else{if(a instanceof _.$gc){if(!b.json)throw _.EK();var zg=b.json,dr;null!==(dr=_.IJ(this.V))&&void 0!==dr&&_.P(dr,21,!1)&&(xGc.set("HIERARCHY_RECONCILIATION",3),QGc.set("UNMOVABLE_ITEM_REPARENTED",3));var lJ=new lCc;zg.nextPageToken&&_.Jj(lJ,2,zg.nextPageToken);if(zg.activities){var uN=XGc(zg.activities);_.tj(lJ,1,uN)}var vN=lJ}else{if(a instanceof _.bhc)var fS=JIc(this,
b);else{if("undefined"!=typeof _.fhc&&a instanceof _.fhc)var qy=HIc(this,b);else{if(a instanceof _.chc){if(!b.json)throw _.EK();var gZ=new ICc}else{if(a instanceof _.dhc){if(!b.json)throw _.EK();var wN=Noc(b.json)}else{if(a instanceof _.oD){if(!b.json)throw _.EK();_.AK(_.zK("drive#settingList"),b.json);for(var hZ=b.json,iZ=new _.aA,gS=[],aD=hZ.items||[],jZ=0;jZ<aD.length;jZ++){var kZ=uIc(aD[jZ]);kZ&&gS.push(kZ)}var GF=_.Mjb(iZ,gS)}else{if(a instanceof _.cA){if(!b.json)throw _.EK();var LA=AIc(this.O,
this.Dg,b.json).Cc(1)}else{if(a instanceof _.aG){if(!b.json)throw _.EK();var lZ=yIc(this.O,this.Dg,b.json)}else{if(a instanceof _.lhc){if(!b.json)throw _.EK();_.AK(_.zK("drive#teamDrive"),b.json);var mZ=b.json,e7=mZ.recursiveFolderCount,nZ=mZ.recursiveFileCount,oZ=new UBc;var pZ=_.u(oZ,1,nZ);var f7=_.u(pZ,2,e7)}else{if(a instanceof _.khc){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#migrateToDrivePreFlightResponse"),_.zK("drive#migrateToTeamDrivePreFlightResponse")),b.json);var qZ=Toc(b.json)}else{if(a instanceof
_.nhc){if(!b.json)throw _.EK();_.AK(_.zK("drive#workspaceList"),b.json);var hha=wIc(b.json)}else hha=a instanceof QK?JIc(this,b):null;qZ=hha}f7=qZ}lZ=f7}LA=lZ}GF=LA}wN=GF}gZ=wN}qy=gZ}fS=qy}vN=fS}tN=vN}iv=tN}hv=iv}gv=hv}vw=gv}$s=vw}$k=$s}Hu=$k}Zk=Hu}Mi=Zk}lm=Mi}Li=lm}Sr=Li}Ox=Sr}ao=Ox}$n=ao}Yo=$n}Rl=Yo}wk=Rl}Or=wk}Hq=Or}Op=Hq}Np=Op}Bi=Np}Yb=Bi}Ca=Yb}sa=Ca}Y=sa}S=Y}Q=S}M=Q}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 FIc=function(a,b){if(!b.json){if(a instanceof _.bJ)return BIc({});throw _.EK();}_.AK(_.zK("drive#workspace"),b.json);return BIc(b.json)},JIc=function(a,b){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#teamDrive"),_.zK("drive#drive")),b.json);a=qIc(a.H,b.json);return(new _.GJ).Cc(1).setItem(a)},EIc=function(a,b,c){if(!c.json)throw _.EK();_.AK(_.zK("drive#categoryMetadataList"),c.json);return VHc(DIc(a),b,c.json)},GIc=function(a,b){if(!b.json)throw _.EK();_.AK(_.zK("drive#app"),b.json);return rHc(b.json,
a.Gh())},HIc=function(a,b){if(!b.json)throw _.EK();_.AK(_.LI(_.zK("drive#about"),_.zK("drive#changeList")),b.json);a=a.wa;var c=b.json;b=new twc;var d=c.largestChangeId;null!=d&&_.u(b,3,Number(d));if(_.zK("drive#changeList")(c)){d=c.nextPageToken;null!=d&&_.u(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=_.u(k,1,Number(h.id));h.teamDriveId?(_.pgc(k,h.teamDriveId),_.rI(k,h.teamDriveId)):_.rI(k,h.fileId);h.file?k.setItem(_.Xlc(f.H,h.file)):h.teamDrive&&
k.setItem(qIc(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.BI(k);d.push(k)}_.tj(b,4,d)}return b},IIc=function(a,b){var c=new HBc;if(_.me(a,6).length){var d=[];hoc(_.me(a,6),b.headers).forEach(function(e,f){var h=new _.tgc;e=_.u(h,1,f).Hb(e);d.push(e)});_.tj(c,1,d)}IBc(c,b.json?JSON.stringify(b.json):b.text);return c};
var LIc=function(a){var b=new _.zo;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(KIc[a]);_.cK(b,c.join(" "))}return b.toString()},MIc={},KIc=(MIc[1]="active",MIc[2]="archived",MIc);
var NIc=function(a,b,c,d){_.FK.call(this,b,c,a.dOa,d);this.ka=a;this.ha=new Avc(_.aK(c),b)};_.J(NIc,_.FK);
NIc.prototype.V=function(a,b,c){var d=this,e,f,h,k,l,p;try{return _.FK.prototype.V.call(this,a,b,c)}catch(sa){}var q=0,r={},v="GET",w={},A=!1,B=!1;if(a instanceof _.QI){v="POST";var E="admin/files/"+a.getId()+"/migrateToTeamDrive";_.N(a,3)&&(w.useDomainAdminAccess=!0);w.fields="kind,id,parentId,teamDriveId";w.fileId=a.getId();_.mj(a,4)&&(w.preFlightValidationToken=_.y(a,4));var G={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.Gh();_.N(a,3)&&(w.propagate=!0);var M=a.se();B=!0;w.supportsTeamDrives=!0;_.KJ(this.H,[],[a.qc()],this.O,r)}else if(a instanceof QK)E="drives/"+a.getId(),v="PUT",G={removeSecureLinkUpdateForAllFiles:_.P(a,2,!1)},r["content-type"]="application/json",w.fields=BL(this.H,[],!0),M=a.se(),B=!0;else if(a instanceof _.bhc)v="POST",E="teamdrives/"+a.requestId,w.fields=BL(this.H),G={name:a.request.getTitle()},r["content-type"]="application/json",M=a.request.se(),
B=!0;else if(a instanceof _.VI)v="POST",E="workspaces",w.fields="kind,id,title,createdDate,modifiedDate,state",G=qoc(a),r["content-type"]="application/json",M=a.se(),B=!0;else if(a instanceof _.SI)v="POST",E="files/"+a.getId()+"/copy",w.fields=_.Ngc({fields:this.ah(),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)}),w.convert=_.P(a,4,!1),G=poc(a),r["content-type"]="application/json",M=a.se(),a=_.me(a,3).concat([a.getId()]),_.KJ(this.H,[],a,this.O,r),B=!0,w.supportsTeamDrives=!0,_.P(this.H,3,!1)&&(w.enforceSingleParent=
!0);else if(a instanceof _.WI)v="DELETE",E="apps/"+a.Gh(),w.appId=a.Gh(),w.deleteAppData=!!_.N(a,2),M=a.se(),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.se(),B=!0,w.supportsTeamDrives=!0,_.P(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/"+_.y(a,2),M=a.se(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.$I)v=
"DELETE",E="files/"+a.qc()+"/revisions/"+_.y(a,2),M=a.se(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.aJ)v="DELETE",E="teamdrives/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.pD)v="DELETE",M=a.getKey(),E="settings/"+_.y(M,2),_.So(M)&&(w.namespace=Zoc[_.So(M)]),M=a.se(),B=!0;else if(a instanceof _.bJ)v="DELETE",E="workspaces/"+a.getId(),M=a.se(),B=!0;else if(a instanceof _.eJ)v="DELETE",E="files/trash",M=a.hd().se(),B=!0,_.P(this.H,3,!1)&&(w.enforceSingleParent=!0);else if(a instanceof
_.gJ)E="apps/"+a.Gh(),M=a.se(),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 _.nJ)E="backups/"+a.getId()+"/items",q=9,w.languageCode=XK(_.fI(this.H));else if(a instanceof _.hJ)v="POST",E="apps",w.appId=a.Gh(),M=a.se(),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=
_.y(a,5)||"",w.sendNotificationEmail=!_.P(a,6,!1),M={},B=a.Bf(),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.Xa()&&(M.value=a.Xa()),M.withLink=!_.P(a,8,!1),G=M,r["content-type"]="application/json",M=a.se(),B=!0,w.supportsTeamDrives=!0;else if(a instanceof _.Ygc)q=8,v="POST",E="/v1/exports",r["content-type"]=
"application/json",G=_.me(a,1).map(function(sa){if(_.P(d.H,89,!1)){var Ca=_.Yjc(d.O,sa);if(null!==Ca)return{id:sa,resource_key:{resource_key:Ca}}}return{id:sa}}),G={archiveFormat:null,archivePrefix:_.y(a,2),conversions:null,items:G,locale:null};else if(a instanceof _.nI||a instanceof _.fK||a instanceof _.cA||a instanceof _.aG)if(b=a instanceof _.nI?a.hd():a,_.JJ(b)){q=10;v="POST";E="/v1/items";r["content-type"]="application/json";var Q=9==_.VJ(this.H)?"WEB_MOBILE":"WEB_DESKTOP",S={};G={};S.applicationType=
Ivc(this.H);S.platformType=Q;S.languageCode=XK(_.fI(this.H));S.timeZone=(new _.ot).$$();S.requestType="LIVE_REQUEST";a instanceof _.nI&&(Q=a.getOptions())&&_.P(Q,10,!1)&&(S.requestType="BACKGROUND_REQUEST");if(b instanceof _.zf)if(_.jJ(b)){if(Fvc(this.ha)){S.scenarioType="ONE_PICK";if(a=null===(f=null===(e=_.x(b,Kqc,75))||void 0===e?void 0:_.x(e,Lqc,1))||void 0===f?void 0:_.y(f,1))S.clientTags=S.clientTags||[],S.clientTags.push({name:a});this.Zf.O(106026)}else _.P(b,74,!1)?S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES":
S.scenarioType="QUICK_ACCESS";2==_.TJ(b)&&(_.me(b,33),Fvc(this.ha)||(S.scenarioType="QUICK_ACCESS_FOR_SHARED_DRIVE"),G.contextFeature=[{type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.me(b,33)[0]}]);_.ol(b).length&&(G.itemType=Hvc(b))}else _.kJ(b)?S.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":_.mJ(b)&&(S.scenarioType="DRIVE_PRIORITY");else b instanceof _.fK?(E="/v1/userfeedback",G.userFeedback=_.zb(b,_.Rsc,1).map(function(sa){var Ca=_.x(sa,_.iL,2),La={},fb={};fb.feedbackType=[_.zfc[Ca.getType()]];La.item=
fb;La.clientInfo=S;switch(sa.getFeature()){case 1:S.scenarioType="DRIVE_PRIORITY";fb.itemId=Ca.qc();break;case 3:S.scenarioType="QUICK_ACCESS";fb.itemId=Ca.qc();break;case 4:S.scenarioType="QUICK_ACCESS_FOR_SHARED_FILES";fb.itemId=Ca.qc();break;case 2:S.scenarioType="DRIVE_WORKSPACES",fb.itemId=Ca.qc(),fb.childItem=_.zb(Ca,_.iL,3).map(function(Yb){var ac;return{itemId:null!==(ac=Yb.qc())&&void 0!==ac?ac:void 0}})}return La})):b instanceof _.cA?S.scenarioType="DRIVE_WORKSPACES":b instanceof _.aG?(S.scenarioType=
"ITEMS_FOR_DRIVE_WORKSPACE",G.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.Xq()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:null!==(h=_.N(b,5))&&void 0!==h?h:void 0}]):_.Gmc(a);b instanceof _.fK||(G.maxSuggestions=b.wi(),G.clientInfo=S)}else{M=b.se();B=!0;b.getId();E="files";w.q=_.jjc(b,null===(k=_.IJ(this.H))||void 0===k?void 0:_.P(k,23,!1));Q=[];var Y;(Y=_.IJ(this.H))&&_.P(Y,4,!1)?(Y=_.za(this.ah(),this.ah(b.H())),_.Ga(Y)):Y=_.Aa(this.ah());
var ba=void 0,ca=!1;0<_.zb(b,_.il,5).length&&(ba=_.y(this.H.Uf(),50),ca=!0);w.fields=gnc({fields:Y,anonymous:_.KI(_.fI(this.H)),a8:ba||void 0,eF:_.mI(this.H),UCb:ca});w.appDataFilter="NO_APP_DATA";0<_.zb(b,_.SJ,25).length&&(w.sources=_.bjc(b));0<b.iA().length&&(w.spaces=_.cjc(b));a.$n()&&(w.pageToken=a.$n());(a=a.getOptions())&&_.Dj(a,1,1E3)&&(w.maxResults=_.Dj(a,1,1E3));_.P(b,36,!1)&&(w.includeUnsubscribed=!0);_.y(b,43)&&(w.rawUserQuery=_.y(b,43));w.supportsTeamDrives=!0;w.includeItemsFromAllDrives=
_.P(b,66,!0);0<_.me(b,33).length&&2==_.TJ(b)&&(a=_.me(b,33)[0],w.teamDriveId=a,Q.push(a));w.corpora=_.Zic[_.TJ(b)];_.N(b,18)&&(delete w.corpora,w.corpus="DOMAIN");a=_.pl(b);Y=_.zb(b,_.dl,35);ba=_.zb(b,_.dl,38);Q=Q.concat(a.filter(function(sa){return!_.P(sa,2,!1)}).map(function(sa){return sa.Xa()})).concat(Y.map(function(sa){return sa.Xa()})).concat(ba.map(function(sa){return sa.Xa()}));_.KJ(this.H,_.zb(b,_.kl,63),Q,this.O,r);Inc(w,b.Kc());_.Fmc(this.H,w);_.P(this.H,14,!1)&&(w.useLegacyDomainPermissionBehavior=
!1);_.x(b,_.apa,64)&&(a=Mqc(_.x(b,_.apa,64)),a=_.tb(a,4),w.searchSessionData=a)}else if(a instanceof _.oJ){E="apps";switch(a.getType()){case 1:w.fields=OIc;break;case 2:w.fields=PIc;break;case 4:w.fields=QIc;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.Fu=!0}w.languageCode=XK(_.fI(this.H));
0<_.me(a,3).length&&(w.appFilterExtensions=_.me(a,3).join(","));0<_.me(a,4).length&&(w.appFilterMimeTypes=_.me(a,4).join(","));M=a.se();B=!0}else if(a instanceof _.Zgc)E="backups",q=9,w.languageCode=XK(_.fI(this.H));else if(a instanceof _.zI)E="changes",w.includeDeleted=_.P(a,3,!0),w.includeSubscribed=_.P(a,4,!0),w.maxResults=a.vR(),w.startChangeId=_.y(a,1),w.fields=fnc({fields:this.ah(),a8:BL(this.H,_.me(a,5)),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)}),w.appDataFilter="NO_APP_DATA",a.uc()||(w.filters=
"DRIVE_DATASERVICE"),M=_.me(this.H.Uf(),31),M.length&&(w.spaces=_.xf(M,function(sa){return _.xfc[sa]}).join(",")),w.supportsTeamDrives=!0,w.includeCorpusRemovals=!0,w.includeItemsFromAllDrives=!0,a.uc()&&(w.teamDriveId=a.uc()),M=a.se(),B=!0;else if(a instanceof _.pJ)b=a.hd(),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.$n()&&(w.pageToken=a.$n()),_.y(a,1)&&(w.maxResults=_.y(a,1)),M=b.se(),B=!0,w.supportsTeamDrives=!0,_.Fmc(this.H,w),_.P(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.wi(),E="files/"+a.qc()+"/revisions",M=a.se(),B=!0,_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.rJ)v="POST",E="files/"+(_.y(a,1)||"")+"/migrateToDrive",_.N(a,3)&&(w.useDomainAdminAccess=!0),w.fields=_.Ngc({fields:this.ah(),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)}),w.fileId=null!==(l=_.y(a,1))&&void 0!==l?l:void 0,_.mj(a,4)&&(w.preFlightValidationToken=_.y(a,4)),G=ooc(a),r["content-type"]="application/json",A=B=!0,_.KJ(this.H,[],[_.y(a,1)||"",_.y(a,2)||""],this.O,r);
else if(a instanceof _.bG)a.nm(),E="teamdrives/"+a.nm()[0],w.fields=BL(this.H,a.H()),M=a.se(),B=!0;else if(a instanceof _.khc)v="POST",E="admin/files/migrateToTeamDrivePreFlight",_.N(a.request,3)&&(w.useDomainAdminAccess=!0),G=roc(a),r["content-type"]="application/json",B=A=!0,_.KJ(this.H,[],_.me(a.request,1),this.O,r);else if(a instanceof _.EJ){M=a.hd();E="teamdrives";w.fields=qvc(this.H,M.H());w.q=rvc(M);a.$n()&&(w.pageToken=a.$n());if(M=(M=a.getOptions())&&_.Dj(M,1,1E3))w.maxResults=M;M=a.hd().se();
B=!0}else if(a instanceof _.lhc)E="teamdrives/"+a.uc(),w.fields="kind,id,recursiveFileCount,recursiveFolderCount",B=A=!0;else if(a instanceof _.yJ)v="PUT",E="apps/"+a.Gh(),w.appId=a.Gh(),B={},B.useByDefault=null!==(p=_.N(a,2))&&void 0!==p?p:void 0,_.N(a,3)&&(B.hasAppData=!1),r["content-type"]="application/json",M=a.se(),G=B,B=!0;else if(a instanceof _.xI)v="PUT",E="files/"+a.getId(),w.fields=_.Ngc({fields:this.ah(),anonymous:_.KI(_.fI(this.H)),eF:_.mI(this.H)}),w.modifiedDateBehavior="DRIVE_UI",w.updateViewedDate=
!!_.N(a,15),w.fileId=a.getId(),_.me(a,9).length&&(w.addParents=_.me(a,9).join(",")),_.me(a,10).length&&(w.removeParents=_.me(a,10).join(",")),_.me(a,31).length&&(w.addWorkspaces=_.me(a,31).join(",")),_.me(a,32).length&&(w.removeWorkspaces=_.me(a,32).join(",")),null!=_.N(a,24)&&(w.confirmed=_.N(a,24)),w.languageCode=XK(_.fI(this.H)),G=soc(a),r["content-type"]="application/json",M=a.se(),B=!0,w.supportsTeamDrives=!0,this.W(a.getId(),w),_.N(a,36)?w.bypassMultiparentingCheck=!0:_.P(this.H,3,!1)&&(w.enforceSingleParent=
!0),b=_.me(a,9).concat(_.me(a,10)),b.push(a.getId()),_.KJ(this.H,_.zb(a,_.kl,38),b,this.O,r);else if(a instanceof _.AJ)v="PUT",E="files/"+a.qc()+"/revisions/"+_.y(a,2),G=toc(a),r["content-type"]="application/json",M=a.se(),_.KJ(this.H,[],[a.qc()],this.O,r);else if(a instanceof _.BJ)E="teamdrives/"+a.getId(),null!=_.N(a,15)?(v="POST",E+="/"+(_.N(a,15)?"hide":"unhide")):(v="PUT",G=voc(a),r["content-type"]="application/json"),w.fields=BL(this.H),M=a.se(),B=!0;else if(a instanceof _.CJ)v="PUT",E="workspaces/"+
a.getId(),w.fields="kind,id,title,createdDate,modifiedDate,state",G=woc(a),r["content-type"]="application/json",M=a.se(),B=!0;else if(a instanceof _.qD){v="PUT";M=_.x(a,_.Ro,1);B=M.getKey();E="settings/"+_.y(B,2);if(B=_.So(B))w.namespace=Zoc[B];G=$oc(M);r["content-type"]="application/json";M=a.se();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=cpc(w.fields,this.H),M=a.se(),B=!0;else if(a instanceof _.DI){q=11;v=a.dA();E=a.getUrl();var pa=_.y(a,5)||"";_.zb(a,_.tgc,2).forEach(function(sa){r[sa.getKey()]=
sa.Xa()});Q=_.m(_.zb(a,_.tgc,4));for(Y=Q.next();!Y.done;Y=Q.next())Y=Y.value,w[Y.getKey()]=Y.Xa();_.N(a,7)&&(b.WMb=!0);_.N(a,8)&&(b.Fu=!0);_.N(a,9)&&(b.cGa=!0)}else if(a instanceof _.ahc)b=a.request.qc(),E="files/"+b+"/listCategoryMetadata",M=a.request.se(),a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),w.fields="kind,nextPageToken,categoryMetadata",_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.zJ)r["content-type"]="application/json",v="POST",b=a.qc(),E=
"files/"+b+"/updateCategoryMetadata",M=a.se(),G={categoryMetadata:a.kW().map(function(sa){var Ca=_.zb(sa,_.UF,2).map(function(fb){return{id:fb.getId(),userId:fb.Au(),setBooleanValue:_.N(fb,3),setTextValue:_.y(fb,4),setTextValues:_.me(fb,6),addTextValues:_.me(fb,5),setLongTextValue:_.y(fb,7),setSelectionValue:_.y(fb,8),setSelectionValues:_.me(fb,10),addSelectionValues:_.me(fb,9),setIntegerValue:_.y(fb,11),setIntegerValues:_.me(fb,13),addIntegerValues:_.me(fb,12),setUserValue:_.y(fb,14),setUserValues:_.me(fb,
16),addUserValues:_.me(fb,15),setDateStringValue:_.y(fb,17)}}),La={categoryName:sa.Hm()};Ca.length?La.categoryAttributeValueDeltas=Ca:_.me(sa,4).length?La.revertAttributeIds=_.me(sa,4):_.N(sa,3)&&(La.removeCategory=_.N(sa,3));return La})},_.KJ(this.H,[],[b],this.O,r);else if(a instanceof _.tJ)q=13,E=_.KI(_.fI(this.H))?"/v2/people/public":"/v2/people",r["content-type"]="application/json",w.person_id=a.nm(),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);else if(a instanceof _.ghc)q=12,E="/v1/categories/-/published",r["content-type"]="application/json",a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),a.request.getCustomer()&&(w.customer=a.request.getCustomer()),w.$outputDefaults=!0,w.languageCode=
XK(_.fI(this.H));else if(a instanceof _.WF)q=12,E="/v1/"+a.getName(),r["content-type"]="application/json",w.$outputDefaults=!0,w.languageCode=XK(_.fI(this.H));else if(a instanceof _.TI)r["content-type"]="application/json",v="POST",E="drives/"+a.uc()+"/changeCategoryReferences",M=a.se(),B=!0,w.fields=BL(this.H,[157],!0),G={},b=_.zb(a,_.Ik,2),b.length&&(G.addCategoryReferences=b.map(function(sa){return{category:sa.Hm()}})),a=_.zb(a,_.Ik,3),a.length&&(G.removeCategoryReferences=a.map(function(sa){return sa.Hm()}));
else if(a instanceof _.cG)a.nm(),E="workspaces/"+a.nm()[0],w.fields="kind,id,title,createdDate,modifiedDate,state",M=a.se(),B=!0;else if(a instanceof _.$gc){if(q=7,v="POST",E="/v2/activity:query",r["content-type"]="application/json",G={},G.pageSize=a.pageSize,a.pageToken&&(G.pageToken=a.pageToken),b="items/"+a.request.getId(),_.P(a.request,2,!1)?G.ancestorName=b:G.itemName=b,G.consolidationStrategy={legacy:{}},a=_.IJ(this.H),(null===a||void 0===a?0:_.P(a,13,!1))||(null===a||void 0===a?0:_.P(a,21,
!1)))b=[],(null===a||void 0===a?0:_.P(a,13,!1))&&b.push("MULTIPARENTING_MIGRATION"),(null===a||void 0===a?0:_.P(a,21,!1))&&b.push("HIERARCHY_RECONCILIATION"),G.filter="actor.type_case:(USER IMPERSONATION ADMINISTRATOR SYSTEM) actor.system.type:("+(b.join(" ")+")")}else a instanceof _.chc?(q=8,v="POST",E="/v1/exports/"+a.H+":cancel"):a instanceof _.dhc?(q=8,E="/v1/exports/"+a.H):"undefined"!=typeof _.fhc&&a instanceof _.fhc?(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 _.oD?(E="settings",M=_.me(a,3),w.namespace=apc(M),M=a.se(),B=!0):a instanceof _.nhc?(E="workspaces",w.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(w.pageToken=a.pageToken),a.request.wi()&&(w.maxResults=a.request.wi()),w.q=LIc(a.request),(M=a.request.Mx())&&1==M.getType()&&(w.orderBy="title"),M=a.request.se(),B=!0):a instanceof _.uJ?(E="changes/getRemainingCount",w.pageToken=_.y(a,
2),_.mj(a,3)&&(w.supportsTeamDrives=!0,w.includeItemsFromAllDrives=!0,w.teamDriveId=a.uc()),M=a.se()):a instanceof _.PI?(r["content-type"]="application/json",v="POST",E="files/"+a.qc()+"/sendAccessRequest",G={},A=!0):_.Gmc(a);B&&_.Hmc(c,w);0!=q||A||M&&_.y(M,1)||_.qK(this.Zf,74438989);return _.Imc(this,q,E,w,r,v,M,G,pa)};NIc.prototype.W=function(a,b){a=this.ka.$l.H(a);b.expectedParentIds=a?a.uk().join(","):[]};
var OIc=bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing"),PIc=
bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData"),
QIc=bpc("kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing,hasAppData,appDataQuotaBytesUsed");
var RIc=function(a,b,c,d,e,f,h,k,l,p,q,r,v,w,A,B,E,G,M,Q,S,Y,ba){this.rpa=_.Yh();this.fga=new _.gkc;var ca=new _.ykc(this.qK.bind(this),function(){return S("w8KrJc")}),pa=new nGc(b.$l),sa=new eGc(ca);c=new WFc(b,f,new QFc(d,e,c),h,this.rpa.promise,k,l,c,S);d=new mGc(b,p,q,r,v,d,e,B,k);this.O=new _.jkc(a,w);w=new NIc(b,a,k,Y);this.wta=new CIc(k,a,A,B);this.H=lAc(a,new _.Plc(this.O,this.fga,w,this.wta,E,G,M),G,A,Q,b.$l,this.fga,this.rpa.promise,M||void 0);this.rpa.resolve(ba?ba:new _.mlc(new oGc,pa,
sa,this.H,ca,c,d,a))};RIc.prototype.qK=function(){return _.Ua(this.H,function(a){return a.qK()})};var OCc=function(a){var b=new Map,c=Date.now();_.Ra(a.H,function(d,e){d=ksc(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var SIc=function(a,b){var c=this;this.context=a;this.Dg=b;this.ka=null;this.mS=0;this.ma=this.active=!1;this.H=this.wa=null;this.W={};this.Ia=this.Ga=!1;this.Zf=a.mk();this.ha=_.Yh();this.O=a.Vc;this.La=_.IJ(this.O)||new _.dic;b=_.ZK(this.O);this.Ba=new _.Zjc(_.Dj(b,2,37500),_.Dj(b,3,6E5));this.ta=a.WQ;_.Ra(Xvc,function(d){c.W[d]=[]});this.V=a.Df.Rt;ML(a.Oj,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});ML(a.Oj,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});ML(a.Oj,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.wL().then(null,_.eg)})};_.g=SIc.prototype;_.g.initialize=function(){var a=this;this.Ga||(this.Ga=!0,wM(this.context).addCallback(function(b){a.ta.initialize().hg(function(){a.ka=b;a.setActive(!0)},function(c){c&&Orc(a.context.Be(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.NI(c));a.log("Error initializing dump storage");a.RS()})}))};
_.g.isInitialized=function(){return!!this.ka||this.ma};_.g.boa=function(a){this.active&&(this.mS+=a,this.mS>_.Dj(_.ZK(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.IR().qK()||0<b.Df.JI.Hoa||b.Jj().Me()||b.wk().Me())||((this.active=a)?(this.ha.resolve(),this.H||this.wL().then(null,_.eg)):(this.ha=_.Yh(),_.aa.clearTimeout(this.wa)))}};_.g.RS=function(){this.ma=!0};_.g.KYa=function(){return this.H?this.H.promise:_.Vh()};
_.g.wL=function(){var a=this;if(this.H)return this.H.promise;this.H=_.Yh();_.Zh(this.H.promise,function(){a.H=null});var b=this.Zf.H(106021)||void 0;this.ha.promise.then(function(){return fAc(a.context.OD)}).then(function(c){var d=!c;return a.ma?d:_.Xh([TIc(a,3,d,void 0,void 0,b),TIc(a,0,d,void 0,!0,b),TIc(a,1,d,void 0,!0,b),TIc(a,5,d,void 0,!0,b),TIc(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Rc("Failed to update dump",void 0,_.NI(e));return _.Wh(e)})},function(){return _.Wh(Error("Gg"))}).then(function(c){a.H.resolve(c);
b&&(c=Wrc(b),_.u(c,2,!0),b.Aj())},function(c){a.H.reject(c);b&&(c=Wrc(b),_.u(c,2,!1),b.Aj())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.$h,e=this.Zf.H(106021)||void 0;e&&(Brc(Wrc(e),_.hK(_.Rfc,a)),d.then(function(){var f=Wrc(e);_.u(f,2,!0);e.Aj()},function(){var f=Wrc(e);_.u(f,2,!1);e.Aj()}));this.ha.promise.then(function(){return fAc(c.context.OD)}).then(function(f){f=!f;c.ma?d.callback():_.ci(TIc(c,a,f,b,void 0,e),d)});return d};
var TIc=function(a,b,c,d,e,f){var h=_.ja(a.W[b]);if(h){if(h.encrypt===c&&1<a.W[b].length)return h.Ee.ln();var k=new _.$h;_.bi(h.Ee,function(){_.ci(a.Wu(b,c,d,e,f),k)})}else k=a.Wu(b,c,d,e,f);var l={encrypt:c,Ee:k};a.W[b].push(l);_.bi(k,function(){_.ya(a.W[b],function(p){return l===p})});k.zg(function(p){a.ta.O.Hf()?a.RS():p instanceof _.Rc&&(p=p.O||null,p instanceof _.UH&&"InvalidStateError"==p.getName()&&p.message&&-1<p.message.indexOf("The database connection is closing.")&&a.RS());return null});
return k};
SIc.prototype.Wu=function(a,b,c,d,e){var f=this,h=new _.$h;this.ha.promise.then(function(){if(3===a)_.ci(UIc(f,c||!1,b,e),h);else{switch(a){case 0:var k=YCc(f.context.uQ);break;case 1:k=f.context.D_.ks();break;case 5:k=VIc(f.context.CE);break;case 6:k=Pxc(f.context.Df.Jq);break;default:h.Hd("Invalid data type to write to storage.");return}if(k){var l=_.zb(_.ZK(f.O),WK,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):czc(f.ta,b?l:null,[k],e).then(function(){return void h.callback()},function(p){return void h.Hd(p)})}else d?
(f.log("Skipping dump update: "+a),h.callback()):h.Hd("Failed to get data to write to dump.")}});return h};
var UIc=function(a,b,c,d){_.aa.clearTimeout(a.wa);a.wa=_.aa.setTimeout((0,_.K)(a.Pa,a),a.Ba.Xa());if(b&&0===a.mS)return _.fi();a.mS=0;b=_.zb(_.ZK(a.O),WK,11)[0].getKey();if(!b&&c)return a.log("Skipping dump update, encrypted and no key"),_.fi();for(var e=[],f=_.m(WIc(a)),h=f.next();!h.done;h=f.next())h=XIc(a,h.value),h.length&&e.push(czc(a.ta,c?b:null,h,d));var k=new _.$h;Promise.all(e).then(function(){a.Ia&&a.context.OD.set(dAc,!0);k.callback()},function(l){return void k.Hd(l)});return k},WIc=function(a){var b,
c,d,e=Object.values(Muc).filter(function(f){return 0<f&&!YIc.includes(f)});(null===(b=_.IJ(a.context.Vc))||void 0===b?0:_.P(b,17,!1))?(null===(c=a.V.H)||void 0===c?0:c.JD)||null===(d=a.V.O)||void 0===d||!d.JD?e.push(2):e.push(5):e.push(2);return e};SIc.prototype.Pa=function(){_.ZH(this.Ba);this.update(3,!0)};
var XIc=function(a,b){switch(b){case 1:return[ZIc(a)];case 2:return b=a.V.H,a=Luc($Ic(a,b),2),b&&Juc(a,b.RN()),[a];case 5:return b=a.V.O,a=Luc($Ic(a,b),5),b&&(Juc(a,b.RN()),b=Xwc(b),_.rj(a,14,b)),[a];case 3:return aJc(a);case 4:return bJc(a);default:throw new _.Rc("Unsupported CacheType");}},ZIc=function(a){for(var b={},c=[],d=fxc(a.V,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.Fy(),l=cJc(a,joc(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 tL).Vg(h.hd()),
h.H||(_.u(l,2,k),_.F(l,3,p),e=!1),c.push(l)}d=_.Wa(b);a.log("Exporting "+d.length+" initial dump items.");return Juc(Luc(Iuc(Guc(Huc(Kuc((new uL).oz(a.context.yu()),_.aK(a.Dg)),a.ka.ER(null)),dJc(d)),c),1),!e)},$Ic=function(a,b){var c=b?b.Fy():[];c=cJc(a,_.Wa(koc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.Dj(_.ZK(a.O),5,2E4)&&(b&&PL(b,!1),c=[]);c=Guc(new uL,dJc(c));var d=new Boc;(a=a.V.H)&&a.JD&&(a=a.Fy(),_.u(d,3,a.length));a=_.F(c,11,d);b&&Juc(a,b.RN());return a},aJc=function(a){var b=
[],c=a.ka;a.V.GW().forEach(function(d){var e=c.ER(d.uc());if(e){var f=cJc(a,joc(d.Fy()));a.log("Exporting "+f.length+" TD dump items for: "+d.uc());e=Juc(Luc(Huc(Guc(new uL,dJc(f)),e),3),d.RN());d=(new tL).Vg(d.hd());Iuc(e,[d]);b.push(e)}});return b},bJc=function(a){var b={},c=[];a.context.Df.GW().forEach(function(d){1===d.fW()&&null==_.N(d.hd(),6)&&(joc(d.Fy()).forEach(function(e){b[e.getId()]=e}),d=Euc((new tL).Vg(new _.zf),d.hd()),c.push(d))});return[Juc(Luc(Iuc(Guc(new uL,dJc(Object.values(b))),
c),4),!1)]},cJc=function(a,b){b=Hnc(b);_.N(a.O,67)&&(b=eJc(b));_.mI(a.O)&&(_.P(a.La,9,!1)?Sxc(a.context.Df.Jq,b)&&(_.qK(a.Zf,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=Qxc(a.context.Df.Jq,b)):b=Qxc(a.context.Df.Jq,b));return b.filter(function(c){return 4!==c.Jv()})},eJc=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,xnc(c)?(c=c.clone(),hnc(c,wnc),b.push(c)):b.push(c);return b},dJc=function(a){return a.map(function(b){return b.clone()})};
SIc.prototype.log=function(a,b){this.context.Be().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};SIc.prototype.mFa=function(){this.Ia=!0};var YIc=[2,5];
var fJc=function(){};_.g=fJc.prototype;_.g.setActive=function(){};_.g.RS=function(){};_.g.update=function(){return _.fi()};_.g.KYa=function(){return _.Vh()};_.g.wL=function(){return _.Vh()};_.g.boa=function(){};_.g.mFa=function(){};
var UK=function(a,b,c,d){_.yi.call(this);var e=this;this.Aa=a;this.Lw=c;this.rootId=null;this.Ga=!0;this.ha=null;this.ma=[];this.wa=d||new _.Kic;this.Vc=b.clone();(a=_.IJ(this.Vc))&&_.P(a,1,!1)&&_.gI(this.Vc,28);this.Dg=new _.Yic(this.Vc);this.Am=new Avc(_.aK(this.Dg),this.Vc);gJc(this);this.jY=new _.kn;this.ob=_.aa.setTimeout(function(){e.Be().info("drive.ds.sync.ThinContext","Page stable timed out.");e.jY.resolve();e.mk().O(106020)},1E4);this.C_=new _.$h;this.Ba=new _.Ajc(_.WJ(this.Vc),_.P(this.Vc.Uf(),
52,!1));this.connectionState=new _.tjc(_.WJ(this.Vc)?3:1,!_.P(this.Vc.Uf(),52,!1));this.Zf=_.Qjc(this.Vc,this.Ba,this.connectionState,this.wa,this.jY.promise,this.Lw);this.xta=new lwc(this.Zf);this.CQ=new _.$h;this.log("Enabled experiments: "+this.mk().W.W);hJc(this)};_.J(UK,_.yi);UK.prototype.getEnvironment=function(){return this.Lw};UK.prototype.LS=function(){this.Be().info("drive.ds.sync.ThinContext","Notified of page stable.");_.aa.clearTimeout(this.ob);this.jY.resolve()};
var hJc=function(a){var b=function(){a.Su().then(null,_.eg)},c=a.Aa;(c=c&&_.Lc(c,_.Il))?_.ti(c,"w",b):_.Zfc()||_.ti(_.aa,"unload",b)};UK.prototype.Su=function(){this.Zf.O(106005);$rc(this.Zf);var a=this.ma.map(function(b){return b()});_.ra(this.ma);return Promise.all(a).then()};var iJc=function(a,b){a.ma.push(b)};_.g=UK.prototype;_.g.Be=function(){return this.wa};_.g.oz=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.C_.callback(a),a.length&&this.F6a(a,b||null))};
_.g.F6a=function(){};_.g.yu=function(){return this.rootId};_.g.mk=function(){return this.Zf};var jJc=function(a){if(!a.ha)throw Error("Hg");return a.ha},kJc=function(a,b){a.ha=b};UK.prototype.NB=function(){return this.Ga||this.connectionState.isConnected()};UK.prototype.Jj=function(){return this.Ba};UK.prototype.wk=function(){return this.connectionState};UK.prototype.pQb=function(a){this.CQ.callback(a)};
var gJc=function(a){var b=a.Vc.Uf();0===_.me(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.u(b,19,3));if(!_.z(b,37,""))throw Error("Ig");_.y(b,57)||(a.log("No root URI provided; using prod default."),_.u(b,57,"https://clients6.google.com"));if(_.P(_.ZK(a.Vc),9,!1))if(b=_.zb(_.ZK(a.Vc),WK,11),0<b.length){if(!_.y(b[0],1)||!b[0].getKey()&&!_.WJ(a.Vc)&&!_.P(a.Vc,10,!1))throw Error("Jg");}else _.u(_.ZK(a.Vc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.P(_.ZK(a.Vc),9,!1)&&(_.WJ(a.Vc)||_.P(a.Vc,10,!1)))throw Error("Kg");var c=_.fI(a.Vc);b=!(!c||!_.KI(c));c=c&&_.UJ(c)||"";if(!b&&!c)throw Error("Lg");b&&_.uj(a.Vc,44);_.zb(a.Vc,_.zf,44).forEach(function(d){try{Dvc(a.Am,d)}catch(e){if(e instanceof _.Rc&&(d=e.ug)&&3===d.Dv())throw Error("Mg");throw e;}})};UK.prototype.yJ=function(a){this.dispatchEvent(new _.Sc(new _.Rc(void 0,a)))};UK.prototype.log=function(a){this.Be().info("drive.ds.sync.ThinContext",a)};
var lJc=function(a,b){this.H=a;this.Oe=b};
var mJc=new Set([5,4,1,6,2]),nJc=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),oJc=function(a,b,c){_.yi.call(this);this.ha=a;this.V=b;this.W=c;this.aG=new Map;this.O=new Map;this.status=6;this.H=null};_.J(oJc,_.yi);
oJc.prototype.DQ=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(_.bc(f.values())).forEach(function(q){return void c.push(q)})}if(c.length){var h=mJc.has(b),k=new Map;c.forEach(function(q){k.set(q,new Map)});a.forEach(function(q){var r=q.getKey(),v=r&&_.y(r,2);r=k.get(r&&_.So(r));v&&r&&r.set(v,pJc(q))});var l=0,p=0;[].concat(_.bc(k.keys())).forEach(function(q){var r=k.get(q),v=e.aG.get(q);v?h&&(r.forEach(function(w){var A=
w.getKey();(A=v.get(A&&_.y(A,2)))&&_.Cj(w,A)||l++}),[].concat(_.bc(v.values())).forEach(function(w){w=w.getKey();r.has(_.y(w,2))||p++}),e.aG.set(q,r),e.O.set(q,b)):(l+=r.size,e.aG.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,NL(this.V,"px2C2c");NL(this.V,"rkYxSd")}(l||p)&&qJc(this,!h)}};oJc.prototype.mH=function(){return 0<this.aG.size};
var qJc=function(a,b){b||a.H||(a.H=_.aa.setTimeout(function(){_.aa.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.pi("WPi0i"))};oJc.prototype.put=function(a){var b=a.getKey(),c=b&&_.So(b);b=b&&_.y(b,2);if(c&&b&&(c=this.aG.get(c))){var d=c.get(b);a=pJc(a);d&&_.Cj(a,d)||(c.set(b,a),qJc(this))}};oJc.prototype.remove=function(a){var b=a&&_.So(a);a=a&&_.y(a,2);b&&a&&(b=this.aG.get(b))&&b.delete(a)&&qJc(this)};
var VIc=function(a,b){var c=[];(b||[].concat(_.bc(a.aG.keys()))).forEach(function(e){(e=a.aG.get(e))&&[].concat(_.bc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.aG.has(e)}):[].concat(_.bc(a.aG.keys()));var d=new Esc;_.tj(d,1,c);_.rj(d,2,b);return d};
oJc.prototype.fH=function(a){var b=this,c=VIc(this,a),d=new _.aA;d.Cc(this.status);_.Mjb(d,_.zb(c,_.Ro,1));_.F(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);nJc.has(f)&&Infinity>nJc.get(f)&&(e=f)});return new lJc(d,e)};var pJc=function(a){a=a.clone();a.Ng()||a.Hb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var rJc=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},tJc=function(a,b){return sJc(a[b])+(sJc(a[b+1])<<8)+(sJc(a[b+2])<<16)+(sJc(a[b+3])<<24)},sJc=function(a){return 127<a?a-256:a};
var VK=function(a,b,c,d,e,f){UK.call(this,a,b,c,d);var h=this;this.Ta=_.Yh();this.Bt=new TL;this.W=null;this.O=_.Yh();this.Ia=new _.$h;this.V6=null;this.hga=new hyc;this.V=null;this.$a=_.Yh();this.ta=new _.$h;this.kG=new Nyc;this.zx=new ryc;this.Kha=new oyc;this.Laa=new _.kn;this.La=!1;this.gga=new _.kn;this.H={};this.ka=null;this.Jb=new _.kf;this.Ja(this.Jb);this.Oj=e?e:new Rwc(this.Be());this.mk().W.O=this.Oj;this.TL=_.P(_.ZK(b),9,!1)&&dpc()?uJc(this,b):null;this.Rv=new uvc(XK(_.fI(b)));this.OD=
vJc(this,this.TL);this.WQ=wJc(this,this.TL,b);this.Df=new zM(this,this.Dg);this.Vs=xJc(this);(a=(a=_.x(this.Vc,_.Kk,12))&&a.getId())&&this.oz(a,6);this.uQ=new XCc(this.Vc,this.Df.Jq,this.Oj,this.Be(),this.Vs);this.D_=new cDc(this.Be(),this.Oj,this.Vs);this.CE=new oJc(this.Be(),this.Oj,this.Vs);this.KI=new dwc(this.Km(),this.Be(),function(k){return void h.yJ(k)});this.Az=_.P(this.Vc.Uf(),52,!1)?new _.rK(this.wk(),this.Km(),this.Be(),this.mk()):null;ML(this.Oj,["mrK8ic"],function(){h.$a.promise.then(function(){JDc(h,
h.V)})});this.hOa=new Jyc(this.Vc);this.hB=new _.rkc(this.Vc,this.Df.$l);this.yta=new MFc(this);this.U6=new lyc(this.O.promise,this.Km());this.kb=new pyc(this.Km(),this.U6);this.iga=new Fyc(this.O.promise,this.Km(),this.Be(),this.Vc);this.Pa=new RIc(this.Vc,this.Df,this.yJ.bind(this),this.U6,this.kb,this.Vs,this.hga,this.Dg,this.yu.bind(this),this.yta,this.D_,this.CE,this.iga,this.kG,this.Be(),this.hOa,this.hB,this.KI,this.Az,this.Jj(),this.krb.bind(this),this.mk(),f);this.Ta.resolve(this.Pa);this.fLa=
new wFc(this);ML(this.Oj,["BNEDtc"],function(){return h.gga.resolve()});iJc(this,function(){h.Vs.RS();return _.Vh()})};_.J(VK,UK);
var uJc=function(a,b){var c=_.UJ(_.fI(b)),d=_.VJ(b),e=function(){},f=_.zb(_.ZK(b),WK,11);f=f[0]&&_.y(f[0],1);var h=new yzc(c,d,_.Dj(_.ZK(b),10,0)||0,f||"",_.aK(a.Dg));_.WJ(b)?c=Tzc(c,d).then(function(l){return l?l:h}):_.P(b,10,!1)&&0<_.Dj(_.ZK(b),8,432E6)?(b=yJc(a,c),c=Tzc(c,d,b).then(function(l){return l&&(e=function(p){return p.Jl(h).then(null,_.eg)},!l.ha)?l:h})):c=_.Vh(h);var k=new cM(c,a.Be(),a.mk());k.initialize().then(function(){return e(k)},function(){return null});return k},yJc=function(a,
b){var c=_.Dj(_.ZK(a.Vc),8,432E6);if(!_.WJ(a.Vc)&&0<c){a=Math;var d=a.abs;b=_.Lma(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+=tJc(b,e),h.b+=tJc(b,e+4),h.c+=tJc(b,e+8),rJc(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+=tJc(b,e+4);h.a+=tJc(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+=tJc(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=rJc(h);return d.call(a,b)%c}};VK.prototype.lz=function(a){var b=this;return this.TL?this.TL.Hf()?_.Wh(Error("Ng`"+Fzc(this.TL))):fAc(this.OD).then(function(c){var d=b.TL,e=[];e.push(b.Vs.KYa());e.push(a?d.Jl():Pzc(d));if(a===c)return _.Xh(e).then(function(){return!1});!1===a&&(e.push(Ezc(d)),(c=b.yu())&&e.push(b.OD.oz(c)));return _.Xh(e).then(function(){return b.OD.lz(a)},function(){return!1})}):_.Wh(Error("Og"))};
var wJc=function(a,b,c){var d=null;b&&(d=new Xyc(b,c,function(e){a.yJ(e)},a.mk()),d.initialize());return d},vJc=function(a,b){var c=new eAc(b||void 0);c.yu().then(function(d){d&&a.oz(d,5)});b&&(fAc(c).then(function(d){a.Jj().lz(d)}),_.Xh([b.initialize(),a.jY.promise]).then(function(){zJc(a,c)},function(){}));return c},zJc=function(a,b){iAc(b).then(function(c){(!c||c<Date.now()-864E5)&&Wzc(_.UJ(_.fI(a.Vc)),_.VJ(a.Vc),a.Be()).then(function(d){d&&(d=Date.now(),b.set(cAc,d))},function(){})})},xJc=function(a){if(!a.WQ)return new fJc;
var b=new SIc(a,a.Dg);a.Jb.listen(a.Jj(),"ub",function(c){return void b.setActive(!c.Me())});a.Jb.listen(a.wk(),[].concat(_.bc(Object.values(_.XB))),function(){return void b.setActive(a.wk().isConnected())});return b};VK.prototype.VY=function(a){this.V6=a;this.Ia.callback(a)};var wM=function(a){return a.Ia.ln()},NCc=function(a){return a.TL?a.TL.Hf():null},AJc=function(a,b){a.Oj.H("NSockf")?NL(a.Oj,b):ML(a.Oj,["NSockf"],function(){NL(a.Oj,b)})};
VK.prototype.F6a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.Bt.oz(a),this.Am.oz(a),6!==b&&1!==b||this.OD.oz(a),AJc(this,"jroI5d"))};VK.prototype.LXa=function(){return this.ta.ln()};var JDc=function(a,b,c){0>b||((void 0===c?0:c)?a.V?a.V=Math.max(a.V,b):(a.V=b,a.$a.resolve()):a.ta.Xf()||(a.ta.callback(b),AJc(a,"T8oKm")))},hDc=function(a){if(!a.W)throw Error("Pg");return a.W};_.g=VK.prototype;_.g.IR=function(){return this.Pa};_.g.Km=function(){return this.Ta.promise.then(function(a){return a.rpa.promise})};
_.g.lFa=function(){this.La||(this.La=!0,this.Laa.resolve(),NL(this.Oj,"aU7Ts"))};_.g.NB=function(){throw Error("Qg");};_.g.krb=function(a){this.dispatchEvent(a)};var BJc=function(a,b){cFc(a.Df,b)},CJc=function(a,b,c){a.H[b]=c},GCc=function(a){a.ka||(a.ka=new wyc(a.O.promise,a.Km(),a.Be()));return a.ka};
var DM=function(a,b,c){_.yi.call(this);var d=this;this.Ga=a;this.logName=b;this.wa=_.Yh();this.Ba=this.channel=this.clientId=null;c.then(function(e){return DJc(d,e)})};_.J(DM,_.yi);var DJc=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.Ba=b.H;CL(a.channel,a.Ga,function(c){c=Tvc(c);a.saa(c.O,!(!c.data||!c.H),c.data,c.error)});a.log("Service initialized: "+a.Ga);a.wa.resolve()};DM.prototype.saa=function(){};
DM.prototype.send=function(a,b,c,d){var e=this,f=_.Yh();this.wa.promise.then(function(){var h=e.channel;DL(h,e.Ga,Pvc(new Ovc(e.clientId,a,b,d),h.W),function(k){return void EJc(k,a,f,c||function(){})})});return f.promise};var EJc=function(a,b,c,d){a=Tvc(a);a.data?c.resolve(d(a.data,a.H)):(a.error?d=a.error:(d=new _.Pc,_.tI(d,2),_.uI(d,6),_.u(d,21,"Worker["+b+"]: An invalid response was received")),c.reject(new _.Rc(void 0,d)))};DM.prototype.log=function(a){this.Ba&&this.Ba.info(this.logName,a)};
var FJc=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var EM=function(a,b){_.L.call(this);this.V=a;this.wa=b;this.La=this.sV()};_.J(EM,_.L);EM.prototype.registerService=function(a){var b=this;CL(a,this.V,function(c){return b.bx(c)})};
EM.prototype.bx=function(a){var b=this;a=Qvc(a);var c=a.H,d=this.La[a.method],e=null;if(d)try{var f=d(a);if(f instanceof Rvc)return Svc(f,c);if(f.then)return f.then(function(h){return Svc(h,c)},function(h){h=_.vI(h);return Svc(b.Yc(void 0,h),c)})}catch(h){e=_.NI(h)}f=new _.Pc;_.tI(f,2);_.uI(f,3);_.Sp(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.u(f,20,e.stack);return Svc(this.Yc(void 0,f),c)};
EM.prototype.Yc=function(a,b,c){if(a&&!b)return new Rvc(a,void 0,c);a=_.vI(b);return new Rvc(void 0,a,c)};EM.prototype.update=function(a,b,c,d){(a=this.wa.channels[a]||null)&&DL(a,this.V,Svc(this.Yc(c,d,b),a.W))};
var GJc=function(){this.channels={};this.H=this.O=this.V=0},HJc=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.Va(a.channels));return c},IJc=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var JJc=function(a,b){EM.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.Df;this.O=this.context.iga;this.W=GCc(this.context);this.ka=this.context.U6};_.J(JJc,EM);
JJc.prototype.sV=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.zf);return a.Zh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.RH);return a.Zh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.XF);return a.Zh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.bG);return a.Zh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=SK(c.args[0],!!c.H,_.zf);return a.ek(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.RH);return a.ek(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.XF);return a.ek(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.bG);return a.ek(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=SK(c.args[0],!!c.H,_.XF);c=SK(c.args[1],!!c.H,_.XF);return a.EZ(d,e,c)},b["4.6"]=function(c){var d=c.clientId+
":"+c.requestId,e=SK(c.args[0],!!c.H,_.bG);c=SK(c.args[1],!!c.H,_.bG);return a.EZ(d,e,c)},b["4.7"]=function(c){return a.$F(c)},b["4.8"]=function(c){return a.$F(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.eA);return a.Zh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.cG);return a.Zh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.eA);return a.ek(d,c)},b["4.16"]=function(c){var d=c.clientId+
":"+c.requestId;c=SK(c.args[0],!!c.H,_.cG);return a.ek(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.jG);return a.Zh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.jG);return a.ek(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.cA);return a.Zh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=SK(c.args[0],!!c.H,_.cA);return a.ek(d,c)},b["4.21"]=function(c){c=a.H[c.clientId+":"+
c.requestId].query;if(c instanceof _.cA){var d=a.W;fyc(d,d.getKey(c)).refresh()}return a.Yc([])},b};JJc.prototype.Zh=function(a,b){var c=this,d=new _.kn;this.H[a]={query:b,DVb:d.promise};b instanceof _.eA?d.resolve(this.O.Zh(a,b)):b instanceof _.cG?d.resolve(dyc(this.O,a,b)):b instanceof _.cA?d.resolve(this.W.Zh(a,b)):b instanceof _.jG?d.resolve(this.ka.Zh(a,b)):d.resolve(this.ha.Zh(a,b));return d.promise.then(function(){return c.Yc([])})};JJc.prototype.ek=function(a,b){KJc(this,a,b);return this.Yc([])};
var KJc=function(a,b,c){delete a.H[b];c instanceof _.eA?a.O.ek(b,c):c instanceof _.cG?eyc(a.O,b,c):c instanceof _.cA?a.W.ek(b,c):c instanceof _.jG?a.ka.ek(b,c):a.ha.ek(b,c)};_.g=JJc.prototype;_.g.EZ=function(a,b,c){KJc(this,a,b);return this.Zh(a,c)};_.g.$F=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.Gi(a.args[0]);c instanceof _.eA?this.O.Zh(b,c):c instanceof _.cG?dyc(this.O,b,c):c instanceof _.cA?this.W.Zh(b,c):c instanceof _.jG?this.ka.Zh(b,c):this.ha.Zh(b,c);return this.Yc([])};
_.g.GO=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.nh(a[0]),f=a[1];d.DVb.then(function(h){b instanceof _.pK||b instanceof _.mK?c.update(e,f,[b.response,b.pageToken,b.H,b.Oe,h]):(d.query instanceof _.zf?jnc(d.query.H(),b.zd().filter(function(k){return!yL(k)})):d.query instanceof _.XF&&jnc(d.query.H(),Object.values(b.kt()).filter(function(k){return k&&!yL(k)})),c.update(e,f,[b,h]))})}};
_.g.vY=function(a,b){if(this.H[a]){var c=a.split(":");a=_.nh(c[0]);c=c[1];var d=b.error;d.ega(b.retryCount);this.update(a,c,void 0,d)}};_.g.GA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.nh(a[0]),a[1],["cacheRefresh"]))};_.g.N9=function(){};_.g.qla=function(a){if(!this.H[a])throw Error("rg`"+a);return this.H[a].query};var LJc=function(a,b){_.Ra(a.H,function(c,d){_.nh(d.split(":")[0])===b&&KJc(a,d,c.query)})};
var MJc=function(a,b,c){DM.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.J(MJc,DM);MJc.prototype.dya=function(a){var b=this;a=new sCc(this.context.Am,this.context.CQ,this.context.Be(),this.context.Vc,function(c,d){return b.$F(c,d)},a,this.context.mk());NJc(this,a);return a};MJc.prototype.gya=function(a){var b=this;a=new wCc(this.context.Am,this.context.CQ,this.context.Be(),function(c,d){return b.$F(c,d)},a,this.context.Vc);NJc(this,a);return a};
var NJc=function(a,b){a.Zh(b);_.af(b,function(){a.ek(b);a.send("4.3",[b.hd()],void 0,b.Oi())});a.send("4.1",[b.hd()],void 0,b.Oi())};_.g=MJc.prototype;_.g.aya=function(a){var b=this,c=new Fsc(this.context.Vc,this.context.Am,this.context.Be(),this.context.C_,this.EZ.bind(this),a);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.4",[c.hd()],void 0,c.Oi())});this.send("4.2",[c.hd()],void 0,c.Oi());return c};
_.g.jya=function(a){var b=this,c=new ACc(this.context.Be(),a,this,this.context.Vc);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.11",[c.hd()],void 0,c.Oi())});this.send("4.9",[c.hd()],void 0,c.Oi());return c};_.g.kya=function(a){var b=this,c=new BCc(this.context,this,a);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.12",[c.hd()],void 0,c.Oi())});this.send("4.10",[c.hd()],void 0,c.Oi());return c};
_.g.nya=function(a){var b=this,c=new ECc(this.context,a,this);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.15",[c.hd()],void 0,c.Oi())});this.send("4.13",[c.hd()],void 0,c.Oi());return c};_.g.oya=function(a){var b=this,c=new vCc(this.context.Be(),a);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.16",[c.hd()],void 0,c.Oi())});this.send("4.14",[c.hd()],void 0,c.Oi());return c};
_.g.hya=function(a){var b=this,c=new zCc(this.context,a,function(){b.send("4.21",[],void 0,c.Oi())});this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.23",[c.hd()],void 0,c.Oi())});this.send("4.22",[c.hd()],void 0,c.Oi());return c};_.g.Xxa=function(a){var b=this,c=new qCc(this.context.Jj(),this.context.wk(),this.context.Be(),function(d,e){return b.$F(d,e)},a);this.Zh(c);_.af(c,function(){b.ek(c);b.send("4.19",[c.hd()],void 0,c.Oi())});this.send("4.18",[c.hd()],void 0,c.Oi());return c};
_.g.Zh=function(a){this.H.create(a.Oi(),a.hd());this.O[a.Oi()]=a};_.g.ek=function(a){GL(this.H,a.Oi(),4);delete this.O[a.Oi()]};_.g.EZ=function(a,b,c){if(b instanceof _.XF&&c instanceof _.XF)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.bG&&c instanceof _.bG)this.send("4.6",[b,c],void 0,a);else throw Error("Rg");};
_.g.$F=function(a,b){if(!this.O[a])throw Error("rg`"+a);var c=this.O[a];if(c.hd()instanceof _.zf)var d="4.7";else if(c.hd()instanceof _.RH)d="4.8";else if(c.hd()instanceof _.jG)d="4.20";else if(c.hd()instanceof _.eA)d="4.17";else throw Error("Sg");c.hd().Gi(b);this.send(d,[b],void 0,a)};
_.g.saa=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)a.IB(new WL(d,d.G6())),GL(this.H,a.Oi(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.QW();return}var h=a.hd();if(h instanceof _.zf||h instanceof _.RH)h instanceof _.zf&&_.kJ(h)?e=SK(d,b,_.jK):e=SK(d,b,_.eI);else if(h instanceof _.XF||h instanceof _.bG)b?(e=new _.iK,xsc(e,function(k){return new _.Kk(JSON.parse(k))},d)):e=d;else if(h instanceof _.jG)e=new _.mK(SK(d,b,JL),c[f++],c[f++],c[f++]);else if(h instanceof _.eA)e=new _.pK(SK(d,
b,LL),c[f++],c[f++],c[f++]);else if(h instanceof _.cG)e=SK(d,b,_.kK);else if(h instanceof _.cA)e=SK(d,b,wL);else throw Error("Tg");}e&&(b=f,c&&"boolean"===typeof c[b]&&mwc(this.H,a.Oi(),!!c[b]),pwc(this.H,a.Oi(),e),a.update(e))}};
var FM=function(){_.yi.apply(this,arguments);this.commands=new _.Tk;this.ha=this.active=this.mp=!1};_.J(FM,_.yi);FM.prototype.initialize=function(){this.mp||(this.mp=!0,this.V(),this.setActive(!0))};FM.prototype.V=function(){};FM.prototype.setActive=function(a){this.active=a;OJc(this)};var OJc=function(a){if(a.active&&!a.ha){var b=_.Uk(a.commands);if(b)if(a.wa()){do a.ka(b);while(b=_.Uk(a.commands))}else{a.ha=!0;var c=function(){a.ha=!1;OJc(a)};a.Ba(b).then(c,c)}}};FM.prototype.ka=function(){};
FM.prototype.Ba=function(){};FM.prototype.wa=function(){return!0};FM.prototype.enqueue=function(a){try{var b=new _.$h;this.commands.enqueue(new PJc(a,b));OJc(this);return b}catch(c){return _.hi(_.NI(c))}};var PJc=function(a,b){this.H=a;this.Ee=b};PJc.prototype.getCommand=function(){return this.H};
var SJc=function(a){FM.call(this);var b=this;this.context=a;this.H=null;this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.context,"VMiG2e",function(){return void QJc(b)});this.O=this.context.Df.Jq;_.mI(this.context.Vc)&&this.Nc.listen(this.O,"yb",this.W);var c=a.Oj;ML(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.pj(a.Vc.Uf(),17,1)&&(d.push("iuEtc"),ML(c,["mrK8ic"],function(){NL(c,"iuEtc")}));ML(c,d,function(){RJc(b)})};_.J(SJc,FM);SJc.prototype.V=function(){TJc(this)};
var RJc=function(a){if(1===a.context.uQ.Ff().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);_.u(c,21,"Initial account request failed.");a.context.yJ(c)})}},QJc=function(a){var b=_.Mf(new _.Lf,304);b=_.QH(new _.PH,b);a.refresh(b).then(null,function(){})};
SJc.prototype.refresh=function(a,b){var c=this;this.H||(this.H=this.context.Km().then(function(d){return d.Pe(a,b)}).then(function(d){var e=d.Ff(),f=e.getUser();if(f&&!1===_.yk(f))d=_.wI(_.fI(c.context.Vc)),d=Error("Ug`"+d+"`"+KK(f)),_.Jb(d),_.qK(c.context.mk(),73301807),d=Promise.reject(d);else{f=c.context.uQ;var h=0===f.Xe()?1:6;_.mI(c.context.Vc)&&Jxc(c.O,e);h=ZCc(f,e,h);(e=e.getMetadata())&&c.context.oz(_.y(e,2),1);(d=_.y(d,4))&&JDc(c.context,d,!0);h&&c.dispatchEvent(new _.pi("WPi0i"));d=Promise.resolve(new _.oK(f.Ff(),
f.Xe(),!1))}return d}).then(function(d){return d},function(d){d=_.vI(d);_.u(d,5,1);return Promise.reject(new _.Rc("Error fetching account from server.",d))}),this.H.then(function(){c.H=null},function(){c.H=null}));return this.H};
SJc.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.WD&&(c.WD=b.WD);this.refresh(b.request,c).then(function(e){return a.Ee.callback(e)},function(e){a.Ee.Hd(e)})}else if(b=this.context.uQ,c=b.Ff(),_.mI(this.context.Vc)){c=c.Ff();var d=c.getUser();d=vxc(this.O.H,KK(d));Jxc(this.O,c);ZCc(b,c,b.Xe())&&this.dispatchEvent(new _.pi("WPi0i"));a.Ee.callback(new _.oK(b.Ff(),b.Xe(),d))}else c.Cb(),b=new _.oK(c,b.Xe(),!0),a.Ee.callback(b)};
var TJc=function(a){var b=a.context.Vc.Uf();_.aa.setTimeout(function(){var c=_.Mf(new _.Lf,306);c=_.QH(new _.PH,c);a.refresh(c).then(function(){TJc(a)},function(){TJc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,3,72E5))};SJc.prototype.W=function(a){var b=this.context.uQ,c=b.Ff().Ff();c&&a.getPeople().find(function(d){return _.y(d,1)===KK(c.getUser())})&&(Jxc(this.O,c),ZCc(b,c,b.Xe())&&this.dispatchEvent(new _.pi("WPi0i")))};var UJc=function(a,b,c){this.request=a;this.H=!!b;this.WD=c||null};
var WJc=function(a){FM.call(this);this.context=a;this.ta=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.context.D_,"Kb",_.gb(this.dispatchEvent,new _.pi("Kb",this)));VJc(this)};_.J(WJc,FM);
var VJc=function(a){var b=a.context.Oj;ML(b,["nVUlO"],function(){a.ta=!0;a.setActive(!0)});if(!_.WJ(a.context.Vc)){var c=_.pj(a.context.Vc.Uf(),18,1);ML(b,["NSockf"],function(){1===c?XJc(a):a.setActive(!0)});2===c&&ML(b,["mrK8ic"],function(){a.W||XJc(a)})}},XJc=function(a){var b=new _.Lf;_.Nf(b,!0);_.Mf(b,301);var c=new _.oJ;_.Prc(c,b);_.u(c,1,1);a.refresh(c).then(null,function(){return null})};
WJc.prototype.refresh=function(a,b){var c=this;_.aa.clearTimeout(this.ma);this.ma=0;var d=_.Yh();this.O=d.promise;this.O.then(function(){YJc(c)},function(){YJc(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.oJ;_.u(h,1,this.H);_.Prc(h,a.se());this.context.Km().then(function(k){return k.Pe(h,b)}).then(function(k){c.error=null;var l=c.context.D_;l.DQ(k,l.mH()?6:1);d.resolve()},function(k){c.H=e;k=_.Vc(k);var l=k.ug;_.u(l,5,2);f?(_.tI(l,1),k.message="Initial app settings refresh failed.",
_.u(k.ug,21,"Initial app settings refresh failed."),c.context.yJ(l),c.setActive(!0)):(_.tI(l,2),k.message="Error occurred while loading the latest set of apps.",_.u(k.ug,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};WJc.prototype.wa=function(){return!1};
WJc.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.hka,f=c.WD?{WD:c.WD}:void 0;if(!ZJc(d))return this.context.Km().then(function(l){return l.Pe(d,f)}).then(function(l){a.Ee.callback(new _.lK(l,1,!1))},function(l){a.Ee.Hd(_.NI(l))}),_.Vh(void 0);c=_.Vh();var h=!1;this.O?$Jc(this,d.getType())?e=this.O:c=e=new _.Sh(function(l,p){b.O.then(function(){b.refresh(d,f).then(function(){return l()},p)})}):!e&&this.ta&&$Jc(this,d.getType())&&!this.error?(h=!0,e=_.Vh()):e=this.refresh(d,
f);var k=a.Ee;e.then(function(){var l=b.context.D_;k.callback(new _.lK(l.ks(),l.Xe(),h))},function(l){k.Hd(l)});return c.then()};
var ZJc=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.me(a,4),a=_.me(a,3),!(b&&b.length)&&!(a&&a.length)):!1},$Jc=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},YJc=function(a){a.O=null;var b=a.context.Vc.Uf(),c=new _.Lf;_.Mf(c,306);var d=new _.oJ;_.u(d,1,1);_.Prc(d,c);a.ma=_.aa.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,4,72E5))},aKc=function(a,b,c){this.V=a;this.H=!!b;this.O=c||null};
_.Qf.Object.defineProperties(aKc.prototype,{request:{configurable:!0,enumerable:!0,get:function(){return this.V}},hka:{configurable:!0,enumerable:!0,get:function(){return this.H}},WD:{configurable:!0,enumerable:!0,get:function(){return this.O}}});
var cKc=function(a){FM.call(this);var b=this;this.context=a;this.error=null;this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.context.CE,"WPi0i",function(){return b.dispatchEvent(new _.pi("WPi0i"))});this.H=_.Yh();this.O=_.me(this.context.Vc.Uf(),30);bKc(this)};_.J(cKc,FM);
var bKc=function(a){var b=a.context.Oj;ML(b,["rkYxSd"],function(){return a.initialize()});ML(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=_.pj(a.context.Vc.Uf(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&ML(b,["mrK8ic"],function(){NL(b,"OZvrNc")}));!_.P(a.context.Vc,11,!1)&&_.P(a.context.Vc,24,!1)&&(c.push("DEJoH"),_.aa.setTimeout(function(){0<_.zb(VIc(a.context.CE),_.Ro,1).length||(b.H("NSockf")?
NL(b,"DEJoH"):ML(b,["NSockf"],function(){NL(b,"DEJoH")}))},12E3));ML(b,c,function(){if(!b.H("px2C2c")){var e=new _.Lf;_.Nf(e,!0);_.Mf(e,301);var f=new _.oD;_.F(f,1,e);yoc(f,dKc(a));a.query(f).then(null,function(){a.initialize()})}})};cKc.prototype.V=function(){var a="User prefs detected: "+_.zb(VIc(this.context.CE),_.Ro,1).length;this.context.Be().info("drive.ds.sync.userprefs.UserPrefsManager",a);eKc(this)};
cKc.prototype.query=function(a,b){var c=this,d=b?{WD:b}:void 0;return this.context.Km().then(function(e){return e.Pe(a,d)}).then(function(e){c.error=null;var f=c.context.CE;f.DQ(_.zb(e,_.Ro,3),f.mH()?6:1,_.me(a,3))}).then(null,function(e){e=_.Vc(e);_.u(e.ug,5,4);0<c.commands.$b()||c.context.yJ(e.ug);c.error=e;throw e;})};
cKc.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.Ee,e=new Set([].concat(_.bc(this.context.CE.aG.keys()))),f=_.me(c.request,3);f.find(function(h){return!e.has(h)})&&(c.hka=!0);this.error?d.Hd(this.error):c.hka?(yoc(c.request,dKc(this,f)),(this.H?this.H.promise:this.query(c.request,c.WD||void 0)).then(function(){b.getData(d,f,!1)},function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};
var dKc=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.bc(a.O),_.bc([].concat(_.bc(a.context.CE.aG.keys()))),_.bc(b)));return[].concat(_.bc(a.values()))};cKc.prototype.getData=function(a,b,c){b=this.context.CE.fH(b);a.callback(new _.nK(b.H,b.Oe,c))};
var eKc=function(a){var b=a.context.Vc.Uf();_.aa.setTimeout(function(){var c=new _.oD,d=new _.Lf;_.Mf(d,306);_.F(c,1,d);yoc(c,dKc(a));a.query(c).then(null,_.eg).then(function(){eKc(a)},function(){eKc(a)})},Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,5,72E5))},fKc=function(a,b,c){this.request=a;this.hka=!!b;this.WD=c||null};
var gKc=function(a,b,c,d){EM.call(this,"IS",b);this.context=a;this.Nc=new _.kf(this);this.Ba=_.Yh();this.O=null;this.ha=!1;this.W=null;this.Ga=new MCc(a);xoc(this.Ga);this.Ja(this.Nc);this.ka=new SJc(a);this.Ja(this.ka);this.Nc.listen(this.ka,"WPi0i",function(){return c(new mCc(1))});this.ma=new WJc(a);this.Ja(this.ma);this.Nc.listen(this.ma,"Kb",function(){return c(new mCc(2))});this.ta=new cKc(a);this.Ja(this.ta);this.Nc.listen(this.ta,"WPi0i",function(){return c(new mCc(4))});this.Ia=d;this.H=
this.context.Km()};_.J(gKc,EM);_.g=gKc.prototype;
_.g.sV=function(){var a={};return a["3.43"]=this.l0.bind(this),a["3.42"]=this.v8.bind(this),a["3.1"]=this.BN.bind(this),a["3.2"]=this.fH.bind(this),a["3.3"]=this.ad.bind(this),a["3.35"]=this.gO.bind(this),a["3.4"]=this.RC.bind(this),a["3.5"]=this.ks.bind(this),a["3.6"]=this.IS.bind(this),a["3.8"]=this.Jl.bind(this),a["3.36"]=this.lz.bind(this),a["3.9"]=this.FF.bind(this),a["3.10"]=this.yr.bind(this),a["3.11"]=this.Qaa.bind(this),a["3.12"]=this.b9.bind(this),a["3.13"]=this.KT.bind(this),a["3.14"]=
this.Oaa.bind(this),a["3.15"]=this.d9.bind(this),a["3.16"]=this.xu.bind(this),a["3.17"]=this.GFb.bind(this),a["3.18"]=this.KFb.bind(this),a["3.19"]=this.JQ.bind(this),a["3.20"]=this.IFb.bind(this),a["3.25"]=this.HFb.bind(this),a["3.22"]=this.c9.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.Foa.bind(this),a["3.29"]=this.Kzb.bind(this),a["3.40"]=this.MFb.bind(this),a["3.33"]=this.NFb.bind(this),a["3.39"]=this.sP.bind(this),a["3.37"]=this.LFb.bind(this),a["3.38"]=this.Xbb.bind(this),a["3.41"]=
this.LS.bind(this),a["3.44"]=this.N0.bind(this),a["3.45"]=this.Eo.bind(this),a["3.46"]=this.w8.bind(this),a};_.g.BN=function(a){var b=this,c=SK(a.args[0],!!a.H,_.PH);a=new UJc(c,a.args[1],this.context.H[a.clientId]);NL(this.context.Oj,"iuEtc");return this.ka.enqueue(a).then(function(d){return b.Yc([d.response,d.Oe,d.C0])},function(d){return b.Yc(void 0,d)})};
_.g.fH=function(a){var b=this,c=SK(a.args[0],!!a.H,_.oD);a=new fKc(c,a.args[1],this.context.H[a.clientId]);NL(this.context.Oj,"OZvrNc");return this.ta.enqueue(a).then(function(d){return b.Yc([d.response,d.Oe,d.C0])},function(d){return b.Yc(void 0,d)})};
_.g.ad=function(a){var b=this,c=SK(a.args[0],!!a.H,Unc),d=_.Gj(c,_.PI,16,PK)||_.Gj(c,_.QI,1,PK)||_.Gj(c,_.RI,2,PK)||_.Gj(c,_.UI,3,PK)||_.Gj(c,_.sK,4,PK)||_.Gj(c,_.SI,5,PK)||_.Gj(c,_.YI,6,PK)||_.Gj(c,_.$I,7,PK)||_.Gj(c,_.aJ,8,PK)||_.Gj(c,_.dJ,9,PK)||_.Gj(c,_.rJ,18,PK)||_.Gj(c,_.vJ,10,PK)||_.Gj(c,_.wJ,11,PK)||_.Gj(c,_.xJ,12,PK)||_.Gj(c,_.xI,13,PK)||_.Gj(c,_.AJ,14,PK)||_.Gj(c,_.BJ,15,PK)||_.Gj(c,QK,17,PK),e=GM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Yc([f])},
function(f){return b.Yc(void 0,f)})};_.g.gO=function(a){var b=this,c=SK(a.args[0],!!a.H,coc),d=_.Gj(c,_.VI,1,doc)||_.Gj(c,_.bJ,2,doc)||_.Gj(c,_.CJ,3,doc),e=GM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Yc([f])},function(f){return b.Yc(void 0,f)})};
_.g.RC=function(a){var b=this,c=SK(a.args[0],!!a.H,Xnc),d=GM(this,a),e=[],f=[];Znc(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.Pe(h,d)}))});a=_.jI(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.Zh(a,function(){return void uFc(b.context.Df)});return a.then(function(h){return b.Yc([new Jnc(e,h)])})};
_.g.ks=function(a){var b=this,c=SK(a.args[0],!!a.H,_.oJ),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=GM(this,a);a=this.H.then(function(f){return f.Pe(c,e)}).then(function(f){return new _.lK(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.lK(f.response,f.Oe,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new aKc(c,d,this.context.H[a.clientId]),NL(this.context.Oj,"Qubz4b"),a=this.ma.enqueue(a);return a.then(function(f){return b.Yc([f.response,f.Oe,f.C0])},function(f){return b.Yc(void 0,
f)})};_.g.IS=function(a){var b=this,c=SK(a.args[0],!!a.H,$nc),d=_.Gj(c,_.pD,1,aoc)||_.Gj(c,_.qD,2,aoc),e=GM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Yc([f])},function(f){return b.Yc(void 0,f)})};_.g.Jl=function(a){a=a.args[0];if(this.context.Az)a?_.ckc(this.context.Az,!0):this.context.wk().Me()&&this.context.Az.yM(!0).then(null,function(){});else try{this.context.Jj().Jl(a)}catch(b){return this.Yc(void 0,b)}return this.Yc([])};
_.g.lz=function(a){var b=this,c=a.args[0];return this.context.lz(c).then(function(d){return d?(b.context.Jj().lz(c),b.Ia(c),b.context.Vs.wL().then(null,function(){return!c})):_.Vh(!c)}).then(function(d){return b.Yc([d])},function(d){return b.Yc(void 0,d)})};_.g.sync=function(){var a=this;return _.Xh([this.context.Laa.promise,this.context.gga.promise]).then(function(){return a.context.Vs.wL()}).then(function(){return a.Yc([])},function(b){return a.Yc(void 0,b)})};
_.g.FF=function(){try{var a=this.context.V6;a&&a.lpa();this.context.Kha.FF();return this.Yc([])}catch(b){return this.Yc(void 0,b)}};_.g.LS=function(){this.context.LS();return this.Yc([])};_.g.yr=function(a){var b=this,c=SK(a.args[0],!!a.H,_.gJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.Qaa=function(a){var b=this,c=SK(a.args[0],!!a.H,_.hJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.b9=function(a){var b=this,c=SK(a.args[0],!!a.H,_.WI),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.KT=function(a){var b=this,c=SK(a.args[0],!!a.H,_.yJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.Oaa=function(a){var b=this,c=SK(a.args[0],!!a.H,_.iJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return _.mI(b.context.Vc)?Nxc(b.context.Df.Jq,[_.x(e,_.xk,2)],c.qc()).then(function(){return e}):e}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.d9=function(a){var b=this,c=SK(a.args[0],!!a.H,_.ZI),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.xu=function(a){var b=this,c=SK(a.args[0],!!a.H,_.qJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.mI(b.context.Vc)?Lxc(b.context.Df.Jq,f):f})}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.GFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.xAc),d=new _.$gc(c,a.args[1],a.args[2]||void 0),e=GM(this,a);return this.H.then(function(f){return f.Pe(d,e)}).then(function(f){return b.Yc([f])},function(f){return b.Yc(void 0,f)})};
_.g.KFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.pJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d).then(function(f){return _.mI(b.context.Vc)?Nxc(b.context.Df.Jq,f.Yc().oN(),c.hd().getId()).then(function(){return f}):f})}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.JQ=function(){var a=this;return(_.P(this.context.Vc.Uf(),52,!1)?_.Vh(bwc(new awc,0)):this.context.KI.JQ()).then(function(b){return a.Yc([b])},function(b){return a.Yc(void 0,b)})};
_.g.IFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.Zgc),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.HFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.nJ),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.c9=function(a){var b=this,c=SK(a.args[0],!!a.H,_.XI),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.Foa=function(a){var b=this,c=SK(a.args[0],!!a.H,_.DI),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e,null])},function(e){return b.Yc([null,_.vI(e)])})};_.g.Kzb=function(){return this.Yc([!0])};
_.g.MFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.aG),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.NFb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.cA),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.l0=function(a){a=SK(a.args[0],!!a.H,_.zf);GEc(this.context.Df,[a]);return this.Yc([])};
_.g.v8=function(a){var b=this,c=SK(a.args[0],!!a.H,_.TI),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.sP=function(a){var b=this,c=SK(a.args[0],!!a.H,_.mM),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return Xxc(c,e)}).then(function(e){return b.Yc(e)},function(e){return b.Yc(void 0,e)})};
_.g.LFb=function(a){var b=this,c=new _.ghc(SK(a.args[0],!!a.H,_.lVb),a.args[1]),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e.response,e.pageToken])},function(e){return b.Yc(void 0,e)})};_.g.Xbb=function(a){var b=this,c=SK(a.args[0],!!a.H,_.WF),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};
_.g.N0=function(a){var b=this,c=SK(a.args[0],!!a.H,_.fK),d=GM(this,a);return this.H.then(function(e){return e.Pe(c,d)}).then(function(e){return b.Yc([e])},function(e){return b.Yc(void 0,e)})};_.g.Eo=function(a){var b=a.args.map(function(c){return SK(c,!!a.H,_.qI)});this.context.Df.Eo(b);uFc(this.context.Df);return this.Yc([])};_.g.w8=function(){var a=this,b=this.context.Az;return(b?b.yM():_.Vh(_.Sjc(0))).then(function(c){return a.Yc([c])},function(c){return a.Yc(void 0,c)})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.Yh();this.context.Be().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Vc.Mi());this.Nc.listen(this.context,_.bd,function(e){e=e.error;var f=e.ug;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):Orc(a.context.Be(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.Oj,c=["hVFf7"];_.WJ(this.context.Vc)&&c.push("BNEDtc");ML(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});ML(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){wM(a.context).then(function(e){return void e.start()})};ML(b,["T8oKm","ZA9qG"],function(){return void d()});ML(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();NL(b,"NSockf")}return this.O.promise};_.g.cca=function(){return this.Ba.promise};_.g.Su=function(){var a=this.context.V6;a&&a.dispose();return this.context.Su()};
var GM=function(a,b){return(a=a.context.H[b.clientId])?{WD:a}:{}};
var hKc=function(a,b,c){EM.call(this,"DU",b);this.context=a;this.O=c;this.H=new MCc(a)};_.J(hKc,EM);_.g=hKc.prototype;
_.g.sV=function(){var a=this,b={};return b["5.1"]=function(){return a.Gia()},b["5.2"]=function(c){return a.XM(c)},b["5.4"]=function(c){return a.Xz(c)},b["5.5"]=function(){return a.JR()},b["5.10"]=function(){return a.vN()},b["5.6"]=function(){return a.Wda()},b["5.7"]=function(){return a.yT()},b["5.9"]=function(c){return a.Hqa(c)},b["5.8"]=function(c){return a.I5(c)},b["5.11"]=function(){return a.cqa()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Jl(c)},b};
_.g.Gia=function(){var a=this;this.context.Vs.RS();var b=this.context.Vc;return Xzc(_.UJ(_.fI(b)),_.VJ(b),this.context.Be()).then(null,function(){}).then(function(){return a.Yc([])})};_.g.XM=function(a){a=this.context.Df.$l.H(a.args[0]);return this.Yc([a])};_.g.Xz=function(a){var b=this;return this.context.hB.Xz(a.args[0]).then(function(c){return b.Yc([c])})};_.g.JR=function(){return this.Yc(this.context.hB.JR())};
_.g.I5=function(a){var b=this,c=SK(a.args[0],!!a.H,_.ufc),d=a.args[1],e=a.args[2];if(_.Gj(c,_.nI,3,_.oI)||_.Gj(c,_.EJ,4,_.oI)||_.Gj(c,_.sK,5,_.oI)||_.Gj(c,_.BJ,6,_.oI)||_.Gj(c,_.aJ,7,_.oI)||_.Gj(c,_.UI,8,_.oI)||_.Gj(c,_.YI,9,_.oI)||_.Gj(c,_.xI,10,_.oI)){var f=jwc(c);return this.context.Km().then(function(h){return h.Pe(f,{G8a:d,H8a:e})}).then(function(h){a:{var k=[],l="";if(h instanceof _.tK){k=h.Yc().zd();var p=_.y(h,2);l=h.$n()}else if(h instanceof _.GJ)h.getItem()&&k.push(h.getItem()),p=h.cN();
else{h=b.Yc(void 0,Error("tg"));break a}h=b.Yc([p,l].concat(_.bc(k)))}return h},function(h){return b.Yc(void 0,h)})}return _.Vh(this.Yc(void 0,Error("sg")))};_.g.Hqa=function(){var a=this.context.Vc,b=a.Uf();a="email:"+_.fI(a).getEmail().replace(/@.*$/,"");_.u(b,13,a);return this.Yc([])};_.g.Wda=function(){this.context.kG.H=new Myc(_.mh().substring(0,8));return this.Yc([])};
_.g.yT=function(){var a=this.context.kG.vN();if(a){var b=Oyc(this.context.kG);a=[a.H,a.startTime].concat(_.bc(b))}else a=[];b=this.context.kG;b.H=null;b.mZ=[];return this.Yc(a)};_.g.vN=function(){var a=this.context.kG.vN();return this.Yc(a?[a.H,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.wa).then(function(b){return a.Yc([b])})};_.g.cqa=function(){var a=[this.O.Su(),_.Di(3E4)];_.Zh(_.pka(a),function(){_.aa.setTimeout(function(){self.close()})});return this.Yc([])};
_.g.Jl=function(a){this.H.Jl(a.args[0]);return this.Yc([])};
var iKc=function(a,b,c,d,e,f,h){_.GK.call(this,a,b,c,d,f,h);this.H=e;this.Zf=null};_.J(iKc,_.GK);iKc.prototype.HM=function(a,b){var c=this;return _.gi(this.H.then(function(d){return d.S4a(anc(c.O,c.Ba,a,b,c.cj,c.ka))},null))};iKc.prototype.ta=function(a,b){var c=this.hd(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.Xz();e&&(d=_.y(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.xkc(a,b,d))}};
var jKc=function(a,b,c,d,e,f,h,k){EM.call(this,"FU",k);this.ka=a;this.ha=b;this.ta=c;this.Ba=d;this.W=e;this.ma=f;this.Zf=h;this.H={};this.O={};this.Nc=new _.kf(this);this.Ja(this.Nc)};_.J(jKc,EM);_.g=jKc.prototype;
_.g.sV=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.yG(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.HM(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.Yc([])},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.Yc([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=SK(a.args[0],!!a.H,_.UI),e=a.args[1];if(!this.H[c]){var f=new iKc(this.ka,this.ha,this.ta,this.Ba,this.W,this.ma,this.Zf);this.Nc.listen(f,"Fb",_.gb(this.Ybb,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.kj(),r=_.Yh();b.O[q]=r;b.update(l,p,kKc(3,q,[h,k]));return r.promise}).then(function(h){return b.Yc([h])},function(h){return b.Yc(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.Yc([])};_.g.yG=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].yG();return this.Yc([])};
_.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++]});_.Ra(k,function(p,q){p.hg(function(r){b.update(a.clientId,c,kKc(0,e,[q,r]))},function(r){b.update(a.clientId,c,kKc(1,e,[q,r.ug]))})});return this.Yc([])}return this.Yc(void 0,_.vI("Could not retry upload."))};
_.g.HM=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=anc(b.O,b.Ba,c,a,b.cj,b.ka),this.Yc([foc(c)])):this.Yc(void 0,_.vI("FileUploader not found."))};_.g.Ybb=function(a,b,c){this.update(a,b,kKc(2,c.requestId,[c.progress,c.totalBytes]))};var kKc=function(a,b,c){return[Number(a),b].concat(_.bc(c))};
var lKc=function(a,b){EM.call(this,"IE",b);this.O=a;this.H=new Map};_.J(lKc,EM);lKc.prototype.sV=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};
lKc.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=SK(a.args[0],!!a.H,_.Ygc);e=new rM(this.O,e);var f=_.Ze(e,"Jb",function(h){b.update(a.clientId,c,[h.percentDone,h.Zua])});_.af(e,function(){_.wi(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Yc([h])},function(h){return b.Yc(void 0,h)})};lKc.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Yc([])};
var mKc=function(a,b){EM.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.Yh();this.O=new RCc(a,a.Dg)};_.J(mKc,EM);mKc.prototype.sV=function(){var a=this,b={};return b["6.1"]=function(c){return nKc(a,c)},b["6.2"]=function(c){return oKc(a,c)},b["6.3"]=function(){a.H&&(UCc(a.O),a.H=!1,a.W=_.Yh());return a.Yc([])},b};
var nKc=function(a,b){if(!a.H){a.H=!0;var c=b.args.map(function(d){return SK(d,!!b.H,_.Kk)});a.O.$k(c);NL(a.context.Oj,"GZTDpc");a.W.resolve()}return a.Yc([])},oKc=function(a,b){return a.W.promise.then(function(){var c=b.args.map(function(d){return SK(d,!!b.H,_.qI)});TCc(a.O,c);return a.Yc([])})};
var pKc=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("Vg`"+b);a.services.set(b,new _.$h)})};pKc.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.Xf())b.callback(a);else throw Error("Wg`"+a.V);};var qKc=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)})};pKc.prototype.Io=function(){return[].concat(_.bc(this.services.values())).every(function(a){return a.Xf()})};
var rKc=function(){},sKc={0:2E3,1:3E3,2:5E3},tKc=function(a,b){this.request=a;this.ha=b;this.O=_.Yh();this.continuationToken="";this.V=0;this.WE=this.W=!1;this.H=rKc};tKc.prototype.kh=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=rKc;b.V=0;return c},function(c){b.H=rKc;b.V=0;return Promise.reject(c)})};
tKc.prototype.sendRequest=function(){var a=this;if(this.WE)this.O.resolve((new TK).Cc(8));else{var b=new _.khc(this.request,this.continuationToken);this.ha.then(function(c){return c.Pe(b)}).then(function(c){uKc(a,c)},function(c){a.handleError(c)})}};var uKc=function(a,b){var c;a.continuationToken=null!==(c=b.$n())&&void 0!==c?c:"";a.H(b);a.continuationToken?setTimeout(function(){a.sendRequest()},vKc(a.V++,a.ka)):a.O.resolve(b)};tKc.prototype.handleError=function(a){a=_.Vc(a);this.O.reject(a)};
tKc.prototype.cancel=function(){this.WE=!0};var vKc=function(a,b){return b?b:(a=sKc[a])?a:1E4};
var wKc=function(a,b){EM.call(this,"TM",b);this.O=a;this.H=new Map};_.J(wKc,EM);wKc.prototype.sV=function(){var a=this,b={};return b["10.1"]=function(c){return xKc(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};
var xKc=function(a,b){var c=b.clientId+":"+b.requestId,d=SK(b.args[0],!!b.H,_.WBc);d=new tKc(d,a.O);a.H.set(c,d);d=d.kh(function(e){var f;a.update(b.clientId,null!==(f=b.requestId)&&void 0!==f?f:"",[e])}).then(function(e){return a.Yc([e])},function(e){return a.Yc(void 0,e)});d.then(function(){a.H.delete(c)},function(){a.H.delete(c)});return d};wKc.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Yc([])};
var HM=function(a,b,c){_.L.call(this);this.H=a;this.Lw=b;this.kb=c;this.fields=null;this.Ia=!1;this.La=_.Yh();this.W=!1;this.Ba=_.Yh();this.O=_.Yh();this.ta=null;this.wa=this.Ta=!1;this.yb=_.Yh();this.ha=new Set;this.Ga=new Set;this.V=new Map;this.ma=new Set;this.qz=Date.now();this.services=new pKc;this.Jb=new _.kf(this);this.Ja(this.Jb)};_.J(HM,_.L);HM.prototype.VY=function(a){this.O.promise.then(function(b){b.V6||a.AOa(b)})};
var BKc=function(a,b){var c=HJc(a.H,b),d=a.Qb.bind(a,c);CL(b,"8.1",d);b.registerService("8.1",d);CL(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return yKc(a,c,f)});CL(b,"8.2",a.Gb.bind(a,c));CL(b,"8.3",a.Kb.bind(a,c));qKc(a.services,b);b.start();zKc(a,c,b);a.ka(c,b);var e=[];a.ta||(a.ta=_.Xh([a.La.promise,a.Ba.promise]).then((0,_.K)(a.initialize,a)));e.push(a.ta);_.Xh(e).then(function(){return void AKc(a,c,b)},function(f){a.Ta=!0;DL(b,"2.2",{err:_.vI(f).Gc()},d)})},CKc=function(a){return Math.floor((Date.now()-
a.qz)/1E3)},DKc=function(a,b,c){var d=function(e){DL(b,"2.8",{au:"ib"===e.type})};a.Jb.listen(c.KI,["ib","jb"],d);_.af(b,a.Jb.Tc.bind(a.Jb,c.KI,["ib","jb"],d))},EKc=function(a,b,c){var d=c.wk(),e=[].concat(_.bc(Object.values(_.XB))),f=function(h){DL(b,"2.19",{cs:h.connectionState})};a.Jb.listen(d,e,f);_.af(b,function(){a.Jb.Tc(d,e,f)})};
HM.prototype.Qb=function(a){var b=IJc(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){LJc(d,a)}),b.dispose(),this.log(_.dt("Client %d disconnected (num clients remaining: %d)",a,_.Va(this.H.channels))),0===_.Va(this.H.channels))){var c=function(){_.aa.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){d.Su().then(c,c)})}};
HM.prototype.Pa=function(a,b){if(this.ha.has(a))return _.Vh();var c=new _.oc(JSON.parse(b.dsc));_.u(c,24,!1);this.Ia||(this.Ia=!0,this.La.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){CJc(d,a,_.z(c.Uf(),37,""));BJc(d,_.me(c,28));d.Df.oma(_.zb(c,_.kl,91));return d.jY.promise.then(function(){GEc(d.Df,_.zb(c,_.zf,44))})},function(){})};
HM.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 IDc(e,e.Dg);e.kh(d);e.dispose();(e=c.H.channels[a]||null)&&DL(e,"2.16")})}};HM.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){FKc(new nEc(h),e);(h=c.H.channels[a]||null)&&DL(h,"2.17",{t:f})})}};
var FKc=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.kh(c)});a.dispose()};HM.prototype.$a=function(){for(var a=[],b={},c=_.m(_.Wa(this.H.channels)),d=c.next();!d.done;b={Vea:b.Vea,zfa:b.zfa},d=c.next())b.Vea=d.value,b.zfa=_.Yh(),DL(b.Vea,"2.12",void 0,function(e){return function(){e.Vea.dispose();e.zfa.resolve()}}(b)),a.push(b.zfa.promise);return _.Xh(a).then()};
HM.prototype.initialize=function(a){var b=this;a=a[0];_.kic(a,this.fields);var c=_.x(a,_.HI,58);c=c&&_.P(c,1,!1)?this.kb:void 0;try{var d=new VK(null,a,this.Lw,c,void 0,void 0),e=d.mk().H(106E3);iJc(d,this.$a.bind(this));this.Jb.listen(d.Jj(),"ub",function(k){k={os:k.Me()};for(var l=_.m(_.Wa(b.H.channels)),p=l.next();!p.done;p=l.next())DL(p.value,"2.6",k)});this.Jb.listen(d,_.bd,this.ob);this.Jb.listen(d,"w8KrJc",this.Dc);gwc(d.KI,this.ka.bind(this));var f=d.Az;f&&dsc(f,function(){return b.ka()});
this.O.resolve(d);var h=GKc(this,d,new gKc(d,this.H,(0,_.K)(this.jc,this),(0,_.K)(this.tc,this)));e&&h.then(function(){return e&&e.Aj()});return h}catch(k){return _.Wh(k)}};
var GKc=function(a,b,c){a.services.activate(c);a.services.activate(new JJc(b,a.H));a.services.activate(new hKc(b,a.H,c));a.services.activate(new mKc(b,a.H));a.services.activate(new jKc(b.Vc,b.hB,b.IR().fga,b.Km(),b.CQ,b.Be(),b.mk(),a.H));a.services.activate(new lKc(b.Km(),a.H));a.services.activate(new wKc(b.Km(),a.H));return c.initialize()},AKc=function(a,b,c){var d=_.Va(a.H.channels);a.log(_.dt("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));DL(c,"2.2",{id:b,
clients:d,uptimeSec:CKc(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.C_.addCallback(function(f){c.isDisposed()||DL(c,"2.5",{id:f})});1<d&&wM(e).addCallback(function(f){return f.uxa()});(a.services.services.get("IS")||null).addCallback(function(f){f.cca().then(function(){c.isDisposed()||DL(c,"2.14")})});DKc(a,c,e);EKc(a,c,e)})};HM.prototype.jc=function(a){a={dt:a.dataType};for(var b=_.m(_.Wa(this.H.channels)),c=b.next();!c.done;c=b.next())DL(c.value,"2.15",a)};
HM.prototype.tc=function(a){var b={oois:a};_.Wa(this.H.channels).forEach(function(c){DL(c,"2.18",b)})};HM.prototype.ob=function(a){a={p:a.error.ug.Gc()};for(var b=_.m(_.Wa(this.H.channels)),c=b.next();!c.done;c=b.next())DL(c.value,"2.10",a)};HM.prototype.Dc=function(){for(var a=_.m(_.Wa(this.H.channels)),b=a.next();!b.done;b=a.next())DL(b.value,"2.7")};var zKc=function(a,b,c){a.ha.has(b)?_.Vh():new _.Sh(function(d){DL(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
HM.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.Wh(Error("Xg"));if(this.W&&this.Ga.has(a))return _.Vh()}b=b||_.Wa(this.H.channels)[0];if(!b)return _.Wh(Error("Yg"));var d=_.Yh();b.send("1.1",void 0,function(e){yKc(c,a,e);d.resolve()});return d.promise};var yKc=function(a,b,c){_.Ra(c.ac,function(d,e){_.aa[e]=d});"number"===typeof b&&a.Ga.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())};
HM.prototype.log=function(a){this.O.promise.then(function(b){return b.Be().info("drive.ds.sync.cacheproxy.Worker",a)})};
var HKc=function(a,b){DM.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.J(HKc,DM);_.g=HKc.prototype;_.g.Ka=function(){return _.x(this.context.Vc,_.HI,58)};_.g.getContext=function(){return this.context};_.g.Xz=function(){return _.gi(this.send("5.4",[this.H],function(a,b){return SK(a[0],b,_.Wic)}))};_.g.Be=function(){return this.context.Be()};_.g.XM=function(a){return _.gi(this.send("5.2",[a],function(b,c){return b[0]?SK(b[0],c,_.Kk):null}))};
_.g.JR=function(){return _.gi(this.send("5.5",[],function(a,b){return a.map(function(c){return SK(c,b,_.ufc)})}))};_.g.I5=function(a,b,c){return _.gi(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 SK(k,e,_.Kk)}),kja:f,pageToken:h}}))};_.g.Hqa=function(){this.send("5.9",[])};_.g.Gia=function(){this.send("5.1",[])};_.g.Z9=function(){return _.dgc[_.pj(this.context.Vc.Uf(),8,0)]};_.g.Wda=function(){this.send("5.6",[])};
_.g.yT=function(){return _.gi(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 SK(e,b,kwc)});return{traceId:new Myc(c,d),spanRecs:a}}))};_.g.vN=function(){return _.gi(this.send("5.10",[],function(a){return 0===a.length?null:new Myc(a[0],new Date(a[1]))}))};_.g.getState=function(){return _.gi(this.send("5.12",[],function(a){return a[0]}))};_.g.cqa=function(){this.send("5.11",[])};_.g.Jl=function(a){this.send("5.13",[a])};
var IKc=function(a,b){DM.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Fa(this))};_.J(IKc,DM);IKc.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request],function(b,c){return SK(b[0],c,FBc)},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};IKc.prototype.cancel=function(){this.send("9.2",[],void 0,this.id)};
IKc.prototype.saa=function(a,b,c){this.dispatchEvent(new nCc(c[0],c[1]))};
var JKc=function(a){DM.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.J(JKc,DM);JKc.prototype.YY=function(a){var b=this;(this.H=a)?(this.log("Querying all offline items."),this.H.ZV().hg(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.n0(function(c){b.log("Forwarding offline items changes, count:"+c.length);b.send("6.2",c)})):this.send("6.3",[])};
var KKc=function(a,b){XL.call(this,a,b)};_.J(KKc,XL);KKc.prototype.Zia=function(a,b,c){return new _.ghc(a,c)};KKc.prototype.jla=function(a){return a.pageToken||""};KKc.prototype.wka=function(a){return a.response.H()};KKc.prototype.T6=function(){};
var LKc=function(a,b,c){qM.call(this,a.Be(),a.Jj(),a.wk(),b.wi()||void 0);this.request=b;this.logName="drive.ds.sync.PublishedCategoriesLiveList";this.O=[];this.changed=!1;this.ka=c;this.W=new KKc(this.request,this.ka)};_.J(LKc,qM);_.g=LKc.prototype;_.g.hH=function(){this.W.kh().then(this.Zbb.bind(this),this.handleError.bind(this))};_.g.getData=function(){return BBc(new lM,this.O).Cc(this.status)};_.g.ms=function(){return new lBc};_.g.nk=function(){return!this.Me()&&(!this.H||Zxc(this.W))};
_.g.Zbb=function(a){this.changed=this.H=!0;this.O=a;this.eu()};_.g.eu=function(){if(this.active){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))}};_.g.$b=function(){return this.O.length};
var MKc=function(a,b,c){qM.call(this,a.Be(),a.Jj(),a.wk(),b.wi()||10);this.request=b;this.logName="drive.ds.sync.SuggestedWorkspaceItemQueryLiveList";this.O=[];this.data=[];this.changed=!1;this.W=new _.h7a;this.suggestionSessionId=null;this.ka=c};_.J(MKc,qM);_.g=MKc.prototype;_.g.hH=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Jh();a.suggestionSessionId=b.Wf();a.eu()},this.handleError.bind(this))};
_.g.getData=function(){this.O=this.data;return _.Wmc(_.Vmc((new _.HK).Cc(this.status),this.data.slice(0)),this.suggestionSessionId)};_.g.ms=function(){var a=_.Jy(this.W,this.O,this.data);this.O=this.data;var b=(new eCc).Cc(this.status);return _.tj(b,2,a)};_.g.pP=function(){};_.g.eu=function(){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))};_.g.$b=function(){return this.data.length};
var NKc=function(){};_.g=NKc.prototype;_.g.JM=function(a,b){b=uAc(1).setPosition(b);_.F(b,2,a);return b};_.g.IM=function(a,b){b=uAc(2).setPosition(b);_.F(b,2,a);return b};_.g.ZE=function(a,b,c){b=uAc(3).mz(b).setPosition(c);_.F(b,2,a);return b};_.g.RQ=function(a,b){b=uAc(4).setPosition(b);_.F(b,2,a);return b};_.g.dN=function(a){return _.x(a,_.sAc,2)};
var OKc=function(){_.Ky.call(this,new NKc,function(a){a:switch(_.Cb(a,_.gM)){case 6:a=_.Iy(_.Gj(a,_.Hy,6,_.gM)).getTime().toString();break a;case 7:var b=_.Gj(a,_.fM,7,_.gM);a=_.x(b,_.Hy,1);b=b.Gv();a=a&&b?_.Iy(b).getTime()+"--"+_.Iy(a).getTime():"";break a;default:a=""}return a})};_.J(OKc,_.Ky);var QKc=function(){PKc||(PKc=new OKc);return PKc},PKc;
var RKc=function(a,b,c,d){qM.call(this,b.Be(),b.Jj(),b.wk(),d);this.request=a;this.logName="drive.ds.sync.SyncedActivityQueryLiveList";this.O=!1;this.W=[];this.activities=[];this.token="";this.changed=!1;this.ka=new _.Zjc(_.Dj(b.Vc.Uf(),6,1E3));this.ma=c};_.J(RKc,qM);_.g=RKc.prototype;_.g.MP=function(){qM.prototype.MP.call(this);this.eu()};_.g.hH=function(){_.N(this.request,3)?this.page():this.poll()};
_.g.Eu=function(a){if(a=a||50,this.activities.length>this.limit)this.changed=!0;qM.prototype.Eu.call(this,a)};_.g.getData=function(){var a=(new zAc).Cc(this.status);_.tj(a,2,this.activities.slice(0,this.limit));this.W=_.Aa(this.activities);return a};_.g.ms=function(){var a=_.Jy(QKc(),this.W,this.activities),b=new wAc;a=_.tj(b,2,a).Cc(this.status);this.W=_.Aa(this.activities);return a};_.g.nk=function(){return!this.Me()&&(!this.H||this.activities.length>this.limit||!!this.token)};_.g.hd=function(){return this.request};
_.g.page=function(a){var b=this;this.active?(this.O=!0,this.nk()&&this.activities.length<this.limit?this.ma(this.request,this.limit-this.activities.length,this.token).then(function(c){b.H=!0;var d=_.zb(c,_.sAc,1);b.activities=b.activities.concat(d);b.token=c.Ky()||"";0<d.length&&(b.changed=!0);b.eu();b.page(a)},function(c){b.dispatchEvent(new _.Sc(c));b.O=!1}):(this.O=!1,a&&a.callback(),SKc(this))):this.O=!1};
_.g.poll=function(){var a=this;this.active&&(this.O=!0,this.ma(this.request,this.limit).then(function(b){var c=QKc();a.H=!0;var d=_.zb(b,_.sAc,1);$K(c,a.activities.slice(0,d.length),d)?(a.activities=d,a.token=b.Ky()||"",a.changed=!0,a.eu(),a.page()):(a.O=!1,SKc(a))},function(b){a.dispatchEvent(new _.Sc(b));a.O=!1}))};_.g.eu=function(){if(this.active){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))}};
_.g.SL=function(){this.Me()&&!this.H?this.status=2:this.status=this.activities.length<this.limit&&(!this.H||this.token)?6:1};_.g.pP=function(){this.active&&this.nk()&&!this.O&&this.page(new _.$h)};var SKc=function(a){_.N(a.request,3)||(_.ZH(a.ka),_.aa.setTimeout((0,_.K)(a.poll,a),a.ka.Xa()))};RKc.prototype.$b=function(){return this.activities.length};
var TKc=function(){};_.g=TKc.prototype;_.g.JM=function(a,b){return DAc(CAc(1),a).setPosition(b)};_.g.IM=function(a,b){return DAc(CAc(2).setPosition(b),a)};_.g.ZE=function(a,b,c){return DAc(CAc(3).mz(b).setPosition(c),a)};_.g.RQ=function(a,b){return DAc(CAc(4),a).setPosition(b)};_.g.dN=function(a){return _.x(a,_.EL,2)};
var UKc=function(){_.Ky.call(this,new TKc,function(a){return a.getId()})};_.J(UKc,_.Ky);var WKc=function(){VKc||(VKc=new UKc);return VKc},VKc;
var XKc=function(a,b,c){qM.call(this,b.Be(),b.Jj(),b.wk());this.request=a;this.logName="drive.ds.sync.SyncedBackupsQueryLiveList";this.W=[];this.backups=[];this.changed=!1;this.O=new _.Zjc(_.Dj(b.Vc.Uf(),54,1E3));this.ka=c};_.J(XKc,qM);_.g=XKc.prototype;_.g.activate=function(){qM.prototype.activate.call(this);this.eu()};_.g.hH=function(){this.poll()};_.g.getData=function(){var a=new JAc;a=_.tj(a,2,this.backups).Cc(this.status);this.W=_.Aa(this.backups);return a};
_.g.ms=function(){var a=_.Jy(WKc(),this.W,this.backups),b=new HAc;a=_.tj(b,2,a).Cc(this.status);this.W=_.Aa(this.backups);return a};_.g.nk=function(){return!this.Me()&&!this.H};_.g.poll=function(){var a=this,b=new _.$h;this.ka(this.request).then(function(c){a.H=!0;c=_.zb(c,_.EL,2);$K(WKc(),a.backups,c)&&(a.changed=!0,a.backups=c,a.O.reset());a.eu();b.callback();YKc(a)},function(c){a.dispatchEvent(new _.Sc(c));b.Hd(c);YKc(a)});return b};
_.g.eu=function(){if(this.active){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))}};_.g.pP=function(){};var YKc=function(a){a.active&&(_.aa.setTimeout((0,_.K)(a.poll,a),a.O.Xa()),_.ZH(a.O))};XKc.prototype.$b=function(){return this.backups.length};
var ZKc=function(){};_.g=ZKc.prototype;_.g.JM=function(a,b){return LBc(KBc(1),a).setPosition(b)};_.g.IM=function(a,b){return LBc(KBc(2).setPosition(b),a)};_.g.ZE=function(a,b,c){return LBc(KBc(3).mz(b).setPosition(c),a)};_.g.RQ=function(a,b){return LBc(KBc(4),a).setPosition(b)};_.g.dN=function(a){return _.x(a,_.xk,2)};
var $Kc=function(){_.Ky.call(this,new ZKc,function(a){return a.getId()})};_.J($Kc,_.Ky);
var IM=function(a,b,c){_.yi.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.J(IM,_.yi);IM.prototype.Gi=function(a){this.limit=a};IM.prototype.kh=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():aLc(this)};IM.prototype.lla=function(){return this.permissions};
var aLc=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.pJ;c=_.F(c,3,a.request);c=_.u(c,2,a.nextPageToken);b=_.u(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};IM.prototype.W=function(a){this.H=!1;this.nextPageToken=a.$n()||"";a=a.Yc().oN();this.permissions=_.za(this.permissions,a);a.length&&this.dispatchEvent("zb");if(this.nextPageToken&&this.permissions.length<this.limit)return aLc(this);this.dispatchEvent("Cb")};
IM.prototype.handleError=function(a){this.H=!1;a=new WL(_.vI(a),_.Dj(this.context.Vc.Uf(),1,1));this.dispatchEvent(a)};
var bLc=function(a,b,c,d){qM.call(this,b.Be(),b.Jj(),b.wk(),d||100);var e=this;this.request=a;this.context=b;this.logName="drive.ds.sync.SyncedPermissionQueryLiveList";this.ka=[];this.permissions=[];this.changed=!1;this.W=null;this.ma=c;this.O=new IM(b,this.request,this.ma);_.af(this,function(){e.W&&(_.aa.clearTimeout(e.W),e.W=null)})};_.J(bLc,qM);_.g=bLc.prototype;_.g.activate=function(){qM.prototype.activate.call(this);this.eu()};_.g.hH=function(){this.query()};
_.g.Eu=function(a){qM.prototype.Eu.call(this,a||100)};_.g.getData=function(){var a=gsc(new fsc,this.permissions.slice(0,this.limit)).Cc(this.status);this.ka=_.Aa(this.permissions);return a};_.g.ms=function(){var a=_.Jy(_.Zl($Kc),this.ka,this.permissions),b=new NBc;a=_.tj(b,2,a).Cc(this.status);this.ka=_.Aa(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.hd=function(){return this.request};
_.g.query=function(){var a=this;this.O=new IM(this.context,this.request,this.ma);this.O.Gi(this.limit);return this.O.kh().then(function(){return cLc(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){qM.prototype.handleError.call(this,a);dLc(this)};var cLc=function(a){a.H=!0;var b=a.O.lla();$K(_.Zl($Kc),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.eu();dLc(a)};
bLc.prototype.eu=function(){if(this.active){var a=this.status;this.SL();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.pi(_.cd,this))}};bLc.prototype.pP=function(){var a=this;this.O.Gi(this.limit);this.O.kh().then(function(){return cLc(a)},function(b){return a.handleError(b)})};var dLc=function(a){if(a.active){var b=a.context.Vc.Uf();a.W=_.aa.setTimeout((0,_.K)(a.query,a),Math.ceil(_.Dj(b,7,9E5)*Math.random())+_.Dj(b,15,36E5))}};bLc.prototype.$b=function(){return this.permissions.length};
var eLc=function(a){6!==a.status&&_.aa.setTimeout(function(){a.dispatchEvent(new _.pi(_.cd,a))},0)};
var fLc=function(){},gLc=function(a,b){DM.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.O=fLc;this.H=null;this.id=String(_.Fa(this))};_.J(gLc,DM);gLc.prototype.saa=function(a,b,c){a===this.id&&(a=_.m(c).next().value,this.O(SK(a,b,TK)))};gLc.prototype.kh=function(a){a=void 0===a?fLc:a;if(!this.H){this.O=a;var b=_.Yh();this.H=b;this.send("10.1",[this.request],function(c,d){return SK(c[0],d,TK)},this.id).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)})}return this.H.promise};
gLc.prototype.cancel=function(){this.send("10.2",[this.request],void 0,this.id)};
var hLc=function(a,b,c){_.yi.call(this);var d=this;this.instanceId=a;this.H=b;this.O=c;this.Mu={};this.files={};_.af(this,function(){d.H("7.6",[])})};_.J(hLc,_.yi);_.g=hLc.prototype;_.g.getId=function(){return this.instanceId};_.g.QQ=function(){return _.EI()};
_.g.upload=function(a,b){!_.y(a,26)&&b&&b.lastModified&&_.u(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.oic;_.u(d,1,b.size);_.F(a,15,d);this.files[a.kj()]=b}return _.gi(this.H("7.1",[a,c],function(e,f){return SK(e[0],f,_.GJ)}))};_.g.cancel=function(a){this.H("7.2",[a])};_.g.yG=function(){this.H("7.3",[])};
_.g.retry=function(a){for(var b={},c=_.m(a),d=c.next();!d.done;d=c.next())b[d.value]=new _.$h;c=this.QQ();this.Mu[c]=b;b=_.Wa(b);this.H("7.4",[c].concat(_.bc(a)));return b};_.g.HM=function(a,b){var c=this;return _.gi(this.H("7.5",[a].concat(_.bc(b)),function(d){return goc(d[0])}).then(function(d){return c.O.addCallback(function(e){return e.S4a(d)})}))};var iLc=function(a,b,c,d){if(a.Mu[b]&&a.Mu[b][c]){var e=a.Mu[b][c];d instanceof _.GJ?e.callback(d):e.Hd(d);delete a.Mu[b][c];_.Za(a.Mu[b])&&delete a.Mu[b]}};
var jLc=function(a,b){DM.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.J(jLc,DM);var kLc=function(a){var b=_.EI(),c=new hLc(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.af(c,function(){return void a.H.delete(b)});return c};
jLc.prototype.saa=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,_.xgc(c,b,Math.min(c.size,b+e))]);break;case 0:b=SK(e[1],b,_.GJ);iLc(a,d,e[0],b);break;case 1:b=new _.Rc(void 0,SK(e[1],b,_.Pc));iLc(a,d,e[0],b);break;case 2:a.dispatchEvent(new _.xkc(d,e[0],e[1]));break;default:throw Error("Zg");}}};
var lLc=function(a,b){if(0===a.length)throw new _.Rc("mutateUserPref requires a namespace.",_.MI(3));var c=null;b instanceof _.qD?c=(b=(b=_.x(b,_.Ro,1))&&b.getKey())&&_.So(b)||null:b instanceof _.pD&&(c=(b=b.getKey())&&_.So(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Rc("mutateUserPref unsupported for namespace: "+c,_.MI(3));};
var mLc=function(a){this.H=a};
var epc=function(a){DM.call(this,"IS","drive.ds.sync.ItemServiceProxy",(nLc=_.Yh()).promise);var b=this;this.ta=null;this.Pa=this.Ta=this.$a=this.ma=!1;this.ha=this.ka=this.W=null;this.kb=new _.kn;this.La=new _.kn;this.V=nLc;nLc=void 0;this.context=a;kJc(this.context,new JKc(this.V.promise));Src(this.context.Dg,_.me(this.context.Vc,28));this.H=this.context.xta;this.O=new MJc(this.V.promise,this.context,this.H);this.ob=new jLc(this.V.promise,this.context.CQ);this.Ia=new HKc(this.V.promise,this.context);
this.Nc=new _.kf(this);this.Ja(this.Nc);this.Nc.listen(this.context.wk(),[].concat(_.bc(Object.values(_.XB))),function(c){return void b.dispatchEvent(c)})},nLc;_.J(epc,DM);
epc.prototype.initialize=function(){var a=this;if(!this.ta){this.ta=this.wa.promise;var b=this.context.mk().H(106E3);this.ta.then(function(){b&&b.Aj();a.E3a()},function(){_.qK(a.context.mk(),181008852)});this.context.Be().info("drive.ds.sync.ItemServiceProxy","Initializing "+(_.WJ(this.context.Vc)?"(coldstart) ":"")+"with client build: "+this.context.Vc.Mi());var c=Tnc(this.context.Vc,this.Oi(),_.aK(this.context.Dg));oLc(this,c);if(2===c.H){var d=new HM(new GJc,6,this.context.Be());BKc(d,c.O);this.La.resolve(d)}else xoc(this.Ia);
this.context.Be().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+c.endpoint);c.channel.start();iJc(this.context,function(){return pLc(c.channel)})}return this.ta};
var pLc=function(a){return _.pka([new _.Sh(function(b){a.isDisposed()||DL(a,"8.1",void 0,function(){a.dispose();b()})}),_.Di(1E4)])},oLc=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",function(){return{uid:a.Oi(),fds:_.aK(a.context.Dg)}}):c.registerService("1.1",function(){return qLc(a,b)});2===b.H?a.La.promise.then(function(){return void rLc(a,b)}):rLc(a,b);CL(c,"2.1",function(){return{dsc:a.context.Vc.Gc()}});CL(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new FJc(d.id,
c,a.context.Be(),d.clients)),d.dsp&&sLc(c),d.ivd&&tLc(a,c)):(d=new _.Pc(JSON.parse(d.err)),a.wa.reject(new _.Rc("Unable to initialize dataservice.",d)))});CL(c,"2.15",function(d){a.dispatchEvent(new mCc(d.dt))});CL(c,"2.5",function(d){a.context.oz(d.id)});CL(c,"2.6",function(d){a.context.Jj().Jl(d.os)});CL(c,"2.18",function(d){a.context.Jj().lz(d.oois)});CL(c,"2.7",function(){a.ma=!1});CL(c,"2.8",function(d){a.context.Ga=d.au;a.dispatchEvent(new Ksc(d.au?"ib":"jb"))});CL(c,"2.19",function(d){a.context.wk().update(d.cs)});
CL(c,"2.9",function(d){var e=d.logName,f=d.level;d=_.dt("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Be().config(e,d);break;case "fine":_.ZJ(a.context.Be(),e,d,"fine");break;case "finer":_.ZJ(a.context.Be(),e,d,"finer");break;case "finest":_.ZJ(a.context.Be(),e,d,"finest");break;case "info":a.context.Be().info(e,d);break;case "warning":case "severe":Orc(a.context.Be(),e,d);break;default:Orc(a.context.Be(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),Orc(a.context.Be(),
e,d)}});CL(c,"2.10",function(d){return void a.naa(d)});CL(c,"2.12",function(){a.Pa=!0;JM(a)});CL(c,"2.14",function(){return a.kb.resolve()});CL(c,"2.16",function(){return a.$a=!0});CL(c,"2.17",function(d){a.context.Be().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},rLc=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",qLc(a,b));DL(b.channel,"8.4",{dsc:a.context.Vc.Gc()});sLc(b.channel);tLc(a,b.channel)},sLc=function(a){_.aa._DRIVE_dsp&&DL(a,"8.3",{dsp:uLc(_.aa._DRIVE_dsp)});
_.aa._DRIVE_dspc=function(b){if(_.aa._DRIVE_dsp){var c=[];c[b]=_.aa._DRIVE_dsp[b];DL(a,"8.3",{dsp:uLc(c)})}}},tLc=function(a,b){_.P(a.context.Vc,24,!1)&&(_.aa._DRIVE_ivd?DL(b,"8.2",{ivd:_.aa._DRIVE_ivd}):void 0===_.aa._DRIVE_ivd&&(_.aa._DRIVE_ivdc=function(){_.aa._DRIVE_ivd&&DL(b,"8.2",{ivd:_.aa._DRIVE_ivd})}))},qLc=function(a,b){var c={};if(1===b.H){var d=new _.HNa(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.Vc.Mi(),ufds:b.V}};epc.prototype.Oi=function(){var a=_.uj(_.uj(_.gI(this.context.Vc.clone(),28),44),91),b=new _.SH;b.update(_.UJ(_.fI(a)));b.update(String(_.wI(_.fI(a))));b.update(a.Gc());return _.Cec(b.digest())};var uLc=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=epc.prototype;_.g.naa=function(a){this.dispatchEvent(new _.Sc(new _.Rc(void 0,new _.Pc(JSON.parse(a.p)))))};
_.g.query=function(a){JM(this);Dvc(this.context.Am,a,Qrc(this.context.Dg));this.FF();var b=this.O.dya(a);this.Ta||(a=a.se(),a&&121===_.y(a,1)||(this.Ta=!0,this.Nc.listen(b,_.cd,this.iOa)));return b};_.g.iOa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Ia.H=this.$a,this.Nc.Tc(a,_.cd,this.iOa))};_.g.gt=function(a){JM(this);Hsc(a);this.FF();return this.O.aya(a)};
_.g.bwa=function(a,b){var c=this;JM(this);if(this.ka&&_.Cj(this.ka.hd(),a))return this.ka;this.ka=new RKc(a.clone(),this.context,function(d,e,f){return c.send("3.17",[d,e,f],function(h,k){return SK(h[0],k,lCc)})},b);_.aa.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.oHa=function(a,b){var c=this;JM(this);if(this.ha&&_.Cj(this.ha.hd(),a))return eLc(this.ha),this.ha;this.ha=new bLc(a,this.context,function(d){return c.send("3.18",[d],function(e,f){return SK(e[0],f,OBc)})},b);_.aa.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Oaa=function(a){JM(this);return _.gi(this.send("3.14",[a],function(b,c){return SK(b[0],c,nM)}))};_.g.d9=function(a){JM(this);return _.gi(this.send("3.15",[a],function(b,c){return SK(b[0],c,nM)}))};
_.g.ad=function(a){JM(this);!this.ma&&_.HJ(a)&&(this.ma=!0);a=Vnc(a);return _.gi(this.send("3.3",[a],function(b,c){return SK(b[0],c,_.GJ)}))};_.g.gO=function(a){JM(this);a=eoc(a);return this.send("3.35",[a],function(b,c){return SK(b[0],c,_.Jsc)})};_.g.RC=function(a){JM(this);for(var b=0;b<a.length;b++)!this.ma&&_.HJ(a[b])&&(this.ma=!0);a=Ync(a);return _.gi(this.send("3.4",[a],function(c,d){return Uvc(c[0],d).get()}))};_.g.$xa=function(){JM(this);return kLc(this.ob)};
_.g.mUa=function(a){JM(this);return new IKc(this.V.promise,a)};_.g.ks=function(a,b){var c=this;JM(this);var d=_.mh();this.H.create(d,a);return _.gi(this.send("3.5",[a,!!b],function(e,f){f=SK(e[0],f,HL);return new _.lK(f,e[1],e[2])})).addCallback(function(e){qwc(c.H,d,e);return e.response}).zg(function(e){GL(c.H,d);return e})};_.g.yr=function(a){JM(this);return this.send("3.10",[a],function(b,c){return SK(b[0],c,AAc)})};
_.g.Qaa=function(a){JM(this);return _.gi(this.send("3.11",[a],function(b,c){return SK(b[0],c,BAc)}))};_.g.b9=function(a){JM(this);return _.gi(this.send("3.12",[a],function(b,c){return SK(b[0],c,BAc)}))};_.g.KT=function(a){JM(this);return _.gi(this.send("3.13",[a],function(b,c){return SK(b[0],c,BAc)}))};
_.g.BN=function(a,b){var c=this;JM(this);var d=_.mh();this.H.create(d,a);return _.gi(this.send("3.1",[a,!!b],function(e,f){f=SK(e[0],f,_.eM);return new _.oK(f,e[1],e[2])})).addCallback(function(e){qwc(c.H,d,e);return e.response}).zg(function(e){GL(c.H,d);return e})};
_.g.fH=function(a,b){var c=this,d=_.me(this.context.Vc.Uf(),30);if(!d||0===d.length)return _.hi(new _.Rc("getUserPrefs requires a namespace.",_.MI(3)));0===_.me(a,3).length&&yoc(a,d);JM(this);var e=_.mh();this.H.create(e,a);return _.gi(this.send("3.2",[a,!!b],function(f,h){h=SK(f[0],h,_.aA);return new _.nK(h,f[1],f[2])})).addCallback(function(f){qwc(c.H,e,f);return f.response}).zg(function(f){GL(c.H,e);return f})};
_.g.IS=function(a){JM(this);lLc(_.me(this.context.Vc.Uf(),30),a);a=boc(a);return this.send("3.6",[a],function(b,c){return SK(b[0],c,ZBc)})};_.g.xu=function(a){JM(this);return _.gi(this.send("3.16",[a],function(b,c){return SK(b[0],c,isc)}))};_.g.UCa=function(){return this.ma};_.g.Jl=function(a){JM(this);this.send("3.8",[a])};_.g.lz=function(a){JM(this);return _.Vh(this.send("3.36",[a],function(b){return!!b[0]}))};_.g.YY=function(a){JM(this);jJc(this.context).YY(a);this.lz(!!a)};
_.g.FF=function(){JM(this);this.send("3.9",[])};_.g.LS=function(){JM(this);this.send("3.41",[]);this.context.LS();var a=cL(this.context.mk(),106006);a&&this.V.promise.then(function(b){var c=_.x(_.gK(a),rrc,6);if(!c){c=new rrc;var d=_.gK(a);_.F(d,6,c)}c=_.u(c,1,b.clientId);_.u(c,2,b.O);a.Aj()},function(){})};_.g.NB=function(){JM(this);return this.context.NB()};_.g.JQ=function(){JM(this);return _.Vh(this.send("3.19",[],function(a,b){return SK(a[0],b,awc)}))};_.g.isConnected=function(){return this.context.wk().isConnected()};
_.g.w8=function(){return this.send("3.46",[],function(a,b){return SK(a[0],b,_.Rjc)})};_.g.r$=function(){return this.Ia};_.g.sync=function(){JM(this);return _.Vh(this.send("3.28",[]))};_.g.Su=function(){return this.context.Su()};_.g.VY=function(a){this.La.promise.then(function(b){return void b.VY(a)})};_.g.xqa=function(a){JM(this);return this.O.kya(a)};_.g.y5=function(a){JM(this);return this.O.jya(a)};_.g.lHa=function(a){JM(this);Gvc(this.context.Am,a,Qrc(this.context.Dg));return this.O.gya(a)};
_.g.yqa=function(a){JM(this);return new gLc(this.V.promise,a)};_.g.Qwa=function(a){var b=this;JM(this);if(!this.W||this.W.isDisposed())this.W=new XKc(a,this.context,function(c){return b.send("3.20",[c],function(d,e){return SK(d[0],e,JAc)})});return this.W};_.g.aIa=function(){this.W&&!this.W.isDisposed()?this.W.poll():_.Vh()};_.g.c9=function(a){JM(this);return _.gi(this.send("3.22",[a],function(b,c){return SK(b[0],c,KAc)}))};
_.g.$V=function(a){JM(this);return _.gi(this.send("3.25",[a],function(b,c){return SK(b[0],c,FAc)}))};_.g.cca=function(){return this.kb.promise};_.g.Foa=function(a){var b=_.Yh();_.gi(this.send("3.30",[a],function(c,d){c[0]?b.resolve(SK(c[0],d,HBc)):b.reject(new _.Rc(void 0,SK(c[1],d,_.Pc)))})).zg(function(c){return void b.reject(c)});return b.promise};_.g.qxa=function(a){JM(this);return this.O.Xxa(a)};_.g.v8=function(a){JM(this);return this.send("3.42",[a],function(b,c){return SK(b[0],c,mAc)})};
_.g.sP=function(a){JM(this);var b=new _.kn;this.send("3.39",[a],function(c,d){return c.map(function(e){return SK(e,d,zwc)})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new mLc(b.promise))};_.g.MHa=function(a){var b=this;JM(this);return new LKc(this.context,a,function(c){return _.Vh(b.send("3.37",[c.request,c.pageToken],function(d,e){return new Wvc(SK(d[0],e,lM),d[1])}))})};
_.g.NHa=function(a){JM(this);return this.send("3.38",[a],function(b,c){return SK(b[0],c,CBc)})};_.g.wMa=function(a){JM(this);return this.O.oya(a)};_.g.tra=function(a){JM(this);return this.O.nya(a)};_.g.VKa=function(a){var b=this;JM(this);return new MKc(this.context,a,function(){return _.Vh(b.send("3.40",[a],function(c,d){return SK(c[0],d,_.HK)}))})};_.g.WKa=function(a){JM(this);return this.O.hya(a)};_.g.l0=function(a){JM(this);this.send("3.43",[a])};
_.g.N0=function(a){JM(this);return _.Vh(this.send("3.44",[a],function(b,c){return SK(b[0],c,Usc)}))};_.g.Eo=function(a){JM(this);if(1!==_.VJ(this.context.Vc))return Promise.reject(Error("$g"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("ah"));if(!c.Vk()&&!c.getItem())return Promise.reject(Error("bh"))}return Promise.resolve(this.send("3.45",a))};
_.g.E3a=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Di(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.pka(b).then(function(c){c?_.Ai(a.E3a.bind(a),6E4):(a.Pa=!0,JM(a))})}};var JM=function(a){a.Pa&&a.dispatchEvent(new LCc)};
var gpc=function(a){sM.call(this,a);this.ha=this.ka=this.ta=null;this.kb=_.Yh();this.logName="drive.ds.sync.SyncedItemService";this.H=a.Km()};_.J(gpc,sM);gpc.prototype.UTa=function(){this.Ia=new SJc(this.context);this.Ja(this.Ia);this.La=new WJc(this.context);this.Ja(this.La);this.Pa=new cKc(this.context);this.Ja(this.Pa)};
gpc.prototype.$a=function(){var a=this,b=["hVFf7"];_.WJ(this.context.Vc)&&b.push("BNEDtc");ML(this.O,b,function(){return void a.dZa()});ML(this.O,["T8oKm","ZA9qG"],function(){return void vLc(a)});ML(this.O,["T8oKm","mrK8ic"],function(){return void vLc(a)});this.Nc.listen(this.Ia,"WPi0i",this.zta.bind(this,1));this.Nc.listen(this.La,"Kb",this.zta.bind(this,2));this.Nc.listen(this.Pa,"WPi0i",this.zta.bind(this,4));ML(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var vLc=function(a){wM(a.context).addCallback(function(b){b.start()})};
_.g=gpc.prototype;_.g.zta=function(a){_.oa(Vsc,a)&&this.dispatchEvent(new mCc(a))};_.g.y5=function(a){return this.V.jya(a.clone())};_.g.lHa=function(a){Gvc(this.context.Am,a,Qrc(this.context.Dg));return this.V.gya(a.clone())};_.g.xqa=function(a){return this.V.kya(a.clone())};_.g.yqa=function(a){return new tKc(a,this.context.Km())};
_.g.bwa=function(a,b){var c=this;if(this.ta&&_.Cj(this.ta.hd(),a))return this.ta;this.ta=new RKc(a.clone(),this.context,this.Plb.bind(this),b);_.aa.setTimeout(function(){c.ta=null},3E3);return this.ta};_.g.Plb=function(a,b,c){var d=new _.$gc(a,b,c);return _.gi(this.H.then(function(e){return e.Pe(d)}).then(null,function(e){return JK(e)}))};_.g.Qwa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new XKc(a,this.context,function(c){return wLc(b,c)});return this.ha};
var wLc=function(a,b){return _.gi(a.H.then(function(c){return c.Pe(b)}).then(null,function(c){return JK(c)}))};_.g=gpc.prototype;_.g.aIa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.Vh()};_.g.$V=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}))};_.g.c9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}))};
_.g.oHa=function(a,b){var c=this;if(this.ka&&_.Cj(this.ka.hd(),a))return eLc(this.ka),this.ka;this.ka=new bLc(a.clone(),this.context,this.kNb.bind(this),b);_.aa.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.kNb=function(a){var b=this;return this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.mI(b.context.Vc)?Nxc(b.context.Df.Jq,c.Yc().oN(),a.hd().getId()).then(function(){return c}):c},JK)};
_.g.Oaa=function(a){var b=this;return _.gi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.mI(b.context.Vc)?Nxc(b.context.Df.Jq,[_.x(c,_.xk,2)],a.qc()).then(function(){return c}):c},JK))};_.g.d9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};_.g.qxa=function(a){return this.V.Xxa(a.clone())};_.g.v8=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,JK)};
_.g.sP=function(a){return this.H.then(function(b){return b.Pe(a)}).then(function(b){var c=new _.kn;Xxc(a,b).then(function(d){return c.resolve(d)});return new mLc(c.promise)},function(b){JK(b)})};_.g.MHa=function(a){var b=this;return new LKc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return JK(d)})})};_.g.NHa=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,JK)};
_.g.ad=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};_.g.gO=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,JK)};_.g.RC=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 _.Wn(d);var e=new _.$h;a.addCallback(this.pob.bind(this,e,c));return e};
_.g.$xa=function(){return new iKc(this.context.Vc,this.context.hB,this.context.IR().fga,this.context.Km(),this.context.CQ,this.context.Be(),this.context.mk())};_.g.ks=function(a,b){var c=this,d=_.mh();this.W.create(d,a);3===a.getType()?a=sM.prototype.ks.call(this,a).addCallback(function(e){return new _.lK(e,1,!1)}):(NL(this.O,"Qubz4b"),a=this.La.enqueue(new aKc(a,b)));return a.addCallback(function(e){qwc(c.W,d,e);return e.response}).zg(function(){GL(c.W,d)})};
_.g.yr=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};_.g.Qaa=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};_.g.b9=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};_.g.KT=function(a){return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};
_.g.BN=function(a,b){var c=this;NL(this.O,"iuEtc");var d=_.mh();this.W.create(d,a);return this.Ia.enqueue(new UJc(a,b)).addCallback(function(e){qwc(c.W,d,e);return e.response}).zg(function(){GL(c.W,d)})};
_.g.fH=function(a,b){var c=this,d=_.me(this.context.Vc.Uf(),30);if(!d||0===d.length)return _.hi(new _.Rc("getUserPrefs requires a namespace.",_.MI(3)));0===_.me(a,3).length&&yoc(a,d);var e=_.mh();this.W.create(e,a);NL(this.O,"OZvrNc");return this.Pa.enqueue(new fKc(a,b)).addCallback(function(f){qwc(c.W,e,f);return f.response}).zg(function(){GL(c.W,e)})};_.g.IS=function(a){lLc(_.me(this.context.Vc.Uf(),30),a);return _.gi(this.H.then(function(b){return b.Pe(a)}).then(null,JK))};
_.g.xu=function(a){var b=this;return _.gi(this.H.then(function(c){return c.Pe(a)}).then(function(c){return _.mI(b.context.Vc)?Lxc(b.context.Df.Jq,c):c},JK))};_.g.wMa=function(a){return this.V.oya(a.clone())};_.g.tra=function(a){return this.V.nya(a.clone())};_.g.VKa=function(a){var b=this;return new MKc(this.context,a,function(c){return b.H.then(function(d){return d.Pe(c)}).then(null,function(d){return JK(d)})})};_.g.WKa=function(a){return this.V.hya(a.clone())};
_.g.l0=function(a){GEc(this.context.Df,[a])};_.g.N0=function(a){return this.H.then(function(b){return b.Pe(a)}).then(null,JK)};_.g.Eo=function(a){if(1!==_.VJ(this.context.Vc))return Promise.reject(Error("$g"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.qc())return Promise.reject(Error("ah"));if(!c.Vk()&&!c.getItem())return Promise.reject(Error("bh"))}this.context.Df.Eo(a);uFc(this.context.Df);return Promise.resolve()};_.g.UCa=function(){return this.context.IR().qK()};
_.g.lz=function(a){var b=this;return this.context.lz(a).then(function(c){return c?(b.context.Jj().lz(a),b.context.Vs.wL()):_.Vh(!a)})};_.g.YY=function(a){jJc(this.context).YY(a);this.lz(!!a)};_.g.FF=function(){wM(this.context).addCallback(function(a){a&&a.lpa()});this.context.Kha.FF()};_.g.VY=function(a){a.AOa(this.context)};_.g.pob=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];uFc(this.context.Df);a.callback(d)};
_.g.sync=function(){var a=this;return _.Xh([this.context.Laa.promise,this.context.gga.promise]).then(function(){return a.context.Vs.wL()}).then()};_.g.Su=function(){wM(this.context).addCallback(function(a){a&&a.dispose()});return sM.prototype.Su.call(this)};_.g.cca=function(){return this.kb.promise};
var xLc=function(){var a='<div class="'+_.C("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.C("la-Y-A")+" "+_.C("kc-A")+'" data-target="reload">');return(0,_.D)(a+"Reload</button>")};
_.hn({id:_.Jl,callback:function(a){var b=_.Ymc(a),c=jpc(a),d=_.x(a.get(_.vd),_.oc,10);_.kic(d,b);_.rj(d,28,c);b=hpc(a,d);a.registerService(_.Kl,b.r$());_.ti(b,"VbxEwf",function(){var e={};_.$c(_.gr.getService(a),new _.bq(new _.aq(xLc,{}),"d",(e.reload=function(){_.aa.window.location.reload()},e),4))});return b}});

_.t();

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

_.yLc=function(a,b){return _.u(a,2,b)};_.zLc=function(a,b){return _.u(a,1,b)};_.ALc=function(a,b){return _.F(a,2,b)};_.BLc=function(a,b){return _.tj(a,1,b)};_.CLc=function(a,b){return _.rj(a,1,b)};_.DLc=function(a,b){return _.tj(a,2,b)};_.ELc=function(a,b){return _.F(a,3,b)};

_.t();

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