{
  "version": 3,
  "sources": ["ssg:https://ga.jspm.io/npm:@firebase/util@1.7.2/dist/index.esm2017.js", "ssg:https://ga.jspm.io/npm:@firebase/component@0.5.20/dist/esm/index.esm2017.js", "ssg:https://ga.jspm.io/npm:@firebase/logger@0.3.3/dist/esm/index.esm2017.js", "ssg:https://ga.jspm.io/npm:idb@7.0.1/build/wrap-idb-value.js", "ssg:https://ga.jspm.io/npm:idb@7.0.1/build/index.js", "ssg:https://ga.jspm.io/npm:@firebase/app@0.8.2/dist/esm/index.esm2017.js", "ssg:https://ga.jspm.io/npm:firebase@9.12.1/app/dist/index.esm.js", "ssg:https://ga.jspm.io/npm:tslib@2.4.0/tslib.es6.js", "ssg:https://ga.jspm.io/npm:@firebase/auth@0.20.10/_/55146e2a.js"],
  "sourcesContent": ["/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst e={NODE_CLIENT:false,NODE_ADMIN:false,SDK_VERSION:\"${JSCORE_VERSION}\"};\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const assert=function(e,t){if(!e)throw assertionError(t)};const assertionError=function(t){return new Error(\"Firebase Database (\"+e.SDK_VERSION+\") INTERNAL ASSERT FAILED: \"+t)};\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const stringToByteArray$1=function(e){const t=[];let r=0;for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o<128)t[r++]=o;else if(o<2048){t[r++]=o>>6|192;t[r++]=63&o|128}else if(55296===(64512&o)&&n+1<e.length&&56320===(64512&e.charCodeAt(n+1))){o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n));t[r++]=o>>18|240;t[r++]=o>>12&63|128;t[r++]=o>>6&63|128;t[r++]=63&o|128}else{t[r++]=o>>12|224;t[r++]=o>>6&63|128;t[r++]=63&o|128}}return t};\n/**\n * Turns an array of numbers into the string given by the concatenation of the\n * characters to which the numbers correspond.\n * @param bytes Array of numbers representing characters.\n * @return Stringification of the array.\n */const byteArrayToString=function(e){const t=[];let r=0,n=0;while(r<e.length){const o=e[r++];if(o<128)t[n++]=String.fromCharCode(o);else if(o>191&&o<224){const s=e[r++];t[n++]=String.fromCharCode((31&o)<<6|63&s)}else if(o>239&&o<365){const s=e[r++];const i=e[r++];const c=e[r++];const a=((7&o)<<18|(63&s)<<12|(63&i)<<6|63&c)-65536;t[n++]=String.fromCharCode(55296+(a>>10));t[n++]=String.fromCharCode(56320+(1023&a))}else{const s=e[r++];const i=e[r++];t[n++]=String.fromCharCode((15&o)<<12|(63&s)<<6|63&i)}}return t.join(\"\")};const t={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,\n/**\n     * Base64-encode an array of bytes.\n     *\n     * @param input An array of bytes (numbers with\n     *     value in [0, 255]) to encode.\n     * @param webSafe Boolean indicating we should use the\n     *     alternative alphabet.\n     * @return The base64 encoded string.\n     */\nencodeByteArray(e,t){if(!Array.isArray(e))throw Error(\"encodeByteArray takes an array as a parameter\");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_;const n=[];for(let t=0;t<e.length;t+=3){const o=e[t];const s=t+1<e.length;const i=s?e[t+1]:0;const c=t+2<e.length;const a=c?e[t+2]:0;const h=o>>2;const l=(3&o)<<4|i>>4;let u=(15&i)<<2|a>>6;let f=63&a;if(!c){f=64;s||(u=64)}n.push(r[h],r[l],r[u],r[f])}return n.join(\"\")},\n/**\n     * Base64-encode a string.\n     *\n     * @param input A string to encode.\n     * @param webSafe If true, we should use the\n     *     alternative alphabet.\n     * @return The base64 encoded string.\n     */\nencodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(stringToByteArray$1(e),t)},\n/**\n     * Base64-decode a string.\n     *\n     * @param input to decode.\n     * @param webSafe True if we should use the\n     *     alternative alphabet.\n     * @return string representing the decoded value.\n     */\ndecodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):byteArrayToString(this.decodeStringToByteArray(e,t))},\n/**\n     * Base64-decode a string.\n     *\n     * In base-64 decoding, groups of four characters are converted into three\n     * bytes.  If the encoder did not apply padding, the input length may not\n     * be a multiple of 4.\n     *\n     * In this case, the last group will have fewer than 4 characters, and\n     * padding will be inferred.  If the group has one or two characters, it decodes\n     * to one byte.  If the group has three characters, it decodes to two bytes.\n     *\n     * @param input Input to decode.\n     * @param webSafe True if we should use the web-safe alphabet.\n     * @return bytes representing the decoded value.\n     */\ndecodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_;const n=[];for(let t=0;t<e.length;){const o=r[e.charAt(t++)];const s=t<e.length;const i=s?r[e.charAt(t)]:0;++t;const c=t<e.length;const a=c?r[e.charAt(t)]:64;++t;const h=t<e.length;const l=h?r[e.charAt(t)]:64;++t;if(null==o||null==i||null==a||null==l)throw Error();const u=o<<2|i>>4;n.push(u);if(64!==a){const e=i<<4&240|a>>2;n.push(e);if(64!==l){const e=a<<6&192|l;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={};this.charToByteMap_={};this.byteToCharMapWebSafe_={};this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++){this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e);this.charToByteMap_[this.byteToCharMap_[e]]=e;this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e);this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e;if(e>=this.ENCODED_VALS_BASE.length){this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e;this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e}}}}};const base64Encode=function(e){const r=stringToByteArray$1(e);return t.encodeByteArray(r,true)};const base64urlEncodeWithoutPadding=function(e){return base64Encode(e).replace(/\\./g,\"\")};\n/**\n * URL-safe base64 decoding\n *\n * NOTE: DO NOT use the global atob() function - it does NOT support the\n * base64Url variant encoding.\n *\n * @param str To be decoded\n * @return Decoded result, if possible\n */const base64Decode=function(e){try{return t.decodeString(e,true)}catch(e){console.error(\"base64Decode failed: \",e)}return null};\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function deepCopy(e){return deepExtend(void 0,e)}function deepExtend(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:const r=t;return new Date(r.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const r in t)t.hasOwnProperty(r)&&isValidKey(r)&&(e[r]=deepExtend(e[r],t[r]));return e}function isValidKey(e){return\"__proto__\"!==e}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function getUA(){return\"undefined\"!==typeof navigator&&\"string\"===typeof navigator.userAgent?navigator.userAgent:\"\"}function isMobileCordova(){return\"undefined\"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isNode(){try{return\"[object process]\"===Object.prototype.toString.call(global.process)}catch(e){return false}}function isBrowser(){return\"object\"===typeof self&&self.self===self}function isBrowserExtension(){const e=\"object\"===typeof chrome?chrome.runtime:\"object\"===typeof browser?browser.runtime:void 0;return\"object\"===typeof e&&void 0!==e.id}function isReactNative(){return\"object\"===typeof navigator&&\"ReactNative\"===navigator.product}function isElectron(){return getUA().indexOf(\"Electron/\")>=0}function isIE(){const e=getUA();return e.indexOf(\"MSIE \")>=0||e.indexOf(\"Trident/\")>=0}function isUWP(){return getUA().indexOf(\"MSAppHost/\")>=0}function isNodeSdk(){return true===e.NODE_CLIENT||true===e.NODE_ADMIN}function isSafari(){return!isNode()&&navigator.userAgent.includes(\"Safari\")&&!navigator.userAgent.includes(\"Chrome\")}function isIndexedDBAvailable(){return\"object\"===typeof indexedDB}function validateIndexedDBOpenable(){return new Promise(((e,t)=>{try{let r=true;const n=\"validate-browser-context-for-indexeddb-analytics-module\";const o=self.indexedDB.open(n);o.onsuccess=()=>{o.result.close();r||self.indexedDB.deleteDatabase(n);e(true)};o.onupgradeneeded=()=>{r=false};o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||\"\")}}catch(e){t(e)}}))}function areCookiesEnabled(){return!(\"undefined\"===typeof navigator||!navigator.cookieEnabled)}\n/**\n * Polyfill for `globalThis` object.\n * @returns the `globalThis` object for the given environment.\n */function getGlobal(){if(\"undefined\"!==typeof self)return self;if(\"undefined\"!==typeof window)return window;if(\"undefined\"!==typeof global)return global;throw new Error(\"Unable to locate global object.\")}\n/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const getDefaultsFromGlobal=()=>getGlobal().__FIREBASE_DEFAULTS__;const getDefaultsFromEnvVariable=()=>{if(\"undefined\"===typeof process||\"undefined\"===typeof process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0};const getDefaultsFromCookie=()=>{if(\"undefined\"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&base64Decode(e[1]);return t&&JSON.parse(t)};const getDefaults=()=>{try{return getDefaultsFromGlobal()||getDefaultsFromEnvVariable()||getDefaultsFromCookie()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}};\n/**\n * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object\n * for the given product.\n * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available\n * @public\n */const getDefaultEmulatorHost=e=>{var t,r;return null===(r=null===(t=getDefaults())||void 0===t?void 0:t.emulatorHosts)||void 0===r?void 0:r[e]};\n/**\n * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object\n * for the given product.\n * @returns a pair of hostname and port like `[\"::1\", 4000]` if available\n * @public\n */const getDefaultEmulatorHostnameAndPort=e=>{const t=getDefaultEmulatorHost(e);if(!t)return;const r=t.lastIndexOf(\":\");if(r<=0||r+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const n=parseInt(t.substring(r+1),10);return\"[\"===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]};const getDefaultAppConfig=()=>{var e;return null===(e=getDefaults())||void 0===e?void 0:e.config};const getExperimentalSetting=e=>{var t;return null===(t=getDefaults())||void 0===t?void 0:t[`_${e}`]};\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Deferred{constructor(){this.reject=()=>{};this.resolve=()=>{};this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}))}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r);if(\"function\"===typeof e){this.promise.catch((()=>{}));1===e.length?e(t):e(t,r)}}}}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function createMockUserToken(e,t){if(e.uid)throw new Error('The \"uid\" field is no longer supported by mockUserToken. Please use \"sub\" instead for Firebase Auth User ID.');const r={alg:\"none\",type:\"JWT\"};const n=t||\"demo-project\";const o=e.iat||0;const s=e.sub||e.user_id;if(!s)throw new Error(\"mockUserToken must contain 'sub' or 'user_id' field!\");const i=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:o,exp:o+3600,auth_time:o,sub:s,user_id:s,firebase:{sign_in_provider:\"custom\",identities:{}}},e);const c=\"\";return[base64urlEncodeWithoutPadding(JSON.stringify(r)),base64urlEncodeWithoutPadding(JSON.stringify(i)),c].join(\".\")}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const r=\"FirebaseError\";class FirebaseError extends Error{constructor(e,t,n){super(t);this.code=e;this.customData=n;this.name=r;Object.setPrototypeOf(this,FirebaseError.prototype);Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(e,t,r){this.service=e;this.serviceName=t;this.errors=r}create(e,...t){const r=t[0]||{};const n=`${this.service}/${e}`;const o=this.errors[e];const s=o?replaceTemplate(o,r):\"Error\";const i=`${this.serviceName}: ${s} (${n}).`;const c=new FirebaseError(n,i,r);return c}}function replaceTemplate(e,t){return e.replace(n,((e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`}))}const n=/\\{\\$([^}]+)}/g;\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Evaluates a JSON string into a javascript object.\n *\n * @param {string} str A string containing JSON.\n * @return {*} The javascript object representing the specified JSON.\n */function jsonEval(e){return JSON.parse(e)}\n/**\n * Returns JSON representing a javascript object.\n * @param {*} data Javascript object to be stringified.\n * @return {string} The JSON contents of the object.\n */function stringify(e){return JSON.stringify(e)}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const decode=function(e){let t={},r={},n={},o=\"\";try{const s=e.split(\".\");t=jsonEval(base64Decode(s[0])||\"\");r=jsonEval(base64Decode(s[1])||\"\");o=s[2];n=r.d||{};delete r.d}catch(e){}return{header:t,claims:r,data:n,signature:o}};const isValidTimestamp=function(e){const t=decode(e).claims;const r=Math.floor((new Date).getTime()/1e3);let n=0,o=0;if(\"object\"===typeof t){t.hasOwnProperty(\"nbf\")?n=t.nbf:t.hasOwnProperty(\"iat\")&&(n=t.iat);o=t.hasOwnProperty(\"exp\")?t.exp:n+86400}return!!r&&!!n&&!!o&&r>=n&&r<=o};const issuedAtTime=function(e){const t=decode(e).claims;return\"object\"===typeof t&&t.hasOwnProperty(\"iat\")?t.iat:null};const isValidFormat=function(e){const t=decode(e),r=t.claims;return!!r&&\"object\"===typeof r&&r.hasOwnProperty(\"iat\")};const isAdmin=function(e){const t=decode(e).claims;return\"object\"===typeof t&&true===t.admin};\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function contains(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function safeGet(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function isEmpty(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return false;return true}function map(e,t,r){const n={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t.call(r,e[o],o,e));return n}function deepEqual(e,t){if(e===t)return true;const r=Object.keys(e);const n=Object.keys(t);for(const o of r){if(!n.includes(o))return false;const r=e[o];const s=t[o];if(isObject(r)&&isObject(s)){if(!deepEqual(r,s))return false}else if(r!==s)return false}for(const e of n)if(!r.includes(e))return false;return true}function isObject(e){return null!==e&&\"object\"===typeof e}\n/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function promiseWithTimeout(e,t=2e3){const r=new Deferred;setTimeout((()=>r.reject(\"timeout!\")),t);e.then(r.resolve,r.reject);return r.promise}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function querystring(e){const t=[];for(const[r,n]of Object.entries(e))Array.isArray(n)?n.forEach((e=>{t.push(encodeURIComponent(r)+\"=\"+encodeURIComponent(e))})):t.push(encodeURIComponent(r)+\"=\"+encodeURIComponent(n));return t.length?\"&\"+t.join(\"&\"):\"\"}function querystringDecode(e){const t={};const r=e.replace(/^\\?/,\"\").split(\"&\");r.forEach((e=>{if(e){const[r,n]=e.split(\"=\");t[decodeURIComponent(r)]=decodeURIComponent(n)}}));return t}function extractQuerystring(e){const t=e.indexOf(\"?\");if(!t)return\"\";const r=e.indexOf(\"#\",t);return e.substring(t,r>0?r:void 0)}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Sha1{constructor(){this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.inbuf_=0;this.total_=0;this.blockSize=64;this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.inbuf_=0;this.total_=0}\n/**\n     * Internal compress helper function.\n     * @param buf Block to compress.\n     * @param offset Offset of the block in the buffer.\n     * @private\n     */compress_(e,t){t||(t=0);const r=this.W_;if(\"string\"===typeof e)for(let n=0;n<16;n++){r[n]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3);t+=4}else for(let n=0;n<16;n++){r[n]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];t+=4}for(let e=16;e<80;e++){const t=r[e-3]^r[e-8]^r[e-14]^r[e-16];r[e]=4294967295&(t<<1|t>>>31)}let n=this.chain_[0];let o=this.chain_[1];let s=this.chain_[2];let i=this.chain_[3];let c=this.chain_[4];let a,h;for(let e=0;e<80;e++){if(e<40)if(e<20){a=i^o&(s^i);h=1518500249}else{a=o^s^i;h=1859775393}else if(e<60){a=o&s|i&(o|s);h=2400959708}else{a=o^s^i;h=3395469782}const t=(n<<5|n>>>27)+a+c+h+r[e]&4294967295;c=i;i=s;s=4294967295&(o<<30|o>>>2);o=n;n=t}this.chain_[0]=this.chain_[0]+n&4294967295;this.chain_[1]=this.chain_[1]+o&4294967295;this.chain_[2]=this.chain_[2]+s&4294967295;this.chain_[3]=this.chain_[3]+i&4294967295;this.chain_[4]=this.chain_[4]+c&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const r=t-this.blockSize;let n=0;const o=this.buf_;let s=this.inbuf_;while(n<t){if(0===s)while(n<=r){this.compress_(e,n);n+=this.blockSize}if(\"string\"===typeof e)while(n<t){o[s]=e.charCodeAt(n);++s;++n;if(s===this.blockSize){this.compress_(o);s=0;break}}else while(n<t){o[s]=e[n];++s;++n;if(s===this.blockSize){this.compress_(o);s=0;break}}}this.inbuf_=s;this.total_+=t}digest(){const e=[];let t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let e=this.blockSize-1;e>=56;e--){this.buf_[e]=255&t;t/=256}this.compress_(this.buf_);let r=0;for(let t=0;t<5;t++)for(let n=24;n>=0;n-=8){e[r]=this.chain_[t]>>n&255;++r}return e}}\n/**\n * Helper to make a Subscribe function (just like Promise helps make a\n * Thenable).\n *\n * @param executor Function which can make calls to a single Observer\n *     as a proxy.\n * @param onNoObservers Callback when count of Observers goes to zero.\n */function createSubscribe(e,t){const r=new ObserverProxy(e,t);return r.subscribe.bind(r)}class ObserverProxy{\n/**\n     * @param executor Function which can make calls to a single Observer\n     *     as a proxy.\n     * @param onNoObservers Callback when count of Observers goes to zero.\n     */\nconstructor(e,t){this.observers=[];this.unsubscribes=[];this.observerCount=0;this.task=Promise.resolve();this.finalized=false;this.onNoObservers=t;this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)}));this.close(e)}complete(){this.forEachObserver((e=>{e.complete()}));this.close()}subscribe(e,t,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw new Error(\"Missing Observer.\");n=implementsAnyMethods(e,[\"next\",\"error\",\"complete\"])?e:{next:e,error:t,complete:r};void 0===n.next&&(n.next=noop);void 0===n.error&&(n.error=noop);void 0===n.complete&&(n.complete=noop);const o=this.unsubscribeOne.bind(this,this.observers.length);this.finalized&&this.task.then((()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}));this.observers.push(n);return o}unsubscribeOne(e){if(void 0!==this.observers&&void 0!==this.observers[e]){delete this.observers[e];this.observerCount-=1;0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this)}}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){\"undefined\"!==typeof console&&console.error&&console.error(e)}}))}close(e){if(!this.finalized){this.finalized=true;void 0!==e&&(this.finalError=e);this.task.then((()=>{this.observers=void 0;this.onNoObservers=void 0}))}}}function async(e,t){return(...r)=>{Promise.resolve(true).then((()=>{e(...r)})).catch((e=>{t&&t(e)}))}}function implementsAnyMethods(e,t){if(\"object\"!==typeof e||null===e)return false;for(const r of t)if(r in e&&\"function\"===typeof e[r])return true;return false}function noop(){}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Check to make sure the appropriate number of arguments are provided for a public function.\n * Throws an error if it fails.\n *\n * @param fnName The function name\n * @param minCount The minimum number of arguments to allow for the function call\n * @param maxCount The maximum number of argument to allow for the function call\n * @param argCount The actual number of arguments provided.\n */const validateArgCount=function(e,t,r,n){let o;n<t?o=\"at least \"+t:n>r&&(o=0===r?\"none\":\"no more than \"+r);if(o){const t=e+\" failed: Was called with \"+n+(1===n?\" argument.\":\" arguments.\")+\" Expects \"+o+\".\";throw new Error(t)}};\n/**\n * Generates a string to prefix an error message about failed argument validation\n *\n * @param fnName The function name\n * @param argName The name of the argument\n * @return The prefix to add to the error thrown for validation.\n */function errorPrefix(e,t){return`${e} failed: ${t} argument `}\n/**\n * @param fnName\n * @param argumentNumber\n * @param namespace\n * @param optional\n */function validateNamespace(e,t,r){if((!r||t)&&\"string\"!==typeof t)throw new Error(errorPrefix(e,\"namespace\")+\"must be a valid firebase namespace.\")}function validateCallback(e,t,r,n){if((!n||r)&&\"function\"!==typeof r)throw new Error(errorPrefix(e,t)+\"must be a valid function.\")}function validateContextObject(e,t,r,n){if((!n||r)&&(\"object\"!==typeof r||null===r))throw new Error(errorPrefix(e,t)+\"must be a valid context object.\")}\n/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @param {string} str\n * @return {Array}\n */const stringToByteArray=function(e){const t=[];let r=0;for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o>=55296&&o<=56319){const t=o-55296;n++;assert(n<e.length,\"Surrogate pair missing trail surrogate.\");const r=e.charCodeAt(n)-56320;o=65536+(t<<10)+r}if(o<128)t[r++]=o;else if(o<2048){t[r++]=o>>6|192;t[r++]=63&o|128}else if(o<65536){t[r++]=o>>12|224;t[r++]=o>>6&63|128;t[r++]=63&o|128}else{t[r++]=o>>18|240;t[r++]=o>>12&63|128;t[r++]=o>>6&63|128;t[r++]=63&o|128}}return t};\n/**\n * Calculate length without actually converting; useful for doing cheaper validation.\n * @param {string} str\n * @return {number}\n */const stringLength=function(e){let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(n<128)t++;else if(n<2048)t+=2;else if(n>=55296&&n<=56319){t+=4;r++}else t+=3}return t};\n/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const uuidv4=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(e=>{const t=16*Math.random()|0,r=\"x\"===e?t:3&t|8;return r.toString(16)}))};\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const o=1e3;const s=2;const i=144e5;const c=.5;function calculateBackoffMillis(e,t=o,r=s){const n=t*Math.pow(r,e);const a=Math.round(c*n*(Math.random()-.5)*2);return Math.min(i,n+a)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function ordinal(e){return Number.isFinite(e)?e+indicator(e):`${e}`}function indicator(e){e=Math.abs(e);const t=e%100;if(t>=10&&t<=20)return\"th\";const r=e%10;return 1===r?\"st\":2===r?\"nd\":3===r?\"rd\":\"th\"}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function getModularInstance(e){return e&&e._delegate?e._delegate:e}export{e as CONSTANTS,Deferred,ErrorFactory,FirebaseError,i as MAX_VALUE_MILLIS,c as RANDOM_FACTOR,Sha1,areCookiesEnabled,assert,assertionError,async,t as base64,base64Decode,base64Encode,base64urlEncodeWithoutPadding,calculateBackoffMillis,contains,createMockUserToken,createSubscribe,decode,deepCopy,deepEqual,deepExtend,errorPrefix,extractQuerystring,getDefaultAppConfig,getDefaultEmulatorHost,getDefaultEmulatorHostnameAndPort,getExperimentalSetting,getGlobal,getModularInstance,getUA,isAdmin,isBrowser,isBrowserExtension,isElectron,isEmpty,isIE,isIndexedDBAvailable,isMobileCordova,isNode,isNodeSdk,isReactNative,isSafari,isUWP,isValidFormat,isValidTimestamp,issuedAtTime,jsonEval,map,ordinal,promiseWithTimeout,querystring,querystringDecode,safeGet,stringLength,stringToByteArray,stringify,uuidv4,validateArgCount,validateCallback,validateContextObject,validateIndexedDBOpenable,validateNamespace};\n\n//# sourceMappingURL=index.esm2017.js.map", "import{Deferred as t}from\"@firebase/util\";class Component{\n/**\n     *\n     * @param name The public service name, e.g. app, auth, firestore, database\n     * @param instanceFactory Service factory responsible for creating the public interface\n     * @param type whether the service provided by the component is public or private\n     */\nconstructor(t,e,n){this.name=t;this.instanceFactory=e;this.type=n;this.multipleInstances=false;this.serviceProps={};this.instantiationMode=\"LAZY\";this.onInstanceCreated=null}setInstantiationMode(t){this.instantiationMode=t;return this}setMultipleInstances(t){this.multipleInstances=t;return this}setServiceProps(t){this.serviceProps=t;return this}setInstanceCreatedCallback(t){this.onInstanceCreated=t;return this}}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const e=\"[DEFAULT]\";\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Provider{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}\n/**\n     * @param identifier A provider can provide mulitple instances of a service\n     * if this.component.multipleInstances is true.\n     */get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const e=new t;this.instancesDeferred.set(n,e);if(this.isInitialized(n)||this.shouldAutoInitialize())try{const t=this.getOrInitializeService({instanceIdentifier:n});t&&e.resolve(t)}catch(t){}}return this.instancesDeferred.get(n).promise}getImmediate(t){var e;const n=this.normalizeInstanceIdentifier(null===t||void 0===t?void 0:t.identifier);const i=null!==(e=null===t||void 0===t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(t){if(i)return null;throw t}}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`);this.component=t;if(this.shouldAutoInitialize()){if(isComponentEager(t))try{this.getOrInitializeService({instanceIdentifier:e})}catch(t){}for(const[t,e]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(t);try{const t=this.getOrInitializeService({instanceIdentifier:n});e.resolve(t)}catch(t){}}}}clearInstance(t=e){this.instancesDeferred.delete(t);this.instancesOptions.delete(t);this.instances.delete(t)}async delete(){const 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=e){return this.instances.has(t)}getOptions(t=e){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:e={}}=t;const 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`);const i=this.getOrInitializeService({instanceIdentifier:n,options:e});for(const[t,e]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(t);n===s&&e.resolve(i)}return i}\n/**\n     *\n     * @param callback - a function that will be invoked  after the provider has been initialized by calling provider.initialize().\n     * The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.\n     *\n     * @param identifier An optional instance identifier\n     * @returns a function to unregister the callback\n     */onInit(t,e){var n;const i=this.normalizeInstanceIdentifier(e);const s=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;s.add(t);this.onInitCallbacks.set(i,s);const r=this.instances.get(i);r&&t(r,i);return()=>{s.delete(t)}}\n/**\n     * Invoke onInit callbacks synchronously\n     * @param instance the service instance`\n     */invokeOnInitCallbacks(t,e){const n=this.onInitCallbacks.get(e);if(n)for(const 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:normalizeIdentifierForFactory(t),options:e});this.instances.set(t,n);this.instancesOptions.set(t,e);this.invokeOnInitCallbacks(n,t);if(this.component.onInstanceCreated)try{this.component.onInstanceCreated(this.container,t,n)}catch(t){}}return n||null}normalizeInstanceIdentifier(t=e){return this.component?this.component.multipleInstances?t:e:t}shouldAutoInitialize(){return!!this.component&&\"EXPLICIT\"!==this.component.instantiationMode}}function normalizeIdentifierForFactory(t){return t===e?void 0:t}function isComponentEager(t){return\"EAGER\"===t.instantiationMode}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class ComponentContainer{constructor(t){this.name=t;this.providers=new Map}\n/**\n     *\n     * @param component Component being added\n     * @param overwrite When a component with the same name has already been registered,\n     * if overwrite is true: overwrite the existing component with the new component and create a new\n     * provider with the new component. It can be useful in tests where you want to use different mocks\n     * for different tests.\n     * if overwrite is false: throw an exception\n     */addComponent(t){const e=this.getProvider(t.name);if(e.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){const e=this.getProvider(t.name);e.isComponentSet()&&this.providers.delete(t.name);this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const e=new Provider(t,this);this.providers.set(t,e);return e}getProviders(){return Array.from(this.providers.values())}}export{Component,ComponentContainer,Provider};\n\n//# sourceMappingURL=index.esm2017.js.map", "/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nconst e=[];var r;(function(e){e[e.DEBUG=0]=\"DEBUG\";e[e.VERBOSE=1]=\"VERBOSE\";e[e.INFO=2]=\"INFO\";e[e.WARN=3]=\"WARN\";e[e.ERROR=4]=\"ERROR\";e[e.SILENT=5]=\"SILENT\"})(r||(r={}));const t={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT};const o=r.INFO;const l={[r.DEBUG]:\"log\",[r.VERBOSE]:\"log\",[r.INFO]:\"info\",[r.WARN]:\"warn\",[r.ERROR]:\"error\"};const defaultLogHandler=(e,r,...t)=>{if(r<e.logLevel)return;const o=(new Date).toISOString();const n=l[r];if(!n)throw new Error(`Attempted to log a message with an invalid logType (value: ${r})`);console[n](`[${o}]  ${e.name}:`,...t)};class Logger{\n/**\n     * Gives you an instance of a Logger to capture messages according to\n     * Firebase's logging scheme.\n     *\n     * @param name The name that the logs will be associated with\n     */\nconstructor(r){this.name=r;this._logLevel=o;this._logHandler=defaultLogHandler;this._userLogHandler=null;e.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))throw new TypeError(`Invalid value \"${e}\" assigned to \\`logLevel\\``);this._logLevel=e}setLogLevel(e){this._logLevel=\"string\"===typeof e?t[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(\"function\"!==typeof e)throw new TypeError(\"Value assigned to `logHandler` must be a function\");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,r.DEBUG,...e);this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e);this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e);this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e);this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e);this._logHandler(this,r.ERROR,...e)}}function setLogLevel(r){e.forEach((e=>{e.setLogLevel(r)}))}function setUserLogHandler(o,l){for(const n of e){let e=null;l&&l.level&&(e=t[l.level]);n.userLogHandler=null===o?null:(t,l,...n)=>{const s=n.map((e=>{if(null==e)return null;if(\"string\"===typeof e)return e;if(\"number\"===typeof e||\"boolean\"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(\" \");l>=(null!==e&&void 0!==e?e:t.logLevel)&&o({level:r[l].toLowerCase(),message:s,args:n,type:t.name})}}}export{r as LogLevel,Logger,setLogLevel,setUserLogHandler};\n\n//# sourceMappingURL=index.esm2017.js.map", "const instanceOfAny=(e,t)=>t.some((t=>e instanceof t));let e;let t;function getIdbProxyableTypes(){return e||(e=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function getCursorAdvanceMethods(){return t||(t=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const r=new WeakMap;const n=new WeakMap;const o=new WeakMap;const s=new WeakMap;const a=new WeakMap;function promisifyRequest(e){const t=new Promise(((t,r)=>{const unlisten=()=>{e.removeEventListener(\"success\",success);e.removeEventListener(\"error\",error)};const success=()=>{t(wrap(e.result));unlisten()};const error=()=>{r(e.error);unlisten()};e.addEventListener(\"success\",success);e.addEventListener(\"error\",error)}));t.then((t=>{t instanceof IDBCursor&&r.set(t,e)})).catch((()=>{}));a.set(t,e);return t}function cacheDonePromiseForTransaction(e){if(n.has(e))return;const t=new Promise(((t,r)=>{const unlisten=()=>{e.removeEventListener(\"complete\",complete);e.removeEventListener(\"error\",error);e.removeEventListener(\"abort\",error)};const complete=()=>{t();unlisten()};const error=()=>{r(e.error||new DOMException(\"AbortError\",\"AbortError\"));unlisten()};e.addEventListener(\"complete\",complete);e.addEventListener(\"error\",error);e.addEventListener(\"abort\",error)}));n.set(e,t)}let c={get(e,t,r){if(e instanceof IDBTransaction){if(\"done\"===t)return n.get(e);if(\"objectStoreNames\"===t)return e.objectStoreNames||o.get(e);if(\"store\"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wrap(e[t])},set(e,t,r){e[t]=r;return true},has(e,t){return e instanceof IDBTransaction&&(\"done\"===t||\"store\"===t)||t in e}};function replaceTraps(e){c=e(c)}function wrapFunction(e){return e!==IDBDatabase.prototype.transaction||\"objectStoreNames\"in IDBTransaction.prototype?getCursorAdvanceMethods().includes(e)?function(...t){e.apply(unwrap(this),t);return wrap(r.get(this))}:function(...t){return wrap(e.apply(unwrap(this),t))}:function(t,...r){const n=e.call(unwrap(this),t,...r);o.set(n,t.sort?t.sort():[t]);return wrap(n)}}function transformCachableValue(e){if(\"function\"===typeof e)return wrapFunction(e);e instanceof IDBTransaction&&cacheDonePromiseForTransaction(e);return instanceOfAny(e,getIdbProxyableTypes())?new Proxy(e,c):e}function wrap(e){if(e instanceof IDBRequest)return promisifyRequest(e);if(s.has(e))return s.get(e);const t=transformCachableValue(e);if(t!==e){s.set(e,t);a.set(t,e)}return t}const unwrap=e=>a.get(e);export{a,instanceOfAny as i,replaceTraps as r,unwrap as u,wrap as w};\n\n//# sourceMappingURL=wrap-idb-value.js.map", "import{w as e,r as t}from\"./wrap-idb-value.js\";export{u as unwrap,w as wrap}from\"./wrap-idb-value.js\";\n/**\n * Open a database.\n *\n * @param name Name of the database.\n * @param version Schema version.\n * @param callbacks Additional callbacks.\n */function openDB(t,n,{blocked:o,upgrade:r,blocking:s,terminated:a}={}){const d=indexedDB.open(t,n);const i=e(d);r&&d.addEventListener(\"upgradeneeded\",(t=>{r(e(d.result),t.oldVersion,t.newVersion,e(d.transaction))}));o&&d.addEventListener(\"blocked\",(()=>o()));i.then((e=>{a&&e.addEventListener(\"close\",(()=>a()));s&&e.addEventListener(\"versionchange\",(()=>s()))})).catch((()=>{}));return i}\n/**\n * Delete a database.\n *\n * @param name Name of the database.\n */function deleteDB(t,{blocked:n}={}){const o=indexedDB.deleteDatabase(t);n&&o.addEventListener(\"blocked\",(()=>n()));return e(o).then((()=>{}))}const n=[\"get\",\"getKey\",\"getAll\",\"getAllKeys\",\"count\"];const o=[\"put\",\"add\",\"delete\",\"clear\"];const r=new Map;function getMethod(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&\"string\"===typeof t))return;if(r.get(t))return r.get(t);const s=t.replace(/FromIndex$/,\"\");const a=t!==s;const d=o.includes(s);if(!(s in(a?IDBIndex:IDBObjectStore).prototype)||!(d||n.includes(s)))return;const method=async function(e,...t){const n=this.transaction(e,d?\"readwrite\":\"readonly\");let o=n.store;a&&(o=o.index(t.shift()));return(await Promise.all([o[s](...t),d&&n.done]))[0]};r.set(t,method);return method}t((e=>({...e,get:(t,n,o)=>getMethod(t,n)||e.get(t,n,o),has:(t,n)=>!!getMethod(t,n)||e.has(t,n)})));export{deleteDB,openDB};\n\n//# sourceMappingURL=index.js.map", "import{Component as e,ComponentContainer as t}from\"@firebase/component\";import{Logger as a,setUserLogHandler as r,setLogLevel as n}from\"@firebase/logger\";import{ErrorFactory as s,getDefaultAppConfig as i,deepEqual as o,FirebaseError as c,base64urlEncodeWithoutPadding as p,isIndexedDBAvailable as h,validateIndexedDBOpenable as l}from\"@firebase/util\";export{FirebaseError}from\"@firebase/util\";import{openDB as f}from\"idb\";\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class PlatformLoggerServiceImpl{constructor(e){this.container=e}getPlatformInfoString(){const e=this.container.getProviders();return e.map((e=>{if(isVersionServiceProvider(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(\" \")}}\n/**\n *\n * @param provider check if this provider provides a VersionService\n *\n * NOTE: Using Provider<'app-version'> is a hack to indicate that the provider\n * provides VersionService. The provider is not necessarily a 'app-version'\n * provider.\n */function isVersionServiceProvider(e){const t=e.getComponent();return\"VERSION\"===(null===t||void 0===t?void 0:t.type)}const d=\"@firebase/app\";const m=\"0.8.2\";\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const g=new a(\"@firebase/app\");const b=\"@firebase/app-compat\";const u=\"@firebase/analytics-compat\";const w=\"@firebase/analytics\";const _=\"@firebase/app-check-compat\";const v=\"@firebase/app-check\";const C=\"@firebase/auth\";const D=\"@firebase/auth-compat\";const y=\"@firebase/database\";const I=\"@firebase/database-compat\";const S=\"@firebase/functions\";const E=\"@firebase/functions-compat\";const P=\"@firebase/installations\";const A=\"@firebase/installations-compat\";const H=\"@firebase/messaging\";const $=\"@firebase/messaging-compat\";const x=\"@firebase/performance\";const O=\"@firebase/performance-compat\";const B=\"@firebase/remote-config\";const F=\"@firebase/remote-config-compat\";const N=\"@firebase/storage\";const k=\"@firebase/storage-compat\";const L=\"@firebase/firestore\";const T=\"@firebase/firestore-compat\";const j=\"firebase\";const U=\"9.12.1\";\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const V=\"[DEFAULT]\";const M={[d]:\"fire-core\",[b]:\"fire-core-compat\",[w]:\"fire-analytics\",[u]:\"fire-analytics-compat\",[v]:\"fire-app-check\",[_]:\"fire-app-check-compat\",[C]:\"fire-auth\",[D]:\"fire-auth-compat\",[y]:\"fire-rtdb\",[I]:\"fire-rtdb-compat\",[S]:\"fire-fn\",[E]:\"fire-fn-compat\",[P]:\"fire-iid\",[A]:\"fire-iid-compat\",[H]:\"fire-fcm\",[$]:\"fire-fcm-compat\",[x]:\"fire-perf\",[O]:\"fire-perf-compat\",[B]:\"fire-rc\",[F]:\"fire-rc-compat\",[N]:\"fire-gcs\",[k]:\"fire-gcs-compat\",[L]:\"fire-fst\",[T]:\"fire-fst-compat\",\"fire-js\":\"fire-js\",[j]:\"fire-js-all\"};\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const R=new Map;const z=new Map;\n/**\n * @param component - the component being added to this app's container\n *\n * @internal\n */function _addComponent(e,t){try{e.container.addComponent(t)}catch(a){g.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,a)}}function _addOrOverwriteComponent(e,t){e.container.addOrOverwriteComponent(t)}\n/**\n *\n * @param component - the component to register\n * @returns whether or not the component is registered successfully\n *\n * @internal\n */function _registerComponent(e){const t=e.name;if(z.has(t)){g.debug(`There were multiple attempts to register component ${t}.`);return false}z.set(t,e);for(const t of R.values())_addComponent(t,e);return true}\n/**\n *\n * @param app - FirebaseApp instance\n * @param name - service name\n *\n * @returns the provider for the service with the matching name\n *\n * @internal\n */function _getProvider(e,t){const a=e.container.getProvider(\"heartbeat\").getImmediate({optional:true});a&&void a.triggerHeartbeat();return e.container.getProvider(t)}\n/**\n *\n * @param app - FirebaseApp instance\n * @param name - service name\n * @param instanceIdentifier - service instance identifier in case the service supports multiple instances\n *\n * @internal\n */function _removeServiceInstance(e,t,a=V){_getProvider(e,t).clearInstance(a)}function _clearComponents(){z.clear()}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const K={\"no-app\":\"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()\",\"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}.\"};const J=new s(\"app\",\"Firebase\",K);\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class FirebaseAppImpl{constructor(t,a,r){this._isDeleted=false;this._options=Object.assign({},t);this._config=Object.assign({},a);this._name=a.name;this._automaticDataCollectionEnabled=a.automaticDataCollectionEnabled;this._container=r;this.container.addComponent(new e(\"app\",(()=>this),\"PUBLIC\"))}get automaticDataCollectionEnabled(){this.checkDestroyed();return this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed();this._automaticDataCollectionEnabled=e}get name(){this.checkDestroyed();return this._name}get options(){this.checkDestroyed();return this._options}get config(){this.checkDestroyed();return this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw J.create(\"app-deleted\",{appName:this._name})}}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const Y=U;function initializeApp(e,a={}){let r=e;if(\"object\"!==typeof a){const e=a;a={name:e}}const n=Object.assign({name:V,automaticDataCollectionEnabled:false},a);const s=n.name;if(\"string\"!==typeof s||!s)throw J.create(\"bad-app-name\",{appName:String(s)});r||(r=i());if(!r)throw J.create(\"no-options\");const c=R.get(s);if(c){if(o(r,c.options)&&o(n,c.config))return c;throw J.create(\"duplicate-app\",{appName:s})}const p=new t(s);for(const e of z.values())p.addComponent(e);const h=new FirebaseAppImpl(r,n,p);R.set(s,h);return h}\n/**\n * Retrieves a {@link @firebase/app#FirebaseApp} instance.\n *\n * When called with no arguments, the default app is returned. When an app name\n * is provided, the app corresponding to that name is returned.\n *\n * An exception is thrown if the app being retrieved has not yet been\n * initialized.\n *\n * @example\n * ```javascript\n * // Return the default app\n * const app = getApp();\n * ```\n *\n * @example\n * ```javascript\n * // Return a named app\n * const otherApp = getApp(\"otherApp\");\n * ```\n *\n * @param name - Optional name of the app to return. If no name is\n *   provided, the default is `\"[DEFAULT]\"`.\n *\n * @returns The app corresponding to the provided app name.\n *   If no app name is provided, the default app is returned.\n *\n * @public\n */function getApp(e=V){const t=R.get(e);if(!t&&e===V)return initializeApp();if(!t)throw J.create(\"no-app\",{appName:e});return t}function getApps(){return Array.from(R.values())}async function deleteApp(e){const t=e.name;if(R.has(t)){R.delete(t);await Promise.all(e.container.getProviders().map((e=>e.delete())));e.isDeleted=true}}\n/**\n * Registers a library's name and version for platform logging purposes.\n * @param library - Name of 1p or 3p library (e.g. firestore, angularfire)\n * @param version - Current version of that library.\n * @param variant - Bundle variant, e.g., node, rn, etc.\n *\n * @public\n */function registerVersion(t,a,r){var n;let s=null!==(n=M[t])&&void 0!==n?n:t;r&&(s+=`-${r}`);const i=s.match(/\\s|\\//);const o=a.match(/\\s|\\//);if(i||o){const e=[`Unable to register library \"${s}\" with version \"${a}\":`];i&&e.push(`library name \"${s}\" contains illegal characters (whitespace or \"/\")`);i&&o&&e.push(\"and\");o&&e.push(`version name \"${a}\" contains illegal characters (whitespace or \"/\")`);g.warn(e.join(\" \"))}else _registerComponent(new e(`${s}-version`,(()=>({library:s,version:a})),\"VERSION\"))}\n/**\n * Sets log handler for all Firebase SDKs.\n * @param logCallback - An optional custom log handler that executes user code whenever\n * the Firebase SDK makes a logging call.\n *\n * @public\n */function onLog(e,t){if(null!==e&&\"function\"!==typeof e)throw J.create(\"invalid-log-argument\");r(e,t)}function setLogLevel(e){n(e)}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const q=\"firebase-heartbeat-database\";const G=1;const Q=\"firebase-heartbeat-store\";let W=null;function getDbPromise(){W||(W=f(q,G,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Q)}}}).catch((e=>{throw J.create(\"idb-open\",{originalErrorMessage:e.message})})));return W}async function readHeartbeatsFromIndexedDB(e){var t;try{const t=await getDbPromise();return t.transaction(Q).objectStore(Q).get(computeKey(e))}catch(e){if(e instanceof c)g.warn(e.message);else{const a=J.create(\"idb-get\",{originalErrorMessage:null===(t=e)||void 0===t?void 0:t.message});g.warn(a.message)}}}async function writeHeartbeatsToIndexedDB(e,t){var a;try{const a=await getDbPromise();const r=a.transaction(Q,\"readwrite\");const n=r.objectStore(Q);await n.put(t,computeKey(e));return r.done}catch(e){if(e instanceof c)g.warn(e.message);else{const t=J.create(\"idb-set\",{originalErrorMessage:null===(a=e)||void 0===a?void 0:a.message});g.warn(t.message)}}}function computeKey(e){return`${e.name}!${e.options.appId}`}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const X=1024;const Z=2592e6;class HeartbeatServiceImpl{constructor(e){this.container=e;this._heartbeatsCache=null;const t=this.container.getProvider(\"app\").getImmediate();this._storage=new HeartbeatStorageImpl(t);this._heartbeatsCachePromise=this._storage.read().then((e=>{this._heartbeatsCache=e;return e}))}async triggerHeartbeat(){const e=this.container.getProvider(\"platform-logger\").getImmediate();const t=e.getPlatformInfoString();const a=getUTCDateString();null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise);if(this._heartbeatsCache.lastSentHeartbeatDate!==a&&!this._heartbeatsCache.heartbeats.some((e=>e.date===a))){this._heartbeatsCache.heartbeats.push({date:a,agent:t});this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();const a=Date.now();return a-t<=Z}));return this._storage.overwrite(this._heartbeatsCache)}}async getHeartbeatsHeader(){null===this._heartbeatsCache&&await this._heartbeatsCachePromise;if(null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return\"\";const e=getUTCDateString();const{heartbeatsToSend:t,unsentEntries:a}=extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats);const r=p(JSON.stringify({version:2,heartbeats:t}));this._heartbeatsCache.lastSentHeartbeatDate=e;if(a.length>0){this._heartbeatsCache.heartbeats=a;await this._storage.overwrite(this._heartbeatsCache)}else{this._heartbeatsCache.heartbeats=[];void this._storage.overwrite(this._heartbeatsCache)}return r}}function getUTCDateString(){const e=new Date;return e.toISOString().substring(0,10)}function extractHeartbeatsForHeader(e,t=X){const a=[];let r=e.slice();for(const n of e){const e=a.find((e=>e.agent===n.agent));if(e){e.dates.push(n.date);if(countBytes(a)>t){e.dates.pop();break}}else{a.push({agent:n.agent,dates:[n.date]});if(countBytes(a)>t){a.pop();break}}r=r.slice(1)}return{heartbeatsToSend:a,unsentEntries:r}}class HeartbeatStorageImpl{constructor(e){this.app=e;this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!h()&&l().then((()=>true)).catch((()=>false))}async read(){const e=await this._canUseIndexedDBPromise;if(e){const e=await readHeartbeatsFromIndexedDB(this.app);return e||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;const a=await this._canUseIndexedDBPromise;if(a){const a=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:a.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;const a=await this._canUseIndexedDBPromise;if(a){const a=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:a.lastSentHeartbeatDate,heartbeats:[...a.heartbeats,...e.heartbeats]})}}}function countBytes(e){return p(JSON.stringify({version:2,heartbeats:e})).length}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function registerCoreComponents(t){_registerComponent(new e(\"platform-logger\",(e=>new PlatformLoggerServiceImpl(e)),\"PRIVATE\"));_registerComponent(new e(\"heartbeat\",(e=>new HeartbeatServiceImpl(e)),\"PRIVATE\"));registerVersion(d,m,t);registerVersion(d,m,\"esm2017\");registerVersion(\"fire-js\",\"\")}registerCoreComponents(\"\");export{Y as SDK_VERSION,V as _DEFAULT_ENTRY_NAME,_addComponent,_addOrOverwriteComponent,R as _apps,_clearComponents,z as _components,_getProvider,_registerComponent,_removeServiceInstance,deleteApp,getApp,getApps,initializeApp,onLog,registerVersion,setLogLevel};\n\n//# sourceMappingURL=index.esm2017.js.map", "import{registerVersion as r}from\"@firebase/app\";export*from\"@firebase/app\";var a=\"firebase\";var p=\"9.12.1\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */r(a,p,\"app\");\n\n//# sourceMappingURL=index.esm.js.map", "var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};return extendStatics(e,t)};function __extends(e,t){if(\"function\"!==typeof t&&null!==t)throw new TypeError(\"Class extends value \"+String(t)+\" is not a constructor or null\");extendStatics(e,t);function __(){this.constructor=e}e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var __assign=function(){__assign=Object.assign||function __assign(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};return __assign.apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&\"function\"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function __decorate(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function __param(e,t){return function(r,n){t(r,n,e)}}function __metadata(e,t){if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:verb(0),throw:verb(1),return:verb(2)},\"function\"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(e){return function(t){return step([e,t])}}function step(a){if(r)throw new TypeError(\"Generator is already executing.\");while(i)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;(n=0,o)&&(a=[2&a[0],o.value]);switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}o[2]&&i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var e=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:true,get:function(){return t[r]}});Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r);e[n]=t[r]};function __exportStar(t,r){for(var n in t)\"default\"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)}function __values(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){e&&n>=e.length&&(e=void 0);return{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function __read(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{while((void 0===t||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}\n/** @deprecated */function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}\n/** @deprecated */function __spreadArrays(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)if(n||!(o in t)){n||(n=Array.prototype.slice.call(t,0,o));n[o]=t[o]}return e.concat(n||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,r){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var n,o=r.apply(e,t||[]),a=[];return n={},verb(\"next\"),verb(\"throw\"),verb(\"return\"),n[Symbol.asyncIterator]=function(){return this},n;function verb(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||resume(e,t)}))})}function resume(e,t){try{step(o[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume(\"next\",e)}function reject(e){resume(\"throw\",e)}function settle(e,t){(e(t),a.shift(),a.length)&&resume(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,r;return t={},verb(\"next\"),verb(\"throw\",(function(e){throw e})),verb(\"return\"),t[Symbol.iterator]=function(){return this},t;function verb(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:\"return\"===n}:o?o(t):t}:o}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=\"function\"===typeof __values?__values(e):e[Symbol.iterator](),t={},verb(\"next\"),verb(\"throw\"),verb(\"return\"),t[Symbol.asyncIterator]=function(){return this},t);function verb(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){t=e[r](t),settle(n,o,t.done,t.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function __makeTemplateObject(e,t){Object.defineProperty?Object.defineProperty(e,\"raw\",{value:t}):e.raw=t;return e}var t=Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:true,value:t})}:function(e,t){e.default=t};function __importStar(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)\"default\"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);t(n,r);return n}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,r,n){if(\"a\"===r&&!n)throw new TypeError(\"Private accessor was defined without a getter\");if(\"function\"===typeof t?e!==t||!n:!t.has(e))throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");return\"m\"===r?n:\"a\"===r?n.call(e):n?n.value:t.get(e)}function __classPrivateFieldSet(e,t,r,n,o){if(\"m\"===n)throw new TypeError(\"Private method is not writable\");if(\"a\"===n&&!o)throw new TypeError(\"Private accessor was defined without a setter\");if(\"function\"===typeof t?e!==t||!o:!t.has(e))throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");return\"a\"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function __classPrivateFieldIn(e,t){if(null===t||\"object\"!==typeof t&&\"function\"!==typeof t)throw new TypeError(\"Cannot use 'in' operator on non-object\");return\"function\"===typeof e?t===e:e.has(t)}export{__assign,__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,e as __createBinding,__decorate,__exportStar,__extends,__generator,__importDefault,__importStar,__makeTemplateObject,__metadata,__param,__read,__rest,__spread,__spreadArray,__spreadArrays,__values};\n\n//# sourceMappingURL=tslib.es6.js.map", "import{ErrorFactory as e,deepEqual as t,isBrowserExtension as n,isMobileCordova as r,isReactNative as i,querystring as s,FirebaseError as a,getModularInstance as o,base64Decode as c,getUA as u,isIE as d,createSubscribe as l,querystringDecode as h,extractQuerystring as p,isEmpty as f,getExperimentalSetting as m,getDefaultEmulatorHost as g}from\"@firebase/util\";import{SDK_VERSION as _,_getProvider as I,_registerComponent as v,registerVersion as T,getApp as A}from\"@firebase/app\";import{Logger as y,LogLevel as w}from\"@firebase/logger\";import{__rest as E}from\"tslib\";import{Component as k}from\"@firebase/component\";\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const R={PHONE:\"phone\"};const P={FACEBOOK:\"facebook.com\",GITHUB:\"github.com\",GOOGLE:\"google.com\",PASSWORD:\"password\",PHONE:\"phone\",TWITTER:\"twitter.com\"};const S={EMAIL_LINK:\"emailLink\",EMAIL_PASSWORD:\"password\",FACEBOOK:\"facebook.com\",GITHUB:\"github.com\",GOOGLE:\"google.com\",PHONE:\"phone\",TWITTER:\"twitter.com\"};const b={LINK:\"link\",REAUTHENTICATE:\"reauthenticate\",SIGN_IN:\"signIn\"};const O={EMAIL_SIGNIN:\"EMAIL_SIGNIN\",PASSWORD_RESET:\"PASSWORD_RESET\",RECOVER_EMAIL:\"RECOVER_EMAIL\",REVERT_SECOND_FACTOR_ADDITION:\"REVERT_SECOND_FACTOR_ADDITION\",VERIFY_AND_CHANGE_EMAIL:\"VERIFY_AND_CHANGE_EMAIL\",VERIFY_EMAIL:\"VERIFY_EMAIL\"};\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _debugErrorMap(){return{\"admin-restricted-operation\":\"This operation is restricted to administrators only.\",\"argument-error\":\"\",\"app-not-authorized\":\"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.\",\"app-not-installed\":\"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.\",\"captcha-check-failed\":\"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.\",\"code-expired\":\"The SMS code has expired. Please re-send the verification code to try again.\",\"cordova-not-ready\":\"Cordova framework is not ready.\",\"cors-unsupported\":\"This browser is not supported.\",\"credential-already-in-use\":\"This credential is already associated with a different user account.\",\"custom-token-mismatch\":\"The custom token corresponds to a different audience.\",\"requires-recent-login\":\"This operation is sensitive and requires recent authentication. Log in again before retrying this request.\",\"dependent-sdk-initialized-before-auth\":\"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.\",\"dynamic-link-not-activated\":\"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.\",\"email-change-needs-verification\":\"Multi-factor users must always have a verified email.\",\"email-already-in-use\":\"The email address is already in use by another account.\",\"emulator-config-failed\":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling \"connectAuthEmulator()\" sooner.',\"expired-action-code\":\"The action code has expired.\",\"cancelled-popup-request\":\"This operation has been cancelled due to another conflicting popup being opened.\",\"internal-error\":\"An internal AuthError has occurred.\",\"invalid-app-credential\":\"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.\",\"invalid-app-id\":\"The mobile app identifier is not registed for the current project.\",\"invalid-user-token\":\"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.\",\"invalid-auth-event\":\"An internal AuthError has occurred.\",\"invalid-verification-code\":\"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.\",\"invalid-continue-uri\":\"The continue URL provided in the request is invalid.\",\"invalid-cordova-configuration\":\"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.\",\"invalid-custom-token\":\"The custom token format is incorrect. Please check the documentation.\",\"invalid-dynamic-link-domain\":\"The provided dynamic link domain is not configured or authorized for the current project.\",\"invalid-email\":\"The email address is badly formatted.\",\"invalid-emulator-scheme\":\"Emulator URL must start with a valid scheme (http:// or https://).\",\"invalid-api-key\":\"Your API key is invalid, please check you have copied it correctly.\",\"invalid-cert-hash\":\"The SHA-1 certificate hash provided is invalid.\",\"invalid-credential\":\"The supplied auth credential is malformed or has expired.\",\"invalid-message-payload\":\"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.\",\"invalid-multi-factor-session\":\"The request does not contain a valid proof of first factor successful sign-in.\",\"invalid-oauth-provider\":\"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.\",\"invalid-oauth-client-id\":\"The OAuth client ID provided is either invalid or does not match the specified API key.\",\"unauthorized-domain\":\"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.\",\"invalid-action-code\":\"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.\",\"wrong-password\":\"The password is invalid or the user does not have a password.\",\"invalid-persistence-type\":\"The specified persistence type is invalid. It can only be local, session or none.\",\"invalid-phone-number\":\"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].\",\"invalid-provider-id\":\"The specified provider ID is invalid.\",\"invalid-recipient-email\":\"The email corresponding to this action failed to send as the provided recipient email address is invalid.\",\"invalid-sender\":\"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.\",\"invalid-verification-id\":\"The verification ID used to create the phone auth credential is invalid.\",\"invalid-tenant-id\":\"The Auth instance's tenant ID is invalid.\",\"login-blocked\":\"Login blocked by user-provided method: {$originalMessage}\",\"missing-android-pkg-name\":\"An Android Package Name must be provided if the Android App is required to be installed.\",\"auth-domain-config-required\":\"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.\",\"missing-app-credential\":\"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.\",\"missing-verification-code\":\"The phone auth credential was created with an empty SMS verification code.\",\"missing-continue-uri\":\"A continue URL must be provided in the request.\",\"missing-iframe-start\":\"An internal AuthError has occurred.\",\"missing-ios-bundle-id\":\"An iOS Bundle ID must be provided if an App Store ID is provided.\",\"missing-or-invalid-nonce\":\"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.\",\"missing-multi-factor-info\":\"No second factor identifier is provided.\",\"missing-multi-factor-session\":\"The request is missing proof of first factor successful sign-in.\",\"missing-phone-number\":\"To send verification codes, provide a phone number for the recipient.\",\"missing-verification-id\":\"The phone auth credential was created with an empty verification ID.\",\"app-deleted\":\"This instance of FirebaseApp has been deleted.\",\"multi-factor-info-not-found\":\"The user does not have a second factor matching the identifier provided.\",\"multi-factor-auth-required\":\"Proof of ownership of a second factor is required to complete sign-in.\",\"account-exists-with-different-credential\":\"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.\",\"network-request-failed\":\"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.\",\"no-auth-event\":\"An internal AuthError has occurred.\",\"no-such-provider\":\"User was not linked to an account with the given provider.\",\"null-user\":\"A null user object was provided as the argument for an operation which requires a non-null user object.\",\"operation-not-allowed\":\"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.\",\"operation-not-supported-in-this-environment\":'This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled.',\"popup-blocked\":\"Unable to establish a connection with the popup. It may have been blocked by the browser.\",\"popup-closed-by-user\":\"The popup has been closed by the user before finalizing the operation.\",\"provider-already-linked\":\"User can only be linked to one identity for the given provider.\",\"quota-exceeded\":\"The project's quota for this operation has been exceeded.\",\"redirect-cancelled-by-user\":\"The redirect operation has been cancelled by the user before finalizing.\",\"redirect-operation-pending\":\"A redirect sign-in operation is already pending.\",\"rejected-credential\":\"The request contains malformed or mismatching credentials.\",\"second-factor-already-in-use\":\"The second factor is already enrolled on this account.\",\"maximum-second-factor-count-exceeded\":\"The maximum allowed number of second factors on a user has been exceeded.\",\"tenant-id-mismatch\":\"The provided tenant ID does not match the Auth instance's tenant ID\",timeout:\"The operation has timed out.\",\"user-token-expired\":\"The user's credential is no longer valid. The user must sign in again.\",\"too-many-requests\":\"We have blocked all requests from this device due to unusual activity. Try again later.\",\"unauthorized-continue-uri\":\"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.\",\"unsupported-first-factor\":\"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.\",\"unsupported-persistence-type\":\"The current environment does not support the specified persistence type.\",\"unsupported-tenant-operation\":\"This operation is not supported in a multi-tenant context.\",\"unverified-email\":\"The operation requires a verified email.\",\"user-cancelled\":\"The user did not grant your application the permissions it requested.\",\"user-not-found\":\"There is no user record corresponding to this identifier. The user may have been deleted.\",\"user-disabled\":\"The user account has been disabled by an administrator.\",\"user-mismatch\":\"The supplied credentials do not correspond to the previously signed in user.\",\"user-signed-out\":\"\",\"weak-password\":\"The password must be 6 characters long or more.\",\"web-storage-unsupported\":\"This browser is not supported or 3rd party cookies and data may be disabled.\",\"already-initialized\":\"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.\"}}function _prodErrorMap(){return{\"dependent-sdk-initialized-before-auth\":\"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.\"}}const N=_debugErrorMap;const C=_prodErrorMap;const D=new e(\"auth\",\"Firebase\",_prodErrorMap());const L={ADMIN_ONLY_OPERATION:\"auth/admin-restricted-operation\",ARGUMENT_ERROR:\"auth/argument-error\",APP_NOT_AUTHORIZED:\"auth/app-not-authorized\",APP_NOT_INSTALLED:\"auth/app-not-installed\",CAPTCHA_CHECK_FAILED:\"auth/captcha-check-failed\",CODE_EXPIRED:\"auth/code-expired\",CORDOVA_NOT_READY:\"auth/cordova-not-ready\",CORS_UNSUPPORTED:\"auth/cors-unsupported\",CREDENTIAL_ALREADY_IN_USE:\"auth/credential-already-in-use\",CREDENTIAL_MISMATCH:\"auth/custom-token-mismatch\",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:\"auth/requires-recent-login\",DEPENDENT_SDK_INIT_BEFORE_AUTH:\"auth/dependent-sdk-initialized-before-auth\",DYNAMIC_LINK_NOT_ACTIVATED:\"auth/dynamic-link-not-activated\",EMAIL_CHANGE_NEEDS_VERIFICATION:\"auth/email-change-needs-verification\",EMAIL_EXISTS:\"auth/email-already-in-use\",EMULATOR_CONFIG_FAILED:\"auth/emulator-config-failed\",EXPIRED_OOB_CODE:\"auth/expired-action-code\",EXPIRED_POPUP_REQUEST:\"auth/cancelled-popup-request\",INTERNAL_ERROR:\"auth/internal-error\",INVALID_API_KEY:\"auth/invalid-api-key\",INVALID_APP_CREDENTIAL:\"auth/invalid-app-credential\",INVALID_APP_ID:\"auth/invalid-app-id\",INVALID_AUTH:\"auth/invalid-user-token\",INVALID_AUTH_EVENT:\"auth/invalid-auth-event\",INVALID_CERT_HASH:\"auth/invalid-cert-hash\",INVALID_CODE:\"auth/invalid-verification-code\",INVALID_CONTINUE_URI:\"auth/invalid-continue-uri\",INVALID_CORDOVA_CONFIGURATION:\"auth/invalid-cordova-configuration\",INVALID_CUSTOM_TOKEN:\"auth/invalid-custom-token\",INVALID_DYNAMIC_LINK_DOMAIN:\"auth/invalid-dynamic-link-domain\",INVALID_EMAIL:\"auth/invalid-email\",INVALID_EMULATOR_SCHEME:\"auth/invalid-emulator-scheme\",INVALID_IDP_RESPONSE:\"auth/invalid-credential\",INVALID_MESSAGE_PAYLOAD:\"auth/invalid-message-payload\",INVALID_MFA_SESSION:\"auth/invalid-multi-factor-session\",INVALID_OAUTH_CLIENT_ID:\"auth/invalid-oauth-client-id\",INVALID_OAUTH_PROVIDER:\"auth/invalid-oauth-provider\",INVALID_OOB_CODE:\"auth/invalid-action-code\",INVALID_ORIGIN:\"auth/unauthorized-domain\",INVALID_PASSWORD:\"auth/wrong-password\",INVALID_PERSISTENCE:\"auth/invalid-persistence-type\",INVALID_PHONE_NUMBER:\"auth/invalid-phone-number\",INVALID_PROVIDER_ID:\"auth/invalid-provider-id\",INVALID_RECIPIENT_EMAIL:\"auth/invalid-recipient-email\",INVALID_SENDER:\"auth/invalid-sender\",INVALID_SESSION_INFO:\"auth/invalid-verification-id\",INVALID_TENANT_ID:\"auth/invalid-tenant-id\",MFA_INFO_NOT_FOUND:\"auth/multi-factor-info-not-found\",MFA_REQUIRED:\"auth/multi-factor-auth-required\",MISSING_ANDROID_PACKAGE_NAME:\"auth/missing-android-pkg-name\",MISSING_APP_CREDENTIAL:\"auth/missing-app-credential\",MISSING_AUTH_DOMAIN:\"auth/auth-domain-config-required\",MISSING_CODE:\"auth/missing-verification-code\",MISSING_CONTINUE_URI:\"auth/missing-continue-uri\",MISSING_IFRAME_START:\"auth/missing-iframe-start\",MISSING_IOS_BUNDLE_ID:\"auth/missing-ios-bundle-id\",MISSING_OR_INVALID_NONCE:\"auth/missing-or-invalid-nonce\",MISSING_MFA_INFO:\"auth/missing-multi-factor-info\",MISSING_MFA_SESSION:\"auth/missing-multi-factor-session\",MISSING_PHONE_NUMBER:\"auth/missing-phone-number\",MISSING_SESSION_INFO:\"auth/missing-verification-id\",MODULE_DESTROYED:\"auth/app-deleted\",NEED_CONFIRMATION:\"auth/account-exists-with-different-credential\",NETWORK_REQUEST_FAILED:\"auth/network-request-failed\",NULL_USER:\"auth/null-user\",NO_AUTH_EVENT:\"auth/no-auth-event\",NO_SUCH_PROVIDER:\"auth/no-such-provider\",OPERATION_NOT_ALLOWED:\"auth/operation-not-allowed\",OPERATION_NOT_SUPPORTED:\"auth/operation-not-supported-in-this-environment\",POPUP_BLOCKED:\"auth/popup-blocked\",POPUP_CLOSED_BY_USER:\"auth/popup-closed-by-user\",PROVIDER_ALREADY_LINKED:\"auth/provider-already-linked\",QUOTA_EXCEEDED:\"auth/quota-exceeded\",REDIRECT_CANCELLED_BY_USER:\"auth/redirect-cancelled-by-user\",REDIRECT_OPERATION_PENDING:\"auth/redirect-operation-pending\",REJECTED_CREDENTIAL:\"auth/rejected-credential\",SECOND_FACTOR_ALREADY_ENROLLED:\"auth/second-factor-already-in-use\",SECOND_FACTOR_LIMIT_EXCEEDED:\"auth/maximum-second-factor-count-exceeded\",TENANT_ID_MISMATCH:\"auth/tenant-id-mismatch\",TIMEOUT:\"auth/timeout\",TOKEN_EXPIRED:\"auth/user-token-expired\",TOO_MANY_ATTEMPTS_TRY_LATER:\"auth/too-many-requests\",UNAUTHORIZED_DOMAIN:\"auth/unauthorized-continue-uri\",UNSUPPORTED_FIRST_FACTOR:\"auth/unsupported-first-factor\",UNSUPPORTED_PERSISTENCE:\"auth/unsupported-persistence-type\",UNSUPPORTED_TENANT_OPERATION:\"auth/unsupported-tenant-operation\",UNVERIFIED_EMAIL:\"auth/unverified-email\",USER_CANCELLED:\"auth/user-cancelled\",USER_DELETED:\"auth/user-not-found\",USER_DISABLED:\"auth/user-disabled\",USER_MISMATCH:\"auth/user-mismatch\",USER_SIGNED_OUT:\"auth/user-signed-out\",WEAK_PASSWORD:\"auth/weak-password\",WEB_STORAGE_UNSUPPORTED:\"auth/web-storage-unsupported\",ALREADY_INITIALIZED:\"auth/already-initialized\"};\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const U=new y(\"@firebase/auth\");function _logError(e,...t){U.logLevel<=w.ERROR&&U.error(`Auth (${_}): ${e}`,...t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _fail(e,...t){throw createErrorInternal(e,...t)}function _createError(e,...t){return createErrorInternal(e,...t)}function _errorWithCustomMessage(t,n,r){const i=Object.assign(Object.assign({},C()),{[n]:r});const s=new e(\"auth\",\"Firebase\",i);return s.create(n,{appName:t.name})}function _assertInstanceOf(e,t,n){const r=n;if(!(t instanceof r)){r.name!==t.constructor.name&&_fail(e,\"argument-error\");throw _errorWithCustomMessage(e,\"argument-error\",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}}function createErrorInternal(e,...t){if(\"string\"!==typeof e){const n=t[0];const r=[...t.slice(1)];r[0]&&(r[0].appName=e.name);return e._errorFactory.create(n,...r)}return D.create(e,...t)}function _assert(e,t,...n){if(!e)throw createErrorInternal(t,...n)}\n/**\n * Unconditionally fails, throwing an internal error with the given message.\n *\n * @param failure type of failure encountered\n * @throws Error\n */function debugFail(e){const t=\"INTERNAL ASSERTION FAILED: \"+e;_logError(t);throw new Error(t)}\n/**\n * Fails if the given assertion condition is false, throwing an Error with the\n * given message if it did.\n *\n * @param assertion\n * @param message\n */function debugAssert(e,t){e||debugFail(t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const M=new Map;function _getInstance(e){debugAssert(e instanceof Function,\"Expected a class definition\");let t=M.get(e);if(t){debugAssert(t instanceof e,\"Instance stored in cache mismatched with class\");return t}t=new e;M.set(e,t);return t}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function initializeAuth(e,n){const r=I(e,\"auth\");if(r.isInitialized()){const e=r.getImmediate();const i=r.getOptions();if(t(i,null!==n&&void 0!==n?n:{}))return e;_fail(e,\"already-initialized\")}const i=r.initialize({options:n});return i}function _initializeAuthInstance(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[];const r=(Array.isArray(n)?n:[n]).map(_getInstance);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap);e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _getCurrentUrl(){var e;return\"undefined\"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||\"\"}function _isHttpOrHttps(){return\"http:\"===_getCurrentScheme()||\"https:\"===_getCurrentScheme()}function _getCurrentScheme(){var e;return\"undefined\"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _isOnline(){return!(\"undefined\"!==typeof navigator&&navigator&&\"onLine\"in navigator&&\"boolean\"===typeof navigator.onLine&&(_isHttpOrHttps()||n()||\"connection\"in navigator))||navigator.onLine}function _getUserLanguage(){if(\"undefined\"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Delay{constructor(e,t){this.shortDelay=e;this.longDelay=t;debugAssert(t>e,\"Short delay should be less than long delay!\");this.isMobile=r()||i()}get(){return _isOnline()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _emulatorUrl(e,t){debugAssert(e.emulator,\"Emulator should always be set here\");const{url:n}=e.emulator;return t?`${n}${t.startsWith(\"/\")?t.slice(1):t}`:n}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class FetchProvider{static initialize(e,t,n){this.fetchImpl=e;t&&(this.headersImpl=t);n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(\"undefined\"!==typeof self&&\"fetch\"in self)return self.fetch;debugFail(\"Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\")}static headers(){if(this.headersImpl)return this.headersImpl;if(\"undefined\"!==typeof self&&\"Headers\"in self)return self.Headers;debugFail(\"Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\")}static response(){if(this.responseImpl)return this.responseImpl;if(\"undefined\"!==typeof self&&\"Response\"in self)return self.Response;debugFail(\"Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\")}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const F={CREDENTIAL_MISMATCH:\"custom-token-mismatch\",MISSING_CUSTOM_TOKEN:\"internal-error\",INVALID_IDENTIFIER:\"invalid-email\",MISSING_CONTINUE_URI:\"internal-error\",INVALID_PASSWORD:\"wrong-password\",MISSING_PASSWORD:\"internal-error\",EMAIL_EXISTS:\"email-already-in-use\",PASSWORD_LOGIN_DISABLED:\"operation-not-allowed\",INVALID_IDP_RESPONSE:\"invalid-credential\",INVALID_PENDING_TOKEN:\"invalid-credential\",FEDERATED_USER_ID_ALREADY_LINKED:\"credential-already-in-use\",MISSING_REQ_TYPE:\"internal-error\",EMAIL_NOT_FOUND:\"user-not-found\",RESET_PASSWORD_EXCEED_LIMIT:\"too-many-requests\",EXPIRED_OOB_CODE:\"expired-action-code\",INVALID_OOB_CODE:\"invalid-action-code\",MISSING_OOB_CODE:\"internal-error\",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:\"requires-recent-login\",INVALID_ID_TOKEN:\"invalid-user-token\",TOKEN_EXPIRED:\"user-token-expired\",USER_NOT_FOUND:\"user-token-expired\",TOO_MANY_ATTEMPTS_TRY_LATER:\"too-many-requests\",INVALID_CODE:\"invalid-verification-code\",INVALID_SESSION_INFO:\"invalid-verification-id\",INVALID_TEMPORARY_PROOF:\"invalid-credential\",MISSING_SESSION_INFO:\"missing-verification-id\",SESSION_EXPIRED:\"code-expired\",MISSING_ANDROID_PACKAGE_NAME:\"missing-android-pkg-name\",UNAUTHORIZED_DOMAIN:\"unauthorized-continue-uri\",INVALID_OAUTH_CLIENT_ID:\"invalid-oauth-client-id\",ADMIN_ONLY_OPERATION:\"admin-restricted-operation\",INVALID_MFA_PENDING_CREDENTIAL:\"invalid-multi-factor-session\",MFA_ENROLLMENT_NOT_FOUND:\"multi-factor-info-not-found\",MISSING_MFA_ENROLLMENT_ID:\"missing-multi-factor-info\",MISSING_MFA_PENDING_CREDENTIAL:\"missing-multi-factor-session\",SECOND_FACTOR_EXISTS:\"second-factor-already-in-use\",SECOND_FACTOR_LIMIT_EXCEEDED:\"maximum-second-factor-count-exceeded\",BLOCKING_FUNCTION_ERROR_RESPONSE:\"internal-error\"};\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const W=new Delay(3e4,6e4);function _addTidIfNecessary(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function _performApiRequest(e,t,n,r,i={}){return _performFetchWithErrorHandling(e,i,(async()=>{let i={};let a={};r&&(\"GET\"===t?a=r:i={body:JSON.stringify(r)});const o=s(Object.assign({key:e.config.apiKey},a)).slice(1);const c=await e._getAdditionalHeaders();c[\"Content-Type\"]=\"application/json\";e.languageCode&&(c[\"X-Firebase-Locale\"]=e.languageCode);return FetchProvider.fetch()(_getFinalTarget(e,e.config.apiHost,n,o),Object.assign({method:t,headers:c,referrerPolicy:\"no-referrer\"},i))}))}async function _performFetchWithErrorHandling(e,t,n){e._canInitEmulator=false;const r=Object.assign(Object.assign({},F),t);try{const t=new NetworkTimeout(e);const i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const s=await i.json();if(\"needConfirmation\"in s)throw _makeTaggedError(e,\"account-exists-with-different-credential\",s);if(i.ok&&!(\"errorMessage\"in s))return s;{const t=i.ok?s.errorMessage:s.error.message;const[n,a]=t.split(\" : \");if(\"FEDERATED_USER_ID_ALREADY_LINKED\"===n)throw _makeTaggedError(e,\"credential-already-in-use\",s);if(\"EMAIL_EXISTS\"===n)throw _makeTaggedError(e,\"email-already-in-use\",s);if(\"USER_DISABLED\"===n)throw _makeTaggedError(e,\"user-disabled\",s);const o=r[n]||n.toLowerCase().replace(/[_\\s]+/g,\"-\");if(a)throw _errorWithCustomMessage(e,o,a);_fail(e,o)}}catch(t){if(t instanceof a)throw t;_fail(e,\"network-request-failed\")}}async function _performSignInRequest(e,t,n,r,i={}){const s=await _performApiRequest(e,t,n,r,i);\"mfaPendingCredential\"in s&&_fail(e,\"multi-factor-auth-required\",{_serverResponse:s});return s}function _getFinalTarget(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?_emulatorUrl(e.config,i):`${e.config.apiScheme}://${i}`}class NetworkTimeout{constructor(e){this.auth=e;this.timer=null;this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(_createError(this.auth,\"network-request-failed\"))),W.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function _makeTaggedError(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email);n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=_createError(e,t,r);i.customData._tokenResponse=n;return i}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function deleteAccount(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:delete\",t)}async function deleteLinkedAccounts(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:update\",t)}async function getAccountInfo(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:lookup\",t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function utcTimestampToDateString(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.\n *\n * @remarks\n * Returns the current token if it has not expired or if it will not expire in the next five\n * minutes. Otherwise, this will refresh the token and return a new one.\n *\n * @param user - The user.\n * @param forceRefresh - Force refresh regardless of token expiration.\n *\n * @public\n */function getIdToken(e,t=false){return o(e).getIdToken(t)}\n/**\n * Returns a deserialized JSON Web Token (JWT) used to identitfy the user to a Firebase service.\n *\n * @remarks\n * Returns the current token if it has not expired or if it will not expire in the next five\n * minutes. Otherwise, this will refresh the token and return a new one.\n *\n * @param user - The user.\n * @param forceRefresh - Force refresh regardless of token expiration.\n *\n * @public\n */async function getIdTokenResult(e,t=false){const n=o(e);const r=await n.getIdToken(t);const i=_parseToken(r);_assert(i&&i.exp&&i.auth_time&&i.iat,n.auth,\"internal-error\");const s=\"object\"===typeof i.firebase?i.firebase:void 0;const a=null===s||void 0===s?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:utcTimestampToDateString(secondsStringToMilliseconds(i.auth_time)),issuedAtTime:utcTimestampToDateString(secondsStringToMilliseconds(i.iat)),expirationTime:utcTimestampToDateString(secondsStringToMilliseconds(i.exp)),signInProvider:a||null,signInSecondFactor:(null===s||void 0===s?void 0:s.sign_in_second_factor)||null}}function secondsStringToMilliseconds(e){return 1e3*Number(e)}function _parseToken(e){var t;const[n,r,i]=e.split(\".\");if(void 0===n||void 0===r||void 0===i){_logError(\"JWT malformed, contained fewer than 3 sections\");return null}try{const e=c(r);if(!e){_logError(\"Failed to decode base64 JWT payload\");return null}return JSON.parse(e)}catch(e){_logError(\"Caught error parsing JWT payload as JSON\",null===(t=e)||void 0===t?void 0:t.toString());return null}}function _tokenExpiresIn(e){const t=_parseToken(e);_assert(t,\"internal-error\");_assert(\"undefined\"!==typeof t.exp,\"internal-error\");_assert(\"undefined\"!==typeof t.iat,\"internal-error\");return Number(t.exp)-Number(t.iat)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function _logoutIfInvalidated(e,t,n=false){if(n)return t;try{return await t}catch(t){t instanceof a&&isUserInvalidated(t)&&e.auth.currentUser===e&&await e.auth.signOut();throw t}}function isUserInvalidated({code:e}){return\"auth/user-disabled\"===e||\"auth/user-token-expired\"===e}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class ProactiveRefresh{constructor(e){this.user=e;this.isRunning=false;this.timerId=null;this.errorBackoff=3e4}_start(){if(!this.isRunning){this.isRunning=true;this.schedule()}}_stop(){if(this.isRunning){this.isRunning=false;null!==this.timerId&&clearTimeout(this.timerId)}}getInterval(e){var t;if(e){const e=this.errorBackoff;this.errorBackoff=Math.min(2*this.errorBackoff,96e4);return e}{this.errorBackoff=3e4;const e=null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0;const n=e-Date.now()-3e5;return Math.max(0,n)}}schedule(e=false){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){var e;try{await this.user.getIdToken(true)}catch(t){\"auth/network-request-failed\"===(null===(e=t)||void 0===e?void 0:e.code)&&this.schedule(true);return}this.schedule()}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class UserMetadata{constructor(e,t){this.createdAt=e;this.lastLoginAt=t;this._initializeTime()}_initializeTime(){this.lastSignInTime=utcTimestampToDateString(this.lastLoginAt);this.creationTime=utcTimestampToDateString(this.createdAt)}_copy(e){this.createdAt=e.createdAt;this.lastLoginAt=e.lastLoginAt;this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function _reloadWithoutSaving(e){var t;const n=e.auth;const r=await e.getIdToken();const i=await _logoutIfInvalidated(e,getAccountInfo(n,{idToken:r}));_assert(null===i||void 0===i?void 0:i.users.length,n,\"internal-error\");const s=i.users[0];e._notifyReloadListener(s);const a=(null===(t=s.providerUserInfo)||void 0===t?void 0:t.length)?extractProviderData(s.providerUserInfo):[];const o=mergeProviderData(e.providerData,a);const c=e.isAnonymous;const u=!(e.email&&s.passwordHash)&&!(null===o||void 0===o?void 0:o.length);const d=!!c&&u;const l={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||false,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:o,metadata:new UserMetadata(s.createdAt,s.lastLoginAt),isAnonymous:d};Object.assign(e,l)}\n/**\n * Reloads user account data, if signed in.\n *\n * @param user - The user.\n *\n * @public\n */async function reload(e){const t=o(e);await _reloadWithoutSaving(t);await t.auth._persistUserIfCurrent(t);t.auth._notifyListenersIfCurrent(t)}function mergeProviderData(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}function extractProviderData(e){return e.map((e=>{var{providerId:t}=e,n=E(e,[\"providerId\"]);return{providerId:t,uid:n.rawId||\"\",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function requestStsToken(e,t){const n=await _performFetchWithErrorHandling(e,{},(async()=>{const n=s({grant_type:\"refresh_token\",refresh_token:t}).slice(1);const{tokenApiHost:r,apiKey:i}=e.config;const a=_getFinalTarget(e,r,\"/v1/token\",`key=${i}`);const o=await e._getAdditionalHeaders();o[\"Content-Type\"]=\"application/x-www-form-urlencoded\";return FetchProvider.fetch()(a,{method:\"POST\",headers:o,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class StsTokenManager{constructor(){this.refreshToken=null;this.accessToken=null;this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){_assert(e.idToken,\"internal-error\");_assert(\"undefined\"!==typeof e.idToken,\"internal-error\");_assert(\"undefined\"!==typeof e.refreshToken,\"internal-error\");const t=\"expiresIn\"in e&&\"undefined\"!==typeof e.expiresIn?Number(e.expiresIn):_tokenExpiresIn(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=false){_assert(!this.accessToken||this.refreshToken,e,\"user-token-expired\");if(!t&&this.accessToken&&!this.isExpired)return this.accessToken;if(this.refreshToken){await this.refresh(e,this.refreshToken);return this.accessToken}return null}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await requestStsToken(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null;this.accessToken=e||null;this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t;const s=new StsTokenManager;if(n){_assert(\"string\"===typeof n,\"internal-error\",{appName:e});s.refreshToken=n}if(r){_assert(\"string\"===typeof r,\"internal-error\",{appName:e});s.accessToken=r}if(i){_assert(\"number\"===typeof i,\"internal-error\",{appName:e});s.expirationTime=i}return s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken;this.refreshToken=e.refreshToken;this.expirationTime=e.expirationTime}_clone(){return Object.assign(new StsTokenManager,this.toJSON())}_performRefresh(){return debugFail(\"not implemented\")}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function assertStringOrUndefined(e,t){_assert(\"string\"===typeof e||\"undefined\"===typeof e,\"internal-error\",{appName:t})}class UserImpl{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=E(e,[\"uid\",\"auth\",\"stsTokenManager\"]);this.providerId=\"firebase\";this.proactiveRefresh=new ProactiveRefresh(this);this.reloadUserInfo=null;this.reloadListener=null;this.uid=t;this.auth=n;this.stsTokenManager=r;this.accessToken=r.accessToken;this.displayName=i.displayName||null;this.email=i.email||null;this.emailVerified=i.emailVerified||false;this.phoneNumber=i.phoneNumber||null;this.photoURL=i.photoURL||null;this.isAnonymous=i.isAnonymous||false;this.tenantId=i.tenantId||null;this.providerData=i.providerData?[...i.providerData]:[];this.metadata=new UserMetadata(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await _logoutIfInvalidated(this,this.stsTokenManager.getToken(this.auth,e));_assert(t,this.auth,\"internal-error\");if(this.accessToken!==t){this.accessToken=t;await this.auth._persistUserIfCurrent(this);this.auth._notifyListenersIfCurrent(this)}return t}getIdTokenResult(e){return getIdTokenResult(this,e)}reload(){return reload(this)}_assign(e){if(this!==e){_assert(this.uid===e.uid,this.auth,\"internal-error\");this.displayName=e.displayName;this.photoURL=e.photoURL;this.email=e.email;this.emailVerified=e.emailVerified;this.phoneNumber=e.phoneNumber;this.isAnonymous=e.isAnonymous;this.tenantId=e.tenantId;this.providerData=e.providerData.map((e=>Object.assign({},e)));this.metadata._copy(e.metadata);this.stsTokenManager._assign(e.stsTokenManager)}}_clone(e){return new UserImpl(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}))}_onReload(e){_assert(!this.reloadListener,this.auth,\"internal-error\");this.reloadListener=e;if(this.reloadUserInfo){this._notifyReloadListener(this.reloadUserInfo);this.reloadUserInfo=null}}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=false){let n=false;if(e.idToken&&e.idToken!==this.stsTokenManager.accessToken){this.stsTokenManager.updateFromServerResponse(e);n=true}t&&await _reloadWithoutSaving(this);await this.auth._persistUserIfCurrent(this);n&&this.auth._notifyListenersIfCurrent(this)}async delete(){const e=await this.getIdToken();await _logoutIfInvalidated(this,deleteAccount(this.auth,{idToken:e}));this.stsTokenManager.clearRefreshToken();return this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||\"\"}static _fromJSON(e,t){var n,r,i,s,a,o,c,u;const d=null!==(n=t.displayName)&&void 0!==n?n:void 0;const l=null!==(r=t.email)&&void 0!==r?r:void 0;const h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0;const p=null!==(s=t.photoURL)&&void 0!==s?s:void 0;const f=null!==(a=t.tenantId)&&void 0!==a?a:void 0;const m=null!==(o=t._redirectEventId)&&void 0!==o?o:void 0;const g=null!==(c=t.createdAt)&&void 0!==c?c:void 0;const _=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0;const{uid:I,emailVerified:v,isAnonymous:T,providerData:A,stsTokenManager:y}=t;_assert(I&&y,e,\"internal-error\");const w=StsTokenManager.fromJSON(this.name,y);_assert(\"string\"===typeof I,e,\"internal-error\");assertStringOrUndefined(d,e.name);assertStringOrUndefined(l,e.name);_assert(\"boolean\"===typeof v,e,\"internal-error\");_assert(\"boolean\"===typeof T,e,\"internal-error\");assertStringOrUndefined(h,e.name);assertStringOrUndefined(p,e.name);assertStringOrUndefined(f,e.name);assertStringOrUndefined(m,e.name);assertStringOrUndefined(g,e.name);assertStringOrUndefined(_,e.name);const E=new UserImpl({uid:I,auth:e,email:l,emailVerified:v,displayName:d,isAnonymous:T,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:w,createdAt:g,lastLoginAt:_});A&&Array.isArray(A)&&(E.providerData=A.map((e=>Object.assign({},e))));m&&(E._redirectEventId=m);return E}\n/**\n     * Initialize a User from an idToken server response\n     * @param auth\n     * @param idTokenResponse\n     */static async _fromIdTokenResponse(e,t,n=false){const r=new StsTokenManager;r.updateFromServerResponse(t);const i=new UserImpl({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});await _reloadWithoutSaving(i);return i}}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class InMemoryPersistence{constructor(){this.type=\"NONE\";this.storage={}}async _isAvailable(){return true}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}InMemoryPersistence.type=\"NONE\";const x=InMemoryPersistence;\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _persistenceKeyName(e,t,n){return`firebase:${e}:${t}:${n}`}class PersistenceUserManager{constructor(e,t,n){this.persistence=e;this.auth=t;this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=_persistenceKeyName(this.userKey,r.apiKey,i);this.fullPersistenceKey=_persistenceKeyName(\"persistence\",r.apiKey,i);this.boundEventHandler=t._onStorageEvent.bind(t);this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?UserImpl._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();await this.removeCurrentUser();this.persistence=e;return t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n=\"authUser\"){if(!t.length)return new PersistenceUserManager(_getInstance(x),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||_getInstance(x);const s=_persistenceKeyName(n,e.config.apiKey,e.name);let a=null;for(const n of t)try{const t=await n._get(s);if(t){const r=UserImpl._fromJSON(e,t);n!==i&&(a=r);i=n;break}}catch(e){}const o=r.filter((e=>e._shouldAllowMigration));if(!i._shouldAllowMigration||!o.length)return new PersistenceUserManager(i,e,n);i=o[0];a&&await i._set(s,a.toJSON());await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(s)}catch(e){}})));return new PersistenceUserManager(i,e,n)}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _getBrowserName(e){const t=e.toLowerCase();if(t.includes(\"opera/\")||t.includes(\"opr/\")||t.includes(\"opios/\"))return\"Opera\";if(_isIEMobile(t))return\"IEMobile\";if(t.includes(\"msie\")||t.includes(\"trident/\"))return\"IE\";if(t.includes(\"edge/\"))return\"Edge\";if(_isFirefox(t))return\"Firefox\";if(t.includes(\"silk/\"))return\"Silk\";if(_isBlackBerry(t))return\"Blackberry\";if(_isWebOS(t))return\"Webos\";if(_isSafari(t))return\"Safari\";if((t.includes(\"chrome/\")||_isChromeIOS(t))&&!t.includes(\"edge/\"))return\"Chrome\";if(_isAndroid(t))return\"Android\";{const t=/([a-zA-Z\\d\\.]+)\\/[a-zA-Z\\d\\.]*$/;const n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return\"Other\"}function _isFirefox(e=u()){return/firefox\\//i.test(e)}function _isSafari(e=u()){const t=e.toLowerCase();return t.includes(\"safari/\")&&!t.includes(\"chrome/\")&&!t.includes(\"crios/\")&&!t.includes(\"android\")}function _isChromeIOS(e=u()){return/crios\\//i.test(e)}function _isIEMobile(e=u()){return/iemobile/i.test(e)}function _isAndroid(e=u()){return/android/i.test(e)}function _isBlackBerry(e=u()){return/blackberry/i.test(e)}function _isWebOS(e=u()){return/webos/i.test(e)}function _isIOS(e=u()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function _isIOS7Or8(e=u()){return/(iPad|iPhone|iPod).*OS 7_\\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\\d/i.test(e)}function _isIOSStandalone(e=u()){var t;return _isIOS(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}function _isIE10(){return d()&&10===document.documentMode}function _isMobileBrowser(e=u()){return _isIOS(e)||_isAndroid(e)||_isWebOS(e)||_isBlackBerry(e)||/windows phone/i.test(e)||_isIEMobile(e)}function _isIframe(){try{return!!(window&&window!==window.top)}catch(e){return false}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _getClientVersion(e,t=[]){let n;switch(e){case\"Browser\":n=_getBrowserName(u());break;case\"Worker\":n=`${_getBrowserName(u())}-${e}`;break;default:n=e}const r=t.length?t.join(\",\"):\"FirebaseCore-web\";return`${n}/JsCore/${_}/${r}`}\n/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class AuthMiddlewareQueue{constructor(e){this.auth=e;this.queue=[]}pushCallback(e,t){const wrappedCallback=t=>new Promise(((n,r)=>{try{const r=e(t);n(r)}catch(e){r(e)}}));wrappedCallback.onAbort=t;this.queue.push(wrappedCallback);const n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){var t;if(this.auth.currentUser===e)return;const n=[];try{for(const t of this.queue){await t(e);t.onAbort&&n.push(t.onAbort)}}catch(e){n.reverse();for(const e of n)try{e()}catch(e){}throw this.auth._errorFactory.create(\"login-blocked\",{originalMessage:null===(t=e)||void 0===t?void 0:t.message})}}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class AuthImpl{constructor(e,t,n){this.app=e;this.heartbeatServiceProvider=t;this.config=n;this.currentUser=null;this.emulatorConfig=null;this.operations=Promise.resolve();this.authStateSubscription=new Subscription(this);this.idTokenSubscription=new Subscription(this);this.beforeStateQueue=new AuthMiddlewareQueue(this);this.redirectUser=null;this.isProactiveRefreshEnabled=false;this._canInitEmulator=true;this._isInitialized=false;this._deleted=false;this._initializationPromise=null;this._popupRedirectResolver=null;this._errorFactory=D;this.lastNotifiedUid=void 0;this.languageCode=null;this.tenantId=null;this.settings={appVerificationDisabledForTesting:false};this.frameworks=[];this.name=e.name;this.clientVersion=n.sdkClientVersion}_initializeWithPersistence(e,t){t&&(this._popupRedirectResolver=_getInstance(t));this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted){this.persistenceManager=await PersistenceUserManager.create(this,e);if(!this._deleted){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t);this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null;this._deleted||(this._isInitialized=true)}}}));return this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e)if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e);await this.currentUser.getIdToken()}else await this._updateCurrentUser(e,true)}async initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n;let i=false;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId;const s=null===r||void 0===r?void 0:r._redirectEventId;const a=await this.tryRedirectSignIn(e);if((!n||n===s)&&(null===a||void 0===a?void 0:a.user)){r=a.user;i=true}}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=n;this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(e)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}_assert(this._popupRedirectResolver,this,\"argument-error\");await this.getOrInitRedirectPersistenceManager();return this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,true)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){var t;try{await _reloadWithoutSaving(e)}catch(e){if(\"auth/network-request-failed\"!==(null===(t=e)||void 0===t?void 0:t.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=_getUserLanguage()}async _delete(){this._deleted=true}async updateCurrentUser(e){const t=e?o(e):null;t&&_assert(t.auth.config.apiKey===this.config.apiKey,this,\"invalid-user-token\");return this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=false){if(!this._deleted){e&&_assert(this.tenantId===e.tenantId,this,\"tenant-id-mismatch\");t||await this.beforeStateQueue.runMiddleware(e);return this.queue((async()=>{await this.directlySetCurrentUser(e);this.notifyAuthListeners()}))}}async signOut(){await this.beforeStateQueue.runMiddleware(null);(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null);return this._updateCurrentUser(null,true)}setPersistence(e){return this.queue((async()=>{await this.assertedPersistence.setPersistence(_getInstance(e))}))}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new e(\"auth\",\"Firebase\",t())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&_getInstance(e)||this._popupRedirectResolver;_assert(t,this,\"argument-error\");this.redirectPersistenceManager=await PersistenceUserManager.create(this,[_getInstance(t._redirectPersistence)],\"redirectUser\");this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;this._isInitialized&&await this.queue((async()=>{}));return(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=true;this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=false;this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;if(this.lastNotifiedUid!==n){this.lastNotifiedUid=n;this.authStateSubscription.next(this.currentUser)}}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i=\"function\"===typeof t?t:t.next.bind(t);const s=this._isInitialized?Promise.resolve():this._initializationPromise;_assert(s,this,\"internal-error\");s.then((()=>i(this.currentUser)));return\"function\"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh();e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh();this.currentUser=e;e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){this.operations=this.operations.then(e,e);return this.operations}get assertedPersistence(){_assert(this.persistenceManager,this,\"internal-error\");return this.persistenceManager}_logFramework(e){if(e&&!this.frameworks.includes(e)){this.frameworks.push(e);this.frameworks.sort();this.clientVersion=_getClientVersion(this.config.clientPlatform,this._getFrameworks())}}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={\"X-Client-Version\":this.clientVersion};this.app.options.appId&&(t[\"X-Firebase-gmpid\"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:true}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t[\"X-Firebase-Client\"]=n);return t}}\n/**\n * Method to be used to cast down to our private implmentation of Auth.\n * It will also handle unwrapping from the compat type if necessary\n *\n * @param auth Auth object passed in from developer\n */function _castAuth(e){return o(e)}class Subscription{constructor(e){this.auth=e;this.observer=null;this.addObserver=l((e=>this.observer=e))}get next(){_assert(this.observer,this.auth,\"internal-error\");return this.observer.next.bind(this.observer)}}\n/**\n * Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production\n * Firebase Auth services.\n *\n * @remarks\n * This must be called synchronously immediately following the first call to\n * {@link initializeAuth}.  Do not use with production credentials as emulator\n * traffic is not encrypted.\n *\n *\n * @example\n * ```javascript\n * connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true });\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param url - The URL at which the emulator is running (eg, 'http://localhost:9099').\n * @param options - Optional. `options.disableWarnings` defaults to `false`. Set it to\n * `true` to disable the warning banner attached to the DOM.\n *\n * @public\n */function connectAuthEmulator(e,t,n){const r=_castAuth(e);_assert(r._canInitEmulator,r,\"emulator-config-failed\");_assert(/^https?:\\/\\//.test(t),r,\"invalid-emulator-scheme\");const i=!!(null===n||void 0===n?void 0:n.disableWarnings);const s=extractProtocol(t);const{host:a,port:o}=extractHostAndPort(t);const c=null===o?\"\":`:${o}`;r.config.emulator={url:`${s}//${a}${c}/`};r.settings.appVerificationDisabledForTesting=true;r.emulatorConfig=Object.freeze({host:a,port:o,protocol:s.replace(\":\",\"\"),options:Object.freeze({disableWarnings:i})});i||emitEmulatorWarning()}function extractProtocol(e){const t=e.indexOf(\":\");return t<0?\"\":e.substr(0,t+1)}function extractHostAndPort(e){const t=extractProtocol(e);const n=/(\\/\\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:\"\",port:null};const r=n[2].split(\"@\").pop()||\"\";const i=/^(\\[[^\\]]+\\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:parsePort(r.substr(e.length+1))}}{const[e,t]=r.split(\":\");return{host:e,port:parsePort(t)}}}function parsePort(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function emitEmulatorWarning(){function attachBanner(){const e=document.createElement(\"p\");const t=e.style;e.innerText=\"Running in emulator mode. Do not use with production credentials.\";t.position=\"fixed\";t.width=\"100%\";t.backgroundColor=\"#ffffff\";t.border=\".1em solid #000000\";t.color=\"#b50000\";t.bottom=\"0px\";t.left=\"0px\";t.margin=\"0px\";t.zIndex=\"10000\";t.textAlign=\"center\";e.classList.add(\"firebase-emulator-warning\");document.body.appendChild(e)}\"undefined\"!==typeof console&&\"function\"===typeof console.info&&console.info(\"WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.\");\"undefined\"!==typeof window&&\"undefined\"!==typeof document&&(\"loading\"===document.readyState?window.addEventListener(\"DOMContentLoaded\",attachBanner):attachBanner())}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class AuthCredential{constructor(e,t){this.providerId=e;this.signInMethod=t}\n/**\n     * Returns a JSON-serializable representation of this object.\n     *\n     * @returns a JSON-serializable representation of this object.\n     */toJSON(){return debugFail(\"not implemented\")}_getIdTokenResponse(e){return debugFail(\"not implemented\")}_linkToIdToken(e,t){return debugFail(\"not implemented\")}_getReauthenticationResolver(e){return debugFail(\"not implemented\")}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function resetPassword(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:resetPassword\",_addTidIfNecessary(e,t))}async function updateEmailPassword(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:update\",t)}async function applyActionCode$1(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:update\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function signInWithPassword(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithPassword\",_addTidIfNecessary(e,t))}async function sendOobCode(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:sendOobCode\",_addTidIfNecessary(e,t))}async function sendEmailVerification$1(e,t){return sendOobCode(e,t)}async function sendPasswordResetEmail$1(e,t){return sendOobCode(e,t)}async function sendSignInLinkToEmail$1(e,t){return sendOobCode(e,t)}async function verifyAndChangeEmail(e,t){return sendOobCode(e,t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function signInWithEmailLink$1(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithEmailLink\",_addTidIfNecessary(e,t))}async function signInWithEmailLinkForLinking(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithEmailLink\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class EmailAuthCredential extends AuthCredential{constructor(e,t,n,r=null){super(\"password\",n);this._email=e;this._password=t;this._tenantId=r}static _fromEmailAndPassword(e,t){return new EmailAuthCredential(e,t,\"password\")}static _fromEmailAndCode(e,t,n=null){return new EmailAuthCredential(e,t,\"emailLink\",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}\n/**\n     * Static method to deserialize a JSON representation of an object into an {@link  AuthCredential}.\n     *\n     * @param json - Either `object` or the stringified representation of the object. When string is\n     * provided, `JSON.parse` would be called first.\n     *\n     * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\n     */static fromJSON(e){const t=\"string\"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if(\"password\"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if(\"emailLink\"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case\"password\":return signInWithPassword(e,{returnSecureToken:true,email:this._email,password:this._password});case\"emailLink\":return signInWithEmailLink$1(e,{email:this._email,oobCode:this._password});default:_fail(e,\"internal-error\")}}async _linkToIdToken(e,t){switch(this.signInMethod){case\"password\":return updateEmailPassword(e,{idToken:t,returnSecureToken:true,email:this._email,password:this._password});case\"emailLink\":return signInWithEmailLinkForLinking(e,{idToken:t,email:this._email,oobCode:this._password});default:_fail(e,\"internal-error\")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function signInWithIdp(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithIdp\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const V=\"http://localhost\";class OAuthCredential extends AuthCredential{constructor(){super(...arguments);this.pendingToken=null}static _fromParams(e){const t=new OAuthCredential(e.providerId,e.signInMethod);if(e.idToken||e.accessToken){e.idToken&&(t.idToken=e.idToken);e.accessToken&&(t.accessToken=e.accessToken);e.nonce&&!e.pendingToken&&(t.nonce=e.nonce);e.pendingToken&&(t.pendingToken=e.pendingToken)}else if(e.oauthToken&&e.oauthTokenSecret){t.accessToken=e.oauthToken;t.secret=e.oauthTokenSecret}else _fail(\"argument-error\");return t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}\n/**\n     * Static method to deserialize a JSON representation of an object into an\n     * {@link  AuthCredential}.\n     *\n     * @param json - Input can be either Object or the stringified representation of the object.\n     * When string is provided, JSON.parse would be called first.\n     *\n     * @returns If the JSON input does not represent an {@link  AuthCredential}, null is returned.\n     */static fromJSON(e){const t=\"string\"===typeof e?JSON.parse(e):e;const{providerId:n,signInMethod:r}=t,i=E(t,[\"providerId\",\"signInMethod\"]);if(!n||!r)return null;const s=new OAuthCredential(n,r);s.idToken=i.idToken||void 0;s.accessToken=i.accessToken||void 0;s.secret=i.secret;s.nonce=i.nonce;s.pendingToken=i.pendingToken||null;return s}_getIdTokenResponse(e){const t=this.buildRequest();return signInWithIdp(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();n.idToken=t;return signInWithIdp(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();t.autoCreate=false;return signInWithIdp(e,t)}buildRequest(){const e={requestUri:V,returnSecureToken:true};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken);this.accessToken&&(t.access_token=this.accessToken);this.secret&&(t.oauth_token_secret=this.secret);t.providerId=this.providerId;this.nonce&&!this.pendingToken&&(t.nonce=this.nonce);e.postBody=s(t)}return e}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function sendPhoneVerificationCode(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:sendVerificationCode\",_addTidIfNecessary(e,t))}async function signInWithPhoneNumber$1(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithPhoneNumber\",_addTidIfNecessary(e,t))}async function linkWithPhoneNumber$1(e,t){const n=await _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithPhoneNumber\",_addTidIfNecessary(e,t));if(n.temporaryProof)throw _makeTaggedError(e,\"account-exists-with-different-credential\",n);return n}const q={USER_NOT_FOUND:\"user-not-found\"};async function verifyPhoneNumberForExisting(e,t){const n=Object.assign(Object.assign({},t),{operation:\"REAUTH\"});return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithPhoneNumber\",_addTidIfNecessary(e,n),q)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class PhoneAuthCredential extends AuthCredential{constructor(e){super(\"phone\",\"phone\");this.params=e}static _fromVerification(e,t){return new PhoneAuthCredential({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new PhoneAuthCredential({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return signInWithPhoneNumber$1(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return linkWithPhoneNumber$1(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return verifyPhoneNumberForExisting(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber);this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof);this.params.verificationCode&&(e.verificationCode=this.params.verificationCode);this.params.verificationId&&(e.verificationId=this.params.verificationId);return e}static fromJSON(e){\"string\"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new PhoneAuthCredential({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Maps the mode string in action code URL to Action Code Info operation.\n *\n * @param mode\n */function parseMode(e){switch(e){case\"recoverEmail\":return\"RECOVER_EMAIL\";case\"resetPassword\":return\"PASSWORD_RESET\";case\"signIn\":return\"EMAIL_SIGNIN\";case\"verifyEmail\":return\"VERIFY_EMAIL\";case\"verifyAndChangeEmail\":return\"VERIFY_AND_CHANGE_EMAIL\";case\"revertSecondFactorAddition\":return\"REVERT_SECOND_FACTOR_ADDITION\";default:return null}}\n/**\n * Helper to parse FDL links\n *\n * @param url\n */function parseDeepLink(e){const t=h(p(e)).link;const n=t?h(p(t)).deep_link_id:null;const r=h(p(e)).deep_link_id;const i=r?h(p(r)).link:null;return i||r||n||t||e}class ActionCodeURL{\n/**\n     * @param actionLink - The link from which to extract the URL.\n     * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\n     *\n     * @internal\n     */\nconstructor(e){var t,n,r,i,s,a;const o=h(p(e));const c=null!==(t=o.apiKey)&&void 0!==t?t:null;const u=null!==(n=o.oobCode)&&void 0!==n?n:null;const d=parseMode(null!==(r=o.mode)&&void 0!==r?r:null);_assert(c&&u&&d,\"argument-error\");this.apiKey=c;this.operation=d;this.code=u;this.continueUrl=null!==(i=o.continueUrl)&&void 0!==i?i:null;this.languageCode=null!==(s=o.languageCode)&&void 0!==s?s:null;this.tenantId=null!==(a=o.tenantId)&&void 0!==a?a:null}\n/**\n     * Parses the email action link string and returns an {@link ActionCodeURL} if the link is valid,\n     * otherwise returns null.\n     *\n     * @param link  - The email action link string.\n     * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\n     *\n     * @public\n     */static parseLink(e){const t=parseDeepLink(e);try{return new ActionCodeURL(t)}catch(e){return null}}}function parseActionCodeURL(e){return ActionCodeURL.parseLink(e)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class EmailAuthProvider{constructor(){this.providerId=EmailAuthProvider.PROVIDER_ID}\n/**\n     * Initialize an {@link AuthCredential} using an email and password.\n     *\n     * @example\n     * ```javascript\n     * const authCredential = EmailAuthProvider.credential(email, password);\n     * const userCredential = await signInWithCredential(auth, authCredential);\n     * ```\n     *\n     * @example\n     * ```javascript\n     * const userCredential = await signInWithEmailAndPassword(auth, email, password);\n     * ```\n     *\n     * @param email - Email address.\n     * @param password - User account password.\n     * @returns The auth provider credential.\n     */static credential(e,t){return EmailAuthCredential._fromEmailAndPassword(e,t)}\n/**\n     * Initialize an {@link AuthCredential} using an email and an email link after a sign in with\n     * email link operation.\n     *\n     * @example\n     * ```javascript\n     * const authCredential = EmailAuthProvider.credentialWithLink(auth, email, emailLink);\n     * const userCredential = await signInWithCredential(auth, authCredential);\n     * ```\n     *\n     * @example\n     * ```javascript\n     * await sendSignInLinkToEmail(auth, email);\n     * // Obtain emailLink from user.\n     * const userCredential = await signInWithEmailLink(auth, email, emailLink);\n     * ```\n     *\n     * @param auth - The {@link Auth} instance used to verify the link.\n     * @param email - Email address.\n     * @param emailLink - Sign-in email link.\n     * @returns - The auth provider credential.\n     */static credentialWithLink(e,t){const n=ActionCodeURL.parseLink(t);_assert(n,\"argument-error\");return EmailAuthCredential._fromEmailAndCode(e,n.code,n.tenantId)}}EmailAuthProvider.PROVIDER_ID=\"password\";EmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD=\"password\";EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD=\"emailLink\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class FederatedAuthProvider{\n/**\n     * Constructor for generic OAuth providers.\n     *\n     * @param providerId - Provider for which credentials should be generated.\n     */\nconstructor(e){this.providerId=e;this.defaultLanguageCode=null;this.customParameters={}}\n/**\n     * Set the language gode.\n     *\n     * @param languageCode - language code\n     */setDefaultLanguage(e){this.defaultLanguageCode=e}\n/**\n     * Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in\n     * operations.\n     *\n     * @remarks\n     * For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`,\n     * `redirect_uri`, `scope`, `response_type`, and `state` are not allowed and will be ignored.\n     *\n     * @param customOAuthParameters - The custom OAuth parameters to pass in the OAuth request.\n     */setCustomParameters(e){this.customParameters=e;return this}getCustomParameters(){return this.customParameters}}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class BaseOAuthProvider extends FederatedAuthProvider{constructor(){super(...arguments);this.scopes=[]}\n/**\n     * Add an OAuth scope to the credential.\n     *\n     * @param scope - Provider OAuth scope to add.\n     */addScope(e){this.scopes.includes(e)||this.scopes.push(e);return this}getScopes(){return[...this.scopes]}}class OAuthProvider extends BaseOAuthProvider{\n/**\n     * Creates an {@link OAuthCredential} from a JSON string or a plain object.\n     * @param json - A plain object or a JSON string\n     */\nstatic credentialFromJSON(e){const t=\"string\"===typeof e?JSON.parse(e):e;_assert(\"providerId\"in t&&\"signInMethod\"in t,\"argument-error\");return OAuthCredential._fromParams(t)}\n/**\n     * Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.\n     *\n     * @remarks\n     * The raw nonce is required when an ID token with a nonce field is provided. The SHA-256 hash of\n     * the raw nonce must match the nonce field in the ID token.\n     *\n     * @example\n     * ```javascript\n     * // `googleUser` from the onsuccess Google Sign In callback.\n     * // Initialize a generate OAuth provider with a `google.com` providerId.\n     * const provider = new OAuthProvider('google.com');\n     * const credential = provider.credential({\n     *   idToken: googleUser.getAuthResponse().id_token,\n     * });\n     * const result = await signInWithCredential(credential);\n     * ```\n     *\n     * @param params - Either the options object containing the ID token, access token and raw nonce\n     * or the ID token string.\n     */credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){_assert(e.idToken||e.accessToken,\"argument-error\");return OAuthCredential._fromParams(Object.assign(Object.assign({},e),{providerId:this.providerId,signInMethod:this.providerId}))}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return OAuthProvider.oauthCredentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return OAuthProvider.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:s,providerId:a}=e;if(!n&&!r&&!t&&!i)return null;if(!a)return null;try{return new OAuthProvider(a)._credential({idToken:t,accessToken:n,nonce:s,pendingToken:i})}catch(e){return null}}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class FacebookAuthProvider extends BaseOAuthProvider{constructor(){super(\"facebook.com\")}\n/**\n     * Creates a credential for Facebook.\n     *\n     * @example\n     * ```javascript\n     * // `event` from the Facebook auth.authResponseChange callback.\n     * const credential = FacebookAuthProvider.credential(event.authResponse.accessToken);\n     * const result = await signInWithCredential(credential);\n     * ```\n     *\n     * @param accessToken - Facebook access token.\n     */static credential(e){return OAuthCredential._fromParams({providerId:FacebookAuthProvider.PROVIDER_ID,signInMethod:FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return FacebookAuthProvider.credentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return FacebookAuthProvider.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!(\"oauthAccessToken\"in e))return null;if(!e.oauthAccessToken)return null;try{return FacebookAuthProvider.credential(e.oauthAccessToken)}catch(e){return null}}}FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD=\"facebook.com\";FacebookAuthProvider.PROVIDER_ID=\"facebook.com\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class GoogleAuthProvider extends BaseOAuthProvider{constructor(){super(\"google.com\");this.addScope(\"profile\")}\n/**\n     * Creates a credential for Google. At least one of ID token and access token is required.\n     *\n     * @example\n     * ```javascript\n     * // \\`googleUser\\` from the onsuccess Google Sign In callback.\n     * const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);\n     * const result = await signInWithCredential(credential);\n     * ```\n     *\n     * @param idToken - Google ID token.\n     * @param accessToken - Google access token.\n     */static credential(e,t){return OAuthCredential._fromParams({providerId:GoogleAuthProvider.PROVIDER_ID,signInMethod:GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return GoogleAuthProvider.credentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return GoogleAuthProvider.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return GoogleAuthProvider.credential(t,n)}catch(e){return null}}}GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD=\"google.com\";GoogleAuthProvider.PROVIDER_ID=\"google.com\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class GithubAuthProvider extends BaseOAuthProvider{constructor(){super(\"github.com\")}\n/**\n     * Creates a credential for Github.\n     *\n     * @param accessToken - Github access token.\n     */static credential(e){return OAuthCredential._fromParams({providerId:GithubAuthProvider.PROVIDER_ID,signInMethod:GithubAuthProvider.GITHUB_SIGN_IN_METHOD,accessToken:e})}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return GithubAuthProvider.credentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return GithubAuthProvider.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!(\"oauthAccessToken\"in e))return null;if(!e.oauthAccessToken)return null;try{return GithubAuthProvider.credential(e.oauthAccessToken)}catch(e){return null}}}GithubAuthProvider.GITHUB_SIGN_IN_METHOD=\"github.com\";GithubAuthProvider.PROVIDER_ID=\"github.com\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const G=\"http://localhost\";class SAMLAuthCredential extends AuthCredential{constructor(e,t){super(e,e);this.pendingToken=t}_getIdTokenResponse(e){const t=this.buildRequest();return signInWithIdp(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();n.idToken=t;return signInWithIdp(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();t.autoCreate=false;return signInWithIdp(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}\n/**\n     * Static method to deserialize a JSON representation of an object into an\n     * {@link  AuthCredential}.\n     *\n     * @param json - Input can be either Object or the stringified representation of the object.\n     * When string is provided, JSON.parse would be called first.\n     *\n     * @returns If the JSON input does not represent an {@link  AuthCredential}, null is returned.\n     */static fromJSON(e){const t=\"string\"===typeof e?JSON.parse(e):e;const{providerId:n,signInMethod:r,pendingToken:i}=t;return n&&r&&i&&n===r?new SAMLAuthCredential(n,i):null}static _create(e,t){return new SAMLAuthCredential(e,t)}buildRequest(){return{requestUri:G,returnSecureToken:true,pendingToken:this.pendingToken}}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const j=\"saml.\";class SAMLAuthProvider extends FederatedAuthProvider{\n/**\n     * Constructor. The providerId must start with \"saml.\"\n     * @param providerId - SAML provider ID.\n     */\nconstructor(e){_assert(e.startsWith(j),\"argument-error\");super(e)}\n/**\n     * Generates an {@link AuthCredential} from a {@link UserCredential} after a\n     * successful SAML flow completes.\n     *\n     * @remarks\n     *\n     * For example, to get an {@link AuthCredential}, you could write the\n     * following code:\n     *\n     * ```js\n     * const userCredential = await signInWithPopup(auth, samlProvider);\n     * const credential = SAMLAuthProvider.credentialFromResult(userCredential);\n     * ```\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return SAMLAuthProvider.samlCredentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return SAMLAuthProvider.samlCredentialFromTaggedObject(e.customData||{})}\n/**\n     * Creates an {@link AuthCredential} from a JSON string or a plain object.\n     * @param json - A plain object or a JSON string\n     */static credentialFromJSON(e){const t=SAMLAuthCredential.fromJSON(e);_assert(t,\"argument-error\");return t}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{pendingToken:t,providerId:n}=e;if(!t||!n)return null;try{return SAMLAuthCredential._create(n,t)}catch(e){return null}}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class TwitterAuthProvider extends BaseOAuthProvider{constructor(){super(\"twitter.com\")}\n/**\n     * Creates a credential for Twitter.\n     *\n     * @param token - Twitter access token.\n     * @param secret - Twitter secret.\n     */static credential(e,t){return OAuthCredential._fromParams({providerId:TwitterAuthProvider.PROVIDER_ID,signInMethod:TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){return TwitterAuthProvider.credentialFromTaggedObject(e)}\n/**\n     * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n     * thrown during a sign-in, link, or reauthenticate operation.\n     *\n     * @param userCredential - The user credential.\n     */static credentialFromError(e){return TwitterAuthProvider.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return TwitterAuthProvider.credential(t,n)}catch(e){return null}}}TwitterAuthProvider.TWITTER_SIGN_IN_METHOD=\"twitter.com\";TwitterAuthProvider.PROVIDER_ID=\"twitter.com\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function signUp(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signUp\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class UserCredentialImpl{constructor(e){this.user=e.user;this.providerId=e.providerId;this._tokenResponse=e._tokenResponse;this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=false){const i=await UserImpl._fromIdTokenResponse(e,n,r);const s=providerIdForResponse(n);const a=new UserCredentialImpl({user:i,providerId:s,_tokenResponse:n,operationType:t});return a}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,true);const r=providerIdForResponse(n);return new UserCredentialImpl({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function providerIdForResponse(e){return e.providerId?e.providerId:\"phoneNumber\"in e?\"phone\":null}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Asynchronously signs in as an anonymous user.\n *\n * @remarks\n * If there is already an anonymous user signed in, that user will be returned; otherwise, a\n * new anonymous user identity will be created and returned.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */async function signInAnonymously(e){var t;const n=_castAuth(e);await n._initializationPromise;if(null===(t=n.currentUser)||void 0===t?void 0:t.isAnonymous)return new UserCredentialImpl({user:n.currentUser,providerId:null,operationType:\"signIn\"});const r=await signUp(n,{returnSecureToken:true});const i=await UserCredentialImpl._fromIdTokenResponse(n,\"signIn\",r,true);await n._updateCurrentUser(i.user);return i}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class MultiFactorError extends a{constructor(e,t,n,r){var i;super(t.code,t.message);this.operationType=n;this.user=r;Object.setPrototypeOf(this,MultiFactorError.prototype);this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new MultiFactorError(e,t,n,r)}}function _processCredentialSavingMfaContextIfNecessary(e,t,n,r){const i=\"reauthenticate\"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e);return i.catch((n=>{if(\"auth/multi-factor-auth-required\"===n.code)throw MultiFactorError._fromErrorAndOperation(e,n,t,r);throw n}))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function providerDataAsNames(e){return new Set(e.map((({providerId:e})=>e)).filter((e=>!!e)))}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Unlinks a provider from a user account.\n *\n * @param user - The user.\n * @param providerId - The provider to unlink.\n *\n * @public\n */async function unlink(e,t){const n=o(e);await _assertLinkedStatus(true,n,t);const{providerUserInfo:r}=await deleteLinkedAccounts(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]});const i=providerDataAsNames(r||[]);n.providerData=n.providerData.filter((e=>i.has(e.providerId)));i.has(\"phone\")||(n.phoneNumber=null);await n.auth._persistUserIfCurrent(n);return n}async function _link$1(e,t,n=false){const r=await _logoutIfInvalidated(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return UserCredentialImpl._forOperation(e,\"link\",r)}async function _assertLinkedStatus(e,t,n){await _reloadWithoutSaving(t);const r=providerDataAsNames(t.providerData);const i=false===e?\"provider-already-linked\":\"no-such-provider\";_assert(r.has(n)===e,t.auth,i)}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function _reauthenticate(e,t,n=false){var r;const{auth:i}=e;const s=\"reauthenticate\";try{const r=await _logoutIfInvalidated(e,_processCredentialSavingMfaContextIfNecessary(i,s,t,e),n);_assert(r.idToken,i,\"internal-error\");const a=_parseToken(r.idToken);_assert(a,i,\"internal-error\");const{sub:o}=a;_assert(e.uid===o,i,\"user-mismatch\");return UserCredentialImpl._forOperation(e,s,r)}catch(e){\"auth/user-not-found\"===(null===(r=e)||void 0===r?void 0:r.code)&&_fail(i,\"user-mismatch\");throw e}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function _signInWithCredential(e,t,n=false){const r=\"signIn\";const i=await _processCredentialSavingMfaContextIfNecessary(e,r,t);const s=await UserCredentialImpl._fromIdTokenResponse(e,r,i);n||await e._updateCurrentUser(s.user);return s}\n/**\n * Asynchronously signs in with the given credentials.\n *\n * @remarks\n * An {@link AuthProvider} can be used to generate the credential.\n *\n * @param auth - The {@link Auth} instance.\n * @param credential - The auth credential.\n *\n * @public\n */async function signInWithCredential(e,t){return _signInWithCredential(_castAuth(e),t)}\n/**\n * Links the user account with the given credentials.\n *\n * @remarks\n * An {@link AuthProvider} can be used to generate the credential.\n *\n * @param user - The user.\n * @param credential - The auth credential.\n *\n * @public\n */async function linkWithCredential(e,t){const n=o(e);await _assertLinkedStatus(false,n,t.providerId);return _link$1(n,t)}\n/**\n * Re-authenticates a user using a fresh credential.\n *\n * @remarks\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in\n * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error.\n *\n * @param user - The user.\n * @param credential - The auth credential.\n *\n * @public\n */async function reauthenticateWithCredential(e,t){return _reauthenticate(o(e),t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function signInWithCustomToken$1(e,t){return _performSignInRequest(e,\"POST\",\"/v1/accounts:signInWithCustomToken\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Asynchronously signs in using a custom token.\n *\n * @remarks\n * Custom tokens are used to integrate Firebase Auth with existing auth systems, and must\n * be generated by an auth backend using the\n * {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}\n * method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .\n *\n * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.\n *\n * @param auth - The {@link Auth} instance.\n * @param customToken - The custom token to sign in with.\n *\n * @public\n */async function signInWithCustomToken(e,t){const n=_castAuth(e);const r=await signInWithCustomToken$1(n,{token:t,returnSecureToken:true});const i=await UserCredentialImpl._fromIdTokenResponse(n,\"signIn\",r);await n._updateCurrentUser(i.user);return i}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class MultiFactorInfoImpl{constructor(e,t){this.factorId=e;this.uid=t.mfaEnrollmentId;this.enrollmentTime=new Date(t.enrolledAt).toUTCString();this.displayName=t.displayName}static _fromServerResponse(e,t){return\"phoneInfo\"in t?PhoneMultiFactorInfoImpl._fromServerResponse(e,t):_fail(e,\"internal-error\")}}class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl{constructor(e){super(\"phone\",e);this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new PhoneMultiFactorInfoImpl(t)}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _setActionCodeSettingsOnRequest(e,t,n){var r;_assert((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,\"invalid-continue-uri\");_assert(\"undefined\"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,\"invalid-dynamic-link-domain\");t.continueUrl=n.url;t.dynamicLinkDomain=n.dynamicLinkDomain;t.canHandleCodeInApp=n.handleCodeInApp;if(n.iOS){_assert(n.iOS.bundleId.length>0,e,\"missing-ios-bundle-id\");t.iOSBundleId=n.iOS.bundleId}if(n.android){_assert(n.android.packageName.length>0,e,\"missing-android-pkg-name\");t.androidInstallApp=n.android.installApp;t.androidMinimumVersionCode=n.android.minimumVersion;t.androidPackageName=n.android.packageName}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Sends a password reset email to the given email address.\n *\n * @remarks\n * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in\n * the email sent to the user, along with the new password specified by the user.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n *   url: 'https://www.example.com/?email=user@example.com',\n *   iOS: {\n *      bundleId: 'com.example.ios'\n *   },\n *   android: {\n *     packageName: 'com.example.android',\n *     installApp: true,\n *     minimumVersion: '12'\n *   },\n *   handleCodeInApp: true\n * };\n * await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain code from user.\n * await confirmPasswordReset('user@example.com', code);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */async function sendPasswordResetEmail(e,t,n){const r=o(e);const i={requestType:\"PASSWORD_RESET\",email:t};n&&_setActionCodeSettingsOnRequest(r,i,n);await sendPasswordResetEmail$1(r,i)}\n/**\n * Completes the password reset process, given a confirmation code and new password.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A confirmation code sent to the user.\n * @param newPassword - The new password.\n *\n * @public\n */async function confirmPasswordReset(e,t,n){await resetPassword(o(e),{oobCode:t,newPassword:n})}\n/**\n * Applies a verification code sent to the user by email or other out-of-band mechanism.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A verification code sent to the user.\n *\n * @public\n */async function applyActionCode(e,t){await applyActionCode$1(o(e),{oobCode:t})}\n/**\n * Checks a verification code sent to the user by email or other out-of-band mechanism.\n *\n * @returns metadata about the code.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A verification code sent to the user.\n *\n * @public\n */async function checkActionCode(e,t){const n=o(e);const r=await resetPassword(n,{oobCode:t});const i=r.requestType;_assert(i,n,\"internal-error\");switch(i){case\"EMAIL_SIGNIN\":break;case\"VERIFY_AND_CHANGE_EMAIL\":_assert(r.newEmail,n,\"internal-error\");break;case\"REVERT_SECOND_FACTOR_ADDITION\":_assert(r.mfaInfo,n,\"internal-error\");default:_assert(r.email,n,\"internal-error\")}let s=null;r.mfaInfo&&(s=MultiFactorInfoImpl._fromServerResponse(_castAuth(n),r.mfaInfo));return{data:{email:(\"VERIFY_AND_CHANGE_EMAIL\"===r.requestType?r.newEmail:r.email)||null,previousEmail:(\"VERIFY_AND_CHANGE_EMAIL\"===r.requestType?r.email:r.newEmail)||null,multiFactorInfo:s},operation:i}}\n/**\n * Checks a password reset code sent to the user by email or other out-of-band mechanism.\n *\n * @returns the user's email address if valid.\n *\n * @param auth - The {@link Auth} instance.\n * @param code - A verification code sent to the user.\n *\n * @public\n */async function verifyPasswordResetCode(e,t){const{data:n}=await checkActionCode(o(e),t);return n.email}\n/**\n * Creates a new user account associated with the specified email address and password.\n *\n * @remarks\n * On successful creation of the user account, this user will also be signed in to your application.\n *\n * User account creation can fail if the account already exists or the password is invalid.\n *\n * Note: The email address acts as a unique identifier for the user and enables an email-based\n * password reset. This function will create a new user account and set the initial user password.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param password - The user's chosen password.\n *\n * @public\n */async function createUserWithEmailAndPassword(e,t,n){const r=_castAuth(e);const i=await signUp(r,{returnSecureToken:true,email:t,password:n});const s=await UserCredentialImpl._fromIdTokenResponse(r,\"signIn\",i);await r._updateCurrentUser(s.user);return s}\n/**\n * Asynchronously signs in using an email and password.\n *\n * @remarks\n * Fails with an error if the email address and password do not match.\n *\n * Note: The user's password is NOT the password used to access the user's email account. The\n * email address serves as a unique identifier for the user, and the password is used to access\n * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The users email address.\n * @param password - The users password.\n *\n * @public\n */function signInWithEmailAndPassword(e,t,n){return signInWithCredential(o(e),EmailAuthProvider.credential(t,n))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Sends a sign-in email link to the user with the specified email.\n *\n * @remarks\n * The sign-in operation has to always be completed in the app unlike other out of band email\n * actions (password reset and email verifications). This is because, at the end of the flow,\n * the user is expected to be signed in and their Auth state persisted within the app.\n *\n * To complete sign in with the email link, call {@link signInWithEmailLink} with the email\n * address and the email link supplied in the email sent to the user.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n *   url: 'https://www.example.com/?email=user@example.com',\n *   iOS: {\n *      bundleId: 'com.example.ios'\n *   },\n *   android: {\n *     packageName: 'com.example.android',\n *     installApp: true,\n *     minimumVersion: '12'\n *   },\n *   handleCodeInApp: true\n * };\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain emailLink from the user.\n * if(isSignInWithEmailLink(auth, emailLink)) {\n *   await signInWithEmailLink(auth, 'user@example.com', emailLink);\n * }\n * ```\n *\n * @param authInternal - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */async function sendSignInLinkToEmail(e,t,n){const r=o(e);const i={requestType:\"EMAIL_SIGNIN\",email:t};_assert(n.handleCodeInApp,r,\"argument-error\");n&&_setActionCodeSettingsOnRequest(r,i,n);await sendSignInLinkToEmail$1(r,i)}\n/**\n * Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.\n *\n * @param auth - The {@link Auth} instance.\n * @param emailLink - The link sent to the user's email address.\n *\n * @public\n */function isSignInWithEmailLink(e,t){const n=ActionCodeURL.parseLink(t);return\"EMAIL_SIGNIN\"===(null===n||void 0===n?void 0:n.operation)}\n/**\n * Asynchronously signs in using an email and sign-in email link.\n *\n * @remarks\n * If no link is passed, the link is inferred from the current URL.\n *\n * Fails with an error if the email address is invalid or OTP in email link expires.\n *\n * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n *   url: 'https://www.example.com/?email=user@example.com',\n *   iOS: {\n *      bundleId: 'com.example.ios'\n *   },\n *   android: {\n *     packageName: 'com.example.android',\n *     installApp: true,\n *     minimumVersion: '12'\n *   },\n *   handleCodeInApp: true\n * };\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain emailLink from the user.\n * if(isSignInWithEmailLink(auth, emailLink)) {\n *   await signInWithEmailLink(auth, 'user@example.com', emailLink);\n * }\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param emailLink - The link sent to the user's email address.\n *\n * @public\n */async function signInWithEmailLink(e,t,n){const r=o(e);const i=EmailAuthProvider.credentialWithLink(t,n||_getCurrentUrl());_assert(i._tenantId===(r.tenantId||null),r,\"tenant-id-mismatch\");return signInWithCredential(r,i)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function createAuthUri(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:createAuthUri\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Gets the list of possible sign in methods for the given email address.\n *\n * @remarks\n * This is useful to differentiate methods of sign-in for the same provider, eg.\n * {@link EmailAuthProvider} which has 2 methods of sign-in,\n * {@link SignInMethod}.EMAIL_PASSWORD and\n * {@link SignInMethod}.EMAIL_LINK.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n *\n * @public\n */async function fetchSignInMethodsForEmail(e,t){const n=_isHttpOrHttps()?_getCurrentUrl():\"http://localhost\";const r={identifier:t,continueUri:n};const{signinMethods:i}=await createAuthUri(o(e),r);return i||[]}\n/**\n * Sends a verification email to a user.\n *\n * @remarks\n * The verification process is completed by calling {@link applyActionCode}.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n *   url: 'https://www.example.com/?email=user@example.com',\n *   iOS: {\n *      bundleId: 'com.example.ios'\n *   },\n *   android: {\n *     packageName: 'com.example.android',\n *     installApp: true,\n *     minimumVersion: '12'\n *   },\n *   handleCodeInApp: true\n * };\n * await sendEmailVerification(user, actionCodeSettings);\n * // Obtain code from the user.\n * await applyActionCode(auth, code);\n * ```\n *\n * @param user - The user.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */async function sendEmailVerification(e,t){const n=o(e);const r=await e.getIdToken();const i={requestType:\"VERIFY_EMAIL\",idToken:r};t&&_setActionCodeSettingsOnRequest(n.auth,i,t);const{email:s}=await sendEmailVerification$1(n.auth,i);s!==e.email&&await e.reload()}\n/**\n * Sends a verification email to a new email address.\n *\n * @remarks\n * The user's email will be updated to the new one after being verified.\n *\n * If you have a custom email action handler, you can complete the verification process by calling\n * {@link applyActionCode}.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n *   url: 'https://www.example.com/?email=user@example.com',\n *   iOS: {\n *      bundleId: 'com.example.ios'\n *   },\n *   android: {\n *     packageName: 'com.example.android',\n *     installApp: true,\n *     minimumVersion: '12'\n *   },\n *   handleCodeInApp: true\n * };\n * await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);\n * // Obtain code from the user.\n * await applyActionCode(auth, code);\n * ```\n *\n * @param user - The user.\n * @param newEmail - The new email address to be verified before update.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */async function verifyBeforeUpdateEmail(e,t,n){const r=o(e);const i=await e.getIdToken();const s={requestType:\"VERIFY_AND_CHANGE_EMAIL\",idToken:i,newEmail:t};n&&_setActionCodeSettingsOnRequest(r.auth,s,n);const{email:a}=await verifyAndChangeEmail(r.auth,s);a!==e.email&&await e.reload()}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function updateProfile$1(e,t){return _performApiRequest(e,\"POST\",\"/v1/accounts:update\",t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Updates a user's profile data.\n *\n * @param user - The user.\n * @param profile - The profile's `displayName` and `photoURL` to update.\n *\n * @public\n */async function updateProfile(e,{displayName:t,photoURL:n}){if(void 0===t&&void 0===n)return;const r=o(e);const i=await r.getIdToken();const s={idToken:i,displayName:t,photoUrl:n,returnSecureToken:true};const a=await _logoutIfInvalidated(r,updateProfile$1(r.auth,s));r.displayName=a.displayName||null;r.photoURL=a.photoUrl||null;const c=r.providerData.find((({providerId:e})=>\"password\"===e));if(c){c.displayName=r.displayName;c.photoURL=r.photoURL}await r._updateTokensIfNecessary(a)}\n/**\n * Updates the user's email address.\n *\n * @remarks\n * An email will be sent to the original email address (if it was set) that allows to revoke the\n * email address change, in order to protect them from account hijacking.\n *\n * Important: this is a security sensitive operation that requires the user to have recently signed\n * in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n * @param newEmail - The new email address.\n *\n * @public\n */function updateEmail(e,t){return updateEmailOrPassword(o(e),t,null)}\n/**\n * Updates the user's password.\n *\n * @remarks\n * Important: this is a security sensitive operation that requires the user to have recently signed\n * in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n * @param newPassword - The new password.\n *\n * @public\n */function updatePassword(e,t){return updateEmailOrPassword(o(e),null,t)}async function updateEmailOrPassword(e,t,n){const{auth:r}=e;const i=await e.getIdToken();const s={idToken:i,returnSecureToken:true};t&&(s.email=t);n&&(s.password=n);const a=await _logoutIfInvalidated(e,updateEmailPassword(r,s));await e._updateTokensIfNecessary(a,true)}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _fromIdTokenResponse(e){var t,n;if(!e)return null;const{providerId:r}=e;const i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{};const s=e.isNewUser||\"identitytoolkit#SignupNewUserResponse\"===e.kind;if(!r&&(null===e||void 0===e?void 0:e.idToken)){const r=null===(n=null===(t=_parseToken(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(r){const e=\"anonymous\"!==r&&\"custom\"!==r?r:null;return new GenericAdditionalUserInfo(s,e)}}if(!r)return null;switch(r){case\"facebook.com\":return new FacebookAdditionalUserInfo(s,i);case\"github.com\":return new GithubAdditionalUserInfo(s,i);case\"google.com\":return new GoogleAdditionalUserInfo(s,i);case\"twitter.com\":return new TwitterAdditionalUserInfo(s,i,e.screenName||null);case\"custom\":case\"anonymous\":return new GenericAdditionalUserInfo(s,null);default:return new GenericAdditionalUserInfo(s,r,i)}}class GenericAdditionalUserInfo{constructor(e,t,n={}){this.isNewUser=e;this.providerId=t;this.profile=n}}class FederatedAdditionalUserInfoWithUsername extends GenericAdditionalUserInfo{constructor(e,t,n,r){super(e,t,n);this.username=r}}class FacebookAdditionalUserInfo extends GenericAdditionalUserInfo{constructor(e,t){super(e,\"facebook.com\",t)}}class GithubAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername{constructor(e,t){super(e,\"github.com\",t,\"string\"===typeof(null===t||void 0===t?void 0:t.login)?null===t||void 0===t?void 0:t.login:null)}}class GoogleAdditionalUserInfo extends GenericAdditionalUserInfo{constructor(e,t){super(e,\"google.com\",t)}}class TwitterAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername{constructor(e,t,n){super(e,\"twitter.com\",t,n)}}\n/**\n * Extracts provider specific {@link AdditionalUserInfo} for the given credential.\n *\n * @param userCredential - The user credential.\n *\n * @public\n */function getAdditionalUserInfo(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:false,profile:null}:_fromIdTokenResponse(n)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Changes the type of persistence on the {@link Auth} instance for the currently saved\n * `Auth` session and applies this type of persistence for future sign-in requests, including\n * sign-in with redirect requests.\n *\n * @remarks\n * This makes it easy for a user signing in to specify whether their session should be\n * remembered or not. It also makes it easier to never persist the `Auth` state for applications\n * that are shared by other users or have sensitive data.\n *\n * @example\n * ```javascript\n * setPersistence(auth, browserSessionPersistence);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param persistence - The {@link Persistence} to use.\n * @returns A `Promise` that resolves once the persistence change has completed\n *\n * @public\n */function setPersistence(e,t){return o(e).setPersistence(t)}\n/**\n * Adds an observer for changes to the signed-in user's ID token.\n *\n * @remarks\n * This includes sign-in, sign-out, and token refresh events.\n *\n * @param auth - The {@link Auth} instance.\n * @param nextOrObserver - callback triggered on change.\n * @param error - Deprecated. This callback is never triggered. Errors\n * on signing in/out can be caught in promises returned from\n * sign-in/sign-out functions.\n * @param completed - Deprecated. This callback is never triggered.\n *\n * @public\n */function onIdTokenChanged(e,t,n,r){return o(e).onIdTokenChanged(t,n,r)}\n/**\n * Adds a blocking callback that runs before an auth state change\n * sets a new user.\n *\n * @param auth - The {@link Auth} instance.\n * @param callback - callback triggered before new user value is set.\n *   If this throws, it blocks the user from being set.\n * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`\n *   callback throws, allowing you to undo any side effects.\n */function beforeAuthStateChanged(e,t,n){return o(e).beforeAuthStateChanged(t,n)}\n/**\n * Adds an observer for changes to the user's sign-in state.\n *\n * @remarks\n * To keep the old behavior, see {@link onIdTokenChanged}.\n *\n * @param auth - The {@link Auth} instance.\n * @param nextOrObserver - callback triggered on change.\n * @param error - Deprecated. This callback is never triggered. Errors\n * on signing in/out can be caught in promises returned from\n * sign-in/sign-out functions.\n * @param completed - Deprecated. This callback is never triggered.\n *\n * @public\n */function onAuthStateChanged(e,t,n,r){return o(e).onAuthStateChanged(t,n,r)}\n/**\n * Sets the current language to the default device/browser preference.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */function useDeviceLanguage(e){o(e).useDeviceLanguage()}\n/**\n * Asynchronously sets the provided user as {@link Auth.currentUser} on the\n * {@link Auth} instance.\n *\n * @remarks\n * A new instance copy of the user provided will be made and set as currentUser.\n *\n * This will trigger {@link onAuthStateChanged} and {@link onIdTokenChanged} listeners\n * like other sign in methods.\n *\n * The operation fails with an error if the user to be updated belongs to a different Firebase\n * project.\n *\n * @param auth - The {@link Auth} instance.\n * @param user - The new {@link User}.\n *\n * @public\n */function updateCurrentUser(e,t){return o(e).updateCurrentUser(t)}\n/**\n * Signs out the current user.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */function signOut(e){return o(e).signOut()}\n/**\n * Deletes and signs out the user.\n *\n * @remarks\n * Important: this is a security-sensitive operation that requires the user to have recently\n * signed in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n *\n * @public\n */async function deleteUser(e){return o(e).delete()}class MultiFactorSessionImpl{constructor(e,t,n){this.type=e;this.credential=t;this.auth=n}static _fromIdtoken(e,t){return new MultiFactorSessionImpl(\"enroll\",e,t)}static _fromMfaPendingCredential(e){return new MultiFactorSessionImpl(\"signin\",e)}toJSON(){const e=\"enroll\"===this.type?\"idToken\":\"pendingCredential\";return{multiFactorSession:{[e]:this.credential}}}static fromJSON(e){var t,n;if(null===e||void 0===e?void 0:e.multiFactorSession){if(null===(t=e.multiFactorSession)||void 0===t?void 0:t.pendingCredential)return MultiFactorSessionImpl._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(null===(n=e.multiFactorSession)||void 0===n?void 0:n.idToken)return MultiFactorSessionImpl._fromIdtoken(e.multiFactorSession.idToken)}return null}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class MultiFactorResolverImpl{constructor(e,t,n){this.session=e;this.hints=t;this.signInResolver=n}static _fromError(e,t){const n=_castAuth(e);const r=t.customData._serverResponse;const i=(r.mfaInfo||[]).map((e=>MultiFactorInfoImpl._fromServerResponse(n,e)));_assert(r.mfaPendingCredential,n,\"internal-error\");const s=MultiFactorSessionImpl._fromMfaPendingCredential(r.mfaPendingCredential);return new MultiFactorResolverImpl(s,i,(async e=>{const i=await e._process(n,s);delete r.mfaInfo;delete r.mfaPendingCredential;const a=Object.assign(Object.assign({},r),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case\"signIn\":const e=await UserCredentialImpl._fromIdTokenResponse(n,t.operationType,a);await n._updateCurrentUser(e.user);return e;case\"reauthenticate\":_assert(t.user,n,\"internal-error\");return UserCredentialImpl._forOperation(t.user,t.operationType,a);default:_fail(n,\"internal-error\")}}))}async resolveSignIn(e){const t=e;return this.signInResolver(t)}}\n/**\n * Provides a {@link MultiFactorResolver} suitable for completion of a\n * multi-factor flow.\n *\n * @param auth - The {@link Auth} instance.\n * @param error - The {@link MultiFactorError} raised during a sign-in, or\n * reauthentication operation.\n *\n * @public\n */function getMultiFactorResolver(e,t){var n;const r=o(e);const i=t;_assert(t.customData.operationType,r,\"argument-error\");_assert(null===(n=i.customData._serverResponse)||void 0===n?void 0:n.mfaPendingCredential,r,\"argument-error\");return MultiFactorResolverImpl._fromError(r,i)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function startEnrollPhoneMfa(e,t){return _performApiRequest(e,\"POST\",\"/v2/accounts/mfaEnrollment:start\",_addTidIfNecessary(e,t))}function finalizeEnrollPhoneMfa(e,t){return _performApiRequest(e,\"POST\",\"/v2/accounts/mfaEnrollment:finalize\",_addTidIfNecessary(e,t))}function withdrawMfa(e,t){return _performApiRequest(e,\"POST\",\"/v2/accounts/mfaEnrollment:withdraw\",_addTidIfNecessary(e,t))}class MultiFactorUserImpl{constructor(e){this.user=e;this.enrolledFactors=[];e._onReload((t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map((t=>MultiFactorInfoImpl._fromServerResponse(e.auth,t))))}))}static _fromUser(e){return new MultiFactorUserImpl(e)}async getSession(){return MultiFactorSessionImpl._fromIdtoken(await this.user.getIdToken(),this.user.auth)}async enroll(e,t){const n=e;const r=await this.getSession();const i=await _logoutIfInvalidated(this.user,n._process(this.user.auth,r,t));await this.user._updateTokensIfNecessary(i);return this.user.reload()}async unenroll(e){var t;const n=\"string\"===typeof e?e:e.uid;const r=await this.user.getIdToken();const i=await _logoutIfInvalidated(this.user,withdrawMfa(this.user.auth,{idToken:r,mfaEnrollmentId:n}));this.enrolledFactors=this.enrolledFactors.filter((({uid:e})=>e!==n));await this.user._updateTokensIfNecessary(i);try{await this.user.reload()}catch(e){if(\"auth/user-token-expired\"!==(null===(t=e)||void 0===t?void 0:t.code))throw e}}}const H=new WeakMap;\n/**\n * The {@link MultiFactorUser} corresponding to the user.\n *\n * @remarks\n * This is used to access all multi-factor properties and operations related to the user.\n *\n * @param user - The user.\n *\n * @public\n */function multiFactor(e){const t=o(e);H.has(t)||H.set(t,MultiFactorUserImpl._fromUser(t));return H.get(t)}const z=\"__sak\";\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class BrowserPersistenceClass{constructor(e,t){this.storageRetriever=e;this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(false);this.storage.setItem(z,\"1\");this.storage.removeItem(z);return Promise.resolve(true)}catch(e){return Promise.resolve(false)}}_set(e,t){this.storage.setItem(e,JSON.stringify(t));return Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){this.storage.removeItem(e);return Promise.resolve()}get storage(){return this.storageRetriever()}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _iframeCannotSyncWebStorage(){const e=u();return _isSafari(e)||_isIOS(e)}const B=1e3;const K=10;class BrowserLocalPersistence extends BrowserPersistenceClass{constructor(){super((()=>window.localStorage),\"LOCAL\");this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t);this.listeners={};this.localCache={};this.pollTimer=null;this.safariLocalStorageNotSynced=_iframeCannotSyncWebStorage()&&_isIframe();this.fallbackToPolling=_isMobileBrowser();this._shouldAllowMigration=true}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t);const r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=false){if(!e.key){this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));return}const n=e.key;t?this.detachListener():this.stopPolling();if(this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const triggerListeners=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)};const r=this.storage.getItem(n);_isIE10()&&r!==e.newValue&&e.newValue!==e.oldValue?setTimeout(triggerListeners,K):triggerListeners()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling();this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent(\"storage\",{key:e,oldValue:t,newValue:n}),true)}))}),B)}stopPolling(){if(this.pollTimer){clearInterval(this.pollTimer);this.pollTimer=null}}attachListener(){window.addEventListener(\"storage\",this.boundEventHandler)}detachListener(){window.removeEventListener(\"storage\",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener());if(!this.listeners[e]){this.listeners[e]=new Set;this.localCache[e]=this.storage.getItem(e)}this.listeners[e].add(t)}_removeListener(e,t){if(this.listeners[e]){this.listeners[e].delete(t);0===this.listeners[e].size&&delete this.listeners[e]}if(0===Object.keys(this.listeners).length){this.detachListener();this.stopPolling()}}async _set(e,t){await super._set(e,t);this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);this.localCache[e]=JSON.stringify(t);return t}async _remove(e){await super._remove(e);delete this.localCache[e]}}BrowserLocalPersistence.type=\"LOCAL\";const $=BrowserLocalPersistence;\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class BrowserSessionPersistence extends BrowserPersistenceClass{constructor(){super((()=>window.sessionStorage),\"SESSION\")}_addListener(e,t){}_removeListener(e,t){}}BrowserSessionPersistence.type=\"SESSION\";const J=BrowserSessionPersistence;\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Shim for Promise.allSettled, note the slightly different format of `fulfilled` vs `status`.\n *\n * @param promises - Array of promises to wait on.\n */function _allSettled(e){return Promise.all(e.map((async e=>{try{const t=await e;return{fulfilled:true,value:t}}catch(e){return{fulfilled:false,reason:e}}})))}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Receiver{constructor(e){this.eventTarget=e;this.handlersMap={};this.boundEventHandler=this.handleEvent.bind(this)}\n/**\n     * Obtain an instance of a Receiver for a given event target, if none exists it will be created.\n     *\n     * @param eventTarget - An event target (such as window or self) through which the underlying\n     * messages will be received.\n     */static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new Receiver(e);this.receivers.push(n);return n}isListeningto(e){return this.eventTarget===e}\n/**\n     * Fans out a MessageEvent to the appropriate listeners.\n     *\n     * @remarks\n     * Sends an {@link Status.ACK} upon receipt and a {@link Status.DONE} once all handlers have\n     * finished processing.\n     *\n     * @param event - The MessageEvent.\n     *\n     */async handleEvent(e){const t=e;const{eventId:n,eventType:r,data:i}=t.data;const s=this.handlersMap[r];if(!(null===s||void 0===s?void 0:s.size))return;t.ports[0].postMessage({status:\"ack\",eventId:n,eventType:r});const a=Array.from(s).map((async e=>e(t.origin,i)));const o=await _allSettled(a);t.ports[0].postMessage({status:\"done\",eventId:n,eventType:r,response:o})}\n/**\n     * Subscribe an event handler for a particular event.\n     *\n     * @param eventType - Event name to subscribe to.\n     * @param eventHandler - The event handler which should receive the events.\n     *\n     */_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener(\"message\",this.boundEventHandler);this.handlersMap[e]||(this.handlersMap[e]=new Set);this.handlersMap[e].add(t)}\n/**\n     * Unsubscribe an event handler from a particular event.\n     *\n     * @param eventType - Event name to unsubscribe from.\n     * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.\n     *\n     */_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t);t&&0!==this.handlersMap[e].size||delete this.handlersMap[e];0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener(\"message\",this.boundEventHandler)}}Receiver.receivers=[];\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _generateEventId(e=\"\",t=10){let n=\"\";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class Sender{constructor(e){this.target=e;this.handlers=new Set}\n/**\n     * Unsubscribe the handler and remove it from our tracking Set.\n     *\n     * @param handler - The handler to unsubscribe.\n     */removeMessageHandler(e){if(e.messageChannel){e.messageChannel.port1.removeEventListener(\"message\",e.onMessage);e.messageChannel.port1.close()}this.handlers.delete(e)}\n/**\n     * Send a message to the Receiver located at {@link target}.\n     *\n     * @remarks\n     * We'll first wait a bit for an ACK , if we get one we will wait significantly longer until the\n     * receiver has had a chance to fully process the event.\n     *\n     * @param eventType - Type of event to send.\n     * @param data - The payload of the event.\n     * @param timeout - Timeout for waiting on an ACK from the receiver.\n     *\n     * @returns An array of settled promises from all the handlers that were listening on the receiver.\n     */async _send(e,t,n=50){const r=\"undefined\"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error(\"connection_unavailable\");let i;let s;return new Promise(((a,o)=>{const c=_generateEventId(\"\",20);r.port1.start();const u=setTimeout((()=>{o(new Error(\"unsupported_event\"))}),n);s={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case\"ack\":clearTimeout(u);i=setTimeout((()=>{o(new Error(\"timeout\"))}),3e3);break;case\"done\":clearTimeout(i);a(t.data.response);break;default:clearTimeout(u);clearTimeout(i);o(new Error(\"invalid_response\"));break}}};this.handlers.add(s);r.port1.addEventListener(\"message\",s.onMessage);this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])})).finally((()=>{s&&this.removeMessageHandler(s)}))}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _window(){return window}function _setWindowLocation(e){_window().location.href=e}\n/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _isWorker(){return\"undefined\"!==typeof _window().WorkerGlobalScope&&\"function\"===typeof _window().importScripts}async function _getActiveServiceWorker(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{const e=await navigator.serviceWorker.ready;return e.active}catch(e){return null}}function _getServiceWorkerController(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}function _getWorkerGlobalScope(){return _isWorker()?self:null}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const Y=\"firebaseLocalStorageDb\";const X=1;const Q=\"firebaseLocalStorage\";const Z=\"fbase_key\";class DBPromise{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener(\"success\",(()=>{e(this.request.result)}));this.request.addEventListener(\"error\",(()=>{t(this.request.error)}))}))}}function getObjectStore(e,t){return e.transaction([Q],t?\"readwrite\":\"readonly\").objectStore(Q)}function _deleteDatabase(){const e=indexedDB.deleteDatabase(Y);return new DBPromise(e).toPromise()}function _openDatabase(){const e=indexedDB.open(Y,X);return new Promise(((t,n)=>{e.addEventListener(\"error\",(()=>{n(e.error)}));e.addEventListener(\"upgradeneeded\",(()=>{const t=e.result;try{t.createObjectStore(Q,{keyPath:Z})}catch(e){n(e)}}));e.addEventListener(\"success\",(async()=>{const n=e.result;if(n.objectStoreNames.contains(Q))t(n);else{n.close();await _deleteDatabase();t(await _openDatabase())}}))}))}async function _putObject(e,t,n){const r=getObjectStore(e,true).put({[Z]:t,value:n});return new DBPromise(r).toPromise()}async function getObject(e,t){const n=getObjectStore(e,false).get(t);const r=await new DBPromise(n).toPromise();return void 0===r?null:r.value}function _deleteObject(e,t){const n=getObjectStore(e,true).delete(t);return new DBPromise(n).toPromise()}const ee=800;const te=3;class IndexedDBLocalPersistence{constructor(){this.type=\"LOCAL\";this._shouldAllowMigration=true;this.listeners={};this.localCache={};this.pollTimer=null;this.pendingWrites=0;this.receiver=null;this.sender=null;this.serviceWorkerReceiverAvailable=false;this.activeServiceWorker=null;this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){if(this.db)return this.db;this.db=await _openDatabase();return this.db}async _withRetries(e){let t=0;while(true)try{const t=await this._openDb();return await e(t)}catch(e){if(t++>te)throw e;if(this.db){this.db.close();this.db=void 0}}}async initializeServiceWorkerMessaging(){return _isWorker()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Receiver._getInstance(_getWorkerGlobalScope());this.receiver._subscribe(\"keyChanged\",(async(e,t)=>{const n=await this._poll();return{keyProcessed:n.includes(t.key)}}));this.receiver._subscribe(\"ping\",(async(e,t)=>[\"keyChanged\"]))}async initializeSender(){var e,t;this.activeServiceWorker=await _getActiveServiceWorker();if(!this.activeServiceWorker)return;this.sender=new Sender(this.activeServiceWorker);const n=await this.sender._send(\"ping\",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes(\"keyChanged\"))&&(this.serviceWorkerReceiverAvailable=true)}\n/**\n     * Let the worker know about a changed key, the exact key doesn't technically matter since the\n     * worker will just trigger a full sync anyway.\n     *\n     * @remarks\n     * For now, we only support one service worker per page.\n     *\n     * @param key - Storage key which changed.\n     */async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&_getServiceWorkerController()===this.activeServiceWorker)try{await this.sender._send(\"keyChanged\",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return false;const e=await _openDatabase();await _putObject(e,z,\"1\");await _deleteObject(e,z);return true}catch(e){}return false}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>{await this._withRetries((n=>_putObject(n,e,t)));this.localCache[e]=t;return this.notifyServiceWorker(e)}))}async _get(e){const t=await this._withRetries((t=>getObject(t,e)));this.localCache[e]=t;return t}async _remove(e){return this._withPendingWrite((async()=>{await this._withRetries((t=>_deleteObject(t,e)));delete this.localCache[e];return this.notifyServiceWorker(e)}))}async _poll(){const e=await this._withRetries((e=>{const t=getObjectStore(e,false).getAll();return new DBPromise(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[];const n=new Set;for(const{fbase_key:r,value:i}of e){n.add(r);if(JSON.stringify(this.localCache[r])!==JSON.stringify(i)){this.notifyListeners(r,i);t.push(r)}}for(const e of Object.keys(this.localCache))if(this.localCache[e]&&!n.has(e)){this.notifyListeners(e,null);t.push(e)}return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t)}startPolling(){this.stopPolling();this.pollTimer=setInterval((async()=>this._poll()),ee)}stopPolling(){if(this.pollTimer){clearInterval(this.pollTimer);this.pollTimer=null}}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling();if(!this.listeners[e]){this.listeners[e]=new Set;void this._get(e)}this.listeners[e].add(t)}_removeListener(e,t){if(this.listeners[e]){this.listeners[e].delete(t);0===this.listeners[e].size&&delete this.listeners[e]}0===Object.keys(this.listeners).length&&this.stopPolling()}}IndexedDBLocalPersistence.type=\"LOCAL\";const ne=IndexedDBLocalPersistence;\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function startSignInPhoneMfa(e,t){return _performApiRequest(e,\"POST\",\"/v2/accounts/mfaSignIn:start\",_addTidIfNecessary(e,t))}function finalizeSignInPhoneMfa(e,t){return _performApiRequest(e,\"POST\",\"/v2/accounts/mfaSignIn:finalize\",_addTidIfNecessary(e,t))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function getRecaptchaParams(e){return(await _performApiRequest(e,\"GET\",\"/v1/recaptchaParams\")).recaptchaSiteKey||\"\"}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function getScriptParentElement(){var e,t;return null!==(t=null===(e=document.getElementsByTagName(\"head\"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}function _loadJS(e){return new Promise(((t,n)=>{const r=document.createElement(\"script\");r.setAttribute(\"src\",e);r.onload=t;r.onerror=e=>{const t=_createError(\"internal-error\");t.customData=e;n(t)};r.type=\"text/javascript\";r.charset=\"UTF-8\";getScriptParentElement().appendChild(r)}))}function _generateCallbackName(e){return`__${e}${Math.floor(1e6*Math.random())}`}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const re=500;const ie=6e4;const se=1e12;class MockReCaptcha{constructor(e){this.auth=e;this.counter=se;this._widgets=new Map}render(e,t){const n=this.counter;this._widgets.set(n,new MockWidget(e,this.auth.name,t||{}));this.counter++;return n}reset(e){var t;const n=e||se;void(null===(t=this._widgets.get(n))||void 0===t?void 0:t.delete());this._widgets.delete(n)}getResponse(e){var t;const n=e||se;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||\"\"}async execute(e){var t;const n=e||se;void(null===(t=this._widgets.get(n))||void 0===t?void 0:t.execute());return\"\"}}class MockWidget{constructor(e,t,n){this.params=n;this.timerId=null;this.deleted=false;this.responseToken=null;this.clickHandler=()=>{this.execute()};const r=\"string\"===typeof e?document.getElementById(e):e;_assert(r,\"argument-error\",{appName:t});this.container=r;this.isVisible=\"invisible\"!==this.params.size;this.isVisible?this.execute():this.container.addEventListener(\"click\",this.clickHandler)}getResponse(){this.checkIfDeleted();return this.responseToken}delete(){this.checkIfDeleted();this.deleted=true;if(this.timerId){clearTimeout(this.timerId);this.timerId=null}this.container.removeEventListener(\"click\",this.clickHandler)}execute(){this.checkIfDeleted();this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=generateRandomAlphaNumericString(50);const{callback:e,\"expired-callback\":t}=this.params;if(e)try{e(this.responseToken)}catch(e){}this.timerId=window.setTimeout((()=>{this.timerId=null;this.responseToken=null;if(t)try{t()}catch(e){}this.isVisible&&this.execute()}),ie)}),re))}checkIfDeleted(){if(this.deleted)throw new Error(\"reCAPTCHA mock was already deleted!\")}}function generateRandomAlphaNumericString(e){const t=[];const n=\"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join(\"\")}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const ae=_generateCallbackName(\"rcb\");const oe=new Delay(3e4,6e4);const ce=\"https://www.google.com/recaptcha/api.js?\";class ReCaptchaLoaderImpl{constructor(){var e;this.hostLanguage=\"\";this.counter=0;this.librarySeparatelyLoaded=!!(null===(e=_window().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=\"\"){_assert(isHostLanguageValid(t),e,\"argument-error\");return this.shouldResolveImmediately(t)?Promise.resolve(_window().grecaptcha):new Promise(((n,r)=>{const i=_window().setTimeout((()=>{r(_createError(e,\"network-request-failed\"))}),oe.get());_window()[ae]=()=>{_window().clearTimeout(i);delete _window()[ae];const s=_window().grecaptcha;if(!s){r(_createError(e,\"internal-error\"));return}const a=s.render;s.render=(e,t)=>{const n=a(e,t);this.counter++;return n};this.hostLanguage=t;n(s)};const a=`${ce}?${s({onload:ae,render:\"explicit\",hl:t})}`;_loadJS(a).catch((()=>{clearTimeout(i);r(_createError(e,\"internal-error\"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=_window().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}function isHostLanguageValid(e){return e.length<=6&&/^\\s*[a-zA-Z0-9\\-]*\\s*$/.test(e)}class MockReCaptchaLoaderImpl{async load(e){return new MockReCaptcha(e)}clearedOneInstance(){}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const ue=\"recaptcha\";const de={theme:\"light\",type:\"image\"};class RecaptchaVerifier{\n/**\n     *\n     * @param containerOrId - The reCAPTCHA container parameter.\n     *\n     * @remarks\n     * This has different meaning depending on whether the reCAPTCHA is hidden or visible. For a\n     * visible reCAPTCHA the container must be empty. If a string is used, it has to correspond to\n     * an element ID. The corresponding element must also must be in the DOM at the time of\n     * initialization.\n     *\n     * @param parameters - The optional reCAPTCHA parameters.\n     *\n     * @remarks\n     * Check the reCAPTCHA docs for a comprehensive list. All parameters are accepted except for\n     * the sitekey. Firebase Auth backend provisions a reCAPTCHA for each project and will\n     * configure this upon rendering. For an invisible reCAPTCHA, a size key must have the value\n     * 'invisible'.\n     *\n     * @param authExtern - The corresponding Firebase {@link Auth} instance.\n     */\nconstructor(e,t=Object.assign({},de),n){this.parameters=t;this.type=ue;this.destroyed=false;this.widgetId=null;this.tokenChangeListeners=new Set;this.renderPromise=null;this.recaptcha=null;this.auth=_castAuth(n);this.isInvisible=\"invisible\"===this.parameters.size;_assert(\"undefined\"!==typeof document,this.auth,\"operation-not-supported-in-this-environment\");const r=\"string\"===typeof e?document.getElementById(e):e;_assert(r,this.auth,\"argument-error\");this.container=r;this.parameters.callback=this.makeTokenCallback(this.parameters.callback);this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new MockReCaptchaLoaderImpl:new ReCaptchaLoaderImpl;this.validateStartingState()}\n/**\n     * Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.\n     *\n     * @returns A Promise for the reCAPTCHA token.\n     */async verify(){this.assertNotDestroyed();const e=await this.render();const t=this.getAssertedRecaptcha();const n=t.getResponse(e);return n||new Promise((n=>{const tokenChange=e=>{if(e){this.tokenChangeListeners.delete(tokenChange);n(e)}};this.tokenChangeListeners.add(tokenChange);this.isInvisible&&t.execute(e)}))}\n/**\n     * Renders the reCAPTCHA widget on the page.\n     *\n     * @returns A Promise that resolves with the reCAPTCHA widget ID.\n     */render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}if(this.renderPromise)return this.renderPromise;this.renderPromise=this.makeRenderPromise().catch((e=>{this.renderPromise=null;throw e}));return this.renderPromise}_reset(){this.assertNotDestroyed();null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed();this.destroyed=true;this._recaptchaLoader.clearedOneInstance();this.isInvisible||this.container.childNodes.forEach((e=>{this.container.removeChild(e)}))}validateStartingState(){_assert(!this.parameters.sitekey,this.auth,\"argument-error\");_assert(this.isInvisible||!this.container.hasChildNodes(),this.auth,\"argument-error\");_assert(\"undefined\"!==typeof document,this.auth,\"operation-not-supported-in-this-environment\")}makeTokenCallback(e){return t=>{this.tokenChangeListeners.forEach((e=>e(t)));if(\"function\"===typeof e)e(t);else if(\"string\"===typeof e){const n=_window()[e];\"function\"===typeof n&&n(t)}}}assertNotDestroyed(){_assert(!this.destroyed,this.auth,\"internal-error\")}async makeRenderPromise(){await this.init();if(!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement(\"div\");e.appendChild(t);e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){_assert(_isHttpOrHttps()&&!_isWorker(),this.auth,\"internal-error\");await domReady();this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await getRecaptchaParams(this.auth);_assert(e,this.auth,\"internal-error\");this.parameters.sitekey=e}getAssertedRecaptcha(){_assert(this.recaptcha,this.auth,\"internal-error\");return this.recaptcha}}function domReady(){let e=null;return new Promise((t=>{if(\"complete\"!==document.readyState){e=()=>t();window.addEventListener(\"load\",e)}else t()})).catch((t=>{e&&window.removeEventListener(\"load\",e);throw t}))}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class ConfirmationResultImpl{constructor(e,t){this.verificationId=e;this.onConfirmation=t}confirm(e){const t=PhoneAuthCredential._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}\n/**\n * Asynchronously signs in using a phone number.\n *\n * @remarks\n * This method sends a code via SMS to the given\n * phone number, and returns a {@link ConfirmationResult}. After the user\n * provides the code sent to their phone, call {@link ConfirmationResult.confirm}\n * with the code to sign the user in.\n *\n * For abuse prevention, this method also requires a {@link ApplicationVerifier}.\n * This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.\n * This function can work on other platforms that do not support the\n * {@link RecaptchaVerifier} (like React Native), but you need to use a\n * third-party {@link ApplicationVerifier} implementation.\n *\n * @example\n * ```javascript\n * // 'recaptcha-container' is the ID of an element in the DOM.\n * const applicationVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container');\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n * // Obtain a verificationCode from the user.\n * const credential = await confirmationResult.confirm(verificationCode);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */async function signInWithPhoneNumber(e,t,n){const r=_castAuth(e);const i=await _verifyPhoneNumber(r,t,o(n));return new ConfirmationResultImpl(i,(e=>signInWithCredential(r,e)))}\n/**\n * Links the user account with the given phone number.\n *\n * @param user - The user.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */async function linkWithPhoneNumber(e,t,n){const r=o(e);await _assertLinkedStatus(false,r,\"phone\");const i=await _verifyPhoneNumber(r.auth,t,o(n));return new ConfirmationResultImpl(i,(e=>linkWithCredential(r,e)))}\n/**\n * Re-authenticates a user using a fresh phone credential.\n *\n * @remarks Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.\n *\n * @param user - The user.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */async function reauthenticateWithPhoneNumber(e,t,n){const r=o(e);const i=await _verifyPhoneNumber(r.auth,t,o(n));return new ConfirmationResultImpl(i,(e=>reauthenticateWithCredential(r,e)))}async function _verifyPhoneNumber(e,t,n){var r;const i=await n.verify();try{_assert(\"string\"===typeof i,e,\"argument-error\");_assert(n.type===ue,e,\"argument-error\");let s;s=\"string\"===typeof t?{phoneNumber:t}:t;if(\"session\"in s){const t=s.session;if(\"phoneNumber\"in s){_assert(\"enroll\"===t.type,e,\"internal-error\");const n=await startEnrollPhoneMfa(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:s.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{_assert(\"signin\"===t.type,e,\"internal-error\");const n=(null===(r=s.multiFactorHint)||void 0===r?void 0:r.uid)||s.multiFactorUid;_assert(n,e,\"missing-multi-factor-info\");const a=await startSignInPhoneMfa(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await sendPhoneVerificationCode(e,{phoneNumber:s.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}\n/**\n * Updates the user's phone number.\n *\n * @example\n * ```\n * // 'recaptcha-container' is the ID of an element in the DOM.\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\n * // Obtain the verificationCode from the user.\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n * await updatePhoneNumber(user, phoneCredential);\n * ```\n *\n * @param user - The user.\n * @param credential - A credential authenticating the new phone number.\n *\n * @public\n */async function updatePhoneNumber(e,t){await _link$1(o(e),t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class PhoneAuthProvider{\n/**\n     * @param auth - The Firebase {@link Auth} instance in which sign-ins should occur.\n     *\n     */\nconstructor(e){this.providerId=PhoneAuthProvider.PROVIDER_ID;this.auth=_castAuth(e)}\n/**\n     *\n     * Starts a phone number authentication flow by sending a verification code to the given phone\n     * number.\n     *\n     * @example\n     * ```javascript\n     * const provider = new PhoneAuthProvider(auth);\n     * const verificationId = await provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\n     * // Obtain verificationCode from the user.\n     * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n     * const userCredential = await signInWithCredential(auth, authCredential);\n     * ```\n     *\n     * @example\n     * An alternative flow is provided using the `signInWithPhoneNumber` method.\n     * ```javascript\n     * const confirmationResult = signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n     * // Obtain verificationCode from the user.\n     * const userCredential = confirmationResult.confirm(verificationCode);\n     * ```\n     *\n     * @param phoneInfoOptions - The user's {@link PhoneInfoOptions}. The phone number should be in\n     * E.164 format (e.g. +16505550101).\n     * @param applicationVerifier - For abuse prevention, this method also requires a\n     * {@link ApplicationVerifier}. This SDK includes a reCAPTCHA-based implementation,\n     * {@link RecaptchaVerifier}.\n     *\n     * @returns A Promise for a verification ID that can be passed to\n     * {@link PhoneAuthProvider.credential} to identify this flow..\n     */verifyPhoneNumber(e,t){return _verifyPhoneNumber(this.auth,e,o(t))}\n/**\n     * Creates a phone auth credential, given the verification ID from\n     * {@link PhoneAuthProvider.verifyPhoneNumber} and the code that was sent to the user's\n     * mobile device.\n     *\n     * @example\n     * ```javascript\n     * const provider = new PhoneAuthProvider(auth);\n     * const verificationId = provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\n     * // Obtain verificationCode from the user.\n     * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n     * const userCredential = signInWithCredential(auth, authCredential);\n     * ```\n     *\n     * @example\n     * An alternative flow is provided using the `signInWithPhoneNumber` method.\n     * ```javascript\n     * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n     * // Obtain verificationCode from the user.\n     * const userCredential = await confirmationResult.confirm(verificationCode);\n     * ```\n     *\n     * @param verificationId - The verification ID returned from {@link PhoneAuthProvider.verifyPhoneNumber}.\n     * @param verificationCode - The verification code sent to the user's mobile device.\n     *\n     * @returns The auth provider credential.\n     */static credential(e,t){return PhoneAuthCredential._fromVerification(e,t)}\n/**\n     * Generates an {@link AuthCredential} from a {@link UserCredential}.\n     * @param userCredential - The user credential.\n     */static credentialFromResult(e){const t=e;return PhoneAuthProvider.credentialFromTaggedObject(t)}\n/**\n     * Returns an {@link AuthCredential} when passed an error.\n     *\n     * @remarks\n     *\n     * This method works for errors like\n     * `auth/account-exists-with-different-credentials`. This is useful for\n     * recovering when attempting to set a user's phone number but the number\n     * in question is already tied to another account. For example, the following\n     * code tries to update the current user's phone number, and if that\n     * fails, links the user with the account associated with that number:\n     *\n     * ```js\n     * const provider = new PhoneAuthProvider(auth);\n     * const verificationId = await provider.verifyPhoneNumber(number, verifier);\n     * try {\n     *   const code = ''; // Prompt the user for the verification code\n     *   await updatePhoneNumber(\n     *       auth.currentUser,\n     *       PhoneAuthProvider.credential(verificationId, code));\n     * } catch (e) {\n     *   if ((e as FirebaseError)?.code === 'auth/account-exists-with-different-credential') {\n     *     const cred = PhoneAuthProvider.credentialFromError(e);\n     *     await linkWithCredential(auth.currentUser, cred);\n     *   }\n     * }\n     *\n     * // At this point, auth.currentUser.phoneNumber === number.\n     * ```\n     *\n     * @param error - The error to generate a credential from.\n     */static credentialFromError(e){return PhoneAuthProvider.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?PhoneAuthCredential._fromTokenResponse(t,n):null}}PhoneAuthProvider.PROVIDER_ID=\"phone\";PhoneAuthProvider.PHONE_SIGN_IN_METHOD=\"phone\";\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function _withDefaultResolver(e,t){if(t)return _getInstance(t);_assert(e._popupRedirectResolver,e,\"argument-error\");return e._popupRedirectResolver}\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class IdpCredential extends AuthCredential{constructor(e){super(\"custom\",\"custom\");this.params=e}_getIdTokenResponse(e){return signInWithIdp(e,this._buildIdpRequest())}_linkToIdToken(e,t){return signInWithIdp(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return signInWithIdp(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:true,returnIdpCredential:true};e&&(t.idToken=e);return t}}function _signIn(e){return _signInWithCredential(e.auth,new IdpCredential(e),e.bypassAuthState)}function _reauth(e){const{auth:t,user:n}=e;_assert(n,t,\"internal-error\");return _reauthenticate(n,new IdpCredential(e),e.bypassAuthState)}async function _link(e){const{auth:t,user:n}=e;_assert(n,t,\"internal-error\");return _link$1(n,new IdpCredential(e),e.bypassAuthState)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class AbstractPopupRedirectOperation{constructor(e,t,n,r,i=false){this.auth=e;this.resolver=n;this.user=r;this.bypassAuthState=i;this.pendingPromise=null;this.eventManager=null;this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth);await this.onExecution();this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:s,type:a}=e;if(s){this.reject(s);return}const o={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case\"signInViaPopup\":case\"signInViaRedirect\":return _signIn;case\"linkViaPopup\":case\"linkViaRedirect\":return _link;case\"reauthViaPopup\":case\"reauthViaRedirect\":return _reauth;default:_fail(this.auth,\"internal-error\")}}resolve(e){debugAssert(this.pendingPromise,\"Pending promise was never set\");this.pendingPromise.resolve(e);this.unregisterAndCleanUp()}reject(e){debugAssert(this.pendingPromise,\"Pending promise was never set\");this.pendingPromise.reject(e);this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this);this.pendingPromise=null;this.cleanUp()}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const le=new Delay(2e3,1e4);\n/**\n * Authenticates a Firebase client using a popup-based OAuth authentication flow.\n *\n * @remarks\n * If succeeds, returns the signed in user along with the provider's credential. If sign in was\n * unsuccessful, returns an error object containing additional information about the error.\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n *\n * @public\n */async function signInWithPopup(e,t,n){const r=_castAuth(e);_assertInstanceOf(e,t,FederatedAuthProvider);const i=_withDefaultResolver(r,n);const s=new PopupOperation(r,\"signInViaPopup\",t,i);return s.executeNotNull()}\n/**\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a pop-up based\n * OAuth flow.\n *\n * @remarks\n * If the reauthentication is successful, the returned result will contain the user and the\n * provider's credential.\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithPopup(auth, provider);\n * // Reauthenticate using a popup.\n * await reauthenticateWithPopup(result.user, provider);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */async function reauthenticateWithPopup(e,t,n){const r=o(e);_assertInstanceOf(r.auth,t,FederatedAuthProvider);const i=_withDefaultResolver(r.auth,n);const s=new PopupOperation(r.auth,\"reauthViaPopup\",t,i,r);return s.executeNotNull()}\n/**\n * Links the authenticated provider to the user account using a pop-up based OAuth flow.\n *\n * @remarks\n * If the linking is successful, the returned result will contain the user and the provider's credential.\n *\n *\n * @example\n * ```javascript\n * // Sign in using some other provider.\n * const result = await signInWithEmailAndPassword(auth, email, password);\n * // Link using a popup.\n * const provider = new FacebookAuthProvider();\n * await linkWithPopup(result.user, provider);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */async function linkWithPopup(e,t,n){const r=o(e);_assertInstanceOf(r.auth,t,FederatedAuthProvider);const i=_withDefaultResolver(r.auth,n);const s=new PopupOperation(r.auth,\"linkViaPopup\",t,i,r);return s.executeNotNull()}class PopupOperation extends AbstractPopupRedirectOperation{constructor(e,t,n,r,i){super(e,t,r,i);this.provider=n;this.authWindow=null;this.pollId=null;PopupOperation.currentPopupAction&&PopupOperation.currentPopupAction.cancel();PopupOperation.currentPopupAction=this}async executeNotNull(){const e=await this.execute();_assert(e,this.auth,\"internal-error\");return e}async onExecution(){debugAssert(1===this.filter.length,\"Popup operations only handle one event\");const e=_generateEventId();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e);this.authWindow.associatedEvent=e;this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)}));this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(_createError(this.auth,\"web-storage-unsupported\"))}));this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(_createError(this.auth,\"cancelled-popup-request\"))}cleanUp(){this.authWindow&&this.authWindow.close();this.pollId&&window.clearTimeout(this.pollId);this.authWindow=null;this.pollId=null;PopupOperation.currentPopupAction=null}pollUserCancellation(){const poll=()=>{var e,t;(null===(t=null===(e=this.authWindow)||void 0===e?void 0:e.window)||void 0===t?void 0:t.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null;this.reject(_createError(this.auth,\"popup-closed-by-user\"))}),2e3):this.pollId=window.setTimeout(poll,le.get())};poll()}}PopupOperation.currentPopupAction=null;\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const he=\"pendingRedirect\";const pe=new Map;class RedirectAction extends AbstractPopupRedirectOperation{constructor(e,t,n=false){super(e,[\"signInViaRedirect\",\"linkViaRedirect\",\"reauthViaRedirect\",\"unknown\"],t,void 0,n);this.eventId=null}async execute(){let e=pe.get(this.auth._key());if(!e){try{const t=await _getAndClearPendingRedirectStatus(this.resolver,this.auth);const n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}pe.set(this.auth._key(),e)}this.bypassAuthState||pe.set(this.auth._key(),(()=>Promise.resolve(null)));return e()}async onAuthEvent(e){if(\"signInViaRedirect\"===e.type)return super.onAuthEvent(e);if(\"unknown\"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t){this.user=t;return super.onAuthEvent(e)}this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function _getAndClearPendingRedirectStatus(e,t){const n=pendingRedirectKey(t);const r=resolverPersistence(e);if(!await r._isAvailable())return false;const i=\"true\"===await r._get(n);await r._remove(n);return i}async function _setPendingRedirectStatus(e,t){return resolverPersistence(e)._set(pendingRedirectKey(t),\"true\")}function _clearRedirectOutcomes(){pe.clear()}function _overrideRedirectResult(e,t){pe.set(e._key(),t)}function resolverPersistence(e){return _getInstance(e._redirectPersistence)}function pendingRedirectKey(e){return _persistenceKeyName(he,e.config.apiKey,e.name)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Authenticates a Firebase client using a full-page redirect flow.\n *\n * @remarks\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * // You can add additional scopes to the provider:\n * provider.addScope('user_birthday');\n * // Start a sign in process for an unauthenticated user.\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n *   // This is the signed-in user\n *   const user = result.user;\n *   // This gives you a Facebook Access Token.\n *   const credential = provider.credentialFromResult(auth, result);\n *   const token = credential.accessToken;\n * }\n * // As this API can be used for sign-in, linking and reauthentication,\n * // check the operationType to determine what triggered this redirect\n * // operation.\n * const operationType = result.operationType;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */function signInWithRedirect(e,t,n){return _signInWithRedirect(e,t,n)}async function _signInWithRedirect(e,t,n){const r=_castAuth(e);_assertInstanceOf(e,t,FederatedAuthProvider);const i=_withDefaultResolver(r,n);await _setPendingRedirectStatus(i,r);return i._openRedirect(r,t,\"signInViaRedirect\")}\n/**\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * // Link using a redirect.\n * await linkWithRedirect(result.user, provider);\n * // This will again trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */function reauthenticateWithRedirect(e,t,n){return _reauthenticateWithRedirect(e,t,n)}async function _reauthenticateWithRedirect(e,t,n){const r=o(e);_assertInstanceOf(r.auth,t,FederatedAuthProvider);const i=_withDefaultResolver(r.auth,n);await _setPendingRedirectStatus(i,r.auth);const s=await prepareUserForRedirect(r);return i._openRedirect(r.auth,t,\"reauthViaRedirect\",s)}\n/**\n * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.\n *\n * @example\n * ```javascript\n * // Sign in using some other provider.\n * const result = await signInWithEmailAndPassword(auth, email, password);\n * // Link using a redirect.\n * const provider = new FacebookAuthProvider();\n * await linkWithRedirect(result.user, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n *\n * @public\n */function linkWithRedirect(e,t,n){return _linkWithRedirect(e,t,n)}async function _linkWithRedirect(e,t,n){const r=o(e);_assertInstanceOf(r.auth,t,FederatedAuthProvider);const i=_withDefaultResolver(r.auth,n);await _assertLinkedStatus(false,r,t.providerId);await _setPendingRedirectStatus(i,r.auth);const s=await prepareUserForRedirect(r);return i._openRedirect(r.auth,t,\"linkViaRedirect\",s)}\n/**\n * Returns a {@link UserCredential} from the redirect-based sign-in flow.\n *\n * @remarks\n * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an\n * error. If no redirect operation was called, returns `null`.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * // You can add additional scopes to the provider:\n * provider.addScope('user_birthday');\n * // Start a sign in process for an unauthenticated user.\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n *   // This is the signed-in user\n *   const user = result.user;\n *   // This gives you a Facebook Access Token.\n *   const credential = provider.credentialFromResult(auth, result);\n *   const token = credential.accessToken;\n * }\n * // As this API can be used for sign-in, linking and reauthentication,\n * // check the operationType to determine what triggered this redirect\n * // operation.\n * const operationType = result.operationType;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */async function getRedirectResult(e,t){await _castAuth(e)._initializationPromise;return _getRedirectResult(e,t,false)}async function _getRedirectResult(e,t,n=false){const r=_castAuth(e);const i=_withDefaultResolver(r,t);const s=new RedirectAction(r,i,n);const a=await s.execute();if(a&&!n){delete a.user._redirectEventId;await r._persistUserIfCurrent(a.user);await r._setRedirectUser(null,t)}return a}async function prepareUserForRedirect(e){const t=_generateEventId(`${e.uid}:::`);e._redirectEventId=t;await e.auth._setRedirectUser(e);await e.auth._persistUserIfCurrent(e);return t}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const fe=6e5;class AuthEventManager{constructor(e){this.auth=e;this.cachedEventUids=new Set;this.consumers=new Set;this.queuedRedirectEvent=null;this.hasHandledPotentialRedirect=false;this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e);if(this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)){this.sendToConsumer(this.queuedRedirectEvent,e);this.saveEventToCache(this.queuedRedirectEvent);this.queuedRedirectEvent=null}}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return false;let t=false;this.consumers.forEach((n=>{if(this.isEventForConsumer(e,n)){t=true;this.sendToConsumer(e,n);this.saveEventToCache(e)}}));if(this.hasHandledPotentialRedirect||!isRedirectEvent(e))return t;this.hasHandledPotentialRedirect=true;if(!t){this.queuedRedirectEvent=e;t=true}return t}sendToConsumer(e,t){var n;if(e.error&&!isNullRedirectEvent(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split(\"auth/\")[1])||\"internal-error\";t.onError(_createError(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){Date.now()-this.lastProcessedEventTime>=fe&&this.cachedEventUids.clear();return this.cachedEventUids.has(eventUid(e))}saveEventToCache(e){this.cachedEventUids.add(eventUid(e));this.lastProcessedEventTime=Date.now()}}function eventUid(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join(\"-\")}function isNullRedirectEvent({type:e,error:t}){return\"unknown\"===e&&\"auth/no-auth-event\"===(null===t||void 0===t?void 0:t.code)}function isRedirectEvent(e){switch(e.type){case\"signInViaRedirect\":case\"linkViaRedirect\":case\"reauthViaRedirect\":return true;case\"unknown\":return isNullRedirectEvent(e);default:return false}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function _getProjectConfig(e,t={}){return _performApiRequest(e,\"GET\",\"/v1/projects\",t)}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const me=/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/;const ge=/^https?/;async function _validateOrigin(e){if(e.config.emulator)return;const{authorizedDomains:t}=await _getProjectConfig(e);for(const e of t)try{if(matchDomain(e))return}catch(e){}_fail(e,\"unauthorized-domain\")}function matchDomain(e){const t=_getCurrentUrl();const{protocol:n,hostname:r}=new URL(t);if(e.startsWith(\"chrome-extension://\")){const i=new URL(e);return\"\"===i.hostname&&\"\"===r?\"chrome-extension:\"===n&&e.replace(\"chrome-extension://\",\"\")===t.replace(\"chrome-extension://\",\"\"):\"chrome-extension:\"===n&&i.hostname===r}if(!ge.test(n))return false;if(me.test(e))return r===e;const i=e.replace(/\\./g,\"\\\\.\");const s=new RegExp(\"^(.+\\\\.\"+i+\"|\"+i+\")$\",\"i\");return s.test(r)}\n/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const _e=new Delay(3e4,6e4);function resetUnloadedGapiModules(){const e=_window().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H)){e.H[t].r=e.H[t].r||[];e.H[t].L=e.H[t].L||[];e.H[t].r=[...e.H[t].L];if(e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}function loadGapi(e){return new Promise(((t,n)=>{var r,i,s;function loadGapiIframe(){resetUnloadedGapiModules();gapi.load(\"gapi.iframes\",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{resetUnloadedGapiModules();n(_createError(e,\"network-request-failed\"))},timeout:_e.get()})}if(null===(i=null===(r=_window().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(s=_window().gapi)||void 0===s?void 0:s.load)){const t=_generateCallbackName(\"iframefcb\");_window()[t]=()=>{gapi.load?loadGapiIframe():n(_createError(e,\"network-request-failed\"))};return _loadJS(`https://apis.google.com/js/api.js?onload=${t}`).catch((e=>n(e)))}loadGapiIframe()}})).catch((e=>{Ie=null;throw e}))}let Ie=null;function _loadGapi(e){Ie=Ie||loadGapi(e);return Ie}\n/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const ve=new Delay(5e3,15e3);const Te=\"__/auth/iframe\";const Ae=\"emulator/auth/iframe\";const ye={style:{position:\"absolute\",top:\"-100px\",width:\"1px\",height:\"1px\"},\"aria-hidden\":\"true\",tabindex:\"-1\"};const we=new Map([[\"identitytoolkit.googleapis.com\",\"p\"],[\"staging-identitytoolkit.sandbox.googleapis.com\",\"s\"],[\"test-identitytoolkit.sandbox.googleapis.com\",\"t\"]]);function getIframeUrl(e){const t=e.config;_assert(t.authDomain,e,\"auth-domain-config-required\");const n=t.emulator?_emulatorUrl(t,Ae):`https://${e.config.authDomain}/${Te}`;const r={apiKey:t.apiKey,appName:e.name,v:_};const i=we.get(e.config.apiHost);i&&(r.eid=i);const a=e._getFrameworks();a.length&&(r.fw=a.join(\",\"));return`${n}?${s(r).slice(1)}`}async function _openIframe(e){const t=await _loadGapi(e);const n=_window().gapi;_assert(n,e,\"internal-error\");return t.open({where:document.body,url:getIframeUrl(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:ye,dontclear:true},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:false});const i=_createError(e,\"network-request-failed\");const s=_window().setTimeout((()=>{r(i)}),ve.get());function clearTimerAndResolve(){_window().clearTimeout(s);n(t)}t.ping(clearTimerAndResolve).then(clearTimerAndResolve,(()=>{r(i)}))}))))}\n/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const Ee={location:\"yes\",resizable:\"yes\",statusbar:\"yes\",toolbar:\"no\"};const ke=500;const Re=600;const Pe=\"_blank\";const Se=\"http://localhost\";class AuthPopup{constructor(e){this.window=e;this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function _open(e,t,n,r=ke,i=Re){const s=Math.max((window.screen.availHeight-i)/2,0).toString();const a=Math.max((window.screen.availWidth-r)/2,0).toString();let o=\"\";const c=Object.assign(Object.assign({},Ee),{width:r.toString(),height:i.toString(),top:s,left:a});const d=u().toLowerCase();n&&(o=_isChromeIOS(d)?Pe:n);if(_isFirefox(d)){t=t||Se;c.scrollbars=\"yes\"}const l=Object.entries(c).reduce(((e,[t,n])=>`${e}${t}=${n},`),\"\");if(_isIOSStandalone(d)&&\"_self\"!==o){openAsNewWindowIOS(t||\"\",o);return new AuthPopup(null)}const h=window.open(t||\"\",o,l);_assert(h,e,\"popup-blocked\");try{h.focus()}catch(e){}return new AuthPopup(h)}function openAsNewWindowIOS(e,t){const n=document.createElement(\"a\");n.href=e;n.target=t;const r=document.createEvent(\"MouseEvent\");r.initMouseEvent(\"click\",true,true,window,1,0,0,0,0,false,false,false,false,1,null);n.dispatchEvent(r)}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const be=\"__/auth/handler\";const Oe=\"emulator/auth/handler\";function _getRedirectUrl(e,t,n,r,i,a){_assert(e.config.authDomain,e,\"auth-domain-config-required\");_assert(e.config.apiKey,e,\"invalid-api-key\");const o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:_,eventId:i};if(t instanceof FederatedAuthProvider){t.setDefaultLanguage(e.languageCode);o.providerId=t.providerId||\"\";f(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(a||{}))o[e]=t}if(t instanceof BaseOAuthProvider){const e=t.getScopes().filter((e=>\"\"!==e));e.length>0&&(o.scopes=e.join(\",\"))}e.tenantId&&(o.tid=e.tenantId);const c=o;for(const e of Object.keys(c))void 0===c[e]&&delete c[e];return`${getHandlerBase(e)}?${s(c).slice(1)}`}function getHandlerBase({config:e}){return e.emulator?_emulatorUrl(e,Oe):`https://${e.authDomain}/${be}`}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const Ne=\"webStorageSupport\";class BrowserPopupRedirectResolver{constructor(){this.eventManagers={};this.iframes={};this.originValidationPromises={};this._redirectPersistence=J;this._completeRedirectFn=_getRedirectResult;this._overrideRedirectResult=_overrideRedirectResult}async _openPopup(e,t,n,r){var i;debugAssert(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,\"_initialize() not called before _openPopup()\");const s=_getRedirectUrl(e,t,n,_getCurrentUrl(),r);return _open(e,s,_generateEventId())}async _openRedirect(e,t,n,r){await this._originValidation(e);_setWindowLocation(_getRedirectUrl(e,t,n,_getCurrentUrl(),r));return new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];if(e)return Promise.resolve(e);debugAssert(n,\"If manager is not set, promise should be\");return n}const n=this.initAndGetManager(e);this.eventManagers[t]={promise:n};n.catch((()=>{delete this.eventManagers[t]}));return n}async initAndGetManager(e){const t=await _openIframe(e);const n=new AuthEventManager(e);t.register(\"authEvent\",(t=>{_assert(null===t||void 0===t?void 0:t.authEvent,e,\"invalid-auth-event\");const r=n.onEvent(t.authEvent);return{status:r?\"ACK\":\"ERROR\"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);this.eventManagers[e._key()]={manager:n};this.iframes[e._key()]=t;return n}_isIframeWebStorageSupported(e,t){const n=this.iframes[e._key()];n.send(Ne,{type:Ne},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[Ne];void 0!==i&&t(!!i);_fail(e,\"internal-error\")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();this.originValidationPromises[t]||(this.originValidationPromises[t]=_validateOrigin(e));return this.originValidationPromises[t]}get _shouldInitProactively(){return _isMobileBrowser()||_isSafari()||_isIOS()}}const Ce=BrowserPopupRedirectResolver;class MultiFactorAssertionImpl{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case\"enroll\":return this._finalizeEnroll(e,t.credential,n);case\"signin\":return this._finalizeSignIn(e,t.credential);default:return debugFail(\"unexpected MultiFactorSessionType\")}}}class PhoneMultiFactorAssertionImpl extends MultiFactorAssertionImpl{constructor(e){super(\"phone\");this.credential=e}static _fromCredential(e){return new PhoneMultiFactorAssertionImpl(e)}_finalizeEnroll(e,t,n){return finalizeEnrollPhoneMfa(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return finalizeSignInPhoneMfa(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class PhoneMultiFactorGenerator{constructor(){}\n/**\n     * Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.\n     *\n     * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.\n     * @returns A {@link PhoneMultiFactorAssertion} which can be used with\n     * {@link MultiFactorResolver.resolveSignIn}\n     */static assertion(e){return PhoneMultiFactorAssertionImpl._fromCredential(e)}}PhoneMultiFactorGenerator.FACTOR_ID=\"phone\";var De=\"@firebase/auth\";var Le=\"0.20.10\";\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class AuthInterop{constructor(e){this.auth=e;this.internalListeners=new Map}getUid(){var e;this.assertAuthConfigured();return(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){this.assertAuthConfigured();await this.auth._initializationPromise;if(!this.auth.currentUser)return null;const t=await this.auth.currentUser.getIdToken(e);return{accessToken:t}}addAuthTokenListener(e){this.assertAuthConfigured();if(this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{var n;e((null===(n=t)||void 0===n?void 0:n.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t);this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);if(t){this.internalListeners.delete(e);t();this.updateProactiveRefresh()}}assertAuthConfigured(){_assert(this.auth._initializationPromise,\"dependent-sdk-initialized-before-auth\")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}\n/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function getVersionForPlatform(e){switch(e){case\"Node\":return\"node\";case\"ReactNative\":return\"rn\";case\"Worker\":return\"webworker\";case\"Cordova\":return\"cordova\";default:return}}function registerAuth(e){v(new k(\"auth\",((t,{options:n})=>{const r=t.getProvider(\"app\").getImmediate();const i=t.getProvider(\"heartbeat\");const{apiKey:s,authDomain:a}=r.options;return((t,r)=>{_assert(s&&!s.includes(\":\"),\"invalid-api-key\",{appName:t.name});_assert(!(null===a||void 0===a?void 0:a.includes(\":\")),\"argument-error\",{appName:t.name});const i={apiKey:s,authDomain:a,clientPlatform:e,apiHost:\"identitytoolkit.googleapis.com\",tokenApiHost:\"securetoken.googleapis.com\",apiScheme:\"https\",sdkClientVersion:_getClientVersion(e)};const o=new AuthImpl(t,r,i);_initializeAuthInstance(o,n);return o})(r,i)}),\"PUBLIC\").setInstantiationMode(\"EXPLICIT\").setInstanceCreatedCallback(((e,t,n)=>{const r=e.getProvider(\"auth-internal\");r.initialize()})));v(new k(\"auth-internal\",(e=>{const t=_castAuth(e.getProvider(\"auth\").getImmediate());return(e=>new AuthInterop(e))(t)}),\"PRIVATE\").setInstantiationMode(\"EXPLICIT\"));T(De,Le,getVersionForPlatform(e));T(De,Le,\"esm2017\")}\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const Ue=300;const Me=m(\"authIdTokenMaxAge\")||Ue;let Fe=null;const mintCookieFactory=e=>async t=>{const n=t&&await t.getIdTokenResult();const r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>Me)return;const i=null===n||void 0===n?void 0:n.token;if(Fe!==i){Fe=i;await fetch(e,{method:i?\"POST\":\"DELETE\",headers:i?{Authorization:`Bearer ${i}`}:{}})}}\n/**\n * Returns the Auth instance associated with the provided {@link @firebase/app#FirebaseApp}.\n * If no instance exists, initializes an Auth instance with platform-specific default dependencies.\n *\n * @param app - The Firebase App.\n *\n * @public\n */;function getAuth(e=A()){const t=I(e,\"auth\");if(t.isInitialized())return t.getImmediate();const n=initializeAuth(e,{popupRedirectResolver:Ce,persistence:[ne,$,J]});const r=m(\"authTokenSyncURL\");if(r){const e=mintCookieFactory(r);beforeAuthStateChanged(n,e,(()=>e(n.currentUser)));onIdTokenChanged(n,(t=>e(t)))}const i=g(\"auth\");i&&connectAuthEmulator(n,`http://${i}`);return n}registerAuth(\"Browser\");export{reauthenticateWithPhoneNumber as $,O as A,getIdToken as B,getIdTokenResult as C,getMultiFactorResolver as D,EmailAuthCredential as E,FacebookAuthProvider as F,GithubAuthProvider as G,getRedirectResult as H,x as I,ne as J,initializeAuth as K,isSignInWithEmailLink as L,linkWithCredential as M,linkWithPhoneNumber as N,OAuthCredential as O,PhoneAuthCredential as P,linkWithPopup as Q,RecaptchaVerifier as R,SAMLAuthProvider as S,TwitterAuthProvider as T,linkWithRedirect as U,multiFactor as V,onAuthStateChanged as W,onIdTokenChanged as X,parseActionCodeURL as Y,C as Z,reauthenticateWithCredential as _,ActionCodeURL as a,reauthenticateWithPopup as a0,reauthenticateWithRedirect as a1,reload as a2,sendEmailVerification as a3,sendPasswordResetEmail as a4,sendSignInLinkToEmail as a5,setPersistence as a6,signInAnonymously as a7,signInWithCredential as a8,signInWithCustomToken as a9,_persistenceKeyName as aA,_getRedirectResult as aB,_overrideRedirectResult as aC,_clearRedirectOutcomes as aD,_castAuth as aE,AuthImpl as aF,AuthPopup as aG,FetchProvider as aH,SAMLAuthCredential as aI,UserImpl as aJ,_generateEventId as aK,_getClientVersion as aL,signInWithEmailAndPassword as aa,signInWithEmailLink as ab,signInWithPhoneNumber as ac,signInWithPopup as ad,signInWithRedirect as ae,signOut as af,unlink as ag,updateCurrentUser as ah,updateEmail as ai,updatePassword as aj,updatePhoneNumber as ak,updateProfile as al,useDeviceLanguage as am,verifyBeforeUpdateEmail as an,verifyPasswordResetCode as ao,debugAssert as ap,_isIOS as aq,_isAndroid as ar,_fail as as,_getRedirectUrl as at,_getProjectConfig as au,_isIOS7Or8 as av,_createError as aw,_assert as ax,AuthEventManager as ay,_getInstance as az,AuthCredential as b,L as c,EmailAuthProvider as d,R as e,GoogleAuthProvider as f,OAuthProvider as g,b as h,PhoneAuthProvider as i,PhoneMultiFactorGenerator as j,P as k,S as l,applyActionCode as m,beforeAuthStateChanged as n,$ as o,Ce as p,J as q,checkActionCode as r,confirmPasswordReset as s,connectAuthEmulator as t,createUserWithEmailAndPassword as u,N as v,deleteUser as w,fetchSignInMethodsForEmail as x,getAdditionalUserInfo as y,getAuth as z};\n\n//# sourceMappingURL=55146e2a.js.map"],
  "mappings": "uDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AAM9F,EAAE,CAAC,OAAO,EAAE,OAAO,SAAS,QAAQ,EAAE,CAAC,cAAc,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAQ3W,SAASgG,GAAQhG,EAAEiG,GAAE,EAAE,CAAC,IAAMhG,EAAEiG,GAAElG,EAAE,MAAM,EAAE,GAAGC,EAAE,cAAc,EAAE,OAAOA,EAAE,aAAa,EAAE,IAAMP,EAAEyG,GAAenG,EAAE,CAAC,sBAAsBuE,GAAG,YAAY,CAAC6B,GAAGC,GAAEvC,EAAC,CAAC,CAAC,EAAQ,EAAE+B,GAAE,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAM7F,EAAE+F,GAAkB,CAAC,EAAEO,GAAuB5G,EAAEM,EAAG,IAAIA,EAAEN,EAAE,WAAW,CAAE,EAAE6G,GAAiB7G,EAAGO,GAAGD,EAAEC,CAAC,CAAE,CAAC,CAAC,IAAM,EAAEuG,GAAE,MAAM,EAAE,UAAGC,GAAoB/G,EAAE,UAAU,CAAC,EAAE,EAASA,CAAC,CAACyF,GAAa,SAAS",
  "names": ["stringToByteArray$1", "e", "t", "r", "n", "o", "byteArrayToString", "i", "c", "a", "s", "h", "l", "u", "f", "base64Encode", "base64urlEncodeWithoutPadding", "base64Decode", "getUA", "navigator", "isMobileCordova", "window", "isBrowserExtension", "e", "isReactNative", "navigator", "isIE", "e", "getUA", "isIndexedDBAvailable", "validateIndexedDBOpenable", "e", "t", "r", "n", "o", "getGlobal", "window", "global", "getDefaultsFromGlobal", "getDefaultsFromEnvVariable", "e", "getDefaultsFromCookie", "t", "base64Decode", "getDefaults", "getDefaultEmulatorHost", "r", "getDefaultEmulatorHostnameAndPort", "n", "getDefaultAppConfig", "getExperimentalSetting", "Deferred", "createMockUserToken", "o", "i", "base64urlEncodeWithoutPadding", "FirebaseError", "_FirebaseError", "ErrorFactory", "s", "replaceTemplate", "isEmpty", "e", "t", "deepEqual", "e", "t", "r", "n", "o", "s", "isObject", "querystring", "e", "t", "r", "n", "querystringDecode", "extractQuerystring", "createSubscribe", "e", "t", "r", "ObserverProxy", "n", "implementsAnyMethods", "noop", "o", "implementsAnyMethods", "e", "t", "r", "noop", "getModularInstance", "e", "Component", "t", "e", "n", "Provider", "Deferred", "isComponentEager", "s", "r", "normalizeIdentifierForFactory", "ComponentContainer", "e", "r", "t", "o", "l", "defaultLogHandler", "n", "Logger", "instanceOfAny", "e", "t", "getIdbProxyableTypes", "getCursorAdvanceMethods", "r", "n", "o", "s", "a", "promisifyRequest", "unlisten", "success", "error", "wrap", "cacheDonePromiseForTransaction", "complete", "c", "replaceTraps", "wrapFunction", "unwrap", "transformCachableValue", "openDB", "t", "n", "o", "s", "a", "d", "i", "wrap", "e", "n", "o", "r", "getMethod", "e", "t", "s", "a", "d", "method", "replaceTraps", "PlatformLoggerServiceImpl", "e", "isVersionServiceProvider", "t", "d", "m", "g", "Logger", "b", "u", "w", "_", "v", "C", "D", "y", "I", "S", "E", "P", "A", "H", "$", "x", "O", "B", "F", "N", "k", "L", "T", "j", "U", "V", "M", "R", "z", "_addComponent", "a", "_registerComponent", "e", "t", "z", "g", "R", "_addComponent", "_getProvider", "a", "K", "J", "ErrorFactory", "FirebaseAppImpl", "t", "a", "Component", "Y", "U", "initializeApp", "e", "r", "n", "V", "s", "getDefaultAppConfig", "c", "R", "deepEqual", "p", "ComponentContainer", "z", "h", "getApp", "registerVersion", "t", "a", "r", "n", "s", "M", "i", "e", "g", "_registerComponent", "Component", "q", "G", "Q", "W", "getDbPromise", "openDB", "e", "t", "J", "readHeartbeatsFromIndexedDB", "computeKey", "FirebaseError", "g", "a", "writeHeartbeatsToIndexedDB", "r", "X", "Z", "HeartbeatServiceImpl", "HeartbeatStorageImpl", "getUTCDateString", "extractHeartbeatsForHeader", "base64urlEncodeWithoutPadding", "n", "countBytes", "isIndexedDBAvailable", "validateIndexedDBOpenable", "registerCoreComponents", "_registerComponent", "Component", "PlatformLoggerServiceImpl", "registerVersion", "d", "m", "a", "p", "registerVersion", "__rest", "e", "t", "r", "n", "o", "_prodErrorMap", "C", "_prodErrorMap", "D", "ErrorFactory", "U", "Logger", "_logError", "e", "t", "r", "Y", "_fail", "createErrorInternal", "_createError", "_errorWithCustomMessage", "n", "i", "C", "ErrorFactory", "createErrorInternal", "e", "t", "n", "D", "_assert", "debugFail", "_logError", "debugAssert", "M", "_getInstance", "initializeAuth", "r", "_getProvider", "i", "deepEqual", "_fail", "_initializeAuthInstance", "_getCurrentUrl", "_isHttpOrHttps", "_getCurrentScheme", "_isOnline", "navigator", "isBrowserExtension", "_getUserLanguage", "Delay", "isMobileCordova", "isReactNative", "_emulatorUrl", "FetchProvider", "F", "W", "_addTidIfNecessary", "_performApiRequest", "_performFetchWithErrorHandling", "a", "o", "querystring", "_getFinalTarget", "NetworkTimeout", "s", "_makeTaggedError", "_errorWithCustomMessage", "FirebaseError", "_performSignInRequest", "_createError", "deleteAccount", "getAccountInfo", "e", "t", "_performApiRequest", "utcTimestampToDateString", "getIdTokenResult", "e", "t", "n", "getModularInstance", "_parseToken", "_assert", "a", "utcTimestampToDateString", "secondsStringToMilliseconds", "_logError", "base64Decode", "_tokenExpiresIn", "_logoutIfInvalidated", "FirebaseError", "isUserInvalidated", "ProactiveRefresh", "UserMetadata", "_reloadWithoutSaving", "getAccountInfo", "extractProviderData", "o", "mergeProviderData", "d", "l", "reload", "__rest", "requestStsToken", "_performFetchWithErrorHandling", "querystring", "r", "i", "_getFinalTarget", "FetchProvider", "StsTokenManager", "_StsTokenManager", "s", "debugFail", "assertStringOrUndefined", "UserImpl", "_UserImpl", "deleteAccount", "c", "u", "h", "p", "f", "m", "g", "_", "I", "v", "T", "A", "y", "w", "E", "InMemoryPersistence", "x", "_persistenceKeyName", "PersistenceUserManager", "_PersistenceUserManager", "_getInstance", "_getBrowserName", "_isIEMobile", "_isFirefox", "_isBlackBerry", "_isWebOS", "_isSafari", "_isChromeIOS", "_isAndroid", "getUA", "_isIOS", "_isIOSStandalone", "e", "getUA", "t", "_isIOS", "window", "_isIE10", "isIE", "_isMobileBrowser", "_isAndroid", "_isWebOS", "_isBlackBerry", "_isIEMobile", "_isIframe", "_getClientVersion", "n", "_getBrowserName", "Y", "AuthMiddlewareQueue", "wrappedCallback", "r", "AuthImpl", "Subscription", "D", "_getInstance", "PersistenceUserManager", "i", "s", "a", "_assert", "_reloadWithoutSaving", "_getUserLanguage", "getModularInstance", "ErrorFactory", "_castAuth", "createSubscribe", "connectAuthEmulator", "extractProtocol", "o", "extractHostAndPort", "emitEmulatorWarning", "parsePort", "attachBanner", "AuthCredential", "debugFail", "updateEmailPassword", "e", "t", "_performApiRequest", "signInWithPassword", "e", "t", "_performSignInRequest", "_addTidIfNecessary", "signInWithEmailLink$1", "e", "t", "_performSignInRequest", "_addTidIfNecessary", "signInWithEmailLinkForLinking", "EmailAuthCredential", "_EmailAuthCredential", "AuthCredential", "n", "r", "signInWithPassword", "_fail", "updateEmailPassword", "signInWithIdp", "V", "OAuthCredential", "_OAuthCredential", "i", "__rest", "s", "querystring", "sendPhoneVerificationCode", "_performApiRequest", "signInWithPhoneNumber$1", "linkWithPhoneNumber$1", "_makeTaggedError", "q", "verifyPhoneNumberForExisting", "PhoneAuthCredential", "_PhoneAuthCredential", "parseMode", "parseDeepLink", "querystringDecode", "extractQuerystring", "ActionCodeURL", "_ActionCodeURL", "o", "c", "u", "d", "_assert", "EmailAuthProvider", "_EmailAuthProvider", "EmailAuthCredential", "n", "ActionCodeURL", "_assert", "FederatedAuthProvider", "BaseOAuthProvider", "FacebookAuthProvider", "_FacebookAuthProvider", "BaseOAuthProvider", "OAuthCredential", "GoogleAuthProvider", "_GoogleAuthProvider", "n", "GithubAuthProvider", "_GithubAuthProvider", "TwitterAuthProvider", "_TwitterAuthProvider", "BaseOAuthProvider", "OAuthCredential", "n", "UserCredentialImpl", "_UserCredentialImpl", "n", "r", "i", "UserImpl", "s", "providerIdForResponse", "e", "MultiFactorError", "_MultiFactorError", "FirebaseError", "n", "r", "i", "_processCredentialSavingMfaContextIfNecessary", "e", "t", "_link$1", "e", "t", "n", "_logoutIfInvalidated", "UserCredentialImpl", "_reauthenticate", "e", "t", "n", "r", "_logoutIfInvalidated", "_processCredentialSavingMfaContextIfNecessary", "_assert", "_parseToken", "o", "UserCredentialImpl", "_fail", "_signInWithCredential", "signInWithCredential", "_castAuth", "signInWithEmailAndPassword", "e", "t", "n", "signInWithCredential", "getModularInstance", "EmailAuthProvider", "onIdTokenChanged", "e", "t", "n", "getModularInstance", "beforeAuthStateChanged", "onAuthStateChanged", "signOut", "e", "getModularInstance", "startEnrollPhoneMfa", "e", "t", "_performApiRequest", "_addTidIfNecessary", "finalizeEnrollPhoneMfa", "z", "BrowserPersistenceClass", "_iframeCannotSyncWebStorage", "e", "getUA", "_isSafari", "_isIOS", "B", "K", "BrowserLocalPersistence", "window", "_isIframe", "_isMobileBrowser", "n", "r", "t", "triggerListeners", "_isIE10", "$", "BrowserSessionPersistence", "J", "_allSettled", "Receiver", "_Receiver", "i", "s", "o", "_generateEventId", "Sender", "c", "u", "_window", "_setWindowLocation", "_isWorker", "_getActiveServiceWorker", "navigator", "_getServiceWorkerController", "_getWorkerGlobalScope", "Y", "X", "Q", "Z", "DBPromise", "getObjectStore", "_deleteDatabase", "_openDatabase", "_putObject", "getObject", "_deleteObject", "ee", "te", "IndexedDBLocalPersistence", "ne", "startSignInPhoneMfa", "_performApiRequest", "_addTidIfNecessary", "finalizeSignInPhoneMfa", "getScriptParentElement", "e", "t", "_loadJS", "n", "_createError", "_generateCallbackName", "ae", "_generateCallbackName", "oe", "Delay", "ue", "_verifyPhoneNumber", "e", "t", "n", "_assert", "ue", "startEnrollPhoneMfa", "startSignInPhoneMfa", "sendPhoneVerificationCode", "PhoneAuthProvider", "_PhoneAuthProvider", "_castAuth", "_verifyPhoneNumber", "getModularInstance", "PhoneAuthCredential", "n", "_withDefaultResolver", "e", "t", "_getInstance", "_assert", "IdpCredential", "AuthCredential", "signInWithIdp", "_signIn", "_signInWithCredential", "_reauth", "_reauthenticate", "_link", "_link$1", "AbstractPopupRedirectOperation", "r", "i", "s", "o", "_fail", "debugAssert", "le", "Delay", "PopupOperation", "_PopupOperation", "AbstractPopupRedirectOperation", "n", "r", "i", "_assert", "debugAssert", "_generateEventId", "e", "_createError", "window", "poll", "t", "le", "he", "pe", "RedirectAction", "_getAndClearPendingRedirectStatus", "pendingRedirectKey", "resolverPersistence", "_overrideRedirectResult", "e", "t", "pe", "resolverPersistence", "_getInstance", "pendingRedirectKey", "_persistenceKeyName", "he", "_getRedirectResult", "e", "t", "n", "_castAuth", "_withDefaultResolver", "a", "RedirectAction", "fe", "AuthEventManager", "n", "isRedirectEvent", "isNullRedirectEvent", "r", "_createError", "eventUid", "e", "t", "_getProjectConfig", "_performApiRequest", "me", "ge", "_validateOrigin", "matchDomain", "_fail", "_getCurrentUrl", "i", "_e", "Delay", "resetUnloadedGapiModules", "_window", "loadGapi", "loadGapiIframe", "_generateCallbackName", "_loadJS", "Ie", "_loadGapi", "ve", "Te", "Ae", "ye", "we", "getIframeUrl", "_assert", "_emulatorUrl", "Y", "a", "querystring", "_openIframe", "s", "clearTimerAndResolve", "Ee", "ke", "Re", "Pe", "Se", "AuthPopup", "_open", "window", "o", "d", "getUA", "_isChromeIOS", "_isFirefox", "l", "_isIOSStandalone", "openAsNewWindowIOS", "h", "be", "Oe", "_getRedirectUrl", "FederatedAuthProvider", "isEmpty", "BaseOAuthProvider", "c", "getHandlerBase", "Ne", "BrowserPopupRedirectResolver", "J", "_getRedirectResult", "_overrideRedirectResult", "debugAssert", "_generateEventId", "_setWindowLocation", "_isMobileBrowser", "_isSafari", "_isIOS", "Ce", "MultiFactorAssertionImpl", "debugFail", "PhoneMultiFactorAssertionImpl", "_PhoneMultiFactorAssertionImpl", "finalizeEnrollPhoneMfa", "finalizeSignInPhoneMfa", "PhoneMultiFactorGenerator", "De", "Le", "AuthInterop", "getVersionForPlatform", "registerAuth", "_registerComponent", "Component", "_getClientVersion", "AuthImpl", "_initializeAuthInstance", "_castAuth", "registerVersion", "Ue", "Me", "getExperimentalSetting", "Fe", "mintCookieFactory", "getAuth", "getApp", "_getProvider", "initializeAuth", "ne", "$", "beforeAuthStateChanged", "onIdTokenChanged", "getDefaultEmulatorHost", "connectAuthEmulator"]
}
