!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).firebase=t()}(this,(function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||0"}))):"Error",e=this.serviceName+": "+e+" ("+o+").";return new c(o,e,i)},f);function f(e,t,n){this.service=e,this.serviceName=t,this.errors=n}var h=/\{\$([^}]+)}/g;function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return(t=new m(e,t)).subscribe.bind(t)}var m=(y.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},y.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},y.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},y.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");return void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=["next","error","complete"];ni[0]&&a[1]=(null!=r?r:t.logLevel)&&e({level:C[n].toLowerCase(),message:a,args:i,type:t.name})}}(r[n])}(e,t)},apps:null,SDK_VERSION:"8.10.1",INTERNAL:{registerComponent:a,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){return"serverAuth"!==t?t:null}}};function i(e){if(!d(t,e=e||x))throw F.create("no-app",{appName:e});return t[e]}function a(a){var s,l=a.name;if(n.has(l))return V.debug("There were multiple attempts to register component "+l+"."),"PUBLIC"===a.type?r[l]:null;n.set(l,a),"PUBLIC"===a.type&&(s=function(e){if("function"!=typeof(e=void 0===e?i():e)[l])throw F.create("invalid-app-argument",{appName:l});return e[l]()},void 0!==a.serviceProps&&o(s,a.serviceProps),r[l]=s,e.prototype[l]=function(){for(var e=[],t=0;t