UNPKG

firebase

Version:

Firebase JavaScript library for web and Node.js

1 lines • 705 kB
import{_isFirebaseServerApp as e,_getProvider,getApp as r,_removeServiceInstance as s,_registerComponent as i,registerVersion as o,SDK_VERSION as _}from"https://www.gstatic.com/firebasejs/12.15.0/firebase-app.js";const stringToByteArray$1=function(e){const r=[];let s=0;for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);o<128?r[s++]=o:o<2048?(r[s++]=o>>6|192,r[s++]=63&o|128):55296==(64512&o)&&i+1<e.length&&56320==(64512&e.charCodeAt(i+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[s++]=o>>18|240,r[s++]=o>>12&63|128,r[s++]=o>>6&63|128,r[s++]=63&o|128):(r[s++]=o>>12|224,r[s++]=o>>6&63|128,r[s++]=63&o|128)}return r},h={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(e,r){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const s=r?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let r=0;r<e.length;r+=3){const o=e[r],_=r+1<e.length,h=_?e[r+1]:0,d=r+2<e.length,f=d?e[r+2]:0,g=o>>2,A=(3&o)<<4|h>>4;let b=(15&h)<<2|f>>6,M=63&f;d||(M=64,_||(b=64)),i.push(s[g],s[A],s[b],s[M])}return i.join("")},encodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?btoa(e):this.encodeByteArray(stringToByteArray$1(e),r)},decodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?atob(e):function(e){const r=[];let s=0,i=0;for(;s<e.length;){const o=e[s++];if(o<128)r[i++]=String.fromCharCode(o);else if(o>191&&o<224){const _=e[s++];r[i++]=String.fromCharCode((31&o)<<6|63&_)}else if(o>239&&o<365){const _=((7&o)<<18|(63&e[s++])<<12|(63&e[s++])<<6|63&e[s++])-65536;r[i++]=String.fromCharCode(55296+(_>>10)),r[i++]=String.fromCharCode(56320+(1023&_))}else{const _=e[s++],h=e[s++];r[i++]=String.fromCharCode((15&o)<<12|(63&_)<<6|63&h)}}return r.join("")}(this.decodeStringToByteArray(e,r))},decodeStringToByteArray(e,r){this.init_();const s=r?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let r=0;r<e.length;){const o=s[e.charAt(r++)],_=r<e.length?s[e.charAt(r)]:0;++r;const h=r<e.length?s[e.charAt(r)]:64;++r;const d=r<e.length?s[e.charAt(r)]:64;if(++r,null==o||null==_||null==h||null==d)throw new DecodeBase64StringError;const f=o<<2|_>>4;if(i.push(f),64!==h){const e=_<<4&240|h>>2;if(i.push(e),64!==d){const e=h<<6&192|d;i.push(e)}}}return i},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,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64urlEncodeWithoutPadding=function(e){return function(e){const r=stringToByteArray$1(e);return h.encodeByteArray(r,!0)}(e).replace(/\./g,"")};function getGlobal(){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.")}const getDefaultsFromCookie=()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const r=e&&function(e){try{return h.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return r&&JSON.parse(r)},getDefaults=()=>{try{return getGlobal().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||getDefaultsFromCookie()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},getDefaultEmulatorHostnameAndPort=e=>{const r=(e=>getDefaults()?.emulatorHosts?.[e])(e);if(!r)return;const s=r.lastIndexOf(":");if(s<=0||s+1===r.length)throw new Error(`Invalid host ${r} with no separate hostname and port!`);const i=parseInt(r.substring(s+1),10);return"["===r[0]?[r.substring(1,s-1),i]:[r.substring(0,s),i]};function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isNode(){const e=getDefaults()?.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function isSafari(){return!isNode()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function isSafariOrWebkit(){return!isNode()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}class FirebaseError extends Error{constructor(e,r,s){super(r),this.code=e,this.customData=s,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(e,r,s){this.service=e,this.serviceName=r,this.errors=s}create(e,...r){const s=r[0]||{},i=`${this.service}/${e}`,o=this.errors[e],_=o?function replaceTemplate(e,r){return e.replace(d,((e,s)=>{const i=r[s];return null!=i?String(i):`<${s}?>`}))}(o,s):"Error",h=`${this.serviceName}: ${_} (${i}).`;return new FirebaseError(i,h,s)}}const d=/\{\$([^}]+)}/g;function deepEqual(e,r){if(e===r)return!0;const s=Object.keys(e),i=Object.keys(r);for(const o of s){if(!i.includes(o))return!1;const s=e[o],_=r[o];if(isObject(s)&&isObject(_)){if(!deepEqual(s,_))return!1}else if(s!==_)return!1}for(const e of i)if(!s.includes(e))return!1;return!0}function isObject(e){return null!==e&&"object"==typeof e}function getModularInstance(e){return e&&e._delegate?e._delegate:e}function isCloudWorkstation(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function pingServer(e){return(await fetch(e,{credentials:"include"})).ok}class Component{constructor(e,r,s){this.name=e,this.instanceFactory=r,this.type=s,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 f,g,A,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e;function m(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(e,r,s){s||(s=0);const i=Array(16);if("string"==typeof r)for(var o=0;o<16;++o)i[o]=r.charCodeAt(s++)|r.charCodeAt(s++)<<8|r.charCodeAt(s++)<<16|r.charCodeAt(s++)<<24;else for(o=0;o<16;++o)i[o]=r[s++]|r[s++]<<8|r[s++]<<16|r[s++]<<24;r=e.g[0],s=e.g[1],o=e.g[2];let _,h=e.g[3];_=r+(h^s&(o^h))+i[0]+3614090360&4294967295,_=h+(o^(r=s+(_<<7&4294967295|_>>>25))&(s^o))+i[1]+3905402710&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(s^h&(r^s))+i[2]+606105819&4294967295,_=s+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+i[3]+3250441966&4294967295,_=r+(h^(s=o+(_<<22&4294967295|_>>>10))&(o^h))+i[4]+4118548399&4294967295,_=h+(o^(r=s+(_<<7&4294967295|_>>>25))&(s^o))+i[5]+1200080426&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(s^h&(r^s))+i[6]+2821735955&4294967295,_=s+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+i[7]+4249261313&4294967295,_=r+(h^(s=o+(_<<22&4294967295|_>>>10))&(o^h))+i[8]+1770035416&4294967295,_=h+(o^(r=s+(_<<7&4294967295|_>>>25))&(s^o))+i[9]+2336552879&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(s^h&(r^s))+i[10]+4294925233&4294967295,_=s+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+i[11]+2304563134&4294967295,_=r+(h^(s=o+(_<<22&4294967295|_>>>10))&(o^h))+i[12]+1804603682&4294967295,_=h+(o^(r=s+(_<<7&4294967295|_>>>25))&(s^o))+i[13]+4254626195&4294967295,h=r+(_<<12&4294967295|_>>>20),_=o+(s^h&(r^s))+i[14]+2792965006&4294967295,_=s+(r^(o=h+(_<<17&4294967295|_>>>15))&(h^r))+i[15]+1236535329&4294967295,_=r+(o^h&((s=o+(_<<22&4294967295|_>>>10))^o))+i[1]+4129170786&4294967295,_=h+(s^o&((r=s+(_<<5&4294967295|_>>>27))^s))+i[6]+3225465664&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^s&(h^r))+i[11]+643717713&4294967295,_=s+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+i[0]+3921069994&4294967295,_=r+(o^h&((s=o+(_<<20&4294967295|_>>>12))^o))+i[5]+3593408605&4294967295,_=h+(s^o&((r=s+(_<<5&4294967295|_>>>27))^s))+i[10]+38016083&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^s&(h^r))+i[15]+3634488961&4294967295,_=s+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+i[4]+3889429448&4294967295,_=r+(o^h&((s=o+(_<<20&4294967295|_>>>12))^o))+i[9]+568446438&4294967295,_=h+(s^o&((r=s+(_<<5&4294967295|_>>>27))^s))+i[14]+3275163606&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^s&(h^r))+i[3]+4107603335&4294967295,_=s+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+i[8]+1163531501&4294967295,_=r+(o^h&((s=o+(_<<20&4294967295|_>>>12))^o))+i[13]+2850285829&4294967295,_=h+(s^o&((r=s+(_<<5&4294967295|_>>>27))^s))+i[2]+4243563512&4294967295,h=r+(_<<9&4294967295|_>>>23),_=o+(r^s&(h^r))+i[7]+1735328473&4294967295,_=s+(h^r&((o=h+(_<<14&4294967295|_>>>18))^h))+i[12]+2368359562&4294967295,_=r+((s=o+(_<<20&4294967295|_>>>12))^o^h)+i[5]+4294588738&4294967295,_=h+((r=s+(_<<4&4294967295|_>>>28))^s^o)+i[8]+2272392833&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^s)+i[11]+1839030562&4294967295,_=s+((o=h+(_<<16&4294967295|_>>>16))^h^r)+i[14]+4259657740&4294967295,_=r+((s=o+(_<<23&4294967295|_>>>9))^o^h)+i[1]+2763975236&4294967295,_=h+((r=s+(_<<4&4294967295|_>>>28))^s^o)+i[4]+1272893353&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^s)+i[7]+4139469664&4294967295,_=s+((o=h+(_<<16&4294967295|_>>>16))^h^r)+i[10]+3200236656&4294967295,_=r+((s=o+(_<<23&4294967295|_>>>9))^o^h)+i[13]+681279174&4294967295,_=h+((r=s+(_<<4&4294967295|_>>>28))^s^o)+i[0]+3936430074&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^s)+i[3]+3572445317&4294967295,_=s+((o=h+(_<<16&4294967295|_>>>16))^h^r)+i[6]+76029189&4294967295,_=r+((s=o+(_<<23&4294967295|_>>>9))^o^h)+i[9]+3654602809&4294967295,_=h+((r=s+(_<<4&4294967295|_>>>28))^s^o)+i[12]+3873151461&4294967295,h=r+(_<<11&4294967295|_>>>21),_=o+(h^r^s)+i[15]+530742520&4294967295,_=s+((o=h+(_<<16&4294967295|_>>>16))^h^r)+i[2]+3299628645&4294967295,_=r+(o^((s=o+(_<<23&4294967295|_>>>9))|~h))+i[0]+4096336452&4294967295,_=h+(s^((r=s+(_<<6&4294967295|_>>>26))|~o))+i[7]+1126891415&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~s))+i[14]+2878612391&4294967295,_=s+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+i[5]+4237533241&4294967295,_=r+(o^((s=o+(_<<21&4294967295|_>>>11))|~h))+i[12]+1700485571&4294967295,_=h+(s^((r=s+(_<<6&4294967295|_>>>26))|~o))+i[3]+2399980690&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~s))+i[10]+4293915773&4294967295,_=s+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+i[1]+2240044497&4294967295,_=r+(o^((s=o+(_<<21&4294967295|_>>>11))|~h))+i[8]+1873313359&4294967295,_=h+(s^((r=s+(_<<6&4294967295|_>>>26))|~o))+i[15]+4264355552&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~s))+i[6]+2734768916&4294967295,_=s+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+i[13]+1309151649&4294967295,_=r+(o^((s=o+(_<<21&4294967295|_>>>11))|~h))+i[4]+4149444226&4294967295,_=h+(s^((r=s+(_<<6&4294967295|_>>>26))|~o))+i[11]+3174756917&4294967295,h=r+(_<<10&4294967295|_>>>22),_=o+(r^(h|~s))+i[2]+718787259&4294967295,_=s+(h^((o=h+(_<<15&4294967295|_>>>17))|~r))+i[9]+3951481745&4294967295,e.g[0]=e.g[0]+r&4294967295,e.g[1]=e.g[1]+(o+(_<<21&4294967295|_>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+h&4294967295}function t(e,r){this.h=r;const s=[];let i=!0;for(let o=e.length-1;o>=0;o--){const _=0|e[o];i&&_==r||(s[o]=_,i=!1)}this.g=s}!function k(e,r){function c(){}c.prototype=r.prototype,e.F=r.prototype,e.prototype=new c,e.prototype.constructor=e,e.D=function(e,s,i){for(var o=Array(arguments.length-2),_=2;_<arguments.length;_++)o[_-2]=arguments[_];return r.prototype[s].apply(e,o)}}(m,(function l(){this.blockSize=-1})),m.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},m.prototype.v=function(e,r){void 0===r&&(r=e.length);const s=r-this.blockSize,i=this.C;let o=this.h,_=0;for(;_<r;){if(0==o)for(;_<=s;)n(this,e,_),_+=this.blockSize;if("string"==typeof e){for(;_<r;)if(i[o++]=e.charCodeAt(_++),o==this.blockSize){n(this,i),o=0;break}}else for(;_<r;)if(i[o++]=e[_++],o==this.blockSize){n(this,i),o=0;break}}this.h=o,this.o+=r},m.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var r=1;r<e.length-8;++r)e[r]=0;r=8*this.o;for(var s=e.length-8;s<e.length;++s)e[s]=255&r,r/=256;for(this.v(e),e=Array(16),r=0,s=0;s<4;++s)for(let i=0;i<32;i+=8)e[r++]=this.g[s]>>>i&255;return e};var r={};function u(e){return-128<=e&&e<128?function p(e,s){var i=r;return Object.prototype.hasOwnProperty.call(i,e)?i[e]:i[e]=s(e)}(e,(function(e){return new t([0|e],e<0?-1:0)})):new t([0|e],e<0?-1:0)}function v(e){if(isNaN(e)||!isFinite(e))return s;if(e<0)return x(v(-e));const r=[];let i=1;for(let s=0;e>=i;s++)r[s]=e/i|0,i*=4294967296;return new t(r,0)}var s=u(0),i=u(1),o=u(16777216);function C(e){if(0!=e.h)return!1;for(let r=0;r<e.g.length;r++)if(0!=e.g[r])return!1;return!0}function B(e){return-1==e.h}function x(e){const r=e.g.length,s=[];for(let i=0;i<r;i++)s[i]=~e.g[i];return new t(s,~e.h).add(i)}function F(e,r){return e.add(x(r))}function G(e,r){for(;(65535&e[r])!=e[r];)e[r+1]+=e[r]>>>16,e[r]&=65535,r++}function H(e,r){this.g=e,this.h=r}function D(e,r){if(C(r))throw Error("division by zero");if(C(e))return new H(s,s);if(B(e))return r=D(x(e),r),new H(x(r.g),x(r.h));if(B(r))return r=D(e,x(r)),new H(x(r.g),r.h);if(e.g.length>30){if(B(e)||B(r))throw Error("slowDivide_ only works with positive integers.");for(var o=i,_=r;_.l(e)<=0;)o=I(o),_=I(_);var h=J(o,1),d=J(_,1);for(_=J(_,2),o=J(o,2);!C(_);){var f=d.add(_);f.l(e)<=0&&(h=h.add(o),d=f),_=J(_,1),o=J(o,1)}return r=F(e,h.j(r)),new H(h,r)}for(h=s;e.l(r)>=0;){for(o=Math.max(1,Math.floor(e.m()/r.m())),_=(_=Math.ceil(Math.log(o)/Math.LN2))<=48?1:Math.pow(2,_-48),f=(d=v(o)).j(r);B(f)||f.l(e)>0;)f=(d=v(o-=_)).j(r);C(d)&&(d=i),h=h.add(d),e=F(e,f)}return new H(h,e)}function I(e){const r=e.g.length+1,s=[];for(let i=0;i<r;i++)s[i]=e.i(i)<<1|e.i(i-1)>>>31;return new t(s,e.h)}function J(e,r){const s=r>>5;r%=32;const i=e.g.length-s,o=[];for(let _=0;_<i;_++)o[_]=r>0?e.i(_+s)>>>r|e.i(_+s+1)<<32-r:e.i(_+s);return new t(o,e.h)}(e=t.prototype).m=function(){if(B(this))return-x(this).m();let e=0,r=1;for(let s=0;s<this.g.length;s++){const i=this.i(s);e+=(i>=0?i:4294967296+i)*r,r*=4294967296}return e},e.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(C(this))return"0";if(B(this))return"-"+x(this).toString(e);const r=v(Math.pow(e,6));var s=this;let i="";for(;;){const o=D(s,r).g;let _=(((s=F(s,o.j(r))).g.length>0?s.g[0]:s.h)>>>0).toString(e);if(C(s=o))return _+i;for(;_.length<6;)_="0"+_;i=_+i}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return B(e=F(this,e))?-1:C(e)?0:1},e.abs=function(){return B(this)?x(this):this},e.add=function(e){const r=Math.max(this.g.length,e.g.length),s=[];let i=0;for(let o=0;o<=r;o++){let r=i+(65535&this.i(o))+(65535&e.i(o)),_=(r>>>16)+(this.i(o)>>>16)+(e.i(o)>>>16);i=_>>>16,r&=65535,_&=65535,s[o]=_<<16|r}return new t(s,-2147483648&s[s.length-1]?-1:0)},e.j=function(e){if(C(this)||C(e))return s;if(B(this))return B(e)?x(this).j(x(e)):x(x(this).j(e));if(B(e))return x(this.j(x(e)));if(this.l(o)<0&&e.l(o)<0)return v(this.m()*e.m());const r=this.g.length+e.g.length,i=[];for(var _=0;_<2*r;_++)i[_]=0;for(_=0;_<this.g.length;_++)for(let r=0;r<e.g.length;r++){const s=this.i(_)>>>16,o=65535&this.i(_),h=e.i(r)>>>16,d=65535&e.i(r);i[2*_+2*r]+=o*d,G(i,2*_+2*r),i[2*_+2*r+1]+=s*d,G(i,2*_+2*r+1),i[2*_+2*r+1]+=o*h,G(i,2*_+2*r+1),i[2*_+2*r+2]+=s*h,G(i,2*_+2*r+2)}for(e=0;e<r;e++)i[e]=i[2*e+1]<<16|i[2*e];for(e=r;e<2*r;e++)i[e]=0;return new t(i,0)},e.B=function(e){return D(this,e).h},e.and=function(e){const r=Math.max(this.g.length,e.g.length),s=[];for(let i=0;i<r;i++)s[i]=this.i(i)&e.i(i);return new t(s,this.h&e.h)},e.or=function(e){const r=Math.max(this.g.length,e.g.length),s=[];for(let i=0;i<r;i++)s[i]=this.i(i)|e.i(i);return new t(s,this.h|e.h)},e.xor=function(e){const r=Math.max(this.g.length,e.g.length),s=[];for(let i=0;i<r;i++)s[i]=this.i(i)^e.i(i);return new t(s,this.h^e.h)},m.prototype.digest=m.prototype.A,m.prototype.reset=m.prototype.u,m.prototype.update=m.prototype.v,g=m,t.prototype.add=t.prototype.add,t.prototype.multiply=t.prototype.j,t.prototype.modulo=t.prototype.B,t.prototype.compare=t.prototype.l,t.prototype.toNumber=t.prototype.m,t.prototype.toString=t.prototype.toString,t.prototype.getBits=t.prototype.i,t.fromNumber=v,t.fromString=function y(e,r){if(0==e.length)throw Error("number format error: empty string");if((r=r||10)<2||36<r)throw Error("radix out of range: "+r);if("-"==e.charAt(0))return x(y(e.substring(1),r));if(e.indexOf("-")>=0)throw Error('number format error: interior "-" character');const i=v(Math.pow(r,8));let o=s;for(let s=0;s<e.length;s+=8){var _=Math.min(8,e.length-s);const h=parseInt(e.substring(s,s+_),r);_<8?(_=v(Math.pow(r,_)),o=o.j(_).add(v(h))):(o=o.j(i),o=o.add(v(h)))}return o},f=t}).apply(void 0!==b?b:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(A||(A={}));const M={debug:A.DEBUG,verbose:A.VERBOSE,info:A.INFO,warn:A.WARN,error:A.ERROR,silent:A.SILENT},q=A.INFO,$={[A.DEBUG]:"log",[A.VERBOSE]:"log",[A.INFO]:"info",[A.WARN]:"warn",[A.ERROR]:"error"},defaultLogHandler=(e,r,...s)=>{if(r<e.logLevel)return;const i=(new Date).toISOString(),o=$[r];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${r})`);console[o](`[${i}] ${e.name}:`,...s)};var j,ee,te,ne,re,se,ie,oe,ae,ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e,r=Object.defineProperty;var s=function ba(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ue&&ue];for(var r=0;r<e.length;++r){var s=e[r];if(s&&s.Math==Math)return s}throw Error("Cannot find global object")}(this);function da(e,i){if(i)e:{var o=s;e=e.split(".");for(var _=0;_<e.length-1;_++){var h=e[_];if(!(h in o))break e;o=o[h]}(i=i(_=o[e=e[e.length-1]]))!=_&&null!=i&&r(o,e,{configurable:!0,writable:!0,value:i})}}da("Symbol.dispose",(function(e){return e||Symbol("Symbol.dispose")})),da("Array.prototype.values",(function(e){return e||function(){return this[Symbol.iterator]()}})),da("Object.entries",(function(e){return e||function(e){var r,s=[];for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.push([r,e[r]]);return s}}));var i=i||{},o=this||self;function n(e){var r=typeof e;return"object"==r&&null!=e||"function"==r}function fa(e,r,s){return e.call.apply(e.bind,arguments)}function p(e,r,s){return(p=fa).apply(null,arguments)}function ha(e,r){var s=Array.prototype.slice.call(arguments,1);return function(){var r=s.slice();return r.push.apply(r,arguments),e.apply(this,r)}}function t(e,r){function c(){}c.prototype=r.prototype,e.Z=r.prototype,e.prototype=new c,e.prototype.constructor=e,e.Ob=function(e,s,i){for(var o=Array(arguments.length-2),_=2;_<arguments.length;_++)o[_-2]=arguments[_];return r.prototype[s].apply(e,o)}}var _="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function ja(e){const r=e.length;if(r>0){const s=Array(r);for(let i=0;i<r;i++)s[i]=e[i];return s}return[]}function ka(e,r){for(let r=1;r<arguments.length;r++){const i=arguments[r];var s=typeof i;if("array"==(s="object"!=s?s:i?Array.isArray(i)?"array":s:"null")||"object"==s&&"number"==typeof i.length){s=e.length||0;const r=i.length||0;e.length=s+r;for(let o=0;o<r;o++)e[s+o]=i[o]}else e.push(i)}}function ma(e){o.setTimeout((()=>{throw e}),0)}function na(){var e=g;let r=null;return e.g&&(r=e.g,e.g=e.g.next,e.g||(e.h=null),r.next=null),r}var h=new class la{constructor(e,r){this.i=e,this.j=r,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new ra),(e=>e.reset()));class ra{constructor(){this.next=this.g=this.h=null}set(e,r){this.h=e,this.g=r,this.next=null}reset(){this.next=this.g=this.h=null}}let d,f=!1,g=new class pa{constructor(){this.h=this.g=null}add(e,r){const s=h.get();s.set(e,r),this.h?this.h.next=s:this.g=s,this.h=s}},ta=()=>{const e=Promise.resolve(void 0);d=()=>{e.then(sa)}};function sa(){for(var e;e=na();){try{e.h.call(e.g)}catch(e){ma(e)}var r=h;r.j(e),r.h<100&&(r.h++,e.next=r.g,r.g=e)}f=!1}function w(){this.u=this.u,this.C=this.C}function x(e,r){this.type=e,this.g=this.target=r,this.defaultPrevented=!1}w.prototype.u=!1,w.prototype.dispose=function(){this.u||(this.u=!0,this.N())},w.prototype[Symbol.dispose]=function(){this.dispose()},w.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},x.prototype.h=function(){this.defaultPrevented=!0};var A=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,r=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const c=()=>{};o.addEventListener("test",c,r),o.removeEventListener("test",c,r)}catch(e){}return e}();function y(e){return/^[\s\xa0]*$/.test(e)}function z(e,r){x.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,r)}t(z,x),z.prototype.init=function(e,r){const s=this.type=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=r,(r=e.relatedTarget)||("mouseover"==s?r=e.fromElement:"mouseout"==s&&(r=e.toElement)),this.relatedTarget=r,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.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,e.defaultPrevented&&z.Z.h.call(this)},z.prototype.h=function(){z.Z.h.call(this);const e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var b="closure_listenable_"+(1e6*Math.random()|0),M=0;function wa(e,r,s,i,o){this.listener=e,this.proxy=null,this.src=r,this.type=s,this.capture=!!i,this.ha=o,this.key=++M,this.da=this.fa=!1}function xa(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function ya(e,r,s){for(const i in e)r.call(s,e[i],i,e)}function Ba(e){const r={};for(const s in e)r[s]=e[s];return r}const q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Da(e,r){let s,i;for(let r=1;r<arguments.length;r++){for(s in i=arguments[r],i)e[s]=i[s];for(let r=0;r<q.length;r++)s=q[r],Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}}function Ea(e){this.src=e,this.g={},this.h=0}function Ga(e,r){const s=r.type;if(s in e.g){var i,o=e.g[s],_=Array.prototype.indexOf.call(o,r,void 0);(i=_>=0)&&Array.prototype.splice.call(o,_,1),i&&(xa(r),0==e.g[s].length&&(delete e.g[s],e.h--))}}function Fa(e,r,s,i){for(let o=0;o<e.length;++o){const _=e[o];if(!_.da&&_.listener==r&&_.capture==!!s&&_.ha==i)return o}return-1}Ea.prototype.add=function(e,r,s,i,o){const _=e.toString();(e=this.g[_])||(e=this.g[_]=[],this.h++);const h=Fa(e,r,i,o);return h>-1?(r=e[h],s||(r.fa=!1)):((r=new wa(r,this.src,_,!!i,o)).fa=s,e.push(r)),r};var $="closure_lm_"+(1e6*Math.random()|0),ae={};function Ka(e,r,s,i,o){if(i&&i.once)return La(e,r,s,i,o);if(Array.isArray(r)){for(let _=0;_<r.length;_++)Ka(e,r[_],s,i,o);return null}return s=Ma(s),e&&e[b]?e.J(r,s,n(i)?!!i.capture:!!i,o):Na(e,r,s,!1,i,o)}function Na(e,r,s,i,o,_){if(!r)throw Error("Invalid event type");const h=n(o)?!!o.capture:!!o;let d=Oa(e);if(d||(e[$]=d=new Ea(e)),(s=d.add(r,s,i,h,_)).proxy)return s;if(i=function Pa(){function a(r){return e.call(a.src,a.listener,r)}const e=Ra;return a}(),s.proxy=i,i.src=e,i.listener=s,e.addEventListener)A||(o=h),void 0===o&&(o=!1),e.addEventListener(r.toString(),i,o);else if(e.attachEvent)e.attachEvent(Qa(r.toString()),i);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(i)}return s}function La(e,r,s,i,o){if(Array.isArray(r)){for(let _=0;_<r.length;_++)La(e,r[_],s,i,o);return null}return s=Ma(s),e&&e[b]?e.K(r,s,n(i)?!!i.capture:!!i,o):Na(e,r,s,!0,i,o)}function Sa(e,r,s,i,o){if(Array.isArray(r))for(var _=0;_<r.length;_++)Sa(e,r[_],s,i,o);else i=n(i)?!!i.capture:!!i,s=Ma(s),e&&e[b]?(e=e.i,(_=String(r).toString())in e.g&&((s=Fa(r=e.g[_],s,i,o))>-1&&(xa(r[s]),Array.prototype.splice.call(r,s,1),0==r.length&&(delete e.g[_],e.h--)))):e&&(e=Oa(e))&&(r=e.g[r.toString()],e=-1,r&&(e=Fa(r,s,i,o)),(s=e>-1?r[e]:null)&&Ta(s))}function Ta(e){if("number"!=typeof e&&e&&!e.da){var r=e.src;if(r&&r[b])Ga(r.i,e);else{var s=e.type,i=e.proxy;r.removeEventListener?r.removeEventListener(s,i,e.capture):r.detachEvent?r.detachEvent(Qa(s),i):r.addListener&&r.removeListener&&r.removeListener(i),(s=Oa(r))?(Ga(s,e),0==s.h&&(s.src=null,r[$]=null)):xa(e)}}}function Qa(e){return e in ae?ae[e]:ae[e]="on"+e}function Ra(e,r){if(e.da)e=!0;else{r=new z(r,this);const s=e.listener,i=e.ha||e.src;e.fa&&Ta(e),e=s.call(i,r)}return e}function Oa(e){return(e=e[$])instanceof Ea?e:null}var ce="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ma(e){return"function"==typeof e?e:(e[ce]||(e[ce]=function(r){return e.handleEvent(r)}),e[ce])}function C(){w.call(this),this.i=new Ea(this),this.M=this,this.G=null}function D(e,r){var s,i=e.G;if(i)for(s=[];i;i=i.G)s.push(i);if(e=e.M,i=r.type||r,"string"==typeof r)r=new x(r,e);else if(r instanceof x)r.target=r.target||e;else{var o=r;Da(r=new x(i,e),o)}let _,h;if(o=!0,s)for(h=s.length-1;h>=0;h--)_=r.g=s[h],o=Va(_,i,!0,r)&&o;if(_=r.g=e,o=Va(_,i,!0,r)&&o,o=Va(_,i,!1,r)&&o,s)for(h=0;h<s.length;h++)_=r.g=s[h],o=Va(_,i,!1,r)&&o}function Va(e,r,s,i){if(!(r=e.i.g[String(r)]))return!0;r=r.concat();let o=!0;for(let _=0;_<r.length;++_){const h=r[_];if(h&&!h.da&&h.capture==s){const r=h.listener,s=h.ha||h.src;h.fa&&Ga(e.i,h),o=!1!==r.call(s,i)&&o}}return o&&!i.defaultPrevented}function Xa(e){e.g=function Wa(e,r){if("function"!=typeof e){if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=p(e.handleEvent,e)}return Number(r)>2147483647?-1:o.setTimeout(e,r||0)}((()=>{e.g=null,e.i&&(e.i=!1,Xa(e))}),e.l);const r=e.h;e.h=null,e.m.apply(null,r)}t(C,w),C.prototype[b]=!0,C.prototype.removeEventListener=function(e,r,s,i){Sa(this,e,r,s,i)},C.prototype.N=function(){if(C.Z.N.call(this),this.i){var e=this.i;for(const r in e.g){const s=e.g[r];for(let e=0;e<s.length;e++)xa(s[e]);delete e.g[r],e.h--}}this.G=null},C.prototype.J=function(e,r,s,i){return this.i.add(String(e),r,!1,s,i)},C.prototype.K=function(e,r,s,i){return this.i.add(String(e),r,!0,s,i)};class Ya extends w{constructor(e,r){super(),this.m=e,this.l=r,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Xa(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function E(e){w.call(this),this.h=e,this.g={}}t(E,w);var le=[];function $a(e){ya(e.g,(function(e,r){this.g.hasOwnProperty(r)&&Ta(e)}),e),e.g={}}E.prototype.N=function(){E.Z.N.call(this),$a(this)},E.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var _e=o.JSON.stringify,he=o.JSON.parse,de=class{stringify(e){return o.JSON.stringify(e,void 0)}parse(e){return o.JSON.parse(e,void 0)}};function eb(){}function fb(){}var pe={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function gb(){x.call(this,"d")}function hb(){x.call(this,"c")}t(gb,x),t(hb,x);var me={},Ee=null;function jb(){return Ee=Ee||new C}function kb(e){x.call(this,me.Ia,e)}function lb(e){const r=jb();D(r,new kb(r))}function mb(e,r){x.call(this,me.STAT_EVENT,e),this.stat=r}function J(e){const r=jb();D(r,new mb(r,e))}function nb(e,r){x.call(this,me.Ja,e),this.size=r}function ob(e,r){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return o.setTimeout((function(){e()}),r)}function pb(){this.g=!0}function K(e,r,s,i){e.info((function(){return"XMLHTTP TEXT ("+r+"): "+function sb(e,r){if(!e.g)return r;if(!r)return null;try{const _=JSON.parse(r);if(_)for(e=0;e<_.length;e++)if(Array.isArray(_[e])){var s=_[e];if(!(s.length<2)){var i=s[1];if(Array.isArray(i)&&!(i.length<1)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(let e=1;e<i.length;e++)i[e]=""}}}return _e(_)}catch(e){return r}}(e,s)+(i?" "+i:"")}))}me.Ia="serverreachability",t(kb,x),me.STAT_EVENT="statevent",t(mb,x),me.Ja="timingevent",t(nb,x),pb.prototype.ua=function(){this.g=!1},pb.prototype.info=function(){};var fe,ge={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Te={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function xb(){}function L(e){return encodeURIComponent(String(e))}function yb(e){var r=1;e=e.split(":");const s=[];for(;r>0&&e.length;)s.push(e.shift()),r--;return e.length&&s.push(e.join(":")),s}function N(e,r,s,i){this.j=e,this.i=r,this.l=s,this.S=i||1,this.V=new E(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 zb}function zb(){this.i=null,this.g="",this.h=!1}t(xb,eb),xb.prototype.g=function(){return new XMLHttpRequest},fe=new xb;var Ie={},Re={};function Cb(e,r,s){e.M=1,e.A=Db(O(r)),e.u=s,e.R=!0,Eb(e,null)}function Eb(e,r){e.F=Date.now(),Fb(e),e.B=O(e.A);var s=e.B,i=e.S;Array.isArray(i)||(i=[String(i)]),Gb(s.i,"t",i),e.C=0,s=e.j.L,e.h=new zb,e.g=Hb(e.j,s?r:null,!e.u),e.P>0&&(e.O=new Ya(p(e.Y,e,e.g),e.P)),r=e.V,s=e.g,i=e.ba;var o="readystatechange";Array.isArray(o)||(o&&(le[0]=o.toString()),o=le);for(let e=0;e<o.length;e++){const _=Ka(s,o[e],i||r.handleEvent,!1,r.h||r);if(!_)break;r.g[_.key]=_}r=e.J?Ba(e.J):{},e.u?(e.v||(e.v="POST"),r["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,r)):(e.v="GET",e.g.ea(e.B,e.v,null,r)),lb(),function qb(e,r,s,i,o,_){e.info((function(){if(e.g)if(_){var h="",d=_.split("&");for(let e=0;e<d.length;e++){var f=d[e].split("=");if(f.length>1){const e=f[0];f=f[1];const r=e.split("_");h=r.length>=2&&"type"==r[1]?h+(e+"=")+f+"&":h+(e+"=redacted&")}}}else h=null;else h=_;return"XMLHTTP REQ ("+i+") [attempt "+o+"]: "+r+"\n"+s+"\n"+h}))}(e.i,e.v,e.B,e.l,e.S,e.u)}function Ob(e){return!!e.g&&("GET"==e.v&&2!=e.M&&e.j.Aa)}function Nb(e,r){var s=e.C,i=r.indexOf("\n",s);return-1==i?Re:(s=Number(r.substring(s,i)),isNaN(s)?Ie:(i+=1)+s>r.length?Re:(r=r.slice(i,i+s),e.C=i+s,r))}function Fb(e){e.T=Date.now()+e.H,Sb(e,e.H)}function Sb(e,r){if(null!=e.D)throw Error("WatchDog timer not null");e.D=ob(p(e.aa,e),r)}function Jb(e){e.D&&(o.clearTimeout(e.D),e.D=null)}function Mb(e){0==e.j.I||e.K||Qb(e.j,e)}function Q(e){Jb(e);var r=e.O;r&&"function"==typeof r.dispose&&r.dispose(),e.O=null,$a(e.V),e.g&&(r=e.g,e.g=null,r.abort(),r.dispose())}function Lb(e,r){try{var s=e.j;if(0!=s.I&&(s.g==e||Tb(s.h,e)))if(!e.L&&Tb(s.h,e)&&3==s.I){try{var i=s.Ba.g.parse(r)}catch(e){i=null}if(Array.isArray(i)&&3==i.length){var o=i;if(0==o[0]){e:if(!s.v){if(s.g){if(!(s.g.F+3e3<e.F))break e;Ub(s),Vb(s)}Wb(s),J(18)}}else s.xa=o[1],0<s.xa-s.K&&o[2]<37500&&s.F&&0==s.A&&!s.C&&(s.C=ob(p(s.Va,s),6e3));Xb(s.h)<=1&&s.ta&&(s.ta=void 0)}else R(s,11)}else if((e.L||s.g==e)&&Ub(s),!y(r))for(o=s.Ba.g.parse(r),r=0;r<o.length;r++){let g=o[r];const A=g[0];if(!(A<=s.K))if(s.K=A,g=g[1],2==s.I)if("c"==g[0]){s.M=g[1],s.ba=g[2];const r=g[3];null!=r&&(s.ka=r,s.j.info("VER="+s.ka));const o=g[4];null!=o&&(s.za=o,s.j.info("SVER="+s.za));const A=g[5];null!=A&&"number"==typeof A&&A>0&&(i=1.5*A,s.O=i,s.j.info("backChannelRequestTimeoutMs_="+i)),i=s;const b=e.g;if(b){const e=b.g?b.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var _=i.h;_.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(_.j=_.l,_.g=new Set,_.h&&(Yb(_,_.h),_.h=null))}if(i.G){const e=b.g?b.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(i.wa=e,S(i.J,i.G,e))}}s.I=3,s.l&&s.l.ra(),s.aa&&(s.T=Date.now()-e.F,s.j.info("Handshake RTT: "+s.T+"ms"));var h=e;if((i=s).na=Zb(i,i.L?i.ba:null,i.W),h.L){$b(i.h,h);var d=h,f=i.O;f&&(d.H=f),d.D&&(Jb(d),Fb(d)),i.g=h}else ac(i);s.i.length>0&&bc(s)}else"stop"!=g[0]&&"close"!=g[0]||R(s,7);else 3==s.I&&("stop"==g[0]||"close"==g[0]?"stop"==g[0]?R(s,7):cc(s):"noop"!=g[0]&&s.l&&s.l.qa(g),s.A=0)}lb()}catch(e){}}N.prototype.ba=function(e){e=e.target;const r=this.O;r&&3==P(e)?r.j():this.Y(e)},N.prototype.Y=function(e){try{if(e==this.g)e:{const f=P(this.g),g=this.g.ya();this.g.ca();if(!(f<3)&&(3!=f||this.g&&(this.h.h||this.g.la()||Ib(this.g)))){this.K||4!=f||7==g||lb(),Jb(this);var r=this.g.ca();this.X=r;var s=function Kb(e){if(!Ob(e))return e.g.la();const r=Ib(e.g);if(""===r)return"";let s="";const i=r.length,_=4==P(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return Q(e),Mb(e),"";e.h.i=new o.TextDecoder}for(let o=0;o<i;o++)e.h.h=!0,s+=e.h.i.decode(r[o],{stream:!(_&&o==i-1)});return r.length=0,e.h.g+=s,e.C=0,e.h.g}(this);if(this.o=200==r,function rb(e,r,s,i,o,_,h){e.info((function(){return"XMLHTTP RESP ("+i+") [ attempt "+o+"]: "+r+"\n"+s+"\n"+_+" "+h}))}(this.i,this.v,this.B,this.l,this.S,f,r),this.o){if(this.U&&!this.L){t:{if(this.g){var i,_=this.g;if((i=_.g?_.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!y(i)){var h=i;break t}}h=null}if(!(e=h)){this.o=!1,this.m=3,J(12),Q(this),Mb(this);break e}K(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Lb(this,e)}if(this.R){let r;for(e=!0;!this.K&&this.C<s.length;){if(r=Nb(this,s),r==Re){4==f&&(this.m=4,J(14),e=!1),K(this.i,this.l,null,"[Incomplete Response]");break}if(r==Ie){this.m=4,J(15),K(this.i,this.l,s,"[Invalid Chunk]"),e=!1;break}K(this.i,this.l,r,null),Lb(this,r)}if(Ob(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=f||0!=s.length||this.h.h||(this.m=1,J(16),e=!1),this.o=this.o&&e,e){if(s.length>0&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.aa&&!d.P&&(d.j.info("Great, no buffering proxy detected. Bytes received: "+s.length),Pb(d),d.P=!0,J(11))}}else K(this.i,this.l,s,"[Invalid Chunked Response]"),Q(this),Mb(this)}else K(this.i,this.l,s,null),Lb(this,s);4==f&&Q(this),this.o&&!this.K&&(4==f?Qb(this.j,this):(this.o=!1,Fb(this)))}else(function Rb(e){const r={};e=(e.g&&P(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let i=0;i<e.length;i++){if(y(e[i]))continue;var s=yb(e[i]);const o=s[0];if("string"!=typeof(s=s[1]))continue;s=s.trim();const _=r[o]||[];r[o]=_,_.push(s)}!function Aa(e,r){for(const s in e)r.call(void 0,e[s],s,e)}(r,(function(e){return e.join(", ")}))})(this.g),400==r&&s.indexOf("Unknown SID")>0?(this.m=3,J(12)):(this.m=0,J(13)),Q(this),Mb(this)}}}catch(e){}},N.prototype.cancel=function(){this.K=!0,Q(this)},N.prototype.aa=function(){this.D=null;const e=Date.now();e-this.T>=0?(function tb(e,r){e.info((function(){return"TIMEOUT: "+r}))}(this.i,this.B),2!=this.M&&(lb(),J(17)),Q(this),this.m=2,Mb(this)):Sb(this,this.T-e)};var Ae=class{constructor(e,r){this.g=e,this.map=r}};function ec(e){this.l=e||10,o.PerformanceNavigationTiming?e=(e=o.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function fc(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Xb(e){return e.h?1:e.g?e.g.size:0}function Tb(e,r){return e.h?e.h==r:!!e.g&&e.g.has(r)}function Yb(e,r){e.g?e.g.add(r):e.h=r}function $b(e,r){e.h&&e.h==r?e.h=null:e.g&&e.g.has(r)&&e.g.delete(r)}function hc(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let r=e.i;for(const s of e.g.values())r=r.concat(s.G);return r}return ja(e.i)}ec.prototype.cancel=function(){if(this.i=hc(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var Pe=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function T(e){let r;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof T?(this.l=e.l,kc(this,e.j),this.o=e.o,this.g=e.g,lc(this,e.u),this.h=e.h,mc(this,nc(e.i)),this.m=e.m):e&&(r=String(e).match(Pe))?(this.l=!1,kc(this,r[1]||"",!0),this.o=oc(r[2]||""),this.g=oc(r[3]||"",!0),lc(this,r[4]),this.h=oc(r[5]||"",!0),mc(this,r[6]||"",!0),this.m=oc(r[7]||"")):(this.l=!1,this.i=new pc(null,this.l))}function O(e){return new T(e)}function kc(e,r,s){e.j=s?oc(r,!0):r,e.j&&(e.j=e.j.replace(/:$/,""))}function lc(e,r){if(r){if(r=Number(r),isNaN(r)||r<0)throw Error("Bad port number "+r);e.u=r}else e.u=null}function mc(e,r,s){r instanceof pc?(e.i=r,function vc(e,r){r&&!e.j&&(U(e),e.i=null,e.g.forEach((function(e,r){const s=r.toLowerCase();r!=s&&(yc(this,r),Gb(this,s,e))}),e)),e.j=r}(e.i,e.l)):(s||(r=qc(r,Se)),e.i=new pc(r,e.l))}function S(e,r,s){e.i.set(r,s)}function Db(e){return S(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function oc(e,r){return e?r?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function qc(e,r,s){return"string"==typeof e?(e=encodeURI(e).replace(r,xc),s&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function xc(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}T.prototype.toString=function(){const e=[];var r=this.j;r&&e.push(qc(r,Ve,!0),":");var s=this.g;return(s||"file"==r)&&(e.push("//"),(r=this.o)&&e.push(qc(r,Ve,!0),"@"),e.push(L(s).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(s=this.u)&&e.push(":",String(s))),(s=this.h)&&(this.g&&"/"!=s.charAt(0)&&e.push("/"),e.push(qc(s,"/"==s.charAt(0)?be:ye,!0))),(s=this.i.toString())&&e.push("?",s),(s=this.m)&&e.push("#",qc(s,we)),e.join("")},T.prototype.resolve=function(e){const r=O(this);let s=!!e.j;s?kc(r,e.j):s=!!e.o,s?r.o=e.o:s=!!e.g,s?r.g=e.g:s=null!=e.u;var i=e.h;if(s)lc(r,e.u);else if(s=!!e.h){if("/"!=i.charAt(0))if(this.g&&!this.h)i="/"+i;else{var o=r.h.lastIndexOf("/");-1!=o&&(i=r.h.slice(0,o+1)+i)}if(".."==(o=i)||"."==o)i="";else if(-1!=o.indexOf("./")||-1!=o.indexOf("/.")){i=0==o.lastIndexOf("/",0),o=o.split("/");const e=[];for(let r=0;r<o.length;){const s=o[r++];"."==s?i&&r==o.length&&e.push(""):".."==s?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),i&&r==o.length&&e.push("")):(e.push(s),i=!0)}i=e.join("/")}else i=o}return s?r.h=i:s=""!==e.i.toString(),s?mc(r,nc(e.i)):s=!!e.m,s&&(r.m=e.m),r};var Ve=/[#\/\?@]/g,ye=/[#\?:]/g,be=/[#\?]/g,Se=/[#\?@]/g,we=/#/g;function pc(e,r){this.h=this.g=null,this.i=e||null,this.j=!!r}function U(e){e.g||(e.g=new Map,e.h=0,e.i&&function jc(e,r){if(e){e=e.split("&");for(let s=0;s<e.length;s++){const i=e[s].indexOf("=");let o,_=null;i>=0?(o=e[s].substring(0,i),_=e[s].substring(i+1)):o=e[s],r(o,_?decodeURIComponent(_.replace(/\+/g," ")):"")}}}(e.i,(function(r,s){e.add(decodeURIComponent(r.replace(/\+/g," ")),s)})))}function yc(e,r){U(e),r=V(e,r),e.g.has(r)&&(e.i=null,e.h-=e.g.get(r).length,e.g.delete(r))}function zc(e,r){return U(e),r=V(e,r),e.g.has(r)}function Ac(e,r){U(e);let s=[];if("string"==typeof r)zc(e,r)&&(s=s.concat(e.g.get(V(e,r))));else for(e=Array.from(e.g.values()),r=0;r<e.length;r++)s=s.concat(e[r]);return s}function Gb(e,r,s){yc(e,r),s.length>0&&(e.i=null,e.g.set(V(e,r),ja(s)),e.h+=s.length)}function nc(e){const r=new pc;return r.i=e.i,e.g&&(r.g=new Map(e.g),r.h=e.h),r}function V(e,r){return r=String(r),e.j&&(r=r.toLowerCase()),r}function W(e,r,s,i,o){try{o&&(o.onload=null,o.onerror=null,o.onabort=null,o.ontimeout=null),i(s)}catch(e){}}function Dc(){this.g=new de}function Ec(e){this.i=e.Sb||null,this.h=e.ab||!1}function Fc(e,r){C.call(this),this.H=e,this.o=r,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 Ic(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function Hc(e){e.readyState=4,e.l=null,e.j=null,e.B=null,Gc(e)}function Gc(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Jc(e){let r="";return ya(e,(function(e,s){r+=s,r+=":",r+=e,r+="\r\n"})),r}function Kc(e,r,s){e:{for(i in s){var i=!1;break e}i=!0}i||(s=Jc(s),"string"==typeof e?null!=s&&L(s):S(e,r,s))}function X(e){C.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=pc.prototype).add=function(e,r){U(this),this.i=null,e=V(this,e);let s=this.g.get(e);return s||this.g.set(e,s=[]),s.push(r),this.h+=1,this},e.forEach=function(e,r){U(this),this.g.forEach((function(s,i){s.forEach((function(s){e.call(r,s,i,this)}),this)}),this)},e.set=function(e,r){return U(this),this.i=null,zc(this,e=V(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[r]),this.h+=1,this},e.get=function(e,r){return e&&(e=Ac(this,e)).length>0?String(e[0]):r},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],r=Array.from(this.g.keys());for(let i=0;i<r.length;i++){var s=r[i];const o=L(s);s=Ac(this,s);for(let r=0;r<s.length;r++){let i=o;""!==s[r]&&(i+="="+L(s[r])),e.push(i)}}return this.i=e.join("&")},t(Ec,eb),Ec.prototype.g=function(){return new Fc(this.i,this.h)},t(Fc,C),(e=Fc.prototype).open=function(e,r){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=r,this.readyState=1,Gc(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;const r={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(r.body=e),(this.H||o).fetch(new Request(this.D,r)).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((()=>{})),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Hc(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,Gc(this)),this.g&&(this.readyState=3,Gc(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==o.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;Ic(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var r=e.value?e.value:new Uint8Array(0);(r=this.B.decode(r,{stream:!e.done}))&&(this.response=this.responseText+=r)}e.done?Hc(this):Gc(this),3==this.readyState&&Ic(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,Hc(this))},e.Na=function(e){this.g&&(this.response=e,Hc(this))},e.ga=function(){this.g&&Hc(this)},e.setRequestHeader=function(e,r){this.A.append(e,r)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],r=this.h.entries();for(var s=r.next();!s.done;)s=s.value,e.push(s[0]+": "+s[1]),s=r.next();return e.join("\r\n")},Object.defineProperty(Fc.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),t(X,C);var ve=/^https?$/i,Ce=["POST","PUT"];function Nc(e,r){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=r,e.o=5,Oc(e),Pc(e)}function Oc(e){e.A||(e.A=!0,D(e,"complete"),D(e,"error"))}function Qc(e){if(e.h&&void 0!==i)if(e.v&&4==P(e))setTimeout(e.Ca.bind(e),0);else if(D(e,"readystatechange"),4==P(e)){e.h=!1;try{const i=e.ca();e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}var s;if(!(s=r)){var _;if(_=0===i){let r=String(e.D).match(Pe)[1]||null;!r&&o.self&&o.self.location&&(r=o.self.location.protocol.slice(0,-1)),_=!ve.test(r?r.toLowerCase():"")}s=_}if(s)D(e,"complete"),D(e,"success");else{e.o=6;try{var h=P(e)>2?e.g.statusText:""}catch(e){h=""}e.l=h+" ["+e.ca()+"]",Oc(e)}}finally{Pc(e)}}}function Pc(e,r){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);const s=e.g;e.g=null,r||D(e,"ready");try{s.onreadystatechange=null}catch(e){}}}function P(e){return e.g?e.g.readyState:0}function Ib(e){try{if(!e.g)return null;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 Rc(e,r,s){return s&&s.internalChannelParams&&s.internalChannelParams[e]||r}function Sc(e){this.za=0,this.i=[],this.j=new pb,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=Rc("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=Rc("baseRetryDelayMs",5e3,e),this.Za=Rc("retryDelaySeedMs",1e4,e),this.Ta=Rc("forwardChannelMaxRetries",2,e),this.va=Rc("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 ec(e&&e.concurrentRequestLimit),this.Ba=new Dc,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&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function cc(e){if(Tc(e),3==e.I){var r=e.V++,s=O(e.J);if(S(s,"SID",e.M),S(s,"RID",r),S(s,"TYPE","terminate"),Uc(e,s),(r=new N(e,e.j,r)).M=2,r.A=Db(O(s)),s=!1,o.navigator&&o.navigator.sendBeacon)try{s=o.navigator.sendBeacon(r.A.toString(),"")}catch(e){}!s&&o.Image&&((new Image).src=r.A,s=!0),s||(r.g=Hb(r.j,null),r.g.ea(r.A)),r.F=Date.now(),Fb(r)}Vc(e)}function Vb(e){e.g&&(Pb(e),e.g.cancel(),e.g=null)}function Tc(e){Vb(e),e.v&&(o.clearTimeout(e.v),e.v=null),Ub(e),e.h.cancel(),e.m&&("number"==typeof e.m&&o.clearTimeout(e.m),e.m=null)}function bc(e){if(!fc(e.h)&&!e.m){e.m=!0;var r=e.Ea;d||ta(),f||(d(),f=!0),g.add(r,e),e.D=0}}function Zc(e,r){var s;s=r?r.l:e.V++;const i=O(e.J);S(i,"SID",e.M),S(i,"RID",s),S(i,"AID",e.K),Uc(e,i),e.u&&e.o&&Kc(i,e.u,e.o),s=new N(e,e.j,s,e.D+1),null===e.u&&(s.J=e.o),r&&(e.i=r.G.concat(e.i)),r=Yc(e,s,1e3),s.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),Yb(e.h,s),Cb(s,i,r)}function Uc(e,r){e.H&&ya(e.H,(function(e,s){S(r,s,e)})),e.l&&ya({},(function(e,s){S(r,s,e)}))}function Yc(e,r,s){s=Math.min(e.i.length,s);const i=e.l?p(e.l.Ka,e.l,e):null;e:{var o=e.i;let r=-1;for(;;){const e=["count="+s];-1==r?s>0?(r=o[0].g,e.push("ofs="+r)):r=0:e.push("ofs="+r);let d=!0;for(let f=0;f<s;f++){var _=o[f].g;const s=o[f].map;if((_-=r)<0)r=Math.max(0,o[f].g-100),d=!1;else try{_="req"+_+"_"||"";try{var h=s instanceof Map?s:Object.entries(s);for(const[r,s]of h){let i=s;n(s)&&(i=_e(s)),e.push(_+r+"="+encodeURIComponent(i))}}catch(r){throw e.push(_+"type="+encodeURIComponent("_badmap")),r}}catch(e){i&&i(s)}}if(d){h=e.join("&");break e}}h=void 0}return e=e.i.splice(0,s),r.G=e,h}function ac(e){if(!e.g&&!e.v){e.Y=1;var r=e.Da;d||ta(),f||(d(),f=!0),g.add(r,e),e.A=0}}function Wb(e){return!(e.g||e.v||e.A>=3)&&(e.Y++,e.v=ob(p(e.Da,e),Xc(e,e.A)),e.A++,!0)}function Pb(e){null!=e.B&&(o.clearTimeout(e.B),e.B=null)}function $c(e){e.g=new N(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var r=O(e.na);S(r,"RID","rpc"),S(r,"SID",e.M),S(r,"AID",e.K),S(r,"CI",e.F?"0":"1"),!e.F&&e.ia&&S(r,"TO",e.ia),S(r,"TYPE","xmlhttp"),Uc(e,r),e.u&&e.o&&Kc(r,e.u,e.o),e.O&&(e.g.H=e.O);var s=e.g;e=e.ba,s.M=1,s.A=Db(O(r)),s.u=null,s.R=!0,Eb(s,e)}function Ub(e){null!=e.C&&(o.clearTimeout(e.C),e.C=null)}function Qb(e,r){var s=null;if(e.g==r){Ub(e),Pb(e),e.g=null;var i=2}else{if(!Tb(e.h,r))return;s=r.G,$b(e.h,r),i=1}if(0!=e.I)if(r.o)if(1==i){s=r.u?r.u.length:0,r=Date.now()-r.F;var o=e.D;D(i=jb(),new nb(i,s)),bc(e)}else ac(e);else if(3==(o=r.m)||0==o&&r.X>0||!(1==i&&function Wc(e,r){return!(Xb(e.h)>=e.h.j-(e.m?1:0)||(e.m?(e.i=r.G.concat(e.i),0):1==e.I||2==e.I||e.D>=(e.Sa?0:e.Ta)||(e.m=ob(p(e.Ea,e,r),Xc(e,e.D)),e.D