-
Notifications
You must be signed in to change notification settings - Fork 0
/
14-es5.9154e772f4326023d870.js
1 lines (1 loc) · 172 KB
/
14-es5.9154e772f4326023d870.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"6nsN":function(t,n,e){"use strict";e.r(n);var i=e("wj3C"),r=e.n(i);(function(){var t,n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,n,e){t!=Array.prototype&&t!=Object.prototype&&(t[n]=e.value)},e=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var n=0;n<t.length;++n){var e=t[n];if(e&&e.Math==Math)return e}return globalThis}(this);function i(t){var n=0;return function(){return n<t.length?{done:!1,value:t[n++]}:{done:!0}}}function o(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:i(t)}}!function(t,i){if(i){var r=e;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in r||(r[a]={}),r=r[a]}(i=i(o=r[t=t[t.length-1]]))!=o&&null!=i&&n(r,t,{configurable:!0,writable:!0,value:i})}}("Promise",(function(t){function n(t){this.b=0,this.c=void 0,this.a=[];var n=this.f();try{t(n.resolve,n.reject)}catch(e){n.reject(e)}}function i(){this.a=null}function r(t){return t instanceof n?t:new n((function(n){n(t)}))}if(t)return t;i.prototype.b=function(t){if(null==this.a){this.a=[];var n=this;this.c((function(){n.g()}))}this.a.push(t)};var a=e.setTimeout;i.prototype.c=function(t){a(t,0)},i.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var n=0;n<t.length;++n){var e=t[n];t[n]=null;try{e()}catch(i){this.f(i)}}}this.a=null},i.prototype.f=function(t){this.c((function(){throw t}))},n.prototype.f=function(){function t(t){return function(i){e||(e=!0,t.call(n,i))}}var n=this,e=!1;return{resolve:t(this.m),reject:t(this.g)}},n.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof n)this.s(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.u(t):this.h(t)}},n.prototype.u=function(t){var n=void 0;try{n=t.then}catch(e){return void this.g(e)}"function"==typeof n?this.w(n,t):this.h(t)},n.prototype.g=function(t){this.i(2,t)},n.prototype.h=function(t){this.i(1,t)},n.prototype.i=function(t,n){if(0!=this.b)throw Error("Cannot settle("+t+", "+n+"): Promise already settled in state"+this.b);this.b=t,this.c=n,this.l()},n.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)s.b(this.a[t]);this.a=null}};var s=new i;return n.prototype.s=function(t){var n=this.f();t.Oa(n.resolve,n.reject)},n.prototype.w=function(t,n){var e=this.f();try{t.call(n,e.resolve,e.reject)}catch(i){e.reject(i)}},n.prototype.then=function(t,e){function i(t,n){return"function"==typeof t?function(n){try{r(t(n))}catch(e){o(e)}}:n}var r,o,a=new n((function(t,n){r=t,o=n}));return this.Oa(i(t,r),i(e,o)),a},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.Oa=function(t,n){function e(){switch(i.b){case 1:t(i.c);break;case 2:n(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(e):this.a.push(e)},n.resolve=r,n.reject=function(t){return new n((function(n,e){e(t)}))},n.race=function(t){return new n((function(n,e){for(var i=o(t),a=i.next();!a.done;a=i.next())r(a.value).Oa(n,e)}))},n.all=function(t){var e=o(t),i=e.next();return i.done?r([]):new n((function(t,n){function o(n){return function(e){a[n]=e,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Oa(o(a.length-1),n),i=e.next()}while(!i.done)}))},n}));var a=a||{},s=this||self,u=/^[\w+/_-]+[=]{0,2}$/,c=null;function h(){}function l(t){var n=typeof t;if("object"==n){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return n;var e=Object.prototype.toString.call(t);if("[object Window]"==e)return"object";if("[object Array]"==e||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==e||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==n&&void 0===t.call)return"object";return n}function f(t){var n=l(t);return"array"==n||"object"==n&&"number"==typeof t.length}function d(t){return"function"==l(t)}function p(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}function v(t){return Object.prototype.hasOwnProperty.call(t,m)&&t[m]||(t[m]=++g)}var m="closure_uid_"+(1e9*Math.random()>>>0),g=0;function b(t,n,e){return t.call.apply(t.bind,arguments)}function y(t,n,e){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}}return function(){return t.apply(n,arguments)}}function w(t,n,e){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:y).apply(null,arguments)}function I(t,n){var e=Array.prototype.slice.call(arguments,1);return function(){var n=e.slice();return n.push.apply(n,arguments),t.apply(this,n)}}var T=Date.now||function(){return+new Date};function E(t,n){function e(){}e.prototype=n.prototype,t.Za=n.prototype,t.prototype=new e,t.prototype.constructor=t}function A(t,n,e){this.code=N+t,this.message=n||_[t]||"",this.a=e||null}function k(t){var n=t&&t.code;return n?new A(n.substring(N.length),t.message,t.serverResponse):null}E(A,Error),A.prototype.v=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},A.prototype.toJSON=function(){return this.v()};var S,N="auth/",_={"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.","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.","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 error 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 error 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 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-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.","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.","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 error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","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-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-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.","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 error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error 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."},O={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function R(t){for(var n in O)if(O[n].id===t)return{firebaseEndpoint:(t=O[n]).Ra,secureTokenEndpoint:t.Xa,identityPlatformEndpoint:t.Ua};return null}function P(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(n){return!1}}function C(t){if(Error.captureStackTrace)Error.captureStackTrace(this,C);else{var n=Error().stack;n&&(this.stack=n)}t&&(this.message=String(t))}function D(t,n){for(var e="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)e+=t[r]+(r<n.length?n[r]:"%s");C.call(this,e+t[i])}function L(t,n){throw new D("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function M(t,n){this.c=t,this.f=n,this.b=0,this.a=null}function x(t,n){t.f(n),100>t.b&&(t.b++,n.next=t.a,t.a=n)}function j(){this.b=this.a=null}S=R("__EID__")?"__EID__":void 0,E(C,Error),C.prototype.name="CustomError",E(D,C),D.prototype.name="AssertionError",M.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var U=new M((function(){return new F}),(function(t){t.reset()}));function V(){var t=gn,n=null;return t.a&&(n=t.a,t.a=t.a.next,t.a||(t.b=null),n.next=null),n}function F(){this.next=this.b=this.a=null}j.prototype.add=function(t,n){var e=U.get();e.set(t,n),this.b?this.b.next=e:this.a=e,this.b=e},F.prototype.set=function(t,n){this.a=t,this.b=n,this.next=null},F.prototype.reset=function(){this.next=this.b=this.a=null};var q=Array.prototype.indexOf?function(t,n){return Array.prototype.indexOf.call(t,n,void 0)}:function(t,n){if("string"==typeof t)return"string"!=typeof n||1!=n.length?-1:t.indexOf(n,0);for(var e=0;e<t.length;e++)if(e in t&&t[e]===n)return e;return-1},K=Array.prototype.forEach?function(t,n,e){Array.prototype.forEach.call(t,n,e)}:function(t,n,e){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&n.call(e,r[o],o,t)},H=Array.prototype.filter?function(t,n){return Array.prototype.filter.call(t,n,void 0)}:function(t,n){for(var e=t.length,i=[],r=0,o="string"==typeof t?t.split(""):t,a=0;a<e;a++)if(a in o){var s=o[a];n.call(void 0,s,a,t)&&(i[r++]=s)}return i},G=Array.prototype.map?function(t,n){return Array.prototype.map.call(t,n,void 0)}:function(t,n){for(var e=t.length,i=Array(e),r="string"==typeof t?t.split(""):t,o=0;o<e;o++)o in r&&(i[o]=n.call(void 0,r[o],o,t));return i},B=Array.prototype.some?function(t,n){return Array.prototype.some.call(t,n,void 0)}:function(t,n){for(var e=t.length,i="string"==typeof t?t.split(""):t,r=0;r<e;r++)if(r in i&&n.call(void 0,i[r],r,t))return!0;return!1};function W(t,n){return 0<=q(t,n)}function X(t,n){var e;return(e=0<=(n=q(t,n)))&&Array.prototype.splice.call(t,n,1),e}function J(t,n){!function(t,n){for(var e="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in e&&n.call(void 0,e[i],i,t)}(t,(function(e,i){n.call(void 0,e,i,t)&&Array.prototype.splice.call(t,i,1)}))}function Y(t){return Array.prototype.concat.apply([],arguments)}function z(t){var n=t.length;if(0<n){for(var e=Array(n),i=0;i<n;i++)e[i]=t[i];return e}return[]}var $,Z=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Q=/&/g,tt=/</g,nt=/>/g,et=/"/g,it=/'/g,rt=/\x00/g,ot=/[\x00&<>"']/;function at(t,n){return-1!=t.indexOf(n)}function st(t,n){return t<n?-1:t>n?1:0}t:{var ut=s.navigator;if(ut){var ct=ut.userAgent;if(ct){$=ct;break t}}$=""}function ht(t){return at($,t)}function lt(t,n){for(var e in t)n.call(void 0,t[e],e,t)}function ft(t){for(var n in t)return!1;return!0}function dt(t){var n,e={};for(n in t)e[n]=t[n];return e}var pt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function vt(t,n){for(var e,i,r=1;r<arguments.length;r++){for(e in i=arguments[r])t[e]=i[e];for(var o=0;o<pt.length;o++)e=pt[o],Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}}function mt(t,n){t:{try{var e=t&&t.ownerDocument,i=e&&(e.defaultView||e.parentWindow);if((i=i||s).Element&&i.Location){var r=i;break t}}catch(a){}r=null}if(r&&void 0!==r[n]&&(!t||!(t instanceof r[n])&&(t instanceof r.Location||t instanceof r.Element))){if(p(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;L("Argument is not a %s (or a non-Element, non-Location mock); got: %s",n,o)}}function gt(t,n){this.a=t===wt&&n||"",this.b=yt}function bt(t){return t instanceof gt&&t.constructor===gt&&t.b===yt?t.a:(L("expected object of type Const, got '"+t+"'"),"type_error:Const")}gt.prototype.ra=!0,gt.prototype.qa=function(){return this.a},gt.prototype.toString=function(){return"Const{"+this.a+"}"};var yt={},wt={},It=new gt(wt,"");function Tt(t,n){this.a=t===_t&&n||"",this.b=Nt}function Et(t){return t instanceof Tt&&t.constructor===Tt&&t.b===Nt?t.a:(L("expected object of type TrustedResourceUrl, got '"+t+"' of type "+l(t)),"type_error:TrustedResourceUrl")}function At(t,n){var e=bt(t);if(!St.test(e))throw Error("Invalid TrustedResourceUrl format: "+e);return t=e.replace(kt,(function(t,i){if(!Object.prototype.hasOwnProperty.call(n,i))throw Error('Found marker, "'+i+'", in format string, "'+e+'", but no valid label mapping found in args: '+JSON.stringify(n));return(t=n[i])instanceof gt?bt(t):encodeURIComponent(String(t))})),new Tt(_t,t)}Tt.prototype.ra=!0,Tt.prototype.qa=function(){return this.a.toString()},Tt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var kt=/%{(\w+)}/g,St=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Nt={},_t={};function Ot(t,n){this.a=t===Lt&&n||"",this.b=Dt}function Rt(t){return t instanceof Ot&&t.constructor===Ot&&t.b===Dt?t.a:(L("expected object of type SafeUrl, got '"+t+"' of type "+l(t)),"type_error:SafeUrl")}Ot.prototype.ra=!0,Ot.prototype.qa=function(){return this.a.toString()},Ot.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ct(t){return t instanceof Ot?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Pt.test(t)||(t="about:invalid#zClosurez"),new Ot(Lt,t))}var Dt={},Lt={};function Mt(){this.a="",this.b=jt}function xt(t){return t instanceof Mt&&t.constructor===Mt&&t.b===jt?t.a:(L("expected object of type SafeHtml, got '"+t+"' of type "+l(t)),"type_error:SafeHtml")}Mt.prototype.ra=!0,Mt.prototype.qa=function(){return this.a.toString()},Mt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var jt={};function Ut(t){var n=new Mt;return n.a=t,n}Ut("<!DOCTYPE html>");var Vt=Ut("");function Ft(t,n){for(var e=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<e.length;)i+=e.shift()+r.shift();return i+e.join("%s")}function qt(t){return ot.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(Q,"&")),-1!=t.indexOf("<")&&(t=t.replace(tt,"<")),-1!=t.indexOf(">")&&(t=t.replace(nt,">")),-1!=t.indexOf('"')&&(t=t.replace(et,""")),-1!=t.indexOf("'")&&(t=t.replace(it,"'")),-1!=t.indexOf("\0")&&(t=t.replace(rt,"�"))),t}function Kt(t){return Kt[" "](t),t}Ut("<br>"),Kt[" "]=h;var Ht,Gt,Bt=ht("Opera"),Wt=ht("Trident")||ht("MSIE"),Xt=ht("Edge"),Jt=Xt||Wt,Yt=ht("Gecko")&&!(at($.toLowerCase(),"webkit")&&!ht("Edge"))&&!(ht("Trident")||ht("MSIE"))&&!ht("Edge"),zt=at($.toLowerCase(),"webkit")&&!ht("Edge");function $t(){var t=s.document;return t?t.documentMode:void 0}t:{var Zt="",Qt=(Gt=$,Yt?/rv:([^\);]+)(\)|;)/.exec(Gt):Xt?/Edge\/([\d\.]+)/.exec(Gt):Wt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Gt):zt?/WebKit\/(\S+)/.exec(Gt):Bt?/(?:Version)[ \/]?(\S+)/.exec(Gt):void 0);if(Qt&&(Zt=Qt?Qt[1]:""),Wt){var tn=$t();if(null!=tn&&tn>parseFloat(Zt)){Ht=String(tn);break t}}Ht=Zt}var nn,en={};function rn(t){return function(t,n){var e=en;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=n()}(t,(function(){for(var n=0,e=Z(String(Ht)).split("."),i=Z(String(t)).split("."),r=Math.max(e.length,i.length),o=0;0==n&&o<r;o++){var a=e[o]||"",s=i[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;n=st(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||st(0==a[2].length,0==s[2].length)||st(a[2],s[2]),a=a[3],s=s[3]}while(0==n)}return 0<=n}))}nn=s.document&&Wt?$t():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Gt){}var on=!Wt||9<=Number(nn);function an(t){var n=document;return"string"==typeof t?n.getElementById(t):t}function sn(t,n){lt(n,(function(n,e){n&&"object"==typeof n&&n.ra&&(n=n.qa()),"style"==e?t.style.cssText=n:"class"==e?t.className=n:"for"==e?t.htmlFor=n:hn.hasOwnProperty(e)?t.setAttribute(hn[e],n):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?t.setAttribute(e,n):t[e]=n}))}var un,cn,hn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ln(t,n,e){function i(e){e&&n.appendChild("string"==typeof e?t.createTextNode(e):e)}for(var r=2;r<e.length;r++){var o=e[r];!f(o)||p(o)&&0<o.nodeType?i(o):K(dn(o)?z(o):o,i)}}function fn(t,n){return n=String(n),"application/xhtml+xml"===t.contentType&&(n=n.toLowerCase()),t.createElement(n)}function dn(t){if(t&&"number"==typeof t.length){if(p(t))return"function"==typeof t.item||"string"==typeof t.item;if(d(t))return"function"==typeof t.item}return!1}function pn(t){s.setTimeout((function(){throw t}),0)}function vn(t,n){cn||function(){if(s.Promise&&s.Promise.resolve){var t=s.Promise.resolve(void 0);cn=function(){t.then(bn)}}else cn=function(){var t=bn;!d(s.setImmediate)||s.Window&&s.Window.prototype&&!ht("Edge")&&s.Window.prototype.setImmediate==s.setImmediate?(un||(un=function(){var t=s.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ht("Presto")&&(t=function(){var t=fn(document,"IFRAME");t.style.display="none",function(t){var n=new Tt(_t,bt(It));mt(t,"HTMLIFrameElement"),t.src=Et(n).toString()}(t),document.documentElement.appendChild(t);var n=t.contentWindow;(t=n.document).open(),t.write(xt(Vt)),t.close();var e="callImmediate"+Math.random(),i="file:"==n.location.protocol?"*":n.location.protocol+"//"+n.location.host;t=w((function(t){"*"!=i&&t.origin!=i||t.data!=e||this.port1.onmessage()}),this),n.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){n.postMessage(e,i)}}}),void 0!==t&&!ht("Trident")&&!ht("MSIE")){var n=new t,e={},i=e;return n.port1.onmessage=function(){if(void 0!==e.next){var t=(e=e.next).Db;e.Db=null,t()}},function(t){i.next={Db:t},i=i.next,n.port2.postMessage(0)}}return function(t){s.setTimeout(t,0)}}()),un(t)):s.setImmediate(t)}}(),mn||(cn(),mn=!0),gn.add(t,n)}var mn=!1,gn=new j;function bn(){for(var t;t=V();){try{t.a.call(t.b)}catch(n){pn(n)}x(U,t)}mn=!1}function yn(t,n){if(this.a=wn,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=h)try{var e=this;t.call(n,(function(t){Cn(e,In,t)}),(function(t){if(!(t instanceof Vn))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(n){}Cn(e,Tn,t)}))}catch(i){Cn(this,Tn,i)}}var wn=0,In=2,Tn=3;function En(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}En.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var An=new M((function(){return new En}),(function(t){t.reset()}));function kn(t,n,e){var i=An.get();return i.g=t,i.b=n,i.f=e,i}function Sn(t){if(t instanceof yn)return t;var n=new yn(h);return Cn(n,In,t),n}function Nn(t){return new yn((function(n,e){e(t)}))}function _n(t,n,e){Dn(t,n,e,null)||vn(I(n,t))}function On(t){return new yn((function(n){var e=t.length,i=[];if(e)for(var r=function(t,r,o){e--,i[t]=r?{Mb:!0,value:o}:{Mb:!1,reason:o},0==e&&n(i)},o=0;o<t.length;o++)_n(t[o],I(r,o,!0),I(r,o,!1));else n(i)}))}function Rn(t,n){t.b||t.a!=In&&t.a!=Tn||Ln(t),t.f?t.f.next=n:t.b=n,t.f=n}function Pn(t,n,e,i){var r=kn(null,null,null);return r.a=new yn((function(t,o){r.g=n?function(e){try{var r=n.call(i,e);t(r)}catch(a){o(a)}}:t,r.b=e?function(n){try{var r=e.call(i,n);void 0===r&&n instanceof Vn?o(n):t(r)}catch(a){o(a)}}:o})),r.a.c=t,Rn(t,r),r.a}function Cn(t,n,e){t.a==wn&&(t===e&&(n=Tn,e=new TypeError("Promise cannot resolve to itself")),t.a=1,Dn(e,t.Yc,t.Zc,t)||(t.i=e,t.a=n,t.c=null,Ln(t),n!=Tn||e instanceof Vn||function(t,n){t.g=!0,vn((function(){t.g&&Un.call(null,n)}))}(t,e)))}function Dn(t,n,e,i){if(t instanceof yn)return Rn(t,kn(n||h,e||null,i)),!0;if(P(t))return t.then(n,e,i),!0;if(p(t))try{var r=t.then;if(d(r))return function(t,n,e,i,r){function o(t){a||(a=!0,i.call(r,t))}var a=!1;try{n.call(t,(function(t){a||(a=!0,e.call(r,t))}),o)}catch(s){o(s)}}(t,r,n,e,i),!0}catch(o){return e.call(i,o),!0}return!1}function Ln(t){t.h||(t.h=!0,vn(t.ec,t))}function Mn(t){var n=null;return t.b&&(t.b=(n=t.b).next,n.next=null),t.b||(t.f=null),n}function xn(t,n,e,i){if(e==Tn&&n.b&&!n.c)for(;t&&t.g;t=t.c)t.g=!1;if(n.a)n.a.c=null,jn(n,e,i);else try{n.c?n.g.call(n.f):jn(n,e,i)}catch(r){Un.call(null,r)}x(An,n)}function jn(t,n,e){n==In?t.g.call(t.f,e):t.b&&t.b.call(t.f,e)}yn.prototype.then=function(t,n,e){return Pn(this,d(t)?t:null,d(n)?n:null,e)},yn.prototype.$goog_Thenable=!0,(t=yn.prototype).ma=function(t,n){return(t=kn(t,t,n)).c=!0,Rn(this,t),this},t.o=function(t,n){return Pn(this,null,t,n)},t.cancel=function(t){if(this.a==wn){var n=new Vn(t);vn((function(){!function t(n,e){if(n.a==wn)if(n.c){var i=n.c;if(i.b){for(var r=0,o=null,a=null,s=i.b;s&&(s.c||(r++,s.a==n&&(o=s),!(o&&1<r)));s=s.next)o||(a=s);o&&(i.a==wn&&1==r?t(i,e):(a?((r=a).next==i.f&&(i.f=r),r.next=r.next.next):Mn(i),xn(i,o,Tn,e)))}n.c=null}else Cn(n,Tn,e)}(this,n)}),this)}},t.Yc=function(t){this.a=wn,Cn(this,In,t)},t.Zc=function(t){this.a=wn,Cn(this,Tn,t)},t.ec=function(){for(var t;t=Mn(this);)xn(this,t,this.a,this.i);this.h=!1};var Un=pn;function Vn(t){C.call(this,t)}function Fn(){0!=qn&&(Kn[v(this)]=this),this.wa=this.wa,this.na=this.na}E(Vn,C),Vn.prototype.name="cancel";var qn=0,Kn={};function Hn(t){if(!t.wa&&(t.wa=!0,t.Ba(),0!=qn)){var n=v(t);if(0!=qn&&t.na&&0<t.na.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Kn[n]}}Fn.prototype.wa=!1,Fn.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var Gn=Object.freeze||function(t){return t},Bn=!Wt||9<=Number(nn),Wn=Wt&&!rn("9"),Xn=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",h,n),s.removeEventListener("test",h,n)}catch(e){}return t}();function Jn(t,n){this.type=t,this.b=this.target=n,this.defaultPrevented=!1}function Yn(t,n){if(Jn.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var e=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=n,n=t.relatedTarget){if(Yt){t:{try{Kt(n.nodeName);var r=!0;break t}catch(o){}r=!1}r||(n=null)}}else"mouseover"==e?n=t.fromElement:"mouseout"==e&&(n=t.toElement);this.relatedTarget=n,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:zn[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Jn.prototype.preventDefault=function(){this.defaultPrevented=!0},E(Yn,Jn);var zn=Gn({2:"touch",3:"pen",4:"mouse"});Yn.prototype.preventDefault=function(){Yn.Za.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Wn)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(n){}},Yn.prototype.f=function(){return this.a};var $n="closure_listenable_"+(1e6*Math.random()|0),Zn=0;function Qn(t,n,e,i,r){this.listener=t,this.proxy=null,this.src=n,this.type=e,this.capture=!!i,this.Ta=r,this.key=++Zn,this.ua=this.Na=!1}function te(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function ne(t){this.src=t,this.a={},this.b=0}function ee(t,n){var e=n.type;e in t.a&&X(t.a[e],n)&&(te(n),0==t.a[e].length&&(delete t.a[e],t.b--))}function ie(t,n,e,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.ua&&o.listener==n&&o.capture==!!e&&o.Ta==i)return r}return-1}ne.prototype.add=function(t,n,e,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=ie(t,n,i,r);return-1<a?(n=t[a],e||(n.Na=!1)):((n=new Qn(n,this.src,o,!!i,r)).Na=e,t.push(n)),n};var re="closure_lm_"+(1e6*Math.random()|0),oe={};function ae(t,n,e,i,r){if(i&&i.once)ue(t,n,e,i,r);else if(Array.isArray(n))for(var o=0;o<n.length;o++)ae(t,n[o],e,i,r);else e=ge(e),t&&t[$n]?ye(t,n,e,p(i)?!!i.capture:!!i,r):se(t,n,e,!1,i,r)}function se(t,n,e,i,r,o){if(!n)throw Error("Invalid event type");var a=p(r)?!!r.capture:!!r,s=ve(t);if(s||(t[re]=s=new ne(t)),!(e=s.add(n,e,i,a,o)).proxy)if(i=function(){var t=pe,n=Bn?function(e){return t.call(n.src,n.listener,e)}:function(e){if(!(e=t.call(n.src,n.listener,e)))return e};return n}(),e.proxy=i,i.src=t,i.listener=e,t.addEventListener)Xn||(r=a),void 0===r&&(r=!1),t.addEventListener(n.toString(),i,r);else if(t.attachEvent)t.attachEvent(le(n.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function ue(t,n,e,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++)ue(t,n[o],e,i,r);else e=ge(e),t&&t[$n]?we(t,n,e,p(i)?!!i.capture:!!i,r):se(t,n,e,!0,i,r)}function ce(t,n,e,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++)ce(t,n[o],e,i,r);else i=p(i)?!!i.capture:!!i,e=ge(e),t&&t[$n]?(t=t.u,(n=String(n).toString())in t.a&&-1<(e=ie(o=t.a[n],e,i,r))&&(te(o[e]),Array.prototype.splice.call(o,e,1),0==o.length&&(delete t.a[n],t.b--))):t&&(t=ve(t))&&(n=t.a[n.toString()],t=-1,n&&(t=ie(n,e,i,r)),(e=-1<t?n[t]:null)&&he(e))}function he(t){if("number"!=typeof t&&t&&!t.ua){var n=t.src;if(n&&n[$n])ee(n.u,t);else{var e=t.type,i=t.proxy;n.removeEventListener?n.removeEventListener(e,i,t.capture):n.detachEvent?n.detachEvent(le(e),i):n.addListener&&n.removeListener&&n.removeListener(i),(e=ve(n))?(ee(e,t),0==e.b&&(e.src=null,n[re]=null)):te(t)}}}function le(t){return t in oe?oe[t]:oe[t]="on"+t}function fe(t,n,e,i){var r=!0;if((t=ve(t))&&(n=t.a[n.toString()]))for(n=n.concat(),t=0;t<n.length;t++){var o=n[t];o&&o.capture==e&&!o.ua&&(o=de(o,i),r=r&&!1!==o)}return r}function de(t,n){var e=t.listener,i=t.Ta||t.src;return t.Na&&he(t),e.call(i,n)}function pe(t,n){if(t.ua)return!0;if(!Bn){if(!n)t:{n=["window","event"];for(var e=s,i=0;i<n.length;i++)if(null==(e=e[n[i]])){n=null;break t}n=e}if(n=new Yn(i=n,this),e=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=n.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){n.b=i[r];var o=fe(i[r],t,!0,n);e=e&&o}for(r=0;r<i.length;r++)n.b=i[r],o=fe(i[r],t,!1,n),e=e&&o}return e}return de(t,new Yn(n,this))}function ve(t){return(t=t[re])instanceof ne?t:null}var me="__closure_events_fn_"+(1e9*Math.random()>>>0);function ge(t){return d(t)?t:(t[me]||(t[me]=function(n){return t.handleEvent(n)}),t[me])}function be(){Fn.call(this),this.u=new ne(this),this.Yb=this,this.eb=null}function ye(t,n,e,i,r){t.u.add(String(n),e,!1,i,r)}function we(t,n,e,i,r){t.u.add(String(n),e,!0,i,r)}function Ie(t,n,e,i){if(!(n=t.u.a[String(n)]))return!0;n=n.concat();for(var r=!0,o=0;o<n.length;++o){var a=n[o];if(a&&!a.ua&&a.capture==e){var s=a.listener,u=a.Ta||a.src;a.Na&&ee(t.u,a),r=!1!==s.call(u,i)&&r}}return r&&!i.defaultPrevented}function Te(t,n,e){if(d(t))e&&(t=w(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=w(t.handleEvent,t)}return 2147483647<Number(n)?-1:s.setTimeout(t,n||0)}function Ee(t){var n=null;return new yn((function(e,i){-1==(n=Te((function(){e(void 0)}),t))&&i(Error("Failed to schedule timer."))})).o((function(t){throw s.clearTimeout(n),t}))}function Ae(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"==typeof t)return t.split("");if(f(t)){for(var n=[],e=t.length,i=0;i<e;i++)n.push(t[i]);return n}for(i in n=[],e=0,t)n[e++]=t[i];return n}function ke(t){if(t.X&&"function"==typeof t.X)return t.X();if(!t.V||"function"!=typeof t.V){if(f(t)||"string"==typeof t){var n=[];t=t.length;for(var e=0;e<t;e++)n.push(e);return n}for(var i in n=[],e=0,t)n[e++]=i;return n}}function Se(t,n){this.b={},this.a=[],this.c=0;var e=arguments.length;if(1<e){if(e%2)throw Error("Uneven number of arguments");for(var i=0;i<e;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Se)for(e=t.X(),i=0;i<e.length;i++)this.set(e[i],t.get(e[i]));else for(i in t)this.set(i,t[i])}function Ne(t){if(t.c!=t.a.length){for(var n=0,e=0;n<t.a.length;){var i=t.a[n];_e(t.b,i)&&(t.a[e++]=i),n++}t.a.length=e}if(t.c!=t.a.length){var r={};for(e=n=0;n<t.a.length;)_e(r,i=t.a[n])||(t.a[e++]=i,r[i]=1),n++;t.a.length=e}}function _e(t,n){return Object.prototype.hasOwnProperty.call(t,n)}E(be,Fn),be.prototype[$n]=!0,be.prototype.addEventListener=function(t,n,e,i){ae(this,t,n,e,i)},be.prototype.removeEventListener=function(t,n,e,i){ce(this,t,n,e,i)},be.prototype.dispatchEvent=function(t){var n,e=this.eb;if(e)for(n=[];e;e=e.eb)n.push(e);e=this.Yb;var i=t.type||t;if("string"==typeof t)t=new Jn(t,e);else if(t instanceof Jn)t.target=t.target||e;else{var r=t;vt(t=new Jn(i,e),r)}if(r=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.b=n[o];r=Ie(a,i,!0,t)&&r}if(r=Ie(a=t.b=e,i,!0,t)&&r,r=Ie(a,i,!1,t)&&r,n)for(o=0;o<n.length;o++)r=Ie(a=t.b=n[o],i,!1,t)&&r;return r},be.prototype.Ba=function(){if(be.Za.Ba.call(this),this.u){var t,n=this.u;for(t in n.a){for(var e=n.a[t],i=0;i<e.length;i++)te(e[i]);delete n.a[t],n.b--}}this.eb=null},(t=Se.prototype).V=function(){Ne(this);for(var t=[],n=0;n<this.a.length;n++)t.push(this.b[this.a[n]]);return t},t.X=function(){return Ne(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,n){return _e(this.b,t)?this.b[t]:n},t.set=function(t,n){_e(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=n},t.forEach=function(t,n){for(var e=this.X(),i=0;i<e.length;i++){var r=e[i],o=this.get(r);t.call(n,o,r,this)}};var Oe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Re(t,n){var e;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,t instanceof Re?(this.h=void 0!==n?n:t.h,Pe(this,t.f),this.i=t.i,this.b=t.b,Ce(this,t.l),this.c=t.c,De(this,Ze(t.a)),this.g=t.g):t&&(e=String(t).match(Oe))?(this.h=!!n,Pe(this,e[1]||"",!0),this.i=Ue(e[2]||""),this.b=Ue(e[3]||"",!0),Ce(this,e[4]),this.c=Ue(e[5]||"",!0),De(this,e[6]||"",!0),this.g=Ue(e[7]||"")):(this.h=!!n,this.a=new We(null,this.h))}function Pe(t,n,e){t.f=e?Ue(n,!0):n,t.f&&(t.f=t.f.replace(/:$/,""))}function Ce(t,n){if(n){if(n=Number(n),isNaN(n)||0>n)throw Error("Bad port number "+n);t.l=n}else t.l=null}function De(t,n,e){n instanceof We?(t.a=n,function(t,n){n&&!t.f&&(Xe(t),t.c=null,t.a.forEach((function(t,n){var e=n.toLowerCase();n!=e&&(Ye(this,n),$e(this,e,t))}),t)),t.f=n}(t.a,t.h)):(e||(n=Ve(n,Ge)),t.a=new We(n,t.h))}function Le(t,n,e){t.a.set(n,e)}function Me(t,n){return t.a.get(n)}function xe(t){return t instanceof Re?new Re(t):new Re(t,void 0)}function je(t,n){var e=new Re(null,void 0);return Pe(e,"https"),t&&(e.b=t),n&&(e.c=n),e}function Ue(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ve(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,Fe),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Fe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Re.prototype.toString=function(){var t=[],n=this.f;n&&t.push(Ve(n,qe,!0),":");var e=this.b;return(e||"file"==n)&&(t.push("//"),(n=this.i)&&t.push(Ve(n,qe,!0),"@"),t.push(encodeURIComponent(String(e)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(e=this.l)&&t.push(":",String(e))),(e=this.c)&&(this.b&&"/"!=e.charAt(0)&&t.push("/"),t.push(Ve(e,"/"==e.charAt(0)?He:Ke,!0))),(e=this.a.toString())&&t.push("?",e),(e=this.g)&&t.push("#",Ve(e,Be)),t.join("")},Re.prototype.resolve=function(t){var n=new Re(this),e=!!t.f;e?Pe(n,t.f):e=!!t.i,e?n.i=t.i:e=!!t.b,e?n.b=t.b:e=null!=t.l;var i=t.c;if(e)Ce(n,t.l);else if(e=!!t.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=n.c.lastIndexOf("/");-1!=r&&(i=n.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(at(r,"./")||at(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}i=o.join("/")}else i=r}return e?n.c=i:e=""!==t.a.toString(),e?De(n,Ze(t.a)):e=!!t.g,e&&(n.g=t.g),n};var qe=/[#\/\?@]/g,Ke=/[#\?:]/g,He=/[#\?]/g,Ge=/[#\?@]/g,Be=/#/g;function We(t,n){this.b=this.a=null,this.c=t||null,this.f=!!n}function Xe(t){t.a||(t.a=new Se,t.b=0,t.c&&function(t,n){if(t){t=t.split("&");for(var e=0;e<t.length;e++){var i=t[e].indexOf("="),r=null;if(0<=i){var o=t[e].substring(0,i);r=t[e].substring(i+1)}else o=t[e];n(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,(function(n,e){t.add(decodeURIComponent(n.replace(/\+/g," ")),e)})))}function Je(t){var n=ke(t);if(void 0===n)throw Error("Keys are undefined");var e=new We(null,void 0);t=Ae(t);for(var i=0;i<n.length;i++){var r=n[i],o=t[i];Array.isArray(o)?$e(e,r,o):e.add(r,o)}return e}function Ye(t,n){Xe(t),n=Qe(t,n),_e(t.a.b,n)&&(t.c=null,t.b-=t.a.get(n).length,_e((t=t.a).b,n)&&(delete t.b[n],t.c--,t.a.length>2*t.c&&Ne(t)))}function ze(t,n){return Xe(t),n=Qe(t,n),_e(t.a.b,n)}function $e(t,n,e){Ye(t,n),0<e.length&&(t.c=null,t.a.set(Qe(t,n),z(e)),t.b+=e.length)}function Ze(t){var n=new We;return n.c=t.c,t.a&&(n.a=new Se(t.a),n.b=t.b),n}function Qe(t,n){return n=String(n),t.f&&(n=n.toLowerCase()),n}function ti(t){var n=[];return function t(n,e,i){if(null==e)i.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var r=e;e=r.length,i.push("[");for(var o="",a=0;a<e;a++)i.push(o),t(n,r[a],i),o=",";return void i.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){for(r in i.push("{"),o="",e)Object.prototype.hasOwnProperty.call(e,r)&&"function"!=typeof(a=e[r])&&(i.push(o),ri(r,i),i.push(":"),t(n,a,i),o=",");return void i.push("}")}e=e.valueOf()}switch(typeof e){case"string":ri(e,i);break;case"number":i.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":i.push(String(e));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}(new ni,t,n),n.join("")}function ni(){}(t=We.prototype).add=function(t,n){Xe(this),this.c=null,t=Qe(this,t);var e=this.a.get(t);return e||this.a.set(t,e=[]),e.push(n),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,n){Xe(this),this.a.forEach((function(e,i){K(e,(function(e){t.call(n,e,i,this)}),this)}),this)},t.X=function(){Xe(this);for(var t=this.a.V(),n=this.a.X(),e=[],i=0;i<n.length;i++)for(var r=t[i],o=0;o<r.length;o++)e.push(n[i]);return e},t.V=function(t){Xe(this);var n=[];if("string"==typeof t)ze(this,t)&&(n=Y(n,this.a.get(Qe(this,t))));else{t=this.a.V();for(var e=0;e<t.length;e++)n=Y(n,t[e])}return n},t.set=function(t,n){return Xe(this),this.c=null,ze(this,t=Qe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[n]),this.b+=1,this},t.get=function(t,n){return t&&0<(t=this.V(t)).length?String(t[0]):n},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],n=this.a.X(),e=0;e<n.length;e++){var i=n[e],r=encodeURIComponent(String(i));i=this.V(i);for(var o=0;o<i.length;o++){var a=r;""!==i[o]&&(a+="="+encodeURIComponent(String(i[o]))),t.push(a)}}return this.c=t.join("&")};var ei={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ii=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ri(t,n){n.push('"',t.replace(ii,(function(t){var n=ei[t];return n||(n="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ei[t]=n),n})),'"')}function oi(){var t=Ei();return Wt&&!!nn&&11==nn||/Edge\/\d+/.test(t)}function ai(){return s.window&&s.window.location.href||self&&self.location&&self.location.href||""}function si(t,n){n=n||s.window;var e="about:blank";t&&(e=Rt(Ct(t))),n.location.href=e}function ui(t){return!!((t=(t||Ei()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function ci(t){t=t||s.window;try{t.close()}catch(n){}}function hi(t,n,e){var i=Math.floor(1e9*Math.random()).toString();n=n||500,e=e||600;var r=(window.screen.availHeight-e)/2,o=(window.screen.availWidth-n)/2;for(a in n={width:n,height:e,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},e=Ei().toLowerCase(),i&&(n.target=i,at(e,"crios/")&&(n.target="_blank")),wi(Ei())==yi&&(t=t||"http://localhost",n.scrollbars=!0),e=t||"",(t=n)||(t={}),i=window,n=e instanceof Ot?e:Ct(void 0!==e.href?e.href:String(e)),e=t.target||e.target,r=[],t)switch(a){case"width":case"height":case"top":case"left":r.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(a+"="+(t[a]?1:0))}var a=r.join(",");if((ht("iPhone")&&!ht("iPod")&&!ht("iPad")||ht("iPad")||ht("iPod"))&&i.navigator&&i.navigator.standalone&&e&&"_self"!=e?(mt(a=fn(document,"A"),"HTMLAnchorElement"),n instanceof Ot||n instanceof Ot||(n="object"==typeof n&&n.ra?n.qa():String(n),Pt.test(n)||(n="about:invalid#zClosurez"),n=new Ot(Lt,n)),a.href=Rt(n),a.setAttribute("target",e),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=i.open("",e,a),t=Rt(n),a&&(Jt&&at(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=Ut('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+qt(t)+'">'),i=a.document)&&(i.write(xt(t)),i.close())):(a=i.open(Rt(n),e,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var li=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,fi=/^[^@]+@[^@]+$/;function di(){var t=null;return new yn((function(n){"complete"==s.document.readyState?n():(t=function(){n()},ue(window,"load",t))})).o((function(n){throw ce(window,"load",t),n}))}function pi(t){return t=t||Ei(),!("file:"!==_i()&&"ionic:"!==_i()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function vi(){var t=s.window;try{return!(!t||t==t.top)}catch(n){return!1}}function mi(){return void 0!==s.WorkerGlobalScope&&"function"==typeof s.importScripts}function gi(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":mi()?"Worker":"Browser"}function bi(){var t=gi();return"ReactNative"===t||"Node"===t}var yi="Firefox";function wi(t){var n=t.toLowerCase();return at(n,"opera/")||at(n,"opr/")||at(n,"opios/")?"Opera":at(n,"iemobile")?"IEMobile":at(n,"msie")||at(n,"trident/")?"IE":at(n,"edge/")?"Edge":at(n,"firefox/")?yi:at(n,"silk/")?"Silk":at(n,"blackberry")?"Blackberry":at(n,"webos")?"Webos":!at(n,"safari/")||at(n,"chrome/")||at(n,"crios/")||at(n,"android")?!at(n,"chrome/")&&!at(n,"crios/")||at(n,"edge/")?at(n,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Ii={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Ti(t,n){n=n||[];var e,i=[],r={};for(e in Ii)r[Ii[e]]=!0;for(e=0;e<n.length;e++)void 0!==r[n[e]]&&(delete r[n[e]],i.push(n[e]));return i.sort(),(n=i).length||(n=["FirebaseCore-web"]),"Browser"===(i=gi())?i=wi(r=Ei()):"Worker"===i&&(i=wi(r=Ei())+"-"+i),i+"/JsCore/"+t+"/"+n.join(",")}function Ei(){return s.navigator&&s.navigator.userAgent||""}function Ai(t,n){t=t.split("."),n=n||s;for(var e=0;e<t.length&&"object"==typeof n&&null!=n;e++)n=n[t[e]];return e!=t.length&&(n=void 0),n}function ki(){try{var t=s.localStorage,n=Di();if(t)return t.setItem(n,"1"),t.removeItem(n),!oi()||!!s.indexedDB}catch(e){return mi()&&!!s.indexedDB}return!1}function Si(){return(Ni()||"chrome-extension:"===_i()||pi())&&!bi()&&ki()&&!mi()}function Ni(){return"http:"===_i()||"https:"===_i()}function _i(){return s.location&&s.location.protocol||null}function Oi(t){return!ui(t=t||Ei())&&wi(t)!=yi}function Ri(t){return void 0===t?null:ti(t)}function Pi(t){var n,e={};for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}function Ci(t){if(null!==t)return JSON.parse(t)}function Di(t){return t||Math.floor(1e9*Math.random()).toString()}function Li(t){return"Safari"!=wi(t=t||Ei())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Mi(){var t=s.___jsl;if(t&&t.H)for(var n in t.H)if(t.H[n].r=t.H[n].r||[],t.H[n].L=t.H[n].L||[],t.H[n].r=t.H[n].L.concat(),t.CP)for(var e=0;e<t.CP.length;e++)t.CP[e]=null}function xi(t,n){if(t>n)throw Error("Short delay should be less than long delay!");this.a=t,this.c=n,t=Ei(),n=gi(),this.b=ui(t)||"ReactNative"===n}function ji(){var t=s.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Ui(t){try{var n=new Date(parseInt(t,10));if(!isNaN(n.getTime())&&!/[^0-9]/.test(t))return n.toUTCString()}catch(e){}return null}function Vi(){return!(!Ai("fireauth.oauthhelper",s)&&!Ai("fireauth.iframe",s))}xi.prototype.get=function(){var t=s.navigator;return!t||"boolean"!=typeof t.onLine||!Ni()&&"chrome-extension:"!==_i()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Fi,qi={};function Ki(t){qi[t]||(qi[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var Hi={};Object.defineProperty(Hi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Hi,"abcd",{configurable:!0,enumerable:!0,value:2}),Fi=2==Hi.abcd}catch(Gt){Fi=!1}function Gi(t,n,e){Fi?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:e}):t[n]=e}function Bi(t,n){if(n)for(var e in n)n.hasOwnProperty(e)&&Gi(t,e,n[e])}function Wi(t){var n={};return Bi(n,t),n}function Xi(t){var n=t;if("object"==typeof t&&null!=t)for(var e in n="length"in t?[]:{},t)Gi(n,e,Xi(t[e]));return n}function Ji(t){var n=t&&(t[Qi]?"phone":null);if(!(n&&t&&t[Zi]))throw new A("internal-error","Internal assert: invalid MultiFactorInfo object");Gi(this,"uid",t[Zi]),Gi(this,"displayName",t[zi]||null);var e=null;t[$i]&&(e=new Date(t[$i]).toUTCString()),Gi(this,"enrollmentTime",e),Gi(this,"factorId",n)}function Yi(t){try{var n=new tr(t)}catch(e){n=null}return n}Ji.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var zi="displayName",$i="enrolledAt",Zi="mfaEnrollmentId",Qi="phoneInfo";function tr(t){Ji.call(this,t),Gi(this,"phoneNumber",t[Qi])}function nr(t){var n={},e=t[or],i=t[sr],r=t[ur];if(t=Yi(t[ar]),!r||r!=ir&&r!=rr&&!e||r==rr&&!i||r==er&&!t)throw Error("Invalid checkActionCode response!");r==rr?(n[hr]=e||null,n[fr]=e||null,n[cr]=i):(n[hr]=i||null,n[fr]=i||null,n[cr]=e||null),n[lr]=t||null,Gi(this,pr,r),Gi(this,dr,Xi(n))}E(tr,Ji),tr.prototype.v=function(){var t=tr.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var er="REVERT_SECOND_FACTOR_ADDITION",ir="EMAIL_SIGNIN",rr="VERIFY_AND_CHANGE_EMAIL",or="email",ar="mfaInfo",sr="newEmail",ur="requestType",cr="email",hr="fromEmail",lr="multiFactorInfo",fr="previousEmail",dr="data",pr="operation";function vr(t){var n=Me(t=xe(t),mr)||null,e=Me(t,gr)||null,i=Me(t,wr)||null;if(i=i&&Tr[i]||null,!n||!e||!i)throw new A("argument-error",mr+", "+gr+"and "+wr+" are required in a valid action code URL.");Bi(this,{apiKey:n,operation:i,code:e,continueUrl:Me(t,br)||null,languageCode:Me(t,yr)||null,tenantId:Me(t,Ir)||null})}var mr="apiKey",gr="oobCode",br="continueUrl",yr="languageCode",wr="mode",Ir="tenantId",Tr={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:er,signIn:ir,verifyAndChangeEmail:rr,verifyEmail:"VERIFY_EMAIL"};function Er(t){try{return new vr(t)}catch(n){return null}}function Ar(t){var n=t[Or];if(void 0===n)throw new A("missing-continue-uri");if("string"!=typeof n||"string"==typeof n&&!n.length)throw new A("invalid-continue-uri");this.h=n,this.b=this.a=null,this.g=!1;var e=t[kr];if(e&&"object"==typeof e){n=e[Cr];var i=e[Rr];if(e=e[Pr],"string"==typeof n&&n.length){if(this.a=n,void 0!==i&&"boolean"!=typeof i)throw new A("argument-error",Rr+" property must be a boolean when specified.");if(this.g=!!i,void 0!==e&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new A("argument-error",Pr+" property must be a non empty string when specified.");this.b=e||null}else{if(void 0!==n)throw new A("argument-error",Cr+" property must be a non empty string when specified.");if(void 0!==i||void 0!==e)throw new A("missing-android-pkg-name")}}else if(void 0!==e)throw new A("argument-error",kr+" property must be a non null object when specified.");if(this.f=null,(n=t[_r])&&"object"==typeof n){if("string"==typeof(n=n[Dr])&&n.length)this.f=n;else if(void 0!==n)throw new A("argument-error",Dr+" property must be a non empty string when specified.")}else if(void 0!==n)throw new A("argument-error",_r+" property must be a non null object when specified.");if(void 0!==(n=t[Nr])&&"boolean"!=typeof n)throw new A("argument-error",Nr+" property must be a boolean when specified.");if(this.c=!!n,void 0!==(t=t[Sr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new A("argument-error",Sr+" property must be a non empty string when specified.");this.i=t||null}var kr="android",Sr="dynamicLinkDomain",Nr="handleCodeInApp",_r="iOS",Or="url",Rr="installApp",Pr="minimumVersion",Cr="packageName",Dr="bundleId";function Lr(t){var n={};for(var e in n.continueUrl=t.h,n.canHandleCodeInApp=t.c,(n.androidPackageName=t.a)&&(n.androidMinimumVersion=t.b,n.androidInstallApp=t.g),n.iOSBundleId=t.f,n.dynamicLinkDomain=t.i,n)null===n[e]&&delete n[e];return n}var Mr=null;function xr(t){var n=Ur(t);if(!(n&&n.sub&&n.iss&&n.aud&&n.exp))throw Error("Invalid JWT");this.g=t,this.c=n.exp,this.h=n.sub,T(),this.a=n.provider_id||n.firebase&&n.firebase.sign_in_provider||null,this.f=n.firebase&&n.firebase.tenant||null,this.b=!!n.is_anonymous||"anonymous"==this.a}function jr(t){try{return new xr(t)}catch(n){return null}}function Ur(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var n=(4-(t=t[1]).length%4)%4,e=0;e<n;e++)t+=".";try{return JSON.parse(function(t){var n="";return function(t,n){function e(n){for(;i<t.length;){var e=t.charAt(i++),r=Mr[e];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(e))throw Error("Unknown base64 encoding at char: "+e)}return n}!function(){if(!Mr){Mr={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++)for(var i=t.concat(n[e].split("")),r=0;r<i.length;r++){var o=i[r];void 0===Mr[o]&&(Mr[o]=r)}}}();for(var i=0;;){var r=e(-1),o=e(0),a=e(64),s=e(64);if(64===s&&-1===r)break;n(r<<2|o>>4),64!=a&&(n(o<<4&240|a>>2),64!=s&&n(a<<6&192|s))}}(t,(function(t){n+=String.fromCharCode(t)})),n}(t))}catch(i){}return null}xr.prototype.S=function(){return this.f},xr.prototype.i=function(){return this.b},xr.prototype.toString=function(){return this.g};var Vr="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Fr=["client_id","response_type","scope","redirect_uri","state"],qr={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:Fr},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:Fr},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:Fr},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Vr},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Kr(t){for(var n in qr)if(qr[n].ea==t)return qr[n];return null}function Hr(t){var n={};n["facebook.com"]=Jr,n["google.com"]=zr,n["github.com"]=Yr,n["twitter.com"]=$r;var e=t&&t[Br];try{if(e)return n[e]?new n[e](t):new Xr(t);if(void 0!==t[Gr])return new Wr(t)}catch(i){}return null}var Gr="idToken",Br="providerId";function Wr(t){var n=t[Br];if(!n&&t[Gr]){var e=jr(t[Gr]);e&&e.a&&(n=e.a)}if(!n)throw Error("Invalid additional user info!");"anonymous"!=n&&"custom"!=n||(n=null),e=!1,void 0!==t.isNewUser?e=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(e=!0),Gi(this,"providerId",n),Gi(this,"isNewUser",e)}function Xr(t){Wr.call(this,t),Gi(this,"profile",Xi((t=Ci(t.rawUserInfo||"{}"))||{}))}function Jr(t){if(Xr.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Yr(t){if(Xr.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Gi(this,"username",this.profile&&this.profile.login||null)}function zr(t){if(Xr.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function $r(t){if(Xr.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Gi(this,"username",t.screenName||null)}function Zr(t){var n=xe(t),e=Me(n,"link"),i=Me(xe(e),"link");return n=Me(n,"deep_link_id"),Me(xe(n),"link")||n||i||e||t}function Qr(t,n){if(!t&&!n)throw new A("internal-error","Internal assert: no raw session string available");if(t&&n)throw new A("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=n||null,this.type=this.a?to:no}E(Xr,Wr),E(Jr,Xr),E(Yr,Xr),E(zr,Xr),E($r,Xr);var to="enroll",no="signin";function eo(){}function io(t,n){return t.then((function(t){if(t[Ha]){var e=jr(t[Ha]);if(!e||n!=e.h)throw new A("user-mismatch");return t}throw new A("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==N+"user-not-found"?new A("user-mismatch"):t}))}function ro(t,n){if(!n)throw new A("internal-error","failed to construct a credential");this.a=n,Gi(this,"providerId",t),Gi(this,"signInMethod",t)}function oo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function ao(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new ro(t.providerId,t.pendingToken)}catch(n){}return null}function so(t,n,e){if(this.a=null,n.idToken||n.accessToken)n.idToken&&Gi(this,"idToken",n.idToken),n.accessToken&&Gi(this,"accessToken",n.accessToken),n.nonce&&!n.pendingToken&&Gi(this,"nonce",n.nonce),n.pendingToken&&(this.a=n.pendingToken);else{if(!n.oauthToken||!n.oauthTokenSecret)throw new A("internal-error","failed to construct a credential");Gi(this,"accessToken",n.oauthToken),Gi(this,"secret",n.oauthTokenSecret)}Gi(this,"providerId",t),Gi(this,"signInMethod",e)}function uo(t){var n={};return t.idToken&&(n.id_token=t.idToken),t.accessToken&&(n.access_token=t.accessToken),t.secret&&(n.oauth_token_secret=t.secret),n.providerId=t.providerId,t.nonce&&!t.a&&(n.nonce=t.nonce),n={postBody:Je(n).toString(),requestUri:"http://localhost"},t.a&&(delete n.postBody,n.pendingToken=t.a),n}function co(t){if(t&&t.providerId&&t.signInMethod){var n={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new so(t.providerId,n,t.signInMethod)}catch(e){}}return null}function ho(t,n){this.Oc=n||[],Bi(this,{providerId:t,isOAuthProvider:!0}),this.Fb={},this.lb=(Kr(t)||{}).Ha||null,this.kb=null}function lo(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new A("argument-error",'SAML provider IDs must be prefixed with "saml."');ho.call(this,t,[])}function fo(t){ho.call(this,t,Fr),this.a=[]}function po(){fo.call(this,"facebook.com")}function vo(t){if(!t)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var n=t;return p(t)&&(n=t.accessToken),(new po).credential({accessToken:n})}function mo(){fo.call(this,"github.com")}function go(t){if(!t)throw new A("argument-error","credential failed: expected 1 argument (the OAuth access token).");var n=t;return p(t)&&(n=t.accessToken),(new mo).credential({accessToken:n})}function bo(){fo.call(this,"google.com"),this.Aa("profile")}function yo(t,n){var e=t;return p(t)&&(e=t.idToken,n=t.accessToken),(new bo).credential({idToken:e,accessToken:n})}function wo(){ho.call(this,"twitter.com",Vr)}function Io(t,n){var e=t;if(p(e)||(e={oauthToken:t,oauthTokenSecret:n}),!e.oauthToken||!e.oauthTokenSecret)throw new A("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new so("twitter.com",e,"twitter.com")}function To(t,n,e){this.a=t,this.f=n,Gi(this,"providerId","password"),Gi(this,"signInMethod",e===Ao.EMAIL_LINK_SIGN_IN_METHOD?Ao.EMAIL_LINK_SIGN_IN_METHOD:Ao.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Eo(t){return t&&t.email&&t.password?new To(t.email,t.password,t.signInMethod):null}function Ao(){Bi(this,{providerId:"password",isOAuthProvider:!1})}function ko(t,n){if(!(n=So(n)))throw new A("argument-error","Invalid email link!");return new To(t,n.code,Ao.EMAIL_LINK_SIGN_IN_METHOD)}function So(t){return(t=Er(t=Zr(t)))&&t.operation===ir?t:null}function No(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new A("internal-error");this.a=t,Gi(this,"providerId","phone"),this.ea="phone",Gi(this,"signInMethod","phone")}function _o(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var n={};return K(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(e){t[e]&&(n[e]=t[e])})),new No(n)}return null}function Oo(t){return t.a.Ja&&t.a.da?{temporaryProof:t.a.Ja,phoneNumber:t.a.da}:{sessionInfo:t.a.bb,code:t.a.ab}}function Ro(t){try{this.a=t||r.a.auth()}catch(n){throw new A("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Bi(this,{providerId:"phone",isOAuthProvider:!1})}function Po(t,n){if(!t)throw new A("missing-verification-id");if(!n)throw new A("missing-verification-code");return new No({bb:t,ab:n})}function Co(t){if(t.temporaryProof&&t.phoneNumber)return new No({Ja:t.temporaryProof,da:t.phoneNumber});var n=t&&t.providerId;if(!n||"password"===n)return null;var e=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(n){case"google.com":return yo(o,e);case"facebook.com":return vo(e);case"github.com":return go(e);case"twitter.com":return Io(e,i);default:return e||i||o||a?a?0==n.indexOf("saml.")?new ro(n,a):new so(n,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},n):new fo(n).credential({idToken:o,accessToken:e,rawNonce:r}):null}}catch(s){return null}}function Do(t){if(!t.isOAuthProvider)throw new A("invalid-oauth-provider")}function Lo(t,n,e,i,r,o,a){if(this.c=t,this.b=n||null,this.g=e||null,this.f=i||null,this.i=o||null,this.h=a||null,this.a=r||null,!this.g&&!this.a)throw new A("invalid-auth-event");if(this.g&&this.a)throw new A("invalid-auth-event");if(this.g&&!this.f)throw new A("invalid-auth-event")}function Mo(t){return(t=t||{}).type?new Lo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&k(t.error),t.postBody,t.tenantId):null}function xo(){this.b=null,this.a=[]}Qr.prototype.Fa=function(){return Sn(this.a?this.a:this.b)},Qr.prototype.v=function(){return this.type==to?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},eo.prototype.ia=function(){},eo.prototype.b=function(){},eo.prototype.c=function(){},eo.prototype.v=function(){},ro.prototype.ia=function(t){return us(t,oo(this))},ro.prototype.b=function(t,n){var e=oo(this);return e.idToken=n,cs(t,e)},ro.prototype.c=function(t,n){return io(hs(t,oo(this)),n)},ro.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},so.prototype.ia=function(t){return us(t,uo(this))},so.prototype.b=function(t,n){var e=uo(this);return e.idToken=n,cs(t,e)},so.prototype.c=function(t,n){return io(hs(t,uo(this)),n)},so.prototype.v=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},ho.prototype.Ia=function(t){return this.Fb=dt(t),this},E(lo,ho),E(fo,ho),fo.prototype.Aa=function(t){return W(this.a,t)||this.a.push(t),this},fo.prototype.Nb=function(){return z(this.a)},fo.prototype.credential=function(t,n){var e;if(!(e=p(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:n||null}).idToken&&!e.accessToken)throw new A("argument-error","credential failed: must provide the ID token and/or the access token.");return new so(this.providerId,e,this.providerId)},E(po,fo),Gi(po,"PROVIDER_ID","facebook.com"),Gi(po,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),E(mo,fo),Gi(mo,"PROVIDER_ID","github.com"),Gi(mo,"GITHUB_SIGN_IN_METHOD","github.com"),E(bo,fo),Gi(bo,"PROVIDER_ID","google.com"),Gi(bo,"GOOGLE_SIGN_IN_METHOD","google.com"),E(wo,ho),Gi(wo,"PROVIDER_ID","twitter.com"),Gi(wo,"TWITTER_SIGN_IN_METHOD","twitter.com"),To.prototype.ia=function(t){return this.signInMethod==Ao.EMAIL_LINK_SIGN_IN_METHOD?Bs(t,bs,{email:this.a,oobCode:this.f}):Bs(t,Fs,{email:this.a,password:this.f})},To.prototype.b=function(t,n){return this.signInMethod==Ao.EMAIL_LINK_SIGN_IN_METHOD?Bs(t,ys,{idToken:n,email:this.a,oobCode:this.f}):Bs(t,Cs,{idToken:n,email:this.a,password:this.f})},To.prototype.c=function(t,n){return io(this.ia(t),n)},To.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Bi(Ao,{PROVIDER_ID:"password"}),Bi(Ao,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Bi(Ao,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),No.prototype.ia=function(t){return t.cb(Oo(this))},No.prototype.b=function(t,n){var e=Oo(this);return e.idToken=n,Bs(t,Ks,e)},No.prototype.c=function(t,n){var e=Oo(this);return e.operation="REAUTH",io(t=Bs(t,Hs,e),n)},No.prototype.v=function(){var t={providerId:"phone"};return this.a.bb&&(t.verificationId=this.a.bb),this.a.ab&&(t.verificationCode=this.a.ab),this.a.Ja&&(t.temporaryProof=this.a.Ja),this.a.da&&(t.phoneNumber=this.a.da),t},Ro.prototype.cb=function(t,n){var e=this.a.b;return Sn(n.verify()).then((function(i){if("string"!=typeof i)throw new A("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(n.type){case"recaptcha":var r=p(t)?t.session:null,o=p(t)?t.phoneNumber:t;return(r&&r.type==to?r.Fa().then((function(t){return function(t,n){return Bs(t,Ls,n).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(e,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}})})):r&&r.type==no?r.Fa().then((function(n){return function(t,n){return Bs(t,Ms,n).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(e,{mfaPendingCredential:n,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})})):function(t,n){return Bs(t,Rs,n)}(e,{phoneNumber:o,recaptchaToken:i})).then((function(t){return"function"==typeof n.reset&&n.reset(),t}),(function(t){throw"function"==typeof n.reset&&n.reset(),t}));default:throw new A("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Bi(Ro,{PROVIDER_ID:"phone"}),Bi(Ro,{PHONE_SIGN_IN_METHOD:"phone"}),Lo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Lo.prototype.S=function(){return this.h},Lo.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var jo,Uo=null;function Vo(t){var n="unauthorized-domain",e=void 0,i=xe(t);t=i.b,"chrome-extension"==(i=i.f)?e=Ft("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==i||"https"==i?e=Ft("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):n="operation-not-supported-in-this-environment",A.call(this,n,e)}function Fo(t,n,e){A.call(this,t,e),(t=n||{}).Gb&&Gi(this,"email",t.Gb),t.da&&Gi(this,"phoneNumber",t.da),t.credential&&Gi(this,"credential",t.credential),t.Wb&&Gi(this,"tenantId",t.Wb)}function qo(t){if(t.code){var n=t.code||"";0==n.indexOf(N)&&(n=n.substring(N.length));var e={credential:Co(t),Wb:t.tenantId};if(t.email)e.Gb=t.email;else if(t.phoneNumber)e.da=t.phoneNumber;else if(!e.credential)return new A(n,t.message||void 0);return new Fo(n,e,t.message)}return null}function Ko(){}function Ho(){}function Go(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var n=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],e=0;e<n.length;e++){var i=n[e];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Bo(){}function Wo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.oc,this),this.a.onerror=w(this.Pb,this),this.a.onprogress=w(this.pc,this),this.a.ontimeout=w(this.tc,this)}function Xo(t,n){t.readyState=n,t.onreadystatechange&&t.onreadystatechange()}function Jo(t,n,e){this.reset(t,n,e,void 0,void 0)}function Yo(t){this.f=t,this.b=this.c=this.a=null}function zo(t,n){this.name=t,this.value=n}E(Vo,A),E(Fo,A),Fo.prototype.v=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var n=this.credential&&this.credential.v();return n&&vt(t,n),t},Fo.prototype.toJSON=function(){return this.v()},Ko.prototype.c=null,E(Ho,Ko),Ho.prototype.a=function(){var t=Go(this);return t?new ActiveXObject(t):new XMLHttpRequest},Ho.prototype.b=function(){var t={};return Go(this)&&(t[0]=!0,t[1]=!0),t},jo=new Ho,E(Bo,Ko),Bo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Wo;throw Error("Unsupported browser")},Bo.prototype.b=function(){return{}},(t=Wo.prototype).open=function(t,n,e){if(null!=e&&!e)throw Error("Only async requests are supported.");this.a.open(t,n)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Xo(this,4)},t.Pb=function(){this.status=500,this.response=this.responseText="",Xo(this,4)},t.tc=function(){this.Pb()},t.pc=function(){this.status=200,Xo(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Jo.prototype.a=null,Jo.prototype.reset=function(t,n,e,i,r){i||T(),delete this.a},zo.prototype.toString=function(){return this.name};var $o=new zo("SEVERE",1e3),Zo=new zo("WARNING",900),Qo=new zo("CONFIG",700),ta=new zo("FINE",500);Yo.prototype.log=function(t,n,e){if(t.value>=function t(n){return n.c?n.c:n.a?t(n.a):(L("Root logger has no level set."),null)}(this).value)for(d(n)&&(n=n()),t=new Jo(t,String(n),this.f),e&&(t.a=e),e=this;e;)e=e.a};var na={},ea=null;function ia(t){var n;if(ea||(ea=new Yo(""),na[""]=ea,ea.c=Qo),!(n=na[t])){n=new Yo(t);var e=t.lastIndexOf("."),i=t.substr(e+1);(e=ia(t.substr(0,e))).b||(e.b={}),e.b[i]=n,n.a=e,na[t]=n}return n}function ra(t,n){t&&t.log(ta,n,void 0)}function oa(t){this.f=t}function aa(t){be.call(this),this.s=t,this.readyState=sa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=ia("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}E(oa,Ko),oa.prototype.a=function(){return new aa(this.f)},oa.prototype.b=function(t){return function(){return t}}({}),E(aa,be);var sa=0;function ua(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function ca(t,n){n&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,ha(t)}function ha(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function la(t){be.call(this),this.headers=new Se,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=fa,this.w=this.R=!1}(t=aa.prototype).open=function(t,n){if(this.readyState!=sa)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=n,this.readyState=1,ha(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var n={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(n.body=t),this.s.fetch(new Request(this.g,n)).then(this.sc.bind(this),this.Sa.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ca(this,!1)),this.readyState=sa},t.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ha(this)),this.a&&(this.readyState=3,ha(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==s.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,ua(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(t){if(this.a){var n=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});n&&(this.response=this.responseText+=n),t.done?ca(this,!0):ha(this),3==this.readyState&&ua(this)}},t.rc=function(t){this.a&&(this.response=this.responseText=t,ca(this,!0))},t.qc=function(t){this.a&&(this.response=t,ca(this,!0))},t.Sa=function(t){var n=this.h;n&&n.log(Zo,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&ca(this,!0)},t.setRequestHeader=function(t,n){this.i.append(t,n)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(Zo,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(Zo,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var n=this.b.entries(),e=n.next();!e.done;)t.push((e=e.value)[0]+": "+e[1]),e=n.next();return t.join("\r\n")},E(la,be);var fa="";la.prototype.b=ia("goog.net.XhrIo");var da=/^https?$/i,pa=["POST","PUT"];function va(t){return"content-type"==t.toLowerCase()}function ma(t,n){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=n,ga(t),ya(t)}function ga(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ba(t){if(t.c&&void 0!==a)if(t.B[1]&&4==Ia(t)&&2==Ta(t))ra(t.b,Ea(t,"Local request error detected and ignored"));else if(t.i&&4==Ia(t))Te(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==Ia(t)){ra(t.b,Ea(t,"Request complete")),t.c=!1;try{var n,e=Ta(t);t:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(n=i)){var r;if(r=0===e){var o=String(t.l).match(Oe)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}r=!da.test(o?o.toLowerCase():"")}n=r}if(n)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var c=2<Ia(t)?t.a.statusText:""}catch(h){ra(t.b,"Can not get status: "+h.message),c=""}t.h=c+" ["+Ta(t)+"]",ga(t)}}finally{ya(t)}}}function ya(t,n){if(t.a){wa(t);var e=t.a,i=t.B[0]?h:null;t.a=null,t.B=null,n||t.dispatchEvent("ready");try{e.onreadystatechange=i}catch(r){(t=t.b)&&t.log($o,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function wa(t){t.a&&t.w&&(t.a.ontimeout=null),t.s&&(s.clearTimeout(t.s),t.s=null)}function Ia(t){return t.a?t.a.readyState:0}function Ta(t){try{return 2<Ia(t)?t.a.status:-1}catch(n){return-1}}function Ea(t,n){return n+" ["+t.P+" "+t.l+" "+Ta(t)+"]"}function Aa(t){var n=Ma;this.g=[],this.w=n,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function ka(t,n,e){t.a=!0,t.c=e,t.f=!n,Oa(t)}function Sa(t){if(t.a){if(!t.u)throw new Ra(t);t.u=!1}}function Na(t,n,e,i){t.g.push([n,e,i]),t.a&&Oa(t)}function _a(t){return B(t.g,(function(t){return d(t[1])}))}function Oa(t){if(t.h&&t.a&&_a(t)){var n=t.h,e=Da[n];e&&(s.clearTimeout(e.a),delete Da[n]),t.h=0}t.b&&(t.b.l--,delete t.b),n=t.c;for(var i=e=!1;t.g.length&&!t.i;){var r=t.g.shift(),o=r[0],a=r[1];if(r=r[2],o=t.f?a:o)try{var u=o.call(r||t.s,n);void 0!==u&&(t.f=t.f&&(u==n||u instanceof Error),t.c=n=u),(P(n)||"function"==typeof s.Promise&&n instanceof s.Promise)&&(i=!0,t.i=!0)}catch(c){n=c,t.f=!0,_a(t)||(e=!0)}}t.c=n,i&&(u=w(t.m,t,!0),i=w(t.m,t,!1),n instanceof Aa?(Na(n,u,i),n.B=!0):n.then(u,i)),e&&(n=new Ca(n),Da[n.a]=n,t.h=n.a)}function Ra(){C.call(this)}function Pa(){C.call(this)}function Ca(t){this.a=s.setTimeout(w(this.c,this),0),this.b=t}(t=la.prototype).Ka=function(){void 0!==a&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ra(this.b,Ea(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ra(this.b,Ea(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ya(this))},t.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),ya(this,!0)),la.Za.Ba.call(this)},t.Sb=function(){this.wa||(this.O||this.i||this.f?ba(this):this.Hc())},t.Hc=function(){ba(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case fa:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log($o,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(n){return ra(this.b,"Can not get response: "+n.message),null}},Aa.prototype.cancel=function(t){if(this.a)this.c instanceof Aa&&this.c.cancel();else{if(this.b){var n=this.b;delete this.b,t?n.cancel(t):(n.l--,0>=n.l&&n.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Pa(this),Sa(this),ka(this,!1,t))}},Aa.prototype.m=function(t,n){this.i=!1,ka(this,t,n)},Aa.prototype.then=function(t,n,e){var i,r,o=new yn((function(t,n){i=t,r=n}));return Na(this,i,(function(t){t instanceof Pa?o.cancel():r(t)})),o.then(t,n,e)},Aa.prototype.$goog_Thenable=!0,E(Ra,C),Ra.prototype.message="Deferred has already fired",Ra.prototype.name="AlreadyCalledError",E(Pa,C),Pa.prototype.message="Deferred was canceled",Pa.prototype.name="CanceledError",Ca.prototype.c=function(){throw delete Da[this.a],this.b};var Da={};function La(t){var n={},e=n.document||document,i=Et(t).toString(),r=fn(document,"SCRIPT"),o={Tb:r,Ka:void 0},a=new Aa(o),h=null,l=null!=n.timeout?n.timeout:5e3;return 0<l&&(h=window.setTimeout((function(){xa(r,!0);var t=new Va(Ua,"Timeout reached for loading script "+i);Sa(a),ka(a,!1,t)}),l),o.Ka=h),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(xa(r,n.ud||!1,h),Sa(a),ka(a,!0,null))},r.onerror=function(){xa(r,!0,h);var t=new Va(ja,"Error while loading script "+i);Sa(a),ka(a,!1,t)},vt(o=n.attributes||{},{type:"text/javascript",charset:"UTF-8"}),sn(r,o),function(t,n){mt(t,"HTMLScriptElement"),t.src=Et(n),null===c&&(c=(n=(n=s.document).querySelector&&n.querySelector("script[nonce]"))&&(n=n.nonce||n.getAttribute("nonce"))&&u.test(n)?n:""),(n=c)&&t.setAttribute("nonce",n)}(r,t),function(t){var n;return(n=(t||document).getElementsByTagName("HEAD"))&&0!=n.length?n[0]:t.documentElement}(e).appendChild(r),a}function Ma(){if(this&&this.Tb){var t=this.Tb;t&&"SCRIPT"==t.tagName&&xa(t,!0,this.Ka)}}function xa(t,n,e){null!=e&&s.clearTimeout(e),t.onload=h,t.onerror=h,t.onreadystatechange=h,n&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var ja=0,Ua=1;function Va(t,n){var e="Jsloader error (code #"+t+")";n&&(e+=": "+n),C.call(this,e),this.code=t}function Fa(t){this.f=t}function qa(t,n,e){if(this.c=t,this.u=(t=n||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Ga,this.g=dt(t.secureTokenHeaders||Ba),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=t.firebaseTimeout||Wa,this.a=dt(t.firebaseHeaders||Xa),e&&(this.a["X-Client-Version"]=e,this.g["X-Client-Version"]=e),e="Node"==gi(),!(e=s.XMLHttpRequest||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!mi())throw new A("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=mi()?new oa(self):bi()?new Fa(e):new Bo,this.b=null}E(Va,C),E(Fa,Ko),Fa.prototype.a=function(){return new this.f},Fa.prototype.b=function(){return{}};var Ka,Ha="idToken",Ga=new xi(3e4,6e4),Ba={"Content-Type":"application/x-www-form-urlencoded"},Wa=new xi(3e4,6e4),Xa={"Content-Type":"application/json"};function Ja(t,n){n?t.a["X-Firebase-Locale"]=n:delete t.a["X-Firebase-Locale"]}function Ya(t,n){n?(t.a["X-Client-Version"]=n,t.g["X-Client-Version"]=n):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function za(t,n,e,i,r,o,a){(function(){var t=Ei();return!((t="Chrome"!=wi(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Wt&&nn&&!(9<nn))})()||mi()?t=w(t.w,t):(Ka||(Ka=new yn((function(t,n){!function(t,n){((window.gapi||{}).client||{}).request?t():(s[Za]=function(){((window.gapi||{}).client||{}).request?t():n(Error("CORS_UNSUPPORTED"))},function(t,n){Na(t,null,n,void 0)}(La(At($a,{onload:Za})),(function(){n(Error("CORS_UNSUPPORTED"))})))}(t,n)}))),t=w(t.s,t)),t(n,e,i,r,o,a)}qa.prototype.S=function(){return this.b},qa.prototype.w=function(t,n,e,i,r,o){if(mi()&&(void 0===s.fetch||void 0===s.Headers||void 0===s.Request))throw new A("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new la(this.f);if(o){a.g=Math.max(0,o);var u=setTimeout((function(){a.dispatchEvent("timeout")}),o)}ye(a,"complete",(function(){u&&clearTimeout(u);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(n){return ra(t.b,"Can not get responseText: "+n.message),""}}(this))||null}catch(e){t=null}n&&n(t)})),we(a,"ready",(function(){u&&clearTimeout(u),Hn(this)})),we(a,"timeout",(function(){u&&clearTimeout(u),Hn(this),n&&n(null)})),function(t,n,e,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+n);e=e?e.toUpperCase():"GET",t.l=n,t.h="",t.P=e,t.N=!1,t.c=!0,t.a=t.D?t.D.a():jo.a(),t.B=function(t){return t.c||(t.c=t.b())}(t.D?t.D:jo),t.a.onreadystatechange=w(t.Sb,t);try{ra(t.b,Ea(t,"Opening Xhr")),t.O=!0,t.a.open(e,String(n),!0),t.O=!1}catch(a){return ra(t.b,Ea(t,"Error opening Xhr: "+a.message)),void ma(t,a)}n=i||"";var o=new Se(t.headers);r&&function(t,n){if(t.forEach&&"function"==typeof t.forEach)t.forEach(n,void 0);else if(f(t)||"string"==typeof t)K(t,n,void 0);else for(var e=ke(t),i=Ae(t),r=i.length,o=0;o<r;o++)n.call(void 0,i[o],e&&e[o],t)}(r,(function(t,n){o.set(n,t)})),r=function(t){t:{for(var n=va,e=t.length,i="string"==typeof t?t.split(""):t,r=0;r<e;r++)if(r in i&&n.call(void 0,i[r],r,t)){n=r;break t}n=-1}return 0>n?null:"string"==typeof t?t.charAt(n):t[n]}(o.X()),i=s.FormData&&n instanceof s.FormData,!W(pa,e)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,n){this.a.setRequestHeader(n,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{wa(t),0<t.g&&(t.w=function(t){return Wt&&rn(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),ra(t.b,Ea(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.w)),t.w?(t.a.timeout=t.g,t.a.ontimeout=w(t.Ka,t)):t.s=Te(t.Ka,t.g,t)),ra(t.b,Ea(t,"Sending request")),t.i=!0,t.a.send(n),t.i=!1}catch(a){ra(t.b,Ea(t,"Send error: "+a.message)),ma(t,a)}}(a,t,e,i,r)};var $a=new gt(wt,"https://apis.google.com/js/client.js?onload=%{onload}"),Za="__fcb"+Math.floor(1e6*Math.random()).toString();function Qa(t){if("string"!=typeof(t=t.email)||!fi.test(t))throw new A("invalid-email")}function ts(t){"email"in t&&Qa(t)}function ns(t){if(!t[Ha]){if(t.mfaPendingCredential)throw new A("multi-factor-auth-required",null,dt(t));throw new A("internal-error")}}function es(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new A("internal-error")}else{if(!t.sessionInfo)throw new A("missing-verification-id");if(!t.code)throw new A("missing-verification-code")}}qa.prototype.s=function(t,n,e,i,r){var o=this;Ka.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:e,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(a),n&&n(t)}})})).o((function(t){n&&n({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},qa.prototype.vb=function(){return Bs(this,Ds,{})},qa.prototype.xb=function(t,n){return Bs(this,Ps,{idToken:t,email:n})},qa.prototype.yb=function(t,n){return Bs(this,Cs,{idToken:t,password:n})};var is={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function rs(t){if(!t.phoneVerificationInfo)throw new A("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new A("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new A("missing-verification-code")}function os(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new A("internal-error")}function as(t,n){return n.oauthIdToken&&n.providerId&&0==n.providerId.indexOf("oidc.")&&!n.pendingToken&&(t.sessionId?n.nonce=t.sessionId:t.postBody&&ze(t=new We(t.postBody),"nonce")&&(n.nonce=t.get("nonce"))),n}function ss(t){var n=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",n=qo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",n=qo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",n=qo(t)):t.errorMessage&&(n=Ws(t.errorMessage)),n)throw n;ns(t)}function us(t,n){return n.returnIdpCredential=!0,Bs(t,xs,n)}function cs(t,n){return n.returnIdpCredential=!0,Bs(t,Us,n)}function hs(t,n){return n.returnIdpCredential=!0,n.autoCreate=!1,Bs(t,js,n)}function ls(t){if(!t.oobCode)throw new A("invalid-action-code")}(t=qa.prototype).zb=function(t,n){var e={idToken:t},i=[];return lt(is,(function(t,r){var o=n[r];null===o?i.push(t):r in n&&(e[r]=o)})),i.length&&(e.deleteAttribute=i),Bs(this,Ps,e)},t.rb=function(t,n){return vt(t={requestType:"PASSWORD_RESET",email:t},n),Bs(this,Ss,t)},t.sb=function(t,n){return vt(t={requestType:"EMAIL_SIGNIN",email:t},n),Bs(this,Es,t)},t.qb=function(t,n){return vt(t={requestType:"VERIFY_EMAIL",idToken:t},n),Bs(this,As,t)},t.Ab=function(t,n,e){return vt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:n},e),Bs(this,ks,t)},t.cb=function(t){return Bs(this,qs,t)},t.jb=function(t,n){return Bs(this,Os,{oobCode:t,newPassword:n})},t.Pa=function(t){return Bs(this,ds,{oobCode:t})},t.fb=function(t){return Bs(this,fs,{oobCode:t})};var fs={endpoint:"setAccountInfo",A:ls,Y:"email",C:!0},ds={endpoint:"resetPassword",A:ls,G:function(t){var n=t.requestType;if(!n||!t.email&&"EMAIL_SIGNIN"!=n&&"VERIFY_AND_CHANGE_EMAIL"!=n)throw new A("internal-error")},C:!0},ps={endpoint:"signupNewUser",A:function(t){if(Qa(t),!t.password)throw new A("weak-password")},G:ns,U:!0,C:!0},vs={endpoint:"createAuthUri",C:!0},ms={endpoint:"deleteAccount",M:["idToken"]},gs={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(t){if("array"!=l(t.deleteProvider))throw new A("internal-error")}},bs={endpoint:"emailLinkSignin",M:["email","oobCode"],A:Qa,G:ns,U:!0,C:!0},ys={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:Qa,G:ns,U:!0},ws={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:rs,G:ns,C:!0,La:!0},Is={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:rs,G:ns,C:!0,La:!0},Ts={endpoint:"getAccountInfo"},Es={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new A("internal-error");Qa(t)},Y:"email",C:!0},As={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new A("internal-error")},Y:"email",C:!0},ks={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new A("internal-error")},Y:"email",C:!0},Ss={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new A("internal-error");Qa(t)},Y:"email",C:!0},Ns={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},_s={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new A("internal-error")}},Os={endpoint:"resetPassword",A:ls,Y:"email",C:!0},Rs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Ps={endpoint:"setAccountInfo",M:["idToken"],A:ts,U:!0},Cs={endpoint:"setAccountInfo",M:["idToken"],A:function(t){if(ts(t),!t.password)throw new A("weak-password")},G:ns,U:!0},Ds={endpoint:"signupNewUser",G:ns,U:!0,C:!0},Ls={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phoneEnrollmentInfo)throw new A("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new A("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new A("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new A("internal-error")},C:!0,La:!0},Ms={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new A("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new A("internal-error")},C:!0,La:!0},xs={endpoint:"verifyAssertion",A:os,Wa:as,G:ss,U:!0,C:!0},js={endpoint:"verifyAssertion",A:os,Wa:as,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new A("user-not-found");if(t.errorMessage)throw Ws(t.errorMessage);ns(t)},U:!0,C:!0},Us={endpoint:"verifyAssertion",A:function(t){if(os(t),!t.idToken)throw new A("internal-error")},Wa:as,G:ss,U:!0},Vs={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new A("invalid-custom-token")},G:ns,U:!0,C:!0},Fs={endpoint:"verifyPassword",A:function(t){if(Qa(t),!t.password)throw new A("wrong-password")},G:ns,U:!0,C:!0},qs={endpoint:"verifyPhoneNumber",A:es,G:ns,C:!0},Ks={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new A("internal-error");es(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",qo(t);ns(t)}},Hs={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:es,G:ns,C:!0},Gs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Ha]^!!t.refreshToken)throw new A("internal-error")},C:!0,La:!0};function Bs(t,n,e){if(!function(t,n){if(!n||!n.length)return!0;if(!t)return!1;for(var e=0;e<n.length;e++){var i=t[n[e]];if(null==i||""===i)return!1}return!0}(e,n.M))return Nn(new A("internal-error"));var i,r=!!n.La,o=n.Rb||"POST";return Sn(e).then(n.A).then((function(){return n.U&&(e.returnSecureToken=!0),n.C&&t.b&&void 0===e.tenantId&&(e.tenantId=t.b),function(t,n,e,i,r,o,a){var s=xe(n+e);Le(s,"key",t.c),a&&Le(s,"cb",T().toString());var u="GET"==i;if(u)for(var c in r)r.hasOwnProperty(c)&&Le(s,c,r[c]);return new yn((function(n,e){za(t,s.toString(),(function(t){t?t.error?e(Xs(t,o||{})):n(t):e(new A("network-request-failed"))}),i,u?void 0:ti(Pi(r)),t.a,t.i.get())}))}(t,r?t.l:t.h,n.endpoint,o,e,n.Eb,n.hb||!1)})).then((function(t){return i=t,n.Wa?n.Wa(e,i):i})).then(n.G).then((function(){if(!n.Y)return i;if(!(n.Y in i))throw new A("internal-error");return i[n.Y]}))}function Ws(t){return Xs({error:{errors:[{message:t}],code:400,message:t}})}function Xs(t,n){var e=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(e=i[e]?new A(i[e]):null)return e;for(var r in e=t.error&&t.error.message||"",vt(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",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_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",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",INVALID_PROVIDER_ID:"invalid-provider-id",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",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",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_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},n||{}),n=(n=e.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<n.length?n[1]:void 0,i)if(0===e.indexOf(r))return new A(i[r],n);return!n&&t&&(n=Ri(t)),new A("internal-error",n)}function Js(t){this.b=t,this.a=null,this.nb=function(t){return(Zs||(Zs=new yn((function(t,n){function e(){Mi(),Ai("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Mi(),n(Error("Network Error"))},timeout:zs.get()})}if(Ai("gapi.iframes.Iframe"))t();else if(Ai("gapi.load"))e();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();s[i]=function(){Ai("gapi.load")?e():n(Error("Network Error"))},Sn(La(i=At(Ys,{onload:i}))).o((function(){n(Error("Network Error"))}))}})).o((function(t){throw Zs=null,t})))).then((function(){return new yn((function(n,e){Ai("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Ai("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(i){function r(){clearTimeout(o),n()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){e(Error("Network Error"))}),$s.get());i.ping(r).then(r,(function(){e(Error("Network Error"))}))}))}))}))}(this)}var Ys=new gt(wt,"https://apis.google.com/js/api.js?onload=%{onload}"),zs=new xi(3e4,6e4),$s=new xi(5e3,15e3),Zs=null;function Qs(t,n,e){this.i=t,this.g=n,this.h=e,this.f=null,this.a=je(this.i,"/__/auth/iframe"),Le(this.a,"apiKey",this.g),Le(this.a,"appName",this.h),this.b=null,this.c=[]}function tu(t,n,e,i,r){this.s=t,this.m=n,this.c=e,this.u=i,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function nu(t){try{return r.a.app(t).auth().Ea()}catch(n){return[]}}function eu(t,n,e,i,r){this.u=t,this.f=n,this.b=e,this.c=i||null,this.h=r||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function iu(t){var n=ai();return function(t){return Bs(t,Ns,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var e=xe(n),i=e.f;e=e.b;for(var r=0;r<t.length;r++){var o=t[r],a=e,s=i;if(0==o.indexOf("chrome-extension://")?a=xe(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:li.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new Vo(ai())}))}function ru(t){return t.l||(t.l=di().then((function(){if(!t.s){var n=t.c,e=t.h,i=nu(t.b),r=new Qs(t.u,t.f,t.b);r.f=n,r.b=e,r.c=z(i||[]),t.s=r.toString()}t.i=new Js(t.s),function(t){if(!t.i)throw Error("IfcHandler must be initialized!");!function(t,n){t.nb.then((function(){t.a.register("authEvent",n,Ai("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.i,(function(n){var e={};if(n&&n.authEvent){var i=!1;for(n=Mo(n.authEvent),e=0;e<t.g.length;e++)i=t.g[e](n)||i;return(e={}).status=i?"ACK":"ERROR",Sn(e)}return e.status="ERROR",Sn(e)}))}(t)}))),t.l}function ou(t){return t.m||(t.w=t.c?Ti(t.c,nu(t.b)):null,t.m=new qa(t.f,R(t.h),t.w)),t.m}function au(t,n,e,i,r,o,a,s,u,c,h){return(t=new tu(t,n,e,i,r)).l=o,t.g=a,t.i=s,t.b=dt(u||null),t.f=c,t.ub(h).toString()}function su(t){if(this.a=t||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new A("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function uu(t){this.b=t,this.a={},this.f=w(this.c,this)}Qs.prototype.toString=function(){return this.f?Le(this.a,"v",this.f):Ye(this.a.a,"v"),this.b?Le(this.a,"eid",this.b):Ye(this.a.a,"eid"),this.c.length?Le(this.a,"fw",this.c.join(",")):Ye(this.a.a,"fw"),this.a.toString()},tu.prototype.ub=function(t){return this.h=t,this},tu.prototype.toString=function(){var t=je(this.s,"/__/auth/handler");if(Le(t,"apiKey",this.m),Le(t,"appName",this.c),Le(t,"authType",this.u),this.a.isOAuthProvider){var n=this.a;try{var e=r.a.app(this.c).auth().ja()}catch(u){e=null}for(var i in n.kb=e,Le(t,"providerId",this.a.providerId),e=Pi((n=this.a).Fb))e[i]=e[i].toString();i=n.Oc,e=dt(e);for(var o=0;o<i.length;o++){var a=i[o];a in e&&delete e[a]}n.lb&&n.kb&&!e[n.lb]&&(e[n.lb]=n.kb),ft(e)||Le(t,"customParameters",Ri(e))}if("function"==typeof this.a.Nb&&(n=this.a.Nb()).length&&Le(t,"scopes",n.join(",")),this.l?Le(t,"redirectUrl",this.l):Ye(t.a,"redirectUrl"),this.g?Le(t,"eventId",this.g):Ye(t.a,"eventId"),this.i?Le(t,"v",this.i):Ye(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Me(t,s)&&Le(t,s,this.b[s]);return this.h?Le(t,"tid",this.h):Ye(t.a,"tid"),this.f?Le(t,"eid",this.f):Ye(t.a,"eid"),(s=nu(this.c)).length&&Le(t,"fw",s.join(",")),t.toString()},(t=eu.prototype).Lb=function(t,n,e){var i=new A("popup-closed-by-user"),r=new A("web-storage-unsupported"),o=this,a=!1;return this.ka().then((function(){(function(t){var n={type:"webStorageSupport"};return ru(t).then((function(){return function(t,n){return t.nb.then((function(){return new yn((function(e){t.a.send(n.type,n,e,Ai("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(t.i,n)})).then((function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()}))})(o).then((function(e){e||(t&&ci(t),n(r),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(t){return new yn((function(n){return function e(){Ee(2e3).then((function(){if(t&&!t.closed)return e();n()}))}()}))}(t)})).then((function(){if(!a)return Ee(e).then((function(){n(i)}))}))},t.Ub=function(){var t=Ei();return!Oi(t)&&!Li(t)},t.Qb=function(){return!1},t.Jb=function(t,n,e,i,r,o,a,s){if(!t)return Nn(new A("popup-blocked"));if(a&&!Oi())return this.ka().o((function(n){ci(t),r(n)})),i(),Sn();this.a||(this.a=iu(ou(this)));var u=this;return this.a.then((function(){var n=u.ka().o((function(n){throw ci(t),r(n),n}));return i(),n})).then((function(){Do(e),a||si(au(u.u,u.f,u.b,n,e,null,o,u.c,void 0,u.h,s),t)})).o((function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t}))},t.Kb=function(t,n,e,i){this.a||(this.a=iu(ou(this)));var r=this;return this.a.then((function(){Do(n),si(au(r.u,r.f,r.b,t,n,ai(),e,r.c,void 0,r.h,i))})).o((function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t}))},t.ka=function(){var t=this;return ru(this).then((function(){return t.i.nb})).o((function(){throw t.a=null,new A("network-request-failed")}))},t.Xb=function(){return!0},t.Ca=function(t){this.g.push(t)},t.Qa=function(t){J(this.g,(function(n){return n==t}))},(t=su.prototype).get=function(t){return Sn(this.a.getItem(t)).then((function(t){return t&&Ci(t)}))},t.set=function(t,n){return Sn(this.a.setItem(t,Ri(n)))},t.T=function(t){return Sn(this.a.removeItem(t))},t.ba=function(){},t.ha=function(){};var cu,hu=[];function lu(t,n,e){ft(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[n]&&(t.a[n]=[]),t.a[n].push(e)}function fu(t){this.a=t}function du(t){this.c=t,this.b=!1,this.a=[]}function pu(t,n,e,i){var r,o,a,s,u=e||{},c=null;if(t.b)return Nn(Error("connection_unavailable"));var h=i?800:50,l="undefined"!=typeof MessageChannel?new MessageChannel:null;return new yn((function(e,i){l?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),l.port1.start(),a=setTimeout((function(){i(Error("unsupported_event"))}),h),t.a.push(c={messageChannel:l,onMessage:o=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout((function(){i(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(s),void 0!==t.data.response?e(t.data.response):i(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),i(Error("invalid_response"))))}}),l.port1.addEventListener("message",o),t.c.postMessage({eventType:n,eventId:r,data:u},[l.port2])):i(Error("connection_unavailable"))})).then((function(n){return vu(t,c),n})).o((function(n){throw vu(t,c),n}))}function vu(t,n){if(n){var e=n.messageChannel;e&&(e.port1.removeEventListener("message",n.onMessage),e.port1.close()),J(t.a,(function(t){return t==n}))}}function mu(){if(!bu())throw new A("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=s.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var t=this;mi()&&self?(this.l=function(){var t=mi()?self:null;if(K(hu,(function(e){e.b==t&&(n=e)})),!n){var n=new uu(t);hu.push(n)}return n}(),lu(this.l,"keyChanged",(function(n,e){return Eu(t).then((function(n){return 0<n.length&&K(t.a,(function(t){t(n)})),{keyProcessed:W(n,e.key)}}))})),lu(this.l,"ping",(function(){return Sn(["keyChanged"])}))):function(){var t=s.navigator;return t&&t.serviceWorker?Sn().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):Sn(null)}().then((function(n){(t.h=n)&&(t.g=new du(new fu(n)),pu(t.g,"ping",null,!0).then((function(n){n[0].fulfilled&&W(n[0].value,"keyChanged")&&(t.s=!0)})).o((function(){})))}))}function gu(t){return t.m||(t.m=function t(n){return new yn((function(e,i){var r=n.u.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(n){}i(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(n){i(n)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?e(r):function(t){return new yn((function(n,e){var i=t.u.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){n()},i.onerror=function(t){e(Error(t.target.error))}}))}(n).then((function(){return t(n)})).then((function(t){e(t)})).o((function(t){i(t)}))}}))}(t)),t.m}function bu(){try{return!!s.indexedDB}catch(Gt){return!1}}function yu(t){return t.objectStore("firebaseLocalStorage")}function wu(t,n){return t.transaction(["firebaseLocalStorage"],n?"readwrite":"readonly")}function Iu(t){return new yn((function(n,e){t.onsuccess=function(t){t&&t.target?n(t.target.result):n()},t.onerror=function(t){e(t.target.error)}}))}function Tu(t,n){return t.g&&t.h&&function(){var t=s.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?pu(t.g,"keyChanged",{key:n},t.s).then((function(){})).o((function(){})):Sn()}function Eu(t){return gu(t).then((function(t){var n=yu(wu(t,!1));return n.getAll?Iu(n.getAll()):new yn((function(t,e){var i=[],r=n.openCursor();r.onsuccess=function(n){(n=n.target.result)?(i.push(n.value),n.continue()):t(i)},r.onerror=function(t){e(t.target.error)}}))})).then((function(n){var e={},i=[];if(0==t.b){for(i=0;i<n.length;i++)e[n[i].fbase_key]=n[i].value;i=function t(n,e){var i,r=[];for(i in n)i in e?typeof n[i]!=typeof e[i]?r.push(i):"object"==typeof n[i]&&null!=n[i]&&null!=e[i]?0<t(n[i],e[i]).length&&r.push(i):n[i]!==e[i]&&r.push(i):r.push(i);for(i in e)i in n||r.push(i);return r}(t.c,e),t.c=e}return i}))}function Au(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function ku(t){var n=this,e=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Sn().then((function(){if(bu()){var t=Di(),i="__sak"+t;return cu||(cu=new mu),(e=cu).set(i,t).then((function(){return e.get(i)})).then((function(n){if(n!==t)throw Error("indexedDB not supported!");return e.T(i)})).then((function(){return e})).o((function(){return n.c}))}return n.c})).then((function(t){return n.type=t.type,t.ba((function(t){K(n.a,(function(n){n(t)}))})),t}))}function Su(){this.a={},this.type="inMemory"}function Nu(){if(!function(){var t="Node"==gi();if(!(t=_u()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==gi())throw new A("internal-error","The LocalStorage compatibility library was not found.");throw new A("web-storage-unsupported")}this.a=_u()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function _u(){try{var t=s.localStorage,n=Di();return t&&(t.setItem(n,"1"),t.removeItem(n)),t}catch(e){return null}}function Ou(){this.type="nullStorage"}function Ru(){if(!function(){var t="Node"==gi();if(!(t=Pu()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==gi())throw new A("internal-error","The SessionStorage compatibility library was not found.");throw new A("web-storage-unsupported")}this.a=Pu()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Pu(){try{var t=s.sessionStorage,n=Di();return t&&(t.setItem(n,"1"),t.removeItem(n)),t}catch(e){return null}}function Cu(){var t={};t.Browser=Mu,t.Node=xu,t.ReactNative=ju,t.Worker=Uu,this.a=t[gi()]}uu.prototype.c=function(t){var n=t.data.eventType,e=t.data.eventId,i=this.a[n];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:e,eventType:n,response:null});var r=[];K(i,(function(n){r.push(Sn().then((function(){return n(t.origin,t.data.data)})))})),On(r).then((function(i){var r=[];K(i,(function(t){r.push({fulfilled:t.Mb,value:t.value,reason:t.reason?t.reason.message:void 0})})),K(r,(function(t){for(var n in t)void 0===t[n]&&delete t[n]})),t.ports[0].postMessage({status:"done",eventId:e,eventType:n,response:r})}))}},fu.prototype.postMessage=function(t,n){this.a.postMessage(t,n)},du.prototype.close=function(){for(;0<this.a.length;)vu(this,this.a[0]);this.b=!0},(t=mu.prototype).set=function(t,n){var e,i=!1,r=this;return gu(this).then((function(n){return Iu((n=yu(wu(e=n,!0))).get(t))})).then((function(o){var a=yu(wu(e,!0));return o?(o.value=n,Iu(a.put(o))):(r.b++,i=!0,(o={}).fbase_key=t,o.value=n,Iu(a.add(o)))})).then((function(){return r.c[t]=n,Tu(r,t)})).ma((function(){i&&r.b--}))},t.get=function(t){return gu(this).then((function(n){return Iu(yu(wu(n,!1)).get(t))})).then((function(t){return t&&t.value}))},t.T=function(t){var n=!1,e=this;return gu(this).then((function(i){return n=!0,e.b++,Iu(yu(wu(i,!0)).delete(t))})).then((function(){return delete e.c[t],Tu(e,t)})).ma((function(){n&&e.b--}))},t.ba=function(t){0==this.a.length&&function(t){Au(t),function n(){t.f=setTimeout((function(){t.i=Eu(t).then((function(n){0<n.length&&K(t.a,(function(t){t(n)}))})).then((function(){n()})).o((function(t){"STOP_EVENT"!=t.message&&n()}))}),800)}()}(this),this.a.push(t)},t.ha=function(t){J(this.a,(function(n){return n==t})),0==this.a.length&&Au(this)},(t=ku.prototype).get=function(t){return this.b.then((function(n){return n.get(t)}))},t.set=function(t,n){return this.b.then((function(e){return e.set(t,n)}))},t.T=function(t){return this.b.then((function(n){return n.T(t)}))},t.ba=function(t){this.a.push(t)},t.ha=function(t){J(this.a,(function(n){return n==t}))},(t=Su.prototype).get=function(t){return Sn(this.a[t])},t.set=function(t,n){return this.a[t]=n,Sn()},t.T=function(t){return delete this.a[t],Sn()},t.ba=function(){},t.ha=function(){},(t=Nu.prototype).get=function(t){var n=this;return Sn().then((function(){return Ci(n.a.getItem(t))}))},t.set=function(t,n){var e=this;return Sn().then((function(){var i=Ri(n);null===i?e.T(t):e.a.setItem(t,i)}))},t.T=function(t){var n=this;return Sn().then((function(){n.a.removeItem(t)}))},t.ba=function(t){s.window&&ae(s.window,"storage",t)},t.ha=function(t){s.window&&ce(s.window,"storage",t)},(t=Ou.prototype).get=function(){return Sn(null)},t.set=function(){return Sn()},t.T=function(){return Sn()},t.ba=function(){},t.ha=function(){},(t=Ru.prototype).get=function(t){var n=this;return Sn().then((function(){return Ci(n.a.getItem(t))}))},t.set=function(t,n){var e=this;return Sn().then((function(){var i=Ri(n);null===i?e.T(t):e.a.setItem(t,i)}))},t.T=function(t){var n=this;return Sn().then((function(){n.a.removeItem(t)}))},t.ba=function(){},t.ha=function(){};var Du,Lu,Mu={F:Nu,$a:Ru},xu={F:Nu,$a:Ru},ju={F:su,$a:Ou},Uu={F:Nu,$a:Ou},Vu={od:"local",NONE:"none",qd:"session"};function Fu(){var t=!(Li(Ei())||!vi()),n=Oi(),e=ki();this.m=t,this.h=n,this.l=e,this.a={},Du||(Du=new Cu),t=Du;try{this.g=!oi()&&Vi()||!s.indexedDB?new t.a.F:new ku(mi()?new Su:new t.a.F)}catch(i){this.g=new Su,this.h=!0}try{this.i=new t.a.$a}catch(i){this.i=new Su}this.u=new Su,this.f=w(this.Vb,this),this.b={}}function qu(){return Lu||(Lu=new Fu),Lu}function Ku(t,n){switch(n){case"session":return t.i;case"none":return t.u;default:return t.g}}function Hu(t,n){return"firebase:"+t.name+(n?":"+n:"")}function Gu(t,n,e){return e=Hu(n,e),"local"==n.F&&(t.b[e]=null),Ku(t,n.F).T(e)}function Bu(t){t.c&&(clearInterval(t.c),t.c=null)}function Wu(t){this.a=t,this.b=qu()}(t=Fu.prototype).get=function(t,n){return Ku(this,t.F).get(Hu(t,n))},t.set=function(t,n,e){var i=Hu(t,e),r=this,o=Ku(this,t.F);return o.set(i,n).then((function(){return o.get(i)})).then((function(n){"local"==t.F&&(r.b[i]=n)}))},t.addListener=function(t,n,e){t=Hu(t,n),this.l&&(this.b[t]=s.localStorage.getItem(t)),ft(this.a)&&(Ku(this,"local").ba(this.f),this.h||(oi()||!Vi())&&s.indexedDB||!this.l||function(t){Bu(t),t.c=setInterval((function(){for(var n in t.a){var e=s.localStorage.getItem(n),i=t.b[n];e!=i&&(t.b[n]=e,e=new Yn({type:"storage",key:n,target:window,oldValue:i,newValue:e,a:!0}),t.Vb(e))}}),1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(e)},t.removeListener=function(t,n,e){t=Hu(t,n),this.a[t]&&(J(this.a[t],(function(t){return t==e})),0==this.a[t].length&&delete this.a[t]),ft(this.a)&&(Ku(this,"local").ha(this.f),Bu(this))},t.Vb=function(t){if(t&&t.f){var n=t.a.key;if(null==n)for(var e in this.a){var i=this.b[e];void 0===i&&(i=null);var r=s.localStorage.getItem(e);r!==i&&(this.b[e]=r,this.ib(e))}else if(0==n.indexOf("firebase:")&&this.a[n]){if(void 0!==t.a.a?Ku(this,"local").ha(this.f):Bu(this),this.m)if(e=s.localStorage.getItem(n),(i=t.a.newValue)!==e)null!==i?s.localStorage.setItem(n,i):s.localStorage.removeItem(n);else if(this.b[n]===i&&void 0===t.a.a)return;var o=this;e=function(){void 0===t.a.a&&o.b[n]===s.localStorage.getItem(n)||(o.b[n]=s.localStorage.getItem(n),o.ib(n))},Wt&&nn&&10==nn&&s.localStorage.getItem(n)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(e,10):e()}}else K(t,w(this.ib,this))},t.ib=function(t){this.a[t]&&K(this.a[t],(function(t){t()}))};var Xu,Ju={name:"authEvent",F:"local"};function Yu(){this.a=qu()}function zu(t,n){this.b=$u,this.f=s.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=n,this.l=s.Int32Array?new Int32Array(64):Array(64),void 0===Xu&&(Xu=s.Int32Array?new Int32Array(rc):rc),this.reset()}E(zu,(function(){this.b=-1}));for(var $u=64,Zu=$u-1,Qu=[],tc=0;tc<Zu;tc++)Qu[tc]=0;var nc=Y(128,Qu);function ec(t){for(var n=t.f,e=t.l,i=0,r=0;r<n.length;)e[i++]=n[r]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3],r=4*i;for(n=16;64>n;n++){var o=(0|e[n-16])+(((r=0|e[n-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|e[n-7])+(((i=0|e[n-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;e[n]=o+a|0}i=0|t.a[0],r=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],h=0|t.a[5],l=0|t.a[6];for(o=0|t.a[7],n=0;64>n;n++){var f=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&h^~c&l)+(0|Xu[n])|0)+(0|e[n])|0)|0,o=l,l=h,h=c,c=u+a|0,u=s,s=r,r=i,i=a+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+h|0,t.a[6]=t.a[6]+l|0,t.a[7]=t.a[7]+o|0}function ic(t,n,e){void 0===e&&(e=n.length);var i=0,r=t.c;if("string"==typeof n)for(;i<e;)t.f[r++]=n.charCodeAt(i++),r==t.b&&(ec(t),r=0);else{if(!f(n))throw Error("message must be string or array");for(;i<e;){var o=n[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(ec(t),r=0)}}t.c=r,t.g+=e}zu.prototype.reset=function(){this.g=this.c=0,this.a=s.Int32Array?new Int32Array(this.h):z(this.h)};var rc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function oc(){zu.call(this,8,ac)}E(oc,zu);var ac=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function sc(t,n,e,i,r){this.u=t,this.i=n,this.l=e,this.m=i||null,this.s=r||null,this.h=n+":"+e,this.w=new Yu,this.g=new Wu(this.h),this.f=null,this.b=[],this.a=this.c=null}function uc(t){return new A("invalid-cordova-configuration",t)}function cc(t,n){for(var e=0;e<t.b.length;e++)try{t.b[e](n)}catch(i){}}function hc(t){return t.f||(t.f=t.ka().then((function(){return new yn((function(n){t.Ca((function e(i){return n(i),t.Qa(e),!1})),function(t){function n(n){i=!0,r&&r.cancel(),lc(t).then((function(i){var r=e;if(i&&n&&n.url){var o=null;-1!=(r=Zr(n.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Ci(Me(o=xe(r),"firebaseError")||null))?k(o):null)?new Lo(i.c,i.b,null,null,o,null,i.S()):new Lo(i.c,i.b,r,i.f,null,null,i.S())),r=o||e}cc(t,r)}))}var e=new Lo("unknown",null,null,null,new A("no-auth-event")),i=!1,r=Ee(500).then((function(){return lc(t).then((function(){i||cc(t,e)}))})),o=s.handleOpenURL;s.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Ai("BuildInfo.packageName",s).toLowerCase()+"://")&&n({url:t}),"function"==typeof o)try{o(t)}catch(e){console.error(e)}},Uo||(Uo=new xo),function(t){var n=Uo;n.a.push(t),n.b||(n.b=function(t){for(var e=0;e<n.a.length;e++)n.a[e](t)},"function"==typeof(t=Ai("universalLinks.subscribe",s))&&t(null,n.b))}(n)}(t)}))}))),t.f}function lc(t){var n=null;return function(t){return t.b.get(Ju,t.a).then((function(t){return Mo(t)}))}(t.g).then((function(e){return n=e,Gu((e=t.g).b,Ju,e.a)})).then((function(){return n}))}function fc(t){this.a=t,this.b=qu()}(t=sc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(pi(void 0)?di().then((function(){return new yn((function(t,n){var e=s.document,i=setTimeout((function(){n(Error("Cordova framework is not ready."))}),1e3);e.addEventListener("deviceready",(function(){clearTimeout(i),t()}),!1)}))})):Nn(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof Ai("universalLinks.subscribe",s))throw uc("cordova-universal-links-plugin-fix is not installed");if(void 0===Ai("BuildInfo.packageName",s))throw uc("cordova-plugin-buildinfo is not installed");if("function"!=typeof Ai("cordova.plugins.browsertab.openUrl",s))throw uc("cordova-plugin-browsertab is not installed");if("function"!=typeof Ai("cordova.InAppBrowser.open",s))throw uc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new A("cordova-not-ready")}))},t.Lb=function(t,n){return n(new A("operation-not-supported-in-this-environment")),Sn()},t.Jb=function(){return Nn(new A("operation-not-supported-in-this-environment"))},t.Xb=function(){return!1},t.Ub=function(){return!0},t.Qb=function(){return!0},t.Kb=function(t,n,e,i){if(this.c)return Nn(new A("redirect-operation-pending"));var r=this,o=s.document,a=null,u=null,c=null,h=null;return this.c=Sn().then((function(){return Do(n),hc(r)})).then((function(){return function(t,n,e,i,r){var o=function(){for(var t=20,n=[];0<t;)n.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return n.join("")}(),a=new Lo(n,i,null,o,new A("no-auth-event"),null,r),u=Ai("BuildInfo.packageName",s);if("string"!=typeof u)throw new A("invalid-cordova-configuration");var c=Ai("BuildInfo.displayName",s),h={};if(Ei().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=u;else{if(!Ei().toLowerCase().match(/android/))return Nn(new A("operation-not-supported-in-this-environment"));h.apn=u}c&&(h.appDisplayName=c),o=function(t){var n=new oc;ic(n,t),t=[];var e=8*n.g;ic(n,nc,56>n.c?56-n.c:n.b-(n.c-56));for(var i=63;56<=i;i--)n.f[i]=255&e,e/=256;for(ec(n),i=e=0;i<n.i;i++)for(var r=24;0<=r;r-=8)t[e++]=n.a[i]>>r&255;return function(t){return G(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}(o),h.sessionId=o;var l=au(t.u,t.i,t.l,n,e,null,i,t.m,h,t.s,r);return t.ka().then((function(){var n=t.h;return t.w.a.set(Ju,a.v(),n)})).then((function(){var n=Ai("cordova.plugins.browsertab.isAvailable",s);if("function"!=typeof n)throw new A("invalid-cordova-configuration");var e=null;n((function(n){if(n){if("function"!=typeof(e=Ai("cordova.plugins.browsertab.openUrl",s)))throw new A("invalid-cordova-configuration");e(l)}else{if("function"!=typeof(e=Ai("cordova.InAppBrowser.open",s)))throw new A("invalid-cordova-configuration");n=Ei(),t.a=e(l,n.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||n.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,t,n,e,i)})).then((function(){return new yn((function(t,n){u=function(){var n=Ai("cordova.plugins.browsertab.close",s);return t(),"function"==typeof n&&n(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ca(u),h=function(){ji()&&c()},o.addEventListener("resume",c=function(){a||(a=Ee(2e3).then((function(){n(new A("redirect-cancelled-by-user"))})))},!1),Ei().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",h,!1)})).o((function(t){return lc(r).then((function(){throw t}))}))})).ma((function(){c&&o.removeEventListener("resume",c,!1),h&&o.removeEventListener("visibilitychange",h,!1),a&&a.cancel(),u&&r.Qa(u),r.c=null}))},t.Ca=function(t){this.b.push(t),hc(this).o((function(n){"auth/invalid-cordova-configuration"===n.code&&(n=new Lo("unknown",null,null,null,new A("no-auth-event")),t(n))}))},t.Qa=function(t){J(this.b,(function(n){return n==t}))};var dc={name:"pendingRedirect",F:"session"};function pc(t){return Gu(t.b,dc,t.a)}function vc(t,n,e){this.i={},this.w=0,this.D=t,this.u=n,this.m=e,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Oc,this.B=new Lc,this.g=new fc(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=mc(this.D,this.u,this.m,S)}function mc(t,n,e,i){var o=r.a.SDK_VERSION||null;return pi()?new sc(t,n,e,o,i):new eu(t,n,e,o,i)}function gc(t){t.f||(t.f=!0,t.a.Ca(t.l));var n=t.a;return t.a.ka().o((function(e){throw t.a==n&&t.reset(),e}))}function bc(t){t.a.Ub()&&gc(t).o((function(n){var e=new Lo("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));Ac(n)&&t.s(e)})),t.a.Qb()||Rc(t.b)}function yc(t,n){W(t.h,n)||t.h.push(n),t.f||function(t){return t.b.get(dc,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(n){n?pc(t.g).then((function(){gc(t).o((function(n){var e=new Lo("unknown",null,null,null,new A("operation-not-supported-in-this-environment"));Ac(n)&&t.s(e)}))})):bc(t)})).o((function(){bc(t)}))}function wc(t,n){J(t.h,(function(t){return t==n}))}vc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=mc(this.D,this.u,this.m),this.i={}},vc.prototype.s=function(t){if(!t)throw new A("invalid-auth-event");if(6e5<=T()-this.w&&(this.i={},this.w=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var n=!1,e=0;e<this.h.length;e++){var i=this.h[e];if(i.Cb(t.c,t.b)){(n=this.c[t.c])&&(n.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.w=T())),n=!0;break}}return Rc(this.b),n};var Ic=new xi(2e3,1e4),Tc=new xi(3e4,6e4);function Ec(t,n,e,i,r,o,a){return t.a.Jb(n,e,i,(function(){t.f||(t.f=!0,t.a.Ca(t.l))}),(function(){t.reset()}),r,o,a)}function Ac(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function kc(t,n,e,i,r){var o;return function(t){return t.b.set(dc,"pending",t.a)}(t.g).then((function(){return t.a.Kb(n,e,i,r).o((function(n){if(Ac(n))throw new A("operation-not-supported-in-this-environment");return o=n,pc(t.g).then((function(){throw o}))})).then((function(){return t.a.Xb()?new yn((function(){})):pc(t.g).then((function(){return t.pa()})).then((function(){})).o((function(){}))}))}))}function Sc(t,n,e,i,r){return t.a.Lb(i,(function(t){n.la(e,null,t,r)}),Ic.get())}vc.prototype.pa=function(){return this.b.pa()};var Nc={};function _c(t,n,e){var i=n+":"+e;return Nc[i]||(Nc[i]=new vc(t,n,e)),Nc[i]}function Oc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Rc(t){t.g||(t.g=!0,Dc(t,!1,null,null))}function Pc(t){t.g&&!t.i&&Dc(t,!1,null,null)}function Cc(t,n){if(t.b=function(){return Sn(n)},t.f.length)for(var e=0;e<t.f.length;e++)t.f[e](n)}function Dc(t,n,e,i){n?i?function(t,n){if(t.b=function(){return Nn(n)},t.c.length)for(var e=0;e<t.c.length;e++)t.c[e](n)}(t,i):Cc(t,e):Cc(t,{user:null}),t.f=[],t.c=[]}function Lc(){}function Mc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(t){this.Bb=t},enumerable:!1})}function xc(t,n){this.a=n,Gi(this,"verificationId",t)}function jc(t,n,e,i){return new Ro(t).cb(n,e).then((function(t){return new xc(t,i)}))}function Uc(t){var n=Ur(t);if(!(n&&n.exp&&n.auth_time&&n.iat))throw new A("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Bi(this,{token:t,expirationTime:Ui(1e3*n.exp),authTime:Ui(1e3*n.auth_time),issuedAtTime:Ui(1e3*n.iat),signInProvider:n.firebase&&n.firebase.sign_in_provider?n.firebase.sign_in_provider:null,signInSecondFactor:n.firebase&&n.firebase.sign_in_second_factor?n.firebase.sign_in_second_factor:null,claims:n})}function Vc(t,n,e){var i=n&&n[qc];if(!i)throw new A("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=dt(n),this.g=e,this.c=new Qr(null,i),this.b=[];var r=this;K(n[Fc]||[],(function(t){(t=Yi(t))&&r.b.push(t)})),Gi(this,"auth",this.a),Gi(this,"session",this.c),Gi(this,"hints",this.b)}Oc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Oc.prototype.h=function(t,n){if(t){this.reset(),this.g=!0;var e=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!o),"unknown"!=e||r||o?t.a?(Dc(this,!0,null,t.a),Sn()):n.Da(e,i)?function(t,n,e){e=e.Da(n.c,n.b);var i=n.g,r=n.f,o=n.i,a=n.S(),s=!!n.c.match(/Redirect$/);e(i,r,a,o).then((function(n){Dc(t,s,n,null)})).o((function(n){Dc(t,s,null,n)}))}(this,t,n):Nn(new A("invalid-auth-event")):(Dc(this,!1,null,null),Sn())}else Nn(new A("invalid-auth-event"))},Oc.prototype.pa=function(){var t=this;return new yn((function(n,e){t.b?t.b().then(n,e):(t.f.push(n),t.c.push(e),function(t){var n=new A("timeout");t.a&&t.a.cancel(),t.a=Ee(Tc.get()).then((function(){t.b||(t.g=!0,Dc(t,!0,null,n))}))}(t))}))},Lc.prototype.h=function(t,n){if(t){var e=t.c,i=t.b;t.a?(n.la(t.c,null,t.a,t.b),Sn()):n.Da(e,i)?function(t,n){var e=t.b,i=t.c;n.Da(i,e)(t.g,t.f,t.S(),t.i).then((function(t){n.la(i,t,null,e)})).o((function(t){n.la(i,null,t,e)}))}(t,n):Nn(new A("invalid-auth-event"))}else Nn(new A("invalid-auth-event"))},xc.prototype.confirm=function(t){return t=Po(this.verificationId,t),this.a(t)};var Fc="mfaInfo",qc="mfaPendingCredential";function Kc(t,n,e,i){A.call(this,"multi-factor-auth-required",i,n),this.b=new Vc(t,n,e),Gi(this,"resolver",this.b)}function Hc(t,n,e){if(t&&p(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Kc(n,t.serverResponse,e,t.message)}catch(i){}return null}function Gc(){}function Bc(t){Gi(this,"factorId",t.ea),this.a=t}function Wc(t){if(Bc.call(this,t),this.a.ea!=Ro.PROVIDER_ID)throw new A("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function Xc(t,n){for(var e in Jn.call(this,t),n)this[e]=n[e]}function Jc(t,n){this.a=t,this.b=[],this.c=w(this.wc,this),ae(this.a,"userReloaded",this.c);var e=[];n&&n.multiFactor&&n.multiFactor.enrolledFactors&&K(n.multiFactor.enrolledFactors,(function(t){var n=null,i={};if(t){t.uid&&(i[Zi]=t.uid),t.displayName&&(i[zi]=t.displayName),t.enrollmentTime&&(i[$i]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[Qi]=t.phoneNumber);try{n=new tr(i)}catch(r){}t=n}else t=null;t&&e.push(t)})),Yc(this,e)}function Yc(t,n){t.b=n,Gi(t,"enrolledFactors",n)}function zc(t,n,e){if(this.h=t,this.i=n,this.g=e,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function $c(t){this.c=t,this.b=this.a=null}function Zc(t){return t.b&&1e3*t.b.c||0}function Qc(t,n){var e=n.refreshToken;t.b=jr(n[Ha]||""),t.a=e}function th(t,n){this.a=t||null,this.b=n||null,Bi(this,{lastSignInTime:Ui(n||null),creationTime:Ui(t||null)})}function nh(t,n,e,i,r,o){Bi(this,{uid:t,displayName:i||null,photoURL:r||null,email:e||null,phoneNumber:o||null,providerId:n})}function eh(t,n,e){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null,t=r.a.SDK_VERSION?Ti(r.a.SDK_VERSION):null,this.a=new qa(this.l,R(S),t),this.b=new $c(this.a),ch(this,n[Ha]),Qc(this.b,n),Gi(this,"refreshToken",this.b.a),fh(this,e||{}),be.call(this),this.P=!1,this.s&&Si()&&(this.i=_c(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(t){return new zc((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var n=Zc(t.b)-T()-3e5;return 0<n?n:0}))}(this),this.Z=w(this.Ma,this);var i=this;this.oa=null,this.za=function(t){i.va(t.g)},this.aa=null,this.W=[],this.ya=function(t){rh(i,t.c)},this.$=null,this.O=new Jc(this,e),Gi(this,"multiFactor",this.O)}function ih(t,n){t.aa&&ce(t.aa,"languageCodeChanged",t.za),(t.aa=n)&&ae(n,"languageCodeChanged",t.za)}function rh(t,n){t.W=n,Ya(t.a,r.a.SDK_VERSION?Ti(r.a.SDK_VERSION,t.W):null)}function oh(t,n){t.$&&ce(t.$,"frameworkChanged",t.ya),(t.$=n)&&ae(n,"frameworkChanged",t.ya)}function ah(t){try{return r.a.app(t.m).auth()}catch(n){throw new A("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function sh(t){t.D||t.B.b||(t.B.start(),ce(t,"tokenChanged",t.Z),ae(t,"tokenChanged",t.Z))}function uh(t){ce(t,"tokenChanged",t.Z),t.B.stop()}function ch(t,n){t.xa=n,Gi(t,"_lat",n)}function hh(t){for(var n=[],e=0;e<t.R.length;e++)n.push(t.R[e](t));return On(n).then((function(){return t}))}function lh(t){t.i&&!t.P&&(t.P=!0,yc(t.i,t))}function fh(t,n){Bi(t,{uid:n.uid,displayName:n.displayName||null,photoURL:n.photoURL||null,email:n.email||null,emailVerified:n.emailVerified||!1,phoneNumber:n.phoneNumber||null,isAnonymous:n.isAnonymous||!1,tenantId:n.tenantId||null,metadata:new th(n.createdAt,n.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function dh(){}function ph(t){return Sn().then((function(){if(t.D)throw new A("app-deleted")}))}function vh(t){return G(t.providerData,(function(t){return t.providerId}))}function mh(t,n){n&&(gh(t,n.providerId),t.providerData.push(n))}function gh(t,n){J(t.providerData,(function(t){return t.providerId==n}))}function bh(t,n,e){("uid"!=n||e)&&t.hasOwnProperty(n)&&Gi(t,n,e)}function yh(t,n){t!=n&&(Bi(t,{uid:n.uid,displayName:n.displayName,photoURL:n.photoURL,email:n.email,emailVerified:n.emailVerified,phoneNumber:n.phoneNumber,isAnonymous:n.isAnonymous,tenantId:n.tenantId,providerData:[]}),Gi(t,"metadata",n.metadata?function(t){return new th(t.a,t.b)}(n.metadata):new th),K(n.providerData,(function(n){mh(t,n)})),function(t,n){t.b=n.b,t.a=n.a}(t.b,n.b),Gi(t,"refreshToken",t.b.a),Yc(t.O,n.O.b))}function wh(t){return t.I().then((function(n){var e=t.isAnonymous;return function(t,n){return Bs(t.a,Ts,{idToken:n}).then(w(t.Ic,t))}(t,n).then((function(){return e||bh(t,"isAnonymous",!1),n}))}))}function Ih(t,n){n[Ha]&&t.xa!=n[Ha]&&(Qc(t.b,n),t.dispatchEvent(new Xc("tokenChanged")),ch(t,n[Ha]),bh(t,"refreshToken",t.b.a))}function Th(t,n){return wh(t).then((function(){if(W(vh(t),n))return hh(t).then((function(){throw new A("provider-already-linked")}))}))}function Eh(t,n,e){return Wi({user:t,credential:Co(n),additionalUserInfo:n=Hr(n),operationType:e})}function Ah(t,n){return Ih(t,n),t.reload().then((function(){return t}))}function kh(t,n,e,i,o){if(!Si())return Nn(new A("operation-not-supported-in-this-environment"));if(t.h&&!o)return Nn(t.h);var a=Kr(e.providerId),s=Di(t.uid+":::"),u=null;(!Oi()||vi())&&t.s&&e.isOAuthProvider&&(u=au(t.s,t.l,t.m,n,e,null,s,r.a.SDK_VERSION||null,null,null,t.tenantId));var c=hi(u,a&&a.ta,a&&a.sa);return i=i().then((function(){if(Nh(t),!o)return t.I().then((function(){}))})).then((function(){return Ec(t.i,c,n,e,s,!!u,t.tenantId)})).then((function(){return new yn((function(e,i){t.la(n,null,new A("cancelled-popup-request"),t.g||null),t.f=e,t.w=i,t.g=s,t.c=Sc(t.i,t,n,c,s)}))})).then((function(t){return c&&ci(c),t?Wi(t):null})).o((function(t){throw c&&ci(c),t})),_h(t,i,o)}function Sh(t,n,e,i,r){if(!Si())return Nn(new A("operation-not-supported-in-this-environment"));if(t.h&&!r)return Nn(t.h);var o=null,a=Di(t.uid+":::");return i=i().then((function(){if(Nh(t),!r)return t.I().then((function(){}))})).then((function(){return t.fa=a,hh(t)})).then((function(n){return t.ga&&(n=(n=t.ga).b.set(Ph,t.v(),n.a)),n})).then((function(){return kc(t.i,n,e,a,t.tenantId)})).o((function(n){if(o=n,t.ga)return Ch(t.ga);throw o})).then((function(){if(o)throw o})),_h(t,i,r)}function Nh(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new A("internal-error");throw new A("auth-domain-config-required")}}function _h(t,n,e){var i=function(t,n,e){return t.h&&!e?(n.cancel(),Nn(t.h)):n.o((function(n){throw!n||"auth/user-disabled"!=n.code&&"auth/user-token-expired"!=n.code||(t.h||t.dispatchEvent(new Xc("userInvalidated")),t.h=n),n}))}(t,n,e);return t.N.push(i),i.ma((function(){X(t.N,i)})),i.o((function(n){var e=null;throw n&&"auth/multi-factor-auth-required"===n.code&&(e=Hc(n.v(),ah(t),w(t.hc,t))),e||n}))}function Oh(t){if(!t.apiKey)return null;var n={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName},e={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;e[Ha]=t.stsTokenManager.accessToken,e.refreshToken=t.stsTokenManager.refreshToken||null;var i=new eh(n,e,t);return t.providerData&&K(t.providerData,(function(t){t&&mh(i,Wi(t))})),t.redirectEventId&&(i.fa=t.redirectEventId),i}function Rh(t){this.a=t,this.b=qu()}Vc.prototype.Pc=function(t){var n=this;return t.ob(this.a.b,this.c).then((function(t){var e=dt(n.f);return delete e[Fc],delete e[qc],vt(e,t),n.g(e)}))},E(Kc,A),Gc.prototype.ob=function(t,n,e){return n.type==to?function(t,n,e,i){return e.Fa().then((function(e){return e={idToken:e},void 0!==i&&(e.displayName=i),vt(e,{phoneVerificationInfo:Oo(t.a)}),Bs(n,ws,e)}))}(this,t,n,e):function(t,n,e){return e.Fa().then((function(e){return vt(e={mfaPendingCredential:e},{phoneVerificationInfo:Oo(t.a)}),Bs(n,Is,e)}))}(this,t,n)},E(Bc,Gc),E(Wc,Bc),E(Xc,Jn),(t=Jc.prototype).wc=function(t){Yc(this,function(t){var n=[];return K(t.mfaInfo||[],(function(t){(t=Yi(t))&&n.push(t)})),n}(t.ed))},t.Ob=function(){return this.a.I().then((function(t){return new Qr(t,null)}))},t.dc=function(t,n){var e=this,i=this.a.a;return this.Ob().then((function(e){return t.ob(i,e,n)})).then((function(t){return Ih(e.a,t),e.a.reload()}))},t.$c=function(t){var n=this,e="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then((function(t){return Bs(i,Gs,{idToken:t,mfaEnrollmentId:e})})).then((function(t){var i=H(n.b,(function(t){return t.uid!=e}));return Yc(n,i),Ih(n.a,t),n.a.reload().o((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},t.v=function(){return{multiFactor:{enrolledFactors:G(this.b,(function(t){return t.v()}))}}},zc.prototype.start=function(){this.a=this.c,function t(n,e){n.stop(),n.b=Ee(function(t,n){return n?(t.a=t.c,t.g()):(n=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),n)}(n,e)).then((function(){return function(){var t=s.document,n=null;return ji()||!t?Sn():new yn((function(e){n=function(){ji()&&(t.removeEventListener("visibilitychange",n,!1),e())},t.addEventListener("visibilitychange",n,!1)})).o((function(e){throw t.removeEventListener("visibilitychange",n,!1),e}))}()})).then((function(){return n.h()})).then((function(){t(n,!0)})).o((function(e){n.i(e)&&t(n,!1)}))}(this,!0)},zc.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},$c.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Zc(this)}},$c.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Nn(new A("user-token-expired")):t||!this.b||T()>Zc(this)-3e4?this.a?function(t,n){return function(t,n){return new yn((function(e,i){"refresh_token"==n.grant_type&&n.refresh_token||"authorization_code"==n.grant_type&&n.code?za(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?i(Xs(t)):t.access_token&&t.refresh_token?e(t):i(new A("internal-error")):i(new A("network-request-failed"))}),"POST",Je(n).toString(),t.g,t.m.get()):i(new A("internal-error"))}))}(t.c,n).then((function(n){return t.b=jr(n.access_token),t.a=n.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).o((function(n){throw"auth/user-token-expired"==n.code&&(t.a=null),n}))}(this,{grant_type:"refresh_token",refresh_token:this.a}):Sn(null):Sn({accessToken:this.b.toString(),refreshToken:this.a})},th.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},E(eh,be),eh.prototype.va=function(t){this.oa=t,Ja(this.a,t)},eh.prototype.ja=function(){return this.oa},eh.prototype.Ea=function(){return z(this.W)},eh.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Gi(eh.prototype,"providerId","firebase"),(t=eh.prototype).reload=function(){var t=this;return _h(this,ph(this).then((function(){return wh(t).then((function(){return hh(t)})).then(dh)})))},t.mc=function(t){return this.I(t).then((function(t){return new Uc(t)}))},t.I=function(t){var n=this;return _h(this,ph(this).then((function(){return n.b.getToken(t)})).then((function(t){if(!t)throw new A("internal-error");return t.accessToken!=n.xa&&(ch(n,t.accessToken),n.dispatchEvent(new Xc("tokenChanged"))),bh(n,"refreshToken",t.refreshToken),t.accessToken})))},t.Ic=function(t){if(!(t=t.users)||!t.length)throw new A("internal-error");fh(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var n=function(t){return(t=t.providerUserInfo)&&t.length?G(t,(function(t){return new nh(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),e=0;e<n.length;e++)mh(this,n[e]);bh(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new Xc("userReloaded",{ed:t}))},t.Jc=function(t){return Ki("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(t)},t.pb=function(t){var n=this,e=null;return _h(this,t.c(this.a,this.uid).then((function(t){return Ih(n,t),e=Eh(n,t,"reauthenticate"),n.h=null,n.reload()})).then((function(){return e})),!0)},t.Ac=function(t){return Ki("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(t)},t.mb=function(t){var n=this,e=null;return _h(this,Th(this,t.providerId).then((function(){return n.I()})).then((function(e){return t.b(n.a,e)})).then((function(t){return e=Eh(n,t,"link"),Ah(n,t)})).then((function(){return e})))},t.Bc=function(t,n){var e=this;return _h(this,Th(this,"phone").then((function(){return jc(ah(e),t,n,w(e.mb,e))})))},t.Kc=function(t,n){var e=this;return _h(this,Sn().then((function(){return jc(ah(e),t,n,w(e.pb,e))})),!0)},t.xb=function(t){var n=this;return _h(this,this.I().then((function(e){return n.a.xb(e,t)})).then((function(t){return Ih(n,t),n.reload()})))},t.cd=function(t){var n=this;return _h(this,this.I().then((function(e){return t.b(n.a,e)})).then((function(t){return Ih(n,t),n.reload()})))},t.yb=function(t){var n=this;return _h(this,this.I().then((function(e){return n.a.yb(e,t)})).then((function(t){return Ih(n,t),n.reload()})))},t.zb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return ph(this);var n=this;return _h(this,this.I().then((function(e){return n.a.zb(e,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return Ih(n,t),bh(n,"displayName",t.displayName||null),bh(n,"photoURL",t.photoUrl||null),K(n.providerData,(function(t){"password"===t.providerId&&(Gi(t,"displayName",n.displayName),Gi(t,"photoURL",n.photoURL))})),hh(n)})).then(dh))},t.ad=function(t){var n=this;return _h(this,wh(this).then((function(e){return W(vh(n),t)?function(t,n,e){return Bs(t,gs,{idToken:n,deleteProvider:e})}(n.a,e,[t]).then((function(t){var e={};return K(t.providerUserInfo||[],(function(t){e[t.providerId]=!0})),K(vh(n),(function(t){e[t]||gh(n,t)})),e[Ro.PROVIDER_ID]||Gi(n,"phoneNumber",null),hh(n)})):hh(n).then((function(){throw new A("no-such-provider")}))})))},t.delete=function(){var t=this;return _h(this,this.I().then((function(n){return Bs(t.a,ms,{idToken:n})})).then((function(){t.dispatchEvent(new Xc("userDeleted"))}))).then((function(){for(var n=0;n<t.N.length;n++)t.N[n].cancel("app-deleted");ih(t,null),oh(t,null),t.N=[],t.D=!0,uh(t),Gi(t,"refreshToken",null),t.i&&wc(t.i,t)}))},t.Cb=function(t,n){return!!("linkViaPopup"==t&&(this.g||null)==n&&this.f||"reauthViaPopup"==t&&(this.g||null)==n&&this.f||"linkViaRedirect"==t&&(this.fa||null)==n||"reauthViaRedirect"==t&&(this.fa||null)==n)},t.la=function(t,n,e,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.g||null)||(e&&this.w?this.w(e):n&&!e&&this.f&&this.f(n),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(t,n){return"linkViaPopup"==t&&n==(this.g||null)?w(this.Hb,this):"reauthViaPopup"==t&&n==(this.g||null)?w(this.Ib,this):"linkViaRedirect"==t&&(this.fa||null)==n?w(this.Hb,this):"reauthViaRedirect"==t&&(this.fa||null)==n?w(this.Ib,this):null},t.Cc=function(t){var n=this;return kh(this,"linkViaPopup",t,(function(){return Th(n,t.providerId).then((function(){return hh(n)}))}),!1)},t.Lc=function(t){return kh(this,"reauthViaPopup",t,(function(){return Sn()}),!0)},t.Dc=function(t){var n=this;return Sh(this,"linkViaRedirect",t,(function(){return Th(n,t.providerId)}),!1)},t.Mc=function(t){return Sh(this,"reauthViaRedirect",t,(function(){return Sn()}),!0)},t.Hb=function(t,n,e,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return _h(this,this.I().then((function(e){return cs(r.a,{requestUri:t,postBody:i,sessionId:n,idToken:e})})).then((function(t){return o=Eh(r,t,"link"),Ah(r,t)})).then((function(){return o})))},t.Ib=function(t,n,e,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return _h(this,Sn().then((function(){return io(hs(r.a,{requestUri:t,sessionId:n,postBody:i,tenantId:e}),r.uid)})).then((function(t){return o=Eh(r,t,"reauthenticate"),Ih(r,t),r.h=null,r.reload()})).then((function(){return o})),!0)},t.qb=function(t){var n=this,e=null;return _h(this,this.I().then((function(n){return e=n,void 0===t||ft(t)?{}:Lr(new Ar(t))})).then((function(t){return n.a.qb(e,t)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},t.Ab=function(t,n){var e=this,i=null;return _h(this,this.I().then((function(t){return i=t,void 0===n||ft(n)?{}:Lr(new Ar(n))})).then((function(n){return e.a.Ab(i,t,n)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},t.hc=function(t){var n=null,e=this;return _h(this,t=io(Sn(t),e.uid).then((function(t){return n=Eh(e,t,"reauthenticate"),Ih(e,t),e.h=null,e.reload()})).then((function(){return n})),!0)},t.toJSON=function(){return this.v()},t.v=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&vt(t,this.metadata.v()),K(this.providerData,(function(n){t.providerData.push(function(t){var n,e={};for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(n))})),vt(t,this.O.v()),t};var Ph={name:"redirectUser",F:"session"};function Ch(t){return Gu(t.b,Ph,t.a)}function Dh(t){this.a=t,this.b=qu(),this.c=null,this.f=function(t){var n=xh("local"),e=xh("session"),i=xh("none");return function(t,n,e){var i=Hu(n,e),r=Ku(t,n.F);return t.get(n,e).then((function(o){var a=null;try{a=Ci(s.localStorage.getItem(i))}catch(u){}if(a&&!o)return s.localStorage.removeItem(i),t.set(n,a,e);a&&o&&"localStorage"!=r.type&&s.localStorage.removeItem(i)}))}(t.b,n,t.a).then((function(){return t.b.get(e,t.a)})).then((function(r){return r?e:t.b.get(i,t.a).then((function(e){return e?i:t.b.get(n,t.a).then((function(e){return e?n:t.b.get(Mh,t.a).then((function(t){return t?xh(t):n}))}))}))})).then((function(n){return t.c=n,Lh(t,n.F)})).o((function(){t.c||(t.c=n)}))}(this),this.b.addListener(xh("local"),this.a,w(this.g,this))}function Lh(t,n){var e,i=[];for(e in Vu)Vu[e]!==n&&i.push(Gu(t.b,xh(Vu[e]),t.a));return i.push(Gu(t.b,Mh,t.a)),function(t){return new yn((function(n,e){var i=t.length,r=[];if(i)for(var o=function(t,e){i--,r[t]=e,0==i&&n(r)},a=function(t){e(t)},s=0;s<t.length;s++)_n(t[s],I(o,s),a);else n(r)}))}(i)}Dh.prototype.g=function(){var t=this,n=xh("local");Fh(this,(function(){return Sn().then((function(){return t.c&&"local"!=t.c.F?t.b.get(n,t.a):null})).then((function(e){if(e)return Lh(t,"local").then((function(){t.c=n}))}))}))};var Mh={name:"persistence",F:"session"};function xh(t){return{name:"authUser",F:t}}function jh(t,n){return Fh(t,(function(){return t.b.set(t.c,n.v(),t.a)}))}function Uh(t){return Fh(t,(function(){return Gu(t.b,t.c,t.a)}))}function Vh(t,n){return Fh(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&n&&(t.authDomain=n),Oh(t||{})}))}))}function Fh(t,n){return t.f=t.f.then(n,n),t.f}function qh(t){if(this.l=!1,Gi(this,"settings",new Mc),Gi(this,"app",t),!Jh(this).options||!Jh(this).options.apiKey)throw new A("invalid-api-key");t=r.a.SDK_VERSION?Ti(r.a.SDK_VERSION):null,this.b=new qa(Jh(this).options&&Jh(this).options.apiKey,R(S),t),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(w(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(w(this.yc,this)),Wh(this,null),this.i=new Dh(Jh(this).options.apiKey+":"+Jh(this).name),this.B=new Rh(Jh(this).options.apiKey+":"+Jh(this).name),this.Z=Zh(this,function(t){var n=Jh(t).options.authDomain,e=function(t){var n=function(t,n){return t.b.get(Ph,t.a).then((function(t){return t&&n&&(t.authDomain=n),Oh(t||{})}))}(t.B,Jh(t).options.authDomain).then((function(n){return(t.D=n)&&(n.ga=t.B),Ch(t.B)}));return Zh(t,n)}(t).then((function(){return Vh(t.i,n)})).then((function(n){return n?(n.ga=t.B,t.D&&(t.D.fa||null)==(n.fa||null)?n:n.reload().then((function(){return jh(t.i,n).then((function(){return n}))})).o((function(e){return"auth/network-request-failed"==e.code?n:Uh(t.i)}))):null})).then((function(n){Wh(t,n||null)}));return Zh(t,e)}(this)),this.h=Zh(this,function(t){return t.Z.then((function(){return Bh(t)})).o((function(){})).then((function(){if(!t.l)return t.oa()})).o((function(){})).then((function(){if(!t.l){t.aa=!0;var n=t.i;n.b.addListener(xh("local"),n.a,t.oa)}}))}(this)),this.aa=!1,this.oa=w(this.Xc,this),this.Ma=w(this.ca,this),this.xa=w(this.jc,this),this.ya=w(this.uc,this),this.za=w(this.vc,this),this.a=null,function(t){var n=Jh(t).options.authDomain,e=Jh(t).options.apiKey;n&&Si()&&(t.Zb=t.Z.then((function(){if(!t.l){if(t.a=_c(n,e,Jh(t).name),yc(t.a,t),Yh(t)&&lh(Yh(t)),t.D){lh(t.D);var i=t.D;i.va(t.ja()),ih(i,t),rh(i=t.D,t.N),oh(i,t),t.D=null}return t.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Ec,this),this.s=0,be.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ja()},set:function(t){this.va(t)},enumerable:!1}),t.$=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.ub(t)},enumerable:!1}),t.R=null}(this),this.N=[]}function Kh(t){Jn.call(this,"languageCodeChanged"),this.g=t}function Hh(t){Jn.call(this,"frameworkChanged"),this.c=t}function Gh(t){return t.Zb||Nn(new A("auth-domain-config-required"))}function Bh(t){if(!Si())return Nn(new A("operation-not-supported-in-this-environment"));var n=Gh(t).then((function(){return t.a.pa()})).then((function(t){return t?Wi(t):null}));return Zh(t,n)}function Wh(t,n){Yh(t)&&(function(t,n){J(t.R,(function(t){return t==n}))}(Yh(t),t.Ma),ce(Yh(t),"tokenChanged",t.xa),ce(Yh(t),"userDeleted",t.ya),ce(Yh(t),"userInvalidated",t.za),uh(Yh(t))),n&&(n.R.push(t.Ma),ae(n,"tokenChanged",t.xa),ae(n,"userDeleted",t.ya),ae(n,"userInvalidated",t.za),0<t.s&&sh(n)),Gi(t,"currentUser",n),n&&(n.va(t.ja()),ih(n,t),rh(n,t.N),oh(n,t))}function Xh(t,n){var e=null,i=null;return Zh(t,n.then((function(n){return e=Co(n),i=Hr(n),function(t,n){var e={};return e.apiKey=Jh(t).options.apiKey,e.authDomain=Jh(t).options.authDomain,e.appName=Jh(t).name,t.Z.then((function(){return function(t,n,e,i){var r=new eh(t,n);return e&&(r.ga=e),i&&rh(r,i),r.reload().then((function(){return r}))}(e,n,t.B,t.Ea())})).then((function(n){return Yh(t)&&n.uid==Yh(t).uid?(yh(Yh(t),n),t.ca(n)):(Wh(t,n),lh(n),t.ca(n))})).then((function(){$h(t)}))}(t,n)}),(function(n){var e=null;throw n&&"auth/multi-factor-auth-required"===n.code&&(e=Hc(n.v(),t,w(t.ic,t))),e||n})).then((function(){return Wi({user:Yh(t),credential:e,additionalUserInfo:i,operationType:"signIn"})})))}function Jh(t){return t.app}function Yh(t){return t.currentUser}function zh(t){return Yh(t)&&Yh(t)._lat||null}function $h(t){if(t.aa){for(var n=0;n<t.m.length;n++)t.m[n]&&t.m[n](zh(t));if(t.W!==t.getUid()&&t.O.length)for(t.W=t.getUid(),n=0;n<t.O.length;n++)t.O[n]&&t.O[n](zh(t))}}function Zh(t,n){return t.P.push(n),n.ma((function(){X(t.P,n)})),n}function Qh(){}function tl(){this.a={},this.b=1e12}Dh.prototype.tb=function(t){var n=null,e=this;return function(t){var n=new A("invalid-persistence-type"),e=new A("unsupported-persistence-type");t:{for(i in Vu)if(Vu[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw n;switch(gi()){case"ReactNative":if("session"===t)throw e;break;case"Node":if("none"!==t)throw e;break;case"Worker":if("session"===t||!bu()&&"none"!==t)throw e;break;default:if(!ki()&&"none"!==t)throw e}}(t),Fh(this,(function(){return t!=e.c.F?e.b.get(e.c,e.a).then((function(i){return n=i,Lh(e,t)})).then((function(){if(e.c=xh(t),n)return e.b.set(e.c,n,e.a)})):Sn()}))},E(qh,be),E(Kh,Jn),E(Hh,Jn),(t=qh.prototype).tb=function(t){return Zh(this,t=this.i.tb(t))},t.va=function(t){this.$===t||this.l||(this.$=t,Ja(this.b,this.$),this.dispatchEvent(new Kh(this.ja())))},t.ja=function(){return this.$},t.dd=function(){var t=s.navigator;this.va(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.Ec=function(t){this.N.push(t),Ya(this.b,r.a.SDK_VERSION?Ti(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new Hh(this.N))},t.Ea=function(){return z(this.N)},t.ub=function(t){this.R===t||this.l||(this.R=t,this.b.b=this.R)},t.S=function(){return this.R},t.toJSON=function(){return{apiKey:Jh(this).options.apiKey,authDomain:Jh(this).options.authDomain,appName:Jh(this).name,currentUser:Yh(this)&&Yh(this).v()}},t.Cb=function(t,n){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==n&&!!this.f;default:return!1}},t.la=function(t,n,e,i){"signInViaPopup"==t&&this.g==i&&(e&&this.w?this.w(e):n&&!e&&this.f&&this.f(n),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},t.Da=function(t,n){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==n&&this.f?w(this.gc,this):null},t.gc=function(t,n,e,i){var r=this,o={requestUri:t,postBody:i,sessionId:n,tenantId:e};return this.c&&(this.c.cancel(),this.c=null),r.Z.then((function(){return Xh(r,us(r.b,o))}))},t.Vc=function(t){if(!Si())return Nn(new A("operation-not-supported-in-this-environment"));var n=this,e=Kr(t.providerId),i=Di(),o=null;(!Oi()||vi())&&Jh(this).options.authDomain&&t.isOAuthProvider&&(o=au(Jh(this).options.authDomain,Jh(this).options.apiKey,Jh(this).name,"signInViaPopup",t,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var a=hi(o,e&&e.ta,e&&e.sa);return Zh(this,e=Gh(this).then((function(e){return Ec(e,a,"signInViaPopup",t,i,!!o,n.S())})).then((function(){return new yn((function(t,e){n.la("signInViaPopup",null,new A("cancelled-popup-request"),n.g),n.f=t,n.w=e,n.g=i,n.c=Sc(n.a,n,"signInViaPopup",a,i)}))})).then((function(t){return a&&ci(a),t?Wi(t):null})).o((function(t){throw a&&ci(a),t})))},t.Wc=function(t){if(!Si())return Nn(new A("operation-not-supported-in-this-environment"));var n=this;return Zh(this,Gh(this).then((function(){return function(t){return Fh(t,(function(){return t.b.set(Mh,t.c.F,t.a)}))}(n.i)})).then((function(){return kc(n.a,"signInViaRedirect",t,void 0,n.S())})))},t.pa=function(){var t=this;return Bh(this).then((function(n){return t.a&&Pc(t.a.b),n})).o((function(n){throw t.a&&Pc(t.a.b),n}))},t.bd=function(t){if(!t)return Nn(new A("null-user"));if(this.R!=t.tenantId)return Nn(new A("tenant-id-mismatch"));var n=this,e={};e.apiKey=Jh(this).options.apiKey,e.authDomain=Jh(this).options.authDomain,e.appName=Jh(this).name;var i=function(t,n,e,i){var r=t.b,o={};return o[Ha]=r.b&&r.b.toString(),o.refreshToken=r.a,n=new eh(n||{apiKey:t.l,authDomain:t.s,appName:t.m},o),e&&(n.ga=e),i&&rh(n,i),yh(n,t),n}(t,e,n.B,n.Ea());return Zh(this,this.h.then((function(){if(Jh(n).options.apiKey!=t.l)return i.reload()})).then((function(){return Yh(n)&&t.uid==Yh(n).uid?(yh(Yh(n),t),n.ca(t)):(Wh(n,i),lh(i),n.ca(i))})).then((function(){$h(n)})))},t.wb=function(){var t=this;return Zh(this,this.h.then((function(){return t.a&&Pc(t.a.b),Yh(t)?(Wh(t,null),Uh(t.i).then((function(){$h(t)}))):Sn()})))},t.Xc=function(){var t=this;return Vh(this.i,Jh(this).options.authDomain).then((function(n){if(!t.l){var e;if(e=Yh(t)&&n){e=Yh(t).uid;var i=n.uid;e=null!=e&&""!==e&&null!=i&&""!==i&&e==i}if(e)return yh(Yh(t),n),Yh(t).I();(Yh(t)||n)&&(Wh(t,n),n&&(lh(n),n.ga=t.B),t.a&&yc(t.a,t),$h(t))}}))},t.ca=function(t){return jh(this.i,t)},t.jc=function(){$h(this),this.ca(Yh(this))},t.uc=function(){this.wb()},t.vc=function(){this.wb()},t.ic=function(t){var n=this;return this.h.then((function(){return Xh(n,Sn(t))}))},t.xc=function(t){var n=this;this.addAuthTokenListener((function(){t.next(Yh(n))}))},t.yc=function(t){var n=this;!function(t,n){t.O.push(n),Zh(t,t.h.then((function(){!t.l&&W(t.O,n)&&t.W!==t.getUid()&&(t.W=t.getUid(),n(zh(t)))})))}(this,(function(){t.next(Yh(n))}))},t.Gc=function(t,n,e){var i=this;return this.aa&&Promise.resolve().then((function(){d(t)?t(Yh(i)):d(t.next)&&t.next(Yh(i))})),this.$b(t,n,e)},t.Fc=function(t,n,e){var i=this;return this.aa&&Promise.resolve().then((function(){i.W=i.getUid(),d(t)?t(Yh(i)):d(t.next)&&t.next(Yh(i))})),this.ac(t,n,e)},t.kc=function(t){var n=this;return Zh(this,this.h.then((function(){return Yh(n)?Yh(n).I(t).then((function(t){return{accessToken:t}})):null})))},t.Rc=function(t){var n=this;return this.h.then((function(){return Xh(n,Bs(n.b,Vs,{token:t}))})).then((function(t){var e=t.user;return bh(e,"isAnonymous",!1),n.ca(e),t}))},t.Sc=function(t,n){var e=this;return this.h.then((function(){return Xh(e,Bs(e.b,Fs,{email:t,password:n}))}))},t.cc=function(t,n){var e=this;return this.h.then((function(){return Xh(e,Bs(e.b,ps,{email:t,password:n}))}))},t.Ya=function(t){var n=this;return this.h.then((function(){return Xh(n,t.ia(n.b))}))},t.Qc=function(t){return Ki("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(t)},t.vb=function(){var t=this;return this.h.then((function(){var n=Yh(t);if(n&&n.isAnonymous){var e=Wi({providerId:null,isNewUser:!1});return Wi({user:n,credential:null,additionalUserInfo:e,operationType:"signIn"})}return Xh(t,t.b.vb()).then((function(n){var e=n.user;return bh(e,"isAnonymous",!0),t.ca(e),n}))}))},t.getUid=function(){return Yh(this)&&Yh(this).uid||null},t.bc=function(t){this.addAuthTokenListener(t),this.s++,0<this.s&&Yh(this)&&sh(Yh(this))},t.Nc=function(t){var n=this;K(this.m,(function(e){e==t&&n.s--})),0>this.s&&(this.s=0),0==this.s&&Yh(this)&&uh(Yh(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var n=this;this.m.push(t),Zh(this,this.h.then((function(){n.l||W(n.m,t)&&t(zh(n))})))},t.removeAuthTokenListener=function(t){J(this.m,(function(n){return n==t}))},t.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener(xh("local"),t.a,this.oa),this.a&&(wc(this.a,this),Pc(this.a.b)),Promise.resolve()},t.fc=function(t){return Zh(this,function(t,n){return Bs(t,vs,{identifier:n,continueUri:Ni()?ai():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.b,t))},t.zc=function(t){return!!So(t)},t.sb=function(t,n){var e=this;return Zh(this,Sn().then((function(){var t=new Ar(n);if(!t.c)throw new A("argument-error",Nr+" must be true when sending sign in link to email");return Lr(t)})).then((function(n){return e.b.sb(t,n)})).then((function(){})))},t.fd=function(t){return this.Pa(t).then((function(t){return t.data.email}))},t.jb=function(t,n){return Zh(this,this.b.jb(t,n).then((function(){})))},t.Pa=function(t){return Zh(this,this.b.Pa(t).then((function(t){return new nr(t)})))},t.fb=function(t){return Zh(this,this.b.fb(t).then((function(){})))},t.rb=function(t,n){var e=this;return Zh(this,Sn().then((function(){return void 0===n||ft(n)?{}:Lr(new Ar(n))})).then((function(n){return e.b.rb(t,n)})).then((function(){})))},t.Uc=function(t,n){return Zh(this,jc(this,t,n,w(this.Ya,this)))},t.Tc=function(t,n){var e=this;return Zh(this,Sn().then((function(){var i=n||ai(),r=ko(t,i);if(!(i=So(i)))throw new A("argument-error","Invalid email link!");if(i.tenantId!==e.S())throw new A("tenant-id-mismatch");return e.Ya(r)})))},Qh.prototype.render=function(){},Qh.prototype.reset=function(){},Qh.prototype.getResponse=function(){},Qh.prototype.execute=function(){};var nl=null;function el(t,n){return(n=il(n))&&t.a[n]||null}function il(t){return(t=void 0===t?1e12:t)?t.toString():null}function rl(t,n){this.g=!1,this.c=n,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=an(t);var e=this;this.i=function(){e.execute()},this.h?this.execute():ae(this.f,"click",this.i)}function ol(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function al(){}function sl(){}tl.prototype.render=function(t,n){return this.a[this.b.toString()]=new rl(t,n),this.b++},tl.prototype.reset=function(t){var n=el(this,t);t=il(t),n&&t&&(n.delete(),delete this.a[t])},tl.prototype.getResponse=function(t){return(t=el(this,t))?t.getResponse():null},tl.prototype.execute=function(t){(t=el(this,t))&&t.execute()},rl.prototype.getResponse=function(){return ol(this),this.b},rl.prototype.execute=function(){ol(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=function(){for(var t=50,n=[];0<t;)n.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return n.join("")}();var n=t.c.callback,e=t.c["expired-callback"];if(n)try{n(t.b)}catch(i){}t.a=setTimeout((function(){if(t.a=null,t.b=null,e)try{e()}catch(i){}t.h&&t.execute()}),6e4)}),500))},rl.prototype.delete=function(){ol(this),this.g=!0,clearTimeout(this.a),this.a=null,ce(this.f,"click",this.i)},Gi(al,"FACTOR_ID","phone"),sl.prototype.g=function(){return nl||(nl=new tl),Sn(nl)},sl.prototype.c=function(){};var ul=null;function cl(){this.b=s.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var hl=new gt(wt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),ll=new xi(3e4,6e4);cl.prototype.g=function(t){var n=this;return new yn((function(e,i){var r=setTimeout((function(){i(new A("network-request-failed"))}),ll.get());!s.grecaptcha||t!==n.f&&!n.b?(s[n.a]=function(){if(s.grecaptcha){n.f=t;var o=s.grecaptcha.render;s.grecaptcha.render=function(t,e){return t=o(t,e),n.b++,t},clearTimeout(r),e(s.grecaptcha)}else clearTimeout(r),i(new A("internal-error"));delete s[n.a]},Sn(La(At(hl,{onload:n.a,hl:t||""}))).o((function(){clearTimeout(r),i(new A("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),e(s.grecaptcha))}))},cl.prototype.c=function(){this.b--};var fl=null;function dl(t,n,e,i,r,o,a){if(Gi(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=n,this.g=null,a?(ul||(ul=new sl),a=ul):(fl||(fl=new cl),a=fl),this.m=a,this.a=e||{theme:"light",type:"image"},this.h=[],this.a[ml])throw new A("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[gl],!s.document)throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!an(n)||!this.i&&an(n).hasChildNodes())throw new A("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new qa(t,o||null,r||null),this.w=i||function(){return null};var u=this;this.l=[];var c=this.a[pl];this.a[pl]=function(t){if(bl(u,t),"function"==typeof c)c(t);else if("string"==typeof c){var n=Ai(c,s);"function"==typeof n&&n(t)}};var h=this.a[vl];this.a[vl]=function(){if(bl(u,null),"function"==typeof h)h();else if("string"==typeof h){var t=Ai(h,s);"function"==typeof t&&t()}}}var pl="callback",vl="expired-callback",ml="sitekey",gl="size";function bl(t,n){for(var e=0;e<t.l.length;e++)try{t.l[e](n)}catch(i){}}function yl(t,n){return t.h.push(n),n.ma((function(){X(t.h,n)})),n}function wl(t){if(t.D)throw new A("internal-error","RecaptchaVerifier instance has been destroyed.")}function Il(t,n,e){var i=!1;try{this.b=e||r.a.app()}catch(s){throw new A("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new A("invalid-api-key");e=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ea()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=r.a.SDK_VERSION?Ti(r.a.SDK_VERSION,a):null,dl.call(this,e,t,n,(function(){try{var t=o.b.auth().ja()}catch(n){t=null}return t}),a,R(S),i)}function Tl(t,n,e,i){t:{e=Array.prototype.slice.call(e);for(var r=0,o=!1,a=0;a<n.length;a++)if(n[a].optional)o=!0;else{if(o)throw new A("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=n.length,e.length<r||o<e.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+e.length+".";else{for(r=0;r<e.length;r++)if(o=n[r].optional&&void 0===e[r],!n[r].K(e[r])&&!o){if(n=n[r],0>r||r>=El.length)throw new A("internal-error","Argument validator received an unsupported number of arguments.");e=El[r],i=(i?"":e+" argument ")+(n.name?'"'+n.name+'" ':"")+"must be "+n.J+".";break t}i=null}}if(i)throw new A("argument-error",t+" failed: "+i)}(t=dl.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=yl(this,Sn().then((function(){if(Ni()&&!mi())return di();throw new A("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.w())})).then((function(n){return t.g=n,Bs(t.s,_s,{})})).then((function(n){t.a[ml]=n.recaptchaSiteKey})).o((function(n){throw t.f=null,n})))},t.render=function(){wl(this);var t=this;return yl(this,this.Ga().then((function(){if(null===t.c){var n=t.u;if(!t.i){var e=an(n);n=function(t,n,e){var i=arguments,r=document,o=String(i[0]),a=i[1];if(!on&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',qt(a.name),'"'),a.type){o.push(' type="',qt(a.type),'"');var s={};vt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=fn(r,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):sn(o,a)),2<i.length&&ln(r,o,i),o}("DIV"),e.appendChild(n)}t.c=t.g.render(n,t.a)}return t.c})))},t.verify=function(){wl(this);var t=this;return yl(this,this.render().then((function(n){return new yn((function(e){var i=t.g.getResponse(n);if(i)e(i);else{t.l.push((function n(i){i&&(function(t,n){J(t.l,(function(t){return t==n}))}(t,n),e(i))})),t.i&&t.g.execute(t.c)}}))})))},t.reset=function(){wl(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){wl(this),this.D=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=an(this.u);for(var n;n=t.firstChild;)t.removeChild(n)}},E(Il,dl);var El="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Al(t,n){return{name:t||"",J:"a valid string",optional:!!n,K:function(t){return"string"==typeof t}}}function kl(t,n){return{name:t||"",J:"a boolean",optional:!!n,K:function(t){return"boolean"==typeof t}}}function Sl(t,n){return{name:t||"",J:"a valid object",optional:!!n,K:p}}function Nl(t,n){return{name:t||"",J:"a function",optional:!!n,K:d}}function _l(t,n){return{name:t||"",J:"null",optional:!!n,K:function(t){return null===t}}}function Ol(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(n){return!!n&&!(!n.ia||t&&n.providerId!==t)}}}function Rl(t,n){return p(t)&&"string"==typeof t.type&&t.type===n&&d(t.Fa)}function Pl(t){return p(t)&&"string"==typeof t.uid}function Cl(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||!d(t.verify))}}}function Dl(t,n,e,i){return{name:e||"",J:t.J+" or "+n.J,optional:!!i,K:function(e){return t.K(e)||n.K(e)}}}function Ll(t,n){for(var e in n){var i=n[e].name;t[i]=jl(i,t[e],n[e].j)}}function Ml(t,n){for(var e in n){var i=n[e].name;i!==e&&Object.defineProperty(t,i,{get:I((function(t){return this[t]}),e),set:I((function(t,n,e,i){Tl(t,[e],[i],!0),this[n]=i}),i,e,n[e].gb),enumerable:!0})}}function xl(t,n,e,i){t[n]=jl(n,e,i)}function jl(t,n,e){function i(){var t=Array.prototype.slice.call(arguments);return Tl(o,e,t),n.apply(this,t)}if(!e)return n;var r,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in n)i[r]=n[r];for(r in n.prototype)i.prototype[r]=n.prototype[r];return i}Ll(qh.prototype,{fb:{name:"applyActionCode",j:[Al("code")]},Pa:{name:"checkActionCode",j:[Al("code")]},jb:{name:"confirmPasswordReset",j:[Al("code"),Al("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Al("email"),Al("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Al("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Al("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Dl(Sl(),Nl(),"nextOrObserver"),Nl("opt_error",!0),Nl("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Dl(Sl(),Nl(),"nextOrObserver"),Nl("opt_error",!0),Nl("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Al("email"),Dl(Sl("opt_actionCodeSettings",!0),_l(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Al("email"),Sl("actionCodeSettings")]},tb:{name:"setPersistence",j:[Al("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Ol()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Ol()]},Rc:{name:"signInWithCustomToken",j:[Al("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Al("email"),Al("password")]},Tc:{name:"signInWithEmailLink",j:[Al("email"),Al("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Al("phoneNumber"),Cl()]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[Dl({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof eh)}},_l(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Al(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Al("code")]}}),Ml(qh.prototype,{lc:{name:"languageCode",gb:Dl(Al(),_l(),"languageCode")},ti:{name:"tenantId",gb:Dl(Al(),_l(),"tenantId")}}),(qh.Persistence=Vu).LOCAL="local",qh.Persistence.SESSION="session",qh.Persistence.NONE="none",Ll(eh.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[kl("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[kl("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Ol()]},mb:{name:"linkWithCredential",j:[Ol()]},Bc:{name:"linkWithPhoneNumber",j:[Al("phoneNumber"),Cl()]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Ol()]},pb:{name:"reauthenticateWithCredential",j:[Ol()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Al("phoneNumber"),Cl()]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[Dl(Sl("opt_actionCodeSettings",!0),_l(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Al(null,!0)]},ad:{name:"unlink",j:[Al("provider")]},xb:{name:"updateEmail",j:[Al("email")]},yb:{name:"updatePassword",j:[Al("password")]},cd:{name:"updatePhoneNumber",j:[Ol("phone")]},zb:{name:"updateProfile",j:[Sl("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Al("email"),Dl(Sl("opt_actionCodeSettings",!0),_l(null,!0),"opt_actionCodeSettings",!0)]}}),Ll(tl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Ll(Qh.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Ll(yn.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Ml(Mc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:kl("appVerificationDisabledForTesting")}}),Ll(xc.prototype,{confirm:{name:"confirm",j:[Al("verificationCode")]}}),xl(eo,"fromJSON",(function(t){t="string"==typeof t?JSON.parse(t):t;for(var n,e=[co,Eo,_o,ao],i=0;i<e.length;i++)if(n=e[i](t))return n;return null}),[Dl(Al(),Sl(),"json")]),xl(Ao,"credential",(function(t,n){return new To(t,n)}),[Al("email"),Al("password")]),Ll(To.prototype,{v:{name:"toJSON",j:[Al(null,!0)]}}),Ll(po.prototype,{Aa:{name:"addScope",j:[Al("scope")]},Ia:{name:"setCustomParameters",j:[Sl("customOAuthParameters")]}}),xl(po,"credential",vo,[Dl(Al(),Sl(),"token")]),xl(Ao,"credentialWithLink",ko,[Al("email"),Al("emailLink")]),Ll(mo.prototype,{Aa:{name:"addScope",j:[Al("scope")]},Ia:{name:"setCustomParameters",j:[Sl("customOAuthParameters")]}}),xl(mo,"credential",go,[Dl(Al(),Sl(),"token")]),Ll(bo.prototype,{Aa:{name:"addScope",j:[Al("scope")]},Ia:{name:"setCustomParameters",j:[Sl("customOAuthParameters")]}}),xl(bo,"credential",yo,[Dl(Al(),Dl(Sl(),_l()),"idToken"),Dl(Al(),_l(),"accessToken",!0)]),Ll(wo.prototype,{Ia:{name:"setCustomParameters",j:[Sl("customOAuthParameters")]}}),xl(wo,"credential",Io,[Dl(Al(),Sl(),"token"),Al("secret",!0)]),Ll(fo.prototype,{Aa:{name:"addScope",j:[Al("scope")]},credential:{name:"credential",j:[Dl(Al(),Dl(Sl(),_l()),"optionsOrIdToken"),Dl(Al(),_l(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Sl("customOAuthParameters")]}}),Ll(so.prototype,{v:{name:"toJSON",j:[Al(null,!0)]}}),Ll(ro.prototype,{v:{name:"toJSON",j:[Al(null,!0)]}}),xl(Ro,"credential",Po,[Al("verificationId"),Al("verificationCode")]),Ll(Ro.prototype,{cb:{name:"verifyPhoneNumber",j:[Dl(Al(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?Rl(t.session,to)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Rl(t.session,no)&&Pl(t.multiFactorHint):t.session&&t.multiFactorUid?Rl(t.session,no)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),Cl()]}}),Ll(No.prototype,{v:{name:"toJSON",j:[Al(null,!0)]}}),Ll(A.prototype,{toJSON:{name:"toJSON",j:[Al(null,!0)]}}),Ll(Fo.prototype,{toJSON:{name:"toJSON",j:[Al(null,!0)]}}),Ll(Vo.prototype,{toJSON:{name:"toJSON",j:[Al(null,!0)]}}),Ll(Kc.prototype,{toJSON:{name:"toJSON",j:[Al(null,!0)]}}),Ll(Vc.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}}]}}),Ll(Jc.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}},Al("displayName",!0)]},$c:{name:"unenroll",j:[Dl({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Pl},Al(),"multiFactorInfoIdentifier")]}}),Ll(Il.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),xl(vr,"parseLink",Er,[Al("link")]),xl(al,"assertion",(function(t){return new Wc(t)}),[Ol("phone")]),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ir,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:er,VERIFY_AND_CHANGE_EMAIL:rr,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:qh,AuthCredential:eo,Error:A};xl(t,"EmailAuthProvider",Ao,[]),xl(t,"FacebookAuthProvider",po,[]),xl(t,"GithubAuthProvider",mo,[]),xl(t,"GoogleAuthProvider",bo,[]),xl(t,"TwitterAuthProvider",wo,[]),xl(t,"OAuthProvider",fo,[Al("providerId")]),xl(t,"SAMLAuthProvider",lo,[Al("providerId")]),xl(t,"PhoneAuthProvider",Ro,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof qh)}}]),xl(t,"RecaptchaVerifier",Il,[Dl(Al(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Sl("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof r.a.app.App)}}]),xl(t,"ActionCodeURL",vr,[]),xl(t,"PhoneMultiFactorGenerator",al,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new qh(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:w((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:w(t.kc,t),addAuthTokenListener:w(t.bc,t),removeAuthTokenListener:w(t.Nc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.8"),r.a.INTERNAL.extendNamespace({User:eh})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}}]);