1const Gi=()=>{};var Wn={};/** 2 * @license 3 * Copyright 2017 Google LLC 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */const ii=function(r){const i=[];let o=0;for(let g=0;g<r.length;g++){let m=r.charCodeAt(g);m<128?i[o++]=m:m<2048?(i[o++]=m>>6|192,i[o++]=m&63|128):(m&64512)===55296&&g+1<r.length&&(r.charCodeAt(g+1)&64512)===56320?(m=65536+((m&1023)<<10)+(r.charCodeAt(++g)&1023),i[o++]=m>>18|240,i[o++]=m>>12&63|128,i[o++]=m>>6&63|128,i[o++]=m&63|128):(i[o++]=m>>12|224,i[o++]=m>>6&63|128,i[o++]=m&63|128)}return i},Ji=function(r){const i=[];let o=0,g=0;for(;o<r.length;){const m=r[o++];if(m<128)i[g++]=String.fromCharCode(m);else if(m>191&&m<224){const b=r[o++];i[g++]=String.fromCharCode((m&31)<<6|b&63)}else if(m>239&&m<365){const b=r[o++],v=r[o++],E=r[o++],S=((m&7)<<18|(b&63)<<12|(v&63)<<6|E&63)-65536;i[g++]=String.fromCharCode(55296+(S>>10)),i[g++]=String.fromCharCode(56320+(S&1023))}else{const b=r[o++],v=r[o++];i[g++]=String.fromCharCode((m&15)<<12|(b&63)<<6|v&63)}}return i.join("")},ri={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:typeof atob=="function",encodeByteArray(r,i){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const o=i?this.byteToCharMapWebSafe_:this.byteToCharMap_,g=[];for(let m=0;m<r.length;m+=3){const b=r[m],v=m+1<r.length,E=v?r[m+1]:0,S=m+2<r.length,_=S?r[m+2]:0,J=b>>2,R=(b&3)<<4|E>>4;let C=(E&15)<<2|_>>6,x=_&63;S||(x=64,v||(C=64)),g.push(o[J],o[R],o[C],o[x])}return g.join("")},encodeString(r,i){return this.HAS_NATIVE_SUPPORT&&!i?btoa(r):this.encodeByteArray(ii(r),i)},decodeString(r,i){return this.HAS_NATIVE_SUPPORT&&!i?atob(r):Ji(this.decodeStringToByteArray(r,i))},decodeStringToByteArray(r,i){this.init_();const o=i?this.charToByteMapWebSafe_:this.charToByteMap_,g=[];for(let m=0;m<r.length;){const b=o[r.charAt(m++)],E=m<r.length?o[r.charAt(m)]:0;++m;const _=m<r.length?o[r.charAt(m)]:64;++m;const R=m<r.length?o[r.charAt(m)]:64;if(++m,b==null||E==null||_==null||R==null)throw new Ki;const C=b<<2|E>>4;if(g.push(C),_!==64){const x=E<<4&240|_>>2;if(g.push(x),R!==64){const I=_<<6&192|R;g.push(I)}}}return g},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r<this.ENCODED_VALS.length;r++)this.byteToCharMap_[r]=this.ENCODED_VALS.charAt(r),this.charToByteMap_[this.byteToCharMap_[r]]=r,this.byteToCharMapWebSafe_[r]=this.ENCODED_VALS_WEBSAFE.charAt(r),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[r]]=r,r>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}};
16class Ki extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Yi=function(r){const i=ii(r);return ri.encodeByteArray(i,!0)},ie=function(r){return Yi(r).replace(/\./g,"")},Zi=function(r){try{return ri.decodeString(r,!0)}catch(i){console.error("base64Decode failed: ",i)}return null};/** 17 * @license 18 * Copyright 2022 Google LLC 19 * 20 * Licensed under the Apache License, Version 2.0 (the "License"); 21 * you may not use this file except in compliance with the License. 22 * You may obtain a copy of the License at 23 * 24 * http://www.apache.org/licenses/LICENSE-2.0 25 * 26 * Unless required by applicable law or agreed to in writing, software 27 * distributed under the License is distributed on an "AS IS" BASIS, 28 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 29 * See the License for the specific language governing permissions and 30 * limitations under the License. 31 */function qi(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 32 * @license 33 * Copyright 2022 Google LLC 34 * 35 * Licensed under the Apache License, Version 2.0 (the "License"); 36 * you may not use this file except in compliance with the License. 37 * You may obtain a copy of the License at 38 * 39 * http://www.apache.org/licenses/LICENSE-2.0 40 * 41 * Unless required by applicable law or agreed to in writing, software 42 * distributed under the License is distributed on an "AS IS" BASIS, 43 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 44 * See the License for the specific language governing permissions and 45 * limitations under the License. 46 */const Qi=()=>qi().__FIREBASE_DEFAULTS__,tr=()=>{if(typeof process>"u"||typeof Wn>"u")return;const r=Wn.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},er=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const i=r&&Zi(r[1]);return i&&JSON.parse(i)},oe=()=>{try{return Gi()||Qi()||tr()||er()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},nr=r=>{var i,o;return(o=(i=oe())===null||i===void 0?void 0:i.emulatorHosts)===null||o===void 0?void 0:o[r]},Hs=r=>{const i=nr(r);if(!i)return;const o=i.lastIndexOf(":");if(o<=0||o+1===i.length)throw new Error(`Invalid host ${i} with no separate hostname and port!`);const g=parseInt(i.substring(o+1),10);return i[0]==="["?[i.substring(1,o-1),g]:[i.substring(0,o),g]},si=()=>{var r;return(r=oe())===null||r===void 0?void 0:r.config},Ls=r=>{var i;return(i=oe())===null||i===void 0?void 0:i[`_${r}`]};/** 47 * @license 48 * Copyright 2017 Google LLC 49 * 50 * Licensed under the Apache License, Version 2.0 (the "License"); 51 * you may not use this file except in compliance with the License. 52 * You may obtain a copy of the License at 53 * 54 * http://www.apache.org/licenses/LICENSE-2.0 55 * 56 * Unless required by applicable law or agreed to in writing, software 57 * distributed under the License is distributed on an "AS IS" BASIS, 58 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 59 * See the License for the specific language governing permissions and 60 * limitations under the License. 61 */class ir{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}wrapCallback(i){return(o,g)=>{o?this.reject(o):this.resolve(g),typeof i=="function"&&(this.promise.catch(()=>{}),i.length===1?i(o):i(o,g))}}}/** 62 * @license 63 * Copyright 2025 Google LLC 64 * 65 * Licensed under the Apache License, Version 2.0 (the "License"); 66 * you may not use this file except in compliance with the License. 67 * You may obtain a copy of the License at 68 * 69 * http://www.apache.org/licenses/LICENSE-2.0 70 * 71 * Unless required by applicable law or agreed to in writing, software 72 * distributed under the License is distributed on an "AS IS" BASIS, 73 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 74 * See the License for the specific language governing permissions and 75 * limitations under the License. 76 */function rr(r){try{return(r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Ns(r){return(await fetch(r,{credentials:"include"})).ok}/** 77 * @license 78 * Copyright 2021 Google LLC 79 * 80 * Licensed under the Apache License, Version 2.0 (the "License");
81 * you may not use this file except in compliance with the License. 82 * You may obtain a copy of the License at 83 * 84 * http://www.apache.org/licenses/LICENSE-2.0 85 * 86 * Unless required by applicable law or agreed to in writing, software 87 * distributed under the License is distributed on an "AS IS" BASIS, 88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 89 * See the License for the specific language governing permissions and 90 * limitations under the License. 91 */function Fs(r,i){if(r.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const o={alg:"none",type:"JWT"},g=i||"demo-project",m=r.iat||0,b=r.sub||r.user_id;if(!b)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const v=Object.assign({iss:`https://securetoken.google.com/${g}`,aud:g,iat:m,exp:m+3600,auth_time:m,sub:b,user_id:b,firebase:{sign_in_provider:"custom",identities:{}}},r);return[ie(JSON.stringify(o)),ie(JSON.stringify(v)),""].join(".")}const xt={};function sr(){const r={prod:[],emulator:[]};for(const i of Object.keys(xt))xt[i]?r.emulator.push(i):r.prod.push(i);return r}function or(r){let i=document.getElementById(r),o=!1;return i||(i=document.createElement("div"),i.setAttribute("id",r),o=!0),{created:o,element:i}}let Xn=!1;function $s(r,i){if(typeof window>"u"||typeof document>"u"||!rr(window.location.host)||xt[r]===i||xt[r]||Xn)return;xt[r]=i;function o(C){return`__firebase__banner__${C}`}const g="__firebase__banner",b=sr().prod.length>0;function v(){const C=document.getElementById(g);C&&C.remove()}function E(C){C.style.display="flex",C.style.background="#7faaf0",C.style.position="fixed",C.style.bottom="5px",C.style.left="5px",C.style.padding=".5em",C.style.borderRadius="5px",C.style.alignItems="center"}function S(C,x){C.setAttribute("width","24"),C.setAttribute("id",x),C.setAttribute("height","24"),C.setAttribute("viewBox","0 0 24 24"),C.setAttribute("fill","none"),C.style.marginLeft="-6px"}function _(){const C=document.createElement("span");return C.style.cursor="pointer",C.style.marginLeft="16px",C.style.fontSize="24px",C.innerHTML=" ×",C.onclick=()=>{Xn=!0,v()},C}function J(C,x){C.setAttribute("id",x),C.innerText="Learn more",C.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",C.setAttribute("target","__blank"),C.style.paddingLeft="5px",C.style.textDecoration="underline"}function R(){const C=or(g),x=o("text"),I=document.getElementById(x)||document.createElement("span"),j=o("learnmore"),B=document.getElementById(j)||document.createElement("a"),K=o("preprendIcon"),$=document.getElementById(K)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(C.created){const k=C.element;E(k),J(B,j);const X=_();S($,K),k.append($,I,B,X),document.body.appendChild(k)}b?(I.innerText="Preview backend disconnected.",$.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 92<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"/> 93</g> 94<defs> 95<clipPath id="clip0_6013_33858"> 96<rect width="24" height="24" fill="white"/> 97</clipPath> 98</defs>`):($.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 99<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"/> 100</g> 101<defs> 102<clipPath id="clip0_6083_34804"> 103<rect width="24" height="24" fill="white"/> 104</clipPath> 105</defs>`,I.innerText="Preview backend running in this workspace."),I.setAttribute("id",x)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",R):R()}/** 106 * @license 107 * Copyright 2017 Google LLC 108 * 109 * Licensed under the Apache License, Version 2.0 (the "License");
110 * you may not use this file except in compliance with the License. 111 * You may obtain a copy of the License at 112 * 113 * http://www.apache.org/licenses/LICENSE-2.0 114 * 115 * Unless required by applicable law or agreed to in writing, software 116 * distributed under the License is distributed on an "AS IS" BASIS, 117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 118 * See the License for the specific language governing permissions and 119 * limitations under the License. 120 */function oi(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Us(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(oi())}function hr(){var r;const i=(r=oe())===null||r===void 0?void 0:r.forceEnvironment;if(i==="node")return!0;if(i==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function zs(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Vs(){const r=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof r=="object"&&r.id!==void 0}function Ws(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Xs(){const r=oi();return r.indexOf("MSIE ")>=0||r.indexOf("Trident/")>=0}function Gs(){return!hr()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function ar(){try{return typeof indexedDB=="object"}catch{return!1}}function lr(){return new Promise((r,i)=>{try{let o=!0;const g="validate-browser-context-for-indexeddb-analytics-module",m=self.indexedDB.open(g);m.onsuccess=()=>{m.result.close(),o||self.indexedDB.deleteDatabase(g),r(!0)},m.onupgradeneeded=()=>{o=!1},m.onerror=()=>{var b;i(((b=m.error)===null||b===void 0?void 0:b.message)||"")}}catch(o){i(o)}})}/** 121 * @license 122 * Copyright 2017 Google LLC 123 * 124 * Licensed under the Apache License, Version 2.0 (the "License"); 125 * you may not use this file except in compliance with the License. 126 * You may obtain a copy of the License at 127 * 128 * http://www.apache.org/licenses/LICENSE-2.0 129 * 130 * Unless required by applicable law or agreed to in writing, software 131 * distributed under the License is distributed on an "AS IS" BASIS, 132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133 * See the License for the specific language governing permissions and 134 * limitations under the License. 135 */const ur="FirebaseError";class Rt extends Error{constructor(i,o,g){super(o),this.code=i,this.customData=g,this.name=ur,Object.setPrototypeOf(this,Rt.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,hi.prototype.create)}}class hi{constructor(i,o,g){this.service=i,this.serviceName=o,this.errors=g}create(i,...o){const g=o[0]||{},m=`${this.service}/${i}`,b=this.errors[i],v=b?cr(b,g):"Error",E=`${this.serviceName}: ${v} (${m}).`;return new Rt(m,E,g)}}function cr(r,i){return r.replace(fr,(o,g)=>{const m=i[g];return m!=null?String(m):`<${g}?>`})}const fr=/\{\$([^}]+)}/g;function Js(r){for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i))return!1;return!0}function ke(r,i){if(r===i)return!0;const o=Object.keys(r),g=Object.keys(i);for(const m of o){if(!g.includes(m))return!1;const b=r[m],v=i[m];if(Gn(b)&&Gn(v)){if(!ke(b,v))return!1}else if(b!==v)return!1}for(const m of g)if(!o.includes(m))return!1;return!0}function Gn(r){return r!==null&&typeof r=="object"}/** 136 * @license 137 * Copyright 2017 Google LLC 138 * 139 * Licensed under the Apache License, Version 2.0 (the "License"); 140 * you may not use this file except in compliance with the License. 141 * You may obtain a copy of the License at 142 * 143 * http://www.apache.org/licenses/LICENSE-2.0 144 * 145 * Unless required by applicable law or agreed to in writing, software 146 * distributed under the License is distributed on an "AS IS" BASIS, 147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 148 * See the License for the specific language governing permissions and 149 * limitations under the License. 150 */function Ks(r){const i=[];for(const[o,g]of Object.entries(r))Array.isArray(g)?g.forEach(m=>{i.push(encodeURIComponent(o)+"="+encodeURIComponent(m))}):i.push(encodeURIComponent(o)+"="+encodeURIComponent(g));return i.length?"&"+i.join("&"):""}function Ys(r,i){const o=new pr(r,i);return o.subscribe.bind(o)}class pr{constructor(i,o){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
150ise.resolve(),this.finalized=!1,this.onNoObservers=o,this.task.then(()=>{i(this)}).catch(g=>{this.error(g)})}next(i){this.forEachObserver(o=>{o.next(i)})}error(i){this.forEachObserver(o=>{o.error(i)}),this.close(i)}complete(){this.forEachObserver(i=>{i.complete()}),this.close()}subscribe(i,o,g){let m;if(i===void 0&&o===void 0&&g===void 0)throw new Error("Missing Observer.");gr(i,["next","error","complete"])?m=i:m={next:i,error:o,complete:g},m.next===void 0&&(m.next=Me),m.error===void 0&&(m.error=Me),m.complete===void 0&&(m.complete=Me);const b=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?m.error(this.finalError):m.complete()}catch{}}),this.observers.push(m),b}unsubscribeOne(i){this.observers===void 0||this.observers[i]===void 0||(delete this.observers[i],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(i){if(!this.finalized)for(let o=0;o<this.observers.length;o++)this.sendOne(o,i)}sendOne(i,o){this.task.then(()=>{if(this.observers!==void 0&&this.observers[i]!==void 0)try{o(this.observers[i])}catch(g){typeof console<"u"&&console.error&&console.error(g)}})}close(i){this.finalized||(this.finalized=!0,i!==void 0&&(this.finalError=i),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function gr(r,i){if(typeof r!="object"||r===null)return!1;for(const o of i)if(o in r&&typeof r[o]=="function")return!0;return!1}function Me(){}/** 151 * @license 152 * Copyright 2021 Google LLC 153 * 154 * Licensed under the Apache License, Version 2.0 (the "License"); 155 * you may not use this file except in compliance with the License. 156 * You may obtain a copy of the License at 157 * 158 * http://www.apache.org/licenses/LICENSE-2.0 159 * 160 * Unless required by applicable law or agreed to in writing, software 161 * distributed under the License is distributed on an "AS IS" BASIS, 162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 163 * See the License for the specific language governing permissions and 164 * limitations under the License. 165 */function Zs(r){return r&&r._delegate?r._delegate:r}class re{constructor(i,o,g){this.name=i,this.instanceFactory=o,this.type=g,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(i){return this.instantiationMode=i,this}setMultipleInstances(i){return this.multipleInstances=i,this}setServiceProps(i){return this.serviceProps=i,this}setInstanceCreatedCallback(i){return this.onInstanceCreated=i,this}}/** 166 * @license 167 * Copyright 2019 Google LLC 168 * 169 * Licensed under the Apache License, Version 2.0 (the "License"); 170 * you may not use this file except in compliance with the License. 171 * You may obtain a copy of the License at 172 * 173 * http://www.apache.org/licenses/LICENSE-2.0 174 * 175 * Unless required by applicable law or agreed to in writing, software 176 * distributed under the License is distributed on an "AS IS" BASIS, 177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 178 * See the License for the specific language governing permissions and 179 * limitations under the License. 180 */const ut="[DEFAULT]";/** 181 * @license 182 * Copyright 2019 Google LLC 183 * 184 * Licensed under the Apache License, Version 2.0 (the "License"); 185 * you may not use this file except in compliance with the License. 186 * You may obtain a copy of the License at 187 * 188 * http://www.apache.org/licenses/LICENSE-2.0 189 * 190 * Unless required by applicable law or agreed to in writing, software 191 * distributed under the License is distributed on an "AS IS" BASIS, 192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 193 * See the License for the specific language governing permissions and 194 * limitations under the License. 195 */class dr{constructor(i,o){this.name=i,this.container=o,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(i){const o=this.normalizeInstanceIdentifier(i);if(!this.instancesDeferred.has(o)){const g=new ir;if(this.instancesDeferred.set(o,g),this.isInitialized(o)||this.shouldAutoInitialize())try{const m=this.getOrInitializeService({instanceIdentifier:o});m&&g.resolve(m)}catch{}}return this.instancesDeferred.get(o).promise}getImmediate(i){var o;const g=this.normalizeInstanceIdentifier(i==null?void 0:i.identifier),m=(o=i==null?void 0:i.optional)!==null&&o!==void 0?o:!1;if(this.isInitialized(g)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:g})}catch(b){if(m)return null;throw b}else{if(m)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(i){if(i.name!==this.name)throw Error(`Mismatching Component ${i.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=i,!!this.shouldAutoInitialize()){if(yr(i))try{this.getOrInitializeService({instanceIdentifier:ut})}catch{}for(const[o,g]of this.instancesDeferred.entries()){const m=this.normalizeInstanceIdentifier(o);try{const b=this.getOrInitializeService({instanceIdentifier:m});g.resolve(b)}catch{}}}}clearInstance(i=ut){this.instancesDeferred.delete(i),this.instancesOptions.delete(i),this.instances.delete(i)}async delete(){const i=Array.from(this.instances.values());await Promise.all([...i.filter(o=>"INTERNAL"in o).map(o=>o.INTERNAL.delete()),...i.filter(o=>"_delete"in o).map(o=>o._delete())])}isComponentSet(){return this.component!=null}isInitialized(i=ut){return this.instances.has(i)}getOptions(i=ut){return this.instancesOptions.get(i)||{}}initialize(i={}){const{options:o={}}=i,g=this.normalizeInstanceIdentifier(i.instanceIdentifier);if(this.isInitialized(g))throw Error(`${this.name}(${g}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const m=this.getOrInitializeService({instanceIdentifier:g,options:o});for(const[b,v]of this.instancesDeferred.entries()){const E=this.normalizeInstanceIdentifier(b);g===E&&v.resolve(m)}return m}onInit(i,o){var g;const m=this.normalizeInstanceIdentifier(o),b=(g=this.onInitCallbacks.get(m))!==null&&g!==void 0?g:new Set;b.add(i),this.onInitCallbacks.set(m,b);const v=this.instances.get(m);return v&&i(v,m),()=>{b.delete(i)}}invokeOnInitCallbacks(i,o){const g=this.onInitCallbacks.get(o);if(g)for(const m of g)try{m(i,o)}catch{}}getOrInitializeService({instanceIdentifier:i,options:o={}}){let g=this.instances.get(i);if(!g&&this.component&&(g=this.component.instanceFactory(this.container,{instanceIdentifier:mr(i),options:o}),this.instances.set(i,g),this.instancesOptions.set(i,o),this.invokeOnInitCallbacks(g,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,i,g)}catch{}return g||null}normalizeInstanceIdentifier(i=ut){return this.component?this.component.multipleInstances?i:ut:i}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function mr(r){return r===ut?void 0:r}function yr(r){return r.instantiationMode==="EAGER"}/** 196 * @license 197 * Copyright 2019 Google LLC 198 * 199 * Licensed under the Apache License, Version 2.0 (the "License");
200 * you may not use this file except in compliance with the License. 201 * You may obtain a copy of the License at 202 * 203 * http://www.apache.org/licenses/LICENSE-2.0 204 * 205 * Unless required by applicable law or agreed to in writing, software 206 * distributed under the License is distributed on an "AS IS" BASIS, 207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 208 * See the License for the specific language governing permissions and 209 * limitations under the License. 210 */class vr{constructor(i){this.name=i,this.providers=new Map}addComponent(i){const o=this.getProvider(i.name);if(o.isComponentSet())throw new Error(`Component ${i.name} has already been registered with ${this.name}`);o.setComponent(i)}addOrOverwriteComponent(i){this.getProvider(i.name).isComponentSet()&&this.providers.delete(i.name),this.addComponent(i)}getProvider(i){if(this.providers.has(i))return this.providers.get(i);const o=new dr(i,this);return this.providers.set(i,o),o}getProviders(){return Array.from(this.providers.values())}}/** 211 * @license 212 * Copyright 2017 Google LLC 213 * 214 * Licensed under the Apache License, Version 2.0 (the "License"); 215 * you may not use this file except in compliance with the License. 216 * You may obtain a copy of the License at 217 * 218 * http://www.apache.org/licenses/LICENSE-2.0 219 * 220 * Unless required by applicable law or agreed to in writing, software 221 * distributed under the License is distributed on an "AS IS" BASIS, 222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 223 * See the License for the specific language governing permissions and 224 * limitations under the License. 225 */var O;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(O||(O={}));const wr={debug:O.DEBUG,verbose:O.VERBOSE,info:O.INFO,warn:O.WARN,error:O.ERROR,silent:O.SILENT},br=O.INFO,Er={[O.DEBUG]:"log",[O.VERBOSE]:"log",[O.INFO]:"info",[O.WARN]:"warn",[O.ERROR]:"error"},Cr=(r,i,...o)=>{if(i<r.logLevel)return;const g=new Date().toISOString(),m=Er[i];if(m)console[m](`[${g}] ${r.name}:`,...o);else throw new Error(`Attempted to log a message with an invalid logType (value: ${i})`)};class Sr{constructor(i){this.name=i,this._logLevel=br,this._logHandler=Cr,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(i){if(!(i in O))throw new TypeError(`Invalid value "${i}" assigned to \`logLevel\``);this._logLevel=i}setLogLevel(i){this._logLevel=typeof i=="string"?wr[i]:i}get logHandler(){return this._logHandler}set logHandler(i){if(typeof i!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=i}get userLogHandler(){return this._userLogHandler}set userLogHandler(i){this._userLogHandler=i}debug(...i){this._userLogHandler&&this._userLogHandler(this,O.DEBUG,...i),this._logHandler(this,O.DEBUG,...i)}log(...i){this._userLogHandler&&this._userLogHandler(this,O.VERBOSE,...i),this._logHandler(this,O.VERBOSE,...i)}info(...i){this._userLogHandler&&this._userLogHandler(this,O.INFO,...i),this._logHandler(this,O.INFO,...i)}warn(...i){this._userLogHandler&&this._userLogHandler(this,O.WARN,...i),this._logHandler(this,O.WARN,...i)}error(...i){this._userLogHandler&&this._userLogHandler(this,O.ERROR,...i),this._logHandler(this,O.ERROR,...i)}}const _r=(r,i)=>i.some(o=>r instanceof o);let Jn,Kn;function Ir(){return Jn||(Jn=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ar(){return Kn||(Kn=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ai=new WeakMap,He=new WeakMap,li=new WeakMap,xe=new WeakMap,ze=new WeakMap;function Tr(r){const i=new Promise((o,g)=>{const m=()=>{r.removeEventListener("success",b),r.removeEventListener("error",v)},b=()=>{o(rt(r.result)),m()},v=()=>{g(r.error),m()};r.addEventListener("success",b),r.addEventListener("error",v)});return i.then(o=>{o instanceof IDBCursor&&ai.set(o,r)}).catch(()=>{}),ze.set(i,r),i}function Dr(r){if(He.has(r))return;const i=new Promise((o,g)=>{const m=()=>{r.removeEventListener("complete",b),r.removeEventListener("error",v),r.removeEventListener("abort",v)},b=()=>{o(),m()},v=()=>{g(r.error||new DOMException("AbortError","AbortError")),m()};r.addEventListener("complete",b),r.addEventListener("error",v),r.addEventListener("abort",v)});He.set(r,i)}let Le={get(r,i,o){if(r instanceof IDBTransaction){if(i==="done")return He.get(r);if(i==="objectStoreNames")return r.objectStoreNames||li.get(r);if(i==="store")return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return rt(r[i])},set(r,i,o){return r[i]=o,!0},has(r,i){return r instanceof IDBTransaction&&(i==="done"||i==="store")?!0:i in r}};function Or(r){Le=r(Le)}function Br(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(i,...o){const g=r.call(je(this),i,...o);return li.set(g,i.sort?i.sort():[i]),rt(g)}:Ar().includes(r)?function(...i){return r.apply(je(this),i),rt(ai.get(this))}:function(...i){return rt(r.apply(je(this),i))}}function Mr(r){return typeof r=="function"?Br(r):(r instanceof IDBTransaction&&Dr(r),_r(r,Ir())?new Proxy(r,Le):r)}function rt(r){if(r instanceof IDBRequest)return Tr(r);if(xe.has(r))return xe.get(r);const i=Mr(r);return i!==r&&(xe.set(r,i),ze.set(i,r)),i}const je=r=>ze.get(r);function xr(r,i,{blocked:o,upgrade:g,blocking:m,terminated:b}={}){const v=indexedDB.open(r,i),E=rt(v);return g&&v.addEventListener("upgradeneeded",S=>{g(rt(v.result),S.oldVersion,S.newVersion,rt(v.transaction),S)}),o&&v.addEventListener("blocked",S=>
225o(S.oldVersion,S.newVersion,S)),E.then(S=>{b&&S.addEventListener("close",()=>b()),m&&S.addEventListener("versionchange",_=>m(_.oldVersion,_.newVersion,_))}).catch(()=>{}),E}const jr=["get","getKey","getAll","getAllKeys","count"],Rr=["put","add","delete","clear"],Re=new Map;function Yn(r,i){if(!(r instanceof IDBDatabase&&!(i in r)&&typeof i=="string"))return;if(Re.get(i))return Re.get(i);const o=i.replace(/FromIndex$/,""),g=i!==o,m=Rr.includes(o);if(!(o in(g?IDBIndex:IDBObjectStore).prototype)||!(m||jr.includes(o)))return;const b=async function(v,...E){const S=this.transaction(v,m?"readwrite":"readonly");let _=S.store;return g&&(_=_.index(E.shift())),(await Promise.all([_[o](...E),m&&S.done]))[0]};return Re.set(i,b),b}Or(r=>({...r,get:(i,o,g)=>Yn(i,o)||r.get(i,o,g),has:(i,o)=>!!Yn(i,o)||r.has(i,o)}));/** 226 * @license 227 * Copyright 2019 Google LLC 228 * 229 * Licensed under the Apache License, Version 2.0 (the "License"); 230 * you may not use this file except in compliance with the License. 231 * You may obtain a copy of the License at 232 * 233 * http://www.apache.org/licenses/LICENSE-2.0 234 * 235 * Unless required by applicable law or agreed to in writing, software 236 * distributed under the License is distributed on an "AS IS" BASIS, 237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 238 * See the License for the specific language governing permissions and 239 * limitations under the License. 240 */class Pr{constructor(i){this.container=i}getPlatformInfoString(){return this.container.getProviders().map(o=>{if(kr(o)){const g=o.getImmediate();return`${g.library}/${g.version}`}else return null}).filter(o=>o).join(" ")}}function kr(r){const i=r.getComponent();return(i==null?void 0:i.type)==="VERSION"}const Ne="@firebase/app",Zn="0.13.2";/** 241 * @license 242 * Copyright 2019 Google LLC 243 * 244 * Licensed under the Apache License, Version 2.0 (the "License"); 245 * you may not use this file except in compliance with the License. 246 * You may obtain a copy of the License at 247 * 248 * http://www.apache.org/licenses/LICENSE-2.0 249 * 250 * Unless required by applicable law or agreed to in writing, software 251 * distributed under the License is distributed on an "AS IS" BASIS, 252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 253 * See the License for the specific language governing permissions and 254 * limitations under the License. 255 */const Q=new Sr("@firebase/app"),Hr="@firebase/app-compat",Lr="@firebase/analytics-compat",Nr="@firebase/analytics",Fr="@firebase/app-check-compat",$r="@firebase/app-check",Ur="@firebase/auth",zr="@firebase/auth-compat",Vr="@firebase/database",Wr="@firebase/data-connect",Xr="@firebase/database-compat",Gr="@firebase/functions",Jr="@firebase/functions-compat",Kr="@firebase/installations",Yr="@firebase/installations-compat",Zr="@firebase/messaging",qr="@firebase/messaging-compat",Qr="@firebase/performance",ts="@firebase/performance-compat",es="@firebase/remote-config",ns="@firebase/remote-config-compat",is="@firebase/storage",rs="@firebase/storage-compat",ss="@firebase/firestore",os="@firebase/ai",hs="@firebase/firestore-compat",as="firebase",ls="11.10.0";/** 256 * @license 257 * Copyright 2019 Google LLC 258 * 259 * Licensed under the Apache License, Version 2.0 (the "License"); 260 * you may not use this file except in compliance with the License. 261 * You may obtain a copy of the License at 262 * 263 * http://www.apache.org/licenses/LICENSE-2.0 264 * 265 * Unless required by applicable law or agreed to in writing, software 266 * distributed under the License is distributed on an "AS IS" BASIS, 267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 268 * See the License for the specific language governing permissions and 269 * limitations under the License. 270 */const Fe="[DEFAULT]",us={[Ne]:"fire-core",[Hr]:"fire-core-compat",[Nr]:"fire-analytics",[Lr]:"fire-analytics-compat",[$r]:"fire-app-check",[Fr]:"fire-app-check-compat",[Ur]:"fire-auth",[zr]:"fire-auth-compat",[Vr]:"fire-rtdb",[Wr]:"fire-data-connect",[Xr]:"fire-rtdb-compat",[Gr]:"fire-fn",[Jr]:"fire-fn-compat",[Kr]:"fire-iid",[Yr]:"fire-iid-compat",[Zr]:"fire-fcm",[qr]:"fire-fcm-compat",[Qr]:"fire-perf",[ts]:"fire-perf-compat",[es]:"fire-rc",[ns]:"fire-rc-compat",[is]:"fire-g
270cs",[rs]:"fire-gcs-compat",[ss]:"fire-fst",[hs]:"fire-fst-compat",[os]:"fire-vertex","fire-js":"fire-js",[as]:"fire-js-all"};/** 271 * @license 272 * Copyright 2019 Google LLC 273 * 274 * Licensed under the Apache License, Version 2.0 (the "License"); 275 * you may not use this file except in compliance with the License. 276 * You may obtain a copy of the License at 277 * 278 * http://www.apache.org/licenses/LICENSE-2.0 279 * 280 * Unless required by applicable law or agreed to in writing, software 281 * distributed under the License is distributed on an "AS IS" BASIS, 282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 283 * See the License for the specific language governing permissions and 284 * limitations under the License. 285 */const se=new Map,cs=new Map,$e=new Map;function qn(r,i){try{r.container.addComponent(i)}catch(o){Q.debug(`Component ${i.name} failed to register with FirebaseApp ${r.name}`,o)}}function Ue(r){const i=r.name;if($e.has(i))return Q.debug(`There were multiple attempts to register component ${i}.`),!1;$e.set(i,r);for(const o of se.values())qn(o,r);for(const o of cs.values())qn(o,r);return!0}function qs(r,i){const o=r.container.getProvider("heartbeat").getImmediate({optional:!0});return o&&o.triggerHeartbeat(),r.container.getProvider(i)}function Qs(r){return r==null?!1:r.settings!==void 0}/** 286 * @license 287 * Copyright 2019 Google LLC 288 * 289 * Licensed under the Apache License, Version 2.0 (the "License"); 290 * you may not use this file except in compliance with the License. 291 * You may obtain a copy of the License at 292 * 293 * http://www.apache.org/licenses/LICENSE-2.0 294 * 295 * Unless required by applicable law or agreed to in writing, software 296 * distributed under the License is distributed on an "AS IS" BASIS, 297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 298 * See the License for the specific language governing permissions and 299 * limitations under the License. 300 */const fs={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
300d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},st=new hi("app","Firebase",fs);/** 301 * @license 302 * Copyright 2019 Google LLC 303 * 304 * Licensed under the Apache License, Version 2.0 (the "License"); 305 * you may not use this file except in compliance with the License. 306 * You may obtain a copy of the License at 307 * 308 * http://www.apache.org/licenses/LICENSE-2.0 309 * 310 * Unless required by applicable law or agreed to in writing, software 311 * distributed under the License is distributed on an "AS IS" BASIS, 312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 313 * See the License for the specific language governing permissions and 314 * limitations under the License. 315 */class ps{constructor(i,o,g){this._isDeleted=!1,this._options=Object.assign({},i),this._config=Object.assign({},o),this._name=o.name,this._automaticDataCollectionEnabled=o.automaticDataCollectionEnabled,this._container=g,this.container.addComponent(new re("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(i){this.checkDestroyed(),this._automaticDataCollectionEnabled=i}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(i){this._isDeleted=i}checkDestroyed(){if(this.isDeleted)throw st.create("app-deleted",{appName:this._name})}}/** 316 * @license 317 * Copyright 2019 Google LLC 318 * 319 * Licensed under the Apache License, Version 2.0 (the "License"); 320 * you may not use this file except in compliance with the License. 321 * You may obtain a copy of the License at 322 * 323 * http://www.apache.org/licenses/LICENSE-2.0 324 * 325 * Unless required by applicable law or agreed to in writing, software 326 * distributed under the License is distributed on an "AS IS" BASIS, 327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 328 * See the License for the specific language governing permissions and 329 * limitations under the License. 330 */const to=ls;function gs(r,i={}){let o=r;typeof i!="object"&&(i={name:i});const g=Object.assign({name:Fe,automaticDataCollectionEnabled:!0},i),m=g.name;if(typeof m!="string"||!m)throw st.create("bad-app-name",{appName:String(m)});if(o||(o=si()),!o)throw st.create("no-options");const b=se.get(m);if(b){if(ke(o,b.options)&&ke(g,b.config))return b;throw st.create("duplicate-app",{appName:m})}const v=new vr(m);for(const S of $e.values())v.addComponent(S);const E=new ps(o,g,v);return se.set(m,E),E}function eo(r=Fe){const i=se.get(r);if(!i&&r===Fe&&si())return gs();if(!i)throw st.create("no-app",{appName:r});return i}function ne(r,i,o){var g;let m=(g=us[r])!==null&&g!==void 0?g:r;o&&(m+=`-${o}`);const b=m.match(/\s|\//),v=i.match(/\s|\//);if(b||v){const E=[`Unable to register library "${m}" with version "${i}":`];b&&E.push(`library name "${m}" contains illegal characters (whitespace or "/")`),b&&v&&E.push("and"),v&&E.push(`version name "${i}" contains illegal characters (whitespace or "/")`),Q.warn(E.join(" "));return}Ue(new re(`${m}-version`,()=>({library:m,version:i}),"VERSION"))}/** 331 * @license 332 * Copyright 2021 Google LLC 333 * 334 * Licensed under the Apache License, Version 2.0 (the "License"); 335 * you may not use this file except in compliance with the License. 336 * You may obtain a copy of the License at 337 * 338 * http://www.apache.org/licenses/LICENSE-2.0 339 * 340 * Unless required by applicable law or agreed to in writing, softw
340are 341 * distributed under the License is distributed on an "AS IS" BASIS, 342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 343 * See the License for the specific language governing permissions and 344 * limitations under the License. 345 */const ds="firebase-heartbeat-database",ms=1,jt="firebase-heartbeat-store";let Pe=null;function ui(){return Pe||(Pe=xr(ds,ms,{upgrade:(r,i)=>{switch(i){case 0:try{r.createObjectStore(jt)}catch(o){console.warn(o)}}}}).catch(r=>{throw st.create("idb-open",{originalErrorMessage:r.message})})),Pe}async function ys(r){try{const o=(await ui()).transaction(jt),g=await o.objectStore(jt).get(ci(r));return await o.done,g}catch(i){if(i instanceof Rt)Q.warn(i.message);else{const o=st.create("idb-get",{originalErrorMessage:i==null?void 0:i.message});Q.warn(o.message)}}}async function Qn(r,i){try{const g=(await ui()).transaction(jt,"readwrite");await g.objectStore(jt).put(i,ci(r)),await g.done}catch(o){if(o instanceof Rt)Q.warn(o.message);else{const g=st.create("idb-set",{originalErrorMessage:o==null?void 0:o.message});Q.warn(g.message)}}}function ci(r){return`${r.name}!${r.options.appId}`}/** 346 * @license 347 * Copyright 2021 Google LLC 348 * 349 * Licensed under the Apache License, Version 2.0 (the "License"); 350 * you may not use this file except in compliance with the License. 351 * You may obtain a copy of the License at 352 * 353 * http://www.apache.org/licenses/LICENSE-2.0 354 * 355 * Unless required by applicable law or agreed to in writing, software 356 * distributed under the License is distributed on an "AS IS" BASIS, 357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 358 * See the License for the specific language governing permissions and 359 * limitations under the License. 360 */const vs=1024,ws=30;class bs{constructor(i){this.container=i,this._heartbeatsCache=null;const o=this.container.getProvider("app").getImmediate();this._storage=new Cs(o),this._heartbeatsCachePromise=this._storage.read().then(g=>(this._heartbeatsCache=g,g))}async triggerHeartbeat(){var i,o;try{const m=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),b=ti();if(((i=this._heartbeatsCache)===null||i===void 0?void 0:i.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((o=this._heartbeatsCache)===null||o===void 0?void 0:o.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===b||this._heartbeatsCache.heartbeats.some(v=>v.date===b))return;if(this._heartbeatsCache.heartbeats.push({date:b,agent:m}),this._heartbeatsCache.heartbeats.length>ws){const v=Ss(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(v,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(g){Q.warn(g)}}async getHeartbeatsHeader(){var i;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((i=this._heartbeatsCache)===null||i===void 0?void 0:i.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const o=ti(),{heartbeatsToSend:g,unsentEntries:m}=Es(this._heartbeatsCache.heartbeats),b=ie(JSON.stringify({version:2,heartbeats:g}));return this._heartbeatsCache.lastSentHeartbeatDate=o,m.length>0?(this._heartbeatsCache.heartbeats=m,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),b}catch(o){return Q.warn(o),""}}}function ti(){return new Date().toISOString().substring(0,10)}function Es(r,i=vs){const o=[];let g=r.slice();for(const m of r){const b=o.find(v=>v.agent===m.agent);if(b){if(b.dates.push(m.date),ei(o)>i){b.dates.pop();break}}else if(o.push({agent:m.agent,dates:[m.date]}),ei(o)>i){o.pop();break}g=g.slice(1)}return{heartbeatsToSend:o,unsentEntries:g}}class Cs{constructor(i){this.app=i,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return ar()?lr().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const o=await ys(this.app);return o!=null&&o.heartbeats?o:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(i){var o;if(await this._canUseIndexedDBPromise){const m=await this.read();return Qn(this.app,{lastSentHeartbeatDate:(o=i.lastSentHeartbeatDate)!==null&&o!==void 0?o:m.lastSentHeartbeatDate,heartbeats:i.heartbeats})}else return}async add(i){var o;if(await this._canUseIndexedDBPromise){const m=await this.read();return Qn(this.app,{lastSentHeartbeatDate:(o=i.lastSentHeartbeatDate)!==null&&o!==void 0?o:m.lastSentHeartbeatDate,heartbeats:[...m.heartbeats,...i.heartbeats]})}else return}}function ei(r){return ie(JSON.stringify({version:2,heartbeats:r})).length}function Ss(r){if(r.length===0)return-1;let i=0,o=r[0].date;for(let g=1;g<r.length;g++)r[g].date<o&&(o=r[g].date,i=g);return i}/** 361 * @license 362 * Copyright 2019 Google LLC 363 * 364 * Licensed under the Apache License, Version 2.0 (the "License");
365 * you may not use this file except in compliance with the License. 366 * You may obtain a copy of the License at 367 * 368 * http://www.apache.org/licenses/LICENSE-2.0 369 * 370 * Unless required by applicable law or agreed to in writing, software 371 * distributed under the License is distributed on an "AS IS" BASIS, 372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 373 * See the License for the specific language governing permissions and 374 * limitations under the License. 375 */function _s(r){Ue(new re("platform-logger",i=>new Pr(i),"PRIVATE")),Ue(new re("heartbeat",i=>new bs(i),"PRIVATE")),ne(Ne,Zn,r),ne(Ne,Zn,"esm2017"),ne("fire-js","")}_s("");var Is="firebase",As="11.10.0";/** 376 * @license 377 * Copyright 2020 Google LLC 378 * 379 * Licensed under the Apache License, Version 2.0 (the "License"); 380 * you may not use this file except in compliance with the License. 381 * You may obtain a copy of the License at 382 * 383 * http://www.apache.org/licenses/LICENSE-2.0 384 * 385 * Unless required by applicable law or agreed to in writing, software 386 * distributed under the License is distributed on an "AS IS" BASIS, 387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 388 * See the License for the specific language governing permissions and 389 * limitations under the License. 390 */ne(Is,As,"app");var ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 391Copyright The Closure Library Authors. 392SPDX-License-Identifier: Apache-2.0 393*/var Ts,Ds;(function(){var r;/** @license 394 395 Copyright The Closure Library Authors. 396 SPDX-License-Identifier: Apache-2.0 397*/function i(f,h){function l(){}l.prototype=h.prototype,f.D=h.prototype,f.prototype=new l,f.prototype.constructor=f,f.C=function(u,c,d){for(var a=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)a[Y-2]=arguments[Y];return h.prototype[c].apply(u,a)}}function o(){this.blockSize=-1}function g(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}i(g,o),g.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function m(f,h,l){l||(l=0);var u=Array(16);if(typeof h=="string")for(var c=0;16>c;++c)u[c]=h.charCodeAt(l++)|h.charCodeAt(l++)<<8|h.charCodeAt(l++)<<16|h.charCodeAt(l++)<<24;else for(c=0;16>c;++c)u[c]=h[l++]|h[l++]<<8|h[l++]<<16|h[l++]<<24;h=f.g[0],l=f.g[1],c=f.g[2];var d=f.g[3],a=h+(d^l&(c^d))+u[0]+3614090360&4294967295;h=l+(a<<7&4294967295|a>>>25),a=d+(c^h&(l^c))+u[1]+3905402710&4294967295,d=h+(a<<12&4294967295|a>>>20),a=c+(l^d&(h^l))+u[2]+606105819&4294967295,c=d+(a<<17&4294967295|a>>>15),a=l+(h^c&(d^h))+u[3]+3250441966&4294967295,l=c+(a<<22&4294967295|a>>>10),a=h+(d^l&(c^d))+u[4]+4118548399&4294967295,h=l+(a<<7&4294967295|a>>>25),a=d+(c^h&(l^c))+u[5]+1200080426&4294967295,d=h+(a<<12&4294967295|a>>>20),a=c+(l^d&(h^l))+u[6]+2821735955&4294967295,c=d+(a<<17&4294967295|a>>>15),a=l+(h^c&(d^h))+u[7]+4249261313&4294967295,l=c+(a<<22&4294967295|a>>>10),a=h+(d^l&(c^d))+u[8]+1770035416&4294967295,h=l+(a<<7&4294967295|a>>>25),a=d+(c^h&(l^c))+u[9]+2336552879&4294967295,d=h+(a<<12&4294967295|a>>>20),a=c+(l^d&(h^l))+u[10]+4294925233&4294967295,c=d+(a<<17&4294967295|a>>>15),a=l+(h^c&(d^h))+u[11]+2304563134&4294967295,l=c+(a<<22&4294967295|a>>>10),a=h+(d^l&(c^d))+u[12]+1804603682&4294967295,h=l+(a<<7&4294967295|a>>>25),a=d+(c^h&(l^c))+u[13]+4254626195&4294967295,d=h+(a<<12&4294967295|a>>>20),a=c+(l^d&(h^l))+u[14]+2792965006&4294967295,c=d+(a<<17&4294967295|a>>>15),a=l+(h^c&(d^h))+u[15]+1236535329&4294967295,l=c+(a<<22&4294967295|a>>>10),a=h+(c^d&(l^c))+u[1]+4129170786&4294967295,h=l+(a<<5&4294967295|a>>>27),a=d+(l^c&(h^l))+u[6]+3225465664&4294967295,d=h+(a<<9&4294967295|a>>>23),a=c+(h^l&(d^h))+u[11]+643717713&4294967295,c=d+(a<<14&4294967295|a>>>18),a=l+(d^h&(c^d))+u[0]+3921069994&4294967295,l=c+(a<<20&4294967295|a>>>12),a=h+(c^d&(l^c))+u[5]+3593408605&4294967295,h=l+(a<<5&4294967295|a>>>27),a=d+(l^c&(h^l))+u[10]+38016083&4294967295,d=h+(a<<9&4294967295|a>>>23),a=c+(h^l&(d^h))+u[15]+3634488961&4294967295,c=d+(a<<14&4294967295|a>>>18),a=l+(d^h&(c^d))+u[4]+3889429448&4294967295,l=c+(a<<20&4294967295|a>>>12),a=h+(c^d&(l^c))+u[9]+568446438&4294967295,h=l+(a<<5&4294967295|a>>>27),a=d+(l^c&(h^l))+u[14]+3275163606&4294967295,d=h+(a<<9&4294967295|a>>>23),a=c+(h^l&(d^h))+u[3]+4107603335&4294967295,c=d+(a<<14&4294967295|a>>>18),a=l+(d^h&(c^d))+u[8]+1163531501&4294967295,l=c+(a<<20&4294967295|a>>>12),a=h+(c^d&(l^c))+u[13]+2850285829&4294967295,h=l+(a<<5&4294967295|a>>>27),a=d+(l^c&(h^l))+u[2]+4243563512&4294967295,d=h+(a<<9&4294967295|a>>>23),a=c+(h^l&(d^h))+u[7]+1735328473&4294967295,c=d+(a<<14&4294967295|a>>>18),a=l+(d^h&(c^d))+u[12]+2368359562&4294967295,l=c+(a<<20&4294967295|a>>>12),a=h+(l^c^d)+u[5]+4294588738&4294967295,h=l+(a<<4&4294967295|a>>>28),a=d+(h^l^c)+u[8]+2272392833&4294967295,d=h+(a<<11&4294967295|a>>>21),a=c+(d^h^l)+u[11]+1839030562&4294967295,c=d+(a<<16&4294967295|a>>>16),a=l+(c^d^h)+u[14]+4259657740&4294967295,l=c+(a<<23&4294967295|a>>>9),a=h+(l^c^d)+u[1]+2763975236&4294967295,h=l+(a<<4&4294967295|a>>>28),a=d+(h^l^c)+u[4]+1272893353&4294967295,d=h+(a<<11&4294967295|a>>>21),a=c+(d^h^l)+u[7]+4139469664&4294967295,c=d+(a<<16&4294967295|a>>>16),a=l+(c^d^h)+u[10]+3200236656&4294967295,l=c+(a<<23&4294967295|a>>>9),a=h+(l^c^d)+u[13]+681279174&4294967295,h=l+(a<<4&4294967295|a>>>28),a=d+(h^l^c)+u[0]+3936430074&4294967295,d=h+(a<<11&4294967295|a>>>21),a=c+(d^h^l)+u[3]+3572445317&4294967295,c=d+(a<<16&4294967295|a>>>16),a=l+(c^d^h)+u[6]+76029189&4294967295,l=c+(a<<23&4294967295|a>>>9),a=h+(l^c^d)+u[9]+3654602809&4294967295,h=l+(a<<4&4294967295|a>>>28),a=d+(h^l^c)+u[12]+3873151461&4294967295,d=h+(a<<11&4294967295|a>>>21),a=c+(d^h^l)+u[15]+530742520&4294967295,c=d+(a<<16&4294967295|a>>>16),a=l+(c^d^h)+u[2]+3299628645&4294967295,l=c+(a<<23&4294967295|a>>>9),a=h+(c^(l|~d))+u[0]+4096336452&4294967295,h=l+(a<<6&4294967295|a>>>26),a=d+(l^(h|~c))+u[7]+1126891415&4294967295,d=h+(a<<10&4294967295|a>>>22),a=c+(h^(d|~l))+u[14]+2878612391&4294967295,c=d+(a<<15&4294967295|a>>>17),a=l+(d^(c|~h))+u[5]+4237533241&4294967295,l=c+(a<<21&4294967295|a>>>11),a=h+(c^(l|~d))+u[12]+1700485571&4294967295,h=l+(a<<6&4294967295|a>>>26),a=d+(l^(h|~c))+u[3]+2399980690&4294967295,d=h+(a<<10&4294967295|a>>>22),a=c+(h^(d|~l))+u[10]+4293915773&4294967295,c=d+(a<<15&4294967295|a>>>17),a=l+(d^(c|~h))+u[1]+2240044497&4294967295,l=c+(a<<21&4294967295|a>>>11),a=h+(c^(l|~d))+u[8]+1873313359&4294967295,h=l+(a<<6&4294967295|a>>>26),a=d+(l^(h|~c))+u[15]+4264355552&4294967295,d=h+(a<<10&4294967295|a>>>22),a=c+(h^(d|~l))+u[6]+2734768916&4294967295,c=d+(a<<15&4294967295|a>>>17),a=l+(d^(c|~h))+u[13]+1309151649&4294967295,l=c+(a<<21&4294967295|a>>>11),a=h+(c^(l|~d))+u[4]+4149444226&4294967295,h=l+(a<<6&4294967295|a>>>26),a=d+(l^(h|~c))+u[11]+3174756917&4294967295,d=h+(a<<10&4294967295|a>>>22),a=c+(h^(d|~l))+u[2]+718787259&4294967295,c=d+(a<<15&4294967295|a>>>17),a=l+(d^(c|~h))+u[9]+3951481745&4294967295,f.g[0]=f.g[0]+h&4294967295,f.g[1]=f.g[1]+(c+(a<<21&4294967295|a>>>11))&4294967295,f.g[2]=f.g[2]+c&4294967295,f.g[3]=f.g[3]+d&4294967295}g.prototype.u=function(f,h){h===void 0&&(h=f.length);for(var l=h-this.blockSize,u=this.B,c=this.h,d=0;d<h;){if(c==0)for(;d<=l;)m(this,f,d),d+=this.blockSize;if(typeof f=="string"){for(;d<h;)if(u[c++]=f.charCodeAt(d++),c==this.blockSize){m(this,u),c=0;break}}else for(;d<h;)if(u[c++]=f[d++],c==this.blockSize){m(this,u),c=0;break}}this.h=c,this.o+=h},g.prototype.v=function(){var f=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);f[0]=128;for(var h=1;h<f.length-8;++h)f[h]=0;var l=8*this.o;for(h=f.length-8;h<f.length;++h)f[h]=l&255,l/=256;for(this.u(f),f=Array(16),h=l=0;4>h;++h)for(var u=0;32>u;u+=8)f[l++]=this.g[h]>>>u&255;return f};function b(f,h){var l=E;return Object.prototype.hasOwnProperty.call(l,f)?l[f]:l[f]=h(f)}function v(f,h){this.h=h;for(var l=[],u=!0,c=f.length-1;0<=c;c--){var d=f[c]|0;u&&d==h||(l[c]=d,u=!1)}this.g=l}var E={};function S(f){return-128<=f&&128>f?b(f,function(h){return new v([h|0],0>h?-1:0)}):new v([f|0],0>f?-1:0)}function _(f){if(isNaN(f)||!isFinite(f))return R;if(0>f)return B(_(-f));for(var h=[],l=1,u=0;f>=l;u++)h[u]=f/l|0,l*=4294967296;return new v(h,0)}function J(f,h){if(f.length==0)throw Error("number format error: empty string");if(h=h||10,2>h||36<h)throw Error("radix out of range: "+h);if(f.charAt(0)=="-")return B(J(f.substring(1),h));if(0<=f.indexOf("-"))throw Error('number format error: interior "-" character');for(var l=_(Math.pow(h,8)),u=R,c=0;c<f.length;c+=8){var d=Math.min(8,f.length-c),a=parseInt(f.substring(c,c+d),h);8>
vendor: 45,192 bytes, lines 397-412
397d?(d=_(Math.pow(h,d)),u=u.j(d).add(_(a))):(u=u.j(l),u=u.add(_(a)))}return u}var R=S(0),C=S(1),x=S(16777216);r=v.prototype,r.m=function(){if(j(this))return-B(this).m();for(var f=0,h=1,l=0;l<this.g.length;l++){var u=this.i(l);f+=(0<=u?u:4294967296+u)*h,h*=4294967296}return f},r.toString=function(f){if(f=f||10,2>f||36<f)throw Error("radix out of range: "+f);if(I(this))return"0";if(j(this))return"-"+B(this).toString(f);for(var h=_(Math.pow(f,6)),l=this,u="";;){var c=X(l,h).g;l=K(l,c.j(h));var d=((0<l.g.length?l.g[0]:l.h)>>>0).toString(f);if(l=c,I(l))return d+u;for(;6>d.length;)d="0"+d;u=d+u}},r.i=function(f){return 0>f?0:f<this.g.length?this.g[f]:this.h};function I(f){if(f.h!=0)return!1;for(var h=0;h<f.g.length;h++)if(f.g[h]!=0)return!1;return!0}function j(f){return f.h==-1}r.l=function(f){return f=K(this,f),j(f)?-1:I(f)?0:1};function B(f){for(var h=f.g.length,l=[],u=0;u<h;u++)l[u]=~f.g[u];return new v(l,~f.h).add(C)}r.abs=function(){return j(this)?B(this):this},r.add=function(f){for(var h=Math.max(this.g.length,f.g.length),l=[],u=0,c=0;c<=h;c++){var d=u+(this.i(c)&65535)+(f.i(c)&65535),a=(d>>>16)+(this.i(c)>>>16)+(f.i(c)>>>16);u=a>>>16,d&=65535,a&=65535,l[c]=a<<16|d}return new v(l,l[l.length-1]&-2147483648?-1:0)};function K(f,h){return f.add(B(h))}r.j=function(f){if(I(this)||I(f))return R;if(j(this))return j(f)?B(this).j(B(f)):B(B(this).j(f));if(j(f))return B(this.j(B(f)));if(0>this.l(x)&&0>f.l(x))return _(this.m()*f.m());for(var h=this.g.length+f.g.length,l=[],u=0;u<2*h;u++)l[u]=0;for(u=0;u<this.g.length;u++)for(var c=0;c<f.g.length;c++){var d=this.i(u)>>>16,a=this.i(u)&65535,Y=f.i(c)>>>16,dt=f.i(c)&65535;l[2*u+2*c]+=a*dt,$(l,2*u+2*c),l[2*u+2*c+1]+=d*dt,$(l,2*u+2*c+1),l[2*u+2*c+1]+=a*Y,$(l,2*u+2*c+1),l[2*u+2*c+2]+=d*Y,$(l,2*u+2*c+2)}for(u=0;u<h;u++)l[u]=l[2*u+1]<<16|l[2*u];for(u=h;u<2*h;u++)l[u]=0;return new v(l,0)};function $(f,h){for(;(f[h]&65535)!=f[h];)f[h+1]+=f[h]>>>16,f[h]&=65535,h++}function k(f,h){this.g=f,this.h=h}function X(f,h){if(I(h))throw Error("division by zero");if(I(f))return new k(R,R);if(j(f))return h=X(B(f),h),new k(B(h.g),B(h.h));if(j(h))return h=X(f,B(h)),new k(B(h.g),h.h);if(30<f.g.length){if(j(f)||j(h))throw Error("slowDivide_ only works with positive integers.");for(var l=C,u=h;0>=u.l(f);)l=Pt(l),u=Pt(u);var c=G(l,1),d=G(u,1);for(u=G(u,2),l=G(l,2);!I(u);){var a=d.add(u);0>=a.l(f)&&(c=c.add(l),d=a),u=G(u,1),l=G(l,1)}return h=K(f,c.j(h)),new k(c,h)}for(c=R;0<=f.l(h);){for(l=Math.max(1,Math.floor(f.m()/h.m())),u=Math.ceil(Math.log(l)/Math.LN2),u=48>=u?1:Math.pow(2,u-48),d=_(l),a=d.j(h);j(a)||0<a.l(f);)l-=u,d=_(l),a=d.j(h);I(d)&&(d=C),c=c.add(d),f=K(f,a)}return new k(c,f)}r.A=function(f){return X(this,f).h},r.and=function(f){for(var h=Math.max(this.g.length,f.g.length),l=[],u=0;u<h;u++)l[u]=this.i(u)&f.i(u);return new v(l,this.h&f.h)},r.or=function(f){for(var h=Math.max(this.g.length,f.g.length),l=[],u=0;u<h;u++)l[u]=this.i(u)|f.i(u);return new v(l,this.h|f.h)},r.xor=function(f){for(var h=Math.max(this.g.length,f.g.length),l=[],u=0;u<h;u++)l[u]=this.i(u)^f.i(u);return new v(l,this.h^f.h)};function Pt(f){for(var h=f.g.length+1,l=[],u=0;u<h;u++)l[u]=f.i(u)<<1|f.i(u-1)>>>31;return new v(l,f.h)}function G(f,h){var l=h>>5;h%=32;for(var u=f.g.length-l,c=[],d=0;d<u;d++)c[d]=0<h?f.i(d+l)>>>h|f.i(d+l+1)<<32-h:f.i(d+l);return new v(c,f.h)}g.prototype.digest=g.prototype.v,g.prototype.reset=g.prototype.s,g.prototype.update=g.prototype.u,Ds=g,v.prototype.add=v.prototype.add,v.prototype.multiply=v.prototype.j,v.prototype.modulo=v.prototype.A,v.prototype.compare=v.prototype.l,v.prototype.toNumber=v.prototype.m,v.prototype.toString=v.prototype.toString,v.prototype.getBits=v.prototype.i,v.fromNumber=_,v.fromString=J,Ts=v}).apply(typeof ni<"u"?ni:typeof self<"u"?self:typeof window<"u"?window:{});var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 398Copyright The Closure Library Authors. 399SPDX-License-Identifier: Apache-2.0 400*/var Os,Bs,Ms,xs,js,Rs,Ps,ks;(function(){var r,i=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t};function o(t){t=[typeof globalThis=="object"&&globalThis,t,typeof window=="object"&&window,typeof self=="object"&&self,typeof ee=="object"&&ee];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var g=o(this);function m(t,e){if(e)t:{var n=g;t=t.split(".");for(var s=0;s<t.length-1;s++){var p=t[s];if(!(p in n))break t;n=n[p]}t=t[t.length-1],s=n[t],e=e(s),e!=s&&e!=null&&i(n,t,{configurable:!0,writable:!0,value:e})}}function b(t,e){t instanceof String&&(t+="");var n=0,s=!1,p={next:function(){if(!s&&n<t.length){var y=n++;return{value:e(y,t[y]),done:!1}}return s=!0,{done:!0,value:void 0}}};return p[Symbol.iterator]=function(){return p},p}m("Array.prototype.values",function(t){return t||function(){return b(this,function(e,n){return n})}});/** @license 401 402 Copyright The Closure Library Authors. 403 SPDX-License-Identifier: Apache-2.0 404*/var v=v||{},E=this||self;function S(t){var e=typeof t;return e=e!="object"?e:t?Array.isArray(t)?"array":e:"null",e=="array"||e=="object"&&typeof t.length=="number"}function _(t){var e=typeof t;return e=="object"&&t!=null||e=="function"}function J(t,e,n){return t.call.apply(t.bind,arguments)}function R(t,e,n){if(!t)throw Error();if(2<arguments.length){var s=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(p,s),t.apply(e,p)}}return function(){return t.apply(e,arguments)}}function C(t,e,n){return C=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?J:R,C.apply(null,arguments)}function x(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var s=n.slice();return s.push.apply(s,arguments),t.apply(this,s)}}function I(t,e){function n(){}n.prototype=e.prototype,t.aa=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Qb=function(s,p,y){for(var w=Array(arguments.length-2),T=2;T<arguments.length;T++)w[T-2]=arguments[T];return e.prototype[p].apply(s,w)}}function j(t){const e=t.length;if(0<e){const n=Array(e);for(let s=0;s<e;s++)n[s]=t[s];return n}return[]}function B(t,e){for(let n=1;n<arguments.length;n++){const s=arguments[n];if(S(s)){const p=t.length||0,y=s.length||0;t.length=p+y;for(let w=0;w<y;w++)t[p+w]=s[w]}else t.push(s)}}class K{constructor(e,n){this.i=e,this.j=n,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}}function $(t){return/^[\s\xa0]*$/.test(t)}function k(){var t=E.navigator;return t&&(t=t.userAgent)?t:""}function X(t){return X[" "](t),t}X[" "]=function(){};var Pt=k().indexOf("Gecko")!=-1&&!(k().toLowerCase().indexOf("webkit")!=-1&&k().indexOf("Edge")==-1)&&!(k().indexOf("Trident")!=-1||k().indexOf("MSIE")!=-1)&&k().indexOf("Edge")==-1;function G(t,e,n){for(const s in t)e.call(n,t[s],s,t)}function f(t,e){for(const n in t)e.call(void 0,t[n],n,t)}function h(t){const e={};for(const n in t)e[n]=t[n];return e}const l="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function u(t,e){let n,s;for(let p=1;p<arguments.length;p++){s=arguments[p];for(n in s)t[n]=s[n];for(let y=0;y<l.length;y++)n=l[y],Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}}function c(t){var e=1;t=t.split(":");const n=[];for(;0<e&&t.length;)n.push(t.shift()),e--;return t.length&&n.push(t.join(":")),n}function d(t){E.setTimeout(()=>{throw t},0)}function a(){var t=he;let e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}class Y{constructor(){this.h=this.g=null}add(e,n){const s=dt.get();s.set(e,n),this.h?this.h.next=s:this.g=s,this.h=s}}var dt=new K(()=>new fi,t=>t.reset());class fi{constructor(){this.next=this.g=this.h=null}set(e,n){this.h=e,this.g=n,this.next=null}reset(){this.next=this.g=this.h=null}}let mt,yt=!1,he=new Y,Ve=()=>{const t=E.Promise.resolve(void 0);mt=()=>{t.then(pi)}};var pi=()=>{for(var t;t=a();){try{t.h.call(t.g)}catch(n){d(n)}var e=dt;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}yt=!1};function tt(){this.s=this.s,this.C=this.C}tt.prototype.s=!1,tt.prototype.ma=function(){this.s||(this.s=!0,this.N())},tt.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function H(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}H.prototype.h=function(){this.defaultPrevented=!0};var gi=(function(){if(!E.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{const n=()=>{};E.addEventListener("test",n,e),E.removeEventListener("test",n,e)}catch{}return t})();function vt(t,e){if(H.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,s=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(Pt){t:{try{X(e.nodeName);var p=!0;break t}catch{}p=!1}p||(e=null)}}else n=="mouseover"?e=t.fromElement:n=="mouseout"&&(e=t.toElement);this.relatedTarget=e,s?(this.clientX=s.clientX!==void 0?s.clientX:s.pageX,this.clientY=s.clientY!==void 0?s.clientY:s.pageY,this.screenX=s.screenX||0,this.screenY=s.screenY||0):(this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=typeof t.pointerType=="string"?t.pointerType:di[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&vt.aa.h.call(this)}}I(vt,H);var di={2:"touch",3:"pen",4:"mouse"};vt.prototype.h=function(){vt.aa.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var kt="closure_listenable_"+(1e6*Math.random()|0),mi=0;function yi(t,e,n,s,p){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!s,this.ha=p,this.key=++mi,this.da=this.fa=!1}function Ht(t){t.da=!0,t.listener=null,t.proxy=null,t.src=null,t.ha=null}function Lt(t){this.src=t,this.g={},this.h=0}Lt.prototype.add=function(t,e,n,s,p){var y=t.toString();t=this.g[y],t||(t=this.g[y]=[],this.h++);var w=le(t,e,s,p);return-1<w?(e=t[w],n||(e.fa=!1)):(e=new yi(e,this.src,y,!!s,p),e.fa=n,t.push(e)),e};function ae(t,e){var n=e.type;if(n in t.g){var s=t.g[n],p=Array.prototype.indexOf.call(s,e,void 0),y;(y=0<=p)&&Array.prototype.splice.call(s,p,1),y&&(Ht(e),t.g[n].length==0&&(delete t.g[n],t.h--))}}function le(t,e,n,s){for(var p=0;p<t.length;++p){var y=t[p];if(!y.da&&y.listener==e&&y.capture==!!n&&y.ha==s)return p}return-1}var ue="closure_lm_"+(1e6*Math.random()|0),ce={};function We(t,e,n,s,p){if(Array.isArray(e)){for(var y=0;y<e.length;y++)We(t,e[y],n,s,p);return null}return n=Je(n),t&&t[kt]?t.K(e,n,_(s)?!!s.capture:!1,p):vi(t,e,n,!1,s,p)}function vi(t,e,n,s,p,y){if(!e)throw Error("Invalid event type");var w=_(p)?!!p.capture:!!p,T=pe(t);if(T||(t[ue]=T=new Lt(t)),n=T.add(e,n,s,w,y),n.proxy)return n;if(s=wi(),n.proxy=s,s.src=t,s.listener=n,t.addEventListener)gi||(p=w),p===void 0&&(p=!1),t.addEventListener(e.toString(),s,p);else if(t.attachEvent)t.attachEvent(Ge(e.toString()),s);else if(t.addListener&&t.removeListener)t.addListener(s);else throw Error("addEventListener and attachEvent are unavailable.");return n}function wi(){function t(n){return e.call(t.src,t.listener,n)}const e=bi;return t}function Xe(t,e,n,s,p){if(Array.isArray(e))for(var y=0;y<e.length;y++)Xe(t,e[y],n,s,p);else s=_(s)?!!s.capture:!!s,n=Je(n),t&&t[kt]?(t=t.i,e=String(e).toString(),e in t.g&&(y=t.g[e],n=le(y,n,s,p),-1<n&&(Ht(y[n]),Array.prototype.splice.call(y,n,1),y.length==0&&(delete t.g[e],t.h--)))):t&&(t=pe(t))&&(e=t.g[e.toString()],t=-1,e&&(t=le(e,n,s,p)),(n=-1<t?e[t]:null)&&fe(n))}function fe(t){if(typeof t!="number"&&t&&!t.da){var e=t.src;if(e&&e[kt])ae(e.i,t);else{var n=t.type,s=t.proxy;e.removeEventListener?e.removeEventListener(n,s,t.capture):e.detachEvent?e.detachEvent(Ge(n),s):e.addListener&&e.removeListener&&e.removeListener(s),(n=pe(e))?(ae(n,t),n.h==0&&(n.src=null,e[ue]=null)):Ht(t)}}}function Ge(t){return t in ce?ce[t]:ce[t]="on"+t}function bi(t,e){if(t.da)t=!0;else{e=new vt(e,this);var n=t.listener,s=t.ha||t.src;t.fa&&fe(t),t=n.call(s,e)}return t}function pe(t){return t=t[ue],t instanceof Lt?t:null}var ge="__closure_events_fn_"+(1e9*Math.random()>>>0);function Je(t){return typeof t=="function"?t:(t[ge]||(t[ge]=function(e){return t.handleEvent(e)}),t[ge])}function L(){tt.call(this),this.i=new Lt(this),this.M=this,this.F=null}I(L,tt),L.prototype[kt]=!0,L.prototype.removeEventListener=function(t,e,n,s){Xe(this,t,e,n,s)};function U(t,e){var n,s=t.F;if(s)for(n=[];s;s=s.F)n.push(s);if(t=t.M,s=e.type||e,typeof e=="string")e=new H(e,t);else if(e instanceof H)e.target=e.target||t;else{var p=e;e=new H(s,t),u(e,p)}if(p=!0,n)for(var y=n.length-1;0<=y;y--){var w=e.g=n[y];p=Nt(w,s,!0,e)&&p}if(w=e.g=t,p=Nt(w,s,!0,e)&&p,p=Nt(w,s,!1,e)&&p,n)for(y=0;y<n.length;y++)w=e.g=n[y],p=Nt(w,s,!1,e)&&p}L.prototype.N=function(){if(L.aa.N.call(this),this.i){var t=this.i,e;for(e in t.g){for(var n=t.g[e],s=0;s<n.length;s++)Ht(n[s]);delete t.g[e],t.h--}}this.F=null},L.prototype.K=function(t,e,n,s){return this.i.add(String(t),e,!1,n,s)},L.prototype.L=function(t,e,n,s){return this.i.add(String(t),e,!0,n,s)};function Nt(t,e,n,s){if(e=t.i.g[String(e)],!e)return!0;e=e.concat();for(var p=!0,y=0;y<e.length;++y){var w=e[y];if(w&&!w.da&&w.capture==n){var T=w.listener,P=w.ha||w.src;w.fa&&ae(t.i,w),p=T.call(P,s)!==!1&&p}}return p&&!s.defaultPrevented}function Ke(t,e,n){if(typeof t=="function")n&&(t=C(t,n));else if(t&&typeof t.handleEvent=="function")t=C(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:E.setTimeout(t,e||0)}function Ye(t){t.g=Ke(()=>{t.g=null,t.i&&(t.i=!1,Ye(t))},t.l);const e=t.h;t.h=null,t.m.apply(null,e)}class Ei extends tt{constructor(e,n){super(),this.m=e,this.l=n,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Ye(this)}N(){super.N(),this.g&&(E.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function wt(t){tt.call(this),this.h=t,this.g={}}I(wt,tt);var Ze=[];function qe(t){G(t.g,function(e,n){this.g.hasOwnProperty(n)&&fe(e)},t),t.g={}}wt.prototype.N=function(){wt.aa.N.call(this),qe(this)},wt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var de=E.JSON.stringify,Ci=E.JSON.parse,Si=class{stringify(t){return E.JSON.stringify(t,void 0)}parse(t){return E.JSON.parse(t,void 0)}};function me(){}me.prototype.h=null;function Qe(t){return t.h||(t.h=t.i())}function tn(){}var bt={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function ye(){H.call(this,"d")}I(ye,H);function ve(){H.call(this,"c")}I(ve,H);var ot={},en=null;function Ft(){return en=en||new L}ot.La="serverreachability";function nn(t){H.call(this,ot.La,t)}I(nn,H);function Et(t){const e=Ft();U(e,new nn(e))}ot.STAT_EVENT="statevent";function rn(t,e){H.call(this,ot.STAT_EVENT,t),this.stat=e}I(rn,H);function z(t){const e=Ft();U(e,new rn(e,t))}ot.Ma="timingevent";function sn(t,e){H.call(this,ot.Ma,t),this.size=e}I(sn,H);function Ct(t,e){if(typeof t!="function")throw Error("Fn must not be null and must be a function");return E.setTimeout(function(){t()},e)}function St(){this.g=!0}St.prototype.xa=function(){this.g=!1};function _i(t,e,n,s,p,y){t.info(function(){if(t.g)if(y)for(var w="",T=y.split("&"),P=0;P<T.length;P++){var A=T[P].split("=");if(1<A.length){var N=A[0];A=A[1];var F=N.split("_");w=2<=F.length&&F[1]=="type"?w+(N+"="+A+"&"):w+(N+"=redacted&")}}else w=null;else w=y;return"XMLHTTP REQ ("+s+") [attempt "+p+"]: "+e+` 405`+n+` 406`+w})}function Ii(t,e,n,s,p,y,w){t.info(function(){return"XMLHTTP RESP ("+s+") [ attempt "+p+"]: "+e+` 407`+n+` 408`+y+" "+w})}function ct(t,e,n,s){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+Ti(t,n)+(s?" "+s:"")})}function Ai(t,e){t.info(function(){return"TIMEOUT: "+e})}St.prototype.info=function(){};function Ti(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n){for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var s=n[t];if(!(2>s.length)){var p=s[1];if(Array.isArray(p)&&!(1>p.length)){var y=p[0];if(y!="noop"&&y!="stop"&&y!="close")for(var w=1;w<p.length;w++)p[w]=""}}}}return de(n)}catch{return e}}var $t={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},on={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},we;function Ut(){}I(Ut,me),Ut.prototype.g=function(){return new XMLHttpRequest},Ut.prototype.i=function(){return{}},we=new Ut;function et(t,e,n,s){this.j=t,this.i=e,this.l=n,this.R=s||1,this.U=new wt(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 hn}function hn(){this.i=null,this.g="",this.h=!1}var an={},be={};function Ee(t,e,n){t.L=1,t.v=Xt(Z(e)),t.m=n,t.P=!0,ln(t,null)}function ln(t,e){t.F=Date.now(),zt(t),t.A=Z(t.v);var n=t.A,s=t.R;Array.isArray(s)||(s=[String(s)]),Sn(n.i,"t",s),t.C=0,n=t.j.J,t.h=new hn,t.g=$n(t.j,n?e:null,!t.m),0<t.O&&(t.M=new Ei(C(t.Y,t,t.g),t.O)),e=t.U,n=t.g,s=t.ca;var p="readystatechange";Array.isArray(p)||(p&&(Ze[0]=p.toString()),p=Ze);for(var y=0;y<p.length;y++){var w=We(n,p[y],s||e.handleEvent,!1,e.h||e);if(!w)break;e.g[w.key]=w}e=t.H?h(t.H):{},t.m?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.m,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),Et(),_i(t.i,t.u,t.A,t.l,t.R,t.m)}et.prototype.ca=function(t){t=t.target;const e=this.M;e&&q(t)==3?e.j():this.Y(t)},et.prototype.Y=function(t){try{if(t==this.g)t:{const F=q(this.g);var e=this.g.Ba();const gt=this.g.Z();if(!(3>F)&&(F!=3||this.g&&(this.h.h||this.g.oa()||Bn(this.g)))){this.J||F!=4||e==7||(e==8||0>=gt?Et(3):Et(2)),Ce(this);var n=this.g.Z();this.X=n;e:if(un(this)){var s=Bn(this.g);t="";var p=s.length,y=q(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){ht(this),_t(this);var w="";break e}this.h.i=new E.TextDecoder}for(e=0;e<p;e++)this.h.h=!0,t+=this.h.i.decode(s[e],{stream:!(y&&e==p-1)});s.length=0,this.h.g+=t,this.C=0,w=this.h.g}else w=this.g.oa();if(this.o=n==200,Ii(this.i,this.u,this.A,this.l,this.R,F,n),this.o){if(this.T&&!this.K){e:{if(this.g){var T,P=this.g;if((T=P.g?P.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!$(T)){var A=T;break e}}A=null}if(n=A)ct(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Se(this,n);else{this.o=!1,this.s=3,z(12),ht(this),_t(this);break t}}if(this.P){n=!0;let W;for(;!this.J&&this.C<w.length;)if(W=Di(this,w),W==be){F==4&&(this.s=4,z(14),n=!1),ct(this.i,this.l,null,"[Incomplete Response]");break}else if(W==an){this.s=4,z(15),ct(this.i,this.l,w,"[Invalid Chunk]"),n=!1;break}else ct(this.i,this.l,W,null),Se(this,W);if(un(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),F!=4||w.length!=0||this.h.h||(this.s=1,z(16),n=!1),this.o=this.o&&n,!n)ct(this.i,this.l,w,"[Invalid Chunked Response]"),ht(this),_t(this);else if(0<w.length&&!this.W){this.W=!0;var N=this.j;N.g==this&&N.ba&&!N.M&&(N.j.info("Great, no buffering proxy detected. Bytes received: "+w.length),Oe(N),N.M=!0,z(11))}}else ct(this.i,this.l,w,null),Se(this,w);F==4&&ht(this),this.o&&!this.J&&(F==4?Hn(this.j,this):(this.o=!1,zt(this)))}else Wi(this.g),n==400&&0<w.indexOf("Unknown SID")?(this.s=3,z(12)):(this.s=0,z(13)),ht(this),_t(this)}}}catch{}finally{}};function un(t){return t.g?t.u=="GET"&&t.L!=2&&t.j.Ca:!1}function Di(t,e){var n=t.C,s=e.indexOf(` 409`,n);return s==-1?be:(n=Number(e.substring(n,s)),isNaN(n)?an:(s+=1,s+n>e.length?be:(e=e.slice(s,s+n),t.C=s+n,e)))}et.prototype.cancel=function(){this.J=!0,ht(this)};function zt(t){t.S=Date.now()+t.I,cn(t,t.I)}function cn(t,e){if(t.B!=null)throw Error("WatchDog timer not null");t.B=Ct(C(t.ba,t),e)}function Ce(t){t.B&&(E.clearTimeout(t.B),t.B=null)}et.prototype.ba=function(){this.B=null;const t=Date.now();0<=t-this.S?(Ai(this.i,this.A),this.L!=2&&(Et(),z(17)),ht(this),this.s=2,_t(this)):cn(this,this.S-t)};function _t(t){t.j.G==0||t.J||Hn(t.j,t)}function ht(t){Ce(t);var e=t.M;e&&typeof e.ma=="function"&&e.ma(),t.M=null,qe(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.ma())}function Se(t,e){try{var n=t.j;if(n.G!=0&&(n.g==t||_e(n.h,t))){if(!t.K&&_e(n.h,t)&&n.G==3){try{var s=n.Da.g.parse(e)}catch{s=null}if(Array.isArray(s)&&s.length==3){var p=s;if(p[0]==0){t:if(!n.u){if(n.g)if(n.g.F+3e3<t.F)qt(n),Yt(n);else break t;De(n),z(18)}}else n.za=p[1],0<n.za-n.T&&37500>p[2]&&n.F&&n.v==0&&!n.C&&(n.C=Ct(C(n.Za,n),6e3));if(1>=gn(n.h)&&n.ca){try{n.ca()}catch{}n.ca=void 0}}else lt(n,11)}else if((t.K||n.g==t)&&qt(n),!$(e))for(p=n.Da.g.parse(e),e=0;e<p.length;e++){let A=p[e];if(n.T=A[0],A=A[1],n.G==2)if(A[0]=="c"){n.K=A[1],n.ia=A[2];const N=A[3];N!=null&&(n.la=N,n.j.info("VER="+n.la));const F=A[4];F!=null&&(n.Aa=F,n.j.info("SVER="+n.Aa));const gt=A[5];gt!=null&&typeof gt=="number"&&0<gt&&(s=1.5*gt,n.L=s,n.j.info("backChannelRequestTimeoutMs_="+s)),s=n;const W=t.g;if(W){const te=W.g?W.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(te){var y=s.h;y.g||te.indexOf("spdy")==-1&&te.indexOf("quic")==-1&&te.indexOf("h2")==-1||(y.j=y.l,y.g=new Set,y.h&&(Ie(y,y.h),y.h=null))}if(s.D){const Be=W.g?W.g.getResponseHeader("X-HTTP-Session-Id"):null;Be&&(s.ya=Be,D(s.I,s.D,Be))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-t.F,n.j.info("Handshake RTT: "+n.R+"ms")),s=n;var w=t;if(s.qa=Fn(s,s.J?s.ia:null,s.W),w.K){dn(s.h,w);var T=w,P=s.L;P&&(T.I=P),T.B&&(Ce(T),zt(T)),s.g=w}else Pn(s);0<n.i.length&&Zt(n)}else A[0]!="stop"&&A[0]!="close"||lt(n,7);else n.G==3&&(A[0]=="stop"||A[0]=="close"?A[0]=="stop"?lt(n,7):Te(n):A[0]!="noop"&&n.l&&n.l.ta(A),n.v=0)}}Et(4)}catch{}}var Oi=class{constructor(t,e){this.g=t,this.map=e}};function fn(t){this.l=t||10,E.PerformanceNavigationTiming?(t=E.performance.getEntriesByType("navigation"),t=0<t.length&&(t[0].nextHopProtocol=="hq"||t[0].nextHopProtocol=="h2")):t=!!(E.chrome&&E.chrome.loadTimes&&E.chrome.loadTimes()&&E.chrome.loadTimes().wasFetchedViaSpdy),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function pn(t){return t.h?!0:t.g?t.g.size>=t.j:!1}function gn(t){return t.h?1:t.g?t.g.size:0}function _e(t,e){return t.h?t.h==e:t.g?t.g.has(e):!1}function Ie(t,e){t.g?t.g.add(e):t.h=e}function dn(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}fn.prototype.cancel=function(){if(this.i=mn(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const t of this.g.values())t.cancel();this.g.clear()}};function mn(t){if(t.h!=null)return t.i.concat(t.h.D);if(t.g!=null&&t.g.size!==0){let e=t.i;for(const n of t.g.values())e=e.concat(n.D);return e}return j(t.i)}function Bi(t){if(t.V&&typeof t.V=="function")return t.V();if(typeof Map<"u"&&t instanceof Map||typeof Set<"u"&&t instanceof Set)return Array.from(t.values());if(typeof t=="string")return t.split("");if(S(t)){for(var e=[],n=t.length,s=0;s<n;s++)e.push(t[s]);return e}e=[],n=0;for(s in t)e[n++]=t[s];return e}function Mi(t){if(t.na&&typeof t.na=="function")return t.na();if(!t.V||typeof t.V!="function"){if(typeof Map<"u"&&t instanceof Map)return Array.from(t.keys());if(!(typeof Set<"u"&&t instanceof Set)){if(S(t)||typeof t=="string"){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}e=[],n=0;for(const s in t)e[n++]=s;return e}}}function yn(t,e){if(t.forEach&&typeof t.forEach=="function")t.forEach(e,void 0);else if(S(t)||typeof t=="string")Array.prototype.forEach.call(t,e,void 0);else for(var n=Mi(t),s=Bi(t),p=s.length,y=0;y<p;y++)e.call(void 0,s[y],n&&n[y],t)}var vn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function xi(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var s=t[n].indexOf("="),p=null;if(0<=s){var y=t[n].substring(0,s);p=t[n].substring(s+1)}else y=t[n];e(y,p?decodeURIComponent(p.replace(/\+/g," ")):"")}}}function at(t){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,t instanceof at){this.h=t.h,Vt(this,t.j),this.o=t.o,this.g=t.g,Wt(this,t.s),this.l=t.l;var e=t.i,n=new Tt;n.i=e.i,e.g&&(n.g=new Map(e.g),n.h=e.h),wn(this,n),this.m=t.m}else t&&(e=String(t).match(vn))?(this.h=!1,Vt(this,e[1]||"",!0),this.o=It(e[2]||""),this.g=It(e[3]||"",!0),Wt(this,e[4]),this.l=It(e[5]||"",!0),wn(this,e[6]||"",!0),this.m=It(e[7]||"")):(this.h=!1,this.i=new Tt(null,this.h))}at.prototype.toString=function(){var t=[],e=this.j;e&&t.push(At(e,bn,!0),":");var n=this.g;return(n||e=="file")&&(t.push("//"),(e=this.o)&&t.push(At(e,bn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.s,n!=null&&t.push(":",String(n))),(n=this.l)&&(this.g&&n.charAt(0)!="/"&&t.push("/"),t.push(At(n,n.charAt(0)=="/"?Pi:Ri,!0))),(n=this.i.toString())&&t.push("?",n),(n=this.m)&&t.push("#",At(n,Hi)),t.join("")};function Z(t){return new at(t)}function Vt(t,e,n){t.j=n?It(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function Wt(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.s=e}else t.s=null}function wn(t,e,n){e instanceof Tt?(t.i=e,Li(t.i,t.h)):(n||(e=At(e,ki)),t.i=new Tt(e,t.h))}function D(t,e,n){t.i.set(e,n)}function Xt(t){return D(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function It(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function At(t,e,n){return typeof t=="string"?(t=encodeURI(t).replace(e,ji),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ji(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(t&15).toString(16)}var bn=/[#\/\?@]/g,Ri=/[#\?:]/g,Pi=/[#\?]/g,ki=/[#\?@]/g,Hi=/#/g;function Tt(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function nt(t){t.g||(t.g=new Map,t.h=0,t.i&&xi(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}r=Tt.prototype,r.add=function(t,e){nt(this),this.i=null,t=ft(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this};function En(t,e){nt(t),e=ft(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function Cn(t,e){return nt(t),e=ft(t,e),t.g.has(e)}r.forEach=function(t,e){nt(this),this.g.forEach(function(n,s){n.forEach(function(p){t.call(e,p,s,this)},this)},this)},r.na=function(){nt(this);const t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let s=0;s<e.length;s++){const p=t[s];for(let y=0;y<p.length;y++)n.push(e[s])}return n},r.V=function(t){nt(this);let e=[];if(typeof t=="string")Cn(this,t)&&(e=e.concat(this.g.get(ft(this,t))));else{t=Array.from(this.g.values());for(let n=0;n<t.length;n++)e=e.concat(t[n])}return e},r.set=function(t,e){return nt(this),this.i=null,t=ft(this,t),Cn(this,t)&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},r.get=function(t,e){return t?(t=this.V(t),0<t.length?String(t[0]):e):e};function Sn(t,e,n){En(t,e),0<n.length&&(t.i=null,t.g.set(ft(t,e),j(n)),t.h+=n.length)}r.toString=function(){if(this.i)return this.i;if(!this.g)return"";const t=[],e=Array.from(this.g.keys());for(var n=0;n<e.length;n++){var s=e[n];const y=encodeURIComponent(String(s)),w=this.V(s);for(s=0;s<w.length;s++){var p=y;w[s]!==""&&(p+="="+encodeURIComponent(String(w[s]))),t.push(p)}}return this.i=t.join("&")};function ft(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function Li(t,e){e&&!t.j&&(nt(t),t.i=null,t.g.forEach(function(n,s){var p=s.toLowerCase();s!=p&&(En(this,s),Sn(this,p,n))},t)),t.j=e}function Ni(t,e){const n=new St;if(E.Image){const s=new Image;s.onload=x(it,n,"TestLoadImage: loaded",!0,e,s),s.onerror=x(it,n,"TestLoadImage: error",!1,e,s),s.onabort=x(it,n,"TestLoadImage: abort",!1,e,s),s.ontimeout=x(it,n,"TestLoadImage: timeout",!1,e,s),E.setTimeout(function(){s.ontimeout&&s.ontimeout()},1e4),s.src=t}else e(!1)}function Fi(t,e){const n=new St,s=new AbortController,p=setTimeout(()=>{s.abort(),it(n,"TestPingServer: timeout",!1,e)},1e4);fetch(t,{signal:s.signal}).then(y=>{clearTimeout(p),y.ok?it(n,"TestPingServer: ok",!0,e):it(n,"TestPingServer: server error",!1,e)}).catch(()=>{clearTimeout(p),it(n,"TestPingServer: error",!1,e)})}function it(t,e,n,s,p){try{p&&(p.onload=null,p.onerror=null,p.onabort=null,p.ontimeout=null),s(n)}catch{}}function $i(){this.g=new Si}function Ui(t,e,n){const s=n||"";try{yn(t,function(p,y){let w=p;_(p)&&(w=de(p)),e.push(s+y+"="+encodeURIComponent(w))})}catch(p){throw e.push(s+"type="+encodeURIComponent("_badmap")),p}}function Gt(t){this.l=t.Ub||null,this.j=t.eb||!1}I(Gt,me),Gt.prototype.g=function(){return new Jt(this.l,this.j)},Gt.prototype.i=(function(t){return function(){return t}})({});function Jt(t,e){L.call(this),this.D=t,this.o=e,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}I(Jt,L),r=Jt.prototype,r.open=function(t,e){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=t,this.A=e,this.readyState=1,Ot(this)},r.send=function(t){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const e={headers:this.u,method:this.B,credentials:this.m,cache:void 0};t&&(e.body=t),(this.D||E).fetch(new Request(this.A,e)).then(this.Sa.bind(this),this.ga.bind(this))},r.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&&this.readyState!=4&&(this.g=!1,Dt(this)),this.readyState=0},r.Sa=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Ot(this)),this.g&&(this.readyState=3,Ot(this),this.g)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof E.ReadableStream<"u"&&"body"in t){if(this.j=t.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;_n(this)}else t.text().then(this.Ra.bind(this),this.ga.bind(this))};function _n(t){t.j.read().then(t.Pa.bind(t)).catch(t.ga.bind(t))}r.Pa=function(t){if(this.g){if(this.o&&t.value)this.response.push(t.value);else if(!this.o){var e=t.value?t.value:new Uint8Array(0);(e=this.v.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?Dt(this):Ot(this),this.readyState==3&&_n(this)}},r.Ra=function(t){this.g&&(this.response=this.responseText=t,Dt(this))},r.Qa=function(t){this.g&&(this.response=t,Dt(this))},r.ga=function(){this.g&&Dt(this)};function Dt(t){t.readyState=4,t.l=null,t.j=null,t.v=null,Ot(t)}r.setRequestHeader=function(t,e){this.u.append(t,e)},r.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";const t=[],e=this.h.entries();for(var n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join(`\r 410`)};function Ot(t){t.onreadystatechange&&t.onreadystatechange.call(t)}Object.defineProperty(Jt.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(t){this.m=t?"include":"same-origin"}});function In(t){let e="";return G(t,function(n,s){e+=s,e+=":",e+=n,e+=`\r 411`}),e}function Ae(t,e,n){t:{for(s in n){var s=!1;break t}s=!0}s||(n=In(n),typeof t=="string"?n!=null&&encodeURIComponent(String(n)):D(t,e,n))}function M(t){L.call(this),this.headers=new Map,this.o=t||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}I(M,L);var zi=/^https?$/i,Vi=["POST","PUT"];r=M.prototype,r.Ha=function(t){this.J=t},r.ea=function(t,e,n,s){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():we.g(),this.v=this.o?Qe(this.o):Qe(we),this.g.onreadystatechange=C(this.Ea,this);try{this.B=!0,this.g.open(e,String(t),!0),this.B=!1}catch(y){An(this,y);return}if(t=n||"",n=new Map(this.headers),s)if(Object.getPrototypeOf(s)===Object.prototype)for(var p in s)n.set(p,s[p]);else if(typeof s.keys=="function"&&typeof s.get=="function")for(const y of s.keys())n.set(y,s.get(y));else throw Error("Unknown input type for opt_headers: "+String(s));s=Array.from(n.keys()).find(y=>y.toLowerCase()=="content-type"),p=E.FormData&&t instanceof E.FormData,!(0<=Array.prototype.indexOf.call(Vi,e,void 0))||s||p||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[y,w]of n)this.g.setRequestHeader(y,w);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{On(this),this.u=!0,this.g.send(t),this.u=!1}catch(y){An(this,y)}};function An(t,e){t.h=!1,t.g&&(t.j=!0,t.g.abort(),t.j=!1),t.l=e,t.m=5,Tn(t),Kt(t)}function Tn(t){t.A||(t.A=!0,U(t,"complete"),U(t,"error"))}r.abort=function(t){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=t||7,U(this,"complete"),U(this,"abort"),Kt(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Kt(this,!0)),M.aa.N.call(this)},r.Ea=function(){this.s||(this.B||this.u||this.j?Dn(this):this.bb())},r.bb=function(){Dn(this)};function Dn(t){if(t.h&&typeof v<"u"&&(!t.v[1]||q(t)!=4||t.Z()!=2)){if(t.u&&q(t)==4)Ke(t.Ea,0,t);else if(U(t,"readystatechange"),q(t)==4){t.h=!1;try{const w=t.Z();t:switch(w){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e=!0;break t;default:e=!1}var n;if(!(n=e)){var s;if(s=w===0){var p=String(t.D).match(vn)[1]||null;!p&&E.self&&E.self.location&&(p=E.self.location.protocol.slice(0,-1)),s=!zi.test(p?p.toLowerCase():"")}n=s}if(n)U(t,"complete"),U(t,"success");else{t.m=6;try{var y=2<q(t)?t.g.statusText:""}catch{y=""}t.l=y+" ["+t.Z()+"]",Tn(t)}}finally{Kt(t)}}}}function Kt(t,e){if(t.g){On(t);const n=t.g,s=t.v[0]?()=>{}:null;t.g=null,t.v=null,e||U(t,"ready");try{n.onreadystatechange=s}catch{}}}function On(t){t.I&&(E.clearTimeout(t.I),t.I=null)}r.isActive=function(){return!!this.g};function q(t){return t.g?t.g.readyState:0}r.Z=function(){try{return 2<q(this)?this.g.status:-1}catch{return-1}},r.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},r.Oa=function(t){if(this.g){var e=this.g.responseText;return t&&e.indexOf(t)==0&&(e=e.substring(t.length)),Ci(e)}};function Bn(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.H){case"":case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function Wi(t){const e={};t=(t.g&&2<=q(t)&&t.g.getAllResponseHeaders()||"").split(`\r 412`);for(let s=0;s<t.length;s++){if($(t[s]))continue;var n=c(t[s]);const p=n[0];if(n=n[1],typeof n!="string")continue;n=n.trim();const y=e[p]||[];e[p]=y,y.push(n)}f(e,function(s){return s.join(", ")})}r.Ba=function(){return this.m},r.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function Bt(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Mn(t){this.Aa=0,this.i=[],this.j=new St,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Bt("failFast",!1,t),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Bt("baseRetryDelayMs",5e3,t),this.cb=Bt("retryDelaySeedMs",1e4,t),this.Wa=Bt("forwardChannelMaxRetries",2,t),this.wa=Bt("forwardChannelRequestTimeoutMs",2e4,t),this.pa=t&&t.xmlHttpFactory||void 0,this.Xa=t&&t.Tb||void 0,this.Ca=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.h=new fn(t&&t.concurrentRequestLimit),this.Da=new $i,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=t&&t.Rb||!1,t&&t.xa&&this.j.xa(),t&&t.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&t&&t.detectBufferingProxy||!1,this.ja=void 0,t&&t.longPollingTimeout&&0<t.longPollingTimeout&&(this.ja=t.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}r=Mn.prototype,r.la=8,r.G=1,r.connect=function(t,e,n,s){z(0),this.W=t,this.H=e||{},n&&s!==void 0&&(this.H.OSID=n,this.H.OAID=s),this.F=this.X,this.I=Fn(this,null,this.W),Zt(this)};function Te(t){if(xn(t),t.G==3){var e=t.U++,n=Z(t.I);if(D(n,"SID",t.K),D(n,"RID",e),D(n,"TYPE","terminate"),Mt(t,n),e=new et(t,t.j,e),e.L=2,e.v=Xt(Z(n)),n=!1,E.navigator&&E.navigator.sendBeacon)try{n=E.navigator.sendBeacon(e.v.toString(),"")}catch{}!n&&E.Image&&(new Image().src=e.v,n=!0),n||(e.g=$n(e.j,null),e.g.ea(e.v)),e.F=Date.now(),zt(e)}Nn(t)}function Yt(t){t.g&&(Oe(t),t.g.cancel(),t.g=null)}function xn(t){Yt(t),t.u&&(E.clearTimeout(t.u),t.u=null),qt(t),t.h.cancel(),t.s&&(typeof t.s=="number"&&E.clearTimeout(t.s),t.s=null)}function Zt(t){if(!pn(t.h)&&!t.s){t.s=!0;var e=t.Ga;mt||Ve(),yt||(mt(),yt=!0),he.add(e,t),t.B=0}}function Xi(t,e){return gn(t.h)>=t.h.j-(t.s?1:0)?!1:t.s?(t.i=e.D.concat(t.i),!0):t.G==1||t.G==2||t.B>=(t.Va?0:t.Wa)?!1:(t.s=Ct(C(t.Ga,t,e),Ln(t,t.B)),t.B++,!0)}r.Ga=function(t){if(this.s)if(this.s=null,this.G==1){if(!t){this.U=Math.floor(1e5*Math.random()),t=this.U++;const p=new et(this,this.j,t);let y=this.o;if(this.S&&(y?(y=h(y),u(y,this.S)):y=this.S),this.m!==null||this.O||(p.H=y,y=null),this.P)t:{for(var e=0,n=0;n<this.i.length;n++){e:{var s=this.i[n];if("__data__"in s.map&&(s=s.map.__data__,typeof s=="string")){s=s.length;break e}s=void 0}if(s===void 0)break;if(e+=s,4096<e){e=n;break t}if(e===4096||n===this.i.length-1){e=n+1;break t}}e=1e3}else e=1e3;e=Rn(this,p,e),n=Z(this.I),D(n,"RID",t),D(n,"CVER",22),this.D&&D(n,"X-HTTP-Session-Id",this.D),Mt(this,n),y&&(this.O?e="headers="+encodeURIComponent(String(In(y)))+"&"+e:this.m&&Ae(n,this.m,y)),Ie(this.h,p),this.Ua&&D(n,"TYPE","init"),this.P?(D(n,"$req",e),D(n,"SID","null"),p.T=!0,Ee(p,n,null)):Ee(p,n,e),this.G=2}}else this.G==3&&(t?jn(this,t):this.i.length==0||pn(this.h)||jn(this))};function jn(t,e){var n;e?n=e.l:n=t.U++;const s=Z(t.I);D(s,"SID",t.K),D(s,"RID",n),D(s,"AID",t.T),Mt(t,s),t.m&&t.o&&Ae(s,t.m,t.o),n=new et(t,t.j,n,t.B+1),t.m===null&&(n.H=t.o),e&&(t.i=e.D.concat(t.i)),e=Rn(t,n,1e3),n.I=Math.round(.5*t.wa)+Math.round(.5*t.wa*Math.random()),Ie(t.h,n),Ee(n,s,e)}function Mt(t,e){t.H&&G(t.H,function(n,s){D(e,s,n)}),t.l&&yn({},function(n,s){D(e,s,n)})}function Rn(t,e,n){n=Math.min(t.i.length,n);var s=t.l?C(t.l.Na,t.l,t):null;t:{var p=t.i;let y=-1;for(;;){const w=["count="+n];y==-1?0<n?(y=p[0].g,w.push("ofs="+y)):y=0:w.push("ofs="+y);let T=!0;for(let P=0;P<n;P++){let A=p[P].g;const N=p[P].map;if(A-=y,0>A)y=Math.max(0,p[P].g-100),T=!1;else try{Ui(N,w,"req"+A+"_")}catch{s&&s(N)}}if(T){s=w.join("&");break t}}}return t=t.i.splice(0,n),e.D=t,s}function Pn(t){if(!t.g&&!t.u){t.Y=1;var e=t.Fa;mt||Ve(),yt||(mt(),yt=!0),he.add(e,t),t.v=0}}function De(t){return t.g||t.u||3<=t.v?!1:(t.Y++,t.u=Ct(C(t.Fa,t),Ln(t,t.v)),t.v++,!0)}r.Fa=function(){if(this.u=null,kn(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var t=2*this.R;this.j.info("BP detection timer enabled: "+t),this.A=Ct(C(this.ab,this),t)}},r.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,z(10),Yt(this),kn(this))};function Oe(t){t.A!=null&&(E.clearTimeout(t.A),t.A=null)}function kn(t){t.g=new et(t,t.j,"rpc",t.Y),t.m===null&&(t.g.H=t.o),t.g.O=0;var e=Z(t.qa);D(e,"RID","rpc"),D(e,"SID",t.K),D(e,"AID",t.T),D(e,"CI",t.F?"0":"1"),!t.F&&t.ja&&D(e,"TO",t.ja),D(e,"TYPE","xmlhttp"),Mt(t,e),t.m&&t.o&&Ae(e,t.m,t.o),t.L&&(t.g.I=t.L);var n=t.g;t=t.ia,n.L=1,n.v=Xt(Z(e)),n.m=null,n.P=!0,ln(n,t)}r.Za=function(){this.C!=null&&(this.C=null,Yt(this),De(this),z(19))};function qt(t){t.C!=null&&(E.clearTimeout(t.C),t.C=null)}function Hn(t,e){var n=null;if(t.g==e){qt(t),Oe(t),t.g=null;var s=2}else if(_e(t.h,e))n=e.D,dn(t.h,e),s=1;else return;if(t.G!=0){if(e.o)if(s==1){n=e.m?e.m.length:0,e=Date.now()-e.F;var p=t.B;s=Ft(),U(s,new sn(s,n)),Zt(t)}else Pn(t);else if(p=e.s,p==3||p==0&&0<e.X||!(s==1&&Xi(t,e)||s==2&&De(t)))switch(n&&0<n.length&&(e=t.h,e.i=e.i.concat(n)),p){case 1:lt(t,5);break;case 4:lt(t,10);break;case 3:lt(t,6);break;default:lt(t,2)}}}function Ln(t,e){let n=t.Ta+Math.floor(Math.random()*t.cb);return t.isActive()||(n*=2),n*e}function lt(t,e){if(t.j.info("Error code "+e),e==2){var n=C(t.fb,t),s=t.Xa;const p=!s;s=new at(s||"//www.google.com/images/cleardot.gif"),E.location&&E.location.protocol=="http"||Vt(s,"https"),Xt(s),p?Ni(s.toString(),n):Fi(s.toString(),n)}else z(2);t.G=0,t.l&&t.l.sa(e),Nn(t),xn(t)}r.fb=function(t){t?(this.j.info("Successfully pinged google.com"),z(2)):(this.j.info("Failed to ping google.com"),z(1))};function Nn(t){if(t.G=0,t.ka=[],t.l){const e=mn(t.h);(e.length!=0||t.i.length!=0)&&(B(t.ka,e),B(t.ka,t.i),t.h.i.length=0,j(t.i),t.i.length=0),t.l.ra()}}function Fn(t,e,n){var s=n instanceof at?Z(n):new at(n);if(s.g!="")e&&(s.g=e+"."+s.g),Wt(s,s.s);else{var p=E.location;s=p.protocol,e=e?e+"."+p.hostname:p.hostname,p=+p.port;var y=new at(null);s&&Vt(y,s),e&&(y.g=e),p&&Wt(y,p),n&&(y.l=n),s=y}return n=t.D,e=t.ya,n&&e&&D(s,n,e),D(s,"VER",t.la),Mt(t,s),s}function $n(t,e,n){if(e&&!t.J)throw Error("Can't create secondary domain capable XhrIo object.");return e=t.Ca&&!t.pa?new M(new Gt({eb:n})):new M(t.pa),e.Ha(t.J),e}r.isActive=function(){return!!this.l&&this.l.isActive(this)};function Un(){}r=Un.prototype,r.ua=function(){},r.ta=function(){},r.sa=function(){},r.ra=function(){},r.isActive=function(){return!0},r.Na=function(){};function Qt(){}Qt.prototype.g=function(t,e){return new V(t,e)};function V(t,e){L.call(this),this.g=new Mn(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.o=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.va&&(t?t["X-WebChannel-Client-Profile"]=e.va:t={"X-WebChannel-Client-Profile":e.va}),this.g.S=t,(t=e&&e.Sb)&&!$(t)&&(this.g.m=t),this.v=e&&e.supportsCrossDomainXhr||!1,this.u=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!$(e)&&(this.g.D=e,t=this.h,t!==null&&e in t&&(t=this.h,e in t&&delete t[e])),this.j=new pt(this)}I(V,L),V.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},V.prototype.close=function(){Te(this.g)},V.prototype.o=function(t){var e=this.g;if(typeof t=="string"){var n={};n.__data__=t,t=n}else this.u&&(n={},n.__data__=de(t),t=n);e.i.push(new Oi(e.Ya++,t)),e.G==3&&Zt(e)},V.prototype.N=function(){this.g.l=null,delete this.j,Te(this.g),delete this.g,V.aa.N.call(this)};function zn(t){ye.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){t:{for(const n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=e!==null&&t in e?e[t]:void 0),this.data=e}else this.data=t}I(zn,ye);function Vn(){ve.call(this),this.status=1}I(Vn,ve);function pt(t){this.g=t}I(pt,Un),pt.prototype.ua=function(){U(this.g,"a")},pt.prototype.ta=function(t){U(this.g,new zn(t))},pt.prototype.sa=function(t){U(this.g,new Vn)},pt.prototype.ra=function(){U(this.g,"b")},Qt.prototype.createWebChannel=Qt.prototype.g,V.prototype.send=V.prototype.o,V.prototype.open=V.prototype.m,V.prototype.close=V.prototype.close,ks=function(){return new Qt},Ps=function(){return Ft()},Rs=ot,js={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},$t.NO_ERROR=0,$t.TIMEOUT=8,$t.HTTP_ERROR=6,xs=$t,on.COMPLETE="complete",Ms=on,tn.EventType=bt,bt.OPEN="a",bt.CLOSE="b",bt.ERROR="c",bt.MESSAGE="d",L.prototype.listen=L.prototype.K,Bs=tn,M.prototype.listenOnce=M.prototype.L,M.prototype.getLastError=M.prototype.Ka,M.prototype.getLastErrorCode=M.prototype.Ba,M.prototype.getStatus=M.prototype.Z,M.prototype.getResponseJson=M.prototype.Oa,M.prototype.getResponseText=M.prototype.oa,M.prototype.send=M.prototype.ea,M.prototype.setWithCredentials=M.prototype.Ha,Os=M}).apply(typeof ee<"u"?ee:typeof self<"u"?self:typeof window<"u"?window:{});export{xs as A,ks as B,re as C,Ps as D,hi as E,Rt as F,Rs as G,js as H,Ts as I,gs as J,Sr as L,Ds as M,to as S,Bs as W,Os as X,Ue as _,Ws as a,Vs as b,Qs as c,Zs as d,Ys as e,O as f,Ls as g,oi as h,Us as i,Zi as j,rr as k,qs as l,nr as m,eo as n,ke as o,Ns as p,Ks as q,ne as r,Xs as s,Js as t,$s as u,zs as v,Hs as w,Fs as x,Gs as y,Ms as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.