(function() {/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function q(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==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 ea=da(this);function r(a,b){if(b)a:{var c=ea;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&&ca(c,a,{configurable:!0,writable:!0,value:b})}}var fa;
if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=fa;
r("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,k){this.g=f;ca(this,"description",{configurable:!0,writable:!0,value:k})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return la(aa(this))}})}return a});function la(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function ma(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}r("Array.prototype.entries",function(a){return a?a:function(){return ma(this,function(b,c){return[b,c]})}});function u(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
r("WeakMap",function(a){function b(h){this.g=(l+=Math.random()+1).toString();if(h){h=q(h);for(var m;!(m=h.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(h){var m=typeof h;return"object"===m&&null!==h||"function"===m}function e(h){if(!u(h,k)){var m=new c;ca(h,k,{value:m})}}function f(h){var m=Object[h];m&&(Object[h]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return m(p)})}if(function(){if(!a||!Object.seal)return!1;try{var h=Object.seal({}),m=Object.seal({}),
p=new a([[h,2],[m,3]]);if(2!=p.get(h)||3!=p.get(m))return!1;p.delete(h);p.set(m,4);return!p.has(h)&&4==p.get(m)}catch(t){return!1}}())return a;var k="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(h,m){if(!d(h))throw Error("Invalid WeakMap key");e(h);if(!u(h,k))throw Error("WeakMap key fail: "+h);h[k][this.g]=m;return this};b.prototype.get=function(h){return d(h)&&u(h,k)?h[k][this.g]:void 0};b.prototype.has=function(h){return d(h)&&u(h,
k)&&u(h[k],this.g)};b.prototype.delete=function(h){return d(h)&&u(h,k)&&u(h[k],this.g)?delete h[k][this.g]:!1};return b});
r("Map",function(a){function b(){var l={};return l.V=l.next=l.head=l}function c(l,h){var m=l.g;return la(function(){if(m){for(;m.head!=l.g;)m=m.V;for(;m.next!=m.head;)return m=m.next,{done:!1,value:h(m)};m=null}return{done:!0,value:void 0}})}function d(l,h){var m=h&&typeof h;"object"==m||"function"==m?f.has(h)?m=f.get(h):(m=""+ ++k,f.set(h,m)):m="p_"+h;var p=l.h[m];if(p&&u(l.h,m))for(l=0;l<p.length;l++){var t=p[l];if(h!==h&&t.key!==t.key||h===t.key)return{id:m,list:p,index:l,I:t}}return{id:m,list:p,
index:-1,I:void 0}}function e(l){this.h={};this.g=b();this.size=0;if(l){l=q(l);for(var h;!(h=l.next()).done;)h=h.value,this.set(h[0],h[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),h=new a(q([[l,"s"]]));if("s"!=h.get(l)||1!=h.size||h.get({x:4})||h.set({x:4},"t")!=h||2!=h.size)return!1;var m=h.entries(),p=m.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=m.next();return p.done||4!=p.value[0].x||
"t"!=p.value[1]||!m.next().done?!1:!0}catch(t){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(l,h){l=0===l?0:l;var m=d(this,l);m.list||(m.list=this.h[m.id]=[]);m.I?m.I.value=h:(m.I={next:this.g,V:this.g.V,head:this.g,key:l,value:h},m.list.push(m.I),this.g.V.next=m.I,this.g.V=m.I,this.size++);return this};e.prototype.delete=function(l){l=d(this,l);return l.I&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.h[l.id],l.I.V.next=l.I.next,l.I.next.V=l.I.V,l.I.head=null,this.size--,
!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.V=b();this.size=0};e.prototype.has=function(l){return!!d(this,l).I};e.prototype.get=function(l){return(l=d(this,l).I)&&l.value};e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};e.prototype.keys=function(){return c(this,function(l){return l.key})};e.prototype.values=function(){return c(this,function(l){return l.value})};e.prototype.forEach=function(l,h){for(var m=this.entries(),p;!(p=m.next()).done;)p=p.value,
l.call(h,p[1],p[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});
r("Set",function(a){function b(c){this.g=new Map;if(c){c=q(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(q([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});r("Array.prototype.values",function(a){return a?a:function(){return ma(this,function(b,c){return c})}});var goog=goog||{},v=this||self;function na(){}function oa(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function pa(a){return Object.prototype.hasOwnProperty.call(a,qa)&&a[qa]||(a[qa]=++ra)}var qa="closure_uid_"+(1E9*Math.random()>>>0),ra=0;function sa(a,b,c){return a.call.apply(a.bind,arguments)}function ta(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 x(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?x=sa:x=ta;return x.apply(null,arguments)}function ua(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 y(a,b){function c(){}c.prototype=b.prototype;a.Y=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Xb=function(d,e,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[e].apply(d,k)}};function z(){0!=va&&(wa[pa(this)]=this);this.s=this.s;this.o=this.o}var va=0,wa={};z.prototype.s=!1;z.prototype.pa=function(){if(!this.s&&(this.s=!0,this.N(),0!=va)){var a=pa(this);if(0!=va&&this.o&&0<this.o.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete wa[a]}};z.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var xa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||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},ya=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function za(a){a:{var b=Aa;for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}function Ba(a){return Array.prototype.concat.apply([],arguments)}function Ca(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 Da(a){return/^[\s\xa0]*$/.test(a)}var Ea=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function A(a,b){return-1!=a.indexOf(b)}function Fa(a,b){return a<b?-1:a>b?1:0};var B;a:{var Ha=v.navigator;if(Ha){var Ia=Ha.userAgent;if(Ia){B=Ia;break a}}B=""};function La(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ma(a){var b={},c;for(c in a)b[c]=a[c];return b}var Na="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Oa(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<Na.length;f++)c=Na[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Pa(a){Pa[" "](a);return a}Pa[" "]=na;function Qa(a){var b=Ra;return Object.prototype.hasOwnProperty.call(b,9)?b[9]:b[9]=a(9)};var Sa=A(B,"Opera"),C=A(B,"Trident")||A(B,"MSIE"),Ta=A(B,"Edge"),Ua=Ta||C,Va=A(B,"Gecko")&&!(A(B.toLowerCase(),"webkit")&&!A(B,"Edge"))&&!(A(B,"Trident")||A(B,"MSIE"))&&!A(B,"Edge"),Wa=A(B.toLowerCase(),"webkit")&&!A(B,"Edge");function Xa(){var a=v.document;return a?a.documentMode:void 0}var Ya;
a:{var Za="",$a=function(){var a=B;if(Va)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ta)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Wa)return/WebKit\/(\S+)/.exec(a);if(Sa)return/(?:Version)[ \/]?(\S+)/.exec(a)}();$a&&(Za=$a?$a[1]:"");if(C){var ab=Xa();if(null!=ab&&ab>parseFloat(Za)){Ya=String(ab);break a}}Ya=Za}var Ra={};
function bb(){return Qa(function(){for(var a=0,b=Ea(String(Ya)).split("."),c=Ea("9").split("."),d=Math.max(b.length,c.length),e=0;0==a&&e<d;e++){var f=b[e]||"",k=c[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==f[0].length&&0==k[0].length)break;a=Fa(0==f[1].length?0:parseInt(f[1],10),0==k[1].length?0:parseInt(k[1],10))||Fa(0==f[2].length,0==k[2].length)||Fa(f[2],k[2]);f=f[3];k=k[3]}while(0==a)}return 0<=a})}var cb;
if(v.document&&C){var db=Xa();cb=db?db:parseInt(Ya,10)||void 0}else cb=void 0;var eb=cb;var fb=function(){if(!v.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{v.addEventListener("test",na,b),v.removeEventListener("test",na,b)}catch(c){}return a}();function D(a,b){this.type=a;this.g=this.target=b;this.defaultPrevented=!1}D.prototype.h=function(){this.defaultPrevented=!0};function E(a,b){D.call(this,a?a.type:"");this.relatedTarget=this.g=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.i=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=b;if(b=a.relatedTarget){if(Va){a:{try{Pa(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="string"===typeof a.pointerType?a.pointerType:gb[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&E.Y.h.call(this)}}y(E,D);var gb={2:"touch",3:"pen",4:"mouse"};E.prototype.h=function(){E.Y.h.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var F="closure_listenable_"+(1E6*Math.random()|0);var hb=0;function ib(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ka=e;this.key=++hb;this.ea=this.ha=!1}function jb(a){a.ea=!0;a.listener=null;a.proxy=null;a.src=null;a.ka=null};function kb(a){this.src=a;this.g={};this.h=0}kb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.h++);var k=lb(a,b,d,e);-1<k?(b=a[k],c||(b.ha=!1)):(b=new ib(b,this.src,f,!!d,e),b.ha=c,a.push(b));return b};function mb(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=xa(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(jb(b),0==a.g[c].length&&(delete a.g[c],a.h--))}}
function lb(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ea&&f.listener==b&&f.capture==!!c&&f.ka==d)return e}return-1};var nb="closure_lm_"+(1E6*Math.random()|0),ob={},pb=0;function qb(a,b,c,d,e){if(d&&d.once)return rb(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)qb(a,b[f],c,d,e);return null}c=sb(c);return a&&a[F]?a.O(b,c,w(d)?!!d.capture:!!d,e):tb(a,b,c,!1,d,e)}
function tb(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=w(e)?!!e.capture:!!e,l=ub(a);l||(a[nb]=l=new kb(a));c=l.add(b,c,d,k,f);if(c.proxy)return c;d=vb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)fb||(e=k),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(wb(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");pb++;return c}
function vb(){function a(c){return b.call(a.src,a.listener,c)}var b=xb;return a}function rb(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)rb(a,b[f],c,d,e);return null}c=sb(c);return a&&a[F]?a.P(b,c,w(d)?!!d.capture:!!d,e):tb(a,b,c,!0,d,e)}
function yb(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)yb(a,b[f],c,d,e);else(d=w(d)?!!d.capture:!!d,c=sb(c),a&&a[F])?(a=a.i,b=String(b).toString(),b in a.g&&(f=a.g[b],c=lb(f,c,d,e),-1<c&&(jb(f[c]),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.g[b],a.h--)))):a&&(a=ub(a))&&(b=a.g[b.toString()],a=-1,b&&(a=lb(b,c,d,e)),(c=-1<a?b[a]:null)&&zb(c))}
function zb(a){if("number"!==typeof a&&a&&!a.ea){var b=a.src;if(b&&b[F])mb(b.i,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(wb(c),d):b.addListener&&b.removeListener&&b.removeListener(d);pb--;(c=ub(b))?(mb(c,a),0==c.h&&(c.src=null,b[nb]=null)):jb(a)}}}function wb(a){return a in ob?ob[a]:ob[a]="on"+a}function xb(a,b){if(a.ea)a=!0;else{b=new E(b,this);var c=a.listener,d=a.ka||a.src;a.ha&&zb(a);a=c.call(d,b)}return a}
function ub(a){a=a[nb];return a instanceof kb?a:null}var Ab="__closure_events_fn_"+(1E9*Math.random()>>>0);function sb(a){if("function"===typeof a)return a;a[Ab]||(a[Ab]=function(b){return a.handleEvent(b)});return a[Ab]};function G(){z.call(this);this.i=new kb(this);this.R=this;this.J=null}y(G,z);G.prototype[F]=!0;G.prototype.removeEventListener=function(a,b,c,d){yb(this,a,b,c,d)};
function H(a,b){var c,d=a.J;if(d)for(c=[];d;d=d.J)c.push(d);a=a.R;d=b.type||b;if("string"===typeof b)b=new D(b,a);else if(b instanceof D)b.target=b.target||a;else{var e=b;b=new D(d,a);Oa(b,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var k=b.g=c[f];e=Bb(k,d,!0,b)&&e}k=b.g=a;e=Bb(k,d,!0,b)&&e;e=Bb(k,d,!1,b)&&e;if(c)for(f=0;f<c.length;f++)k=b.g=c[f],e=Bb(k,d,!1,b)&&e}
G.prototype.N=function(){G.Y.N.call(this);if(this.i){var a=this.i,b=0,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)++b,jb(d[e]);delete a.g[c];a.h--}}this.J=null};G.prototype.O=function(a,b,c,d){return this.i.add(String(a),b,!1,c,d)};G.prototype.P=function(a,b,c,d){return this.i.add(String(a),b,!0,c,d)};
function Bb(a,b,c,d){b=a.i.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.ea&&k.capture==c){var l=k.listener,h=k.ka||k.src;k.ha&&mb(a.i,k);e=!1!==l.call(h,d)&&e}}return e&&!d.defaultPrevented};var Cb=v.JSON.stringify;function Db(a,b){this.i=a;this.j=b;this.h=0;this.g=null}Db.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 Eb(){this.h=this.g=null}Eb.prototype.add=function(a,b){var c=Fb.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c};function Gb(){var a=Hb,b=null;a.g&&(b=a.g,a.g=a.g.next,a.g||(a.h=null),b.next=null);return b}var Fb=new Db(function(){return new Ib},function(a){return a.reset()});function Ib(){this.next=this.g=this.h=null}Ib.prototype.set=function(a,b){this.h=a;this.g=b;this.next=null};Ib.prototype.reset=function(){this.next=this.g=this.h=null};function Jb(a){v.setTimeout(function(){throw a;},0)};function Kb(a,b){Lb||Mb();Nb||(Lb(),Nb=!0);Hb.add(a,b)}var Lb;function Mb(){var a=v.Promise.resolve(void 0);Lb=function(){a.then(Ob)}}var Nb=!1,Hb=new Eb;function Ob(){for(var a;a=Gb();){try{a.h.call(a.g)}catch(c){Jb(c)}var b=Fb;b.j(a);100>b.h&&(b.h++,a.next=b.g,b.g=a)}Nb=!1};function Pb(a,b){G.call(this);this.h=a||1;this.g=b||v;this.j=x(this.mb,this);this.l=Date.now()}y(Pb,G);n=Pb.prototype;n.fa=!1;n.T=null;n.mb=function(){if(this.fa){var a=Date.now()-this.l;0<a&&a<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-a):(this.T&&(this.g.clearTimeout(this.T),this.T=null),H(this,"tick"),this.fa&&(Qb(this),this.start()))}};n.start=function(){this.fa=!0;this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())};
function Qb(a){a.fa=!1;a.T&&(a.g.clearTimeout(a.T),a.T=null)}n.N=function(){Pb.Y.N.call(this);Qb(this);delete this.g};function Rb(a,b,c){if("function"===typeof a)c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:v.setTimeout(a,b||0)};function I(a,b,c){z.call(this);this.m=null!=c?a.bind(c):a;this.j=b;this.h=null;this.i=!1;this.g=null}I.prototype=ba(z.prototype);I.prototype.constructor=I;if(ka)ka(I,z);else for(var J in z)if("prototype"!=J)if(Object.defineProperties){var Sb=Object.getOwnPropertyDescriptor(z,J);Sb&&Object.defineProperty(I,J,Sb)}else I[J]=z[J];I.Y=z.prototype;I.prototype.l=function(a){this.h=arguments;this.g?this.i=!0:Tb(this)};
I.prototype.N=function(){z.prototype.N.call(this);this.g&&(v.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)};function Tb(a){a.g=Rb(function(){a.g=null;a.i&&(a.i=!1,Tb(a))},a.j);var b=a.h;a.h=null;a.m.apply(null,b)};function Ub(a){z.call(this);this.h=a;this.g={}}y(Ub,z);var Vb=[];function Wb(a,b,c,d){Array.isArray(c)||(c&&(Vb[0]=c.toString()),c=Vb);for(var e=0;e<c.length;e++){var f=qb(b,c[e],d||a.handleEvent,!1,a.h||a);if(!f)break;a.g[f.key]=f}}function Xb(a){La(a.g,function(b,c){this.g.hasOwnProperty(c)&&zb(b)},a);a.g={}}Ub.prototype.N=function(){Ub.Y.N.call(this);Xb(this)};Ub.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Yb(){this.g=!0}Yb.prototype.Ca=function(){this.g=!1};function Zb(a,b,c,d,e,f){a.info(function(){if(a.g)if(f){var k="";for(var l=f.split("&"),h=0;h<l.length;h++){var m=l[h].split("=");if(1<m.length){var p=m[0];m=m[1];var t=p.split("_");k=2<=t.length&&"type"==t[1]?k+(p+"="+m+"&"):k+(p+"=redacted&")}}}else k=null;else k=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+k})}
function $b(a,b,c,d,e,f,k){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+k})}function K(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+b+"): "+ac(a,c)+(d?" "+d:"")})}function bc(a,b){a.info(function(){return"TIMEOUT: "+b})}Yb.prototype.info=function(){};
function ac(a,b){if(!a.g)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(a=0;a<c.length;a++)if(Array.isArray(c[a])){var d=c[a];if(!(2>d.length)){var e=d[1];if(Array.isArray(e)&&!(1>e.length)){var f=e[0];if("noop"!=f&&"stop"!=f&&"close"!=f)for(var k=1;k<e.length;k++)e[k]=""}}}return Cb(c)}catch(l){return b}};var L={},cc=null;function dc(){return cc=cc||new G}L.Oa="serverreachability";function ec(a){D.call(this,L.Oa,a)}y(ec,D);function fc(a){var b=dc();H(b,new ec(b,a))}L.STAT_EVENT="statevent";function gc(a,b){D.call(this,L.STAT_EVENT,a);this.stat=b}y(gc,D);function M(a){var b=dc();H(b,new gc(b,a))}L.Pa="timingevent";function hc(a,b){D.call(this,L.Pa,a);this.size=b}y(hc,D);
function ic(a,b){if("function"!==typeof a)throw Error("Fn must not be null and must be a function");return v.setTimeout(function(){a()},b)};var jc={NO_ERROR:0,nb:1,Ab:2,zb:3,ub:4,yb:5,Bb:6,La:7,TIMEOUT:8,Eb:9};var kc={sb:"complete",Ob:"success",Ma:"error",La:"abort",Gb:"ready",Hb:"readystatechange",TIMEOUT:"timeout",Cb:"incrementaldata",Fb:"progress",vb:"downloadprogress",Wb:"uploadprogress"};function lc(){}lc.prototype.h=null;function mc(a){return a.h||(a.h=a.i())};function nc(){}var oc={OPEN:"a",rb:"b",Ma:"c",Db:"d"};function pc(){D.call(this,"d")}y(pc,D);function qc(){D.call(this,"c")}y(qc,D);var rc;function sc(){}y(sc,lc);sc.prototype.g=function(){return new XMLHttpRequest};sc.prototype.i=function(){return{}};rc=new sc;function tc(a,b,c,d){this.l=a;this.j=b;this.m=c;this.$=d||1;this.X=new Ub(this);this.R=uc;a=Ua?125:void 0;this.Z=new Pb(a);this.H=null;this.i=!1;this.s=this.A=this.v=this.L=this.F=this.aa=this.B=null;this.D=[];this.g=null;this.C=0;this.o=this.u=null;this.O=-1;this.J=!1;this.P=0;this.M=null;this.ca=this.K=this.ba=this.W=!1;this.h=new vc}function vc(){this.i=null;this.g="";this.h=!1}var uc=45E3,wc={},xc={};n=tc.prototype;n.setTimeout=function(a){this.R=a};
function yc(a,b,c){a.L=1;a.v=zc(N(b));a.s=c;a.W=!0;Ac(a,null)}function Ac(a,b){a.F=Date.now();Bc(a);a.A=N(a.v);var c=a.A,d=a.$;Array.isArray(d)||(d=[String(d)]);Cc(c.h,"t",d);a.C=0;c=a.l.H;a.h=new vc;a.g=Dc(a.l,c?b:null,!a.s);0<a.P&&(a.M=new I(x(a.Ka,a,a.g),a.P));Wb(a.X,a.g,"readystatechange",a.ib);b=a.H?Ma(a.H):{};a.s?(a.u||(a.u="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.g.ga(a.A,a.u,a.s,b)):(a.u="GET",a.g.ga(a.A,a.u,null,b));fc(1);Zb(a.j,a.u,a.A,a.m,a.$,a.s)}
n.ib=function(a){a=a.target;var b=this.M;b&&3==O(a)?b.l():this.Ka(a)};
n.Ka=function(a){try{if(a==this.g)a:{var b=O(this.g),c=this.g.Fa(),d=this.g.da();if(!(3>b)&&(3!=b||Ua||this.g&&(this.h.h||this.g.ia()||Ec(this.g)))){this.J||4!=b||7==c||(8==c||0>=d?fc(3):fc(2));Fc(this);var e=this.g.da();this.O=e;b:if(Gc(this)){var f=Ec(this.g);a="";var k=f.length,l=4==O(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){P(this);Hc(this);var h="";break b}this.h.i=new v.TextDecoder}for(c=0;c<k;c++)this.h.h=!0,a+=this.h.i.decode(f[c],{stream:l&&c==k-1});f.splice(0,k);this.h.g+=
a;this.C=0;h=this.h.g}else h=this.g.ia();this.i=200==e;$b(this.j,this.u,this.A,this.m,this.$,b,e);if(this.i){if(this.ba&&!this.K){b:{if(this.g){var m,p=this.g;if((m=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Da(m)){var t=m;break b}}t=null}if(e=t)K(this.j,this.m,e,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ic(this,e);else{this.i=!1;this.o=3;M(12);P(this);Hc(this);break a}}this.W?(Jc(this,b,h),Ua&&this.i&&3==b&&(Wb(this.X,this.Z,"tick",this.hb),this.Z.start())):
(K(this.j,this.m,h,null),Ic(this,h));4==b&&P(this);this.i&&!this.J&&(4==b?Kc(this.l,this):(this.i=!1,Bc(this)))}else 400==e&&0<h.indexOf("Unknown SID")?(this.o=3,M(12)):(this.o=0,M(13)),P(this),Hc(this)}}}catch(Ga){}finally{}};function Gc(a){return a.g?"GET"==a.u&&2!=a.L&&a.l.Da:!1}
function Jc(a,b,c){for(var d=!0,e;!a.J&&a.C<c.length;)if(e=Lc(a,c),e==xc){4==b&&(a.o=4,M(14),d=!1);K(a.j,a.m,null,"[Incomplete Response]");break}else if(e==wc){a.o=4;M(15);K(a.j,a.m,c,"[Invalid Chunk]");d=!1;break}else K(a.j,a.m,e,null),Ic(a,e);Gc(a)&&e!=xc&&e!=wc&&(a.h.g="",a.C=0);4!=b||0!=c.length||a.h.h||(a.o=1,M(16),d=!1);a.i=a.i&&d;d?0<c.length&&!a.ca&&(a.ca=!0,b=a.l,b.g==a&&b.ba&&!b.M&&(b.h.info("Great, no buffering proxy detected. Bytes received: "+c.length),Nc(b),b.M=!0,M(11))):(K(a.j,a.m,
c,"[Invalid Chunked Response]"),P(a),Hc(a))}n.hb=function(){if(this.g){var a=O(this.g),b=this.g.ia();this.C<b.length&&(Fc(this),Jc(this,a,b),this.i&&4!=a&&Bc(this))}};function Lc(a,b){var c=a.C,d=b.indexOf("\n",c);if(-1==d)return xc;c=Number(b.substring(c,d));if(isNaN(c))return wc;d+=1;if(d+c>b.length)return xc;b=b.substr(d,c);a.C=d+c;return b}n.cancel=function(){this.J=!0;P(this)};function Bc(a){a.aa=Date.now()+a.R;Oc(a,a.R)}
function Oc(a,b){if(null!=a.B)throw Error("WatchDog timer not null");a.B=ic(x(a.gb,a),b)}function Fc(a){a.B&&(v.clearTimeout(a.B),a.B=null)}n.gb=function(){this.B=null;var a=Date.now();0<=a-this.aa?(bc(this.j,this.A),2!=this.L&&(fc(3),M(17)),P(this),this.o=2,Hc(this)):Oc(this,this.aa-a)};function Hc(a){0==a.l.G||a.J||Kc(a.l,a)}function P(a){Fc(a);var b=a.M;b&&"function"==typeof b.pa&&b.pa();a.M=null;Qb(a.Z);Xb(a.X);a.g&&(b=a.g,a.g=null,b.abort(),b.pa())}
function Ic(a,b){try{var c=a.l;if(0!=c.G&&(c.g==a||Pc(c.i,a)))if(c.J=a.O,!a.K&&Pc(c.i,a)&&3==c.G){try{var d=c.Ea.g.parse(b)}catch(Mc){d=null}if(Array.isArray(d)&&3==d.length){var e=d;if(0==e[0])a:{if(!c.u){if(c.g)if(c.g.F+3E3<a.F)Rc(c),Sc(c);else break a;Tc(c);M(18)}}else c.va=e[1],0<c.va-c.W&&37500>e[2]&&c.O&&0==c.A&&!c.v&&(c.v=ic(x(c.cb,c),6E3));if(1>=Uc(c.i)&&c.ma){try{c.ma()}catch(Mc){}c.ma=void 0}}else Q(c,11)}else if((a.K||c.g==a)&&Rc(c),!Da(b))for(e=c.Ea.g.parse(b),b=0;b<e.length;b++){var f=
e[b];c.W=f[0];f=f[1];if(2==c.G)if("c"==f[0]){c.K=f[1];c.na=f[2];var k=f[3];null!=k&&(c.oa=k,c.h.info("VER="+c.oa));var l=f[4];null!=l&&(c.Ba=l,c.h.info("SVER="+c.Ba));var h=f[5];null!=h&&"number"===typeof h&&0<h&&(d=1.5*h,c.L=d,c.h.info("backChannelRequestTimeoutMs_="+d));d=c;var m=a.g;if(m){var p=m.g?m.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(p){var t=d.i;!t.g&&(A(p,"spdy")||A(p,"quic")||A(p,"h2"))&&(t.j=t.l,t.g=new Set,t.h&&(Vc(t,t.h),t.h=null))}if(d.D){var Ga=m.g?m.g.getResponseHeader("X-HTTP-Session-Id"):
null;Ga&&(d.ua=Ga,R(d.F,d.D,Ga))}}c.G=3;c.j&&c.j.za();c.ba&&(c.P=Date.now()-a.F,c.h.info("Handshake RTT: "+c.P+"ms"));d=c;var Ja=a;d.qa=Wc(d,d.H?d.na:null,d.Z);if(Ja.K){Xc(d.i,Ja);var Ka=Ja,Qc=d.L;Qc&&Ka.setTimeout(Qc);Ka.B&&(Fc(Ka),Bc(Ka));d.g=Ja}else Yc(d);0<c.l.length&&Zc(c)}else"stop"!=f[0]&&"close"!=f[0]||Q(c,7);else 3==c.G&&("stop"==f[0]||"close"==f[0]?"stop"==f[0]?Q(c,7):$c(c):"noop"!=f[0]&&c.j&&c.j.ya(f),c.A=0)}fc(4)}catch(Mc){}};function ad(a){if(a.S&&"function"==typeof a.S)return a.S();if("string"===typeof a)return a.split("");if(oa(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 bd(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(oa(a)||"string"===typeof a)ya(a,b,void 0);else{if(a.U&&"function"==typeof a.U)var c=a.U();else if(a.S&&"function"==typeof a.S)c=void 0;else if(oa(a)||"string"===typeof a){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else for(e in c=[],d=0,a)c[d++]=e;d=ad(a);e=d.length;for(var f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)}};function S(a,b){this.h={};this.g=[];this.i=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 S)for(c=a.U(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])}n=S.prototype;n.S=function(){cd(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.h[this.g[b]]);return a};n.U=function(){cd(this);return this.g.concat()};
function cd(a){if(a.i!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];T(a.h,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.i!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],T(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}}n.get=function(a,b){return T(this.h,a)?this.h[a]:b};n.set=function(a,b){T(this.h,a)||(this.i++,this.g.push(a));this.h[a]=b};n.forEach=function(a,b){for(var c=this.U(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
function T(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var dd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ed(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?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function U(a,b){this.i=this.s=this.j="";this.m=null;this.o=this.l="";this.g=!1;if(a instanceof U){this.g=void 0!==b?b:a.g;fd(this,a.j);this.s=a.s;gd(this,a.i);hd(this,a.m);this.l=a.l;b=a.h;var c=new id;c.i=b.i;b.g&&(c.g=new S(b.g),c.h=b.h);jd(this,c);this.o=a.o}else a&&(c=String(a).match(dd))?(this.g=!!b,fd(this,c[1]||"",!0),this.s=kd(c[2]||""),gd(this,c[3]||"",!0),hd(this,c[4]),this.l=kd(c[5]||"",!0),jd(this,c[6]||"",!0),this.o=kd(c[7]||"")):(this.g=!!b,this.h=new id(null,this.g))}
U.prototype.toString=function(){var a=[],b=this.j;b&&a.push(ld(b,md,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.s)&&a.push(ld(b,md,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.m,null!=c&&a.push(":",String(c));if(c=this.l)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(ld(c,"/"==c.charAt(0)?nd:od,!0));(c=this.h.toString())&&a.push("?",c);(c=this.o)&&a.push("#",ld(c,pd));return a.join("")};function N(a){return new U(a)}
function fd(a,b,c){a.j=c?kd(b,!0):b;a.j&&(a.j=a.j.replace(/:$/,""))}function gd(a,b,c){a.i=c?kd(b,!0):b}function hd(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.m=b}else a.m=null}function jd(a,b,c){b instanceof id?(a.h=b,qd(a.h,a.g)):(c||(b=ld(b,rd)),a.h=new id(b,a.g))}function R(a,b,c){a.h.set(b,c)}function zc(a){R(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36));return a}
function sd(a){return a instanceof U?N(a):new U(a,void 0)}function td(a,b,c,d){var e=new U(null,void 0);a&&fd(e,a);b&&gd(e,b);c&&hd(e,c);d&&(e.l=d);return e}function kd(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function ld(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,ud),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function ud(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
var md=/[#\/\?@]/g,od=/[#\?:]/g,nd=/[#\?]/g,rd=/[#\?@]/g,pd=/#/g;function id(a,b){this.h=this.g=null;this.i=a||null;this.j=!!b}function V(a){a.g||(a.g=new S,a.h=0,a.i&&ed(a.i,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))}n=id.prototype;n.add=function(a,b){V(this);this.i=null;a=W(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};
function vd(a,b){V(a);b=W(a,b);T(a.g.h,b)&&(a.i=null,a.h-=a.g.get(b).length,a=a.g,T(a.h,b)&&(delete a.h[b],a.i--,a.g.length>2*a.i&&cd(a)))}function wd(a,b){V(a);b=W(a,b);return T(a.g.h,b)}n.forEach=function(a,b){V(this);this.g.forEach(function(c,d){ya(c,function(e){a.call(b,e,d,this)},this)},this)};n.U=function(){V(this);for(var a=this.g.S(),b=this.g.U(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
n.S=function(a){V(this);var b=[];if("string"===typeof a)wd(this,a)&&(b=Ba(b,this.g.get(W(this,a))));else{a=this.g.S();for(var c=0;c<a.length;c++)b=Ba(b,a[c])}return b};n.set=function(a,b){V(this);this.i=null;a=W(this,a);wd(this,a)&&(this.h-=this.g.get(a).length);this.g.set(a,[b]);this.h+=1;return this};n.get=function(a,b){if(!a)return b;a=this.S(a);return 0<a.length?String(a[0]):b};function Cc(a,b,c){vd(a,b);0<c.length&&(a.i=null,a.g.set(W(a,b),Ca(c)),a.h+=c.length)}
n.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var a=[],b=this.g.U(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.S(d);for(var f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+encodeURIComponent(String(d[f])));a.push(k)}}return this.i=a.join("&")};function W(a,b){b=String(b);a.j&&(b=b.toLowerCase());return b}function qd(a,b){b&&!a.j&&(V(a),a.i=null,a.g.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(vd(this,d),Cc(this,e,c))},a));a.j=b};function xd(a,b){this.h=a;this.g=b};function yd(a){this.l=a||zd;v.PerformanceNavigationTiming?(a=v.performance.getEntriesByType("navigation"),a=0<a.length&&("hq"==a[0].nextHopProtocol||"h2"==a[0].nextHopProtocol)):a=!!(v.g&&v.g.Ga&&v.g.Ga()&&v.g.Ga().ac);this.j=a?this.l:1;this.g=null;1<this.j&&(this.g=new Set);this.h=null;this.i=[]}var zd=10;function Ad(a){return a.h?!0:a.g?a.g.size>=a.j:!1}function Uc(a){return a.h?1:a.g?a.g.size:0}function Pc(a,b){return a.h?a.h==b:a.g?a.g.has(b):!1}function Vc(a,b){a.g?a.g.add(b):a.h=b}
function Xc(a,b){a.h&&a.h==b?a.h=null:a.g&&a.g.has(b)&&a.g.delete(b)}yd.prototype.cancel=function(){this.i=Bd(this);if(this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(var a=q(this.g.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.g.clear()}};function Bd(a){if(null!=a.h)return a.i.concat(a.h.D);if(null!=a.g&&0!==a.g.size){var b=a.i;a=q(a.g.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.D);return b}return Ca(a.i)};function Cd(){}Cd.prototype.stringify=function(a){return v.JSON.stringify(a,void 0)};Cd.prototype.parse=function(a){return v.JSON.parse(a,void 0)};function Dd(){this.g=new Cd}function Ed(a,b,c){var d=c||"";try{bd(a,function(e,f){var k=e;w(e)&&(k=Cb(e));b.push(d+f+"="+encodeURIComponent(k))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;}};function Fd(a,b){var c=new Yb;if(v.Image){var d=new Image;d.onload=ua(Gd,c,d,"TestLoadImage: loaded",!0,b);d.onerror=ua(Gd,c,d,"TestLoadImage: error",!1,b);d.onabort=ua(Gd,c,d,"TestLoadImage: abort",!1,b);d.ontimeout=ua(Gd,c,d,"TestLoadImage: timeout",!1,b);v.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)}function Gd(a,b,c,d,e){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,e(d)}catch(f){}};function Hd(a){this.l=a.bc||null;this.j=a.kb||!1}y(Hd,lc);Hd.prototype.g=function(){return new Id(this.l,this.j)};Hd.prototype.i=function(a){return function(){return a}}({});function Id(a,b){G.call(this);this.D=a;this.u=b;this.m=void 0;this.readyState=Jd;this.status=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.v=new Headers;this.h=null;this.C="GET";this.B="";this.g=!1;this.A=this.j=this.l=null}y(Id,G);var Jd=0;n=Id.prototype;
n.open=function(a,b){if(this.readyState!=Jd)throw this.abort(),Error("Error reopening a connection");this.C=a;this.B=b;this.readyState=1;Kd(this)};n.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var b={headers:this.v,method:this.C,credentials:this.m,cache:void 0};a&&(b.body=a);(this.D||v).fetch(new Request(this.B,b)).then(this.Xa.bind(this),this.ja.bind(this))};
n.abort=function(){this.response=this.responseText="";this.v=new Headers;this.status=0;this.j&&this.j.cancel("Request was aborted.");1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ld(this));this.readyState=Jd};
n.Xa=function(a){if(this.g&&(this.l=a,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=a.headers,this.readyState=2,Kd(this)),this.g&&(this.readyState=3,Kd(this),this.g)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.Va.bind(this),this.ja.bind(this));else if("undefined"!==typeof v.ReadableStream&&"body"in a){this.j=a.body.getReader();if(this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.A=new TextDecoder;Md(this)}else a.text().then(this.Wa.bind(this),this.ja.bind(this))};function Md(a){a.j.read().then(a.Ua.bind(a)).catch(a.ja.bind(a))}n.Ua=function(a){if(this.g){if(this.u&&a.value)this.response.push(a.value);else if(!this.u){var b=a.value?a.value:new Uint8Array(0);if(b=this.A.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Ld(this):Kd(this);3==this.readyState&&Md(this)}};
n.Wa=function(a){this.g&&(this.response=this.responseText=a,Ld(this))};n.Va=function(a){this.g&&(this.response=a,Ld(this))};n.ja=function(){this.g&&Ld(this)};function Ld(a){a.readyState=4;a.l=null;a.j=null;a.A=null;Kd(a)}n.setRequestHeader=function(a,b){this.v.append(a,b)};n.getResponseHeader=function(a){return this.h?this.h.get(a.toLowerCase())||"":""};
n.getAllResponseHeaders=function(){if(!this.h)return"";for(var a=[],b=this.h.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};function Kd(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(Id.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(a){this.m=a?"include":"same-origin"}});var Nd=v.JSON.parse;function X(a){G.call(this);this.headers=new S;this.u=a||null;this.h=!1;this.C=this.g=null;this.H="";this.m=0;this.j="";this.l=this.F=this.v=this.D=!1;this.B=0;this.A=null;this.K=Od;this.L=this.M=!1}y(X,G);var Od="",Pd=/^https?$/i,Qd=["POST","PUT"];n=X.prototype;
n.ga=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+a);b=b?b.toUpperCase():"GET";this.H=a;this.j="";this.m=0;this.D=!1;this.h=!0;this.g=this.u?this.u.g():rc.g();this.C=this.u?mc(this.u):mc(rc);this.g.onreadystatechange=x(this.Ha,this);try{this.F=!0,this.g.open(b,String(a),!0),this.F=!1}catch(f){Rd(this,f);return}a=c||"";var e=new S(this.headers);d&&bd(d,function(f,k){e.set(k,f)});d=za(e.U());c=v.FormData&&a instanceof v.FormData;
!(0<=xa(Qd,b))||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,k){this.g.setRequestHeader(k,f)},this);this.K&&(this.g.responseType=this.K);"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{Sd(this),0<this.B&&((this.L=Td(this.g))?(this.g.timeout=this.B,this.g.ontimeout=x(this.ra,this)):this.A=Rb(this.ra,this.B,this)),this.v=!0,this.g.send(a),this.v=!1}catch(f){Rd(this,f)}};
function Td(a){return C&&bb()&&"number"===typeof a.timeout&&void 0!==a.ontimeout}function Aa(a){return"content-type"==a.toLowerCase()}n.ra=function(){"undefined"!=typeof goog&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,H(this,"timeout"),this.abort(8))};function Rd(a,b){a.h=!1;a.g&&(a.l=!0,a.g.abort(),a.l=!1);a.j=b;a.m=5;Ud(a);Vd(a)}function Ud(a){a.D||(a.D=!0,H(a,"complete"),H(a,"error"))}
n.abort=function(a){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=a||7,H(this,"complete"),H(this,"abort"),Vd(this))};n.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Vd(this,!0));X.Y.N.call(this)};n.Ha=function(){this.s||(this.F||this.v||this.l?Wd(this):this.fb())};n.fb=function(){Wd(this)};
function Wd(a){if(a.h&&"undefined"!=typeof goog&&(!a.C[1]||4!=O(a)||2!=a.da()))if(a.v&&4==O(a))Rb(a.Ha,0,a);else if(H(a,"readystatechange"),4==O(a)){a.h=!1;try{var b=a.da();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=String(a.H).match(dd)[1]||null;if(!f&&v.self&&v.self.location){var k=v.self.location.protocol;f=k.substr(0,k.length-1)}e=!Pd.test(f?f.toLowerCase():"")}d=e}if(d)H(a,"complete"),H(a,
"success");else{a.m=6;try{var l=2<O(a)?a.g.statusText:""}catch(h){l=""}a.j=l+" ["+a.da()+"]";Ud(a)}}finally{Vd(a)}}}function Vd(a,b){if(a.g){Sd(a);var c=a.g,d=a.C[0]?na:null;a.g=null;a.C=null;b||H(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Sd(a){a.g&&a.L&&(a.g.ontimeout=null);a.A&&(v.clearTimeout(a.A),a.A=null)}function O(a){return a.g?a.g.readyState:0}n.da=function(){try{return 2<O(this)?this.g.status:-1}catch(a){return-1}};n.ia=function(){try{return this.g?this.g.responseText:""}catch(a){return""}};
n.Sa=function(a){if(this.g){var b=this.g.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Nd(b)}};function Ec(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.K){case Od:case "text":return a.g.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch(b){return null}}n.Fa=function(){return this.m};n.Na=function(){return"string"===typeof this.j?this.j:String(this.j)};function Xd(a){var b="";La(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b}function Yd(a,b,c){a:{for(d in c){var d=!1;break a}d=!0}d||(c=Xd(c),"string"===typeof a?(encodeURIComponent(String(b)),null!=c&&encodeURIComponent(String(c))):R(a,b,c))};function Zd(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b}
function $d(a){this.Ba=0;this.l=[];this.h=new Yb;this.na=this.qa=this.F=this.Z=this.g=this.ua=this.D=this.ca=this.o=this.R=this.s=null;this.ab=this.X=0;this.Za=Zd("failFast",!1,a);this.O=this.v=this.u=this.m=this.j=null;this.$=!0;this.J=this.va=this.W=-1;this.aa=this.A=this.C=0;this.Ra=Zd("baseRetryDelayMs",5E3,a);this.bb=Zd("retryDelaySeedMs",1E4,a);this.$a=Zd("forwardChannelMaxRetries",2,a);this.ta=Zd("forwardChannelRequestTimeoutMs",2E4,a);this.sa=a&&a.xmlHttpFactory||void 0;this.Da=a&&a.$b||!1;
this.L=void 0;this.H=a&&a.supportsCrossDomainXhr||!1;this.K="";this.i=new yd(a&&a.concurrentRequestLimit);this.Ea=new Dd;this.la=a&&a.fastHandshake||!1;this.Ta=a&&a.Yb||!1;a&&a.Ca&&this.h.Ca();a&&a.forceLongPolling&&(this.$=!1);this.ba=!this.la&&this.$&&a&&a.detectBufferingProxy||!1;this.ma=void 0;this.P=0;this.M=!1;this.B=null;this.Ya=!a||!1!==a.Zb}n=$d.prototype;n.oa=8;n.G=1;
function $c(a){ae(a);if(3==a.G){var b=a.X++,c=N(a.F);R(c,"SID",a.K);R(c,"RID",b);R(c,"TYPE","terminate");be(a,c);b=new tc(a,a.h,b,void 0);b.L=2;b.v=zc(N(c));c=!1;v.navigator&&v.navigator.sendBeacon&&(c=v.navigator.sendBeacon(b.v.toString(),""));!c&&v.Image&&((new Image).src=b.v,c=!0);c||(b.g=Dc(b.l,null),b.g.ga(b.v));b.F=Date.now();Bc(b)}ce(a)}n.jb=function(a){try{this.h.info("Origin Trials invoked: "+a)}catch(b){}};function Sc(a){a.g&&(Nc(a),a.g.cancel(),a.g=null)}
function ae(a){Sc(a);a.u&&(v.clearTimeout(a.u),a.u=null);Rc(a);a.i.cancel();a.m&&("number"===typeof a.m&&v.clearTimeout(a.m),a.m=null)}function de(a,b){a.l.push(new xd(a.ab++,b));3==a.G&&Zc(a)}function Zc(a){Ad(a.i)||a.m||(a.m=!0,Kb(a.Ja,a),a.C=0)}function ee(a,b){if(Uc(a.i)>=a.i.j-(a.m?1:0))return!1;if(a.m)return a.l=b.D.concat(a.l),!0;if(1==a.G||2==a.G||a.C>=(a.Za?0:a.$a))return!1;a.m=ic(x(a.Ja,a,b),fe(a,a.C));a.C++;return!0}
n.Ja=function(a){if(this.m)if(this.m=null,1==this.G){if(!a){this.X=Math.floor(1E5*Math.random());a=this.X++;var b=new tc(this,this.h,a,void 0),c=this.s;this.R&&(c?(c=Ma(c),Oa(c,this.R)):c=this.R);null===this.o&&(b.H=c);var d;if(this.la)a:{for(var e=d=0;e<this.l.length;e++){b:{var f=this.l[e];if("__data__"in f.g&&(f=f.g.__data__,"string"===typeof f)){f=f.length;break b}f=void 0}if(void 0===f)break;d+=f;if(4096<d){d=e;break a}if(4096===d||e===this.l.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=ge(this,
b,d);e=N(this.F);R(e,"RID",a);R(e,"CVER",22);this.D&&R(e,"X-HTTP-Session-Id",this.D);be(this,e);this.o&&c&&Yd(e,this.o,c);Vc(this.i,b);this.Ta&&R(e,"TYPE","init");this.la?(R(e,"$req",d),R(e,"SID","null"),b.ba=!0,yc(b,e,null)):yc(b,e,d);this.G=2}}else 3==this.G&&(a?he(this,a):0==this.l.length||Ad(this.i)||he(this))};
function he(a,b){var c;b?c=b.m:c=a.X++;var d=N(a.F);R(d,"SID",a.K);R(d,"RID",c);R(d,"AID",a.W);be(a,d);a.o&&a.s&&Yd(d,a.o,a.s);c=new tc(a,a.h,c,a.C+1);null===a.o&&(c.H=a.s);b&&(a.l=b.D.concat(a.l));b=ge(a,c,1E3);c.setTimeout(Math.round(.5*a.ta)+Math.round(.5*a.ta*Math.random()));Vc(a.i,c);yc(c,d,b)}function be(a,b){a.j&&bd({},function(c,d){R(b,d,c)})}
function ge(a,b,c){c=Math.min(a.l.length,c);var d=a.j?x(a.j.Qa,a.j,a):null;a:for(var e=a.l,f=-1;;){var k=["count="+c];-1==f?0<c?(f=e[0].h,k.push("ofs="+f)):f=0:k.push("ofs="+f);for(var l=!0,h=0;h<c;h++){var m=e[h].h,p=e[h].g;m-=f;if(0>m)f=Math.max(0,e[h].h-100),l=!1;else try{Ed(p,k,"req"+m+"_")}catch(t){d&&d(p)}}if(l){d=k.join("&");break a}}a=a.l.splice(0,c);b.D=a;return d}function Yc(a){a.g||a.u||(a.aa=1,Kb(a.Ia,a),a.A=0)}
function Tc(a){if(a.g||a.u||3<=a.A)return!1;a.aa++;a.u=ic(x(a.Ia,a),fe(a,a.A));a.A++;return!0}n.Ia=function(){this.u=null;ie(this);if(this.ba&&!(this.M||null==this.g||0>=this.P)){var a=2*this.P;this.h.info("BP detection timer enabled: "+a);this.B=ic(x(this.eb,this),a)}};n.eb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.O=!1,this.M=!0,M(10),Sc(this),ie(this))};
function Nc(a){null!=a.B&&(v.clearTimeout(a.B),a.B=null)}function ie(a){a.g=new tc(a,a.h,"rpc",a.aa);null===a.o&&(a.g.H=a.s);a.g.P=0;var b=N(a.qa);R(b,"RID","rpc");R(b,"SID",a.K);R(b,"CI",a.O?"0":"1");R(b,"AID",a.W);be(a,b);R(b,"TYPE","xmlhttp");a.o&&a.s&&Yd(b,a.o,a.s);a.L&&a.g.setTimeout(a.L);var c=a.g;a=a.na;c.L=1;c.v=zc(N(b));c.s=null;c.W=!0;Ac(c,a)}n.cb=function(){null!=this.v&&(this.v=null,Sc(this),Tc(this),M(19))};function Rc(a){null!=a.v&&(v.clearTimeout(a.v),a.v=null)}
function Kc(a,b){var c=null;if(a.g==b){Rc(a);Nc(a);a.g=null;var d=2}else if(Pc(a.i,b))c=b.D,Xc(a.i,b),d=1;else return;a.J=b.O;if(0!=a.G)if(b.i)if(1==d){c=b.s?b.s.length:0;b=Date.now()-b.F;var e=a.C;d=dc();H(d,new hc(d,c,b,e));Zc(a)}else Yc(a);else if(e=b.o,3==e||0==e&&0<a.J||!(1==d&&ee(a,b)||2==d&&Tc(a)))switch(c&&0<c.length&&(b=a.i,b.i=b.i.concat(c)),e){case 1:Q(a,5);break;case 4:Q(a,10);break;case 3:Q(a,6);break;default:Q(a,2)}}
function fe(a,b){var c=a.Ra+Math.floor(Math.random()*a.bb);a.j||(c*=2);return c*b}function Q(a,b){a.h.info("Error code "+b);if(2==b){var c=null;a.j&&(c=null);var d=x(a.lb,a);c||(c=new U("//www.google.com/images/cleardot.gif"),v.location&&"http"==v.location.protocol||fd(c,"https"),zc(c));Fd(c.toString(),d)}else M(2);a.G=0;a.j&&a.j.xa(b);ce(a);ae(a)}n.lb=function(a){a?(this.h.info("Successfully pinged google.com"),M(2)):(this.h.info("Failed to ping google.com"),M(1))};
function ce(a){a.G=0;a.J=-1;if(a.j){if(0!=Bd(a.i).length||0!=a.l.length)a.i.i.length=0,Ca(a.l),a.l.length=0;a.j.wa()}}function Wc(a,b,c){var d=sd(c);if(""!=d.i)b&&gd(d,b+"."+d.i),hd(d,d.m);else{var e=v.location;d=td(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.ca&&La(a.ca,function(f,k){R(d,k,f)});b=a.D;c=a.ua;b&&c&&R(d,b,c);R(d,"VER",a.oa);be(a,d);return d}
function Dc(a,b,c){if(b&&!a.H)throw Error("Can't create secondary domain capable XhrIo object.");b=c&&a.Da&&!a.sa?new X(new Hd({kb:!0})):new X(a.sa);b.M=a.H;return b}function je(){}n=je.prototype;n.za=function(){};n.ya=function(){};n.xa=function(){};n.wa=function(){};n.Qa=function(){};function ke(){if(C&&!(10<=Number(eb)))throw Error("Environmental error: no available transport.");}ke.prototype.g=function(a,b){return new Y(a,b)};
function Y(a,b){G.call(this);this.g=new $d(b);this.l=a;this.h=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"});this.g.s=a;a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?a["X-WebChannel-Content-Type"]=b.messageContentType:a={"X-WebChannel-Content-Type":b.messageContentType});b&&b.Aa&&(a?a["X-WebChannel-Client-Profile"]=b.Aa:a={"X-WebChannel-Client-Profile":b.Aa});this.g.R=
a;(a=b&&b.httpHeadersOverwriteParam)&&!Da(a)&&(this.g.o=a);this.A=b&&b.supportsCrossDomainXhr||!1;this.v=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!Da(b)&&(this.g.D=b,a=this.h,null!==a&&b in a&&(a=this.h,b in a&&delete a[b]));this.j=new Z(this)}y(Y,G);Y.prototype.m=function(){this.g.j=this.j;this.A&&(this.g.H=!0);var a=this.g,b=this.l,c=this.h||void 0;a.Ya&&(a.h.info("Origin Trials enabled."),Kb(x(a.jb,a,b)));M(0);a.Z=b;a.ca=c||{};a.O=a.$;a.F=Wc(a,null,a.Z);Zc(a)};Y.prototype.close=function(){$c(this.g)};
Y.prototype.u=function(a){if("string"===typeof a){var b={};b.__data__=a;de(this.g,b)}else this.v?(b={},b.__data__=Cb(a),de(this.g,b)):de(this.g,a)};Y.prototype.N=function(){this.g.j=null;delete this.j;$c(this.g);delete this.g;Y.Y.N.call(this)};function le(a){pc.call(this);var b=a.__sm__;if(b){a:{for(var c in b){a=c;break a}a=void 0}if(this.i=a)a=this.i,b=null!==b&&a in b?b[a]:void 0;this.data=b}else this.data=a}y(le,pc);function me(){qc.call(this);this.status=1}y(me,qc);function Z(a){this.g=a}
y(Z,je);Z.prototype.za=function(){H(this.g,"a")};Z.prototype.ya=function(a){H(this.g,new le(a))};Z.prototype.xa=function(a){H(this.g,new me(a))};Z.prototype.wa=function(){H(this.g,"b")};/*

 Copyright 2017 Google LLC

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
ke.prototype.createWebChannel=ke.prototype.g;Y.prototype.send=Y.prototype.u;Y.prototype.open=Y.prototype.m;Y.prototype.close=Y.prototype.close;jc.NO_ERROR=0;jc.TIMEOUT=8;jc.HTTP_ERROR=6;kc.COMPLETE="complete";nc.EventType=oc;oc.OPEN="a";oc.CLOSE="b";oc.ERROR="c";oc.MESSAGE="d";G.prototype.listen=G.prototype.O;X.prototype.listenOnce=X.prototype.P;X.prototype.getLastError=X.prototype.Na;X.prototype.getLastErrorCode=X.prototype.Fa;X.prototype.getStatus=X.prototype.da;X.prototype.getResponseJson=X.prototype.Sa;
X.prototype.getResponseText=X.prototype.ia;X.prototype.send=X.prototype.ga;module.exports.createWebChannelTransport=function(){return new ke};module.exports.getStatEventTarget=function(){return dc()};module.exports.ErrorCode=jc;module.exports.EventType=kc;module.exports.Event=L;module.exports.Stat={tb:0,wb:1,xb:2,Qb:3,Vb:4,Sb:5,Tb:6,Rb:7,Pb:8,Ub:9,PROXY:10,NOPROXY:11,Nb:12,Jb:13,Kb:14,Ib:15,Lb:16,Mb:17,pb:18,ob:19,qb:20};module.exports.FetchXmlHttpFactory=Hd;module.exports.WebChannel=nc;
module.exports.XhrIo=X;}).apply(typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});

//# sourceMappingURL=index.js.map
