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