"use strict";this.default_vw=this.default_vw||{};(function(_){var window=this;
try{
var eSa;_.IE=function(a,c){if(!Number.isFinite(a))return String(a);a=String(a);var e=a.indexOf(".");e===-1&&(e=a.length);var f=a[0]==="-"?"-":"";f&&(a=a.substring(1));return f+(0,_.Xn)("0",Math.max(0,c-e))+a};
eSa={z3:["BC","AD"],y3:["Before Christ","Anno Domini"],paa:"JFMAMJJASOND".split(""),qba:"JFMAMJJASOND".split(""),jaa:"January February March April May June July August September October November December".split(" "),pba:"January February March April May June July August September October November December".split(" "),gba:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),sba:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Xba:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
uba:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),iba:"Sun Mon Tue Wed Thu Fri Sat".split(" "),tba:"Sun Mon Tue Wed Thu Fri Sat".split(" "),qaa:"SMTWTFS".split(""),rba:"SMTWTFS".split(""),hba:["Q1","Q2","Q3","Q4"],Jaa:["1st quarter","2nd quarter","3rd quarter","4th quarter"],L2:["AM","PM"],cR:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],FT:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],j3:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],
RB:6,cya:[5,6],bI:5};_.JE=eSa;_.JE=eSa;var gSa;_.fSa=function(a,c){switch(c){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};_.LE=function(a,c,e){typeof a==="number"?(this.date=gSa(a,c||0,e||1),KE(this,e||1)):_.db(a)?(this.date=gSa(a.getFullYear(),a.getMonth(),a.getDate()),KE(this,a.getDate())):(this.date=new Date(_.He()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),KE(this,a))};
gSa=function(a,c,e){c=new Date(a,c,e);a>=0&&a<100&&c.setFullYear(c.getFullYear()-1900);return c};_.l=_.LE.prototype;_.l.wz=_.JE.RB;_.l.mE=_.JE.bI;_.l.clone=function(){var a=new _.LE(this.date);a.wz=this.wz;a.mE=this.mE;return a};_.l.getFullYear=function(){return this.date.getFullYear()};_.l.getYear=function(){return this.getFullYear()};_.l.getMonth=function(){return this.date.getMonth()};_.l.getDate=function(){return this.date.getDate()};_.l.getTime=function(){return this.date.getTime()};
_.l.getDay=function(){return this.date.getDay()};_.l.getUTCFullYear=function(){return this.date.getUTCFullYear()};_.l.getUTCMonth=function(){return this.date.getUTCMonth()};_.l.getUTCDate=function(){return this.date.getUTCDate()};_.l.getUTCDay=function(){return this.date.getDay()};_.l.getUTCHours=function(){return this.date.getUTCHours()};_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};_.l.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.l.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};_.l.setFullYear=function(a){this.date.setFullYear(a)};_.l.setYear=function(a){this.setFullYear(a)};_.l.setMonth=function(a){this.date.setMonth(a)};_.l.setDate=function(a){this.date.setDate(a)};_.l.setTime=function(a){this.date.setTime(a)};_.l.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};_.l.setUTCMonth=function(a){this.date.setUTCMonth(a)};_.l.setUTCDate=function(a){this.date.setUTCDate(a)};
_.l.add=function(a){if(a.H||a.F){var c=this.getMonth()+a.F+a.H*12,e=this.getYear()+Math.floor(c/12);c%=12;c<0&&(c+=12);var f=Math.min(_.fSa(e,c),this.getDate());this.setDate(1);this.setFullYear(e);this.setMonth(c);this.setDate(f)}a.zh&&(e=this.getYear(),c=e>=0&&e<=99?-1900:0,a=new Date((new Date(e,this.getMonth(),this.getDate(),12)).getTime()+a.zh*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+c),this.setMonth(a.getMonth()),this.setDate(a.getDate()),KE(this,a.getDate()))};
_.l.mx=function(a){var c=this.getFullYear(),e=c<0?"-":c>=1E4?"+":"";return[e+_.IE(Math.abs(c),e?6:4),_.IE(this.getMonth()+1,2),_.IE(this.getDate(),2)].join(a?"-":"")};_.l.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};_.l.toString=function(){return this.mx()};var KE=function(a,c){a.getDate()!=c&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<c?1:-1))};_.LE.prototype.valueOf=function(){return this.date.valueOf()};
}catch(e){_._DumpException(e)}
try{
var iSa,ME,NE,jSa,kSa,OE,QE,mSa,nSa,RE,oSa,pSa,TE,vSa,wSa,ySa,$E,zSa;_.hSa=function(a){return function(c){c=JSON.parse(c);if(!Array.isArray(c))throw Error("S`"+_.ac(c)+"`"+c);_.Ab(c);return new a(c)}};iSa=function(){_.Ee.call(this)};ME=function(a,c){this.F=a;this.H=c;this.B=!0};NE=function(a){var c={};a=a.replace(/\r/g,"").split("\n");for(var e=0;e<a.length;e++){var f=a[e],g=f.indexOf(":");g<0||(c[f.substring(0,g)]=f.substring(g+2,f.length))}return c};
jSa=function(a){var c="";_.re(a,function(e,f){c+=f+": "+e+"\r\n"});return c};kSa=function(){};OE=function(a,c){_.Ee.call(this);this.H=a;this.EM=this.C=null;this.D=0;this.L=Infinity;this.R=c||5E6;this.tb=this.B=null};_.PE=function(){this.B=-1};QE=function(){this.B=-1;this.B=64;this.C=Array(4);this.H=Array(this.B);this.F=this.D=0;this.reset()};_.lSa=function(){var a=new _.bm;_.Vl(a);_.Hl(a,Error(a));return a};mSa=function(a,c){a.F=c};
nSa=function(a){return typeof a.B==="string"||Array.isArray(a.B)||_.yya&&a.B instanceof Blob};RE=function(a){return{ReqUri:a.C,ReqContent:a.X,ReqMethod:a.I}};oSa=function(a){try{return decodeURIComponent(a)}catch(e){var c=_.Wl(e);if(_.am(c))return null;throw c.B;}};pSa=function(a,c){_.wh.call(this,a,c);_.Hl(this,Error(this))};_.G(pSa,_.wh);
var qSa=function(a){a=new pSa("Deferred errback'ed: "+_.Al(a.C),a,null);_.Hl(a,Error(a));return a},rSa=function(a,c){_.xf(a,function(e){c.callback(e)},function(e){_.Xl(e)?e=qSa(e):e instanceof Error?(e=_.Wl(e),e=qSa(e)):(e=new pSa("Deferred errback'ed",null,e),_.Hl(e,Error(e)));_.wr(c,e)})},sSa=function(a,c){c=c?c:(_.gs(),_.es);return a==401?(_.gs(),_.hra):a==403?(_.gs(),_.gra):a==421?(_.gs(),_.lra):a==423?(_.gs(),_.mra):a==512||a==432?(_.gs(),_.sra):a==433?(_.gs(),_.fra):a==434?(_.gs(),_.tra):a==
445?(_.gs(),_.rra):a==202||a==405||a==409||a==429||a>=500&&a<=599&&a!=550?(_.gs(),_.kra):a==413?(_.gs(),_.qra):a>=400&&a<=499||a==550?c:(_.gs(),_.ds)},tSa=function(a,c){this.C=a;this.B=c};tSa.prototype.notify=function(a,c){this.B!=null&&this.B.jf()&&this.B.B()||this.C.notify(a,c)};_.uSa=function(a){this.B=a?_.ze(a):{};this.C=null};_.uSa.prototype.ce=function(){return this.B.token||null};var SE=function(a,c,e,f,g){_.pe.call(this,a);this.C=this.cause=null;this.errorCode=c;this.B=e;this.F=g};
_.G(SE,_.pe);SE.prototype.Qi=function(){return this.type=="p"||this.type=="q"};SE.prototype.getType=function(){return this.type};TE=function(a){return a.C.includes("/save")};vSa=function(a){return a.replace(/[0-9a-zA-Z]/g,"a").replace(/[^\u0000-\u007F]/g,"b")};wSa=function(a){return a.length<=100?vSa(a):vSa(a.substring(0,50))+" (truncated) "+vSa(a.substring(a.length-50))};_.UE=function(){};_.UE.prototype.stringify=function(a){return _.ma.JSON.stringify(a,void 0)};
_.UE.prototype.parse=function(a){return _.ma.JSON.parse(a,void 0)};
var WE=function(a,c,e){_.Ee.call(this);var f=this;this.D=a;this.H=function(g){_.VE(f.D,"tfe",g)};this.tb=this.B=null;this.F=new _.mh(this);this.F.listen(this.D,"m",this.L);if(this.C=e)_.Ah(this.C,"browserChannel_lastStatusCode",function(){return f.B?String(f.B.KI()):"null"}),_.Ah(this.C,"browserChannel_currentError",function(){return f.B?String(f.B.H):"null"}),_.Ah(this.C,"browserChannel_channel_id",function(){return f.B?String(f.B.Ua):"null"});e==null||_.nr(c,"icso")};_.G(WE,_.Ee);
WE.prototype.L=function(){this.B&&this.B.X0(this.D.B.B)};WE.prototype.oa=function(){this.B&&!this.B.isDisposed()&&(this.B.unsubscribe("tfe_changed",this.H),this.B.Ta(),this.B.Vsa());this.B=null;_.ke(this.F);_.Ee.prototype.oa.call(this)};var XE=function(a,c){_.ne.call(this);this.C=[];this.H=a;(this.B=c||null)&&this.ka(this.B);this.D=this.F=null;this.B&&(this.D=new _.Ie(500),this.F=new _.mh(this),this.F.listen(this.D,"tick",this.xta))};_.G(XE,_.ne);_.l=XE.prototype;
_.l.enqueue=function(a){if(this.B){if(!_.Xr(this.B)||this.C.length!=0){this.C.push(a);this.D.start();return}_.Yr(this.B)}this.H(a)};_.l.reset=function(){this.C=[];this.D&&this.D.stop()};_.l.contains=function(a){return _.Ta(this.C,a)};_.l.remove=function(a){_.Xa(this.C,a);xSa(this)};_.l.xta=function(){for(;this.C.length>0&&_.Xr(this.B);)_.Yr(this.B),this.H(this.C.shift());xSa(this)};var xSa=function(a){a.C.length==0&&a.D&&a.D.stop()};XE.prototype.oa=function(){_.ke(this.F);_.ke(this.D);_.ne.prototype.oa.call(this)};
ySa=_.Fd(_.aw);$E=function(a){if(YE(a)&&a.D!=null&&_.oa(a.D||"",")]}'\n")){try{var c=ZE(a)}catch(e){return null}if(Array.isArray(c)&&(a=c[0],Array.isArray(a)&&a[0]==_.aw.messageId))return ySa(JSON.stringify(a))}return null};zSa=function(a){a=$E(a);if(!a)return null;var c;return(a=(c=_.bw(a))==null?void 0:_.rl(c,_.jla))?a:null};_.aF=function(a){this.W=_.B(a)};_.G(_.aF,_.D);
var ASa=function(a,c,e,f){_.Ee.call(this);this.C=f?_.ze(f):_.Pya;this.D="";this.tb=null;if(!e){e=a.get("info_params");var g;typeof e==="string"?g=JSON.parse(e):g=_.qqa(a,"info_params");a=_.te(g,String);if(e=_.ma._docs_coldstart_url){a:{try{_.Jr();var h=_.Xla(e,_.Ula(35));var k=h<0?null:e.substr(h+1|0);var p=k==null?null:decodeURIComponent(k)}catch(q){p=_.Wl(q);if(_.am(p)){p={};break a}throw p.B;}k={};if(p)for(_.Ir(),p=p.split("&"),h=0;h<p.length;h++)e=p[h],_.Ir(),f=e.split("="),f.length==2&&(e=oSa(f[0]),
f=oSa(f[1]),e&&f&&_.ar(k,e,f));p=k}p=p.resourcekey}else p=null;p?a.resourcekey=p:g.resourcekey&&(g=_.xd(_.aF,(0,_.vk)(g.resourcekey)),g=_.Qi(g,2),g!=null&&(a.resourcekey=g));e=new _.uSa(a)}this.B=e;(c=_.Yg((c||_.ma).location.href,"authkey"))&&_.VE(this,"authkey",c)};_.G(ASa,_.Ee);_.VE=function(a,c,e){var f=a.B;if(e){if(f.B[c]=e,f.C&&(c=f.ce()))f.C.callback(c),f.C=null}else delete f.B[c];a.dispatchEvent("m")};ASa.prototype.ce=function(){return this.B.ce()};
_.bF=function(a,c,e,f,g,h,k,p,q,u,x,z){_.Ee.call(this);var A=this;this.xa=a;this.da=c;this.U=u||null;this.F=new ASa(c,e,h,p);this.ka(this.F);this.I=new _.mh(this);this.ka(this.I);this.B=f||null;f&&(a=this.B,mSa(a,new tSa(a.F,this.U)),this.I.listen(a,"a",this.tia));this.L=x||new WE(this.F,this.da,this.B);this.ka(this.L);this.C=g||new _.Yv;this.ja=q||null;this.qa=z||null;this.ca=new _.cw;this.ka(this.ca);this.H=[];this.aa=[];this.X=new XE(function(C){A.C.getState().B>=5||(A.C.getState()==(_.gs(),_.cs)&&
A.C.cb((_.gs(),_.ira)),A.I.ob(C,"j",A.LX),TE(C)&&Date.now(),C.send(A.F))},k);this.ka(this.X);this.tb=null;this.D=(_.gs(),_.es);this.Ja=new _.is;this.ka(this.Ja);this.la=new _.is;this.ka(this.la);this.ua=new _.ks;this.ka(this.ua);this.I.listen(this.L,"l",this.va)};_.G(_.bF,_.Ee);_.l=_.bF.prototype;_.l.Au=function(a){a=this.az(a);_.Qv(a,this.F.D);return a};_.l.az=function(a){return new cF(this,a,this,this.da,this.ja,this.xa.B)};
_.l.send=function(a){a.isDisposed()?this.B&&this.B.log(Error("Nd")):(TE(a)&&Date.now(),_.Va(this.H,a),this.X.enqueue(a),this.I.ob(a,"k",this.Lja))};
_.l.LX=function(a){var c=a.target;TE(c)&&Date.now();var e=a.response;e.Hp("X-Restart")=="SOON"&&this.C.D.dispatchEvent(null);BSa(this,e);this.B&&CSa(e)&&c.F!=1&&(c.C.startsWith("/logImpressions")||c.C.startsWith("/naLogImpressions")||this.B.log(Error("Qd"),DSa(e)));if(a=ESa(e)){var f=!0,g=!1;if(a.type=="o"){try{c.da(e),dF(this,c)}catch(q){try{var h={XhrNetEvent_requestUri:c.C,XhrNetEvent_contentType:e.F,XhrNetEvent_responseType:e.Hj(),XhrNetEvent_errorCode:e.B,XhrNetEvent_statusCode:e.C,XhrNetEvent_isStringResponseType:YE(e),
XhrNetEvent_responseServerHeader:e.Hp("server")||e.Hp("Server"),XhrNetEvent_mobileNativeResponseUrl:e.Hp("mobileNativeRedirectResponseUrl")||"(not set)",XhrNetEvent_certificateChains:e.Hp("certificateChains")||"(not set)",XhrNetEvent_responseObjectLength:(e.D||"").length,XhrNetEvent_responseObject:YE(e)?wSa(e.D||""):"responseObject"}}catch(u){h={XhrNetEvent_contextObjectError:u.toString()}}if(a.type=="o"&&e.F.includes("text/html")&&e.C==200){a=new SE("n",5,a.B,function(){return null},h);this.B&&this.B.Of(q,
h,null);c.handleError(a)==0&&(f=!1);dF(this,c);c.dispose();f&&this.dispatchEvent(a);return}a=new SE("r",a.errorCode,a.B,function(){return ZE(e)},h);a.cause=q;a.C="o";dF(this,c,this.D)}c.dispose()}else if(a.Qi())switch(FSa(this,a,c,e)){case 4:g=!0;a.C=a.type;a.type="n";break;case 1:a.C=a.type;a.type="n";break;case 3:f=!1;break;case 2:a.F instanceof _.aw&&_.Qi(a.F,2,_.Kb)}else a.type=="s"&&(this.B&&this.B.info(Error("Od")),dF(this,c,(_.gs(),_.nra)),f=!1);if(a.type=="n"){a.F instanceof _.aw&&_.Qi(a.F,
2,_.Kb);try{if(c.handleError(a)==0&&(f=!1),c.va)dF(this,c);else{var k=c.ua(a);if(k||g)dF(this,c,k||(_.gs(),_.es));else{var p=sSa(a.B,this.D);(this.D&&p==this.D||p==(_.gs(),_.es))&&this.B&&this.B.log(Error("Pd"),{XhrNetEvent_type:"ERROR",XhrNetEvent_httpStatus:a.B.toString(),shouldDispatch:f});dF(this,c,p)}}}catch(q){a=new SE("r",a.errorCode,a.B,function(){return ZE(e)}),a.cause=q,a.C="n",dF(this,c,this.D)}c.dispose()}f&&this.dispatchEvent(a)}};
_.l.Lja=function(a){a=a.target;TE(a)&&Date.now();this.X.contains(a)?this.X.remove(a):_.Ta(this.H,a)&&(this.I.Cb(a,"j",this.LX),dF(this,a));_.Xa(this.H,a);_.Xa(this.aa,a)};
var dF=function(a,c,e){var f=a.C.getState(),g=f,h=e||(_.gs(),_.ds);e=!e;_.Xa(a.H,c);_.Xa(a.aa,c);if(!(f.B>=5))if(h.B>=5)a.C.cb(h,c.C);else{var k=a.L.B!=null||_.mk(a.H,function(p){return p.F==3});if(f==(_.gs(),_.ira))e||!k?a.H.length==0&&(g=(_.gs(),_.cs)):(GSa(a),g=h);else if(e)if(a.H.length>0)g=(_.gs(),_.jra),HSa(a);else{if(a.L.B==null||a.L.B.PR())g=(_.gs(),_.cs)}else g=h;a.C.cb(g,c.C)}},FSa=function(a,c,e,f){var g=!1;if(c.B==200){var h=$E(f);if(h){var k;if(h=(k=_.rl(_.Hk(h,_.xl,10,_.Kb),_.jla))==
null?void 0:k.ce())_.eF(a,h),g=!0}}c.B==400&&(f=zSa(f))&&f.ce()&&(_.eF(a,f.ce()),g=!0);c.B==409&&_.VE(a.F,"tfe",null);f=a.C.getState().B>=5;k=c.type=="q";if(!f&&g&&e.H.C<=1)return ISa(a,e,2),3;h=c.B===0?1:3;if(!f&&e.F!=1&&e.H.C<4)return ISa(a,e,h),3;if(e.F==3){if(f)return 2;a.L.B==null||k?ISa(a,e,h):a.aa.push(e)}else return g?4:1;GSa(a);g=sSa(c.B,a.D);(a.D&&g==a.D||g==(_.gs(),_.es))&&a.B&&(c={XhrNetEvent_type:function(p){switch(p){case "o":return"SUCCESS";case "n":return"ERROR";case "p":return"NETWORK_WARNING";
case "q":return"SERVER_WARNING";case "r":return"CLIENT_ERROR";case "s":return"RESTART_NOW";default:return"UNKNOWN"}}(c.getType()),XhrNetEvent_httpStatus:c.B.toString()},a.B.log(Error("Rd"),c));a.C.cb(g,e.C,null,!(e.F!=1&&e.H.C<4));return 2},GSa=function(a){a.L.B!=null&&a.C.getState().B==1&&(a=a.L,a.B.Ta(),a.B.IU())};_.bF.prototype.getStatus=function(){return this.C};var ISa=function(a,c,e){e=_.Aya(c.H,e);a.ca.Fr(function(){return a.send(c)},e)};
_.bF.prototype.va=function(a){var c=this.C.getState();c.B>=5||(a.C?c.isError()&&(this.H.length>0?(this.C.cb((_.gs(),_.jra)),HSa(this)):this.C.cb((_.gs(),_.cs))):(c=sSa(a.B,this.D),(this.D&&c==this.D||c==(_.gs(),_.es))&&this.B&&this.B.log(Error("Sd"),{XhrNetEvent_httpStatus:a.B.toString()}),this.C.cb(c,null,a.B)))};var BSa=function(a,c){if(a.qa){var e;((e=c.Hp("X-Reload"))==null?void 0:e.toLowerCase())==="true"&&a.qa.qa(!0)}},HSa=function(a){var c=a.aa.shift();c&&a.send(c)};
_.bF.prototype.R=function(a){var c=this.F;_.pya(a);c.D=a};_.eF=function(a,c){var e=a.F;e.B.B.at&&_.VE(e,"at",c);_.VE(e,"token",c);a.la.dispatchEvent(null)};_.l=_.bF.prototype;_.l.ce=function(){return this.F.ce()};_.l.ly=function(){var a=this.F.B;var c=a.ce();c?a=_.nq(c):(a.C||(a.C=new _.vf),a=a.C);c=new _.vr;rSa(a,c);return c};_.l.tia=function(){var a=this.U!=null&&this.U.jf()&&this.U.B()?(_.gs(),_.pra):(_.gs(),_.ora);this.C.cb(a)};_.l.Eka=function(){return!!this.ja};
_.l.oa=function(){_.me(this.H);_.Ee.prototype.oa.call(this)};var JSa,KSa=function(){KSa=function(){};JSa=RegExp("^[^\\[\\{]+")};var fF=function(a,c,e,f,g,h,k){this.D=a;this.ag=c||"text";this.F=_.qa(_.Yn(e))?null:e;this.C=f!==void 0?f:200;this.I={};if(h)for(var p in h)this.I[p.toLowerCase()]=h[p];this.B=g!==void 0?g:0;this.R=k||{};this.L=void 0},LSa=function(a){switch(a){case "arraybuffer":return"arraybuffer";case "blob":return"blob";case "document":return"document";case "text":return"text";case "":return"text";default:throw Error("mf`"+a);}};fF.prototype.Hj=function(){return this.ag};
fF.prototype.Kj=function(){return this.B==0};fF.prototype.Hp=function(a){return this.I[a.toLowerCase()]};var YE=function(a){return a.ag=="text"},ZE=function(a){if(a.L===void 0){var c=a.D||"";KSa();c=c.replace(JSa,"");if(c)if(c==="null")var e=null;else{c=_.Fm(c);try{e=JSON.parse(c)}catch(f){a=_.Wl(f);if(_.am(a))throw e=new _.um,c="Error parsing JSON: "+_.Al(a.C),e.D=a,e.C=c,_.Vl(e),_.Hl(e,Error(e)),e.B;throw a.B;}if(!(e instanceof Object))throw _.lSa().B;}else e=null;a.L=e}return a.L};
fF.prototype.H=function(){return ZE(this)["0"]};
var DSa=function(a){var c=a.C,e=a.B,f=a.ag,g=a.F;if(YE(a)){var h=a.D||"";h=_.Vn(h);h.length>50&&(h=h.substring(0,47)+"...");h=_.Ana(h);h+="   (truncated)"}else h="responseObject";c={RespStatus:c,RespErr:e,RespType:f,RespContentType:g,RespString:h};Object.assign(c,a.R);return c},ESa=function(a){if(a.Hp("X-Restart")=="NOW")return new SE("s",a.B,a.C,function(){return ZE(a)});if(a.B==7)return null;var c=MSa(a)?"p":NSa(a)?"q":a.Kj()?"o":"n";return new SE(c,a.B,a.C,function(){return ZE(a)},a.B==6&&a.C==
500?$E(a):null)},MSa=function(a){var c=a.B,e=a.C;return a.Kj()?c!=0||e!=0||YE(a)&&a.D!=null?!1:!0:c==8||c==5||c==6&&(e<=0||e==503||e==405)?!0:!1},NSa=function(a){var c=a.C;return a.B==6&&(c==202||c==401||c==403||c==409||c==429||c==433||c>=500&&c<=599&&c!=503&&c!=512&&c!=550)||c==400&&zSa(a)!=null?!0:c==200?a.F==null||$E(a)?!0:CSa(a):!1},CSa=function(a){if(a.C==200&&a.F!=null&&!$E(a)&&YE(a)){if(_.qa(_.Yn(a.D)))return!0;if(_.oa(a.D||"",")]}'\n"))try{return ZE(a)==null}catch(c){}}return!1};var OSa=function(){_.Ee.call(this)};_.gk(OSa,_.Ee);var gF=function(a){_.pe.call(this,a)};_.gk(gF,_.pe);_.l=OSa.prototype;_.l.IR=function(){return null};_.l.ah=function(){return null};_.l.Le=function(){return null};_.l.start=function(){};_.l.cancel=function(){};_.gk(iSa,OSa);iSa.prototype.a1=function(){};_.l=ME.prototype;_.l.getName=function(){return this.F};_.l.getSize=function(){return this.H};_.l.getBlob=function(){return null};_.l.Os=function(){return!1};_.l.jN=function(){return!1};_.l.DF=function(){return!1};var hF=function(a){_.Ee.call(this);this.Ya=a};_.gk(hF,_.Ee);var iF=function(a){_.pe.call(this,a)};_.gk(iF,_.pe);var jF={DJ:"x",ZC:"y",ERROR:"z",CANCEL:"A"},PSa=function(a,c){_.pe.call(this,a);this.Qi=!!c};_.gk(PSa,iF);_.l=hF.prototype;_.l.getItem=function(){return this.Ya};_.l.uI=function(){return null};_.l.Le=function(){return null};_.l.ah=function(){return null};_.l.start=function(){};_.l.cancel=function(){};_.l.pause=function(){};_.l.resume=function(){};var kF=function(a,c,e){_.Ee.call(this);QSa++;this.C="select";this.U=a;this.X=c;this.B=e;this.ka(this.B);this.I="";this.L="POST";this.F={};this.H="";this.R=!1;this.D=new _.mh(this);this.ka(this.D)};_.G(kF,_.Ee);_.l=kF.prototype;_.l.getState=function(){return this.C};_.l.getName=function(){return this.U};_.l.getSize=function(){return this.X};_.l.getBlob=function(){return this.B.getItem().getBlob()};_.l.Le=function(){return this.B.Le()};_.l.ah=function(){return this.B.ah()};
_.l.start=function(){var a=this;this.D.listen(this.B,jF.DJ,function(){a.dispatchEvent(new lF("C",a))});this.D.listen(this.B,jF.ZC,function(){a.C="complete";a.dispatchEvent(new lF("D",a))});this.D.listen(this.B,jF.ERROR,function(c){a.C="error";a.dispatchEvent(new RSa("E",a,c.Qi))});this.B.start(this.I,this.L,this.F,this.H,this.R);this.C="start";this.dispatchEvent(new lF("B",this))};_.l.cancel=function(){this.B.cancel();this.C="cancel";_.qs(this.D);this.dispatchEvent(new lF("F",this))};_.l.pause=function(){this.B.pause()};
_.l.resume=function(){this.B.pause()};var lF=function(a,c){_.pe.call(this,a);this.item=c};_.G(lF,_.pe);var RSa=function(a,c,e){lF.call(this,a,c);this.Qi=!!e};_.G(RSa,lF);var QSa=0;var mF=function(a,c,e,f,g,h,k,p,q,u,x,z,A,C,E,I,N,S){if(x<=0)throw Error("nf`"+x);_.Uv.call(this,a,"",c,e,f,g,h,k,p,q,u,x,"POST",E,I,S);var Z=this;this.la=z;this.U=A;this.ja=N;this.qa=C;this.B=null;this.D=new _.mh(this);this.L=new _.lh(function(){if(SSa(Z)){var sa=new fF("","text",null,0,8,{},RE(Z));Z.ys(sa)}},x);this.tb=null};_.G(mF,_.Uv);
mF.prototype.R=function(a){var c=this.hc();if(typeof c==="string"){var e=this.U;var f=c.length;c=new TSa(c,"raw","",void 0);c.B=!0;c=USa(e.B.B,c);f=new kF("",f,c);e.dispatchEvent(new VSa([f],null));e=f}else e=this.U,f=new WSa(c,"docs_blob"),f.B=!0,c=USa(e.B.B,f),f=new kF("docs_blob",f.getSize(),c),e.dispatchEvent(new VSa([f],null)),e=f;this.B=e;e={};f=_.Lr(_.Kr.Ka(),this.ja);_.qa(_.Yn(f))||Object.assign(e,{authuser:f});Object.assign(e,a.B.B);f=this.B;e=_.Tg(this.la,e);f.I=e;this.B.L=this.I;e={};Object.assign(e,
this.ca,_.ze(a.C));this.B.F=_.ze(e);e={};f=_.Kg(this.C);e.httpaction=f;if(f=_.Jg(6,this.C)){f=new _.kh(f);c=f.Sd();for(var g=0;g<c.length;g++){var h=c[g];e[h]=f.get(h)}}Object.assign(e,a.B.B);a=this.B;e=this.qa.stringify(e);a.H=e;this.B.R=!0;this.D.ob(this.B,"D",this.Ca);this.D.ob(this.B,"E",this.Ha);this.D.listen(this.B,"C",this.Qa);this.B.start();this.L.start()};
mF.prototype.Ca=function(){if(this.B){var a=this.B.B.uI(),c=this.B.ah()||{},e={},f;for(f in c)e[f.toLowerCase()]=c[f];a=new fF(this.B.Le(),"text",e["content-type"]||null,a,_.Hsa(a)?0:6,e,RE(this));this.ys(a)}};mF.prototype.Ha=function(){if(this.B){var a=new fF("","text",null,0,5,{},RE(this));this.ys(a)}};mF.prototype.Qa=function(){SSa(this)&&this.L.start()};var SSa=function(a){return a.B!=null&&a.B.getState()=="start"};
mF.prototype.reset=function(){this.L.stop();this.B&&(SSa(this)&&this.B.cancel(),_.ke(this.B),this.B=null);_.qs(this.D)};mF.prototype.oa=function(){_.me(this.L,this.D);_.Uv.prototype.oa.call(this)};var XSa=function(a,c,e){e===void 0&&(e=a.size);return a.slice?a.slice(c,e):null};var YSa=_.lj(function(){if(!_.ma.Blob)return!1;var a=new Uint8Array(100);try{var c=new Blob([a])}catch(e){return!1}return c.size!=100?!1:!0}),ZSa=_.lj(function(){if(!_.ma.Blob)return!1;var a=new Uint8Array(100);try{var c=new Blob([a])}catch(e){return!1}return XSa(c,0,1)===null?!1:!0});var WSa=function(a,c){ME.call(this,c,a.size);this.C=a};_.G(WSa,ME);_.l=WSa.prototype;_.l.getBlob=function(){return this.C};_.l.Os=function(){return ZSa()};_.l.jN=function(){return!0};_.l.DF=function(){return!1};_.l.RU=function(){return null};var $Sa=function(a,c,e,f,g,h,k,p){_.Ee.call(this);this.aa=a;this.I=c;this.da=e;this.ca=f;this.R=g||null;this.L=h||null;this.X=k?_.ze(k):{};this.sf=!!p;this.F="";a=new _.LE;this.C="scotty-"+_.Zn()+"-"+a.mx();this.B=null;this.D=0;this.H=null;this.U=new _.mh(this);this.ka(this.U)};_.G($Sa,iSa);_.l=$Sa.prototype;_.l.a1=function(a){this.F=a};_.l.IR=function(){return this.B&&this.B.status||null};_.l.ah=function(){return this.H};_.l.Le=function(){return this.B&&this.B.responseText||null};
_.l.start=function(){var a=this;this.B=new XMLHttpRequest;this.B.upload&&(this.B.upload.onprogress=function(c){a.D=c.loaded;a.dispatchEvent(new gF("t"))});this.B.onload=function(c){a.D=a.da;a.H=NE(c.target.getAllResponseHeaders());a.dispatchEvent(new gF("u"))};this.B.onerror=function(){a.dispatchEvent(new gF("v"))};this.B.open("POST",this.aa);_.re(this.X,function(c,e){a.B.setRequestHeader(e,c)});this.B.setRequestHeader("Content-Type","multipart/form-data; boundary="+this.C);this.B.withCredentials=
this.sf;this.B.send(aTa(this))};_.l.cancel=function(){this.B&&this.B.abort()};var aTa=function(a){var c=["--",a.C,"\r\n",'Content-Disposition: form-data; name="metadata"\r\n\r\n'+a.F+"\r\n","--",a.C,"\r\n",'Content-Disposition: form-data; name="Filedata"'+(a.R?'; filename="'+a.R+'"':"")+"\r\n"+(a.L?"Content-Type: "+a.L+"\r\n":"")+"Content-Transfer-Encoding: "+a.ca+"\r\n","\r\n",a.I,"\r\n","--",a.C,"--\r\n"];return typeof a.I==="string"?c.join(""):new Blob(c)};var TSa=function(a,c,e,f){var g=null;YSa()&&(g=f?new Blob([a],{type:f}):new Blob([a]));if(g)var h=g.size;else{h=[];for(var k=0,p=0;p<a.length;p++){var q=a.charCodeAt(p);q<128?h[k++]=q:(q<2048?h[k++]=q>>6|192:((q&64512)==55296&&p+1<a.length&&(a.charCodeAt(p+1)&64512)==56320?(q=65536+((q&1023)<<10)+(a.charCodeAt(++p)&1023),h[k++]=q>>18|240,h[k++]=q>>12&63|128):h[k++]=q>>12|224,h[k++]=q>>6&63|128),h[k++]=q&63|128)}h=h.length}ME.call(this,e,h);this.R=h;this.D=g;this.I=a;this.C=c;this.L=f||void 0};
_.gk(TSa,ME);_.l=TSa.prototype;_.l.getBlob=function(){return this.D};_.l.Os=function(){return this.C!="base64"&&ZSa()};_.l.jN=function(){return this.C!="base64"&&YSa()};_.l.DF=function(){return!0};_.l.RU=function(a,c,e){return new $Sa(a,this.D||this.I,this.R,this.C=="base64"?"base64":"binary",this.getName(),this.L,c,e)};var nF=function(a){hF.call(this,a);this.B=null;this.C=new _.mh(this);this.ka(this.C)};_.G(nF,hF);_.l=nF.prototype;_.l.uI=function(){return this.B&&this.B.IR()||null};_.l.Le=function(){return this.B&&this.B.Le()||null};_.l.ah=function(){return this.B&&this.B.ah()||null};
_.l.start=function(a,c,e,f,g){a=new _.ch(a);_.Pr(a,"upload_protocol","multipart");a=a.toString();this.B=this.getItem().RU(a,e,g);this.B.a1(f);this.C.listen(this.B,"t",this.o5);this.C.listen(this.B,"u",this.epa);this.C.listen(this.B,["v","w"],this.dpa);this.B.start()};_.l.cancel=function(){this.B&&this.B.cancel();this.dispatchEvent(new iF(jF.CANCEL))};_.l.o5=function(){this.dispatchEvent(new iF(jF.DJ))};_.l.epa=function(){this.dispatchEvent(new iF(jF.ZC))};_.l.dpa=function(){this.dispatchEvent(new iF(jF.ERROR))};var oF=function(){_.Bs.call(this)};_.G(oF,_.Bs);oF.prototype.LK=function(){var a=_.Bs.prototype.LK.call(this);a.upload&&(a.upload.onprogress=(0,_.Fe)(this.B,this));return a};oF.prototype.B=function(a){this.dispatchEvent(a)};_.gk(OE,_.Ee);OE.prototype.hash=function(a){this.abort();this.H.reset();this.C=a;this.EM=null;this.D=0;this.dispatchEvent("started");bTa(this)};var cTa=function(a,c){a.L=c;a.C&&!a.B&&bTa(a)};OE.prototype.abort=function(){this.B&&(this.B.abort(),this.B=null);this.C&&(this.C=null,this.dispatchEvent("abort"))};
var bTa=function(a){if(a.D<a.C.size)if(a.L<=a.D)a.dispatchEvent("throttled");else{a.B=new FileReader;a.B.onload=(0,_.Fe)(a.I,a);a.B.onerror=(0,_.Fe)(a.F,a);var c=Math.min(Math.min(a.L,a.C.size)-a.D,a.R),e=XSa(a.C,a.D,a.D+c);e&&e.size==c?a.B.readAsArrayBuffer?a.B.readAsArrayBuffer(e):a.B.readAsBinaryString?a.B.readAsBinaryString(e):a.F():a.F()}else a.EM=a.H.digest(),a.C=null,a.dispatchEvent("complete")};
OE.prototype.I=function(){var a=null;this.B.result instanceof Array||typeof this.B.result==="string"?a=this.B.result:_.ma.ArrayBuffer&&_.ma.Uint8Array&&this.B.result instanceof ArrayBuffer&&(a=new Uint8Array(this.B.result));a?(this.H.update(a),this.D+=a.length,this.B=null,this.dispatchEvent("progress"),bTa(this)):this.F()};OE.prototype.F=function(){this.C=this.B=null;this.dispatchEvent("error")};_.gk(QE,_.PE);QE.prototype.reset=function(){this.C[0]=1732584193;this.C[1]=4023233417;this.C[2]=2562383102;this.C[3]=271733878;this.F=this.D=0};
var dTa=function(a,c,e){e||(e=0);var f=Array(16);if(typeof c==="string")for(var g=0;g<16;++g)f[g]=c.charCodeAt(e++)|c.charCodeAt(e++)<<8|c.charCodeAt(e++)<<16|c.charCodeAt(e++)<<24;else for(g=0;g<16;++g)f[g]=c[e++]|c[e++]<<8|c[e++]<<16|c[e++]<<24;c=a.C[0];e=a.C[1];g=a.C[2];var h=a.C[3];var k=c+(h^e&(g^h))+f[0]+3614090360&4294967295;c=e+(k<<7&4294967295|k>>>25);k=h+(g^c&(e^g))+f[1]+3905402710&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(e^h&(c^e))+f[2]+606105819&4294967295;g=h+(k<<17&4294967295|k>>>
15);k=e+(c^g&(h^c))+f[3]+3250441966&4294967295;e=g+(k<<22&4294967295|k>>>10);k=c+(h^e&(g^h))+f[4]+4118548399&4294967295;c=e+(k<<7&4294967295|k>>>25);k=h+(g^c&(e^g))+f[5]+1200080426&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(e^h&(c^e))+f[6]+2821735955&4294967295;g=h+(k<<17&4294967295|k>>>15);k=e+(c^g&(h^c))+f[7]+4249261313&4294967295;e=g+(k<<22&4294967295|k>>>10);k=c+(h^e&(g^h))+f[8]+1770035416&4294967295;c=e+(k<<7&4294967295|k>>>25);k=h+(g^c&(e^g))+f[9]+2336552879&4294967295;h=c+(k<<12&4294967295|
k>>>20);k=g+(e^h&(c^e))+f[10]+4294925233&4294967295;g=h+(k<<17&4294967295|k>>>15);k=e+(c^g&(h^c))+f[11]+2304563134&4294967295;e=g+(k<<22&4294967295|k>>>10);k=c+(h^e&(g^h))+f[12]+1804603682&4294967295;c=e+(k<<7&4294967295|k>>>25);k=h+(g^c&(e^g))+f[13]+4254626195&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(e^h&(c^e))+f[14]+2792965006&4294967295;g=h+(k<<17&4294967295|k>>>15);k=e+(c^g&(h^c))+f[15]+1236535329&4294967295;e=g+(k<<22&4294967295|k>>>10);k=c+(g^h&(e^g))+f[1]+4129170786&4294967295;c=e+(k<<
5&4294967295|k>>>27);k=h+(e^g&(c^e))+f[6]+3225465664&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^e&(h^c))+f[11]+643717713&4294967295;g=h+(k<<14&4294967295|k>>>18);k=e+(h^c&(g^h))+f[0]+3921069994&4294967295;e=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(e^g))+f[5]+3593408605&4294967295;c=e+(k<<5&4294967295|k>>>27);k=h+(e^g&(c^e))+f[10]+38016083&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^e&(h^c))+f[15]+3634488961&4294967295;g=h+(k<<14&4294967295|k>>>18);k=e+(h^c&(g^h))+f[4]+3889429448&4294967295;e=
g+(k<<20&4294967295|k>>>12);k=c+(g^h&(e^g))+f[9]+568446438&4294967295;c=e+(k<<5&4294967295|k>>>27);k=h+(e^g&(c^e))+f[14]+3275163606&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^e&(h^c))+f[3]+4107603335&4294967295;g=h+(k<<14&4294967295|k>>>18);k=e+(h^c&(g^h))+f[8]+1163531501&4294967295;e=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(e^g))+f[13]+2850285829&4294967295;c=e+(k<<5&4294967295|k>>>27);k=h+(e^g&(c^e))+f[2]+4243563512&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^e&(h^c))+f[7]+1735328473&4294967295;
g=h+(k<<14&4294967295|k>>>18);k=e+(h^c&(g^h))+f[12]+2368359562&4294967295;e=g+(k<<20&4294967295|k>>>12);k=c+(e^g^h)+f[5]+4294588738&4294967295;c=e+(k<<4&4294967295|k>>>28);k=h+(c^e^g)+f[8]+2272392833&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^e)+f[11]+1839030562&4294967295;g=h+(k<<16&4294967295|k>>>16);k=e+(g^h^c)+f[14]+4259657740&4294967295;e=g+(k<<23&4294967295|k>>>9);k=c+(e^g^h)+f[1]+2763975236&4294967295;c=e+(k<<4&4294967295|k>>>28);k=h+(c^e^g)+f[4]+1272893353&4294967295;h=c+(k<<11&4294967295|
k>>>21);k=g+(h^c^e)+f[7]+4139469664&4294967295;g=h+(k<<16&4294967295|k>>>16);k=e+(g^h^c)+f[10]+3200236656&4294967295;e=g+(k<<23&4294967295|k>>>9);k=c+(e^g^h)+f[13]+681279174&4294967295;c=e+(k<<4&4294967295|k>>>28);k=h+(c^e^g)+f[0]+3936430074&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^e)+f[3]+3572445317&4294967295;g=h+(k<<16&4294967295|k>>>16);k=e+(g^h^c)+f[6]+76029189&4294967295;e=g+(k<<23&4294967295|k>>>9);k=c+(e^g^h)+f[9]+3654602809&4294967295;c=e+(k<<4&4294967295|k>>>28);k=h+(c^e^g)+f[12]+
3873151461&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^e)+f[15]+530742520&4294967295;g=h+(k<<16&4294967295|k>>>16);k=e+(g^h^c)+f[2]+3299628645&4294967295;e=g+(k<<23&4294967295|k>>>9);k=c+(g^(e|~h))+f[0]+4096336452&4294967295;c=e+(k<<6&4294967295|k>>>26);k=h+(e^(c|~g))+f[7]+1126891415&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~e))+f[14]+2878612391&4294967295;g=h+(k<<15&4294967295|k>>>17);k=e+(h^(g|~c))+f[5]+4237533241&4294967295;e=g+(k<<21&4294967295|k>>>11);k=c+(g^(e|~h))+f[12]+1700485571&
4294967295;c=e+(k<<6&4294967295|k>>>26);k=h+(e^(c|~g))+f[3]+2399980690&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~e))+f[10]+4293915773&4294967295;g=h+(k<<15&4294967295|k>>>17);k=e+(h^(g|~c))+f[1]+2240044497&4294967295;e=g+(k<<21&4294967295|k>>>11);k=c+(g^(e|~h))+f[8]+1873313359&4294967295;c=e+(k<<6&4294967295|k>>>26);k=h+(e^(c|~g))+f[15]+4264355552&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~e))+f[6]+2734768916&4294967295;g=h+(k<<15&4294967295|k>>>17);k=e+(h^(g|~c))+f[13]+1309151649&
4294967295;e=g+(k<<21&4294967295|k>>>11);k=c+(g^(e|~h))+f[4]+4149444226&4294967295;c=e+(k<<6&4294967295|k>>>26);k=h+(e^(c|~g))+f[11]+3174756917&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~e))+f[2]+718787259&4294967295;g=h+(k<<15&4294967295|k>>>17);k=e+(h^(g|~c))+f[9]+3951481745&4294967295;e=g+(k<<21&4294967295|k>>>11);a.C[0]=a.C[0]+c&4294967295;a.C[1]=a.C[1]+e&4294967295;a.C[2]=a.C[2]+g&4294967295;a.C[3]=a.C[3]+h&4294967295};
QE.prototype.update=function(a,c){c===void 0&&(c=a.length);for(var e=c-this.B,f=this.H,g=this.D,h=0;h<c;){if(g==0)for(;h<=e;)dTa(this,a,h),h+=this.B;if(typeof a==="string")for(;h<c;){if(f[g++]=a.charCodeAt(h++),g==this.B){dTa(this,f);g=0;break}}else for(;h<c;)if(f[g++]=a[h++],g==this.B){dTa(this,f);g=0;break}}this.D=g;this.F+=c};
QE.prototype.digest=function(){var a=Array((this.D<56?this.B:this.B*2)-this.D);a[0]=128;for(var c=1;c<a.length-8;++c)a[c]=0;c=this.F*8;for(var e=a.length-8;e<a.length;++e)a[e]=c&255,c/=256;this.update(a);a=Array(16);for(e=c=0;e<4;++e)for(var f=0;f<32;f+=8)a[c++]=this.C[e]>>>f&255;return a};var pF=function(a,c){hF.call(this,a);this.Qa=this.I=this.Ua=this.Ta=null;this.sf=!1;this.ua=this.ca=null;this.U=a.getSize();this.L=0;this.la=null;this.xa=this.Ja=0;this.F="Ready";this.X=this.D=this.R=this.ja=this.Ha=this.Ca=null;this.C=new _.mh(this);this.ka(this.C);this.va=new _.mh(this);this.ka(this.va);this.H=0;this.B=this.da=this.aa=null;this.qa=c||Number.MAX_VALUE;this.tb=null};_.gk(pF,hF);_.l=pF.prototype;_.l.uI=function(){return this.Ca};_.l.Le=function(){return this.Ha};_.l.ah=function(){return this.ja};
_.l.start=function(a,c,e,f,g){this.Ta=a;this.Ua=c;this.I=_.ze(e);this.Qa=f;this.sf=!!g;this.F="Creating session";this.I["X-Goog-Upload-Protocol"]="resumable";this.I["X-Goog-Upload-Command"]="start";this.getItem().getSize()!=null&&(this.I["X-Goog-Upload-Content-Length"]=this.getItem().getSize());this.getItem().getName()!=null&&/^[\040-\176]*$/.test(this.getItem().getName())&&(this.I["X-Goog-Upload-File-Name"]=this.getItem().getName());this.getItem().B&&eTa(this);this.J0()};
_.l.cancel=function(){_.qs(this.C);_.qs(this.va);this.F=="Creating session"&&this.R&&this.R.abort();this.F=="Transferring"&&(this.D&&this.D.abort(),this.X&&this.X.abort(),this.aa&&_.Mn(this.aa));this.B&&this.B.abort();(new _.Bs).send(this.ua,"PUT","",{"X-Goog-Upload-Command":"cancel"});this.F="Cancelled";this.H=this.L=0;this.dispatchEvent(new iF(jF.CANCEL))};
var eTa=function(a){var c=a.getItem().getBlob();c&&(a.B=new OE(new QE),a.va.listen(a.B,"complete",function(e){this.da=_.gaa(e.target.EM);this.B=null}),cTa(a.B,1048576),a.B.hash(c))};_.l=pF.prototype;_.l.J0=function(){this.R=new oF;_.qs(this.C);this.C.listen(this.R,"complete",this.Uoa);this.R.Qh(this.sf);this.R.send(this.Ta,this.Ua,this.Qa,this.I)};
_.l.Uoa=function(a){var c=a.target.getStatus(),e=a.target.Le();a=NE(a.target.getAllResponseHeaders());var f=qF(a,"X-Goog-Upload-Status"),g=qF(a,"X-Goog-Upload-URL");if(f=="final")this.Ca=c,this.ja=a,this.Ha=e,this.F="Complete",this.dispatchEvent(new iF(jF.ZC));else if(c==200&&f=="active"&&g){this.ca=g;this.ua=qF(a,"X-Goog-Upload-Control-URL")||null;g=qF(a,"X-Goog-Upload-Chunk-Granularity")||null;f=1;if(g&&(f=parseInt(g,10),isNaN(f)||f<=0)){rF(this,"Create session failed","Invalid chunk granularity: "+
g+". "+fTa(c,a,e));return}c=this.getItem().getSize();this.U=Math.floor(c/f)*f;this.la=Math.floor(1073741824/f)*f;this.getItem().Os()||(this.la=c,this.U!=c&&(this.U=0));this.F="Transferring";this.H=0;this.K0(0)}else c>=400&&c<500?rF(this,"Create session failed","Client failure. "+fTa(c,a,e)):(sF(this,this.J0),gTa(this))};
_.l.K0=function(a){var c=this.getItem(),e=c.getSize();c.Os()||a==e||(a=0);var f=a>=this.U,g=f?e:Math.min(this.U,this.la+a);this.Ja=a;this.xa=g;var h={"X-Goog-Upload-Command":"upload"+(f?", finalize":""),"X-Goog-Upload-Offset":a};f&&(this.da?h["X-Goog-Upload-Entity-MD5"]=this.da:this.B&&(this.B.abort(),this.B=null));this.D=new oF;this.D.Qh(this.sf);_.qs(this.C);this.C.listen(this.D,"progress",this.p5);this.C.listen(this.D,"complete",this.cpa);a==e?this.D.send(this.ca,"PUT","",h):(e=this.getItem().getBlob(),
c.Os()?this.D.send(this.ca,"PUT",XSa(e,a,g),h):this.D.send(this.ca,"PUT",e,h))};_.l.p5=function(a){this.L=this.Ja+a.loaded;this.dispatchEvent(new iF(jF.DJ));this.B&&cTa(this.B,this.L+1048576)};_.l.cpa=function(a){var c=a.target.getStatus();if(c===void 0||c==-1)sF(this,this.I0),gTa(this);else{var e=NE(a.target.getAllResponseHeaders());a=a.target.Le();this.L=this.xa;hTa(this,c,e,a,!0)}};
_.l.I0=function(){this.X=new oF;_.qs(this.C);this.C.listen(this.X,"complete",this.Moa);this.X.send(this.ua,"PUT","",{"X-Goog-Upload-Command":"query"})};_.l.Moa=function(a){a=a.target;var c=a.getStatus(),e=NE(a.getAllResponseHeaders());hTa(this,c,e,a.Le(),!1)};
var hTa=function(a,c,e,f,g){var h=qF(e,"X-Goog-Upload-Status");if(h=="final")a.F="Complete",a.H=0,a.Ca=c,a.ja=e,a.Ha=f,a.dispatchEvent(new iF(jF.ZC));else{var k=parseInt(qF(e,"X-Goog-Upload-Size-Received"),10);g&&isNaN(k)&&(k=a.xa);c!=200||h!="active"||isNaN(k)?(c>=400&&c<500&&rF(a,"Transfer failed","Client failure. "+fTa(c,e,f)),sF(a,a.I0),gTa(a)):(a.L=k,k>a.Ja&&(a.H=0),sF(a,(0,_.Fe)(a.K0,a,k)))}},gTa=function(a){a.H==0&&Date.now();a.H++},rF=function(a,c){a.F="Error";a.L=0;a.dispatchEvent(new PSa(jF.ERROR,
c=="Transient error"))},sF=function(a,c){var e=[0,5E3,1E4,15E3,3E4,6E4],f=0;f=a.H<e.length?e[a.H]:e[e.length-1];if(f>a.qa)rF(a,"Transient error");else{a.qa!==void 0&&(f=_.Ve(f,0,a.qa));Date.now();var g=(0,_.Fe)(c,a);f>0?a.aa=_.Ln(function(){this.aa=null;g()},f,a):g()}},fTa=function(a,c,e){return"Response code: "+a+"\nHeaders:\n"+jSa(c)+"\nBody:\n"+e},qF=function(a,c){return a[c]||a[c.toLowerCase()]};var iTa=function(a){this.B=a};_.G(iTa,kSa);var USa=function(a,c){if(c.Os()&&c.DF())return c.getSize()>2097152?new pF(c,a.B):new nF(c);if(c.Os())return new pF(c,a.B);if(c.DF())return new nF(c);if(c.jN())return new pF(c,a.B);throw Error("of");};var jTa=function(){_.Ee.call(this)};_.G(jTa,_.Ee);var VSa=function(a){_.pe.call(this,"G");this.items=a};_.G(VSa,_.pe);var kTa=function(a){_.Ee.call(this);this.B=a};_.G(kTa,jTa);var lTa=function(){this.B=new iTa(void 0)};var tF=function(a,c,e,f,g,h){_.Ov.call(this,c,e,f,g);this.Ca=a;this.Qa=h||_.pr(f,"docs-net-udur");this.Ha=new kTa(new lTa);this.da=new _.UE;this.Ua=_.or(f,"docs-net-udpt")};_.G(tF,_.Ov);
tF.prototype.Ly=function(){if(!this.va)throw Error("pf");var a=this.qf;a<=0&&(a=this.Ua);if(this.la)throw Error("qf");var c=_.Rv(this);if(!nSa(this))throw Error("Id");if(typeof this.B==="string")var e=this.B;else if(_.yya&&this.B instanceof Blob)e=this.B;else{e=this.da;for(var f=this.B,g=new _.bj("{"),h=0;h<f.length;h+=2)h>0&&g.append(","),g.append(e.stringify(f[h])).append(":").append(e.stringify(f[h+1]));g.append("}");e=g.toString()}return new mF(c,e,this.F,this.I,this.H,this.R,this.U,this.D,this.Hj(),
this.ca,a,this.Qa,this.Ha,this.da,this.X,this.sf,this.L)};tF.prototype.UC=function(a){if(!this.Ca)throw Error("rf`"+_.Sv(this));this.Ca.send(a)};var uF=function(a,c,e,f,g,h){this.F=a;this.ag=c;this.B=e;this.D=f;this.C=g;this.H=h};uF.prototype.response=function(){return this.F};uF.prototype.responseType=function(){return this.ag};uF.prototype.contentType=function(){return this.B};uF.prototype.errorCode=function(){return this.C};var vF=function(a,c,e,f,g,h,k,p,q,u,x,z,A,C,E,I,N,S){_.Uv.call(this,a,c,e,f,g,h,k,p,q,u,x,z,A,C,E,S);this.U=I;this.B=null;this.D=new _.mh(this);this.L=N};_.G(vF,_.Uv);
vF.prototype.R=function(a){var c=this;this.B=this.U();this.D.ob(this.B,"complete",function(){c.C.includes("/save")&&Date.now();var g=c.ys,h,k=c.B;try{var p=k.Hj()==""?k.Le():k.getResponse()}catch(S){p=""}var q=k.Hj();try{var u=k.getResponseHeader("Content-Type")}catch(S){u=null}var x=new uF(p,q,u,k.getStatus(),k.Km,k.getAllResponseHeaders());k=RE(c);u=x.response();p=LSa(x.responseType());q=x.contentType();var z=x.D,A=x.errorCode(),C={};x=_.y(x.H.split("\r\n"));var E=x.next();try{for(;!E.done;E=x.next()){var I=
E.value;if(!_.qa(_.Yn(I))){var N=I.indexOf(": ");N!=-1&&(C[I.substr(0,N)]=I.substr(N+2))}}}finally{E&&!E.done&&(h=x.return)&&h.call(x)}h=new fF(u,p,q,z,A,C,k);g.call(c,h)});this.B.kx=Math.max(0,this.qf);if(this.Hj()!="text"){var e=mTa(this.Hj());this.B.hB(e)}this.B.Qh(this.sf);e=_.Tg(this.Ja+this.C,a.B.B);var f={};Object.assign(f,this.ca,_.ze(a.C));this.L&&this.qf>0&&(f["X-Client-Deadline-Ms"]=this.qf+(e.includes("/delta")?5E3:0));this.C.includes("/save")&&Date.now();this.B.send(e,this.I,this.hc(),
f)};vF.prototype.reset=function(){this.B&&(this.B.dispose(),this.B=null)};vF.prototype.oa=function(){_.ke(this.D);_.Uv.prototype.oa.call(this)};var mTa=function(a){switch(a){case "arraybuffer":return"arraybuffer";case "blob":return"blob";case "document":return"document";default:return""}};var wF=function(a,c,e,f,g,h){_.Ov.call(this,c,e,f,g);this.da=a;this.Ca=!!h};_.G(wF,_.Ov);wF.prototype.Ly=function(){var a=this.qf;a<0&&(a=this.Ca?4E4:2E4);return new vF(_.Rv(this),_.wya(this),this.hc(),this.F,this.I,this.H,this.R,this.U,this.D,this.Hj(),this.ca,a,this.ja,this.X,this.sf,function(){return new _.Bs},_.nr(this.L,"docs-ecdh")&&!this.Ja,void 0)};wF.prototype.UC=function(a){if(!this.da)throw Error("rf`"+_.Sv(this));this.da.send(a)};var cF=function(a,c,e,f,g,h){_.Ov.call(this,c,e,f,g);this.da=a;this.Qa=_.nr(f,"docs-net-usud");this.Ha=_.or(f,"docs-net-udmi");this.Ca=h};_.G(cF,_.Ov);
cF.prototype.Ly=function(){var a=null,c;if(c=this.Qa&&this.va){if(!nSa(this))throw Error("Hd");if(Array.isArray(this.B)){c=0;for(var e=this.B,f=0;f<e.length;f++){var g=e[f];typeof g==="string"&&(c+=g.length)}}else c=_.yya&&this.B instanceof Blob?this.B.size:this.B.length;c=c>this.Ha}c&&(a=new tF(this.da,_.Rv(this),this.xa,this.L,this.qa,this.Ca));a==null&&(a=new wF(this.da,_.Rv(this),this.xa,this.L,this.qa));this.TC(a);return a.Ly()};
cF.prototype.UC=function(a){if(!this.da)throw Error("rf`"+_.Sv(this));this.da.send(a)};_.nTa=function(){this.B=void 0};
}catch(e){_._DumpException(e)}
try{
_.r("FoQBg");
_.Ch(_.Lv);var xF=function(a){_.sq.call(this);var c=a.appContext.configuration;a=a.appContext.bd;var e=new _.Nya;delete e.B["X-Same-Domain"];e=_.Oya(e);this.B=new _.bF(new _.nTa,_.hr(),void 0,a,void 0,void 0,void 0,e);_.eF(this.B,c.ce());a=this.B;c=c.yf().Aj();_.VE(a.F,"authuser",c)};_.G(xF,_.uq);xF.na=function(){return{appContext:{bd:_.Gq,configuration:_.eq},service:{flags:_.Hv}}};xF.prototype.get=function(){return _.Gi(this.B)};_.Bg(_.Tya,xF);
_.w();
}catch(e){_._DumpException(e)}
}).call(this,this.default_vw);
// Google Inc.
