1import{i as A,c as F,E as b,d as l,L as I,r as h,_ as u,C as L,a as O,D as d,b as S,s as R,o as w,S as y,m as P,e as m,f as D,g as T}from"./index.esm2017-07005658.js";class V{constructor(e,a){this._delegate=e,this.firebase=a,u(e,new L("app-compat",()=>this,"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(e=>{this._delegate.checkDestroyed(),e()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),O(this._delegate)))}_getService(e,a=d){var o;this._delegate.checkDestroyed();const r=this._delegate.container.getProvider(e);return!r.isInitialized()&&((o=r.getComponent())===null||o===void 0?void 0:o.instantiationMode)==="EXPLICIT"&&r.initialize(),r.getImmediate({identifier:a})}_removeServiceInstance(e,a=d){this._delegate.container.getProvider(e).clearInstance(a)}_addComponent(e){u(this._delegate,e)}_addOrOverwriteComponent(e){S(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const k={"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."},g=new b("app-compat","Firebase",k);function x(i){const e={},a={__esModule:!0,initializeApp:C,app:r,registerVersion:h,setLogLevel:R,onLog:w,apps:null,SDK_VERSION:y,INTERNAL:{registerComponent:N,removeApp:o,useAsService:E,modularAPIs:P}};a.default=a,Object.defineProperty(a,"apps",{get:_});function o(t){delete e[t]}function r(t){if(t=t||d,!m(e,t))throw g.create("no-app",{appName:t});return e[t]}r.App=i;function C(t,s={}){const n=D(t,s);if(m(e,n.name))return e[n.name];const p=new i(n,a);return e[n.name]=p,p}function _(){return Object.keys(e).map(t=>e[t])}function N(t){const s=t.name,n=s.replace("-compat","");if(T(t)&&t.type==="PUBLIC"){const p=(c=r())=>{if(typeof c[n]!="function")throw g.create("invalid-app-argument",{appName:s});return c[n]()};t.serviceProps!==void 0&&l(p,t.serviceProps),a[n]=p,i.prototype[n]=function(...c){return this._getService.bind(this,s).apply(this,t.multipleInstances?c:[])}}return t.type==="PUBLIC"?a[n]:null}function E(t,s){return s==="serverAuth"?null:s}return a}function v(){const i=x(V);i.INTERNAL=Object.assign(Object.assign({},i.INTERNAL),{createFirebaseNamespace:v,extendNamespace:e,createSubscribe:F,ErrorFactory:b,deepExtend:l});function e(a){l(i,a)}return i}const z=v();const f=new I("@firebase/app-compat"),$="@firebase/app-compat",j="0.2.13";function B(i){h($,j,i)}if(A()&&self.firebase!==void 0){f.warn(` 2 Warning: Firebase is already defined in the global scope. Please make sure 3 Firebase library is only loaded once. 4 `);const i=self.firebase.SDK_VERSION;i&&i.indexOf("LITE")>=0&&f.warn(` 5 Warning: You are trying to load Firebase while using Firebase Performance standalone script. 6 You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code. 7 `)}const U=z;B();var Y="firebase",K="9.23.0";U.registerVersion(Y,K,"app-compat");export{U as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.