(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",pa="Trying to send a request without a request sender for - ",qa="X-Goog-Upload-Status",ra="about:invalid#zClosurez",sa="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",q="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 Ja(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Ea(a)}}function La(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var Ma=typeof Object.create==h?Object.create:function(a){function b(){}b.prototype=a;return new b},Na;
if(typeof Object.setPrototypeOf==h)Na=Object.setPrototypeOf;else{var Oa;a:{var Pa={a:!0},Qa={};try{Qa.__proto__=Pa;Oa=Qa.a;break a}catch(a){}Oa=!1}Na=Oa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var Ra=Na;
function w(a,b){a.prototype=Ma(b.prototype);a.prototype.constructor=a;if(Ra)Ra(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 Sa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
v("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=Ja(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(!Sa(l,g)){var m=new c;Fa(l,g,{value:m})}}function f(l){var m=Object[l];m&&(Object[l]=function(r){if(r instanceof c)return r;Object.isExtensible(r)&&e(r);return m(r)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),r=new a([[l,
2],[m,3]]);if(2!=r.get(l)||3!=r.get(m))return!1;r.delete(l);r.set(m,4);return!r.has(l)&&4==r.get(m)}catch(H){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(!Sa(l,g))throw Error("WeakMap key fail: "+l);l[g][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&Sa(l,g)?l[g][this.g]:void 0};b.prototype.has=function(l){return d(l)&&Sa(l,g)&&Sa(l[g],
this.g)};b.prototype.delete=function(l){return d(l)&&Sa(l,g)&&Sa(l[g],this.g)?delete l[g][this.g]:!1};return b});
v("Map",function(a){function b(){var k={};return k.ra=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.ra;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 r=k.h[m];if(r&&Sa(k.h,m))for(k=0;k<r.length;k++){var H=r[k];if(l!==l&&H.key!==H.key||l===H.key)return{id:m,list:r,index:k,S:H}}return{id:m,list:r,index:-1,S:void 0}}
function e(k){this.h={};this.g=b();this.size=0;if(k){k=Ja(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(Ja([[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(),r=m.next();if(r.done||r.value[0]!=k||"s"!=r.value[1])return!1;r=m.next();return r.done||4!=r.value[0].x||"t"!=r.value[1]||!m.next().done?!1:
!0}catch(H){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.S?m.S.value=l:(m.S={next:this.g,ra:this.g.ra,head:this.g,key:k,value:l},m.list.push(m.S),this.g.ra.next=m.S,this.g.ra=m.S,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.S&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.S.ra.next=k.S.next,k.S.next.ra=k.S.ra,k.S.head=null,this.size--,!0):!1};e.prototype.clear=
function(){this.h={};this.g=this.g.ra=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).S};e.prototype.get=function(k){return(k=d(this,k).S)&&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(),r;!(r=m.next()).done;)r=r.value,k.call(l,r[1],r[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});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("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}});
function Ta(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("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 Ta(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 Ta(this,function(b){return b})}});v("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Sa(b,d)&&c.push(b[d]);return c}});var Ua=Ua||{},x=this||self;
function y(a,b,c){a=a.split(".");c=c||x;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function Va(a,b){a=a.split(".");b=b||x;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b}function z(){}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 A(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?A=ab:A=bb;return A.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 B(a,b){function c(){}c.prototype=b.prototype;a.P=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Bd=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 eb(a){return a};function C(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,C);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.Ya=b);this.g=!0}B(C,Error);C.prototype.name="CustomError";var fb;function gb(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};function hb(){return null};var ib=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a===q)return typeof b!==q||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},jb=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===q?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 kb(a,b){b=ib(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}function lb(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 mb(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 nb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function ob(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function D(a){var b={},c;for(c in a)b[c]=a[c];return b}var pb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function qb(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<pb.length;f++)c=pb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var rb;function sb(a){return/^[\s\xa0]*$/.test(a)}var tb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ub=/&/g,vb=/</g,wb=/>/g,xb=/"/g,zb=/'/g,Ab=/\x00/g,Bb=/[\x00&<>"']/;function Cb(a,b){return a<b?-1:a>b?1:0};function E(a,b){this.i=b===Db?a:""}E.prototype.h=!0;E.prototype.g=function(){return this.i.toString()};E.prototype.toString=function(){return this.i.toString()};function Eb(a){return a instanceof E&&a.constructor===E?a.i:"type_error:SafeUrl"}var Fb=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Gb=/^data:(.*);base64,[a-z0-9+\/]+=*$/i;
function Hb(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Gb);return b&&Fb.test(b[1])?new E(a,Db):null}var Ib=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Db={},Jb=new E(ra,Db);var Kb;a:{var Lb=x.navigator;if(Lb){var Mb=Lb.userAgent;if(Mb){Kb=Mb;break a}}Kb=""}function F(a){return-1!=Kb.indexOf(a)};var Nb={};function Ob(a,b,c){this.i=c===Nb?a:"";this.h=!0}Ob.prototype.g=function(){return this.i.toString()};Ob.prototype.toString=function(){return this.i.toString()};function Pb(a){return a instanceof Ob&&a.constructor===Ob?a.i:"type_error:SafeHtml"}var Qb=new Ob(x.trustedTypes&&x.trustedTypes.emptyHTML||"",0,Nb);function Rb(a){if(void 0===rb){var b=null;var c=x.trustedTypes;if(c&&c.createPolicy){try{b=c.createPolicy("goog#html",{createHTML:eb,createScript:eb,createScriptURL:eb})}catch(d){x.console&&x.console.error(d.message)}rb=b}else rb=b}a=(b=rb)?b.createHTML(a):a;return new Ob(a,null,Nb)};var Sb=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=Pb(Qb);return!b.parentElement});function Tb(a,b){if(Sb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=Pb(b)}
function Ub(a,b){if(b instanceof E)var c=b;else a:if(c=b,b=/^data:image\//i.test(b),!(c instanceof E)){c=typeof c==p&&c.h?c.g():String(c);if(b&&/^data:/i.test(c)&&(b=Hb(c)||Jb,b.g()==c)){c=b;break a}Ib.test(c)||(c=ra);c=new E(c,Db)}a.src=Eb(c)};function Vb(a){return decodeURIComponent(a.replace(/\+/g," "))}function Wb(a){Bb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(ub,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(vb,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(wb,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(xb,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(zb,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Ab,"&#0;")));return a}
function Xb(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=x.document.createElement("div");return a.replace(Yb,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=Rb(d+" "),Tb(c,f),f=c.firstChild.nodeValue.slice(0,-1));return b[d]=f})}
function Zb(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 Yb=/&([^;\s<&]+);?/g,$b={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},ac={"'":"\\'"},bc=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};function cc(a){a=String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return bc("0",Math.max(0,2-b))+a}function dc(a){return null==a?"":String(a)}
function ec(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)};function fc(a){fc[" "](a);return a}fc[" "]=z;function gc(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var hc=F("Opera"),G=F("Trident")||F("MSIE"),ic=F("Edge"),jc=F("Gecko")&&!(-1!=Kb.toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),kc=-1!=Kb.toLowerCase().indexOf("webkit")&&!F("Edge");function lc(){var a=x.document;return a?a.documentMode:void 0}var mc;
a:{var nc="",oc=function(){var a=Kb;if(jc)return/rv:([^\);]+)(\)|;)/.exec(a);if(ic)return/Edge\/([\d\.]+)/.exec(a);if(G)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(kc)return/WebKit\/(\S+)/.exec(a);if(hc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();oc&&(nc=oc?oc[1]:"");if(G){var qc=lc();if(null!=qc&&qc>parseFloat(nc)){mc=String(qc);break a}}mc=nc}var rc=mc,sc={};
function tc(a){return gc(sc,a,function(){for(var b=0,c=tb(String(rc)).split("."),d=tb(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=Cb(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||Cb(0==g[2].length,0==k[2].length)||Cb(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})}var uc;
if(x.document&&G){var vc=lc();uc=vc?vc:parseInt(rc,10)||void 0}else uc=void 0;var wc=uc;var xc={},yc=null;
function zc(a){var b;void 0===b&&(b=0);if(!yc){yc={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));xc[e]=f;for(var g=0;g<f.length;g++){var k=f[g];void 0===yc[k]&&(yc[k]=g)}}}b=xc[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("")};var Ac=typeof Uint8Array===h;function Bc(a,b,c){return typeof a===p?Ac&&!Array.isArray(a)&&a instanceof Uint8Array?c(a):Cc(a,b,c):b(a)}function Cc(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e<a.length;e++){var f=a[e];null!=f&&(d[e]=Bc(f,b,c))}Array.isArray(a)&&a.dd&&Dc(d);return d}d={};for(e in a)f=a[e],null!=f&&(d[e]=Bc(f,b,c));return d}function Ec(a){return Cc(a,function(b){return typeof b===n?isFinite(b)?b:String(b):b},function(b){return zc(b)})}var Fc={dd:{value:!0,configurable:!0}};
function Dc(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,Fc);return a}var Gc;var Hc;function I(a,b,c,d){var e=Hc;Hc=null;a||(a=e);e=this.constructor.ab;a||(a=e?[e]:[]);this.j=e?0:-1;this.i=null;this.g=a;a:{e=this.g.length;a=e-1;if(e&&(e=this.g[a],!(null===e||typeof e!=p||Array.isArray(e)||Ac&&e instanceof Uint8Array))){this.l=a-this.j;this.h=e;break a}void 0!==b&&-1<b?(this.l=Math.max(b,a+1-this.j),this.h=null):this.l=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)a=c[b],a<this.l?(a+=this.j,(e=this.g[a])?Dc(e):this.g[a]=Ic):(Jc(this),(e=this.h[a])?Dc(e):this.h[a]=Ic);if(d&&d.length)for(c=
0;c<d.length;c++){a=b=void 0;e=d[c];for(var f=0;f<e.length;f++){var g=e[f],k=J(this,g);null!=k&&(a=g,b=k,Kc(this,g,void 0))}a&&Kc(this,a,b)}}var Ic=Object.freeze(Dc([]));function Jc(a){var b=a.l+a.j;a.g[b]||(a.h=a.g[b]={})}function J(a,b){if(b<a.l){b+=a.j;var c=a.g[b];return c!==Ic?c:a.g[b]=Dc([])}if(a.h)return c=a.h[b],c!==Ic?c:a.h[b]=Dc([])}function Lc(a,b){a=J(a,b);return null==a?a:!!a}function Kc(a,b,c){b<a.l?a.g[b+a.j]=c:(Jc(a),a.h[b]=c)}
function Mc(a,b,c){a.i||(a.i={});if(!a.i[c]){var d=J(a,c);d&&(a.i[c]=new b(d))}return a.i[c]}I.prototype.toJSON=function(){if(this.i)for(c in this.i){var a=this.i[c];if(Array.isArray(a))for(var b=0;b<a.length;b++);}var c=this.g;return Gc?c:Ec(c)};function Nc(a,b){switch(typeof b){case n:return isFinite(b)?b:String(b);case p:if(Ac&&null!=b&&b instanceof Uint8Array)return zc(b)}return b};function Oc(a){I.call(this,a)}w(Oc,I);Oc.prototype.getId=function(){return J(this,4)};function Pc(a){I.call(this,a)}w(Pc,I);Pc.ab="tf";function Qc(a){I.call(this,a)}w(Qc,I);function Rc(a){I.call(this,a)}w(Rc,I);function Sc(a){I.call(this,a)}w(Sc,I);Sc.ab="er";function Tc(a){I.call(this,a)}w(Tc,I);Tc.ab="xsrf";function Uc(a){return gc(a.prototype,"$$generatedClassName",function(){return"Class$obf_"+{valueOf:function(){return++Vc}}})}var Vc=1E3;function Wc(a,b){this.i=a;this.j=b;this.h=0;this.g=null}Wc.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 Xc(a,b){a.j(b);100>a.h&&(a.h++,b.next=a.g,a.g=b)};var Yc=[],Zc=[],$c=!1;function ad(a){Yc[Yc.length]=a;if($c)for(var b=0;b<Zc.length;b++)a(A(Zc[b].g,Zc[b]))};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){};function bd(a){return a.parentWindow||a.defaultView}function cd(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}function dd(){this.g=x.document||document}dd.prototype.createElement=function(a){return cd(this.g,a)};dd.prototype.appendChild=function(a,b){a.appendChild(b)};var ed;
function fd(){var a=x.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var e=cd(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=A(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&&!F("Trident")&&!F("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.bc;c.bc=null;e()}};return function(e){d.next={bc:e};d=d.next;b.port2.postMessage(0)}}return function(e){x.setTimeout(e,0)}}function gd(a){return a}ad(function(a){gd=a});function hd(a){x.setTimeout(function(){throw a;},0)};function id(){this.h=this.g=null}id.prototype.add=function(a,b){var c=jd.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function kd(){var a=ld,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var jd=new Wc(function(){return new md},function(a){return a.reset()});function md(){this.next=this.scope=this.g=null}md.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};md.prototype.reset=function(){this.next=this.scope=this.g=null};function nd(a,b){od||pd();qd||(od(),qd=!0);ld.add(a,b)}var od;function pd(){if(x.Promise&&x.Promise.resolve){var a=x.Promise.resolve(void 0);od=function(){a.then(rd)}}else od=function(){var b=rd;b=gd(b);typeof x.setImmediate!==h||x.Window&&x.Window.prototype&&!F("Edge")&&x.Window.prototype.setImmediate==x.setImmediate?(ed||(ed=fd()),ed(b)):x.setImmediate(b)}}var qd=!1,ld=new id;function rd(){for(var a;a=kd();){try{a.g.call(a.scope)}catch(b){hd(b)}Xc(jd,a)}qd=!1};function sd(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function td(a){this.g=0;this.s=void 0;this.j=this.h=this.i=null;this.l=this.o=!1;if(a!=z)try{var b=this;a.call(void 0,function(c){ud(b,2,c)},function(c){ud(b,3,c)})}catch(c){ud(this,3,c)}}function vd(){this.next=this.i=this.h=this.j=this.g=null;this.l=!1}vd.prototype.reset=function(){this.i=this.h=this.j=this.g=null;this.l=!1};var wd=new Wc(function(){return new vd},function(a){a.reset()});function xd(a,b,c){var d=wd.get();d.j=a;d.h=b;d.i=c;return d}
td.prototype.then=function(a,b,c){return yd(this,typeof a===h?a:null,typeof b===h?b:null,c)};td.prototype.$goog_Thenable=!0;td.prototype.cancel=function(a){if(0==this.g){var b=new zd(a);nd(function(){Ad(this,b)},this)}};function Ad(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?Ad(c,b):(f?(d=f,d.next==c.j&&(c.j=d),d.next=d.next.next):Bd(c),Cd(c,e,3,b)))}a.i=null}else ud(a,3,b)}
function Dd(a,b){a.h||2!=a.g&&3!=a.g||Ed(a);a.j?a.j.next=b:a.h=b;a.j=b}function yd(a,b,c,d){var e=xd(null,null,null);e.g=new td(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 zd?g(k):f(l)}catch(m){g(m)}}:g});e.g.i=a;Dd(a,e);return e.g}td.prototype.B=function(a){this.g=0;ud(this,2,a)};td.prototype.C=function(a){this.g=0;ud(this,3,a)};
function ud(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 td){Dd(d,xd(e||z,f||null,a));var g=!0}else if(sd(d))d.then(e,f,a),g=!0;else{if(Xa(d))try{var k=d.then;if(typeof k===h){Fd(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,Ed(a),3!=b||c instanceof zd||Gd(a,c))}}
function Fd(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 Ed(a){a.o||(a.o=!0,nd(a.v,a))}function Bd(a){var b=null;a.h&&(b=a.h,a.h=b.next,b.next=null);a.h||(a.j=null);return b}td.prototype.v=function(){for(var a;a=Bd(this);)Cd(this,a,this.g,this.s);this.o=!1};
function Cd(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,Hd(b,c,d);else try{b.l?b.j.call(b.i):Hd(b,c,d)}catch(e){Id.call(null,e)}Xc(wd,b)}function Hd(a,b,c){2==b?a.j.call(a.i,c):a.h&&a.h.call(a.i,c)}function Gd(a,b){a.l=!0;nd(function(){a.l&&Id.call(null,b)})}var Id=hd;function zd(a){C.call(this,a);this.g=!1}B(zd,C);zd.prototype.name="cancel";/*

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