UNPKG

firebase

Version:

Firebase JavaScript library for web and Node.js

1 lines • 449 kB
import{_registerComponent as e,registerVersion as i,_isFirebaseServerApp as s,_getProvider,getApp as o,_removeServiceInstance as _,SDK_VERSION as h}from"https://www.gstatic.com/firebasejs/11.9.1/firebase-app.js";const stringToByteArray$1=function(e){const i=[];let s=0;for(let o=0;o<e.length;o++){let _=e.charCodeAt(o);_<128?i[s++]=_:_<2048?(i[s++]=_>>6|192,i[s++]=63&_|128):55296==(64512&_)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(_=65536+((1023&_)<<10)+(1023&e.charCodeAt(++o)),i[s++]=_>>18|240,i[s++]=_>>12&63|128,i[s++]=_>>6&63|128,i[s++]=63&_|128):(i[s++]=_>>12|224,i[s++]=_>>6&63|128,i[s++]=63&_|128)}return i},d={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,i){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const s=i?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[];for(let i=0;i<e.length;i+=3){const _=e[i],h=i+1<e.length,d=h?e[i+1]:0,f=i+2<e.length,g=f?e[i+2]:0,b=_>>2,w=(3&_)<<4|d>>4;let O=(15&d)<<2|g>>6,q=63&g;f||(q=64,h||(O=64)),o.push(s[b],s[w],s[O],s[q])}return o.join("")},encodeString(e,i){return this.HAS_NATIVE_SUPPORT&&!i?btoa(e):this.encodeByteArray(stringToByteArray$1(e),i)},decodeString(e,i){return this.HAS_NATIVE_SUPPORT&&!i?atob(e):function(e){const i=[];let s=0,o=0;for(;s<e.length;){const _=e[s++];if(_<128)i[o++]=String.fromCharCode(_);else if(_>191&&_<224){const h=e[s++];i[o++]=String.fromCharCode((31&_)<<6|63&h)}else if(_>239&&_<365){const h=((7&_)<<18|(63&e[s++])<<12|(63&e[s++])<<6|63&e[s++])-65536;i[o++]=String.fromCharCode(55296+(h>>10)),i[o++]=String.fromCharCode(56320+(1023&h))}else{const h=e[s++],d=e[s++];i[o++]=String.fromCharCode((15&_)<<12|(63&h)<<6|63&d)}}return i.join("")}(this.decodeStringToByteArray(e,i))},decodeStringToByteArray(e,i){this.init_();const s=i?this.charToByteMapWebSafe_:this.charToByteMap_,o=[];for(let i=0;i<e.length;){const _=s[e.charAt(i++)],h=i<e.length?s[e.charAt(i)]:0;++i;const d=i<e.length?s[e.charAt(i)]:64;++i;const f=i<e.length?s[e.charAt(i)]:64;if(++i,null==_||null==h||null==d||null==f)throw new DecodeBase64StringError;const g=_<<2|h>>4;if(o.push(g),64!==d){const e=h<<4&240|d>>2;if(o.push(e),64!==f){const e=d<<6&192|f;o.push(e)}}}return o},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 i=stringToByteArray$1(e);return d.encodeByteArray(i,!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 i=e&&function(e){try{return d.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return i&&JSON.parse(i)},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 i=(e=>{var i,s;return null===(s=null===(i=getDefaults())||void 0===i?void 0:i.emulatorHosts)||void 0===s?void 0:s[e]})(e);if(!i)return;const s=i.lastIndexOf(":");if(s<=0||s+1===i.length)throw new Error(`Invalid host ${i} with no separate hostname and port!`);const o=parseInt(i.substring(s+1),10);return"["===i[0]?[i.substring(1,s-1),o]:[i.substring(0,s),o]};function isCloudWorkstation(e){return e.endsWith(".cloudworkstations.dev")}async function pingServer(e){return(await fetch(e,{credentials:"include"})).ok}const f={};let g=!1;function updateEmulatorBanner(e,i){if("undefined"==typeof window||"undefined"==typeof document||!isCloudWorkstation(window.location.host)||f[e]===i||f[e]||g)return;function prefixedId(e){return`__firebase__banner__${e}`}f[e]=i;const s="__firebase__banner",o=function getEmulatorSummary(){const e={prod:[],emulator:[]};for(const i of Object.keys(f))f[i]?e.emulator.push(i):e.prod.push(i);return e}().prod.length>0;function setupCloseBtn(){const e=document.createElement("span");return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{g=!0,function tearDown(){const e=document.getElementById(s);e&&e.remove()}()},e}function setupDom(){const e=function getOrCreateEl(e){let i=document.getElementById(e),s=!1;return i||(i=document.createElement("div"),i.setAttribute("id",e),s=!0),{created:s,element:i}}(s),i=prefixedId("text"),_=document.getElementById(i)||document.createElement("span"),h=prefixedId("learnmore"),d=document.getElementById(h)||document.createElement("a"),f=prefixedId("preprendIcon"),g=document.getElementById(f)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.created){const i=e.element;!function setupBannerStyles(e){e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center"}(i),function setupLinkStyles(e,i){e.setAttribute("id",i),e.innerText="Learn more",e.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",e.setAttribute("target","__blank"),e.style.paddingLeft="5px",e.style.textDecoration="underline"}(d,h);const s=setupCloseBtn();!function setupIconStyles(e,i){e.setAttribute("width","24"),e.setAttribute("id",i),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.style.marginLeft="-6px"}(g,f),i.append(g,_,d,s),document.body.appendChild(i)}o?(_.innerText="Preview backend disconnected.",g.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(g.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',_.innerText="Preview backend running in this workspace."),_.setAttribute("id",i)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",setupDom):setupDom()}function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isNode(){var e;const i=null===(e=getDefaults())||void 0===e?void 0:e.forceEnvironment;if("node"===i)return!0;if("browser"===i)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,i,s){super(i),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,i,s){this.service=e,this.serviceName=i,this.errors=s}create(e,...i){const s=i[0]||{},o=`${this.service}/${e}`,_=this.errors[e],h=_?function replaceTemplate(e,i){return e.replace(b,((e,s)=>{const o=i[s];return null!=o?String(o):`<${s}?>`}))}(_,s):"Error",d=`${this.serviceName}: ${h} (${o}).`;return new FirebaseError(o,d,s)}}const b=/\{\$([^}]+)}/g;function deepEqual(e,i){if(e===i)return!0;const s=Object.keys(e),o=Object.keys(i);for(const _ of s){if(!o.includes(_))return!1;const s=e[_],h=i[_];if(isObject(s)&&isObject(h)){if(!deepEqual(s,h))return!1}else if(s!==h)return!1}for(const e of o)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}class Component{constructor(e,i,s){this.name=e,this.instanceFactory=i,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 w;!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"}(w||(w={}));const O={debug:w.DEBUG,verbose:w.VERBOSE,info:w.INFO,warn:w.WARN,error:w.ERROR,silent:w.SILENT},q=w.INFO,j={[w.DEBUG]:"log",[w.VERBOSE]:"log",[w.INFO]:"info",[w.WARN]:"warn",[w.ERROR]:"error"},defaultLogHandler=(e,i,...s)=>{if(i<e.logLevel)return;const o=(new Date).toISOString(),_=j[i];if(!_)throw new Error(`Attempted to log a message with an invalid logType (value: ${i})`);console[_](`[${o}] ${e.name}:`,...s)};var $,ee,te="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.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,i,s){s||(s=0);var o=Array(16);if("string"==typeof i)for(var _=0;16>_;++_)o[_]=i.charCodeAt(s++)|i.charCodeAt(s++)<<8|i.charCodeAt(s++)<<16|i.charCodeAt(s++)<<24;else for(_=0;16>_;++_)o[_]=i[s++]|i[s++]<<8|i[s++]<<16|i[s++]<<24;i=e.g[0],s=e.g[1],_=e.g[2];var h=e.g[3],d=i+(h^s&(_^h))+o[0]+3614090360&4294967295;d=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=(s=(_=(h=(i=s+(d<<7&4294967295|d>>>25))+((d=h+(_^i&(s^_))+o[1]+3905402710&4294967295)<<12&4294967295|d>>>20))+((d=_+(s^h&(i^s))+o[2]+606105819&4294967295)<<17&4294967295|d>>>15))+((d=s+(i^_&(h^i))+o[3]+3250441966&4294967295)<<22&4294967295|d>>>10))+((d=i+(h^s&(_^h))+o[4]+4118548399&4294967295)<<7&4294967295|d>>>25))+((d=h+(_^i&(s^_))+o[5]+1200080426&4294967295)<<12&4294967295|d>>>20))+((d=_+(s^h&(i^s))+o[6]+2821735955&4294967295)<<17&4294967295|d>>>15))+((d=s+(i^_&(h^i))+o[7]+4249261313&4294967295)<<22&4294967295|d>>>10))+((d=i+(h^s&(_^h))+o[8]+1770035416&4294967295)<<7&4294967295|d>>>25))+((d=h+(_^i&(s^_))+o[9]+2336552879&4294967295)<<12&4294967295|d>>>20))+((d=_+(s^h&(i^s))+o[10]+4294925233&4294967295)<<17&4294967295|d>>>15))+((d=s+(i^_&(h^i))+o[11]+2304563134&4294967295)<<22&4294967295|d>>>10))+((d=i+(h^s&(_^h))+o[12]+1804603682&4294967295)<<7&4294967295|d>>>25))+((d=h+(_^i&(s^_))+o[13]+4254626195&4294967295)<<12&4294967295|d>>>20))+((d=_+(s^h&(i^s))+o[14]+2792965006&4294967295)<<17&4294967295|d>>>15))+((d=s+(i^_&(h^i))+o[15]+1236535329&4294967295)<<22&4294967295|d>>>10))+((d=i+(_^h&(s^_))+o[1]+4129170786&4294967295)<<5&4294967295|d>>>27))+((d=h+(s^_&(i^s))+o[6]+3225465664&4294967295)<<9&4294967295|d>>>23))+((d=_+(i^s&(h^i))+o[11]+643717713&4294967295)<<14&4294967295|d>>>18))+((d=s+(h^i&(_^h))+o[0]+3921069994&4294967295)<<20&4294967295|d>>>12))+((d=i+(_^h&(s^_))+o[5]+3593408605&4294967295)<<5&4294967295|d>>>27))+((d=h+(s^_&(i^s))+o[10]+38016083&4294967295)<<9&4294967295|d>>>23))+((d=_+(i^s&(h^i))+o[15]+3634488961&4294967295)<<14&4294967295|d>>>18))+((d=s+(h^i&(_^h))+o[4]+3889429448&4294967295)<<20&4294967295|d>>>12))+((d=i+(_^h&(s^_))+o[9]+568446438&4294967295)<<5&4294967295|d>>>27))+((d=h+(s^_&(i^s))+o[14]+3275163606&4294967295)<<9&4294967295|d>>>23))+((d=_+(i^s&(h^i))+o[3]+4107603335&4294967295)<<14&4294967295|d>>>18))+((d=s+(h^i&(_^h))+o[8]+1163531501&4294967295)<<20&4294967295|d>>>12))+((d=i+(_^h&(s^_))+o[13]+2850285829&4294967295)<<5&4294967295|d>>>27))+((d=h+(s^_&(i^s))+o[2]+4243563512&4294967295)<<9&4294967295|d>>>23))+((d=_+(i^s&(h^i))+o[7]+1735328473&4294967295)<<14&4294967295|d>>>18))+((d=s+(h^i&(_^h))+o[12]+2368359562&4294967295)<<20&4294967295|d>>>12))+((d=i+(s^_^h)+o[5]+4294588738&4294967295)<<4&4294967295|d>>>28))+((d=h+(i^s^_)+o[8]+2272392833&4294967295)<<11&4294967295|d>>>21))+((d=_+(h^i^s)+o[11]+1839030562&4294967295)<<16&4294967295|d>>>16))+((d=s+(_^h^i)+o[14]+4259657740&4294967295)<<23&4294967295|d>>>9))+((d=i+(s^_^h)+o[1]+2763975236&4294967295)<<4&4294967295|d>>>28))+((d=h+(i^s^_)+o[4]+1272893353&4294967295)<<11&4294967295|d>>>21))+((d=_+(h^i^s)+o[7]+4139469664&4294967295)<<16&4294967295|d>>>16))+((d=s+(_^h^i)+o[10]+3200236656&4294967295)<<23&4294967295|d>>>9))+((d=i+(s^_^h)+o[13]+681279174&4294967295)<<4&4294967295|d>>>28))+((d=h+(i^s^_)+o[0]+3936430074&4294967295)<<11&4294967295|d>>>21))+((d=_+(h^i^s)+o[3]+3572445317&4294967295)<<16&4294967295|d>>>16))+((d=s+(_^h^i)+o[6]+76029189&4294967295)<<23&4294967295|d>>>9))+((d=i+(s^_^h)+o[9]+3654602809&4294967295)<<4&4294967295|d>>>28))+((d=h+(i^s^_)+o[12]+3873151461&4294967295)<<11&4294967295|d>>>21))+((d=_+(h^i^s)+o[15]+530742520&4294967295)<<16&4294967295|d>>>16))+((d=s+(_^h^i)+o[2]+3299628645&4294967295)<<23&4294967295|d>>>9))+((d=i+(_^(s|~h))+o[0]+4096336452&4294967295)<<6&4294967295|d>>>26))+((d=h+(s^(i|~_))+o[7]+1126891415&4294967295)<<10&4294967295|d>>>22))+((d=_+(i^(h|~s))+o[14]+2878612391&4294967295)<<15&4294967295|d>>>17))+((d=s+(h^(_|~i))+o[5]+4237533241&4294967295)<<21&4294967295|d>>>11))+((d=i+(_^(s|~h))+o[12]+1700485571&4294967295)<<6&4294967295|d>>>26))+((d=h+(s^(i|~_))+o[3]+2399980690&4294967295)<<10&4294967295|d>>>22))+((d=_+(i^(h|~s))+o[10]+4293915773&4294967295)<<15&4294967295|d>>>17))+((d=s+(h^(_|~i))+o[1]+2240044497&4294967295)<<21&4294967295|d>>>11))+((d=i+(_^(s|~h))+o[8]+1873313359&4294967295)<<6&4294967295|d>>>26))+((d=h+(s^(i|~_))+o[15]+4264355552&4294967295)<<10&4294967295|d>>>22))+((d=_+(i^(h|~s))+o[6]+2734768916&4294967295)<<15&4294967295|d>>>17))+((d=s+(h^(_|~i))+o[13]+1309151649&4294967295)<<21&4294967295|d>>>11))+((h=(i=s+((d=i+(_^(s|~h))+o[4]+4149444226&4294967295)<<6&4294967295|d>>>26))+((d=h+(s^(i|~_))+o[11]+3174756917&4294967295)<<10&4294967295|d>>>22))^((_=h+((d=_+(i^(h|~s))+o[2]+718787259&4294967295)<<15&4294967295|d>>>17))|~i))+o[9]+3951481745&4294967295,e.g[0]=e.g[0]+i&4294967295,e.g[1]=e.g[1]+(_+(d<<21&4294967295|d>>>11))&4294967295,e.g[2]=e.g[2]+_&4294967295,e.g[3]=e.g[3]+h&4294967295}function t(e,i){this.h=i;for(var s=[],o=!0,_=e.length-1;0<=_;_--){var h=0|e[_];o&&h==i||(s[_]=h,o=!1)}this.g=s}!function k(e,i){function c(){}c.prototype=i.prototype,e.D=i.prototype,e.prototype=new c,e.prototype.constructor=e,e.C=function(e,s,o){for(var _=Array(arguments.length-2),h=2;h<arguments.length;h++)_[h-2]=arguments[h];return i.prototype[s].apply(e,_)}}(m,(function l(){this.blockSize=-1})),m.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},m.prototype.u=function(e,i){void 0===i&&(i=e.length);for(var s=i-this.blockSize,o=this.B,_=this.h,h=0;h<i;){if(0==_)for(;h<=s;)n(this,e,h),h+=this.blockSize;if("string"==typeof e){for(;h<i;)if(o[_++]=e.charCodeAt(h++),_==this.blockSize){n(this,o),_=0;break}}else for(;h<i;)if(o[_++]=e[h++],_==this.blockSize){n(this,o),_=0;break}}this.h=_,this.o+=i},m.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var i=1;i<e.length-8;++i)e[i]=0;var s=8*this.o;for(i=e.length-8;i<e.length;++i)e[i]=255&s,s/=256;for(this.u(e),e=Array(16),i=s=0;4>i;++i)for(var o=0;32>o;o+=8)e[s++]=this.g[i]>>>o&255;return e};var i={};function u(e){return-128<=e&&128>e?function p(e,s){var o=i;return Object.prototype.hasOwnProperty.call(o,e)?o[e]:o[e]=s(e)}(e,(function(e){return new t([0|e],0>e?-1:0)})):new t([0|e],0>e?-1:0)}function v(e){if(isNaN(e)||!isFinite(e))return s;if(0>e)return x(v(-e));for(var i=[],o=1,_=0;e>=o;_++)i[_]=e/o|0,o*=4294967296;return new t(i,0)}var s=u(0),o=u(1),_=u(16777216);function C(e){if(0!=e.h)return!1;for(var i=0;i<e.g.length;i++)if(0!=e.g[i])return!1;return!0}function B(e){return-1==e.h}function x(e){for(var i=e.g.length,s=[],_=0;_<i;_++)s[_]=~e.g[_];return new t(s,~e.h).add(o)}function F(e,i){return e.add(x(i))}function G(e,i){for(;(65535&e[i])!=e[i];)e[i+1]+=e[i]>>>16,e[i]&=65535,i++}function H(e,i){this.g=e,this.h=i}function D(e,i){if(C(i))throw Error("division by zero");if(C(e))return new H(s,s);if(B(e))return i=D(x(e),i),new H(x(i.g),x(i.h));if(B(i))return i=D(e,x(i)),new H(x(i.g),i.h);if(30<e.g.length){if(B(e)||B(i))throw Error("slowDivide_ only works with positive integers.");for(var _=o,h=i;0>=h.l(e);)_=I(_),h=I(h);var d=J(_,1),f=J(h,1);for(h=J(h,2),_=J(_,2);!C(h);){var g=f.add(h);0>=g.l(e)&&(d=d.add(_),f=g),h=J(h,1),_=J(_,1)}return i=F(e,d.j(i)),new H(d,i)}for(d=s;0<=e.l(i);){for(_=Math.max(1,Math.floor(e.m()/i.m())),h=48>=(h=Math.ceil(Math.log(_)/Math.LN2))?1:Math.pow(2,h-48),g=(f=v(_)).j(i);B(g)||0<g.l(e);)g=(f=v(_-=h)).j(i);C(f)&&(f=o),d=d.add(f),e=F(e,g)}return new H(d,e)}function I(e){for(var i=e.g.length+1,s=[],o=0;o<i;o++)s[o]=e.i(o)<<1|e.i(o-1)>>>31;return new t(s,e.h)}function J(e,i){var s=i>>5;i%=32;for(var o=e.g.length-s,_=[],h=0;h<o;h++)_[h]=0<i?e.i(h+s)>>>i|e.i(h+s+1)<<32-i:e.i(h+s);return new t(_,e.h)}(e=t.prototype).m=function(){if(B(this))return-x(this).m();for(var e=0,i=1,s=0;s<this.g.length;s++){var o=this.i(s);e+=(0<=o?o:4294967296+o)*i,i*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(C(this))return"0";if(B(this))return"-"+x(this).toString(e);for(var i=v(Math.pow(e,6)),s=this,o="";;){var _=D(s,i).g,h=((0<(s=F(s,_.j(i))).g.length?s.g[0]:s.h)>>>0).toString(e);if(C(s=_))return h+o;for(;6>h.length;)h="0"+h;o=h+o}},e.i=function(e){return 0>e?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){for(var i=Math.max(this.g.length,e.g.length),s=[],o=0,_=0;_<=i;_++){var h=o+(65535&this.i(_))+(65535&e.i(_)),d=(h>>>16)+(this.i(_)>>>16)+(e.i(_)>>>16);o=d>>>16,h&=65535,d&=65535,s[_]=d<<16|h}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(0>this.l(_)&&0>e.l(_))return v(this.m()*e.m());for(var i=this.g.length+e.g.length,o=[],h=0;h<2*i;h++)o[h]=0;for(h=0;h<this.g.length;h++)for(var d=0;d<e.g.length;d++){var f=this.i(h)>>>16,g=65535&this.i(h),b=e.i(d)>>>16,w=65535&e.i(d);o[2*h+2*d]+=g*w,G(o,2*h+2*d),o[2*h+2*d+1]+=f*w,G(o,2*h+2*d+1),o[2*h+2*d+1]+=g*b,G(o,2*h+2*d+1),o[2*h+2*d+2]+=f*b,G(o,2*h+2*d+2)}for(h=0;h<i;h++)o[h]=o[2*h+1]<<16|o[2*h];for(h=i;h<2*i;h++)o[h]=0;return new t(o,0)},e.A=function(e){return D(this,e).h},e.and=function(e){for(var i=Math.max(this.g.length,e.g.length),s=[],o=0;o<i;o++)s[o]=this.i(o)&e.i(o);return new t(s,this.h&e.h)},e.or=function(e){for(var i=Math.max(this.g.length,e.g.length),s=[],o=0;o<i;o++)s[o]=this.i(o)|e.i(o);return new t(s,this.h|e.h)},e.xor=function(e){for(var i=Math.max(this.g.length,e.g.length),s=[],o=0;o<i;o++)s[o]=this.i(o)^e.i(o);return new t(s,this.h^e.h)},m.prototype.digest=m.prototype.v,m.prototype.reset=m.prototype.s,m.prototype.update=m.prototype.u,ee=m,t.prototype.add=t.prototype.add,t.prototype.multiply=t.prototype.j,t.prototype.modulo=t.prototype.A,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,i){if(0==e.length)throw Error("number format error: empty string");if(2>(i=i||10)||36<i)throw Error("radix out of range: "+i);if("-"==e.charAt(0))return x(y(e.substring(1),i));if(0<=e.indexOf("-"))throw Error('number format error: interior "-" character');for(var o=v(Math.pow(i,8)),_=s,h=0;h<e.length;h+=8){var d=Math.min(8,e.length-h),f=parseInt(e.substring(h,h+d),i);8>d?(d=v(Math.pow(i,d)),_=_.j(d).add(v(f))):_=(_=_.j(o)).add(v(f))}return _},$=t}).apply(void 0!==te?te:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});var ne,re,ie,se,oe,ae,ce,ue,le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var e,i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,i,s){return e==Array.prototype||e==Object.prototype||(e[i]=s.value),e};var s=function ba(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof le&&le];for(var i=0;i<e.length;++i){var s=e[i];if(s&&s.Math==Math)return s}throw Error("Cannot find global object")}(this);!function da(e,o){if(o)e:{var _=s;e=e.split(".");for(var h=0;h<e.length-1;h++){var d=e[h];if(!(d in _))break e;_=_[d]}(o=o(h=_[e=e[e.length-1]]))!=h&&null!=o&&i(_,e,{configurable:!0,writable:!0,value:o})}}("Array.prototype.values",(function(e){return e||function(){return function ea(e,i){e instanceof String&&(e+="");var s=0,o=!1,_={next:function(){if(!o&&s<e.length){var _=s++;return{value:i(_,e[_]),done:!1}}return o=!0,{done:!0,value:void 0}}};return _[Symbol.iterator]=function(){return _},_}(this,(function(e,i){return i}))}}));var o=o||{},_=this||self;function ha(e){var i=typeof e;return"array"==(i="object"!=i?i:e?Array.isArray(e)?"array":i:"null")||"object"==i&&"number"==typeof e.length}function n(e){var i=typeof e;return"object"==i&&null!=e||"function"==i}function ia(e,i,s){return e.call.apply(e.bind,arguments)}function ja(e,i,s){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var s=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(s,o),e.apply(i,s)}}return function(){return e.apply(i,arguments)}}function p(e,i,s){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja).apply(null,arguments)}function ka(e,i){var s=Array.prototype.slice.call(arguments,1);return function(){var i=s.slice();return i.push.apply(i,arguments),e.apply(this,i)}}function r(e,i){function c(){}c.prototype=i.prototype,e.aa=i.prototype,e.prototype=new c,e.prototype.constructor=e,e.Qb=function(e,s,o){for(var _=Array(arguments.length-2),h=2;h<arguments.length;h++)_[h-2]=arguments[h];return i.prototype[s].apply(e,_)}}function la(e){const i=e.length;if(0<i){const s=Array(i);for(let o=0;o<i;o++)s[o]=e[o];return s}return[]}function ma(e,i){for(let i=1;i<arguments.length;i++){const s=arguments[i];if(ha(s)){const i=e.length||0,o=s.length||0;e.length=i+o;for(let _=0;_<o;_++)e[i+_]=s[_]}else e.push(s)}}function t(e){return/^[\s\xa0]*$/.test(e)}function u(){var e=_.navigator;return e&&(e=e.userAgent)?e:""}function oa(e){return oa[" "](e),e}oa[" "]=function(){};var h=!(-1==u().indexOf("Gecko")||-1!=u().toLowerCase().indexOf("webkit")&&-1==u().indexOf("Edge")||-1!=u().indexOf("Trident")||-1!=u().indexOf("MSIE")||-1!=u().indexOf("Edge"));function qa(e,i,s){for(const o in e)i.call(s,e[o],o,e)}function sa(e){const i={};for(const s in e)i[s]=e[s];return i}const d="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ua(e,i){let s,o;for(let i=1;i<arguments.length;i++){for(s in o=arguments[i],o)e[s]=o[s];for(let i=0;i<d.length;i++)s=d[i],Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s])}}function va(e){var i=1;e=e.split(":");const s=[];for(;0<i&&e.length;)s.push(e.shift()),i--;return e.length&&s.push(e.join(":")),s}function wa(e){_.setTimeout((()=>{throw e}),0)}function xa(){var e=w;let i=null;return e.g&&(i=e.g,e.g=e.g.next,e.g||(e.h=null),i.next=null),i}var f=new class na{constructor(e,i){this.i=e,this.j=i,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 Ca),(e=>e.reset()));class Ca{constructor(){this.next=this.g=this.h=null}set(e,i){this.h=e,this.g=i,this.next=null}reset(){this.next=this.g=this.h=null}}let g,b=!1,w=new class Aa{constructor(){this.h=this.g=null}add(e,i){const s=f.get();s.set(e,i),this.h?this.h.next=s:this.g=s,this.h=s}},Ea=()=>{const e=_.Promise.resolve(void 0);g=()=>{e.then(Da)}};var Da=()=>{for(var e;e=xa();){try{e.h.call(e.g)}catch(e){wa(e)}var i=f;i.j(e),100>i.h&&(i.h++,e.next=i.g,i.g=e)}b=!1};function z(){this.s=this.s,this.C=this.C}function A(e,i){this.type=e,this.g=this.target=i,this.defaultPrevented=!1}z.prototype.s=!1,z.prototype.ma=function(){this.s||(this.s=!0,this.N())},z.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},A.prototype.h=function(){this.defaultPrevented=!0};var O=function(){if(!_.addEventListener||!Object.defineProperty)return!1;var e=!1,i=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const c=()=>{};_.addEventListener("test",c,i),_.removeEventListener("test",c,i)}catch(e){}return e}();function C(e,i){if(A.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){var s=this.type=e.type,o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=i,i=e.relatedTarget){if(h){e:{try{oa(i.nodeName);var _=!0;break e}catch(e){}_=!1}_||(i=null)}}else"mouseover"==s?i=e.fromElement:"mouseout"==s&&(i=e.toElement);this.relatedTarget=i,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.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="string"==typeof e.pointerType?e.pointerType:q[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&C.aa.h.call(this)}}r(C,A);var q={2:"touch",3:"pen",4:"mouse"};C.prototype.h=function(){C.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var j="closure_listenable_"+(1e6*Math.random()|0),$=0;function Ia(e,i,s,o,_){this.listener=e,this.proxy=null,this.src=i,this.type=s,this.capture=!!o,this.ha=_,this.key=++$,this.da=this.fa=!1}function Ja(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function Ka(e){this.src=e,this.g={},this.h=0}function Ma(e,i){var s=i.type;if(s in e.g){var o,_=e.g[s],h=Array.prototype.indexOf.call(_,i,void 0);(o=0<=h)&&Array.prototype.splice.call(_,h,1),o&&(Ja(i),0==e.g[s].length&&(delete e.g[s],e.h--))}}function La(e,i,s,o){for(var _=0;_<e.length;++_){var h=e[_];if(!h.da&&h.listener==i&&h.capture==!!s&&h.ha==o)return _}return-1}Ka.prototype.add=function(e,i,s,o,_){var h=e.toString();(e=this.g[h])||(e=this.g[h]=[],this.h++);var d=La(e,i,o,_);return-1<d?(i=e[d],s||(i.fa=!1)):((i=new Ia(i,this.src,h,!!o,_)).fa=s,e.push(i)),i};var ee="closure_lm_"+(1e6*Math.random()|0),te={};function Qa(e,i,s,o,_){if(o&&o.once)return Ra(e,i,s,o,_);if(Array.isArray(i)){for(var h=0;h<i.length;h++)Qa(e,i[h],s,o,_);return null}return s=Sa(s),e&&e[j]?e.K(i,s,n(o)?!!o.capture:!!o,_):Ta(e,i,s,!1,o,_)}function Ta(e,i,s,o,_,h){if(!i)throw Error("Invalid event type");var d=n(_)?!!_.capture:!!_,f=Ua(e);if(f||(e[ee]=f=new Ka(e)),(s=f.add(i,s,o,d,h)).proxy)return s;if(o=function Va(){function a(i){return e.call(a.src,a.listener,i)}const e=Xa;return a}(),s.proxy=o,o.src=e,o.listener=s,e.addEventListener)O||(_=d),void 0===_&&(_=!1),e.addEventListener(i.toString(),o,_);else if(e.attachEvent)e.attachEvent(Wa(i.toString()),o);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(o)}return s}function Ra(e,i,s,o,_){if(Array.isArray(i)){for(var h=0;h<i.length;h++)Ra(e,i[h],s,o,_);return null}return s=Sa(s),e&&e[j]?e.L(i,s,n(o)?!!o.capture:!!o,_):Ta(e,i,s,!0,o,_)}function Ya(e,i,s,o,_){if(Array.isArray(i))for(var h=0;h<i.length;h++)Ya(e,i[h],s,o,_);else o=n(o)?!!o.capture:!!o,s=Sa(s),e&&e[j]?(e=e.i,(i=String(i).toString())in e.g&&(-1<(s=La(h=e.g[i],s,o,_))&&(Ja(h[s]),Array.prototype.splice.call(h,s,1),0==h.length&&(delete e.g[i],e.h--)))):e&&(e=Ua(e))&&(i=e.g[i.toString()],e=-1,i&&(e=La(i,s,o,_)),(s=-1<e?i[e]:null)&&Za(s))}function Za(e){if("number"!=typeof e&&e&&!e.da){var i=e.src;if(i&&i[j])Ma(i.i,e);else{var s=e.type,o=e.proxy;i.removeEventListener?i.removeEventListener(s,o,e.capture):i.detachEvent?i.detachEvent(Wa(s),o):i.addListener&&i.removeListener&&i.removeListener(o),(s=Ua(i))?(Ma(s,e),0==s.h&&(s.src=null,i[ee]=null)):Ja(e)}}}function Wa(e){return e in te?te[e]:te[e]="on"+e}function Xa(e,i){if(e.da)e=!0;else{i=new C(i,this);var s=e.listener,o=e.ha||e.src;e.fa&&Za(e),e=s.call(o,i)}return e}function Ua(e){return(e=e[ee])instanceof Ka?e:null}var _e="__closure_events_fn_"+(1e9*Math.random()>>>0);function Sa(e){return"function"==typeof e?e:(e[_e]||(e[_e]=function(i){return e.handleEvent(i)}),e[_e])}function E(){z.call(this),this.i=new Ka(this),this.M=this,this.F=null}function F(e,i){var s,o=e.F;if(o)for(s=[];o;o=o.F)s.push(o);if(e=e.M,o=i.type||i,"string"==typeof i)i=new A(i,e);else if(i instanceof A)i.target=i.target||e;else{var _=i;ua(i=new A(o,e),_)}if(_=!0,s)for(var h=s.length-1;0<=h;h--){var d=i.g=s[h];_=ab(d,o,!0,i)&&_}if(_=ab(d=i.g=e,o,!0,i)&&_,_=ab(d,o,!1,i)&&_,s)for(h=0;h<s.length;h++)_=ab(d=i.g=s[h],o,!1,i)&&_}function ab(e,i,s,o){if(!(i=e.i.g[String(i)]))return!0;i=i.concat();for(var _=!0,h=0;h<i.length;++h){var d=i[h];if(d&&!d.da&&d.capture==s){var f=d.listener,g=d.ha||d.src;d.fa&&Ma(e.i,d),_=!1!==f.call(g,o)&&_}}return _&&!o.defaultPrevented}function bb(e,i,s){if("function"==typeof e)s&&(e=p(e,s));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=p(e.handleEvent,e)}return 2147483647<Number(i)?-1:_.setTimeout(e,i||0)}function cb(e){e.g=bb((()=>{e.g=null,e.i&&(e.i=!1,cb(e))}),e.l);const i=e.h;e.h=null,e.m.apply(null,i)}r(E,z),E.prototype[j]=!0,E.prototype.removeEventListener=function(e,i,s,o){Ya(this,e,i,s,o)},E.prototype.N=function(){if(E.aa.N.call(this),this.i){var e,i=this.i;for(e in i.g){for(var s=i.g[e],o=0;o<s.length;o++)Ja(s[o]);delete i.g[e],i.h--}}this.F=null},E.prototype.K=function(e,i,s,o){return this.i.add(String(e),i,!1,s,o)},E.prototype.L=function(e,i,s,o){return this.i.add(String(e),i,!0,s,o)};class eb extends z{constructor(e,i){super(),this.m=e,this.l=i,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:cb(this)}N(){super.N(),this.g&&(_.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function G(e){z.call(this),this.h=e,this.g={}}r(G,z);var he=[];function gb(e){qa(e.g,(function(e,i){this.g.hasOwnProperty(i)&&Za(e)}),e),e.g={}}G.prototype.N=function(){G.aa.N.call(this),gb(this)},G.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var de=_.JSON.stringify,me=_.JSON.parse,fe=class{stringify(e){return _.JSON.stringify(e,void 0)}parse(e){return _.JSON.parse(e,void 0)}};function kb(){}function lb(e){return e.h||(e.h=e.i())}function mb(){}kb.prototype.h=null;var ge={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function nb(){A.call(this,"d")}function ob(){A.call(this,"c")}r(nb,A),r(ob,A);var pe={},Ie=null;function qb(){return Ie=Ie||new E}function rb(e){A.call(this,pe.La,e)}function J(e){const i=qb();F(i,new rb(i))}function sb(e,i){A.call(this,pe.STAT_EVENT,e),this.stat=i}function K(e){const i=qb();F(i,new sb(i,e))}function tb(e,i){A.call(this,pe.Ma,e),this.size=i}function ub(e,i){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return _.setTimeout((function(){e()}),i)}function vb(){this.g=!0}function L(e,i,s,o){e.info((function(){return"XMLHTTP TEXT ("+i+"): "+function yb(e,i){if(!e.g)return i;if(!i)return null;try{var s=JSON.parse(i);if(s)for(e=0;e<s.length;e++)if(Array.isArray(s[e])){var o=s[e];if(!(2>o.length)){var _=o[1];if(Array.isArray(_)&&!(1>_.length)){var h=_[0];if("noop"!=h&&"stop"!=h&&"close"!=h)for(var d=1;d<_.length;d++)_[d]=""}}}return de(s)}catch(e){return i}}(e,s)+(o?" "+o:"")}))}pe.La="serverreachability",r(rb,A),pe.STAT_EVENT="statevent",r(sb,A),pe.Ma="timingevent",r(tb,A),vb.prototype.xa=function(){this.g=!1},vb.prototype.info=function(){};var Te,Ee={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},Pe={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function Db(){}function M(e,i,s,o){this.j=e,this.i=i,this.l=s,this.R=o||1,this.U=new G(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Eb}function Eb(){this.i=null,this.g="",this.h=!1}r(Db,kb),Db.prototype.g=function(){return new XMLHttpRequest},Db.prototype.i=function(){return{}},Te=new Db;var Ae={},Re={};function Hb(e,i,s){e.L=1,e.v=Ib(N(i)),e.m=s,e.P=!0,Jb(e,null)}function Jb(e,i){e.F=Date.now(),Kb(e),e.A=N(e.v);var s=e.A,o=e.R;Array.isArray(o)||(o=[String(o)]),Lb(s.i,"t",o),e.C=0,s=e.j.J,e.h=new Eb,e.g=Mb(e.j,s?i:null,!e.m),0<e.O&&(e.M=new eb(p(e.Y,e,e.g),e.O)),i=e.U,s=e.g,o=e.ca;var _="readystatechange";Array.isArray(_)||(_&&(he[0]=_.toString()),_=he);for(var h=0;h<_.length;h++){var d=Qa(s,_[h],o||i.handleEvent,!1,i.h||i);if(!d)break;i.g[d.key]=d}i=e.H?sa(e.H):{},e.m?(e.u||(e.u="POST"),i["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,i)):(e.u="GET",e.g.ea(e.A,e.u,null,i)),J(),function wb(e,i,s,o,_,h){e.info((function(){if(e.g)if(h)for(var d="",f=h.split("&"),g=0;g<f.length;g++){var b=f[g].split("=");if(1<b.length){var w=b[0];b=b[1];var O=w.split("_");d=2<=O.length&&"type"==O[1]?d+(w+"=")+b+"&":d+(w+"=redacted&")}}else d=null;else d=h;return"XMLHTTP REQ ("+o+") [attempt "+_+"]: "+i+"\n"+s+"\n"+d}))}(e.i,e.u,e.A,e.l,e.R,e.m)}function Pb(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function Sb(e,i){var s=e.C,o=i.indexOf("\n",s);return-1==o?Re:(s=Number(i.substring(s,o)),isNaN(s)?Ae:(o+=1)+s>i.length?Re:(i=i.slice(o,o+s),e.C=o+s,i))}function Kb(e){e.S=Date.now()+e.I,Wb(e,e.I)}function Wb(e,i){if(null!=e.B)throw Error("WatchDog timer not null");e.B=ub(p(e.ba,e),i)}function Ob(e){e.B&&(_.clearTimeout(e.B),e.B=null)}function Qb(e){0==e.j.G||e.J||Ub(e.j,e)}function Q(e){Ob(e);var i=e.M;i&&"function"==typeof i.ma&&i.ma(),e.M=null,gb(e.U),e.g&&(i=e.g,e.g=null,i.abort(),i.ma())}function Rb(e,i){try{var s=e.j;if(0!=s.G&&(s.g==e||Xb(s.h,e)))if(!e.K&&Xb(s.h,e)&&3==s.G){try{var o=s.Da.g.parse(i)}catch(e){o=null}if(Array.isArray(o)&&3==o.length){var _=o;if(0==_[0]){e:if(!s.u){if(s.g){if(!(s.g.F+3e3<e.F))break e;Yb(s),Zb(s)}$b(s),K(18)}}else s.za=_[1],0<s.za-s.T&&37500>_[2]&&s.F&&0==s.v&&!s.C&&(s.C=ub(p(s.Za,s),6e3));if(1>=ac(s.h)&&s.ca){try{s.ca()}catch(e){}s.ca=void 0}}else R(s,11)}else if((e.K||s.g==e)&&Yb(s),!t(i))for(_=s.Da.g.parse(i),i=0;i<_.length;i++){let b=_[i];if(s.T=b[0],b=b[1],2==s.G)if("c"==b[0]){s.K=b[1],s.ia=b[2];const i=b[3];null!=i&&(s.la=i,s.j.info("VER="+s.la));const _=b[4];null!=_&&(s.Aa=_,s.j.info("SVER="+s.Aa));const w=b[5];null!=w&&"number"==typeof w&&0<w&&(o=1.5*w,s.L=o,s.j.info("backChannelRequestTimeoutMs_="+o)),o=s;const O=e.g;if(O){const e=O.g?O.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var h=o.h;h.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(h.j=h.l,h.g=new Set,h.h&&(bc(h,h.h),h.h=null))}if(o.D){const e=O.g?O.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(o.ya=e,S(o.I,o.D,e))}}s.G=3,s.l&&s.l.ua(),s.ba&&(s.R=Date.now()-e.F,s.j.info("Handshake RTT: "+s.R+"ms"));var d=e;if((o=s).qa=cc(o,o.J?o.ia:null,o.W),d.K){dc(o.h,d);var f=d,g=o.L;g&&(f.I=g),f.B&&(Ob(f),Kb(f)),o.g=d}else ec(o);0<s.i.length&&fc(s)}else"stop"!=b[0]&&"close"!=b[0]||R(s,7);else 3==s.G&&("stop"==b[0]||"close"==b[0]?"stop"==b[0]?R(s,7):gc(s):"noop"!=b[0]&&s.l&&s.l.ta(b),s.v=0)}J()}catch(e){}}M.prototype.ca=function(e){e=e.target;const i=this.M;i&&3==P(e)?i.j():this.Y(e)},M.prototype.Y=function(e){try{if(e==this.g)e:{const q=P(this.g);var i=this.g.Ba();this.g.Z();if(!(3>q)&&(3!=q||this.g&&(this.h.h||this.g.oa()||Nb(this.g)))){this.J||4!=q||7==i||J(),Ob(this);var s=this.g.Z();this.X=s;t:if(Pb(this)){var o=Nb(this.g);e="";var h=o.length,d=4==P(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){Q(this),Qb(this);var f="";break t}this.h.i=new _.TextDecoder}for(i=0;i<h;i++)this.h.h=!0,e+=this.h.i.decode(o[i],{stream:!(d&&i==h-1)});o.length=0,this.h.g+=e,this.C=0,f=this.h.g}else f=this.g.oa();if(this.o=200==s,function xb(e,i,s,o,_,h,d){e.info((function(){return"XMLHTTP RESP ("+o+") [ attempt "+_+"]: "+i+"\n"+s+"\n"+h+" "+d}))}(this.i,this.u,this.A,this.l,this.R,q,s),this.o){if(this.T&&!this.K){t:{if(this.g){var g,b=this.g;if((g=b.g?b.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!t(g)){var w=g;break t}}w=null}if(!(s=w)){this.o=!1,this.s=3,K(12),Q(this),Qb(this);break e}L(this.i,this.l,s,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Rb(this,s)}if(this.P){let e;for(s=!0;!this.J&&this.C<f.length;){if(e=Sb(this,f),e==Re){4==q&&(this.s=4,K(14),s=!1),L(this.i,this.l,null,"[Incomplete Response]");break}if(e==Ae){this.s=4,K(15),L(this.i,this.l,f,"[Invalid Chunk]"),s=!1;break}L(this.i,this.l,e,null),Rb(this,e)}if(Pb(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=q||0!=f.length||this.h.h||(this.s=1,K(16),s=!1),this.o=this.o&&s,s){if(0<f.length&&!this.W){this.W=!0;var O=this.j;O.g==this&&O.ba&&!O.M&&(O.j.info("Great, no buffering proxy detected. Bytes received: "+f.length),Tb(O),O.M=!0,K(11))}}else L(this.i,this.l,f,"[Invalid Chunked Response]"),Q(this),Qb(this)}else L(this.i,this.l,f,null),Rb(this,f);4==q&&Q(this),this.o&&!this.J&&(4==q?Ub(this.j,this):(this.o=!1,Kb(this)))}else(function Vb(e){const i={};e=(e.g&&2<=P(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let o=0;o<e.length;o++){if(t(e[o]))continue;var s=va(e[o]);const _=s[0];if("string"!=typeof(s=s[1]))continue;s=s.trim();const h=i[_]||[];i[_]=h,h.push(s)}!function ra(e,i){for(const s in e)i.call(void 0,e[s],s,e)}(i,(function(e){return e.join(", ")}))})(this.g),400==s&&0<f.indexOf("Unknown SID")?(this.s=3,K(12)):(this.s=0,K(13)),Q(this),Qb(this)}}}catch(e){}},M.prototype.cancel=function(){this.J=!0,Q(this)},M.prototype.ba=function(){this.B=null;const e=Date.now();0<=e-this.S?(function zb(e,i){e.info((function(){return"TIMEOUT: "+i}))}(this.i,this.A),2!=this.L&&(J(),K(17)),Q(this),this.s=2,Qb(this)):Wb(this,this.S-e)};var ye=class{constructor(e,i){this.g=e,this.map=i}};function ic(e){this.l=e||10,_.PerformanceNavigationTiming?e=0<(e=_.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(_.chrome&&_.chrome.loadTimes&&_.chrome.loadTimes()&&_.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 jc(e){return!!e.h||!!e.g&&e.g.size>=e.j}function ac(e){return e.h?1:e.g?e.g.size:0}function Xb(e,i){return e.h?e.h==i:!!e.g&&e.g.has(i)}function bc(e,i){e.g?e.g.add(i):e.h=i}function dc(e,i){e.h&&e.h==i?e.h=null:e.g&&e.g.has(i)&&e.g.delete(i)}function kc(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let i=e.i;for(const s of e.g.values())i=i.concat(s.D);return i}return la(e.i)}function nc(e,i){if(e.forEach&&"function"==typeof e.forEach)e.forEach(i,void 0);else if(ha(e)||"string"==typeof e)Array.prototype.forEach.call(e,i,void 0);else for(var s=function mc(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(ha(e)||"string"==typeof e){var i=[];e=e.length;for(var s=0;s<e;s++)i.push(s);return i}i=[],s=0;for(const o in e)i[s++]=o;return i}}}(e),o=function lc(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");if(ha(e)){for(var i=[],s=e.length,o=0;o<s;o++)i.push(e[o]);return i}for(o in i=[],s=0,e)i[s++]=e[o];return i}(e),_=o.length,h=0;h<_;h++)i.call(void 0,o[h],s&&s[h],e)}ic.prototype.cancel=function(){if(this.i=kc(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 Ve=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function T(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof T){this.h=e.h,qc(this,e.j),this.o=e.o,this.g=e.g,rc(this,e.s),this.l=e.l;var i=e.i,s=new sc;s.i=i.i,i.g&&(s.g=new Map(i.g),s.h=i.h),tc(this,s),this.m=e.m}else e&&(i=String(e).match(Ve))?(this.h=!1,qc(this,i[1]||"",!0),this.o=uc(i[2]||""),this.g=uc(i[3]||"",!0),rc(this,i[4]),this.l=uc(i[5]||"",!0),tc(this,i[6]||"",!0),this.m=uc(i[7]||"")):(this.h=!1,this.i=new sc(null,this.h))}function N(e){return new T(e)}function qc(e,i,s){e.j=s?uc(i,!0):i,e.j&&(e.j=e.j.replace(/:$/,""))}function rc(e,i){if(i){if(i=Number(i),isNaN(i)||0>i)throw Error("Bad port number "+i);e.s=i}else e.s=null}function tc(e,i,s){i instanceof sc?(e.i=i,function Ac(e,i){i&&!e.j&&(U(e),e.i=null,e.g.forEach((function(e,i){var s=i.toLowerCase();i!=s&&(Dc(this,i),Lb(this,s,e))}),e)),e.j=i}(e.i,e.h)):(s||(i=vc(i,Ce)),e.i=new sc(i,e.h))}function S(e,i,s){e.i.set(i,s)}function Ib(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 uc(e,i){return e?i?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function vc(e,i,s){return"string"==typeof e?(e=encodeURI(e).replace(i,Cc),s&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Cc(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}T.prototype.toString=function(){var e=[],i=this.j;i&&e.push(vc(i,be,!0),":");var s=this.g;return(s||"file"==i)&&(e.push("//"),(i=this.o)&&e.push(vc(i,be,!0),"@"),e.push(encodeURIComponent(String(s)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(s=this.s)&&e.push(":",String(s))),(s=this.l)&&(this.g&&"/"!=s.charAt(0)&&e.push("/"),e.push(vc(s,"/"==s.charAt(0)?we:Se,!0))),(s=this.i.toString())&&e.push("?",s),(s=this.m)&&e.push("#",vc(s,De)),e.join("")};var ve,be=/[#\/\?@]/g,Se=/[#\?:]/g,we=/[#\?]/g,Ce=/[#\?@]/g,De=/#/g;function sc(e,i){this.h=this.g=null,this.i=e||null,this.j=!!i}function U(e){e.g||(e.g=new Map,e.h=0,e.i&&function pc(e,i){if(e){e=e.split("&");for(var s=0;s<e.length;s++){var o=e[s].indexOf("="),_=null;if(0<=o){var h=e[s].substring(0,o);_=e[s].substring(o+1)}else h=e[s];i(h,_?decodeURIComponent(_.replace(/\+/g," ")):"")}}}(e.i,(function(i,s){e.add(decodeURIComponent(i.replace(/\+/g," ")),s)})))}function Dc(e,i){U(e),i=V(e,i),e.g.has(i)&&(e.i=null,e.h-=e.g.get(i).length,e.g.delete(i))}function Ec(e,i){return U(e),i=V(e,i),e.g.has(i)}function Lb(e,i,s){Dc(e,i),0<s.length&&(e.i=null,e.g.set(V(e,i),la(s)),e.h+=s.length)}function V(e,i){return i=String(i),e.j&&(i=i.toLowerCase()),i}function W(e,i,s,o,_){try{_&&(_.onload=null,_.onerror=null,_.onabort=null,_.ontimeout=null),o(s)}catch(e){}}function Hc(){this.g=new fe}function Ic(e,i,s){const o=s||"";try{nc(e,(function(e,s){let _=e;n(e)&&(_=de(e)),i.push(o+s+"="+encodeURIComponent(_))}))}catch(e){throw i.push(o+"type="+encodeURIComponent("_badmap")),e}}function Jc(e){this.l=e.Ub||null,this.j=e.eb||!1}function Kc(e,i){E.call(this),this.D=e,this.o=i,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Nc(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function Mc(e){e.readyState=4,e.l=null,e.j=null,e.v=null,Lc(e)}function Lc(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Oc(e){let i="";return qa(e,(function(e,s){i+=s,i+=":",i+=e,i+="\r\n"})),i}function Pc(e,i,s){e:{for(o in s){var o=!1;break e}o=!0}o||(s=Oc(s),"string"==typeof e?null!=s&&encodeURIComponent(String(s)):S(e,i,s))}function X(e){E.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=sc.prototype).add=function(e,i){U(this),this.i=null,e=V(this,e);var s=this.g.get(e);return s||this.g.set(e,s=[]),s.push(i),this.h+=1,this},e.forEach=function(e,i){U(this),this.g.forEach((function(s,o){s.forEach((function(s){e.call(i,s,o,this)}),this)}),this)},e.na=function(){U(this);const e=Array.from(this.g.values()),i=Array.from(this.g.keys()),s=[];for(let o=0;o<i.length;o++){const _=e[o];for(let e=0;e<_.length;e++)s.push(i[o])}return s},e.V=function(e){U(this);let i=[];if("string"==typeof e)Ec(this,e)&&(i=i.concat(this.g.get(V(this,e))));else{e=Array.from(this.g.values());for(let s=0;s<e.length;s++)i=i.concat(e[s])}return i},e.set=function(e,i){return U(this),this.i=null,Ec(this,e=V(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[i]),this.h+=1,this},e.get=function(e,i){return e&&0<(e=this.V(e)).length?String(e[0]):i},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],i=Array.from(this.g.keys());for(var s=0;s<i.length;s++){var o=i[s];const h=encodeURIComponent(String(o)),d=this.V(o);for(o=0;o<d.length;o++){var _=h;""!==d[o]&&(_+="="+encodeURIComponent(String(d[o]))),e.push(_)}}return this.i=e.join("&")},r(Jc,kb),Jc.prototype.g=function(){return new Kc(this.l,this.j)},Jc.prototype.i=(ve={},function(){return ve}),r(Kc,E),(e=Kc.prototype).open=function(e,i){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=i,this.readyState=1,Lc(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const i={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(i.body=e),(this.D||_).fetch(new Request(this.A,i)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Mc(this)),this.readyState=0},e.Sa=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,Lc(this)),this.g&&(this.readyState=3,Lc(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==_.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.v=new TextDecoder;Nc(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var i=e.value?e.value:new Uint8Array(0);(i=this.v.