(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["firebase-auth"],{b7aa:function(t,e,n){"use strict";(function(t){var e=n("c23d"),i=n.n(e);(function(){var e,n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},r="undefined"!=typeof window&&window===this?this:"undefined"!=typeof t&&null!=t?t:this;function o(t,e){if(e){var i=r;t=t.split(".");for(var o=0;o>>0),T=0;function k(t,e,n){return t.call.apply(t.bind,arguments)}function E(t,e,n){if(!t)throw Error();if(2t.b&&(t.b++,e.next=t.a,t.a=e)}function x(){this.b=this.a=null}_(R,Error),R.prototype.name="CustomError",_(P,R),P.prototype.name="AssertionError",C.prototype.get=function(){if(0"}else o=void 0===t?"undefined":null===t?"null":typeof t;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}x.prototype.add=function(t,e){var n=M.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},U.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},U.prototype.reset=function(){this.next=this.b=this.a=null};var F=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if(h(t))return h(e)&&1==e.length?t.indexOf(e,0):-1;for(var n=0;ne?null:h(t)?t.charAt(e):t[e]}function W(t,e){return 0<=F(t,e)}function X(t,e){var n;return e=F(t,e),(n=0<=e)&&Array.prototype.splice.call(t,e,1),n}function J(t,e){q(t,(function(n,i){e.call(void 0,n,i,t)&&1==Array.prototype.splice.call(t,i,1).length&&0}))}function Y(t){return Array.prototype.concat.apply([],arguments)}function z(t){var e=t.length;if(0/g,bt=/"/g,yt=/'/g,wt=/\x00/g,It=/[\x00&<>"']/;function Tt(t,e){return-1!=t.indexOf(e)}function kt(t,e){return te?1:0}function Et(){this.a="",this.b=Ot}function St(t){return t instanceof Et&&t.constructor===Et&&t.b===Ot?t.a:(D("expected object of type SafeUrl, got '"+t+"' of type "+v(t)),"type_error:SafeUrl")}Et.prototype.qa=!0,Et.prototype.pa=function(){return this.a.toString()},Et.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var At=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Nt(t){return t instanceof Et?t:(t="object"==typeof t&&t.qa?t.pa():String(t),At.test(t)||(t="about:invalid#zClosurez"),Rt(t))}var _t,Ot={};function Rt(t){var e=new Et;return e.a=t,e}Rt("about:blank");t:{var Pt=c.navigator;if(Pt){var Dt=Pt.userAgent;if(Dt){_t=Dt;break t}}_t=""}function Ct(t){return Tt(_t,t)}function Lt(){this.a="",this.b=Mt}function xt(t){return t instanceof Lt&&t.constructor===Lt&&t.b===Mt?t.a:(D("expected object of type SafeHtml, got '"+t+"' of type "+v(t)),"type_error:SafeHtml")}Lt.prototype.qa=!0,Lt.prototype.pa=function(){return this.a.toString()},Lt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Mt={};function jt(t){var e=new Lt;return e.a=t,e}jt("");var Ut,Vt,Ft=jt("");function Kt(t){var e=dt(it(at));V(t,"HTMLIFrameElement"),t.src=ut(e).toString()}function qt(t,e){V(t,"HTMLScriptElement"),t.src=ut(e),null===d&&(e=c.document,d=(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&l.test(e)?e:""),e=d,e&&t.setAttribute("nonce",e)}function Ht(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1")&&(t=t.replace(gt,">")),-1!=t.indexOf('"')&&(t=t.replace(bt,""")),-1!=t.indexOf("'")&&(t=t.replace(yt,"'")),-1!=t.indexOf("\0")&&(t=t.replace(wt,"�"))),t}function Gt(t){c.setTimeout((function(){throw t}),0)}function Wt(){var t=c.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Ct("Presto")&&(t=function(){var t=document.createElement("IFRAME");t.style.display="none",Kt(t),document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.write(xt(Ft)),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=S((function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),"undefined"!==typeof t&&!Ct("Trident")&&!Ct("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){n=n.next;var t=n.yb;n.yb=null,t()}},function(t){i.next={yb:t},i=i.next,e.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(t){var e=document.createElement("SCRIPT");e.onreadystatechange=function(){e.onreadystatechange=null,e.parentNode.removeChild(e),e=null,t(),t=null},document.documentElement.appendChild(e)}:function(t){c.setTimeout(t,0)}}function Xt(t,e){Vt||Jt(),Yt||(Vt(),Yt=!0),zt.add(t,e)}function Jt(){if(c.Promise&&c.Promise.resolve){var t=c.Promise.resolve(void 0);Vt=function(){t.then($t)}}else Vt=function(){var t=$t;!y(c.setImmediate)||c.Window&&c.Window.prototype&&!Ct("Edge")&&c.Window.prototype.setImmediate==c.setImmediate?(Ut||(Ut=Wt()),Ut(t)):c.setImmediate(t)}}jt("
");var Yt=!1,zt=new x;function $t(){for(var t;t=j();){try{t.a.call(t.b)}catch(e){Gt(e)}L(M,t)}Yt=!1}function Zt(t,e){if(this.a=Qt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=p)try{var n=this;t.call(e,(function(t){de(n,te,t)}),(function(t){if(!(t instanceof Te))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}de(n,ee,t)}))}catch(i){de(this,ee,i)}}var Qt=0,te=2,ee=3;function ne(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}ne.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var ie=new C((function(){return new ne}),(function(t){t.reset()}));function re(t,e,n){var i=ie.get();return i.g=t,i.b=e,i.f=n,i}function oe(t){if(t instanceof Zt)return t;var e=new Zt(p);return de(e,te,t),e}function ae(t){return new Zt((function(e,n){n(t)}))}function se(t,e,n){pe(t,e,n,null)||Xt(A(e,t))}function ue(t){return new Zt((function(e,n){var i=t.length,r=[];if(i)for(var o,a=function(t,n){i--,r[t]=n,0==i&&e(r)},s=function(t){n(t)},u=0;uparseFloat(je)){Oe=String(Ve);break t}}Oe=je}var Fe,Ke={};function qe(t){return _e(t,(function(){for(var e=0,n=pt(String(Oe)).split("."),i=pt(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}},Je.prototype.f=function(){return this.a};var ze="closure_listenable_"+(1e6*Math.random()|0),$e=0;function Ze(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Na=r,this.key=++$e,this.ra=this.Ia=!1}function Qe(t){t.ra=!0,t.listener=null,t.proxy=null,t.src=null,t.Na=null}function tn(t){this.src=t,this.a={},this.b=0}function en(t,e){var n=e.type;n in t.a&&X(t.a[n],e)&&(Qe(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function nn(t,e,n,i){for(var r=0;ri.keyCode||void 0!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(a){r=!0}(r||void 0==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var o=dn(i[r],t,!0,e);n=n&&o}for(r=0;r>>0);function bn(t){return y(t)?t:(t[gn]||(t[gn]=function(e){return t.handleEvent(e)}),t[gn])}function yn(){ke.call(this),this.u=new tn(this),this.Sb=this,this.Wa=null}function wn(t,e,n,i,r){t.u.add(String(e),n,!1,i,r)}function In(t,e,n,i,r){t.u.add(String(e),n,!0,i,r)}function Tn(t,e,n,i){if(e=t.u.a[String(e)],!e)return!0;e=e.concat();for(var r=!0,o=0;oe)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Mn(t,e,n){e instanceof Yn?(t.a=e,ii(t.a,t.h)):(n||(e=qn(e,Xn)),t.a=new Yn(e,t.h))}function jn(t,e,n){t.a.set(e,n)}function Un(t,e){return t.a.get(e)}function Vn(t){return t instanceof Cn?new Cn(t):new Cn(t,void 0)}function Fn(t,e){var n=new Cn(null,void 0);return Ln(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function Kn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function qn(t,e,n){return h(t)?(t=encodeURI(t).replace(e,Hn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Hn(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}Cn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(qn(e,Bn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(qn(e,Bn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),n=this.l,null!=n&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(qn(n,"/"==n.charAt(0)?Wn:Gn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",qn(n,Jn)),t.join("")},Cn.prototype.resolve=function(t){var e=new Cn(this),n=!!t.f;n?Ln(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var i=t.c;if(n)xn(e,t.l);else if(n=!!t.c){if("/"!=i.charAt(0))if(this.b&&!this.c)i="/"+i;else{var r=e.c.lastIndexOf("/");-1!=r&&(i=e.c.substr(0,r+1)+i)}if(r=i,".."==r||"."==r)i="";else if(Tt(r,"./")||Tt(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a2*t.c&&On(t)))}function Qn(t,e){return zn(t),e=ni(t,e),Rn(t.a.b,e)}function ti(t,e,n){Zn(t,e),0"),o=o.join("")}return o=r.createElement(o),a&&(h(a)?o.className=a:g(a)?o.className=a.join(" "):ai(o,a)),2t)&&(!Pe||!Fe||9'),a.document.write(xt(t)),a.document.close())):(a=i.open(St(e).toString(),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}function Si(t){return new Zt((function(e){function n(){En(2e3).then((function(){if(t&&!t.closed)return n();e()}))}return n()}))}var Ai=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Ni=/^[^@]+@[^@]+$/;function _i(){var t=null;return new Zt((function(e){"complete"==c.document.readyState?e():(t=function(){e()},cn(window,"load",t))})).s((function(e){throw hn(window,"load",t),e}))}function Oi(){return Ri(void 0)?_i().then((function(){return new Zt((function(t,e){var n=c.document,i=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(i),t()}),!1)}))})):ae(Error("Cordova must run in an Android or iOS file scheme."))}function Ri(t){return t=t||Ki(),!("file:"!==Wi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function Pi(){var t=c.window;try{return!(!t||t==t.top)}catch(e){return!1}}function Di(){return"undefined"!==typeof c.WorkerGlobalScope&&"function"===typeof c.importScripts}function Ci(){return i.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":i.a.INTERNAL.hasOwnProperty("node")?"Node":Di()?"Worker":"Browser"}function Li(){var t=Ci();return"ReactNative"===t||"Node"===t}function xi(){for(var t=50,e=[];0e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Ki(),e=Ci(),this.b=Ti(t)||"ReactNative"===e}function er(){var t=c.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function nr(){var t=c.document,e=null;return er()||!t?oe():new Zt((function(n){e=function(){er()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).s((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}function ir(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function rr(){return!(!qi("fireauth.oauthhelper",c)&&!qi("fireauth.iframe",c))}function or(){var t=c.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}function ar(){var t=c.navigator;return t&&t.serviceWorker?oe().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).s((function(){return null})):oe(null)}tr.prototype.get=function(){var t=c.navigator;return!t||"boolean"!==typeof t.onLine||!Gi()&&"chrome-extension:"!==Wi()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var sr,ur={};function cr(t){ur[t]||(ur[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var hr={};Object.defineProperty(hr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(hr,"abcd",{configurable:!0,enumerable:!0,value:2}),sr=2==hr.abcd}catch(ed){sr=!1}function fr(t,e,n){sr?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function lr(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&fr(t,n,e[n])}function dr(t){var e={};return lr(e,t),e}function pr(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vr(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}function eo(){if(!$r){$r={},Zr={};for(var t=0;65>t;t++)$r[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t),Zr[$r[t]]=t,62<=t&&(Zr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(t)]=t)}}function no(t){this.f=t.sub,N(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.c=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function io(t){return(t=ro(t))&&t.sub&&t.iss&&t.aud&&t.exp?new no(t):null}function ro(t){if(!t)return null;if(t=t.split("."),3!=t.length)return null;t=t[1];for(var e=(4-t.length%4)%4,n=0;n Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=Ht("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",Ar.call(this,e,n)}function sa(t,e,n){Ar.call(this,t,n),t=e||{},t.Ab&&fr(this,"email",t.Ab),t.ba&&fr(this,"phoneNumber",t.ba),t.credential&&fr(this,"credential",t.credential),t.Qb&&fr(this,"tenantId",t.Qb)}function ua(t){if(t.code){var e=t.code||"";0==e.indexOf(_r)&&(e=e.substring(_r.length));var n={credential:Zo(t),Qb:t.tenantId};if(t.email)n.Ab=t.email;else if(t.phoneNumber)n.ba=t.phoneNumber;else if(!n.credential)return new Ar(e,t.message||void 0);return new sa(e,n,t.message)}return null}function ca(){}function ha(t){return t.c||(t.c=t.b())}function fa(){}function la(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=ka(this).value)for(y(e)&&(e=e()),t=new ma(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var Ea={},Sa=null;function Aa(t){var e;if(Sa||(Sa=new ga(""),Ea[""]=Sa,Sa.c=Ia),!(e=Ea[t])){e=new ga(t);var n=t.lastIndexOf("."),i=t.substr(n+1);n=Aa(t.substr(0,n)),n.b||(n.b={}),n.b[i]=e,e.a=n,Ea[t]=e}return e}function Na(t,e){t&&t.log(Ta,e,void 0)}function _a(t){this.f=t}function Oa(t){yn.call(this),this.o=t,this.readyState=Ra,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=Aa("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}_(_a,ca),_a.prototype.a=function(){return new Oa(this.f)},_a.prototype.b=function(t){return function(){return t}}({}),_(Oa,yn);var Ra=0;function Pa(t){t.c.read().then(t.ec.bind(t)).catch(t.Ma.bind(t))}function Da(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,Ca(t)}function Ca(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function La(t){yn.call(this),this.headers=new _n,this.B=t||null,this.c=!1,this.w=this.a=null,this.h=this.O=this.l="",this.f=this.J=this.i=this.I=!1,this.g=0,this.o=null,this.m=xa,this.v=this.P=!1}e=Oa.prototype,e.open=function(t,e){if(this.readyState!=Ra)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,Ca(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.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.o.fetch(new Request(this.g,e)).then(this.jc.bind(this),this.Ma.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Da(this,!1)),this.readyState=Ra},e.jc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,Ca(this)),this.a&&(this.readyState=3,Ca(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.hc.bind(this),this.Ma.bind(this)):"undefined"!==typeof c.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,Pa(this)):t.text().then(this.ic.bind(this),this.Ma.bind(this)))))},e.ec=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?Da(this,!0):Ca(this),3==this.readyState&&Pa(this)}},e.ic=function(t){this.a&&(this.response=this.responseText=t,Da(this,!0))},e.hc=function(t){this.a&&(this.response=t,Da(this,!0))},e.Ma=function(t){var e=this.h;e&&e.log(wa,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&Da(this,!0)},e.setRequestHeader=function(t,e){this.i.append(t,e)},e.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(wa,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(wa,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},_(La,yn);var xa="";La.prototype.b=Aa("goog.net.XhrIo");var Ma=/^https?$/i,ja=["POST","PUT"];function Ua(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.O=n,t.I=!1,t.c=!0,t.a=t.B?t.B.a():ia.a(),t.w=t.B?ha(t.B):ha(ia),t.a.onreadystatechange=S(t.Lb,t);try{Na(t.b,Ya(t,"Opening Xhr")),t.J=!0,t.a.open(n,String(e),!0),t.J=!1}catch(a){return Na(t.b,Ya(t,"Error opening Xhr: "+a.message)),void Ka(t,a)}e=i||"";var o=new _n(t.headers);r&&Nn(r,(function(t,e){o.set(e,t)})),r=G(o.X()),i=c.FormData&&e instanceof c.FormData,!W(ja,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.P&&(t.a.withCredentials=t.P);try{Ga(t),0=e.l&&e.cancel())}this.v?this.v.call(this.o,this):this.u=!0,this.a||(t=new rs(this),Za(this),$a(this,!1,t))}},za.prototype.m=function(t,e){this.i=!1,$a(this,t,e)},za.prototype.then=function(t,e,n){var i,r,o=new Zt((function(t,e){i=t,r=e}));return ts(this,i,(function(t){t instanceof rs?o.cancel():r(t)})),o.then(t,e,n)},za.prototype.$goog_Thenable=!0,_(is,R),is.prototype.message="Deferred has already fired",is.prototype.name="AlreadyCalledError",_(rs,R),rs.prototype.message="Deferred was canceled",rs.prototype.name="CanceledError",os.prototype.c=function(){throw delete as[this.a],this.b};var as={};function ss(t){var e={},n=e.document||document,i=ut(t).toString(),r=document.createElement("SCRIPT"),o={Nb:r,Ga:void 0},a=new za(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0e;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=c&h^~c&f,o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0,a=a+(0|Mc[e])|0,a=o+(a+(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 Jc(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if(h(e))for(;i=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(Xc(t),r=0)}}t.c=r,t.g+=n}Kc.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):z(this.h)};var Yc=[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 zc(){Kc.call(this,8,$c)}_(zc,Kc);var $c=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Zc(t,e,n,i,r){this.u=t,this.i=e,this.l=n,this.m=i||null,this.o=r||null,this.h=e+":"+n,this.v=new Vc,this.g=new xc(this.h),this.f=null,this.b=[],this.a=this.c=null}function Qc(t){return new Ar("invalid-cordova-configuration",t)}function th(){for(var t=20,e=[];0e.c?Jc(e,Wc,56-e.c):Jc(e,Wc,e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(Xc(e),i=n=0;i>r&255;return zr(t)}function nh(t,e,n,i,r){var o=th(),a=new ta(e,i,null,o,new Ar("no-auth-event"),null,r),s=qi("BuildInfo.packageName",c);if("string"!==typeof s)throw new Ar("invalid-cordova-configuration");var u=qi("BuildInfo.displayName",c),h={};if(Ki().toLowerCase().match(/iphone|ipad|ipod/))h.ibi=s;else{if(!Ki().toLowerCase().match(/android/))return ae(new Ar("operation-not-supported-in-this-environment"));h.apn=s}u&&(h.appDisplayName=u),o=eh(o),h.sessionId=o;var f=Uu(t.u,t.i,t.l,e,n,null,i,t.m,h,t.o,r);return t.ia().then((function(){var e=t.h;return t.v.a.set(jc,a.A(),e)})).then((function(){var e=qi("cordova.plugins.browsertab.isAvailable",c);if("function"!==typeof e)throw new Ar("invalid-cordova-configuration");var n=null;e((function(e){if(e){if(n=qi("cordova.plugins.browsertab.openUrl",c),"function"!==typeof n)throw new Ar("invalid-cordova-configuration");n(f)}else{if(n=qi("cordova.InAppBrowser.open",c),"function"!==typeof n)throw new Ar("invalid-cordova-configuration");e=Ki(),t.a=n(f,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}function ih(t,e){for(var n=0;nt.f&&(t.a=t.f),e)}function qh(t,e){t.stop(),t.b=En(Kh(t,e)).then((function(){return nr()})).then((function(){return t.h()})).then((function(){qh(t,!0)})).s((function(e){t.i(e)&&qh(t,!1)}))}function Hh(t){this.f=t,this.b=this.a=null,this.c=0}function Bh(t,e){var n=e[gs],i=e.refreshToken;e=Wh(e.expiresIn),t.b=n,t.c=e,t.a=i}function Gh(t,e){t.b=e.b,t.a=e.a,t.c=e.c}function Wh(t){return N()+1e3*parseInt(t,10)}function Xh(t,e){return _s(t.f,e).then((function(e){return t.b=e.access_token,t.c=Wh(e.expires_in),t.a=e.refresh_token,{accessToken:t.b,expirationTime:t.c,refreshToken:t.a}})).s((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}function Jh(t,e){this.a=t||null,this.b=e||null,lr(this,{lastSignInTime:ir(e||null),creationTime:ir(t||null)})}function Yh(t){return new Jh(t.a,t.b)}function zh(t,e,n,i,r,o){lr(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function $h(t,e){for(var n in Xe.call(this,t),e)this[n]=e[n]}function Zh(t,e,n){this.I=[],this.l=t.apiKey,this.m=t.appName,this.o=t.authDomain||null,t=i.a.SDK_VERSION?Fi(i.a.SDK_VERSION):null,this.a=new vs(this.l,so(oo),t),this.b=new Hh(this.a),sf(this,e[gs]),Bh(this.b,e),fr(this,"refreshToken",this.b.a),ff(this,n||{}),yn.call(this),this.J=!1,this.o&&Bi()&&(this.i=Sh(this.o,this.l,this.m)),this.O=[],this.h=null,this.w=rf(this),this.W=S(this.Ha,this);var r=this;this.ga=null,this.va=function(t){r.sa(t.g)},this.Z=null,this.P=[],this.ua=function(t){tf(r,t.c)},this.Y=null}function Qh(t,e){t.Z&&hn(t.Z,"languageCodeChanged",t.va),(t.Z=e)&&an(e,"languageCodeChanged",t.va)}function tf(t,e){t.P=e,ks(t.a,i.a.SDK_VERSION?Fi(i.a.SDK_VERSION,t.P):null)}function ef(t,e){t.Y&&hn(t.Y,"frameworkChanged",t.ua),(t.Y=e)&&an(e,"frameworkChanged",t.ua)}function nf(t){try{return i.a.app(t.m).auth()}catch(e){throw new Ar("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function rf(t){return new Fh((function(){return t.G(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=t.b.c-N()-3e5;return 0this.c-3e4?this.a?Xh(this,{grant_type:"refresh_token",refresh_token:this.a}):oe(null):oe({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Jh.prototype.A=function(){return{lastLoginAt:this.b,createdAt:this.a}},_($h,Xe),_(Zh,yn),Zh.prototype.sa=function(t){this.ga=t,Ts(this.a,t)},Zh.prototype.ha=function(){return this.ga},Zh.prototype.Aa=function(){return z(this.P)},Zh.prototype.Ha=function(){this.w.b&&(this.w.stop(),this.w.start())},fr(Zh.prototype,"providerId","firebase"),e=Zh.prototype,e.reload=function(){var t=this;return Of(this,df(this).then((function(){return yf(t).then((function(){return cf(t)})).then(lf)})))},e.dc=function(t){return this.G(t).then((function(t){return new Vh(t)}))},e.G=function(t){var e=this;return Of(this,df(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new Ar("internal-error");return t.accessToken!=e.ma&&(sf(e,t.accessToken),e.dispatchEvent(new $h("tokenChanged"))),gf(e,"refreshToken",t.refreshToken),t.accessToken})))},e.zc=function(t){if(t=t.users,!t||!t.length)throw new Ar("internal-error");t=t[0],ff(this,{uid:t.localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=Tf(t),n=0;nthis.o&&(this.o=0),0==this.o&&ul(this)&&af(ul(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.m.push(t),ll(this,this.i.then((function(){e.l||W(e.m,t)&&t(cl(e))})))},e.removeAuthTokenListener=function(t){J(this.m,(function(e){return e==t}))},e.delete=function(){this.l=!0;for(var t=0;tr||r>=jl.length)throw new Ar("internal-error","Argument validator received an unsupported number of arguments.");n=jl[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.M+".";break t}i=null}}if(i)throw new Ar("argument-error",t+" failed: "+i)}e=Al.prototype,e.Ba=function(){var t=this;return this.f?this.f:this.f=Cl(this,oe().then((function(){if(Gi()&&!Di())return _i();throw new Ar("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.v())})).then((function(e){return t.g=e,yu(t.o,ou,{})})).then((function(e){t.a[Ol]=e.recaptchaSiteKey})).s((function(e){throw t.f=null,e})))},e.render=function(){Ll(this);var t=this;return Cl(this,this.Ba().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=oi(e);e=ui("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},e.verify=function(){Ll(this);var t=this;return Cl(this,this.render().then((function(e){return new Zt((function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(Dl(t,r),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}}))})))},e.reset=function(){Ll(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Ll(this),this.B=!0,this.m.c();for(var t=0;t