UNPKG

firebase

Version:

Firebase JavaScript library for web and Node.js

1 lines • 280 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app-compat"),require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/app"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).firebase,t.firebase.INTERNAL.modularAPIs)}(this,function(ff,gf){"use strict";try{!function(){function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=t(ff),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};function a(t,e){for(var n=0,r=e.length,s=t.length;n<r;n++,s++)t[s]=e[n];return t}function n(t){for(var e=[],n=0,r=0;r<t.length;r++){var s=t.charCodeAt(r);s<128?e[n++]=s:(s<2048?e[n++]=s>>6|192:(55296==(64512&s)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++r)),e[n++]=s>>18|240,e[n++]=s>>12&63|128):e[n++]=s>>12|224,e[n++]=s>>6&63|128),e[n++]=63&s|128)}return e}var s={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],s=0;s<t.length;s+=3){var i=t[s],o=s+1<t.length,a=o?t[s+1]:0,h=s+2<t.length,u=h?t[s+2]:0,c=(15&a)<<2|u>>6,u=63&u;h||(u=64,o||(c=64)),r.push(n[i>>2],n[(3&i)<<4|a>>4],n[c],n[u])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(n(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var s,i,o,a=t[n++];a<128?e[r++]=String.fromCharCode(a):191<a&&a<224?(i=t[n++],e[r++]=String.fromCharCode((31&a)<<6|63&i)):239<a&&a<365?(s=((7&a)<<18|(63&(i=t[n++]))<<12|(63&(o=t[n++]))<<6|63&t[n++])-65536,e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))):(i=t[n++],o=t[n++],e[r++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&o))}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],s=0;s<t.length;){var i=n[t.charAt(s++)],o=s<t.length?n[t.charAt(s)]:0,a=++s<t.length?n[t.charAt(s)]:64,h=++s<t.length?n[t.charAt(s)]:64;if(++s,null==i||null==o||null==a||null==h)throw Error();r.push(i<<2|o>>4),64!==a&&(r.push(o<<4&240|a>>2),64!==h&&r.push(a<<6&192|h))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),(this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t)>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},h=function(t){return function(t){t=n(t);return s.encodeByteArray(t,!0)}(t).replace(/\./g,"")};function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function i(){return!function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return}}()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var u,c="FirebaseError",l=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(f,u=Error),f);function f(t,e,n){e=u.call(this,e)||this;return e.code=t,e.customData=n,e.name=c,Object.setPrototypeOf(e,f.prototype),Error.captureStackTrace&&Error.captureStackTrace(e,g.prototype.create),e}var g=(m.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,s=e[0]||{},i=this.service+"/"+t,t=this.errors[t],t=t?(r=s,t.replace(p,function(t,e){var n=r[e];return null!=n?String(n):"<"+e+"?>"})):"Error",t=this.serviceName+": "+t+" ("+i+").";return new l(i,t,s)},m);function m(t,e,n){this.service=t,this.serviceName=e,this.errors=n}var p=/\{\$([^}]+)}/g;function y(t){return t&&t._delegate?t._delegate:t}var w,v=(b.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},b.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},b.prototype.setServiceProps=function(t){return this.serviceProps=t,this},b.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},b);function b(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}(C=w=w||{})[C.DEBUG=0]="DEBUG",C[C.VERBOSE=1]="VERBOSE",C[C.INFO=2]="INFO",C[C.WARN=3]="WARN",C[C.ERROR=4]="ERROR",C[C.SILENT=5]="SILENT";function T(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){var s=(new Date).toISOString(),i=_[e];if(!i)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[i].apply(console,a(["["+s+"] "+t.name+":"],n))}}var E={debug:w.DEBUG,verbose:w.VERBOSE,info:w.INFO,warn:w.WARN,error:w.ERROR,silent:w.SILENT},I=w.INFO,_=((Ee={})[w.DEBUG]="log",Ee[w.VERBOSE]="log",Ee[w.INFO]="info",Ee[w.WARN]="warn",Ee[w.ERROR]="error",Ee),S=(Object.defineProperty(N.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in w))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),N.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?E[t]:t},Object.defineProperty(N.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),N.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,a([this,w.DEBUG],t)),this._logHandler.apply(this,a([this,w.DEBUG],t))},N.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,a([this,w.VERBOSE],t)),this._logHandler.apply(this,a([this,w.VERBOSE],t))},N.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,a([this,w.INFO],t)),this._logHandler.apply(this,a([this,w.INFO],t))},N.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,a([this,w.WARN],t)),this._logHandler.apply(this,a([this,w.WARN],t))},N.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,a([this,w.ERROR],t)),this._logHandler.apply(this,a([this,w.ERROR],t))},N);function N(t){this.name=t,this._logLevel=I,this._logHandler=T,this._userLogHandler=null}var A=function(t,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function D(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var C,x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k={},R=x||self;function L(){}function O(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function M(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var P="closure_uid_"+(1e9*Math.random()>>>0),F=0;function V(t,e,n){return t.call.apply(t.bind,arguments)}function U(e,n,t){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,r),e.apply(n,t)}}return function(){return e.apply(n,arguments)}}function q(t,e,n){return(q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?V:U).apply(null,arguments)}function B(e){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function j(t,i){function e(){}e.prototype=i.prototype,t.Z=i.prototype,t.prototype=new e,(t.prototype.constructor=t).Vb=function(t,e,n){for(var r=Array(arguments.length-2),s=2;s<arguments.length;s++)r[s-2]=arguments[s];return i.prototype[e].apply(t,r)}}function K(){this.s=this.s,this.o=this.o}var $={};K.prototype.s=!1,K.prototype.na=function(){var t;!this.s&&(this.s=!0,this.M(),0)&&(t=this,t=Object.prototype.hasOwnProperty.call(t,P)&&t[P]||(t[P]=++F),delete $[t])},K.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var G=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},z=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,s="string"==typeof t?t.split(""):t,i=0;i<r;i++)i in s&&e.call(n,s[i],i,t)};function H(){return Array.prototype.concat.apply([],arguments)}function Q(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function W(t){return/^[\s\xa0]*$/.test(t)}var Y,J=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function X(t,e){return-1!=t.indexOf(e)}function Z(t,e){return t<e?-1:e<t?1:0}t:{var tt=R.navigator;if(tt){tt=tt.userAgent;if(tt){Y=tt;break t}}Y=""}function et(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function nt(t){var e,n={};for(e in t)n[e]=t[e];return n}var rt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function st(t){for(var e,n,r=1;r<arguments.length;r++){for(e in n=arguments[r])t[e]=n[e];for(var s=0;s<rt.length;s++)e=rt[s],Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}}function it(t){return it[" "](t),t}it[" "]=L;var ot,at=X(Y,"Opera"),ht=X(Y,"Trident")||X(Y,"MSIE"),ut=X(Y,"Edge"),ct=ut||ht,lt=X(Y,"Gecko")&&!(X(Y.toLowerCase(),"webkit")&&!X(Y,"Edge"))&&!(X(Y,"Trident")||X(Y,"MSIE"))&&!X(Y,"Edge"),dt=X(Y.toLowerCase(),"webkit")&&!X(Y,"Edge");function ft(){var t=R.document;return t?t.documentMode:void 0}t:{var gt="",mt=(mt=Y,lt?/rv:([^\);]+)(\)|;)/.exec(mt):ut?/Edge\/([\d\.]+)/.exec(mt):ht?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(mt):dt?/WebKit\/(\S+)/.exec(mt):at?/(?:Version)[ \/]?(\S+)/.exec(mt):void 0);if(mt&&(gt=mt?mt[1]:""),ht){mt=ft();if(null!=mt&&mt>parseFloat(gt)){ot=String(mt);break t}}ot=gt}var pt={};function yt(){return t=function(){for(var t=0,e=J(String(ot)).split("."),n=J("9").split("."),r=Math.max(e.length,n.length),s=0;0==t&&s<r;s++)for(var i=e[s]||"",o=n[s]||"";i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],(0!=i[0].length||0!=o[0].length)&&(t=Z(0==i[1].length?0:parseInt(i[1],10),0==o[1].length?0:parseInt(o[1],10))||Z(0==i[2].length,0==o[2].length)||Z(i[2],o[2]),i=i[3],o=o[3],0==t););return 0<=t},e=pt,Object.prototype.hasOwnProperty.call(e,9)?e[9]:e[9]=t(9);var t,e}var wt=R.document&&ht&&(ft()||parseInt(ot,10))||void 0,vt=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{R.addEventListener("test",L,e),R.removeEventListener("test",L,e)}catch(t){}return t}();function bt(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function Tt(t,e){if(bt.call(this,t?t.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,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(lt){t:{try{it(e.nodeName);var s=!0;break t}catch(t){}s=!1}s||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Et[t.pointerType]||"",this.state=t.state,(this.i=t).defaultPrevented&&Tt.Z.h.call(this)}}bt.prototype.h=function(){this.defaultPrevented=!0},j(Tt,bt);var Et={2:"touch",3:"pen",4:"mouse"};Tt.prototype.h=function(){Tt.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var It="closure_listenable_"+(1e6*Math.random()|0),_t=0;function St(t,e,n,r,s){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ia=s,this.key=++_t,this.ca=this.fa=!1}function Nt(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function At(t){this.src=t,this.g={},this.h=0}function Dt(t,e){var n,r,s,i=e.type;i in t.g&&(n=t.g[i],(s=0<=(r=G(n,e)))&&Array.prototype.splice.call(n,r,1),s&&(Nt(e),0==t.g[i].length&&(delete t.g[i],t.h--)))}function Ct(t,e,n,r){for(var s=0;s<t.length;++s){var i=t[s];if(!i.ca&&i.listener==e&&i.capture==!!n&&i.ia==r)return s}return-1}At.prototype.add=function(t,e,n,r,s){var i=t.toString();(t=this.g[i])||(t=this.g[i]=[],this.h++);var o=Ct(t,e,r,s);return-1<o?(e=t[o],n||(e.fa=!1)):((e=new St(e,this.src,i,!!r,s)).fa=n,t.push(e)),e};var xt="closure_lm_"+(1e6*Math.random()|0),kt={};function Rt(t,e,n,r,s){if(r&&r.once)return function t(e,n,r,s,i){if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],r,s,i);return null}r=Ut(r);return e&&e[It]?e.O(n,r,M(s)?!!s.capture:!!s,i):Lt(e,n,r,!0,s,i)}(t,e,n,r,s);if(Array.isArray(e)){for(var i=0;i<e.length;i++)Rt(t,e[i],n,r,s);return null}return n=Ut(n),t&&t[It]?t.N(e,n,M(r)?!!r.capture:!!r,s):Lt(t,e,n,!1,r,s)}function Lt(t,e,n,r,s,i){if(!e)throw Error("Invalid event type");var o,a=M(s)?!!s.capture:!!s,h=Ft(t);if(h||(t[xt]=h=new At(t)),(n=h.add(e,n,r,a,i)).proxy)return n;if(o=Pt,(n.proxy=r=function t(e){return o.call(t.src,t.listener,e)}).src=t,r.listener=n,t.addEventListener)void 0===(s=!vt?a:s)&&(s=!1),t.addEventListener(e.toString(),r,s);else if(t.attachEvent)t.attachEvent(Mt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function Ot(t){var e,n,r;"number"!=typeof t&&t&&!t.ca&&((e=t.src)&&e[It]?Dt(e.i,t):(n=t.type,r=t.proxy,e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Mt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Ft(e))?(Dt(n,t),0==n.h&&(n.src=null,e[xt]=null)):Nt(t)))}function Mt(t){return t in kt?kt[t]:kt[t]="on"+t}function Pt(t,e){var n,r;return t=!!t.ca||(e=new Tt(e,this),n=t.listener,r=t.ia||t.src,t.fa&&Ot(t),n.call(r,e))}function Ft(t){return(t=t[xt])instanceof At?t:null}var Vt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ut(e){return"function"==typeof e?e:(e[Vt]||(e[Vt]=function(t){return e.handleEvent(t)}),e[Vt])}function qt(){K.call(this),this.i=new At(this),(this.P=this).I=null}function Bt(t,e){var n,r=t.I;if(r)for(n=[];r;r=r.I)n.push(r);if(t=t.P,r=e.type||e,"string"==typeof e?e=new bt(e,t):e instanceof bt?e.target=e.target||t:(o=e,st(e=new bt(r,t),o)),o=!0,n)for(var s=n.length-1;0<=s;s--)var i=e.g=n[s],o=jt(i,r,!0,e)&&o;if(o=jt(i=e.g=t,r,!0,e)&&o,o=jt(i,r,!1,e)&&o,n)for(s=0;s<n.length;s++)o=jt(i=e.g=n[s],r,!1,e)&&o}function jt(t,e,n,r){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var s=!0,i=0;i<e.length;++i){var o,a,h=e[i];h&&!h.ca&&h.capture==n&&(o=h.listener,a=h.ia||h.src,h.fa&&Dt(t.i,h),s=!1!==o.call(a,r)&&s)}return s&&!r.defaultPrevented}j(qt,K),qt.prototype[It]=!0,qt.prototype.removeEventListener=function(t,e,n,r){!function t(e,n,r,s,i){if(Array.isArray(n))for(var o=0;o<n.length;o++)t(e,n[o],r,s,i);else s=M(s)?!!s.capture:!!s,r=Ut(r),e&&e[It]?(e=e.i,(n=String(n).toString())in e.g&&-1<(r=Ct(o=e.g[n],r,s,i))&&(Nt(o[r]),Array.prototype.splice.call(o,r,1),0==o.length&&(delete e.g[n],e.h--))):(e=e&&Ft(e))&&(n=e.g[n.toString()],(r=(e=-1)<(e=n?Ct(n,r,s,i):e)?n[e]:null)&&Ot(r))}(this,t,e,n,r)},qt.prototype.M=function(){if(qt.Z.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],r=0;r<n.length;r++)Nt(n[r]);delete e.g[t],e.h--}}this.I=null},qt.prototype.N=function(t,e,n,r){return this.i.add(String(t),e,!1,n,r)},qt.prototype.O=function(t,e,n,r){return this.i.add(String(t),e,!0,n,r)};var Kt=R.JSON.stringify;var $t=(Gt.prototype.add=function(t,e){var n=zt.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},Gt);function Gt(){this.h=this.g=null}var zt=(Ht.prototype.get=function(){var t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t},new Ht(function(){return new Wt},function(t){return t.reset()}));function Ht(t,e){this.i=t,this.j=e,this.h=0,this.g=null}var Qt,Wt=(Yt.prototype.set=function(t,e){this.h=t,this.g=e,this.next=null},Yt.prototype.reset=function(){this.next=this.g=this.h=null},Yt);function Yt(){this.next=this.g=this.h=null}function Jt(t,e){var n;Qt||(n=R.Promise.resolve(void 0),Qt=function(){n.then(te)}),Xt||(Qt(),Xt=!0),Zt.add(t,e)}var Xt=!1,Zt=new $t;function te(){for(var t;e=t=void 0,e=null,(t=Zt).g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(t){!function(t){R.setTimeout(function(){throw t},0)}(t)}var e=zt;e.j(t),e.h<100&&(e.h++,t.next=e.g,e.g=t)}Xt=!1}function ee(t,e){qt.call(this),this.h=t||1,this.g=e||R,this.j=q(this.kb,this),this.l=Date.now()}function ne(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function re(t,e,n){if("function"==typeof t)n&&(t=q(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=q(t.handleEvent,t)}return 2147483647<Number(e)?-1:R.setTimeout(t,e||0)}j(ee,qt),(C=ee.prototype).da=!1,C.S=null,C.kb=function(){var t;this.da&&(0<(t=Date.now()-this.l)&&t<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-t):(this.S&&(this.g.clearTimeout(this.S),this.S=null),Bt(this,"tick"),this.da&&(ne(this),this.start())))},C.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},C.M=function(){ee.Z.M.call(this),ne(this),delete this.g};var se,ie=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(oe,se=K),oe.prototype.l=function(t){this.h=arguments,this.g?this.i=!0:function t(e){e.g=re(function(){e.g=null,e.i&&(e.i=!1,t(e))},e.j);var n=e.h;e.h=null,e.m.apply(null,n)}(this)},oe.prototype.M=function(){se.prototype.M.call(this),this.g&&(R.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},oe);function oe(t,e){var n=se.call(this)||this;return n.m=t,n.j=e,n.h=null,n.i=!1,n.g=null,n}function ae(t){K.call(this),this.h=t,this.g={}}j(ae,K);var he=[];function ue(t,e,n,r){Array.isArray(n)||(n&&(he[0]=n.toString()),n=he);for(var s=0;s<n.length;s++){var i=Rt(e,n[s],r||t.handleEvent,!1,t.h||t);if(!i)break;t.g[i.key]=i}}function ce(t){et(t.g,function(t,e){this.g.hasOwnProperty(e)&&Ot(t)},t),t.g={}}function le(){this.g=!0}function de(t,e,n,r){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(r.length<2)){var s=r[1];if(Array.isArray(s)&&!(s.length<1)){var i=s[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var o=1;o<s.length;o++)s[o]=""}}}return Kt(n)}catch(t){return e}}(t,n)+(r?" "+r:"")})}ae.prototype.M=function(){ae.Z.M.call(this),ce(this)},ae.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},le.prototype.Aa=function(){this.g=!1},le.prototype.info=function(){};var fe={},ge=null;function me(){return ge=ge||new qt}function pe(t){bt.call(this,fe.Ma,t)}function ye(){var t=me();Bt(t,new pe(t))}function we(t,e){bt.call(this,fe.STAT_EVENT,t),this.stat=e}function ve(t){var e=me();Bt(e,new we(e,t))}function be(t,e){bt.call(this,fe.Na,t),this.size=e}function Te(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return R.setTimeout(function(){t()},e)}fe.Ma="serverreachability",j(pe,bt),fe.STAT_EVENT="statevent",j(we,bt),fe.Na="timingevent",j(be,bt);var Ee={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},x={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function Ie(){}function _e(t){return t.h||(t.h=t.i())}function Se(){}Ie.prototype.h=null;$t={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function Ne(){bt.call(this,"d")}function Ae(){bt.call(this,"c")}function De(){}function Ce(t,e,n,r){this.l=t,this.j=e,this.m=n,this.X=r||1,this.V=new ae(this),this.P=Re,this.W=new ee(t=ct?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new xe}function xe(){this.i=null,this.g="",this.h=!1}j(Ne,bt),j(Ae,bt),j(De,Ie),De.prototype.g=function(){return new XMLHttpRequest},De.prototype.i=function(){return{}};var ke=new De,Re=45e3,Le={},Oe={};function Me(t,e,n){t.K=1,t.v=rn(Je(e)),t.s=n,t.U=!0,Pe(t,null)}function Pe(t,e){t.F=Date.now(),Ue(t),t.A=Je(t.v);var o,a,h,u,c,l,n=t.A,r=t.X;Array.isArray(r)||(r=[String(r)]),yn(n.h,"t",r),t.C=0,n=t.l.H,t.h=new xe,t.g=wr(t.l,n?e:null,!t.s),0<t.O&&(t.L=new ie(q(t.Ia,t,t.g),t.O)),ue(t.V,t.g,"readystatechange",t.gb),e=t.H?nt(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.s,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),ye(),o=t.j,a=t.u,h=t.A,u=t.m,c=t.X,l=t.s,o.info(function(){if(o.g)if(l)for(var t="",e=l.split("&"),n=0;n<e.length;n++){var r,s,i=e[n].split("=");1<i.length&&(r=i[0],i=i[1],t=2<=(s=r.split("_")).length&&"type"==s[1]?t+(r+"=")+i+"&":t+(r+"=redacted&"))}else t=null;else t=l;return"XMLHTTP REQ ("+u+") [attempt "+c+"]: "+a+"\n"+h+"\n"+t})}function Fe(t){return t.g&&("GET"==t.u&&2!=t.K&&t.l.Ba)}function Ve(t,e,n){for(var r,s,i,o,a,h=!0;!t.I&&t.C<n.length;){if(i=n,a=o=void 0,o=(s=t).C,(r=-1==(a=i.indexOf("\n",o))?Oe:(o=Number(i.substring(o,a)),isNaN(o)?Le:(a+=1)+o>i.length?Oe:(i=i.substr(a,o),s.C=a+o,i)))==Oe){4==e&&(t.o=4,ve(14),h=!1),de(t.j,t.m,null,"[Incomplete Response]");break}if(r==Le){t.o=4,ve(15),de(t.j,t.m,n,"[Invalid Chunk]"),h=!1;break}de(t.j,t.m,r,null),$e(t,r)}Fe(t)&&r!=Oe&&r!=Le&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,ve(16),h=!1),t.i=t.i&&h,h?0<n.length&&!t.aa&&(t.aa=!0,(e=t.l).g==t&&e.$&&!e.L&&(e.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),cr(e),e.L=!0,ve(11))):(de(t.j,t.m,n,"[Invalid Chunked Response]"),Ke(t),je(t))}function Ue(t){t.Y=Date.now()+t.P,qe(t,t.P)}function qe(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=Te(q(t.eb,t),e)}function Be(t){t.B&&(R.clearTimeout(t.B),t.B=null)}function je(t){0==t.l.G||t.I||fr(t.l,t)}function Ke(t){Be(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,ne(t.W),ce(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function $e(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||Sn(n.i,t)))if(n.I=t.N,!t.J&&Sn(n.i,t)&&3==n.G){try{var r=n.Ca.g.parse(e)}catch(m){r=null}if(Array.isArray(r)&&3==r.length){var s=r;if(0==s[0]){t:if(!n.u){if(n.g){if(!(n.g.F+3e3<t.F))break t;dr(n),er(n)}ur(n),ve(18)}}else n.ta=s[1],0<n.ta-n.U&&s[2]<37500&&n.N&&0==n.A&&!n.v&&(n.v=Te(q(n.ab,n),6e3));if(_n(n.i)<=1&&n.ka){try{n.ka()}catch(m){}n.ka=void 0}}else mr(n,11)}else if(!t.J&&n.g!=t||dr(n),!W(e))for(s=n.Ca.g.parse(e),e=0;e<s.length;e++){var i,o,a,h,u,c,l,d,f,g,m=s[e];n.U=m[0],m=m[1],2==n.G?"c"==m[0]?(n.J=m[1],n.la=m[2],null!=(i=m[3])&&(n.ma=i,n.h.info("VER="+n.ma)),null!=(o=m[4])&&(n.za=o,n.h.info("SVER="+n.za)),null!=(a=m[5])&&"number"==typeof a&&0<a&&(r=1.5*a,n.K=r,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n,(h=t.g)&&(!(u=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null)||!(c=r.i).g&&(X(u,"spdy")||X(u,"quic")||X(u,"h2"))&&(c.j=c.l,c.g=new Set,c.h&&(Nn(c,c.h),c.h=null)),!r.D||(l=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null)&&(r.sa=l,nn(r.F,r.D,l))),n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms")),d=t,(r=n).oa=yr(r,r.H?r.la:null,r.W),d.J?(An(r.i,d),f=d,(g=r.K)&&f.setTimeout(g),f.B&&(Be(f),Ue(f)),r.g=d):hr(r),0<n.l.length&&sr(n)):"stop"!=m[0]&&"close"!=m[0]||mr(n,7):3==n.G&&("stop"==m[0]||"close"==m[0]?"stop"==m[0]?mr(n,7):tr(n):"noop"!=m[0]&&n.j&&n.j.wa(m),n.A=0)}ye()}catch(m){}}function Ge(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(O(t)||"string"==typeof t)z(t,e,void 0);else{if(t.T&&"function"==typeof t.T)var n=t.T();else if(t.R&&"function"==typeof t.R)n=void 0;else if(O(t)||"string"==typeof t)for(var n=[],r=t.length,s=0;s<r;s++)n.push(s);else for(s in n=[],r=0,t)n[r++]=s;for(var s=(r=function(t){if(t.R&&"function"==typeof t.R)return t.R();if("string"==typeof t)return t.split("");if(O(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length,i=0;i<s;i++)e.call(void 0,r[i],n&&n[i],t)}}function ze(t,e){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof ze)for(n=t.T(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function He(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var r=t.g[e];Qe(t.h,r)&&(t.g[n++]=r),e++}t.g.length=n}if(t.i!=t.g.length){for(var s={},n=e=0;e<t.g.length;)Qe(s,r=t.g[e])||(s[t.g[n++]=r]=1),e++;t.g.length=n}}function Qe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(C=Ce.prototype).setTimeout=function(t){this.P=t},C.gb=function(t){t=t.target;var e=this.L;e&&3==Wn(t)?e.l():this.Ia(t)},C.Ia=function(t){try{if(t==this.g)t:{var e=Wn(this.g),n=this.g.Da();this.g.ba();if(!(e<3)&&(3!=e||ct||this.g&&(this.h.h||this.g.ga()||Yn(this.g)))){this.I||4!=e||7==n||ye(),Be(this);var r=this.g.ba();this.N=r;e:if(Fe(this)){var s=Yn(this.g);t="";var i=s.length,o=4==Wn(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){Ke(this),je(this);var a="";break e}this.h.i=new R.TextDecoder}for(n=0;n<i;n++)this.h.h=!0,t+=this.h.i.decode(s[n],{stream:o&&n==i-1});s.splice(0,i),this.h.g+=t,this.C=0,a=this.h.g}else a=this.g.ga();if(this.i=200==r,l=this.j,d=this.u,f=this.A,g=this.m,m=this.X,p=e,y=r,l.info(function(){return"XMLHTTP RESP ("+g+") [ attempt "+m+"]: "+d+"\n"+f+"\n"+p+" "+y}),this.i){if(this.$&&!this.J){e:{if(this.g){var h,u=this.g;if((h=u.g?u.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!W(h)){var c=h;break e}}c=null}if(!(r=c)){this.i=!1,this.o=3,ve(12),Ke(this),je(this);break t}de(this.j,this.m,r,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,$e(this,r)}this.U?(Ve(this,e,a),ct&&this.i&&3==e&&(ue(this.V,this.W,"tick",this.fb),this.W.start())):(de(this.j,this.m,a,null),$e(this,a)),4==e&&Ke(this),this.i&&!this.I&&(4==e?fr(this.l,this):(this.i=!1,Ue(this)))}else 400==r&&0<a.indexOf("Unknown SID")?(this.o=3,ve(12)):(this.o=0,ve(13)),Ke(this),je(this)}}}catch(e){}var l,d,f,g,m,p,y},C.fb=function(){var t,e;this.g&&(t=Wn(this.g),e=this.g.ga(),this.C<e.length&&(Be(this),Ve(this,t,e),this.i&&4!=t&&Ue(this)))},C.cancel=function(){this.I=!0,Ke(this)},C.eb=function(){this.B=null;var t,e,n=Date.now();0<=n-this.Y?(t=this.j,e=this.A,t.info(function(){return"TIMEOUT: "+e}),2!=this.K&&(ye(),ve(17)),Ke(this),this.o=2,je(this)):qe(this,this.Y-n)},(C=ze.prototype).R=function(){He(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},C.T=function(){return He(this),this.g.concat()},C.get=function(t,e){return Qe(this.h,t)?this.h[t]:e},C.set=function(t,e){Qe(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},C.forEach=function(t,e){for(var n=this.T(),r=0;r<n.length;r++){var s=n[r],i=this.get(s);t.call(e,i,s,this)}};var We=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ye(t,e){var n;this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof Ye?(this.g=void 0!==e?e:t.g,Xe(this,t.j),this.s=t.s,Ze(this,t.i),tn(this,t.m),this.l=t.l,e=t.h,(n=new fn).i=e.i,e.g&&(n.g=new ze(e.g),n.h=e.h),en(this,n),this.o=t.o):t&&(n=String(t).match(We))?(this.g=!!e,Xe(this,n[1]||"",!0),this.s=sn(n[2]||""),Ze(this,n[3]||"",!0),tn(this,n[4]),this.l=sn(n[5]||"",!0),en(this,n[6]||"",!0),this.o=sn(n[7]||"")):(this.g=!!e,this.h=new fn(null,this.g))}function Je(t){return new Ye(t)}function Xe(t,e,n){t.j=n?sn(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function Ze(t,e,n){t.i=n?sn(e,!0):e}function tn(t,e){if(e){if(e=Number(e),isNaN(e)||e<0)throw Error("Bad port number "+e);t.m=e}else t.m=null}function en(t,e,n){var r,s;e instanceof fn?(t.h=e,r=t.h,(s=t.g)&&!r.j&&(gn(r),r.i=null,r.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(mn(this,e),yn(this,n,t))},r)),r.j=s):(n||(e=on(e,ln)),t.h=new fn(e,t.g))}function nn(t,e,n){t.h.set(e,n)}function rn(t){return nn(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function sn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function on(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,an),t=n?t.replace(/%25([0-9a-fA-F]{2})/g,"%$1"):t):null}function an(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ye.prototype.toString=function(){var t=[],e=this.j;e&&t.push(on(e,hn,!0),":");var n=this.i;return!n&&"file"!=e||(t.push("//"),(e=this.s)&&t.push(on(e,hn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&t.push("/"),t.push(on(n,"/"==n.charAt(0)?cn:un,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",on(n,dn)),t.join("")};var hn=/[#\/\?@]/g,un=/[#\?:]/g,cn=/[#\?]/g,ln=/[#\?@]/g,dn=/#/g;function fn(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function gn(n){n.g||(n.g=new ze,n.h=0,n.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r,s=t[n].indexOf("="),i=null;0<=s?(r=t[n].substring(0,s),i=t[n].substring(s+1)):r=t[n],e(r,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(n.i,function(t,e){n.add(decodeURIComponent(t.replace(/\+/g," ")),e)}))}function mn(t,e){gn(t),e=wn(t,e),Qe(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,Qe((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&He(t)))}function pn(t,e){return gn(t),e=wn(t,e),Qe(t.g.h,e)}function yn(t,e,n){mn(t,e),0<n.length&&(t.i=null,t.g.set(wn(t,e),Q(n)),t.h+=n.length)}function wn(t,e){return e=String(e),e=t.j?e.toLowerCase():e}(C=fn.prototype).add=function(t,e){gn(this),this.i=null,t=wn(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},C.forEach=function(n,r){gn(this),this.g.forEach(function(t,e){z(t,function(t){n.call(r,t,e,this)},this)},this)},C.T=function(){gn(this);for(var t=this.g.R(),e=this.g.T(),n=[],r=0;r<e.length;r++)for(var s=t[r],i=0;i<s.length;i++)n.push(e[r]);return n},C.R=function(t){gn(this);var e=[];if("string"==typeof t)pn(this,t)&&(e=H(e,this.g.get(wn(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=H(e,t[n])}return e},C.set=function(t,e){return gn(this),this.i=null,pn(this,t=wn(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},C.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},C.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var t=[],e=this.g.T(),n=0;n<e.length;n++)for(var r=e[n],s=encodeURIComponent(String(r)),r=this.R(r),i=0;i<r.length;i++){var o=s;""!==r[i]&&(o+="="+encodeURIComponent(String(r[i]))),t.push(o)}return this.i=t.join("&")};var vn=function(t,e){this.h=t,this.g=e};function bn(t){this.l=t||En,t=R.PerformanceNavigationTiming?0<(t=R.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(R.g&&R.g.Ea&&R.g.Ea()&&R.g.Ea().Zb),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Tn,En=10;function In(t){return t.h||t.g&&t.g.size>=t.j}function _n(t){return t.h?1:t.g?t.g.size:0}function Sn(t,e){return t.h?t.h==e:t.g&&t.g.has(e)}function Nn(t,e){t.g?t.g.add(e):t.h=e}function An(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Dn(t){var e,n;if(null!=t.h)return t.i.concat(t.h.D);if(null==t.g||0===t.g.size)return Q(t.i);var r=t.i;try{for(var s=D(t.g.values()),i=s.next();!i.done;i=s.next())var o=i.value,r=r.concat(o.D)}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return r}function Cn(){}function xn(){this.g=new Cn}function kn(t,e,n,r,s){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,s(r)}catch(t){}}function Rn(t){this.l=t.$b||null,this.j=t.ib||!1}function Ln(t,e){qt.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=On,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}bn.prototype.cancel=function(){var e,t;if(this.i=Dn(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=D(this.g.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.g.clear()}},Cn.prototype.stringify=function(t){return R.JSON.stringify(t,void 0)},Cn.prototype.parse=function(t){return R.JSON.parse(t,void 0)},j(Rn,Ie),Rn.prototype.g=function(){return new Ln(this.l,this.j)},Rn.prototype.i=(Tn={},function(){return Tn}),j(Ln,qt);var On=0;function Mn(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function Pn(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Fn(t)}function Fn(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(C=Ln.prototype).open=function(t,e){if(this.readyState!=On)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Fn(this)},C.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.D||R).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},C.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,Pn(this)),this.readyState=On},C.Va=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Fn(this)),this.g&&(this.readyState=3,Fn(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==R.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),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;Mn(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},C.Sa=function(t){var e;this.g&&(this.u&&t.value?this.response.push(t.value):this.u||(e=t.value||new Uint8Array(0),(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)),(t.done?Pn:Fn)(this),3==this.readyState&&Mn(this))},C.Ua=function(t){this.g&&(this.response=this.responseText=t,Pn(this))},C.Ta=function(t){this.g&&(this.response=t,Pn(this))},C.ha=function(){this.g&&Pn(this)},C.setRequestHeader=function(t,e){this.v.append(t,e)},C.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},C.getAllResponseHeaders=function(){if(!this.h)return"";for(var t=[],e=this.h.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Ln.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Vn=R.JSON.parse;function Un(t){qt.call(this),this.headers=new ze,this.u=t||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.J=qn,this.K=this.L=!1}j(Un,qt);var qn="",Bn=/^https?$/i,jn=["POST","PUT"];function Kn(t){return"content-type"==t.toLowerCase()}function $n(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,Gn(t),Hn(t)}function Gn(t){t.D||(t.D=!0,Bt(t,"complete"),Bt(t,"error"))}function zn(t){if(t.h&&void 0!==k&&(!t.C[1]||4!=Wn(t)||2!=t.ba()))if(t.v&&4==Wn(t))re(t.Fa,0,t);else if(Bt(t,"readystatechange"),4==Wn(t)){t.h=!1;try{var e,n,r,s,i=t.ba();t:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break t;default:o=!1}if((e=o)||((n=0===i)&&(!(s=String(t.H).match(We)[1]||null)&&R.self&&R.self.location&&(s=(r=R.self.location.protocol).substr(0,r.length-1)),n=!Bn.test(s?s.toLowerCase():"")),e=n),e)Bt(t,"complete"),Bt(t,"success");else{t.m=6;try{var a=2<Wn(t)?t.g.statusText:""}catch(t){a=""}t.j=a+" ["+t.ba()+"]",Gn(t)}}finally{Hn(t)}}}function Hn(t,e){if(t.g){Qn(t);var n=t.g,r=t.C[0]?L:null;t.g=null,t.C=null,e||Bt(t,"ready");try{n.onreadystatechange=r}catch(t){}}}function Qn(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(R.clearTimeout(t.A),t.A=null)}function Wn(t){return t.g?t.g.readyState:0}function Yn(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case qn:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function Jn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}var s;r||(s="",et(n,function(t,e){s+=e,s+=":",s+=t,s+="\r\n"}),n=s,"string"==typeof t?null!=n&&encodeURIComponent(String(n)):nn(t,e,n))}function Xn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Zn(t){this.za=0,this.l=[],this.h=new le,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=Xn("failFast",!1,t),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=Xn("baseRetryDelayMs",5e3,t),this.$a=Xn("retryDelaySeedMs",1e4,t),this.Ya=Xn("forwardChannelMaxRetries",2,t),this.ra=Xn("forwardChannelRequestTimeoutMs",2e4,t),this.qa=t&&t.xmlHttpFactory||void 0,this.Ba=t&&t.Yb||!1,this.K=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.J="",this.i=new bn(t&&t.concurrentRequestLimit),this.Ca=new xn,this.ja=t&&t.fastHandshake||!1,this.Ra=t&&t.Wb||!1,t&&t.Aa&&this.h.Aa(),t&&t.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&t&&t.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!t||!1!==t.Xb}function tr(t){var e,n;nr(t),3==t.G&&(e=t.V++,nn(n=Je(t.F),"SID",t.J),nn(n,"RID",e),nn(n,"TYPE","terminate"),or(t,n),(e=new Ce(t,t.h,e,void 0)).K=2,e.v=rn(Je(n)),n=!1,!(n=R.navigator&&R.navigator.sendBeacon?R.navigator.sendBeacon(e.v.toString(),""):n)&&R.Image&&((new Image).src=e.v,n=!0),n||(e.g=wr(e.l,null),e.g.ea(e.v)),e.F=Date.now(),Ue(e)),pr(t)}function er(t){t.g&&(cr(t),t.g.cancel(),t.g=null)}function nr(t){er(t),t.u&&(R.clearTimeout(t.u),t.u=null),dr(t),t.i.cancel(),t.m&&("number"==typeof t.m&&R.clearTimeout(t.m),t.m=null)}function rr(t,e){t.l.push(new vn(t.Za++,e)),3==t.G&&sr(t)}function sr(t){In(t.i)||t.m||(t.m=!0,Jt(t.Ha,t),t.C=0)}function ir(t,e){var n=e?e.m:t.V++,r=Je(t.F);nn(r,"SID",t.J),nn(r,"RID",n),nn(r,"AID",t.U),or(t,r),t.o&&t.s&&Jn(r,t.o,t.s),n=new Ce(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=ar(t,n,1e3),n.setTimeout(Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),Nn(t.i,n),Me(n,r,e)}function or(t,n){t.j&&Ge({},function(t,e){nn(n,e,t)})}function ar(t,e,n){n=Math.min(t.l.length,n);var r=t.j?q(t.j.Oa,t.j,t):null;t:for(var s=t.l,i=-1;;){var o=["count="+n];-1==i?0<n?(i=s[0].h,o.push("ofs="+i)):i=0:o.push("ofs="+i);for(var a=!0,h=0;h<n;h++){var u=s[h].h,c=s[h].g;if((u-=i)<0)i=Math.max(0,s[h].h-100),a=!1;else try{!function(t,r,e){var s=e||"";try{Ge(t,function(t,e){var n=t;M(t)&&(n=Kt(t)),r.push(s+e+"="+encodeURIComponent(n))})}catch(t){throw r.push(s+"type="+encodeURIComponent("_badmap")),t}}(c,o,"req"+u+"_")}catch(t){r&&r(c)}}if(a){r=o.join("&");break t}}return t=t.l.splice(0,n),e.D=t,r}function hr(t){t.g||t.u||(t.Y=1,Jt(t.Ga,t),t.A=0)}function ur(t){return!(t.g||t.u||3<=t.A)&&(t.Y++,t.u=Te(q(t.Ga,t),gr(t,t.A)),t.A++,1)}function cr(t){null!=t.B&&(R.clearTimeout(t.B),t.B=null)}function lr(t){t.g=new Ce(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=Je(t.oa);nn(e,"RID","rpc"),nn(e,"SID",t.J),nn(e,"CI",t.N?"0":"1"),nn(e,"AID",t.U),or(t,e),nn(e,"TYPE","xmlhttp"),t.o&&t.s&&Jn(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=rn(Je(e)),n.s=null,n.U=!0,Pe(n,t)}function dr(t){null!=t.v&&(R.clearTimeout(t.v),t.v=null)}function fr(t,e){var n,r,s,i=null;if(t.g==e){dr(t),cr(t),t.g=null;var o=2}else{if(!Sn(t.i,e))return;i=e.D,An(t.i,e),o=1}if(t.I=e.N,0!=t.G)if(e.i)1==o?(i=e.s?e.s.length:0,e=Date.now()-e.F,n=t.C,Bt(o=me(),new be(o,i)),sr(t)):hr(t);else if(3==(n=e.o)||0==n&&0<t.I||(1!=o||(s=e,_n((r=t).i)>=r.i.j-(r.m?1:0)||(r.m?(r.l=s.D.concat(r.l),0):1==r.G||2==r.G||r.C>=(r.Xa?0:r.Ya)||(r.m=Te(q(r.Ha,r,s),gr(r,r.C)),r.C++,0))))&&(2!=o||!ur(t)))switch(i&&0<i.length&&(e=t.i,e.i=e.i.concat(i)),n){case 1:mr(t,5);break;case 4:mr(t,10);break;case 3:mr(t,6);break;default:mr(t,2)}}function gr(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function mr(t,e){var n,r,s,i;t.h.info("Error code "+e),2==e?(r=null,t.j&&(r=null),i=q(t.jb,t),r||(r=new Ye("//www.google.com/images/cleardot.gif"),R.location&&"http"==R.location.protocol||Xe(r,"https"),rn(r)),n=r.toString(),r=i,i=new le,R.Image?((s=new Image).onload=B(kn,i,s,"TestLoadImage: loaded",!0,r),s.onerror=B(kn,i,s,"TestLoadImage: error",!1,r),s.onabort=B(kn,i,s,"TestLoadImage: abort",!1,r),s.ontimeout=B(kn,i,s,"TestLoadImage: timeout",!1,r),R.setTimeout(function(){s.ontimeout&&s.ontimeout()},1e4),s.src=n):r(!1)):ve(2),t.G=0,t.j&&t.j.va(e),pr(t),nr(t)}function pr(t){t.G=0,t.I=-1,t.j&&(0==Dn(t.i).length&&0==t.l.length||(t.i.i.length=0,Q(t.l),t.l.length=0),t.j.ua())}function yr(t,e,n){var r,s,i,o,a,h=(o=n)instanceof Ye?Je(o):new Ye(o,void 0);return""!=h.i?(e&&Ze(h,e+"."+h.i),tn(h,h.m)):(a=R.location,r=a.protocol,s=e?e+"."+a.hostname:a.hostname,i=+a.port,o=n,a=new Ye(null,void 0),r&&Xe(a,r),s&&Ze(a,s),i&&tn(a,i),o&&(a.l=o),h=a),t.aa&&et(t.aa,function(t,e){nn(h,e,t)}),e=t.D,n=t.sa,e&&n&&nn(h,e,n),nn(h,"VER",t.ma),or(t,h),h}function wr(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=n&&t.Ba&&!t.qa?new Un(new Rn({ib:!0})):new Un(t.qa)).L=t.H,e}function vr(){}function br(){if(ht&&!(10<=Number(wt)))throw Error("Environmental error: no available transport.")}function Tr(t,e){qt.call(this),this.g=new Zn(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.P=t,(t=e&&e.httpHeadersOverwriteParam)&&!W(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!W(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&(e in(t=this.h)&&delete t[e])),this.j=new _r(this)}function Er(t){Ne.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function Ir(){Ae.call(this),this.status=1}function _r(t){this.g=t}(C=Un.prototype).ea=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=(this.u||ke).g(),this.C=this.u?_e(this.u):_e(ke),this.g.onreadystatechange=q(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(t){return void $n(this,t)}t=n||"";var s,i=new ze(this.headers);r&&Ge(r,function(t,e){i.set(e,t)}),r=function(t){t:{for(var e=Kn,n=t.length,r="string"==typeof t?t.split(""):t,s=0;s<n;s++)if(s in r&&e.call(void 0,r[s],s,t)){e=s;break t}e=-1}return e<0?null:"string"==typeof t?t.charAt(e):t[e]}(i.T()),n=R.FormData&&t instanceof R.FormData,0<=G(jn,e)&&!r&&!n&&i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(t,e){this.g.setRequestHeader(e,t)},this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Qn(this),0<this.B&&((this.K=(s=this.g,ht&&yt()&&"number"==typeof s.timeout&&void 0!==s.ontimeout))?(this.g.timeout=this.B,this.g.ontimeout=q(this.pa,this)):this.A=re(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(t){$n(this,t)}},C.pa=function(){void 0!==k&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Bt(this,"timeout"),this.abort(8))},C.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,Bt(this,"complete"),Bt(this,"abort"),Hn(this))},C.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Hn(this,!0)),Un.Z.M.call(this)},C.Fa=function(){this.s||(this.F||this.v||this.l?zn(this):this.cb())},C.cb=function(){zn(this)},C.ba=function(){try{return 2<Wn(this)?this.g.status:-1}catch(t){return-1}},C.ga=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},C.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Vn(e)}},C.Da=function(){return this.m},C.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(C=Zn.prototype).ma=8,C.G=1,C.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(t){}},C.Ha=function(t){if(this.m)if(this.m=null,1==this.G){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;var e=new Ce(this,this.h,t,void 0),n=this.s;if(this.P&&(n?st(n=nt(n),this.P):n=this.P),null===this.o&&(e.H=n),this.ja)t:{for(var r=0,s=0;s<this.l.length;s++){var i=this.l[s];if("__data__"in i.g&&"string"==typeof(i=i.g.__data__)?i=i.length:i=void 0,void 0===i)break;if(4096<(r+=i)){r=s;break t}if(4096===r||s===this.l.length-1){r=s+1;break t}}r=1e3}else r=1e3;r=ar(this,e,r),nn(s=Je(this.F),"RID",t),nn(s,"CVER",22),this.D&&nn(s,"X-HTTP-Session-Id",this.D),or(this,s),this.o&&n&&Jn(s,this.o,n),Nn(this.i,e),this.Ra&&nn(s,"TYPE","init"),this.ja?(nn(s,"$req",r),nn(s,"SID","null"),e.$=!0,Me(e,s,null)):Me(e,s,r),this.G=2}}else 3==this.G&&(t?ir(this,t):0==this.l.length||In(this.i)||ir(this))},C.Ga=function(){var t;this.u=null,lr(this),this.$&&!(this.L||null==this.g||this.O<=0)&&(t=2*this.O,this.h.info("BP detection timer enabled: "+t),this.B=Te(q(this.bb,this),t))},C.bb=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.N=!1,this.L=!0,ve(10),er(this),lr(this))},C.ab=function(){null!=this.v&&(this.v=null,er(this),ur(this),ve(19))},C.jb=function(t){t?(this.h.info("Successfully pinged google.com"),ve(2)):(this.h.info("Failed to ping google.com"),ve(1))},(C=vr.prototype).xa=function(){},C.wa=function(){},C.va=function(){},C.ua=function(){},C.Oa=function(){},br.prototype.g=function(t,e){return new Tr(t,e)},j(Tr,qt),Tr.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var t=this.g,e=this.l,n=this.h||void 0;t.Wa&&(t.h.info("Origin Trials enabled."),Jt(q(t.hb,t,e))),ve(0),t.W=e,t.aa=n||{},t.N=t.X,t.F=yr(t,null,t.W),sr(t)},Tr.prototype.close=function(){tr(this.g)},Tr.prototype.u=function(t){var e;"string"==typeof t?((e={}).__data__=t,rr(this.g,e)):this.v?((e={}).__data__=Kt(t),rr(this.g,e)):rr(this.g,t)},Tr.prototype.M=function(){this.g.j=null,delete this.j,tr(this.g),delete this.g,Tr.Z.M.call(this)},j(Er,Ne),j(Ir,Ae),j(_r,vr),_r.prototype.xa=function(){Bt(this.g,"a")},_r.prototype.wa=