!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e(t.firebase)}(this,function(t){"use strict";try{(function(){t=t&&t.hasOwnProperty("default")?t.default:t,function(){var e,n=n||{},i=this;function r(t){return"string"==typeof t}function o(t){return"boolean"==typeof t}function a(){}function s(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function u(t){return null===t}function c(t){return"array"==s(t)}function h(t){var e=s(t);return"array"==e||"object"==e&&"number"==typeof t.length}function f(t){return"function"==s(t)}function l(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function m(t,e,n){if(!t)throw Error();if(2t.b&&(t.b++,e.next=t.a,t.a=e)}function _(){this.b=this.a=null}w(A,Error),A.prototype.name="CustomError",w(E,A),E.prototype.name="AssertionError",S.prototype.get=function(){if(0")&&(t=t.replace(X,">")),-1!=t.indexOf('"')&&(t=t.replace(z,""")),-1!=t.indexOf("'")&&(t=t.replace(J,"'")),-1!=t.indexOf("\0")&&(t=t.replace(Y,"�")),t):t}var W,B=/&/g,G=//g,z=/"/g,J=/'/g,Y=/\x00/g,$=/[\x00&<>"']/;function Z(t,e){return-1!=t.indexOf(e)}function Q(t,e){return te?1:0}t:{var tt=i.navigator;if(tt){var et=tt.userAgent;if(et){W=et;break t}}W=""}function nt(t){return Z(W,t)}function it(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function rt(t){for(var e in t)return!1;return!0}function ot(t){var e,n={};for(e in t)n[e]=t[e];return n}var at,st,ut="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ct(t,e){for(var n,i,r=1;rparseFloat(Yt)){Ft=String(Zt);break t}}Ft=Yt}var Qt,te={};function ee(t){return function(t,e){var n=te;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,function(){for(var e=0,n=q(String(Ft)).split("."),i=q(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(t){}},ue.prototype.f=function(){return this.a};var he="closure_listenable_"+(1e6*Math.random()|0),fe=0;function le(t){t.oa=!0,t.listener=null,t.proxy=null,t.src=null,t.La=null}function de(t){this.src=t,this.a={},this.b=0}function pe(t,e){var n=e.type;n in t.a&&j(t.a[n],e)&&(le(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function ve(t,e,n,i){for(var r=0;rr.keyCode||void 0!=r.returnValue)){t:{var o=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(t){o=!0}(o||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],o=e.b;o;o=o.parentNode)r.push(o);for(t=t.type,o=r.length-1;0<=o;o--){e.b=r[o];var a=Ee(r[o],t,!0,e);n=n&&a}for(o=0;o>>0);function Oe(t){return f(t)?t:(t[_e]||(t[_e]=function(e){return t.handleEvent(e)}),t[_e])}function Pe(){Mt.call(this),this.l=new de(this),this.Rb=this,this.Va=null}function De(t,e,n,i,r){t.l.add(String(e),n,!1,i,r)}function Re(t,e,n,i,r){t.l.add(String(e),n,!0,i,r)}function Ce(t,e,n,i){if(!(e=t.l.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;oe)throw Error("Bad port number "+e);t.i=e}else t.i=null}function Be(t,e,n){e instanceof on?(t.a=e,function(t,e){e&&!t.f&&(an(t),t.c=null,t.a.forEach(function(t,e){var n=e.toLowerCase();e!=n&&(un(this,e),hn(this,n,t))},t)),t.f=e}(t.a,t.f)):(n||(e=$e(e,nn)),t.a=new on(e,t.f))}function Ge(t,e,n){t.a.set(e,n)}function Xe(t,e){return t.a.get(e)}function ze(t){return t instanceof qe?new qe(t):new qe(t,void 0)}function Je(t,e){var n=new qe(null,void 0);return He(n,"https"),t&&(n.b=t),e&&(n.g=e),n}function Ye(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function $e(t,e,n){return r(t)?(t=encodeURI(t).replace(e,Ze),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Ze(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}qe.prototype.toString=function(){var t=[],e=this.c;e&&t.push($e(e,Qe,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push($e(e,Qe,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&t.push(":",String(n))),(n=this.g)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push($e(n,"/"==n.charAt(0)?en:tn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.h)&&t.push("#",$e(n,rn)),t.join("")};var Qe=/[#\/\?@]/g,tn=/[#\?:]/g,en=/[#\?]/g,nn=/[#\?@]/g,rn=/#/g;function on(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function an(t){t.a||(t.a=new Ue,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n2*t.c&&Ve(t)))}function cn(t,e){return an(t),e=fn(t,e),Ke(t.a.b,e)}function hn(t,e,n){un(t,e),0"),Dn(""),Dn("
");var Ln={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 xn(t,e,n){var i=arguments,o=document,a=String(i[0]),s=i[1];if(!ln&&s&&(s.name||s.type)){if(a=["<",a],s.name&&a.push(' name="',H(s.name),'"'),s.type){a.push(' type="',H(s.type),'"');var u={};ct(u,s),delete u.type,s=u}a.push(">"),a=a.join("")}return a=o.createElement(a),s&&(r(s)?a.className=s:c(s)?a.className=s.join(" "):Cn(a,s)),2'),a.document.write(function(t){return t instanceof On&&t.constructor===On&&t.b===Pn?t.a:(k("expected object of type SafeHtml, got '"+t+"' of type "+s(t)),"type_error:SafeHtml")}(t)),a.document.close())):(a=i.open(En(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(t){}return a}var Xn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;function zn(){var t=null;return new vt(function(e){"complete"==i.document.readyState?e():(t=function(){e()},we(window,"load",t))}).s(function(e){throw Ie(window,"load",t),e})}function Jn(t){return t=t||oi(),!("file:"!==hi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Yn(){var t=i.window;try{return!(!t||t==t.top)}catch(t){return!1}}function $n(){return"object"!=typeof i.window&&"function"==typeof i.importScripts}function Zn(){return t.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":t.INTERNAL.hasOwnProperty("node")?"Node":$n()?"Worker":"Browser"}function Qn(){var t=Zn();return"ReactNative"===t||"Node"===t}var ti="Firefox",ei="Chrome";function ni(t){var e=t.toLowerCase();return Z(e,"opera/")||Z(e,"opr/")||Z(e,"opios/")?"Opera":Z(e,"iemobile")?"IEMobile":Z(e,"msie")||Z(e,"trident/")?"IE":Z(e,"edge/")?"Edge":Z(e,"firefox/")?ti:Z(e,"silk/")?"Silk":Z(e,"blackberry")?"Blackberry":Z(e,"webos")?"Webos":!Z(e,"safari/")||Z(e,"chrome/")||Z(e,"crios/")||Z(e,"android")?!Z(e,"chrome/")&&!Z(e,"crios/")||Z(e,"edge/")?Z(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":ei:"Safari"}var ii={Uc:"FirebaseCore-web",Wc:"FirebaseUI-web"};function ri(t,e){e=e||[];var n,i=[],r={};for(n in ii)r[ii[n]]=!0;for(n=0;ne)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=oi(),e=Zn(),this.b=Wn(t)||"ReactNative"===e}function yi(){var t=i.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function wi(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(t){}return null}function Ii(){return!(!ai("fireauth.oauthhelper",i)&&!ai("fireauth.iframe",i))}bi.prototype.get=function(){var t=i.navigator;return!t||"boolean"!=typeof t.onLine||!ci()&&"chrome-extension:"!==hi()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Ti,Ai={};function Ei(t){Ai[t]||(Ai[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var ki={};Object.defineProperty(ki,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(ki,"abcd",{configurable:!0,enumerable:!0,value:2}),Ti=2==ki.abcd}catch(qt){Ti=!1}function Si(t,e,n){Ti?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Ni(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Si(t,n,e[n])}function _i(t){var e={};return Ni(e,t),e}function Oi(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Si(e,n,Oi(t[n]));return e}var Pi="EMAIL_SIGNIN",Di="email",Ri="newEmail",Ci="requestType",Li="email",xi="fromEmail",Mi="data",ji="operation";function Ui(t,e){this.code=Ki+t,this.message=e||Fi[t]||""}function Vi(t){var e=t&&t.code;return e?new Ui(e.substring(Ki.length),t.message):null}w(Ui,Error),Ui.prototype.C=function(){return{code:this.code,message:this.message}},Ui.prototype.toJSON=function(){return this.C()};var Ki="auth/",Fi={"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-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-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","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-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-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.","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-or-invalid-nonce":"The OIDC ID token requires a valid unhashed nonce.","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.",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-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"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."};function qi(t){var e=t[Xi];if(void 0===e)throw new Ui("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new Ui("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Hi];if(n&&"object"==typeof n){e=n[Yi];var i=n[zi];if(n=n[Ji],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new Ui("argument-error",zi+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new Ui("argument-error",Ji+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new Ui("argument-error",Yi+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new Ui("missing-android-pkg-name")}}else if(void 0!==n)throw new Ui("argument-error",Hi+" property must be a non null object when specified.");if(this.f=null,(e=t[Gi])&&"object"==typeof e){if("string"==typeof(e=e[$i])&&e.length)this.f=e;else if(void 0!==e)throw new Ui("argument-error",$i+" property must be a non empty string when specified.")}else if(void 0!==e)throw new Ui("argument-error",Gi+" property must be a non null object when specified.");if(void 0!==(e=t[Bi])&&"boolean"!=typeof e)throw new Ui("argument-error",Bi+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Wi])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new Ui("argument-error",Wi+" property must be a non empty string when specified.");this.i=t||null}var Hi="android",Wi="dynamicLinkDomain",Bi="handleCodeInApp",Gi="iOS",Xi="url",zi="installApp",Ji="minimumVersion",Yi="packageName",$i="bundleId";function Zi(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Qi=null,tr=null;function er(t){var e="";return function(t,e){function n(e){for(;it;t++)Qi[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t),tr[Qi[t]]=t,62<=t&&(tr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(t)]=t)}}();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;e(r<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){e+=String.fromCharCode(t)}),e}function nr(t){this.c=t.sub,this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function ir(t){return(t=rr(t))&&t.sub&&t.iss&&t.aud&&t.exp?new nr(t):null}function rr(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=F("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",Ui.call(this,e,n)}function Qr(t,e,n){Ui.call(this,t,n),(t=e||{}).zb&&Si(this,"email",t.zb),t.$&&Si(this,"phoneNumber",t.$),t.credential&&Si(this,"credential",t.credential)}function to(t){if(t.code){var e=t.code||"";0==e.indexOf(Ki)&&(e=e.substring(Ki.length));var n={credential:Gr(t)};if(t.email)n.zb=t.email;else if(t.phoneNumber)n.$=t.phoneNumber;else if(!n.credential)return new Ui(e,t.message||void 0);return new Qr(e,n,t.message)}return null}Yr.prototype.subscribe=function(t){var e=this;this.a.push(t),this.b||(this.b=function(t){for(var n=0;n=function t(e){return e.c?e.c:e.a?t(e.a):(k("Root logger has no level set."),null)}(this).value)for(f(e)&&(e=e()),t=new ho(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var bo={},yo=null;function wo(t){var e;if(yo||(yo=new fo(""),bo[""]=yo,yo.c=mo),!(e=bo[t])){e=new fo(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=wo(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,bo[t]=e}return e}function Io(t,e){t&&t.log(go,e,void 0)}function To(t){this.f=t}function Ao(t){Pe.call(this),this.i=t,this.readyState=Eo,this.status=0,this.responseText=this.statusText="",this.onreadystatechange=null,this.g=new Headers,this.b=null,this.h="GET",this.c="",this.a=!1,this.f=wo("goog.net.FetchXmlHttp")}w(To,io),To.prototype.a=function(){return new Ao(this.f)},To.prototype.b=function(t){return function(){return t}}({}),w(Ao,Pe);var Eo=0;function ko(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function So(t){Pe.call(this),this.headers=new Ue,this.D=t||null,this.c=!1,this.w=this.a=null,this.h=this.N=this.m="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.o=No,this.v=this.O=!1}(e=Ao.prototype).open=function(t,e){if(this.readyState!=Eo)throw this.abort(),Error("Error reopening a connection");this.h=t,this.c=e,this.readyState=1,ko(this)},e.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.g,method:this.h,credentials:void 0,cache:void 0};t&&(e.body=t),this.i.fetch(new Request(this.c,e)).then(this.hc.bind(this),this.Gb.bind(this))},e.abort=function(){this.responseText="",this.g=new Headers,this.status=0,1<=this.readyState&&this.a&&4!=this.readyState&&(this.readyState=4,this.a=!1,ko(this)),this.readyState=Eo},e.hc=function(t){this.a&&(this.b||(this.b=t.headers,this.readyState=2,ko(this)),this.a&&(this.readyState=3,ko(this),this.a&&t.text().then(this.gc.bind(this,t),this.Gb.bind(this))))},e.gc=function(t,e){this.a&&(this.status=t.status,this.statusText=t.statusText,this.responseText=e,this.readyState=4,ko(this))},e.Gb=function(t){var e=this.f;e&&e.log(vo,"Failed to fetch url "+this.c,t instanceof Error?t:Error(t)),this.a&&(this.readyState=4,ko(this))},e.setRequestHeader=function(t,e){this.g.append(t,e)},e.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.f)&&t.log(vo,"Attempting to get response header but no headers have been received for url: "+this.c,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var t=this.f;return t&&t.log(vo,"Attempting to get all response headers but no headers have been received for url: "+this.c,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},w(So,Pe);var No="";So.prototype.b=wo("goog.net.XhrIo");var _o=/^https?$/i,Oo=["POST","PUT"];function Po(t,e,n,o,a){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.m+"; newUri="+e);n=n?n.toUpperCase():"GET",t.m=e,t.h="",t.N=n,t.G=!1,t.c=!0,t.a=t.D?t.D.a():eo.a(),t.w=t.D?ro(t.D):ro(eo),t.a.onreadystatechange=g(t.Jb,t);try{Io(t.b,Vo(t,"Opening Xhr")),t.I=!0,t.a.open(n,String(e),!0),t.I=!1}catch(e){return Io(t.b,Vo(t,"Error opening Xhr: "+e.message)),void Ro(t,e)}e=o||"";var s=new Ue(t.headers);a&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(h(t)||r(t))C(t,e,void 0);else for(var n=je(t),i=Me(t),o=i.length,a=0;ae?null:r(t)?t.charAt(e):t[e]}(s.U()),o=i.FormData&&e instanceof i.FormData,!M(Oo,n)||a||o||s.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),s.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.o&&(t.a.responseType=t.o),"withCredentials"in t.a&&t.a.withCredentials!==t.O&&(t.a.withCredentials=t.O);try{Mo(t),0=e.l&&e.cancel())}this.v?this.v.call(this.u,this):this.m=!0,this.a||(t=new Xo(this),qo(this),Fo(this,!1,t))}},Ko.prototype.o=function(t,e){this.i=!1,Fo(this,t,e)},Ko.prototype.D=function(){qo(this),Fo(this,!0,null)},Ko.prototype.then=function(t,e,n){var i,r,o=new vt(function(t,e){i=t,r=e});return Ho(this,i,function(t){t instanceof Xo?o.cancel():r(t)}),o.then(t,e,n)},I(Ko),w(Go,A),Go.prototype.message="Deferred has already fired",Go.prototype.name="AlreadyCalledError",w(Xo,A),Xo.prototype.message="Deferred was canceled",Xo.prototype.name="CanceledError",zo.prototype.c=function(){throw delete Jo[this.a],this.b};var Jo={};function Yo(t){var e={},n=e.document||document,i=bn(t),r=document.createElement("SCRIPT"),o={Lb:r,Ga:void 0},a=new Ko($o,o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0t||Wt&&Qt&&!(9e;e++){r=0|n[e-15],i=0|n[e-2];var o=(0|n[e-16])+((r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,a=(0|n[e-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+a|0}i=0|t.a[0],r=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],h=0|t.a[5],f=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var l=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&s^r&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&h^~c&f)+(0|tu[e])|0)+(0|n[e])|0)|0,o=f,f=h,h=c,c=u+a|0,u=s,s=r,r=i,i=a+l|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+h|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+o|0}function cu(t,e,n){void 0===n&&(n=e.length);var i=0,o=t.c;if(r(e))for(;i=a&&a==(0|a)))throw Error("message must be a byte array");t.f[o++]=a,o==t.b&&(uu(t),o=0)}}t.c=o,t.g+=n}nu.prototype.reset=function(){this.g=this.c=0,this.a=i.Int32Array?new Int32Array(this.h):K(this.h)};var hu=[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 fu(){nu.call(this,8,lu)}w(fu,nu);var lu=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function du(t,e,n,i,r){this.m=t,this.i=e,this.l=n,this.o=i||null,this.u=r||null,this.h=e+":"+n,this.v=new function(){this.a=Js()},this.g=new function(t){this.a=t,this.b=Js()}(this.h),this.f=null,this.b=[],this.a=this.c=null}function pu(t){return new Ui("invalid-cordova-configuration",t)}function vu(t){var e=new fu;cu(e,t),t=[];var n=8*e.g;56>e.c?cu(e,su,56-e.c):cu(e,su,e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(uu(e),i=n=0;i>r&255;return function(t){return L(t,function(t){return 1<(t=t.toString(16)).length?t:"0"+t}).join("")}(t)}function mu(t,e){for(var n=0;nt.f&&(t.a=t.f),e)}(e,n)).then(function(){return t=i.document,e=null,yi()||!t?Tt():new vt(function(n){e=function(){yi()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)}).s(function(n){throw t.removeEventListener("visibilitychange",e,!1),n});var t,e}).then(function(){return e.h()}).then(function(){t(e,!0)}).s(function(n){e.i(n)&&t(e,!1)})}(this,!0)},Vu.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Ku.prototype.C=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},Ku.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?At(new Ui("user-token-expired")):t||!this.b||y()>this.c-3e4?this.a?Hu(this,{grant_type:"refresh_token",refresh_token:this.a}):Tt(null):Tt({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Wu.prototype.C=function(){return{lastLoginAt:this.b,createdAt:this.a}},w(Bu,se),w(Gu,Pe),Gu.prototype.pa=function(t){this.ka=t,ha(this.b,t)},Gu.prototype.ea=function(){return this.ka},Gu.prototype.ya=function(){return K(this.O)},Gu.prototype.Ha=function(){this.w.b&&(this.w.stop(),this.w.start())},Si(Gu.prototype,"providerId","firebase"),(e=Gu.prototype).reload=function(){var t=this;return bc(this,rc(this).then(function(){return hc(t).then(function(){return tc(t)}).then(ic)}))},e.dc=function(t){return this.F(t).then(function(t){return new function(t){var e=rr(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new Ui("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Ni(this,{token:t,expirationTime:wi(1e3*e.exp),authTime:wi(1e3*e.auth_time),issuedAtTime:wi(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,claims:e})}(t)})},e.F=function(t){var e=this;return bc(this,rc(this).then(function(){return e.h.getToken(t)}).then(function(t){if(!t)throw new Ui("internal-error");return t.accessToken!=e.ra&&(Qu(e,t.accessToken),e.dispatchEvent(new Bu("tokenChanged"))),uc(e,"refreshToken",t.refreshToken),t.accessToken}))},e.xc=function(t){if(!(t=t.users)||!t.length)throw new Ui("internal-error");nc(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?L(t,function(t){return new function(t,e,n,i,r,o){Ni(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}(t),n=0;nthis.u&&(this.u=0),0==this.u&&Uc(this)&&Zu(Uc(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.o.push(t),Fc(this,this.i.then(function(){e.m||M(e.o,t)&&t(Vc(e))}))},e.removeAuthTokenListener=function(t){U(this.o,function(e){return e==t})},e.delete=function(){this.m=!0;for(var e=0;er||r>=fh.length)throw new Ui("internal-error","Argument validator received an unsupported number of arguments.");n=fh[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.K+".";break t}i=null}}if(i)throw new Ui("argument-error",t+" failed: "+i)}(e=eh.prototype).za=function(){var t=this;return this.f?this.f:this.f=sh(this,Tt().then(function(){if(ci()&&!$n())return zn();throw new Ui("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.o.g(t.v())}).then(function(e){return t.g=e,ts(t.u,Ka,{})}).then(function(e){t.a[rh]=e.recaptchaSiteKey}).s(function(e){throw t.f=null,e}))},e.render=function(){uh(this);var t=this;return sh(this,this.za().then(function(){if(null===t.c){var e=t.m;if(!t.i){var n=Rn(e);e=xn("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},e.verify=function(){uh(this);var t=this;return sh(this,this.render().then(function(e){return new vt(function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(function(t,e){U(t.l,function(t){return t==e})}(t,r),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}})}))},e.reset=function(){uh(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){uh(this),this.D=!0,this.o.c();for(var t=0;t