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

_.V("c","",1,function(a,b){return(0,_.K)('<div jsname="'+_.J("v5a5C")+'">'+_.T(_.an("a","grayCloudNotFilled",!1)(a,b))+"</div>")});

_.w();

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


_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("vXcQ6e");

_.w();

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

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.Cib=function(a){a=parseInt(_.C(a,3)||"0",10);return 100<=a?"over":90<=a?"near":"under"};_.Hib=function(a,b,c,d){var e=_.re.getService(a);a=e.Qf(a,c);c=a.H.Dk;var f=new _.Dib;b.PY&&_.A(f,2,b.PY);b.RC&&0<=b.RC&&_.A(f,1,b.RC);b.quotaType&&_.A(f,3,b.quotaType);_.Eib(c,f);d&&(b=new _.Fib,_.A(b,1,d),_.Gib(c,b));e.Mf(a)};_.Iib=function(a){return isNaN(a)?0:100<=a?6:95<=a?5:90<=a?4:80<=a?3:70<=a?2:1};_.Eib=function(a,b){b&&(a=a.jd(),_.y(a,29,b))};_.Gib=function(a,b){b&&(a=a.jd(),_.y(a,38,b))};
_.Dib=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Dib,_.L);_.Fib=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Fib,_.L);_.Fib.prototype.zh=function(){return _.C(this,1)};_.r("syo6");
_.Kib=function(a,b,c){var d=_.G(a.get(_.XEa),1,""),e=_.Cib(b);d=new _.Cj(d);a:switch(e){case "over":var f="o";break a;case "near":f="u";break a;default:f="m"}return _.Hj(_.Jj(_.Jj(_.Jj(_.Jj(d,"i",f),"utm_source","drive"),"utm_medium","web"),"utm_campaign",_.Jib(a,e,c)),-1!=parseInt(String(_.D(b,_.ox,2)),10)?"upgrade":"")};
_.Jib=function(a,b,c){switch(c){case "settings":return"settings";case "upload_dialog":return"upload_dialog_oos";case "widget":switch(b){case "over":return"widget_oos";case "near":return"widget_near_quota";default:return"widget_normal"}default:switch(b){case "near":case "over":return"upsell";default:return"manage"}}};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sysy");

var Lib=_.Jib,Mib=_.Kib;_.Jib=function(a,b,c){return"over"==b&&_.E(a.get(_.Hb),18,!1)?"widget_trial":Lib(a,b,c)};_.Kib=function(a,b,c){c=Mib(a,b,c);"over"===_.Cib(b)&&_.E(a.get(_.Hb),18,!1)&&_.Jj(c,"eft","1");return c};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("em0");


_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16j");
_.sOc=[9,42,41,44,38,20,21,16,12,3,10,11,18,14,32,1,67,68,7,24,25,159,154,158,155,55,4,83,19,2,6,27];_.tOc=[90,59,75];_.uOc=_.xa(_.sOc,_.tOc);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16l");

_.sOc.push(210);_.sOc.push(210);_.uOc.push(210);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("em1d");


_.w();

}catch(e){_._DumpException(e)}
try{
var hsb,jsb;hsb=[4,5,6,7];_.isb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.isb,_.L);_.isb.prototype.Zu=function(){return _.C(this,2)};_.isb.prototype.TSa=function(){return _.C(this,3)};jsb=[5];_.ksb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ksb,_.L);_.lsb=function(a){(0,_.S)(this,a,0,-1,jsb,null)};_.O(_.lsb,_.L);_.g=_.lsb.prototype;_.g.Ub="dzR11e";_.g.oE=function(){return _.C(this,1)};_.g.DN=function(){return _.C(this,3)};_.g.yP=function(){return _.Lk(this,_.isb,5)};
_.g.Fm=function(){return _.C(this,6)};_.g.Pw=function(){return _.C(this,7)};_.g.sy=function(){return _.C(this,10)};_.uB=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.uB,_.L);_.uB.prototype.Ub="JmcaR";_.uB.prototype.Cb=function(){return _.C(this,1)};_.uB.prototype.Ac=function(a){return _.A(this,1,a)};_.uB.prototype.K_=function(){return _.C(this,2)};_.msb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.msb,_.L);_.msb.prototype.Ub="dvhrqe";_.msb.prototype.O=function(){return _.H(this,1)};
_.nsb=function(a){(0,_.S)(this,a,0,-1,hsb,null)};_.O(_.nsb,_.L);_.nsb.prototype.O=function(){return _.D(this,_.lsb,1)};_.nsb.prototype.fF=function(){return _.D(this,_.uB,8)};_.nsb.prototype.V=function(){return _.D(this,_.msb,9)};_.r("syo4");
_.vB=function(a){(0,_.S)(this,a,0,-1,osb,null)};_.O(_.vB,_.L);var osb=[2];_.vB.prototype.getUser=function(){return _.D(this,_.ml,1)};_.vB.prototype.getMetadata=function(){return _.D(this,_.nsb,3)};_.vB.prototype.Ap=function(){return _.sk(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.rsb=function(a){return a instanceof _.Ub?a:a instanceof _.Vb?a.Kg:null};_.r("syo5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.Pz=function(a){if(Array.isArray(a))return a.map(_.Pz).join("");if(_.C(a,2)){if(!a.getId())throw Error("id");return a.getId()+"/"+_.C(a,2)+","}return""};_.r("syp5");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sypb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sypc");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var Osb,Psb;_.Nsb=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")};Osb={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};
Psb=function(a){var b=_.wga(Osb,function(c){return a==c});if(void 0===b)throw Error("kb`"+a);return b};_.Qsb=function(a,b){void 0!==a.name?(this.name=a.name,this.code=Osb[a.name]):(this.code=a=a.code,this.name=Psb(a));_.fa.call(this,_.Nsb("%s %s",this.name,b))};_.O(_.Qsb,_.fa);var Rsb=function(a,b){_.Fi.call(this,a.type,b)};_.O(Rsb,_.Fi);_.r("sypd");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.Ssb=function(){_.Q.call(this);this.H=new FileReader;this.H.onloadstart=(0,_.v)(this.pZ,this);this.H.onprogress=(0,_.v)(this.pZ,this);this.H.onload=(0,_.v)(this.pZ,this);this.H.onabort=(0,_.v)(this.pZ,this);this.H.onerror=(0,_.v)(this.pZ,this);this.H.onloadend=(0,_.v)(this.pZ,this)};_.O(_.Ssb,_.Q);_.g=_.Ssb.prototype;_.g.abort=function(){try{this.H.abort()}catch(a){throw new _.Qsb(a,"aborting read");}};_.g.getResult=function(){return this.H.result};
_.g.getError=function(){return this.H.error&&new _.Qsb(this.H.error,"reading file")};_.g.pZ=function(a){this.dispatchEvent(new Rsb(a,this))};_.g.Wa=function(){_.Ssb.nb.Wa.call(this);delete this.H};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sytu");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sytw");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syub");

_.w();

}catch(e){_._DumpException(e)}
try{
var Qob;Qob=[1,3];_.zA=function(a){(0,_.S)(this,a,0,-1,Qob,null)};_.O(_.zA,_.L);_.zA.prototype.Wl=function(){return _.Jd(this,1)};_.Rob=function(a,b){return _.A(a,1,b||[])};_.zA.prototype.re=function(){return _.D(this,_.bf,2)};_.AA=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.AA,_.L);_.g=_.AA.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};
_.g.getState=function(){return _.C(this,5)};_.g.Fd=function(a){return _.A(this,5,a)};_.g.wr=function(){return _.sk(this,5)};_.Sob=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Sob,_.L);_.Sob.prototype.O=function(){return _.C(this,1)};_.Sob.prototype.Cb=function(){return _.C(this,2)};_.Sob.prototype.Ac=function(a){return _.A(this,2,a)};_.Sob.prototype.V=function(){return _.C(this,3)};_.r("syua");
_.Uob=function(a){(0,_.S)(this,a,0,-1,Tob,null)};_.O(_.Uob,_.L);var Tob=[1];_.Uob.prototype.O=function(){return _.Jd(this,1)};
_.Wob=function(a){(0,_.S)(this,a,0,-1,Vob,null)};_.O(_.Wob,_.L);var Vob=[1];_.Wob.prototype.O=function(){return _.Lk(this,_.Sob,1)};
_.Yob=function(a){(0,_.S)(this,a,0,-1,Xob,null)};_.O(_.Yob,_.L);var Xob=[1];_.Yob.prototype.O=function(){return _.Lk(this,_.Wob,1)};_.Yob.prototype.addResult=function(a,b){return _.Rk(this,1,a,_.Wob,b)};
_.Zob=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Zob,_.L);_.Zob.prototype.V=function(){return _.D(this,_.Yob,1)};_.Zob.prototype.O=function(){return _.D(this,_.Uob,2)};
_.BA=function(a){(0,_.S)(this,a,0,-1,$ob,null)};_.O(_.BA,_.L);var $ob=[2,14,18];_.g=_.BA.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Dd=function(){return _.Lk(this,_.Cl,2)};_.g.Hv=function(a){return _.kb(this,2,a)};_.g.Pg=function(a,b){return _.Rk(this,2,a,_.Cl,b)};_.g.Dj=function(){return _.C(this,3)};_.g.Qk=function(){return _.E(this,5,!0)};_.g.P3=function(){return _.D(this,_.Zob,7)};_.g.Epa=function(){return _.H(this,8)};
_.g.xf=function(){return _.C(this,17)};_.g.IN=function(a){return _.A(this,17,a)};_.g.Ue=function(){return _.C(this,12)};_.g.Ci=function(a){return _.A(this,12,a)};_.g.Tn=function(){return _.C(this,15)};_.g.Qha=function(){return _.Jd(this,18)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syuc");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syud");

_.w();

}catch(e){_._DumpException(e)}
try{
_.kC=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.kC,_.L);_.kC.prototype.getKey=function(){return _.D(this,_.xb,1)};_.kC.prototype.Nq=function(){return _.sk(this,1)};_.kC.prototype.re=function(){return _.D(this,_.bf,2)};_.lC=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.lC,_.L);_.lC.prototype.re=function(){return _.D(this,_.bf,2)};_.r("syv6");
_.mC=function(a){(0,_.S)(this,a,0,-1,lyb,null)};_.O(_.mC,_.L);var lyb=[3];_.mC.prototype.re=function(){return _.D(this,_.bf,1)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syvu");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.pD=function(a,b,c){_.P.call(this);this.kq=null!=c?(0,_.v)(a,c):a;this.ka=b;this.Fg=(0,_.v)(this.Y5a,this);this.O=!1;this.V=0;this.W=this.H=null;this.ha=[]};_.O(_.pD,_.P);_.g=_.pD.prototype;_.g.ue=function(a){this.ha=arguments;this.O=!1;this.H?this.W=_.xf()+this.ka:this.H=_.Qi(this.Fg,this.ka)};_.g.stop=function(){this.H&&(_.Ri(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.kq.apply(null,this.ha)))};_.g.Wa=function(){this.stop();_.pD.nb.Wa.call(this)};_.g.Y5a=function(){this.W?(this.H=_.Qi(this.Fg,this.W-_.xf()),this.W=null):(this.H=null,this.V?this.O=!0:(this.O=!1,this.kq.apply(null,this.ha)))};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxy");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syxz");
_.TE=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.TE,_.L);_.TE.prototype.ka=function(){return _.yk(this,1)};_.TE.prototype.V=function(){return _.yk(this,2)};_.TE.prototype.O=function(){return _.yk(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy5");
_.FSb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.FSb,_.L);_.FSb.prototype.ki=function(){return _.C(this,3)};_.FSb.prototype.Th=function(a){return _.A(this,3,a)};_.FSb.prototype.re=function(){return _.D(this,_.bf,5)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyl");

_.w();

}catch(e){_._DumpException(e)}
try{
_.IF=function(a){return _.C(a,11)};_.r("syy8");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syy9");
_.JF=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.JF,_.L);_.JF.prototype.Gc=function(){return _.C(this,1)};_.kTb=function(a){var b=new _.JF;return _.A(b,1,a)};_.JF.prototype.ki=function(){return _.C(this,2)};_.JF.prototype.Th=function(a){return _.A(this,2,a)};_.JF.prototype.re=function(){return _.D(this,_.bf,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syya");

_.w();

}catch(e){_._DumpException(e)}
try{
_.PSb=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.PSb,_.L);_.r("syyb");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyd");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syye");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("syyk");

_.w();

}catch(e){_._DumpException(e)}
try{
_.CF=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.CF,_.L);_.CF.prototype.getName=function(){return _.C(this,1)};_.CF.prototype.hd=function(a){return _.A(this,1,a)};_.CF.prototype.re=function(){return _.D(this,_.bf,2)};_.r("syym");
_.DF=function(a){(0,_.S)(this,a,0,-1,pSb,null)};_.O(_.DF,_.L);var pSb=[5,6,9,10,12,13,15,16];_.DF.prototype.getId=function(){return _.C(this,1)};_.DF.prototype.Pb=function(a){return _.A(this,1,a)};_.DF.prototype.Dy=function(){return _.C(this,2)};
_.rSb=function(a){(0,_.S)(this,a,0,-1,qSb,null)};_.O(_.rSb,_.L);var qSb=[2,4];_.rSb.prototype.Om=function(){return _.C(this,1)};_.sSb=function(a,b){return _.A(a,1,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy11o");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var c8b=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}function b(t){for(var u=h,z=0;64>z;z+=4)u[z/4]=t[z]<<24|t[z+1]<<16|t[z+2]<<8|t[z+3];for(z=16;80>z;z++)t=u[z-3]^u[z-8]^u[z-14]^u[z-16],u[z]=(t<<1|t>>>31)&4294967295;t=e[0];var B=e[1],F=e[2],I=e[3],M=e[4];for(z=0;80>z;z++){if(40>z)if(20>z){var U=I^B&(F^I);var R=1518500249}else U=B^F^I,R=1859775393;else 60>z?(U=B&F|I&(B|F),R=2400959708):(U=B^F^I,R=3395469782);U=((t<<5|t>>>27)&4294967295)+
U+M+R+u[z]&4294967295;M=I;I=F;F=(B<<30|B>>>2)&4294967295;B=t;t=U}e[0]=e[0]+t&4294967295;e[1]=e[1]+B&4294967295;e[2]=e[2]+F&4294967295;e[3]=e[3]+I&4294967295;e[4]=e[4]+M&4294967295}function c(t,u){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var z=[],B=0,F=t.length;B<F;++B)z.push(t.charCodeAt(B));t=z}u||(u=t.length);z=0;if(0==n)for(;z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64;for(;z<u;)if(f[n++]=t[z++],p++,64==n)for(n=0,b(f);z+64<u;)b(t.slice(z,z+64)),z+=64,p+=64}function d(){var t=[],
u=8*p;56>n?c(k,56-n):c(k,64-(n-56));for(var z=63;56<=z;z--)f[z]=u&255,u>>>=8;b(f);for(z=u=0;5>z;z++)for(var B=24;0<=B;B-=8)t[u++]=e[z]>>B&255;return t}for(var e=[],f=[],h=[],k=[128],l=1;64>l;++l)k[l]=0;var n,p;a();return{reset:a,update:c,digest:d,digestString:function(){for(var t=d(),u="",z=0;z<t.length;z++)u+="0123456789ABCDEF".charAt(Math.floor(t[z]/16))+"0123456789ABCDEF".charAt(t[z]%16);return u}}};_.r("sy11j");
var d8b=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("ue`"+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("ve`"+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 f8b=function(a,b,c){var d=String(_.q.location.href);return d&&a&&b?[b,e8b(d8b(d),a,c||null)].join(" "):null},e8b=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],_.Ka(d,function(k){e.push(k)}),g8b(e.join(" "));var f=[],h=[];_.Ka(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=_.oa(f)?[c,b,a]:[f.join(":"),c,b,a];_.Ka(d,function(k){e.push(k)});a=g8b(e.join(" "));a=[c,a];_.oa(h)||a.push(h.join(""));return a.join("_")},g8b=function(a){var b=
c8b();b.update(a);return b.digestString().toLowerCase()};
var h8b={};
var i8b,k8b;i8b=function(a){return!!h8b.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};_.j8b=function(a){a=void 0===a?!1:a;var b=_.q.__SAPISID||_.q.__APISID||_.q.__3PSAPISID||_.q.__OVERRIDE_SID;i8b(a)&&(b=b||_.q.__1PSAPISID);if(b)return!0;var c=new _.Jfb(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");i8b(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};k8b=function(a,b,c,d){(a=_.q[a])||(a=(new _.Jfb(document)).get(b));return a?f8b(a,c,d):null};
_.l8b=function(a,b){b=void 0===b?!1:b;var c=d8b(String(_.q.location.href)),d=[];if(_.j8b(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?_.q.__SAPISID:_.q.__APISID;e||(e=new _.Jfb(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?f8b(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&i8b(b)&&((b=k8b("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=k8b("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};

_.w();

}catch(e){_._DumpException(e)}
try{
_.m8b=function(a,b,c){_.zj(a.url,function(d){d=d.target;d.fu()?b(d.kl()):c(d.Cb())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};_.QG=function(a,b){a.H=b;a.ka=0};_.RG=function(a,b){return _.A(a,b,[])};_.r("sy11i");
var o8b=function(a){(0,_.S)(this,a,0,-1,n8b,null)};_.O(o8b,_.L);var n8b=[2];
_.p8b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.p8b,_.L);_.p8b.prototype.wi=function(){return _.C(this,7)};
_.q8b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.q8b,_.L);_.Vk[66321687]=new _.kk(66321687,_.q8b);
var r8b;_.SG=function(a){(0,_.S)(this,a,0,31,r8b,null)};_.O(_.SG,_.L);r8b=[3,20,27];_.TG=function(a,b){return _.A(a,8,b)};
var t8b=function(a){(0,_.S)(this,a,0,17,s8b,null)};_.O(t8b,_.L);var s8b=[3,5],u8b=function(a){var b=_.xf().toString();return _.A(a,4,b)},v8b=function(a,b){return _.kb(a,3,b)},w8b=function(a,b){return _.A(a,14,b)};
var y8b=function(a){(0,_.S)(this,a,0,6,x8b,null)};_.O(y8b,_.L);var x8b=[5];
var z8b=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(z8b,_.L);
var A8b=new _.kk(175237375,z8b);
var C8b;
_.UG=function(a,b,c,d,e,f,h,k,l,n,p){_.Q.call(this);this.yd=a;this.ob=b||_.vf;this.ha=new t8b;this.Fa="";this.od=d;this.Ab=p;this.H=[];this.Hc="";this.ye=_.Wa(_.fia,0,1);this.oa=e||null;this.Ba=c||null;this.Ha=h||!1;this.Ta=l||null;this.Hb=this.Ob=this.V=!1;this.Nc=this.$a=-1;this.Wb=!1;this.W=null;this.Qd=!k;this.va=null;this.Pa=0;this.le=1;this.qc=f||!1;this.kb=!1;this.be=!this.qc&&(_.Qj.Em&&_.ab(65)||_.Qj.Fv&&_.ab(45)||_.Qj.Js&&_.ab(12)||_.eh()&&0<=_.ag(_.Gha(),12))&&!!_.Ye()&&!!_.Ye().navigator&&!!_.Ye().navigator.sendBeacon;
a=_.A(new _.q8b,1,1);f||(f=new _.p8b,b=document.documentElement.getAttribute("lang"),f=_.A(f,5,b),_.y(a,11,f));_.y(this.ha,1,a);_.A(this.ha,2,this.yd);this.ka=new _.OG(1E4,3E5,.1);this.O=new _.Pi(this.ka.Ya());this.La(this.O);_.de(this.O,"tick",_.mfa(B8b(this,n)),!1,this);this.Ja=new _.Pi(6E5);this.La(this.Ja);_.de(this.Ja,"tick",_.mfa(B8b(this,n)),!1,this);this.Ha||this.Ja.start();this.qc||(_.de(_.Ye(),"beforeunload",this.ma,!1,this),_.de(_.Ye(),"unload",this.ma,!1,this),_.de(document,"pagehide",
this.ma,!1,this))};_.O(_.UG,_.Q);var B8b=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};_.UG.prototype.Wa=function(){this.ma();_.UG.nb.Wa.call(this)};C8b=function(a){a.oa||(a.oa=.01>a.ye()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.oa};_.D8b=function(a,b){b?(a.W||(a.W=new o8b),b=b.Xb(),_.A(a.W,4,b)):a.W&&_.Bk(a.W,4)};_.E8b=function(a){a.Ob=a.be};_.F8b=function(a,b){a.ka=new _.OG(1>b?1:b,3E5,.1);a.O.setInterval(a.ka.Ya())};
_.UG.prototype.log=function(a){a=_.Uk(a);var b=this.le++;_.A(a,21,b);this.Fa&&_.A(a,26,this.Fa);if(!_.C(a,1)){b=a;var c=Date.now().toString();_.A(b,1,c)}_.sk(a,15)||_.A(a,15,60*(new Date).getTimezoneOffset());this.W&&(b=_.Uk(this.W),_.y(a,16,b));for(;1E3<=this.H.length;)this.H.shift(),++this.Pa;this.H.push(a);this.dispatchEvent(new G8b(a));this.Ha||this.O.enabled||this.O.start()};
_.UG.prototype.flush=function(a,b){var c=this;if(0==this.H.length)a&&a();else if(this.kb)H8b(this);else{var d=_.xf();if(this.Nc>d&&this.$a<d)b&&b("throttled");else{var e=w8b(v8b(u8b(_.Uk(this.ha)),this.H),this.Pa);d={};var f=this.ob();f&&(d.Authorization=f);var h=C8b(this);this.Ba&&(d["X-Goog-AuthUser"]=this.Ba,h=_.rj(h,"authuser",this.Ba));this.Ta&&(d["X-Goog-PageId"]=this.Ta,h=_.rj(h,"pageId",this.Ta));if(f&&this.Hc==f)b&&b("stale-auth-token");else if(this.H=[],this.O.enabled&&this.O.stop(),this.Pa=
0,this.V)a&&a();else{var k=e.Xb(),l;this.va&&this.va.H(k.length)&&(l=this.va.O(k));var n={url:h,body:k,Ahb:1,requestHeaders:d,requestType:"POST",withCredentials:this.Qd,timeoutMillis:0},p=(0,_.v)(function(z){this.ka.reset();this.O.setInterval(this.ka.Ya());if(z){try{var B=JSON.parse(z.replace(")]}'\n",""));var F=new y8b(B)}catch(I){}F&&(z=_.xk(F,1,"-1"),z=Number(z),0<z&&(this.$a=_.xf(),this.Nc=this.$a+z),F=F.ha(A8b))&&(F=_.wk(F,1,-1),-1!=F&&(this.Wb||_.F8b(this,F)))}a&&a()},this),t=(0,_.v)(function(z){var B=
_.Lk(e,_.SG,3);_.PG(this.ka);this.O.setInterval(this.ka.Ya());401==z&&f&&(this.Hc=f);if(500<=z&&600>z||401==z||0==z)this.H=B.concat(this.H),this.Ha||this.O.enabled||this.O.start();b&&b("net-send-failed",z)},this),u=function(){c.Ab?c.Ab.send(n,p,t):c.od(n,p,t)};l?l.then(function(z){n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=z;n.Ahb=2;u()},function(){u()}):u()}}}};
_.UG.prototype.ma=function(){this.V||(this.Ob&&H8b(this),this.Hb&&I8b(this),this.flush())};
var H8b=function(a){J8b(a,32,10,function(b,c){b=_.rj(b,"format","json");b=_.Ye().navigator.sendBeacon(b,c.Xb());a.kb&&!b&&(a.kb=!1);return b})},I8b=function(a){J8b(a,6,5,function(b,c){b=_.pj(b,"format","base64json","p",_.Tj(c.Xb(),3));_.Lg(new Image,b);return!0})},J8b=function(a,b,c,d){if(0!=a.H.length){var e=_.Kka(C8b(a),"format");e=_.pj(e,"auth",a.ob(),"authuser",a.Ba||"0");for(var f=0;f<c&&a.H.length;++f){var h=a.H.slice(0,b),k=v8b(u8b(_.Uk(a.ha)),h);if(!d(e,k))break;a.H=a.H.slice(h.length)}}},
G8b=function(){this.type="event-logged"};_.O(G8b,_.Fi);
_.VG=function(a,b,c,d,e,f,h){_.UG.call(this,a,_.l8b,b,_.m8b,c,d,e,void 0,f,h)};_.N(_.VG,_.UG);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy12h");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14i");
_.vOc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.vOc,_.L);_.g=_.vOc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Nq=function(){return _.sk(this,1)};_.g.Ya=function(){return _.C(this,2)};_.g.Kb=function(a){return _.A(this,2,a)};_.g.qj=function(){return _.Bk(this,2)};_.g.oh=function(){return _.sk(this,2)};
_.HK=function(a){(0,_.S)(this,a,0,-1,wOc,null)};_.O(_.HK,_.L);var wOc=[2,4,6];_.HK.prototype.By=function(){return _.C(this,1)};_.HK.prototype.getUrl=function(){return _.C(this,3)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14j");
_.xOc={drive:1,appDataFolder:2,photos:3,androidBackup:4};_.yOc=_.mg(_.xOc);

_.w();

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

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.IK=function(a,b){return _.A(a,4,b)};_.BOc=function(a,b){_.A(a,11,b)};_.COc=function(a,b){return _.A(a,25,b)};_.r("sy14r");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.JK=function(a,b,c){_.P.call(this);this.kq=null!=c?a.bind(c):a;this.ha=b;this.W=null;this.O=!1;this.V=0;this.H=null};_.N(_.JK,_.P);_.g=_.JK.prototype;_.g.ue=function(a){this.W=arguments;this.H||this.V?this.O=!0:DOc(this)};_.g.stop=function(){this.H&&(_.Ri(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,DOc(this))};_.g.Wa=function(){_.P.prototype.Wa.call(this);this.stop()};
var DOc=function(a){a.H=_.Qi(function(){a.H=null;a.O&&!a.V&&(a.O=!1,DOc(a))},a.ha);var b=a.W;a.W=null;a.kq.apply(null,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
var EOc,HOc;EOc=[3,42];_.FOc=function(a){(0,_.S)(this,a,0,-1,EOc,null)};_.O(_.FOc,_.L);_.FOc.prototype.getMimeType=function(){return _.C(this,27)};_.GOc=function(a){return _.jb(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};HOc=function(a,b){if(b&&a in b)return a;var c=_.BGa();return c?(c=c.toLowerCase(),a=c+_.Cha(a),void 0===b||a in b?a:null):null};_.r("sy14s");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var IOc=function(a){_.Fi.call(this,"visibilitychange");this.hidden=a};_.N(IOc,_.Fi);
_.JOc=function(a){_.Q.call(this);this.ld=a||_.Ah();if(this.Nz=this.Vnb())this.H=_.de(this.ld.Sb(),this.Nz,(0,_.v)(this.P6a,this))};_.O(_.JOc,_.Q);_.g=_.JOc.prototype;_.g.Vnb=_.fca(function(){var a=!!this.J7(),b="hidden"!=this.J7();if(a){var c;b?c=((_.BGa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});_.g.J7=_.fca(function(){return HOc("hidden",this.ld.Sb())});_.g.upb=_.fca(function(){return HOc("visibilityState",this.ld.Sb())});_.g.PP=function(){return!!this.ld.Sb()[this.J7()]};
_.g.P6a=function(){var a=this.J7()?this.ld.Sb()[this.upb()]:null;a=new IOc(this.PP(),a);this.dispatchEvent(a)};_.g.Wa=function(){_.Ni(this.H);_.JOc.nb.Wa.call(this)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy14t");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.KK=function(){this.H=64;this.O=Array(4);this.ha=Array(this.H);this.W=this.V=0;this.reset()};_.O(_.KK,_.AOc);_.KK.prototype.reset=function(){this.O[0]=1732584193;this.O[1]=4023233417;this.O[2]=2562383102;this.O[3]=271733878;this.W=this.V=0};
var KOc=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.O[0];c=a.O[1];e=a.O[2];var f=a.O[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.O[0]=a.O[0]+b&4294967295;a.O[1]=a.O[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.O[2]=a.O[2]+e&4294967295;a.O[3]=a.O[3]+f&4294967295};
_.KK.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.H,d=this.ha,e=this.V,f=0;f<b;){if(0==e)for(;f<=c;)KOc(this,a,f),f+=this.H;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.H){KOc(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.H){KOc(this,d);e=0;break}}this.V=e;this.W+=b};
_.KK.prototype.digest=function(){var a=Array((56>this.V?this.H:2*this.H)-this.V);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.W;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.O[b]>>>d&255;return a};

_.w();

}catch(e){_._DumpException(e)}
try{
var LOc;LOc=[2];_.MOc=function(a){(0,_.S)(this,a,0,-1,LOc,null)};_.O(_.MOc,_.L);_.MOc.prototype.Cb=function(){return _.C(this,1)};_.MOc.prototype.Ac=function(a){return _.A(this,1,a)};_.MOc.prototype.Dj=function(){return _.C(this,3)};_.r("sy15l");
_.LK=function(a){(0,_.S)(this,a,0,-1,NOc,null)};_.O(_.LK,_.L);var NOc=[1];_.LK.prototype.O=function(){return _.Jd(this,1)};_.LK.prototype.re=function(){return _.D(this,_.bf,2)};_.OOc=function(a,b){return _.y(a,2,b)};_.LK.prototype.ki=function(){return _.wk(this,3,20)};_.LK.prototype.Th=function(a){return _.A(this,3,a)};_.LK.prototype.Vl=function(){return _.H(this,4)};_.POc=function(a,b){return _.A(a,4,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15y");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.QOc=function(a){_.P.call(this);this.O=a;this.H={};this.O.GM((0,_.v)(this.V,this))};_.O(_.QOc,_.P);_.SOc=function(a,b){if(-1!=b.indexOf(":"))throw Error("ze`"+b);if(b in a.H)throw Error("Ae`"+b);var c=new ROc(a,b);return a.H[b]=c};_.QOc.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)}};_.QOc.prototype.Wa=function(){_.bg(this.H,function(a){_.aa(a)});_.aa(this.O);delete this.H;delete this.O};
var ROc=function(a,b){_.P.call(this);this.ug=a;this.H=b};_.O(ROc,_.P);_.g=ROc.prototype;_.g.connect=function(a){a&&a()};_.g.isConnected=function(){return!0};_.g.registerService=function(a,b,c){this.ug.O.registerService(this.H+":"+a,(0,_.v)(this.XPa,this,b),c)};_.g.GM=function(a){this.O=(0,_.v)(this.XPa,this,a)};_.g.send=function(a,b){if(this.isDisposed())throw Error("Be");this.ug.O.send(this.H+":"+a,b)};_.g.XPa=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};
_.g.Wa=function(){this.ug=this.ug.H[this.H]=null};

_.w();

}catch(e){_._DumpException(e)}
try{
var TOc=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(_.dfa);try{delete a[_.dfa]}catch(b){}},MK=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(_.Da(f)){f[_.dfa]||c.push(f);var l=_.Ea(f);if(d[l])b.push("*** reference loop detected (id="+l+") ***");else{d[l]=
!0;b.push("{");for(var n in f)"function"!==typeof f[n]&&(b.push("\n"),b.push(k),b.push(n+" = "),e(f[n],k));b.push("\n"+h+"}");delete d[l]}}else b.push(f)}catch(p){b.push("*** "+p+" ***")}};e(a,"");for(a=0;a<c.length;a++)TOc(c[a]);return b.join("")};_.r("sy15z");
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var UOc,OK,WOc,VOc;_.NK=function(a,b,c){if("number"===typeof a)var d={name:VOc(a)};else d=a,a=WOc(a.name);this.code=a;this.O=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);_.fa.call(this,b)};_.O(_.NK,_.fa);_.NK.prototype.getName=function(){return this.O.name||""};OK={ofb:1,zeb:2,NOT_FOUND_ERR:3,T4a:4,$4a:5,Beb:6,jfb:7,ABORT_ERR:8,Qeb:9,i1b:10,TIMEOUT_ERR:11,Neb:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14};_.XOc=(_.q.GG||_.q.wJ||OK).ofb;_.YOc=(_.q.GG||_.q.wJ||OK).zeb;_.ZOc=(_.q.GG||_.q.wJ||OK).NOT_FOUND_ERR;
_.$Oc=(_.q.GG||_.q.wJ||OK).T4a;_.aPc=(_.q.GG||_.q.wJ||OK).$4a;_.bPc=(_.q.GG||_.q.wJ||OK).Beb;_.cPc=(_.q.GG||_.q.wJ||OK).jfb;_.dPc=(_.q.GG||_.q.wJ||OK).ABORT_ERR;_.ePc=(_.q.GG||_.q.wJ||OK).Qeb;_.fPc=(_.q.GG||_.q.wJ||OK).TIMEOUT_ERR;_.gPc=(_.q.GG||_.q.wJ||OK).Neb;_.hPc=(_.q.DOMException||OK).INVALID_ACCESS_ERR;_.iPc=(_.q.DOMException||OK).INVALID_STATE_ERR;
WOc=function(a){switch(a){case "UnknownError":return _.XOc;case "NotFoundError":return _.ZOc;case "ConstraintError":return _.$Oc;case "DataError":return _.aPc;case "TransactionInactiveError":return _.cPc;case "AbortError":return _.dPc;case "ReadOnlyError":return _.ePc;case "TimeoutError":return _.fPc;case "QuotaExceededError":return _.gPc;case "InvalidAccessError":return _.hPc;case "InvalidStateError":return _.iPc;default:return _.XOc}};
VOc=function(a){switch(a){case _.XOc:return"UnknownError";case _.ZOc:return"NotFoundError";case _.$Oc:return"ConstraintError";case _.aPc:return"DataError";case _.cPc:return"TransactionInactiveError";case _.dPc:return"AbortError";case _.ePc:return"ReadOnlyError";case _.fPc:return"TimeoutError";case _.gPc:return"QuotaExceededError";case _.hPc:return"InvalidAccessError";case _.iPc:return"InvalidStateError";default:return"UnknownError"}};
_.PK=function(a,b){return"error"in a?new _.NK(a.error,b):new _.NK({name:"UnknownError"},b)};_.QK=function(a,b){if("name"in a)return b=b+": "+a.message,new _.NK(a,b);if("code"in a){var c=VOc(a.code);b=b+": "+a.message;return new _.NK({name:c},b)}return new _.NK({name:"UnknownError"},b)};
_.jPc=function(a){this.H=a};_.kPc=_.q.IDBKeyRange||_.q.webkitIDBKeyRange;_.jPc.prototype.range=function(){return this.H};
var lPc=function(a){this.H=a};lPc.prototype.getName=function(){return this.H.name};var mPc=function(a,b,c,d){var e=new _.ri;try{var f=a.H[b](d)}catch(h){return c+=" with key "+MK(d),e.Sd(_.QK(h,c)),e}f.onsuccess=function(h){e.callback(h.target.result)};f.onerror=function(h){c+=" with key "+MK(d);e.Sd(_.PK(h.target,c))};return e};lPc.prototype.get=function(a){return mPc(this,"get","getting from index "+this.getName(),a)};
lPc.prototype.getKey=function(a){return mPc(this,"getKey","getting key from index "+this.getName(),a)};lPc.prototype.getAll=function(a,b){return _.nPc(this,"getAll","getting all from index "+this.getName(),a,b)};
_.nPc=function(a,b,c,d,e){var f;void 0===d?f=void 0:f=d instanceof _.jPc?d.range():(new _.jPc(_.kPc.only(d))).range();var h=new _.ri;try{var k=a.H[b](f,e)}catch(l){return c+=" for range "+(f?MK(f):"<all>"),h.Sd(_.QK(l,c)),h}k.onsuccess=function(){h.callback(k.result)};k.onerror=function(l){c+=" for range "+(f?MK(f):"<all>");h.Sd(_.PK(l.target,c))};return h};
var oPc=function(a){this.H=a};oPc.prototype.getName=function(){return this.H.name};var pPc=function(a,b,c,d,e){var f=new _.ri;try{var h=e?a.H[b](d,e):a.H[b](d)}catch(k){return c+=MK(d),e&&(c+=", with key "+MK(e)),f.Sd(_.QK(k,c)),f}h.onsuccess=function(k){f.callback(k.target.result)};h.onerror=function(k){c+=MK(d);e&&(c+=", with key "+MK(e));f.Sd(_.PK(k.target,c))};return f};_.g=oPc.prototype;_.g.put=function(a,b){return pPc(this,"put","putting into "+this.getName()+" with value",a,b)};
_.g.add=function(a,b){return pPc(this,"add","adding into "+this.getName()+" with value ",a,b)};_.g.remove=function(a){var b=new _.ri;try{var c=this.H["delete"](a instanceof _.jPc?a.range():a)}catch(e){return c="removing from "+this.getName()+" with key "+MK(a),b.Sd(_.QK(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+MK(a);b.Sd(_.PK(e.target,f))};return b};
_.g.get=function(a){var b=new _.ri;try{var c=this.H.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+MK(a),b.Sd(_.QK(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 "+MK(a);b.Sd(_.PK(e.target,f))};return b};_.g.getAll=function(a,b){return qPc(this,"getting all from index "+this.getName(),a,b)};
var qPc=function(a,b,c,d){var e;void 0===c?e=void 0:e=c instanceof _.jPc?c.range():(new _.jPc(_.kPc.only(c))).range();var f=new _.ri;try{var h=a.H.getAll(e,d)}catch(k){return b+=" for range "+(e?MK(e):"<all>"),f.Sd(_.QK(k,b)),f}h.onsuccess=function(){f.callback(h.result)};h.onerror=function(k){b+=" for range "+(e?MK(e):"<all>");f.Sd(_.PK(k.target,b))};return f};
oPc.prototype.clear=function(){var a="clearing store "+this.getName(),b=new _.ri;try{var c=this.H.clear()}catch(d){return b.Sd(_.QK(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){b.Sd(_.PK(d.target,a))};return b};oPc.prototype.getIndex=function(a){try{return new lPc(this.H.index(a))}catch(b){throw _.QK(b,"getting index "+a);}};
oPc.prototype.count=function(a){var b=new _.ri;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.Sd(_.PK(e.target,d.getName()))}}catch(e){b.Sd(_.QK(e,this.getName()))}return b};
var rPc=function(a,b){_.Q.call(this);this.H=a;this.O=b;this.ub=new _.pe(this);this.ub.listen(this.H,"complete",(0,_.v)(this.dispatchEvent,this,"complete"));this.ub.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.ub.listen(this.H,"error",this.Q6a)};_.O(rPc,_.Q);_.g=rPc.prototype;_.g.Q6a=function(a){a.target instanceof _.NK?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:_.PK(a.target,"in transaction")})};_.g.Lh=function(){return this.H.mode};
_.g.objectStore=function(a){try{return new oPc(this.H.objectStore(a))}catch(b){throw _.QK(b,"getting object store "+a);}};_.g.commit=function(a){if(this.H.commit||!a)try{this.H.commit()}catch(b){throw _.QK(b,"cannot commit the transaction");}};
_.g.wait=function(){var a=new _.ri;_.te(this,"complete",(0,_.v)(a.callback,a));var b=_.te(this,"abort",function(){_.Ni(c);a.Sd(new _.NK(_.dPc,"waiting for transaction to complete"))});var c=_.te(this,"error",function(e){_.Ni(b);a.Sd(e.target)});var d=this.O;return a.addCallback(function(){return d})};_.g.abort=function(){this.H.abort()};_.g.Wa=function(){rPc.nb.Wa.call(this);this.ub.dispose()};
var sPc=function(a){_.Q.call(this);this.H=a;this.ub=new _.pe(this);this.ub.listen(this.H,"abort",(0,_.v)(this.dispatchEvent,this,"abort"));this.ub.listen(this.H,"error",this.R6a);this.ub.listen(this.H,"versionchange",this.llb);this.ub.listen(this.H,"close",(0,_.v)(this.dispatchEvent,this,"close"))};_.O(sPc,_.Q);_.g=sPc.prototype;_.g.Rpa=!0;_.g.R6a=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};
_.g.llb=function(a){this.dispatchEvent(new tPc(a.oldVersion,a.newVersion))};_.g.close=function(){this.Rpa&&(this.H.close(),this.Rpa=!1)};_.g.jg=function(){return this.Rpa};_.g.getName=function(){return this.H.name};_.g.yi=function(){return Number(this.H.version)};_.uPc=function(a,b,c){try{return new oPc(a.H.createObjectStore(b,c))}catch(d){throw _.QK(d,"creating object store "+b);}};
_.vPc=function(a,b,c){try{var d=c?a.H.transaction(b,c):a.H.transaction(b);return new rPc(d,a)}catch(e){throw _.QK(e,"creating transaction");}};sPc.prototype.Wa=function(){sPc.nb.Wa.call(this);this.ub.dispose()};var tPc=function(a,b){_.Fi.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};_.O(tPc,_.Fi);
_.wPc=function(){void 0==UOc&&(UOc=_.q.indexedDB||_.q.mozIndexedDB||_.q.webkitIndexedDB||_.q.moz_indexedDB);return UOc};
_.xPc=function(a,b,c,d){var e=new _.ri;b=b?_.wPc().open(a,b):_.wPc().open(a);b.onsuccess=function(f){f=new sPc(f.target.result);e.callback(f)};b.onerror=function(f){e.Sd(_.PK(f.target,"opening database "+a))};b.onupgradeneeded=function(f){if(c){var h=new sPc(f.target.result);c(new tPc(f.oldVersion,f.newVersion),h,new rPc(f.target.transaction,h))}};b.onblocked=function(f){d&&d(new tPc(f.oldVersion,f.newVersion))};return e};

_.w();

}catch(e){_._DumpException(e)}
try{
_.yPc=function(a,b){var c=_.D(a.H,_.jAa,9);null==c&&(c=new _.jAa);var d=_.C(b.H,10);d=_.A(c,5,d);b=_.C(b.H,12);_.A(d,2,b);_.y(a.H,9,c)};_.zPc=function(a,b,c){a.O[b.getId()]=c;a.H&&c.O(a.H)};_.r("sy160");
_.APc=function(a){this.H=a};_.APc.prototype.az=function(a){a=_.TG(new _.SG,a.Xb());this.H.log(a);return new _.gi(function(b){this.H.flush(b,function(){b()})}.bind(this))};
_.BPc=function(a){this.H=a;_.E8b(this.H)};_.BPc.prototype.az=function(a){a=_.TG(new _.SG,a.Xb());this.H.log(a);this.H.ma()};

_.w();

}catch(e){_._DumpException(e)}
try{
var CPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(CPc,_.L);CPc.prototype.getEmail=function(){return _.G(this,3,"")};CPc.prototype.zp=function(){return _.sk(this,3)};_.RK=function(a){return _.E(a,5,!1)};_.SK=function(a){return _.D(a,CPc,36,1)};_.DPc=function(a){var b=_.ska(a);if("undefined"==typeof b)throw Error("V");var c=new _.Ij(null,void 0);a=_.Xi(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];Array.isArray(f)?_.kla(c,e,f):c.add(e,f)}return c};_.r("sy15n");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15m");
_.TK=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.TK,_.L);_.TK.prototype.re=function(){return _.D(this,_.bf,1)};_.UK=function(a,b){return _.y(a,1,b)};_.TK.prototype.Ag=function(){return _.C(this,4)};_.TK.prototype.rma=function(a){return _.A(this,4,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
var EPc=function(a){(0,_.S)(this,a,0,-1,null,null)},JPc;_.O(EPc,_.L);var FPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(FPc,_.L);_.VK=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.VK,_.L);_.VK.prototype.e2=function(a){_.A(this,3,a)};_.VK.prototype.Uk=function(a){return _.y(this,5,a)};_.VK.prototype.getMimeType=function(){return _.C(this,7)};var GPc=[2],HPc=function(a){(0,_.S)(this,a,0,-1,GPc,null)};_.O(HPc,_.L);var IPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(IPc,_.L);
JPc=function(a){this.H=a};_.KPc=function(a){this.Vc=a};_.KPc.prototype.getId=function(){return this.Vc};var LPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(LPc,_.L);LPc.prototype.yi=function(){return _.C(this,1)};var MPc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(MPc,_.L);
var OPc=function(){this.O=this.ha=!1;this.H=null;for(var a=this.W=this.V=0;a<_.tCa.length;a++){var b=_.tCa[a];if(b&&b.chrome&&b.chrome.runtime&&b.chrome.runtime.connect){this.ha=!0;NPc(this,b);break}}},NPc=function(a,b){a.H=b.chrome.runtime.connect("ciiamoeghmklpofjbocenebdfbgjapaa");a.O=!0;a.H.onDisconnect.addListener(function(){a.O=!1});document.addEventListener("mousemove",function(c){a.V=c.clientX;a.W=c.clientY})};
OPc.prototype.az=function(a){if(this.ha&&this.O){var b=_.D(a,_.sb,2)||new _.sb,c=_.D(a,_.cq,5)||new _.cq,d=_.D(a,_.VK,3)||new _.VK;a=_.Lk(a,_.FAa,1);a=_.m(a);for(var e=a.next();!e.done;e=a.next())this.H.postMessage({detail:{impression:e.value.Xb(),session_info:b.Xb(),session_invariants:c.Xb(),client_info:d.Xb()}});document.dispatchEvent(new CustomEvent("ripple",{detail:{clientX:this.V,clientY:this.W}}))}};_.r("sy15q");
var PPc=function(){_.Yp.call(this)};_.N(PPc,_.Yp);PPc.prototype.hv=function(){return 1==_.C(_.D(this.H,EPc,7),1)};var QPc=new _.Up("high_frequency_builder");
var RPc=function(a,b,c){a=new _.Pi(a);c.La(a);var d=new _.pe(c);c.La(d);d.listen(a,"tick",b);a.start()};
var SPc=function(){_.Yp.call(this)};_.N(SPc,_.Yp);var TPc=function(a,b,c){var d=1E3*_.xf();if(0==b){b=new _.Np;var e=new _.hAa;e=_.A(e,1,d);_.y(b,1,e);_.A(b,3,1);_.y(a.H,8,b);_.A(a.H,12,c);_.A(a.H,13,c);_.A(a.H,4,d);_.A(a.H,3,c)}else 1==b&&(b=new _.Np,e=new _.iAa,d=_.A(e,1,d),_.y(b,2,d),_.A(b,3,2),_.y(a.H,8,b),_.A(a.H,12,c),_.A(a.H,3,c));return a},UPc=new _.Up("system_builder");
var VPc=function(a,b){_.P.call(this);this.O=a;this.H=new _.JOc(b);this.La(this.H);this.ub=new _.pe(this);this.La(this.ub);this.H.J7()&&this.ub.listen(this.H,"visibilitychange",this.V)};_.N(VPc,_.P);VPc.prototype.V=function(){if(this.O.WR()){var a=this.H.PP()?102001:102E3;a=this.O.qE(a,0);this.O.mq(a)}};
var WPc=function(a,b,c){c=void 0===c?!1:c;_.P.call(this);this.H=a;this.O=b;this.La(this.O);this.W=c;this.V=null};_.N(WPc,_.P);_.g=WPc.prototype;_.g.mq=function(a){var b=this.H;_.A(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.ue();return new JPc(a)};_.g.qE=function(a,b){a=TPc(XPc(this.H,a),b,this.H.ha++);1==b&&this.H.ka.add(a);return a};_.g.FJ=function(){return this.H.O};
_.g.LK=function(a){var b=this.H,c=_.Zp(a,UPc),d=b.ha++,e=_.D(_.D(c.H,_.Np,8),_.iAa,2),f=1E3*_.xf();_.A(e,2,f);_.A(c.H,13,d);b.ka.remove(_.C(a.H,12))};_.g.Mw=function(){var a=this.O;if(!a.ha||a.H.V){var b=YPc(a.H,691).build();b=ZPc(a.H,[b]);a.ka.az(b)}a.W();this.H.Mw();this.V&&(_.aa(this.V),this.V=null)};_.g.NX=function(){var a=this.H,b=YPc(a,716);$Pc(a,b);b=b.build();a.H.add(b);a.va=!0;a.ma=!0;this.O.initialize();this.O.O.ue();this.W&&(this.V=new VPc(this))};_.g.Pga=function(){this.O.W();return _.ni(Array.from(this.O.V)).then()};
_.g.WR=function(){var a=this.H;return a.va&&a.ma&&!0};
var aQc=function(a,b,c,d,e){_.P.call(this);this.H=a;this.oa=b;this.ka=c;this.O=new _.JK(this.W,3E3,this);this.V=new Set;this.ha=d;this.ma=e||6E4};_.N(aQc,_.P);aQc.prototype.initialize=function(){RPc(this.ma,this.O.ue,this.O);RPc(36E5,this.va,this)};aQc.prototype.W=function(){var a=this;if(0!=this.H.H.$b()&&(!this.ha||this.H.V)){var b=bQc(this.H),c=this.oa.az(b);c&&(_.pi(c,function(){return void a.V.delete(c)}),this.V.add(c))}};
aQc.prototype.va=function(){var a=this.H,b=YPc(a,1153).build();a.H.add(b);this.O.ue()};
var cQc=function(a){_.P.call(this);this.H=a;this.La(this.H)};_.N(cQc,_.P);_.g=cQc.prototype;_.g.mq=function(a){a=this.H.mq(a);this.Pga();return a};_.g.qE=function(a,b){return this.H.qE(a,b)};_.g.FJ=function(){return this.H.FJ()};_.g.LK=function(a){return this.H.LK(a)};_.g.Mw=function(){return this.H.Mw()};_.g.NX=function(){return this.H.NX()};_.g.Pga=function(){return this.H.Pga()};_.g.WR=function(){return this.H.WR()};
var dQc=function(){};dQc.prototype.YO=function(){return new PPc};
var eQc=function(){this.H=[]};eQc.prototype.add=function(a){this.H.push(a)};eQc.prototype.$b=function(){return this.H.length};
var fQc=function(){this.H={}};fQc.prototype.add=function(a){var b=_.C(a.H,12);this.H[b]=a};fQc.prototype.remove=function(a){delete this.H[a]};
var gQc=function(a,b){this.O=a;this.Ba=b;this.ha=1;this.oa=this.W=null;this.ka=new fQc;this.H=new eQc;this.ma=this.va=this.V=!1};gQc.prototype.Mw=function(){this.ma=!1};
var XPc=function(a,b){a=_.Zp((new _.Yp).initialize(new _.FAa,a.Ba),UPc);_.A(a.H,10,b);return a},bQc=function(a){var b=a.H,c=b.H;b.H=[];return ZPc(a,c)},ZPc=function(a,b){var c=new _.KBa;var d=_.Uk(a.O.W);c=_.y(c,2,d);d=a.O;(d=d.O?_.Uk(d.O):null)&&_.y(c,5,d);var e;d=a.O;for(var f,h=b.length-1;0<=h;h--){var k=_.D(b[h],_.Sp,5);if(k&&_.D(k,_.FOc,1)){k=_.D(k,_.FOc,1);_.sk(k,12)&&void 0===e&&(e=_.H(k,12));k=_.D(k,FPc,20);if(void 0!==k&&void 0===f){f=new MPc;var l=_.H(k,2);void 0!==l&&_.A(f,2,l);k=_.H(k,
1);void 0!==k&&_.A(f,1,k)}if(void 0!==e&&void 0!==f)break}}d=d.H?_.Uk(d.H):null;if(void 0!==e||void 0!==f)d||(d=new _.VK),void 0!==e&&_.A(d,6,e),void 0!==f&&_.y(d,13,f);(e=d)&&_.y(c,3,e);a=_.Uk(a.O.ha);_.y(c,4,a);_.kb(c,1,b);return c},YPc=function(a,b){var c=TPc(XPc(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],n=new IPc;k=_.A(n,1,k);l=_.C(l.H,10);l=_.A(k,2,l);f.push(l)}d=f}716!=b&&(b=a.oa,_.A(c.H,6,a.W),e=
new HPc,b=_.A(e,1,b),d&&_.kb(b,2,d),d=_.$p(c),_.y(d,3,b));$Pc(a,c);return c},$Pc=function(a,b){a.W=_.C(b.H,12);a.oa=_.C(_.D(_.D(b.H,_.Np,8),_.hAa,1),1)};
var hQc=function(){};hQc.prototype.YO=function(){return new SPc};
var iQc=function(){this.H=this.O=null};iQc.prototype.build=function(){null==this.H&&(this.H=new _.hBa);_.bq(this.H,UPc,new hQc);_.bq(this.H,QPc,new dQc);var a=this.H;var b=this.O;if(!_.sk(_.jQc(b),1)){var c=_.jQc(b),d=new _.zBa;_.y(c,1,d)}b=_.D(_.jQc(b),_.zBa,1);a.H=b;b=_.Yc(a.O);for(c=0;c<b.length;c++)b[c].O(a.H);return new gQc(this.O,this.H)};
var kQc=function(){this.W=new _.sb;this.O=null;this.ha=new LPc;_.A(this.ha,1,6);this.H=this.V=null};kQc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.lQc=function(a,b){_.A(a.W,2,b);return a};_.mQc=function(a,b){if(null==a.V){a.V=new _.EBa;var c=_.jQc(a);_.y(c,2,a.V)}_.A(a.V,1,b)};_.jQc=function(a){null==a.O&&(a.O=new _.cq);return a.O};_.nQc=function(a){null==a.H&&(a.H=new _.VK);return a.H};
_.oQc=function(){this.H=this.ha=null;this.W=new kQc;this.V=null;this.ka=this.ma=!1;this.O=null};_.pQc=function(a,b){a.ha=b;return a};_.qQc=function(a,b){a.H=b;return a};_.rQc=function(a,b){a.V=b;return a};_.oQc.prototype.setSessionId=function(a){this.W.setSessionId(a);return this};_.sQc=function(a,b){_.A(a.W.W,6,b);return a};
_.oQc.prototype.build=function(){var a=new iQc;a.O=this.W;null!=this.V&&(a.H=this.V);a=a.build();if(this.ka){var b=new OPc;this.H=this.ha=b}b=new aQc(a,this.ha,this.H,this.ma,this.O);a=new WPc(a,b,!1);this.ka&&(a=new cQc(a));return a};

_.w();

}catch(e){_._DumpException(e)}
try{
_.WK=function(a){return a instanceof Error};_.XK=function(a){return _.E(a,84,!1)};_.r("sy15g");
_.tQc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.tQc,_.L);
_.YK=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.YK,_.L);_.YK.prototype.getOptions=function(){return _.D(this,_.tQc,1)};_.YK.prototype.Tn=function(){return _.C(this,2)};_.YK.prototype.ud=function(){return _.D(this,_.Oe,3)};
_.uQc=function(a){(0,_.S)(this,a,0,-1,null,_.ZK)};_.O(_.uQc,_.L);_.ZK=[[3,4,5,6,7,8,9,10]];
_.$K={HX:"wb",Vra:"xb",U4:"yb",sS:"zb"};_.vQc=new Map([[_.$K.HX,1],[_.$K.Vra,2],[_.$K.U4,2],[_.$K.sS,3]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var aL,xQc;aL={};_.wQc=(aL[1]="modifiedDate",aL[2]="modifiedByMeDate",aL[3]="quotaBytesUsed",aL[4]="title",aL[6]="lastViewedByMeDate",aL[10]="createdDate",aL[7]="sharedWithMeDate",aL[9]="starred",aL[11]="recency",aL[5]="relevance",aL[12]="trashedDate",aL[13]="lastViewedByMeDate",aL);xQc={};_.yQc=(xQc[1]="asc",xQc[2]="desc",xQc);
_.zQc=new Map([[157,"categoryReferences"],[5,"hidden"]]);
_.AQc=function(a,b,c,d,e,f,h){a="number"===typeof a?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,h||0):a?a.getTime():_.xf();this.date=new Date(a)};_.O(_.AQc,_.fv);_.g=_.AQc.prototype;_.g.clone=function(){var a=new _.AQc(this.date);a.ZE=this.ZE;a.vT=this.vT;return a};_.g.add=function(a){(a.W||a.V)&&_.ev.prototype.add.call(this,new _.dv(a.W,a.V));this.date=new Date(this.date.getTime()+1E3*(a.seconds+60*(a.O+60*(a.H+24*a.Su))))};_.g.getTimezoneOffset=function(){return 0};_.g.getFullYear=_.fv.prototype.getUTCFullYear;
_.g.getMonth=_.fv.prototype.getUTCMonth;_.g.getDate=_.fv.prototype.getUTCDate;_.g.getHours=_.fv.prototype.getUTCHours;_.g.getMinutes=_.fv.prototype.getUTCMinutes;_.g.getSeconds=_.fv.prototype.I5a;_.g.getMilliseconds=_.fv.prototype.H5a;_.g.getDay=_.fv.prototype.getUTCDay;_.g.setFullYear=_.fv.prototype.setUTCFullYear;_.g.setMonth=_.fv.prototype.setUTCMonth;_.g.setDate=_.fv.prototype.setUTCDate;_.g.setHours=_.fv.prototype.FIa;_.g.setMinutes=_.fv.prototype.GIa;_.g.setSeconds=_.fv.prototype.HIa;
_.g.setMilliseconds=_.fv.prototype.J5a;
var BQc,DQc;BQc={};_.CQc=(BQc[1]="0",BQc[2]="1",BQc[3]="2",BQc);DQc={};_.EQc=(DQc[1]="asc",DQc[2]="desc",DQc);
_.FQc=new _.Up("drive_dataservice_builder");
_.GQc=_.lh&&0>_.ag(_.oh,"533");
_.HQc=new _.KPc("drive_dataservice_invariants");
_.IQc=new Map([[[1],1],[[6],7],[[2],2]]);_.JQc=new Map([[[1],3],[[2],4],[[3],5],[[4],6],[[5],7],[[6],8],[[10],12],[[7],9],[[8],10],[[9],11]]);
_.KQc=new Map([[12,function(a){return _.H(a,69)}],[24,function(a){return _.E(a,3,!1)}],[9,function(a){return _.E(a,17,!1)}],[21,function(a){return _.XK(a)}],[13,function(a){return _.H(a,60)}],[2,function(a){return _.E(a,8,!0)}],[6,function(a){return _.E(a,11,!1)}],[14,function(){return!0}],[16,function(a){return _.E(a,56,!1)}],[17,function(a){return _.E(a,57,!1)}],[18,function(a){return _.E(a,54,!1)}],[19,function(a){return _.E(a,53,!1)}],[23,function(){return!0}],[28,function(){return!0}]]);
_.LQc=new Map([[36,function(a){return _.E(a,11,!1)}],[34,function(a){return _.E(a,9,!1)}],[25,function(a){return _.E(a,1,!1)}],[33,function(a){return _.E(a,8,!1)}],[26,function(a){return _.E(a,2,!1)}],[27,function(a){return _.E(a,3,!1)}],[29,function(a){return _.E(a,4,!1)}],[32,function(a){return _.E(a,7,!1)}],[30,function(a){return _.E(a,5,!1)}],[31,function(a){return _.E(a,6,!1)}],[35,function(a){return _.E(a,10,!1)}]]);_.MQc=new Map([[[1],1],[[2],2],[[3],3],[[4],4]]);
_.NQc=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],[[243],243],[[244],244],[[245],245],[[246],246],[[247],247]]);_.OQc=new Map([[[2],3],[[1],2],[[0],1]]);_.PQc=new Map([[[0],1],[[1],2],[[3],3],[[5],4],[[6],5]]);_.QQc=new Map([[[_.YOc],1],[[_.ZOc],2],[[_.$Oc],3],[[_.aPc],4],[[_.bPc],5],[[_.cPc],6],[[_.dPc],7],[[_.ePc],8],[[_.fPc],10],[[_.gPc],11],[[_.hPc],12],[[_.iPc],13]]);
_.RQc=new Map([[[0],1],[[1],2],[[2],3],[[3],4],[[4],5],[[5],6],[[6],7]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15j");
_.bL=function(a){(0,_.S)(this,a,0,-1,SQc,null)};_.O(_.bL,_.L);var SQc=[8,17];_.bL.prototype.Gc=function(){return _.C(this,2)};_.cL=function(a,b){return _.A(a,2,b)};_.g=_.bL.prototype;_.g.Xj=function(){return _.E(this,3,!1)};_.g.getItem=function(){return _.D(this,_.Cl,4)};_.g.setItem=function(a){return _.y(this,4,a)};_.g.zc=function(){return _.C(this,7)};_.g.o_=function(){return _.C(this,13)};_.g.vma=function(a){_.A(this,13,a)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15p");

_.w();

}catch(e){_._DumpException(e)}
try{
var WQc;_.fL=function(a){if(a instanceof _.Ub)return a;var b;if(_.WK(a)){if(b=_.rsb(a))return b;b=_.zFa(void 0,void 0,a)}else b="string"===typeof a?_.zFa(a):_.zFa("Converting an unexpected reason type to drive.ds.Error which should be drive.ds.Error, Error, or string. Found:"+a);_.dL(b,2);_.eL(b,6);return b};_.TQc=function(a){var b=a.Wj();a=a.CE();return 15===b||32===b||33===b||401===a};_.UQc=function(){return _.q.WorkerGlobalScope&&self instanceof _.q.WorkerGlobalScope};
_.VQc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.VQc,_.L);_.gL=function(a){return _.wk(a,1,0)};_.hL=function(a){return _.D(a,_.VQc,4)};_.dL=function(a,b){return _.A(a,1,b)};_.eL=function(a,b){return _.A(a,2,b)};WQc=[8,9,10,13,14,27,28,29,31,32,33,34,38];_.iL=function(a){(0,_.S)(this,a,0,-1,WQc,null)};_.O(_.iL,_.L);_.g=_.iL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};
_.g.setTitle=function(a){return _.A(this,2,a)};_.g.ag=function(){return _.C(this,3)};_.g.Tk=function(a){return _.A(this,3,a)};_.g.uu=function(a){return _.A(this,4,a)};_.g.Ah=function(){return _.H(this,5)};_.g.Wm=function(a){return _.A(this,5,a)};_.g.getMimeType=function(){return _.C(this,6)};_.g.PC=function(a,b){_.Jk(this,8,a,b)};_.g.Ii=function(){return _.C(this,12)};_.g.re=function(){return _.D(this,_.bf,17)};_.g.yi=function(){return _.C(this,20)};_.g.zc=function(){return _.C(this,21)};
_.jL=function(a,b){return _.A(a,16,b)};_.r("sy15i");
_.kL=function(a){(0,_.S)(this,a,0,-1,XQc,null)};_.O(_.kL,_.L);var XQc=[5];_.kL.prototype.lP=function(){return _.wk(this,2,100)};_.kL.prototype.QQ=function(a){return _.A(this,2,a)};_.kL.prototype.re=function(){return _.D(this,_.bf,6)};_.kL.prototype.zc=function(){return _.C(this,8)};
var YQc;YQc={};_.ZQc=(YQc[0]="/drive/v2internal",YQc[1]="/drive/v2internal.corp",YQc[2]="/drive/v2internal.scary",YQc[4]="/drive/v2internal.scary",YQc[5]="/drive/v2beta",YQc[6]="/drive/v2.1beta",YQc);
_.$Qc=new Set([0,1,2,3]);
_.aRc=new Map([[1,"connected"],[2,"unauthenticated/online"],[3,"offline"]]);
_.bRc=_.A(new _.iL,15,!0);_.cRc=_.jL(new _.iL,!0);_.dRc=_.jL(new _.iL,!1);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15k");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15w");

_.w();

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy15x");

_.w();

}catch(e){_._DumpException(e)}
try{
_.fRc=function(a){for(var b in a)delete a[b]};_.gRc=function(a){a=_.Mf(a);return 0===a.length?_.Sga:new _.ug(a,_.Rga)};_.hRc=function(a,b){a=_.fj(a);b=_.fj(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};_.r("sy161");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
_.lL=function(a,b){return _.A(a,82,b)};_.mL=function(a){return _.A(a,3,!0)};_.mRc=function(a,b){return _.A(a,7,b)};_.r("sy15h");
_.nRc=new Map([[1,3],[4,3],[2,3],[3,2]]);
_.oRc=new Map([[6,3],[7,3],[4,2],[8,2]]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
_.nL={qY:"Versions",T4:"Metadata",D3:"Data",sS:"Offline"};_.pRc=new Map([[_.nL.qY,"versionKey"],[_.nL.T4,"k"]]);_.qRc=new Set([1004]);

_.w();

}catch(e){_._DumpException(e)}
try{
var uRc;_.rRc=function(a){var b={};_.bg(a,function(c,d){b[d.toLowerCase()]=c});return b};_.sRc=function(a){return(a=a&&_.rRc(a))&&a["x-guploader-uploadid"]};_.tRc=function(a){return(a=a&&_.rRc(a))&&a["x-google-trace"]};uRc=[6];_.oL=function(a){(0,_.S)(this,a,0,-1,uRc,null)};_.O(_.oL,_.L);_.pL=function(a,b){return _.A(a,14,b)};_.r("sy163");
var vRc,xRc;
_.wRc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?!1:l;if(200===a||204===a||308===a||206===a)return null;e=vRc(e)||new _.Ub;_.A(e,8,!0);k&&(k=_.Gj(new _.Cj(k),void 0).toString(),_.A(e,19,k));e.CE()||_.A(e,15,a||f);e.getMessage()||_.Wq(e,["HTTP status code: "+a,"HTTP status text: "+b,"XHR error code: "+f,"XHR error text: "+h].join(", "));_.C(e,4)||_.Xq(e,d);e.Wj()||(5===f?_.pL(e,7):0!==a||d?403===a?_.pL(e,22):503===a||429===a?_.pL(e,24):(_.Bk(e,14),_.A(e,10,1),_.A(e,8,!0)):l||_.pL(e,2));e.Eaa(_.sRc(c));e.saa(_.tRc(c));
return e};vRc=function(a){if(!_.Da(a))return null;var b=new _.Ub,c=a.error;if(!c)return _.Xq(b,JSON.stringify(a)),null;_.A(b,15,c.code);_.Wq(b,c.message);a=c.errors&&c.errors[0];if(!a)return b;c=a.reason;var d=xRc[c];d?_.A(b,10,d):c&&!d&&_.A(b,10,2);(a=a.debugInfo)&&_.Xq(b,a);return b};
xRc={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,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,tooManyUnmovableFiles:54,transientError:13,userCannotCreateFileForMimeType:51,userRateLimitExceeded:7,richContentLimitExceeded:55,numChildrenLimitExceeded:56,shortcutLimitExceeded:57,shortcutPerCreatorLimitExceeded:58,
mimeTypeSizeExceeded:60,onlyCriticalWritesAllowed:61,wrappedKeyExceededLimit:62};

_.w();

}catch(e){_._DumpException(e)}
try{
_.yRc=function(a,b){return _.A(a,1,b)};_.zRc=function(a,b){return _.y(a,1,b)};_.ARc=function(a,b){return _.A(a,2,b)};_.BRc=function(a,b){return _.y(a,3,b)};_.r("sy164");

_.w();

}catch(e){_._DumpException(e)}
try{
_.CRc=function(a,b,c){c&&(a=_.Vg(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=_.Ug(a));return a};_.DRc=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};_.r("sy16g");
/*

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

_.w();

}catch(e){_._DumpException(e)}
try{
var FRc,GRc,KRc,ORc,PRc,gSc,jM,hSc,iSc,pSc,MRc,YSc,LRc,uTc,wTc,yTc,zTc,ATc,BTc,CTc,ETc,FTc,GTc,HTc,VTc,WTc,YTc,$Tc,aUc,cUc,gUc,$Rc,kUc,aSc,lUc,mUc,nUc,RM,TM,pUc,rUc,sUc,tUc,uUc,vUc,yUc,zUc,AUc,BUc,CUc,FUc,HUc,IUc,KUc,ZUc,YUc,$Uc,dVc,eVc,fVc,kVc,lVc,nVc,oVc,uVc,tVc,sVc,qVc,rVc,rSc,zVc,CVc,DVc,jSc,EVc,kSc,lSc,mSc,nSc,oSc,FVc,HVc;_.qL=function(a,b,c){var d=new _.Ub,e=_.qja(_.qL);_.A(d,20,e);_.eL(d,a);_.dL(d,b?b:2);c&&_.pL(d,c);return d};
_.rL=function(a){var b;a instanceof _.Ub?b=new _.Vb(null,a):b=_.WK(a)?a:_.q.ErrorEvent&&a instanceof ErrorEvent?a.error instanceof Error?a.error:Error(a.message):"string"===typeof a?Error(a):Error("lb`"+a);b.stack||(b.stack=_.qja(_.rL));return b};_.sL=function(a){return a instanceof _.Vb?a:a instanceof _.Ub?new _.Vb(void 0,a):a instanceof Error?new _.Vb("Not a drive.ds.Error",void 0,a):new _.Vb("Not an Error",void 0,Error("mb`"+JSON.stringify(a)))};_.tL=function(a){throw _.sL(a);};
FRc=function(a){return 7===a.Wj()||24===a.Mo()&&(a=a.CE(),503===a||429===a)?!0:!1};GRc=function(a,b){return b?b+"("+a+")":a};
_.uL=function(a,b,c){var d={},e=[];b&&e.push("kind");a.Cwb&&e.push("searchResultSource");a.fields.forEach(function(n){if(!_.HRc.includes(n)){var p=_.$5a.get(n);if(p){var t=_.c6a[n];a.VE&&t&&(p=t);a.xq&&(a.VE?(n=_.b6a[n])&&(p=n):(n=_.a6a[n])&&(p=n));p.split(",").forEach(function(u){var z=_.Dha(u,"/",1);1<z.length?(d[z[0]]||(d[z[0]]=[]),d[z[0]].push(z[1])):e.push(u)})}}});for(var f={},h=_.m(Object.entries(d)),k=h.next();!k.done;f={v3:f.v3},k=h.next()){var l=_.m(k.value);k=l.next().value;l=l.next().value;
f.v3=[];l.forEach(function(n){return function(p){n.v3.push(p)}}(f));"owners"==k&&b&&f.v3.push("kind");e.push(GRc(f.v3.join(","),k))}return GRc(e.join(","),c)};_.IRc=function(a){var b=new _.aq;b.append(_.uL(a,!0));return b.toString()};_.JRc=function(a,b){return a.filter(function(c){return b.includes(c)})};KRc=function(a){a=a.filter(function(b){return!_.$5a.has(b)});if(a.length)throw Error("Cc`"+a.join(", "));};
_.NRc=function(a){if(a){var b=a.getMimeType();b&&_.IK(a,b.toLowerCase());LRc(a,_.Lk(a,MRc,58).map(function(c){var d=c.getMimeType();d&&_.A(c,1,d.toLowerCase());return c}))}};ORc=function(a){if(_.ig(a))return"\r\n";var b="";_.bg(a,function(c,d){b+=d+": "+c+"\r\n"});return b};PRc=function(a,b){b&&(_.Jj(a,"openDrive",!!_.E(b,2,!1)),_.Jj(a,"reason",_.C(b,1)||0),_.Jj(a,"syncType",_.C(b,3)||0),_.Jj(a,"errorRecovery",!!_.E(b,4,!1)))};
gSc=function(a){if(a instanceof _.vL)return"request access";if(a instanceof _.wL)return"admin migrate to TD";if(a instanceof _.xL)return"authorize app";if(a instanceof _.yL)return"copy item";if(a instanceof _.zL)return"change category links";if(a instanceof _.AL)return"create item";if(a instanceof _.BL)return"create ws";if("undefined"!=typeof _.CL&&a instanceof _.CL)return"delete app";if("undefined"!=typeof _.DL&&a instanceof _.DL)return"delete backup";if(a instanceof _.EL)return"delete item";if("undefined"!=
typeof _.FL&&a instanceof _.FL)return"delete permission";if(a instanceof _.GL)return"delete revision";if(a instanceof _.HL)return"delete TD";if(a instanceof _.kC)return"delete pref";if(a instanceof _.IL)return"delete ws";if(a instanceof _.JL)return"download item";if(a instanceof _.KL||a instanceof _.LL)return"empty trash";if(a instanceof _.fp)return"find by ID";if(a instanceof _.QRc)return"item export start";if("undefined"!=typeof _.ML&&a instanceof _.ML)return"get app";if("undefined"!=typeof _.NL&&
a instanceof _.NL)return"insert app";if("undefined"!=typeof _.OL&&a instanceof _.OL)return"insert permission";if(a instanceof _.YK)return a=a.ud(),_.PL(a)?"quick access item query":_.QL(a)?"people predict item query":_.RL(a)?"drive priority query":"item query";if("undefined"!=typeof _.SL&&a instanceof _.SL)return"list android backup items request";if(a instanceof _.TL){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 _.RRc&&a instanceof _.RRc?"list backups":a instanceof _.kL?"list changes":a instanceof _.UL?"list permissions":"undefined"!=typeof _.VL&&a instanceof _.VL?"list revisions":a instanceof _.WL?"partial download item":a instanceof _.XL?"people api":a instanceof _.CF?"get published category":"undefined"!=typeof _.YL&&a instanceof _.YL?"get remaining changes":a instanceof _.ZL?"remove item":"undefined"!=typeof _.$L&&
a instanceof _.$L?"reparent item":a instanceof _.aM?"restore item":"undefined"!=typeof _.bM&&a instanceof _.bM?"list suggested workspace items":a instanceof _.np?"list suggested workspaces":"undefined"!=typeof _.cM&&a instanceof _.cM?"update app":a instanceof _.dM?"update category metadata":a instanceof _.iL?"update item":a instanceof _.eM?"update revision":a instanceof _.fM?"update TD":a instanceof _.lC?"update pref":a instanceof _.gM?"update ws":a instanceof _.TK?"get account":a instanceof _.zA?
"get workspace":a instanceof _.SRc?"list activity":a instanceof _.TRc?"list category metadata":a instanceof _.URc?"create TD":"undefined"!=typeof _.VRc&&a instanceof _.VRc?"item export cancel":"undefined"!=typeof _.WRc&&a instanceof _.WRc?"item export status":"undefined"!=typeof _.XRc&&a instanceof _.XRc?"generate cse token":"undefined"!=typeof _.YRc&&a instanceof _.YRc?"get largest change ID":a instanceof _.mC?"list prefs":a instanceof _.hM?"multipart upload":a instanceof _.ZRc?"list published categories":
a instanceof $Rc?"init resumable upload":a instanceof aSc?"resumable upload chunk":a instanceof _.bSc?"resumable upload":a instanceof _.op?"get TD":"undefined"!=typeof _.cSc&&a instanceof _.cSc?"move TD preflight":a instanceof _.iM?"list TDs":"undefined"!=typeof _.dSc&&a instanceof _.dSc?"get TD stats":a instanceof _.eSc?"test connection":"undefined"!=typeof _.fSc&&a instanceof _.fSc?"list workspaces":"unknown"};
jM=function(a,b,c){null!=c&&(Array.isArray(c)?0<c.length&&a.push(b+": "+c.join(", ")):a.push(b+": "+c))};hSc=function(a){if(a instanceof _.AL||a instanceof _.hM||a instanceof _.bSc||a instanceof $Rc||a instanceof aSc)return(new _.kM).Ac(8);throw Error("Se");};iSc=function(a){if(a instanceof _.iL){var b=_.Ck(_.Bk(_.Uk(a),1),17);b=_.Tk(b,_.bRc)}else b=!1;b||(a instanceof _.iL?(a=_.Ck(_.Bk(_.Uk(a),1),17),b=_.Tk(a,_.cRc)||_.Tk(a,_.dRc)):b=!1);return b?!1:!0};
_.lM=function(a){return jSc.includes(a.constructor)?iSc(a):!1};pSc=function(a,b){if(kSc.includes(a.constructor))return!0;if(b){if(_.E(b,54,!1)&&lSc.includes(a.constructor))return!0;var c=_.hL(b);if(c&&!_.E(c,7,!1)&&mSc.includes(a.constructor)&&!_.mM(a)||_.E(b,56,!1)&&_.mM(a)||_.E(b,57,!1)&&nSc.includes(a.constructor)||!(!_.E(b,53,!1)||lSc.includes(a.constructor)||mSc.includes(a.constructor)||_.mM(a)||nSc.includes(a.constructor)||oSc.includes(a.constructor)))return!0}return!1};
_.tM=function(a,b,c,d,e){_.E(a,89,!1)&&(b.length?qSc(b,e):c&&c.length&&d&&(a=rSc(d,c),qSc(a,e)))};_.sSc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.sSc,_.L);_.uM=function(a){return _.E(a,2,!1)};_.tSc=function(a){var b=new _.ml;return _.A(b,1,a)};_.uSc=function(a,b){return _.A(a,7,b)};_.vSc=function(a,b){return _.A(a,8,b)};_.wSc=function(a,b){return _.A(a,11,b)};_.xSc=function(a,b){return _.A(a,1,b)};_.ySc=function(a,b){return _.A(a,4,b)};_.zSc=function(a,b){return _.A(a,5,b)};
_.ASc=function(a,b){return _.A(a,6,b)};_.BSc=function(a,b){return _.A(a,7,b)};_.CSc=function(a,b){return _.A(a,8,b)};_.DSc=function(a,b){return _.A(a,9,b)};_.ESc=function(a,b){return _.A(a,10,b)};_.FSc=function(a,b){return _.A(a,11,b)};_.GSc=function(a,b){return _.A(a,12,b)};_.HSc=function(a,b){return _.A(a,16,b)};_.ISc=function(a,b){return _.A(a,17,b)};_.JSc=function(a,b){return _.A(a,20,b)};_.KSc=function(a,b){return _.A(a,21,b)};_.LSc=function(a,b){return _.A(a,31,b)};
_.MSc=function(a,b){return _.A(a,32,b)};_.NSc=function(a,b){return _.A(a,33,b)};_.OSc=function(a,b){return _.A(a,42,b)};_.PSc=function(a,b){return _.A(a,43,b)};_.QSc=function(a,b){return _.A(a,46,b)};_.RSc=function(a,b){return _.A(a,47,b)};_.SSc=function(a,b){return _.A(a,48,b)};_.vM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.vM,_.L);_.wM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.wM,_.L);_.TSc=function(a,b){return _.A(a,1,b)};_.USc=function(a,b){return _.A(a,2,b)};
MRc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(MRc,_.L);MRc.prototype.getMimeType=function(){return _.C(this,1)};MRc.prototype.getUrl=function(){return _.C(this,2)};_.xM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.xM,_.L);_.xM.prototype.ze=function(){return _.C(this,2)};_.xM.prototype.Yg=function(a){return _.A(this,2,a)};_.xM.prototype.Ug=function(a){return _.A(this,3,a)};_.VSc=function(a,b){return _.A(a,1,b)};_.WSc=function(a,b){return _.kb(a,2,b)};
_.XSc=function(a,b){return _.kb(a,3,b)};YSc=[2];_.yM=function(a){(0,_.S)(this,a,0,-1,YSc,null)};_.O(_.yM,_.L);_.yM.prototype.ag=function(){return _.C(this,1)};_.yM.prototype.Tk=function(a){return _.A(this,1,a)};_.yM.prototype.qsa=function(a,b){return _.Jk(this,2,a,b)};_.zM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.zM,_.L);_.zM.prototype.ze=function(){return _.C(this,1)};_.zM.prototype.Yg=function(a){return _.A(this,1,a)};_.zM.prototype.Ug=function(a){return _.A(this,2,a)};
_.AM=function(a,b){return _.A(a,2,b||[])};_.ZSc=function(a,b){_.A(a,8,b)};_.$Sc=function(a,b){return _.kb(a,15,b)};_.aTc=function(a,b){return _.y(a,17,b)};_.bTc=function(a,b){return _.A(a,19,b)};_.cTc=function(a,b){_.A(a,26,b)};_.dTc=function(a,b){_.A(a,31,b)};_.eTc=function(a,b){_.A(a,34,b)};_.fTc=function(a,b){return _.A(a,44,b)};_.gTc=function(a,b){return _.A(a,52,b)};LRc=function(a,b){_.kb(a,58,b)};_.hTc=function(a,b){return _.A(a,72,b)};_.BM=function(a,b){return _.y(a,84,b)};
_.iTc=function(a,b){_.y(a,85,b)};_.jTc=function(a,b){return _.A(a,92,b)};_.kTc=function(a,b){return _.A(a,93,b)};_.CM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.CM,_.L);_.CM.prototype.Ya=function(){return _.C(this,1)};_.CM.prototype.Kb=function(a){return _.A(this,1,a)};_.CM.prototype.qj=function(){return _.Bk(this,1)};_.CM.prototype.oh=function(){return _.sk(this,1)};var lTc=[3],mTc=function(a){(0,_.S)(this,a,0,-1,lTc,null)};_.O(mTc,_.L);
mTc.prototype.xi=function(){var a=_.C(this,3);this.Pa||(this.Pa={});if(!this.Pa[3]){for(var b=0;b<a.length;b++)a[b]=!!a[b];this.Pa[3]=!0}_.lb(this)&&_.hb(a);return a};var nTc=[3],oTc=function(a){(0,_.S)(this,a,0,-1,nTc,null)};_.O(oTc,_.L);oTc.prototype.xi=function(){return _.Jd(this,3)};var pTc=[3],qTc=function(a){(0,_.S)(this,a,0,-1,pTc,null)};_.O(qTc,_.L);qTc.prototype.xi=function(){return _.Jd(this,3)};_.DM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.DM,_.L);
_.DM.prototype.Ya=function(){return _.C(this,1)};_.DM.prototype.Kb=function(a){return _.A(this,1,a)};_.DM.prototype.qj=function(){return _.Bk(this,1)};_.DM.prototype.oh=function(){return _.sk(this,1)};_.EM=function(a){return _.Lk(a,_.Te,6)};_.FM=function(a){return _.Lk(a,_.Ec,12)};_.HM=function(a){return _.vk(a,45,1)};_.PL=function(a){return _.E(a,47,!1)};_.QL=function(a){return _.E(a,49,!1)};_.RL=function(a){return _.E(a,52,!1)};_.IM=function(a){return _.G(a,2,"")};
_.rTc=function(a,b){return _.A(a,27,b||[])};_.JM=function(a){return _.vk(a,39,0)};_.KM=function(a){return _.E(a,40,!1)};_.sTc=function(a){return _.ev.prototype.UW.call(a,!0)+"T"+_.Zg(a.getHours(),2)+":"+_.Zg(a.getMinutes(),2)+":"+_.Zg(a.getSeconds(),2)+a.o8()};_.tTc=function(a,b){return _.A(a,18,b||[])};uTc=function(a,b){return _.nPc(a,"getAllKeys","getting all keys index "+a.getName(),b,void 0)};_.vTc=function(a,b){try{a.H.deleteObjectStore(b)}catch(c){throw _.QK(c,"deleting object store "+b);}};
wTc=function(){var a=new _.oQc;a.O=12E4;a.ma=!0;return a};_.xTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.xTc,_.L);yTc=[3,4,10,18,19,28];_.AL=function(a){(0,_.S)(this,a,0,-1,yTc,null)};_.O(_.AL,_.L);_.g=_.AL.prototype;_.g.getMimeType=function(){return _.C(this,1)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.PC=function(a,b){_.Jk(this,3,a,b)};_.g.re=function(){return _.D(this,_.bf,7)};_.g.Nj=function(){return _.C(this,9)};
_.g.zc=function(){return _.C(this,14)};_.g.wy=function(){return _.D(this,_.xTc,15)};_.g.D_=function(){return _.C(this,21)};_.g.Gc=function(){return _.C(this,23)};_.LM=function(a,b){return _.A(a,1,b)};_.MM=function(a,b){return _.A(a,3,b||[])};_.EL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.EL,_.L);_.EL.prototype.getId=function(){return _.C(this,1)};_.EL.prototype.Pb=function(a){return _.A(this,1,a)};_.EL.prototype.re=function(){return _.D(this,_.bf,3)};
_.HL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.HL,_.L);_.HL.prototype.getId=function(){return _.C(this,1)};_.HL.prototype.Pb=function(a){return _.A(this,1,a)};_.HL.prototype.re=function(){return _.D(this,_.bf,2)};zTc=[7,8];_.fM=function(a){(0,_.S)(this,a,0,-1,zTc,null)};_.O(_.fM,_.L);_.g=_.fM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};
_.g.re=function(){return _.D(this,_.bf,4)};_.g.Vl=function(){return _.H(this,15)};_.iM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.iM,_.L);_.iM.prototype.getOptions=function(){return _.D(this,_.tQc,1)};_.iM.prototype.Tn=function(){return _.C(this,2)};_.iM.prototype.ud=function(){return _.D(this,_.LK,3)};
ATc={CacheSize:"Number of items currently in the in-memory cache.",SecondaryFields:"List of secondary fields",CachedCorpusType:"Type of corpus cached (folder, linked, subscribed, 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."};
BTc=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};CTc=null;_.DTc=function(a){if(_.vla)return _.q.atob(a);var b="";_.xla(a,function(c){b+=String.fromCharCode(c)});return b};ETc=function(){this.O=0;this.H=[]};_.g=ETc.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=FTc(this,a);return this.H[a]};_.g.set=function(a,b){a=FTc(this,a);this.H[a]=b};_.g.$b=function(){return this.H.length};
_.g.vc=function(){return 0==this.H.length};_.g.clear=function(){this.O=this.H.length=0};_.g.Wg=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.Ve=function(){for(var a=[],b=this.$b(),c=0;c<b;c++)a[c]=c;return a};_.g.Be=function(a){return a<this.$b()};_.g.Rp=function(a){for(var b=this.$b(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};FTc=function(a,b){if(b>=a.H.length)throw Error("da");return 40>a.H.length?b:(a.O+Number(b))%40};GTc=[2,3];
_.zL=function(a){(0,_.S)(this,a,0,-1,GTc,null)};_.O(_.zL,_.L);_.zL.prototype.zc=function(){return _.C(this,1)};_.zL.prototype.re=function(){return _.D(this,_.bf,4)};_.vL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.vL,_.L);_.vL.prototype.Gc=function(){return _.C(this,1)};_.wL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.wL,_.L);_.wL.prototype.getId=function(){return _.C(this,1)};_.wL.prototype.Pb=function(a){return _.A(this,1,a)};_.wL.prototype.rk=function(){return _.C(this,2)};
_.xL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.xL,_.L);_.xL.prototype.ih=function(){return _.C(this,1)};_.xL.prototype.Gc=function(){return _.C(this,2)};_.xL.prototype.re=function(){return _.D(this,_.bf,4)};HTc=[3,7];_.yL=function(a){(0,_.S)(this,a,0,-1,HTc,null)};_.O(_.yL,_.L);_.g=_.yL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};
_.g.PC=function(a,b){_.Jk(this,3,a,b)};_.g.re=function(){return _.D(this,_.bf,5)};_.BL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.BL,_.L);_.BL.prototype.getTitle=function(){return _.C(this,1)};_.BL.prototype.setTitle=function(a){return _.A(this,1,a)};_.BL.prototype.re=function(){return _.D(this,_.bf,2)};_.GL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.GL,_.L);_.GL.prototype.Gc=function(){return _.C(this,1)};_.GL.prototype.re=function(){return _.D(this,_.bf,3)};
_.IL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.IL,_.L);_.IL.prototype.getId=function(){return _.C(this,1)};_.IL.prototype.Pb=function(a){return _.A(this,1,a)};_.IL.prototype.re=function(){return _.D(this,_.bf,3)};_.KL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.KL,_.L);_.KL.prototype.re=function(){return _.D(this,_.bf,1)};_.ZL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ZL,_.L);_.g=_.ZL.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};
_.g.getParent=function(){return _.C(this,2)};_.g.Dg=function(a){return _.A(this,2,a)};_.g.re=function(){return _.D(this,_.bf,3)};_.aM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.aM,_.L);_.g=_.aM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getParent=function(){return _.C(this,2)};_.g.Dg=function(a){return _.A(this,2,a)};_.g.re=function(){return _.D(this,_.bf,3)};_.eM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.eM,_.L);
_.eM.prototype.Gc=function(){return _.C(this,1)};_.eM.prototype.re=function(){return _.D(this,_.bf,4)};_.gM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.gM,_.L);_.g=_.gM.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.getState=function(){return _.C(this,3)};_.g.Fd=function(a){return _.A(this,3,a)};_.g.wr=function(){return _.sk(this,3)};
_.g.re=function(){return _.D(this,_.bf,5)};var ITc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(ITc,_.L);_.JTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.JTc,_.L);_.JTc.prototype.Ue=function(){return _.C(this,1)};_.JTc.prototype.Ci=function(a){return _.A(this,1,a)};_.JTc.prototype.Cb=function(){return _.C(this,4)};_.JTc.prototype.Ac=function(a){return _.A(this,4,a)};var KTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(KTc,_.L);
var LTc=function(a,b){_.A(a,6,b)},MTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(MTc,_.L);MTc.prototype.bA=function(){return _.H(this,1)};MTc.prototype.Bm=function(){return _.C(this,6)};MTc.prototype.gw=function(a){_.A(this,6,a)};var NTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(NTc,_.L);_.g=NTc.prototype;_.g.Cdb=function(a){_.A(this,1,a)};_.g.SJb=function(a){_.A(this,2,a)};_.g.bA=function(){return _.H(this,3)};_.g.Ddb=function(a){_.A(this,3,a)};_.g.yJb=function(a){_.A(this,4,a)};
var OTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(OTc,_.L);OTc.prototype.bA=function(){return _.H(this,2)};var PTc=function(a,b){return _.A(a,2,b)},QTc=function(a,b){_.A(a,3,b)};OTc.prototype.Yz=function(){return _.C(this,6)};var RTc=function(a,b){return _.A(a,8,b)},STc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(STc,_.L);var TTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(TTc,_.L);_.g=TTc.prototype;_.g.ud=function(){return _.D(this,_.JTc,1)};
_.g.getState=function(){return _.D(this,KTc,2)};_.g.Fd=function(a){return _.y(this,2,a)};_.g.wr=function(){return _.sk(this,2)};_.g.iD=function(){return _.D(this,MTc,16)};var UTc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(UTc,_.L);UTc.prototype.getEnvironment=function(){return _.C(this,2)};UTc.prototype.setEnvironment=function(a){return _.A(this,2,a)};_.HRc=[42,1005,20,50,18,1003,1002];VTc=[73,71];_.NM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.NM,_.L);
_.NM.prototype.getId=function(){return _.C(this,1)};_.NM.prototype.Pb=function(a){return _.A(this,1,a)};_.NM.prototype.getMimeType=function(){return _.C(this,2)};_.NM.prototype.vE=function(){return _.C(this,8)};WTc=[22];_.kM=function(a){(0,_.S)(this,a,0,-1,WTc,null)};_.O(_.kM,_.L);_.g=_.kM.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.getItem=function(){return _.D(this,_.Cl,2)};_.g.setItem=function(a){return _.y(this,2,a)};
_.g.Dj=function(){return _.C(this,3)};_.g.Gc=function(){return _.C(this,5)};_.XTc=function(a,b){return _.A(a,5,b)};_.g=_.kM.prototype;_.g.lF=function(){return _.C(this,7)};_.g.Eaa=function(a){return _.A(this,7,a)};_.g.Yca=function(a){_.A(this,9,a)};_.g.mJa=function(a){_.A(this,10,a)};_.g.ZK=function(){return _.C(this,16)};_.g.saa=function(a){return _.A(this,16,a)};
YTc=function(a){var b=new _.ri;a.listen("loadend",_.Wa(function(c,d){var e=d.getResult(),f=d.getError();null==e||f?c.Sd(f):c.callback(e);d.dispose()},b,a));return b};_.ZTc={1:"default",2:"teamDrive",3:"default,allTeamDrives"};$Tc=[3,4];_.TL=function(a){(0,_.S)(this,a,0,-1,$Tc,null)};_.O(_.TL,_.L);_.TL.prototype.getType=function(){return _.C(this,1)};_.TL.prototype.re=function(){return _.D(this,_.bf,2)};aUc=[1];_.XL=function(a){(0,_.S)(this,a,0,-1,aUc,null)};_.O(_.XL,_.L);
_.XL.prototype.Wl=function(){return _.Jd(this,1)};_.bUc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.bUc,_.L);_.g=_.bUc.prototype;_.g.getKey=function(){return _.C(this,1)};_.g.Nq=function(){return _.sk(this,1)};_.g.Ya=function(){return _.C(this,2)};_.g.Kb=function(a){return _.A(this,2,a)};_.g.qj=function(){return _.Bk(this,2)};_.g.oh=function(){return _.sk(this,2)};_.g.ag=function(){return _.C(this,3)};_.g.Tk=function(a){return _.A(this,3,a)};_.g.getType=function(){return _.C(this,4)};cUc=[1];
_.dUc=function(a){(0,_.S)(this,a,0,-1,cUc,null)};_.O(_.dUc,_.L);var eUc=function(a){_.Fi.call(this,a);this.connectionState=_.vQc.get(a)};_.N(eUc,_.Fi);_.fUc=function(){var a=void 0===a?1E3:a;this.O=new _.Em;this.H=new _.Em;this.startTime=Date.now();this.V=!1;this.W=Math.ceil(a/2);this.ha=Math.floor(a/2)};_.hUc=function(a){var b=a.O.Wg();a.V&&b.push(gUc("...","...","...","..."));_.za(b,a.H.Wg());return b};
_.iUc=function(a){var b=[];a=_.hUc(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")};_.fUc.prototype.info=function(a,b){_.OM(this,a,b,"info")};_.fUc.prototype.config=function(a,b){_.OM(this,a,b,"config")};_.fUc.prototype.log=function(a,b,c){if(!CTc){CTc={};for(var d=0,e;e=_.vja[d];d++)CTc[e.value]=e,CTc[e.name]=e}_.OM(this,a,b,c)};
_.OM=function(a,b,c,d){a.H.$b()>=a.ha&&(a.V=!0,_.Fm(a.H));var e=Date.now()-a.startTime;b=gUc(b,c,d,1E3<e?(e/1E3).toFixed(1)+"s":e+"ms");a.O.$b()<a.W?a.O.enqueue(b):a.H.enqueue(b)};gUc=function(a,b,c,d){var e={};return e.logName=a,e.message=b,e.level=c,e.totalTime=d,e};_.SRc=function(a,b,c){this.request=a;this.pageSize=b;this.pageToken=c};_.URc=function(a){this.request=a;this.requestId=_.ah()};
_.jUc=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};_.hM=function(a,b,c,d){this.request=a;this.file=b;this.wO=void 0===c?null:c;this.metadata=d};_.bSc=function(a,b,c,d){this.request=a;this.file=b;this.wO=void 0===c?null:c;this.metadata=d};$Rc=function(a,b){this.request=a;this.metadata=b};kUc=function(a,b,c){this.O=a;this.H=b;this.V=c};
aSc=function(a,b,c,d,e,f,h){this.W=a;this.blob=b;this.H=c;this.O=d;this.V=e;this.contentType=f;this.revisionId=h};_.eSc=function(){this.H=_.cf(new _.bf,312)};lUc=function(){};_.TRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.ZRc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};mUc=function(a,b){this.hfa=a;this.H=b};nUc=function(a){_.Fi.call(this,"Ab");this.H=a};_.N(nUc,_.Fi);nUc.prototype.$e=function(){return this.H};_.PM=function(a){a.supportsTeamDrives=!0};
_.oUc=function(a){this.O=new Set;this.H=[].concat(_.Wc(_.Jd(a,27)));this.initialize(a)};_.oUc.prototype.initialize=function(a){var b=_.JRc(this.H,_.Jd(a,28));if(0<b.length)throw Error("De`"+b.join(","));this.H.push(21);this.H.push(70);this.H.push(83);this.H.push(87);_.RK(_.SK(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));_.Fa(this.H);this.H.sort();KRc(this.H)};_.QM=function(a){return[].concat(_.Wc(a.H))};
RM=function(a){return"'"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"};_.SM=function(a,b,c){a.VN.length&&a.append(" "+(c||"and")+" ");a.append(b)};TM=function(a,b,c,d){if(c){var e=[];(void 0===d?0:d)&&e.push("not");e.push(RM(c));e.push("in");e.push(b);_.SM(a,e.join(" "))}};_.UM=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());_.SM(a,e.join(" "),d)}};
pUc=function(a,b,c){if(b.length){var d=[];d.push(c?"not (":"(");d.push(b.join(" or "));d.push(")");_.SM(a,d.join(""))}};_.qUc=function(a){var b=new _.AQc;b.setTime(a);return b};rUc=function(a,b){b=_.Lk(b,_.CM,35)||[];_.Ka(b,function(c){TM(a,"ancestors",c.Ya(),!1)})};sUc=function(a,b){b=_.Lk(b,_.CM,38)||[];_.Ka(b,function(c){TM(a,"descendants",c.Ya(),!1)})};tUc=function(a,b){b=_.Lk(b,_.Sl,37)||[];_.Ka(b,function(c){TM(a,"folderFeatures",c.Ya(),!1)})};
uUc=function(a,b){b=_.Jd(b,39);_.Ka(b,function(c){var d=[];d.push("templateData.description");d.push("contains");d.push(RM(c));_.SM(a,d.join(" "))})};vUc=function(a,b){b=_.Jd(b,33)[0];if(null!=b){var c=[];c.push("teamDriveId");c.push("=");c.push(RM(b));_.SM(a,c.join(" "))}};_.wUc=function(a){a=_.Lk(a,_.DM,25);if(null==a||0==a.length)return"";for(var b=[],c=0;c<a.length;c++)b.push(a[c].Ya());return b.join(",")};
_.xUc=function(a){a=a.bx();return null==a||0==a.length?"":_.jb(a,function(b){b=_.C(b,1);if(0==b)throw Error("Ee");return _.yOc[b]}).join(",")};yUc=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;var d=[],e=RM(a.Ya());_.H(a,4)?(_.E(a,2,!1)&&d.push("not"),d.push("shortcutDetails.targetMimeType="+e)):(_.E(a,2,!1)&&d.push("not"),d.push("mimeType="+e));d[0]=b+d[0];d[d.length-1]+=c;return d.join(" ")};
zUc=function(a){if(_.H(a,2))return"any";switch(a.Ya()){case 0:return"mentions";case 1:return"suggestions";case 2:return"todos";default:return""}};AUc=function(a){switch(a){case 1:return"<=";case 2:return"<";case 3:return"=";case 4:return">";case 5:return">=";default:return""}};BUc=function(a,b,c){if(null!=_.C(c,2)){var d=AUc(_.C(c,1));c=RM(_.sTc(_.qUc(_.C(c,2)||0)));_.SM(a,[b,d,c].join(" "))}};
CUc=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""};
_.DUc=function(a){for(var b=new _.aq,c=_.Lk(a,_.Ul,4),d=0;d<c.length;d++){var e=c[d],f=e.Ya();if(f){var h=_.C(e,1),k=_.E(e,3,!1),l=[];k&&1==h&&l.push("not");l.push("title");l.push(1==h?"contains":k?"!=":"=");l.push(RM(f));_.SM(b,l.join(" "))}}for(var n=_.Lk(a,_.Tl,5),p=0;p<n.length;p++){var t=n[p],u=t.Ya();if(u){var z=[];_.E(t,2,!1)&&z.push("not");z.push("fullText");z.push("contains");z.push(RM(u));_.SM(b,z.join(" "))}}var B=_.EM(a);if(B&&0!=B.length){for(var F=[],I=[],M=0;M<B.length;M++){var U=B[M];
U.Ya()&&(_.E(U,2,!1)?I.push(U):F.push(U))}for(var R=0;R<F.length;R++){var da=yUc(F[R],0==R?"(":"",R==F.length-1?")":"");_.SM(b,da,0!=R?"or":"and")}for(var ta=0;ta<I.length;ta++)_.SM(b,yUc(I[ta],0==ta?"(":"",ta==I.length-1?")":""))}for(var ra=_.Lk(a,_.Rl,7),Aa=0;Aa<ra.length;Aa++)BUc(b,"modifiedDate",ra[Aa]);for(var va=_.Lk(a,_.Rl,8),ka=0;ka<va.length;ka++)BUc(b,"lastViewedByMeDate",va[ka]);_.UM(b,"trashed",a.Ah());_.UM(b,"explicitlyTrashed",_.H(a,17));_.UM(b,"starred",_.H(a,10));_.UM(b,"hidden",a.Vl());
for(var Qa=_.FM(a),ib=0;ib<Qa.length;ib++){var Ac=Qa[ib];TM(b,"parents",Ac.Ya(),_.E(Ac,2,!1))}for(var Jb=_.Lk(a,_.Re,13),wc=0;wc<Jb.length;wc++){var Fd=Jb[wc];TM(b,"owners",Fd.Ya(),_.E(Fd,2,!1))}for(var ed=_.Lk(a,_.Re,14),Fc=0;Fc<ed.length;Fc++){var fe=ed[Fc];TM(b,"writers",fe.Ya(),_.E(fe,2,!1))}for(var Kd=_.Lk(a,_.Re,15),Zd=0;Zd<Kd.length;Zd++){var Tc=Kd[Zd];TM(b,"readers",Tc.Ya(),_.E(Tc,2,!1))}_.H(a,16)&&_.SM(b,"sharedWithMe");_.UM(b,"unparented",_.H(a,34));rUc(b,a);sUc(b,a);tUc(b,a);uUc(b,a);for(var wb=
_.Jd(a,40),th=0;th<wb.length;th++){var Be=[];0==th&&Be.push("(");Be.push(RM(wb[th]));Be.push("in");Be.push("templateData.categories");th==wb.length-1&&Be.push(")");_.SM(b,Be.join(" "),0==th?"and":"or")}var af=_.C(a,41);if(null!=af){var Gi=[];Gi.push("templateData.galleryState");Gi.push("=");Gi.push(RM(_.CQc[af]||""));_.SM(b,Gi.join(" "))}var Mh=_.C(a,42);if(null!=Mh){var nf=[];nf.push("visibility");nf.push("=");nf.push(RM(CUc(Mh)));_.SM(b,nf.join(" "))}for(var sn=_.Lk(a,_.Ol,44),tn=0;tn<sn.length;++tn){var Bf=
sn[tn];TM(b,"actionItems",zUc(Bf),_.E(Bf,3,!1))}if(_.sk(a,50)){var sg=[];sg.push("pairedDocType");var uh=_.E(a,50,!1)?"!=":"=";sg.push(uh);sg.push(RM("NONE"));_.SM(b,sg.join(" "))}TM(b,"workspaceIds",a.gq(),!1);for(var ti=_.Lk(a,_.Pl,57),uj=0;uj<ti.length;uj++){var tl=[];0==uj&&tl.push("(");tl.push(RM(ti[uj].Ya()));tl.push("in");tl.push("approvals");uj==ti.length-1&&tl.push(")");_.SM(b,tl.join(" "),0==uj?"and":"or")}if(_.sk(a,58)){var Hi=a.Yp(),Rj=Hi.Ya(),Qe=_.E(Hi,2,!1);if(Rj){var ul=[];Qe&&ul.push("not");
ul.push("creator");ul.push("=");ul.push(RM(Rj));_.SM(b,ul.join(" "))}}var nk=_.D(a,_.Ona,59);if(nk)for(var bh=_.m(_.Lk(nk,_.Mna,1)),vl=bh.next();!vl.done;vl=bh.next()){var fm=vl.value;TM(b,"categoryMetadata",fm.Om());for(var Il=_.m(_.Lk(fm,_.Kna,2)),ok=Il.next();!ok.done;ok=Il.next()){var Qg=ok.value,Ui=_.C(Qg,1),hi=_.mk(Qg,_.Ql[0]);if(10==hi){_.D(Qg,_.Dna,10);var Vi=_.H(Qg,15);(void 0===Vi?0:Vi)?_.SM(b,Ui+" is null"):_.SM(b,"not ("+Ui+" is null)")}else{var Rf=new _.aq,Eg=void 0;switch(hi){case 3:Eg=
_.D(Qg,mTc,3);for(var Ok=_.m(Eg.xi()),jj=Ok.next();!jj.done;jj=Ok.next())_.UM(Rf,Ui,jj.value,"or");break;case 14:for(var Jl=Eg=_.D(Qg,_.wna,14),Cf=new Map([[1,"="],[2,">"],[3,"<"]]),vj=_.m(Jl.xi()),gm=vj.next();!gm.done;gm=vj.next()){var hm=gm.value,ii=Cf.get(_.C(Jl,2));if(!ii)throw Error("Fe");var Wi=[Ui,ii,RM(hm.getYear()+"-"+hm.getMonth()+"-"+hm.getDay())];_.SM(Rf,Wi.join(" "),"or")}break;case 8:for(var Cc=Eg=_.D(Qg,_.Cna,8),pk=new Map([[1,"="],[2,">"],[3,"<"]]),Kl=_.m(Cc.xi()),kh=Kl.next();!kh.done;kh=
Kl.next()){var qk=kh.value,Fg=pk.get(_.C(Cc,2));if(!Fg)throw Error("Fe");_.SM(Rf,[Ui,Fg,qk].join(" "),"or")}break;case 9:for(var ip=Eg=_.D(Qg,oTc,9),un=new Map([[1,"in"]]),Ll=_.m(ip.xi()),Pk=Ll.next();!Pk.done;Pk=Ll.next()){var mo=Pk.value,Ml=un.get(_.C(ip,2));if(!Ml)throw Error("Fe");_.SM(Rf,[mo,Ml,Ui].join(" "),"or")}break;case 6:for(var wj=Eg=_.D(Qg,_.Hna,6),no=new Map([[1,"="]]),oo=_.m(wj.xi()),kj=oo.next();!kj.done;kj=oo.next()){var Qk=kj.value,rk=no.get(_.C(wj,2));if(!rk)throw Error("Fe");_.SM(Rf,
[Ui,rk,RM(Qk)].join(" "),"or")}break;case 7:for(var vn=Eg=_.D(Qg,_.Fna,7),dq=new Map([[1,"in"]]),wn=_.m(vn.xi()),po=wn.next();!po.done;po=wn.next()){var qo=po.value,hs=dq.get(_.C(vn,2));if(!hs)throw Error("Fe");_.SM(Rf,[RM(qo),hs,Ui].join(" "),"or")}break;case 4:for(var jw=Eg=_.D(Qg,_.Jna,4),Vm=new Map([[1,"="],[2,"contains"],[3,"starts with"]]),kw=_.m(jw.xi()),qq=kw.next();!qq.done;qq=kw.next()){var kt=qq.value,rq=Vm.get(_.C(jw,2));if(!rq)throw Error("Fe");_.SM(Rf,[Ui,rq,RM(kt)].join(" "),"or")}break;
case 5:for(var sq=Eg=_.D(Qg,qTc,5),is=new Map([[1,"in"]]),lw=_.m(sq.xi()),RB=lw.next();!RB.done;RB=lw.next()){var mE=RB.value,SB=is.get(_.C(sq,2));if(!SB)throw Error("Fe");_.SM(Rf,[RM(mE),SB,Ui].join(" "),"or")}break;case 12:for(var Hx=Eg=_.D(Qg,_.Ana,12),nE=new Map([[1,"="]]),Ix=_.m(Hx.xi()),Fz=Ix.next();!Fz.done;Fz=Ix.next()){var nM=Fz.value,oE=nE.get(_.C(Hx,2));if(!oE)throw Error("Fe");_.SM(Rf,[Ui,oE,RM(nM)].join(" "),"or")}break;case 11:for(var VH=Eg=_.D(Qg,_.yna,11),oM=new Map([[1,"in"]]),WH=
_.m(VH.xi()),pM=WH.next();!pM.done;pM=WH.next()){var qM=pM.value,Jx=oM.get(_.C(VH,2));if(!Jx)throw Error("Fe");_.SM(Rf,[RM(qM),Jx,Ui].join(" "),"or")}}_.H(Qg,15)?_.SM(b,"not ("+Rf+")"):_.SM(b,1<Eg.xi().length?"("+Rf+")":""+Rf)}}}null!=_.H(a,60)&&_.UM(b,"linkShareMetadata.securityUpdateEligible",_.H(a,60));var dl=_.H(a,65);if(null!=dl){var uq=[];uq.push("clientEncryptionDetails.encryptionState");uq.push("=");uq.push(RM(dl?"encrypted":"unencrypted"));_.SM(b,uq.join(" "))}var En=_.Lk(a,_.Re,68);if(En.length){for(var VQ=
[],XH=[],TB=_.m(En),be=TB.next();!be.done;be=TB.next()){var GX=be.value,Ku="sharedFrom = "+RM(GX.Ya());_.E(GX,2,!1)?XH.push(Ku):VQ.push(Ku)}pUc(b,VQ,!1);pUc(b,XH,!0)}var Fn=_.Lk(a,_.Re,67);if(Fn.length){for(var rM=[],UB=[],VB=_.m(Fn),Xl=VB.next();!Xl.done;Xl=VB.next()){var sM=Xl.value,WB="sharedTo = "+RM(sM.Ya());_.E(sM,2,!1)?UB.push(WB):rM.push(WB)}pUc(b,rM,!1);pUc(b,UB,!0)}null!=_.H(a,69)&&_.UM(b,"linkShareMetadata.allowLessSecureLink",_.H(a,69));1==_.HM(a)&&vUc(b,a);return b.toString()};
_.EUc=function(a){var b=new _.aq(_.DUc(a));_.PL(a)?_.SM(b,"isQuickAccessRequest"):_.QL(a)?_.SM(b,"isPeoplePredictRequest"):_.RL(a)&&_.SM(b,"isDrivePriorityRequest");var c=a.Lc();if(c){var d=[];d.push("sortBy");d.push(_.wQc[c.getType()]);d.push(_.EQc[_.vk(c,2,1)]);_.H(c,3)&&d.push("foldersFirst");_.SM(b,d.join(" "))}_.UM(b,"domainSearch",_.H(a,18));_.UM(b,"offline",_.H(a,19));_.Lk(a,_.DM,25).length&&(c=[],c.push("sources"),c.push("contains"),c.push(_.wUc(a)),_.SM(b,c.join(" ")));a.bx().length&&(c=
[],c.push("spaces"),c.push("contains"),c.push(_.xUc(a)),_.SM(b,c.join(" ")));if(c=_.HM(a))d=[],d.push("corpora"),d.push("="),d.push(RM(_.ZTc[c])),_.SM(b,d.join(" "));_.E(a,66,!0)||_.UM(b,"includeItemsFromAllDrives",_.E(a,66,!0));1!=_.HM(a)&&vUc(b,a);_.E(a,48,!1)&&_.SM(b,"cachedOnly");return b.toString()};
_.mM=function(a){if(a instanceof _.YK)a=a.ud();else if(!a)return!1;return a instanceof _.np||"undefined"!=typeof _.bM&&a instanceof _.bM||"undefined"!=typeof _.VM&&a instanceof _.VM||a instanceof _.Oe&&(_.PL(a)||_.QL(a)||_.RL(a))};FUc=function(){_.Yp.call(this);this.V=this.O=null;this.ka=!1;this.ha=null};_.N(FUc,_.Yp);_.GUc=function(a){!a.ka&&a.V&&(a.V(),a.ka=!0)};HUc=function(a,b){a.V||(a.V=b)};FUc.prototype.ek=function(){_.GUc(this);(0,this.ha)()};IUc=function(a,b){a.ha||(a.ha=b)};
_.WM=function(a){if(!a.O){a.O=new TTc;var b=_.$p(a);_.y(b,56,a.O)}return a.O};FUc.prototype.getState=function(){var a=_.WM(this).getState();a||(a=new KTc,_.WM(this).Fd(a));return a};var JUc=function(a,b){var c=new ITc;_.A(c,1,b);a=_.$p(a);_.y(a,12,c)};FUc.prototype.iD=function(){var a=_.WM(this).iD();if(!a){a=new MTc;var b=_.WM(this);_.y(b,16,a)}return a};FUc.prototype.ma=function(){var a=_.D(_.WM(this),NTc,4);if(!a){a=new NTc;var b=_.WM(this);_.y(b,4,a)}return a};
KUc=function(a){var b=_.D(_.WM(a),OTc,8);b||(b=new OTc,a=_.WM(a),_.y(a,8,b));return b};_.LUc=function(a,b){a=void 0===a?1:a;b=void 0===b?!1:b;_.Q.call(this);this.H=!1;this.connectionState=b?1:a;this.O=b};_.N(_.LUc,_.Q);_.g=_.LUc.prototype;_.g.isConnected=function(){return!this.H&&1===this.connectionState};_.g.am=function(){return 1===this.connectionState||2===this.connectionState};_.g.$e=function(){return 3===this.connectionState};_.g.get=function(){return this.connectionState};
_.g.update=function(a){if(this.O)return!1;if(this.connectionState!==a||this.H&&1===a){if(2===a)var b=3===this.connectionState?_.$K.U4:_.$K.Vra;else 1===a?b=_.$K.HX:3===a&&(b=_.$K.sS);if(b)return b=new eUc(b),this.connectionState=a,this.H=!1,this.dispatchEvent(b),!0}return!1};
var MUc=function(a,b){this.userId=a;this.H=b;this.db=null},OUc=function(a,b){a.H.info("drive.ds.sync.logging.ImpressionPersister","Persisting offline impressions.");return NUc(a,function(c){return c.count().then(function(d){return 1E3>d?a.add(c,b):a.handleError(Error("Le"))},function(d){return a.handleError(d)})},"readwrite")};MUc.prototype.add=function(a,b){var c=this,d={};return a.add((d.userId=this.userId,d.Awb=b.he(),d)).then(null,function(e){c.handleError(e)})};
var PUc=function(a){return new _.gi(function(b){var c=new Map;NUc(a,function(d){return uTc(d.getIndex("userId"),a.userId).then(function(e){e=new Map(e.map(function(l){return[l,d.get(l)]}));for(var f={},h=_.m(e),k=h.next();!k.done;f={Qoa:f.Qoa},k=h.next())k=_.m(k.value),f.Qoa=k.next().value,k.next().value.then(function(l){return function(n){n&&c.set(l.Qoa,new _.KBa(n.Awb))}}(f));return _.ni([].concat(_.Wc(e.values()))).then(function(){return b(c)})})})})},QUc=function(a,b){return NUc(a,function(c){return c.remove(b)},
"readwrite")},NUc=function(a,b,c){c=void 0===c?"readonly":c;return RUc(a).then(function(d){try{var e=_.vPc(d,["OfflineImpressions"],c).objectStore("OfflineImpressions");return b(e)}catch(f){return a.handleError(f)}},function(d){return a.handleError(d)})},RUc=function(a){return a.db?_.ji(a.db):_.xPc("GoogleDriveDsImpressions",2,function(b,c){c.H.objectStoreNames.contains("OfflineImpressions")&&_.vTc(c,"OfflineImpressions");b=_.uPc(c,"OfflineImpressions",{autoIncrement:!0});try{b.H.createIndex("userId",
"userId",void 0)}catch(d){throw _.QK(d,"creating new index userId with key path userId");}},function(){return a.handleError(Error("Me"))}).then(function(b){return a.db=b},function(b){return _.ki(_.rL(b))})};MUc.prototype.handleError=function(a){a||(a=Error("Ne"));_.OM(this.H,"drive.ds.sync.logging.ImpressionPersister",a.message,"severe");return _.ji()};_.SUc=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;_.Q.call(this);this.V=b;this.O=null;this.H=b?!1:a};_.N(_.SUc,_.Q);_.SUc.prototype.$e=function(){return this.H};
_.SUc.prototype.Uk=function(a){var b=this.H!==a;!this.V&&b&&(this.H=a,this.dispatchEvent(new nUc(a)))};_.SUc.prototype.Bx=function(a){this.O=a};var UUc=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.V=a;this.H=b;this.connectionState=c;this.O=d;this.Ib=new _.pe(this);this.Ib.listen(b,"Ab",function(k){k.$e()||TUc(h)});this.Ib.listen(c,[_.$K.HX,_.$K.U4],function(){return void TUc(h)});this.W=e;f.then(function(){return TUc(h)})};_.N(UUc,_.Q);
UUc.prototype.az=function(a){return(this.H.$e()||this.connectionState.$e())&&this.H.O?OUc(this.O,a):this.V.az(a)};
var TUc=function(a){return a.H.O?PUc(a.O).then(function(b){b.forEach(function(c,d){a.V.az(c).then(function(){return VUc(a,d)},function(){a.log("Unable to send offline impression batch "+d+".")})})}):Promise.resolve()},VUc=function(a,b){a.log("Sent offline impression batch "+b+".");a.dispatchEvent("Bb");return QUc(a.O,b).then(function(){a.log("Removed offline impression batch "+b+".")},function(){a.log("Unable to remove offline impression batch "+b+".")})};
UUc.prototype.log=function(a){this.W.info("drive.ds.sync.logging.ClearcutOfflineTransport",a)};var WUc=function(){};WUc.prototype.YO=function(){return new FUc};var XUc=function(){this.H=new UTc};XUc.prototype.O=function(a){_.y(a,13,this.H)};XUc.prototype.setEnvironment=function(a){this.H.setEnvironment(a);return this};
ZUc=function(a,b,c,d){this.V=b;this.connectionState=c;this.ir=d;this.O=this.H=null;this.client=_.XM(_.NQc,_.JM(a));this.ha=_.XM(_.RQc,_.vk(a.Of(),8,0));this.Yta=_.XM(_.OQc,_.vk(a.Of(),9,2));this.ka=_.E(a,10,!1);this.Xv=_.RK(_.SK(a));this.cza=_.KM(a);this.W=YUc(a);this.buildLabel=a.wi()};YUc=function(a){var b=[].concat(_.Wc(_.KQc.keys())),c=[].concat(_.Wc(_.LQc.keys())),d=_.hL(a);return b.filter(function(e){return _.KQc.get(e)(a)}).concat(c.filter(function(e){return d&&_.LQc.get(e)(d)}))};
_.XM=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};$Uc=function(a){if(a.O)return a.O.H("aU7Ts")};
ZUc.prototype.Cb=function(a){return a instanceof _.BA||"undefined"!=typeof _.YM&&a instanceof _.YM||"undefined"!=typeof _.ZM&&a instanceof _.ZM||"undefined"!=typeof _.$M&&a instanceof _.$M?a.Cb():"undefined"!=typeof _.aN&&a instanceof _.aN||"undefined"!=typeof _.bN&&a instanceof _.bN||"undefined"!=typeof _.cN&&a instanceof _.cN||"undefined"!=typeof _.dN&&a instanceof _.dN||"undefined"!=typeof _.eN&&a instanceof _.eN?a.response?a.response.Cb():null:null};ZUc.prototype.wi=function(){return this.buildLabel};
var aVc=function(a){return a.V.$e()||a.connectionState.$e()?2:1};ZUc.prototype.getEnvironment=function(){return this.ir};var bVc=function(a,b){this.H=a;var c=new _.sAa;_.tAa(c,b.W);a=this.H.FJ();var d=_.nQc(a);_.y(d,10,c);(c=b.wi())&&_.mQc(a,c);this.H.NX();this.O=b};bVc.prototype.isRunning=function(){return this.H.WR()};bVc.prototype.Mw=function(){this.isRunning()&&this.H.Mw()};
_.cVc=function(a,b,c){var d=_.Zp(a.H.qE(b,c),_.FQc);JUc(d,aVc(a.O));b=$Uc(a.O);"boolean"===typeof b&&LTc(d.getState(),b);1===c&&HUc(d,function(){return void a.H.LK(d)});IUc(d,function(){var e=a.O;e=e.H?e.H.Md():void 0;var f=d.getState();_.A(f,1,e);a.H.mq(d)});return d};dVc=function(a){var b=new _.hBa,c=new XUc;_.A(c.H,1,a.client);_.A(c.H,3,a.ha);_.A(c.H,4,a.Yta);_.A(c.H,5,a.ka);_.A(c.H,6,a.Xv);_.A(c.H,7,a.cza);a=c.setEnvironment(a.getEnvironment());_.zPc(b,_.HQc,a);_.bq(b,_.FQc,new WUc);return b};
eVc=function(a,b,c,d,e,f,h,k){k=void 0===k?!1:k;var l=new _.VG(906,b,void 0,_.UQc());l.V=!1;var n=new _.APc(l);b=new Date;l=_.sQc(_.rQc(_.qQc(wTc(),new _.BPc(l)),dVc(c)),109).setSessionId(b.getTime()+"_"+_.ah());if(k){a=new UUc(n,d,e,new MUc(a,f),f,h);_.pQc(l,a);d=l.build();_.lQc(d.FJ(),1E3*b.getTime());var p=new bVc(d,c);(new _.pe).listen(a,"Bb",function(){_.cVc(p,106008,0).ek()});return p}_.pQc(l,n);a=l.build();_.lQc(a.FJ(),1E3*b.getTime());return new bVc(a,c)};
fVc=function(a,b){this.V=a;this.W=b};fVc.prototype.O=function(a,b){this.V&&this.isRunning()&&(a=_.cVc(this.V,a,0),b&&_.yPc(a,b),a.ek())};_.gVc=function(a,b){if(a.V&&a.isRunning()){a=_.cVc(a.V,106018,0);var c=_.D(_.WM(a),STc,15);if(!c){c=new STc;var d=_.WM(a);_.y(d,15,c)}c=_.A(c,1,1);_.A(c,2,b);a.ek()}};fVc.prototype.H=function(a,b){return this.V&&this.isRunning()?(a=_.cVc(this.V,a,1),b&&_.yPc(a,b),a):null};fVc.prototype.Mw=function(){this.V&&this.isRunning()&&this.V.Mw()};
fVc.prototype.isRunning=function(){return!(!this.V||!this.V.isRunning())};_.hVc=function(a,b,c,d,e,f){var h=_.H(a,59),k=_.gL(_.SK(a)).toString(),l=_.IM(_.SK(a));f=new ZUc(a,b,c,f);a=h?eVc(l,k,f,b,c,d,e,_.E(a,17,!1)):null;return new fVc(a,f)};_.iVc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.iVc,_.L);_.iVc.prototype.getId=function(){return _.C(this,1)};_.iVc.prototype.Pb=function(a){return _.A(this,1,a)};_.iVc.prototype.re=function(){return _.D(this,_.bf,2)};
_.UL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.UL,_.L);_.UL.prototype.Tn=function(){return _.C(this,2)};_.UL.prototype.ud=function(){return _.D(this,_.iVc,3)};_.LL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.LL,_.L);_.LL.prototype.ud=function(){return _.D(this,_.KL,1)};_.LL.prototype.Zs=function(){return _.C(this,2)};_.LL.prototype.Jaa=function(a){return _.A(this,2,a)};_.LL.prototype.CUa=function(){return _.sk(this,2)};_.JL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.JL,_.L);
_.JL.prototype.getId=function(){return _.C(this,1)};_.JL.prototype.Pb=function(a){return _.A(this,1,a)};_.jVc=function(a,b){_.A(a,2,b)};_.WL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.WL,_.L);_.WL.prototype.ud=function(){return _.D(this,_.JL,1)};kVc=[2];_.dM=function(a){(0,_.S)(this,a,0,-1,kVc,null)};_.O(_.dM,_.L);_.dM.prototype.Gc=function(){return _.C(this,1)};_.dM.prototype.RT=function(){return _.Lk(this,_.rSb,2)};_.dM.prototype.re=function(){return _.D(this,_.bf,3)};lVc=[1];
_.QRc=function(a){(0,_.S)(this,a,0,-1,lVc,null)};_.O(_.QRc,_.L);_.mVc=function(){this.H={}};nVc=function(a,b,c){if(a.H[b])throw Error("Oe");a.H[b]=c};_.mVc.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){_.q.setTimeout(function(){throw d;},0)}};oVc=function(a,b){for(var c=0;c<b.length;c++)delete a.H[b[c]]};_.pVc=function(a,b){this.H=a;this.V=b;this.O=_.ZQc[_.vk(a.Of(),8,0)];this.W=_.ZQc[_.vk(a.Of(),51,5)];this.nonce=_.ah()};
_.pVc.prototype.tc=function(a,b){if(b.VL)qVc(this,a,b),rVc(this,a,b);else if(11===a.Km){if(b.GFb){var c=b.cC||_.G(this.H.Of(),37,"");_.Jj(a.uri,"key",c)}qVc(this,a,b);sVc(this,a,b)}else switch(a.uri=tVc(this,a.Km,a.uri),a.Km){case 1:sVc(this,a,b);qVc(this,a,b);break;case 0:_.E(this.H,83,!1)&&(b.Xv||_.RK(_.SK(this.H))||_.Jj(a.uri,"dsNonce",this.nonce));sVc(this,a,b);rVc(this,a,b);qVc(this,a,b);break;case 2:case 3:case 4:case 5:sVc(this,a,b);rVc(this,a,b);qVc(this,a,b);break;case 8:case 9:case 10:case 13:case 12:case 7:sVc(this,
a,b);rVc(this,a,b);break;default:throw Error("Pe`"+a.Km);}};uVc=function(a,b){var c=tVc(a,b,new _.Cj);if(!c.H)throw Error("Re");return _.Fj(_.Ej(_.Dj(new _.Cj,c.O),c.H),c.W).Di(_.$Qc.has(b)?"/batch"+a.O:"/batch")};
tVc=function(a,b,c){var d=_.C(a.H.Of(),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=_.G(a.H.Of(),62,"");break;case 8:a=_.C(a.H.Of(),53);break;case 9:a=_.C(a.H.Of(),56);break;case 10:a=_.C(a.H.Of(),22);break;case 13:a=_.C(a.H.Of(),55);break;case 12:a=_.C(a.H.Of(),43);break;default:throw Error("Pe`"+b);}a&&a.endsWith("/")&&(a=a.slice(0,-1));c=c.toString();if(!c)return new _.Cj(a);
_.vd(c,"/")&&(c=c.slice(1));return new _.Cj(a+"/"+c)};sVc=function(a,b,c){a=_.SK(a.H);c.Xv||_.RK(a)||(c=[{key:"u",value:_.IM(a)}],b.headers.authorization=_.l8b(c)||"",c=_.gL(a),0<=c&&(b.headers["x-goog-authuser"]=String(c)))};
qVc=function(a,b,c){var d=_.SK(a.H),e=a.H.Of(),f=c.d3a||!!_.C(e,13);c=c.e3a||_.E(e,14,!1);var h=11===b.Km;f&&((f=_.C(e,13))&&_.vd(f,"email:")?_.Jj(b.uri,"trace",f):f&&"trace:true"===f?_.Jj(b.uri,"$trace","true"):f?_.Jj(b.uri,"trace","token:"+f):_.Jj(b.uri,"trace","email:"+d.getEmail().replace(/(@|\+).*$/,"")),h||_.Jj(b.uri,"trace.deb","genoa:3:all,driveService:3:all"+(2===_.vk(e,9,2)?"":",cospel:3:all,DriveService:3:all")));c&&!h&&a.V&&a.V.O(b.headers,b.method,b.uri.toString())};
rVc=function(a,b,c){c.Xv||_.RK(_.SK(a.H))?_.Jj(b.uri,"key",_.G(a.H.Of(),36,"")):(a=c.cC||_.G(a.H.Of(),37,""),_.Jj(b.uri,"key",a))};_.vVc=function(a,b){_.OG.call(this,a?a:500,b?b:6E5)};_.N(_.vVc,_.OG);_.wVc=function(a,b){this.O=b;this.H=new Map;this.Yia(_.Lk(a,_.Vl,91))};_.wVc.prototype.Yia=function(a){var b=this;a.forEach(function(c){var d=c.getId();c=_.C(c,2);if(d&&c){var e=_.xVc(b,d);if(e){if(e!==c)throw new _.Vb("Multiple resource key definitions found for itemId "+d);}else b.H.set(d,c)}})};
rSc=function(a,b){return[].concat(_.Wc(new Set(b))).map(function(c){var d=(new _.Vl).Pb(c);a.H.has(c)?_.Wl(d,a.H.get(c)):a.O&&(c=a.O.H(c))&&_.Wl(d,_.Nl(c));return d}).filter(function(c){return _.sk(c,2)})};_.xVc=function(a,b){return a.H.has(b)?String(a.H.get(b)):a.O&&(a=a.O.H(b))&&_.sk(a,140)?_.Nl(a):null};_.yVc=function(a,b,c){this.state=a;this.ka=b;this.ha=c;this.W=this.H=this.timeout=this.V=null;this.O=!1};_.yVc.prototype.getState=function(){return this.state};
_.yVc.prototype.reset=function(){this.H=null;this.timeout&&(clearTimeout(this.timeout),this.timeout=null)};_.AVc=function(a){a.H||a.O||(a.H=new _.vVc(5E3,6E4),zVc(a))};zVc=function(a){_.BVc(a);a.H&&(a.timeout=setTimeout(function(){return void zVc(a)},a.H.Ya()),_.PG(a.H))};_.BVc=function(a,b){_.pi((a.W?a.W():_.ji()).then(null,function(){return null}),function(){return void CVc(a,b)})};
CVc=function(a,b){a.log("Checking connection state.");var c=a.ka.then(function(d){return d.Qe(new _.eSc)}).then(null,function(d){d=_.sL(d);_.TQc(d.Kg)&&DVc(a,2);return _.ki(d)});b?b.resolve(c):c.then(null,function(){return null})};_.yVc.prototype.log=function(a){this.ha.info("drive.ds.sync.connection.StateManager",a)};DVc=function(a,b){return!a.O&&a.state.update(b)?(a.log("Connection status: "+_.aRc.get(b)),!0):!1};
jSc=[_.vL,_.xL,_.wL,_.zL,_.yL,_.AL,_.BL,_.EL,_.GL,_.HL,_.IL,_.KL,_.LL,_.ZL,_.aM,_.dM,_.iL,_.eM,_.fM,_.gM,_.URc,_.hM];EVc=[_.kL];kSc=[_.CF,_.ZRc];lSc=[_.UL,_.TK,_.mC,_.iM];mSc=[_.YK,_.fp,_.kL,_.TRc];nSc=[_.iM,_.op];oSc=[_.JL,_.QRc,_.TL,_.WL,_.XL,_.SRc,_.hM,aSc,$Rc];FVc=function(a){return a instanceof _.YK||a instanceof _.iM||"undefined"!=typeof _.fN&&a instanceof _.fN||a instanceof _.fM||a instanceof _.HL||a instanceof _.AL||a instanceof _.EL||a instanceof _.iL&&_.lM(a)};
_.GVc=function(a,b){this.O=b;this.H={};this.Li=new ETc;b=_.uL({fields:_.Jd(a,28),xq:_.RK(_.SK(a))});this.Kb("SecondaryFields",b);this.Kb("SdkBackfillEnabled",!!_.E(a,45,!1)+" (Include corpus cache: "+!!_.E(a,46,!1)+")")};_.GVc.prototype.Kb=function(a,b){this.H[a]=HVc(a,b)};var IVc=function(a,b){var c=a.H[b];c||(c=HVc(b,0,2),a.H[b]=c);c.Kb(String(Number(c.Ya())+1))};
_.GVc.prototype.wy=function(a){var b=_.Yc(this.H);this.O&&b.push(HVc("CacheSize",this.O.Md()));b.push(HVc("InitialViewDataLoaded",a));a=new _.dUc;_.kb(a,1,b);return _.xi(a)};HVc=function(a,b,c){var d=new _.bUc;_.A(d,1,a);_.A(d,4,c||1);d.Kb(String(b));d.Tk(ATc[a]);return d};
_.JVc=function(a,b,c){var d=new _.uQc;_.A(d,2,"Pending...");b instanceof _.YK?_.Nk(d,3,_.ZK[0],b):b instanceof _.iM?_.Nk(d,4,_.ZK[0],b):"undefined"!=typeof _.fN&&b instanceof _.fN?_.Nk(d,5,_.ZK[0],b):b instanceof _.fM?_.Nk(d,6,_.ZK[0],b):b instanceof _.HL?_.Nk(d,7,_.ZK[0],b):b instanceof _.AL?_.Nk(d,8,_.ZK[0],b):b instanceof _.EL?_.Nk(d,9,_.ZK[0],b):b instanceof _.iL&&_.Nk(d,10,_.ZK[0],b);var e=gSc(b),f=[];if(b instanceof _.wL)jM(f,"ID",b.getId()),jM(f,"Parent ID",b.rk());else if(b instanceof _.HL)jM(f,
"TD ID",b.getId());else if(b instanceof _.YK)b=_.EUc(b.ud()),jM(f,"Query",b);else if(b instanceof _.iM)jM(f,"Query","All");else if(b instanceof _.fM)jM(f,"TD ID",b.getId()),jM(f,"Title",b.getTitle()),jM(f,"Theme Image ID",_.C(b,3));else if(b instanceof _.AL)jM(f,"MimeType",b.getMimeType()),jM(f,"Title",b.getTitle()),jM(f,"Parents",_.Jd(b,3)),jM(f,"Convert",_.H(b,8)),jM(f,"Request ID",b.Nj()),jM(f,"Parent Request IDs",_.Jd(b,10)),jM(f,"Revision Item ID",_.C(b,12)),jM(f,"Pinned",_.H(b,8));else if(b instanceof
_.BL)jM(f,"Title",b.getTitle());else if(b instanceof _.EL)jM(f,"ID",b.getId());else if(b instanceof _.IL)jM(f,"WS ID",b.getId());else if(b instanceof _.iL){if(jM(f,"ID",b.getId()),jM(f,"Title",b.getTitle()),jM(f,"Description",b.ag()),jM(f,"Starred",_.H(b,4)),jM(f,"Trashed",b.Ah()),jM(f,"MimeType",b.getMimeType()),jM(f,"Parents",_.Jd(b,8)),jM(f,"Parents to add",_.Jd(b,9)),jM(f,"Parents to remove",_.Jd(b,10)),jM(f,"Restricted",_.H(b,11)),jM(f,"Folder Color",b.Ii()),jM(f,"Update Last Viewed",_.H(b,15)),
jM(f,"Subscribed",_.H(b,16)),jM(f,"Available Offline",_.H(b,18)),jM(f,"Wksp to add",_.Jd(b,31)),jM(f,"Wksp to remove",_.Jd(b,32)),b=_.D(b,_.yl,25))jM(f,"Read Only",_.H(b,1)),jM(f,"Reason",_.C(b,2))}else b instanceof _.gM?(jM(f,"WS ID",b.getId()),jM(f,"Title",b.getTitle()),jM(f,"State",b.getState())):b instanceof _.URc&&jM(f,"Title",b.request.getTitle());_.A(d,1,"Request: "+e+(c?" ("+c+")":"")+"\n"+f.join("\n"));a.Li.add(d);return d};
_.KVc=function(a,b){for(var c=new _.aq,d=0;d<b.length&&20>d;d++){var e=b[d];c.append(e.getId()+":"+_.CRc(e.getTitle()||"",20)+"\n")}20<b.length&&c.append(b.length-20+" more item(s)");_.A(a,2,c.toString()||"Done.")};_.GVc.prototype.vP=function(){return this.Li.Wg()};_.r("sy168");
_.gN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.gN,_.L);_.gN.prototype.Me=function(){return _.D(this,_.BA,1)};_.LVc=function(a,b){return _.y(a,1,b)};_.gN.prototype.Tn=function(){return _.C(this,3)};
_.MVc=function(a,b,c){_.Fi.call(this,"Lb");this.requestId=a;this.progress=b;this.totalBytes=c};_.N(_.MVc,_.Fi);
_.NVc=function(a,b){this.O=a;this.V=b;this.H=null};
var hN=function(){_.Q.apply(this,arguments)};_.N(hN,_.Q);var PVc=function(a,b){a.dispatchEvent(new OVc(b))};hN.prototype.O=function(){};var OVc=function(a){_.Fi.call(this,"Mb");this.request=a};_.N(OVc,_.Fi);
_.QVc=function(a){hN.call(this);this.H=a};_.N(_.QVc,hN);_.QVc.prototype.intercept=function(a){var b=!1;_.TQc(_.fL(a.zx[a.zx.length-1].response))&&(this.H.oa(),b=!0);return b&&2>a.zx.length?(PVc(this,a),!0):!1};
var iN=function(a){_.Q.call(this);this.name=a};_.N(iN,_.Q);_.g=iN.prototype;_.g.t1=function(){};_.g.CBa=function(){};_.g.WXa=function(){};_.g.lJa=function(){};_.g.VXa=function(){};_.g.rE=function(){this.dispatchEvent(new _.Fi("Nb"))};_.g.toString=function(){return this.name+": "+this.max(Infinity)};
_.RVc=function(a,b){iN.call(this,"Online");var c=this;this.O=a;this.H=b;this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.O,"Ab",function(d){d.$e()||c.rE()});this.Ic.listen(this.H,"eb",this.rE)};_.N(_.RVc,iN);_.RVc.prototype.max=function(){var a=this.O.$e(),b=this.H.iA();return!a&&b?Infinity:0};_.RVc.prototype.t1=function(){this.rE()};
var TVc;_.SVc=function(a,b,c){this.zI=c;this.O=!0;this.V=0;this.H=new _.OG(a,b,.5)};TVc=function(a){return a.H.O+a.V};
_.jN=function(a,b){iN.call(this,"Backoff");this.H=a;this.O=b};_.N(_.jN,iN);_.jN.prototype.max=function(){return this.H.O?Infinity:0};_.jN.prototype.lJa=function(){var a=this.H;a.V=0;a.H.reset()};_.jN.prototype.VXa=function(a){var b=this;UVc(a)&&this.H.O&&(this.H.O=!1,a=this.H.H.Ya(),this.log("Stopping new requests for "+a+" ms."),_.q.setTimeout(function(){b.log("Backoff complete, allowing requests.");b.H.O=!0;b.rE()},a),_.PG(this.H.H))};
var UVc=function(a){a=a.zx.length&&_.ha(a.zx).response;return!!(a&&a instanceof _.Ub&&FRc(a))};_.jN.prototype.log=function(a){this.O.info("drive.ds.network.queue.BackoffState",a)};
_.VVc=function(a,b){iN.call(this,"Batch");this.O=a;this.V=b;this.H=null};_.N(_.VVc,iN);_.VVc.prototype.max=function(a){return a>=this.O?this.O:null!=this.H?this.V<=Date.now()-this.H?this.O:0:0};_.VVc.prototype.t1=function(a){a>=this.O?this.rE():null==this.H&&WVc(this)};_.VVc.prototype.CBa=function(a,b){0<b?WVc(this):this.H=null};var WVc=function(a){a.H=Date.now()-1;_.q.setTimeout(a.rE.bind(a),a.V)};
_.kN=function(){this.Li=[]};_.g=_.kN.prototype;_.g.add=function(a,b){b?this.Li.unshift(a):this.Li.push(a);return!0};_.g.Spa=function(a){return _.Ca(this.Li,0,a)};_.g.Md=function(){return this.Li.length};_.g.cancel=function(a){return _.wa(this.Li,function(b){return b.mu.config.requestId===a?(b.se.resolve(hSc(b.mu.request)),!0):!1})};_.g.gI=function(){return _.Jf(this.Li,function(a){return _.lM(a.mu.request)})};
_.XVc=function(a){hN.call(this);this.H=a};_.N(_.XVc,hN);_.XVc.prototype.intercept=function(a){var b=_.fL(a.zx[a.zx.length-1].response),c=!1;if(2===b.Mo())b=this.H,DVc(b,3)&&_.AVc(b),c=!0;else if(_.TQc(b)){b=this.H;if(c=!b.O)c=b.state,c=!c.O&&c.isConnected()?c.H=!0:!1;c&&_.AVc(b);c=!0}return c&&2>a.zx.length?(PVc(this,a),!0):!1};
var YVc=function(){iN.call(this,"Immediate")};_.N(YVc,iN);YVc.prototype.max=function(){return Infinity};YVc.prototype.t1=function(){this.rE()};
var ZVc=function(){iN.call(this,"One Request")};_.N(ZVc,iN);ZVc.prototype.max=function(){return 1};
_.$Vc=function(a){iN.call(this,"Online");var b=this;this.connectionState=a;this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.connectionState,[_.$K.HX,_.$K.Vra,_.$K.U4],function(){return b.rE()})};_.N(_.$Vc,iN);_.$Vc.prototype.max=function(){return this.connectionState.isConnected()?Infinity:0};_.$Vc.prototype.t1=function(){this.rE()};
_.lN=function(a){iN.call(this,"Parallel");this.limit=a;this.H=0};_.N(_.lN,iN);_.lN.prototype.max=function(){return Math.max(0,this.limit-this.H)};_.lN.prototype.t1=function(){this.H<this.limit&&this.rE()};_.lN.prototype.CBa=function(a){this.H+=a.length};_.lN.prototype.WXa=function(a){this.H-=a.length;this.H<this.limit&&this.rE()};
_.mN=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.ha=a;this.O=b;this.ma=0;this.V=new Map;this.Ic=new _.pe(this);this.La(this.Ic);this.H=c;for(a=0;a<c.length;a++)this.Ic.listen(c[a],"Nb",this.TWa);this.buckets=d;this.W=e;for(c=0;c<e.length;c++)this.Ic.listen(e[c],"Mb",function(k){aWc(h,!0,k.request)});this.ka=_.mx("drive.ds.network.queue.Queue [%s]",f)};_.N(_.mN,_.Q);_.mN.prototype.add=function(a){return aWc(this,!1,{mu:a,se:_.oi(),zx:[]})};
_.mN.prototype.cancel=function(a){var b=this.O.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};_.mN.prototype.gI=function(){return this.O.gI()?!0:this.buckets.some(function(a){return a.gI()})};
var aWc=function(a,b,c){if(!a.buckets.some(function(f){return f.add(c,b)}))return a=_.Wq(new _.Ub,"No queue bucket accepted request."),_.ki(_.sL(a));for(var d=bWc(a),e=0;e<a.H.length;e++)a.H[e].t1(d);return c.se.promise};_.g=_.mN.prototype;
_.g.TWa=function(){var a=bWc(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].Spa(b);0<c.length&&(this.log("Executing "+c.length+"/"+a+" requests. States: {"+this.H.join(", ")+"}"),this.execute(c))}};
_.g.execute=function(a){var b=this,c=String(this.ma++);this.V.set(c,a);for(var d=this.O.execute(a),e=0;e<a.length;e++)d[e].then(this.zrb.bind(this,a[e]),this.yrb.bind(this,a[e]));e=bWc(this);for(var f=0;f<this.H.length;f++)this.H[f].CBa(a,e);_.pi(_.ni(d).then(this.xrb.bind(this,a)),function(){b.V.delete(c)});_.q.setTimeout(this.TWa.bind(this),0)};
_.g.zrb=function(a,b){var c=a.mu.config;this.log(gSc(a.mu.request)+" request completed successfully. xd4: "+!(!c||!c.VL));this.H.forEach(function(d){return d.lJa()});this.W.forEach(function(d){return d.O(a)});a.se.resolve(b)};
_.g.yrb=function(a,b){b=_.sL(b);this.log(gSc(a.mu.request)+(" request failed with error: "+b.ha+"."));a.zx.push({response:b,mMb:Date.now()});for(var c=0;c<this.H.length;c++)this.H[c].VXa(a);a.mu.config.Mka||!this.W.some(function(d){return d.intercept(a)})?a.se.reject(b):this.log(gSc(a.mu.request)+" encountered an error, but was intercepted to be retried.")};_.g.xrb=function(a){bWc(this);for(var b=0;b<this.H.length;b++)this.H[b].WXa(a)};
var bWc=function(a){for(var b=0,c=0;c<a.buckets.length;c++)if(a.buckets[c].Md()){b=a.buckets[c].Md();break}return b};_.mN.prototype.log=function(a){this.ha.info(this.ka,a)};
_.cWc=function(a,b,c,d){hN.call(this);this.V=b;this.ka=c;this.W=d;this.H=new Map;this.ha=_.wk(a,21,1E3);this.oa=_.wk(a,1,1);this.ma=function(){return new _.SVc(_.wk(a,63,1E3),_.wk(a,64,3E5),_.wk(a,65,10))}};_.N(_.cWc,hN);
_.cWc.prototype.intercept=function(a){var b=a.zx.length,c=0<b&&_.ha(a.zx).response||null;if(c){c=_.fL(c);if(2===c.Mo())return dWc(this,a);var d=c.Wj();if(3===d||31===d||13===d||9===d)return eWc(this,a,b);if(FRc(c))return b=TVc(this.V),c=this.V,TVc(c)<c.zI?(this.log("Backoff number "+b+" for a User Rate Limit error."),PVc(this,a),a=!0):(this.log("Done retrying User Rate Limit errors after "+(b+" backoffs.")),a=!1),a}return!1};
var dWc=function(a,b){var c=fWc(a,b),d=TVc(c);if(TVc(c)<c.zI)return a.log("Retry "+(d+1)+" for a failed request due to an offline error."),a.ka.$e()?(d=c.H.Ya(),_.q.setTimeout(function(){return PVc(a,b)},d),_.PG(c.H)):(_.q.setTimeout(function(){return PVc(a,b)}),c.V++),!0;a.H.delete(b);return!1},fWc=function(a,b){a.H.has(b)||a.H.set(b,a.ma());return a.H.get(b)},eWc=function(a,b,c){var d=a.oa;if(c<=d)return a.log("Retry number "+(c+1)+" for a retryable error."),_.q.setTimeout(function(){return PVc(a,
b)},a.ha*Math.pow(2,c)),!0;a.log("Done retrying retriable requests after "+d+" retries.");return!1};_.cWc.prototype.O=function(a){this.H.delete(a)};_.cWc.prototype.log=function(a){this.W.info("drive.ds.network.queue.RetryInterceptor",a)};
var gWc=function(a){try{if("undefined"!==typeof FileReaderSync&&_.UQc()){var b=new FileReaderSync;return Promise.resolve(b.readAsDataURL(a))}var c=new _.Ssb,d=YTc(c);c.H.readAsDataURL(a);return d.then()}catch(e){return Promise.reject(new _.Qsb(e,"reading data"))}},hWc=function(a){return gWc(a.size?a.slice(0,1):a).then(function(){return null},function(b){return b.name})};
var iWc=function(a,b,c,d,e,f,h){this.Ha=a;this.H=b;this.Ja=c;this.W=d;this.Pa=e;this.request=f;this.config=h;this.O=this.oa=this.progress=0;this.Fa=this.va=this.ha=null;this.se=_.oi();this.finished=!1;this.Ba=this.ou=0;this.ka=null;this.ma=!1;this.V=null;a=f.request.wy();a=_.UQc()&&a?_.C(a,1):null;this.fileSize="number"===typeof a?a:f.file.size;this.requestId=h.requestId;this.AM="progress_"+this.requestId;h.AM=this.AM;this.ma=!!f.metadata};
iWc.prototype.log=function(a){this.Ja.info("drive.ds.sync.request.ResumableUpload",a)};iWc.prototype.start=function(){var a=this,b=new $Rc(this.request.request,this.request.metadata),c=jWc(this);this.Ha.then(function(d){return d.Qe(b,c)}).then(function(d){a.ha=d.O;a.va=d.H;a.Fa=d.V;kWc(a)},function(d){return void a.se.reject(d)});return _.pi(this.se.promise.then(function(d){lWc(a,d);return d},function(d){d=_.sL(d);lWc(a,d.Kg);return _.ki(d)}),function(){oVc(a.H,[a.AM])})};
var jWc=function(a){var b=_.lg(a.config);nVc(a.H,a.AM,BTc(function(){return void a.H.notify([a.requestId],0)}));return b};iWc.prototype.cancel=function(){return this.finished?!1:(this.finished=!0,this.se.resolve(hSc(this.request)),!0)};
var kWc=function(a){a.finished||(a.log("Uploading chunk "+a.Ba+" for "+a.ha+"."),mWc(a,4))},mWc=function(a,b){nWc(a).then(function(c){if(c){var d=oWc(a,c.blob.size);a.Ha.then(function(f){return f.Qe(c,d)}).then(function(f){a.V=null;var h=c.blob.size;a.progress+=a.O;a.oa+=h;a.Ba++;f.lF()&&(a.va=f.lF());f.ZK()&&(a.Fa=f.ZK());a.progress<a.fileSize?kWc(a):a.se.resolve(f)},function(f){if(d.Mka)a.cancel();else{var h=_.fL(f);h.vya()||h.Oia()||a.ma?pWc(a,b,h,!1):hWc(c.blob).then(function(k){k=k?_.JFa.get(k)||
25:38;_.pL(h,k);k=38===h.Mo();var l=38!==h.Mo()&&25!==h.Mo();pWc(a,b,h,k,l)},function(){})}})}else{var e=_.sL(_.pL(_.Wq(new _.Ub,"Could not read more of the file. Read "+a.progress+"/"+a.fileSize+" bytes."),5));a.se.reject(e)}})},pWc=function(a,b,c,d,e){e=void 0===e?!1:e;var f=4-b;c.Yca(f);!e&&0<b?(a.ou++,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+"."));mWc(a,b)},a.Pa*Math.pow(1.5,f))):a.se.reject(_.sL(c))},nWc=function(a,b){return a.ma&&a.V?_.ji(a.V):qWc(a,b).then(function(c){if(!c)return null;if(a.ma&&0<a.fileSize&&0===c.size)return nWc(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 aSc(a.ha,c,a.oa,a.oa+c.size-1,a.finished,a.request.request.getMimeType(),_.C(a.request.request,
12)||void 0);return a.V})},qWc=function(a,b){a.O=b?b:Math.min(a.fileSize-a.progress,a.W);b=a.progress;return a.request.wO?a.request.wO(b,a.O):_.ji(_.ERc(a.request.file,b,b+a.O))},oWc=function(a,b){var c=_.lg(a.config);c.gOa=!0;var d=a.progress/a.fileSize,e=b/a.fileSize;oVc(a.H,[a.AM]);nVc(a.H,a.AM,function(f){a.H.notify([a.requestId],Math.min(d+e*f,1))});return c},lWc=function(a,b){b.mJa(3);b.Yca(a.ou);b.lF()||b.Eaa(a.va);b.ZK()||b.saa(a.Fa)};
_.rWc=function(a,b,c,d,e){this.ha=a;this.V=b;this.H=c;this.W=d;this.O=e};_.rWc.prototype.create=function(a,b){return new iWc(this.ha,this.V,this.H,this.W,this.O,a,b)};
_.sWc=function(a){this.O=a;this.H={}};_.sWc.prototype.execute=function(a){for(var b=[],c=0;c<a.length;c++)if(a[c].mu.request instanceof _.bSc)b.push(tWc(this,a[c].mu));else{var d=_.Wq(new _.Ub,"ResumableUploadExecutor only supports ResumableUploadRequests.");b.push(Promise.reject(_.sL(d)))}return b};_.sWc.prototype.cancel=function(a){return!!this.H[a]&&this.H[a].cancel()};_.sWc.prototype.gI=function(){return!_.ig(this.H)};
var tWc=function(a,b){var c=a.O.create(b.request,b.config),d=c.start(),e=b.config.requestId;a.H[e]=c;return _.pi(d,function(){delete a.H[e]})};
_.uWc=function(a,b){return new _.mN(b,a,[new YVc],[new _.kN],[],"immediate")};_.vWc=function(a,b,c,d,e,f,h){if(h){var k=new _.$Vc(h.getState());d=new _.XVc(h)}else k=new _.RVc(c,d),d=new _.QVc(d);return new _.mN(f,a,[k,new _.jN(e,f),new ZVc],[new _.kN],[d,new _.cWc(b,e,h?h.getState():c,f)],"connected")};
_.wWc=function(a,b,c,d,e,f,h,k,l){l=void 0===l?_.wk(b,10,50):l;if(h){var n=new _.$Vc(h.getState());d=new _.XVc(h)}else n=new _.RVc(c,d),d=new _.QVc(d);return new _.mN(f,a,[n,new _.VVc(l,_.wk(b,12,10)),new _.lN(3*l),new _.jN(e,f)],[new _.kN],[d,new _.cWc(b,e,h?h.getState():c,f)],k)};_.xWc=function(a,b,c){b=_.wk(b,46,1);return new _.mN(c,a,[new _.lN(b)],[new _.kN],[],"resumable_upload")};
_.yWc=function(a,b,c,d,e,f,h,k){this.yG=a;this.ma=b;this.ha=c;this.H=d;this.V=e;this.W=f;this.ka=h;this.O=k};_.yWc.prototype.Qe=function(a,b){return zWc(this,a,b).then(null,function(c){c=_.sL(c);var d=c.Kg;iSc(a)||_.Yq(d);return _.ki(c)})};
var zWc=function(a,b,c){c=void 0===c?{}:c;var d=a.yG.validate(b);if(d)return _.ki(_.sL(d));var e=a.ma.translate(b);d=a.ha.execute(a,e,c)||void 0;return _.ji(d).then(function(){if(e instanceof _.Ub)return _.ki(_.sL(e));if(Array.isArray(e)){var f=e.map(function(h){return AWc(a,b,h,c)});return _.ni(f)}return AWc(a,b,e,c)},function(f){return _.ki(_.sL(f))})},AWc=function(a,b,c,d){var e=BWc(a,c);if(!e)return b=_.pL(_.Wq(new _.Ub,"Failed to choose a queue for server request."),18),_.ki(_.sL(b));if(e===
a.H[7]||e===a.H[8])d.VL=!0;d=e.add({request:c,config:d});(_.lM(b)||_.lM(c))&&_.pi(d,function(){var f=a.V;f.O()||(f.H&&(f.H.resolve(),f.H=null),f.V())});b=a.W.apply(c,d);d.then(function(f){a.ka.apply(c,f)},function(){});return b};_.yWc.prototype.cancel=function(a){return _.eg(this.H,function(b){return b.cancel(a)})};
var BWc=function(a,b){var c=!1;b instanceof _.fp?c=!!_.H(b,7):b instanceof _.YK&&(c=(c=b.ud())&&!!_.H(c,46));return(b instanceof _.eSc||b instanceof _.HK&&_.H(b,9))&&a.H[1]?a.H[1]:b instanceof _.bSc&&a.H[5]?a.H[5]:c&&pSc(b,a.O)&&a.H[7]?a.H[7]:pSc(b,a.O)&&a.H[8]?a.H[8]:c&&b instanceof _.fp&&a.H[6]?a.H[6]:(c||EVc.includes(b.constructor))&&a.H[3]?a.H[3]:jSc.includes(b.constructor)&&a.H[4]?a.H[4]:a.H[2]||a.H[1]};
var CWc=function(a){this.H=a};CWc.prototype.build=function(a,b){var c="====="+_.ah()+"=====",d=a[0].Km,e=b.every(function(l){return l.VL});if(e){var f=d;var h={"content-type":"text/plain; charset=UTF-8"};d="POST";var k=uVc(this.H,a[0].Km);_.Jj(k,"$ct",'multipart/mixed; boundary="'+c+'"')}else f=DWc[d],h=EWc[d]||{},h["content-type"]=_.mx('multipart/mixed; boundary="%s"',c),d=FWc[d],k=new _.Cj("");a=GWc(this,a,b,c,e);return{Km:f,body:a,headers:h,method:d,uri:k}};
var GWc=function(a,b,c,d,e){for(var f=ORc(HWc[b[0].Km]||{}),h="",k=0;k<b.length;k++){e&&sVc(a.H,b[k],c[k]);var l=b[k],n=a.H,p=l,t=c[k];p.uri=tVc(n,p.Km,p.uri);switch(p.Km){case 0:case 5:rVc(n,p,t);qVc(n,p,t);break;case 2:sVc(n,p,t);rVc(n,p,t);var u=p,z=_.C(n.H.Of(),57);u.headers.host=_.Oj(z).H;u.headers.origin=_.q.location.origin?_.q.location.origin:_.q.location.protocol+"//"+_.q.location.host;qVc(n,p,t);break;case 12:case 10:case 13:break;case 8:case 7:throw Error("Qe`"+p.Km);default:throw Error("Pe`"+
p.Km);}n=l;p=n.uri.clone();_.Dj(p,"");_.Ej(p,"");_.Fj(p,null);l=f+"\r\n"+(n.method+" "+p+" HTTP/1.1\r\n")+ORc(l.headers)+"\r\n"+(l.body?l.body+"\r\n":"");h+="--"+d+"\r\n";h+=l}return h+("--"+d+"--\r\n")},IWc={},DWc=(IWc[0]=1,IWc[2]=3,IWc),JWc={},FWc=(JWc[0]="POST",JWc[2]="PUT",JWc[12]="POST",JWc),KWc={},LWc={},EWc=(LWc[2]=(KWc["x-goog-upload-protocol"]="batch",KWc),LWc),MWc={},NWc={},OWc={},PWc={},HWc=(PWc[0]=(MWc["content-type"]="application/http",MWc["content-transfer-encoding"]="binary",MWc),PWc[12]=
(NWc["content-type"]="application/http",NWc["content-transfer-encoding"]="binary",NWc),PWc[2]=(OWc["content-type"]="application/http",OWc),PWc);
var QWc=/^HTTP\/1\.1 (\d+) ([\w ]+)/,RWc=/^multipart\/mixed; boundary="?([^"]+)"?$/;
var SWc=function(a,b,c){this.H=a;this.O=b;this.V=c;this.Li=new Map};SWc.prototype.add=function(a,b){var c="DEFAULT";b.VL&&(c=uVc(this.H,a.Km).toString());this.Li.has(c)||this.Li.set(c,[]);c=this.Li.get(c);if(1<=c.length&&!b.VL&&!DWc[a.Km])return a=_.Wq(new _.Ub,"Unsupported batch API: "+a.Km),_.ki(_.sL(a));var d=_.oi();c.push({request:a,config:b,se:d});return d.promise};
SWc.prototype.send=function(){var a=this;this.Li.forEach(function(b,c){try{TWc(a,b)}catch(f){var d=_.Xq(_.Wq(new _.Ub,"Error executing XHR: "+f.message),f.stack),e=_.sL(d);b.forEach(function(h){h.se.reject(e)});a.Li.delete(c)}})};
var TWc=function(a,b){if(1===b.length){var c=b[0];if(!c.config.$ya&&!c.config.VL){var d=!1;if(DWc[c.request.Km]){var e={Km:c.request.Km,headers:{},method:c.request.method,uri:c.request.uri.clone()};a.H.tc(e,c.config);2E3<e.uri.toString().length&&(d=!0)}if(!d){b=c.se;a.O.Tg(c.request,c.config).then(b.resolve,b.reject);return}}}UWc(a,b)},UWc=function(a,b){var c=[],d=[];b.forEach(function(e){c.push(e.request);d.push(e.config)});a.O.Tg(a.V.build(c,d),{$ya:!0,VL:d.every(function(e){return e.VL})}).then(function(e){e.headers=
_.rRc(e.headers);var f=RWc.exec(e.headers["content-type"]);var h=f&&f[1]?"--"+f[1]:null;if(!h)throw new _.Vb("Could not extract batch boundary.",_.pL(_.Xq(new _.Ub,JSON.stringify(e)),14));f=h+"\r\n";h=e.text.split(h+"--");if(2===h.length&&_.vd(_.uha(h[0]),f)&&_.ld(h[1]))h=_.uha(h[0]).substring(f.length);else throw new _.Vb("Could not parse batch response; did not begin and end with boundary.",_.pL(_.Xq(new _.Ub,JSON.stringify(e)),15));f=h.split(f);h=c.length===f.length;for(var k=[],l=0;l<f.length;l++){var n=
h?c[l]:void 0,p=k,t=p.push;var u=void 0;var z,B=e.headers,F=f[l],I=n&&n.uri,M=F.split("\r\n\r\n");if(2>M.length)u=new _.Vb("Individual batch response contained too few parts.",_.pL(_.Xq(new _.Ub,F),17));else{var U=M[1].split("\r\n");if(z=QWc.exec(U[0])){n=_.mb(z[1]);z=z[2];U.shift();B=_.lg(B);for(var R=Object,da=R.assign,ta={},ra=0;ra<U.length;ra++){var Aa=_.Dha(U[ra],":",1);Aa&&2===Aa.length&&(ta[(0,_.Zf)(Aa[0])]=(0,_.Zf)(Aa[1]))}U=_.rRc(ta);da.call(R,B,U);try{u=_.ld(_.$g(M[2]))?void 0:JSON.parse(M[2])}catch(va){}u=
(n=_.wRc(n,z,B,F,u,void 0,void 0,I&&I.toString()))?_.sL(n):{headers:B,text:F,json:u||void 0}}else u=new _.Vb("Could not extract HTTP status code and text.",_.pL(_.Xq(new _.Ub,F),16))}t.call(p,u)}return k}).then(null,function(e){e=_.sL(e);return _.zOc(e,b.length)}).then(function(e){for(var f=0;f<b.length;f++){var h=b[f].se,k=e[f];k instanceof _.Ub||k instanceof _.Vb?h.reject(_.sL(k)):h.resolve(k)}})};
var VWc=function(){_.yj.apply(this,arguments)};_.N(VWc,_.yj);VWc.prototype.getAllResponseHeaders=function(){return _.uha(_.yj.prototype.getAllResponseHeaders.call(this))};
var WWc=function(a,b){this.W=a;this.V=b;this.O={};this.H={}};_.g=WWc.prototype;_.g.Tg=function(a,b){try{this.W.tc(a,b);var c=new VWc;c.MC=!0;var d=b.requestId||"",e=_.oi();c.listen("complete",this.S6a.bind(this,c,e,d,b.$ya,4===a.Km));d&&b.AM&&!b.VL&&(this.O[d]=c,this.H[d]=b,c.Ab=!0,c.listen("uploadprogress",(0,_.v)(this.ovb,this,b)),b.gOa||c.listen("downloadprogress",(0,_.v)(this.irb,this,b)));c.send(a.uri,a.method,a.body,a.headers);return e.promise}catch(f){return _.ki(_.sL(f))}};
_.g.cancel=function(a){var b=this.O[a];a=this.H[a];return b&&b.isActive()?(a.Mka=!0,b.abort(),!0):!1};_.g.S6a=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;c&&(delete this.O[c],delete this.H[c]);c={headers:_.Zka(a),text:a.kl()};if(!d)try{c.json=_.Bj(a)}catch(f){}d=_.wRc(a.Cb(),_.Wka(a),c.headers,c.text,c.json,a.O,_.$ka(a),String(a.oa),e);a.dispose();d?b.reject(_.sL(d)):b.resolve(c)};_.g.ovb=function(a,b){b.lengthComputable&&this.V.notify([a.AM],a.gOa?b.loaded/b.total:b.loaded/b.total/2)};
_.g.irb=function(a,b){b.lengthComputable&&this.V.notify([a.AM],b.loaded/b.total/2+.5)};
_.XWc=function(a,b,c,d,e,f,h){this.O=a;this.va=b;this.Ba=c;this.oa=d;this.ma=e;this.W=f;this.H=h;this.V=[];this.ka=new CWc(this.O);this.ha=new WWc(this.O,this.va)};_.g=_.XWc.prototype;
_.g.execute=function(a){for(var b=this,c=[],d=[],e=0;e<a.length;e++){var f=a[e].mu;this.V.push(f);c.push(this.Ba.XC(f,a[e].zx));d.push(FVc(f.request)?_.JVc(this.ma,f.request):void 0)}if(this.H&&this.H.O){var h=Promise.reject(_.sL(_.wRc(0,"",{},"",void 0,-99)));return a.map(function(){return h})}var k=new SWc(this.O,this.ha,this.ka);e=[];for(f=0;f<a.length;f++){var l=c[f].then(function(p,t){var u=k.add(t,p);u.then(b.XEb.bind(b,t.Km,p.Xv),function(){});return u}.bind(this,a[f].mu.config));e.push(l)}Promise.allSettled(c).then(function(){k.send()});
c=[];for(f=0;f<a.length;f++){l=a[f].mu;var n=e[f].then(this.Ejb.bind(this,l.request,d[f],a[f].zx)).then(null,function(p){return Promise.reject(_.sL(p))});n.then(this.nJa.bind(this,l),this.nJa.bind(this,l));c.push(n)}return c};_.g.Ejb=function(a,b,c,d){a=this.oa.XC(a,d,c);b&&_.KVc(b,a.Dd?a.Dd():[]);return a};_.g.XEb=function(a,b){a=!b&&_.na(YWc,a);if(this.H){b=this.H;var c=a?1:2;if(!b.state.isConnected()||a)c=DVc(b,c),a&&c&&b.reset()}else this.W&&a&&this.W.va()};_.g.cancel=function(a){return this.ha.cancel(a)};
_.g.gI=function(){return this.V.some(function(a){return _.lM(a.request)})};_.g.nJa=function(a){_.ua(this.V,a)};var YWc=[0,2,4,7,8];
_.ZWc=function(){};_.ZWc.prototype.execute=function(){return null};
var $Wc;$Wc=function(a){this.H=a};_.nN=function(a,b){if(!_.Da(b))throw new _.Vb("Expected an object, but got a "+_.cfa(b)+".",_.qL(11,void 0,8));var c=b.kind;if(!c)throw new _.Vb("Expected 'kind' parameter in response: "+JSON.stringify(b),_.qL(11,void 0,21));if(!a.includes(c))throw new _.Vb("Expected "+a.join(" or ")+" but got a "+c+".",_.qL(11,void 0,9));};_.oN=function(a){return null!=a?(new Date(a)).getTime():void 0};
_.aXc=function(a){var b=null!=a.canDelete?a.canDelete:a.canDeleteTeamDrive;var c=_.xSc(new _.wl,a.canAddChildren);c=_.A(c,18,a.canChangeTeamDriveBackground);c=_.A(c,2,a.canComment);c=_.A(c,3,a.canCopy);b=_.GSc(_.BSc(_.HSc(_.ISc(_.JSc(_.FSc(_.ESc(_.ASc(_.zSc(_.ySc(c,b),a.canDownload),a.canEdit),a.canManageMembers),a.canManageVisitors),a.canMoveItemIntoTeamDrive),a.canMoveTeamDriveItem),a.canReadTeamDrive),a.canRemoveChildren),a.canRename);b=_.A(b,13,a.canRenameTeamDrive);b=_.KSc(_.DSc(_.CSc(b,a.canShare),
a.canTrash),a.canUntrash);b=_.A(b,27,a.canModifyContentRestriction);b=_.A(b,26,a.canShareOutsideDomain);b=_.NSc(_.MSc(_.LSc(_.A(b,30,a.canMoveItemWithinTeamDrive),a.canMoveItemOutOfTeamDrive),a.canMoveChildrenWithinTeamDrive),a.canMoveChildrenOutOfTeamDrive);b=_.A(b,34,a.canDeleteChildren);b=_.A(b,35,a.canTrashChildren);b=_.A(b,36,a.canRequestApproval);b=_.A(b,37,a.canReadCategoryMetadata);b=_.A(b,38,a.canEditCategoryMetadata);b=_.A(b,39,a.canChangeCategoryReferences);b=_.A(b,49,a.canSetMissingRequiredFields);
b=_.A(b,40,a.canAddMyDriveParent);b=_.A(b,41,a.canRemoveMyDriveParent);b=_.PSc(_.OSc(b,a.canShareChildFiles),a.canShareChildFolders);b=_.A(b,44,a.canRead);b=_.SSc(_.RSc(_.QSc(_.A(b,45,a.canMoveItemWithinDrive),a.canMoveItemOutOfDrive),a.canMoveChildrenWithinDrive),a.canAddFolderFromAnotherDrive);b=_.A(b,50,a.canChangeSecurityUpdateEnabled);b=_.A(b,51,a.canRemoveSecureLinkUpdateForAllFiles);b=_.A(b,52,a.canCreateDecryptedCopy);b=_.A(b,53,a.canCreateEncryptedCopy);return _.A(b,54,void 0===a.canAddEncryptedChildren?
a.canAddChildren:a.canAddEncryptedChildren)};_.pN=function(a,b){_.nN(["drive#user"],b);var c=_.vSc(_.wSc(_.tSc(1).Pb(b.permissionId),b.id).hd(b.displayName),b.emailAddress);b.picture&&c.Vm(b.picture.url);_.XK(a.H)&&_.vSc(c,b.emailAddressFromAccount||b.emailAddress);_.uSc(c,a.yf(b.id));_.A(c,9,b.domain);return c};$Wc.prototype.yf=function(a){if(a)return _.IM(_.SK(this.H))==a};
var bXc,hXc,wXc,eXc,mXc,lXc,nXc,pXc,rXc,dXc,tXc,sXc,uXc,vXc,xXc,yXc,oXc;bXc=function(a,b){this.H=a;this.O=b};
_.fXc=function(a,b,c){var d=new _.gN,e=new _.BA,f=e.Hv;_.nN(["drive#fileList","drive#file"],b);var h=[];if("drive#file"==b.kind)(a=_.cXc(a,b))&&h.push(a);else if("drive#fileList"==b.kind)for(var k=b.items||[],l=0;l<k.length;l++){var n=_.cXc(a,k[l]);h.push(n)}e=f.call(e,h);e=_.A(e,8,b.incompleteSearch);if("drive#fileList"==b.kind){_.nN(["drive#fileList"],b);if(h=b.spellResponse){f=[];var p=h.spellCorrections;for(h=0;h<p.length;h++){k=p[h].spellFragments;a=[];for(l=0;l<k.length;l++){n=k[l];var t=(new _.Sob).Ac(dXc[n.status]);
t=_.A(t,1,n.original);n=_.A(t,3,n.correction);a.push(n)}k=new _.Wob;a=_.kb(k,1,a);f.push(a)}p=new _.Yob;_.kb(p,1,f)}if((f=b.suggestedNlpQueries)&&0<f.length){var u=new _.Uob;_.A(u,1,f||[])}p||u?(f=new _.Zob,p&&_.y(f,1,p),u&&_.y(f,2,u),u=f):u=null;_.y(e,7,u);_.tTc(e,eXc(b))}d=_.LVc(d,e);c=_.tRc(c);c=_.A(d,2,c);b.nextPageToken&&_.A(c,3,b.nextPageToken);return c};
hXc=function(a,b,c,d,e){_.nN(["drive#adminFile","drive#file","drive#revision"],b);var f=_.XTc(new _.kM,c);"drive#adminFile"==b.kind?(_.nN(["drive#adminFile"],b),c=(new _.Cl).Pb(b.id),b.parentId&&_.AM(c,[b.parentId]),_.hTc(c,b.teamDriveId),f.setItem(c),_.XTc(f,c.getId())):"drive#file"==b.kind?(b=_.cXc(a,b),f.setItem(b),c||_.XTc(f,b.getId())):"drive#revision"==b.kind&&(b=_.gXc(a,b),_.y(f,4,b));f.Eaa(_.sRc(d));f.saa(_.tRc(d));(d=(d=d&&_.rRc(d))&&d["x-server-object-version"])&&e&&(e=(new _.NM).Pb(d),
_.y(f,4,e));f.Ac(1);return f};_.iXc=function(a,b){return _.XTc(new _.kM,a).Ac(1).Eaa(_.sRc(b)).saa(_.tRc(b))};_.kXc=function(a,b,c,d){d||_.nN(["drive#permissionList"],b);var e=[];b=b[c]||[];for(c=0;c<b.length;c++){var f=_.jXc(a,b[c],d);f&&e.push(f)}return e};
_.jXc=function(a,b,c){c||_.nN(["drive#permission"],b);c=_.uSc(_.wSc(_.tSc(lXc[b.type]).Pb(b.id),b.userId),a.H.yf(b.userId));c=_.A(c,4,b.withLink);c=_.vSc(c.hd(b.name).Vm(b.photoLink),b.emailAddress);c=_.A(c,9,b.domain);c=_.A(c,10,b.deleted);c=_.A(c,12,b.audienceId);c=_.A(c,13,b.customerId);c.getId()||c.Pb(b.type+"|"+(b.domain||"")+"|"+b.withLink);_.XK(a.O)&&c.hd(b.nameIfNotUser);a=mXc[b.role];2==a&&b.additionalRoles&&"commenter"==b.additionalRoles[0]?a=4:2==a&&"published"==b.view&&(a=6);_.A(c,6,a);
return c};
_.cXc=function(a,b){_.nN(["drive#file"],b);var c=b.title,d=(new _.Cl).Pb(b.id),e=[];if(b&&b.parents)for(var f=b.parents,h=0;h<f.length;h++)e.push(f[h].id);c=_.fTc(_.bTc(_.IK(_.AM(d,e).setTitle(c),b.mimeType),b.alternateLink),b.hasThumbnail);null!=b.thumbnailVersion&&_.A(c,90,Number(b.thumbnailVersion));_.A(c,21,b.iconLink);c.Tk(b.description);_.cTc(c,b.explicitlyTrashed);_.A(c,22,b.shared);null!=b.quotaBytesUsed&&_.A(c,28,Number(b.quotaBytesUsed));null!=b.fileSize&&_.A(c,14,Number(b.fileSize));_.A(c,
30,b.copyable);b.labels&&(d=b.labels,c.uu(d.starred),_.A(c,6,d.hidden),c.Wm(d.trashed),_.ZSc(c,d.restricted),_.A(c,9,d.viewed));_.A(c,10,_.oN(b.createdDate));_.A(c,69,_.oN(b.serverCreatedDate));_.BOc(c,_.oN(b.modifiedDate));_.A(c,12,_.oN(b.modifiedByMeDate));_.A(c,13,_.oN(b.lastViewedByMeDate));_.A(c,23,_.oN(b.sharedWithMeDate));_.A(c,62,_.oN(b.subscribedDate));_.A(c,70,_.oN(b.recency));b.recencyReason&&_.A(c,71,nXc[b.recencyReason]||0);d=[];if(b&&b.owners)for(e=b.owners,f=0;f<e.length;f++)(h=_.pN(a.H,
e[f]))&&d.push(h);_.$Sc(c,d);b.lastModifyingUser&&(d=_.pN(a.H,b.lastModifyingUser),_.aTc(c,d));b.userPermission&&_.COc(c,mXc[b.userPermission.role]);b.imageMediaMetadata&&(e=b.imageMediaMetadata,d=(new _.xM).Yg(e.width).Ug(e.height),d=_.A(d,4,e.rotation),e.date&&(e=e.date,f=new _.AQc,f.setMilliseconds(0),oXc.parse(e,f),_.A(d,1,f.getTime())),_.y(c,27,d));null!=b.folderColor&&_.eTc(c,Number(b.folderColor));_.dTc(c,b.subscribed);_.A(c,45,b.fileExtension);_.A(c,50,b.folderFeatures||[]);_.A(c,36,b.flaggedForAbuse);
_.A(c,53,b.gplusMedia);_.A(c,46,b.primarySyncParentId||void 0);_.A(c,35,b.hasChildFolders);b.source&&(_.A(c,42,b.source.client_service_id),_.A(c,43,b.source.value));b.sharingUser&&(d=_.pN(a.H,b.sharingUser),_.y(c,47,d));b.sources?_.A(c,56,b.sources||[]):b.gplusMedia&&_.A(c,56,["GOOGLE_PHOTOS"]);if(b.spaces){d=b.spaces;e=[];for(f=0;f<d.length;f++)h=d[f],_.xOc[h]&&(h=_.Me(new _.Le,_.xOc[h]),e.push(h));c.qC(e)}_.A(c,63,b.ownedByMe);_.A(c,29,b.shareable);b.sourceAppId&&_.A(c,61,b.sourceAppId);_.A(c,74,
b.changed);null!=b.recursiveFileSize&&_.A(c,77,Number(b.recursiveFileSize));null!=b.recursiveFileCount&&_.A(c,79,Number(b.recursiveFileCount));if(b.actionItems){d=b.actionItems;e=[];for(f=0;f<d.length;f++)if(h=d[f],h.id&&h.type){var k=(new _.gna).Pb(h.id);h=_.A(k,2,pXc[h.type]);e.push(h)}_.kb(c,83,e)}b.capabilities&&_.BM(c,_.aXc(b.capabilities));b.permissionsSummary&&_.iTc(c,_.qXc(a,b.permissionsSummary));b.headRevisionId&&_.A(c,78,b.headRevisionId);b.templateData&&(d=b.templateData,e=(new _.yM).Tk(d.description),
e=_.A(e,3,rXc[d.galleryState]),d=_.A(e,2,d.category||[]),_.y(c,86,d));_.hTc(c,b.teamDriveId);_.A(c,76,b.hasAugmentedPermissions);_.A(c,137,b.ancestorHasAugmentedPermissions);b.creator&&(d=_.pN(a.H,b.creator),_.y(c,91,d));_.jTc(c,b.primaryDomainName);_.kTc(c,b.organizationDisplayName);_.A(c,94,b.passivelySubscribed);b.trashingUser&&(d=_.pN(a.H,b.trashingUser),_.y(c,95,d));c.Jaa(_.oN(b.trashedDate));b.version&&_.A(c,75,Number(b.version));_.A(c,98,b.hasVisitorPermissions);_.A(c,102,b.hasAppsScriptAddOn);
(d=b.pairedDocType)&&_.A(c,101,sXc[d]);b.videoMediaMetadata&&(d=b.videoMediaMetadata,e=(new _.zM).Yg(d.width).Ug(d.height),d.durationMillis&&_.A(e,3,Number(d.durationMillis)),_.y(c,103,e));_.A(c,104,b.detectors||[]);_.A(c,108,b.containsUnsubscribedChildren);if(b.contentRestrictions){d=[];e=_.m(b.contentRestrictions);for(f=e.next();!f.done;f=e.next())f=f.value,f=_.USc(_.TSc(new _.yl,f.readOnly),f.reason),d.push(f);_.kb(c,125,d)}if(d=b.publishingInfo)_.A(c,118,d.published),_.A(c,119,d.publishedUrl);
_.A(c,120,b.workspaceIds||[]);b.approvalMetadata&&b.approvalMetadata.approvalVersion&&_.A(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 _.sl).Pb(f.approvalId).Ac(tXc[f.status]),d.push(f);_.kb(c,127,d)}b.shortcutDetails&&(d=b.shortcutDetails,e=new _.pna,e=_.A(e,1,d.targetId),e=_.A(e,3,d.targetMimeType),e=_.A(e,6,d.canRequestAccessToTarget),d.targetLookupStatus&&
_.A(e,4,uXc[d.targetLookupStatus]||0),d.targetFile&&(d=_.cXc(a,d.targetFile),_.y(e,5,d)),_.y(c,132,e));b.clientEncryptionDetails&&(d=b.clientEncryptionDetails,e=new _.vM,e=_.A(e,1,vXc[d.encryptionState]),d.decryptionMetadata&&(d=wXc(d.decryptionMetadata),_.y(e,2,d)),_.y(c,138,e));b.linkShareMetadata&&(d=b.linkShareMetadata,e=new _.hna,e=_.A(e,2,d.securityUpdateEligible),e=_.A(e,3,d.securityUpdateEnabled),d=_.A(e,5,d.securityUpdateExplicitlySet),_.y(c,139,d));_.A(c,140,b.resourceKey);_.A(c,135,b.authorizedAppIds||
[]);_.A(c,136,b.customerId);_.NRc(c);_.XK(a.O)&&_.gTc(c,5);return c};_.gXc=function(a,b){_.nN(["drive#revision"],b);var c=(new _.NM).Pb(b.id);c=_.A(c,2,b.mimeType);c=_.A(c,3,_.oN(b.modifiedDate));c=_.A(c,4,b.pinned);c=_.A(c,5,b.downloadUrl);c=_.A(c,7,b.originalFilename);null!=b.fileSize&&_.A(c,8,Number(b.fileSize));b.lastModifyingUser&&(a=_.pN(a.H,b.lastModifyingUser),_.y(c,9,a));b.decryptionMetadata&&(b=wXc(b.decryptionMetadata),_.y(c,10,b));return c};
_.qXc=function(a,b){a=_.XSc(_.WSc(_.VSc(new _.kna,b.entryCount),_.kXc(a,b,"visibility",!0)),_.kXc(a,b,"selectPermissions",!0));a=_.A(a,4,b.memberCount);a=_.A(a,5,b.userEntryCount);return _.A(a,6,b.groupEntryCount)};wXc=function(a){var b=a.wrappedKey;var c=new _.wM;b=b?_.DTc(b):void 0;c=_.A(c,1,b);c=_.A(c,2,Number(a.kaclsId));c=_.A(c,5,a.kaclsName);c=_.A(c,3,xXc[a.aes256GcmChunkSize]);c=_.A(c,6,yXc[a.keyFormat]);return _.A(c,4,a.jwt)};
eXc=function(a){_.nN(["drive#fileList"],a);var b=[];(a.items||[]).forEach(function(c){var d=c.id;!d||"1"!=c.searchResultSource&&"3"!=c.searchResultSource||b.push(d)});return b};mXc={fileOrganizer:7,organizer:5,owner:1,reader:2,writer:3};lXc={anyone:4,audience:5,domain:3,group:2,user:1};nXc={createdByMe:1,modifiedByMe:2,modified:3,viewedByMe:4};pXc={MENTION:0,SUGGESTION:1,ASSIGNMENT:2};rXc={UNAVAILABLE:1,AVAILABLE:2,PENDING:3};dXc={CORRECT:1,INCORRECT:2,SUSPICIOUS:3};
tXc={IN_PROGRESS:1,APPROVED:2,CANCELLED:3};sXc={docs:1,sheets:2,slides:3};uXc={ok:1,notFound:2,permissionDenied:3};vXc={unencrypted:1,encrypted:2};xXc={unset:0,"default":1,small:2,size16kb:3};yXc={unsetKeyFormat:0,tinkKeyset:1,tinkAesGcmKey:2};oXc=new _.qVa("yyyy:MM:dd HH:mm:ss");
var CXc;_.zXc=function(a){this.V=new $Wc(a);this.LD=new bXc(this.V,a)};_.zXc.prototype.XC=function(a,b,c){c=void 0===c?[]:c;try{return AXc(this,a,b,c)}catch(d){_.tL(d)}};
var AXc=function(a,b,c,d){var e=a.ha(b,c);if(e)return e;if(b instanceof _.AL)return _.BXc(a,b,c);if(b instanceof _.JL)return CXc(0,c,d);if(b instanceof _.fp){if(!c.json)throw _.qN();return _.fXc(a.LD,c.json,c.headers)}if(b instanceof _.hM)return _.BXc(a,b,c);if("undefined"!=typeof _.XRc&&b instanceof _.XRc){if(!c.json)throw _.qN();a=c.json;return new _.jUc(a.fileId,a.jwt,Number(a.currentKaclsId),a.currentKaclsName,a.customerId)}if("undefined"!=typeof _.DXc&&b instanceof _.DXc){if(!c.json)throw _.qN();
return _.gXc(a.LD,c.json)}if(b instanceof _.WL)return CXc(b.ud(),c,d);if(b instanceof aSc){if(b.V){if(!c.json)throw _.qN();a=hXc(a.LD,c.json,null,c.headers,!!b.revisionId)}else a=_.iXc(null,c.headers);return a}if(b instanceof $Rc){a=_.rRc(c.headers);b=a.location;if(!b)throw a=_.pL(new _.Ub,10),new _.Vb("No upload session URI included.",a);return new kUc(b,_.sRc(a),_.tRc(a))}if(b instanceof _.eSc)return new lUc;throw new _.Vb("FromXhrConverter: Unsupported request type.",new _.Ub);};
_.zXc.prototype.ha=function(){return null};CXc=function(a,b,c){return"base64"===b.headers["x-goog-safety-encoding"]?new mUc(_.taa(b.text),c.length):new mUc(new Uint8Array(_.pla(b.text)),c.length)};_.BXc=function(a,b,c){if(!c.json){if(b instanceof _.iL)return _.iXc(_.EXc(b));throw _.qN();}var d=!1;b instanceof _.hM&&(d=!!_.C(b.request,12));return hXc(a.LD,c.json,_.EXc(b),c.headers,d)};_.qN=function(){var a=_.pL(new _.Ub,11);return new _.Vb("FromXhrConverter: JSON required, but none found",a)};
_.EXc=function(a){return a.getId?a.getId():a.Gc?a.Gc():null};
var IXc,JXc,LXc,FXc,MXc,GXc;
IXc=function(a,b){var c={};_.ld(_.$g(a.getTitle()))||(_.C(a,12)?c.originalFilename=a.getTitle():c.title=a.getTitle());if(a.getMimeType()&&(c.mimeType=a.getMimeType(),a.Gc()&&_.Wda(a.getMimeType())&&b)){var d=b.V(),e=b.O(),f={encryptionState:"encrypted"},h={};f.decryptionMetadata=(h.wrappedKey=_.Tj(b.ka()),h.kaclsId=b.ma(),h.aes256GcmChunkSize=FXc[d?d.O():0],h.keyFormat=GXc[e?e.O():0],h);c.clientEncryptionDetails=f}_.HXc(c,_.Jd(a,3));(b=a.Gc())&&(c.id=b);_.C(a,16)&&(c.embeddingParent=_.C(a,16));a.D_()&&
(c.shortcutDetails={},c.shortcutDetails.targetId=a.D_());"number"===typeof _.C(a,26)&&(c.modifiedDate=_.sTc(_.qUc(_.C(a,26)||0)));return c};_.HXc=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)}}};JXc={};_.KXc=(JXc[1]="active",JXc[2]="archived",JXc);LXc={};FXc=(LXc[0]="unset",LXc[1]="default",LXc[2]="small",LXc[3]="size16kb",LXc);MXc={};GXc=(MXc[0]="unsetKeyFormat",MXc[1]="tinkKeyset",MXc[2]="tinkAesGcmKey",MXc);
var qSc=function(a,b){a.length&&(a=_.Pz(a),a.length&&(b["X-Goog-Drive-Resource-Keys"]=a))};
var PXc=function(a,b,c){return(a.wO?a.wO(0,a.file.size):Promise.resolve(a.file)).then(function(d){return gWc(d)}).then(function(d){return NXc(a,b,d,c)},OXc)},NXc=function(a,b,c,d){var e=!!_.C(a.request,12),f="files";e&&(f+="/"+_.C(a.request,12));f=new _.Cj(f);_.Jj(f,"uploadType","multipart");_.Jj(f,"supportsTeamDrives",!0);_.Jj(f,"pinned",!!_.E(a.request,13,!1));null!=_.H(a.request,8)&&_.Jj(f,"convert",_.H(a.request,8));_.Jj(f,"fields",_.IRc({fields:_.QM(b).filter(function(p){return 194!=p}),xq:!1}));
PRc(f,a.request.re());var h=IXc(a.request,a.metadata),k=_.ah();b={};b=(b["content-type"]=_.mx('multipart/related; boundary="%s"',k),b);var l=c.indexOf(",");c=0<=l?c.substring(l+1):"";h=JSON.stringify(h);l={};l=(l["content-type"]="application/json; charset=UTF-8",l);var n={};n=(n["content-transfer-encoding"]="base64",n);a.request.getMimeType()&&(n["content-type"]=a.request.getMimeType());_.tM(d,_.Lk(a.request,_.Vl,28),[],null,b);a="--"+k;a=a+"\r\n"+ORc(l)+"\r\n"+h+"\r\n"+a+"\r\n"+ORc(n)+"\r\n"+c+"\r\n"+
a+"--";return{Km:2,headers:b,method:e?"PUT":"POST",uri:f,body:a}},OXc=function(a){if(a instanceof _.Qsb){var b=new _.Ub;_.Wq(b,"fs.Error: "+a.message);a=(a=a.name)?_.JFa.get(a)||25:38;_.pL(b,a);a=_.sL(b)}return Promise.reject(a)};
_.rN=function(a,b,c,d){this.H=a;this.Ig=b;this.O=c;this.zd=d;this.ha=_.hL(a)||new _.VQc};_.rN.prototype.XC=function(a,b){try{return a.request instanceof _.hM?PXc(a.request,this.Ig,this.H):Promise.resolve(this.V(a.request,a.config,b))}catch(c){return c instanceof _.Vb?a=c.Kg:(a=new _.Ub,_.Wq(a,"Error converting XHR: "+c.message),_.Xq(a,c.stack),_.pL(a,4)),Promise.reject(a)}};
_.rN.prototype.V=function(a,b,c){var d=0,e,f={},h="GET",k={},l=!1,n=!1;if(a instanceof _.AL){h=(e=!!_.C(a,12))?"PUT":"POST";var p="files";e&&(p+="/"+_.C(a,12),k.pinned=!!_.E(a,13,!1));null!=_.H(a,8)&&(k.convert=_.H(a,8));k.fields=_.IRc({fields:this.Ag(c),xq:_.RK(_.SK(this.H)),VE:_.XK(this.H)});e=IXc(a);f["content-type"]="application/json";var t=a.re();n=!0;_.PM(k);_.QXc(this.H,k);_.tM(this.H,_.Lk(a,_.Vl,28),_.Jd(a,3).concat([_.C(a,16),a.D_(),a.Gc()]),this.O,f)}else if(a instanceof _.JL||a instanceof
_.WL)a instanceof _.WL?(l=a.ud(),_.sk(a,2)&&(p="bytes="+_.C(a,2)+"-",_.sk(a,3)&&(p+=_.C(a,3)),f.range=p)):l=a,p="files/"+l.getId(),_.C(l,2)&&(k.revisionId=_.C(l,2)),k.alt="media",f["X-Goog-Encode-Response-If-Executable"]="base64",_.tM(this.H,[_.Wl((new _.Vl).Pb(l.getId()),_.C(l,3))],[l.getId()],this.O,f),n=l=!0;else if(a instanceof _.fp)n=a.Wl()[0],p="files/"+n,t=_.xa(this.Ag(c),this.Ag(c,a.O())),_.Fa(t),k.fields=_.IRc({fields:t,xq:_.RK(_.SK(this.H)),VE:_.XK(this.H)}),_.PM(k),_.RXc(this.H,k),_.SXc(this.H,
k),this.W(n,k),t=a.re(),n=!0,_.H(a,7)&&(b.$ya=!0),_.tM(this.H,_.Lk(a,_.Vl,11),a.Wl(),this.O,f);else if("undefined"!=typeof _.XRc&&a instanceof _.XRc)p="files/generateCseToken",a.id&&(k.fileId=a.id),k.role=a.role,t=a.H;else if("undefined"!=typeof _.DXc&&a instanceof _.DXc)k.fields="kind,id,modifiedDate,originalFilename,fileSize,mimeType,decryptionMetadata(wrappedKey,kaclsId,aes256GcmChunkSize,jwt,keyFormat)",p="files/"+a.id+"/revisions/"+a.revisionId,n=l=!0;else if(a instanceof aSc){d=4;h="PUT";p=
a.W;a.contentType&&(f["content-type"]=a.contentType);if(a.O>=a.H){var u=a.H;b=a.O;f["content-range"]=a.V?_.mx("bytes %d-%d/%d",u,b,b+1):_.mx("bytes %d-%d/*",u,b)}u=a.blob;n=!0}else a instanceof $Rc?(d=2,h=(e=!!_.C(a.request,12))?"PUT":"POST",p="files",e&&(p+="/"+_.C(a.request,12)),k.uploadType="resumable",k.pinned=!!_.E(a.request,13,!1),null!=_.H(a.request,8)&&(k.convert=_.H(a.request,8)),k.fields=_.IRc({fields:this.Ag(c).filter(function(z){return 194!=z}),xq:_.RK(_.SK(this.H)),VE:_.XK(this.H)}),
_.PM(k),e=IXc(a.request,a.metadata),f["content-type"]="application/json",null!=a.request.getMimeType()&&(f["x-upload-content-type"]=a.request.getMimeType()),_.tM(this.H,[],_.Jd(a.request,3),this.O,f),t=a.request.re(),n=!0):a instanceof _.eSc?(p="about",k.fields="kind",t=a.H,n=!0):_.TXc(a);n&&_.UXc(c,k);0!=d||l||t&&_.C(t,1)||_.gVc(this.zd,74438989);return _.VXc(this,d,p,k,f,h,t,e,u)};
_.VXc=function(a,b,c,d,e,f,h,k,l){c=new _.Cj(c);[10,12,13].includes(b)||(_.E(a.ha,11,!1)&&(a=a.H.wi())&&(e["X-Goog-Drive-Client-Version"]=a),PRc(c,h));d=_.m(Object.entries(d));for(h=d.next();!h.done;h=d.next())a=_.m(h.value),h=a.next().value,a=a.next().value,_.Kj(c,h,a);return{Km:b,headers:e,method:f,uri:c,body:k?JSON.stringify(k):l}};_.RXc=function(a,b){_.E(a.Of(),23,!1)&&(b.includePermissionsForView="published")};_.rN.prototype.W=function(){};
_.SXc=function(a,b){_.E(a,14,!1)&&(b.useLegacyDomainPermissionBehavior=!1)};_.QXc=function(a,b){_.E(a,3,!1)&&(b.enforceSingleParent=!0)};_.UXc=function(a,b){a&&a.length?(b.retryCount=a.length,b.msSinceLastAttempt=Date.now()-_.ha(a).mMb):b.retryCount=0};_.rN.prototype.Ag=function(a,b){b||(b=_.QM(this.Ig));0<a.length&&(b=b.slice(0),_.jaa(b,function(c){return VTc.includes(c)}));return b};_.TXc=function(a){var b=_.pL(new _.Ub,4);throw new _.Vb("ToXhrConverter: Unsupported request type: "+gSc(a),b);};
_.sN=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.O=a;this.V=b;this.Ba=c;this.W=d;this.va=e;this.oa=f;this.Li={};this.ha={};this.zd=null;_.ge(this,function(){h.kH()})};_.N(_.sN,_.Q);_.sN.prototype.BO=function(){return _.ch()};
_.sN.prototype.upload=function(a,b,c,d){IVc(this.V,"UploadTotalCount");var e=a.Nj();if(e&&this.Li[e])throw new _.Vb("Upload requested with a duplicate request ID.");var f=_.Jd(a,10);if(f&&f.length){if(1!==f.length)throw new _.Vb("Multi-parented uploads are not supported.");var h=this.Li[f[0]];if(!h)throw new _.Vb("The parent upload request must precede this request.");}!_.C(a,26)&&b&&b.lastModified&&_.A(a,26,b.lastModified);e||(e=this.BO(),_.A(a,9,e));a=_.Uk(a);f=WXc(this,e);this.Li[e]={request:a,
file:b,og:f,NK:!1,ou:0,success:!1,UC:!1,children:[],metadata:c,Zia:void 0,wO:d};h?XXc(this,e,h):this.ka(e);return f.xm()};
var WXc=function(a,b){var c=new _.ri;c.lg(_.Wa(a.Fa,b),_.Wa(a.Ha,b),a);return c},XXc=function(a,b,c,d){var e=a.Li[b];c.children.push(b);_.Fa(c.children);c.og.then(function(f){if(1===f.Cb()&&(f=f.Gc(),_.Jd(e.request,3).push(f),_.RG(e.request,10),!c.UC||d)){a.ka(b);return}a.log('[Cancel] Upload of "'+e.request.getTitle()+'" was cancelled due to parent upload cancellation.');a.cancel(b)},function(f){e.og.Sd(_.WK(f)?f:Error(f))})};
_.sN.prototype.Fa=function(a,b){IVc(this.V,"UploadSuccessCount");a=this.Li[a];a.success=1===b.Cb();(b=a.Zia)&&!a.UC&&(PTc(RTc(KUc(b),a.ou),!0),b.ek())};_.sN.prototype.Ha=function(a,b){var c=_.D(this.O,_.oL,58);c&&_.E(c,1,!1)&&(this.ha[a]=b);IVc(this.V,"UploadFailureCount");c=this.Li[a];(a=c.Zia)&&!c.UC&&(PTc(RTc(KUc(a),c.ou),!1),b=(c=b&&b.Kg)&&c.Wj(),c=c&&c.Mo(),b?QTc(KUc(a),YXc.get(b)||13):c&&QTc(KUc(a),ZXc.get(c)||0),a.ek())};
_.sN.prototype.ka=function(a){var b=this.Li[a];if(!b.NK){b.NK=!0;a=this.Li[a];var c=a.request,d=_.D(this.O,_.oL,58);d&&_.E(d,4,!1)&&(d=c.getTitle().match($Xc))&&(!d[1]||a.ou<Number(d[1].substr(1)))&&(c=_.Uk(c),_.qa(_.Jd(c,3),"$#@! Invalid parent ID."));a=c;c=(c=b.request.wy())?_.C(c,1)||0:0;var e=b.file&&b.file.size||c;c=this.O.Of();d=_.wk(c,33,1048576);d=b.file&&b.file&&e>d?2:b.file?1:3;if(this.oa&&3!==d){var f=this.oa.H(106012);if(f){b.Zia=f;f=KUc(f);f=_.A(f,1,2===d?2:1);f=_.A(f,4,!!b.metadata);
var h=!!_.C(a,12);f=_.A(f,5,h);e=_.A(f,6,e);c=_.wk(c,32,1073741824);_.A(e,7,c)}}switch(d){case 2:b.file&&aYc(this,new _.bSc(a,b.file,b.wO,b.metadata),b.og,a.Nj());break;case 1:b.file&&(c=b.og,d=b.file,e=b.metadata,b=b.wO,f=_.D(this.O,_.sSc,2),aYc(this,new _.hM(a,d,b,f&&_.uM(f)?e:void 0),c,a.Nj()));break;case 3:aYc(this,a,b.og,a.Nj());break;default:throw new _.Vb("Upload type ${uploadType} not supported.");}}};
var aYc=function(a,b,c,d){nVc(a.Ba,d,a.ma.bind(a,d));_.pi(a.W.then(function(e){return e.Qe(b,{requestId:d})}).then(null,function(e){return bYc(a,b,e)}),function(){oVc(a.Ba,[d])}).then(c.callback,c.Sd,c)},bYc=function(a,b,c){var d=_.sL(c),e=b instanceof _.hM&&b.request.Gc()||"";c=d.Kg;if(e&&8===c.Wj()){a.log("Create failed with 409 Conflict, re-querying: "+e);var f=_.hp(new _.fp,[e]);return _.yi(a.W.then(function(h){return h.Qe(f)}).then(function(h){h=h.Me().Dd()[0];var k=b.request;if(h&&!h.Ah()&&
(h.getMimeType()||"").replace(/\s/g,"")===(k.getMimeType()||"").replace(/\s/g,"")&&h.getTitle()===k.getTitle())return a.log("Matching item found for: "+e),_.XTc((new _.kM).setItem(h),e).Ac(1);a.log("No matching item found for: "+e);return _.ki(d)}))}return _.zi(d)};_.g=_.sN.prototype;
_.g.cancel=function(a){var b=this,c=this.Li[a];if(c&&(!c.UC||0!==c.children.length))if(c.UC=!0,c.og.rf())this.log('[Cancel] Response for "'+c.request.getTitle()+'" already received. Cannot cancel.'+(c.children.length?" Attempting to cancel children.":"")),_.Ka(c.children,this.cancel,this);else{var d=c.Zia;d&&(QTc(PTc(RTc(KUc(d),c.ou),!1),2),d.ek());var e=_.oi();c.NK?this.W.then(function(f){return void e.resolve(f.cancel(a))}):(c.NK=!0,d=new _.kM,d.Ac(8),c.og.callback(d),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.kH=function(){var a=this;_.bg(this.Li,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.Li[f]){var h=[];do{h.push(f);var k=(_.Jd(b.Li[f].request,10)||[])[0];if(k){var l=b.Li[k];if(l.success||!l.og.rf()||e[k])break;else if(!c.has(k)){e[f]=new _.Vb("Unable to retry request due to failed parent upload.");break}}f=k}while(f);_.ia(h,function(n){var p=b.Li[n];p.ou++;if(!e[n])if(!p.og.rf()||p.success)e[n]=new _.Vb("Unable to retry request.");else{var t=(_.Jd(p.request,10)||[])[0];e[t]instanceof _.Vb?
e[n]=e[t]:(p.og=WXc(b,n),p.NK=!1,p.UC=!1,(t=t?b.Li[t]:null)?XXc(b,n,t,!0):d.push(n),e[n]=p.og.xm())}})}else e[f]=new _.Vb("Retry request with unknown ID.")});a=a.map(function(f){f=e[f];return f instanceof _.ri?f:_.zi(f)});_.Ka(d,this.ka,this);return a};_.g.log=function(){this.isDisposed()};_.g.ud=function(a){return this.Li[a]};var $Xc=/^uploadTestFailMe(\.[1-9])?$/,ZXc=new Map([[2,12],[5,1],[27,3],[29,4],[30,5],[31,6],[35,7],[36,8],[37,9],[38,10],[25,11]]),YXc=new Map([[3,14]]);

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16a");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16b");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16c");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy167");

_.w();

}catch(e){_._DumpException(e)}
try{
_.r("sy16d");
var cYc=function(a,b){this.O=null;this.O=a;this.H=null;this.V=b};cYc.prototype.get=function(a){return dYc(this)[a]||null};cYc.prototype.set=function(a){dYc(this)[this.V(a)]=a;this.O=null};var dYc=function(a){a.H||(a.H=_.maa(a.O,a.V));return a.H};
_.tN=function(a,b){this.H=a;this.Rz=b};
_.tN.prototype.xy=function(a,b){a:{b:{var c=Math.min(a.length,b.length);for(var d=0;d<c;d++)if(!eYc(this,a[d],b[d])){c=d;break b}c=-1}if(-1==c){if(a.length==b.length){c=[];break a}if(a.length>b.length){c=[];for(var e=d=b.length;e<a.length;e++)c.push(this.H.zK(a[e],d));break a}if(a.length<b.length){c=[];for(d=a.length;d<b.length;d++)c.push(this.H.BK(b[d],d));break a}}d=a.length-1;for(e=b.length-1;0<=d&&0<=e&&eYc(this,a[d],b[e]);d--,e--);e=a.length-1-d;var f=a.length-e;d=a.slice(c,f);f=b.length-e;e=
b.slice(c,f);var h,k=[];for(f=0;f<d.length+1;f++)k[f]=[],k[f][0]=0;for(h=0;h<e.length+1;h++)k[0][h]=0;for(f=1;f<=d.length;f++)for(h=1;h<=e.length;h++)eYc(this,d[f-1],e[h-1])?k[f][h]=k[f-1][h-1]+1:k[f][h]=Math.max(k[f-1][h],k[f][h-1]);var l=[];f=d.length;for(h=e.length;0<f||0<h;)0<f&&0<h&&eYc(this,d[f-1],e[h-1])?(h--,f--):0<h&&(0==f||k[f][h-1]>k[f-1][h])?(l.unshift(this.H.BK(e[h-1],f)),h--):0<f&&(0==h||k[f][h-1]<=k[f-1][h])&&(l.unshift(this.H.zK(d[f-1],f-1)),f--);d=l;e={};for(f=0;f<d.length;f++)if(h=
this.Rz(this.H.aL(d[f])),void 0!==e[h]){h=e[h];l=d[h];var n=d[f];k=1==l.getType()?l:n;l=2==l.getType()?l:n;if(k=this.YC(l,k))d[h]=k,d.splice(f,1),f--}else e[h]=f;e=[];if(null!=d)for(f=0;f<d.length;f++){l=d[f];n=l.Xh()||0;var p=l.Zw()||0;l.setPosition((l.Xh()||0)+fYc(e,l.Xh()||0));d[f].setPosition((d[f].Xh()||0)+c);3==d[f].getType()&&(l.Cx((l.Zw()||0)+fYc(e,l.Zw()||0)),d[f].Cx((d[f].Zw()||0)+c));h=e;k=h.push;b:switch(l.getType()){case 1:l={offset:1,start:n,end:Number.MAX_VALUE};break b;case 2:l={offset:-1,
start:n,end:Number.MAX_VALUE};break b;case 3:l=n>p?{offset:-1,start:p,end:n}:{offset:1,start:n,end:p};break b;default:l={offset:0,start:-1,end:-1}}k.call(h,l)}c=d}d=[];a=new cYc(a,this.Rz);for(e=0;e<b.length;e++)f=b[e],(h=a.get(this.Rz(f)))&&!_.Tk(h,f)&&d.push(this.H.CO(f,e));return c.concat(d)};var fYc=function(a,b){for(var c=0,d=0;d<a.length;d++)a[d].start<=b&&b<=a[d].end&&(c+=a[d].offset);return c};
_.tN.prototype.YC=function(a,b){var c=b.Xh()||0;c>(a.Xh()||0)&&--c;return this.H.YC(this.H.aL(b),a.Xh()||0,c)};var eYc=function(a,b,c){return a.Rz(b)==a.Rz(c)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.gYc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.gYc,_.L);_.g=_.gYc.prototype;_.g.getType=function(){return _.C(this,1)};_.g.getItem=function(){return _.D(this,_.Cl,2)};_.g.setItem=function(a){return _.y(this,2,a)};_.g.Zw=function(){return _.C(this,3)};_.g.Cx=function(a){return _.A(this,3,a)};_.g.Xh=function(){return _.C(this,4)};_.g.setPosition=function(a){return _.A(this,4,a)};_.hYc=function(a){var b=new _.gYc;return _.A(b,1,a)};_.r("sy16e");
var iYc=function(){};_.g=iYc.prototype;_.g.BK=function(a,b){return _.hYc(1).setItem(a).setPosition(b)};_.g.zK=function(a,b){return _.hYc(2).setPosition(b).setItem(a)};_.g.YC=function(a,b,c){return _.hYc(3).Cx(b).setPosition(c).setItem(a)};_.g.CO=function(a,b){return _.hYc(4).setItem(a).setPosition(b)};_.g.aL=function(a){return a.getItem()};
var kYc;_.jYc=function(){_.tN.call(this,new iYc,function(a){return a.getId()})};_.N(_.jYc,_.tN);_.lYc=function(){kYc||(kYc=new _.jYc);return kYc};

_.w();

}catch(e){_._DumpException(e)}
try{
_.uN=function(a,b){return _.A(a,33,b||[])};_.vN=function(a,b){return _.A(a,45,b)};_.mYc=function(a,b){return _.A(a,5,b)};_.Wb=function(a){_.Fi.call(this,_.Nc);this.error=a};_.N(_.Wb,_.Fi);_.r("sy16f");
_.nYc=new Map([[5,2],[4,3],[3,1],[2,4]]);

_.w();

}catch(e){_._DumpException(e)}
try{
var oYc;_.bM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.bM,_.L);_.g=_.bM.prototype;_.g.ki=function(){return _.C(this,1)};_.g.Th=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.re=function(){return _.D(this,_.bf,3)};_.g.gq=function(){return _.C(this,4)};oYc=[1];_.wN=function(a){(0,_.S)(this,a,0,-1,oYc,null)};_.O(_.wN,_.L);_.wN.prototype.O=function(){return _.Jd(this,1)};_.r("sy169");
_.xN=function(a){(0,_.S)(this,a,0,-1,pYc,null)};_.O(_.xN,_.L);var pYc=[2];_.xN.prototype.Cb=function(){return _.C(this,1)};_.xN.prototype.Ac=function(a){return _.A(this,1,a)};_.xN.prototype.Ek=function(){return _.Lk(this,_.Cl,2)};_.qYc=function(a,b){return _.kb(a,2,b)};_.xN.prototype.vq=function(a,b){return _.Rk(this,2,a,_.Cl,b)};_.xN.prototype.xf=function(){return _.C(this,4)};_.rYc=function(a,b){return _.A(a,4,b)};

_.w();

}catch(e){_._DumpException(e)}
try{
_.yN=function(a,b){_.A(a,1,b)};_.r("sy16h");

_.w();

}catch(e){_._DumpException(e)}
try{
_.sYc=function(a){return _.Xd(a).Ag(_.E(a.get(_.jq),19,!1)?_.sOc:_.Vd)};_.r("sy16k");

_.w();

}catch(e){_._DumpException(e)}
try{
var tYc,uYc,vYc,wYc,xYc,yYc,zYc,AYc,BYc,CYc,EYc,FYc,GYc,HYc,IYc,AN,NYc,OYc,BN,CN,PYc,QYc,SYc,TYc,UYc,WYc,XYc,ZYc,$Yc,aZc,bZc,cZc,dZc,fZc,lZc,nZc,qZc,rZc,uZc,xZc,IN,yZc,zZc,AZc,BZc,CZc,DZc,EZc,GZc,HZc,IZc,JZc,MZc,LZc,PZc,RZc,TZc,VZc,ZZc,a_c,b_c,c_c,d_c,e_c,f_c,i_c,j_c,k_c,l_c,m_c,n_c,KYc,DN,JYc,LYc,MYc,E0c,F0c,ON,I0c,P0c,Z0c,$0c,a1c,KZc,d1c,e1c,f1c,g1c,h1c,B1c,D1c,E1c,F1c,G1c,H1c,QN,I1c,J1c,K1c,L1c,M1c,N1c,O1c,P1c,Q1c,Y1c,Z1c,$1c,RN,FZc,a2c,b2c,d2c,f2c,j2c,c3c,m3c,n3c,o3c,p3c,s3c,u3c,E3c,H3c,I3c,P3c,
Q3c,Z3c,p4c,r4c,u4c,y4c,F4c,J4c,P4c,g5c,i5c,j5c,A5c,B5c,YZc,C5c,D5c,kZc,u6c,v6c,w6c,x6c,y6c,z6c,iZc,A6c,C$c,D$c,E$c,F$c,G$c,H$c,I$c,J$c,K$c,L$c;tYc=function(a){a={Title:a.getTitle(),Type:a.getMimeType(),Parents:_.Jd(a,3),Convert:_.H(a,8),ID:a.Nj()};var b=[];_.bg(a,function(c,d){c&&b.push(d+": "+c)});return b.join("; ")};
uYc=function(a){var b=[];b.push(tYc(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.ou&&b.push("# of retries by client: "+a.ou);var d="";a.NK?a.og.rf()?a.og.lg(function(){d="Completed successfully."},function(e){d=e instanceof _.si?"Canceled.":"Completed with failure. See attachment."}):d="In progress.":d="Not yet executed.";b.push("State: "+
d);return b.join("\n")};
vYc=function(a,b,c,d,e,f){var h=_.mx("Drive Upload Report: %d/%d failed",_.fg(f),_.fg(e));a=a.Of();d.push("Batch query interval: "+_.wk(a,12,10)+"ms");d.push("Max resumable upload chunk size: "+_.wk(a,32,1073741824)/1024/1024+" MiB");d.push("Max batch upload file size: "+_.wk(a,33,1048576)/1024/1024+" MiB");d.push("Max files in an upload batch: "+_.wk(a,35,10)+" files");d.push("Max files in a non-upload batch: "+_.wk(a,10,50)+" files");d=d.join("\n");var k=[],l=[];_.bg(e,function(n){l.push(uYc(n))});k.push({name:"AllUploadRequests.txt",
content:l.join("\n---------\n")});k.push({name:"DataserviceLogs.txt",content:_.iUc(b)});_.bg(f,function(n,p){var t=k.push;p=e[p].request;p=_.mx('ErrorResponseFor"%s"(ID:%s).txt',p.getTitle()||"",p.Nj()||"");var u=n.Kg;u=u?_.C(u,4):"No detail.";t.call(k,{name:p,content:n.toString()+"\n"+u})});return{title:h,description:d,iO:k,Cd:152391,b7:c,gZ:361003}};wYc=function(a){return Array.prototype.concat.apply([],arguments)};xYc=function(a,b,c){c=_.Ha(a,b,c);return 0>c?(_.Ca(a,-(c+1),0,b),!0):!1};
yYc=function(a){return String.fromCharCode(10>a?48+a:87+a)};zYc=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]=yYc(d>>4);b[2*c+3]=yYc(d&15)}return b.join("")};AYc=function(a){var b=new _.aq;b.append("kind,largestChangeId,nextPageToken,");b.append("items(deleted,fileId,id,kind,");b.append(_.uL(a,!0,"file"));a.g5&&(b.append(",teamDriveId,teamDrive("),b.append(a.g5),b.append(")"));b.append(")");return b.toString()};
BYc=function(a){var b=new _.aq;b.append("kind,nextPageToken,items(");b.append(_.uL(a,!0));b.append("),incompleteSearch");a.g5&&(b.append(","),b.append(a.g5));return b.toString()};
CYc=function(a,b){for(var c=0;c<b.length;c++){var d=a,e=b[c],f=d.getCapabilities(),h=_.D(d,_.vM,138),k=_.D(d,_.yl,111),l=_.D(d,_.xM,27),n=_.Hl(d),p=d.Af(),t=d.jh(),u=_.D(d,_.zM,103);switch(e){case 74:_.Dk(d,83);break;case 188:_.Bk(d,137);break;case 149:_.RG(d,128);break;case 148:_.Dk(d,127);break;case 138:_.Bk(d,126);break;case 184:_.RG(d,135);break;case 76:f&&_.Bk(f,1);break;case 223:f&&_.Bk(f,54);break;case 208:f&&_.Bk(f,48);break;case 185:f&&_.Bk(f,40);break;case 213:f&&_.Bk(f,50);break;case 156:f&&
_.Bk(f,39);break;case 61:f&&_.Bk(f,2);break;case 216:f&&_.Bk(f,52);break;case 217:f&&_.Bk(f,53);break;case 77:f&&_.Bk(f,4);break;case 134:f&&_.Bk(f,34);break;case 147:f&&_.Bk(f,38);break;case 81:f&&_.Bk(f,10);break;case 82:f&&_.Bk(f,11);break;case 114:f&&_.Bk(f,27);break;case 133:f&&_.Bk(f,33);break;case 202:f&&_.Bk(f,47);break;case 132:f&&_.Bk(f,32);break;case 101:f&&_.Bk(f,20);break;case 201:f&&_.Bk(f,46);break;case 131:f&&_.Bk(f,31);break;case 200:f&&_.Bk(f,45);break;case 130:f&&_.Bk(f,30);break;
case 93:f&&_.Bk(f,17);break;case 191:f&&_.Bk(f,44);break;case 146:f&&_.Bk(f,37);break;case 90:f&&_.Bk(f,16);break;case 78:f&&_.Bk(f,7);break;case 186:f&&_.Bk(f,41);break;case 222:f&&_.Bk(f,51);break;case 85:f&&_.Bk(f,12);break;case 137:f&&_.Bk(f,36);break;case 209:f&&_.Bk(f,49);break;case 79:f&&_.Bk(f,8);break;case 189:f&&_.Bk(f,42);break;case 190:f&&_.Bk(f,43);break;case 80:f&&_.Bk(f,9);break;case 135:f&&_.Bk(f,35);break;case 102:f&&_.Bk(f,21);break;case 69:_.Bk(d,74);break;case 194:h&&_.Ck(h,2);
break;case 193:h&&_.Bk(h,1);break;case 1004:_.Bk(d,108);break;case 136:_.Dk(d,125);break;case 115:k&&_.Bk(k,1);break;case 116:k&&_.Bk(k,2);break;case 34:_.Bk(d,30);f&&_.Bk(f,3);break;case 9:_.Bk(d,10);break;case 91:_.Ck(d,91);break;case 43:_.Bk(d,42);_.Bk(d,43);break;case 187:_.Bk(d,136);break;case 26:_.Bk(d,24);break;case 108:_.RG(d,104);break;case 41:_.Bk(d,40);f&&_.Bk(f,5);break;case 42:_.Bk(d,41);break;case 1005:_.Dk(d,117);break;case 59:f&&_.Bk(f,6);break;case 28:_.Bk(d,26);break;case 44:_.Bk(d,
45);break;case 13:_.Bk(d,14);break;case 48:_.Bk(d,36);break;case 38:_.Bk(d,34);break;case 49:_.RG(d,50);break;case 51:_.Bk(d,53);break;case 104:_.Bk(d,102);break;case 39:_.Bk(d,35);break;case 87:_.Bk(d,76);break;case 100:_.Bk(d,98);break;case 72:_.Bk(d,78);break;case 5:_.Bk(d,6);break;case 20:_.Bk(d,21);break;case 21:break;case 29:l&&_.Bk(l,1);break;case 31:l&&_.Bk(l,3);break;case 92:l&&_.Bk(l,4);break;case 30:l&&_.Bk(l,2);break;case 16:_.Ck(d,17);break;case 12:_.Bk(d,13);break;case 211:n&&_.Bk(n,
2);break;case 212:n&&_.Bk(n,3);break;case 220:n&&_.Bk(n,5);break;case 157:t&&_.Dk(t,8);break;case 3:_.Bk(d,4);break;case 11:_.Bk(d,12);break;case 10:_.Bk(d,11);break;case 50:_.Bk(d,49);_.Bk(d,51);_.Ck(d,81);break;case 18:_.Bk(d,19);break;case 95:_.Bk(d,93);break;case 58:_.Bk(d,63);break;case 14:_.Dk(d,15);break;case 103:_.Bk(d,101);break;case 1:_.RG(d,2);break;case 96:_.Bk(d,94);break;case 1003:_.Dk(d,107);break;case 75:_.Ck(d,85);break;case 94:_.Bk(d,92);break;case 45:_.Bk(d,46);break;case 124:_.Bk(d,
118);break;case 125:_.Bk(d,119);break;case 1002:_.Ck(d,100);break;case 32:_.Bk(d,28);break;case 67:_.Bk(d,70);break;case 68:_.Bk(d,71);break;case 73:_.Bk(d,79);break;case 71:_.Bk(d,77);break;case 221:t&&_.Bk(t,9);break;case 210:_.Bk(d,140);break;case 7:_.Bk(d,8);break;case 122:_.Ck(d,109);break;case 66:_.Bk(d,69);break;case 33:_.Bk(d,29);break;case 24:_.Bk(d,22);break;case 25:_.Bk(d,23);break;case 46:_.Ck(d,47);break;case 192:p&&_.Bk(p,6);break;case 159:p&&_.Ck(p,5);break;case 154:p&&_.Bk(p,1);break;
case 158:p&&_.Bk(p,4);break;case 155:p&&_.Bk(p,3);break;case 52:_.RG(d,56);break;case 56:_.Bk(d,61);break;case 55:_.Dk(d,60);break;case 4:_.Bk(d,5);break;case 35:_.Bk(d,31);break;case 57:_.Bk(d,62);break;case 83:_.Bk(d,72);break;case 84:_.Ck(d,86);break;case 19:_.Bk(d,20);_.Bk(d,44);_.Bk(d,90);break;case 2:_.Bk(d,3);break;case 6:_.Bk(d,7);break;case 98:_.Bk(d,96);break;case 97:_.Ck(d,95);break;case 27:_.Bk(d,25);break;case 70:_.Bk(d,75);break;case 107:u&&_.Bk(u,3);break;case 106:u&&_.Bk(u,2);break;
case 105:u&&_.Bk(u,1);break;case 8:_.Bk(d,9);break;case 126:_.RG(d,120);break;default:throw Error("zc`"+e);}}};EYc=function(a,b){if(0!=a.length){var c=new Set([].concat(_.Wc(a),_.Wc(DYc)));a=[].concat(_.Wc(_.$5a.keys())).filter(function(e){return!c.has(e)});for(var d=0;d<b.length;d++)CYc(b[d],a)}};
FYc=function(a,b){var c=a.getCapabilities()||new _.wl,d=_.D(a,_.vM,138),e=_.D(a,_.yl,111),f=_.D(a,_.xM,27),h=_.Hl(a),k=a.Af(),l=a.jh(),n=_.D(a,_.zM,103);switch(b){case 74:return 0<a.Ss().length;case 188:return null!=_.H(a,137);case 149:return 0<_.Jd(a,128).length;case 148:return 0<a.ka().length;case 138:return null!=a.V();case 184:return 0<_.Jd(a,135).length;case 76:return null!=_.xl(c);case 223:return null!=_.H(c,54);case 208:return null!=_.H(c,48);case 185:return null!=_.H(c,40);case 213:return null!=
_.H(c,50);case 156:return null!=_.H(c,39);case 61:return null!=_.H(c,2);case 216:return null!=_.H(c,52);case 217:return null!=_.H(c,53);case 77:return null!=_.H(c,4);case 134:return null!=_.H(c,34);case 147:return null!=_.H(c,38);case 81:return null!=_.H(c,10);case 82:return null!=_.H(c,11);case 114:return null!=_.H(c,27);case 133:return null!=_.H(c,33);case 202:return null!=_.H(c,47);case 132:return null!=_.H(c,32);case 101:return null!=_.H(c,20);case 201:return null!=_.H(c,46);case 131:return null!=
_.H(c,31);case 200:return null!=_.H(c,45);case 130:return null!=_.H(c,30);case 93:return null!=_.H(c,17);case 191:return null!=_.H(c,44);case 146:return null!=_.H(c,37);case 90:return null!=_.Md(c);case 78:return null!=_.H(c,7);case 186:return null!=_.H(c,41);case 222:return null!=_.H(c,51);case 85:return null!=_.H(c,12);case 137:return null!=_.H(c,36);case 209:return null!=_.H(c,49);case 79:return null!=_.H(c,8);case 189:return null!=_.H(c,42);case 190:return null!=_.H(c,43);case 80:return null!=
_.H(c,9);case 135:return null!=_.H(c,35);case 102:return null!=_.H(c,21);case 69:return null!=_.H(a,74);case 194:return null!=d&&null!=_.D(d,_.wM,2);case 193:return null!=d&&null!=_.C(d,1);case 1004:return null!=_.H(a,108);case 136:return 0<a.O().length;case 115:return null!=e&&null!=_.H(e,1);case 116:return null!=e&&null!=_.C(e,2);case 34:return null!=_.H(a,30)||null!=_.H(c,3);case 9:return null!=a.yB();case 91:return null!=a.Yp();case 43:return null!=_.C(a,42)||null!=_.C(a,43);case 187:return null!=
_.C(a,136);case 26:return null!=a.ag();case 108:return 0<_.Jd(a,104).length;case 41:return null!=_.H(c,5);case 42:return null!=_.C(a,41);case 1005:return 0<_.Lk(a,_.ql,117).length;case 59:return null!=_.H(c,6);case 28:return null!=a.YG();case 44:return null!=_.C(a,45);case 13:return null!=a.vE();case 48:return null!=_.H(a,36);case 38:return null!=a.Ii();case 49:return 0<_.Jd(a,50).length;case 51:return null!=_.H(a,53);case 104:return null!=_.H(a,102);case 39:return null!=a.Eha();case 87:return null!=
_.El(a);case 100:return null!=_.H(a,98);case 72:return null!=_.C(a,78);case 5:return null!=a.Vl();case 20:return null!=a.We();case 21:return null!=a.getId();case 29:return!(!f||null==_.C(f,1));case 31:return!(!f||null==_.C(f,3));case 92:return!(!f||null==_.C(f,4));case 30:return!(!f||null==f.ze());case 16:return null!=a.Il();case 12:return null!=a.Vx();case 211:return null!=h&&null!=_.H(h,2);case 212:return null!=h&&null!=_.H(h,3);case 220:return null!=h&&null!=_.H(h,5);case 157:return!(!l||!_.Lk(l,
_.Bl,8));case 3:return null!=a.getMimeType();case 11:return null!=a.Uz();case 10:return null!=a.Np();case 50:return null!=_.H(a,49)||null!=_.H(a,51)||null!=a.Xl();case 18:return null!=a.eq();case 14:return 0<_.Dl(a).length;case 95:return null!=a.jl();case 58:return null!=_.H(a,63);case 103:return null!=_.C(a,101);case 1:return 0<a.Jj().length;case 96:return null!=_.H(a,94);case 1003:return 0<_.Gl(a).length;case 75:return null!=a.Jv();case 94:return null!=a.pL();case 45:return null!=a.Yt();case 124:return null!=
_.H(a,118);case 125:return null!=_.C(a,119);case 1002:return null!=_.Fl(a);case 32:return null!=a.Kt();case 67:return null!=a.bI();case 68:return null!=_.C(a,71);case 73:return null!=_.C(a,79);case 71:return null!=a.x_();case 221:return null!=l&&null!=_.H(l,9);case 210:return null!=_.Nl(a);case 7:return null!=a.L4();case 122:return null!=_.zN(a);case 66:return null!=_.C(a,69);case 33:return null!=_.H(a,29);case 24:return null!=a.Wi();case 25:return null!=a.ax();case 46:return null!=a.Nu();case 192:return null!=
k&&null!=_.H(k,6);case 159:return null!=k&&null!=_.Pd(k);case 154:return null!=k&&null!=_.C(k,1);case 158:return null!=k&&null!=_.Sd(k);case 155:return null!=k&&null!=_.C(k,3);case 52:return 0<_.Jd(a,56).length;case 55:return 0<a.bx().length;case 56:return null!=_.C(a,61);case 4:return null!=a.wz();case 35:return null!=_.H(a,31);case 57:return null!=_.C(a,62);case 83:return null!=a.zc();case 84:return null!=_.D(a,_.yM,86);case 2:return null!=a.getTitle();case 19:return null!=a.xw()||null!=_.H(a,44)||
null!=_.C(a,90);case 6:return null!=a.Ah();case 98:return null!=a.Zs();case 97:return null!=a.KB();case 27:return null!=a.wo();case 70:return null!=a.yi();case 107:return null!=n&&null!=_.C(n,3);case 106:return null!=n&&null!=_.C(n,2);case 105:return null!=n&&null!=n.ze();case 8:return null!=_.H(a,9);case 126:return 0<_.Jd(a,120).length;default:throw Error("Ac`"+b);}};GYc=function(a,b){return b.every(function(c){return FYc(a,c)})};HYc=function(a,b,c){var d=a.concat((void 0===c?0:c)?_.HRc:[]);return b.every(function(e){return(new Set(d)).has(e)})};
IYc=function(a,b){var c=new Set(b.concat(_.HRc));return a.filter(function(d){return!c.has(d)})};
AN=function(a,b,c){b=b.clone();var d=b.getCapabilities();c.forEach(function(e){if(FYc(b,e))if(_.d6a.has(e)){if(d){var f=a.getCapabilities()||new _.wl;_.BM(a,f);switch(e){case 76:_.xSc(f,_.xl(d));break;case 223:var h=_.H(d,54);_.A(f,54,h);break;case 208:_.SSc(f,_.H(d,48));break;case 185:var k=_.H(d,40);_.A(f,40,k);break;case 213:var l=_.H(d,50);_.A(f,50,l);break;case 156:var n=_.H(d,39);_.A(f,39,n);break;case 61:var p=_.H(d,2);_.A(f,2,p);break;case 216:var t=_.H(d,52);_.A(f,52,t);break;case 217:var u=
_.H(d,53);_.A(f,53,u);break;case 77:_.ySc(f,_.H(d,4));break;case 134:var z=_.H(d,34);_.A(f,34,z);break;case 147:var B=_.H(d,38);_.A(f,38,B);break;case 81:_.ESc(f,_.H(d,10));break;case 82:_.FSc(f,_.H(d,11));break;case 114:var F=_.H(d,27);_.A(f,27,F);break;case 133:_.NSc(f,_.H(d,33));break;case 202:_.RSc(f,_.H(d,47));_.MSc(f,_.H(d,32));break;case 132:_.MSc(f,_.H(d,32));break;case 101:_.JSc(f,_.H(d,20));break;case 201:_.QSc(f,_.H(d,46));break;case 131:_.LSc(f,_.H(d,31));break;case 200:var I=_.H(d,45);
_.A(f,45,I);break;case 130:var M=_.H(d,30);_.A(f,30,M);break;case 93:_.ISc(f,_.H(d,17));break;case 191:var U=_.H(d,44);_.A(f,44,U);break;case 146:var R=_.H(d,37);_.A(f,37,R);break;case 90:_.HSc(f,_.Md(d));break;case 78:_.BSc(f,_.H(d,7));break;case 186:var da=_.H(d,41);_.A(f,41,da);break;case 222:var ta=_.H(d,51);_.A(f,51,ta);break;case 85:_.GSc(f,_.H(d,12));break;case 137:var ra=_.H(d,36);_.A(f,36,ra);break;case 209:var Aa=_.H(d,49);_.A(f,49,Aa);break;case 79:_.CSc(f,_.H(d,8));break;case 189:_.OSc(f,
_.H(d,42));break;case 190:_.PSc(f,_.H(d,43));break;case 80:_.DSc(f,_.H(d,9));break;case 135:var va=_.H(d,35);_.A(f,35,va);break;case 102:_.KSc(f,_.H(d,21));break;case 34:var ka=_.H(b,30);_.A(a,30,ka);var Qa=_.H(d,3);_.A(f,3,Qa);break;case 41:var ib=_.H(b,40);_.A(a,40,ib);_.zSc(f,_.H(d,5));break;case 59:_.ASc(f,_.H(d,6))}}}else if(_.e6a.has(e)){var Ac=_.D(b,_.vM,138);if(Ac){var Jb=_.D(a,_.vM,138)||new _.vM;_.y(a,138,Jb);switch(e){case 194:var wc=_.D(Ac,_.wM,2);_.y(Jb,2,wc);break;case 193:var Fd=_.C(Ac,
1);_.A(Jb,1,Fd)}}}else if(_.f6a.has(e)){var ed=_.D(b,_.yl,111);if(ed){var Fc=_.D(a,_.yl,111)||new _.yl;_.y(a,111,Fc);switch(e){case 115:_.TSc(Fc,_.H(ed,1));break;case 116:_.USc(Fc,_.C(ed,2))}}}else if(_.g6a.has(e)){var fe=_.D(b,_.xM,27);if(fe){var Kd=_.D(a,_.xM,27)||new _.xM;_.y(a,27,Kd);switch(e){case 29:var Zd=_.C(fe,1);_.A(Kd,1,Zd);break;case 31:Kd.Ug(_.C(fe,3));break;case 92:var Tc=_.C(fe,4);_.A(Kd,4,Tc);break;case 30:Kd.Yg(fe.ze())}}}else if(_.h6a.has(e)){var wb=_.Hl(b);if(wb){var th=_.Hl(a)||
new _.hna;_.y(a,139,th);switch(e){case 211:var Be=_.H(wb,2);_.A(th,2,Be);break;case 212:var af=_.H(wb,3);_.A(th,3,af);break;case 220:var Gi=_.H(wb,5);_.A(th,5,Gi)}}}else if(_.i6a.has(e)){var Mh=b.Af();if(Mh){var nf=a.Af()||new _.pna;_.y(a,132,nf);switch(e){case 192:var sn=_.H(Mh,6);_.A(nf,6,sn);break;case 159:var tn=_.Pd(Mh);_.y(nf,5,tn);break;case 154:var Bf=_.C(Mh,1);_.A(nf,1,Bf);break;case 158:var sg=_.Sd(Mh);_.A(nf,4,sg);break;case 155:var uh=_.C(Mh,3);_.A(nf,3,uh)}}}else if(_.j6a.has(e)){var ti=
b.jh();switch(e){case 157:if(ti){var uj=a.jh()||new _.nna;JYc(a,uj);KYc(uj,_.Lk(ti,_.Bl,8))}break;case 221:if(ti){var tl=a.jh()||new _.nna;JYc(a,tl);var Hi=_.H(ti,9);_.A(tl,9,Hi)}}}else if(_.k6a.has(e)){var Rj=_.D(b,_.zM,103);if(Rj){var Qe=_.D(a,_.zM,103)||new _.zM;_.y(a,103,Qe);switch(e){case 107:var ul=_.C(Rj,3);_.A(Qe,3,ul);break;case 106:Qe.Ug(_.C(Rj,2));break;case 105:Qe.Yg(Rj.ze())}}}else switch(e){case 74:var nk=b.Ss();_.kb(a,83,nk);break;case 188:var bh=_.H(b,137);_.A(a,137,bh);break;case 149:var vl=
_.Jd(b,128);_.A(a,128,vl||[]);break;case 148:var fm=b.ka();_.kb(a,127,fm);break;case 138:var Il=b.V();_.A(a,126,Il);break;case 184:var ok=_.Jd(b,135);_.A(a,135,ok||[]);break;case 69:var Qg=_.H(b,74);_.A(a,74,Qg);break;case 1004:var Ui=_.H(b,108);_.A(a,108,Ui);break;case 136:var hi=b.O();_.kb(a,125,hi);break;case 9:var Vi=b.yB();_.A(a,10,Vi);break;case 91:var Rf=b.Yp();_.y(a,91,Rf);break;case 43:var Eg=_.C(b,42);_.A(a,42,Eg);var Ok=_.C(b,43);_.A(a,43,Ok);break;case 187:var jj=_.C(b,136);_.A(a,136,
jj);break;case 26:a.Tk(b.ag());break;case 108:var Jl=_.Jd(b,104);_.A(a,104,Jl||[]);break;case 42:var Cf=_.C(b,41);_.A(a,41,Cf);break;case 1005:var vj=_.Lk(b,_.ql,117);_.kb(a,117,vj);break;case 28:_.cTc(a,b.YG());break;case 44:var gm=_.C(b,45);_.A(a,45,gm);break;case 13:var hm=b.vE();_.A(a,14,hm);break;case 48:var ii=_.H(b,36);_.A(a,36,ii);break;case 38:_.eTc(a,b.Ii());break;case 49:var Wi=_.Jd(b,50);_.A(a,50,Wi||[]);break;case 51:var Cc=_.H(b,53);_.A(a,53,Cc);break;case 104:var pk=_.H(b,102);_.A(a,
102,pk);break;case 39:var Kl=b.Eha();_.A(a,35,Kl);break;case 87:var kh=_.El(b);_.A(a,76,kh);break;case 100:var qk=_.H(b,98);_.A(a,98,qk);break;case 72:var Fg=_.C(b,78);_.A(a,78,Fg);break;case 5:var ip=b.Vl();_.A(a,6,ip);break;case 20:var un=b.We();_.A(a,21,un);break;case 21:a.Pb(b.getId());break;case 16:_.aTc(a,b.Il());break;case 12:var Ll=b.Vx();_.A(a,13,Ll);break;case 3:_.IK(a,b.getMimeType());break;case 11:var Pk=b.Uz();_.A(a,12,Pk);break;case 10:_.BOc(a,b.Np());break;case 50:var mo=_.H(b,49);
_.A(a,49,mo);var Ml=_.H(b,51);_.A(a,51,Ml);var wj=b.Xl();_.y(a,81,wj);break;case 95:_.kTc(a,b.jl());break;case 18:_.bTc(a,b.eq());break;case 58:var no=_.H(b,63);_.A(a,63,no);break;case 14:_.$Sc(a,_.Dl(b));break;case 1:_.AM(a,b.Jj());break;case 96:var oo=_.H(b,94);_.A(a,94,oo);break;case 103:var kj=_.C(b,101);_.A(a,101,kj);break;case 1003:LYc(a,_.Gl(b));break;case 75:_.iTc(a,b.Jv());break;case 94:_.jTc(a,b.pL());break;case 45:var Qk=b.Yt();_.A(a,46,Qk);break;case 124:var rk=_.H(b,118);_.A(a,118,rk);
break;case 125:var vn=_.C(b,119);_.A(a,119,vn);break;case 1002:var dq=_.Fl(b);_.y(a,100,dq);break;case 32:var wn=b.Kt();_.A(a,28,wn);break;case 67:var po=b.bI();_.A(a,70,po);break;case 68:var qo=_.C(b,71);_.A(a,71,qo);break;case 73:var hs=_.C(b,79);_.A(a,79,hs);break;case 71:var jw=b.x_();_.A(a,77,jw);break;case 210:var Vm=_.Nl(b);_.A(a,140,Vm);break;case 7:_.ZSc(a,b.L4());break;case 122:MYc(a,_.zN(b));break;case 66:var kw=_.C(b,69);_.A(a,69,kw);break;case 33:var qq=_.H(b,29);_.A(a,29,qq);break;case 24:var kt=
b.Wi();_.A(a,22,kt);break;case 25:var rq=b.ax();_.A(a,23,rq);break;case 46:var sq=b.Nu();_.y(a,47,sq);break;case 52:var is=_.Jd(b,56);_.A(a,56,is||[]);break;case 56:var lw=_.C(b,61);_.A(a,61,lw);break;case 55:a.qC(b.bx());break;case 4:a.uu(b.wz());break;case 35:_.dTc(a,_.H(b,31));break;case 57:var RB=_.C(b,62);_.A(a,62,RB);break;case 83:_.hTc(a,b.zc());break;case 84:var mE=_.D(b,_.yM,86);_.y(a,86,mE);break;case 98:a.Jaa(b.Zs());break;case 97:var SB=b.KB();_.y(a,95,SB);break;case 19:var Hx=b.xw();
_.A(a,20,Hx);_.fTc(a,_.H(b,44));var nE=_.C(b,90);_.A(a,90,nE);break;case 2:a.setTitle(b.getTitle());break;case 6:a.Wm(b.Ah());break;case 27:_.COc(a,b.wo());break;case 70:var Ix=b.yi();_.A(a,75,Ix);break;case 8:var Fz=_.H(b,9);_.A(a,9,Fz);break;case 126:var nM=_.Jd(b,120);_.A(a,120,nM||[]);break;default:throw Error("Bc`"+e);}})};NYc=function(a,b){var c=_.zy[a];return b.filter(function(d){return!c||!c.has(d)})};OYc=function(a,b,c){a=NYc(c,a);return HYc(b,a,!0)};
BN=function(a){return a?"application/vnd.google-apps.shortcut"===a.getMimeType():!1};CN=function(a,b){b=void 0===b?!1:b;if(!a)return!1;var c=a.getMimeType();return b&&BN(a)?(a=a.Af(),!!a&&"application/vnd.google-apps.folder"===_.C(a,3)):"application/vnd.google-apps.folder"===c};PYc=function(a){var b=a&&a.getId()||null;a&&BN(a)&&(a=(a=a.Af())&&_.C(a,1))&&(b=a);return b};QYc=function(a){return!!_.H(a,31)&&!_.H(a,94)};SYc=function(a){return RYc.some(function(b){return FYc(a,b)})};
TYc=function(a){return a.filter(function(b){return b}).some(function(b){return[4,5,2].includes(DN(b))})};UYc=function(a){return TYc(a.filter(function(b){return b}).map(function(b){return b.getItem()}))};_.VYc=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};WYc=function(a,b){var c=_.rRc(b||{}),d=new Map;a.forEach(function(e){d.set(e,c[e]||null)});return d};XYc=function(a,b){return 0<=b?!a||a<=b:!0};
ZYc=function(a,b){if(b){var c=[];_.H(b,3)&&c.push("folder");var d=YYc()&&4===b.getType()?"title_natural":_.wQc[b.getType()];b=_.yQc[_.vk(b,2,1)];d&&(b&&(d+=" "+b),c.push(d));c.length&&(a.orderBy=c.join(","))}};$Yc=function(a,b){var c=a.Xl();c||(c=new _.zl,b&&_.y(a,81,c));return c};aZc=function(a){if(CN(a))_.yN($Yc(a,!0),!0);else if(CN(a,!0)){var b=a.Af();if(b=b&&_.Pd(b))_.yN($Yc(b,!0),!0),_.yN($Yc(a,!0),!0)}};bZc=function(a){return!!a.Xl()&&!CN(a)};
cZc=function(a){var b=[];_.Ka(a,function(c){if(3!=DN(c)){var d=c;if(null!=_.H(d,49)||null!=_.H(d,51)||null!=d.Xl())c=_.Uk(c),_.Bk(c,49),_.Bk(c,51),_.Ck(c,81);b.push(c)}});return b};dZc=function(a){for(var b=0;b<a.length;b++){var c=a[b];c&&c instanceof _.L?a[b]=c.Xb():c&&c instanceof _.YM&&(a[b]=c.Xb(function(d){return d?d.Xb():null}))}};fZc=function(a){var b=a.slice(0),c=new Set(b);eZc.forEach(function(d){c.has(d)||b.push(d)});b.sort();return b};
lZc=function(a,b,c){var d=_.D(a,gZc,66);if(d){var e=_.C(d,1),f=_.KM(a);a=_.gL(_.SK(a));e=new _.Cj(e);var h=new _.Cj(window.location);var k=h.O+"://"+h.H;null!=h.W&&(k+=":"+h.W);h=_.Tj(k,3);_.Jj(e,"co",h);h=e.Je();!f&&0<a&&(h+="u/"+a+"/");e.Di(h+"_/dataservice/cacheproxy");f=_.C(d,5)||"";if(_.hRc(window.location.href,e.toString())&&f)return e=fZc(c),c=_.C(d,6),b="#"+b+"_",d=new _.KK,d.update(e.join(",")),b+=_.GOc(d.digest()),c&&(b+="&jobset="+c),b=_.Ox(f+"?"+b),_.q.SharedWorker?(c=new SharedWorker(_.Pfa(b),
void 0),b=new hZc(c.port),c.port.start()):b=new hZc(new Worker(_.Pfa(b),void 0)),new iZc(new EN(b,!1,!0),1,f,e);c=e.toString();b="cpiframe_"+_.ch();c=_.Jh("IFRAME",{name:b,id:b,src:c});c.style.cssText=_.vg(_.gRc(_.Nf("display: none;")));document.body.appendChild(c);c=_.lla(e.O,void 0,e.H,e.W).toString();return new iZc(new EN(jZc(window.frames[b],c),!1,!0),0,e.toString())}b=new kZc;return new iZc(new EN(b.O,!1,!1),2,"inline",c,new EN(b.H,!1,!1))};
nZc=function(a){var b=new mZc;if(a instanceof _.vL)_.Nk(b,16,FN[0],a);else if(a instanceof _.wL)_.Nk(b,1,FN[0],a);else if(a instanceof _.xL)_.Nk(b,2,FN[0],a);else if(a instanceof _.GN)_.Nk(b,17,FN[0],a);else if(a instanceof _.AL)_.Nk(b,3,FN[0],a);else if(a instanceof _.fN)_.Nk(b,4,FN[0],a);else if(a instanceof _.yL)_.Nk(b,5,FN[0],a);else if(a instanceof _.EL)_.Nk(b,6,FN[0],a);else if(a instanceof _.GL)_.Nk(b,7,FN[0],a);else if(a instanceof _.HL)_.Nk(b,8,FN[0],a);else if(a instanceof _.KL)_.Nk(b,9,
FN[0],a);else if(a instanceof _.ZL)_.Nk(b,10,FN[0],a);else if(a instanceof _.$L)_.Nk(b,11,FN[0],a);else if(a instanceof _.aM)_.Nk(b,12,FN[0],a);else if(a instanceof _.iL)_.Nk(b,13,FN[0],a);else if(a instanceof _.eM)_.Nk(b,14,FN[0],a);else if(a instanceof _.fM)_.Nk(b,15,FN[0],a);else throw new _.Vb("Unsupported request type");return b};
qZc=function(a){a=a.map(function(c){var d=new oZc;if(c instanceof _.vL)_.Nk(d,6,HN[0],c);else if(c instanceof _.GN)_.Nk(d,7,HN[0],c);else if(c instanceof _.EL)_.Nk(d,1,HN[0],c);else if(c instanceof _.ZL)_.Nk(d,2,HN[0],c);else if(c instanceof _.$L)_.Nk(d,3,HN[0],c);else if(c instanceof _.iL)_.Nk(d,4,HN[0],c);else if(c instanceof _.fM)_.Nk(d,5,HN[0],c);else throw new _.Vb("Unsupported request type");return d});var b=new pZc;_.kb(b,1,a);return b};
rZc=function(a){return _.Lk(a,oZc,1).map(function(b){return _.D(b,_.vL,6)||_.D(b,_.EL,1)||_.D(b,_.ZL,2)||_.D(b,_.$L,3)||_.D(b,_.iL,4)||_.D(b,_.fM,5)||_.D(b,_.GN,7)})};uZc=function(a){var b=new sZc;if(a instanceof _.kC)_.Nk(b,1,tZc[0],a);else if(a instanceof _.lC)_.Nk(b,2,tZc[0],a);else throw new _.Vb("Unsupported request type");return b};
xZc=function(a){var b=new vZc;if(a instanceof _.BL)_.Nk(b,1,wZc[0],a);else if(a instanceof _.IL)_.Nk(b,2,wZc[0],a);else if(a instanceof _.gM)_.Nk(b,3,wZc[0],a);else throw new _.Vb("Unsupported request type");return b};IN=function(a,b,c){return b?new c(JSON.parse(a)):a};yZc=function(a){a={t:a.title,d:a.description,c:a.Cd,fi:a.b7,dti:a.gZ,a:a.iO?a.iO.map(function(b){return JSON.stringify({n:b.name,c:b.content,ct:b.contentType,ec:b.M6})}):void 0};return JSON.stringify(a)};
zZc=function(a){a=JSON.parse(a);return{title:a.t,description:a.d,Cd:a.c,b7:a.fi,gZ:a.dti,iO:a.a?a.a.map(function(b){b=JSON.parse(b);return{name:b.n,content:b.c,contentType:b.ct,M6:b.ec}}):void 0}};AZc=function(a,b,c){a=a?1:2;a=_.Jc(_.Ic(new _.Hc,12),a);var d=(new _.Oe).Wm(!0);d=_.A(d,17,!0);a=_.Pe(d,a);c&&_.Zl(a,c);c=new _.tQc;b&&_.yRc(c,b);return _.zRc(_.BRc(new _.YK,a),c)};BZc=function(a){return a.map(function(b){return b.getItem()})};
CZc=function(a){var b={};a.forEach(function(c){b[c.getId()]=c.getItem()});return b};DZc=function(a,b){var c=new _.Cj(_.G(b,16,"")+"/open"),d=a.getId();BN(a)&&(d=PYc(a));_.Jj(c,"id",d);_.Jj(c,"authuser",_.gL(_.SK(b)));_.E(b,89,!1)&&_.sk(a,140)&&_.Jj(c,"resourcekey",_.Nl(a));return c.toString()};
EZc=function(a){_.yf("drive.DebugUtil.printFindById",function(c){a.SK(c).addCallback(function(d){window.console.log(JSON.stringify(d))})});_.yf("drive.DebugUtil.getLogs",function(){return _.iUc(a.Hf())});_.yf("drive.DebugUtil.printLogs",function(){window.console.log(_.iUc(a.Hf()))});_.yf("drive.DebugUtil.printRequestHistory",function(){a.vP().addCallback(function(c){c.forEach(function(d){window.console.log(_.C(d,1));window.console.log(_.C(d,2))})})});_.yf("drive.DebugUtil.getState",function(){return a.getState()});
var b=a.Ka();b&&_.E(b,1,!1)&&(_.yf("drive.DebugUtil.getContext",function(){return a.getContext()}),_.yf("drive.DebugUtil.setOffline",function(c){return void a.Uk(c)}))};GZc=function(a,b){var c=new _.wN,d=new Set;if(6===a){a=_.m(b);for(b=a.next();!b.done;b=a.next())(b=b.value)?(b=_.nYc.get(DN(b)))&&d.add(b):d.add(1);0===d.size&&d.add(0)}FZc(c,[].concat(_.Wc(d)));return c};
HZc=function(a){var b=[],c={};a=_.m(a);for(var d=a.next();!d.done;c={wca:c.wca},d=a.next())if(d=d.value){c.wca=new Map;[].concat(_.Wc(_.Dl(d)),[d.Il(),d.Nu(),d.Yp()]).forEach(function(l){return function(n){n&&l.wca.set(_.IF(n),n)}}(c));for(var e=[],f=_.m(c.wca.values()),h=f.next();!h.done;h=f.next())if(h=h.value){var k=h.getName();e.push(_.IF(h)+"-"+((k?k.length:k)+"-")+_.vk(h,16,0))}b.push(d.getId()+","+DN(d)+","+(e.length?e.join(","):"-"))}return b.length?"People: "+b.join("|"):""};
IZc=function(a,b){var c={};a=_.cg(a,function(d){return!!d});b=_.cg(b,function(d){return!!d});_.bg(a,function(d,e){var f=b[e];f?_.Tk(d,f)||(d=_.hYc(4).setItem(f),c[e]=d):(d=_.hYc(2).setItem(d),c[e]=d)});_.bg(b,function(d,e){a[e]||(d=_.hYc(1).setItem(d),c[e]=d)});return c};JZc=function(a,b){return _.fg(a)!==_.fg(b)||!_.ig(IZc(a,b))};
MZc=function(a,b){b.info("drive.ds.sync.api.Dump","Requesting dump stats.");b=new _.bf;_.cf(b,305);_.df(b,!0);_.A(b,3,2);var c=new _.mC;_.y(c,1,b);KZc(c,[7]);a=a.then(function(d){return d.Qe(c)}).then(LZc);return _.yi(a)};LZc=function(a){a=_.Lk(a,_.kp,3);var b=new NZc;a.forEach(function(c){var d=c.getKey();d=d&&_.C(d,2);"corpusSize"===d?(c=_.mb(c.Ya()),_.A(b,3,c)):"linkedItems"===d?(c=_.mb(c.Ya()),_.A(b,2,c)):"linkedFolders"===d&&(c=_.mb(c.Ya()),_.A(b,1,c))});return"number"===typeof _.C(b,3)?b:null};
PZc=function(a,b){var c=OZc(a.Gl,b.Gc());if(c){var d=c.getItem(),e=d.Jv();if(e){var f=e.CP(),h=_.wa(f,function(k){return k.getId()===_.C(b,2)});_.WSc(e,f);h||(f=_.Lk(e,_.ml,3),_.wa(f,function(k){return k.getId()===_.C(b,2)}),_.XSc(e,f));_.VSc(e,(_.C(e,1)||1)-1);a.Gk([d],c.H)}}};
RZc=function(a,b,c){if(b=OZc(a.Gl,b.Gc())){var d=b.getItem(),e=d.Jv();if(e){if(1===c.getType()||2===c.getType()){var f=_.Lk(e,_.ml,3);f.push(c);_.Ia(f,QZc);_.XSc(e,f)}else f=e.CP(),f.push(c),_.Ia(f,QZc),_.WSc(e,f);_.VSc(e,(_.C(e,1)||0)+1);a.Gk([d],b.H)}}};TZc=function(a){return a.map(function(b){var c=new _.isb;c=_.A(c,3,SZc[b.serviceName]);return _.A(c,2,Number(b.bytesUsed))})};
VZc=function(a){return(a.quotaBytesByService||[]).reduce(function(b,c){return UZc.has(c.serviceName)?b+Number(c.bytesUsed):b},0)};
ZZc=function(a){var b=a.json.exportJob,c=WZc[b.status]||0,d=Number(a.json.percentDone),e=b.items?b.items.length:0;a=a.json.numFetchedFiles||0;var f=0,h=0,k=_.jb(b.archives||[],function(l){f=f+Number(l.sizeOfContents)||0;h=h+Number(l.compressedSize)||0;return l.storagePath});b=_.jb(b.failedItemInfos||[],function(l){var n=_.IK((new _.Cl).Pb(l.docId).setTitle(l.title),l.mediaType);n=(new _.XZc).setItem(n);n=_.A(n,3,l.relativePath);return _.A(n,4,l.cause)});return new YZc(c,d,k,f,h,e,a,b)};
a_c=function(a){var b={},c=a.getKey(),d=c&&_.C(c,2);b.key=d;b.value=a.Ya();(a=c&&_.lp(c))&&(b.namespace=$Zc[a]);return b};b_c=function(a){for(var b=[],c=0;c<a.length;c++)b.push($Zc[a[c]]);return b};c_c=function(a){return"kind,defaultAppIds,items("+a+")"};d_c=function(a,b){return _.E(b,5,!1)?a+",graceQuotaInfo,quotaStatus":a};e_c=function(a,b){return _.E(b,93,!1)?a+",adminSecureLinkSetting":a};
f_c=function(){var a=!(!_.q.IDBObjectStore||!_.q.IDBObjectStore.prototype.getAll);return!!(_.q.indexedDB||_.q.mozIndexedDB||_.q.webkitIndexedDB||_.q.moz_indexedDB)&&a};
i_c=function(a,b){_.A(b,75,1<_.q.devicePixelRatio);var c=_.E(b,61,!1);var d=_.hL(b),e=!!d&&_.E(d,10,!1);if(_.RK(_.SK(b))||!c&&!e)_.A(b,61,!1),_.Ck(b,66),d&&_.A(d,10,!1),c=!1;else{if(c){_.q.SharedWorker||(c=!1);var f=_.D(b,gZc,66);f&&_.C(f,1)||(c=!1);_.KM(b)&&!_.E(b,52,!1)&&(c=!1)}c?d&&_.A(d,10,!1):(_.A(b,61,!1),_.Ck(b,66));c=c||e}if(c)return c=_.E(b,61,!1)?3:5,b=new JN(a,b,c),new KN(b);c=_.RK(_.SK(b))?2:1;a=new LN(a,b,c,void 0,void 0,void 0);return _.RK(_.SK(b))?new g_c(a):new h_c(a)};
j_c=function(a){return _.Xd(a).Ag(_.E(a.get(_.jq),19,!1)?_.tOc:_.PUa)};k_c=function(a,b){a.H.push(b>>>0&255);a.H.push(b>>>8&255);a.H.push(b>>>16&255);a.H.push(b>>>24&255)};l_c=function(a,b){return _.kb(a,1,b)};m_c=[1];n_c=function(a){(0,_.S)(this,a,0,-1,m_c,null)};_.O(n_c,_.L);n_c.prototype.nL=function(){return _.Lk(this,_.ml,1)};n_c.prototype.Fea=function(a){_.Rk(this,1,a,_.ml,void 0)};
var o_c=function(a){var b=new n_c;return _.kb(b,1,a)},p_c=function(a,b){return _.y(a,1,b)},q_c=function(a,b){_.kb(a,2,b)},r_c=function(a,b){_.y(a,6,b)},s_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(s_c,_.L);var t_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(t_c,_.L);var MN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(MN,_.L);var u_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(u_c,_.L);var v_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(v_c,_.L);
var w_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(w_c,_.L);var x_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x_c,_.L);var y_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(y_c,_.L);var z_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(z_c,_.L);var A_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A_c,_.L);var B_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(B_c,_.L);var C_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(C_c,_.L);var D_c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(D_c,_.L);var E_c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(E_c,_.L);var F_c=[[1,2,3,4]],G_c=function(a){(0,_.S)(this,a,0,-1,null,F_c)};_.O(G_c,_.L);var H_c=[[1]],I_c=function(a){(0,_.S)(this,a,0,-1,null,H_c)};_.O(I_c,_.L);var J_c=[[1,2]],K_c=function(a){(0,_.S)(this,a,0,-1,null,J_c)};_.O(K_c,_.L);var L_c=[[1]],M_c=function(a){(0,_.S)(this,a,0,-1,null,L_c)};_.O(M_c,_.L);var N_c=[[1,2]],O_c=function(a){(0,_.S)(this,a,0,-1,null,N_c)};_.O(O_c,_.L);
O_c.prototype.Yha=function(){return _.D(this,MN,1)};O_c.prototype.Mg=function(a){_.Nk(this,1,N_c[0],a)};var P_c=[1],Q_c=function(a){(0,_.S)(this,a,0,-1,P_c,null)};_.O(Q_c,_.L);Q_c.prototype.gq=function(){return _.C(this,2)};var R_c=[[1]],S_c=function(a){(0,_.S)(this,a,0,-1,null,R_c)};_.O(S_c,_.L);var T_c=[2],U_c=function(a){(0,_.S)(this,a,0,-1,T_c,null)};_.O(U_c,_.L);var V_c=[[1]],W_c=function(a){(0,_.S)(this,a,0,-1,null,V_c)};_.O(W_c,_.L);W_c.prototype.Yha=function(){return _.D(this,u_c,1)};
W_c.prototype.Mg=function(a){_.Nk(this,1,V_c[0],a)};var X_c=[[1,2]],Y_c=function(a){(0,_.S)(this,a,0,-1,null,X_c)};_.O(Y_c,_.L);var Z_c=[[1]],$_c=function(a){(0,_.S)(this,a,0,-1,null,Z_c)};_.O($_c,_.L);
var a0c=function(a,b){return _.Nk(a,3,_.pl[0],b)},b0c=function(a,b){_.kb(a,1,b)},c0c=function(a,b){return _.A(a,2,b)},d0c=function(a,b){return _.y(a,3,b)},e0c=function(a,b){return _.A(a,4,b)},f0c=function(a,b){_.kb(a,1,b)},g0c=function(a,b){return _.y(a,2,b)},h0c=function(a,b){_.kb(a,1,b)},i0c=function(a,b){return _.y(a,4,b)},j0c=function(a,b){_.y(a,5,b)},k0c=function(a,b){_.kb(a,2,b)},l0c=function(a,b){_.kb(a,4,b)},m0c=function(a,b){return _.y(a,5,b)},n0c=function(a,b){_.kb(a,1,b)},o0c=function(a,
b){return _.y(a,2,b)},p0c=function(a,b){_.kb(a,2,b)},q0c=function(a){var b=new _.bna;return _.kb(b,3,a)},r0c=function(a,b){_.kb(a,1,b)},s0c=function(a,b){return _.A(a,2,b)},t0c=function(a,b){return _.y(a,3,b)},u0c=function(a,b){_.kb(a,2,b)},v0c=function(a,b){return _.y(a,3,b)},w0c=function(a,b){_.kb(a,1,b)},x0c=function(a,b){return _.kb(a,2,b)},y0c=function(a,b){_.kb(a,1,b)},z0c=function(a,b){return _.y(a,2,b)},A0c=function(a,b){return _.y(a,1,b)},B0c=function(a,b){return _.A(a,2,b)},C0c=function(a,
b){return _.A(a,3,b)},D0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(D0c,_.L);KYc=function(a,b){_.kb(a,8,b)};DN=function(a){return _.vk(a,52,1)};JYc=function(a,b){return _.y(a,73,b)};LYc=function(a,b){_.kb(a,107,b)};_.zN=function(a){return _.D(a,D0c,109)};MYc=function(a,b){_.y(a,109,b)};E0c=function(a){var b=new _.ek;var c=_.C(a,1);null!=c&&_.jk(b,1,c);c=_.C(a,2);null!=c&&_.jk(b,2,c);return _.gk(b)};F0c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(F0c,_.L);
var gZc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(gZc,_.L);var G0c=[11],H0c=function(a){(0,_.S)(this,a,0,-1,G0c,null)};_.O(H0c,_.L);var NN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(NN,_.L);NN.prototype.getKey=function(){return _.C(this,2)};NN.prototype.Nq=function(){return _.sk(this,2)};ON=function(a){return _.G(a,4,"en")};_.PN=function(a){return _.D(a,H0c,34,1)};I0c=function(a,b){return _.A(a,5,b)};_.J0c=function(a,b){return _.kb(a,5,b)};_.K0c=function(a,b){return _.A(a,6,b)};
_.L0c=function(a,b){return _.A(a,7,b)};_.M0c=function(a,b){return _.A(a,8,b)};_.N0c=function(a,b){return _.A(a,10,b)};_.O0c=function(a,b){return _.A(a,15,b)};P0c=[2];_.T0c=function(a){(0,_.S)(this,a,0,-1,P0c,null)};_.O(_.T0c,_.L);_.T0c.prototype.zh=function(){return _.C(this,1)};_.U0c=function(a,b){return _.A(a,2,b)};_.V0c=function(a,b){return _.A(a,3,b)};_.W0c=function(a,b){return _.A(a,1,b)};_.X0c=function(a,b){return _.A(a,2,b)};_.Y0c=function(a,b){return _.y(a,1,b)};
Z0c=function(a,b){return _.A(a,2,b)};$0c=function(a,b){return _.A(a,3,b)};a1c=function(a,b){_.kb(a,4,b)};_.b1c=function(a,b){_.y(a,8,b)};_.c1c=function(a,b){_.y(a,9,b)};KZc=function(a,b){_.A(a,3,b||[])};d1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(d1c,_.L);d1c.prototype.Ya=function(){return _.yk(this,1)};d1c.prototype.Kb=function(a){return _.Ek(this,1,a,0)};_.fN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.fN,_.L);_.fN.prototype.getTitle=function(){return _.C(this,1)};
_.fN.prototype.setTitle=function(a){return _.A(this,1,a)};_.fN.prototype.re=function(){return _.D(this,_.bf,2)};e1c=function(a,b){return _.A(a,9,b||[])};f1c=function(a,b){return _.A(a,10,b||[])};g1c=function(a,b){return _.A(a,36,b)};h1c=function(a,b){return _.kb(a,38,b)};_.i1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.i1c,_.L);_.i1c.prototype.getId=function(){return _.C(this,1)};_.i1c.prototype.Pb=function(a){return _.A(this,1,a)};_.i1c.prototype.ze=function(){return _.C(this,4)};
_.i1c.prototype.Yg=function(a){return _.A(this,4,a)};var j1c=function(a,b){return _.A(a,2,b)},k1c=function(a,b){return _.y(a,3,b)},l1c=[1,3,5],m1c=function(a){(0,_.S)(this,a,0,-1,l1c,null)};_.O(m1c,_.L);m1c.prototype.nD=function(){return _.Jd(this,1)};m1c.prototype.bA=function(){return _.H(this,2)};
var n1c=function(a,b){_.A(a,2,b)},o1c=function(a,b){_.Jk(a,5,b,void 0)},p1c=function(a,b){_.A(a,6,b)},q1c=function(a,b){_.A(a,7,b)},r1c=function(a,b){return _.A(a,1,b)},s1c=function(a,b){return _.A(a,3,b)},t1c=function(a,b){return _.A(a,4,b)},u1c=function(a,b){_.A(a,7,b)},v1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(v1c,_.L);var w1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(w1c,_.L);var x1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(x1c,_.L);
var y1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(y1c,_.L);var z1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(z1c,_.L);var A1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A1c,_.L);A1c.prototype.bA=function(){return _.H(this,2)};B1c=function(a,b){_.A(a,1,b)};_.C1c=function(a,b){_.y(a,2,b)};D1c=function(a,b){return _.A(a,1,b||[])};E1c=function(a,b,c){_.OM(a,b,c,"warning")};F1c=function(a){return[].concat(_.Wc(a.O))};G1c=function(a){return a.H.concat([].concat(_.Wc(a.O)))};
H1c=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(_.Wc(c))};QN=function(a){var b=_.WM(a).ud();b||(b=new _.JTc,a=_.WM(a),_.y(a,1,b));return b};I1c=function(a){var b=_.D(_.WM(a),m1c,3);b||(b=new m1c,a=_.WM(a),_.y(a,3,b));return b};J1c=function(a){var b=_.D(_.WM(a),x1c,7);b||(b=new x1c,a=_.WM(a),_.y(a,7,b));return b};
K1c=function(a){var b=_.D(_.WM(a),z1c,12);b||(b=new z1c,a=_.WM(a),_.y(a,12,b));return b};L1c=function(a){var b=_.D(_.WM(a),A1c,17);b||(b=new A1c,a=_.WM(a),_.y(a,17,b));return b};
M1c=function(a){if(a instanceof _.LK)return 2;if(a instanceof _.op)return 10;if(a instanceof _.Oe)return _.PL(a)?3:_.QL(a)?7:_.RL(a)?8:1;if(a instanceof _.fp)return 9;if(a instanceof _.JF)return 11;if(a instanceof _.XL)return 15;if(a instanceof _.TK)return 6;if(a instanceof _.TL){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 _.mC)return 4;if(a instanceof _.qp)return 12;if(a instanceof _.zA)return 13}return 0};
N1c=function(a){var b=null;a instanceof _.BA||"undefined"!=typeof _.YM&&a instanceof _.YM||"undefined"!=typeof _.ZM&&a instanceof _.ZM?b=a.Ue()||0:"undefined"!=typeof _.aN&&a instanceof _.aN||"undefined"!=typeof _.bN&&a instanceof _.bN||"undefined"!=typeof _.cN&&a instanceof _.cN||"undefined"!=typeof _.dN&&a instanceof _.dN||"undefined"!=typeof _.eN&&a instanceof _.eN?b=a.Ke:"undefined"!=typeof _.$M&&a instanceof _.$M&&(b=a.Ue());return b||0};
O1c=function(a,b){return a.V&&a.isRunning()?_.cVc(a.V,b,0):null};P1c=function(a,b){return _.y(a,1,b)};Q1c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Q1c,_.L);Q1c.prototype.Ul=function(){return _.C(this,1)};
var R1c=function(a){var b=new Q1c;return _.A(b,1,a)},S1c=function(a,b){a.W=b},T1c=function(a){if(a.V)return a.V;var b=_.oi();a.V=b.promise.then(function(){return R1c(1)},function(c){c=_.sL(c).Kg;var d=0;2===c.Mo()?d=3:_.TQc(c)&&(d=2);return R1c(d)});setTimeout(function(){a.V=null},5E3);_.BVc(a,b);return a.V},U1c=[2],V1c=function(a){(0,_.S)(this,a,0,-1,U1c,null)};_.O(V1c,_.L);_.g=V1c.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};
_.g.nL=function(){return _.Lk(this,_.ml,2)};_.g.Fea=function(a){_.Rk(this,2,a,_.ml,void 0)};_.g.Dj=function(){return _.C(this,3)};var W1c=[2],X1c=function(a){(0,_.S)(this,a,0,-1,W1c,null)};_.O(X1c,_.L);X1c.prototype.Cb=function(){return _.C(this,1)};X1c.prototype.Ac=function(a){return _.A(this,1,a)};X1c.prototype.Dj=function(){return _.C(this,3)};Y1c=function(a){return a.H?a.H.promise:a.O()?(a.H=new _.ro,a.H.promise):null};
Z1c=function(a){var b=[];a.Li.forEach(function(c){(c=c.mu.config.timestamp)&&b.push(c)});return b};$1c=function(a){var b=[];a.V.forEach(function(c){c.forEach(function(d){(d=d.mu.config.timestamp)&&b.push(d)})});a.buckets.forEach(function(c){_.za(b,Z1c(c))});return b};RN=function(a,b,c){if(b.length!=c.length)return!0;for(a=0;a<b.length;a++)if(!_.Tk(b[a],c[a]))return!0;return!1};FZc=function(a,b){return _.A(a,1,b||[])};
a2c=function(a,b){if(!(a instanceof b.constructor))throw Error("aa");var c=_.Mk(a,!0);b=_.Mk(b,!0);var d=[],e=0,f=c.length>b.length?c.length:b.length;a.Hc&&(d[0]=a.Hc,e=1);for(;e<f;e++)_.Wla(c[e],b[e])||(d[e]=b[e]);return new a.constructor(d)};b2c=[2,6];_.ZM=function(a){(0,_.S)(this,a,0,-1,b2c,null)};_.O(_.ZM,_.L);_.g=_.ZM.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Dd=function(){return _.Lk(this,_.Cl,2)};_.g.Hv=function(a){return _.kb(this,2,a)};
_.g.Pg=function(a,b){return _.Rk(this,2,a,_.Cl,b)};_.g.Dj=function(){return _.C(this,3)};_.g.Qk=function(){return _.E(this,4,!0)};var c2c=function(a,b){return _.kb(a,6,b)};_.ZM.prototype.xf=function(){return _.C(this,10)};_.ZM.prototype.IN=function(a){return _.A(this,10,a)};_.ZM.prototype.Ue=function(){return _.C(this,9)};_.ZM.prototype.Ci=function(a){return _.A(this,9,a)};d2c=[3];_.SN=function(a){(0,_.S)(this,a,0,-1,d2c,null)};_.O(_.SN,_.L);_.SN.prototype.getType=function(){return _.C(this,1)};
_.SN.prototype.Gc=function(){return _.C(this,2)};_.e2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.e2c,_.L);_.e2c.prototype.getFeature=function(){return _.C(this,1)};f2c=[1];_.VM=function(a){(0,_.S)(this,a,0,-1,f2c,null)};_.O(_.VM,_.L);var g2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(g2c,_.L);var h2c=[1,2],i2c=function(a){(0,_.S)(this,a,0,-1,h2c,null)};_.O(i2c,_.L);_.GN=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.GN,_.L);_.GN.prototype.getId=function(){return _.C(this,1)};
_.GN.prototype.Pb=function(a){return _.A(this,1,a)};_.GN.prototype.re=function(){return _.D(this,_.bf,3)};j2c=[2,3,8];_.$L=function(a){(0,_.S)(this,a,0,-1,j2c,null)};_.O(_.$L,_.L);_.$L.prototype.getId=function(){return _.C(this,1)};_.$L.prototype.Pb=function(a){return _.A(this,1,a)};_.$L.prototype.re=function(){return _.D(this,_.bf,4)};_.$L.prototype.zc=function(){return _.C(this,5)};
var k2c=[1,2,4],l2c={SUCCESS:1,s1b:2,ATb:3,wPb:4,E1b:5,cXb:6,UWb:7,WPb:8,s0b:9,H0b:10,r1b:11,xRb:12,bRb:13,BUb:14,USb:15,fRb:16,eRb:17,kRb:18,hRb:19,iRb:20,Y0b:21,B1b:22,tXb:23,BWb:24,PPb:25,PERMISSION_DENIED:26,SVb:27,aQb:28,$Pb:29,INTERRUPTED:30,SXb:31,lYb:32,LRb:33,RRb:34,z0b:35,YRb:36,VSb:37,QRb:38,TWb:39,GQb:40,NXb:41,nYb:42,q0b:43,rQb:44,FQb:45,SSb:46,OVb:47,SWb:48,lXb:49,OXb:50,j0b:51,cRb:52,r0b:53,p0b:54,xQb:55,uQb:56,hSb:57,mWb:58,PXb:59,nVb:60,CZb:61,q_b:62,X_b:63,QUb:64,DWb:65,H1b:66,$Rb:67,
WSb:68,q1b:69,UUb:70,ZPb:71,jQb:72,y_b:73,Y_b:74,U_b:75,S_b:76,m_b:190,R_b:191,z_b:192,F_b:126,B_b:128,C_b:129,D_b:130,E_b:131,G_b:132,H_b:133,LZb:127,IZb:134,JZb:135,NZb:136,OZb:137,PZb:138,KZb:194,MZb:195,QZb:196,HZb:197,p_b:189,BZb:139,DZb:140,RZb:141,SZb:142,d_b:143,g_b:144,h_b:145,i_b:146,j_b:147,k_b:148,l_b:149,o_b:150,u_b:151,w_b:152,x_b:153,A_b:154,I_b:155,K_b:156,L_b:157,M_b:158,N_b:159,O_b:160,P_b:161,T_b:162,W_b:163,Z_b:164,EZb:165,FZb:166,GZb:167,zZb:168,AZb:169,VZb:170,TZb:171,UZb:172,
WZb:173,XZb:174,YZb:175,ZZb:176,$Zb:177,a_b:178,b_b:179,c_b:180,e_b:181,f_b:182,n_b:106,v_b:183,J_b:184,Q_b:185,r_b:186,s_b:187,t_b:188,V_b:244,MXb:77,v1b:78,A1b:79,aWb:80,GUb:81,IUb:82,gSb:83,RSb:84,TVb:85,R0b:86,PRb:87,WUb:88,VUb:89,b0b:90,$_b:91,a0b:92,w1b:93,TQb:94,SQb:95,PQb:96,RQb:97,QQb:98,G1b:99,lZb:100,nRb:101,gRb:102,lRb:103,jRb:104,mRb:105,XSb:107,E0b:108,fZb:109,k1b:110,$Sb:111,ZSb:112,sVb:113,tVb:114,rYb:115,yQb:116,AVb:117,qSb:118,x1b:119,ZWb:120,$Wb:121,CUb:193,dRb:122,FRb:123,FUb:124,
xWb:125,XUb:198,XXb:199,NUb:200,$Ob:201,SUb:202,RUb:203,bQb:204,e2b:205,HVb:206,MQb:207,WWb:208,mYb:209,hZb:210,APb:211,qVb:212,xVb:213,u0b:214,t0b:215,PUb:216,AUb:217,OUb:218,bSb:219,I0b:220,cSb:221,oVb:222,B0b:223,Q1b:224,HWb:225,A0b:226,HRb:227,GVb:228,fSb:229,IQb:230,P0b:231,yWb:232,FILE_TOO_LARGE:233,TUb:234,aSb:235,PSb:236,hYb:237,EWb:238,MOb:239,JQb:240,LWb:241,rZb:242,NRb:243,YOb:245,JUb:246,nXb:247,HUb:248,$Vb:249,CWb:250,TSb:251,HTb:252,rVb:253,vQb:254,YSb:255,F1b:256,tTb:257,jWb:258,yYb:259,
WXb:260,bVb:261,sRb:262,ORb:263},DYc=[1004,1005,1002,1003],RYc=[1002,1003,1005],m2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(m2c,_.L);m2c.prototype.Cb=function(){return _.C(this,1)};m2c.prototype.Ac=function(a){return _.A(this,1,a)};m2c.prototype.Cm=function(){return _.D(this,_.AA,2)};var n2c=function(a){_.Fi.call(this,a)};_.N(n2c,_.Fi);var o2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(o2c,_.L);o2c.prototype.O=function(){return _.D(this,_.TE,1)};
o2c.prototype.V=function(){return _.D(this,_.TE,2)};o2c.prototype.ka=function(){return _.D(this,_.TE,3)};var p2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(p2c,_.L);_.g=p2c.prototype;_.g.h6a=function(){return _.H(this,1)};_.g.Sj=function(a){return _.A(this,1,a)};_.g.Vl=function(){return _.H(this,2)};_.g.g6a=function(){return _.H(this,3)};_.g.i6a=function(){return _.H(this,4)};var TN=[[13,19,12,11,10,15,14,9,8,18,17,16]],q2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(q2c,_.L);
q2c.prototype.O=function(){return _.H(this,1)};q2c.prototype.V=function(){return _.H(this,2)};var r2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(r2c,_.L);var s2c=[1],t2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(t2c,_.L);t2c.prototype.O=function(){return _.H(this,1)};t2c.prototype.V=function(){return _.H(this,2)};var u2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(u2c,_.L);_.g=u2c.prototype;_.g.w6a=function(){return _.H(this,1)};_.g.Sj=function(a){return _.A(this,1,a)};
_.g.Vl=function(){return _.H(this,2)};_.g.t6a=function(){return _.D(this,o2c,3)};_.g.x6a=function(){return _.sk(this,3)};_.g.v6a=function(){return _.D(this,o2c,4)};_.g.z6a=function(){return _.sk(this,4)};_.g.u6a=function(){return _.C(this,5)};_.g.y6a=function(){return _.sk(this,5)};var v2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(v2c,_.L);_.g=v2c.prototype;_.g.getLabel=function(){return _.C(this,1)};_.g.Ad=function(a){return _.A(this,1,a)};_.g.Oq=function(){return _.sk(this,1)};
_.g.Ya=function(){return _.C(this,2)};_.g.Kb=function(a){return _.A(this,2,a)};_.g.qj=function(){return _.Bk(this,2)};_.g.oh=function(){return _.sk(this,2)};_.g.ag=function(){return _.C(this,5)};_.g.Tk=function(a){return _.A(this,5,a)};_.g.s6a=function(){return _.sk(this,5)};_.g.getCapabilities=function(){return _.D(this,t2c,3)};_.g.r6a=function(){return _.D(this,u2c,4)};var w2c=function(a){(0,_.S)(this,a,0,-1,s2c,null)};_.O(w2c,_.L);w2c.prototype.O=function(){return _.Lk(this,v2c,1)};
var x2c=function(a,b){_.kb(a,1,b)},y2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(y2c,_.L);y2c.prototype.Ws=function(){return _.C(this,1)};y2c.prototype.sU=function(){return _.sk(this,1)};y2c.prototype.getOptions=function(){return _.D(this,w2c,2)};var z2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(z2c,_.L);z2c.prototype.V=function(){return _.C(this,1)};z2c.prototype.O=function(){return _.C(this,2)};var A2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(A2c,_.L);
A2c.prototype.Ws=function(){return _.C(this,1)};A2c.prototype.sU=function(){return _.sk(this,1)};A2c.prototype.getOptions=function(){return _.D(this,z2c,2)};var B2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(B2c,_.L);B2c.prototype.V=function(){return _.C(this,1)};B2c.prototype.O=function(){return _.C(this,2)};var C2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(C2c,_.L);var D2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(D2c,_.L);D2c.prototype.Ws=function(){return _.C(this,1)};
D2c.prototype.sU=function(){return _.sk(this,1)};D2c.prototype.getOptions=function(){return _.D(this,C2c,2)};var UN=[[3,4,5,6,7,8,9,10,11,12]],E2c=function(a){(0,_.S)(this,a,0,-1,null,UN)};_.O(E2c,_.L);_.g=E2c.prototype;_.g.Iaa=function(a){return _.Nk(this,3,UN[0],a)};_.g.k1a=function(a){return _.Nk(this,4,UN[0],a)};_.g.z0a=function(a){return _.Nk(this,5,UN[0],a)};_.g.y0a=function(a){return _.Nk(this,6,UN[0],a)};_.g.l0a=function(a){return _.Nk(this,7,UN[0],a)};
_.g.Z0a=function(a){return _.Nk(this,8,UN[0],a)};_.g.Y0a=function(a){return _.Nk(this,9,UN[0],a)};_.g.p1a=function(a){return _.Nk(this,10,UN[0],a)};_.g.Kma=function(a){return _.Nk(this,11,UN[0],a)};_.g.oma=function(a){return _.Nk(this,12,UN[0],a)};var F2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(F2c,_.L);var G2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(G2c,_.L);G2c.prototype.Ws=function(){return _.C(this,1)};G2c.prototype.sU=function(){return _.sk(this,1)};
G2c.prototype.getOptions=function(){return _.D(this,F2c,2)};var H2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(H2c,_.L);H2c.prototype.MRa=function(){return _.C(this,1)};H2c.prototype.O=function(){return _.C(this,4)};var I2c=function(a){(0,_.S)(this,a,0,-1,null,TN)};_.O(I2c,_.L);_.g=I2c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.l6a=function(){return _.C(this,2)};_.g.Le=function(){return _.C(this,4)};_.g.k6a=function(){return _.D(this,p2c,5)};
_.g.getCapabilities=function(){return _.D(this,q2c,6)};_.g.q6a=function(){return _.C(this,7)};_.g.l0a=function(a){return _.Nk(this,13,TN[0],a)};_.g.j6a=function(){return _.D(this,H2c,19)};_.g.oma=function(a){return _.Nk(this,19,TN[0],a)};_.g.y0a=function(a){return _.Nk(this,12,TN[0],a)};_.g.z0a=function(a){return _.Nk(this,11,TN[0],a)};_.g.Eob=function(){return _.D(this,B2c,10)};_.g.m6a=function(){return _.D(this,y2c,15)};_.g.Y0a=function(a){return _.Nk(this,15,TN[0],a)};
_.g.n6a=function(){return _.D(this,w2c,14)};_.g.Z0a=function(a){return _.Nk(this,14,TN[0],a)};_.g.k1a=function(a){return _.Nk(this,9,TN[0],a)};_.g.o6a=function(){return _.D(this,z2c,8)};_.g.Iaa=function(a){return _.Nk(this,8,TN[0],a)};_.g.p6a=function(){return _.D(this,G2c,18)};_.g.Kma=function(a){return _.Nk(this,18,TN[0],a)};_.g.p1a=function(a){return _.Nk(this,17,TN[0],a)};var J2c=[5],K2c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(K2c,_.L);K2c.prototype.ka=function(){return _.H(this,1)};
K2c.prototype.O=function(){return _.H(this,2)};K2c.prototype.ma=function(){return _.H(this,3)};K2c.prototype.V=function(){return _.H(this,4)};var VN=function(a){(0,_.S)(this,a,0,-1,J2c,null)};_.O(VN,_.L);VN.prototype.getName=function(){return _.C(this,1)};VN.prototype.hd=function(a){return _.A(this,1,a)};VN.prototype.Om=function(){return _.C(this,2)};var L2c=function(a,b){return _.A(a,2,b)};VN.prototype.V=function(){return _.C(this,14)};var M2c=function(a,b){return _.A(a,14,b)};_.g=VN.prototype;
_.g.getTitle=function(){return _.C(this,3)};_.g.setTitle=function(a){return _.A(this,3,a)};_.g.ag=function(){return _.C(this,4)};_.g.Tk=function(a){return _.A(this,4,a)};_.g.B6a=function(){return _.C(this,15)};_.g.A6a=function(){return _.Lk(this,I2c,5)};var N2c=function(a,b){_.kb(a,5,b)},O2c=function(a,b){_.y(a,6,b)},P2c=function(a,b){_.y(a,7,b)},Q2c=function(a,b){_.y(a,8,b)};VN.prototype.O=function(){return _.D(this,p2c,12)};var R2c=function(a,b){_.y(a,12,b)};
VN.prototype.getCapabilities=function(){return _.D(this,K2c,13)};var S2c=function(a,b){_.y(a,13,b)},T2c=[5,7,9],U2c=function(a){(0,_.S)(this,a,0,-1,T2c,null)};_.O(U2c,_.L);_.g=U2c.prototype;_.g.getUser=function(){return _.D(this,_.ml,1)};_.g.pz=function(a){_.A(this,2,a)};_.g.setBooleanValue=function(a){return _.A(this,3,a)};_.g.setTextValue=function(a){return _.A(this,4,a)};_.g.Gma=function(a){return _.A(this,5,a||[])};_.g.addTextValues=function(a,b){return _.Jk(this,5,a,b)};
_.g.setSelectionValue=function(a){return _.A(this,6,a)};_.g.Bma=function(a){return _.A(this,7,a||[])};_.g.addSelectionValues=function(a,b){return _.Jk(this,7,a,b)};_.g.setIntegerValue=function(a){return _.A(this,8,a)};_.g.sma=function(a){return _.A(this,9,a||[])};_.g.addIntegerValues=function(a,b){return _.Jk(this,9,a,b)};var V2c=[7,10,12,16,13,3],WN=function(a){(0,_.S)(this,a,0,-1,V2c,null)};_.O(WN,_.L);var XN=function(a){return _.C(a,4)};_.g=WN.prototype;_.g.pz=function(a){_.A(this,4,a)};
_.g.setBooleanValue=function(a){return _.A(this,5,a)};_.g.F6a=function(){return _.C(this,6)};_.g.setTextValue=function(a){return _.A(this,6,a)};_.g.Gma=function(a){return _.A(this,7,a||[])};_.g.addTextValues=function(a,b){return _.Jk(this,7,a,b)};_.g.D6a=function(){return _.C(this,8)};_.g.setLongTextValue=function(a){return _.A(this,8,a)};_.g.E6a=function(){return _.C(this,9)};_.g.setSelectionValue=function(a){return _.A(this,9,a)};_.g.YIa=function(){return _.Jd(this,10)};
_.g.Bma=function(a){return _.A(this,10,a||[])};_.g.addSelectionValues=function(a,b){return _.Jk(this,10,a,b)};_.g.C6a=function(){return _.C(this,11)};_.g.setIntegerValue=function(a){return _.A(this,11,a)};_.g.sma=function(a){return _.A(this,12,a||[])};_.g.addIntegerValues=function(a,b){return _.Jk(this,12,a,b)};_.g.ZIa=function(){return _.D(this,_.ml,15)};_.g.setUserValue=function(a){return _.y(this,15,a)};_.g.Kxa=function(){return _.Lk(this,_.ml,16)};var W2c=function(a,b){_.kb(a,16,b)};
WN.prototype.addUserValues=function(a,b){return _.Rk(this,16,a,_.ml,b)};WN.prototype.O=function(){return _.C(this,17)};WN.prototype.setDateStringValue=function(a){return _.A(this,17,a)};WN.prototype.V=function(){return _.sk(this,17)};var X2c=function(a,b){_.kb(a,13,b)};WN.prototype.getId=function(){return _.C(this,14)};WN.prototype.Pb=function(a){return _.A(this,14,a)};WN.prototype.getName=function(){return _.C(this,1)};WN.prototype.hd=function(a){return _.A(this,1,a)};
var Y2c=[2],YN=function(a){(0,_.S)(this,a,0,-1,Y2c,null)};_.O(YN,_.L);YN.prototype.getName=function(){return _.C(this,1)};YN.prototype.hd=function(a){return _.A(this,1,a)};YN.prototype.O=function(){return _.Lk(this,WN,2)};var Z2c=function(a,b){_.kb(a,2,b)};YN.prototype.Gc=function(){return _.C(this,3)};var $2c=function(a,b){return _.A(a,3,b)},a3c={y1b:0,kWb:1,uXb:2,jXb:3,YUb:4,xPb:5,lWb:6,kXb:7,gUb:8,OPb:9,hXb:10},ZN=function(){this.map={};this.status=6;this.Ke=null};ZN.prototype.Cb=function(){return this.status};
ZN.prototype.Ac=function(a){this.status=a};ZN.prototype.Ue=function(){return this.Ke};ZN.prototype.Ci=function(a){this.Ke=a};var b3c=function(a,b){a.map=b};ZN.prototype.Xb=function(a){var b=[];_.bg(this.map,function(c,d){b.push({k:d,v:c?a(c):null})});return JSON.stringify({s:this.status,d:this.Ke,me:b})};c3c=function(a,b,c){c=JSON.parse(c);a.Ac(c.s);a.Ci(c.d);var d={};c.me.forEach(function(e){d[e.k]=e.v?b(e.v):null});a.map=d};_.YM=function(){ZN.apply(this,arguments)};_.N(_.YM,ZN);
var d3c=function(){ZN.apply(this,arguments)};_.N(d3c,ZN);var e3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(e3c,_.L);e3c.prototype.getType=function(){return _.C(this,1)};var f3c=function(a){var b=new e3c;return _.A(b,1,a)},g3c=function(a,b){return _.y(a,2,b)};e3c.prototype.Zw=function(){return _.C(this,3)};e3c.prototype.Cx=function(a){return _.A(this,3,a)};e3c.prototype.Xh=function(){return _.C(this,4)};e3c.prototype.setPosition=function(a){return _.A(this,4,a)};
var h3c=[2],i3c=function(a){(0,_.S)(this,a,0,-1,h3c,null)};_.O(i3c,_.L);i3c.prototype.Cb=function(){return _.C(this,1)};i3c.prototype.Ac=function(a){return _.A(this,1,a)};var j3c=[2],$N=function(a){(0,_.S)(this,a,0,-1,j3c,null)};_.O($N,_.L);$N.prototype.Cb=function(){return _.C(this,1)};$N.prototype.Ac=function(a){return _.A(this,1,a)};$N.prototype.O=function(){return _.Lk(this,YN,2)};var k3c=function(a,b){return _.kb(a,2,b)};$N.prototype.Dj=function(){return _.C(this,3)};
var l3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l3c,_.L);l3c.prototype.Cb=function(){return _.C(this,1)};l3c.prototype.Ac=function(a){return _.A(this,1,a)};l3c.prototype.n8=function(){return _.D(this,_.Cl,2)};m3c=function(a,b){return _.y(a,2,b)};n3c={0:"UNSPECIFIED_FEEDBACK",1:"IMPLICIT_REJECT",2:"NOT_HELPFUL_RIGHT_NOW"};o3c=function(a,b){return new _.jPc(_.kPc.bound(a,b,void 0,void 0))};
p3c=function(){var a=new _.ri,b=_.wPc().deleteDatabase("GoogleDriveDs");b.onsuccess=function(){a.callback()};b.onerror=function(c){a.Sd(_.PK(c.target,"deleting database GoogleDriveDs"))};b.onblocked=function(){};return a};_.q3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.q3c,_.L);_.q3c.prototype.qp=function(){return _.C(this,1)};_.q3c.prototype.Md=function(){return _.C(this,2)};_.q3c.prototype.setSize=function(a){return _.A(this,2,a)};_.q3c.prototype.getUrl=function(){return _.C(this,3)};
_.r3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.r3c,_.L);_.r3c.prototype.getType=function(){return _.C(this,1)};s3c=[2,3];_.t3c=function(a){(0,_.S)(this,a,0,-1,s3c,null)};_.O(_.t3c,_.L);u3c=[4,5,6,17,18,24];_.aO=function(a){(0,_.S)(this,a,0,-1,u3c,null)};_.O(_.aO,_.L);_.aO.prototype.getId=function(){return _.C(this,1)};_.aO.prototype.Pb=function(a){return _.A(this,1,a)};_.aO.prototype.getName=function(){return _.C(this,2)};_.aO.prototype.hd=function(a){return _.A(this,2,a)};
var v3c=function(a,b){return _.A(a,4,b||[])},w3c=function(a,b){return _.A(a,5,b||[])};_.aO.prototype.ZO=function(){return _.C(this,8)};_.aO.prototype.getType=function(){return _.C(this,23)};_.aO.prototype.Vl=function(){return _.H(this,33)};var x3c=[3],bO=function(a){(0,_.S)(this,a,0,-1,x3c,null)};_.O(bO,_.L);bO.prototype.Eo=function(){return _.C(this,1)};var y3c=function(a,b){return _.A(a,1,b)};bO.prototype.getTitle=function(){return _.C(this,2)};
bO.prototype.setTitle=function(a){return _.A(this,2,a)};bO.prototype.Dd=function(){return _.Lk(this,_.Cl,3)};var z3c=function(a,b){return _.kb(a,3,b)};bO.prototype.Pg=function(a,b){return _.Rk(this,3,a,_.Cl,b)};bO.prototype.V=function(){return _.C(this,4)};var A3c=function(a,b){return _.A(a,4,b)};bO.prototype.O=function(){return _.D(this,_.ol,5)};var B3c=function(a,b){return _.y(a,5,b)},NZc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(NZc,_.L);
var C3c=[2],cO=function(a){(0,_.S)(this,a,0,-1,C3c,null)};_.O(cO,_.L);cO.prototype.Cb=function(){return _.C(this,1)};cO.prototype.Ac=function(a){return _.A(this,1,a)};cO.prototype.jk=function(){return _.Lk(this,bO,2)};var D3c=function(a,b){return _.kb(a,2,b)};cO.prototype.xf=function(){return _.C(this,4)};E3c=function(a,b){return _.A(a,4,b)};_.$M=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.$M,_.L);_.g=_.$M.prototype;_.g.Cb=function(){return _.C(this,1)};
_.g.Ac=function(a){return _.A(this,1,a)};_.g.XR=function(){return _.zk(this,2,_.AA)};_.g.Dj=function(){return _.C(this,3)};_.g.Ue=function(){return _.C(this,5)};_.g.Ci=function(a){return _.A(this,5,a)};var F3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(F3c,_.L);F3c.prototype.ag=function(){return _.G(this,1)};F3c.prototype.Tk=function(a){return _.Hk(this,1,a)};F3c.prototype.getUrl=function(){return _.G(this,2)};_.G3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.G3c,_.L);
_.G3c.prototype.getType=function(){return _.vk(this,1,0)};_.G3c.prototype.getContext=function(){return _.D(this,F3c,2)};_.G3c.prototype.Rj=function(a){return _.y(this,2,a)};H3c=[1];I3c=[2];_.J3c=function(a){(0,_.S)(this,a,0,-1,I3c,null)};_.O(_.J3c,_.L);_.J3c.prototype.getLabel=function(){return _.G(this,1)};_.J3c.prototype.Ad=function(a){return _.Hk(this,1,a)};_.K3c=function(a){(0,_.S)(this,a,0,-1,H3c,null)};_.O(_.K3c,_.L);_.L3c=[[2,3,4]];_.dO=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.dO,_.L);_.dO.prototype.Le=function(){return _.G(this,3)};_.dO.prototype.Vm=function(a){return _.Hk(this,4,a)};_.M3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.M3c,_.L);_.N3c=function(a){(0,_.S)(this,a,0,-1,null,_.L3c)};_.O(_.N3c,_.L);var O3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(O3c,_.L);P3c=[3,5];_.eO=[[8,9,10,11,12,13,14]];Q3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Q3c,_.L);var R3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(R3c,_.L);
_.S3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.S3c,_.L);_.T3c=function(a){(0,_.S)(this,a,0,-1,P3c,_.eO)};_.O(_.T3c,_.L);_.T3c.prototype.Cb=function(){return _.vk(this,6,0)};_.T3c.prototype.Ac=function(a){return _.Ik(this,6,a)};var U3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(U3c,_.L);var V3c=[1],W3c=function(a){(0,_.S)(this,a,0,-1,V3c,null)};_.O(W3c,_.L);var X3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(X3c,_.L);var Y3c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Y3c,_.L);
Z3c=[7];_.$3c=[[1,2,3]];_.a4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.a4c,_.L);_.b4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.b4c,_.L);_.c4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.c4c,_.L);_.d4c=function(a){(0,_.S)(this,a,0,-1,Z3c,_.$3c)};_.O(_.d4c,_.L);_.e4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.e4c,_.L);_.e4c.prototype.getName=function(){return _.G(this,1)};_.e4c.prototype.hd=function(a){return _.Hk(this,1,a)};
var f4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(f4c,_.L);f4c.prototype.getName=function(){return _.G(this,1)};f4c.prototype.hd=function(a){return _.Hk(this,1,a)};f4c.prototype.getTitle=function(){return _.G(this,2)};f4c.prototype.setTitle=function(a){return _.Hk(this,2,a)};var g4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(g4c,_.L);g4c.prototype.getName=function(){return _.G(this,1)};g4c.prototype.hd=function(a){return _.Hk(this,1,a)};
g4c.prototype.getTitle=function(){return _.G(this,2)};g4c.prototype.setTitle=function(a){return _.Hk(this,2,a)};var h4c=[[1,4]],i4c=function(a){(0,_.S)(this,a,0,-1,null,h4c)};_.O(i4c,_.L);i4c.prototype.getUser=function(){return _.D(this,_.N3c,1)};i4c.prototype.n8=function(){return _.D(this,g4c,2)};var j4c=[[8,9,10]],k4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(k4c,_.L);var l4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(l4c,_.L);_.m4c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.m4c,_.L);_.m4c.prototype.getType=function(){return _.vk(this,6,0)};_.n4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.n4c,_.L);_.o4c=function(a){(0,_.S)(this,a,0,-1,null,j4c)};_.O(_.o4c,_.L);_.g=_.o4c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.hd=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.getFile=function(){return _.D(this,k4c,3)};_.g.yi=function(){return _.wk(this,5)};
_.g.getMimeType=function(){return _.G(this,6)};_.g.pP=function(){return _.D(this,i4c,7)};p4c=[[8,9,10]];_.q4c=function(a){(0,_.S)(this,a,0,-1,null,p4c)};_.O(_.q4c,_.L);_.g=_.q4c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.hd=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.getFile=function(){return _.D(this,k4c,3)};r4c=[[1,3]];_.s4c=function(a){(0,_.S)(this,a,0,-1,null,r4c)};_.O(_.s4c,_.L);
_.s4c.prototype.n8=function(){return _.D(this,g4c,2)};_.t4c=[[1,2,3]];u4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(u4c,_.L);var v4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(v4c,_.L);_.w4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.w4c,_.L);_.x4c=function(a){(0,_.S)(this,a,0,-1,null,_.t4c)};_.O(_.x4c,_.L);y4c=[2,3];_.z4c=function(a){(0,_.S)(this,a,0,-1,y4c,null)};_.O(_.z4c,_.L);_.z4c.prototype.getType=function(){return _.vk(this,1,0)};
_.A4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.A4c,_.L);_.A4c.prototype.getType=function(){return _.vk(this,1,0)};var B4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(B4c,_.L);B4c.prototype.getType=function(){return _.vk(this,1,0)};var C4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(C4c,_.L);_.D4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.D4c,_.L);var E4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(E4c,_.L);F4c=[1,2,4];_.G4c=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.G4c,_.L);_.H4c=function(a){(0,_.S)(this,a,0,-1,F4c,null)};_.O(_.H4c,_.L);_.fO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.fO,_.L);_.fO.prototype.getEmail=function(){return _.G(this,1)};_.fO.prototype.getTitle=function(){return _.G(this,2)};_.fO.prototype.setTitle=function(a){return _.Hk(this,2,a)};_.gO=[[2,3,4,5]];_.hO=function(a){(0,_.S)(this,a,0,-1,null,_.gO)};_.O(_.hO,_.L);_.hO.prototype.If=function(){return _.vk(this,1,0)};_.hO.prototype.getUser=function(){return _.D(this,_.N3c,2)};
var I4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(I4c,_.L);J4c=[1,2,3,4];_.K4c=function(a){(0,_.S)(this,a,0,-1,J4c,null)};_.O(_.K4c,_.L);_.L4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.L4c,_.L);_.M4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.M4c,_.L);_.N4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.N4c,_.L);_.O4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.O4c,_.L);_.O4c.prototype.getType=function(){return _.vk(this,1,0)};P4c=[1];
_.Q4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Q4c,_.L);_.Q4c.prototype.getFeature=function(){return _.vk(this,1,0)};_.R4c=function(a){(0,_.S)(this,a,0,-1,P4c,null)};_.O(_.R4c,_.L);var S4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(S4c,_.L);var T4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(T4c,_.L);var U4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(U4c,_.L);U4c.prototype.getType=function(){return _.vk(this,1,0)};_.iO=[[1,2,3,4,5,6,7,8,9,10,11,12,13,18,15,16,19,20,21]];
_.jO=function(a){(0,_.S)(this,a,0,-1,null,_.iO)};_.O(_.jO,_.L);_.jO.prototype.Ey=function(){return _.D(this,U4c,10)};_.V4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.V4c,_.L);var W4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(W4c,_.L);_.X4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.X4c,_.L);_.Y4c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Y4c,_.L);_.Y4c.prototype.getType=function(){return _.vk(this,1,0)};_.Z4c=[[1,2,3,4,5]];_.$4c=function(a){(0,_.S)(this,a,0,-1,null,_.Z4c)};
_.O(_.$4c,_.L);_.$4c.prototype.getUser=function(){return _.D(this,_.N3c,1)};var a5c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(a5c,_.L);a5c.prototype.getType=function(){return _.vk(this,2,0)};a5c.prototype.ih=function(){return _.G(this,1)};_.b5c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.b5c,_.L);_.g=_.b5c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.hd=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};
_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.Na=function(){return _.D(this,_.o4c,3)};_.c5c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.c5c,_.L);_.c5c.prototype.getParent=function(){return _.D(this,_.o4c,4)};_.c5c.prototype.Dg=function(a){return _.y(this,4,a)};var d5c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(d5c,_.L);_.g=d5c.prototype;_.g.getName=function(){return _.G(this,1)};_.g.hd=function(a){return _.Hk(this,1,a)};_.g.getTitle=function(){return _.G(this,2)};
_.g.setTitle=function(a){return _.Hk(this,2,a)};_.g.Na=function(){return _.D(this,_.o4c,3)};_.e5c=[[1,5,3]];_.f5c=function(a){(0,_.S)(this,a,0,-1,null,_.e5c)};_.O(_.f5c,_.L);_.f5c.prototype.n8=function(){return _.D(this,d5c,2)};_.kO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.kO,_.L);_.kO.prototype.pW=function(a){_.y(this,1,a)};_.kO.prototype.Gq=function(){return _.D(this,_.kx,2)};_.kO.prototype.WD=function(a){_.y(this,2,a)};g5c=[[5,6]];_.h5c=function(a){(0,_.S)(this,a,0,-1,null,g5c)};
_.O(_.h5c,_.L);_.h5c.prototype.zh=function(){return _.D(this,a5c,2)};_.h5c.prototype.O=function(a){_.Nk(this,5,g5c[0],a)};i5c=[3,4,5];j5c=[[6,7]];_.k5c=function(a){(0,_.S)(this,a,0,-1,i5c,j5c)};_.O(_.k5c,_.L);_.k5c.prototype.O=function(a){_.Nk(this,6,j5c[0],a)};var l5c=[1],HN=[[1,2,3,4,5,6,7]],oZc=function(a){(0,_.S)(this,a,0,-1,null,HN)};_.O(oZc,_.L);var pZc=function(a){(0,_.S)(this,a,0,-1,l5c,null)};_.O(pZc,_.L);var lO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(lO,_.L);
lO.prototype.getQuery=function(){return _.D(this,_.Oe,1,1)};var m5c=function(a,b){return _.y(a,1,b)};lO.prototype.Tn=function(){return _.C(this,4)};var n5c=function(a,b){return _.y(a,5,b)},o5c=[1,2,5,7,9,10,12],mO=function(a){(0,_.S)(this,a,0,-1,o5c,null)};_.O(mO,_.L);mO.prototype.Dd=function(){return _.Lk(this,_.Cl,1)};var p5c=function(a,b){return _.kb(a,1,b)};mO.prototype.Pg=function(a,b){return _.Rk(this,1,a,_.Cl,b)};mO.prototype.nL=function(){return _.Lk(this,_.ml,2)};
mO.prototype.Fea=function(a){_.Rk(this,2,a,_.ml,void 0)};var q5c=function(a,b){return _.A(a,3,b)};mO.prototype.mn=function(){return _.C(this,4)};mO.prototype.yt=function(a){return _.A(this,4,a)};var r5c=function(a,b){return _.kb(a,5,b)},s5c=function(a,b){return _.A(a,6,b)};mO.prototype.yg=function(){return _.D(this,_.vB,8)};
var t5c=function(a,b){return _.A(a,12,b||[])},u5c=function(a,b){return _.A(a,13,b)},v5c={RPb:0,QPb:1,zVb:2,C0b:3,F0b:4},FN=[[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]],mZc=function(a){(0,_.S)(this,a,0,-1,null,FN)};_.O(mZc,_.L);var tZc=[[1,2]],sZc=function(a){(0,_.S)(this,a,0,-1,null,tZc)};_.O(sZc,_.L);var wZc=[[1,2,3]],vZc=function(a){(0,_.S)(this,a,0,-1,null,wZc)};_.O(vZc,_.L);var w5c=[1],x5c=function(a){(0,_.S)(this,a,0,-1,w5c,null)};_.O(x5c,_.L);x5c.prototype.Yw=function(){return _.G(this,2)};
var y5c=function(a,b){return 1<a?2===b:a===b},z5c=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("Ce");},nO=function(a,b,c,d){this.item=a;this.count=void 0===b?0:b;this.H=void 0===c?1:c;this.O=d};_.g=nO.prototype;_.g.clone=function(){return new nO(this.item.clone(),this.count,this.H,this.O)};_.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};_.g.WM=function(a){this.H=a};_.g.equals=function(a){return this.count===a.$b()&&this.H===a.H&&this.O===a.O&&_.Tk(this.item,a.getItem())};_.aN=function(a,b,c){this.response=a;this.Ke=void 0===b?0:b;this.QY=void 0===c?null:c};_.VRc=function(a){this.H=a};A5c=function(){};B5c=function(a){this.H=a};_.WRc=function(a){this.H=a};YZc=function(a,b,c,d,e,f,h,k){this.status=a;this.O=b;this.V=c;this.ka=d;this.ha=e;this.Ry=f;this.H=h;this.W=k};
_.cN=function(a,b,c){this.response=a;this.Ke=void 0===b?0:b;this.QY=void 0===c?null:c};_.cSc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};C5c=function(a){this.pageToken=void 0===a?"":a};_.fSc=function(a,b){this.request=a;this.pageToken=void 0===b?"":b};_.dN=function(a,b,c){this.response=a;this.Ke=void 0===b?0:b;this.QY=void 0===c?null:c};_.eN=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ke=void 0===d?0:d};
_.bN=function(a,b,c,d){this.response=a;this.pageToken=void 0===b?"":b;this.H=void 0===c?!1:c;this.Ke=void 0===d?0:d};D5c=function(a){_.bN.call(this,a,void 0,void 0,void 0);this.i0a=new _.ro};_.N(D5c,_.bN);
var E5c=function(a,b){this.response=a;this.pageToken=void 0===b?"":b},YYc=function(){var a=_.q.Intl;return!(!a||!a.Collator)},F5c=function(a,b){return YYc()?(new _.q.Intl.Collator([a||"en"],b||{})).compare:function(c,d){return c.localeCompare(d)}},G5c=function(a){return[].concat(_.Wc(new Set(a.map(function(b){return _.zQc.get(b)}).filter(function(b){return b})))).join(",")},oO=function(a,b,c){b=void 0===b?[]:b;c=void 0===c?!1:c;b=[].concat(_.Wc(b));b=G5c(b);var d=_.XK(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":
_.E(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":"kind,id,name,colorRgb,backgroundImageLink,creator,permissionsSummary,trusted,primaryDomainName,organizationDisplayName,restrictions,backgroundImageGridViewLink,backgroundImageListViewLink,hidden";
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";_.E(a,77,!1)&&(c+=",canChangeCategoryReferences");
_.E(a,93,!1)&&(c+=",canRemoveSecureLinkUpdateForAllFiles",d+=",removeSecureLinkUpdateForAllFiles");return(b.length?d+","+b:d)+",capabilities("+c+")"},H5c=function(a,b){b=void 0===b?[]:b;return"kind,nextPageToken,items("+oO(a,b,!1)+")"},pO=function(a){return a instanceof _.Cl?null!=a.getId()&&a.getId()==a.zc():null!=a.Gc()&&a.Gc()==a.zc()},I5c=function(a,b,c){c=void 0===c?[]:c;var d=_.Uk(a),e=b.jh();null!=e&&JYc(a,_.Uk(e));if((e=b.getCapabilities())&&null!=_.H(e,13)){var f=a.getCapabilities()||new _.wl,
h=_.H(e,13);_.A(f,13,h);_.BM(a,f)}e&&null!=_.H(e,18)&&(f=a.getCapabilities()||new _.wl,e=_.H(e,18),_.A(f,18,e),_.BM(a,f));AN(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.jh()&&AN(a,d,c)},J5c=function(a,b,c){c=void 0===c?[]:c;if(!b||!pO(a)&&!pO(b))return a;if(2==DN(a)){c=_.C(a,82);var d=_.Uk(b);I5c(d,a);_.gTc(d,DN(b));_.lL(d,c);return d}a=_.Uk(a);I5c(a,b,c);return a},K5c=function(a){return(a=a?a.jh():null)&&a.Vl()||!1},L5c=function(a,
b){this.V=a;this.items={};this.fields=new Set;this.H={};this.O=new Set;this.W=new Set(b)},M5c=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]={}})},O5c=function(a,b,c){b.every(function(d){return pO(d)})?N5c(b,c,a.H,a.O):b.every(function(d){return!pO(d)})&&N5c(b,c,a.items,a.fields)},N5c=function(a,b,c,d){var e=_.JRc(b,[].concat(_.Wc(d)));0!==e.length&&a.forEach(function(f){e.forEach(function(h){var k=
c[h][f.getId()];k&&AN(f,k,[h])})})};L5c.prototype.update=function(a,b,c){b&&pO(b)?P5c(a,b,this.H,this.O,c):P5c(a,b,this.items,this.fields,c)};L5c.prototype.IH=function(a){var b=this;_.bg(this.items,function(c,d){_.jg(b.items[d],a)});_.bg(this.H,function(c,d){_.jg(b.H[d],a)})};var P5c=function(a,b,c,d,e){_.bg(c,function(f,h){h=Number(h);if(e.includes(h))if(f[a]&&!b)_.jg(f,a);else if(b&&GYc(b,[h])){var k=new _.Cl;k.Pb(b.getId());AN(k,b,[h]);f[a]=k}});b&&CYc(b,[].concat(_.Wc(d)))};
L5c.prototype.clear=function(){var a=this;_.bg(this.items,function(b,c){a.items[c]={}});_.bg(this.H,function(b,c){a.H[c]={}})};L5c.prototype.log=function(a){this.V.info("drive.ds.sync.cache.FieldsCache",a)};var Q5c=function(a,b,c){var d=this;this.kv=b;this.bw=c;this.Od=new Map;this.rootId="";a.addCallback(function(e){d.rootId=e})};_.g=Q5c.prototype;_.g.py=function(){return this.Od};
_.g.Zl=function(a){var b=new Map;a=_.m(a.Wl());for(var c=a.next();!c.done;c=a.next())c=c.value,this.Od.has(c)&&b.set(c,this.Od.get(c).getItem());return b};_.g.query=function(a,b){var c=[];if(R5c(a)){for(var d=_.m(this.Od.values()),e=d.next();!e.done;e=d.next())e=e.value,S5c(this.kv,a,e.getItem())&&(void 0===b||y5c(e.H,b))&&c.push(e);this.bw.sort(a,c)}return c};_.g.get=function(a){return this.Od.get(a)};
_.g.getAll=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())(c=this.Od.get(c.value))&&b.push(c);return b};_.g.update=function(a){a.H?(a.H.count++,a.O&&a.O.count--,T5c(this,a.H)?(this.Od.delete(a.id),a.H.count--):this.Od.set(a.id,a.H)):(this.Od.delete(a.id),a.O.count--)};var T5c=function(a,b){return 1<b.$b()||y5c(b.H,2)||b.getItem().YG()||bZc(b.getItem())?!1:"root"!==b.getId()&&b.getId()!==a.rootId};
Q5c.prototype.IH=function(){for(var a=_.m(this.Od.values()),b=a.next();!b.done;b=a.next())b=b.value,T5c(this,b)&&(this.Od.delete(b.getId()),b.count--)};var U5c=function(a,b,c,d){this.Ig=a;this.W=b;this.O=c;this.V=d},OZc=function(a,b){return(b=a.O.get(b))?(b=b.clone(),O5c(a.V,[b.getItem()],G1c(a.Ig)),b):null};U5c.prototype.H=function(a){return(a=OZc(this,a))?a.getItem():null};
var V5c=function(a,b){var c={};b.forEach(function(d){var e=OZc(a,d);e&&(c[d]=e)});return c},W5c=function(a,b){return _.dg(V5c(a,b),function(c){return c.getItem()})},X5c=function(a,b){b=qO(a.W,b);return a.O.query(b).map(function(c){return c.clone()})};U5c.prototype.query=function(a){return X5c(this,a).map(function(b){return b.getItem()})};U5c.prototype.Md=function(){return this.O.py().size};
var Y5c=function(a){var b=new Set;a=_.m(a.O.py().values());for(var c=a.next();!c.done;c=a.next()){c=c.value.getItem();for(var d=_.m(_.Dl(c)),e=d.next();!e.done;e=d.next())e=e.value,b.add(e.getId()||_.IF(e));(d=c.Il())&&b.add(d.getId()||_.IF(d));(d=c.Nu())&&b.add(d.getId()||_.IF(d));(d=c.Yp())&&b.add(d.getId()||_.IF(d));(c=c.KB())&&b.add(c.getId()||_.IF(c))}return b.size},Z5c=function(a){var b=new _.aq;_.UM(b,"hidden",a.Vl());a=_.H(a,6);null!=a&&_.UM(b,"canRemoveSecureLinkUpdateForAllFiles",a);return b.toString()},
$5c=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}},a6c=function(a){var b=YYc(),c={};b&&(c.numeric=b);this.H=F5c(a,c)};a6c.prototype.compare=function(a,b,c){b=b6c(b);c=b6c(c);a=a.Lc();var d=$5c(a);if(a&&d){d=c6c(this,a);var e=4===a.getType()?this.H:_.Ga;return d6c(a,d,e,b,c)}return _.Ga(b.getId(),c.getId())};
a6c.prototype.sort=function(a,b,c){a=a.Lc();var d=$5c(a);a&&d&&(d=c6c(this,a),d=e6c(b,d),_.Ia(b,f6c(this,a,d)));c&&0<c&&_.Ca(b,c,b.length-c)};
var b6c=function(a){return a instanceof _.Cl?a:a.getItem()},c6c=function(a,b){b=$5c(b);return _.v(a.O,a,b,_.Ga)},e6c=function(a,b){var c={};a.forEach(function(d){d=b6c(d);var e=d.getId();c[e]=b(d)});return c},f6c=function(a,b,c){return function(d,e){var f=4===b.getType()?a.H:_.Ga;d=b6c(d);e=b6c(e);return d6c(b,function(h){return c[h.getId()]},f,d,e)}},d6c=function(a,b,c,d,e){var f=1===_.vk(a,2,1)?1:-1;if(_.H(a,3)){a=CN(d,!0);var h=CN(e,!0);a=a===h?0:a?-1:1}else a=0;return a||f*(c(b(d),b(e))||_.Ga(d.getId(),
e.getId()))};a6c.prototype.O=function(a,b,c){for(var d=g6c(a[0],c),e=1;e<a.length;e++){var f=g6c(a[e],c);d=1===b(f,d)?f:d}return d};
var g6c=function(a,b){switch(a){case 21:return b.getId()||"";case 3:return b.getMimeType()||"";case 4:return b.wz()||!1;case 12:return b.Vx()||0;case 11:return b.Uz()||0;case 10:return b.Np()||0;case 2:return(b.getTitle()||"").toLowerCase();case 25:return b.ax()||0;case 57:return _.C(b,62)||0;case 32:return b.Kt()||0;case 9:return b.yB()||0;case 67:return b.bI()||0;case 98:return b.Zs()||0;default:return""}},h6c=function(a,b){this.fields=a;this.rootId="";this.fields.sort();this.H=b;this.xq=_.RK(_.SK(b));
a=_.hL(b);this.V=!(!a||!_.E(a,1,!1));this.O=!(!a||!_.E(a,8,!1))};h6c.prototype.yt=function(a){this.rootId=a||""};
var qO=function(a,b,c){b=_.Uk(b);"root"===b.getId()&&b.Pb(a.rootId);_.FM(b).filter(function(d){return"root"===d.Ya()}).forEach(function(d){return d.Kb(a.rootId)});_.Ve(b,_.EM(b).map(function(d){d.Kb(d.Ya().toLowerCase());return d}));c&&_.Yl(b,a.fields);b.O().sort();return b},rO=function(a,b,c){if(b instanceof _.Oe){b=qO(a,b);var d=_.EUc(b)}else if(b instanceof _.fp)d=b.Wl().sort().join(","),_.E(b,5,!1)&&(d+="|cachedOnly");else{if(b instanceof _.LK)return d=Z5c(b),d+"|tdList";if(b instanceof _.op)return d=
b.Wl().sort().join(","),b.O().length&&(d+="|"+G5c(b.O())),d+"|tdMap";throw Error("Ge");}return 3===c?d:d+"|"+i6c(a,b.O(),2===c)},i6c=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(_.Wc(e)).filter(function(h){return f.has(h)}).forEach(function(h){e.delete(h);f.delete(h)});f.size&&(d=d+" - "+_.uL({fields:[].concat(_.Wc(f)),xq:a.xq}));e.size&&(d=d+" + "+_.uL({fields:[].concat(_.Wc(e)),xq:a.xq}));
return d};h6c.prototype.equals=function(a,b,c){var d;c&&(d=3);return rO(this,a,d)===rO(this,b,d)};
var j6c=function(a){if(!a.Wl().every(function(b){return!_.ld(b)}))throw new _.Vb("Invalid ids for FindByIdsRequest");},l6c=function(a,b,c){if(_.QL(b))throw new _.Vb("Did not expect a PeoplePredict request. Use peoplePredictQuery() for PeoplePredict requests. ");k6c(a,b,c)},k6c=function(a,b,c){var d;a.O||(d=_.qL(3));if(b.getId())throw new _.Vb("Use findByIds() for find by id queries.",d?d:_.qL(3));if(!b.ki()||0>=b.ki())throw new _.Vb("A positive limit is required on an ItemQueryRequest.",d?d:_.qL(3));
_.Jd(b,33);a.V&&c||(d=a.fields.slice(),c&&(d=d.concat(c)),m6c(a,d,b.O()));if(c=(c=b.Lc())&&$5c(c))d=b.O().length?b.O():a.fields,m6c(a,d,c);if(_.PL(b)){if(a.xq)throw new _.Vb("User must be authenticated for a Quick Access request.");if(!n6c(a)&&20<b.ki())throw new _.Vb("Limit must be in the range [1, 20].");c=2===_.HM(b);d=_.Jd(b,33).length;if(c&&1!==d||d&&!c)throw new _.Vb("A Team Drive Quick Access request must specify the Team Drive corpora and a single Team Drive id.");c=_.Dk(_.Bk(_.Bk(_.Bk(_.RG(_.Bk(_.Ck(_.RG(b.clone(),
1),30),32),33),45),47),48),6);d=new _.Oe;if(!_.Tk(c,d))throw new _.Vb("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: "+a2c(d,c));}if(_.RL(b)){if(a.xq)throw new _.Vb("User must be authenticated for a DrivePriority request.");if(2===_.HM(b))throw new _.Vb("Team Drive corpora is not valid for a Drive Priority request.");a=_.Bk(_.Bk(_.Bk(_.Ck(_.RG(b.clone(),1),30),32),45),52);
b=new _.Oe;if(!_.Tk(a,b))throw new _.Vb("Some fields specified are not valid for a Drive Priority request. Valid: field, request_descriptor, limit, corpora and is_drive_priority_request. Extra: "+a2c(b,a));}},o6c=function(a,b,c){if(!_.QL(b))throw new _.Vb("Expected a PeoplePredict request.");k6c(a,b,c);if(a.xq)throw new _.Vb("User must be authenticated for a People Predict request.");if(2===_.HM(b))throw new _.Vb("Team Drive corpora is not valid for a People Predict request.");a=_.Bk(_.Bk(_.Bk(_.Ck(_.RG(b.clone(),
1),30),32),45),49);b=new _.Oe;if(!_.Tk(a,b))throw new _.Vb("Some fields specified are not valid for a People Predict request. Valid: field, request_descriptor, limit, corpora and is_people_predict_request. Extra: "+a2c(b,a));},m6c=function(a,b,c){var d;a.O||(d=_.qL(3));if(!HYc(b,c,!0)){var e=_.uL({fields:c,xq:a.xq}),f=_.uL({fields:b,xq:a.xq});a=_.uL({fields:IYc(c,b),xq:a.xq});throw new _.Vb("Requested field was not previously specified. Needed "+e+", but had "+(f+". Missing: "+a+"."),d?d:_.qL(3));
}},n6c=function(a){return 200<=_.JM(a.H)&&300>_.JM(a.H)},p6c=function(a){var b=new Set;_.EM(a).forEach(function(c){switch(_.OUa(c.Ya())){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("FORM_ALL")}});return[].concat(_.Wc(b))},q6c=function(a){switch(_.JM(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"}},r6c=function(a){_.P.call(this);this.H=a};_.O(r6c,_.P);_.g=r6c.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.GM=function(a){this.H.addCallback(function(b){b.GM(a)})};_.g.send=function(a,b){this.H.addCallback(function(c){c.send(a,b)})};_.g.Wa=function(){this.cancel();r6c.nb.Wa.call(this)};var hZc=function(a){_.Qx.call(this);this.H=a;this.V=_.de(this.H,"message",this.Mkb,!1,this)};_.O(hZc,_.Qx);_.g=hZc.prototype;_.g.zd=null;
_.g.send=function(a,b){var c=[];b=this.Cva(c,b);a={serviceName:a,payload:b,"--goog.messaging.PortChannel":!0};_.GQc&&(a=(0,_.Ti)(a));this.H.postMessage(a,c)};_.g.Mkb=function(a){a=a.xe;var b=a.data;if(_.GQc)try{b=JSON.parse(b)}catch(e){return}if(_.Da(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.Sya(a.ports||[],b),d.JBa),null!=b&&d.callback(b))}};
_.g.Cva=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)?_.jb(b,(0,_.v)(this.Cva,this,a)):b&&b.constructor==Object?_.dg(b,function(c,d){c=this.Cva(a,c);return"_port"==d?{type:"escaped",val:c}:c},this):b};
_.g.Sya=function(a,b){return Array.isArray(b)?_.jb(b,(0,_.v)(this.Sya,this,a)):b&&b.constructor==Object?b._port&&"real"==b._port.type?a[b._port.index]:_.dg(b,function(c,d){return this.Sya(a,"_port"==d?c.val:c)},this):b};_.g.Wa=function(){_.Ni(this.V);"[object MessagePort]"==Object.prototype.toString.call(this.H)?this.H.close():"[object Worker]"==Object.prototype.toString.call(this.H)&&this.H.terminate();delete this.H;hZc.nb.Wa.call(this)};
var jZc=function(a,b){if("*"==b)return new r6c(_.zi(Error("He")));var c=new _.Pi(50),d=_.Wa(_.aa,c),e=new _.ri(d);_.ui(e,d);c.start();_.de(c,"tick",function(){var f=new MessageChannel,h=function(){f.port1.removeEventListener("message",h,!0);c.isDisposed()||e.callback(new hZc(f.port1))};f.port1.start();f.port1.addEventListener("message",h,!0);a.postMessage({"--goog.messaging.PortChannel":!0},b,[f.port2])});return new r6c(e)},s6c=function(a){_.P.call(this);this.H=new _.QOc(a);this.V={};this.O=_.SOc(this.H,
"private");this.W=_.SOc(this.H,"public");this.O.registerService("mics",(0,_.v)(this.gib,this),!0)};_.O(s6c,_.P);_.g=s6c.prototype;_.g.aBb=0;_.g.Wa=function(){_.aa(this.H);delete this.H;delete this.W;delete this.O};_.g.send=function(a,b,c){var d=this.aBb++;this.V[d]=c;c={};c.signature=d;c.data=b;this.W.send(a,c)};_.g.gib=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,_.v)(this.fib,this,b),!0)};
_.g.fib=function(a,b){a=a(b.data);var c=b.signature;_.ji(a).then((0,_.v)(function(d){var e={};e.data=d;e.signature=c;this.O&&this.O.send("mics",e)},this))};var EN=function(a,b,c){_.P.call(this);this.W=c;this.started=!1;this.V=new _.QOc(a);this.La(this.V);this.H=new s6c(_.SOc(this.V,"direct"));this.La(this.H);a=_.SOc(this.V,"passthrough");this.O=b?a:new s6c(a);this.La(this.O);this.KU=b};_.N(EN,_.P);EN.prototype.registerService=function(a,b){this.H.registerService(a,b)};
EN.prototype.send=function(a,b,c){this.H.send(a,b||{},c||_.vf)};var sO=function(a,b,c){if(a.KU)throw Error("Ie");a.O.registerService(b,c,!0)},tO=function(a,b,c,d){if(a.KU)throw Error("Je");a.O.send(b,c||{},d||_.vf)};EN.prototype.start=function(){this.started||(this.started=!0);if(this.KU)throw Error("Ke");};var eZc=[],t6c=function(){_.Qx.call(this);this.H=null};_.N(t6c,_.Qx);t6c.prototype.send=function(a,b){_.w2a(this.H,a,b)};
kZc=function(){this.O=new t6c;this.H=new t6c;var a=this.O;a.H||(a.H=this.H);a=this.H;a.H||(a.H=this.O)};u6c=function(a,b,c,d){this.clientId=a;this.method=b;this.args=c;this.requestId=d||null;this.Xb=null};v6c=function(a,b){b=void 0===b?!1:b;null==a.Xb&&(a.Xb=b)&&dZc(a.args);return{c:a.clientId,m:a.method,a:a.args,req:a.requestId,s:a.Xb}};w6c=function(a){var b=new u6c(a.c,a.m,a.a,a.req);b.Xb=a.s;return b};x6c=function(a,b,c){this.data=b?void 0:a;this.error=b;this.H=c;this.Xb=null};
y6c=function(a,b){b=void 0===b?!1:b;null==a.Xb&&a.data&&(a.Xb=b)&&dZc(a.data);return{d:a.data,err:a.error&&b?a.error.Xb():a.error,uid:a.H,s:b}};z6c=function(a){var b=a.s,c=a.err&&b?new _.Ub(JSON.parse(a.err)):a.err;a=new x6c(c?void 0:a.d,c,a.uid);c||(a.Xb=b);return a};iZc=function(a,b,c,d,e){this.channel=a;this.H=b;this.endpoint=c;this.V=d;this.O=e};A6c={LOb:0,dPb:1,LUb:3,R1b:5,Ieb:6,0:"ACCOUNT",1:"APPS",3:"ITEMS",5:"USER_PREFS",6:"PEOPLE"};_.CL=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.CL,_.L);_.CL.prototype.ih=function(){return _.C(this,1)};_.CL.prototype.re=function(){return _.D(this,_.bf,3)};_.FL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.FL,_.L);_.FL.prototype.Gc=function(){return _.C(this,1)};_.FL.prototype.re=function(){return _.D(this,_.bf,3)};_.ML=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ML,_.L);_.ML.prototype.ih=function(){return _.C(this,1)};_.ML.prototype.re=function(){return _.D(this,_.bf,2)};_.NL=function(a){(0,_.S)(this,a,0,-1,null,null)};
_.O(_.NL,_.L);_.NL.prototype.ih=function(){return _.C(this,1)};_.NL.prototype.re=function(){return _.D(this,_.bf,2)};_.OL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.OL,_.L);_.g=_.OL.prototype;_.g.Gc=function(){return _.C(this,1)};_.g.If=function(){return _.C(this,2)};_.g.getType=function(){return _.C(this,3)};_.g.Ya=function(){return _.C(this,4)};_.g.Kb=function(a){return _.A(this,4,a)};_.g.qj=function(){return _.Bk(this,4)};_.g.oh=function(){return _.sk(this,4)};
_.g.re=function(){return _.D(this,_.bf,7)};_.VL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.VL,_.L);_.VL.prototype.Gc=function(){return _.C(this,1)};_.VL.prototype.re=function(){return _.D(this,_.bf,2)};_.VL.prototype.ki=function(){return _.wk(this,3,1E3)};_.VL.prototype.Th=function(a){return _.A(this,3,a)};_.YL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.YL,_.L);_.YL.prototype.re=function(){return _.D(this,_.bf,1)};
var B6c=function(){var a=new _.YL,b=_.cf(new _.bf,301);return _.y(a,1,b)};_.YL.prototype.zc=function(){return _.C(this,3)};_.dSc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.dSc,_.L);_.dSc.prototype.zc=function(){return _.C(this,1)};_.cM=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.cM,_.L);_.cM.prototype.ih=function(){return _.C(this,1)};_.cM.prototype.re=function(){return _.D(this,_.bf,4)};_.DL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.DL,_.L);
_.DL.prototype.getId=function(){return _.C(this,1)};_.DL.prototype.Pb=function(a){return _.A(this,1,a)};_.SL=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.SL,_.L);_.SL.prototype.getId=function(){return _.C(this,1)};_.SL.prototype.Pb=function(a){return _.A(this,1,a)};_.RRc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.RRc,_.L);
var C6c=function(a){return _.D(a,_.YK,3)||_.D(a,_.iM,4)||_.D(a,_.fN,5)||_.D(a,_.fM,6)||_.D(a,_.HL,7)||_.D(a,_.AL,8)||_.D(a,_.EL,9)||_.D(a,_.iL,10)},D6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(D6c,_.L);_.g=D6c.prototype;_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.By=function(){return _.C(this,3)};_.g.Je=function(){return _.C(this,4)};_.g.Di=function(a){return _.A(this,4,a)};var E6c=function(a){this.zd=a;this.H=new Map;this.O=this.zd.W};
E6c.prototype.create=function(a,b){if(0!=M1c(b)){var c=this.zd.H(106001);if(c){var d=M1c(b),e=QN(c);_.A(e,2,d);d=QN(c);e=null;if(b instanceof _.JF||b instanceof _.fp||b instanceof _.Oe||b instanceof _.TL||b instanceof _.mC||b instanceof _.op||b instanceof _.LK||b instanceof _.TK||b instanceof _.zA||b instanceof _.qp)e=b.re();e=e&&_.E(e,2,!1);_.A(d,7,"boolean"==typeof e?e:void 0);d=QN(c);b=b instanceof _.Oe?0<_.FM(b).length:void 0;_.A(d,8,b);this.H.set(a,c)}}};
var F6c=function(a,b,c){if(a=a.H.get(b))a=QN(a),_.A(a,5,c)},G6c=function(a,b,c){(a=a.H.get(b))&&_.H(QN(a),8)&&(a=QN(a),_.A(a,9,c))},H6c=function(a,b,c,d,e){var f=a.H.get(b);f&&(QN(f).Ac(c),QN(f).Ci(d),null!=e&&(c=QN(f),_.A(c,6,e)),f.ek(),a.H.delete(b))},I6c=function(a,b,c){var d=a.H.get(b);if(d){var e=a.O.Cb(c);c=N1c(c);if(1==e||2==c)e=_.XM(_.JQc,c),d=QN(d),d=3==e||8==e?!_.H(d,5):0!=e?_.eRc.has(e):null,H6c(a,b,1,e,d)}},J6c=function(a,b,c){var d=a.O.Cb(c);d=_.XM(_.IQc,d||22);var e=N1c(c);e=_.XM(_.JQc,
e);H6c(a,b,d,e,"undefined"!=typeof _.aN&&c instanceof _.aN||"undefined"!=typeof _.cN&&c instanceof _.cN||"undefined"!=typeof _.dN&&c instanceof _.dN?c.QY:null)},uO=function(a,b,c){c=void 0===c?3:c;var d=a.H.get(b);d&&(QN(d).Ac(c),d.ek(),a.H.delete(b))},vO=function(a,b){_.Fi.call(this,"Gb");this.error=a;this.H=b};_.N(vO,_.Fi);var K6c=[2,4],wO=function(a){(0,_.S)(this,a,0,-1,K6c,null)};_.O(wO,_.L);wO.prototype.Cb=function(){return _.C(this,1)};wO.prototype.Ac=function(a){return _.A(this,1,a)};
wO.prototype.Dj=function(){return _.C(this,3)};var L6c=[4,9],M6c=function(a){(0,_.S)(this,a,0,-1,L6c,null)};_.O(M6c,_.L);_.g=M6c.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.xSa=function(){return _.C(this,2)};_.g.iJa=function(){return _.C(this,3)};_.g.sob=function(){return _.Lk(this,_.bL,4)};var N6c={z1b:0,fXb:1,iXb:2,OTHER:3,gXb:4},O6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(O6c,_.L);O6c.prototype.getUrl=function(){return _.C(this,1)};
var xO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(xO,_.L);var P6c=function(a,b){return _.A(a,1,b)};xO.prototype.getName=function(){return _.C(this,2)};xO.prototype.hd=function(a){return _.A(this,2,a)};xO.prototype.getEmail=function(){return _.C(this,3)};xO.prototype.zp=function(){return _.sk(this,3)};var Q6c=[1],R6c=function(a){(0,_.S)(this,a,0,-1,Q6c,null)};_.O(R6c,_.L);var S6c=function(a,b){return _.kb(a,1,b)},T6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(T6c,_.L);_.g=T6c.prototype;
_.g.Gc=function(){return _.C(this,1)};_.g.Cb=function(){return _.C(this,2)};_.g.Ac=function(a){return _.A(this,2,a)};_.g.getError=function(){return _.D(this,_.Ub,3)};_.g.Re=function(a){return _.y(this,3,a)};_.g.In=function(){return _.sk(this,3)};var U6c=[2],yO=function(a){(0,_.S)(this,a,0,-1,U6c,null)};_.O(yO,_.L);yO.prototype.Cb=function(){return _.C(this,1)};yO.prototype.Ac=function(a){return _.A(this,1,a)};yO.prototype.jk=function(){return _.Lk(this,_.AA,2)};
var V6c=function(a,b){return _.kb(a,2,b)};yO.prototype.Dj=function(){return _.C(this,3)};var W6c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(W6c,_.L);var X6c=[1],Y6c=function(a){(0,_.S)(this,a,0,-1,X6c,null)};_.O(Y6c,_.L);var Z6c=function(a,b){return _.A(a,1,b||[])},$6c=function(a,b){this.O=a|0;this.H=b|0};$6c.prototype.equals=function(a){return this===a?!0:a instanceof $6c?this.O===a.O&&this.H===a.H:!1};$6c.prototype.Cc=function(){return 31*this.O+17*this.H|0};
var a7c=function(a,b){return new $6c(a,b)},b7c=function(a,b){b=~b;a?a=~a+1:b+=1;return a7c(a,b)},c7c=function(a){var b="-"===a[0];a=a.slice(b?3:2);return(b?b7c:a7c)(parseInt(a.slice(-8),16),parseInt(a.slice(-16,-8)||"",16))},d7c=function(){this.H=this.W=this.O=this.V=null},e7c=function(a,b,c){this.id=a;this.O=b;this.H=c},f7c=function(a,b){return new e7c((a?a:b).getId(),a,b)},zO=function(a){return new e7c(a.getId(),null,a)},g7c=function(a){this.W=a;this.O=new Map;this.V=new Set;this.enabled=!0;this.error=
null;this.started=!1},AO=function(a,b,c){if(a.started)throw Error("Te");c={Ln: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)}},BO=function(a,b){if(!a.started)throw Error("Ue");if(!a.enabled)throw Error("Ve`"+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.Ln.delete(b);if(0===e.Ln.size)try{e.callback()}catch(f){throw a.enabled=
!1,a.error=f,f;}}}};g7c.prototype.H=function(a){return this.V.has(a)};g7c.prototype.start=function(){this.started=!0};g7c.prototype.log=function(a){this.W.info("drive.ds.MilestoneManager",a)};var h7c=function(){_.Q.call(this);this.H=Date.now()};_.N(h7c,_.Q);h7c.prototype.GD=function(){this.H=Date.now();this.dispatchEvent("Hb")};var i7c=function(a,b,c){_.Q.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};_.N(i7c,_.Q);i7c.prototype.iA=function(){return this.O};
i7c.prototype.uO=function(){var a=this;if(this.W)return this.W;var b=_.oi();this.W=b.promise;_.q.setTimeout(function(){a.W=null},5E3);j7c(this,b);return b.promise};i7c.prototype.oa=function(){!0===this.O&&(this.log("Became unauthenticated."),this.O=!1,this.V=!0,k7c(this))};i7c.prototype.va=function(){!1===this.O&&(this.log("Became authenticated."),this.O=!0,this.H=null,this.V=!1,this.timeout&&(_.q.clearTimeout(this.timeout),this.timeout=null),this.dispatchEvent(new n2c("eb")))};
var l7c=function(a,b){a.ha=b},k7c=function(a){a.H||(a.H=new _.vVc(5E3),a.timeout=_.q.setTimeout(function(){return m7c(a)},a.H.Ya()))},m7c=function(a){j7c(a);a.H&&(_.PG(a.H),a.timeout=_.q.setTimeout(function(){return m7c(a)},a.H.Ya()))},j7c=function(a,b){var c=_.ji();a.ha&&(c=a.ha());c.then(function(){return n7c(a,b)})},n7c=function(a,b){a.log("Checking authentication state.");var c=a.Ba.then(function(d){return d.Qe(new _.eSc)});b?c.then(function(){var d=b.resolve;var e=new W6c;e=_.A(e,1,1);d.call(b,
e)},function(d){var e=_.sL(d).Kg;d=0;_.TQc(e)?(a.log("Checked authentication state: unauthenticated."),d=2):(a.log("Checked authentication state: error occurred."),_.Yq(e),_.A(e,21,"Checked authentication state: error occurred."),a.ka(e));e=new W6c;_.A(e,1,d);b.resolve(e)}):c.then(null,function(d){d=_.sL(d);_.TQc(d.Kg)&&a.V&&(a.dispatchEvent(new n2c("fb")),a.V=!1)})};i7c.prototype.log=function(a){this.ma.info("drive.ds.sync.auth.StateManager",a)};
var o7c=function(a,b){this.kv=a;this.bw=b;this.NL=!0;this.W5=!1;this.Ke=0},p7c=function(a){a.NL=!1;a.IH()};_.g=o7c.prototype;_.g.Mxa=function(a,b){var c=this;if(5===this.iH(a))throw Error("We");var d=[];_.Ka(this.py(),function(e){S5c(c.kv,a,e.getItem())&&d.push(e)});this.bw.sort(a,d,b);return d};_.g.Md=function(){return this.py().length};_.g.Zl=function(a){var b=this.Mxa(a,void 0);b=BZc(b);var c=new _.BA;c.Hv(b);c.Ac(this.RP(a)?6:1);return c};
_.g.update=function(a){var b=this.jt(a.O),c=this.jt(a.H);if(!b&&!c)return!1;b&&this.AH(a.O);c&&this.NP(a.H);return!0};_.g.iH=function(a){return this.NL&&this.W5?R5c(a)?1:5:5};_.g.b1=function(){this.W5=!0};_.g.jt=function(a){return!!a&&this.NL};_.g.Ci=function(a){this.Ke=a};_.g.Ue=function(){return this.Ke};
var CO=function(a,b,c,d,e,f){f=void 0===f?"":f;o7c.call(this,a,b);this.W=c;this.nextPageToken=f;this.Od=[];this.O={};this.request=qO(c,d,!0);this.H=!e;q7c(this,e);this.V=(0,_.v)(this.bw.compare,this.bw,this.request)};_.N(CO,o7c);_.g=CO.prototype;_.g.ud=function(){return this.request};_.g.NP=function(a){var b=this.O[a.getId()];b&&this.AH(b);xYc(this.Od,a,this.V);this.O[a.getId()]=a;a.count++;this.Od.length>this.request.ki()&&(this.AH(_.ha(this.Od)),this.H=!1)};
_.g.AH=function(a){var b=this.Od,c=_.Ha(b,a,this.V);0<=c&&_.sa(b,c);_.jg(this.O,a.getId());a.count--};_.g.IH=function(){this.Od.forEach(function(a){a.count--});this.Od=[];this.O={}};_.g.py=function(){return this.Od};_.g.iH=function(a){var b;if(b=this.W.equals(this.request,a,!0))a=a.O(),b=this.request.O(),b=HYc(b,a,!0);return b?this.H?1:6:5};_.g.Mxa=function(a,b){if(5===this.iH(a))throw Error("We");b=b?Math.min(b,this.Od.length):this.Od.length;return _.Ba(this.Od,0,b)};
_.g.jt=function(a){if(!o7c.prototype.jt.call(this,a)||!S5c(this.kv,this.request,a.getItem()))return!1;if(this.H||_.E(this.request,48,!1))return!0;var b=_.ha(this.Od);return!!b&&0>=this.V(a,b)};_.g.RP=function(){return this.H?!1:!0};_.g.getType=function(){return"CacheHintCorpusCache"};_.g.Gk=function(a,b){var c=this,d=_.ha(this.Od);!this.H&&d&&_.la(a,function(e){return e.getId()===d.getId()})&&(b?(this.AH(d),q7c(this,_.ha(a))):this.H=!0);_.Ka(a,function(e){c.update(zO(e))})};
var q7c=function(a,b){b&&S5c(a.kv,a.request,b.getItem())&&a.NP(b)};CO.prototype.Yw=function(){return this.nextPageToken};var DO=function(a,b){o7c.call(this,a,b);this.Od={}};_.N(DO,o7c);DO.prototype.NP=function(a){this.Od[a.getId()]=a;a.count++};DO.prototype.AH=function(a){_.jg(this.Od,a.getId());a.count--};DO.prototype.IH=function(){_.bg(this.Od,function(a){a.count--});this.Od={}};DO.prototype.py=function(){return Object.values(this.Od)};
var EO=function(a,b,c,d,e){DO.call(this,a,b);var f=this;this.H=e;AO(c,["aU7Ts","BNEDtc"],function(){return f.b1()})};_.N(EO,DO);EO.prototype.iH=function(a){var b=this,c=DO.prototype.iH.call(this,a);if(5==c)return c;if(0<_.Jd(a,33).length)return 5;a=_.FM(a);return 0<a.length&&!a.every(function(d){d=b.Od[d.Ya()];return null!=d&&!d.getItem().zc()&&QYc(d.getItem())&&!_.H(d.getItem(),108)})?5:1};EO.prototype.jt=function(a){return DO.prototype.jt.call(this,a)&&r7c(this,a.getItem())};
var r7c=function(a,b){if(_.H(b,31)||!a.W5)return!0;var c=a.H();return b.Jj().some(function(d){var e=a.Od[d];return d==c||null!=e&&QYc(e.getItem())})};EO.prototype.b1=function(){var a=this;DO.prototype.b1.call(this);_.bg(this.Od,function(b){r7c(a,b.getItem())||(b.count--,_.jg(a.Od,b.getId()))})};EO.prototype.ud=function(){return new _.Oe};EO.prototype.getType=function(){return"SubscribedCorpusCache"};EO.prototype.RP=function(){return!1};var s7c=/^[\x00-\x7F]*$/,t7c=function(){this.rootId=""};
t7c.prototype.yt=function(a){this.rootId=a||""};
var R5c=function(a){return u7c(a)&&0==_.Jd(a,40).length&&void 0==_.C(a,41)},u7c=function(a){var b=!0;_.Lk(a,_.Re,13).forEach(function(d){"me"!=d.Ya()&&(b=!1)});var c=a.Lc();c=!c||5!=c.getType();return 0==_.Lk(a,_.Tl,5).length&&0==_.Lk(a,_.Re,14).length&&0==_.Lk(a,_.Re,15).length&&!_.sk(a,58)&&!_.H(a,18)&&!_.H(a,34)&&0==_.Lk(a,_.CM,35).length&&0==_.Lk(a,_.CM,38).length&&c&&b&&0==_.Jd(a,39).length&&!_.C(a,42)&&0==_.Lk(a,_.Ol,44).length&&!_.PL(a)&&!_.QL(a)&&!_.RL(a)&&0==_.Lk(a,_.Pl,57).length&&v7c(a)&&
!_.D(a,_.Ona,59)&&null==_.H(a,60)&&0==_.Lk(a,_.Re,68).length&&0==_.Lk(a,_.Re,67).length&&null==_.H(a,69)},v7c=function(a){return _.Lk(a,_.Ul,4).every(function(b){return s7c.test(b.Ya())})};t7c.prototype.U6=function(a,b){var c=this;return b.filter(function(d){return S5c(c,a,d)})};
var S5c=function(a,b,c){var d;if(d=!!c)d=c.getId()!=a.rootId&&!pO(c);if(d){d=!0;var e=_.Lk(b,_.Ul,4);if(v7c(b))for(var f=0;f<e.length&&d;f++){var h=e[f];if(h.Ya()){var k=_.E(h,3,!1),l=(c.getTitle()||"").toLowerCase(),n=h.Ya().toLowerCase();if(2==_.C(h,1))l=n==l,d=d&&(k?!l:l);else{h=[];n=n.replace(/_/g," ");if(0<=n.indexOf("-"))for(var p=/\w*-[\w-]*/,t;t=n.match(p);)h.push(t[0]),n=n.replace(p,"");h.push.apply(h,_.Wc(n.split(/\b/)));for(n=0;n<h.length&&d;n++)p=h[n],t=!0,0!=(0,_.Zf)(p).length&&(0==p.replace(/\./g,
"").length&&(t=!1),p=!!l.match(new RegExp((t?"(^|[^\\w]|_)":"")+_.Xg(p))),d=d&&(k?!p:p))}}}else d=!0}if(d){l=_.EM(b);e=d=0;k=f=!1;l=_.m(l);for(h=l.next();!h.done;h=l.next())h=h.value,h.Ya()&&(p=c.getMimeType()||"",_.H(h,4)&&(p=(n=c.Af())&&_.C(n,3)||""),n=_.E(h,2,!1),h=_.mM(b)?h.Ya().toLowerCase()==p.toLowerCase():h.Ya()==p,n?(e++,k=k||h):(d++,f=f||h));d=d&&!f||e&&k?!1:!0}if(d)for(d=!0,e=_.Lk(b,_.Rl,7),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.Np(),d=d&&w7c(k,f);if(d)for(d=!0,e=_.Lk(b,_.Rl,
8),e=_.m(e),f=e.next();!f.done;f=e.next())f=f.value,k=c.Vx(),d=d&&w7c(k,f);d&&(d=b.Ah(),e=(e=_.HM(b))&&(2==e||3==e),d=null==d||d==!!c.Ah()&&(!d||1==c.wo()||!!e));d&&(d=null==_.H(b,10)||_.H(b,10)==!!c.wz());d&&(d=null==b.Vl()||b.Vl()==!!c.Vl());if(d)a:{d=_.FM(b);d=_.m(d);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.Ya()&&(f="root"==e.Ya()&&a.rootId||e.Ya(),f=c.Jj().includes(f),_.E(e,2,!1)?f:!f)){d=!1;break a}d=!0}if(a=d)a:{a=_.Lk(b,_.Re,13);a=_.m(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,
"me"==d.Ya()&&(e=1==c.wo(),_.E(d,2,!1)?e:!e)){a=!1;break a}a=!0}a&&(a=null==_.H(b,16)||(_.H(b,16)?null!=c.ax():!0));a&&(a=_.H(b,17),d=(d=_.HM(b))&&(2==d||3==d),a=null==a||a==!!c.YG()&&(!a||1==c.wo()||!!d));a&&(a=$Yc(c),a=null==_.H(b,19)||_.H(b,19)==!!_.Al(a));a&&(a=!0);if(a=a&&x7c(b,c)&&y7c(b,c))a=_.Jd(b,33),a=!a.length||a.includes(c.zc()||"");if(a=a&&z7c(b,c))_.C(b,41)?(a=_.D(c,_.yM,86),a=null!=a&&_.C(b,41)==_.C(a,3)):a=!0;if(a=a&&A7c(b,c))a=_.HM(b),1==a?(a=_.H(c,31),a=!!_.FM(b).length||!!_.Lk(b,
_.CM,35).length||1==_.H(b,18)||_.PL(b)||_.QL(b)||_.RL(b)||!!b.gq()||null==a||a):a=2==a?!!c.zc():!0;a&&(a=_.PL(b)?!!_.Fl(c)&&!c.Ah():!0);a&&(a=_.QL(b)?!!_.Gl(c).length&&!c.Ah():!0);a&&(a=_.RL(b)?!!_.Lk(c,_.ql,117).length&&!c.Ah():!0);a&&(a=_.sk(b,50)?_.E(b,50,!1)?_.sk(c,101)&&0!==_.C(c,101):!_.sk(c,101):!0);a&&(a=b.gq(),a=!a||_.Jd(c,120).includes(a));a&&(c=_.D(c,_.vM,138),null==_.H(b,65)||null==c?a=!0:(c=2==_.C(c,1),a=_.H(b,65)==c));return a},w7c=function(a,b){if(null!=_.C(b,2))switch(_.C(b,1)){case 1:return a<=
_.C(b,2);case 2:return a<_.C(b,2);case 3:return a==_.C(b,2);case 4:return a>_.C(b,2);case 5:return a>=_.C(b,2);default:return!1}return!0},x7c=function(a,b){var c=_.og(_.Jd(b,56));a=_.Lk(a,_.DM,25);return 0==a.length?!0:a.every(function(d){return c[d.Ya()]})},y7c=function(a,b){if(0==a.bx().length)return!0;var c=_.og(b.bx().map(function(d){return _.C(d,1)}));a=_.og(a.bx().map(function(d){return _.C(d,1)}));return _.eg(a,function(d,e){return c[e]})},z7c=function(a,b){var c=_.og(_.Jd(b,50));a=_.Lk(a,
_.Sl,37);return 0==a.length?!0:a.every(function(d){return c[d.Ya()]})},A7c=function(a,b){if(_.Jd(a,40).length){if(b=_.D(b,_.yM,86)){var c=_.og(_.Jd(b,2));return _.Jd(a,40).some(function(d){return c[d]})}return!1}return!0},FO=function(a,b,c){DO.call(this,a,b);this.teamDriveId=c};_.N(FO,DO);_.g=FO.prototype;
_.g.iH=function(a){var b=this,c=DO.prototype.iH.call(this,a);if(5==c)return c;c=_.FM(a);var d=c.every(function(e){var f=e.Ya();return(null!=b.Od[f]||b.teamDriveId==f)&&!_.E(e,2,!1)});if(0<c.length&&d)return 1;a=_.Jd(a,33);return 0!=a.length&&a.includes(this.teamDriveId)?1:5};_.g.jt=function(a){return DO.prototype.jt.call(this,a)&&!!a&&a.getItem().zc()==this.teamDriveId&&!pO(a.getItem())};_.g.RP=function(){return!1};_.g.ud=function(){var a=new _.Oe;_.uN(a,[this.teamDriveId]);_.vN(a,2);return a};
_.g.zc=function(){return this.teamDriveId};_.g.getType=function(){return"TeamDriveCorpusCache: "+this.teamDriveId};var B7c=function(a){this.W=a;this.V=[];this.H=null;this.O=[];a=new _.Oe;_.A(a,48,!0);var b=new _.Hc;_.Ic(b,11);_.Jc(b,2);_.Pe(a,b);this.ha=qO(this.W,a,!0)};B7c.prototype.addAll=function(a){var b=this;a.forEach(function(c){c instanceof EO?b.H=c:c instanceof CO?b.V.push(c):c instanceof FO&&b.O.push(c)})};
B7c.prototype.removeAll=function(a){var b=this;a.forEach(function(c){if(c instanceof EO)b.H&&(p7c(b.H),b.H=null);else if(c instanceof CO){var d=_.ja(b.V,function(e){return b.W.equals(e.ud(),c.ud())});0<=d&&(p7c(b.V[d]),_.sa(b.V,d))}else c instanceof FO&&(d=_.ja(b.O,function(e){return b.W.equals(e.ud(),c.ud())}),0<=d&&(p7c(b.O[d]),_.sa(b.O,d)))})};
var C7c=function(a){var b=[];a.H&&b.push(a.H);_.za(b,_.ya(a.V));_.za(b,_.ya(a.O));return b},D7c=function(a,b){b=void 0===b?!1:b;return a.V.filter(function(c){return a.H&&b?(c=_.Uk(c.ud()),_.Bk(c,32),_.Dk(c,26),!_.Tk(a.ha,c)):!0})};B7c.prototype.fU=function(){return _.ya(this.O)};
var E7c=function(a,b){return _.Jf(a.O,function(c){return c.zc()===b})},F7c=function(a,b){return D7c(a).find(function(c){return a.W.equals(c.ud(),qO(a.W,b,!0))})},G7c=function(a,b){_.Fi.call(this,"Ib");this.ids=a;this.error=b};_.N(G7c,_.Fi);G7c.prototype.getError=function(){return this.error};G7c.prototype.H=function(){return this.ids};var H7c=function(a){_.Fi.call(this,"Jb");this.people=a};_.N(H7c,_.Fi);H7c.prototype.getPeople=function(){return this.people};
var I7c=function(a){_.Fi.call(this,"Kb");this.people=a};_.N(I7c,_.Fi);I7c.prototype.getPeople=function(){return this.people};var K7c=function(a,b,c){this.person=a;this.Ke=void 0===c?0:c;this.O=this.V=null;this.H=new Set(b?[b]:[]);J7c(this)};K7c.prototype.Ue=function(){return this.Ke};
var J7c=function(a){1===a.Ke?(a.V=Date.now(),a.O=null):4===a.Ke&&(a.O=Date.now())},M7c=function(a,b,c,d){_.Q.call(this);var e=this;this.O=a;this.V=b;this.W=c;this.ha=d;this.H=[];this.ka=new _.JK(function(){return L7c(e)},100,this)};_.N(M7c,_.Q);M7c.prototype.Tg=function(a){a&&_.XK(this.O)&&(this.H.includes(a)||this.H.push(a),this.ka.ue())};
var L7c=function(a){a.ha.then(function(){for(;a.H.length;){var b=a.H.splice(0,50);a.log("Querying for people. Size: "+b.length+". Pending: "+(a.H.length+" "+b));a.sendRequest(b)}})};M7c.prototype.sendRequest=function(a){var b=this;return this.W.then(function(c){return c.Qe(D1c(new _.XL,a))}).then(function(c){c=_.Lk(c,xO,1);b.dispatchEvent(new H7c(c))},function(c){c=_.sL(c);b.dispatchEvent(new G7c(a,c))})};M7c.prototype.log=function(a){this.V.info("drive.ds.sync.query.PeopleQueryRunner",a)};
var GO=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.H=new Map;this.W=new Map;this.Ic=new _.pe(this);this.La(this.Ic);this.oa=b;this.V=d;this.ma=e;this.O=!_.E(a,90,!1);(d=_.D(a,F0c,85))||(d=new F0c);this.ka=_.wk(d,1,864E5);this.ha=new M7c(a,b,c,f);this.va=new _.pD(function(){var k=O1c(h.ma,106015);if(k){var l=_.D(_.WM(k),y1c,11);if(!l){l=new y1c;var n=_.WM(k);_.y(n,11,l)}_.A(l,1,h.H.size);k.ek()}},500,this);this.Ic.listen(this.ha,"Jb",function(k){k=k.getPeople();N7c(h,k,1);h.va.ue()});this.Ic.listen(this.ha,
"Ib",function(k){O7c(h,k)})};_.N(GO,_.Q);GO.prototype.get=function(a){var b=this.O?_.ah():"";this.O&&this.V.create(b,D1c(new _.XL,[a]));var c=this.H.get(a);if(c)return P7c(this,c)?(this.O&&uO(this.V,b,this.yF(c)?6:5),Q7c(this,a)):this.O&&H6c(this.V,b,1,_.XM(_.JQc,10),null),c;this.O&&uO(this.V,b,5);return null};var Q7c=function(a,b){if(!b)return Promise.resolve();if(a.W.has(b))return a.W.get(b).promise;a.ha.Tg(b);var c=new _.ro;a.W.set(b,c);return c.promise};
GO.prototype.Qb=function(a){var b=this,c=this.O?_.ah():"";this.O&&this.V.create(c,D1c(new _.XL,[a]));return R7c(this,a)?(this.O&&H6c(this.V,c,1,_.XM(_.JQc,10),null),Promise.resolve(this.H.get(a))):Q7c(this,a).then(function(){b.O&&(R7c(b,a)?H6c(b.V,c,1,_.XM(_.JQc,1),null):uO(b.V,c,3));return b.H.get(a)})};GO.prototype.vc=function(){return 0===this.H.size};GO.prototype.clear=function(){this.log("Clearing the PeopleCache.");this.H.clear()};
var S7c=function(a){return[].concat(_.Wc(a.H.values())).filter(function(b){return[1,4,2].includes(b.Ue())&&4!==b.Ue()}).map(function(b){return b.person.clone()})},T7c=function(a,b){return(a=a.H.get(b))?[].concat(_.Wc(a.H)):[]},U7c=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(_.Wc(e.H)).length&&a.H.delete(d))}},N7c=function(a,b,c){if(![1,2].includes(c))throw Error("Xe");0!==b.length&&(a.log("Importing "+b.length+" from "+
(Object.keys(N6c)[c]+".")),V7c(a,b,c))},W7c=function(a,b,c,d){0!==b.length&&a.import(b,c,void 0===d?0:d)},R7c=function(a,b){b=a.H.get(b);return!(!b||![1,4,2].includes(b.Ue())||P7c(a,b))};
GO.prototype.import=function(a,b,c){c=void 0===c?0:c;var d=!1;a=_.m(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=this.H.get(_.C(e,1));if(f){var h=c;if(_.C(e,1)!==_.C(f.person.clone(),1))e=!1;else{var k=f.Ue();if((k=4===h?!1:1===k?1===h:3===k||2===k||4===k?0!==h&&4!==h&&k!==h:!0)||4===h){var l=_.nRc.get(f.Ke)||1,n=!1;k&&(n=!_.Tk(f.person,e),f.person=e.clone());f.Ke=h;J7c(f);e=n||l!==(_.nRc.get(f.Ke)||1)}else e=!1}e&&(d=!0);b&&f.H.add(b)}else 4!==c&&(d=!0,f=c,h=b,1!==f&&Q7c(this,_.C(e,
1)),f=new K7c(e,h,f),this.H.set(_.C(e,1),f))}return d};GO.prototype.yF=function(a){return 1===a.Ue()&&Date.now()-Number(a.V)>this.ka};var P7c=function(a,b){switch(b.Ue()){case 1:return Date.now()-Number(b.V)>a.ka;case 4:return 1E3<Date.now()-Number(b.O);default:return!0}};GO.prototype.log=function(a,b){this.oa.log("drive.ds.sync.cache.PeopleCache",a,void 0===b?"info":b)};
var O7c=function(a,b){b=b.H().map(function(c){var d=a.H.get(c);return d?d.person.clone():P6c(new xO,c)});V7c(a,b,4)},V7c=function(a,b,c){for(var d=_.m(b),e=d.next();!e.done;e=d.next()){e=_.C(e.value,1);var f=a.W.get(e);f&&(f.resolve(),a.W.delete(e))}a.import(b,void 0,c)&&a.dispatchEvent(new I7c(b))},X7c=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.Ic=new _.pe(this);this.La(this.Ic);this.H=new GO(a,b,c,d,e,f);this.O=_.hL(a)||new _.VQc;this.Ic.listen(this.H,"Kb",function(k){return h.dispatchEvent(k)})};
_.N(X7c,_.Q);X7c.prototype.nN=function(a){var b=this;if(a.H){var c=a.H.getItem(),d=HO(this,[c]).map(function(e){return Y7c(b,e)});W7c(this.H,d,a.H.getId(),this.Ue(_.C(c,82)))}a.O&&U7c(this.H,a.id,Z7c(this,a))};X7c.prototype.Ue=function(a){return _.oRc.get(a)||0};
var Z7c=function(a,b){var c=$7c(a,b.O),d=$7c(a,b.H);return c.filter(function(e){return!d.includes(e)})},$7c=function(a,b){return b?HO(a,[b.getItem()]).map(function(c){return _.IF(c)}):[]},b8c=function(a,b){b=b.getUser();W7c(a.H,[Y7c(a,b)],"ACCOUNT");a8c(a,b)},d8c=function(a,b){var c=_.Lk(b,_.NM,2).map(function(d){var e=_.D(d,_.ml,9,1);return a.H.Qb(_.IF(e)).then(function(){return void c8c(a,[e])})});return Promise.all(c).then(function(){return b})},c8c=function(a,b){b=_.m(b);for(var c=b.next();!c.done;c=
b.next())c=c.value,_.IF(c)&&a8c(a,c)},e8c=function(a,b,c){for(var d=new Set,e=_.m(b),f=e.next();!f.done;f=e.next())f=f.value,_.IF(f)&&(d.add(_.IF(f)),W7c(a.H,[Y7c(a,f)],c));return Promise.all([].concat(_.Wc(d)).map(function(h){return a.H.Qb(h)})).then(function(){return c8c(a,b)})},g8c=function(a,b){return HO(a,[b]).some(function(c){return!f8c(a,_.IF(c))})},f8c=function(a,b){return R7c(a.H,b)},HO=function(a,b){return b.map(function(c){var d=c.Jv();d=d?[].concat(_.Wc(d.CP()),_.Wc(_.Lk(d,_.ml,3))):[];
var e=c.Af();e=(e=e&&_.Pd(e))?HO(a,[e]):[];return[].concat(_.Wc(_.Dl(c)),[c.Il(),c.Nu(),c.Yp(),c.KB()],_.Wc(d),_.Wc(e))}).flat().filter(function(c){return c&&!!_.IF(c)})};X7c.prototype.getItems=function(a){return T7c(this.H,a).filter(function(b){return"ACCOUNT"!==b})};
var h8c=function(a,b){return b.map(function(c){c=c.clone();var d=HO(a,[c]);d=_.m(d);for(var e=d.next();!e.done;e=d.next())e=e.value,_.Bk(e,3),_.Bk(e,8),_.Bk(e,5);return c})},j8c=function(a,b){return b.some(function(c){return i8c(a,c)})},i8c=function(a,b){return HO(a,[b]).some(function(c){return _.sk(c,3)||c.zp()||_.sk(c,5)})},a8c=function(a,b){var c=a.H.get(_.IF(b));if(c){a=c.person.clone();var d=_.vSc(b.hd(a.getName()),a.getEmail());c=_.nRc.get(c.Ke)||1;_.A(d,16,c);(a=_.D(a,O6c,4))&&b.Vm(a.getUrl())}},
Y7c=function(a,b){var c=_.IF(b);c=P6c(new xO,c).hd(b.getName());var d=b.getEmail();c=_.A(c,3,d);d=new O6c;var e=_.C(b,5);d=_.A(d,1,e);c=_.y(c,4,d);_.E(a.O,9,!1)&&(_.Bk(b,3),_.Bk(b,8),_.Bk(b,5));return c},k8c=function(){this.suggestionSessionId=this.W=null;this.V=[];this.incompleteSearch=!1;this.O=[];this.H=!0};k8c.prototype.xf=function(){return this.suggestionSessionId};k8c.prototype.cxa=function(){return this.O};k8c.prototype.vc=function(){return this.H};
var l8c=function(a){if(!a)return null;a=a.split("/");return 2>a.length?null:a[1]},m8c=function(a,b){a=l8c(a);b=l8c(b);return!(!a||!b||a!==b)},n8c=function(a){return a.Gc()+"_"+l8c(a.getName())},o8c=function(a,b){var c=_.Jd(a,1).map(function(d,e){return b[Number(e)].value.i0a.promise});return Promise.allSettled(c).then(function(d){return _.Jd(a,1).map(function(e,f){e=e.toString();var h=new T6c;e=_.A(h,1,e);f=d[Number(f)];"fulfilled"===f.status?e.Ac(1):(e.Ac(3),e.Re(f.reason.Kg));return e})})},IO=function(a,
b){_.P.call(this);this.O=a;this.request=b;this.nx=new Set;this.status=6;this.V=new Map;this.Ke=0};_.N(IO,_.P);_.g=IO.prototype;_.g.Eh=function(a){var b=this;this.nx.add(a);return this.resize().then(function(){return b.CM(a)})};_.g.Hj=function(a){this.nx.delete(a);0===this.nx.size&&this.dispose()};_.g.Ue=function(){return this.Ke};_.g.Ci=function(a){this.Ke=a};
_.g.RB=function(a,b,c){var d=this;c=void 0===c?1:c;var e=!1;a.forEach(function(f){e=d.Dt(f,c)||e});b||(e=1!==this.status||e,this.status=1);return e?this.PV():_.ji([])};_.g.PV=function(){for(var a=[],b=_.m(this.nx.values()),c=b.next();!c.done;c=b.next())a.push(this.CM(c.value));return _.mi(a)};
_.g.OV=function(a){this.status=3;for(var b=[],c={},d=_.m(this.nx.values()),e=d.next();!e.done;c={Moa:c.Moa},e=d.next())c.Moa=e.value,b.push(this.O.then(function(f){return function(h){return void h.OV(f.Moa,a)}}(c)));return _.mi(b)};_.g.DA=function(){for(var a=this,b=[],c={},d=_.m(this.nx.values()),e=d.next();!e.done;c={Noa:c.Noa},e=d.next())c.Noa=e.value,b.push(this.O.then(function(f){return function(h){return void h.DA(f.Noa)}}(c)));return _.mi(b).then(function(){a.Ci(0===a.Ue()?1:6)})};
_.g.resize=function(){var a=this;return this.O.then(function(b){var c=0;a.nx.forEach(function(d){d=b.fia(d);c=Math.max(c,d.ki?d.ki()||0:0)});a.Xca(c)})};var p8c=function(a,b){return b?a.V.get(a.Jha(b))||null:null};_.g=IO.prototype;_.g.nG=function(a,b){var c=p8c(this,a);b=z5c(c,b);this.V.set(this.Jha(a),b)};_.g.Jha=function(a){return a};_.g.jJa=function(){return[]};_.g.CM=function(a){var b=this;return this.O.then(function(c){return void c.CM(a,b.Zl())})};_.g.removeItem=function(){};
var JO=function(a,b){_.Q.call(this);this.request=a;this.pageToken="";this.H=this.O=!1;this.data=[];this.limit=0;this.W=b};_.N(JO,_.Q);var q8c=function(a){return!a.O||""!==a.pageToken};JO.prototype.Tg=function(a){this.limit=void 0===a?1E5:a;return!this.H&&this.data.length<=this.limit&&q8c(this)?r8c(this):_.ji()};
var r8c=function(a){a.O=!0;a.H=!0;var b=a.Efa(a.request,a.limit-a.data.length,a.pageToken);return a.W(b).then(function(c){return s8c(a,c)},function(c){return a.handleError(c)})},s8c=function(a,b){a.H=!1;a.pageToken=a.$ha(b);b=a.lha(b);b.forEach(function(c){return a.data.push(c)});a.Q3(b);return a.data.length<a.limit&&q8c(a)?_.mi([_.ji(b),r8c(a)]).then(function(c){return c[0].concat(c[1])}):_.ji(b)};
JO.prototype.handleError=function(a){this.H=!1;a=_.fL(a);var b=new vO(a);this.kJa(b);this.dispatchEvent(b);return _.ki(a)};JO.prototype.Q3=function(){};JO.prototype.kJa=function(){};var t8c=function(a,b,c){JO.call(this,c,function(d){return a.then(function(e){return e.Qe(d)}).Yf(function(e){return void _.tL(e)})});this.V=b};_.N(t8c,JO);_.g=t8c.prototype;_.g.Efa=function(a,b,c){a=_.Uk(a);a.Th(b);return new _.TRc(a,c)};_.g.$ha=function(a){return a.pageToken||""};_.g.lha=function(a){return a.response.O()};
_.g.Q3=function(a){this.V.RB(a,!1,1)};_.g.kJa=function(a){this.V.cA(this.request,a)};var u8c=function(a,b,c,d){IO.call(this,a,_.Uk(d));this.ha=b;this.W=c;this.data=[];this.H=null};_.N(u8c,IO);_.g=u8c.prototype;_.g.refresh=function(){this.DA();this.H=new t8c(this.ha,this.W,this.request);return this.H.Tg(this.request.ki()||100)};_.g.qp=function(a){return this.data.find(function(b){return m8c(b.getName(),a)})};
_.g.Xca=function(a){this.H&&a===this.request.ki()||(this.request.Th(a),this.H?this.H.Tg(a):this.refresh())};_.g.Zl=function(){var a=this,b=k3c((new $N).Ac(this.status),this.data.filter(function(c){return a.W.Rza(c)}).map(function(c){return c.clone()}));return new _.bN(b,void 0,void 0,this.Ue())};_.g.RB=function(a,b,c){var d=this;a=a.filter(function(e){return e.Gc()===d.request.Gc()});return IO.prototype.RB.call(this,a,b,c)};
_.g.Dt=function(a,b){b=void 0===b?1:b;if(!XYc(p8c(this,a.getName()),b))return!1;var c=-1===b?0:this.data.length,d=this.data.findIndex(function(e){return m8c(e.getName(),a.getName())});-1<d&&(this.data.splice(d,1),c=d);this.data.splice(c,0,a);this.nG(a.getName(),b);return!0};_.g.removeItem=function(a){_.wa(this.data,function(b){return m8c(b.getName(),a)})&&(this.V.delete(this.Jha(a)),this.PV())};_.g.Jha=function(a){return l8c(a)};_.g.nG=function(a,b){this.qp(a)&&IO.prototype.nG.call(this,a,b)};
_.g.jJa=function(a){var b=this;return a instanceof _.dM&&a.Gc()!==this.request.Gc()?[]:a.RT().map(function(c){return b.qp(c.Om())}).filter(function(c){return c}).map(function(c){return c.clone()})};var KO=function(){this.H=new Map};KO.prototype.Eh=function(a,b){var c=this.getKey(b),d=this.H.get(c),e=!d;d||(d=this.Gfa(b),this.H.set(c,d));d.Eh(a);return e};var v8c=function(a,b,c){var d=a.getKey(c),e=a.H.get(d),f=!e;e||(e=a.eua(c),a.H.set(d,e));e.Eh(b);return f};
KO.prototype.Hj=function(a,b){var c=this.H.get(this.getKey(b));c&&(c.Hj(a),c.isDisposed()&&this.H.delete(this.getKey(b)))};var w8c=function(a,b,c){var d=a.H.get(a.getKey(c));d&&(d.Hj(b),d.isDisposed()&&a.H.delete(a.getKey(c)))},x8c=function(a,b){return a.H.get(b)};KO.prototype.RB=function(a,b,c){var d=this;c=void 0===c?1:c;var e=a.filter(function(f){return d.Rza(f)});this.H.forEach(function(f){f.RB(e,b,c)})};KO.prototype.removeItem=function(a,b){b=b?this.H.get(b):null;(b?[b]:this.H).forEach(function(c){c.removeItem(a)})};
var y8c=function(a,b){a=Array.from(a.H.values()).map(function(c){return c.jJa(b)});return[].concat.apply([],_.Wc(a))};KO.prototype.nG=function(a,b){this.H.forEach(function(c){c.nG(a,b)})};KO.prototype.Rza=function(){return!0};KO.prototype.cA=function(a,b){(a=this.H.get(this.getKey(a)))&&a.OV(b)};KO.prototype.l0=function(a,b,c,d){var e=this.getKey(b),f=this.H.get(e);f||(f=this.Gfa(b),f.Ci(c),this.H.set(e,f),this.RB(a,d))};var z8c=function(){this.V=new Set;this.O=0;this.H=[]},A8c=function(a,b){a.V.add(b)};
z8c.prototype.W=function(a){this.V.delete(a)};var B8c=function(a,b){var c;if(c=b instanceof _.Cl)c=b.Zs(),c=!!(b.Ah()&&c&&c<=Math.max.apply(Math,_.Wc([a.O].concat(_.Wc(a.H)))));if(c)return!0;b=b instanceof _.Cl?b.getId():b;return a.V.has(b)},C8c=function(a,b){return _.wa(a.H,function(c){return c===b})&&b>a.O?(a.O=b,!0):!1};z8c.prototype.U6=function(a){var b=this;return a.filter(function(c){return!B8c(b,c)})};var D8c=function(a,b){this.H=new Map;this.V=a;this.W=b;this.O=new z8c};_.N(D8c,KO);
var E8c=function(a,b){A8c(a.O,n8c(b));(a=x8c(a,b.Gc()))&&a.PV()};_.g=D8c.prototype;_.g.getKey=function(a){return a.Gc()};_.g.Gfa=function(a){return new u8c(this.V,this.W,this,a)};_.g.eua=function(a){return new u8c(this.V,this.W,this,a)};_.g.So=function(a){a=_.m(a);for(var b=a.next();!b.done;b=a.next())(b=b.value.getItem())&&(b=x8c(this,b.getId()))&&b.refresh()};_.g.Rza=function(a){return!B8c(this.O,n8c(a))};
var F8c=function(a,b){this.O=a;this.H=b},G8c=function(a,b){b=_.kTb(b);var c=new t8c(a.O,a.H,b);new Promise(function(d,e){return c.Tg(100).then(d,e)})},H8c=function(){this.Od={}},LO=function(a,b){I8c(a,"subscribed");b&&I8c(a,b);return a.Od[b||"subscribed"].se.promise},I8c=function(a,b){a.Od[b]||(a.Od[b]={count:0,UP:[],jZa:[],se:_.oi()});a.Od[b].count++},K8c=function(a,b){b&&!J8c(a,b)||J8c(a,"subscribed")},J8c=function(a,b){if(!a.Od[b])return!1;a.Od[b].count--;0===a.Od[b].count&&(a.Od[b].se.resolve({items:a.Od[b].UP,
tGb:a.Od[b].jZa}),_.jg(a.Od,b));return!0};H8c.prototype.So=function(a,b){var c=this,d=b||"subscribed";a.forEach(function(e){var f=e.zc();f&&f===e.Gc()&&c.Od[f]&&c.Od[f].jZa.push(e);c.Od[d]&&c.Od[d].UP.push(e)})};var L8c=function(a,b,c){JO.call(this,a,c);this.V=b};_.N(L8c,JO);L8c.prototype.Efa=function(a,b){return _.Uk(a).Th(b)};L8c.prototype.$ha=function(){return""};L8c.prototype.lha=function(a){return[a]};L8c.prototype.Q3=function(a){this.V(a)};
var M8c=function(a,b,c,d){IO.call(this,a,_.Uk(d));this.ha=b;this.H=this.gR=null;this.W=c};_.N(M8c,IO);M8c.prototype.refresh=function(){var a=this;this.DA();this.H=new L8c(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.Tg(this.request.ki()||0)};M8c.prototype.Xca=function(a){1===this.status||this.H&&a===this.request.ki()||(this.request.Th(a),this.H?this.H.Tg(a):this.refresh())};
M8c.prototype.Zl=function(){if(this.gR)return this.gR;var a=new cO;a.Ac(this.status);return a};M8c.prototype.Dt=function(a){this.gR=a;return!0};var N8c=function(a,b,c){this.H=new Map;this.O=a;this.W=b;this.V=c};_.N(N8c,KO);_.g=N8c.prototype;_.g.log=function(a){this.V.info("drive.ds.sync.cache.SuggestedWorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};_.g.Gfa=function(a){var b=this;return new M8c(this.O,this.W,function(c){b.RB(c,!1)},a)};_.g.eua=function(){throw Error("Ye");};
_.g.l0=function(a,b,c,d){var e=a[0].jk();this.log("Initialized "+e.length+" suggested workspaces: "+e.map(function(f){return f.Eo()}).join(", "));KO.prototype.l0.call(this,a,b,c,d)};var MO=function(a,b,c,d){_.Q.call(this);this.request=a;this.Fa=b;this.oa=c;this.Ba=d;this.ma=0;this.se=null;this.O=new Set};_.N(MO,_.Q);
MO.prototype.Tg=function(){var a=this;if(this.se)return this.se.promise;this.se=_.oi();this.W(this.request).forEach(function(b,c){a.ma++;a.Fa.then(function(d){return d.Qe(b)}).then(a.va.bind(a,c),a.handleError.bind(a,c))});return this.se.promise};MO.prototype.va=function(a,b){this.V(b);O8c(this,a)};var O8c=function(a,b){a.O.add(b);a.O.size===a.ma?(a.ha(a.request),a.dispatchEvent("Fb"),a.se.resolve()):a.dispatchEvent("Cb")};
MO.prototype.handleError=function(a,b){b=_.sL(b);var c=b.Kg;5===c.Ur()||4===c.Wj()?(this.Ba.info("drive.ds.sync.query.SimpleFindByIdsRunner","Deleting "+a+" due to: "+b.message),this.ka(a),O8c(this,a)):(a=new vO(c,_.wk(this.oa.Of(),1,1)),this.dispatchEvent(a),this.se.reject(b))};var P8c=function(a){var b=new _.AA;b.Pb(a);return b},Q8c=function(a,b,c,d,e){MO.call(this,_.Uk(a),c,d,e);this.H=b};_.N(Q8c,MO);
Q8c.prototype.W=function(a){var b=new Map;a.Wl().forEach(function(c){var d=_.Rob(_.Uk(a),[c]);b.set(c,d)});return b};Q8c.prototype.V=function(a){var b=[];a.XR().forEach(function(c){b.push(c)});this.H(b,!0)};Q8c.prototype.ha=function(){this.H([],!1)};Q8c.prototype.ka=function(a){this.H([P8c(a)],!0)};var R8c=function(a,b,c,d,e,f){IO.call(this,a,_.Uk(f));this.ma=b;this.W=c;this.ka=d;this.ha=e;this.Bk={};this.H=null};_.N(R8c,IO);
R8c.prototype.refresh=function(){this.H=new Q8c(this.request,this.ha,this.ma,this.W,this.ka);return this.H.Tg()};R8c.prototype.Xca=function(){this.H||this.refresh()};R8c.prototype.Zl=function(){var a=new _.$M;a.Ac(this.status);_.bg(this.Bk,function(b,c){a.XR().set(c,b||new _.AA)});a.Ci(this.Ue());return a};R8c.prototype.Dt=function(a){var b=a.getId();if(_.Tk(a,P8c(a.getId()))){if(this.Bk[b])return delete this.Bk[b],!0}else if(0<=this.request.Wl().indexOf(b))return this.Bk[b]=a,!0;return!1};
var S8c=function(a,b){a=a.getState();return null==a||b.getState()==a},T8c=function(a,b,c){JO.call(this,a,c);this.V=b};_.N(T8c,JO);T8c.prototype.Efa=function(a,b,c){a=_.Uk(a);a.Th(b);return new _.fSc(a,c)};T8c.prototype.$ha=function(a){return a.pageToken||""};T8c.prototype.lha=function(a){return a.response.jk()};T8c.prototype.Q3=function(a){this.V(a)};var U8c=function(a){this.H=F5c(a,{numeric:!0})};
U8c.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=_.Ga(b.getId(),c.getId())*(a?1:-1);return f};U8c.prototype.V=function(a,b,c){var d=_.C(b,4),e=_.C(c,4),f;d!==e?f=_.Ga(d,e)*(a?1:-1):f=_.Ga(b.getId(),c.getId())*(a?1:-1);return f};var V8c=function(a,b,c,d,e){IO.call(this,a,_.Uk(e));this.ha=b;this.Bk=[];this.H=null;this.W=d;a=new U8c(c);b=(c=this.request.Zt())?c.getType():0;c=c?_.C(c,2):0;this.ka=1===b?a.O.bind(a,2!==c):a.V.bind(a,1===c)};
_.N(V8c,IO);V8c.prototype.refresh=function(){var a=this;this.DA();this.H=new T8c(this.request,this.W,function(b){return a.ha.then(function(c){return c.Qe(b)})});return this.H.Tg(this.request.ki()||0)};V8c.prototype.Xca=function(a){1===this.status||this.H&&a===this.request.ki()||(this.request.Th(a),this.H?this.H.Tg(a):this.refresh())};V8c.prototype.Zl=function(){var a=new yO;a.Ac(this.status);V6c(a,this.Bk.map(function(b){return _.Uk(b)}));return new _.eN(a,void 0,1!==this.status&&q8c(this.H),this.Ue())};
V8c.prototype.Dt=function(a){var b=_.wa(this.Bk,function(c){return c.getId()===a.getId()});return a&&S8c(this.request,a)&&!_.Tk(a,P8c(a.getId()))?xYc(this.Bk,a,this.ka):b};var W8c=function(a,b,c,d){this.H=new Map;this.V=a;this.ha=b;this.W=c;this.O=d};_.N(W8c,KO);_.g=W8c.prototype;_.g.log=function(a){this.W.info("drive.ds.sync.cache.WorkspaceCacheManager",a)};_.g.getKey=function(a){return a.toString()};
_.g.Gfa=function(a){var b=this;return new V8c(this.V,this.ha,ON(_.SK(this.O)),function(c){return void b.RB(c,!1)},a)};_.g.eua=function(a){var b=this;return new R8c(this.V,this.ha,this.O,this.W,function(c,d){return b.RB(c,d)},a)};_.g.l0=function(a,b,c,d){this.log("Initialized "+a.length+" items for workspaces: "+a.map(function(e){return e.getId()}).join(", "));KO.prototype.l0.call(this,a,b,c,d)};
var X8c=function(a,b){b=void 0===b?!1:b;var c=a.getMimeType();BN(a)&&(c=(c=a.Af())?_.C(c,3):"");CN(a)&&(a.Ii()&&(c+="+"+String(a.Ii())),a.Wi()&&(c+="+shared"));return _.dTa(c,b?"32":"16")},Y8c=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("&")},Z8c=function(a,b){var c=_.H(a,44),d=a.Af();if(d){if(1!==_.Sd(d))return null;c=(c=_.Pd(d))?_.H(c,44):!0}if(!c)return null;c={};d=a.getId();BN(a)&&(d=PYc(a));
d=[_.G(b,65,"https://lh3.google.com"),"u",_.gL(_.SK(b)),"d",d].join("/");d+="={size}";_.E(b,89,!1)&&_.sk(a,140)&&(c.resourcekey=_.Nl(a));return d=Y8c(d,c)},$8c=function(a){this.H=a},b9c=function(a,b,c){if(c.includes(20)&&c.includes(3)){var d=X8c(b,_.E(a.H,75,!1));_.A(b,21,d)}c.includes(18)&&_.bTc(b,DZc(b,a.H));c.includes(19)&&(d=Z8c(b,a.H),_.A(b,20,d));a9c(a,b,c);if(BN(b)){if(d=(d=b.Af())&&_.Pd(d)){if(c.includes(20)&&c.includes(3)){var e=X8c(d,_.E(a.H,75,!1));_.A(d,21,e)}c.includes(18)&&_.bTc(d,DZc(d,
a.H));c.includes(19)&&(e=Z8c(d,a.H),_.A(d,20,e));a9c(a,d,c)}_.fTc(b,!!b.xw())}},a9c=function(a,b,c){var d=c.includes(41);c=c.includes(42);if(d||c){var e=b.getMimeType();e&&(e=!CN(b)&&!BN(b)&&!_.ud(e)&&(!b.L4()||2!==b.wo()),d&&_.A(b,40,e),e&&c&&(a=a.H,d=b.getId(),BN(b)&&(d=PYc(b)),c=new _.Cj(_.G(a,16,"")+"/uc"),_.Jj(c,"id",d),_.Jj(c,"authuser",_.gL(_.SK(a))),_.Jj(c,"export","download"),_.E(a,89,!1)&&_.sk(b,140)&&_.Jj(c,"resourcekey",_.Nl(b)),_.A(b,41,c.toString())))}},c9c=function(a,b){this.Pfa="";
this.startTime=b||new Date;this.uba=a;this.M8=zYc(a)};c9c.prototype.clone=function(){return new c9c(this.uba,this.startTime)};var d9c=function(){this.H=null;this.AW=[]},e9c=function(a){return _.jb(a.AW,function(b){return _.lg(b)})};d9c.prototype.uL=function(){return this.H};
d9c.prototype.O=function(a,b,c){if(this.H){var d=this.H;if(!a["X-Google-DapperTraceInfo"]){var e=new d7c;e.V=c7c(d.M8);var f=_.ah().substring(0,8);d=zYc(f);f=(new D6c).Pb(f);f=_.A(f,2,d);b=_.A(f,3,b).Di(c);this.AW.push(b);e.O=c7c(d);e.H=a7c(808464432,808464432);e.W=41;b=String.fromCharCode;c=b.apply;d=new _.ek;if(e.V){f=e.V.O>>>0;var h=e.V.H>>>0;_.fk(d,1,1);var k=d.O;k_c(k,f);k_c(k,h)}e.O&&(f=e.O.O>>>0,h=e.O.H>>>0,_.fk(d,2,1),k=d.O,k_c(k,f),k_c(k,h));f=e.W;null!=f&&(_.fk(d,3,5),k_c(d.O,f));e.H&&(f=
e.H.O>>>0,e=e.H.H>>>0,_.fk(d,4,1),h=d.O,k_c(h,f),k_c(h,e));e=_.gk(d);a["X-Google-DapperTraceInfo"]=_.q.btoa(c.call(b,null,e))}}};var f9c=function(){this.Db=[];this.O=this.H=0};f9c.prototype.discard=function(a){for(var b=this.H,c=this.O,d=this.Db,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 g9c=function(a,b){if(!c)var c=b.length;for(var d=a.H,e=a.O,f=a.Db,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},h9c=function(a){this.key=a;this.H=new _.kRc;this.O=new _.iRc(new _.kRc,_.pla(a))};h9c.prototype.encrypt=function(a){for(var b=[],c=0;16>c;c++)b[c]=Math.floor(256*Math.random());b=_.qla(b);c=i9c(this,a);return b.concat(c,j9c(this,b,a,!0))};
var k9c=function(a,b){var c=j9c(a,b.substring(0,16),b.substring(36),!1);b=b.substring(16,36);a=i9c(a,c);if(b!==a)throw Error("Ze");return c},i9c=function(a,b){a=_.jRc(a.O,_.DRc(b));return _.qla(a)},j9c=function(a,b,c,d){a.H.reset();a.H.update(b);a.H.update(a.key);b=new f9c;a=a.H.digest();if(!e)var e=a.length;for(var f=b.Db,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=_.DRc(c.substring(8192*
e,8192*(e+1))),g9c(b,a),d+=_.qla(a);return d}d=[];for(e=0;e<c.length/8192;e++){a=c.substring(8192*e,8192*(e+1));f=_.q.Uint8Array?new Uint8Array(a.length):Array(a.length);for(h=0;h<a.length;h++)f[h]=a.charCodeAt(h)&255;a=f;g9c(b,a);d.push(a)}if(d.length){for(c=0;c<d.length-1;c++)if(8192!==d[c].length)throw Error("$e");c=8192*(d.length-1)+d[d.length-1].length;b=Array(c);for(a=e=0;e<c;)f=l9c(d,e++),128>f?b[a++]=String.fromCharCode(f):191<f&&224>f?(h=l9c(d,e++),b[a++]=String.fromCharCode((f&31)<<6|h&
63)):239<f&&365>f?(h=l9c(d,e++),k=l9c(d,e++),l=l9c(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=l9c(d,e++),k=l9c(d,e++),b[a++]=String.fromCharCode((f&15)<<12|(h&63)<<6|k&63));b.length=a;d=b.join("")}else d="";return d},l9c=function(a,b){return a[Math.floor(b/8192)][b%8192]},m9c=function(a,b,c){this.data=a;this.ZVa=b;this.H=c;this.isEncrypted=!1};m9c.prototype.getData=function(){return this.data};
m9c.prototype.Bm=function(){return this.ZVa};var n9c=function(a,b,c,d){this.O=a;this.H=_.oi();this.Fo=!1;this.V=_.G(b,7,"");this.W=_.wk(_.PN(b),6,2E7);this.VE=_.XK(b);this.ha=_.wk(_.PN(b),12,0);this.ka=c;this.zd=d||null};n9c.prototype.initialize=function(){var a=this;this.Fo||(this.Fo=!0,this.O.initialize().then(function(){a.H.resolve()},function(b){a.H.reject(b)}));return _.yi(this.H.promise)};
n9c.prototype.BB=function(a){if(a instanceof _.vB)return 0;if(a instanceof wO)return 1;if(a instanceof i2c)return 5;if(a instanceof mO)return 3;if(a instanceof R6c)return 6;throw new _.Vb("Unsupported dataShard in getDataType");};var o9c=function(a){if(0==a)return _.vB;if(1==a)return wO;if(5==a)return i2c;if(3==a)return mO;if(6==a)return R6c;throw new _.Vb("Unsupported dataType:"+a+" in getDataTypeCtor");},p9c=function(a){if(a instanceof mO)return _.vk(a,13,0)};
n9c.prototype.Bm=function(a){if(a instanceof mO)return a.Dd().length};
var u9c=function(a,b,c,d){if(0==c.length)return _.ji();var e=a.BB(c[0]);c.forEach(function(){});var f=p9c(c[0]),h=0;3==e&&q9c(a,c);var k=!!b;return r9c(a,c).then(function(l){if(k){var n=a.zd?a.zd.H(106023,d):null;h=l.reduce(function(t,u){return t+u.Bm()},0);var p=s9c(a,b,l.map(function(t){return t.getData()})).then(function(t){if(t.length!=l.length)return _.ki(Error("af"));t.forEach(function(u,z){z=l[z];z.data=u;z.isEncrypted=!0});return l});n&&(u1c(t1c(s1c(n.iD(),_.XM(_.PQc,e)),_.XM(_.MQc,f)),!0),
p.then(function(){var t=h;r1c(n.iD(),!0).gw(t);n.ek()},function(){var t=h;r1c(n.iD(),!1).gw(t);n.ek()}));return p}return l}).then(function(l){return a.H.promise.then(function(){return t9c(a.O,l,e,f,k,d)})})},r9c=function(a,b){return new _.gi(function(c,d){var e=!1,f=[];b.forEach(function(l){if(!e){var n=l.Xb();if(n.length>a.W)e=!0;else{var p=f.push,t=a.Bm(l);l instanceof mO?(l=_.H(l,6),l=null!=l?l:void 0):l=void 0;p.call(f,new m9c(n,t,l))}}});if(e){var h=Error("bf"),k=new _.Ub;_.dL(k,2);_.pL(k,23);
_.A(k,21,h.message);_.Yq(k);a.ka(k);d(h)}c(f)})},q9c=function(a,b){p9c(b[0]);b.forEach(function(){});a.VE||v9c(b);w9c(a,b)},NO=function(a,b,c,d,e,f){var h=_.oi(),k;_.pi(a.H.promise.then(function(){return x9c(a.O,c,d,e)}).then(function(l){var n=l.map(function(t){return t.data}),p=new _.ri;if(l[0]&&l[0].CZ){if(k=a.zd?a.zd.H(106022,f):null)u1c(t1c(s1c(k.iD(),_.XM(_.PQc,c)),_.XM(_.MQc,d)),!0),p.xm().then(function(t){var u=k;t=void 0!=t;r1c(u.iD(),t);_.GUc(u)});y9c(a,p,b,n)}else p.callback(n);return p.then()},
function(){}).then(function(l){var n=[];if(l){var p=0;l.forEach(function(t){t=new (o9c(c))(JSON.parse(t));p+=a.Bm(t);n.push(t)});3==c&&(a.VE||z9c(n),A9c(n));k&&k.iD().gw(p)}h.resolve(n)}),function(){k&&k.ek()}).Yf(h.reject,h);return h.promise},v9c=function(a){if(a.length){for(var b=0;b<a.length;b++)if(a[b].nL().length)return;var c=new Map,d=new Map;a.forEach(function(f){(f.Dd()||[]).forEach(function(h){_.$Sc(h,B9c(_.Dl(h),c,d));_.aTc(h,B9c([h.Il()],c,d)[0]);var k=B9c([h.Nu()],c,d)[0];_.y(h,47,k);
k=B9c([h.Yp()],c,d)[0];_.y(h,91,k);k=B9c([h.KB()],c,d)[0];_.y(h,95,k);if(h=h.Jv())_.WSc(h,B9c(h.CP(),c,d)),_.XSc(h,B9c(_.Lk(h,_.ml,3),c,d))})});var e=[];c.forEach(function(f){e.push(f)});_.kb(a[0],2,e)}},B9c=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=e.getId();b.has(f)?_.Tk(e,b.get(f))?d.push(c.get(f)):d.push(e):(b.set(f,e.clone()),e=new _.ml,e.Pb(f),c.set(f,e),d.push(e))}else d.push(e)});return d},z9c=function(a){var b=new Map,c=new Map;a[0]&&a[0].nL()&&
a[0].nL().forEach(function(d){b.set(d.getId(),d);d=(new _.ml).Pb(d.getId());c.set(d.getId(),d)});b.size&&a.forEach(function(d){(d.Dd()||[]).forEach(function(e){_.$Sc(e,C9c(_.Dl(e),b,c));_.aTc(e,C9c([e.Il()],b,c)[0]);var f=C9c([e.Nu()],b,c)[0];_.y(e,47,f);f=C9c([e.Yp()],b,c)[0];_.y(e,91,f);f=C9c([e.KB()],b,c)[0];_.y(e,95,f);if(e=e.Jv())_.WSc(e,C9c(e.CP(),b,c)),_.XSc(e,C9c(_.Lk(e,_.ml,3),b,c))});_.Dk(d,2)})},C9c=function(a,b,c){if(!a)return a;var d=[];a.forEach(function(e){if(e&&e.getId()){var f=e.getId();
_.Tk(c.get(f),e)?d.push(_.Uk(b.get(f))):d.push(e)}else d.push(e)});return d},w9c=function(a,b){if(a.ha){a=a.ha;for(var c=b.length-1;0<=c;c--)if(_.vk(b[c],13,0)){for(var d=[],e=b[c].Dd();e.length>a;){var f=_.Ca(e,a-1,a);f=p5c(new mO,f);d.push(f)}p5c(b[c],e);d.length&&_.Wa(_.Ca,b,c+1,0).apply(null,d)}}},A9c=function(a){for(var b={},c=1;c<a.length;b={Wba:b.Wba},c++)if(!_.vk(a[c],13,0)){for(var d=0,e=c;e<a.length&&!_.vk(a[e],13,0);e++)d++;e=a[c-1];d=_.Ca(a,c,d);b.Wba=e.Dd();d.forEach(function(f){return function(h){_.za(f.Wba,
h.Dd())}}(b));p5c(e,b.Wba)}},s9c=function(a,b,c){if(!_.UQc()&&a.V){var d=new Worker(_.Pfa(_.Ox(a.V)),void 0),e=new _.ri;d.addEventListener("message",function(k){d.terminate();e.callback(k.data)},!1);d.addEventListener("error",function(k){d.terminate();e.Sd(Error(k))},!1);c=Z6c(new Y6c,c);d.postMessage({command:"encrypt",data:{request:c.Xb(),key:b}});return e}try{a=[];var f=new h9c(b);for(b=0;b<c.length;b++)a.push(f.encrypt(c[b]));var h=_.xi(a)}catch(k){h=_.zi(k)}return h},y9c=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(!_.UQc()&&a.V){var f=new Worker(_.Pfa(_.Ox(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 h9c(c);for(c=0;c<d.length;c++)a.push(k9c(h,d[c]));b.callback(a)}catch(k){b.callback(void 0)}},D9c=function(a,b,c){return[a.Dy(),a.clientId,b?"#":
OO(a)].join(":")+":"+(c||"")},E9c=function(a,b,c){this.global=void 0===c?!1:c;this.key=a;this.value=b};E9c.prototype.getKey=function(){return this.key};E9c.prototype.Ya=function(){return this.value};
var F9c=function(a,b){a=D9c(a,b);return o3c(a+"A",a+"z")},G9c=function(a,b){this.H=a;this.O=b},H9c=function(a){return a?new G9c(a.versionKey,a.versionChangeTimestamp):null},I9c=function(a,b){return a+":"+b},J9c=function(a,b,c,d,e){this.data=a;this.index=b;this.size=c;this.timestamp=d;this.CZ=void 0===e?null:e},K9c=function(a){return{data:a.data,index:a.index,size:a.size,timestamp:a.timestamp,e:a.CZ}},L9c=function(a,b,c,d){a=OO(a)+"_"+b;3===b&&(a+="_"+d);return a+=_.mx(":%02d",c)},M9c=function(a,b,
c,d){c=L9c(a,b,void 0===c?0:c,d);a=OO(a)+"_"+b;3===b&&(a+="_"+d);return o3c(c,a+":a")},N9c=function(a){var b=OO(a)+"_";a=OO(a)+"_A";return o3c(b,a)},O9c=function(a){return a?new J9c(a.data,a.index,a.size,a.timestamp,a.e):null},P9c=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=_.ya(e);_.Ia(this.fields);_.Fa(this.fields);this.H=f};P9c.prototype.Dy=function(){return this.userId};
P9c.prototype.Ag=function(){return _.ya(this.fields)};
var OO=function(a){if(!a.O){var b=new _.KK;b.update([a.userId,a.clientId,a.W,a.V].join(":"));b.update(a.fields);a.O=_.GOc(b.digest())}return a.O},Q9c=function(a){return{versionKey:OO(a),versionInfo:{u:a.userId,c:a.clientId,pv:a.W,phk:a.V,f:a.fields},lastAccessedTimestamp:a.H}},R9c=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 P9c(c.u,c.c,c.pv,c.phk,c.f,a.lastAccessedTimestamp);b?a.O=d:OO(a)!==d&&(a=null);return a},PO=function(a,
b,c,d){c=void 0===c?null:c;d=void 0===d?!1:d;_.P.call(this);var e=this;this.zd=b;this.W=c;this.readOnly=d;this.H=this.version=null;this.Ba=!1;this.va=!0;this.V=null;this.ka=!1;this.O="";this.ma=null;this.Pa=a.then(function(f){e.version=f});this.Ib=new _.pe(this);this.La(this.Ib)};_.N(PO,_.P);PO.prototype.initialize=function(){return S9c(this)};
var S9c=function(a,b){a.V||(a.V=_.oi(),a.Pa.then(function(){b?(a.va=!1,T9c(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)"),_.xPc("GoogleDriveDs",2,a.Fa.bind(a),a.oa.bind(a)).lg(a.Ja.bind(a),a.oa.bind(a)),_.Si(2E4).then(a.Ha.bind(a)))},function(c){a.V.reject(new _.Vb("Database version error",void 0,_.WK(c)?c:void 0))}));return a.V.promise},T9c=function(a,b){a.H=b;a.Ib.listen(a.H,"close",
a.ha.bind(a,"Browser closing database"));a.Ib.listen(a.H,"versionchange",a.ha.bind(a,"Database version change detected, closing"))};PO.prototype.Fa=function(a,b){this.log("Upgrading GoogleDriveDs to version "+a.newVersion);this.Ba=!0;_.Ka(b.H.objectStoreNames,function(c){return _.vTc(b,c)});_.bg(_.nL,function(c){var d=_.pRc.get(c);_.uPc(b,c,d?{keyPath:d}:void 0)})};
PO.prototype.oa=function(a){var b;a&&a instanceof _.NK&&"InvalidStateError"==a.getName()&&_.Qj.Fv?b=Error("cf"):_.WK(a)&&(b=a);this.ha("Unable to open database GoogleDriveDs (version 2)");this.V.reject(b);U9c(this,!1)};PO.prototype.Ja=function(a){this.ka?a.dispose():(T9c(this,a),this.La(this.H),this.readOnly||V9c(this).Yf(function(){}),this.log("Initialized database GoogleDriveDs"),this.V.resolve(),U9c(this,!0))};
var U9c=function(a,b){if(a.ma){var c=a.ma,d=_.D(_.WM(c),v1c,5);d||(d=new v1c,c=_.WM(c),_.y(c,5,d));d=_.A(d,1,2);c=a.yi().W;d=_.A(d,2,c);c=a.yi().ka;d=_.A(d,5,c);b=_.A(d,3,b);b=_.A(b,4,a.Ba);d=a.yi().ma;_.A(b,6,d);a.ma.ek();a.ma=null}};PO.prototype.Ha=function(){this.H||this.Xg()||(this.ha("Opening database GoogleDriveDs timed out."),this.oa(Error("df")))};PO.prototype.ha=function(a){this.log(a);this.ka||(this.ka=!0,this.O="Database disabled: "+a,this.H&&this.va&&this.H.close())};PO.prototype.Xg=function(){return this.ka};
var W9c=function(a){return a.ka?a.O:null};PO.prototype.yi=function(){return this.version};
var QO=function(a,b,c){c=void 0===c?"readonly":c;if(a.readOnly&&"readonly"!=c)return null;a=a.H;try{return _.vPc(a,[b],c)}catch(d){return null}},V9c=function(a){var b=_.nL.qY,c=QO(a,b,"readwrite");if(!c)return _.ki(Error("ef"));c.objectStore(b).put(Q9c(a.yi()));return c.wait().then(function(){})},X9c=function(a){if(!a.H)return _.ki(Error("ff"));if(a.Xg())return _.ki(Error(a.O));var b=_.nL.qY,c=QO(a,b,"readwrite");return c?c.objectStore(b).remove(OO(a.yi())).then():_.ki(Error("gf"))},Y9c=function(a,
b,c){if(!a.length)return b.resolve([]),null;var d=[];a.forEach(function(h){(h=O9c(h))&&(d[h.index]=h)});if(!d[0])return b.reject(Error("hf")),0;a=d[0].timestamp;if(!a)return b.reject(Error("jf")),0;var 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},x9c=function(a,b,c,d){if(!a.H||3==b&&void 0==c)return _.ki(Error("of"));if(a.Xg())return _.ki(Error(a.O));var e=M9c(a.yi(),b,0,c),f=_.nL.D3,h=QO(a,f);if(!h)return _.ki(Error("pf"));e=h.objectStore(f).getAll(e);var k=_.oi();e.lg(function(l){l=Y9c(l,k,d);a.readOnly||null==l||Z9c(a,b,c,l).Yf(function(){})},k.reject);return k.promise},t9c=function(a,b,c,d,e,f){if(a.H){if(a.Xg())return _.ki(Error(a.O));if(100<b.length||3==c&&void 0==d)return _.ki(Error("qf"))}else return _.ki(Error("rf"));
var h=Date.now(),k=b.length;b=b.map(function(t,u){return{key:L9c(a.yi(),c,u,d),data:new J9c(t.getData(),u,k,h,e),metadata:t}});var l=_.nL.D3,n=QO(a,l,"readwrite");if(!n)return _.ki(Error("sf"));var p=n.objectStore(l);b.forEach(function(t){var u=$9c(a,c,d,t.metadata,f);p.put(K9c(t.data),t.key).then(function(){u&&(r1c(u.iD(),!0),u.ek())},function(z){var B=z instanceof _.NK?z.code:_.XOc;u&&a.W&&(z=r1c(u.iD(),!1),B=_.XM(_.QQc,B),_.A(z,2,B),u.ek())})});return n.wait().then(function(){})},$9c=function(a,
b,c,d,e){if(a.W){if(a=a.W.H(106019,e))b=t1c(s1c(a.iD(),_.XM(_.PQc,b)),_.XM(_.MQc,c)),c=d.H,b=_.A(b,5,null==c?0:c?2:1),u1c(b,d.isEncrypted),void 0!=d.Bm()&&a.iD().gw(d.Bm());return a}return null},Z9c=function(a,b,c,d){d=void 0===d?0:d;if(a.H){if(a.Xg())return _.ki(Error(a.O));if(3==b&&void 0==c)return _.ki(Error("tf"))}else return _.ki(Error("uf"));b=M9c(a.yi(),b,d,c);c=_.nL.D3;a=QO(a,c,"readwrite");if(!a)return _.ki(Error("vf"));a.objectStore(c).remove(b);return a.wait().then(function(){})},a$c=function(a){if(!a.H)return _.ki(Error("wf"));
if(a.Xg())return _.ki(Error(a.O));var b=N9c(a.yi()),c=_.nL.D3;a=QO(a,c,"readwrite");if(!a)return _.ki(Error("xf"));a.objectStore(c).remove(b);return a.wait().then(function(){})};
PO.prototype.getMetadata=function(a){if(this.H){if(this.Xg())return _.ki(Error(this.O));if(a&&0==a.length)return _.ki(Error("yf"))}else return _.ki(Error("zf"));var b=this.yi(),c=_.nL.T4,d=QO(this,c);if(!d)return _.ki(Error("Af"));var e=d.objectStore(c);if(a){var f=[];a.forEach(function(k){f.push(e.get(D9c(b,k.global,k.key)).then())});a=_.mi(f)}else a=_.mi([e.getAll(F9c(b,!1)).then(),e.getAll(F9c(b,!0)).then()]).then(function(k){return wYc(k[0],k[1])});var h=_.oi();a.then(function(k){h.resolve(k.map(function(l){if(l){var n=
l.k.split(":"),p="#"===n[2];l=4!==n.length||!p&&n[2]!==OO(b)||n[0]!==b.Dy()||n[1]!==String(b.clientId)?null:new E9c(n[3],l.v,p)}else l=null;return l}))},h.reject);return h.promise};
var b$c=function(a,b){if(a.H){if(a.Xg())return _.ki(Error(a.O));if(0==b.length)return _.ki(Error("Bf"))}else return _.ki(Error("Cf"));var c=_.nL.T4,d=QO(a,c,"readwrite");if(!d)return _.ki(Error("Df"));var e=d.objectStore(c),f=[];b.forEach(function(h){var k=f.push,l=e.put,n=a.yi();h={k:D9c(n,h.global,h.key),v:h.value};k.call(f,l.call(e,h).then())});return _.mi(f).then(function(){})},c$c=function(a,b){b=void 0===b?!1:b;if(a.H){if(a.Xg())return _.ki(Error(a.O))}else return _.ki(Error("Ff"));var c=a.yi(),
d=_.nL.T4;a=QO(a,d,"readwrite");if(!a)return _.ki(Error("Gf"));d=a.objectStore(d);a=[];a.push(d.remove(F9c(c,!1)).then());b&&a.push(d.remove(F9c(c,!0)).then());return _.mi(a).then(function(){})},d$c=function(a){if(!a.H)return _.ki(Error("Hf"));if(a.Xg())return _.ki(Error(a.O));var b=I9c(a.yi().Dy(),a.yi().clientId),c=_.nL.sS;return(a=QO(a,c))?a.objectStore(c).get(b).then(function(d){return H9c(d)}):_.ki(Error("If"))},e$c=function(a,b){b=void 0===b?!1:b;if(!a.H)return _.ki(Error("Jf"));if(a.Xg())return _.ki(Error(a.O));
var c=a.yi(),d=I9c(c.Dy(),c.clientId);b=new G9c(OO(c),b?Date.now():void 0);c=_.nL.sS;a=QO(a,c,"readwrite");if(!a)return _.ki(Error("Kf"));a.objectStore(c).put({versionKey:b.H,versionChangeTimestamp:b.O},d);return a.wait().then(function(){})};
PO.prototype.Uk=function(a){var b=this;return this.H?this.Xg()?_.ki(Error(this.O)):d$c(this).then(function(c){var d=OO(b.yi());if(c)if(a){if(!c.O&&d==c.H&&d!=OO(a))return e$c(b,!0);if(c.O&&d==OO(a))return e$c(b)}else{if(d!=c.H)return e$c(b)}else if(!a)return e$c(b)}):_.ki(Error("Lf"))};var f$c=function(a){if(!a.H)return _.ki(Error("Mf"));if(a.Xg())return _.ki(Error(a.O));var b=a.yi(),c=I9c(b.Dy(),b.clientId);return d$c(a).then(function(d){if(d){d=_.nL.sS;var e=QO(a,d,"readwrite");if(e)return e.objectStore(d).remove(c).then()}})};
PO.prototype.clear=function(a){var b=this;a=void 0===a?!1:a;return this.H?this.Xg()?_.ki(Error(this.O)):d$c(this).then(function(c){var d=c&&c.H==OO(b.yi());return d&&!a?!1:(c&&d?f$c(b):_.ji()).then(function(){return _.mi([c$c(b,a),a$c(b),X9c(b)]).then(function(){return!0},function(){return!1})},function(){return!1})}):_.ki(Error("Nf"))};PO.prototype.close=function(){this.ha("Closing database")};PO.prototype.log=function(a){this.zd.info("drive.ds.sync.storage.VersionedDb",a)};
var g$c=function(a){if(1>=a.yi())return!1;var b=a.H.objectStoreNames;return _.Yc(_.nL).every(function(c){return b&&b.contains(c)})},h$c=function(){var a=_.oi();_.xPc("GoogleDriveDs").lg(function(b){b?g$c(b)?a.resolve(b):(b.close(),_.pi(p3c().then(),function(){a.resolve(null)})):a.resolve(null)},function(){a.resolve(null)});return a.promise},i$c=function(a,b,c){var d=_.oi();a?_.vPc(a,[_.nL.qY],"readonly").objectStore(_.nL.qY).getAll().lg(function(e){e=_.Yc(e).map(function(f){return R9c(f)}).filter(function(f){return null!=
f});d.resolve(e.filter(function(f){return(!b||f.Dy()==b)&&(!c||f.clientId==c)}))},d.reject):d.resolve([]);return d.promise},j$c=function(a,b,c){var d=_.oi();h$c().then(function(e){if(e){var f=_.nL.sS;_.vPc(e,[f],"readonly").objectStore(f).get(a+":"+b).then(function(h){return H9c(h)}).then(function(h){if(h){var k=0;"number"==typeof c&&"number"==typeof h.O&&(k=c+h.O-Date.now());var l=_.nL.qY,n=_.vPc(e,[l],"readonly");n.objectStore(l).get(h.H).then(function(p){(p=R9c(p))?(p.ka=!0,0>k?p.ha=!0:0<k&&(p.ma=
k),d.resolve(p)):d.resolve(null)});_.ui(n.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},k$c=function(a,b,c){var d=_.oi(),e=new PO(_.ji(a),b);S9c(e,c).then(function(){return d.resolve(e)},d.reject);return d.promise},l$c=function(a,b,c,d,e){e=void 0===e?!1:e;var f=[];a.forEach(function(h){var k=k$c(h,b,c);f.push(k.then(function(l){return l.clear(e)}).then(function(l){return l?h:void 0}))});_.mi(f).then(function(h){var k=
[];h.forEach(function(l){l&&(k.push(l),b.info("drive.ds.sync.storage.VersionedDb","Cleared version: "+OO(l)))});d.resolve(k)})},m$c=function(a,b,c){var d=Date.now()-12096E5,e=_.oi();h$c().then(function(f){f?(_.pi(e.promise,function(){f.close()}),i$c(f,a,b).then(function(h){return h.filter(function(k){return k.H<d})},function(){return[]}).then(function(h){l$c(h,c,f,e)})):e.resolve([])});return e.promise},n$c=function(a,b,c){var d=_.oi();h$c().then(function(e){e?(_.pi(d.promise,function(){e.close()}),
i$c(e,a,b).then(function(f){l$c(f,c,e,d,!0)})):d.resolve([])});return d.promise},o$c=function(a,b,c,d){if(a.length){var e=_.nL.D3,f=a.shift(),h=L9c(f,3,0,1);try{_.vPc(c,[e],"readonly").objectStore(e).get(h).then(function(k){(k=O9c(k))&&(!k.CZ||k.CZ&&d.has(f.V))?b.resolve(f):o$c(a,b,c,d)},function(){return b.resolve(null)})}catch(k){b.resolve(null)}}else b.resolve(null)},p$c=function(a,b,c,d,e,f,h){var k=_.oi();h$c().then(function(l){l?(_.pi(k.promise,function(){l.close()}),i$c(l,a,b).then(function(n){return n.filter(function(p){return(!h||
h!=OO(p))&&p.W==c&&p.H>=e&&OYc(d.filter(function(t){return!_.qRc.has(t)}),p.Ag(),b)})},function(){return[]}).then(function(n){n.length?(n.sort(function(p,t){return t.H-p.H}),o$c(n,k,l,new Set(f))):k.resolve(null)})):k.resolve(null)});return k.promise},q$c={key:"rid",global:!0},r$c={key:"ooi",global:!0},s$c={key:"rtds",global:!1},t$c={key:"dct",global:!1},u$c={key:"pc",global:!1},v$c=function(a){this.H=new _.gi(function(b){a?a.initialize().then(function(){return b(a)},function(){return b(null)}):b(null)})};
v$c.prototype.get=function(a){return this.H.then(function(b){if(b&&!b.Xg())return b.getMetadata([a]).then(function(c){return(c=c[0])?c.Ya():void 0},function(){})})};v$c.prototype.set=function(a,b){return this.H.then(function(c){return c&&!c.Xg()?b$c(c,[new E9c(a.key,b,a.global)]).then(function(){return!0},function(){return!1}):!1})};v$c.prototype.mn=function(){return this.get(q$c).then(function(a){return a?a:null})};v$c.prototype.yt=function(a){return this.set(q$c,a)};
var w$c=function(a){return a.get(r$c).then(function(b){return"boolean"===typeof b?b:null})};v$c.prototype.Bx=function(a){return this.set(r$c,a)};var x$c=function(a){return a.get(u$c).then(function(b){return"boolean"===typeof b?b:null})},y$c=function(a){return a.get(s$c).then(function(b){return Array.isArray(b)?b:null})},z$c=function(a){return a.get(t$c).then(function(b){return"number"===typeof b?b:null})},A$c=function(){this.Li=[]};_.N(A$c,_.kN);
A$c.prototype.add=function(a,b){var c=a.mu.request;return c instanceof _.hM&&_.C(c.request,12)?_.kN.prototype.add.call(this,a,b):!1};A$c.prototype.Spa=function(a){return this.Li.splice(0,Math.min(a,1))};var B$c=function(a,b){this.Li=[];this.H=b};_.N(B$c,_.kN);B$c.prototype.add=function(a,b){return a.mu.request instanceof _.hM?!1:_.kN.prototype.add.call(this,a,b)};
B$c.prototype.Spa=function(a){for(var b=[],c=[],d={},e=0,f=0;f<this.Li.length&&b.length<a;f++){var h=this.Li[f],k=h.mu.request;k instanceof _.CL||k instanceof _.NL||k instanceof _.cM?k="app|"+k.ih():k instanceof _.xL||k instanceof _.yL||k instanceof _.EL||k instanceof _.iL?k="item|"+(k instanceof _.xL?k.Gc():k.getId()):k instanceof _.FL||k instanceof _.OL?k="item|"+k.Gc():k instanceof _.GL||k instanceof _.eM?k="item|"+k.Gc():k instanceof _.lC||k instanceof _.kC?(k=k instanceof _.lC?_.D(k,_.kp,1).getKey():
k.getKey(),k="pref|"+_.C(k,2)+"|"+_.lp(k)):k=k instanceof _.HL?"td|"+k.getId():null;var l=h.mu.request;if(l instanceof _.AL)l=!!_.H(l,8);else if(l instanceof _.yL){l=this.H.H(l.getId());var n;if(n=!!l)n=!!(l&&l.getMimeType()&&_.l6a.has(l.getMimeType()));l=n}else l=!1;if(k&&d[k]||l&&5===e)break;b.push(h);c.unshift(f);k&&(d[k]=!0);l&&e++}for(a=0;a<c.length;a++)_.sa(this.Li,c[a]);return b};
C$c=function(a,b,c,d,e,f,h,k,l){a=a.Of();h=new _.rWc(k,h,d,_.wk(a,32,1073741824),_.wk(a,21,1E3));h=new _.sWc(h);k=new _.SVc(_.wk(a,59,2E3),_.wk(a,60,2E4),_.wk(a,61,6));var n={};n[1]=_.uWc(b,d);n[2]=_.vWc(b,a,e,c,k,d,l);n[3]=_.wWc(b,a,e,c,k,d,l,"batch");var p=_.wk(a,10,50);if(l){var t=new _.$Vc(l.getState());var u=new _.XVc(l)}else t=new _.RVc(e,c),u=new _.QVc(c);f=new _.mN(d,b,[t,new _.VVc(p,_.wk(a,11,100)),new _.lN(p),new _.jN(k,d)],[new B$c(a,f),new A$c,new _.kN],[u,new _.cWc(a,k,l?l.getState():
e,d)],"mutation");return n[4]=f,n[5]=_.xWc(h,a,d),n[6]=_.wWc(b,a,e,c,k,d,l,"find_by_ids_batch"),n[7]=_.wWc(b,a,e,c,k,d,l,"xd4_batch"),n[8]=_.wWc(b,a,e,c,k,d,l,"xd4_immediate_batch",1),n};D$c=function(a){return a.nextPageToken?a.nextPageToken:a.continuationToken?a.continuationToken:""};E$c=function(a){var b={};return b.parentId=a.rk(),b};F$c=function(a){var b={};_.ld(_.$g(a.getTitle()))||(b.title=a.getTitle());_.HXc(b,_.Jd(a,3));_.H(a,8)&&(b.description="",a={},b.labels=(a.starred=!1,a));return b};
G$c=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=_.C(a,3)&&(b.workspaceToken=_.C(a,3));return b};H$c=function(a){var b={};b.sourceIds=_.Jd(a.request,1);b.destinationFolderId=_.C(a.request,2);a.pageToken&&(b.continuationToken=a.pageToken);return b};
I$c=function(a){var b={},c={};_.ld(_.$g(a.getTitle()))||(b.title=a.getTitle());null!=a.ag()&&(b.description=a.ag());null!=_.H(a,4)&&(c.starred=_.H(a,4));null!=a.Ah()&&(c.trashed=a.Ah());_.ld(_.$g(a.getMimeType()))||(b.mimeType=a.getMimeType());"number"===typeof _.C(a,7)&&(b.modifiedDate=_.sTc(_.qUc(_.C(a,7)||0)));null!=_.H(a,11)&&(c.restricted=_.H(a,11));_.fg(c)&&(b.labels=c);null!=a.Ii()&&(b.folderColor=a.Ii());null!=_.H(a,16)&&(b.subscribed=_.H(a,16));null!=_.H(a,40)&&(c={},b.linkShareMetadata=
(c.securityUpdateEnabled=_.H(a,40),c));if(c=_.D(a,_.yl,25)){b.contentRestrictions=[];var d={};null!=_.H(c,1)&&(d.readOnly=_.H(c,1));null!=_.C(c,2)&&(d.reason=_.C(c,2));b.contentRestrictions.push(d)}_.HXc(b,_.Jd(a,8));return b};J$c=function(a){var b={};null!=_.H(a,3)&&(b.pinned=_.H(a,3));return b};
K$c=function(a){var b={};null!=a.getTitle()&&(b.name=a.getTitle());if(null!=_.C(a,3))b.backgroundImageId=_.C(a,3);else{var c=_.C(a,6);null!=c&&(c=c.toString(16),b.colorRgb="#"+(0,_.Yg)("0",6-c.length)+c);c=_.D(a,_.i1c,9);if(null!=c){a={};var d=c.getId();d&&(a.id=d);d=_.C(c,2);"number"===typeof d&&(a.xCoordinate=d);d=_.C(c,3);"number"===typeof d&&(a.yCoordinate=d);(c=c.ze())&&(a.width=c);b.backgroundImageFile=a}}return b};
L$c=function(a){var b={};null!=a.getTitle()&&(b.title=a.getTitle());null!=a.getState()&&(a=_.KXc[a.getState()])&&(b.state=a);return b};_.M$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.M$c,_.L);_.M$c.prototype.O=function(){return _.C(this,1)};var N$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(N$c,_.L);N$c.prototype.O=function(){return _.H(this,1)};N$c.prototype.V=function(){return _.C(this,2)};_.RO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.RO,_.L);_.g=_.RO.prototype;
_.g.getId=function(){return _.C(this,1)};_.g.Pb=function(a){return _.A(this,1,a)};_.g.getTitle=function(){return _.C(this,2)};_.g.setTitle=function(a){return _.A(this,2,a)};_.g.Upa=function(){return _.C(this,3)};_.g.Sx=function(){return _.C(this,4)};_.g.s8=function(){return _.D(this,N$c,6)};_.g.Rnb=function(){return _.D(this,_.M$c,7)};_.g.XRa=function(){return _.C(this,8)};_.g.Tpa=function(){return _.H(this,9)};_.SO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.SO,_.L);_.g=_.SO.prototype;
_.g.getType=function(){return _.C(this,1)};_.g.getId=function(){return _.C(this,2)};_.g.Pb=function(a){return _.A(this,2,a)};_.g.getTitle=function(){return _.C(this,3)};_.g.setTitle=function(a){return _.A(this,3,a)};_.g.Md=function(){return _.C(this,5)};_.g.setSize=function(a){return _.A(this,5,a)};_.g.T6a=function(){return _.C(this,6)};_.O$c=function(a,b){return _.A(a,6,b)};_.SO.prototype.ag=function(){return _.C(this,8)};_.SO.prototype.Tk=function(a){return _.A(this,8,a)};
_.SO.prototype.O=function(){return _.H(this,9)};var TO=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.W=a;this.oa=b;this.Ba=c;this.request=e;this.va=f;this.H=[];this.items=[];this.V=!0;this.O=!1;this.suggestionSessionId=null;this.Fa=d;this.status=6;this.ha=FZc(new _.wN,[1]);this.limit=e.ki();this.Ke=0;_.ge(this,function(){h.O=!1;h.H=[]})};_.N(TO,_.Q);_.g=TO.prototype;_.g.li=function(){return String(_.Ea(this))};_.g.isActive=function(){return this.O};
_.g.activate=function(){this.O=!0;_.oa(this.items)&&6===this.Cb()&&this.tj()||P$c(this)};_.g.ud=function(){return this.request};_.g.ki=function(){return this.limit};_.g.Cb=function(){return this.status};_.g.ur=function(){return this.ha};_.g.tj=function(){return this.V};_.g.mr=function(){var a=_.lYc().xy(this.H,this.items),b=(new _.MOc).Ac(this.Cb());a=_.kb(b,2,a);this.H=this.items;return a};_.g.Qq=function(a){this.O&&(this.limit+=a||50,this.Fa(this.li(),this.limit))};
var Q$c=function(a,b){return a.Cb()!==b.Cb()||RN(_.lYc(),a.items,b.Dd())},R$c=function(a,b){a.items=b.Dd();a.status=b.Cb();_.XK(a.va)&&(a.ha=GZc(a.status,a.items));a.V=b.Qk();a.Ke=b.Ue()};TO.prototype.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a query after "+a.H+" retries.",a.error)))};TO.prototype.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};
TO.prototype.pt=function(a,b){var c=this;b+="\n\n\nQuery:\n"+rO(this.W,this.ud());return _.yi(this.oa.then(function(d){return d.EHb(a,b,c.ud(),c.ki(),c.items)}))};
var P$c=function(a){a.isActive()&&(a.log("Livelist "+a.li()+" returning "+a.items.length+". Status: "+(_.mg(l2c)[a.Cb()]+". Datasource: ")+(_.mg(a3c)[a.Ke]+". Query: ")+(rO(a.W,a.request)+" ")+HZc(a.items)),S$c(a,a.items,a.request),a.dispatchEvent(new _.Fi(_.Mc,a)))},S$c=function(a,b,c){if(_.PL(c))c="quick access";else if(_.QL(c))c="people predict";else if(_.RL(c))c="drive priority";else return;b=b.map(function(d){return d.getId()}).join(", ");a.log("Livelist "+a.li()+" returning "+a.items.length+
" for "+(c+": "+b))};TO.prototype.refresh=function(){};TO.prototype.log=function(a){this.Ba.info("drive.ds.sync.BaseViewCacheLiveList",a)};_.r("sy166");
var T$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(T$c,_.L);
var U$c=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(U$c,_.L);U$c.prototype.getType=function(){return _.C(this,1)};var V$c=function(a){var b=new U$c;return _.A(b,1,a)},W$c=function(a,b){return _.y(a,2,b)};U$c.prototype.Zw=function(){return _.C(this,3)};U$c.prototype.Cx=function(a){return _.A(this,3,a)};U$c.prototype.Xh=function(){return _.C(this,4)};U$c.prototype.setPosition=function(a){return _.A(this,4,a)};
var UO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(UO,_.L);UO.prototype.getType=function(){return _.C(this,1)};var X$c=function(a){var b=new UO;return _.A(b,1,a)};UO.prototype.Cm=function(){return _.D(this,bO,2)};var Y$c=function(a,b){return _.y(a,2,b)};UO.prototype.Zw=function(){return _.C(this,3)};UO.prototype.Cx=function(a){return _.A(this,3,a)};UO.prototype.Xh=function(){return _.C(this,4)};UO.prototype.setPosition=function(a){return _.A(this,4,a)};
var VO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(VO,_.L);VO.prototype.getType=function(){return _.C(this,1)};var Z$c=function(a){var b=new VO;return _.A(b,1,a)};VO.prototype.Cm=function(){return _.D(this,_.AA,2)};var $$c=function(a,b){return _.y(a,2,b)};VO.prototype.Zw=function(){return _.C(this,3)};VO.prototype.Cx=function(a){return _.A(this,3,a)};VO.prototype.Xh=function(){return _.C(this,4)};VO.prototype.setPosition=function(a){return _.A(this,4,a)};
var aad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(aad,_.L);aad.prototype.Cb=function(){return _.C(this,1)};aad.prototype.Ac=function(a){return _.A(this,1,a)};aad.prototype.Eq=function(){return _.D(this,_.aO,2)};
var cad=function(a){(0,_.S)(this,a,0,-1,bad,null)};_.O(cad,_.L);var bad=[2];cad.prototype.Cb=function(){return _.C(this,1)};cad.prototype.Ac=function(a){return _.A(this,1,a)};cad.prototype.Dj=function(){return _.C(this,3)};
var dad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(dad,_.L);dad.prototype.Me=function(){return _.D(this,V1c,1)};dad.prototype.Tn=function(){return _.C(this,2)};
var ead=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(ead,_.L);_.g=ead.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Eq=function(){return _.D(this,_.aO,2)};_.g.Dj=function(){return _.C(this,3)};_.g.ih=function(){return _.C(this,4)};
var WO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(WO,_.L);WO.prototype.Cb=function(){return _.C(this,1)};WO.prototype.Ac=function(a){return _.A(this,1,a)};WO.prototype.Dj=function(){return _.C(this,3)};
var fad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(fad,_.L);_.g=fad.prototype;_.g.Cb=function(){return _.C(this,1)};_.g.Ac=function(a){return _.A(this,1,a)};_.g.Dj=function(){return _.C(this,2)};_.g.oJa=function(){return _.D(this,_.kp,3)};_.g.getKey=function(){return _.D(this,_.xb,4)};_.g.Nq=function(){return _.sk(this,4)};
var had=function(a){(0,_.S)(this,a,0,-1,null,gad)};_.O(had,_.L);var jad=function(a){(0,_.S)(this,a,0,-1,iad,null)};_.O(jad,_.L);var gad=[[2,4,6,10],[3,5,7,8,9]];had.prototype.getKey=function(){return _.C(this,1)};had.prototype.Nq=function(){return _.sk(this,1)};var iad=[1];
var kad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(kad,_.L);
var XO=function(a){(0,_.S)(this,a,0,-1,lad,null)};_.O(XO,_.L);var lad=[2];XO.prototype.Cb=function(){return _.C(this,1)};XO.prototype.Ac=function(a){return _.A(this,1,a)};XO.prototype.O=function(){return _.Lk(this,VN,2)};var mad=function(a,b){return _.kb(a,2,b)};XO.prototype.Dj=function(){return _.C(this,3)};
var nad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(nad,_.L);nad.prototype.Cb=function(){return _.C(this,1)};nad.prototype.Ac=function(a){return _.A(this,1,a)};nad.prototype.O=function(){return _.D(this,VN,2)};nad.prototype.Dj=function(){return _.C(this,3)};
var oad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(oad,_.L);oad.prototype.Yw=function(){return _.C(this,2)};
var qad=function(a){(0,_.S)(this,a,0,-1,pad,null)};_.O(qad,_.L);var pad=[2];qad.prototype.Cb=function(){return _.C(this,1)};qad.prototype.Ac=function(a){return _.A(this,1,a)};qad.prototype.Ek=function(){return _.Lk(this,_.gYc,2)};qad.prototype.vq=function(a,b){return _.Rk(this,2,a,_.gYc,b)};
var sad=function(a){(0,_.S)(this,a,0,-1,rad,null)};_.O(sad,_.L);var rad=[2];sad.prototype.Cb=function(){return _.C(this,1)};sad.prototype.Ac=function(a){return _.A(this,1,a)};sad.prototype.jk=function(){return _.Lk(this,UO,2)};
_.uad=function(a){(0,_.S)(this,a,0,-1,tad,null)};_.O(_.uad,_.L);var tad=[1];
_.YO=function(a){(0,_.S)(this,a,0,-1,vad,null)};_.O(_.YO,_.L);var vad=[1,2];_.YO.prototype.RT=function(){return _.Lk(this,_.rSb,2)};_.YO.prototype.re=function(){return _.D(this,_.bf,3)};
_.ZO=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.ZO,_.L);_.ZO.prototype.Cb=function(){return _.C(this,1)};_.ZO.prototype.Ac=function(a){return _.A(this,1,a)};_.ZO.prototype.yg=function(){return _.D(this,_.vB,2)};_.wad=function(a,b){return _.y(a,2,b)};_.ZO.prototype.Dj=function(){return _.C(this,3)};
var xad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(xad,_.L);xad.prototype.Cb=function(){return _.C(this,1)};xad.prototype.Ac=function(a){return _.A(this,1,a)};
var zad=function(a){(0,_.S)(this,a,0,-1,yad,null)};_.O(zad,_.L);var yad=[2];zad.prototype.Cb=function(){return _.C(this,1)};zad.prototype.Ac=function(a){return _.A(this,1,a)};zad.prototype.jk=function(){return _.Lk(this,VO,2)};
var Aad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Aad,_.L);Aad.prototype.getType=function(){return _.C(this,1)};var Bad=function(a){var b=new Aad;return _.A(b,1,a)};Aad.prototype.Zw=function(){return _.C(this,3)};Aad.prototype.Cx=function(a){return _.A(this,3,a)};Aad.prototype.Xh=function(){return _.C(this,4)};Aad.prototype.setPosition=function(a){return _.A(this,4,a)};
var Dad=function(a){(0,_.S)(this,a,0,-1,Cad,null)};_.O(Dad,_.L);var Cad=[2];Dad.prototype.Cb=function(){return _.C(this,1)};Dad.prototype.Ac=function(a){return _.A(this,1,a)};Dad.prototype.Dj=function(){return _.C(this,3)};
_.Ead=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.Ead,_.L);_.Ead.prototype.getId=function(){return _.C(this,1)};_.Ead.prototype.Pb=function(a){return _.A(this,1,a)};_.Ead.prototype.re=function(){return _.D(this,_.bf,4)};
var Gad=function(a){(0,_.S)(this,a,0,-1,Fad,null)};_.O(Gad,_.L);var Fad=[2,4];Gad.prototype.Cb=function(){return _.C(this,1)};Gad.prototype.Ac=function(a){return _.A(this,1,a)};Gad.prototype.Dj=function(){return _.C(this,3)};
_.$O=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.$O,_.L);_.$O.prototype.getType=function(){return _.C(this,1)};var Had=function(a){var b=new _.$O;return _.A(b,1,a)},Iad=function(a,b){return _.y(a,2,b)};_.$O.prototype.Zw=function(){return _.C(this,3)};_.$O.prototype.Cx=function(a){return _.A(this,3,a)};_.$O.prototype.Xh=function(){return _.C(this,4)};_.$O.prototype.setPosition=function(a){return _.A(this,4,a)};
_.XZc=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(_.XZc,_.L);_.g=_.XZc.prototype;_.g.getItem=function(){return _.D(this,_.Cl,1)};_.g.setItem=function(a){return _.y(this,1,a)};_.g.getError=function(){return _.D(this,_.Ub,2)};_.g.Re=function(a){return _.y(this,2,a)};_.g.In=function(){return _.sk(this,2)};_.g.Ur=function(){return _.C(this,4)};
var Kad=function(a){(0,_.S)(this,a,0,-1,Jad,null)};_.O(Kad,_.L);var Jad=[2,4];
var Mad=function(a){(0,_.S)(this,a,0,-1,Lad,null)};_.O(Mad,_.L);var Lad=[1];
var Oad=function(a){(0,_.S)(this,a,0,-1,Nad,null)};_.O(Oad,_.L);var Nad=[2];Oad.prototype.Cb=function(){return _.C(this,1)};Oad.prototype.Ac=function(a){return _.A(this,1,a)};Oad.prototype.Dj=function(){return _.C(this,3)};
var Qad=function(a){(0,_.S)(this,a,0,-1,Pad,null)};_.O(Qad,_.L);var Pad=[2];Qad.prototype.Cb=function(){return _.C(this,1)};Qad.prototype.Ac=function(a){return _.A(this,1,a)};Qad.prototype.Dj=function(){return _.C(this,3)};
var Rad=function(a){(0,_.S)(this,a,0,-1,null,null)};_.O(Rad,_.L);
var Tad=function(a){(0,_.S)(this,a,0,-1,Sad,null)};_.O(Tad,_.L);var Sad=[1];Tad.prototype.O=function(){return _.C(this,2)};var Uad=function(a,b){_.A(a,2,b)};
var Vad=function(a){_.Fi.call(this,"Ob");this.dataType=a};_.N(Vad,_.Fi);
var Wad=function(a,b){_.Fi.call(this,"Pb");this.$La=a;this.nra=b};_.N(Wad,_.Fi);
var Xad=function(){};_.g=Xad.prototype;_.g.BK=function(a,b){return g3c(f3c(1),a).setPosition(b)};_.g.zK=function(a,b){return g3c(f3c(2).setPosition(b),a)};_.g.YC=function(a,b,c){return g3c(f3c(3).Cx(b).setPosition(c),a)};_.g.CO=function(a,b){return g3c(f3c(4),a).setPosition(b)};_.g.aL=function(a){return _.D(a,YN,2)};
var Yad=function(){_.tN.call(this,new Xad,function(a){return a&&a.getName()})};_.N(Yad,_.tN);
var aP=function(a,b,c){c=void 0===c?50:c;_.Q.call(this);var d=this;this.W=a;this.connectionState=b;this.limit=c;this.active=!1;this.status=6;this.va=FZc(new _.wN,[1]);this.ha=this.H=!1;this.Ic=new _.pe(this);this.La(this.Ic);_.ge(this,function(){d.active=!1;d.Ic.removeAll()})};_.N(aP,_.Q);_.g=aP.prototype;_.g.li=function(){return String(_.Ea(this))};_.g.$e=function(){return this.W.$e()||this.connectionState.$e()};
_.g.activate=function(){var a=this;this.active||(this.active=!0,this.Ic.listen(this.W,"Ab",_.Wa(this.Ns)),this.Ic.listen(this.connectionState,[].concat(_.Wc(Object.values(_.$K))),_.Wa(this.Ns)),this.W.$e()?this.Ic.Xc(this.W,"Ab",function(b){b.$e()||(a.pF(),a.dispatchEvent(new _.Fi(_.cr)))}):this.connectionState.$e()?this.Ic.Xc(this.connectionState,[_.$K.HX,_.$K.U4],function(){a.pF();a.dispatchEvent(new _.Fi(_.cr))}):(this.pF(),this.dispatchEvent(new _.Fi(_.cr))))};_.g.pF=function(){};
_.g.Qq=function(a){var b=this;if(this.tj()){var c=this.limit;this.limit+=a||50;this.$b()>c&&this.Ns();this.W.$e()?this.Ic.Xc(this.W,"Ab",function(d){d.$e()||b.kN()}):this.kN()}};_.g.GJ=function(){this.$e()&&!this.H?this.status=2:this.status=this.H?1:6};_.g.Cb=function(){return this.status};_.g.ur=function(){return this.va};_.g.handleError=function(a){this.dispatchEvent(new _.Wb(a))};_.g.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};_.g.tj=function(){return!this.H||this.ha};
_.g.refresh=function(){this.H=this.active=!1;this.status=6;this.Ic.removeAll();this.activate()};_.g.kN=function(){};
var Zad=function(a,b,c,d,e){aP.call(this,a,b,e.ki()||void 0);this.ka=c;this.request=e;this.O=[];this.data=[];this.changed=!1;this.V=new Yad;this.ma=d};_.N(Zad,aP);_.g=Zad.prototype;_.g.pF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){return k3c(new $N,this.data).Ac(this.status)};_.g.mr=function(){var a=this.V.xy(this.O,this.data);this.O=this.data;var b=(new i3c).Ac(this.status);return _.kb(b,2,a)};
_.g.kN=function(){this.ma(this.li(),this.limit)};_.g.Ns=function(){if(this.active){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,$ad(this)}};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||RN(0,this.data,b.O()))this.H=!0,this.status=b.Cb(),this.data=b.O(),this.ha=a.H,$ad(this)};
var $ad=function(a){a.log("Livelist "+a.li()+" returning "+a.data.length+" for "+(a.request.Gc()+". Status: ")+(_.mg(l2c)[a.Cb()]+"."));a.dispatchEvent(new _.Fi(_.Mc,a))};Zad.prototype.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a category metadata query after "+a.H+" retries.",a.error)))};Zad.prototype.log=function(a){this.ka.info("drive.ds.sync.CategoryMetadataLiveList",a)};
var abd=function(a,b,c,d,e,f){TO.call(this,a,b,c,e,f,d);this.ma=null;this.ka=void 0};_.N(abd,TO);abd.prototype.getData=function(){this.H=this.items;var a=I0c((new _.BA).Ac(this.Cb()).Hv(this.items),this.tj());a=_.y(a,7,this.ma);return _.tTc(a.IN(this.suggestionSessionId).Ci(this.Ke),this.ka)};abd.prototype.update=function(a){Q$c(this,a)&&(R$c(this,a),this.ma=a.P3(),this.suggestionSessionId=a.xf(),this.ka=a.Qha(),P$c(this))};
var bbd=function(a,b){var c={};a=_.cg(a,function(d){return!!d});b=_.cg(b,function(d){return!!d});_.bg(a,function(d,e){var f=b[e];f?_.Tk(d,f)||(d=$$c(Z$c(4),f),c[e]=d):(d=$$c(Z$c(2),d),c[e]=d)});_.bg(b,function(d,e){a[e]||(d=$$c(Z$c(1),d),c[e]=d)});return c},cbd=function(a,b){return _.fg(a)!==_.fg(b)||!_.ig(bbd(a,b))};
var dbd=function(a,b){_.Q.call(this);this.request=b;this.active=!1;this.status=6;this.H={};this.data={}};_.N(dbd,_.Q);_.g=dbd.prototype;_.g.activate=function(){this.active||(this.active=!0,_.ig(this.data)&&6===this.status||this.dispatchEvent(new _.Fi(_.Mc,this)))};_.g.Cb=function(){return this.status};_.g.ur=function(){return new _.wN};_.g.getData=function(){this.H=this.data;var a=(new _.$M).Ac(this.status);_.bg(this.data,function(b,c){a.XR().set(c,b||new _.AA)});return a};
_.g.mr=function(){var a=bbd(this.H,this.data);this.H=this.data;var b=(new xad).Ac(this.status);_.bg(a,function(c,d){_.zk(b,2,VO).set(d,c)});return b};_.g.vR=function(){throw Error("Of");};_.g.li=function(){return String(_.Ea(this))};_.g.ud=function(){return this.request};_.g.update=function(a){var b={};a.XR().forEach(function(c,d){c||(c=P8c(d));b[d]=c});if(this.status!==a.Cb()||cbd(this.H,b))this.status=a.Cb(),this.data=b,this.active&&this.dispatchEvent(new _.Fi(_.Mc,this))};
_.g.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a Workspace find by id after "+a.H+" retries.",a.error)))};_.g.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};
var ebd=function(a,b,c,d,e,f){_.Q.call(this);var h=this;this.V=a;this.ka=b;this.ha=c;this.ma=d;this.oa=e;this.request=f;this.O=!1;this.H={};this.items={};this.status=6;this.W=FZc(new _.wN,[1]);this.log("Creating find by ids live map: "+this.request.Wl().join(", "));_.ge(this,function(){h.O=!1;h.H=[]})};_.N(ebd,_.Q);_.g=ebd.prototype;_.g.li=function(){return String(_.Ea(this))};_.g.activate=function(){this.O=!0;_.ig(this.items)&&6===this.status||fbd(this)};_.g.ud=function(){return this.request};
_.g.getData=function(){this.H=this.items;var a=new _.YM;_.XK(this.V)?a.Ac(TYc(Object.values(this.items))?6:this.status):a.Ac(this.status);a.map=this.items;return a};_.g.mr=function(){var a=IZc(this.H,this.items),b=new d3c;b.Ac(this.status);b.map=a;this.H=this.items;return b};_.g.Cb=function(){return this.status};_.g.ur=function(){return this.W};_.g.vR=function(a){j6c(a);var b=this.request;this.request=a;this.oa(this.li(),b,a)};
_.g.update=function(a){var b=this;0<=_.ma(this.ud().Wl(),"root")?this.ma.addCallback(function(c){var d=a.map[c];d&&(_.jg(a.map,c),a.map.root=d);gbd(b,a)}):gbd(this,a)};var gbd=function(a,b){if(a.status!==b.Cb()||JZc(a.items,b.map))a.status=b.Cb(),a.items=b.map,_.XK(a.V)&&(a.W=GZc(a.status,Object.values(a.items))),fbd(a)};ebd.prototype.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a find-by-IDs query after "+a.H+" retries.",a.error)))};ebd.prototype.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};
var fbd=function(a){a.O&&(a.log("Livelist "+a.li()+" returning "+(Object.values(a.items).length+". Status: ")+(_.mg(l2c)[a.Cb()]+". Query: ")+(rO(a.ka,a.request)+" ")+HZc(Object.values(a.items))),a.dispatchEvent(new _.Fi(_.Mc,a)))};ebd.prototype.log=function(a){this.ha.info("drive.ds.sync.IdViewCacheLiveMap",a)};
var hbd=function(a,b,c,d,e,f){TO.call(this,a,b,c,d,e,f);this.ka=[]};_.N(hbd,TO);hbd.prototype.getData=function(){this.H=this.items;var a=(new _.ZM).Ac(this.Cb()).Hv(this.items);var b=this.tj();a=_.A(a,4,b);return c2c(a,this.ka).IN(this.suggestionSessionId).Ci(this.Ke)};hbd.prototype.update=function(a){Q$c(this,a)&&(R$c(this,a),this.ka=_.Lk(a,_.ml,6),this.suggestionSessionId=a.xf(),P$c(this))};
var ibd=function(){};_.g=ibd.prototype;_.g.BK=function(a,b){return Y$c(X$c(1),a).setPosition(b)};_.g.zK=function(a,b){return Y$c(X$c(2).setPosition(b),a)};_.g.YC=function(a,b,c){return Y$c(X$c(3).Cx(b).setPosition(c),a)};_.g.CO=function(a,b){return Y$c(X$c(4),a).setPosition(b)};_.g.aL=function(a){return a.Cm()};
var jbd=function(){_.tN.call(this,new ibd,function(a){return a&&a.Eo()})};_.N(jbd,_.tN);
var kbd=function(a,b,c){aP.call(this,a.Ij,a.Ul(),b.ki()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new jbd;this.suggestionSessionId=null;this.ka=c};_.N(kbd,aP);_.g=kbd.prototype;_.g.pF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){this.O=this.data;return E3c(D3c((new cO).Ac(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.mr=function(){var a=this.V.xy(this.O,this.data);this.O=this.data;var b=(new sad).Ac(this.status);return _.kb(b,2,a)};_.g.kN=function(){};_.g.Ns=function(){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};
_.g.update=function(a){if(this.status!==a.Cb()||RN(0,this.data,a.jk())){this.changed=this.H=!0;this.data=a.jk();if(a=a.xf())this.suggestionSessionId=a;this.Ns()}};_.g.refresh=function(){this.ka()};_.g.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a Suggested Workspace query after "+(a.H+" retries."),a.error)))};
var lbd=function(a,b,c){_.Q.call(this);var d=this;this.request=a;this.ka=b;this.ha=c;this.V=[];this.items=[];this.H=!1;this.status=6;this.W=FZc(new _.wN,[1]);this.O=!0;this.limit=a.ki();_.ge(this,function(){d.H=!1;d.V=[]})};_.N(lbd,_.Q);_.g=lbd.prototype;_.g.li=function(){return String(_.Ea(this))};_.g.activate=function(){this.H=!0;_.oa(this.items)&&6===this.status&&this.O||this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.ud=function(){return this.request};_.g.Cb=function(){return this.status};
_.g.ur=function(){return this.W};_.g.tj=function(){return this.O};_.g.getData=function(){this.V=this.items;return I0c((new _.BA).Ac(this.status).Hv(this.items),this.O)};_.g.mr=function(){var a=_.lYc().xy(this.V,this.items),b=(new _.MOc).Ac(this.status);a=_.kb(b,2,a);this.V=this.items;return a};_.g.Qq=function(a){this.H&&(this.limit+=a||20,this.ka.gE(this.li(),this.limit))};
_.g.update=function(a){if(this.status!==a.Cb()||RN(_.lYc(),this.items,a.Dd()))this.items=a.Dd(),this.status=a.Cb(),_.XK(this.ha)&&(this.W=GZc(this.status,this.items)),this.O=a.Qk(),this.H&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a Team Drive query after "+a.H+" retries.",a.error)))};_.g.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};_.g.pt=function(){throw Error("Pf");};_.g.refresh=function(){};
var mbd=function(a,b,c){_.Q.call(this);var d=this;this.context=a;this.ha=b;this.request=c;this.V=!1;this.O={};this.H={};this.status=6;this.W=FZc(new _.wN,[1]);this.context.Hf().info("drive.ds.sync.TeamDriveLiveMap","Creating TD find by ids live map: "+this.request.Wl().join(", "));_.ge(this,function(){d.V=!1;d.O=[]})};_.N(mbd,_.Q);_.g=mbd.prototype;_.g.li=function(){return String(_.Ea(this))};
_.g.activate=function(){this.V=!0;(0<Object.values(this.H).length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.ud=function(){return this.request};_.g.getData=function(){this.O=this.H;var a=new _.YM;a.Ac(this.status);a.map=this.H;return a};_.g.mr=function(){var a=IZc(this.O,this.H),b=new d3c;b.Ac(this.status);b.map=a;this.O=this.H;return b};_.g.Cb=function(){return this.status};_.g.ur=function(){return this.W};
_.g.vR=function(a){var b=this.request;this.request=a;this.ha.dX(this.li(),b,a)};_.g.update=function(a){if(this.status!==a.Cb()||JZc(this.H,a.map))this.status=a.Cb(),this.H=a.map,_.XK(this.context.Mc)&&(this.W=GZc(this.status,Object.values(this.H))),this.V&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a team drive find-by-IDs query after "+a.H+" retries.",a.error)))};_.g.qU=function(){this.dispatchEvent(new _.Fi(_.IFa))};
var nbd=function(){};_.g=nbd.prototype;_.g.BK=function(a,b){return $$c(Z$c(1),a).setPosition(b)};_.g.zK=function(a,b){return $$c(Z$c(2).setPosition(b),a)};_.g.YC=function(a,b,c){return $$c(Z$c(3).Cx(b).setPosition(c),a)};_.g.CO=function(a,b){return $$c(Z$c(4),a).setPosition(b)};_.g.aL=function(a){return a.Cm()};
var obd=function(){_.tN.call(this,new nbd,function(a){return a&&a.getId()})};_.N(obd,_.tN);
var pbd=function(a,b,c){aP.call(this,a.Ij,a.Ul(),b.ki()||10);this.request=b;this.ka=c;this.O=[];this.data=[];this.changed=!1;this.V=new obd};_.N(pbd,aP);_.g=pbd.prototype;_.g.pF=function(){(0<this.data.length||6!==this.status)&&this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.getData=function(){this.O=this.data;return V6c((new yO).Ac(this.status),this.data.slice(0))};_.g.mr=function(){var a=this.V.xy(this.O,this.data);this.O=this.data;var b=(new zad).Ac(this.status);return _.kb(b,2,a)};
_.g.kN=function(){this.ka.gE(this.li(),this.limit)};_.g.Ns=function(){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.$b=function(){return this.data.length};_.g.ud=function(){return this.request};_.g.update=function(a){var b=a.response;if(this.status!==b.Cb()||RN(0,this.data,b.jk()))this.H=!0,this.status=b.Cb(),this.data=b.jk(),this.ha=a.H,this.dispatchEvent(new _.Fi(_.Mc,this))};
_.g.cA=function(a){this.dispatchEvent(new _.Wb(new _.Vb("Error occurred running a Workspace query after "+a.H+" retries.",a.error)))};
var qbd=function(a,b){this.context=a;this.ha=b;this.H={};this.ka={};this.ma={};this.V=null;this.W=a.jf;this.O=this.context.bda;this.oa=this.context.S3};_.g=qbd.prototype;_.g.fua=function(a){var b=this,c=new abd(this.context.Hm,this.context.nO,this.context.Hf(),this.context.Mc,function(d,e){b.gE(d,e)},a);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};
_.g.iua=function(a){var b=this,c=new hbd(this.context.Hm,this.context.nO,this.context.Hf(),function(d,e){b.gE(d,e)},a,this.context.Mc);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};_.g.cua=function(a){var b=this,c=new ebd(this.context.Mc,this.context.Hm,this.context.Hf(),this.context.R3,this.dX.bind(this),a);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};_.g.lua=function(a){var b=this,c=new lbd(a,this,this.context.Mc);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};
_.g.mua=function(a){var b=this,c=new mbd(this.context,this,a);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};_.g.pua=function(a){var b=this,c=new pbd(this.context,a,this);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};_.g.jua=function(a){var b=this,c=new kbd(this.context,a,function(){if(a instanceof _.np){var d=rbd(b.context);x8c(d,d.getKey(a)).refresh()}});this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};
_.g.qua=function(a){var b=this,c=new dbd(this.context,a);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};_.g.$ta=function(a){var b=this,c=new Zad(this.context.Ij,this.context.Ul(),this.context.Hf(),function(d,e){b.gE(d,e)},a);this.Eh(c);_.ge(c,function(){b.Hj(c)});return c};
_.g.Eh=function(a){var b=a.li();this.H[b]=a;this.ha.create(b,a.ud());a=a.ud()instanceof _.qp?this.O.Eh(b,a.ud()):a.ud()instanceof _.zA?v8c(this.O,b,a.ud()):a.ud()instanceof _.np?rbd(this.context).Eh(b,a.ud()):a.ud()instanceof _.JF?this.oa.Eh(b,a.ud()):this.W.Eh(b,a.ud());"boolean"===typeof a&&F6c(this.ha,b,a)};
_.g.Hj=function(a){a.ud()instanceof _.qp?this.O.Hj(a.li(),a.ud()):a.ud()instanceof _.zA?w8c(this.O,a.li(),a.ud()):a.ud()instanceof _.np?rbd(this.context).Hj(a.li(),a.ud()):a.ud()instanceof _.JF?this.oa.Hj(a.li(),a.ud()):this.W.Hj(a.li(),a.ud());uO(this.ha,a.li(),4);delete this.H[a.li()]};_.g.dX=function(a,b,c){this.W.Hj(a,b);this.W.Eh(a,c)};
_.g.gE=function(a,b){var c=sbd(this,a).ud();c.Th(b);c instanceof _.qp?this.O.Eh(a,c):c instanceof _.zA?v8c(this.O,a,c):c instanceof _.JF?this.oa.Eh(a,c):this.W.Eh(a,c)};_.g.CM=function(a,b){this.ka[a]=b;this.V||(this.V=_.Qi(this.Y6,50,this))};_.g.OV=function(a,b){this.ma[a]=b;this.V||(this.V=_.Qi(this.Y6,50,this))};_.g.DA=function(a){(a=this.H[a])&&a.qU()};
_.g.Y6=function(){_.Ri(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&&(I6c(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])uO(this.ha,a,3),d.cA(c)};_.g.fia=function(a){return sbd(this,a).ud()};var sbd=function(a,b){if(!a.H[b])throw Error("Qf`"+b);return a.H[b]};
var bP=function(a,b){_.Q.call(this);this.O=a;this.request=b;this.se=_.oi();this.complete=!1;this.H=""};_.N(bP,_.Q);bP.prototype.start=function(){var a=this;this.O.then(function(b){return b.Qe(a.request)}).then(this.W.bind(this)).Yf(this.handleError.bind(this));return this.se.promise};bP.prototype.W=function(a){this.H=a.H;this.dispatchEvent(new Wad(0,this.H));tbd(this)};
var tbd=function(a){_.q.setTimeout(function(){a.O.then(function(b){return b.Qe(new _.WRc(a.H))}).then(a.ha.bind(a)).Yf(a.handleError.bind(a))},5E3)};
bP.prototype.ha=function(a){if(1===a.status||3===a.status||2===a.status)this.dispatchEvent(new Wad(a.O,this.H)),tbd(this);else{this.complete=!0;if(4===a.status){var b=new Kad;b=_.A(b,2,a.V||[]);b=_.A(b,3,this.H);b=_.A(b,5,a.ka);b=_.A(b,6,a.ha);b=_.A(b,7,a.Ry);b=_.A(b,8,a.H);a=_.kb(b,4,a.W);this.se.resolve(a)}else a=_.eL(_.Xq(_.Wq(new _.Ub,"Export failed for request "+this.H+": "+a.status),JSON.stringify(a)),8),this.handleError(a);this.dispose()}};bP.prototype.cancel=function(){var a=this;this.O.then(function(b){return b.Qe(new _.VRc(a.H))}).then(this.V.bind(this)).Yf(this.handleError.bind(this))};
bP.prototype.V=function(){if(!this.complete){var a=new Kad;a=_.A(a,3,this.H);a=_.A(a,1,!0);this.se.resolve(a);this.complete=!0;this.dispose()}};bP.prototype.handleError=function(a){this.complete=!0;this.se.reject(_.rL(a));this.dispose()};
var ubd=function(){_.Fi.call(this,"VbxEwf")};_.N(ubd,_.Fi);
var vbd=function(a,b){this.context=a;this.H=null;this.uc=b||null};_.g=vbd.prototype;_.g.Ka=function(){return _.D(this.context.Mc,_.oL,58)};_.g.getContext=function(){return this.context};_.g.wy=function(){return this.context.qz.wy(this.H)};_.g.Hf=function(){return this.context.Hf()};_.g.SK=function(a){return _.xi(this.context.jf.Gl.H(a))};_.g.vP=function(){return _.xi(this.context.qz.vP())};
_.g.K2=function(a,b,c){var d=new _.ri;if(_.D(a,_.YK,3)||_.D(a,_.iM,4)||_.D(a,_.fN,5)||_.D(a,_.fM,6)||_.D(a,_.HL,7)||_.D(a,_.AL,8)||_.D(a,_.EL,9)||_.D(a,_.iL,10)){var e=C6c(a);this.context.Yl().then(function(f){return f.Qe(e,{d3a:b,e3a:c})}).then(this.U6a.bind(this,d),d.Sd,d);return d}throw Error("Rf");};
_.g.U6a=function(a,b){var c=[],d="";if(b instanceof _.gN){c=b.Me().Dd();var e=_.C(b,2);d=b.Tn()}else if(b instanceof _.kM)b.getItem()&&c.push(b.getItem()),e=b.ZK();else throw Error("Sf");a.callback({items:c,Pfa:e,pageToken:d})};_.g.Sna=function(){var a=this.context.Mc,b=a.Of();a="email:"+_.SK(a).getEmail().replace(/@.*$/,"");_.A(b,13,a)};_.g.ofa=function(){this.context.Lr.vQ();var a=this.context.Mc;n$c(_.IM(_.SK(a)),_.JM(a),this.context.Hf()).Yf(function(){})};
_.g.k7=function(){return _.ZQc[_.vk(this.context.Mc.Of(),8,0)]};_.g.aba=function(){this.context.sE.H=new c9c(_.ah().substring(0,8))};_.g.fR=function(){var a=this.context.sE.uL(),b=null;a&&(b=e9c(this.context.sE),b={traceId:a,spanRecs:b});a=this.context.sE;a.H=null;a.AW=[];return _.xi(b)};_.g.uL=function(){return _.xi(this.context.sE.uL())};
_.g.getState=function(a){var b=this.context.ij,c=b.H.bind(b);b={};b.b=this.context.Mc.wi();b.m_ril=c("jroI5d");b.m_cil=c("T8oKm");b.m_icp=c("aU7Ts");b.m_idl=c("ZA9qG");b.m_il=c("W6J7De");b.m_if=c("DEJoH");b.m_pl=c("zaOY7");b.m_ps=c("mrK8ic");b.m_sls=c("Gv4zef");b.m_cp=c("BNEDtc");b.cs_cs=this.context.jf.Gl.Md();c=this.context.jf.Nv;var d=c.H;d&&(b.cs_sutd=d.W5,b.cs_ss=d.Md());b.cs_ch=D7c(c).length;b.cs_td=c.fU().length;(c=this.context.T3)&&(b.t_cps=c.hpb().join(","));b.t_id=wbd(this.context);var e=
[];xbd(this.context.uP()).forEach(function(f,h){e.push(h+":"+f.join(";"))});b.t_ct=e.join(",");b.n_a=this.context.NG?this.context.Ul().isConnected():this.context.MG.iA();b.n_o=this.context.NG?this.context.Ul().$e():this.context.Ij.$e();b.n_csm=!!this.context.NG;a&&(b.csw_cc=_.fg(a.channels),b.csw_ac=a.O,b.csw_mcc=a.H);return _.xi(JSON.stringify(b))};_.g.Wma=function(){this.uc&&(this.uc.dispatchEvent(new ubd),this.uc.At())};
_.g.Uk=function(a){var b=this.context.NG;b&&a!==b.O&&(b.O=a,b.reset(),a?b.state.update(3):_.AVc(b))};
var Abd=function(a,b){this.context=a;this.Ig=b;this.H=_.JRc(G1c(this.Ig),ybd);this.O=_.JRc(G1c(this.Ig),zbd)};
Abd.prototype.Gk=function(a){var b=this,c=this.context.dO.yg().yg(),d=(c=c?c.getUser():null)?c.getId():null,e={};a.forEach(function(h){_.NRc(h);var k=h.getId(),l=b.context.mn();_.gTc(h,3);_.lL(h,5);var n=$Yc(h,!0);h.getCapabilities()||_.BM(h,new _.wl);_.H(n,2)&&((n=h.Jj())&&n.length?_.A(h,46,n[0]):(_.AM(h,[l]),_.A(h,46,l)),l=h.Np(),_.A(h,12,l),l=new _.ml,l.Pb(d),_.A(l,6,1),_.uSc(l,!0),_.aTc(h,l),_.$Sc(h,[l]),_.COc(h,1));e[k]=h});a=Object.keys(e);c=this.context.jf;var f=V5c(c.Gl,a);_.bg(f,function(h,
k){AN(h.getItem(),e[k],b.H);(b.context.Ij.$e()||b.context.Ul().$e()||3===DN(h.getItem()))&&AN(h.getItem(),e[k],b.O);_.jg(e,k)});_.bg(e,function(h){_.Al(h.Xl())&&(f[h.getId()]=new nO(h))});Bbd(c,Object.values(f))};
var Cbd=function(a,b){var c=[];b.forEach(function(d){c.push(d.getItem())});a.Gk(c)},Dbd=function(a){a=a.context.jf;var b=new _.Oe;b.Uk(!0);b=X5c(a.Gl,b);for(var c=[],d=[],e=0;e<b.length;e++){var f=b[e].getItem();if(3===DN(f)){var h=new _.bL;_.cL(h,f.getId());_.mL(h);d.push(h)}else h=new _.zl,_.yN(h,!1),_.A(h,2,!1),_.y(f,81,h),c.push(b[e])}Bbd(a,c);a.So(d)},ybd=[50],zbd=[12,11,10,67,68];
var Ebd=function(a){this.context=a;this.H=null;this.V=!1;this.O=new Abd(a,a.Ig)};_.g=Ebd.prototype;_.g.lW=function(a){this.H=a;this.V=!1;if(a){if(this.H){a=this.W6a.bind(this);var b=this.V6a.bind(this);this.log("Querying all offline items.");this.H.GT().lg(a,b);this.V||(this.H.AY((0,_.v)(this.Zsb,this)),this.V=!0)}}else Dbd(this.O)};_.g.W6a=function(a){this.log("Processing all offline item(s): "+a.length);this.O.Gk(a);BO(this.context.ij,"GZTDpc")};_.g.V6a=function(){this.log("Error fetching offline items.")};
_.g.Zsb=function(a){this.log("Handling offline change(s): "+a.length);Cbd(this.O,a)};_.g.log=function(a){this.context.Hf().info("drive.ds.sync.offline.LocalDataService",a)};
var cP=function(a){_.Q.call(this);this.context=a;this.Ba="drive.ds.sync.BaseItemService";this.Ic=new _.pe(this);this.ma=null;this.Ta=this.va=!1;var b=new Ebd(a);this.context.ha=b;this.Fa=new vbd(a,this);EZc(this.Fa);(b=_.D(a.Mc,_.oL,58))&&_.E(b,1,!1);this.La(this.Ic);this.O=this.context.ij;this.W=a.$ca;this.V=new qbd(a,this.W);a=this.context;b=this.V;a.W=b;a.O.resolve(b);this.SOa()};_.N(cP,_.Q);_.g=cP.prototype;_.g.SOa=function(){};
_.g.initialize=function(){var a=this;if(!this.ma){this.ma=_.oi();var b=this.context.fl().H(106E3);this.ma.promise.then(function(){b&&b.ek()},function(){_.gVc(a.context.fl(),181008852)});var c=_.KM(this.context.Mc)?"(coldstart) ":"";this.context.Hf().info(this.Ba,"Initializing "+c+"with client build: "+this.context.Mc.wi());this.Ic.listen(this.context,_.Nc,this.yqb);this.Ic.listen(this.context.MG,["eb","fb"],function(d){return void a.dispatchEvent(d)});this.Ic.listen(this.context.Ul(),[].concat(_.Wc(Object.values(_.$K))),
function(d){return void a.dispatchEvent(d)});this.$a();this.O.start();BO(this.O,"NSockf")}return this.ma.promise};_.g.tTa=function(){this.context.Hf().info(this.Ba,"Ready to process requests.");this.va||(this.va=!0,this.ma.resolve())};_.g.yqb=function(a){var b=a.error,c=b.Kg;c&&3===c.getType()&&!this.va?(this.va=!0,this.ma.reject(b)):this.dispatchEvent(a)};_.g.QW=function(){throw dP("teamDriveQuery");};_.g.Hna=function(){throw dP("teamDriveFindByIds");};
_.g.Ina=function(){throw dP("teamDriveMovePreflight");};_.g.HCa=function(){throw dP("peoplePredictQuery");};_.g.query=function(a){l6c(this.context.Hm,a,F1c(this.context.Ig));this.GD();var b=_.Uk(a);b=this.V.fua(b);this.Ta||(a=a.re(),a&&121===_.C(a,1)||(this.Ta=!0,this.Ic.listen(b,_.Mc,this.pJa)));return b};_.g.pJa=function(a){a=a.currentTarget;if(1===a.Cb()){var b=this.O.H("W6J7De");this.Fa.H=b;this.Ic.Uc(a,_.Mc,this.pJa)}};_.g.jr=function(a){this.GD();j6c(a);return this.V.cua(_.Uk(a))};
_.g.osa=function(){throw dP("activityQuery");};_.g.Ysa=function(){throw dP("backupsQuery");};_.g.qDa=function(){throw dP("refreshBackups");};_.g.HT=function(){throw dP("getAndroidBackupItems");};_.g.p6=function(){throw dP("deleteBackup");};_.g.LCa=function(){throw dP("permissionQuery");};_.g.Z8=function(){throw dP("insertPermission");};_.g.q6=function(){throw dP("deletePermission");};_.g.qd=function(){throw dP("mutate");};_.g.fM=function(){throw dP("mutateWorkspace");};
_.g.gy=function(){throw dP("bulkMutate");};_.g.bua=function(){throw dP("createFileUploader");};_.g.fPa=function(a){return new bP(this.context.Yl(),a)};_.g.Wp=function(a){if(3===a.getType())return _.yi(this.context.Yl().then(function(b){return b.Qe(a)}).then(null,_.tL));throw dP("getApps with type "+a.getType());};_.g.Eq=function(){throw dP("getApp");};_.g.b9=function(){throw dP("installApp");};_.g.o6=function(){throw dP("deleteApp");};_.g.qR=function(){throw dP("updateApp");};
_.g.AL=function(){throw dP("getUserAccount");};_.g.nF=function(){throw dP("getUserPrefs");};_.g.iQ=function(){throw dP("mutateUserPref");};_.g.Ys=function(){throw dP("getRevisions");};_.g.xya=function(){return!1};_.g.Uk=function(a){this.context.Ij.Uk(a)};_.g.Bx=function(){throw dP("setOfflineOptIn");};_.g.lW=function(){throw dP("setLocalItemService");};_.g.GD=function(){};_.g.kQ=function(){this.context.kQ();this.context.fl().O(106006)};_.g.A7=function(){return this.Fa};_.g.jW=function(){};
_.g.iA=function(){return this.context.MG.iA()};_.g.uO=function(){return this.context.MG.uO()};_.g.isConnected=function(){return 1===this.context.NG.getState().get()};_.g.Bta=function(){return T1c(this.context.NG)};_.g.sync=function(){throw dP("sync");};_.g.At=function(){return this.context.At()};_.g.n$=function(){throw dP("offlineDataLoaded");};_.g.rla=function(a){return this.context.Yl().then(function(b){return b.Qe(a)}).then(function(b){return b})};
_.g.yta=function(){throw dP("categoryMetadataQuery");};_.g.G5=function(){throw dP("changeCategoryLinks");};_.g.rR=function(){throw dP("updateCategoryMetadata");};_.g.bDa=function(){throw dP("publishedCategoriesQuery");};_.g.Dla=function(){throw dP("publishedCategoryQuery");};_.g.NHa=function(){throw dP("workspaceFindByIdsRequest");};_.g.xoa=function(){throw dP("workspaceQueryRequest");};_.g.hGa=function(){throw dP("suggestedWorkspaceItemQueryRequest");};
_.g.zna=function(){throw dP("suggestedWorkspaceQueryRequest");};_.g.xY=function(){throw dP("addCacheHint");};_.g.bZ=function(){throw dP("createUserFeedback");};_.g.So=function(){throw dP("handleChanges");};var dP=function(a){return new _.Vb(a+" is unsupported",_.qL(3))};
var g_c=function(a){cP.call(this,a);this.Ba="drive.ds.sync.AnonymousItemService";a.yt("")};_.N(g_c,cP);g_c.prototype.$a=function(){AO(this.O,["NSockf"],this.tTa.bind(this))};
var Fbd=new Set([1,2,4,5,6]),Gbd=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.Ke=0};Gbd.prototype.yg=function(){var a=new _.ZO;a.Ac(this.status);this.H&&_.wad(a,this.H?_.Uk(this.H):null);return a};
var Hbd=function(a,b,c,d){d=void 0===d?!1:d;var e=Fbd.has(c);if(1===a.status&&!e)return!1;a.Ke=c;var f=a.status;c=!a.H;if(_.XK(a.O)){var h=(h=b&&b.getUser())&&_.IF(h);h=!(!h||!f8c(a.ka,h));a.status=h&&e||d?1:6}f=!_.Tk(a.H,b)||(_.XK(a.O)?a.status!==f:6===a.status&&e);a.H=_.Uk(b);_.XK(a.O)||(a.status=e||d?1:6);c&&(BO(a.ha,"toquGd"),a.W.info("drive.ds.sync.account.InMemoryAccountCache","Account loaded from "+(e?"server":"cache")));f&&a.V.update(0);return f};Gbd.prototype.Ue=function(){return this.Ke};
var Ibd=function(a){_.Q.call(this);this.W=a;this.Ke=0};_.N(Ibd,_.Q);var Jbd=function(a){a=_.Uk(a);var b=function(c){return c.toLowerCase()};v3c(a,_.Jd(a,4).map(b));w3c(a,_.Jd(a,5).map(b));return a};_.g=Ibd.prototype;_.g.Wp=function(){};_.g.put=function(){};_.g.remove=function(){};_.g.pO=function(){};_.g.OB=function(){return 0!==this.Ke};_.g.Ue=function(){return this.Ke};
var Kbd=new Set([1,2,4,5,6]),Lbd=function(a,b,c){Ibd.call(this,b);this.V=a;this.O=c;this.apps={};this.H=[];this.status=6;this.Fo=!1};_.N(Lbd,Ibd);Lbd.prototype.Wp=function(){var a=new wO;if(!_.ig(this.apps)){_.A(a,4,this.H||[]);var b=[];_.bg(this.apps,function(c){b.push(_.Uk(c))});_.kb(a,2,b)}a.Ac(this.status);return a};Lbd.prototype.put=function(a){this.apps[a.getId()]=Jbd(a);this.O.update(1);this.dispatchEvent(new _.Fi("Qb",this))};Lbd.prototype.remove=function(a){_.jg(this.apps,a)&&this.O.update(1)};
Lbd.prototype.pO=function(a,b,c){c=void 0===c?!1:c;var d=!Kbd.has(b);1===this.status&&d||(this.Ke=b,Mbd(this,a,!d||c),d||this.O.update(1),this.Fo||(this.Fo=!0,this.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache","Apps initialized."),BO(this.W,"nVUlO")))};
var Mbd=function(a,b,c){var d=!1,e=c?1:6;d=e!==a.status;a.status=e;e=_.Jd(b,4);if(!d)if(e.length!==a.H.length)d=!0;else{var f=e.concat(a.H);_.Fa(f);d=f.length!==a.H.length}a.H=e;var h=_.lg(a.apps);_.fRc(a.apps);b=_.Lk(b,_.aO,2);d||(d=b.length!==_.fg(h));b.forEach(function(k){var l=Jbd(k);a.apps[k.getId()]=l;d||(k=h[k.getId()],d=!k||!_.Tk(l,k))});a.V.info("drive.ds.sync.appsettings.InMemoryAppSettingsCache",(c?"Fresh":"Stale")+" apps loaded: "+b.length);d&&a.dispatchEvent(new _.Fi("Qb",a))};
var eP=function(a){_.P.call(this);this.context=a;this.nx=new Set;this.zn=6;this.Ke=0;this.Ic=new _.pe(this);this.La(this.Ic)};_.N(eP,_.P);_.g=eP.prototype;_.g.Eh=function(a){this.fOa(a);this.nx.add(a);this.resize(!0);this.CM(a)};_.g.fOa=function(){};_.g.Hj=function(a){this.nx.delete(a);0!=this.nx.size||this.DVa()?this.resize(!1):this.dispose()};_.g.Ue=function(){return this.Ke};_.g.Ci=function(a){this.Ke=a};_.g.WK=function(){return this.zn};_.g.refresh=function(){};_.g.Zl=function(){};
var Obd=function(a,b,c){if(Array.isArray(c))c.forEach(function(f,h,k){k[h]=_.Uk(f)});else{for(var d in c){var e=c[d];c[d]=e?_.Uk(e):null}c=Object.values(c).filter(function(f){return null!=f})}Nbd(a.context.jf,c,b);d=c.filter(function(f){return!pO(f)});EYc(b,d);c.forEach(function(f){b9c(a.context.tJa,f,b);if(f.zc()){var h=f.getCapabilities();pO(f)?h&&(_.GSc(h,_.H(h,13)),_.DSc(h,!1),_.KSc(h,!1)):CN(f)?(h&&_.A(h,3,!1),_.A(f,30,!1)):h&&(_.OSc(h,!1),_.PSc(h,!1))}f.getCapabilities()||_.BM(f,new _.wl)})};
eP.prototype.resize=function(){};eP.prototype.ud=function(){};eP.prototype.Gk=function(a,b){var c=this,d=!1;a.forEach(function(e){e=zO(e);d=c.Dt(e,!0)||d});b||(1!=this.zn&&(d=!0),this.zn=1);d&&this.PV()};var Pbd=function(a,b){var c=!1;b.forEach(function(d){c=a.Dt(d)||c});c&&a.PV();return c};_.g=eP.prototype;_.g.update=function(a){return Pbd(this,[a])};_.g.Dt=function(){};_.g.PV=function(){var a=this;this.eOa();this.nx.forEach(function(b){a.CM(b)})};_.g.eOa=function(){};
_.g.CM=function(a){var b=Qbd(this.context).fia(a);this.RUa(b)||(b=this.Zl(b),Qbd(this.context).CM(a,b))};_.g.OV=function(a){var b=this;this.zn=3;this.nx.forEach(function(c){Qbd(b.context).OV(c,a)})};_.g.DA=function(){var a=this;this.nx.forEach(function(b){Qbd(a.context).DA(b)});this.Ci(0==this.Ue()?1:6)};_.g.DVa=function(){return!1};_.g.RUa=function(){return!1};
var Rbd=function(a){_.Fi.call(this,"Db");this.id=a};_.N(Rbd,_.Fi);
var Sbd=function(a,b,c,d){d=void 0===d?!1:d;_.Q.call(this);this.request=a;this.context=b;this.EHa=d;this.se=null;this.items={};this.W=[];this.V=[];this.H=null;this.originalRequest=c||a;this.O=new Set};_.N(Sbd,_.Q);
Sbd.prototype.Tg=function(){var a=this;if(this.se)return this.se.promise;this.se=_.oi();this.request.Wl().forEach(function(b){var c=_.hp(_.Uk(a.request),[b]),d;a.EHa&&(d={EHa:!0});a.context.Yl().then(function(e){return e.Qe(c,d)}).then(function(e){return void Tbd(a,e)},function(e){e=_.sL(e);5===e.Kg.Ur()||4===e.Kg.Wj()?(a.context.Hf().info("drive.ds.sync.query.ViewCacheFindByIdsRunner","Deleting "+b+" due to: "+e.message),a.V.push(b),Ubd(a)):a.handleError(e)})});return this.se.promise};
var Tbd=function(a,b){b.Me().Dd().forEach(function(c){_.lL(c,1);a.W.push(c)});Ubd(a)},Ubd=function(a){a.H||(a.H=_.q.setTimeout(a.ha.bind(a),10))};Sbd.prototype.ha=function(){_.q.clearTimeout(this.H);this.H=null;Vbd(this);Wbd(this);this.O.size===this.request.Wl().length?(this.context.jf.Gk([],1,this.originalRequest,!1),this.dispatchEvent("Fb"),this.se.resolve(this.items)):this.dispatchEvent("Cb")};
var Vbd=function(a){var b=a.W;a.W=[];b=a.context.ada.U6(b);if(_.RK(_.SK(a.context.Mc))){var c=a.context.jf.Gl;_.Ka(b,function(d){var e=c.H(d.getId());e&&_.AM(d,e.Jj())})}b.forEach(function(d){a.O.add(d.getId());a.items[d.getId()]=d});a.context.jf.Gk(b,1,a.originalRequest,!0)},Wbd=function(a){var b=a.V;a.V=[];b.forEach(function(c){var d=_.mL(_.cL(new _.bL,c));a.context.jf.So([d]);a.O.add(c);a.items[c]=null;a.dispatchEvent(new Rbd(c))})};
Sbd.prototype.handleError=function(a){var b=new vO(a.Kg,_.wk(this.context.Mc.Of(),1,1));this.context.jf.cA(this.request,b);this.dispatchEvent(b);this.se.reject(a)};
var Xbd=function(a,b,c,d){eP.call(this,a);this.Ig=b;this.request=c;this.Od={};this.H=_.hL(a.Mc)||new _.VQc;d&&this.Gk(d,!0)};_.N(Xbd,eP);
Xbd.prototype.refresh=function(){var a=this;this.zn=6;if(_.E(this.request,5,!1))return this.zn=1,_.ji();var b=!HYc(_.QM(this.Ig),this.request.O()),c=[],d=this.context.mn();this.request.Wl().forEach(function(k){if("root"!==k&&k!==d){var l=a.Od[k],n=l&&l.getItem();if(l=!l||n&&1!==DN(n)||b)n=n&&n.Xl(),l=!(n&&_.H(n,2));l&&c.push(k)}});if(0===c.length)return this.Gk([],!1),_.ji();var e=this.request.clone();_.hp(e,c);var f=new Sbd(e,this.context,this.request),h=_.oi();this.context.Ij.$e()?(this.Ic.listen(this.context.Ij,
"Ab",function(k){k.$e()||(a.Ic.Uc(a.context.Ij,"Ab"),Ybd(a,f,h))}),this.zn=0<Object.values(this.Od).length?1:2):(this.context.Ul().$e()&&(this.zn=0<Object.values(this.Od).length?1:2),Ybd(this,f,h));return h.promise};var Ybd=function(a,b,c){a.Ic.listen(b,"Db",function(d){a.Od[d.id]=null});a.DA();b.Tg().then(function(){c.resolve()},c.reject)};_.g=Xbd.prototype;
_.g.lfa=function(a){var b=this;return this.context.Hm.equals(a,this.request)?_.E(this.H,5,!1)&&_.E(this.H,3,!1)?a.Wl().every(function(c){return(c=b.Od[c])&&_.H(c.getItem(),31)}):HYc(_.QM(this.Ig),a.O()):!1};_.g.Zl=function(a){var b=new _.YM;_.XK(this.context.Mc)?b.Ac(UYc(Object.values(this.Od))?6:this.zn):b.Ac(this.zn);b.Ci(this.Ue());b3c(b,_.dg(this.Od,function(c){return c?c.getItem():null}));Obd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.ud=function(){return this.request};
_.g.Dt=function(a){var b=this.jt(a.O),c=this.jt(a.H);if(b||c)c?(this.Od[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Od[a.id]=null,a.O.count--);else return!1;return!0};_.g.jt=function(a){return!!a&&_.na(this.request.Wl(),a.getId())};
var Zbd=function(a,b){_.Fi.call(this,a);this.changes=b};_.N(Zbd,_.Fi);
var $bd=function(a){var b=new k8c;if(a.xf()){var c=a.xf();b.H=!1;b.suggestionSessionId=c}a instanceof _.ZM&&_.Lk(a,_.ml,6).length?(a=_.Lk(a,_.ml,6),b.H=!1,b.V=a):a instanceof _.BA&&(a.P3()||a.Epa()||a.Qha().length)&&(c=a.P3(),b.H=!1,b.W=c,c=a.Epa()||!1,b.H=!1,b.incompleteSearch=c,a=a.Qha(),b.H=!1,b.O=a);return b};
var fP=function(a,b,c,d,e){e=void 0===e?"":e;_.Q.call(this);this.context=a;this.request=b;this.nextPageToken=e;this.W=0;this.va=!1;this.V=[];this.O=!1;this.ka=0;this.Ja=a.Hf();this.Ba=new Set;this.ma=c||!1;this.Ha=d||!1;this.Fa=this.ZCa(b);this.ha=new k8c};_.N(fP,_.Q);var acd=function(a){return!a.va||""!==a.nextPageToken},ccd=function(a,b){a.W=b;return a.V.length<a.W&&!a.O&&acd(a)?bcd(a):_.xi()};fP.prototype.$b=function(){return this.V.length};fP.prototype.H=function(){return this.V.slice()};
var bcd=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 _.ri;d.addCallback(function(f){return void dcd(a,c,f)});var e=_.ARc(_.BRc(new _.YK,a.Fa),c);b=_.yRc(new _.tQc,b);a.Ha&&_.A(b,10,!0);_.zRc(e,b);a.va=!0;a.O=!0;a.context.Yl().then(function(f){return f.Qe(e)}).then(a.oa.bind(a,d),a.handleError.bind(a,d,b));return d};
fP.prototype.oa=function(a,b){this.O=!1;if(b instanceof _.ZM)var c=b;else c=b.Me(),this.nextPageToken=b.Tn()||"";this.ha=$bd(c);this.ha.vc()||this.dispatchEvent("Eb");a.callback(c.Dd())};
fP.prototype.handleError=function(a,b,c){c=_.sL(c);this.O=!1;if(5===c.Kg.Ur())a.callback([]);else{if(10===c.Kg.Ur()&&(_.yRc(b,Math.ceil(_.wk(b,1,1E3)/2-2E-15)),1<_.wk(b,1,1E3))){var d=_.zRc(_.ARc(_.BRc(new _.YK,this.Fa),this.nextPageToken),b);this.O=!0;this.context.Yl().then(function(e){return e.Qe(d)}).then(this.oa.bind(this,a),this.handleError.bind(this,a,b));return}b=new vO(c.Kg,_.wk(this.context.Mc.Of(),1,1));this.qJa(b);this.dispatchEvent(b);a.Sd(c)}};
var dcd=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: ")+(_.EUc(a.request)+" paginationToken: ")+b;b=_.Yq(_.Wq(_.eL(_.dL(new _.Ub,2),9),f));a.context.dispatchEvent(new _.Wb(new _.Vb(f,b)));break}d.add(f.getId())}f=c.filter(function(h){var k=a.Ba.has(h.getId());a.Ba.add(h.getId());return!k});a.ka+=c.length-f.length;c=_.m(f);for(b=c.next();!b.done;b=c.next())_.lL(b.value,
a.ma?2:1);c=[];b=_.m(a.iZa(f));for(f=b.next();!f.done;f=b.next())f=f.value,a.V.push(f.getId()),f=_.cL(new _.bL,f.getId()).setItem(f),c.push(f);c.length&&a.dispatchEvent(new Zbd("Cb",c));if(a.V.length<a.W&&a.nextPageToken)return bcd(a);a.dispatchEvent("Fb")};_.g=fP.prototype;_.g.iZa=function(a){return a};_.g.qJa=function(){};_.g.ud=function(){return this.request};_.g.ZCa=function(a){a=_.Uk(a);this.ma&&_.A(a,46,!0);return a};_.g.log=function(a){this.Ja.info("drive.ds.sync.query.QueryRunner",a)};
var ecd=function(a,b,c,d){fP.call(this,a,b,void 0,c,d)};_.N(ecd,fP);ecd.prototype.iZa=function(a){a=this.context.ada.U6(a);this.context.jf.Gk(a,1,this.request,acd(this));return a};ecd.prototype.qJa=function(a){this.context.jf.cA(this.request,a)};ecd.prototype.ZCa=function(a){var b=a=fP.prototype.ZCa.call(this,a),c=_.FM(b);0===_.Jd(b,33).length&&1===c.length&&(c=this.context.jf.Gl.H(c[0].Ya()))&&(c=c.zc())&&(_.uN(b,[c]),_.vN(b,2));fcd(this,a);return a};
var fcd=function(a,b){if(_.FM(b).some(function(d){return(d=a.context.jf.Gl.H(d.Ya()))&&_.H(d,108)})){var c=b.re();c||(c=new _.bf,_.Zl(b,c));_.cf(c,937)}};
var gcd=function(a,b,c,d){this.context=a;this.Ig=b;this.W=d;this.tla=0;this.H=c},hcd=function(a){var b=_.Yc(a.H);b=b.filter(function(d){return d instanceof Xbd});var c=new Set;b.forEach(function(d){d.ud().Wl().forEach(function(e){a.W.get(e)||c.add(e)})});b=_.cf(new _.bf,310);a.log("Re-querying missing find-by-ids :"+c.size);a.AQ([].concat(_.Wc(c)),b)},jcd=function(a,b){var c=[];(a.context.jf.hDa.AO[b||"subscribed"]||[]).forEach(function(d){_.bg(a.H,function(e){_.Tk(e.ud(),d)&&c.push(e)})});_.Fa(c);
0<c.length&&(icd(a),c.forEach(function(d){d=rO(a.context.Hm,d.ud(),3);a.log("Refreshing "+b+" cache: "+d)}),_.pi(_.mi(c.map(function(d){return d.refresh().Yf(_.vf)})),a.O.bind(a)))};gcd.prototype.AQ=function(a,b,c,d){c=void 0===c?!1:c;a=a.filter(function(e){return!_.ld(e)});if(0===a.length)return _.ji({});a=_.A(_.gp(_.hp(new _.fp,a),d||_.QM(this.Ig)),7,!0);_.jp(a,b);icd(this);b=new Sbd(a,this.context,void 0,c);return _.pi(b.Tg(),this.V.bind(this,b))};gcd.prototype.V=function(a){a.dispose();this.O()};
var icd=function(a){a.tla++;a.context.Lr.setActive(!1)};gcd.prototype.O=function(){this.tla--;0===this.tla&&this.context.Lr.setActive(!0)};gcd.prototype.log=function(a){this.context.Hf().info("drive.ds.sync.cache.CacheRefresher",a)};
var kcd=function(a,b,c){_.P.call(this);this.context=a;this.H=b;this.request=c;this.O=this.se=null;a=new _.bf;_.df(a,!1);_.cf(a,305);_.Zl(this.request,a);this.Ic=new _.pe(this);this.La(this.Ic)};_.N(kcd,_.P);
kcd.prototype.Tg=function(){if(!this.se){this.se=_.oi();if(_.E(this.request,48,!1))return this.H.Ci(9),this.se.resolve(this.H),this.se.promise;this.O=new fP(this.context,this.request,!0);this.Ic.listen(this.O,"Cb",this.W);this.Ic.listen(this.O,"Fb",this.V.bind(this));this.Ic.listen(this.O,"Gb",this.se.reject.bind(this.se));ccd(this.O,this.request.ki())}return this.se.promise};kcd.prototype.W=function(a){var b=this;_.Ka(a.changes,function(c){c=c.getItem();b.H.update(zO(new nO(c)))})};
kcd.prototype.V=function(){this.H instanceof CO?this.H.H=!acd(this.O):acd(this.O)&&p7c(this.H);this.H.Ci(5);this.se.resolve(this.H)};
var mcd=function(a,b){_.Fi.call(this,lcd);this.cache=a;this.changes=b};_.N(mcd,_.Fi);var lcd="Rb";
var ncd=function(a,b){return new _.gi(function(c,d){b.then(function(e){var f={};a.py().forEach(function(h){var k=h.getId();aZc(h.getItem());f[k]=new nO(h.getItem())});e.items.forEach(function(h){var k=h.Gc();k=f[k];h.Xj()?k&&a.update(new e7c(k.getId(),k,null)):(h=h.getItem(),aZc(h),a.update(f7c(k,new nO(h))))});a.b1();c(e.tGb)},d)})};
var ocd=function(a,b){_.P.call(this);this.context=a;this.Ig=b};_.N(ocd,_.P);
ocd.prototype.Tg=function(a){this.log("Running initial view populator (IVDP).");try{var b=new mO(JSON.parse(a))}catch(p){this.handleError("Error parsing initial view dump.",p);return}a=_.SK(this.context.Mc);if(!_.RK(a)){var c=b.yg();if(c){var d=c.getUser();d&&d.getId()===_.G(a,6,"")&&Hbd(this.context.dO,c,4)}(a=b.mn())&&this.context.yt(a,6)}var e=_.C(b,3)||void 0;e&&pcd(this.context,e,!0);if((a=_.Lk(b,_.kp,9))&&a.length){c=(c=this.context.Mc.Of())&&_.Jd(c,30)||[];var f=new Set(c);a.forEach(function(p){(p=
(p=p.getKey())&&_.lp(p))&&f.add(p)});this.context.DC.pO(a,4,[].concat(_.Wc(f.values())))}a=b.Dd();a.forEach(function(p){_.NRc(p);_.lL(p,6)});if(c=_.Lk(b,lO,5)[0])if(b=this.context.Hm,OYc(_.QM(this.Ig),c.getQuery().O(),_.JM(this.context.Mc)))if((d=c.getQuery().Lc())&&4===d.getType()&&!YYc())this.handleError("Invalid initial view data, natural sort unsupported");else{if(0<a.length){d=qO(b,c.getQuery());var h=_.C(c,2)||void 0;d.Th(h);h=a.map(function(p){return new nO(p,void 0,1,e)});var k=_.D(c,_.Cl,
3);if(k&&_.C(c,2)){var l=h[h.length-1];_.lL(k,6);if(!_.Tk(k,l.getItem())){this.handleError("Invalid last item in initial view data.");return}}c=(k=_.hL(this.context.Mc))&&_.E(k,2,!1)&&c.Tn()||"";var n=new CO(this.context.kv,this.context.bw,this.context.Hm,d,l,c);n.Ci(4);h.forEach(function(p){n.update(zO(p))});qcd(this.context.jf,n);l=n.ud();this.log("Imported "+a.length+" initial view items (IVDP) into a cache\n                hint corpus cache. Query: "+rO(b,l));b=new _.YK;_.BRc(b,l);l=_.JVc(this.context.qz,
b,"IVDP");_.KVc(l,a);BO(this.context.ij,"W6J7De")}}else this.handleError("Invalid initial view data, fields: "+i6c(b,c.getQuery().O()));else this.handleError("No initial query found")};ocd.prototype.handleError=function(a,b){var c=b?void 0:_.Yq(_.eL(_.dL(new _.Ub,2),6));b=new _.Vb(a,c,b);this.context.DH(b.Kg);this.log("Initial view dump population failed. Message: "+a);BO(this.context.ij,"DEJoH")};ocd.prototype.log=function(a){this.context.Hf().info("drive.ds.sync.cache.InitialViewPopulator",a)};
var rcd=function(a){_.Q.call(this);this.context=a;this.W="drive.ds.sync.cache.CorpusCachePopulator";this.V=0;this.O=new EO(a.kv,a.bw,a.ij,a.Mc,function(){return a.mn()})};_.N(rcd,_.Q);var scd=function(a,b){var c=_.wk(a.context.Mc,31,2E4);("number"===typeof _.C(b,3)?_.C(b,3):c+1)>c?(p7c(a.O),b="partialCorpus",a.log("Too many subscribed items; skipping cache.")):(b="fullCorpus",a.log("Caching all subscribed items."));a.context.qz.Kb("CachedCorpusType",b)};
rcd.prototype.log=function(a,b){this.context.Hf().log(this.W,a,b||"info")};var tcd=function(a,b){0===a.V&&(a.V=b)};
var ucd=function(a,b){var c;if(c=!!b&&!!b.jh())a=a.Vl(),c=null==a||!!b.jh().Vl()==a;return c};
var vcd=function(a,b){_.Q.call(this);this.context=a;this.request=b;this.V=[];this.nextPageToken="";this.H=this.O=!1};_.N(vcd,_.Q);vcd.prototype.Tg=function(){return this.H||this.O&&""===this.nextPageToken?_.xi():wcd(this)};vcd.prototype.$b=function(){return this.V.length};
var wcd=function(a){a.O=!0;a.H=!0;var b=j1c(k1c(new _.iM,a.request),a.nextPageToken),c=_.JVc(a.context.qz,b);return _.yi(a.context.Yl().then(function(d){return d.Qe(b)}).then(function(d){var e=d.Me().Dd();a.nextPageToken=d.Tn()||"";xcd(a,c,e)},function(d){return void a.handleError(d)}))},xcd=function(a,b,c){_.KVc(b,c);for(b=0;b<c.length;b++)_.lL(c[b],1);a.context.jf.Gk(c,1,a.request,!a.O||""!==a.nextPageToken);var d=[];_.Ka(c,function(e){this.V.push(e.getId());e=_.cL(new _.bL,e.getId()).setItem(e);
d.push(e)},a);d.length&&a.dispatchEvent(new Zbd("Cb",d));a.nextPageToken?wcd(a):(a.H=!1,a.dispatchEvent("Fb"))};vcd.prototype.handleError=function(a){this.H=!1;a=new vO(_.fL(a),_.wk(this.context.Mc.Of(),1,1));this.dispatchEvent(a)};vcd.prototype.ud=function(){return this.request};
var ycd=function(a){this.H=F5c(a,{numeric:!0})};ycd.prototype.sort=function(a){_.Ia(a,this.compare.bind(this))};ycd.prototype.compare=function(a,b){a=a.getItem();b=b.getItem();var c=this.H(a.getTitle(),b.getTitle());return 0===c?_.Ga(a.getId(),b.getId()):c};
var zcd=function(a,b,c,d){d=void 0===d?!1:d;eP.call(this,a);this.Ig=b;this.Od=[];this.se=null;this.request=_.Uk(c);this.tv=new vcd(a,this.request);this.dLb=new ycd(ON(_.SK(a.Mc)));this.KU=null!=_.H(this.request,6);_.ge(this,this.Rib,this);d&&(this.se=_.oi(),this.se.resolve())};_.N(zcd,eP);_.g=zcd.prototype;_.g.refresh=function(){3===this.zn&&(this.zn=6,this.se=null);return this.faa()};_.g.isInitialized=function(){return!!this.se};
_.g.faa=function(){var a=this;if(this.isInitialized())return this.se.promise;this.se=_.oi();this.context.Ij.$e()?this.Ic.listen(this.context.Ij,"Ab",function(b){b.$e()||(a.Ic.Uc(a.context.Ij,"Ab"),a.DA(),a.tv.Tg().lg(a.se.resolve,a.se.reject,a.se))}):(this.DA(),this.tv.Tg().lg(this.se.resolve,this.se.reject,this.se));return this.se.promise};_.g.resize=function(){};_.g.ud=function(){return this.request};_.g.py=function(){return this.Od};_.g.lfa=function(a){return this.context.Hm.equals(a,this.request)};
_.g.Zl=function(a){a=a.ki();this.dLb.sort(this.Od);var b=BZc(_.Ba(this.Od,0,Math.min(a,this.Od.length)));Obd(this,G1c(this.Ig),b);var c=new _.BA;c.Hv(b);c.Ac(this.Qta(a));c.Ci(this.Ue());I0c(c,a<this.Od.length||!(this.context.Ij.$e()||this.context.Ul().$e())&&1!==this.zn);return c};_.g.Qta=function(a){return 1===this.zn||a<=this.Od.length?1:this.context.Ij.$e()||this.context.Ul().$e()?0<this.Od.length?1:2:6};_.g.Gk=function(a,b){this.isInitialized()&&eP.prototype.Gk.call(this,a,b)};
_.g.Dt=function(a,b){b=void 0===b?!1:b;if(!this.isInitialized())return!1;var c=a.id,d=_.la(this.Od,function(h){return h.getId()===c}),e=!!d;b=this.jt(a.H,b);var f=a.O;d&&(f=d,e=!0);if(e||b)e?b?this.lHa(f,a.H):this.AH(f):this.NP(a.H);else return!1;return!0};_.g.NP=function(a){this.Od.push(a);a.count++};_.g.AH=function(a){_.ua(this.Od,a);a.count--};_.g.Lva=function(a){return _.ma(this.Od,a)};_.g.lHa=function(a,b){this.Od[this.Lva(a)]=b;b.count++;a.count--};
_.g.jt=function(a,b){b=void 0===b?!1:b;if(!a)return!1;if(this.KU&&null!=_.H(this.request,6)){if(b)return!0;var c=a.getId();b=!!this.Od.find(function(d){return c===d.getId()},this);a=pO(a.getItem())&&ucd(this.request,a.getItem());return b&&a}return pO(a.getItem())&&ucd(this.request,a.getItem())};_.g.Rib=function(){this.Od.forEach(function(a){a.count--})};_.g.DVa=function(){return!0};_.g.getType=function(){return"TeamDriveViewCache"};_.g.Md=function(){return this.Od.length};
_.g.b1=function(){this.zn=1};
var Acd=function(a){this.H=a},Ccd=function(a,b){return Bcd(a,b,null,0,5)},Bcd=function(a,b,c,d,e){if(0==e||null==b){var f=new oad;_.A(f,2,b);_.A(f,1,d);return _.ji(f)}var h=B6c();_.A(h,2,b);c&&_.A(h,3,c);return a.H.then(function(k){return k.Qe(h)}).then(function(k){var l=k.Yw();k=d+_.C(k,1);return Bcd(a,l,c,k,e-1)})};
var Dcd=function(a,b){rcd.call(this,a);this.Ig=b;this.ha=void 0;this.ka=null;this.ma=!1;this.dC=void 0;this.W="drive.ds.sync.cache.LocalDumpPopulator";this.H=a.Mc};_.N(Dcd,rcd);Dcd.prototype.handleError=function(){this.log("Local dump population failed.");BO(this.context.ij,"mrK8ic")};
Dcd.prototype.Tg=function(){var a=this;if(this.ka)return this.ka;if(this.context.HO){var b=new _.ri;this.ka=b;this.initialize().then(function(){var c=_.Lk(_.PN(a.H),NN,11);c=c[0]&&c[0].getKey()||"";return Ecd(a,a.context.HO,c,4)}).Yf(function(c){if(_.E(a.H,8,!0))return Fcd(a);throw c;}).then(function(){_.XK(a.H)||a.context.jf.uq.H.clear();BO(a.context.ij,"zaOY7");b.callback()},function(c){tcd(a,8);a.handleError();b.Sd(c)});return b}this.handleError();return _.zi(Error("Tf"))};
Dcd.prototype.initialize=function(){var a=this;return this.context.HO.initialize().then(function(){if(!_.KM(a.H)){var b=_.wk(_.PN(a.H),7,432E6);b&&(a.ha=Date.now()-b);return new _.gi(function(c,d){x$c(a.context.YB).then(function(e){e?c():d(Error("Uf"))})})}})};
var Ecd=function(a,b,c,d){var e=a.ha;Gcd(a,b,c,e);Hcd(a,b,c,e);Icd(a,b,c,e);return Jcd(a,b,c,e).then(function(){return Promise.all([Kcd(a,b,c,d,e),Lcd(a,b,c,d,e),Mcd(a,b,c,d,e),Ncd(a,b,c,d,e)])})},Gcd=function(a,b,c,d){var e=function(){return a.log("Failed to load account from storage.")};NO(b,c,0,void 0,d,a.dC).then(function(f){f[0]?Hbd(a.context.dO,f[0],a.Ue(),_.KM(a.H)):e()},function(){return e()})},Hcd=function(a,b,c,d){var e=function(){return a.log("Failed to load apps from storage.")};NO(b,
c,1,void 0,d,a.dC).then(function(f){f[0]?a.context.OX.pO(f[0],a.Ue(),_.KM(a.H)):e()},function(){return e()})},Icd=function(a,b,c,d){var e=function(){return a.log("Failed to load user prefs from storage.")};NO(b,c,5,void 0,d,a.dC).then(function(f){if(f[0]){f=f[0];var h=_.Lk(f,_.kp,1);h.length&&a.context.DC.pO(h,a.Ue(),_.Jd(f,2),_.KM(a.H))}else e()},function(){return e()})},Kcd=function(a,b,c,d,e){var f=new _.ro;NO(b,c,3,1,e,a.dC).then(function(h){return Ocd(a,h[0])}).then(function(h){if(h){b!==a.context.HO||
OYc(_.Jd(h,12),_.QM(a.Ig),_.JM(a.H))||(a.log("Disabling dump updater due to inconsistent fields.","warning"),a.context.Lr.vQ());var k=_.C(h,3);if(!k||0>k)throw Error("Xf");a.context.yt(h.mn(),d);k=_.C(h,3);"number"===typeof k&&pcd(a.context,Number(k));_.KM(a.H)&&(a.log("Coldstart: Firing INITIAL_CHANGES_PROCESSED."),a.context.JAa());a.Gk(h,d);f.resolve()}else f.reject("Failed to load cache hints from storage.")},f.reject,f);return f.promise},Lcd=function(a,b,c,d,e){var f=new _.ro;NO(b,c,3,2,e,a.dC).then(function(h){h[0]?
(a.Gk(h[0],d),f.resolve()):f.reject(Error("Vf"))},f.reject,f);return f.promise},Mcd=function(a,b,c,d,e){var f=new _.ro;NO(b,c,3,4,e,a.dC).then(function(h){h.forEach(function(k){a.Gk(k,d)});f.resolve()},f.reject,f);return f.promise},Ncd=function(a,b,c,d,e){var f=new _.ro;NO(b,c,3,3,e,a.dC).then(function(h){h.length?h.forEach(function(k){a.Gk(k,d)}):BO(a.context.ij,"rVezo");f.resolve()},f.reject,f);return f.promise},Jcd=function(a,b,c,d){var e=new _.ro;NO(b,c,6,void 0,d,a.dC).then(function(f){f=_.m(f);
for(var h=f.next();!h.done;h=f.next())h=h.value,_.Lk(h,xO,1).length&&(a.log("Importing "+_.Lk(h,xO,1).length+" people into the PeopleCache."),h=_.Lk(h,xO,1),N7c(a.context.jf.uq.H,h,2));e.resolve()},e.reject,e);return e.promise},Ocd=function(a,b){var c=_.C(b,3);return c&&!_.KM(a.H)?Ccd(new Acd(a.context.Yl()),c).then(function(d){return _.sk(d,2)?(a.log("Encrypted dump too stale."),a.context.fl().O(106007),tcd(a,9),null):b},function(){return b}):_.ji(b)},Fcd=function(a){var b=OO(a.context.IJ.yi()),
c=_.Lk(_.PN(a.H),NN,11).filter(function(d){return d.Nq()});return p$c(_.IM(_.SK(a.H)),_.JM(a.H),_.wk(_.PN(a.H),10,0)||0,_.QM(a.Ig),a.ha||0,c.map(function(d){return _.C(d,1)}),b).then(function(d){if(d){var e=c.find(function(k){return d.V===_.C(k,1)}),f=new PO(_.ji(d),a.context.Hf(),null,!0),h=new n9c(f,a.H,function(k){a.context.DH(k)});h.initialize();a.ma=!0;return Ecd(a,h,e?e.getKey():null,8).then(function(){return f.getMetadata([u$c])}).then(function(k){if(k[0])return k=k[0].Ya(),a.context.YB.set(u$c,
k)}).then(function(){f.close()})}return _.ki(Error("Wf"))})},Scd=function(a,b,c){switch(_.vk(b,13,0)){case 1:return Pcd(a,b,c);case 2:b=_.D(b,NZc,11);if(!b)throw Error("Yf");scd(a,b);a.O.NL?(a.O.Ci(a.Ue()),a=[{cache:a.O,changes:LO(a.context.hy,null)}]):a=[];return a;case 3:return Qcd(a,b);case 4:return Rcd(a,b);default:return null}},Pcd=function(a,b,c){var d=[];_.Lk(b,lO,5).forEach(function(e){var f=void 0,h=_.D(e,_.Cl,3);h&&(_.NRc(h),_.H(a.H,67)&&CYc(h,RYc),_.lL(h,c),f=new nO(h));var k=e.getQuery();
if(!_.E(k,48,!1)||_.Lk(a.H,_.Oe,44).some(function(l){if(!_.E(l,48,!1))return!1;l=qO(a.context.Hm,l,!0);return _.Tk(l,k)}))e=new CO(a.context.kv,a.context.bw,a.context.Hm,k,f),e.Ci(a.Ue()),d.push({cache:e,changes:LO(a.context.hy,null)})});return d},Rcd=function(a,b){return _.Lk(b,lO,5).map(function(c){c=new zcd(a.context,a.Ig,_.D(c,_.LK,5),!0);c.Ci(a.Ue());return{cache:c,changes:LO(a.context.hy,null)}})},Qcd=function(a,b){var c=_.Jd(_.Lk(b,lO,5)[0].getQuery(),33)[0],d=_.C(b,3)||void 0;b=LO(a.context.hy,
c);gP(a.context).addCallback(function(f){f.xsa(c,d)});var e=new FO(a.context.kv,a.context.bw,c);e.Ci(a.Ue());return[{cache:e,changes:b}]};
Dcd.prototype.Gk=function(a,b){var c=this,d=Scd(this,a,b);d&&0!==d.length?(a.Dd().forEach(function(e){_.NRc(e);_.H(c.H,67)&&CYc(e,RYc);_.lL(e,b);if(!_.XK(c.H)&&!c.context.jf.uq.H.vc()){var f=c.context.jf.uq;c8c(f,HO(f,[e]))}e=new nO(e);for(f=0;f<d.length;f++)d[f].cache.update(zO(e))}),d.forEach(function(e){var f=e.cache;c.dispatchEvent(new mcd(f,e.changes));c.log("Imported "+f.Md()+" items into the "+f.getType());var h=null;f instanceof FO&&(h=f.zc());c.context.W8.promise.then(function(){K8c(c.context.hy,
h)})}),1===_.vk(a,13,0)&&BO(this.context.ij,"ZA9qG")):this.log("Ignoring corpus cache for "+_.vk(a,13,0)+".")};Dcd.prototype.Ue=function(){return this.ma?7:3};
var Tcd=function(a){_.P.call(this);this.context=a};_.N(Tcd,_.P);Tcd.prototype.Tg=function(a){try{Ucd(this,new had(JSON.parse(a)))}catch(b){this.handleError("Error parsing prefetched request.",b)}};
var Ucd=function(a,b){a.log("Running prefetched request populator for "+b.getKey()+".");switch(b.getKey()){case 1:case 3:Vcd(a,b);break;case 4:Wcd(a,b);break;case 6:Xcd(a,b);break;case 2:Ycd(a,b);break;case 7:Zcd(a,b);break;case 5:_.Lk(_.D(b,jad,7),had,1).forEach(function(c){Ucd(a,c)});break;default:a.handleError("Unsupported prefetched request.")}},Vcd=function(a,b){var c=_.D(b,_.Oe,2);b=JSON.parse(_.C(b,3)||"{}");var d=new _.YK;_.BRc(d,c);b=a.context.uP().Wpa.XC(d,{headers:{},text:"",json:b}).Me();
$cd(a,c,b)},Xcd=function(a,b){$cd(a,_.D(b,_.Oe,2),_.D(b,_.BA,9))},$cd=function(a,b,c){for(var d=c.Dd(),e=_.m(d),f=e.next();!f.done;f=e.next())_.lL(f.value,7);c=$bd(c);a=a.context.jf;b=qO(a.context.Hm,b);e=hP(a,b);a.log("Initializing cache with "+d.length+" items for key '"+e+"'");f=a.H[e];f||(f=new iP(a.context,b),f.Ci(2),a.H[e]=f);c.vc()||f.Vpa(c);a.Gk(d,1,b)},Ycd=function(a,b){b=_.D(b,_.mp,5);var c=a.context.Mc.Of();c=c&&_.Jd(c,30)||[];var d=new Set(c);_.Lk(b,_.kp,3).forEach(function(e){(e=(e=e.getKey())&&
_.lp(e))&&d.add(e)});a.context.DC.pO(_.Lk(b,_.kp,3),2,[].concat(_.Wc(d.values())))},Wcd=function(a,b){a.context.bda.l0(_.D(b,yO,8).jk(),_.D(b,_.qp,6),2,!1)},Zcd=function(a,b){var c=_.D(b,_.np,10);b=JSON.parse(_.C(b,3)||"{}");b=a.context.uP().Wpa.XC(c,{headers:{},text:"",json:b});rbd(a.context).l0([b],c,2,!1)};Tcd.prototype.handleError=function(a,b){var c=b?void 0:_.Yq(_.eL(_.dL(new _.Ub,2),6));this.context.dispatchEvent(new _.Wb(new _.Vb(a,c,b)));this.log("Prefetched request population failed.")};
Tcd.prototype.log=function(a){this.context.Hf().info("drive.ds.sync.cache.PrefetchedRequestPopulator",a)};
var jP=function(a){rcd.call(this,a);this.H=[];this.ha=[];this.W="drive.ds.sync.cache.SdkCachePopulator";this.ma=Math.ceil(1.1*_.wk(a.Mc,31,2E4))};_.N(jP,rcd);jP.prototype.Tg=function(){if(!_.E(this.context.Mc,45,!1))return tcd(this,5),this.handleError(),_.zi(Error("Zf"));this.log("Drive SDK cache population initiated.");return this.context.gSa().addCallback(this.va,this).addCallback(this.oa,this).ef(this.handleError,this)};
jP.prototype.va=function(){var a=this;BO(this.context.ij,"L6uQWd");gP(this.context).addCallback(function(b){b.yba()});if(_.E(this.context.Mc,46,!1))return MZc(this.context.Yl(),this.context.Hf()).addCallback(function(b){if(!b)throw tcd(a,4),Error("$f");scd(a,b)});this.log("Subscribed corpus cache population disabled.");p7c(this.O);return _.xi()};
jP.prototype.oa=function(){var a=this;this.context.JAa();var b=new _.ri;if(this.O.NL){this.log("Starting subscribed corpus cache population.");var c=this.O.ud();c.Th(this.ma);this.O.Ci(5);add(this,this.O,c)}c=_.Lk(this.context.Mc,_.Oe,44);_.Ka(c,function(d){d=new CO(a.context.kv,a.context.bw,a.context.Hm,d);d.Ci(5);add(a,d,d.ud());d=rO(a.context.Hm,d.ud());a.log("Starting "+d+" cache hint corpus cache population.")});_.mi(this.ha).then(b.callback,this.ka.bind(this,b),b);return b};
var add=function(a,b,c){var d=LO(a.context.hy,null);b=new kcd(a.context,b,c);a.H.push(b);b=_.pi(b.Tg().then(function(e){!e.NL&&e instanceof EO&&(a.log("Subscribed corpus cache disabled, too many backfill items."),a.context.qz.Kb("CachedCorpusType","errorUncachedCorpus"));a.dispatchEvent(new mcd(e,d))}),function(){a.context.W8.promise.then(function(){K8c(a.context.hy,null)})});a.ha.push(b)};
jP.prototype.ka=function(a,b){_.Ka(this.H,function(d){d.dispose()});tcd(this,7);var c=b;b instanceof vO?c=_.rL(b.error):_.WK(b)||(c=Error("ag`"+b));a.Sd(c)};jP.prototype.handleError=function(){this.log("Drive SDK cache population failed.");BO(this.context.ij,"Gv4zef")};jP.prototype.Ue=function(){return 5};
var bdd=function(a,b){_.P.call(this);this.context=a;this.V=b;this.Ic=new _.pe(this);this.impression=null;this.W=[];this.La(this.Ic);this.H=new Dcd(this.context,this.context.Ig);this.La(this.H);this.O=new jP(this.context);this.La(this.O)};_.N(bdd,_.P);
bdd.prototype.Tg=function(){var a=this;this.log("Corpus cache population initiated.");this.impression=this.context.fl().H(106002);_.q._DRIVE_dsp&&cdd(this);_.q._DRIVE_dspc=function(c){cdd(a,c)};LO(this.context.hy,null);_.E(this.context.Mc,24,!1)&&!_.KM(this.context.Mc)&&(_.q._DRIVE_ivd||null===_.q._DRIVE_ivd?ddd(this):_.q._DRIVE_ivdc=function(){ddd(a)});var b=this.context.HO;if(b)return this.Ic.listen(this.H,lcd,this.ha),this.Ic.listen(this.O,lcd,this.ha),(!_.E(this.context.Mc,10,!1)&&_.H(this.context.Mc,
69)?this.context.EV.promise:Promise.resolve()).then(function(){return b.initialize().then(function(){a.log("Dump storage initialized.");a.impression&&(a.H.dC=a.impression);return a.H.Tg().lg(function(){return edd(a,a.H.Ue())},function(){fdd(a,a.H.Ue(),a.H.V);return _.KM(a.context.Mc)?a.handleError(Error("bg")):a.O.Tg().then(function(){return edd(a,a.O.Ue())},function(c){fdd(a,a.O.Ue(),a.O.V);return a.handleError(c)})})},function(c){a.handleError(_.WK(c)?c:void 0,!0)})});this.handleError(void 0,!0)};
var cdd=function(a,b){var c=new Tcd(a.context);(_.q._DRIVE_dsp||[]).filter(function(d,e){return d&&[,!0,!0,!0,!0,,!0,!0][e]&&(!b||e===b)}).forEach(function(d){c.Tg(d)});c.dispose()};bdd.prototype.ha=function(a){var b=a.cache;this.log("Cache populated: "+b.getType());this.W.push(gdd(this,b,a.changes))};
var edd=function(a,b){K8c(a.context.hy,null);BO(a.context.ij,"L6uQWd");gP(a.context).addCallback(function(c){c.yba()});return Promise.all(a.W).then(function(){hdd(a,b)})},idd=function(a){return(a=a.context.jf.Nv.H)&&a.NL?1:2},hdd=function(a,b){if(!a.isDisposed()){_.KM(a.context.Mc)||jdd(a.V,_.Lk(a.context.Mc,_.Oe,44));a.log("Corpus cache population complete.");var c=a.context.ij;c.H("mrK8ic")?c.H("Gv4zef")||a.context.Lr.KAa():x$c(a.context.YB).then(function(d){d&&a.context.Lr.KAa()},function(){});
BO(c,"rVezo");BO(c,"BNEDtc");a.impression&&(b=_.XM(_.JQc,b),o1c(I1c(a.impression),b),n1c(I1c(a.impression),!0),p1c(I1c(a.impression),Y5c(a.V.Gl)),q1c(I1c(a.impression),idd(a)),a.impression.ek());a.dispose()}},fdd=function(a,b,c){a.impression&&(b=_.XM(_.JQc,b),o1c(I1c(a.impression),b),a=I1c(a.impression),_.Jk(a,3,c,void 0))};
bdd.prototype.handleError=function(a,b){b=void 0===b?!1:b;K8c(this.context.hy,null);var c=this.context.ij;BO(c,"L6uQWd");gP(this.context).addCallback(function(d){d.yba()});BO(c,"mrK8ic");BO(c,"Gv4zef");BO(c,"rVezo");BO(c,"BNEDtc");this.context.qz.Kb("CachedCorpusType","partialCorpus");c=!!this.H.context.HO||_.E(this.O.context.Mc,45,!1);a&&!b&&c?(c=void 0,b="Corpus population failed: ",_.WK(a)?(c=a,b+=c.message):b+=String(a),this.log(b),a=new _.Vb(b,void 0,c),c=a.Kg,_.dL(c,_.KM(this.context.Mc)?3:
1),_.eL(c,6),_.Wq(c,b),_.Yq(c),this.context.dispatchEvent(new _.Wb(a))):this.log("Corpus population skipped");this.impression&&(n1c(I1c(this.impression),!1),this.impression.ek());this.dispose()};
var gdd=function(a,b,c){return ncd(b,c).then(function(d){d.some(function(e){return b instanceof FO&&e.Xj()&&e.Gc()===b.zc()})||qcd(a.V,b,d)},function(){return a.handleError(Error("cg"))})},ddd=function(a){if(_.q._DRIVE_ivd){var b=new ocd(a.context,a.context.Ig);a.La(b);b.Tg(_.q._DRIVE_ivd)}else BO(a.context.ij,"DEJoH")};bdd.prototype.log=function(a){this.context.Hf().info("drive.ds.sync.cache.CorpusCachePopulatorManager",a)};
var kdd=function(){DO.apply(this,arguments)};_.N(kdd,DO);kdd.prototype.jt=function(a){var b;if(b=DO.prototype.jt.call(this,a))a=a&&a.getItem()&&a.getItem().Xl(),b=!(!a||!_.H(a,3));return b};kdd.prototype.ud=function(){};kdd.prototype.getType=function(){};kdd.prototype.RP=function(){};
var ldd=function(a,b){this.context=a;this.H=b;this.AO={}},ndd=function(a,b){if(!_.PL(b)){var c=_.Jd(b,33);if(1===c.length)mdd(a,c[0],b);else{c=_.FM(b);if(1===c.length&&!_.E(c[0],2,!1)){var d=c[0].Ya();c=a.H.get(d);if(!c){c=a.context.jf.HJ;var e=_.cf(new _.bf,310);c.AQ([d],e).then(function(f){if((f=f[d])&&f.zc()){var h=f.getCapabilities();h&&_.Md(h)&&(f=f.zc(),mdd(a,f,b))}else mdd(a,null,b)});return}if(c.getItem().zc()&&_.Md(c.getItem().getCapabilities())){c=c.getItem().zc();mdd(a,c,b);return}}mdd(a,
null,b)}}},mdd=function(a,b,c){if(b){var d=a.H.get(b);if(d&&!pO(d.getItem()))return}d=b||"subscribed";a.AO[d]||(a.AO[d]=[]);a.AO[d].push(c);b&&(gP(a.context).addCallback(function(e){e.xsa(b)}),odd(a.context.Q2a,b))},pdd=function(a,b){if(!_.PL(b)){var c={},d;for(d in a.AO){c.MR=d;for(var e=0;e<a.AO[c.MR].length;e++)if(_.Tk(b,a.AO[c.MR][e])){_.sa(a.AO[c.MR],e);"subscribed"!==c.MR&&gP(a.context).addCallback(function(f){return function(h){h.JDa(f.MR,!1)}}(c));return}c={MR:c.MR}}}};
var qdd=function(){this.H=new Map;this.O=[];this.V=[]};
qdd.prototype.update=function(a){var b=this,c=a.id,d=a.O;a=a.H;var e=(d||a).getItem();BN(e)&&(a?(e=a.getItem().Af())&&_.C(e,1)&&(1===_.Sd(e)||3===_.Sd(e))&&(e=_.C(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&&!_.Tk(a.getItem(),d.getItem()))&&this.H.get(c).forEach(function(f){b.V.push(f)})};
var rdd=function(a){return a.V.filter(function(b){return!a.O.includes(b)})},sdd=function(a){a.O=[];a.V=[]};
var tdd=function(a,b){MO.call(this,_.Uk(a),b.Yl(),b.Mc,b.Hf());this.context=b};_.N(tdd,MO);tdd.prototype.W=function(a){var b=new Map;a.Wl().forEach(function(c){var d=_.Pxa(_.Uk(a),[c]);b.set(c,d)});return b};tdd.prototype.V=function(a){a=a.Dd()[0];this.context.jf.Gk([a],1,void 0,!0,this.request.O())};tdd.prototype.ha=function(a){this.context.jf.Gk([],1,a,!1,this.request.O())};tdd.prototype.ka=function(a){a=_.mL(_.cL(new _.bL,a));this.context.jf.So([a])};
var udd=function(a,b,c,d){eP.call(this,a);this.Ig=b;this.request=c;this.Od={};d&&this.Gk(d,!0)};_.N(udd,eP);_.g=udd.prototype;
_.g.refresh=function(){var a=this;this.zn=6;var b=oO(this.context.Mc)!==oO(this.context.Mc,this.request.O()),c=[];this.request.Wl().forEach(function(h){var k=a.Od[h];k&&k.getItem().jh()&&!b||c.push(h)});if(0===c.length)return this.Gk([],!1),_.ji();var d=_.Uk(this.request);_.Pxa(d,c);var e=new tdd(d,this.context),f=_.oi();this.context.Ij.$e()?(this.Ic.listen(this.context.Ij,"Ab",function(h){h.$e()||(a.Ic.Uc(a.context.Ij,"Ab"),a.DA(),e.Tg().then(f.resolve,f.reject,f))}),this.zn=0<_.fg(this.Od)?1:2):
(this.context.Ul().$e()&&(this.zn=0<_.fg(this.Od)?1:2),this.DA(),e.Tg().then(f.resolve,f.reject,f));return f.promise};_.g.lfa=function(a){return this.context.Hm.equals(a,this.request)&&HYc(_.QM(this.Ig),a.O())};_.g.Zl=function(a){var b=new _.YM;b.Ac(this.zn);b.Ci(this.Ue());b3c(b,_.dg(this.Od,function(c){return c?c.getItem():null}));Obd(this,a.O(),b.map);return b};_.g.resize=function(){};_.g.ud=function(){return this.request};
_.g.Dt=function(a){var b=this.jt(a.O),c=this.jt(a.H);if(b||c)c?(this.Od[a.id]=a.H,a.H.count++,b&&a.O.count--):(this.Od[a.id]=null,a.O.count--);else return!1;return!0};_.g.jt=function(a){return!!a&&this.request.Wl().includes(a.getId())};
var iP=function(a,b,c,d,e){eP.call(this,a);var f=this;this.V=0;this.Od=[];this.O={};this.ka=null;this.incompleteSearch=!1;this.ha=[];this.W=[];this.suggestionSessionId=null;this.count=0;this.va=null;this.ma=Date.now();this.request=_.Uk(b);this.tv=new ecd(this.context,this.request,!1,e);b=this.request.Lc()&&$5c(this.request.Lc());e=this.context.bw;this.H=b?(0,_.v)(e.compare,e,this.request):null;this.KU=!b||!R5c(this.request)||_.RK(_.SK(a.Mc));this.Ba=u7c(this.request);c&&this.Gk(c,!d);this.oa=_.wk(a.Mc.Of(),
16,36E5);_.mM(this.request)&&this.Ic.listen(this.context.zea,"Hb",this.Fa);_.ge(this,function(){_.aa(f.tv);f.clear()})};_.N(iP,eP);iP.prototype.refresh=function(){return vdd(this,!1)};var vdd=function(a,b){a.zn=6;if(_.E(a.request,48,!1))return a.zn=1,_.ji();if(_.mM(a.request)){var c=wdd,d=a.context.zea.H;d=Math.max(Date.now()-d,a.oa);c(a,Math.min(d,2592E5))}return xdd(a,b)};iP.prototype.initialize=function(){return this.count>=this.request.ki()||1===this.zn?_.ji():this.refresh()};
iP.prototype.clear=function(){ydd(this)};var ydd=function(a){a.Od.forEach(function(b){b.count--});a.count=0;a.Od=[];a.O={}},wdd=function(a,b){_.q.clearTimeout(a.va);a.va=_.q.setTimeout(function(){return vdd(a,!0)},b)};iP.prototype.Fa=function(){Date.now()-this.ma>this.oa&&wdd(this,0)};
var xdd=function(a,b){a.tv&&(a.Ic.Uc(a.tv,"Eb",a.Vpa),a.Ic.Uc(a.tv,"Fb",a.rJa),a.tv.dispose());var c=a.request.re();c&&_.df(c,!1);a.tv=new ecd(a.context,a.request,b);a.V=0;a.Ic.listen(a.tv,"Eb",function(){return a.Vpa(a.tv.ha)});a.Ic.listen(a.tv,"Fb",a.rJa);return a.faa()};iP.prototype.faa=function(){var a=this,b=_.oi();this.context.Ij.$e()?this.Ic.listen(this.context.Ij,"Ab",function(c){c.$e()||(a.Ic.Uc(a.context.Ij,"Ab"),zdd(a,b))}):zdd(this,b);return b.promise};
var zdd=function(a,b){a.DA();var c=a.request.ki()+a.V;_.fja(ccd(a.tv,c).lg(b.resolve,b.reject,b),function(){return a.ma=Date.now()})};_.g=iP.prototype;_.g.resize=function(a){var b=0;for(var c=_.m(new Set([].concat(_.Wc(this.nx)))),d=c.next();!d.done;d=c.next())d=d.value,d=Qbd(this.context).fia(d),b=Math.max(b,d.ki());_.mM(this.request)?(this.request.Th(b),2!==this.Ue()&&!this.tv.O&&(b>this.count||a)?this.refresh():this.IH()):this.request.ki()!==b&&(this.request.Th(b),b>this.count?this.faa():this.IH())};
_.g.ud=function(){return this.request};_.g.lfa=function(a){return this.context.Hm.equals(a,this.request)};
_.g.Zl=function(a){var b=a.ki(),c,d=!1;if(_.QL(this.request)){var e=this.Od.slice();var f=this.W.slice(0,b);if(this.W.length>b){var h=f.map(function(l){return l.getId()});for(c=0;c<e.length;c++){var k=e[c];d=_.Gl(k.getItem()).filter(function(l){return h.includes(_.D(l,_.ml,1).getId())});k=k.clone();LYc(k.getItem(),d);e[c]=k}e=e.filter(function(l){return _.Gl(l.getItem()).length})}d=UYc(e);c=new _.ZM;_.A(c,4,!1);c2c(c,f)}else e=this.Od.slice(0,b),c=new _.BA,I0c(c,b<this.Od.length||!(this.context.Ij.$e()||
this.context.Ul().$e())&&1!==this.zn),_.y(c,7,this.ka),_.A(c,8,this.incompleteSearch),_.tTc(c,this.ha),d=UYc(e);e=BZc(e);Obd(this,a.O(),e);c.Hv(e);c.Ac(d?6:this.Qta(b));c.Ci(this.Ue());c.IN(this.suggestionSessionId);return c};_.g.Qta=function(a){return 1===this.zn||a<=this.count?1:this.context.Ij.$e()||this.context.Ul().$e()?0<this.Od.length?1:2:6};_.g.Vpa=function(a){this.ka=a.W;this.incompleteSearch=a.incompleteSearch;this.ha=a.cxa();this.W=a.V;this.suggestionSessionId=a.xf()};
_.g.rJa=function(){var a=this.request.ki()-this.count;0<a&&acd(this.tv)&&(this.V+=a,this.faa())};_.g.Gk=function(a,b){_.mM(this.request)&&ydd(this);var c=!1;a=_.m(a);for(var d=a.next();!d.done;d=a.next())d=zO(d.value),c=this.Dt(d,!0)||c;b||(1!==this.zn&&(c=!0),this.zn=1);if(b=this.H){a:{b=this.Od;a=this.H||_.Ga;for(d=1;d<b.length;d++)if(0<a(b[d-1],b[d])){b=!1;break a}b=!0}b=!b}b&&(this.Tm("ViewCache unsorted after import"),this.context.bw.sort(this.request,this.Od));c&&this.PV()};
_.g.Dt=function(a,b){var c=this.O[a.id],d=!!c,e=this.jt(a.H,b),f=a.O;c&&(d?a.O&&a.O!==c&&this.Tm("Updating different wrapper from the existing one"):this.Tm("Updating existing item but old wrapper did not match"),f=c,d=!0);if(d||e)if(d)e?this.lHa(f,a.H):(this.AH(f),_.mM(this.request)&&wdd(this,0));else{if(_.mM(this.request)&&!b)return!1;this.NP(a.H)}else return!1;return!0};_.g.NP=function(a){this.H?xYc(this.Od,a,this.H):this.Od.push(a);a.count++;Add(a)&&this.count++;this.O[a.getId()]=a};
_.g.AH=function(a){if(this.H){var b=this.Od,c=_.Ha(b,a,this.H);0<=c&&_.sa(b,c)}else _.ua(this.Od,a);a.count--;Add(a)&&this.count--;_.jg(this.O,a.getId())};_.g.Lva=function(a){return this.H?_.Ha(this.Od,a,this.H):_.ma(this.Od,a)};_.g.lHa=function(a,b){this.H&&0!==this.H(a,b)?(this.AH(a),this.NP(b)):(this.Od[this.Lva(a)]=b,b.count++,Add(b)&&this.count++,a.count--,Add(a)&&this.count--,_.jg(this.O,a.getId()),this.O[b.getId()]=b)};
_.g.jt=function(a,b){if(!a)return!1;if(this.KU&&!_.mM(this.request)){if(b)return!0;if(!this.Ba){var c=a.getId();b=!!this.Od.find(function(e){return c===e.getId()},this);a=S5c(this.context.kv,this.request,a.getItem());return b&&a}}if(!S5c(this.context.kv,this.request,a.getItem()))return!1;var d=1.2*this.request.ki();if(1===this.zn||!this.H||y5c(a.H,2)||this.count<d||b||bZc(a.getItem()))return!0;b=0===this.Od.length?null:this.Od[this.Od.length-1];return!!b&&0>=this.H(a,b)};
_.g.IH=function(){if(1!==this.zn&&!this.context.Ij.$e()&&!this.context.Ul().$e()){var a=1.2*this.request.ki();if(!(a>=this.count||this.tv&&a>=this.tv.$b())){a=this.count-this.request.ki();for(var b=this.Od.length-1;0<=b&&0<a;b--){var c=this.Od[b];y5c(c.H,2)||bZc(c.getItem())||(c.count--,Add(c)&&this.count--,_.jg(this.O,c.getId()),_.sa(this.Od,b),a--)}xdd(this,!1)}}};_.g.Tm=function(a){var b=new _.Ub;_.dL(b,2);_.eL(b,6);_.Yq(b);this.context.dispatchEvent(new _.Wb(new _.Vb(a,b)))};
var Add=function(a){return!y5c(a.H,2)&&3!==DN(a.getItem())};iP.prototype.fOa=function(a){var b=this,c=_.FM(this.request);c.length&&(c=c.some(function(d){return(d=b.context.jf.Gl.H(d.Ya()))&&_.H(d,108)}),G6c(this.context.$ca,a,c))};iP.prototype.eOa=function(){this.IH()};iP.prototype.RUa=function(a){return 1!==this.zn&&a.ki()>this.count&&this.tv.O};
var kP=function(a,b){_.P.call(this);var c=this;this.H={};this.W=new qdd;this.Ic=new _.pe(this);this.La(this.Ic);this.context=a;this.Ig=b;this.Nv=new B7c(a.Hm);this.O=new Q5c(a.R3,a.kv,a.bw);_.H(a.Mc,60)&&(this.va=new kdd(a.kv,a.bw));this.V=new L5c(a.Hf(),_.QM(this.Ig));(b=_.hL(this.context.Mc))&&!_.E(b,1,!1)&&Bdd(this,_.Jd(this.context.Mc,28));this.Gl=new U5c(this.Ig,this.context.Hm,this.O,this.V);this.context.fl().W.H=this.Gl;this.HJ=new gcd(this.context,this.Ig,this.H,this.O);this.hDa=new ldd(this.context,
this.O);this.ka=new bdd(this.context,this);_.ge(this.ka,function(){c.ka=null});this.oa=_.JRc(G1c(this.Ig),Cdd);AO(this.context.ij,["NSockf"],function(){return c.initialize()});AO(this.context.ij,["NSockf","jroI5d"],function(){var d=c.context.Mc;if(_.D(d,_.Cl,12))d=_.D(d,_.Cl,12);else{var e=_.uSc(_.wSc(new _.ml,_.IM(_.SK(d))),!0);e=_.A(e,6,1);var f=_.G(_.SK(d),6,"");f&&e.Pb(f);e=_.COc(_.$Sc(_.aTc(_.IK((new _.Cl).Pb(c.context.mn()).setTitle(_.G(d,38,"My Drive")),"application/vnd.google-apps.folder").Wm(!1),
e),[e]),1);e=_.A(e,29,!0);e=_.A(e,63,!0);d=_.xSc(new _.wl,_.E(d,6,!0));d=_.A(d,2,!1);d=_.BM(e,_.KSc(_.DSc(_.CSc(_.GSc(_.HSc(_.FSc(_.ESc(_.BSc(_.ASc(_.zSc(_.ySc(_.A(d,3,!1),!1),!1),!0),!0),!1),!1),!1),!1),!1),!1),!1))}c.Gk([d],1);BO(c.context.ij,"hVFf7")});this.ha=_.oi();AO(this.context.ij,["BNEDtc"],function(){c.ha.resolve()});this.uq=new X7c(this.context.Mc,this.context.Hf(),a.Yl(),a.$ca,this.context.fl(),this.context.EV.promise);_.XK(this.context.Mc)&&this.Ic.listen(this.uq,"Kb",this.ma);this.sJa=
new _.wVc(this.context.Mc,this.Gl)};_.N(kP,_.P);
kP.prototype.ma=function(a){a=a.getPeople();this.log("Handling PeopleCache updated with "+a.length+".");var b=new Set;a=_.m(a);for(var c=a.next();!c.done;c=a.next())this.uq.getItems(_.C(c.value,1)).forEach(function(f){return b.add(f)});a=[];c=_.m(b);for(var d=c.next();!d.done;d=c.next()){var e=d.value;(d=this.O.get(e))?(e=d.getItem().clone(),Ddd(this,e),a.push(f7c(d,new nO(e,void 0,1)))):this.log("b/154479164 Unexpected missing wrapper for "+e+".","warning")}Edd(this,a,[]);this.context.Lr.update(6)};
kP.prototype.initialize=function(){this.ka.Tg()};
kP.prototype.Eh=function(a,b){if(b instanceof _.Oe)b=qO(this.context.Hm,b),Fdd(this,b.O()),ndd(this.hDa,b),b=Gdd(this,b),b.cache.Eh(a);else if(b instanceof _.fp)b=Hdd(this,b),Fdd(this,b.O()),b=Idd(this,b),b.cache.Eh(a);else if(b instanceof _.LK){var c=hP(this,b),d=this.H[c];d?(3==d.WK()?(this.log(c+" | TeamDriveQueryRequest backed by refreshing existing cache"),d.refresh()):this.log(c+" | TeamDriveQueryRequest backed by existing view cache"),b={cache:d,hv:!1}):(this.log(c+" | ItemQueryRequest backed by new cache"),
d=new zcd(this.context,this.Ig,b),d.refresh().Yf(_.vf),this.H[c]=d,b={cache:d,hv:!0});b.cache.Eh(a)}else if(b instanceof _.op)c=b.O(),d=this.V,M5c(d,d.H,d.O,c),b=Idd(this,b),b.cache.Eh(a);else throw Error("dg");return b.hv};kP.prototype.Hj=function(a,b){if(b instanceof _.Oe)b=qO(this.context.Hm,b),pdd(this.hDa,b);else if(b instanceof _.fp)b=Hdd(this,b);else if(!(b instanceof _.LK||b instanceof _.op))throw Error("dg");b=hP(this,b);var c=this.H[b];c&&(c.Hj(a),c.isDisposed()&&delete this.H[b])};
var hP=function(a,b){return rO(a.context.Hm,b,2)},Gdd=function(a,b){var c=hP(a,b),d=a.H[c];if(d)return 3==d.WK()?(a.log(c+" | ItemQueryRequest backed by refreshing existing cache"),d.refresh()):a.log(c+" | ItemQueryRequest backed by existing view cache"),{cache:d,hv:!1};d=[];for(var e=5,f,h,k=C7c(a.Nv),l=0;l<k.length;l++){var n=k[l];e=n.iH(b);if(5!=e){f=1==e?void 0:b.ki();d=n.Mxa(b,f);f=n.Ue();h=n instanceof CO?n.Yw():"";a.log(c+" | ItemQueryRequest backed by "+n.getType()+" | size "+(n.Md()+" | initial "+
d.length));break}}5==e&&a.log(c+" | ItemQueryRequest backed by new cache");if(a.context.Ij.$e()||a.context.Ul().$e())d=d.concat(a.O.query(b,1)),_.Fa(d,void 0,function(p){return p.getId()}),e=(e=a.Nv.H)&&e.W5&&5!=e.iH(b)?e.iH(b):6,a.log("Offline: Populate with "+d.length+" initial items(s)");d=new iP(a.context,b,d,1==e,h);f&&d.Ci(f);d.Gk(a.O.query(b,2),1!=e);d.initialize().Yf(function(p){p=_.fL(p);_.Yq(p);a.context.dispatchEvent(new _.Wb(new _.Vb("Error during view cache init",p)))});a.H[c]=d;return{cache:d,
hv:!0}},Idd=function(a,b){var c=hP(a,b),d=!1,e=a.H[c];if(e)e.lfa(b)?a.log("FindByIdsRequest backed by existing query cache: "+c):(d=a.O.getAll(b.Wl()),b=Jdd(a,b,d),d=!0,a.H[c]=b,Kdd(e,b),e=b,a.log("FindByIdsRequest backed by recreated query cache: "+c));else{var f=a.O.getAll(b.Wl());e=Jdd(a,b,f);d=!0;a.H[c]=e;a.log("FindByIdsRequest backed by new query cache: "+c+" with "+(f.length+" initial items."))}return{cache:e,hv:d}},Jdd=function(a,b,c){var d;b instanceof _.fp?d=new Xbd(a.context,a.Ig,b,c):
d=new udd(a.context,a.Ig,b,c);c.length&&d.Ci(8);d.refresh().Yf(_.vf);return d};kP.prototype.fU=function(){return Object.values(this.H).filter(function(a){return a.ud()instanceof _.LK})};
kP.prototype.zZa=function(a){for(var b=_.cf(new _.bf,309),c=[],d=_.m(Object.entries(this.V.items)),e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;f=_.m(Object.entries(f));for(var h=f.next();!h.done;h=f.next()){h=_.m(h.value);var k=h.next().value;h.next();if(k===a){c.push(Number(e));break}}}c.length&&(d=i6c(this.context.Hm,c,!0),this.log("Refreshing "+a+" for secondary fields: "+d+"."),this.HJ.AQ([a],b,!1,c))};
var Nbd=function(a,b,c){c&&c.length&&O5c(a.V,b,c);_.XK(a.context.Mc)&&(a=a.uq,c8c(a,HO(a,b)))},qcd=function(a,b,c){if(b instanceof zcd){var d=hP(a,b.ud());if(a.H[d]){a.log(d+" | Cache already exists, ignoring persisted data");return}}b instanceof o7c&&a.Nv.removeAll([b]);var e={},f=new Map;d=a.O.py();for(var h=_.m(d.keys()),k=h.next();!k.done;k=h.next())k=k.value,f.set(k,d.get(k));var l=[];b.py().forEach(function(p){var t=p.getId(),u=a.O.get(t);if(u){var z=DN(u.getItem());3==z||4==z?e[p.getId()]=
p.getItem():u!=p&&(z=l.push,u=new e7c(p.getId(),p,u),z.call(l,u));f.delete(t)}else t=zO(p),a.O.update(t),a.W.update(t),_.XK(a.context.Mc)&&a.uq.nN(t);_.XK(a.context.Mc)&&Ddd(a,p.getItem())});d=_.m(f.values());for(h=d.next();!h.done;h=d.next())l.push(zO(h.value));d=_.m(l);for(h=d.next();!h.done;h=d.next())b.update(h.value);b instanceof zcd?(d=hP(a,b.ud()),a.H[d]=b):a.Nv.addAll([b]);var n=[];_.bg(e,function(p){var t=new _.bL;_.cL(t,p.getId());t.setItem(p);n.push(t)});a.So(n);a.log("Merged cache: "+
b.getType());b instanceof FO&&c.forEach(function(p){Ldd(a.context.Xpa,p)});a.context.Lr.update(3)},Kdd=function(a,b){(new Set([].concat(_.Wc(a.nx)))).forEach(function(c){b.Eh(c);a.Hj(c)})};
kP.prototype.Gk=function(a,b,c,d,e){var f=this;e||(e=c?[].concat(_.Wc(c.O().filter(function(B){return!_.QM(f.Ig).includes(B)}))):[]);c&&c instanceof _.Oe&&_.mM(c)&&Mdd(this,a,c);for(var h=[],k=[],l=0;l<a.length;l++){var n=a[l],p=new nO(n,void 0,b),t=this.O.get(n.getId()),u=t?t.getItem():null,z=Ndd(this,t,p);if(null!=z)p.WM(z),Odd(this,u,n),aZc(n),n=J5c(n,u,e),p.setItem(n);else if(null!=t)p=t,n=u;else continue;_.XK(this.context.Mc)&&Ddd(this,n);!t||Pdd(this,u,n,e)?(k.push(f7c(t,p)),h.push(p)):h.push(t)}a=
null;c&&(a=hP(this,c),a=this.H[a],c instanceof _.Oe&&(c=F7c(this.Nv,c))&&c.Gk(h,!!d),a&&a.Gk(h,!!d));0<k.length&&(_.XK(this.context.Mc)&&k.forEach(function(B){return f.uq.nN(B)}),Edd(this,k,e,a?[a]:[]),Qdd(this,h));Qbd(this.context).Y6()};
var Ddd=function(a,b){g8c(a.uq,b)||5!=DN(b)||_.gTc(b,1)},Pdd=function(a,b,c,d){(b=b?_.Bk(b.clone(),82):null)&&Nbd(a,[b],d);c=_.Bk(c.clone(),82);Nbd(a,[c],[]);return!_.Tk(b,c)},Mdd=function(a,b,c){Rdd(a,b,c);b.forEach(function(d,e){var f=a.Gl.H(d.getId());f&&(AN(f,d,[1002]),AN(f,d,[1003]),AN(f,d,[1005]),b[e]=f);_.PL(c)&&0<_.Jd(c,33).length&&_.hTc(d,_.Jd(c,33)[0])})},Rdd=function(a,b,c){var d;_.PL(c)?d="quick access":_.QL(c)?d="people predict":_.RL(c)&&(d="drive priority");c=b.map(function(e){return e.getId()}).join(", ");
a.log("Got "+b.length+" items for "+d+": "+c)},Bbd=function(a,b){var c={};b.forEach(function(d){c[d.H]||(c[d.H]=[]);c[d.H].push(d)});_.bg(c,function(d,e){e=Number(e);a.Gk(BZc(d),e)})};kP.prototype.Yia=function(a){this.sJa.Yia(a)};
kP.prototype.So=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a[d],f=e.Xj()?null:e.getItem(),h=e.Gc(),k=(h=this.O.get(h))?h.getItem():null,l=null;if(f){l=new nO(f,void 0,void 0,_.C(e,1)||void 0);var n=Ndd(this,h,l);if(null==n)continue;l.WM(n);Odd(this,k,f);_.E(e,5,!1)&&CYc(f,RYc);aZc(f);f=J5c(f,k);l.setItem(f);_.XK(this.context.Mc)&&Ddd(this,f)}this.context.Q2a.gx(e);(k&&!f||f&&Pdd(this,k,f,[]))&&c.push(f7c(h,l))}_.XK(this.context.Mc)&&c.forEach(function(p){return b.uq.nN(p)});Edd(this,
c,[])};var Odd=function(a,b,c){b&&!c.Xl()&&AN(c,b,a.oa);var d=b?b.Af():null,e=c.Af();e=e?_.Pd(e):null;d&&e&&Odd(a,_.Pd(d),e);b&&!_.Fl(c)&&AN(c,b,[1002]);b&&!_.Gl(c).length&&AN(c,b,[1003]);b&&!_.Lk(c,_.ql,117).length&&AN(c,b,[1005]);b&&null==c.x_()&&AN(c,b,[71]);b&&null==_.C(c,79)&&AN(c,b,[73]);b&&_.H(b,31)&&!_.H(c,31)&&(CYc(c,RYc),a.log("Cleared Item Suggest data for "+b.getId()+"."))};
kP.prototype.cA=function(a,b){if(a instanceof _.Oe||a instanceof _.fp||a instanceof _.LK)a=hP(this,a),(a=this.H[a])&&a.OV(b);else throw Error("dg");};var Ndd=function(a,b,c){var d=c.getItem();if(B8c(a.context.ada,d))return null;if(b){a=b.H;var e=c.H;if(!(0<=e?!a||a<=e:1))return null;a=b.getItem();if(3!=DN(a)&&!pO(a)&&!pO(d)&&a.zc()==d.zc())if(a.yi()&&d.yi()){if(a.yi()>d.yi())return null}else if(b.O&&c.O){if(b.O>c.O)return null}else if(a.Np()>d.Np())return null}return z5c(b&&b.H,c.H)};
kP.prototype.nG=function(a,b){(a=this.O.get(a))&&a.WM(z5c(a.H,b))};
var Edd=function(a,b,c,d){d=void 0===d?[]:d;var e=_.Yc(a.H),f=_.m(d);for(d=f.next();!d.done;d=f.next())_.ua(e,d.value);d=_.m(b);for(f=d.next();!f.done;f=d.next())f=f.value,a.V.update(f.id,f.H?f.H.getItem():null,c);c=_.m(e);for(d=c.next();!d.done;d=c.next())Pbd(d.value,b);c=0;b=_.m(b);for(d=b.next();!d.done;d=b.next()){e=d.value;f=!1;d=C7c(a.Nv);var h=_.m(d);for(d=h.next();!d.done;d=h.next())d.value.update(e)&&(f=!0);f&&c++;_.H(a.context.Mc,60)&&a.va.update(e);a.O.update(e);a.W.update(e);a.O.get(e.id)||
a.V.IH(e.id)}0<c&&a.context.Lr.Pka(c);Sdd(a)},Sdd=function(a){var b=a.W.O.slice(0),c=rdd(a.W);sdd(a.W);if(b.length){a.log("Refreshing shortcuts with unknown targets: "+b.join(", "));var d=new _.bf;_.cf(d,308);a.HJ.AQ(b,d,!0)}if(c.length){a.log("Updating locally stale shortcuts: "+c.join(", "));b=V5c(a.Gl,c);var e=[];Object.values(b).forEach(function(f){var h=f.getItem().Af(),k=_.C(h,1);if(k=a.Gl.H(k))_.y(h,5,k),_.A(h,4,1),e.push(f)});Bbd(a,e)}},Tdd=function(a){Qbd(a.context).Y6();a.O.IH()},Hdd=function(a,
b){_.Ia(b.O());var c=_.ma(b.Wl(),"root");if(0>c)return b;b=_.Uk(b);b.Wl()[c]=a.context.mn();return b},Bdd=function(a,b){b=H1c(a.Ig,b);a=a.V;M5c(a,a.items,a.fields,b)},Fdd=function(a,b){var c=_.hL(a.context.Mc);c&&_.E(c,1,!1)&&Bdd(a,b)},Qdd=function(a,b){a.ha.promise.then(function(){var c=b.filter(function(e){return 4==DN(e.getItem())});if(c.length){c=c.map(function(e){return e.getId()});a.log("Refreshing "+c.length+" partial items. "+c);var d=_.cf(new _.bf,311);a.HJ.AQ(c,d)}})},jdd=function(a,b){a.ha.promise.then(function(){b.forEach(function(c){if(!F7c(a.Nv,
c)){a.log("Adding new cache hint for "+hP(a,c));var d=new CO(a.context.kv,a.context.bw,a.context.Hm,c);c=new kcd(a.context,d,c);var e=LO(a.context.hy,null);_.pi(c.Tg().then(function(){ncd(d,e).then(function(f){qcd(a,d,f)})}),function(){K8c(a.context.hy,null)})}})})};kP.prototype.log=function(a,b){this.context.Hf().log("drive.ds.sync.cache.CacheManager",a,void 0===b?"info":b)};var Cdd=[50];
var Vdd=function(a){_.P.call(this);var b=this;this.context=a;this.H=[];this.V=new _.Em;this.O=new Map;this.ka=-1;this.ha=0;var c=_.oi();this.va=c.promise;y$c(this.context.YB).then(function(d){b.H=d||[];c.resolve();Udd(b)},function(){return c.resolve()});AO(this.context.ij,["rVezo"],(0,_.v)(this.W,this))};_.N(Vdd,_.P);
var odd=function(a,b){_.E(a.context.Mc,46,!1)&&a.va.then(function(){if(a.H[0]!==b){_.ua(a.H,b);for(K5c(a.context.jf.Gl.H(b))?a.log(b,"Hidden TD, not tracking in recency list"):_.Ca(a.H,0,0,b);a.H.length>2*_.wk(a.context.Mc,47,5);)a.H.pop();a.context.YB.set(s$c,a.H)}a.context.jf.Nv.fU().length+a.O.size<_.wk(a.context.Mc,47,5)&&(Udd(a),a.W())})},Wdd=function(a,b){_.ua(a.H,b)&&a.context.YB.set(s$c,a.H)};
Vdd.prototype.gx=function(a){Ldd(this.context.Xpa,a);if(pO(a)){var b=a.zc();a.Xj()?Xdd(this,b):(a=a.getItem(),K5c(a)&&Wdd(this,b))}};var Xdd=function(a,b){Wdd(a,b);a.V.contains(b)&&a.V.remove(b);var c=a.O.get(b);c&&c.dispose();a.O.delete(b);c=a.context.jf.Nv;for(var d=c.fU(),e=0;e<d.length;e++){var f=d[e];if(f.zc()===b){a.log(b,"Cache removed");c.removeAll([f]);a.context.Lr.update(3);break}}gP(a.context).addCallback(function(h){h.JDa(b,!0)});a.W()};
Vdd.prototype.W=function(){if(this.context.ij.H("rVezo")){var a=this.context.jf.Nv;Ydd(this);for(var b={};this.V.$b()&&!(this.ha>=_.wk(this.context.Mc,47,5));){var c=_.Fm(this.V);this.ha++;E7c(a,c)||this.O.has(c)||(this.O.set(c,null),b.vca=new _.dSc,_.A(b.vca,1,c),this.context.Yl().then(function(d){return function(e){return e.Qe(d.vca)}}(b)).then(this.oa.bind(this,c),this.ma.bind(this,c)));b={vca:b.vca}}}};
var Udd=function(a){a.H&&a.H.length&&(a.ha=0,a.V.clear(),a.H.forEach(function(b){a.V.enqueue(b)}))},Ydd=function(a){_.q.clearTimeout(a.ka);a.ka=_.q.setTimeout(function(){Udd(a);a.W()},36E5)};Vdd.prototype.oa=function(a,b){var c=_.C(b,1);c&&c>_.wk(this.context.Mc,48,1E3)?(this.log(a,"Too large to backfill: "+_.C(b,1)),Zdd(this,a,!1)):$dd(this,a)};
Vdd.prototype.ma=function(a,b){(b=_.fL(b).Wj())&&4===b?(this.log(a,"Non-existent or inaccessible, removing from cache"),a=_.mL(_.mRc(_.cL(new _.bL,a),a)),this.context.jf.So([a])):$dd(this,a)};
var $dd=function(a,b){var c=new FO(a.context.kv,a.context.bw,b),d=_.Uk(c.ud());d.Th(_.wk(a.context.Mc,48,1E3));d=new kcd(a.context,c,d);a.O.set(b,d);a.log(b,"Backfill started");var e=LO(a.context.hy,b);gP(a.context).addCallback(function(f){f.xsa(b)});_.pi(d.Tg().then(function(){aed(a,b,c,e)},function(){a.log(b,"Backfill failed");a.ha--;Zdd(a,b,!0)}),function(){K8c(a.context.hy,b)})},aed=function(a,b,c,d){c.NL?(c.b1(),ncd(c,d).then(function(e){a.log(b,"Backfill complete, size: "+c.Md());qcd(a.context.jf,
c,e);Zdd(a,b,!1)},function(){a.log(b,"Backfill changes failed");Zdd(a,b,!0)})):(a.log(b,"Backfill exceeded size limit"),Zdd(a,b,!0))},Zdd=function(a,b,c){var d=a.O.get(b);d&&d.dispose();a.O.delete(b);c&&gP(a.context).addCallback(function(e){e.JDa(b,!1)});a.W();0<a.O.size||a.context.jf.Nv.fU().map(function(e){return e.zc()}).filter(function(e){return!a.H.includes(e)}).forEach(function(e){Xdd(a,e)})};
Vdd.prototype.log=function(a,b){this.context.Hf().info("drive.ds.sync.cache.TeamDriveCacheManager",a+" | "+b)};
var bed=function(){_.P.apply(this,arguments)};_.N(bed,_.P);
var eed=function(a,b){b=ced(b);var c=a.getItem(),d=ded(c.getCapabilities());b.q1.forEach(function(e){_.COc(e.getItem(),c.wo());_.BM(e.getItem(),d.clone())});return b},hed=function(a,b,c){var d=fed(c);c=c.find(function(e){return e.getId()===b.getId()});c={pI:c?c:new nO(b),children:[]};ged(a,d,c);return c},fed=function(a){var b={};a.map(function(c){c.getItem().Jj().map(function(d){b[d]||(b[d]=[]);b[d].push(c)})});return b},ged=function(a,b,c){var d=c.pI.getItem();(b[d.getId()]||[]).forEach(function(e){c.children.push(ged(a,
b,{pI:e,parent:c,children:[]}))});return c},jed=function(a,b){var c=b.children.filter(function(h){return!_.El(h.pI.getItem())});b=new Map;for(var d=[];c.length;){var e=c.pop(),f=e.pI.getItem();b.has(f.getId())||(_.COc(f,a.wo()),ied(a,f,e.parent?e.parent.pI.getItem():void 0),e.children.map(function(h){_.El(h.pI.getItem())||c.push(h)}),b.set(f.getId(),!0),d.push(e.pI))}return d},ked=function(a){var b=a.children.filter(function(f){return!_.El(f.pI.getItem())});a=new Map;for(var c=[];b.length;){var d=
b.pop(),e=d.pI.getItem();a.has(e.getId())||(c.push(_.mL(_.cL(new _.bL,e.getId()))),d.children.map(function(f){_.El(f.pI.getItem())||b.push(f)}),a.set(e.getId(),!0))}return c},ced=function(a){var b=[],c=[];a.forEach(function(d){_.El(d.getItem())||_.H(d.getItem(),137)?c.push(d.getId()):b.push(d)});return{qZ:c,q1:b}},ded=function(a){a=a.clone();var b=null!=_.H(a,34)?_.H(a,34):_.H(a,7),c=null!=_.H(a,35)?_.H(a,35):_.H(a,7);_.A(a,45,c);_.QSc(a,b);_.A(a,30,c);_.LSc(a,b);_.RSc(a,c);_.MSc(a,c);_.NSc(a,b);
_.ySc(a,b);_.DSc(a,c);_.JSc(a,b);_.ISc(a,_.H(a,7));_.CSc(a,_.H(a,10)||_.H(a,11));_.KSc(a,_.xl(a));_.Bk(a,18);_.Bk(a,13);_.Bk(a,10);_.OSc(a,_.H(a,42));_.PSc(a,_.H(a,43));_.SSc(a,_.H(a,48));return a},ied=function(a,b,c){var d=a.getCapabilities(),e=b.getCapabilities(),f=_.H(d,30);_.A(e,30,f);_.LSc(e,_.H(d,31));_.RSc(e,_.H(d,47));_.MSc(e,_.H(d,32));_.NSc(e,_.H(d,33));_.ySc(e,_.H(d,4));_.DSc(e,_.H(d,9));_.KSc(e,_.H(d,21));_.JSc(e,_.H(d,20));_.ISc(e,_.H(d,17));_.xSc(e,_.xl(d));_.BSc(e,_.H(d,7));_.ESc(e,
_.H(d,10));_.FSc(e,_.H(d,11));f=_.H(d,45);_.A(e,45,f);_.QSc(e,_.H(d,46));_.SSc(e,_.H(d,48));a=_.El(a);_.A(b,137,a);c&&(c=c.getCapabilities(),CN(b)?(_.CSc(e,_.H(c,43)),_.PSc(e,_.H(c,43)),_.OSc(e,_.H(c,42))):_.CSc(e,_.H(c,42)))};
var led=function(a){this.context=a;this.V=new bed;this.O=_.cf(new _.bf,306);this.H=a.jf},Ldd=function(a,b){if(pO(b))if(b.Xj())med(a,b);else{var c=b.Gc(),d=ned(a,c),e=a.H.Gl.H(c);b=eed(b,d);Bbd(a.context.jf,b.q1);a.H.HJ.AQ(b.qZ,a.O);a.log(c,"SD update | Update "+b.q1.length+" item(s), "+b.qZ.length+" divergent items");if(d=O1c(a.context.fl(),106017)){var f=K1c(d);_.A(f,1,b.qZ.length);_.A(f,2,b.q1.length);d.ek()}e||(a=a.H.HJ,c&&(a.log("Processing potential rejoin for TD: "+c),b=_.vN(_.Yl(_.uN(new _.Oe,
[c]),_.QM(a.Ig)),1),e=_.cf(new _.bf,306),_.Zl(b,e),icd(a),b=new ecd(a.context,b),ccd(b,5E3).addCallback(a.V.bind(a,b)),hcd(a),jcd(a,c)))}else if(_.E(a.context.Mc,86,!1)){c=b.Gc();e=a.H.Gl.H(c);if(e&&e.zc()&&CN(b.getItem()||e)){if(d=!!_.El(e),!b.Xj()){var h=b.getItem();f=_.El(e)!==_.El(h);h=h.wo()!==e.wo();d=f||d&&h}}else d=!1;if(d)if(b.Xj()){if(b=ned(a,e.zc()),e=a.V,d=(new _.Cl).Pb(c),b=(b=hed(e,d,b))?ked(b):[],a.context.jf.So(b),a.log(c,"SD shared folder delete | Removed "+b.length+" item(s)"),a=
O1c(a.context.fl(),106009))c=J1c(a),_.A(c,2,b.length),a.ek()}else if(c=b.getItem(),e=ned(a,c.zc()),d=a.V,c=b.getItem(),c=(e=hed(d,c,e))?jed(c,e):[],Bbd(a.context.jf,c),a.log(b.Gc(),"SD shared folder update | Updated "+c.length+" item(s)"),a=O1c(a.context.fl(),106010))b=J1c(a),_.A(b,1,c.length),a.ek()}},med=function(a,b){var c=b.Gc();b=ned(a,c);b=ced(b);var d=_.jb(b.q1,function(e){return _.mL(_.cL(new _.bL,e.getId()))});a.context.jf.So(d);a.H.HJ.AQ(b.qZ,a.O);a.log(c,"SD delete | Remove "+d.length+
" item(s), "+b.qZ.length+" divergent items");if(a=O1c(a.context.fl(),106016))c=K1c(a),_.A(c,1,b.qZ.length),_.A(c,2,b.q1.length),a.ek()},ned=function(a,b){var c=new _.Oe;_.uN(c,[b]);_.vN(c,2);return X5c(a.H.Gl,c)};led.prototype.log=function(a,b){this.context.Hf().info("drive.ds.sync.change.TdChangeProcessor",a+": "+b)};
var oed=function(a,b,c){this.H=a;this.V=b;this.DH=c};
oed.prototype.Bw=function(a,b){var c=this;if(a.RT().length){var d=x8c(this.H,a.Gc());if(d){var e=d?y8c(this.H,a):[];for(var f={},h=_.m(a.RT()),k=h.next();!k.done;f={zJ:f.zJ},k=h.next())if(k=k.value,f.zJ=ped(e,k.Om(),a.Gc()),_.H(k,3))E8c(this.H,f.zJ),_.pi(b,function(t){return function(){c.H.O.W(n8c(t.zJ))}}(f));else{for(var l=_.m(_.Lk(k,_.DF,2)),n=l.next();!n.done;n=l.next())qed(this,f.zJ,n.value);k=_.m(_.Jd(k,4));for(l=k.next();!l.done;l=k.next())red(f.zJ,l.value);this.H.RB([f.zJ],!1,-1);b.then(function(t){return function(){return void c.H.nG(t.zJ.getName(),
-2)}}(f),function(t){return function(){c.H.nG(t.zJ.getName(),-2)}}(f))}e=this.Me(d.Zl().response)}}e=e?e:this.Me();var p=e.i0a;b.then(function(t){p.resolve(t)},function(t){p.reject(_.sL(t));c.handleError(a.Gc(),t)});return e};oed.prototype.Me=function(a){a=void 0===a?new $N:a;return new D5c(a.Ac(1))};var ped=function(a,b,c){var d=a.find(function(e){return m8c(e.getName(),b)});d||(d=$2c((new YN).hd(b),c),a.push(d));return d};
oed.prototype.handleError=function(a,b){G8c(this.V,a);a=_.fL(b);_.A(a,21,"Server error updating metadata after optimistic application.");this.DH(a)};
var qed=function(a,b,c){var d=b.O().find(function(e){return e.getId()===c.getId()});d||(d=new WN,d.Pb(c.getId()),Z2c(b,b.O().concat([d])),sed(d,c));if(1===XN(d))d.setBooleanValue(_.H(c,3));else if(12===XN(d))d.setDateStringValue(_.C(c,17));else if(2===XN(d))d.setTextValue(_.C(c,4));else if(3===XN(d))_.Jd(c,6).length?d.Gma(_.Jd(c,6)):_.Jd(c,5).length&&(a=_.Jd(d,7).concat(_.Jd(c,5)),d.Gma(a));else if(4===XN(d))d.setLongTextValue(_.C(c,7));else if(5===XN(d))d.setSelectionValue(_.C(c,8));else if(6===
XN(d))_.Jd(c,10).length?d.Bma(_.Jd(c,10)):_.Jd(c,9).length&&(a=d.YIa().concat(_.Jd(c,9)),d.Bma(a));else if(7===XN(d))d.setIntegerValue(_.C(c,11));else if(8===XN(d))_.Jd(c,13).length?d.sma(_.Jd(c,13)):_.Jd(c,12).length&&(a=_.Jd(d,12).concat(_.Jd(c,12)),d.sma(a));else if(10===XN(d))d.setUserValue(a.O(_.C(c,14)));else if(11===XN(d))_.Jd(c,16).length?W2c(d,_.Jd(c,16).map(a.O)):_.Jd(c,15).length&&W2c(d,d.Kxa().concat(_.Jd(c,15).map(a.O)));else throw d="Optimistic Applier: Unsupported value type "+(XN(d)+
"."),new _.Vb(d,new _.Ub);},red=function(a,b){if(a=a.O().find(function(c){return c.getId()===b}))if(1===XN(a))_.Bk(a,5);else if(12===XN(a))_.Bk(a,17);else if(2===XN(a))_.Bk(a,6);else if(3===XN(a))_.RG(a,7);else if(4===XN(a))_.Bk(a,8);else if(5===XN(a))_.Bk(a,9);else if(6===XN(a))_.RG(a,10);else if(7===XN(a))_.Bk(a,11);else if(8===XN(a))_.RG(a,12);else if(10===XN(a))_.Ck(a,15);else if(11===XN(a))_.Dk(a,16);else throw a="Optimistic Applier: Unsupported value type "+(XN(a)+"."),new _.Vb(a,new _.Ub);
},sed=function(a,b){_.sk(b,3)?a.pz(1):_.sk(b,17)?a.pz(12):_.sk(b,4)?a.pz(2):_.Jd(b,6).length||_.Jd(b,5).length?a.pz(3):_.sk(b,7)?a.pz(4):_.sk(b,8)?a.pz(5):_.Jd(b,10).length||_.Jd(b,9).length?a.pz(6):_.sk(b,11)?a.pz(7):_.Jd(b,13).length||_.Jd(b,12).length?a.pz(8):_.sk(b,14)?a.pz(10):(_.Jd(b,16).length||_.Jd(b,15).length)&&a.pz(11)};oed.prototype.O=function(a){return _.vSc(_.tSc(1),a)};
var ted=function(a,b,c,d,e,f,h,k,l){this.H=a;this.ha=b;this.va=c;this.O=d;this.ka=e;this.Ig=f;this.W=0;this.V=k;this.ma=l;this.Ba=h};ted.prototype.apply=function(a,b){var c=this;if(!_.lM(a))return b;var d;a instanceof _.EL?d=ued(this,a,b):a instanceof _.LL?d=ved(this,a,b):a instanceof _.iL?d=this.Bw(a,b):a instanceof _.zL?d=wed(this,a,b):a instanceof _.dM&&(d=this.va.Bw(a,b));d&&(this.W++,this.ha.setActive(!1),_.pi(b,function(){c.W--;0==c.W&&c.ha.setActive(!0)}));return d?_.ji(d):b};
var ued=function(a,b,c){A8c(a.O,b.getId());var d=a.H.Gl.H(b.getId());_.pi(c.then(function(){return void a.ma("VMiG2e")},a.oa.bind(a,b.getId(),d)),a.O.W.bind(a.O,b.getId()));c.then(null,function(e){e=_.fL(e);_.A(e,21,"Server error deleting item after optimistic application.");a.V(e)});return(new _.kM).Ac(1)},ved=function(a,b,c){var d=b.Zs();d&&a.O.H.push(d);c.then(function(){d&&C8c(a.O,d)&&_.pi(xed(a,d,new _.vVc(1E4,3E5),Date.now()+72E5,5),function(){return void a.ma("VMiG2e")})},function(){d&&_.ua(a.O.H,
d)});c.then(null,function(e){e=_.fL(e);_.A(e,21,"Server error emptying trash after optimistic application.");a.V(e)});return(new _.kM).Ac(1)},xed=function(a,b,c,d,e){if(Date.now()>d||0>=e)return _.ji();var f=_.oi(),h=c.Ya();_.PG(c);setTimeout(function(){a.ka.then(function(k){var l=_.cf(new _.bf,1425);l=AZc(!0,1,l);return k.Qe(l).then(function(n){if(n=n.Me())if(n=n.Dd()[0],!n||(n.Zs()||0)>b){f.resolve();return}_.pi(xed(a,b,c,d,e),function(){return void f.resolve()})},function(){return _.pi(xed(a,b,
c,d,e-1),function(){return void f.resolve()})})})},h);return f.promise},wed=function(a,b,c){var d=b.zc(),e=a.H.Gl.H(d);if(!e)return null;e=_.Uk(e);Nbd(a.H,[e],[157]);var f=e.jh();yed(f,_.Lk(b,_.Bl,2));zed(f,_.Lk(b,_.Bl,3));a.H.Gk([e],-1,void 0,void 0,[157]);_.pi(c,function(){a.H.nG(d,-2)}).then(function(h){a.H.Gk([h.n8()],1,void 0,void 0,[157])},null);c.then(null,function(h){h=_.fL(h);_.A(h,21,"Server error updating item after optimistic application.");a.V(h)});return m3c(new l3c,e).Ac(1)},yed=function(a,
b){var c={};b=_.m(b);for(var d=b.next();!d.done;c={lca:c.lca},d=b.next())c.lca=d.value,_.Lk(a,_.Bl,8).some(function(e){return function(f){return f.Om()==e.lca.Om()}}(c))||_.Rk(a,8,c.lca,_.Bl,void 0)},zed=function(a,b){var c=b.map(function(d){return d.Om()});b=_.Lk(a,_.Bl,8).filter(function(d){return!c.includes(d.Om())});KYc(a,b)};
ted.prototype.Bw=function(a,b){var c=this,d=this.H.Gl.H(a.getId());if(!d||d.zc()&&0==a.Ah()||null!=_.H(a,40))return null;var e=_.Jd(a,10),f=_.Jd(a,9);if(0<e.length&&0<f.length&&(e=Object.values(W5c(this.H.Gl,e.concat(f))).map(function(k){return k.zc()||"root"}),_.Fa(e),1<e.length))return null;var h=_.Uk(d);Aed(this,a,h);this.H.Gk([h],-1,void 0,void 0,F1c(this.Ig));b.then(function(){return c.H.nG(a.getId(),-2)},function(){c.H.nG(a.getId(),-2);c.oa(a.getId(),d)});b.then(null,function(k){k=_.fL(k);if(63==
k.Wj()){var l=h.getId();_.A(k,22,l);_.A(k,23,f[0])}_.A(k,21,"Server error updating item after optimistic application.");c.V(k)});return _.XTc((new _.kM).setItem(h),h.getId()).Ac(1)};
var Aed=function(a,b,c){null!=b.ag()&&c.Tk(b.ag());null!=b.Ii()&&_.eTc(c,b.Ii());null!=b.getMimeType()&&_.IK(c,b.getMimeType());null!=_.C(b,7)&&_.BOc(c,_.C(b,7));null!=_.H(b,11)&&_.ZSc(c,_.H(b,11));null!=_.H(b,4)&&c.uu(_.H(b,4));null!=_.H(b,16)&&_.dTc(c,_.H(b,16));null!=b.getTitle()&&c.setTitle(b.getTitle());null!=b.Ah()&&(c.Wm(b.Ah()),_.cTc(c,b.Ah()));null!=_.H(b,18)&&_.yN($Yc(c,!0),_.H(b,18));_.Jd(b,8).length&&_.AM(c,_.Jd(b,8));if(_.Jd(b,9).length){var d=new Set(c.Jj());_.Jd(b,9).forEach(function(n){return d.add(n)});
_.AM(c,[].concat(_.Wc(d)))}if(_.Jd(b,10).length){var e=new Set(c.Jj());_.Jd(b,10).forEach(function(n){return e.delete(n)});_.AM(c,[].concat(_.Wc(e)));var f=c.Yt();f&&_.Jd(b,10).includes(f)&&_.Bk(c,46)}if(!c.Yt()){var h=a.Ba();f=c.Jj().find(function(n){var p=a.H.Gl.H(n);return p&&!!p.Yt()||n==h});_.A(c,46,f||void 0)}c.Jj().length&&(f=a.H.Gl.H(c.Jj()[0]))&&_.hTc(c,f.zc());if(f=_.D(b,_.yl,25)){var k=_.D(c,_.yl,111)||new _.yl;null!=_.H(f,1)&&_.TSc(k,_.H(f,1));null!=_.C(f,2)&&_.USc(k,_.C(f,2));_.y(c,111,
k)}var l=_.Jd(c,120);_.Jd(b,31).forEach(function(n){l.includes(n)||l.push(n)});_.Jd(b,32).forEach(function(n){_.ua(l,n)});_.A(c,120,l||[])};ted.prototype.oa=function(a,b){var c=this,d=_.hp(new _.fp,[a]);this.ka.then(function(e){return e.Qe(d)}).then(function(e){e=e.Me().Dd()[0];c.H.Gk([_.Uk(e)],1)},function(){b&&c.H.Gk([_.Uk(b)],1)})};
var Bed=function(a){this.H=a};_.N(Bed,_.ZWc);Bed.prototype.execute=function(a,b,c){var d=_.ZWc.prototype.execute.call(this,a,b,c);if(d)return d;if(c.EHa||b instanceof _.YK&&_.mM(b.ud()))if(c=Y1c(this.H))return c;return b instanceof _.LL?(c=_.cf(new _.bf,1424),a.Qe(AZc(!1,1,c)).then(function(e){(e=e.Me())&&(e=e.Dd()[0])&&e.CUa()&&b.Jaa(e.Zs())},function(){})):null};
var QZc=function(a,b){return[Ced,Ded,Eed,Fed].reduce(function(c,d){var e;0!==c?e=c:e=_.Ga(d(a),d(b));return e},0)},Ced=function(a){return Ged[a.If()]},Ded=function(a){return Hed[a.getType()]},Eed=function(a){return a.getName()||""},Fed=function(a){return a.getId()||""},lP={},Ged=(lP[5]=0,lP[7]=1,lP[1]=2,lP[3]=3,lP[4]=4,lP[2]=5,lP[6]=6,lP),Ied={},Hed=(Ied[1]=0,Ied[2]=1,Ied[3]=2,Ied[4]=3,Ied);
var Jed=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.oa=k;this.Ig=l};
Jed.prototype.apply=function(a,b){var c=this;if(!(b instanceof _.kM&&8===b.Cb()))if(a instanceof _.yL||a instanceof _.AL||a instanceof _.URc||a instanceof _.iL||a instanceof _.fM||a instanceof _.bSc||a instanceof _.hM||a instanceof _.GN){var d=_.lL(_.Uk(b.getItem()),9);this.H.Gk([d],1);b9c(this.oa,b.getItem(),_.QM(this.Ig))}else a instanceof _.EL?(b=_.mL(_.cL(new _.bL,a.getId())),this.H.So([b])):a instanceof _.HL?(b=_.mL(_.mRc(_.cL(new _.bL,a.getId()),a.getId())),this.H.So([b]),Ldd(this.ma,b)):a instanceof
_.LL?(b=AZc(!0).ud(),b=this.H.Gl.query(b).map(function(e){return _.mL(_.cL(new _.bL,e.getId()))}),this.H.So(b)):a instanceof _.CL?this.O.remove(a.ih()):a instanceof _.NL||a instanceof _.cM?this.O.put(b.Eq()):a instanceof _.FL?PZc(this.H,a):a instanceof _.kC?this.W.remove(a.getKey()):a instanceof _.OL?RZc(this.H,a,_.D(b,_.ml,2)):a instanceof _.lC?this.W.put(b.oJa()):a instanceof _.BL||a instanceof _.gM?this.ha.RB([b.Cm()],!1):a instanceof _.IL?this.ha.RB([P8c(a.getId())],!1):a instanceof _.TRc?this.V.RB(b.response.O(),
!1,1):a instanceof _.dM?(a.RT().filter(function(e){return _.H(e,3)}).forEach(function(e){return c.V.removeItem(e.Om()||"",a.Gc())}),G8c(this.ka,a.Gc()),this.H.zZa(a.Gc())):a instanceof _.VM&&_.Lk(a,_.e2c,1).forEach(function(e){switch(e.getFeature()){case 3:case 1:switch(e=_.D(e,_.SN,2),e.getType()){case 1:case 2:if(e=c.H.Gl.H(e.Gc())){var f=new _.bL;f=_.A(f,5,!0);e=_.cL(f,e.getId()).setItem(_.Uk(e));c.H.So([e])}}}})};
var Ked=function(a){this.H=a};
Ked.prototype.translate=function(a){if(a instanceof _.ZL){var b=this.H.H(a.getId());if(!b)return new _.Ub;var c=(new _.iL).Pb(a.getId());if(b.zc()){var d=b.getCapabilities();_.Md(d)||_.H(d,9)?c.Wm(!0):_.jL(c,!1)}else d=a.getParent(),1===b.wo()?c.Wm(!0):d?(b=this.H.H(d),!b||_.H(b.getCapabilities(),7)?f1c(c,[d]):_.jL(c,!1)):_.jL(c,!1);return c}if(a instanceof _.$L)return h1c(g1c(f1c(e1c((new _.iL).Pb(a.getId()),_.Jd(a,2)),_.Jd(a,3)),_.H(a,6)),_.Lk(a,_.Vl,8));if(a instanceof _.aM){b=this.H.H(a.getId());
if(!b)return new _.Ub;c=(new _.iL).Pb(a.getId());b.zc()?(d=b.getCapabilities(),_.Md(d)||_.H(d,9)?c.Wm(!1):_.jL(c,!0)):(d=a.getParent(),1===b.wo()?c.Wm(!1):d?(b=this.H.H(d),!b||_.xl(b.getCapabilities())?e1c(c,[d]):_.jL(c,!0)):_.jL(c,!0));return c}if(a instanceof _.fN)return new _.URc(a);if(a instanceof _.YO)return _.Jd(a,1).map(function(f){var h=new _.dM;f=_.A(h,1,f);h=a.RT();f=_.kb(f,2,h);h=a.re();return _.y(f,3,h)});if(a instanceof _.KL){c=AZc(!1,1).ud();var e=0;this.H.query(c).forEach(function(f){(f=
f.Zs())&&(e=Math.max(e,f))});return P1c(new _.LL,a).Jaa(e)}return a};
var Led=function(){};Led.prototype.validate=function(a){var b=null;a instanceof _.SL?(a=a.getId()||"",_.ld(a)&&(b="Tried to request backup with no id.")):a instanceof _.DL&&(a=a.getId()||"",_.ld(a)&&(b="Tried to delete backup with no id."));return b?_.fL(b):null};
var Med=function(a,b){this.O=a;this.H=b},Qed=function(a,b){_.nN(["drive#about"],b);var c=new _.ZO,d=new _.vB;if(b.user){var e=_.pN(a.O,b.user);_.y(d,1,e)}a=Ned(a,b);a=$0c(Z0c(_.Y0c(new _.nsb,a),b.rootFolderId),b.domainSharingPolicy);b.gsuiteSubscriptionInfo&&(e=b.gsuiteSubscriptionInfo,_.b1c(a,_.V0c(_.U0c((new _.uB).Ac(Oed[e.status]),Number(e.trialMillisRemaining)),_.oN(e.trialEndTime))));b.teamDashboardCapabilities&&(e=b.teamDashboardCapabilities,_.c1c(a,_.X0c(_.W0c(new _.msb,e.canAdministerTeam),
e.canManageInvites)));b.importFormats&&a1c(a,b.importFormats.map(function(f){var h=new _.T0c;h=_.A(h,1,f.source);return _.A(h,2,f.targets||[])}));b.adminSecureLinkSetting&&_.A(a,10,Ped[b.adminSecureLinkSetting]);_.y(d,3,a);_.wad(c,d);b=b.largestChangeId;null!=b&&_.A(c,4,Number(b));return c},Ned=function(a,b){var c=new _.lsb;c=_.A(c,1,Number(b.quotaBytesTotal));c=_.A(c,2,Number(b.quotaBytesUsed));c=_.A(c,3,Number(b.quotaBytesUsedAggregate));c=_.A(c,4,Number(b.quotaBytesUsedInTrash));c=_.K0c(_.J0c(c,
TZc(b.quotaBytesByService||[])),Red[b.quotaType]);if(_.E(a.H,5,!1)){a=_.M0c(_.L0c(c,Number(b.quotaBytesTotal)),"-1"===b.quotaBytesTotal?-1:Math.max(Number(b.quotaBytesTotal)-Number(b.quotaBytesUsedAggregate),0));var d=Number(b.quotaBytesUsedAggregate)-VZc(b);a=_.A(a,9,d);a=_.N0c(a,Number(b.quotaBytesUsedAggregate));a=_.A(a,11,Number(b.quotaBytesUsedInTrash));a=_.A(a,13,_.VYc(Number(b.quotaBytesUsedAggregate),Number(b.quotaBytesTotal)));_.O0c(a,Sed[b.quotaStatus]||0);b.graceQuotaInfo&&b.graceQuotaInfo.endDate&&
(a=new _.ksb,d=_.C0a(new Date(b.graceQuotaInfo.endDate)),a=_.y(a,1,d),b=_.A(a,2,Number(b.graceQuotaInfo.additionalQuotaBytes)),_.y(c,12,b));b=c}else b=c;return b},Sed={softLimitExceeded:2,hardLimitExceeded:3,underLimit:1},UZc=new Set(["POOLED_STORAGE","FAMILY"]),Oed={isInTrial:1,hasPaidContract:2,noSubscription:3,trialExpired:4},SZc={DRIVE:1,FAMILY:4,GMAIL:2,PHOTOS:3,POOLED_STORAGE:5},Red={LIMITED:1,UNLIMITED:2,POOLED:3},Ped={unknown:0,requireLessSecureLinks:1,removeLessSecureLinks:2,userCanChoose:3};
var Ted={TYPE_UNSPECIFIED:0,MOBILE:1,SYNC_CLIENT:2,APP:3},Ued={TYPE_UNSPECIFIED:0,MY_DRIVE_ROOT:1,SHARED_DRIVE_ROOT:2,STANDARD_FOLDER:3},Ved={TYPE_UNSPECIFIED:0,USER_DELETION:1,TRASH_AUTO_PURGE:2},Wed={TYPE_UNSPECIFIED:0,TRASH:1,PERMANENT_DELETE:2},Xed={TYPE_UNSPECIFIED:0,UNTRASH:1,REVIVE:2},Yed={ROLE_UNSPECIFIED:0,OWNER:1,ORGANIZER:2,FILE_ORGANIZER:3,EDITOR:4,COMMENTER:5,VIEWER:6,PUBLISHED_VIEWER:7},Zed={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6},
$ed={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,RESOLVED:5,REOPENED:6,REASSIGNED:7},afd={SUBTYPE_UNSPECIFIED:0,ADDED:1,DELETED:2,REPLY_ADDED:3,REPLY_DELETED:4,ACCEPTED:7,REJECTED:8,ACCEPT_DELETED:9,REJECT_DELETED:10},bfd={TYPE_UNSPECIFIED:0,FLAGGED:1,CLEARED:2},cfd={TYPE_UNSPECIFIED:0,LOADED_FOR_VIEW:1,VIEWED_MORE_CONTENT:2,OPEN_WITH_APP_INITIATED:3},dfd={DOMAIN_VISIBILITY_UNKNOWN:0,DOMAIN_VISIBILITY_CONSUMER:1,DOMAIN_VISIBILITY_SAME_DOMAIN:2,DOMAIN_VISIBILITY_ALL_DOMAINS:3,
DOMAIN_VISIBILITY_RESTRICTED:4},efd={NAMED_PARTY_UNKNOWN:0,NAMED_PARTY_UNNAMED:1,NAMED_PARTY_NAMED:2},ffd={TYPE_UNSPECIFIED:0,DOWNLOADED:1,DOWNLOAD_INITIATED:2,PRINT_INITIATED:3},gfd={UNSPECIFIED_REFERENCE_TYPE:0,LINK:1,DISCUSS:2},hfd={FEATURE_UNSPECIFIED:0,SHARING_OUTSIDE_DOMAIN:1,DIRECT_SHARING:2,ITEM_DUPLICATION:3,DRIVE_FILE_STREAM:4},ifd={RESTRICTION_UNSPECIFIED:0,UNRESTRICTED:1,FULLY_RESTRICTED:2},jfd={STATUS_UNSPECIFIED:0,IN_PROGRESS:1,COMPLETED:2,CANCELLED:3},kfd={DECISION_UNSPECIFIED:0,APPROVED:1,
DECLINED:2},lfd={TYPE_UNSPECIFIED:0,LABEL_ADDED:1,LABEL_REMOVED:2,LABEL_FIELD_VALUE_CHANGED:3},mfd={PUBLISH_MODE_UNSPECIFIED:0,NONE:1,FIXED:2,AUTO:3},nfd={REASON_UNSPECIFIED:0,ORPHAN_REPARENTED:1},ufd=function(a){return a.map(function(b){var c=new _.k5c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "primaryActionDetail":d=ofd(e);_.y(c,2,d);break;case "actors":d=pfd(e);_.kb(c,3,d);break;case "actions":d=qfd(e);_.kb(c,
4,d);break;case "targets":d=rfd(e);_.kb(c,5,d);break;case "timestamp":c.O(sfd(e));break;case "timeRange":d=tfd(e),_.Nk(c,7,j5c[0],d)}}return c})},qfd=function(a){return a.map(function(b){var c=new _.h5c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "detail":d=ofd(e);_.y(c,1,d);break;case "source":d=new a5c;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;
switch(f){case "type":_.Ik(d,2,Ted[h]);break;case "appId":_.Hk(d,1,h)}}_.y(c,2,d);break;case "actor":d=vfd(e);_.y(c,3,d);break;case "target":d=wfd(e);_.y(c,4,d);break;case "timestamp":c.O(sfd(e));break;case "timeRange":d=tfd(e),_.Nk(c,6,g5c[0],d)}}return c})},rfd=function(a){return a.map(function(b){return wfd(b)})},yfd=function(a){return a.map(function(b){return xfd(b)})},wfd=function(a){var b=new _.f5c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;
d=d.next().value;switch(c){case "driveItem":c=zfd(d);_.Nk(b,1,_.e5c[0],c);break;case "drive":c=new _.b5c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.hd(f);break;case "title":c.setTitle(f);break;case "root":e=zfd(f),_.y(c,3,e)}}_.Nk(b,5,_.e5c[0],c);break;case "fileComment":c=new _.c5c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "legacyCommentId":_.Hk(c,
1,f);break;case "legacyDiscussionId":_.Hk(c,2,f);break;case "linkToDiscussion":_.Hk(c,3,f);break;case "parent":c.Dg(zfd(f))}_.Nk(b,3,_.e5c[0],c)}}return b},xfd=function(a){var b=new _.s4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "driveItem":c=new _.q4c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "name":c.hd(f);break;case "title":c.setTitle(f);
break;case "driveFile":e=c;f=new l4c;_.Nk(e,8,p4c[0],f);break;case "driveFolder":e=Afd(f);_.Nk(c,9,p4c[0],e);break;case "driveShortcut":e=Bfd(f),_.Nk(c,10,p4c[0],e)}}_.Nk(b,1,r4c[0],c);break;case "drive":c=Cfd(d),_.Nk(b,3,r4c[0],c)}}return b},zfd=function(a){var b=new _.o4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "title":b.setTitle(d);break;case "mimeType":_.Hk(b,6,d);break;case "version":_.Fk(b,
5,d);break;case "owner":c=new i4c;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "domain":e=Dfd(f);_.y(c,3,e);break;case "user":e=mP(f);_.Nk(c,1,h4c[0],e);break;case "drive":e=Cfd(f),_.Nk(c,4,h4c[0],e)}}_.y(b,7,c);break;case "driveFile":c=new l4c;_.Nk(b,8,j4c[0],c);break;case "driveFolder":c=Afd(d);_.Nk(b,9,j4c[0],c);break;case "driveShortcut":c=Bfd(d),_.Nk(b,10,j4c[0],c)}}return b},Cfd=function(a){var b=new f4c;
a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "title":b.setTitle(d)}}return b},Afd=function(a){var b=new _.m4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "type":_.Ik(b,6,Ued[d])}}return b},Bfd=function(a){var b=new _.n4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);
c=d.next().value;d=d.next().value;switch(c){case "targetName":_.Hk(b,1,d);break;case "targetMimeType":_.Hk(b,2,d)}}return b},pfd=function(a){return a.map(function(b){return vfd(b)})},vfd=function(a){var b=new _.$4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "user":c=mP(d);_.Nk(b,1,_.Z4c[0],c);break;case "anonymous":c=new W4c;_.Nk(b,2,_.Z4c[0],c);break;case "impersonation":c=new _.X4c;d=_.m(Object.entries(d));
for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "impersonatedUser":e=mP(f),_.y(c,1,e)}}_.Nk(b,3,_.Z4c[0],c);break;case "system":c=new _.Y4c;d=_.m(Object.entries(d));for(e=d.next();!e.done;e=d.next())switch(f=_.m(e.value),e=f.next().value,f=f.next().value,e){case "type":_.Ik(c,1,Ved[f])}_.Nk(b,4,_.Z4c[0],c);break;case "administrator":c=new _.V4c,_.Nk(b,5,_.Z4c[0],c)}}return b},Efd=function(a){return a.map(function(b){return mP(b)})},mP=function(a){var b=
new _.N3c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "knownUser":c=new _.dO;d=_.m(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=_.m(e.value);e=f.next().value;f=f.next().value;switch(e){case "personName":_.Hk(c,1,f);break;case "isCurrentUser":_.Gk(c,2,f);break;case "displayName":_.Hk(c,3,f);break;case "photoUrl":c.Vm(f)}}_.Nk(b,2,_.L3c[0],c);break;case "unknownUser":c=new O3c;_.Nk(b,4,_.L3c[0],
c);break;case "deletedUser":c=new _.M3c,_.Nk(b,3,_.L3c[0],c)}}return b},sfd=function(a){var b=(new Date(a)).getTime();a=Math.floor(b/1E3);b=b%1E3*1E6;return _.B0a((new _.kx).setSeconds(a),b)},tfd=function(a){var b=new _.kO;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "startTime":b.pW(sfd(d));break;case "endTime":b.WD(sfd(d))}}return b},Dfd=function(a){var b=new _.e4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=
a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "name":b.hd(d);break;case "legacyId":_.Hk(b,3,d);break;case "audienceDisplayName":_.Hk(b,4,d)}}return b},ofd=function(a){for(var b=new _.jO,c=_.m(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=_.m(d.value),f=e.next().value,h=e.next().value;switch(f){case "create":for(var k=new _.x4c,l=_.m(Object.entries(h)),n=l.next();!n.done;n=l.next()){var p=_.m(n.value),t=p.next().value,u=p.next().value;switch(t){case "new":var z=
k,B=new u4c;_.Nk(z,1,_.t4c[0],B);break;case "upload":var F=k,I=new v4c;_.Nk(F,2,_.t4c[0],I);break;case "copy":for(var M=u,U=new _.w4c,R=_.m(Object.entries(M)),da=R.next();!da.done;da=R.next()){var ta=_.m(da.value),ra=ta.next().value,Aa=ta.next().value;switch(ra){case "originalObject":var va=xfd(Aa);_.y(U,1,va)}}_.Nk(k,3,_.t4c[0],U)}}_.Nk(b,1,_.iO[0],k);break;case "edit":var ka=new C4c;_.Nk(b,2,_.iO[0],ka);break;case "move":for(var Qa=new _.H4c,ib=_.m(Object.entries(h)),Ac=ib.next();!Ac.done;Ac=ib.next()){var Jb=
_.m(Ac.value),wc=Jb.next().value,Fd=Jb.next().value;switch(wc){case "addedParents":var ed=yfd(Fd);_.kb(Qa,1,ed);break;case "removedParents":var Fc=yfd(Fd);_.kb(Qa,2,Fc);break;case "fromOwnershipTransfer":_.Gk(Qa,3,Fd);break;case "reparents":var fe=Fd.map(Ffd);_.kb(Qa,4,fe)}}_.Nk(b,3,_.iO[0],Qa);break;case "rename":for(var Kd=new _.N4c,Zd=_.m(Object.entries(h)),Tc=Zd.next();!Tc.done;Tc=Zd.next()){var wb=_.m(Tc.value),th=wb.next().value,Be=wb.next().value;switch(th){case "oldTitle":_.Hk(Kd,1,Be);break;
case "newTitle":_.Hk(Kd,2,Be)}}_.Nk(b,4,_.iO[0],Kd);break;case "delete":for(var af=new _.A4c,Gi=_.m(Object.entries(h)),Mh=Gi.next();!Mh.done;Mh=Gi.next()){var nf=_.m(Mh.value),sn=nf.next().value,tn=nf.next().value;switch(sn){case "type":_.Ik(af,1,Wed[tn])}}_.Nk(b,5,_.iO[0],af);break;case "restore":for(var Bf=new _.O4c,sg=_.m(Object.entries(h)),uh=sg.next();!uh.done;uh=sg.next()){var ti=_.m(uh.value),uj=ti.next().value,tl=ti.next().value;switch(uj){case "type":_.Ik(Bf,1,Xed[tl])}}_.Nk(b,6,_.iO[0],
Bf);break;case "permissionChange":for(var Hi=new _.K4c,Rj=_.m(Object.entries(h)),Qe=Rj.next();!Qe.done;Qe=Rj.next()){var ul=_.m(Qe.value),nk=ul.next().value,bh=ul.next().value;switch(nk){case "addedPermissions":var vl=Gfd(bh);_.kb(Hi,1,vl);break;case "removedPermissions":var fm=Gfd(bh);_.kb(Hi,2,fm);break;case "resharedPermissions":var Il=Gfd(bh);_.kb(Hi,3,Il);break;case "otherActivePermissions":var ok=Gfd(bh);_.kb(Hi,4,ok)}}_.Nk(b,7,_.iO[0],Hi);break;case "comment":for(var Qg=new _.d4c,Ui=_.m(Object.entries(h)),
hi=Ui.next();!hi.done;hi=Ui.next()){var Vi=_.m(hi.value),Rf=Vi.next().value,Eg=Vi.next().value;switch(Rf){case "post":for(var Ok=Eg,jj=new _.a4c,Jl=_.m(Object.entries(Ok)),Cf=Jl.next();!Cf.done;Cf=Jl.next()){var vj=_.m(Cf.value),gm=vj.next().value,hm=vj.next().value;switch(gm){case "subtype":_.Ik(jj,1,Zed[hm])}}_.Nk(Qg,1,_.$3c[0],jj);break;case "assignment":for(var ii=Eg,Wi=new _.b4c,Cc=_.m(Object.entries(ii)),pk=Cc.next();!pk.done;pk=Cc.next()){var Kl=_.m(pk.value),kh=Kl.next().value,qk=Kl.next().value;
switch(kh){case "subtype":_.Ik(Wi,1,$ed[qk]);break;case "assignedUser":var Fg=mP(qk);_.y(Wi,7,Fg)}}_.Nk(Qg,2,_.$3c[0],Wi);break;case "suggestion":for(var ip=Eg,un=new _.c4c,Ll=_.m(Object.entries(ip)),Pk=Ll.next();!Pk.done;Pk=Ll.next()){var mo=_.m(Pk.value),Ml=mo.next().value,wj=mo.next().value;switch(Ml){case "subtype":_.Ik(un,1,afd[wj])}}_.Nk(Qg,3,_.$3c[0],un);break;case "mentionedUsers":var no=Efd(Eg);_.kb(Qg,7,no)}}_.Nk(b,8,_.iO[0],Qg);break;case "dlpChange":for(var oo=new _.z4c,kj=_.m(Object.entries(h)),
Qk=kj.next();!Qk.done;Qk=kj.next()){var rk=_.m(Qk.value),vn=rk.next().value,dq=rk.next().value;switch(vn){case "type":_.Ik(oo,1,bfd[dq])}}_.Nk(b,9,_.iO[0],oo);break;case "view":for(var wn=new U4c,po=_.m(Object.entries(h)),qo=po.next();!qo.done;qo=po.next()){var hs=_.m(qo.value),jw=hs.next().value,Vm=hs.next().value;switch(jw){case "type":_.Ik(wn,1,cfd[Vm]);break;case "viewHistoryVisibility":for(var kw=Vm,qq=new T4c,kt=_.m(Object.entries(kw)),rq=kt.next();!rq.done;rq=kt.next()){var sq=_.m(rq.value),
is=sq.next().value,lw=sq.next().value;switch(is){case "domainPolicyVisibilityState":_.Ik(qq,1,dfd[lw]);break;case "namedPartyState":_.Ik(qq,2,efd[lw])}}_.y(wn,2,qq)}}_.Nk(b,10,_.iO[0],wn);break;case "download":for(var RB=new B4c,mE=_.m(Object.entries(h)),SB=mE.next();!SB.done;SB=mE.next()){var Hx=_.m(SB.value),nE=Hx.next().value,Ix=Hx.next().value;switch(nE){case "type":_.Ik(RB,1,ffd[Ix])}}_.Nk(b,11,_.iO[0],RB);break;case "reference":for(var Fz=new _.G3c,nM=_.m(Object.entries(h)),oE=nM.next();!oE.done;oE=
nM.next()){var VH=_.m(oE.value),oM=VH.next().value,WH=VH.next().value;switch(oM){case "type":_.Ik(Fz,1,gfd[WH]);break;case "context":for(var pM=Fz,qM=pM.Rj,Jx=WH,dl=new F3c,uq=_.m(Object.entries(Jx)),En=uq.next();!En.done;En=uq.next()){var VQ=_.m(En.value),XH=VQ.next().value,TB=VQ.next().value;switch(XH){case "description":dl.Tk(TB);break;case "url":_.Hk(dl,2,TB)}}qM.call(pM,dl)}}_.Nk(b,12,_.iO[0],Fz);break;case "settingsChange":for(var be=new _.R4c,GX=_.m(Object.entries(h)),Ku=GX.next();!Ku.done;Ku=
GX.next()){var Fn=_.m(Ku.value),rM=Fn.next().value,UB=Fn.next().value;switch(rM){case "restrictionChanges":var VB=Hfd(UB);_.kb(be,1,VB)}}_.Nk(b,13,_.iO[0],be);break;case "approvalChange":for(var Xl=new _.T3c,sM=_.m(Object.entries(h)),WB=sM.next();!WB.done;WB=sM.next()){var rw=_.m(WB.value),zE=rw.next().value,Mu=rw.next().value;switch(zE){case "approvalName":_.Hk(Xl,2,Mu);break;case "approvalEventNames":_.A(Xl,3,Mu||[]);break;case "initiator":var Fxa=mP(Mu);_.y(Xl,4,Fxa);break;case "reviewers":var zga=
Efd(Mu);_.kb(Xl,5,zga);break;case "status":Xl.Ac(jfd[Mu]);break;case "dueTime":var Gxa=sfd(Mu);_.y(Xl,7,Gxa);break;case "approvalRequested":var Hxa=Xl,Lz=new Q3c;_.Nk(Hxa,8,_.eO[0],Lz);break;case "approvalCancelled":var eY=Xl,MYa=new R3c;_.Nk(eY,9,_.eO[0],MYa);break;case "reviewerResponded":for(var Aga=Mu,Ixa=new _.S3c,Bga=_.m(Object.entries(Aga)),Cga=Bga.next();!Cga.done;Cga=Bga.next()){var A5=_.m(Cga.value),Dga=A5.next().value,Jxa=A5.next().value;switch(Dga){case "reviewerDecision":_.Ik(Ixa,1,kfd[Jxa])}}_.Nk(Xl,
10,_.eO[0],Ixa);break;case "commentAdded":var nR=Xl,fY=new U3c;_.Nk(nR,11,_.eO[0],fY);break;case "reviewersChanged":for(var GM=Mu,cI=new W3c,oR=_.m(Object.entries(GM)),dI=oR.next();!dI.done;dI=oR.next()){var B5=_.m(dI.value),Kxa=B5.next().value,C5=B5.next().value;switch(Kxa){case "reviewerChanges":var D5=Ifd(C5);_.kb(cI,1,D5)}}_.Nk(Xl,12,_.eO[0],cI);break;case "dueTimeChanged":for(var xqc=Mu,hxb=new Y3c,ixb=_.m(Object.entries(xqc)),Ega=ixb.next();!Ega.done;Ega=ixb.next()){var NYa=_.m(Ega.value),yqc=
NYa.next().value,jxb=NYa.next().value;switch(yqc){case "oldDueTime":var OYa=sfd(jxb);_.y(hxb,1,OYa)}}_.Nk(Xl,13,_.eO[0],hxb)}}_.Nk(b,18,_.iO[0],Xl);break;case "lock":var eI=new E4c;_.Nk(b,15,_.iO[0],eI);break;case "unlock":var kxb=new S4c;_.Nk(b,16,_.iO[0],kxb);break;case "appliedLabelChange":for(var PYa=new _.K3c,QYa=_.m(Object.entries(h)),Lxa=QYa.next();!Lxa.done;Lxa=QYa.next()){var RYa=_.m(Lxa.value),lxb=RYa.next().value,SYa=RYa.next().value;switch(lxb){case "changes":var mxb=Jfd(SYa);_.kb(PYa,
1,mxb)}}_.Nk(b,19,_.iO[0],PYa);break;case "publishChange":for(var Mxa=new _.M4c,nxb=_.m(Object.entries(h)),gY=nxb.next();!gY.done;gY=nxb.next()){var Fga=_.m(gY.value),pR=Fga.next().value,oxb=Fga.next().value;switch(pR){case "oldPublishState":var zqc=Kfd(oxb);_.y(Mxa,1,zqc);break;case "newPublishState":var Aqc=Kfd(oxb);_.y(Mxa,2,Aqc)}}_.Nk(b,20,_.iO[0],Mxa);break;case "linkShareMetadataChange":for(var fI=new _.D4c,TYa=_.m(Object.entries(h)),Nxa=TYa.next();!Nxa.done;Nxa=TYa.next()){var UYa=_.m(Nxa.value),
pxb=UYa.next().value,Bqc=UYa.next().value;switch(pxb){case "securityUpdateEnabled":_.Gk(fI,1,Bqc)}}_.Nk(b,21,_.iO[0],fI)}}return b},Ffd=function(a){var b=new _.G4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "reason":_.Ik(b,1,nfd[d])}}return b},Gfd=function(a){return a.map(function(b){var c=new _.hO;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;
switch(d){case "role":_.Ik(c,1,Yed[e]);break;case "user":d=mP(e);_.Nk(c,2,_.gO[0],d);break;case "group":d=new _.fO;e=_.m(Object.entries(e));for(var f=e.next();!f.done;f=e.next()){var h=_.m(f.value);f=h.next().value;h=h.next().value;switch(f){case "email":_.Hk(d,1,h);break;case "title":d.setTitle(h)}}_.Nk(c,3,_.gO[0],d);break;case "domain":d=Dfd(e);_.Nk(c,4,_.gO[0],d);break;case "anyone":d=new I4c;_.Nk(c,5,_.gO[0],d);break;case "allowDiscovery":_.Gk(c,6,e)}}return c})},Hfd=function(a){return a.map(function(b){var c=
new _.Q4c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "feature":_.Ik(c,1,hfd[e]);break;case "newRestriction":_.Ik(c,2,ifd[e])}}return c})},Ifd=function(a){return a.map(function(b){var c=new X3c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "removedReviewer":d=mP(e);_.y(c,3,d);break;case "addedReviewer":d=mP(e),_.y(c,4,d)}}return c})},
Jfd=function(a){return a.map(function(b){var c=new _.J3c;b=_.m(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=_.m(d.value);d=e.next().value;e=e.next().value;switch(d){case "label":c.Ad(e);break;case "types":d=Lfd(e),_.A(c,2,d||[])}}return c})},Lfd=function(a){return a.map(function(b){return lfd[b]})},Kfd=function(a){var b=new _.L4c;a=_.m(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.m(c.value);c=d.next().value;d=d.next().value;switch(c){case "publishMode":_.Ik(b,
1,mfd[d]);break;case "signinRequired":_.Gk(b,2,d);break;case "publishedTime":c=sfd(d),_.y(b,3,c)}}return b};
var Nfd=function(a,b){var c=new ead;b=_.A(c,4,b);a&&"drive#app"==a.kind&&(a=Mfd(a),_.y(b,2,a));return b},Mfd=function(a){_.nN(["drive#app"],a);var b=(new _.aO).Pb(a.id);b=_.A(b,3,a.useByDefault).hd(a.name);b=_.A(b,7,a.openUrlTemplate);b=w3c(v3c(b,a.primaryMimeTypes),a.secondaryMimeTypes);b=_.A(b,8,a.createUrl);b=_.A(b,9,a.createInFolderTemplate);b=_.A(b,10,a.objectType);b=_.A(b,11,a.supportsCreate);b=_.A(b,12,a.supportsImport);b=_.A(b,13,a.supportsMultiOpen);b=_.A(b,27,a.supportsOfflineCreate);b=
_.A(b,14,a.installed);b=_.A(b,15,a.authorized);b=_.A(b,16,a.productUrl);b=_.A(b,17,a.primaryFileExtensions||[]);b=_.A(b,18,a.secondaryFileExtensions||[]);b=_.A(b,19,a.shortDescription);b=_.A(b,20,a.longDescription);b=_.A(b,21,a.productId);b=_.A(b,22,a.removable);b=_.A(b,23,Ofd[a.type]);b=_.A(b,25,a.hasAppData);b=_.A(b,26,a.appDataQuotaBytesUsed);b=_.A(b,28,a.requiresAuthorizationBeforeOpenWith);b=_.A(b,30,a.hasDriveWideScope);b=_.A(b,31,a.driveSource);b=_.A(b,32,a.driveBranded);b=_.A(b,33,a.hidden);
b=_.A(b,34,a.supportsMobileBrowser);b=_.A(b,35,a.supportsTeamDrives);b=_.A(b,36,a.hasGsmListing);for(var c=a.icons||[],d=[],e=0;e<c.length;e++){var f=d,h=f.push,k=c[e],l=new _.q3c;l=_.A(l,3,k.iconUrl).setSize(k.size);k.category&&_.A(l,1,Pfd[k.category]);h.call(f,l)}_.kb(b,6,d);c=a.chromeExtensionIds||[];d=[];for(e=0;e<c.length;e++)d.push(c[e]);_.A(b,24,d||[]);c=a.rankingInfo||{};a=new _.t3c;d=c.absoluteScore;null!=d&&_.A(a,1,Number(d));d=Qfd(c.mimeTypeScores||[]);_.kb(a,2,d);c=Qfd(c.fileExtensionScores||
[]);_.kb(a,3,c);_.y(b,29,a);return b},Qfd=function(a){for(var b=[],c=0;c<a.length;c++){var d=new _.r3c;d=_.A(d,1,a[c].type);d=_.A(d,2,Number(a[c].score));b.push(d)}return b},Ofd={WEB_ONLY:1,WEB_AND_CHROME_EXTENSION:2,CHROME_EXTENSION_ONLY:3},Pfd={application:1,document:2,documentShared:3};
var Sfd=function(a){var b=new Qad;if(!a.backups)return b;a=a.backups.map(function(c){var d=(new _.RO).Pb(c.id).setTitle(c.title);d=_.A(d,3,_.oN(c.updateTime));d=_.A(d,4,Rfd[c.backupSource]);d=_.A(d,5,c.iconUri);d=_.A(d,8,_.oN(c.expiryTime));d=_.A(d,9,"boolean"===typeof c.hasGoogleoneBackup?c.hasGoogleoneBackup:!1);if(1===d.Sx()){var e=new N$c;e=_.A(e,1,c.whatsappOngoingBackupEnabled);c=_.A(e,2,c.whatsappPhoneNumber);_.y(d,6,c)}else 2===d.Sx()&&(e=new _.M$c,e=_.A(e,1,c.deviceName),e=_.A(e,2,c.deviceModelName),
e=_.A(e,3,c.shouldIncludeSpecialSyncItems),c=_.A(e,4,c.deviceAndroidId),_.y(d,7,c));return d});_.kb(b,2,a);return b},Ufd=function(a){var b=new Mad;if(!a.backupItems)return b;a=a.backupItems.map(function(c){var d=(new _.SO).Pb(c.id);d=_.A(d,1,Tfd[c.type]).setTitle(c.title);d=_.A(d,4,c.iconUri);d=_.O$c(d.setSize(c.size),_.oN(c.updateTime));d=_.A(d,7,c.hasCustomBehavior).Tk(c.description);return _.A(d,9,c.ongoingSyncEnabled)});_.kb(b,1,a);return b},Rfd={BACKUP_SOURCE_UNSPECIFIED:0,BACKUP_SOURCE_WHATSAPP:1,
BACKUP_SOURCE_ANDROID:2},Tfd={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 Vfd=function(a,b){this.H=a;this.O=b};
var Wfd={read:2,write:3,comment:4},Xfd=function(a,b,c){var d=c.itemId;c=c.driveItem;d=_.IK((new _.Cl).Pb(d).setTitle(c.title),c.mimeType);c.userCapabilities&&_.BM(d,_.aXc(c.userCapabilities));_.QM(b).includes(19)&&_.fTc(d,!0);b9c(a,d,_.QM(b));_.gTc(d,4);return d},Zfd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=new _.lna;f=_.A(f,2,Yfd(e));e=Xfd(a,b,e);e=_.y(e,100,f);d.push(e)}});c=(new _.BA).Hv(d).IN(c.suggestionSessionId);return _.LVc(new _.gN,c)},agd=function(a,
b,c){var d=[],e=[];(c.item||[]).forEach(function(f){if(f.person){var h=f.itemId,k=$fd(f.person).Pb(h);(f.childItem||[]).forEach(function(l){e.some(function(t){return t.getId()===h})||e.push(k);var n=l.itemId,p=d.find(function(t){return t.getId()===n});p||(p=Xfd(a,b,l),d.push(p));l=C0c(B0c(A0c(new _.ina,k.clone()),Yfd(l)),l.url);_.Rk(p,107,l,_.ina,void 0)})}});return c2c((new _.ZM).Hv(d),e).IN(c.suggestionSessionId)},$fd=function(a){return _.vSc((new _.ml).Pb(a.id).hd(a.displayName),a.emailAddress).Vm(a.photoUrl)},
cgd=function(a,b,c){var d=[];(c.item||[]).forEach(function(e){if(e.driveItem){var f=Xfd(a,b,e);e=bgd(e);f=_.kb(f,117,e);d.push(f)}});c=(new _.BA).Hv(d).IN(c.suggestionSessionId);return _.LVc(new _.gN,c)},bgd=function(a){var b=a.action;return b?b.map(function(c){var d=new _.ql,e=dgd(c);e&&_.Nk(d,2,_.pl[0],e);(e=egd(c))&&a0c(d,e);(e=fgd(c))&&_.Nk(d,4,_.pl[0],e);(e=ggd(c))&&_.Nk(d,5,_.pl[0],e);(e=hgd(c))&&_.Nk(d,6,_.pl[0],e);(e=igd(c))&&_.Nk(d,7,_.pl[0],e);(e=jgd(c))&&_.Nk(d,8,_.pl[0],e);(e=kgd(c))&&
_.Nk(d,9,_.pl[0],e);(e=lgd(c))&&_.Nk(d,10,_.pl[0],e);(c=mgd(c))&&_.Nk(d,11,_.pl[0],c);return d}):(a=nP(a),a=q0c([a]),[a0c(new _.ql,a)])},ogd=function(a){return(a.justification||[]).map(function(b){return ngd(b)})},nP=function(a){return(a=a.justification)?ngd(a):null},ngd=function(a){var b=p_c(new _.ol,pgd(a.displayText)),c=a.primaryPerson,d=a.allPeople;c?(c=$fd(c),_.Nk(b,3,_.Nma[0],c),q_c(b,[c])):d?(c=(d.person||[]).map(function(e){return $fd(e)}),d=o_c(c),_.Nk(b,4,_.Nma[0],d),q_c(b,c)):(c=(a.person||
[]).map(function(e){return $fd(e)}),c.length&&(d=o_c(c),_.Nk(b,4,_.Nma[0],d),q_c(b,c)));_.A(b,5,_.oN(a.eventTime));r_c(b,pgd(a.justificationDescription));return b},pgd=function(a){if(!a)return null;a=a.textSegment||[];return l_c(new _.ll,a.map(function(b){var c=(new _.Kma).$g(b.text),d=b.link;if(d){var e=new _.Lma;d=_.A(e,1,d.url)}else d=null;c=_.y(c,2,d);c=_.A(c,3,b.bold);return _.A(c,4,b.italic)}))},dgd=function(a){a=a.documentDocosAction;if(!a)return null;var b=i0c(new _.Vma,nP(a));h0c(b,(a.subAction||
[]).map(function(c){var d=new _.Wma;c.reply?(c=new _.Pma,_.Nk(d,1,_.rl[0],c)):c.resolve?(c=new y_c,_.Nk(d,2,_.rl[0],c)):c.reassign?(c=new w_c,_.Nk(d,3,_.rl[0],c)):c.acceptSuggestion?(c=new s_c,_.Nk(d,4,_.rl[0],c)):c.rejectSuggestion?(c=new x_c,_.Nk(d,5,_.rl[0],c)):c.openThread&&(c=new _.Oma,_.Nk(d,6,_.rl[0],c));return d}));_.A(b,2,a.discussionId);_.A(b,3,a.postId);j0c(b,pgd(a.anchorText));return b},fgd=function(a){a=a.documentShareAction;if(!a)return null;var b=m0c(new _.Yma,nP(a));l0c(b,(a.subAction||
[]).map(function(c){var d=new K_c;c.suggestedShare?(c=new C_c,_.Nk(d,1,J_c[0],c)):c.responseToRequest&&(c=new z_c,_.Nk(d,2,J_c[0],c));return d}));k0c(b,(a.sharee||[]).map(function(c){return $fd(c)}));_.A(b,3,Wfd[a.shareeRole]);return b},egd=function(a){a=a.documentViewAction;if(!a)return null;var b=q0c(ogd(a));p0c(b,(a.subAction||[]).map(function(c){var d=new O_c;c.open?d.Mg(new MN):c.reviewEdits&&(c=new A_c,_.Nk(d,2,N_c[0],c));return d}));return b},ggd=function(a){a=a.emailViewAction;if(!a)return null;
var b=v0c(new U_c,nP(a));u0c(b,(a.subAction||[]).map(function(c){var d=new W_c;c.openEmail&&d.Mg(new u_c);return d}));return b},hgd=function(a){a=a.calendarEventAction;if(!a)return null;var b=e0c(d0c(c0c(new _.Rma,a.eventId),nP(a)),a.guestCount);b0c(b,(a.subAction||[]).map(function(c){var d=new G_c;if(c.viewCalendarEvent){var e=new D_c;_.Nk(d,1,F_c[0],e)}c.shareWithAttendees&&(e=new B_c,_.Nk(d,2,F_c[0],e));c.present&&(e=new v_c,_.Nk(d,3,F_c[0],e));c.openDocument&&(c=new MN,_.Nk(d,4,F_c[0],c));return d}));
return b},igd=function(a){a=a.documentWorkspaceAction;if(!a)return null;var b=t0c(s0c(new Q_c,a.workspaceId),nP(a));r0c(b,(a.subAction||[]).map(function(c){var d=new S_c;c.addToWorkspace&&(c=new t_c,_.Nk(d,1,R_c[0],c));return d}));return b},jgd=function(a){a=a.documentTopicAction;if(!a)return null;var b=o0c(new _.$ma,nP(a));n0c(b,(a.subAction||[]).map(function(c){var d=new M_c;c.openDocument&&(c=new MN,_.Nk(d,1,L_c[0],c));return d}));return b},kgd=function(a){a=a.popularDocumentAction;if(!a)return null;
var b=z0c(new _.fna,nP(a));y0c(b,(a.subAction||[]).map(function(c){var d=new $_c;c.openDocument&&(c=new MN,_.Nk(d,1,Z_c[0],c));return d}));return b},lgd=function(a){a=a.collaboratorActivityAction;if(!a)return null;var b=g0c(new _.Tma,nP(a));f0c(b,(a.subAction||[]).map(function(c){var d=new I_c;c.openDocument&&(c=new MN,_.Nk(d,1,H_c[0],c));return d}));return b},mgd=function(a){a=a.formResponseAction;if(!a)return null;var b=x0c(new _.dna,ogd(a));w0c(b,(a.subAction||[]).map(function(c){var d=new Y_c;
c.openDocument?(c=new MN,_.Nk(d,1,X_c[0],c)):c.viewResponses&&(c=new E_c,_.Nk(d,2,X_c[0],c));return d}));return b},Yfd=function(a){a=((a.justification||{}).displayText||{}).textSegment||[];return 0<a.length?(a[0]||{}).text||"":""};
var qgd=function(a,b){this.H=a;this.O=b},sgd=function(a,b,c){_.nN(["drive#categoryMetadataList"],c);var d=new $N,e=Object.values(c.categoryMetadata||{});k3c(d,e.map(function(f){return rgd(a,f,b.Gc())}));d.Ac(1);return new _.bN(d,D$c(c))},ugd=function(a,b){var c=new XO;mad(c,(b.categories||[]).map(function(d){return tgd(a,d)}));c.Ac(1);return new E5c(c,D$c(b))},rgd=function(a,b,c){_.nN(["drive#categoryMetadata"],b);c=$2c((new YN).hd(b.categoryName),c);b=Object.values(b.attributeValues||[]);Z2c(c,b.map(function(d){return vgd(a,
d)}).filter(function(d){return d}));return c},tgd=function(a,b){var c=M2c(L2c((new VN).hd(b.name),b.categoryName),b.latestName).setTitle(b.title).Tk(b.description);N2c(c,(b.attributes||[]).map(function(d){var e=d.type;var f=(new I2c).Pb(d.id);f=_.A(f,2,d.queryGuid);f=_.A(f,3,d.helpText);f=_.A(f,4,d.displayName);if(d.attributeDisplayHints){var h=wgd(d.attributeDisplayHints);_.y(f,5,h)}if(d.capabilities){h=d.capabilities;var k=new q2c;k=_.A(k,1,h.canSearch);h=_.A(k,2,h.canWrite);_.y(f,6,h)}_.A(f,7,
xgd[e]);d=d[ygd(e)+"Options"];return zgd(a,f,e,d)?f:null}).filter(function(d){return d}));b.createdBy&&O2c(c,Agd(b.createdBy));b.updatedBy&&P2c(c,Agd(b.updatedBy));b.publishedBy&&Q2c(c,Agd(b.publishedBy));_.A(c,9,_.oN(b.createTime));_.A(c,10,_.oN(b.updateTime));_.A(c,11,_.oN(b.publishTime));b.displayHints&&R2c(c,wgd(b.displayHints));b.capabilities&&S2c(c,Bgd(b.capabilities));b.learnMoreUri&&_.A(c,15,b.learnMoreUri);return c},vgd=function(a,b){_.nN(["drive#categoryAttributeValue"],b);var c=(new WN).Pb(b.id);
if(b.userScoped)b=Object.values(b.userScoped),X2c(c,b.map(function(d){_.nN(["drive#userScopedAttributeValue"],d);var e=new U2c,f=_.pN(a.H,d.scopedUser);e=_.y(e,1,f);return a.Kb(e,d)?e:null}).filter(function(d){return d})),c.pz(9);else if(!a.Kb(c,b))return null;return c},wgd=function(a){var b=(new p2c).Sj(a.disabled);b=_.A(b,2,a.hidden);b=_.A(b,3,a.activatedInAllDrives);return _.A(b,4,!!a.required)},Bgd=function(a){var b=new K2c;b=_.A(b,1,a.canSearch);b=_.A(b,2,a.canApply);b=_.A(b,4,a.canRemove);return _.A(b,
3,a.canManageSharedDriveActivation)},zgd=function(a,b,c,d){return Cgd(a,function(){Dgd(a)[c](b,d)},c,b)},Egd=function(a){a=void 0===a?{}:a;var b=new z2c;b=_.A(b,1,a.minSize);return _.A(b,2,a.maxSize)},Ggd=function(a){var b=new w2c;x2c(b,(a.choices||[]).map(function(c){var d=(new v2c).Ad(c.label).Kb(c.value);c.description&&d.Tk(c.description);if(c.capabilities){var e=c.capabilities;var f=new t2c;f=_.A(f,1,e.canSearch);e=_.A(f,2,e.canSelect);_.y(d,3,e)}c.displayHints&&(c=c.displayHints,e=(new u2c).Sj(c.disabled),
e=_.A(e,2,c.hidden),c.badgePriority&&_.A(e,5,c.badgePriority),c.badgeColors&&(f=Fgd(c.badgeColors),_.y(e,3,f)),c.darkBadgeColors&&(c=Fgd(c.darkBadgeColors),_.y(e,4,c)),_.y(d,4,e));return d}));return b},Fgd=function(a){var b=new o2c;var c=Hgd(a.backgroundColor);b=_.y(b,1,c);c=Hgd(a.foregroundColor);b=_.y(b,2,c);a=Hgd(a.soloColor);return _.y(b,3,a)},Hgd=function(a){var b=new _.TE;b=_.Ek(b,1,a.red,0);b=_.Ek(b,2,a.green,0);b=_.Ek(b,3,a.blue,0);a.alpha&&(a=(new d1c).Kb(a.alpha),_.y(b,4,a));return b},Igd=
function(a){var b=new C2c;b=_.A(b,1,a.showThousandsSeparator);b=_.A(b,2,a.minValue);return _.A(b,3,a.maxValue)},Jgd=function(a){var b=(new _.qna).setYear(a.year).setMonth(a.month);return _.A(b,3,a.day)};qgd.prototype.Kb=function(a,b){var c=this,d=b.valueType.replace(/([A-Z])/g,"_$1").toLowerCase().toUpperCase();a.pz(xgd[d]);return Cgd(this,function(){Kgd(c)[d](a,b[b.valueType])},b.valueType)};
var Cgd=function(a,b,c,d){try{b()}catch(e){if(e instanceof TypeError&&!(d instanceof E2c))return E1c(a.O,"drive.ds.response.MetadataParser","Response Parser: Error parsing type "+c+"."),!1;throw e;}return!0},Agd=function(a){return _.tSc(1).Pb(a.personName.split("/")[1])},ygd=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},Dgd=function(a){return{BOOLEAN:function(b,c){var d=b.l0a;var e=new r2c;e=_.A(e,1,c.trueLabel);c=_.A(e,2,c.falseLabel);return d.call(b,
c)},TEXT:function(b,c){return b.Iaa(Egd(c))},TEXT_LIST:function(b,c){var d=b.k1a;var e=new A2c;e=_.A(e,1,c.maxEntries);c=Egd(c.options);c=_.y(e,2,c);return d.call(b,c)},LONG_TEXT:function(b,c){var d=new B2c;d=_.A(d,1,c.minSize);c=_.A(d,2,c.maxSize);return _.Nk(b,10,TN[0],c)},SELECTION:function(b,c){return b.Z0a(Ggd(c))},SELECTION_LIST:function(b,c){var d=b.Y0a;var e=new y2c;e=_.A(e,1,c.maxEntries);c=Ggd(c.options);c=_.y(e,2,c);return d.call(b,c)},INTEGER:function(b,c){return b.z0a(Igd(c))},INTEGER_LIST:function(b,
c){var d=b.y0a;var e=new D2c;e=_.A(e,1,c.maxEntries);c=Igd(c.options);c=_.y(e,2,c);return d.call(b,c)},USER:function(b){return b.p1a(new F2c)},USER_LIST:function(b,c){var d=b.Kma,e=new G2c;c=_.A(e,1,c.maxEntries);e=new F2c;c=_.y(c,2,e);return d.call(b,c)},DATE:function(b,c){var d=b.oma;var e=new H2c;e=_.A(e,4,c.dateFormat);var f=Jgd(c.minValue);e=_.y(e,2,f);c=Jgd(c.maxValue);c=_.y(e,3,c);return d.call(b,c)},USER_SCOPED:function(b,c){var d=new E2c;d=_.A(d,1,c.canReadCollaboratorValues);var e=c.subtype;
_.A(d,2,xgd[e]);c=c[ygd(e)+"Options"];zgd(a,d,e,c);return _.Nk(b,16,TN[0],d)}}},Kgd=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.Gma(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.Bma(c)},INTEGER:function(b,c){return b.setIntegerValue(parseInt(c,10))},INTEGER_LIST:function(b,c){return b.sma(c.map(function(d){return parseInt(d,
10)}))},USER:function(b,c){return b.setUserValue(_.pN(a.H,c))},USER_LIST:function(b,c){W2c(b,c.map(function(d){return _.pN(a.H,d)}))},DATE_STRING:function(b,c){return b.setDateStringValue(c)}}},xgd={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 Lgd=function(a){a=a.personResponse;return S6c(new R6c,a.map(function(b){var c=b.person;b=P6c(new xO,b.personId);var d=b.hd,e=c;e=void 0===e?{}:e;e=e.metadata;b=d.call(b,e?e.bestDisplayName.displayName:"");d=c;d=void 0===d?{}:d;d=d.email;b=_.A(b,3,d?d[0].value:"");c=void 0===c?{}:c;c=c.photo?c.photo[0]:null;d=new O6c;c=_.A(d,1,c&&!c.isDefault?c.url:null);return _.y(b,4,c)}))};
var Mgd=function(a){this.H=a},Ogd=function(a,b){_.nN(["drive#teamDriveList","drive#driveList"],b);return(b.items||[]).map(function(c){return Ngd(a,c)})},Ngd=function(a,b){_.nN(["drive#teamDrive","drive#drive"],b);var c=new _.nna,d=b.colorRgb;d=d?parseInt(d.substring(1),16):0;_.A(c,2,d);_.A(c,1,b.backgroundImageLink);_.A(c,3,b.trusted);_.A(c,5,b.backgroundImageGridViewLink);_.A(c,6,b.backgroundImageListViewLink);_.A(c,7,b.hidden);_.A(c,9,b.removeSecureLinkUpdateForAllFiles);(d=b.categoryReferences)&&
KYc(c,d.map(function(e){_.nN(["drive#driveCategoryReference"],e);var f=new _.Bl;return _.A(f,1,e.category)}));c=_.kTc(_.jTc(_.gTc(_.hTc(JYc(_.IK((new _.Cl).Pb(b.id).setTitle(b.name),"application/vnd.google-apps.folder"),c),b.id),2),b.primaryDomainName),b.organizationDisplayName);b.capabilities&&(d=_.HSc(_.aXc(b.capabilities),!0),_.BM(c,d));b.permissionsSummary&&_.iTc(c,_.qXc(a.H,b.permissionsSummary));b.restrictions&&MYc(c,Pgd(b.restrictions));return c},Pgd=function(a){var b=new D0c;b=_.A(b,1,a.copyRequiresWriterPermission);
b=_.A(b,2,a.disallowDriveFileStream);b=_.A(b,3,a.domainUsersOnly);return _.A(b,4,a.teamMembersOnly)};
var Qgd={DRIVE_FE:2,DRIVE_BE:4,EXPLORER:1,GENERAL:3,PSYNCHO:5,SLACK:6,DRIVE_BE_EX:7,DRIVE_SHARING:9,TEAMKIT:10},$Zc=_.mg(Qgd);
var Rgd=function(a){_.nN(["drive#setting"],a);var b=new _.xb;b=_.A(b,2,a.key);b=_.A(b,1,Qgd[a.namespace]);return _.Cxa(new _.kp,b).Kb(a.value)};
var Tgd=function(a){_.nN(["drive#workspaceList"],a);var b=a.items||[];b=V6c(new yO,b.map(function(c){return Sgd(c)}));return new _.eN(b,D$c(a))},Sgd=function(a){_.nN(["drive#workspace"],a);var b=(new _.AA).Pb(a.id).setTitle(a.title);b=_.A(b,3,_.oN(a.createdDate));return _.A(b,4,_.oN(a.modifiedDate)).Fd(Ugd[a.state])},Vgd=function(a,b,c){var d=c.item||[];return _.rYc(_.qYc(new _.xN,d.map(function(e){return Xfd(a,b,e)})),c.suggestionSessionId)},Xgd=function(a,b,c){var d=c.item||[];return E3c(D3c(new cO,
d.map(function(e){return Wgd(a,b,e)})),c.suggestionSessionId)},Wgd=function(a,b,c){var d=c.driveWorkspace,e=c.childItem||[];return B3c(z3c(A3c(y3c(new bO,c.predictionId).setTitle(d&&d.title),d&&d.workspaceToken),e.map(function(f){return Xfd(a,b,f)})),nP(c))},Ygd=function(a){var b=new m2c;a.kind&&(a=Sgd(a),_.y(b,2,a));b.Ac(1);return b},Ugd={active:1,archived:2};
var WZc={QUEUED:1,COUNTING:3,BUILDING:2,SUCCEEDED:4,FAILED:5};
var Zgd=function(a,b,c,d){_.zXc.call(this,b);this.Ig=a;this.ka=c;this.O=d;this.W=null;this.ma=new Med(this.V,b);this.H=new Mgd(this.LD);this.oa=new Vfd(this.LD,this.H)};_.N(Zgd,_.zXc);var $gd=function(a){a.W||(a.W=new qgd(a.V,a.ka));return a.W};
Zgd.prototype.ha=function(a,b){if(a instanceof _.vL)return _.iXc(_.EXc(a));if(a instanceof _.wL)return _.BXc(this,a,b);if(a instanceof _.TRc)return ahd(this,a.request,b);if(a instanceof _.xL)return _.BXc(this,a,b);if(a instanceof _.zL){if(!b.json)throw _.qN();return m3c((new l3c).Ac(1),Ngd(this.H,b.json))}if(a instanceof _.yL)return _.BXc(this,a,b);if(a instanceof _.VM)return new g2c;if(a instanceof _.BL)return bhd(a,b);if(a instanceof _.CL)return Nfd(void 0,a.ih());if(a instanceof _.DL)return new Rad;
if(a instanceof _.EL)return _.iXc(_.EXc(a));if(a instanceof _.FL)return new WO;if(a instanceof _.GL)return _.iXc(_.EXc(a));if(a instanceof _.HL)return _.iXc(_.EXc(a));if(a instanceof _.kC)return b=new fad,a=a.getKey(),_.y(b,4,a);if(a instanceof _.IL)return bhd(a,b);if(a instanceof _.LL)return _.iXc(_.EXc(a));if(a instanceof _.QRc){if(!b.json)throw _.qN();return new B5c(b.json.exportJob.id)}if(a instanceof _.ML){if(!b.json)throw _.qN();a=b.json;b=new aad;a=Mfd(a);return _.y(b,2,a).Ac(1)}if(a instanceof
_.NL)return chd(a,b);if(a instanceof _.OL){if(!b.json)throw _.qN();a=(new WO).Ac(1);b=_.jXc(this.LD,b.json);return _.y(a,2,b)}if(a instanceof _.YK){a:{if(!b.json)throw _.qN();if(a instanceof _.YK){if((a=a.ud())&&_.PL(a)){b=Zfd(this.O,this.Ig,b.json);break a}if(a&&_.QL(a)){b=agd(this.O,this.Ig,b.json);break a}if(a&&_.RL(a)){b=cgd(this.O,this.Ig,b.json);break a}}b=_.fXc(this.LD,b.json,b.headers)}return b}if(a instanceof _.SL){if(!b.json)throw _.qN();return Ufd(b.json)}if(a instanceof _.TL){if(!b.json)throw _.qN();
b=b.json;_.nN(["drive#appList"],b);a=new wO;for(var c=[],d=b.items||[],e=0;e<d.length;e++)c.push(Mfd(d[e]));a=_.kb(a,2,c);return _.A(a,4,b.defaultAppIds||[]).Ac(1)}if(a instanceof _.RRc){if(!b.json)throw _.qN();return Sfd(b.json)}if(a instanceof _.kL)return dhd(this,b);if(a instanceof _.UL){if(!b.json)throw _.qN();a=new dad;d=this.LD;e=b.json;c=new V1c;d=_.kXc(d,e,"items");c=_.kb(c,2,d);a=_.y(a,1,c);return _.A(a,2,D$c(b.json))}if(a instanceof _.VL){if(!b.json)throw _.qN();a=this.LD;d=b.json;b=new X1c;
_.nN(["drive#revisionList"],d);c=[];d=d.items||[];for(e=0;e<d.length;e++){var f=_.gXc(a,d[e]);c.push(f)}return _.kb(b,2,c)}if(a instanceof _.HK)return ehd(a,b);if(a instanceof _.XL){if(!b.json)throw _.qN();return Lgd(b.json)}if(a instanceof _.ZRc){if(!b.json)throw _.qN();return ugd($gd(this),b.json)}if(a instanceof _.CF){if(!b.json)throw _.qN();a=$gd(this);c=b.json;b=new nad;a=tgd(a,c);return _.y(b,2,a).Ac(1)}if(a instanceof _.YL){if(!b.json)throw _.qN();b=b.json;_.nN(["drive#remainingCount"],b);
a=new oad;c=b.nextPageToken;null!=c&&_.A(a,2,Number(c));_.A(a,1,Number(b.remainingCount));return a}if(a instanceof _.op){if(!b.json)throw _.qN();return(new _.BA).Hv([Ngd(this.H,b.json)])}if(a instanceof _.iM){if(!b.json)throw _.qN();a=(new _.BA).Hv(Ogd(this.H,b.json));a=_.LVc(new _.gN,a);return _.A(a,3,D$c(b.json))}if(a instanceof _.cM)return chd(a,b);if(a instanceof _.dM)return ahd(this,a,b);if(a instanceof _.iL)return _.BXc(this,a,b);if(a instanceof _.eM)return _.BXc(this,a,b);if(a instanceof _.fM)return fhd(this,
b);if(a instanceof _.lC){if(!b.json)throw _.qN();b=Rgd(b.json);a=new fad;a=_.y(a,3,b);b=b.getKey();return _.y(a,4,b)}if(a instanceof _.gM)return bhd(a,b);if(a instanceof _.TK){if(!b.json)throw _.qN();return Qed(this.ma,b.json)}if(a instanceof _.zA){if(!b.json)throw _.qN();b=Sgd(b.json);a=new _.$M;a.XR().set(b.getId(),b);return a}if(a instanceof _.SRc){if(!b.json)throw _.qN();a=b.json;b=new x5c;a=_.m(Object.entries(a));for(c=a.next();!c.done;c=a.next())switch(d=_.m(c.value),c=d.next().value,d=d.next().value,
c){case "nextPageToken":_.Hk(b,2,d);break;case "activities":c=ufd(d),_.kb(b,1,c)}return b}if(a instanceof _.URc)return fhd(this,b);if("undefined"!=typeof _.YRc&&a instanceof _.YRc)return dhd(this,b);if(a instanceof _.VRc){if(!b.json)throw _.qN();return new A5c}if(a instanceof _.WRc){if(!b.json)throw _.qN();return ZZc(b)}if(a instanceof _.mC){if(!b.json)throw _.qN();c=b.json;b=new _.mp;_.nN(["drive#settingList"],c);a=[];c=c.items||[];for(d=0;d<c.length;d++)(e=Rgd(c[d]))&&a.push(e);return _.Exa(b,a)}if(a instanceof
_.np){if(!b.json)throw _.qN();return Xgd(this.O,this.Ig,b.json).Ac(1)}if(a instanceof _.bM){if(!b.json)throw _.qN();return Vgd(this.O,this.Ig,b.json)}if(a instanceof _.dSc){if(!b.json)throw _.qN();a=b.json;_.nN(["drive#teamDrive"],a);b=a.recursiveFolderCount;a=a.recursiveFileCount;c=new T$c;a=_.A(c,1,a);return _.A(a,2,b)}if(a instanceof _.cSc)return new C5c(D$c(b.json?b.json:{}));if(a instanceof _.fSc){if(!b.json)throw _.qN();return Tgd(b.json)}if(a instanceof _.GN)return fhd(this,b)};
var bhd=function(a,b){if(!b.json){if(a instanceof _.IL)return Ygd({});throw _.qN();}return Ygd(b.json)},fhd=function(a,b){if(!b.json)throw _.qN();a=Ngd(a.H,b.json);return(new _.kM).Ac(1).setItem(a)},ahd=function(a,b,c){if(!c.json)throw _.qN();return sgd($gd(a),b,c.json)},chd=function(a,b){if(!b.json)throw _.qN();return Nfd(b.json,a.ih())},dhd=function(a,b){if(!b.json)throw _.qN();a=a.oa;var c=b.json;_.nN(["drive#about","drive#changeList"],c);b=new M6c;var d=c.nextPageToken;null!=d&&_.A(b,2,Number(d));
d=c.largestChangeId;null!=d&&_.A(b,3,Number(d));if("drive#changeList"==c.kind){_.nN(["drive#changeList"],c);d=[];c=c.items||[];for(var e=0;e<c.length;e++){var f=a,h=c[e];_.nN(["drive#change"],h);var k=new _.bL;k=_.A(k,1,Number(h.id));h.teamDriveId?(_.mRc(k,h.teamDriveId),_.cL(k,h.teamDriveId)):_.cL(k,h.fileId);h.file?k.setItem(_.cXc(f.H,h.file)):h.teamDrive&&k.setItem(Ngd(f.O,h.teamDrive));h.deleted&&!k.getItem()&&_.mL(k);d.push(k)}_.kb(b,4,d)}return b},ehd=function(a,b){var c=new Tad;if(_.Jd(a,6).length){var d=
[];WYc(_.Jd(a,6),b.headers).forEach(function(e,f){var h=new _.vOc;e=_.A(h,1,f).Kb(e);d.push(e)});_.kb(c,1,d)}Uad(c,b.json?JSON.stringify(b.json):b.text);return c};
var hhd=function(a){var b=new _.aq;if(a=a.getState()){var c=[];c.push("state");c.push("=");c.push(ghd[a]);_.SM(b,c.join(" "))}return b.toString()},ihd={},ghd=(ihd[1]="active",ihd[2]="archived",ihd);
var jhd=function(a,b,c,d){_.rN.call(this,b,c,a.sJa,d);this.ka=a;this.ma=new h6c(_.QM(c),b)};_.N(jhd,_.rN);
jhd.prototype.V=function(a,b,c){var d=this;try{return _.rN.prototype.V.call(this,a,b,c)}catch(R){}var e=0,f={},h="GET",k={},l=!1,n=!1;if(a instanceof _.wL){h="POST";var p="admin/files/"+a.getId()+"/migrateToTeamDrive";k.fields="kind,id,parentId,teamDriveId";k.fileId=a.getId();var t=E$c(a);f["content-type"]="application/json";l=n=!0}else if(a instanceof _.xL){h="POST";p="files/"+a.Gc()+"/authorize";k.appId=a.ih();_.H(a,3)&&(k.propagate=!0);var u=a.re();n=!0;_.PM(k);_.tM(this.H,[],[a.Gc()],this.O,f)}else if(a instanceof
_.GN)p="drives/"+a.getId(),h="PUT",t={},t=(t.removeSecureLinkUpdateForAllFiles=_.E(a,2,!1),t),f["content-type"]="application/json",k.fields=oO(this.H,[],!0),u=a.re(),n=!0;else if(a instanceof _.URc)h="POST",p="teamdrives/"+a.requestId,k.fields=oO(this.H),t={},t=(t.name=a.request.getTitle(),t),f["content-type"]="application/json",u=a.request.re(),n=!0;else if(a instanceof _.BL)h="POST",p="workspaces",k.fields="kind,id,title,createdDate,modifiedDate,state",t=G$c(a),f["content-type"]="application/json",
u=a.re(),n=!0;else if(a instanceof _.yL)h="POST",p="files/"+a.getId()+"/copy",k.fields=_.IRc({fields:this.Ag(c),xq:_.RK(_.SK(this.H)),VE:_.XK(this.H)}),k.convert=_.E(a,4,!1),t=F$c(a),f["content-type"]="application/json",u=a.re(),a=_.Jd(a,3).concat([a.getId()]),_.tM(this.H,[],a,this.O,f),n=!0,_.PM(k),_.QXc(this.H,k);else if(a instanceof _.CL)h="DELETE",p="apps/"+a.ih(),k.appId=a.ih(),k.deleteAppData=!!_.H(a,2),u=a.re(),n=!0;else if(a instanceof _.DL)h="DELETE",p="backups/"+a.getId(),e=9;else if(a instanceof
_.EL)h="DELETE",p="files/"+a.getId(),u=a.re(),n=!0,_.PM(k),_.QXc(this.H,k),_.tM(this.H,[],[a.getId()],this.O,f);else if(a instanceof _.FL)h="DELETE",p="files/"+a.Gc()+"/permissions/"+_.C(a,2),u=a.re(),n=!0,_.PM(k);else if(a instanceof _.GL)h="DELETE",p="files/"+a.Gc()+"/revisions/"+_.C(a,2),u=a.re(),n=!0,_.tM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.HL)h="DELETE",p="teamdrives/"+a.getId(),u=a.re(),n=!0;else if(a instanceof _.kC)h="DELETE",u=a.getKey(),p="settings/"+_.C(u,2),_.lp(u)&&(k.namespace=
$Zc[_.lp(u)]),u=a.re(),n=!0;else if(a instanceof _.IL)h="DELETE",p="workspaces/"+a.getId(),u=a.re(),n=!0;else if(a instanceof _.LL)h="DELETE",p="files/trash",u=a.ud().re(),n=!0,_.QXc(this.H,k);else if(a instanceof _.ML)p="apps/"+a.ih(),u=a.re(),n=!0,k.fields="kind,id,useByDefault,name,openUrlTemplate,primaryMimeTypes,secondaryMimeTypes,createUrl,createInFolderTemplate,objectType,supportsCreate,supportsImport,supportsMultiOpen,supportsOfflineCreate,installed,authorized,productUrl,primaryFileExtensions,secondaryFileExtensions,shortDescription,longDescription,productId,removable,icons(iconUrl,size,category),type,chromeExtensionIds,requiresAuthorizationBeforeOpenWith,hasDriveWideScope,driveBranded,driveSource,supportsMobileBrowser,supportsTeamDrives,hasGsmListing";
else if(a instanceof _.SL)p="backups/"+a.getId()+"/items",e=9,k.languageCode=ON(_.SK(this.H));else if(a instanceof _.NL)h="POST",p="apps",k.appId=a.ih(),u=a.re(),n=!0;else if(a instanceof _.OL)h="POST",p="files/"+a.Gc()+"/permissions",k.fields=_.XK(this.H)?"kind,type,id,userId,nameIfNotUser,emailAddress,withLink,role,additionalRoles,deleted,view,audienceId,customerId":"kind,type,id,userId,name,emailAddress,withLink,photoLink,role,additionalRoles,deleted,view,audienceId,customerId",k.emailMessage=
_.C(a,5)||"",k.sendNotificationEmail=!_.E(a,6,!1),t={},1==a.If()?t.role="owner":3==a.If()?t.role="writer":4==a.If()?(t.role="reader",t.additionalRoles=["commenter"]):2==a.If()&&(t.role="reader"),1==a.getType()?t.type="user":2==a.getType()?t.type="group":3==a.getType()?t.type="domain":4==a.getType()?t.type="anyone":5==a.getType()&&(t.type="audience"),a.Ya()&&(t.value=a.Ya()),t.withLink=!_.E(a,8,!1),f["content-type"]="application/json",u=a.re(),n=!0,_.PM(k);else if(a instanceof _.QRc)e=8,h="POST",p=
"/v1/exports",f["content-type"]="application/json",t=_.Jd(a,1).map(function(R){if(_.E(d.H,89,!1)){var da=_.xVc(d.O,R);if(null!==da)return{id:R,resource_key:{resource_key:da}}}return{id:R}}),t={archiveFormat:null,archivePrefix:_.C(a,2),conversions:null,items:t,locale:null};else if(a instanceof _.YK||a instanceof _.VM||a instanceof _.np||a instanceof _.bM)if(b=a instanceof _.YK?a.ud():a,_.mM(b)){e=10;h="POST";p="/v1/items";f["content-type"]="application/json";t={};var z=9==_.JM(this.H)?"WEB_MOBILE":
"WEB_DESKTOP",B={};B.applicationType=q6c(this.H);B.platformType=z;B.languageCode=ON(_.SK(this.H));B.timeZone=(new _.ev).o8();B.requestType="LIVE_REQUEST";a instanceof _.YK&&(z=a.getOptions())&&_.E(z,10,!1)&&(B.requestType="BACKGROUND_REQUEST");b instanceof _.Oe?_.PL(b)?(n6c(this.ma)?B.scenarioType="ONE_PICK":B.scenarioType="QUICK_ACCESS",2==_.HM(b)&&(t.contextFeature={type:"DRIVE_TEAM_DRIVE_ROOT_ID",stringValue:_.Jd(b,33)[0]}),_.EM(b).length&&(t.itemType=p6c(b))):_.QL(b)?B.scenarioType="DRIVE_PEOPLE_WITH_ACTIONS":
_.RL(b)&&(B.scenarioType="DRIVE_PRIORITY"):b instanceof _.VM?(p="/v1/userfeedback",t.userFeedback=_.Lk(b,_.e2c,1).map(function(R){var da=_.D(R,_.SN,2),ta={},ra={};ra.feedbackType=n3c[da.getType()];ta.item=ra;ta.clientInfo=B;switch(R.getFeature()){case 1:B.scenarioType="DRIVE_PRIORITY";ra.itemId=da.Gc();break;case 3:B.scenarioType="QUICK_ACCESS";ra.itemId=da.Gc();break;case 2:B.scenarioType="DRIVE_WORKSPACES",ra.itemId=da.Gc(),ra.childItem=_.Lk(da,_.SN,3).map(function(Aa){var va={};va.itemId=Aa.Gc();
return va})}return ta})):b instanceof _.np?B.scenarioType="DRIVE_WORKSPACES":b instanceof _.bM?(B.scenarioType="ITEMS_FOR_DRIVE_WORKSPACE",t.contextFeature=[{type:"GENERIC_TITLE",stringValue:b.getTitle()||""},{type:"DRIVE_WORKSPACE_ID",stringValue:b.gq()||""},{type:"DRIVE_EMPTY_WORKSPACE",boolValue:_.H(b,5)}]):_.TXc(a);b instanceof _.VM||(t.maxSuggestions=b.ki(),t.clientInfo=B)}else{u=b.re();n=!0;p="files";k.q=_.DUc(b);z=[];var F;(F=_.hL(this.H))&&_.E(F,4,!1)?(F=_.xa(this.Ag(c),this.Ag(c,b.O())),
_.Fa(F)):F=_.ya(this.Ag(c));var I=void 0,M=!1;0<_.Lk(b,_.Tl,5).length&&(I=_.C(this.H.Of(),50),M=!0);k.fields=BYc({fields:F,xq:_.RK(_.SK(this.H)),g5:I||void 0,VE:_.XK(this.H),Cwb:M});k.appDataFilter="NO_APP_DATA";0<_.Lk(b,_.DM,25).length&&(k.sources=_.wUc(b));0<b.bx().length&&(k.spaces=_.xUc(b));a.Tn()&&(k.pageToken=a.Tn());(a=a.getOptions())&&_.wk(a,1,1E3)&&(k.maxResults=_.wk(a,1,1E3));_.E(b,36,!1)&&(k.includeUnsubscribed=!0);_.C(b,43)&&(k.rawUserQuery=_.C(b,43));_.PM(k);k.includeItemsFromAllDrives=
_.E(b,66,!0);0<_.Jd(b,33).length&&2==_.HM(b)&&(a=_.Jd(b,33)[0],k.teamDriveId=a,z.push(a));k.corpora=_.ZTc[_.HM(b)];_.H(b,18)&&(_.jg(k,"corpora"),k.corpus="DOMAIN");a=_.FM(b);F=_.Lk(b,_.CM,35);I=_.Lk(b,_.CM,38);z=z.concat(a.filter(function(R){return!_.E(R,2,!1)}).map(function(R){return R.Ya()})).concat(F.map(function(R){return R.Ya()})).concat(I.map(function(R){return R.Ya()}));_.tM(this.H,_.Lk(b,_.Vl,63),z,this.O,f);ZYc(k,b.Lc());_.RXc(this.H,k);_.SXc(this.H,k);_.D(b,_.ada,64)&&(a=E0c(_.D(b,_.ada,
64)),a=_.Sj(a,4),k.searchSessionData=a)}else if(a instanceof _.TL){p="apps";switch(a.getType()){case 1:k.fields=khd;break;case 2:k.fields=lhd;break;case 4:k.fields=mhd;break;case 3:e=5,p="apps",k.fields="items(icons[category='application'],icons(size,iconUrl),id,name,openUrlTemplate,primaryFileExtensions,primaryMimeTypes,productId,rankingInfo,secondaryFileExtensions,secondaryMimeTypes,kind),kind",k.appQueryScope="all_webstore",b.Xv=!0}k.languageCode=ON(_.SK(this.H));0<_.Jd(a,3).length&&(k.appFilterExtensions=
_.Jd(a,3).join(","));0<_.Jd(a,4).length&&(k.appFilterMimeTypes=_.Jd(a,4).join(","));u=a.re();n=!0}else if(a instanceof _.RRc)p="backups",e=9,k.languageCode=ON(_.SK(this.H));else if(a instanceof _.kL)p="changes",k.includeDeleted=_.E(a,3,!0),k.includeSubscribed=_.E(a,4,!0),k.maxResults=a.lP(),k.startChangeId=_.C(a,1),k.fields=AYc({fields:this.Ag(c),g5:oO(this.H,_.Jd(a,5)),xq:_.RK(_.SK(this.H)),VE:_.XK(this.H)}),k.appDataFilter="NO_APP_DATA",a.zc()||(k.filters="DRIVE_DATASERVICE"),u=_.Jd(this.H.Of(),
31),u.length&&(k.spaces=_.jb(u,function(R){return _.yOc[R]}).join(",")),_.PM(k),k.includeCorpusRemovals=!0,k.includeItemsFromAllDrives=!0,a.zc()&&(k.teamDriveId=a.zc()),u=a.re(),n=!0;else if(a instanceof _.UL)b=a.ud(),p="files/"+b.getId()+"/permissions",k.fields=_.XK(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.Tn()&&(k.pageToken=a.Tn()),_.C(a,1)&&(k.maxResults=_.C(a,1)),u=b.re(),n=!0,_.PM(k),_.RXc(this.H,k),_.SXc(this.H,k),_.tM(this.H,[],[b.getId()],this.O,f);else if(a instanceof _.VL)k.fields=_.XK(this.H)?"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,id,permissionId,emailAddressFromAccount,domain))":"kind,items(kind,id,mimeType,modifiedDate,pinned,downloadUrl,originalFilename,fileSize,lastModifyingUser(kind,displayName,picture,permissionId,emailAddress))",
k.maxResults=a.ki(),p="files/"+a.Gc()+"/revisions",u=a.re(),n=!0,_.tM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.op)p="teamdrives/"+a.Wl()[0],k.fields=oO(this.H,a.O()),u=a.re(),n=!0;else if(a instanceof _.cSc)h="POST",p="admin/files/migrateToTeamDrivePreFlight",_.H(a.request,3)&&(k.useDomainAdminAccess=!0),t=H$c(a),f["content-type"]="application/json",n=l=!0,_.tM(this.H,[],_.Jd(a.request,1),this.O,f);else if(a instanceof _.iM)u=a.ud(),p="teamdrives",k.fields=H5c(this.H,u.O()),k.q=Z5c(u),
a.Tn()&&(k.pageToken=a.Tn()),(u=(u=a.getOptions())&&_.wk(u,1,1E3))&&(k.maxResults=u),u=a.ud().re(),n=!0;else if(a instanceof _.dSc)p="teamdrives/"+a.zc(),k.fields="kind,id,recursiveFileCount,recursiveFolderCount",n=l=!0;else if(a instanceof _.cM)h="PUT",p="apps/"+a.ih(),k.appId=a.ih(),t={},t.useByDefault=_.H(a,2),_.H(a,3)&&(t.hasAppData=!1),f["content-type"]="application/json",u=a.re(),n=!0;else if(a instanceof _.iL)h="PUT",p="files/"+a.getId(),k.fields=_.IRc({fields:this.Ag(c),xq:_.RK(_.SK(this.H)),
VE:_.XK(this.H)}),k.modifiedDateBehavior="DRIVE_UI",k.updateViewedDate=!!_.H(a,15),k.fileId=a.getId(),_.Jd(a,9).length&&(k.addParents=_.Jd(a,9).join(",")),_.Jd(a,10).length&&(k.removeParents=_.Jd(a,10).join(",")),_.Jd(a,31).length&&(k.addWorkspaces=_.Jd(a,31).join(",")),_.Jd(a,32).length&&(k.removeWorkspaces=_.Jd(a,32).join(",")),null!=_.H(a,24)&&(k.confirmed=_.H(a,24)),k.languageCode=ON(_.SK(this.H)),t=I$c(a),f["content-type"]="application/json",u=a.re(),n=!0,_.PM(k),this.W(a.getId(),k),_.H(a,36)?
k.bypassMultiparentingCheck=!0:_.QXc(this.H,k),b=_.Jd(a,9).concat(_.Jd(a,10)),b.push(a.getId()),_.tM(this.H,_.Lk(a,_.Vl,38),b,this.O,f);else if(a instanceof _.eM)h="PUT",p="files/"+a.Gc()+"/revisions/"+_.C(a,2),t=J$c(a),f["content-type"]="application/json",u=a.re(),_.tM(this.H,[],[a.Gc()],this.O,f);else if(a instanceof _.fM)p="teamdrives/"+a.getId(),null!=a.Vl()?(h="POST",p+="/"+(a.Vl()?"hide":"unhide")):(h="PUT",t=K$c(a),f["content-type"]="application/json"),k.fields=oO(this.H),u=a.re(),n=!0;else if(a instanceof
_.gM)h="PUT",p="workspaces/"+a.getId(),k.fields="kind,id,title,createdDate,modifiedDate,state",t=L$c(a),f["content-type"]="application/json",u=a.re(),n=!0;else if(a instanceof _.lC)h="PUT",t=_.D(a,_.kp,1),u=t.getKey(),p="settings/"+_.C(u,2),(u=_.lp(u))&&(k.namespace=$Zc[u]),t=a_c(t),f["content-type"]="application/json",u=a.re(),n=!0;else if(a instanceof _.TK)p="about",k.fields=_.XK(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)":
"kind,user,quotaBytesTotal,quotaBytesUsed,quotaBytesUsedAggregate,quotaBytesUsedInTrash,quotaBytesByService,quotaType,rootFolderId,domainSharingPolicy,largestChangeId,importFormats,gsuiteSubscriptionInfo(trialMillisRemaining,trialEndTime,status),teamDashboardCapabilities(canAdministerTeam,canManageInvites)",k.fields=d_c(k.fields,this.H),k.fields=e_c(k.fields,this.H),u=a.re(),n=!0;else if(a instanceof _.HK){e=11;h=a.By();p=a.getUrl();var U=_.C(a,5)||"";_.Lk(a,_.vOc,2).forEach(function(R){f[R.getKey()]=
R.Ya()});_.Lk(a,_.vOc,4).forEach(function(R){k[R.getKey()]=R.Ya()});_.H(a,7)&&(b.GFb=!0);_.H(a,8)&&(b.Xv=!0);_.H(a,9)&&(b.Mka=!0)}else a instanceof _.TRc?(b=a.request.Gc(),p="files/"+b+"/listCategoryMetadata",u=a.request.re(),a.pageToken&&(k.pageToken=a.pageToken),a.request.ki()&&(k.maxResults=a.request.ki()),k.fields="kind,nextPageToken,categoryMetadata",_.tM(this.H,[],[b],this.O,f)):a instanceof _.dM?(f["content-type"]="application/json",h="POST",b=a.Gc(),p="files/"+b+"/updateCategoryMetadata",
u=a.re(),t={categoryMetadata:a.RT().map(function(R){var da=_.Lk(R,_.DF,2).map(function(ra){return{id:ra.getId(),userId:ra.Dy(),setBooleanValue:_.H(ra,3),setTextValue:_.C(ra,4),setTextValues:_.Jd(ra,6),addTextValues:_.Jd(ra,5),setLongTextValue:_.C(ra,7),setSelectionValue:_.C(ra,8),setSelectionValues:_.Jd(ra,10),addSelectionValues:_.Jd(ra,9),setIntegerValue:_.C(ra,11),setIntegerValues:_.Jd(ra,13),addIntegerValues:_.Jd(ra,12),setUserValue:_.C(ra,14),setUserValues:_.Jd(ra,16),addUserValues:_.Jd(ra,15),
setDateStringValue:_.C(ra,17)}}),ta={categoryName:R.Om()};da.length?ta.categoryAttributeValueDeltas=da:_.Jd(R,4).length?ta.revertAttributeIds=_.Jd(R,4):_.H(R,3)&&(ta.removeCategory=_.H(R,3));return ta})},_.tM(this.H,[],[b],this.O,f)):a instanceof _.XL?(e=13,p=_.RK(_.SK(this.H))?"/v2/people/public":"/v2/people",k.person_id=a.Wl(),k["request_mask.include_container"]=["PROFILE","DOMAIN_PROFILE"],k["request_mask.include_field.paths"]=["person.metadata.best_display_name","person.photo","person.email"],
k["merged_person_source_options.included_profile_states"]=["DASHER_ADMIN_DISABLED"],_.RK(_.SK(this.H))||(k["core_id_params.enable_private_names"]=!0)):a instanceof _.ZRc?(e=12,p="/v1/categories/-/published",f["content-type"]="application/json",a.pageToken&&(k.pageToken=a.pageToken),a.request.ki()&&(k.maxResults=a.request.ki()),k.$outputDefaults=!0,k.languageCode=ON(_.SK(this.H))):a instanceof _.CF?(e=12,p="/v1/"+a.getName(),f["content-type"]="application/json",k.$outputDefaults=!0,k.languageCode=
ON(_.SK(this.H))):a instanceof _.zL?(f["content-type"]="application/json",h="POST",p="drives/"+a.zc()+"/changeCategoryReferences",u=a.re(),n=!0,k.fields=oO(this.H,[157],!0),t={},b=_.Lk(a,_.Bl,2),b.length&&(t.addCategoryReferences=b.map(function(R){return{category:R.Om()}})),a=_.Lk(a,_.Bl,3),a.length&&(t.removeCategoryReferences=a.map(function(R){return R.Om()}))):a instanceof _.zA?(p="workspaces/"+a.Wl()[0],k.fields="kind,id,title,createdDate,modifiedDate,state",u=a.re(),n=!0):a instanceof _.SRc?
(e=7,h="POST",p="/v2/activity:query",f["content-type"]="application/json",t={},t.pageSize=a.pageSize,a.pageToken&&(t.pageToken=a.pageToken),b="items/"+a.request.getId(),_.E(a.request,2,!1)?t.ancestorName=b:t.itemName=b,t.consolidationStrategy={legacy:{}}):a instanceof _.VRc?(e=8,h="POST",p="/v1/exports/"+a.H+":cancel"):a instanceof _.WRc?(e=8,p="/v1/exports/"+a.H):"undefined"!=typeof _.YRc&&a instanceof _.YRc?(p="changes",k.fields="kind,largestChangeId",_.PM(k),k.includeItemsFromAllDrives=!0,a.teamDriveId&&
(k.teamDriveId=a.teamDriveId),u=a.H,n=!0):a instanceof _.mC?(p="settings",u=_.Jd(a,3),k.namespace=b_c(u),u=a.re(),n=!0):a instanceof _.fSc?(p="workspaces",k.fields="kind,nextPageToken,items(kind,id,title,createdDate,modifiedDate,state)",a.pageToken&&(k.pageToken=a.pageToken),a.request.ki()&&(k.maxResults=a.request.ki()),k.q=hhd(a.request),(u=a.request.Zt())&&1==u.getType()&&(k.orderBy="title"),u=a.request.re(),n=!0):a instanceof _.YL?(p="changes/getRemainingCount",k.pageToken=_.C(a,2),_.sk(a,3)&&
(k.supportsTeamDrives=!0,k.includeItemsFromAllDrives=!0,k.teamDriveId=a.zc()),u=a.re()):a instanceof _.vL?(f["content-type"]="application/json",h="POST",p="files/"+a.Gc()+"/sendAccessRequest",t={},l=!0):_.TXc(a);n&&_.UXc(c,k);0!=e||l||u&&_.C(u,1)||_.gVc(this.zd,74438989);return _.VXc(this,e,p,k,f,h,u,t,U)};jhd.prototype.W=function(a,b){a=this.ka.Gl.H(a);b.expectedParentIds=a?a.Jj().join(","):[]};
var khd=c_c("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"),lhd=
c_c("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"),
mhd=c_c("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 nhd=function(a,b,c,d,e,f,h,k,l,n,p,t,u,z,B,F,I,M,U,R,da,ta,ra){this.bma=_.oi();this.Zca=new _.mVc;var Aa=new _.NVc(this.gI.bind(this),function(){return da("w8KrJc")}),va=new Ked(b.Gl),ka=new Bed(Aa);c=new ted(b,f,new oed(d,e,c),h,this.bma.promise,k,l,c,da);d=new Jed(b,n,p,t,u,d,e,F,k);this.O=new _.pVc(a,z);z=new jhd(b,a,k,ta);this.Wpa=new Zgd(k,a,B,F);this.H=C$c(a,new _.XWc(this.O,this.Zca,z,this.Wpa,I,M,U),M,B,R,b.Gl,this.Zca,this.bma.promise,U||void 0);this.bma.resolve(ra?ra:new _.yWc(new Led,
va,ka,this.H,Aa,c,d,a))};nhd.prototype.gI=function(){return _.eg(this.H,function(a){return a.gI()})};var xbd=function(a){var b=new Map,c=Date.now();_.bg(a.H,function(d,e){d=$1c(d);d.length&&b.set(e,d.map(function(f){return f?c-f:null}))});return b};
var ohd=function(a,b){var c=this;this.context=a;this.Ig=b;this.ha=null;this.UP=0;this.ka=this.active=!1;this.H=this.oa=null;this.V={};this.Fa=this.Ba=!1;this.zd=a.fl();this.W=_.oi();this.O=a.Mc;this.Ha=_.hL(this.O)||new _.VQc;b=_.PN(this.O);this.va=new _.vVc(_.wk(b,2,37500),_.wk(b,3,6E5));this.ma=a.HO;_.bg(A6c,function(d){c.V[d]=[]});AO(a.ij,["hVFf7","T8oKm","BNEDtc"],function(){c.log("Initializing: loaded from local dump");c.initialize()});AO(a.ij,["hVFf7","T8oKm","mrK8ic"],function(){c.log("Initializing: loaded from sdk backfill");
c.initialize()});AO(a.ij,["mrK8ic","BNEDtc"],function(){c.log("Updating: sdk backfill complete");c.pJ().Yf(_.vf)})};_.g=ohd.prototype;_.g.initialize=function(){var a=this;this.Ba||(this.Ba=!0,gP(this.context).addCallback(function(b){a.ma.initialize().lg(function(){a.ha=b;a.setActive(!0)},function(c){c&&E1c(a.context.Hf(),"drive.ds.sync.storage.LiveDumpUpdater","Error initializing dump storage",_.rL(c));a.log("Error initializing dump storage");a.vQ()})}))};
_.g.isInitialized=function(){return!!this.ha||this.ka};_.g.Pka=function(a){this.active&&(this.UP+=a,this.UP>_.wk(_.PN(this.O),1,500)&&this.update(3))};_.g.setActive=function(a){if(this.isInitialized()&&this.active!==a){var b=this.context;a&&(b.uP().gI()||0<b.jf.HJ.tla||b.Ij.$e()||b.Ul().$e())||((this.active=a)?(this.W.resolve(),this.H||this.pJ().Yf(_.vf)):(this.W=_.oi(),_.q.clearTimeout(this.oa)))}};_.g.vQ=function(){this.ka=!0};_.g.bTa=function(){return this.H?this.H.promise:_.ji()};
_.g.pJ=function(){var a=this;if(this.H)return this.H.promise;this.H=_.oi();_.pi(this.H.promise,function(){a.H=null});var b=this.zd.H(106021)||void 0;this.W.promise.then(function(){return w$c(a.context.YB)}).then(function(c){var d=!c;return a.ka?d:_.mi([phd(a,3,d,void 0,void 0,b),phd(a,0,d,void 0,!0,b),phd(a,1,d,void 0,!0,b),phd(a,5,d,void 0,!0,b),phd(a,6,d,void 0,!0,b)]).then(function(){return d},function(e){e=new _.Vb("Failed to update dump",void 0,_.rL(e));return _.ki(e)})},function(){return _.ki(Error("eg"))}).then(function(c){a.H.resolve(c);
b&&(c=L1c(b),_.A(c,2,!0),b.ek())},function(c){a.H.reject(c);b&&(c=L1c(b),_.A(c,2,!1),b.ek())});return this.H.promise};_.g.update=function(a,b){var c=this,d=new _.ri,e=this.zd.H(106021)||void 0;e&&(B1c(L1c(e),_.XM(_.PQc,a)),d.then(function(){var f=L1c(e);_.A(f,2,!0);e.ek()},function(){var f=L1c(e);_.A(f,2,!1);e.ek()}));this.W.promise.then(function(){return w$c(c.context.YB)}).then(function(f){f=!f;c.ka?d.callback():_.vi(phd(c,a,f,b,void 0,e),d)});return d};
var phd=function(a,b,c,d,e,f){var h=_.ha(a.V[b]);if(h){if(h.encrypt===c&&1<a.V[b].length)return h.og.xm();var k=new _.ri;_.ui(h.og,function(){_.vi(a.Dt(b,c,d,e,f),k)})}else k=a.Dt(b,c,d,e,f);var l={encrypt:c,og:k};a.V[b].push(l);_.ui(k,function(){_.wa(a.V[b],function(n){return l===n})});k.ef(function(n){a.ma.O.Xg()?a.vQ():n instanceof _.Vb&&(n=n.O||null,n instanceof _.NK&&"InvalidStateError"==n.getName()&&n.message&&-1<n.message.indexOf("The database connection is closing.")&&a.vQ());return null});
return k};
ohd.prototype.Dt=function(a,b,c,d,e){var f=this,h=new _.ri;this.W.promise.then(function(){if(3===a)_.vi(qhd(f,c||!1,b,e),h);else{switch(a){case 0:var k=f.context.dO;k=k.H?_.Uk(k.H):null;break;case 1:k=f.context.OX.Wp();break;case 5:k=rhd(f.context.DC);break;case 6:k=f.context.jf.uq;k=S6c(new R6c,S7c(k.H));break;default:h.Sd("Invalid data type to write to storage.");return}if(k){var l=_.Lk(_.PN(f.O),NN,11)[0].getKey();!l&&b?(f.log("Skipping dump update, encrypted and no key"),h.callback()):u9c(f.ma,
b?l:null,[k],e).then(h.callback,h.Sd,h)}else d?(f.log("Skipping dump update: "+a),h.callback()):h.Sd("Failed to get data to write to dump.")}});return h};
var qhd=function(a,b,c,d){_.q.clearTimeout(a.oa);a.oa=_.q.setTimeout((0,_.v)(a.Ja,a),a.va.Ya());if(b&&0===a.UP)return _.xi();a.UP=0;var e=_.Lk(_.PN(a.O),NN,11)[0].getKey();if(!e&&c)return a.log("Skipping dump update, encrypted and no key"),_.xi();var f=[];_.bg(v5c,function(k){0<k&&(k=shd(a,k),k.length&&f.push(u9c(a.ma,c?e:null,k,d)))});var h=new _.ri;_.mi(f).then(function(){a.Fa&&a.context.YB.set(u$c,!0);h.callback()},h.Sd,h);return h};ohd.prototype.Ja=function(){_.PG(this.va);this.update(3,!0)};
var shd=function(a,b){switch(b){case 1:return[thd(a)];case 2:var c=(b=a.context.jf.Nv.H)?b.py():[];c=uhd(a,_.Yc(CZc(c)));a.log("Exporting "+c.length+" secondary dump items.");c.length>_.wk(_.PN(a.O),5,2E4)&&(b&&p7c(b),c=[]);c=p5c(new mO,vhd(c));var d=a.context.jf.Nv;a=new NZc;(d=d.H)&&d.NL&&(d=d.py(),_.A(a,3,d.length));c=_.y(c,11,a);c=u5c(c,2);b&&s5c(c,b.RP());return[c];case 3:return whd(a);case 4:return xhd(a);default:throw new _.Vb("Unsupported CacheType");}},thd=function(a){for(var b={},c=[],d=
D7c(a.context.jf.Nv,!0),e=!0,f=0;f<d.length;f++){var h=d[f],k=h.py(),l=uhd(a,BZc(k));k=l.length;var n=0<k?l[k-1]:null;_.Ka(l,function(p){b[p.getId()]=p});if(0<k||h.H)l=m5c(new lO,h.ud()),h.H||(_.A(l,2,k),_.y(l,3,n),e=!1),c.push(l)}d=_.Yc(b);a.log("Exporting "+d.length+" initial dump items.");return s5c(u5c(r5c(p5c(q5c(t5c((new mO).yt(a.context.mn()),_.QM(a.Ig)),a.ha.w_(null)),vhd(d)),c),1),!e)},whd=function(a){var b=[],c=a.ha;a.context.jf.Nv.fU().forEach(function(d){var e=c.w_(d.zc());if(e){var f=
uhd(a,BZc(d.py()));a.log("Exporting "+f.length+" TD dump items for: "+d.zc());e=s5c(u5c(q5c(p5c(new mO,vhd(f)),e),3),d.RP(d.ud()));d=m5c(new lO,d.ud());r5c(e,[d]);b.push(e)}});return b},xhd=function(a){var b={},c=[];a.context.jf.fU().forEach(function(d){1===d.WK()&&null==_.H(d.ud(),6)&&(BZc(d.py()).forEach(function(e){b[e.getId()]=e}),d=n5c(m5c(new lO,new _.Oe),d.ud()),c.push(d))});return[s5c(u5c(r5c(p5c(new mO,vhd(Object.values(b))),c),4),!1)]},uhd=function(a,b){b=cZc(b);_.H(a.O,67)&&(b=yhd(b));
_.XK(a.O)&&(_.E(a.Ha,9,!1)?j8c(a.context.jf.uq,b)&&(_.gVc(a.zd,179490965),a.log("b/179490965 Unexpected people data when writing to disk cache.","warning"),b=h8c(a.context.jf.uq,b)):b=h8c(a.context.jf.uq,b));return b.filter(function(c){return 4!==DN(c)})},yhd=function(a){var b=[];a=_.m(a);for(var c=a.next();!c.done;c=a.next())c=c.value,SYc(c)?(c=c.clone(),CYc(c,RYc),b.push(c)):b.push(c);return b},vhd=function(a){return a.map(function(b){return _.Uk(b)})};
ohd.prototype.log=function(a,b){this.context.Hf().log("drive.ds.sync.storage.LiveDumpUpdater",a,void 0===b?"info":b)};ohd.prototype.KAa=function(){this.Fa=!0};
var zhd=function(){};_.g=zhd.prototype;_.g.setActive=function(){};_.g.vQ=function(){};_.g.update=function(){return _.xi()};_.g.bTa=function(){return _.ji()};_.g.pJ=function(){return _.ji()};_.g.Pka=function(){};_.g.KAa=function(){};
var JN=function(a,b,c,d){_.Q.call(this);var e=this;this.Aa=a;this.ir=c;this.rootId=null;this.Fa=!0;this.ha=null;this.oa=[];this.Ba=d||new _.fUc;this.Mc=b.clone();this.Ig=new _.oUc(this.Mc);this.Hm=new h6c(_.QM(this.Ig),this.Mc);Ahd(this);this.EV=new _.ro;this.ob=_.q.setTimeout(function(){e.Hf().info("drive.ds.sync.ThinContext","Page stable timed out.");e.EV.resolve();e.fl().O(106020)},1E4);this.R3=new _.ri;this.Ij=new _.SUc(_.KM(this.Mc),_.E(this.Mc.Of(),52,!1));this.connectionState=new _.LUc(_.KM(this.Mc)?
3:1,!_.E(this.Mc.Of(),52,!1));this.zd=_.hVc(this.Mc,this.Ij,this.connectionState,this.Ba,this.EV.promise,this.ir);this.$ca=new E6c(this.zd);this.nO=new _.ri;Bhd(this)};_.N(JN,_.Q);JN.prototype.getEnvironment=function(){return this.ir};JN.prototype.kQ=function(){this.Hf().info("drive.ds.sync.ThinContext","Notified of page stable.");_.q.clearTimeout(this.ob);this.EV.resolve()};var Bhd=function(a){var b=function(){a.At().Yf(_.vf)},c=a.Aa;(c=c&&_.Rb(c,_.el))?_.te(c,"A",b):_.UQc()||_.te(_.q,"unload",b)};
JN.prototype.At=function(){this.zd.O(106005);this.zd.Mw();var a=this.oa.map(function(b){return b()});_.pa(this.oa);return _.ni(a).then()};var Chd=function(a,b){a.oa.push(b)};_.g=JN.prototype;_.g.Hf=function(){return this.Ba};_.g.yt=function(a,b){"string"===typeof a&&null===this.rootId&&(this.rootId=a,this.R3.callback(a),a.length&&this.U0a(a,b||null))};_.g.U0a=function(){};_.g.mn=function(){return this.rootId};_.g.fl=function(){return this.zd};
var Dhd=function(a){if(!a.ha)throw Error("fg");return a.ha},Ehd=function(a,b){a.ha=b};JN.prototype.iA=function(){return this.Fa||this.connectionState.isConnected()};JN.prototype.Ul=function(){return this.connectionState};JN.prototype.ZIb=function(a){this.nO.callback(a)};
var Ahd=function(a){var b=a.Mc.Of();0===_.Jd(b,30).length&&(a.log("No user pref namespaces provided, user prefs disabled."),_.A(b,19,3));if(!_.G(b,37,""))throw Error("gg");_.C(b,57)||(a.log("No root URI provided; using prod default."),_.A(b,57,"https://clients6.google.com"));if(_.E(_.PN(a.Mc),9,!1))if(b=_.Lk(_.PN(a.Mc),NN,11),0<b.length){if(!_.C(b[0],1)||!b[0].getKey()&&!_.KM(a.Mc)&&!_.E(a.Mc,10,!1))throw Error("hg");}else _.A(_.PN(a.Mc),9,!1),a.log("Disabling IndexedDB support, missing configuration.");
if(!_.E(_.PN(a.Mc),9,!1)&&(_.KM(a.Mc)||_.E(a.Mc,10,!1)))throw Error("ig");var c=_.SK(a.Mc);b=!(!c||!_.RK(c));c=c&&_.IM(c)||"";if(!b&&!c)throw Error("jg");b&&_.Dk(a.Mc,44);_.Lk(a.Mc,_.Oe,44).forEach(function(d){try{l6c(a.Hm,d)}catch(e){if(e instanceof _.Vb&&(d=e.Kg)&&3===d.Ur())throw Error("kg");throw e;}})};JN.prototype.DH=function(a){this.dispatchEvent(new _.Wb(new _.Vb(void 0,a)))};JN.prototype.log=function(a){this.Hf().info("drive.ds.sync.ThinContext",a)};
var Fhd=function(a,b){this.H=a;this.Ke=b};
var Ghd=new Set([5,4,1,6,2]),Hhd=new Map([[3,1],[7,1],[2,2],[4,2],[5,3],[1,4],[6,5]]),Ihd=function(a,b,c){_.Q.call(this);this.ha=a;this.V=b;this.W=c;this.iE=new Map;this.O=new Map;this.status=6;this.H=null};_.N(Ihd,_.Q);
Ihd.prototype.pO=function(a,b,c,d){var e=this;if((d=void 0===d?!1:d)&&!c.length){var f=new Set;a.forEach(function(p){(p=(p=p.getKey())&&_.lp(p))&&f.add(p)});[].concat(_.Wc(f.values())).forEach(function(p){return void c.push(p)})}if(c.length){var h=Ghd.has(b),k=new Map;c.forEach(function(p){k.set(p,new Map)});a.forEach(function(p){var t=p.getKey(),u=t&&_.lp(t);t=t&&_.C(t,2);u=k.get(u);t&&u&&u.set(t,Jhd(p))});var l=0,n=0;[].concat(_.Wc(k.keys())).forEach(function(p){var t=k.get(p),u=e.iE.get(p);u?h&&
(t.forEach(function(z){var B=z.getKey();(B=u.get(B&&_.C(B,2)))&&_.Tk(z,B)||l++}),[].concat(_.Wc(u.values())).forEach(function(z){z=z.getKey();t.has(_.C(z,2))||n++}),e.iE.set(p,t),e.O.set(p,b)):(l+=t.size,e.iE.set(p,t),e.O.set(p,b))});this.ha.info("drive.ds.sync.userprefs.InMemoryUserPrefsCache","Loaded "+l+"/"+a.length+" user prefs from "+b+(n?" (removed "+n+")":""));if(1!==this.status||l){if(h||d)this.status=1,BO(this.V,"px2C2c");BO(this.V,"rkYxSd")}(l||n)&&Khd(this,!h)}};
Ihd.prototype.OB=function(){return 0<this.iE.size};var Khd=function(a,b){b||a.H||(a.H=_.q.setTimeout(function(){_.q.clearTimeout(a.H);a.H=null;a.W.update(5)},1E3));a.dispatchEvent(new _.Fi("WPi0i"))};Ihd.prototype.put=function(a){var b=a.getKey(),c=b&&_.lp(b);b=b&&_.C(b,2);if(c&&b&&(c=this.iE.get(c))){var d=c.get(b);a=Jhd(a);d&&_.Tk(a,d)||(c.set(b,a),Khd(this))}};Ihd.prototype.remove=function(a){var b=a&&_.lp(a);a=a&&_.C(a,2);b&&a&&(b=this.iE.get(b))&&b.delete(a)&&Khd(this)};
var rhd=function(a,b){var c=[];(b||[].concat(_.Wc(a.iE.keys()))).forEach(function(e){(e=a.iE.get(e))&&[].concat(_.Wc(e.values())).forEach(function(f){return void c.push(f.clone())})});b=b?b.filter(function(e){return a.iE.has(e)}):[].concat(_.Wc(a.iE.keys()));var d=new i2c;_.kb(d,1,c);_.A(d,2,b||[]);return d};
Ihd.prototype.nF=function(a){var b=this,c=rhd(this,a),d=new _.mp;d.Ac(this.status);_.Exa(d,_.Lk(c,_.kp,1));_.y(d,4,c);var e=0;a.forEach(function(f){f=b.O.get(f);Hhd.has(f)&&Infinity>Hhd.get(f)&&(e=f)});return new Fhd(d,e)};var Jhd=function(a){a=a.clone();a.oh()||a.Kb("");return a};
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var Lhd=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},Nhd=function(a,b){return Mhd(a[b])+(Mhd(a[b+1])<<8)+(Mhd(a[b+2])<<16)+(Mhd(a[b+3])<<24)},Mhd=function(a){return 127<a?a-256:a};
var LN=function(a,b,c,d,e,f){JN.call(this,a,b,c,d);var h=this;this.Ta=_.oi();this.kv=new t7c;this.W=null;this.O=_.oi();this.Ha=new _.ri;this.T3=null;this.ada=new z8c;this.V=null;this.$a=_.oi();this.va=new _.ri;this.sE=new d9c;this.hy=new H8c;this.zea=new h7c;this.W8=_.oi();this.Ja=!1;this.ka=_.oi();this.H={};this.ma=null;this.Ib=new _.pe;this.La(this.Ib);this.ij=e?e:new g7c(this.Hf());this.fl().W.O=this.ij;this.IJ=_.E(_.PN(b),9,!1)&&f_c()?Ohd(this,b):null;this.bw=new a6c(ON(_.SK(b)));this.YB=Phd(this,
this.IJ);this.HO=Qhd(this,this.IJ,b);this.Lr=Rhd(this);this.jf=new kP(this,this.Ig);(a=(a=_.D(this.Mc,_.Cl,12))&&a.getId())&&this.yt(a,6);this.dO=new Gbd(this.Mc,this.jf.uq,this.ij,this.Hf(),this.Lr);this.OX=new Lbd(this.Hf(),this.ij,this.Lr);this.DC=new Ihd(this.Hf(),this.ij,this.Lr);this.MG=new i7c(this.Yl(),this.Hf(),function(k){return void h.DH(k)});this.NG=_.E(this.Mc.Of(),52,!1)?new _.yVc(this.Ul(),this.Yl(),this.Hf()):null;AO(this.ij,["mrK8ic"],function(){h.$a.promise.then(function(){pcd(h,
h.V)})});this.tJa=new $8c(this.Mc);this.qz=new _.GVc(this.Mc,this.jf.Gl);this.Xpa=new led(this);this.S3=new D8c(this.O.promise,this.Yl());this.kb=new F8c(this.Yl(),this.S3);this.bda=new W8c(this.O.promise,this.Yl(),this.Hf(),this.Mc);this.Pa=new nhd(this.Mc,this.jf,this.DH.bind(this),this.S3,this.kb,this.Lr,this.ada,this.Ig,this.mn.bind(this),this.Xpa,this.OX,this.DC,this.bda,this.sE,this.Hf(),this.tJa,this.qz,this.MG,this.NG,this.Ij,this.klb.bind(this),this.fl(),f);this.Ta.resolve(this.Pa);this.Q2a=
new Vdd(this);AO(this.ij,["BNEDtc"],function(){return h.ka.resolve()});Chd(this,function(){h.Lr.vQ();return _.ji()})};_.N(LN,JN);
var Ohd=function(a,b){var c=_.IM(_.SK(b)),d=_.JM(b),e=function(){},f=_.Lk(_.PN(b),NN,11);f=f[0]&&_.C(f[0],1);var h=new P9c(c,d,_.wk(_.PN(b),10,0)||0,f||"",_.QM(a.Ig));_.KM(b)?c=j$c(c,d).then(function(l){return l?l:h}):_.E(b,10,!1)&&0<_.wk(_.PN(b),8,432E6)?(b=Shd(a,c),c=j$c(c,d,b).then(function(l){return l&&(e=function(n){return n.Uk(h).Yf(function(){return null})},!l.ha)?l:h})):c=_.ji(h);var k=new PO(c,a.Hf(),a.fl());k.initialize().then(function(){return e(k)},function(){return null});return k},Shd=
function(a,b){var c=_.wk(_.PN(a.Mc),8,432E6);if(!_.KM(a.Mc)&&0<c){a=Math;var d=a.abs;b=_.pla(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+=Nhd(b,e),h.b+=Nhd(b,e+4),h.c+=Nhd(b,e+8),Lhd(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+=Nhd(b,e+4);h.a+=Nhd(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+=Nhd(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=Lhd(h);return d.call(a,b)%c}};LN.prototype.Bx=function(a){var b=this;return this.IJ?this.IJ.Xg()?_.ki(Error("lg`"+W9c(this.IJ))):w$c(this.YB).then(function(c){var d=b.IJ,e=[];e.push(b.Lr.bTa());e.push(a?d.Uk():f$c(d));if(a===c)return _.mi(e).then(function(){return!1});!1===a&&(e.push(V9c(d)),(c=b.mn())&&e.push(b.YB.yt(c)));return _.mi(e).then(function(){return b.YB.Bx(a)},function(){return!1})}):_.ki(Error("mg"))};
var Qhd=function(a,b,c){var d=null;b&&(d=new n9c(b,c,function(e){a.DH(e)},a.fl()),d.initialize());return d},Phd=function(a,b){var c=new v$c(b||void 0);c.mn().then(function(d){d&&a.yt(d,5)});b&&(w$c(c).then(function(d){a.Ij.Bx(d)}),_.mi([b.initialize(),a.EV.promise]).then(function(){Thd(a,c)},function(){}));return c},Thd=function(a,b){z$c(b).then(function(c){(!c||c<Date.now()-864E5)&&m$c(_.IM(_.SK(a.Mc)),_.JM(a.Mc),a.Hf()).then(function(d){d&&(d=Date.now(),b.set(t$c,d))},function(){})})},Rhd=function(a){if(!a.HO)return new zhd;
var b=new ohd(a,a.Ig);a.Ib.listen(a.Ij,"Ab",function(c){return void b.setActive(!c.$e())});a.Ib.listen(a.Ul(),[].concat(_.Wc(Object.values(_.$K))),function(){return void b.setActive(a.Ul().isConnected())});return b};LN.prototype.jW=function(a){this.T3=a;this.Ha.callback(a)};var gP=function(a){return a.Ha.xm()},wbd=function(a){return a.IJ?a.IJ.Xg():null},Uhd=function(a,b){a.ij.H("NSockf")?BO(a.ij,b):AO(a.ij,["NSockf"],function(){BO(a.ij,b)})};
LN.prototype.U0a=function(a,b){this.log("Setting Root ID: "+a);a&&(this.kv.yt(a),this.Hm.yt(a),6!==b&&1!==b||this.YB.yt(a),Uhd(this,"jroI5d"))};LN.prototype.gSa=function(){return this.va.xm()};var pcd=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.va.rf()||(a.va.callback(b),Uhd(a,"T8oKm")))},Qbd=function(a){if(!a.W)throw Error("ng");return a.W};_.g=LN.prototype;_.g.uP=function(){return this.Pa};_.g.Yl=function(){return this.Ta.promise.then(function(a){return a.bma.promise})};
_.g.JAa=function(){this.Ja||(this.Ja=!0,this.W8.resolve(),BO(this.ij,"aU7Ts"))};_.g.iA=function(){throw Error("og");};_.g.klb=function(a){this.dispatchEvent(a)};var Vhd=function(a,b){var c=_.hL(a.Mc);c&&!_.E(c,1,!1)&&Bdd(a.jf,b)},Whd=function(a,b,c){a.H[b]=c},rbd=function(a){a.ma||(a.ma=new N8c(a.O.promise,a.Yl(),a.Hf()));return a.ma};
var oP=function(a,b,c){_.Q.call(this);var d=this;this.Ba=a;this.kb=b;this.oa=new _.ri;this.va=this.channel=this.clientId=null;c.then(function(e){return Xhd(d,e)})};_.N(oP,_.Q);var Xhd=function(a,b){a.clientId=b.clientId;a.channel=b.channel;a.va=b.H;sO(a.channel,a.Ba,function(c){c=z6c(c);a.Nia(c.H,!(!c.data||!c.Xb),c.data,c.error)});a.log("Service initialized: "+a.Ba);a.oa.callback()};oP.prototype.Nia=function(){};
oP.prototype.send=function(a,b,c,d){var e=this,f=new _.ri;this.oa.addCallback(function(){var h=e.channel;tO(h,e.Ba,v6c(new u6c(e.clientId,a,b,d),h.W),function(k){return void Yhd(k,a,f,c||function(){})})});return f};var Yhd=function(a,b,c,d){a=z6c(a);a.data?c.callback(d(a.data,a.Xb)):(a.error?d=a.error:(d=new _.Ub,_.dL(d,2),_.eL(d,6),_.A(d,21,"Worker["+b+"]: An invalid response was received")),c.Sd(new _.Vb(void 0,d)))};oP.prototype.log=function(a){this.va&&this.va.info(this.kb,a)};
var Zhd=function(a,b,c,d){this.clientId=a;this.channel=b;this.H=c;this.O=d};
var pP=function(a,b){_.P.call(this);this.V=a;this.va=b;this.Ja=this.$S()};_.N(pP,_.P);pP.prototype.registerService=function(a){sO(a,this.V,(0,_.v)(this.bu,this))};
pP.prototype.bu=function(a){var b=this;a=w6c(a);var c=a.Xb,d=this.Ja[a.method],e=null;if(d)try{var f=d(a);if(f instanceof x6c)return y6c(f,c);if(f.then)return f.then(function(h){return y6c(h,c)},function(h){h=_.fL(h);return y6c(b.Me(void 0,h),c)})}catch(h){e=_.rL(h)}f=new _.Ub;_.dL(f,2);_.eL(f,3);_.Wq(f,this.V+":"+a.method+": "+(e?e.message:"unsupported method"));e&&e.stack&&_.A(f,20,e.stack);return y6c(this.Me(void 0,f),c)};
pP.prototype.Me=function(a,b,c){if(a&&!b)return new x6c(a,void 0,c);a=_.fL(b);return new x6c(void 0,a,c)};pP.prototype.update=function(a,b,c,d){(a=this.va.channels[a]||null)&&tO(a,this.V,y6c(this.Me(c,d,b),a.W))};
var $hd=function(){this.channels={};this.H=this.O=this.V=0},aid=function(a,b){var c=a.V++;a.channels[c]=b;a.O++;a.H=Math.max(a.H,_.fg(a.channels));return c},bid=function(a,b){var c=a.channels[b];return c?(delete a.channels[b],c):null};
var cid=function(a,b){pP.call(this,"LRM",b);this.context=a;this.H={};a=this.context;a.W=this;a.O.resolve(this);this.ha=this.context.jf;this.O=this.context.bda;this.W=rbd(this.context);this.ka=this.context.S3};_.N(cid,pP);
cid.prototype.$S=function(){var a=this,b={};return b["4.1"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.Oe);return a.Eh(d,c)},b["4.9"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.LK);return a.Eh(d,c)},b["4.2"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.fp);return a.Eh(d,c)},b["4.10"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.op);return a.Eh(d,c)},b["4.3"]=function(c){var d=c.clientId+":"+c.requestId;
c=IN(c.args[0],!!c.Xb,_.Oe);return a.Hj(d,c)},b["4.11"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.LK);return a.Hj(d,c)},b["4.4"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.fp);return a.Hj(d,c)},b["4.12"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.op);return a.Hj(d,c)},b["4.5"]=function(c){var d=c.clientId+":"+c.requestId,e=IN(c.args[0],!!c.Xb,_.fp);c=IN(c.args[1],!!c.Xb,_.fp);return a.dX(d,e,c)},b["4.6"]=function(c){var d=
c.clientId+":"+c.requestId,e=IN(c.args[0],!!c.Xb,_.op);c=IN(c.args[1],!!c.Xb,_.op);return a.dX(d,e,c)},b["4.7"]=function(c){return a.gE(c)},b["4.8"]=function(c){return a.gE(c)},b["4.13"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.qp);return a.Eh(d,c)},b["4.14"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.zA);return a.Eh(d,c)},b["4.15"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.qp);return a.Hj(d,c)},b["4.16"]=function(c){var d=
c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.zA);return a.Hj(d,c)},b["4.18"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.JF);return a.Eh(d,c)},b["4.19"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.JF);return a.Hj(d,c)},b["4.22"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.np);return a.Eh(d,c)},b["4.23"]=function(c){var d=c.clientId+":"+c.requestId;c=IN(c.args[0],!!c.Xb,_.np);return a.Hj(d,c)},b["4.21"]=function(c){c=
a.H[c.clientId+":"+c.requestId].query;if(c instanceof _.np){var d=a.W;x8c(d,d.getKey(c)).refresh()}return a.Me([])},b};cid.prototype.Eh=function(a,b){var c=this,d=new _.ro;this.H[a]={query:b,bOb:d.promise};b instanceof _.qp?d.resolve(this.O.Eh(a,b)):b instanceof _.zA?d.resolve(v8c(this.O,a,b)):b instanceof _.np?d.resolve(this.W.Eh(a,b)):b instanceof _.JF?d.resolve(this.ka.Eh(a,b)):d.resolve(this.ha.Eh(a,b));return d.promise.then(function(){return c.Me([])})};
cid.prototype.Hj=function(a,b){did(this,a,b);return this.Me([])};var did=function(a,b,c){delete a.H[b];c instanceof _.qp?a.O.Hj(b,c):c instanceof _.zA?w8c(a.O,b,c):c instanceof _.np?a.W.Hj(b,c):c instanceof _.JF?a.ka.Hj(b,c):a.ha.Hj(b,c)};_.g=cid.prototype;_.g.dX=function(a,b,c){did(this,a,b);return this.Eh(a,c)};
_.g.gE=function(a){var b=a.clientId+":"+a.requestId,c=this.H[b].query;c.Th(a.args[0]);c instanceof _.qp?this.O.Eh(b,c):c instanceof _.zA?v8c(this.O,b,c):c instanceof _.np?this.W.Eh(b,c):c instanceof _.JF?this.ka.Eh(b,c):this.ha.Eh(b,c);return this.Me([])};_.g.CM=function(a,b){var c=this,d=this.H[a];if(d){a=a.split(":");var e=_.dh(a[0]),f=a[1];d.bOb.then(function(h){b instanceof _.eN||b instanceof _.bN?c.update(e,f,[b.response,b.pageToken,b.H,b.Ke,h]):c.update(e,f,[b,h])})}};
_.g.OV=function(a,b){if(this.H[a]){var c=a.split(":");a=_.dh(c[0]);c=c[1];var d=b.error;d.Yca(b.H);this.update(a,c,void 0,d)}};_.g.DA=function(a){this.H[a]&&(a=a.split(":"),this.update(_.dh(a[0]),a[1],["cacheRefresh"]))};_.g.Y6=function(){};_.g.fia=function(a){if(!this.H[a])throw Error("Qf`"+a);return this.H[a].query};var eid=function(a,b){_.bg(a.H,function(c,d){_.dh(d.split(":")[0])===b&&did(a,d,c.query)})};
var fid=function(a,b,c){oP.call(this,"LRM","drive.ds.sync.cache.LiveRequestManagerProxy",a);this.context=b;this.H=c;this.O={}};_.N(fid,oP);fid.prototype.fua=function(a){var b=this;a=new abd(this.context.Hm,this.context.nO,this.context.Hf(),this.context.Mc,function(c,d){return b.gE(c,d)},a);gid(this,a);return a};fid.prototype.iua=function(a){var b=this;a=new hbd(this.context.Hm,this.context.nO,this.context.Hf(),function(c,d){return b.gE(c,d)},a,this.context.Mc);gid(this,a);return a};
var gid=function(a,b){a.Eh(b);_.ge(b,function(){a.Hj(b);a.send("4.3",[b.ud()],void 0,b.li())});a.send("4.1",[b.ud()],void 0,b.li())};_.g=fid.prototype;_.g.cua=function(a){var b=this,c=new ebd(this.context.Mc,this.context.Hm,this.context.Hf(),this.context.R3,this.dX.bind(this),a);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.4",[c.ud()],void 0,c.li())});this.send("4.2",[c.ud()],void 0,c.li());return c};
_.g.lua=function(a){var b=this,c=new lbd(a,this,this.context.Mc);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.11",[c.ud()],void 0,c.li())});this.send("4.9",[c.ud()],void 0,c.li());return c};_.g.mua=function(a){var b=this,c=new mbd(this.context,this,a);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.12",[c.ud()],void 0,c.li())});this.send("4.10",[c.ud()],void 0,c.li());return c};
_.g.pua=function(a){var b=this,c=new pbd(this.context,a,this);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.15",[c.ud()],void 0,c.li())});this.send("4.13",[c.ud()],void 0,c.li());return c};_.g.qua=function(a){var b=this,c=new dbd(this.context,a);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.16",[c.ud()],void 0,c.li())});this.send("4.14",[c.ud()],void 0,c.li());return c};
_.g.jua=function(a){var b=this,c=new kbd(this.context,a,function(){b.send("4.21",[],void 0,c.li())});this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.23",[c.ud()],void 0,c.li())});this.send("4.22",[c.ud()],void 0,c.li());return c};_.g.$ta=function(a){var b=this,c=new Zad(this.context.Ij,this.context.Ul(),this.context.Hf(),function(d,e){return b.gE(d,e)},a);this.Eh(c);_.ge(c,function(){b.Hj(c);b.send("4.19",[c.ud()],void 0,c.li())});this.send("4.18",[c.ud()],void 0,c.li());return c};
_.g.Eh=function(a){this.H.create(a.li(),a.ud());this.O[a.li()]=a};_.g.Hj=function(a){uO(this.H,a.li(),4);delete this.O[a.li()]};_.g.dX=function(a,b,c){if(b instanceof _.fp&&c instanceof _.fp)this.send("4.5",[b,c],void 0,a);else if(b instanceof _.op&&c instanceof _.op)this.send("4.6",[b,c],void 0,a);else throw Error("pg");};
_.g.gE=function(a,b){if(!this.O[a])throw Error("Qf`"+a);var c=this.O[a];if(c.ud()instanceof _.Oe)var d="4.7";else if(c.ud()instanceof _.LK)d="4.8";else if(c.ud()instanceof _.JF)d="4.20";else if(c.ud()instanceof _.qp)d="4.17";else throw Error("qg");c.ud().Th(b);this.send(d,[b],void 0,a)};
_.g.Nia=function(a,b,c,d){if(a=this.O[a]){var e,f=0;if(d)b=new vO(d,d.N4()),a.cA(b),uO(this.H,a.li(),3);else if(c&&c[f]){d=c[f++];if("cacheRefresh"===d){a.qU();return}var h=a.ud();if(h instanceof _.Oe||h instanceof _.LK)h instanceof _.Oe&&_.QL(h)?e=IN(d,b,_.ZM):e=IN(d,b,_.BA);else if(h instanceof _.fp||h instanceof _.op)b?(e=new _.YM,c3c(e,function(k){return new _.Cl(JSON.parse(k))},d)):e=d;else if(h instanceof _.JF)e=new _.bN(IN(d,b,$N),c[f++],c[f++],c[f++]);else if(h instanceof _.qp)e=new _.eN(IN(d,
b,yO),c[f++],c[f++],c[f++]);else if(h instanceof _.zA)e=IN(d,b,_.$M);else if(h instanceof _.np)e=IN(d,b,cO);else throw Error("rg");}e&&(b=f,c&&"boolean"===typeof c[b]&&F6c(this.H,a.li(),!!c[b]),I6c(this.H,a.li(),e),a.update(e))}};
var qP=function(){_.Q.apply(this,arguments);this.commands=new _.Em;this.ha=this.active=this.Fo=!1};_.N(qP,_.Q);qP.prototype.initialize=function(){this.Fo||(this.Fo=!0,this.V(),this.setActive(!0))};qP.prototype.V=function(){};qP.prototype.setActive=function(a){this.active=a;hid(this)};var hid=function(a){if(a.active&&!a.ha){var b=_.Fm(a.commands);if(b)if(a.va()){do a.ka(b);while(b=_.Fm(a.commands))}else a.ha=!0,_.pi(a.Ba(b),function(){a.ha=!1;hid(a)})}};qP.prototype.ka=function(){};
qP.prototype.Ba=function(){};qP.prototype.va=function(){return!0};qP.prototype.enqueue=function(a){try{var b=new _.ri;this.commands.enqueue(new iid(a,b));hid(this);return b}catch(c){return _.zi(_.rL(c))}};var iid=function(a,b){this.H=a;this.og=b};iid.prototype.getCommand=function(){return this.H};iid.prototype.cF=function(){return this.og};
var lid=function(a){qP.call(this);var b=this;this.context=a;this.O=null;this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.context,"VMiG2e",function(){return void jid(b)});this.H=this.context.jf.uq;_.XK(this.context.Mc)&&this.Ic.listen(this.H,"Kb",this.W);var c=a.ij;AO(c,["toquGd"],function(){return b.initialize()});var d=["NSockf"];1!==_.vk(a.Mc.Of(),17,1)&&(d.push("iuEtc"),AO(c,["mrK8ic"],function(){BO(c,"iuEtc")}));AO(c,d,function(){return kid(b)})};_.N(lid,qP);lid.prototype.V=function(){mid(this)};
var kid=function(a){if(1===a.context.dO.yg().Cb())return Promise.resolve();var b=_.cf(_.df(new _.bf,!0),301);b=_.UK(new _.TK,b);return a.refresh(b).then(null,function(c){c=_.fL(c);_.A(c,21,"Initial account request failed.");a.context.DH(c)})},jid=function(a){var b=_.cf(new _.bf,304);b=_.UK(new _.TK,b);a.refresh(b).then(null,function(){})};
lid.prototype.refresh=function(a,b){var c=this;this.O||(this.O=_.pi(this.context.Yl().then(function(d){return d.Qe(a,b)}).then(function(d){var e=d.yg(),f=e.getUser();if(f&&!1===_.nl(f))d=_.gL(_.SK(c.context.Mc)),d=Error("sg`"+d+"`"+_.IF(f)),_.Ta(d),_.gVc(c.context.fl(),73301807),d=Promise.reject(d);else{f=c.context.dO;var h=0===f.Ue()?1:6;_.XK(c.context.Mc)&&b8c(c.H,e);h=Hbd(f,e,h);(e=e.getMetadata())&&c.context.yt(_.C(e,2),1);(d=_.C(d,4))&&pcd(c.context,d,!0);h&&c.dispatchEvent(new _.Fi("WPi0i"));
d=Promise.resolve(new _.dN(f.yg(),f.Ue(),!1))}return d}).then(function(d){return d},function(d){d=_.fL(d);_.A(d,5,1);return Promise.reject(new _.Vb("Error fetching account from server.",d))}),function(){c.O=null}));return this.O};
lid.prototype.ka=function(a){var b=a.getCommand();if(b.H){var c={};b.cC&&(c.cC=b.cC);this.refresh(b.request,c).then(function(e){return a.cF().callback(e)},function(e){return void a.cF().Sd(e)})}else if(b=this.context.dO,c=b.yg(),_.XK(this.context.Mc)){c=c.yg();var d=c.getUser();d=f8c(this.H,_.IF(d));b8c(this.H,c);Hbd(b,c,b.Ue())&&this.dispatchEvent(new _.Fi("WPi0i"));a.cF().callback(new _.dN(b.yg(),b.Ue(),d))}else c.Cb(),b=new _.dN(c,b.Ue(),!0),a.cF().callback(b)};
var mid=function(a){var b=a.context.Mc.Of();_.q.setTimeout(function(){var c=_.cf(new _.bf,306);c=_.UK(new _.TK,c);a.refresh(c).then(function(){mid(a)},function(){mid(a)})},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,3,72E5))};lid.prototype.W=function(a){var b=this.context.dO,c=b.yg().yg();c&&a.getPeople().find(function(d){return _.C(d,1)===_.IF(c.getUser())})&&(b8c(this.H,c),Hbd(b,c,b.Ue())&&this.dispatchEvent(new _.Fi("WPi0i")))};var nid=function(a,b,c){this.request=a;this.H=!!b;this.cC=c||null};
var pid=function(a){qP.call(this);this.context=a;this.oa=this.W=!1;this.O=null;this.H=1;this.ma=0;this.error=null;this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.context.OX,"Qb",_.Wa(this.dispatchEvent,new _.Fi("Qb",this)));oid(this)};_.N(pid,qP);
var oid=function(a){var b=a.context.ij;AO(b,["nVUlO"],function(){a.oa=!0;a.setActive(!0)});if(!_.KM(a.context.Mc)){var c=_.vk(a.context.Mc.Of(),18,1);AO(b,["NSockf"],function(){1===c?qid(a):a.setActive(!0)});2===c&&AO(b,["mrK8ic"],function(){a.W||qid(a)})}},qid=function(a){var b=new _.bf;_.df(b,!0);_.cf(b,301);var c=new _.TL;_.C1c(c,b);_.A(c,1,1);a.refresh(c).Yf(function(){return null})};
pid.prototype.refresh=function(a,b){var c=this;_.q.clearTimeout(this.ma);this.ma=0;var d=_.oi();this.O=d.promise;_.pi(this.O,function(){c.O=null;rid(c)});var e=this.H;this.H=a.getType()||e;var f=!this.W;this.W=!0;var h=new _.TL;_.A(h,1,this.H);_.C1c(h,a.re());this.context.Yl().then(function(k){return k.Qe(h,b)}).then(function(k){c.error=null;var l=c.context.OX;l.pO(k,l.OB()?6:1);d.resolve()},function(k){c.H=e;k=_.sL(k);var l=k.Kg;_.A(l,5,2);f?(_.dL(l,1),k.message="Initial app settings refresh failed.",
_.A(k.Kg,21,"Initial app settings refresh failed."),c.context.DH(l),c.setActive(!0)):(_.dL(l,2),k.message="Error occurred while loading the latest set of apps.",_.A(k.Kg,21,"Error occurred while loading the latest set of apps."));c.error=k;d.reject(k)});return this.O};pid.prototype.va=function(){return!1};
pid.prototype.Ba=function(a){var b=this,c=a.getCommand(),d=c.request,e=c.Rga,f=c.cC?{cC:c.cC}:void 0;if(!sid(d))return this.context.Yl().then(function(l){return l.Qe(d,f)}).then(function(l){a.cF().callback(new _.aN(l,1,!1))},function(l){a.cF().Sd(_.rL(l))}),_.ji();c=_.ji();var h=!1;this.O?tid(this,d.getType())?e=this.O:c=e=new _.gi(function(l,n){b.O.then(function(){b.refresh(d,f).then(function(){return l()},n)})}):!e&&this.oa&&tid(this,d.getType())&&!this.error?(h=!0,e=_.ji()):e=this.refresh(d,f);
var k=a.cF();e.then(function(){var l=b.context.OX;k.callback(new _.aN(l.Wp(),l.Ue(),h))},function(l){k.Sd(l)});return c.then()};
var sid=function(a){var b=a.getType();return 1===b||2===b||4===b?(b=_.Jd(a,4),a=_.Jd(a,3),!(b&&b.length)&&!(a&&a.length)):!1},tid=function(a,b){return a.H===b||4===a.H||2===a.H&&1===b},rid=function(a){var b=a.context.Mc.Of(),c=new _.bf;_.cf(c,306);var d=new _.TL;_.A(d,1,1);_.C1c(d,c);a.ma=_.q.setTimeout(function(){return void a.refresh(d)},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,4,72E5))},uid=function(a,b,c){this.request=a;this.Rga=!!b;this.cC=c||null};
var wid=function(a){qP.call(this);var b=this;this.context=a;this.error=null;this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.context.DC,"WPi0i",function(){return b.dispatchEvent(new _.Fi("WPi0i"))});this.H=_.oi();this.O=_.Jd(this.context.Mc.Of(),30);vid(this)};_.N(wid,qP);
var vid=function(a){var b=a.context.ij;AO(b,["rkYxSd"],function(){return a.initialize()});AO(b,["px2C2c"],function(){a.context.Hf().info("drive.ds.sync.userprefs.UserPrefsManager","All user prefs loaded.");a.H.resolve();a.H=null});var c=["NSockf"],d=_.vk(a.context.Mc.Of(),19,1);1!==d&&(c.push("OZvrNc"),2===d&&AO(b,["mrK8ic"],function(){BO(b,"OZvrNc")}));!_.E(a.context.Mc,11,!1)&&_.E(a.context.Mc,24,!1)&&(c.push("DEJoH"),_.q.setTimeout(function(){0<_.Lk(rhd(a.context.DC),_.kp,1).length||(b.H("NSockf")?
BO(b,"DEJoH"):AO(b,["NSockf"],function(){BO(b,"DEJoH")}))},12E3));AO(b,c,function(){if(!b.H("px2C2c")){var e=new _.bf;_.df(e,!0);_.cf(e,301);var f=new _.mC;_.y(f,1,e);KZc(f,xid(a));a.query(f).Yf(function(){a.initialize()})}})};wid.prototype.V=function(){var a="User prefs detected: "+_.Lk(rhd(this.context.DC),_.kp,1).length;this.context.Hf().info("drive.ds.sync.userprefs.UserPrefsManager",a);yid(this)};
wid.prototype.query=function(a,b){var c=this,d=b?{cC:b}:void 0;return this.context.Yl().then(function(e){return e.Qe(a,d)}).then(function(e){c.error=null;var f=c.context.DC;f.pO(_.Lk(e,_.kp,3),f.OB()?6:1,_.Jd(a,3))}).then(null,function(e){e=_.sL(e);_.A(e.Kg,5,4);0<c.commands.$b()||c.context.DH(e.Kg);c.error=e;throw e;})};
wid.prototype.ka=function(a){var b=this,c=a.getCommand(),d=a.cF(),e=new Set([].concat(_.Wc(this.context.DC.iE.keys()))),f=_.Jd(c.request,3);f.find(function(h){return!e.has(h)})&&(c.Rga=!0);this.error?d.Sd(this.error):c.Rga?(KZc(c.request,xid(this,f)),_.pi(this.H?this.H.promise:this.query(c.request,c.cC||void 0),function(){b.getData(d,f,!1)})):this.getData(d,f,!0)};var xid=function(a,b){b=void 0===b?[]:b;a=new Set([].concat(_.Wc(a.O),_.Wc([].concat(_.Wc(a.context.DC.iE.keys()))),_.Wc(b)));return[].concat(_.Wc(a.values()))};
wid.prototype.getData=function(a,b,c){b=this.context.DC.nF(b);a.callback(new _.cN(b.H,b.Ke,c))};var yid=function(a){var b=a.context.Mc.Of();_.q.setTimeout(function(){var c=new _.mC,d=new _.bf;_.cf(d,306);_.y(c,1,d);KZc(c,xid(a));_.pi(a.query(c).Yf(_.vf),function(){yid(a)})},Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,5,72E5))},zid=function(a,b,c){this.request=a;this.Rga=!!b;this.cC=c||null};
var Aid=function(a,b,c,d){pP.call(this,"IS",b);this.context=a;this.Ic=new _.pe(this);this.Ba=_.oi();this.O=null;this.ha=!1;this.W=null;this.Fa=new vbd(a);EZc(this.Fa);this.La(this.Ic);this.ka=new lid(a);this.La(this.ka);this.Ic.listen(this.ka,"WPi0i",function(){return c(new Vad(1))});this.ma=new pid(a);this.La(this.ma);this.Ic.listen(this.ma,"Qb",function(){return c(new Vad(2))});this.oa=new wid(a);this.La(this.oa);this.Ic.listen(this.oa,"WPi0i",function(){return c(new Vad(4))});this.Ha=d;this.H=
this.context.Yl()};_.N(Aid,pP);
Aid.prototype.$S=function(){var a={};return a["3.43"]=this.xY.bind(this),a["3.42"]=this.G5.bind(this),a["3.1"]=this.AL.bind(this),a["3.2"]=this.nF.bind(this),a["3.3"]=this.qd.bind(this),a["3.35"]=this.fM.bind(this),a["3.4"]=this.gy.bind(this),a["3.5"]=this.Wp.bind(this),a["3.6"]=this.iQ.bind(this),a["3.8"]=this.Uk.bind(this),a["3.36"]=this.Bx.bind(this),a["3.9"]=this.GD.bind(this),a["3.10"]=this.Eq.bind(this),a["3.11"]=this.b9.bind(this),a["3.12"]=this.o6.bind(this),a["3.13"]=this.qR.bind(this),a["3.14"]=
this.Z8.bind(this),a["3.15"]=this.q6.bind(this),a["3.16"]=this.Ys.bind(this),a["3.17"]=this.ezb.bind(this),a["3.18"]=this.izb.bind(this),a["3.19"]=this.uO.bind(this),a["3.20"]=this.gzb.bind(this),a["3.25"]=this.fzb.bind(this),a["3.22"]=this.p6.bind(this),a["3.28"]=this.sync.bind(this),a["3.30"]=this.rla.bind(this),a["3.29"]=this.stb.bind(this),a["3.40"]=this.kzb.bind(this),a["3.33"]=this.lzb.bind(this),a["3.39"]=this.rR.bind(this),a["3.37"]=this.jzb.bind(this),a["3.38"]=this.X6a.bind(this),a["3.41"]=
this.kQ.bind(this),a["3.44"]=this.bZ.bind(this),a["3.45"]=this.So.bind(this),a["3.46"]=this.Bta.bind(this),a};var rP=function(a,b,c){return b.then(function(d){d=c?c(d):d.Xb();return a.Me([d])},function(d){return a.Me(void 0,d)})};_.g=Aid.prototype;_.g.AL=function(a){var b=new _.TK(JSON.parse(a.args[0]));a=new nid(b,a.args[1],this.context.H[a.clientId]);BO(this.context.ij,"iuEtc");return rP(this,this.ka.enqueue(a),function(c){return JSON.stringify([c.response.Xb(),c.Ke,c.QY])})};
_.g.nF=function(a){var b=new _.mC(JSON.parse(a.args[0]));a=new zid(b,a.args[1],this.context.H[a.clientId]);BO(this.context.ij,"OZvrNc");return rP(this,this.oa.enqueue(a),function(c){return JSON.stringify([c.response.Xb(),c.Ke,c.QY])})};
_.g.qd=function(a){var b=new mZc(JSON.parse(a.args[0])),c=_.D(b,_.vL,16)||_.D(b,_.wL,1)||_.D(b,_.xL,2)||_.D(b,_.AL,3)||_.D(b,_.fN,4)||_.D(b,_.yL,5)||_.D(b,_.EL,6)||_.D(b,_.GL,7)||_.D(b,_.HL,8)||_.D(b,_.KL,9)||_.D(b,_.ZL,10)||_.D(b,_.$L,11)||_.D(b,_.aM,12)||_.D(b,_.iL,13)||_.D(b,_.eM,14)||_.D(b,_.fM,15)||_.D(b,_.GN,17),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d)}),function(e){return e?e.Xb():""})};
_.g.fM=function(a){var b=new vZc(JSON.parse(a.args[0])),c=_.D(b,_.BL,1)||_.D(b,_.IL,2)||_.D(b,_.gM,3),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d)}),function(e){return e.Xb()})};
_.g.gy=function(a){var b=this,c=new pZc(JSON.parse(a.args[0])),d=sP(this,a),e=[],f=[];rZc(c).forEach(function(h){h instanceof _.vL?e.push(String(h.Gc())):e.push(String(h.getId()));f.push(b.H.then(function(k){return k.Qe(h,d)}))});a=_.ni(f).then(function(h){return h.map(function(k){return k.value||k.reason})});_.pi(a,function(){return void Tdd(b.context.jf)});return rP(this,a,function(h){for(var k={},l={},n=0;n<h.length;n++){var p=h[n],t=e[n];p instanceof _.Ub||p instanceof _.Vb?l[t]=_.fL(p).Xb():
k[t]=p.Xb()}return JSON.stringify([k,l])})};
_.g.Wp=function(a){var b=this,c=new _.TL(JSON.parse(a.args[0])),d=a.args[1];if(3===c.getType())if(!d&&this.W)a=this.W;else{var e=sP(this,a);a=this.H.then(function(f){return f.Qe(c,e)}).then(function(f){return new _.aN(f,1,!1)});this.W||(this.W=a.then(function(f){return new _.aN(f.response,f.Ke,!0)}),setTimeout(function(){b.W=null},9E5))}else a=new uid(c,d,this.context.H[a.clientId]),BO(this.context.ij,"Qubz4b"),a=this.ma.enqueue(a);return rP(this,a,function(f){return JSON.stringify([f.response.Xb(),f.Ke,
f.QY])})};_.g.iQ=function(a){var b=new sZc(JSON.parse(a.args[0])),c=_.D(b,_.kC,1)||_.D(b,_.lC,2),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d)}))};_.g.Uk=function(a){a=a.args[0];try{return this.context.Ij.Uk(a),this.Me([])}catch(b){return this.Me(void 0,b)}};
_.g.Bx=function(a){var b=this,c=a.args[0];return this.context.Bx(c).then(function(d){return d?(b.context.Ij.Bx(c),b.Ha(c),b.context.Lr.pJ().Yf(function(){return!c})):_.ji(!c)}).then(function(d){return b.Me([d])},function(d){return b.Me(void 0,d)})};_.g.sync=function(){var a=this;return _.mi([this.context.W8.promise,this.context.ka.promise]).then(function(){return a.context.Lr.pJ()}).then(function(){return a.Me([])},function(b){return a.Me(void 0,b)})};
_.g.GD=function(){try{var a=this.context.T3;a&&a.W1();this.context.zea.GD();return this.Me([])}catch(b){return this.Me(void 0,b)}};_.g.kQ=function(){this.context.kQ();return this.Me([])};_.g.Eq=function(a){var b=new _.ML(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};_.g.b9=function(a){var b=new _.NL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};
_.g.o6=function(a){var b=new _.CL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};_.g.qR=function(a){var b=new _.cM(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};
_.g.Z8=function(a){var b=this,c=new _.OL(JSON.parse(a.args[0])),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return _.XK(b.context.Mc)?e8c(b.context.jf.uq,[_.D(e,_.ml,2)],c.Gc()).then(function(){return e}):e}))};_.g.q6=function(a){var b=new _.FL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};
_.g.Ys=function(a){var b=this,c=new _.VL(JSON.parse(a.args[0])),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.XK(b.context.Mc)?d8c(b.context.jf.uq,f):f})}))};_.g.ezb=function(a){var b=new _.Ead(JSON.parse(a.args[0])),c=new _.SRc(b,a.args[1],a.args[2]||void 0),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d)}))};
_.g.izb=function(a){var b=this,c=new _.UL(JSON.parse(a.args[0])),d=sP(this,a);return rP(this,this.H.then(function(e){return e.Qe(c,d).then(function(f){return _.XK(b.context.Mc)?e8c(b.context.jf.uq,f.Me().nL(),c.ud().getId()).then(function(){return f}):f})}))};_.g.uO=function(){return rP(this,this.context.MG.uO())};_.g.gzb=function(a){var b=new _.RRc(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};
_.g.fzb=function(a){var b=new _.SL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};_.g.p6=function(a){var b=new _.DL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};_.g.rla=function(a){var b=this,c=new _.HK(JSON.parse(a.args[0])),d=sP(this,a);return this.H.then(function(e){return e.Qe(c,d)}).then(function(e){return b.Me([e.Xb(),null])},function(e){return b.Me([null,_.fL(e).Xb()])})};_.g.stb=function(){return this.Me([!0])};
_.g.kzb=function(a){var b=new _.bM(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}),function(d){return d.Xb()})};_.g.lzb=function(a){var b=new _.np(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}),function(d){return d.Xb()})};_.g.xY=function(a){a=new _.Oe(JSON.parse(a.args[0]));jdd(this.context.jf,[a]);return this.Me([])};
_.g.G5=function(a){var b=new _.zL(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}),function(d){return d.Xb()})};_.g.rR=function(a){var b=new _.YO(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}).then(function(d){return o8c(b,d)}),function(d){return JSON.stringify(d.map(function(e){return e.Xb()}))})};
_.g.jzb=function(a){var b=new _.ZRc(new _.FSb(JSON.parse(a.args[0])),a.args[1]),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}),function(d){return d?JSON.stringify([d.response.Xb(),d.pageToken]):""})};_.g.X6a=function(a){var b=new _.CF(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}),function(d){return d.Xb()})};
_.g.bZ=function(a){var b=new _.VM(JSON.parse(a.args[0])),c=sP(this,a);return rP(this,this.H.then(function(d){return d.Qe(b,c)}))};_.g.So=function(a){a=a.args[0].map(function(b){return new _.bL(JSON.parse(b))});this.context.jf.So(a);Tdd(this.context.jf);return this.Me([])};_.g.Bta=function(){return rP(this,T1c(this.context.NG),function(a){return a?a.Xb():""})};
_.g.initialize=function(){var a=this;if(!this.O){this.O=_.oi();this.context.Hf().info("drive.ds.sync.cacheproxy.WorkerSyncedItemService","Initializing with client build: "+this.context.Mc.wi());this.Ic.listen(this.context,_.Nc,function(e){e=e.error;var f=e.Kg;f&&3===f.getType()&&!a.ha?(a.ha=!0,a.O.reject(e)):E1c(a.context.Hf(),"drive.ds.sync.cacheproxy.WorkerSyncedItemService","An error occurred in the Shared Worker")});var b=this.context.ij,c=["hVFf7"];_.KM(this.context.Mc)&&c.push("BNEDtc");AO(b,
c,function(){a.ha||(a.ha=!0,a.O.resolve())});AO(b,["GZTDpc"],function(){return a.Ba.resolve()});var d=function(){gP(a.context).then(function(e){return void e.start()})};AO(b,["T8oKm","ZA9qG"],function(){return void d()});AO(b,["T8oKm","mrK8ic"],function(){return void d()});b.start();BO(b,"NSockf")}return this.O.promise};_.g.n$=function(){return this.Ba.promise};_.g.At=function(){var a=this.context.T3;a&&a.dispose();return this.context.At()};
var sP=function(a,b){return(a=a.context.H[b.clientId])?{cC:a}:{}};
var Bid=function(a,b,c){pP.call(this,"DU",b);this.context=a;this.O=c;this.H=new vbd(a)};_.N(Bid,pP);_.g=Bid.prototype;
_.g.$S=function(){var a=this,b={};return b["5.1"]=function(){return a.ofa()},b["5.2"]=function(c){return a.SK(c)},b["5.4"]=function(c){return a.wy(c)},b["5.5"]=function(){return a.vP()},b["5.10"]=function(){return a.uL()},b["5.6"]=function(){return a.aba()},b["5.7"]=function(){return a.fR()},b["5.9"]=function(c){return a.Sna(c)},b["5.8"]=function(c){return a.K2(c)},b["5.11"]=function(){return a.Wma()},b["5.12"]=function(c){return a.getState(c)},b["5.13"]=function(c){return a.Uk(c)},b};
_.g.ofa=function(){var a=this;this.context.Lr.vQ();var b=this.context.Mc;return n$c(_.IM(_.SK(b)),_.JM(b),this.context.Hf()).Yf(function(){}).then(function(){return a.Me([])})};_.g.SK=function(a){a=this.context.jf.Gl.H(a.args[0]);return this.Me([a?a.Xb():JSON.stringify(null)])};_.g.wy=function(a){var b=this;return this.context.qz.wy(a.args[0]).then(function(c){return b.Me([c.Xb()])})};_.g.vP=function(){for(var a=this.context.qz.vP(),b=[],c=0;c<a.length;c++)b.push(a[c].he());return this.Me([JSON.stringify(b)])};
_.g.K2=function(a){var b=this,c=new _.uQc(JSON.parse(a.args[0])),d=a.args[1],e=a.args[2];if(_.D(c,_.YK,3)||_.D(c,_.iM,4)||_.D(c,_.fN,5)||_.D(c,_.fM,6)||_.D(c,_.HL,7)||_.D(c,_.AL,8)||_.D(c,_.EL,9)||_.D(c,_.iL,10)){var f=C6c(c);return this.context.Yl().then(function(h){return h.Qe(f,{d3a:d,e3a:e})}).then(this.Y6a.bind(this,a),function(h){return b.Me(void 0,h)})}return _.ji(this.Me(void 0,Error("Rf")))};
_.g.Y6a=function(a,b){a=[];var c="";if(b instanceof _.gN){a=b.Me().Dd();var d=_.C(b,2);c=b.Tn()}else if(b instanceof _.kM)b.getItem()&&a.push(b.getItem()),d=b.ZK();else return this.Me(void 0,Error("Sf"));b=[];for(var e=0;e<a.length;e++)b.push(a[e].he());return this.Me([JSON.stringify(b),d,c])};_.g.Sna=function(){var a=this.context.Mc,b=a.Of();a="email:"+_.SK(a).getEmail().replace(/@.*$/,"");_.A(b,13,a);return this.Me([])};_.g.aba=function(){this.context.sE.H=new c9c(_.ah().substring(0,8));return this.Me([])};
_.g.fR=function(){var a=this.context.sE.uL();if(a){for(var b=[],c=e9c(this.context.sE),d=0;d<c.length;d++)b.push(c[d].he());a=[a.uba,a.startTime,JSON.stringify(b)]}else a=[];b=this.context.sE;b.H=null;b.AW=[];return this.Me(a)};_.g.uL=function(){var a=this.context.sE.uL();return this.Me(a?[a.uba,a.startTime]:[])};_.g.getState=function(){var a=this;return this.H.getState(this.va).then(function(b){return a.Me([b])})};
_.g.Wma=function(){var a=[this.O.At(),_.Si(3E4)];_.pi(_.li(a),function(){_.q.setTimeout(function(){self.close()})});return this.Me([])};_.g.Uk=function(a){this.H.Uk(a.args[0]);return this.Me([])};
var Cid=function(a,b,c,d,e,f,h){_.sN.call(this,a,b,c,d,f,h);this.H=e;this.zd=null};_.N(Cid,_.sN);Cid.prototype.yK=function(a,b){var c=this;return _.yi(this.H.then(function(d){return d.f_a(vYc(c.O,c.va,a,b,c.Li,c.ha))},null))};Cid.prototype.ma=function(a,b){var c=this.ud(a);if(c){var d=0;if(c.file){var e=c.request&&c.request.wy();e&&(d=_.C(e,1));0===d&&(d=c.file.size)}this.dispatchEvent(new _.MVc(a,b,d))}};
var Did=function(a,b,c,d,e,f,h,k){pP.call(this,"FU",k);this.ka=a;this.ha=b;this.oa=c;this.Ba=d;this.W=e;this.ma=f;this.zd=h;this.H={};this.O={};this.Ic=new _.pe(this);this.La(this.Ic)};_.N(Did,pP);_.g=Did.prototype;
_.g.$S=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.kH(c)},b["7.4"]=function(c){return a.retry(c)},b["7.5"]=function(c){return a.yK(c)},b["7.6"]=function(c){c=c.clientId+":"+c.requestId;a.H[c]&&(a.H[c].dispose(),delete a.H[c]);return a.Me([])},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.Me([])},b};
_.g.upload=function(a){var b=this,c=a.clientId+":"+a.requestId,d=new _.AL(JSON.parse(a.args[0])),e=a.args[1];if(!this.H[c]){var f=new Cid(this.ka,this.ha,this.oa,this.Ba,this.W,this.ma,this.zd);this.Ic.listen(f,"Lb",_.Wa(this.Z6a,a.clientId,a.requestId));this.La(f);this.H[c]=f}return this.H[c].upload(d,e,void 0,function(h,k){var l=a.clientId,n=a.requestId,p=d.Nj(),t=_.oi();b.O[p]=t;b.update(l,n,Eid(3,p,[h,k]));return t.promise}).then(function(h){return b.Me([h.Xb()])},function(h){return b.Me(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.Me([])};_.g.kH=function(a){a=a.clientId+":"+a.requestId;this.H[a]&&this.H[a].kH();return this.Me([])};
_.g.retry=function(a){var b=this,c=a.clientId+":"+a.requestId;if(this.H[c]){var d=a.args[0],e=a.args[1],f=this.H[c].retry(e),h={},k=0;_.Ka(e,function(l){h[l]=f[k++]});_.bg(h,function(l,n){l.lg(function(p){b.update(a.clientId,c,Eid(0,d,[n,p.Xb()]))},function(p){b.update(a.clientId,c,Eid(1,d,[n,p.Kg.Xb()]))})});return this.Me([])}return this.Me(void 0,_.fL("Could not retry upload."))};
_.g.yK=function(a){var b=a.clientId+":"+a.requestId,c=a.args[0];a=a.args[1];return this.H[b]?(b=this.H[b],c=vYc(b.O,b.va,c,a,b.Li,b.ha),this.Me([yZc(c)])):this.Me(void 0,_.fL("FileUploader not found."))};_.g.Z6a=function(a,b,c){this.update(a,b,Eid(2,c.requestId,[c.progress,c.totalBytes]))};var Eid=function(a,b,c){return[Number(a),b].concat(_.Wc(c))};
var Fid=function(a,b){pP.call(this,"IE",b);this.O=a;this.H=new Map};_.N(Fid,pP);Fid.prototype.$S=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};
Fid.prototype.export=function(a){var b=this,c=a.requestId,d=a.clientId+":"+c,e=new _.QRc(JSON.parse(a.args[0]));e=new bP(this.O,e);var f=_.de(e,"Pb",function(h){b.update(a.clientId,c,[h.$La,h.nra])});_.ge(e,function(){_.Ni(f);b.H.delete(d)});this.H.set(d,e);return e.start().then(function(h){return b.Me([h.Xb()])},function(h){return b.Me(void 0,h)})};Fid.prototype.cancel=function(a){(a=this.H.get(a.clientId+":"+a.requestId))&&a.cancel();return this.Me([])};
var Gid=function(a,b){pP.call(this,"ODS",b);this.context=a;this.H=!1;this.W=_.oi();this.O=new Abd(a,a.Ig)};_.N(Gid,pP);Gid.prototype.$S=function(){var a=this,b={};return b["6.1"]=function(c){return Hid(a,c)},b["6.2"]=function(c){return Iid(a,c)},b["6.3"]=function(){a.H&&(Dbd(a.O),a.H=!1,a.W=_.oi());return a.Me([])},b};
var Hid=function(a,b){if(!a.H){a.H=!0;var c=[];_.Ka(b.args,function(d){d=new _.Cl(JSON.parse(d));c.push(d)});a.O.Gk(c);BO(a.context.ij,"GZTDpc");a.W.resolve()}return a.Me([])},Iid=function(a,b){return a.W.promise.then(function(){var c=[];_.Ka(b.args,function(d){d=new _.bL(JSON.parse(d));c.push(d)});Cbd(a.O,c);return a.Me([])})};
var Jid=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("tg`"+b);a.services.set(b,new _.ri)})};Jid.prototype.activate=function(a){var b=this.services.get(a.V);if(b&&!b.rf())b.callback(a);else throw Error("ug`"+a.V);};var Kid=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)})};Jid.prototype.Go=function(){return[].concat(_.Wc(this.services.values())).every(function(a){return a.rf()})};
var Lid=function(a,b){this.request=a;this.O=b;this.status="UNKNOWN_PREFLIGHT_STATUS";this.H=_.oi();this.pageToken="";this.UC=this.isRunning=!1};_.g=Lid.prototype;_.g.Tg=function(){this.isRunning||(this.isRunning=!0,this.sendRequest());return this.H.promise};_.g.sendRequest=function(){if(this.UC)this.status="CANCELLED",this.H.resolve(this.status);else{var a=new _.cSc(this.request,this.pageToken);this.O.then(function(b){return b.Qe(a)}).then(this.$6a.bind(this),this.handleError.bind(this))}};
_.g.$6a=function(a){var b=this;(this.pageToken=a.pageToken)?setTimeout(function(){b.sendRequest()},1E4):(this.status="MOVE_ALLOWED",this.H.resolve(this.status))};_.g.handleError=function(a){a=_.sL(a);var b=a.Kg.Wj();53===b?(this.status="TOO_MANY_FILES",this.H.resolve(this.status)):54===b?(this.status="TOO_MANY_UNMOVABLE_FILES",this.H.resolve(this.status)):40===b?(this.status="TEAM_DRIVE_FILE_LIMIT_EXCEEDED",this.H.resolve(this.status)):this.H.reject(a)};_.g.cancel=function(){this.UC=!0};
var Mid=function(a,b){pP.call(this,"TM",b);this.O=a;this.H=new Map};_.N(Mid,pP);Mid.prototype.$S=function(){var a=this,b={};return b["10.1"]=function(c){return Nid(a,c)},b["10.2"]=function(c){return a.cancel(c)},b};var Nid=function(a,b){var c=b.clientId+":"+b.requestId;b=new _.uad(JSON.parse(b.args[0]));b=new Lid(b,a.O);a.H.set(c,b);return _.pi(b.Tg().then(function(d){return a.Me([d])},function(d){return a.Me(void 0,d)}),function(){a.H.delete(c)})};
Mid.prototype.cancel=function(a){this.H.get(a.clientId+":"+a.requestId).cancel();return this.Me([])};
var tP=function(a,b,c){_.P.call(this);this.H=a;this.ir=b;this.kb=c;this.fields=null;this.Ha=!1;this.Ja=_.oi();this.W=!1;this.Ba=_.oi();this.O=_.oi();this.oa=null;this.va=this.Ta=!1;this.ob=_.oi();this.ha=new Set;this.Fa=new Set;this.V=new Map;this.ma=new Set;this.JA=Date.now();this.services=new Jid;this.Ib=new _.pe(this);this.La(this.Ib)};_.N(tP,_.P);tP.prototype.jW=function(a){this.O.promise.then(function(b){b.T3||a.Rj(b)})};
var Rid=function(a,b){var c=aid(a.H,b),d=a.Ob.bind(a,c);sO(b,"8.1",d);b.registerService("8.1",d);sO(b,"8.4",a.Pa.bind(a,c));b.registerService("8.5",function(f){return Oid(a,c,f)});sO(b,"8.2",a.Ab.bind(a,c));sO(b,"8.3",a.Hb.bind(a,c));Kid(a.services,b);b.start();Pid(a,c,b);a.ka(c,b);var e=[];a.oa||(a.oa=_.mi([a.Ja.promise,a.Ba.promise]).then((0,_.v)(a.initialize,a)));e.push(a.oa);_.mi(e).then(function(){return void Qid(a,c,b)},function(f){a.Ta=!0;tO(b,"2.2",{err:_.fL(f).Xb()},d)})},Sid=function(a){return Math.floor((Date.now()-
a.JA)/1E3)},Tid=function(a,b,c){var d=function(e){tO(b,"2.8",{au:"eb"===e.type})};a.Ib.listen(c.MG,["eb","fb"],d);_.ge(b,a.Ib.Uc.bind(a.Ib,c.MG,["eb","fb"],d))},Uid=function(a,b,c){var d=c.Ul(),e=[].concat(_.Wc(Object.values(_.$K))),f=function(h){tO(b,"2.19",{cs:h.connectionState})};a.Ib.listen(d,e,f);_.ge(b,function(){a.Ib.Uc(d,e,f)})};
tP.prototype.Ob=function(a){var b=bid(this.H,a);if(b&&((this.services.services.get("LRM")||null).addCallback(function(d){eid(d,a)}),b.dispose(),this.log(_.mx("Client %d disconnected (num clients remaining: %d)",a,_.fg(this.H.channels))),0===_.fg(this.H.channels))){var c=function(){_.q.setTimeout(function(){self.close()})};this.Ta?c():(this.services.services.get("IS")||null).addCallback(function(d){_.pi(d.At(),c)})}};
tP.prototype.Pa=function(a,b){if(this.ha.has(a))return _.ji();var c=new _.Cb(JSON.parse(b.dsc));_.A(c,24,!1);this.Ha||(this.Ha=!0,this.Ja.resolve(c));this.ha.add(a);return this.O.promise.then(function(d){Whd(d,a,_.G(c.Of(),37,""));Vhd(d,_.Jd(c,28));d.jf.Yia(_.Lk(c,_.Vl,91));return d.EV.promise.then(function(){jdd(d.jf,_.Lk(c,_.Oe,44))})},function(){})};
tP.prototype.Ab=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 ocd(e,e.Ig);e.Tg(d);e.dispose();(e=c.H.channels[a]||null)&&tO(e,"2.16")})}};tP.prototype.Hb=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){Vid(new Tcd(h),e);(h=c.H.channels[a]||null)&&tO(h,"2.17",{t:f})})}};
var Vid=function(a,b){b.filter(function(c){return c}).forEach(function(c){return a.Tg(c)});a.dispose()};tP.prototype.$a=function(){var a=[];_.Ka(_.Yc(this.H.channels),function(b){var c=_.oi();tO(b,"2.12",void 0,function(){b.dispose();c.resolve()});a.push(c.promise)});return _.mi(a).then()};
tP.prototype.initialize=function(a){var b=this;a=a[0];_.rTc(a,this.fields);var c=_.D(a,_.oL,58);c=c&&_.E(c,1,!1)?this.kb:void 0;try{var d=new LN(null,a,this.ir,c,void 0,void 0),e=d.fl().H(106E3);Chd(d,this.$a.bind(this));this.Ib.listen(d.Ij,"Ab",function(k){Wid(b,k.$e())});this.Ib.listen(d,_.Nc,this.qc);this.Ib.listen(d,"w8KrJc",this.Nc);l7c(d.MG,this.ka.bind(this));var f=d.NG;f&&S1c(f,function(){return b.ka()});this.O.resolve(d);var h=Xid(this,d,new Aid(d,this.H,(0,_.v)(this.Wb,this),(0,_.v)(this.Hc,
this)));e&&h.then(function(){return e&&e.ek()});return h}catch(k){return _.ki(k)}};
var Xid=function(a,b,c){a.services.activate(c);a.services.activate(new cid(b,a.H));a.services.activate(new Bid(b,a.H,c));a.services.activate(new Gid(b,a.H));a.services.activate(new Did(b.Mc,b.qz,b.uP().Zca,b.Yl(),b.nO,b.Hf(),b.fl(),a.H));a.services.activate(new Fid(b.Yl(),a.H));a.services.activate(new Mid(b.Yl(),a.H));return c.initialize()},Qid=function(a,b,c){var d=_.fg(a.H.channels);a.log(_.mx("Client %d connected (num clients: %d, added: %d, max concurrent: %d)",b,d,a.H.O,a.H.H));tO(c,"2.2",{id:b,
clients:d,uptimeSec:Sid(a),dsp:!a.V.has(b),ivd:!a.ma.has(b)});a.O.promise.then(function(e){e.R3.addCallback(function(f){c.isDisposed()||tO(c,"2.5",{id:f})});1<d&&gP(e).addCallback(function(f){return f.Cta()});(a.services.services.get("IS")||null).addCallback(function(f){f.n$().then(function(){c.isDisposed()||tO(c,"2.14")})});Tid(a,c,e);Uid(a,c,e)})};tP.prototype.Wb=function(a){var b={dt:a.dataType};_.Ka(_.Yc(this.H.channels),function(c){tO(c,"2.15",b)})};
var Wid=function(a,b){var c={os:b};_.Ka(_.Yc(a.H.channels),function(d){tO(d,"2.6",c)})};tP.prototype.Hc=function(a){var b={oois:a};_.Yc(this.H.channels).forEach(function(c){tO(c,"2.18",b)})};tP.prototype.qc=function(a){var b={p:a.error.Kg.Xb()};_.Ka(_.Yc(this.H.channels),function(c){tO(c,"2.10",b)})};tP.prototype.Nc=function(){_.Ka(_.Yc(this.H.channels),function(a){tO(a,"2.7")})};var Pid=function(a,b,c){a.ha.has(b)?_.ji():new _.gi(function(d){tO(c,"2.1",void 0,function(e){d(a.Pa(b,e))})})};
tP.prototype.ka=function(a,b){var c=this;if("number"===typeof a){if(!b)return _.ki(Error("vg"));if(this.W&&this.Fa.has(a))return _.ji()}b=b||_.Yc(this.H.channels)[0];if(!b)return _.ki(Error("wg"));var d=_.oi();b.send("1.1",void 0,function(e){Oid(c,a,e);d.resolve()});return d.promise};var Oid=function(a,b,c){_.bg(c.ac,function(d,e){_.q[e]=d});"number"===typeof b&&a.Fa.add(b);a.W||(c.bl&&!a.va&&(a.va=!0,a.ob.resolve(c.bl)),a.fields||(a.fields=c.ufds),a.W=!0,a.Ba.resolve())};
tP.prototype.log=function(a){this.O.promise.then(function(b){return b.Hf().info("drive.ds.sync.cacheproxy.Worker",a)})};
var Yid=function(a,b){oP.call(this,"DU","drive.ds.sync.DebugUtilProxy",a);this.context=b;this.H=null};_.N(Yid,oP);_.g=Yid.prototype;_.g.Ka=function(){return _.D(this.context.Mc,_.oL,58)};_.g.getContext=function(){return this.context};_.g.wy=function(){return this.send("5.4",[this.H],function(a){return new _.dUc(JSON.parse(a[0]))})};_.g.Hf=function(){return this.context.Hf()};_.g.SK=function(a){return this.send("5.2",[a],function(b){return(b=JSON.parse(b[0]))&&new _.Cl(b)})};
_.g.vP=function(){return this.send("5.5",[],function(a){a=JSON.parse(a[0]);for(var b=[],c=0;c<a.length;c++)b.push(new _.uQc(a[c]));return b})};_.g.K2=function(a,b,c){return this.send("5.8",[a.Xb(),b,c],function(d){var e=JSON.parse(d[0]),f=d[1];d=d[2];for(var h=[],k=0;k<e.length;k++)h.push(new _.Cl(e[k]));return{items:h,Pfa:f,pageToken:d}})};_.g.Sna=function(){this.send("5.9",[])};_.g.ofa=function(){this.send("5.1",[])};_.g.k7=function(){return _.ZQc[_.vk(this.context.Mc.Of(),8,0)]};
_.g.aba=function(){this.send("5.6",[])};_.g.fR=function(){return this.send("5.7",[],function(a){if(0===a.length)return null;var b=a[0],c=new Date(a[1]),d=[];a=JSON.parse(a[2]);for(var e=0;e<a.length;e++)d.push(new D6c(a[e]));return{traceId:new c9c(b,c),spanRecs:d}})};_.g.uL=function(){return this.send("5.10",[],function(a){return 0===a.length?null:new c9c(a[0],new Date(a[1]))})};_.g.getState=function(){return this.send("5.12",[],function(a){return a[0]})};_.g.Wma=function(){this.send("5.11",[])};
_.g.Uk=function(a){this.send("5.13",[a])};
var Zid=function(a,b){oP.call(this,"IE","drive.ds.sync.itemexport.ItemExportSessionProxy",a);this.request=b;this.promise=null;this.id=String(_.Ea(this))};_.N(Zid,oP);Zid.prototype.start=function(){var a=this;this.promise||(this.promise=this.send("9.1",[this.request.Xb()],function(b){return new Kad(JSON.parse(b[0]))},this.id).then(),this.promise.then(function(){return a.dispose()},function(){return a.dispose()}));return this.promise};
Zid.prototype.cancel=function(){this.send("9.2",[this.request.Xb()],void 0,this.id)};Zid.prototype.Nia=function(a,b,c){this.dispatchEvent(new Wad(c[0],c[1]))};
var $id=function(a){oP.call(this,"ODS","drive.ds.sync.offline.DataServiceProxy",a);this.H=null};_.N($id,oP);$id.prototype.lW=function(a){if(this.H=a){a=this.V.bind(this);var b=this.O.bind(this);this.log("Querying all offline items.");this.H.GT().lg(a,b);this.H.AY((0,_.v)(this.W,this))}else this.send("6.3",[])};$id.prototype.V=function(a){var b=[];_.Ka(a,function(c){b.push(c.Xb())});this.log("Forwarding all offline items response, count:"+a.length);this.send("6.1",b)};$id.prototype.O=function(){this.log("Error fetching offline items.")};
$id.prototype.W=function(a){var b=[];_.Ka(a,function(c){b.push(c.Xb())});this.log("Forwarding offline items changes, count:"+a.length);this.send("6.2",b)};
var ajd=function(a,b){JO.call(this,a,b)};_.N(ajd,JO);ajd.prototype.Efa=function(a,b,c){return new _.ZRc(a,c)};ajd.prototype.$ha=function(a){return a.pageToken||""};ajd.prototype.lha=function(a){return a.response.O()};ajd.prototype.Q3=function(){};
var bjd=function(a,b,c){aP.call(this,a.Ij,a.Ul(),b.ki()||void 0);this.request=b;this.O=[];this.changed=!1;this.ka=c;this.V=new ajd(this.request,this.ka)};_.N(bjd,aP);_.g=bjd.prototype;_.g.pF=function(){this.V.Tg().then(this.a7a.bind(this),this.handleError.bind(this))};_.g.getData=function(){return mad(new XO,this.O).Ac(this.status)};_.g.mr=function(){return new kad};_.g.tj=function(){return!this.$e()&&(!this.H||q8c(this.V))};_.g.a7a=function(a){this.changed=this.H=!0;this.O=a;this.Ns()};
_.g.Ns=function(){if(this.active){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};_.g.$b=function(){return this.O.length};
var cjd=function(a,b,c){aP.call(this,a.Ij,a.Ul(),b.ki()||10);this.request=b;this.O=[];this.data=[];this.changed=!1;this.V=new _.jYc;this.suggestionSessionId=null;this.ka=c};_.N(cjd,aP);_.g=cjd.prototype;_.g.pF=function(){var a=this;this.ka(this.request).then(function(b){a.H=!0;a.changed=!0;a.data=b.Ek();a.suggestionSessionId=b.xf();a.Ns()},this.handleError.bind(this))};_.g.getData=function(){this.O=this.data;return _.rYc(_.qYc((new _.xN).Ac(this.status),this.data.slice(0)),this.suggestionSessionId)};
_.g.mr=function(){var a=this.V.xy(this.O,this.data);this.O=this.data;var b=(new qad).Ac(this.status);return _.kb(b,2,a)};_.g.kN=function(){};_.g.Ns=function(){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))};_.g.$b=function(){return this.data.length};
var djd=function(){};_.g=djd.prototype;_.g.BK=function(a,b){b=Bad(1).setPosition(b);_.y(b,2,a);return b};_.g.zK=function(a,b){b=Bad(2).setPosition(b);_.y(b,2,a);return b};_.g.YC=function(a,b,c){b=Bad(3).Cx(b).setPosition(c);_.y(b,2,a);return b};_.g.CO=function(a,b){b=Bad(4).setPosition(b);_.y(b,2,a);return b};_.g.aL=function(a){return _.D(a,_.k5c,2)};
var fjd=function(){_.tN.call(this,new djd,function(a){return ejd(a)})};_.N(fjd,_.tN);var ejd=function(a){switch(_.mk(a,j5c[0])){case 6:return _.lx(_.D(a,_.kx,6)).getTime().toString();case 7:var b=_.D(a,_.kO,7);a=_.D(b,_.kx,1);b=b.Gq();return a&&b?(a=_.lx(a).getTime(),_.lx(b).getTime()+"--"+a):"";default:return""}},hjd=function(){gjd||(gjd=new fjd);return gjd},gjd;
var ijd=function(a,b,c,d){aP.call(this,b.Ij,b.Ul(),d);this.request=a;this.V=!1;this.ka=[];this.O=[];this.token="";this.changed=!1;this.ma=new _.vVc(_.wk(b.Mc.Of(),6,1E3));this.oa=c};_.N(ijd,aP);_.g=ijd.prototype;_.g.activate=function(){aP.prototype.activate.call(this);this.Ns()};_.g.pF=function(){_.H(this.request,3)?this.page():this.poll()};_.g.Qq=function(a){if(a=a||50,this.O.length>this.limit)this.changed=!0;aP.prototype.Qq.call(this,a)};
_.g.getData=function(){var a=(new Gad).Ac(this.status);_.kb(a,2,this.O.slice(0,this.limit));this.ka=_.ya(this.O);return a};_.g.mr=function(){var a=hjd().xy(this.ka,this.O),b=new Dad;a=_.kb(b,2,a).Ac(this.status);this.ka=_.ya(this.O);return a};_.g.tj=function(){return!this.$e()&&(!this.H||this.O.length>this.limit||!!this.token)};_.g.ud=function(){return this.request};_.g.uJa=function(a){this.dispatchEvent(new _.Wb(a));this.V=!1};
_.g.gtb=function(a,b){this.H=!0;var c=_.Lk(b,_.k5c,1);this.O=this.O.concat(c);this.token=b.Yw()||"";0<c.length&&(this.changed=!0);this.Ns();this.page(a)};_.g.ztb=function(a){hjd();this.H=!0;var b=_.Lk(a,_.k5c,1);RN(0,this.O.slice(0,b.length),b)?(this.O=b,this.token=a.Yw()||"",this.changed=!0,this.Ns(),this.page()):(this.V=!1,jjd(this))};
_.g.page=function(a){this.active?(this.V=!0,this.tj()&&this.O.length<this.limit?this.oa(this.request,this.limit-this.O.length,this.token).lg(_.Wa(this.gtb,a),this.uJa,this):(this.V=!1,a&&a.callback(),jjd(this))):this.V=!1};_.g.poll=function(){this.active&&(this.V=!0,this.oa(this.request,this.limit).lg(this.ztb,this.uJa,this))};_.g.Ns=function(){if(this.active){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};
_.g.GJ=function(){this.$e()&&!this.H?this.status=2:this.status=this.O.length<this.limit&&(!this.H||this.token)?6:1};_.g.kN=function(){this.active&&this.tj()&&!this.V&&this.page(new _.ri)};var jjd=function(a){_.H(a.request,3)||(_.PG(a.ma),_.q.setTimeout((0,_.v)(a.poll,a),a.ma.Ya()))};ijd.prototype.$b=function(){return this.O.length};
var kjd=function(){};_.g=kjd.prototype;_.g.BK=function(a,b){return Iad(Had(1),a).setPosition(b)};_.g.zK=function(a,b){return Iad(Had(2).setPosition(b),a)};_.g.YC=function(a,b,c){return Iad(Had(3).Cx(b).setPosition(c),a)};_.g.CO=function(a,b){return Iad(Had(4),a).setPosition(b)};_.g.aL=function(a){return _.D(a,_.RO,2)};
var ljd=function(){_.tN.call(this,new kjd,function(a){return a.getId()})};_.N(ljd,_.tN);var njd=function(){mjd||(mjd=new ljd);return mjd},mjd;
var ojd=function(a,b,c){aP.call(this,b.Ij,b.Ul());this.request=a;this.ka=[];this.O=[];this.changed=!1;this.V=new _.vVc(_.wk(b.Mc.Of(),54,1E3));this.ma=c};_.N(ojd,aP);_.g=ojd.prototype;_.g.activate=function(){aP.prototype.activate.call(this);this.Ns()};_.g.pF=function(){this.poll()};_.g.getData=function(){var a=new Qad;a=_.kb(a,2,this.O).Ac(this.status);this.ka=_.ya(this.O);return a};_.g.mr=function(){var a=njd().xy(this.ka,this.O),b=new Oad;a=_.kb(b,2,a).Ac(this.status);this.ka=_.ya(this.O);return a};
_.g.tj=function(){return!this.$e()&&!this.H};_.g.poll=function(){var a=new _.ri;this.ma(this.request).lg(_.Wa(this.c7a,a),_.Wa(this.b7a,a),this);return a};_.g.b7a=function(a,b){this.dispatchEvent(new _.Wb(b));a.Sd(b);pjd(this)};_.g.c7a=function(a,b){this.H=!0;b=_.Lk(b,_.RO,2);RN(njd(),this.O,b)&&(this.changed=!0,this.O=b,this.V.reset());this.Ns();a.callback();pjd(this)};
_.g.Ns=function(){if(this.active){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};_.g.kN=function(){};var pjd=function(a){a.active&&(_.q.setTimeout((0,_.v)(a.poll,a),a.V.Ya()),_.PG(a.V))};ojd.prototype.$b=function(){return this.O.length};
var qjd=function(){};_.g=qjd.prototype;_.g.BK=function(a,b){return W$c(V$c(1),a).setPosition(b)};_.g.zK=function(a,b){return W$c(V$c(2).setPosition(b),a)};_.g.YC=function(a,b,c){return W$c(V$c(3).Cx(b).setPosition(c),a)};_.g.CO=function(a,b){return W$c(V$c(4),a).setPosition(b)};_.g.aL=function(a){return _.D(a,_.ml,2)};
var rjd=function(){_.tN.call(this,new qjd,function(a){return a.getId()})};_.N(rjd,_.tN);_.wf(rjd);
var uP=function(a,b,c){_.Q.call(this);this.context=a;this.request=b;this.nextPageToken="";this.H=this.O=!1;this.limit=0;this.permissions=[];this.V=c};_.N(uP,_.Q);uP.prototype.Th=function(a){this.limit=a};uP.prototype.Tg=function(){return this.H||this.O&&""===this.nextPageToken?Promise.resolve():sjd(this)};uP.prototype.bia=function(){return this.permissions};
var sjd=function(a){a.O=!0;a.H=!0;var b=Math.min(a.limit-a.permissions.length,100);var c=new _.UL;c=_.y(c,3,a.request);c=_.A(c,2,a.nextPageToken);b=_.A(c,1,b);return a.V(b).then(a.W.bind(a)).then(null,a.handleError.bind(a))};uP.prototype.W=function(a){this.H=!1;this.nextPageToken=a.Tn()||"";a=a.Me().nL();this.permissions=_.xa(this.permissions,a);a.length&&this.dispatchEvent("Cb");if(this.nextPageToken&&this.permissions.length<this.limit)return sjd(this);this.dispatchEvent("Fb")};
uP.prototype.handleError=function(a){this.H=!1;a=new vO(_.fL(a),_.wk(this.context.Mc.Of(),1,1));this.dispatchEvent(a)};
var tjd=function(a,b,c,d){aP.call(this,b.Ij,b.Ul(),d||100);var e=this;this.request=a;this.context=b;this.ka=[];this.permissions=[];this.changed=!1;this.V=null;this.ma=c;this.O=new uP(b,this.request,this.ma);_.ge(this,function(){e.V&&(_.q.clearTimeout(e.V),e.V=null)})};_.N(tjd,aP);_.g=tjd.prototype;_.g.activate=function(){aP.prototype.activate.call(this);this.Ns()};_.g.pF=function(){this.query()};_.g.Qq=function(a){aP.prototype.Qq.call(this,a||100)};
_.g.getData=function(){var a=new V1c;a=_.kb(a,2,this.permissions.slice(0,this.limit)).Ac(this.status);this.ka=_.ya(this.permissions);return a};_.g.mr=function(){var a=rjd.Fb().xy(this.ka,this.permissions),b=new cad;a=_.kb(b,2,a).Ac(this.status);this.ka=_.ya(this.permissions);return a};_.g.tj=function(){var a;(a=!this.$e())&&!(a=!this.H)&&(a=this.O,a=!a.O||""!==a.nextPageToken);return a};_.g.ud=function(){return this.request};
_.g.query=function(){var a=this;this.O=new uP(this.context,this.request,this.ma);this.O.Th(this.limit);return this.O.Tg().then(function(){return ujd(a)},function(b){return a.handleError(b)})};_.g.handleError=function(a){aP.prototype.handleError.call(this,a);vjd(this)};var ujd=function(a){a.H=!0;var b=a.O.bia();RN(rjd.Fb(),a.permissions,b)&&(a.changed=!0,a.permissions=b);a.Ns();vjd(a)};
tjd.prototype.Ns=function(){if(this.active){var a=this.status;this.GJ();if(this.changed||a!==this.status)this.changed=!1,this.dispatchEvent(new _.Fi(_.Mc,this))}};tjd.prototype.kN=function(){var a=this;this.O.Th(this.limit);this.O.Tg().then(function(){return ujd(a)},function(b){return a.handleError(b)})};var vjd=function(a){if(a.active){var b=a.context.Mc.Of();a.V=_.q.setTimeout((0,_.v)(a.query,a),Math.ceil(_.wk(b,7,9E5)*Math.random())+_.wk(b,15,36E5))}};tjd.prototype.$b=function(){return this.permissions.length};
var wjd=function(a){6!==a.status&&_.q.setTimeout(function(){a.dispatchEvent(new _.Fi(_.Mc,a))},0)};
var xjd=function(a,b){oP.call(this,"TM","drive.ds.sync.TeamDriveMovePreflightRunnerProxy",a);this.request=b;this.H=null;this.id=String(_.Ea(this))};_.N(xjd,oP);xjd.prototype.Tg=function(){var a=this;this.H||(this.H=_.oi(),this.send("10.1",[this.request.Xb()],function(b){a.H.resolve(b[0])},this.id).ef(function(b){a.H.reject(b)}));return this.H.promise};xjd.prototype.cancel=function(){this.send("10.2",[this.request.Xb()],void 0,this.id)};
var yjd=function(a,b,c){_.Q.call(this);this.instanceId=a;this.H=b;this.O=c;this.ou={};this.files={};_.ge(this,(0,_.v)(this.d7a,this))};_.N(yjd,_.Q);_.g=yjd.prototype;_.g.getId=function(){return this.instanceId};_.g.BO=function(){return _.ch()};_.g.upload=function(a,b){!_.C(a,26)&&b&&b.lastModified&&_.A(a,26,b.lastModified);var c;b&&(c=b.type?b:new File([b],b.name,{type:b.type}));if(b){var d=new _.xTc;_.A(d,1,b.size);_.y(a,15,d);this.files[a.Nj()]=b}return this.H("7.1",[a.Xb(),c],function(e){return new _.kM(JSON.parse(e[0]))})};
_.g.cancel=function(a){this.H("7.2",[a])};_.g.kH=function(){this.H("7.3",[])};_.g.retry=function(a){var b={};_.Ka(a,function(d){b[d]=new _.ri});var c=this.BO();this.ou[c]=b;this.H("7.4",[c].concat(_.Wc(a)));return _.Yc(b)};_.g.yK=function(a,b){var c=this;return this.H("7.5",[a].concat(_.Wc(b)),function(d){return zZc(d[0])}).addCallback(function(d){return _.yi(c.O.then(function(e){return e.f_a(d)}))})};_.g.d7a=function(){this.H("7.6",[])};
var zjd=function(a,b,c,d){if(a.ou[b]&&a.ou[b][c]){var e=a.ou[b][c];d instanceof _.kM?e.callback(d):e.Sd(d);delete a.ou[b][c];_.ig(a.ou[b])&&delete a.ou[b]}};
var Ajd=function(a,b){oP.call(this,"FU","drive.ds.sync.upload.FileUploaderProxyManager",a);this.O=b;this.H=new Map};_.N(Ajd,oP);var Bjd=function(a){var b=_.ch(),c=new yjd(b,function(d,e,f){return a.send(d,e,f,b)},a.O);a.H.set(b,c);_.ge(c,function(){return void a.H.delete(b)});return c};
Ajd.prototype.Nia=function(a,b,c){if((a=this.H.get(a))&&c){b=c[1];var d=c.slice(2);switch(c[0]){case 3:c=d[0];d=d[1];d=Math.min(d,1073741824);var e=a.files[b];a.H("7.7",[b,_.ERc(e,c,Math.min(e.size,c+d))]);break;case 0:c=new _.kM(JSON.parse(d[1]));zjd(a,b,d[0],c);break;case 1:c=new _.Vb(void 0,new _.Ub(JSON.parse(d[1])));zjd(a,b,d[0],c);break;case 2:a.dispatchEvent(new _.MVc(b,d[0],d[1]));break;default:throw Error("xg");}}};
var Cjd=function(a,b){if(0===a.length)throw new _.Vb("mutateUserPref requires a namespace.",_.qL(3));var c=null;b instanceof _.lC?c=(b=(b=_.D(b,_.kp,1))&&b.getKey())&&_.lp(b)||null:b instanceof _.kC&&(c=(b=b.getKey())&&_.lp(b)||null);if(!c||!a.find(function(d){return d===c}))throw new _.Vb("mutateUserPref unsupported for namespace: "+c,_.qL(3));};
var Djd=function(a){this.H=a};
var KN=function(a){oP.call(this,"IS","drive.ds.sync.ItemServiceProxy",(Ejd=_.oi()).promise);var b=this;this.rn=null;this.Ja=this.Pa=this.Ta=this.ma=!1;this.ha=this.ka=this.W=null;this.$a=new _.ro;this.Ha=new _.ro;this.V=Ejd;Ejd=void 0;this.context=a;Ehd(this.context,new $id(this.V.promise));H1c(this.context.Ig,_.Jd(this.context.Mc,28));this.H=this.context.$ca;this.O=new fid(this.V.promise,this.context,this.H);this.ob=new Ajd(this.V.promise,this.context.nO);this.Fa=new Yid(this.V.promise,this.context);
this.Ic=new _.pe(this);this.La(this.Ic);this.Ic.listen(this.context.Ul(),[].concat(_.Wc(Object.values(_.$K))),function(c){return void b.dispatchEvent(c)})},Ejd;_.N(KN,oP);
KN.prototype.initialize=function(){var a=this;if(!this.rn){this.rn=_.ji(this.oa);var b=this.context.fl().H(106E3);this.rn.then(function(){b&&b.ek();a.WYa()},function(){_.gVc(a.context.fl(),181008852)});var c=_.KM(this.context.Mc)?"(coldstart) ":"";this.context.Hf().info("drive.ds.sync.ItemServiceProxy","Initializing "+c+"with client build: "+this.context.Mc.wi());var d=lZc(this.context.Mc,this.li(),_.QM(this.context.Ig));Fjd(this,d);2===d.H?(c=new tP(new $hd,6,this.context.Hf()),Rid(c,d.O),this.Ha.resolve(c)):
EZc(this.Fa);this.context.Hf().info("drive.ds.sync.ItemServiceProxy","Connecting to worker: "+d.endpoint);d.channel.start();Chd(this.context,function(){return Gjd(d.channel)})}return this.rn};
var Gjd=function(a){return _.li([new _.gi(function(b){a.isDisposed()||tO(a,"8.1",void 0,function(){a.dispose();b()})}),_.Si(1E4)])},Fjd=function(a,b){var c=b.channel;0===b.H?c.registerService("2.0",(0,_.v)(a.Ab,a)):c.registerService("1.1",function(){return Hjd(a,b)});2===b.H?a.Ha.promise.then(function(){return void Ijd(a,b)}):Ijd(a,b);sO(c,"2.1",function(){return{dsc:a.context.Mc.Xb()}});sO(c,"2.2",function(d){"number"===typeof d.id?(a.V.resolve(new Zhd(d.id,c,a.context.Hf(),d.clients)),d.dsp&&Jjd(c),
d.ivd&&Kjd(a,c)):(d=new _.Ub(JSON.parse(d.err)),a.oa.Sd(new _.Vb("Unable to initialize dataservice.",d)))});sO(c,"2.15",function(d){a.dispatchEvent(new Vad(d.dt))});sO(c,"2.5",function(d){a.context.yt(d.id)});sO(c,"2.6",function(d){a.context.Ij.Uk(d.os)});sO(c,"2.18",function(d){a.context.Ij.Bx(d.oois)});sO(c,"2.7",function(){a.ma=!1});sO(c,"2.8",function(d){a.context.Fa=d.au;a.dispatchEvent(new n2c(d.au?"eb":"fb"))});sO(c,"2.19",function(d){a.context.Ul().update(d.cs)});sO(c,"2.9",function(d){var e=
d.logName,f=d.level;d=_.mx("[CSW %s] %s",d.totalTime,d.message);switch(f){case "config":a.context.Hf().config(e,d);break;case "fine":_.OM(a.context.Hf(),e,d,"fine");break;case "finer":_.OM(a.context.Hf(),e,d,"finer");break;case "finest":_.OM(a.context.Hf(),e,d,"finest");break;case "info":a.context.Hf().info(e,d);break;case "warning":case "severe":E1c(a.context.Hf(),e,d);break;default:E1c(a.context.Hf(),"drive.ds.sync.ItemServiceProxy","Unknown log level: "+f),E1c(a.context.Hf(),e,d)}});sO(c,"2.10",
function(d){return void a.aya(d)});sO(c,"2.12",function(){a.Ja=!0;vP(a)});sO(c,"2.14",function(){return a.$a.resolve()});sO(c,"2.16",function(){return a.Ta=!0});sO(c,"2.17",function(d){a.context.Hf().info("drive.ds.sync.ItemServiceProxy","Prefetched request loaded for: "+d.t.join(","))})},Ijd=function(a,b){1!==b.H&&2!==b.H||b.channel.send("8.5",Hjd(a,b));tO(b.channel,"8.4",{dsc:a.context.Mc.Xb()});Jjd(b.channel);Kjd(a,b.channel)},Jjd=function(a){_.q._DRIVE_dsp&&tO(a,"8.3",{dsp:Ljd(_.q._DRIVE_dsp)});
_.q._DRIVE_dspc=function(b){if(_.q._DRIVE_dsp){var c=[];c[b]=_.q._DRIVE_dsp[b];tO(a,"8.3",{dsp:Ljd(c)})}}},Kjd=function(a,b){_.E(a.context.Mc,24,!1)&&(_.q._DRIVE_ivd?tO(b,"8.2",{ivd:_.q._DRIVE_ivd}):void 0===_.q._DRIVE_ivd&&(_.q._DRIVE_ivdc=function(){_.q._DRIVE_ivd&&tO(b,"8.2",{ivd:_.q._DRIVE_ivd})}))},Hjd=function(a,b){var c={};if(1===b.H){var d=new _.Jfb(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.Mc.wi(),
ufds:b.V}};KN.prototype.Ab=function(){return{uid:this.li(),fds:_.QM(this.context.Ig)}};KN.prototype.li=function(){var a=_.Dk(_.Dk(_.RG(_.Uk(this.context.Mc),28),44),91),b=new _.KK;b.update(_.IM(_.SK(a)));b.update(String(_.gL(_.SK(a))));b.update(a.Xb());return _.GOc(b.digest())};var Ljd=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=KN.prototype;_.g.aya=function(a){this.dispatchEvent(new _.Wb(new _.Vb(void 0,new _.Ub(JSON.parse(a.p)))))};
_.g.query=function(a){vP(this);l6c(this.context.Hm,a,F1c(this.context.Ig));this.GD();var b=this.O.fua(a);this.Pa||(a=a.re(),a&&121===_.C(a,1)||(this.Pa=!0,this.Ic.listen(b,_.Mc,this.vJa)));return b};_.g.vJa=function(a){a=a.currentTarget;1===a.Cb()&&(this.Fa.H=this.Ta,this.Ic.Uc(a,_.Mc,this.vJa))};_.g.jr=function(a){vP(this);j6c(a);this.GD();return this.O.cua(a)};
_.g.osa=function(a,b){var c=this;vP(this);if(this.ka&&_.Tk(this.ka.ud(),a))return this.ka;var d=(0,_.v)(KN.prototype.Rmb,this);this.ka=new ijd(_.Uk(a),this.context,d,b);_.q.setTimeout(function(){c.ka=null},3E3);return this.ka};_.g.Rmb=function(a,b,c){return this.send("3.17",[a.Xb(),b,c],function(d){return new x5c(JSON.parse(d[0]))})};
_.g.LCa=function(a,b){var c=this;vP(this);if(this.ha&&_.Tk(this.ha.ud(),a))return wjd(this.ha),this.ha;var d=(0,_.v)(KN.prototype.Tmb,this);this.ha=new tjd(a,this.context,d,b);_.q.setTimeout(function(){c.ha=null},3E3);return this.ha};_.g.Tmb=function(a){return this.send("3.18",[a.Xb()],function(b){return new dad(JSON.parse(b[0]))})};_.g.Z8=function(a){vP(this);return this.send("3.14",[a.Xb()],function(b){return new WO(JSON.parse(b[0]))})};
_.g.q6=function(a){vP(this);return this.send("3.15",[a.Xb()],function(b){return new WO(JSON.parse(b[0]))})};_.g.qd=function(a){vP(this);!this.ma&&_.lM(a)&&(this.ma=!0);a=nZc(a);return this.send("3.3",[a.Xb()],function(b){if(!_.ld(b))return new _.kM(JSON.parse(b[0]))})};_.g.fM=function(a){vP(this);a=xZc(a);return this.send("3.35",[a.Xb()],function(b){return new m2c(JSON.parse(b[0]))}).then()};
_.g.gy=function(a){vP(this);for(var b=0;b<a.length;b++)!this.ma&&_.lM(a[b])&&(this.ma=!0);a=qZc(a);return this.send("3.4",[a.Xb()],function(c){var d={};c=JSON.parse(c[0]);_.bg(c[0],function(e,f){d[f]=new _.kM(JSON.parse(e))});_.bg(c[1],function(e,f){e=new _.Ub(JSON.parse(e));d[f]=_.rL(e)});return d})};_.g.bua=function(){vP(this);return Bjd(this.ob)};_.g.fPa=function(a){vP(this);return new Zid(this.V.promise,a)};
_.g.Wp=function(a,b){var c=this;vP(this);var d=_.ah();this.H.create(d,a);return this.send("3.5",[a.Xb(),!!b],function(e){e=JSON.parse(e);var f=new wO(JSON.parse(e[0]));return new _.aN(f,e[1],e[2])}).addCallback(function(e){J6c(c.H,d,e);return e.response}).ef(function(e){uO(c.H,d);return e})};_.g.Eq=function(a){vP(this);return this.send("3.10",[a.Xb()],function(b){return new aad(JSON.parse(b[0]))})};_.g.b9=function(a){vP(this);return this.send("3.11",[a.Xb()],function(b){return new ead(JSON.parse(b[0]))})};
_.g.o6=function(a){vP(this);return this.send("3.12",[a.Xb()],function(b){return new ead(JSON.parse(b[0]))})};_.g.qR=function(a){vP(this);return this.send("3.13",[a.Xb()],function(b){return new ead(JSON.parse(b[0]))})};
_.g.AL=function(a,b){var c=this;vP(this);var d=_.ah();this.H.create(d,a);return this.send("3.1",[a.Xb(),!!b],function(e){e=JSON.parse(e);var f=new _.ZO(JSON.parse(e[0]));return new _.dN(f,e[1],e[2])}).addCallback(function(e){J6c(c.H,d,e);return e.response}).ef(function(e){uO(c.H,d);return e})};
_.g.nF=function(a,b){var c=this,d=_.Jd(this.context.Mc.Of(),30);if(!d||0===d.length)return _.zi(new _.Vb("getUserPrefs requires a namespace.",_.qL(3)));0===_.Jd(a,3).length&&KZc(a,d);vP(this);var e=_.ah();this.H.create(e,a);return this.send("3.2",[a.Xb(),!!b],function(f){f=JSON.parse(f);var h=new _.mp(JSON.parse(f[0]));return new _.cN(h,f[1],f[2])}).addCallback(function(f){J6c(c.H,e,f);return f.response}).ef(function(f){uO(c.H,e);return f})};
_.g.iQ=function(a){vP(this);Cjd(_.Jd(this.context.Mc.Of(),30),a);a=uZc(a);return this.send("3.6",[a.Xb()],function(b){return new fad(JSON.parse(b[0]))})};_.g.Ys=function(a){vP(this);return this.send("3.16",[a.Xb()],function(b){return new X1c(JSON.parse(b[0]))})};_.g.xya=function(){return this.ma};_.g.Uk=function(a){vP(this);this.send("3.8",[a])};_.g.Bx=function(a){vP(this);return this.send("3.36",[a],function(b){return!!b[0]}).then()};_.g.lW=function(a){vP(this);Dhd(this.context).lW(a);this.Bx(!!a)};
_.g.GD=function(){vP(this);this.send("3.9",[])};_.g.kQ=function(){vP(this);this.send("3.41",[]);this.context.kQ();var a=O1c(this.context.fl(),106006);a&&this.V.promise.then(function(b){var c=_.D(_.WM(a),w1c,6);if(!c){c=new w1c;var d=_.WM(a);_.y(d,6,c)}c=_.A(c,1,b.clientId);_.A(c,2,b.O);a.ek()},function(){})};_.g.iA=function(){vP(this);return this.context.iA()};_.g.uO=function(){vP(this);return _.ji(this.send("3.19",[],function(a){return new W6c(JSON.parse(a[0]))}))};_.g.isConnected=function(){return this.context.Ul().isConnected()};
_.g.Bta=function(){return this.send("3.46",[],function(a){return new Q1c(JSON.parse(a[0]))}).then()};_.g.A7=function(){return this.Fa};_.g.sync=function(){vP(this);return this.send("3.28",[]).then()};_.g.At=function(){return this.context.At()};_.g.jW=function(a){this.Ha.promise.then(function(b){return void b.jW(a)})};_.g.Hna=function(a){vP(this);return this.O.mua(a)};_.g.QW=function(a){vP(this);return this.O.lua(a)};_.g.HCa=function(a){vP(this);o6c(this.context.Hm,a,F1c(this.context.Ig));return this.O.iua(a)};
_.g.Ina=function(a){vP(this);return new xjd(this.V.promise,a)};_.g.Ysa=function(a){vP(this);if(!this.W||this.W.isDisposed()){var b=KN.prototype.Smb.bind(this);this.W=new ojd(a,this.context,b)}return this.W};_.g.Smb=function(a){return this.send("3.20",[a.Xb()],function(b){return new Qad(JSON.parse(b[0]))})};_.g.qDa=function(){this.W&&!this.W.isDisposed()?this.W.poll().then():_.ji()};_.g.HT=function(a){vP(this);return this.send("3.25",[a.Xb()],function(b){return new Mad(JSON.parse(b[0]))})};
_.g.p6=function(a){vP(this);return this.send("3.22",[a.Xb()],function(){return new Rad})};_.g.n$=function(){return this.$a.promise};_.g.rla=function(a){var b=_.oi();this.send("3.30",[a.Xb()],function(c){c[0]?b.resolve(new Tad(JSON.parse(c[0]))):b.reject(new _.Vb(void 0,new _.Ub(JSON.parse(c[1]))))}).ef(function(c){return void b.reject(c)});return b.promise};_.g.yta=function(a){vP(this);return this.O.$ta(a)};_.g.G5=function(a){vP(this);return this.send("3.42",[a.Xb()],function(b){return new l3c(JSON.parse(b[0]))}).then()};
_.g.rR=function(a){vP(this);var b=new _.ro;this.send("3.39",[a.Xb()],function(c){return JSON.parse(c).map(function(d){return new T6c(JSON.parse(d))})}).then(function(c){return void b.resolve(c)},function(c){return void b.reject(c)});return Promise.resolve(new Djd(b.promise))};_.g.bDa=function(a){var b=this;vP(this);return new bjd(this.context,a,function(c){return b.send("3.37",[c.request.Xb(),c.pageToken],function(d){d=JSON.parse(d);return new E5c(new XO(JSON.parse(d[0])),d[1])}).then()})};
_.g.Dla=function(a){vP(this);return this.send("3.38",[a.Xb()],function(b){return new nad(JSON.parse(b[0]))}).then()};_.g.NHa=function(a){vP(this);return this.O.qua(a)};_.g.xoa=function(a){vP(this);return this.O.pua(a)};_.g.hGa=function(a){var b=this;vP(this);return new cjd(this.context,a,function(){return b.send("3.40",[a.Xb()],function(c){return new _.xN(JSON.parse(c[0]))}).then()})};_.g.zna=function(a){vP(this);return this.O.jua(a)};_.g.xY=function(a){vP(this);this.send("3.43",[a.Xb()])};
_.g.bZ=function(a){vP(this);return this.send("3.44",[a.Xb()],function(){return new g2c}).then()};_.g.So=function(a){vP(this);if(1!==_.JM(this.context.Mc))return Promise.reject(Error("yg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Gc())return Promise.reject(Error("zg"));if(!c.Xj()&&!c.getItem())return Promise.reject(Error("Ag"))}return Promise.resolve(this.send("3.45",[a.map(function(d){return d.Xb()})]))};
_.g.WYa=function(){var a=this;if(3===this.context.getEnvironment()){var b=[_.Si(1E4,!1),this.send("3.29",[],function(c){return!!c[0]}).then()];_.li(b).then(function(c){c?_.Qi(a.WYa.bind(a),6E4):(a.Ja=!0,vP(a))})}};var vP=function(a){a.Ja&&a.dispatchEvent(new ubd)};
var h_c=function(a){cP.call(this,a);this.ha=this.ka=this.oa=null;this.kb=_.oi();this.H=a.Yl()};_.N(h_c,cP);h_c.prototype.SOa=function(){this.Ha=new lid(this.context);this.La(this.Ha);this.Ja=new pid(this.context);this.La(this.Ja);this.Pa=new wid(this.context);this.La(this.Pa)};
h_c.prototype.$a=function(){var a=this,b=["hVFf7"];_.KM(this.context.Mc)&&b.push("BNEDtc");AO(this.O,b,function(){return void a.tTa()});AO(this.O,["T8oKm","ZA9qG"],function(){return void Mjd(a)});AO(this.O,["T8oKm","mrK8ic"],function(){return void Mjd(a)});this.Ic.listen(this.Ha,"WPi0i",this.Ypa.bind(this,1));this.Ic.listen(this.Ja,"Qb",this.Ypa.bind(this,2));this.Ic.listen(this.Pa,"WPi0i",this.Ypa.bind(this,4));AO(this.O,["GZTDpc"],function(){return a.kb.resolve()})};var Mjd=function(a){gP(a.context).addCallback(function(b){b.start()})};
_.g=h_c.prototype;_.g.Ypa=function(a){_.na(k2c,a)&&this.dispatchEvent(new Vad(a))};_.g.QW=function(a){return this.V.lua(_.Uk(a))};_.g.HCa=function(a){o6c(this.context.Hm,a,F1c(this.context.Ig));return this.V.iua(_.Uk(a))};_.g.Hna=function(a){return this.V.mua(_.Uk(a))};_.g.Ina=function(a){return new Lid(a,this.context.Yl())};
_.g.osa=function(a,b){var c=this;if(this.oa&&_.Tk(this.oa.ud(),a))return this.oa;this.oa=new ijd(_.Uk(a),this.context,this.Wfb.bind(this),b);_.q.setTimeout(function(){c.oa=null},3E3);return this.oa};_.g.Wfb=function(a,b,c){var d=new _.SRc(a,b,c);return _.yi(this.H.then(function(e){return e.Qe(d)}).Yf(function(e){return _.tL(e)}))};_.g.Ysa=function(a){var b=this;if(!this.ha||this.ha.isDisposed())this.ha=new ojd(a,this.context,function(c){return Njd(b,c)});return this.ha};var Njd=function(a,b){return _.yi(a.H.then(function(c){return c.Qe(b)}).Yf(function(c){return _.tL(c)}))};
_.g=h_c.prototype;_.g.qDa=function(){this.ha&&!this.ha.isDisposed()?this.ha.poll().then():_.ji()};_.g.HT=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}))};_.g.p6=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}))};_.g.LCa=function(a,b){var c=this;if(this.ka&&_.Tk(this.ka.ud(),a))return wjd(this.ka),this.ka;this.ka=new tjd(_.Uk(a),this.context,this.VFb.bind(this),b);_.q.setTimeout(function(){c.ka=null},3E3);return this.ka};
_.g.VFb=function(a){var b=this;return this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.XK(b.context.Mc)?e8c(b.context.jf.uq,c.Me().nL(),a.ud().getId()).then(function(){return c}):c},_.tL)};_.g.Z8=function(a){var b=this;return _.yi(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.XK(b.context.Mc)?e8c(b.context.jf.uq,[_.D(c,_.ml,2)],a.Gc()).then(function(){return c}):c},_.tL))};_.g.q6=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};
_.g.yta=function(a){return this.V.$ta(_.Uk(a))};_.g.G5=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.tL)};_.g.rR=function(a){return this.H.then(function(b){return b.Qe(a)}).then(function(b){var c=new _.ro;o8c(a,b).then(function(d){return c.resolve(d)});return new Djd(c.promise)},function(b){return void _.tL(b)})};_.g.bDa=function(a){var b=this;return new bjd(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Yf(function(d){return _.tL(d)})})};
_.g.Dla=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.tL)};_.g.qd=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};_.g.fM=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.tL)};_.g.gy=function(a){var b=this,c=[],d=[];a.forEach(function(f){f instanceof _.vL?c.push(String(f.Gc())):c.push(String(f.getId()));d.push(b.qd(f))});a=new _.Dp(d);var e=new _.ri;a.addCallback(this.yib.bind(this,e,c));return e};
_.g.bua=function(){return new Cid(this.context.Mc,this.context.qz,this.context.uP().Zca,this.context.Yl(),this.context.nO,this.context.Hf(),this.context.fl())};_.g.Wp=function(a,b){var c=this,d=_.ah();this.W.create(d,a);3===a.getType()?a=cP.prototype.Wp.call(this,a).addCallback(function(e){return new _.aN(e,1,!1)}):(BO(this.O,"Qubz4b"),a=this.Ja.enqueue(new uid(a,b)));return a.addCallback(function(e){J6c(c.W,d,e);return e.response}).ef(function(){uO(c.W,d)})};
_.g.Eq=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};_.g.b9=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};_.g.o6=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};_.g.qR=function(a){return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};
_.g.AL=function(a,b){var c=this;BO(this.O,"iuEtc");var d=_.ah();this.W.create(d,a);return this.Ha.enqueue(new nid(a,b)).addCallback(function(e){J6c(c.W,d,e);return e.response}).ef(function(){uO(c.W,d)})};
_.g.nF=function(a,b){var c=this,d=_.Jd(this.context.Mc.Of(),30);if(!d||0===d.length)return _.zi(new _.Vb("getUserPrefs requires a namespace.",_.qL(3)));0===_.Jd(a,3).length&&KZc(a,d);var e=_.ah();this.W.create(e,a);BO(this.O,"OZvrNc");return this.Pa.enqueue(new zid(a,b)).addCallback(function(f){J6c(c.W,e,f);return f.response}).ef(function(){uO(c.W,e)})};_.g.iQ=function(a){Cjd(_.Jd(this.context.Mc.Of(),30),a);return _.yi(this.H.then(function(b){return b.Qe(a)}).then(null,_.tL))};
_.g.Ys=function(a){var b=this;return _.yi(this.H.then(function(c){return c.Qe(a)}).then(function(c){return _.XK(b.context.Mc)?d8c(b.context.jf.uq,c):c},_.tL))};_.g.NHa=function(a){return this.V.qua(_.Uk(a))};_.g.xoa=function(a){return this.V.pua(_.Uk(a))};_.g.hGa=function(a){var b=this;return new cjd(this.context,a,function(c){return b.H.then(function(d){return d.Qe(c)}).Yf(function(d){return _.tL(d)})})};_.g.zna=function(a){return this.V.jua(_.Uk(a))};_.g.xY=function(a){jdd(this.context.jf,[a])};
_.g.bZ=function(a){return this.H.then(function(b){return b.Qe(a)}).then(null,_.tL)};_.g.So=function(a){if(1!==_.JM(this.context.Mc))return Promise.reject(Error("yg"));for(var b=_.m(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!c.Gc())return Promise.reject(Error("zg"));if(!c.Xj()&&!c.getItem())return Promise.reject(Error("Ag"))}this.context.jf.So(a);Tdd(this.context.jf);return Promise.resolve()};_.g.xya=function(){return this.context.uP().gI()};
_.g.Bx=function(a){var b=this;return this.context.Bx(a).then(function(c){return c?(b.context.Ij.Bx(a),b.context.Lr.pJ()):_.ji(!a)})};_.g.lW=function(a){Dhd(this.context).lW(a);this.Bx(!!a)};_.g.GD=function(){gP(this.context).addCallback(function(a){a&&a.W1()});this.context.zea.GD()};_.g.jW=function(a){a.Rj(this.context)};_.g.yib=function(a,b,c){for(var d={},e=0;e<c.length;e++)d[b[e]]=c[e][1];Tdd(this.context.jf);a.callback(d)};_.g.sync=function(){var a=this;return _.mi([this.context.W8.promise,this.context.ka.promise]).then(function(){return a.context.Lr.pJ()}).then()};
_.g.At=function(){gP(this.context).addCallback(function(a){a&&a.dispose()});return cP.prototype.At.call(this)};_.g.n$=function(){return this.kb.promise};
var Ojd=function(){var a='<div class="'+_.J("la-r")+'">';a=a+'Something went wrong. Please reload.</div><button class="'+(_.J("la-Y-A")+" "+_.J("kc-A")+'" data-target="reload">');return(0,_.K)(a+"Reload</button>")};
_.tp({id:_.fl,callback:function(a){var b=_.sYc(a),c=j_c(a),d=_.D(a.get(_.jm),_.Cb,10);_.rTc(d,b);_.A(d,28,c||[]);b=i_c(a,d);a.registerService(_.gl,b.A7());_.te(b,"VbxEwf",function(){var e={};_.ec(_.rx.getService(a),new _.er(new _.dr(Ojd,{}),"d",(e.reload=function(){_.q.window.location.reload()},e),4))});return b}});

_.w();

}catch(e){_._DumpException(e)}
try{
_.Pjd=function(a,b){return _.y(a,17,b)};_.Qjd=function(a,b){return _.A(a,2,b)};_.Rjd=function(a,b){return _.A(a,1,b)};_.Sjd=function(a,b){return _.y(a,2,b)};_.Tjd=function(a,b){return _.kb(a,1,b)};_.Ujd=function(a,b){return _.A(a,1,b||[])};_.Vjd=function(a,b){return _.kb(a,2,b)};_.Wjd=function(a,b){return _.y(a,3,b)};_.r("RsR2Mc");



_.w();

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