(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var aa="//www.google.com/images/cleardot.gif",ba="Client failure. ",ca="Content-Type",da="Create session failed",ea="Creating session",fa="Error in protected function: ",ha="Invalid listener argument",ia="Not available",ja="POST",ka="SETUP",la="SETUP_ACK",ma="SETUP_ACK_NTPV2",na="Symbol.iterator",oa="Transient error",qa="Trying to send a request without a request sender for - ",ra="X-Goog-Upload-Status",sa="about:invalid#zClosurez",ta="arraybuffer",ua="base64",va="boolean",wa="complete",xa="crosswindowmessaging.channel",
ya="document",h="function",za="info_params",Aa="message",Ba="null",n="number",p="object",Ca="readystatechange",r="string",t="text",Da="tfe_changed",u;function Ea(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var Fa=typeof Object.defineProperties==h?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function Ga(a){a=[p==typeof globalThis&&globalThis,a,p==typeof window&&window,p==typeof self&&self,p==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var Ha=Ga(this);function v(a,b){if(b)a:{var c=Ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&Fa(c,a,{configurable:!0,writable:!0,value:b})}}
v("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;Fa(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
v(na,function(a){if(a)return a;a=Symbol(na);for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=Ha[b[c]];typeof d===h&&typeof d.prototype[a]!=h&&Fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Ia(Ea(this))}})}return a});function Ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function w(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Ea(a)}}function Ja(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}function Ka(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var La=typeof Object.create==h?Object.create:function(a){function b(){}b.prototype=a;return new b},Ma;
if(typeof Object.setPrototypeOf==h)Ma=Object.setPrototypeOf;else{var Na;a:{var Oa={a:!0},Pa={};try{Pa.__proto__=Oa;Na=Pa.a;break a}catch(a){}Na=!1}Ma=Na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var Qa=Ma;
function x(a,b){a.prototype=La(b.prototype);a.prototype.constructor=a;if(Qa)Qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.P=b.prototype}function Ra(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
v("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}});
v("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=w(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(l){var m=typeof l;return m===p&&null!==l||m===h}function e(l){if(!Ka(l,g)){var m=new c;Fa(l,g,{value:m})}}function f(l){var m=Object[l];m&&(Object[l]=function(q){if(q instanceof c)return q;Object.isExtensible(q)&&e(q);return m(q)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),q=new a([[l,
2],[m,3]]);if(2!=q.get(l)||3!=q.get(m))return!1;q.delete(l);q.set(m,4);return!q.has(l)&&4==q.get(m)}catch(D){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var k=0;b.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key");e(l);if(!Ka(l,g))throw Error("WeakMap key fail: "+l);l[g][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&Ka(l,g)?l[g][this.g]:void 0};b.prototype.has=function(l){return d(l)&&Ka(l,g)&&Ka(l[g],
this.g)};b.prototype.delete=function(l){return d(l)&&Ka(l,g)&&Ka(l[g],this.g)?delete l[g][this.g]:!1};return b});
v("Map",function(a){function b(){var k={};return k.oa=k.next=k.head=k}function c(k,l){var m=k.g;return Ia(function(){if(m){for(;m.head!=k.g;)m=m.oa;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})}function d(k,l){var m=l&&typeof l;m==p||m==h?f.has(l)?m=f.get(l):(m=""+ ++g,f.set(l,m)):m="p_"+l;var q=k.h[m];if(q&&Ka(k.h,m))for(k=0;k<q.length;k++){var D=q[k];if(l!==l&&D.key!==D.key||l===D.key)return{id:m,list:q,index:k,R:D}}return{id:m,list:q,index:-1,R:void 0}}
function e(k){this.h={};this.g=b();this.size=0;if(k){k=w(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}if(function(){if(!a||typeof a!=h||!a.prototype.entries||typeof Object.seal!=h)return!1;try{var k=Object.seal({x:4}),l=new a(w([[k,"s"]]));if("s"!=l.get(k)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var m=l.entries(),q=m.next();if(q.done||q.value[0]!=k||"s"!=q.value[1])return!1;q=m.next();return q.done||4!=q.value[0].x||"t"!=q.value[1]||!m.next().done?!1:!0}catch(D){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(k,l){k=0===k?0:k;var m=d(this,k);m.list||(m.list=this.h[m.id]=[]);m.R?m.R.value=l:(m.R={next:this.g,oa:this.g.oa,head:this.g,key:k,value:l},m.list.push(m.R),this.g.oa.next=m.R,this.g.oa=m.R,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.R&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.R.oa.next=k.R.next,k.R.next.oa=k.R.oa,k.R.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=
this.g.oa=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).R};e.prototype.get=function(k){return(k=d(this,k).R)&&k.value};e.prototype.entries=function(){return c(this,function(k){return[k.key,k.value]})};e.prototype.keys=function(){return c(this,function(k){return k.key})};e.prototype.values=function(){return c(this,function(k){return k.value})};e.prototype.forEach=function(k,l){for(var m=this.entries(),q;!(q=m.next()).done;)q=q.value,k.call(l,q[1],q[0],this)};e.prototype[Symbol.iterator]=
e.prototype.entries;var g=0;return e});function Sa(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}
v("String.prototype.startsWith",function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var d=this.length,e=b.length;c=Math.max(0,Math.min(c|0,this.length));for(var f=0;f<e&&c<d;)if(this[c++]!=b[f++])return!1;return f>=e}});
v("Number.isFinite",function(a){return a?a:function(b){return typeof b!==n?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});v("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if(typeof f==h){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
v("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});v("Array.prototype.values",function(a){return a?a:function(){return Sa(this,function(b,c){return c})}});v("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});v("Array.prototype.keys",function(a){return a?a:function(){return Sa(this,function(b){return b})}});
v("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ka(b,d)&&c.push(b[d]);return c}});var Ta=Ta||{},y=this||self;function Ua(a,b){a=a.split(".");b=b||y;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function Va(){}function Wa(a){var b=typeof a;b=b!=p?b:a?Array.isArray(a)?"array":b:Ba;return"array"==b||b==p&&typeof a.length==n}function Xa(a){var b=typeof a;return b==p&&null!=a||b==h}
function Ya(a){return Object.prototype.hasOwnProperty.call(a,Za)&&a[Za]||(a[Za]=++$a)}var Za="closure_uid_"+(1E9*Math.random()>>>0),$a=0;function ab(a,b,c){return a.call.apply(a.bind,arguments)}function bb(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function z(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?z=ab:z=bb;return z.apply(null,arguments)}function cb(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function db(a){(0,eval)(a)}
function eb(a,b){var c=["crosswindowmessaging","channel"];b=b||y;c[0]in b||"undefined"==typeof b.execScript||b.execScript("var "+c[0]);for(var d;c.length&&(d=c.shift());)c.length||void 0===a?b[d]&&b[d]!==Object.prototype[d]?b=b[d]:b=b[d]={}:b[d]=a}function A(a,b){function c(){}c.prototype=b.prototype;a.P=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.xd=function(d,e,f){for(var g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}}
function fb(a){return a};function B(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,B);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.Xa=b);this.g=!0}A(B,Error);B.prototype.name="CustomError";var gb;function hb(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};function ib(a){return/^[\s\xa0]*$/.test(a)}var jb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},kb=/&/g,lb=/</g,mb=/>/g,nb=/"/g,pb=/'/g,qb=/\x00/g,rb=/[\x00&<>"']/;function sb(a,b){return a<b?-1:a>b?1:0};function tb(){var a=y.navigator;return a&&(a=a.userAgent)?a:""}function C(a){return-1!=tb().indexOf(a)};var ub=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a===r)return typeof b!==r||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},vb=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a===r?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};
function wb(a,b){b=ub(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}function xb(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function yb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Wa(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}};function zb(a){zb[" "](a);return a}zb[" "]=Va;function Ab(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var Bb=C("Opera"),E=C("Trident")||C("MSIE"),Cb=C("Edge"),Db=C("Gecko")&&!(-1!=tb().toLowerCase().indexOf("webkit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),Eb=-1!=tb().toLowerCase().indexOf("webkit")&&!C("Edge");function Fb(){var a=y.document;return a?a.documentMode:void 0}var Gb;
a:{var Hb="",Ib=function(){var a=tb();if(Db)return/rv:([^\);]+)(\)|;)/.exec(a);if(Cb)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Eb)return/WebKit\/(\S+)/.exec(a);if(Bb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ib&&(Hb=Ib?Ib[1]:"");if(E){var Jb=Fb();if(null!=Jb&&Jb>parseFloat(Hb)){Gb=String(Jb);break a}}Gb=Hb}var Kb=Gb,Lb={};
function Mb(a){return Ab(Lb,a,function(){for(var b=0,c=jb(String(Kb)).split("."),d=jb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=sb(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||sb(0==g[2].length,0==k[2].length)||sb(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})}var Nb;
if(y.document&&E){var Ob=Fb();Nb=Ob?Ob:parseInt(Kb,10)||void 0}else Nb=void 0;var Pb=Nb;var Qb={},Rb=null;var Sb=typeof Uint8Array===h;var Tb=typeof Symbol===h&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;function Ub(a,b){Object.isFrozen(a)||(Tb?a[Tb]|=b:void 0!==a.nb?a.nb|=b:Object.defineProperties(a,{nb:{value:b,configurable:!0,writable:!0,enumerable:!1}}))}function Vb(a){var b;Tb?b=a[Tb]:b=a.nb;return null==b?0:b}function Wb(a){Ub(a,1);return a};function Xb(a){return null!==a&&typeof a===p&&!Array.isArray(a)&&a.constructor===Object}var Yb,Zb=Object.freeze(Wb([])),$b="undefined"!=typeof Symbol&&"undefined"!=typeof Symbol.hasInstance;function ac(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}};function F(a,b,c){return-1===b?null:b>=a.i?a.g?a.g[b]:void 0:(void 0===c?0:c)&&a.g&&(c=a.g[b],null!=c)?c:a.na[b+a.h]}function bc(a,b){a=F(a,b);return null==a?a:!!a}function cc(a,b,c){if(-1===c)return null;a.j||(a.j={});var d=a.j[c];if(d)return d;var e=F(a,c,!1);if(null==e)return d;b=new b(e);d=a.na;if(Array.isArray(d)&&Vb(d)&2){d=b.na;if(!Array.isArray(d))throw Error("cannot mark non-array as immutable");Ub(d,2)}return a.j[c]=b};function dc(a){switch(typeof a){case n:return isFinite(a)?a:String(a);case p:if(a&&!Array.isArray(a)&&Sb&&null!=a&&a instanceof Uint8Array){var b;void 0===b&&(b=0);if(!Rb){Rb={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Qb[e]=f;for(var g=0;g<f.length;g++){var k=f[g];void 0===Rb[k]&&(Rb[k]=g)}}}b=Qb[b];c=Array(Math.floor(a.length/3));d=b[64]||"";for(e=f=0;f<a.length-2;f+=3){var l=
a[f],m=a[f+1];k=a[f+2];g=b[l>>2];l=b[(l&3)<<4|m>>4];m=b[(m&15)<<2|k>>6];k=b[k&63];c[e++]=g+l+m+k}g=0;k=d;switch(a.length-f){case 2:g=a[f+1],k=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=b[a>>2]+b[(a&3)<<4|g>>4]+k+d}return c.join("")}}return a};function gc(a){var b=hc;b=void 0===b?ic:b;return jc(a,b)}function kc(a,b){if(null!=a){if(Array.isArray(a))a=jc(a,b);else if(Xb(a)){var c={},d;for(d in a)c[d]=kc(a[d],b);a=c}else a=b(a);return a}}function jc(a,b){for(var c=a.slice(),d=0;d<c.length;d++)c[d]=kc(c[d],b);Array.isArray(a)&&Vb(a)&1&&Wb(c);return c}function hc(a){if(a&&typeof a==p&&a.toJSON)return a.toJSON();a=dc(a);return Array.isArray(a)?gc(a):a}function ic(a){return Sb&&null!=a&&a instanceof Uint8Array?new Uint8Array(a):a};function lc(a,b,c){a||(a=mc);mc=null;var d=this.constructor.g;a||(a=d?[d]:[]);this.h=(d?0:-1)-(this.constructor.h||0);this.j=void 0;this.na=a;a:{d=this.na.length;a=d-1;if(d&&(d=this.na[a],Xb(d))){this.i=a-this.h;this.g=d;break a}void 0!==b&&-1<b?(this.i=Math.max(b,a+1-this.h),this.g=void 0):this.i=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)if(a=c[b],a<this.i)a+=this.h,(d=this.na[a])?Array.isArray(d)&&Wb(d):this.na[a]=Zb;else{d=this.g||(this.g=this.na[this.i+this.h]={});var e=d[a];e?Array.isArray(e)&&
Wb(e):d[a]=Zb}}lc.prototype.toJSON=function(){var a=this.na;return Yb?a:gc(a)};function nc(a,b){return dc(b)}var mc;function oc(){lc.apply(this,arguments)}x(oc,lc);function pc(){var a={};Object.defineProperties(oc,(a[Symbol.hasInstance]=ac(function(){throw Error("Cannot perform instanceof checks for MutableMessage");}),a))}$b&&pc();function qc(a){y.setTimeout(function(){throw a;},0)};function G(){oc.apply(this,arguments)}x(G,oc);function rc(){var a={};Object.defineProperties(G,(a[Symbol.hasInstance]=ac(Object[Symbol.hasInstance]),a))}$b&&rc();function sc(a){G.call(this,a)}x(sc,G);function tc(a){G.call(this,a)}x(tc,G);tc.g="tf";function uc(a){G.call(this,a)}x(uc,G);function vc(a){G.call(this,a)}x(vc,G);function wc(a){G.call(this,a)}x(wc,G);wc.g="er";function xc(a){G.call(this,a)}x(xc,G);xc.g="xsrf";function yc(a){return Ab(a.prototype,"$$generatedClassName",function(){return"Class$obf_"+{valueOf:function(){return++zc}}})}var zc=1E3;function Ac(a,b){this.i=a;this.j=b;this.h=0;this.g=null}Ac.prototype.get=function(){if(0<this.h){this.h--;var a=this.g;this.g=a.next;a.next=null}else a=this.i();return a};function Bc(a,b){a.j(b);100>a.h&&(a.h++,b.next=a.g,a.g=b)};var Cc=[],Dc=[],Ec=!1;function Fc(a){Cc[Cc.length]=a;if(Ec)for(var b=0;b<Dc.length;b++)a(z(Dc[b].g,Dc[b]))};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};function Gc(){return null}function Hc(){};function Ic(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Jc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function H(a){var b={},c;for(c in a)b[c]=a[c];return b}var Kc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Lc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Kc.length;f++)c=Kc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Mc;function I(a,b){this.i=b===Nc?a:""}I.prototype.h=!0;I.prototype.g=function(){return this.i.toString()};I.prototype.toString=function(){return this.i.toString()};function Oc(a){return a instanceof I&&a.constructor===I?a.i:"type_error:SafeUrl"}var Pc=/^data:(.*);base64,[a-z0-9+\/]+=*$/i;function Qc(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");return a.match(Pc)?new I(a,Nc):null}var Rc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Nc={},Sc=new I(sa,Nc);var Tc={};function Uc(a,b,c){this.i=c===Tc?a:"";this.h=!0}Uc.prototype.g=function(){return this.i.toString()};Uc.prototype.toString=function(){return this.i.toString()};function Vc(a){return a instanceof Uc&&a.constructor===Uc?a.i:"type_error:SafeHtml"}var Wc=new Uc(y.trustedTypes&&y.trustedTypes.emptyHTML||"",0,Tc);function Xc(a){if(void 0===Mc){var b=null;var c=y.trustedTypes;if(c&&c.createPolicy){try{b=c.createPolicy("goog#html",{createHTML:fb,createScript:fb,createScriptURL:fb})}catch(d){y.console&&y.console.error(d.message)}Mc=b}else Mc=b}a=(b=Mc)?b.createHTML(a):a;return new Uc(a,null,Tc)};var Yc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=Vc(Wc);return!b.parentElement});function Zc(a,b){if(Yc())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Vc(b)}
function $c(a,b){if(b instanceof I)var c=b;else a:if(c=b,b=/^data:image\//i.test(b),!(c instanceof I)){c=typeof c==p&&c.h?c.g():String(c);if(b&&/^data:/i.test(c)&&(b=Qc(c)||Sc,b.g()==c)){c=b;break a}Rc.test(c)||(c=sa);c=new I(c,Nc)}a.src=Oc(c)};function ad(a){return decodeURIComponent(a.replace(/\+/g," "))}function bd(a){rb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(kb,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(lb,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(mb,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(nb,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(pb,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(qb,"&#0;")));return a}
function cd(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=y.document.createElement("div");return a.replace(dd,function(d,e){var f=b[d];if(f)return f;"#"==e.charAt(0)&&(e=Number("0"+e.substr(1)),isNaN(e)||(f=String.fromCharCode(e)));f||(f=Xc(d+" "),Zc(c,f),f=c.firstChild.nodeValue.slice(0,-1));return b[d]=f})}
function ed(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?b:String.fromCharCode(c)}})}
var dd=/&([^;\s<&]+);?/g,fd={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},gd={"'":"\\'"},hd=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function id(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");-1===c&&(c=a.length);var d="-"===a[0]?"-":"";d&&(a=a.substring(1));return d+hd("0",Math.max(0,b-c))+a}function jd(a){return null==a?"":String(a)}
function kd(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)};function ld(a){return a.parentWindow||a.defaultView}function md(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}function nd(){this.g=y.document||document}nd.prototype.createElement=function(a){return md(this.g,a)};nd.prototype.appendChild=function(a,b){a.appendChild(b)};var od;
function pd(){var a=y.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var e=md(document,"IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),k="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=z(function(l){if(("*"==k||l.origin==k)&&l.data==g)this.port1.onmessage()},this);
f.addEventListener(Aa,e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,k)}}});if("undefined"!==typeof a&&!C("Trident")&&!C("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Zb;c.Zb=null;e()}};return function(e){d.next={Zb:e};d=d.next;b.port2.postMessage(0)}}return function(e){y.setTimeout(e,0)}}function qd(a){return a}Fc(function(a){qd=a});function rd(){this.h=this.g=null}rd.prototype.add=function(a,b){var c=sd.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function td(){var a=ud,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var sd=new Ac(function(){return new vd},function(a){return a.reset()});function vd(){this.next=this.scope=this.g=null}vd.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};vd.prototype.reset=function(){this.next=this.scope=this.g=null};function wd(a,b){xd||yd();zd||(xd(),zd=!0);ud.add(a,b)}var xd;function yd(){if(y.Promise&&y.Promise.resolve){var a=y.Promise.resolve(void 0);xd=function(){a.then(Ad)}}else xd=function(){var b=Ad;b=qd(b);typeof y.setImmediate!==h||y.Window&&y.Window.prototype&&!C("Edge")&&y.Window.prototype.setImmediate==y.setImmediate?(od||(od=pd()),od(b)):y.setImmediate(b)}}var zd=!1,ud=new rd;function Ad(){for(var a;a=td();){try{a.g.call(a.scope)}catch(b){qc(b)}Bc(sd,a)}zd=!1};function Bd(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Cd(a){this.g=0;this.s=void 0;this.j=this.h=this.i=null;this.l=this.o=!1;if(a!=Va)try{var b=this;a.call(void 0,function(c){Dd(b,2,c)},function(c){Dd(b,3,c)})}catch(c){Dd(this,3,c)}}function Ed(){this.next=this.i=this.h=this.j=this.g=null;this.l=!1}Ed.prototype.reset=function(){this.i=this.h=this.j=this.g=null;this.l=!1};var Fd=new Ac(function(){return new Ed},function(a){a.reset()});function Gd(a,b,c){var d=Fd.get();d.j=a;d.h=b;d.i=c;return d}
Cd.prototype.then=function(a,b,c){return Hd(this,typeof a===h?a:null,typeof b===h?b:null,c)};Cd.prototype.$goog_Thenable=!0;Cd.prototype.cancel=function(a){if(0==this.g){var b=new Id(a);wd(function(){Jd(this,b)},this)}};function Jd(a,b){if(0==a.g)if(a.i){var c=a.i;if(c.h){for(var d=0,e=null,f=null,g=c.h;g&&(g.l||(d++,g.g==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.g&&1==d?Jd(c,b):(f?(d=f,d.next==c.j&&(c.j=d),d.next=d.next.next):Kd(c),Ld(c,e,3,b)))}a.i=null}else Dd(a,3,b)}
function Md(a,b){a.h||2!=a.g&&3!=a.g||Nd(a);a.j?a.j.next=b:a.h=b;a.j=b}function Hd(a,b,c,d){var e=Gd(null,null,null);e.g=new Cd(function(f,g){e.j=b?function(k){try{var l=b.call(d,k);f(l)}catch(m){g(m)}}:f;e.h=c?function(k){try{var l=c.call(d,k);void 0===l&&k instanceof Id?g(k):f(l)}catch(m){g(m)}}:g});e.g.i=a;Md(a,e);return e.g}Cd.prototype.B=function(a){this.g=0;Dd(this,2,a)};Cd.prototype.C=function(a){this.g=0;Dd(this,3,a)};
function Dd(a,b,c){if(0==a.g){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.B,f=a.C;if(d instanceof Cd){Md(d,Gd(e||Va,f||null,a));var g=!0}else if(Bd(d))d.then(e,f,a),g=!0;else{if(Xa(d))try{var k=d.then;if(typeof k===h){Od(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}g||(a.s=c,a.g=b,a.i=null,Nd(a),3!=b||c instanceof Id||Pd(a,c))}}
function Od(a,b,c,d,e){function f(l){k||(k=!0,d.call(e,l))}function g(l){k||(k=!0,c.call(e,l))}var k=!1;try{b.call(a,g,f)}catch(l){f(l)}}function Nd(a){a.o||(a.o=!0,wd(a.v,a))}function Kd(a){var b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.j=null);return b}Cd.prototype.v=function(){for(var a;a=Kd(this);)Ld(this,a,this.g,this.s);this.o=!1};
function Ld(a,b,c,d){if(3==c&&b.h&&!b.l)for(;a&&a.l;a=a.i)a.l=!1;if(b.g)b.g.i=null,Qd(b,c,d);else try{b.l?b.j.call(b.i):Qd(b,c,d)}catch(e){Rd.call(null,e)}Bc(Fd,b)}function Qd(a,b,c){2==b?a.j.call(a.i,c):a.h&&a.h.call(a.i,c)}function Pd(a,b){a.l=!0;wd(function(){a.l&&Rd.call(null,b)})}var Rd=qc;function Id(a){B.call(this,a);this.g=!1}A(Id,B);Id.prototype.name="cancel";/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
function J(){this.o=[];this.j=this.g=!1;this.i=void 0;this.B=this.C=this.v=!1;this.s=0;this.h=null;this.l=0}u=J.prototype;u.cancel=function(a){if(this.g)this.i instanceof J&&this.i.cancel();else{if(this.h){var b=this.h;delete this.h;a?b.cancel(a):(b.l--,0>=b.l&&b.cancel())}this.B=!0;this.g||this.hc(new Sd(this))}};u.ec=function(a,b){this.v=!1;Td(this,a,b)};function Td(a,b,c){a.g=!0;a.i=c;a.j=!b;Ud(a)}function Vd(a){if(a.g){if(!a.B)throw new Wd(a);a.B=!1}}
u.callback=function(a){Vd(this);Td(this,!0,a)};u.hc=function(a){Vd(this);Td(this,!1,a)};function Xd(a,b,c){Yd(a,b,null,c)}function Yd(a,b,c,d){a.o.push([b,c,d]);a.g&&Ud(a)}u.then=function(a,b,c){var d,e,f=new Cd(function(g,k){e=g;d=k});Yd(this,e,function(g){g instanceof Sd?f.cancel():d(g)});return f.then(a,b,c)};J.prototype.$goog_Thenable=!0;function Zd(a,b){b instanceof J?Xd(a,z(b.D,b)):Xd(a,function(){return b})}
J.prototype.D=function(a){var b=new J;Yd(this,b.callback,b.hc,b);a&&(b.h=this,this.l++);return b};function $d(a){return vb(a.o,function(b){return typeof b[1]===h})}
function Ud(a){if(a.s&&a.g&&$d(a)){var b=a.s,c=ae[b];c&&(y.clearTimeout(c.g),delete ae[b]);a.s=0}a.h&&(a.h.l--,delete a.h);b=a.i;for(var d=c=!1;a.o.length&&!a.v;){var e=a.o.shift(),f=e[0],g=e[1];e=e[2];if(f=a.j?g:f)try{var k=f.call(e||null,b);void 0!==k&&(a.j=a.j&&(k==b||k instanceof Error),a.i=b=k);if(Bd(b)||typeof y.Promise===h&&b instanceof y.Promise)d=!0,a.v=!0}catch(l){b=l,a.j=!0,$d(a)||(c=!0)}}a.i=b;d&&(k=z(a.ec,a,!0),d=z(a.ec,a,!1),b instanceof J?(Yd(b,k,d),b.C=!0):b.then(k,d));c&&(b=new be(b),
ae[b.g]=b,a.s=b.g)}function Wd(){B.call(this)}A(Wd,B);Wd.prototype.message="Deferred has already fired";Wd.prototype.name="AlreadyCalledError";function Sd(){B.call(this)}A(Sd,B);Sd.prototype.message="Deferred was canceled";Sd.prototype.name="CanceledError";function be(a){this.g=y.setTimeout(z(this.i,this),0);this.h=a}be.prototype.i=function(){delete ae[this.g];throw this.h;};var ae={};function K(){}K.prototype.Ea=function(a){return ce(this,a)};K.prototype.$a=function(){return de(this)};K.prototype.toString=function(){return L(ee(fe(this.constructor)))+"@"+L((this.$a()>>>0).toString(16))};function ge(){}x(ge,K);function he(a,b){ie(a);a.j=b;je(a)}ge.prototype.h=function(a){this.g=a;ke(this,a)};function je(a){a.g instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(a.g):a.g.stack=Error().stack)}ge.prototype.toString=function(){var a=ee(fe(this.constructor)),b=this.j;return null==b?a:L(a)+": "+L(b)};
function le(a){if(null!=a){var b=a.Sc;if(null!=b)return b}a instanceof TypeError?(b=new me,he(b,L(a)),ne(b),b.i=a,b.h(new TypeError(b)),a=b):(b=new oe,he(b,L(a)),ne(b),b.i=a,b.h(Error(b)),a=b);return a}function ie(a){a.o=pe([0],ge,qe,ge.g)}function qe(a){return a instanceof ge}function ke(a,b){if(b instanceof Object)try{b.Sc=a,Object.defineProperties(b,{Xa:{get:function(){return a.l&&a.l.g}}})}catch(c){}};function re(){}x(re,ge);function se(){}x(se,re);function ce(a,b){return Object.is(a,b)||null==a&&null==b};function te(){}var ue;x(te,K);function ve(){}x(ve,K);function we(){}x(we,se);function oe(){}x(oe,se);oe.prototype.h=function(a){se.prototype.h.call(this,"__noinit__"===this.i?a:this.i)};function ne(a){a.i="__noinit__"};function me(){}x(me,oe);function xe(a){switch(typeof a){case r:for(var b=0,c=0;c<a.length;c=c+1|0)b=(b<<5)-b+a.charCodeAt(c)|0;return b;case n:return ye(a);case va:return a?1231:1237;default:return null==a?0:de(a)}}var ze=0;function de(a){return a.Ob||(Object.defineProperties(a,{Ob:{value:ze=ze+1|0,enumerable:!1}}),a.Ob)};function Ae(){};function Be(){}x(Be,K);function Ce(a){var b=typeof a;if(b==n)return fe(De);if(b==va)return fe(ve);if(b==r)return fe(Ee);if(Array.isArray(a))return(a=a.Jc)?fe(a.Jb,a.Fb):fe(K,1);if(a instanceof K)return fe(a.constructor);if(a)return fe(b==h?Ae:Be);throw new TypeError("null.getClass");};function Fe(){}x(Fe,K);Fe.prototype.toString=function(){return this.g};function Ge(a,b){return typeof a==r?a.charCodeAt(b):a.g.charCodeAt(b)};function He(){}x(He,Fe);function Ie(){}x(Ie,se);function Je(a){return 56320<=a&&57343>=a};function Ke(){}x(Ke,Ie);function De(){}x(De,te);function ye(a){return Math.max(Math.min(a,2147483647),-2147483648)|0};function pe(a,b,c,d){return Le(a,d,{Jb:b,pc:c,Fb:a.length})}function Le(a,b,c){var d=a[0];if(null==d)return null;var e=[];c&&(e.Jc=c);if(1<a.length){a=a.slice(1);c=c&&{Jb:c.Jb,pc:c.pc,Fb:c.Fb-1};for(var f=0;f<d;f++)e[f]=Le(a,b,c)}else if(void 0!==b)for(a=0;a<d;a++)e[a]=b;else e.length=d;return e};var Me;function Ne(){Ne=function(){};Me=pe([256],Oe,Pe,Oe.g)};function Oe(){this.g=0}x(Oe,te);function Qe(a){if(-129<a&&128>a){Ne();var b=a+128|0,c=Me[b];c||(c=Me[b]=Re(a));a=c}else a=Re(a);return a}function Re(a){var b=new Oe;b.g=a;return b}Oe.prototype.Ea=function(a){return Pe(a)&&a.g==this.g};Oe.prototype.$a=function(){return this.g};Oe.prototype.toString=function(){return""+this.g};function Pe(a){return a instanceof Oe};function Ee(){}x(Ee,K);function L(a){return null==a?Ba:a.toString()}function Se(a,b){var c=a.length,d,e=Ge(a,(d=b,b=b+1|0,d)),f,g;55296<=e&&56319>=e&&b<c&&Je(f=Ge(a,b))?g=65536+((e&1023)<<10)+(f&1023)|0:g=e;return g};function Te(a,b){this.g=a;this.h=b}x(Te,K);function ee(a){if(0!=a.h){for(var b="",c=0;c<a.h;c=c+1|0)b=L(b)+"[";a=L(b)+String("L"+L(yc(a.g))+";")}else a=yc(a.g);return a}Te.prototype.toString=function(){return"class "+L(ee(this))};function fe(a,b){var c=b||0;return Ab(a.prototype,"$$class/"+c,function(){return new Te(a,c)})};function Ue(){this.g=!1}x(Ue,K);u=Ue.prototype;u.dispose=function(){this.g||(this.g=!0,this.A())};u.isDisposed=function(){return this.g};u.I=function(a){a&&!a.isDisposed()&&(this.isDisposed()?a.dispose():(this.j||(this.j=[]),this.j.push(a)))};u.A=function(){if(this.j){var a=this.j;for(var b=0;b<a.length;b++)a[b].dispose();this.j.length=0}};u.toString=function(){return K.prototype.toString.call(this)||""};function Ve(a,b){a=L(a);if(b)for(var c=0;c<b.length;c=c+1|0){var d=b,e=c;var f=b[c];if(null==f)var g=Ba;else try{g=f.toString()}catch(l){if(l=le(l),l instanceof re)g=l,f=L(ee(Ce(f)))+String.fromCharCode(64)+L((xe(f)>>>0).toString(16)),g="<"+L(f)+" threw "+L(ee(Ce(g)))+">";else throw l.g;}d[e]=g}else b=["(Object[])null"];c=new He;c.g="";for(d=g=0;d<b.length;){e=void 0;f=a.indexOf("%s",g);if(-1==f)break;c.g=L(c.g)+L(L(a).substr(g,f-g|0));g=b[e=d,d=d+1|0,e];c.g=L(c.g)+L(g);g=f+2|0}c.g=L(c.g)+L(L(a).substr(g,
a.length-g|0));if(d<b.length){var k;c.g=L(c.g)+" [";a=b[k=d,d=d+1|0,k];for(c.g=L(c.g)+L(a);d<b.length;)k=void 0,c.g=L(c.g)+", ",a=b[k=d,d=d+1|0,k],c.g=L(c.g)+L(a);c.g=L(c.g)+String.fromCharCode(93)}return c.toString()};function We(a,b,c){a[b]=void 0!==c?c:null};function Xe(){var a=a?a:function(c){return ye(Math.floor(Math.random()*c))};var b=(a(2147483647)>>>0).toString(16);b=L(Ye("0",Math.max(0,8-b.length|0)))+L(b);a=(a(2147483647)>>>0).toString(16);return L(a)+L(b)};var Ye=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function Ze(a,b){return $e(b)in a};function $e(a){if(null==a)throw a=new me,he(a,"can't identity hash null"),ne(a),a.h(new TypeError(a)),a.g;return":"+xe(a)};function af(){this.g=!1}x(af,Ue);function bf(){this.g=!1;this.h={};this.i=null}x(bf,af);bf.prototype.A=function(){af.prototype.A.call(this);var a=this.h,b;for(b in a)delete a[b];this.i=null};bf.prototype.dispatchEvent=function(a){if(!this.i){var b=this.h;var c=[],d;for(d in b)c.push(b[d]);this.i=c}b=this.i;for(c=0;c<b.length;c=c+1|0)(0,b[c])(a)};var cf;function df(){cf||(cf=new ef(null));return cf};function ff(){}x(ff,K);ff.prototype.get=function(){if(!this.g){var a=y._docs_flag_initialData;this.g=a?a:{}}return this.g};function ef(a){this.g=new ff;if(a)for(var b in a){var c=b,d=a[b],e=this.g.get();e[c]=Pe(d)?d.g:null!=d?d:null}}x(ef,K);ef.prototype.get=function(a){return this.g.get()[a]};function gf(a,b){a=a.g.get();return b in a}function hf(a,b){a=a.get(b);return typeof a==r?"true"==a||"1"==a:!!a}
function jf(a,b){if(!gf(a,b)||null==a.get(b))return NaN;try{var c=L(a.get(b));ue||(ue=RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$"));if(!ue.test(c)){var d=new Ke;he(d,'For input string: "'+L(c)+'"');d.h(Error(d));throw d.g;}return parseFloat(c)}catch(e){e=le(e);if(e instanceof Ke)return NaN;throw e.g;}}function kf(a,b){if(!gf(a,b))return"";a=a.get(b);return null==a?"":n===typeof a&&ye(a)==ye(a)?""+ye(a):L(a)};function lf(){this.Gb=kf(df(),"gaia_session_id")}var mf;x(lf,K);function nf(){}var of,pf,qf,rf,sf;x(nf,K);function tf(){tf=function(){};of=new nf;pf=new nf;qf=new nf;rf=new nf;sf=new nf};function uf(){this.g=0}var vf={},wf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Gf,Hf,If,Jf,Kf;x(uf,K);function M(a,b){var c=new uf;c.h=a;c.g=b;We(vf,a,c);return c}uf.prototype.toString=function(){return this.h};
function N(){N=function(){};zf=M("IDLE",1);Af=M("BUSY",1);Bf=M("RECOVERING",2);Cf=M("OFFLINE",3);Df=M("SERVER_DOWN",3);xf=M("FORBIDDEN",4);yf=M("AUTH_REQUIRED",4);Ef=M("SESSION_LIMIT_EXCEEDED",5);Ff=M("LOCKED",5);Gf=M("INCOMPATIBLE_SERVER",5);Hf=M("CLIENT_ERROR",5);M("BATCH_CLIENT_ERROR",3);M("SAVE_ERROR",5);If=M("DOCUMENT_TOO_LARGE",5);M("BATCH_SAVE_ERROR",3);Jf=M("DOCS_EVERYWHERE_IMPORT_ERROR",5);wf=M("POST_LIMIT_EXCEEDED_ERROR",5);Kf=M("DOCS_QUOTA_EXCEEDED_ERROR",5)};var Lf;function Mf(){Mf=function(){};Lf=RegExp("^[^\\[\\{]+")};function Nf(){this.i=this.h=this.g=!1;this.j=0}x(Nf,K);function Of(){this.i=this.h=this.g=!1;this.j=0}x(Of,K);function Pf(a){var b={};We(b,"sid",a.l);var c=df();hf(c,"docs-ecvca")&&We(b,"vc",a.g?"1":"0");We(b,"c",a.h?"1":"0");We(b,"w",a.i?"1":"0");We(b,"flr",""+ye(a.j));gf(c,"docs-smv")&&(a=""+ye(jf(c,"docs-smv")),We(b,"smv",a));return b};function Qf(){this.g=!1;this.i=new bf;this.o=new bf;this.l=new Rf((tf(),of));this.h=(N(),zf);this.I(this.i);this.I(this.o);this.I(this.l)}x(Qf,Ue);function Sf(a,b,c,d){var e=a.h;if(!ce(b,e)){a.h=b;var f=a.l;var g=b.Ea(xf)?(tf(),rf):b.Ea(yf)?(tf(),qf):5<=b.g?(tf(),sf):1!=b.g?(tf(),pf):(tf(),of);if(!ce(f.value,g)){var k=f.value;f.value=g;f.dispatchEvent(new Tf(k,g))}a.i.dispatchEvent(new Uf(e,b,c,d))}}Qf.prototype.getState=function(){return this.h};function Uf(a,b){this.h=a;this.g=b}x(Uf,K);function Vf(a){bf.call(this);this.value=a}x(Vf,bf);function Rf(a){Vf.call(this,a)}x(Rf,Vf);function Tf(a,b){this.oldValue=a;this.newValue=b}x(Tf,K);function Wf(a,b,c,d,e){this.l=a;this.i=b;this.j=c;this.h=d;this.g=e}x(Wf,K);Wf.prototype.toString=function(){var a="MalformedCharacterContext(unicodeChar: "+L(this.l)+", index: "+this.i+", textLength: "+this.j;null!=this.h&&(a=L(a)+(", prev: "+L(this.h)));null!=this.g&&(a=L(a)+(", next: "+L(this.g)));return L(a)+")"};Wf.prototype.Ea=function(a){return a instanceof Wf&&ce(this.toString(),a.toString())};
Wf.prototype.$a=function(){for(var a=[this.l,Qe(this.i),Qe(this.j),this.h,this.g],b=1,c=0;c<a.length;c++){b=Math.imul(31,b);var d=a[c];null!=d?d=d.$a?d.$a():xe(d):d=0;b=b+d|0}return b};function Xf(a,b){return 0>b||b>=a.length?null:"\\u"+L((Se(a,b)>>>0).toString(16))};function Yf(){}x(Yf,K);function Zf(){this.g=!1;this.h=[]}x(Zf,Ue);function $f(a,b,c){a=a.h;if(null==c)throw b=new me,ie(b),je(b),ne(b),b.h(new TypeError(b)),b.g;if(Ze(b.h,c))throw b=Ve("Observer %s previously registered.",[c]),c=new we,he(c,b),c.h(Error(c)),c.g;We(b.h,$e(c),c);b.i=null;var d=new Yf;d.g=b;d.h=c;a.push(d)}
Zf.prototype.A=function(){for(var a=this.h.pop();a;){if(Ze(a.g.h,a.h)){var b=a.g,c=a=a.h;if(!Ze(b.h,c))throw b=Ve("Trying to remove inexistant Observer %s.",[a]),a=new Ie,he(a,b),a.h(Error(a)),a.g;a=$e(c);delete b.h[a];b.i=null}a=this.h.pop()}Ue.prototype.A.call(this)};function ag(a,b,c,d,e,f){this.l=a;this.h=bg(b);this.o=c;this.g=d;this.j=e;this.i=f}function bg(a){return a&&!ib(a)?jb(a.toLowerCase()):null}ag.prototype.Ea=function(a){return this.l==a.l&&this.h==a.h&&this.o==a.o&&this.g==a.g&&this.j==a.j&&this.i==a.i};function cg(){this.i=this.j=this.h=this.s=this.o=this.g=this.l=null};function O(a){a&&typeof a.dispose==h&&a.dispose()};function dg(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];Wa(d)?dg.apply(null,d):O(d)}};function P(){this.ia=this.ia;this.Fa=this.Fa}u=P.prototype;u.ia=!1;u.isDisposed=function(){return this.ia};u.dispose=function(){this.ia||(this.ia=!0,this.A())};u.I=function(a){a=cb(O,a);this.ia?a():(this.Fa||(this.Fa=[]),this.Fa.push(a))};u.A=function(){if(this.Fa)for(;this.Fa.length;)this.Fa.shift()()};function Q(a,b){this.type=a;this.h=this.target=b;this.defaultPrevented=!1}Q.prototype.j=function(){this.defaultPrevented=!0};function eg(a){var b=y.onerror;y.onerror=function(c,d,e,f,g){b&&b(c,d,e,f,g);a({message:c,fileName:d,line:e,lineNumber:e,yd:f,error:g});return!1}}
function fg(a){var b=Ua("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if(typeof a===r)return{message:a,name:"Unknown error",lineNumber:ia,fileName:b,stack:ia};var c=!1;try{var d=a.lineNumber||a.line||ia}catch(f){d=ia,c=!0}try{var e=a.fileName||a.filename||a.sourceURL||y.$googDebugFname||b}catch(f){e=ia,c=!0}b=gg(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name))return c=a.message,null==c&&(c=a.constructor&&a.constructor instanceof Function?'Unknown Error of type "'+
(a.constructor.name?a.constructor.name:hg(a.constructor))+'"':"Unknown Error of unknown type",typeof a.toString===h&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())),{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||ia};a.stack=b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}}
function gg(a,b){b||(b={});b[ig(a)]=!0;var c=a.stack||"";(a=a.Xa)&&!b[ig(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+=typeof a===r?a:a.message+"\n"),c+=gg(a,b));return c}function ig(a){var b="";typeof a.toString===h&&(b=""+a);return b+a.stack}function jg(a,b){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,jg));a.stack||(a.stack=kg(jg));if(b){for(var c=0;a[Aa+c];)++c;a[Aa+c]=String(b)}return a}
function lg(a,b){a=jg(a);if(b)for(var c in b){var d=a,e=c,f=b[c];d.__closure__error__context__984382||(d.__closure__error__context__984382={});d.__closure__error__context__984382[e]=f}return a}function kg(a){var b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,a||kg),b=String(b.stack);else{try{throw b;}catch(c){b=c}b=(b=b.stack)?String(b):null}b||(b=mg(a||arguments.callee.caller,[]));return b}
function mg(a,b){var c=[];if(0<=ub(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(hg(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var f=d[e];switch(typeof f){case p:f=f?p:Ba;break;case r:break;case n:f=String(f);break;case va:f=f?"true":"false";break;case h:f=(f=hg(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(mg(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function hg(a){if(ng[a])return ng[a];a=String(a);if(!ng[a]){var b=/function\s+([^\(]+)/m.exec(a);ng[a]=b?b[1]:"[Anonymous]"}return ng[a]}var ng={};var og=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{y.addEventListener("test",Va,b),y.removeEventListener("test",Va,b)}catch(c){}return a}();function pg(a,b){Q.call(this,a?a.type:"");this.relatedTarget=this.h=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.g=null;a&&this.init(a,b)}A(pg,Q);var qg={2:"touch",3:"pen",4:"mouse"};
pg.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.h=b;if(b=a.relatedTarget){if(Db){a:{try{zb(b.nodeName);var e=!0;break a}catch(f){}e=!1}e||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||
0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=typeof a.pointerType===r?a.pointerType:qg[a.pointerType]||"";this.state=a.state;this.g=a;a.defaultPrevented&&pg.P.j.call(this)};
pg.prototype.j=function(){pg.P.j.call(this);var a=this.g;a.preventDefault?a.preventDefault():a.returnValue=!1};var rg="closure_listenable_"+(1E6*Math.random()|0);function sg(a){return!(!a||!a[rg])};var tg=0;function ug(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.lb=e;this.key=++tg;this.cb=this.Ma=!1}function vg(a){a.cb=!0;a.listener=null;a.proxy=null;a.src=null;a.lb=null};function wg(a){this.src=a;this.listeners={};this.g=0}wg.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.g++);var g=xg(a,b,d,e);-1<g?(b=a[g],c||(b.Ma=!1)):(b=new ug(b,this.src,f,!!d,e),b.Ma=c,a.push(b));return b};function yg(a,b){var c=b.type;c in a.listeners&&wb(a.listeners[c],b)&&(vg(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--))}
wg.prototype.Za=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=xg(a,b,c,d));return-1<e?a[e]:null};wg.prototype.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return Jc(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};function xg(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.cb&&f.listener==b&&f.capture==!!c&&f.lb==d)return e}return-1};var zg="closure_lm_"+(1E6*Math.random()|0),Ag={},Bg=0;function Cg(a,b,c,d,e){if(d&&d.once)return Dg(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Cg(a,b[f],c,d,e);return null}c=Eg(c);return sg(a)?a.listen(b,c,Xa(d)?!!d.capture:!!d,e):Fg(a,b,c,!1,d,e)}
function Fg(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=Xa(e)?!!e.capture:!!e,k=Gg(a);k||(a[zg]=k=new wg(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=Hg();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)og||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ig(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Bg++;return c}
function Hg(){function a(c){return b.call(a.src,a.listener,c)}var b=Jg;return a}function Dg(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Dg(a,b[f],c,d,e);return null}c=Eg(c);return sg(a)?a.xa(b,c,Xa(d)?!!d.capture:!!d,e):Fg(a,b,c,!0,d,e)}function Kg(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Kg(a,b[f],c,d,e);else d=Xa(d)?!!d.capture:!!d,c=Eg(c),sg(a)?a.tb(b,c,d,e):a&&(a=Gg(a))&&(b=a.Za(b,c,d,e))&&Lg(b)}
function Lg(a){if(typeof a!==n&&a&&!a.cb){var b=a.src;if(sg(b))yg(b.ja,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ig(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Bg--;(c=Gg(b))?(yg(c,a),0==c.g&&(c.src=null,b[zg]=null)):vg(a)}}}function Mg(a,b,c,d,e){c=Eg(c);d=!!d;return sg(a)?a.Za(b,c,d,e):a?(a=Gg(a))?a.Za(b,c,d,e):null:null}function Ig(a){return a in Ag?Ag[a]:Ag[a]="on"+a}
function Jg(a,b){if(a.cb)a=!0;else{b=new pg(b,this);var c=a.listener,d=a.lb||a.src;a.Ma&&Lg(a);a=c.call(d,b)}return a}function Gg(a){a=a[zg];return a instanceof wg?a:null}var Ng="__closure_events_fn_"+(1E9*Math.random()>>>0);function Eg(a){if(typeof a===h)return a;a[Ng]||(a[Ng]=function(b){return a.handleEvent(b)});return a[Ng]}Fc(function(a){Jg=a(Jg)});function R(){P.call(this);this.ja=new wg(this);this.Tc=this;this.Lb=null}A(R,P);R.prototype[rg]=!0;u=R.prototype;u.addEventListener=function(a,b,c,d){Cg(this,a,b,c,d)};u.removeEventListener=function(a,b,c,d){Kg(this,a,b,c,d)};
u.dispatchEvent=function(a){var b=this.Lb;if(b){var c=[];for(var d=1;b;b=b.Lb)c.push(b),++d}b=this.Tc;d=a.type||a;if(typeof a===r)a=new Q(a,b);else if(a instanceof Q)a.target=a.target||b;else{var e=a;a=new Q(d,b);Lc(a,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var g=a.h=c[f];e=Og(g,d,!0,a)&&e}g=a.h=b;e=Og(g,d,!0,a)&&e;e=Og(g,d,!1,a)&&e;if(c)for(f=0;f<c.length;f++)g=a.h=c[f],e=Og(g,d,!1,a)&&e;return e};
u.A=function(){R.P.A.call(this);if(this.ja){var a=this.ja,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,vg(d[e]);delete a.listeners[c];a.g--}}this.Lb=null};u.listen=function(a,b,c,d){return this.ja.add(String(a),b,!1,c,d)};u.xa=function(a,b,c,d){return this.ja.add(String(a),b,!0,c,d)};
u.tb=function(a,b,c,d){var e=this.ja;a=String(a).toString();if(a in e.listeners){var f=e.listeners[a];b=xg(f,b,c,d);-1<b&&(vg(f[b]),Array.prototype.splice.call(f,b,1),0==f.length&&(delete e.listeners[a],e.g--))}};function Og(a,b,c,d){b=a.ja.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.cb&&g.capture==c){var k=g.listener,l=g.lb||g.src;g.Ma&&yg(a.ja,g);e=!1!==k.call(l,d)&&e}}return e&&!d.defaultPrevented}
u.Za=function(a,b,c,d){return this.ja.Za(String(a),b,c,d)};u.hasListener=function(a,b){return this.ja.hasListener(void 0!==a?String(a):void 0,b)};function Pg(a){R.call(this);this.C=this.l=this.h=this.v=null;this.i=!0;this.s=!1;this.B=this.g=this.j=this.o=null;var b=a.keyData;null==b||""==b?b=new uc:(mc=b=JSON.parse(b),b=new uc(b),mc=null);this.g=b;if(void 0===cc(this.g,sc,9))throw Error("Invalid or missing user.");b=cc(this.g,sc,9);var c=new cg;c.l=F(b,1);c.g=bg(F(b,8));c.o=F(b,2);c.s=F(b,3);c.h=F(b,4)||"";c.j=!!bc(b,5);c.i=!!bc(b,7);this.o=new ag(c.l,c.g,c.o,c.h||"",c.j,c.i);this.i=!bc(this.g,20);this.h=F(this.g,11);this.s=!!bc(this.g,12);
this.l=F(this.g,23);this.C=F(this.g,24);this.v=F(this.g,31);this.B=a.Bd||null;if(a=cc(this.g,tc,44))this.j=F(a,1);this.dispatchEvent("r")}x(Pg,R);function Qg(a,b){Q.call(this,a);this.payload=b||null}x(Qg,Q);function Rg(a){P.call(this);this.h=a}A(Rg,P);Rg.prototype.g=function(a){return Sg(this,a)};function Tg(a,b){return(b?"__wrapper_":"__protected_")+Ya(a)+"__"}function Sg(a,b){var c=Tg(a,!0);b[c]||((b[c]=Ug(a,b))[Tg(a,!1)]=b);return b[c]}
function Ug(a,b){function c(){if(a.isDisposed())return b.apply(this,arguments);try{return b.apply(this,arguments)}catch(e){var d=e;if(!(d&&typeof d===p&&typeof d.message===r&&0==d.message.indexOf(fa)||typeof d===r&&0==d.indexOf(fa)))throw a.h(d),new Vg(d);}}c[Tg(a,!1)]=b;return c}
function Wg(a,b){var c=y.window,d=c[b];c[b]=function(e,f){typeof e===r&&(e=cb(db,e));arguments[0]=e=Sg(a,e);if(d.apply)return d.apply(this,arguments);var g=e;if(2<arguments.length){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][Tg(a,!1)]=d}Rg.prototype.A=function(){var a=y.window;var b=a.setTimeout;b=b[Tg(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[Tg(this,!1)]||b;a.setInterval=b;Rg.P.A.call(this)};
function Vg(a){B.call(this,fa+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&typeof a===r&&(this.stack=a)}A(Vg,B);function Xg(a){var b=[];Yg(new Zg,a,b);return b.join("")}function Zg(){}
function Yg(a,b,c){if(null==b)c.push(Ba);else{if(typeof b==p){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Yg(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],typeof f!=h&&(c.push(e),$g(d,c),c.push(":"),Yg(a,f,c),e=","));c.push("}");return}}switch(typeof b){case r:$g(b,c);break;case n:c.push(isFinite(b)&&!isNaN(b)?
String(b):Ba);break;case va:c.push(String(b));break;case h:c.push(Ba);break;default:throw Error("Unknown type: "+typeof b);}}}var ah={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},bh=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function $g(a,b){b.push('"',a.replace(bh,function(c){var d=ah[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),ah[c]=d);return d}),'"')};function ch(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};function dh(){}dh.prototype.g=null;function eh(a){var b;(b=a.g)||(b={},fh(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};var gh;function hh(){}A(hh,dh);function ih(a){return(a=fh(a))?new ActiveXObject(a):new XMLHttpRequest}function fh(a){if(!a.h&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.h=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.h}gh=new hh;function jh(a,b){R.call(this);this.h=a||1;this.g=b||y;this.i=z(this.wd,this);this.j=Date.now()}A(jh,R);u=jh.prototype;u.Ra=!1;u.ba=null;u.setInterval=function(a){this.h=a;this.ba&&this.Ra?(S(this),this.start()):this.ba&&S(this)};u.wd=function(){if(this.Ra){var a=Date.now()-this.j;0<a&&a<.8*this.h?this.ba=this.g.setTimeout(this.i,this.h-a):(this.ba&&(this.g.clearTimeout(this.ba),this.ba=null),this.dispatchEvent("tick"),this.Ra&&(S(this),this.start()))}};
u.start=function(){this.Ra=!0;this.ba||(this.ba=this.g.setTimeout(this.i,this.h),this.j=Date.now())};function S(a){a.Ra=!1;a.ba&&(a.g.clearTimeout(a.ba),a.ba=null)}u.A=function(){jh.P.A.call(this);S(this);delete this.g};function kh(a,b,c){if(typeof a===h)c&&(a=z(a,c));else if(a&&typeof a.handleEvent==h)a=z(a.handleEvent,a);else throw Error(ha);return 2147483647<Number(b)?-1:y.setTimeout(a,b||0)};function lh(a,b,c,d,e,f,g){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);f&&(k+="?"+f);g&&(k+="#"+g);return k}var mh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function nh(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a}function oh(a){a=a.match(mh);return lh(a[1],a[2],a[3],a[4])}
function ph(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?ad(e):"")}}}function qh(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}
function rh(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)rh(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))}function sh(a,b){var c=[];for(b=b||0;b<a.length;b+=2)rh(a[b],a[b+1],c);return c.join("&")}function th(a){var b=[],c;for(c in a)rh(c,a[c],b);return b.join("&")}function uh(a,b){var c=2==arguments.length?sh(arguments[1],0):sh(arguments,1);return qh(a,c)}function vh(a,b){b=th(b);return qh(a,b)}
function wh(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1}var xh=/#|$/,yh=/[?&]($|#)/;function zh(a,b){for(var c=a.search(xh),d=0,e,f=[];0<=(e=wh(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(yh,"$1")};function T(a){R.call(this);this.headers=new Map;this.C=a||null;this.h=!1;this.B=this.g=null;this.G="";this.j=0;this.i=this.F=this.o=this.D=!1;this.v=0;this.s=null;this.l="";this.H=this.Sa=!1}A(T,R);var Ah=/^https?$/i,Bh=[ja,"PUT"],Ch=[];u=T.prototype;u.Vc=function(){this.dispose();wb(Ch,this)};
u.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.j=0;this.D=!1;this.h=!0;this.g=this.Db();this.B=this.C?eh(this.C):eh(gh);this.g.onreadystatechange=z(this.sc,this);try{this.F=!0,this.g.open(b,String(a),!0),this.F=!1}catch(g){Dh(this);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys===h&&typeof d.get===
h){e=w(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=y.FormData&&a instanceof y.FormData;!(0<=ub(Bh,b))||d||e||c.set(ca,"application/x-www-form-urlencoded;charset=utf-8");b=w(c);for(d=b.next();!d.done;d=b.next())c=w(d.value),d=c.next().value,c=c.next().value,this.g.setRequestHeader(d,c);this.l&&(this.g.responseType=this.l);
"withCredentials"in this.g&&this.g.withCredentials!==this.Sa&&(this.g.withCredentials=this.Sa);try{Eh(this),0<this.v&&((this.H=Fh(this.g))?(this.g.timeout=this.v,this.g.ontimeout=z(this.Pb,this)):this.s=kh(this.Pb,this.v,this)),this.o=!0,this.g.send(a),this.o=!1}catch(g){Dh(this)}};function Fh(a){return E&&Mb(9)&&typeof a.timeout===n&&void 0!==a.ontimeout}u.Db=function(){return this.C?ih(this.C):ih(gh)};u.Pb=function(){"undefined"!=typeof Ta&&this.g&&(this.j=8,this.dispatchEvent("timeout"),this.abort(8))};
function Dh(a){a.h=!1;a.g&&(a.i=!0,a.g.abort(),a.i=!1);a.j=5;Gh(a);Hh(a)}function Gh(a){a.D||(a.D=!0,a.dispatchEvent(wa),a.dispatchEvent("error"))}u.abort=function(a){this.g&&this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1,this.j=a||7,this.dispatchEvent(wa),this.dispatchEvent("abort"),Hh(this))};u.A=function(){this.g&&(this.h&&(this.h=!1,this.i=!0,this.g.abort(),this.i=!1),Hh(this,!0));T.P.A.call(this)};u.sc=function(){this.isDisposed()||(this.F||this.o||this.i?Ih(this):this.Kb())};u.Kb=function(){Ih(this)};
function Ih(a){if(a.h&&"undefined"!=typeof Ta&&(!a.B[1]||4!=Jh(a)||2!=a.da()))if(a.o&&4==Jh(a))kh(a.sc,0,a);else if(a.dispatchEvent(Ca),4==Jh(a)){a.h=!1;try{Kh(a)?(a.dispatchEvent(wa),a.dispatchEvent("success")):(a.j=6,Gh(a))}finally{Hh(a)}}}function Hh(a,b){if(a.g){Eh(a);var c=a.g,d=a.B[0]?Va:null;a.g=null;a.B=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}function Eh(a){a.g&&a.H&&(a.g.ontimeout=null);a.s&&(y.clearTimeout(a.s),a.s=null)}
function Kh(a){var b=a.da(),c;if(!(c=ch(b))){if(b=0===b)a=String(a.G).match(mh)[1]||null,!a&&y.self&&y.self.location&&(a=y.self.location.protocol,a=a.substr(0,a.length-1)),b=!Ah.test(a?a.toLowerCase():"");c=b}return c}function Jh(a){return a.g?a.g.readyState:0}u.da=function(){try{return 2<Jh(this)?this.g.status:-1}catch(a){return-1}};u.O=function(){try{return this.g?this.g.responseText:""}catch(a){return""}};
function Lh(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.l){case "":case t:return a.g.responseText;case ta:if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch(b){return null}}u.getAllResponseHeaders=function(){return this.g&&4==Jh(this)?this.g.getAllResponseHeaders()||"":""};Fc(function(a){T.prototype.Kb=a(T.prototype.Kb)});function Mh(a,b,c){R.call(this);this.i=b||null;this.h={};this.o=Nh;this.l=a;if(!c)if(this.g=null,E&&!Mb("10"))eg(z(this.j,this));else{this.g=new Rg(z(this.j,this));Wg(this.g,"setTimeout");Wg(this.g,"setInterval");a=this.g;b=y.window;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&Wg(a,e)}a=this.g;Ec=!0;b=z(a.g,a);for(c=0;c<Cc.length;c++)Cc[c](b);Dc.push(a)}}A(Mh,R);
function Oh(a){Q.call(this,"a");this.error=a}A(Oh,Q);function Nh(a,b,c,d){if(d instanceof Map){var e={};d=w(d);for(var f=d.next();!f.done;f=d.next()){var g=w(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;d=new T;Ch.push(d);d.xa("ready",d.Vc);d.send(a,b,c,e)}
Mh.prototype.j=function(a,b){a=a.error||a;b=b?H(b):{};a instanceof Error&&Lc(b,a.__closure__error__context__984382||{});var c=fg(a);if(this.i)try{this.i(c,b)}catch(m){}var d=c.message.substring(0,1900);if(!(a instanceof B)||a.g){a=c.stack;try{var e=uh(this.l,"script",c.fileName,"error",d,"line",c.lineNumber);a:{for(var f in this.h){var g=!1;break a}g=!0}g||(e=vh(e,this.h));g={};g.trace=a;if(b)for(var k in b)g["context."+k]=b[k];var l=th(g);this.o(e,ja,l,this.s)}catch(m){}}try{this.dispatchEvent(new Oh(c,
b))}catch(m){}};Mh.prototype.A=function(){O(this.g);Mh.P.A.call(this)};function Ph(a,b,c){this.seq=Qh++;this.type=a;this.payload=b||null;this.rseq=c||0;this.httpMethodHeader=null}var Qh=1;function U(a){P.call(this);this.j=a;this.g={}}A(U,P);var Rh=[];u=U.prototype;u.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Rh[0]=b.toString()),b=Rh);for(var e=0;e<b.length;e++){var f=Cg(a,b[e],c||this.handleEvent,d||!1,this.j||this);if(!f)break;this.g[f.key]=f}return this};u.xa=function(a,b,c,d){return Sh(this,a,b,c,d)};function Sh(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)Sh(a,b,c[g],d,e,f);else{b=Dg(b,c,d||a.handleEvent,e,f||a.j||a);if(!b)return a;a.g[b.key]=b}return a}
u.tb=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.tb(a,b[f],c,d,e);else if(a=Mg(a,b,c||this.handleEvent,Xa(d)?!!d.capture:!!d,e||this.j||this))Lg(a),delete this.g[a.key]};function Th(a){Ic(a.g,function(b,c){this.g.hasOwnProperty(c)&&Lg(b)},a);a.g={}}u.A=function(){U.P.A.call(this);Th(this)};u.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Uh(a,b){U.call(this);var c=this;this.i=b;this.listen(this.i,["u","r","e","p"],this.o);this.h=a;this.h.Ia("send",function(d){return void Vh(c,d)},!0);this.h.Ia("connectBrowserChannel",function(d){var e=c.i;d="true"==d;if(!e.h||!e.s)throw Error("Cannot create browser channel without Docos config and session ID.");if(e.h.i)throw Error("Cannot control BrowserChannel if it is enabled in KeyData");e.g&&(Wh(e.g.j,"9",e.i),e.g.dispose(),e.g=null);d&&(d=new Xh(df()),d.G=e.h.o.g,Yh(d,e.h.h,e.s,e.h.l),
e.g=d,Zh(e.g,"9",e.i))});a=new Mh("jserror",void 0,void 0);if(!a)throw Error("ErrorReporter.install returned null - impossible!");this.l=a}x(Uh,U);Uh.prototype.o=function(a){this.h.send("recvEvt",new Ph(a.type,a.payload))};function Vh(a,b){var c=b.httpMethodHeader,d=b.payload;(d||"GET"==c)&&$h(a.i,{method:b.type,payload:d,td:function(e){return void a.h.send("recv",new Ph(b.type,e,b.seq))},httpMethodHeader:c})}
Uh.prototype.A=function(){U.prototype.A.call(this);O(this.l);delete this.h;delete this.l;delete this.i};function ai(){P.call(this);this.s={}}A(ai,P);u=ai.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.Ia=function(a,b,c){this.s[a]={callback:b,qc:!!c}};u.bb=function(a){this.j=a};function bi(a,b,c){var d;if(d=(d=a.s[b])?d:a.j?{callback:cb(a.j,b),qc:Xa(c)}:null)a=a.ib(b,c,d.qc),null!=a&&d.callback(a)}u.ib=function(a,b,c){if(c&&typeof b===r)try{return JSON.parse(b)}catch(d){return null}else if(!c&&typeof b!==r)return Xg(b);return b};
u.A=function(){ai.P.A.call(this);delete this.s;delete this.j};function ci(a,b,c){ai.call(this);c&&(this.h=c.v(this.h));this.g=a;this.I(this.g);this.g.bb(z(this.h,this));this.i=b}x(ci,ai);ci.prototype.send=function(a,b){Xa(b)&&(b=Xg(b));this.g.send(a,{t:this.i,p:b})};ci.prototype.h=function(a,b){bi(this,a,b)};ci.prototype.ib=function(a,b,c){b=ai.prototype.ib.call(this,a,b,!0);if(!b)return null;var d=b.t;return d&&d==this.i?ai.prototype.ib.call(this,a,b.p,c):null};function di(){R.apply(this,arguments)}x(di,R);function ei(a,b,c){P.call(this);this.h=a;this.j=b||0;this.i=c;this.o=z(this.l,this)}A(ei,P);ei.prototype.g=0;ei.prototype.A=function(){ei.P.A.call(this);fi(this);delete this.h;delete this.i};ei.prototype.start=function(a){fi(this);this.g=kh(this.o,void 0!==a?a:this.j)};function fi(a){0!=a.g&&y.clearTimeout(a.g);a.g=0}ei.prototype.l=function(){this.g=0;this.h&&this.h.call(this.i)};function gi(a,b,c,d){P.call(this);this.i=null!=d?d:.15;this.l=a;this.j=b;this.s=c;this.g=new ei(this.v,void 0,this);this.o=Number.NEGATIVE_INFINITY;this.h=0}x(gi,P);gi.prototype.start=function(){hi(this,!1,!1)};function hi(a,b,c){b&&(fi(a.g),ii(a,a.j));0==a.g.g&&(b=Math.max(0,a.o+a.h-Date.now()),0==b&&(c?b=ii(a,a.j):a.h=0),a.g.start(b))}function ii(a,b){0<b&&0!=a.i&&(b=Math.floor(b*(1-a.i+Math.random()*a.i*2)));return a.h=b}
gi.prototype.v=function(){this.o=Date.now();ii(this,Math.min(Math.max(2*this.h,this.j),this.s));this.l()};gi.prototype.A=function(){this.g.dispose();delete this.g;delete this.l;P.prototype.A.call(this)};function ji(a,b,c,d,e,f){P.call(this);var g=this;this.h=new gi(z(this.o,this),d||5E3,e||45E3,f);this.j=new Zf;this.I(this.j);this.l=a;this.s=b;if(this.g=c||null)$f(this.j,this.g.i(),function(){g.i&&hi(g.h,!0,!1)}),$f(this.j,this.g.h(),function(){fi(g.h.g)});this.I(this.h);this.i=!1}x(ji,P);ji.prototype.start=function(){this.i=!0;if(!this.g||this.g.g())this.s?hi(this.h,!1,!0):this.h.start()};ji.prototype.o=function(){!this.i||this.g&&!this.g.g()||(this.i=!1,this.l())};
ji.prototype.A=function(){delete this.l;delete this.h;delete this.g;P.prototype.A.call(this)};function ki(){}ki.prototype.stringify=function(a){return y.JSON.stringify(a,void 0)};ki.prototype.parse=function(a){return y.JSON.parse(a,void 0)};function li(a,b){if(typeof a!==h)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){a()},b)};function V(a){mi.dispatchEvent(new ni(mi,a))}var mi=new R;function ni(a){Q.call(this,"statevent",a)}x(ni,Q);function oi(a,b,c){P.call(this);this.l=null!=c?a.bind(c):a;this.j=b;this.h=null;this.i=!1;this.g=null}x(oi,P);oi.prototype.o=function(a){this.h=arguments;this.g?this.i=!0:pi(this)};oi.prototype.A=function(){P.prototype.A.call(this);this.g&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)};function pi(a){a.g=kh(function(){a.g=null;a.i&&(a.i=!1,pi(a))},a.j);var b=a.h;a.h=null;a.l.apply(null,b)};function qi(a,b,c,d){this.g=a;this.h=b;this.v=c;this.s=d||1;this.i=45E3;this.j=new U(this);this.o=new jh;this.o.setInterval(250)}u=qi.prototype;u.za=null;u.pa=!1;u.Qa=null;u.Nb=null;u.Oa=null;u.Pa=null;u.ta=null;u.ya=null;u.Ha=null;u.S=null;u.vb=0;u.fa=null;u.ub=null;u.qa=null;u.Ta=-1;u.xc=!0;u.Ba=!1;u.wb=0;u.qb=null;var ri={},si={};u=qi.prototype;u.setTimeout=function(a){this.i=a};function ti(a,b,c){a.Pa=1;a.ta=ui(W(b));a.Ha=c;a.l=!0;vi(a,null)}
function wi(a,b,c,d,e){a.Pa=1;a.ta=ui(W(b));a.Ha=null;a.l=c;e&&(a.xc=!1);vi(a,d)}function vi(a,b){a.Oa=Date.now();xi(a);a.ya=W(a.ta);yi(a.ya,"t",a.s);a.vb=0;a.S=a.g.Eb(a.g.fb()?b:null);0<a.wb&&(a.qb=new oi(z(a.Hc,a,a.S),a.wb));a.j.listen(a.S,Ca,a.pd);b=a.za?H(a.za):{};a.Ha?(a.ub=ja,b[ca]="application/x-www-form-urlencoded",a.S.send(a.ya,a.ub,a.Ha,b)):(a.ub="GET",a.xc&&!Eb&&(b.Connection="close"),a.S.send(a.ya,a.ub,null,b));a.g.ea(1)}u.pd=function(a){a=a.target;var b=this.qb;b&&3==Jh(a)?b.o():this.Hc(a)};
u.Hc=function(a){try{if(a==this.S)a:{var b=Jh(this.S),c=this.S.j,d=this.S.da();if(E&&!(10<=Number(Pb))||Eb&&!Mb("420+")){if(4>b)break a}else if(3>b||3==b&&!this.S.O())break a;this.Ba||4!=b||7==c||(8==c||0>=d?this.g.ea(3):this.g.ea(2));zi(this);var e=this.S.da();this.Ta=e;var f=this.S.O();if(this.pa=200==e){4==b&&Ai(this);if(this.l){for(a=!0;!this.Ba&&this.vb<f.length;){var g=Bi(this,f);if(g==si){4==b&&(this.qa=4,V(15),a=!1);break}else if(g==ri){this.qa=4;V(16);a=!1;break}else Ci(this,g)}4==b&&0==
f.length&&(this.qa=1,V(17),a=!1);this.pa=this.pa&&a;a||(Ai(this),Di(this))}else Ci(this,f);this.pa&&!this.Ba&&(4==b?this.g.pb(this):(this.pa=!1,xi(this)))}else 400==e&&0<f.indexOf("Unknown SID")?(this.qa=3,V(13)):(this.qa=0,V(14)),Ai(this),Di(this)}}catch(k){}finally{}};function Bi(a,b){var c=a.vb,d=b.indexOf("\n",c);if(-1==d)return si;c=Number(b.substring(c,d));if(isNaN(c))return ri;d+=1;if(d+c>b.length)return si;b=b.substr(d,c);a.vb=d+c;return b}
function Ei(a,b){a.Oa=Date.now();xi(a);var c=b?window.location.hostname:"";a.ya=W(a.ta);X(a.ya,"DOMAIN",c);X(a.ya,"t",a.s);try{a.fa=new ActiveXObject("htmlfile")}catch(l){Ai(a);a.qa=7;V(22);Di(a);return}var d="<html><body>";if(b){var e="";for(b=0;b<c.length;b++){var f=c.charAt(b);if("<"==f)f=e+"\\x3c";else if(">"==f)f=e+"\\x3e";else{if(f in gd)f=gd[f];else if(f in fd)f=gd[f]=fd[f];else{var g=f.charCodeAt(0);if(31<g&&127>g)var k=f;else{if(256>g){if(k="\\x",16>g||256<g)k+="0"}else k="\\u",4096>g&&(k+=
"0");k+=g.toString(16).toUpperCase()}f=gd[f]=k}f=e+f}e=f}d+='<script>document.domain="'+e+'"\x3c/script>'}c=Xc(d+"</body></html>");a.fa.open();a.fa.write(Vc(c));a.fa.close();a.fa.parentWindow.m=z(a.kd,a);a.fa.parentWindow.d=z(a.wc,a,!0);a.fa.parentWindow.rpcClose=z(a.wc,a,!1);c=a.fa.createElement("DIV");a.fa.parentWindow.document.body.appendChild(c);d=a.ya.toString();d instanceof I||(d=typeof d==p&&d.h?d.g():String(d),d=Rc.test(d)?new I(d,Nc):Qc(d));d=bd(Oc(d||Sc));d=Xc('<iframe src="'+d+'"></iframe>');
Zc(c,d);a.g.ea(1)}u.kd=function(a){li(z(this.jd,this,a),0)};u.jd=function(a){this.Ba||(zi(this),Ci(this,a),xi(this))};u.wc=function(a){li(z(this.hd,this,a),0)};u.hd=function(a){this.Ba||(Ai(this),this.pa=a,this.g.pb(this),this.g.ea(4))};u.cancel=function(){this.Ba=!0;Ai(this)};function xi(a){a.Nb=Date.now()+a.i;Fi(a,a.i)}function Fi(a,b){if(null!=a.Qa)throw Error("WatchDog timer not null");a.Qa=li(z(a.od,a),b)}function zi(a){a.Qa&&(y.clearTimeout(a.Qa),a.Qa=null)}
u.od=function(){this.Qa=null;var a=Date.now();0<=a-this.Nb?(2!=this.Pa&&this.g.ea(3),Ai(this),this.qa=2,V(18),Di(this)):Fi(this,this.Nb-a)};function Di(a){a.g.mc()||a.Ba||a.g.pb(a)}function Ai(a){zi(a);O(a.qb);a.qb=null;S(a.o);Th(a.j);if(a.S){var b=a.S;a.S=null;b.abort();b.dispose()}a.fa&&(a.fa=null)}function Ci(a,b){try{a.g.tc(a,b),a.g.ea(4)}catch(c){}};function Gi(a,b){this.i=this.v=this.j="";this.s=null;this.o=this.g="";this.l=!1;var c;a instanceof Gi?(this.l=void 0!==b?b:a.l,Hi(this,a.j),this.v=a.v,Ii(this,a.i),Ji(this,a.s),this.g=a.g,Ki(this,Li(a.h)),this.o=a.o):a&&(c=String(a).match(mh))?(this.l=!!b,Hi(this,c[1]||"",!0),this.v=Mi(c[2]||""),Ii(this,c[3]||"",!0),Ji(this,c[4]),this.g=Mi(c[5]||"",!0),Ki(this,c[6]||"",!0),this.o=Mi(c[7]||"")):(this.l=!!b,this.h=new Ni(null,this.l))}
Gi.prototype.toString=function(){var a=[],b=this.j;b&&a.push(Oi(b,Pi,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.v)&&a.push(Oi(b,Pi,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.s,null!=c&&a.push(":",String(c));if(c=this.g)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Oi(c,"/"==c.charAt(0)?Qi:Ri,!0));(c=this.h.toString())&&a.push("?",c);(c=this.o)&&a.push("#",Oi(c,Si));return a.join("")};
Gi.prototype.resolve=function(a){var b=W(this),c=!!a.j;c?Hi(b,a.j):c=!!a.v;c?b.v=a.v:c=!!a.i;c?Ii(b,a.i):c=null!=a.s;var d=a.g;if(c)Ji(b,a.s);else if(c=!!a.g){if("/"!=d.charAt(0))if(this.i&&!this.g)d="/"+d;else{var e=b.g.lastIndexOf("/");-1!=e&&(d=b.g.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=
f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.g=d:c=""!==a.h.toString();c?Ki(b,Li(a.h)):c=!!a.o;c&&(b.o=a.o);return b};function W(a){return new Gi(a)}function Hi(a,b,c){a.j=c?Mi(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))}function Ii(a,b,c){a.i=c?Mi(b,!0):b}function Ji(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.s=b}else a.s=null}function Ki(a,b,c){b instanceof Ni?(a.h=b,Ti(a.h,a.l)):(c||(b=Oi(b,Ui)),a.h=new Ni(b,a.l))}
function X(a,b,c){a.h.set(b,c)}function yi(a,b,c){Array.isArray(c)||(c=[String(c)]);Vi(a.h,b,c)}function ui(a){X(a,"zx",kd());return a}function Wi(a){return a instanceof Gi?W(a):new Gi(a,void 0)}function Xi(a,b,c,d){var e=new Gi(null,void 0);a&&Hi(e,a);b&&Ii(e,b);c&&Ji(e,c);d&&(e.g=d);return e}function Mi(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}
function Oi(a,b,c){return typeof a===r?(a=encodeURI(a).replace(b,Yi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Yi(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Pi=/[#\/\?@]/g,Ri=/[#\?:]/g,Qi=/[#\?]/g,Ui=/[#\?@]/g,Si=/#/g;function Ni(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b}function Zi(a){a.g||(a.g=new Map,a.h=0,a.i&&ph(a.i,function(b,c){a.add(ad(b),c)}))}u=Ni.prototype;
u.add=function(a,b){Zi(this);this.i=null;a=$i(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h=this.h+1;return this};function aj(a,b){Zi(a);b=$i(a,b);a.g.has(b)&&(a.i=null,a.h=a.h-a.g.get(b).length,a.g.delete(b))}function bj(a,b){Zi(a);b=$i(a,b);return a.g.has(b)}u.forEach=function(a,b){Zi(this);this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
function cj(a,b){Zi(a);var c=[];if(typeof b===r)bj(a,b)&&(c=c.concat(a.g.get($i(a,b))));else for(a=Array.from(a.g.values()),b=0;b<a.length;b++)c=c.concat(a[b]);return c}u.set=function(a,b){Zi(this);this.i=null;a=$i(this,a);bj(this,a)&&(this.h=this.h-this.g.get(a).length);this.g.set(a,[b]);this.h=this.h+1;return this};u.get=function(a,b){if(!a)return b;a=cj(this,a);return 0<a.length?String(a[0]):b};function Vi(a,b,c){aj(a,b);0<c.length&&(a.i=null,a.g.set($i(a,b),xb(c)),a.h=a.h+c.length)}
u.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=cj(this,d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.i=a.join("&")};function Li(a){var b=new Ni;b.i=a.i;a.g&&(b.g=new Map(a.g),b.h=a.h);return b}function $i(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b}
function Ti(a,b){b&&!a.j&&(Zi(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(aj(this,d),Vi(this,e,c))},a));a.j=b};function dj(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;ej(a,b,function(g){g?c(!0):y.setTimeout(function(){dj(a,b,c,d,f)},f)})}}function ej(a,b,c){var d=new Image;d.onload=function(){try{fj(d),c(!0)}catch(e){}};d.onerror=function(){try{fj(d),c(!1)}catch(e){}};d.onabort=function(){try{fj(d),c(!1)}catch(e){}};d.ontimeout=function(){try{fj(d),c(!1)}catch(e){}};y.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);$c(d,a)}
function fj(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function gj(a){this.g=a;this.h=new ki}u=gj.prototype;u.xb=null;u.W=null;u.rb=!1;u.Ec=null;u.jb=null;u.Ib=null;u.yb=null;u.$=null;u.ka=-1;u.Ua=null;u.Wa=null;u.connect=function(a){this.yb=a;a=hj(this.g,null,this.yb);V(3);this.Ec=Date.now();var b=this.g.s;null!=b?(this.Ua=ij(this.g,b[0]),(this.Wa=b[1])?(this.$=1,jj(this)):(this.$=2,kj(this))):(yi(a,"MODE","init"),this.W=new qi(this,void 0,void 0,void 0),this.W.za=this.xb,wi(this.W,a,!1,null,!0),this.$=0)};
function jj(a){var b=hj(a.g,a.Wa,"/mail/images/cleardot.gif");ui(b);dj(b.toString(),5E3,z(a.Uc,a),3,2E3);a.ea(1)}u.Uc=function(a){if(a)this.$=2,kj(this);else{V(4);var b=this.g;b.ga=b.va.ka;Y(b,9)}a&&this.ea(2)};
function kj(a){var b=a.g.v;if(null!=b)V(5),b?(V(11),lj(a.g,a,!1)):(V(12),lj(a.g,a,!0));else if(a.W=new qi(a,void 0,void 0,void 0),a.W.za=a.xb,b=a.g,b=hj(b,b.fb()?a.Ua:null,a.yb),V(5),!E||10<=Number(Pb))yi(b,"TYPE","xmlhttp"),wi(a.W,b,!1,a.Ua,!1);else{yi(b,"TYPE","html");var c=a.W;a=!!a.Ua;c.Pa=3;c.ta=ui(W(b));Ei(c,a)}}u.Eb=function(a){return this.g.Eb(a)};u.abort=function(){this.W&&(this.W.cancel(),this.W=null);this.ka=-1};u.mc=function(){return!1};
u.tc=function(a,b){this.ka=a.Ta;if(0==this.$)if(b){try{var c=this.h.parse(b)}catch(d){a=this.g;a.ga=this.ka;Y(a,2);return}this.Ua=ij(this.g,c[0]);this.Wa=c[1]}else a=this.g,a.ga=this.ka,Y(a,2);else if(2==this.$)if(this.rb)V(7),this.Ib=Date.now();else if("11111"==b){if(V(6),this.rb=!0,this.jb=Date.now(),a=this.jb-this.Ec,!E||10<=Number(Pb)||500>a)this.ka=200,this.W.cancel(),V(12),lj(this.g,this,!0)}else V(8),this.jb=this.Ib=Date.now(),this.rb=!1};
u.pb=function(){this.ka=this.W.Ta;if(this.W.pa)0==this.$?this.Wa?(this.$=1,jj(this)):(this.$=2,kj(this)):2==this.$&&((!E||10<=Number(Pb)?!this.rb:200>this.Ib-this.jb)?(V(11),lj(this.g,this,!1)):(V(12),lj(this.g,this,!0)));else{0==this.$?V(9):2==this.$&&V(10);var a=this.g;a.ga=this.ka;Y(a,2)}};u.fb=function(){return this.g.fb()};u.ea=function(a){this.g.ea(a)};function mj(a,b){this.g=1;this.i=[];this.j=[];this.l=new ki;this.s=a||null;this.v=null!=b?b:null}u=mj.prototype;u.Va=null;u.Ya=null;u.Z=null;u.L=null;u.zb=null;u.kb=null;u.Yb=null;u.hb=null;u.Qb=!0;u.ab=0;u.K=null;u.wa=null;u.ma=null;u.Da=null;u.va=null;u.Mb=null;u.ob=-1;u.oc=-1;u.ga=-1;u.Na=0;u.La=0;u.Rb=0;u.sb=!1;u.Ca=8;function nj(a,b){Q.call(this,"timingevent",a);this.size=b}A(nj,Q);function oj(a){Q.call(this,"serverreachability",a)}A(oj,Q);u=mj.prototype;
u.connect=function(a,b,c,d,e){V(0);this.zb=b;this.Ya=c||{};d&&void 0!==e&&(this.Ya.OSID=d,this.Ya.OAID=e);this.Wc(a)};function pj(a){qj(a);if(3==a.g){var b=a.ab++,c=W(a.kb);X(c,"SID",a.h);X(c,"RID",b);X(c,"TYPE","terminate");rj(a,c);b=new qi(a,a.h,b,void 0);b.Pa=2;b.ta=ui(W(c));$c(new Image,b.ta.toString());b.Oa=Date.now();xi(b)}sj(a)}u.Wc=function(a){tj(this)&&(this.va=new gj(this),this.va.xb=this.Va,this.va.h=this.l,this.va.connect(a))};
function qj(a){a.va&&(a.va.abort(),a.va=null);a.L&&(a.L.cancel(),a.L=null);a.ma&&(y.clearTimeout(a.ma),a.ma=null);uj(a);a.Z&&(a.Z.cancel(),a.Z=null);a.wa&&(y.clearTimeout(a.wa),a.wa=null)}u.mc=function(){return 0==this.g};u.getState=function(){return this.g};function vj(a){a.Z||a.wa||(a.wa=li(z(a.vc,a),0),a.Na=0)}
u.vc=function(a){this.wa=null;if(tj(this))if(1==this.g){if(!a){this.ab=Math.floor(1E5*Math.random());a=this.ab++;var b=new qi(this,"",a,void 0);b.za=this.Va;var c=wj(this),d=W(this.kb);X(d,"RID",a);X(d,"CVER","1");rj(this,d);ti(b,d,c);this.Z=b;this.g=2}}else 3==this.g&&(a?xj(this,a):0==this.i.length||this.Z||xj(this))};
function xj(a,b){if(b)if(6<a.Ca){a.i=a.j.concat(a.i);a.j.length=0;var c=a.ab-1;b=wj(a)}else c=b.v,b=b.Ha;else c=a.ab++,b=wj(a);var d=W(a.kb);X(d,"SID",a.h);X(d,"RID",c);X(d,"AID",a.ob);rj(a,d);c=new qi(a,a.h,c,a.Na+1);c.za=a.Va;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.Z=c;ti(c,d,b)}function rj(a,b){a.K&&(a=a.K.jc())&&Ic(a,function(c,d){X(b,d,c)})}
function wj(a){var b=Math.min(a.i.length,1E3),c=["count="+b];if(6<a.Ca&&0<b){var d=a.i[0].g;c.push("ofs="+d)}else d=0;for(var e={},f=0;f<b;e={Ja:e.Ja},f++){e.Ja=a.i[f].g;var g=a.i[f].map;e.Ja=6>=a.Ca?f:e.Ja-d;try{Ic(g,function(k){return function(l,m){c.push("req"+k.Ja+"_"+m+"="+encodeURIComponent(l))}}(e))}catch(k){c.push("req"+e.Ja+"_type="+encodeURIComponent("_badmap"))}}a.j=a.j.concat(a.i.splice(0,b));return c.join("&")}function yj(a){a.L||a.ma||(a.o=1,a.ma=li(z(a.uc,a),0),a.La=0)}
function zj(a){if(a.L||a.ma||3<=a.La)return!1;a.o++;a.ma=li(z(a.uc,a),Aj(a,a.La));a.La++;return!0}u.uc=function(){this.ma=null;if(tj(this)){this.L=new qi(this,this.h,"rpc",this.o);this.L.za=this.Va;this.L.wb=this.Rb;var a=W(this.Yb);X(a,"RID","rpc");X(a,"SID",this.h);X(a,"CI",this.Mb?"0":"1");X(a,"AID",this.ob);rj(this,a);if(!E||10<=Number(Pb))X(a,"TYPE","xmlhttp"),wi(this.L,a,!0,this.hb,!1);else{X(a,"TYPE","html");var b=this.L,c=!!this.hb;b.Pa=3;b.ta=ui(W(a));Ei(b,c)}}};
function tj(a){if(a.K){var b=a.K.rc();if(0!=b)return Y(a,b),!1}return!0}function lj(a,b,c){a.Mb=c;a.ga=b.ka;a.Xc(1,0);a.kb=hj(a,null,a.zb);vj(a)}
u.tc=function(a,b){if(0!=this.g&&(this.L==a||this.Z==a))if(this.ga=a.Ta,this.Z==a&&3==this.g)if(7<this.Ca){try{var c=this.l.parse(b)}catch(d){c=null}if(Array.isArray(c)&&3==c.length)if(a=c,0==a[0])a:{if(!this.ma){if(this.L)if(this.L.Oa+3E3<this.Z.Oa)uj(this),this.L.cancel(),this.L=null;else break a;zj(this);V(19)}}else this.oc=a[1],0<this.oc-this.ob&&37500>a[2]&&this.Mb&&0==this.La&&!this.Da&&(this.Da=li(z(this.ad,this),6E3));else Y(this,11)}else"y2f%"!=b&&Y(this,11);else if(this.L==a&&uj(this),!ib(b))for(a=
this.l.parse(b),b=0;b<a.length;b++)c=a[b],this.ob=c[0],c=c[1],2==this.g?"c"==c[0]?(this.h=c[1],this.hb=ij(this,c[2]),c=c[3],null!=c?this.Ca=c:this.Ca=6,this.g=3,this.K&&this.K.cc(),this.Yb=hj(this,this.fb()?this.hb:null,this.zb),yj(this)):"stop"==c[0]&&Y(this,7):3==this.g&&("stop"==c[0]?Y(this,7):"noop"!=c[0]&&this.K&&this.K.bc(c),this.La=0)};function ij(a,b){return a.Qb?a.K?a.K.Sb(b):b:null}u.ad=function(){null!=this.Da&&(this.Da=null,this.L.cancel(),this.L=null,zj(this),V(20))};
function uj(a){null!=a.Da&&(y.clearTimeout(a.Da),a.Da=null)}
u.pb=function(a){if(this.L==a){uj(this);this.L=null;var b=2}else if(this.Z==a)this.Z=null,b=1;else return;this.ga=a.Ta;if(0!=this.g)if(a.pa)1==b?(b=mi,b.dispatchEvent(new nj(b,a.Ha?a.Ha.length:0,Date.now()-a.Oa,this.Na)),vj(this),this.j.length=0):yj(this);else{var c=a.qa,d;if(!(d=3==c||7==c||0==c&&0<this.ga)){if(d=1==b)this.Z||this.wa||1==this.g||2<=this.Na?d=!1:(this.wa=li(z(this.vc,this,a),Aj(this,this.Na)),this.Na++,d=!0);d=!(d||2==b&&zj(this))}if(d)switch(c){case 1:Y(this,5);break;case 4:Y(this,
10);break;case 3:Y(this,6);break;case 7:Y(this,12);break;default:Y(this,2)}}};function Aj(a,b){var c=5E3+Math.floor(1E4*Math.random());a.K||(c*=2);return c*b}u.Xc=function(a){if(!(0<=ub(arguments,this.g)))throw Error("Unexpected channel state: "+this.g);};function Y(a,b){if(2==b||9==b){var c=null;a.K&&(c=a.K.kc());var d=z(a.vd,a);c||(c=new Gi(aa),ui(c));ej(c.toString(),1E4,d)}else V(2);Bj(a,b)}u.vd=function(a){a?V(2):(V(1),Bj(this,8))};function Bj(a,b){a.g=0;a.K&&a.K.ac(b);sj(a);qj(a)}
function sj(a){a.g=0;a.ga=-1;if(a.K){if(0!=a.j.length||0!=a.i.length)xb(a.j),xb(a.i),a.j.length=0,a.i.length=0;a.K.$b()}}function hj(a,b,c){var d=Wi(c);if(""!=d.i)b&&Ii(d,b+"."+d.i),Ji(d,d.s);else{var e=window.location;d=Xi(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.Ya&&Ic(a.Ya,function(f,g){X(d,g,f)});X(d,"VER",a.Ca);rj(a,d);return d}u.Eb=function(a){if(a&&!this.sb)throw Error("Can't create secondary domain capable XhrIo object.");a=new T;a.Sa=this.sb;return a};
u.ea=function(a){var b=mi;b.dispatchEvent(new oj(b,a))};u.fb=function(){return this.sb||!(!E||10<=Number(Pb))};function Cj(){}u=Cj.prototype;u.rc=function(){return 0};u.cc=function(){};u.bc=function(){};u.ac=function(){};u.$b=function(){};u.jc=function(){return{}};u.kc=function(){return null};u.Sb=function(a){return a};function Dj(a){P.call(this);this.l=1;this.i=[];this.j=0;this.g=[];this.h={};this.s=!!a}A(Dj,P);function Wh(a,b,c){if(b=a.h[b]){var d=a.g;(b=b.find(function(e){return d[e+1]==c&&void 0==d[e+2]}))&&a.o(b)}}Dj.prototype.o=function(a){var b=this.g[a];b&&(b=this.h[b],0!=this.j?(this.i.push(a),this.g[a+1]=Va):(b&&wb(b,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2]))};
Dj.prototype.v=function(a,b){var c=this.h[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.s)for(e=0;e<c.length;e++){var g=c[e];Ej(this.g[g+1],this.g[g+2],d)}else{this.j++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)g=c[e],this.g[g+1].apply(this.g[g+2],d)}finally{if(this.j--,0<this.i.length&&0==this.j)for(;c=this.i.pop();)this.o(c)}}}};function Ej(a,b,c){wd(function(){a.apply(b,c)})}
Dj.prototype.A=function(){Dj.P.A.call(this);this.g.length=0;this.h={};this.i.length=0};function Xh(a,b,c,d,e,f){var g=this;this.Aa=a;this.Pc=d||null;this.C=Hc;this.la=new U(this);this.B=this.h=this.H=null;this.Oc=Date.now();this.Ic=b||Fj;this.N=null;this.j=new Dj;this.Y=c;this.v=!1;this.F=null;this.ca=-1;this.s=this.X=this.U=!1;this.M=new Zf;if(this.i=e||null)$f(this.M,this.i.i(),function(){return Gj(g)}),$f(this.M,this.i.h(),function(){return Gj(g)});this.D=new ji(z(this.qd,this),!0,this.i||void 0,7E3,45E3);this.V=-1;this.l=null;this.o={};this.Cb=!!f;this.T=-1;this.J=null;this.Rc=
hf(a,"docs-ar");this.sa=hf(a,"docs-dbctc");this.ia=!1;Zh(this,"15",function(k){if(k=k.gaiaSessionIdentifier)(mf?mf:mf=new lf).Gb=k;else throw Error("GAIA session id should be a valid string. Received - "+k);});this.G=this.g=null}x(Xh,Cj);function Zh(a,b,c){a=a.j;var d=a.h[b];d||(d=a.h[b]=[]);var e=a.l;a.g[e]=b;a.g[e+1]=c;a.g[e+2]=void 0;a.l=e+3;d.push(e)}u=Xh.prototype;u.Sb=function(a){return this.Pc||a};function Fj(a){return{type:a[0],Cc:a[1],data:a[2],Fc:a[3]||null}}
u.bc=function(a){a=this.Ic(a);if(a.Cc>this.V){this.V=a.Cc;if(this.N!=a.Fc){var b=a.Fc;this.N=b;Hj(this,Da,b)}Hj(this,String(a.type),a.data)}};function Hj(a,b,c){a.Qc&&a.Qc(b,c);a.j.v(b,c)}
u.jc=function(){var a=H(this.o);a.lsq=String(this.V);null!=this.G&&(a.u=this.G);hf(this.Aa,"docs-ecvca");a.flr=(0).toString();a.gsi=(mf?mf:mf=new lf).Gb;a.ssfi=Math.round((Date.now()-this.Oc)/1E3).toString();this.Rc&&-1!=this.T&&(a.ar=String(this.T),this.J&&(a.arat=this.J.g()),this.T=-1,this.J=null);a.cimpl="0";return a};u.rc=function(){if(this.ra)try{this.ra.g()}catch(a){throw lg(a,{"docs-origin-class":"docs.net.BrowserChannel"});}return 0};u.cc=function(){this.v=!0;this.s=!1;Gj(this,0)};
u.$b=function(){this.v=!1;this.s||421==this.ca||this.D.start()};function Yh(a,b,c,d){a.H=b||a.H;a.h=c||a.h;a.B=d||a.B||"";a.v||a.s||(a.X=!0,Ij(a))}function Ij(a){a.g&&(a.g.K=null,pj(a.g));var b=a.Y?a.Y():a.sa?new mj([],!1):new mj;b.Va={"X-Same-Domain":"1"};b.Qb=!0;b.sb=a.Cb;b.Rb=200;b.K=a;a.g=b;b={id:a.H};a.h&&(b.sid=a.h);if(a.o)for(var c in a.o)b[c]=a.o[c];a.g.connect(a.B+"/test",a.B+"/bind",b)}function Jj(a){a.l=null;a.F=null;a.ca=-1;a.X=!1;a.v&&(a.s=!1,pj(a.g))}
u.qd=function(){this.X&&!this.v&&(this.s=!0,Ij(this),this.D.start())};u.ac=function(a){Gj(this,a)};function Gj(a,b){if(null!=b)if(a.F=b,a.ca=Kj(a),a.U||6!=b)a.U=!1,2==b&&409==Kj(a)&&(a.N=null,Hj(a,Da,null));else{a.U=!0;Yh(a);return}b=a.i&&!a.i.g()?8:null!=a.F?a.F:0;b!=a.l&&(a.l=b,a.C.call(y,0==b))}function Lj(a){return null==a.l||0==a.l}function Kj(a){return a.g?a.g.ga:-1}u.kc=function(){return ui(new Gi(aa))};
u.dispose=function(){this.ia||(this.ia=!0,this.g&&(this.g.K=null,pj(this.g),delete this.g),O(this.la),O(this.M),O(this.D),O(this.j),delete this.la,delete this.D,delete this.i,delete this.j)};u.isDisposed=function(){return this.ia};function Mj(a,b,c,d,e,f,g){c=void 0===c?[]:c;di.call(this);var k=this;this.g=null;this.o=a;this.v=c;this.l=e;this.j=new Zf;this.I(this.j);$f(this.j,this.o.da().i,function(l){1!=l.h.g&&1==l.g.g?k.dispatchEvent(new Qg("r")):l.g.Ea(wf)?k.dispatchEvent(new Qg("p")):3<=l.g.g&&k.dispatchEvent(new Qg("e"))});this.i=function(l){l&&k.dispatchEvent(new Qg("u",l))};d&&(this.g=d,Zh(this.g,"9",this.i));this.h=f;this.s=g;this.B=0;this.C=b}x(Mj,di);
function $h(a,b){var c=b.method,d=b.payload,e=b.td,f=b.zd,g=b.ud,k=b.Cd,l=b.httpMethodHeader;b=b.Ad;var m=d?["p",Xg(d)]:[];d=["reqid",a.B++];m=m?sh(m):void 0;c=Nj(Oj(a.o,"/docos/p/"+c),a.v.concat(d));0<m.length&&(c.g=m);if(a.C){if(!c.M)throw Error("Cannot add session data to request when session data not defined.");c.j=vh(c.j,Pf(c.M))}c.s=k?k:3;e&&Pj(c,function(q){return void e(Qj(q))});f&&Rj(c,f,g);l&&(c.G=l);null!=b&&(c.o=b);null!=a.l&&(c.la=a.l);Sj(c)}
Mj.prototype.A=function(){this.g&&(Wh(this.g.j,"9",this.i),this.g.dispose());di.prototype.A.call(this)};function Tj(a,b,c){Q.call(this,a);this.i=this.Xa=null;this.l=b;this.g=c}x(Tj,Q);var Uj=/\/d\/([^\/]+)/,Vj=/\/r\/([^\/]+)/;function Wj(a){a=a.match(mh)[5]||null;return Uj.test(a)}function Xj(a,b){if(Wj(a)){Wj(a);a=a.match(mh);var c=a[5];c=c.replace(b,"");b=lh(a[1],a[2],a[3],a[4],c,a[6],a[7])}else b=a;return b};function Yj(a,b){null!=a&&this.g.apply(this,arguments)}Yj.prototype.h="";Yj.prototype.set=function(a){this.h=""+a};Yj.prototype.g=function(a,b,c){this.h+=String(a);if(null!=b)for(var d=1;d<arguments.length;d++)this.h+=arguments[d];return this};Yj.prototype.toString=function(){return this.h};function Zj(a,b,c,d){this.Aa=b;this.j=a;this.X=c;this.M=d;this.i="";this.g=void 0;this.G=null;this.H=t;this.la=void 0;this.F={};this.s=3;this.U=!1;this.l=Hc;this.h=!1;this.D=Gc;this.o=!1;this.v=Hc;this.B=-1;this.V=this.C=this.N=!1}function Nj(a,b){var c=[a.j];yb(c,b);a.j=uh.apply(null,c);return a}function Rj(a,b,c){a.l=b;a.h=c||!1}function Pj(a,b){a.v=b}Zj.prototype.setTimeout=function(a){this.B=a;return this};function Sj(a){var b=a.T();a.ca(b)}Zj.prototype.validate=function(){};
function ak(a){return bk(a)+ck(a)}function ck(a){if(a.C){var b=zh(a.j,"id");return a.V?zh(b,"resourcekey"):b}return a.j}
function dk(a){if(Array.isArray(a.g)){var b=a.g;try{if(hf(a.X,"docs-net-cbfd")&&y.FormData){for(var c=new y.FormData,d=0;d<b.length;d+=2)c.append(b[d],b[d+1]);var e=c}else e=sh(b);return e}catch(D){if(D instanceof URIError&&"URI malformed"==D.message){e=[];for(c=1;c<b.length;c+=2){d=""+b[c];for(var f=[],g=0;g<d.length;g=g+1|0){var k=Se(d,g),l=!1,m=d.charCodeAt(g),q=Je(d.charCodeAt(g));55296<=m&&56319>=m?l=!(65536<=k&&1114111>=k):q&&(0<g?(l=Se(d,g-1|0),l=!(65536<=l&&1114111>=l)):l=!0);l&&(k="\\u"+
L((k>>>0).toString(16)),l=Xf(d,g-1|0),m=Xf(d,g+1|0),f.push(new Wf(k,g,d.length,l,m)))}e=e.concat(f)}b="{"+L(e.join("; "))+"}";a=ak(a).substr(0,100);throw lg(D,{illegal_request_content:b,request_uri:a});}throw lg(D,{"docs-origin-class":"docs.net.AbstractRequestBuilder"});}}return a.g}Zj.prototype.ud=function(){return this.h};function ek(a){return typeof a.g===r||Array.isArray(a.g)}function bk(a){return a.C&&a.V?Xj(Xj(a.i,Vj),Uj):a.C?Xj(a.i,Uj):a.i};function fk(a){this.g=this.j=this.h=0;this.i=void 0===a?3E4:a;for(a=gk;a<this.i;)a*=2;this.l=a}function hk(a,b){if(hf(df(),"docs-irbfes"))if(0===a.g||2===b)b=gk;else if(1===b)b=4>a.h?gk:a.g<a.i?2*a.g:a.l;else if(3===b)b=a.g<Math.max(a.i,18E4)?2*a.g:a.g;else throw Error("Invalid RetryType");else{var c=2!=b&&!(4>a.h);b=gk;c&&0!=a.g&&(b=a.g<a.i?2*a.g:a.g)}a.g=b;return Math.max(0,b-(Date.now()-a.j))}var gk=5E3*(.75+.5*Math.random());function ik(a){this.g=a?H(a):{};this.h=null}
function jk(){var a=df(),b=a.get(za);typeof b===r?a=JSON.parse(b):(b={},gf(a,za)?(a=a.get(za),a=null!=a?a:b):a=b);b=a;var c=String;a={};for(var d in b)a[d]=c.call(void 0,b[d],d,b);if(d=y._docs_coldstart_url){c=d.indexOf("#");if(d=nh(0>c?null:d.substr(c+1))){d=d.split("&");c={};for(var e=0;e<d.length;++e){var f=d[e].split("=");2==f.length&&0<f[0].length&&0<f[1].length&&(c[ad(f[0])]=ad(f[1]))}d=c}else d={};d=d.resourcekey}else d=null;d?a.resourcekey=d:b.resourcekey&&(b=F(new vc(b.resourcekey),2),null!=
b&&(a.resourcekey=b));return new ik(a)};function kk(a,b,c){R.call(this);this.h={"X-Same-Domain":"1"};!1===c&&(this.h={});this.i="";this.g=b||jk();a=(a||y).location.href;b=a.search(xh);c=wh(a,0,"authkey",b);if(0>c)a=null;else{var d=a.indexOf("&",c);if(0>d||d>b)d=b;c+=8;a=ad(a.substr(c,d-c))}a&&lk(this,"authkey",a)}x(kk,R);function lk(a,b,c){var d=a.g;if(c){if(d.g[b]=c,d.h&&(b=d.g.token||null))d.h.callback(b),d.h=null}else delete d.g[b];a.dispatchEvent("h")}function mk(a,b){a.g.g.at&&lk(a,"at",b);lk(a,"token",b)};function nk(a,b){Q.call(this,"i",a);this.g=b}x(nk,Q);function ok(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc){R.call(this);this.h=a;this.V=b;this.v=c;this.j=d;this.B=ob||(c?ja:"GET");this.F=q;this.s=e;this.G=f;this.C=g;this.T=k;this.M=l;this.J=m;this.U=pa;this.D=H(ec);this.o=new fk(fc)}x(ok,R);ok.prototype.send=function(a){var b=this.o,c=Date.now();b.h++;b.j=c;this.Tb(a)};function pk(a,b){a.reset();a.dispatchEvent(new nk(a,b))}function qk(a){return{ReqUri:a.h,ReqContent:a.v,ReqMethod:a.B}}ok.prototype.reset=function(){};
ok.prototype.A=function(){this.dispatchEvent("j");this.reset();delete this.C;delete this.G;delete this.s;R.prototype.A.call(this)};function rk(a){if(a.j==t&&null!=a.i&&0==(a.i||"").lastIndexOf(")]}'\n",0)){try{var b=Qj(a)}catch(c){return null}if(Array.isArray(b)&&(a=b[0],Array.isArray(a)&&a[0]==wc.g))return new wc(a)}return null}function sk(a){a=rk(a);if(!a)return null;a=F(a,4);return Array.isArray(a)&&a[0]==xc.g?new xc(a):null};function tk(a,b,c,d,e,f,g){this.i=a;this.j=b||t;this.l=ib(jd(c))?null:c;this.h=void 0!==d?d:200;this.o={};if(f)for(var k in f)this.o[k.toLowerCase()]=f[k];this.g=void 0!==e?e:0;this.v=g||{};this.s=void 0}
function Qj(a){if(void 0===a.s){var b=a.i||"";Mf();b=b.replace(Lf,"");if(b)if(b===Ba)var c=null;else{for(var d=b.length,e=0;e<d&&32>=b.charCodeAt(e);)e=e+1|0;for(var f=d;f>e&&32>=b.charCodeAt(f-1|0);)f=f-1|0;b=0<e||f<d?b.substr(e,f-e|0):b;try{c=JSON.parse(b)}catch(g){g=le(g);if(g instanceof se)throw a=g,c=new Ie,b="Error parsing JSON: "+L(a.j),ie(c),c.l=a,c.j=b,je(c),c.h(Error(c)),c.g;throw g.g;}if(!(c instanceof Object))throw a=new we,ie(a),je(a),a.h(Error(a)),a.g;}else c=null;a.s=c}return a.s}
function uk(a){var b=a.h,c=a.g,d=a.j,e=a.l;if(a.j==t){var f=a.i||"";f=-1!=f.indexOf("&")?ya in y?cd(f):ed(f):f;50<f.length&&(f=f.substring(0,47)+"...");f=bd(f);f+="   (truncated)"}else f="responseObject";b={RespStatus:b,RespErr:c,RespType:d,RespContentType:e,RespString:f};Lc(b,a.v);return b}
function vk(a){if("NOW"==a.o["x-restart"])return new Tj("g",a.g,a.h,function(){return Qj(a)});if(7==a.g)return null;var b=wk(a)?"d":xk(a)?"e":0==a.g?"c":"b";return new Tj(b,a.g,a.h,function(){return Qj(a)},6==a.g&&500==a.h?rk(a):null)}function wk(a){var b=a.g,c=a.h;return 0==a.g?0!=b||0!=c||a.j==t&&null!=a.i?!1:!0:8==b||5==b||6==b&&(0>=c||503==c||405==c)?!0:!1}
function xk(a){var b=a.h;return 6==a.g&&(202==b||401==b||403==b||409==b||429==b||433==b||500<=b&&599>=b&&503!=b&&512!=b&&550!=b)||400==b&&null!=sk(a)?!0:200==b?null==a.l||rk(a)?!0:yk(a):!1}function yk(a){if(200==a.h&&null!=a.l&&!rk(a)&&a.j==t){if(ib(jd(a.i)))return!0;if(0==(a.i||"").lastIndexOf(")]}'\n",0))try{return null==Qj(a)}catch(b){}}return!1};function zk(a,b,c){void 0===c&&(c=a.size);return a.slice?a.slice(b,c):null};var Ak=new WeakMap;function Bk(a){function b(f){var g=w(f);f=g.next().value;g=Ja(g);return a.apply(f,g)}function c(f){f=w(f);f.next();f=Ja(f);return d(e,f)}var d=void 0===d?Ck:d;var e=Ya(a);return function(){var f=Ra.apply(0,arguments),g=this||y,k=Ak.get(g);k||(k={},Ak.set(g,k));return Ab(k,[this].concat(f instanceof Array?f:Ja(w(f))),b,c)}}function Ck(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\v")};function Dk(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");0>e||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b}function Ek(a){var b="";Ic(a,function(c,d){b+=d+": "+c+"\r\n"});return b}
var Fk=Bk(function(){if(!y.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0}),Gk=Bk(function(){if(!y.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return null===zk(b,0,1)?!1:!0});function Hk(){R.call(this)}A(Hk,R);function Ik(a){Q.call(this,a)}A(Ik,Q);u=Hk.prototype;u.Ub=function(){return null};u.Vb=function(){return null};u.O=function(){return null};u.start=function(){};u.cancel=function(){};function Jk(){R.call(this)}A(Jk,Hk);Jk.prototype.Dc=function(){};function Kk(a,b){this.i=a;this.h=b;this.v=!0}Kk.prototype.j=function(){return null};Kk.prototype.g=function(){return!1};Kk.prototype.s=function(){return!1};Kk.prototype.o=function(){return!1};function Lk(a){R.call(this);this.h=a}A(Lk,R);function Mk(a){Q.call(this,a)}A(Mk,Q);function Nk(a,b){Q.call(this,a);this.nc=!!b}A(Nk,Mk);u=Lk.prototype;u.Ab=function(){return null};u.O=function(){return null};u.Bb=function(){return null};u.start=function(){};u.cancel=function(){};function Ok(a,b,c){R.call(this);Pk++;this.i="select";this.g=c;this.I(this.g);this.s="";this.o=ja;this.j={};this.l="";this.v=!1;this.h=new U(this);this.I(this.h)}x(Ok,R);Ok.prototype.getState=function(){return this.i};Ok.prototype.O=function(){return this.g.O()};
Ok.prototype.start=function(){var a=this;"select"==this.getState()||this.getState();this.h.listen(this.g,"o",function(){a.dispatchEvent(new Qk("t",a))});this.h.listen(this.g,"p",function(){a.i=wa;a.dispatchEvent(new Qk("u",a))});this.h.listen(this.g,"q",function(b){a.i="error";a.dispatchEvent(new Rk("v",a,b.nc))});this.g.start(this.s,this.o,this.j,this.l,this.v);this.i="start";this.dispatchEvent(new Qk("s",this))};
Ok.prototype.cancel=function(){this.getState();this.g.cancel();this.i="cancel";Th(this.h);this.dispatchEvent(new Qk("w",this))};function Qk(a,b){Q.call(this,a);this.item=b}x(Qk,Q);function Rk(a,b,c){Qk.call(this,a,b);this.nc=!!c}x(Rk,Qk);var Pk=0;function Sk(){if(Xa(void 0)){var a=(void 0).getFullYear(),b=new Date(a,(void 0).getMonth(),(void 0).getDate());0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);this.g=b;Tk(this,(void 0).getDate())}else this.g=new Date(Date.now()),a=this.g.getDate(),this.g.setHours(0),this.g.setMinutes(0),this.g.setSeconds(0),this.g.setMilliseconds(0),Tk(this,a)}u=Sk.prototype;u.getFullYear=function(){return this.g.getFullYear()};u.getMonth=function(){return this.g.getMonth()};u.getDate=function(){return this.g.getDate()};
u.set=function(a){this.g=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
u.add=function(a){if(a.i||a.h){var b=this.getMonth()+a.h+12*a.i,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);a:{switch(b){case 1:var d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.g.setDate(1);this.g.setFullYear(c);this.g.setMonth(b);this.g.setDate(d)}a.g&&(c=this.getFullYear(),b=0<=c&&99>=c?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+864E5*a.g),this.g.setDate(1),this.g.setFullYear(a.getFullYear()+
b),this.g.setMonth(a.getMonth()),this.g.setDate(a.getDate()),Tk(this,a.getDate()))};function Uk(a){var b=a.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+id(Math.abs(b),c?6:4),id(a.getMonth()+1,2),id(a.getDate(),2)].join("")}u.Ea=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};u.toString=function(){return Uk(this)};function Tk(a,b){a.getDate()!=b&&a.g.setUTCHours(a.g.getUTCHours()+(a.getDate()<b?1:-1))}u.valueOf=function(){return this.g.valueOf()};function Vk(a,b,c,d,e,f,g,k){R.call(this);this.H=a;this.l=b;this.F=c;this.B=d;this.s=e||null;this.j=f||null;this.D=g?H(g):{};this.G=!!k;this.v="";a=new Sk;this.h="scotty-"+kd()+"-"+Uk(a);this.g=null;this.i=0;this.o=null;this.C=new U(this);this.I(this.C)}x(Vk,Jk);u=Vk.prototype;u.Dc=function(a){this.v=a};u.Ub=function(){return this.g&&this.g.status||null};u.Vb=function(){return this.o};u.O=function(){return this.g&&this.g.responseText||null};
u.start=function(){var a=this;this.g=new XMLHttpRequest;this.g.upload&&(this.g.upload.onprogress=function(b){a.i=b.loaded;a.dispatchEvent(new Ik("k"))});this.g.onload=function(b){a.i=a.F;a.o=Dk(b.target.getAllResponseHeaders());a.dispatchEvent(new Ik("l"))};this.g.onerror=function(){a.dispatchEvent(new Ik("m"))};this.g.open(ja,this.H);Ic(this.D,function(b,c){a.g.setRequestHeader(c,b)});this.g.setRequestHeader(ca,"multipart/form-data; boundary="+this.h);this.g.withCredentials=this.G;this.g.send(Wk(this))};
u.cancel=function(){this.g&&this.g.abort()};function Wk(a){var b=["--",a.h,"\r\n",'Content-Disposition: form-data; name="metadata"\r\n\r\n'+a.v+"\r\n","--",a.h,"\r\n",'Content-Disposition: form-data; name="Filedata"'+(a.s?'; filename="'+a.s+'"':"")+"\r\n"+(a.j?"Content-Type: "+a.j+"\r\n":"")+"Content-Transfer-Encoding: "+a.B+"\r\n","\r\n",a.l,"\r\n","--",a.h,"--\r\n"];return typeof a.l===r?b.join(""):new Blob(b)};function Xk(a,b,c,d){var e=null;Fk()&&(e=d?new Blob([a],{type:d}):new Blob([a]));if(e)var f=e.size;else{f=[];for(var g=0,k=0;k<a.length;k++){var l=a.charCodeAt(k);128>l?f[g++]=l:(2048>l?f[g++]=l>>6|192:(55296==(l&64512)&&k+1<a.length&&56320==(a.charCodeAt(k+1)&64512)?(l=65536+((l&1023)<<10)+(a.charCodeAt(++k)&1023),f[g++]=l>>18|240,f[g++]=l>>12&63|128):f[g++]=l>>12|224,f[g++]=l>>6&63|128),f[g++]=l&63|128)}f=f.length}Kk.call(this,c,f);this.F=f;this.B=e;this.D=a;this.l=b;this.C=d||void 0}A(Xk,Kk);
Xk.prototype.j=function(){return this.B};Xk.prototype.g=function(){return this.l!=ua&&Gk()};Xk.prototype.s=function(){return this.l!=ua&&Fk()};Xk.prototype.o=function(){return!0};function Yk(a){Lk.call(this,a);this.g=null;this.i=new U(this);this.I(this.i)}x(Yk,Lk);u=Yk.prototype;u.Ab=function(){return this.g&&this.g.Ub()||null};u.O=function(){return this.g&&this.g.O()||null};u.Bb=function(){return this.g&&this.g.Vb()||null};
u.start=function(a,b,c,d,e){a=new Gi(a);X(a,"upload_protocol","multipart");a=a.toString();b=this.h;this.g=new Vk(a,b.B||b.D,b.F,b.l==ua?ua:"binary",b.i,b.C,c,e);this.g.Dc(d);this.i.listen(this.g,"k",this.Kc);this.i.listen(this.g,"l",this.gd);this.i.listen(this.g,["m","n"],this.fd);this.g.start()};u.cancel=function(){this.g&&this.g.cancel();this.dispatchEvent(new Mk("r"))};u.Kc=function(){this.dispatchEvent(new Mk("o"))};u.gd=function(){this.dispatchEvent(new Mk("p"))};u.fd=function(){this.dispatchEvent(new Mk("q"))};function Zk(){};function $k(){T.call(this)}x($k,T);$k.prototype.Db=function(){var a=T.prototype.Db.call(this);a.upload&&(a.upload.onprogress=z(this.M,this));return a};$k.prototype.M=function(a){this.dispatchEvent(a)};function al(a,b){R.call(this);this.l=a;this.Hb=this.h=null;this.i=0;this.o=Infinity;this.s=b||5E6;this.g=null}A(al,R);al.prototype.hash=function(a){this.abort();this.l.reset();this.h=a;this.Hb=null;this.i=0;this.dispatchEvent("started");bl(this)};function cl(a,b){a.o=b;a.h&&!a.g&&bl(a)}al.prototype.abort=function(){this.g&&(this.g.abort(),this.g=null);this.h&&(this.h=null,this.dispatchEvent("abort"))};
function bl(a){if(a.i<a.h.size)if(a.o<=a.i)a.dispatchEvent("throttled");else{a.g=new FileReader;a.g.onload=z(a.v,a);a.g.onerror=z(a.j,a);var b=Math.min(Math.min(a.o,a.h.size)-a.i,a.s),c=zk(a.h,a.i,a.i+b);c&&c.size==b?a.g.readAsArrayBuffer?a.g.readAsArrayBuffer(c):a.g.readAsBinaryString?a.g.readAsBinaryString(c):a.j():a.j()}else{b=a.l;var d=Array((56>b.h?b.blockSize:2*b.blockSize)-b.h);d[0]=128;for(c=1;c<d.length-8;++c)d[c]=0;var e=8*b.i;for(c=d.length-8;c<d.length;++c)d[c]=e&255,e/=256;b.update(d);
d=Array(16);for(c=e=0;4>c;++c)for(var f=0;32>f;f+=8)d[e++]=b.g[c]>>>f&255;a.Hb=d;a.h=null;a.dispatchEvent(wa)}}al.prototype.v=function(){var a=null;this.g.result instanceof Array||typeof this.g.result===r?a=this.g.result:y.ArrayBuffer&&y.Uint8Array&&this.g.result instanceof ArrayBuffer&&(a=new Uint8Array(this.g.result));a?(this.l.update(a),this.i+=a.length,this.g=null,this.dispatchEvent("progress"),bl(this)):this.j()};al.prototype.j=function(){this.h=this.g=null;this.dispatchEvent("error")};function dl(){this.blockSize=-1};function el(){this.blockSize=-1;this.blockSize=64;this.g=Array(4);this.j=Array(this.blockSize);this.i=this.h=0;this.reset()}A(el,dl);el.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.i=this.h=0};
function fl(a,b,c){c||(c=0);var d=Array(16);if(typeof b===r)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.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^
e&(f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);
g=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295|
g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295|
g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295}
el.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.j,e=this.h,f=0;f<b;){if(0==e)for(;f<=c;)fl(this,a,f),f+=this.blockSize;if(typeof a===r)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){fl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){fl(this,d);e=0;break}}this.h=e;this.i+=b};function gl(a,b){a.g()||a.s();Lk.call(this,a);this.Aa=this.v=this.ra=this.sa=null;this.J=!1;this.U=this.G=null;this.C=a.h;this.s=0;this.T=null;this.X=this.ca=0;this.o="Ready";this.D=this.l=this.B=this.M=this.Y=this.la=null;this.j=new U(this);this.I(this.j);this.N=new U(this);this.I(this.N);this.i=0;this.g=this.V=this.F=null;this.H=b||Number.MAX_VALUE}A(gl,Lk);u=gl.prototype;u.Ab=function(){return this.la};u.O=function(){return this.Y};u.Bb=function(){return this.M};
u.start=function(a,b,c,d,e){this.sa=a;this.ra=b;this.v=H(c);this.Aa=d;this.J=!!e;this.o=ea;this.v["X-Goog-Upload-Protocol"]="resumable";this.v["X-Goog-Upload-Command"]="start";null!=this.h.h&&(this.v["X-Goog-Upload-Content-Length"]=this.h.h);null!=this.h.i&&/^[\040-\176]*$/.test(this.h.i)&&(this.v["X-Goog-Upload-File-Name"]=this.h.i);this.h.v&&hl(this);this.Ac()};
u.cancel=function(){Th(this.j);Th(this.N);this.o==ea&&this.B&&this.B.abort();"Transferring"==this.o&&(this.l&&this.l.abort(),this.D&&this.D.abort(),this.F&&y.clearTimeout(this.F));this.g&&this.g.abort();(new T).send(this.U,"PUT","",{"X-Goog-Upload-Command":"cancel"});this.o="Cancelled";this.i=this.s=0;this.dispatchEvent(new Mk("r"))};function hl(a){var b=a.h.j();b&&(a.g=new al(new el),a.N.listen(a.g,wa,function(c){this.V=hb(c.target.Hb);this.g=null}),cl(a.g,1048576),a.g.hash(b))}
u.Ac=function(){this.B=new $k;Th(this.j);this.j.listen(this.B,wa,this.dd);this.B.Sa=this.J;this.B.send(this.sa,this.ra,this.Aa,this.v)};
u.dd=function(a){var b=a.target.da(),c=a.target.O();a=Dk(a.target.getAllResponseHeaders());var d=il(a,ra),e=il(a,"X-Goog-Upload-URL");if("final"==d)this.la=b,this.M=a,this.Y=c,this.o="Complete",this.dispatchEvent(new Mk("p"));else if(200==b&&"active"==d&&e){this.G=e;this.U=il(a,"X-Goog-Upload-Control-URL")||null;e=il(a,"X-Goog-Upload-Chunk-Granularity")||null;d=1;if(e&&(d=parseInt(e,10),isNaN(d)||0>=d)){jl(this,da,"Invalid chunk granularity: "+e+". "+kl(b,a,c));return}b=this.h.h;this.C=Math.floor(b/
d)*d;this.T=Math.floor(1073741824/d)*d;this.h.g()||(this.T=b,this.C!=b&&(this.C=0));this.o="Transferring";this.i=0;this.Bc(0)}else 400<=b&&500>b?jl(this,da,ba+kl(b,a,c)):(ll(this,this.Ac),this.i++)};
u.Bc=function(a){var b=this.h,c=b.h;b.g()||a==c||(a=0);var d=a>=this.C,e=d?c:Math.min(this.C,this.T+a);this.ca=a;this.X=e;var f={"X-Goog-Upload-Command":"upload"+(d?", finalize":""),"X-Goog-Upload-Offset":a};d&&(this.V?f["X-Goog-Upload-Entity-MD5"]=this.V:this.g&&(this.g.abort(),this.g=null));this.l=new $k;this.l.Sa=this.J;Th(this.j);this.j.listen(this.l,"progress",this.Lc);this.j.listen(this.l,wa,this.ed);a==c?this.l.send(this.G,"PUT","",f):(c=this.h.j(),b.g()?this.l.send(this.G,"PUT",zk(c,a,e),
f):this.l.send(this.G,"PUT",c,f))};u.Lc=function(a){this.s=this.ca+a.loaded;this.dispatchEvent(new Mk("o"));this.g&&cl(this.g,this.s+1048576)};u.ed=function(a){var b=a.target.da();if(void 0===b||-1==b)ll(this,this.yc),this.i++;else{var c=Dk(a.target.getAllResponseHeaders());a=a.target.O();this.s=this.X;ml(this,b,c,a,!0)}};u.yc=function(){this.D=new $k;Th(this.j);this.j.listen(this.D,wa,this.cd);this.D.send(this.U,"PUT","",{"X-Goog-Upload-Command":"query"})};
u.cd=function(a){a=a.target;var b=a.da(),c=Dk(a.getAllResponseHeaders());ml(this,b,c,a.O(),!1)};function ml(a,b,c,d,e){var f=il(c,ra);if("final"==f)a.o="Complete",a.i=0,a.la=b,a.M=c,a.Y=d,a.dispatchEvent(new Mk("p"));else{var g=parseInt(il(c,"X-Goog-Upload-Size-Received"),10);e&&isNaN(g)&&(g=a.X);200!=b||"active"!=f||isNaN(g)?(400<=b&&500>b&&jl(a,"Transfer failed",ba+kl(b,c,d)),ll(a,a.yc),a.i++):(a.s=g,g>a.ca&&(a.i=0),ll(a,z(a.Bc,a,g)))}}
function jl(a,b){a.o="Error";a.s=0;a.dispatchEvent(new Nk("q",b==oa))}function ll(a,b){var c=[0,5E3,1E4,15E3,3E4,6E4],d=0;d=a.i<c.length?c[a.i]:c[c.length-1];if(d>a.H)jl(a,oa);else{void 0!==a.H&&(d=Math.min(Math.max(d,0),a.H));var e=z(b,a);0<d?a.F=kh(function(){this.F=null;e()},d,a):e()}}function kl(a,b,c){return"Response code: "+a+"\nHeaders:\n"+Ek(b)+"\nBody:\n"+c}function il(a,b){return a[b]||a[b.toLowerCase()]};function nl(a){this.g=a}x(nl,Zk);function ol(a,b){if(b.g()&&b.o())return 2097152<b.h?new gl(b,a.g):new Yk(b);if(b.g())return new gl(b,a.g);if(b.o())return new Yk(b);if(b.s())return new gl(b,a.g);throw Error("Item supports no transfer types.");};function pl(){R.call(this)}x(pl,R);function ql(){Q.call(this,"x")}x(ql,Q);function rl(a){R.call(this);this.g=a}x(rl,pl);function sl(){this.g=new nl(void 0)};function tl(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc){if(0>=q)throw Error("Please specify a progress timeout for the Scotty request. Received -"+q);ok.call(this,a,"",b,c,null,d,e,f,g,k,l,m,q,ja,ec,fc);this.H=D;this.X=pa;this.N=ob;this.g=null;this.i=new U(this);this.l=new ei(z(this.bd,this),q)}x(tl,ok);u=tl.prototype;
u.Tb=function(a){var b=this.X,c=this.v,d=c.length;c=new Xk(c,"raw","",void 0);c.v=!0;c=ol(b.g.g,c);d=new Ok("",d,c);b.dispatchEvent(new ql([d],null));this.g=d;b=(mf?mf:mf=new lf).Gb;b=ib(jd(b))?this.H:vh(this.H,{authuser:b});this.g.s=b;this.g.o=this.B;b={};Lc(b,this.D,H(a.h));this.g.j=H(b);b={};d=nh(this.h.match(mh)[5]||null,!0);b.httpaction=d;if(d=this.h.match(mh)[6]||null){d=new Ni(d);Zi(d);var e=Array.from(d.g.values()),f=Array.from(d.g.keys());c=[];for(var g=0;g<f.length;g++)for(var k=e[g],l=
0;l<k.length;l++)c.push(f[g]);for(e=0;e<c.length;e++)f=c[e],b[f]=d.get(f)}Lc(b,a.g.g);a=this.N.stringify(b);this.g.l=a;this.g.v=!0;this.i.xa(this.g,"u",this.ld);this.i.xa(this.g,"v",this.md);this.i.listen(this.g,"t",this.nd);this.g.start();this.l.start()};u.ld=function(){if(this.g){var a=this.g.g.Ab(),b=this.g.g.Bb()||{},c={},d;for(d in b)c[d.toLowerCase()]=b[d];a=new tk(this.g.O(),t,c["content-type"]||null,a,ch(a)?0:6,c,qk(this));pk(this,a)}};
u.md=function(){if(this.g){var a=new tk("",t,null,0,5,{},qk(this));pk(this,a)}};u.nd=function(){ul(this)&&this.l.start()};u.bd=function(){if(ul(this)){var a=new tk("",t,null,0,8,{},qk(this));pk(this,a)}};function ul(a){return null!=a.g&&"start"==a.g.getState()}u.reset=function(){fi(this.l);this.g&&(ul(this)&&this.g.cancel(),O(this.g),this.g=null);Th(this.i)};u.A=function(){dg(this.l,this.i);ok.prototype.A.call(this)};function vl(a,b,c,d,e,f){Zj.call(this,b,c,d,e);this.Y=a;this.ra=f||kf(d,"docs-net-udur");this.sa=new rl(new sl);this.J=new ki;this.Cb=jf(d,"docs-net-udpt")}x(vl,Zj);
vl.prototype.T=function(){if(!this.N)throw Error("Scotty request cannot be built when upload is not allowed for a request.");var a=this.B;0>=a&&(a=this.Cb);if(!ek(this))throw Error("GetUploadContent() called when upload content is not available");if(typeof this.g===r)var b=this.g;else{b=this.J;for(var c=this.g,d=new Yj("{"),e=0;e<c.length;e+=2)0<e&&d.g(","),d.g(b.stringify(c[e])).g(":").g(b.stringify(c[e+1]));d.g("}");b=d.toString()}var f;typeof b===r&&(f=b);return new tl(ck(this),f,this.s,this.v,
this.l,this.h,this.D,this.o,this.H,this.U,a,this.ra,this.sa,this.J,this.F)};vl.prototype.ca=function(a){if(!this.Y)throw Error(qa+ak(this));this.Y.send(a)};function wl(a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,fc,gm){ok.call(this,a,b,c,d,e,f,g,k,l,m,q,D,pa,ob,ec,gm);this.N=fc;this.g=null;this.i=new U(this);this.l=0;this.H=!!e}x(wl,ok);
wl.prototype.Tb=function(a){var b=this;this.g=this.N();this.i.xa(this.g,wa,function(){var e=b.g;var f="";var g=null;try{if(""==e.l?f=e.O():f=Lh(e),e.g&&4==Jh(e)){var k=e.g.getResponseHeader(ca);g=null===k?void 0:k}else g=void 0}catch(ob){}k=xl(e.l);var l=e.da(),m=e.j,q={};e=e.getAllResponseHeaders().split("\r\n");for(var D=0;D<e.length;D++)if(!ib(jd(e[D]))){var pa=e[D].split(": ");2==pa.length&&(q[pa[0]]=pa[1])}f=new tk(f,k,g,l,m,q,qk(b));pk(b,f)});this.H&&this.i.listen(this.g,Ca,function(){if(3==
Jh(b.g)&&Kh(b.g)&&200==b.g.da()){var e=b.g.O();if(e.length>b.l){var f=e.substring(b.l);b.l=e.length;b.s&&b.s(f)}}});this.g.v=Math.max(0,this.U);this.F!=t&&(this.g.l=yl(this.F));var c=vh(this.V+this.h,a.g.g),d={};Lc(d,this.D,H(a.h));this.g.send(c,this.B,this.v,d)};wl.prototype.reset=function(){this.g&&(this.g.dispose(),this.g=null)};wl.prototype.A=function(){O(this.i);ok.prototype.A.call(this)};
function xl(a){switch(a){case ta:return ta;case "blob":return"blob";case ya:return ya;case t:return t;case "":return t;default:throw Error("Unsupported Xhr Response Type - "+a);}}function yl(a){switch(a){case ta:return ta;case "blob":return"blob";case ya:return ya;default:return""}};function zl(a,b,c,d,e,f){Zj.call(this,b,c,d,e);this.J=a;this.Y=!!f}x(zl,Zj);zl.prototype.T=function(){var a=this.B;0>a&&(a=this.Y?4E4:2E4);return new wl(ck(this),bk(this),dk(this),this.s,null,this.v,this.l,this.h,this.D,this.o,this.H,this.U,a,this.G,this.F,function(){return new T},this.la)};zl.prototype.ca=function(a){if(!this.J)throw Error(qa+ak(this));this.J.send(a)};function Al(a,b,c,d,e,f){Zj.call(this,b,c,d,e);this.J=a;this.sa=hf(d,"docs-net-usud");this.ra=jf(d,"docs-net-udmi");this.Y=f}x(Al,Zj);
Al.prototype.T=function(){var a=null,b;if(b=this.sa&&this.N){if(!ek(this))throw Error("GetUploadContentLength() called when upload content is not available");if(Array.isArray(this.g)){b=0;for(var c=this.g,d=0;d<c.length;d++){var e=c[d];typeof e===r&&(b+=e.length)}}else b=this.g.length;b=b>this.ra}b&&(a=new vl(this.J,ck(this),this.Aa,this.X,this.M,this.Y));null==a&&(a=new zl(this.J,ck(this),this.Aa,this.X,this.M));b=a;b.i=this.i;b.C=this.C;b.V=this.V;b.g=this.g;b.G=this.G;b.H=this.H;b.s=this.s;b.U=
this.U;b.l=this.l;b.h=this.h;b.D=this.D;b.o=this.o;b.v=this.v;b.B=this.B;b.N=this.N;b.F=H(this.F);return a.T()};Al.prototype.ca=function(a){if(!this.J)throw Error(qa+ak(this));this.J.send(a)};function Bl(){};function Cl(a,b){this.g=a;this.h=b}Cl.prototype.i=function(a){this.g&&(this.g.call(this.h||null,a),this.g=this.h=null)};Cl.prototype.abort=function(){this.h=this.g=null};Fc(function(a){Cl.prototype.i=a(Cl.prototype.i)});function Dl(a,b,c){Q.call(this,"A",a);this.i=b;this.g=c}x(Dl,Q);function El(a){R.call(this);var b=this;this.h=a;this.j=function(c){lk(b.h,"tfe",c)};this.g=null;this.i=new U(this);this.i.listen(this.h,"h",this.l)}x(El,R);El.prototype.l=function(){this.g&&(this.g.o=H(this.h.g.g))};El.prototype.o=function(a){this.dispatchEvent(new Dl(this,a,Kj(this.g)))};El.prototype.A=function(){this.g&&!this.g.isDisposed()&&(Wh(this.g.j,Da,this.j),Jj(this.g),this.g.C=Hc);this.g=null;O(this.i);R.prototype.A.call(this)};function Fl(a,b){P.call(this);this.h=[];this.l=a;(this.i=b||null)&&this.I(this.i);this.g=this.j=null;this.i&&(this.g=new jh(500),this.j=new U(this),this.j.listen(this.g,"tick",this.o))}x(Fl,P);Fl.prototype.reset=function(){this.h=[];this.g&&S(this.g)};Fl.prototype.o=function(){for(;0<this.h.length&&this.i.h();)this.i.g(),this.l(this.h.shift());0==this.h.length&&this.g&&S(this.g)};Fl.prototype.A=function(){O(this.j);O(this.g);P.prototype.A.call(this)};function Gl(){P.call(this);this.g={}}x(Gl,P);Gl.prototype.Ma=function(a,b,c){var d=this;if(typeof a===h)c&&(a=z(a,c));else if(a&&typeof a.handleEvent==h)a=z(a.handleEvent,a);else throw Error(ha);var e=new Hl;b=kh(function(){var f=a,g=e.g;null!==g&&delete d.g[g];f()},b);this.g[b]=!0;return e.g=b};Gl.prototype.A=function(){for(var a in this.g){var b=Number(a);null!==b&&delete this.g[b];y.clearTimeout(b)}P.prototype.A.call(this)};function Hl(){this.g=null};function Il(a,b,c,d,e,f,g,k,l){R.call(this);var m=this;this.h=new kk(b,e,g);this.I(this.h);this.i=l||new El(this.h);this.I(this.i);this.l=new U(this);this.I(this.l);this.o=c||null;c&&this.l.listen(c,"y",this.Zc);this.g=d||new Qf;this.F=k||null;this.C=new Gl;this.I(this.C);this.j=[];this.B=[];this.v=new Fl(function(q){5<=m.g.getState().g||(m.g.getState()==(N(),zf)&&Sf(m.g,(N(),Af)),m.l.xa(q,"i",m.lc),q.send(m.h))},f);this.I(this.v);this.s=(N(),Hf);this.D=new Zf;this.I(this.D);this.l.listen(this.i,
"A",this.Yc)}x(Il,R);function Oj(a,b){var c=df();b=new Al(a,b,a,c,a.F,void 0);b.i=a.h.i;return b}u=Il.prototype;u.send=function(a){if(!a.isDisposed()){var b=this.j;0<=ub(b,a)||b.push(a);a:{b=this.v;if(b.i){if(!b.i.h()||0!=b.h.length){b.h.push(a);b.g.start();break a}b.i.g()}b.l(a)}this.l.xa(a,"j",this.$c)}};
u.lc=function(a){var b=a.target,c=a.g;"SOON"==c.o["x-restart"]&&this.g.o.dispatchEvent(null);this.o&&yk(c)&&1!=b.j&&(b.h.startsWith("/logImpressions")||b.h.startsWith("/naLogImpressions")||this.o.log(Error("blank JSON response"),uk(c)));if(a=vk(c)){var d=!0,e=!1;if("c"==a.type){try{b.G(c),Jl(this,b)}catch(g){a=new Tj("f",a.l,a.g,function(){return Qj(c)}),a.Xa=g,a.i="c",Jl(this,b,this.s)}b.dispose()}else if("d"==a.type||"e"==a.type)switch(Kl(this,a,b,c)){case 4:e=!0;a.i=a.type;a.type="b";break;case 1:a.i=
a.type;a.type="b";break;case 3:d=!1}else"g"==a.type&&(this.o&&this.o.info(Error("Incompatible server")),Jl(this,b,(N(),Gf)),d=!1);if("b"==a.type){try{if(b.C(a),0==!b.T&&(d=!1),b.J)Jl(this,b);else{var f=b.M(a)||(e?(N(),Hf):Ll(this,a.g));Jl(this,b,f)}}catch(g){a=new Tj("f",a.l,a.g,function(){return Qj(c)}),a.Xa=g,a.i="b",Jl(this,b,this.s)}b.dispose()}d&&this.dispatchEvent(a)}};
u.$c=function(a){a=a.target;if(0<=ub(this.v.h,a)){var b=this.v;wb(b.h,a);0==b.h.length&&b.g&&S(b.g)}else 0<=ub(this.j,a)&&(this.l.tb(a,"i",this.lc),Jl(this,a));wb(this.j,a);wb(this.B,a)};
function Jl(a,b,c){var d=a.g.getState(),e=d,f=c||(N(),Cf);c=!c;wb(a.j,b);wb(a.B,b);N();if(!(5<=d.g))if(5<=f.g)Sf(a.g,f,b.h);else{var g=null!=a.i.g||vb(a.j,function(k){return 3==k.j});if(d==Af)c||!g?0==a.j.length&&(e=zf):(Ml(a),e=f);else if(c)if(0<a.j.length)e=Bf,Nl(a);else{if(null==a.i.g||Lj(a.i.g))e=zf}else e=f;Sf(a.g,e,b.h)}}
function Kl(a,b,c,d){var e=!1;if(200==b.g){var f=rk(d);f&&"XSRF"==F(f,1)&&(mk(a.h,F(f,4)),e=!0)}400==b.g&&(d=sk(d))&&F(d,1)&&(mk(a.h,F(d,1)),e=!0);409==b.g&&lk(a.h,"tfe",null);d=5<=a.g.getState().g;f="e"==b.type;if(!d&&e&&1>=c.o.h)return Ol(a,c,2),3;var g=0===b.g?1:3;if(!d&&1!=c.j&&4>c.o.h)return Ol(a,c,g),3;if(3==c.j){if(d)return 2;null==a.i.g||f?Ol(a,c,g):a.B.push(c)}else return e?4:1;Ml(a);Sf(a.g,Ll(a,b.g),c.h);return 2}function Ml(a){null!=a.i.g&&1==a.g.getState().g&&(a=a.i,Jj(a.g),Yh(a.g))}
u.da=function(){return this.g};function Ol(a,b,c){c=hk(b.o,c);a.C.Ma(function(){return a.send(b)},c)}u.Yc=function(a){var b=this.g.getState();5<=b.g||(a.i?1!=b.g&&(0<this.j.length?(Sf(this.g,(N(),Bf)),Nl(this)):Sf(this.g,(N(),zf))):Sf(this.g,Ll(this,a.g),null,a.g))};function Nl(a){var b=a.B.shift();b&&a.send(b)}
function Ll(a,b){return 401==b?(N(),yf):403==b?(N(),xf):421==b?(N(),Ef):423==b?(N(),Ff):512==b||432==b?(N(),Jf):433==b?(N(),wf):434==b?(N(),Kf):202==b||405==b||409==b||429==b||500<=b&&599>=b&&550!=b?(N(),Df):413==b?(N(),If):400<=b&&499>=b||550==b?a.s:(N(),Cf)}u.Zc=function(){Sf(this.g,this.s)};u.A=function(){dg(this.j);R.prototype.A.call(this)};function Pl(a){P.call(this);this.h=a;this.g={};this.h.bb(z(this.i,this))}A(Pl,P);function Ql(a,b){if(-1!=b.indexOf(":"))throw Error('Virtual channel name "'+b+'" should not contain colons');if(b in a.g)throw Error('Virtual channel "'+b+'" was already created for this multichannel.');var c=new Rl(a,b);return a.g[b]=c}Pl.prototype.i=function(a,b){if(a=a.match(/^([^:]*):(.*)/)){var c=a[1];a=a[2];c in this.g&&(c=this.g[c])&&c.i&&c.i(a,b)}};
Pl.prototype.A=function(){Ic(this.g,function(a){O(a)});O(this.h);delete this.g;delete this.h};function Rl(a,b){P.call(this);this.g=a;this.h=b}A(Rl,P);u=Rl.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.Ia=function(a,b,c){this.g.h.Ia(this.h+":"+a,z(this.fc,this,b),c)};u.bb=function(a){this.i=z(this.fc,this,a)};u.send=function(a,b){if(this.isDisposed())throw Error("#send called for disposed VirtualChannel.");this.g.h.send(this.h+":"+a,b)};
u.fc=function(a,b){this.isDisposed()||a.apply({},Array.prototype.slice.call(arguments,1))};u.A=function(){this.g=this.g.g[this.h]=null};function Sl(a,b){P.call(this);this.h=[];this.j=new Pl(a);this.i=Ql(this.j,"user");this.o=Ql(this.j,"control");this.g=new jh(b||50);this.g.start();Cg(this.g,"tick",this.zc,!1,this);this.o.Ia("setPeerReady_",z(this.sd,this))}A(Sl,P);u=Sl.prototype;u.connect=function(a){a&&a()};u.isConnected=function(){return!0};u.zc=function(){try{this.o.send("setPeerReady_",this.l?"1":"")}catch(a){throw S(this.g),a;}};u.Ia=function(a,b,c){this.i.Ia(a,b,c)};u.bb=function(a){this.i.bb(a)};
u.send=function(a,b){this.l?this.i.send(a,b):this.h.push({rd:a,payload:b})};u.sd=function(a){a?S(this.g):this.g.start();if(!this.l){this.l=!0;this.zc();for(a=0;a<this.h.length;a++){var b=this.h[a];this.i.send(b.rd,b.payload)}this.h=null}};u.A=function(){O(this.j);O(this.g);Sl.P.A.call(this)};var Tl=["pu","lru","pru","lpu","ppu"];function Ul(){for(var a=10,b=Vl,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d}var Vl="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";function Wl(a){P.call(this);this.l=a||gb||(gb=new nd)}A(Wl,P);function Xl(a,b){Wl.call(this,b);this.g=a;this.C=new U(this);this.I(this.C);this.s=new jh(100,ld(this.l.g));this.I(this.s);this.i=new J;this.j=new J;this.h=new J;this.B=Ul();this.v=null;this.o={};this.F=this.g.name;Yl(this.g,this.g.name+"_"+Zl(this.g));this.D=!1;Zd(this.h,this.i);Zd(this.h,this.j);Xd(this.h,this.Mc,this);this.h.callback(!0);this.C.listen(this.s,"tick",this.Wb)}A(Xl,Wl);var $l={};
function am(a){var b=new bm(a.channelName,a.service,a.payload);a=b.g;var c=b.h;b=b.payload;var d=Z[a];if(d)return d.gb(c,b),!0;d=cm(b)[0];for(var e in Z){var f=Z[e];if(1==Zl(f)&&!f.isConnected()&&"tp"==c&&d==ka)return Yl(f,a),f.gb(c,b),!0}return!1}u=Xl.prototype;u.Gc=function(a){a=cm(a);var b=a[1];switch(a[0]){case la:this.i.g||this.i.callback(!0);break;case ka:this.send("tp",la),this.j.g||this.j.callback(!0),null!=this.v&&this.v!=b&&this.send("tp","SETUP,"+this.B),this.v=b}};
u.connect=function(){var a=ld(this.l.g);if(a){var b=Ya(a);0==($l[b]||0)&&null==Ua(xa,a)&&eb(am,a);$l[b]++;this.D=!0;this.Wb()}};u.Wb=function(){this.g.isConnected()?S(this.s):(this.s.start(),this.send("tp","SETUP,"+this.B))};u.send=function(a,b){this.g.aa&&(a=new bm(this.F+"_"+(0==Zl(this.g)?1:0),a,b),this.g.g.directSyncMode?this.ic(a):this.o[Ya(a)]=kh(z(this.ic,this,a),0))};
u.ic=function(a){var b=Ya(a);this.o[b]&&delete this.o[b];try{var c=Ua(xa,this.g.aa)}catch(d){return}if(null!==c)try{c({channelName:a.g,service:a.h,payload:a.payload})}catch(d){}};u.Mc=function(){dm(this.g,0)};u.A=function(){if(this.D){var a=ld(this.l.g),b=Ya(a);1==--$l[b]&&eb(null,a)}this.o&&(Ic(this.o,function(c){y.clearTimeout(c)}),this.o=null);this.i&&(this.i.cancel(),delete this.i);this.j&&(this.j.cancel(),delete this.j);this.h&&(this.h.cancel(),delete this.h);Xl.P.A.call(this)};
function cm(a){a=a.split(",");a[1]=a[1]||null;return a}function bm(a,b,c){this.g=a;this.h=b;this.payload=c};function em(a,b,c,d,e){Wl.call(this,c);this.o=a;this.s=e||2;this.H=b||"*";this.C=new U(this);this.v=new jh(100,ld(this.l.g));this.D=!!d;this.i=new J;this.j=new J;this.h=new J;this.G=Ul();this.B=null;this.D?1==Zl(this.o)?Zd(this.h,this.i):Zd(this.h,this.j):(Zd(this.h,this.i),2==this.s&&Zd(this.h,this.j));Xd(this.h,this.Nc,this);this.h.callback(!0);this.C.listen(this.v,"tick",this.Xb)}A(em,Wl);em.prototype.g=null;em.prototype.F=!1;var fm={};u=em.prototype;u.eb=0;
function hm(a){var b=a.g.data;if(typeof b!==r)return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=Z[e])return d.gb(c,b,a.g.origin),!0;d=im(b)[0];for(var f in Z){var g=Z[f];if(1==Zl(g)&&!g.isConnected()&&"tp"==c&&(d==ka||"SETUP_NTPV2"==d)&&jm(g,a.g.origin))return Yl(g,e),g.gb(c,b),!0}return!1}
u.Gc=function(a){var b=im(a);a=b[1];switch(b[0]){case la:km(this,1);this.i.g||this.i.callback(!0);break;case ma:2==this.s&&(km(this,2),this.i.g||this.i.callback(!0));break;case ka:km(this,1);lm(this,1);break;case "SETUP_NTPV2":2==this.s&&(b=this.g,km(this,2),lm(this,2),1!=b&&null==this.B||this.B==a||mm(this),this.B=a)}};function mm(a){2!=a.s||null!=a.g&&2!=a.g||a.send("tp","SETUP_NTPV2,"+a.G);null!=a.g&&1!=a.g||a.send("tp",ka)}
function lm(a,b){if(2!=a.s||null!=a.g&&2!=a.g||2!=b){if(null!=a.g&&1!=a.g||1!=b)return;a.send("tp",la)}else a.send("tp",ma);a.j.g||a.j.callback(!0)}function km(a,b){b>a.g&&(a.g=b);1==a.g&&(a.j.g||a.D||a.j.callback(!0),a.B=null)}u.connect=function(){var a=ld(this.l.g),b=Ya(a),c=fm[b];typeof c!==n&&(c=0);0==c&&Cg(a.postMessage?a:a.document,Aa,hm,!1,em);fm[b]=c+1;this.F=!0;this.Xb()};u.Xb=function(){var a=0==Zl(this.o);this.D&&a||this.o.isConnected()||this.isDisposed()?S(this.v):(this.v.start(),mm(this))};
u.send=function(a,b){var c=this.o.aa;c&&(this.send=function(d,e){var f=this,g=this.o.name;this.eb=kh(function(){f.eb=0;try{var k=c.postMessage?c:c.document;k.postMessage&&k.postMessage(g+"|"+d+":"+e,f.H)}catch(l){}},0)},this.send(a,b))};u.Nc=function(){dm(this.o,1==this.s||1==this.g?200:void 0)};
u.A=function(){if(this.F){var a=ld(this.l.g),b=Ya(a),c=fm[b];fm[b]=c-1;1==c&&Kg(a.postMessage?a:a.document,Aa,hm,!1,em)}this.eb&&(y.clearTimeout(this.eb),this.eb=0);O(this.C);delete this.C;O(this.v);delete this.v;this.i.cancel();delete this.i;this.j.cancel();delete this.j;this.h.cancel();delete this.h;delete this.send;em.P.A.call(this)};function im(a){a=a.split(",");a[1]=a[1]||null;return a};function nm(a,b){ai.call(this);for(var c=0,d;d=Tl[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.g=a;this.name=this.g.cn||Ul();this.h=b||gb||(gb=new nd);this.i=[];this.o=new U(this);a.lpu=a.lpu||oh(ld(this.h.g).location.href)+"/robots.txt";a.ppu=a.ppu||oh(a.pu||"")+"/robots.txt";Z[this.name]=this;Mg(window,"unload",om)||Dg(window,"unload",om)}A(nm,ai);var pm=RegExp("^%*tp$"),qm=RegExp("^%+tp$");u=nm.prototype;u.ua=null;u.Ga=null;u.ha=null;
u.Ka=1;u.isConnected=function(){return 2==this.Ka};u.aa=null;u.mb=null;u.connect=function(a){this.l=a||Va;3==this.Ka&&(this.Ka=1);this.Ga?Xd(this.Ga,this.dc):this.dc()};
u.dc=function(){this.Ga=null;if(this.g.ifrid){var a=this.g.ifrid;this.mb=typeof a===r?this.h.g.getElementById(a):a}this.mb&&((a=this.mb.contentWindow)||(a=window.frames[this.g.ifrid]),this.aa=a);if(!this.aa){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.aa=window.parent}if(!this.ha){this.g.tp||(this.g.tp=typeof document.postMessage===h||typeof window.postMessage===h||E&&window.postMessage?1:0);if(typeof this.g.tp===h)this.ha=new this.g.tp(this,
this.h);else switch(this.g.tp){case 1:this.ha=new em(this,this.g.ph,this.h,!!this.g.osh,this.g.nativeProtocolVersion||2);break;case 2:if(a=this.aa)try{a=window.document.domain==this.aa.document.domain}catch(b){a=!1}a&&(this.ha=new Xl(this,this.h))}if(!this.ha)throw Error("CrossPageChannel: No suitable transport found! You may try injecting a Transport constructor directly via the channel config object.");}for(this.ha.connect();0<this.i.length;)this.i.shift()()};
u.close=function(){this.Ga&&(this.Ga.cancel(),this.Ga=null);this.i.length=0;Th(this.o);this.Ka=3;O(this.ha);this.l=this.ha=null;O(this.ua);this.ua=null};function dm(a,b){a.isConnected()||a.ua&&0!=a.ua.g||(a.Ka=2,O(a.ua),void 0!==b?(a.ua=new ei(a.l,b),a.ua.start()):(a.ua=null,a.l()))}u.send=function(a,b){if(this.isConnected()){try{var c=!!this.aa&&!this.aa.closed}catch(e){c=!1}if(c){Xa(b)&&(b=Xg(b));c=this.ha;var d=c.send;pm.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);d.call(c,a,b)}else this.close()}};
u.gb=function(a,b,c){this.Ga?this.i.push(z(this.gb,this,a,b,c)):jm(this,c)&&!this.isDisposed()&&3!=this.Ka&&(a&&"tp"!=a?this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=qm.test(a)?a.substring(1):a,bi(this,a,b)):this.ha.Gc(b))};function Zl(a){var b=a.g.role;return typeof b===n?b:window.parent==a.aa?1:0}function Yl(a,b){delete Z[a.name];a.name=b;Z[b]=a}function jm(a,b){var c=a.g.ph;return ib(jd(b))||ib(jd(c))||b==a.g.ph}
u.A=function(){this.close();this.mb=this.aa=null;delete Z[this.name];O(this.o);delete this.o;nm.P.A.call(this)};function om(){for(var a in Z)O(Z[a])}var Z={};y._docosCreateHost=function(a){a:{a=new uc(a);Yb=!0;try{var b=JSON.stringify(a.toJSON(),nc);break a}finally{Yb=!1}b=void 0}b=new Pg({keyData:b});a=Xe();var c=new Bl,d=new ik,e=new Nf;e.g=!1;e.h=!1;e.i=!1;e.j=0;e.l=a;var f=new Of;f.l=e.l;f.g=e.g;f.h=e.h;f.i=e.i;f.j=e.j;c=new Il(c,void 0,void 0,void 0,d,void 0,void 0,f);if(e=b.l)c.h.i=e;(d=b.C)&&mk(c.h,d);b.s&&lk(c.h,"anon","true");(d=b.v)&&lk(c.h,"invite",d);d=null;if(b.i){d=new Xh(df());d.G=b.o.g;f=c.i;var g=d;f.g=g;var k=z(f.o,f);g.C=k;null!=g.l&&
g.C(Lj(g));Zh(g,Da,f.j);f.l();Yh(d,b.h,a,e)}e=["id",b.h];f=jk();(f=b.B||f.g.resourcekey)&&e.push("resourcekey",f);b=new Mj(c,!0,e,d,null!=b.j?b.j:6E4,b,a);b.I(c);c=new Gi(window.location.href);a=c.h.get("ctoken");if(!a)throw Error("Channel token missing.");if(c=c.h.get("xpc"))return c=JSON.parse(c),c=new nm(c),c.connect(),c=new Sl(c),c=new ci(c,a),new Uh(c,b);throw Error("Remote endpoint not found.");};/*

 SPDX-License-Identifier: Apache-2.0
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
}).call(this);
