PageSourceSearch

https://kiyokibagumi.jp/_nuxt/8c6be98.js

js kiyokibagumi.jp collected 2026-10-03 01:55:11 UTC 180,675 bytes, 1 lines download raw bytes

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

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.