firebase
Version:
Firebase JavaScript library for web and Node.js
1 lines • 547 kB
JavaScript
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/app"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.firebase.INTERNAL.modularAPIs)})(this,function(Af,Sf){try{!(function(){let a=()=>{},B=function(t){var r=[];let n=0;for(let s=0;s<t.length;s++){let e=t.charCodeAt(s);e<128?r[n++]=e:(e<2048?r[n++]=e>>6|192:(55296==(64512&e)&&s+1<t.length&&56320==(64512&t.charCodeAt(s+1))?(e=65536+((1023&e)<<10)+(1023&t.charCodeAt(++s)),r[n++]=e>>18|240,r[n++]=e>>12&63|128):r[n++]=e>>12|224,r[n++]=e>>6&63|128),r[n++]=63&e|128)}return r},o={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(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let l=0;l<r.length;l+=3){var i=r[l],a=l+1<r.length,B=a?r[l+1]:0,o=l+2<r.length,u=o?r[l+2]:0;let e=(15&B)<<2|u>>6,t=63&u;o||(t=64,a)||(e=64),s.push(n[i>>2],n[(3&i)<<4|B>>4],n[e],n[t])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(B(e),t)},decodeString(r,n){if(this.HAS_NATIVE_SUPPORT&&!n)return atob(r);{var s=this.decodeStringToByteArray(r,n);var i=[];let e=0,t=0;for(;e<s.length;){var a,B,o,u=s[e++];u<128?i[t++]=String.fromCharCode(u):191<u&&u<224?(a=s[e++],i[t++]=String.fromCharCode((31&u)<<6|63&a)):239<u&&u<365?(a=((7&u)<<18|(63&s[e++])<<12|(63&s[e++])<<6|63&s[e++])-65536,i[t++]=String.fromCharCode(55296+(a>>10)),i[t++]=String.fromCharCode(56320+(1023&a))):(B=s[e++],o=s[e++],i[t++]=String.fromCharCode((15&u)<<12|(63&B)<<6|63&o))}return i.join("");return}},decodeStringToByteArray(e,t){this.init_();var r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let o=0;o<e.length;){var s=r[e.charAt(o++)],i=o<e.length?r[e.charAt(o)]:0,a=++o<e.length?r[e.charAt(o)]:64,B=++o<e.length?r[e.charAt(o)]:64;if(++o,null==s||null==i||null==a||null==B)throw new M;n.push(s<<2|i>>4),64!==a&&(n.push(i<<4&240|a>>2),64!==B)&&n.push(a<<6&192|B)}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),(this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e)>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class M extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let H=function(e){var t=B(e);return o.encodeByteArray(t,!0)},V=function(e){return H(e).replace(/\./g,"")},U=function(e){try{return o.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function q(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}let J=()=>q().__FIREBASE_DEFAULTS__,j=()=>{var e;return"undefined"!=typeof process&&void 0!==process.env&&(e=process.env.__FIREBASE_DEFAULTS__)?JSON.parse(e):void 0},K=()=>{if("undefined"!=typeof document){let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}var t=e&&U(e[1]);return t&&JSON.parse(t)}},Q=()=>{try{return a()||J()||j()||K()}catch(e){console.info("Unable to get __FIREBASE_DEFAULTS__ due to: "+e)}};function z(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Y(){var e=Q()?.forceEnvironment;if("node"===e)return 1;if("browser"!==e)try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){}}function W(){return!Y()&&navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function X(){return!Y()&&navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}class $ extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,$.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Z.prototype.create)}}class Z{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r=t[0]||{},n=this.service+"/"+e,s=this.errors[e],s=s?((r,n)=>{try{let e=0,t="";for(;e<r.length;){var s=r.indexOf("{$",e);if(-1===s){t+=r.substring(e);break}var i=r.indexOf("}",s+2);if(-1===i){t+=r.substring(e);break}var a=r.substring(s+2,i),B=n[a];t+=r.substring(e,s)+(null!=B?String(B):`<${a}?>`),e=i+1}return t}catch(e){return r}})(s,r):"Error",s=this.serviceName+`: ${s} (${n}).`;return new $(n,s,r)}}function ee(e,t){if(e!==t){var r,n,s=Object.keys(e),i=Object.keys(t);for(r of s){if(!i.includes(r))return!1;var a=e[r],B=t[r];if(te(a)&&te(B)){if(!ee(a,B))return!1}else if(a!==B)return!1}for(n of i)if(!s.includes(n))return!1}return!0}function te(e){return null!==e&&"object"==typeof e}function re(e){return e&&e._delegate?e._delegate:e}function ne(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}class se{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}var ie,ae,h,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!(function(){var e,t,i;function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(){}function a(e,t,r){r=r||0;var n=Array(16);if("string"==typeof t)for(var s=0;s<16;++s)n[s]=t.charCodeAt(r++)|t.charCodeAt(r++)<<8|t.charCodeAt(r++)<<16|t.charCodeAt(r++)<<24;else for(s=0;s<16;++s)n[s]=t[r++]|t[r++]<<8|t[r++]<<16|t[r++]<<24;t=e.g[0],r=e.g[1];var s=e.g[2],i=e.g[3],a=t+(i^r&(s^i))+n[0]+3614090360&4294967295;a=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=(r=(s=(i=(t=r+(a<<7&4294967295|a>>>25))+((a=i+(s^t&(r^s))+n[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=s+(r^i&(t^r))+n[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=r+(t^s&(i^t))+n[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^r&(s^i))+n[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=i+(s^t&(r^s))+n[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=s+(r^i&(t^r))+n[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=r+(t^s&(i^t))+n[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^r&(s^i))+n[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=i+(s^t&(r^s))+n[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=s+(r^i&(t^r))+n[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=r+(t^s&(i^t))+n[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^r&(s^i))+n[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=i+(s^t&(r^s))+n[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=s+(r^i&(t^r))+n[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=r+(t^s&(i^t))+n[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(s^i&(r^s))+n[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=i+(r^s&(t^r))+n[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=s+(t^r&(i^t))+n[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=r+(i^t&(s^i))+n[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(s^i&(r^s))+n[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=i+(r^s&(t^r))+n[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=s+(t^r&(i^t))+n[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=r+(i^t&(s^i))+n[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(s^i&(r^s))+n[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=i+(r^s&(t^r))+n[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=s+(t^r&(i^t))+n[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=r+(i^t&(s^i))+n[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(s^i&(r^s))+n[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=i+(r^s&(t^r))+n[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=s+(t^r&(i^t))+n[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=r+(i^t&(s^i))+n[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(r^s^i)+n[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^r^s)+n[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=s+(i^t^r)+n[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=r+(s^i^t)+n[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(r^s^i)+n[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^r^s)+n[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=s+(i^t^r)+n[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=r+(s^i^t)+n[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(r^s^i)+n[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^r^s)+n[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=s+(i^t^r)+n[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=r+(s^i^t)+n[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(r^s^i)+n[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^r^s)+n[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=s+(i^t^r)+n[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=r+(s^i^t)+n[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(s^(r|~i))+n[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=i+(r^(t|~s))+n[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=s+(t^(i|~r))+n[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=r+(i^(s|~t))+n[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(s^(r|~i))+n[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=i+(r^(t|~s))+n[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=s+(t^(i|~r))+n[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=r+(i^(s|~t))+n[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(s^(r|~i))+n[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=i+(r^(t|~s))+n[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=s+(t^(i|~r))+n[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=r+(i^(s|~t))+n[13]+1309151649&4294967295)<<21&4294967295|a>>>11))+((i=(t=r+((a=t+(s^(r|~i))+n[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=i+(r^(t|~s))+n[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((s=i+((a=s+(t^(i|~r))+n[2]+718787259&4294967295)<<15&4294967295|a>>>17))|~t))+n[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(s+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+s&4294967295,e.g[3]=e.g[3]+i&4294967295}function o(e,t){this.h=t;var r=[];let n=!0;for(let i=e.length-1;0<=i;i--){var s=0|e[i];n&&s==t||(r[i]=s,n=!1)}this.g=r}t=r,i=function(){this.blockSize=-1},n.prototype=i.prototype,t.F=i.prototype,t.prototype=new n,(t.prototype.constructor=t).D=function(e,t,r){for(var n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];return i.prototype[t].apply(e,n)},r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},r.prototype.v=function(e,t){var r=(t=void 0===t?e.length:t)-this.blockSize,n=this.C;let s=this.h,i=0;for(;i<t;){if(0==s)for(;i<=r;)a(this,e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(n[s++]=e.charCodeAt(i++),s==this.blockSize){a(this,n),s=0;break}}else for(;i<t;)if(n[s++]=e[i++],s==this.blockSize){a(this,n),s=0;break}}this.h=s,this.o+=t},r.prototype.A=function(){var t=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var r=1;r<t.length-8;++r)t[r]=0;for(var r=8*this.o,n=t.length-8;n<t.length;++n)t[n]=255&r,r/=256;for(this.v(t),t=Array(16),n=r=0;n<4;++n)for(let e=0;e<32;e+=8)t[r++]=this.g[n]>>>e&255;return t};var s={};function B(e){return-128<=e&&e<128?(t=e,r=function(e){return new o([0|e],e<0?-1:0)},n=s,Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=r(t)):new o([0|e],e<0?-1:0);var t,r,n}function u(e){if(isNaN(e)||!isFinite(e))return l;if(e<0)return g(u(-e));var t=[];let r=1;for(let n=0;e>=r;n++)t[n]=e/r|0,r*=4294967296;return new o(t,0)}var l=B(0),h=B(1),c=B(16777216);function C(t){if(0==t.h){for(let e=0;e<t.g.length;e++)if(0!=t.g[e])return;return 1}}function d(e){return-1==e.h}function g(e){var t=e.g.length,r=[];for(let n=0;n<t;n++)r[n]=~e.g[n];return new o(r,~e.h).add(h)}function p(e,t){return e.add(g(t))}function f(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function m(e,t){this.g=e,this.h=t}function D(e,t){if(C(t))throw Error("division by zero");if(C(e))return new m(l,l);if(d(e))return t=D(g(e),t),new m(g(t.g),g(t.h));if(d(t))return t=D(e,g(t)),new m(g(t.g),t.h);if(30<e.g.length){if(d(e)||d(t))throw Error("slowDivide_ only works with positive integers.");for(var r=h,n=t;n.l(e)<=0;)r=E(r),n=E(n);for(var s=v(r,1),i=v(n,1),n=v(n,2),r=v(r,2);!C(n);){var a=i.add(n);a.l(e)<=0&&(s=s.add(r),i=a),n=v(n,1),r=v(r,1)}return t=p(e,s.j(t)),new m(s,t)}for(s=l;0<=e.l(t);){for(r=Math.max(1,Math.floor(e.m()/t.m())),n=(n=Math.ceil(Math.log(r)/Math.LN2))<=48?1:Math.pow(2,n-48),a=(i=u(r)).j(t);d(a)||0<a.l(e);)a=(i=u(r-=n)).j(t);C(i)&&(i=h),s=s.add(i),e=p(e,a)}return new m(s,e)}function E(e){var t=e.g.length+1,r=[];for(let n=0;n<t;n++)r[n]=e.i(n)<<1|e.i(n-1)>>>31;return new o(r,e.h)}function v(e,t){var r=t>>5,n=(t%=32,e.g.length-r),s=[];for(let i=0;i<n;i++)s[i]=0<t?e.i(i+r)>>>t|e.i(i+r+1)<<32-t:e.i(i+r);return new o(s,e.h)}(e=o.prototype).m=function(){if(d(this))return-g(this).m();let e=0,t=1;for(let n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(t){if((t=t||10)<2||36<t)throw Error("radix out of range: "+t);if(C(this))return"0";if(d(this))return"-"+g(this).toString(t);var r=u(Math.pow(t,6)),n=this;let s="";for(;;){var i=D(n,r).g;let e=((0<(n=p(n,i.j(r))).g.length?n.g[0]:n.h)>>>0).toString(t);if(C(n=i))return e+s;for(;e.length<6;)e="0"+e;s=e+s}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return d(e=p(this,e))?-1:C(e)?0:1},e.abs=function(){return d(this)?g(this):this},e.add=function(e){var t=Math.max(this.g.length,e.g.length),r=[];let n=0;for(let a=0;a<=t;a++){var s=n+(65535&this.i(a))+(65535&e.i(a)),i=(s>>>16)+(this.i(a)>>>16)+(e.i(a)>>>16);n=i>>>16,s&=65535,i&=65535,r[a]=i<<16|s}return new o(r,-2147483648&r[r.length-1]?-1:0)},e.j=function(t){if(C(this)||C(t))return l;if(d(this))return d(t)?g(this).j(g(t)):g(g(this).j(t));if(d(t))return g(this.j(g(t)));if(this.l(c)<0&&t.l(c)<0)return u(this.m()*t.m());for(var e=this.g.length+t.g.length,r=[],n=0;n<2*e;n++)r[n]=0;for(n=0;n<this.g.length;n++)for(let e=0;e<t.g.length;e++){var s=this.i(n)>>>16,i=65535&this.i(n),a=t.i(e)>>>16,B=65535&t.i(e);r[2*n+2*e]+=i*B,f(r,2*n+2*e),r[2*n+2*e+1]+=s*B,f(r,2*n+2*e+1),r[2*n+2*e+1]+=i*a,f(r,2*n+2*e+1),r[2*n+2*e+2]+=s*a,f(r,2*n+2*e+2)}for(t=0;t<e;t++)r[t]=r[2*t+1]<<16|r[2*t];for(t=e;t<2*e;t++)r[t]=0;return new o(r,0)},e.B=function(e){return D(this,e).h},e.and=function(e){var t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)&e.i(n);return new o(r,this.h&e.h)},e.or=function(e){var t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)|e.i(n);return new o(r,this.h|e.h)},e.xor=function(e){var t=Math.max(this.g.length,e.g.length),r=[];for(let n=0;n<t;n++)r[n]=this.i(n)^e.i(n);return new o(r,this.h^e.h)},r.prototype.digest=r.prototype.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,ae=r,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.B,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.getBits=o.prototype.i,o.fromNumber=u,o.fromString=function e(t,r){if(0==t.length)throw Error("number format error: empty string");if((r=r||10)<2||36<r)throw Error("radix out of range: "+r);if("-"==t.charAt(0))return g(e(t.substring(1),r));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');var n=u(Math.pow(r,8));let s=l;for(let B=0;B<t.length;B+=8){var i=Math.min(8,t.length-B),a=parseInt(t.substring(B,B+i),r);s=(i<8?(i=u(Math.pow(r,i)),s.j(i)):s=s.j(n)).add(u(a))}return s},ie=o}).apply(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),(Qp=h=h||{})[Qp.DEBUG=0]="DEBUG",Qp[Qp.VERBOSE=1]="VERBOSE",Qp[Qp.INFO=2]="INFO",Qp[Qp.WARN=3]="WARN",Qp[Qp.ERROR=4]="ERROR",Qp[Qp.SILENT=5]="SILENT";let Be={debug:h.DEBUG,verbose:h.VERBOSE,info:h.INFO,warn:h.WARN,error:h.ERROR,silent:h.SILENT},oe=h.INFO,ue={[h.DEBUG]:"log",[h.VERBOSE]:"log",[h.INFO]:"info",[h.WARN]:"warn",[h.ERROR]:"error"},le=(e,t,...r)=>{if(!(t<e.logLevel)){var n=(new Date).toISOString(),s=ue[t];if(!s)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[s](`[${n}] ${e.name}:`,...r)}};var ir,ar,Br,or,ur,lr,hr,cr,Cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=(!(function(){var e,k=Object.defineProperty;var G=(e=>{e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Cr&&Cr];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")})(this);function P(e,t){if(t)e:{var r=G;e=e.split(".");for(var n=0;n<e.length-1;n++){var s=e[n];if(!(s in r))break e;r=r[s]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&k(r,e,{configurable:!0,writable:!0,value:t})}}P("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),P("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),P("Object.entries",function(e){return e||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push([t,e[t]]);return r}});var M=M||{},F=this||self;function H(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function V(e,t,r){return e.call.apply(e.bind,arguments)}function f(e,t,r){return(f=V).apply(null,arguments)}function U(t){var r=Array.prototype.slice.call(arguments,1);return function(){var e=r.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function t(e,i){function t(){}t.prototype=i.prototype,e.Z=i.prototype,e.prototype=new t,(e.prototype.constructor=e).Ob=function(e,t,r){for(var n=Array(arguments.length-2),s=2;s<arguments.length;s++)n[s-2]=arguments[s];return i.prototype[t].apply(e,n)}}var q="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function J(t){var r=t.length;if(0<r){var n=Array(r);for(let e=0;e<r;e++)n[e]=t[e];return n}return[]}function j(t){for(let e=1;e<arguments.length;e++){var r=arguments[e];if("array"==(n="object"!=(n=typeof r)?n:r?Array.isArray(r)?"array":n:"null")||"object"==n&&"number"==typeof r.length){var n=t.length||0,s=r.length||0;t.length=n+s;for(let e=0;e<s;e++)t[n+e]=r[e]}else t.push(r)}}var K=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new Q,e=>e.reset());class Q{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let r,n=!1,z=new class{constructor(){this.h=this.g=null}add(e,t){var r=K.get();r.set(e,t),this.h?this.h.next=r:this.g=r,this.h=r}},Y=()=>{let e=Promise.resolve(void 0);r=()=>{e.then(W)}};function W(){for(var e;e=(()=>{let e=z,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t})();){try{e.h.call(e.g)}catch(e){(e=>{F.setTimeout(()=>{throw e},0)})(e)}var t=K;t.j(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}n=!1}function s(){this.u=this.u,this.C=this.C}function B(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}s.prototype.u=!1,s.prototype.dispose=function(){this.u||(this.u=!0,this.N())},s.prototype[Symbol.dispose]=function(){this.dispose()},s.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},B.prototype.h=function(){this.defaultPrevented=!0};var X=(()=>{if(!F.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{var r=()=>{};F.addEventListener("test",r,t),F.removeEventListener("test",r,t)}catch(e){}return e})();function A(e){return/^[\s\xa0]*$/.test(e)}function i(e,t){B.call(this,e?e.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,e&&this.init(e,t)}t(i,B),i.prototype.init=function(e,t){var r=this.type=e.type,n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement)),this.relatedTarget=t,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=e.pointerType,this.state=e.state,(this.i=e).defaultPrevented&&i.Z.h.call(this)},i.prototype.h=function(){i.Z.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var $="closure_listenable_"+(1e6*Math.random()|0),Z=0;function ee(e,t,r,n,s){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!n,this.ha=s,this.key=++Z,this.da=this.fa=!1}function te(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function re(e,t,r){for(var n in e)t.call(r,e[n],n,e)}function ne(e){var t,r={};for(t in e)r[t]=e[t];return r}let se="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ie(t){let r,n;for(let s=1;s<arguments.length;s++){for(r in n=arguments[s])t[r]=n[r];for(let e=0;e<se.length;e++)r=se[e],Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}}function ae(e){this.src=e,this.g={},this.h=0}function Be(e,t){var r,n,s,i=t.type;i in e.g&&(r=e.g[i],(s=0<=(n=Array.prototype.indexOf.call(r,t,void 0)))&&Array.prototype.splice.call(r,n,1),s)&&(te(t),0==e.g[i].length)&&(delete e.g[i],e.h--)}function oe(e,t,r,n){for(let i=0;i<e.length;++i){var s=e[i];if(!s.da&&s.listener==t&&s.capture==!!r&&s.ha==n)return i}return-1}ae.prototype.add=function(e,t,r,n,s){var i=e.toString(),a=((e=this.g[i])||(e=this.g[i]=[],this.h++),oe(e,t,n,s));return-1<a?(t=e[a],r||(t.fa=!1)):((t=new ee(t,this.src,i,!!n,s)).fa=r,e.push(t)),t};var ue="closure_lm_"+(1e6*Math.random()|0),le={};function he(r,n,s,i,a){if(Array.isArray(n)){for(let e=0;e<n.length;e++)he(r,n[e],s,i,a);return null}if(s=fe(s),r&&r[$])return r.J(n,s,!!H(i)&&!!i.capture,a);{var B=r,o=n,u=s,l=!1,h=i,c=a;if(!o)throw Error("Invalid event type");let e=H(h)?!!h.capture:!!h,t=ge(B);if(t||(B[ue]=t=new ae(B)),!(u=t.add(o,u,l,e,c)).proxy)if(l=(()=>{let r=de;return function e(t){return r.call(e.src,e.listener,t)}})(),(u.proxy=l).src=B,l.listener=u,B.addEventListener)void 0===(h=X?h:e)&&(h=!1),B.addEventListener(o.toString(),l,h);else if(B.attachEvent)B.attachEvent(Ce(o.toString()),l);else{if(!B.addListener||!B.removeListener)throw Error("addEventListener and attachEvent are unavailable.");B.addListener(l)}return u}}function ce(e){var t,r,n;"number"!=typeof e&&e&&!e.da&&((t=e.src)&&t[$]?Be(t.i,e):(r=e.type,n=e.proxy,t.removeEventListener?t.removeEventListener(r,n,e.capture):t.detachEvent?t.detachEvent(Ce(r),n):t.addListener&&t.removeListener&&t.removeListener(n),(r=ge(t))?(Be(r,e),0==r.h&&(r.src=null,t[ue]=null)):te(e)))}function Ce(e){return e in le?le[e]:le[e]="on"+e}function de(e,t){var r,n;return e=!!e.da||(t=new i(t,this),r=e.listener,n=e.ha||e.src,e.fa&&ce(e),r.call(n,t))}function ge(e){return(e=e[ue])instanceof ae?e:null}var pe="__closure_events_fn_"+(1e9*Math.random()>>>0);function fe(t){return"function"==typeof t?t:(t[pe]||(t[pe]=function(e){return t.handleEvent(e)}),t[pe])}function a(){s.call(this),this.i=new ae(this),(this.M=this).G=null}function o(e,t){var r,n,s=e.G;if(s)for(r=[];s;s=s.G)r.push(s);e=e.M,s=t.type||t,"string"==typeof t?t=new B(t,e):t instanceof B?t.target=t.target||e:(n=t,ie(t=new B(s,e),n)),n=!0;let i,a;if(r)for(a=r.length-1;0<=a;a--)n=me(i=t.g=r[a],s,!0,t)&&n;if(n=me(i=t.g=e,s,!0,t)&&n,n=me(i,s,!1,t)&&n,r)for(a=0;a<r.length;a++)n=me(i=t.g=r[a],s,!1,t)&&n}function me(e,t,r,n){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let s=!0;for(let o=0;o<t.length;++o){var i,a,B=t[o];B&&!B.da&&B.capture==r&&(i=B.listener,a=B.ha||B.src,B.fa&&Be(e.i,B),s=!1!==i.call(a,n)&&s)}return s&&!n.defaultPrevented}function De(e){e.g=((e,t)=>{if("function"!=typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=f(e.handleEvent,e)}return 2147483647<Number(t)?-1:F.setTimeout(e,t||0)})(()=>{e.g=null,e.i&&(e.i=!1,De(e))},e.l);var t=e.h;e.h=null,e.m.apply(null,t)}t(a,s),a.prototype[$]=!0,a.prototype.removeEventListener=function(e,t,r,n){!function e(t,r,n,s,i){if(Array.isArray(r))for(var a=0;a<r.length;a++)e(t,r[a],n,s,i);else s=H(s)?!!s.capture:!!s,n=fe(n),t&&t[$]?(t=t.i,(a=String(r).toString())in t.g&&-1<(n=oe(r=t.g[a],n,s,i))&&(te(r[n]),Array.prototype.splice.call(r,n,1),0==r.length)&&(delete t.g[a],t.h--)):(t=t&&ge(t))&&(r=t.g[r.toString()],n=(t=-1)<(t=r?oe(r,n,s,i):t)?r[t]:null)&&ce(n)}(this,e,t,r,n)},a.prototype.N=function(){if(a.Z.N.call(this),this.i){var t,r=this.i;for(t in r.g){var n=r.g[t];for(let e=0;e<n.length;e++)te(n[e]);delete r.g[t],r.h--}}this.G=null},a.prototype.J=function(e,t,r,n){return this.i.add(String(e),t,!1,r,n)},a.prototype.K=function(e,t,r,n){return this.i.add(String(e),t,!0,r,n)};class Ee extends s{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:De(this)}N(){super.N(),this.g&&(F.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function u(e){s.call(this),this.h=e,this.g={}}t(u,s);var ve=[];function we(e){re(e.g,function(e,t){this.g.hasOwnProperty(t)&&ce(e)},e),e.g={}}u.prototype.N=function(){u.Z.N.call(this),we(this)},u.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ye=F.JSON.stringify,_e=F.JSON.parse,Ie=class{stringify(e){return F.JSON.stringify(e,void 0)}parse(e){return F.JSON.parse(e,void 0)}};function Te(){}function be(){}var Ne={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function Fe(){B.call(this,"d")}function Ae(){B.call(this,"c")}t(Fe,B),t(Ae,B);var l={},Se=null;function Oe(){return Se=Se||new a}function xe(e){B.call(this,l.Ia,e)}function Le(){var e=Oe();o(e,new xe(e))}function Re(e,t){B.call(this,l.STAT_EVENT,e),this.stat=t}function S(e){var t=Oe();o(t,new Re(t,e))}function ke(e,t){B.call(this,l.Ja,e),this.size=t}function m(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return F.setTimeout(function(){e()},t)}function h(){this.g=!0}function O(e,t,r,n){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+((e,t)=>{if(!e.g)return t;if(!t)return null;try{var r=JSON.parse(t);if(r)for(e=0;e<r.length;e++)if(Array.isArray(r[e])){var n=r[e];if(!(n.length<2)){var s=n[1];if(Array.isArray(s)&&!(s.length<1)){var i=s[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<s.length;e++)s[e]=""}}}return ye(r)}catch(e){return t}})(e,r)+(n?" "+n:"")})}l.Ia="serverreachability",t(xe,B),l.STAT_EVENT="statevent",t(Re,B),l.Ja="timingevent",t(ke,B),h.prototype.ua=function(){this.g=!1},h.prototype.info=function(){};var Ge={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Pe={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function Me(){}function c(e){return encodeURIComponent(String(e))}function C(e,t,r,n){this.j=e,this.i=t,this.l=r,this.S=n||1,this.V=new u(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new He}function He(){this.i=null,this.g="",this.h=!1}t(Me,Te),Me.prototype.g=function(){return new XMLHttpRequest};var Ve=new Me,Ue={},qe={};function Je(e,t,r){e.M=1,e.A=Bt(g(t)),e.u=r,e.R=!0,je(e,null)}function je(e,t){e.F=Date.now(),Qe(e),e.B=g(e.A);var a,B,o,u,l,h,r=e.B,n=e.S,s=(Array.isArray(n)||(n=[String(n)]),Dt(r.i,"t",n),e.C=0,r=e.j.L,e.h=new He,e.g=er(e.j,r?t:null,!e.u),0<e.P&&(e.O=new Ee(f(e.Y,e,e.g),e.P)),t=e.V,r=e.g,n=e.ba,"readystatechange");Array.isArray(s)||(s&&(ve[0]=s.toString()),s=ve);for(let c=0;c<s.length;c++){var i=he(r,s[c],n||t.handleEvent,!1,t.h||t);if(!i)break;t.g[i.key]=i}t=e.J?ne(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),Le(),a=e.i,B=e.v,o=e.B,u=e.l,l=e.S,h=e.u,a.info(function(){if(a.g)if(h){var t="",r=h.split("&");for(let e=0;e<r.length;e++){var n,s,i=r[e].split("=");1<i.length&&(n=i[0],i=i[1],t=2<=(s=n.split("_")).length&&"type"==s[1]?t+(n+"=")+i+"&":t+(n+"=redacted&"))}}else t=null;else t=h;return"XMLHTTP REQ ("+u+") [attempt "+l+"]: "+B+"\n"+o+"\n"+t})}function Ke(e){return e.g&&"GET"==e.v&&2!=e.M&&e.j.Aa}function Qe(e){e.T=Date.now()+e.H,ze(e,e.H)}function ze(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=m(f(e.aa,e),t)}function Ye(e){e.D&&(F.clearTimeout(e.D),e.D=null)}function x(e){0==e.j.I||e.K||Wt(e.j,e)}function L(e){Ye(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,we(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dispose())}function We(e,t){try{var r=e.j;if(0!=r.I&&(r.g==e||tt(r.h,e)))if(!e.L&&tt(r.h,e)&&3==r.I){try{var n=r.Ba.g.parse(t)}catch(e){n=null}if(Array.isArray(n)&&3==n.length){var s=n;if(0==s[0]){e:if(!r.v){if(r.g){if(!(r.g.F+3e3<e.F))break e;Yt(r),Mt(r)}Kt(r),S(18)}}else r.xa=s[1],0<r.xa-r.K&&s[2]<37500&&r.F&&0==r.A&&!r.C&&(r.C=m(f(r.Va,r),6e3));et(r.h)<=1&&r.ta&&(r.ta=void 0)}else T(r,11)}else if(!e.L&&r.g!=e||Yt(r),!A(t))for(s=r.Ba.g.parse(t),t=0;t<s.length;t++){var i,a,B,o,u,l,h,c,C,d,g=s[t],p=g[0];p<=r.K||(r.K=p,g=g[1],2==r.I?"c"==g[0]?(r.M=g[1],r.ba=g[2],null!=(i=g[3])&&(r.ka=i,r.j.info("VER="+r.ka)),null!=(a=g[4])&&(r.za=a,r.j.info("SVER="+r.za)),null!=(B=g[5])&&"number"==typeof B&&0<B&&(n=1.5*B,r.O=n,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r,(o=e.g)&&(!(u=o.g?o.g.getResponseHeader("X-Client-Wire-Protocol"):null)||(l=n.h).g||-1==u.indexOf("spdy")&&-1==u.indexOf("quic")&&-1==u.indexOf("h2")||(l.j=l.l,l.g=new Set,l.h&&(rt(l,l.h),l.h=null)),n.G)&&(h=o.g?o.g.getResponseHeader("X-HTTP-Session-Id"):null)&&(n.wa=h,E(n.J,n.G,h)),r.I=3,r.l&&r.l.ra(),r.aa&&(r.T=Date.now()-e.F,r.j.info("Handshake RTT: "+r.T+"ms")),c=e,(n=r).na=Zt(n,n.L?n.ba:null,n.W),c.L?(nt(n.h,c),C=c,(d=n.O)&&(C.H=d),C.D&&(Ye(C),Qe(C)),n.g=c):jt(n),0<r.i.length&&Vt(r)):"stop"!=g[0]&&"close"!=g[0]||T(r,7):3==r.I&&("stop"==g[0]||"close"==g[0]?"stop"==g[0]?T(r,7):Pt(r):"noop"!=g[0]&&r.l&&r.l.qa(g),r.A=0))}Le()}catch(e){}}C.prototype.ba=function(e){e=e.target;var t=this.O;t&&3==R(e)?t.j():this.Y(e)},C.prototype.Y=function(e){try{if(e==this.g)e:{var t=R(this.g),r=this.g.ya();this.g.ca();if(!(t<3)&&(3!=t||this.g&&(this.h.h||this.g.la()||Rt(this.g)))){this.K||4!=t||7==r||Le(),Ye(this);var n,s,i=this.g.ca(),a=(this.X=i,(e=>{if(!Ke(e))return e.g.la();var t=Rt(e.g);if(""===t)return"";let r="",n=t.length,s=4==R(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return L(e),x(e),"";e.h.i=new F.TextDecoder}for(let i=0;i<n;i++)e.h.h=!0,r+=e.h.i.decode(t[i],{stream:!(s&&i==n-1)});return t.length=0,e.h.g+=r,e.C=0,e.h.g})(this));if(this.o=200==i,w=this.i,y=this.v,_=this.B,I=this.l,T=this.S,b=t,N=i,w.info(function(){return"XMLHTTP RESP ("+I+") [ attempt "+T+"]: "+y+"\n"+_+"\n"+b+" "+N}),this.o){if(this.U&&!this.L){t:{if(this.g){var B,o=this.g;if((B=o.g?o.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!A(B)){var u=B;break t}}u=null}if(!(e=u)){this.o=!1,this.m=3,S(12),L(this),x(this);break e}O(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,We(this,e)}if(this.R){for(e=!0;!this.K&&this.C<a.length;){if(D=a,v=E=void 0,E=(m=this).C,(n=-1==(v=D.indexOf("\n",E))?qe:(E=Number(D.substring(E,v)),isNaN(E)?Ue:(v+=1)+E>D.length?qe:(D=D.slice(v,v+E),m.C=v+E,D)))==qe){4==t&&(this.m=4,S(14),e=!1),O(this.i,this.l,null,"[Incomplete Response]");break}if(n==Ue){this.m=4,S(15),O(this.i,this.l,a,"[Invalid Chunk]"),e=!1;break}O(this.i,this.l,n,null),We(this,n)}Ke(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=t||0!=a.length||this.h.h||(this.m=1,S(16),e=!1),this.o=this.o&&e,e?0<a.length&&!this.W&&(this.W=!0,(s=this.j).g==this)&&s.aa&&!s.P&&(s.j.info("Great, no buffering proxy detected. Bytes received: "+a.length),Qt(s),s.P=!0,S(11)):(O(this.i,this.l,a,"[Invalid Chunked Response]"),L(this),x(this))}else O(this.i,this.l,a,null),We(this,a);4==t&&L(this),this.o&&!this.K&&(4==t?Wt(this.j,this):(this.o=!1,Qe(this)))}else{{var l=this.g;var h,c,C,d={};l=(l.g&&2<=R(l)&&l.g.getAllResponseHeaders()||"").split("\r\n");for(let e=0;e<l.length;e++)A(l[e])||(h=(e=>{for(var t=1,r=(e=e.split(":"),[]);0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r})(l[e]),c=h[0],"string"==typeof(h=h[1])&&(h=h.trim(),C=d[c]||[],(d[c]=C).push(h)));var g,p=d,f=function(e){return e.join(", ")};for(g in p)f.call(void 0,p[g],g,p)}400==i&&0<a.indexOf("Unknown SID")?(this.m=3,S(12)):(this.m=0,S(13)),L(this),x(this)}}}}catch(e){}var m,D,E,v,w,y,_,I,T,b,N},C.prototype.cancel=function(){this.K=!0,L(this)},C.prototype.aa=function(){this.D=null;var e,t,r=Date.now();0<=r-this.T?(e=this.i,t=this.B,e.info(function(){return"TIMEOUT: "+t}),2!=this.M&&(Le(),S(17)),L(this),this.m=2,x(this)):ze(this,this.T-r)};var Xe=class{constructor(e,t){this.g=e,this.map=t}};function $e(e){this.l=e||10,e=F.PerformanceNavigationTiming?0<(e=F.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(F.chrome&&F.chrome.loadTimes&&F.chrome.loadTimes()&&F.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Ze(e){return e.h||e.g&&e.g.size>=e.j}function et(e){return e.h?1:e.g?e.g.size:0}function tt(e,t){return e.h?e.h==t:e.g&&e.g.has(t)}function rt(e,t){e.g?e.g.add(t):e.h=t}function nt(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function st(t){if(null!=t.h)return t.i.concat(t.h.G);if(null==t.g||0===t.g.size)return J(t.i);{let e=t.i;for(var r of t.g.values())e=e.concat(r.G);return e}}$e.prototype.cancel=function(){if(this.i=st(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(var e of this.g.values())e.cancel();this.g.clear()}};var it=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function d(e){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let t;e instanceof d?(this.l=e.l,p(this,e.j),this.o=e.o,this.g=e.g,D(this,e.u),this.h=e.h,at(this,Et(e.i)),this.m=e.m):e&&(t=String(e).match(it))?(this.l=!1,p(this,t[1]||"",!0),this.o=v(t[2]||""),this.g=v(t[3]||"",!0),D(this,t[4]),this.h=v(t[5]||"",!0),at(this,t[6]||"",!0),this.m=v(t[7]||"")):(this.l=!1,this.i=new gt(null,this.l))}function g(e){return new d(e)}function p(e,t,r){e.j=r?v(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function D(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function at(e,t,r){var n,s;t instanceof gt?(e.i=t,n=e.i,(s=e.l)&&!n.j&&(w(n),n.i=null,n.g.forEach(function(e,t){var r=t.toLowerCase();t!=r&&(pt(this,t),Dt(this,r,e))},n)),n.j=s):(r||(t=ot(t,Ct)),e.i=new gt(t,e.l))}function E(e,t,r){e.i.set(t,r)}function Bt(e){return E(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function v(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function ot(e,t,r){return"string"==typeof e?(e=encodeURI(e).replace(t,ut),e=r?e.replace(/%25([0-9a-fA-F]{2})/g,"%$1"):e):null}function ut(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}d.prototype.toString=function(){var e=[],t=this.j,r=(t&&e.push(ot(t,lt,!0),":"),this.g);return!r&&"file"!=t||(e.push("//"),(t=this.o)&&e.push(ot(t,lt,!0),"@"),e.push(c(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null==(r=this.u))||e.push(":",String(r)),(r=this.h)&&(this.g&&"/"!=r.charAt(0)&&e.push("/"),e.push(ot(r,"/"==r.charAt(0)?ct:ht,!0))),(r=this.i.toString())&&e.push("?",r),(r=this.m)&&e.push("#",ot(r,dt)),e.join("")},d.prototype.resolve=function(e){var t=g(this);let r=!!e.j;r?p(t,e.j):r=!!e.o,r?t.o=e.o:r=!!e.g,r?t.g=e.g:r=null!=e.u;var n=e.h;if(r)D(t,e.u);else if(r=!!e.h)if("/"!=n.charAt(0)&&(this.g&&!this.h?n="/"+n:-1!=(s=t.h.lastIndexOf("/"))&&(n=t.h.slice(0,s+1)+n)),".."==(s=n)||"."==s)n="";else if(-1!=s.indexOf("./")||-1!=s.indexOf("/.")){var n=0==s.lastIndexOf("/",0),s=s.split("/"),i=[];for(let e=0;e<s.length;){var a=s[e++];"."==a?n&&e==s.length&&i.push(""):".."==a?((1<i.length||1==i.length&&""!=i[0])&&i.pop(),n&&e==s.length&&i.push("")):(i.push(a),n=!0)}n=i.join("/")}else n=s;return r?t.h=n:r=""!==e.i.toString(),r?at(t,Et(e.i)):r=!!e.m,r&&(t.m=e.m),t};var lt=/[#\/\?@]/g,ht=/[#\?:]/g,ct=/[#\?]/g,Ct=/[#\?@]/g,dt=/#/g;function gt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function w(r){if(!r.g&&(r.g=new Map,r.h=0,r.i)){var n=r.i,s=function(e,t){r.add(decodeURIComponent(e.replace(/\+/g," ")),t)};if(n){n=n.split("&");for(let r=0;r<n.length;r++){var i=n[r].indexOf("=");let e,t=null;0<=i?(e=n[r].substring(0,i),t=n[r].substring(i+1)):e=n[r],s(e,t?decodeURIComponent(t.replace(/\+/g," ")):"")}}}}function pt(e,t){w(e),t=y(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function ft(e,t){return w(e),t=y(e,t),e.g.has(t)}function mt(e,t){w(e);let r=[];if("string"==typeof t)ft(e,t)&&(r=r.concat(e.g.get(y(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)r=r.concat(e[t]);return r}function Dt(e,t,r){pt(e,t),0<r.length&&(e.i=null,e.g.set(y(e,t),J(r)),e.h+=r.length)}function Et(e){var t=new gt;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function y(e,t){return t=String(t),t=e.j?t.toLowerCase():t}function _(e,t,r,n,s){try{s&&(s.onload=null,s.onerror=null,s.onabort=null,s.ontimeout=null),n(r)}catch(e){}}function vt(){this.g=new Ie}function wt(e){this.i=e.Sb||null,this.h=e.ab||!1}function yt(e,t){a.call(this),this.H=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function _t(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function It(e){e.readyState=4,e.l=null,e.j=null,e.B=null,Tt(e)}function Tt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function bt(e){let r="";return re(e,function(e,t){r=(r=r+t+":")+e+"\r\n"}),r}function Nt(e,t,r){e:{for(n in r){var n=!1;break e}n=!0}n||(r=bt(r),"string"==typeof e?null!=r&&c(r):E(e,t,r))}function I(e){a.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=gt.prototype).add=function(e,t){w(this),this.i=null,e=y(this,e);let r=this.g.get(e);return r||this.g.set(e,r=[]),r.push(t),this.h+=1,this},e.forEach=function(r,n){w(this),this.g.forEach(function(e,t){e.forEach(function(e){r.call(n,e,t,this)},this)},this)},e.set=function(e,t){return w(this),this.i=null,ft(this,e=y(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=mt(this,e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";var r=[],e=Array.from(this.g.keys());for(let i=0;i<e.length;i++){var n=c(s=e[i]),s=mt(this,s);for(let t=0;t<s.length;t++){let e=n;""!==s[t]&&(e+="="+c(s[t])),r.push(e)}}return this.i=r.join("&")},t(wt,Te),wt.prototype.g=function(){return new yt(this.i,this.h)},t(yt,a),(e=yt.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,Tt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;var t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||F).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,It(this)),this.readyState=0},e.Pa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Tt(this)),this.g)&&(this.readyState=3,Tt(this),this.g))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==F.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;_t(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){var t;this.g&&(this.o&&e.value?this.response.push(e.value):!this.o&&(t=e.value||new Uint8Array(0),t=this.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t),(e.done?It:Tt)(this),3==this.readyState)&&_t(this)},e.Oa=function(e){this.g&&(this.response=this.responseText=e,It(this))},e.Na=function(e){this.g&&(this.response=e,It(this))},e.ga=function(){this.g&&It(this)},e.setRequestHeader=function(e,t){this.A.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),r=t.next();!r.done;)r=r.value,e.push(r[0]+": "+r[1]),r=t.next();return e.join("\r\n")},Object.defineProperty(yt.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),t(I,a);var Ft=/^https?$/i,At=["POST","PUT"];function St(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,Ot(e),Lt(e)}function Ot(e){e.A||(e.A=!0,o(e,"complete"),o(e,"error"))}function xt(t){if(t.h&&void 0!==M)if(t.v&&4==R(t))setTimeout(t.Ca.bind(t),0);else if(o(t,"readystatechange"),4==R(t)){t.h=!1;try{var e,r,n=t.ca();switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var s=!0;break;default:s=!1}if(!(e=s)){if(r=0===n){let e=String(t.D).match(it)[1]||null;!e&&F.self&&F.self.location&&(e=F.self.location.protocol.slice(0,-1)),r=!Ft.test(e?e.toLowerCase():"")}e=r}if(e)o(t,"complete"),o(t,"success");else{t.o=6;try{var i=2<R(t)?t.g.statusText:""}catch(e){i=""}t.l=i+" ["+t.ca()+"]",Ot(t)}}finally{Lt(t)}}}function Lt(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);var r=e.g;e.g=null,t||o(e,"ready");try{r.onreadystatechange=null}catch(e){}}}function R(e){return e.g?e.g.readyState:0}function Rt(e){try{if(e.g){if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}}return null}catch(e){return null}}function kt(e,t,r){return r&&r.internalChannelParams&&r.internalChannelParams[e]||t}function Gt(e){this.za=0,this.i=[],this.j=new h,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=kt("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=kt("baseRetryDelayMs",5e3,e),this.Za=kt("retryDelaySeedMs",1e4,e),this.Ta=kt("forwardChannelMaxRetries",2,e),this.va=kt("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new $e(e&&e.concurrentRequestLimit),this.Ba=new vt,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function Pt(e){if(Ht(e),3==e.I){var t=e.V++,r=g(e.J);if(E(r,"SID",e.M),E(r,"RID",t),E(r,"TYPE","terminate"),qt(e,r),(t=new C(e,e.j,t)).M=2,t.A=Bt(g(r)),r=!1,F.navigator&&F.navigator.sendBeacon)try{r=F.navigator.sendBeacon(t.A.toString(),"")}catch(e){}!r&&F.Image&&((new Image).src=t.A,r=!0),r||(t.g=er(t.j,null),t.g.ea(t.A)),t.F=Date.now(),Qe(t)}$t(e)}function Mt(e){e.g&&(Qt(e),e.g.cancel(),e.g=null)}function Ht(e){Mt(e),e.v&&(F.clearTimeout(e.v),e.v=null),Yt(e),e.h.cancel(),e.m&&("number"==typeof e.m&&F.clearTimeout(e.m),e.m=null)}function Vt(e){var t;Ze(e.h)||e.m||(e.m=!0,t=e.Ea,r||Y(),n||(r(),n=!0),z.add(t,e),e.D=0)}function Ut(e,t){var r=t?t.l:e.V++,n=g(e.J);E(n,"SID",e.M),E(n,"RID",r),E(n,"AID",e.K),qt(e,n),e.u&&e.o&&Nt(n,e.u,e.o),r=new C(e,e.j,r,e.D+1),null===e.u&&(r.J=e.o),t&&(e.i=t.G.concat(e.i)),t=Jt(e,r,1e3),r.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),rt(e.h,r),Je(r,n,t)}function qt(e,r){e.H&&re(e.H,function(e,t){E(r,t,e)}),e.l&&re({},function(e,t){E(r,t,e)})}function Jt(e,t,s){s=Math.min(e.i.length,s);var i=e.l?f(e.l.Ka,e.l,e):null;e:{let r=e.i,n=-1;for(;;){var a=["count="+s];-1==n?0<s?(n=r[0].g,a.push("ofs="+n)):n=0:a.push("ofs="+n);let e=!0;for(let t=0;t<s;t++){var B=r[t].g,o=r[t].map;if((B-=n)<0)n=Math.max(0,r[t].g-100),e=!1;else try{B="req"+B+"_"||"";try{var u,l,h=o instanceof Map?o:Object.entries(o);for([u,l]of h){let e=l;H(l)&&(e=ye(l)),a.push(B+u+"="+encodeURIComponent(e))}}catch(e){throw a.push(B+"type="+encodeURIComponent("_badmap")),e}}catch(e){i&&i(o)}}if(e){h=a.join("&");break e}}h=void 0}return e=e.i.splice(0,s),t.G=e,h}function jt(e){var t;e.g||e.v||(e.Y=1,t=e.Da,r||Y(),n||(r(),n=!0),z.add(t,e),e.A=0)}function Kt(e){return!(e.g||e.v||3<=e.A)&&(e.Y++,e.v=m(f(e.Da,e),Xt(e,e.A)),e.A++,1)}function Qt(e){null!=e.B&&(F.clearTimeout(e.B),e.B=null)}function zt(e){e.g=new C(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=g(e.na),r=(E(t,"RID","rpc"),E(t,"SID",e.M),E(t,"AID",e.K),E(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&E(t,"TO",e.ia),E(t,"TYPE","xmlhttp"),qt(e,t),e.u&&e.o&&Nt(t,e.u,e.o),e.O&&(e.g.H=e.O),e.g);e=e.ba,r.M=1,r.A=Bt(g(t)),r.u=null,r.R=!0,je(r,e)}function Yt(e){null!=e.C&&(F.clearTimeout(e.C),e.C=null)}function Wt(e,t){var r,n,s,i=null;if(e.g==t){Yt(e),Qt(e),e.g=null;var a=2}else{if(!tt(e.h,t))return;i=t.G,nt(e.h,t),a=1}if(0!=e.I)if(t.o)(1==a?(i=t.u?t.u.length:0,t=Date.now()-t.F,r=e.D,o(a=Oe(),new ke(a,i)),Vt):jt)(e);else if(3==(r=t.m)||0==r&&0<t.X||(1!=a||(s=t,et((n=e).h)>=n.h.j-(n.m?1:0))||(n.m?(n.i=s.G.concat(n.i),0):1==n.I||2==n.I||n.D>=(n.Sa?0:n.Ta)||(n.m=m(f(n.Ea,n,s),Xt(n,n.D)),n.D++,0)))&&(2!=a||!Kt(e)))switch(i&&0<i.length&&(t=e.h,t.i=t.i.concat(i)),r){case 1:T(e,5);break;case 4:T(e,10);break;case 3:T(e,6);break;default:T(e,2)}}function Xt(e,t){let r=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(r*=2),r*t}function T(e,t){var r,n,s;e.j.info("Error code "+t),2==t?(r=f(e.bb,e),n=!(s=e.Ua),s=new d(s||"//www.google.com/images/cleardot.gif"),F.location&&"http"==F.location.protocol||p(s,"https"),Bt(s),(n?(t,r)=>{var n=new h;if(F.Image){let e=new Image;e.onload=U(_,n,"TestLoadImage: loaded",!0,r,e),e.onerror=U(_,n,"TestLoadImage: error",!1,r,e),e.onabort=U(_,n,"TestLoadImage: abort",!1,r,e),e.ontimeout=U(_,n,"TestLoadImage: timeout",!1,r,e),F.setTimeout(function(){e.ontimeout&&e.ontimeout()},1e4),e.src=t}else r(!1)}:(e,t)=>{let r=new h,n=new AbortController,s=setTimeout(()=>{n.abort(),_(r,0,!1,t)},1e4);fetch(e,{signal:n.signal}).then(e=>{clearTimeout(s),e.ok?_(r,0,!0,t):_(r,0,!1,t)}).catch(()=>{clearTimeout(s),_(r,0,!1,t)})})(s.toString(),r)):S(2),e.I=0,e.l&&e.l.pa(t),$t(e),Ht(e)}function $t(e){var t;e.I=0,e.ja=[],e.l&&(0==(t=st(e.h)).length&&0==e.i.length||(j(e.ja,t),j(e.ja,e.i),e.h.i.length=0,J(e.i),e.i.length=0),e.l.oa())}function Zt(e,t,r){var n,s,i=r instanceof d?g(r):new d(r);return""!=i.g?(t&&(i.g=t+"."+i.g),D(i,i.u)):(i=(n=F.location).protocol,t=t?t+"."+n.hostname:n.hostname,n=+n.port,s=new d(null),i&&p(s,i),t&&(s.g=t),n&&D(s,n),r&&(s.h=r),i=s),r=e.G,t=e.wa,r&&t&&E(i,r,t),E(i,"VER",e.ka),qt(e,i),i}function er(e,t,r){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Aa&&!e.ma?new I(new wt({ab:r})):new I(e.ma)).Fa(e.L),t}function tr(){}function rr(){}function b(e,t){a.call(this),this.g=new Gt(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client