/*! @license Firebase v3.7.5 Build: 3.7.5-rc.1 Terms: https://firebase.google.com/terms/ */ var firebase = null; (function() { var aa=function(a){var b=0;return function(){return b0){this.H--;var a=this.G;this.G=a.next;a.next=null}else a=this.X();return a};C.prototype.put=function(a){this.da(a);this.H1)));k=k.next)e||(h=k);e&&(c.h==0&&d==1?ta(c,b):(h?(d=h,A(c.j),A(d!=null),d.next==c.v&&(c.v=d),d.next=d.next.next):ua(c),va(c,e,3,b)))}a.o=null}else M(a,3,b)},ra=function(a,b){a.j||a.h!=2&&a.h!=3||wa(a);A(b.m!=null);a.v?a.v.next=b:a.j=b;a.v=b},qa=function(a,b,c,d){b&&(b=H(b,"goog.Promise.then"));c&&(c=H(c,"goog.Promise.then"));var e=na(null,null,null);e.child=new O(function(h, k){e.m=b?function(f){try{var g=b.call(d,f);h(g)}catch(m){k(m)}}:h;e.A=c?function(f){try{var g=c.call(d,f);g===void 0&&f instanceof N?k(f):h(g)}catch(m){k(m)}}:k});e.child.o=a;ra(a,e);return e.child};O.prototype.fa=function(a){A(this.h==1);this.h=0;M(this,2,a)};O.prototype.ga=function(a){A(this.h==1);this.h=0;M(this,3,a)}; var M=function(a,b,c){a.h==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.h=1,oa(c,a.fa,a.ga,a)||(a.V=c,a.h=b,a.o=null,wa(a),b!=3||c instanceof N||xa(a,c)))},oa=function(a,b,c,d){if(a instanceof O)return sa(a,b,c,d),!0;if(a)try{var e=!!a.$goog_Thenable}catch(k){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;e=typeof a;if(e=="object"&&a!=null||e=="function")try{var h=a.then;if(typeof h==="function")return ya(a,h,b,c,d),!0}catch(k){return c.call(d,k),!0}return!1},ya=function(a, b,c,d,e){var h=!1,k=function(g){h||(h=!0,c.call(e,g))},f=function(g){h||(h=!0,d.call(e,g))};try{b.call(a,k,f)}catch(g){f(g)}},wa=function(a){a.J||(a.J=!0,K(a.Y,a))},ua=function(a){var b=null;a.j&&(b=a.j,a.j=b.next,b.next=null);a.j||(a.v=null);b!=null&&A(b.m!=null);return b};O.prototype.Y=function(){for(var a;a=ua(this);)va(this,a,this.h,this.V);this.J=!1}; var va=function(a,b,c,d){if(c==3&&b.A&&!b.B)for(;a&&a.F;a=a.o)a.F=!1;if(b.child)b.child.o=null,za(b,c,d);else try{b.B?b.m.call(b.context):za(b,c,d)}catch(e){Aa.call(null,e)}ma.put(b)},za=function(a,b,c){b==2?a.m.call(a.context,c):a.A&&a.A.call(a.context,c)},xa=function(a,b){a.F=!0;K(function(){a.F&&Aa.call(null,b)})},Aa=ea,N=function(a){w.call(this,a)};u(N,w);N.prototype.name="cancel";O.all=function(a){return new O(function(b,c){var d=a.length,e=[];if(d)for(var h=function(m,t){d--;e[m]=t;d==0&&b(e)},k=function(m){c(m)},f,g=0;g"});c=this.ea+": "+c+" ("+a+").";c=new S(a,c);for(var d in b)b.hasOwnProperty(d)&&d.slice(-1)!=="_"&&(c[d]=b[d]);return c};var Ca=P;function Da(a,b){a=new T(a,b);return a.subscribe.bind(a)}var T=function(a,b){var c=this;this.i=[];this.U=0;this.task=Ca.resolve();this.D=!1;this.M=b;this.task.then(function(){a(c)}).catch(function(d){c.error(d)})};T.prototype.next=function(a){U(this,function(b){b.next(a)})};T.prototype.error=function(a){U(this,function(b){b.error(a)});this.close(a)};T.prototype.complete=function(){U(this,function(a){a.complete()});this.close()}; T.prototype.subscribe=function(a,b,c){var d=this;if(a===void 0&&b===void 0&&c===void 0)throw Error("Missing Observer.");var e=Ea(a)?a:{next:a,error:b,complete:c};e.next===void 0&&(e.next=V);e.error===void 0&&(e.error=V);e.complete===void 0&&(e.complete=V);a=this.ha.bind(this,this.i.length);this.D&&this.task.then(function(){try{d.R?e.error(d.R):e.complete()}catch(h){}});this.i.push(e);return a}; T.prototype.ha=function(a){this.i!==void 0&&this.i[a]!==void 0&&(delete this.i[a],--this.U,this.U===0&&this.M!==void 0&&this.M(this))};var U=function(a,b){if(!a.D)for(var c=0;c>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e}); p("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ua(la(this))}});return a});var ua=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}; p("Promise",function(a){function b(){this.mb=null}function c(g){return g instanceof e?g:new e(function(h){h(g)})}if(a)return a;b.prototype.Fg=function(g){if(this.mb==null){this.mb=[];var h=this;this.Gg(function(){h.Yi()})}this.mb.push(g)};var d=ea.setTimeout;b.prototype.Gg=function(g){d(g,0)};b.prototype.Yi=function(){for(;this.mb&&this.mb.length;){var g=this.mb;this.mb=[];for(var h=0;h2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Aa:Ba;return w.apply(null,arguments)},Ca=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments); return a.apply(this,d)}},y=function(a,b){function c(){}c.prototype=b.prototype;a.Kc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.kl=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h1?b:"0"+b}).join("")};var Oa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Pa=/&/g,Qa=//g,Sa=/"/g,Ta=/'/g,Ua=/\x00/g,Va=/[\x00&<>"']/;function A(a,b){return a.indexOf(b)!=-1};var Wa=xa(610401301,!1),Xa=xa(1331761403,!0);function Ya(){var a=u.navigator;return a&&(a=a.userAgent)?a:""}var Za,$a=u.navigator;Za=$a?$a.userAgentData||null:null;function B(a){return A(Ya(),a)};var ab=Array.prototype.indexOf?function(a,b){z(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c=0;--d)d in c&&b.call(void 0,c[d],d,a)} var cb=Array.prototype.filter?function(a,b){z(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=typeof a==="string"?a.split(""):a,g=0;g=0}function gb(a,b){b=ab(a,b);var c;(c=b>=0)&&hb(a,b);return c}function hb(a,b){z(a.length!=null);return Array.prototype.splice.call(a,b,1).length==1}function ib(a,b){var c=0;bb(a,function(d,e){b.call(void 0,d,e,a)&&hb(a,e)&&c++})} function jb(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d0?!1:B("Opera"),mb=Wa&&Za&&Za.brands.length>0?!1:B("Trident")||B("MSIE"),nb=B("Edge"),ob=B("Gecko")&&!(A(Ya().toLowerCase(),"webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),pb=A(Ya().toLowerCase(),"webkit")&&!B("Edge"),qb=function(){var a=u.document;return a?a.documentMode:void 0},rb; a:{var sb="",tb=function(){var a=Ya();if(ob)return/rv:([^\);]+)(\)|;)/.exec(a);if(nb)return/Edge\/([\d\.]+)/.exec(a);if(mb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(pb)return/WebKit\/(\S+)/.exec(a);if(lb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();tb&&(sb=tb?tb[1]:"");if(mb){var ub=qb();if(ub!=null&&ub>parseFloat(sb)){rb=String(ub);break a}}rb=sb}var vb=rb,wb;if(u.document&&mb){var xb=qb();wb=xb?xb:parseInt(vb,10)||void 0}else wb=void 0;var yb=wb;var zb=null;function Ab(a){var b=[];Bb(a,function(c){b.push(c)});return b}function Bb(a,b){function c(k){for(;d>4);g!=64&&(b(f<<4&240|g>>2),h!=64&&b(g<<6&192|h))}} function Cb(){if(!zb){zb={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++)for(var d=a.concat(b[c].split("")),e=0;e>14&1023||536870912,a!==536870912&&d.push("pivot: "+a));return d.join(",")};var Kb=typeof Symbol!="undefined"&&typeof Symbol.hasInstance!="undefined";Object.freeze({});var Lb=function(){throw Error("please construct maps as mutable then call toImmutable");};if(Kb){var Mb=function(){throw Error("Cannot perform instanceof checks on ImmutableMap: please use isImmutableMap or isMutableMap to assert on the mutability of a map. See go/jspb-api-gotchas#immutable-classes for more information");},Nb={};Object.defineProperties(Lb,(Nb[Symbol.hasInstance]={value:Mb,configurable:!1,writable:!1,enumerable:!1},Nb));z(Lb[Symbol.hasInstance]===Mb,"defineProperties did not work: was it monkey-patched?")};if(typeof Proxy!=="undefined"){var Pb=Ob;new Proxy({},{getPrototypeOf:Pb,setPrototypeOf:Pb,isExtensible:Pb,preventExtensions:Pb,getOwnPropertyDescriptor:Pb,defineProperty:Pb,has:Pb,get:Pb,set:Pb,deleteProperty:Pb,apply:Pb,construct:Pb})}function Ob(a,b){if(b===Gb)return!0;throw Error("this array or object is owned by JSPB and should not be reused, did you mean to copy it with copyJspbArray? See go/jspb-api-gotchas#construct_from_array");};z(!0);/* SPDX-License-Identifier: Apache-2.0 */ (function(){}).prototype=Object.create(null);/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ var Qb={};function Rb(){if(Qb!==Qb)throw Error("Bad secret");};var Sb=globalThis.trustedTypes,Tb;function Ub(){var a=null;if(!Sb)return a;try{var b=function(c){return c};a=Sb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a}function Vb(){Tb===void 0&&(Tb=Ub());return Tb};var Wb=function(a){Rb();this.Th=a};Wb.prototype.toString=function(){return this.Th+""};function Xb(a){var b=Vb();a=b?b.createScriptURL(a):a;return new Wb(a)}function Yb(a){if(a instanceof Wb)return a.Th;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var Zb=pa([""]),$b=oa(["\x00"],["\\0"]),ac=oa(["\n"],["\\n"]),bc=oa(["\x00"],["\\u0000"]),cc=pa([""]),dc=oa(["\x00"],["\\0"]),ec=oa(["\n"],["\\n"]),fc=oa(["\x00"],["\\u0000"]); function hc(a,b){if(!Array.isArray(a)||!Array.isArray(a.raw)||a.length!==a.raw.length||!ic&&a===a.raw||!(ic&&!jc||kc(a))||b+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");} function kc(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function lc(a){return a.toString().indexOf("`")===-1}var ic=lc(function(a){return a(Zb)})||lc(function(a){return a($b)})||lc(function(a){return a(ac)})||lc(function(a){return a(bc)}),jc=kc(cc)&&kc(dc)&&kc(ec)&&kc(fc);var mc=function(a){Rb();this.Vh=a};mc.prototype.toString=function(){return this.Vh};new mc("about:blank");var nc=new mc("about:invalid#zClosurez");function oc(a){if(a instanceof mc)return a.Vh;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};var pc=function(a){this.Ej=a};function qc(a){return new pc(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var rc=[qc("data"),qc("http"),qc("https"),qc("mailto"),qc("ftp"),new pc(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function sc(a){var b=b===void 0?rc:b;a:if(b=b===void 0?rc:b,a instanceof mc)b=a;else{for(var c=0;c=e.value}if(d){b=b||Ic;d=Vc(Wc(),a.getName());typeof c==="function"&&(c=c());Oc||(Oc=new Nc);e=Oc;a=a.getName();if(e.Ud>0){var f=(e.Tg+1)%e.Ud;e.Tg=f;e.xh?(e=e.Ig[f],e.reset(b,c,a),a=e):(e.xh=f==e.Ud-1,a=e.Ig[f]=new Pc(b,c,a))}else a=new Pc(b,c,a);Sc(d,a)}},Yc=function(a,b){a&&Xc(a,Mc,b)};function Zc(a){if(typeof a!=="string"||a.trim()==="")throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions");};var $c=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};var ad="src srcdoc codebase data href rel action formaction sandbox icon".split(" ");function bd(a){if(a instanceof yc)return a;a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return zc(a)};function cd(a){var b=ta.apply(1,arguments);hc(a,b.length);if(b.length===0)return Xb(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters."); if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format."); c=a[0];for(d=0;d=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};function od(a){this.ia=this.Zb=this.va="";this.Ua=null;this.nc=this.fb="";this.Ca=this.Cj=!1;if(a instanceof od){this.Ca=a.Ca;pd(this,a.va);var b=a.Zb;qd(this);this.Zb=b;rd(this,a.ia);sd(this,a.Ua);td(this,a.fb);ud(this,a.za.clone());vd(this,a.nc)}else a&&(b=String(a).match(md))?(this.Ca=!1,pd(this,b[1]||"",!0),a=b[2]||"",qd(this),this.Zb=wd(a),rd(this,b[3]||"",!0),sd(this,b[4]),td(this,b[5]||"",!0),ud(this,b[6]||"",!0),vd(this,b[7]||"",!0)):(this.Ca=!1,this.za=new xd(null,this.Ca))} od.prototype.toString=function(){var a=[],b=this.va;b&&a.push(yd(b,zd,!0),":");var c=this.ia;if(c||b=="file")a.push("//"),(b=this.Zb)&&a.push(yd(b,zd,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Ua,c!=null&&a.push(":",String(c));if(c=this.fb)this.ia&&c.charAt(0)!="/"&&a.push("/"),a.push(yd(c,c.charAt(0)=="/"?Ad:Bd,!0));(c=this.za.toString())&&a.push("?",c);(c=this.nc)&&a.push("#",yd(c,Cd));return a.join("")}; od.prototype.resolve=function(a){var b=this.clone(),c=!!a.va;c?pd(b,a.va):c=!!a.Zb;if(c){var d=a.Zb;qd(b);b.Zb=d}else c=!!a.ia;c?rd(b,a.ia):c=a.Ua!=null;d=a.fb;if(c)sd(b,a.Ua);else if(c=!!a.fb){if(d.charAt(0)!="/")if(this.ia&&!this.fb)d="/"+d;else{var e=b.fb.lastIndexOf("/");e!=-1&&(d=b.fb.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(A(e,"./")||A(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g 1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?td(b,d):c=a.za.toString()!=="";c?ud(b,a.za.clone()):c=!!a.nc;c&&vd(b,a.nc);return b};od.prototype.clone=function(){return new od(this)}; var pd=function(a,b,c){qd(a);a.va=c?wd(b,!0):b;a.va&&(a.va=a.va.replace(/:$/,""))},rd=function(a,b,c){qd(a);a.ia=c?wd(b,!0):b},sd=function(a,b){qd(a);if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Ua=b}else a.Ua=null},td=function(a,b,c){qd(a);a.fb=c?wd(b,!0):b;return a},ud=function(a,b,c){qd(a);b instanceof xd?(a.za=b,a.za.sg(a.Ca)):(c||(b=yd(b,Dd)),a.za=new xd(b,a.Ca));return a},Ed=function(a){return ud(a,"")};od.prototype.getQuery=function(){return this.za.toString()}; var D=function(a,b,c){qd(a);a.za.set(b,c)},E=function(a,b){return a.za.get(b)},vd=function(a,b,c){qd(a);a.nc=c?wd(b):b;return a};od.prototype.removeParameter=function(a){qd(this);this.za.remove(a);return this};var qd=function(a){if(a.Cj)throw Error("Tried to modify a read-only Uri");};od.prototype.sg=function(a){this.Ca=a;this.za&&this.za.sg(a)}; var F=function(a){return a instanceof od?a.clone():new od(a)},Fd=function(a,b,c,d,e,f){var g=new od(null);a&&pd(g,a);b&&rd(g,b);c&&sd(g,c);d&&td(g,d);e&&ud(g,e);f&&vd(g,f);return g},wd=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},yd=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Gd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Gd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},zd=/[#\/\?@]/g, Bd=/[#\?:]/g,Ad=/[#\?]/g,Dd=/[#\?@]/g,Cd=/#/g,xd=function(a,b){this.ha=this.O=null;this.wa=a||null;this.Ca=!!b},Hd=function(a){a.O||(a.O=new Map,a.ha=0,a.wa&&nd(a.wa,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},Jd=function(a){var b=kd(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new xd(null);a=jd(a);for(var d=0;d0?String(a[0]):b};var Id=function(a,b,c){a.remove(b);c.length>0&&(a.wa=null,a.O.set(a.xa(b),jb(c)),a.ha=Ja(a.ha)+c.length)};l=xd.prototype; l.toString=function(){if(this.wa)return this.wa;if(!this.O)return"";for(var a=[],b=Array.from(this.O.keys()),c=0;c":f.push(n);c.push(b(f.join(""), g));e=0;f=[];h=g=null;break;default:f.push(n)}break;default:throw Error();}e===1&&k>=d&&(k=h+1,c.push("<"),e=0,f=[],h=g=null)}return c.join("")} var G=function(a){Od(a)?(a=Wd(a.content),a=String(a).replace(Zd,Rd)):a=String(a).replace(Qd,Rd);return a},$d=function(a,b,c,d){a||(a=c instanceof Function?c.displayName||c.name||"unknown type name":c instanceof Object?c.constructor.displayName||c.constructor.name||Object.prototype.toString.call(c):c===null?"null":typeof c,Ia("expected @param "+b+" of type "+d+", but got "+a+"."),Ia("parameter type error. Enable DEBUG to see details."));return c},ae={},be=function(){z(ae===ae,"found an incorrect call marker, was an internal function called from the top level?")}, Od=function(a){var b=a!=null&&a.Pg===Kd;b&&Md&&z(a instanceof Md);return b},ce={"\x00":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"},Rd=function(a){return ce[a]},Qd=/[\x00\x22\x26\x27\x3c\x3e]/g,Zd=/[\x00\x22\x27\x3c\x3e]/g,Vd=/2&&le(a,d,b,2);return d},le=function(a,b,c,d){function e(h){h&&b.appendChild(typeof h==="string"?a.createTextNode(h):h)}for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(v(f)){var g=typeof f.item== "function"||typeof f.item=="string";break a}if(typeof f==="function"){g=typeof f.item=="function";break a}}g=!1}C(g?jb(f):f,e)}}},ke=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},me=function(a,b){z(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)},ne=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},oe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},pe=function(){var a= document.body;if(a.lastElementChild!==void 0)a=a.lastElementChild;else for(a=a.lastChild;a&&a.nodeType!=1;)a=a.previousSibling;return a},qe=function(a){z(a,"Node cannot be null or undefined.");return a.nodeType==9?a:a.ownerDocument||a.document},re=function(a,b){z(a!=null,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(z(a.lastChild)); a.firstChild.data=String(b)}else{ne(a);var c=qe(a);a.appendChild(c.createTextNode(String(b)))}},se={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},te={IMG:" ",BR:"\n"},we=function(a){var b=[];ue(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a},ue=function(a,b,c){if(!(a.nodeName in se))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in te)b.push(te[a.nodeName]);else for(a=a.firstChild;a;)ue(a,b,c),a=a.nextSibling},xe=function(a){this.Ra=a||u.document||document};xe.prototype.getElementsByTagName=function(a,b){return(b||this.Ra).getElementsByTagName(String(a))};var ye=function(a,b){a=a.Ra;return(b=b&&b!="*"?String(b).toUpperCase():"")?a.querySelectorAll(b+""):a.getElementsByTagName("*")};l=xe.prototype;l.Rg=function(a,b,c){return ie(this.Ra,arguments)};l.createElement=function(a){return ke(this.Ra,a)};l.createTextNode=function(a){return this.Ra.createTextNode(String(a))}; l.getWindow=function(){return this.Ra.defaultView};l.appendChild=me;l.append=function(a,b){le(qe(a),a,arguments,1)};l.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; l.removeNode=oe;l.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var ze=Symbol("templateFragment"),Ae=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,Be={};Vc(Wc(),"api_idom");var Ce=function(a,b){return Td["fireauth.oauthhelper.ui.soy.pendingScreen"]?Td["fireauth.oauthhelper.ui.soy.pendingScreen"](a,b):Pd('
')},De=function(a,b){a=a||{};a=a.appName;be();Td["fireauth.oauthhelper.ui.soy.continueScreen"]?b=Td["fireauth.oauthhelper.ui.soy.continueScreen"]({appName:a},b):(a=$d(a==null||typeof a=== "string","appName",a,"null|string|undefined"),b='
"));return b},Ee=function(a,b){a=a.errorMessage;be();Td["fireauth.oauthhelper.ui.soy.errorScreen"]?b=Td["fireauth.oauthhelper.ui.soy.errorScreen"]({errorMessage:a}, b):(b=$d(typeof a==="string","errorMessage",a,"string"),b=Pd('
'+Sd(b)+"
"));return b},Fe=function(a,b){if(Td["fireauth.oauthhelper.ui.soy.appVerificationScreen"])return Td["fireauth.oauthhelper.ui.soy.appVerificationScreen"](a,b);a='

Verifying you\'re not a robot...

')};function Ge(){this.blockSize=-1};function He(a,b){this.blockSize=-1;this.blockSize=64;this.Wd=u.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.Ve=this.sc=0;this.I=[];this.Mj=a;this.sh=b;this.Fk=u.Int32Array?new Int32Array(64):Array(64);Ie===void 0&&(Ie=u.Int32Array?new Int32Array(Je):Je);this.reset()}y(He,Ge);for(var Ke=[],Le=0;Le<63;Le++)Ke[Le]=0;var Me=[].concat(128,Ke);He.prototype.reset=function(){this.Ve=this.sc=0;this.I=u.Int32Array?new Int32Array(this.sh):jb(this.sh)}; var Ne=function(a){var b=a.Wd;z(b.length==a.blockSize);for(var c=a.Fk,d=0,e=0;e>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.I[0]|0;d=a.I[1]|0;e=a.I[2]|0;for(var f=a.I[3]|0,g=a.I[4]|0,h=a.I[5]|0,k=a.I[6]|0,n=a.I[7]|0,m=0;m<64;m++){var r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,t=(n+((g>>>6|g<<26)^(g>>>11| g<<21)^(g>>>25|g<<7))|0)+(((g&h^~g&k)+(Ie[m]|0)|0)+(c[m]|0)|0)|0;n=k;k=h;h=g;g=f+t|0;f=e;e=d;d=b;b=t+r|0}a.I[0]=a.I[0]+b|0;a.I[1]=a.I[1]+d|0;a.I[2]=a.I[2]+e|0;a.I[3]=a.I[3]+f|0;a.I[4]=a.I[4]+g|0;a.I[5]=a.I[5]+h|0;a.I[6]=a.I[6]+k|0;a.I[7]=a.I[7]+n|0}; He.prototype.update=function(a,b){b===void 0&&(b=a.length);var c=0,d=this.sc;if(typeof a==="string")for(;c=e&&e==(e|0)))throw Error("message must be a byte array");this.Wd[d++]=e;d==this.blockSize&&(Ne(this),d=0)}else throw Error("message must be string or array");this.sc=d;this.Ve+=b}; He.prototype.digest=function(){var a=[],b=this.Ve*8;this.sc<56?this.update(Me,56-this.sc):this.update(Me,this.blockSize-(this.sc-56));for(var c=63;c>=56;c--)this.Wd[c]=b&255,b/=256;Ne(this);for(c=b=0;c=0;d-=8)a[b++]=this.I[c]>>d&255;return a}; var Je=[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],Ie;function Oe(){He.call(this,8,Pe)}y(Oe,He);var Pe=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Qe(){this.ad=this.ad;this.ze=this.ze}Qe.prototype.ad=!1;Qe.prototype.isDisposed=function(){return this.ad};Qe.prototype.dispose=function(){this.ad||(this.ad=!0,this.Zc())};Qe.prototype[Symbol.dispose]=function(){this.dispose()};Qe.prototype.Zc=function(){if(this.ze)for(;this.ze.length;)this.ze.shift()()};var H=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.ud=!1};H.prototype.stopPropagation=function(){this.ud=!0};H.prototype.preventDefault=function(){this.defaultPrevented=!0};var Re=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};u.addEventListener("test",c,b);u.removeEventListener("test",c,b)}catch(d){}return a}();function Se(a,b){H.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.ra=null;a&&this.init(a,b)}y(Se,H); Se.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=pb||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY= pb||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp= a.timeStamp;this.ra=a;a.defaultPrevented&&Se.Kc.preventDefault.call(this)};Se.prototype.stopPropagation=function(){Se.Kc.stopPropagation.call(this);this.ra.stopPropagation?this.ra.stopPropagation():this.ra.cancelBubble=!0};Se.prototype.preventDefault=function(){Se.Kc.preventDefault.call(this);var a=this.ra;a.preventDefault?a.preventDefault():a.returnValue=!1};Se.prototype.dj=function(){return this.ra};var Te="closure_listenable_"+(Math.random()*1E6|0);var Ue=0;function Ve(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Ue;this.zd=this.Sd=!1}var We=function(a){a.zd=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};function Xe(a){this.src=a;this.ka={};this.Gd=0}Xe.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.ka[f];a||(a=this.ka[f]=[],this.Gd++);var g=Ye(a,b,d,e);g>-1?(b=a[g],c||(b.Sd=!1)):(b=new Ve(b,this.src,f,!!d,e),b.Sd=c,a.push(b));return b};Xe.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ka))return!1;var e=this.ka[a];b=Ye(e,b,c,d);return b>-1?(We(e[b]),hb(e,b),e.length==0&&(delete this.ka[a],this.Gd--),!0):!1}; var Ze=function(a,b){var c=b.type;c in a.ka&&gb(a.ka[c],b)&&(We(b),a.ka[c].length==0&&(delete a.ka[c],a.Gd--))};Xe.prototype.Gf=function(a,b,c,d){a=this.ka[a.toString()];var e=-1;a&&(e=Ye(a,b,c,d));return e>-1?a[e]:null};Xe.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return ed(this.ka,function(f){for(var g=0;g>>0),ef=function(a){z(a,"Listener can not be null.");if(typeof a==="function")return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[of]|| (a[of]=function(b){return a.handleEvent(b)});return a[of]};function pf(){Qe.call(this);this.Ea=new Xe(this);this.Ki=this;this.ag=null}y(pf,Qe);pf.prototype[Te]=!0;l=pf.prototype;l.addEventListener=function(a,b,c,d){df(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){mf(this,a,b,c,d)}; l.dispatchEvent=function(a){qf(this);var b=this.ag;if(b){var c=[];for(var d=1;b;b=b.ag)c.push(b),z(++d<1E3,"infinite loop")}b=this.Ki;d=a.type||a;if(typeof a==="string")a=new H(a,b);else if(a instanceof H)a.target=a.target||b;else{var e=a;a=new H(d,b);id(a,e)}e=!0;var f;if(c)for(f=c.length-1;!a.ud&&f>=0;f--){var g=a.currentTarget=c[f];e=rf(g,d,!0,a)&&e}a.ud||(g=a.currentTarget=b,e=rf(g,d,!0,a)&&e,a.ud||(e=rf(g,d,!1,a)&&e));if(c)for(f=0;!a.ud&&f=1&&this.Sa&&this.readyState!=4&&(this.Sa=!1,Bf(this));this.readyState=0}; zf.prototype.nj=function(a){if(this.Sa&&(this.be=a,this.Hc||(this.status=this.be.status,this.statusText=this.be.statusText,this.Hc=a.headers,this.readyState=2,Af(this)),this.Sa&&(this.readyState=3,Af(this),this.Sa)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.lj.bind(this),this.he.bind(this));else if(a.body&&u.ReadableStream){this.Wc=a.body.getReader();if(this.Wb||this.Jc){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" or "streamTextChunks" mode responses.'); this.response=[]}else this.response=this.responseText="";this.Wb||(this.yg=new TextDecoder);Cf(this)}else a.text().then(this.mj.bind(this),this.he.bind(this))};var Cf=function(a){a.Wc.read().then(a.hj.bind(a)).catch(a.he.bind(a))}; zf.prototype.hj=function(a){if(this.Sa){var b=a.value;if(this.Wb)a.value&&this.response.push(b||new Uint8Array(0));else if(b=b?this.yg.decode(b,{stream:!a.done}):"")this.Jc?this.response.push(b):this.response=this.responseText+=b;a.done?Bf(this):Af(this);this.readyState==3&&Cf(this)}};zf.prototype.mj=function(a){this.Sa&&(this.response=this.responseText=a,Bf(this))};zf.prototype.lj=function(a){this.Sa&&(this.response=a,Bf(this))}; zf.prototype.he=function(){var a=this.S;a&&Xc(a,Kc,"Failed to fetch url "+this.Yb);this.Sa&&Bf(this)};var Bf=function(a){a.readyState=4;a.be=null;a.Wc=null;a.yg=null;Af(a)};l=zf.prototype;l.setRequestHeader=function(a,b){this.mg.append(a,b)};l.getResponseHeader=function(a){return this.Hc?this.Hc.get(a.toLowerCase())||"":((a=this.S)&&Xc(a,Kc,"Attempting to get response header but no headers have been received for url: "+this.Yb),"")}; l.getAllResponseHeaders=function(){if(!this.Hc){var a=this.S;a&&Xc(a,Kc,"Attempting to get all response headers but no headers have been received for url: "+this.Yb);return""}a=[];for(var b=this.Hc.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};l.qg=function(a){this.Fb=a};l.ii=function(a){this.ec=a};var Af=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)}; Object.defineProperty(zf.prototype,"withCredentials",{get:function(){return this.Fb==="include"},set:function(a){this.qg(a?"include":"same-origin")}});var Df=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Ef=function(a,b){this.Hj=100;this.Ti=a;this.ak=b;this.xe=0;this.ie=null};Ef.prototype.get=function(){if(this.xe>0){this.xe--;var a=this.ie;this.ie=a.next;a.next=null}else a=this.Ti();return a};Ef.prototype.put=function(a){this.ak(a);this.xe1)));g=g.next)e||(f=g);e&&(c.T==0&&d==1?hg(c,b):(f?(d=f,z(c.ab),z(d!=null),d.next==c.fc&&(c.fc=d),d.next=d.next.next):ig(c),jg(c,e,3,b)))}a.ta=null}else Vf(a,3,b)},fg=function(a,b){a.ab||a.T!=2&&a.T!=3||kg(a);z(b.Qb!=null);a.fc?a.fc.next=b:a.ab=b;a.fc=b},eg=function(a,b,c,d){b&&(b=Kf(b,"goog.Promise.then"));c&&(c=Kf(c,"goog.Promise.then"));var e=Zf(null,null,null);e.child= new I(function(f,g){e.Qb=b?function(h){try{var k=b.call(d,h);f(k)}catch(n){g(n)}}:f;e.vc=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Wf?g(h):f(k)}catch(n){g(n)}}:g});e.child.ta=a;fg(a,e);return e.child};I.prototype.Ak=function(a){z(this.T==1);this.T=0;Vf(this,2,a)};I.prototype.Bk=function(a){z(this.T==1);this.T=0;Vf(this,3,a)}; var Vf=function(a,b,c){a.T==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.T=1,$f(c,a.Ak,a.Bk,a)||(a.na=c,a.T=b,a.ta=null,kg(a),b!=3||c instanceof Wf||lg(a,c)))},$f=function(a,b,c,d){if(a instanceof I)return gg(a,b,c,d),!0;if(Uf(a))return a.then(b,c,d),!0;if(v(a))try{var e=a.then;if(typeof e==="function")return mg(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},mg=function(a,b,c,d,e){var f=!1,g=function(k){f||(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))}; try{b.call(a,g,h)}catch(k){h(k)}},kg=function(a){a.Bf||(a.Bf=!0,Qf(a.Zi,a))},ig=function(a){var b=null;a.ab&&(b=a.ab,a.ab=b.next,b.next=null);a.ab||(a.fc=null);b!=null&&z(b.Qb!=null);return b};I.prototype.Zi=function(){for(var a;a=ig(this);)jg(this,a,this.T,this.na);this.Bf=!1}; var jg=function(a,b,c,d){if(c==3&&b.vc&&!b.Rc)for(;a&&a.ge;a=a.ta)a.ge=!1;if(b.child)b.child.ta=null,ng(b,c,d);else try{b.Rc?b.Qb.call(b.context):ng(b,c,d)}catch(e){og.call(null,e)}Yf.put(b)},ng=function(a,b,c){b==2?a.Qb.call(a.context,c):a.vc&&a.vc.call(a.context,c)},lg=function(a,b){a.ge=!0;Qf(function(){a.ge&&og.call(null,b)})},og=Ma,Wf=function(a){Da.call(this,a)};y(Wf,Da);Wf.prototype.name="cancel";/* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. Copyright The Closure Library Authors. SPDX-License-Identifier: MIT */ function pg(a,b){this.Oe=[];this.Jh=a;this.Xg=b||null;this.gd=this.mc=!1;this.na=void 0;this.vg=this.Hg=this.kf=!1;this.We=0;this.ta=null;this.lf=0}pg.prototype.cancel=function(a){if(this.mc)this.na instanceof pg&&this.na.cancel();else{if(this.ta){var b=this.ta;delete this.ta;a?b.cancel(a):(b.lf--,b.lf<=0&&b.cancel())}this.Jh?this.Jh.call(this.Xg,this):this.vg=!0;this.mc||qg(this,new rg(this))}};pg.prototype.Qg=function(a,b){this.kf=!1;sg(this,a,b)}; var sg=function(a,b,c){a.mc=!0;a.na=c;a.gd=!b;tg(a)},vg=function(a){if(a.mc){if(!a.vg)throw new ug(a);a.vg=!1}};pg.prototype.callback=function(a){vg(this);wg(a);sg(this,!0,a)};var qg=function(a,b){vg(a);wg(b);sg(a,!1,b)},wg=function(a){z(!(a instanceof pg),"An execution sequence may not be initiated with a blocking Deferred.")};pg.prototype.addCallback=function(a,b){return xg(this,a,null,b)};var yg=function(a,b){xg(a,null,b)}; pg.prototype.finally=function(a){var b=this;return zg(new Promise(function(c,d){xg(b,function(e){a();c(e)},function(e){a();d(e)})}))};var xg=function(a,b,c,d){z(!a.Hg,"Blocking Deferreds can not be re-used");var e=a.mc;e||(b===c?b=c=Df(b):(b=Df(b),c=Df(c)));a.Oe.push([b,c,d]);e&&tg(a);return a};pg.prototype.then=function(a,b,c){var d,e,f=new I(function(g,h){e=g;d=h});xg(this,e,function(g){g instanceof rg?f.cancel():d(g);return Ag},this);return f.then(a,b,c)};pg.prototype.$goog_Thenable=!0; var Bg=function(a){return eb(a.Oe,function(b){return typeof b[1]==="function"})},Ag={},tg=function(a){if(a.We&&a.mc&&Bg(a)){var b=a.We,c=Cg[b];c&&(u.clearTimeout(c.Fa),delete Cg[b]);a.We=0}a.ta&&(a.ta.lf--,delete a.ta);b=a.na;for(var d=c=!1;a.Oe.length&&!a.kf;){var e=a.Oe.shift(),f=e[0],g=e[1];e=e[2];if(f=a.gd?g:f)try{var h=f.call(e||a.Xg,b);h===Ag&&(h=void 0);h!==void 0&&(a.gd=a.gd&&(h==b||h instanceof Error),a.na=b=h);if(Uf(b)||typeof u.Promise==="function"&&b instanceof u.Promise)d=!0,a.kf=!0}catch(k){b= k,a.gd=!0,Bg(a)||(c=!0)}}a.na=b;d&&(h=w(a.Qg,a,!0),d=w(a.Qg,a,!1),b instanceof pg?(xg(b,h,d),b.Hg=!0):b.then(h,d));c&&(b=new Dg(b),Cg[b.Fa]=b,a.We=b.Fa)},zg=function(a){var b=new pg;a.then(function(c){b.callback(c)},function(c){qg(b,c)});return b},ug=function(){Da.call(this)};y(ug,Da);ug.prototype.message="Deferred has already fired";ug.prototype.name="AlreadyCalledError";var rg=function(){Da.call(this)};y(rg,Da);rg.prototype.message="Deferred was canceled";rg.prototype.name="CanceledError"; var Dg=function(a){this.Fa=u.setTimeout(w(this.zk,this),0);this.Z=a};Dg.prototype.zk=function(){z(Cg[this.Fa],"Cannot throw an error that is not scheduled.");delete Cg[this.Fa];throw this.Z;};var Cg={};var Ig=function(a){var b={},c=b.document||document,d=Yb(a).toString(),e=(new xe(c)).createElement("SCRIPT"),f={bi:e,Te:void 0},g=new pg(Eg,f),h=null,k=b.timeout!=null?b.timeout:5E3;k>0&&(h=window.setTimeout(function(){Fg(e,!0);qg(g,new Gg(1,"Timeout reached for loading script "+d))},k),f.Te=h);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Fg(e,b.ll||!1,h),g.callback(null))};e.onerror=function(){Fg(e,!0,h);qg(g,new Gg(0,"Error while loading script "+ d))};f=b.attributes||{};id(f,{type:"text/javascript",charset:"UTF-8"});he(e,f);Dc(e,a);Hg(c).appendChild(e);return g},Hg=function(a){var b=(a||document).getElementsByTagName("HEAD");return b&&b.length!==0?b[0]:a.documentElement},Eg=function(){if(this&&this.bi){var a=this.bi;a&&a.tagName=="SCRIPT"&&Fg(a,!0,this.Te)}},Fg=function(a,b,c){c!=null&&u.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){oe(a)},0)},Gg=function(a,b){var c= "Jsloader error (code #"+a+")";b&&(c+=": "+b);Da.call(this,c);this.code=a};y(Gg,Da);var L=function(a){pf.call(this);this.headers=new Map;this.Gi=a||null;this.kb=!1;this.m=null;this.md=this.Ch=this.re="";this.Mb=this.Mf=this.ne=this.zf=!1;this.Lc=0;this.Xb=null;this.Ie="";this.Vj=this.Fi=!1;this.ff=this.zg=null};y(L,pf);L.prototype.S=Vc(Wc(),"goog.net.XhrIo").Eh;var Jg=/^https?$/i,Kg=["POST","PUT"];l=L.prototype;l.setTrustToken=function(a){this.zg=a};l.setAttributionReporting=function(a){this.ff=a}; l.send=function(a,b,c,d){if(this.m)throw Error("[goog.net.XhrIo] Object is active with another request="+this.re+"; newUri="+a);if(typeof b==="string")var e=b;else if(b){var f=b;e=f.method;c!=null||(c=f.body);d!=null||(d=f.headers)}e=e?e.toUpperCase():"GET";this.re=a;this.md="";this.Ch=e;this.zf=!1;this.kb=!0;this.m=this.Gi?this.Gi.Vc(f):tf.Vc();this.m.onreadystatechange=Df(w(this.Qh,this));this.Vj&&"onprogress"in this.m&&(this.m.onprogress=Df(w(function(x){this.Ph(x,!0)},this)),this.m.upload&&(this.m.upload.onprogress= Df(w(this.Ph,this))));try{Yc(this.S,Lg(this,"Opening Xhr")),this.Mf=!0,this.m.open(e,String(a),!0),this.Mf=!1}catch(x){Yc(this.S,Lg(this,"Error opening Xhr: "+x.message));this.Z(5,x);return}a=c||"";b=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var g in d)b.set(g,d[g]);else if(typeof d.keys==="function"&&typeof d.get==="function"){g=ma(d.keys());c=g.next();var h;try{for(;!c.done;c=g.next()){var k=c.value;b.set(k,d.get(k))}}finally{c&&!c.done&&(h=g.return)&&h.call(g)}}else throw Error("Unknown input type for opt_headers: "+ String(d));d=Array.from(b.keys()).find(function(x){return"content-type"==x.toLowerCase()});h=u.FormData&&a instanceof u.FormData;!fb(Kg,e)||d||h||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e=ma(b);d=e.next();var n;try{for(;!d.done;d=e.next()){var m=ma(d.value),r=m.next().value,t=m.next().value;this.m.setRequestHeader(r,t)}}finally{d&&!d.done&&(n=e.return)&&n.call(e)}this.Ie&&(this.m.responseType=this.Ie);"withCredentials"in this.m&&this.m.withCredentials!==this.Fi&&(this.m.withCredentials= this.Fi);if("setTrustToken"in this.m&&this.zg)try{this.m.setTrustToken(this.zg)}catch(x){Yc(this.S,Lg(this,"Error SetTrustToken: "+x.message))}if("setAttributionReporting"in this.m&&this.ff)try{this.m.setAttributionReporting(this.ff)}catch(x){Yc(this.S,Lg(this,"Error SetAttributionReporting: "+x.message))}try{this.Xb&&(clearTimeout(this.Xb),this.Xb=null),this.Lc>0&&(Yc(this.S,Lg(this,"Will abort after "+this.Lc+"ms if incomplete")),this.Xb=setTimeout(this.Te.bind(this),this.Lc)),Yc(this.S,Lg(this, "Sending request")),this.ne=!0,this.m.send(a),this.ne=!1}catch(x){Yc(this.S,Lg(this,"Send error: "+x.message)),this.Z(5,x)}};l.Te=function(){typeof wa!="undefined"&&this.m&&(this.md="Timed out after "+this.Lc+"ms, aborting",Yc(this.S,Lg(this,this.md)),this.dispatchEvent("timeout"),this.abort(8))};l.Z=function(a,b){this.kb=!1;this.m&&(this.Mb=!0,this.m.abort(),this.Mb=!1);this.md=b;Mg(this);Ng(this)};var Mg=function(a){a.zf||(a.zf=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; L.prototype.abort=function(){this.m&&this.kb&&(Yc(this.S,Lg(this,"Aborting")),this.kb=!1,this.Mb=!0,this.m.abort(),this.Mb=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ng(this))};L.prototype.Zc=function(){this.m&&(this.kb&&(this.kb=!1,this.Mb=!0,this.m.abort(),this.Mb=!1),Ng(this,!0));L.Kc.Zc.call(this)};L.prototype.Qh=function(){this.isDisposed()||(this.Mf||this.ne||this.Mb?Og(this):this.Pj())};L.prototype.Pj=function(){Og(this)}; var Og=function(a){if(a.kb&&typeof wa!="undefined")if(a.ne&&Pg(a)==4)setTimeout(a.Qh.bind(a),0);else if(a.dispatchEvent("readystatechange"),Pg(a)==4){Yc(a.S,Lg(a,"Request complete"));a.kb=!1;try{var b=Qg(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=b===0){var f=String(a.re).match(md)[1]||null;!f&&u.self&&u.self.location&&(f=u.self.location.protocol.slice(0,-1));e=!Jg.test(f?f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"), a.dispatchEvent("success");else{try{var g=Pg(a)>2?a.m.statusText:""}catch(h){Yc(a.S,"Can not get status: "+h.message),g=""}a.md=g+" ["+Qg(a)+"]";Mg(a)}}finally{Ng(a)}}};L.prototype.Ph=function(a,b){z(a.type==="progress","goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(Rg(a,"progress"));this.dispatchEvent(Rg(a,b?"downloadprogress":"uploadprogress"))}; var Rg=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Ng=function(a,b){if(a.m){a.Xb&&(clearTimeout(a.Xb),a.Xb=null);var c=a.m;a.m=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){(a=a.S)&&Xc(a,Jc,"Problem encountered resetting onreadystatechange: "+d.message)}}};L.prototype.isActive=function(){return!!this.m}; var Pg=function(a){return a.m?a.m.readyState:0},Qg=function(a){try{return Pg(a)>2?a.m.status:-1}catch(b){return-1}},Sg=function(a){try{return a.m?a.m.responseText:""}catch(b){return Yc(a.S,"Can not get responseText: "+b.message),""}}; L.prototype.getResponse=function(){try{if(!this.m)return null;if("response"in this.m)return this.m.response;switch(this.Ie){case "":case "text":return this.m.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.m)return this.m.mozResponseArrayBuffer}var a=this.S;a&&Xc(a,Jc,"Response type "+this.Ie+" is not supported on this browser");return null}catch(b){return Yc(this.S,"Can not get response: "+b.message),null}}; L.prototype.getResponseHeader=function(a){if(this.m&&Pg(this)==4)return a=this.m.getResponseHeader(a),a===null?void 0:a};L.prototype.getAllResponseHeaders=function(){return this.m&&Pg(this)>=2?this.m.getAllResponseHeaders()||"":""};var Lg=function(a,b){return b+" ["+a.Ch+" "+a.re+" "+Qg(a)+"]"};var Tg=function(a,b){if(typeof a!=="function")if(a&&typeof a.handleEvent=="function")a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:u.setTimeout(a,b||0)},Ug=function(a){var b=null;return(new I(function(c,d){b=Tg(function(){c(void 0)},a);b==-1&&d(Error("Failed to schedule timer."))})).i(function(c){u.clearTimeout(b);throw c;})};var Vg=function(a){var b=Error();b.name="SecurityError";a="Failed to read a named property '"+a+"' from 'Window': ";if("location"in window)try{a+='Blocked a frame with origin "'+window.location.href+'" from accessing a cross-origin frame.'}catch(c){a+="An attempt was made to break through the security policy of the user agent."}b.message=a;throw b;},Wg=function(){return{get opener(){return null},set opener(a){},get closed(){return!0},get location(){Vg("location")},get document(){Vg("document")},postMessage:function(){}, close:function(){},focus:function(){}}};var Xg=function(){this.Qi="/__/firebase/init.json";this.Si=new vf}; Xg.prototype.Me=function(a,b,c,d,e,f){return new I(function(g,h){try{if(f){a.Lc=Math.max(0,f);var k=setTimeout(function(){a.dispatchEvent("timeout")},f)}a.listen("complete",function(){k&&clearTimeout(k);var n=null,m=Sg(a);if(Qg(a)===200)try{n=JSON.parse(m)||null,g(n||null)}catch(r){h(Error(m))}else Qg(a)===404?h(Error("resource-not-found")):h(Error(m))});lf(a,"ready",function(){k&&clearTimeout(k);a.dispose()});lf(a,"timeout",function(){k&&clearTimeout(k);a.dispose();h(Error("Request timed out"))}); a.send(b,c,d,e)}catch(n){h(n)}})};var Yg={Kk:{ce:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ke:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ke:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},dl:{ce:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ke:"https://securetoken.googleapis.com/v1/token",ke:"https://identitytoolkit.googleapis.com/v2/",id:"p"},fl:{ce:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/", Ke:"https://staging-securetoken.sandbox.googleapis.com/v1/token",ke:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},hl:{ce:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ke:"https://test-securetoken.sandbox.googleapis.com/v1/token",ke:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}}; function Zg(a){for(var b in Yg)if(Yg[b].id===a)return a=Yg[b],{firebaseEndpoint:a.ce,secureTokenEndpoint:a.Ke,identityPlatformEndpoint:a.ke};return null}var $g;$g=Zg("__EID__")?"__EID__":void 0;var ah=function(){var a=M();return mb&&!!yb&&yb==11||/Edge\/\d+/.test(a)},bh=function(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""},ch=function(a){return a?/^[\s\x00-\x20]*(?:javascript|data|vbscript|file|blob):/i.test(String(a)):!1},dh=function(a,b){b=b||u.window;var c="about:blank";a&&(c=oc(sc(a)));b.location.href=c},fh=function(a,b,c){b=b||u.window;c?ch(a)?(eh("Dangerous URL scheme blocked: "+a),b.location.replace("about:blank")):b.location.replace(a): b.location.replace(oc(sc(a)))},gh=function(a,b){var c=[],d;for(d in a)d in b?typeof a[d]!=typeof b[d]?c.push(d):typeof a[d]=="object"&&a[d]!=null&&b[d]!=null?gh(a[d],b[d]).length>0&&c.push(d):a[d]!==b[d]&&c.push(d):c.push(d);for(var e in b)e in a||c.push(e);return c},ih=function(){var a=M();a=hh(a)!="Chrome"?null:(a=a.match(/\sChrome\/(\d+)/i))&&a.length==2?parseInt(a[1],10):null;return a&&a<30?!1:!mb||!yb||yb>9},jh=function(a){a=(a||M()).toLowerCase();return a.match(/android/)||a.match(/webos/)|| a.match(/iphone|ipad|ipod/)||a.match(/blackberry/)||a.match(/windows phone/)||a.match(/iemobile/)?!0:!1},kh=function(a){a=a||u.window;try{a.close()}catch(b){}},lh=function(a,b,c){var d=Math.floor(Math.random()*1E9).toString();b=b||500;c=c||600;var e=(window.screen.availHeight-c)/2,f=(window.screen.availWidth-b)/2;b={width:b,height:c,top:e>0?e:0,left:f>0?f:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1};c=M().toLowerCase();d&&(b.target=d,A(c,"crios/")&&(b.target="_blank"));hh(M())=="Firefox"&& (a=a||"http://localhost",b.scrollbars=!0);f=a||"";(d=b)||(d={});a=window;b=f instanceof mc?f:sc(typeof f.href!="undefined"?f.href:String(f));e=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin";window.Request&&(c=(new Request("/")).referrerPolicy);var g=d.noreferrer;if(e&&g&&c==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");c=g&&!e;f=d.target||f.target;g=[];var h=[],k=!1;for(m in d){var n=d[m]; switch(m){case "width":case "height":case "top":case "left":g.push(m+"="+n);break;case "target":break;case "noopener":case "noreferrer":n?h.push(m):(k=!0,h.push(m+"=false"));break;case "attributionsrc":g.push(m+(n?"="+n:""));break;default:g.push(m+"="+(n?1:0))}}var m=f!==void 0&&!["_blank","_self","_top","_parent",""].includes(f);m=(B("Firefox")||B("FxiOS"))&&m;Xa&&e&&g.length===0&&h.length>0&&!m&&!k?(h.length===2&&(h=["noreferrer"]),Bc(a,b,f,h[0]),m=Wg()):(m=g.join(","),(B("iPhone")&&!B("iPod")&& !B("iPad")||B("iPad")||B("iPod"))&&a.navigator&&a.navigator.standalone&&f&&f!="_self"?(m=ke(document,"A"),b=vc(b),b!==void 0&&(m.href=b),m.target=f,c&&(m.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&m.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,a,1),m.dispatchEvent(d),m=Wg()):c?(m=Bc(a,"",f,m),a=oc(b),m&&(m.opener=null,a===""&&(a="javascript:''"),Va.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Pa,"&")),a.indexOf("<")!=-1&&(a=a.replace(Qa, "<")),a.indexOf(">")!=-1&&(a=a.replace(Ra,">")),a.indexOf('"')!=-1&&(a=a.replace(Sa,""")),a.indexOf("'")!=-1&&(a=a.replace(Ta,"'")),a.indexOf("\x00")!=-1&&(a=a.replace(Ua,"�"))),a='',Zc("b/12014412, meta tag with sanitized URL"),a=zc(a),(d=m.document)&&d.write&&(d.write(Ac(a)),d.close()))):((m=Bc(a,b,f,m))&&d.noopener&&(m.opener=null),m&&d.noreferrer&&(m.opener=null)));if(m)try{m.focus()}catch(r){}return m}, mh=function(){var a=M().match(/OS (\d+)_.*CriOS\/(\d+)\./i);return a&&a.length>2?parseInt(a[1],10)>=10&&parseInt(a[2],10)>=55:!1},nh=function(a){return new I(function(b){var c=function(){Ug(2E3).then(function(){if(!a||a.closed)b();else return c()})};return c()})},ph=function(a,b){var c=F(b);b=c.va;c=c.ia;for(var d=0;d0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*62))),a--;return b.join("")},hh=function(a){var b=a.toLowerCase();if(A(b,"opera/")||A(b,"opr/")||A(b,"opios/"))return"Opera";if(A(b,"iemobile"))return"IEMobile";if(A(b,"msie")||A(b,"trident/"))return"IE";if(A(b, "edge/"))return"Edge";if(A(b,"firefox/"))return"Firefox";if(A(b,"silk/"))return"Silk";if(A(b,"blackberry"))return"Blackberry";if(A(b,"webos"))return"Webos";if(!A(b,"safari/")||A(b,"chrome/")||A(b,"crios/")||A(b,"android"))if(!A(b,"chrome/")&&!A(b,"crios/")||A(b,"edge/")){if(A(b,"android"))return"Android";if((a=a.match(RegExp("([a-zA-Z\\d\\.]+)/[a-zA-Z\\d\\.]*$")))&&a.length==2)return a[1]}else return"Chrome";else return"Safari";return"Other"},Dh={Mk:"FirebaseCore-web",Ok:"FirebaseUI-web",Vk:"gcip-iap"}, Eh=function(a,b,c){c=c||[];var d=[],e={},f;for(f in Dh)e[Dh[f]]=!0;for(f=0;fb)throw Error("Short delay should be less than long delay!");this.mi=a;this.Kj=b;a=M();b=Ah();this.Aj=jh(a)||b==="ReactNative"};Qh.prototype.get=function(){var a=u.navigator;return(a&&typeof a.onLine==="boolean"&&(Hh()||uh()==="chrome-extension:"||typeof a.connection!=="undefined")?a.onLine:1)?this.Aj?this.Kj:this.mi:Math.min(5E3,this.mi)}; var Rh=function(){var a=u.document;return a&&typeof a.visibilityState!=="undefined"?a.visibilityState=="visible":!0},Sh=function(){var a=u.document,b=null;return Rh()||!a?J():(new I(function(c){b=function(){Rh()&&(a.removeEventListener("visibilitychange",b,!1),c())};a.addEventListener("visibilitychange",b,!1)})).i(function(c){a.removeEventListener("visibilitychange",b,!1);throw c;})},eh=function(a){typeof console!=="undefined"&&typeof console.error==="function"&&console.error(a)},Th=function(a){try{var b= new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(c){}return null},Uh=function(){return!(!N("fireauth.oauthhelper",u)&&!N("fireauth.iframe",u))},Vh=function(){if(u.document)try{var a=je("META",{name:"referrer",content:"no-referrer"}),b=document.getElementsByTagName("HEAD");b.length&&b[0].appendChild(a)}catch(c){}},Wh=function(){var a=u.navigator;return a&&a.serviceWorker&&a.serviceWorker.controller||null},Xh=function(){var a=u.navigator;return a&&a.serviceWorker? J().then(function(){return a.serviceWorker.ready}).then(function(b){return b.active||null}).i(function(){return null}):J(null)},Yh=function(a){var b={};a.split("&").forEach(function(c){c=c.split("=");c.length>1&&(b[decodeURIComponent(c[0])]=decodeURIComponent(c[1]))});return b};var Zh={};function $h(a){Zh[a]||(Zh[a]=!0,typeof console!=="undefined"&&typeof console.warn==="function"&&console.warn(a))};var ai;try{var bi={};Object.defineProperty(bi,"abcd",{configurable:!0,enumerable:!0,value:1});Object.defineProperty(bi,"abcd",{configurable:!0,enumerable:!0,value:2});ai=bi.abcd==2}catch(a){ai=!1} var O=function(a,b,c){ai?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:c}):a[b]=c},ci=function(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&O(a,c,b[c])},di=function(a){var b={};ci(b,a);return b},ei=function(a,b){if(!b||!b.length)return!0;if(!a)return!1;for(var c=0;c Auth section -> Sign in method tab.",a):d=="http"||d=="https"?c=$c("This domain (%s) is not authorized to run this operation. If you are the app developer, 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";P.call(this,b,c)};q(Ei,P);var Gi=function(a){var b=Fi(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.Gj=a;this.Cf=b.exp;this.Ij=b.sub;a=Date.now()/1E3;this.tj=b.iat||(a>this.Cf?this.Cf:a);this.Gb=b.email||null;this.Bc=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null;this.F=b.firebase&&b.firebase.tenant||null;this.Mi=!!b.is_anonymous||this.Bc=="anonymous";this.wf=b.display_name||null};Gi.prototype.getEmail=function(){return this.Gb};Gi.prototype.isAnonymous=function(){return this.Mi}; Gi.prototype.toString=function(){return this.Gj}; var Hi=function(a){try{return new Gi(a)}catch(b){return null}},Fi=function(a){if(!a)return null;a=a.split(".");if(a.length!=3)return null;a=a[1];for(var b=(4-a.length%4)%4,c=0;c191&&e<224){var f=d[b++];a[c++]=String.fromCharCode((e&31)<<6|f&63)}else if(e>239&&e<365){var g=d[b++],h=d[b++],k=d[b++],n=((e&7)<<18|(g&63)<<12|(h&63)<<6|k&63)-65536;a[c++]=String.fromCharCode(55296+(n>> 10));a[c++]=String.fromCharCode(56320+(n&1023))}else{var m=d[b++],r=d[b++];a[c++]=String.fromCharCode((e&15)<<12|(m&63)<<6|r&63)}}return JSON.parse(a.join(""))}catch(t){}return null};var Ii=function(a){var b=Fi(a);if(!(b&&b.exp&&b.auth_time&&b.iat))throw new P("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");ci(this,{token:a,expirationTime:Th(b.exp*1E3),authTime:Th(b.auth_time*1E3),issuedAtTime:Th(b.iat*1E3),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})};var Ji=function(a,b){if(!a&&!b)throw new P("internal-error","Internal assert: no raw session string available");if(a&&b)throw new P("internal-error","Internal assert: unable to determine the session type");this.je=a||null;this.Hh=b||null;this.type=this.je?"enroll":"signin"};Ji.prototype.ed=function(){return this.je?J(this.je):J(this.Hh)};Ji.prototype.o=function(){return this.type=="enroll"?{multiFactorSession:{idToken:this.je}}:{multiFactorSession:{pendingCredential:this.Hh}}};var Ki=function(){};Ki.prototype.Lb=function(){};Ki.prototype.uc=function(){};Ki.prototype.nd=function(){};Ki.prototype.o=function(){}; var Li=function(a,b){return a.then(function(c){if(c.idToken){var d=Hi(c.idToken);if(!d||b!=d.Ij)throw new P("user-mismatch");return c}throw new P("user-mismatch");}).i(function(c){throw c&&c.code&&c.code=="auth/user-not-found"?new P("user-mismatch"):c;})},Mi=function(a,b){if(b)this.gb=b;else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",a)};l=Mi.prototype;l.Lb=function(a){return Ni(a,this.Ob())}; l.uc=function(a,b){var c=this.Ob();c.idToken=b;return Oi(a,c)};l.nd=function(a,b){var c=this.Ob();return Li(Pi(a,c),b)};l.Ob=function(){return{pendingToken:this.gb,requestUri:"http://localhost"}};l.o=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.gb}}; var Qi=function(a){if(a&&a.providerId&&a.signInMethod&&a.providerId.indexOf("saml.")==0&&a.pendingToken)try{return new Mi(a.providerId,a.pendingToken)}catch(b){}return null},Ri=function(a,b,c){this.gb=null;if(b.idToken||b.accessToken)b.idToken&&O(this,"idToken",b.idToken),b.accessToken&&O(this,"accessToken",b.accessToken),b.nonce&&!b.pendingToken&&O(this,"nonce",b.nonce),b.pendingToken&&(this.gb=b.pendingToken);else if(b.oauthToken&&b.oauthTokenSecret)O(this,"accessToken",b.oauthToken),O(this,"secret", b.oauthTokenSecret);else throw new P("internal-error","failed to construct a credential");O(this,"providerId",a);O(this,"signInMethod",c)};l=Ri.prototype;l.Lb=function(a){return Ni(a,this.Ob())};l.uc=function(a,b){var c=this.Ob();c.idToken=b;return Oi(a,c)};l.nd=function(a,b){var c=this.Ob();return Li(Pi(a,c),b)}; l.Ob=function(){var a={};this.idToken&&(a.id_token=this.idToken);this.accessToken&&(a.access_token=this.accessToken);this.secret&&(a.oauth_token_secret=this.secret);a.providerId=this.providerId;this.nonce&&!this.gb&&(a.nonce=this.nonce);a={postBody:Jd(a).toString(),requestUri:"http://localhost"};this.gb&&(delete a.postBody,a.pendingToken=this.gb);return a}; l.o=function(){var a={providerId:this.providerId,signInMethod:this.signInMethod};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.gb&&(a.pendingToken=this.gb);return a}; var Si=function(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 Ri(a.providerId,b,a.signInMethod)}catch(c){}}return null},Ti=function(a,b){this.Zj=b||[];ci(this,{providerId:a,isOAuthProvider:!0});this.Vg={};this.Qf=(ji(a)||{}).ld||null;this.vf=null}; Ti.prototype.setCustomParameters=function(a){this.Vg=gd(a);return this};var Ui=function(a){if(!li(a))throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');Ti.call(this,a,[])};y(Ui,Ti);var Vi=function(a){Ti.call(this,a,hi);this.ng=[]};y(Vi,Ti);Vi.prototype.addScope=function(a){fb(this.ng,a)||this.ng.push(a);return this};Vi.prototype.kh=function(){return jb(this.ng)}; Vi.prototype.credential=function(a,b){a=v(a)?{idToken:a.idToken||null,accessToken:a.accessToken||null,nonce:a.rawNonce||null}:{idToken:a||null,accessToken:b||null};if(!a.idToken&&!a.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new Ri(this.providerId,a,this.providerId)};var Wi=function(){Vi.call(this,"facebook.com")};y(Wi,Vi);O(Wi,"PROVIDER_ID","facebook.com");O(Wi,"FACEBOOK_SIGN_IN_METHOD","facebook.com"); var Xi=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new Wi).credential({accessToken:b})},Yi=function(){Vi.call(this,"github.com")};y(Yi,Vi);O(Yi,"PROVIDER_ID","github.com");O(Yi,"GITHUB_SIGN_IN_METHOD","github.com"); var Zi=function(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;v(a)&&(b=a.accessToken);return(new Yi).credential({accessToken:b})},$i=function(){Vi.call(this,"google.com");this.addScope("profile")};y($i,Vi);O($i,"PROVIDER_ID","google.com");O($i,"GOOGLE_SIGN_IN_METHOD","google.com"); var aj=function(a,b){var c=a;v(a)&&(c=a.idToken,b=a.accessToken);return(new $i).credential({idToken:c,accessToken:b})},bj=function(){Ti.call(this,"twitter.com",gi)};y(bj,Ti);O(bj,"PROVIDER_ID","twitter.com");O(bj,"TWITTER_SIGN_IN_METHOD","twitter.com"); var cj=function(a,b){var c=a;v(c)||(c={oauthToken:a,oauthTokenSecret:b});if(!c.oauthToken||!c.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new Ri("twitter.com",c,"twitter.com")},ej=function(a,b,c){this.Gb=a;this.od=b;O(this,"providerId","password");O(this,"signInMethod",c===dj.EMAIL_LINK_SIGN_IN_METHOD?dj.EMAIL_LINK_SIGN_IN_METHOD:dj.EMAIL_PASSWORD_SIGN_IN_METHOD)}; ej.prototype.Lb=function(a){return this.signInMethod==dj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,fj,{email:this.Gb,oobCode:this.od}):Q(a,gj,{email:this.Gb,password:this.od})};ej.prototype.uc=function(a,b){return this.signInMethod==dj.EMAIL_LINK_SIGN_IN_METHOD?Q(a,hj,{idToken:b,email:this.Gb,oobCode:this.od}):Q(a,ij,{idToken:b,email:this.Gb,password:this.od})};ej.prototype.nd=function(a,b){return Li(this.Lb(a),b)};ej.prototype.o=function(){return{email:this.Gb,password:this.od,signInMethod:this.signInMethod}}; var jj=function(a){return a&&a.email&&a.password?new ej(a.email,a.password,a.signInMethod):null},dj=function(){ci(this,{providerId:"password",isOAuthProvider:!1})},lj=function(a,b){b=kj(b);if(!b)throw new P("argument-error","Invalid email link!");return new ej(a,b.code,dj.EMAIL_LINK_SIGN_IN_METHOD)},kj=function(a){a=Ci(a);return(a=yi(a))&&a.operation==="EMAIL_SIGNIN"?a:null};ci(dj,{PROVIDER_ID:"password"});ci(dj,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"});ci(dj,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}); var mj=function(a){if(!(a.verificationId&&a.Xe||a.Fd&&a.phoneNumber))throw new P("internal-error");this.W=a;O(this,"providerId","phone");this.providerId="phone";O(this,"signInMethod","phone")};mj.prototype.Lb=function(a){return a.verifyPhoneNumber(nj(this))};mj.prototype.uc=function(a,b){var c=nj(this);c.idToken=b;return Q(a,oj,c)};mj.prototype.nd=function(a,b){var c=nj(this);c.operation="REAUTH";a=Q(a,pj,c);return Li(a,b)}; mj.prototype.o=function(){var a={providerId:"phone"};this.W.verificationId&&(a.verificationId=this.W.verificationId);this.W.Xe&&(a.verificationCode=this.W.Xe);this.W.Fd&&(a.temporaryProof=this.W.Fd);this.W.phoneNumber&&(a.phoneNumber=this.W.phoneNumber);return a}; var qj=function(a){if(a&&a.providerId==="phone"&&(a.verificationId&&a.verificationCode||a.temporaryProof&&a.phoneNumber)){var b={};C(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(c){a[c]&&(b[c]=a[c])});return new mj(b)}return null},nj=function(a){return a.W.Fd&&a.W.phoneNumber?{temporaryProof:a.W.Fd,phoneNumber:a.W.phoneNumber}:{sessionInfo:a.W.verificationId,code:a.W.Xe}},rj=function(a){try{this.Pd=a||firebase.auth()}catch(b){throw new P("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()."); }ci(this,{providerId:"phone",isOAuthProvider:!1})}; rj.prototype.verifyPhoneNumber=function(a,b){var c=this.Pd.j;return J(b.verify()).then(function(d){if(typeof d!=="string")throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(b.type){case "recaptcha":var e=v(a)?a.session:null,f=v(a)?a.phoneNumber:a;return(e&&e.type=="enroll"?e.ed().then(function(g){return sj(c,{idToken:g,phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:d}})}):e&& e.type=="signin"?e.ed().then(function(g){return tj(c,{mfaPendingCredential:g,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:d}})}):uj(c,{phoneNumber:f,recaptchaToken:d})).then(function(g){typeof b.reset==="function"&&b.reset();return g},function(g){typeof b.reset==="function"&&b.reset();throw g;});default:throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.');}})}; var vj=function(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new mj({verificationId:a,Xe:b})};ci(rj,{PROVIDER_ID:"phone"});ci(rj,{PHONE_SIGN_IN_METHOD:"phone"}); var wj=function(a){if(a.temporaryProof&&a.phoneNumber)return new mj({Fd:a.temporaryProof,phoneNumber:a.phoneNumber});var b=a&&a.providerId;if(!b||b==="password")return null;var c=a&&a.oauthAccessToken,d=a&&a.oauthTokenSecret,e=a&&a.nonce,f=a&&a.oauthIdToken,g=a&&a.pendingToken;try{switch(b){case "google.com":return aj(f,c);case "facebook.com":return Xi(c);case "github.com":return Zi(c);case "twitter.com":return cj(c,d);default:return c||d||f||g?g?b.indexOf("saml.")==0?new Mi(b,g):new Ri(b,{pendingToken:g, idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):(new Vi(b)).credential({idToken:f,accessToken:c,rawNonce:e}):null}}catch(h){return null}},xj=function(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider");};var yj=function(a,b,c){P.call(this,a,c);a=b||{};a.email&&O(this,"email",a.email);a.phoneNumber&&O(this,"phoneNumber",a.phoneNumber);a.credential&&O(this,"credential",a.credential);a.tenantId&&O(this,"tenantId",a.tenantId)};q(yj,P);yj.prototype.o=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.o();b&&id(a,b);return a}; yj.prototype.toJSON=function(){return this.o()};var zj=function(a){if(a.code){var b=a.code||"";b.indexOf("auth/")==0&&(b=b.substring(5));var c={credential:wj(a),tenantId:a.tenantId};if(a.email)c.email=a.email;else if(a.phoneNumber)c.phoneNumber=a.phoneNumber;else if(!c.credential)return new P(b,a.message||void 0);return new yj(b,c,a.message)}return null};var Aj=pa(["https://apis.google.com/js/client.js?onload=",""]),Bj=function(a){this.Ik=a};q(Bj,sf);Bj.prototype.Vc=function(){return new this.Ik}; var Gj=function(a,b,c,d){this.C=a;b=b||{};this.ci=b.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token";this.kk=b.secureTokenTimeout||Cj;this.Le=gd(b.secureTokenHeaders||Dj);this.fh=b.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/";this.qh=b.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/";this.cj=b.firebaseTimeout||Ej;this.Jb=gd(b.firebaseHeaders||Fj);c&&(this.Jb["X-Client-Version"]=c,this.Le["X-Client-Version"]=c);d&&(this.Jb["X-Firebase-AppCheck"]= d);a=Ah()=="Node";a=u.XMLHttpRequest||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.XMLHttpRequest;if(!a&&!zh())throw new P("internal-error","The XMLHttpRequest compatibility library was not found.");this.Je=void 0;zh()?this.Je=new yf({Hk:self}):Bh()?this.Je=new Bj(a):this.Je=new vf;this.F=null},Hj,Ij=function(a,b){b?a.Jb["X-Firebase-Locale"]=b:delete a.Jb["X-Firebase-Locale"]},Kj=function(a,b){b&&(a.ci=Jj("https://securetoken.googleapis.com/v1/token",b),a.fh=Jj("https://www.googleapis.com/identitytoolkit/v3/relyingparty/", b),a.qh=Jj("https://identitytoolkit.googleapis.com/v2/",b))},Jj=function(a,b){a=F(a);b=F(b.url);td(a,a.ia+a.fb);pd(a,b.va);rd(a,b.ia);sd(a,b.Ua);return a.toString()},Lj=function(a,b){b?(a.Jb["X-Client-Version"]=b,a.Le["X-Client-Version"]=b):(delete a.Jb["X-Client-Version"],delete a.Le["X-Client-Version"])};Gj.prototype.Me=function(a,b,c,d,e,f){if(ih()||zh())var g=w(this.mk,this);else Hj||(Hj=new I(function(h,k){Mj(h,k)})),g=w(this.lk,this);g(a,b,c,d,e,f)}; Gj.prototype.mk=function(a,b,c,d,e,f){if(zh()&&(typeof u.fetch==="undefined"||typeof u.Headers==="undefined"||typeof u.Request==="undefined"))throw new P("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var g=new L(this.Je);if(f){g.Lc=Math.max(0,f);var h=setTimeout(function(){g.dispatchEvent("timeout")},f)}g.listen("complete",function(){h&&clearTimeout(h);var k=null; try{k=JSON.parse(Sg(this))||null}catch(n){k=null}b&&b(k)});lf(g,"ready",function(){h&&clearTimeout(h);this.dispose()});lf(g,"timeout",function(){h&&clearTimeout(h);this.dispose();b&&b(null)});g.send(a,c,d,e)};var Mj=function(a,b){if(((window.gapi||{}).client||{}).request)a();else{u[Nj]=function(){((window.gapi||{}).client||{}).request?a():b(Error("CORS_UNSUPPORTED"))};var c=cd(Aj,Nj);yg(Ig(c),function(){b(Error("CORS_UNSUPPORTED"))})}}; Gj.prototype.lk=function(a,b,c,d,e){var f=this;Hj.then(function(){window.gapi.client.setApiKey(f.C);var g=window.gapi.auth.getToken();window.gapi.auth.setToken(null);window.gapi.client.request({path:a,method:c,body:d,headers:e,authType:"none",callback:function(h){window.gapi.auth.setToken(g);b&&b(h)}})}).i(function(g){b&&b({error:{message:g&&g.message||"CORS_UNSUPPORTED"}})})}; var Pj=function(a,b){return new I(function(c,d){b.grant_type=="refresh_token"&&b.refresh_token||b.grant_type=="authorization_code"&&b.code?a.Me(a.ci+"?key="+encodeURIComponent(a.C),function(e){e?e.error?d(Oj(e)):e.access_token&&e.refresh_token?c(e):d(new P("internal-error")):d(new P("network-request-failed"))},"POST",Jd(b).toString(),a.Le,a.kk.get()):d(new P("internal-error"))})},Qj=function(a,b,c,d,e,f,g){var h=F(b+c);D(h,"key",a.C);g&&D(h,"cb",Date.now().toString());var k=d=="GET";if(k)for(var n in e)e.hasOwnProperty(n)&& D(h,n,e[n]);return new I(function(m,r){a.Me(h.toString(),function(t){t?t.error?r(Oj(t,f||{})):m(t):r(new P("network-request-failed"))},d,k?void 0:JSON.stringify(Lh(e)),a.Jb,a.cj.get())})},Rj=function(a){a=a.email;if(typeof a!=="string"||!qh.test(a))throw new P("invalid-email");},Sj=function(a){"email"in a&&Rj(a)},Uj=function(a,b,c,d,e,f){var g=li(b);var h={};e&&e.length?(h[b]=e.join(","),e=JSON.stringify(h)):e=null;c={identifier:null,providerId:b,continueUri:c,customParameter:d||{},oauthScope:e,sessionId:f}; g&&(delete c.customParameter,delete c.oauthScope);f&&b=="google.com"&&(c.authFlowType="CODE_FLOW");return Q(a,Tj,c)},Wj=function(a,b){return Q(a,Vj,{identifier:b,continueUri:Hh()?bh():"http://localhost"}).then(function(c){return c.signinMethods||[]})},Yj=function(a){return Q(a,Xj,{}).then(function(b){return b.authorizedDomains||[]})},Zj=function(a){return Q(a,Xj,{}).then(function(b){return b.projectId||""})},ak=function(a,b){return Q(a,Xj,{iosBundleId:b}).then(function(){})},bk=function(a,b,c){b= {androidPackageName:b};c&&(b.sha1Cert=c);return Q(a,Xj,b).then(function(){})},ck=function(a,b){return Q(a,Xj,{clientId:b}).then(function(){})},dk=function(a,b){return Q(a,Xj,{firebaseAppId:b}).then(function(){})},ek=function(a){if(!a.idToken){if(a.mfaPendingCredential)throw new P("multi-factor-auth-required",null,gd(a));throw new P("internal-error");}},fk=function(a){if(a.phoneNumber||a.temporaryProof){if(!a.phoneNumber||!a.temporaryProof)throw new P("internal-error");}else{if(!a.sessionInfo)throw new P("missing-verification-id"); if(!a.code)throw new P("missing-verification-code");}};l=Gj.prototype;l.signInAnonymously=function(){return Q(this,gk,{})};l.updateEmail=function(a,b){return Q(this,hk,{idToken:a,email:b})};l.updatePassword=function(a,b){return Q(this,ij,{idToken:a,password:b})};l.updateProfile=function(a,b){var c={idToken:a},d=[];dd(ik,function(e,f){var g=b[f];g===null?d.push(e):f in b&&(c[f]=g)});d.length&&(c.deleteAttribute=d);return Q(this,hk,c)}; l.sendPasswordResetEmail=function(a,b){a={requestType:"PASSWORD_RESET",email:a};id(a,b);return Q(this,jk,a)};l.sendSignInLinkToEmail=function(a,b){a={requestType:"EMAIL_SIGNIN",email:a};id(a,b);return Q(this,kk,a)};l.sendEmailVerification=function(a,b){a={requestType:"VERIFY_EMAIL",idToken:a};id(a,b);return Q(this,lk,a)};l.verifyBeforeUpdateEmail=function(a,b,c){a={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:b};id(a,c);return Q(this,mk,a)};var uj=function(a,b){return Q(a,nk,b)}; Gj.prototype.verifyPhoneNumber=function(a){return Q(this,ok,a)}; var sj=function(a,b){return Q(a,pk,b).then(function(c){return c.phoneSessionInfo.sessionInfo})},qk=function(a){if(!a.phoneVerificationInfo)throw new P("internal-error");if(!a.phoneVerificationInfo.sessionInfo)throw new P("missing-verification-id");if(!a.phoneVerificationInfo.code)throw new P("missing-verification-code");},tj=function(a,b){return Q(a,rk,b).then(function(c){return c.phoneResponseInfo.sessionInfo})},tk=function(a,b,c){return Q(a,sk,{idToken:b,deleteProvider:c})},uk=function(a){if(!a.requestUri|| !a.sessionId&&!a.postBody&&!a.pendingToken)throw new P("internal-error");},vk=function(a,b){b.oauthIdToken&&b.providerId&&b.providerId.indexOf("oidc.")==0&&!b.pendingToken&&(a.sessionId?b.nonce=a.sessionId:a.postBody&&(a=new xd(a.postBody),a.Uc("nonce")&&(b.nonce=a.get("nonce"))));return b},xk=function(a){var b=null;a.needConfirmation?(a.code="account-exists-with-different-credential",b=zj(a)):a.errorMessage=="FEDERATED_USER_ID_ALREADY_LINKED"?(a.code="credential-already-in-use",b=zj(a)):a.errorMessage== "EMAIL_EXISTS"?(a.code="email-already-in-use",b=zj(a)):a.errorMessage&&(b=wk(a.errorMessage));if(b)throw b;ek(a)},Ni=function(a,b){b.returnIdpCredential=!0;return Q(a,yk,b)},Oi=function(a,b){b.returnIdpCredential=!0;return Q(a,zk,b)},Pi=function(a,b){b.returnIdpCredential=!0;b.autoCreate=!1;return Q(a,Ak,b)},Bk=function(a){if(!a.oobCode)throw new P("invalid-action-code");};Gj.prototype.confirmPasswordReset=function(a,b){return Q(this,Ck,{oobCode:a,newPassword:b})}; Gj.prototype.checkActionCode=function(a){return Q(this,Dk,{oobCode:a})};Gj.prototype.applyActionCode=function(a){return Q(this,Ek,{oobCode:a})}; var Q=function(a,b,c){if(!ei(c,b.ga))return K(new P("internal-error"));var d=!!b.Hd,e=b.httpMethod||"POST",f;return J(c).then(b.J).then(function(){b.Ka&&(c.returnSecureToken=!0);b.K&&a.F&&typeof c.tenantId==="undefined"&&(c.tenantId=a.F);return d?Qj(a,a.qh,b.endpoint,e,c,b.Ug,b.Rd||!1):Qj(a,a.fh,b.endpoint,e,c,b.Ug,b.Rd||!1)}).then(function(g){f=g;return b.Ge?b.Ge(c,f):f}).then(b.R).then(function(){if(!b.Va)return f;if(!(b.Va in f))throw new P("internal-error");return f[b.Va]})},wk=function(a){return Oj({error:{errors:[{message:a}], code:400,reason:a}})},Oj=function(a,b){var c=(a.error&&a.error.errors&&a.error.errors[0]||{}).reason||"";var d={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(c=d[c]?new P(d[c]):null)return c;c=a.error&&(a.error.reason||a.error.message)||"";d={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password", USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found", RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests", WEAK_PASSWORD:"weak-password",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",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",INVALID_TENANT_ID:"invalid-tenant-id",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",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",API_KEY_SERVICE_BLOCKED:"api-key-service-blocked"};b=b||{};id(d,b);b=(b=c.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&b.length>1?b[1]:void 0;for(var e in d)if(c.indexOf(e)===0)return new P(d[e],b);!b&&a&&(b=Kh(a));return new P("internal-error",b)},Cj=new Qh(3E4,6E4),Dj={"Content-Type":"application/x-www-form-urlencoded"},Ej=new Qh(3E4,6E4),Fj={"Content-Type":"application/json"}, Nj="__fcb"+Math.floor(Math.random()*1E6).toString(),ik={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"},Ek={endpoint:"setAccountInfo",J:Bk,Va:"email",K:!0},Dk={endpoint:"resetPassword",J:Bk,R:function(a){var b=a.requestType;if(!b||!a.email&&b!="EMAIL_SIGNIN"&&b!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},K:!0},Fk={endpoint:"signupNewUser",J:function(a){Rj(a);if(!a.password)throw new P("weak-password");},R:ek,Ka:!0,K:!0},Vj={endpoint:"createAuthUri",K:!0},Gk={endpoint:"deleteAccount", ga:["idToken"]},sk={endpoint:"setAccountInfo",ga:["idToken","deleteProvider"],J:function(a){if(!Array.isArray(a.deleteProvider))throw new P("internal-error");}},fj={endpoint:"emailLinkSignin",ga:["email","oobCode"],J:Rj,R:ek,Ka:!0,K:!0},hj={endpoint:"emailLinkSignin",ga:["idToken","email","oobCode"],J:Rj,R:ek,Ka:!0},Hk={endpoint:"accounts/mfaEnrollment:finalize",ga:["idToken","phoneVerificationInfo"],J:qk,R:ek,K:!0,Hd:!0},Ik={endpoint:"accounts/mfaSignIn:finalize",ga:["mfaPendingCredential","phoneVerificationInfo"], J:qk,R:ek,K:!0,Hd:!0},Jk={endpoint:"getAccountInfo"},Tj={endpoint:"createAuthUri",J:function(a){if(!a.continueUri)throw new P("missing-continue-uri");if(!a.providerId)throw new P("internal-error","A provider ID must be provided in the request.");},R:function(a){if(!a.authUri)throw new P("internal-error","Unable to determine the authorization endpoint for the specified provider. This may be an issue in the provider configuration.");if(!a.sessionId)throw new P("internal-error");},K:!0},kk={endpoint:"getOobConfirmationCode", ga:["requestType"],J:function(a){if(a.requestType!="EMAIL_SIGNIN")throw new P("internal-error");Rj(a)},Va:"email",K:!0},lk={endpoint:"getOobConfirmationCode",ga:["idToken","requestType"],J:function(a){if(a.requestType!="VERIFY_EMAIL")throw new P("internal-error");},Va:"email",K:!0},mk={endpoint:"getOobConfirmationCode",ga:["idToken","newEmail","requestType"],J:function(a){if(a.requestType!="VERIFY_AND_CHANGE_EMAIL")throw new P("internal-error");},Va:"email",K:!0},jk={endpoint:"getOobConfirmationCode", ga:["requestType"],J:function(a){if(a.requestType!="PASSWORD_RESET")throw new P("internal-error");Rj(a)},Va:"email",K:!0},Xj={Rd:!0,endpoint:"getProjectConfig",httpMethod:"GET"},Kk={Rd:!0,endpoint:"getRecaptchaParam",httpMethod:"GET",R:function(a){if(!a.recaptchaSiteKey)throw new P("internal-error");}},Ck={endpoint:"resetPassword",J:Bk,Va:"email",K:!0},Lk={Rd:!0,endpoint:"getProjectConfig",httpMethod:"GET",Va:"dynamicLinksDomain"},nk={endpoint:"sendVerificationCode",ga:["phoneNumber","recaptchaToken"], Va:"sessionInfo",K:!0},hk={endpoint:"setAccountInfo",ga:["idToken"],J:Sj,Ka:!0},ij={endpoint:"setAccountInfo",ga:["idToken"],J:function(a){Sj(a);if(!a.password)throw new P("weak-password");},R:ek,Ka:!0},gk={endpoint:"signupNewUser",R:ek,Ka:!0,K:!0},pk={endpoint:"accounts/mfaEnrollment:start",ga:["idToken","phoneEnrollmentInfo"],J:function(a){if(!a.phoneEnrollmentInfo)throw new P("internal-error");if(!a.phoneEnrollmentInfo.phoneNumber)throw new P("missing-phone-number");if(!a.phoneEnrollmentInfo.recaptchaToken)throw new P("missing-app-credential"); },R:function(a){if(!a.phoneSessionInfo||!a.phoneSessionInfo.sessionInfo)throw new P("internal-error");},K:!0,Hd:!0},rk={endpoint:"accounts/mfaSignIn:start",ga:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],J:function(a){if(!a.phoneSignInInfo||!a.phoneSignInInfo.recaptchaToken)throw new P("missing-app-credential");},R:function(a){if(!a.phoneResponseInfo||!a.phoneResponseInfo.sessionInfo)throw new P("internal-error");},K:!0,Hd:!0},yk={endpoint:"verifyAssertion",J:uk,Ge:vk,R:xk,Ka:!0,K:!0}, Ak={endpoint:"verifyAssertion",J:uk,Ge:vk,R:function(a){if(a.errorMessage&&a.errorMessage=="USER_NOT_FOUND")throw new P("user-not-found");if(a.errorMessage)throw wk(a.errorMessage);ek(a)},Ka:!0,K:!0},zk={endpoint:"verifyAssertion",J:function(a){uk(a);if(!a.idToken)throw new P("internal-error");},Ge:vk,R:xk,Ka:!0},Mk={endpoint:"verifyCustomToken",J:function(a){if(!a.token)throw new P("invalid-custom-token");},R:ek,Ka:!0,K:!0},gj={endpoint:"verifyPassword",J:function(a){Rj(a);if(!a.password)throw new P("wrong-password"); },R:ek,Ka:!0,K:!0},ok={endpoint:"verifyPhoneNumber",J:fk,R:ek,K:!0},oj={endpoint:"verifyPhoneNumber",J:function(a){if(!a.idToken)throw new P("internal-error");fk(a)},R:function(a){if(a.temporaryProof)throw a.code="credential-already-in-use",zj(a);ek(a)}},pj={Ug:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",J:fk,R:ek,K:!0},Nk={endpoint:"accounts/mfaEnrollment:withdraw",ga:["idToken","mfaEnrollmentId"],R:function(a){if(!!a.idToken^!!a.refreshToken)throw new P("internal-error");},K:!0, Hd:!0};var Ok=pa(["https://apis.google.com/js/api.js?onload=",""]),Qk=function(a){this.Yb=a;this.me=null;this.Yf=Pk(this)},Pk=function(a){return Rk().then(function(){return new I(function(b,c){N("gapi.iframes.getContext")().open({where:document.body,url:a.Yb,messageHandlersFilter:N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(d){a.me=d;a.me.restyle({setHideOnLeave:!1});var e=setTimeout(function(){c(Error("Network Error"))}, Sk.get()),f=function(){clearTimeout(e);b()};d.ping(f).then(f,function(){c(Error("Network Error"))})})})})};Qk.prototype.sendMessage=function(a){var b=this;return this.Yf.then(function(){return new I(function(c){b.me.send(a.type,a,c,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}; var Tk=function(a,b){a.Yf.then(function(){a.me.register("authEvent",b,N("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})},Rk=function(){return Uk?Uk:Uk=(new I(function(a,b){var c=function(){Ph();N("gapi.load")("gapi.iframes",{callback:a,ontimeout:function(){Ph();b(Error("Network Error"))},timeout:Vk.get()})};if(N("gapi.iframes.Iframe"))a();else if(N("gapi.load"))c();else{var d="__iframefcb"+Math.floor(Math.random()*1E6).toString();u[d]=function(){N("gapi.load")?c():b(Error("Network Error"))};d=cd(Ok, d);J(Ig(d)).i(function(){b(Error("Network Error"))})}})).i(function(a){Uk=null;throw a;})},Vk=new Qh(3E4,6E4),Sk=new Qh(5E3,15E3),Uk=null;var Wk=function(a,b,c,d){this.M=a;this.C=b;this.D=c;this.v=d;this.ac=null;this.v?(a=F(this.v.url),a=Fd(a.va,a.ia,a.Ua,"/emulator/auth/iframe",null,null)):a=Fd("https",this.M,null,"/__/auth/iframe",null,null);this.ib=a;D(this.ib,"apiKey",this.C);D(this.ib,"appName",this.D);this.qa=null;this.aa=[]};Wk.prototype.ug=function(a){this.ac=a;return this};Wk.prototype.rg=function(a){this.qa=a;return this}; Wk.prototype.toString=function(){this.ac?D(this.ib,"v",this.ac):this.ib.removeParameter("v");this.qa?D(this.ib,"eid",this.qa):this.ib.removeParameter("eid");this.aa.length?D(this.ib,"fw",this.aa.join(",")):this.ib.removeParameter("fw");return this.ib.toString()};var Xk=function(a,b,c,d,e,f){this.M=a;this.C=b;this.D=c;this.Oi=d;this.v=f;this.ac=this.V=this.Ec=null;this.Cc=e;this.F=this.qa=null};Xk.prototype.tg=function(a){this.F=a;return this};Xk.prototype.ug=function(a){this.ac=a;return this}; Xk.prototype.rg=function(a){this.qa=a;return this}; Xk.prototype.toString=function(){if(this.v){var a=F(this.v.url);a=Fd(a.va,a.ia,a.Ua,"/emulator/auth/handler",null,null)}else a=Fd("https",this.M,null,"/__/auth/handler",null,null);D(a,"apiKey",this.C);D(a,"appName",this.D);D(a,"authType",this.Oi);if(this.Cc.isOAuthProvider){var b=this.Cc;try{var c=firebase.app(this.D).auth().Ga}catch(f){c=null}b.vf=c;D(a,"providerId",this.Cc.providerId);c=this.Cc;b=Lh(c.Vg);for(var d in b)b[d]=b[d].toString();d=Mh(b,c.Zj);c.Qf&&c.vf&&!d[c.Qf]&&(d[c.Qf]=c.vf);fd(d)|| D(a,"customParameters",Kh(d))}typeof this.Cc.kh==="function"&&(d=this.Cc.kh(),d.length&&D(a,"scopes",d.join(",")));this.Ec?D(a,"redirectUrl",this.Ec):a.removeParameter("redirectUrl");this.V?D(a,"eventId",this.V):a.removeParameter("eventId");this.ac?D(a,"v",this.ac):a.removeParameter("v");if(this.Kd)for(var e in this.Kd)this.Kd.hasOwnProperty(e)&&!E(a,e)&&D(a,e,this.Kd[e]);this.F?D(a,"tid",this.F):a.removeParameter("tid");this.qa?D(a,"eid",this.qa):a.removeParameter("eid");e=Yk(this.D);e.length&&D(a, "fw",e.join(","));return a.toString()};var Yk=function(a){try{return Zk(firebase.app(a).auth())}catch(b){return[]}},$k=function(a,b,c,d,e,f){this.M=a;this.C=b;this.D=c;this.v=f;this.Qa=d||null;this.qa=e||null;this.j=this.Lf=this.ih=null;this.Za=[];this.oe=this.eb=null},al=function(a){var b=b||bh();return Yj(a).then(function(c){if(!ph(c,b))throw new Ei(bh());})};l=$k.prototype; l.initialize=function(){if(this.oe)return this.oe;var a=this;return this.oe=rh().then(function(){if(!a.Lf){var b=a.M,c=a.C,d=a.D,e=a.Qa,f=a.qa,g=Yk(a.D);b=(new Wk(b,c,d,a.v)).ug(e).rg(f);b.aa=jb(g||[]);a.Lf=b.toString()}a.le=new Qk(a.Lf);bl(a)})};l.Dd=function(a,b,c){var d=new P("popup-closed-by-user"),e=new P("web-storage-unsupported"),f=this,g=!1;return this.Nb().then(function(){cl(f).then(function(h){h||(a&&kh(a),b(e),g=!0)})}).i(function(){}).then(function(){if(!g)return nh(a)}).then(function(){if(!g)return Ug(c).then(function(){b(d)})})}; l.ni=function(){var a=M();return!Jh(a)&&!Oh(a)};l.nh=function(){return!1}; l.sd=function(a,b,c,d,e,f,g,h){if(!a)return K(new P("popup-blocked"));if(g&&!Jh())return this.Nb().i(function(n){kh(a);e(n)}),d(),J();this.eb||(this.eb=al(dl(this)));var k=this;return this.eb.then(function(){var n=k.Nb().i(function(m){kh(a);e(m);throw m;});d();return n}).then(function(){xj(c);if(!g){var n=el(k.M,k.C,k.D,b,c,null,f,k.Qa,void 0,k.qa,h,k.v);dh(n,a)}}).i(function(n){n.code=="auth/network-request-failed"&&(k.eb=null);throw n;})}; var dl=function(a){a.j||(a.ih=a.Qa?Eh("JsCore",a.Qa,Yk(a.D)):null,a.j=new Gj(a.C,Zg(a.qa),a.ih),a.v&&Kj(a.j,a.v));return a.j};$k.prototype.td=function(a,b,c,d){this.eb||(this.eb=al(dl(this)));var e=this;return this.eb.then(function(){xj(b);var f=el(e.M,e.C,e.D,a,b,bh(),c,e.Qa,void 0,e.qa,d,e.v);dh(f)}).i(function(f){f.code=="auth/network-request-failed"&&(e.eb=null);throw f;})}; $k.prototype.Nb=function(){var a=this;return this.initialize().then(function(){return a.le.Yf}).i(function(){a.eb=null;throw new P("network-request-failed");})};$k.prototype.ui=function(){return!0}; var el=function(a,b,c,d,e,f,g,h,k,n,m,r){a=new Xk(a,b,c,d,e,r);a.Ec=f;a.V=g;f=a.ug(h);f.Kd=gd(k||null);return f.rg(n).tg(m).toString()},bl=function(a){if(!a.le)throw Error("IfcHandler must be initialized!");Tk(a.le,function(b){var c={};if(b&&b.authEvent){var d=!1;b=pi(b.authEvent);for(c=0;cd)throw f;return zl(a,b,c,d-g)})}; yl.prototype.send=function(a,b,c){b=b===void 0?null:b;c=c===void 0?!1:c;var d=this,e;b=b||{};var f,g,h,k=null;if(this.Mg)return K(Error("connection_unavailable"));var n=c?800:50,m=typeof MessageChannel!=="undefined"?new MessageChannel:null;return(new I(function(r,t){m?(e=""+Math.floor(Math.random()*1E20).toString(),m.port1.start(),g=setTimeout(function(){t(Error("unsupported_event"))},n),f=function(x){x.data.eventId===e&&(x.data.status==="ack"?(clearTimeout(g),h=setTimeout(function(){t(Error("timeout"))}, 3E3)):x.data.status==="done"?(clearTimeout(h),typeof x.data.response!=="undefined"?r(x.data.response):t(Error("unknown_error"))):(clearTimeout(g),clearTimeout(h),t(Error("invalid_response"))))},k={messageChannel:m,onMessage:f},d.ue.push(k),m.port1.addEventListener("message",f),d.Tj.postMessage({eventType:a,eventId:e,data:b},[m.port2])):t(Error("connection_unavailable"))})).then(function(r){Al(d,k);return r}).i(function(r){Al(d,k);throw r;})}; var Al=function(a,b){if(b){var c=b.messageChannel,d=b.onMessage;c&&(c.port1.removeEventListener("message",d),c.port1.close());ib(a.ue,function(e){return e==b})}};yl.prototype.close=function(){for(;this.ue.length>0;)Al(this,this.ue[0]);this.Mg=!0};var Bl=function(a){this.Af=a;this.Da={};this.Fh=w(this.ij,this)},Dl=function(){var a=zh()?self:null;C(Cl,function(c){c.Af==a&&(b=c)});if(!b){var b=new Bl(a);Cl.push(b)}return b}; Bl.prototype.ij=function(a){var b=a.data.eventType,c=a.data.eventId,d=this.Da[b];if(d&&d.length>0){a.ports[0].postMessage({status:"ack",eventId:c,eventType:b,response:null});var e=[];C(d,function(f){e.push(J().then(function(){return f(a.origin,a.data.data)}))});cg(e).then(function(f){var g=[];C(f,function(h){g.push({fulfilled:h.hh,value:h.value,reason:h.reason?h.reason.message:void 0})});C(g,function(h){for(var k in h)typeof h[k]==="undefined"&&delete h[k]});a.ports[0].postMessage({status:"done", eventId:c,eventType:b,response:g})})}};Bl.prototype.subscribe=function(a,b){fd(this.Da)&&this.Af.addEventListener("message",this.Fh);typeof this.Da[a]==="undefined"&&(this.Da[a]=[]);this.Da[a].push(b)};Bl.prototype.unsubscribe=function(a,b){typeof this.Da[a]!=="undefined"&&b?(ib(this.Da[a],function(c){return c==b}),this.Da[a].length==0&&delete this.Da[a]):b||delete this.Da[a];fd(this.Da)&&this.Af.removeEventListener("message",this.Fh)};var Cl=[];var El=function(a){this.Aa=a||firebase.INTERNAL.reactNative&&firebase.INTERNAL.reactNative.AsyncStorage;if(!this.Aa)throw new P("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"};l=El.prototype;l.get=function(a){return J(this.Aa.getItem(a)).then(function(b){return b&&Nh(b)})};l.set=function(a,b){return J(this.Aa.setItem(a,Kh(b)))};l.remove=function(a){return J(this.Aa.removeItem(a))};l.lb=function(){};l.yb=function(){};function Fl(){this.storage={};this.type="inMemory"}l=Fl.prototype;l.get=function(a){return J(this.storage[a])};l.set=function(a,b){this.storage[a]=b;return J()};l.remove=function(a){delete this.storage[a];return J()};l.lb=function(){};l.yb=function(){};var Il=function(){if(!Gl()){if(Ah()=="Node")throw new P("internal-error","The LocalStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.Aa=Hl()||firebase.INTERNAL.node.localStorage;this.type="localStorage"},Hl=function(){try{var a=u.localStorage,b=Fh();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Gl=function(){var a=Ah()=="Node";a=Hl()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.localStorage;if(!a)return!1;try{return a.setItem("__sak", "1"),a.removeItem("__sak"),!0}catch(b){return!1}};l=Il.prototype;l.get=function(a){var b=this;return J().then(function(){var c=b.Aa.getItem(a);return Nh(c)})};l.set=function(a,b){var c=this;return J().then(function(){var d=Kh(b);d===null?c.remove(a):c.Aa.setItem(a,d)})};l.remove=function(a){var b=this;return J().then(function(){b.Aa.removeItem(a)})};l.lb=function(a){u.window&&df(u.window,"storage",a)};l.yb=function(a){u.window&&mf(u.window,"storage",a)};var Jl=function(){this.Aa={};this.type="nullStorage"};l=Jl.prototype;l.get=function(){return J(null)};l.set=function(){return J()};l.remove=function(){return J()};l.lb=function(){};l.yb=function(){};var Ml=function(){if(!Kl()){if(Ah()=="Node")throw new P("internal-error","The SessionStorage compatibility library was not found.");throw new P("web-storage-unsupported");}this.Aa=Ll()||firebase.INTERNAL.node.sessionStorage;this.type="sessionStorage"},Ll=function(){try{var a=u.sessionStorage,b=Fh();a&&(a.setItem(b,"1"),a.removeItem(b));return a}catch(c){return null}},Kl=function(){var a=Ah()=="Node";a=Ll()||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{return a.setItem("__sak", "1"),a.removeItem("__sak"),!0}catch(b){return!1}};l=Ml.prototype;l.get=function(a){var b=this;return J().then(function(){var c=b.Aa.getItem(a);return Nh(c)})};l.set=function(a,b){var c=this;return J().then(function(){var d=Kh(b);d===null?c.remove(a):c.Aa.setItem(a,d)})};l.remove=function(a){var b=this;return J().then(function(){b.Aa.removeItem(a)})};l.lb=function(){};l.yb=function(){};var Pl=function(){if(!Nl())throw new P("web-storage-unsupported");this.Wg="firebaseLocalStorageDb";this.we="firebaseLocalStorage";this.uf="fbase_key";this.Di="value";this.Ek=1;this.la={};this.Xa=[];this.pd=0;this.rh=u.indexedDB;this.type="indexedDB";this.Ne=this.kg=this.De=this.dg=null;this.ei=!1;this.bf=null;var a=this;zh()&&self?(this.kg=Dl(),this.kg.subscribe("keyChanged",function(b,c){return Ol(a).then(function(d){d.length>0&&C(a.Xa,function(e){e(d)});return{keyProcessed:fb(d,c.key)}})}),this.kg.subscribe("ping", function(){return J(["keyChanged"])})):Xh().then(function(b){if(a.bf=b)a.Ne=new yl(new xl(b)),a.Ne.send("ping",null,!0).then(function(c){c[0].fulfilled&&fb(c[0].value,"keyChanged")&&(a.ei=!0)}).i(function(){})})},Ql,Rl=function(a){return new I(function(b,c){var d=a.rh.deleteDatabase(a.Wg);d.onsuccess=function(){b()};d.onerror=function(e){c(Error(e.target.error))}})},Sl=function(a){return new I(function(b,c){var d=a.rh.open(a.Wg,a.Ek);d.onerror=function(e){try{e.preventDefault()}catch(f){}c(Error(e.target.error))}; d.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore(a.we,{keyPath:a.uf})}catch(f){c(f)}};d.onsuccess=function(e){e=e.target.result;e.objectStoreNames.contains(a.we)?b(e):Rl(a).then(function(){return Sl(a)}).then(function(f){b(f)}).i(function(f){c(f)})}})},Tl=function(a){a.Nf||(a.Nf=Sl(a));return a.Nf},Ul=function(a,b){var c=0,d=function(e,f){Tl(a).then(b).then(e).i(function(g){if(++c>3)f(g);else return Tl(a).then(function(h){h.close();a.Nf=void 0;return d(e,f)}).i(function(h){f(h)})})}; return new I(d)},Nl=function(){try{return!!u.indexedDB}catch(a){return!1}},Vl=function(a,b){return b.objectStore(a.we)},Wl=function(a,b,c){return b.transaction([a.we],c?"readwrite":"readonly")},Xl=function(a){return new I(function(b,c){a.onsuccess=function(d){d&&d.target?b(d.target.result):b()};a.onerror=function(d){c(d.target.error)}})}; Pl.prototype.set=function(a,b){var c=this,d=!1;return Ul(this,function(e){e=Vl(c,Wl(c,e,!0));return Xl(e.get(a))}).then(function(e){return Ul(c,function(f){f=Vl(c,Wl(c,f,!0));if(e)return e.value=b,Xl(f.put(e));c.pd++;d=!0;var g={};g[c.uf]=a;g[c.Di]=b;return Xl(f.add(g))})}).then(function(){c.la[a]=b;return Yl(c,a)}).Ab(function(){d&&c.pd--})};var Yl=function(a,b){return a.Ne&&a.bf&&Wh()===a.bf?a.Ne.send("keyChanged",{key:b},a.ei).then(function(){}).i(function(){}):J()}; Pl.prototype.get=function(a){var b=this;return Ul(this,function(c){return Xl(Vl(b,Wl(b,c,!1)).get(a))}).then(function(c){return c&&c.value})};Pl.prototype.remove=function(a){var b=!1,c=this;return Ul(this,function(d){b=!0;c.pd++;return Xl(Vl(c,Wl(c,d,!0))["delete"](a))}).then(function(){delete c.la[a];return Yl(c,a)}).Ab(function(){b&&c.pd--})}; var Ol=function(a){return Tl(a).then(function(b){var c=Vl(a,Wl(a,b,!1));return c.getAll?Xl(c.getAll()):new I(function(d,e){var f=[],g=c.openCursor();g.onsuccess=function(h){(h=h.target.result)?(f.push(h.value),h["continue"]()):d(f)};g.onerror=function(h){e(h.target.error)}})}).then(function(b){var c={},d=[];if(a.pd==0){for(d=0;d0&&C(a.Xa,function(d){d(c)})}).then(function(){b()}).i(function(c){c.message!="STOP_EVENT"&&b()})},800)};b()};Pl.prototype.Qe=function(){this.dg&&this.dg.cancel("STOP_EVENT");this.De&&(clearTimeout(this.De),this.De=null)};function Zl(a){var b=this,c=null;this.Xa=[];this.type="indexedDB";this.ah=a;this.Ag=J().then(function(){if(Nl()){var d=Fh(),e="__sak"+d;Ql||(Ql=new Pl);c=Ql;return c.set(e,d).then(function(){return c.get(e)}).then(function(f){if(f!==d)throw Error("indexedDB not supported!");return c.remove(e)}).then(function(){return c}).i(function(){return b.ah})}return b.ah}).then(function(d){b.type=d.type;d.lb(function(e){C(b.Xa,function(f){f(e)})});return d})}l=Zl.prototype;l.get=function(a){return this.Ag.then(function(b){return b.get(a)})}; l.set=function(a,b){return this.Ag.then(function(c){return c.set(a,b)})};l.remove=function(a){return this.Ag.then(function(b){return b.remove(a)})};l.lb=function(a){this.Xa.push(a)};l.yb=function(a){ib(this.Xa,function(b){return b==a})};var dm=function(){this.yf={Browser:$l,Node:am,ReactNative:bm,Worker:cm}[Ah()]},em,$l={P:Il,Re:Ml},am={P:Il,Re:Ml},bm={P:El,Re:Jl},cm={P:Il,Re:Jl};var fm=function(){this.df=!1;Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.df},set:function(a){this.df=a},enumerable:!1})};var gm=function(a){this.cb(a)}; gm.prototype.cb=function(a){var b=a.url;if(typeof b==="undefined")throw new P("missing-continue-uri");if(typeof b!=="string"||typeof b==="string"&&!b.length)throw new P("invalid-continue-uri");this.Ri=b;this.Dg=this.dc=null;this.uh=!1;var c=a.android;if(c&&typeof c==="object"){b=c.packageName;var d=c.installApp;c=c.minimumVersion;if(typeof b==="string"&&b.length){this.dc=b;if(typeof d!=="undefined"&&typeof d!=="boolean")throw new P("argument-error","installApp property must be a boolean when specified.");this.uh= !!d;if(typeof c!=="undefined"&&(typeof c!=="string"||typeof c==="string"&&!c.length))throw new P("argument-error","minimumVersion property must be a non empty string when specified.");this.Dg=c||null}else{if(typeof b!=="undefined")throw new P("argument-error","packageName property must be a non empty string when specified.");if(typeof d!=="undefined"||typeof c!=="undefined")throw new P("missing-android-pkg-name");}}else if(typeof c!=="undefined")throw new P("argument-error","android property must be a non null object when specified."); this.hd=null;if((b=a.iOS)&&typeof b==="object")if(b=b.bundleId,typeof b==="string"&&b.length)this.hd=b;else{if(typeof b!=="undefined")throw new P("argument-error","bundleId property must be a non empty string when specified.");}else if(typeof b!=="undefined")throw new P("argument-error","iOS property must be a non null object when specified.");b=a.handleCodeInApp;if(typeof b!=="undefined"&&typeof b!=="boolean")throw new P("argument-error","handleCodeInApp property must be a boolean when specified."); this.Kg=!!b;a=a.dynamicLinkDomain;if(typeof a!=="undefined"&&(typeof a!=="string"||typeof a==="string"&&!a.length))throw new P("argument-error","dynamicLinkDomain property must be a non empty string when specified.");this.Vi=a||null};var hm=function(a){var b={};b.continueUrl=a.Ri;b.canHandleCodeInApp=a.Kg;if(b.androidPackageName=a.dc)b.androidMinimumVersion=a.Dg,b.androidInstallApp=a.uh;b.iOSBundleId=a.hd;b.dynamicLinkDomain=a.Vi;for(var c in b)b[c]===null&&delete b[c];return b};var im=function(a,b){this.Ui=b;O(this,"verificationId",a)};im.prototype.confirm=function(a){a=vj(this.verificationId,a);return this.Ui(a)};var jm=function(a,b,c,d){return(new rj(a)).verifyPhoneNumber(b,c).then(function(e){return new im(e,d)})};var km=function(a,b,c){this.Rj=a;this.ek=b;this.gj=c;this.te=3E4;this.Cg=96E4;this.fk=!1;this.xc=null;this.Pb=this.te;if(this.Cga.Cg&&(a.Pb=a.Cg);return b},lm=function(a,b){a.stop();a.xc=Ug(mm(a,b)).then(function(){return a.fk?J():Sh()}).then(function(){return a.Rj()}).then(function(){lm(a,!0)}).i(function(c){a.ek(c)&&lm(a,!1)})};km.prototype.stop=function(){this.xc&&(this.xc.cancel(),this.xc=null)};var tm=function(a){var b={};b["facebook.com"]=nm;b["google.com"]=om;b["github.com"]=pm;b["twitter.com"]=qm;var c=a&&a.providerId;try{if(c)return b[c]?new b[c](a):new rm(a);if(typeof a.idToken!=="undefined")return new sm(a)}catch(d){}return null},sm=function(a){var b=a.providerId;if(!b&&a.idToken){var c=Hi(a.idToken);c&&c.Bc&&(b=c.Bc)}if(!b)throw Error("Invalid additional user info!");if(b=="anonymous"||b=="custom")b=null;c=!1;typeof a.isNewUser!=="undefined"?c=!!a.isNewUser:a.kind==="identitytoolkit#SignupNewUserResponse"&& (c=!0);O(this,"providerId",b);O(this,"isNewUser",c)},rm=function(a){sm.call(this,a);a=Nh(a.rawUserInfo||"{}");O(this,"profile",fi(a||{}))};q(rm,sm);var nm=function(a){rm.call(this,a);if(this.providerId!="facebook.com")throw Error("Invalid provider ID!");};q(nm,rm);var pm=function(a){rm.call(this,a);if(this.providerId!="github.com")throw Error("Invalid provider ID!");O(this,"username",this.profile&&this.profile.login||null)};q(pm,rm); var om=function(a){rm.call(this,a);if(this.providerId!="google.com")throw Error("Invalid provider ID!");};q(om,rm);var qm=function(a){rm.call(this,a);if(this.providerId!="twitter.com")throw Error("Invalid provider ID!");O(this,"username",a.screenName||null)};q(qm,rm);var um={LOCAL:"local",NONE:"none",SESSION:"session"};function vm(a){var b=new P("invalid-persistence-type"),c=new P("unsupported-persistence-type");a:{for(d in um)if(um[d]==a){var d=!0;break a}d=!1}if(!d||typeof a!=="string")throw b;switch(Ah()){case "ReactNative":if(a==="session")throw c;break;case "Node":if(a!=="none")throw c;break;case "Worker":if(a==="session"||!Nl()&&a!=="none")throw c;break;default:if(!Gh()&&a!=="none")throw c;}} var wm=function(){var a=!Oh(M())&&xh()?!0:!1,b=Jh(),c=Gh();this.Ih="firebase";this.og=":";this.gk=a;this.ai=b;this.Ei=c;this.sa={};em||(em=new dm);a=em;try{this.Rh=!ah()&&Uh()||!u.indexedDB?new a.yf.P:new Zl(zh()?new Fl:new a.yf.P)}catch(d){this.Rh=new Fl,this.ai=!0}try{this.ri=new a.yf.Re}catch(d){this.ri=new Fl}this.uj=new Fl;this.xg=w(this.oi,this);this.la={}},xm,ym=function(){xm||(xm=new wm);return xm},zm=function(a,b){switch(b){case "session":return a.ri;case "none":return a.uj;default:return a.Rh}}; wm.prototype.xa=function(a,b){return this.Ih+this.og+a.name+(b?this.og+b:"")};var Am=function(a,b,c){var d=a.xa(b,c),e=zm(a,b.P);return a.get(b,c).then(function(f){var g=null;try{g=Nh(u.localStorage.getItem(d))}catch(h){}if(g&&!f)return u.localStorage.removeItem(d),a.set(b,g,c);g&&f&&e.type!="localStorage"&&u.localStorage.removeItem(d)})};l=wm.prototype;l.get=function(a,b){return zm(this,a.P).get(this.xa(a,b))};l.remove=function(a,b){b=this.xa(a,b);a.P=="local"&&(this.la[b]=null);return zm(this,a.P).remove(b)}; l.set=function(a,b,c){var d=this.xa(a,c),e=this,f=zm(this,a.P);return f.set(d,b).then(function(){return f.get(d)}).then(function(g){a.P=="local"&&(e.la[d]=g)})};l.addListener=function(a,b,c){a=this.xa(a,b);this.Ei&&(this.la[a]=u.localStorage.getItem(a));fd(this.sa)&&this.wg();this.sa[a]||(this.sa[a]=[]);this.sa[a].push(c)};l.removeListener=function(a,b,c){a=this.xa(a,b);this.sa[a]&&(ib(this.sa[a],function(d){return d==c}),this.sa[a].length==0&&delete this.sa[a]);fd(this.sa)&&this.Qe()}; l.wg=function(){zm(this,"local").lb(this.xg);this.ai||(ah()||!Uh())&&u.indexedDB||!this.Ei||Bm(this)};var Bm=function(a){Cm(a);a.Sf=setInterval(function(){for(var b in a.sa){var c=u.localStorage.getItem(b),d=a.la[b];c!=d&&(a.la[b]=c,c=new Se({type:"storage",key:b,target:window,oldValue:d,newValue:c,cg:!0}),a.oi(c))}},1E3)},Cm=function(a){a.Sf&&(clearInterval(a.Sf),a.Sf=null)};wm.prototype.Qe=function(){zm(this,"local").yb(this.xg);Cm(this)}; wm.prototype.oi=function(a){if(a&&a.dj){var b=a.ra.key;if(b==null)for(var c in this.sa){var d=this.la[c];typeof d==="undefined"&&(d=null);var e=u.localStorage.getItem(c);e!==d&&(this.la[c]=e,this.nf(c))}else if(b.indexOf(this.Ih+this.og)==0&&this.sa[b]){typeof a.ra.cg!=="undefined"?zm(this,"local").yb(this.xg):Cm(this);if(this.gk)if(c=u.localStorage.getItem(b),d=a.ra.newValue,d!==c)d!==null?u.localStorage.setItem(b,d):u.localStorage.removeItem(b);else if(this.la[b]===d&&typeof a.ra.cg==="undefined")return; var f=this;c=function(){if(typeof a.ra.cg!=="undefined"||f.la[b]!==u.localStorage.getItem(b))f.la[b]=u.localStorage.getItem(b),f.nf(b)};mb&&yb&&yb==10&&u.localStorage.getItem(b)!==a.ra.newValue&&a.ra.newValue!==a.ra.oldValue?setTimeout(c,10):c()}}else C(a,w(this.nf,this))};wm.prototype.nf=function(a){this.sa[a]&&C(this.sa[a],function(b){b()})};var Dm=function(a){this.G=a;this.u=ym()},Fm=function(a){return a.u.get(Em,a.G).then(function(b){return pi(b)})};Dm.prototype.cc=function(a){this.u.addListener(Em,this.G,a)};Dm.prototype.yd=function(a){this.u.removeListener(Em,this.G,a)};var Em={name:"authEvent",P:"local"},Gm={name:"redirectEvent",P:"session"};var Hm=function(){this.u=ym()};Hm.prototype.oc=function(a){return this.u.get(Im,a)};var Km=function(a){return a.u.get(Jm).then(function(b){b=b||{};return b.type&&b.apiKey?new qi(b.apiKey,b.appName||"",b.type,b.eventId,b.redirectUrl,b.clientVersion,b.displayName,b.apn,b.ibi,b.eid,b.fw,b.clientId,b.sha1Cert,b.tenantId,b.providerId,b.appId,b.publicKey):null})},Lm=function(a,b,c){return a.u.set(Em,c.o(),b)},Jm={name:"oauthHelperState",P:"session"},Im={name:"sessionId",P:"session"};var Mm=function(){this.Uf=null;this.Vd=[]};Mm.prototype.subscribe=function(a){var b=this;this.Vd.push(a);this.Uf||(this.Uf=function(c){for(var d=0;d0;)b.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(Math.random()*62))),a--;return b.join("")},Rm=function(a){var b=new Oe;b.update(a);return Na(b.digest())};l=Om.prototype;l.Dd=function(a,b){b(new P("operation-not-supported-in-this-environment"));return J()};l.sd=function(){return K(new P("operation-not-supported-in-this-environment"))};l.ui=function(){return!1};l.ni=function(){return!0}; l.nh=function(){return!0}; l.td=function(a,b,c,d){if(this.Be)return K(new P("redirect-operation-pending"));var e=this,f=u.document,g=null,h=null,k=null,n=null;return this.Be=J().then(function(){xj(b);return Sm(e)}).then(function(){return Tm(e,a,b,c,d)}).then(function(){return(new I(function(m,r){h=function(){var t=N("cordova.plugins.browsertab.close",u);m();typeof t==="function"&&t();e.jd&&typeof e.jd.close==="function"&&(e.jd.close(),e.jd=null);return!1};e.cc(h);k=function(){g||(g=Ug(e.Wj).then(function(){r(new P("redirect-cancelled-by-user"))}))};n= function(){Rh()&&k()};f.addEventListener("resume",k,!1);M().toLowerCase().match(/android/)||f.addEventListener("visibilitychange",n,!1)})).i(function(m){return Um(e).then(function(){throw m;})})}).Ab(function(){k&&f.removeEventListener("resume",k,!1);n&&f.removeEventListener("visibilitychange",n,!1);g&&g.cancel();h&&e.yd(h);e.Be=null})}; var Tm=function(a,b,c,d,e){var f=Qm(),g=new oi(b,d,null,f,new P("no-auth-event"),null,e),h=N("BuildInfo.packageName",u);if(typeof h!=="string")throw new P("invalid-cordova-configuration");var k=N("BuildInfo.displayName",u),n={};if(M().toLowerCase().match(/iphone|ipad|ipod/))n.ibi=h;else if(M().toLowerCase().match(/android/))n.apn=h;else return K(new P("operation-not-supported-in-this-environment"));k&&(n.appDisplayName=k);f=Rm(f);n.sessionId=f;var m=el(a.M,a.C,a.D,b,c,null,d,a.Qa,n,a.qa,e,a.v);return a.Nb().then(function(){return Lm(a.hk, a.pi,g)}).then(function(){var r=N("cordova.plugins.browsertab.isAvailable",u);if(typeof r!=="function")throw new P("invalid-cordova-configuration");var t=null;r(function(x){if(x){t=N("cordova.plugins.browsertab.openUrl",u);if(typeof t!=="function")throw new P("invalid-cordova-configuration");t(m)}else{t=N("cordova.InAppBrowser.open",u);if(typeof t!=="function")throw new P("invalid-cordova-configuration");x=t;var ba=M();ba=!(!ba.match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&!ba.match(/(iPad|iPhone|iPod).*OS 8_\d/i)); a.jd=x(m,ba?"_blank":"_system","location=yes")}})})};Om.prototype.Yc=function(a){for(var b=0;b=6E5&&(this.Fe={},this.Rf=0);if(a&&a.getUid()&&this.Fe.hasOwnProperty(a.getUid()))return!1;for(var b=!1,c=0;cthis.kc-3E4?this.ma?Hn(this,{grant_type:"refresh_token",refresh_token:this.ma}):J(null):J({accessToken:this.oa.toString(),refreshToken:this.ma})};var In=function(a,b){this.Sg=a||null;this.Bh=b||null;ci(this,{lastSignInTime:Th(b||null),creationTime:Th(a||null)})};In.prototype.clone=function(){return new In(this.Sg,this.Bh)};In.prototype.o=function(){return{lastLoginAt:this.Bh,createdAt:this.Sg}}; var Jn=function(a,b,c,d,e,f){ci(this,{uid:a,displayName:d||null,photoURL:e||null,email:c||null,phoneNumber:f||null,providerId:b})},R=function(a,b,c){pf.call(this);this.ba=[];this.C=a.apiKey;this.D=a.appName;this.M=a.authDomain||null;var d=firebase.SDK_VERSION?Eh("JsCore",firebase.SDK_VERSION):null;this.j=new Gj(this.C,Zg($g),d);(this.v=a.emulatorConfig||null)&&Kj(this.j,this.v);this.La=new En(this.j);Kn(this,b.idToken);Gn(this.La,b);O(this,"refreshToken",this.La.ma);Ln(this,c||{});this.rd=!1;this.M&& Ih()&&(this.B=ln(this.M,this.C,this.D,this.v));this.Pe=[];this.Ma=null;this.Ac=Mn(this);this.Pc=w(this.Kf,this);var e=this;this.Ga=null;this.Nh=function(f){e.Ic(f.languageCode)};this.Pf=null;this.Lh=function(f){Nn(e,f.emulatorConfig)};this.xf=null;this.aa=[];this.Mh=function(f){On(e,f.bd)};this.Ff=null;this.ve=new Bn(this,c);O(this,"multiFactor",this.ve)};q(R,pf);R.prototype.Ic=function(a){this.Ga=a;Ij(this.j,a)}; var Nn=function(a,b){a.v=b;Kj(a.j,b);a.B&&(b=a.B,a.B=ln(a.M,a.C,a.D,a.v),a.rd&&(b.unsubscribe(a),a.B.subscribe(a)))},Pn=function(a,b){a.Pf&&mf(a.Pf,"languageCodeChanged",a.Nh);(a.Pf=b)&&df(b,"languageCodeChanged",a.Nh)},Qn=function(a,b){a.xf&&mf(a.xf,"emulatorConfigChanged",a.Lh);(a.xf=b)&&df(b,"emulatorConfigChanged",a.Lh)},On=function(a,b){a.aa=b;Lj(a.j,firebase.SDK_VERSION?Eh("JsCore",firebase.SDK_VERSION,a.aa):null)},Zk=function(a){return jb(a.aa)},Rn=function(a,b){a.Ff&&mf(a.Ff,"frameworkChanged", a.Mh);(a.Ff=b)&&df(b,"frameworkChanged",a.Mh)};R.prototype.Kf=function(){this.Ac.xc&&(this.Ac.stop(),this.Ac.start())}; var Sn=function(a){try{return firebase.app(a.D).auth()}catch(b){throw new P("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+a.D+"'!");}},Mn=function(a){return new km(function(){return a.getIdToken(!0)},function(b){return b&&b.code=="auth/network-request-failed"?!0:!1},function(){var b=a.La.kc-Date.now()-3E5;return b>0?b:0})},Tn=function(a){a.Xc||a.Ac.xc||(a.Ac.start(),mf(a,"tokenChanged",a.Pc),df(a,"tokenChanged",a.Pc))},Un=function(a){mf(a,"tokenChanged",a.Pc); a.Ac.stop()},Kn=function(a,b){a.Ah=b;O(a,"_lat",b)},Vn=function(a,b){ib(a.Pe,function(c){return c==b})},Wn=function(a){for(var b=[],c=0;c0&&Tn(b));O(a,"currentUser",b);b&&(b.Ic(a.Ga),Pn(b,a),On(b,a.aa),Rn(b,a),Nn(b,a.v),Qn(b,a))};S.prototype.signOut=function(){var a=this,b=this.Ja.then(function(){a.B&&a.B.hc();if(!T(a))return J();Do(a,null);return Bo(a.Na).then(function(){a.sb()})});return this.l(b)}; var Qo=function(a){var b=a.A().options.authDomain;b=to(a.Tb,b).then(function(c){if(a.xb=c)c.wb=a.Tb;return no(a.Tb)});return a.l(b)},Eo=function(a){var b=a.A().options.authDomain,c=Qo(a).then(function(){return Co(a.Na,b,a.v)}).then(function(d){return d?(d.wb=a.Tb,a.xb&&(a.xb.ub||null)==(d.ub||null)?d:d.reload().then(function(){return Ao(a.Na,d).then(function(){return d})}).i(function(e){return e.code=="auth/network-request-failed"?d:Bo(a.Na)})):null}).then(function(d){Do(a,d||null)});return a.l(c)}, Fo=function(a){return a.Od.then(function(){return Oo(a)}).i(function(){}).then(function(){if(!a.Ba)return a.Hf()}).i(function(){}).then(function(){if(!a.Ba){a.qe=!0;var b=a.Na;b.u.addListener(uo("local"),b.G,a.Hf)}})};l=S.prototype; l.vk=function(){var a=this,b=this.A().options.authDomain;return Co(this.Na,b).then(function(c){if(!a.Ba){var d;if(d=T(a)&&c){d=T(a).uid;var e=c.uid;d=d===void 0||d===null||d===""||e===void 0||e===null||e===""?!1:d==e}if(d)return T(a).copy(c),T(a).getIdToken();if(T(a)||c)Do(a,c),c&&(Xn(c),c.wb=a.Tb),a.B&&a.B.subscribe(a),a.sb()}})};l.qb=function(a){return Ao(this.Na,a)};l.Kf=function(){this.sb();this.qb(T(this))};l.pj=function(){this.signOut()};l.qj=function(){this.signOut()}; var No=function(a,b){var c=null,d=null;return a.l(b.then(function(e){c=wj(e);d=tm(e);return Po(a,e)},function(e){var f=null;e&&e.code==="auth/multi-factor-auth-required"&&(f=tn(e.o(),a,w(a.Jf,a)));throw f||e;}).then(function(){return di({user:T(a),credential:c,additionalUserInfo:d,operationType:"signIn"})}))};l=S.prototype;l.Jf=function(a){var b=this;return this.Ja.then(function(){return No(b,J(a))})};l.vj=function(a){var b=this;this.addAuthTokenListener(function(){a.next(T(b))})}; l.wj=function(a){var b=this;Ro(this,function(){a.next(T(b))})};l.onIdTokenChanged=function(a,b,c){var d=this;this.qe&&firebase.Promise.resolve().then(function(){typeof a==="function"?a(T(d)):typeof a.next==="function"&&a.next(T(d))});return this.Nj(a,b,c)};l.onAuthStateChanged=function(a,b,c){var d=this;this.qe&&firebase.Promise.resolve().then(function(){d.Id=d.getUid();typeof a==="function"?a(T(d)):typeof a.next==="function"&&a.next(T(d))});return this.Qj(a,b,c)}; l.ej=function(a){var b=this,c=this.Ja.then(function(){return T(b)?T(b).getIdToken(a).then(function(d){return{accessToken:d}}):null});return this.l(c)};l.signInWithCustomToken=function(a){var b=this;return this.Ja.then(function(){return No(b,Q(b.j,Mk,{token:a}))}).then(function(c){var d=c.user;co(d,"isAnonymous",!1);b.qb(d);return c})};l.signInWithEmailAndPassword=function(a,b){var c=this;return this.Ja.then(function(){return No(c,Q(c.j,gj,{email:a,password:b}))})}; l.createUserWithEmailAndPassword=function(a,b){var c=this;return this.Ja.then(function(){return No(c,Q(c.j,Fk,{email:a,password:b}))})};l.signInWithCredential=function(a){var b=this;return this.Ja.then(function(){return No(b,a.Lb(b.j))})};l.signInAndRetrieveDataWithCredential=function(a){$h("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead.");return this.signInWithCredential(a)}; l.signInAnonymously=function(){var a=this;return this.Ja.then(function(){var b=T(a);if(b&&b.isAnonymous){var c=di({providerId:null,isNewUser:!1});return di({user:b,credential:null,additionalUserInfo:c,operationType:"signIn"})}return No(a,a.j.signInAnonymously()).then(function(d){var e=d.user;co(e,"isAnonymous",!0);a.qb(e);return d})})};l.qc=function(){var a=this.A().options.apiKey,b=this.A().name;return a+":"+b};l.A=function(){return this.app};var T=function(a){return a.currentUser}; S.prototype.getUid=function(){return T(this)&&T(this).uid||null};var So=function(a){return T(a)&&T(a)._lat||null};l=S.prototype;l.sb=function(){if(this.qe){for(var a=0;a0&&T(this)&&Tn(T(this))}; l.Xj=function(a){var b=this;C(this.Db,function(c){c==a&&b.Kb--});this.Kb<0&&(this.Kb=0);this.Kb==0&&T(this)&&Un(T(this));this.removeAuthTokenListener(a)};l.addAuthTokenListener=function(a){var b=this;this.Db.push(a);this.l(this.Ja.then(function(){b.Ba||fb(b.Db,a)&&a(So(b))}))};l.removeAuthTokenListener=function(a){ib(this.Db,function(b){return b==a})};var Ro=function(a,b){a.Oc.push(b);a.l(a.Ja.then(function(){!a.Ba&&fb(a.Oc,b)&&a.Id!==a.getUid()&&(a.Id=a.getUid(),b(So(a)))}))};l=S.prototype; l.delete=function(){this.Ba=!0;for(var a=0;a=To.length)throw new P("internal-error", "Argument validator received an unsupported number of arguments.");c=To[c];d=(d?"":c+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.X+".";break a}d=null}}if(d)throw new P("argument-error",a+" failed: "+d);},To="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),U=function(a,b){return{name:a||"",X:"a valid string",optional:!!b,Y:function(c){return typeof c==="string"}}},Vo=function(a,b){return{name:a||"",X:"a boolean",optional:!!b,Y:function(c){return typeof c==="boolean"}}}, V=function(a,b){return{name:a||"",X:"a valid object",optional:!!b,Y:v}},Wo=function(a,b){return{name:a||"",X:"a function",optional:!!b,Y:Tf}},Xo=function(a,b){return{name:a||"",X:"null",optional:!!b,Y:function(c){return c===null}}},Yo=function(){return{name:"",X:"an HTML element",optional:!1,Y:function(a){return!!(a&&a instanceof Element)}}},Zo=function(){return{name:"auth",X:"an instance of Firebase Auth",optional:!0,Y:function(a){return!!(a&&a instanceof S)}}},$o=function(){return{name:"app",X:"an instance of Firebase App", optional:!0,Y:function(a){return!!(a&&a instanceof firebase.app.App)}}},ap=function(a){return{name:a?a+"Credential":"credential",X:a?"a valid "+a+" credential":"a valid credential",optional:!1,Y:function(b){if(!b)return!1;var c=!a||b.providerId===a;return!(!b.Lb||!c)}}},bp=function(){return{name:"multiFactorAssertion",X:"a valid multiFactorAssertion",optional:!1,Y:function(a){return a?!!a.process:!1}}},cp=function(){return{name:"authProvider",X:"a valid Auth provider",optional:!1,Y:function(a){return!!(a&& a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},dp=function(a,b){return v(a)&&typeof a.type==="string"&&a.type===b&&typeof a.ed==="function"},ep=function(a){return v(a)&&typeof a.uid==="string"},fp=function(){return{name:"applicationVerifier",X:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,Y:function(a){return!(!a||typeof a.type!=="string"||typeof a.verify!=="function")}}},W=function(a,b,c,d){return{name:c||"",X:a.X+" or "+b.X,optional:!!d,Y:function(e){return a.Y(e)|| b.Y(e)}}};var X=function(a,b){for(var c in b){var d=b[c].name;a[d]=gp(d,a[c],b[c].h)}},hp=function(a,b){for(var c in b){var d=b[c].name;d!==c&&Object.defineProperty(a,d,{get:Ca(function(e){return this[e]},c),set:Ca(function(e,f,g,h){Uo(e,[g],[h],!0);this[f]=h},d,c,b[c].ef),enumerable:!0})}},Y=function(a,b,c,d){a[b]=gp(b,c,d)},gp=function(a,b,c){if(!c)return b;var d=ip(a);a=function(){var g=Array.prototype.slice.call(arguments);Uo(d,c,g);return b.apply(this,g)};for(var e in b)a[e]=b[e];for(var f in b.prototype)a.prototype[f]= b.prototype[f];return a},ip=function(a){a=a.split(".");return a[a.length-1]};function jp(){}O(jp,"FACTOR_ID","phone");X(S.prototype,{applyActionCode:{name:"applyActionCode",h:[U("code")]},checkActionCode:{name:"checkActionCode",h:[U("code")]},confirmPasswordReset:{name:"confirmPasswordReset",h:[U("code"),U("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",h:[U("email"),U("password")]},fetchSignInMethodsForEmail:{name:"fetchSignInMethodsForEmail",h:[U("email")]},getRedirectResult:{name:"getRedirectResult",h:[]},isSignInWithEmailLink:{name:"isSignInWithEmailLink",h:[U("emailLink")]}, onAuthStateChanged:{name:"onAuthStateChanged",h:[W(V(),Wo(),"nextOrObserver"),Wo("opt_error",!0),Wo("opt_completed",!0)]},onIdTokenChanged:{name:"onIdTokenChanged",h:[W(V(),Wo(),"nextOrObserver"),Wo("opt_error",!0),Wo("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",h:[U("email"),W(V("opt_actionCodeSettings",!0),Xo(null,!0),"opt_actionCodeSettings",!0)]},sendSignInLinkToEmail:{name:"sendSignInLinkToEmail",h:[U("email"),V("actionCodeSettings")]},setPersistence:{name:"setPersistence", h:[U("persistence")]},signInAndRetrieveDataWithCredential:{name:"signInAndRetrieveDataWithCredential",h:[ap()]},signInAnonymously:{name:"signInAnonymously",h:[]},signInWithCredential:{name:"signInWithCredential",h:[ap()]},signInWithCustomToken:{name:"signInWithCustomToken",h:[U("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",h:[U("email"),U("password")]},signInWithEmailLink:{name:"signInWithEmailLink",h:[U("email"),U("emailLink",!0)]},signInWithPhoneNumber:{name:"signInWithPhoneNumber", h:[U("phoneNumber"),fp()]},signInWithPopup:{name:"signInWithPopup",h:[cp()]},signInWithRedirect:{name:"signInWithRedirect",h:[cp()]},updateCurrentUser:{name:"updateCurrentUser",h:[W(function(a){return{name:"user",X:"an instance of Firebase User",optional:!!a,Y:function(b){return!!(b&&b instanceof R)}}}(),Xo(),"user")]},signOut:{name:"signOut",h:[]},toJSON:{name:"toJSON",h:[U(null,!0)]},useDeviceLanguage:{name:"useDeviceLanguage",h:[]},useEmulator:{name:"useEmulator",h:[U("url"),V("options",!0)]}, verifyPasswordResetCode:{name:"verifyPasswordResetCode",h:[U("code")]}});hp(S.prototype,{lc:{name:"languageCode",ef:W(U(),Xo(),"languageCode")},ti:{name:"tenantId",ef:W(U(),Xo(),"tenantId")}});S.Persistence=um;S.Persistence.LOCAL="local";S.Persistence.SESSION="session";S.Persistence.NONE="none"; X(R.prototype,{"delete":{name:"delete",h:[]},getIdTokenResult:{name:"getIdTokenResult",h:[Vo("opt_forceRefresh",!0)]},getIdToken:{name:"getIdToken",h:[Vo("opt_forceRefresh",!0)]},linkAndRetrieveDataWithCredential:{name:"linkAndRetrieveDataWithCredential",h:[ap()]},linkWithCredential:{name:"linkWithCredential",h:[ap()]},linkWithPhoneNumber:{name:"linkWithPhoneNumber",h:[U("phoneNumber"),fp()]},linkWithPopup:{name:"linkWithPopup",h:[cp()]},linkWithRedirect:{name:"linkWithRedirect",h:[cp()]},reauthenticateAndRetrieveDataWithCredential:{name:"reauthenticateAndRetrieveDataWithCredential", h:[ap()]},reauthenticateWithCredential:{name:"reauthenticateWithCredential",h:[ap()]},reauthenticateWithPhoneNumber:{name:"reauthenticateWithPhoneNumber",h:[U("phoneNumber"),fp()]},reauthenticateWithPopup:{name:"reauthenticateWithPopup",h:[cp()]},reauthenticateWithRedirect:{name:"reauthenticateWithRedirect",h:[cp()]},reload:{name:"reload",h:[]},sendEmailVerification:{name:"sendEmailVerification",h:[W(V("opt_actionCodeSettings",!0),Xo(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",h:[U(null, !0)]},unlink:{name:"unlink",h:[U("provider")]},updateEmail:{name:"updateEmail",h:[U("email")]},updatePassword:{name:"updatePassword",h:[U("password")]},updatePhoneNumber:{name:"updatePhoneNumber",h:[ap("phone")]},updateProfile:{name:"updateProfile",h:[V("profile")]},verifyBeforeUpdateEmail:{name:"verifyBeforeUpdateEmail",h:[U("email"),W(V("opt_actionCodeSettings",!0),Xo(null,!0),"opt_actionCodeSettings",!0)]}});X(kl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}); X(fl.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}});X(I.prototype,{Ab:{name:"finally"},i:{name:"catch"},then:{name:"then"}});hp(fm.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",ef:Vo("appVerificationDisabledForTesting")}});X(im.prototype,{confirm:{name:"confirm",h:[U("verificationCode")]}}); Y(Ki,"fromJSON",function(a){a=typeof a==="string"?JSON.parse(a):a;for(var b,c=[Si,jj,qj,Qi],d=0;d=0;b--)this.remove(a[b])}; l.pg=function(a){this.Ra.cookie=a};l.dd=function(){return this.Ra.cookie};var lp=function(a){a=(a.dd()||"").split(";");for(var b=[],c=[],d,e,f=0;f1&&(this.N[c].stagingRollout=1));typeof this.N[c].rollout!=="undefined"&&(this.N[c].rollout<0&&(this.N[c].rollout=0),this.N[c].rollout>1&&(this.N[c].rollout=1))}}; op.prototype.isEnabled=function(a){var b=a.id;a=a.id.toString();if(typeof this.N[a]!=="undefined"){var c=c===void 0?u.window:c;if(!(c&&c.navigator&&c.navigator.cookieEnabled)||this.N[a].expiration&&this.N[a].expiration.getTime()<=Date.now())return!!this.N[a].defaultValue;var d;c=this.dd("e_gcip_"+b);c===null&&(c=parseInt(Math.random()*1E4,10)/1E4,this.N[b.toString()].expiration&&(d=parseInt((this.N[b.toString()].expiration.getTime()-Date.now())/1E3,10)),this.pg("e_gcip_"+b,c.toString(),d));b=parseFloat(c); var e;return(e=e===void 0?u.window:e)&&e.location&&e.location.hostname&&np.test(e.location.hostname)&&typeof this.N[a].stagingRollout!=="undefined"?(console.log("Evaluating experiment for staging domain"),this.N[a].stagingRollout===1?!0:b===0?!1:b<=this.N[a].stagingRollout):typeof this.N[a].rollout!=="undefined"?b===0?!1:b<=this.N[a].rollout:!!this.N[a].defaultValue}return!1};op.prototype.pg=function(a,b,c){mp.set(a,b,{Vf:c?c:2592E3,path:"/__/auth/",domain:u.window.location.hostname,secure:!0})}; op.prototype.dd=function(a){return mp.get(a)||null};var pp=function(){this.ae=new op};pp.prototype.zj=function(){var a=(u.EXPERIMENTS||{}).DISPLAY_CONTINUE_BUTTON_IF_NOT_REDIRECT;return typeof a==="undefined"?!1:this.ae.isEnabled(a)};pp.prototype.Bj=function(){var a=(u.EXPERIMENTS||{}).POPUP_POST_MESSAGE_TO_IFRAME;return typeof a==="undefined"?!1:this.ae.isEnabled(a)};pp.prototype.yj=function(){var a=(u.EXPERIMENTS||{}).CHECK_OAUTH_STATE_STORED_BEFORE_REDIRECT;return typeof a==="undefined"?!1:this.ae.isEnabled(a)}; pp.prototype.Dj=function(){var a=(u.EXPERIMENTS||{}).CHECK_REDIRECT_URL_IS_AUTHORIZED;return typeof a==="undefined"?!1:this.ae.isEnabled(a)};var qp=new pp,rp=qp.zj.bind(qp),sp=qp.Bj.bind(qp),tp=qp.yj.bind(qp),up=qp.Dj.bind(qp);var vp=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},wp=function(a,b){if(a.classList)a.classList.add(b);else if(a.classList?!a.classList.contains(b):!fb(a.classList?a.classList:vp(a).match(/\S+/g)||[],b)){var c=vp(a);b=c+(c.length>0?" "+b:b);typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)}};/* Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ var Z={xi:function(){},yi:function(){},zi:function(){},Bg:function(){},Zh:function(){},register:function(){},Yg:function(){}}; Z=function(){function a(m,r){for(var t=0;t0&&g(x.children))}function h(m){if(m){n.splice(n.indexOf(m),1);var r=m.U.getAttribute("data-upgraded").split(",");r.splice(r.indexOf(m.mdlComponentConfigInternal_.sf),1);m.U.setAttribute("data-upgraded",r.join(","));r=d("mdl-componentdowngraded",!0,!1);m.U.dispatchEvent(r)}}var k=[],n=[];return{xi:e,yi:f,zi:g,Bg:function(){for(var m=0;m.bar{display:block;position:absolute;top:0;bottom:0;width:0;-webkit-transition:width .2s cubic-bezier(.4,0,.2,1);transition:width .2s cubic-bezier(.4,0,.2,1)}.mdl-progress>.progressbar{background-color:#3f51b5;z-index:1;left:0}.mdl-progress>.bufferbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);z-index:0;left:0}.mdl-progress>.auxbar{right:0}@supports (-webkit-appearance:none){.mdl-progress:not(.mdl-progress--indeterminate):not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate):not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.7))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7)),linear-gradient(90deg,#3f51b5,#3f51b5);-webkit-mask:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI0Ij48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGR1cj0iMC42cyIgZnJvbT0iMiIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIHRvPSItMTAiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIHI9IjIiIGNsYXNzPSJsb2FkZXIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBkdXI9IjAuNnMiIGZyb209IjE0IiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgdG89IjIiLz48L2NpcmNsZT48L3N2Zz4=");mask:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI0Ij48Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMiI+PGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iY3giIGR1cj0iMC42cyIgZnJvbT0iMiIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIHRvPSItMTAiLz48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNCIgY3k9IjIiIHI9IjIiIGNsYXNzPSJsb2FkZXIiPjxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImN4IiBkdXI9IjAuNnMiIGZyb209IjE0IiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgdG89IjIiLz48L2NpcmNsZT48L3N2Zz4=")}}.mdl-progress:not(.mdl-progress--indeterminate)>.auxbar,.mdl-progress:not(.mdl-progress__indeterminate)>.auxbar{background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.9)),to(hsla(0,0%,100%,.9))),-webkit-gradient(linear,left top,right top,from(#3f51b5),to(#3f51b5));background-image:-webkit-linear-gradient(left,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),-webkit-linear-gradient(left,#3f51b5,#3f51b5);background-image:linear-gradient(90deg,hsla(0,0%,100%,.9),hsla(0,0%,100%,.9)),linear-gradient(90deg,#3f51b5,#3f51b5)}.mdl-progress.mdl-progress--indeterminate>.bar1,.mdl-progress.mdl-progress__indeterminate>.bar1{background-color:#3f51b5;-webkit-animation-name:indeterminate1;animation-name:indeterminate1;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.mdl-progress.mdl-progress--indeterminate>.bar3,.mdl-progress.mdl-progress__indeterminate>.bar3{background-image:none;background-color:#3f51b5;-webkit-animation-name:indeterminate2;animation-name:indeterminate2;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@keyframes indeterminate1{0%{left:0;width:0}50%{left:25%;width:75%}75%{left:100%;width:0}}@-webkit-keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}@keyframes indeterminate2{0%{left:0;width:0}50%{left:0;width:0}75%{left:0;width:25%}to{left:100%;width:0}}body{margin:0}.firebase-container{background-color:#fff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:rgba(0,0,0,.87);direction:ltr;font:16px Roboto,arial,sans-serif;margin:0 auto;max-width:360px;overflow:hidden;padding-top:8px;position:relative;width:100%}.firebase-progress-bar{height:5px;left:0;position:absolute;top:0;width:100%}.firebase-hidden-button{height:1px;visibility:hidden;width:1px}.firebase-container#app-verification-screen{top:100px}.firebase-title{color:rgba(0,0,0,.87);direction:ltr;font-size:24px;font-weight:500;line-height:24px;margin:0;padding:0;text-align:center}.firebase-middle-progress-bar{height:5px;margin-left:auto;margin-right:auto;top:20px;width:250px}.firebase-hidden{display:none}.firebase-rtl{direction:rtl;text-align:right}@media (max-width:520px){.firebase-container{box-shadow:none;max-width:none;width:100%}}']), yp=function(a){var b=ta.apply(1,arguments);hc(a,b.length);for(var c="",d=0;d, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",h&&h[0],g),e.innerHTML=Ac(c),f=e.childNodes}if(f.length==1&&(g=f[0],g.nodeType==1)){b=g;break a}e||(e=b.createElement("DIV"),e.append.apply(e,na(f)));b=e}this.U=b;me(a,this.U);this.Ld()};Dp.prototype.Ld=function(){};Dp.prototype.Qd=function(){}; Dp.prototype.dispose=function(){this.U&&(this.Qd(),oe(this.U),this.U=null)};var Ep=function(){Dp.call(this,Ce)};q(Ep,Dp);Ep.prototype.Ld=function(){var a=fe("progressBar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a)};Ep.prototype.Qd=function(){var a=fe("progressBar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)}; var Fp=function(a,b){Dp.call(this,De,{appName:a});this.ye=b;this.bb=null};q(Fp,Dp);Fp.prototype.Ld=function(){var a=fe("continue"),b=this;this.bb=df(a,"click",function(){b.ye()})};Fp.prototype.Qd=function(){this.bb&&(nf(this.bb),this.bb=null)};var Gp=function(a){Dp.call(this,Ee,{errorMessage:a})};q(Gp,Dp);var Hp=function(a,b){Dp.call(this,Fe,{});this.ye=a||null;this.rc=b||null;this.bb=null};q(Hp,Dp); Hp.prototype.Ld=function(){var a=fe("verify"),b=this;this.ye&&(this.bb=df(a,"click",function(){b.ye()}));a=fe("app-verification-progress-bar");window.componentHandler&&window.componentHandler.upgradeElement&&window.componentHandler.upgradeElement(a);if((a=fe("status-container-label"))&&this.rc){var c=Cp(we(a),this.rc);re(a,c);fb(Bp,this.rc.replace("-","_").toLowerCase())&&wp(a,"firebase-rtl")}};var Ip=function(){var a=fe("status-container");wp(a,"firebase-hidden")}; Hp.prototype.Qd=function(){this.bb&&(nf(this.bb),this.bb=null);var a=fe("app-verification-progress-bar");window.componentHandler&&window.componentHandler.downgradeElements&&window.componentHandler.downgradeElements(a)};var Jp=function(a){this.ig=je("DIV",{id:"progressBarContainer"});var b=this;this.zb=new Hm;this.uri=F(a);this.apiKey=E(this.uri,"apiKey")||null;this.appName=E(this.uri,"appName")||"";this.authType=E(this.uri,"authType")||null;this.Hb=E(this.uri,"eventId")||null;this.ua=E(this.uri,"redirectUrl")||null;this.Ae=E(this.uri,"v")||null;this.jk=(a=E(this.uri,"scopes"))?a.split(","):[];this.Xd={};this.sessionId=E(this.uri,"sessionId")||null;this.cf=E(this.uri,"appDisplayName")||null;this.Pa=E(this.uri,"apn")|| null;this.rb=E(this.uri,"ibi")||null;this.Yd=E(this.uri,"eid")||null;this.clientId=E(this.uri,"clientId")||null;this.ob=E(this.uri,"appId")||null;(this.Eg=(new xd(this.uri.nc)).get("fac")||null)&&console.log("App Check token found.");this.ph=E(this.uri,"hl")||null;this.Vb=E(this.uri,"sha1Cert")||null;this.publicKey=E(this.uri,"publicKey")||null;this.Se=E(this.uri,"tid")||null;a=Nh(E(this.uri,"customParameters")||"{}");this.Xd=typeof a=="object"?a||{}:{};this.providerId=E(this.uri,"providerId")||null; this.Ee=typeof u.POST_BODY==="string"&&u.POST_BODY!="{{POST_BODY}}"&&u.POST_BODY.length!=0?u.POST_BODY:null;this.providerId&&(this.Xd=Mh(this.Xd,ki(this.providerId)));this.bd=(a=E(this.uri,"fw"))?a.split(","):[];this.mode="oauth";this.Sb=null;this.Oh=this.Xf=rh().then(function(){document.body.appendChild(b.ig);b.Sb=new Ep;b.Sb.render(b.ig)});this.Wa=null},Kp={},Lp={jf:["facebook.com"]},Mp={},Np={jf:["facebook.com","apple.com"]},Op={},Pp=function(a){if(a.ua)try{return Ed(vd(td(F(a.ua),""),"")).toString()}catch(b){}else{if(a.Pa)return"file://asset/www/index.html?apn="+ encodeURIComponent(a.Pa);if(a.rb)return"file://asset/www/index.html?ibi="+encodeURIComponent(a.rb)}return null},Qp=function(a,b){return E(a,b)},Rp=function(a){if(!a.apiKey)throw eh("No API key available"),new P("bad-request");a.Wa=new Gj(a.apiKey,Zg(a.Yd),Eh("Handler","2.20.9",a.bd),a.Eg);a.Wa.F=a.Se},Tp=function(a){Sp(a);a.Xf.then(function(){a.Sb=new Ep;a.Sb.render(a.ig)})},Sp=function(a){a.Oh&&a.Oh.cancel();a.Sb&&(a.Sb.dispose(),a.Sb=null)}; Jp.prototype.qc=function(){return this.apiKey?this.apiKey+":"+(this.appName||""):null};Jp.prototype.handleError=function(a){var b=this;if(a instanceof P&&(a.code==="auth/unauthorized-domain"||a.code==="auth/bad-request"))return rh().then(function(){Sp(b);(new Gp(a.message)).render(document.body)});var c=new oi(this.authType||"unknown",this.Hb,null,null,a);return Up(this,c)}; var Vp=function(a,b,c,d){b=new oi(a.authType,a.Hb,b,c,null,d,a.Se);return Up(a,b)},Up=function(a,b){var c=a.qc(),d=!1,e=J();mh()&&!a.ua&&(e=Ug(500));return e.then(function(){if((a.Pa||a.rb)&&a.Wa)return d=!0,Wp(a.Wa,b,a.Pa,a.rb,a.clientId,a.Vb,a.cf,a.Hb,a.ob,a.publicKey);if(a.authType==="verifyApp"&&b.Z)return d=!0,Yp(b.getError());if(c){var f=a.zb;return b.getType().match(/Redirect$/)?f.u.set(Gm,b.o(),c):Zp(f,c,b)}}).then(function(){return a.zb.u.remove(Jm)}).then(function(){if(c)return a.zb.u.remove(Im, c)}).Ab(function(){d?Sp(a):/redirect/i.test(a.authType||"")?(Sp(a),Vh(),fh(a.ua)):a.Ae&&Jh()&&!yh()?a.apiKey?setTimeout(function(){Sp(a);kh()},15E3):(Sp(a),kh()):(Sp(a),kh())})},Wp=function(a,b,c,d,e,f,g,h,k,n){return J().then(function(){if(b.getType()==="verifyApp"&&d){if(!e&&!k)throw new P("invalid-app-id");$p(null,b,c,d,e,f,g,h,k,n)}else return b.getType()==="verifyApp"&&c?$p(null,b,c,d,e,f,g,h,k,n):c?bk(a,c,f).then(function(){var m=null;m=f?J("playservices.app.goo.gl"):Q(a,Lk,{returnDynamicLink:!0}); return m.then(function(r){$p(r,b,c,d,e,f,g,h,k,n)})}):(e?ck(a,e):k?dk(a,k):ak(a,d)).then(function(){$p(null,b,c,d,e,f,g,h,k,n)})}).i(function(m){return Yp(m)})},Yp=function(a){var b=!a||a.code!="auth/dynamic-link-not-activated"&&a.code!="auth/invalid-app-id"&&a.code!="auth/invalid-oauth-client-id"&&a.code!="auth/invalid-api-key"&&a.code!="auth/internal-error"&&a.code!="auth/invalid-cert-hash"?(Td["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"]?Td["fireauth.oauthhelper.ui.soy.temporaryErrorMessage"](void 0, void 0):"An error occurred. Please try again later.").toString():a.message;return rh().then(function(){(new Gp(b)).render(document.body)})},$p=function(a,b,c,d,e,f,g,h,k,n){n=n?"android_non_gmscore":c?"android":"ios";var m=c?c:d,r=null;f?(r=aq(b,c,h,n),m="com.google.android.gms"):(e||k)&&d&&b.getType()!=="verifyApp"&&!b.Z?(r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?authType="+encodeURIComponent(b.getType())+"&link="+encodeURIComponent(b.Ya),h&&(r+="&eventId="+h)):b.Z? (r=window.location.protocol+"//"+window.location.host+"/__/auth/callback?firebaseError="+encodeURIComponent(Kh(b.getError().o()))+"&authType="+encodeURIComponent(b.getType()),h&&(r+="&eventId="+h)):r=b.Ya.replace("/handler","/callback");a=new zi(a,n,m,window.location.host,r,e,k);n=="android"?(Ai(a,g),fh(a.toString(!f))):fh(a.toString(),void 0,!0);setTimeout(function(){dh(null)},4E3)},aq=function(a,b,c,d){if(d==="android_non_gmscore"){d=a.Ya;var e=window.location.protocol+"//"+window.location.host+ "/__/auth/handler";b="intent://firebase.auth/#Intent;scheme="+(a.getType()==="verifyApp"?"recaptcha":"genericidp")+";package="+b+";S.authType="+a.getType()+";";c&&(b+="S.eventId="+c+";");a.Z?b+="S.firebaseError="+encodeURIComponent(Kh(a.getError().o()))+";":(b+="S.link="+encodeURIComponent(d)+";",b+="B.encryptionEnabled=false;");b+="S.browser_fallback_url="+encodeURIComponent(e)+";";a=b+"end;"}else d=Fd("https","fir-auth-gms.firebaseapp.com",null,"/",null,null),D(d,"authType",a.getType()),D(d,"cpn", b),c&&D(d,"eventId",c),a.Z?D(d,"firebaseError",Kh(a.getError().o())):D(d,"link",a.Ya),a=d.toString();return a},Zp=function(a,b,c){var d=u.window&&u.window.opener||null;if(sp()&&d&&/popup/i.test(c.getType()||"")){for(var e=[],f=b.split(":"),g=0;g=10?(eh("Unable to save initial state."),d(new P("bad-request","Unable to save initial state. This may happen if browser sessionStorage is inaccessible."))):Km(a.zb).then(function(f){f?c():setTimeout(e,1)})};e()})};var hq=function(a){Jp.call(this,a)};q(hq,Jp);hq.prototype.start=function(){var a=this;return this.cb().then(function(){return iq(a)}).i(function(b){return b instanceof P?a.handleError(b):a.handleError(new P("internal-error"))})}; hq.prototype.cb=function(){var a=this;return Km(this.zb).then(function(b){if(!b)throw eh("Unable to process request due to missing initial state."),new P("bad-request","Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.");var c=b&&b.C,d=b&&b.getType();if(!c)throw new P("invalid-api-key"); if(!d)throw new P("internal-error");a.apiKey=b.C;a.Yd=b.Zg;a.bd=b.aa;Rp(a);a.appName=b.D;a.authType=b.getType();a.Hb=b.V;a.ua=b.Ec;a.Ae=b.Qa;a.cf=b.wf;a.Pa=b.dc;a.rb=b.hd;a.clientId=b.Eb;a.Vb=b.li;a.Se=b.F;a.providerId=b.Bc;a.ob=b.Ib;a.publicKey=b.Xh})}; var jq=function(a,b){if(a.Ee&&a.providerId==="apple.com"){b=F(b);var c=Yh(a.Ee);a.Ee=null;for(var d in c)c.hasOwnProperty(d)&&D(b,d,c[d]);return b.toString()}return b},iq=function(a){var b=jq(a,a.uri.toString()),c=a.qc();return a.zb.oc(c).then(function(d){if(!d)throw new P("internal-error");return Vp(a,b,d,a.Ee)})};var kq=null;function lq(a){mq();rh().then(function(){var b=new Fp(a.appName,function(){b.dispose();fh(a.toString());setTimeout(function(){dh(null)},4E3)});b.render(document.body)})}function nq(a){var b=a;try{var c=ni(Nh(a));c&&c.message&&(b=c.message)}catch(d){}mq();rh().then(function(){(new Gp(b)).render(document.body)})} function mq(){if(typeof yp!=="undefined"){var a=Ea||(Ea=new xe),b=ye(a,"HEAD")[0];if(!b){var c=ye(a,"BODY")[0];b=a.Rg("HEAD");c.parentNode.insertBefore(b,c)}c=a.Rg("STYLE");var d=Cc("style",document);d&&c.setAttribute("nonce",d);d=Gc(yp);u.trustedTypes?re(c,d):c.innerHTML=d;a.appendChild(b,c)}};for(var oq=function(){var a=bh();switch(E(F(a),"blank")?"blank":Qp(F(a),"authType")==="verifyApp"?"verifyApp":Bi(a)?"dynamicLink":E(F(a),"firebaseError")?"error":Qp(F(a),"apiKey")?"starter":"finisher"){case "blank":dh(null);return;case "dynamicLink":a=Bi(a);lq(a);return;case "error":a=E(F(a),"firebaseError")||null;nq(a);return;case "starter":kq=new dq(a);break;case "finisher":kq=new hq(a);break;case "verifyApp":kq=new bq(a)}mq();kq.start()},pq=["fireauth","oauthhelper","widget","initialize"],qq=u, rq;pq.length&&(rq=pq.shift());)pq.length||oq===void 0?qq=qq[rq]&&qq[rq]!==Object.prototype[rq]?qq[rq]:qq[rq]={}:qq[rq]=oq;}).call(this);