!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="73eb5a30-7c2f-4f32-b31a-37778c6af454",t._sentryDebugIdIdentifier="sentry-dbid-73eb5a30-7c2f-4f32-b31a-37778c6af454")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[837],{8745:function(t,e,n){n.d(e,{BH:function(){return b},L:function(){return l},LL:function(){return O},P0:function(){return m},Pz:function(){return y},Sg:function(){return w},ZR:function(){return D},aH:function(){return v},b$:function(){return C},eu:function(){return A},hl:function(){return _},m9:function(){return H},ne:function(){return P},pd:function(){return M},q4:function(){return d},ru:function(){return I},tV:function(){return u},uI:function(){return S},vZ:function(){return function t(e,n){if(e===n)return!0;let i=Object.keys(e),r=Object.keys(n);for(let s of i){if(!r.includes(s))return!1;let i=e[s],o=n[s];if(R(i)&&R(o)){if(!t(i,o))return!1}else if(i!==o)return!1}for(let t of r)if(!i.includes(t))return!1;return!0}},w1:function(){return T},xO:function(){return N},xb:function(){return k},z$:function(){return E},zd:function(){return L}});var i=n(62601);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let r=function(t){let e=[],n=0;for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:((64512&r)==55296&&i+1<t.length&&(64512&t.charCodeAt(i+1))==56320?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[n++]=r>>18|240,e[n++]=r>>12&63|128):e[n++]=r>>12|224,e[n++]=r>>6&63|128),e[n++]=63&r|128)}return e},s=function(t){let e=[],n=0,i=0;for(;n<t.length;){let r=t[n++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){let s=t[n++];e[i++]=String.fromCharCode((31&r)<<6|63&s)}else if(r>239&&r<365){let s=((7&r)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(s>>10)),e[i++]=String.fromCharCode(56320+(1023&s))}else{let s=t[n++],o=t[n++];e[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&o)}}return e.join("")},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let e=0;e<t.length;e+=3){let r=t[e],s=e+1<t.length,o=s?t[e+1]:0,a=e+2<t.length,h=a?t[e+2]:0,l=r>>2,u=(3&r)<<4|o>>4,c=(15&o)<<2|h>>6,f=63&h;a||(f=64,s||(c=64)),i.push(n[l],n[u],n[c],n[f])}return i.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(r(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):s(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let e=0;e<t.length;){let r=n[t.charAt(e++)],s=e<t.length?n[t.charAt(e)]:0,o=++e<t.length?n[t.charAt(e)]:64,h=++e<t.length?n[t.charAt(e)]:64;if(++e,null==r||null==s||null==o||null==h)throw new a;let l=r<<2|s>>4;if(i.push(l),64!==o){let t=s<<4&240|o>>2;if(i.push(t),64!==h){let t=o<<6&192|h;i.push(t)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let h=function(t){let e=r(t);return o.encodeByteArray(e,!0)},l=function(t){return h(t).replace(/\./g,"")},u=function(t){try{return o.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null},c=()=>/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,f=()=>{if(void 0===i||void 0===i.env)return;let t=i.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},p=()=>{let t;if("undefined"==typeof document)return;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=t&&u(t[1]);return e&&JSON.parse(e)},g=()=>{try{return c()||f()||p()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},d=t=>{var e,n;return null===(n=null===(e=g())||void 0===e?void 0:e.emulatorHosts)||void 0===n?void 0:n[t]},m=t=>{let e=d(t);if(!e)return;let n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw Error(`Invalid host ${e} with no separate hostname and port!`);let i=parseInt(e.substring(n+1),10);return"["===e[0]?[e.substring(1,n-1),i]:[e.substring(0,n),i]},v=()=>{var t;return null===(t=g())||void 0===t?void 0:t.config},y=t=>{var e;return null===(e=g())||void 0===e?void 0:e[`_${t}`]};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class b{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}wrapCallback(t){return(e,n)=>{e?this.reject(e):this.resolve(n),"function"==typeof t&&(this.promise.catch(()=>{}),1===t.length?t(e):t(e,n))}}}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function w(t,e){if(t.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let n=e||"demo-project",i=t.iat||0,r=t.sub||t.user_id;if(!r)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:i,exp:i+3600,auth_time:i,sub:r,user_id:r,firebase:{sign_in_provider:"custom",identities:{}}},t);return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(s)),""].join(".")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function E(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function S(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(E())}function I(){let t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function C(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function T(){let t=E();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function _(){try{return"object"==typeof indexedDB}catch(t){return!1}}function A(){return new Promise((t,e)=>{try{let n=!0,i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var t;e((null===(t=r.error)||void 0===t?void 0:t.message)||"")}}catch(t){e(t)}})}class D extends Error{constructor(t,e,n){super(e),this.code=t,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,D.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,O.prototype.create)}}class O{constructor(t,e,n){this.service=t,this.serviceName=e,this.errors=n}create(t,...e){let n=e[0]||{},i=`${this.service}/${t}`,r=this.errors[t],s=r?r.replace(j,(t,e)=>{let i=n[e];return null!=i?String(i):`<${e}?>`}):"Error",o=`${this.serviceName}: ${s} (${i}).`;return new D(i,o,n)}}let j=/\{\$([^}]+)}/g;function k(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function R(t){return null!==t&&"object"==typeof t}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function N(t){let e=[];for(let[n,i]of Object.entries(t))Array.isArray(i)?i.forEach(t=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(t))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(i));return e.length?"&"+e.join("&"):""}function L(t){let e={};return t.replace(/^\?/,"").split("&").forEach(t=>{if(t){let[n,i]=t.split("=");e[decodeURIComponent(n)]=decodeURIComponent(i)}}),e}function M(t){let e=t.indexOf("?");if(!e)return"";let n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function P(t,e){let n=new x(t,e);return n.subscribe.bind(n)}class x{constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(()=>{t(this)}).catch(t=>{this.error(t)})}next(t){this.forEachObserver(e=>{e.next(t)})}error(t){this.forEachObserver(e=>{e.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,e,n){let i;if(void 0===t&&void 0===e&&void 0===n)throw Error("Missing Observer.");void 0===(i=!function(t,e){if("object"!=typeof t||null===t)return!1;for(let n of e)if(n in t&&"function"==typeof t[n])return!0;return!1}(t,["next","error","complete"])?{next:t,error:e,complete:n}:t).next&&(i.next=B),void 0===i.error&&(i.error=B),void 0===i.complete&&(i.complete=B);let r=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch(t){}}),this.observers.push(i),r}unsubscribeOne(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let e=0;e<this.observers.length;e++)this.sendOne(e,t)}sendOne(t,e){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[t])try{e(this.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}})}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function B(){}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function H(t){return t&&t._delegate?t._delegate:t}},41604:function(t,e,n){n.d(e,{g:function(){return i}});function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}},25396:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var i=n(41604),r=n(61396),s=n.n(r),o=n(24033),a=n(2265),h=n(61278);let l="locale";function u(t){return"object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t)}function c(t,e){let n;return"string"==typeof t?n=f(e,t):(n={...t},t.pathname&&(n.pathname=f(e,t.pathname))),n}function f(t,e){let n="/"+t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),n+=e}let p=(0,a.forwardRef)(function(t,e){let{href:n,locale:r,localePrefix:f,prefetch:p,...g}=t,d=(0,o.usePathname)(),m=function(){let t;let e=(0,o.useParams)();try{t=(0,h.useLocale)()}catch(n){if("string"!=typeof(null==e?void 0:e[l]))throw n;t=e[l]}return t}(),v=r!==m,[y,b]=(0,a.useState)(()=>u(n)&&("never"!==f||v)?c(n,r):n);return(0,a.useEffect)(()=>{d&&"never"!==f&&b(function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0;if(!u(t)||function(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}(t))return t;let r=e!==n,s=null==e||function(t,e){let n="/".concat(t);return e===n||e.startsWith("".concat(n,"/"))}(e,i);return(r||s)&&null!=e?c(t,e):t}(n,r,m,null!=d?d:void 0))},[m,n,r,f,d]),v&&(p&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),p=!1),a.createElement(s(),(0,i.g)({ref:e,href:y,prefetch:p},g))});p.displayName="ClientLink";var g=p},63991:function(t,e,n){let i,r;n.d(e,{Jn:function(){return L},qX:function(){return k},Xd:function(){return j},Mq:function(){return P},C6:function(){return x},ZF:function(){return M},KN:function(){return B}});var s,o=n(45538),a=n(56914),h=n(8745);let l=(t,e)=>e.some(e=>t instanceof e),u=new WeakMap,c=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,d={get(t,e,n){if(t instanceof IDBTransaction){if("done"===e)return c.get(t);if("objectStoreNames"===e)return t.objectStoreNames||f.get(t);if("store"===e)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return m(t[e])},set:(t,e,n)=>(t[e]=n,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function m(t){var e;if(t instanceof IDBRequest)return function(t){let e=new Promise((e,n)=>{let i=()=>{t.removeEventListener("success",r),t.removeEventListener("error",s)},r=()=>{e(m(t.result)),i()},s=()=>{n(t.error),i()};t.addEventListener("success",r),t.addEventListener("error",s)});return e.then(e=>{e instanceof IDBCursor&&u.set(e,t)}).catch(()=>{}),g.set(e,t),e}(t);if(p.has(t))return p.get(t);let n="function"==typeof(e=t)?e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(v(this),t),m(u.get(this))}:function(...t){return m(e.apply(v(this),t))}:function(t,...n){let i=e.call(v(this),t,...n);return f.set(i,t.sort?t.sort():[t]),m(i)}:(e instanceof IDBTransaction&&function(t){if(c.has(t))return;let e=new Promise((e,n)=>{let i=()=>{t.removeEventListener("complete",r),t.removeEventListener("error",s),t.removeEventListener("abort",s)},r=()=>{e(),i()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",r),t.addEventListener("error",s),t.addEventListener("abort",s)});c.set(t,e)}(e),l(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,d):e;return n!==t&&(p.set(t,n),g.set(n,t)),n}let v=t=>g.get(t),y=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],w=new Map;function E(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&"string"==typeof e))return;if(w.get(e))return w.get(e);let n=e.replace(/FromIndex$/,""),i=e!==n,r=b.includes(n);if(!(n in(i?IDBIndex:IDBObjectStore).prototype)||!(r||y.includes(n)))return;let s=async function(t,...e){let s=this.transaction(t,r?"readwrite":"readonly"),o=s.store;return i&&(o=o.index(e.shift())),(await Promise.all([o[n](...e),r&&s.done]))[0]};return w.set(e,s),s}d={...s=d,get:(t,e,n)=>E(t,e)||s.get(t,e,n),has:(t,e)=>!!E(t,e)||s.has(t,e)};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class S{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(!function(t){let e=t.getComponent();return(null==e?void 0:e.type)==="VERSION"}(t))return null;{let e=t.getImmediate();return`${e.library}/${e.version}`}}).filter(t=>t).join(" ")}}let I="@firebase/app",C="0.9.25",T=new a.Yd("@firebase/app"),_="[DEFAULT]",A={[I]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},D=new Map,O=new Map;function j(t){let e=t.name;if(O.has(e))return T.debug(`There were multiple attempts to register component ${e}.`),!1;for(let n of(O.set(e,t),D.values()))!function(t,e){try{t.container.addComponent(e)}catch(n){T.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}(n,t);return!0}function k(t,e){let n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}let R=new h.LL("app","Firebase",{"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","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.","invalid-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}."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class N{constructor(t,e,n){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},e),this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new o.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw R.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let L="10.7.1";function M(t,e={}){let n=t;"object"!=typeof e&&(e={name:e});let i=Object.assign({name:_,automaticDataCollectionEnabled:!1},e),r=i.name;if("string"!=typeof r||!r)throw R.create("bad-app-name",{appName:String(r)});if(n||(n=(0,h.aH)()),!n)throw R.create("no-options");let s=D.get(r);if(s){if((0,h.vZ)(n,s.options)&&(0,h.vZ)(i,s.config))return s;throw R.create("duplicate-app",{appName:r})}let a=new o.H0(r);for(let t of O.values())a.addComponent(t);let l=new N(n,i,a);return D.set(r,l),l}function P(t=_){let e=D.get(t);if(!e&&t===_&&(0,h.aH)())return M();if(!e)throw R.create("no-app",{appName:t});return e}function x(){return Array.from(D.values())}function B(t,e,n){var i;let r=null!==(i=A[t])&&void 0!==i?i:t;n&&(r+=`-${n}`);let s=r.match(/\s|\//),a=e.match(/\s|\//);if(s||a){let t=[`Unable to register library "${r}" with version "${e}":`];s&&t.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&a&&t.push("and"),a&&t.push(`version name "${e}" contains illegal characters (whitespace or "/")`),T.warn(t.join(" "));return}j(new o.wA(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}let H="firebase-heartbeat-store",F=null;function U(){return F||(F=(function(t,e,{blocked:n,upgrade:i,blocking:r,terminated:s}={}){let o=indexedDB.open(t,1),a=m(o);return i&&o.addEventListener("upgradeneeded",t=>{i(m(o.result),t.oldVersion,t.newVersion,m(o.transaction),t)}),n&&o.addEventListener("blocked",t=>n(t.oldVersion,t.newVersion,t)),a.then(t=>{s&&t.addEventListener("close",()=>s()),r&&t.addEventListener("versionchange",t=>r(t.oldVersion,t.newVersion,t))}).catch(()=>{}),a})("firebase-heartbeat-database",0,{upgrade:(t,e)=>{0===e&&t.createObjectStore(H)}}).catch(t=>{throw R.create("idb-open",{originalErrorMessage:t.message})})),F}async function $(t){try{let e=await U();return await e.transaction(H).objectStore(H).get(z(t))}catch(t){if(t instanceof h.ZR)T.warn(t.message);else{let e=R.create("idb-get",{originalErrorMessage:null==t?void 0:t.message});T.warn(e.message)}}}async function X(t,e){try{let n=(await U()).transaction(H,"readwrite"),i=n.objectStore(H);await i.put(e,z(t)),await n.done}catch(t){if(t instanceof h.ZR)T.warn(t.message);else{let e=R.create("idb-set",{originalErrorMessage:null==t?void 0:t.message});T.warn(e.message)}}}function z(t){return`${t.name}!${t.options.appId}`}class V{constructor(t){this.container=t,this._heartbeatsCache=null;let e=this.container.getProvider("app").getImmediate();this._storage=new J(e),this._heartbeatsCachePromise=this._storage.read().then(t=>(this._heartbeatsCache=t,t))}async triggerHeartbeat(){var t,e;let n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=W();return(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null)?void 0:this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(t=>t.date===i)?void 0:(this._heartbeatsCache.heartbeats.push({date:i,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(t=>{let e=new Date(t.date).valueOf();return Date.now()-e<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){var t;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=W(),{heartbeatsToSend:n,unsentEntries:i}=function(t,e=1024){let n=[],i=t.slice();for(let r of t){let t=n.find(t=>t.agent===r.agent);if(t){if(t.dates.push(r.date),K(n)>e){t.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),K(n)>e){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}(this._heartbeatsCache.heartbeats),r=(0,h.L)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function W(){return new Date().toISOString().substring(0,10)}class J{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,h.hl)()&&(0,h.eu)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let t=await $(this.app);return(null==t?void 0:t.heartbeats)?t:{heartbeats:[]}}}async overwrite(t){var e;if(await this._canUseIndexedDBPromise){let n=await this.read();return X(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:n.lastSentHeartbeatDate,heartbeats:t.heartbeats})}}async add(t){var e;if(await this._canUseIndexedDBPromise){let n=await this.read();return X(this.app,{lastSentHeartbeatDate:null!==(e=t.lastSentHeartbeatDate)&&void 0!==e?e:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...t.heartbeats]})}}}function K(t){return(0,h.L)(JSON.stringify({version:2,heartbeats:t})).length}j(new o.wA("platform-logger",t=>new S(t),"PRIVATE")),j(new o.wA("heartbeat",t=>new V(t),"PRIVATE")),B(I,C,""),B(I,C,"esm2017"),B("fire-js","")},45538:function(t,e,n){n.d(e,{H0:function(){return a},wA:function(){return r}});var i=n(8745);class r{constructor(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let s="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class o{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){let t=new i.BH;if(this.instancesDeferred.set(e,t),this.isInitialized(e)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:e});n&&t.resolve(n)}catch(t){}}return this.instancesDeferred.get(e).promise}getImmediate(t){var e;let n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),i=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(t){if(i)return null;throw t}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,this.shouldAutoInitialize()){if("EAGER"===t.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(t){}for(let[t,e]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(t);try{let t=this.getOrInitializeService({instanceIdentifier:n});e.resolve(t)}catch(t){}}}}clearInstance(t=s){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){let t=Array.from(this.instances.values());await Promise.all([...t.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...t.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return null!=this.component}isInitialized(t=s){return this.instances.has(t)}getOptions(t=s){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:e={}}=t,n=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:n,options:e});for(let[t,e]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(t)&&e.resolve(i);return i}onInit(t,e){var n;let i=this.normalizeInstanceIdentifier(e),r=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;r.add(t),this.onInitCallbacks.set(i,r);let s=this.instances.get(i);return s&&t(s,i),()=>{r.delete(t)}}invokeOnInitCallbacks(t,e){let n=this.onInitCallbacks.get(e);if(n)for(let i of n)try{i(t,e)}catch(t){}}getOrInitializeService({instanceIdentifier:t,options:e={}}){let n=this.instances.get(t);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:t===s?void 0:t,options:e}),this.instances.set(t,n),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(n,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,n)}catch(t){}return n||null}normalizeInstanceIdentifier(t=s){return this.component?this.component.multipleInstances?t:s:t}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class a{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let e=this.getProvider(t.name);if(e.isComponentSet())throw Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let e=new o(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}},56914:function(t,e,n){var i,r;n.d(e,{Yd:function(){return u},in:function(){return i}});/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let s=[];(r=i||(i={}))[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";let o={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},a=i.INFO,h={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},l=(t,e,...n)=>{if(e<t.logLevel)return;let i=new Date().toISOString(),r=h[e];if(r)console[r](`[${i}]  ${t.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class u{constructor(t){this.name=t,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,s.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in i))throw TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel="string"==typeof t?o[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if("function"!=typeof t)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...t),this._logHandler(this,i.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...t),this._logHandler(this,i.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,i.INFO,...t),this._logHandler(this,i.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,i.WARN,...t),this._logHandler(this,i.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,i.ERROR,...t),this._logHandler(this,i.ERROR,...t)}}},30613:function(t,e,n){n.d(e,{FJ:function(){return nB},JJ:function(){return nz},UE:function(){return nx},V8:function(){return nV},ii:function(){return nX},jK:function(){return nH},ju:function(){return nU},kN:function(){return n$},tw:function(){return nF},z8:function(){return nW}});var i,r,s,o,a,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={},u=u||{},c=h||self;function f(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function p(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function g(t,e,n){return t.call.apply(t.bind,arguments)}function d(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function m(t,e,n){return(m=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g:d).apply(null,arguments)}function v(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function y(t,e){function n(){}n.prototype=e.prototype,t.$=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.ac=function(t,n,i){for(var r=Array(arguments.length-2),s=2;s<arguments.length;s++)r[s-2]=arguments[s];return e.prototype[n].apply(t,r)}}function b(){this.s=this.s,this.o=this.o}b.prototype.s=!1,b.prototype.sa=function(){this.s||(this.s=!0,this.N())},b.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};let w=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(let n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return -1};function E(t){let e=t.length;if(0<e){let n=Array(e);for(let i=0;i<e;i++)n[i]=t[i];return n}return[]}function S(t,e){for(let e=1;e<arguments.length;e++){let n=arguments[e];if(f(n)){let e=t.length||0,i=n.length||0;t.length=e+i;for(let r=0;r<i;r++)t[e+r]=n[r]}else t.push(n)}}function I(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}I.prototype.h=function(){this.defaultPrevented=!0};var C=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{let t=()=>{};c.addEventListener("test",t,e),c.removeEventListener("test",t,e)}catch(t){}return t}();function T(t){return/^[\s\xa0]*$/.test(t)}function _(){var t=c.navigator;return t&&(t=t.userAgent)?t:""}function A(t){return -1!=_().indexOf(t)}function D(t){return D[" "](t),t}D[" "]=function(){};var O=A("Opera"),j=A("Trident")||A("MSIE"),k=A("Edge"),R=k||j,N=A("Gecko")&&!(-1!=_().toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),L=-1!=_().toLowerCase().indexOf("webkit")&&!A("Edge");function M(){var t=c.document;return t?t.documentMode:void 0}t:{var P,x="",B=(P=_(),N?/rv:([^\);]+)(\)|;)/.exec(P):k?/Edge\/([\d\.]+)/.exec(P):j?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(P):L?/WebKit\/(\S+)/.exec(P):O?/(?:Version)[ \/]?(\S+)/.exec(P):void 0);if(B&&(x=B?B[1]:""),j){var H=M();if(null!=H&&H>parseFloat(x)){r=String(H);break t}}r=x}var F=c.document&&j&&(M()||parseInt(r,10))||void 0;function U(t,e){if(I.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,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(N){t:{try{D(e.nodeName);var r=!0;break t}catch(t){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:$[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&U.$.h.call(this)}}y(U,I);var $={2:"touch",3:"pen",4:"mouse"};U.prototype.h=function(){U.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var X="closure_listenable_"+(1e6*Math.random()|0),z=0;function V(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.la=r,this.key=++z,this.fa=this.ia=!1}function W(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function J(t,e,n){for(let i in t)e.call(n,t[i],i,t)}function K(t){let e={};for(let n in t)e[n]=t[n];return e}let G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Y(t,e){let n,i;for(let e=1;e<arguments.length;e++){for(n in i=arguments[e])t[n]=i[n];for(let e=0;e<G.length;e++)n=G[e],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function q(t){this.src=t,this.g={},this.h=0}function Z(t,e){var n=e.type;if(n in t.g){var i,r=t.g[n],s=w(r,e);(i=0<=s)&&Array.prototype.splice.call(r,s,1),i&&(W(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Q(t,e,n,i){for(var r=0;r<t.length;++r){var s=t[r];if(!s.fa&&s.listener==e&&!!n==s.capture&&s.la==i)return r}return -1}q.prototype.add=function(t,e,n,i,r){var s=t.toString();(t=this.g[s])||(t=this.g[s]=[],this.h++);var o=Q(t,e,i,r);return -1<o?(e=t[o],n||(e.ia=!1)):((e=new V(e,this.src,s,!!i,r)).ia=n,t.push(e)),e};var tt="closure_lm_"+(1e6*Math.random()|0),te={};function tn(t,e,n,i,r,s){if(!e)throw Error("Invalid event type");var o=p(r)?!!r.capture:!!r,a=to(t);if(a||(t[tt]=a=new q(t)),(n=a.add(e,n,i,o,s)).proxy)return n;if(i=function t(e){return ts.call(t.src,t.listener,e)},n.proxy=i,i.src=t,i.listener=n,t.addEventListener)C||(r=o),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(tr(e.toString()),i);else if(t.addListener&&t.removeListener)t.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");return n}function ti(t){if("number"!=typeof t&&t&&!t.fa){var e=t.src;if(e&&e[X])Z(e.i,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(tr(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=to(e))?(Z(n,t),0==n.h&&(n.src=null,e[tt]=null)):W(t)}}}function tr(t){return t in te?te[t]:te[t]="on"+t}function ts(t,e){if(t.fa)t=!0;else{e=new U(e,this);var n=t.listener,i=t.la||t.src;t.ia&&ti(t),t=n.call(i,e)}return t}function to(t){return(t=t[tt])instanceof q?t:null}var ta="__closure_events_fn_"+(1e9*Math.random()>>>0);function th(t){return"function"==typeof t?t:(t[ta]||(t[ta]=function(e){return t.handleEvent(e)}),t[ta])}function tl(){b.call(this),this.i=new q(this),this.S=this,this.J=null}function tu(t,e){var n,i=t.J;if(i)for(n=[];i;i=i.J)n.push(i);if(t=t.S,i=e.type||e,"string"==typeof e)e=new I(e,t);else if(e instanceof I)e.target=e.target||t;else{var r=e;Y(e=new I(i,t),r)}if(r=!0,n)for(var s=n.length-1;0<=s;s--){var o=e.g=n[s];r=tc(o,i,!0,e)&&r}if(r=tc(o=e.g=t,i,!0,e)&&r,r=tc(o,i,!1,e)&&r,n)for(s=0;s<n.length;s++)r=tc(o=e.g=n[s],i,!1,e)&&r}function tc(t,e,n,i){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var r=!0,s=0;s<e.length;++s){var o=e[s];if(o&&!o.fa&&o.capture==n){var a=o.listener,h=o.la||o.src;o.ia&&Z(t.i,o),r=!1!==a.call(h,i)&&r}}return r&&!i.defaultPrevented}y(tl,b),tl.prototype[X]=!0,tl.prototype.removeEventListener=function(t,e,n,i){!function t(e,n,i,r,s){if(Array.isArray(n))for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);else(r=p(r)?!!r.capture:!!r,i=th(i),e&&e[X])?(e=e.i,(n=String(n).toString())in e.g&&-1<(i=Q(o=e.g[n],i,r,s))&&(W(o[i]),Array.prototype.splice.call(o,i,1),0==o.length&&(delete e.g[n],e.h--))):e&&(e=to(e))&&(n=e.g[n.toString()],e=-1,n&&(e=Q(n,i,r,s)),(i=-1<e?n[e]:null)&&ti(i))}(this,t,e,n,i)},tl.prototype.N=function(){if(tl.$.N.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],i=0;i<n.length;i++)W(n[i]);delete e.g[t],e.h--}}this.J=null},tl.prototype.O=function(t,e,n,i){return this.i.add(String(t),e,!1,n,i)},tl.prototype.P=function(t,e,n,i){return this.i.add(String(t),e,!0,n,i)};var tf=c.JSON.stringify;class tp{constructor(t,e){this.i=t,this.j=e,this.h=0,this.g=null}get(){let t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t}}class tg{constructor(){this.h=this.g=null}add(t,e){let n=td.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n}}var td=new tp(()=>new tm,t=>t.reset());class tm{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let tv,ty=!1,tb=new tg,tw=()=>{let t=c.Promise.resolve(void 0);tv=()=>{t.then(tE)}};var tE=()=>{let t;for(var e;t=null,tb.g&&(t=tb.g,tb.g=tb.g.next,tb.g||(tb.h=null),t.next=null),e=t;){try{e.h.call(e.g)}catch(t){!function(t){c.setTimeout(()=>{throw t},0)}(t)}td.j(e),100>td.h&&(td.h++,e.next=td.g,td.g=e)}ty=!1};function tS(t,e){tl.call(this),this.h=t||1,this.g=e||c,this.j=m(this.qb,this),this.l=Date.now()}function tI(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function tC(t,e,n){if("function"==typeof t)n&&(t=m(t,n));else if(t&&"function"==typeof t.handleEvent)t=m(t.handleEvent,t);else throw Error("Invalid listener argument");return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}y(tS,tl),(a=tS.prototype).ga=!1,a.T=null,a.qb=function(){if(this.ga){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-t):(this.T&&(this.g.clearTimeout(this.T),this.T=null),tu(this,"tick"),this.ga&&(tI(this),this.start()))}},a.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},a.N=function(){tS.$.N.call(this),tI(this),delete this.g};class tT extends b{constructor(t,e){super(),this.m=t,this.j=e,this.h=null,this.i=!1,this.g=null}l(t){this.h=arguments,this.g?this.i=!0:function t(e){e.g=tC(()=>{e.g=null,e.i&&(e.i=!1,t(e))},e.j);let n=e.h;e.h=null,e.m.apply(null,n)}(this)}N(){super.N(),this.g&&(c.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function t_(t){b.call(this),this.h=t,this.g={}}y(t_,b);var tA=[];function tD(t,e,n,i){Array.isArray(n)||(n&&(tA[0]=n.toString()),n=tA);for(var r=0;r<n.length;r++){var s=function t(e,n,i,r,s){if(r&&r.once)return function t(e,n,i,r,s){if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);return null}return i=th(i),e&&e[X]?e.P(n,i,p(r)?!!r.capture:!!r,s):tn(e,n,i,!0,r,s)}(e,n,i,r,s);if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],i,r,s);return null}return i=th(i),e&&e[X]?e.O(n,i,p(r)?!!r.capture:!!r,s):tn(e,n,i,!1,r,s)}(e,n[r],i||t.handleEvent,!1,t.h||t);if(!s)break;t.g[s.key]=s}}function tO(t){J(t.g,function(t,e){this.g.hasOwnProperty(e)&&ti(t)},t),t.g={}}function tj(){this.g=!0}function tk(t,e,n,i){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n){for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var i=n[t];if(!(2>i.length)){var r=i[1];if(Array.isArray(r)&&!(1>r.length)){var s=r[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<r.length;o++)r[o]=""}}}}return tf(n)}catch(t){return e}}(t,n)+(i?" "+i:"")})}t_.prototype.N=function(){t_.$.N.call(this),tO(this)},t_.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},tj.prototype.Ea=function(){this.g=!1},tj.prototype.info=function(){};var tR={},tN=null;function tL(){return tN=tN||new tl}function tM(t){I.call(this,tR.Ta,t)}function tP(t){let e=tL();tu(e,new tM(e))}function tx(t,e){I.call(this,tR.STAT_EVENT,t),this.stat=e}function tB(t){let e=tL();tu(e,new tx(e,t))}function tH(t,e){I.call(this,tR.Ua,t),this.size=e}function tF(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return c.setTimeout(function(){t()},e)}tR.Ta="serverreachability",y(tM,I),tR.STAT_EVENT="statevent",y(tx,I),tR.Ua="timingevent",y(tH,I);var tU={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},t$={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function tX(){}function tz(t){return t.h||(t.h=t.i())}function tV(){}tX.prototype.h=null;var tW={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function tJ(){I.call(this,"d")}function tK(){I.call(this,"c")}function tG(){}function tY(t,e,n,i){this.l=t,this.j=e,this.m=n,this.W=i||1,this.U=new t_(this),this.P=tZ,t=R?125:void 0,this.V=new tS(t),this.I=null,this.i=!1,this.u=this.B=this.A=this.L=this.G=this.Y=this.C=null,this.F=[],this.g=null,this.o=0,this.s=this.v=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new tq}function tq(){this.i=null,this.g="",this.h=!1}y(tJ,I),y(tK,I),y(tG,tX),tG.prototype.g=function(){return new XMLHttpRequest},tG.prototype.i=function(){return{}},o=new tG;var tZ=45e3,tQ={},t0={};function t2(t,e,n){t.L=1,t.A=el(er(e)),t.u=n,t.S=!0,t1(t,null)}function t1(t,e){t.G=Date.now(),t6(t),t.B=er(t.A);var n=t.B,i=t.W;Array.isArray(i)||(i=[String(i)]),eS(n.i,"t",i),t.o=0,n=t.l.J,t.h=new tq,t.g=nc(t.l,n?e:null,!t.u),0<t.O&&(t.M=new tT(m(t.Pa,t,t.g),t.O)),tD(t.U,t.g,"readystatechange",t.nb),e=t.I?K(t.I):{},t.u?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ha(t.B,t.v,t.u,e)):(t.v="GET",t.g.ha(t.B,t.v,null,e)),tP(),function(t,e,n,i,r,s){t.info(function(){if(t.g){if(s)for(var o="",a=s.split("&"),h=0;h<a.length;h++){var l=a[h].split("=");if(1<l.length){var u=l[0];l=l[1];var c=u.split("_");o=2<=c.length&&"type"==c[1]?o+(u+"=")+l+"&":o+(u+"=redacted&")}}else o=null}else o=s;return"XMLHTTP REQ ("+i+") [attempt "+r+"]: "+e+"\n"+n+"\n"+o})}(t.j,t.v,t.B,t.m,t.W,t.u)}function t9(t){return!!t.g&&"GET"==t.v&&2!=t.L&&t.l.Ha}function t4(t,e,n){let i=!0,r;for(;!t.J&&t.o<n.length;)if((r=function(t,e){var n=t.o,i=e.indexOf("\n",n);return -1==i?t0:isNaN(n=Number(e.substring(n,i)))?tQ:(i+=1)+n>e.length?t0:(e=e.slice(i,i+n),t.o=i+n,e)}(t,n))==t0){4==e&&(t.s=4,tB(14),i=!1),tk(t.j,t.m,null,"[Incomplete Response]");break}else if(r==tQ){t.s=4,tB(15),tk(t.j,t.m,n,"[Invalid Chunk]"),i=!1;break}else tk(t.j,t.m,r,null),et(t,r);t9(t)&&0!=t.o&&(t.h.g=t.h.g.slice(t.o),t.o=0),4!=e||0!=n.length||t.h.h||(t.s=1,tB(16),i=!1),t.i=t.i&&i,i?0<n.length&&!t.ba&&(t.ba=!0,(e=t.l).g==t&&e.ca&&!e.M&&(e.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),ni(e),e.M=!0,tB(11))):(tk(t.j,t.m,n,"[Invalid Chunked Response]"),t8(t),t3(t))}function t6(t){t.Y=Date.now()+t.P,t5(t,t.P)}function t5(t,e){if(null!=t.C)throw Error("WatchDog timer not null");t.C=tF(m(t.lb,t),e)}function t7(t){t.C&&(c.clearTimeout(t.C),t.C=null)}function t3(t){0==t.l.H||t.J||no(t.l,t)}function t8(t){t7(t);var e=t.M;e&&"function"==typeof e.sa&&e.sa(),t.M=null,tI(t.V),tO(t.U),t.g&&(e=t.g,t.g=null,e.abort(),e.sa())}function et(t,e){try{var n=t.l;if(0!=n.H&&(n.g==t||eO(n.i,t))){if(!t.K&&eO(n.i,t)&&3==n.H){try{var i=n.Ja.g.parse(e)}catch(t){i=null}if(Array.isArray(i)&&3==i.length){var r=i;if(0==r[0]){t:if(!n.u){if(n.g){if(n.g.G+3e3<t.G)ns(n),e6(n);else break t}nn(n),tB(18)}}else n.Fa=r[1],0<n.Fa-n.V&&37500>r[2]&&n.G&&0==n.A&&!n.v&&(n.v=tF(m(n.ib,n),6e3));if(1>=eD(n.i)&&n.oa){try{n.oa()}catch(t){}n.oa=void 0}}else nh(n,11)}else if((t.K||n.g==t)&&ns(n),!T(e))for(r=n.Ja.g.parse(e),e=0;e<r.length;e++){let a=r[e];if(n.V=a[0],a=a[1],2==n.H){if("c"==a[0]){n.K=a[1],n.pa=a[2];let e=a[3];null!=e&&(n.ra=e,n.l.info("VER="+n.ra));let r=a[4];null!=r&&(n.Ga=r,n.l.info("SVER="+n.Ga));let h=a[5];null!=h&&"number"==typeof h&&0<h&&(i=1.5*h,n.L=i,n.l.info("backChannelRequestTimeoutMs_="+i)),i=n;let l=t.g;if(l){let t=l.g?l.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(t){var s=i.i;s.g||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(ej(s,s.h),s.h=null))}if(i.F){let t=l.g?l.g.getResponseHeader("X-HTTP-Session-Id"):null;t&&(i.Da=t,eh(i.I,i.F,t))}}if(n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-t.G,n.l.info("Handshake RTT: "+n.S+"ms")),(i=n).wa=nu(i,i.J?i.pa:null,i.Y),t.K){ek(i.i,t);var o=i.L;o&&t.setTimeout(o),t.C&&(t7(t),t6(t)),i.g=t}else ne(i);0<n.j.length&&e7(n)}else"stop"!=a[0]&&"close"!=a[0]||nh(n,7)}else 3==n.H&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?nh(n,7):e4(n):"noop"!=a[0]&&n.h&&n.h.Aa(a),n.A=0)}}tP(4)}catch(t){}}function ee(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"==typeof t)Array.prototype.forEach.call(t,e,void 0);else for(var n=function(t){if(t.ta&&"function"==typeof t.ta)return t.ta();if(!t.Z||"function"!=typeof t.Z){if("undefined"!=typeof Map&&t instanceof Map)return Array.from(t.keys());if(!("undefined"!=typeof Set&&t instanceof Set)){if(f(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(let i in e=[],n=0,t)e[n++]=i;return e}}}(t),i=function(t){if(t.Z&&"function"==typeof t.Z)return t.Z();if("undefined"!=typeof Map&&t instanceof Map||"undefined"!=typeof Set&&t instanceof Set)return Array.from(t.values());if("string"==typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}(t),r=i.length,s=0;s<r;s++)e.call(void 0,i[s],n&&n[s],t)}(a=tY.prototype).setTimeout=function(t){this.P=t},a.nb=function(t){t=t.target;let e=this.M;e&&3==eZ(t)?e.l():this.Pa(t)},a.Pa=function(t){try{if(t==this.g)t:{let u=eZ(this.g);var e=this.g.Ia();let f=this.g.da();if(!(3>u)&&(3!=u||R||this.g&&(this.h.h||this.g.ja()||eQ(this.g)))){this.J||4!=u||7==e||(8==e||0>=f?tP(3):tP(2)),t7(this);var n=this.g.da();this.ca=n;e:if(t9(this)){var i=eQ(this.g);t="";var r=i.length,s=4==eZ(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){t8(this),t3(this);var o="";break e}this.h.i=new c.TextDecoder}for(e=0;e<r;e++)this.h.h=!0,t+=this.h.i.decode(i[e],{stream:s&&e==r-1});i.length=0,this.h.g+=t,this.o=0,o=this.h.g}else o=this.g.ja();if(this.i=200==n,function(t,e,n,i,r,s,o){t.info(function(){return"XMLHTTP RESP ("+i+") [ attempt "+r+"]: "+e+"\n"+n+"\n"+s+" "+o})}(this.j,this.v,this.B,this.m,this.W,u,n),this.i){if(this.aa&&!this.K){e:{if(this.g){var a,h=this.g;if((a=h.g?h.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!T(a)){var l=a;break e}}l=null}if(n=l)tk(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,et(this,n);else{this.i=!1,this.s=3,tB(12),t8(this),t3(this);break t}}this.S?(t4(this,u,o),R&&this.i&&3==u&&(tD(this.U,this.V,"tick",this.mb),this.V.start())):(tk(this.j,this.m,o,null),et(this,o)),4==u&&t8(this),this.i&&!this.J&&(4==u?no(this.l,this):(this.i=!1,t6(this)))}else(function(t){let e={};t=(t.g&&2<=eZ(t)&&t.g.getAllResponseHeaders()||"").split("\r\n");for(let i=0;i<t.length;i++){if(T(t[i]))continue;var n=function(t){var e=1;t=t.split(":");let n=[];for(;0<e&&t.length;)n.push(t.shift()),e--;return t.length&&n.push(t.join(":")),n}(t[i]);let r=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();let s=e[r]||[];e[r]=s,s.push(n)}!function(t,e){for(let n in t)e.call(void 0,t[n],n,t)}(e,function(t){return t.join(", ")})})(this.g),400==n&&0<o.indexOf("Unknown SID")?(this.s=3,tB(12)):(this.s=0,tB(13)),t8(this),t3(this)}}}catch(t){}finally{}},a.mb=function(){if(this.g){var t=eZ(this.g),e=this.g.ja();this.o<e.length&&(t7(this),t4(this,t,e),this.i&&4!=t&&t6(this))}},a.cancel=function(){this.J=!0,t8(this)},a.lb=function(){this.C=null;let t=Date.now();0<=t-this.Y?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.j,this.B),2!=this.L&&(tP(),tB(17)),t8(this),this.s=2,t3(this)):t5(this,this.Y-t)};var en=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function ei(t){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,t instanceof ei){this.h=t.h,es(this,t.j),this.s=t.s,this.g=t.g,eo(this,t.m),this.l=t.l;var e=t.i,n=new ey;n.i=e.i,e.g&&(n.g=new Map(e.g),n.h=e.h),ea(this,n),this.o=t.o}else t&&(e=String(t).match(en))?(this.h=!1,es(this,e[1]||"",!0),this.s=eu(e[2]||""),this.g=eu(e[3]||"",!0),eo(this,e[4]),this.l=eu(e[5]||"",!0),ea(this,e[6]||"",!0),this.o=eu(e[7]||"")):(this.h=!1,this.i=new ey(null,this.h))}function er(t){return new ei(t)}function es(t,e,n){t.j=n?eu(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function eo(t,e){if(e){if(isNaN(e=Number(e))||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function ea(t,e,n){var i,r;e instanceof ey?(t.i=e,i=t.i,(r=t.h)&&!i.j&&(eb(i),i.i=null,i.g.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(ew(this,e),eS(this,n,t))},i)),i.j=r):(n||(e=ec(e,em)),t.i=new ey(e,t.h))}function eh(t,e,n){t.i.set(e,n)}function el(t){return eh(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function eu(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function ec(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,ef),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function ef(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}ei.prototype.toString=function(){var t=[],e=this.j;e&&t.push(ec(e,ep,!0),":");var n=this.g;return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(ec(e,ep,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&t.push("/"),t.push(ec(n,"/"==n.charAt(0)?ed:eg,!0))),(n=this.i.toString())&&t.push("?",n),(n=this.o)&&t.push("#",ec(n,ev)),t.join("")};var ep=/[#\/\?@]/g,eg=/[#\?:]/g,ed=/[#\?]/g,em=/[#\?@]/g,ev=/#/g;function ey(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function eb(t){t.g||(t.g=new Map,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var s=t[n].substring(0,i);r=t[n].substring(i+1)}else s=t[n];e(s,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.i,function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)}))}function ew(t,e){eb(t),e=eI(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function eE(t,e){return eb(t),e=eI(t,e),t.g.has(e)}function eS(t,e,n){ew(t,e),0<n.length&&(t.i=null,t.g.set(eI(t,e),E(n)),t.h+=n.length)}function eI(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(a=ey.prototype).add=function(t,e){eb(this),this.i=null,t=eI(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},a.forEach=function(t,e){eb(this),this.g.forEach(function(n,i){n.forEach(function(n){t.call(e,n,i,this)},this)},this)},a.ta=function(){eb(this);let t=Array.from(this.g.values()),e=Array.from(this.g.keys()),n=[];for(let i=0;i<e.length;i++){let r=t[i];for(let t=0;t<r.length;t++)n.push(e[i])}return n},a.Z=function(t){eb(this);let e=[];if("string"==typeof t)eE(this,t)&&(e=e.concat(this.g.get(eI(this,t))));else{t=Array.from(this.g.values());for(let n=0;n<t.length;n++)e=e.concat(t[n])}return e},a.set=function(t,e){return eb(this),this.i=null,eE(this,t=eI(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},a.get=function(t,e){return t&&0<(t=this.Z(t)).length?String(t[0]):e},a.toString=function(){if(this.i)return this.i;if(!this.g)return"";let t=[],e=Array.from(this.g.keys());for(var n=0;n<e.length;n++){var i=e[n];let s=encodeURIComponent(String(i)),o=this.Z(i);for(i=0;i<o.length;i++){var r=s;""!==o[i]&&(r+="="+encodeURIComponent(String(o[i]))),t.push(r)}}return this.i=t.join("&")};var eC=class{constructor(t,e){this.g=t,this.map=e}};function eT(t){this.l=t||e_,t=c.PerformanceNavigationTiming?0<(t=c.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(c.g&&c.g.Ka&&c.g.Ka()&&c.g.Ka().dc),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var e_=10;function eA(t){return!!t.h||!!t.g&&t.g.size>=t.j}function eD(t){return t.h?1:t.g?t.g.size:0}function eO(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function ej(t,e){t.g?t.g.add(e):t.h=e}function ek(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function eR(t){if(null!=t.h)return t.i.concat(t.h.F);if(null!=t.g&&0!==t.g.size){let e=t.i;for(let n of t.g.values())e=e.concat(n.F);return e}return E(t.i)}eT.prototype.cancel=function(){if(this.i=eR(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let t of this.g.values())t.cancel();this.g.clear()}};var eN=class{stringify(t){return c.JSON.stringify(t,void 0)}parse(t){return c.JSON.parse(t,void 0)}};function eL(){this.g=new eN}function eM(t,e,n,i,r){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,r(i)}catch(t){}}function eP(t){this.l=t.ec||null,this.j=t.ob||!1}function ex(t,e){tl.call(this),this.F=t,this.u=e,this.m=void 0,this.readyState=eB,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}y(eP,tX),eP.prototype.g=function(){return new ex(this.l,this.j)},eP.prototype.i=(i={},function(){return i}),y(ex,tl);var eB=0;function eH(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function eF(t){t.readyState=4,t.l=null,t.j=null,t.A=null,eU(t)}function eU(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(a=ex.prototype).open=function(t,e){if(this.readyState!=eB)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,eU(this)},a.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.F||c).fetch(new Request(this.B,e)).then(this.$a.bind(this),this.ka.bind(this))},a.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,eF(this)),this.readyState=eB},a.$a=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,eU(this)),this.g&&(this.readyState=3,eU(this),this.g))){if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(void 0!==c.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;eH(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))}},a.Xa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?eF(this):eU(this),3==this.readyState&&eH(this)}},a.Za=function(t){this.g&&(this.response=this.responseText=t,eF(this))},a.Ya=function(t){this.g&&(this.response=t,eF(this))},a.ka=function(){this.g&&eF(this)},a.setRequestHeader=function(t,e){this.v.append(t,e)},a.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},a.getAllResponseHeaders=function(){if(!this.h)return"";let t=[],e=this.h.entries();for(var n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(ex.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var e$=c.JSON.parse;function eX(t){tl.call(this),this.headers=new Map,this.u=t||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=ez,this.L=this.M=!1}y(eX,tl);var ez="",eV=/^https?$/i,eW=["POST","PUT"];function eJ(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,eK(t),eY(t)}function eK(t){t.F||(t.F=!0,tu(t,"complete"),tu(t,"error"))}function eG(t){if(t.h&&void 0!==u&&(!t.C[1]||4!=eZ(t)||2!=t.da())){if(t.v&&4==eZ(t))tC(t.La,0,t);else if(tu(t,"readystatechange"),4==eZ(t)){t.h=!1;try{let o=t.da();switch(o){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e,n,i=!0;break;default:i=!1}if(!(e=i)){if(n=0===o){var r=String(t.I).match(en)[1]||null;!r&&c.self&&c.self.location&&(r=c.self.location.protocol.slice(0,-1)),n=!eV.test(r?r.toLowerCase():"")}e=n}if(e)tu(t,"complete"),tu(t,"success");else{t.m=6;try{var s=2<eZ(t)?t.g.statusText:""}catch(t){s=""}t.j=s+" ["+t.da()+"]",eK(t)}}finally{eY(t)}}}}function eY(t,e){if(t.g){eq(t);let n=t.g,i=t.C[0]?()=>{}:null;t.g=null,t.C=null,e||tu(t,"ready");try{n.onreadystatechange=i}catch(t){}}}function eq(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(c.clearTimeout(t.A),t.A=null)}function eZ(t){return t.g?t.g.readyState:0}function eQ(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case ez:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function e0(t){let e="";return J(t,function(t,n){e+=n+":"+t+"\r\n"}),e}function e2(t,e,n){t:{for(i in n){var i=!1;break t}i=!0}i||(n=e0(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):eh(t,e,n))}function e1(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function e9(t){this.Ga=0,this.j=[],this.l=new tj,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=e1("failFast",!1,t),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=e1("baseRetryDelayMs",5e3,t),this.hb=e1("retryDelaySeedMs",1e4,t),this.eb=e1("forwardChannelMaxRetries",2,t),this.xa=e1("forwardChannelRequestTimeoutMs",2e4,t),this.va=t&&t.xmlHttpFactory||void 0,this.Ha=t&&t.useFetchStreams||!1,this.L=void 0,this.J=t&&t.supportsCrossDomainXhr||!1,this.K="",this.i=new eT(t&&t.concurrentRequestLimit),this.Ja=new eL,this.P=t&&t.fastHandshake||!1,this.O=t&&t.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=t&&t.bc||!1,t&&t.Ea&&this.l.Ea(),t&&t.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&t&&t.detectBufferingProxy||!1,this.qa=void 0,t&&t.longPollingTimeout&&0<t.longPollingTimeout&&(this.qa=t.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function e4(t){if(e5(t),3==t.H){var e=t.W++,n=er(t.I);if(eh(n,"SID",t.K),eh(n,"RID",e),eh(n,"TYPE","terminate"),e8(t,n),(e=new tY(t,t.l,e)).L=2,e.A=el(er(n)),n=!1,c.navigator&&c.navigator.sendBeacon)try{n=c.navigator.sendBeacon(e.A.toString(),"")}catch(t){}!n&&c.Image&&((new Image).src=e.A,n=!0),n||(e.g=nc(e.l,null),e.g.ha(e.A)),e.G=Date.now(),t6(e)}nl(t)}function e6(t){t.g&&(ni(t),t.g.cancel(),t.g=null)}function e5(t){e6(t),t.u&&(c.clearTimeout(t.u),t.u=null),ns(t),t.i.cancel(),t.m&&("number"==typeof t.m&&c.clearTimeout(t.m),t.m=null)}function e7(t){if(!eA(t.i)&&!t.m){t.m=!0;var e=t.Na;tv||tw(),ty||(tv(),ty=!0),tb.add(e,t),t.C=0}}function e3(t,e){var n;n=e?e.m:t.W++;let i=er(t.I);eh(i,"SID",t.K),eh(i,"RID",n),eh(i,"AID",t.V),e8(t,i),t.o&&t.s&&e2(i,t.o,t.s),n=new tY(t,t.l,n,t.C+1),null===t.o&&(n.I=t.s),e&&(t.j=e.F.concat(t.j)),e=nt(t,n,1e3),n.setTimeout(Math.round(.5*t.xa)+Math.round(.5*t.xa*Math.random())),ej(t.i,n),t2(n,i,e)}function e8(t,e){t.na&&J(t.na,function(t,n){eh(e,n,t)}),t.h&&ee({},function(t,n){eh(e,n,t)})}function nt(t,e,n){n=Math.min(t.j.length,n);var i=t.h?m(t.h.Va,t.h,t):null;t:{var r=t.j;let e=-1;for(;;){let t=["count="+n];-1==e?0<n?(e=r[0].g,t.push("ofs="+e)):e=0:t.push("ofs="+e);let s=!0;for(let o=0;o<n;o++){let n=r[o].g,a=r[o].map;if(0>(n-=e))e=Math.max(0,r[o].g-100),s=!1;else try{!function(t,e,n){let i=n||"";try{ee(t,function(t,n){let r=t;p(t)&&(r=tf(t)),e.push(i+n+"="+encodeURIComponent(r))})}catch(t){throw e.push(i+"type="+encodeURIComponent("_badmap")),t}}(a,t,"req"+n+"_")}catch(t){i&&i(a)}}if(s){i=t.join("&");break t}}}return t=t.j.splice(0,n),e.F=t,i}function ne(t){if(!t.g&&!t.u){t.ba=1;var e=t.Ma;tv||tw(),ty||(tv(),ty=!0),tb.add(e,t),t.A=0}}function nn(t){return!t.g&&!t.u&&!(3<=t.A)&&(t.ba++,t.u=tF(m(t.Ma,t),na(t,t.A)),t.A++,!0)}function ni(t){null!=t.B&&(c.clearTimeout(t.B),t.B=null)}function nr(t){t.g=new tY(t,t.l,"rpc",t.ba),null===t.o&&(t.g.I=t.s),t.g.O=0;var e=er(t.wa);eh(e,"RID","rpc"),eh(e,"SID",t.K),eh(e,"AID",t.V),eh(e,"CI",t.G?"0":"1"),!t.G&&t.qa&&eh(e,"TO",t.qa),eh(e,"TYPE","xmlhttp"),e8(t,e),t.o&&t.s&&e2(e,t.o,t.s),t.L&&t.g.setTimeout(t.L);var n=t.g;t=t.pa,n.L=1,n.A=el(er(e)),n.u=null,n.S=!0,t1(n,t)}function ns(t){null!=t.v&&(c.clearTimeout(t.v),t.v=null)}function no(t,e){var n=null;if(t.g==e){ns(t),ni(t),t.g=null;var i=2}else{if(!eO(t.i,e))return;n=e.F,ek(t.i,e),i=1}if(0!=t.H){if(e.i){if(1==i){n=e.u?e.u.length:0,e=Date.now()-e.G;var r,s=t.C;tu(i=tL(),new tH(i,n)),e7(t)}else ne(t)}else if(3==(s=e.s)||0==s&&0<e.ca||!(1==i&&(r=e,!(eD(t.i)>=t.i.j-(t.m?1:0))&&(t.m?(t.j=r.F.concat(t.j),!0):1!=t.H&&2!=t.H&&!(t.C>=(t.cb?0:t.eb))&&(t.m=tF(m(t.Na,t,r),na(t,t.C)),t.C++,!0)))||2==i&&nn(t)))switch(n&&0<n.length&&((e=t.i).i=e.i.concat(n)),s){case 1:nh(t,5);break;case 4:nh(t,10);break;case 3:nh(t,6);break;default:nh(t,2)}}}function na(t,e){let n=t.ab+Math.floor(Math.random()*t.hb);return t.isActive()||(n*=2),n*e}function nh(t,e){if(t.l.info("Error code "+e),2==e){var n=null;t.h&&(n=null);var i=m(t.pb,t);n||(n=new ei("//www.google.com/images/cleardot.gif"),c.location&&"http"==c.location.protocol||es(n,"https"),el(n)),function(t,e){let n=new tj;if(c.Image){let i=new Image;i.onload=v(eM,n,i,"TestLoadImage: loaded",!0,e),i.onerror=v(eM,n,i,"TestLoadImage: error",!1,e),i.onabort=v(eM,n,i,"TestLoadImage: abort",!1,e),i.ontimeout=v(eM,n,i,"TestLoadImage: timeout",!1,e),c.setTimeout(function(){i.ontimeout&&i.ontimeout()},1e4),i.src=t}else e(!1)}(n.toString(),i)}else tB(2);t.H=0,t.h&&t.h.za(e),nl(t),e5(t)}function nl(t){if(t.H=0,t.ma=[],t.h){let e=eR(t.i);(0!=e.length||0!=t.j.length)&&(S(t.ma,e),S(t.ma,t.j),t.i.i.length=0,E(t.j),t.j.length=0),t.h.ya()}}function nu(t,e,n){var i=n instanceof ei?er(n):new ei(n);if(""!=i.g)e&&(i.g=e+"."+i.g),eo(i,i.m);else{var r=c.location;i=r.protocol,e=e?e+"."+r.hostname:r.hostname,r=+r.port;var s=new ei(null);i&&es(s,i),e&&(s.g=e),r&&eo(s,r),n&&(s.l=n),i=s}return n=t.F,e=t.Da,n&&e&&eh(i,n,e),eh(i,"VER",t.ra),e8(t,i),i}function nc(t,e,n){if(e&&!t.J)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new eX(t.Ha&&!t.va?new eP({ob:n}):t.va)).Oa(t.J),e}function nf(){}function np(){if(j&&!(10<=Number(F)))throw Error("Environmental error: no available transport.")}function ng(t,e){tl.call(this),this.g=new e9(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.Ca&&(t?t["X-WebChannel-Client-Profile"]=e.Ca:t={"X-WebChannel-Client-Profile":e.Ca}),this.g.U=t,(t=e&&e.cc)&&!T(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!T(e)&&(this.g.F=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new nv(this)}function nd(t){tJ.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(let n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function nm(){tK.call(this),this.status=1}function nv(t){this.g=t}function ny(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function nb(t,e,n){n||(n=0);var i=Array(16);if("string"==typeof e)for(var r=0;16>r;++r)i[r]=e.charCodeAt(n++)|e.charCodeAt(n++)<<8|e.charCodeAt(n++)<<16|e.charCodeAt(n++)<<24;else for(r=0;16>r;++r)i[r]=e[n++]|e[n++]<<8|e[n++]<<16|e[n++]<<24;e=t.g[0],n=t.g[1],r=t.g[2];var s=t.g[3],o=e+(s^n&(r^s))+i[0]+3614090360&4294967295;o=s+(r^(e=n+(o<<7&4294967295|o>>>25))&(n^r))+i[1]+3905402710&4294967295,o=r+(n^(s=e+(o<<12&4294967295|o>>>20))&(e^n))+i[2]+606105819&4294967295,o=n+(e^(r=s+(o<<17&4294967295|o>>>15))&(s^e))+i[3]+3250441966&4294967295,o=e+(s^(n=r+(o<<22&4294967295|o>>>10))&(r^s))+i[4]+4118548399&4294967295,o=s+(r^(e=n+(o<<7&4294967295|o>>>25))&(n^r))+i[5]+1200080426&4294967295,o=r+(n^(s=e+(o<<12&4294967295|o>>>20))&(e^n))+i[6]+2821735955&4294967295,o=n+(e^(r=s+(o<<17&4294967295|o>>>15))&(s^e))+i[7]+4249261313&4294967295,o=e+(s^(n=r+(o<<22&4294967295|o>>>10))&(r^s))+i[8]+1770035416&4294967295,o=s+(r^(e=n+(o<<7&4294967295|o>>>25))&(n^r))+i[9]+2336552879&4294967295,o=r+(n^(s=e+(o<<12&4294967295|o>>>20))&(e^n))+i[10]+4294925233&4294967295,o=n+(e^(r=s+(o<<17&4294967295|o>>>15))&(s^e))+i[11]+2304563134&4294967295,o=e+(s^(n=r+(o<<22&4294967295|o>>>10))&(r^s))+i[12]+1804603682&4294967295,o=s+(r^(e=n+(o<<7&4294967295|o>>>25))&(n^r))+i[13]+4254626195&4294967295,o=r+(n^(s=e+(o<<12&4294967295|o>>>20))&(e^n))+i[14]+2792965006&4294967295,o=n+(e^(r=s+(o<<17&4294967295|o>>>15))&(s^e))+i[15]+1236535329&4294967295,n=r+(o<<22&4294967295|o>>>10),o=e+(r^s&(n^r))+i[1]+4129170786&4294967295,e=n+(o<<5&4294967295|o>>>27),o=s+(n^r&(e^n))+i[6]+3225465664&4294967295,s=e+(o<<9&4294967295|o>>>23),o=r+(e^n&(s^e))+i[11]+643717713&4294967295,r=s+(o<<14&4294967295|o>>>18),o=n+(s^e&(r^s))+i[0]+3921069994&4294967295,n=r+(o<<20&4294967295|o>>>12),o=e+(r^s&(n^r))+i[5]+3593408605&4294967295,e=n+(o<<5&4294967295|o>>>27),o=s+(n^r&(e^n))+i[10]+38016083&4294967295,s=e+(o<<9&4294967295|o>>>23),o=r+(e^n&(s^e))+i[15]+3634488961&4294967295,r=s+(o<<14&4294967295|o>>>18),o=n+(s^e&(r^s))+i[4]+3889429448&4294967295,n=r+(o<<20&4294967295|o>>>12),o=e+(r^s&(n^r))+i[9]+568446438&4294967295,e=n+(o<<5&4294967295|o>>>27),o=s+(n^r&(e^n))+i[14]+3275163606&4294967295,s=e+(o<<9&4294967295|o>>>23),o=r+(e^n&(s^e))+i[3]+4107603335&4294967295,r=s+(o<<14&4294967295|o>>>18),o=n+(s^e&(r^s))+i[8]+1163531501&4294967295,n=r+(o<<20&4294967295|o>>>12),o=e+(r^s&(n^r))+i[13]+2850285829&4294967295,e=n+(o<<5&4294967295|o>>>27),o=s+(n^r&(e^n))+i[2]+4243563512&4294967295,s=e+(o<<9&4294967295|o>>>23),o=r+(e^n&(s^e))+i[7]+1735328473&4294967295,r=s+(o<<14&4294967295|o>>>18),o=n+(s^e&(r^s))+i[12]+2368359562&4294967295,o=e+((n=r+(o<<20&4294967295|o>>>12))^r^s)+i[5]+4294588738&4294967295,o=s+((e=n+(o<<4&4294967295|o>>>28))^n^r)+i[8]+2272392833&4294967295,o=r+((s=e+(o<<11&4294967295|o>>>21))^e^n)+i[11]+1839030562&4294967295,o=n+((r=s+(o<<16&4294967295|o>>>16))^s^e)+i[14]+4259657740&4294967295,o=e+((n=r+(o<<23&4294967295|o>>>9))^r^s)+i[1]+2763975236&4294967295,o=s+((e=n+(o<<4&4294967295|o>>>28))^n^r)+i[4]+1272893353&4294967295,o=r+((s=e+(o<<11&4294967295|o>>>21))^e^n)+i[7]+4139469664&4294967295,o=n+((r=s+(o<<16&4294967295|o>>>16))^s^e)+i[10]+3200236656&4294967295,o=e+((n=r+(o<<23&4294967295|o>>>9))^r^s)+i[13]+681279174&4294967295,o=s+((e=n+(o<<4&4294967295|o>>>28))^n^r)+i[0]+3936430074&4294967295,o=r+((s=e+(o<<11&4294967295|o>>>21))^e^n)+i[3]+3572445317&4294967295,o=n+((r=s+(o<<16&4294967295|o>>>16))^s^e)+i[6]+76029189&4294967295,o=e+((n=r+(o<<23&4294967295|o>>>9))^r^s)+i[9]+3654602809&4294967295,o=s+((e=n+(o<<4&4294967295|o>>>28))^n^r)+i[12]+3873151461&4294967295,o=r+((s=e+(o<<11&4294967295|o>>>21))^e^n)+i[15]+530742520&4294967295,o=n+((r=s+(o<<16&4294967295|o>>>16))^s^e)+i[2]+3299628645&4294967295,n=r+(o<<23&4294967295|o>>>9),o=e+(r^(n|~s))+i[0]+4096336452&4294967295,e=n+(o<<6&4294967295|o>>>26),o=s+(n^(e|~r))+i[7]+1126891415&4294967295,s=e+(o<<10&4294967295|o>>>22),o=r+(e^(s|~n))+i[14]+2878612391&4294967295,r=s+(o<<15&4294967295|o>>>17),o=n+(s^(r|~e))+i[5]+4237533241&4294967295,n=r+(o<<21&4294967295|o>>>11),o=e+(r^(n|~s))+i[12]+1700485571&4294967295,e=n+(o<<6&4294967295|o>>>26),o=s+(n^(e|~r))+i[3]+2399980690&4294967295,s=e+(o<<10&4294967295|o>>>22),o=r+(e^(s|~n))+i[10]+4293915773&4294967295,r=s+(o<<15&4294967295|o>>>17),o=n+(s^(r|~e))+i[1]+2240044497&4294967295,n=r+(o<<21&4294967295|o>>>11),o=e+(r^(n|~s))+i[8]+1873313359&4294967295,e=n+(o<<6&4294967295|o>>>26),o=s+(n^(e|~r))+i[15]+4264355552&4294967295,s=e+(o<<10&4294967295|o>>>22),o=r+(e^(s|~n))+i[6]+2734768916&4294967295,r=s+(o<<15&4294967295|o>>>17),o=n+(s^(r|~e))+i[13]+1309151649&4294967295,n=r+(o<<21&4294967295|o>>>11),o=e+(r^(n|~s))+i[4]+4149444226&4294967295,e=n+(o<<6&4294967295|o>>>26),o=s+(n^(e|~r))+i[11]+3174756917&4294967295,s=e+(o<<10&4294967295|o>>>22),o=r+(e^(s|~n))+i[2]+718787259&4294967295,r=s+(o<<15&4294967295|o>>>17),o=n+(s^(r|~e))+i[9]+3951481745&4294967295,t.g[0]=t.g[0]+e&4294967295,t.g[1]=t.g[1]+(r+(o<<21&4294967295|o>>>11))&4294967295,t.g[2]=t.g[2]+r&4294967295,t.g[3]=t.g[3]+s&4294967295}function nw(t,e){this.h=e;for(var n=[],i=!0,r=t.length-1;0<=r;r--){var s=0|t[r];i&&s==e||(n[r]=s,i=!1)}this.g=n}(a=eX.prototype).Oa=function(t){this.M=t},a.ha=function(t,e,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+t);e=e?e.toUpperCase():"GET",this.I=t,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():o.g(),this.C=this.u?tz(this.u):tz(o),this.g.onreadystatechange=m(this.La,this);try{this.G=!0,this.g.open(e,String(t),!0),this.G=!1}catch(t){eJ(this,t);return}if(t=n||"",n=new Map(this.headers),i){if(Object.getPrototypeOf(i)===Object.prototype)for(var r in i)n.set(r,i[r]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let t of i.keys())n.set(t,i.get(t));else throw Error("Unknown input type for opt_headers: "+String(i))}for(let[s,o]of(i=Array.from(n.keys()).find(t=>"content-type"==t.toLowerCase()),r=c.FormData&&t instanceof c.FormData,!(0<=w(eW,e))||i||r||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(s,o);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{var s;eq(this),0<this.B&&((this.L=(s=this.g,j&&"number"==typeof s.timeout&&void 0!==s.ontimeout))?(this.g.timeout=this.B,this.g.ontimeout=m(this.ua,this)):this.A=tC(this.ua,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(t){eJ(this,t)}},a.ua=function(){void 0!==u&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,tu(this,"timeout"),this.abort(8))},a.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,tu(this,"complete"),tu(this,"abort"),eY(this))},a.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),eY(this,!0)),eX.$.N.call(this)},a.La=function(){this.s||(this.G||this.v||this.l?eG(this):this.kb())},a.kb=function(){eG(this)},a.isActive=function(){return!!this.g},a.da=function(){try{return 2<eZ(this)?this.g.status:-1}catch(t){return -1}},a.ja=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},a.Wa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),e$(e)}},a.Ia=function(){return this.m},a.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(a=e9.prototype).ra=8,a.H=1,a.Na=function(t){if(this.m){if(this.m=null,1==this.H){if(!t){this.W=Math.floor(1e5*Math.random()),t=this.W++;let r=new tY(this,this.l,t),s=this.s;if(this.U&&(s?Y(s=K(s),this.U):s=this.U),null!==this.o||this.O||(r.I=s,s=null),this.P)t:{for(var e=0,n=0;n<this.j.length;n++){e:{var i=this.j[n];if("__data__"in i.map&&"string"==typeof(i=i.map.__data__)){i=i.length;break e}i=void 0}if(void 0===i)break;if(4096<(e+=i)){e=n;break t}if(4096===e||n===this.j.length-1){e=n+1;break t}}e=1e3}else e=1e3;e=nt(this,r,e),eh(n=er(this.I),"RID",t),eh(n,"CVER",22),this.F&&eh(n,"X-HTTP-Session-Id",this.F),e8(this,n),s&&(this.O?e="headers="+encodeURIComponent(String(e0(s)))+"&"+e:this.o&&e2(n,this.o,s)),ej(this.i,r),this.bb&&eh(n,"TYPE","init"),this.P?(eh(n,"$req",e),eh(n,"SID","null"),r.aa=!0,t2(r,n,null)):t2(r,n,e),this.H=2}}else 3==this.H&&(t?e3(this,t):0==this.j.length||eA(this.i)||e3(this))}},a.Ma=function(){if(this.u=null,nr(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=tF(m(this.jb,this),t)}},a.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,tB(10),e6(this),nr(this))},a.ib=function(){null!=this.v&&(this.v=null,e6(this),nn(this),tB(19))},a.pb=function(t){t?(this.l.info("Successfully pinged google.com"),tB(2)):(this.l.info("Failed to ping google.com"),tB(1))},a.isActive=function(){return!!this.h&&this.h.isActive(this)},(a=nf.prototype).Ba=function(){},a.Aa=function(){},a.za=function(){},a.ya=function(){},a.isActive=function(){return!0},a.Va=function(){},np.prototype.g=function(t,e){return new ng(t,e)},y(ng,tl),ng.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var t=this.g,e=this.l,n=this.h||void 0;tB(0),t.Y=e,t.na=n||{},t.G=t.aa,t.I=nu(t,null,t.Y),e7(t)},ng.prototype.close=function(){e4(this.g)},ng.prototype.u=function(t){var e=this.g;if("string"==typeof t){var n={};n.__data__=t,t=n}else this.v&&((n={}).__data__=tf(t),t=n);e.j.push(new eC(e.fb++,t)),3==e.H&&e7(e)},ng.prototype.N=function(){this.g.h=null,delete this.j,e4(this.g),delete this.g,ng.$.N.call(this)},y(nd,tJ),y(nm,tK),y(nv,nf),nv.prototype.Ba=function(){tu(this.g,"a")},nv.prototype.Aa=function(t){tu(this.g,new nd(t))},nv.prototype.za=function(t){tu(this.g,new nm)},nv.prototype.ya=function(){tu(this.g,"b")},y(ny,function(){this.blockSize=-1}),ny.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},ny.prototype.j=function(t,e){void 0===e&&(e=t.length);for(var n=e-this.blockSize,i=this.m,r=this.h,s=0;s<e;){if(0==r)for(;s<=n;)nb(this,t,s),s+=this.blockSize;if("string"==typeof t){for(;s<e;)if(i[r++]=t.charCodeAt(s++),r==this.blockSize){nb(this,i),r=0;break}}else for(;s<e;)if(i[r++]=t[s++],r==this.blockSize){nb(this,i),r=0;break}}this.h=r,this.i+=e},ny.prototype.l=function(){var t=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);t[0]=128;for(var e=1;e<t.length-8;++e)t[e]=0;var n=8*this.i;for(e=t.length-8;e<t.length;++e)t[e]=255&n,n/=256;for(this.j(t),t=Array(16),e=n=0;4>e;++e)for(var i=0;32>i;i+=8)t[n++]=this.g[e]>>>i&255;return t};var nE={};function nS(t){return -128<=t&&128>t?Object.prototype.hasOwnProperty.call(nE,t)?nE[t]:nE[t]=new nw([0|t],0>t?-1:0):new nw([0|t],0>t?-1:0)}function nI(t){if(isNaN(t)||!isFinite(t))return nT;if(0>t)return nj(nI(-t));for(var e=[],n=1,i=0;t>=n;i++)e[i]=t/n|0,n*=nC;return new nw(e,0)}var nC=4294967296,nT=nS(0),n_=nS(1),nA=nS(16777216);function nD(t){if(0!=t.h)return!1;for(var e=0;e<t.g.length;e++)if(0!=t.g[e])return!1;return!0}function nO(t){return -1==t.h}function nj(t){for(var e=t.g.length,n=[],i=0;i<e;i++)n[i]=~t.g[i];return new nw(n,~t.h).add(n_)}function nk(t,e){return t.add(nj(e))}function nR(t,e){for(;(65535&t[e])!=t[e];)t[e+1]+=t[e]>>>16,t[e]&=65535,e++}function nN(t,e){this.g=t,this.h=e}function nL(t,e){if(nD(e))throw Error("division by zero");if(nD(t))return new nN(nT,nT);if(nO(t))return e=nL(nj(t),e),new nN(nj(e.g),nj(e.h));if(nO(e))return e=nL(t,nj(e)),new nN(nj(e.g),e.h);if(30<t.g.length){if(nO(t)||nO(e))throw Error("slowDivide_ only works with positive integers.");for(var n=n_,i=e;0>=i.X(t);)n=nM(n),i=nM(i);var r=nP(n,1),s=nP(i,1);for(i=nP(i,2),n=nP(n,2);!nD(i);){var o=s.add(i);0>=o.X(t)&&(r=r.add(n),s=o),i=nP(i,1),n=nP(n,1)}return e=nk(t,r.R(e)),new nN(r,e)}for(r=nT;0<=t.X(e);){for(i=48>=(i=Math.ceil(Math.log(n=Math.max(1,Math.floor(t.ea()/e.ea())))/Math.LN2))?1:Math.pow(2,i-48),o=(s=nI(n)).R(e);nO(o)||0<o.X(t);)n-=i,o=(s=nI(n)).R(e);nD(s)&&(s=n_),r=r.add(s),t=nk(t,o)}return new nN(r,t)}function nM(t){for(var e=t.g.length+1,n=[],i=0;i<e;i++)n[i]=t.D(i)<<1|t.D(i-1)>>>31;return new nw(n,t.h)}function nP(t,e){var n=e>>5;e%=32;for(var i=t.g.length-n,r=[],s=0;s<i;s++)r[s]=0<e?t.D(s+n)>>>e|t.D(s+n+1)<<32-e:t.D(s+n);return new nw(r,t.h)}(a=nw.prototype).ea=function(){if(nO(this))return-nj(this).ea();for(var t=0,e=1,n=0;n<this.g.length;n++){var i=this.D(n);t+=(0<=i?i:nC+i)*e,e*=nC}return t},a.toString=function(t){if(2>(t=t||10)||36<t)throw Error("radix out of range: "+t);if(nD(this))return"0";if(nO(this))return"-"+nj(this).toString(t);for(var e=nI(Math.pow(t,6)),n=this,i="";;){var r=nL(n,e).g,s=((0<(n=nk(n,r.R(e))).g.length?n.g[0]:n.h)>>>0).toString(t);if(nD(n=r))return s+i;for(;6>s.length;)s="0"+s;i=s+i}},a.D=function(t){return 0>t?0:t<this.g.length?this.g[t]:this.h},a.X=function(t){return nO(t=nk(this,t))?-1:nD(t)?0:1},a.abs=function(){return nO(this)?nj(this):this},a.add=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],i=0,r=0;r<=e;r++){var s=i+(65535&this.D(r))+(65535&t.D(r)),o=(s>>>16)+(this.D(r)>>>16)+(t.D(r)>>>16);i=o>>>16,s&=65535,o&=65535,n[r]=o<<16|s}return new nw(n,-2147483648&n[n.length-1]?-1:0)},a.R=function(t){if(nD(this)||nD(t))return nT;if(nO(this))return nO(t)?nj(this).R(nj(t)):nj(nj(this).R(t));if(nO(t))return nj(this.R(nj(t)));if(0>this.X(nA)&&0>t.X(nA))return nI(this.ea()*t.ea());for(var e=this.g.length+t.g.length,n=[],i=0;i<2*e;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(var r=0;r<t.g.length;r++){var s=this.D(i)>>>16,o=65535&this.D(i),a=t.D(r)>>>16,h=65535&t.D(r);n[2*i+2*r]+=o*h,nR(n,2*i+2*r),n[2*i+2*r+1]+=s*h,nR(n,2*i+2*r+1),n[2*i+2*r+1]+=o*a,nR(n,2*i+2*r+1),n[2*i+2*r+2]+=s*a,nR(n,2*i+2*r+2)}for(i=0;i<e;i++)n[i]=n[2*i+1]<<16|n[2*i];for(i=e;i<2*e;i++)n[i]=0;return new nw(n,0)},a.gb=function(t){return nL(this,t).h},a.and=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],i=0;i<e;i++)n[i]=this.D(i)&t.D(i);return new nw(n,this.h&t.h)},a.or=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],i=0;i<e;i++)n[i]=this.D(i)|t.D(i);return new nw(n,this.h|t.h)},a.xor=function(t){for(var e=Math.max(this.g.length,t.g.length),n=[],i=0;i<e;i++)n[i]=this.D(i)^t.D(i);return new nw(n,this.h^t.h)},np.prototype.createWebChannel=np.prototype.g,ng.prototype.send=ng.prototype.u,ng.prototype.open=ng.prototype.m,ng.prototype.close=ng.prototype.close,tU.NO_ERROR=0,tU.TIMEOUT=8,tU.HTTP_ERROR=6,t$.COMPLETE="complete",tV.EventType=tW,tW.OPEN="a",tW.CLOSE="b",tW.ERROR="c",tW.MESSAGE="d",tl.prototype.listen=tl.prototype.O,eX.prototype.listenOnce=eX.prototype.P,eX.prototype.getLastError=eX.prototype.Sa,eX.prototype.getLastErrorCode=eX.prototype.Ia,eX.prototype.getStatus=eX.prototype.da,eX.prototype.getResponseJson=eX.prototype.Wa,eX.prototype.getResponseText=eX.prototype.ja,eX.prototype.send=eX.prototype.ha,eX.prototype.setWithCredentials=eX.prototype.Oa,ny.prototype.digest=ny.prototype.l,ny.prototype.reset=ny.prototype.reset,ny.prototype.update=ny.prototype.j,nw.prototype.add=nw.prototype.add,nw.prototype.multiply=nw.prototype.R,nw.prototype.modulo=nw.prototype.gb,nw.prototype.compare=nw.prototype.X,nw.prototype.toNumber=nw.prototype.ea,nw.prototype.toString=nw.prototype.toString,nw.prototype.getBits=nw.prototype.D,nw.fromNumber=nI,nw.fromString=function t(e,n){if(0==e.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==e.charAt(0))return nj(t(e.substring(1),n));if(0<=e.indexOf("-"))throw Error('number format error: interior "-" character');for(var i=nI(Math.pow(n,8)),r=nT,s=0;s<e.length;s+=8){var o=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+o),n);8>o?(o=nI(Math.pow(n,o)),r=r.R(o).add(nI(a))):r=(r=r.R(i)).add(nI(a))}return r};var nx=l.createWebChannelTransport=function(){return new np},nB=l.getStatEventTarget=function(){return tL()},nH=l.ErrorCode=tU,nF=l.EventType=t$,nU=l.Event=tR,n$=l.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20};l.FetchXmlHttpFactory=eP;var nX=l.WebChannel=tV,nz=l.XhrIo=eX,nV=l.Md5=ny,nW=l.Integer=nw},57042:function(t,e,n){e.Z=function(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=function t(e){var n,i,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=t(e[n]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i)}return r}(t))&&(i&&(i+=" "),i+=e);return i}},20994:function(t,e,n){n.d(e,{C6:function(){return i.C6},Mq:function(){return i.Mq},ZF:function(){return i.ZF}});var i=n(63991);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(0,i.KN)("firebase","10.7.1","app")},53085:function(t,e,n){n.d(e,{hJ:function(){return i.X},v0:function(){return i.o},cx:function(){return i.j},rh:function(){return i.c},F6:function(){return i.f},w7:function(){return i.C}});var i=n(57350);n(8745),n(63991),n(56914),n(45538)},24086:function(t,e,n){n.d(e,{ET:function(){return i.ET},ad:function(){return i.ad},cf:function(){return i.cf},hJ:function(){return i.hJ}});var i=n(99978)},62239:function(t,e,n){n.d(e,{$C:function(){return b},V1:function(){return w}});var i,r=n(63991),s=n(8745),o=n(45538);function a(t,e){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=e(t[i]));return n}function h(t){if(null==t)return t;if(t["@type"])switch(t["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":{let e=Number(t.value);if(isNaN(e))throw Error("Data cannot be decoded from JSON: "+t);return e}default:throw Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map(t=>h(t)):"function"==typeof t||"object"==typeof t?a(t,t=>h(t)):t}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let l="functions",u={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class c extends s.ZR{constructor(t,e,n){super(`${l}/${t}`,e||""),this.details=n}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class f{constructor(t,e,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=t.getImmediate({optional:!0}),this.messaging=e.getImmediate({optional:!0}),this.auth||t.get().then(t=>this.auth=t,()=>{}),this.messaging||e.get().then(t=>this.messaging=t,()=>{}),this.appCheck||n.get().then(t=>this.appCheck=t,()=>{})}async getAuthToken(){if(this.auth)try{let t=await this.auth.getToken();return null==t?void 0:t.accessToken}catch(t){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(t){return}}async getAppCheckToken(t){if(this.appCheck){let e=t?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return e.error?null:e.token}return null}async getContext(t){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(t)}}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let p="us-central1";class g{constructor(t,e,n,i,r=p,s){this.app=t,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new f(e,n,i),this.cancelAllRequests=new Promise(t=>{this.deleteService=()=>Promise.resolve(t())});try{let t=new URL(r);this.customDomain=t.origin,this.region=p}catch(t){this.customDomain=null,this.region=r}}_delete(){return this.deleteService()}_url(t){let e=this.app.options.projectId;if(null!==this.emulatorOrigin){let n=this.emulatorOrigin;return`${n}/${e}/${this.region}/${t}`}return null!==this.customDomain?`${this.customDomain}/${t}`:`https://${this.region}-${e}.cloudfunctions.net/${t}`}}async function d(t,e,n,i){let r;n["Content-Type"]="application/json";try{r=await i(t,{method:"POST",body:JSON.stringify(e),headers:n})}catch(t){return{status:0,json:null}}let s=null;try{s=await r.json()}catch(t){}return{status:r.status,json:s}}async function m(t,e,n,i){var r;let s;let o={data:n=function t(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e)||!0===e||!1===e||"[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(e=>t(e));if("function"==typeof e||"object"==typeof e)return a(e,e=>t(e));throw Error("Data cannot be encoded in JSON: "+e)}(n)},l={},f=await t.contextProvider.getContext(i.limitedUseAppCheckTokens);f.authToken&&(l.Authorization="Bearer "+f.authToken),f.messagingToken&&(l["Firebase-Instance-ID-Token"]=f.messagingToken),null!==f.appCheckToken&&(l["X-Firebase-AppCheck"]=f.appCheckToken);let p=(r=i.timeout||7e4,s=null,{promise:new Promise((t,e)=>{s=setTimeout(()=>{e(new c("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{s&&clearTimeout(s)}}),g=await Promise.race([d(e,o,l,t.fetchImpl),p.promise,t.cancelAllRequests]);if(p.cancel(),!g)throw new c("cancelled","Firebase Functions instance was deleted.");let m=function(t,e){let n,i=function(t){if(t>=200&&t<300)return"ok";switch(t){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(t),r=i;try{let t=e&&e.error;if(t){let e=t.status;if("string"==typeof e){if(!u[e])return new c("internal","internal");i=u[e],r=e}let s=t.message;"string"==typeof s&&(r=s),n=t.details,void 0!==n&&(n=h(n))}}catch(t){}return"ok"===i?null:new c(i,r,n)}(g.status,g.json);if(m)throw m;if(!g.json)throw new c("internal","Response is not valid JSON object.");let v=g.json.data;if(void 0===v&&(v=g.json.result),void 0===v)throw new c("internal","Response is missing data field.");return{data:h(v)}}let v="@firebase/functions",y="0.11.0";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function b(t=(0,r.Mq)(),e=p){let n=(0,r.qX)((0,s.m9)(t),l).getImmediate({identifier:e}),i=(0,s.P0)("functions");return i&&function(t,e,n){(0,s.m9)(t).emulatorOrigin=`http://${e}:${n}`}(n,...i),n}function w(t,e,n){var i;return i=(0,s.m9)(t),t=>(function(t,e,n,i){let r=t._url(e);return m(t,r,n,i)})(i,e,t,n||{})}i=fetch.bind(self),(0,r.Xd)(new o.wA(l,(t,{instanceIdentifier:e})=>{let n=t.getProvider("app").getImmediate();return new g(n,t.getProvider("auth-internal"),t.getProvider("messaging-internal"),t.getProvider("app-check-internal"),e,i)},"PUBLIC").setMultipleInstances(!0)),(0,r.KN)(v,y,void 0),(0,r.KN)(v,y,"esm2017")}}]);