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