1(self.webpackChunkoscus=self.webpackChunkoscus||[]).push([[179],{2313:(wn,bt,D)=>{"use strict";D.d(bt,{nm:()=>cr});var g=D(3324),ve=(D(4650),D(3692),D(259),D(5861)),ae=D(6881),Te=D(4859),se=D(2090),z=D(1877);const x=new Map,G={activated:!1,tokenObservers:[]},de={initialized:!1,enabled:!1};function dt(Ke){return x.get(Ke)||Object.assign({},G)}function We(){return de}class fe{constructor(Ge,ht,Kt,we,ct){if(this.operation=Ge,this.retryPolicy=ht,this.getWaitDuration=Kt,this.lowerBound=we,this.upperBound=ct,this.pending=null,this.nextErrorWaitInterval=we,we>ct)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(Ge){var ht=this;return(0,ve.Z)(function*(){ht.stop();try{ht.pending=new se.BH,yield function ut(Ke){return new Promise(Ge=>{setTimeout(Ge,Ke)})}(ht.getNextRun(Ge)),ht.pending.resolve(),yield ht.pending.promise,ht.pending=new se.BH,yield ht.operation(),ht.pending.resolve(),yield ht.pending.promise,ht.process(!0).catch(()=>{})}catch(Kt){ht.retryPolicy(Kt)?ht.process(!1).catch(()=>{}):ht.stop()}})()}getNextRun(Ge){if(Ge)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const ht=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),ht}}}const it=new se.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function xt(Ke){if(!dt(Ke).activated)throw it.create("use-before-activation",{appName:Ke.name})}function pn(Ke,Ge){return $t.apply(this,arguments)}function $t(){return($t=(0,ve.Z)(function*({url:Ke,body:Ge},ht){const Kt={"Content-Type":"application/json"},we=ht.getImmediate({optional:!0});if(we){const $i=yield we.getHeartbeatsHeader();$i&&(Kt["X-Firebase-Client"]=$i)}const ct={method:"POST",body:JSON.stringify(Ge),headers:Kt};let jt,Mn;try{jt=yield fetch(Ke,ct)}catch($i){throw it.create("fetch-network-error",{originalErrorMessage:$i?.message})}if(200!==jt.status)throw it.create("fetch-status-error",{httpStatus:jt.status});try{Mn=yield jt.json()}catch($i){throw it.create("fetch-parse-error",{originalErrorMessage:$i?.message})}const Jn=Mn.ttl.match(/^([\d.]+)(s)$/);if(!Jn||!Jn[2]||isNaN(Number(Jn[1])))throw it.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Mn.ttl}`});const Mi=1e3*Number(Jn[1]),Ti=Date.now();return{token:Mn.token,expireTimeMillis:Ti+Mi,issuedAtTimeMillis:Ti}})).apply(this,arguments)}function gn(Ke,Ge){const{projectId:ht,appId:Kt,apiKey:we}=Ke.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${ht}/apps/${Kt}:exchangeDebugToken?key=${we}`,body:{debug_token:Ge}}}const St="firebase-app-check-store";let je=null;function ie(){return je||(je=new Promise((Ke,Ge)=>{try{const ht=indexedDB.open("firebase-app-check-database",1);ht.onsuccess=Kt=>{Ke(Kt.target.result)},ht.onerror=Kt=>{var we;Ge(it.create("storage-open",{originalErrorMessage:null===(we=Kt.target.error)||void 0===we?void 0:we.message}))},ht.onupgradeneeded=Kt=>{0===Kt.oldVersion&&Kt.target.result.createObjectStore(St,{keyPath:"compositeKey"})}}catch(ht){Ge(it.create("storage-open",{originalErrorMessage:ht?.message}))}}),je)}function qn(){return(qn=(0,ve.Z)(function*(Ke,Ge){const Kt=(yield ie()).transaction(St,"readwrite"),ct=Kt.objectStore(St).put({compositeKey:Ke,value:Ge});return new Promise((jt,Mn)=>{ct.onsuccess=Jn=>{jt()},Kt.onerror=Jn=>{var Mi;Mn(it.create("storage-set",{originalErrorMessage:null===(Mi=Jn.target.error)||void 0===Mi?void 0:Mi.message}))}})})).apply(this,arguments)}const Wn=new z.Yd("@firebase/app-check");function yi(Ke,Ge){return(0,se.hl)()?function Wt(Ke,Ge){return function Gn(Ke,Ge){return qn.apply(this,arguments)}(function An(Ke){return`${Ke.options.appId}-${Ke.name}`}(Ke),Ge)}(Ke,Ge).catch(ht=>{Wn.warn(`Failed to write token to IndexedDB. Error: ${ht}`)}):Promise.resolve()}function zn(){return We().enabled}function ri(){return Pi.apply(this,arguments)}function Pi(){return(Pi=(0,ve.Z)(function*(){const Ke=We();if(Ke.enabled&&Ke.token)return Ke.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const ei={error:"UNKNOWN_ERROR"};function Ze(Ke){return se.US.encodeString(JSON.stringify(Ke),!1)}function Oe(Ke){return P.apply(this,arguments)}function P(){return(P=(0,ve.Z)(function*(Ke,Ge=!1){const ht=Ke.app;xt(ht);const Kt=dt(ht);let ct,we=Kt.token;if(we&&!wt(we)&&(Kt.token=void 0,we=void 0),!we){const Jn=yield Kt.cachedTokenPromise;Jn&&(wt(Jn)?we=Jn:yield yi(ht,void 0))}if(!Ge&&we&&wt(we))return{token:we.token};let Mn,jt=!1;if(zn()){Kt.exchangeTokenPromise||(Kt.exchangeTokenPromise=pn(gn(ht,yield ri()),Ke.heartbeatServiceProvider).finally(()=>{Kt.exchangeTokenPromise=void 0}),jt=!0);const Jn=yield Kt.exchangeTokenPromise;return yield yi(ht,Jn),Kt.token=Jn,{token:Jn.token}}try{Kt.exchangeTokenPromise||(Kt.exchangeTokenPromise=Kt.provider.getToken().finally(()=>{Kt.exchangeTokenPromise=void 0}),jt=!0),we=yield dt(ht).exchangeTokenPromise}catch(Jn){"appCheck/throttled"===Jn.code?Wn.warn(Jn.message):Wn.error(Jn),ct=Jn}return we?ct?Mn=wt(we)?{token:we.token,internalError:ct}:on(ct):(Mn={token:we.token},Kt.token=we,yield yi(ht,we)):Mn=on(ct),jt&&Je(ht,Mn),Mn})).apply(this,arguments)}function O(){return(O=(0,ve.Z)(function*(Ke){const Ge=Ke.app;xt(Ge);const{provider:ht}=dt(Ge);if(zn()){const Kt=yield ri(),{token:we}=yield pn(gn(Ge,Kt),Ke.heartbeatServiceProvider);return{token:we}}{const{token:Kt}=yield ht.getToken();return{token:Kt}}})).apply(this,arguments)}function ke(Ke,Ge){const ht=dt(Ke),Kt=ht.tokenObservers.filter(we=>we.next!==Ge);0===Kt.length&&ht.tokenRefresher&&ht.tokenRefresher.isRunning()&&ht.tokenRefresher.stop(),ht.tokenObservers=Kt}function De(Ke){const{app:Ge}=Ke,ht=dt(Ge);let Kt=ht.tokenRefresher;Kt||(Kt=function ye(Ke){const{app:Ge}=Ke;return new fe((0,ve.Z)(function*(){let Kt;if(Kt=dt(Ge).token?yield Oe(Ke,!0):yield Oe(Ke),Kt.error)throw Kt.error;if(Kt.internalError)throw Kt.internalError}),()=>!0,()=>{const ht=dt(Ge);if(ht.token){let Kt=ht.token.issuedAtTimeMillis+.5*(ht.token.expireTimeMillis-ht.token.issuedAtTimeMillis)+3e5;return Kt=Math.min(Kt,ht.token.expireTimeMillis-3e5),Math.max(0,Kt-Date.now())}return 0},3e4,96e4)}(Ke),ht.tokenRefresher=Kt),!Kt.isRunning()&&ht.isTokenAutoRefreshEnabled&&Kt.start()}function Je(Ke,Ge){const ht=dt(Ke).tokenObservers;
1for(const Kt of ht)try{"EXTERNAL"===Kt.type&&null!=Ge.error?Kt.error(Ge.error):Kt.next(Ge)}catch{}}function wt(Ke){return Ke.expireTimeMillis-Date.now()>0}function on(Ke){return{token:Ze(ei),error:Ke}}class st{constructor(Ge,ht){this.app=Ge,this.heartbeatServiceProvider=ht}_delete(){const{tokenObservers:Ge}=dt(this.app);for(const ht of Ge)ke(this.app,ht.next);return Promise.resolve()}}const vn="app-check-internal";!function ni(){(0,ae._registerComponent)(new Te.wA("app-check",Ke=>function Ee(Ke,Ge){return new st(Ke,Ge)}(Ke.getProvider("app").getImmediate(),Ke.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Ke,Ge,ht)=>{Ke.getProvider(vn).initialize()})),(0,ae._registerComponent)(new Te.wA(vn,Ke=>function V(Ke){return{getToken:Ge=>Oe(Ke,Ge),getLimitedUseToken:()=>function le(Ke){return O.apply(this,arguments)}(Ke),addTokenListener:Ge=>function Q(Ke,Ge,ht,Kt){const{app:we}=Ke,ct=dt(we);if(ct.tokenObservers=[...ct.tokenObservers,{next:ht,error:Kt,type:Ge}],ct.token&&wt(ct.token)){const Mn=ct.token;Promise.resolve().then(()=>{ht({token:Mn.token}),De(Ke)}).catch(()=>{})}ct.cachedTokenPromise.then(()=>De(Ke))}(Ke,"INTERNAL",Ge),removeTokenListener:Ge=>ke(Ke.app,Ge)}}(Ke.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,ae.registerVersion)("@firebase/app-check","0.8.0")}();class cr{constructor(){return(0,g.vb)("app-check")}}typeof window<"u"&&window},3692:(wn,bt,D)=>{"use strict";D.d(bt,{Ot:()=>me,ZF:()=>qe,hX:()=>dt,z6:()=>ve});var g=D(259),e=D(4650),R=D(3324);class me{constructor(fe){return fe}}class ve{constructor(){return(0,g.C6)()}}const se=new e.OlP("angularfire2._apps"),z={provide:me,useFactory:function Te(ot){return ot&&1===ot.length?ot[0]:new me((0,g.Mq)())},deps:[[new e.FiY,se]]},x={provide:ve,deps:[[new e.FiY,se]]};function G(ot){return(fe,ut)=>{const Ye=fe.runOutsideAngular(()=>ot(ut));return new me(Ye)}}let de=(()=>{class ot{constructor(ut){(0,g.KN)("angularfire",R.q4.full,"core"),(0,g.KN)("angularfire",R.q4.full,"app"),(0,g.KN)("angular",e.q4F.full,ut.toString())}}return ot.\u0275fac=function(ut){return new(ut||ot)(e.LFG(e.Lbi))},ot.\u0275mod=e.oAB({type:ot}),ot.\u0275inj=e.cJS({providers:[z,x]}),ot})();function dt(ot,...fe){return{ngModule:de,providers:[{provide:se,useFactory:G(ot),multi:!0,deps:[e.R0b,e.zs3,R.HU,...fe]}]}}const qe=(0,R.u3)(g.ZF,!0)},3385:(wn,bt,D)=>{"use strict";D.d(bt,{zQ:()=>zt,rT:()=>it,f7:()=>xt,L6:()=>ut,_Q:()=>Ye,lh:()=>ze,Qv:()=>fe,nw:()=>mt});var g=D(4650),e=D(7579),R=D(9646),me=D(9751),ve=D(8996),ae=D(6451),Te=D(5363),se=D(3900),z=D(4004),x=D(4782),G=D(590),de=D(576);function dt($t,Vn){return(0,de.m)(Vn)?(0,se.w)(()=>$t,Vn):(0,se.w)(()=>$t)}var Mt=D(9468),We=D(9300),At=D(3324),qe=D(2011),lt=D(6895),sn=D(2313);D(9260);const fe=new g.OlP("angularfire2.auth.use-emulator"),ut=new g.OlP("angularfire2.auth.settings"),Ye=new g.OlP("angularfire2.auth.tenant-id"),it=new g.OlP("angularfire2.auth.langugage-code"),ze=new g.OlP("angularfire2.auth.use-device-language"),xt=new g.OlP("angularfire.auth.persistence"),mt=($t,Vn,Ut,gn,tt,Zt,St,$e)=>(0,qe.cc)(`${$t.name}.auth`,"AngularFireAuth",$t.name,()=>{const je=Vn.runOutsideAngular(()=>$t.auth());if(Ut&&je.useEmulator(...Ut),gn&&(je.tenantId=gn),je.languageCode=tt,Zt&&je.useDeviceLanguage(),St)for(const[ie,ft]of Object.entries(St))je.settings[ie]=ft;return $e&&je.setPersistence($e),je},[Ut,gn,tt,Zt,St,$e]);let zt=(()=>{class $t{constructor(Ut,gn,tt,Zt,St,$e,je,ie,ft,Wt,Dt,hn){const Gn=new e.x,qn=(0,R.of)(void 0).pipe((0,Te.Q)(St.outsideAngular),(0,se.w)(()=>Zt.runOutsideAngular(()=>Promise.resolve().then(D.bind(D,9568)))),(0,z.U)(()=>(0,qe.on)(Ut,Zt,gn)),(0,z.U)(kn=>mt(kn,Zt,$e,ie,ft,Wt,je,Dt)),(0,x.d)({bufferSize:1,refCount:!1}));if((0,lt.PM)(tt))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,R.of)(null);else{qn.pipe((0,G.P)()).subscribe();const ai=qn.pipe((0,se.w)(Ln=>Ln.getRedirectResult().then(Hn=>Hn,()=>null)),At.iC,(0,x.d)({bufferSize:1,refCount:!1})),An=qn.pipe((0,se.w)(Ln=>new me.y(Hn=>({unsubscribe:Zt.runOutsideAngular(()=>Ln.onAuthStateChanged(yi=>Hn.next(yi),yi=>Hn.error(yi),()=>Hn.complete()))})))),Wn=qn.pipe((0,se.w)(Ln=>new me.y(Hn=>({unsubscribe:Zt.runOutsideAngular(()=>Ln.onIdTokenChanged(yi=>Hn.next(yi),yi=>Hn.error(yi),()=>Hn.complete()))}))));this.authState=ai.pipe(dt(An),(0,Mt.R)(St.outsideAngular),(0,Te.Q)(St.insideAngular)),this.user=ai.pipe(dt(Wn),(0,Mt.R)(St.outsideAngular),(0,Te.Q)(St.insideAngular)),this.idToken=this.user.pipe((0,se.w)(Ln=>Ln?(0,ve.D)(Ln.getIdToken()):(0,R.of)(null))),this.idTokenResult=this.user.pipe((0,se.w)(Ln=>Ln?(0,ve.D)(Ln.getIdTokenResult()):(0,R.of)(null))),this.credential=(0,ae.T)(ai,Gn,this.authState.pipe((0,We.h)(Ln=>!Ln))).pipe((0,z.U)(Ln=>Ln?.user?Ln:null),(0,Mt.R)(St.outsideAngular),(0,Te.Q)(St.insideAngular))}return(0,qe.pX)(this,qn,Zt,{spy:{apply:(kn,ai,An)=>{(kn.startsWith("signIn")||kn.startsWith("createUser"))&&An.then(Wn=>Gn.next(Wn))}}})}}return $t.\u0275fac=function(Ut){return new(Ut||$t)(g.LFG(qe.Dh),g.LFG(qe.xv,8),g.LFG(g.Lbi),g.LFG(g.R0b),g.LFG(At.HU),g.LFG(fe,8),g.LFG(ut,8),g.LFG(Ye,8),g.LFG(it,8),g.LFG(ze,8),g.LFG(xt,8),g.LFG(sn.nm,8))},$t.\u0275prov=g.Yz7({token:$t,factory:$t.\u0275fac,providedIn:"any"}),$t})()},1085:(wn,bt,D)=>{"use strict";D.d(bt,{ST:()=>on,yb:()=>st});var g=D(4650),e=D(4986),R=D(9751),me=D(8996),ve=D(9646),ae=D(3324),Te=D(8675),se=D(1520),z=D(4004),x=D(5026),G=D(1884),de=D(9300),dt=D(2011),Mt=D(6895),At=(D(9568),D(3942)),qe=D(2810),lt=D(2090),sn=D(4859);function fe(Ee,V){if(void 0===V)return{merge:!1};if(void 0!==V.mergeFields&&void 0!==V.merge)throw new qe.WA("invalid-argument",`Invalid options passed to function ${Ee}(): You cannot specify both "merge" and "mergeFields".`);return V}
1function ut(){if(typeof Uint8Array>"u")throw new qe.WA("unimplemented","Uint8Arrays are not available in this environment.")}function Ye(){if(!(0,qe.Me)())throw new qe.WA("unimplemented","Blobs are unavailable in Firestore in this environment.")}class it{constructor(V){this._delegate=V}static fromBase64String(V){return Ye(),new it(qe.Jj.fromBase64String(V))}static fromUint8Array(V){return ut(),new it(qe.Jj.fromUint8Array(V))}toBase64(){return Ye(),this._delegate.toBase64()}toUint8Array(){return ut(),this._delegate.toUint8Array()}isEqual(V){return this._delegate.isEqual(V._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function ze(Ee){return function xt(Ee,V){if("object"!=typeof Ee||null===Ee)return!1;const _e=Ee;for(const Tt of V)if(Tt in _e&&"function"==typeof _e[Tt])return!0;return!1}(Ee,["next","error","complete"])}class mt{enableIndexedDbPersistence(V,_e){return(0,qe.ST)(V._delegate,{forceOwnership:_e})}enableMultiTabIndexedDbPersistence(V){return(0,qe.fH)(V._delegate)}clearIndexedDbPersistence(V){return(0,qe.Fc)(V._delegate)}}class zt{constructor(V,_e,Tt){this._delegate=_e,this._persistenceProvider=Tt,this.INTERNAL={delete:()=>this.terminate()},V instanceof qe.l7||(this._appCompat=V)}get _databaseId(){return this._delegate._databaseId}settings(V){const _e=this._delegate._getSettings();!V.merge&&_e.host!==V.host&&(0,qe.yq)("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),V.merge&&delete(V=Object.assign(Object.assign({},_e),V)).merge,this._delegate._setSettings(V)}useEmulator(V,_e,Tt={}){(0,qe.at)(this._delegate,V,_e,Tt)}enableNetwork(){return(0,qe.Ix)(this._delegate)}disableNetwork(){return(0,qe.TF)(this._delegate)}enablePersistence(V){let _e=!1,Tt=!1;return V&&(_e=!!V.synchronizeTabs,Tt=!!V.experimentalForceOwningTab,(0,qe.Wi)("synchronizeTabs",_e,"experimentalForceOwningTab",Tt)),_e?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,Tt)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return(0,qe.Mx)(this._delegate)}onSnapshotsInSync(V){return(0,qe.sc)(this._delegate,V)}get app(){if(!this._appCompat)throw new qe.WA("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(V){try{return new hn(this,(0,qe.hJ)(this._delegate,V))}catch(_e){throw Zt(_e,"collection()","Firestore.collection()")}}doc(V){try{return new tt(this,(0,qe.JU)(this._delegate,V))}catch(_e){throw Zt(_e,"doc()","Firestore.doc()")}}collectionGroup(V){try{return new ft(this,(0,qe.B$)(this._delegate,V))}catch(_e){throw Zt(_e,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(V){return(0,qe.i3)(this._delegate,_e=>V(new Vn(this,_e)))}batch(){return(0,qe.qY)(this._delegate),new Ut(new qe.PU(this._delegate,V=>(0,qe.GL)(this._delegate,V)))}loadBundle(V){return(0,qe.Pb)(this._delegate,V)}namedQuery(V){return(0,qe.L$)(this._delegate,V).then(_e=>_e?new ft(this,_e):null)}}class pn extends qe.u7{constructor(V){super(),this.firestore=V}convertBytes(V){return new it(new qe.Jj(V))}convertReference(V){const _e=this.convertDocumentKey(V,this.firestore._databaseId);return tt.forKey(_e,this.firestore,null)}}class Vn{constructor(V,_e){this._firestore=V,this._delegate=_e,this._userDataWriter=new pn(V)}get(V){const _e=Gn(V);return this._delegate.get(_e).then(Tt=>new je(this._firestore,new qe.xU(this._firestore._delegate,this._userDataWriter,Tt._key,Tt._document,Tt.metadata,_e.converter)))}set(V,_e,Tt){const un=Gn(V);return Tt?(fe("Transaction.set",Tt),this._delegate.set(un,_e,Tt)):this._delegate.set(un,_e),this}update(V,_e,Tt,...un){const Yn=Gn(V);return 2===arguments.length?this._delegate.update(Yn,_e):this._delegate.update(Yn,_e,Tt,...un),this}delete(V){const _e=Gn(V);return this._delegate.delete(_e),this}}class Ut{constructor(V){this._delegate=V}set(V,_e,Tt){const un=Gn(V);return Tt?(fe("WriteBatch.set",Tt),this._delegate.set(un,_e,Tt)):this._delegate.set(un,_e),this}update(V,_e,Tt,...un){const Yn=Gn(V);return 2===arguments.length?this._delegate.update(Yn,_e):this._delegate.update(Yn,_e,Tt,...un),this}delete(V){const _e=Gn(V);return this._delegate.delete(_e),this}commit(){return this._delegate.commit()}}class gn{constructor(V,_e,Tt){this._firestore=V,this._userDataWriter=_e,this._delegate=Tt}fromFirestore(V,_e){const Tt=new qe.$q(this._firestore._delegate,this._userDataWriter,V._key,V._document,V.metadata,null);return this._delegate.fromFirestore(new ie(this._firestore,Tt),_e??{})}toFirestore(V,_e){return _e?this._delegate.toFirestore(V,_e):this._delegate.toFirestore(V)}static getInstance(V,_e){const Tt=gn.INSTANCES;let un=Tt.get(V);un||(un=new WeakMap,Tt.set(V,un));let Yn=un.get(_e);return Yn||(Yn=new gn(V,new pn(V),_e),un.set(_e,Yn)),Yn}}gn.INSTANCES=new WeakMap;class tt{constructor(V,_e){this.firestore=V,this._delegate=_e,this._userDataWriter=new pn(V)}static forPath(V,_e,Tt){if(V.length%2!=0)throw new qe.WA("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${V.canonicalString()} has ${V.length}`);return new tt(_e,new qe.my(_e._delegate,Tt,new qe.Ky(V)))}static forKey(V,_e,Tt){return new tt(_e,new qe.my(_e._delegate,Tt,V))}get id(){return this._delegate.id}get parent(){return new hn(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(V){try{return new hn(this.firestore,(0,qe.hJ)(this._delegate,V))}catch(_e){throw Zt(_e,"collection()","DocumentReference.collection()")}}isEqual(V){return(V=(0,lt.m9)(V))instanceof qe.my&&(0,qe.Eo)(this._delegate,V)}set(V,_e){_e=fe("DocumentReference.set",_e);try{return _e?(0,qe.pl)(this._delegate,V,_e):(0,qe.pl)(this._delegate,V)}catch(Tt){throw Zt(Tt,"setDoc()","DocumentReference.set()")}}update(V,_e,...Tt){try{return 1===arguments.length?(0,qe.r7)(this._delegate,V):(0,qe.r7)(this._delegate,V,_e,...Tt)}
1catch(un){throw Zt(un,"updateDoc()","DocumentReference.update()")}}delete(){return(0,qe.oe)(this._delegate)}onSnapshot(...V){const _e=St(V),Tt=$e(V,un=>new je(this.firestore,new qe.xU(this.firestore._delegate,this._userDataWriter,un._key,un._document,un.metadata,this._delegate.converter)));return(0,qe.cf)(this._delegate,_e,Tt)}get(V){let _e;return _e="cache"===V?.source?(0,qe.kl)(this._delegate):"server"===V?.source?(0,qe.Xk)(this._delegate):(0,qe.QT)(this._delegate),_e.then(Tt=>new je(this.firestore,new qe.xU(this.firestore._delegate,this._userDataWriter,Tt._key,Tt._document,Tt.metadata,this._delegate.converter)))}withConverter(V){return new tt(this.firestore,this._delegate.withConverter(V?gn.getInstance(this.firestore,V):null))}}function Zt(Ee,V,_e){return Ee.message=Ee.message.replace(V,_e),Ee}function St(Ee){for(const V of Ee)if("object"==typeof V&&!ze(V))return V;return{}}function $e(Ee,V){var _e,Tt;let un;return un=ze(Ee[0])?Ee[0]:ze(Ee[1])?Ee[1]:"function"==typeof Ee[0]?{next:Ee[0],error:Ee[1],complete:Ee[2]}:{next:Ee[1],error:Ee[2],complete:Ee[3]},{next:Yn=>{un.next&&un.next(V(Yn))},error:null===(_e=un.error)||void 0===_e?void 0:_e.bind(un),complete:null===(Tt=un.complete)||void 0===Tt?void 0:Tt.bind(un)}}class je{constructor(V,_e){this._firestore=V,this._delegate=_e}get ref(){return new tt(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(V){return this._delegate.data(V)}get(V,_e){return this._delegate.get(V,_e)}isEqual(V){return(0,qe.qK)(this._delegate,V._delegate)}}class ie extends je{data(V){const _e=this._delegate.data(V);return(0,qe.K9)(void 0!==_e,"Document in a QueryDocumentSnapshot should exist"),_e}}class ft{constructor(V,_e){this.firestore=V,this._delegate=_e,this._userDataWriter=new pn(V)}where(V,_e,Tt){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.ar)(V,_e,Tt)))}catch(un){throw Zt(un,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(V,_e){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.Xo)(V,_e)))}catch(Tt){throw Zt(Tt,/(orderBy|where)\(\)/,"Query.$1()")}}limit(V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.b9)(V)))}catch(_e){throw Zt(_e,"limit()","Query.limit()")}}limitToLast(V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.vh)(V)))}catch(_e){throw Zt(_e,"limitToLast()","Query.limitToLast()")}}startAt(...V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.e0)(...V)))}catch(_e){throw Zt(_e,"startAt()","Query.startAt()")}}startAfter(...V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.TQ)(...V)))}catch(_e){throw Zt(_e,"startAfter()","Query.startAfter()")}}endBefore(...V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.Lx)(...V)))}catch(_e){throw Zt(_e,"endBefore()","Query.endBefore()")}}endAt(...V){try{return new ft(this.firestore,(0,qe.IO)(this._delegate,(0,qe.Wu)(...V)))}catch(_e){throw Zt(_e,"endAt()","Query.endAt()")}}isEqual(V){return(0,qe.iE)(this._delegate,V._delegate)}get(V){let _e;return _e="cache"===V?.source?(0,qe.UQ)(this._delegate):"server"===V?.source?(0,qe.zN)(this._delegate):(0,qe.PL)(this._delegate),_e.then(Tt=>new Dt(this.firestore,new qe.W(this.firestore._delegate,this._userDataWriter,this._delegate,Tt._snapshot)))}onSnapshot(...V){const _e=St(V),Tt=$e(V,un=>new Dt(this.firestore,new qe.W(this.firestore._delegate,this._userDataWriter,this._delegate,un._snapshot)));return(0,qe.cf)(this._delegate,_e,Tt)}withConverter(V){return new ft(this.firestore,this._delegate.withConverter(V?gn.getInstance(this.firestore,V):null))}}class Wt{constructor(V,_e){this._firestore=V,this._delegate=_e}get type(){return this._delegate.type}get doc(){return new ie(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class Dt{constructor(V,_e){this._firestore=V,this._delegate=_e}get query(){return new ft(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map(V=>new ie(this._firestore,V))}docChanges(V){return this._delegate.docChanges(V).map(_e=>new Wt(this._firestore,_e))}forEach(V,_e){this._delegate.forEach(Tt=>{V.call(_e,new ie(this._firestore,Tt))})}isEqual(V){return(0,qe.qK)(this._delegate,V._delegate)}}class hn extends ft{constructor(V,_e){super(V,_e),this.firestore=V,this._delegate=_e}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){const V=this._delegate.parent;return V?new tt(this.firestore,V):null}doc(V){try{return new tt(this.firestore,void 0===V?(0,qe.JU)(this._delegate):(0,qe.JU)(this._delegate,V))}catch(_e){throw Zt(_e,"doc()","CollectionReference.doc()")}}add(V){return(0,qe.ET)(this._delegate,V).then(_e=>new tt(this.firestore,_e))}isEqual(V){return(0,qe.Eo)(this._delegate,V._delegate)}withConverter(V){return new hn(this.firestore,this._delegate.withConverter(V?gn.getInstance(this.firestore,V):null))}}function Gn(Ee){return(0,qe.Cf)(Ee,qe.my)}class qn{constructor(...V){this._delegate=new qe.Lz(...V)}static documentId(){return new qn(qe.Xb.keyField().canonicalString())}isEqual(V){return(V=(0,lt.m9)(V))instanceof qe.Lz&&this._delegate._internalPath.isEqual(V._internalPath)}}class kn{constructor(V){this._delegate=V}static serverTimestamp(){const V=(0,qe.Bt)();return V._methodName="FieldValue.serverTimestamp",new kn(V)}static delete(){const V=(0,qe.AK)();return V._methodName="FieldValue.delete",new kn(V)}static arrayUnion(...V){const _e=(0,qe.vr)(...V);return _e._methodName="FieldValue.arrayUnion",new kn(_e)}static arrayRemove(...V){const _e=(0,qe.Ab)(...V);return _e._methodName="FieldValue.arrayRemove",new kn(_e)}static increment(V){const _e=(0,qe.nP)(V);return _e._methodName="FieldValue.increment",new kn(_e)}isEqual(V){return this._delegate.isEqual(V._delegate)}}const ai={Firestore:zt,GeoPoint:qe.F8,Timestamp:qe.EK,Blob:it,Transaction:Vn,WriteBatch:Ut,DocumentReference:tt,DocumentSnapshot:je,Query:ft,QueryDocumentSnapshot:ie,QuerySnapsh
1ot:Dt,CollectionReference:hn,FieldPath:qn,FieldValue:kn,setLogLevel:function $t(Ee){(0,qe.Ub)(Ee)},CACHE_SIZE_UNLIMITED:qe.IX};!function Wn(Ee){(function An(Ee,V){Ee.INTERNAL.registerComponent(new sn.wA("firestore-compat",_e=>{const Tt=_e.getProvider("app-compat").getImmediate(),un=_e.getProvider("firestore").getImmediate();return V(Tt,un)},"PUBLIC").setServiceProps(Object.assign({},ai)))})(Ee,(V,_e)=>new zt(V,_e,new mt)),Ee.registerVersion("@firebase/firestore-compat","0.3.12")}(At.Z);var Ln=D(3385),Hn=D(2313),yi=D(9260);function ui(Ee,V){return function _n(Ee,V=e.z){return new R.y(_e=>{let Tt;return null!=V?V.schedule(()=>{Tt=Ee.onSnapshot({includeMetadataChanges:!0},_e)}):Tt=Ee.onSnapshot({includeMetadataChanges:!0},_e),()=>{Tt?.()}})}(Ee,V)}function ri(Ee,V){return ui(Ee,V).pipe((0,z.U)(_e=>({payload:_e,type:"query"})))}function Pi(Ee,V){return ri(Ee,V).pipe((0,Te.O)(void 0),(0,se.G)(),(0,z.U)(([_e,Tt])=>{const un=Tt.payload.docChanges(),Yn=un.map(Li=>({type:Li.type,payload:Li}));return _e&&JSON.stringify(_e.payload.metadata)!==JSON.stringify(Tt.payload.metadata)&&Tt.payload.docs.forEach((Li,Ii)=>{const qi=un.find(Xe=>Xe.doc.ref.isEqual(Li.ref)),at=_e?.payload.docs.find(Xe=>Xe.ref.isEqual(Li.ref));qi&&JSON.stringify(qi.doc.metadata)===JSON.stringify(Li.metadata)||!qi&&at&&JSON.stringify(at.metadata)===JSON.stringify(Li.metadata)||Yn.push({type:"modified",payload:{oldIndex:Ii,newIndex:Ii,type:"modified",doc:Li}})}),Yn}))}function li(Ee,V,_e){return Pi(Ee,_e).pipe((0,x.R)((Tt,un)=>function ei(Ee,V,_e){return V.forEach(Tt=>{_e.indexOf(Tt.type)>-1&&(Ee=function Oe(Ee,V){switch(V.type){case"added":if(!Ee[V.newIndex]||!Ee[V.newIndex].doc.ref.isEqual(V.doc.ref))return Ze(Ee,V.newIndex,0,V);break;case"modified":if(null==Ee[V.oldIndex]||Ee[V.oldIndex].doc.ref.isEqual(V.doc.ref)){if(V.oldIndex!==V.newIndex){const _e=Ee.slice();return _e.splice(V.oldIndex,1),_e.splice(V.newIndex,0,V),_e}return Ze(Ee,V.newIndex,1,V)}break;case"removed":if(Ee[V.oldIndex]&&Ee[V.oldIndex].doc.ref.isEqual(V.doc.ref))return Ze(Ee,V.oldIndex,1)}return Ee}(Ee,Tt))}),Ee}(Tt,un.map(Yn=>Yn.payload),V),[]),(0,G.x)(),(0,z.U)(Tt=>Tt.map(un=>({type:un.type,payload:un}))))}function Ze(Ee,V,_e,...Tt){const un=Ee.slice();return un.splice(V,_e,...Tt),un}function P(Ee){return(!Ee||0===Ee.length)&&(Ee=["added","removed","modified"]),Ee}class le{constructor(V,_e,Tt){this.ref=V,this.query=_e,this.afs=Tt}stateChanges(V){let _e=Pi(this.query,this.afs.schedulers.outsideAngular);return V&&V.length>0&&(_e=_e.pipe((0,z.U)(Tt=>Tt.filter(un=>V.indexOf(un.type)>-1)))),_e.pipe((0,Te.O)(void 0),(0,se.G)(),(0,de.h)(([Tt,un])=>un.length>0||!Tt),(0,z.U)(([Tt,un])=>un),ae.iC)}auditTrail(V){return this.stateChanges(V).pipe((0,x.R)((_e,Tt)=>[..._e,...Tt],[]))}snapshotChanges(V){const _e=P(V);return li(this.query,_e,this.afs.schedulers.outsideAngular).pipe(ae.iC)}valueChanges(V={}){return ri(this.query,this.afs.schedulers.outsideAngular).pipe((0,z.U)(_e=>_e.payload.docs.map(Tt=>V.idField?Object.assign(Object.assign({},Tt.data()),{[V.idField]:Tt.id}):Tt.data())),ae.iC)}get(V){return(0,me.D)(this.query.get(V)).pipe(ae.iC)}add(V){return this.ref.add(V)}doc(V){return new O(this.ref.doc(V),this.afs)}}class O{constructor(V,_e){this.ref=V,this.afs=_e}set(V,_e){return this.ref.set(V,_e)}update(V){return this.ref.update(V)}delete(){return this.ref.delete()}collection(V,_e){const Tt=this.ref.collection(V),{ref:un,query:Yn}=wt(Tt,_e);return new le(un,Yn,this.afs)}snapshotChanges(){return function zn(Ee,V){return ui(Ee,V).pipe((0,Te.O)(void 0),(0,se.G)(),(0,z.U)(([_e,Tt])=>Tt.exists?_e?.exists?{payload:Tt,type:"modified"}:{payload:Tt,type:"added"}:{payload:Tt,type:"removed"}))}(this.ref,this.afs.schedulers.outsideAngular).pipe(ae.iC)}valueChanges(V={}){return this.snapshotChanges().pipe((0,z.U)(({payload:_e})=>V.idField?Object.assign(Object.assign({},_e.data()),{[V.idField]:_e.id}):_e.data()))}get(V){return(0,me.D)(this.ref.get(V)).pipe(ae.iC)}}class Q{constructor(V,_e){this.query=V,this.afs=_e}stateChanges(V){return V&&0!==V.length?Pi(this.query,this.afs.schedulers.outsideAngular).pipe((0,z.U)(_e=>_e.filter(Tt=>V.indexOf(Tt.type)>-1)),(0,de.h)(_e=>_e.length>0),ae.iC):Pi(this.query,this.afs.schedulers.outsideAngular).pipe(ae.iC)}auditTrail(V){return this.stateChanges(V).pipe((0,x.R)((_e,Tt)=>[..._e,...Tt],[]))}
1snapshotChanges(V){const _e=P(V);return li(this.query,_e,this.afs.schedulers.outsideAngular).pipe(ae.iC)}valueChanges(V={}){return ri(this.query,this.afs.schedulers.outsideAngular).pipe((0,z.U)(Tt=>Tt.payload.docs.map(un=>V.idField?Object.assign({[V.idField]:un.id},un.data()):un.data())),ae.iC)}get(V){return(0,me.D)(this.query.get(V)).pipe(ae.iC)}}const ke=new g.OlP("angularfire2.enableFirestorePersistence"),De=new g.OlP("angularfire2.firestore.persistenceSettings"),ye=new g.OlP("angularfire2.firestore.settings"),Je=new g.OlP("angularfire2.firestore.use-emulator");function wt(Ee,V=(_e=>_e)){return{query:V(Ee),ref:Ee}}let on=(()=>{class Ee{constructor(_e,Tt,un,Yn,Li,Ii,qi,at,Xe,Re,Ie,xe,Ot,en,pt,Gt,Ce){this.schedulers=qi;const Ue=(0,dt.on)(_e,Ii,Tt),ue=Xe;Re&&(0,Ln.nw)(Ue,Ii,Ie,Ot,en,pt,xe,Gt),[this.firestore,this.persistenceEnabled$]=(0,dt.cc)(`${Ue.name}.firestore`,"AngularFirestore",Ue.name,()=>{const nt=Ii.runOutsideAngular(()=>Ue.firestore());if(Yn&&nt.settings(Yn),ue&&nt.useEmulator(...ue),un&&!(0,Mt.PM)(Li)){const Nt=()=>{try{return(0,me.D)(nt.enablePersistence(at||void 0).then(()=>!0,()=>!1))}catch(mn){return typeof console<"u"&&console.warn(mn),(0,ve.of)(!1)}};return[nt,Ii.runOutsideAngular(Nt)]}return[nt,(0,ve.of)(!1)]},[Yn,ue,un])}collection(_e,Tt){let un;un="string"==typeof _e?this.firestore.collection(_e):_e;const{ref:Yn,query:Li}=wt(un,Tt),Ii=this.schedulers.ngZone.run(()=>Yn);return new le(Ii,Li,this)}collectionGroup(_e,Tt){const un=Tt||(Li=>Li),Yn=this.firestore.collectionGroup(_e);return new Q(un(Yn),this)}doc(_e){let Tt;Tt="string"==typeof _e?this.firestore.doc(_e):_e;const un=this.schedulers.ngZone.run(()=>Tt);return new O(un,this)}createId(){return this.firestore.collection("_").doc().id}}return Ee.\u0275fac=function(_e){return new(_e||Ee)(g.LFG(dt.Dh),g.LFG(dt.xv,8),g.LFG(ke,8),g.LFG(ye,8),g.LFG(g.Lbi),g.LFG(g.R0b),g.LFG(ae.HU),g.LFG(De,8),g.LFG(Je,8),g.LFG(Ln.zQ,8),g.LFG(Ln.Qv,8),g.LFG(Ln.L6,8),g.LFG(Ln._Q,8),g.LFG(Ln.rT,8),g.LFG(Ln.lh,8),g.LFG(Ln.f7,8),g.LFG(Hn.nm,8))},Ee.\u0275prov=g.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"any"}),Ee})(),st=(()=>{class Ee{constructor(){yi.Z.registerVersion("angularfire",ae.q4.full,"fst-compat")}static enablePersistence(_e){return{ngModule:Ee,providers:[{provide:ke,useValue:!0},{provide:De,useValue:_e}]}}}return Ee.\u0275fac=function(_e){return new(_e||Ee)},Ee.\u0275mod=g.oAB({type:Ee}),Ee.\u0275inj=g.cJS({providers:[on]}),Ee})()},6132:(wn,bt,D)=>{"use strict";D.d(bt,{Q1:()=>Ut});var g=D(9751),e=D(9646),R=D(8996),me=D(8372),ve=D(4004),ae=D(3900),Te=D(3324),se=D(4650),z=D(2011),x=D(3942),G=D(6961),de=D(4859);class dt{constructor($e,je,ie){this._delegate=$e,this.task=je,this.ref=ie}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class Mt{constructor($e,je){this._delegate=$e,this._ref=je,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new dt(this._delegate.snapshot,this,this._ref)}then($e,je){return this._delegate.then(ie=>{if($e)return $e(new dt(ie,this,this._ref))},je)}on($e,je,ie,ft){let Wt;return je&&(Wt="function"==typeof je?Dt=>je(new dt(Dt,this,this._ref)):{next:je.next?Dt=>je.next(new dt(Dt,this,this._ref)):void 0,complete:je.complete||void 0,error:je.error||void 0}),this._delegate.on($e,Wt,ie||void 0,ft||void 0)}}class We{constructor($e,je){this._delegate=$e,this._service=je}get prefixes(){return this._delegate.prefixes.map($e=>new At($e,this._service))}get items(){return this._delegate.items.map($e=>new At($e,this._service))}get nextPageToken(){return this._delegate.nextPageToken||null}}class At{constructor($e,je){this._delegate=$e,this.storage=je}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child($e){const je=(0,G.g6)(this._delegate,$e);return new At(je,this.storage)}get root(){return new At(this._delegate.root,this.storage)}get parent(){const $e=this._delegate.parent;return null==$e?null:new At($e,this.storage)}put($e,je){return this._throwIfRoot("put"),new Mt((0,G.B0)(this._delegate,$e,je),this)}putString($e,je=G.bm.RAW,ie){this._throwIfRoot("putString");
1const ft=(0,G.qm)(je,$e),Wt=Object.assign({},ie);return null==Wt.contentType&&null!=ft.contentType&&(Wt.contentType=ft.contentType),new Mt(new G.IX(this._delegate,new G.UJ(ft.data,!0),Wt),this)}listAll(){return(0,G.aF)(this._delegate).then($e=>new We($e,this.storage))}list($e){return(0,G.pb)(this._delegate,$e||void 0).then(je=>new We(je,this.storage))}getMetadata(){return(0,G.sd)(this._delegate)}updateMetadata($e){return(0,G.Ym)(this._delegate,$e)}getDownloadURL(){return(0,G.Jt)(this._delegate)}delete(){return this._throwIfRoot("delete"),(0,G.oq)(this._delegate)}_throwIfRoot($e){if(""===this._delegate._location.path)throw(0,G.y4)($e)}}class qe{constructor($e,je){this.app=$e,this._delegate=je}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref($e){if(lt($e))throw(0,G.gH)("ref() expected a child path but got a URL, use refFromURL instead.");return new At((0,G.iH)(this._delegate,$e),this)}refFromURL($e){if(!lt($e))throw(0,G.gH)("refFromURL() expected a full URL but got a child path, use ref() instead.");try{G.gE.makeFromUrl($e,this._delegate.host)}catch{throw(0,G.gH)("refFromUrl() expected a valid full URL but got an invalid one.")}return new At((0,G.iH)(this._delegate,$e),this)}setMaxUploadRetryTime($e){this._delegate.maxUploadRetryTime=$e}setMaxOperationRetryTime($e){this._delegate.maxOperationRetryTime=$e}useEmulator($e,je,ie={}){(0,G.a1)(this._delegate,$e,je,ie)}}function lt(St){return/^[A-Za-z]+:\/\//.test(St)}function fe(St,{instanceIdentifier:$e}){const je=St.getProvider("app-compat").getImmediate(),ie=St.getProvider("storage").getImmediate({identifier:$e});return new qe(je,ie)}!function ut(St){const $e={TaskState:G.$Y,TaskEvent:G.FN,StringFormat:G.bm,Storage:qe,Reference:At};St.INTERNAL.registerComponent(new de.wA("storage-compat",fe,"PUBLIC").setServiceProps($e).setMultipleInstances(!0)),St.registerVersion("@firebase/storage-compat","0.3.2")}(x.Z);var Ye=D(2313);function xt(St){const $e=function ze(St){return new g.y($e=>{const je=Dt=>$e.next(Dt);je(St.snapshot);const Wt=St.on("state_changed",je);return St.then(Dt=>{je(Dt),$e.complete()},Dt=>{je(St.snapshot),(Dt=>{$e.error(Dt)})(Dt)}),function(){Wt()}}).pipe((0,me.b)(0))}(St);return{task:St,then:St.then.bind(St),catch:St.catch.bind(St),pause:St.pause.bind(St),cancel:St.cancel.bind(St),resume:St.resume.bind(St),snapshotChanges:()=>$e,percentageChanges:()=>$e.pipe((0,ve.U)(je=>je.bytesTransferred/je.totalBytes*100))}}function mt(St){return{getDownloadURL:()=>(0,e.of)(void 0).pipe(Te.fc,(0,ae.w)(()=>St.getDownloadURL()),Te.iC),getMetadata:()=>(0,e.of)(void 0).pipe(Te.fc,(0,ae.w)(()=>St.getMetadata()),Te.iC),delete:()=>(0,R.D)(St.delete()),child:$e=>mt(St.child($e)),updateMetadata:$e=>(0,R.D)(St.updateMetadata($e)),put:($e,je)=>xt(St.put($e,je)),putString:($e,je,ie)=>xt(St.putString($e,je,ie)),list:$e=>(0,R.D)(St.list($e)),listAll:()=>(0,R.D)(St.listAll())}}D(9260);const zt=new se.OlP("angularfire2.storageBucket"),pn=new se.OlP("angularfire2.storage.maxUploadRetryTime"),$t=new se.OlP("angularfire2.storage.maxOperationRetryTime"),Vn=new se.OlP("angularfire2.storage.use-emulator");let Ut=(()=>{class St{constructor(je,ie,ft,Wt,Dt,hn,Gn,qn,kn,ai){const An=(0,z.on)(je,Dt,ie);this.storage=(0,z.cc)(`${An.name}.storage.${ft}`,"AngularFireStorage",An.name,()=>{const Wn=Dt.runOutsideAngular(()=>An.storage(ft||void 0)),Ln=kn;return Ln&&Wn.useEmulator(...Ln),Gn&&Wn.setMaxUploadRetryTime(Gn),qn&&Wn.setMaxOperationRetryTime(qn),Wn},[Gn,qn])}ref(je){return mt(this.storage.ref(je))}refFromURL(je){return mt(this.storage.refFromURL(je))}upload(je,ie,ft){return mt(this.storage.ref(je)).put(ie,ft)}}return St.\u0275fac=function(je){return new(je||St)(se.LFG(z.Dh),se.LFG(z.xv,8),se.LFG(zt,8),se.LFG(se.Lbi),se.LFG(se.R0b),se.LFG(Te.HU),se.LFG(pn,8),se.LFG($t,8),se.LFG(Vn,8),se.LFG(Ye.nm,8))},St.\u0275prov=se.Yz7({token:St,factory:St.\u0275fac,providedIn:"any"}),St})()},2011:(wn,bt,D)=>{"use strict";D.d(bt,{Dh:()=>se,GT:()=>ae,cc:()=>Mt,hO:()=>dt,on:()=>x,pX:()=>ve,xv:()=>z});var g=D(4650),e=D(9260),R=D(3324);wn=D.hmd(wn);
1const me=["ngOnDestroy"],ve=(lt,sn,Xt,ot={})=>new Proxy(lt,{get:(fe,ut)=>Xt.runOutsideAngular(()=>{var Ye;if(lt[ut])return!(null===(Ye=ot?.spy)||void 0===Ye)&&Ye.get&&ot.spy.get(ut,lt[ut]),lt[ut];if(me.indexOf(ut)>-1)return()=>{};const it=sn.toPromise().then(ze=>{const xt=ze&&ze[ut];return"function"==typeof xt?xt.bind(ze):xt&&xt.then?xt.then(mt=>Xt.run(()=>mt)):Xt.run(()=>xt)});return new Proxy(()=>{},{get:(ze,xt)=>it[xt],apply:(ze,xt,mt)=>it.then(zt=>{var pn;const $t=zt&&zt(...mt);return!(null===(pn=ot?.spy)||void 0===pn)&&pn.apply&&ot.spy.apply(ut,mt,$t),$t})})})}),ae=(lt,sn)=>{sn.forEach(Xt=>{Object.getOwnPropertyNames(Xt.prototype||Xt).forEach(ot=>{Object.defineProperty(lt.prototype,ot,Object.getOwnPropertyDescriptor(Xt.prototype||Xt,ot))})})};class Te{constructor(sn){return sn}}const se=new g.OlP("angularfire2.app.options"),z=new g.OlP("angularfire2.app.name");function x(lt,sn,Xt){const fe="object"==typeof Xt&&Xt||{};fe.name=fe.name||"string"==typeof Xt&&Xt||"[DEFAULT]";const Ye=e.Z.apps.filter(it=>it&&it.name===fe.name)[0]||sn.runOutsideAngular(()=>e.Z.initializeApp(lt,fe));try{JSON.stringify(lt)!==JSON.stringify(Ye.options)&&G("error",`${Ye.name} Firebase App already initialized with different options${wn.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new Te(Ye)}const G=(lt,...sn)=>{(0,g.X6Q)()&&typeof console<"u"&&console[lt](...sn)},de={provide:Te,useFactory:x,deps:[se,g.R0b,[new g.FiY,z]]};let dt=(()=>{class lt{constructor(Xt){e.Z.registerVersion("angularfire",R.q4.full,"core"),e.Z.registerVersion("angularfire",R.q4.full,"app-compat"),e.Z.registerVersion("angular",g.q4F.full,Xt.toString())}static initializeApp(Xt,ot){return{ngModule:lt,providers:[{provide:se,useValue:Xt},{provide:z,useValue:ot}]}}}return lt.\u0275fac=function(Xt){return new(Xt||lt)(g.LFG(g.Lbi))},lt.\u0275mod=g.oAB({type:lt}),lt.\u0275inj=g.cJS({providers:[de]}),lt})();function Mt(lt,sn,Xt,ot,fe){const[,ut,Ye]=globalThis.\u0275AngularfireInstanceCache.find(it=>it[0]===lt)||[];if(ut)return function We(lt,sn){try{return lt.toString()===sn.toString()}catch{return lt===sn}}(fe,Ye)||(qe("error",`${sn} was already initialized on the ${Xt} Firebase App with different settings.${At?" You may need to reload as Firebase is not HMR aware.":""}`),qe("warn",{is:fe,was:Ye})),ut;{const it=ot();return globalThis.\u0275AngularfireInstanceCache.push([lt,it,fe]),it}}const At=!!wn.hot,qe=(lt,...sn)=>{(0,g.X6Q)()&&typeof console<"u"&&console[lt](...sn)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},3324:(wn,bt,D)=>{"use strict";D.d(bt,{q4:()=>ji,iC:()=>Hi,fc:()=>ln,HU:()=>J,vb:()=>Qi,JM:()=>On,nk:()=>os,u3:()=>Or});var g=D(4650),e=D(259),R=D(5861),me=D(6881),ve=D(2090),ae=D(4859),Te=D(1877);D(4727);const z="@firebase/remote-config",x="0.4.4",Mt=new ve.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class gn{constructor(Fe,vt,Qt,Pn){this.client=Fe,this.storage=vt,this.storageCache=Qt,this.logger=Pn}
1isCachedDataFresh(Fe,vt){if(!vt)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const Qt=Date.now()-vt,Pn=Qt<=Fe;return this.logger.debug(`Config fetch cache check. Cache age millis: ${Qt}. Cache max age millis (minimumFetchIntervalMillis setting): ${Fe}. Is cache hit: ${Pn}.`),Pn}fetch(Fe){var vt=this;return(0,R.Z)(function*(){const[Qt,Pn]=yield Promise.all([vt.storage.getLastSuccessfulFetchTimestampMillis(),vt.storage.getLastSuccessfulFetchResponse()]);if(Pn&&vt.isCachedDataFresh(Fe.cacheMaxAgeMillis,Qt))return Pn;Fe.eTag=Pn&&Pn.eTag;const Zn=yield vt.client.fetch(Fe),ci=[vt.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Zn.status&&ci.push(vt.storage.setLastSuccessfulFetchResponse(Zn)),yield Promise.all(ci),Zn})()}}function tt(Me=navigator){return Me.languages&&Me.languages[0]||Me.language}class Zt{constructor(Fe,vt,Qt,Pn,Zn,ci){this.firebaseInstallations=Fe,this.sdkVersion=vt,this.namespace=Qt,this.projectId=Pn,this.apiKey=Zn,this.appId=ci}fetch(Fe){var vt=this;return(0,R.Z)(function*(){const[Qt,Pn]=yield Promise.all([vt.firebaseInstallations.getId(),vt.firebaseInstallations.getToken()]),ci=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${vt.projectId}/namespaces/${vt.namespace}:fetch?key=${vt.apiKey}`,dr={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":Fe.eTag||"*"},or={sdk_version:vt.sdkVersion,app_instance_id:Qt,app_instance_id_token:Pn,app_id:vt.appId,language_code:tt()},wr={method:"POST",headers:dr,body:JSON.stringify(or)},pr=fetch(ci,wr),Bi=new Promise((Xo,ao)=>{Fe.signal.addEventListener(()=>{const xs=new Error("The operation was aborted.");xs.name="AbortError",ao(xs)})});let Ro;try{yield Promise.race([pr,Bi]),Ro=yield pr}catch(Xo){let ao="fetch-client-network";throw"AbortError"===Xo?.name&&(ao="fetch-timeout"),Mt.create(ao,{originalErrorMessage:Xo?.message})}let Cs=Ro.status;const Qo=Ro.headers.get("ETag")||void 0;let ta,na;if(200===Ro.status){let Xo;try{Xo=yield Ro.json()}catch(ao){throw Mt.create("fetch-client-parse",{originalErrorMessage:ao?.message})}ta=Xo.entries,na=Xo.state}if("INSTANCE_STATE_UNSPECIFIED"===na?Cs=500:"NO_CHANGE"===na?Cs=304:("NO_TEMPLATE"===na||"EMPTY_CONFIG"===na)&&(ta={}),304!==Cs&&200!==Cs)throw Mt.create("fetch-status",{httpStatus:Cs});return{status:Cs,eTag:Qo,config:ta}})()}}class je{constructor(Fe,vt){this.client=Fe,this.storage=vt}fetch(Fe){var vt=this;return(0,R.Z)(function*(){const Qt=(yield vt.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return vt.attemptFetch(Fe,Qt)})()}attemptFetch(Fe,vt){var Qt=this;return(0,R.Z)(function*(Pn,{throttleEndTimeMillis:Zn,backoffCount:ci}){yield function St(Me,Fe){return new Promise((vt,Qt)=>{const Pn=Math.max(Fe-Date.now(),0),Zn=setTimeout(vt,Pn);Me.addEventListener(()=>{clearTimeout(Zn),Qt(Mt.create("fetch-throttle",{throttleEndTimeMillis:Fe}))})})}(Pn.signal,Zn);try{const dr=yield Qt.client.fetch(Pn);return yield Qt.storage.deleteThrottleMetadata(),dr}catch(dr){if(!function $e(Me){if(!(Me instanceof ve.ZR&&Me.customData))return!1;const Fe=Number(Me.customData.httpStatus);return 429===Fe||500===Fe||503===Fe||504===Fe}(dr))throw dr;const or={throttleEndTimeMillis:Date.now()+(0,ve.$s)(ci),backoffCount:ci+1};return yield Qt.storage.setThrottleMetadata(or),Qt.attemptFetch(Pn,or)}}).apply(this,arguments)}}class Wt{constructor(Fe,vt,Qt,Pn,Zn){this.app=Fe,this._client=vt,this._storageCache=Qt,this._storage=Pn,this._logger=Zn,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function Dt(Me,Fe){const vt=Me.target.error||void 0;return Mt.create(Fe,{originalErrorMessage:vt&&vt?.message})}const hn="app_namespace_store";class ai{constructor(Fe,vt,Qt,Pn=function kn(){return new Promise((Me,Fe)=>{try{const vt=indexedDB.open("firebase_remote_config",1);vt.onerror=Qt=>{Fe(Dt(Qt,"storage-open"))},vt.onsuccess=Qt=>{Me(Qt.target.result)},vt.onupgradeneeded=Qt=>{0===Qt.oldVersion&&Qt.target.result.createObjectStore(hn,{keyPath:"compositeKey"})}}
1catch(vt){Fe(Mt.create("storage-open",{originalErrorMessage:vt?.message}))}})}()){this.appId=Fe,this.appName=vt,this.namespace=Qt,this.openDbPromise=Pn}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(Fe){return this.set("last_fetch_status",Fe)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(Fe){return this.set("last_successful_fetch_timestamp_millis",Fe)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(Fe){return this.set("last_successful_fetch_response",Fe)}getActiveConfig(){return this.get("active_config")}setActiveConfig(Fe){return this.set("active_config",Fe)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(Fe){return this.set("active_config_etag",Fe)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(Fe){return this.set("throttle_metadata",Fe)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(Fe){var vt=this;return(0,R.Z)(function*(){const Qt=yield vt.openDbPromise;return new Promise((Pn,Zn)=>{const dr=Qt.transaction([hn],"readonly").objectStore(hn),or=vt.createCompositeKey(Fe);try{const wr=dr.get(or);wr.onerror=pr=>{Zn(Dt(pr,"storage-get"))},wr.onsuccess=pr=>{const Bi=pr.target.result;Pn(Bi?Bi.value:void 0)}}catch(wr){Zn(Mt.create("storage-get",{originalErrorMessage:wr?.message}))}})})()}set(Fe,vt){var Qt=this;return(0,R.Z)(function*(){const Pn=yield Qt.openDbPromise;return new Promise((Zn,ci)=>{const or=Pn.transaction([hn],"readwrite").objectStore(hn),wr=Qt.createCompositeKey(Fe);try{const pr=or.put({compositeKey:wr,value:vt});pr.onerror=Bi=>{ci(Dt(Bi,"storage-set"))},pr.onsuccess=()=>{Zn()}}catch(pr){ci(Mt.create("storage-set",{originalErrorMessage:pr?.message}))}})})()}delete(Fe){var vt=this;return(0,R.Z)(function*(){const Qt=yield vt.openDbPromise;return new Promise((Pn,Zn)=>{const dr=Qt.transaction([hn],"readwrite").objectStore(hn),or=vt.createCompositeKey(Fe);try{const wr=dr.delete(or);wr.onerror=pr=>{Zn(Dt(pr,"storage-delete"))},wr.onsuccess=()=>{Pn()}}catch(wr){Zn(Mt.create("storage-delete",{originalErrorMessage:wr?.message}))}})})()}createCompositeKey(Fe){return[this.appId,this.appName,this.namespace,Fe].join()}}class An{constructor(Fe){this.storage=Fe}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var Fe=this;return(0,R.Z)(function*(){const vt=Fe.storage.getLastFetchStatus(),Qt=Fe.storage.getLastSuccessfulFetchTimestampMillis(),Pn=Fe.storage.getActiveConfig(),Zn=yield vt;Zn&&(Fe.lastFetchStatus=Zn);const ci=yield Qt;ci&&(Fe.lastSuccessfulFetchTimestampMillis=ci);const dr=yield Pn;dr&&(Fe.activeConfig=dr)})()}setLastFetchStatus(Fe){return this.lastFetchStatus=Fe,this.storage.setLastFetchStatus(Fe)}setLastSuccessfulFetchTimestampMillis(Fe){return this.lastSuccessfulFetchTimestampMillis=Fe,this.storage.setLastSuccessfulFetchTimestampMillis(Fe)}setActiveConfig(Fe){return this.activeConfig=Fe,this.storage.setActiveConfig(Fe)}}function yi(){return _n.apply(this,arguments)}function _n(){return(_n=(0,R.Z)(function*(){if(!(0,ve.hl)())return!1;try{return yield(0,ve.eu)()}catch{return!1}})).apply(this,arguments)}let zn,ri;!function Wn(){(0,me._registerComponent)(new ae.wA("remote-config",function Me(Fe,{instanceIdentifier:vt}){const Qt=Fe.getProvider("app").getImmediate(),Pn=Fe.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Mt.create("registration-window");if(!(0,ve.hl)())throw Mt.create("indexed-db-unavailable");const{projectId:Zn,apiKey:ci,appId:dr}=Qt.options;if(!Zn)throw Mt.create("registration-project-id");if(!ci)throw Mt.create("registration-api-key");if(!dr)throw Mt.create("registration-app-id");const or=new ai(dr,Qt.name,vt=vt||"firebase"),wr=new An(or),pr=new Te.Yd(z);pr.logLevel=Te.in.ERROR;const Bi=new Zt(Pn,me.SDK_VERSION,vt,Zn,ci,dr),Ro=new je(Bi,or),Cs=new gn(Ro,or,wr,pr),Qo=new Wt(Qt,Cs,wr,or,pr);return function Ye(Me){const Fe=(0,ve.m9)(Me);Fe._initializePromise||(Fe._initializePromise=Fe._storageCache.loadFromStorage().then(()=>{Fe._isInitializationComplete=!0}))}(Qo),Qo},"PUBLIC").setMultipleInstances(!0)),(0,me.registerVersion)(z,x),(0,me.registerVersion)(z,x,"esm2017")}();
1const ei=new WeakMap,Ze=new WeakMap,Oe=new WeakMap,P=new WeakMap,le=new WeakMap;let ke={get(Me,Fe,vt){if(Me instanceof IDBTransaction){if("done"===Fe)return Ze.get(Me);if("objectStoreNames"===Fe)return Me.objectStoreNames||Oe.get(Me);if("store"===Fe)return vt.objectStoreNames[1]?void 0:vt.objectStore(vt.objectStoreNames[0])}return wt(Me[Fe])},set:(Me,Fe,vt)=>(Me[Fe]=vt,!0),has:(Me,Fe)=>Me instanceof IDBTransaction&&("done"===Fe||"store"===Fe)||Fe in Me};function Je(Me){return"function"==typeof Me?function ye(Me){return Me!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function li(){return ri||(ri=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Me)?function(...Fe){return Me.apply(on(this),Fe),wt(ei.get(this))}:function(...Fe){return wt(Me.apply(on(this),Fe))}:function(Fe,...vt){const Qt=Me.call(on(this),Fe,...vt);return Oe.set(Qt,Fe.sort?Fe.sort():[Fe]),wt(Qt)}}(Me):(Me instanceof IDBTransaction&&function Q(Me){if(Ze.has(Me))return;const Fe=new Promise((vt,Qt)=>{const Pn=()=>{Me.removeEventListener("complete",Zn),Me.removeEventListener("error",ci),Me.removeEventListener("abort",ci)},Zn=()=>{vt(),Pn()},ci=()=>{Qt(Me.error||new DOMException("AbortError","AbortError")),Pn()};Me.addEventListener("complete",Zn),Me.addEventListener("error",ci),Me.addEventListener("abort",ci)});Ze.set(Me,Fe)}(Me),((Me,Fe)=>Fe.some(vt=>Me instanceof vt))(Me,function Pi(){return zn||(zn=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Me,ke):Me)}function wt(Me){if(Me instanceof IDBRequest)return function O(Me){const Fe=new Promise((vt,Qt)=>{const Pn=()=>{Me.removeEventListener("success",Zn),Me.removeEventListener("error",ci)},Zn=()=>{vt(wt(Me.result)),Pn()},ci=()=>{Qt(Me.error),Pn()};Me.addEventListener("success",Zn),Me.addEventListener("error",ci)});return Fe.then(vt=>{vt instanceof IDBCursor&&ei.set(vt,Me)}).catch(()=>{}),le.set(Fe,Me),Fe}(Me);if(P.has(Me))return P.get(Me);const Fe=Je(Me);return Fe!==Me&&(P.set(Me,Fe),le.set(Fe,Me)),Fe}const on=Me=>le.get(Me);function st(Me,Fe,{blocked:vt,upgrade:Qt,blocking:Pn,terminated:Zn}={}){const ci=indexedDB.open(Me,Fe),dr=wt(ci);return Qt&&ci.addEventListener("upgradeneeded",or=>{Qt(wt(ci.result),or.oldVersion,or.newVersion,wt(ci.transaction))}),vt&&ci.addEventListener("blocked",()=>vt()),dr.then(or=>{Zn&&or.addEventListener("close",()=>Zn()),Pn&&or.addEventListener("versionchange",()=>Pn())}).catch(()=>{}),dr}function Ee(Me,{blocked:Fe}={}){const vt=indexedDB.deleteDatabase(Me);return Fe&&vt.addEventListener("blocked",()=>Fe()),wt(vt).then(()=>{})}const V=["get","getKey","getAll","getAllKeys","count"],_e=["put","add","delete","clear"],Tt=new Map;function un(Me,Fe){if(!(Me instanceof IDBDatabase)||Fe in Me||"string"!=typeof Fe)return;if(Tt.get(Fe))return Tt.get(Fe);const vt=Fe.replace(/FromIndex$/,""),Qt=Fe!==vt,Pn=_e.includes(vt);if(!(vt in(Qt?IDBIndex:IDBObjectStore).prototype)||!Pn&&!V.includes(vt))return;const Zn=function(){var ci=(0,R.Z)(function*(dr,...or){const wr=this.transaction(dr,Pn?"readwrite":"readonly");let pr=wr.store;return Qt&&(pr=pr.index(or.shift())),(yield Promise.all([pr[vt](...or),Pn&&wr.done]))[0]});return function(or){return ci.apply(this,arguments)}}();return Tt.set(Fe,Zn),Zn}!function De(Me){ke=Me(ke)}(Me=>({...Me,get:(Fe,vt,Qt)=>un(Fe,vt)||Me.get(Fe,vt,Qt),has:(Fe,vt)=>!!un(Fe,vt)||Me.has(Fe,vt)}));const Yn="/firebase-messaging-sw.js",Li="/firebase-cloud-messaging-push-scope",Ii="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",at="google.c.a.c_id",Xe="google.c.a.c_l",Re="google.c.a.ts",Ie="google.c.a.e";var Ot=(()=>{return(Me=Ot||(Ot={})).PUSH_RECEIVED="push-received",Me.NOTIFICATION_CLICKED="notification-clicked",Ot;var Me})();function en(Me){const Fe=new Uint8Array(Me);return btoa(String.fromCharCode(...Fe)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function pt(Me){const vt=(Me+"=".repeat((4-Me.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),Qt=atob(vt),Pn=new Uint8Array(Qt.length);for(let Zn=0;Zn<Qt.length;++Zn)Pn[Zn]=Qt.charCodeAt(Zn);return Pn}const Gt="fcm_token_details_db",Ue="fcm_token_object_Store";function ue(Me){return nt.apply(this,arguments)}function nt(){return nt=(0,R.Z)(function*(Me){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Zn=>Zn.name).includes(Gt))return null;let Fe=null;return(yield st(Gt,5,{upgrade:(Qt=(0,R.Z)(function*(Pn,Zn,ci,dr){var or;if(Zn<2||!Pn.objectStoreNames.contains(Ue))return;const wr=dr.objectStore(Ue),pr=yield wr.index("fcmSenderId").get(Me);
1if(yield wr.clear(),pr)if(2===Zn){const Bi=pr;if(!Bi.auth||!Bi.p256dh||!Bi.endpoint)return;Fe={token:Bi.fcmToken,createTime:null!==(or=Bi.createTime)&&void 0!==or?or:Date.now(),subscriptionOptions:{auth:Bi.auth,p256dh:Bi.p256dh,endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:"string"==typeof Bi.vapidKey?Bi.vapidKey:en(Bi.vapidKey)}}}else if(3===Zn){const Bi=pr;Fe={token:Bi.fcmToken,createTime:Bi.createTime,subscriptionOptions:{auth:en(Bi.auth),p256dh:en(Bi.p256dh),endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:en(Bi.vapidKey)}}}else if(4===Zn){const Bi=pr;Fe={token:Bi.fcmToken,createTime:Bi.createTime,subscriptionOptions:{auth:en(Bi.auth),p256dh:en(Bi.p256dh),endpoint:Bi.endpoint,swScope:Bi.swScope,vapidKey:en(Bi.vapidKey)}}}}),function(Zn,ci,dr,or){return Qt.apply(this,arguments)})})).close(),yield Ee(Gt),yield Ee("fcm_vapid_details_db"),yield Ee("undefined"),Nt(Fe)?Fe:null;var Qt}),nt.apply(this,arguments)}function Nt(Me){if(!Me||!Me.subscriptionOptions)return!1;const{subscriptionOptions:Fe}=Me;return"number"==typeof Me.createTime&&Me.createTime>0&&"string"==typeof Me.token&&Me.token.length>0&&"string"==typeof Fe.auth&&Fe.auth.length>0&&"string"==typeof Fe.p256dh&&Fe.p256dh.length>0&&"string"==typeof Fe.endpoint&&Fe.endpoint.length>0&&"string"==typeof Fe.swScope&&Fe.swScope.length>0&&"string"==typeof Fe.vapidKey&&Fe.vapidKey.length>0}const kt="firebase-messaging-store";let Ft=null;function bn(){return Ft||(Ft=st("firebase-messaging-database",1,{upgrade:(Me,Fe)=>{0===Fe&&Me.createObjectStore(kt)}})),Ft}function vn(Me){return ni.apply(this,arguments)}function ni(){return(ni=(0,R.Z)(function*(Me){const Fe=fr(Me),Qt=yield(yield bn()).transaction(kt).objectStore(kt).get(Fe);if(Qt)return Qt;{const Pn=yield ue(Me.appConfig.senderId);if(Pn)return yield di(Me,Pn),Pn}})).apply(this,arguments)}function di(Me,Fe){return ti.apply(this,arguments)}function ti(){return(ti=(0,R.Z)(function*(Me,Fe){const vt=fr(Me),Pn=(yield bn()).transaction(kt,"readwrite");return yield Pn.objectStore(kt).put(Fe,vt),yield Pn.done,Fe})).apply(this,arguments)}function cr(Me){return Ai.apply(this,arguments)}function Ai(){return(Ai=(0,R.Z)(function*(Me){const Fe=fr(Me),Qt=(yield bn()).transaction(kt,"readwrite");yield Qt.objectStore(kt).delete(Fe),yield Qt.done})).apply(this,arguments)}function fr({appConfig:Me}){return Me.appId}const Yi=new ve.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function Zi(Me,Fe){return ho.apply(this,arguments)}
1function ho(){return(ho=(0,R.Z)(function*(Me,Fe){const vt=yield ne(Me),Qt=yt(Fe),Pn={method:"POST",headers:vt,body:JSON.stringify(Qt)};let Zn;try{Zn=yield(yield fetch(he(Me.appConfig),Pn)).json()}catch(ci){throw Yi.create("token-subscribe-failed",{errorInfo:ci?.toString()})}if(Zn.error)throw Yi.create("token-subscribe-failed",{errorInfo:Zn.error.message});if(!Zn.token)throw Yi.create("token-subscribe-no-token");return Zn.token})).apply(this,arguments)}function Ni(Me,Fe){return jr.apply(this,arguments)}function jr(){return(jr=(0,R.Z)(function*(Me,Fe){const vt=yield ne(Me),Qt=yt(Fe.subscriptionOptions),Pn={method:"PATCH",headers:vt,body:JSON.stringify(Qt)};let Zn;try{Zn=yield(yield fetch(`${he(Me.appConfig)}/${Fe.token}`,Pn)).json()}catch(ci){throw Yi.create("token-update-failed",{errorInfo:ci?.toString()})}if(Zn.error)throw Yi.create("token-update-failed",{errorInfo:Zn.error.message});if(!Zn.token)throw Yi.create("token-update-no-token");return Zn.token})).apply(this,arguments)}function Xr(Me,Fe){return Bt.apply(this,arguments)}function Bt(){return(Bt=(0,R.Z)(function*(Me,Fe){const Qt={method:"DELETE",headers:yield ne(Me)};try{const Zn=yield(yield fetch(`${he(Me.appConfig)}/${Fe}`,Qt)).json();if(Zn.error)throw Yi.create("token-unsubscribe-failed",{errorInfo:Zn.error.message})}catch(Pn){throw Yi.create("token-unsubscribe-failed",{errorInfo:Pn?.toString()})}})).apply(this,arguments)}function he({projectId:Me}){return`https://fcmregistrations.googleapis.com/v1/projects/${Me}/registrations`}function ne(Me){return Ne.apply(this,arguments)}function Ne(){return(Ne=(0,R.Z)(function*({appConfig:Me,installations:Fe}){const vt=yield Fe.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":Me.apiKey,"x-goog-firebase-installations-auth":`FIS ${vt}`})})).apply(this,arguments)}function yt({p256dh:Me,auth:Fe,endpoint:vt,vapidKey:Qt}){const Pn={web:{endpoint:vt,auth:Fe,p256dh:Me}};return Qt!==Ii&&(Pn.web.applicationPubKey=Qt),Pn}const Vt=6048e5;function Ke(Me){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,R.Z)(function*(Me){const Fe=yield Jn(Me.swRegistration,Me.vapidKey),vt={vapidKey:Me.vapidKey,swScope:Me.swRegistration.scope,endpoint:Fe.endpoint,auth:en(Fe.getKey("auth")),p256dh:en(Fe.getKey("p256dh"))},Qt=yield vn(Me.firebaseDependencies);if(Qt){if(Ti(Qt.subscriptionOptions,vt))return Date.now()>=Qt.createTime+Vt?we(Me,{token:Qt.token,createTime:Date.now(),subscriptionOptions:vt}):Qt.token;try{yield Xr(Me.firebaseDependencies,Qt.token)}catch(Pn){console.warn(Pn)}return jt(Me.firebaseDependencies,vt)}return jt(Me.firebaseDependencies,vt)})).apply(this,arguments)}function ht(Me){return Kt.apply(this,arguments)}function Kt(){return(Kt=(0,R.Z)(function*(Me){const Fe=yield vn(Me.firebaseDependencies);Fe&&(yield Xr(Me.firebaseDependencies,Fe.token),yield cr(Me.firebaseDependencies));const vt=yield Me.swRegistration.pushManager.getSubscription();return!vt||vt.unsubscribe()})).apply(this,arguments)}function we(Me,Fe){return ct.apply(this,arguments)}function ct(){return(ct=(0,R.Z)(function*(Me,Fe){try{const vt=yield Ni(Me.firebaseDependencies,Fe),Qt=Object.assign(Object.assign({},Fe),{token:vt,createTime:Date.now()});return yield di(Me.firebaseDependencies,Qt),vt}catch(vt){throw yield ht(Me),vt}})).apply(this,arguments)}function jt(Me,Fe){return Mn.apply(this,arguments)}function Mn(){return(Mn=(0,R.Z)(function*(Me,Fe){const Qt={token:yield Zi(Me,Fe),createTime:Date.now(),subscriptionOptions:Fe};return yield di(Me,Qt),Qt.token})).apply(this,arguments)}function Jn(Me,Fe){return Mi.apply(this,arguments)}function Mi(){return(Mi=(0,R.Z)(function*(Me,Fe){return(yield Me.pushManager.getSubscription())||Me.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:pt(Fe)})})).apply(this,arguments)}function Ti(Me,Fe){return Fe.vapidKey===Me.vapidKey&&Fe.endpoint===Me.endpoint&&Fe.auth===Me.auth&&Fe.p256dh===Me.p256dh}function $i(Me){const Fe={from:Me.from,collapseKey:Me.collapse_key,messageId:Me.fcmMessageId};return function Ji(Me,Fe){if(!Fe.notification)return;Me.notification={};const vt=Fe.notification.title;vt&&(Me.notification.title=vt);const Qt=Fe.notification.body;Qt&&(Me.notification.body=Qt);const Pn=Fe.notification.image;Pn&&(Me.notification.image=Pn);const Zn=Fe.notification.icon;Zn&&(Me.notification.icon=Zn)}(Fe,Me),function eo(Me,Fe){!Fe.data||(Me.data=Fe.data)}(Fe,Me),function Do(Me,Fe){var vt,Qt,Pn,Zn,ci;if(!(Fe.fcmOptions||null!==(vt=Fe.notification)&&void 0!==vt&&vt.click_action))return;Me.fcmOptions={};const dr=null!==(Pn=null===(Qt=Fe.fcmOptions)||void 0===Qt?void 0:Qt.link)&&void 0!==Pn?Pn:null===(Zn=Fe.notification)||void 0===Zn?void 0:Zn.click_action;dr&&(Me.fcmOptions.link=dr);const or=null===(ci=Fe.fcmOptions)||void 0===ci?void 0:ci.analytics_label;or&&(Me.fcmOptions.analyticsLabel=or)}(Fe,Me),Fe}function As(Me){return"object"==typeof Me&&!!Me&&at in Me}function Wo(Me,Fe){const vt=[];for(let Qt=0;Qt<Me.length;Qt++)vt.push(Me.charAt(Qt)),Qt<Fe.length&&vt.push(Fe.charAt(Qt));return vt.join("")}function vs(Me){return Yi.create("missing-app-config-values",{valueName:Me})}Wo("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Wo("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Is{constructor(Fe,vt,Qt){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Pn=function Ao(Me){if(!Me||!Me.options)throw vs("App Configuration Object");if(!Me.name)throw vs("App Name");const Fe=["projectId","apiKey","appId","messagingSenderId"],{options:vt}=Me;for(const Qt of Fe)if(!vt[Qt])throw vs(Qt);return{appName:Me.name,projectId:vt.projectId,apiKey:vt.apiKey,appId:vt.appId,senderId:vt.messagingSenderId}}(Fe);this.firebaseDependencies={app:Fe,appConfig:Pn,installations:vt,analyticsProvider:Qt}}_delete(){return Promise.resolve()}}function co(Me){return Ko.apply(this,arguments)}function Ko(){return(Ko=(0,R.Z)(function*(Me){try{Me.swRegistration=yield navigator.serviceWorker.register(Yn,{scope:Li}),Me.swRegistration.update().catch(()=>{})}catch(Fe){throw Yi.create("failed-service-worker-registration",{browserErrorMessage:Fe?.message})}})).apply(this,arguments)}function Zs(Me,Fe){return Vo.apply(this,arguments)}function Vo(){return(Vo=(0,R.Z)(function*(Me,Fe){if(!Fe&&!Me.swRegistration&&(yield co(Me)),Fe||!Me.swRegistration){if(!(Fe instanceof ServiceWorkerRegistration))throw Yi.create("invalid-sw-registration");Me.swRegistration=Fe}})).apply(this,arguments)}function Co(Me,Fe){return fo.apply(this,arguments)}function fo(){return(fo=(0,R.Z)(function*(Me,Fe){Fe?Me.vapidKey=Fe:Me.vapidKey||(Me.vapidKey=Ii)})).apply(this,arguments)}function Ss(){return(Ss=(0,R.Z)(function*(Me,Fe){if(!navigator)throw Yi.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Yi.create("permission-blocked");return yield Co(Me,Fe?.vapidKey),yield Zs(Me,Fe?.serviceWorkerRegistration),Ke(Me)})).apply(this,arguments)}function zi(Me,Fe,vt){return cs.apply(this,arguments)}function cs(){return(cs=(0,R.Z)(function*(Me,Fe,vt){const Qt=po(Fe);(yield Me.firebaseDependencies.analyticsProvider.get()).logEvent(Qt,{message_id:vt[at],message_name:vt[Xe],message_time:vt[Re],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function po(Me){switch(Me){case Ot.NOTIFICATION_CLICKED:return"notification_open";case Ot.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function bs(){return(bs=(0,R.Z)(function*(Me,Fe){const vt=Fe.data;if(!vt.isFirebaseMessaging)return;Me.onMessageHandler&&vt.messageType===Ot.PUSH_RECEIVED&&("function"==typeof Me.onMessageHandler?Me.onMessageHandler($i(vt)):Me.onMessageHandler.next($i(vt)));const Qt=vt.data;As(Qt)&&"1"===Qt[Ie]&&(yield zi(Me,vt.messageType,Qt))})).apply(this,arguments)}const is="@firebase/messaging",Io=Me=>{const Fe=new Is(Me.getProvider("app").getImmediate(),Me.getProvider("installations-internal").getImmediate(),Me.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",vt=>function to(Me,Fe){return bs.apply(this,arguments)}(Fe,vt)),Fe},ha=Me=>{const Fe=Me.getProvider("messaging").getImmediate();return{getToken:Qt=>function Mo(Me,Fe){return Ss.apply(this,arguments)}(Fe,Qt)}};function rs(){return no.apply(this,arguments)}function no(){return(no=(0,R.Z)(function*(){try{yield(0,ve.eu)()}catch{return!1}return typeof window<"u"&&(0,ve.hl)()&&(0,ve.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function fa(){(0,me._registerComponent)(new ae.wA("messaging",Io,"PUBLIC")),(0,me._registerComponent)(new ae.wA("messaging-internal",ha,"PRIVATE")),(0,me.registerVersion)(is,"0.12.4"),(0,me.registerVersion)(is,"0.12.4","esm2017")}();var Et=D(3008),Ht=D(4408),Rn=D(7565);const fi=new class hi extends Rn.v{}(class fn extends Ht.o{constructor(Fe,vt){super(Fe,vt),this.scheduler=Fe,this.work=vt}schedule(Fe,vt=0){return vt>0?super.schedule(Fe,vt):(this.delay=vt,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,vt){return vt>0||this.closed?super.execute(Fe,vt):this._execute(Fe,vt)}requestAsyncId(Fe,vt,Qt=0){return null!=Qt&&Qt>0||null==Qt&&this.delay>0?super.requestAsyncId(Fe,vt,Qt):(Fe.flush(this),0)}});var Si=D(4986),Zr=D(9751),Br=D(8505),Dr=D(5363),nr=D(9468);const ji=new g.GfV("7.6.1"),br="__angularfire_symbol__analyticsIsSupportedValue",mi="__angularfire_symbol__analyticsIsSupported",Wr="__angularfire_symbol__remoteConfigIsSupportedValue",Rr="__angularfire_symbol__remoteConfigIsSupported",Hr="__angularfire_symbol__messagingIsSupportedValue",ur="__angularfire_symbol__messagingIsSupported";globalThis[mi]||(globalThis[mi]=(0,Et.Gb)().then(Me=>globalThis[br]=Me).catch(()=>globalThis[br]=!1)),globalThis[ur]||(globalThis[ur]=rs().then(Me=>globalThis[Hr]=Me).catch(()=>globalThis[Hr]=!1)),globalThis[Rr]||(globalThis[Rr]=yi().then(Me=>globalThis[Wr]=Me).catch(()=>globalThis[Wr]=!1));const os={async:()=>globalThis[mi],sync:()=>{const Me=globalThis[br];if(void 0===Me)throw new Error((Me=>`The APP_INITIALIZER that is "making" isSupported() sync for the sake of convenient DI has not resolved
1in this\ncontext. Rather than injecting ${Me} in the constructor, first ensure that ${Me} is supported by calling\n\`await isSupported()\`, then retrieve the instance from the injector manually \`injector.get(${Me})\`.`)("Analytics"));return Me}};function On(Me,Fe,vt){if(Fe){if(1===Fe.length)return Fe[0];const Zn=Fe.filter(ci=>ci.app===vt);if(1===Zn.length)return Zn[0]}return vt.container.getProvider(Me).getImmediate({optional:!0})}const Qi=(Me,Fe)=>{const vt=Fe?[Fe]:(0,e.C6)(),Qt=[];return vt.forEach(Pn=>{Pn.container.getProvider(Me).instances.forEach(ci=>{Qt.includes(ci)||Qt.push(ci)})}),Qt};function So(){}class ko{constructor(Fe,vt=fi){this.zone=Fe,this.delegate=vt}now(){return this.delegate.now()}schedule(Fe,vt,Qt){const Pn=this.zone;return this.delegate.schedule(function(ci){Pn.runGuarded(()=>{Fe.apply(this,[ci])})},vt,Qt)}}class so{constructor(Fe){this.zone=Fe,this.task=null}call(Fe,vt){const Qt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",So,{},So,So)),vt.pipe((0,Br.b)({next:Qt,complete:Qt,error:Qt})).subscribe(Fe).add(Qt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let J=(()=>{class Me{constructor(vt){this.ngZone=vt,this.outsideAngular=vt.runOutsideAngular(()=>new ko(Zone.current)),this.insideAngular=vt.run(()=>new ko(Zone.current,Si.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return Me.\u0275fac=function(vt){return new(vt||Me)(g.LFG(g.R0b))},Me.\u0275prov=g.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();function W(){const Me=globalThis.\u0275AngularFireScheduler;if(!Me)throw new Error("Either AngularFireModule has not been provided in your Ap
1pModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return Me}function H(Me){return W().ngZone.runOutsideAngular(()=>Me())}function Se(Me){return W().ngZone.run(()=>Me())}function ln(Me){return Me.pipe((0,Dr.Q)(W().outsideAngular))}function Hi(Me){return W(),function us(Me){return function(vt){return(vt=vt.lift(new so(Me.ngZone))).pipe((0,nr.R)(Me.outsideAngular),(0,Dr.Q)(Me.insideAngular))}}(W())(Me)}const qo=(Me,Fe)=>function(){const Qt=arguments;return Fe&&setTimeout(()=>{"scheduled"===Fe.state&&Fe.invoke()},10),Se(()=>Me.apply(void 0,Qt))},Or=(Me,Fe)=>function(){let vt;const Qt=arguments;for(let Zn=0;Zn<arguments.length;Zn++)"function"==typeof Qt[Zn]&&(Fe&&(vt||(vt=Se(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",So,{},So,So)))),Qt[Zn]=qo(Qt[Zn],vt));const Pn=H(()=>Me.apply(this,Qt));if(!Fe){if(Pn instanceof Zr.y){const Zn=W();return Pn.pipe((0,nr.R)(Zn.outsideAngular),(0,Dr.Q)(Zn.insideAngular))}return Se(()=>Pn)}return Pn instanceof Zr.y?Pn.pipe(Hi):Pn instanceof Promise?Se(()=>new Promise((Zn,ci)=>Pn.then(dr=>Se(()=>Zn(dr)),dr=>Se(()=>ci(dr))))):"function"==typeof Pn&&vt?function(){return setTimeout(()=>{vt&&"scheduled"===vt.state&&vt.invoke()},10),Pn.apply(this,arguments)}:Se(()=>Pn)}},1389:(wn,bt,D)=>{"use strict";D.d(bt,{$:()=>W,A:()=>G,D:()=>Mt,I:()=>Vt,J:()=>we,L:()=>to,N:()=>Ii,P:()=>jc,Q:()=>ge,R:()=>Pe,U:()=>fn,V:()=>Rn,W:()=>hi,X:()=>Ht,Y:()=>Zr,Z:()=>Br,_:()=>mi,a:()=>Fa,a0:()=>Se,a1:()=>pi,a2:()=>Or,a3:()=>Zn,a4:()=>dr,a5:()=>wr,a6:()=>Bi,a7:()=>Cs,a8:()=>ta,a9:()=>Xo,aA:()=>ze,aB:()=>Gc,aC:()=>Yn,aD:()=>qi,aE:()=>Ol,aF:()=>Bd,aG:()=>Oo,aH:()=>he,aL:()=>U,aO:()=>Fi,aa:()=>ao,ab:()=>$a,ac:()=>Ra,ad:()=>Tr,ae:()=>Cl,af:()=>dc,ai:()=>Ga,aj:()=>ws,ak:()=>No,an:()=>Yo,ao:()=>$,aq:()=>ia,ar:()=>ii,as:()=>mt,at:()=>Ce,au:()=>en,av:()=>ot,aw:()=>Ta,ax:()=>Gh,ay:()=>Ue,az:()=>fe,b:()=>fc,c:()=>$c,d:()=>Ud,e:()=>fs,f:()=>wp,g:()=>_c,h:()=>Ru,i:()=>Cp,j:()=>Vd,k:()=>ef,l:()=>gr,m:()=>Cm,o:()=>Bu,p:()=>se,r:()=>Yr,s:()=>yn,u:()=>va,x:()=>xi});var g=D(5861),e=D(2090),R=D(6881),me=D(7582),ve=D(1877),ae=D(4859);const se={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},G={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"};const Mt=function de(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is
vendor: 7,825 bytes, line 1
1 malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."
1}},We=function dt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},At=new e.LL("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),lt=new ve.Yd("@firebase/auth");function Xt(A,...b){lt.logLevel<=ve.in.ERROR&<.error(`Auth (${R.SDK_VERSION}): ${A}`,...b)}function ot(A,...b){throw it(A,...b)}function fe(A,...b){return it(A,...b)}function ut(A,b,w){const N=Object.assign(Object.assign({},We()),{[b]:w});return new e.LL("auth","Firebase",N).create(b,{appName:A.name})}function Ye(A,b,w){if(!(b instanceof w))throw w.name!==b.constructor.name&&ot(A,"argument-error"),ut(A,"argument-error",`Type of ${b.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function it(A,...b){if("string"!=typeof A){const w=b[0],N=[...b.slice(1)];return N[0]&&(N[0].appName=A.name),A._errorFactory.create(w,...N)}return At.create(A,...b)}function ze(A,b,...w){if(!A)throw it(b,...w)}function xt(A){const b="INTERNAL ASSERTION FAILED: "+A;throw Xt(b),new Error(b)}function mt(A,b){A||xt(b)}function zt(){var A;return typeof self<"u"&&(null===(A=self.location)||void 0===A?void 0:A.href)||""}function pn(){return"http:"===$t()||"https:"===$t()}function $t(){var A;return typeof self<"u"&&(null===(A=self.location)||void 0===A?void 0:A.protocol)||null}class gn{constructor(b,w){this.shortDelay=b,this.longDelay=w,mt(w>b,"Short delay should be less than long delay!"),this.isMobile=(0,e.uI)()||(0,e.b$)()}get(){return function Vn(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(pn()||(0,e.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function tt(A,b){mt(A.emulator,"Emulator should always be set here");const{url:w}=A.emulator;return b?`${w}${b.startsWith("/")?b.slice(1):b}`:w}class Zt{static initialize(b,w,N){this.fetchImpl=b,w&&(this.headersImpl=w),N&&(this.responseImpl=N)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void xt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:void xt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:void xt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const St={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",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_REQ_TYPE:"internal-error",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",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",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",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_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
1aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},$e=new gn(3e4,6e4);function je(A,b){return A.tenantId&&!b.tenantId?Object.assign(Object.assign({},b),{tenantId:A.tenantId}):b}function ie(A,b,w,N){return ft.apply(this,arguments)}function ft(){return(ft=(0,g.Z)(function*(A,b,w,N,ce={}){return Wt(A,ce,(0,g.Z)(function*(){let Ve={},qt={};N&&("GET"===b?qt=N:Ve={body:JSON.stringify(N)});const an=(0,e.xO)(Object.assign({key:A.config.apiKey},qt)).slice(1),jn=yield A._getAdditionalHeaders();return jn["Content-Type"]="application/json",A.languageCode&&(jn["X-Firebase-Locale"]=A.languageCode),Zt.fetch()(qn(A,A.config.apiHost,w,an),Object.assign({method:b,headers:jn,referrerPolicy:"no-referrer"},Ve))}))})).apply(this,arguments)}function Wt(A,b,w){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,g.Z)(function*(A,b,w){A._canInitEmulator=!1;const N=Object.assign(Object.assign({},St),b);try{const ce=new kn(A),Ve=yield Promise.race([w(),ce.promise]);ce.clearNetworkTimeout();const qt=yield Ve.json();if("needConfirmation"in qt)throw ai(A,"account-exists-with-different-credential",qt);if(Ve.ok&&!("errorMessage"in qt))return qt;{const an=Ve.ok?qt.errorMessage:qt.error.message,[jn,vi]=an.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===jn)throw ai(A,"credential-already-in-use",qt);if("EMAIL_EXISTS"===jn)throw ai(A,"email-already-in-use",qt);if("USER_DISABLED"===jn)throw ai(A,"user-disabled",qt);const Wi=N[jn]||jn.toLowerCase().replace(/[_\s]+/g,"-");if(vi)throw ut(A,Wi,vi);ot(A,Wi)}}catch(ce){if(ce instanceof e.ZR)throw ce;ot(A,"network-request-failed",{message:String(ce)})}})).apply(this,arguments)}function hn(A,b,w,N){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,g.Z)(function*(A,b,w,N,ce={}){const Ve=yield ie(A,b,w,N,ce);return"mfaPendingCredential"in Ve&&ot(A,"multi-factor-auth-required",{_serverResponse:Ve}),Ve})).apply(this,arguments)}function qn(A,b,w,N){const ce=`${b}${w}?${N}`;return A.config.emulator?tt(A.config,ce):`${A.config.apiScheme}://${ce}`}class kn{constructor(b){this.auth=b,this.timer=null,this.promise=new Promise((w,N)=>{this.timer=setTimeout(()=>N(fe(this.auth,"network-request-failed")),$e.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function ai(A,b,w){const N={appName:A.name};w.email&&(N.email=w.email),w.phoneNumber&&(N.phoneNumber=w.phoneNumber);const ce=fe(A,b,N);return ce.customData._tokenResponse=w,ce}function Wn(){return(Wn=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:delete",b)})).apply(this,arguments)}function Ln(A,b){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:update",b)})).apply(this,arguments)}function yi(A,b){return _n.apply(this,arguments)}function _n(){return(_n=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:lookup",b)})).apply(this,arguments)}function ui(A){if(A)try{const b=new Date(Number(A));if(!isNaN(b.getTime()))return b.toUTCString()}catch{}}function Pi(){return(Pi=(0,g.Z)(function*(A,b=!1){const w=(0,e.m9)(A),N=yield w.getIdToken(b),ce=ei(N);ze(ce&&ce.exp&&ce.auth_time&&ce.iat,w.auth,"internal-error");const Ve="object"==typeof ce.firebase?ce.firebase:void 0,qt=Ve?.sign_in_provider;return{claims:ce,token:N,authTime:ui(li(ce.auth_time)),issuedAtTime:ui(li(ce.iat)),expirationTime:ui(li(ce.exp)),signInProvider:qt||null,signInSecondFactor:Ve?.sign_in_second_factor||null}})).apply(this,arguments)}function li(A){return 1e3*Number(A)}function ei(A){const[b,w,N]=A.split(".");if(void 0===b||void 0===w||void 0===N)return Xt("JWT malformed, contained fewer than 3 sections"),null;try{const ce=(0,e.tV)(w);return ce?JSON.parse(ce):(Xt("Failed to decode base64 JWT payload"),null)}catch(ce){return Xt("Caught error parsing JWT payload as JSON",ce?.toString()),null}}function Oe(A,b){return P.apply(this,arguments)}function P(){return(P=(0,g.Z)(function*(A,b,w=!1){if(w)return b;try{return yield b}catch(N){throw N instanceof e.ZR&&le(N)&&A.auth.currentUser===A&&(yield A.auth.signOut()),N}})).apply(this,arguments)}function le({code:A}){return"auth/user-disabled"===A||"auth/user-token-expired"===A}class O{constructor(b){this.user=b,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){!this.isRunning||(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(b){var w;if(b){const N=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),N}{this.errorBackoff=3e4;const ce=(null!==(w=this.user.stsTokenManager.expirationTime)&&void 0!==w?w:0)-Date.now()-3e5;return Math.max(0,ce)}}schedule(b=!1){var w=this;if(!this.isRunning)return;const N=this.getInterval(b);this.timerId=setTimeout((0,g.Z)(function*(){yield w.iteration()}),N)}iteration(){var b=this;return(0,g.Z)(function*(){try{yield b.user.getIdToken(!0)}catch(w){return void("auth/network-request-failed"===w?.code&&b.schedule(!0))}b.schedule()})()}}class Q{constructor(b,w){this.createdAt=b,this.lastLoginAt=w,this._initializeTime()}_initializeTime(){this.lastSignInTime=ui(this.lastLoginAt),this.creationTime=ui(this.createdAt)}_copy(b){this.createdAt=b.createdAt,this.lastLoginAt=b.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function ke(A){return De.apply(this,arguments)}function De(){return(De=(0,g.Z)(function*(A){var b;const w=A.auth,N=yield A.getIdToken(),ce=yield Oe(A,yi(w,{idToken:N}));ze(ce?.users.length,w,"internal-error");const Ve=ce.users[0];A._notifyReloadListener(Ve);const qt=null!==(b=Ve.providerUserInfo)&&void 0!==b&&b.length?on(Ve.providerUserInfo):[],an=wt(A.providerData,qt),Wi=!!A.isAnonymous&&!(A.email&&Ve.passwordHash||an?.length),ir={uid:Ve.localId,displayName:Ve.displayName||null,photoURL:Ve.photoUrl||null,email:Ve.email||null,emailVerified:Ve.emailVerified||!1,phoneNumber:Ve.phoneNumber||null,tenantId:Ve.tenantId||null,providerData:an,metadata:new Q(Ve.createdAt,Ve.lastLoginAt),isAnonymous:Wi};Object.assign(A,ir)})).apply(this,arguments)}function Je(){return(Je=(0,g.Z)(function*(A){const b=(0,e.m9)(A);yield ke(b),yield b.auth._persistUserIfCurrent(b),b.auth._notifyListenersIfCurrent(b)})).apply(this,arguments)}function wt(A,b){return[...A.filter(N=>!b.some(ce=>ce.providerId===N.providerId)),...b]}
1function on(A){return A.map(b=>{var{providerId:w}=b,N=(0,me._T)(b,["providerId"]);return{providerId:w,uid:N.rawId||"",displayName:N.displayName||null,email:N.email||null,phoneNumber:N.phoneNumber||null,photoURL:N.photoUrl||null}})}function Ee(){return(Ee=(0,g.Z)(function*(A,b){const w=yield Wt(A,{},(0,g.Z)(function*(){const N=(0,e.xO)({grant_type:"refresh_token",refresh_token:b}).slice(1),{tokenApiHost:ce,apiKey:Ve}=A.config,qt=qn(A,ce,"/v1/token",`key=${Ve}`),an=yield A._getAdditionalHeaders();return an["Content-Type"]="application/x-www-form-urlencoded",Zt.fetch()(qt,{method:"POST",headers:an,body:N})}));return{accessToken:w.access_token,expiresIn:w.expires_in,refreshToken:w.refresh_token}})).apply(this,arguments)}class V{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(b){ze(b.idToken,"internal-error"),ze(typeof b.idToken<"u","internal-error"),ze(typeof b.refreshToken<"u","internal-error");const w="expiresIn"in b&&typeof b.expiresIn<"u"?Number(b.expiresIn):function Ze(A){const b=ei(A);return ze(b,"internal-error"),ze(typeof b.exp<"u","internal-error"),ze(typeof b.iat<"u","internal-error"),Number(b.exp)-Number(b.iat)}(b.idToken);this.updateTokensAndExpiration(b.idToken,b.refreshToken,w)}getToken(b){var w=this;return(0,g.Z)(function*(N,ce=!1){return ze(!w.accessToken||w.refreshToken,N,"user-token-expired"),ce||!w.accessToken||w.isExpired?w.refreshToken?(yield w.refresh(N,w.refreshToken),w.accessToken):null:w.accessToken}).apply(this,arguments)}clearRefreshToken(){this.refreshToken=null}refresh(b,w){var N=this;return(0,g.Z)(function*(){const{accessToken:ce,refreshToken:Ve,expiresIn:qt}=yield function st(A,b){return Ee.apply(this,arguments)}(b,w);N.updateTokensAndExpiration(ce,Ve,Number(qt))})()}updateTokensAndExpiration(b,w,N){this.refreshToken=w||null,this.accessToken=b||null,this.expirationTime=Date.now()+1e3*N}static fromJSON(b,w){const{refreshToken:N,accessToken:ce,expirationTime:Ve}=w,qt=new V;return N&&(ze("string"==typeof N,"internal-error",{appName:b}),qt.refreshToken=N),ce&&(ze("string"==typeof ce,"internal-error",{appName:b}),qt.accessToken=ce),Ve&&(ze("number"==typeof Ve,"internal-error",{appName:b}),qt.expirationTime=Ve),qt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(b){this.accessToken=b.accessToken,this.refreshToken=b.refreshToken,this.expirationTime=b.expirationTime}_clone(){return Object.assign(new V,this.toJSON())}_performRefresh(){return xt("not implemented")}}function _e(A,b){ze("string"==typeof A||typeof A>"u","internal-error",{appName:b})}class Tt{constructor(b){var{uid:w,auth:N,stsTokenManager:ce}=b,Ve=(0,me._T)(b,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new O(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=w,this.auth=N,this.stsTokenManager=ce,this.accessToken=ce.accessToken,this.displayName=Ve.displayName||null,this.email=Ve.email||null,this.emailVerified=Ve.emailVerified||!1,this.phoneNumber=Ve.phoneNumber||null,this.photoURL=Ve.photoURL||null,this.isAnonymous=Ve.isAnonymous||!1,this.tenantId=Ve.tenantId||null,this.providerData=Ve.providerData?[...Ve.providerData]:[],this.metadata=new Q(Ve.createdAt||void 0,Ve.lastLoginAt||void 0)}getIdToken(b){var w=this;return(0,g.Z)(function*(){const N=yield Oe(w,w.stsTokenManager.getToken(w.auth,b));return ze(N,w.auth,"internal-error"),w.accessToken!==N&&(w.accessToken=N,yield w.auth._persistUserIfCurrent(w),w.auth._notifyListenersIfCurrent(w)),N})()}getIdTokenResult(b){return function ri(A){return Pi.apply(this,arguments)}(this,b)}reload(){return function ye(A){return Je.apply(this,arguments)}(this)}_assign(b){this!==b&&(ze(this.uid===b.uid,this.auth,"internal-error"),this.displayName=b.displayName,this.photoURL=b.photoURL,this.email=b.email,this.emailVerified=b.emailVerified,this.phoneNumber=b.phoneNumber,this.isAnonymous=b.isAnonymous,this.tenantId=b.tenantId,this.providerData=b.providerData.map(w=>Object.assign({},w)),this.metadata._copy(b.metadata),this.stsTokenManager._assign(b.stsTokenManager))}_clone(b){const w=new Tt(Object.assign(Object.assign({},this),{auth:b,stsTokenManager:this.stsTokenManager._clone()}));return w.metadata._copy(this.metadata),w}_onReload(b){ze(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=b,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(b){this.reloadListener?this.reloadListener(b):this.reloadUserInfo=b}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(b){var w=this;return(0,g.Z)(function*(N,ce=!1){let Ve=!1;N.idToken&&N.idToken!==w.stsTokenManager.accessToken&&(w.stsTokenManager.updateFromServerResponse(N),Ve=!0),ce&&(yield ke(w)),yield w.auth._persistUserIfCurrent(w),Ve&&w.auth._notifyListenersIfCurrent(w)}).apply(this,arguments)}delete(){var b=this;return(0,g.Z)(function*(){const w=yield b.getIdToken();return yield Oe(b,function An(A,b){return Wn.apply(this,arguments)}(b.auth,{idToken:w})),b.stsTokenManager.clearRefreshToken(),b.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
1nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(b=>Object.assign({},b)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(b,w){var N,ce,Ve,qt,an,jn,vi,Wi;const ir=null!==(N=w.displayName)&&void 0!==N?N:void 0,mo=null!==(ce=w.email)&&void 0!==ce?ce:void 0,Ws=null!==(Ve=w.phoneNumber)&&void 0!==Ve?Ve:void 0,xc=null!==(qt=w.photoURL)&&void 0!==qt?qt:void 0,gs=null!==(an=w.tenantId)&&void 0!==an?an:void 0,Hd=null!==(jn=w._redirectEventId)&&void 0!==jn?jn:void 0,Kl=null!==(vi=w.createdAt)&&void 0!==vi?vi:void 0,Rp=null!==(Wi=w.lastLoginAt)&&void 0!==Wi?Wi:void 0,{uid:Xa,emailVerified:sf,isAnonymous:wc,providerData:Yl,stsTokenManager:Np}=w;ze(Xa&&Np,b,"internal-error");const mr=V.fromJSON(this.name,Np);ze("string"==typeof Xa,b,"internal-error"),_e(ir,b.name),_e(mo,b.name),ze("boolean"==typeof sf,b,"internal-error"),ze("boolean"==typeof wc,b,"internal-error"),_e(Ws,b.name),_e(xc,b.name),_e(gs,b.name),_e(Hd,b.name),_e(Kl,b.name),_e(Rp,b.name);const Fp=new Tt({uid:Xa,auth:b,email:mo,emailVerified:sf,displayName:ir,isAnonymous:wc,photoURL:xc,phoneNumber:Ws,tenantId:gs,stsTokenManager:mr,createdAt:Kl,lastLoginAt:Rp});return Yl&&Array.isArray(Yl)&&(Fp.providerData=Yl.map(xm=>Object.assign({},xm))),Hd&&(Fp._redirectEventId=Hd),Fp}static _fromIdTokenResponse(b,w){return(0,g.Z)(function*(N,ce,Ve=!1){const qt=new V;qt.updateFromServerResponse(ce);const an=new Tt({uid:ce.localId,auth:N,stsTokenManager:qt,isAnonymous:Ve});return yield ke(an),an}).apply(this,arguments)}}const un=new Map;function Yn(A){mt(A instanceof Function,"Expected a class definition");let b=un.get(A);return b?(mt(b instanceof A,"Instance stored in cache mismatched with class"),b):(b=new A,un.set(A,b),b)}const Ii=(()=>{class A{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,g.Z)(function*(){return!0})()}_set(w,N){var ce=this;return(0,g.Z)(function*(){ce.storage[w]=N})()}_get(w){var N=this;return(0,g.Z)(function*(){const ce=N.storage[w];return void 0===ce?null:ce})()}_remove(w){var N=this;return(0,g.Z)(function*(){delete N.storage[w]})()}_addListener(w,N){}_removeListener(w,N){}}return A.type="NONE",A})();function qi(A,b,w){return`firebase:${A}:${b}:${w}`}class at{constructor(b,w,N){this.persistence=b,this.auth=w,this.userKey=N;const{config:ce,name:Ve}=this.auth;this.fullUserKey=qi(this.userKey,ce.apiKey,Ve),this.fullPersistenceKey=qi("persistence",ce.apiKey,Ve),this.boundEventHandler=w._onStorageEvent.bind(w),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(b){return this.persistence._set(this.fullUserKey,b.toJSON())}getCurrentUser(){var b=this;return(0,g.Z)(function*(){const w=yield b.persistence._get(b.fullUserKey);return w?Tt._fromJSON(b.auth,w):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(b){var w=this;return(0,g.Z)(function*(){if(w.persistence===b)return;const N=yield w.getCurrentUser();return yield w.removeCurrentUser(),w.persistence=b,N?w.setCurrentUser(N):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(b,w){return(0,g.Z)(function*(N,ce,Ve="authUser"){if(!ce.length)return new at(Yn(Ii),N,Ve);const qt=(yield Promise.all(ce.map(function(){var ir=(0,g.Z)(function*(mo){if(yield mo._isAvailable())return mo});return function(mo){return ir.apply(this,arguments)}}()))).filter(ir=>ir);let an=qt[0]||Yn(Ii);const jn=qi(Ve,N.config.apiKey,N.name);let vi=null;for(const ir of ce)try{const mo=yield ir._get(jn);if(mo){const Ws=Tt._fromJSON(N,mo);ir!==an&&(vi=Ws),an=ir;break}}catch{}const Wi=qt.filter(ir=>ir._shouldAllowMigration);return an._shouldAllowMigration&&Wi.length?(an=Wi[0],vi&&(yield an._set(jn,vi.toJSON())),yield Promise.all(ce.map(function(){var ir=(0,g.Z)(function*(mo){if(mo!==an)try{yield mo._remove(jn)}catch{}});return function(mo){return ir.apply(this,arguments)}}())),new at(an,N,Ve)):new at(an,N,Ve)}
1).apply(this,arguments)}}function Xe(A){const b=A.toLowerCase();if(b.includes("opera/")||b.includes("opr/")||b.includes("opios/"))return"Opera";if(Ot(b))return"IEMobile";if(b.includes("msie")||b.includes("trident/"))return"IE";if(b.includes("edge/"))return"Edge";if(Re(b))return"Firefox";if(b.includes("silk/"))return"Silk";if(pt(b))return"Blackberry";if(Gt(b))return"Webos";if(Ie(b))return"Safari";if((b.includes("chrome/")||xe(b))&&!b.includes("edge/"))return"Chrome";if(en(b))return"Android";{const N=A.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===N?.length)return N[1]}return"Other"}function Re(A=(0,e.z$)()){return/firefox\//i.test(A)}function Ie(A=(0,e.z$)()){const b=A.toLowerCase();return b.includes("safari/")&&!b.includes("chrome/")&&!b.includes("crios/")&&!b.includes("android")}function xe(A=(0,e.z$)()){return/crios\//i.test(A)}function Ot(A=(0,e.z$)()){return/iemobile/i.test(A)}function en(A=(0,e.z$)()){return/android/i.test(A)}function pt(A=(0,e.z$)()){return/blackberry/i.test(A)}function Gt(A=(0,e.z$)()){return/webos/i.test(A)}function Ce(A=(0,e.z$)()){return/iphone|ipad|ipod/i.test(A)||/macintosh/i.test(A)&&/mobile/i.test(A)}function Ue(A=(0,e.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(A)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(A)}function Nt(A=(0,e.z$)()){return Ce(A)||en(A)||Gt(A)||pt(A)||/windows phone/i.test(A)||Ot(A)}function Nn(A,b=[]){let w;switch(A){case"Browser":w=Xe((0,e.z$)());break;case"Worker":w=`${Xe((0,e.z$)())}-${A}`;break;default:w=A}const N=b.length?b.join(","):"FirebaseCore-web";return`${w}/JsCore/${R.SDK_VERSION}/${N}`}function Ft(){return(Ft=(0,g.Z)(function*(A){return(yield ie(A,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function bn(A,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,g.Z)(function*(A,b){return ie(A,"GET","/v2/recaptchaConfig",je(A,b))})).apply(this,arguments)}function ni(A){return void 0!==A&&void 0!==A.getResponse}function di(A){return void 0!==A&&void 0!==A.enterprise}class ti{constructor(b){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===b.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=b.recaptchaKey.split("/")[3],this.emailPasswordEnabled=b.recaptchaEnforcementState.some(w=>"EMAIL_PASSWORD_PROVIDER"===w.provider&&"OFF"!==w.enforcementState)}}function Ai(A){return new Promise((b,w)=>{const N=document.createElement("script");N.setAttribute("src",A),N.onload=b,N.onerror=ce=>{const Ve=fe("internal-error");Ve.customData=ce,w(Ve)},N.type="text/javascript",N.charset="UTF-8",function cr(){var A,b;return null!==(b=null===(A=document.getElementsByTagName("head"))||void 0===A?void 0:A[0])&&void 0!==b?b:document}().appendChild(N)})}function fr(A){return`__${A}${Math.floor(1e6*Math.random())}`}class ho{constructor(b){this.type="recaptcha-enterprise",this.auth=he(b)}verify(){var b=this;return(0,g.Z)(function*(w="verify",N=!1){function Ve(){return Ve=(0,g.Z)(function*(an){if(!N){if(null==an.tenantId&&null!=an._agentRecaptchaConfig)return an._agentRecaptchaConfig.siteKey;if(null!=an.tenantId&&void 0!==an._tenantRecaptchaConfigs[an.tenantId])return an._tenantRecaptchaConfigs[an.tenantId].siteKey}return new Promise(function(){var jn=(0,g.Z)(function*(vi,Wi){bn(an,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(ir=>{if(void 0!==ir.recaptchaKey){const mo=new ti(ir);return null==an.tenantId?an._agentRecaptchaConfig=mo:an._tenantRecaptchaConfigs[an.tenantId]=mo,vi(mo.siteKey)}Wi(new Error("recaptcha Enterprise site key undefined"))}).catch(ir=>{Wi(ir)})});return function(vi,Wi){return jn.apply(this,arguments)}}())}),Ve.apply(this,arguments)}function qt(an,jn,vi){const Wi=window.grecaptcha;di(Wi)?Wi.enterprise.ready(()=>{Wi.enterprise.execute(an,{action:w}).then(ir=>{jn(ir)}).catch(()=>{jn("NO_RECAPTCHA")})}):vi(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((an,jn)=>{(function ce(an){return Ve.apply(this,arguments)})(b.auth).then(vi=>{if(!N&&di(window.grecaptcha))qt(vi,an,jn);else{if(typeof window>"u")return void jn(new Error("RecaptchaVerifier is only supported in browser"));Ai("https://www.google.com/recaptcha/enterprise.js?render="+vi).then(()=>{qt(vi,an,jn)}).catch(Wi=>{jn(Wi)})}}).catch(vi=>{jn(vi)})})}).apply(this,arguments)}}function Ni(A,b,w){return jr.apply(this,arguments)}function jr(){return(jr=(0,g.Z)(function*(A,b,w,N=!1){const ce=new ho(A);let Ve;try{Ve=yield ce.verify(w)}catch{Ve=yield ce.verify(w,!0)}const qt=Object.assign({},b);return Object.assign(qt,N?{captchaResp:Ve}:{captchaResponse:Ve}),Object.assign(qt,{clientType:"CLIENT_TYPE_WEB"}
1),Object.assign(qt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),qt})).apply(this,arguments)}class Xr{constructor(b){this.auth=b,this.queue=[]}pushCallback(b,w){const N=Ve=>new Promise((qt,an)=>{try{qt(b(Ve))}catch(jn){an(jn)}});N.onAbort=w,this.queue.push(N);const ce=this.queue.length-1;return()=>{this.queue[ce]=()=>Promise.resolve()}}runMiddleware(b){var w=this;return(0,g.Z)(function*(){if(w.auth.currentUser===b)return;const N=[];try{for(const ce of w.queue)yield ce(b),ce.onAbort&&N.push(ce.onAbort)}catch(ce){N.reverse();for(const Ve of N)try{Ve()}catch{}throw w.auth._errorFactory.create("login-blocked",{originalMessage:ce?.message})}})()}}class Bt{constructor(b,w,N,ce){this.app=b,this.heartbeatServiceProvider=w,this.appCheckServiceProvider=N,this.config=ce,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ne(this),this.idTokenSubscription=new ne(this),this.beforeStateQueue=new Xr(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=At,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=b.name,this.clientVersion=ce.sdkClientVersion}_initializeWithPersistence(b,w){var N=this;return w&&(this._popupRedirectResolver=Yn(w)),this._initializationPromise=this.queue((0,g.Z)(function*(){var ce,Ve;if(!N._deleted&&(N.persistenceManager=yield at.create(N,b),!N._deleted)){if(null!==(ce=N._popupRedirectResolver)&&void 0!==ce&&ce._shouldInitProactively)try{yield N._popupRedirectResolver._initialize(N)}catch{}yield N.initializeCurrentUser(w),N.lastNotifiedUid=(null===(Ve=N.currentUser)||void 0===Ve?void 0:Ve.uid)||null,!N._deleted&&(N._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var b=this;return(0,g.Z)(function*(){if(b._deleted)return;const w=yield b.assertedPersistence.getCurrentUser();if(b.currentUser||w){if(b.currentUser&&w&&b.currentUser.uid===w.uid)return b._currentUser._assign(w),void(yield b.currentUser.getIdToken());yield b._updateCurrentUser(w,!0)}})()}initializeCurrentUser(b){var w=this;return(0,g.Z)(function*(){var N;const ce=yield w.assertedPersistence.getCurrentUser();let Ve=ce,qt=!1;if(b&&w.config.authDomain){yield w.getOrInitRedirectPersistenceManager();const an=null===(N=w.redirectUser)||void 0===N?void 0:N._redirectEventId,jn=Ve?._redirectEventId,vi=yield w.tryRedirectSignIn(b);(!an||an===jn)&&vi?.user&&(Ve=vi.user,qt=!0)}if(!Ve)return w.directlySetCurrentUser(null);if(!Ve._redirectEventId){if(qt)try{yield w.beforeStateQueue.runMiddleware(Ve)}catch(an){Ve=ce,w._popupRedirectResolver._overrideRedirectResult(w,()=>Promise.reject(an))}return Ve?w.reloadAndSetCurrentUserOrClear(Ve):w.directlySetCurrentUser(null)}return ze(w._popupRedirectResolver,w,"argument-error"),yield w.getOrInitRedirectPersistenceManager(),w.redirectUser&&w.redirectUser._redirectEventId===Ve._redirectEventId?w.directlySetCurrentUser(Ve):w.reloadAndSetCurrentUserOrClear(Ve)})()}tryRedirectSignIn(b){var w=this;return(0,g.Z)(function*(){let N=null;try{N=yield w._popupRedirectResolver._completeRedirectFn(w,b,!0)}catch{yield w._setRedirectUser(null)}return N})()}reloadAndSetCurrentUserOrClear(b){var w=this;return(0,g.Z)(function*(){try{yield ke(b)}catch(N){if("auth/network-request-failed"!==N?.code)return w.directlySetCurrentUser(null)}return w.directlySetCurrentUser(b)})()}useDeviceLanguage(){this.languageCode=function Ut(){if(typeof navigator>"u")return null;const A=navigator;return A.languages&&A.languages[0]||A.language||null}()}_delete(){var b=this;return(0,g.Z)(function*(){b._deleted=!0})()}updateCurrentUser(b){var w=this;return(0,g.Z)(function*(){const N=b?(0,e.m9)(b):null;return N&&ze(N.auth.config.apiKey===w.config.apiKey,w,"invalid-user-token"),w._updateCurrentUser(N&&N._clone(w))})()}_updateCurrentUser(b){var w=this;return(0,g.Z)(function*(N,ce=!1){if(!w._deleted)return N&&ze(w.tenantId===N.tenantId,w,"tenant-id-mismatch"),ce||(yield w.beforeStateQueue.runMiddleware(N)),w.queue((0,g.Z)(function*(){yield w.directlySetCurrentUser(N),w.notifyAuthListeners()}))}).apply(this,arguments)}signOut(){var b=this;return(0,g.Z)(function*(){return yield b.beforeStateQueue.runMiddleware(null),(b.redirectPersistenceManager||b._popupRedirectResolver)&&(yield b._setRedirectUser(null)),b._updateCurrentUser(null,!0)})()}setPersistence(b){var w=this;return this.queue((0,g.Z)(function*(){yield w.assertedPersistence.setPersistence(Yn(b))}))}initializeRecaptchaConfig(){var b=this;return(0,g.Z)(function*(){const w=yield bn(b,{clientType:"CLIENT_TYPE_WEB",ver
1sion:"RECAPTCHA_ENTERPRISE"}),N=new ti(w);null==b.tenantId?b._agentRecaptchaConfig=N:b._tenantRecaptchaConfigs[b.tenantId]=N,N.emailPasswordEnabled&&new ho(b).verify()})()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(b){this._errorFactory=new e.LL("auth","Firebase",b())}onAuthStateChanged(b,w,N){return this.registerStateListener(this.authStateSubscription,b,w,N)}beforeAuthStateChanged(b,w){return this.beforeStateQueue.pushCallback(b,w)}onIdTokenChanged(b,w,N){return this.registerStateListener(this.idTokenSubscription,b,w,N)}toJSON(){var b;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(b=this._currentUser)||void 0===b?void 0:b.toJSON()}}_setRedirectUser(b,w){var N=this;return(0,g.Z)(function*(){const ce=yield N.getOrInitRedirectPersistenceManager(w);return null===b?ce.removeCurrentUser():ce.setCurrentUser(b)})()}getOrInitRedirectPersistenceManager(b){var w=this;return(0,g.Z)(function*(){if(!w.redirectPersistenceManager){const N=b&&Yn(b)||w._popupRedirectResolver;ze(N,w,"argument-error"),w.redirectPersistenceManager=yield at.create(w,[Yn(N._redirectPersistence)],"redirectUser"),w.redirectUser=yield w.redirectPersistenceManager.getCurrentUser()}return w.redirectPersistenceManager})()}_redirectUserForId(b){var w=this;return(0,g.Z)(function*(){var N,ce;return w._isInitialized&&(yield w.queue((0,g.Z)(function*(){}))),(null===(N=w._currentUser)||void 0===N?void 0:N._redirectEventId)===b?w._currentUser:(null===(ce=w.redirectUser)||void 0===ce?void 0:ce._redirectEventId)===b?w.redirectUser:null})()}_persistUserIfCurrent(b){var w=this;return(0,g.Z)(function*(){if(b===w.currentUser)return w.queue((0,g.Z)(function*(){return w.directlySetCurrentUser(b)}))})()}_notifyListenersIfCurrent(b){b===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var b,w;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const N=null!==(w=null===(b=this.currentUser)||void 0===b?void 0:b.uid)&&void 0!==w?w:null;this.lastNotifiedUid!==N&&(this.lastNotifiedUid=N,this.authStateSubscription.next(this.currentUser))}registerStateListener(b,w,N,ce){if(this._deleted)return()=>{};const Ve="function"==typeof w?w:w.next.bind(w),qt=this._isInitialized?Promise.resolve():this._initializationPromise;return ze(qt,this,"internal-error"),qt.then(()=>Ve(this.currentUser)),"function"==typeof w?b.addObserver(w,N,ce):b.addObserver(w)}directlySetCurrentUser(b){var w=this;return(0,g.Z)(function*(){w.currentUser&&w.currentUser!==b&&w._currentUser._stopProactiveRefresh(),b&&w.isProactiveRefreshEnabled&&b._startProactiveRefresh(),w.currentUser=b,b?yield w.assertedPersistence.setCurrentUser(b):yield w.assertedPersistence.removeCurrentUser()})()}queue(b){return this.operations=this.operations.then(b,b),this.operations}get assertedPersistence(){return ze(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(b){!b||this.frameworks.includes(b)||(this.frameworks.push(b),this.frameworks.sort(),this.clientVersion=Nn(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var b=this;return(0,g.Z)(function*(){var w;const N={"X-Client-Version":b.clientVersion};b.app.options.appId&&(N["X-Firebase-gmpid"]=b.app.options.appId);const ce=yield null===(w=b.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===w?void 0:w.getHeartbeatsHeader();ce&&(N["X-Firebase-Client"]=ce);const Ve=yield b._getAppCheckToken();return Ve&&(N["X-Firebase-AppCheck"]=Ve),N})()}_getAppCheckToken(){var b=this;return(0,g.Z)(function*(){var w;const N=yield null===(w=b.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===w?void 0:w.getToken();return N?.error&&function sn(A,...b){lt.logLevel<=ve.in.WARN&<.warn(`Auth (${R.SDK_VERSION}): ${A}`,...b)}(`Error while retrieving App Check token: ${N.error}`),N?.token})()}}function he(A){return(0,e.m9)(A)}class ne{constructor(b){this.auth=b,this.observer=null,this.addObserver=(0,e.ne)(w=>this.observer=w)}get next(){return ze(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function Vt(A,b,w){const N=he(A);ze(N._canInitEmulator,N,"emulator-config-failed"),ze(/^https?:\/\//.test(b),N,"invalid-emulator-scheme");const ce=!!w?.disableWarnings,Ve=Ke(b),{host:qt,port:an}=function Ge(A){const b=Ke(A),w=/(\/\/)?([^?#/]+)/.exec(A.substr(b.length));if(!w)return{host:"",port:null};const N=w[2].split("@").pop()||"",ce=/^(\[[^\]]+\])(:|$)/.exec(N);if(ce){const Ve=ce[1];return{host:Ve,port:ht(N.substr(Ve.length+1))}}{const[Ve,qt]=N.split(":");return{host:Ve,port:ht(qt)}}}(b);N.config.emulator={url:`${Ve}//${qt}${null===an?"":`:${an}`}/`},N.settings.appVerificationDisabledForTesting=!0,N.emulatorConfig=Object.freeze({host:qt,port:an,protocol:Ve.replace(":",""),options:Object.freeze({disableWarnings:ce})}),ce||function Kt(){function A(){const b=document.createElement("p"),w=b.style;b.innerText="Running in emulator mode. Do not use with production credentials.",w.position="fixed",w.width="100%",w.backgroundColor="#ffffff",w.border=".1em solid #000000",w.color="#b50000",w.bottom="0px",w.left="0px",w.margin="0px",w.zIndex="10000",w.textAlign="center",b.classList.add("firebase-emulator-warning"),document.body.appendChild(b)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",A):A())}()}function Ke(A){const b=A.indexOf(":");return b<0?"":A.substr(0,b+1)}function ht(A){if(!A)return null;const b=Number(A);return isNaN(b)?null:b}class we{constructor(b,w){this.providerId=b,this.signInMethod=w}toJSON(){return xt("not implemented")}_getIdTokenResponse(b){return xt("not implemented")}_linkToIdToken(b,w){return xt("not implemented")}_getReauthenticationResolver(b){return xt("not implemented")}}function ct(A,b){return jt.apply(this,arguments)}function jt(){return(jt=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:resetPassword",je(A,b))})).apply(this,arguments)}function Mn(A,b){return Jn.apply(this,arguments)}function Jn(){return(Jn=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:update",b)})).apply(this,arguments)}function Mi(A,b){return Ti.apply(this,arguments)}function Ti(){return(Ti=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:update",je(A,b))})).apply(this,arguments)}function $i(A,b){return Ji.apply(this,arguments)}function Ji(){return(Ji=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithPassword",je(A,b))})).apply(this,arguments)}function eo(A,b){return Do.apply(this,arguments)}function Do(){return(Do=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:sendOobCode",je(A,b))})).apply(this,arguments)}function As(A,b){return Wo.apply(this,arguments)}function Wo(){return(Wo=(0,g.Z)(function*(A,b){return eo(A,b)})).apply(this,arguments)}function Ao(A,b){return vs.apply(this,arguments)}function vs(){return(vs=(0,g.Z)(function*(A,b){return eo(A,b)})).apply(this,arguments)}function Is(A,b){return co.apply(this,arguments)}function co(){return(co=(0,g.Z)(function*(A,b){return eo(A,b)})).apply(this,arguments)}function Ko(A,b){return Zs.apply(this,arguments)}function Zs(){return(Zs=(0,g.Z)(function*(A,b){return eo(A,b)})).apply(this,arguments)}function Co(){return(Co=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithEmailLink",je(A,b))})).apply(this,arguments)}function Mo(){return(Mo=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithEmailLink",je(A,b))})).apply(this,arguments)}class Ss extends we{constructor(b,w,N,ce=null){super("password",N),this._email=b,this._password=w,this._tenantId=ce}static _fromEmailAndPassword(b,w){return new Ss(b,w,"password")}static _fromEmailAndCode(b,w,N=null){return new Ss(b,w,"emailLink",N)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(b){const w="string"==typeof b?JSON.parse(b):b;if(w?.email&&w?.password){if("password"===w.signInMethod)return this._fromEmailAndPassword(w.email,w.password);if("emailLink"===w.signInMethod)return this._fromEmailAndCode(w.email,w.password,w.tenantId)}return null}_getIdTokenResponse(b){var w=this;return(0,g.Z)(function*(){var N;switch(w.signInMethod){case"password":const ce={returnSecureToken:!0,email:w._email,password:w._password,clientType:"CLIENT_TYPE_WEB"};if(null!==(N=b._getRecaptchaConfig())&&void 0!==N&&N.emailPasswordEnabled){const Ve=yield Ni(b,ce,"signInWithPassword");return $i(b,Ve)}return $i(b,ce).catch(function(){var Ve=(0,g.Z)(function*(qt){if("auth/missing-rec
1aptcha-token"===qt.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const an=yield Ni(b,ce,"signInWithPassword");return $i(b,an)}return Promise.reject(qt)});return function(qt){return Ve.apply(this,arguments)}}());case"emailLink":return function Vo(A,b){return Co.apply(this,arguments)}(b,{email:w._email,oobCode:w._password});default:ot(b,"internal-error")}})()}_linkToIdToken(b,w){var N=this;return(0,g.Z)(function*(){switch(N.signInMethod){case"password":return Mn(b,{idToken:w,returnSecureToken:!0,email:N._email,password:N._password});case"emailLink":return function fo(A,b){return Mo.apply(this,arguments)}(b,{idToken:w,email:N._email,oobCode:N._password});default:ot(b,"internal-error")}})()}_getReauthenticationResolver(b){return this._getIdTokenResponse(b)}}function zi(A,b){return cs.apply(this,arguments)}function cs(){return(cs=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithIdp",je(A,b))})).apply(this,arguments)}class to extends we{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(b){const w=new to(b.providerId,b.signInMethod);return b.idToken||b.accessToken?(b.idToken&&(w.idToken=b.idToken),b.accessToken&&(w.accessToken=b.accessToken),b.nonce&&!b.pendingToken&&(w.nonce=b.nonce),b.pendingToken&&(w.pendingToken=b.pendingToken)):b.oauthToken&&b.oauthTokenSecret?(w.accessToken=b.oauthToken,w.secret=b.oauthTokenSecret):ot("argument-error"),w}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(b){const w="string"==typeof b?JSON.parse(b):b,{providerId:N,signInMethod:ce}=w,Ve=(0,me._T)(w,["providerId","signInMethod"]);if(!N||!ce)return null;const qt=new to(N,ce);return qt.idToken=Ve.idToken||void 0,qt.accessToken=Ve.accessToken||void 0,qt.secret=Ve.secret,qt.nonce=Ve.nonce,qt.pendingToken=Ve.pendingToken||null,qt}_getIdTokenResponse(b){return zi(b,this.buildRequest())}_linkToIdToken(b,w){const N=this.buildRequest();return N.idToken=w,zi(b,N)}_getReauthenticationResolver(b){const w=this.buildRequest();return w.autoCreate=!1,zi(b,w)}buildRequest(){const b={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)b.pendingToken=this.pendingToken;else{const w={};this.idToken&&(w.id_token=this.idToken),this.accessToken&&(w.access_token=this.accessToken),this.secret&&(w.oauth_token_secret=this.secret),w.providerId=this.providerId,this.nonce&&!this.pendingToken&&(w.nonce=this.nonce),b.postBody=(0,e.xO)(w)}return b}}function bs(A,b){return is.apply(this,arguments)}function is(){return(is=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:sendVerificationCode",je(A,b))})).apply(this,arguments)}function Io(){return(Io=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithPhoneNumber",je(A,b))})).apply(this,arguments)}function fa(){return(fa=(0,g.Z)(function*(A,b){const w=yield hn(A,"POST","/v1/accounts:signInWithPhoneNumber",je(A,b));if(w.temporaryProof)throw ai(A,"account-exists-with-different-credential",w);return w})).apply(this,arguments)}const rs={USER_NOT_FOUND:"user-not-found"};function Bs(){return(Bs=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithPhoneNumber",je(A,Object.assign(Object.assign({},b),{operation:"REAUTH"})),rs)})).apply(this,arguments)}class Ur extends we{constructor(b){super("phone","phone"),this.params=b}static _fromVerification(b,w){return new Ur({verificationId:b,verificationCode:w})}static _fromTokenResponse(b,w){return new Ur({phoneNumber:b,temporaryProof:w})}_getIdTokenResponse(b){return function ea(A,b){return Io.apply(this,arguments)}(b,this._makeVerificationRequest())}_linkToIdToken(b,w){return function ha(A,b){return fa.apply(this,arguments)}(b,Object.assign({idToken:w},this._makeVerificationRequest()))}_getReauthenticationResolver(b){return function no(A,b){return Bs.apply(this,arguments)}(b,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:b,phoneNumber:w,verificationId:N,verificationCode:ce}=this.params;return b&&w?{temporaryProof:b,phoneNumber:w}:{sessionInfo:N,code:ce}}toJSON(){const b={providerId:this.providerId};return this.params.phoneNumber&&(b.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(b.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(b.verificationCode=this.params.verificationCode),this.params.verificationId&&(b.verificationId=this.params.verificationId),b}static fromJSON(b){"string"==typeof b&&(b=JSON.parse(b));const{verificationId:w,verificationCode:N,phoneNumber:ce,temporaryProof:Ve}=b;return N||w||ce||Ve?new Ur({verificationId:w,verificationCode:N,phoneNumber:ce,temporaryProof:Ve}):null}}class oo{constructor(b){var w,N,ce,Ve,qt,an;const jn=(0,e.zd)((0,e.pd)(b)),vi=null!==(w=jn.apiKey)&&void 0!==w?w:null,Wi=null!==(N=jn.oobCode)&&void 0!==N?N:null,ir=function ks(A){switch(A){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(ce=jn.mode)&&void 0!==ce?ce:null);ze(vi&&Wi&&ir,"argument-error"),this.apiKey=vi,this.operation=ir,this.code=Wi,this.continueUrl=null!==(Ve=jn.continueUrl)&&void 0!==Ve?Ve:null,this.languageCode=null!==(qt=jn.languageCode)&&void 0!==qt?qt:null,this.tenantId=null!==(an=jn.tenantId)&&void 0!==an?an:null}static parseLink(b){const w=function Rs(A){const b=(0,e.zd)((0,e.pd)(A)).link,w=b?(0,e.zd)((0,e.pd)(b)).deep_link_id:null,N=(0,e.zd)((0,e.pd)(A)).deep_link_id;return(N?(0,e.zd)((0,e.pd)(N)).link:null)||N||w||b||A}(b);try{return new oo(w)}catch{return null}}}let ge=(()=>{class A{constructor(){this.providerId=A.PROVIDER_ID}static credential(w,N){return Ss._fromEmailAndPassword(w,N)}static credentialWithLink(w,N){const ce=oo.parseLink(N);
1return ze(ce,"argument-error"),Ss._fromEmailAndCode(w,ce.code,ce.tenantId)}}return A.PROVIDER_ID="password",A.EMAIL_PASSWORD_SIGN_IN_METHOD="password",A.EMAIL_LINK_SIGN_IN_METHOD="emailLink",A})();class Qe{constructor(b){this.providerId=b,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(b){this.defaultLanguageCode=b}setCustomParameters(b){return this.customParameters=b,this}getCustomParameters(){return this.customParameters}}class Et extends Qe{constructor(){super(...arguments),this.scopes=[]}addScope(b){return this.scopes.includes(b)||this.scopes.push(b),this}getScopes(){return[...this.scopes]}}class Ht extends Et{static credentialFromJSON(b){const w="string"==typeof b?JSON.parse(b):b;return ze("providerId"in w&&"signInMethod"in w,"argument-error"),to._fromParams(w)}credential(b){return this._credential(Object.assign(Object.assign({},b),{nonce:b.rawNonce}))}_credential(b){return ze(b.idToken||b.accessToken,"argument-error"),to._fromParams(Object.assign(Object.assign({},b),{providerId:this.providerId,sign
1InMethod:this.providerId}))}static credentialFromResult(b){return Ht.oauthCredentialFromTaggedObject(b)}static credentialFromError(b){return Ht.oauthCredentialFromTaggedObject(b.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:b}){if(!b)return null;const{oauthIdToken:w,oauthAccessToken:N,oauthTokenSecret:ce,pendingToken:Ve,nonce:qt,providerId:an}=b;if(!N&&!ce&&!w&&!Ve||!an)return null;try{return new Ht(an)._credential({idToken:w,accessToken:N,nonce:qt,pendingToken:Ve})}catch{return null}}}let fn=(()=>{class A extends Et{constructor(){super("facebook.com")}static credential(w){return to._fromParams({providerId:A.PROVIDER_ID,signInMethod:A.FACEBOOK_SIGN_IN_METHOD,accessToken:w})}static credentialFromResult(w){return A.credentialFromTaggedObject(w)}static credentialFromError(w){return A.credentialFromTaggedObject(w.customData||{})}static credentialFromTaggedObject({_tokenResponse:w}){if(!w||!("oauthAccessToken"in w)||!w.oauthAccessToken)return null;try{return A.credential(w.oauthAccessToken)}catch{return null}}}return A.FACEBOOK_SIGN_IN_METHOD="facebook.com",A.PROVIDER_ID="facebook.com",A})(),Rn=(()=>{class A extends Et{constructor(){super("google.com"),this.addScope("profile")}static credential(w,N){return to._fromParams({providerId:A.PROVIDER_ID,signInMethod:A.GOOGLE_SIGN_IN_METHOD,idToken:w,accessToken:N})}static credentialFromResult(w){return A.credentialFromTaggedObject(w)}static credentialFromError(w){return A.credentialFromTaggedObject(w.customData||{})}static credentialFromTaggedObject({_tokenResponse:w}){if(!w)return null;const{oauthIdToken:N,oauthAccessToken:ce}=w;if(!N&&!ce)return null;try{return A.credential(N,ce)}catch{return null}}}return A.GOOGLE_SIGN_IN_METHOD="google.com",A.PROVIDER_ID="google.com",A})(),hi=(()=>{class A extends Et{constructor(){super("github.com")}static credential(w){return to._fromParams({providerId:A.PROVIDER_ID,signInMethod:A.GITHUB_SIGN_IN_METHOD,accessToken:w})}static credentialFromResult(w){return A.credentialFromTaggedObject(w)}static credentialFromError(w){return A.credentialFromTaggedObject(w.customData||{})}static credentialFromTaggedObject({_tokenResponse:w}){if(!w||!("oauthAccessToken"in w)||!w.oauthAccessToken)return null;try{return A.credential(w.oauthAccessToken)}catch{return null}}}return A.GITHUB_SIGN_IN_METHOD="github.com",A.PROVIDER_ID="github.com",A})();class Fi extends we{constructor(b,w){super(b,b),this.pendingToken=w}_getIdTokenResponse(b){return zi(b,this.buildRequest())}_linkToIdToken(b,w){const N=this.buildRequest();return N.idToken=w,zi(b,N)}_getReauthenticationResolver(b){const w=this.buildRequest();return w.autoCreate=!1,zi(b,w)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(b){const w="string"==typeof b?JSON.parse(b):b,{providerId:N,signInMethod:ce,pendingToken:Ve}=w;return N&&ce&&Ve&&N===ce?new Fi(N,Ve):null}static _create(b,w){return new Fi(b,w)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class Zr extends Qe{constructor(b){ze(b.startsWith("saml."),"argument-error"),super(b)}static credentialFromResult(b){return Zr.samlCredentialFromTaggedObject(b)}static credentialFromError(b){return Zr.samlCredentialFromTaggedObject(b.customData||{})}static credentialFromJSON(b){const w=Fi.fromJSON(b);return ze(w,"argument-error"),w}static samlCredentialFromTaggedObject({_tokenResponse:b}){if(!b)return null;const{pendingToken:w,providerId:N}=b;if(!w||!N)return null;try{return Fi._create(N,w)}catch{return null}}}let Br=(()=>{class A extends Et{constructor(){super("twitter.com")}static credential(w,N){return to._fromParams({providerId:A.PROVIDER_ID,signInMethod:A.TWITTER_SIGN_IN_METHOD,oauthToken:w,oauthTokenSecret:N})}static credentialFromResult(w){return A.credentialFromTaggedObject(w)}static credentialFromError(w){return A.credentialFromTaggedObject(w.customData||{})}static credentialFromTaggedObject({_tokenResponse:w}){if(!w)return null;const{oauthAccessToken:N,oauthTokenSecret:ce}=w;if(!N||!ce)return null;try{return A.credential(N,ce)}catch{return null}}}return A.TWITTER_SIGN_IN_METHOD="twitter.com",A.PROVIDER_ID="twitter.com",A})();function Dr(A,b){return nr.apply(this,arguments)}function nr(){return(nr=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signUp",je(A,b))})).apply(this,arguments)}class ji{constructor(b){this.user=b.user,this.providerId=b.providerId,this._tokenResponse=b._token
1Response,this.operationType=b.operationType}static _fromIdTokenResponse(b,w,N){return(0,g.Z)(function*(ce,Ve,qt,an=!1){const jn=yield Tt._fromIdTokenResponse(ce,qt,an),vi=br(qt);return new ji({user:jn,providerId:vi,_tokenResponse:qt,operationType:Ve})}).apply(this,arguments)}static _forOperation(b,w,N){return(0,g.Z)(function*(){yield b._updateTokensIfNecessary(N,!0);const ce=br(N);return new ji({user:b,providerId:ce,_tokenResponse:N,operationType:w})})()}}function br(A){return A.providerId?A.providerId:"phoneNumber"in A?"phone":null}function mi(A){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,g.Z)(function*(A){var b;const w=he(A);if(yield w._initializationPromise,null!==(b=w.currentUser)&&void 0!==b&&b.isAnonymous)return new ji({user:w.currentUser,providerId:null,operationType:"signIn"});const N=yield Dr(w,{returnSecureToken:!0}),ce=yield ji._fromIdTokenResponse(w,"signIn",N,!0);return yield w._updateCurrentUser(ce.user),ce})).apply(this,arguments)}class Rr extends e.ZR{constructor(b,w,N,ce){var Ve;super(w.code,w.message),this.operationType=N,this.user=ce,Object.setPrototypeOf(this,Rr.prototype),this.customData={appName:b.name,tenantId:null!==(Ve=b.tenantId)&&void 0!==Ve?Ve:void 0,_serverResponse:w.customData._serverResponse,operationType:N}}static _fromErrorAndOperation(b,w,N,ce){return new Rr(b,w,N,ce)}}function Hr(A,b,w,N){return("reauthenticate"===b?w._getReauthenticationResolver(A):w._getIdTokenResponse(A)).catch(Ve=>{throw"auth/multi-factor-auth-required"===Ve.code?Rr._fromErrorAndOperation(A,Ve,b,N):Ve})}function ur(A){return new Set(A.map(({providerId:b})=>b).filter(b=>!!b))}function Yo(A,b){return ys.apply(this,arguments)}function ys(){return(ys=(0,g.Z)(function*(A,b){const w=(0,e.m9)(A);yield On(!0,w,b);const{providerUserInfo:N}=yield Ln(w.auth,{idToken:yield w.getIdToken(),deleteProvider:[b]}),ce=ur(N||[]);return w.providerData=w.providerData.filter(Ve=>ce.has(Ve.providerId)),ce.has("phone")||(w.phoneNumber=null),yield w.auth._persistUserIfCurrent(w),w})).apply(this,arguments)}function Jo(A,b){return os.apply(this,arguments)}function os(){return(os=(0,g.Z)(function*(A,b,w=!1){const N=yield Oe(A,b._linkToIdToken(A.auth,yield A.getIdToken()),w);return ji._forOperation(A,"link",N)})).apply(this,arguments)}function On(A,b,w){return Qi.apply(this,arguments)}function Qi(){return(Qi=(0,g.Z)(function*(A,b,w){yield ke(b);const ce=!1===A?"provider-already-linked":"no-such-provider";ze(ur(b.providerData).has(w)===A,b.auth,ce)})).apply(this,arguments)}function So(A,b){return ko.apply(this,arguments)}function ko(){return(ko=(0,g.Z)(function*(A,b,w=!1){const{auth:N}=A,ce="reauthenticate";try{const Ve=yield Oe(A,Hr(N,ce,b,A),w);ze(Ve.idToken,N,"internal-error");const qt=ei(Ve.idToken);ze(qt,N,"internal-error");const{sub:an}=qt;return ze(A.uid===an,N,"user-mismatch"),ji._forOperation(A,ce,Ve)}catch(Ve){throw"auth/user-not-found"===Ve?.code&&ot(N,"user-mismatch"),Ve}})).apply(this,arguments)}function so(A,b){return J.apply(this,arguments)}function J(){return(J=(0,g.Z)(function*(A,b,w=!1){const N="signIn",ce=yield Hr(A,N,b),Ve=yield ji._fromIdTokenResponse(A,N,ce);return w||(yield A._updateCurrentUser(Ve.user)),Ve})).apply(this,arguments)}function W(A,b){return H.apply(this,arguments)}function H(){return(H=(0,g.Z)(function*(A,b){return so(he(A),b)})).apply(this,arguments)}function Se(A,b){return ln.apply(this,arguments)}function ln(){return(ln=(0,g.Z)(function*(A,b){const w=(0,e.m9)(A);return yield On(!1,w,b.providerId),Jo(w,b)})).apply(this,arguments)}function pi(A,b){return Hi.apply(this,arguments)}function Hi(){return(Hi=(0,g.Z)(function*(A,b){return So((0,e.m9)(A),b)})).apply(this,arguments)}function us(A,b){return qo.apply(this,arguments)}function qo(){return(qo=(0,g.Z)(function*(A,b){return hn(A,"POST","/v1/accounts:signInWithCustomToken",je(A,b))})).apply(this,arguments)}function Or(A,b){return Me.apply(this,arguments)}function Me(){return(Me=(0,g.Z)(function*(A,b){const w=he(A),N=yield us(w,{token:b,returnSecureToken:!0}),ce=yield ji._fromIdTokenResponse(w,"signIn",N);return yield w._updateCurrentUser(ce.user),ce})).apply(this,arguments)}class Fe{constructor(b,w){this.factorId=b,this.uid=w.mfaEnrollmentId,this.enrollmentTime=new Date(w.enrolledAt).toUTCString(),this.displayName=w.displayName}
1static _fromServerResponse(b,w){return"phoneInfo"in w?vt._fromServerResponse(b,w):"totpInfo"in w?Qt._fromServerResponse(b,w):ot(b,"internal-error")}}class vt extends Fe{constructor(b){super("phone",b),this.phoneNumber=b.phoneInfo}static _fromServerResponse(b,w){return new vt(w)}}class Qt extends Fe{constructor(b){super("totp",b)}static _fromServerResponse(b,w){return new Qt(w)}}function Pn(A,b,w){var N;ze((null===(N=w.url)||void 0===N?void 0:N.length)>0,A,"invalid-continue-uri"),ze(typeof w.dynamicLinkDomain>"u"||w.dynamicLinkDomain.length>0,A,"invalid-dynamic-link-domain"),b.continueUrl=w.url,b.dynamicLinkDomain=w.dynamicLinkDomain,b.canHandleCodeInApp=w.handleCodeInApp,w.iOS&&(ze(w.iOS.bundleId.length>0,A,"missing-ios-bundle-id"),b.iOSBundleId=w.iOS.bundleId),w.android&&(ze(w.android.packageName.length>0,A,"missing-android-pkg-name"),b.androidInstallApp=w.android.installApp,b.androidMinimumVersionCode=w.android.minimumVersion,b.androidPackageName=w.android.packageName)}function Zn(A,b,w){return ci.apply(this,arguments)}function ci(){return ci=(0,g.Z)(function*(A,b,w){var N;const ce=he(A),Ve={requestType:"PASSWORD_RESET",email:b,clientType:"CLIENT_TYPE_WEB"};if(null!==(N=ce._getRecaptchaConfig())&&void 0!==N&&N.emailPasswordEnabled){const qt=yield Ni(ce,Ve,"getOobCode",!0);w&&Pn(ce,qt,w),yield Ao(ce,qt)}else w&&Pn(ce,Ve,w),yield Ao(ce,Ve).catch(function(){var qt=(0,g.Z)(function*(an){if("auth/missing-recaptcha-token"!==an.code)return Promise.reject(an);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const jn=yield Ni(ce,Ve,"getOobCode",!0);w&&Pn(ce,jn,w),yield Ao(ce,jn)}});return function(an){return qt.apply(this,arguments)}}())}),ci.apply(this,arguments)}function dr(A,b,w){return or.apply(this,arguments)}function or(){return(or=(0,g.Z)(function*(A,b,w){yield ct((0,e.m9)(A),{oobCode:b,newPassword:w})})).apply(this,arguments)}function wr(A,b){return pr.apply(this,arguments)}function pr(){return(pr=(0,g.Z)(function*(A,b){yield Mi((0,e.m9)(A),{oobCode:b})})).apply(this,arguments)}function Bi(A,b){return Ro.apply(this,arguments)}function Ro(){return(Ro=(0,g.Z)(function*(A,b){const w=(0,e.m9)(A),N=yield ct(w,{oobCode:b}),ce=N.requestType;switch(ze(ce,w,"internal-error"),ce){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":ze(N.newEmail,w,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":ze(N.mfaInfo,w,"internal-error");default:ze(N.email,w,"internal-error")}let Ve=null;return N.mfaInfo&&(Ve=Fe._fromServerResponse(he(w),N.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===N.requestType?N.newEmail:N.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===N.requestType?N.email:N.newEmail)||null,multiFactorInfo:Ve},operation:ce}})).apply(this,arguments)}function Cs(A,b){return Qo.apply(this,arguments)}function Qo(){return(Qo=(0,g.Z)(function*(A,b){const{data:w}=yield Bi((0,e.m9)(A),b);return w.email})).apply(this,arguments)}function ta(A,b,w){return na.apply(this,arguments)}function na(){return na=(0,g.Z)(function*(A,b,w){var N;const ce=he(A),Ve={returnSecureToken:!0,email:b,password:w,clientType:"CLIENT_TYPE_WEB"};let qt;if(null!==(N=ce._getRecaptchaConfig())&&void 0!==N&&N.emailPasswordEnabled){const vi=yield Ni(ce,Ve,"signUpPassword");qt=Dr(ce,vi)}else qt=Dr(ce,Ve).catch(function(){var vi=(0,g.Z)(function*(Wi){if("auth/missing-recaptcha-token"===Wi.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const ir=yield Ni(ce,Ve,"signUpPassword");return Dr(ce,ir)}return Promise.reject(Wi)});return function(Wi){return vi.apply(this,arguments)}}());const an=yield qt.catch(vi=>Promise.reject(vi)),jn=yield ji._fromIdTokenResponse(ce,"signIn",an);return yield ce._updateCurrentUser(jn.user),jn}),na.apply(this,arguments)}function Xo(A,b,w){return W((0,e.m9)(A),ge.credential(b,w))}function ao(A,b,w){return xs.apply(this,arguments)}function xs(){return xs=(0,g.Z)(function*(A,b,w){var N;const ce=he(A),Ve={requestType:"EMAIL_SIGNIN",email:b,clientType:"CLIENT_TYPE_WEB"};function qt(an,jn){ze(jn.handleCodeInApp,ce,"argument-error"),jn&&Pn(ce,an,jn)}if(null!==(N=ce._getRecaptchaConfig())&&void 0!==N&&N.emailPasswordEnabled){const an=yield Ni(ce,Ve,"getOobCode",!0);qt(an,w),yield Is(ce,an)}else qt(Ve,w),yield Is(ce,Ve).catch(function(){var an=(0,g.Z)(function*(jn){if("auth/missing-rec
1aptcha-token"!==jn.code)return Promise.reject(jn);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const vi=yield Ni(ce,Ve,"getOobCode",!0);qt(vi,w),yield Is(ce,vi)}});return function(jn){return an.apply(this,arguments)}}())}),xs.apply(this,arguments)}function $a(A,b){return"EMAIL_SIGNIN"===oo.parseLink(b)?.operation}function Ra(A,b,w){return Eo.apply(this,arguments)}function Eo(){return(Eo=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A),ce=ge.credentialWithLink(b,w||zt());return ze(ce._tenantId===(N.tenantId||null),N,"tenant-id-mismatch"),W(N,ce)})).apply(this,arguments)}function xo(A,b){return $r.apply(this,arguments)}function $r(){return($r=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:createAuthUri",je(A,b))})).apply(this,arguments)}function Tr(A,b){return yl.apply(this,arguments)}function yl(){return(yl=(0,g.Z)(function*(A,b){const N={identifier:b,continueUri:pn()?zt():"http://localhost"},{signinMethods:ce}=yield xo((0,e.m9)(A),N);return ce||[]})).apply(this,arguments)}function Cl(A,b){return zs.apply(this,arguments)}function zs(){return(zs=(0,g.Z)(function*(A,b){const w=(0,e.m9)(A),ce={requestType:"VERIFY_EMAIL",idToken:yield A.getIdToken()};b&&Pn(w.auth,ce,b);const{email:Ve}=yield As(w.auth,ce);Ve!==A.email&&(yield A.reload())})).apply(this,arguments)}function dc(A,b,w){return Na.apply(this,arguments)}function Na(){return(Na=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A),Ve={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield A.getIdToken(),newEmail:b};w&&Pn(N.auth,Ve,w);const{email:qt}=yield Ko(N.auth,Ve);qt!==A.email&&(yield A.reload())})).apply(this,arguments)}function pa(A,b){return Vs.apply(this,arguments)}function Vs(){return(Vs=(0,g.Z)(function*(A,b){return ie(A,"POST","/v1/accounts:update",b)})).apply(this,arguments)}function Ga(A,b){return Ns.apply(this,arguments)}function Ns(){return(Ns=(0,g.Z)(function*(A,{displayName:b,photoURL:w}){if(void 0===b&&void 0===w)return;const N=(0,e.m9)(A),Ve={idToken:yield N.getIdToken(),displayName:b,photoUrl:w,returnSecureToken:!0},qt=yield Oe(N,pa(N.auth,Ve));N.displayName=qt.displayName||null,N.photoURL=qt.photoUrl||null;const an=N.providerData.find(({providerId:jn})=>"password"===jn);an&&(an.displayName=N.displayName,an.photoURL=N.photoURL),yield N._updateTokensIfNecessary(qt)})).apply(this,arguments)}function ws(A,b){return qs((0,e.m9)(A),b,null)}function No(A,b){return qs((0,e.m9)(A),null,b)}function qs(A,b,w){return ga.apply(this,arguments)}function ga(){return(ga=(0,g.Z)(function*(A,b,w){const{auth:N}=A,Ve={idToken:yield A.getIdToken(),returnSecureToken:!0};b&&(Ve.email=b),w&&(Ve.password=w);const qt=yield Oe(A,Mn(N,Ve));yield A._updateTokensIfNecessary(qt,!0)})).apply(this,arguments)}class ya{constructor(b,w,N={}){this.isNewUser=b,this.providerId=w,this.profile=N}}class wo extends ya{constructor(b,w,N,ce){super(b,w,N),this.username=ce}}class Ca extends ya{constructor(b,w){super(b,"facebook.com",w)}}class ma extends wo{constructor(b,w){super(b,"github.com",w,"string"==typeof w?.login?w?.login:null)}}class B extends ya{constructor(b,w){super(b,"google.com",w)}}class oe extends wo{constructor(b,w,N){super(b,"twitter.com",w,N)}}function $(A){const{user:b,_tokenResponse:w}=A;return b.isAnonymous&&!w?{providerId:null,isNewUser:!1,profile:null}:function sl(A){var b,w;if(!A)return null;const{providerId:N}=A,ce=A.rawUserInfo?JSON.parse(A.rawUserInfo):{},Ve=A.isNewUser||"identitytoolkit#SignupNewUserResponse"===A.kind;if(!N&&A?.idToken){const qt=null===(w=null===(b=ei(A.idToken))||void 0===b?void 0:b.firebase)||void 0===w?void 0:w.sign_in_provider;if(qt)return new ya(Ve,"anonymous"!==qt&&"custom"!==qt?qt:null)}if(!N)return null;switch(N){case"facebook.com":return new Ca(Ve,ce);case"github.com":return new ma(Ve,ce);case"google.com":return new B(Ve,ce);case"twitter.com":return new oe(Ve,ce,A.screenName||null);case"custom":case"anonymous":return new ya(Ve,null);default:return new ya(Ve,N,ce)}}(w)}function xi(A,b,w,N){return(0,e.m9)(A).onAuthStateChanged(b,w,N)}class er{constructor(b,w,N){this.type=b,this.credential=w,this.auth=N}static _fromIdtoken(b,w){return new er("enroll",b,w)}static _fromMfaPendingCredential(b){return new er("signin",b)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(b){var w,N;if(b?.multiFactorSession){if(null!==(w=b.multiFactorSession)&&void 0!==w&&w.pendingCredential)return er._fromMfaPendingCredential(b.multiFactorSession.pendingCredential);if(null!==(N=b.multiFactorSession)&&void 0!==N&&N.idToken)return er._fromIdtoken(b.multiFactorSession.idToken)}return null}}class lo{constructor(b,w,N){this.session=b,this.hints=w,this.signInResolver=N}static _fromError(b,w){const N=he(b),ce=w.customData._serverResponse,Ve=(ce.mfaInfo||[]).map(an=>Fe._fromServerResponse(N,an));ze(ce.mfaPendingCredential,N,"internal-error");const qt=er._fromMfaPendingCredential(ce.mfaPendingCredential);return new lo(qt,Ve,function(){var an=(0,g.Z)(function*(jn){const vi=yield jn._process(N,qt);delete ce.mfaInfo,delete ce.mfaPendingCredential;const Wi=Object.assign(Object.assign({},ce),{idToken:vi.idToken,refreshToken:vi.refreshToken});switch(w.operationType){case"signIn":const ir=yield ji._fromIdTokenResponse(N,w.operationType,Wi);return yield N._updateCurrentUser(ir.user),ir;case"reauthenticate":return ze(w.user,N,"internal-error"),ji._forOperation(w.user,w.operationType,Wi);default:ot(N,"internal-error")}});return function(jn){return an.apply(this,arguments)}}())}resolveSignIn(b){var w=this;
1return(0,g.Z)(function*(){return w.signInResolver(b)})()}}function ia(A,b){var w;const N=(0,e.m9)(A),ce=b;return ze(b.customData.operationType,N,"argument-error"),ze(null===(w=ce.customData._serverResponse)||void 0===w?void 0:w.mfaPendingCredential,N,"argument-error"),lo._fromError(N,ce)}function In(A,b){return ie(A,"POST","/v2/accounts/mfaEnrollment:start",je(A,b))}class _i{constructor(b){this.user=b,this.enrolledFactors=[],b._onReload(w=>{w.mfaInfo&&(this.enrolledFactors=w.mfaInfo.map(N=>Fe._fromServerResponse(b.auth,N)))})}static _fromUser(b){return new _i(b)}getSession(){var b=this;return(0,g.Z)(function*(){return er._fromIdtoken(yield b.user.getIdToken(),b.user.auth)})()}enroll(b,w){var N=this;return(0,g.Z)(function*(){const ce=b,Ve=yield N.getSession(),qt=yield Oe(N.user,ce._process(N.user.auth,Ve,w));return yield N.user._updateTokensIfNecessary(qt),N.user.reload()})()}unenroll(b){var w=this;return(0,g.Z)(function*(){const N="string"==typeof b?b:b.uid,ce=yield w.user.getIdToken();try{const Ve=yield Oe(w.user,function si(A,b){return ie(A,"POST","/v2/accounts/mfaEnrollment:withdraw",je(A,b))}(w.user.auth,{idToken:ce,mfaEnrollmentId:N}));w.enrolledFactors=w.enrolledFactors.filter(({uid:qt})=>qt!==N),yield w.user._updateTokensIfNecessary(Ve),yield w.user.reload()}catch(Ve){throw Ve}})()}}const Ms=new WeakMap;function ii(A){const b=(0,e.m9)(A);return Ms.has(b)||Ms.set(b,_i._fromUser(b)),Ms.get(b)}const Jt="__sak";class Sn{constructor(b,w){this.storageRetriever=b,this.type=w}_isAvailable(){try{return this.storage?(this.storage.setItem(Jt,"1"),this.storage.removeItem(Jt),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(b,w){return this.storage.setItem(b,JSON.stringify(w)),Promise.resolve()}_get(b){const w=this.storage.getItem(b);return Promise.resolve(w?JSON.parse(w):null)}_remove(b){return this.storage.removeItem(b),Promise.resolve()}get storage(){return this.storageRetriever()}}const fc=(()=>{class A extends Sn{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(w,N)=>this.onStorageEvent(w,N),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function To(){const A=(0,e.z$)();return Ie(A)||Ce(A)}()&&function mn(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Nt(),this._shouldAllowMigration=!0}forAllChangedKeys(w){for(const N of Object.keys(this.listeners)){const ce=this.storage.getItem(N),Ve=this.localCache[N];ce!==Ve&&w(N,Ve,ce)}}onStorageEvent(w,N=!1){if(!w.key)return void this.forAllChangedKeys((an,jn,vi)=>{this.notifyListeners(an,vi)});const ce=w.key;if(N?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const an=this.storage.getItem(ce);if(w.newValue!==an)null!==w.newValue?this.storage.setItem(ce,w.newValue):this.storage.removeItem(ce);else if(this.localCache[ce]===w.newValue&&!N)return}const Ve=()=>{const an=this.storage.getItem(ce);!N&&this.localCache[ce]===an||this.notifyListeners(ce,an)},qt=this.storage.getItem(ce);!function nt(){return(0,e.w1)()&&10===document.documentMode}()||qt===w.newValue||w.newValue===w.oldValue?Ve():setTimeout(Ve,10)}notifyListeners(w,N){this.localCache[w]=N;const ce=this.listeners[w];if(ce)for(const Ve of Array.from(ce))Ve(N&&JSON.parse(N))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((w,N,ce)=>{this.onStorageEvent(new StorageEvent("storage",{key:w,oldValue:N,newValue:ce}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(w,N){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[w]||(this.listeners[w]=new Set,this.localCache[w]=this.storage.getItem(w)),this.listeners[w].add(N)}_removeListener(w,N){this.listeners[w]&&(this.listeners[w].delete(N),0===this.listeners[w].size&&delete this.listeners[w]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(w,N){var ce=()=>super._set,Ve=this;return(0,g.Z)(function*(){yield ce().call(Ve,w,N),Ve.localCache[w]=JSON.stringify(N)})()}_get(w){var N=()=>super._get,ce=this;return(0,g.Z)(function*(){const Ve=yield N().call(ce,w);return ce.localCache[w]=JSON.stringify(Ve),Ve})()}_remove(w){var N=()=>super._remove,ce=this;return(0,g.Z)(function*(){yield N().call(ce,w),delete ce.localCache[w]})()}}return A.type="LOCAL",A})(),Fa=(()=>{class A extends Sn{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(w,N){}_removeListener(w,N){}}return A.type="SESSION",A})();let S=(()=>{class A{constructor(w){this.eventTarget=w,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(w){const N=this.receivers.find(Ve=>Ve.isListeningto(w));if(N)return N;const ce=new A(w);return this.receivers.push(ce),ce}isListeningto(w){return this.eventTarget===w}handleEvent(w){var N=this;return(0,g.Z)(function*(){const ce=w,{eventId:Ve,eventType:qt,data:an}=ce.data,jn=N.handlersMap[qt];if(!jn?.size)return;ce.ports[0].postMessage({status:"ack",eventId:Ve,eventType:qt});const vi=Array.from(jn).map(function(){var ir=(0,g.Z)(function*(mo){return mo(ce.origin,an)});return function(mo){return ir.apply(this,arguments)}}()),Wi=yield function wa(A){return Promise.all(A.map(function(){var b=(0,g.Z)(function*(w){try{return{fulfilled:!0,value:yield w}}catch(N){return{fulfilled:!1,reason:N}}});return function(w){return b.apply(this,arguments)}}()))}(vi);ce.ports[0].postMessage({status:"done",eventId:Ve,eventType:qt,response:Wi})})()}_subscribe(w,N){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[w]||(this.handlersMap[w]=new Set),this.handlersMap[w].add(N)}_unsubscribe(w,N){this.handlersMap[w]&&N&&this.handlersMap[w].delete(N),(!N||0===this.handlersMap[w].size)&&delete this.handlersMap[w],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return A.receivers=[],A})();function U(A="",b=10){let w="";for(let N=0;N<b;N++)w+=Math.floor(10*Math.random());return A+w}class ee{constructor(b){this.target=b,this.handlers=new Set}removeMessageHandler(b){b.messageChannel&&(b.messageChannel.port1.removeEventListener("message",b.onMessage),b.messageChannel.port1.close()),this.handlers.delete(b)}_send(b,w){var N=this;return(0,g.Z)(function*(ce,Ve,qt=50){const an=typeof MessageChannel<"u"?new MessageChannel:null;if(!an)throw new Error("connection_unavailable");let jn,vi;return new Promise((Wi,ir)=>{const mo=U("",20);an.port1.start();const Ws=setTimeout(()=>{ir(new Error("unsupported_event"))},qt);vi={messageChannel:an,onMessage(xc){const gs=xc;if(gs.data.eventId===mo)switch(gs.data.status){case"ack":clearTimeout(Ws),jn=setTimeout(()=>{ir(new Error("timeout"))},3e3);break;case"done":clearTimeout(jn),Wi(gs.data.response);break;default:clearTimeout(Ws),clearTimeout(jn),ir(new Error("invalid_response"))}}},N.handlers.add(vi),an.port1.addEventListener("message",vi.onMessage),N.target.postMessage({eventType:ce,eventId:mo,data:Ve},[an.port2])}).finally(()=>{vi&&N.removeMessageHandler(vi)})}).apply(this,arguments)}}function He(){return window}
1function Un(){return typeof He().WorkerGlobalScope<"u"&&"function"==typeof He().importScripts}function Oi(){return(Oi=(0,g.Z)(function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gi="firebaseLocalStorageDb",Kr="firebaseLocalStorage",Qn="fbase_key";class js{constructor(b){this.request=b}toPromise(){return new Promise((b,w)=>{this.request.addEventListener("success",()=>{b(this.request.result)}),this.request.addEventListener("error",()=>{w(this.request.error)})})}}function Vc(A,b){return A.transaction([Kr],b?"readwrite":"readonly").objectStore(Kr)}function io(){const A=indexedDB.open(Gi,1);return new Promise((b,w)=>{A.addEventListener("error",()=>{w(A.error)}),A.addEventListener("upgradeneeded",()=>{const N=A.result;try{N.createObjectStore(Kr,{keyPath:Qn})}catch(ce){w(ce)}}),A.addEventListener("success",(0,g.Z)(function*(){const N=A.result;N.objectStoreNames.contains(Kr)?b(N):(N.close(),yield function xl(){const A=indexedDB.deleteDatabase(Gi);return new js(A).toPromise()}(),b(yield io()))}))})}function gc(A,b,w){return Hh.apply(this,arguments)}function Hh(){return(Hh=(0,g.Z)(function*(A,b,w){const N=Vc(A,!0).put({[Qn]:b,value:w});return new js(N).toPromise()})).apply(this,arguments)}function kd(){return(kd=(0,g.Z)(function*(A,b){const w=Vc(A,!1).get(b),N=yield new js(w).toPromise();return void 0===N?null:N.value})).apply(this,arguments)}function Rd(A,b){const w=Vc(A,!0).delete(b);return new js(w).toPromise()}const Cp=(()=>{class A{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var w=this;return(0,g.Z)(function*(){return w.db||(w.db=yield io()),w.db})()}_withRetries(w){var N=this;return(0,g.Z)(function*(){let ce=0;for(;;)try{const Ve=yield N._openDb();return yield w(Ve)}catch(Ve){if(ce++>3)throw Ve;N.db&&(N.db.close(),N.db=void 0)}})()}initializeServiceWorkerMessaging(){var w=this;return(0,g.Z)(function*(){return Un()?w.initializeReceiver():w.initializeSender()})()}initializeReceiver(){var w=this;return(0,g.Z)(function*(){w.receiver=S._getInstance(function ss(){return Un()?self:null}()),w.receiver._subscribe("keyChanged",function(){var N=(0,g.Z)(function*(ce,Ve){return{keyProcessed:(yield w._poll()).includes(Ve.key)}});return function(ce,Ve){return N.apply(this,arguments)}}()),w.receiver._subscribe("ping",function(){var N=(0,g.Z)(function*(ce,Ve){return["keyChanged"]});return function(ce,Ve){return N.apply(this,arguments)}}())})()}initializeSender(){var w=this;return(0,g.Z)(function*(){var N,ce;if(w.activeServiceWorker=yield function tr(){return Oi.apply(this,arguments)}(),!w.activeServiceWorker)return;w.sender=new ee(w.activeServiceWorker);const Ve=yield w.sender._send("ping",{},800);!Ve||(null===(N=Ve[0])||void 0===N?void 0:N.fulfilled)&&(null===(ce=Ve[0])||void 0===ce?void 0:ce.value.includes("keyChanged"))&&(w.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(w){var N=this;return(0,g.Z)(function*(){if(N.sender&&N.activeServiceWorker&&function Kn(){var A;return(null===(A=navigator?.serviceWorker)||void 0===A?void 0:A.controller)||null}()===N.activeServiceWorker)try{yield N.sender._send("keyChanged",{key:w},N.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,g.Z)(function*(){try{if(!indexedDB)return!1;const w=yield io();return yield gc(w,Jt,"1"),yield Rd(w,Jt),!0}catch{}return!1})()}_withPendingWrite(w){var N=this;return(0,g.Z)(function*(){N.pendingWrites++;try{yield w()}finally{N.pendingWrites--}})()}_set(w,N){var ce=this;return(0,g.Z)(function*(){return ce._withPendingWrite((0,g.Z)(function*(){return yield ce._withRetries(Ve=>gc(Ve,w,N)),ce.localCache[w]=N,ce.notifyServiceWorker(w)}))})()}_get(w){var N=this;return(0,g.Z)(function*(){const ce=yield N._withRetries(Ve=>function Iu(A,b){return kd.apply(this,arguments)}(Ve,w));return N.localCache[w]=ce,ce})()}_remove(w){var N=this;return(0,g.Z)(function*(){return N._withPendingWrite((0,g.Z)(function*(){return yield N._withRetries(ce=>Rd(ce,w)),delete N.localCache[w],N.notifyServiceWorker(w)}))})()}_poll(){var w=this;return(0,g.Z)(function*(){const N=yield w._withRetries(qt=>{const an=Vc(qt,!1).getAll();return new js(an).toPromise()});if(!N)return[];if(0!==w.pendingWrites)return[];const ce=[],Ve=new Set;for(const{fbase_key:qt,value:an}of N)Ve.add(qt),JSON.stringify(w.localCache[qt])!==JSON.stringify(an)&&(w.notifyListeners(qt,an),ce.push(qt));for(const qt of Object.keys(w.localCache))w.localCache[qt]&&!Ve.has(qt)&&(w.notifyListeners(qt,null),ce.push(qt));return ce})()}notifyListeners(w,N){this.localCache[w]=N;const ce=this.listeners[w];if(ce)for(const Ve of Array.from(ce))Ve(N)}startPolling(){var w=this;this.stopPolling(),this.pollTimer=setInterval((0,g.Z)(function*(){return w._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(w,N){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[w]||(this.listeners[w]=new Set,this._get(w)),this.listeners[w].add(N)}_removeListener(w,N){this.listeners[w]&&(this.listeners[w].delete(N),0===this.listeners[w].size&&delete this.listeners[w]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return A.type="LOCAL",A})();function Ml(A,b){return ie(A,"POST","/v2/accounts/mfaSignIn:start",je(A,b))}const qc=1e12;class ds{constructor(b){this.auth=b,this.counter=qc,this._widgets=new Map}render(b,w){const N=this.counter;return this._widgets.set(N,new hs(b,this.auth.name,w||{})),this.counter++,N}reset(b){var w;const N=b||qc;null===(w=this._widgets.get(N))||void 0===w||w.delete(),this._widgets.delete(N)}getResponse(b){var w;return(null===(w=this._widgets.get(b||qc))||void 0===w?void 0:w.getResponse())||""}execute(b){var w=this;return(0,g.Z)(function*(){var N;return null===(N=w._widgets.get(b||qc))||void 0===N||N.execute(),""})()}}class hs{constructor(b,w,N){this.params=N,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const ce="string"==typeof b?document.getElementById(b):b;ze(ce,"argument-error",{appName:w}),this.container=ce,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function Su(A){const b=[],w="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let N=0;N<A;N++)b.push(w.charAt(Math.floor(Math.random()*w.length)));return b.join("")}(50);const{callback:b,"expired-callback":w}=this.params;if(b)try{b(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,w)try{w()}catch{}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const _a=fr("rcb"),Ma=new gn(3e4,6e4);class I{constructor(){var b;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!(null===(b=He().grecaptcha)||void 0===b||!b.render)}load(b,w=""){return ze(function k(A){return A.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(A)}(w),b,"argument-error"),this.shouldResolveImmediately(w)&&ni(He().grecaptcha)?Promise.resolve(He().grecaptcha):new Promise((N,ce)=>{const Ve=He().setTimeout(()=>{ce(fe(b,"network-request-failed"))},Ma.get());He()[_a]=()=>{He().clearTimeout(Ve),delete He()[_a];const an=He().grecaptcha;if(!an||!ni(an))return void ce(fe(b,"internal-error"));const jn=an.render;an.render=(vi,Wi)=>{const ir=jn(vi,Wi);return this.counter++,ir},this.hostLanguage=w,N(an)},Ai(`https://www.google.com/recaptcha/api.js??${(0,e.xO)({onload:_a,render:"explicit",hl:w})}`).catch(()=>{clearTimeout(Ve),ce(fe(b,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(b){var w;return!(null===(w=He().grecaptcha)||void 0===w||!w.render)&&(b===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class T{load(b){return(0,g.Z)(function*(){return new ds(b)})()}clearedOneInstance(){}}const j="recaptcha",Y={theme:"light",type:"image"};class Pe{constructor(b,w=Object.assign({},Y),N){this.parameters=w,this.type=j,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=he(N),this.isInvisible="invisible"===this.parameters.size,ze(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const ce="string"==typeof b?document.getElementById(b):b;ze(ce,this.auth,"argument-error"),this.container=ce,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new T:new I,this.validateStartingState()}verify(){var b=this;return(0,g.Z)(function*(){b.assertNotDestroyed();const w=yield b.render(),N=b.getAssertedRecaptcha();return N.getResponse(w)||new Promise(Ve=>{const qt=an=>{!an||(b.tokenChangeListeners.delete(qt),Ve(an))};b.tokenChangeListeners.add(qt),b.isInvisible&&N.execute(w)})})()}render(){try{this.assertNotDestroyed()}catch(b){return Promise.reject(b)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(b=>{throw this.renderPromise=null,b})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
1h(b=>{this.container.removeChild(b)})}validateStartingState(){ze(!this.parameters.sitekey,this.auth,"argument-error"),ze(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),ze(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(b){return w=>{if(this.tokenChangeListeners.forEach(N=>N(w)),"function"==typeof b)b(w);else if("string"==typeof b){const N=He()[b];"function"==typeof N&&N(w)}}}assertNotDestroyed(){ze(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var b=this;return(0,g.Z)(function*(){if(yield b.init(),!b.widgetId){let w=b.container;if(!b.isInvisible){const N=document.createElement("div");w.appendChild(N),w=N}b.widgetId=b.getAssertedRecaptcha().render(w,b.parameters)}return b.widgetId})()}init(){var b=this;return(0,g.Z)(function*(){ze(pn()&&!Un(),b.auth,"internal-error"),yield function rt(){let A=null;return new Promise(b=>{"complete"!==document.readyState?(A=()=>b(),window.addEventListener("load",A)):b()}).catch(b=>{throw A&&window.removeEventListener("load",A),b})}(),b.recaptcha=yield b._recaptchaLoader.load(b.auth,b.auth.languageCode||void 0);const w=yield function kt(A){return Ft.apply(this,arguments)}(b.auth);ze(w,b.auth,"internal-error"),b.parameters.sitekey=w})()}getAssertedRecaptcha(){return ze(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class Ct{constructor(b,w){this.verificationId=b,this.onConfirmation=w}confirm(b){const w=Ur._fromVerification(this.verificationId,b);return this.onConfirmation(w)}}function yn(A,b,w){return $n.apply(this,arguments)}function $n(){return($n=(0,g.Z)(function*(A,b,w){const N=he(A),ce=yield Ea(N,b,(0,e.m9)(w));return new Ct(ce,Ve=>W(N,Ve))})).apply(this,arguments)}function gr(A,b,w){return Ci.apply(this,arguments)}function Ci(){return(Ci=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A);yield On(!1,N,"phone");const ce=yield Ea(N.auth,b,(0,e.m9)(w));return new Ct(ce,Ve=>Se(N,Ve))})).apply(this,arguments)}function Yr(A,b,w){return Fs.apply(this,arguments)}function Fs(){return(Fs=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A),ce=yield Ea(N.auth,b,(0,e.m9)(w));return new Ct(ce,Ve=>pi(N,Ve))})).apply(this,arguments)}function Ea(A,b,w){return hr.apply(this,arguments)}function hr(){return(hr=(0,g.Z)(function*(A,b,w){var N;const ce=yield w.verify();try{let Ve;if(ze("string"==typeof ce,A,"argument-error"),ze(w.type===j,A,"argument-error"),Ve="string"==typeof b?{phoneNumber:b}:b,"session"in Ve){const qt=Ve.session;if("phoneNumber"in Ve)return ze("enroll"===qt.type,A,"internal-error"),(yield In(A,{idToken:qt.credential,phoneEnrollmentInfo:{phoneNumber:Ve.phoneNumber,recaptchaToken:ce}})).phoneSessionInfo.sessionInfo;{ze("signin"===qt.type,A,"internal-error");const an=(null===(N=Ve.multiFactorHint)||void 0===N?void 0:N.uid)||Ve.multiFactorUid;return ze(an,A,"missing-multi-factor-info"),(yield Ml(A,{mfaPendingCredential:qt.credential,mfaEnrollmentId:an,phoneSignInInfo:{recaptchaToken:ce}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:qt}=yield bs(A,{phoneNumber:Ve.phoneNumber,recaptchaToken:ce});return qt}}finally{w._reset()}})).apply(this,arguments)}function va(A,b){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,g.Z)(function*(A,b){yield Jo((0,e.m9)(A),b)})).apply(this,arguments)}let jc=(()=>{class A{constructor(w){this.providerId=A.PROVIDER_ID,this.auth=he(w)}verifyPhoneNumber(w,N){return Ea(this.auth,w,(0,e.m9)(N))}static credential(w,N){return Ur._fromVerification(w,N)}static credentialFromResult(w){return A.credentialFromTaggedObject(w)}static credentialFromError(w){return A.credentialFromTaggedObject(w.customData||{})}static credentialFromTaggedObject({_tokenResponse:w}){if(!w)return null;const{phoneNumber:N,temporaryProof:ce}=w;return N&&ce?Ur._fromTokenResponse(N,ce):null}}return A.PROVIDER_ID="phone",A.PHONE_SIGN_IN_METHOD="phone",A})();function Ri(A,b){return b?Yn(b):(ze(A._popupRedirectResolver,A,"argument-error"),A._popupRedirectResolver)}class ra extends we{constructor(b){super("custom","custom"),this.params=b}_getIdTokenResponse(b){return zi(b,this._buildIdpRequest())}_linkToIdToken(b,w){return zi(b,this._buildIdpRequest(w))}_getReauthenticationResolver(b){return zi(b,this._buildIdpRequest())}_buildIdpRequest(b){const w={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return b&&(w.idToken=b),w}}function ll(A){return so(A.auth,new ra(A),A.bypassAuthState)}function Nd(A){const{auth:b,user:w}=A;return ze(w,b,"internal-error"),So(w,new ra(A),A.bypassAuthState)}function xp(A){return cn.apply(this,arguments)}function cn(){return(cn=(0,g.Z)(function*(A){const{auth:b,user:w}=A;return ze(w,b,"internal-error"),Jo(w,new ra(A),A.bypassAuthState)})).apply(this,arguments)}class Vl{constructor(b,w,N,ce,Ve=!1){this.auth=b,this.resolver=N,this.user=ce,this.bypassAuthState=Ve,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(w)?w:[w]}execute(){var b=this;return new Promise(function(){var w=(0,g.Z)(function*(N,ce){b.pendingPromise={resolve:N,reject:ce};try{b.eventManager=yield b.resolver._initialize(b.auth),yield b.onExecution(),b.eventManager.registerConsumer(b)}catch(Ve){b.reject(Ve)}});return function(N,ce){return w.apply(this,arguments)}}())}onAuthEvent(b){var w=this;return(0,g.Z)(function*(){const{urlResponse:N,sessionId:ce,postBody:Ve,tenantId:qt,error:an,type:jn}=b;if(an)return void w.reject(an);const vi={auth:w.auth,requestUri:N,sessionId:ce,tenantId:qt||void 0,postBody:Ve||void 0,user:w.user,bypassAuthState:w.bypassAuthState};try{w.resolve(yield w.getIdpTask(jn)(vi))}catch(Wi){w.reject(Wi)}})()}onError(b){this.reject(b)}getIdpTask(b){switch(b){case"signInViaPopup":case"signInViaRedirect":return ll;case"linkViaPopup":case"linkViaRedirect":return xp;case"reauthViaPopup":case"reauthViaRedirect":return Nd;default:ot(this.auth,"internal-error")}}resolve(b){mt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(b),this.unregisterAndCleanUp()}reject(b){mt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(b),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Hc=new gn(2e3,1e4);function $c(A,b,w){return Fd.apply(this,arguments)}function Fd(){return(Fd=(0,g.Z)(function*(A,b,w){const N=he(A);Ye(A,b,Qe);const ce=Ri(N,w);
1return new La(N,"signInViaPopup",b,ce).executeNotNull()})).apply(this,arguments)}function fs(A,b,w){return Ld.apply(this,arguments)}function Ld(){return(Ld=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A);Ye(N.auth,b,Qe);const ce=Ri(N.auth,w);return new La(N.auth,"reauthViaPopup",b,ce,N).executeNotNull()})).apply(this,arguments)}function Ud(A,b,w){return ql.apply(this,arguments)}function ql(){return(ql=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A);Ye(N.auth,b,Qe);const ce=Ri(N.auth,w);return new La(N.auth,"linkViaPopup",b,ce,N).executeNotNull()})).apply(this,arguments)}let La=(()=>{class A extends Vl{constructor(w,N,ce,Ve,qt){super(w,N,Ve,qt),this.provider=ce,this.authWindow=null,this.pollId=null,A.currentPopupAction&&A.currentPopupAction.cancel(),A.currentPopupAction=this}executeNotNull(){var w=this;return(0,g.Z)(function*(){const N=yield w.execute();return ze(N,w.auth,"internal-error"),N})()}onExecution(){var w=this;return(0,g.Z)(function*(){mt(1===w.filter.length,"Popup operations only handle one event");const N=U();w.authWindow=yield w.resolver._openPopup(w.auth,w.provider,w.filter[0],N),w.authWindow.associatedEvent=N,w.resolver._originValidation(w.auth).catch(ce=>{w.reject(ce)}),w.resolver._isIframeWebStorageSupported(w.auth,ce=>{ce||w.reject(fe(w.auth,"web-storage-unsupported"))}),w.pollUserCancellation()})()}get eventId(){var w;return(null===(w=this.authWindow)||void 0===w?void 0:w.associatedEvent)||null}cancel(){this.reject(fe(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,A.currentPopupAction=null}pollUserCancellation(){const w=()=>{var N,ce;this.pollId=null!==(ce=null===(N=this.authWindow)||void 0===N?void 0:N.window)&&void 0!==ce&&ce.closed?window.setTimeout(()=>{this.pollId=null,this.reject(fe(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(w,Hc.get())};w()}}return A.currentPopupAction=null,A})();const jl=new Map;class Hl extends Vl{constructor(b,w,N=!1){super(b,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],w,void 0,N),this.eventId=null}execute(){var b=()=>super.execute,w=this;return(0,g.Z)(function*(){let N=jl.get(w.auth._key());if(!N){try{const Ve=(yield function Zd(A,b){return Jr.apply(this,arguments)}(w.resolver,w.auth))?yield b().call(w):null;N=()=>Promise.resolve(Ve)}catch(ce){N=()=>Promise.reject(ce)}jl.set(w.auth._key(),N)}return w.bypassAuthState||jl.set(w.auth._key(),()=>Promise.resolve(null)),N()})()}onAuthEvent(b){var w=()=>super.onAuthEvent,N=this;return(0,g.Z)(function*(){if("signInViaRedirect"===b.type)return w().call(N,b);if("unknown"!==b.type){if(b.eventId){const ce=yield N.auth._redirectUserForId(b.eventId);if(ce)return N.user=ce,w().call(N,b);N.resolve(null)}}else N.resolve(null)})()}onExecution(){return(0,g.Z)(function*(){})()}cleanUp(){}}function Jr(){return(Jr=(0,g.Z)(function*(A,b){const w=$s(b),N=cl(A);if(!(yield N._isAvailable()))return!1;const ce="true"===(yield N._get(w));return yield N._remove(w),ce})).apply(this,arguments)}function mc(A,b){return jo.apply(this,arguments)}function jo(){return(jo=(0,g.Z)(function*(A,b){return cl(A)._set($s(b),"true")})).apply(this,arguments)}function Oo(){jl.clear()}function Bd(A,b){jl.set(A._key(),b)}function cl(A){return Yn(A._redirectPersistence)}function $s(A){return qi("pendingRedirect",A.config.apiKey,A.name)}function wp(A,b,w){return function n0(A,b,w){return ps.apply(this,arguments)}(A,b,w)}function ps(){return(ps=(0,g.Z)(function*(A,b,w){const N=he(A);Ye(A,b,Qe),yield N._initializationPromise;const ce=Ri(N,w);return yield mc(ce,N),ce._openRedirect(N,b,"signInViaRedirect")})).apply(this,arguments)}function Ru(A,b,w){return function Ka(A,b,w){return Ho.apply(this,arguments)}(A,b,w)}function Ho(){return(Ho=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A);Ye(N.auth,b,Qe),yield N.auth._initializationPromise;const ce=Ri(N.auth,w);yield mc(ce,N.auth);const Ve=yield vc(N);return ce._openRedirect(N.auth,b,"reauthViaRedirect",Ve)})).apply(this,arguments)}function _c(A,b,w){return function zd(A,b,w){return Nu.apply(this,arguments)}(A,b,w)}function Nu(){return(Nu=(0,g.Z)(function*(A,b,w){const N=(0,e.m9)(A);Ye(N.auth,b,Qe),yield N.auth._initializationPromise;const ce=Ri(N.auth,w);yield On(!1,N,b.providerId),yield mc(ce,N.auth);const Ve=yield vc(N);return ce._openRedirect(N.auth,b,"linkViaRedirect",Ve)})).apply(this,arguments)}function Vd(A,b){return Mp.apply(this,arguments)}function Mp(){return(Mp=(0,g.Z)(function*(A,b){return yield he(A)._initializationPromise,Ol(A,b,!1)})).apply(this,arguments)}function Ol(A,b){return Pl.apply(this,arguments)}function Pl(){return(Pl=(0,g.Z)(function*(A,b,w=!1){const N=he(A),ce=Ri(N,b),qt=yield new Hl(N,ce,w).execute();return qt&&!w&&(delete qt.user._redirectEventId,yield N._persistUserIfCurrent(qt.user),yield N._setRedirectUser(null,b)),qt})).apply(this,arguments)}function vc(A){return ul.apply(this,arguments)}function ul(){return(ul=(0,g.Z)(function*(A){const b=U(`${A.uid}:::`);return A._redirectEventId=b,yield A.auth._setRedirectUser(A),yield A.auth._persistUserIfCurrent(A),b})).apply(this,arguments)}class Gc{constructor(b){this.auth=b,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=
1Date.now()}registerConsumer(b){this.consumers.add(b),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,b)&&(this.sendToConsumer(this.queuedRedirectEvent,b),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(b){this.consumers.delete(b)}onEvent(b){if(this.hasEventBeenHandled(b))return!1;let w=!1;return this.consumers.forEach(N=>{this.isEventForConsumer(b,N)&&(w=!0,this.sendToConsumer(b,N),this.saveEventToCache(b))}),this.hasHandledPotentialRedirect||!function qd(A){switch(A.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return $h(A);default:return!1}}(b)||(this.hasHandledPotentialRedirect=!0,w||(this.queuedRedirectEvent=b,w=!0)),w}sendToConsumer(b,w){var N;if(b.error&&!$h(b)){const ce=(null===(N=b.error.code)||void 0===N?void 0:N.split("auth/")[1])||"internal-error";w.onError(fe(this.auth,ce))}else w.onAuthEvent(b)}isEventForConsumer(b,w){const N=null===w.eventId||!!b.eventId&&b.eventId===w.eventId;return w.filter.includes(b.type)&&N}hasEventBeenHandled(b){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(bc(b))}saveEventToCache(b){this.cachedEventUids.add(bc(b)),this.lastProcessedEventTime=Date.now()}}function bc(A){return[A.type,A.eventId,A.sessionId,A.tenantId].filter(b=>b).join("-")}function $h({type:A,error:b}){return"unknown"===A&&"auth/no-auth-event"===b?.code}function Gh(A){return Fu.apply(this,arguments)}function Fu(){return(Fu=(0,g.Z)(function*(A,b={}){return ie(A,"GET","/v1/projects",b)})).apply(this,arguments)}const $l=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,_m=/^https?/;function Lu(){return(Lu=(0,g.Z)(function*(A){if(A.config.emulator)return;const{authorizedDomains:b}=yield Gh(A);for(const w of b)try{if(r0(w))return}catch{}ot(A,"unauthorized-domain")})).apply(this,arguments)}function r0(A){const b=zt(),{protocol:w,hostname:N}=new URL(b);if(A.startsWith("chrome-extension://")){const qt=new URL(A);return""===qt.hostname&&""===N?"chrome-extension:"===w&&A.replace("chrome-extension://","")===b.replace("chrome-extension://",""):"chrome-extension:"===w&&qt.hostname===N}if(!_m.test(w))return!1;if($l.test(A))return N===A;const ce=A.replace(/\./g,"\\.");return new RegExp("^(.+\\."+ce+"|"+ce+")$","i").test(N)}const Ep=new gn(3e4,6e4);function jd(){const A=He().___jsl;if(A?.H)for(const b of Object.keys(A.H))if(A.H[b].r=A.H[b].r||[],A.H[b].L=A.H[b].L||[],A.H[b].r=[...A.H[b].L],A.CP)for(let w=0;w<A.CP.length;w++)A.CP[w]=null}let Tp=null;function s0(A){return Tp=Tp||function o0(A){return new Promise((b,w)=>{var N,ce,Ve;function qt(){jd(),gapi.load("gapi.iframes",{callback:()=>{b(gapi.iframes.getContext())},ontimeout:()=>{jd(),w(fe(A,"network-request-failed"))},timeout:Ep.get()})}if(null!==(ce=null===(N=He().gapi)||void 0===N?void 0:N.iframes)&&void 0!==ce&&ce.Iframe)b(gapi.iframes.getContext());else{if(null===(Ve=He().gapi)||void 0===Ve||!Ve.load){const an=fr("iframefcb");return He()[an]=()=>{gapi.load?qt():w(fe(A,"network-request-failed"))},Ai(`https://apis.google.com/js/api.js?onload=${an}`).catch(jn=>w(jn))}qt()}}).catch(b=>{throw Tp=null,b})}(A),Tp}const Op=new gn(5e3,15e3),Pp={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Po=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function oa(A){const b=A.config;ze(b.authDomain,A,"auth-domain-config-required");const w=b.emulator?tt(b,"emulator/auth/iframe"):`https://${A.config.authDomain}/__/auth/iframe`,N={apiKey:b.apiKey,appName:A.name,v:R.SDK_VERSION},ce=Po.get(A.config.apiHost);ce&&(N.eid=ce);const Ve=A._getFrameworks();return Ve.length&&(N.fw=Ve.join(",")),`${w}?${(0,e.xO)(N).slice(1)}`}function Yh(){return Yh=(0,g.Z)(function*(A){const b=yield s0(A),w=He().gapi;return ze(w,A,"internal-error"),b.open({where:document.body,url:oa(A),messageHandlersFilter:w.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Pp,dontclear:!0},N=>new Promise(function(){var ce=(0,g.Z)(function*(Ve,qt){yield N.restyle({setHideOnLeave:!1});const an=fe(A,"network-request-failed"),jn=He().setTimeout(()=>{qt(an)},Op.get());function vi(){He().clearTimeout(jn),Ve(N)}N.ping(vi).then(vi,()=>{qt(an)})});return function(Ve,qt){return ce.apply(this,arguments)}}()))}),Yh.apply(this,arguments)}const Uu={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Wc{constructor(b){this.window=b,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const Xh=encodeURIComponent("fac");function Ta(A,b,w,N,ce,Ve){return Ya.apply(this,arguments)}function Ya(){return(Ya=(0,g.Z)(function*(A,b,w,N,ce,Ve){ze(A.config.authDomain,A,"auth-domain-config-required"),ze(A.config.apiKey,A,"invali
1d-api-key");const qt={apiKey:A.config.apiKey,appName:A.name,authType:w,redirectUrl:N,v:R.SDK_VERSION,eventId:ce};if(b instanceof Qe){b.setDefaultLanguage(A.languageCode),qt.providerId=b.providerId||"",(0,e.xb)(b.getCustomParameters())||(qt.customParameters=JSON.stringify(b.getCustomParameters()));for(const[Wi,ir]of Object.entries(Ve||{}))qt[Wi]=ir}if(b instanceof Et){const Wi=b.getScopes().filter(ir=>""!==ir);Wi.length>0&&(qt.scopes=Wi.join(","))}A.tenantId&&(qt.tid=A.tenantId);const an=qt;for(const Wi of Object.keys(an))void 0===an[Wi]&&delete an[Wi];const jn=yield A._getAppCheckToken(),vi=jn?`#${Xh}=${encodeURIComponent(jn)}`:"";return`${aa(A)}?${(0,e.xO)(an).slice(1)}${vi}`})).apply(this,arguments)}function aa({config:A}){return A.emulator?tt(A,"emulator/auth/handler"):`https://${A.authDomain}/__/auth/handler`}const Al="webStorageSupport",ef=class Ap{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Fa,this._completeRedirectFn=Ol,this._overrideRedirectResult=Bd}_openPopup(b,w,N,ce){var Ve=this;return(0,g.Z)(function*(){var qt;mt(null===(qt=Ve.eventManagers[b._key()])||void 0===qt?void 0:qt.manager,"_initialize() not called before _openPopup()");const an=yield Ta(b,w,N,zt(),ce);return function Qh(A,b,w,N=500,ce=600){const Ve=Math.max((window.screen.availHeight-ce)/2,0).toString(),qt=Math.max((window.screen.availWidth-N)/2,0).toString();let an="";const jn=Object.assign(Object.assign({},Uu),{width:N.toString(),height:ce.toString(),top:Ve,left:qt}),vi=(0,e.z$)().toLowerCase();w&&(an=xe(vi)?"_blank":w),Re(vi)&&(b=b||"http://localhost",jn.scrollbars="yes");const Wi=Object.entries(jn).reduce((mo,[Ws,xc])=>`${mo}${Ws}=${xc},`,"");if(function ue(A=(0,e.z$)()){var b;return Ce(A)&&!(null===(b=window.navigator)||void 0===b||!b.standalone)}(vi)&&"_self"!==an)return function Dp(A,b){const w=document.createElement("a");w.href=A,w.target=b;const N=document.createEvent("MouseEvent");N.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),w.dispatchEvent(N)}(b||"",an),new Wc(null);const ir=window.open(b||"",an,Wi);ze(ir,A,"popup-blocked");try{ir.focus()}catch{}return new Wc(ir)}(b,an,U())})()}_openRedirect(b,w,N,ce){var Ve=this;return(0,g.Z)(function*(){return yield Ve._originValidation(b),function Rt(A){He().location.href=A}(yield Ta(b,w,N,zt(),ce)),new Promise(()=>{})})()}_initialize(b){const w=b._key();if(this.eventManagers[w]){const{manager:ce,promise:Ve}=this.eventManagers[w];return ce?Promise.resolve(ce):(mt(Ve,"If manager is not set, promise should be"),Ve)}const N=this.initAndGetManager(b);return this.eventManagers[w]={promise:N},N.catch(()=>{delete this.eventManagers[w]}),N}initAndGetManager(b){var w=this;return(0,g.Z)(function*(){const N=yield function vm(A){return Yh.apply(this,arguments)}(b),ce=new Gc(b);return N.register("authEvent",Ve=>(ze(Ve?.authEvent,b,"invalid-auth-event"),{status:ce.onEvent(Ve.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),w.eventManagers[b._key()]={manager:ce},w.iframes[b._key()]=N,ce})()}_isIframeWebStorageSupported(b,w){this.iframes[b._key()].send(Al,{type:Al},ce=>{var Ve;const qt=null===(Ve=ce?.[0])||void 0===Ve?void 0:Ve[Al];void 0!==qt&&w(!!qt),ot(b,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(b){const w=b._key();return this.originValidationPromises[w]||(this.originValidationPromises[w]=function Wh(A){return Lu.apply(this,arguments)}(b)),this.originValidationPromises[w]}get _shouldInitProactively(){return Nt()||Ie()||Ce()}};class Kc extends class Ip{constructor(b){this.factorId=b}_process(b,w,N){switch(w.type){case"enroll":return this._finalizeEnroll(b,w.credential,N);case"signin":return this._finalizeSignIn(b,w.credential);default:return xt("unexpected MultiFactorSessionType")}}}{constructor(b){super("phone"),this.credential=b}static _fromCredential(b){return new Kc(b)}_finalizeEnroll(b,w,N){return function zr(A,b){return ie(A,"POST","/v2/accounts/mfaEnrollment:finalize",je(A,b))}(b,{idToken:w,displayName:N,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(b,w){return function es(A,b){return ie(A,"POST","/v2/accounts/mfaSignIn:finalize",je(A,b))}(b,{mfaPendingCredential:w,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let Cm=(()=>{class A{constructor(){}static assertion(w){return Kc._fromCredential(w)}}return A.FACTOR_ID="phone",A})();var Gl="@firebase/auth";class Cc{constructor(b){this.auth=b,this.internalListeners=new Map}getUid(){var b;return this.assertAuthConfigured(),(null===(b=this.auth.currentUser)||void 0===b?void 0:b.uid)||null}getToken(b){var w=this;return(0,g.Z)(function*(){return w.assertAuthConfigured(),yield w.auth._initializationPromise,w.auth.currentUser?{accessToken:yield w.auth.currentUser.getIdToken(b)}:null})()}addAuthTokenListener(b){if(this.assertAuthConfigured(),this.internalListeners.has(b))return;const w=this.auth.onIdTokenChanged(N=>{b(N?.stsTokenManager.accessToken||null)});this.internalListeners.set(b,w),this.updateProactiveRefresh()}removeAuthTokenListener(b){this.assertAuthConfigured();const w=this.internalListeners.get(b);!w||(this.internalListeners.delete(b),w(),this.updateProactiveRefresh())}assertAuthConfigured(){ze(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Yc=(0,e.Pz)("authIdTokenMaxAge")||300;let Qa=null;const rf=A=>function(){var b=(0,g.Z)(function*(w){const N=w&&(yield w.getIdTokenResult()),ce=N&&((new Date).getTime()-Date.parse(N.issuedAtTime))/1e3;if(ce&&ce>Yc)return;const Ve=N?.token;Qa!==Ve&&(Qa=Ve,yield fetch(A,{method:Ve?"POST":"DELETE",headers:Ve?{Authorization:`Bearer ${Ve}`}:{}}))});return function(w){return b.apply(this,arguments)}}();function Bu(A=(0,R.getApp)()){const b=(0,R._getProvider)(A,"auth");if(b.isInitialized())return b.getImmediate();const w=function Ne(A,b){const w=(0,R._getProvider)(A,"auth");if(w.isInitialized()){const ce=w.getImmediate(),Ve=w.getOptions();if((0,e.vZ)(Ve,b??{}))return ce;ot(ce,"already-initialized")}return w.initialize({options:b})}(A,{popupRedirectResolver:ef,persistence:[Cp,fc,Fa]}),N=(0,e.Pz)("authTokenSyncURL");if(N){const Ve=rf(N);(function En(A,b,w){(0,e.m9)(A).beforeAuthStateChanged(b,w)})(w,Ve,()=>Ve(w.currentUser)),function dn(A,b,w,N){(0,e.m9)(A).onIdTokenChanged(b,w,N)}(w,qt=>Ve(qt))}const ce=(0,e.q4)("auth");return ce&&Vt(w,`http://${ce}`),w}!function kp(A){(0,R._registerComponent)(new ae.wA("auth",(b,{options:w})=>{const N=b.getProvider("app").getImmediate(),ce=b.getProvider("heartbeat"),Ve=b.getProvider("app-check-internal"),{apiKey:qt,authDomain:an}=N.options;ze(qt&&!qt.includes(":"),"invalid-api-key",{appName:N.name});
1const jn={apiKey:qt,authDomain:an,clientPlatform:A,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Nn(A)},vi=new Bt(N,ce,Ve,jn);return function yt(A,b){const w=b?.persistence||[],N=(Array.isArray(w)?w:[w]).map(Yn);b?.errorMap&&A._updateErrorMap(b.errorMap),A._initializeWithPersistence(N,b?.popupRedirectResolver)}(vi,w),vi},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((b,w,N)=>{b.getProvider("auth-internal").initialize()})),(0,R._registerComponent)(new ae.wA("auth-internal",b=>{const w=he(b.getProvider("auth").getImmediate());return new Cc(w)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,R.registerVersion)(Gl,"0.23.2",function Sp(A){switch(A){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(A)),(0,R.registerVersion)(Gl,"0.23.2","esm2017")}("Browser")},2810:(wn,bt,D)=>{"use strict";D.d(bt,{u7:()=>np,Jj:()=>Cu,IX:()=>C_,my:()=>Lo,xU:()=>wd,Lz:()=>xu,WA:()=>Sn,F8:()=>Kg,$q:()=>rp,W:()=>Md,EK:()=>Oi,PU:()=>Nh,l7:()=>Ol,Ky:()=>Qn,Xb:()=>Kr,Cf:()=>Sr,K9:()=>Ms,Me:()=>n0,yq:()=>Mr,Wi:()=>v_,ET:()=>_o,Ab:()=>N_,vr:()=>Pd,Fc:()=>Gg,hJ:()=>xh,B$:()=>wh,at:()=>Kf,oe:()=>Pv,AK:()=>kv,TF:()=>gv,JU:()=>jg,ST:()=>Xb,fH:()=>fv,Ix:()=>pv,Wu:()=>S_,Lx:()=>tp,qY:()=>_s,GL:()=>ol,QT:()=>Tv,kl:()=>tm,Xk:()=>Ed,PL:()=>sc,UQ:()=>Sh,zN:()=>Cr,ad:()=>hv,nP:()=>F_,b9:()=>em,vh:()=>I_,Pb:()=>Wg,L$:()=>mv,cf:()=>k_,sc:()=>ry,Xo:()=>A_,IO:()=>Cv,iE:()=>Mh,Eo:()=>cv,i3:()=>sp,Bt:()=>ap,pl:()=>Ov,Ub:()=>ia,qK:()=>Ev,TQ:()=>Ir,e0:()=>Mu,r7:()=>Td,Mx:()=>w_,ar:()=>D_});var se,g=D(5861),e=D(6881),R=D(4859),me=D(1877),ve=D(2090),ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Te={},z=z||{},x=ae||self;function G(l){var t=typeof l;return"array"==(t="object"!=t?t:l?Array.isArray(l)?"array":t:"null")||"object"==t&&"number"==typeof l.length}function de(l){var t=typeof l;return"object"==t&&null!=l||"function"==t}var Mt="closure_uid_"+(1e9*Math.random()>>>0),We=0;function At(l,t,i){return l.call.apply(l.bind,arguments)}function qe(l,t,i){if(!l)throw Error();if(2<arguments.length){var u=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(f,u),l.apply(t,f)}}return function(){return l.apply(t,arguments)}}function lt(l,t,i){return(lt=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?At:qe).apply(null,arguments)}function sn(l,t){var i=Array.prototype.slice.call(arguments,1);return function(){var u=i.slice();return u.push.apply(u,arguments),l.apply(this,u)}}function Xt(l,t){function i(){}i.prototype=t.prototype,l.$=t.prototype,l.prototype=new i,l.prototype.constructor=l,l.ac=function(u,f,_){for(var C=Array(arguments.length-2),F=2;F<arguments.length;F++)C[F-2]=arguments[F];return t.prototype[f].apply(u,C)}}function ot(){this.s=this.s,this.o=this.o}ot.prototype.s=!1,ot.prototype.sa=function(){!this.s&&(this.s=!0,this.N(),0)&&function dt(l){Object.prototype.hasOwnProperty.call(l,Mt)&&l[Mt]||(l[Mt]=++We)}(this)},ot.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const ut=Array.prototype.indexOf?function(l,t){return Array.prototype.indexOf.call(l,t,void 0)}:function(l,t){if("string"==typeof l)return"string"!=typeof t||1!=t.length?-1:l.indexOf(t,0);for(let i=0;i<l.length;i++)if(i in l&&l[i]===t)return i;return-1};function Ye(l){const t=l.length;if(0<t){const i=Array(t);for(let u=0;u<t;u++)i[u]=l[u];return i}return[]}function it(l,t){for(let i=1;i<arguments.length;i++){const u=arguments[i];if(G(u)){const f=l.length||0,_=u.length||0;l.length=f+_;for(let C=0;C<_;C++)l[f+C]=u[C]}else l.push(u)}}function ze(l,t){this.type=l,this.g=this.target=t,this.defaultPrevented=!1}ze.prototype.h=function(){this.defaultPrevented=!0};var xt=function(){if(!x.addEventListener||!Object.defineProperty)return!1;var l=!1,t=Object.defineProperty({},"passive",{get:function(){l=!0}});try{x.addEventListener("test",()=>{},t),x.removeEventListener("test",()=>{},t)}catch{}return l}();function mt(l){return/^[\s\xa0]*$/.test(l)}function zt(){var l=x.navigator;return l&&(l=l.userAgent)?l:""}function pn(l){return-1!=zt().indexOf(l)}function $t(l){return $t[" "](l),l}$t[" "]=function(){};
vendor: 15,078 bytes, line 1
1var ie,l,Ut=pn("Opera"),gn=pn("Trident")||pn("MSIE"),tt=pn("Edge"),Zt=tt||gn,St=pn("Gecko")&&!(-1!=zt().toLowerCase().indexOf("webkit")&&!pn("Edge"))&&!(pn("Trident")||pn("MSIE"))&&!pn("Edge"),$e=-1!=zt().toLowerCase().indexOf("webkit")&&!pn("Edge");function je(){var l=x.document;return l?l.documentMode:void 0}e:{var ft="",Wt=(l=zt(),St?/rv:([^\);]+)(\)|;)/.exec(l):tt?/Edge\/([\d\.]+)/.exec(l):gn?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(l):$e?/WebKit\/(\S+)/.exec(l):Ut?/(?:Version)[ \/]?(\S+)/.exec(l):void 0);if(Wt&&(ft=Wt?Wt[1]:""),gn){var Dt=je();if(null!=Dt&&Dt>parseFloat(ft)){ie=String(Dt);break e}}ie=ft}var qn=x.document&&gn&&(je()||parseInt(ie,10))||void 0;function kn(l,t){if(ze.call(this,l?l.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,l){var i=this.type=l.type,u=l.changedTouches&&l.changedTouches.length?l.changedTouches[0]:null;if(this.target=l.target||l.srcElement,this.g=t,t=l.relatedTarget){if(St){e:{try{$t(t.nodeName);var f=!0;break e}catch{}f=!1}f||(t=null)}}else"mouseover"==i?t=l.fromElement:"mouseout"==i&&(t=l.toElement);this.relatedTarget=t,u?(this.clientX=void 0!==u.clientX?u.clientX:u.pageX,this.clientY=void 0!==u.clientY?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0):(this.clientX=void 0!==l.clientX?l.clientX:l.pageX,this.clientY=void 0!==l.clientY?l.clientY:l.pageY,this.screenX=l.screenX||0,this.screenY=l.screenY||0),this.button=l.button,this.key=l.key||"",this.ctrlKey=l.ctrlKey,this.altKey=l.altKey,this.shiftKey=l.shiftKey,this.metaKey=l.metaKey,this.pointerId=l.pointerId||0,this.pointerType="string"==typeof l.pointerType?l.pointerType:ai[l.pointerType]||"",this.state=l.state,this.i=l,l.defaultPrevented&&kn.$.h.call(this)}}Xt(kn,ze);var ai={2:"touch",3:"pen",4:"mouse"};kn.prototype.h=function(){kn.$.h.call(this);var l=this.i;l.preventDefault?l.preventDefault():l.returnValue=!1};var An="closure_listenable_"+(1e6*Math.random()|0),Wn=0;function Ln(l,t,i,u,f){this.listener=l,this.proxy=null,this.src=t,this.type=i,this.capture=!!u,this.la=f,this.key=++Wn,this.fa=this.ia=!1}function Hn(l){l.fa=!0,l.listener=null,l.proxy=null,l.src=null,l.la=null}function yi(l,t,i){for(const u in l)t.call(i,l[u],u,l)}function ui(l){const t={};for(const i in l)t[i]=l[i];return t}const zn="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ri(l,t){let i,u;for(let f=1;f<arguments.length;f++){for(i in u=arguments[f],u)l[i]=u[i];for(let _=0;_<zn.length;_++)i=zn[_],Object.prototype.hasOwnProperty.call(u,i)&&(l[i]=u[i])}}function Pi(l){this.src=l,this.g={},this.h=0}function li(l,t){var i=t.type;if(i in l.g){var _,u=l.g[i],f=ut(u,t);(_=0<=f)&&Array.prototype.splice.call(u,f,1),_&&(Hn(t),0==l.g[i].length&&(delete l.g[i],l.h--))}}function ei(l,t,i,u){for(var f=0;f<l.length;++f){var _=l[f];if(!_.fa&&_.listener==t&&_.capture==!!i&&_.la==u)return f}return-1}Pi.prototype.add=function(l,t,i,u,f){var _=l.toString();(l=this.g[_])||(l=this.g[_]=[],this.h++);var C=ei(l,t,u,f);return-1<C?(t=l[C],i||(t.ia=!1)):((t=new Ln(t,this.src,_,!!u,f)).ia=i,l.push(t)),t};var Ze="closure_lm_"+(1e6*Math.random()|0),Oe={};function P(l,t,i,u,f){if(u&&u.once)return Q(l,t,i,u,f);if(Array.isArray(t)){for(var _=0;_<t.length;_++)P(l,t[_],i,u,f);return null}return i=st(i),l&&l[An]?l.O(t,i,de(u)?!!u.capture:!!u,f):le(l,t,i,!1,u,f)}function le(l,t,i,u,f,_){if(!t)throw Error("Invalid event type");var C=de(f)?!!f.capture:!!f,F=wt(l);if(F||(l[Ze]=F=new Pi(l)),(i=F.add(t,i,u,C,_)).proxy)return i;if(u=function O(){const t=Je;return function l(i){return t.call(l.src,l.listener,i)}}(),i.proxy=u,u.src=l,u.listener=i,l.addEventListener)xt||(f=C),void 0===f&&(f=!1),l.addEventListener(t.toString(),u,f);else if(l.attachEvent)l.attachEvent(ye(t.toString()),u);else{if(!l.addListener||!l.removeListener)throw Error("addEventListener and attachEvent are unavailable.");l.addListener(u)}return i}function Q(l,t,i,u,f){if(Array.isArray(t)){for(var _=0;_<t.length;_++)Q(l,t[_],i,u,f);return null}return i=st(i),l&&l[An]?l.P(t,i,de(u)?!!u.capture:!!u,f):le(l,t,i,!0,u,f)}function ke(l,t,i,u,f){if(Array.isArray(t))for(var _=0;_<t.length;_++)ke(l,t[_],i,u,f);else u=de(u)?!!u.capture:!!u,i=st(i),l&&l[An]?(l=l.i,(t=String(t).toString())in l.g&&-1<(i=ei(_=l.g[t],i,u,f))&&(Hn(_[i]),Array.prototype.splice.call(_,i,1),0==_.length&&(delete l.g[t],l.h--))):l&&(l=wt(l))&&(t=l.g[t.toString()],l=-1,t&&(l=ei(t,i,u,f)),(i=-1<l?t[l]:null)&&De(i))}function De(l){if("number"!=typeof l&&l&&!l.fa){var t=l.src;if(t&&t[An])li(t.i,l);else{var i=l.type,u=l.proxy;t.removeEventListener?t.removeEventListener(i,u,l.capture):t.detachEvent?t.detachEvent(ye(i),u):t.addListener&&t.removeListener&&t.removeListener(u),(i=wt(t))?(li(i,l),0==i.h&&(i.src=null,t[Ze]=null)):Hn(l)}}}function ye(l){return l in Oe?Oe[l]:Oe[l]="on"+l}function Je(l,t){if(l.fa)l=!0;else{t=new kn(t,this);var i=l.listener,u=l.la||l.src;l.ia&&De(l),l=i.call(u,t)}return l}function wt(l){return(l=l[Ze])instanceof Pi?l:null}var on="__closure_events_fn_"+(1e9*Math.random()>>>0);function st(l){return"function"==typeof l?l:(l[on]||(l[on]=function(t){return l.handleEvent(t)}),l[on])}function Ee(){ot.call(this),this.i=new Pi(this),this.S=this,this.J=null}function V(l,t){var i,u=l.J;if(u)for(i=[];u;u=u.J)i.push(u);if(l=l.S,u=t.type||t,"string"==typeof t)t=new ze(t,l);else if(t instanceof ze)t.target=t.target||l;else{var f=t;ri(t=new ze(u,l),f)}if(f=!0,i)for(var _=i.length-1;0<=_;_--){var C=t.g=i[_];f=_e(C,u,!0,t)&&f}if(f=_e(C=t.g=l,u,!0,t)&&f,f=_e(C,u,!1,t)&&f,i)for(_=0;_<i.length;_++)f=_e(C=t.g=i[_],u,!1,t)&&f}function _e(l,t,i,u){if(!(t=l.i.g[String(t)]))return!0;t=t.concat();for(var f=!0,_=0;_<t.length;++_){var C=t[_];if(C&&!C.fa&&C.capture==i){var F=C.listener,K=C.la||C.src;C.ia&&li(l.i,C),f=!1!==F.call(K,u)&&f}}return f&&!u.defaultPrevented}Xt(Ee,ot),Ee.prototype[An]=!0,Ee.prototype.removeEventListener=function(l,t,i,u){ke(this,l,t,i,u)},Ee.prototype.N=function(){if(Ee.$.N.call(this),this.i){var t,l=this.i;for(t in l.g){for(var i=l.g[t],u=0;u<i.length;u++)Hn(i[u]);delete l.g[t],l.h--}}this.J=null},Ee.prototype.O=function(l,t,i,u){return this.i.add(String(l),t,!1,i,u)},Ee.prototype.P=function(l,t,i,u){return this.i.add(String(l),t,!0,i,u)};var Tt=x.JSON.stringify;function Yn(){var l=xe;let t=null;return l.g&&(t=l.g,l.g=l.g.next,l.g||(l.h=null),t.next=null),t}var Ii=new class un{constructor(t,i){this.i=t,this.j=i,this.h=0,this.g=null}get(){let t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t}}(()=>new qi,l=>l.reset());class qi{constructor(){this.next=this.g=this.h=null}set(t,i){this.h=t,this.g=i,this.next=null}reset(){this.next=this.g=this.h=null}}function at(l){var t=1;l=l.split(":");const i=[];for(;0<t&&l.length;)i.push(l.shift()),t--;return l.length&&i.push(l.join(":")),i}function Xe(l){x.setTimeout(()=>{throw l},0)}let Re,Ie=!1,xe=new class Li{constructor(){this.h=this.g=null}add(t,i){const u=Ii.get();u.set(t,i),this.h?this.h.next=u:this.g=u,this.h=u}},Ot=()=>{const l=x.Promise.resolve(void 0);Re=()=>{l.then(en)}};var en=()=>{for(var l;l=Yn();){try{l.h.call(l.g)}catch(i){Xe(i)}var t=Ii;t.j(l),100>t.h&&(t.h++,l.next=t.g,t.g=l)}Ie=!1};function pt(l,t){Ee.call(this),this.h=l||1,this.g=t||x,this.j=lt(this.qb,this),this.l=Date.now()}function Gt(l){l.ga=!1,l.T&&(l.g.clearTimeout(l.T),l.T=null)}function Ce(l,t,i){if("function"==typeof l)i&&(l=lt(l,i));else{if(!l||"function"!=typeof l.handleEvent)throw Error("Invalid listener argument");l=lt(l.handleEvent,l)}return 2147483647<Number(t)?-1:x.setTimeout(l,t||0)}function Ue(l){l.g=Ce(()=>{l.g=null,l.i&&(l.i=!1,Ue(l))},l.j);const t=l.h;l.h=null,l.m.apply(null,t)}Xt(pt,Ee),(se=pt.prototype).ga=!1,se.T=null,se.qb=function(){if(this.ga){var l=Date.now()-this.l;0<l&&l<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-l):(this.T&&(this.g.clearTimeout(this.T),this.T=null),V(this,"tick"),this.ga&&(Gt(this),this.start()))}},se.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},se.N=function(){pt.$.N.call(this),Gt(this),delete this.g};class ue extends ot{constructor(t,i){super(),this.m=t,this.j=i,this.h=null,this.i=!1,this.g=null}l(t){this.h=arguments,this.g?this.i=!0:Ue(this)}N(){super.N(),this.g&&(x.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function nt(l){ot.call(this),this.h=l,this.g={}}Xt(nt,ot);var Nt=[];function mn(l,t,i,u){Array.isArray(i)||(i&&(Nt[0]=i.toString()),i=Nt);for(var f=0;f<i.length;f++){var _=P(t,i[f],u||l.handleEvent,!1,l.h||l);if(!_)break;l.g[_.key]=_}}function Nn(l){yi(l.g,function(t,i){this.g.hasOwnProperty(i)&&De(t)},l),l.g={}}function kt(){this.g=!0}function vn(l,t,i,u){l.info(function(){return"XMLHTTP TEXT ("+t+"): "+function di(l,t){if(!l.g)return t;if(!t)return null;try{var i=JSON.parse(t);if(i)for(l=0;l<i.length;l++)if(Array.isArray(i[l])){var u=i[l];if(!(2>u.length)){var f=u[1];if(Array.isArray(f)&&!(1>f.length)){var _=f[0];if("noop"!=_&&"stop"!=_&&"close"!=_)for(var C=1;C<f.length;C++)f[C]=""}}}return Tt(i)}catch{return t}}(l,i)+(u?" "+u:"")})}nt.prototype.N=function(){nt.$.N.call(this),Nn(this)},nt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},kt.prototype.Ea=function(){this.g=!1},kt.prototype.info=function(){};var ti={},cr=null;function Ai(){return cr=cr||new Ee}function fr(l){ze.call(this,ti.Ta,l)}function xr(l){const t=Ai();V(t,new fr(t))}function Yi(l,t){ze.call(this,ti.STAT_EVENT,l),this.stat=t}function Zi(l){const t=Ai();V(t,new Yi(t,l))}function ho(l,t){ze.call(this,ti.Ua,l),this.size=t}function Ni(l,t){if("function"!=typeof l)throw Error("Fn must not be null and must be a function");return x.setTimeout(function(){l()},t)}ti.Ta="serverreachability",Xt(fr,ze),ti.STAT_EVENT="statevent",Xt(Yi,ze),ti.Ua="timingevent",Xt(ho,ze);var jr={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},Xr={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function Bt(){}function ne(){}Bt.prototype.h=null;var Ke,Ne={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function yt(){ze.call(this,"d")}function Vt(){ze.call(this,"c")}function Ge(){}function ht(l,t,i,u){this.l=l,this.j=t,this.m=i,this.W=u||1,this.U=new nt(this),this.P=we,this.V=new pt(l=Zt?125:void 0),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new Kt}function Kt(){this.i=null,this.g="",this.h=!1}Xt(yt,ze),Xt(Vt,ze),Xt(Ge,Bt),Ge.prototype.g=function(){return new XMLHttpRequest},Ge.prototype.i=function(){return{}},Ke=new Ge;var we=45e3,ct={},jt={};function Mn(l,t,i){l.L=1,l.v=cs(Co(t)),l.s=i,l.S=!0,Jn(l,null)}function Jn(l,t){l.G=Date.now(),Ji(l),l.A=Co(l.v);var i=l.A,u=l.W;Array.isArray(u)||(u=[String(u)]),ks(i.i,"t",u),l.C=0,i=l.l.J,l.h=new Kt,l.g=ta(l.l,i?t:null,!l.s),0<l.O&&(l.M=new ue(lt(l.Pa,l,l.g),l.O)),mn(l.U,l.g,"readystatechange",l.nb),t=l.I?ui(l.I):{},l.s?(l.u||(l.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",l.g.ha(l.A,l.u,l.s,t)):(l.u="GET",l.g.ha(l.A,l.u,null,t)),xr(),function Ft(l,t,i,u,f,_){l.info(function(){if(l.g)if(_)for(var C="",F=_.split("&"),K=0;K<F.length;K++){var re=F[K].split("=");if(1<re.length){var Be=re[0];re=re[1];var _t=Be.split("_");C=2<=_t.length&&"type"==_t[1]?C+(Be+"=")+re+"&":C+(Be+"=redacted&")}}else C=null;else C=_;return"XMLHTTP REQ ("+u+") [attempt "+f+"]: "+t+"\n"+i+"\n"+C})}(l.j,l.u,l.A,l.m,l.W,l.s)}function Mi(l){return!!l.g&&"GET"==l.u&&2!=l.L&&l.l.Ha}function Ti(l,t,i){let f,u=!0;for(;!l.J&&l.C<i.length;){if(f=$i(l,i),f==jt){4==t&&(l.o=4,Zi(14),u=!1),vn(l.j,l.m,null,"[Incomplete Response]");break}if(f==ct){l.o=4,Zi(15),vn(l.j,l.m,i,"[Invalid Chunk]"),u=!1;break}vn(l.j,l.m,f,null),Ao(l,f)}Mi(l)&&f!=jt&&f!=ct&&(l.h.g="",l.C=0),4!=t||0!=i.length||l.h.h||(l.o=1,Zi(16),u=!1),l.i=l.i&&u,u?0<i.length&&!l.ba&&(l.ba=!0,(t=l.l).g==l&&t.ca&&!t.M&&(t.l.info("Great, no buffering proxy detected. Bytes received: "+i.length),dr(t),t.M=!0,Zi(11))):(vn(l.j,l.m,i,"[Invalid Chunked Response]"),Wo(l),As(l))}function $i(l,t){var i=l.C,u=t.indexOf("\n",i);return-1==u?jt:(i=Number(t.substring(i,u)),isNaN(i)?ct:(u+=1)+i>t.length?jt:(t=t.slice(u,u+i),l.C=u+i,t))}function Ji(l){l.Y=Date.now()+l.P,eo(l,l.P)}function eo(l,t){if(null!=l.B)throw Error("WatchDog timer not null");l.B=Ni(lt(l.lb,l),t)}function Do(l){l.B&&(x.clearTimeout(l.B),l.B=null)}function As(l){0==l.l.H||l.J||pr(l.l,l)}function Wo(l){Do(l);var t=l.M;t&&"function"==typeof t.sa&&t.sa(),l.M=null,Gt(l.V),Nn(l.U),l.g&&(t=l.g,l.g=null,t.abort(),t.sa())}function Ao(l,t){try{var i=l.l;if(0!=i.H&&(i.g==l||fn(i.i,l)))if(!l.K&&fn(i.i,l)&&3==i.H){try{var u=i.Ja.g.parse(t)}catch{u=null}if(Array.isArray(u)&&3==u.length){var f=u;if(0==f[0]){e:if(!i.u){if(i.g){if(!(i.g.G+3e3<l.G))break e;wr(i),qo(i)}ci(i),Zi(18)}}else i.Fa=f[1],0<i.Fa-i.V&&37500>f[2]&&i.G&&0==i.A&&!i.v&&(i.v=Ni(lt(i.ib,i),6e3));if(1>=Ht(i.i)&&i.oa){try{i.oa()}catch{}i.oa=void 0}}else Ro(i,11)}else if((l.K||i.g==l)&&wr(i),!mt(t))for(f=i.Ja.g.parse(t),t=0;t<f.length;t++){let re=f[t];if(i.V=re[0],re=re[1],2==i.H)if("c"==re[0]){i.K=re[1],i.pa=re[2];const Be=re[3];null!=Be&&(i.ra=Be,i.l.info("VER="+i.ra));const _t=re[4];null!=_t&&(i.Ga=_t,i.l.info("SVER="+i.Ga));const tn=re[5];null!=tn&&"number"==typeof tn&&0<tn&&(i.L=u=1.5*tn,i.l.info("backChannelRequestTimeoutMs_="+u)),u=i;const xn=l.g;if(xn){const Bn=xn.g?xn.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Bn){var _=u.i;_.g||-1==Bn.indexOf("spdy")&&-1==Bn.indexOf("quic")&&-1==Bn.indexOf("h2")||(_.j=_.l,_.g=new Set,_.h&&(Rn(_,_.h),_.h=null))}if(u.F){const bi=xn.g?xn.g.getResponseHeader("X-HTTP-Session-Id"):null;bi&&(u.Da=bi,zi(u.I,u.F,bi))}}i.H=3,i.h&&i.h.Ba(),i.ca&&(i.S=Date.now()-l.G,i.l.info("Handshake RTT: "+i.S+"ms"));var C=l;if((u=i).wa=Qo(u,u.J?u.pa:null,u.Y),C.K){hi(u.i,C);var F=C,K=u.L;K&&F.setTimeout(K),F.B&&(Do(F),Ji(F)),u.g=C}else Zn(u);0<i.j.length&&Me(i)}else"stop"!=re[0]&&"close"!=re[0]||Ro(i,7);else 3==i.H&&("stop"==re[0]||"close"==re[0]?"stop"==re[0]?Ro(i,7):us(i):"noop"!=re[0]&&i.h&&i.h.Aa(re),i.A=0)}xr()}catch{}}function co(l,t){if(l.forEach&&"function"==typeof l.forEach)l.forEach(t,void 0);else if(G(l)||"string"==typeof l)Array.prototype.forEach.call(l,t,void 0);else for(var i=function Is(l){if(l.ta&&"function"==typeof l.ta)return l.ta();if(!l.Z||"function"!=typeof l.Z){if(typeof Map<"u"&&l instanceof Map)return Array.from(l.keys());if(!(typeof Set<"u"&&l instanceof Set)){if(G(l)||"string"==typeof l){var t=[];l=l.length;for(var i=0;i<l;i++)t.push(i);return t}t=[],i=0;for(const u in l)t[i++]=u;return t}}}(l),u=function vs(l){if(l.Z&&"function"==typeof l.Z)return l.Z();if(typeof Map<"u"&&l instanceof Map||typeof Set<"u"&&l instanceof Set)return Array.from(l.values());if("string"==typeof l)return l.split("");
1if(G(l)){for(var t=[],i=l.length,u=0;u<i;u++)t.push(l[u]);return t}for(u in t=[],i=0,l)t[i++]=l[u];return t}(l),f=u.length,_=0;_<f;_++)t.call(void 0,u[_],i&&i[_],l)}(se=ht.prototype).setTimeout=function(l){this.P=l},se.nb=function(l){l=l.target;const t=this.M;t&&3==J(l)?t.l():this.Pa(l)},se.Pa=function(l){try{if(l==this.g)e:{const Be=J(this.g);var t=this.g.Ia();if(this.g.da(),!(3>Be)&&(3!=Be||Zt||this.g&&(this.h.h||this.g.ja()||W(this.g)))){this.J||4!=Be||7==t||xr(),Do(this);var i=this.g.da();this.ca=i;t:if(Mi(this)){var u=W(this.g);l="";var f=u.length,_=4==J(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Wo(this),As(this);var C="";break t}this.h.i=new x.TextDecoder}for(t=0;t<f;t++)this.h.h=!0,l+=this.h.i.decode(u[t],{stream:_&&t==f-1});u.splice(0,f),this.h.g+=l,this.C=0,C=this.h.g}else C=this.g.ja();if(this.i=200==i,function bn(l,t,i,u,f,_,C){l.info(function(){return"XMLHTTP RESP ("+u+") [ attempt "+f+"]: "+t+"\n"+i+"\n"+_+" "+C})}(this.j,this.u,this.A,this.m,this.W,Be,i),this.i){if(this.aa&&!this.K){t:{if(this.g){var F,K=this.g;if((F=K.g?K.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!mt(F)){var re=F;break t}}re=null}if(!(i=re)){this.i=!1,this.o=3,Zi(12),Wo(this),As(this);break e}vn(this.j,this.m,i,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ao(this,i)}this.S?(Ti(this,Be,C),Zt&&this.i&&3==Be&&(mn(this.U,this.V,"tick",this.mb),this.V.start())):(vn(this.j,this.m,C,null),Ao(this,C)),4==Be&&Wo(this),this.i&&!this.J&&(4==Be?pr(this.l,this):(this.i=!1,Ji(this)))}else(function H(l){const t={};l=(l.g&&2<=J(l)&&l.g.getAllResponseHeaders()||"").split("\r\n");for(let u=0;u<l.length;u++){if(mt(l[u]))continue;var i=at(l[u]);const f=i[0];if("string"!=typeof(i=i[1]))continue;i=i.trim();const _=t[f]||[];t[f]=_,_.push(i)}!function _n(l,t){for(const i in l)t.call(void 0,l[i],i,l)}(t,function(u){return u.join(", ")})})(this.g),400==i&&0<C.indexOf("Unknown SID")?(this.o=3,Zi(12)):(this.o=0,Zi(13)),Wo(this),As(this)}}}catch{}},se.mb=function(){if(this.g){var l=J(this.g),t=this.g.ja();this.C<t.length&&(Do(this),Ti(this,l,t),this.i&&4!=l&&Ji(this))}},se.cancel=function(){this.J=!0,Wo(this)},se.lb=function(){this.B=null;const l=Date.now();0<=l-this.Y?(function ni(l,t){l.info(function(){return"TIMEOUT: "+t})}(this.j,this.A),2!=this.L&&(xr(),Zi(17)),Wo(this),this.o=2,As(this)):eo(this,this.Y-l)};var Ko=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Vo(l){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,l instanceof Vo){this.h=l.h,fo(this,l.j),this.s=l.s,this.g=l.g,Mo(this,l.m),this.l=l.l;var t=l.i,i=new rs;i.i=t.i,t.g&&(i.g=new Map(t.g),i.h=t.h),Ss(this,i),this.o=l.o}else l&&(t=String(l).match(Ko))?(this.h=!1,fo(this,t[1]||"",!0),this.s=po(t[2]||""),this.g=po(t[3]||"",!0),Mo(this,t[4]),this.l=po(t[5]||"",!0),Ss(this,t[6]||"",!0),this.o=po(t[7]||"")):(this.h=!1,this.i=new rs(null,this.h))}function Co(l){return new Vo(l)}function fo(l,t,i){l.j=i?po(t,!0):t,l.j&&(l.j=l.j.replace(/:$/,""))}function Mo(l,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);l.m=t}else l.m=null}function Ss(l,t,i){t instanceof rs?(l.i=t,function oo(l,t){t&&!l.j&&(no(l),l.i=null,l.g.forEach(function(i,u){var f=u.toLowerCase();u!=f&&(Bs(this,u),ks(this,f,i))},l)),l.j=t}(l.i,l.h)):(i||(t=to(t,ha)),l.i=new rs(t,l.h))}function zi(l,t,i){l.i.set(t,i)}function cs(l){return zi(l,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),l}function po(l,t){return l?t?decodeURI(l.replace(/%25/g,"%2525")):decodeURIComponent(l):""}function to(l,t,i){return"string"==typeof l?(l=encodeURI(l).replace(t,bs),i&&(l=l.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l):null}function bs(l){return"%"+((l=l.charCodeAt(0))>>4&15).toString(16)+(15&l).toString(16)}Vo.prototype.toString=function(){var l=[],t=this.j;t&&l.push(to(t,is,!0),":");var i=this.g;return(i||"file"==t)&&(l.push("//"),(t=this.s)&&l.push(to(t,is,!0),"@"),l.push(encodeURIComponent(String(i)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(i=this.m)&&l.push(":",String(i))),(i=this.l)&&(this.g&&"/"!=i.charAt(0)&&l.push("/"),l.push(to(i,"/"==i.
1charAt(0)?Io:ea,!0))),(i=this.i.toString())&&l.push("?",i),(i=this.o)&&l.push("#",to(i,fa)),l.join("")};var is=/[#\/\?@]/g,ea=/[#\?:]/g,Io=/[#\?]/g,ha=/[#\?@]/g,fa=/#/g;function rs(l,t){this.h=this.g=null,this.i=l||null,this.j=!!t}function no(l){l.g||(l.g=new Map,l.h=0,l.i&&function Zs(l,t){if(l){l=l.split("&");for(var i=0;i<l.length;i++){var u=l[i].indexOf("="),f=null;if(0<=u){var _=l[i].substring(0,u);f=l[i].substring(u+1)}else _=l[i];t(_,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}}(l.i,function(t,i){l.add(decodeURIComponent(t.replace(/\+/g," ")),i)}))}function Bs(l,t){no(l),t=Rs(l,t),l.g.has(t)&&(l.i=null,l.h-=l.g.get(t).length,l.g.delete(t))}function Ur(l,t){return no(l),t=Rs(l,t),l.g.has(t)}function ks(l,t,i){Bs(l,t),0<i.length&&(l.i=null,l.g.set(Rs(l,t),Ye(i)),l.h+=i.length)}function Rs(l,t){return t=String(t),l.j&&(t=t.toLowerCase()),t}function ge(l){this.l=l||Qe,l=x.PerformanceNavigationTiming?0<(l=x.performance.getEntriesByType("navigation")).length&&("hq"==l[0].nextHopProtocol||"h2"==l[0].nextHopProtocol):!!(x.g&&x.g.Ka&&x.g.Ka()&&x.g.Ka().ec),this.j=l?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}(se=rs.prototype).add=function(l,t){no(this),this.i=null,l=Rs(this,l);var i=this.g.get(l);return i||this.g.set(l,i=[]),i.push(t),this.h+=1,this},se.forEach=function(l,t){no(this),this.g.forEach(function(i,u){i.forEach(function(f){l.call(t,f,u,this)},this)},this)},se.ta=function(){no(this);const l=Array.from(this.g.values()),t=Array.from(this.g.keys()),i=[];for(let u=0;u<t.length;u++){const f=l[u];for(let _=0;_<f.length;_++)i.push(t[u])}return i},se.Z=function(l){no(this);let t=[];if("string"==typeof l)Ur(this,l)&&(t=t.concat(this.g.get(Rs(this,l))));else{l=Array.from(this.g.values());for(let i=0;i<l.length;i++)t=t.concat(l[i])}return t},se.set=function(l,t){return no(this),this.i=null,Ur(this,l=Rs(this,l))&&(this.h-=this.g.get(l).length),this.g.set(l,[t]),this.h+=1,this},se.get=function(l,t){return l&&0<(l=this.Z(l)).length?String(l[0]):t},se.toString=function(){if(this.i)return this.i;if(!this.g)return"";const l=[],t=Array.from(this.g.keys());for(var i=0;i<t.length;i++){var u=t[i];const _=encodeURIComponent(String(u)),C=this.Z(u);for(u=0;u<C.length;u++){var f=_;""!==C[u]&&(f+="="+encodeURIComponent(String(C[u]))),l.push(f)}}return this.i=l.join("&")};var Qe=10;function Et(l){return!!l.h||!!l.g&&l.g.size>=l.j}function Ht(l){return l.h?1:l.g?l.g.size:0}function fn(l,t){return l.h?l.h==t:!!l.g&&l.g.has(t)}function Rn(l,t){l.g?l.g.add(t):l.h=t}function hi(l,t){l.h&&l.h==t?l.h=null:l.g&&l.g.has(t)&&l.g.delete(t)}function fi(l){if(null!=l.h)return l.i.concat(l.h.F);if(null!=l.g&&0!==l.g.size){let t=l.i;for(const i of l.g.values())t=t.concat(i.F);return t}return Ye(l.i)}function Si(){this.g=new class{stringify(l){return x.JSON.stringify(l,void 0)}parse(l){return x.JSON.parse(l,void 0)}}}function Zr(l,t,i){const u=i||"";try{co(l,function(f,_){let C=f;de(f)&&(C=Tt(f)),t.push(u+_+"="+encodeURIComponent(C))})}catch(f){throw t.push(u+"type="+encodeURIComponent("_badmap")),f}}function Dr(l,t,i,u,f){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,f(u)}catch{}}function nr(l){this.l=l.fc||null,this.j=l.ob||!1}function ji(l,t){Ee.call(this),this.F=l,this.u=t,this.m=void 0,this.readyState=br,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}ge.prototype.cancel=function(){if(this.i=fi(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const l of this.g.values())l.cancel();this.g.clear()}},Xt(nr,Bt),nr.prototype.g=function(){return new ji(this.l,this.j)},nr.prototype.i=function(l){return function(){return l}}({}),Xt(ji,Ee);var br=0;function mi(l){l.j.read().then(l.Xa.bind(l)).catch(l.ka.bind(l))}function Wr(l){l.readyState=4,l.l=null,l.j=null,l.A=null,Rr(l)}function Rr(l){l.onreadystatechange&&l.onreadystatechange.call(l)}(se=ji.prototype).open=function(l,t){if(this.readyState!=br)throw this.abort(),Error("Error reopening a connection");this.C=l,this.B=t,this.readyState=1,Rr(this)},se.send=function(l){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};
1l&&(t.body=l),(this.F||x).fetch(new Request(this.B,t)).then(this.$a.bind(this),this.ka.bind(this))},se.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Wr(this)),this.readyState=br},se.$a=function(l){if(this.g&&(this.l=l,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=l.headers,this.readyState=2,Rr(this)),this.g&&(this.readyState=3,Rr(this),this.g)))if("arraybuffer"===this.responseType)l.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof x.ReadableStream<"u"&&"body"in l){if(this.j=l.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;mi(this)}else l.text().then(this.Za.bind(this),this.ka.bind(this))},se.Xa=function(l){if(this.g){if(this.u&&l.value)this.response.push(l.value);else if(!this.u){var t=l.value?l.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!l.done}))&&(this.response=this.responseText+=t)}l.done?Wr(this):Rr(this),3==this.readyState&&mi(this)}},se.Za=function(l){this.g&&(this.response=this.responseText=l,Wr(this))},se.Ya=function(l){this.g&&(this.response=l,Wr(this))},se.ka=function(){this.g&&Wr(this)},se.setRequestHeader=function(l,t){this.v.append(l,t)},se.getResponseHeader=function(l){return this.h&&this.h.get(l.toLowerCase())||""},se.getAllResponseHeaders=function(){if(!this.h)return"";const l=[],t=this.h.entries();for(var i=t.next();!i.done;)l.push((i=i.value)[0]+": "+i[1]),i=t.next();return l.join("\r\n")},Object.defineProperty(ji.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(l){this.m=l?"include":"same-origin"}});var Hr=x.JSON.parse;function ur(l){Ee.call(this),this.headers=new Map,this.u=l||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=Yo,this.L=this.M=!1}Xt(ur,Ee);var Yo="",ys=/^https?$/i,Jo=["POST","PUT"];function On(l,t){l.h=!1,l.g&&(l.l=!0,l.g.abort(),l.l=!1),l.j=t,l.m=5,Qi(l),ko(l)}function Qi(l){l.F||(l.F=!0,V(l,"complete"),V(l,"error"))}function So(l){if(l.h&&typeof z<"u"&&(!l.C[1]||4!=J(l)||2!=l.da()))if(l.v&&4==J(l))Ce(l.La,0,l);else if(V(l,"readystatechange"),4==J(l)){l.h=!1;try{const C=l.da();e:switch(C){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var i;if(!(i=t)){var u;if(u=0===C){var f=String(l.I).match(Ko)[1]||null;!f&&x.self&&x.self.location&&(f=x.self.location.protocol.slice(0,-1)),u=!ys.test(f?f.toLowerCase():"")}i=u}if(i)V(l,"complete"),V(l,"success");else{l.m=6;try{var _=2<J(l)?l.g.statusText:""}catch{_=""}l.j=_+" ["+l.da()+"]",Qi(l)}}finally{ko(l)}}}function ko(l,t){if(l.g){so(l);const i=l.g,u=l.C[0]?()=>{}:null;l.g=null,l.C=null,t||V(l,"ready");try{i.onreadystatechange=u}catch{}}}function so(l){l.g&&l.L&&(l.g.ontimeout=null),l.A&&(x.clearTimeout(l.A),l.A=null)}function J(l){return l.g?l.g.readyState:0}function W(l){try{if(!l.g)return null;if("response"in l.g)return l.g.response;switch(l.K){case Yo:case"text":return l.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in l.g)return l.g.mozResponseArrayBuffer}return null}catch{return null}}function Se(l){let t="";return yi(l,function(i,u){t+=u,t+=":",t+=i,t+="\r\n"}),t}function ln(l,t,i){e:{for(u in i){var u=!1;break e}u=!0}u||(i=Se(i),"string"==typeof l?null!=i&&encodeURIComponent(String(i)):zi(l,t,i))}function pi(l,t,i){return i&&i.internalChannelParams&&i.internalChannelParams[l]||t}function Hi(l){this.Ga=0,this.j=[],this.l=new kt,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=pi("failFast",!1,l),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=pi("baseRetryDelayMs",5e3,l),this.hb=pi("retryDelaySeedMs",1e4,l),this.eb=pi("forwardChannelMaxRetries",2,l),this.xa=pi("forwardChannelRequestTimeoutMs",2e4,l),this.va=l&&l.xmlHttpFactory||void 0,this.Ha=l&&l.dc||!1,this.L=void 0,this.J=l&&l.supportsCrossDomainXhr||!1,this.K="",this.i=new ge(l&&l.concurrentRequestLimit),this.Ja=new Si,this.P=l&&l.fastHandshake||!1,this.O=l&&l.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=l&&l.bc||!1,l&&l.Ea&&this.l.Ea(),l&&l.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&l&&l.detectBufferingProxy||!1,this.qa=void 0,l&&l.longPollingTimeout&&0<l.longPollingTimeout&&(this.qa=l.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function us(l){if(Or(l),3==l.H){var t=l.W++,i=Co(l.I);if(zi(i,"SID",l.K),zi(i,"RID",t),zi(i,"TYPE","terminate"),Qt(l,i),(t=new ht(l,l.l,t)).L=2,t.v=cs(Co(i)),i=!1,x.navigator&&x.navigator.sendBeacon)try{i=x.navigator.sendBeacon(t.v.toString(),"")}catch{}!i&&x.Image&&((new Image).src=t.v,i=!0),i||(t.g=ta(t.l,null),t.g.ha(t.v)),t.G=Date.now(),Ji(t)}Cs(l)}function qo(l){l.g&&(dr(l),l.g.cancel(),l.g=null)}function Or(l){qo(l),l.u&&(x.clearTimeout(l.u),l.u=null),wr(l),l.i.cancel(),l.m&&("number"==typeof l.m&&x.clearTimeout(l.m),l.m=null)}function Me(l){if(!Et(l.i)&&!l.m){l.m=!0;var t=l.Na;Re||Ot(),Ie||(Re(),Ie=!0),xe.add(t,l),l.C=0}}function vt(l,t){var i;i=t?t.m:l.W++;const u=Co(l.I);zi(u,"SID",l.K),zi(u,"RID",i),zi(u,"AID",l.V),Qt(l,u),l.o&&l.s&&ln(u,l.o,l.s),i=new ht(l,l.l,i,l.C+1),null===l.o&&(i.I=l.s),t&&(l.j=t.F.concat(l.j)),t=Pn(l,i,1e3),i.setTimeout(
1Math.round(.5*l.xa)+Math.round(.5*l.xa*Math.random())),Rn(l.i,i),Mn(i,u,t)}function Qt(l,t){l.na&&yi(l.na,function(i,u){zi(t,u,i)}),l.h&&co({},function(i,u){zi(t,u,i)})}function Pn(l,t,i){i=Math.min(l.j.length,i);var u=l.h?lt(l.h.Va,l.h,l):null;e:{var f=l.j;let _=-1;for(;;){const C=["count="+i];-1==_?0<i?(_=f[0].g,C.push("ofs="+_)):_=0:C.push("ofs="+_);let F=!0;for(let K=0;K<i;K++){let re=f[K].g;const Be=f[K].map;if(re-=_,0>re)_=Math.max(0,f[K].g-100),F=!1;else try{Zr(Be,C,"req"+re+"_")}catch{u&&u(Be)}}if(F){u=C.join("&");break e}}}return l=l.j.splice(0,i),t.F=l,u}function Zn(l){if(!l.g&&!l.u){l.ba=1;var t=l.Ma;Re||Ot(),Ie||(Re(),Ie=!0),xe.add(t,l),l.A=0}}function ci(l){return!(l.g||l.u||3<=l.A||(l.ba++,l.u=Ni(lt(l.Ma,l),Bi(l,l.A)),l.A++,0))}function dr(l){null!=l.B&&(x.clearTimeout(l.B),l.B=null)}function or(l){l.g=new ht(l,l.l,"rpc",l.ba),null===l.o&&(l.g.I=l.s),l.g.O=0;var t=Co(l.wa);zi(t,"RID","rpc"),zi(t,"SID",l.K),zi(t,"AID",l.V),zi(t,"CI",l.G?"0":"1"),!l.G&&l.qa&&zi(t,"TO",l.qa),zi(t,"TYPE","xmlhttp"),Qt(l,t),l.o&&l.s&&ln(t,l.o,l.s),l.L&&l.g.setTimeout(l.L);var i=l.g;l=l.pa,i.L=1,i.v=cs(Co(t)),i.s=null,i.S=!0,Jn(i,l)}function wr(l){null!=l.v&&(x.clearTimeout(l.v),l.v=null)}function pr(l,t){var i=null;if(l.g==t){wr(l),dr(l),l.g=null;var u=2}else{if(!fn(l.i,t))return;i=t.F,hi(l.i,t),u=1}if(0!=l.H)if(t.i)if(1==u){i=t.s?t.s.length:0,t=Date.now()-t.G;var f=l.C;V(u=Ai(),new ho(u,i)),Me(l)}else Zn(l);else if(3==(f=t.o)||0==f&&0<t.ca||!(1==u&&function Fe(l,t){return!(Ht(l.i)>=l.i.j-(l.m?1:0)||(l.m?(l.j=t.F.concat(l.j),0):1==l.H||2==l.H||l.C>=(l.cb?0:l.eb)||(l.m=Ni(lt(l.Na,l,t),Bi(l,l.C)),l.C++,0)))}(l,t)||2==u&&ci(l)))switch(i&&0<i.length&&(t=l.i,t.i=t.i.concat(i)),f){case 1:Ro(l,5);break;case 4:Ro(l,10);break;case 3:Ro(l,6);break;default:Ro(l,2)}}function Bi(l,t){let i=l.ab+Math.floor(Math.random()*l.hb);return l.isActive()||(i*=2),i*t}function Ro(l,t){if(l.l.info("Error code "+t),2==t){var i=null;l.h&&(i=null);var u=lt(l.pb,l);i||(i=new Vo("//www.google.com/images/cleardot.gif"),x.location&&"http"==x.location.protocol||fo(i,"https"),cs(i)),function Br(l,t){const i=new kt;if(x.Image){const u=new Image;u.onload=sn(Dr,i,u,"TestLoadImage: loaded",!0,t),u.onerror=sn(Dr,i,u,"TestLoadImage: error",!1,t),u.onabort=sn(Dr,i,u,"TestLoadImage: abort",!1,t),u.ontimeout=sn(Dr,i,u,"TestLoadImage: timeout",!1,t),x.setTimeout(function(){u.ontimeout&&u.ontimeout()},1e4),u.src=l}else t(!1)}(i.toString(),u)}else Zi(2);l.H=0,l.h&&l.h.za(t),Cs(l),Or(l)}function Cs(l){if(l.H=0,l.ma=[],l.h){const t=fi(l.i);(0!=t.length||0!=l.j.length)&&(it(l.ma,t),it(l.ma,l.j),l.i.i.length=0,Ye(l.j),l.j.length=0),l.h.ya()}}function Qo(l,t,i){var u=i instanceof Vo?Co(i):new Vo(i);if(""!=u.g)t&&(u.g=t+"."+u.g),Mo(u,u.m);else{var f=x.location;u=f.protocol,t=t?t+"."+f.hostname:f.hostname,f=+f.port;var _=new Vo(null);u&&fo(_,u),t&&(_.g=t),f&&Mo(_,f),i&&(_.l=i),u=_}return t=l.Da,(i=l.F)&&t&&zi(u,i,t),zi(u,"VER",l.ra),Qt(l,u),u}function ta(l,t,i){if(t&&!l.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new ur(i&&l.Ha&&!l.va?new nr({ob:!0}):l.va)).Oa(l.J),t}function na(){}function Xo(){if(gn&&!(10<=Number(qn)))throw Error("Environmental error: no available transport.")}function ao(l,t){Ee.call(this),this.g=new Hi(t),this.l=l,this.h=t&&t.messageUrlParams||null,l=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(l?l["X-Client-Protocol"]="webchannel":l={"X-Client-Protocol":"webchannel"}),this.g.s=l,l=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(l?l["X-WebChannel-Content-Type"]=t.messageContentType:l={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ca&&(l?l["X-WebChannel-Client-Profile"]=t.Ca:l={"X-WebChannel-Client-Profile":t.Ca}),this.g.U=l,(l=t&&t.cc)&&!mt(l)&&(this.g.o=l),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!mt(t)&&(this.g.F=t,null!==(l=this.h)&&t in l&&t in(l=this.h)&&delete l[t]),this.j=new Ra(this)}function xs(l){yt.call(this),l.__headers__&&(this.headers=l.__headers__,this.statusCode=l.__status__,delete l.__headers__,delete l.__status__);var t=l.__sm__;if(t){e:{for(const i in t){l=i;break e}l=void 0}(this.i=l)&&(l=this.i,t=null!==t&&l in t?t[l]:void 0),this.data=t}else this.data=l}function $a(){Vt.call(this),this.status=1}function Ra(l){this.g=l}function xo(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function $r(l,t,i){i||(i=0);var u=Array(16);if("string"==typeof t)for(var f=0;16>f;++f)u[f]=t.charCodeAt(i++)|t.charCodeAt(i++)<<8|t.charCodeAt(i++)<<16|t.charCodeAt(i++)<<24;else for(f=0;16>f;++f)u[f]=t[i++]|t[i++]<<8|t[i++]<<16|t[i++]<<24;var _=l.g[3],C=(t=l.g[0])+(_^(i=l.g[1])&((f=l.g[2])^_))+u[0]+3614090360&4294967295;C=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=(i=(f=(_=(t=i+(C<<7&4294967295|C>>>25))+((C=_+(f^t&(i^f))+u[1]+3905402710&4294967295)<<12&4294967295|C>>>20))+((C=f+(i^_&(t^i))+u[2]+606105819&4294967295)<<17&4294967295|C>>>15))+((C=i+(t^f&(_^t))+u[3]+3250441966&4294967295)<<22&4294967295|C>>>10))+((C=t+(_^i&(f^_))+u[4]+4118548399&4294967295)<<7&4294967295|C>>>25))+((C=_+(f^t&(i^f))+u[5]+1200080426&4294967295)<<12&4294967295|C>>>20))+((C=f+(i^_&(t^i))+u[6]+2821735955&4294967295)<<17&4294967295|C>>>15))+((C=i+(t^f&(_^t))+u[7]+4249261313&4294967295)<<22&4294967295|C>>>10))+((C=t+(_^i&(f^_))+u[8]+1770035416&4294967295)<<7&4294967295|C>>>25))+((C=_+(f^t&(i^f))+u[9]+2336552879&4294967295)<<12&4294967295|C>>>20))+((C=f+(i^_&(t^i))+u[10]+4294925233&4294967295)<<17&4294967295|C>>>15))+((C=i+(t^f&(_^t))+u[11]+2304563134&4294967295)<<22&4294967295|C>>>10))+((C=t+(_^i&(f^_))+u[12]+1804603682&4294967295)<<7&4294967295|C>>>25))+((C=_+(f^t&(i^f))+u[13]+4254626195&4294967295)<<12&4294967295|C>>>20))+((C=f+(i^_&(t^i))+u[14]+2792965006&4294967295)<<17&4294967295|C>>>15))+((C=i+(t^f&(_^t))+u[15]+1236535329&4294967295)<<22&4294967295|C>>>10))+((C=t+(f^_&(i^f))+u[1]+4129170786&4294967295)<<5&4294967295|C>>>27))+((C=_+(i^f&(t^i))+u[6]+3225465664&4294967295)<<9&4294967295|C>>>23))+((C=f+(t^i&(_^t))+u[11]+643717713&4294967295)<<14&4294967295|C>>>18))+((C=i+(_^t&(f^_))+u[0]+3921069994&4294967295)<<20&4294967295|C>>>12))+((C=t+(f^_&(i^f))+u[5]+3593408605&4294967295)<<5&4294967295|C>>>27))+((C=_+(i^f&(t^i))+u[10]+38016083&4294967295)<<9&4294967295|C>>>23))+((C=f+(t^i&(_^t))+u[15]+3634488961&4294967295)<<14&4294967295|C>>>18))+((C=i+(_^t&(f^_))+u[4]+3889429448&4294967295)<<20&4294967295|C>>>12))+((C=t+(f^_&(i^f))+u[9]+568446438&4294967295)<<5&4294967295|C>>>27))+((C=_+(i^f&(t^i))+u[14]+3275163606&4294967295)<<9&4294967295|C>>>23))+((C=f+(t^i&(_^t))+u[3]+4107603335&4294967295)<<14&4294967295|C>>>18))+((C=i+(_^t&(f^_))+u[8]+1163531501&4294967295)<<20&4294967295|C>>>12))+((C=t+(f^_&(i^f))+u[13]+2850285829&4294967295)<<5&4294967295|C>>>27))+((C=_+(i^f&(t^i))+u[2]+4243563512&4294967295)<<9&4294967295|C>>>23))+((C=f+(t^i&(_^t))+u[7]+1735328473&4294967295)<<14&4294967295|C>>>18))+((C=i+(_^t&(f^_))+u[12]+2368359562&4294967295)<<20&4294967295|C>>>12))+((C=t+(i^f^_)+u[5]+4294588738&4294967295)<<4&4294967295|C>>>28))+((C=_+(t^i^f)+u[8]+2272392833&4294967295)<<11&4294967295|C>>>21))+((C=f+(_^t^i)+u[11]+1839030562&4294967295)<<16&4294967295|C>>>16))+((C=i+(f^_^t)+u[14]+4259657740&4294967295)<<23&4294967295|C>>>9))+((C=t+(i^f^_)+u[1]+2763975236&4294967295)<<4&4294967295|C>>>28))+((C=_+(t^i^f)+u[4]+1272893353&4294967295)<<11&4294967295|C>>>21))+((C=f+(_^t^i)+u[7]+4139469664&4294967295)<<16&4294967295|C>>>16))+((C=i+(f^_^t)+u[10]+3200236656&4294967295)<<23&4294967295|C>>>9))+((C=t+(i^f^_)+u[13]+681279174&4294967295)<<4&4294967295|C>>>28))+((C=_+(t^i^f)+u[0]+3936430074&4294967295)<<11&4294967295|C>>>21))+((C=f+(_^t^i)+u[3]+3572445317&4294967295)<<16&4294967295|C>>>16))+((C=i+(f^_^t)+u[6]+76029189&4294967295)<<23&4294967295|C>>>9))+((C=t+(i^f^_)+u[9]+3654602809&4294967295)<<4&4294967295|C>>>28))+((C=_+(t^i^f)+u[12]+3873151461&4294967295)<<11&4294967295|C>>>21))+((C=f+(_^t^i)+u[15]+530742520&4294967295)<<16&4294967295|C>>>16))+((C=i+(f^_^t)+u[2]+3299628645&4294967295)<<23&4294967295|C>>>9))+((C=t+(f^(i|~_))+u[0]+4096336452&4294967295)<<6&4294967295|C>>>26))+((C=_+(i^(t|~f))+u[7]+1126891415&4294967295)<<10&4294967295|C>>>22))+((C=f+(t^(_|~i))+u[14]+2878612391&4294967295)<<15&4294967295|C>>>17))+((C=i+(_^(f|~t))+u[5]+4237533241&4294967295)<<21&4294967295|C>>>11))+((C=t+(f^(i|~_))+u[12]+1700485571&4294967295)<<6&4294967295|C>>>26))+((C=_+(i^(t|~f))+u[3]+2399980690&4294967295)<<10&4294967295|C>>>22))+((C=f+(t^(_|~i))+u[10]+4293915773&4294967295)<<15&4294967295|C>>>17))+((C=i+(_^(f|~t))+u[1]+2240044497&4294967295)<<21&4294967295|C>>>11))+((C=t+(f^(i|~_))+u[8]+1873313359&4294967295)<<6&4294967295|C>>>26))+((C=_+(i^(t|~f))+u[15]+4264355552&4294967295)<<10&4294967295|C>>>22))+((C=f+(t^(_|~i))+u[6]+2734768916&4294967295)<<15&4294967295|C>>>17))+((C=i+(_^(f|~t))+u[13]+1309151649&4294967295)<<21&4294967295|C>>>11))+((_=(t=i+((C=t+(f^(i|~_))+u[4]+4149444226&4294967295)<<6&4294967295|C>>>26))+((C=_+(i^(t|~f))+u[11]+3174756917&4294967295)<<10&4294967295|C>>>22))^((f=_+((C=f+(t^(_|~i))+u[2]+718787259&4294967295)<<15&4294967295|C>>>17))|~t))+u[9]+3951481745&4294967295,l.g[0]=l.g[0]+t&4294967295,l.g[1]=l.g[1]+(f+(C<<21&4294967295|C>>>11))&4294967295,l.g[2]=l.g[2]+f&4294967295,l.g[3]=l.g[3]+_&4294967295}function Tr(l,t){this.h=t;for(var i=[],u=!0,f=l.length-1;0<=f;f--){var _=0|l[f];u&&_==t||(i[f]=_,u=!1)}this.g=i}(se=ur.prototype).Oa=function(l){this.M=l},se.ha=function(l,t,i,u){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+l);t=t?t.toUpperCase():"GET",this.I=l,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():Ke.g(),this.C=function he(l){return l.h||(l.h=l.i())}(this.u?this.u:Ke),this.g.onreadystatechange=lt(this.La,this);try{this.G=!0,this.g.open(t,String(l),!0),this.G=!1}catch(_){return void On(this,_)}if(l=i||"",i=new Map(this.headers),u)if(Object.getPrototypeOf(u)===Object.prototype)for(var f in u)i.set(f,u[f]);else{if("function"!=typeof u.keys||"function"!=typeof u.get)throw Error("Unknown input type for opt_headers: "+String(u));for(const _ of u.keys())i.set(_,u.get(_))}u=Array.from(i.keys()).find(_=>"content-type"==_.toLowerCase()),f=x.FormData&&l instanceof x.FormData,!(0<=ut(Jo,t))||u||f||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[_,C]of i)this.g.setRequestHeader(_,C);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{so(this),0<this.B&&((this.L=function os(l){return gn&&"number"==typeof l.t
1imeout&&void 0!==l.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=lt(this.ua,this)):this.A=Ce(this.ua,this.B,this)),this.v=!0,this.g.send(l),this.v=!1}catch(_){On(this,_)}},se.ua=function(){typeof z<"u"&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,V(this,"timeout"),this.abort(8))},se.abort=function(l){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=l||7,V(this,"complete"),V(this,"abort"),ko(this))},se.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),ko(this,!0)),ur.$.N.call(this)},se.La=function(){this.s||(this.G||this.v||this.l?So(this):this.kb())},se.kb=function(){So(this)},se.isActive=function(){return!!this.g},se.da=function(){try{return 2<J(this)?this.g.status:-1}catch{return-1}},se.ja=function(){try{return this.g?this.g.responseText:""}catch{return""}},se.Wa=function(l){if(this.g){var t=this.g.responseText;return l&&0==t.indexOf(l)&&(t=t.substring(l.length)),Hr(t)}},se.Ia=function(){return this.m},se.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(se=Hi.prototype).ra=8,se.H=1,se.Na=function(l){if(this.m)if(this.m=null,1==this.H){if(!l){this.W=Math.floor(1e5*Math.random()),l=this.W++;const f=new ht(this,this.l,l);let _=this.s;if(this.U&&(_?(_=ui(_),ri(_,this.U)):_=this.U),null!==this.o||this.O||(f.I=_,_=null),this.P)e:{for(var t=0,i=0;i<this.j.length;i++){var u=this.j[i];if(void 0===(u="__data__"in u.map&&"string"==typeof(u=u.map.__data__)?u.length:void 0))break;if(4096<(t+=u)){t=i;break e}if(4096===t||i===this.j.length-1){t=i+1;break e}}t=1e3}else t=1e3;t=Pn(this,f,t),zi(i=Co(this.I),"RID",l),zi(i,"CVER",22),this.F&&zi(i,"X-HTTP-Session-Id",this.F),Qt(this,i),_&&(this.O?t="headers="+encodeURIComponent(String(Se(_)))+"&"+t:this.o&&ln(i,this.o,_)),Rn(this.i,f),this.bb&&zi(i,"TYPE","init"),this.P?(zi(i,"$req",t),zi(i,"SID","null"),f.aa=!0,Mn(f,i,null)):Mn(f,i,t),this.H=2}}else 3==this.H&&(l?vt(this,l):0==this.j.length||Et(this.i)||vt(this))},se.Ma=function(){if(this.u=null,or(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var l=2*this.S;this.l.info("BP detection timer enabled: "+l),this.B=Ni(lt(this.jb,this),l)}},se.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Zi(10),qo(this),or(this))},se.ib=function(){null!=this.v&&(this.v=null,qo(this),ci(this),Zi(19))},se.pb=function(l){l?(this.l.info("Successfully pinged google.com"),Zi(2)):(this.l.info("Failed to ping google.com"),Zi(1))},se.isActive=function(){return!!this.h&&this.h.isActive(this)},(se=na.prototype).Ba=function(){},se.Aa=function(){},se.za=function(){},se.ya=function(){},se.isActive=function(){return!0},se.Va=function(){},Xo.prototype.g=function(l,t){return new ao(l,t)},Xt(ao,Ee),ao.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var l=this.g,t=this.l,i=this.h||void 0;Zi(0),l.Y=t,l.na=i||{},l.G=l.aa,l.I=Qo(l,null,l.Y),Me(l)},ao.prototype.close=function(){us(this.g)},ao.prototype.u=function(l){var t=this.g;if("string"==typeof l){var i={};i.__data__=l,l=i}else this.v&&((i={}).__data__=Tt(l),l=i);t.j.push(new class{constructor(l,t){this.g=l,this.map=t}}(t.fb++,l)),3==t.H&&Me(t)},ao.prototype.N=function(){this.g.h=null,delete this.j,us(this.g),delete this.g,ao.$.N.call(this)},Xt(xs,yt),Xt($a,Vt),Xt(Ra,na),Ra.prototype.Ba=function(){V(this.g,"a")},Ra.prototype.Aa=function(l){V(this.g,new xs(l))},Ra.prototype.za=function(l){V(this.g,new $a)},Ra.prototype.ya=function(){V(this.g,"b")},Xt(xo,function Eo(){this.blockSize=-1}),xo.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},xo.prototype.j=function(l,t){void 0===t&&(t=l.length);for(var i=t-this.blockSize,u=this.m,f=this.h,_=0;_<t;){if(0==f)for(;_<=i;)$r(this,l,_),_+=this.blockSize;if("string"==typeof l){for(;_<t;)if(u[f++]=l.charCodeAt(_++),f==this.blockSize){$r(this,u),f=0;break}}else for(;_<t;)if(u[f++]=l[_++],f==this.blockSize){$r(this,u),f=0;break}}this.h=f,this.i+=t},xo.prototype.l=function(){var l=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);l[0]=128;for(var t=1;t<l.length-8;++t)l[t]=0;var i=8*this.i;for(t=l.length-8;t<l.length;++t)l[t]=255&i,i/=256;for(this.j(l),l=Array(16),t=i=0;4>t;++t)for(var u=0;32>u;u+=8)l[i++]=this.g[t]>>>u&255;return l};var yl={};function Cl(l){return-128<=l&&128>l?function Vn(l,t){var i=yl;return Object.prototype.hasOwnProperty.call(i,l)?i[l]:i[l]=t(l)}(l,function(t){return new Tr([0|t],0>t?-1:0)}):new Tr([0|l],0>l?-1:0)}function zs(l){if(isNaN(l)||!isFinite(l))return pa;if(0>l)return No(zs(-l));for(var t=[],i=1,u=0;l>=i;u++)t[u]=l/i|0,i*=Na;return new Tr(t,0)}var Na=4294967296,pa=Cl(0),Vs=Cl(1),Ga=Cl(16777216);function Ns(l){if(0!=l.h)return!1;for(var t=0;t<l.g.length;t++)if(0!=l.g[t])return!1;return!0}function ws(l){return-1==l.h}function No(l){for(var t=l.g.length,i=[],u=0;u<t;u++)i[u]=~l.g[u];return new Tr(i,~l.h).add(Vs)}function qs(l,t){return l.add(No(t))}function ga(l,t){for(;(65535&l[t])!=l[t];)l[t+1]+=l[t]>>>16,l[t]&=65535,t++}function sl(l,t){this.g=l,this.h=t}function ya(l,t){if(Ns(t))throw Error("division by zero");if(Ns(l))return new sl(pa,pa);if(ws(l))return t=ya(No(l),t),new sl(No(t.g),No(t.h));if(ws(t))return t=ya(l,No(t)),new sl(No(t.g),t.h);if(30<l.g.length){if(ws(l)||ws(t))throw Error("slowDivide_ only works with positive integers.");for(var i=Vs,u=t;0>=u.X(l);)i=wo(i),u=wo(u);var f=Ca(i,1),_=Ca(u,1);for(u=Ca(u,2),i=Ca(i,2);!Ns(u);
1){var C=_.add(u);0>=C.X(l)&&(f=f.add(i),_=C),u=Ca(u,1),i=Ca(i,1)}return t=qs(l,f.R(t)),new sl(f,t)}for(f=pa;0<=l.X(t);){for(i=Math.max(1,Math.floor(l.ea()/t.ea())),u=48>=(u=Math.ceil(Math.log(i)/Math.LN2))?1:Math.pow(2,u-48),C=(_=zs(i)).R(t);ws(C)||0<C.X(l);)C=(_=zs(i-=u)).R(t);Ns(_)&&(_=Vs),f=f.add(_),l=qs(l,C)}return new sl(f,l)}function wo(l){for(var t=l.g.length+1,i=[],u=0;u<t;u++)i[u]=l.D(u)<<1|l.D(u-1)>>>31;return new Tr(i,l.h)}function Ca(l,t){var i=t>>5;t%=32;for(var u=l.g.length-i,f=[],_=0;_<u;_++)f[_]=0<t?l.D(_+i)>>>t|l.D(_+i+1)<<32-t:l.D(_+i);return new Tr(f,l.h)}(se=Tr.prototype).ea=function(){if(ws(this))return-No(this).ea();for(var l=0,t=1,i=0;i<this.g.length;i++){var u=this.D(i);l+=(0<=u?u:Na+u)*t,t*=Na}return l},se.toString=function(l){if(2>(l=l||10)||36<l)throw Error("radix out of range: "+l);if(Ns(this))return"0";if(ws(this))return"-"+No(this).toString(l);for(var t=zs(Math.pow(l,6)),i=this,u="";;){var f=ya(i,t).g,_=((0<(i=qs(i,f.R(t))).g.length?i.g[0]:i.h)>>>0).toString(l);if(Ns(i=f))return _+u;for(;6>_.length;)_="0"+_;u=_+u}},se.D=function(l){return 0>l?0:l<this.g.length?this.g[l]:this.h},se.X=function(l){return ws(l=qs(this,l))?-1:Ns(l)?0:1},se.abs=function(){return ws(this)?No(this):this},se.add=function(l){for(var t=Math.max(this.g.length,l.g.length),i=[],u=0,f=0;f<=t;f++){var _=u+(65535&this.D(f))+(65535&l.D(f)),C=(_>>>16)+(this.D(f)>>>16)+(l.D(f)>>>16);u=C>>>16,i[f]=(C&=65535)<<16|(_&=65535)}return new Tr(i,-2147483648&i[i.length-1]?-1:0)},se.R=function(l){if(Ns(this)||Ns(l))return pa;if(ws(this))return ws(l)?No(this).R(No(l)):No(No(this).R(l));if(ws(l))return No(this.R(No(l)));if(0>this.X(Ga)&&0>l.X(Ga))return zs(this.ea()*l.ea());for(var t=this.g.length+l.g.length,i=[],u=0;u<2*t;u++)i[u]=0;for(u=0;u<this.g.length;u++)for(var f=0;f<l.g.length;f++){var _=this.D(u)>>>16,C=65535&this.D(u),F=l.D(f)>>>16,K=65535&l.D(f);i[2*u+2*f]+=C*K,ga(i,2*u+2*f),i[2*u+2*f+1]+=_*K,ga(i,2*u+2*f+1),i[2*u+2*f+1]+=C*F,ga(i,2*u+2*f+1),i[2*u+2*f+2]+=_*F,ga(i,2*u+2*f+2)}for(u=0;u<t;u++)i[u]=i[2*u+1]<<16|i[2*u];for(u=t;u<2*t;u++)i[u]=0;return new Tr(i,0)},se.gb=function(l){return ya(this,l).h},se.and=function(l){for(var t=Math.max(this.g.length,l.g.length),i=[],u=0;u<t;u++)i[u]=this.D(u)&l.D(u);return new Tr(i,this.h&l.h)},se.or=function(l){for(var t=Math.max(this.g.length,l.g.length),i=[],u=0;u<t;u++)i[u]=this.D(u)|l.D(u);return new Tr(i,this.h|l.h)},se.xor=function(l){for(var t=Math.max(this.g.length,l.g.length),i=[],u=0;u<t;u++)i[u]=this.D(u)^l.D(u);return new Tr(i,this.h^l.h)},Xo.prototype.createWebChannel=Xo.prototype.g,ao.prototype.send=ao.prototype.u,ao.prototype.open=ao.prototype.m,ao.prototype.close=ao.prototype.close,jr.NO_ERROR=0,jr.TIMEOUT=8,jr.HTTP_ERROR=6,Xr.COMPLETE="complete",ne.EventType=Ne,Ne.OPEN="a",Ne.CLOSE="b",Ne.ERROR="c",Ne.MESSAGE="d",Ee.prototype.listen=Ee.prototype.O,ur.prototype.listenOnce=ur.prototype.P,ur.prototype.getLastError=ur.prototype.Sa,ur.prototype.getLastErrorCode=ur.prototype.Ia,ur.prototype.getStatus=ur.prototype.da,ur.prototype.getResponseJson=ur.prototype.Wa,ur.prototype.getResponseText=ur.prototype.ja,ur.prototype.send=ur.prototype.ha,ur.prototype.setWithCredentials=ur.prototype.Oa,xo.prototype.digest=xo.prototype.l,xo.prototype.reset=xo.prototype.reset,xo.prototype.update=xo.prototype.j,Tr.prototype.add=Tr.prototype.add,Tr.prototype.multiply=Tr.prototype.R,Tr.prototype.modulo=Tr.prototype.gb,Tr.prototype.compare=Tr.prototype.X,Tr.prototype.toNumber=Tr.prototype.ea,Tr.prototype.toString=Tr.prototype.toString,Tr.prototype.getBits=Tr.prototype.D,Tr.fromNumber=zs,Tr.fromString=function dc(l,t){if(0==l.length)throw Error("number format error: empty string");if(2>(t=t||10)||36<t)throw Error("radix out of range: "+t);if("-"==l.charAt(0))return No(dc(l.substring(1),t));if(0<=l.indexOf("-"))throw Error('number format error: interior "-" character');for(var i=zs(Math.pow(t,8)),u=pa,f=0;f<l.length;f+=8){var _=Math.min(8,l.length-f),C=parseInt(l.substring(f,f+_),t);8>_?(_=zs(Math.pow(t,_)),u=u.R(_).add(zs(C))):u=(u=u.R(i)).add(zs(C))}return u};var ma=Te.createWebChannelTransport=function(){return new Xo},B=Te.getStatEventTarget=function(){return Ai()},oe=Te.ErrorCode=jr,$=Te.EventType=Xr,Ae=Te.Event=ti,Pt=Te.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},dn=Te.FetchXmlHttpFactory=nr,En=Te.WebChannel=ne,xi=Te.XhrIo=ur,Nr=Te.Md5=xo,Xi=Te.Integer=Tr;const yr="@firebase/firestore";class Ei{constructor(t){this.uid=t}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(t){return t.uid===this.uid}}
1Ei.UNAUTHENTICATED=new Ei(null),Ei.GOOGLE_CREDENTIALS=new Ei("google-credentials-uid"),Ei.FIRST_PARTY=new Ei("first-party-uid"),Ei.MOCK_USER=new Ei("mock-user");let Pr="9.23.0";const er=new me.Yd("@firebase/firestore");function lo(){return er.logLevel}function ia(l){er.setLogLevel(l)}function In(l,...t){if(er.logLevel<=me.in.DEBUG){const i=t.map(xa);er.debug(`Firestore (${Pr}): ${l}`,...i)}}function zr(l,...t){if(er.logLevel<=me.in.ERROR){const i=t.map(xa);er.error(`Firestore (${Pr}): ${l}`,...i)}}function Mr(l,...t){if(er.logLevel<=me.in.WARN){const i=t.map(xa);er.warn(`Firestore (${Pr}): ${l}`,...i)}}function xa(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function si(l="Unexpected state"){const t=`FIRESTORE (${Pr}) INTERNAL ASSERTION FAILED: `+l;throw zr(t),new Error(t)}function _i(l,t){l||si()}function Ms(l,t){l||si()}function ii(l,t){return l}const Jt={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Sn extends ve.ZR{constructor(t,i){super(t,i),this.code=t,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class To{constructor(){this.promise=new Promise((t,i)=>{this.resolve=t,this.reject=i})}}class al{constructor(t,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${t}`)}}class zc{getToken(){return Promise.resolve(null)}invalidateToken(){}start(t,i){t.enqueueRetryable(()=>i(Ei.UNAUTHENTICATED))}shutdown(){}}class hc{constructor(t){this.token=t,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(t,i){this.changeListener=i,t.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class fc{constructor(t){this.t=t,this.currentUser=Ei.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(t,i){var u=this;let f=this.i;const _=re=>this.i!==f?(f=this.i,i(re)):Promise.resolve();let C=new To;this.o=()=>{this.i++,this.currentUser=this.u(),C.resolve(),C=new To,t.enqueueRetryable(()=>_(this.currentUser))};const F=()=>{const re=C;t.enqueueRetryable((0,g.Z)(function*(){yield re.promise,yield _(u.currentUser)}))},K=re=>{In("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=re,this.auth.addAuthTokenListener(this.o),F()};this.t.onInit(re=>K(re)),setTimeout(()=>{if(!this.auth){const re=this.t.getImmediate({optional:!0});re?K(re):(In("FirebaseAuthCredentialsProvider","Auth not yet detected"),C.resolve(),C=new To)}},0),F()}getToken(){const t=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(u=>this.i!==t?(In("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):u?(_i("string"==typeof u.accessToken),new al(u.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const t=this.auth&&this.auth.getUid();return _i(null===t||"string"==typeof t),new Ei(t)}}class go{constructor(t,i,u){this.h=t,this.l=i,this.m=u,this.type="FirstParty",this.user=Ei.FIRST_PARTY,this.g=new Map}p(){return this.m?this.m():null}get headers(){this.g.set("X-Goog-AuthUser",this.h);const t=this.p();return t&&this.g.set("Authorization",t),this.l&&this.g.set("X-Goog-Iam-Authorization-Token",this.l),this.g}}class Fa{constructor(t,i,u){this.h=t,this.l=i,this.m=u}getToken(){return Promise.resolve(new go(this.h,this.l,this.m))}start(t,i){t.enqueueRetryable(()=>i(Ei.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class wa{constructor(t){this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class S{constructor(t){this.I=t,this.forceRefresh=!1,this.appCheck=null,this.T=null}start(t,i){const u=_=>{null!=_.error&&In("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${_.error.message}`);const C=_.token!==this.T;return this.T=_.token,In("FirebaseAppCheckTokenProvider",`Received ${C?"new":"existing"} token.`),C?i(_.token):Promise.resolve()};this.o=_=>{t.enqueueRetryable(()=>u(_))};const f=_=>{In("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=_,this.appCheck.addTokenListener(this.o)};this.I.onInit(_=>f(_)),setTimeout(()=>{if(!this.appCheck){const _=this.I.getImmediate({optional:!0});_?f(_):In("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then(i=>
1i?(_i("string"==typeof i.token),this.T=i.token,new wa(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ee(l){const t=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(i);else for(let u=0;u<l;u++)i[u]=Math.floor(256*Math.random());return i}class He{static A(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=Math.floor(256/t.length)*t.length;let u="";for(;u.length<20;){const f=ee(40);for(let _=0;_<f.length;++_)u.length<20&&f[_]<i&&(u+=t.charAt(f[_]%t.length))}return u}}function Rt(l,t){return l<t?-1:l>t?1:0}function Un(l,t,i){return l.length===t.length&&l.every((u,f)=>i(u,t[f]))}function tr(l){return l+"\0"}class Oi{constructor(t,i){if(this.seconds=t,this.nanoseconds=i,i<0)throw new Sn(Jt.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Sn(Jt.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(t<-62135596800)throw new Sn(Jt.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Sn(Jt.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}static now(){return Oi.fromMillis(Date.now())}static fromDate(t){return Oi.fromMillis(t.getTime())}static fromMillis(t){const i=Math.floor(t/1e3),u=Math.floor(1e6*(t-1e3*i));return new Oi(i,u)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(t){return this.seconds===t.seconds?Rt(this.nanoseconds,t.nanoseconds):Rt(this.seconds,t.seconds)}isEqual(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class Kn{constructor(t){this.timestamp=t}static fromTimestamp(t){return new Kn(t)}static min(){return new Kn(new Oi(0,0))}static max(){return new Kn(new Oi(253402300799,999999999))}compareTo(t){return this.timestamp._compareTo(t.timestamp)}isEqual(t){return this.timestamp.isEqual(t.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class ss{constructor(t,i,u){void 0===i?i=0:i>t.length&&si(),void 0===u?u=t.length-i:u>t.length-i&&si(),this.segments=t,this.offset=i,this.len=u}get length(){return this.len}isEqual(t){return 0===ss.comparator(this,t)}child(t){const i=this.segments.slice(this.offset,this.limit());return t instanceof ss?t.forEach(u=>{i.push(u)}):i.push(t),this.construct(i)}limit(){return this.offset+this.length}popFirst(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(t){return this.segments[this.offset+t]}isEmpty(){return 0===this.length}isPrefixOf(t){if(t.length<this.length)return!1;for(let i=0;i<this.length;i++)if(this.get(i)!==t.get(i))return!1;return!0}isImmediateParentOf(t){if(this.length+1!==t.length)return!1;for(let i=0;i<this.length;i++)if(this.get(i)!==t.get(i))return!1;return!0}forEach(t){for(let i=this.offset,u=this.limit();i<u;i++)t(this.segments[i])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(t,i){const u=Math.min(t.length,i.length);for(let f=0;f<u;f++){const _=t.get(f),C=i.get(f);if(_<C)return-1;if(_>C)return 1}return t.length<i.length?-1:t.length>i.length?1:0}}class Gi extends ss{construct(t,i,u){return new Gi(t,i,u)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(...t){const i=[];for(const u of t){if(u.indexOf("//")>=0)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid segment (${u}). Paths must not contain // in them.`);i.push(...u.split("/").filter(f=>f.length>0))}return new Gi(i)}static emptyPath(){return new Gi([])}}const pc=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Kr extends ss{construct(t,i,u){return new Kr(t,i,u)}static isValidIdentifier(t){return pc.test(t)}canonicalString(){return this.toArray().map(t=>(t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Kr.isValidIdentifier(t)||(t="`"+t+"`"),t)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Kr(["__name__"])}static fromServerFormat(t){const i=[];let u="",f=0;const _=()=>{if(0===u.length)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(u),u=""};let C=!1;for(;f<t.length;){const F=t[f];if("\\"===F){if(f+1===t.length)throw new Sn(Jt.INVALID_ARGUMENT,"Path has trailing escape character: "+t);const K=t[f+1];if("\\"!==K&&"."!==K&&"`"!==K)throw new Sn(Jt.INVALID_ARGUMENT,"Path has invali
1d escape sequence: "+t);u+=K,f+=2}else"`"===F?(C=!C,f++):"."!==F||C?(u+=F,f++):(_(),f++)}if(_(),C)throw new Sn(Jt.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new Kr(i)}static emptyPath(){return new Kr([])}}class Qn{constructor(t){this.path=t}static fromPath(t){return new Qn(Gi.fromString(t))}static fromName(t){return new Qn(Gi.fromString(t).popFirst(5))}static empty(){return new Qn(Gi.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(t){return null!==t&&0===Gi.comparator(this.path,t.path)}toString(){return this.path.toString()}static comparator(t,i){return Gi.comparator(t.path,i.path)}static isDocumentKey(t){return t.length%2==0}static fromSegments(t){return new Qn(new Gi(t.slice()))}}class js{constructor(t,i,u,f){this.indexId=t,this.collectionGroup=i,this.fields=u,this.indexState=f}}function Vc(l){return l.fields.find(t=>2===t.kind)}function xl(l){return l.fields.filter(t=>2!==t.kind)}js.UNKNOWN_ID=-1;class gc{constructor(t,i){this.fieldPath=t,this.kind=i}}class Iu{constructor(t,i){this.sequenceNumber=t,this.offset=i}static empty(){return new Iu(0,Da.min())}}function kd(l,t){const i=l.toTimestamp().seconds,u=l.toTimestamp().nanoseconds+1,f=Kn.fromTimestamp(1e9===u?new Oi(i+1,0):new Oi(i,u));return new Da(f,Qn.empty(),t)}function Rd(l){return new Da(l.readTime,l.key,-1)}class Da{constructor(t,i,u){this.readTime=t,this.documentKey=i,this.largestBatchId=u}static min(){return new Da(Kn.min(),Qn.empty(),-1)}static max(){return new Da(Kn.max(),Qn.empty(),-1)}}function yp(l,t){let i=l.readTime.compareTo(t.readTime);return 0!==i?i:(i=Qn.comparator(l.documentKey,t.documentKey),0!==i?i:Rt(l.largestBatchId,t.largestBatchId))}const wl="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Cp{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(t){this.onCommittedListeners.push(t)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(t=>t())}}function Ml(l){return es.apply(this,arguments)}function es(){return es=(0,g.Z)(function*(l){if(l.code!==Jt.FAILED_PRECONDITION||l.message!==wl)throw l;In("LocalStore","Unexpectedly lost primary lease")}),es.apply(this,arguments)}class rn{constructor(t){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(t){return this.next(void 0,t)}next(t,i){return this.callbackAttached&&si(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(t,this.result):new rn((u,f)=>{this.nextCallback=_=>{this.wrapSuccess(t,_).next(u,f)},this.catchCallback=_=>{this.wrapFailure(i,_).next(u,f)}})}toPromise(){return new Promise((t,i)=>{this.next(t,i)})}wrapUserFunction(t){try{const i=t();return i instanceof rn?i:rn.resolve(i)}catch(i){return rn.reject(i)}}wrapSuccess(t,i){return t?this.wrapUserFunction(()=>t(i)):rn.resolve(i)}wrapFailure(t,i){return t?this.wrapUserFunction(()=>t(i)):rn.reject(i)}static resolve(t){return new rn((i,u)=>{i(t)})}static reject(t){return new rn((i,u)=>{u(t)})}static waitFor(t){return new rn((i,u)=>{let f=0,_=0,C=!1;t.forEach(F=>{++f,F.next(()=>{++_,C&&_===f&&i()},K=>u(K))}),C=!0,_===f&&i()})}static or(t){let i=rn.resolve(!1);for(const u of t)i=i.next(f=>f?rn.resolve(f):u());return i}static forEach(t,i){const u=[];return t.forEach((f,_)=>{u.push(i.call(this,f,_))}),this.waitFor(u)}static mapArray(t,i){return new rn((u,f)=>{const _=t.length,C=new Array(_);let F=0;for(let K=0;K<_;K++){const re=K;i(t[re]).next(Be=>{C[re]=Be,++F,F===_&&u(C)},Be=>f(Be))}})}static doWhile(t,i){return new rn((u,f)=>{const _=()=>{!0===t()?i().next(()=>{_()},f):u()};_()})}}class El{constructor(t,i){this.action=t,this.transaction=i,this.aborted=!1,this.v=new To,this.transaction.oncomplete=()=>{this.v.resolve()},this.transaction.onabort=()=>{i.error?this.v.reject(new ds(t,i.error)):this.v.resolve()},this.transaction.onerror=u=>{const f=ku(u.target.error);this.v.reject(new ds(t,f))}}static open(t,i,u,f){try{return new El(i,t.transaction(f,u))}catch(_){throw new ds(i,_)}}get R(){return this.v.promise}abort(t){t&&this.v.reject(t),this.aborted||(In("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}P(){const t=this.transaction;this.aborted||"function"!=typeof t.commit||t.commit()}store(t){const i=this.transaction.objectStore(t);return new Su(i)}}class Wa{constructor(t,i,u){this.name=t,this.version=i,this.V=u,12.2===Wa.S((0,ve.z$)())&&zr("Firestore persistence suffers from a bug in
1iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(t){return In("SimpleDb","Removing database:",t),_a(window.indexedDB.deleteDatabase(t)).toPromise()}static D(){if(!(0,ve.hl)())return!1;if(Wa.C())return!0;const t=(0,ve.z$)(),i=Wa.S(t),u=0<i&&i<10,f=Wa.N(t),_=0<f&&f<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||u||_)}static C(){var t;return typeof process<"u"&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.k)}static M(t,i){return t.store(i)}static S(t){const i=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),u=i?i[1].split("_").slice(0,2).join("."):"-1";return Number(u)}static N(t){const i=t.match(/Android ([\d.]+)/i),u=i?i[1].split(".").slice(0,2).join("."):"-1";return Number(u)}$(t){var i=this;return(0,g.Z)(function*(){return i.db||(In("SimpleDb","Opening database:",i.name),i.db=yield new Promise((u,f)=>{const _=indexedDB.open(i.name,i.version);_.onsuccess=C=>{u(C.target.result)},_.onblocked=()=>{f(new ds(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},_.onerror=C=>{const F=C.target.error;f("VersionError"===F.name?new Sn(Jt.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):"InvalidStateError"===F.name?new Sn(Jt.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+F):new ds(t,F))},_.onupgradeneeded=C=>{In("SimpleDb",'Database "'+i.name+'" requires upgrade from version:',C.oldVersion),i.V.O(C.target.result,_.transaction,C.oldVersion,i.version).next(()=>{In("SimpleDb","Database upgrade to version "+i.version+" complete")})}})),i.F&&(i.db.onversionchange=u=>i.F(u)),i.db})()}B(t){this.F=t,this.db&&(this.db.onversionchange=i=>t(i))}runTransaction(t,i,u,f){var _=this;return(0,g.Z)(function*(){const C="readonly"===i;let F=0;for(;;){++F;try{_.db=yield _.$(t);const K=El.open(_.db,t,C?"readonly":"readwrite",u),re=f(K).next(Be=>(K.P(),Be)).catch(Be=>(K.abort(Be),rn.reject(Be))).toPromise();return re.catch(()=>{}),yield K.R,re}catch(K){const re=K,Be="FirebaseError"!==re.name&&F<3;if(In("SimpleDb","Transaction failed with error:",re.message,"Retrying:",Be),_.close(),!Be)return Promise.reject(re)}}})()}close(){this.db&&this.db.close(),this.db=void 0}}class qc{constructor(t){this.L=t,this.q=!1,this.U=null}get isDone(){return this.q}get K(){return this.U}set cursor(t){this.L=t}done(){this.q=!0}G(t){this.U=t}delete(){return _a(this.L.delete())}}class ds extends Sn{constructor(t,i){super(Jt.UNAVAILABLE,`IndexedDB transaction '${t}' failed: ${i}`),this.name="IndexedDbTransactionError"}}function hs(l){return"IndexedDbTransactionError"===l.name}class Su{constructor(t){this.store=t}put(t,i){let u;return void 0!==i?(In("SimpleDb","PUT",this.store.name,t,i),u=this.store.put(i,t)):(In("SimpleDb","PUT",this.store.name,"<auto-key>",t),u=this.store.put(t)),_a(u)}add(t){return In("SimpleDb","ADD",this.store.name,t,t),_a(this.store.add(t))}get(t){return _a(this.store.get(t)).next(i=>(void 0===i&&(i=null),In("SimpleDb","GET",this.store.name,t,i),i))}delete(t){return In("SimpleDb","DELETE",this.store.name,t),_a(this.store.delete(t))}count(){return In("SimpleDb","COUNT",this.store.name),_a(this.store.count())}j(t,i){const u=this.options(t,i);if(u.index||"function"!=typeof this.store.getAll){const f=this.cursor(u),_=[];return this.W(f,(C,F)=>{_.push(F)}).next(()=>_)}{const f=this.store.getAll(u.range);return new rn((_,C)=>{f.onerror=F=>{C(F.target.error)},f.onsuccess=F=>{_(F.target.result)}})}}H(t,i){const u=this.store.getAll(t,null===i?void 0:i);return new rn((f,_)=>{u.onerror=C=>{_(C.target.error)},u.onsuccess=C=>{f(C.target.result)}})}J(t,i){In("SimpleDb","DELETE ALL",this.store.name);const u=this.options(t,i);u.Y=!1;const f=this.cursor(u);return this.W(f,(_,C,F)=>F.delete())}X(t,i){let u;i?u=t:(u={},i=t);const f=this.cursor(u);return this.W(f,i)}Z(t){const i=this.cursor({});return new rn((u,f)=>{i.onerror=_=>{const C=ku(_.target.error);f(C)},i.onsuccess=_=>{const C=_.target.result;C?t(C.primaryKey,C.value).next(F=>{F?C.continue():u()}):u()}})}W(t,i){const u=[];return new rn((f,_)=>{t.onerror=C=>{_(C.target.error)},t.onsuccess=C=>{const F=C.target.result;if(!F)return void f();const K=new qc(F),re=i(F.primaryKey,F.value,K);if(re instanceof rn){const Be=re.catch(_t=>(K.done(),rn.reject(_t)));u.push(Be)}K.isDone?f():null===K.K?F.continue():F.continue(K.K)}}).next(()=>rn.waitFor(u))}options(t,i){let u;return void 0!==t&&("string"==typeof t?u=t:i=t),{index:u,range:i}}cursor(t){let i="next";if(t.reverse&&(i="prev"),t.index){const u=this.store.index(t.index);return t.Y?u.openKeyCursor(t.range,i):u.openCursor(t.range,i)}return this.store.openCursor(t.range,i)}}function _a(l){return new rn((t,i)=>{l.onsuccess=u=>{t(u.target.result)},l.onerror=u=>{const f=ku(u.target.error);i(f)}})}let Ma=!1;function ku(l){const t=Wa.S((0,ve.z$)());if(t>=12.2&&t<13){const i="An internal error was encountered in the Indexed Database server";if(l.message.indexOf(i)>=0){const u=new Sn("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${i}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return Ma||(Ma=!0,setTimeout(()=>{throw u},0)),u}}return l}class I{constructor(t,i){this.asyncQueue=t,this.tt=i,this.task=null}start(){this.et(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}et(t){var i=this;In("IndexBackiller",`Scheduled in ${t}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",t,(0,g.Z)(function*(){i.task=null;try{In("IndexBackiller",`Documents written: ${yield i.tt.nt()}`)}catch(u){hs(u)?In("IndexBackiller","Ignoring IndexedDB error during index backfill: ",u):yield Ml(u)}yield i.et(6e4)}))}}class k{constructor(t,i){this.localStore=t,this.persistence=i}nt(){var t=this;return(0,g.Z)(function*(i=50){return t.persistence.runTransaction("Backfill Indexes","readwrite-primary",u=>t.st(u,i))}).apply(this,arguments)}st(t,i){const u=new Set;let f=i,_=!0;
1return rn.doWhile(()=>!0===_&&f>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(t).next(C=>{if(null!==C&&!u.has(C))return In("IndexBackiller",`Processing collection: ${C}`),this.it(t,C,f).next(F=>{f-=F,u.add(C)});_=!1})).next(()=>i-f)}it(t,i,u){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(t,i).next(f=>this.localStore.localDocuments.getNextDocuments(t,i,f,u).next(_=>{const C=_.changes;return this.localStore.indexManager.updateIndexEntries(t,C).next(()=>this.rt(f,_)).next(F=>(In("IndexBackiller",`Updating offset: ${F}`),this.localStore.indexManager.updateCollectionGroup(t,i,F))).next(()=>C.size)}))}rt(t,i){let u=t;return i.changes.forEach((f,_)=>{const C=Rd(_);yp(C,u)>0&&(u=C)}),new Da(u.readTime,u.documentKey,Math.max(i.batchId,t.largestBatchId))}}let T=(()=>{class l{constructor(i,u){this.previousValue=i,u&&(u.sequenceNumberHandler=f=>this.ot(f),this.ut=f=>u.writeSequenceNumber(f))}ot(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.ut&&this.ut(i),i}}return l.ct=-1,l})();function j(l){return null==l}function Y(l){return 0===l&&1/l==-1/0}function Pe(l){return"number"==typeof l&&Number.isInteger(l)&&!Y(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}function rt(l){let t="";for(let i=0;i<l.length;i++)t.length>0&&(t=yn(t)),t=Ct(l.get(i),t);return yn(t)}function Ct(l,t){let i=t;const u=l.length;for(let f=0;f<u;f++){const _=l.charAt(f);switch(_){case"\0":i+="\x01\x10";break;case"\x01":i+="\x01\x11";break;default:i+=_}}return i}function yn(l){return l+"\x01\x01"}function $n(l){const t=l.length;if(_i(t>=2),2===t)return _i("\x01"===l.charAt(0)&&"\x01"===l.charAt(1)),Gi.emptyPath();const i=t-2,u=[];let f="";for(let _=0;_<t;){const C=l.indexOf("\x01",_);switch((C<0||C>i)&&si(),l.charAt(C+1)){case"\x01":const F=l.substring(_,C);let K;0===f.length?K=F:(f+=F,K=f,f=""),u.push(K);break;case"\x10":f+=l.substring(_,C),f+="\0";break;case"\x11":f+=l.substring(_,C+1);break;default:si()}_=C+2}return new Gi(u)}const gr=["userId","batchId"];function Ci(l,t){return[l,rt(t)]}function Yr(l,t,i){return[l,rt(t),i]}const Fs={},Ea=["prefixPath","collectionGroup","readTime","documentId"],hr=["prefixPath","collectionGroup","documentId"],va=["collectionGroup","readTime","prefixPath","documentId"],Tl=["canonicalId","targetId"],jc=["targetId","path"],Ri=["path","targetId"],ra=["collectionId","parent"],ll=["indexId","uid"],Nd=["uid","sequenceNumber"],xp=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],cn=["indexId","uid","orderedDocumentKey"],Vl=["userId","collectionPath","documentId"],Hc=["userId","collectionPath","largestBatchId"],$c=["userId","collectionGroup","largestBatchId"],Fd=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],fs=[...Fd,"documentOverlays"],Ld=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],Ud=Ld,ql=[...Ud,"indexConfiguration","indexState","indexEntries"];class La extends Cp{constructor(t,i){super(),this.ht=t,this.currentSequenceNumber=i}}function Hs(l,t){const i=ii(l);return Wa.M(i.ht,t)}function jl(l){let t=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&t++;return t}function Hl(l,t){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&t(i,l[i])}function Zd(l){for(const t in l)if(Object.prototype.hasOwnProperty.call(l,t))return!1;return!0}class Jr{constructor(t,i){this.comparator=t,this.root=i||jo.EMPTY}insert(t,i){return new Jr(this.comparator,this.root.insert(t,i,this.comparator).copy(null,null,jo.BLACK,null,null))}remove(t){return new Jr(this.comparator,this.root.remove(t,this.comparator).copy(null,null,jo.BLACK,null,null))}get(t){let i=this.root;for(;!i.isEmpty();){const u=this.comparator(t,i.key);if(0===u)return i.value;u<0?i=i.left:u>0&&(i=i.right)}return null}indexOf(t){let i=0,u=this.root;for(;!u.isEmpty();){const f=this.comparator(t,u.key);if(0===f)return i+u.left.size;f<0?u=u.left:(i+=u.left.size+1,u=u.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(t){return this.root.inorderTraversal(t)}forEach(t){this.inorderTraversal((i,u)=>(t(i,u),!1))}toString(){const t=[];return this.inorderTraversal((i,u)=>(t.push(`${i}:${u}`),!1)),`{${t.join(", ")}}`}reverseTraversal(t){return this.root.reverseTraversal(t)}getIterator(){return new mc(this.root,null,this.comparator,!1)}getIteratorFrom(t){return new mc(this.root,t,this.comparator,!1)}getReverseIterator(){return new mc(this.root,null,this.comparator,!0)}getReverseIteratorFrom(t){return new mc(this.root,t,this.comparator,!0)}}class mc{constructor(t,i,u,f){this.isReverse=f,this.nodeStack=[];let _=1;for(;!t.isEmpty();)if(_=i?u(t.key,i):1,i&&f&&(_*=-1),_<0)t=this.isReverse?t.left:t.right;else{if(0===_){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}getNext(){let t=this.nodeStack.pop();const i={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}}}class jo{constructor(t,i,u,f,_){this.key=t,this.value=i,this.color=u??jo.RED,this.left=f??jo.EMPTY,this.right=_??jo.EMPTY,this.size=this.left.size+1+this.right.size}copy(t,i,u,f,_){return new jo(t??this.key,i??this.value,u??this.color,f??this.left,_??this.right)}isEmpty(){return!1}inorderTraversal(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)}reverseTraversal(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(t,i,u){let f=this;const _=u(t,f.key);return f=_<0?f.copy(null,null,null,f.left.insert(t,i,u),null):0===_?f.copy(null,i,null,null,null):f.copy(null,null,null,null,f.right.insert(t,i,u)),f.fixUp()}removeMin(){if(this.left.isEmpty())return jo.EMPTY;let t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),t=t.copy(null,null,null,t.left.removeMin(),null),t.fixUp()}remove(t,i){let u,f=this;
vendor: 1,582 bytes, line 1
1if(i(t,f.key)<0)f.left.isEmpty()||f.left.isRed()||f.left.left.isRed()||(f=f.moveRedLeft()),f=f.copy(null,null,null,f.left.remove(t,i),null);else{if(f.left.isRed()&&(f=f.rotateRight()),f.right.isEmpty()||f.right.isRed()||f.right.left.isRed()||(f=f.moveRedRight()),0===i(t,f.key)){if(f.right.isEmpty())return jo.EMPTY;u=f.right.min(),f=f.copy(u.key,u.value,null,null,f.right.removeMin())}f=f.copy(null,null,null,null,f.right.remove(t,i))}return f.fixUp()}isRed(){return this.color}fixUp(){let t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t}moveRedLeft(){let t=this.colorFlip();return t.right.left.isRed()&&(t=t.copy(null,null,null,null,t.right.rotateRight()),t=t.rotateLeft(),t=t.colorFlip()),t}moveRedRight(){let t=this.colorFlip();return t.left.left.isRed()&&(t=t.rotateRight(),t=t.colorFlip()),t}rotateLeft(){const t=this.copy(null,null,jo.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight(){const t=this.copy(null,null,jo.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip(){const t=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,i)}checkMaxDepth(){const t=this.check();return Math.pow(2,t)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw si();const t=this.left.check();if(t!==this.right.check())throw si();return t+(this.isRed()?0:1)}}
1jo.EMPTY=null,jo.RED=!0,jo.BLACK=!1,jo.EMPTY=new class{constructor(){this.size=0}get key(){throw si()}get value(){throw si()}get color(){throw si()}get left(){throw si()}get right(){throw si()}copy(l,t,i,u,f){return this}insert(l,t,i){return new jo(l,t)}remove(l,t){return this}isEmpty(){return!0}inorderTraversal(l){return!1}reverseTraversal(l){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Oo{constructor(t){this.comparator=t,this.data=new Jr(this.comparator)}has(t){return null!==this.data.get(t)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(t){return this.data.indexOf(t)}forEach(t){this.data.inorderTraversal((i,u)=>(t(i),!1))}forEachInRange(t,i){const u=this.data.getIteratorFrom(t[0]);for(;u.hasNext();){const f=u.getNext();if(this.comparator(f.key,t[1])>=0)return;i(f.key)}}forEachWhile(t,i){let u;for(u=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();u.hasNext();)if(!t(u.getNext().key))return}firstAfterOrEqual(t){const i=this.data.getIteratorFrom(t);return i.hasNext()?i.getNext().key:null}getIterator(){return new Bd(this.data.getIterator())}getIteratorFrom(t){return new Bd(this.data.getIteratorFrom(t))}add(t){return this.copy(this.data.remove(t).insert(t,!0))}delete(t){return this.has(t)?this.copy(this.data.remove(t)):this}isEmpty(){return this.data.isEmpty()}unionWith(t){let i=this;return i.size<t.size&&(i=t,t=this),t.forEach(u=>{i=i.add(u)}),i}isEqual(t){if(!(t instanceof Oo)||this.size!==t.size)return!1;const i=this.data.getIterator(),u=t.data.getIterator();for(;i.hasNext();){const f=i.getNext().key,_=u.getNext().key;if(0!==this.comparator(f,_))return!1}return!0}toArray(){const t=[];return this.forEach(i=>{t.push(i)}),t}toString(){const t=[];return this.forEach(i=>t.push(i)),"SortedSet("+t.toString()+")"}copy(t){const i=new Oo(this.comparator);return i.data=t,i}}class Bd{constructor(t){this.iter=t}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function cl(l){return l.hasNext()?l.getNext():void 0}class $s{constructor(t){this.fields=t,t.sort(Kr.comparator)}static empty(){return new $s([])}unionWith(t){let i=new Oo(Kr.comparator);for(const u of this.fields)i=i.add(u);for(const u of t)i=i.add(u);return new $s(i.toArray())}covers(t){for(const i of this.fields)if(i.isPrefixOf(t))return!0;return!1}isEqual(t){return Un(this.fields,t.fields,(i,u)=>i.isEqual(u))}}class wp extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}function n0(){return typeof atob<"u"}class ps{constructor(t){this.binaryString=t}static fromBase64String(t){const i=function(u){try{return atob(u)}catch(f){throw typeof DOMException<"u"&&f instanceof DOMException?new wp("Invalid base64 string: "+f):f}}(t);return new ps(i)}static fromUint8Array(t){const i=function(u){let f="";for(let _=0;_<u.length;++_)f+=String.fromCharCode(u[_]);return f}(t);return new ps(i)}[Symbol.iterator](){let t=0;return{next:()=>t<this.binaryString.length?{value:this.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}toBase64(){return btoa(this.binaryString)}toUint8Array(){return function(t){const i=new Uint8Array(t.length);for(let u=0;u<t.length;u++)i[u]=t.charCodeAt(u);return i}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(t){return Rt(this.binaryString,t.binaryString)}isEqual(t){return this.binaryString===t.binaryString}}ps.EMPTY_BYTE_STRING=new ps("");const Ru=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ka(l){if(_i(!!l),"string"==typeof l){let t=0;const i=Ru.exec(l);if(_i(!!i),i[1]){let f=i[1];f=(f+"000000000").substr(0,9),t=Number(f)}const u=new Date(l);return{seconds:Math.floor(u.getTime()/1e3),nanos:t}}return{seconds:Ho(l.seconds),nanos:Ho(l.nanos)}}function Ho(l){return"number"==typeof l?l:"string"==typeof l?Number(l):0}function _c(l){return"string"==typeof l?ps.fromBase64String(l):ps.fromUint8Array(l)}function zd(l){var t,i;return"server_timestamp"===(null===(i=((null===(t=l?.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===i?void 0:i.stringValue)}function Nu(l){const t=l.mapValue.fields.__previous_value__;return zd(t)?Nu(t):t}function Vd(l){const t=Ka(l.mapValue.fields.__local_write_time__.timestampValue);return new Oi(t.seconds,t.nanos)}class Mp{constructor(t,i,u,f,_,C,F,K,re){this.databaseId=t,this.appId=i,this.persistenceKey=u,this.host=f,this.ssl=_,this.forceLongPolling=C,this.autoDetectLongPolling=F,this.longPollingOptions=K,this.useFetchStreams=re}}class Ol{constructor(t,i){this.projectId=t,this.database=i||"(default)"}static empty(){return new Ol("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(t){return t instanceof Ol&&t.projectId===this.projectId&&t.database===this.database}}const Pl={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},vc={nullValue:"NULL_VALUE"};function ul(l){return"nullValue"in l?0:"booleanValue"in l?1:"integerValue"in l||"doubleValue"in l?2:"timestampValue"in l?3:"stringValue"in l?5:"bytesValue"in l?6:"referenceValue"in l?7:"geoPointValue"in l?8:"arrayValue"in l?9:"mapValue"in l?zd(l)?4:o0(l)?9007199254740991:10:si()}function Dl(l,t){if(l===t)return!0;const i=ul(l);
1if(i!==ul(t))return!1;switch(i){case 0:case 9007199254740991:return!0;case 1:return l.booleanValue===t.booleanValue;case 4:return Vd(l).isEqual(Vd(t));case 3:return function(u,f){if("string"==typeof u.timestampValue&&"string"==typeof f.timestampValue&&u.timestampValue.length===f.timestampValue.length)return u.timestampValue===f.timestampValue;const _=Ka(u.timestampValue),C=Ka(f.timestampValue);return _.seconds===C.seconds&&_.nanos===C.nanos}(l,t);case 5:return l.stringValue===t.stringValue;case 6:return f=t,_c(l.bytesValue).isEqual(_c(f.bytesValue));case 7:return l.referenceValue===t.referenceValue;case 8:return function(u,f){return Ho(u.geoPointValue.latitude)===Ho(f.geoPointValue.latitude)&&Ho(u.geoPointValue.longitude)===Ho(f.geoPointValue.longitude)}(l,t);case 2:return function(u,f){if("integerValue"in u&&"integerValue"in f)return Ho(u.integerValue)===Ho(f.integerValue);if("doubleValue"in u&&"doubleValue"in f){const _=Ho(u.doubleValue),C=Ho(f.doubleValue);return _===C?Y(_)===Y(C):isNaN(_)&&isNaN(C)}return!1}(l,t);case 9:return Un(l.arrayValue.values||[],t.arrayValue.values||[],Dl);case 10:return function(u,f){const _=u.mapValue.fields||{},C=f.mapValue.fields||{};if(jl(_)!==jl(C))return!1;for(const F in _)if(_.hasOwnProperty(F)&&(void 0===C[F]||!Dl(_[F],C[F])))return!1;return!0}(l,t);default:return si()}var f}function Gc(l,t){return void 0!==(l.values||[]).find(i=>Dl(i,t))}function bc(l,t){if(l===t)return 0;const i=ul(l),u=ul(t);if(i!==u)return Rt(i,u);switch(i){case 0:case 9007199254740991:return 0;case 1:return Rt(l.booleanValue,t.booleanValue);case 2:return function(f,_){const C=Ho(f.integerValue||f.doubleValue),F=Ho(_.integerValue||_.doubleValue);return C<F?-1:C>F?1:C===F?0:isNaN(C)?isNaN(F)?0:-1:1}(l,t);case 3:return $h(l.timestampValue,t.timestampValue);case 4:return $h(Vd(l),Vd(t));case 5:return Rt(l.stringValue,t.stringValue);case 6:return function(f,_){const C=_c(f),F=_c(_);return C.compareTo(F)}(l.bytesValue,t.bytesValue);case 7:return function(f,_){const C=f.split("/"),F=_.split("/");for(let K=0;K<C.length&&K<F.length;K++){const re=Rt(C[K],F[K]);if(0!==re)return re}return Rt(C.length,F.length)}(l.referenceValue,t.referenceValue);case 8:return function(f,_){const C=Rt(Ho(f.latitude),Ho(_.latitude));return 0!==C?C:Rt(Ho(f.longitude),Ho(_.longitude))}(l.geoPointValue,t.geoPointValue);case 9:return function(f,_){const C=f.values||[],F=_.values||[];for(let K=0;K<C.length&&K<F.length;++K){const re=bc(C[K],F[K]);if(re)return re}return Rt(C.length,F.length)}(l.arrayValue,t.arrayValue);case 10:return function(f,_){if(f===Pl.mapValue&&_===Pl.mapValue)return 0;if(f===Pl.mapValue)return 1;if(_===Pl.mapValue)return-1;const C=f.fields||{},F=Object.keys(C),K=_.fields||{},re=Object.keys(K);F.sort(),re.sort();for(let Be=0;Be<F.length&&Be<re.length;++Be){const _t=Rt(F[Be],re[Be]);if(0!==_t)return _t;const tn=bc(C[F[Be]],K[re[Be]]);if(0!==tn)return tn}return Rt(F.length,re.length)}(l.mapValue,t.mapValue);default:throw si()}}function $h(l,t){if("string"==typeof l&&"string"==typeof t&&l.length===t.length)return Rt(l,t);const i=Ka(l),u=Ka(t),f=Rt(i.seconds,u.seconds);return 0!==f?f:Rt(i.nanos,u.nanos)}function qd(l){return Gh(l)}function Gh(l){return"nullValue"in l?"null":"booleanValue"in l?""+l.booleanValue:"integerValue"in l?""+l.integerValue:"doubleValue"in l?""+l.doubleValue:"timestampValue"in l?function(u){const f=Ka(u);return`time(${f.seconds},${f.nanos})`}(l.timestampValue):"stringValue"in l?l.stringValue:"bytesValue"in l?_c(l.bytesValue).toBase64():"referenceValue"in l?Qn.fromName(l.referenceValue).toString():"geoPointValue"in l?`geo(${(t=l.geoPointValue).latitude},${t.longitude})`:"arrayValue"in l?function(u){let f="[",_=!0;for(const C of u.values||[])_?_=!1:f+=",",f+=Gh(C);return f+"]"}(l.arrayValue):"mapValue"in l?function(u){const f=Object.keys(u.fields||{}).sort();let _="{",C=!0;for(const F of f)C?C=!1:_+=",",_+=`${F}:${Gh(u.fields[F])}`;return _+"}"}(l.mapValue):si();var t}function $l(l,t){return{referenceValue:`projects/${l.projectId}/databases/${l.database}/documents/${t.path.canonicalString()}`}}function _m(l){return!!l&&"integerValue"in l}function Wh(l){return!!l&&"arrayValue"in l}function Lu(l){return!!l&&"nullValue"in l}function r0(l){return!!l&&"doubleValue"in l&&isNaN(Number(l.doubleValue))}function Ep(l){return!!l&&"mapValue"in l}
vendor: 5,080 bytes, line 1
1function jd(l){if(l.geoPointValue)return{geoPointValue:Object.assign({},l.geoPointValue)};if(l.timestampValue&&"object"==typeof l.timestampValue)return{timestampValue:Object.assign({},l.timestampValue)};if(l.mapValue){const t={mapValue:{fields:{}}};return Hl(l.mapValue.fields,(i,u)=>t.mapValue.fields[i]=jd(u)),t}if(l.arrayValue){const t={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)t.arrayValue.values[i]=jd(l.arrayValue.values[i]);return t}return Object.assign({},l)}function o0(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}function Tp(l){return"nullValue"in l?vc:"booleanValue"in l?{booleanValue:!1}:"integerValue"in l||"doubleValue"in l?{doubleValue:NaN}:"timestampValue"in l?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in l?{stringValue:""}:"bytesValue"in l?{bytesValue:""}:"referenceValue"in l?$l(Ol.empty(),Qn.empty()):"geoPointValue"in l?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in l?{arrayValue:{}}:"mapValue"in l?{mapValue:{}}:si()}function s0(l){return"nullValue"in l?{booleanValue:!1}:"booleanValue"in l?{doubleValue:NaN}:"integerValue"in l||"doubleValue"in l?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in l?{stringValue:""}:"stringValue"in l?{bytesValue:""}:"bytesValue"in l?$l(Ol.empty(),Qn.empty()):"referenceValue"in l?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in l?{arrayValue:{}}:"arrayValue"in l?{mapValue:{}}:"mapValue"in l?Pl:si()}function Op(l,t){const i=bc(l.value,t.value);return 0!==i?i:l.inclusive&&!t.inclusive?-1:!l.inclusive&&t.inclusive?1:0}function Kh(l,t){const i=bc(l.value,t.value);return 0!==i?i:l.inclusive&&!t.inclusive?1:!l.inclusive&&t.inclusive?-1:0}class Gs{constructor(t){this.value=t}static empty(){return new Gs({mapValue:{}})}field(t){if(t.isEmpty())return this.value;{let i=this.value;for(let u=0;u<t.length-1;++u)if(i=(i.mapValue.fields||{})[t.get(u)],!Ep(i))return null;return i=(i.mapValue.fields||{})[t.lastSegment()],i||null}}set(t,i){this.getFieldsMap(t.popLast())[t.lastSegment()]=jd(i)}setAll(t){let i=Kr.emptyPath(),u={},f=[];t.forEach((C,F)=>{if(!i.isImmediateParentOf(F)){const K=this.getFieldsMap(i);this.applyChanges(K,u,f),u={},f=[],i=F.popLast()}C?u[F.lastSegment()]=jd(C):f.push(F.lastSegment())});const _=this.getFieldsMap(i);this.applyChanges(_,u,f)}delete(t){const i=this.field(t.popLast());Ep(i)&&i.mapValue.fields&&delete i.mapValue.fields[t.lastSegment()]}isEqual(t){return Dl(this.value,t.value)}getFieldsMap(t){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let u=0;u<t.length;++u){let f=i.mapValue.fields[t.get(u)];Ep(f)&&f.mapValue.fields||(f={mapValue:{fields:{}}},i.mapValue.fields[t.get(u)]=f),i=f}return i.mapValue.fields}applyChanges(t,i,u){Hl(i,(f,_)=>t[f]=_);for(const f of u)delete t[f]}clone(){return new Gs(jd(this.value))}}function Pp(l){const t=[];return Hl(l.fields,(i,u)=>{const f=new Kr([i]);if(Ep(u)){const _=Pp(u.mapValue).fields;if(0===_.length)t.push(f);else for(const C of _)t.push(f.child(C))}else t.push(f)}),new $s(t)}class Po{constructor(t,i,u,f,_,C,F){this.key=t,this.documentType=i,this.version=u,this.readTime=f,this.createTime=_,this.data=C,this.documentState=F}static newInvalidDocument(t){return new Po(t,0,Kn.min(),Kn.min(),Kn.min(),Gs.empty(),0)}static newFoundDocument(t,i,u,f){return new Po(t,1,i,Kn.min(),u,f,0)}static newNoDocument(t,i){return new Po(t,2,i,Kn.min(),Kn.min(),Gs.empty(),0)}static newUnknownDocument(t,i){return new Po(t,3,i,Kn.min(),Kn.min(),Gs.empty(),2)}convertToFoundDocument(t,i){return!this.createTime.isEqual(Kn.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=t),this.version=t,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(t){return this.version=t,this.documentType=2,this.data=Gs.empty(),this.documentState=0,this}convertToUnknownDocument(t){return this.version=t,this.documentType=3,this.data=Gs.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Kn.min(),this}setReadTime(t){return this.readTime=t,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(t){return t instanceof Po&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}mutableCopy(){return new Po(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
1class oa{constructor(t,i){this.position=t,this.inclusive=i}}function vm(l,t,i){let u=0;for(let f=0;f<l.position.length;f++){const _=t[f],C=l.position[f];if(u=_.field.isKeyField()?Qn.comparator(Qn.fromName(C.referenceValue),i.key):bc(C,i.data.field(_.field)),"desc"===_.dir&&(u*=-1),0!==u)break}return u}function Yh(l,t){if(null===l)return null===t;if(null===t||l.inclusive!==t.inclusive||l.position.length!==t.position.length)return!1;for(let i=0;i<l.position.length;i++)if(!Dl(l.position[i],t.position[i]))return!1;return!0}class Uu{constructor(t,i="asc"){this.field=t,this.dir=i}}function bm(l,t){return l.dir===t.dir&&l.field.isEqual(t.field)}class Jh{}class Vr extends Jh{constructor(t,i,u){super(),this.field=t,this.op=i,this.value=u}static create(t,i,u){return t.isKeyField()?"in"===i||"not-in"===i?this.createKeyFieldInFilter(t,i,u):new aa(t,i,u):"array-contains"===i?new Ip(t,u):"in"===i?new Kc(t,u):"not-in"===i?new Cm(t,u):"array-contains-any"===i?new tf(t,u):new Vr(t,i,u)}static createKeyFieldInFilter(t,i,u){return"in"===i?new Al(t,u):new Ap(t,u)}matches(t){const i=t.data.field(this.field);return"!="===this.op?null!==i&&this.matchesComparison(bc(i,this.value)):null!==i&&ul(this.value)===ul(i)&&this.matchesComparison(bc(i,this.value))}matchesComparison(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return si()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}getFirstInequalityField(){return this.isInequality()?this.field:null}}class uo extends Jh{constructor(t,i){super(),this.filters=t,this.op=i,this.lt=null}static create(t,i){return new uo(t,i)}matches(t){return Wc(this)?void 0===this.filters.find(i=>!i.matches(t)):void 0!==this.filters.find(i=>i.matches(t))}getFlattenedFilters(){return null!==this.lt||(this.lt=this.filters.reduce((t,i)=>t.concat(i.getFlattenedFilters()),[])),this.lt}getFilters(){return Object.assign([],this.filters)}getFirstInequalityField(){const t=this.ft(i=>i.isInequality());return null!==t?t.field:null}ft(t){for(const i of this.getFlattenedFilters())if(t(i))return i;return null}}function Wc(l){return"and"===l.op}function Qh(l){return"or"===l.op}function Dp(l){return ym(l)&&Wc(l)}function ym(l){for(const t of l.filters)if(t instanceof uo)return!1;return!0}function sa(l){if(l instanceof Vr)return l.field.canonicalString()+l.op.toString()+qd(l.value);if(Dp(l))return l.filters.map(t=>sa(t)).join(",");{const t=l.filters.map(i=>sa(i)).join(",");return`${l.op}(${t})`}}function Xh(l,t){return l instanceof Vr?(i=l,(u=t)instanceof Vr&&i.op===u.op&&i.field.isEqual(u.field)&&Dl(i.value,u.value)):l instanceof uo?function(i,u){return u instanceof uo&&i.op===u.op&&i.filters.length===u.filters.length&&i.filters.reduce((f,_,C)=>f&&Xh(_,u.filters[C]),!0)}(l,t):void si();var i,u}function Ta(l,t){const i=l.filters.concat(t);return uo.create(i,l.op)}function Ya(l){return l instanceof Vr?`${(t=l).field.canonicalString()} ${t.op} ${qd(t.value)}`:l instanceof uo?function(t){return t.op.toString()+" {"+t.getFilters().map(Ya).join(" ,")+"}"}(l):"Filter";var t}class aa extends Vr{constructor(t,i,u){super(t,i,u),this.key=Qn.fromName(u.referenceValue)}matches(t){const i=Qn.comparator(t.key,this.key);return this.matchesComparison(i)}}class Al extends Vr{constructor(t,i){super(t,"in",i),this.keys=ef(0,i)}matches(t){return this.keys.some(i=>i.isEqual(t.key))}}class Ap extends Vr{constructor(t,i){super(t,"not-in",i),this.keys=ef(0,i)}matches(t){return!this.keys.some(i=>i.isEqual(t.key))}}function ef(l,t){var i;return((null===(i=t.arrayValue)||void 0===i?void 0:i.values)||[]).map(u=>Qn.fromName(u.referenceValue))}class Ip extends Vr{constructor(t,i){super(t,"array-contains",i)}matches(t){const i=t.data.field(this.field);return Wh(i)&&Gc(i.arrayValue,this.value)}}class Kc extends Vr{constructor(t,i){super(t,"in",i)}matches(t){const i=t.data.field(this.field);return null!==i&&Gc(this.value.arrayValue,i)}}class Cm extends Vr{constructor(t,i){super(t,"not-in",i)}matches(t){if(Gc(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=t.data.field(this.field);return null!==i&&!Gc(this.value.arrayValue,i)}}class tf extends Vr{constructor(t,i){super(t,"array-contains-any",i)}matches(t){const i=t.data.field(this.field);return!(!Wh(i)||!i.arrayValue.values)&&i.arrayValue.values.some(u=>Gc(this.value.arrayValue,u))}}class nf{constructor(t,i=null,u=[],f=[],_=null,C=null,F=null){this.path=t,this.collectionGroup=i,this.orderBy=u,this.filters=f,this.limit=_,this.startAt=C,this.endAt=F,this.dt=null}}function Zu(l,t=null,i=[],u=[],f=null,_=null,C=null){return new nf(l,t,i,u,f,_,C)}function Ja(l){const t=ii(l);if(null===t.dt){let i=t.path.canonicalString();null!==t.collectionGroup&&(i+="|cg:"+t.collectionGroup),i+="|f:",i+=t.filters.map(u=>sa(u)).join(","),i+="|ob:",i+=t.orderBy.map(u=>{return(f=u).field.canonicalString()+f.dir;var f}).join(","),j(t.limit)||(i+="|l:",i+=t.limit),t.startAt&&(i+="|lb:",i+=t.startAt.inclusive?"b:":"a:",i+=t.startAt.position.map(u=>qd(u)).join(",")),t.endAt&&(i+="|ub:",i+=t.endAt.inclusive?"a:":"b:",i+=t.endAt.position.map(u=>qd(u)).join(",")),t.dt=i}return t.dt}function Gl(l,t){if(l.limit!==t.limit||l.orderBy.length!==t.orderBy.length)return!1;for(let i=0;i<l.orderBy.length;i++)if(!bm(l.orderBy[i],t.orderBy[i]))return!1;if(l.filters.length!==t.filters.length)return!1;for(let i=0;i<l.filters.length;i++)if(!Xh(l.filters[i],t.filters[i]))return!1;return l.collectionGroup===t.collectionGroup&&!!l.path.isEqual(t.path)&&!!Yh(l.startAt,t.startAt)&&Yh(l.endAt,t.endAt)}function yc(l){return Qn.isDocumentKey(l.path)&&null===l.collectionGroup&&0===l.filters.length}function Cc(l,t){return l.filters.filter(i=>i instanceof Vr&&i.field.isEqual(t))}function Sp(l,t,i){let u=vc,f=!0;for(const _ of Cc(l,t)){let C=vc,F=!0;switch(_.op){case"<":case"<=":C=Tp(_.value);break;case"==":case"in":case">=":C=_.value;break;case">":C=_.value,F=!1;break;case"!=":case"not-in":C=vc}Op({value:u,inclusive:f},{value:C,inclusive:F})<0&&(u=C,f=F)}if(null!==i)for(let _=0;_<l.orderBy.length;++_)if(l.orderBy[_].field.isEqual(t)){const C=i.position[_];Op({value:u,inclusive:f},{value:C,inclusive:i.inclusive})<0&&(u=C,f=i.inclusive);break}return{value:u,inclusive:f}}function kp(l,t,i){let u=Pl,f=!0;for(const _ of Cc(l,t)){let C=Pl,F=!0;switch(_.op){case">=":case">":C=s0(_.value),F=!1;break;case"==":case"in":case"<=":C=_.value;break;case"<":C=_.value,F=!1;break;case"!=":case"not-in":C=Pl}Kh({value:u,inclusive:f},{value:C,inclusive:F})>0&&(u=C,f=F)}if(null!==i)for(let _=0;_<l.orderBy.length;++_)if(l.orderBy[_].field.isEqual(t)){const C=i.position[_];Kh({value:u,inclusive:f},{value:C,inclusive:i.inclusive})>0&&(u=C,f=i.inclusive);break}return{value:u,inclusive:f}}class Wl{constructor(t,i=null,u=[],f=[],_=null,C="F",F=null,K=null){this.path=t,this.collectionGroup=i,this.explicitOrderBy=u,this.filters=f,this.limit=_,this.limitType=C,this.startAt=F,this.endAt=K,this.wt=null,this._t=null}}function Yc(l,t,i,u,f,_,C,F){return new Wl(l,t,i,u,f,_,C,F)}function Qa(l){return new Wl(l)}function rf(l){return 0===l.filters.length&&null===l.limit&&null==l.startAt&&null==l.endAt&&(0===l.explicitOrderBy.length||1===l.explicitOrderBy.length&&l.explicitOrderBy[0].field.isKeyField())}function Bu(l){return l.explicitOrderBy.length>0?l.explicitOrderBy[0].field:null}function A(l){for(const t of l.filters){const i=t.getFirstInequalityField();if(null!==i)return i}return null}function b(l){return null!==l.collectionGroup}function w(l){const t=ii(l);if(null===t.wt){t.wt=[];const i=A(t),u=Bu(t);if(null!==i&&null===u)i.isKeyField()||t.wt.push(new Uu(i)),t.wt.push(new Uu(Kr.keyField(),"asc"));else{let f=!1;for(const _ of t.explicitOrderBy)t.wt.push(_),_.field.isKeyField()&&(f=!0);if(!f){const _=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.wt.push(new Uu(Kr.keyField(),_))}}}return t.wt}function N(l){const t=ii(l);if(!t._t)if("F"===t.limitType)t._t=Zu(t.path,t.collectionGroup,w(t),t.filters,t.limit,t.startAt,t.endAt);else{const i=[];for(const _ of w(t))i.push(new Uu(_.field,"desc"===_.dir?"asc":"desc"));const u=t.endAt?new oa(t.endAt.position,t.endAt.inclusive):null,f=t.startAt?new oa(t.startAt.position,t.startAt.inclusive):null;t._t=Zu(t.path,t.collectionGroup,i,t.filters,t.limit,u,f)}return t._t}function ce(l,t){t.getFirstInequalityField(),A(l);const i=l.filters.concat([t]);return new Wl(l.path,l.collectionGroup,l.explicitOrderBy.slice(),i,l.limit,l.limitType,l.startAt,l.endAt)}function Ve(l,t,i){return new Wl(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),t,i,l.startAt,l.endAt)}
1function qt(l,t){return Gl(N(l),N(t))&&l.limitType===t.limitType}function an(l){return`${Ja(N(l))}|lt:${l.limitType}`}function jn(l){return`Query(target=${function(t){let i=t.path.canonicalString();return null!==t.collectionGroup&&(i+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(i+=`, filters: [${t.filters.map(u=>Ya(u)).join(", ")}]`),j(t.limit)||(i+=", limit: "+t.limit),t.orderBy.length>0&&(i+=`, orderBy: [${t.orderBy.map(u=>{return`${(f=u).field.canonicalString()} (${f.dir})`;var f}).join(", ")}]`),t.startAt&&(i+=", startAt: ",i+=t.startAt.inclusive?"b:":"a:",i+=t.startAt.position.map(u=>qd(u)).join(",")),t.endAt&&(i+=", endAt: ",i+=t.endAt.inclusive?"a:":"b:",i+=t.endAt.position.map(u=>qd(u)).join(",")),`Target(${i})`}(N(l))}; limitType=${l.limitType})`}function vi(l,t){return t.isFoundDocument()&&function(i,u){const f=u.key.path;return null!==i.collectionGroup?u.key.hasCollectionId(i.collectionGroup)&&i.path.isPrefixOf(f):Qn.isDocumentKey(i.path)?i.path.isEqual(f):i.path.isImmediateParentOf(f)}(l,t)&&function(i,u){for(const f of w(i))if(!f.field.isKeyField()&&null===u.data.field(f.field))return!1;return!0}(l,t)&&function(i,u){for(const f of i.filters)if(!f.matches(u))return!1;return!0}(l,t)&&(u=t,!((i=l).startAt&&!function(f,_,C){const F=vm(f,_,C);return f.inclusive?F<=0:F<0}(i.startAt,w(i),u)||i.endAt&&!function(f,_,C){const F=vm(f,_,C);return f.inclusive?F>=0:F>0}(i.endAt,w(i),u)));var i,u}function Wi(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}function ir(l){return(t,i)=>{let u=!1;for(const f of w(l)){const _=mo(f,t,i);if(0!==_)return _;u=u||f.field.isKeyField()}return 0}}function mo(l,t,i){const u=l.field.isKeyField()?Qn.comparator(t.key,i.key):function(f,_,C){const F=_.data.field(f),K=C.data.field(f);return null!==F&&null!==K?bc(F,K):si()}(l.field,t,i);switch(l.dir){case"asc":return u;case"desc":return-1*u;default:return si()}}class Ws{constructor(t,i){this.mapKeyFn=t,this.equalsFn=i,this.inner={},this.innerSize=0}get(t){const i=this.mapKeyFn(t),u=this.inner[i];if(void 0!==u)for(const[f,_]of u)if(this.equalsFn(f,t))return _}has(t){return void 0!==this.get(t)}set(t,i){const u=this.mapKeyFn(t),f=this.inner[u];if(void 0===f)return this.inner[u]=[[t,i]],void this.innerSize++;for(let _=0;_<f.length;_++)if(this.equalsFn(f[_][0],t))return void(f[_]=[t,i]);f.push([t,i]),this.innerSize++}delete(t){const i=this.mapKeyFn(t),u=this.inner[i];if(void 0===u)return!1;for(let f=0;f<u.length;f++)if(this.equalsFn(u[f][0],t))return 1===u.length?delete this.inner[i]:u.splice(f,1),this.innerSize--,!0;return!1}forEach(t){Hl(this.inner,(i,u)=>{for(const[f,_]of u)t(f,_)})}isEmpty(){return Zd(this.inner)}size(){return this.innerSize}}const xc=new Jr(Qn.comparator);function gs(){return xc}const Hd=new Jr(Qn.comparator);function Kl(...l){let t=Hd;for(const i of l)t=t.insert(i.key,i);return t}function Rp(l){let t=Hd;return l.forEach((i,u)=>t=t.insert(i,u.overlayedDocument)),t}function Xa(){return wc()}function sf(){return wc()}function wc(){return new Ws(l=>l.toString(),(l,t)=>l.isEqual(t))}const Yl=new Jr(Qn.comparator),Np=new Oo(Qn.comparator);function mr(...l){let t=Np;for(const i of l)t=t.add(i);return t}const Fp=new Oo(Rt);function xm(){return Fp}function zu(l,t){if(l.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Y(t)?"-0":t}}function vb(l){return{integerValue:""+l}}function a0(l,t){return Pe(t)?vb(t):zu(l,t)}class Lp{constructor(){this._=void 0}}function bb(l,t,i){return l instanceof Jc?function(u,f){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return f&&zd(f)&&(f=Nu(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,t):l instanceof Mc?u0(l,t):l instanceof Qc?wm(l,t):function(u,f){const _=c0(u,f),C=$d(_)+$d(u.gt);return _m(_)&&_m(u.gt)?vb(C):zu(u.serializer,C)}(l,t)}function l0(l,t,i){return l instanceof Mc?u0(l,t):l instanceof Qc?wm(l,t):i}function c0(l,t){return l instanceof Vu?_m(i=t)||(u=i)&&"doubleValue"in u?t:{integerValue:0}:null;var u,i}class Jc extends Lp{}class Mc extends Lp{constructor(t){super(),this.elements=t}}function u0(l,t){const i=yb(t);for(const u of l.elements)i.some(f=>Dl(f,u))||i.push(u);return{arrayValue:{values:i}}}class Qc extends Lp{constructor(t){super(),this.elements=t}}function wm(l,t){let i=yb(t);for(const u of l.elements)i=i.filter(f=>!Dl(f,u));return{arrayValue:{values:i}}}
1class Vu extends Lp{constructor(t,i){super(),this.serializer=t,this.gt=i}}function $d(l){return Ho(l.integerValue||l.doubleValue)}function yb(l){return Wh(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class af{constructor(t,i){this.field=t,this.transform=i}}class f1{constructor(t,i){this.version=t,this.transformResults=i}}class ts{constructor(t,i){this.updateTime=t,this.exists=i}static none(){return new ts}static exists(t){return new ts(void 0,t)}static updateTime(t){return new ts(t)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)}}function lf(l,t){return void 0!==l.updateTime?t.isFoundDocument()&&t.version.isEqual(l.updateTime):void 0===l.exists||l.exists===t.isFoundDocument()}class Gd{}function Mm(l,t){if(!l.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return l.isNoDocument()?new ju(l.key,ts.none()):new uf(l.key,l.data,ts.none());{const i=l.data,u=Gs.empty();let f=new Oo(Kr.comparator);for(let _ of t.fields)if(!f.has(_)){let C=i.field(_);null===C&&_.length>1&&(_=_.popLast(),C=i.field(_)),null===C?u.delete(_):u.set(_,C),f=f.add(_)}return new el(l.key,u,new $s(f.toArray()),ts.none())}}function qu(l,t,i){l instanceof uf?function(u,f,_){const C=u.value.clone(),F=d0(u.fieldTransforms,f,_.transformResults);C.setAll(F),f.convertToFoundDocument(_.version,C).setHasCommittedMutations()}(l,t,i):l instanceof el?function(u,f,_){if(!lf(u.precondition,f))return void f.convertToUnknownDocument(_.version);const C=d0(u.fieldTransforms,f,_.transformResults),F=f.data;F.setAll(Cb(u)),F.setAll(C),f.convertToFoundDocument(_.version,F).setHasCommittedMutations()}(l,t,i):t.convertToNoDocument(i.version).setHasCommittedMutations()}function cf(l,t,i,u){return l instanceof uf?function(f,_,C,F){if(!lf(f.precondition,_))return C;const K=f.value.clone(),re=Up(f.fieldTransforms,F,_);return K.setAll(re),_.convertToFoundDocument(_.version,K).setHasLocalMutations(),null}(l,t,i,u):l instanceof el?function(f,_,C,F){if(!lf(f.precondition,_))return C;const K=Up(f.fieldTransforms,F,_),re=_.data;return re.setAll(Cb(f)),re.setAll(K),_.convertToFoundDocument(_.version,re).setHasLocalMutations(),null===C?null:C.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(Be=>Be.field))}(l,t,i,u):(C=i,lf(l.precondition,_=t)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):C);var _,C}function p1(l,t){let i=null;for(const u of l.fieldTransforms){const f=t.data.field(u.field),_=c0(u.transform,f||null);null!=_&&(null===i&&(i=Gs.empty()),i.set(u.field,_))}return i||null}function g1(l,t){return l.type===t.type&&!!l.key.isEqual(t.key)&&!!l.precondition.isEqual(t.precondition)&&(u=t.fieldTransforms,!!(void 0===(i=l.fieldTransforms)&&void 0===u||i&&u&&Un(i,u,(f,_)=>function h1(l,t){return l.field.isEqual(t.field)&&(u=t.transform,(i=l.transform)instanceof Mc&&u instanceof Mc||i instanceof Qc&&u instanceof Qc?Un(i.elements,u.elements,Dl):i instanceof Vu&&u instanceof Vu?Dl(i.gt,u.gt):i instanceof Jc&&u instanceof Jc);var i,u}(f,_))))&&(0===l.type?l.value.isEqual(t.value):1!==l.type||l.data.isEqual(t.data)&&l.fieldMask.isEqual(t.fieldMask));var i,u}class uf extends Gd{constructor(t,i,u,f=[]){super(),this.key=t,this.value=i,this.precondition=u,this.fieldTransforms=f,this.type=0}getFieldMask(){return null}}class el extends Gd{constructor(t,i,u,f,_=[]){super(),this.key=t,this.data=i,this.fieldMask=u,this.precondition=f,this.fieldTransforms=_,this.type=1}getFieldMask(){return this.fieldMask}}function Cb(l){const t=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const u=l.data.field(i);t.set(i,u)}}),t}function d0(l,t,i){const u=new Map;_i(l.length===i.length);for(let f=0;f<i.length;f++){const _=l[f],C=_.transform,F=t.data.field(_.field);u.set(_.field,l0(C,F,i[f]))}return u}function Up(l,t,i){const u=new Map;for(const f of l){const _=f.transform,C=i.data.field(f.field);u.set(f.field,bb(_,C,t))}return u}class ju extends Gd{constructor(t,i){super(),this.key=t,this.precondition=i,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Em extends Gd{constructor(t,i){super(),this.key=t,this.prec
1ondition=i,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Tm{constructor(t,i,u,f){this.batchId=t,this.localWriteTime=i,this.baseMutations=u,this.mutations=f}applyToRemoteDocument(t,i){const u=i.mutationResults;for(let f=0;f<this.mutations.length;f++){const _=this.mutations[f];_.key.isEqual(t.key)&&qu(_,t,u[f])}}applyToLocalView(t,i){for(const u of this.baseMutations)u.key.isEqual(t.key)&&(i=cf(u,t,i,this.localWriteTime));for(const u of this.mutations)u.key.isEqual(t.key)&&(i=cf(u,t,i,this.localWriteTime));return i}applyToLocalDocumentSet(t,i){const u=sf();return this.mutations.forEach(f=>{const _=t.get(f.key),C=_.overlayedDocument;let F=this.applyToLocalView(C,_.mutatedFields);F=i.has(f.key)?null:F;const K=Mm(C,F);null!==K&&u.set(f.key,K),C.isValidDocument()||C.convertToNoDocument(Kn.min())}),u}keys(){return this.mutations.reduce((t,i)=>t.add(i.key),mr())}isEqual(t){return this.batchId===t.batchId&&Un(this.mutations,t.mutations,(i,u)=>g1(i,u))&&Un(this.baseMutations,t.baseMutations,(i,u)=>g1(i,u))}}class Zp{constructor(t,i,u,f){this.batch=t,this.commitVersion=i,this.mutationResults=u,this.docVersions=f}static from(t,i,u){_i(t.mutations.length===u.length);let f=Yl;const _=t.mutations;for(let C=0;C<_.length;C++)f=f.insert(_[C].key,u[C].version);return new Zp(t,i,u,f)}}class Xc{constructor(t,i){this.largestBatchId=t,this.mutation=i}getKey(){return this.mutation.key}isEqual(t){return null!==t&&this.mutation===t.mutation}toString(){return`Overlay{\n largestBatchId: ${this.largestBatchId},\n mutation: ${this.mutation.toString()}\n }`}}class _1{constructor(t,i){this.count=t,this.unchangedNames=i}}var Ls,Qr;function h0(l){switch(l){default:return si();case Jt.CANCELLED:case Jt.UNKNOWN:case Jt.DEADLINE_EXCEEDED:case Jt.RESOURCE_EXHAUSTED:case Jt.INTERNAL:case Jt.UNAVAILABLE:case Jt.UNAUTHENTICATED:return!1;case Jt.INVALID_ARGUMENT:case Jt.NOT_FOUND:case Jt.ALREADY_EXISTS:case Jt.PERMISSION_DENIED:case Jt.FAILED_PRECONDITION:case Jt.ABORTED:case Jt.OUT_OF_RANGE:case Jt.UNIMPLEMENTED:case Jt.DATA_LOSS:return!0}}function Ua(l){if(void 0===l)return zr("GRPC error has no .code"),Jt.UNKNOWN;switch(l){case Ls.OK:return Jt.OK;case Ls.CANCELLED:return Jt.CANCELLED;case Ls.UNKNOWN:return Jt.UNKNOWN;case Ls.DEADLINE_EXCEEDED:return Jt.DEADLINE_EXCEEDED;case Ls.RESOURCE_EXHAUSTED:return Jt.RESOURCE_EXHAUSTED;case Ls.INTERNAL:return Jt.INTERNAL;case Ls.UNAVAILABLE:return Jt.UNAVAILABLE;case Ls.UNAUTHENTICATED:return Jt.UNAUTHENTICATED;case Ls.INVALID_ARGUMENT:return Jt.INVALID_ARGUMENT;case Ls.NOT_FOUND:return Jt.NOT_FOUND;case Ls.ALREADY_EXISTS:return Jt.ALREADY_EXISTS;case Ls.PERMISSION_DENIED:return Jt.PERMISSION_DENIED;case Ls.FAILED_PRECONDITION:return Jt.FAILED_PRECONDITION;case Ls.ABORTED:return Jt.ABORTED;case Ls.OUT_OF_RANGE:return Jt.OUT_OF_RANGE;case Ls.UNIMPLEMENTED:return Jt.UNIMPLEMENTED;case Ls.DATA_LOSS:return Jt.DATA_LOSS;default:return si()}}(Qr=Ls||(Ls={}))[Qr.OK=0]="OK",Qr[Qr.CANCELLED=1]="CANCELLED",Qr[Qr.UNKNOWN=2]="UNKNOWN",Qr[Qr.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Qr[Qr.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Qr[Qr.NOT_FOUND=5]="NOT_FOUND",Qr[Qr.ALREADY_EXISTS=6]="ALREADY_EXISTS",Qr[Qr.PERMISSION_DENIED=7]="PERMISSION_DENIED",Qr[Qr.UNAUTHENTICATED=16]="UNAUTHENTICATED",Qr[Qr.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Qr[Qr.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Qr[Qr.ABORTED=10]="ABORTED",Qr[Qr.OUT_OF_RANGE=11]="OUT_OF_RANGE",Qr[Qr.UNIMPLEMENTED=12]="UNIMPLEMENTED",Qr[Qr.INTERNAL=13]="INTERNAL",Qr[Qr.UNAVAILABLE=14]="UNAVAILABLE",Qr[Qr.DATA_LOSS=15]="DATA_LOSS";class Il{constructor(){this.onExistenceFilterMismatchCallbacks=new Map}static get instance(){return df}static getOrCreateInstance(){return null===df&&(df=new Il),df}onExistenceFilterMismatch(t){const i=Symbol();return this.onExistenceFilterMismatchCallbacks.set(i,t),()=>this.onExistenceFilterMismatchCallbacks.delete(i)}notifyOnExistenceFilterMismatch(t){this.onExistenceFilterMismatchCallbacks.forEach(i=>i(t))}}let df=null;function f0(){return new TextEncoder}const v1=new Xi([4294967295,4294967295],0);function Bp(l){const t=f0().encode(l),i=new Nr;return i.update(t),new Uint8Array(i.digest())}function p0(l){const t=new DataView(l.buffer),i=t.getUint32(0,!0),u=t.getUint32(4,!0),f=t.getUint32(8,!0),_=t.getUint32(12,!0);return[new Xi([i,u],0),new Xi([f,_],0)]}class Om{constructor(t,i,u){if(this.bitmap=t,this.padding=i,this.hashCount=u,i<0||i>=8)throw new Wd(`Invalid padding: ${i}`);if(u<0)throw new Wd(`Invalid hash count: ${u}`);if(t.length>0&&0===this.hashCount)throw new Wd(`Invalid hash count: ${u}`);if(0===t.length&&0!==i)throw new Wd(`Invalid padding when bitmap length is 0: ${i}`);this.It=8*t.length-i,this.Tt=Xi.fromNumber(this.It)}Et(t,i,u){let f=t.add(i.multiply(Xi.fromNumber(u)));return 1===f.compare(v1)&&(f=new Xi([f.getBits(0),f.getBits(1)],0)),f.modulo(this.Tt).toNumber()}At(t){return 0!=(this.bitmap[Math.floor(t/8)]&1<<t%8)}vt(t){if(0===this.It)return!1;const i=Bp(t),[u,f]=p0(i);for(let _=0;_<this.hashCount;_++){const C=this.Et(u,f,_);if(!this.At(C))return!1}return!0}static create(t,i,u){const f=t%8==0?0:8-t%8,_=new Uint8Array(Math.ceil(t/8)),C=new Om(_,f,i);return u.forEach(F=>C.insert(F)),C}insert(t){if(0===this.It)return;const i=Bp(t),[u,f]=p0(i);for(let _=0;_<this.hashCount;_++){const C=this.Et(u,f,_);this.Rt(C)}}Rt(t){const i=Math.floor(t/8);this.bitmap[i]|=1<<t%8}}
vendor: 1,374 bytes, line 1
1class Wd extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class hf{constructor(t,i,u,f,_){this.snapshotVersion=t,this.targetChanges=i,this.targetMismatches=u,this.documentUpdates=f,this.resolvedLimboDocuments=_}static createSynthesizedRemoteEventForCurrentChange(t,i,u){const f=new Map;return f.set(t,ff.createSynthesizedTargetChangeForCurrentChange(t,i,u)),new hf(Kn.min(),f,new Jr(Rt),gs(),mr())}}class ff{constructor(t,i,u,f,_){this.resumeToken=t,this.current=i,this.addedDocuments=u,this.modifiedDocuments=f,this.removedDocuments=_}static createSynthesizedTargetChangeForCurrentChange(t,i,u){return new ff(u,i,mr(),mr(),mr())}}class zp{constructor(t,i,u,f){this.Pt=t,this.removedTargetIds=i,this.key=u,this.bt=f}}class xb{constructor(t,i){this.targetId=t,this.Vt=i}}class Vp{constructor(t,i,u=ps.EMPTY_BYTE_STRING,f=null){this.state=t,this.targetIds=i,this.resumeToken=u,this.cause=f}}class Ec{constructor(){this.St=0,this.Dt=m0(),this.Ct=ps.EMPTY_BYTE_STRING,this.xt=!1,this.Nt=!0}get current(){return this.xt}get resumeToken(){return this.Ct}get kt(){return 0!==this.St}get Mt(){return this.Nt}$t(t){t.approximateByteSize()>0&&(this.Nt=!0,this.Ct=t)}Ot(){let t=mr(),i=mr(),u=mr();return this.Dt.forEach((f,_)=>{switch(_){case 0:t=t.add(f);break;case 2:i=i.add(f);break;case 1:u=u.add(f);break;default:si()}}),new ff(this.Ct,this.xt,t,i,u)}
1Ft(){this.Nt=!1,this.Dt=m0()}Bt(t,i){this.Nt=!0,this.Dt=this.Dt.insert(t,i)}Lt(t){this.Nt=!0,this.Dt=this.Dt.remove(t)}qt(){this.St+=1}Ut(){this.St-=1}Kt(){this.Nt=!0,this.xt=!0}}class pf{constructor(t){this.Gt=t,this.Qt=new Map,this.jt=gs(),this.zt=g0(),this.Wt=new Jr(Rt)}Ht(t){for(const i of t.Pt)t.bt&&t.bt.isFoundDocument()?this.Jt(i,t.bt):this.Yt(i,t.key,t.bt);for(const i of t.removedTargetIds)this.Yt(i,t.key,t.bt)}Xt(t){this.forEachTarget(t,i=>{const u=this.Zt(i);switch(t.state){case 0:this.te(i)&&u.$t(t.resumeToken);break;case 1:u.Ut(),u.kt||u.Ft(),u.$t(t.resumeToken);break;case 2:u.Ut(),u.kt||this.removeTarget(i);break;case 3:this.te(i)&&(u.Kt(),u.$t(t.resumeToken));break;case 4:this.te(i)&&(this.ee(i),u.$t(t.resumeToken));break;default:si()}})}forEachTarget(t,i){t.targetIds.length>0?t.targetIds.forEach(i):this.Qt.forEach((u,f)=>{this.te(f)&&i(f)})}ne(t){var i;const u=t.targetId,f=t.Vt.count,_=this.se(u);if(_){const C=_.target;if(yc(C))if(0===f){const F=new Qn(C.path);this.Yt(u,F,Po.newNoDocument(F,Kn.min()))}else _i(1===f);else{const F=this.ie(u);if(F!==f){const K=this.re(t,F);0!==K&&(this.ee(u),this.Wt=this.Wt.insert(u,2===K?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch")),null===(i=Il.instance)||void 0===i||i.notifyOnExistenceFilterMismatch(function(re,Be,_t){var tn,xn,Bn,bi,wi,_r;const Lr={localCacheCount:Be,existenceFilterCount:_t.count},kr=_t.unchangedNames;return kr&&(Lr.bloomFilter={applied:0===re,hashCount:null!==(tn=kr?.hashCount)&&void 0!==tn?tn:0,bitmapLength:null!==(bi=null===(Bn=null===(xn=kr?.bits)||void 0===xn?void 0:xn.bitmap)||void 0===Bn?void 0:Bn.length)&&void 0!==bi?bi:0,padding:null!==(_r=null===(wi=kr?.bits)||void 0===wi?void 0:wi.padding)&&void 0!==_r?_r:0}),Lr}(K,F,t.Vt))}}}}re(t,i){const{unchangedNames:u,count:f}=t.Vt;if(!u||!u.bits)return 1;const{bits:{bitmap:_="",padding:C=0},hashCount:F=0}=u;let K,re;try{K=_c(_).toUint8Array()}catch(Be){if(Be instanceof wp)return Mr("Decoding the base64 bloom filter in existence filter failed ("+Be.message+"); ignoring the bloom filter and falling back to full re-query."),1;throw Be}try{re=new Om(K,C,F)}catch(Be){return Mr(Be instanceof Wd?"BloomFilter error: ":"Applying bloom filter failed: ",Be),1}return 0===re.It?1:f!==i-this.oe(t.targetId,re)?2:0}oe(t,i){const u=this.Gt.getRemoteKeysForTarget(t);let f=0;return u.forEach(_=>{const C=this.Gt.ue(),F=`projects/${C.projectId}/databases/${C.database}/documents/${_.path.canonicalString()}`;i.vt(F)||(this.Yt(t,_,null),f++)}),f}ce(t){const i=new Map;this.Qt.forEach((_,C)=>{const F=this.se(C);if(F){if(_.current&&yc(F.target)){const K=new Qn(F.target.path);null!==this.jt.get(K)||this.ae(C,K)||this.Yt(C,K,Po.newNoDocument(K,t))}_.Mt&&(i.set(C,_.Ot()),_.Ft())}});let u=mr();this.zt.forEach((_,C)=>{let F=!0;C.forEachWhile(K=>{const re=this.se(K);return!re||"TargetPurposeLimboResolution"===re.purpose||(F=!1,!1)}),F&&(u=u.add(_))}),this.jt.forEach((_,C)=>C.setReadTime(t));const f=new hf(t,i,this.Wt,this.jt,u);return this.jt=gs(),this.zt=g0(),this.Wt=new Jr(Rt),f}Jt(t,i){if(!this.te(t))return;const u=this.ae(t,i.key)?2:0;this.Zt(t).Bt(i.key,u),this.jt=this.jt.insert(i.key,i),this.zt=this.zt.insert(i.key,this.he(i.key).add(t))}Yt(t,i,u){if(!this.te(t))return;const f=this.Zt(t);this.ae(t,i)?f.Bt(i,1):f.Lt(i),this.zt=this.zt.insert(i,this.he(i).delete(t)),u&&(this.jt=this.jt.insert(i,u))}removeTarget(t){this.Qt.delete(t)}ie(t){const i=this.Zt(t).Ot();return this.Gt.getRemoteKeysForTarget(t).size+i.addedDocuments.size-i.removedDocuments.size}qt(t){this.Zt(t).qt()}Zt(t){let i=this.Qt.get(t);return i||(i=new Ec,this.Qt.set(t,i)),i}he(t){let i=this.zt.get(t);return i||(i=new Oo(Rt),this.zt=this.zt.insert(t,i)),i}te(t){const i=null!==this.se(t);return i||In("WatchChangeAggregator","Detected inactive target",t),i}se(t){const i=this.Qt.get(t);return i&&i.kt?null:this.Gt.le(t)}ee(t){this.Qt.set(t,new Ec),this.Gt.getRemoteKeysForTarget(t).forEach(i=>{this.Yt(t,i,null)})}ae(t,i){return this.Gt.getRemoteKeysForTarget(t).has(i)}}function g0(){return new Jr(Qn.comparator)}function m0(){return new Jr(Qn.comparator)}const _0={asc:"ASCENDING",desc:"DESCENDING"},JC={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},b1={and:"AND",or:"OR"};class QC{constructor(t,i){this.databaseId=t,this.useProto3Json=i}}function qp(l,t){return l.useProto3Json||j(t)?t:{value:t}}function Hu(l,t){return l.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function v0(l,t){return l.useProto3Json?t.toBase64():t.toUint8Array()}function XC(l,t){return Hu(l,t.toTimestamp())}function ms(l){return _i(!!l),Kn.fromTimestamp(function(t){const i=Ka(t);return new Oi(i.seconds,i.nanos)}(l))}function b0(l,t){return(i=l,new Gi(["projects",i.projectId,"databases",i.database])).child("documents").child(t).canonicalString();var i}function wb(l){const t=Gi.fromString(l);return _i(Im(t)),t}function eu(l,t){return b0(l.databaseId,t.path)}function Jl(l,t){const i=wb(t);if(i.get(1)!==l.databaseId.projectId)throw new Sn(Jt.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Sn(Jt.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Qn(Hp(i))}function jp(l,t){return b0(l.databaseId,t)}function gf(l){const t=wb(l);return 4===t.length?Gi.emptyPath():Hp(t)}function Kd(l){return new Gi(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Hp(l){return _i(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function la(l,t,i){return{name:eu(l,t),fields:i.value.mapValue.fields}}function ns(l,t,i){const u=Jl(l,t.name),f=ms(t.updateTime),_=t.createTime?ms(t.createTime):Kn.min(),C=new Gs({mapValue:{fields:t.fields}}),F=Po.newFoundDocument(u,f,_,C);return i&&F.setHasCommittedMutations(),i?F.setHasCommittedMutations():F}function $u(l,t){let i;if(t instanceof uf)i={update:la(l,t.key,t.value)};
1else if(t instanceof ju)i={delete:eu(l,t.key)};else if(t instanceof el)i={update:la(l,t.key,t.data),updateMask:Pb(t.fieldMask)};else{if(!(t instanceof Em))return si();i={verify:eu(l,t.key)}}return t.fieldTransforms.length>0&&(i.updateTransforms=t.fieldTransforms.map(u=>function(f,_){const C=_.transform;if(C instanceof Jc)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(C instanceof Mc)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:C.elements}};if(C instanceof Qc)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:C.elements}};if(C instanceof Vu)return{fieldPath:_.field.canonicalString(),increment:C.gt};throw si()}(0,u))),t.precondition.isNone||(i.currentDocument=void 0!==(f=t.precondition).updateTime?{updateTime:XC(l,f.updateTime)}:void 0!==f.exists?{exists:f.exists}:si()),i;var f}function mf(l,t){const i=t.currentDocument?void 0!==(f=t.currentDocument).updateTime?ts.updateTime(ms(f.updateTime)):void 0!==f.exists?ts.exists(f.exists):ts.none():ts.none(),u=t.updateTransforms?t.updateTransforms.map(f=>function(_,C){let F=null;"setToServerValue"in C?(_i("REQUEST_TIME"===C.setToServerValue),F=new Jc):"appendMissingElements"in C?F=new Mc(C.appendMissingElements.values||[]):"removeAllFromArray"in C?F=new Qc(C.removeAllFromArray.values||[]):"increment"in C?F=new Vu(_,C.increment):si();const K=Kr.fromServerFormat(C.fieldPath);return new af(K,F)}(l,f)):[];var f;if(t.update){const f=Jl(l,t.update.name),_=new Gs({mapValue:{fields:t.update.fields}});if(t.updateMask){const C=new $s((t.updateMask.fieldPaths||[]).map(re=>Kr.fromServerFormat(re)));return new el(f,_,C,i,u)}return new uf(f,_,i,u)}if(t.delete){const f=Jl(l,t.delete);return new ju(f,i)}if(t.verify){const f=Jl(l,t.verify);return new Em(f,i)}return si()}function C0(l,t){return{documents:[jp(l,t.path)]}}function Pm(l,t){const i={structuredQuery:{}},u=t.path;null!==t.collectionGroup?(i.parent=jp(l,u),i.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i.parent=jp(l,u.popLast()),i.structuredQuery.from=[{collectionId:u.lastSegment()}]);const f=function(K){if(0!==K.length)return Am(uo.create(K,"and"))}(t.filters);f&&(i.structuredQuery.where=f);const _=function(K){if(0!==K.length)return K.map(re=>{return{field:Tc((Be=re).field),direction:y1(Be.dir)};var Be})}(t.orderBy);_&&(i.structuredQuery.orderBy=_);const C=qp(l,t.limit);var F,K;return null!==C&&(i.structuredQuery.limit=C),t.startAt&&(i.structuredQuery.startAt={before:(F=t.startAt).inclusive,values:F.position}),t.endAt&&(i.structuredQuery.endAt={before:!(K=t.endAt).inclusive,values:K.position}),i}function x0(l){let t=gf(l.parent);const i=l.structuredQuery,u=i.from?i.from.length:0;let f=null;if(u>0){_i(1===u);const Be=i.from[0];Be.allDescendants?f=Be.collectionId:t=t.child(Be.collectionId)}let _=[];i.where&&(_=function(Be){const _t=Ob(Be);return _t instanceof uo&&Dp(_t)?_t.getFilters():[_t]}(i.where));let C=[];i.orderBy&&(C=i.orderBy.map(Be=>{return new Uu(Gu((_t=Be).field),function(tn){switch(tn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(_t.direction));var _t}));let F=null;i.limit&&(F=function(Be){let _t;return _t="object"==typeof Be?Be.value:Be,j(_t)?null:_t}(i.limit));let K=null;var Be;i.startAt&&(K=new oa((Be=i.startAt).values||[],!!Be.before));let re=null;return i.endAt&&(re=function(Be){return new oa(Be.values||[],!Be.before)}(i.endAt)),Yc(t,f,C,_,F,"F",K,re)}function Ob(l){return void 0!==l.unaryFilter?function(t){switch(t.unaryFilter.op){case"IS_NAN":const i=Gu(t.unaryFilter.field);return Vr.create(i,"==",{doubleValue:NaN});case"IS_NULL":const u=Gu(t.unaryFilter.field);return Vr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Gu(t.unaryFilter.field);return Vr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Gu(t.unaryFilter.field);return Vr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return si()}}(l):void 0!==l.fieldFilter?Vr.create(Gu((t=l).fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return si()}}(t.fieldFilter.op),t.fieldFilter.value):void 0!==l.compositeFilter?function(t){return uo.create(t.compositeFilter.filters.map(i=>Ob(i)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return si()}}(t.compositeFilter.op))}(l):si();var t}function y1(l){return _0[l]}function _f(l){return JC[l]}function Dm(l){return b1[l]}function Tc(l){return{fieldPath:l.canonicalString()}}function Gu(l){return Kr.fromServerFormat(l.fieldPath)}function Am(l){return l instanceof Vr?function(t){if("=="===t.op){if(r0(t.value))return{unaryFilter:{field:Tc(t.field),op:"IS_NAN"}};if(Lu(t.value))return{unaryFilter:{field:Tc(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(r0(t.value))return{unaryFilter:{field:Tc(t.field),op:"IS_NOT_NA
1N"}};if(Lu(t.value))return{unaryFilter:{field:Tc(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Tc(t.field),op:_f(t.op),value:t.value}}}(l):l instanceof uo?function(t){const i=t.getFilters().map(u=>Am(u));return 1===i.length?i[0]:{compositeFilter:{op:Dm(t.op),filters:i}}}(l):si()}function Pb(l){const t=[];return l.fields.forEach(i=>t.push(i.canonicalString())),{fieldPaths:t}}function Im(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Ql{constructor(t,i,u,f,_=Kn.min(),C=Kn.min(),F=ps.EMPTY_BYTE_STRING,K=null){this.target=t,this.targetId=i,this.purpose=u,this.sequenceNumber=f,this.snapshotVersion=_,this.lastLimboFreeSnapshotVersion=C,this.resumeToken=F,this.expectedCount=K}withSequenceNumber(t){return new Ql(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(t,i){return new Ql(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,t,null)}withExpectedCount(t){return new Ql(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,t)}withLastLimboFreeSnapshotVersion(t){return new Ql(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken,this.expectedCount)}}class $p{constructor(t){this.fe=t}}function w0(l,t){const i=t.key,u={prefixPath:i.getCollectionPath().popLast().toArray(),collectionGroup:i.collectionGroup,documentId:i.path.lastSegment(),readTime:Yd(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument())u.document={name:eu(f=l.fe,(_=t).key),fields:_.data.value.mapValue.fields,updateTime:Hu(f,_.version.toTimestamp()),createTime:Hu(f,_.createTime.toTimestamp())};else if(t.isNoDocument())u.noDocument={path:i.path.toArray(),readTime:tu(t.version)};else{if(!t.isUnknownDocument())return si();u.unknownDocument={path:i.path.toArray(),version:tu(t.version)}}var f,_;return u}function Yd(l){const t=l.toTimestamp();return[t.seconds,t.nanoseconds]}function tu(l){const t=l.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function nu(l){const t=new Oi(l.seconds,l.nanoseconds);return Kn.fromTimestamp(t)}function tl(l,t){const i=(t.baseMutations||[]).map(_=>mf(l.fe,_));for(let _=0;_<t.mutations.length-1;++_){const C=t.mutations[_];_+1<t.mutations.length&&void 0!==t.mutations[_+1].transform&&(C.updateTransforms=t.mutations[_+1].transform.fieldTransforms,t.mutations.splice(_+1,1),++_)}const u=t.mutations.map(_=>mf(l.fe,_)),f=Oi.fromMillis(t.localWriteTimeMs);return new Tm(t.batchId,f,i,u)}function vf(l){const t=nu(l.readTime),i=void 0!==l.lastLimboFreeSnapshotVersion?nu(l.lastLimboFreeSnapshotVersion):Kn.min();let u;var f;return void 0!==l.query.documents?(_i(1===(f=l.query).documents.length),u=N(Qa(gf(f.documents[0])))):u=N(x0(l.query)),new Ql(u,l.targetId,"TargetPurposeListen",l.lastListenSequenceNumber,t,i,ps.fromBase64String(l.resumeToken))}function Gp(l,t){const i=tu(t.snapshotVersion),u=tu(t.lastLimboFreeSnapshotVersion);let f;f=yc(t.target)?C0(l.fe,t.target):Pm(l.fe,t.target);const _=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:Ja(t.target),readTime:i,resumeToken:_,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:u,query:f}}function Jd(l){const t=x0({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?Ve(t,t.limit,"L"):t}function Sm(l,t){return new Xc(t.largestBatchId,mf(l.fe,t.overlayMutation))}function Wp(l,t){const i=t.path.lastSegment();return[l,rt(t.path.popLast()),i]}function bf(l,t,i,u){return{indexId:l,uid:t.uid||"",sequenceNumber:i,readTime:tu(u.readTime),documentKey:rt(u.documentKey.path),largestBatchId:u.largestBatchId}}class Wu{getBundleMetadata(t,i){return km(t).get(i).next(u=>{if(u)return{id:(f=u).bundleId,createTime:nu(f.createTime),version:f.version};var f})}saveBundleMetadata(t,i){return km(t).put({bundleId:(u=i).id,createTime:tu(ms(u.createTime)),version:u.version});var u}getNamedQuery(t,i){return Kp(t).get(i).next(u=>{if(u)return{name:(f=u).name,query:Jd(f.bundledQuery),readTime:nu(f.readTime)};var f})}saveNamedQuery(t,i){return Kp(t).put({name:(u=i).name,readTime:tu(ms(u.readTime)),bundledQuery:u.bundledQuery});var u}}function km(l){return Hs(l,"bundles")}
1function Kp(l){return Hs(l,"namedQueries")}class Yp{constructor(t,i){this.serializer=t,this.userId=i}static de(t,i){return new Yp(t,i.uid||"")}getOverlay(t,i){return yf(t).get(Wp(this.userId,i)).next(u=>u?Sm(this.serializer,u):null)}getOverlays(t,i){const u=Xa();return rn.forEach(i,f=>this.getOverlay(t,f).next(_=>{null!==_&&u.set(f,_)})).next(()=>u)}saveOverlays(t,i,u){const f=[];return u.forEach((_,C)=>{const F=new Xc(i,C);f.push(this.we(t,F))}),rn.waitFor(f)}removeOverlaysForBatchId(t,i,u){const f=new Set;i.forEach(C=>f.add(rt(C.getCollectionPath())));const _=[];return f.forEach(C=>{const F=IDBKeyRange.bound([this.userId,C,u],[this.userId,C,u+1],!1,!0);_.push(yf(t).J("collectionPathOverlayIndex",F))}),rn.waitFor(_)}getOverlaysForCollection(t,i,u){const f=Xa(),_=rt(i),C=IDBKeyRange.bound([this.userId,_,u],[this.userId,_,Number.POSITIVE_INFINITY],!0);return yf(t).j("collectionPathOverlayIndex",C).next(F=>{for(const K of F){const re=Sm(this.serializer,K);f.set(re.getKey(),re)}return f})}getOverlaysForCollectionGroup(t,i,u,f){const _=Xa();let C;const F=IDBKeyRange.bound([this.userId,i,u],[this.userId,i,Number.POSITIVE_INFINITY],!0);return yf(t).X({index:"collectionGroupOverlayIndex",range:F},(K,re,Be)=>
vendor: 4,184 bytes, line 1
1{const _t=Sm(this.serializer,re);_.size()<f||_t.largestBatchId===C?(_.set(_t.getKey(),_t),C=_t.largestBatchId):Be.done()}).next(()=>_)}we(t,i){return yf(t).put(function(u,f,_){const[C,F,K]=Wp(f,_.mutation.key);return{userId:f,collectionPath:F,documentId:K,collectionGroup:_.mutation.key.getCollectionGroup(),largestBatchId:_.largestBatchId,overlayMutation:$u(u.fe,_.mutation)}}(this.serializer,this.userId,i))}}function yf(l){return Hs(l,"documentOverlays")}class iu{constructor(){}_e(t,i){this.me(t,i),i.ge()}me(t,i){if("nullValue"in t)this.ye(i,5);else if("booleanValue"in t)this.ye(i,10),i.pe(t.booleanValue?1:0);else if("integerValue"in t)this.ye(i,15),i.pe(Ho(t.integerValue));else if("doubleValue"in t){const u=Ho(t.doubleValue);isNaN(u)?this.ye(i,13):(this.ye(i,15),Y(u)?i.pe(0):i.pe(u))}else if("timestampValue"in t){const u=t.timestampValue;this.ye(i,20),"string"==typeof u?i.Ie(u):(i.Ie(`${u.seconds||""}`),i.pe(u.nanos||0))}else if("stringValue"in t)this.Te(t.stringValue,i),this.Ee(i);else if("bytesValue"in t)this.ye(i,30),i.Ae(_c(t.bytesValue)),this.Ee(i);else if("referenceValue"in t)this.ve(t.referenceValue,i);else if("geoPointValue"in t){const u=t.geoPointValue;this.ye(i,45),i.pe(u.latitude||0),i.pe(u.longitude||0)}else"mapValue"in t?o0(t)?this.ye(i,Number.MAX_SAFE_INTEGER):(this.Re(t.mapValue,i),this.Ee(i)):"arrayValue"in t?(this.Pe(t.arrayValue,i),this.Ee(i)):si()}Te(t,i){this.ye(i,25),this.be(t,i)}be(t,i){i.Ie(t)}Re(t,i){const u=t.fields||{};this.ye(i,55);for(const f of Object.keys(u))this.Te(f,i),this.me(u[f],i)}Pe(t,i){const u=t.values||[];this.ye(i,50);for(const f of u)this.me(f,i)}ve(t,i){this.ye(i,37),Qn.fromName(t).path.forEach(u=>{this.ye(i,60),this.be(u,i)})}ye(t,i){t.pe(i)}Ee(t){t.pe(2)}}function Qd(l){if(0===l)return 8;let t=0;return l>>4==0&&(t+=4,l<<=4),l>>6==0&&(t+=2,l<<=2),l>>7==0&&(t+=1),t}function M0(l){const t=64-function(i){let u=0;for(let f=0;f<8;++f){const _=Qd(255&i[f]);if(u+=_,8!==_)break}return u}(l);return Math.ceil(t/8)}iu.Ve=new iu;class Db{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Se(t){const i=t[Symbol.iterator]();let u=i.next();for(;!u.done;)this.De(u.value),u=i.next();this.Ce()}xe(t){const i=t[Symbol.iterator]();let u=i.next();for(;!u.done;)this.Ne(u.value),u=i.next();this.ke()}Me(t){for(const i of t){const u=i.charCodeAt(0);if(u<128)this.De(u);else if(u<2048)this.De(960|u>>>6),this.De(128|63&u);else if(i<"\ud800"||"\udbff"<i)this.De(480|u>>>12),this.De(128|63&u>>>6),this.De(128|63&u);else{const f=i.codePointAt(0);this.De(240|f>>>18),this.De(128|63&f>>>12),this.De(128|63&f>>>6),this.De(128|63&f)}}this.Ce()}$e(t){for(const i of t){const u=i.charCodeAt(0);if(u<128)this.Ne(u);else if(u<2048)this.Ne(960|u>>>6),this.Ne(128|63&u);else if(i<"\ud800"||"\udbff"<i)this.Ne(480|u>>>12),this.Ne(128|63&u>>>6),this.Ne(128|63&u);else{const f=i.codePointAt(0);this.Ne(240|f>>>18),this.Ne(128|63&f>>>12),this.Ne(128|63&f>>>6),this.Ne(128|63&f)}}this.ke()}Oe(t){const i=this.Fe(t),u=M0(i);this.Be(1+u),this.buffer[this.position++]=255&u;for(let f=i.length-u;f<i.length;++f)this.buffer[this.position++]=255&i[f]}Le(t){const i=this.Fe(t),u=M0(i);this.Be(1+u),this.buffer[this.position++]=~(255&u);for(let f=i.length-u;f<i.length;++f)this.buffer[this.position++]=~(255&i[f])}qe(){this.Ue(255),this.Ue(255)}Ke(){this.Ge(255),this.Ge(255)}reset(){this.position=0}seed(t){this.Be(t.length),this.buffer.set(t,this.position),this.position+=t.length}Qe(){return this.buffer.slice(0,this.position)}Fe(t){const i=function(f){const _=new DataView(new ArrayBuffer(8));return _.setFloat64(0,f,!1),new Uint8Array(_.buffer)}(t),u=0!=(128&i[0]);i[0]^=u?255:128;for(let f=1;f<i.length;++f)i[f]^=u?255:0;return i}De(t){const i=255&t;0===i?(this.Ue(0),this.Ue(255)):255===i?(this.Ue(255),this.Ue(0)):this.Ue(i)}Ne(t){const i=255&t;0===i?(this.Ge(0),this.Ge(255)):255===i?(this.Ge(255),this.Ge(0)):this.Ge(t)}Ce(){this.Ue(0),this.Ue(1)}ke(){this.Ge(0),this.Ge(1)}Ue(t){this.Be(1),this.buffer[this.position++]=t}Ge(t){this.Be(1),this.buffer[this.position++]=~t}Be(t){const i=t+this.position;if(i<=this.buffer.length)return;let u=2*this.buffer.length;u<i&&(u=i);const f=new Uint8Array(u);f.set(this.buffer),this.buffer=f}}
1class Ab{constructor(t){this.je=t}Ae(t){this.je.Se(t)}Ie(t){this.je.Me(t)}pe(t){this.je.Oe(t)}ge(){this.je.qe()}}class Ib{constructor(t){this.je=t}Ae(t){this.je.xe(t)}Ie(t){this.je.$e(t)}pe(t){this.je.Le(t)}ge(){this.je.Ke()}}class Ku{constructor(){this.je=new Db,this.ze=new Ab(this.je),this.We=new Ib(this.je)}seed(t){this.je.seed(t)}He(t){return 0===t?this.ze:this.We}Qe(){return this.je.Qe()}reset(){this.je.reset()}}class Yu{constructor(t,i,u,f){this.indexId=t,this.documentKey=i,this.arrayValue=u,this.directionalValue=f}Je(){const t=this.directionalValue.length,i=0===t||255===this.directionalValue[t-1]?t+1:t,u=new Uint8Array(i);return u.set(this.directionalValue,0),i!==t?u.set([0],this.directionalValue.length):++u[u.length-1],new Yu(this.indexId,this.documentKey,this.arrayValue,u)}}function Oc(l,t){let i=l.indexId-t.indexId;return 0!==i?i:(i=E0(l.arrayValue,t.arrayValue),0!==i?i:(i=E0(l.directionalValue,t.directionalValue),0!==i?i:Qn.comparator(l.documentKey,t.documentKey)))}function E0(l,t){for(let i=0;i<l.length&&i<t.length;++i){const u=l[i]-t[i];if(0!==u)return u}return l.length-t.length}class T0{constructor(t){this.collectionId=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment(),this.Ye=t.orderBy,this.Xe=[];for(const i of t.filters){const u=i;u.isInequality()?this.Ze=u:this.Xe.push(u)}}tn(t){_i(t.collectionGroup===this.collectionId);const i=Vc(t);if(void 0!==i&&!this.en(i))return!1;const u=xl(t);let f=new Set,_=0,C=0;for(;_<u.length&&this.en(u[_]);++_)f=f.add(u[_].fieldPath.canonicalString());if(_===u.length)return!0;if(void 0!==this.Ze){if(!f.has(this.Ze.field.canonicalString())){const F=u[_];if(!this.nn(this.Ze,F)||!this.sn(this.Ye[C++],F))return!1}++_}for(;_<u.length;++_){const F=u[_];if(C>=this.Ye.length||!this.sn(this.Ye[C++],F))return!1}return!0}en(t){for(const i of this.Xe)if(this.nn(i,t))return!0;return!1}nn(t,i){return!(void 0===t||!t.field.isEqual(i.fieldPath))&&2===i.kind==("array-contains"===t.op||"array-contains-any"===t.op)}sn(t,i){return!!t.field.isEqual(i.fieldPath)&&(0===i.kind&&"asc"===t.dir||1===i.kind&&"desc"===t.dir)}}function Sb(l){var t,i;if(_i(l instanceof Vr||l instanceof uo),l instanceof Vr){if(l instanceof Kc){const f=(null===(i=null===(t=l.value.arrayValue)||void 0===t?void 0:t.values)||void 0===i?void 0:i.map(_=>Vr.create(l.field,"==",_)))||[];return uo.create(f,"or")}return l}const u=l.filters.map(f=>Sb(f));return uo.create(u,l.op)}function kb(l){if(0===l.getFilters().length)return[];const t=Qu(Sb(l));return _i(ru(t)),Ju(t)||Rm(t)?[t]:t.getFilters()}function Ju(l){return l instanceof Vr}function Rm(l){return l instanceof uo&&Dp(l)}function ru(l){return Ju(l)||Rm(l)||function(t){if(t instanceof uo&&Qh(t)){for(const i of t.getFilters())if(!Ju(i)&&!Rm(i))return!1;return!0}return!1}(l)}function Qu(l){if(_i(l instanceof Vr||l instanceof uo),l instanceof Vr)return l;if(1===l.filters.length)return Qu(l.filters[0]);const t=l.filters.map(u=>Qu(u));let i=uo.create(t,l.op);return i=xf(i),ru(i)?i:(_i(i instanceof uo),_i(Wc(i)),_i(i.filters.length>1),i.filters.reduce((u,f)=>Cf(u,f)))}function Cf(l,t){let i;return _i(l instanceof Vr||l instanceof uo),_i(t instanceof Vr||t instanceof uo),i=l instanceof Vr?t instanceof Vr?uo.create([l,t],"and"):Rb(l,t):t instanceof Vr?Rb(t,l):function(u,f){if(_i(u.filters.length>0&&f.filters.length>0),Wc(u)&&Wc(f))return Ta(u,f.getFilters());const _=Qh(u)?u:f,C=Qh(u)?f:u,F=_.filters.map(K=>Cf(K,C));return uo.create(F,"or")}(l,t),xf(i)}function Rb(l,t){if(Wc(t))return Ta(t,l.getFilters());{const i=t.filters.map(u=>Cf(l,u));return uo.create(i,"or")}}function xf(l){if(_i(l instanceof Vr||l instanceof uo),l instanceof Vr)return l;const t=l.getFilters();if(1===t.length)return xf(t[0]);if(ym(l))return l;const i=t.map(f=>xf(f)),u=[];return i.forEach(f=>{f instanceof Vr?u.push(f):f instanceof uo&&(f.op===l.op?u.push(...f.filters):u.push(f))}),1===u.length?u[0]:uo.create(u,l.op)}class Nb{constructor(){this.rn=new O0}addToCollectionParentIndex(t,i){return this.rn.add(i),rn.resolve()}getCollectionParents(t,i){return rn.resolve(this.rn.getEntries(i))}addFieldIndex(t,i){return rn.resolve()}deleteFieldIndex(t,i){return rn.resolve()}getDocumentsMatchingTarget(t,i){return rn.resolve(null)}getIndexType(t,i){return rn.resolve(0)}getFieldIndexes(t,i){return rn.resolve([])}getNextCollectionGroupToUpdate(t){return rn.resolve(null)}getMinOffset(t,i){return rn.resolve(Da.min())}getMinOffsetFromCollectionGroup(t,i){return rn.resolve(Da.min())}updateCollectionGroup(t,i,u){return rn.resolve()}updateIndexEntries(t,i){return rn.resolve()}}class O0{constructor(){this.index={}}add(t){const i=t.lastSegment(),u=t.popLast(),f=this.index[i]||new Oo(Gi.comparator),_=!f.has(u);return this.index[i]=f.add(u),_}has(t){const i=t.lastSegment(),u=t.popLast(),f=this.index[i];return f&&f.has(u)}getEntries(t){return(this.index[t]||new Oo(Gi.comparator)).toArray()}}const wf=new Uint8Array(0);class P0{constructor(t,i){this.user=t,this.databaseId=i,this.on=new O0,this.un=new Ws(u=>Ja(u),(u,f)=>Gl(u,f)),this.uid=t.uid||""}addToCollectionParentIndex(t,i){if(!this.on.has(i)){const u=i.lastSegment(),f=i.popLast();t.addOnCommittedListener(()=>{this.on.add(i)});const _={collectionId:u,parent:rt(f)};return Nm(t).put(_)}return rn.resolve()}getCollectionParents(t,i){const u=[],f=IDBKeyRange.bound([i,""],[tr(i),""],!1,!0);return Nm(t).j(f).next(_=>{for(const C of _){if(C.collectionId!==i)break;u.push($n(C.parent))}return u})}addFieldIndex(t,i){const u=Xd(t),f={indexId:(C=i).indexId,collectionGroup:C.collectionGroup,fields:C.fields.map(F=>[F.fieldPath.canonicalString(),F.kind])};
1var C;delete f.indexId;const _=u.add(f);if(i.indexState){const C=Mf(t);return _.next(F=>{C.put(bf(F,this.user,i.indexState.sequenceNumber,i.indexState.offset))})}return _.next()}deleteFieldIndex(t,i){const u=Xd(t),f=Mf(t),_=Xu(t);return u.delete(i.indexId).next(()=>f.delete(IDBKeyRange.bound([i.indexId],[i.indexId+1],!1,!0))).next(()=>_.delete(IDBKeyRange.bound([i.indexId],[i.indexId+1],!1,!0)))}getDocumentsMatchingTarget(t,i){const u=Xu(t);let f=!0;const _=new Map;return rn.forEach(this.cn(i),C=>this.an(t,C).next(F=>{f&&(f=!!F),_.set(C,F)})).next(()=>{if(f){let C=mr();const F=[];return rn.forEach(_,(K,re)=>{var Be;In("IndexedDbIndexManager",`Using index ${Be=K,`id=${Be.indexId}|cg=${Be.collectionGroup}|f=${Be.fields.map(kr=>`${kr.fieldPath}:${kr.kind}`).join(",")}`} to execute ${Ja(i)}`);const _t=function(kr,Ds){const Go=Vc(Ds);if(void 0===Go)return null;for(const Bo of Cc(kr,Go.fieldPath))switch(Bo.op){case"array-contains-any":return Bo.value.arrayValue.values||[];case"array-contains":return[Bo.value]}return null}(re,K),tn=function(kr,Ds){const Go=new Map;for(const Bo of xl(Ds))for(const ka of Cc(kr,Bo.fieldPath))switch(ka.op){case"==":case"in":Go.set(Bo.fieldPath.canonicalString(),ka.value);break;case"not-in":case"!=":return Go.set(Bo.fieldPath.canonicalString(),ka.value),Array.from(Go.values())}return null}(re,K),xn=function(kr,Ds){const Go=[];let Bo=!0;for(const ka of xl(Ds)){const Gr=0===ka.kind?Sp(kr,ka.fieldPath,kr.startAt):kp(kr,ka.fieldPath,kr.startAt);Go.push(Gr.value),Bo&&(Bo=Gr.inclusive)}return new oa(Go,Bo)}(re,K),Bn=function(kr,Ds){const Go=[];let Bo=!0;for(const ka of xl(Ds)){const Gr=0===ka.kind?kp(kr,ka.fieldPath,kr.endAt):Sp(kr,ka.fieldPath,kr.endAt);Go.push(Gr.value),Bo&&(Bo=Gr.inclusive)}return new oa(Go,Bo)}(re,K),bi=this.hn(K,re,xn),wi=this.hn(K,re,Bn),_r=this.ln(K,re,tn),Lr=this.fn(K.indexId,_t,bi,xn.inclusive,wi,Bn.inclusive,_r);return rn.forEach(Lr,kr=>u.H(kr,i.limit).next(Ds=>{Ds.forEach(Go=>{const Bo=Qn.fromSegments(Go.documentKey);C.has(Bo)||(C=C.add(Bo),F.push(Bo))})}))}).next(()=>F)}return rn.resolve(null)})}cn(t){let i=this.un.get(t);return i||(i=0===t.filters.length?[t]:kb(uo.create(t.filters,"and")).map(u=>Zu(t.path,t.collectionGroup,t.orderBy,u.getFilters(),t.limit,t.startAt,t.endAt)),this.un.set(t,i),i)}fn(t,i,u,f,_,C,F){const K=(null!=i?i.length:1)*Math.max(u.length,_.length),re=K/(null!=i?i.length:1),Be=[];for(let _t=0;_t<K;++_t){const tn=i?this.dn(i[_t/re]):wf,xn=this.wn(t,tn,u[_t%re],f),Bn=this._n(t,tn,_[_t%re],C),bi=F.map(wi=>this.wn(t,tn,wi,!0));Be.push(...this.createRange(xn,Bn,bi))}return Be}wn(t,i,u,f){const _=new Yu(t,Qn.empty(),i,u);return f?_:_.Je()}_n(t,i,u,f){const _=new Yu(t,Qn.empty(),i,u);return f?_.Je():_}an(t,i){const u=new T0(i),f=null!=i.collectionGroup?i.collectionGroup:i.path.lastSegment();return this.getFieldIndexes(t,f).next(_=>{let C=null;for(const F of _)u.tn(F)&&(!C||F.fields.length>C.fields.length)&&(C=F);return C})}getIndexType(t,i){let u=2;const f=this.cn(i);return rn.forEach(f,_=>this.an(t,_).next(C=>{C?0!==u&&C.fields.length<function(F){let K=new Oo(Kr.comparator),re=!1;for(const Be of F.filters)for(const _t of Be.getFlattenedFilters())_t.field.isKeyField()||("array-contains"===_t.op||"array-contains-any"===_t.op?re=!0:K=K.add(_t.field));for(const Be of F.orderBy)Be.field.isKeyField()||(K=K.add(Be.field));return K.size+(re?1:0)}(_)&&(u=1):u=0})).next(()=>null!==i.limit&&f.length>1&&2===u?1:u)}mn(t,i){const u=new Ku;for(const f of xl(t)){const _=i.data.field(f.fieldPath);if(null==_)return null;const C=u.He(f.kind);iu.Ve._e(_,C)}return u.Qe()}dn(t){const i=new Ku;return iu.Ve._e(t,i.He(0)),i.Qe()}gn(t,i){const u=new Ku;return iu.Ve._e($l(this.databaseId,i),u.He(function(f){const _=xl(f);return 0===_.length?0:_[_.length-1].kind}(t))),u.Qe()}ln(t,i,u){if(null===u)return[];let f=[];f.push(new Ku);let _=0;for(const C of xl(t)){const F=u[_++];for(const K of f)if(this.yn(i,C.fieldPath)&&Wh(F))f=this.pn(f,C,F);else{const re=K.He(C.kind);iu.Ve._e(F,re)}}return this.In(f)}hn(t,i,u){return this.ln(t,i,u.position)}In(t){const i=[];for(let u=0;u<t.length;++u)i[u]=t[u].Qe();return i}pn(t,i,u){const f=[...t],_=[];for(const C of u.arrayValue.values||[])for(const F of f){const K=new Ku;
1K.seed(F.Qe()),iu.Ve._e(C,K.He(i.kind)),_.push(K)}return _}yn(t,i){return!!t.filters.find(u=>u instanceof Vr&&u.field.isEqual(i)&&("in"===u.op||"not-in"===u.op))}getFieldIndexes(t,i){const u=Xd(t),f=Mf(t);return(i?u.j("collectionGroupIndex",IDBKeyRange.bound(i,i)):u.j()).next(_=>{const C=[];return rn.forEach(_,F=>f.get([F.indexId,this.uid]).next(K=>{C.push(function(re,Be){const _t=Be?new Iu(Be.sequenceNumber,new Da(nu(Be.readTime),new Qn($n(Be.documentKey)),Be.largestBatchId)):Iu.empty(),tn=re.fields.map(([xn,Bn])=>new gc(Kr.fromServerFormat(xn),Bn));return new js(re.indexId,re.collectionGroup,tn,_t)}(F,K))})).next(()=>C)})}getNextCollectionGroupToUpdate(t){return this.getFieldIndexes(t).next(i=>0===i.length?null:(i.sort((u,f)=>{const _=u.indexState.sequenceNumber-f.indexState.sequenceNumber;return 0!==_?_:Rt(u.collectionGroup,f.collectionGroup)}),i[0].collectionGroup))}updateCollectionGroup(t,i,u){const f=Xd(t),_=Mf(t);return this.Tn(t).next(C=>f.j("collectionGroupIndex",IDBKeyRange.bound(i,i)).next(F=>rn.forEach(F,K=>_.put(bf(K.indexId,this.user,C,u)))))}updateIndexEntries(t,i){const u=new Map;return rn.forEach(i,(f,_)=>{const C=u.get(f.collectionGroup);return(C?rn.resolve(C):this.getFieldIndexes(t,f.collectionGroup)).next(F=>(u.set(f.collectionGroup,F),rn.forEach(F,K=>this.En(t,f,K).next(re=>{const Be=this.An(_,K);return re.isEqual(Be)?rn.resolve():this.vn(t,_,K,re,Be)}))))})}Rn(t,i,u,f){return Xu(t).put({indexId:f.indexId,uid:this.uid,arrayValue:f.arrayValue,directionalValue:f.directionalValue,orderedDocumentKey:this.gn(u,i.key),documentKey:i.key.path.toArray()})}Pn(t,i,u,f){return Xu(t).delete([f.indexId,this.uid,f.arrayValue,f.directionalValue,this.gn(u,i.key),i.key.path.toArray()])}En(t,i,u){const f=Xu(t);let _=new Oo(Oc);return f.X({index:"documentKeyIndex",range:IDBKeyRange.only([u.indexId,this.uid,this.gn(u,i)])},(C,F)=>{_=_.add(new Yu(u.indexId,i,F.arrayValue,F.directionalValue))}).next(()=>_)}An(t,i){let u=new Oo(Oc);const f=this.mn(i,t);if(null==f)return u;const _=Vc(i);if(null!=_){const C=t.data.field(_.fieldPath);if(Wh(C))for(const F of C.arrayValue.values||[])u=u.add(new Yu(i.indexId,t.key,this.dn(F),f))}else u=u.add(new Yu(i.indexId,t.key,wf,f));return u}vn(t,i,u,f,_){In("IndexedDbIndexManager","Updating index entries for document '%s'",i.key);const C=[];return function(F,K,re,Be,_t){const tn=F.getIterator(),xn=K.getIterator();let Bn=cl(tn),bi=cl(xn);for(;Bn||bi;){let wi=!1,_r=!1;if(Bn&&bi){const Lr=re(Bn,bi);Lr<0?_r=!0:Lr>0&&(wi=!0)}else null!=Bn?_r=!0:wi=!0;wi?(Be(bi),bi=cl(xn)):_r?(_t(Bn),Bn=cl(tn)):(Bn=cl(tn),bi=cl(xn))}}(f,_,Oc,F=>{C.push(this.Rn(t,i,u,F))},F=>{C.push(this.Pn(t,i,u,F))}),rn.waitFor(C)}Tn(t){let i=1;return Mf(t).X({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(u,f,_)=>{_.done(),i=f.sequenceNumber+1}).next(()=>i)}createRange(t,i,u){u=u.sort((C,F)=>Oc(C,F)).filter((C,F,K)=>!F||0!==Oc(C,K[F-1]));const f=[];f.push(t);for(const C of u){const F=Oc(C,t),K=Oc(C,i);if(0===F)f[0]=t.Je();else if(F>0&&K<0)f.push(C),f.push(C.Je());else if(K>0)break}f.push(i);const _=[];for(let C=0;C<f.length;C+=2){if(this.bn(f[C],f[C+1]))return[];_.push(IDBKeyRange.bound([f[C].indexId,this.uid,f[C].arrayValue,f[C].directionalValue,wf,[]],[f[C+1].indexId,this.uid,f[C+1].arrayValue,f[C+1].directionalValue,wf,[]]))}return _}bn(t,i){return Oc(t,i)>0}getMinOffsetFromCollectionGroup(t,i){return this.getFieldIndexes(t,i).next(Jp)}getMinOffset(t,i){return rn.mapArray(this.cn(i),u=>this.an(t,u).next(f=>f||si())).next(Jp)}}function Nm(l){return Hs(l,"collectionParents")}function Xu(l){return Hs(l,"indexEntries")}function Xd(l){return Hs(l,"indexConfiguration")}function Mf(l){return Hs(l,"indexState")}function Jp(l){_i(0!==l.length);let t=l[0].indexState.offset,i=t.largestBatchId;for(let u=1;u<l.length;u++){const f=l[u].indexState.offset;yp(f,t)<0&&(t=f),i<f.largestBatchId&&(i=f.largestBatchId)}return new Da(t.readTime,t.documentKey,i)}const eh={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class Oa{constructor(t,i,u){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=u}static withCacheSize(t){return new Oa(t,Oa.DEFAULT_COLLECTION_PE
1RCENTILE,Oa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}function D0(l,t,i){const u=l.store("mutations"),f=l.store("documentMutations"),_=[],C=IDBKeyRange.only(i.batchId);let F=0;const K=u.X({range:C},(Be,_t,tn)=>(F++,tn.delete()));_.push(K.next(()=>{_i(1===F)}));const re=[];for(const Be of i.mutations){const _t=Yr(t,Be.key.path,i.batchId);_.push(f.delete(_t)),re.push(Be.key)}return rn.waitFor(_).next(()=>re)}function Qp(l){if(!l)return 0;let t;if(l.document)t=l.document;else if(l.unknownDocument)t=l.unknownDocument;else{if(!l.noDocument)throw si();t=l.noDocument}return JSON.stringify(t).length}Oa.DEFAULT_COLLECTION_PERCENTILE=10,Oa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Oa.DEFAULT=new Oa(41943040,Oa.DEFAULT_COLLECTION_PERCENTILE,Oa.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Oa.DISABLED=new Oa(-1,0,0);class Fm{constructor(t,i,u,f){this.userId=t,this.serializer=i,this.indexManager=u,this.referenceDelegate=f,this.Vn={}}static de(t,i,u,f){_i(""!==t.uid);const _=t.isAuthenticated()?t.uid:"";return new Fm(_,i,u,f)}checkEmpty(t){let i=!0;const u=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Pc(t).X({index:"userMutationsIndex",range:u},(f,_,C)=>{i=!1,C.done()}).next(()=>i)}addMutationBatch(t,i,u,f){const _=th(t),C=Pc(t);return C.add({}).next(F=>{_i("number"==typeof F);const K=new Tm(F,i,u,f),re=function(tn,xn,Bn){const bi=Bn.baseMutations.map(_r=>$u(tn.fe,_r)),wi=Bn.mutations.map(_r=>$u(tn.fe,_r));return{userId:xn,batchId:Bn.batchId,localWriteTimeMs:Bn.localWriteTime.toMillis(),baseMutations:bi,mutations:wi}}(this.serializer,this.userId,K),Be=[];let _t=new Oo((tn,xn)=>Rt(tn.canonicalString(),xn.canonicalString()));for(const tn of f){const xn=Yr(this.userId,tn.key.path,F);_t=_t.add(tn.key.path.popLast()),Be.push(C.put(re)),Be.push(_.put(xn,Fs))}return _t.forEach(tn=>{Be.push(this.indexManager.addToCollectionParentIndex(t,tn))}),t.addOnCommittedListener(()=>{this.Vn[F]=K.keys()}),rn.waitFor(Be).next(()=>K)})}lookupMutationBatch(t,i){return Pc(t).get(i).next(u=>u?(_i(u.userId===this.userId),tl(this.serializer,u)):null)}Sn(t,i){return this.Vn[i]?rn.resolve(this.Vn[i]):this.lookupMutationBatch(t,i).next(u=>{if(u){const f=u.keys();return this.Vn[i]=f,f}return null})}getNextMutationBatchAfterBatchId(t,i){const u=i+1,f=IDBKeyRange.lowerBound([this.userId,u]);let _=null;return Pc(t).X({index:"userMutationsIndex",range:f},(C,F,K)=>{F.userId===this.userId&&(_i(F.batchId>=u),_=tl(this.serializer,F)),K.done()}).next(()=>_)}getHighestUnacknowledgedBatchId(t){const i=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let u=-1;return Pc(t).X({index:"userMutationsIndex",range:i,reverse:!0},(f,_,C)=>{u=_.batchId,C.done()}).next(()=>u)}getAllMutationBatches(t){const i=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Pc(t).j("userMutationsIndex",i).next(u=>u.map(f=>tl(this.serializer,f)))}getAllMutationBatchesAffectingDocumentKey(t,i){const u=Ci(this.userId,i.path),f=IDBKeyRange.lowerBound(u),_=[];return th(t).X({range:f},(C,F,K)=>{const[re,Be,_t]=C,tn=$n(Be);if(re===this.userId&&i.path.isEqual(tn))return Pc(t).get(_t).next(xn=>{if(!xn)throw si();_i(xn.userId===this.userId),_.push(tl(this.serializer,xn))});K.done()}).next(()=>_)}getAllMutationBatchesAffectingDocumentKeys(t,i){let u=new Oo(Rt);const f=[];return i.forEach(_=>{const C=Ci(this.userId,_.path),F=IDBKeyRange.lowerBound(C),K=th(t).X({range:F},(re,Be,_t)=>{const[tn,xn,Bn]=re,bi=$n(xn);tn===this.userId&&_.path.isEqual(bi)?u=u.add(Bn):_t.done()});f.push(K)}),rn.waitFor(f).next(()=>this.Dn(t,u))}getAllMutationBatchesAffectingQuery(t,i){const u=i.path,f=u.length+1,_=Ci(this.userId,u),C=IDBKeyRange.lowerBound(_);let F=new Oo(Rt);return th(t).X({range:C},(K,re,Be)=>
1{const[_t,tn,xn]=K,Bn=$n(tn);_t===this.userId&&u.isPrefixOf(Bn)?Bn.length===f&&(F=F.add(xn)):Be.done()}).next(()=>this.Dn(t,F))}Dn(t,i){const u=[],f=[];return i.forEach(_=>{f.push(Pc(t).get(_).next(C=>{if(null===C)throw si();_i(C.userId===this.userId),u.push(tl(this.serializer,C))}))}),rn.waitFor(f).next(()=>u)}removeMutationBatch(t,i){return D0(t.ht,this.userId,i).next(u=>(t.addOnCommittedListener(()=>{this.Cn(i.batchId)}),rn.forEach(u,f=>this.referenceDelegate.markPotentiallyOrphaned(t,f))))}Cn(t){delete this.Vn[t]}performConsistencyCheck(t){return this.checkEmpty(t).next(i=>{if(!i)return rn.resolve();const u=IDBKeyRange.lowerBound([this.userId]),f=[];return th(t).X({range:u},(_,C,F)=>{if(_[0]===this.userId){const K=$n(_[1]);f.push(K)}else F.done()}).next(()=>{_i(0===f.length)})})}containsKey(t,i){return Lm(t,this.userId,i)}xn(t){return ed(t).get(this.userId).next(i=>i||{userId:this.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""})}}function Lm(l,t,i){const u=Ci(t,i.path),f=u[1],_=IDBKeyRange.lowerBound(u);let C=!1;return th(l).X({range:_,Y:!0},(F,K,re)=>{const[Be,_t,tn]=F;Be===t&&_t===f&&(C=!0),re.done()}).next(()=>C)}function Pc(l){return Hs(l,"mutations")}function th(l){return Hs(l,"documentMutations")}function ed(l){return Hs(l,"mutationQueues")}class Aa{constructor(t){this.Nn=t}next(){return this.Nn+=2,this.Nn}static kn(){return new Aa(0)}static Mn(){return new Aa(-1)}}class Fb{constructor(t,i){this.referenceDelegate=t,this.serializer=i}allocateTargetId(t){return this.$n(t).next(i=>{const u=new Aa(i.highestTargetId);return i.highestTargetId=u.next(),this.On(t,i).next(()=>i.highestTargetId)})}getLastRemoteSnapshotVersion(t){return this.$n(t).next(i=>Kn.fromTimestamp(new Oi(i.lastRemoteSnapshotVersion.seconds,i.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(t){return this.$n(t).next(i=>i.highestListenSequenceNumber)}setTargetsMetadata(t,i,u){return this.$n(t).next(f=>(f.highestListenSequenceNumber=i,u&&(f.lastRemoteSnapshotVersion=u.toTimestamp()),i>f.highestListenSequenceNumber&&(f.highestListenSequenceNumber=i),this.On(t,f)))}addTargetData(t,i){return this.Fn(t,i).next(()=>this.$n(t).next(u=>(u.targetCount+=1,this.Bn(i,u),this.On(t,u))))}updateTargetData(t,i){return this.Fn(t,i)}removeTargetData(t,i){return this.removeMatchingKeysForTargetId(t,i.targetId).next(()=>nh(t).delete(i.targetId)).next(()=>this.$n(t)).next(u=>(_i(u.targetCount>0),u.targetCount-=1,this.On(t,u)))}removeTargets(t,i,u){let f=0;const _=[];return nh(t).X((C,F)=>{const K=vf(F);K.sequenceNumber<=i&&null===u.get(K.targetId)&&(f++,_.push(this.removeTargetData(t,K)))}).next(()=>rn.waitFor(_)).next(()=>f)}forEachTarget(t,i){return nh(t).X((u,f)=>{const _=vf(f);i(_)})}$n(t){return Lb(t).get("targetGlobalKey").next(i=>(_i(null!==i),i))}On(t,i){return Lb(t).put("targetGlobalKey",i)}Fn(t,i){return nh(t).put(Gp(this.serializer,i))}Bn(t,i){let u=!1;return t.targetId>i.highestTargetId&&(i.highestTargetId=t.targetId,u=!0),t.sequenceNumber>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t.sequenceNumber,u=!0),u}getTargetCount(t){return this.$n(t).next(i=>i.targetCount)}getTargetData(t,i){const u=Ja(i),f=IDBKeyRange.bound([u,Number.NEGATIVE_INFINITY],[u,Number.POSITIVE_INFINITY]);let _=null;return nh(t).X({range:f,index:"queryTargetsIndex"},(C,F,K)=>{const re=vf(F);Gl(i,re.target)&&(_=re,K.done())}).next(()=>_)}addMatchingKeys(t,i,u){const f=[],_=td(t);return i.forEach(C=>{const F=rt(C.path);f.push(_.put({targetId:u,path:F})),f.push(this.referenceDelegate.addReference(t,u,C))}),rn.waitFor(f)}removeMatchingKeys(t,i,u){const f=td(t);return rn.forEach(i,_=>{const C=rt(_.path);return rn.waitFor([f.delete([u,C]),this.referenceDelegate.removeReference(t,u,_)])})}removeMatchingKeysForTargetId(t,i){const u=td(t),f=IDBKeyRange.bound([i],[i+1],!1,!0);return u.delete(f)}getMatchingKeysForTargetId(t,i){const u=IDBKeyRange.bound([i],[i+1],!1,!0),f=td(t);let _=mr();return f.X({range:u,Y:!0},(C,F,K)=>{const re=$n(C[1]),Be=new Qn(re);_=_.add(Be)}).next(()=>_)}containsKey(t,i){const u=rt(i.path),f=IDBKeyRange.bound([u],[tr(u)],!1,!0);let _=0;return td(t).X({index:"documentTargetsIndex",Y:!0,range:f},([C,F],K,re)=>{0!==C&&(_++,re.done())}).next(()=>_>0)}le(t,i){return nh(t).get(i).next(u=>u?vf(u):null)}}function nh(l){return Hs(l,"targets")}
1function Lb(l){return Hs(l,"targetGlobal")}function td(l){return Hs(l,"targetDocuments")}function Um([l,t],[i,u]){const f=Rt(l,i);return 0===f?Rt(t,u):f}class x1{constructor(t){this.Ln=t,this.buffer=new Oo(Um),this.qn=0}Un(){return++this.qn}Kn(t){const i=[t,this.Un()];if(this.buffer.size<this.Ln)this.buffer=this.buffer.add(i);else{const u=this.buffer.last();Um(i,u)<0&&(this.buffer=this.buffer.delete(u).add(i))}}get maxValue(){return this.buffer.last()[0]}}class Zm{constructor(t,i,u){this.garbageCollector=t,this.asyncQueue=i,this.localStore=u,this.Gn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.Qn(6e4)}stop(){this.Gn&&(this.Gn.cancel(),this.Gn=null)}get started(){return null!==this.Gn}Qn(t){var i=this;In("LruGarbageCollector",`Garbage collection scheduled in ${t}ms`),this.Gn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",t,(0,g.Z)(function*(){i.Gn=null;try{yield i.localStore.collectGarbage(i.garbageCollector)}catch(u){hs(u)?In("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",u):yield Ml(u)}yield i.Qn(3e5)}))}}class w1{constructor(t,i){this.jn=t,this.params=i}calculateTargetCount(t,i){return this.jn.zn(t).next(u=>Math.floor(i/100*u))}nthSequenceNumber(t,i){if(0===i)return rn.resolve(T.ct);const u=new x1(i);return this.jn.forEachTarget(t,f=>u.Kn(f.sequenceNumber)).next(()=>this.jn.Wn(t,f=>u.Kn(f))).next(()=>u.maxValue)}removeTargets(t,i,u){return this.jn.removeTargets(t,i,u)}removeOrphanedDocuments(t,i){return this.jn.removeOrphanedDocuments(t,i)}collect(t,i){return-1===this.params.cacheSizeCollectionThreshold?(In("LruGarbageCollector","Garbage collection skipped; disabled"),rn.resolve(eh)):this.getCacheSize(t).next(u=>u<this.params.cacheSizeCollectionThreshold?(In("LruGarbageCollector",`Garbage collection skipped; Cache size ${u} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),eh):this.Hn(t,i))}getCacheSize(t){return this.jn.getCacheSize(t)}Hn(t,i){let u,f,_,C,F,K,re;const Be=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next(_t=>(_t>this.params.maximumSequenceNumbersToCollect?(In("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${_t}`),f=this.params.maximumSequenceNumbersToCollect):f=_t,C=Date.now(),this.nthSequenceNumber(t,f))).next(_t=>(u=_t,F=Date.now(),this.removeTargets(t,u,i))).next(_t=>(_=_t,K=Date.now(),this.removeOrphanedDocuments(t,u))).next(_t=>(re=Date.now(),lo()<=me.in.DEBUG&&In("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${C-Be}ms\n\tDetermined least recently used ${f} in `+(F-C)+`ms\n\tRemoved ${_} targets in `+(K-F)+`ms\n\tRemoved ${_t} documents in `+(re-K)+`ms\nTotal Duration: ${re-Be}ms`),rn.resolve({didRun:!0,sequenceNumbersCollected:f,targetsRemoved:_,documentsRemoved:_t})))}}class Ub{constructor(t,i){this.db=t,this.garbageCollector=function Bm(l,t){return new w1(l,t)}(this,i)}zn(t){const i=this.Jn(t);return this.db.getTargetCache().getTargetCount(t).next(u=>i.next(f=>u+f))}Jn(t){let i=0;return this.Wn(t,u=>{i++}).next(()=>i)}forEachTarget(t,i){return this.db.getTargetCache().forEachTarget(t,i)}Wn(t,i){return this.Yn(t,(u,f)=>i(f))}addReference(t,i,u){return Ef(t,u)}removeReference(t,i,u){return Ef(t,u)}removeTargets(t,i,u){return this.db.getTargetCache().removeTargets(t,i,u)}markPotentiallyOrphaned(t,i){return Ef(t,i)}Xn(t,i){return function(u,f){let _=!1;return ed(u).Z(C=>Lm(u,C,f).next(F=>(F&&(_=!0),rn.resolve(!F)))).next(()=>_)}(t,i)}removeOrphanedDocuments(t,i){const u=this.db.getRemoteDocumentCache().newChangeBuffer(),f=[];let _=0;return this.Yn(t,(C,F)=>{if(F<=i){const K=this.Xn(t,C).next(re=>{if(!re)return _++,u.getEntry(t,C).next(()=>(u.removeEntry(C,Kn.min()),td(t).delete([0,rt(C.path)])))});f.push(K)}}).next(()=>rn.waitFor(f)).next(()=>u.apply(t)).next(()=>_)}removeTarget(t,i){const u=i.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,u)}updateLimboDocument(t,i){return Ef(t,i)}Yn(t,i){const u=td(t);let f,_=T.ct;return u.X({index:"documentTargetsIndex"},([C,F],{path:K,sequenceNumber:re})=>{0===C?(_!==T.ct&&i(new Qn($n(f)),_),_=re,f=K):_=T.ct}).next(()=>{_!==T.ct&&i(new Qn($n(f)),_)})}getCacheSize(t){return this.db.getRemoteDocumentCache().getSize(t)}
1}function Ef(l,t){return td(l).put((u=l.currentSequenceNumber,{targetId:0,path:rt(t.path),sequenceNumber:u}));var u}class A0{constructor(){this.changes=new Ws(t=>t.toString(),(t,i)=>t.isEqual(i)),this.changesApplied=!1}addEntry(t){this.assertNotApplied(),this.changes.set(t.key,t)}removeEntry(t,i){this.assertNotApplied(),this.changes.set(t,Po.newInvalidDocument(t).setReadTime(i))}getEntry(t,i){this.assertNotApplied();const u=this.changes.get(i);return void 0!==u?rn.resolve(u):this.getFromCache(t,i)}getEntries(t,i){return this.getAllFromCache(t,i)}apply(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)}assertNotApplied(){}}class Zb{constructor(t){this.serializer=t}setIndexManager(t){this.indexManager=t}addEntry(t,i,u){return nd(t).put(u)}removeEntry(t,i,u){return nd(t).delete(function(f,_){const C=f.path.toArray();return[C.slice(0,C.length-2),C[C.length-2],Yd(_),C[C.length-1]]}(i,u))}updateMetadata(t,i){return this.getMetadata(t).next(u=>(u.byteSize+=i,this.Zn(t,u)))}getEntry(t,i){let u=Po.newInvalidDocument(i);return nd(t).X({index:"documentKeyIndex",range:IDBKeyRange.only(Xp(i))},(f,_)=>{u=this.ts(i,_)}).next(()=>u)}es(t,i){let u={size:0,document:Po.newInvalidDocument(i)};return nd(t).X({index:"documentKeyIndex",range:IDBKeyRange.only(Xp(i))},(f,_)=>{u={document:this.ts(i,_),size:Qp(_)}}).next(()=>u)}getEntries(t,i){let u=gs();return this.ns(t,i,(f,_)=>{const C=this.ts(f,_);u=u.insert(f,C)}).next(()=>u)}ss(t,i){let u=gs(),f=new Jr(Qn.comparator);return this.ns(t,i,(_,C)=>{const F=this.ts(_,C);u=u.insert(_,F),f=f.insert(_,Qp(C))}).next(()=>({documents:u,rs:f}))}ns(t,i,u){if(i.isEmpty())return rn.resolve();let f=new Oo(S0);i.forEach(K=>f=f.add(K));const _=IDBKeyRange.bound(Xp(f.first()),Xp(f.last())),C=f.getIterator();let F=C.getNext();return nd(t).X({index:"documentKeyIndex",range:_},(K,re,Be)=>{const _t=Qn.fromSegments([...re.prefixPath,re.collectionGroup,re.documentId]);for(;F&&S0(F,_t)<0;)u(F,null),F=C.getNext();F&&F.isEqual(_t)&&(u(F,re),F=C.hasNext()?C.getNext():null),F?Be.G(Xp(F)):Be.done()}).next(()=>{for(;F;)u(F,null),F=C.hasNext()?C.getNext():null})}getDocumentsMatchingQuery(t,i,u,f){const _=i.path,C=[_.popLast().toArray(),_.lastSegment(),Yd(u.readTime),u.documentKey.path.isEmpty()?"":u.documentKey.path.lastSegment()],F=[_.popLast().toArray(),_.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return nd(t).j(IDBKeyRange.bound(C,F,!0)).next(K=>{let re=gs();for(const Be of K){const _t=this.ts(Qn.fromSegments(Be.prefixPath.concat(Be.collectionGroup,Be.documentId)),Be);_t.isFoundDocument()&&(vi(i,_t)||f.has(_t.key))&&(re=re.insert(_t.key,_t))}return re})}getAllFromCollectionGroup(t,i,u,f){let _=gs();const C=I0(i,u),F=I0(i,Da.max());return nd(t).X({index:"collectionGroupIndex",range:IDBKeyRange.bound(C,F,!0)},(K,re,Be)=>
1{const _t=this.ts(Qn.fromSegments(re.prefixPath.concat(re.collectionGroup,re.documentId)),re);_=_.insert(_t.key,_t),_.size===f&&Be.done()}).next(()=>_)}newChangeBuffer(t){return new Bb(this,!!t&&t.trackRemovals)}getSize(t){return this.getMetadata(t).next(i=>i.byteSize)}getMetadata(t){return zm(t).get("remoteDocumentGlobalKey").next(i=>(_i(!!i),i))}Zn(t,i){return zm(t).put("remoteDocumentGlobalKey",i)}ts(t,i){if(i){const u=function C1(l,t){let i;if(t.document)i=ns(l.fe,t.document,!!t.hasCommittedMutations);else if(t.noDocument){const u=Qn.fromSegments(t.noDocument.path),f=nu(t.noDocument.readTime);i=Po.newNoDocument(u,f),t.hasCommittedMutations&&i.setHasCommittedMutations()}else{if(!t.unknownDocument)return si();{const u=Qn.fromSegments(t.unknownDocument.path),f=nu(t.unknownDocument.version);i=Po.newUnknownDocument(u,f)}}return t.readTime&&i.setReadTime(function(u){const f=new Oi(u[0],u[1]);return Kn.fromTimestamp(f)}(t.readTime)),i}(this.serializer,i);if(!u.isNoDocument()||!u.version.isEqual(Kn.min()))return u}return Po.newInvalidDocument(t)}}function dl(l){return new Zb(l)}class Bb extends A0{constructor(t,i){super(),this.os=t,this.trackRemovals=i,this.us=new Ws(u=>u.toString(),(u,f)=>u.isEqual(f))}applyChanges(t){const i=[];let u=0,f=new Oo((_,C)=>Rt(_.canonicalString(),C.canonicalString()));
1return this.changes.forEach((_,C)=>{const F=this.us.get(_);if(i.push(this.os.removeEntry(t,_,F.readTime)),C.isValidDocument()){const K=w0(this.os.serializer,C);f=f.add(_.path.popLast()),u+=Qp(K)-F.size,i.push(this.os.addEntry(t,_,K))}else if(u-=F.size,this.trackRemovals){const K=w0(this.os.serializer,C.convertToNoDocument(Kn.min()));i.push(this.os.addEntry(t,_,K))}}),f.forEach(_=>{i.push(this.os.indexManager.addToCollectionParentIndex(t,_))}),i.push(this.os.updateMetadata(t,u)),rn.waitFor(i)}getFromCache(t,i){return this.os.es(t,i).next(u=>(this.us.set(i,{size:u.size,readTime:u.document.readTime}),u.document))}getAllFromCache(t,i){return this.os.ss(t,i).next(({documents:u,rs:f})=>(f.forEach((_,C)=>{this.us.set(_,{size:C,readTime:u.get(_).readTime})}),u))}}function zm(l){return Hs(l,"remoteDocumentGlobal")}function nd(l){return Hs(l,"remoteDocumentsV14")}function Xp(l){const t=l.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function I0(l,t){const i=t.documentKey.path.toArray();return[l,Yd(t.readTime),i.slice(0,i.length-2),i.length>0?i[i.length-1]:""]}function S0(l,t){const i=l.path.toArray(),u=t.path.toArray();let f=0;for(let _=0;_<i.length-2&&_<u.length-2;++_)if(f=Rt(i[_],u[_]),f)return f;return f=Rt(i.length,u.length),f||(f=Rt(i[i.length-2],u[u.length-2]),f||Rt(i[i.length-1],u[u.length-1]))}class k0{constructor(t,i){this.overlayedDocument=t,this.mutatedFields=i}}class eg{constructor(t,i,u,f){this.remoteDocumentCache=t,this.mutationQueue=i,this.documentOverlayCache=u,this.indexManager=f}getDocument(t,i){let u=null;return this.documentOverlayCache.getOverlay(t,i).next(f=>(u=f,this.remoteDocumentCache.getEntry(t,i))).next(f=>(null!==u&&cf(u.mutation,f,$s.empty(),Oi.now()),f))}getDocuments(t,i){return this.remoteDocumentCache.getEntries(t,i).next(u=>this.getLocalViewOfDocuments(t,u,mr()).next(()=>u))}getLocalViewOfDocuments(t,i,u=mr()){const f=Xa();return this.populateOverlays(t,f,i).next(()=>this.computeViews(t,i,f,u).next(_=>{let C=Kl();return _.forEach((F,K)=>{C=C.insert(F,K.overlayedDocument)}),C}))}getOverlayedDocuments(t,i){const u=Xa();return this.populateOverlays(t,u,i).next(()=>this.computeViews(t,i,u,mr()))}populateOverlays(t,i,u){const f=[];return u.forEach(_=>{i.has(_)||f.push(_)}),this.documentOverlayCache.getOverlays(t,f).next(_=>{_.forEach((C,F)=>{i.set(C,F)})})}computeViews(t,i,u,f){let _=gs();const C=wc(),F=wc();return i.forEach((K,re)=>{const Be=u.get(re.key);f.has(re.key)&&(void 0===Be||Be.mutation instanceof el)?_=_.insert(re.key,re):void 0!==Be?(C.set(re.key,Be.mutation.getFieldMask()),cf(Be.mutation,re,Be.mutation.getFieldMask(),Oi.now())):C.set(re.key,$s.empty())}),this.recalculateAndSaveOverlays(t,_).next(K=>(K.forEach((re,Be)=>C.set(re,Be)),i.forEach((re,Be)=>{var _t;return F.set(re,new k0(Be,null!==(_t=C.get(re))&&void 0!==_t?_t:null))}),F))}recalculateAndSaveOverlays(t,i){const u=wc();let f=new Jr((C,F)=>C-F),_=mr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(t,i).next(C=>{for(const F of C)F.keys().forEach(K=>{const re=i.get(K);if(null===re)return;let Be=u.get(K)||$s.empty();Be=F.applyToLocalView(re,Be),u.set(K,Be);const _t=(f.get(F.batchId)||mr()).add(K);f=f.insert(F.batchId,_t)})}).next(()=>{const C=[],F=f.getReverseIterator();for(;F.hasNext();){const K=F.getNext(),re=K.key,Be=K.value,_t=sf();Be.forEach(tn=>{if(!_.has(tn)){const xn=Mm(i.get(tn),u.get(tn));null!==xn&&_t.set(tn,xn),_=_.add(tn)}}),C.push(this.documentOverlayCache.saveOverlays(t,re,_t))}return rn.waitFor(C)}).next(()=>u)}recalculateAndSaveOverlaysForDocumentKeys(t,i){return this.remoteDocumentCache.getEntries(t,i).next(u=>this.recalculateAndSaveOverlays(t,u))}getDocumentsMatchingQuery(t,i,u){return Qn.isDocumentKey((f=i).path)&&null===f.collectionGroup&&0===f.filters.length?this.getDocumentsMatchingDocumentQuery(t,i.path):b(i)?this.getDocumentsMatchingCollectionGroupQuery(t,i,u):this.getDocumentsMatchingCollectionQuery(t,i,u);var f}getNextDocuments(t,i,u,f){return this.remoteDocumentCache.getAllFromCollectionGroup(t,i,u,f).next(_=>{const C=f-_.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(t,i,u.largestBatchId,f-_.size):rn.resolve(Xa());let F=-1,K=_;return C.next(re=>
vendor: 4,112 bytes, line 1
1rn.forEach(re,(Be,_t)=>(F<_t.largestBatchId&&(F=_t.largestBatchId),_.get(Be)?rn.resolve():this.remoteDocumentCache.getEntry(t,Be).next(tn=>{K=K.insert(Be,tn)}))).next(()=>this.populateOverlays(t,re,_)).next(()=>this.computeViews(t,K,re,mr())).next(Be=>({batchId:F,changes:Rp(Be)})))})}getDocumentsMatchingDocumentQuery(t,i){return this.getDocument(t,new Qn(i)).next(u=>{let f=Kl();return u.isFoundDocument()&&(f=f.insert(u.key,u)),f})}getDocumentsMatchingCollectionGroupQuery(t,i,u){const f=i.collectionGroup;let _=Kl();return this.indexManager.getCollectionParents(t,f).next(C=>rn.forEach(C,F=>{const K=(re=i,Be=F.child(f),new Wl(Be,null,re.explicitOrderBy.slice(),re.filters.slice(),re.limit,re.limitType,re.startAt,re.endAt));var re,Be;return this.getDocumentsMatchingCollectionQuery(t,K,u).next(re=>{re.forEach((Be,_t)=>{_=_.insert(Be,_t)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(t,i,u){let f;return this.documentOverlayCache.getOverlaysForCollection(t,i.path,u.largestBatchId).next(_=>(f=_,this.remoteDocumentCache.getDocumentsMatchingQuery(t,i,u,f))).next(_=>{f.forEach((F,K)=>{const re=K.getKey();null===_.get(re)&&(_=_.insert(re,Po.newInvalidDocument(re)))});let C=Kl();return _.forEach((F,K)=>{const re=f.get(F);void 0!==re&&cf(re.mutation,K,$s.empty(),Oi.now()),vi(i,K)&&(C=C.insert(F,K))}),C})}}class ou{constructor(t){this.serializer=t,this.cs=new Map,this.hs=new Map}getBundleMetadata(t,i){return rn.resolve(this.cs.get(i))}saveBundleMetadata(t,i){var u;return this.cs.set(i.id,{id:(u=i).id,version:u.version,createTime:ms(u.createTime)}),rn.resolve()}getNamedQuery(t,i){return rn.resolve(this.hs.get(i))}saveNamedQuery(t,i){return this.hs.set(i.name,{name:(u=i).name,query:Jd(u.bundledQuery),readTime:ms(u.readTime)}),rn.resolve();var u}}class R0{constructor(){this.overlays=new Jr(Qn.comparator),this.ls=new Map}getOverlay(t,i){return rn.resolve(this.overlays.get(i))}getOverlays(t,i){const u=Xa();return rn.forEach(i,f=>this.getOverlay(t,f).next(_=>{null!==_&&u.set(f,_)})).next(()=>u)}saveOverlays(t,i,u){return u.forEach((f,_)=>{this.we(t,i,_)}),rn.resolve()}removeOverlaysForBatchId(t,i,u){const f=this.ls.get(u);return void 0!==f&&(f.forEach(_=>this.overlays=this.overlays.remove(_)),this.ls.delete(u)),rn.resolve()}getOverlaysForCollection(t,i,u){const f=Xa(),_=i.length+1,C=new Qn(i.child("")),F=this.overlays.getIteratorFrom(C);for(;F.hasNext();){const K=F.getNext().value,re=K.getKey();if(!i.isPrefixOf(re.path))break;re.path.length===_&&K.largestBatchId>u&&f.set(K.getKey(),K)}return rn.resolve(f)}getOverlaysForCollectionGroup(t,i,u,f){let _=new Jr((re,Be)=>re-Be);const C=this.overlays.getIterator();for(;C.hasNext();){const re=C.getNext().value;if(re.getKey().getCollectionGroup()===i&&re.largestBatchId>u){let Be=_.get(re.largestBatchId);null===Be&&(Be=Xa(),_=_.insert(re.largestBatchId,Be)),Be.set(re.getKey(),re)}}const F=Xa(),K=_.getIterator();for(;K.hasNext()&&(K.getNext().value.forEach((re,Be)=>F.set(re,Be)),!(F.size()>=f)););return rn.resolve(F)}we(t,i,u){const f=this.overlays.get(u.key);if(null!==f){const C=this.ls.get(f.largestBatchId).delete(u.key);this.ls.set(f.largestBatchId,C)}this.overlays=this.overlays.insert(u.key,new Xc(i,u));let _=this.ls.get(i);void 0===_&&(_=mr(),this.ls.set(i,_)),this.ls.set(i,_.add(u.key))}}class sr{constructor(){this.fs=new Oo(Es.ds),this.ws=new Oo(Es._s)}isEmpty(){return this.fs.isEmpty()}addReference(t,i){const u=new Es(t,i);this.fs=this.fs.add(u),this.ws=this.ws.add(u)}gs(t,i){t.forEach(u=>this.addReference(u,i))}removeReference(t,i){this.ys(new Es(t,i))}ps(t,i){t.forEach(u=>this.removeReference(u,i))}Is(t){const i=new Qn(new Gi([])),u=new Es(i,t),f=new Es(i,t+1),_=[];return this.ws.forEachInRange([u,f],C=>{this.ys(C),_.push(C.key)}),_}Ts(){this.fs.forEach(t=>this.ys(t))}ys(t){this.fs=this.fs.delete(t),this.ws=this.ws.delete(t)}Es(t){const i=new Qn(new Gi([])),u=new Es(i,t),f=new Es(i,t+1);let _=mr();return this.ws.forEachInRange([u,f],C=>{_=_.add(C.key)}),_}containsKey(t){const i=new Es(t,0),u=this.fs.firstAfterOrEqual(i);return null!==u&&t.isEqual(u.key)}}class Es{constructor(t,i){this.key=t,this.As=i}
1static ds(t,i){return Qn.comparator(t.key,i.key)||Rt(t.As,i.As)}static _s(t,i){return Rt(t.As,i.As)||Qn.comparator(t.key,i.key)}}class tg{constructor(t,i){this.indexManager=t,this.referenceDelegate=i,this.mutationQueue=[],this.vs=1,this.Rs=new Oo(Es.ds)}checkEmpty(t){return rn.resolve(0===this.mutationQueue.length)}addMutationBatch(t,i,u,f){const _=this.vs;this.vs++;const C=new Tm(_,i,u,f);this.mutationQueue.push(C);for(const F of f)this.Rs=this.Rs.add(new Es(F.key,_)),this.indexManager.addToCollectionParentIndex(t,F.key.path.popLast());return rn.resolve(C)}lookupMutationBatch(t,i){return rn.resolve(this.Ps(i))}getNextMutationBatchAfterBatchId(t,i){const f=this.bs(i+1),_=f<0?0:f;return rn.resolve(this.mutationQueue.length>_?this.mutationQueue[_]:null)}getHighestUnacknowledgedBatchId(){return rn.resolve(0===this.mutationQueue.length?-1:this.vs-1)}getAllMutationBatches(t){return rn.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(t,i){const u=new Es(i,0),f=new Es(i,Number.POSITIVE_INFINITY),_=[];return this.Rs.forEachInRange([u,f],C=>{const F=this.Ps(C.As);_.push(F)}),rn.resolve(_)}getAllMutationBatchesAffectingDocumentKeys(t,i){let u=new Oo(Rt);return i.forEach(f=>{const _=new Es(f,0),C=new Es(f,Number.POSITIVE_INFINITY);this.Rs.forEachInRange([_,C],F=>{u=u.add(F.As)})}),rn.resolve(this.Vs(u))}getAllMutationBatchesAffectingQuery(t,i){const u=i.path,f=u.length+1;let _=u;Qn.isDocumentKey(_)||(_=_.child(""));const C=new Es(new Qn(_),0);let F=new Oo(Rt);return this.Rs.forEachWhile(K=>{const re=K.key.path;return!!u.isPrefixOf(re)&&(re.length===f&&(F=F.add(K.As)),!0)},C),rn.resolve(this.Vs(F))}Vs(t){const i=[];return t.forEach(u=>{const f=this.Ps(u);null!==f&&i.push(f)}),i}removeMutationBatch(t,i){_i(0===this.Ss(i.batchId,"removed")),this.mutationQueue.shift();let u=this.Rs;return rn.forEach(i.mutations,f=>{const _=new Es(f.key,i.batchId);return u=u.delete(_),this.referenceDelegate.markPotentiallyOrphaned(t,f.key)}).next(()=>{this.Rs=u})}Cn(t){}containsKey(t,i){const u=new Es(i,0),f=this.Rs.firstAfterOrEqual(u);return rn.resolve(i.isEqual(f&&f.key))}performConsistencyCheck(t){return rn.resolve()}Ss(t,i){return this.bs(t)}bs(t){return 0===this.mutationQueue.length?0:t-this.mutationQueue[0].batchId}Ps(t){const i=this.bs(t);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Za{constructor(t){this.Ds=t,this.docs=new Jr(Qn.comparator),this.size=0}setIndexManager(t){this.indexManager=t}addEntry(t,i){const u=i.key,f=this.docs.get(u),_=f?f.size:0,C=this.Ds(i);return this.docs=this.docs.insert(u,{document:i.mutableCopy(),size:C}),this.size+=C-_,this.indexManager.addToCollectionParentIndex(t,u.path.popLast())}removeEntry(t){const i=this.docs.get(t);i&&(this.docs=this.docs.remove(t),this.size-=i.size)}getEntry(t,i){const u=this.docs.get(i);return rn.resolve(u?u.document.mutableCopy():Po.newInvalidDocument(i))}getEntries(t,i){let u=gs();return i.forEach(f=>{const _=this.docs.get(f);u=u.insert(f,_?_.document.mutableCopy():Po.newInvalidDocument(f))}),rn.resolve(u)}getDocumentsMatchingQuery(t,i,u,f){let _=gs();const C=i.path,F=new Qn(C.child("")),K=this.docs.getIteratorFrom(F);for(;K.hasNext();){const{key:re,value:{document:Be}}=K.getNext();if(!C.isPrefixOf(re.path))break;re.path.length>C.length+1||yp(Rd(Be),u)<=0||(f.has(Be.key)||vi(i,Be))&&(_=_.insert(Be.key,Be.mutableCopy()))}return rn.resolve(_)}getAllFromCollectionGroup(t,i,u,f){si()}Cs(t,i){return rn.forEach(this.docs,u=>i(u))}newChangeBuffer(t){return new N0(this)}getSize(t){return rn.resolve(this.size)}}class N0 extends A0{constructor(t){super(),this.os=t}applyChanges(t){const i=[];
vendor: 4,441 bytes, line 1
1return this.changes.forEach((u,f)=>{f.isValidDocument()?i.push(this.os.addEntry(t,f)):this.os.removeEntry(u)}),rn.waitFor(i)}getFromCache(t,i){return this.os.getEntry(t,i)}getAllFromCache(t,i){return this.os.getEntries(t,i)}}class Vm{constructor(t){this.persistence=t,this.xs=new Ws(i=>Ja(i),Gl),this.lastRemoteSnapshotVersion=Kn.min(),this.highestTargetId=0,this.Ns=0,this.ks=new sr,this.targetCount=0,this.Ms=Aa.kn()}forEachTarget(t,i){return this.xs.forEach((u,f)=>i(f)),rn.resolve()}getLastRemoteSnapshotVersion(t){return rn.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(t){return rn.resolve(this.Ns)}allocateTargetId(t){return this.highestTargetId=this.Ms.next(),rn.resolve(this.highestTargetId)}setTargetsMetadata(t,i,u){return u&&(this.lastRemoteSnapshotVersion=u),i>this.Ns&&(this.Ns=i),rn.resolve()}Fn(t){this.xs.set(t.target,t);const i=t.targetId;i>this.highestTargetId&&(this.Ms=new Aa(i),this.highestTargetId=i),t.sequenceNumber>this.Ns&&(this.Ns=t.sequenceNumber)}addTargetData(t,i){return this.Fn(i),this.targetCount+=1,rn.resolve()}updateTargetData(t,i){return this.Fn(i),rn.resolve()}removeTargetData(t,i){return this.xs.delete(i.target),this.ks.Is(i.targetId),this.targetCount-=1,rn.resolve()}removeTargets(t,i,u){let f=0;const _=[];return this.xs.forEach((C,F)=>{F.sequenceNumber<=i&&null===u.get(F.targetId)&&(this.xs.delete(C),_.push(this.removeMatchingKeysForTargetId(t,F.targetId)),f++)}),rn.waitFor(_).next(()=>f)}getTargetCount(t){return rn.resolve(this.targetCount)}getTargetData(t,i){const u=this.xs.get(i)||null;return rn.resolve(u)}addMatchingKeys(t,i,u){return this.ks.gs(i,u),rn.resolve()}removeMatchingKeys(t,i,u){this.ks.ps(i,u);const f=this.persistence.referenceDelegate,_=[];return f&&i.forEach(C=>{_.push(f.markPotentiallyOrphaned(t,C))}),rn.waitFor(_)}removeMatchingKeysForTargetId(t,i){return this.ks.Is(i),rn.resolve()}getMatchingKeysForTargetId(t,i){const u=this.ks.Es(i);return rn.resolve(u)}containsKey(t,i){return rn.resolve(this.ks.containsKey(i))}}class Tf{constructor(t,i){this.$s={},this.overlays={},this.Os=new T(0),this.Fs=!1,this.Fs=!0,this.referenceDelegate=t(this),this.Bs=new Vm(this),this.indexManager=new Nb,this.remoteDocumentCache=new Za(u=>this.referenceDelegate.Ls(u)),this.serializer=new $p(i),this.qs=new ou(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Fs=!1,Promise.resolve()}get started(){return this.Fs}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(t){return this.indexManager}getDocumentOverlayCache(t){let i=this.overlays[t.toKey()];return i||(i=new R0,this.overlays[t.toKey()]=i),i}getMutationQueue(t,i){let u=this.$s[t.toKey()];return u||(u=new tg(i,this.referenceDelegate),this.$s[t.toKey()]=u),u}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.qs}runTransaction(t,i,u){In("MemoryPersistence","Starting transaction:",t);const f=new F0(this.Os.next());return this.referenceDelegate.Us(),u(f).next(_=>this.referenceDelegate.Ks(f).next(()=>_)).toPromise().then(_=>(f.raiseOnCommittedEvent(),_))}Gs(t,i){return rn.or(Object.values(this.$s).map(u=>()=>u.containsKey(t,i)))}}class F0 extends Cp{constructor(t){super(),this.currentSequenceNumber=t}}class id{constructor(t){this.persistence=t,this.Qs=new sr,this.js=null}static zs(t){return new id(t)}get Ws(){if(this.js)return this.js;throw si()}addReference(t,i,u){return this.Qs.addReference(u,i),this.Ws.delete(u.toString()),rn.resolve()}removeReference(t,i,u){return this.Qs.removeReference(u,i),this.Ws.add(u.toString()),rn.resolve()}markPotentiallyOrphaned(t,i){return this.Ws.add(i.toString()),rn.resolve()}removeTarget(t,i){this.Qs.Is(i.targetId).forEach(f=>this.Ws.add(f.toString()));const u=this.persistence.getTargetCache();return u.getMatchingKeysForTargetId(t,i.targetId).next(f=>{f.forEach(_=>this.Ws.add(_.toString()))}).next(()=>u.removeTargetData(t,i))}Us(){this.js=new Set}Ks(t){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return rn.forEach(this.Ws,u=>{const f=Qn.fromPath(u);return this.Hs(t,f).next(_=>{_||i.removeEntry(f,Kn.min())})}).next(()=>(this.js=null,i.apply(t)))}updateLimboDocument(t,i){return this.Hs(t,i).next(u=>{u?this.Ws.delete(i.toString()):this.Ws.add(i.toString())})}Ls(t){return 0}Hs(t,i){return rn.or([()=>rn.resolve(this.Qs.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(t,i),()=>this.persistence.Gs(t,i)])}}
1class zb{constructor(t){this.serializer=t}O(t,i,u,f){const _=new El("createOrUpgrade",i);var F;u<1&&f>=1&&(t.createObjectStore("owner"),(F=t).createObjectStore("mutationQueues",{keyPath:"userId"}),F.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",gr,{unique:!0}),F.createObjectStore("documentMutations"),rd(t),function(F){F.createObjectStore("remoteDocuments")}(t));let C=rn.resolve();return u<3&&f>=3&&(0!==u&&(function(F){F.deleteObjectStore("targetDocuments"),F.deleteObjectStore("targets"),F.deleteObjectStore("targetGlobal")}(t),rd(t)),C=C.next(()=>function(F){const K=F.store("targetGlobal"),re={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:Kn.min().toTimestamp(),targetCount:0};return K.put("targetGlobalKey",re)}(_))),u<4&&f>=4&&(0!==u&&(C=C.next(()=>function(F,K){return K.store("mutations").j().next(re=>{F.deleteObjectStore("mutations"),F.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",gr,{unique:!0});const Be=K.store("mutations"),_t=re.map(tn=>Be.put(tn));return rn.waitFor(_t)})}(t,_))),C=C.next(()=>{!function(F){F.createObjectStore("clientMetadata",{keyPath:"clientId"})}(t)})),u<5&&f>=5&&(C=C.next(()=>this.Ys(_))),u<6&&f>=6&&(C=C.next(()=>(function(F){F.createObjectStore("remoteDocumentGlobal")}(t),this.Xs(_)))),u<7&&f>=7&&(C=C.next(()=>this.Zs(_))),u<8&&f>=8&&(C=C.next(()=>this.ti(t,_))),u<9&&f>=9&&(C=C.next(()=>{!function(F){F.objectStoreNames.contains("remoteDocumentChanges")&&F.deleteObjectStore("remoteDocumentChanges")}(t)})),u<10&&f>=10&&(C=C.next(()=>this.ei(_))),u<11&&f>=11&&(C=C.next(()=>{(function(F){F.createObjectStore("bundles",{keyPath:"bundleId"})})(t),function(F){F.createObjectStore("namedQueries",{keyPath:"name"})}(t)})),u<12&&f>=12&&(C=C.next(()=>{!function(F){const K=F.createObjectStore("documentOverlays",{keyPath:Vl});K.createIndex("collectionPathOverlayIndex",Hc,{unique:!1}),K.createIndex("collectionGroupOverlayIndex",$c,{unique:!1})}(t)})),u<13&&f>=13&&(C=C.next(()=>function(F){const K=F.createObjectStore("remoteDocumentsV14",{keyPath:Ea});K.createIndex("documentKeyIndex",hr),K.createIndex("collectionGroupIndex",va)}(t)).next(()=>this.ni(t,_)).next(()=>t.deleteObjectStore("remoteDocuments"))),u<14&&f>=14&&(C=C.next(()=>this.si(t,_))),u<15&&f>=15&&(C=C.next(()=>function(F){F.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),F.createObjectStore("indexState",{keyPath:ll}).createIndex("sequenceNumberIndex",Nd,{unique:!1}),F.createObjectStore("indexEntries",{keyPath:xp}).createIndex("documentKeyIndex",cn,{unique:!1})}(t))),C}Xs(t){let i=0;return t.store("remoteDocuments").X((u,f)=>{i+=Qp(f)}).next(()=>{const u={byteSize:i};return t.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",u)})}Ys(t){const i=t.store("mutationQueues"),u=t.store("mutations");return i.j().next(f=>
1rn.forEach(f,_=>{const C=IDBKeyRange.bound([_.userId,-1],[_.userId,_.lastAcknowledgedBatchId]);return u.j("userMutationsIndex",C).next(F=>rn.forEach(F,K=>{_i(K.userId===_.userId);const re=tl(this.serializer,K);return D0(t,_.userId,re).next(()=>{})}))}))}Zs(t){const i=t.store("targetDocuments"),u=t.store("remoteDocuments");return t.store("targetGlobal").get("targetGlobalKey").next(f=>{const _=[];return u.X((C,F)=>{const K=new Gi(C),re=[0,rt(K)];_.push(i.get(re).next(Be=>Be?rn.resolve():i.put({targetId:0,path:rt(K),sequenceNumber:f.highestListenSequenceNumber})))}).next(()=>rn.waitFor(_))})}ti(t,i){t.createObjectStore("collectionParents",{keyPath:ra});const u=i.store("collectionParents"),f=new O0,_=C=>{if(f.add(C)){const F=C.lastSegment(),K=C.popLast();return u.put({collectionId:F,parent:rt(K)})}};return i.store("remoteDocuments").X({Y:!0},(C,F)=>{const K=new Gi(C);return _(K.popLast())}).next(()=>i.store("documentMutations").X({Y:!0},([C,F,K],re)=>{const Be=$n(F);return _(Be.popLast())}))}ei(t){const i=t.store("targets");return i.X((u,f)=>{const _=vf(f),C=Gp(this.serializer,_);return i.put(C)})}ni(t,i){const u=i.store("remoteDocuments"),f=[];return u.X((_,C)=>{const F=i.store("remoteDocumentsV14"),K=(re=C,re.document?new Qn(Gi.fromString(re.document.name).popFirst(5)):re.noDocument?Qn.fromSegments(re.noDocument.path):re.unknownDocument?Qn.fromSegments(re.unknownDocument.path):si()).path.toArray();var re;const Be={prefixPath:K.slice(0,K.length-2),collectionGroup:K[K.length-2],documentId:K[K.length-1],readTime:C.readTime||[0,0],unknownDocument:C.unknownDocument,noDocument:C.noDocument,document:C.document,hasCommittedMutations:!!C.hasCommittedMutations};f.push(F.put(Be))}).next(()=>rn.waitFor(f))}si(t,i){const u=i.store("mutations"),f=dl(this.serializer),_=new Tf(id.zs,this.serializer.fe);return u.j().next(C=>{const F=new Map;
1return C.forEach(K=>{var re;let Be=null!==(re=F.get(K.userId))&&void 0!==re?re:mr();tl(this.serializer,K).keys().forEach(_t=>Be=Be.add(_t)),F.set(K.userId,Be)}),rn.forEach(F,(K,re)=>{const Be=new Ei(re),_t=Yp.de(this.serializer,Be),tn=_.getIndexManager(Be),xn=Fm.de(Be,this.serializer,tn,_.referenceDelegate);return new eg(f,xn,_t,tn).recalculateAndSaveOverlaysForDocumentKeys(new La(i,T.ct),K).next()})})}}function rd(l){l.createObjectStore("targetDocuments",{keyPath:jc}).createIndex("documentTargetsIndex",Ri,{unique:!0}),l.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",Tl,{unique:!0}),l.createObjectStore("targetGlobal")}const Of="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";class ng{constructor(t,i,u,f,_,C,F,K,re,Be,_t=15){if(this.allowTabSynchronization=t,this.persistenceKey=i,this.clientId=u,this.ii=_,this.window=C,this.document=F,this.ri=re,this.oi=Be,this.ui=_t,this.Os=null,this.Fs=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ci=null,this.inForeground=!1,this.ai=null,this.hi=null,this.li=Number.NEGATIVE_INFINITY,this.fi=tn=>Promise.resolve(),!ng.D())throw new Sn(Jt.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Ub(this,f),this.di=i+"main",this.serializer=new $p(K),this.wi=new Wa(this.di,this.ui,new zb(this.serializer)),this.Bs=new Fb(this.referenceDelegate,this.serializer),this.remoteDocumentCache=dl(this.serializer),this.qs=new Wu,this.window&&this.window.localStorage?this._i=this.window.localStorage:(this._i=null,!1===Be&&zr("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.mi().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new Sn(Jt.FAILED_PRECONDITION,Of);return this.gi(),this.yi(),this.pi(),this.runTransaction("getHighestListenSequenceNumber","readonly",t=>this.Bs.getHighestSequenceNumber(t))}).then(t=>{this.Os=new T(t,this.ri)}).then(()=>{this.Fs=!0}).catch(t=>(this.wi&&this.wi.close(),Promise.reject(t)))}Ii(t){var i=this;return this.fi=function(){var u=(0,g.Z)(function*(f){if(i.started)return t(f)});return function(f){return u.apply(this,arguments)}}(),t(this.isPrimary)}setDatabaseDeletedListener(t){this.wi.B(function(){var i=(0,g.Z)(function*(u){null===u.newVersion&&(yield t())});return function(u){return i.apply(this,arguments)}}())}setNetworkEnabled(t){var i=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.ii.enqueueAndForget((0,g.Z)(function*(){i.started&&(yield i.mi())})))}mi(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",t=>ig(t).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.Ti(t).next(i=>{i||(this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)))})}).next(()=>this.Ei(t)).next(i=>this.isPrimary&&!i?this.Ai(t).next(()=>!1):!!i&&this.vi(t).next(()=>!0))).catch(t=>{if(hs(t))return In("IndexedDbPersistence","Failed to extend owner lease: ",t),this.isPrimary;if(!this.allowTabSynchronization)throw t;return In("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1}).then(t=>{this.isPrimary!==t&&this.ii.enqueueRetryable(()=>this.fi(t)),this.isPrimary=t})}Ti(t){return Xl(t).get("owner").next(i=>rn.resolve(this.Ri(i)))}Pi(t){return ig(t).delete(this.clientId)}bi(){var t=this;return(0,g.Z)(function*(){if(t.isPrimary&&!t.Vi(t.li,18e5)){t.li=Date.now();const i=yield t.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",u=>{const f=Hs(u,"clientMetadata");return f.j().next(_=>{const C=t.Si(_,18e5),F=_.filter(K=>-1===C.indexOf(K));return rn.forEach(F,K=>f.delete(K.clientId)).next(()=>F)})}).catch(()=>[]);if(t._i)for(const u of i)t._i.removeItem(t.Di(u.clientId))}})()}pi(){this.hi=this.ii.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.mi().then(()=>this.bi()).then(()=>this.pi()))}Ri(t){return!!t&&t.ownerId===this.clientId}Ei(t){return this.oi?rn.resolve(!0):Xl(t).get("owner").next(i=>{if(null!==i&&this.Vi(i.leaseTimestampMs,5e3)&&!this.Ci(i.ownerId)){if(this.Ri(i)&&this.networkEnabled)return!0;
1if(!this.Ri(i)){if(!i.allowTabSynchronization)throw new Sn(Jt.FAILED_PRECONDITION,Of);return!1}}return!(!this.networkEnabled||!this.inForeground)||ig(t).j().next(u=>void 0===this.Si(u,5e3).find(f=>{if(this.clientId!==f.clientId){const C=!this.inForeground&&f.inForeground,F=this.networkEnabled===f.networkEnabled;if(!this.networkEnabled&&f.networkEnabled||C&&F)return!0}return!1}))}).next(i=>(this.isPrimary!==i&&In("IndexedDbPersistence",`Client ${i?"is":"is not"} eligible for a primary lease.`),i))}shutdown(){var t=this;return(0,g.Z)(function*(){t.Fs=!1,t.xi(),t.hi&&(t.hi.cancel(),t.hi=null),t.Ni(),t.ki(),yield t.wi.runTransaction("shutdown","readwrite",["owner","clientMetadata"],i=>{const u=new La(i,T.ct);return t.Ai(u).next(()=>t.Pi(u))}),t.wi.close(),t.Mi()})()}Si(t,i){return t.filter(u=>this.Vi(u.updateTimeMs,i)&&!this.Ci(u.clientId))}$i(){return this.runTransaction("getActiveClients","readonly",t=>ig(t).j().next(i=>this.Si(i,18e5).map(u=>u.clientId)))}get started(){return this.Fs}getMutationQueue(t,i){return Fm.de(t,this.serializer,i,this.referenceDelegate)}getTargetCache(){return this.Bs}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(t){return new P0(t,this.serializer.fe.databaseId)}getDocumentOverlayCache(t){return Yp.de(this.serializer,t)}getBundleCache(){return this.qs}runTransaction(t,i,u){In("IndexedDbPersistence","Starting transaction:",t);const f="readonly"===i?"readonly":"readwrite",_=15===(C=this.ui)?ql:14===C?Ud:13===C?Ld:12===C?fs:11===C?Fd:void si();var C;let F;return this.wi.runTransaction(t,f,_,K=>(F=new La(K,this.Os?this.Os.next():T.ct),"readwrite-primary"===i?this.Ti(F).next(re=>!!re||this.Ei(F)).next(re=>{if(!re)throw zr(`Failed to obtain primary lease for action '${t}'.`),this.isPrimary=!1,this.ii.enqueueRetryable(()=>this.fi(!1)),new Sn(Jt.FAILED_PRECONDITION,wl);return u(F)}).next(re=>this.vi(F).next(()=>re)):this.Oi(F).next(()=>u(F)))).then(K=>(F.raiseOnCommittedEvent(),K))}Oi(t){return Xl(t).get("owner").next(i=>{if(null!==i&&this.Vi(i.leaseTimestampMs,5e3)&&!this.Ci(i.ownerId)&&!this.Ri(i)&&!(this.oi||this.allowTabSynchronization&&i.allowTabSynchronization))throw new Sn(Jt.FAILED_PRECONDITION,Of)})}vi(t){const i={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Xl(t).put("owner",i)}static D(){return Wa.D()}Ai(t){const i=Xl(t);return i.get("owner").next(u=>this.Ri(u)?(In("IndexedDbPersistence","Releasing primary lease."),i.delete("owner")):rn.resolve())}Vi(t,i){const u=Date.now();return!(t<u-i||t>u&&(zr(`Detected an update time that is in the future: ${t} > ${u}`),1))}gi(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ai=()=>{this.ii.enqueueAndForget(()=>(this.inForeground="visible"===this.document.visibilityState,this.mi()))},this.document.addEventListener("visibilitychange",this.ai),this.inForeground="visible"===this.document.visibilityState)}Ni(){this.ai&&(this.document.removeEventListener("visibilitychange",this.ai),this.ai=null)}yi(){var t;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.ci=()=>{this.xi();const i=/(?:Version|Mobile)\/1[456]/;(0,ve.G6)()&&(navigator.appVersion.match(i)||navigator.userAgent.match(i))&&this.ii.enterRestrictedMode(!0),this.ii.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.ci))}ki(){this.ci&&(this.window.removeEventListener("pagehide",this.ci),this.ci=null)}Ci(t){var i;try{const u=null!==(null===(i=this._i)||void 0===i?void 0:i.getItem(this.Di(t)));return In("IndexedDbPersistence",`Client '${t}' ${u?"is":"is not"} zombied in LocalStorage`),u}catch(u){return zr("IndexedDbPersistence","Failed to get zombied client id.",u),!1}}xi(){if(this._i)try{this._i.setItem(this.Di(this.clientId),String(Date.now()))}catch(t){zr("Failed to set zombie client id.",t)}}Mi(){if(this._i)try{this._i.removeItem(this.Di(this.clientId))}catch{}}Di(t){return`firestore_zombie_${this.persistenceKey}_${t}`}}function Xl(l){return Hs(l,"owner")}function ig(l){return Hs(l,"clientMetadata")}function ih(l,t){let i=l.projectId;return l.isDefaultDatabase||(i+="."+l.database),"firestore/"+t+"/"+i+"/"}class rh{constructor(t,i,u,f){this.targetId=t,this.fromCache=i,this.Fi=u,this.Bi=f}static Li(t,i){let u=mr(),f=mr();for(const _ of i.docChanges)switch(_.type){case 0:u=u.add(_.doc.key);break;case 1:f=f.add(_.doc.key)}return new rh(t,i.fromCache,u,f)}}class Vb{constructor(){this.qi=!1}initialize(t,i){this.Ui=t,this.indexManager=i,this.qi=!0}getDocumentsMatchingQuery(t,i,u,f){return this.Ki(t,i).next(_=>_||this.Gi(t,i,f,u)).next(_=>_||this.Qi(t,i))}Ki(t,i){if(rf(i))return rn.resolve(null);let u=N(i);return this.indexManager.getIndexType(t,u).next(f=>0===f?null:(null!==i.limit&&1===f&&(i=Ve(i,null,"F"),u=N(i)),this.indexManager.getDocumentsMatchingTarget(t,u).next(_=>{const C=mr(..._);return this.Ui.getDocuments(t,C).next(F=>this.indexManager.getMinOffset(t,u).next(K=>{const re=this.ji(i,F);return this.zi(i,re,C,K.readTime)?this.Ki(t,Ve(i,null,"F")):this.Wi(t,re,i,K)}))})))}Gi(t,i,u,f){return rf(i)||f.isEqual(Kn.min())?this.Qi(t,i):this.Ui.getDocuments(t,u).next(_=>{const C=this.ji(i,_);return this.zi(i,C,u,f)?this.Qi(t,i):(lo()<=me.in.DEBUG&&In("QueryEngine","Re-using previous result from %s to execute query: %s",f.toString(),jn(i)),this.Wi(t,C,i,kd(f,-1)))})}ji(t,i){let u=new Oo(ir(t));
1return i.forEach((f,_)=>{vi(t,_)&&(u=u.add(_))}),u}zi(t,i,u,f){if(null===t.limit)return!1;if(u.size!==i.size)return!0;const _="F"===t.limitType?i.last():i.first();return!!_&&(_.hasPendingWrites||_.version.compareTo(f)>0)}Qi(t,i){return lo()<=me.in.DEBUG&&In("QueryEngine","Using full collection scan to execute query:",jn(i)),this.Ui.getDocumentsMatchingQuery(t,i,Da.min())}Wi(t,i,u,f){return this.Ui.getDocumentsMatchingQuery(t,u,f).next(_=>(i.forEach(C=>{_=_.insert(C.key,C)}),_))}}class qb{constructor(t,i,u,f){this.persistence=t,this.Hi=i,this.serializer=f,this.Ji=new Jr(Rt),this.Yi=new Ws(_=>Ja(_),Gl),this.Xi=new Map,this.Zi=t.getRemoteDocumentCache(),this.Bs=t.getTargetCache(),this.qs=t.getBundleCache(),this.tr(u)}tr(t){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(t),this.indexManager=this.persistence.getIndexManager(t),this.mutationQueue=this.persistence.getMutationQueue(t,this.indexManager),this.localDocuments=new eg(this.Zi,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Zi.setIndexManager(this.indexManager),this.Hi.initialize(this.localDocuments,this.indexManager)}collectGarbage(t){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>t.collect(i,this.Ji))}}function jm(l,t,i,u){return new qb(l,t,i,u)}function jb(l,t){return rg.apply(this,arguments)}function rg(){return rg=(0,g.Z)(function*(l,t){const i=ii(l);return yield i.persistence.runTransaction("Handle user change","readonly",u=>{let f;
1return i.mutationQueue.getAllMutationBatches(u).next(_=>(f=_,i.tr(t),i.mutationQueue.getAllMutationBatches(u))).next(_=>{const C=[],F=[];let K=mr();for(const re of f){C.push(re.batchId);for(const Be of re.mutations)K=K.add(Be.key)}for(const re of _){F.push(re.batchId);for(const Be of re.mutations)K=K.add(Be.key)}return i.localDocuments.getDocuments(u,K).next(re=>({er:re,removedBatchIds:C,addedBatchIds:F}))})})}),rg.apply(this,arguments)}function L0(l,t){const i=ii(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",u=>{const f=t.batch.keys(),_=i.Zi.newChangeBuffer({trackRemovals:!0});return function(C,F,K,re){const Be=K.batch,_t=Be.keys();let tn=rn.resolve();return _t.forEach(xn=>{tn=tn.next(()=>re.getEntry(F,xn)).next(Bn=>{const bi=K.docVersions.get(xn);_i(null!==bi),Bn.version.compareTo(bi)<0&&(Be.applyToRemoteDocument(Bn,K),Bn.isValidDocument()&&(Bn.setReadTime(K.commitVersion),re.addEntry(Bn)))})}),tn.next(()=>C.mutationQueue.removeMutationBatch(F,Be))}(i,u,t,_).next(()=>_.apply(u)).next(()=>i.mutationQueue.performConsistencyCheck(u)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(u,f,t.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(u,function(C){let F=mr();for(let K=0;K<C.mutationResults.length;++K)C.mutationResults[K].transformResults.length>0&&(F=F.add(C.batch.mutations[K].key));return F}(t))).next(()=>i.localDocuments.getDocuments(u,f))})}function Hm(l){const t=ii(l);return t.persistence.runTransaction("Get last remote snapshot version","readonly",i=>t.Bs.getLastRemoteSnapshotVersion(i))}function og(l,t){const i=ii(l),u=t.snapshotVersion;let f=i.Ji;return i.persistence.runTransaction("Apply remote event","readwrite-primary",_=>{const C=i.Zi.newChangeBuffer({trackRemovals:!0});f=i.Ji;const F=[];
1t.targetChanges.forEach((Be,_t)=>{const tn=f.get(_t);if(!tn)return;F.push(i.Bs.removeMatchingKeys(_,Be.removedDocuments,_t).next(()=>i.Bs.addMatchingKeys(_,Be.addedDocuments,_t)));let xn=tn.withSequenceNumber(_.currentSequenceNumber);var Bn,bi,wi;null!==t.targetMismatches.get(_t)?xn=xn.withResumeToken(ps.EMPTY_BYTE_STRING,Kn.min()).withLastLimboFreeSnapshotVersion(Kn.min()):Be.resumeToken.approximateByteSize()>0&&(xn=xn.withResumeToken(Be.resumeToken,u)),f=f.insert(_t,xn),bi=xn,wi=Be,(0===(Bn=tn).resumeToken.approximateByteSize()||bi.snapshotVersion.toMicroseconds()-Bn.snapshotVersion.toMicroseconds()>=3e8||wi.addedDocuments.size+wi.modifiedDocuments.size+wi.removedDocuments.size>0)&&F.push(i.Bs.updateTargetData(_,xn))});let K=gs(),re=mr();if(t.documentUpdates.forEach(Be=>{t.resolvedLimboDocuments.has(Be)&&F.push(i.persistence.referenceDelegate.updateLimboDocument(_,Be))}),F.push(ec(_,C,t.documentUpdates).next(Be=>{K=Be.nr,re=Be.sr})),!u.isEqual(Kn.min())){const Be=i.Bs.getLastRemoteSnapshotVersion(_).next(_t=>i.Bs.setTargetsMetadata(_,_.currentSequenceNumber,u));F.push(Be)}return rn.waitFor(F).next(()=>C.apply(_)).next(()=>i.localDocuments.getLocalViewOfDocuments(_,K,re)).next(()=>K)}).then(_=>(i.Ji=f,_))}function ec(l,t,i){let u=mr(),f=mr();return i.forEach(_=>u=u.add(_)),t.getEntries(l,u).next(_=>{let C=gs();return i.forEach((F,K)=>{const re=_.get(F);K.isFoundDocument()!==re.isFoundDocument()&&(f=f.add(F)),K.isNoDocument()&&K.version.isEqual(Kn.min())?(t.removeEntry(F,K.readTime),C=C.insert(F,K)):!re.isValidDocument()||K.version.compareTo(re.version)>0||0===K.version.compareTo(re.version)&&re.hasPendingWrites?(t.addEntry(K),C=C.insert(F,K)):In("LocalStore","Ignoring outdated watch update for ",F,". Current version:",re.version," Watch version:",K.version)}),{nr:C,sr:f}})}function sg(l,t){const i=ii(l);return i.persistence.runTransaction("Get next mutation batch","readonly",u=>(void 0===t&&(t=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(u,t)))}function su(l,t){const i=ii(l);return i.persistence.runTransaction("Allocate target","readwrite",u=>{let f;return i.Bs.getTargetData(u,t).next(_=>_?(f=_,rn.resolve(f)):i.Bs.allocateTargetId(u).next(C=>(f=new Ql(t,C,"TargetPurposeListen",u.currentSequenceNumber),i.Bs.addTargetData(u,f).next(()=>f))))}).then(u=>{const f=i.Ji.get(u.targetId);return(null===f||u.snapshotVersion.compareTo(f.snapshotVersion)>0)&&(i.Ji=i.Ji.insert(u.targetId,u),i.Yi.set(t,u.targetId)),u})}function Sl(l,t,i){return kl.apply(this,arguments)}function kl(){return kl=(0,g.Z)(function*(l,t,i){const u=ii(l),f=u.Ji.get(t),_=i?"readwrite":"readwrite-primary";try{i||(yield u.persistence.runTransaction("Release target",_,C=>u.persistence.referenceDelegate.removeTarget(C,f)))}catch(C){if(!hs(C))throw C;In("LocalStore",`Failed to update sequence numbers for target ${t}: ${C}`)}u.Ji=u.Ji.remove(t),u.Yi.delete(f.target)}),kl.apply(this,arguments)}function od(l,t,i){const u=ii(l);let f=Kn.min(),_=mr();return u.persistence.runTransaction("Execute query","readonly",C=>function(F,K,re){const Be=ii(F),_t=Be.Yi.get(re);return void 0!==_t?rn.resolve(Be.Ji.get(_t)):Be.Bs.getTargetData(K,re)}(u,C,N(t)).next(F=>{if(F)return f=F.lastLimboFreeSnapshotVersion,u.Bs.getMatchingKeysForTargetId(C,F.targetId).next(K=>{_=K})}).next(()=>u.Hi.getDocumentsMatchingQuery(C,t,i?f:Kn.min(),i?_:mr())).next(F=>(oh(u,Wi(t),F),{documents:F,ir:_})))}function Pf(l,t){const i=ii(l),u=ii(i.Bs),f=i.Ji.get(t);return f?Promise.resolve(f.target):i.persistence.runTransaction("Get target data","readonly",_=>u.le(_,t).next(C=>C?C.target:null))}function U0(l,t){const i=ii(l),u=i.Xi.get(t)||Kn.min();return i.persistence.runTransaction("Get new document changes","readonly",f=>i.Zi.getAllFromCollectionGroup(f,t,kd(u,-1),Number.MAX_SAFE_INTEGER)).then(f=>(oh(i,t,f),f))}function oh(l,t,i){let u=l.Xi.get(t)||Kn.min();i.forEach((f,_)=>{_.readTime.compareTo(u)>0&&(u=_.readTime)}),l.Xi.set(t,u)}function $m(){return $m=(0,g.Z)(function*(l,t,i,u){const f=ii(l);let _=mr(),C=gs();for(const re of i){const Be=t.rr(re.metadata.name);re.document&&(_=_.add(Be));const _t=t.ur(re);_t.setReadTime(t.cr(re.metadata.readTime)),C=C.insert(Be,_t)}const F=f.Zi.newChangeBuffer({trackRemovals:!0}),K=yield su(f,(re=u,N(Qa(Gi.fromString(`__bundle__/docs/${re}`)))));var re;return f.persistence.runTransaction("Apply bundle documents","readwrite",re=>ec(re,F,C).next(Be=>(F.apply(re),Be)).next(Be=>f.Bs.removeMatchingKeysForTargetId(re,K.targetId).next(()=>f.Bs.addMatchingKeys(re,_,K.targetId)).next(()=>f.localDocuments.getLocalViewOfDocuments(re,Be.nr,Be.sr)).next(()=>Be.nr)))}),$m.apply(this,arguments)}function Gm(l,t){return tc.apply(this,arguments)}function tc(){return tc=(0,g.Z)(function*(l,t,i=mr()){const u=yield su(l,N(Jd(t.bundledQuery))),f=ii(l);return f.persistence.runTransaction("Save named query","readwrite",_=>{const C=ms(t.readTime);if(u.snapshotVersion.compareTo(C)>=0)return f.qs.saveNamedQuery(_,t);const F=u.withResumeToken(ps.EMPTY_BYTE_STRING,C);return f.Ji=f.Ji.insert(F.targetId,F),f.Bs.updateTargetData(_,F).next(()=>f.Bs.removeMatchingKeysForTargetId(_,u.targetId)).next(()=>f.Bs.addMatchingKeys(_,i,u.targetId)).next(()=>f.qs.saveNamedQuery(_,t))})}),tc.apply(this,arguments)}function ag(l,t){return`firestore_clients_${l}_${t}`}
vendor: 1,140 bytes, line 1
1function lg(l,t,i){let u=`firestore_mutations_${l}_${i}`;return t.isAuthenticated()&&(u+=`_${t.uid}`),u}function Ba(l,t){return`firestore_targets_${l}_${t}`}class Dc{constructor(t,i,u,f){this.user=t,this.batchId=i,this.state=u,this.error=f}static ar(t,i,u){const f=JSON.parse(u);let _,C="object"==typeof f&&-1!==["pending","acknowledged","rejected"].indexOf(f.state)&&(void 0===f.error||"object"==typeof f.error);return C&&f.error&&(C="string"==typeof f.error.message&&"string"==typeof f.error.code,C&&(_=new Sn(f.error.code,f.error.message))),C?new Dc(t,i,f.state,_):(zr("SharedClientState",`Failed to parse mutation state for ID '${i}': ${u}`),null)}hr(){const t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)}}class Rl{constructor(t,i,u){this.targetId=t,this.state=i,this.error=u}static ar(t,i){const u=JSON.parse(i);let f,_="object"==typeof u&&-1!==["not-current","current","rejected"].indexOf(u.state)&&(void 0===u.error||"object"==typeof u.error);return _&&u.error&&(_="string"==typeof u.error.message&&"string"==typeof u.error.code,_&&(f=ne
1w Sn(u.error.code,u.error.message))),_?new Rl(t,u.state,f):(zr("SharedClientState",`Failed to parse target state for ID '${t}': ${i}`),null)}hr(){const t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)}}class cg{constructor(t,i){this.clientId=t,this.activeTargetIds=i}static ar(t,i){const u=JSON.parse(i);let f="object"==typeof u&&u.activeTargetIds instanceof Array,_=xm();for(let C=0;f&&C<u.activeTargetIds.length;++C)f=Pe(u.activeTargetIds[C]),_=_.add(u.activeTargetIds[C]);return f?new cg(t,_):(zr("SharedClientState",`Failed to parse client data for instance '${t}': ${i}`),null)}}class ug{constructor(t,i){this.clientId=t,this.onlineState=i}static ar(t){const i=JSON.parse(t);return"object"==typeof i&&-1!==["Unknown","Online","Offline"].indexOf(i.onlineState)&&"string"==typeof i.clientId?new ug(i.clientId,i.onlineState):(zr("SharedClientState",`Failed to parse online state: ${t}`),null)}}class Ac{constructor(){this.activeTargetIds=xm()}lr(t){this.activeTargetIds=this.activeTargetIds.add(t)}dr(t){this.activeTargetIds=this.activeTargetIds.delete(t)}hr(){const t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)}}class au{constructor(t,i,u,f,_){this.window=t,this.ii=i,this.persistenceKey=u,this.wr=f,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this._r=this.mr.bind(this),this.gr=new Jr(Rt),this.started=!1,this.yr=[];const C=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=_,this.pr=ag(this.persistenceKey,this.wr),this.Ir=`firestore_sequence_number_${this.persistenceKey}`,this.gr=this.gr.insert(this.wr,new Ac),this.Tr=new RegExp(`^firestore_clients_${C}_([^_]*)$`),this.Er=new RegExp(`^firestore_mutations_${C}_(\\d+)(?:_(.*))?$`),this.Ar=new RegExp(`^firestore_targets_${C}_(\\d+)$`),this.vr=`firestore_online_state_${this.persistenceKey}`,this.Rr=function(F){return`firestore_bundle_loaded_v2_${F}`}(this.persistenceKey),this.window.addEventListener("storage",this._r)}static D(t){return!(!t||!t.localStorage)}start(){var t=this;return(0,g.Z)(function*(){const i=yield t.syncEngine.$i();for(const f of i){if(f===t.wr)continue;const _=t.getItem(ag(t.persistenceKey,f));if(_){const C=cg.ar(f,_);C&&(t.gr=t.gr.insert(C.clientId,C))}}t.Pr();const u=t.storage.getItem(t.vr);if(u){const f=t.br(u);f&&t.Vr(f)}for(const f of t.yr)t.mr(f);t.yr=[],t.window.addEventListener("pagehide",()=>t.shutdown()),t.started=!0})()}writeSequenceNumber(t){this.setItem(this.Ir,JSON.stringify(t))}getAllActiveQueryTargets(){return this.Sr(this.gr)}isActiveQueryTarget(t){let i=!1;return this.gr.forEach((u,f)=>{f.activeTargetIds.has(t)&&(i=!0)}),i}addPendingMutation(t){this.Dr(t,"pending")}updateMutationState(t,i,u){this.Dr(t,i,u),this.Cr(t)}addLocalQueryTarget(t){let i="not-current";if(this.isActiveQueryTarget(t)){const u=this.storage.getItem(Ba(this.persistenceKey,t));if(u){const f=Rl.ar(t,u);f&&(i=f.state)}}return this.Nr.lr(t),this.Pr(),i}removeLocalQueryTarget(t){this.Nr.dr(t),this.Pr()}isLocalQueryTarget(t){return this.Nr.activeTargetIds.has(t)}clearQueryState(t){this.removeItem(Ba(this.persistenceKey,t))}updateQueryState(t,i,u){this.kr(t,i,u)}handleUserChange(t,i,u){i.forEach(f=>{this.Cr(f)}),this.currentUser=t,u.forEach(f=>{this.addPendingMutation(f)})}setOnlineState(t){this.Mr(t)}notifyBundleLoaded(t){this.$r(t)}shutdown(){this.started&&(this.window.removeEventListener("storage",this._r),this.removeItem(this.pr),this.started=!1)}getItem(t){const i=this.storage.getItem(t);return In("SharedClientState","READ",t,i),i}setItem(t,i){In("SharedClientState","SET",t,i),this.storage.setItem(t,i)}removeItem(t){In("SharedClientState","REMOVE",t),this.storage.removeItem(t)}mr(t){var i=this;const u=t;if(u.storageArea===this.storage){if(In("SharedClientState","EVENT",u.key,u.newValue),u.key===this.pr)return void zr("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.ii.enqueueRetryable((0,g.Z)(function*(){if(i.started){if(null!==u.key)if(i.Tr.test(u.key)){if(null==u.newValue){const f=i.Or(u.key);return i.Fr(f,null)}{const f=i.Br(u.key,u.newValue);if(f)return i.Fr(f.clientId,f)}}else if(i.Er.test(u.key)){if(null!==u.newValue){const f=i.Lr(u.key,u.newValue);if(f)return i.qr(f)}}else if(i.Ar.test(u.key)){if(null!==u.newValue){const f=i.Ur(u.key,u.newValue);if(f)return i.Kr(f)}}else if(u.key===i.vr){if(null!==u.newValue){const f=i.br(u.newValue);if(f)return i.Vr(f)}}else if(u.key===i.Ir){const f=function(_){let C=T.ct;if(null!=_)try{const F=JSON.parse(_);_i("number"==typeof F),C=F}
1catch(F){zr("SharedClientState","Failed to read sequence number from WebStorage",F)}return C}(u.newValue);f!==T.ct&&i.sequenceNumberHandler(f)}else if(u.key===i.Rr){const f=i.Gr(u.newValue);yield Promise.all(f.map(_=>i.syncEngine.Qr(_)))}}else i.yr.push(u)}))}}get Nr(){return this.gr.get(this.wr)}Pr(){this.setItem(this.pr,this.Nr.hr())}Dr(t,i,u){const f=new Dc(this.currentUser,t,i,u),_=lg(this.persistenceKey,this.currentUser,t);this.setItem(_,f.hr())}Cr(t){const i=lg(this.persistenceKey,this.currentUser,t);this.removeItem(i)}Mr(t){this.storage.setItem(this.vr,JSON.stringify({clientId:this.wr,onlineState:t}))}kr(t,i,u){const f=Ba(this.persistenceKey,t),_=new Rl(t,i,u);this.setItem(f,_.hr())}$r(t){const i=JSON.stringify(Array.from(t));this.setItem(this.Rr,i)}Or(t){const i=this.Tr.exec(t);return i?i[1]:null}Br(t,i){const u=this.Or(t);return cg.ar(u,i)}Lr(t,i){const u=this.Er.exec(t),f=Number(u[1]);return Dc.ar(new Ei(void 0!==u[2]?u[2]:null),f,i)}Ur(t,i){const u=this.Ar.exec(t),f=Number(u[1]);return Rl.ar(f,i)}br(t){return ug.ar(t)}Gr(t){return JSON.parse(t)}qr(t){var i=this;return(0,g.Z)(function*(){if(t.user.uid===i.currentUser.uid)return i.syncEngine.jr(t.batchId,t.state,t.error);In("SharedClientState",`Ignoring mutation for non-active user ${t.user.uid}`)})()}Kr(t){return this.syncEngine.zr(t.targetId,t.state,t.error)}Fr(t,i){const u=i?this.gr.insert(t,i):this.gr.remove(t),f=this.Sr(this.gr),_=this.Sr(u),C=[],F=[];return _.forEach(K=>{f.has(K)||C.push(K)}),f.forEach(K=>{_.has(K)||F.push(K)}),this.syncEngine.Wr(C,F).then(()=>{this.gr=u})}Vr(t){this.gr.get(t.clientId)&&this.onlineStateHandler(t.onlineState)}Sr(t){let i=xm();return t.forEach((u,f)=>{i=i.unionWith(f.activeTargetIds)}),i}}class sh{constructor(){this.Hr=new Ac,this.Jr={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(t){}updateMutationState(t,i,u){}addLocalQueryTarget(t){return this.Hr.lr(t),this.Jr[t]||"not-current"}updateQueryState(t,i,u){this.Jr[t]=i}removeLocalQueryTarget(t){this.Hr.dr(t)}isLocalQueryTarget(t){return this.Hr.activeTargetIds.has(t)}clearQueryState(t){delete this.Jr[t]}getAllActiveQueryTargets(){return this.Hr.activeTargetIds}isActiveQueryTarget(t){return this.Hr.activeTargetIds.has(t)}start(){return this.Hr=new Ac,Promise.resolve()}handleUserChange(t,i,u){}setOnlineState(t){}shutdown(){}writeSequenceNumber(t){}notifyBundleLoaded(t){}}class dg{Yr(t){}shutdown(){}}class za{constructor(){this.Xr=()=>this.Zr(),this.eo=()=>this.no(),this.so=[],this.io()}Yr(t){this.so.push(t)}shutdown(){window.removeEventListener("online",this.Xr),window.removeEventListener("offline",this.eo)}io(){window.addEventListener("online",this.Xr),window.addEventListener("offline",this.eo)}Zr(){In("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const t of this.so)t(0)}no(){In("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const t of this.so)t(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Df=null;function Wm(){return null===Df?Df=268435456+Math.round(2147483648*Math.random()):Df++,"0x"+Df.toString(16)}const Km={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Ts{constructor(t){this.ro=t.ro,this.oo=t.oo}uo(t){this.co=t}ao(t){this.ho=t}onMessage(t){this.lo=t}close(){this.oo()}send(t){this.ro(t)}fo(){this.co()}wo(t){this.ho(t)}_o(t){this.lo(t)}}const Ks="WebChannelConnection";class Af extends class{constructor(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.mo=(t.ssl?"https":"http")+"://"+t.host,this.yo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}get po(){return!1}Io(t,i,u,f,_){const C=Wm(),F=this.To(t,i);In("RestConnection",`Sending RPC '${t}' ${C}:`,F,u);const K={};return this.Eo(K,f,_),this.Ao(t,F,K,u).then(re=>(In("RestConnection",`Received RPC '${t}' ${C}: `,re),re),re=>{throw Mr("RestConnection",`RPC '${t}' ${C} failed with error: `,re,"url: ",F,"request:",u),re})}vo(t,i,u,f,_,C){return this.Io(t,i,u,f,_)}Eo(t,i,u){t["X-Goog-Api-Client"]="gl-js/ fire/"+Pr,t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),i&&i.headers.forEac
1h((f,_)=>t[_]=f),u&&u.headers.forEach((f,_)=>t[_]=f)}To(t,i){return`${this.mo}/v1/${i}:${Km[t]}`}}{constructor(t){super(t),this.forceLongPolling=t.forceLongPolling,this.autoDetectLongPolling=t.autoDetectLongPolling,this.useFetchStreams=t.useFetchStreams,this.longPollingOptions=t.longPollingOptions}Ao(t,i,u,f){const _=Wm();return new Promise((C,F)=>{const K=new xi;K.setWithCredentials(!0),K.listenOnce($.COMPLETE,()=>{try{switch(K.getLastErrorCode()){case oe.NO_ERROR:const Be=K.getResponseJson();In(Ks,`XHR for RPC '${t}' ${_} received:`,JSON.stringify(Be)),C(Be);break;case oe.TIMEOUT:In(Ks,`RPC '${t}' ${_} timed out`),F(new Sn(Jt.DEADLINE_EXCEEDED,"Request time out"));break;case oe.HTTP_ERROR:const _t=K.getStatus();if(In(Ks,`RPC '${t}' ${_} failed with status:`,_t,"response text:",K.getResponseText()),_t>0){let tn=K.getResponseJson();Array.isArray(tn)&&(tn=tn[0]);const xn=tn?.error;if(xn&&xn.status&&xn.message){const Bn=function(bi){const wi=bi.toLowerCase().replace(/_/g,"-");return Object.values(Jt).indexOf(wi)>=0?wi:Jt.UNKNOWN}(xn.status);F(new Sn(Bn,xn.message))}else F(new Sn(Jt.UNKNOWN,"Server responded with status "+K.getStatus()))}else F(new Sn(Jt.UNAVAILABLE,"Connection failed."));break;default:si()}}finally{In(Ks,`RPC '${t}' ${_} completed.`)}});const re=JSON.stringify(f);In(Ks,`RPC '${t}' ${_} sending request:`,f),K.send(i,"POST",re,u,15)})}Ro(t,i,u){const f=Wm(),_=[this.mo,"/","google.firestore.v1.Firestore","/",t,"/channel"],C=ma(),F=B(),K={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},re=this.longPollingOptions.timeoutSeconds;void 0!==re&&(K.longPollingTimeout=Math.round(1e3*re)),this.useFetchStreams&&(K.xmlHttpFactory=new dn({})),this.Eo(K.initMessageHeaders,i,u),K.encodeInitMessageHeaders=!0;const Be=_.join("");In(Ks,`Creating RPC '${t}' stream ${f}: ${Be}`,K);const _t=C.createWebChannel(Be,K);let tn=!1,xn=!1;const Bn=new Ts({ro:wi=>{xn?In(Ks,`Not sending because RPC '${t}' stream ${f} is closed:`,wi):(tn||(In(Ks,`Opening RPC '${t}' stream ${f} transport.`),_t.open(),tn=!0),In(Ks,`RPC '${t}' stream ${f} sending:`,wi),_t.send(wi))},oo:()=>_t.close()}),bi=(wi,_r,Lr)=>{wi.listen(_r,kr=>{try{Lr(kr)}catch(Ds){setTimeout(()=>{throw Ds},0)}})};return bi(_t,En.EventType.OPEN,()=>{xn||In(Ks,`RPC '${t}' stream ${f} transport opened.`)}),bi(_t,En.EventType.CLOSE,()=>{xn||(xn=!0,In(Ks,`RPC '${t}' stream ${f} transport closed`),Bn.wo())}),bi(_t,En.EventType.ERROR,wi=>{xn||(xn=!0,Mr(Ks,`RPC '${t}' stream ${f} transport errored:`,wi),Bn.wo(new Sn(Jt.UNAVAILABLE,"The operation could not be completed")))}),bi(_t,En.EventType.MESSAGE,wi=>{var _r;if(!xn){const Lr=wi.data[0];_i(!!Lr);const kr=Lr,Ds=kr.error||(null===(_r=kr[0])||void 0===_r?void 0:_r.error);if(Ds){In(Ks,`RPC '${t}' stream ${f} received error:`,Ds);const Go=Ds.status;let Bo=function(Gr){const vl=Ls[Gr];if(void 0!==vl)return Ua(vl)}(Go),ka=Ds.message;void 0===Bo&&(Bo=Jt.INTERNAL,ka="Unknown error status: "+Go+" with message "+Ds.message),xn=!0,Bn.wo(new Sn(Bo,ka)),_t.close()}else In(Ks,`RPC '${t}' stream ${f} received:`,Lr),Bn._o(Lr)}}),bi(F,Ae.STAT_EVENT,wi=>{wi.stat===Pt.PROXY?In(Ks,`RPC '${t}' stream ${f} detected buffering proxy`):wi.stat===Pt.NOPROXY&&In(Ks,`RPC '${t}' stream ${f} detected no buffering proxy`)}),setTimeout(()=>{Bn.fo()},0),Bn}}function sd(){return typeof window<"u"?window:null}function Ym(){return typeof document<"u"?document:null}function ah(l){return new QC(l,!0)}class B0{constructor(t,i,u=1e3,f=1.5,_=6e4){this.ii=t,this.timerId=i,this.Po=u,this.bo=f,this.Vo=_,this.So=0,this.Do=null,this.Co=Date.now(),this.reset()}reset(){this.So=0}xo(){this.So=this.Vo}No(t){this.cancel();const i=Math.floor(this.So+this.ko()),u=Math.max(0,Date.now()-this.Co),f=Math.max(0,i-u);f>0&&In("ExponentialBackoff",`Backing off for ${f} ms (base delay: ${this.So}
1 ms, delay with jitter: ${i} ms, last attempt: ${u} ms ago)`),this.Do=this.ii.enqueueAfterDelay(this.timerId,f,()=>(this.Co=Date.now(),t())),this.So*=this.bo,this.So<this.Po&&(this.So=this.Po),this.So>this.Vo&&(this.So=this.Vo)}Mo(){null!==this.Do&&(this.Do.skipDelay(),this.Do=null)}cancel(){null!==this.Do&&(this.Do.cancel(),this.Do=null)}ko(){return(Math.random()-.5)*this.So}}class hg{constructor(t,i,u,f,_,C,F,K){this.ii=t,this.$o=u,this.Oo=f,this.connection=_,this.authCredentialsProvider=C,this.appCheckCredentialsProvider=F,this.listener=K,this.state=0,this.Fo=0,this.Bo=null,this.Lo=null,this.stream=null,this.qo=new B0(t,i)}Uo(){return 1===this.state||5===this.state||this.Ko()}Ko(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Go()}stop(){var t=this;return(0,g.Z)(function*(){t.Uo()&&(yield t.close(0))})()}Qo(){this.state=0,this.qo.reset()}jo(){this.Ko()&&null===this.Bo&&(this.Bo=this.ii.enqueueAfterDelay(this.$o,6e4,()=>this.zo()))}Wo(t){this.Ho(),this.stream.send(t)}zo(){var t=this;return(0,g.Z)(function*(){if(t.Ko())return t.close(0)})()}Ho(){this.Bo&&(this.Bo.cancel(),this.Bo=null)}Jo(){this.Lo&&(this.Lo.cancel(),this.Lo=null)}close(t,i){var u=this;return(0,g.Z)(function*(){u.Ho(),u.Jo(),u.qo.cancel(),u.Fo++,4!==t?u.qo.reset():i&&i.code===Jt.RESOURCE_EXHAUSTED?(zr(i.toString()),zr("Using maximum backoff delay to prevent overloading the backend."),u.qo.xo()):i&&i.code===Jt.UNAUTHENTICATED&&3!==u.state&&(u.authCredentialsProvider.invalidateToken(),u.appCheckCredentialsProvider.invalidateToken()),null!==u.stream&&(u.Yo(),u.stream.close(),u.stream=null),u.state=t,yield u.listener.ao(i)})()}Yo(){}auth(){this.state=1;const t=this.Xo(this.Fo),i=this.Fo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([u,f])=>{this.Fo===i&&this.Zo(u,f)},u=>{t(()=>{const f=new Sn(Jt.UNKNOWN,"Fetching auth token failed: "+u.message);return this.tu(f)})})}Zo(t,i){const u=this.Xo(this.Fo);this.stream=this.eu(t,i),this.stream.uo(()=>{u(()=>(this.state=2,this.Lo=this.ii.enqueueAfterDelay(this.Oo,1e4,()=>(this.Ko()&&(this.state=3),Promise.resolve())),this.listener.uo()))}),this.stream.ao(f=>{u(()=>this.tu(f))}),this.stream.onMessage(f=>{u(()=>this.onMessage(f))})}Go(){var t=this;this.state=5,this.qo.No((0,g.Z)(function*(){t.state=0,t.start()}))}tu(t){return In("PersistentStream",`close with error: ${t}`),this.stream=null,this.close(4,t)}Xo(t){return i=>{this.ii.enqueueAndForget(()=>this.Fo===t?i():(In("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Jm extends hg{constructor(t,i,u,f,_,C){super(t,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,u,f,C),this.serializer=_}eu(t,i){return this.connection.Ro("Listen",t,i)}onMessage(t){this.qo.reset();const i=function Eb(l,t){let i;if("targetChange"in t){const u="NO_CHANGE"===(K=t.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===K?1:"REMOVE"===K?2:"CURRENT"===K?3:"RESET"===K?4:si(),f=t.targetChange.targetIds||[],_=function(K,re){return K.useProto3Json?(_i(void 0===re||"string"==typeof re),ps.fromBase64String(re||"")):(_i(void 0===re||re instanceof Uint8Array),ps.fromUint8Array(re||new Uint8Array))}(l,t.targetChange.resumeToken),C=t.targetChange.cause,F=C&&function(K){const re=void 0===K.code?Jt.UNKNOWN:Ua(K.code);return new Sn(re,K.message||"")}(C);i=new Vp(u,f,_,F||null)}else if("documentChange"in t){const u=t.documentChange,f=Jl(l,u.document.name),_=ms(u.document.updateTime),C=u.document.createTime?ms(u.document.createTime):Kn.min(),F=new Gs({mapValue:{fields:u.document.fields}}),K=Po.newFoundDocument(f,_,C,F);i=new zp(u.targetIds||[],u.removedTargetIds||[],K.key,K)}else if("documentDelete"in t){const u=t.documentDelete,f=Jl(l,u.document),_=u.readTime?ms(u.readTime):Kn.min(),C=Po.newNoDocument(f,_);i=new zp([],u.removedTargetIds||[],C.key,C)}else if("documentRemove"in t){const u=t.documentRemove,f=Jl(l,u.document);i=new zp([],u.removedTargetIds||[],f,null)}else{if(!("filter"in t))return si();{const u=t.filter,{count:f=0,unchangedNames:_}=u,C=new _1(f,_);i=new xb(u.targetId,C)}}var K;return i}(this.serializer,t),u=function(f){if(!("targetChange"in f))return Kn.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?Kn.min():_.readTime?ms(_.readTime):Kn.min()}(t);return this.listener.nu(i,u)}su(t){const i={};i.database=Kd(this.serializer),i.addTarget=function(f,_){let C;const F=_.target;if(C=yc(F)?{documents:C0(f,F)}:{query:Pm(f,F)},C.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){C.resumeToken=v0(f,_.resumeToken);const K=qp(f,_.expectedCount);null!==K&&(C.expectedCount=K)}else if(_.snapshotVersion.compareTo(Kn.min())>0){C.readTime=Hu(f,_.snapshotVersion.toTimestamp());const K=qp(f,_.expectedCount);null!==K&&(C.expectedCount=K)}return C}(this.serializer,t);const u=function Tb(l,t){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return si()}}(t.purpose);return null==i?null:{"goog-listen-tags":i}}(0,t);u&&(i.labels=u),this.Wo(i)}iu(t){const i={};i.database=Kd(this.serializer),i.removeTarget=t,this.Wo(i)}}class lh extends hg{constructor(t,i,u,f,_,C){super(t,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,u,f,C),this.serializer
1=_,this.ru=!1}get ou(){return this.ru}start(){this.ru=!1,this.lastStreamToken=void 0,super.start()}Yo(){this.ru&&this.uu([])}eu(t,i){return this.connection.Ro("Write",t,i)}onMessage(t){if(_i(!!t.streamToken),this.lastStreamToken=t.streamToken,this.ru){this.qo.reset();const i=function y0(l,t){return l&&l.length>0?(_i(void 0!==t),l.map(i=>function(u,f){let _=ms(u.updateTime?u.updateTime:f);return _.isEqual(Kn.min())&&(_=ms(f)),new f1(_,u.transformResults||[])}(i,t))):[]}(t.writeResults,t.commitTime),u=ms(t.commitTime);return this.listener.cu(u,i)}return _i(!t.writeResults||0===t.writeResults.length),this.ru=!0,this.listener.au()}hu(){const t={};t.database=Kd(this.serializer),this.Wo(t)}uu(t){const i={streamToken:this.lastStreamToken,writes:t.map(u=>$u(this.serializer,u))};this.Wo(i)}}class Qm extends class{}{constructor(t,i,u,f){super(),this.authCredentials=t,this.appCheckCredentials=i,this.connection=u,this.serializer=f,this.lu=!1}fu(){if(this.lu)throw new Sn(Jt.FAILED_PRECONDITION,"The client has already been terminated.")}Io(t,i,u){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([f,_])=>this.connection.Io(t,i,u,f,_)).catch(f=>{throw"FirebaseError"===f.name?(f.code===Jt.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new Sn(Jt.UNKNOWN,f.toString())})}vo(t,i,u,f){return this.fu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,C])=>this.connection.vo(t,i,u,_,C,f)).catch(_=>{throw"FirebaseError"===_.name?(_.code===Jt.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Sn(Jt.UNKNOWN,_.toString())})}terminate(){this.lu=!0}}class fg{constructor(t,i){this.asyncQueue=t,this.onlineStateHandler=i,this.state="Unknown",this.wu=0,this._u=null,this.mu=!0}gu(){0===this.wu&&(this.yu("Unknown"),this._u=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._u=null,this.pu("Backend didn't respond within 10 seconds."),this.yu("Offline"),Promise.resolve())))}Iu(t){"Online"===this.state?this.yu("Unknown"):(this.wu++,this.wu>=1&&(this.Tu(),this.pu(`Connection failed 1 times. Most recent error: ${t.toString()}`),this.yu("Offline")))}set(t){this.Tu(),this.wu=0,"Online"===t&&(this.mu=!1),this.yu(t)}yu(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))}pu(t){const i=`Could not reach Cloud Firestore backend. ${t}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.mu?(zr(i),this.mu=!1):In("OnlineStateTracker",i)}Tu(){null!==this._u&&(this._u.cancel(),this._u=null)}}class pg{constructor(t,i,u,f,_){var C=this;this.localStore=t,this.datastore=i,this.asyncQueue=u,this.remoteSyncer={},this.Eu=[],this.Au=new Map,this.vu=new Set,this.Ru=[],this.Pu=_,this.Pu.Yr(F=>{u.enqueueAndForget((0,g.Z)(function*(){var K;ld(C)&&(In("RemoteStore","Restarting streams for network reachability change."),yield(K=(0,g.Z)(function*(re){const Be=ii(re);Be.vu.add(4),yield ad(Be),Be.bu.set("Unknown"),Be.vu.delete(4),yield ch(Be)}),function(re){return K.apply(this,arguments)})(C))}))}),this.bu=new fg(u,f)}}function ch(l){return gg.apply(this,arguments)}function gg(){return gg=(0,g.Z)(function*(l){if(ld(l))for(const t of l.Ru)yield t(!0)}),gg.apply(this,arguments)}function ad(l){return mg.apply(this,arguments)}function mg(){return mg=(0,g.Z)(function*(l){for(const t of l.Ru)yield t(!1)}),mg.apply(this,arguments)}function If(l,t){const i=ii(l);i.Au.has(t.targetId)||(i.Au.set(t.targetId,t),Sf(i)?t_(i):uu(i).Ko()&&vg(i,t))}function _g(l,t){const i=ii(l),u=uu(i);i.Au.delete(t),u.Ko()&&e_(i,t),0===i.Au.size&&(u.Ko()?u.jo():ld(i)&&i.bu.set("Unknown"))}function vg(l,t){if(l.Vu.qt(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(Kn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(i)}uu(l).su(t)}function e_(l,t){l.Vu.qt(t),uu(l).iu(t)}function t_(l){l.Vu=new pf({getRemoteKeysForTarget:t=>l.remoteSyncer.getRemoteKeysForTarget(t),le:t=>l.Au.get(t)||null,ue:()=>l.datastore.serializer.databaseId}),uu(l).start(),l.bu.gu()}function Sf(l){return ld(l)&&!uu(l).Uo()&&l.Au.size>0}function ld(l){return 0===ii(l).vu.size}function cd(l){l.Vu=void 0}function V0(l){return bg.apply(this,arguments)}function bg(){return bg=(0,g.Z)(function*(l){l.Au.forEach((t,i)=>{vg(l,t)})}),bg.apply(this,arguments)}function n_(l,t){return q0.apply(this,arguments)}function q0(){return q0=(0,g.Z)(function*(l,t){cd(l),Sf(l)?(l.bu.Iu(t),t_(l)):l.bu.set("Unknown")}),q0.apply(this,arguments)}function M1(l,t,i){return j0.apply(this,arguments)}function j0(){return j0=(0,g.Z)(function*(l,t,i){if(l.bu.set("Online"),t instanceof Vp&&2===t.state&&t.cause)try{yield(u=(0,g.Z)(function*(f,_){const C=_.cause;for(const F of _.targetIds)f.Au.has(F)&&(yield f.remoteSyncer.rejectListen(F,C),f.Au.delete(F),f.Vu.removeTarget(F))}),function(f,_){return u.apply(this,arguments)})(l,t)}catch(u){In("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),u),yield i_(l,u)}else if(t instanceof zp?l.Vu.Ht(t):t instanceof xb?l.Vu.ne(t):l.Vu.Xt(t),!i.isEqual(Kn.min()))try{const u=yield Hm(l.localStore);i.compareTo(u)>=0&&(yield function(f,_){const C=f.Vu.ce(_);
1return C.targetChanges.forEach((F,K)=>{if(F.resumeToken.approximateByteSize()>0){const re=f.Au.get(K);re&&f.Au.set(K,re.withResumeToken(F.resumeToken,_))}}),C.targetMismatches.forEach((F,K)=>{const re=f.Au.get(F);if(!re)return;f.Au.set(F,re.withResumeToken(ps.EMPTY_BYTE_STRING,re.snapshotVersion)),e_(f,F);const Be=new Ql(re.target,F,K,re.sequenceNumber);vg(f,Be)}),f.remoteSyncer.applyRemoteEvent(C)}(l,i))}catch(u){In("RemoteStore","Failed to raise snapshot:",u),yield i_(l,u)}var u}),j0.apply(this,arguments)}function i_(l,t,i){return H0.apply(this,arguments)}function H0(){return H0=(0,g.Z)(function*(l,t,i){if(!hs(t))throw t;l.vu.add(1),yield ad(l),l.bu.set("Offline"),i||(i=()=>Hm(l.localStore)),l.asyncQueue.enqueueRetryable((0,g.Z)(function*(){In("RemoteStore","Retrying IndexedDB access"),yield i(),l.vu.delete(1),yield ch(l)}))}),H0.apply(this,arguments)}function Nl(l,t){return t().catch(i=>i_(l,i,t))}function lu(l){return uh.apply(this,arguments)}function uh(){return uh=(0,g.Z)(function*(l){const t=ii(l),i=Fl(t);let u=t.Eu.length>0?t.Eu[t.Eu.length-1].batchId:-1;for(;yg(t);)try{const f=yield sg(t.localStore,u);if(null===f){0===t.Eu.length&&i.jo();break}u=f.batchId,dh(t,f)}catch(f){yield i_(t,f)}r_(t)&&kf(t)}),uh.apply(this,arguments)}function yg(l){return ld(l)&&l.Eu.length<10}function dh(l,t){l.Eu.push(t);const i=Fl(l);i.Ko()&&i.ou&&i.uu(t.mutations)}function r_(l){return ld(l)&&!Fl(l).Uo()&&l.Eu.length>0}function kf(l){Fl(l).start()}function Hb(l){return Ic.apply(this,arguments)}function Ic(){return Ic=(0,g.Z)(function*(l){Fl(l).hu()}),Ic.apply(this,arguments)}function Cg(l){return $0.apply(this,arguments)}function $0(){return $0=(0,g.Z)(function*(l){const t=Fl(l);for(const i of l.Eu)t.uu(i.mutations)}),$0.apply(this,arguments)}function $b(l,t,i){return xg.apply(this,arguments)}function xg(){return xg=(0,g.Z)(function*(l,t,i){const u=l.Eu.shift(),f=Zp.from(u,t,i);yield Nl(l,()=>l.remoteSyncer.applySuccessfulWrite(f)),yield lu(l)}),xg.apply(this,arguments)}function G0(l,t){return Rf.apply(this,arguments)}function Rf(){return Rf=(0,g.Z)(function*(l,t){var i;t&&Fl(l).ou&&(yield(i=(0,g.Z)(function*(u,f){if(h0(_=f.code)&&_!==Jt.ABORTED){const C=u.Eu.shift();Fl(u).Qo(),yield Nl(u,()=>u.remoteSyncer.rejectFailedWrite(C.batchId,f)),yield lu(u)}var _}),function(u,f){return i.apply(this,arguments)})(l,t)),r_(l)&&kf(l)}
1),Rf.apply(this,arguments)}function hh(l,t){return ud.apply(this,arguments)}function ud(){return ud=(0,g.Z)(function*(l,t){const i=ii(l);i.asyncQueue.verifyOperationInProgress(),In("RemoteStore","RemoteStore received new credentials");const u=ld(i);i.vu.add(3),yield ad(i),u&&i.bu.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(t),i.vu.delete(3),yield ch(i)}),ud.apply(this,arguments)}function Nf(l,t){return cu.apply(this,arguments)}function cu(){return cu=(0,g.Z)(function*(l,t){const i=ii(l);t?(i.vu.delete(2),yield ch(i)):t||(i.vu.add(2),yield ad(i),i.bu.set("Unknown"))}),cu.apply(this,arguments)}function uu(l){return l.Su||(l.Su=function(t,i,u){const f=ii(t);return f.fu(),new Jm(i,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{uo:V0.bind(null,l),ao:n_.bind(null,l),nu:M1.bind(null,l)}),l.Ru.push(function(){var t=(0,g.Z)(function*(i){i?(l.Su.Qo(),Sf(l)?t_(l):l.bu.set("Unknown")):(yield l.Su.stop(),cd(l))});return function(i){return t.apply(this,arguments)}}())),l.Su}function Fl(l){return l.Du||(l.Du=function(t,i,u){const f=ii(t);return f.fu(),new lh(i,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{uo:Hb.bind(null,l),ao:G0.bind(null,l),au:Cg.bind(null,l),cu:$b.bind(null,l)}),l.Ru.push(function(){var t=(0,g.Z)(function*(i){i?(l.Du.Qo(),yield lu(l)):(yield l.Du.stop(),l.Eu.length>0&&(In("RemoteStore",`Stopping write stream with ${l.Eu.length} pending writes`),l.Eu=[]))});return function(i){return t.apply(this,arguments)}}())),l.Du}class wg{constructor(t,i,u,f,_){this.asyncQueue=t,this.timerId=i,this.targetTimeMs=u,this.op=f,this.removalCallback=_,this.deferred=new To,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(C=>{})}static createAndSchedule(t,i,u,f,_){const C=Date.now()+u,F=new wg(t,i,C,f,_);return F.start(u),F}start(t){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),t)}skipDelay(){return this.handleDelayElapsed()}cancel(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Sn(Jt.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1)}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(t=>this.deferred.resolve(t))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function dd(l,t){if(zr("AsyncQueue",`${t}: ${l}`),hs(l))return new Sn(Jt.UNAVAILABLE,`${t}: ${l}`);throw l}class Sc{constructor(t){this.comparator=t?(i,u)=>t(i,u)||Qn.comparator(i.key,u.key):(i,u)=>Qn.comparator(i.key,u.key),this.keyedMap=Kl(),this.sortedSet=new Jr(this.comparator)}static emptySet(t){return new Sc(t.comparator)}has(t){return null!=this.keyedMap.get(t)}get(t){return this.keyedMap.get(t)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(t){const i=this.keyedMap.get(t);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(t){this.sortedSet.inorderTraversal((i,u)=>(t(i),!1))}add(t){const i=this.delete(t.key);return i.copy(i.keyedMap.insert(t.key,t),i.sortedSet.insert(t,null))}delete(t){const i=this.get(t);return i?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(i)):this}isEqual(t){if(!(t instanceof Sc)||this.size!==t.size)return!1;const i=this.sortedSet.getIterator(),u=t.sortedSet.getIterator();for(;i.hasNext();){const f=i.getNext().key,_=u.getNext().key;if(!f.isEqual(_))return!1}return!0}toString(){const t=[];return this.forEach(i=>{t.push(i.toString())}),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"}copy(t,i){const u=new Sc;return u.comparator=this.comparator,u.keyedMap=t,u.sortedSet=i,u}}class Mg{constructor(){this.Cu=new Jr(Qn.comparator)}track(t){const i=t.doc.key,u=this.Cu.get(i);u?0!==t.type&&3===u.type?this.Cu=this.Cu.insert(i,t):3===t.type&&1!==u.type?this.Cu=this.Cu.insert(i,{type:u.type,doc:t.doc}):2===t.type&&2===u.type?this.Cu=this.Cu.insert(i,{type:2,doc:t.doc}):2===t.type&&0===u.type?this.Cu=this.Cu.insert(i,{type:0,doc:t.doc}):1===t.type&&0===u.type?this.Cu=this.Cu.remove(i):1===t.type&&2===u.type?this.Cu=this.Cu.insert(i,{type:1,doc:u.doc}):0===t.type&&1===u.type?this.Cu=this.Cu.insert(i,{type:2,doc:t.doc}):si():this.Cu=this.Cu.insert(i,t)}xu(){const t=[];return this.Cu.inorderTraversal((i,u)=>{t.push(u)}),t}}class hd{constructor(t,i,u,f,_,C,F,K,re){this.query=t,this.docs=i,this.oldDocs=u,this.docChanges=f,this.mutatedKeys=_,this.fromCache=C,this.syncStateChanged=F,this.excludesMetadataChanges=K,this.hasCachedResults=re}static fromInitialDocuments(t,i,u,f,_){const C=[];return i.forEach(F=>{C.push({type:0,doc:F})}),new hd(t,i,Sc.emptySet(i),C,u,f,!0,!1,_)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(t){if(!(this.fromCache===t.fromCache&&this.hasCachedResults===t.hasCachedResults&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&qt(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;const i=this.docChanges,u=t.docChanges;if(i.length!==u.length)return!1;for(let f=0;f<i.length;f++)if(i[f].type!==u[f].type||!i[f].doc.isEqual(u[f].doc))return!1;return!0}}class Eg{constructor(){this.Nu=void 0,this.listeners=[]}}class Gb{constructor(){this.queries=new Ws(t=>an(t),qt),this.onlineState="Unknown",this.ku=new Set}}function Tg(l,t){return o_.apply(this,arguments)}function o_(){return o_=(0,g.Z)(function*(l,t){const i=ii(l),u=t.query;let f=!1,_=i.queries.get(u);if(_||(f=!0,_=new Eg),f)try{_.Nu=yield i.onListen(u)}catch(C){const F=dd(C,`Initialization of query '${jn(t.query)}' failed`);return void t.onError(F)}i.queries.set(u,_),_.listeners.push(t),t.Mu(i.onlineState),_.Nu&&t.$u(_.Nu)&&l_(i)}),o_.apply(this,arguments)}function Og(l,t){return s_.apply(this,arguments)}function s_(){return s_=(0,g.Z)(function*(l,t){const i=ii(l),u=t.query;let f=!1;const _=i.queries.get(u);if(_){const C=_.listeners.indexOf(t);C>=0&&(_.listeners.splice(C,1),f=0===_.listeners.length)}if(f)return i.queries.delete(u),i.onUnlisten(u)}),s_.apply(this,arguments)}function W0(l,t){const i=ii(l);let u=!1;for(const f of t){const C=i.queries.get(f.query);if(C){for(const F of C.listeners)F.$u(f)&&(u=!0);C.Nu=f}}u&&l_(i)}function a_(l,t,i){const u=ii(l),f=u.queries.get(t);if(f)for(const _ of f.listeners)_.onError(i);u.queries.delete(t)}function l_(l){l.ku.forEach(t=>{t.next()})}class Fo{constructor(t,i,u){this.query=t,this.Ou=i,this.Fu=!1,this.Bu=null,this.onlineState="Unknown",this.options=u||{}}$u(t){if(!this.options.includeMetadataChanges){const u=[];for(const f of t.docChanges)3!==f.type&&u.push(f);t=new hd(t.query,t.docs,t.oldDocs,u,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0,t.hasCachedResults)}let i=!1;return this.Fu?this.Lu(t)&&(this.Ou.next(t),i=!0):this.qu(t,this.onlineState)&&(this.Uu(t),i=!0),this.Bu=t,i}onError(t){this.Ou.error(t)}Mu(t){this.onlineState=t;let i=!1;return this.Bu&&!this.Fu&&this.qu(this.Bu,t)&&(this.Uu(this.Bu),i=!0),i}qu(t,i){return!t.fromCache||(!this.options.Ku||!("Offline"!==i))&&(!t.docs.isEmpty()||t.hasCachedResults||"Offline"===i)}Lu(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.Bu&&this.Bu.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges}Uu(t){t=hd.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache,t.hasCachedResults),this.Fu=!0,this.Ou.next(t)}}class Pg{constructor(t,i){this.Gu=t,this.byteLength=i}Qu(){return"metadata"in this.Gu}}
1class fh{constructor(t){this.serializer=t}rr(t){return Jl(this.serializer,t)}ur(t){return t.metadata.exists?ns(this.serializer,t.document,!1):Po.newNoDocument(this.rr(t.metadata.name),this.cr(t.metadata.readTime))}cr(t){return ms(t)}}class K0{constructor(t,i,u){this.ju=t,this.localStore=i,this.serializer=u,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=Y0(t)}zu(t){this.progress.bytesLoaded+=t.byteLength;let i=this.progress.documentsLoaded;if(t.Gu.namedQuery)this.queries.push(t.Gu.namedQuery);else if(t.Gu.documentMetadata){this.documents.push({metadata:t.Gu.documentMetadata}),t.Gu.documentMetadata.exists||++i;const u=Gi.fromString(t.Gu.documentMetadata.name);this.collectionGroups.add(u.get(u.length-2))}else t.Gu.document&&(this.documents[this.documents.length-1].document=t.Gu.document,++i);return i!==this.progress.documentsLoaded?(this.progress.documentsLoaded=i,Object.assign({},this.progress)):null}Wu(t){const i=new Map,u=new fh(this.serializer);for(const f of t)if(f.metadata.queries){const _=u.rr(f.metadata.name);for(const C of f.metadata.queries){const F=(i.get(C)||mr()).add(_);i.set(C,F)}}return i}complete(){var t=this;return(0,g.Z)(function*(){const i=yield function Z0(l,t,i,u){return $m.apply(this,arguments)}(t.localStore,new fh(t.serializer),t.documents,t.ju.id),u=t.Wu(t.documents);for(const f of t.queries)yield Gm(t.localStore,f,u.get(f.name));return t.progress.taskState="Success",{progress:t.progress,Hu:t.collectionGroups,Ju:i}})()}}function Y0(l){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:l.totalDocuments,totalBytes:l.totalBytes}}class Dg{constructor(t){this.key=t}}class Ff{constructor(t){this.key=t}}class J0{constructor(t,i){this.query=t,this.Yu=i,this.Xu=null,this.hasCachedResults=!1,this.current=!1,this.Zu=mr(),this.mutatedKeys=mr(),this.tc=ir(t),this.ec=new Sc(this.tc)}get nc(){return this.Yu}sc(t,i){const u=i?i.ic:new Mg,f=i?i.ec:this.ec;let _=i?i.mutatedKeys:this.mutatedKeys,C=f,F=!1;const K="F"===this.query.limitType&&f.size===this.query.limit?f.last():null,re="L"===this.query.limitType&&f.size===this.query.limit?f.first():null;if(t.inorderTraversal((Be,_t)=>{const tn=f.get(Be),xn=vi(this.query,_t)?_t:null,Bn=!!tn&&this.mutatedKeys.has(tn.key),bi=!!xn&&(xn.hasLocalMutations||this.mutatedKeys.has(xn.key)&&xn.hasCommittedMutations);let wi=!1;tn&&xn?tn.data.isEqual(xn.data)?Bn!==bi&&(u.track({type:3,doc:xn}),wi=!0):this.rc(tn,xn)||(u.track({type:2,doc:xn}),wi=!0,(K&&this.tc(xn,K)>0||re&&this.tc(xn,re)<0)&&(F=!0)):!tn&&xn?(u.track({type:0,doc:xn}),wi=!0):tn&&!xn&&(u.track({type:1,doc:tn}),wi=!0,(K||re)&&(F=!0)),wi&&(xn?(C=C.add(xn),_=bi?_.add(Be):_.delete(Be)):(C=C.delete(Be),_=_.delete(Be)))}),null!==this.query.limit)for(;C.size>this.query.limit;){const Be="F"===this.query.limitType?C.last():C.first();C=C.delete(Be.key),_=_.delete(Be.key),u.track({type:1,doc:Be})}return{ec:C,ic:u,zi:F,mutatedKeys:_}}rc(t,i){return t.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(t,i,u){const f=this.ec;this.ec=t.ec,this.mutatedKeys=t.mutatedKeys;const _=t.ic.xu();_.sort((re,Be)=>function(_t,tn){const xn=Bn=>{switch(Bn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return si()}};return xn(_t)-xn(tn)}(re.type,Be.type)||this.tc(re.doc,Be.doc)),this.oc(u);const C=i?this.uc():[],F=0===this.Zu.size&&this.current?1:0,K=F!==this.Xu;return this.Xu=F,0!==_.length||K?{snapshot:new hd(this.query,t.ec,f,_,t.mutatedKeys,0===F,K,!1,!!u&&u.resumeToken.approximateByteSize()>0),cc:C}:{cc:C}}Mu(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({ec:this.ec,ic:new Mg,mutatedKeys:this.mutatedKeys,zi:!1},!1)):{cc:[]}}ac(t){return!this.Yu.has(t)&&!!this.ec.has(t)&&!this.ec.get(t).hasLocalMutations}oc(t){t&&(t.addedDocuments.forEach(i=>this.Yu=this.Yu.add(i)),t.modifiedDocuments.forEach(i=>{}),t.removedDocuments.forEach(i=>this.Yu=this.Yu.delete(i)),this.current=t.current)}uc(){if(!this.current)return[];const t=this.Zu;this.Zu=mr(),this.ec.forEach(u=>{this.ac(u.key)&&(this.Zu=this.Zu.add(u.key))});const i=[];return t.forEach(u=>{this.Zu.has(u)||i.push(new Ff(u))}),this.Zu.forEach(u=>{t.has(u)||i.push(new Dg(u))}),i}hc(t){this.Yu=t.ir,this.Zu=mr();const i=this.sc(t.documents);return this.applyChanges(i,!0)}lc(){return hd.fromInitialDocuments(this.query,this.ec,this.mutatedKeys,0===this.Xu,this.hasCachedResults)}}class Wb{constructor(t,i,u){this.query=t,this.targetId=i,this.view=u}}class Ag{constructor(t){this.key=t,this.fc=!1}}class Q0{constructor(t,i,u,f,_,C){this.localStore=t,this.remoteStore=i,this.eventManager=u,this.sharedCl
1ientState=f,this.currentUser=_,this.maxConcurrentLimboResolutions=C,this.dc={},this.wc=new Ws(F=>an(F),qt),this._c=new Map,this.mc=new Set,this.gc=new Jr(Qn.comparator),this.yc=new Map,this.Ic=new sr,this.Tc={},this.Ec=new Map,this.Ac=Aa.Mn(),this.onlineState="Unknown",this.vc=void 0}get isPrimaryClient(){return!0===this.vc}}function X0(l,t){return Lf.apply(this,arguments)}function Lf(){return Lf=(0,g.Z)(function*(l,t){const i=ic(l);let u,f;const _=i.wc.get(t);if(_)u=_.targetId,i.sharedClientState.addLocalQueryTarget(u),f=_.view.lc();else{const C=yield su(i.localStore,N(t)),F=i.sharedClientState.addLocalQueryTarget(C.targetId);u=C.targetId,f=yield Ig(i,t,u,"current"===F,C.resumeToken),i.isPrimaryClient&&If(i.remoteStore,C)}return f}),Lf.apply(this,arguments)}function Ig(l,t,i,u,f){return Va.apply(this,arguments)}function Va(){return Va=(0,g.Z)(function*(l,t,i,u,f){l.Rc=(_t,tn,xn)=>{return(Bn=(0,g.Z)(function*(bi,wi,_r,Lr){let kr=wi.view.sc(_r);kr.zi&&(kr=yield od(bi.localStore,wi.query,!1).then(({documents:Bo})=>wi.view.sc(Bo,kr)));const Ds=Lr&&Lr.targetChanges.get(wi.targetId),Go=wi.view.applyChanges(kr,bi.isPrimaryClient,Ds);return Bf(bi,wi.targetId,Go.cc),Go.snapshot}),function(bi,wi,_r,Lr){return Bn.apply(this,arguments)})(l,_t,tn,xn);var Bn};const _=yield od(l.localStore,t,!0),C=new J0(t,_.ir),F=C.sc(_.documents),K=ff.createSynthesizedTargetChangeForCurrentChange(i,u&&"Offline"!==l.onlineState,f),re=C.applyChanges(F,l.isPrimaryClient,K);Bf(l,i,re.cc);const Be=new Wb(t,i,C);return l.wc.set(t,Be),l._c.has(i)?l._c.get(i).push(t):l._c.set(i,[t]),re.snapshot}),Va.apply(this,arguments)}function fd(l,t){return Sg.apply(this,arguments)}function Sg(){return Sg=(0,g.Z)(function*(l,t){const i=ii(l),u=i.wc.get(t),f=i._c.get(u.targetId);if(f.length>1)return i._c.set(u.targetId,f.filter(_=>!qt(_,t))),void i.wc.delete(t);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(u.targetId),i.sharedClientState.isActiveQueryTarget(u.targetId)||(yield Sl(i.localStore,u.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(u.targetId),_g(i.remoteStore,u.targetId),hl(i,u.targetId)}).catch(Ml))):(hl(i,u.targetId),yield Sl(i.localStore,u.targetId,!0))}),Sg.apply(this,arguments)}function nl(){return nl=(0,g.Z)(function*(l,t,i){const u=pd(l);try{const f=yield function(_,C){const F=ii(_),K=Oi.now(),re=C.reduce((tn,xn)=>tn.add(xn.key),mr());let Be,_t;return F.persistence.runTransaction("Locally write mutations","readwrite",tn=>{let xn=gs(),Bn=mr();return F.Zi.getEntries(tn,re).next(bi=>{xn=bi,xn.forEach((wi,_r)=>{_r.isValidDocument()||(Bn=Bn.add(wi))})}).next(()=>F.localDocuments.getOverlayedDocuments(tn,xn)).next(bi=>{Be=bi;const wi=[];for(const _r of C){const Lr=p1(_r,Be.get(_r.key).overlayedDocument);null!=Lr&&wi.push(new el(_r.key,Lr,Pp(Lr.value.mapValue),ts.exists(!0)))}return F.mutationQueue.addMutationBatch(tn,K,wi,C)}).next(bi=>{_t=bi;const wi=bi.applyToLocalDocumentSet(Be,Bn);return F.documentOverlayCache.saveOverlays(tn,bi.batchId,wi)})}).then(()=>({batchId:_t.batchId,changes:Rp(Be)}))}(u.localStore,t);u.sharedClientState.addPendingMutation(f.batchId),function(_,C,F){let K=_.Tc[_.currentUser.toKey()];K||(K=new Jr(Rt)),K=K.insert(C,F),_.Tc[_.currentUser.toKey()]=K}(u,f.batchId,i),yield nc(u,f.changes),yield lu(u.remoteStore)}catch(f){const _=dd(f,"Failed to persist write");i.reject(_)}}),nl.apply(this,arguments)}function kg(l,t){return Rg.apply(this,arguments)}function Rg(){return Rg=(0,g.Z)(function*(l,t){const i=ii(l);try{const u=yield og(i.localStore,t);
1t.targetChanges.forEach((f,_)=>{const C=i.yc.get(_);C&&(_i(f.addedDocuments.size+f.modifiedDocuments.size+f.removedDocuments.size<=1),f.addedDocuments.size>0?C.fc=!0:f.modifiedDocuments.size>0?_i(C.fc):f.removedDocuments.size>0&&(_i(C.fc),C.fc=!1))}),yield nc(i,u,t)}catch(u){yield Ml(u)}}),Rg.apply(this,arguments)}function Uf(l,t,i){const u=ii(l);if(u.isPrimaryClient&&0===i||!u.isPrimaryClient&&1===i){const f=[];u.wc.forEach((_,C)=>{const F=C.view.Mu(t);F.snapshot&&f.push(F.snapshot)}),function(_,C){const F=ii(_);F.onlineState=C;let K=!1;F.queries.forEach((re,Be)=>{for(const _t of Be.listeners)_t.Mu(C)&&(K=!0)}),K&&l_(F)}(u.eventManager,t),f.length&&u.dc.nu(f),u.onlineState=t,u.isPrimaryClient&&u.sharedClientState.setOnlineState(t)}}function E1(l,t,i){return Ng.apply(this,arguments)}function Ng(){return Ng=(0,g.Z)(function*(l,t,i){const u=ii(l);u.sharedClientState.updateQueryState(t,"rejected",i);const f=u.yc.get(t),_=f&&f.key;if(_){let C=new Jr(Qn.comparator);C=C.insert(_,Po.newNoDocument(_,Kn.min()));const F=mr().add(_),K=new hf(Kn.min(),new Map,new Jr(Rt),C,F);yield kg(u,K),u.gc=u.gc.remove(_),u.yc.delete(t),Fg(u)}else yield Sl(u.localStore,t,!1).then(()=>hl(u,t,i)).catch(Ml)}),Ng.apply(this,arguments)}function c_(l,t){return u_.apply(this,arguments)}function u_(){return u_=(0,g.Z)(function*(l,t){const i=ii(l),u=t.batch.batchId;try{const f=yield L0(i.localStore,t);gh(i,u,null),ph(i,u),i.sharedClientState.updateMutationState(u,"acknowledged"),yield nc(i,f)}catch(f){yield Ml(f)}}),u_.apply(this,arguments)}function ev(l,t,i){return Zf.apply(this,arguments)}function Zf(){return Zf=(0,g.Z)(function*(l,t,i){const u=ii(l);try{const f=yield function(_,C){const F=ii(_);return F.persistence.runTransaction("Reject batch","readwrite-primary",K=>{let re;return F.mutationQueue.lookupMutationBatch(K,C).next(Be=>(_i(null!==Be),re=Be.keys(),F.mutationQueue.removeMutationBatch(K,Be))).next(()=>F.mutationQueue.performConsistencyCheck(K)).next(()=>F.documentOverlayCache.removeOverlaysForBatchId(K,re,C)).next(()=>F.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(K,re)).next(()=>F.localDocuments.getDocuments(K,re))})}(u.localStore,t);gh(u,t,i),ph(u,t),u.sharedClientState.updateMutationState(t,"rejected",i),yield nc(u,f)}catch(f){yield Ml(f)}}),Zf.apply(this,arguments)}function d_(){return d_=(0,g.Z)(function*(l,t){const i=ii(l);ld(i.remoteStore)||In("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const u=yield function(_){const C=ii(_);return C.persistence.runTransaction("Get highest unacknowledged batch id","readonly",F=>C.mutationQueue.getHighestUnacknowledgedBatchId(F))}(i.localStore);if(-1===u)return void t.resolve();const f=i.Ec.get(u)||[];f.push(t),i.Ec.set(u,f)}catch(u){const f=dd(u,"Initialization of waitForPendingWrites() operation failed");t.reject(f)}}),d_.apply(this,arguments)}function ph(l,t){(l.Ec.get(t)||[]).forEach(i=>{i.resolve()}),l.Ec.delete(t)}function gh(l,t,i){const u=ii(l);let f=u.Tc[u.currentUser.toKey()];if(f){const _=f.get(t);_&&(i?_.reject(i):_.resolve(),f=f.remove(t)),u.Tc[u.currentUser.toKey()]=f}}function hl(l,t,i=null){l.sharedClientState.removeLocalQueryTarget(t);for(const u of l._c.get(t))l.wc.delete(u),i&&l.dc.Pc(u,i);l._c.delete(t),l.isPrimaryClient&&l.Ic.Is(t).forEach(u=>{l.Ic.containsKey(u)||tv(l,u)})}function tv(l,t){l.mc.delete(t.path.canonicalString());const i=l.gc.get(t);null!==i&&(_g(l.remoteStore,i),l.gc=l.gc.remove(t),l.yc.delete(i),Fg(l))}function Bf(l,t,i){for(const u of i)u instanceof Dg?(l.Ic.addReference(u.key,t),Jb(l,u)):u instanceof Ff?(In("SyncEngine","Document no longer in limbo: "+u.key),l.Ic.removeReference(u.key,t),l.Ic.containsKey(u.key)||tv(l,u.key)):si()}function Jb(l,t){const i=t.key,u=i.path.canonicalString();l.gc.get(i)||l.mc.has(u)||(In("SyncEngine","New document in limbo: "+i),l.mc.add(u),Fg(l))}function Fg(l){for(;l.mc.size>0&&l.gc.size<l.maxConcurrentLimboResolutions;){const t=l.mc.values().next().value;l.mc.delete(t);const i=new Qn(Gi.fromString(t)),u=l.Ac.next();l.yc.set(u,new Ag(i)),l.gc=l.gc.insert(i,u),If(l.remoteStore,new Ql(N(Qa(i.path)),u,"TargetPurposeLimboResolution",T.ct))}}function nc(l,t,i){return Lg.apply(this,arguments)}function Lg(){return Lg=(0,g.Z)(function*(l,t,i){const u=ii(l),f=[],_=[],C=[];var F;u.wc.isEmpty()||(u.wc.forEach((F,K)=>{C.push(u.Rc(K,t,i).then(re=>
1{if((re||i)&&u.isPrimaryClient&&u.sharedClientState.updateQueryState(K.targetId,re?.fromCache?"not-current":"current"),re){f.push(re);const Be=rh.Li(K.targetId,re);_.push(Be)}}))}),yield Promise.all(C),u.dc.nu(f),yield(F=(0,g.Z)(function*(K,re){const Be=ii(K);try{yield Be.persistence.runTransaction("notifyLocalViewChanges","readwrite",_t=>rn.forEach(re,tn=>rn.forEach(tn.Fi,xn=>Be.persistence.referenceDelegate.addReference(_t,tn.targetId,xn)).next(()=>rn.forEach(tn.Bi,xn=>Be.persistence.referenceDelegate.removeReference(_t,tn.targetId,xn)))))}catch(_t){if(!hs(_t))throw _t;In("LocalStore","Failed to update sequence numbers: "+_t)}for(const _t of re){const tn=_t.targetId;if(!_t.fromCache){const xn=Be.Ji.get(tn),bi=xn.withLastLimboFreeSnapshotVersion(xn.snapshotVersion);Be.Ji=Be.Ji.insert(tn,bi)}}}),function(K,re){return F.apply(this,arguments)})(u.localStore,_))}),Lg.apply(this,arguments)}function nv(l,t){return zf.apply(this,arguments)}function zf(){return zf=(0,g.Z)(function*(l,t){const i=ii(l);if(!i.currentUser.isEqual(t)){In("SyncEngine","User change. New user:",t.toKey());const u=yield jb(i.localStore,t);i.currentUser=t,(f=i).Ec.forEach(C=>{C.forEach(F=>{F.reject(new Sn(Jt.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),f.Ec.clear(),i.sharedClientState.handleUserChange(t,u.removedBatchIds,u.addedBatchIds),yield nc(i,u.er)}var f}),zf.apply(this,arguments)}function kc(l,t){const i=ii(l),u=i.yc.get(t);if(u&&u.fc)return mr().add(u.key);{let f=mr();const _=i._c.get(t);if(!_)return f;for(const C of _){const F=i.wc.get(C);f=f.unionWith(F.view.nc)}return f}}function Vf(l,t){return du.apply(this,arguments)}function du(){return du=(0,g.Z)(function*(l,t){const i=ii(l),u=yield od(i.localStore,t.query,!0),f=t.view.hc(u);return i.isPrimaryClient&&Bf(i,t.targetId,f.cc),f}),du.apply(this,arguments)}function mh(l,t){return h_.apply(this,arguments)}function h_(){return h_=(0,g.Z)(function*(l,t){const i=ii(l);return U0(i.localStore,t).then(u=>nc(i,u))}),h_.apply(this,arguments)}function iv(l,t,i,u){return f_.apply(this,arguments)}function f_(){return f_=(0,g.Z)(function*(l,t,i,u){const f=ii(l),_=yield function(C,F){const K=ii(C),re=ii(K.mutationQueue);return K.persistence.runTransaction("Lookup mutation documents","readonly",Be=>re.Sn(Be,F).next(_t=>_t?K.localDocuments.getDocuments(Be,_t):rn.resolve(null)))}(f.localStore,t);var F;null!==_?("pending"===i?yield lu(f.remoteStore):"acknowledged"===i||"rejected"===i?(gh(f,t,u||null),ph(f,t),F=t,ii(ii(f.localStore).mutationQueue).Cn(F)):si(),yield nc(f,_)):In("SyncEngine","Cannot apply mutation batch with id: "+t)}),f_.apply(this,arguments)}function p_(){return p_=(0,g.Z)(function*(l,t){const i=ii(l);if(ic(i),pd(i),!0===t&&!0!==i.vc){const u=i.sharedClientState.getAllActiveQueryTargets(),f=yield hu(i,u.toArray());i.vc=!0,yield Nf(i.remoteStore,!0);for(const _ of f)If(i.remoteStore,_)}else if(!1===t&&!1!==i.vc){const u=[];let f=Promise.resolve();i._c.forEach((_,C)=>{i.sharedClientState.isLocalQueryTarget(C)?u.push(C):f=f.then(()=>(hl(i,C),Sl(i.localStore,C,!0))),_g(i.remoteStore,C)}),yield f,yield hu(i,u),function(_){const C=ii(_);C.yc.forEach((F,K)=>{_g(C.remoteStore,K)}),C.Ic.Ts(),C.yc=new Map,C.gc=new Jr(Qn.comparator)}(i),i.vc=!1,yield Nf(i.remoteStore,!1)}}),p_.apply(this,arguments)}function hu(l,t,i){return Ug.apply(this,arguments)}function Ug(){return Ug=(0,g.Z)(function*(l,t,i){const u=ii(l),f=[],_=[];for(const C of t){let F;const K=u._c.get(C);if(K&&0!==K.length){F=yield su(u.localStore,N(K[0]));for(const re of K){const Be=u.wc.get(re),_t=yield Vf(u,Be);_t.snapshot&&_.push(_t.snapshot)}}else{const re=yield Pf(u.localStore,C);F=yield su(u.localStore,re),yield Ig(u,rv(re),C,!1,F.resumeToken)}f.push(F)}return u.dc.nu(_),f}),Ug.apply(this,arguments)}function rv(l){return Yc(l.path,l.collectionGroup,l.orderBy,l.filters,l.limit,"F",l.startAt,l.endAt)}function g_(l){const t=ii(l);return ii(ii(t.localStore).persistence).$i()}function O1(l,t,i,u){return m_.apply(this,arguments)}function m_(){return m_=(0,g.Z)(function*(l,t,i,u){const f=ii(l);if(f.vc)return void In("SyncEngine","Ignoring unexpected query state notification.");const _=f._c.get(t);if(_&&_.length>0)switch(i){case"current":case"not-current":{const C=yield U0(f.localStore,Wi(_[0])),F=hf.createSynthesizedRemoteEventForCurrentChange(t,"current"===i,ps.EMPTY_BYTE_STRING);yield nc(f,C,F);break}case"rejected":yield Sl(f.localStore,t,!0),hl(f,t,u);break;default:si()}}),m_.apply(this,arguments)}function Qb(l,t,i){return Zg.apply(this,arguments)}function Zg(){return Zg=(0,g.Z)(function*(l,t,i){const u=ic(l);if(u.vc){for(const f of t){if(u._c.has(f)){In("SyncEngine","Adding an already active target "+f);continue}const _=yield Pf(u.localStore,f),C=yield su(u.localStore,_);yield Ig(u,rv(_),C.targetId,!1,C.resumeToken),If(u.remoteStore,C)}for(const f of i)u._c.has(f)&&(yield Sl(u.localStore,f,!1).then(()=>{_g(u.remoteStore,f),hl(u,f)}).catch(Ml))}}),Zg.apply(this,arguments)}function ic(l){const t=ii(l);return t.remoteStore.remoteSyncer.applyRemoteEvent=kg.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=kc.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=E1.bind(null,t),t.dc.nu=W0.bind(null,t.eventManager),t.dc.Pc=a_.bind(null,t.eventManager),t}function pd(l){const t=ii(l);return t.remoteStore.remoteSyncer.applySuccessfulWrite=c_.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=ev.bind(null,t),t}class fu{constructor(){this.synchronizeTabs=!1}initialize(t){var i=this;
1return(0,g.Z)(function*(){i.serializer=ah(t.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(t),i.persistence=i.createPersistence(t),yield i.persistence.start(),i.localStore=i.createLocalStore(t),i.gcScheduler=i.createGarbageCollectionScheduler(t,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(t,i.localStore)})()}createGarbageCollectionScheduler(t,i){return null}createIndexBackfillerScheduler(t,i){return null}createLocalStore(t){return jm(this.persistence,new Vb,t.initialUser,this.serializer)}createPersistence(t){return new Tf(id.zs,this.serializer)}createSharedClientState(t){return new sh}terminate(){var t=this;return(0,g.Z)(function*(){t.gcScheduler&&t.gcScheduler.stop(),yield t.sharedClientState.shutdown(),yield t.persistence.shutdown()})()}}class gd extends fu{constructor(t,i,u){super(),this.Vc=t,this.cacheSizeBytes=i,this.forceOwnership=u,this.synchronizeTabs=!1}initialize(t){var i=()=>super.initialize,u=this;return(0,g.Z)(function*(){yield i().call(u,t),yield u.Vc.initialize(u,t),yield pd(u.Vc.syncEngine),yield lu(u.Vc.remoteStore),yield u.persistence.Ii(()=>(u.gcScheduler&&!u.gcScheduler.started&&u.gcScheduler.start(),u.indexBackfillerScheduler&&!u.indexBackfillerScheduler.started&&u.indexBackfillerScheduler.start(),Promise.resolve()))})()}createLocalStore(t){return jm(this.persistence,new Vb,t.initialUser,this.serializer)}createGarbageCollectionScheduler(t,i){return new Zm(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue,i)}createIndexBackfillerScheduler(t,i){const u=new k(i,this.persistence);return new I(t.asyncQueue,u)}createPersistence(t){const i=ih(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),u=void 0!==this.cacheSizeBytes?Oa.withCacheSize(this.cacheSizeBytes):Oa.DEFAULT;return new ng(this.synchronizeTabs,i,t.clientId,u,t.asyncQueue,sd(),Ym(),this.serializer,this.sharedClientState,!!this.forceOwnership)}createSharedClientState(t){return new sh}}class pu extends gd{constructor(t,i){super(t,i,!1),this.Vc=t,this.cacheSizeBytes=i,this.synchronizeTabs=!0}initialize(t){var i=()=>super.initialize,u=this;return(0,g.Z)(function*(){yield i().call(u,t);const f=u.Vc.syncEngine;u.sharedClientState instanceof au&&(u.sharedClientState.syncEngine={jr:iv.bind(null,f),zr:O1.bind(null,f),Wr:Qb.bind(null,f),$i:g_.bind(null,f),Qr:mh.bind(null,f)},yield u.sharedClientState.start()),yield u.persistence.Ii(function(){var _=(0,g.Z)(function*(C){yield function T1(l,t){return p_.apply(this,arguments)}(u.Vc.syncEngine,C),u.gcScheduler&&(C&&!u.gcScheduler.started?u.gcScheduler.start():C||u.gcScheduler.stop()),u.indexBackfillerScheduler&&(C&&!u.indexBackfillerScheduler.started?u.indexBackfillerScheduler.start():C||u.indexBackfillerScheduler.stop())});return function(C){return _.apply(this,arguments)}}())})()}createSharedClientState(t){const i=sd();if(!au.D(i))throw new Sn(Jt.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const u=ih(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new au(i,t.asyncQueue,u,t.clientId,t.initialUser)}}class md{initialize(t,i){var u=this;return(0,g.Z)(function*(){u.localStore||(u.localStore=t.localStore,u.sharedClientState=t.sharedClientState,u.datastore=u.createDatastore(i),u.remoteStore=u.createRemoteStore(i),u.eventManager=u.createEventManager(i),u.syncEngine=u.createSyncEngine(i,!t.synchronizeTabs),u.sharedClientState.onlineStateHandler=f=>Uf(u.syncEngine,f,1),u.remoteStore.remoteSyncer.handleCredentialChange=nv.b
1ind(null,u.syncEngine),yield Nf(u.remoteStore,u.syncEngine.isPrimaryClient))})()}createEventManager(t){return new Gb}createDatastore(t){const i=ah(t.databaseInfo.databaseId),u=new Af(t.databaseInfo);return new Qm(t.authCredentials,t.appCheckCredentials,u,i)}createRemoteStore(t){return i=this.localStore,u=this.datastore,f=t.asyncQueue,_=F=>Uf(this.syncEngine,F,0),C=za.D()?new za:new dg,new pg(i,u,f,_,C);var i,u,f,_,C}createSyncEngine(t,i){return function(u,f,_,C,F,K,re){const Be=new Q0(u,f,_,C,F,K);return re&&(Be.vc=!0),Be}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions,i)}terminate(){return(t=(0,g.Z)(function*(i){const u=ii(i);In("RemoteStore","RemoteStore shutting down."),u.vu.add(5),yield ad(u),u.Pu.shutdown(),u.bu.set("Unknown")}),function(i){return t.apply(this,arguments)})(this.remoteStore);var t}}function __(l,t=10240){let i=0;return{read:()=>(0,g.Z)(function*(){if(i<l.byteLength){const u={value:l.slice(i,i+t),done:!1};return i+=t,u}return{done:!0}})(),cancel:()=>(0,g.Z)(function*(){})(),releaseLock(){},closed:Promise.resolve()}}class Os{constructor(t){this.observer=t,this.muted=!1}next(t){this.observer.next&&this.Sc(this.observer.next,t)}error(t){this.observer.error?this.Sc(this.observer.error,t):zr("Uncaught Error in snapshot listener:",t.toString())}Dc(){this.muted=!0}Sc(t,i){this.muted||setTimeout(()=>{this.muted||t(i)},0)}}class gu{constructor(t,i){this.Cc=t,this.serializer=i,this.metadata=new To,this.buffer=new Uint8Array,this.xc=new TextDecoder("utf-8"),this.Nc().then(u=>{u&&u.Qu()?this.metadata.resolve(u.Gu.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n ${JSON.stringify(u?.Gu)}
1`))},u=>this.metadata.reject(u))}close(){return this.Cc.cancel()}getMetadata(){var t=this;return(0,g.Z)(function*(){return t.metadata.promise})()}bc(){var t=this;return(0,g.Z)(function*(){return yield t.getMetadata(),t.Nc()})()}Nc(){var t=this;return(0,g.Z)(function*(){const i=yield t.kc();if(null===i)return null;const u=t.xc.decode(i),f=Number(u);isNaN(f)&&t.Mc(`length string (${u}) is not valid number`);const _=yield t.$c(f);return new Pg(JSON.parse(_),i.length+f)})()}Oc(){return this.buffer.findIndex(t=>t==="{".charCodeAt(0))}kc(){var t=this;return(0,g.Z)(function*(){for(;t.Oc()<0&&!(yield t.Fc()););if(0===t.buffer.length)return null;const i=t.Oc();i<0&&t.Mc("Reached the end of bundle when a length string is expected.");const u=t.buffer.slice(0,i);return t.buffer=t.buffer.slice(i),u})()}$c(t){var i=this;return(0,g.Z)(function*(){for(;i.buffer.length<t;)(yield i.Fc())&&i.Mc("Reached the end of bundle when more is expected.");const u=i.xc.decode(i.buffer.slice(0,t));return i.buffer=i.buffer.slice(t),u})()}Mc(t){throw this.Cc.cancel(),new Error(`Invalid bundle format: ${t}`)}Fc(){var t=this;return(0,g.Z)(function*(){const i=yield t.Cc.read();if(!i.done){const u=new Uint8Array(t.buffer.length+i.value.length);u.set(t.buffer),u.set(i.value,t.buffer.length),t.buffer=u}return i.done})()}}class Rc{constructor(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}lookup(t){var i=this;return(0,g.Z)(function*(){if(i.ensureCommitNotCalled(),i.mutations.length>0)throw new Sn(Jt.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");const u=yield(f=(0,g.Z)(function*(_,C){const F=ii(_),K=Kd(F.serializer)+"/documents",re={documents:C.map(xn=>eu(F.serializer,xn))},Be=yield F.vo("BatchGetDocuments",K,re,C.length),_t=new Map;Be.forEach(xn=>{const Bn=function Mb(l,t){return"found"in t?function(i,u){_i(!!u.found);const f=Jl(i,u.found.name),_=ms(u.found.updateTime),C=u.found.createTime?ms(u.found.createTime):Kn.min(),F=new Gs({mapValue:{fields:u.found.fields}});return Po.newFoundDocument(f,_,C,F)}(l,t):"missing"in t?function(i,u){_i(!!u.missing),_i(!!u.readTime);const f=Jl(i,u.missing),_=ms(u.readTime);return Po.newNoDocument(f,_)}(l,t):si()}(F.serializer,xn);_t.set(Bn.key.toString(),Bn)});const tn=[];
1return C.forEach(xn=>{const Bn=_t.get(xn.toString());_i(!!Bn),tn.push(Bn)}),tn}),function(_,C){return f.apply(this,arguments)})(i.datastore,t);var f;return u.forEach(f=>i.recordVersion(f)),u})()}set(t,i){this.write(i.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())}update(t,i){try{this.write(i.toMutation(t,this.preconditionForUpdate(t)))}catch(u){this.lastWriteError=u}this.writtenDocs.add(t.toString())}delete(t){this.write(new ju(t,this.precondition(t))),this.writtenDocs.add(t.toString())}commit(){var t=this;return(0,g.Z)(function*(){if(t.ensureCommitNotCalled(),t.lastWriteError)throw t.lastWriteError;const i=t.readVersions;var u;t.mutations.forEach(u=>{i.delete(u.key.toString())}),i.forEach((u,f)=>{const _=Qn.fromPath(f);t.mutations.push(new Em(_,t.precondition(_)))}),yield(u=(0,g.Z)(function*(f,_){const C=ii(f),F=Kd(C.serializer)+"/documents",K={writes:_.map(re=>$u(C.serializer,re))};yield C.Io("Commit",F,K)}),function(f,_){return u.apply(this,arguments)})(t.datastore,t.mutations),t.committed=!0})()}recordVersion(t){let i;if(t.isFoundDocument())i=t.version;else{if(!t.isNoDocument())throw si();i=Kn.min()}const u=this.readVersions.get(t.key.toString());if(u){if(!i.isEqual(u))throw new Sn(Jt.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),i)}precondition(t){const i=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&i?i.isEqual(Kn.min())?ts.exists(!1):ts.updateTime(i):ts.none()}preconditionForUpdate(t){const i=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&i){if(i.isEqual(Kn.min()))throw new Sn(Jt.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ts.updateTime(i)}return ts.exists(!0)}write(t){this.ensureCommitNotCalled(),this.mutations.push(t)}ensureCommitNotCalled(){}}class Nc{constructor(t,i,u,f,_){this.asyncQueue=t,this.datastore=i,this.options=u,this.updateFunction=f,this.deferred=_,this.Bc=u.maxAttempts,this.qo=new B0(this.asyncQueue,"transaction_retry")}run(){this.Bc-=1,this.Lc()}Lc(){var t=this;this.qo.No((0,g.Z)(function*(){const i=new Rc(t.datastore),u=t.qc(i);u&&u.then(f=>{t.asyncQueue.enqueueAndForget(()=>i.commit().then(()=>{t.deferred.resolve(f)}).catch(_=>{t.Uc(_)}))}).catch(f=>{t.Uc(f)})}))}qc(t){try{const i=this.updateFunction(t);return!j(i)&&i.catch&&i.then?i:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(i){return this.deferred.reject(i),null}}Uc(t){this.Bc>0&&this.Kc(t)?(this.Bc-=1,this.asyncQueue.enqueueAndForget(()=>(this.Lc(),Promise.resolve()))):this.deferred.reject(t)}Kc(t){if("FirebaseError"===t.name){const i=t.code;return"aborted"===i||"failed-precondition"===i||"already-exists"===i||!h0(i)}return!1}}class Us{constructor(t,i,u,f){var _=this;this.authCredentials=t,this.appCheckCredentials=i,this.asyncQueue=u,this.databaseInfo=f,this.user=Ei.UNAUTHENTICATED,this.clientId=He.A(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(u,function(){var C=(0,g.Z)(function*(F){In("FirestoreClient","Received user=",F.uid),yield _.authCredentialListener(F),_.user=F});return function(F){return C.apply(this,arguments)}}()),this.appCheckCredentials.start(u,C=>(In("FirestoreClient","Received new app check token=",C),this.appCheckCredentialListener(C,this.user)))}getConfiguration(){var t=this;return(0,g.Z)(function*(){return{asyncQueue:t.asyncQueue,databaseInfo:t.databaseInfo,clientId:t.clientId,authCredentials:t.authCredentials,appCheckCredentials:t.appCheckCredentials,initialUser:t.user,maxConcurrentLimboResolutions:100}})()}setCredentialChangeListener(t){this.authCredentialListener=t}setAppCheckTokenChangeListener(t){this.appCheckCredentialListener=t}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Sn(Jt.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var t=this;this.asyncQueue.enterRestrictedMode();const i=new To;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,g.Z)(function*(){try{t._onlineComponents&&(yield t._onlineComponents.terminate()),t._offlineComponents&&(yield t._offlineComponents.terminate()),t.authCredentials.shutdown(),t.appCheckCredentials.shutdown(),i.resolve()}catch(u){const f=dd(u,"Failed to shutdown persistence");i.reject(f)}})),i.promise}}function Bg(l,t){return vh.apply(this,arguments)}function vh(){return vh=(0,g.Z)(function*(l,t){l.asyncQueue.verifyOperationInProgress(),In("FirestoreClient","Initializing OfflineComponentProvider");const i=yield l.getConfiguration();yield t.initialize(i);let u=i.initialUser;l.setCredentialChangeListener(function(){var f=(0,g.Z)(function*(_){u.isEqual(_)||(yield jb(t.localStore,_),u=_)});return function(_){return f.apply(this,arguments)}}()),t.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=t}),vh.apply(this,arguments)}function qf(l,t){return rc.apply(this,arguments)}function rc(){return rc=(0,g.Z)(function*(l,t){l.asyncQueue.verifyOperationInProgress();const i=yield il(l);In("FirestoreClient","Initializing OnlineComponentProvider");const u=yield l.getConfiguration();yield t.initialize(i,u),l.setCredentialChangeListener(f=>hh(t.remoteStore,f)),l.setAppCheckTokenChangeListener((f,_)=>hh(t.remoteStore,_)),l._onlineComponents=t}),rc.apply(this,arguments)}function Ys(l){return"FirebaseError"===l.name?l.code===Jt.FAILED_PRECONDITION||l.code===Jt.UNIMPLEMENT
1ED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}function il(l){return ca.apply(this,arguments)}function ca(){return ca=(0,g.Z)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){In("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Bg(l,l._uninitializedComponentsProvider._offline)}catch(t){const i=t;if(!Ys(i))throw i;Mr("Error using user provided cache. Falling back to memory cache: "+i),yield Bg(l,new fu)}}else In("FirestoreClient","Using default OfflineComponentProvider"),yield Bg(l,new fu);return l._offlineComponents}),ca.apply(this,arguments)}function qa(l){return mu.apply(this,arguments)}function mu(){return mu=(0,g.Z)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(In("FirestoreClient","Using user provided OnlineComponentProvider"),yield qf(l,l._uninitializedComponentsProvider._online)):(In("FirestoreClient","Using default OnlineComponentProvider"),yield qf(l,new md))),l._onlineComponents}),mu.apply(this,arguments)}function ja(l){return il(l).then(t=>t.persistence)}function as(l){return il(l).then(t=>t.localStore)}function _u(l){return qa(l).then(t=>t.remoteStore)}function vu(l){return qa(l).then(t=>t.syncEngine)}function Ll(l){return bu.apply(this,arguments)}function bu(){return bu=(0,g.Z)(function*(l){const t=yield qa(l),i=t.eventManager;return i.onListen=X0.bind(null,t.syncEngine),i.onUnlisten=fd.bind(null,t.syncEngine),i}),bu.apply(this,arguments)}function fl(l,t,i={}){const u=new To;return l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return function(f,_,C,F,K){const re=new Os({next:_t=>{_.enqueueAndForget(()=>Og(f,Be));const tn=_t.docs.has(C);!tn&&_t.fromCache?K.reject(new Sn(Jt.UNAVAILABLE,"Failed to get document because the client is offline.")):tn&&_t.fromCache&&F&&"server"===F.source?K.reject(new Sn(Jt.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):K.resolve(_t)},error:_t=>K.reject(_t)}),Be=new Fo(Qa(C.path),re,{includeMetadataChanges:!0,Ku:!0});return Tg(f,Be)}(yield Ll(l),l.asyncQueue,t,i,u)})),u.promise}function bd(l,t,i={}){const u=new To;return l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return function(f,_,C,F,K){const re=new Os({next:_t=>{_.enqueueAndForget(()=>Og(f,Be)),_t.fromCache&&"server"===F.source?K.reject(new Sn(Jt.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):K.resolve(_t)},error:_t=>K.reject(_t)}),Be=new Fo(C,re,{includeMetadataChanges:!0,Ku:!0});return Tg(f,Be)}(yield Ll(l),l.asyncQueue,t,i,u)})),u.promise}function zg(l){const t={};return void 0!==l.timeoutSeconds&&(t.timeoutSeconds=l.timeoutSeconds),t}const Vg=new Map;function Hf(l,t,i){if(!i)throw new Sn(Jt.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${t}.`)}function v_(l,t,i,u){if(!0===t&&!0===u)throw new Sn(Jt.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)}function b_(l){if(!Qn.isDocumentKey(l))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function qg(l){if(Qn.isDocumentKey(l))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function $f(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const t=(i=l).constructor?i.constructor.name:null;return t?`a custom ${t} object`:"an object"}}var i;return"function"==typeof l?"a function":si()}function Sr(l,t){if("_delegate"in l&&(l=l._delegate),!(l instanceof t)){if(t.name===l.constructor.name)throw new Sn(Jt.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=$f(l);throw new Sn(Jt.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${i}`)}}return l}function Gf(l,t){if(t<=0)throw new Sn(Jt.INVALID_ARGUMENT,`Function ${l}() requires a positive number, but it was: ${t}.`)}class Wf{constructor(t){var i,u;if(void 0===t.host){if(void 0!==t.ssl)throw new Sn(Jt.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(i=t.ssl)||void 0===i||i;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,this.cache=t.localCache,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Sn(Jt.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}v_("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==t.experimentalAutoDetectLongPolling&&!t.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=zg(null!==(u=t.experimentalLongPollingOptions)&&void 0!==u?u:{}
1),function(f){if(void 0!==f.timeoutSeconds){if(isNaN(f.timeoutSeconds))throw new Sn(Jt.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new Sn(Jt.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new Sn(Jt.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!t.useFetchStreams}isEqual(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===t.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams}}class yd{constructor(t,i,u,f){this._authCredentials=t,this._appCheckCredentials=i,this._databaseId=u,this._app=f,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Wf({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Sn(Jt.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(t){if(this._settingsFrozen)throw new Sn(Jt.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Wf(t),void 0!==t.credentials&&(this._authCredentials=function(i){if(!i)return new zc;switch(i.type){case"firstParty":return new Fa(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new Sn(Jt.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(t.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(t){const i=Vg.get(t);i&&(In("ComponentProvider","Removing Datastore"),Vg.delete(t),i.terminate())}(this),Promise.resolve()}}function Kf(l,t,i,u={}){var f;const _=(l=Sr(l,yd))._getSettings(),C=`${t}:${i}`;if("firestore.googleapis.com"!==_.host&&_.host!==C&&Mr("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},_),{host:C,ssl:!1})),u.mockUserToken){let F,K;if("string"==typeof u.mockUserToken)F=u.mockUserToken,K=Ei.MOCK_USER;else{F=(0,ve.Sg)(u.mockUserToken,null===(f=l._app)||void 0===f?void 0:f.options.projectId);const re=u.mockUserToken.sub||u.mockUserToken.user_id;if(!re)throw new Sn(Jt.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");K=new Ei(re)}l._authCredentials=new hc(new al(F,K))}}class Lo{constructor(t,i,u){this.converter=i,this._key=u,this.type="document",this.firestore=t}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new pl(this.firestore,this.converter,this._key.path.popLast())}withConverter(t){return new Lo(this.firestore,t,this._key)}}class Js{constructor(t,i,u){this.converter=i,this._query=u,this.type="query",this.firestore=t}withConverter(t){return new Js(this.firestore,t,this._query)}}class pl extends Js{constructor(t,i,u){super(t,i,Qa(u)),this._path=u,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const t=this._path.popLast();return t.isEmpty()?null:new Lo(this.firestore,null,new Qn(t))}withConverter(t){return new pl(this.firestore,t,this._path)}}function xh(l,t,...i){if(l=(0,ve.m9)(l),Hf("collection","path",t),l instanceof yd){const u=Gi.fromString(t,...i);return qg(u),new pl(l,null,u)}{if(!(l instanceof Lo||l instanceof pl))throw new Sn(Jt.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const u=l._path.child(Gi.fromString(t,...i));
1return qg(u),new pl(l.firestore,null,u)}}function wh(l,t){if(l=Sr(l,yd),Hf("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid collection ID '${t}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new Js(l,null,(i=t,new Wl(Gi.emptyPath(),i)));var i}function jg(l,t,...i){if(l=(0,ve.m9)(l),1===arguments.length&&(t=He.A()),Hf("doc","path",t),l instanceof yd){const u=Gi.fromString(t,...i);return b_(u),new Lo(l,null,new Qn(u))}{if(!(l instanceof Lo||l instanceof pl))throw new Sn(Jt.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const u=l._path.child(Gi.fromString(t,...i));return b_(u),new Lo(l.firestore,l instanceof pl?l.converter:null,new Qn(u))}}function cv(l,t){return l=(0,ve.m9)(l),t=(0,ve.m9)(t),(l instanceof Lo||l instanceof pl)&&(t instanceof Lo||t instanceof pl)&&l.firestore===t.firestore&&l.path===t.path&&l.converter===t.converter}function Mh(l,t){return l=(0,ve.m9)(l),t=(0,ve.m9)(t),l instanceof Js&&t instanceof Js&&l.firestore===t.firestore&&qt(l._query,t._query)&&l.converter===t.converter}class uv{constructor(){this.Gc=Promise.resolve(),this.Qc=[],this.jc=!1,this.zc=[],this.Wc=null,this.Hc=!1,this.Jc=!1,this.Yc=[],this.qo=new B0(this,"async_queue_retry"),this.Xc=()=>{const i=Ym();i&&In("AsyncQueue","Visibility state changed to "+i.visibilityState),this.qo.Mo()};const t=Ym();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Xc)}get isShuttingDown(){return this.jc}enqueueAndForget(t){this.enqueue(t)}enqueueAndForgetEvenWhileRestricted(t){this.Zc(),this.ta(t)}enterRestrictedMode(t){if(!this.jc){this.jc=!0,this.Jc=t||!1;const i=Ym();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.Xc)}}enqueue(t){if(this.Zc(),this.jc)return new Promise(()=>{});const i=new To;return this.ta(()=>this.jc&&this.Jc?Promise.resolve():(t().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(t){this.enqueueAndForget(()=>(this.Qc.push(t),this.ea()))}ea(){var t=this;return(0,g.Z)(function*(){if(0!==t.Qc.length){try{yield t.Qc[0](),t.Qc.shift(),t.qo.reset()}catch(i){if(!hs(i))throw i;In("AsyncQueue","Operation failed with retryable error: "+i)}t.Qc.length>0&&t.qo.No(()=>t.ea())}})()}ta(t){const i=this.Gc.then(()=>(this.Hc=!0,t().catch(u=>{throw this.Wc=u,this.Hc=!1,zr("INTERNAL UNHANDLED ERROR: ",function(_){let C=_.message||"";return _.stack&&(C=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),C}(u)),u}).then(u=>(this.Hc=!1,u))));return this.Gc=i,i}enqueueAfterDelay(t,i,u){this.Zc(),this.Yc.indexOf(t)>-1&&(i=0);const f=wg.createAndSchedule(this,t,i,u,_=>this.na(_));return this.zc.push(f),f}Zc(){this.Wc&&si()}verifyOperationInProgress(){}sa(){var t=this;return(0,g.Z)(function*(){let i;do{i=t.Gc,yield i}while(i!==t.Gc)})()}ia(t){for(const i of this.zc)if(i.timerId===t)return!0;return!1}ra(t){return this.sa().then(()=>{this.zc.sort((i,u)=>i.targetTimeMs-u.targetTimeMs);for(const i of this.zc)if(i.skipDelay(),"all"!==t&&i.timerId===t)break;return this.sa()})}oa(t){this.Yc.push(t)}na(t){const i=this.zc.indexOf(t);this.zc.splice(i,1)}}function Hg(l){return function(t,i){if("object"!=typeof t||null===t)return!1;const u=t;for(const f of["next","error","complete"])if(f in u&&"function"==typeof u[f])return!0;return!1}(l)}class y_{constructor(){this._progressObserver={},this._taskCompletionResolver=new To,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(t,i,u){this._progressObserver={next:t,error:i,complete:u}}catch(t){return this._taskCompletionResolver.promise.catch(t)}then(t,i){return this._taskCompletionResolver.promise.then(t,i)}_completeWith(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)}_failWith(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)}_updateProgress(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)}}const C_=-1;class Uo extends yd{constructor(t,i,u,f){super(t,i,u,f),this.type="firestore",this._queue=new uv,this._persistenceKey=f?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||x_(this),this._firestoreClient.terminate()}}function hv(l,t){const i="object"==typeof l?l:(0,e.getApp)(),u="string"==typeof l?l:t||"(default)",f
1=(0,e._getProvider)(i,"firestore").getImmediate({identifier:u});if(!f._initialized){const _=(0,ve.P0)("firestore");_&&Kf(f,..._)}return f}function _s(l){return l._firestoreClient||x_(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function x_(l){var t,i,u;const f=l._freezeSettings(),_=(F=(null===(t=l._app)||void 0===t?void 0:t.options.appId)||"",new Mp(l._databaseId,F,l._persistenceKey,(re=f).host,re.ssl,re.experimentalForceLongPolling,re.experimentalAutoDetectLongPolling,zg(re.experimentalLongPollingOptions),re.useFetchStreams));var F,re;l._firestoreClient=new Us(l._authCredentials,l._appCheckCredentials,l._queue,_),(null===(i=f.cache)||void 0===i?void 0:i._offlineComponentProvider)&&(null===(u=f.cache)||void 0===u?void 0:u._onlineComponentProvider)&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:f.cache.kind,_offline:f.cache._offlineComponentProvider,_online:f.cache._onlineComponentProvider})}function Xb(l,t){M_(l=Sr(l,Uo));const i=_s(l);if(i._uninitializedComponentsProvider)throw new Sn(Jt.FAILED_PRECONDITION,"SDK cache is already specified.");
1Mr("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const u=l._freezeSettings(),f=new md;return $g(i,f,new gd(f,u.cacheSizeBytes,t?.forceOwnership))}function fv(l){M_(l=Sr(l,Uo));const t=_s(l);if(t._uninitializedComponentsProvider)throw new Sn(Jt.FAILED_PRECONDITION,"SDK cache is already specified.");Mr("enableMultiTabIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const i=l._freezeSettings(),u=new md;return $g(t,u,new pu(u,i.cacheSizeBytes))}function $g(l,t,i){const u=new To;return l.asyncQueue.enqueue((0,g.Z)(function*(){try{yield Bg(l,i),yield qf(l,t),u.resolve()}catch(f){const _=f;if(!Ys(_))throw _;Mr("Error enabling indexeddb cache. Falling back to memory cache: "+_),u.reject(_)}})).then(()=>u.promise)}function Gg(l){if(l._initialized&&!l._terminated)throw new Sn(Jt.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const t=new To;return l._queue.enqueueAndForgetEvenWhileRestricted((0,g.Z)(function*(){try{yield(i=(0,g.Z)(function*(u){if(!Wa.D())return Promise.resolve();const f=u+"main";yield Wa.delete(f)}),function(u){return i.apply(this,arguments)})(ih(l._databaseId,l._persistenceKey)),t.resolve()}catch(i){t.reject(i)}var i})),t.promise}function w_(l){return function(t){const i=new To;return t.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return function Yb(l,t){return d_.apply(this,arguments)}(yield vu(t),i)})),i.promise}(_s(l=Sr(l,Uo)))}function pv(l){return function bh(l){return l.asyncQueue.enqueue((0,g.Z)(function*(){const t=yield ja(l),i=yield _u(l);return t.setNetworkEnabled(!0),function(u){const f=ii(u);return f.vu.delete(0),ch(f)}(i)}))}(_s(l=Sr(l,Uo)))}function gv(l){return function yh(l){return l.asyncQueue.enqueue((0,g.Z)(function*(){const t=yield ja(l),i=yield _u(l);return t.setNetworkEnabled(!1),(u=(0,g.Z)(function*(f){const _=ii(f);_.vu.add(0),yield ad(_),_.bu.set("Offline")}),function(f){return u.apply(this,arguments)})(i);var u}))}(_s(l=Sr(l,Uo)))}function Wg(l,t){const i=_s(l=Sr(l,Uo)),u=new y_;return function lv(l,t,i,u){const f=function(_,C){let F;return F="string"==typeof _?f0().encode(_):_,K=function(K,re){if(K instanceof Uint8Array)return __(K,void 0);if(K instanceof ArrayBuffer)return __(new Uint8Array(K),void 0);if(K instanceof ReadableStream)return K.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(F),new gu(K,C);var K}(i,ah(t));l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){!function _h(l,t,i){const u=ii(l);var f;(f=(0,g.Z)(function*(_,C,F){try{const K=yield C.getMetadata();if(yield function(tn,xn){const Bn=ii(tn),bi=ms(xn.createTime);return Bn.persistence.runTransaction("hasNewerBundle","readonly",wi=>Bn.qs.getBundleMetadata(wi,xn.id)).then(wi=>!!wi&&wi.createTime.compareTo(bi)>=0)}(_.localStore,K))return yield C.close(),F._completeWith({taskState:"Success",documentsLoaded:(tn=K).totalDocuments,bytesLoaded:tn.totalBytes,totalDocuments:tn.totalDocuments,totalBytes:tn.totalBytes}),Promise.resolve(new Set);F._updateProgress(Y0(K));const re=new K0(K,_.localStore,C.serializer);let Be=yield C.bc();for(;Be;){const tn=yield re.zu(Be);tn&&F._updateProgress(tn),Be=yield C.bc()}const _t=yield re.complete();return yield nc(_,_t.Ju,void 0),yield function(tn,xn){const Bn=ii(tn);return Bn.persistence.runTransaction("Save bundle","readwrite",bi=>Bn.qs.saveBundleMetadata(bi,xn))}(_.localStore,K),F._completeWith(_t.progress),Promise.resolve(_t.Hu)}catch(K){return Mr("SyncEngine",`Loading bundle failed with ${K}`),F._failWith(K),Promise.resolve(new Set)}var tn}),function(_,C,F){return f.apply(this,arguments)})(u,t,i).then(f=>{u.sharedClientState.notifyBundleLoaded(f)})}(yield vu(l),f,u)}))}(i,l._databaseId,t,u),u}function mv(l,t){return function Ch(l,t){return l.asyncQueue.enqueue((0,g.Z)(function*(){return function(i,u){const f=ii(i);return f.persistence.runTransaction("Get named query","readonly",_=>f.qs.getNamedQuery(_,u))}(yield as(l),t)}))}(_s(l=Sr(l,Uo)),t).then(i=>
vendor: 4,221 bytes, line 1
1i?new Js(l,null,i.query):null)}function M_(l){if(l._initialized||l._terminated)throw new Sn(Jt.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}class Cu{constructor(t){this._byteString=t}static fromBase64String(t){try{return new Cu(ps.fromBase64String(t))}catch(i){throw new Sn(Jt.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(t){return new Cu(ps.fromUint8Array(t))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(t){return this._byteString.isEqual(t._byteString)}}class xu{constructor(...t){for(let i=0;i<t.length;++i)if(0===t[i].length)throw new Sn(Jt.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Kr(t)}isEqual(t){return this._internalPath.isEqual(t._internalPath)}}class wu{constructor(t){this._methodName=t}}class Kg{constructor(t,i){if(!isFinite(t)||t<-90||t>90)throw new Sn(Jt.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(i)||i<-180||i>180)throw new Sn(Jt.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=t,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(t){return this._lat===t._lat&&this._long===t._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(t){return Rt(this._lat,t._lat)||Rt(this._long,t._long)}}const Ps=/^__.*__$/;class E_{constructor(t,i,u){this.data=t,this.fieldMask=i,this.fieldTransforms=u}toMutation(t,i){return null!==this.fieldMask?new el(t,this.data,this.fieldMask,i,this.fieldTransforms):new uf(t,this.data,i,this.fieldTransforms)}}class _v{constructor(t,i,u){this.data=t,this.fieldMask=i,this.fieldTransforms=u}toMutation(t,i){return new el(t,this.data,this.fieldMask,i,this.fieldTransforms)}}function T_(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw si()}}class Yf{constructor(t,i,u,f,_,C){this.settings=t,this.databaseId=i,this.serializer=u,this.ignoreUndefinedProperties=f,void 0===_&&this.ua(),this.fieldTransforms=_||[],this.fieldMask=C||[]}get path(){return this.settings.path}get ca(){return this.settings.ca}aa(t){return new Yf(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}ha(t){var i;const u=null===(i=this.path)||void 0===i?void 0:i.child(t),f=this.aa({path:u,la:!1});return f.fa(t),f}da(t){var i;const u=null===(i=this.path)||void 0===i?void 0:i.child(t),f=this.aa({path:u,la:!1});return f.ua(),f}wa(t){return this.aa({path:void 0,la:!0})}_a(t){return Oh(t,this.settings.methodName,this.settings.ma||!1,this.path,this.settings.ga)}contains(t){return void 0!==this.fieldMask.find(i=>t.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>t.isPrefixOf(i.field))}ua(){if(this.path)for(let t=0;t<this.path.length;t++)this.fa(this.path.get(t))}fa(t){if(0===t.length)throw this._a("Document fields must not be empty");if(T_(this.ca)&&Ps.test(t))throw this._a('Document fields cannot begin and end with "__"')}}class vv{constructor(t,i,u){this.databaseId=t,this.ignoreUndefinedProperties=i,this.serializer=u||ah(t)}ya(t,i,u,f=!1){return new Yf({ca:t,methodName:i,ga:u,path:Kr.emptyPath(),la:!1,ma:f},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Lc(l){const t=l._freezeSettings(),i=ah(l._databaseId);return new vv(l._databaseId,!!t.ignoreUndefinedProperties,i)}function Eh(l,t,i,u,f,_={}){const C=l.ya(_.merge||_.mergeFields?2:0,t,i,f);Fr("Data must be an object, but it was:",C,u);const F=Ar(u,C);let K,re;if(_.merge)K=new $s(C.fieldMask),re=C.fieldTransforms;else if(_.mergeFields){const Be=[];for(const _t of _.mergeFields){const tn=ba(t,_t,i);if(!C.contains(tn))throw new Sn(Jt.INVALID_ARGUMENT,`Field '${tn}' is specified in your field mask but missing from your input data.`);$o(Be,tn)||Be.push(tn)}K=new $s(Be),re=C.fieldTransforms.filter(_t=>K.covers(_t.field))}else K=null,re=C.fieldTransforms;
1return new E_(new Gs(F),K,re)}class Ul extends wu{_toFieldTransform(t){if(2!==t.ca)throw t._a(1===t.ca?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return t.fieldMask.push(t.path),null}isEqual(t){return t instanceof Ul}}function bv(l,t,i){return new Yf({ca:3,ga:t.settings.ga,methodName:l._methodName,la:i},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class Yg extends wu{_toFieldTransform(t){return new af(t.path,new Jc)}isEqual(t){return t instanceof Yg}}class O_ extends wu{constructor(t,i){super(t),this.pa=i}_toFieldTransform(t){const i=bv(this,t,!0),u=this.pa.map(_=>ar(_,i)),f=new Mc(u);return new af(t.path,f)}isEqual(t){return this===t}}class yv extends wu{constructor(t,i){super(t),this.pa=i}_toFieldTransform(t){const i=bv(this,t,!0),u=this.pa.map(_=>ar(_,i)),f=new Qc(u);return new af(t.path,f)}isEqual(t){return this===t}}class Jf extends wu{constructor(t,i){super(t),this.Ia=i}_toFieldTransform(t){const i=new Vu(t.serializer,a0(t.serializer,this.Ia));return new af(t.path,i)}isEqual(t){return this===t}}function P_(l,t,i,u){const f=l.ya(1,t,i);Fr("Data must be an object, but it was:",f,u);const _=[],C=Gs.empty();Hl(u,(K,re)=>{const Be=Uc(t,K,i);re=(0,ve.m9)(re);const _t=f.da(Be);if(re instanceof Ul)_.push(Be);else{const tn=ar(re,_t);null!=tn&&(_.push(Be),C.set(Be,tn))}});const F=new $s(_);return new _v(C,F,f.fieldTransforms)}function Th(l,t,i,u,f,_){const C=l.ya(1,t,i),F=[ba(t,u,i)],K=[f];if(_.length%2!=0)throw new Sn(Jt.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let tn=0;tn<_.length;tn+=2)F.push(ba(t,_[tn])),K.push(_[tn+1]);const re=[],Be=Gs.empty();for(let tn=F.length-1;tn>=0;--tn)if(!$o(re,F[tn])){const xn=F[tn];let Bn=K[tn];Bn=(0,ve.m9)(Bn);const bi=C.da(xn);if(Bn instanceof Ul)re.push(xn);else{const wi=ar(Bn,bi);null!=wi&&(re.push(xn),Be.set(xn,wi))}}const _t=new $s(re);return new _v(Be,_t,C.fieldTransforms)}function ro(l,t,i,u=!1){return ar(i,l.ya(u?4:3,t))}function ar(l,t){if(oc(l=(0,ve.m9)(l)))return Fr("Unsupported field value:",t,l),Ar(l,t);if(l instanceof wu)return function(i,u){if(!T_(u.ca))throw u._a(`${i._methodName}() can only be used with update() and set()`);if(!u.path)throw u._a(`${i._methodName}() is not currently supported inside arrays`);const f=i._toFieldTransform(u);f&&u.fieldTransforms.push(f)}(l,t),null;if(void 0===l&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),l instanceof Array){if(t.settings.la&&4!==t.ca)throw t._a("Nested arrays are not supported");return function(i,u){const f=[];let _=0;for(const C of i){let F=ar(C,u.wa(_));null==F&&(F={nullValue:"NULL_VALUE"}),f.push(F),_++}return{arrayValue:{values:f}}}(l,t)}return function(i,u){if(null===(i=(0,ve.m9)(i)))return{nullValue:"NULL_VALUE"};if("number"==typeof i)return a0(u.serializer,i);if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){const f=Oi.fromDate(i);return{timestampValue:Hu(u.serializer,f)}}if(i instanceof Oi){const f=new Oi(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:Hu(u.serializer,f)}}if(i instanceof Kg)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof Cu)return{bytesValue:v0(u.serializer,i._byteString)};if(i instanceof Lo){const f=u.databaseId,_=i.firestore._databaseId;if(!_.isEqual(f))throw u._a(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${f.projectId}/${f.database}`);return{referenceValue:b0(i.firestore._databaseId||u.databaseId,i._key.path)}}throw u._a(`Unsupported field value: ${$f(i)}`)}(l,t)}function Ar(l,t){const i={};return Zd(l)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):Hl(l,(u,f)=>{const _=ar(f,t.ha(u));null!=_&&(i[u]=_)}),{mapValue:{fields:i}}}function oc(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Oi||l instanceof Kg||l instanceof Cu||l instanceof Lo||l instanceof wu)}function Fr(l,t,i){if(!oc(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const u=$f(i);throw t._a("an object"===u?l+" a custom object":l+" "+u)}var u}function ba(l,t,i){if((t=(0,ve.m9)(t))instanceof xu)return t._internalPath;if("string"==typeof t)return Uc(l,t);throw Oh("Field path arguments must be of type string or ",l,!1,void 0,i)}const Zl=new RegExp("[~\\*/\\[\\]]");function Uc(l,t,i){if(t.search(Zl)>=0)throw Oh(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new xu(...t.split("."))._internalPath}catch{throw Oh(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Oh(l,t,i,u,f){const _=u&&!u.isEmpty(),C=void 0!==f;let F=`Function ${t}
1() called with invalid data`;i&&(F+=" (via `toFirestore()`)"),F+=". ";let K="";return(_||C)&&(K+=" (found",_&&(K+=` in field ${u}`),C&&(K+=` in document ${f}`),K+=")"),new Sn(Jt.INVALID_ARGUMENT,F+l+K)}function $o(l,t){return l.some(i=>i.isEqual(t))}class Er{constructor(t,i,u,f,_){this._firestore=t,this._userDataWriter=i,this._key=u,this._document=f,this._converter=_}get id(){return this._key.path.lastSegment()}get ref(){return new Lo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const t=new Ia(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}}get(t){if(this._document){const i=this._document.data.field(Jg("DocumentSnapshot.get",t));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Ia extends Er{data(){return super.data()}}function Jg(l,t){return"string"==typeof t?Uc(l,t):t instanceof xu?t._internalPath:t._delegate._internalPath}function Ph(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Sn(Jt.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class ua{}class Qf extends ua{}function Cv(l,t,...i){let u=[];t instanceof ua&&u.push(t),u=u.concat(i),function(f){const _=f.filter(F=>F instanceof rl).length,C=f.filter(F=>F instanceof Xf).length;if(_>1||_>0&&C>0)throw new Sn(Jt.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(u);for(const f of u)l=f._apply(l);return l}class Xf extends Qf{constructor(t,i,u){super(),this._field=t,this._op=i,this._value=u,this.type="where"}static _create(t,i,u){return new Xf(t,i,u)}_apply(t){const i=this._parse(t);return xv(t._query,i),new Js(t.firestore,t.converter,ce(t._query,i))}_parse(t){const i=Lc(t.firestore);return function(f,_,C,F,K,re,Be){let _t;if(K.isKeyField()){if("array-contains"===re||"array-contains-any"===re)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid Query. You can't perform '${re}' queries on documentId().`);if("in"===re||"not-in"===re){ml(Be,re);const tn=[];for(const xn of Be)tn.push(Ah(F,f,xn));_t={arrayValue:{values:tn}}}else _t=Ah(F,f,Be)}else"in"!==re&&"not-in"!==re&&"array-contains-any"!==re||ml(Be,re),_t=ro(C,"where",Be,"in"===re||"not-in"===re);return Vr.create(K,re,_t)}(t._query,0,i,t.firestore._databaseId,this._field,this._op,this._value)}}function D_(l,t,i){const u=t,f=Jg("where",l);return Xf._create(f,u,i)}class rl extends ua{constructor(t,i){super(),this.type=t,this._queryConstraints=i}static _create(t,i){return new rl(t,i)}_parse(t){const i=this._queryConstraints.map(u=>u._parse(t)).filter(u=>u.getFilters().length>0);return 1===i.length?i[0]:uo.create(i,this._getOperator())}_apply(t){const i=this._parse(t);return 0===i.getFilters().length?t:(function(u,f){let _=u;const C=f.getFlattenedFilters();for(const F of C)xv(_,F),_=ce(_,F)}(t._query,i),new Js(t.firestore,t.converter,ce(t._query,i)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class Xg extends Qf{constructor(t,i){super(),this._field=t,this._direction=i,this.type="orderBy"}static _create(t,i){return new Xg(t,i)}_apply(t){const i=function(u,f,_){if(null!==u.startAt)throw new Sn(Jt.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==u.endAt)throw new Sn(Jt.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");const C=new Uu(f,_);return function(F,K){if(null===Bu(F)){const re=A(F);null!==re&&Sa(0,re,K.field)}}(u,C),C}(t._query,this._field,this._direction);return new Js(t.firestore,t.converter,function(u,f){const _=u.explicitOrderBy.concat([f]);return new Wl(u.path,u.collectionGroup,_,u.filters.slice(),u.limit,u.limitType,u.startAt,u.endAt)}(t._query,i))}}function A_(l,t="asc"){const i=t,u=Jg("orderBy",l);
1return Xg._create(u,i)}class Dh extends Qf{constructor(t,i,u){super(),this.type=t,this._limit=i,this._limitType=u}static _create(t,i,u){return new Dh(t,i,u)}_apply(t){return new Js(t.firestore,t.converter,Ve(t._query,this._limit,this._limitType))}}function em(l){return Gf("limit",l),Dh._create("limit",l,"F")}function I_(l){return Gf("limitToLast",l),Dh._create("limitToLast",l,"L")}class xd extends Qf{constructor(t,i,u){super(),this.type=t,this._docOrFields=i,this._inclusive=u}static _create(t,i,u){return new xd(t,i,u)}_apply(t){const i=gl(t,this.type,this._docOrFields,this._inclusive);return new Js(t.firestore,t.converter,(f=i,new Wl((u=t._query).path,u.collectionGroup,u.explicitOrderBy.slice(),u.filters.slice(),u.limit,u.limitType,f,u.endAt)));var u,f}}function Mu(...l){return xd._create("startAt",l,!0)}function Ir(...l){return xd._create("startAfter",l,!1)}class Eu extends Qf{constructor(t,i,u){super(),this.type=t,this._docOrFields=i,this._inclusive=u}static _create(t,i,u){return new Eu(t,i,u)}_apply(t){const i=gl(t,this.type,this._docOrFields,this._inclusive);return new Js(t.firestore,t.converter,(f=i,new Wl((u=t._query).path,u.collectionGroup,u.explicitOrderBy.slice(),u.filters.slice(),u.limit,u.limitType,u.startAt,f)));var u,f}}function tp(...l){return Eu._create("endBefore",l,!1)}function S_(...l){return Eu._create("endAt",l,!0)}function gl(l,t,i,u){if(i[0]=(0,ve.m9)(i[0]),i[0]instanceof Er)return function(f,_,C,F,K){if(!F)throw new Sn(Jt.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${C}().`);const re=[];for(const Be of w(f))if(Be.field.isKeyField())re.push($l(_,F.key));else{const _t=F.data.field(Be.field);if(zd(_t))throw new Sn(Jt.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+Be.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===_t){const tn=Be.field.canonicalString();throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${tn}' (used as the orderBy) does not exist.`)}re.push(_t)}return new oa(re,K)}(l._query,l.firestore._databaseId,t,i[0]._document,u);{const f=Lc(l.firestore);return function(_,C,F,K,re,Be){const _t=_.explicitOrderBy;if(re.length>_t.length)throw new Sn(Jt.INVALID_ARGUMENT,`Too many arguments provided to ${K}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const tn=[];for(let xn=0;xn<re.length;xn++){const Bn=re[xn];if(_t[xn].field.isKeyField()){if("string"!=typeof Bn)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${K}(), but got a ${typeof Bn}`);if(!b(_)&&-1!==Bn.indexOf("/"))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${K}() must be a plain document ID, but '${Bn}' contains a slash.`);const bi=_.path.child(Gi.fromString(Bn));if(!Qn.isDocumentKey(bi))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${K}() must result in a valid document path, but '${bi}' is not because it contains an odd number of segments.`);const wi=new Qn(bi);tn.push($l(C,wi))}else{const bi=ro(F,K,Bn);tn.push(bi)}}return new oa(tn,Be)}(l._query,l.firestore._databaseId,f,t,i,u)}}function Ah(l,t,i){if("string"==typeof(i=(0,ve.m9)(i))){if(""===i)throw new Sn(Jt.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!b(t)&&-1!==i.indexOf("/"))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${i}' contains a '/' character.`);const u=t.path.child(Gi.fromString(i));if(!Qn.isDocumentKey(u))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${u}' is not because it has an odd number of segments (${u.length}).`);
vendor: 4,389 bytes, line 1
1return $l(l,new Qn(u))}if(i instanceof Lo)return $l(l,i._key);throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${$f(i)}.`)}function ml(l,t){if(!Array.isArray(l)||0===l.length)throw new Sn(Jt.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function xv(l,t){if(t.isInequality()){const u=A(l),f=t.field;if(null!==u&&!u.isEqual(f))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '${u.toString()}' and '${f.toString()}'`);const _=Bu(l);null!==_&&Sa(0,f,_)}const i=function(u,f){for(const _ of u)for(const C of _.getFlattenedFilters())if(f.indexOf(C.op)>=0)return C.op;return null}(l.filters,function(u){switch(u){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==i)throw new Sn(Jt.INVALID_ARGUMENT,i===t.op?`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`:`Invalid query. You cannot use '${t.op.toString()}' filters with '${i.toString()}' filters.`)}function Sa(l,t,i){if(!i.isEqual(t))throw new Sn(Jt.INVALID_ARGUMENT,`Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '${t.toString()}' and so you must also use '${t.toString()}' as your first argument to orderBy(), but your first orderBy() is on field '${i.toString()}' instead.`)}class np{convertValue(t,i="none"){switch(ul(t)){case 0:return null;case 1:return t.booleanValue;case 2:return Ho(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,i);case 5:return t.stringValue;case 6:return this.convertBytes(_c(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,i);case 10:return this.convertObject(t.mapValue,i);default:throw si()}}convertObject(t,i){return this.convertObjectMap(t.fields,i)}convertObjectMap(t,i="none"){const u={};return Hl(t,(f,_)=>{u[f]=this.convertValue(_,i)}),u}convertGeoPoint(t){return new Kg(Ho(t.latitude),Ho(t.longitude))}convertArray(t,i){return(t.values||[]).map(u=>this.convertValue(u,i))}convertServerTimestamp(t,i){switch(i){case"previous":const u=Nu(t);return null==u?null:this.convertValue(u,i);case"estimate":return this.convertTimestamp(Vd(t));default:return null}}convertTimestamp(t){const i=Ka(t);return new Oi(i.seconds,i.nanos)}convertDocumentKey(t,i){const u=Gi.fromString(t);_i(Im(u));const f=new Ol(u.get(1),u.get(3)),_=new Qn(u.popFirst(5));return f.isEqual(i)||zr(`Document ${_} contains a document reference within a different database (${f.projectId}/${f.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),_}}function Ih(l,t,i){let u;return u=l?i&&(i.merge||i.mergeFields)?l.toFirestore(t,i):l.toFirestore(t):t,u}class ey extends np{constructor(t){super(),this.firestore=t}convertBytes(t){return new Cu(t)}convertReference(t){const i=this.convertDocumentKey(t,this.firestore._databaseId);return new Lo(this.firestore,null,i)}}class Tu{constructor(t,i){this.hasPendingWrites=t,this.fromCache=i}isEqual(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache}}class wd extends Er{constructor(t,i,u,f,_,C){super(t,i,u,f,C),this._firestore=t,this._firestoreImpl=t,this.metadata=_}exists(){return super.exists()}data(t={}){if(this._document){if(this._converter){const i=new rp(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}}get(t,i={}){if(this._document){const u=this._document.data.field(Jg("DocumentSnapshot.get",t));if(null!==u)return this._userDataWriter.convertValue(u,i.serverTimestamps)}}}class rp extends wd{data(t={}){return super.data(t)}}class Md{constructor(t,i,u,f){this._firestore=t,this._userDataWriter=i,this._snapshot=f,this.metadata=new Tu(f.hasPendingWrites,f.fromCache),this.query=u}get docs(){const t=[];return this.forEach(i=>
1t.push(i)),t}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(t,i){this._snapshot.docs.forEach(u=>{t.call(i,new rp(this._firestore,this._userDataWriter,u.key,u,new Tu(this._snapshot.mutatedKeys.has(u.key),this._snapshot.fromCache),this.query.converter))})}docChanges(t={}){const i=!!t.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Sn(Jt.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,f){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(C=>({type:"added",doc:new rp(u._firestore,u._userDataWriter,C.doc.key,C.doc,new Tu(u._snapshot.mutatedKeys.has(C.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(C=>f||3!==C.type).map(C=>{const F=new rp(u._firestore,u._userDataWriter,C.doc.key,C.doc,new Tu(u._snapshot.mutatedKeys.has(C.doc.key),u._snapshot.fromCache),u.query.converter);let K=-1,re=-1;return 0!==C.type&&(K=_.indexOf(C.doc.key),_=_.delete(C.doc.key)),1!==C.type&&(_=_.add(C.doc),re=_.indexOf(C.doc.key)),{type:Zo(C.type),doc:F,oldIndex:K,newIndex:re}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Zo(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return si()}}function Ev(l,t){return l instanceof wd&&t instanceof wd?l._firestore===t._firestore&&l._key.isEqual(t._key)&&(null===l._document?null===t._document:l._document.isEqual(t._document))&&l._converter===t._converter:l instanceof Md&&t instanceof Md&&l._firestore===t._firestore&&Mh(l.query,t.query)&&l.metadata.isEqual(t.metadata)&&l._snapshot.isEqual(t._snapshot)}function Tv(l){l=Sr(l,Lo);const t=Sr(l.firestore,Uo);return fl(_s(t),l._key).then(i=>R_(t,l,i))}class _l extends np{constructor(t){super(),this.firestore=t}convertBytes(t){return new Cu(t)}convertReference(t){const i=this.convertDocumentKey(t,this.firestore._databaseId);return new Lo(this.firestore,null,i)}}function tm(l){l=Sr(l,Lo);const t=Sr(l.firestore,Uo),i=_s(t),u=new _l(t);return function vd(l,t){const i=new To;return l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return(u=(0,g.Z)(function*(f,_,C){try{const F=yield function(K,re){const Be=ii(K);return Be.persistence.runTransaction("read document","readonly",_t=>Be.localDocuments.getDocument(_t,re))}(f,_);F.isFoundDocument()?C.resolve(F):F.isNoDocument()?C.resolve(null):C.reject(new Sn(Jt.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)"))}catch(F){const K=dd(F,`Failed to get document '${_} from cache`);C.reject(K)}}),function(f,_,C){return u.apply(this,arguments)})(yield as(l),t,i);var u})),i.promise}(i,l._key).then(f=>new wd(t,u,l._key,f,new Tu(null!==f&&f.hasLocalMutations,!0),l.converter))}function Ed(l){l=Sr(l,Lo);const t=Sr(l.firestore,Uo);return fl(_s(t),l._key,{source:"server"}).then(i=>R_(t,l,i))}function sc(l){l=Sr(l,Js);const t=Sr(l.firestore,Uo),i=_s(t),u=new _l(t);return Ph(l._query),bd(i,l._query).then(f=>new Md(t,u,l,f))}function Sh(l){l=Sr(l,Js);const t=Sr(l.firestore,Uo),i=_s(t),u=new _l(t);return function sv(l,t){const i=new To;return l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return(u=(0,g.Z)(function*(f,_,C){try{const F=yield od(f,_,!0),K=new J0(_,F.ir),re=K.sc(F.documents),Be=K.applyChanges(re,!1);C.resolve(Be.snapshot)}catch(F){const K=dd(F,`Failed to execute query '${_} against cache`);C.reject(K)}}),function(f,_,C){return u.apply(this,arguments)})(yield as(l),t,i);var u})),i.promise}(i,l._query).then(f=>new Md(t,u,l,f))}function Cr(l){l=Sr(l,Js);const t=Sr(l.firestore,Uo),i=_s(t),u=new _l(t);return bd(i,l._query,{source:"server"}).then(f=>new Md(t,u,l,f))}function Ov(l,t,i){l=Sr(l,Lo);const u=Sr(l.firestore,Uo),f=Ih(l.converter,t,i);return ol(u,[Eh(Lc(u),"setDoc",l._key,f,null!==l.converter,i).toMutation(l._key,ts.none())])}function Td(l,t,i,...u){l=Sr(l,Lo);const f=Sr(l.firestore,Uo),_=Lc(f);let C;return C="string"==typeof(t=(0,ve.m9)(t))||t instanceof xu?Th(_,"updateDoc",l._key,t,i,u):P_(_,"updateDoc",l._key,t),ol(f,[C.toMutation(l._key,ts.exists(!0))])}function Pv(l){return ol(Sr(l.firestore,Uo),[new ju(l._key,ts.none())])}function _o(l,t){const i=Sr(l.firestore,Uo),u=jg(l),f=Ih(l.converter,t);return ol(i,[Eh(Lc(l.firestore),"addDoc",u._key,f,null!==l.converter,{}).toMutation(u._key,ts.exists(!1))]).then(()=>u)}function k_(l,...t){var i,u,f;l=(0,ve.m9)(l);let _={includeMetadataChanges:!1},C=0;"object"!=typeof t[C]||Hg(t[C])||(_=t[C],C++);const F={includeMetadataChanges:_.includeMetadataChanges};if(Hg(t[C])){const _t=t[C];t[C]=null===(i=_t.next)||void 0===i?void 0:i.bind(_t),t[C+1]=null===(u=_t.error)||void 0===u?void 0:u.bind(_t),t[C+2]=null===(f=_t.complete)||void 0===f?void 0:f.bind(_t)}let K,re,Be;if(l instanceof Lo)re=Sr(l.firestore,Uo),Be=Qa(l._key.path),K={next:_t=>{t[C]&&t[C](R_(re,l,_t))}
1,error:t[C+1],complete:t[C+2]};else{const _t=Sr(l,Js);re=Sr(_t.firestore,Uo),Be=_t._query;const tn=new _l(re);K={next:xn=>{t[C]&&t[C](new Md(re,tn,_t,xn))},error:t[C+1],complete:t[C+2]},Ph(l._query)}return function(_t,tn,xn,Bn){const bi=new Os(Bn),wi=new Fo(tn,bi,xn);return _t.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return Tg(yield Ll(_t),wi)})),()=>{bi.Dc(),_t.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return Og(yield Ll(_t),wi)}))}}(_s(re),Be,F,K)}function ry(l,t){return function av(l,t){const i=new Os(t);return l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return u=yield Ll(l),f=i,ii(u).ku.add(f),void f.next();var u,f})),()=>{i.Dc(),l.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return u=yield Ll(l),f=i,void ii(u).ku.delete(f);var u,f}))}}(_s(l=Sr(l,Uo)),Hg(t)?t:{next:t})}function ol(l,t){return function(i,u){const f=new To;return i.asyncQueue.enqueueAndForget((0,g.Z)(function*(){return function Kb(l,t,i){return nl.apply(this,arguments)}(yield vu(i),u,f)})),f.promise}(_s(l),t)}function R_(l,t,i){const u=i.docs.get(t._key),f=new _l(l);return new wd(l,f,t._key,u,new Tu(i.hasPendingWrites,i.fromCache),t.converter)}const I1={maxAttempts:5};class Nh{constructor(t,i){this._firestore=t,this._commitHandler=i,this._mutations=[],this._committed=!1,this._dataReader=Lc(t)}set(t,i,u){this._verifyNotCommitted();const f=ac(t,this._firestore),_=Ih(f.converter,i,u),C=Eh(this._dataReader,"WriteBatch.set",f._key,_,null!==f.converter,u);return this._mutations.push(C.toMutation(f._key,ts.none())),this}update(t,i,u,...f){this._verifyNotCommitted();const _=ac(t,this._firestore);let C;return C="string"==typeof(i=(0,ve.m9)(i))||i instanceof xu?Th(this._dataReader,"WriteBatch.update",_._key,i,u,f):P_(this._dataReader,"WriteBatch.update",_._key,i),this._mutations.push(C.toMutation(_._key,ts.exists(!0))),this}delete(t){this._verifyNotCommitted();const i=ac(t,this._firestore);return this._mutations=this._mutations.concat(new ju(i._key,ts.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new Sn(Jt.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function ac(l,t){if((l=(0,ve.m9)(l)).firestore!==t)throw new Sn(Jt.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return l}class Sv extends class{constructor(t,i){this._firestore=t,this._transaction=i,this._dataReader=Lc(t)}get(t){const i=ac(t,this._firestore),u=new ey(this._firestore);return this._transaction.lookup([i._key]).then(f=>{if(!f||1!==f.length)return si();const _=f[0];if(_.isFoundDocument())return new Er(this._firestore,u,_.key,_,i.converter);if(_.isNoDocument())return new Er(this._firestore,u,i._key,null,i.converter);throw si()})}set(t,i,u){const f=ac(t,this._firestore),_=Ih(f.converter,i,u),C=Eh(this._dataReader,"Transaction.set",f._key,_,null!==f.converter,u);return this._transaction.set(f._key,C),this}update(t,i,u,...f){const _=ac(t,this._firestore);let C;return C="string"==typeof(i=(0,ve.m9)(i))||i instanceof xu?Th(this._dataReader,"Transaction.update",_._key,i,u,f):P_(this._dataReader,"Transaction.update",_._key,i),this._transaction.update(_._key,C),this}delete(t){const i=ac(t,this._firestore);return this._transaction.delete(i._key),this}}{constructor(t,i){super(t,i),this._firestore=t}get(t){const i=ac(t,this._firestore),u=new _l(this._firestore);return super.get(t).then(f=>new wd(this._firestore,u,i._key,f._document,new Tu(!1,!1),i.converter))}}function sp(l,t,i){l=Sr(l,Uo);const u=Object.assign(Object.assign({},I1),i);return function(f){if(f.maxAttempts<1)throw new Sn(Jt.INVALID_ARGUMENT,"Max attempts must be at least 1")}(u),function(f,_,C){const F=new To;return f.asyncQueue.enqueueAndForget((0,g.Z)(function*(){const K=yield function _d(l){return qa(l).then(t=>t.datastore)}(f);new Nc(f.asyncQueue,K,C,_,F).run()})),F.promise}(_s(l),f=>t(new Sv(l,f)),u)}function kv(){return new Ul("deleteField")}function ap(){return new Yg("serverTimestamp")}function Pd(...l){return new O_("arrayUnion",l)}function N_(...l){return new yv("arrayRemove",l)}function F_(l){return new Jf("increment",l)}!function(l,t=!0){Pr=e.SDK_VERSION,(0,e._registerComponent)(new R.wA("firestore",(i,{instanceIdentifier:u,options:f})=>{const _=i.getProvider("app").getImmediate(),C=new Uo(new fc(i.getProvider("auth-internal")),new S(i.getProvider("app-check-internal")),function(F,K){if(!Object.prototype.hasOwnProperty.apply(F.options,["projectId"]))throw new Sn(Jt.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ol(F.options.projectId,K)}(_,u),_);return f=Object.assign({useFetchStreams:t},f),C._setSettings(f),C},"PUBLIC").setMultipleInstances(!0)),(0,e.registerVersion)(yr,"3.13.0",l),(0,e.registerVersion)(yr,"3.13.0","esm2017")}()},6961:(wn,bt,D)=>{"use strict";D.d(bt,{$Y:()=>Zi,B0:()=>po,FN:()=>Yi,IX:()=>Ge,Jt:()=>Io,KV:()=>zi,UJ:()=>ye,Ym:()=>bs,a1:()=>Bs,aF:()=>ea,bm:()=>li,cF:()=>no,g6:()=>rs,gE:()=>Ut,gH:()=>mt,iH:()=>fa,oq:()=>ha,pb:()=>is,qm:()=>Ze,sd:()=>to,y4:()=>pn});var g=D(5861),e=D(6881),R=D(2090),me=D(4859);const ve="firebasestorage.googleapis.com",ae="storageBucket";class x extends R.ZR{constructor(ge,Qe,Et=0){super(de(ge),`Firebase Storage: ${Qe} (${de(ge)})`),this.status_=Et,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,x.prototype)}get status(){return this.status_}set status(ge){this.status_=ge}_codeEquals(ge){return de(ge)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(ge){this.customData.serverResponse=ge,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var G=(()=>{return(pe=G||(G={})).UNKNOWN="unknown",pe.OBJECT_NOT_FOUND="object-not-found",pe.BUCKET_NOT_FOUND="bucket-not-found",pe.PROJECT_NOT_FOUND="project-not-found",pe.QUOTA_EXCEEDED="quota-exceeded",pe.UNAUTHENTICATED="unauthenticated",pe.UNAUTHORIZED="unauthorized",pe.UNAUTHORIZED_APP="unauthorized-app",pe.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",pe.INVALID_CHECKSUM="invalid-checksum",pe.CANCELED="canceled",pe.INVALID_EVENT_NAME="invalid-event-name",pe.INVALID_URL="invalid-url",pe.INVALID_DEFAULT_BUCKET="invalid-default-bucket",pe.NO_DEFAULT_BUCKET="no-default-bucket",pe.CANNOT_SLICE_BLOB="cannot-slice-blob",pe.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",pe.NO_DOWNLOAD_URL="no-download-url",pe.INVALID_ARGUMENT="invalid-argument",pe.INVALID_ARGUMENT_COUNT="invalid-argument-count",pe.APP_DELETED="app-deleted",pe.INVALID_ROOT_OPERATION="invalid-root-operation",pe.INVALID_FORMAT="invalid-format",pe.INTERNAL_ERROR="internal-error",pe.UNSUPPORTED_ENVIRONMENT="unsupported-environment",G;var pe})();function de(pe){return"storage/"+pe}function dt(){return new x(G.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function sn(){return new x(G.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function Xt(){return new x(G.CANCELED,"User canceled the upload/download.")}function Ye(){return new x(G.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function mt(pe){return new x(G.INVALID_ARGUMENT,pe)}function zt(){return new x(G.APP_DELETED,"The Firebase app was deleted.")}function pn(pe){return new x(G.INVALID_ROOT_OPERATION,"The operation '"+pe+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function $t(pe,ge){return new x(G.INVALID_FORMAT,"String does not match format '"+pe+"': "+ge)}function Vn(pe){throw new x(G.INTERNAL_ERROR,"Internal error: "+pe)}class Ut{constructor(ge,Qe){this.bucket=ge,this.path_=Qe}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const ge=encodeURIComponent;return"/b/"+ge(this.bucket)+"/o/"+ge(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(ge,Qe){let Et;try{Et=Ut.makeFromUrl(ge,Qe)}catch{return new Ut(ge,"")}if(""===Et.path)return Et;throw function fe(pe){return new x(G.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+pe+"'.")}(ge)}static makeFromUrl(ge,Qe){let Et=null;const Ht="([A-Za-z0-9.\\-_]+)",hi=new RegExp("^gs://"+Ht+"(/(.*))?$","i");function Fi(Hr){Hr.path_=decodeURIComponent(Hr.path)}const Zr=Qe.replace(/[.]/g,"\\."),Rr=[{regex:hi,indices:{bucket:1,path:3},postModify:function fn(Hr){"/"===Hr.path.charAt(Hr.path.length-1)&&(Hr.path_=Hr.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${Zr}/v[A-Za-z0-9_]+/b/${Ht}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:Fi},{regex:new RegExp(`^https?://${Qe===ve?"(?:storage.googleapis.com|storage.cloud.google.com)":Qe}/${Ht}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:Fi}];for(let Hr=0;Hr<Rr.length;Hr++){const ur=Rr[Hr],Yo=ur.regex.exec(ge);if(Yo){let Jo=Yo[ur.indices.path];
1Jo||(Jo=""),Et=new Ut(Yo[ur.indices.bucket],Jo),ur.postModify(Et);break}}if(null==Et)throw function ot(pe){return new x(G.INVALID_URL,"Invalid URL '"+pe+"'.")}(ge);return Et}}class gn{constructor(ge){this.promise_=Promise.reject(ge)}getPromise(){return this.promise_}cancel(ge=!1){}}function ie(pe){return"string"==typeof pe||pe instanceof String}function ft(pe){return Wt()&&pe instanceof Blob}function Wt(){return typeof Blob<"u"&&!(0,R.UG)()}function Dt(pe,ge,Qe,Et){if(Et<ge)throw mt(`Invalid value for '${pe}'. Expected ${ge} or greater.`);if(Et>Qe)throw mt(`Invalid value for '${pe}'. Expected ${Qe} or less.`)}function hn(pe,ge,Qe){let Et=ge;return null==Qe&&(Et=`https://${ge}`),`${Qe}://${Et}/v0${pe}`}function Gn(pe){const ge=encodeURIComponent;let Qe="?";for(const Et in pe)pe.hasOwnProperty(Et)&&(Qe=Qe+(ge(Et)+"=")+ge(pe[Et])+"&");return Qe=Qe.slice(0,-1),Qe}var qn=(()=>{return(pe=qn||(qn={}))[pe.NO_ERROR=0]="NO_ERROR",pe[pe.NETWORK_ERROR=1]="NETWORK_ERROR",pe[pe.ABORT=2]="ABORT",qn;var pe})();function kn(pe,ge){const Qe=pe>=500&&pe<600,Ht=-1!==[408,429].indexOf(pe),fn=-1!==ge.indexOf(pe);return Qe||Ht||fn}class ai{constructor(ge,Qe,Et,Ht,fn,Rn,hi,fi,Fi,Si,Zr,Br=!0){this.url_=ge,this.method_=Qe,this.headers_=Et,this.body_=Ht,this.successCodes_=fn,this.additionalRetryCodes_=Rn,this.callback_=hi,this.errorCallback_=fi,this.timeout_=Fi,this.progressCallback_=Si,this.connectionFactory_=Zr,this.retry=Br,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((Dr,nr)=>{this.resolve_=Dr,this.reject_=nr,this.start_()})}start_(){const Qe=(Et,Ht)=>{const fn=this.resolve_,Rn=this.reject_,hi=Ht.connection;if(Ht.wasSuccessCode)try{const fi=this.callback_(hi,hi.getResponse());!function St(pe){return void 0!==pe}(fi)?fn():fn(fi)}catch(fi){Rn(fi)}else if(null!==hi){const fi=dt();fi.serverResponse=hi.getErrorText(),Rn(this.errorCallback_?this.errorCallback_(hi,fi):fi)}else Rn(Ht.canceled?this.appDelete_?zt():Xt():sn())};this.canceled_?Qe(0,new An(!1,null,!0)):this.backoffId_=function tt(pe,ge,Qe){let Et=1,Ht=null,fn=null,Rn=!1,hi=0;function fi(){return 2===hi}let Fi=!1;function Si(...br){Fi||(Fi=!0,ge.apply(null,br))}function Zr(br){Ht=setTimeout(()=>{Ht=null,pe(Dr,fi())},br)}function Br(){fn&&clearTimeout(fn)}function Dr(br,...mi){if(Fi)return void Br();if(br)return Br(),void Si.call(null,br,...mi);if(fi()||Rn)return Br(),void Si.call(null,br,...mi);let Rr;Et<64&&(Et*=2),1===hi?(hi=2,Rr=0):Rr=1e3*(Et+Math.random()),Zr(Rr)}let nr=!1;function ji(br){nr||(nr=!0,Br(),!Fi&&(null!==Ht?(br||(hi=2),clearTimeout(Ht),Zr(0)):br||(hi=1)))}return Zr(0),fn=setTimeout(()=>{Rn=!0,ji(!0)},Qe),ji}((Et,Ht)=>{if(Ht)return void Et(!1,new An(!1,null,!0));const fn=this.connectionFactory_();this.pendingConnection_=fn;const Rn=hi=>{null!==this.progressCallback_&&this.progressCallback_(hi.loaded,hi.lengthComputable?hi.total:-1)};null!==this.progressCallback_&&fn.addUploadProgressListener(Rn),fn.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&fn.removeUploadProgressListener(Rn),this.pendingConnection_=null;const hi=fn.getErrorCode()===qn.NO_ERROR,fi=fn.getStatus();if(!hi||kn(fi,this.additionalRetryCodes_)&&this.retry){const Si=fn.getErrorCode()===qn.ABORT;return void Et(!1,new An(!1,null,Si))}const Fi=-1!==this.successCodes_.indexOf(fi);Et(!0,new An(Fi,fn))})},Qe,this.timeout_)}getPromise(){return this.promise_}cancel(ge){this.canceled_=!0,this.appDelete_=ge||!1,null!==this.backoffId_&&function Zt(pe){pe(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class An{constructor(ge,Qe,Et){this.wasSuccessCode=ge,this.connection=Qe,this.canceled=!!Et}}function zn(...pe){const ge=function ui(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==ge){const Qe=new ge;for(let Et=0;Et<pe.length;Et++)Qe.append(pe[Et]);return Qe.getBlob()}if(Wt())return new Blob(pe);throw new x(G.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}const li={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class ei{constructor(ge,Qe){this.data=ge,this.contentType=Qe||null}}function Ze(pe,ge){switch(pe){case li.RAW:return new ei(Oe(ge));case li.BASE64:case li.BASE64URL:return new ei(le(pe,ge));case li.DATA_URL:return new ei(function Q(pe){const ge=new O(pe);return ge.base64?le(li.BASE64,ge.rest):function P(pe){let ge;try{ge=decodeURIComponent(pe)}catch{throw $t(li.DATA_URL,"Malformed data URL.")}return Oe(ge)}(ge.rest)}(ge),function ke(pe){return new O(pe).contentType}(ge))}throw dt()}function Oe(pe){const ge=[];for(let Qe=0;Qe<pe.length;Qe++){let Et=pe.charCodeAt(Qe);Et<=127?ge.push(Et):Et<=2047?ge.push(192|Et>>6,128|63&Et):55296==(64512&Et)?Qe<pe.length-1&&56320==(64512&pe.charCodeAt(Qe+1))?(Et=65536|(1023&Et)<<10|1023&pe.charCodeAt(++Qe),ge.push(240|Et>>18,128|Et>>12&63,128|Et>>6&63,128|63&Et)):ge.push(239,191,189):56320==(64512&Et)?ge.push(239,191,189):ge.push(224|Et>>12,128|Et>>6&63,128|63&Et)}return new Uint8Array(ge)}function le(pe,ge){switch(pe){case li.BASE64:{const Ht=-1!==ge.indexOf("-"),fn=-1!==ge.indexOf("_");if(Ht||fn)throw $t(pe,"Invalid character '"+(Ht?"-":"_")+"' found: is it base64url encoded?");break}case li.BASE64URL:{const Ht=-1!==ge.indexOf("+"),fn=-1!==ge.indexOf("/");if(Ht||fn)throw $t(pe,"Invalid character '"+(Ht?"+":"/")+"' found: is it base64 encoded?");ge=ge.replace(/-/g,"+").replace(/_/g,"/");break}}let Qe;try{Qe=function Pi(pe){if(typeof atob>"u")throw function xt(pe){return new x(G.UNSUPPORTED_ENVIRONMENT,`${pe} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(pe)}(ge)}
vendor: 5,760 bytes, line 1
1catch(Ht){throw Ht.message.includes("polyfill")?Ht:$t(pe,"Invalid character found")}const Et=new Uint8Array(Qe.length);for(let Ht=0;Ht<Qe.length;Ht++)Et[Ht]=Qe.charCodeAt(Ht);return Et}class O{constructor(ge){this.base64=!1,this.contentType=null;const Qe=ge.match(/^data:([^,]+)?,/);if(null===Qe)throw $t(li.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const Et=Qe[1]||null;null!=Et&&(this.base64=function De(pe,ge){return pe.length>=ge.length&&pe.substring(pe.length-ge.length)===ge}(Et,";base64"),this.contentType=this.base64?Et.substring(0,Et.length-7):Et),this.rest=ge.substring(ge.indexOf(",")+1)}}class ye{constructor(ge,Qe){let Et=0,Ht="";ft(ge)?(this.data_=ge,Et=ge.size,Ht=ge.type):ge instanceof ArrayBuffer?(Qe?this.data_=new Uint8Array(ge):(this.data_=new Uint8Array(ge.byteLength),this.data_.set(new Uint8Array(ge))),Et=this.data_.length):ge instanceof Uint8Array&&(Qe?this.data_=ge:(this.data_=new Uint8Array(ge.length),this.data_.set(ge)),Et=ge.length),this.size_=Et,this.type_=Ht}size(){return this.size_}type(){return this.type_}slice(ge,Qe){if(ft(this.data_)){const Ht=function ri(pe,ge,Qe){return pe.webkitSlice?pe.webkitSlice(ge,Qe):pe.mozSlice?pe.mozSlice(ge,Qe):pe.slice?pe.slice(ge,Qe):null}(this.data_,ge,Qe);return null===Ht?null:new ye(Ht)}{const Et=new Uint8Array(this.data_.buffer,ge,Qe-ge);return new ye(Et,!0)}}static getBlob(...ge){if(Wt()){const Qe=ge.map(Et=>Et instanceof ye?Et.data_:Et);return new ye(zn.apply(null,Qe))}{const Qe=ge.map(Rn=>ie(Rn)?Ze(li.RAW,Rn).data:Rn.data_);let Et=0;Qe.forEach(Rn=>{Et+=Rn.byteLength});const Ht=new Uint8Array(Et);let fn=0;return Qe.forEach(Rn=>{for(let hi=0;hi<Rn.length;hi++)Ht[fn++]=Rn[hi]}),new ye(Ht,!0)}}uploadData(){return this.data_}}function Je(pe){let ge;try{ge=JSON.parse(pe)}catch{return null}return function je(pe){return"object"==typeof pe&&!Array.isArray(pe)}(ge)?ge:null}function st(pe){const ge=pe.lastIndexOf("/",pe.length-2);return-1===ge?pe:pe.slice(ge+1)}function Ee(pe,ge){return ge}class V{constructor(ge,Qe,Et,Ht){this.server=ge,this.local=Qe||ge,this.writable=!!Et,this.xform=Ht||Ee}}let _e=null;function un(){if(_e)return _e;const pe=[];pe.push(new V("bucket")),pe.push(new V("generation")),pe.push(new V("metageneration")),pe.push(new V("name","fullPath",!0));const Qe=new V("name");Qe.xform=function ge(fn,Rn){return function Tt(pe){return!ie(pe)||pe.length<2?pe:st(pe)}(Rn)},pe.push(Qe);const Ht=new V("size");return Ht.xform=function Et(fn,Rn){return void 0!==Rn?Number(Rn):Rn},pe.push(Ht),pe.push(new V("timeCreated")),pe.push(new V("updated")),pe.push(new V("md5Hash",null,!0)),pe.push(new V("cacheControl",null,!0)),pe.push(new V("contentDisposition",null,!0)),pe.push(new V("contentEncoding",null,!0)),pe.push(new V("contentLanguage",null,!0)),pe.push(new V("contentType",null,!0)),pe.push(new V("metadata","customMetadata",!0)),_e=pe,_e}function Ii(pe,ge,Qe){const Et=Je(ge);return null===Et?null:function Li(pe,ge,Qe){const Et={type:"file"},Ht=Qe.length;for(let fn=0;fn<Ht;fn++){const Rn=Qe[fn];Et[Rn.local]=Rn.xform(Et,ge[Rn.server])}return function Yn(pe,ge){Object.defineProperty(pe,"ref",{get:function Qe(){const fn=new Ut(pe.bucket,pe.fullPath);return ge._makeStorageReference(fn)}})}(Et,pe),Et}(pe,Et,Qe)}function at(pe,ge){const Qe={},Et=ge.length;for(let Ht=0;Ht<Et;Ht++){const fn=ge[Ht];fn.writable&&(Qe[fn.server]=pe[fn.local])}return JSON.stringify(Qe)}const Xe="prefixes";class Ot{constructor(ge,Qe,Et,Ht){this.url=ge,this.method=Qe,this.handler=Et,this.timeout=Ht,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function en(pe){if(!pe)throw dt()}function pt(pe,ge){return function Qe(Et,Ht){const fn=Ii(pe,Ht,ge);return en(null!==fn),fn}}function Ue(pe){return function ge(Qe,Et){let Ht;return Ht=401===Qe.getStatus()?Qe.getErrorText().includes("Firebase App Check token is invalid")?function qe(){return new x(G.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}():function At(){return new x(G.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===Qe.getStatus()?function We(pe){return new x(G.QUOTA_EXCEEDED,"Quota for bucket '"+pe+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(pe.bucket):403===Qe.getStatus()?function lt(pe){return new x(G.UNAUTHORIZED,"User does not have permission to access '"+pe+"'.")}(pe.path):Et,Ht.status=Qe.getStatus(),Ht.serverResponse=Et.serverResponse,Ht}}function ue(pe){const ge=Ue(pe);return function Qe(Et,Ht){let fn=ge(Et,Ht);return 404===Et.getStatus()&&(fn=function Mt(pe){return new x(G.OBJECT_NOT_FOUND,"Object '"+pe+"' does not exist.")}(pe.path)),fn.serverResponse=Ht.serverResponse,fn}}function nt(pe,ge,Qe){const Ht=hn(ge.fullServerUrl(),pe.host,pe._protocol),Rn=pe.maxOperationRetryTime,hi=new Ot(Ht,"GET",pt(pe,Qe),Rn);return hi.errorHandler=ue(ge),hi}function Nt(pe,ge,Qe,Et,Ht){const fn={};fn.prefix=ge.isRoot?"":ge.path+"/",Qe&&Qe.length>0&&(fn.delimiter=Qe),Et&&(fn.pageToken=Et),Ht&&(fn.maxResults=Ht);const hi=hn(ge.bucketOnlyServerUrl(),pe.host,pe._protocol),Fi=pe.maxOperationRetryTime,Si=new Ot(hi,"GET",function Gt(pe,ge){return function Qe(Et,Ht){const fn=function xe(pe,ge,Qe){const Et=Je(Qe);return null===Et?null:function Ie(pe,ge,Qe){const Et={prefixes:[],items:[],nextPageToken:Qe.nextPageToken};if(Qe[Xe])for(const Ht of Qe[Xe]){const fn=Ht.replace(/\/$/,""),Rn=pe._makeStorageReference(new Ut(ge,fn));Et.prefixes.push(Rn)}if(Qe.items)for(const Ht of Qe.items){const fn=pe._makeStorageReference(new Ut(ge,Ht.name));Et.items.push(fn)}return Et}(pe,ge,Et)}(pe,ge,Ht);return en(null!==fn),fn}}(pe,ge.bucket),Fi);
1return Si.urlParams=fn,Si.errorHandler=Ue(ge),Si}function vn(pe,ge,Qe){const Et=Object.assign({},Qe);return Et.fullPath=pe.path,Et.size=ge.size(),Et.contentType||(Et.contentType=function bn(pe,ge){return pe&&pe.contentType||ge&&ge.type()||"application/octet-stream"}(null,ge)),Et}function ni(pe,ge,Qe,Et,Ht){const fn=ge.bucketOnlyServerUrl(),Rn={"X-Goog-Upload-Protocol":"multipart"},fi=function hi(){let Rr="";for(let Hr=0;Hr<2;Hr++)Rr+=Math.random().toString().slice(2);return Rr}();Rn["Content-Type"]="multipart/related; boundary="+fi;const Fi=vn(ge,Et,Ht),Si=at(Fi,Qe),Dr=ye.getBlob("--"+fi+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Si+"\r\n--"+fi+"\r\nContent-Type: "+Fi.contentType+"\r\n\r\n",Et,"\r\n--"+fi+"--");if(null===Dr)throw Ye();const nr={name:Fi.fullPath},ji=hn(fn,pe.host,pe._protocol),mi=pe.maxUploadRetryTime,Wr=new Ot(ji,"POST",pt(pe,Qe),mi);return Wr.urlParams=nr,Wr.headers=Rn,Wr.body=Dr.uploadData(),Wr.errorHandler=Ue(ge),Wr}class di{constructor(ge,Qe,Et,Ht){this.current=ge,this.total=Qe,this.finalized=!!Et,this.metadata=Ht||null}}function ti(pe,ge){let Qe=null;try{Qe=pe.getResponseHeader("X-Goog-Upload-Status")}catch{en(!1)}return en(!!Qe&&-1!==(ge||["active"]).indexOf(Qe)),Qe}const Yi={STATE_CHANGED:"state_changed"},Zi={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function ho(pe){switch(pe){case"running":case"pausing":case"canceling":return Zi.RUNNING;case"paused":return Zi.PAUSED;case"success":return Zi.SUCCESS;case"canceled":return Zi.CANCELED;default:return Zi.ERROR}}class Ni{constructor(ge,Qe,Et){if(function $e(pe){return"function"==typeof pe}(ge)||null!=Qe||null!=Et)this.next=ge,this.error=Qe??void 0,this.complete=Et??void 0;else{const fn=ge;this.next=fn.next,this.error=fn.error,this.complete=fn.complete}}}function jr(pe){return(...ge)=>{Promise.resolve().then(()=>pe(...ge))}}class he extends class Bt{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=qn.NO_ERROR,this.sendPromise_=new Promise(ge=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=qn.ABORT,ge()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=qn.NETWORK_ERROR,ge()}),this.xhr_.addEventListener("load",()=>{ge()})})}send(ge,Qe,Et,Ht){if(this.sent_)throw Vn("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(Qe,ge,!0),void 0!==Ht)for(const fn in Ht)Ht.hasOwnProperty(fn)&&this.xhr_.setRequestHeader(fn,Ht[fn].toString());return void 0!==Et?this.xhr_.send(Et):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw Vn("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw Vn("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw Vn("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw Vn("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(ge){return this.xhr_.getResponseHeader(ge)}addUploadProgressListener(ge){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",ge)}removeUploadProgressListener(ge){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",ge)}}{initXhr(){this.xhr_.responseType="text"}}function ne(){return new he}class Ge{constructor(ge,Qe,Et=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=ge,this._blob=Qe,this._metadata=Et,this._mappings=un(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=Ht=>{if(this._request=void 0,this._chunkMultiplier=1,Ht._codeEquals(G.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const fn=this.isExponentialBackoffExpired();if(kn(Ht.status,[])){if(!fn)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();Ht=sn()}this._error=Ht,this._transition("error")}},this._metadataErrorHandler=Ht=>{this._request=void 0,Ht._codeEquals(G.CANCELED)?this.completeTransitions_():(this._error=Ht,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((Ht,fn)=>{this._resolve=Ht,this._reject=fn,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const ge=this._transferred;return Qe=>this._updateProgress(ge+Qe)}_shouldDoResumable(ge){return ge.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(ge){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([Qe,Et])=>{switch(this._state){case"running":ge(Qe,Et);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((ge,Qe)=>{const Et=function cr(pe,ge,Qe,Et,Ht){const fn=ge.bucketOnlyServerUrl(),Rn=vn(ge,Et,Ht),hi={name:Rn.fullPath},fi=hn(fn,pe.host,pe._protocol),Si={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${Et.size()}`,"X-Goog-Upload-Header-Content-Type":Rn.contentType,"Content-Type":"application/json; charset=utf-8"},Zr=at(Rn,Qe),nr=new Ot(fi,"POST",function Dr(ji){let br;ti(ji);try{br=ji.getResponseHeader("X-Goog-Upload-URL")}catch{en(!1)}return en(ie(br)),br},pe.maxUploadRetryTime);
1return nr.urlParams=hi,nr.headers=Si,nr.body=Zr,nr.errorHandler=Ue(ge),nr}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Ht=this._ref.storage._makeRequest(Et,ne,ge,Qe);this._request=Ht,Ht.getPromise().then(fn=>{this._request=void 0,this._uploadUrl=fn,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const ge=this._uploadUrl;this._resolveToken((Qe,Et)=>{const Ht=function Ai(pe,ge,Qe,Et){const fi=new Ot(Qe,"POST",function fn(Fi){const Si=ti(Fi,["active","final"]);let Zr=null;try{Zr=Fi.getResponseHeader("X-Goog-Upload-Size-Received")}catch{en(!1)}Zr||en(!1);const Br=Number(Zr);return en(!isNaN(Br)),new di(Br,Et.size(),"final"===Si)},pe.maxUploadRetryTime);return fi.headers={"X-Goog-Upload-Command":"query"},fi.errorHandler=Ue(ge),fi}(this._ref.storage,this._ref._location,ge,this._blob),fn=this._ref.storage._makeRequest(Ht,ne,Qe,Et);this._request=fn,fn.getPromise().then(Rn=>{this._request=void 0,this._updateProgress(Rn.current),this._needToFetchStatus=!1,Rn.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const ge=262144*this._chunkMultiplier,Qe=new di(this._transferred,this._blob.size()),Et=this._uploadUrl;this._resolveToken((Ht,fn)=>{let Rn;try{Rn=function xr(pe,ge,Qe,Et,Ht,fn,Rn,hi){const fi=new di(0,0);if(Rn?(fi.current=Rn.current,fi.total=Rn.total):(fi.current=0,fi.total=Et.size()),Et.size()!==fi.total)throw function it(){return new x(G.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const Fi=fi.total-fi.current;let Si=Fi;Ht>0&&(Si=Math.min(Si,Ht));const Zr=fi.current;let Dr="";Dr=0===Si?"finalize":Fi===Si?"upload, finalize":"upload";const nr={"X-Goog-Upload-Command":Dr,"X-Goog-Upload-Offset":`${fi.current}`},ji=Et.slice(Zr,Zr+Si);if(null===ji)throw Ye();const Rr=new Ot(Qe,"POST",function br(Hr,ur){const Yo=ti(Hr,["active","final"]),ys=fi.current+Si,Jo=Et.size();let os;return os="final"===Yo?pt(ge,fn)(Hr,ur):null,new di(ys,Jo,"final"===Yo,os)},ge.maxUploadRetryTime);return Rr.headers=nr,Rr.body=ji.uploadData(),Rr.progressCallback=hi||null,Rr.errorHandler=Ue(pe),Rr}(this._ref._location,this._ref.storage,Et,this._blob,ge,this._mappings,Qe,this._makeProgressCallback())}catch(fi){return this._error=fi,void this._transition("error")}const hi=this._ref.storage._makeRequest(Rn,ne,Ht,fn,!1);this._request=hi,hi.getPromise().then(fi=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(fi.current),fi.finalized?(this._metadata=fi.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((ge,Qe)=>{const Et=nt(this._ref.storage,this._ref._location,this._mappings),Ht=this._ref.storage._makeRequest(Et,ne,ge,Qe);this._request=Ht,Ht.getPromise().then(fn=>{this._request=void 0,this._metadata=fn,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((ge,Qe)=>{const Et=ni(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Ht=this._ref.storage._makeRequest(Et,ne,ge,Qe);this._request=Ht,Ht.getPromise().then(fn=>{this._request=void 0,this._metadata=fn,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(ge){const Qe=this._transferred;this._transferred=ge,this._transferred!==Qe&&this._notifyObservers()}_transition(ge){if(this._state!==ge)switch(ge){case"canceling":case"pausing":this._state=ge,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const Qe="paused"===this._state;this._state=ge,Qe&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=ge,this._notifyObservers();break;case"canceled":this._error=Xt(),this._state=ge,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const ge=ho(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:ge,metadata:this._metadata,task:this,ref:this._ref}}on(ge,Qe,Et,Ht){const fn=new Ni(Qe||void 0,Et||void 0,Ht||void 0);return this._addObserver(fn),()=>{this._removeObserver(fn)}}then(ge,Qe){return this._promise.then(ge,Qe)}catch(ge){return this.then(null,ge)}_addObserver(ge){this._observers.push(ge),this._notifyObserver(ge)}_removeObserver(ge){const Qe=this._observers.indexOf(ge);-1!==Qe&&this._observers.splice(Qe,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEac
1h(Qe=>{this._notifyObserver(Qe)})}_finishPromise(){if(void 0!==this._resolve){let ge=!0;switch(ho(this._state)){case Zi.SUCCESS:jr(this._resolve.bind(null,this.snapshot))();break;case Zi.CANCELED:case Zi.ERROR:jr(this._reject.bind(null,this._error))();break;default:ge=!1}ge&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(ge){switch(ho(this._state)){case Zi.RUNNING:case Zi.PAUSED:ge.next&&jr(ge.next.bind(ge,this.snapshot))();break;case Zi.SUCCESS:ge.complete&&jr(ge.complete.bind(ge))();break;default:ge.error&&jr(ge.error.bind(ge,this._error))()}}resume(){const ge="paused"===this._state||"pausing"===this._state;return ge&&this._transition("running"),ge}pause(){const ge="running"===this._state;return ge&&this._transition("pausing"),ge}cancel(){const ge="running"===this._state||"pausing"===this._state;return ge&&this._transition("canceling"),ge}}class ht{constructor(ge,Qe){this._service=ge,this._location=Qe instanceof Ut?Qe:Ut.makeFromUrl(Qe,ge.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(ge,Qe){return new ht(ge,Qe)}get root(){const ge=new Ut(this._location.bucket,"");return this._newRef(this._service,ge)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return st(this._location.path)}get storage(){return this._service}get parent(){const ge=function wt(pe){if(0===pe.length)return null;const ge=pe.lastIndexOf("/");return-1===ge?"":pe.slice(0,ge)}(this._location.path);if(null===ge)return null;const Qe=new Ut(this._location.bucket,ge);return new ht(this._service,Qe)}_throwIfRoot(ge){if(""===this._location.path)throw pn(ge)}}function Mi(pe,ge,Qe){return Ti.apply(this,arguments)}function Ti(){return(Ti=(0,g.Z)(function*(pe,ge,Qe){const Ht=yield $i(pe,{pageToken:Qe});ge.prefixes.push(...Ht.prefixes),ge.items.push(...Ht.items),null!=Ht.nextPageToken&&(yield Mi(pe,ge,Ht.nextPageToken))})).apply(this,arguments)}function $i(pe,ge){null!=ge&&"number"==typeof ge.maxResults&&Dt("options.maxResults",1,1e3,ge.maxResults);const Qe=ge||{},Et=Nt(pe.storage,pe._location,"/",Qe.pageToken,Qe.maxResults);return pe.storage.makeRequestWithTokens(Et,ne)}function Do(pe){pe._throwIfRoot("getDownloadURL");const ge=function Nn(pe,ge,Qe){const Ht=hn(ge.fullServerUrl(),pe.host,pe._protocol),Rn=pe.maxOperationRetryTime,hi=new Ot(Ht,"GET",function Ce(pe,ge){return function Qe(Et,Ht){const fn=Ii(pe,Ht,ge);return en(null!==fn),function qi(pe,ge,Qe,Et){const Ht=Je(ge);if(null===Ht||!ie(Ht.downloadTokens))return null;const fn=Ht.downloadTokens;if(0===fn.length)return null;const Rn=encodeURIComponent;return fn.split(",").map(Fi=>{const Zr=pe.fullPath;return hn("/b/"+Rn(pe.bucket)+"/o/"+Rn(Zr),Qe,Et)+Gn({alt:"media",token:Fi})})[0]}(fn,Ht,pe.host,pe._protocol)}}(pe,Qe),Rn);return hi.errorHandler=ue(ge),hi}(pe.storage,pe._location,un());return pe.storage.makeRequestWithTokens(ge,ne).then(Qe=>{if(null===Qe)throw function ze(){return new x(G.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return Qe})}function Wo(pe,ge){const Qe=function on(pe,ge){const Qe=ge.split("/").filter(Et=>Et.length>0).join("/");return 0===pe.length?Qe:pe+"/"+Qe}(pe._location.path,ge),Et=new Ut(pe._location.bucket,Qe);return new ht(pe.storage,Et)}function Is(pe,ge){if(pe instanceof Vo){const Qe=pe;if(null==Qe._bucket)throw function ut(){return new x(G.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+ae+"' property when initializing the app?")}();const Et=new ht(Qe,Qe._bucket);return null!=ge?Is(Et,ge):Et}return void 0!==ge?Wo(pe,ge):pe}function co(pe,ge){if(ge&&function Ao(pe){return/^[A-Za-z]+:\/\//.test(pe)}(ge)){if(pe instanceof Vo)return function vs(pe,ge){return new ht(pe,ge)}(pe,ge);throw mt("To use ref(service, url), the first argument must be a Storage instance.")}return Is(pe,ge)}function Ko(pe,ge){const Qe=ge?.[ae];return null==Qe?null:Ut.makeFromBucketSpec(Qe,pe)}class Vo{constructor(ge,Qe,Et,Ht,fn){this.app=ge,this._authProvider=Qe,this._appCheckProvider=Et,this._url=Ht,this._firebaseVersion=fn,this._bucket=null,this._host=ve,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=Ht?Ut.makeFromBucketSpec(Ht,this._host):Ko(this._host,this.app.options)}get host(){return this._host}set host(ge){this._host=ge,this._bucket=null!=this._url?Ut.makeFromBucketSpec(this._url,ge):Ko(ge,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(ge){Dt("time",0,Number.POSITIVE_INFINITY,ge),this._maxUploadRetryTime=ge}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(ge){Dt("time",0,Number.POSITIVE_INFINITY,ge),this._maxOperationRetryTime=ge}_getAuthToken(){var ge=this;return(0,g.Z)(function*(){if(ge._overrideAuthToken)return ge._overrideAuthToken;const Qe=ge._authProvider.getImmediate({optional:!0});if(Qe){const Et=yield Qe.getToken();if(null!==Et)return Et.accessToken}return null})()}_getAppCheckToken(){var ge=this;return(0,g.Z)(function*(){const Qe=ge._appCheckProvider.getImmediate({optional:!0});return Qe?(yield Qe.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
1h(ge=>ge.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(ge){return new ht(this,ge)}_makeRequest(ge,Qe,Et,Ht,fn=!0){if(this._deleted)return new gn(zt());{const Rn=function _n(pe,ge,Qe,Et,Ht,fn,Rn=!0){const hi=Gn(pe.urlParams),fi=pe.url+hi,Fi=Object.assign({},pe.headers);return function Hn(pe,ge){ge&&(pe["X-Firebase-GMPID"]=ge)}(Fi,ge),function Wn(pe,ge){null!==ge&&ge.length>0&&(pe.Authorization="Firebase "+ge)}(Fi,Qe),function Ln(pe,ge){pe["X-Firebase-Storage-Version"]="webjs/"+(ge??"AppManager")}(Fi,fn),function yi(pe,ge){null!==ge&&(pe["X-Firebase-AppCheck"]=ge)}(Fi,Et),new ai(fi,pe.method,Fi,pe.body,pe.successCodes,pe.additionalRetryCodes,pe.handler,pe.errorHandler,pe.timeout,pe.progressCallback,Ht,Rn)}(ge,this._appId,Et,Ht,Qe,this._firebaseVersion,fn);return this._requests.add(Rn),Rn.getPromise().then(()=>this._requests.delete(Rn),()=>this._requests.delete(Rn)),Rn}}makeRequestWithTokens(ge,Qe){var Et=this;return(0,g.Z)(function*(){const[Ht,fn]=yield Promise.all([Et._getAuthToken(),Et._getAppCheckToken()]);return Et._makeRequest(ge,Qe,Ht,fn).getPromise()})()}}const Co="@firebase/storage",Mo="storage";function zi(pe,ge,Qe){return function ct(pe,ge,Qe){pe._throwIfRoot("uploadBytes");const Et=ni(pe.storage,pe._location,un(),new ye(ge,!0),Qe);return pe.storage.makeRequestWithTokens(Et,ne).then(Ht=>({metadata:Ht,ref:pe}))}(pe=(0,R.m9)(pe),ge,Qe)}function po(pe,ge,Qe){return function jt(pe,ge,Qe){return pe._throwIfRoot("uploadBytesResumable"),new Ge(pe,new ye(ge),Qe)}(pe=(0,R.m9)(pe),ge,Qe)}function to(pe){return function Ji(pe){pe._throwIfRoot("getMetadata");const ge=nt(pe.storage,pe._location,un());return pe.storage.makeRequestWithTokens(ge,ne)}(pe=(0,R.m9)(pe))}function bs(pe,ge){return function eo(pe,ge){pe._throwIfRoot("updateMetadata");const Qe=function kt(pe,ge,Qe,Et){const fn=hn(ge.fullServerUrl(),pe.host,pe._protocol),hi=at(Qe,Et),Fi=pe.maxOperationRetryTime,Si=new Ot(fn,"PATCH",pt(pe,Et),Fi);return Si.headers={"Content-Type":"application/json; charset=utf-8"},Si.body=hi,Si.errorHandler=ue(ge),Si}(pe.storage,pe._location,ge,un());return pe.storage.makeRequestWithTokens(Qe,ne)}(pe=(0,R.m9)(pe),ge)}function is(pe,ge){return $i(pe=(0,R.m9)(pe),ge)}function ea(pe){return function Jn(pe){const ge={prefixes:[],items:[]};return Mi(pe,ge).then(()=>ge)}(pe=(0,R.m9)(pe))}function Io(pe){return Do(pe=(0,R.m9)(pe))}function ha(pe){return function As(pe){pe._throwIfRoot("deleteObject");const ge=function Ft(pe,ge){const Et=hn(ge.fullServerUrl(),pe.host,pe._protocol),hi=new Ot(Et,"DELETE",function Rn(fi,Fi){},pe.maxOperationRetryTime);return hi.successCodes=[200,204],hi.errorHandler=ue(ge),hi}(pe.storage,pe._location);return pe.storage.makeRequestWithTokens(ge,ne)}(pe=(0,R.m9)(pe))}function fa(pe,ge){return co(pe=(0,R.m9)(pe),ge)}function rs(pe,ge){return Wo(pe,ge)}function no(pe=(0,e.getApp)(),ge){pe=(0,R.m9)(pe);const Et=(0,e._getProvider)(pe,Mo).getImmediate({identifier:ge}),Ht=(0,R.P0)("storage");return Ht&&Bs(Et,...Ht),Et}function Bs(pe,ge,Qe,Et={}){!function Zs(pe,ge,Qe,Et={}){pe.host=`${ge}:${Qe}`,pe._protocol="http";const{mockUserToken:Ht}=Et;Ht&&(pe._overrideAuthToken="string"==typeof Ht?Ht:(0,R.Sg)(Ht,pe.app.options.projectId))}(pe,ge,Qe,Et)}function Rs(pe,{instanceIdentifier:ge}){const Qe=pe.getProvider("app").getImmediate(),Et=pe.getProvider("auth-internal"),Ht=pe.getProvider("app-check-internal");return new Vo(Qe,Et,Ht,ge,e.SDK_VERSION)}!function oo(){(0,e._registerComponent)(new me.wA(Mo,Rs,"PUBLIC").setMultipleInstances(!0)),(0,e.registerVersion)(Co,"0.11.2",""),(0,e.registerVersion)(Co,"0.11.2","esm2017")}()},2090:(wn,bt,D)=>{"use strict";D.d(bt,{$s:()=>Yn,BH:()=>ut,DV:()=>Hn,G6:()=>tt,GJ:()=>Wn,L:()=>z,LL:()=>ft,P0:()=>Xt,Pz:()=>fe,Sg:()=>Ye,UG:()=>xt,UI:()=>_n,US:()=>ae,Wl:()=>Gn,Yr:()=>gn,ZB:()=>de,ZR:()=>ie,aH:()=>ot,b$:()=>pn,cI:()=>hn,dS:()=>on,eu:()=>St,g5:()=>R,gK:()=>De,gQ:()=>Ze,h$:()=>se,hl:()=>Zt,hu:()=>e,jU:()=>mt,m9:()=>qi,ne:()=>Oe,p$:()=>G,pd:()=>ei,q4:()=>sn,r3:()=>Ln,ru:()=>zt,tV:()=>x,uI:()=>ze,ug:()=>st,vZ:()=>ui,w1:()=>Vn,w9:()=>An,xO:()=>Pi,xb:()=>yi,z$:()=>it,zI:()=>$e,zd:()=>li});const e=function(at,Xe){if(!at)throw R(Xe)},R=function(at){return new Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+at)},me=function(at){const Xe=[];let Re=0;for(let Ie=0;Ie<at.length;Ie++){let xe=at.charCodeAt(Ie);xe<128?Xe[Re++]=xe:xe<2048?(Xe[Re++]=xe>>6|192,Xe[Re++]=63&xe|128):55296==(64512&xe)&&Ie+1<at.length&&56320==(64512&at.charCodeAt(Ie+1))?(xe=65536+((1023&xe)<<10)+(1023&at.charCodeAt(++Ie)),Xe[Re++]=xe>>18|240,Xe[Re++]=xe>>12&63|128,Xe[Re++]=xe>>6&63|128,Xe[Re++]=63&xe|128):(Xe[Re++]=xe>>12|224,Xe[Re++]=xe>>6&63|128,Xe[Re++]=63&xe|128)}return Xe},ae={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(at,Xe){if(!Array.isArray(at))throw Error("encodeByteArray takes an array as a parameter");this.init_();
1const Re=Xe?this.byteToCharMapWebSafe_:this.byteToCharMap_,Ie=[];for(let xe=0;xe<at.length;xe+=3){const Ot=at[xe],en=xe+1<at.length,pt=en?at[xe+1]:0,Gt=xe+2<at.length,Ce=Gt?at[xe+2]:0;let nt=(15&pt)<<2|Ce>>6,Nt=63&Ce;Gt||(Nt=64,en||(nt=64)),Ie.push(Re[Ot>>2],Re[(3&Ot)<<4|pt>>4],Re[nt],Re[Nt])}return Ie.join("")},encodeString(at,Xe){return this.HAS_NATIVE_SUPPORT&&!Xe?btoa(at):this.encodeByteArray(me(at),Xe)},decodeString(at,Xe){return this.HAS_NATIVE_SUPPORT&&!Xe?atob(at):function(at){const Xe=[];let Re=0,Ie=0;for(;Re<at.length;){const xe=at[Re++];if(xe<128)Xe[Ie++]=String.fromCharCode(xe);else if(xe>191&&xe<224){const Ot=at[Re++];Xe[Ie++]=String.fromCharCode((31&xe)<<6|63&Ot)}else if(xe>239&&xe<365){const Gt=((7&xe)<<18|(63&at[Re++])<<12|(63&at[Re++])<<6|63&at[Re++])-65536;Xe[Ie++]=String.fromCharCode(55296+(Gt>>10)),Xe[Ie++]=String.fromCharCode(56320+(1023&Gt))}else{const Ot=at[Re++],en=at[Re++];Xe[Ie++]=String.fromCharCode((15&xe)<<12|(63&Ot)<<6|63&en)}}return Xe.join("")}(this.decodeStringToByteArray(at,Xe))},decodeStringToByteArray(at,Xe){this.init_();const Re=Xe?this.charToByteMapWebSafe_:this.charToByteMap_,Ie=[];for(let xe=0;xe<at.length;){const Ot=Re[at.charAt(xe++)],pt=xe<at.length?Re[at.charAt(xe)]:0;++xe;const Ce=xe<at.length?Re[at.charAt(xe)]:64;++xe;const ue=xe<at.length?Re[at.charAt(xe)]:64;if(++xe,null==Ot||null==pt||null==Ce||null==ue)throw new Te;Ie.push(Ot<<2|pt>>4),64!==Ce&&(Ie.push(pt<<4&240|Ce>>2),64!==ue&&Ie.push(Ce<<6&192|ue))}return Ie},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let at=0;at<this.ENCODED_VALS.length;at++)this.byteToCharMap_[at]=this.ENCODED_VALS.charAt(at),this.charToByteMap_[this.byteToCharMap_[at]]=at,this.byteToCharMapWebSafe_[at]=this.ENCODED_VALS_WEBSAFE.charAt(at),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[at]]=at,at>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(at)]=at,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(at)]=at)}}};class Te extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const se=function(at){const Xe=me(at);return ae.encodeByteArray(Xe,!0)},z=function(at){return se(at).replace(/\./g,"")},x=function(at){try{return ae.decodeString(at,!0)}catch(Xe){console.error("base64Decode failed: ",Xe)}return null};function G(at){return de(void 0,at)}function de(at,Xe){if(!(Xe instanceof Object))return Xe;switch(Xe.constructor){case Date:return new Date(Xe.getTime());case Object:void 0===at&&(at={});break;case Array:at=[];break;default:return Xe}for(const Re in Xe)!Xe.hasOwnProperty(Re)||!dt(Re)||(at[Re]=de(at[Re],Xe[Re]));return at}function dt(at){return"__proto__"!==at}const lt=()=>{try{return function Mt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const at=process.env.__FIREBASE_DEFAULTS__;return at?JSON.parse(at):void 0})()||(()=>{if(typeof document>"u")return;let at;try{at=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Xe=at&&x(at[1]);return Xe&&JSON.parse(Xe)})()}catch(at){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${at}`)}},sn=at=>{var Xe,Re;return null===(Re=null===(Xe=lt())||void 0===Xe?void 0:Xe.emulatorHosts)||void 0===Re?void 0:Re[at]},Xt=at=>{const Xe=sn(at);if(!Xe)return;const Re=Xe.lastIndexOf(":");if(Re<=0||Re+1===Xe.length)throw new Error(`Invalid host ${Xe} with no separate hostname and port!`);const Ie=parseInt(Xe.substring(Re+1),10);return"["===Xe[0]?[Xe.substring(1,Re-1),Ie]:[Xe.substring(0,Re),Ie]},ot=()=>{var at;return null===(at=lt())||void 0===at?void 0:at.config},fe=at=>{var Xe;return null===(Xe=lt())||void 0===Xe?void 0:Xe[`_${at}`]};class ut{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Xe,Re)=>{this.resolve=Xe,this.reject=Re})}wrapCallback(Xe){return(Re,Ie)=>{Re?this.reject(Re):this.resolve(Ie),"function"==typeof Xe&&(this.promise.catch(()=>{}),1===Xe.length?Xe(Re):Xe(Re,Ie))}}}function Ye(at,Xe){if(at.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Ie=Xe||"demo-project",xe=at.iat||0,Ot=at.sub||at.user_id;if(!Ot)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const en=Object.assign({iss:`https://securetoken.google.com/${Ie}`,aud:Ie,iat:xe,exp:xe+3600,auth_time:xe,sub:Ot,user_id:Ot,firebase:{sign_in_provider:"custom",identities:{}}},at);return[z(JSON.stringify({alg:"none",type:"JWT"})),z(JSON.stringify(en)),""].join(".")}function it(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ze(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(it())}
1function xt(){var at;const Xe=null===(at=lt())||void 0===at?void 0:at.forceEnvironment;if("node"===Xe)return!0;if("browser"===Xe)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function mt(){return"object"==typeof self&&self.self===self}function zt(){const at="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof at&&void 0!==at.id}function pn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Vn(){const at=it();return at.indexOf("MSIE ")>=0||at.indexOf("Trident/")>=0}function gn(){return!1}function tt(){return!xt()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Zt(){try{return"object"==typeof indexedDB}catch{return!1}}function St(){return new Promise((at,Xe)=>{try{let Re=!0;const Ie="validate-browser-context-for-indexeddb-analytics-module",xe=self.indexedDB.open(Ie);xe.onsuccess=()=>{xe.result.close(),Re||self.indexedDB.deleteDatabase(Ie),at(!0)},xe.onupgradeneeded=()=>{Re=!1},xe.onerror=()=>{var Ot;Xe((null===(Ot=xe.error)||void 0===Ot?void 0:Ot.message)||"")}}catch(Re){Xe(Re)}})}function $e(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class ie extends Error{constructor(Xe,Re,Ie){super(Re),this.code=Xe,this.customData=Ie,this.name="FirebaseError",Object.setPrototypeOf(this,ie.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ft.prototype.create)}}class ft{constructor(Xe,Re,Ie){this.service=Xe,this.serviceName=Re,this.errors=Ie}create(Xe,...Re){const Ie=Re[0]||{},xe=`${this.service}/${Xe}`,Ot=this.errors[Xe],en=Ot?function Wt(at,Xe){return at.replace(Dt,(Re,Ie)=>{const xe=Xe[Ie];return null!=xe?String(xe):`<${Ie}?>`})}(Ot,Ie):"Error";return new ie(xe,`${this.serviceName}: ${en} (${xe}).`,Ie)}}const Dt=/\{\$([^}]+)}/g;function hn(at){return JSON.parse(at)}
1function Gn(at){return JSON.stringify(at)}const qn=function(at){let Xe={},Re={},Ie={},xe="";try{const Ot=at.split(".");Xe=hn(x(Ot[0])||""),Re=hn(x(Ot[1])||""),xe=Ot[2],Ie=Re.d||{},delete Re.d}catch{}return{header:Xe,claims:Re,data:Ie,signature:xe}},An=function(at){const Re=qn(at).claims;return!!Re&&"object"==typeof Re&&Re.hasOwnProperty("iat")},Wn=function(at){const Xe=qn(at).claims;return"object"==typeof Xe&&!0===Xe.admin};function Ln(at,Xe){return Object.prototype.hasOwnProperty.call(at,Xe)}function Hn(at,Xe){if(Object.prototype.hasOwnProperty.call(at,Xe))return at[Xe]}function yi(at){for(const Xe in at)if(Object.prototype.hasOwnProperty.call(at,Xe))return!1;return!0}function _n(at,Xe,Re){const Ie={};for(const xe in at)Object.prototype.hasOwnProperty.call(at,xe)&&(Ie[xe]=Xe.call(Re,at[xe],xe,at));return Ie}function ui(at,Xe){if(at===Xe)return!0;const Re=Object.keys(at),Ie=Object.keys(Xe);for(const xe of Re){if(!Ie.includes(xe))return!1;const Ot=at[xe],en=Xe[xe];if(zn(Ot)&&zn(en)){if(!ui(Ot,en))return!1}else if(Ot!==en)return!1}for(const xe of Ie)if(!Re.includes(xe))return!1;return!0}function zn(at){return null!==at&&"object"==typeof at}function Pi(at){const Xe=[];for(const[Re,Ie]of Object.entries(at))Array.isArray(Ie)?Ie.forEach(xe=>{Xe.push(encodeURIComponent(Re)+"="+encodeURIComponent(xe))}):Xe.push(encodeURIComponent(Re)+"="+encodeURIComponent(Ie));return Xe.length?"&"+Xe.join("&"):""}function li(at){const Xe={};return at.replace(/^\?/,"").split("&").forEach(Ie=>{if(Ie){const[xe,Ot]=Ie.split("=");Xe[decodeURIComponent(xe)]=decodeURIComponent(Ot)}}),Xe}function ei(at){const Xe=at.indexOf("?");if(!Xe)return"";const Re=at.indexOf("#",Xe);return at.substring(Xe,Re>0?Re:void 0)}class Ze{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let Xe=1;Xe<this.blockSize;++Xe)this.pad_[Xe]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(Xe,Re){Re||(Re=0);const Ie=this.W_;if("string"==typeof Xe)for(let ue=0;ue<16;ue++)Ie[ue]=Xe.charCodeAt(Re)<<24|Xe.charCodeAt(Re+1)<<16|Xe.charCodeAt(Re+2)<<8|Xe.charCodeAt(Re+3),Re+=4;else for(let ue=0;ue<16;ue++)Ie[ue]=Xe[Re]<<24|Xe[Re+1]<<16|Xe[Re+2]<<8|Xe[Re+3],Re+=4;for(let ue=16;ue<80;ue++){const nt=Ie[ue-3]^Ie[ue-8]^Ie[ue-14]^Ie[ue-16];Ie[ue]=4294967295&(nt<<1|nt>>>31)}let Ce,Ue,xe=this.chain_[0],Ot=this.chain_[1],en=this.chain_[2],pt=this.chain_[3],Gt=this.chain_[4];for(let ue=0;ue<80;ue++){ue<40?ue<20?(Ce=pt^Ot&(en^pt),Ue=1518500249):(Ce=Ot^en^pt,Ue=1859775393):ue<60?(Ce=Ot&en|pt&(Ot|en),Ue=2400959708):(Ce=Ot^en^pt,Ue=3395469782);const nt=(xe<<5|xe>>>27)+Ce+Gt+Ue+Ie[ue]&4294967295;Gt=pt,pt=en,en=4294967295&(Ot<<30|Ot>>>2),Ot=xe,xe=nt}this.chain_[0]=this.chain_[0]+xe&4294967295,this.chain_[1]=this.chain_[1]+Ot&4294967295,this.chain_[2]=this.chain_[2]+en&4294967295,this.chain_[3]=this.chain_[3]+pt&4294967295,this.chain_[4]=this.chain_[4]+Gt&4294967295}update(Xe,Re){if(null==Xe)return;void 0===Re&&(Re=Xe.length);const Ie=Re-this.blockSize;let xe=0;const Ot=this.buf_;let en=this.inbuf_;for(;xe<Re;){if(0===en)for(;xe<=Ie;)this.compress_(Xe,xe),xe+=this.blockSize;if("string"==typeof Xe){for(;xe<Re;)if(Ot[en]=Xe.charCodeAt(xe),++en,++xe,en===this.blockSize){this.compress_(Ot),en=0;break}}else for(;xe<Re;)if(Ot[en]=Xe[xe],++en,++xe,en===this.blockSize){this.compress_(Ot),en=0;break}}this.inbuf_=en,this.total_+=Re}digest(){const Xe=[];let Re=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(let xe=this.blockSize-1;xe>=56;xe--)this.buf_[xe]=255&Re,Re/=256;this.compress_(this.buf_);let Ie=0;for(let xe=0;xe<5;xe++)for(let Ot=24;Ot>=0;Ot-=8)Xe[Ie]=this.chain_[xe]>>Ot&255,++Ie;return Xe}}function Oe(at,Xe){const Re=new P(at,Xe);return Re.subscribe.bind(Re)}class P{constructor(Xe,Re){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Re,this.task.then(()=>{Xe(this)}).catch(Ie=>{this.error(Ie)})}next(Xe){this.forEachObserver(Re=>{Re.next(Xe)})}error(Xe){this.forEachObserver(Re=>{Re.error(Xe)}),this.close(Xe)}complete(){this.forEachObserver(Xe=>{Xe.complete()}),this.close()}subscribe(Xe,Re,Ie){let xe;if(void 0===Xe&&void 0===Re&&void 0===Ie)throw new Error("Missing Observer.");xe=function O(at,Xe){if("object"!=typeof at||null===at)return!1;for(const Re of Xe)if(Re in at&&"function"==typeof at[Re])return!0;return!1}(Xe,["next","error","complete"])?Xe:{next:Xe,error:Re,complete:Ie},void 0===xe.next&&(xe.next=Q),void 0===xe.error&&(xe.error=Q),void 0===xe.complete&&(xe.complete=Q);const Ot=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?xe.error(this.finalError):xe.complete()}catch{}}),this.observers.push(xe),Ot}unsubscribeOne(Xe){void 0===this.observers||void 0===this.observers[Xe]||(delete this.observers[Xe],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Xe){if(!this.finalized)for(let Re=0;Re<this.observers.length;Re++)this.sendOne(Re,Xe)}sendOne(Xe,Re){this.task.then(()=>
1{if(void 0!==this.observers&&void 0!==this.observers[Xe])try{Re(this.observers[Xe])}catch(Ie){typeof console<"u"&&console.error&&console.error(Ie)}})}close(Xe){this.finalized||(this.finalized=!0,void 0!==Xe&&(this.finalError=Xe),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Q(){}function De(at,Xe){return`${at} failed: ${Xe} argument `}const on=function(at){const Xe=[];let Re=0;for(let Ie=0;Ie<at.length;Ie++){let xe=at.charCodeAt(Ie);if(xe>=55296&&xe<=56319){const Ot=xe-55296;Ie++,e(Ie<at.length,"Surrogate pair missing trail surrogate."),xe=65536+(Ot<<10)+(at.charCodeAt(Ie)-56320)}xe<128?Xe[Re++]=xe:xe<2048?(Xe[Re++]=xe>>6|192,Xe[Re++]=63&xe|128):xe<65536?(Xe[Re++]=xe>>12|224,Xe[Re++]=xe>>6&63|128,Xe[Re++]=63&xe|128):(Xe[Re++]=xe>>18|240,Xe[Re++]=xe>>12&63|128,Xe[Re++]=xe>>6&63|128,Xe[Re++]=63&xe|128)}return Xe},st=function(at){let Xe=0;for(let Re=0;Re<at.length;Re++){const Ie=at.charCodeAt(Re);Ie<128?Xe++:Ie<2048?Xe+=2:Ie>=55296&&Ie<=56319?(Xe+=4,Re++):Xe+=3}return Xe};function Yn(at,Xe=1e3,Re=2){const Ie=Xe*Math.pow(Re,at),xe=Math.round(.5*Ie*(Math.random()-.5)*2);return Math.min(144e5,Ie+xe)}function qi(at){return at&&at._delegate?at._delegate:at}},3826:(wn,bt,D)=>{"use strict";D.d(bt,{a:()=>R});var g=D(4650),e=D(4496);let R=(()=>{class me{constructor(ae){this.router=ae}canActivate(){return!!localStorage.getItem("usuario")||(this.router.navigate(["/administrador/auth/login"]),!1)}}return me.\u0275fac=function(ae){return new(ae||me)(g.LFG(e.F0))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},1585:(wn,bt,D)=>{"use strict";D.d(bt,{U:()=>R});var g=D(1135),e=D(4650);let R=(()=>{class me{constructor(){this._globalVariable=new g.X("es")}get globalVariable(){return this._globalVariable.value}set globalVariable(ae){this._globalVariable.next(ae)}get globalVariable$(){return this._globalVariable.asObservable()}}return me.\u0275fac=function(ae){return new(ae||me)},me.\u0275prov=e.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},1967:(wn,bt,D)=>{"use strict";D.d(bt,{K:()=>R});var g=D(4650),e=D(1085);let R=(()=>{class me{constructor(ae){this.firestore=ae,this.TasaRef=this.firestore.collection("tasa-nom-cred")}obtenerTasas(){return this.firestore.collection("tasa-nom-cred",se=>se.where("visible","==",!0)).snapshotChanges()}agregarTasa(ae){return this.firestore.collection("tasa-nom-cred").add(ae)}putVisibleTasa(ae,Te){return this.TasaRef.doc(ae).update(Te)}actualizarTasa(ae,Te){return this.TasaRef.doc(ae).update(Te)}}return me.\u0275fac=function(ae){return new(ae||me)(g.LFG(e.ST))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},1482:(wn,bt,D)=>{"use strict";D.d(bt,{Z:()=>ae});var g=D(5861),e=D(9260),R=D(4650),me=D(6132),ve=D(1085);let ae=(()=>{class Te{constructor(z,x){this.storage=z,this.firestore=x,this.storageRef=e.Z.app().storage().ref(),this.contratRef=this.firestore.collection("contrato-adhesion"),this.tarifaRef=this.firestore.collection("tarifarios-cooperativa"),this.balance2022Ref=this.firestore.collection("balance-2022"),this.balance2023Ref=this.firestore.collection("balance-2023"),this.balance2024Ref=this.firestore.collection("balance-2024"),this.balance2025Ref=this.firestore.collection("balance-2025"),this.balance2026Ref=this.firestore.collection("balance-2026"),this.balancecomparativoRef=this.firestore.collection("balance-comparativo"),this.indice2022Ref=this.firestore.collection("indice-2022"),this.indice2023Ref=this.firestore.collection("indice-2023"),this.indice2024Ref=this.firestore.collection("indice-2024"),this.indice2025Ref=this.firestore.collection("indice-2025"),this.indice2026Ref=this.firestore.collection("indice-2026"),this.indicecomparativoRef=this.firestore.collection("indice-comparativo"),this.estado2022Ref=this.firestore.collection("estado-2022"),this.estado2023Ref=this.firestore.collection("estado-2023"),this.estado2024Ref=this.firestore.collection("estado-2024"),this.estado2025Ref=this.firestore.collection("estado-2025"),this.estado2026Ref=this.firestore.collection("estado-2026"),this.estadocomparativoRef=this.firestore.collection("estado-comparativo"),this.activecalifi2022Ref=this.firestore.collection("calificacion-activo-2022"),this.activecalifi2023Ref=this.firestore.collection("calificacion-activo-2023"),this.activecalifi2024Ref=this.firestore.collection("calificacion-activo-2024"),this.activecalifi2025Ref=this.firestore.collection("calificacion-activo-2025"),this.activecalifi2026Ref=this.firestore.collection("calificacion-activo-2026"),this.patrimonio2022Ref=this.firestore.collection("patrimonio-2022"),this.patrimonio2023Ref=this.firestore.collection("patrimonio-2023"),this.patrimonio2024Ref=this.firestore.collection("patrimonio-2024"),this.patrimonio2025Ref=this.firestore.collection("patrimonio-2025"),this.patrimonio2026Ref=this.firestore.collection("patrimonio-2026"),this.patrimoniocomparativoRef=this.firestore.collection("patrimonio-comparativo"),this.calificacionesRef=this.firestore.collection("calificaciones"),this.tasaactivaRef=this.firestore.collection("tasa-activa"),this.tasapasivaRef=this.firestore.collection("tasa-pasiva"),this.polizasRef=this.firestore.collection("polizas"),this.buengobiernoRef=this.firestore.collection("buen-gobierno"),this.normativaRef=this.firestore.collection("normativa"),this.ofertasRef=this.firestore.collection("ofertas")}subirImagen(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("ofertas/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}eliminarOferta(z,x){return this.ofertasRef.doc(z).update(x)}actualizarOferta(z,x){var G=this;return(0,g.Z)(function*(){try{yield G.firestore.collection("ofertas").doc(z).update(x)}catch(de){throw new Error("Error al actualizar el slider: "+de)}})()}guardarOferta(z){var x=this;return(0,g.Z)(function*(){try{return(yield x.firestore.collection("ofertas").add(z)).id}catch(G){throw new Error("Error al guardar el slider: "+G)}})()}obtenerOfertaPorId(z){var x=this;return(0,g.Z)(function*(){try{const G=yield x.firestore.collection("ofertas").doc(z).get().toPromise();if(G&&G.exists){const de=G.data();return de&&"object"==typeof de?{id:G.id,...de}:(console.error("Los datos del documento no son un objeto"),null)}return console.error("No se encontr\xf3 el slider con el ID proporcionado"),null}catch(G){throw console.error("Error al obtener el slider:",G),G}})()}upDocumentoFirebaseTarifa(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/tarifarios-cooperativa/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsTarifa(){return this.firestore.collection("tarifarios-cooperativa",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentTarifa(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("tarifarios-cooperativa").add(z)})()}putVisibleDocumentTarifa(z,x){return this.tarifaRef.doc(z).update(x)}upDocumentoFirebaseContrat(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Contrato-Adhesion/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsContrat(){return this.firestore.collection("contrato-adhesion",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentContrat(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("contrato-adhesion").add(z)})()}putVisibleDocumentContrat(z,x){return this.contratRef.doc(z).update(x)}upDocumentoFirebaseBalance2022(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/2022/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalance2022(){return this.firestore.collection("balance-2022",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalance2022(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-2022").add(z)})()}putVisibleDocumentBalance2022(z,x){return this.balance2022Ref.doc(z).update(x)}upDocumentoFirebaseBalance2023(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/2023/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalance2023(){return this.firestore.collection("balance-2023",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalance2023(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-2023").add(z)})()}putVisibleDocumentBalance2023(z,x){return this.balance2023Ref.doc(z).update(x)}upDocumentoFirebaseBalance2024(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/2024/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalance2024(){return this.firestore.collection("balance-2024",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalance2024(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-2024").add(z)})()}putVisibleDocumentBalance2024(z,x){return this.balance2024Ref.doc(z).update(x)}upDocumentoFirebaseBalance2025(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/2025/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalance2025(){return this.firestore.collection("balance-2025",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalance2025(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-2025").add(z)})()}putVisibleDocumentBalance2025(z,x){return this.balance2025Ref.doc(z).update(x)}upDocumentoFirebaseBalance2026(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/2026/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalance2026(){return this.firestore.collection("balance-2026",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalance2026(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-2026").add(z)})()}putVisibleDocumentBalance2026(z,x){return this.balance2026Ref.doc(z).update(x)}upDocumentoFirebaseBalanceComparativo(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Balance/Comparativo/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBalanceComparativo(){return this.firestore.collection("balance-comparativo",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBalanceComparativo(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("balance-comparativo").add(z)})()}putVisibleDocumentBalanceComparativo(z,x){return this.balancecomparativoRef.doc(z).update(x)}upDocumentoFirebaseIndice2025(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/2025/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndice2025(){return this.firestore.collection("indice-2025",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndice2025(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-2025").add(z)})()}putVisibleDocumentIndice2025(z,x){return this.indice2025Ref.doc(z).update(x)}upDocumentoFirebaseIndice2026(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/2026/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndice2026(){return this.firestore.collection("indice-2026",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndice2026(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-2026").add(z)})()}putVisibleDocumentIndice2026(z,x){return this.indice2026Ref.doc(z).update(x)}upDocumentoFirebaseIndice2022(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/2022/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndice2022(){return this.firestore.collection("indice-2022",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndice2022(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-2022").add(z)})()}putVisibleDocumentIndice2022(z,x){return this.indice2022Ref.doc(z).update(x)}upDocumentoFirebaseIndice2023(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/2023/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndice2023(){return this.firestore.collection("indice-2023",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndice2023(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-2023").add(z)})()}putVisibleDocumentIndice2023(z,x){return this.indice2023Ref.doc(z).update(x)}upDocumentoFirebaseIndice2024(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/2024/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndice2024(){return this.firestore.collection("indice-2024",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndice2024(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-2024").add(z)})()}putVisibleDocumentIndice2024(z,x){return this.indice2024Ref.doc(z).update(x)}upDocumentoFirebaseIndiceComparativo(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Indice-Financiero/Comparativo/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsIndiceComparativo(){return this.firestore.collection("indice-comparativo",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentIndiceComparativo(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("indice-comparativo").add(z)})()}putVisibleDocumentIndiceComparativo(z,x){return this.indicecomparativoRef.doc(z).update(x)}upDocumentoFirebaseEstado2022(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Estado-Resultado/2022/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstado2022(){return this.firestore.collection("estado-2022",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstado2022(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-2022").add(z)})()}putVisibleDocumentEstado2022(z,x){return this.estado2022Ref.doc(z).update(x)}upDocumentoFirebaseEstado2023(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Estado-Resultado/2023/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstado2023(){return this.firestore.collection("estado-2023",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstado2023(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-2023").add(z)})()}putVisibleDocumentEstado2023(z,x){return this.estado2023Ref.doc(z).update(x)}upDocumentoFirebaseEstado2024(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Estado-Resultado/2024/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstado2024(){return this.firestore.collection("estado-2024",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstado2024(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-2024").add(z)})()}putVisibleDocumentEstado2024(z,x){return this.estado2024Ref.doc(z).update(x)}upDocumentoFirebaseEstado2025(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Estado-Resultado/2025/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstado2025(){return this.firestore.collection("estado-2025",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstado2025(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-2025").add(z)})()}putVisibleDocumentEstado2025(z,x){return this.estado2025Ref.doc(z).update(x)}upDocumentoFirebaseEstado2026(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.st
1orageRef.child("pdfs/Estado-Resultado/2026/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstado2026(){return this.firestore.collection("estado-2026",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstado2026(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-2026").add(z)})()}putVisibleDocumentEstado2026(z,x){return this.estado2026Ref.doc(z).update(x)}upDocumentoFirebaseEstadoComparativo(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Estado-Resultado/Comparativo/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsEstadoComparativo(){return this.firestore.collection("estado-comparativo",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentEstadoComparativo(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("estado-comparativo").add(z)})()}putVisibleDocumentEstadoComparativo(z,x){return this.estadocomparativoRef.doc(z).update(x)}upDocumentoFirebaseActiveCalification2025(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Activos/2025/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsActiveCalification2025(){return this.firestore.collection("calificacion-activo-2025",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentActiveCalification2025(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificacion-activo-2025").add(z)})()}putVisibleDocumentActiveCalification2025(z,x){return this.activecalifi2025Ref.doc(z).update(x)}upDocumentoFirebaseActiveCalification2026(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Activos/2026/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsActiveCalification2026(){return this.firestore.collection("calificacion-activo-2026",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentActiveCalification2026(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificacion-activo-2026").add(z)})()}putVisibleDocumentActiveCalification2026(z,x){return this.activecalifi2026Ref.doc(z).update(x)}upDocumentoFirebaseActiveCalification2022(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Activos/2022/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsActiveCalification2022(){return this.firestore.collection("calificacion-activo-2022",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentActiveCalification2022(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificacion-activo-2022").add(z)})()}putVisibleDocumentActiveCalification2022(z,x){return this.activecalifi2022Ref.doc(z).update(x)}upDocumentoFirebaseActiveCalification2023(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Activos/2023/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsActiveCalification2023(){return this.firestore.collection("calificacion-activo-2023",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentActiveCalification2023(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificacion-activo-2023").add(z)})()}putVisibleDocumentActiveCalification2023(z,x){return this.activecalifi2023Ref.doc(z).update(x)}upDocumentoFirebaseActiveCalification2024(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Activos/2024/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsActiveCalification2024(){return this.firestore.collection("calificacion-activo-2024",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentActiveCalification2024(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificacion-activo-2024").add(z)})()}putVisibleDocumentActiveCalification2024(z,x){return this.activecalifi2024Ref.doc(z).update(x)}upDocumentoFirebasePatrimonio2022(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/2022/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonio2022(){return this.firestore.collection("patrimonio-2022",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonio2022(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-2022").add(z)})()}putVisibleDocumentPatrimonio2022(z,x){return this.patrimonio2022Ref.doc(z).update(x)}upDocumentoFirebasePatrimonio2023(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/2023/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonio2023(){return this.firestore.collection("patrimonio-2023",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonio2023(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-2023").add(z)})()}putVisibleDocumentPatrimonio2023(z,x){return this.patrimonio2023Ref.doc(z).update(x)}upDocumentoFirebasePatrimonio2024(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/2024/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonio2024(){return this.firestore.collection("patrimonio-2024",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonio2024(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-2024").add(z)})()}putVisibleDocumentPatrimonio2024(z,x){return this.patrimonio2024Ref.doc(z).update(x)}upDocumentoFirebasePatrimonio2025(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/2025/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonio2025(){return this.firestore.collection("patrimonio-2025",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonio2025(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-2025").add(z)})()}putVisibleDocumentPatrimonio2025(z,x){return this.patrimonio2025Ref.doc(z).update(x)}upDocumentoFirebasePatrimonio2026(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/2026/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonio2026(){return this.firestore.collection("patrimonio-2026",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonio2026(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-2026").add(z)})()}putVisibleDocumentPatrimonio2026(z,x){return this.patrimonio2026Ref.doc(z).update(x)}upDocumentoFirebasePatrimonioComparativo(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Patrimonio-Tecnico/Comparativo/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsPatrimonioComparativo(){return this.firestore.collection("patrimonio-comparativo",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentPatrimonioComparativo(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("patrimonio-comparativo").add(z)})()}putVisibleDocumentPatrimonioComparativo(z,x){return this.patrimoniocomparativoRef.doc(z).update(x)}upDocumentoFirebase(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Calificacion-Riesgo/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocuments(){return this.firestore.collection("calificaciones",G=>G.where("visible","==",!0)).snapshotChanges()}postDocument(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("calificaciones").add(z)})()}putVisibleDocument(z,x){return this.calificacionesRef.doc(z).update(x)}upDocumentoFirebaseTA(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Tasa-Activa/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsTA(){return this.firestore.collection("tasa-activa",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentTA(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("tasa-activa").add(z)})()}putVisibleDocumentTA(z,x){return this.tasaactivaRef.doc(z).update(x)}upDocumentoFirebaseTP(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Tasa-Pasiva/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsTP(){return this.firestore.collection("tasa-pasiva",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentTP(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("tasa-pasiva").add(z)})()}putVisibleDocumentTP(z,x){return this.tasapasivaRef.doc(z).update(x)}upDocumentoFirebaseP(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Polizas/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsP(){return this.firestore.collection("polizas",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentP(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("polizas").add(z)})()}putVisibleDocumentP(z,x){return this.polizasRef.doc(z).update(x)}upDocumentoFirebaseBG(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Buen-Gobierno
1/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsBG(){return this.firestore.collection("buen-gobierno",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentBG(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("buen-gobierno").add(z)})()}putVisibleDocumentBG(z,x){return this.buengobiernoRef.doc(z).update(x)}upDocumentoFirebaseN(z,x){var G=this;return(0,g.Z)(function*(){try{return yield(yield G.storageRef.child("pdfs/Normativa/"+z).putString(x,"data_url")).ref.getDownloadURL()}catch{return null}})()}getAllDocumentsN(){return this.firestore.collection("normativa",G=>G.where("visible","==",!0)).snapshotChanges()}postDocumentN(z){var x=this;return(0,g.Z)(function*(){return yield x.firestore.collection("normativa").add(z)})()}putVisibleDocumentN(z,x){return this.normativaRef.doc(z).update(x)}}return Te.\u0275fac=function(z){return new(z||Te)(R.LFG(me.Q1),R.LFG(ve.ST))},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})()},5180:(wn,bt,D)=>{"use strict";D.d(bt,{V:()=>R});var g=D(4650),e=D(1085);let R=(()=>{class me{constructor(ae){this.firestore=ae,this.TasaRef=this.firestore.collection("tasasNominales")}obtenerTasas(){return this.firestore.collection("tasasNominales",se=>se.where("visible","==",!0)).snapshotChanges()}agregarTasa(ae){return this.firestore.collection("tasasNominales").add(ae)}putVisibleTasa(ae,Te){return this.TasaRef.doc(ae).update(Te)}actualizarTasa(ae,Te){return this.TasaRef.doc(ae).update(Te)}}return me.\u0275fac=function(ae){return new(ae||me)(g.LFG(e.ST))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},472:(wn,bt,D)=>{"use strict";var g=D(1481),e=D(4650),R=D(529),me=D(4496),ve=D(9383),ae=D(1585),Te=D(7846);let se=(()=>{class c{constructor(n,r,h){this.translate=n,this.globalService=r,this.gtmService=h,this.title="oscus",this.translate.setDefaultLang(r.globalVariable),this.translate.use(r.globalVariable),n.addLangs(["es","en"]),h.addGtmToDom()}ngOnInit(){this.router?.events?.forEach(n=>{n instanceof me.m2&&this.gtmService.pushTag({event:"page",pageName:n.url})})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(ve.sK),e.Y36(ae.U),e.Y36(Te.k))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&e._UZ(0,"router-outlet")},dependencies:[me.lC]}),c})();var z=D(6895),x=D(4006);let G=(()=>{class c{constructor(n){this.translate=n,this.translate.setDefaultLang("es"),this.translate.use("es")}ngOnInit(){}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(ve.sK))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-footer"]],decls:63,vars:15,consts:[[1,"footer-clean-redes"],[1,"container"],[1,"row","d-flex","posicion-pagina"],[1,"col-2","text-right","col-2-texto"],["routerLink","genesis",1,"texto-footer"],["routerLink","/institucional",1,"texto-footer"],["routerLink","transparencia",1,"texto-footer"],["target","_blank","routerLink","/dashboard/verificar-ingreso",1,"link-no-underline"],[1,"texto-footer"],[1,"row"],[1,"col-6","col-sm-6","col-lg-6"],[1,"col-12","col-sm-12","col-lg-12","colum-imag-footer"],["href","tel:1800 672871"],["src","../../../../assets/img/RECURSOS-HOME/contact-center.png","alt","",1,"img-numero2"],[1,"div_icon_redes"],[1,""],["href","https://www.facebook.com/cooposcus/","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/FB.png","alt","",1,"img-redes-sociales"],["href","https://www.instagram.com/cooposcus/","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/INSTA.png","alt","",1,"img-redes-sociales"],["href","https://twitter.com/CoopOSCUS","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/twitter2.png","alt","",1,"img-redes-sociales"],["href","https://www.tiktok.com/@cooperativaoscus","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/TIKTOK.png","alt","",1,"img-redes-sociales"],["href","https://www.youtube.com/channel/UCVv_S_PoMpCS3ZVzm9EbiTg","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/YT.png","alt","",1,"img-redes-sociales"],["href","https://ec.linkedin.com/company/oscus-cooperativa-de-ahorro-y-cr%C3%A9dito-ltda","target","_blank"],["src","../../../../assets/img/RECURSOS-HOME/LINKIND.png","alt","",1,"img-redes-sociales"],[1,"footer1"],[1,"footer-clean"],[1,"row","animate__animated","zoomIn"],[1,"col-12","col-sm-12","col-lg-12"],["src","../../../../assets/img/logo-home-blanco.png",1,"imagen-logo"],[1,"animate__animated","zoomIn","copiright"]],template:function(n,r){1&n&&(e.TgZ(0,"footer")(1,"div",0)(2,"footer")(3,"div",1)(4,"section",2)(5,"div",3)(6,"p",4),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"div",3)(10,"p",5),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",3)(14,"p",6),e._uU(15),e.ALo(16,"translate"),e.qZA()(),e.TgZ(17,"div",3)(18,"a",7)(19,"p",8),e._uU(20),e.ALo(21,"translate"),e.qZA()()()(),e.TgZ(22,"section",9)(23,"div",10)(24,"div",9)(25,"div",11)(26,"a",12),e._UZ(27,"img",13),e.qZA()()()(),e.TgZ(28,"div",14)(29,"div",15)(30,"a",16),e._UZ(31,"img",17),e.qZA()(),e.TgZ(32,"div",15)(33,"a",18),e._UZ(34,"img",19),e.qZA()(),e.TgZ(35,"div",15)(36,"a",20),e._UZ(37,"img",21),e.qZA()(),e.TgZ(38,"div",15)(39,"a",22),e._UZ(40,"img",23),e.qZA()(),e.TgZ(41,"div",15)(42,"a",24),e._UZ(43,"img",25),e.qZA()(),e.TgZ(44,"div",15)(45,"a",26),e._UZ(46,"img",27),e.qZA()()()()()()(),e._UZ(47,"footer",28),e.TgZ(48,"div",29)(49,"footer")(50,"div",1)(51,"div",30)(52,"div",31)(53,"div",9)(54,"div",31)(55,"a"),e._UZ(56,"img",32),e.qZA()(),e.TgZ(57,"div",31)(58,"p",33),e._uU(59),e.ALo(60,"translate"),e.qZA()()()()()()()(),e.TgZ(61,"div",1),e._UZ(62,"div",9),e.qZA()()),2&n&&(e.xp6(7),e.Oqu(e.l
1cZ(8,5,"FOOT-1")),e.xp6(4),e.Oqu(e.lcZ(12,7,"FOOT-4")),e.xp6(4),e.Oqu(e.lcZ(16,9,"FOOT-5")),e.xp6(5),e.Oqu(e.lcZ(21,11,"FOOT-6")),e.xp6(39),e.hij(" ",e.lcZ(60,13,"FOOT-7"),""))},dependencies:[me.rH,me.yS,ve.X$],styles:[".alienarcont[_ngcontent-%COMP%]{max-width:100%;margin:0 auto}.conta[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#2e56a1}.col-2[_ngcontent-%COMP%]{width:10%}.texto-footer[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;line-height:1;cursor:pointer;padding:0 0 0 20px}.container-paginas[_ngcontent-%COMP%]{cursor:pointer;margin-left:3rem}.footer1[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#bacd0b;height:10px}#columnas[_ngcontent-%COMP%]{column-count:4;column-gap:20px;column-rule:4px double black;list-style:none}.footer-clean[_ngcontent-%COMP%]{padding:40px 0;background-color:#2e56a1;background-repeat:no-repeat;background-size:100% 100%;height:137px;color:#000}.footer-clean-redes[_ngcontent-%COMP%]{padding:40px 0;background-color:#efefef;background-repeat:no-repeat;background-size:100% 100%;color:#000}.footer-clean[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;color:#000;margin-bottom:12px;font-weight:700;font-size:16px}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;list-style:none;text-align:center;line-height:1.6;font-size:14px;color:#000;margin-bottom:0}.link-no-underline[_ngcontent-%COMP%]{text-decoration:none}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;text-align:center;text-decoration:none;opacity:.8;color:#000}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%]{text-align:right}.div_icon_redes[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:-5rem}@media (max-width: 767px){.footer-clean[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{text-align:center;padding-bottom:20px}}@media (max-width: 768px){.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%]{text-align:center}}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:24px;width:40px;height:40px;line-height:40px;display:inline-block;text-align:center;border-radius:50%;border:1px solid #ccc;margin-left:10px;margin-top:22px;color:inherit;opacity:.75}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{opacity:.9}@media (max-width: 991px){.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-top:40px}}@media (max-width: 767px){.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-top:10px}}.footer-clean[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{margin-top:14px;margin-bottom:0;font-size:13px;opacity:.6}p[_ngcontent-%COMP%]{padding:0;list-style:none;text-align:center;line-height:1.6;font-size:14px;color:#000;margin-bottom:0}.imagen-logo[_ngcontent-%COMP%]{display:block;text-align:center;justify-content:center;margin:0 auto;max-width:50%;width:180px;height:30px}.copiright[_ngcontent-%COMP%]{color:#fff;margin-top:1rem;font-size:12px;line-height:1}.card[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:10px;box-shadow:0 0 10px #0003;color:#fff;padding:0;width:60%;height:auto}.card-body[_ngcontent-%COMP%]{font-size:18px}.linea1[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:40px;text-align:center}.linea2[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:25px;padding:0 0 0 100px;text-align:center}.linea3[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;text-align:start;padding:5px 5px 10px 20px}.componente[_ngcontent-%COMP%]{margin-left:355px;margin-right:355px}.posicion-pagina[_ngcontent-%COMP%]{justify-content:end}@media (min-width: 320px) and (max-width: 850px){.posicion-pagina[_ngcontent-%COMP%]{justify-content:center}.col-2-footer[_ngcontent-%COMP%]{width:10%;margin:0 0 0 5px}.col-2-texto[_ngcontent-%COMP%]{width:30%}.col-3-texto[_ngcontent-%COMP%]{margin-top:0rem}.div_icon_redes[_ngcontent-%COMP%]{justify-content:center;margin-top:-1rem}.texto-footer[_ngcontent-%COMP%]{margin-top:1rem;color:#2e56a1;font-size:10px;line-height:1;cursor:pointer;padding:0}.card[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:10px;box-shadow:0 0 10px #0003;color:#fff;padding:0;width:100%;height:auto}.card-body[_ngcontent-%COMP%]{font-size:18px}.linea1[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:10px;text-align:center}.linea2[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:10px;text-align:center;padding:0 0 0 10px}.linea3[_ngcontent-%COMP%]{color:#2e56a1;font-size:10px;text-align:start}.componente[_ngcontent-%COMP%]{width:100%;margin-right:-2rem}.redes-sociales[_ngcontent-%COMP%]{width:98%;display:flex;flex-direction:row;justify-content:space-around;padding:0;margin:15px 0 0 5px}.col-6[_ngcontent-%COMP%]{width:100%}.img-redes-sociales[_ngcontent-%COMP%]{width:40%;height:auto;margin-left:-80rem;padding:10px 0 0}.img-numero2[_ngcontent-%COMP%]{width:500px;height:2rem;margin-top:2rem}.colum-imag-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%}.container-paginas[_ngcontent-%COMP%]{margin-left:-24rem;cursor:pointer;width:100%;display:flex;flex-direction:row;justify-content:space-between;padding:0;margin-top:5rem}.menu-footer[_ngcontent-%COMP%]{justify-content:right;text-align:right;padding:0;margin-left:1rem;width:100%}.menu-footer-texto[_ngcontent-%COMP%]{color:#ccc}.menu-footer-texto1[_ngcontent-%COMP%]{font-size:1pt;color:#2e56a1;margin-left:-40rem}.menu-footer-texto2[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-3rem;margin-left:-14rem}.menu-footer-texto3[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-3.5rem;margin-left:12rem}.menu-footer-texto4[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-1rem;margin-left:-14rem}.footer-texto[_ngcontent-%COMP%]{color:#2e56a1}.img-entidades[_ngcontent-%COMP%]{width:500px;height:auto}}@media (min-width: 850px) and (max-width: 1300px){.posicion-pagina[_ngcontent-%COMP%]{justify-content:center}.col-2-footer[_ngcontent-%COMP%]{width:10%;margin:0 0 0 5px}.col-2-texto[_ngcontent-%COMP%]{width:30%}.col-3-texto[_ngcontent-%COMP%]{margin-top:0rem}.div_icon_redes[_ngcontent-%COMP%]{justify-content:center;margin-top:-1rem}.texto-footer[_ngcontent-%COMP%]{margin-top:1rem;color:#2e56a1;font-size:10px;line-height:1;cursor:pointer;padding:0}.card[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:10px;box-shadow:0 0 10px #0003;color:#fff;padding:0;width:100%;height:auto}.card-body[_ngcontent-%COMP%]{font-size:18px}.linea1[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:10px;text-align:center}.linea2[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:10px;text-align:center;padding:0 0 0 10px}.linea3[_ngcontent-%COMP%]{color:#2e56a1;font-size:10px;text-align:start}.componente[_ngcontent-%COMP%]{width:100%;margin-right:-2rem}.redes-sociales[_ngcontent-%COMP%]{width:98%;display:flex;flex-direction:row;justify-content:space-around;padding:0;margin:15px 0 0 5px}.col-6[_ngcontent-%COMP%]{width:100%}.img-redes-sociales[_ngcontent-%COMP%]{width:40%;height:auto;margin-left:-80rem;padding:10px 0 0}.img-numero2[_ngcontent-%COMP%]{width:500px;height:2rem;margin-top:2rem}.colum-imag-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%}.container-paginas[_ngcontent-%COMP%]{margin-left:-24rem;cursor:pointer;width:100%;display:flex;flex-direction:row;justify-content:space-between;padding:0;margin-top:5rem}.menu-footer[_ngcontent-%COMP%]{justify-content:right;text-align:right;padding:0;margin-left:1rem;width:100%}.menu-footer-texto[_ngcontent-%COMP%]{color:#ccc}.menu-footer-texto1[_ngcontent-%COMP%]{font-size:1pt;color:#2e56a1;margin-left:-40rem}.menu-footer-texto2[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-3rem;margin-left:-14rem}.menu-footer-texto3[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-3.5rem;margin-left:12rem}.menu-footer-texto4[_ngcontent-%COMP%]{color:#ccc;font-size:8pt;color:#2e56a1;margin-top:-1rem;margin-left:-14rem}.footer-texto[_ngcontent-%COMP%]{color:#2e56a1}.img-entidades[_ngcontent-%COMP%]{width:500px;height:auto}}.redes-sociales[_ngcontent-%COMP%]{justify-content:end;text-align:end;padding:5px 0 0}.img-redes-sociales[_ngcontent-%COMP%]{width:30px;height:auto;margin:0;margin-left:1rem}.img-numero2[_ngcontent-%COMP%]{width:250px;height:60px;padding:0 0 8px;cursor:pointer}.img-entidades[_ngcontent-%COMP%]{width:100%;height:auto;padding:0 10px 0 15px}.menu-footer[_ngcontent-%COMP%]{justify-content:right;text-align:right;padding:5px 0 0;margin:0}.entidades-footer[_ngcontent-%COMP%]{justify-content:center;text-align:center;width:15%;padding:20px 0 0;margin-left:.5rem}.menu-footer-texto[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;margin-top:1rem}.menu-footer-texto-2[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px}.footer-texto[_ngcontent-%COMP%]{color:#2e56a1}@media screen and (min-width: 4000px) and (max-width: 5000px){.alienarcont[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;width:100%}.redes-sociales[_ngcontent-%COMP%]{justify-content:end;text-align:end;padding:5px 0 0}.img-redes-sociales[_ngcontent-%COMP%]{width:30px;height:auto;margin:0;margin-left:1rem}.img-numero2[_ngcontent-%COMP%]{width:250px;height:60px;padding:0 0 8px;cursor:pointer}.img-entidades[_ngcontent-%COMP%]{width:100%;height:auto;padding:0 10px 0 15px}.menu-footer[_ngcontent-%COMP%]{justify-content:right;text-align:right;padding:5px 0 0;margin:0}.entidades-footer[_ngcontent-%COMP%]{justify-content:center;text-align:center;width:15%;padding:20px 0 0;margin-left:.5rem}.menu-footer-texto[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;margin-top:1rem}.menu-footer-texto-2[_ngcontent-%COMP%]{color:#bacd0b;font-weight:700;font-size:18px}.footer-texto[_ngcontent-%COMP%]{color:#2e56a1}.alienarcont[_ngcontent-%COMP%]{max-width:100%;margin:0 auto}.conta[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#2e56a1}.col-2[_ngcontent-%COMP%]{width:10%}.texto-footer[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;line-height:1;cursor:pointer;padding:0 0 0 20px}.container-paginas[_ngcontent-%COMP%]{cursor:pointer;margin-left:3rem}.footer1[_ngcontent-%COMP%]{text-align:center;color:#fff;background-color:#bacd0b;height:10px}#columnas[_ngcontent-%COMP%]{column-count:4;column-gap:20px;column-rule:4px double black;list-style:none}.footer-clean[_ngcontent-%COMP%]{padding:40px 0;background-color:#2e56a1;background-repeat:no-repeat;background-size:100% 100%;height:137px;color:#000}.footer-clean-redes[_ngcontent-%COMP%]{padding:40px 0;background-color:#efefef;background-repeat:no-repeat;background-size:100% 100%;color:#000}.footer-clean[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;color:#000;margin-bottom:12px;font-weight:700;font-size:16px}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0;list-style:none;text-align:center;line-height:1.6;font-size:14px;color:#000;margin-bottom:0}.link-no-underline[_ngcontent-%COMP%]{text-decoration:none}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;text-align:center;text-decoration:none;opacity:.8;color:#000}.footer-clean[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:1}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%]{text-align:right}.div_icon_redes[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:-5rem}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:24px;width:40px;height:40px;line-height:40px;
1display:inline-block;text-align:center;border-radius:50%;border:1px solid #ccc;margin-left:10px;margin-top:22px;color:inherit;opacity:.75}.footer-clean[_ngcontent-%COMP%] .item.social[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{opacity:.9}.footer-clean[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{margin-top:14px;margin-bottom:0;font-size:13px;opacity:.6}p[_ngcontent-%COMP%]{padding:0;list-style:none;text-align:center;line-height:1.6;font-size:14px;color:#000;margin-bottom:0}.imagen-logo[_ngcontent-%COMP%]{display:block;text-align:center;justify-content:center;margin:0 auto;max-width:50%;width:180px;height:30px}.copiright[_ngcontent-%COMP%]{color:#fff;margin-top:1rem;font-size:12px;line-height:1}.card[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:10px;box-shadow:0 0 10px #0003;color:#fff;padding:0;width:60%;height:auto}.card-body[_ngcontent-%COMP%]{font-size:18px}.linea1[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:40px;text-align:center}.linea2[_ngcontent-%COMP%]{color:#fff;font-weight:700;font-size:25px;padding:0 0 0 100px;text-align:center}.linea3[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;text-align:start;padding:5px 5px 10px 20px}.componente[_ngcontent-%COMP%]{margin-left:355px;margin-right:355px}.posicion-pagina[_ngcontent-%COMP%]{justify-content:end}.footer[_ngcontent-%COMP%]{width:100%;position:fixed;bottom:0;left:0}}"]}),c})();var de=D(7579),dt=D(2722),Mt=D(97),We=D(805);const At=["closeBtn"];function qe(c,o){if(1&c&&(e.TgZ(0,"div",206),e._UZ(1,"img",207),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("src",n.selectedLanguage.img,e.LSH),e.xp6(2),e.Oqu(n.selectedLanguage.code)}}function lt(c,o){if(1&c&&e.YNc(0,qe,4,2,"div",205),2&c){const n=e.oxw();e.Q6J("ngIf",n.selectedLanguage)}}function sn(c,o){if(1&c&&(e.TgZ(0,"div",206),e._UZ(1,"img",207),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&c){const n=o.$implicit;e.xp6(1),e.Q6J("src",n.img,e.LSH),e.xp6(2),e.Oqu(n.name)}}function Xt(c,o){if(1&c&&(e.TgZ(0,"div",209),e._UZ(1,"img",210),e.TgZ(2,"div",211)(3,"strong"),e._uU(4),e.qZA()()()),2&c){const n=e.oxw(2);e.xp6(1),e.Tol("flag flag-"+n.selectedLanguage.code.toLowerCase()),e.Q6J("src",n.selectedLanguage.img,e.LSH),e.xp6(3),e.Oqu(n.selectedLanguage.name)}}function ot(c,o){if(1&c&&e.YNc(0,Xt,5,4,"div",208),2&c){const n=e.oxw();e.Q6J("ngIf",n.selectedLanguage)}}function fe(c,o){if(1&c&&(e.TgZ(0,"div",209),e._UZ(1,"img",210),e.TgZ(2,"div",211)(3,"strong"),e._uU(4),e.qZA()()()),2&c){const n=o.$implicit;e.xp6(1),e.Tol("flag flag-"+n.code.toLowerCase()),e.Q6J("src",n.img,e.LSH),e.xp6(3),e.Oqu(n.name)}}function ut(c,o){if(1&c&&(e.TgZ(0,"div",209),e._UZ(1,"img",210),e.TgZ(2,"div",211)(3,"strong"),e._uU(4),e.qZA()()()),2&c){const n=e.oxw(2);e.xp6(1),e.Tol("flag flag-"+n.selectedLanguage.code.toLowerCase()),e.Q6J("src",n.selectedLanguage.img,e.LSH),e.xp6(3),e.Oqu(n.selectedLanguage.name)}}function Ye(c,o){if(1&c&&e.YNc(0,ut,5,4,"div",208),2&c){const n=e.oxw();e.Q6J("ngIf",n.selectedLanguage)}}function it(c,o){if(1&c&&(e.TgZ(0,"div",209),e._UZ(1,"img",210),e.TgZ(2,"div",211)(3,"strong"),e._uU(4),e.qZA()()()),2&c){const n=o.$implicit;e.xp6(1),e.Tol("flag flag-"+n.code.toLowerCase()),e.Q6J("src",n.img,e.LSH),e.xp6(3),e.Oqu(n.name)}}const ze=function(){return{width:"50%"}},xt=".blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:13rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 28px 0 38px;width:205px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 28px 0 38px;width:205px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:1rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:50%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 0 0 288px;width:202px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 0 0 288px;width:202px;height:30px}.btn_educacion_financiera[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;width:220px;height:30px;font-size:16px}.btn_educacion_financiera[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 0 0 300px;width:165px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 0 0 300px;width:165px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 0 0 225px;width:165px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 0 0 225px;width:165px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 346px;cursor:pointer}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}@media (min-width: 851px) and (max-width: 1005px){.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;width:100%}nav[_ngcontent-%COMP%]{position:absolute;z-index:99;width:100%;background:#fff}nav[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%]{position:relative;width:100%;padding:0 30px;height:70px;line-height:70px;margin:auto;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 10px -5px #0000004d}.wrapper[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#f2f2f2;font-size:30px;font-weight:600;text-decoration:none}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:inline-flex;width:100%;margin-left:16rem}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-left:6rem}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#6c757d;text-decoration:none;font-size:16px;font-weight:500;padding:42px 10px 22px 0;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;box-shadow:0 0 0 -5px #554b4b4d}}*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}nav[_ngcontent-%COMP%]{position:absolute;z-index:99;width:100%;background:#fff}nav[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%]{position:relative;width:100%;background-color:#fff;height:70px;line-height:70px;margin:auto;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 10px -5px #0000004d}.wrapper[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#f2f2f2;font-size:30px;font-weight:600;text-decoration:none}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:52%;text-align:end}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:10px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#6c757d;text-decoration:none;font-size:16px;font-weight:500;padding:42px 10px 22px 0;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;box-shadow:0 0 0 -5px #554b4b4d}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:10rem;margin-left:1rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:300px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;
1height:415px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:350px;height:415px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;border-radius:5px;transition:all .3s ease;width:350px;height:415px}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:350px;height:415px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-5rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] .mobile-item2[_ngcontent-%COMP%]{display:none}.nav-links[_ngcontent-%COMP%] .drop-menu[_ngcontent-%COMP%]{position:absolute;background:#fff;width:180px;line-height:45px;top:85px;opacity:0;visibility:hidden;box-shadow:0 6px 10px #00000026}.nav-links[_ngcontent-%COMP%] .drop-menu[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover .mega-box[_ngcontent-%COMP%]{transition:all .3s ease;top:70px;opacity:1;visibility:visible}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;display:block;border-radius:0}.mega-box[_ngcontent-%COMP%]{position:absolute;left:0;width:100%;padding:0 30px;top:50px;opacity:0;visibility:hidden}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background:#fff;padding:25px;display:flex;width:100%;justify-content:space-between;box-shadow:0 6px 10px #00000026}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:calc(25% - 30px);line-height:45px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .imgi[_ngcontent-%COMP%]{width:100%;height:95%;object-fit:cover}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:100%;position:absolute;right:-18rem;top:-2rem}.prueba-simulador[_ngcontent-%COMP%]{top:-3rem!important}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:80%;position:absolute;right:-20rem;top:-2rem}.titulo-cuentas[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#fff;text-align:center;background-color:#2e56a1}.titulo[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#2e56a1;text-align:left;padding:0;line-height:1;margin-left:.5rem;margin-top:3rem}.card[_ngcontent-%COMP%]{width:350px;border:none;margin-left:-2rem;padding:0;
1height:415px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:350px;margin-left:-2rem;padding:0;height:415px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card3[_ngcontent-%COMP%]{width:350px;margin-left:4rem;padding:0;height:415px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card3[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}.img-flecha[_ngcontent-%COMP%]{width:40%;margin-left:-5rem}.move-card[_ngcontent-%COMP%]{margin-left:-2rem}.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:12px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{color:#f2f2f2;font-size:20px;font-weight:500}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{margin-left:-40px;border-left:1px solid rgba(255,255,255,.09)}.row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0}.grey-bg[_ngcontent-%COMP%]{background-color:#f5f7fa}.row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 20px;color:#d9d9d9;font-size:17px;display:block}.wrapper[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{color:#fff;font-size:20px;cursor:pointer;display:none}.wrapper[_ngcontent-%COMP%] .btn.close-btn[_ngcontent-%COMP%]{position:absolute;right:30px;top:10px}@media screen and (max-width: 320px){.custom-select-container[_ngcontent-%COMP%]{width:100%!important;margin:0!important;margin-left:1rem!important;border-radius:20px;background-color:#f2f2f2;border:2px solid #3498db;box-shadow:0 0 10px #0000001a;transition:box-shadow .3s,transform .3s}.wrapper[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:block}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100%;max-width:350px;top:0;left:100%;background:#fff;display:block;padding:50px 10px;line-height:50px;overflow-y:auto;box-shadow:0 15px 15px #0000002e;transition:all .3s ease}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#fff}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#3a3b3c}#menu-btn[_ngcontent-%COMP%]:checked ~ .nav-links[_ngcontent-%COMP%]{left:0%}#menu-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:none}#close-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:block}.nav-links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{background-color:#bacd0b}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:15px 10px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 100px;display:block;font-size:20px}.nav-links[_ngcontent-%COMP%] .drop-menu[_ngcontent-%COMP%]{position:static;opacity:1;top:65px;visibility:visible;padding-left:10px;width:100%;max-height:0px;overflow:hidden;box-shadow:none;transition:all .3s ease}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}.nav-links[_ngcontent-%COMP%] .desktop-item[_ngcontent-%COMP%]{display:none}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%]{display:block;color:#f2f2f2;font-size:20px;font-weight:500;padding-left:20px;cursor:pointer;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%]:hover{background:#3a3b3c}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:5px;font-size:18px}.mega-box[_ngcontent-%COMP%]{position:static;top:65px;opacity:1;visibility:visible;padding:0 20px;max-height:0px;overflow:hidden;transition:all .3s ease}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{box-shadow:none;flex-direction:column;padding:20px 20px 0}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;margin-bottom:15px;border-top:1px solid rgba(255,255,255,.08)}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(1), .mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(2){border-top:0px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{border-left:0px;padding-left:15px}.row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-size:19px}.div_flag-mobile[_ngcontent-%COMP%]{display:flex}.div_flag-mobile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px}.div_background-flag-mobile[_ngcontent-%COMP%]{text-align:center}}nav[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.body-text[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;text-align:center;padding:0 30px}.body-text[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:45px;font-weight:600}@media screen and (min-width: 4000px) and (max-width: 5000px){.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:14rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-1rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 10px 0 250px;width:185px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 10px 0 250px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 -100px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 -100px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}}@media screen and (min-width: 4000px) and (max-width: 5000px){.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{background:#fff;display:flex;width:50%;margin-left:100rem;justify-content:space-between;box-shadow:0 6px 10px #00000026}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:845px}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 10px 0 580px;width:185px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 10px 0 580px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 -450px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 -450px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 -1380px;width:100%;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 -100px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 1400px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}}@media screen and (max-width: 970px){.no-boton[_ngcontent-%COMP%]{display:none}.blue-section[_ngcontent-%COMP%]{background-color:#fff;color:#fff;margin-top:-5rem}.cubrir[_ngcontent-%COMP%]{width:100%;height:10rem;background-color:#2e56a1}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin-left:1rem}.contenedor-quejas[_ngcontent-%COMP%]{text-align:left;margin-left:1rem}.btn-oscus1[_ngcontent-%COMP%]{border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-top:-2rem;width:90%;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{border-radius:3rem;border:4px solid #2e56a1;color:#2e56a1;font-size:16px;margin-top:2rem;width:90%;height:30px}.container-opciones[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;margin-top:-1rem}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:-2rem;width:90%;height:50px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:-2rem;width:90%;margin-top:1rem;height:50px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:8px;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:8px;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-menu[_ngcontent-%COMP%]{border-radius:3rem;border:2px solid #fff;color:#fff;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:50px;height:4rem}.btn-menu[_ngcontent-%COMP%]:hover{border-radius:3rem;border:2px solid #fff;color:#2e56a1;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:50px;height:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:2px solid #fff;color:#fff;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:100px;height:50px}.btn[_ngcontent-%COMP%]:hover{border-radius:3rem;color:#2e56a1;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:100px;height:50px}.texto-boton[_ngcontent-%COMP%]{margin-top:-1rem}.btn2[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;margin-top:2rem;height:50px;text-align:center}.btn2[_ngcontent-%COMP%]:hover{background-color:#2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;margin-top:2rem;height:50px}.wrapper[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:block;justify-content:center;background-color:#2e56a1;height:3.5rem}.imagen-menu[_ngcontent-%COMP%]{display:none}.text-center[_ngcontent-%COMP%]{text-align:center}.desktop-item[_ngcontent-%COMP%]{display:none;visibility:hidden}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{margin-left:-170px;border-left:1px solid rgba(255,255,255,.09)}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;display:flex;flex-wrap:wrap;font-size:16px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:1px;height:100px;margin-left:.5rem}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:1px;height:100px}.alink3[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;border-radius:5px;transition:all .3s ease;width:100px;height:100px}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:100px;height:100px}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;background-color:#fff;font-size:16px;font-weight:500;padding:50px 15px;border-radius:5px;transition:all .3s ease;width:320px;height:100px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:320px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.container-menu[_ngcontent-%COMP%]{margin-left:12rem}.container-menu2[_ngcontent-%COMP%]{margin-left:5rem}
1.container-menu3[_ngcontent-%COMP%], .container-menu4[_ngcontent-%COMP%]{margin-left:10rem}.prueba3[_ngcontent-%COMP%]{width:80%;position:absolute;right:-19rem;top:-2rem}.col-8[_ngcontent-%COMP%]{width:50%}.card[_ngcontent-%COMP%]{width:280px;border:none;margin-left:6rem;padding:0;height:100px;border-radius:1.5rem}.card2[_ngcontent-%COMP%]{width:280px;margin-left:19rem;margin-top:1.5rem;padding:0;height:100px;border-radius:1.5rem}.card-img-top1[_ngcontent-%COMP%], .card-img-top2[_ngcontent-%COMP%]{width:85%;margin-top:-4rem;margin-left:18rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:10px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100%;top:0;right:-150%;background:#fff;display:block;padding:50px 10px;line-height:50px;overflow-y:auto;transition:all .3s ease}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#fff}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#3a3b3c}#menu-btn[_ngcontent-%COMP%]:checked ~ .nav-links[_ngcontent-%COMP%]{left:0%}#menu-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:none}#close-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:block}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 10px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0;display:block;font-size:20px}.nav-links[_ngcontent-%COMP%] .drop-menu[_ngcontent-%COMP%]{position:static;opacity:1;top:65px;visibility:visible;padding-left:10px;width:100%;max-height:0px;overflow:hidden;box-shadow:none;transition:all .3s ease}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega1[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega2[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega3[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega4[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}.nav-links[_ngcontent-%COMP%] .desktop-item[_ngcontent-%COMP%]{display:none}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] .mobile-item2[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease;text-align:center}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, .nav-links[_ngcontent-%COMP%] .mobile-item1[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, .mobile-item2[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background:#2e56a1;color:#fff}.nav-links[_ngcontent-%COMP%] .mobile-item1[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:5px;font-size:18px}.mega-box[_ngcontent-%COMP%]{position:static;top:65px;opacity:1;visibility:visible;padding:0 20px;max-height:0px;overflow:hidden;transition:all .3s ease}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{box-shadow:none;flex-direction:column;padding:20px 38px 0}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;margin-bottom:15px;border-top:1px solid rgba(255,255,255,.08)}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(1), .mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(2){border-top:0px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{border-left:0px;padding-left:15px}.row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-size:19px}}@media screen and (min-width: 971px) and (max-width: 1160px){.no-boton[_ngcontent-%COMP%]{display:none}.blue-section[_ngcontent-%COMP%]{background-color:#fff;color:#fff;margin-top:-5rem}.cubrir[_ngcontent-%COMP%]{width:100%;height:10rem;background-color:#2e56a1}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin-left:1rem}.contenedor-quejas[_ngcontent-%COMP%]{text-align:left;margin-left:1rem}.btn-oscus1[_ngcontent-%COMP%]{border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-top:-2rem;width:90%;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{border-radius:3rem;border:4px solid #2e56a1;color:#2e56a1;font-size:16px;margin-top:2rem;width:90%;height:30px}.container-opciones[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;margin-top:-1rem}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:-2rem;width:90%;height:50px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:-2rem;width:90%;margin-top:1rem;height:50px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:8px;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:3rem;border:4px solid #2e56a1;color:#fff;font-size:8px;font-size:16px;margin-left:3rem;width:90%;height:50px}.btn-menu[_ngcontent-%COMP%]{border-radius:3rem;border:2px solid #fff;color:#fff;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:50px;height:4rem}.btn-menu[_ngcontent-%COMP%]:hover{border-radius:3rem;border:2px solid #fff;color:#2e56a1;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:50px;height:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:2px solid #fff;color:#fff;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:100px;height:50px}.btn[_ngcontent-%COMP%]:hover{border-radius:3rem;color:#2e56a1;font-weight:700;font-size:4px;margin:.5rem 0rem 0rem 8rem;width:100px;height:50px}.texto-boton[_ngcontent-%COMP%]{margin-top:-1rem}.btn2[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;margin-top:2rem;height:50px;text-align:center}.btn2[_ngcontent-%COMP%]:hover{background-color:#2e56a1;color:#fff;font-size:16px;margin-left:3rem;width:90%;margin-top:2rem;height:50px}.wrapper[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:block;justify-content:center;background-color:#2e56a1;height:3.5rem}.imagen-menu[_ngcontent-%COMP%]{display:none}.text-center[_ngcontent-%COMP%]{text-align:center}.desktop-item[_ngcontent-%COMP%]{display:none;visibility:hidden}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{margin-left:-170px;border-left:1px solid rgba(255,255,255,.09)}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;display:flex;flex-wrap:wrap;font-size:16px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:1px;height:100px;margin-left:.5rem}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:1px;height:100px}.alink3[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:16px;font-weight:500;border-radius:5px;transition:all .3s ease;width:100px;height:100px}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:100px;height:100px}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;background-color:#fff;font-size:16px;font-weight:500;padding:50px 15px;border-radius:5px;transition:all .3s ease;width:320px;height:100px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:16px;width:320px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.container-menu[_ngcontent-%COMP%]{margin-left:12rem}.container-menu2[_ngcontent-%COMP%]{margin-left:5rem}
1.container-menu3[_ngcontent-%COMP%], .container-menu4[_ngcontent-%COMP%]{margin-left:10rem}.prueba3[_ngcontent-%COMP%]{width:80%;position:absolute;right:-19rem;top:-2rem}.col-8[_ngcontent-%COMP%]{width:50%}.card[_ngcontent-%COMP%]{width:280px;border:none;margin-left:6rem;padding:0;height:100px;border-radius:1.5rem}.card2[_ngcontent-%COMP%]{width:280px;margin-left:19rem;margin-top:1.5rem;padding:0;height:100px;border-radius:1.5rem}.card-img-top1[_ngcontent-%COMP%], .card-img-top2[_ngcontent-%COMP%]{width:85%;margin-top:-4rem;margin-left:18rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:10px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{position:fixed;height:100vh;width:100%;top:0;right:-150%;background:#fff;display:block;padding:50px 10px;line-height:50px;overflow-y:auto;transition:all .3s ease}[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#fff}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#3a3b3c}#menu-btn[_ngcontent-%COMP%]:checked ~ .nav-links[_ngcontent-%COMP%]{left:0%}#menu-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:none}#close-btn[_ngcontent-%COMP%]:checked ~ .btn.menu-btn[_ngcontent-%COMP%]{display:block}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 10px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0;display:block;font-size:20px}.nav-links[_ngcontent-%COMP%] .drop-menu[_ngcontent-%COMP%]{position:static;opacity:1;top:65px;visibility:visible;padding-left:10px;width:100%;max-height:0px;overflow:hidden;box-shadow:none;transition:all .3s ease}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega1[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega2[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega3[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}#showDrop[_ngcontent-%COMP%]:checked ~ .drop-menu[_ngcontent-%COMP%], #showMega4[_ngcontent-%COMP%]:checked ~ .mega-box[_ngcontent-%COMP%]{max-height:100%}.nav-links[_ngcontent-%COMP%] .desktop-item[_ngcontent-%COMP%]{display:none}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] .mobile-item2[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease;text-align:center}.nav-links[_ngcontent-%COMP%] .mobile-item[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, .nav-links[_ngcontent-%COMP%] .mobile-item1[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, .mobile-item2[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background:#2e56a1;color:#fff}.nav-links[_ngcontent-%COMP%] .mobile-item1[_ngcontent-%COMP%]{display:block;color:#2e56a1;font-size:20px;font-weight:500;padding-left:00px;cursor:pointer;border-radius:5px;transition:all .3s ease}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.drop-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:5px;font-size:18px}.mega-box[_ngcontent-%COMP%]{position:static;top:65px;opacity:1;visibility:visible;padding:0 20px;max-height:0px;overflow:hidden;transition:all .3s ease}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{box-shadow:none;flex-direction:column;padding:20px 38px 0}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;margin-bottom:15px;border-top:1px solid rgba(255,255,255,.08)}.mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(1), .mega-box[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(2){border-top:0px}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%]{border-left:0px;padding-left:15px}.row[_ngcontent-%COMP%] .mega-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0}.content[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-size:19px}}@media screen and (min-width: 2000px) and (max-width: 3000px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -305px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -305px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:50%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 0;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 303px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 303px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 -22px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 -22px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1871px) and (max-width: 1900px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -70px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -70px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:50%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 0;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 220px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 220px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 150px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 150px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1801px) and (max-width: 1870px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -36px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -36px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 300px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 300px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 260px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 260px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1771px) and (max-width: 1800px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -36px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -36px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 210px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 298px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 298px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 258px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 258px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1701px) and (max-width: 1770px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -15px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -15px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 296px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 296px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 256px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 256px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1671px) and (max-width: 1700px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 -15px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 -15px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 294px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 294px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 254px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 254px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1600px) and (max-width: 1670px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 12px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 12px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 292px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 292px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 230px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 230px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1571px) and (max-width: 1600px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:11.5px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 178px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 178px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 290px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 290px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 190px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 190px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:12rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1501px) and (max-width: 1570px){.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 67px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 67px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 171px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 171px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 350px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 350px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 310px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 310px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:4rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1471px) and (max-width: 1500px){.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 193px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 288px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 288px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 248px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 248px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1371px) and (max-width: 1500px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:10px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px -70px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px -70px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:2rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 173px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 173px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 268px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 268px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 248px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 248px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 266px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:200px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:200px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;
1width:200px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:200px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-4.5rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card3[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card3[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:18px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1271px) and (max-width: 1370px){.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-1rem}.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0 0 0 -61px;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 10px 0 215px;width:182px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 10px 0 215px;width:182px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 208px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 208px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 180px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 180px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 195px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}
1.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{background:aqua;color:none;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:200px;height:400px;margin-left:10rem}.alink2[_ngcontent-%COMP%]:hover{background:none;color:#2e56a1;font-size:6px;width:200px;height:400px}.alink3[_ngcontent-%COMP%]{background:none;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:200px;height:400px;margin-left:.5rem}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:200px;height:400px}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink6[_ngcontent-%COMP%]{background:none;color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:200px;height:400px;margin-left:1rem}.alink6[_ngcontent-%COMP%]:hover{background:none;color:#2e56a1;font-size:8px;width:200px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:250px;border:none;margin-left:-4rem;padding:0;height:400px;border-radius:1.5rem}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem}.card2[_ngcontent-%COMP%]{width:250px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card3[_ngcontent-%COMP%]{width:250px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem}.card3[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1110px) and (max-width: 1270px){.texto-menu[_ngcontent-%COMP%]{margin-top:.5rem;font-size:12px;color:#797473;text-align:justify;margin:0;padding:0;line-height:1.4;margin-left:.5rem}.wrapper[_ngcontent-%COMP%] .nav-links[_ngcontent-%COMP%]{display:flex;width:55%;text-align:end}.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:1px 10px 0 3px;width:190px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:4rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-5rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:5rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-20rem}.container-opciones[_ngcontent-%COMP%]{margin:0 0 0 -39px;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 186px;width:161px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 186px;width:161px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 208px;width:185px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 208px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:16px;margin:0 0 0 140px;width:185px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:16px;margin:0 0 0 140px;width:185px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 195px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:255px;height:10rem;margin-left:0rem;box-shadow:0 11px 15px -9px #000000a1}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:255px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:300px;height:400px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:300px;height:400px;box-shadow:0 11px 15px 1px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:80%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}.card[_ngcontent-%COMP%]{width:300px;border:none;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]{width:300px;margin-left:-2rem;padding:0;height:400px;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem;box-shadow:0 11px 15px -9px #000000a1}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}}@media screen and (min-width: 1000px) and (max-width: 1105px){.blue-section[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;padding:15px;width:100%;height:55px}.contenedor-menu[_ngcontent-%COMP%]{box-shadow:0 11px 8px -13px #000000a1;padding:4rem}.btn[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-weight:700}.contenedor-quejas[_ngcontent-%COMP%]{text-align:center;margin-left:10rem}.btn-oscus1[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:1px 10px 0 40px;width:166px;height:30px}.btn-oscus1[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:1px 10px 0 40px;width:166px;height:30px}.container-menu[_ngcontent-%COMP%]{margin-left:-10rem}.container-menu2[_ngcontent-%COMP%]{margin-left:-1rem}
1.container-menu3[_ngcontent-%COMP%]{margin-left:-11rem}.container-menu4[_ngcontent-%COMP%]{margin-left:-27rem}.container-opciones[_ngcontent-%COMP%]{margin:0;width:30%;text-align:center}.btn-oscus2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 10px 0 151px;width:166px;height:30px}.btn-oscus2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 10px 0 151px;width:166px;height:30px}.btn-oscus3[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 0 0 73px;width:132px;height:30px}.btn-oscus3[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 0 0 73px;width:132px;height:30px}.btn-oscus4[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:1px solid #fff;color:#fff;font-size:14px;margin:0 0 0 44px;width:132px;height:30px}.btn-oscus4[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:3rem;border:1px solid #fff;color:#2e56a1;font-size:14px;margin:0 0 0 44px;width:132px;height:30px}.btn3[_ngcontent-%COMP%]{color:#b4b3b7;font-weight:none;font-size:20px;margin:10px;width:50;height:auto;background-color:transparent;border:none}.btn3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-weight:none;font-size:20px;margin:10px;width:50;height:auto}.botonMenu[_ngcontent-%COMP%]{vertical-align:middle;margin-top:-1.8px;border-radius:1rem;color:#efefef;font-size:5px}.col-6.col-lg-12.col-sm-3[_ngcontent-%COMP%]{align-self:flex-end}.imagen-logo[_ngcontent-%COMP%]{width:216px;height:40px;margin:0 0 0 195px}.btn-primary2[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:1rem;border:2px solid #fff;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-primary2[_ngcontent-%COMP%]:hover{background-color:#fff;border-radius:1rem;border:2px solid #2e56a1;color:#2e56a1;font-weight:700;font-size:20px;margin:10px;margin-top:.5rem;width:50;height:auto}.btn-submenu[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;color:#2e56a1;border:2px solid #fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu[_ngcontent-%COMP%]:hover{background-color:#2e56a1;border-radius:.5rem;border:2px solid #2e56a1;color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem;color:#efefef}.menu-dropdown[_ngcontent-%COMP%]{width:200%;margin-left:-15rem}.btn-primary3[_ngcontent-%COMP%]{font-size:20px;color:#b4b3b7;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-primary3[_ngcontent-%COMP%]:hover{color:#2e56a1;font-size:20px;margin:10px;margin-top:1rem;width:90px;height:auto}.btn-submenu3[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.btn-submenu3[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700;font-size:15px;margin:10px;width:150px;box-shadow:0 11px 15px -9px #000000a1}.texto-label3[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center;margin-top:1rem}.menu-dropdown3[_ngcontent-%COMP%]{width:500%;margin-left:-15rem}.alink[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:240px;height:10rem;margin-left:0rem}.alink[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:236px;height:10rem;box-shadow:0 11px 15px 1px #000000a1}.alink2[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:10px;height:120px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink2[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:10px;height:120px;box-shadow:0 0 0 -100px #000000a1}.alink3[_ngcontent-%COMP%]{text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:10px;height:120px;margin-left:.5rem;box-shadow:0 11px 15px -9px #000000a1}.alink3[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:10px;height:120px;box-shadow:0 0 0 -100px #000000a1}.alink4[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:-14rem;box-shadow:0 11px 15px -9px #000000a1}.alink4[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.alink5[_ngcontent-%COMP%]{color:#b4b3b7;text-decoration:none;font-size:8px;font-weight:500;padding:9px 15px;border-radius:5px;transition:all .3s ease;width:350px;height:100px;margin-left:10rem;box-shadow:0 11px 15px -9px #000000a1}.alink5[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:8px;width:350px;height:100px;box-shadow:0 11px 15px 1px #000000a1}.prueba[_ngcontent-%COMP%]{width:10%;margin-top:-6rem}.prueba1[_ngcontent-%COMP%]{width:70%;position:absolute;right:-15rem;top:-1rem}.prueba2[_ngcontent-%COMP%]{width:100%;position:absolute}.prueba3[_ngcontent-%COMP%]{width:70%;position:absolute;right:-20rem;top:-1rem}
1.card[_ngcontent-%COMP%]{width:200px;background-color:red;border:none;margin-left:-20rem;padding:0;height:120px;border-radius:1.5rem}.card[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem}.card2[_ngcontent-%COMP%]{width:200px;margin-left:8rem;padding:0;height:120px;border-radius:1.5rem}.card2[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem}.card3[_ngcontent-%COMP%]{width:200px;margin-left:8rem;padding:0;height:120px;border-radius:1.5rem}.card3[_ngcontent-%COMP%]:hover{color:#fff;border-radius:1.5rem}.card-img-top1[_ngcontent-%COMP%]{width:90%;margin-top:2rem;margin-left:-1rem}.card-img-top[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;line-height:1}.card-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:center;margin-top:2rem}.card-text[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;font-weight:700;text-align:left;margin:0}.card-text1[_ngcontent-%COMP%]{color:#6c757d;font-size:16px;text-align:left}.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#6c757d;text-decoration:none;font-size:11px;font-weight:500;padding:42px 10px 22px 0;border-radius:5px;transition:all .3s ease}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:transparent;color:#2e56a1;font-size:11px;box-shadow:0 0 0 -5px #554b4b4d}.imagen-menu[_ngcontent-%COMP%]{display:none}}.custom-select-container[_ngcontent-%COMP%]{width:30%;
1margin:0 0 0 300px;border-radius:20px}.custom-select[_ngcontent-%COMP%]{font-size:12pt;border-radius:20px;padding:0rem -5rem 0rem 0rem}.custom-select[_ngcontent-%COMP%]::-ms-expand, .custom-select-container[_ngcontent-%COMP%]:after{display:none;background-color:#bacd0b}.custom-select[_ngcontent-%COMP%]:focus{box-shadow:0 0 20px #0003;transform:scale(1.02)}.option[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12pt}.custom-select-container[_ngcontent-%COMP%]:hover .custom-select-container[_ngcontent-%COMP%]:after{color:#3498db}.dropbtn[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff;padding:16px;font-size:16px;border:none;cursor:pointer}.dropdown[_ngcontent-%COMP%]{position:relative;display:inline-block}.dropdown-content[_ngcontent-%COMP%]{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.dropdown-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#f1f1f1}.dropdown[_ngcontent-%COMP%]:hover .dropdown-content[_ngcontent-%COMP%]{display:block}.dropdown[_ngcontent-%COMP%]:hover .dropbtn[_ngcontent-%COMP%]{background-color:#3e8e41}.mat-form-field[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:8px;height:40px;width:236px;border:1px solid var(--primary-color-variant-purple-5, #E1DDFA);background:var(--natural-light-white-light, #F6F6F6)}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-outline-start, .mat-form-field[_ngcontent-%COMP%] .mat-form-field-outline-gap, .mat-form-field[_ngcontent-%COMP%] .mat-form-field-outline-end{border:none!important}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-infix{border-top:0px}.contact_info_agent[_ngcontent-%COMP%]{width:10vw;display:flex;flex-direction:row;justify-content:center;padding:0;margin-top:0px 0px 0px 0px}.colmnus1[_ngcontent-%COMP%]{width:4vw;text-align:center}.background_flags[_ngcontent-%COMP%]{float:right}.div_flag[_ngcontent-%COMP%]{display:flex}.div_flag[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px}.div_flag-mobile[_ngcontent-%COMP%]{display:flex}.div_flag-mobile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50px}.div_background-flag-mobile[_ngcontent-%COMP%]{text-align:center}.menu-desktop[_ngcontent-%COMP%]{display:block}.div_menu-responsive[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;background:#ffffff;box-shadow:0 0 2px #000;padding:0 7%;display:flex;align-items:center;justify-content:space-between;z-index:1000;width:100%}a[_ngcontent-%COMP%]{text-decoration:none}header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{font-weight:bolder;font-size:25px;color:#333}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;float:left}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px;padding:20px;color:#2e56a1;display:block}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{position:absolute;left:0;width:200px;background:#fff;display:none}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;border-top:1px solid black}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{left:200px;top:0}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:focus-within > ul[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover > ul[_ngcontent-%COMP%]{display:inline}.btn_bars[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;border:2px solid #fff;color:#fff;font-weight:700;width:60px}.div_btn_bars[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:5px}#menu-bar[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}.titulo_menu[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#2e56a1;text-align:left;padding:0;line-height:1;margin-left:.5rem}@media (max-width: 991px){.div_menu-responsive[_ngcontent-%COMP%]{display:block}.menu-desktop[_ngcontent-%COMP%]{display:none}.navbar[_ngcontent-%COMP%]{overflow-y:auto;max-height:100vh}header[_ngcontent-%COMP%]{padding:10px}header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;background:#fff;border-top:1px solid black;display:none}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{position:relative;width:100%}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{background:#eee}header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%;left:0}#menu-bar[_ngcontent-%COMP%]:checked ~ .navbar[_ngcontent-%COMP%]{display:initial}.col-menu-img[_ngcontent-%COMP%]{display:flex;justify-content:right}.col-menu-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50%}.div_buttons_options_menu[_ngcontent-%COMP%]{display:flex;justify-content:center}.btn_buttons_options_menu[_ngcontent-%COMP%]{background-color:#2e56a1;border-radius:3rem;color:#fff;font-weight:700;font-size:16px;width:90%;margin-bottom:1vh;height:50px}.div_flag-mobile[_ngcontent-%COMP%]{display:flex}.div_flag-mobile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:25px}.p-dropdown[_ngcontent-%COMP%] .p-dropdown-trigger[_ngcontent-%COMP%]{width:0px!important}}.topbar-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.topbar-left[_ngcontent-%COMP%]{display:flex;gap:18px;align-items:center;flex-wrap:wrap;flex:1 1 auto}.topbar-left[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0!important}.topbar-left[_ngcontent-%COMP%] .btn-oscus4[_ngcontent-%COMP%]{margin-left:auto!important}.topbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;flex:0 0 auto}@media (max-width: 992px){.topbar-container[_ngcontent-%COMP%]{flex-direction:row!important;align-items:center;gap:10px}.topbar-left[_ngcontent-%COMP%]{flex:1 1 auto;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:10px;justify-content:flex-start;padding-bottom:4px}.topbar-left[_ngcontent-%COMP%]::-webkit-scrollbar{height:6px}.topbar-left[_ngcontent-%COMP%] .btn-oscus4[_ngcontent-%COMP%]{margin-left:0!important}.topbar-left[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:0 0 auto;white-space:nowrap}.topbar-right[_ngcontent-%COMP%]{flex:0 0 auto}.background_flags[_ngcontent-%COMP%] .p-dropdown[_ngcontent-%COMP%]{min-width:86px}}.topbar-wrap[_ngcontent-%COMP%]{padding-left:0!important}@media (min-width: 993px){.blue-section[_ngcontent-%COMP%]{box-sizing:border-box;height:auto;min-height:55px;padding:10px 15px}.topbar-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:nowrap;gap:clamp(3px,.35vw,7px);min-width:0}.topbar-left[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:clamp(2px,.3vw,6px);min-width:0;overflow:visible}.topbar-left[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .topbar-right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-sizing:border-box;flex:0 1 auto;width:auto!important;height:auto;min-height:30px;margin:0!important;padding:3px clamp(4px,.45vw,9px);font-size:clamp(12px,1vw,16px);line-height:1.2;white-space:nowrap}.topbar-right[_ngcontent-%COMP%]{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:clamp(2px,.3vw,6px);margin-left:auto}.topbar-right[_ngcontent-%COMP%] .background_flags[_ngcontent-%COMP%]{float:none}}@media (max-width: 992px){.topbar-right[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{display:none}}";let mt=(()=>{class c{constructor(n,r){this.translate=n,this.globalService=r,this.destroy$=new de.x,this.isNavbarVisible=!0,this.isNavOpen=!1,this.isMenuOpen=!1,this.subMenu=null,this.langValue=this.globalService.globalVariable,this.languages=[{name:"Es",code:"es",img:"https://upload.wikimedia.org/wikipedia/commons/e/e8/Flag_of_Ecuador.svg"},{name:"En",code:"en",img:"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Flag_of_the_United_States_%281820%E2%80%931822%29.svg/1280px-Flag_of_the_United_States_%281820%E2%80%931822%29.svg.png"}],this.mostrarMegaMenu=!1,this.translate.use(this.globalService.globalVariable)}ngOnInit(){this.selectedLanguage=this.languages.find(n=>n.code===String(this.langValue))??this.languages[0],this.closeNavbar(),this.globalService.globalVariable$.pipe((0,dt.R)(this.destroy$)).subscribe(n=>{this.translate.use(n)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}redirigir(){this.isNavbarVisible=!1,window.open("https://acceso.oscus.coop/express","_blank"),this.closeNavbar()}redirigirOnline(){this.isNavbarVisible=!1,window.open("https://online.oscus.coop/","_blank"),this.closeNavbar()}redirigirOnline2(){this.isNavbarVisible=!1,window.open("https://online.oscus.coop/","_blank"),this.closeNavbar()}closeNavbar(){this.isNavOpen=!1,this.hideMenu()}hideMenu(){this.closeBtn&&(this.isNavOpen=!1,this.closeBtn.nativeElement.removeAttribute("checked"))}changeLang(){this.globalService.globalVariable=this.langValue}onChange(){this.langValue=this.selectedLanguage.code,this.globalService.globalVariable=this.langValue}mostrarMegaMenuHover(){this.mostrarMegaMenu=!0}cerrarMegaMenu(){this.mostrarMegaMenu=!1}closeMenu(){this.isMenuOpen=!1,this.subMenu=null}toggleSubMenu(n){this.subMenu=this.subMenu===n?null:n}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(ve.sK),e.Y36(ae.U))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-navbar"]],viewQuery:function(n,r){if(1&n&&e.Gf(At,5),2&n){let h;e.iGM(h=e.CRH())&&(r.closeBtn=h.first)}},decls:1113,vars:638,consts:[[1,"container-fluid"],[1,"blue-section"],[1,"topbar-container"],[1,"topbar-left"],["routerLink","1800-OSCUS",1,"btn2","btn-oscus1","btn-outline-secondary","texto-boton"],[1,"btn_educacion_financiera","btn-outline-secondary",3,"routerLink"],[1,"topbar-right"],["type","button",1,"btn_educacion_financiera","btn-outline-secondary",3,"click"],[1,"btn-oscus4","btn-outline-secondary",3,"click"],[1,"background_flags"],["optionLabel","name",3,"options","ngModel","ngModelChange","onChange"],["pTemplate","selectedItem"],["pTemplate","item"],["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["rel","stylesheet","href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"],[1,"menu-desktop"],[1,"wrapper"],[1,"logo"],["src","../../../../assets/img/logo-home.png","routerLink","/",1,"imagen-logo"],["type","radio","name","slider","id","menu-btn"],["type","radio","name","slider","id","close-btn",3,"checked"],[1,"nav-links"],["for","close-btn",1,"btn","close-btn"],[1,"fas","fa-times"],[3,"mouseenter","mouseleave"],["href","#",1,"desktop-item","text-center"],["type","checkbox","id","showMega",3,"ngModel","ngModelChange"],["for","showMega",1,"mobile-item2"],[1,"mega-box",3,"hidden"],[1,"content"],[1,"row"],["height","600rem","alt","",1,"imagen-menu",3,"src"],[1,"mega-links"],[1,"container","container-menu"],[1,"alink",3,"click"],["routerLink","ahorroalavista"],[1,"col-8"],[1,"titulo"],[1,"col-4"],["src","../../../../assets/img/RECURSOS-cuentas/Ahorro-a-la-vista-ACTIVO.png",1,"prueba1"],[1,""],[1,"col-12"],[1,"texto-menu"],["routerLink","ahorromas"],["src","../../../../assets/img/RECURSOS-cuentas/Ahorro-ACTIVO.png",1,"prueba1"],["routerLink","simulador-inversion"],["src","../../../../assets/img/RECURSOS-creditos/captaciones.png",1,"prueba1","prueba-simulador"],["routerLink","minicoop"],["src","../../../../assets/img/RECURSOS-cuentas/MINICOOP-ACTIVO.png",1,"prueba1"],["routerLink","ahorrodorado"],["src","../../../../assets/img/RECURSOS-cuentas/DORADO-ACTIVO.png",1,"prueba1"],["routerLink","newec"],["src","../../../../assets/img/RECURSOS-cuentas/NEWEC-ACTIVO.png",1,"prueba1"],["routerLink","inversionesaplazofijo"],["src","../../../../assets/img/RECURSOS-cuentas/PLAZO-FIJO-ACTIVO.png",1,"prueba1"],["type","checkbox","id","showMega1",3,"ngModel","ngModelChange"],["for","showMega1",1,"mobile-item2"],["alt","",1,"imagen-menu",3,"src"],["routerLink","credioscus"],["src","../../../../assets/img/RECURSOS-creditos/credioscus.png",1,"prueba1"],["routerLink","credimenorah
1orro"],["src","../../../../assets/img/RECURSOS-creditos/Menor-ahorro.png",1,"prueba1"],["routerLink","credinomina"],["src","../../../../assets/img/RECURSOS-creditos/nomina.png",1,"prueba1"],["routerLink","crediverde"],["src","../../../../assets/img/RECURSOS-creditos/credisostenible-menu.png",1,"prueba1"],["routerLink","credimenoralainversion"],["src","../../../../assets/img/RECURSOS-creditos/menor-inversion.png",1,"prueba1"],["routerLink","simulador-credito"],["src","../../../../assets/img/RECURSOS-creditos/creditos.png",1,"prueba1"],["routerLink","credicasaoscus"],["src","../../../../assets/img/RECURSOS-creditos/casaoscus.png",1,"prueba1"],["routerLink","credifacilito"],["src","../../../../assets/img/RECURSOS-creditos/facilito.png",1,"prueba1"],["routerLink","autoscus"],["src","../../../../assets/img/RECURSOS-creditos/Autoscus.png",1,"prueba1"],["routerLink","tarjetarose"],["src","../../../../assets/img/card-mujer-rose/img008.png",1,"prueba1"],["type","checkbox","id","showMega2",3,"ngModel","ngModelChange"],["for","showMega2",1,"mobile-item2"],["routerLink","oscus-express"],["src","../../../../assets/img/RECURSOS-EXPRESS/LOGO-BOTON.png",1,"prueba1"],["routerLink","oscus-online"],["src","../../../../assets/img/RECURSOS-servicios/online.png",1,"prueba1"],[3,"routerLink"],["src","../../../../assets/img/RECURSOS-servicios/LOGO-MENU.png",1,"prueba1"],["routerLink","servipago"],["src","../../../../assets/img/SERVIPAGOS.png",1,"prueba1"],["routerLink","red-medica"],["src","../../../../assets/img/RECURSOS-servicios/LOGO-red-medica.png",1,"prueba1"],["src","../../../../assets/img/RECURSOS-servicios/1800.png",1,"prueba1"],["type","checkbox","id","showMega3",3,"ngModel","ngModelChange"],["for","showMega3",1,"mobile-item2"],[1,"container","container-menu2"],[1,"alink2",3,"click"],["routerLink","tarjetas"],[1,"card"],[1,"card-body"],[1,"col-8","col-sm-8","col-lg-8"],[1,"card-title"],[1,"col-4","col-sm-4","col-lg-4","move-card"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/credito.png","alt","Card image cap",1,"card-img-top1"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/new-foto-credito.png","alt","Card image cap",1,"card-img-top","imagen-menu"],[1,"alink3",2,"margin-left","-1rem",3,"click"],["routerLink","debito"],[1,"card","card2"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/debito.png","alt","Card image cap",1,"card-img-top1","card-img-top2"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/foto-debito.png","alt","Card image cap",1,"card-img-top","imagen-menu"],[1,"alink6",2,"margin-left","-5rem",3,"click"],["routerLink","ofertas-tarjeta"],[1,"card","card3"],["src","../../../../assets/img/WEB OFERTAS/ICONO-OFERTAS.png","alt","Card image cap",1,"card-img-top1","card-img-top2"],["src","../../../../assets/img/WEB OFERTAS/IMAGEN-MENU-OFERTAS.png","alt","Card image cap",1,"card-img-top","imagen-menu"],["type","checkbox","id","showMega4",3,"ngModel","ngModelChange"],["for","showMega4",1,"mobile-item2"],[1,"container","container-menu3"],[1,"alink4",3,"click"],["routerLink","/proveedores"],["src","../../../../assets/img/RECURSOS-SERVICIOS-DIGITALES/PROVEEDORES.png",1,"prueba3"],[1,"container","container-menu4"],[1,"alink4","alink5",3,"click"],["href","https://acceso.oscus.coop/auth/realms/Integraciones/protocol/openid-connect/auth?client_id=facturacion-electronica-consulta&redirect_uri=https%3A%2F%2Facceso.oscus.coop%2Ffe%2Fconsulta%2Fsignin-oidc&response_type=id_token&scope=openid%20profile&response_mode=form_post&nonce=638217524825043701.M2U1MzRmNTUtOTM3Yy00ODZhLTllMjItZmQ2MTJlNGY2MTRlMzE4Y2NlNTMtNDJlNS00OTUyLTliYjgtMjgwMWRiZmFmYTJh&state=CfDJ8BXkOPgi3qBKhhpJ_vcl6dISU5d8C2_9Hy-muplAhIHeYtcZKInWvYUpx5AKW81qmJkUOZ16jkuXJCLsOd80bsqhu9pZzDRrQiHkhkbKNMUY0-N-PQ_Tq1Rmbv0f5nukdrrK9gcug4iTr9oim_xPDhImYo-iCixU_cZp7RgHYVB2okA5BCHUw7D6HVv1mIl6cDMw7fKTfQpXf0H6A-oSxqm80J-2BKoJUsRlol6eOEQjoZVjrg0qAIepGgBMHkOJHr8coHfFLhMuaYOP3TpzO0L749vGH_IrlITYDd5w4rSEApxPceR6GUjPXoUS_ofZRoa77JByyym5-1TlQaKu_Gc&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=6.10.0.0","target","_blank"],["src","../../../../assets/img/RECURSOS-SERVICIOS-DIGITALES/FACTURA-ELECTRONICA.png",1,"prueba3"],["type","checkbox","id","showMega5",3,"ngModel","ngModelChange"],["for","","data-toggle","modal","data-target","#quejasModal",1,"mobile-item1","mobile-item"],["routerLink","1800-OSCUS","data-toggle","modal","data-target","#quejasModal",1,"btn2","btn-oscus1","btn-outline-secondary",3,"click"],["for","",1,"mobile-item1","mobile-item"],[1,"btn-oscus3","btn-outline-secondary",3,"click"],[1,"custom-select-container"],[1,"mobile-item1","mobile-item","div_background-flag-mobile","mt-2"],["optionLabel","name","placeholder","Select a Country",3,"options","ngModel","showClear","ngModelChange","onChange"],["for","menu-btn",1,"btn","btn-menu","menu-btn"],[1,"fas","fa-bars"],[1,"div_menu-responsive"],["type","checkbox","id","menu-bar",3,"ngModel","ngModelChange"],[1,"div_languages"],["for","menu-bar",1,"btn_bars"],[1,"div_btn_bars"],[1,"navbar"],[1,"text-center"],["routerLink","ahorroalavista",1,"titulo_menu",3,"click"],[1,"col-6"],[1,"titulo_menu"],[1,"col-6","col-menu-img"],["src","../../../../assets/img/RECURSOS-cuentas/Ahorro-a-la-vista-ACTIVO.png"],["routerLink","ahorromas",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-cuentas/Ahorro-ACTIVO.png"],["routerLink","minicoop",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-cuentas/MINICOOP-ACTIVO.png"],["routerLink","ahorrodorado",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-cuentas/DORADO-ACTIVO.png"],["routerLink","newec",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-cuentas/NEWEC-ACTIVO.png"],["src","../../../../assets/img/RECURSOS-cuentas/PLAZO-FIJO-ACTIVO.png"],["routerLink","simulador-inversion",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/captaciones.png"],["routerLink","credioscus",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/credioscus.png"],["routerLink","credimenorah
1orro",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/Menor-ahorro.png"],["routerLink","credinomina",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/nomina.png"],["routerLink","crediverde",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/credisostenible-menu.png"],["routerLink","credisobregiro",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/sobregiro.png"],["routerLink","credimenoralainversion",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/menor-inversion.png"],["routerLink","credifacilito",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/facilito.png"],["routerLink","autoscus",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/Autoscus.png"],["routerLink","tarjetarose",1,"titulo_menu",3,"click"],["src","../../../../assets/img/card-mujer-rose/img008.png"],["src","../../../../assets/img/creditos-recursos/IMG-MENU.png"],["routerLink","simulador-credito",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-creditos/creditos.png"],["routerLink","oscus-express",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-EXPRESS/LOGO-BOTON.png"],["routerLink","oscus-online",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-servicios/online.png"],["routerLink","capacioscus",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-servicios/LOGO-MENU.png"],["routerLink","servipago",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-servicios/servipagos.png"],["routerLink","red-medica",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-servicios/LOGO-red-medica.png"],["routerLink","1800-OSCUS",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-servicios/1800.png"],["routerLink","tarjetas",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/credito.png"],["routerLink","debito",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-tarjetas-menu/debito.png"],["routerLink","ofertas-tarjeta",1,"titulo_menu",3,"click"],["src","../../../../assets/img/WEB OFERTAS/ICONO-OFERTAS.png"],["routerLink","proveedores",1,"titulo_menu",3,"click"],["src","../../../../assets/img/BOTONES MENUS/ANUNCIOS-OSCUS.png"],["href","https://acceso.oscus.coop/auth/realms/Integraciones/protocol/openid-connect/auth?client_id=facturacion-electronica-consulta&redirect_uri=https%3A%2F%2Facceso.oscus.coop%2Ffe%2Fconsulta%2Fsignin-oidc&response_type=id_token&scope=openid%20profile&response_mode=form_post&nonce=638217524825043701.M2U1MzRmNTUtOTM3Yy00ODZhLTllMjItZmQ2MTJlNGY2MTRlMzE4Y2NlNTMtNDJlNS00OTUyLTliYjgtMjgwMWRiZmFmYTJh&state=CfDJ8BXkOPgi3qBKhhpJ_vcl6dISU5d8C2_9Hy-muplAhIHeYtcZKInWvYUpx5AKW81qmJkUOZ16jkuXJCLsOd80bsqhu9pZzDRrQiHkhkbKNMUY0-N-PQ_Tq1Rmbv0f5nukdrrK9gcug4iTr9oim_xPDhImYo-iCixU_cZp7RgHYVB2okA5BCHUw7D6HVv1mIl6cDMw7fKTfQpXf0H6A-oSxqm80J-2BKoJUsRlol6eOEQjoZVjrg0qAIepGgBMHkOJHr8coHfFLhMuaYOP3TpzO0L749vGH_IrlITYDd5w4rSEApxPceR6GUjPXoUS_ofZRoa77JByyym5-1TlQaKu_Gc&x-client-SKU=ID_NETSTANDARD2_0&x-client-ver=6.10.0.0","target","_blank",1,"titulo_menu",3,"click"],["src","../../../../assets/img/RECURSOS-SERVICIOS-DIGITALES/FACTURA-ELECTRONICA.png"],[1,"div_buttons_options_menu"],["routerLink","1800-OSCUS","data-toggle","modal","data-target","#quejasModal",1,"btn_buttons_options_menu","btn-outline-secondary",3,"click"],[1,"btn_buttons_options_menu","btn-outline-secondary",3,"routerLink","click"],[1,"btn_buttons_options_menu","btn-outline-secondary",3,"click"],["class","div_flag",4,"ngIf"],[1,"div_flag"],["alt","flag",1,"lang-flag",3,"src"],["class","div_flag-mobile",4,"ngIf"],[1,"div_flag-mobile"],[3,"src"],[1,"ml-3"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",5),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.TgZ(13,"button",5),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.TgZ(16,"div",6)(17,"button",7),e.NdJ("click",function(){return r.redirigirOnline()}),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.TgZ(20,"button",8),e.NdJ("click",function(){return r.redirigir()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"div",9)(24,"p-dropdown",10),e.NdJ("ngModelChange",function(v){return r.selectedLanguage=v})("onChange",function(){return r.onChange()}),e.YNc(25,lt,1,1,"ng-template",11),e.YNc(26,sn,4,2,"ng-template",12),e.qZA()()()()(),e.TgZ(27,"html",13)(28,"head"),e._UZ(29,"meta",14)(30,"meta",15)(31,"link",16),e.qZA(),e.TgZ(32,"body")(33,"nav",17)(34,"div",18)(35,"div",19),e._UZ(36,"img",20),e.qZA(),e._UZ(37,"input",21)(38,"input",22),e.TgZ(39,"ul",23)(40,"label",24),e._UZ(41,"i",25),e.qZA(),e.TgZ(42,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(43,"a",27),e._uU(44),e.ALo(45,"translate"),e.qZA(),e.TgZ(46,"input",28),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(47,"label",29),e._uU(48),e.ALo(49,"translate"),e.qZA(),e.TgZ(50,"div",30)(51,"div",31)(52,"div",32),e._UZ(53,"img",33),e.ALo(54,"translate"),e.qZA(),e.TgZ(55,"div",32)(56,"ul",34)(57,"div",35)(58,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(59,"a",37)(60,"div",38)(61,"p",39),e._uU(62),e.ALo(63,"translate"),e.qZA()(),e.TgZ(64,"div",40),e._UZ(65,"img",41),e.qZA(),e.TgZ(66,"div",42)(67,"div",43)(68,"p",44),e._uU(69),e.ALo(70,"translate"),e.qZA(),e.TgZ(71,"p",44),e._uU(72),e.ALo(73,"translate"),e.qZA()()()()(),e.TgZ(74,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(75,"a",45)(76,"div",38)(77,"p",39),e._uU(78),e.ALo(79,"translate"),e.qZA()(),e.TgZ(80,"div",40),e._UZ(81,"img",46),e.qZA(),e.TgZ(82,"div",42)(83,"div",43)(84,"p",44),e._uU(85),e.ALo(86,"translate"),e.qZA(),e.TgZ(87,"p",44),e._uU(88),e.ALo(89,"translate"),e.qZA()()()()(),e.TgZ(90,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(91,"a",47)(92,"div",38)(93,"p",39),e._uU(94),e.ALo(95,"translate"),e.qZA()(),e.TgZ(96,"div",40),e._UZ(97,"img",48),e.qZA(),e.TgZ(98,"div",42)(99,"div",43)(100,"p",44),e._uU(101),e.ALo(102,"translate"),e.qZA(),e.TgZ(103,"p",44),e._uU(104),e.ALo(105,"translate"),e.qZA()()()()()()()(),e.TgZ(106,"div",32)(107,"ul",34)(108,"div",35)(109,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(110,"a",49)(111,"div",38)(112,"p",39),e._uU(113),e.ALo(114,"translate"),e.qZA()(),e.TgZ(115,"div",40),e._UZ(116,"img",50),e.qZA(),e.TgZ(117,"div",42)(118,"div",43)(119,"p",44),e._uU(120),e.ALo(121,"translate"),e.qZA(),e.TgZ(122,"p",44),e._uU(123),e.ALo(124,"translate"),e.qZA()()()()(),e.TgZ(125,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(126,"a",51)(127,"div",38)(128,"p",39),e._uU(129),e.ALo(130,"translate"),e.qZA()(),e.TgZ(131,"div",40),e._UZ(132,"img",52),e.qZA(),e.TgZ(133,"div",42)(134,"div",43)(135,"p",44),e._uU(136),e.ALo(137,"translate"),e.qZA(),e.TgZ(138,"p",44),e._uU(139),e.ALo(140,"translate"),e.qZA(),e.TgZ(141,"p",44),e._uU(142),e.ALo(143,"translate"),e.qZA()()()()()()()(),e.TgZ(144,"div",32)(145,"ul",34)(146,"div",35)(147,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(148,"a",53)(149,"div",38)(150,"p",39),e._uU(151),e.ALo(152,"translate"),e.qZA()(),e.TgZ(153,"div",40),e._UZ(154,"img",54),e.qZA(),e.TgZ(155,"div",42)(156,"div",43)(157,"p",44),e._uU(158),e.ALo(159,"translate"),e.qZA()()()()(),e.TgZ(160,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(161,"a",55)(162,"div",38)(163,"p",39),e._uU(164),e.ALo(165,"translate"),e.qZA()(),e.TgZ(166,"div",40),e._UZ(167,"img",56),e.qZA(),e.TgZ(168,"div",42)(169,"div",43)(170,"p",44),e._uU(171),e.ALo(172,"translate"),e.qZA(),e.TgZ(173,"p",44),e._uU(174),e.ALo(175,"translate"),e.qZA(),e.TgZ(176,"p",44),e._uU(177),e.ALo(178,"translate"),e.qZA()()()()()()()()()()(),e.TgZ(179,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(180,"a",27),e._uU(181),e.ALo(182,"translate"),e.qZA(),e.TgZ(183,"input",57),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(184,"label",58),e._uU(185),e.ALo(186,"translate"),e.qZA(),e.TgZ(187,"div",30)(188,"div",31)(189,"div",32),e._UZ(190,"img",59),e.ALo(191,"translate"),e.qZA(),e.TgZ(192,"div",32)(193,"ul",34)(194,"div",35)(195,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(196,"a",60)(197,"div",38)(198,"p",39),e._uU(199),e.ALo(200,"translate"),e.qZA()(),e.TgZ(201,"div",40),e._UZ(202,"img",61),e.qZA(),e.TgZ(203,"div",42)(204,"div",43)(205,"p",44),e._uU(206),e.ALo(207,"translate"),e.qZA(),e.TgZ(208,"p",44),e._uU(209),e.ALo(210,"translate"),e.qZA()()()()(),e.TgZ(211,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(212,"a",62)(213,"div",38)(214,"p",39),e._uU(215),e.ALo(216,"translate"),e.qZA()(),e.TgZ(217,"div",40),e._UZ(218,"img",63),e.qZA(),e.TgZ(219,"div",42)(220,"div",43)(221,"p",44),e._uU(222),e.ALo(223,"translate"),e.qZA(),e.TgZ(224,"p",44),e._uU(225),e.ALo(226,"translate"),e.qZA()()()()(),e.TgZ(227,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(228,"a",64)(229,"div",38)(230,"p",39),e._uU(231),e.ALo(232,"translate"),e.qZA()(),e.TgZ(233,"div",40),e._UZ(234,"img",65),e.qZA(),e.TgZ(235,"div",42)(236,"div",43)(237,"p",44),e._uU(238),e.ALo(239,"translate"),e.qZA(),e.TgZ(240,"p",44),e._uU(241),e.ALo(242,"translate"),e.qZA()()()()(),e.TgZ(243,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(244,"a",66)(245,"div",38)(246,"p",39),e._uU(247),e.ALo(248,"translate"),e.qZA()(),e.TgZ(249,"div",40),e._UZ(250,"img",67),e.qZA(),e.TgZ(251,"div",42)(252,"div",43)(253,"p",44),e._uU(254),e.ALo(255,"translate"),e.qZA(),e.TgZ(256,"p",44),e._uU(257),e.ALo(258,"translate"),e.qZA(),e.TgZ(259,"p",44),e._uU(260),e.ALo(261,"translate"),e.qZA()()()()()()()(),e.TgZ(262,"div",32)(263,"ul",34)(264,"div",35)(265,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(266,"a",68)(267,"div",38)(268,"p",39),e._uU(269),e.ALo(270,"translate"),e.qZA()(),e.TgZ(271,"div",40),e._UZ(272,"img",69),e.qZA(),e.TgZ(273,"div",42)(274,"div",43)(275,"p",44),e._uU(276),e.ALo(277,"translate"),e.qZA(),e.TgZ(278,"p",44),e._uU(279),e.ALo(280,"translate"),e.qZA(),e.TgZ(281,"p",44),e._uU(282),e.ALo(283,"translate"),e.qZA()()()()(),e.TgZ(284,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(285,"a",70)(286,"div",38)(287,"p",39),e._uU(288),e.ALo(289,"translate"),e.qZA()(),e.TgZ(290,"div",40),e._UZ(291,"img",71),e.qZA(),e.TgZ(292,"div",42)(293,"div",43)(294,"p",44),e._uU(295),e.ALo(296,"translate"),e.qZA(),e.TgZ(297,"p",44),e._uU(298),e.ALo(299,"translate"),e.qZA()()()()(),e.TgZ(300,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(301,"a",72)(302,"div",38)(303,"p",39),e._uU(304),e.ALo(305,"translate"),e.qZA()(),e.TgZ(306,"div",40),e._UZ(307,"img",73),e.qZA(),e.TgZ(308,"div",42)(309,"div",43)(310,"p",44),e._uU(311),e.ALo(312,"translate"),e.qZA(),e.TgZ(313,"p",44),e._uU(314),e.ALo(315,"translate"),e.qZA(),e.TgZ(316,"p",44),e._uU(317),e.ALo(318,"translate"),e.qZA()()()()()()()(),e.TgZ(319,"div",32)(320,"ul",34)(321,"div",35)(322,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(323,"a",74)(324,"div",38)(325,"p",39),e._uU(326),e.ALo(327,"translate"),e.qZA()(),e.TgZ(328,"div",40),e._UZ(329,"img",75),e.qZA(),e.TgZ(330,"div",42)(331,"div",43)(332,"p",44),e._uU(333),e.ALo(334,"translate"),e.qZA(),e.TgZ(335,"p",44),e._uU(336),e.ALo(337,"translate"),e.qZA()()()()(),e.TgZ(338,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(339,"a",76)(340,"div",38)(341,"p",39),e._uU(342),e.ALo(343,"translate"),e.qZA()(),e.TgZ(344,"div",40),e._UZ(345,"img",77),e.qZA(),e.TgZ(346,"div",42)(347,"div",43)(348,"p",44),e._uU(349),e.ALo(350,"translate"),e.qZA(),e.TgZ(351,"p",44),e._uU(352),e.ALo(353,"translate"),e.qZA()()()()(),e.TgZ(354,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(355,"a",78)(356,"div",38)(357,"p",39),e._uU(358),e.ALo(359,"translate"),e.qZA()(),e.TgZ(360,"div",40),e._UZ(361,"img",79),e.qZA(),e.TgZ(362,"div",42)(363,"div",43)(364,"p",44),e._uU(365),e.ALo(366,"translate"),e.qZA(),e.TgZ(367,"p",44),e._uU(368),e.ALo(369,"translate"),e.qZA(),e.TgZ(370,"p",44),e._uU(371),e.ALo(372,"translate"),e.qZA()()()()()()()()()()(),e.TgZ(373,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(374,"a",27),e._uU(375),e.ALo(376,"translate"),e.qZA(),e.TgZ(377,"input",80),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(378,"label",81),e._uU(379),e.ALo(380,"translate"),e.qZA(),e.TgZ(381,"div",30)(382,"div",31)(383,"div",32),e._UZ(384,"img",33),e.ALo(385,"translate"),e.qZA(),e.TgZ(386,"div",32)(387,"ul",34)(388,"div",35)(389,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(390,"a",82)(391,"div",38)(392,"p",39),e._uU(393),e.ALo(394,"translate"),e.qZA()(),e.TgZ(395,"div",40),e._UZ(396,"img",83),e.qZA(),e.TgZ(397,"div",42)(398,"div",43)(399,"p",44),e._uU(400),e.ALo(401,"translate"),e.qZA()()()()(),e.TgZ(402,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(403,"a",84)(404,"div",38)(405,"p",39),e._uU(406),e.ALo(407,"translate"),e.qZA()(),e.TgZ(408,"div",40),e._UZ(409,"img",85),e.qZA(),e.TgZ(410,"div",42)(411,"div",43)(412,"p",44),e._uU(413),e.ALo(4
114,"translate"),e.qZA(),e.TgZ(415,"p",44),e._uU(416),e.ALo(417,"translate"),e.qZA()()()()()()()(),e.TgZ(418,"div",32)(419,"ul",34)(420,"div",35)(421,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(422,"a",86)(423,"div",38)(424,"p",39),e._uU(425),e.ALo(426,"translate"),e.qZA()(),e.TgZ(427,"div",40),e._UZ(428,"img",87),e.qZA(),e.TgZ(429,"div",42)(430,"div",43)(431,"p",44),e._uU(432),e.ALo(433,"translate"),e.qZA(),e.TgZ(434,"p",44),e._uU(435),e.ALo(436,"translate"),e.qZA()()()()(),e.TgZ(437,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(438,"a",88)(439,"div",38)(440,"p",39),e._uU(441),e.ALo(442,"translate"),e.qZA()(),e.TgZ(443,"div",40),e._UZ(444,"img",89),e.qZA(),e.TgZ(445,"div",42)(446,"div",43)(447,"p",44),e._uU(448),e.ALo(449,"translate"),e.qZA(),e.TgZ(450,"p",44),e._uU(451),e.ALo(452,"translate"),e.qZA()()()()()()()(),e.TgZ(453,"div",32)(454,"ul",34)(455,"div",35)(456,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(457,"a",90)(458,"div",38)(459,"p",39),e._uU(460),e.ALo(461,"translate"),e.qZA()(),e.TgZ(462,"div",40),e._UZ(463,"img",91),e.qZA(),e.TgZ(464,"div",42)(465,"div",43)(466,"p",44),e._uU(467),e.ALo(468,"translate"),e._UZ(469,"br"),e._uU(470),e.ALo(471,"translate"),e.qZA()()()()(),e.TgZ(472,"li",36),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(473,"a",86)(474,"div",38)(475,"p",39),e._uU(476),e.ALo(477,"translate"),e.qZA()(),e.TgZ(478,"div",40),e._UZ(479,"img",92),e.qZA(),e.TgZ(480,"div",42)(481,"div",43)(482,"p",44),e._uU(483),e.ALo(484,"translate"),e.qZA(),e.TgZ(485,"p",44),e._uU(486),e.ALo(487,"translate"),e.qZA()()()()()()()()()()(),e.TgZ(488,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(489,"a",27),e._uU(490),e.ALo(491,"translate"),e.qZA(),e.TgZ(492,"input",93),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(493,"label",94),e._uU(494),e.ALo(495,"translate"),e.qZA(),e.TgZ(496,"div",30)(497,"div",31)(498,"div",32),e._UZ(499,"img",59),e.ALo(500,"translate"),e.qZA(),e.TgZ(501,"div",32)(502,"ul",34)(503,"div",95)(504,"li",96),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(505,"a",97)(506,"div",98)(507,"div",99)(508,"div",100)(509,"h5",101),e._uU(510),e.ALo(511,"translate"),e.qZA()(),e.TgZ(512,"div",102),e._UZ(513,"img",103),e.qZA()(),e._UZ(514,"img",104),e.qZA()()()()()(),e.TgZ(515,"div",32)(516,"ul",34)(517,"div",35)(518,"li",105),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(519,"a",106)(520,"div",107)(521,"div",99)(522,"div",100)(523,"h5",101),e._uU(524),e.ALo(525,"translate"),e.qZA()(),e.TgZ(526,"div",102),e._UZ(527,"img",108),e.qZA()(),e._UZ(528,"img",109),e.qZA()()()()()(),e.TgZ(529,"div",32)(530,"ul",34)(531,"div",35)(532,"li",110),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(533,"a",111)(534,"div",112)(535,"div",99)(536,"div",100)(537,"h5",101),e._uU(538),e.ALo(539,"translate"),e._UZ(540,"br"),e._uU(541),e.ALo(542,"translate"),e.qZA()(),e.TgZ(543,"div",102),e._UZ(544,"img",113),e.qZA()(),e._UZ(545,"img",114),e.qZA()()()()()()()()(),e.TgZ(546,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(547,"a",27),e._uU(548),e.ALo(549,"translate"),e.qZA(),e.TgZ(550,"input",115),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(551,"label",116),e._uU(552),e.ALo(553,"translate"),e.qZA(),e.TgZ(554,"div",30)(555,"div",31)(556,"div",32),e._UZ(557,"img",59),e.ALo(558,"translate"),e.qZA(),e.TgZ(559,"div",32)(560,"ul",34)(561,"div",117)(562,"li",118),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(563,"a",119)(564,"div",38)(565,"p",39),e._uU(566),e.ALo(567,"translate"),e.qZA()(),e.TgZ(568,"div",40),e._UZ(569,"img",120),e.qZA(),e.TgZ(570,"div",42)(571,"div",43)(572,"p",44),e._uU(573),e.ALo(574,"translate"),e.qZA()()()()()()()(),e.TgZ(575,"div",32)(576,"ul",34)(577,"div",121)(578,"li",122),e.NdJ("click",function(){return r.cerrarMegaMenu()}),e.TgZ(579,"a",123)(580,"div",38)(581,"p",39),e._uU(582),e.ALo(583,"translate"),e.qZA()(),e.TgZ(584,"div",40),e._UZ(585,"img",124),e.qZA(),e.TgZ(586,"div",42)(587,"div",43)(588,"p",44),e._uU(589),e.ALo(590,"translate"),e.qZA()()()()()()()()()()(),e.TgZ(591,"li",26),e.NdJ("mouseenter",function(){return r.mostrarMegaMenuHover()})("mouseleave",function(){return r.cerrarMegaMenu()}),e.TgZ(592,"input",125),e.NdJ("ngModelChange",function(v){return r.mostrarMegaMenu=v}),e.qZA(),e.TgZ(593,"label",126)(594,"button",127),e.NdJ("click",function(){return r.hideMenu()}),e._uU(595),e.ALo(596,"translate"),e.qZA()(),e.TgZ(597,"label",128)(598,"button",129),e.NdJ("click",function(){return r.redirigir()})("click",function(){return r.hideMenu()}),e._uU(599),e.ALo(600,"translate"),e.qZA()(),e.TgZ(601,"label",128)(602,"button",8),e.NdJ("click",function(){return r.redirigirOnline()})("click",function(){return r.hideMenu()}),e._uU(603),e.ALo(604,"translate"),e.qZA()(),e.TgZ(605,"label",128),e._UZ(606,"div",130),e.qZA(),e.TgZ(607,"div",131)(608,"p-dropdown",132),e.NdJ("ngModelChange",function(v){return r.selectedLanguage=v})("onChange",function(){return r.onChange()}),e.YNc(609,ot,1,1,"ng-template",11),e.YNc(610,fe,5,4,"ng-template",12),e.qZA()()()(),e.TgZ(611,"label",133),e._UZ(612,"i",134),e.qZA()()(),e.TgZ(613,"div",135)(614,"header")(615,"div",19),e._UZ(616,"img",20),e.qZA(),e.TgZ(617,"input",136),e.NdJ("ngModelChange",function(v){return r.isMenuOpen=v}),e.qZA(),e.TgZ(618,"div",137)(619,"p-dropdown",132),e.NdJ("ngModelChange",function(v){return r.selectedLanguage=v})("onChange",function(){return r.onChange()}),e.YNc(620,Ye,1,1,"ng-template",11),e.YNc(621,it,5,4,"ng-template",12),e.qZA()(),e.TgZ(622,"label",138)(623,"div",139),e._UZ(624,"i",134),e.qZA()(),e.TgZ(625,"nav",140)(626,"ul")(627,"li")(628,"a",141),e._uU(629),e.ALo(630,"translate"),e.qZA(),e.TgZ(631,"ul")(632,"li")(633,"a",142),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(634,"div",32)(635,"div",143)(636,"p",144),e._uU(637),e.ALo(638,"translate"),e.qZA(),e.TgZ(639,"p",44),e._uU(640),e.ALo(641,"translate"),e.qZA(),e.TgZ(642,"p",44),e._uU(643),e.ALo(644,"translate"),e.qZA()(),e.TgZ(645,"div",145),e._UZ(646,"img",146),e.qZA()()()(),e.TgZ(647,"li")(648,"a",147),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(649,"div",32)(650,"div",143)(651,"p",144),e._uU(652),e.ALo(653,"translate"),e.qZA(),e.TgZ(654,"p",44),e._uU(655),e.ALo(656,"translate"),e.qZA(),e.TgZ(657,"p",44),e._uU(658),e.ALo(659,"translate"),e.qZA()(),e.TgZ(660,"div",145),e._UZ(661,"img",148),e.qZA()()()(),e.TgZ(662,"li")(663,"a",149),e.NdJ("click",function(){return r.closeMenu()}
1),e.TgZ(664,"div",32)(665,"div",143)(666,"p",144),e._uU(667),e.ALo(668,"translate"),e.qZA(),e.TgZ(669,"p",44),e._uU(670),e.ALo(671,"translate"),e.qZA(),e.TgZ(672,"p",44),e._uU(673),e.ALo(674,"translate"),e.qZA()(),e.TgZ(675,"div",145),e._UZ(676,"img",150),e.qZA()()()(),e.TgZ(677,"li")(678,"a",151),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(679,"div",32)(680,"div",143)(681,"p",144),e._uU(682),e.ALo(683,"translate"),e.qZA(),e.TgZ(684,"p",44),e._uU(685),e.ALo(686,"translate"),e.qZA(),e.TgZ(687,"p",44),e._uU(688),e.ALo(689,"translate"),e.qZA(),e.TgZ(690,"p",44),e._uU(691),e.ALo(692,"translate"),e.qZA()(),e.TgZ(693,"div",145),e._UZ(694,"img",152),e.qZA()()()(),e.TgZ(695,"li")(696,"a",153),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(697,"div",32)(698,"div",143)(699,"p",144),e._uU(700),e.ALo(701,"translate"),e.qZA(),e.TgZ(702,"p",44),e._uU(703),e.ALo(704,"translate"),e.qZA()(),e.TgZ(705,"div",145),e._UZ(706,"img",154),e.qZA()()()(),e.TgZ(707,"li")(708,"a",55)(709,"div",32)(710,"div",143)(711,"p",144),e._uU(712),e.ALo(713,"translate"),e.qZA(),e.TgZ(714,"p",44),e._uU(715),e.ALo(716,"translate"),e.qZA(),e.TgZ(717,"p",44),e._uU(718),e.ALo(719,"translate"),e.qZA(),e.TgZ(720,"p",44),e._uU(721),e.ALo(722,"translate"),e.qZA()(),e.TgZ(723,"div",145),e._UZ(724,"img",155),e.qZA()()()(),e.TgZ(725,"li")(726,"a",156),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(727,"div",32)(728,"div",143)(729,"p",144),e._uU(730),e.ALo(731,"translate"),e.qZA(),e.TgZ(732,"p",44),e._uU(733),e.ALo(734,"translate"),e.qZA(),e.TgZ(735,"p",44),e._uU(736),e.ALo(737,"translate"),e.qZA()(),e.TgZ(738,"div",145),e._UZ(739,"img",157),e.qZA()()()()()(),e.TgZ(740,"li")(741,"a",141),e._uU(742),e.ALo(743,"translate"),e.qZA(),e.TgZ(744,"ul")(745,"li")(746,"a",158),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(747,"div",32)(748,"div",143)(749,"p",144),e._uU(750),e.ALo(751,"translate"),e.qZA(),e.TgZ(752,"p",44),e._uU(753),e.ALo(754,"translate"),e.qZA(),e.TgZ(755,"p",44),e._uU(756),e.ALo(757,"translate"),e.qZA()(),e.TgZ(758,"div",145),e._UZ(759,"img",159),e.qZA()()()(),e.TgZ(760,"li")(761,"a",160),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(762,"div",32)(763,"div",143)(764,"p",144),e._uU(765),e.ALo(766,"translate"),e.qZA(),e.TgZ(767,"p",44),e._uU(768),e.ALo(769,"translate"),e.qZA(),e.TgZ(770,"p",44),e._uU(771),e.ALo(772,"translate"),e.qZA()(),e.TgZ(773,"div",145),e._UZ(774,"img",161),e.qZA()()()(),e.TgZ(775,"li")(776,"a",162),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(777,"div",32)(778,"div",143)(779,"p",144),e._uU(780),e.ALo(781,"translate"),e.qZA(),e.TgZ(782,"p",44),e._uU(783),e.ALo(784,"translate"),e.qZA(),e.TgZ(785,"p",44),e._uU(786),e.ALo(787,"translate"),e.qZA()(),e.TgZ(788,"div",145),e._UZ(789,"img",163),e.qZA()()()(),e.TgZ(790,"li")(791,"a",164),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(792,"div",32)(793,"div",143)(794,"p",144),e._uU(795),e.ALo(796,"translate"),e.qZA(),e.TgZ(797,"p",44),e._uU(798),e.ALo(799,"translate"),e.qZA(),e.TgZ(800,"p",44),e._uU(801),e.ALo(802,"translate"),e.qZA(),e.TgZ(803,"p",44),e._uU(804),e.ALo(805,"translate"),e.qZA()(),e.TgZ(806,"div",145),e._UZ(807,"img",165),e.qZA()()()(),e.TgZ(808,"li")(809,"a",166),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(810,"div",32)(811,"div",143)(812,"p",144),e._uU(813),e.ALo(814,"translate"),e.qZA(),e.TgZ(815,"p",44),e._uU(816),e.ALo(817,"translate"),e.qZA(),e.TgZ(818,"p",44),e._uU(819),e.ALo(820,"translate"),e.qZA(),e.TgZ(821,"p",44),e._uU(822),e.ALo(823,"translate"),e.qZA()(),e.TgZ(824,"div",145),e._UZ(825,"img",167),e.qZA()()()(),e.TgZ(826,"li")(827,"a",168),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(828,"div",32)(829,"div",143)(830,"p",144),e._uU(831),e.ALo(832,"translate"),e.qZA(),e.TgZ(833,"p",44),e._uU(834),e.ALo(835,"translate"),e.qZA(),e.TgZ(836,"p",44),e._uU(837),e.ALo(838,"translate"),e.qZA(),e.TgZ(839,"p",44),e._uU(840),e.ALo(841,"translate"),e.qZA()(),e.TgZ(842,"div",145),e._UZ(843,"img",169),e.qZA()()()(),e.TgZ(844,"li")(845,"a",170),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(846,"div",32)(847,"div",143)(848,"p",144),e._uU(849),e.ALo(850,"translate"),e.qZA(),e.TgZ(851,"p",44),e._uU(852),e.ALo(853,"translate"),e.qZA(),e.TgZ(854,"p",44),e._uU(855),e.ALo(856,"translate"),e.qZA()(),e.TgZ(857,"div",145),e._UZ(858,"img",171),e.qZA()()()(),e.TgZ(859,"li")(860,"a",172),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(861,"div",32)(862,"div",143)(863,"p",144),e._uU(864),e.ALo(865,"translate"),e.qZA(),e.TgZ(866,"p",44),e._uU(867),e.ALo(868,"translate"),e.qZA(),e.TgZ(869,"p",44),e._uU(870),e.ALo(871,"translate"),e.qZA()(),e.TgZ(872,"div",145),e._UZ(873,"img",173),e.qZA()()()(),e.TgZ(874,"li")(875,"a",174),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(876,"div",32)(877,"div",143)(878,"p",39),e._uU(879),e.ALo(880,"translate"),e.qZA(),e.TgZ(881,"p",44),e._uU(882),e.ALo(883,"translate"),e.qZA(),e.TgZ(884,"p",44),e._uU(885),e.ALo(886,"translate"),e.qZA(),e.TgZ(887,"p",44),e._uU(888),e.ALo(889,"translate"),e.qZA()(),e.TgZ(890,"div",145),e._UZ(891,"img",175),e.qZA()()()(),e.TgZ(892,"li")(893,"a",164),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(894,"div",32)(895,"div",143)(896,"p",144),e._uU(897),e.ALo(898,"translate"),e.qZA(),e.TgZ(899,"p",44),e._uU(900),e.ALo(901,"translate"),e.ALo(902,"translate"),e.qZA(),e._UZ(903,"p",44),e.qZA(),e.TgZ(904,"div",145),e._UZ(905,"img",176),e.qZA()()()(),e.TgZ(906,"li")(907,"a",177),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(908,"div",32)(909,"div",143)(910,"p",144),e._uU(911),e.ALo(912,"translate"),e.qZA(),e.TgZ(913,"p",44),e._uU(914),e.ALo(915,"translate"),e.qZA(),e.TgZ(916,"p",44),e._uU(917),e.ALo(918,"translate"),e.qZA()(),e.TgZ(919,"div",145),e._UZ(920,"img",178),e.qZA()()()()()(),e.TgZ(921,"li")(922,"a",141),e._uU(923),e.ALo(924,"translate"),e.qZA(),e.TgZ(925,"ul")(926,"li")(927,"a",179),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(928,"div",32)(929,"div",143)(930,"p",144),e._uU(931),e.ALo(932,"translate"),e.qZA(),e.TgZ(933,"p",44),e._uU(934),e.ALo(935,"translate"),e.qZA()(),e.TgZ(936,"div",145),e._UZ(937,"img",180),e.qZA()()()(),e.TgZ(938,"li")(939,"a",181),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(940,"div",32)(941,"div",143)(942,"p",144),e._uU(943),e.ALo(944,"translate"),e.qZA(),e.TgZ(945,"p",44),e._uU(946),e.ALo(947,"translate"),e.qZA(),e.TgZ(948,"p",44),e._uU(949),e.ALo(950,"translate"),e.qZA()(),e.TgZ(951,"div",145),e._UZ(952,"img",182),e.qZA()()()(),e.TgZ(953,"li")(954,"a",183),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(955,"div",32)(956,"div",143)(957,"p",144),e._uU(958),e.ALo(959,"translate"),e.qZA(),e.TgZ(960,"p",44),e._uU(961),e.ALo(962,"translate"),e.qZA(),e.TgZ(963,"p",44),e._uU(964),e.ALo(965,"translate"),e.qZA()(),e.TgZ(966,"div",145),e._UZ(967,"img",184),e.qZA()()()(),e.TgZ(968,"li")(969,"a",185),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(970,"div",32)(971,"div",143)(972,"p",144),e._uU(973),e.ALo(974,"translate"),e.qZA(),e.TgZ(975,"p",44),e._uU(976),e.ALo(977,"translate"),e.qZA(),e.TgZ(978,"p",44),e._uU(979),e.ALo(980,"translate"),e.qZA()(),e.TgZ(981,"div",145),e._UZ(982,"img",186),e.qZA()()()(),e.TgZ(983,"li")(984,"a",187),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(985,"div",32)(986,"div",143)(987,"p",144),e._uU(988),e.ALo(989,"translate"),e.qZA(),e.TgZ(990,"p",44),e._uU(991),e.ALo(992,"translate"),e._UZ(993,"br"),e._uU(994),e.ALo(995,"translate"),e.qZA()(),e.TgZ(996,"div",145),e._UZ(997,"img",188),e.qZA()()()(),e.TgZ(998,"li")(999,"a",189),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(1e3,"div",32)(1001,"div",143)(1002,"p",144),e._uU(1003),e.ALo(1004,"translate"),e.qZA(),e.TgZ(1005,"p",44),e._uU(1006),e.ALo(1007,"translate"),e.qZA(),e.TgZ(1008,"p",44),e._uU(1009),e.ALo(1010,"translate"),e.qZA()(),e.TgZ(1011,"div",145),e._UZ(1012,"img",190),e.qZA()()()()()(),e.TgZ(1013,"li")(1014,"a",141),e._uU(1015),e.ALo(1016,"translate"),e.qZA(),e.TgZ(1017,"ul")(1018,"li")(1019,"a",191),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(1020,"div",32)(1021,"div",143)(1022,"h5",101),e._uU(1023),e.ALo(1024,"translate"),e.qZA()(),e.TgZ(1025,"div",145),e._UZ(1026,"img",192),e.qZA()()()(),e.TgZ(1027,"li")(1028,"a",193),e.NdJ("click",function(){return r.closeMenu()}
1),e.TgZ(1029,"div",32)(1030,"div",143)(1031,"h5",101),e._uU(1032),e.ALo(1033,"translate"),e.qZA()(),e.TgZ(1034,"div",145),e._UZ(1035,"img",194),e.qZA()()()(),e.TgZ(1036,"li")(1037,"a",195),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(1038,"div",32)(1039,"div",143)(1040,"h5",101),e._uU(1041),e.ALo(1042,"translate"),e._UZ(1043,"br"),e._uU(1044),e.ALo(1045,"translate"),e.qZA()(),e.TgZ(1046,"div",145),e._UZ(1047,"img",196),e.qZA()()()()()(),e.TgZ(1048,"li")(1049,"a",141),e._uU(1050),e.ALo(1051,"translate"),e.qZA(),e.TgZ(1052,"ul")(1053,"li")(1054,"a",197),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(1055,"div",32)(1056,"div",143)(1057,"p",144),e._uU(1058),e.ALo(1059,"translate"),e.qZA(),e.TgZ(1060,"p",44),e._uU(1061),e.ALo(1062,"translate"),e._UZ(1063,"br"),e._uU(1064),e.ALo(1065,"translate"),e.qZA()(),e.TgZ(1066,"div",145),e._UZ(1067,"img",198),e.qZA()()()(),e.TgZ(1068,"li")(1069,"a",199),e.NdJ("click",function(){return r.closeMenu()}),e.TgZ(1070,"div",32)(1071,"div",143)(1072,"p",144),e._uU(1073),e.ALo(1074,"translate"),e.qZA(),e.TgZ(1075,"p",44),e._uU(1076),e.ALo(1077,"translate"),e._UZ(1078,"br"),e._uU(1079),e.ALo(1080,"translate"),e.qZA()(),e.TgZ(1081,"div",145),e._UZ(1082,"img",200),e.qZA()()()()()(),e.TgZ(1083,"li")(1084,"div",201)(1085,"button",202),e.NdJ("click",function(){return r.hideMenu()}),e._uU(1086),e.ALo(1087,"translate"),e.qZA()()(),e.TgZ(1088,"li")(1089,"div",201)(1090,"button",203),e.NdJ("click",function(){return r.closeMenu()}),e._uU(1091),e.ALo(1092,"translate"),e.qZA()()(),e.TgZ(1093,"li")(1094,"div",201)(1095,"button",203),e.NdJ("click",function(){return r.closeMenu()}),e._uU(1096),e.ALo(1097,"translate"),e.qZA()()(),e.TgZ(1098,"li")(1099,"div",201)(1100,"button",203),e.NdJ("click",function(){return r.closeMenu()}),e._uU(1101),e.ALo(1102,"translate"),e.qZA()()(),e.TgZ(1103,"li")(1104,"div",201)(1105,"button",204),e.NdJ("click",function(){return r.redirigir()})("click",function(){return r.hideMenu()}),e._uU(1106),e.ALo(1107,"translate"),e.qZA()()(),e.TgZ(1108,"li")(1109,"div",201)(1110,"button",204),e.NdJ("click",function(){return r.redirigirOnline()})("click",function(){return r.hideMenu()}),e._uU(1111),e.ALo(1112,"translate"),e.qZA()()()()()()()()()()),2&n&&(e.xp6(5),e.hij(" ",e.lcZ(6,233,"MENU-1")," "),e.xp6(2),e.Q6J("routerLink","educacion-financiera"),e.xp6(1),e.hij(" ",e.lcZ(9,235,"MENU-2.0")," "),e.xp6(2),e.Q6J("routerLink","remates"),e.xp6(1),e.hij(" ",e.lcZ(12,237,"MENU-2.0.1")," "),e.xp6(2),e.Q6J("routerLink","capacioscus"),e.xp6(1),e.hij(" ",e.lcZ(15,239,"MENU-26")," "),e.xp6(4),e.hij(" ",e.lcZ(19,241,"MENU-3")," "),e.xp6(3),e.hij(" ",e.lcZ(22,243,"MENU-2")," "),e.xp6(3),e.Q6J("options",r.languages)("ngModel",r.selectedLanguage),e.xp6(14),e.Q6J("checked",r.isNavOpen),e.xp6(6),e.hij(" ",e.lcZ(45,245,"MENU-3-1"),""),e.xp6(2),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(2),e.Oqu(e.lcZ(49,247,"MENU-3-1")),e.xp6(2),e.Q6J("hidden",!r.mostrarMegaMenu),e.xp6(3),e.s9C("src",e.lcZ(54,249,"URL4"),e.LSH),e.xp6(9),e.Oqu(e.lcZ(63,251,"H-AHORRO-VISTA-T")),e.xp6(7),e.Oqu(e.l
1cZ(70,253,"H-AHORRO-VISTA-")),e.xp6(3),e.Oqu(e.lcZ(73,255,"H-AHORRO-VISTA-1")),e.xp6(6),e.Oqu(e.lcZ(79,257,"H-AHORRO-MAS-T")),e.xp6(7),e.hij("",e.lcZ(86,259,"H-AHORRO-MAS-")," "),e.xp6(3),e.Oqu(e.lcZ(89,261,"H-AHORRO-MAS-1")),e.xp6(6),e.Oqu(e.lcZ(95,263,"MENU-43")),e.xp6(7),e.hij("",e.lcZ(102,265,"MENU-43-1")," "),e.xp6(3),e.hij("",e.lcZ(105,267,"MENU-43-2")," "),e.xp6(9),e.Oqu(e.lcZ(114,269,"H-MINICOP-T")),e.xp6(7),e.Oqu(e.lcZ(121,271,"H-MINICOP-")),e.xp6(3),e.Oqu(e.lcZ(124,273,"H-MINICOP-1")),e.xp6(6),e.Oqu(e.lcZ(130,275,"H-AHORDOR-T")),e.xp6(7),e.Oqu(e.lcZ(137,277,"H-AHORDOR-")),e.xp6(3),e.hij("",e.lcZ(140,279,"H-AHORDOR-1")," "),e.xp6(3),e.hij("",e.lcZ(143,281,"H-AHORDOR-2")," "),e.xp6(9),e.Oqu(e.lcZ(152,283,"H-NEWEC-T")),e.xp6(7),e.hij("",e.lcZ(159,285,"H-NEWEC-")," "),e.xp6(6),e.Oqu(e.lcZ(165,287,"H-INVP-T")),e.xp6(7),e.Oqu(e.lcZ(172,289,"H-INVP-")),e.xp6(3),e.hij(" ",e.lcZ(175,291,"H-INVP-1"),""),e.xp6(3),e.hij(" ",e.lcZ(178,293,"H-INVP-2"),""),e.xp6(4),e.Oqu(e.lcZ(182,295,"MENU-3-2")),e.xp6(2),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(2),e.Oqu(e.lcZ(186,297,"MENU-3-2")),e.xp6(2),e.Q6J("hidden",!r.mostrarMegaMenu),e.xp6(3),e.s9C("src",e.lcZ(191,299,"URL5"),e.LSH),e.xp6(9),e.Oqu(e.lcZ(200,301,"MENU-4")),e.xp6(7),e.hij("",e.lcZ(207,303,"MENU-5")," "),e.xp6(3),e.Oqu(e.lcZ(210,305,"MENU-5-1")),e.xp6(6),e.Oqu(e.lcZ(216,307,"MENU-6")),e.xp6(7),e.hij("",e.lcZ(223,309,"MENU-7")," "),e.xp6(3),e.Oqu(e.lcZ(226,311,"MENU-7-1")),e.xp6(6),e.hij("",e.lcZ(232,313,"MENU-20")," "),e.xp6(7),e.hij("",e.lcZ(239,315,"MENU-21")," "),e.xp6(3),e.hij("",e.lcZ(242,317,"MENU-21-1")," "),e.xp6(6),e.hij("",e.lcZ(248,319,"MENU-20-1")," "),e.xp6(7),e.hij("",e.lcZ(255,321,"MENU-20-1-1")," "),e.xp6(3),e.hij("",e.lcZ(258,323,"MENU-20-1-2")," "),e.xp6(3),e.hij("",e.lcZ(261,325,"MENU-20-1-3")," "),e.xp6(9),e.Oqu(e.lcZ(270,327,"MENU-12")),e.xp6(7),e.hij("",e.lcZ(277,329,"MENU-13")," "),e.xp6(3),e.hij("",e.lcZ(280,331,"MENU-13-1")," "),e.xp6(3),e.Oqu(e.lcZ(283,333,"MENU-13-2")),e.xp6(6),e.Oqu(e.lcZ(289,335,"MENU-42")),e.xp6(7),e.hij("",e.lcZ(296,337,"MENU-42-1")," "),e.xp6(3),e.hij("",e.lcZ(299,339,"MENU-42-2")," "),e.xp6(6),e.hij("",e.lcZ(305,341,"MENU-14")," "),e.xp6(7),e.hij("",e.lcZ(312,343,"MENU-15")," "),e.xp6(3),e.hij("",e.lcZ(315,345,"MENU-15-1")," "),e.xp6(3),e.Oqu(e.lcZ(318,347,"MENU-15-2")),e.xp6(9),e.hij("",e.lcZ(327,349,"MENU-16")," "),e.xp6(7),e.hij("",e.lcZ(334,351,"MENU-17")," "),e.xp6(3),e.hij("",e.lcZ(337,353,"MENU-17-1")," "),e.xp6(6),e.Oqu(e.lcZ(343,355,"MENU-18")),e.xp6(7),e.hij("",e.lcZ(350,357,"MENU-19")," "),e.xp6(3),e.hij("",e.lcZ(353,359,"MENU-19-1")," "),e.xp6(6),e.Oqu(e.lcZ(359,361,"MENU-MR-1")),e.xp6(7),e.hij("",e.lcZ(366,363,"MENU-MR-1-1")," "),e.xp6(3),e.hij("",e.lcZ(369,365,"MENU-MR-1-2")," "),e.xp6(3),e.hij("",e.lcZ(372,367,"MENU-MR-1-3")," "),e.xp6(4),e.Oqu(e.lcZ(376,369,"MENU-3-3")),e.xp6(2),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(2),e.Oqu(e.lcZ(380,371,"MENU-3-3")),e.xp6(2),e.Q6J("hidden",!r.mostrarMegaMenu),e.xp6(3),e.s9C("src",e.lcZ(385,373,"URL6"),e.LSH),e.xp6(9),e.hij(" ",e.lcZ(394,375,"MENU-22"),""),e.xp6(7),e.hij("",e.lcZ(401,377,"MENU-23")," "),e.xp6(6),e.Oqu(e.lcZ(407,379,"MENU-24")),e.xp6(7),e.Oqu(e.l
1cZ(414,381,"MENU-25")),e.xp6(3),e.Oqu(e.lcZ(417,383,"MENU-25-1")),e.xp6(6),e.Q6J("routerLink","capacioscus"),e.xp6(3),e.Oqu(e.lcZ(426,385,"MENU-26")),e.xp6(7),e.hij("",e.lcZ(433,387,"MENU-27")," "),e.xp6(3),e.hij("",e.lcZ(436,389,"MENU-27-1")," "),e.xp6(6),e.Oqu(e.lcZ(442,391,"MENU-28")),e.xp6(7),e.hij("",e.lcZ(449,393,"MENU-29")," "),e.xp6(3),e.hij("",e.lcZ(452,395,"MENU-29-1")," "),e.xp6(9),e.Oqu(e.lcZ(461,397,"MENU-30")),e.xp6(7),e.Oqu(e.lcZ(468,399,"MENU-31")),e.xp6(3),e.hij(" ",e.lcZ(471,401,"MENU-31-1"),""),e.xp6(3),e.Q6J("routerLink","1800-OSCUS"),e.xp6(3),e.Oqu(e.lcZ(477,403,"MENU-32")),e.xp6(7),e.hij("",e.lcZ(484,405,"MENU-33")," "),e.xp6(3),e.Oqu(e.lcZ(487,407,"MENU-33-1")),e.xp6(4),e.Oqu(e.lcZ(491,409,"MENU-3-4")),e.xp6(2),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(2),e.Oqu(e.lcZ(495,411,"MENU-3-4")),e.xp6(2),e.Q6J("hidden",!r.mostrarMegaMenu),e.xp6(3),e.s9C("src",e.lcZ(500,413,"URL7"),e.LSH),e.xp6(11),e.Oqu(e.lcZ(511,415,"MENU-50")),e.xp6(14),e.Oqu(e.lcZ(525,417,"MENU-51")),e.xp6(14),e.hij("",e.lcZ(539,419,"MENU-52")," "),e.xp6(3),e.hij(" ",e.lcZ(542,421,"MENU-52.1")," "),e.xp6(7),e.Oqu(e.l
1cZ(549,423,"MENU-3-5")),e.xp6(2),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(2),e.Oqu(e.lcZ(553,425,"MENU-3-5")),e.xp6(2),e.Q6J("hidden",!r.mostrarMegaMenu),e.xp6(3),e.s9C("src",e.lcZ(558,427,"URL8"),e.LSH),e.xp6(9),e.Oqu(e.lcZ(567,429,"MENU-34")),e.xp6(7),e.Oqu(e.lcZ(574,431,"MENU-35")),e.xp6(9),e.Oqu(e.lcZ(583,433,"MENU-38")),e.xp6(7),e.Oqu(e.lcZ(590,435,"MENU-39")),e.xp6(3),e.Q6J("ngModel",r.mostrarMegaMenu),e.xp6(3),e.Oqu(e.lcZ(596,437,"MENU-1")),e.xp6(4),e.Oqu(e.lcZ(600,439,"MENU-2")),e.xp6(4),e.hij(" ",e.lcZ(604,441,"MENU-3"),""),e.xp6(5),e.Akn(e.DdM(637,ze)),e.Q6J("options",r.languages)("ngModel",r.selectedLanguage)("showClear",!0),e.xp6(9),e.Q6J("ngModel",r.isMenuOpen),e.xp6(2),e.Q6J("options",r.languages)("ngModel",r.selectedLanguage)("showClear",!0),e.xp6(10),e.hij(" ",e.lcZ(630,443,"MENU-3-1"),""),e.xp6(8),e.Oqu(e.lcZ(638,445,"H-AHORRO-VISTA-T")),e.xp6(3),e.Oqu(e.lcZ(641,447,"H-AHORRO-VISTA-")),e.xp6(3),e.Oqu(e.lcZ(644,449,"H-AHORRO-VISTA-1")),e.xp6(9),e.Oqu(e.lcZ(653,451,"H-AHORRO-MAS-T")),e.xp6(3),e.hij("",e.lcZ(656,453,"H-AHORRO-MAS-")," "),e.xp6(3),e.Oqu(e.lcZ(659,455,"H-AHORRO-MAS-1")),e.xp6(9),e.Oqu(e.lcZ(668,457,"H-MINICOP-T")),e.xp6(3),e.Oqu(e.lcZ(671,459,"H-MINICOP-")),e.xp6(3),e.Oqu(e.lcZ(674,461,"H-MINICOP-1")),e.xp6(9),e.Oqu(e.lcZ(683,463,"H-AHORDOR-T")),e.xp6(3),e.Oqu(e.lcZ(686,465,"H-AHORDOR-")),e.xp6(3),e.hij("",e.lcZ(689,467,"H-AHORDOR-1")," "),e.xp6(3),e.hij("",e.lcZ(692,469,"H-AHORDOR-2")," "),e.xp6(9),e.Oqu(e.lcZ(701,471,"H-NEWEC-T")),e.xp6(3),e.hij("",e.lcZ(704,473,"H-NEWEC-")," "),e.xp6(9),e.Oqu(e.lcZ(713,475,"H-INVP-T")),e.xp6(3),e.Oqu(e.lcZ(716,477,"H-INVP-")),e.xp6(3),e.hij(" ",e.lcZ(719,479,"H-INVP-1"),""),e.xp6(3),e.hij(" ",e.lcZ(722,481,"H-INVP-2"),""),e.xp6(9),e.Oqu(e.lcZ(731,483,"MENU-43")),e.xp6(3),e.hij("",e.lcZ(734,485,"MENU-43-1")," "),e.xp6(3),e.hij("",e.lcZ(737,487,"MENU-43-2")," "),e.xp6(6),e.Oqu(e.lcZ(743,489,"MENU-3-2")),e.xp6(8),e.Oqu(e.lcZ(751,491,"MENU-4")),e.xp6(3),e.hij("",e.lcZ(754,493,"MENU-5")," "),e.xp6(3),e.Oqu(e.lcZ(757,495,"MENU-5-1")),e.xp6(9),e.Oqu(e.lcZ(766,497,"MENU-6")),e.xp6(3),e.hij("",e.lcZ(769,499,"MENU-7")," "),e.xp6(3),e.Oqu(e.lcZ(772,501,"MENU-7-1")),e.xp6(9),e.hij("",e.lcZ(781,503,"MENU-20")," "),e.xp6(3),e.hij("",e.lcZ(784,505,"MENU-21")," "),e.xp6(3),e.hij("",e.lcZ(787,507,"MENU-21-1")," "),e.xp6(9),e.hij("",e.lcZ(796,509,"MENU-20-1")," "),e.xp6(3),e.hij("",e.lcZ(799,511,"MENU-20-1-1")," "),e.xp6(3),e.hij("",e.lcZ(802,513,"MENU-20-1-2")," "),e.xp6(3),e.hij("",e.lcZ(805,515,"MENU-20-1-3")," "),e.xp6(9),e.Oqu(e.lcZ(814,517,"MENU-10")),e.xp6(3),e.Oqu(e.lcZ(817,519,"MENU-11")),e.xp6(3),e.Oqu(e.lcZ(820,521,"MENU-11-1")),e.xp6(3),e.Oqu(e.lcZ(823,523,"MENU-11-2")),e.xp6(9),e.Oqu(e.lcZ(832,525,"MENU-12")),e.xp6(3),e.hij("",e.lcZ(835,527,"MENU-13")," "),e.xp6(3),e.hij("",e.lcZ(838,529,"MENU-13-1")," "),e.xp6(3),e.Oqu(e.lcZ(841,531,"MENU-13-2")),e.xp6(9),e.hij("",e.lcZ(850,533,"MENU-16")," "),e.xp6(3),e.hij("",e.lcZ(853,535,"MENU-17")," "),e.xp6(3),e.hij("",e.lcZ(856,537,"MENU-17-1")," "),e.xp6(9),e.Oqu(e.lcZ(865,539,"MENU-18")),e.xp6(3),e.hij("",e.lcZ(868,541,"MENU-19")," "),e.xp6(3),e.hij("",e.lcZ(871,543,"MENU-19-1")," "),e.xp6(9),e.Oqu(e.lcZ(880,545,"MENU-MR-1")),e.xp6(3),e.hij("",e.lcZ(883,547,"MENU-MR-1-1")," "),e.xp6(3),e.hij("",e.lcZ(886,549,"MENU-MR-1-2")," "),e.xp6(3),e.hij("",e.lcZ(889,551,"MENU-MR-1-3")," "),e.xp6(9),e.Oqu(e.lcZ(898,553,"MENU-4-V")),e.xp6(3),e.AsE("",e.lcZ(901,555,"MENU-5-V")," ",e.lcZ(902,557,"MENU-5-V-1"),""),e.xp6(11),e.Oqu(e.lcZ(912,559,"MENU-42")),e.xp6(3),e.hij("",e.lcZ(915,561,"MENU-42-1")," "),e.xp6(3),e.hij("",e.lcZ(918,563,"MENU-42-2")," "),e.xp6(6),e.Oqu(e.lcZ(924,565,"MENU-3-3")),e.xp6(8),e.hij(" ",e.lcZ(932,567,"MENU-22"),""),e.xp6(3),e.hij("",e.lcZ(935,569,"MENU-23")," "),e.xp6(9),e.hij(" ",e.lcZ(944,571,"MENU-24"),""),e.xp6(3),e.Oqu(e.lcZ(947,573,"MENU-25")),e.xp6(3),e.Oqu(e.lcZ(950,575,"MENU-25-1")),e.xp6(9),e.hij(" ",e.lcZ(959,577,"MENU-26"),""),e.xp6(3),e.Oqu(e.lcZ(962,579,"MENU-27")),e.xp6(3),e.Oqu(e.lcZ(965,581,"MENU-27-1")),e.xp6(9),e.hij(" ",e.lcZ(974,583,"MENU-28"),""),e.xp6(3),e.hij("",e.lcZ(977,585,"MENU-29")," "),e.xp6(3),e.hij("",e.lcZ(980,587,"MENU-29-1")," "),e.xp6(9),e.hij(" ",e.lcZ(989,589,"MENU-30"),""),e.xp6(3),e.Oqu(e.l
1cZ(992,591,"MENU-31")),e.xp6(3),e.hij(" ",e.lcZ(995,593,"MENU-31-1"),""),e.xp6(9),e.hij(" ",e.lcZ(1004,595,"MENU-32"),""),e.xp6(3),e.hij("",e.lcZ(1007,597,"MENU-33")," "),e.xp6(3),e.Oqu(e.lcZ(1010,599,"MENU-33-1")),e.xp6(6),e.Oqu(e.lcZ(1016,601,"MENU-3-4")),e.xp6(8),e.Oqu(e.lcZ(1024,603,"MENU-50")),e.xp6(9),e.Oqu(e.lcZ(1033,605,"MENU-51")),e.xp6(9),e.hij("",e.lcZ(1042,607,"MENU-52")," "),e.xp6(3),e.hij(" ",e.lcZ(1045,609,"MENU-52.1"),""),e.xp6(6),e.Oqu(e.lcZ(1051,611,"MENU-3-5")),e.xp6(8),e.hij(" ",e.lcZ(1059,613,"MENU-36"),""),e.xp6(3),e.hij("",e.lcZ(1062,615,"MENU-37")," "),e.xp6(3),e.hij(" ",e.lcZ(1065,617,"MENU-23-1")," "),e.xp6(9),e.hij(" ",e.lcZ(1074,619,"MENU-38"),""),e.xp6(3),e.hij("",e.lcZ(1077,621,"MENU-39")," "),e.xp6(3),e.hij(" ",e.lcZ(1080,623,"MENU-23-1")," "),e.xp6(7),e.Oqu(e.lcZ(1087,625,"MENU-1")),e.xp6(4),e.Q6J("routerLink","educacion-financiera"),e.xp6(1),e.Oqu(e.lcZ(1092,627,"MENU-2.0")),e.xp6(4),e.Q6J("routerLink","remates"),e.xp6(1),e.Oqu(e.lcZ(1097,629,"MENU-2.0.1")),e.xp6(4),e.Q6J("routerLink","capacioscus"),e.xp6(1),e.Oqu(e.lcZ(1102,631,"MENU-26")),e.xp6(5),e.Oqu(e.l
1cZ(1107,633,"MENU-2")),e.xp6(5),e.hij(" ",e.lcZ(1112,635,"MENU-3"),""))},dependencies:[z.O5,me.rH,me.yS,x.Wl,x.JJ,x.On,Mt.Lt,We.jx,ve.X$],styles:[xt,xt]}),c})(),zt=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-main"]],decls:3,vars:0,template:function(n,r){1&n&&e._UZ(0,"app-navbar")(1,"router-outlet")(2,"app-footer")},dependencies:[me.lC,G,mt]}),c})();function pn(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.closeSidebar())}),e.qZA()}}function $t(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li")(2,"a",13),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(3,"i",14),e._UZ(4,"img",15),e.qZA(),e.TgZ(5,"span",16),e._uU(6,"Contratos de Adhesi\xf3n"),e.qZA()()(),e.TgZ(7,"li")(8,"a",17),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(9,"i",18),e._UZ(10,"img",15),e.qZA(),e.TgZ(11,"span",16),e._uU(12,"Balances"),e.qZA()()(),e.TgZ(13,"li")(14,"a",19),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(15,"i",18),e._UZ(16,"img",15),e.qZA(),e.TgZ(17,"span",16),e._uU(18,"\xcdndices Financieros"),e.qZA()()(),e.TgZ(19,"li")(20,"a",20),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(21,"i",18),e._UZ(22,"img",15),e.qZA(),e.TgZ(23,"span",16),e._uU(24,"Estado de Resultados"),e.qZA()()(),e.TgZ(25,"li")(26,"a",21),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(27,"i",18),e._UZ(28,"img",15),e.qZA(),e.TgZ(29,"span",16),e._uU(30,"Calificaci\xf3n Activo de Riesgos"),e.qZA()()(),e.TgZ(31,"li")(32,"a",22),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(33,"i",18),e._UZ(34,"img",15),e.qZA(),e.TgZ(35,"span",16),e._uU(36,"Patrimonio T\xe9cnico"),e.qZA()()(),e.TgZ(37,"li")(38,"a",23),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(39,"i",18),e._UZ(40,"img",15),e.qZA(),e.TgZ(41,"span",16),e._uU(42,"Calificaci\xf3n de Riesgos"),e.qZA()()(),e.TgZ(43,"li")(44,"a",24),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(45,"i",18),e._UZ(46,"img",15),e.qZA(),e.TgZ(47,"span",16),e._uU(48,"Tasas Activas"),e.qZA()()(),e.TgZ(49,"li")(50,"a",25),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(51,"i",18),e._UZ(52,"img",15),e.qZA(),e.TgZ(53,"span",16),e._uU(54,"Tasas Pasivas"),e.qZA()()(),e.TgZ(55,"li")(56,"a",26),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(57,"i",18),e._UZ(58,"img",15),e.qZA(),e.TgZ(59,"span",16),e._uU(60,"Pol\xedzas"),e.qZA()()(),e.TgZ(61,"li")(62,"a",27),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(63,"i",18),e._UZ(64,"img",15),e.qZA(),e.TgZ(65,"span",16),e._uU(66,"Buen Gobierno"),e.qZA()()(),e.TgZ(67,"li")(68,"a",28),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(69,"i",18),e._UZ(70,"img",15),e.qZA(),e.TgZ(71,"span",16),e._uU(72,"Normativa Interna"),e.qZA()()(),e.TgZ(73,"li")(74,"a",29),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(75,"i",18),e._UZ(76,"img",15),e.qZA(),e.TgZ(77,"span",16),e._uU(78,"Tarifarios de la Cooperativa"),e.qZA()()(),e.BQk()}}function Vn(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li")(2,"a",13),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(3,"i",14),e._UZ(4,"img",15),e.qZA(),e.TgZ(5,"span",16),e._uU(6,"Contratos de Adhesi\xf3n"),e.qZA()()(),e.TgZ(7,"li")(8,"a",17),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(9,"i",18),e._UZ(10,"img",15),e.qZA(),e.TgZ(11,"span",16),e._uU(12,"Balances"),e.qZA()()(),e.TgZ(13,"li")(14,"a",19),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(15,"i",18),e._UZ(16,"img",15),e.qZA(),e.TgZ(17,"span",16),e._uU(18,"\xcdndices Financieros"),e.qZA()()(),e.TgZ(19,"li")(20,"a",20),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(21,"i",18),e._UZ(22,"img",15),e.qZA(),e.TgZ(23,"span",16),e._uU(24,"Estado de Resultados"),e.qZA()()(),e.TgZ(25,"li")(26,"a",21),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(27,"i",18),e._UZ(28,"img",15),e.qZA(),e.TgZ(29,"span",16),e._uU(30,"Calificaci\xf3n Activo de Riesgos"),e.qZA()()(),e.TgZ(31,"li")(32,"a",22),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(33,"i",18),e._UZ(34,"img",15),e.qZA(),e.TgZ(35,"span",16),e._uU(36,"Patrimonio T\xe9cnico"),e.qZA()()(),e.TgZ(37,"li")(38,"a",23),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(39,"i",18),e._UZ(40,"img",15),e.qZA(),e.TgZ(41,"span",16),e._uU(42,"Calificaci\xf3n de Riesgos"),e.qZA()()(),e.TgZ(43,"li")(44,"a",24),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(45,"i",18),e._UZ(46,"img",15),e.qZA(),e.TgZ(47,"span",16),e._uU(48,"Tasas Activas"),e.qZA()()(),e.TgZ(49,"li")(50,"a",25),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(51,"i",18),e._UZ(52,"img",15),e.qZA(),e.TgZ(53,"span",16),e._uU(54,"Tasas Pasivas"),e.qZA()()(),e.TgZ(55,"li")(56,"a",26),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(57,"i",18),e._UZ(58,"img",15),e.qZA(),e.TgZ(59,"span",16),e._uU(60,"Pol\xedzas"),e.qZA()()(),e.TgZ(61,"li")(62,"a",27),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(63,"i",18),e._UZ(64,"img",15),e.qZA(),e.TgZ(65,"span",16),e._uU(66,"Buen Gobierno"),e.qZA()()(),e.TgZ(67,"li")(68,"a",28),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(69,"i",18),e._UZ(70,"img",15),e.qZA(),e.TgZ(71,"span",16),e._uU(72,"Normativa Interna"),e.qZA()()(),e.TgZ(73,"li")(74,"a",29),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(75,"i",18),e._UZ(76,"img",15),e.qZA(),e.TgZ(77,"span",16),e._uU(78,"Tarifarios de la Cooperativa"),e.qZA()()(),e.BQk()}}function Ut(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"li")(1,"a",30),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(2,"i",18),e._UZ(3,"img",31),e.qZA(),e.TgZ(4,"span",16),e._uU(5,"Tasas Inversiones"),e.qZA()()()}}function gn(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"li")(1,"a",32),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(2,"i",18),e._UZ(3,"img",31),e.qZA(),e.TgZ(4,"span",16),e._uU(5,"Cr\xe9ditos Admin"),e.qZA()()()}}function tt(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li")(2,"a",33),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(3,"i",18),e._UZ(4,"img",34),e.qZA(),e.TgZ(5,"span",16),e._uU(6,"Ofertas Tarjetas"),e.qZA()()(),e.BQk()}}function Zt(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li")(2,"a",35),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.onMenuClick())}),e.TgZ(3,"i",18),e._UZ(4,"img",36),e.qZA(),e.TgZ(5,"span",16),e._uU(6,"Remates Admin"),e.qZA()()(),e.BQk()}}function St(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"li",37)(1,"a",38),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.Salir())}),e.TgZ(2,"i",18),e._UZ(3,"img",39),e.qZA(),e.TgZ(4,"span",16),e._uU(5,"Cerrar Sesi\xf3n"),e.qZA()()()}}let $e=(()=>{class c{constructor(n){this.router=n,this.nombre="",this.cedula="",this.correo="",this.admin=!1,this.credito=!1,this.tarjetas=!1,this.adminpdf=!1,this.adminremates=!1,this.usuario=null,this.logueado=!1,this.sidebarOpen=!1,this.isMobile=!1}ngOnInit(){this.checkViewport();const n=localStorage.getItem("usuario");if(!n)return void this.router.navigateByUrl("/login");try{this.usuario=JSON.parse(n)}catch{return localStorage.removeItem("usuario"),void this.router.navigateByUrl("/login")}if(!this.usuario)return void this.router.navigateByUrl("/login");const r=this.usuario.perfil_usuario??"";this.admin="Administrador"===r,this.credito="credito"===r,this.tarjetas="tarjetas"===r,this.adminpdf="adminpdf"===r,this.adminremates="adminremates"==r,this.logueado=!0}onResize(){this.checkViewport()}checkViewport(){this.isMobile=window.innerWidth<=768,this.isMobile||(this.sidebarOpen=!1)}toggleSidebar(){this.sidebarOpen=!this.sidebarOpen}closeSidebar(){this.isMobile&&(this.sidebarOpen=!1)}onMenuClick(){this.closeSidebar()}Salir(){localStorage.removeItem("usuario"),this.logueado=!1,this.closeSidebar(),this.router.navigate(["/administrador/auth/login"]),window.history.pushState(null,"",window.location.href),window.onpopstate=()=>{window.history.pushState(null,"",window.location.href)}}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(me.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-dashboard"]],hostBindings:function(n,r){1&n&&e.NdJ("resize",function(){return r.onResize()},!1,e.Jf7)},decls:19,vars:10,consts:[["class","sidebar-backdrop",3,"click",4,"ngIf"],[1,"sidebar"],[1,"logo-detail
1s"],[1,"bx","bxl-c-plus-plus"],["src","../../assets/img/logo-home-blanco.png","alt","Logo",1,"logo-principal"],[1,"nav-links"],[4,"ngIf"],["class","log_out",4,"ngIf"],[1,"home-section"],["type","button",1,"menu-toggle",3,"click"],[1,"bx","bx-menu"],[1,"home-content"],[1,"sidebar-backdrop",3,"click"],["routerLink","/dashboard/contrato","routerLinkActive","active",3,"click"],[1,"bx","bx-grid-alt"],["src","../../assets/img/admin/pdf1.png","alt","icono",1,"menu-icon"],[1,"links_name"],["routerLink","/dashboard/balance","routerLinkActive","active",3,"click"],[1,"bx","bx-box"],["routerLink","/dashboard/indice-financiero","routerLinkActive","active",3,"click"],["routerLink","/dashboard/estado-resultado","routerLinkActive","active",3,"click"],["routerLink","/dashboard/calificacion-activos","routerLinkActive","active",3,"click"],["routerLink","/dashboard/patrimonio","routerLinkActive","active",3,"click"],["routerLink","/dashboard/calificacion","routerLinkActive","active",3,"click"],["routerLink","/dashboard/tasas-activas","routerLinkActive","active",3,"click"],["routerLink","/dashboard/tasas-pasiva","routerLinkActive","active",3,"click"],["routerLink","/dashboard/polizas","routerLinkActive","active",3,"click"],["routerLink","/dashboard/buen-gobierno","routerLinkActive","active",3,"click"],["routerLink","/dashboard/normativa","routerLinkActive","active",3,"click"],["routerLink","/dashboard/tarifarios-cooperativa","routerLinkActive","active",3,"click"],["routerLink","/dashboard/tasas","routerLinkActive","active",3,"click"],["src","../../assets/img/admin/tasas1.png","alt","icono",1,"menu-icon"],["routerLink","/dashboard/creditosadmin","routerLinkActive","active",3,"click"],["routerLink","/dashboard/ofertas-tarjetas","routerLinkActive","active",3,"click"],["src","../../assets/img/admin/card-ofert.png","alt","icono",1,"menu-icon"],["routerLink","/dashboard/remates-admin","routerLinkActive","active",3,"click"],["src","../../assets/img/admin/act.png","alt","icono",1,"menu-icon"],[1,"log_out"],[1,"dropdown-item",3,"click"],["src","../../assets/img/admin/logout.png","alt","icono",1,"menu-icon"]],template:function(n,r){1&n&&(e.YNc(0,pn,1,0,"div",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"i",3)(4,"img",4),e.qZA(),e.TgZ(5,"ul",5),e.YNc(6,$t,79,0,"ng-container",6),e.YNc(7,Vn,79,0,"ng-container",6),e.YNc(8,Ut,6,0,"li",6),e.YNc(9,gn,6,0,"li",6),e.YNc(10,tt,7,0,"ng-container",6),e.YNc(11,Zt,7,0,"ng-container",6),e.YNc(12,St,6,0,"li",7),e.qZA()(),e.TgZ(13,"section",8)(14,"nav")(15,"button",9),e.NdJ("click",function(){return r.toggleSidebar()}),e._UZ(16,"i",10),e.qZA()(),e.TgZ(17,"div",11),e._UZ(18,"router-outlet"),e.qZA()()),2&n&&(e.Q6J("ngIf",r.isMobile&&r.sidebarOpen),e.xp6(1),e.ekj("mobile-open",r.sidebarOpen),e.xp6(5),e.Q6J("ngIf",r.adminpdf||r.admin),e.xp6(1),e.Q6J("ngIf",!(r.adminpdf||r.admin||r.tarjetas||r.credito||r.adminremates)),e.xp6(1),e.Q6J("ngIf",r.credito||r.admin),e.xp6(1),e.Q6J("ngIf",r.credito||r.admin),e.xp6(1),e.Q6J("ngIf",r.tarjetas||r.admin),e.xp6(1),e.Q6J("ngIf",r.adminremates),e.xp6(1),e.Q6J("ngIf",r.admin||r.tarjetas||r.credito||r.adminpdf||r.adminremates))},dependencies:[z.O5,me.lC,me.yS,me.Od],styles:["*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box;font-family:Poppins,sans-serif}[_nghost-%COMP%]{--sidebar-width: 300px;--topbar-height: 70px;--primary: #2e56a1;--accent: #bacd0b;--white: #ffffff;--shadow: 0 6px 18px rgba(0, 0, 0, .12);display:block}.sidebar-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:250}.sidebar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:var(--sidebar-width);height:100vh;background:var(--primary);overflow-y:auto;overflow-x:hidden;z-index:300;transition:transform .3s ease}.logo-details[_ngcontent-%COMP%]{min-height:80px;display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.logo-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;color:var(--white);min-width:32px;text-align:center;flex-shrink:0}.logo-principal[_ngcontent-%COMP%]{width:120px;max-width:100%;height:auto;display:block;object-fit:contain}.nav-links[_ngcontent-%COMP%]{margin-top:8px;padding:10px 10px 18px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:4px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-height:50px;width:100%;display:flex;align-items:center;gap:6px;text-decoration:none;border-radius:14px;transition:background-color .25s ease,color .25s ease;cursor:pointer;padding-right:10px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background:var(--accent)}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{min-width:58px;display:flex;align-items:center;justify-content:center;color:var(--white)}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--primary)}.links_name[_ngcontent-%COMP%]{color:var(--white);font-size:15px;font-weight:400;line-height:1.25;word-break:break-word}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover .links_name[_ngcontent-%COMP%], .nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%] .links_name[_ngcontent-%COMP%]{color:var(--primary)}.menu-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain;display:block}.log_out[_ngcontent-%COMP%]{margin-top:12px}.home-section[_ngcontent-%COMP%]{margin-left:var(--sidebar-width);min-height:100vh;background:#f6f8fc;transition:margin-left .3s ease}.home-section[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{position:fixed;top:0;left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));height:var(--topbar-height);background:var(--primary);display:flex;align-items:center;padding:0 16px;z-index:200;box-shadow:0 2px 10px #00000014;transition:left .3s ease,width .3s ease}.menu-toggle[_ngcontent-%COMP%]{display:none;align-items:center;justify-content:center;border:none;background:transparent;color:#fff;font-size:30px;cursor:pointer}.home-content[_ngcontent-%COMP%]{padding:calc(var(--topbar-height) + 20px) 20px 20px;min-height:100vh}@media (max-width: 1024px){[_nghost-%COMP%]{--sidebar-width: 270px}.links_name[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 768px){[_nghost-%COMP%]{--topbar-height: 64px}.menu-toggle[_ngcontent-%COMP%]{display:flex}.sidebar[_ngcontent-%COMP%]{width:280px;max-width:85vw;transform:translate(-100%);box-shadow:var(--shadow)}.sidebar.mobile-open[_ngcontent-%COMP%]{transform:translate(0)}.home-section[_ngcontent-%COMP%]{margin-left:0}.home-section[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{left:0;width:100%}.home-content[_ngcontent-%COMP%]{padding:calc(var(--topbar-height) + 16px) 16px 16px}
1.logo-details[_ngcontent-%COMP%]{min-height:72px;padding:14px 16px}.logo-principal[_ngcontent-%COMP%]{width:110px}.nav-links[_ngcontent-%COMP%]{padding:8px 8px 16px}.nav-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{min-width:52px}.menu-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.home-content[_ngcontent-%COMP%]{padding:calc(var(--topbar-height) + 12px) 12px 12px}.links_name[_ngcontent-%COMP%]{font-size:13px}.sidebar[_ngcontent-%COMP%]{width:260px}}"]}),c})();var je=D(5226),ie=D.n(je),ft=D(6132),Wt=D(1482);function Dt(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function hn(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function Gn(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,hn,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function qn(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay contratos disponibles "),e.qZA()())}function kn(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"b"),e._uU(3,"Subiendo Contrato... Por favor, no cierre la p\xe1gina"),e.qZA()()())}function ai(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",48),e._uU(2," Agregar Contrato "),e.qZA())}function An(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",49),e._uU(2," Subiendo... "),e.qZA())}let Wn=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.contratos=[],this.selectedcontrat=null,this.file=[],this.cargando=!1,this.contratForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentContrat();const n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentContrat(){this.documentoService.getAllDocumentsContrat().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_contrat:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcontrat=n}onAddContrato(){if(this.contratForm.invalid)return;const n=this.contratForm.get("archivo")?.value,h=`pdfs/contrato-adhesion/${n.name}`,v=this.storage.ref(h);this.storage.upload(h,n).snapshotChanges().subscribe(()=>{v.getDownloadURL().subscribe(Z=>{const X={tipo:"pdf",nombre:this.contratForm.get("nombre")?.value,url:Z};this.contratos.push(X),this.contratForm.reset()})},Z=>{console.error("Error al subir el archivo:",Z)})}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentoContrat(){if(this.contratForm.invalid||!this.file)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Selecciona el contrato y completa todos los campos correctamente"});this.cargando=!0;const n=this.contratForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseContrat(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentContrat(v).then(()=>{this.cargando=!1,this.file=null,this.contratForm.reset(),this.getDocumentContrat(),ie().fire({icon:"success",title:"Contrato agregado",text:"El documento contractual se ha registrado con \xe9xito"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Contrat:",M),ie().fire("Error","No se pudo guardar la informaci\xf3n del contrato","error")})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del contrato","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo del contrato","error")}}markFormTouched(){Object.values(this.contratForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentContrat(n.id_contrat,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-Contratos"]],decls:52,vars:8,consts:[[1,"container-fluid","contratos-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","myModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#myModal",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],["data-label","Tipo",1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],["data-label","Nombre",1,"name-cell"],["data-label","Acciones",1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","type","button","title","Eliminar",3,"click",4,"ngIf"],["type","button","title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-file-text"],[1,"fa","fa-spinner","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Contratos de Adhesi\xf3n"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,Dt,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,Gn,9,3,"tr",11),e.YNc(22,qn,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumentoContrat()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Contratos de Adhesi\xf3n"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46," Seleccionar archivo "),e.qZA()()(),e.YNc(47,kn,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,ai,3,0,"span",12),e.YNc(51,An,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.contratForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.contratForm.valid||!r.file||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.contratos-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.table-hover[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#00000013}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:15pt}.div[_ngcontent-%COMP%]{margin:15px}.card[_ngcontent-%COMP%]{margin-top:20px}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.contratos-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.pdf-icon[_ngcontent-%COMP%]{width:24px;height:24px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})(),Ln=(()=>{class c{transform(n){const r={ENERO:1,FEBRERO:2,MARZO:3,ABRIL:4,MAYO:5,JUNIO:6,JULIO:7,AGOSTO:8,SEPTIEMBRE:9,OCTUBRE:10,NOVIEMBRE:11,DICIEMBRE:12};return n.slice().sort((h,v)=>{const M=this.extractMonthFromFileName(h.nameDocument),Z=this.extractMonthFromFileName(v.nameDocument);return(r[M.toUpperCase()]||0)-(r[Z.toUpperCase()]||0)})}extractMonthFromFileName(n){if(!n)return"";const r=n.split(" "),h=r.findIndex(v=>this.isMonth(v));return-1!==h&&h+1<r.length?r[h+1].toUpperCase():""}isMonth(n){return["ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"].includes(n.toUpperCase())}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275pipe=e.Yjl({name:"sortByMonth",type:c,pure:!0}),c})();function Hn(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",53)(2,"button",54),e._uU(3," Nuevo "),e.qZA()()())}function yi(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2023(h))}),e._UZ(1,"img",63),e.qZA()}}function _n(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",55),e._UZ(2,"img",56),e.qZA(),e.TgZ(3,"td",57),e._uU(4),e.qZA(),e.TgZ(5,"td",58)(6,"a",59),e._UZ(7,"img",60),e.qZA(),e.YNc(8,yi,2,0,"button",61),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function ui(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",64),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function zn(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",65)(2,"button",54),e._uU(3," Nuevo "),e.qZA()()())}function ri(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalanceComparativo(h))}),e._UZ(1,"img",63),e.qZA()}}function Pi(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",55),e._UZ(2,"img",56),e.qZA(),e.TgZ(3,"td",57),e._uU(4),e.qZA(),e.TgZ(5,"td",58)(6,"a",59),e._UZ(7,"img",60),e.qZA(),e.YNc(8,ri,2,0,"button",61),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function li(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",64),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function ei(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",66)(2,"button",54),e._uU(3," Nuevo "),e.qZA()()())}function Ze(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2024(h))}),e._UZ(1,"img",63),e.qZA()}}function Oe(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",55),e._UZ(2,"img",56),e.qZA(),e.TgZ(3,"td",57),e._uU(4),e.qZA(),e.TgZ(5,"td",58)(6,"a",59),e._UZ(7,"img",60),e.qZA(),e.YNc(8,Ze,2,0,"button",61),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function P(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",64),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function le(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",67)(2,"button",54),e._uU(3," Nuevo "),e.qZA()()())}function O(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2025(h))}),e._UZ(1,"img",63),e.qZA()}}function Q(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",55),e._UZ(2,"img",56),e.qZA(),e.TgZ(3,"td",57),e._uU(4),e.qZA(),e.TgZ(5,"td",58)(6,"a",59),e._UZ(7,"img",60),e.qZA(),e.YNc(8,O,2,0,"button",61),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function ke(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",64),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function De(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",68)(2,"button",54),e._uU(3," Nuevo "),e.qZA()()())}function ye(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2026(h))}),e._UZ(1,"img",63),e.qZA()}}function Je(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",55),e._UZ(2,"img",56),e.qZA(),e.TgZ(3,"td",57),e._uU(4),e.qZA(),e.TgZ(5,"td",58)(6,"a",59),e._UZ(7,"img",60),e.qZA(),e.YNc(8,ye,2,0,"button",61),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function wt(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",64),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function on(c,o){1&c&&(e.TgZ(0,"div",69)(1,"div",70)(2,"b"),e._uU(3,"Subiendo Balance 2025... No cierre esta ventana"),e.qZA()()())}function st(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",71),e._uU(2," Agregar Balance 2025 "),e.qZA())}function Ee(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",72),e._uU(2," Subiendo... "),e.qZA())}function V(c,o){1&c&&(e.TgZ(0,"div",69)(1,"div",70)(2,"b"),e._uU(3,"Subiendo Balance 2026... Espere por favor"),e.qZA()()())}function _e(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",71),e._uU(2," Subir Balance "),e.qZA())}function Tt(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",72),e._uU(2," Procesando... "),e.qZA())}function un(c,o){1&c&&(e.TgZ(0,"div",69)(1,"div",70)(2,"b"),e._uU(3,"Subiendo Balance Comparativo... No cierre la ventana"),e.qZA()()())}function Yn(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",73),e._uU(2," Agregar Balance "),e.qZA())}function Li(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",74),e._uU(2," Procesando... "),e.qZA())}let Ii=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.balance2022=[],this.balance2023=[],this.balance2024=[],this.balance2025=[],this.balance2026=[],this.balancecomparative=[],this.file=[],this.cargando=!1,this.balance2022Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2023Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2024Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2025Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2026Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balanceComparativeForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentBalance2025(),this.getDocumentBalance2026(),this.getDocumentBalanceComparativo();const n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentBalance2025(){this.documentoService.getAllDocumentsBalance2025().subscribe(n=>
1{this.balance2025=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2025.push({id_balance2025:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2025.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2025(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2025(){if(this.balance2025Form.invalid||!this.file)return this.markFormTouched3(),void ie().fire({icon:"error",title:"Error",text:"Selecciona un archivo y completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2025Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalance2025(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalance2025(v).then(()=>{this.cargando=!1,this.file=null,this.balance2025Form.reset(),this.getDocumentBalance2025(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance 2025 se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Balance 2025",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del balance 2025","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo local","error")}}markFormTouched3(){Object.values(this.balance2025Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalance2025(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBalance2025(n.id_balance2025,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2026(){this.documentoService.getAllDocumentsBalance2026().subscribe(n=>{this.balance2026=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2026.push({id_balance2026:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2026.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2026(n){n.target.files&&n.target.files[0]?(this.file=n.target.files[0],console.log("Archivo seleccionado para 2026:",this.file)):this.file=null}onAddDocumentBalance2026(){if(this.balance2026Form.invalid||!this.file)return this.markFormTouched2(),void ie().fire({icon:"error",title:"Error",text:"Selecciona un archivo y completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2026Form.get("nombre")?.value,r=new FileReader;r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalance2026(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalance2026(v).then(()=>{this.cargando=!1,this.file=null,this.balance2026Form.reset(),this.getDocumentBalance2026(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Balance 2026",M),ie().fire("Error","No se pudo registrar en la base de datos","error")})}).catch(h=>{this.cargando=!1,console.error("Error Firebase Storage:",h),ie().fire("Error","No se pudo subir el archivo al servidor","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo seleccionado","error")},r.readAsDataURL(this.file)}markFormTouched2(){Object.values(this.balance2026Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalance2026(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&this.documentoService.putVisibleDocumentBalance2026(n.id_balance2026,{visible:!1}).then(()=>{ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con \xe9xito",showConfirmButton:!1,timer:1500}),this.getDocumentBalance2026()}).catch(v=>{console.error("Error al actualizar visibilidad:",v),ie().fire("Error","No se pudo actualizar el documento","error")})})}getDocumentBalance2022(){this.documentoService.getAllDocumentsBalance2022().subscribe(n=>
1{this.balance2022=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2022.push({id_balance2022:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2022.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2022(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2022(){if(this.balance2022Form.invalid)Object.values(this.balance2022Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2022Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalance2022(n,r.result).then(h=>{this.file=[],this.balance2022Form.reset(),this.getDocumentBalance2022();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalance2022(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2022(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBalance2022(n.id_balance2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2023(){this.documentoService.getAllDocumentsBalance2023().subscribe(n=>{this.balance2023=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2023.push({id_balance2023:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2023.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2023(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2023(){if(this.balance2023Form.invalid)Object.values(this.balance2023Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2023Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalance2023(n,r.result).then(h=>{this.file=[],this.balance2023Form.reset(),this.getDocumentBalance2023();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalance2023(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2023(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBalance2023(n.id_balance2023,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2024(){this.documentoService.getAllDocumentsBalance2024().subscribe(n=>{this.balance2024=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2024.push({id_balance2024:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2024.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2024(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2024(){if(this.balance2024Form.invalid)Object.values(this.balance2024Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2024Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalance2024(n,r.result).then(h=>{this.file=[],this.balance2024Form.reset(),this.getDocumentBalance2024();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalance2024(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2024(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBalance2024(n.id_balance2024,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalanceComparativo(){this.documentoService.getAllDocumentsBalanceComparativo().subscribe(n=>{this.balancecomparative=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balancecomparative.push({id_balancecomparative:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balancecomparative.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalanceComparativo(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalanceComparativo(){if(this.balanceComparativeForm.invalid)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balanceComparativeForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBalanceComparativo(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBalanceComparativo(v).then(()=>{this.cargando=!1,this.file=[],this.balanceComparativeForm.reset(),this.getDocumentBalanceComparativo(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance comparativo se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Balance Comparativo",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del balance comparativo","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al procesar el archivo local","error")}}markFormTouched(){Object.values(this.balanceComparativeForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalanceComparativo(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBalanceComparativo(n.id_balancecomparative,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-balance"]],decls:298,vars:43,consts:[[1,"balance-page"],[1,"container-fluid","balance-container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","custom-tabs"],[1,"nav-item"],["id","tab5","data-toggle","tab","href","#content5","role","tab","aria-controls","content5","aria-selected","false",1,"nav-link","letra"],["id","tab6","data-toggle","tab","href","#content6","role","tab","aria-controls","content6","aria-selected","false",1,"nav-link","letra","active"],["id","tab2","data-toggle","tab","href","#content3","role","tab","aria-controls","content2","aria-selected","false",1,"nav-link","letra"],["id","myTabContent",1,"tab-content","custom-tab-content"],["id","content2","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],[1,"content-panel"],[1,"section-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","content3","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],["id","content4","role","tabpanel","aria-labelledby","tab4",1,"tab-pane","fade"],["id","content5","role","tabpanel","aria-labelledby","tab5",1,"tab-pane","fade"],["id","content6","role","tabpanel","aria-labelledby","tab6",1,"tab-pane","fade","show","active"],["id","balance2022","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn"],["id","balance2023","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["id","balance2024","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["id","balance2025","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["id","balance2026","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["id","balancecomparativo","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["data-toggle","modal","data-target","#balance2023",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn",3,"click",4,"ngIf"],[1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],["data-toggle","modal","data-target","#balancecomparativo",1,"col-12","action-bar"],["data-toggle","modal","data-target","#balance2024",1,"col-12","action-bar"],["data-toggle","modal","data-target","#balance2025",1,"col-12","action-bar"],["data-toggle","modal","data-target","#balance2026",1,"col-12","action-bar"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-upload"],[1,"fa","fa-spinner","fa-spin"],[1,"fa","fa-balance-scale"],[1,"fa","fa-refresh","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),e._uU(7,"2025"),e.qZA()(),e.TgZ(8,"li",5)(9,"a",7),e._uU(10,"2026"),e.qZA()(),e.TgZ(11,"li",5)(12,"a",8),e._uU(13,"Comparativo"),e.qZA()()(),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"p",12),e._uU(18,"Balance 2023"),e.qZA(),e.TgZ(19,"div",13)(20,"div",14),e.YNc(21,Hn,4,0,"div",15),e.TgZ(22,"div",2)(23,"div",3)(24,"div",16)(25,"table",17)(26,"thead")(27,"tr")(28,"th",18),e._uU(29,"Tipo"),e.qZA(),e.TgZ(30,"th",18),e._uU(31,"Nombre"),e.qZA(),e.TgZ(32,"th",19),e._uU(33,"Acciones"),e.qZA()()(),e.TgZ(34,"tbody"),e.YNc(35,_n,9,3,"tr",20),e.ALo(36,"sortByMonth"),e.YNc(37,ui,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(38,"div",22)(39,"div",11)(40,"p",12),e._uU(41,"Balance Comparativo"),e.qZA(),e.TgZ(42,"div",13)(43,"div",14),e.YNc(44,zn,4,0,"div",15),e.TgZ(45,"div",2)(46,"div",3)(47,"div",16)(48,"table",17)(49,"thead")(50,"tr")(51,"th",18),e._uU(52,"Tipo"),e.qZA(),e.TgZ(53,"th",18),e._uU(54,"Nombre"),e.qZA(),e.TgZ(55,"th",19),e._uU(56,"Acciones"),e.qZA()()(),e.TgZ(57,"tbody"),e.YNc(58,Pi,9,3,"tr",20),e.ALo(59,"sortByMonth"),e.YNc(60,li,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(61,"div",23)(62,"div",11)(63,"p",12),e._uU(64,"Balance 2024"),e.qZA(),e.TgZ(65,"div",13)(66,"div",14),e.YNc(67,ei,4,0,"div",15),e.TgZ(68,"div",2)(69,"div",3)(70,"div",16)(71,"table",17)(72,"thead")(73,"tr")(74,"th",18),e._uU(75,"Tipo"),e.qZA(),e.TgZ(76,"th",18),e._uU(77,"Nombre"),e.qZA(),e.TgZ(78,"th",19),e._uU(79,"Acciones"),e.qZA()()(),e.TgZ(80,"tbody"),e.YNc(81,Oe,9,3,"tr",20),e.ALo(82,"sortByMonth"),e.YNc(83,P,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(84,"div",24)(85,"div",11)(86,"p",12),e._uU(87,"Balance 2025"),e.qZA(),e.TgZ(88,"div",13)(89,"div",14),e.YNc(90,le,4,0,"div",15),e.TgZ(91,"div",2)(92,"div",3)(93,"div",16)(94,"table",17)(95,"thead")(96,"tr")(97,"th",18),e._uU(98,"Tipo"),e.qZA(),e.TgZ(99,"th",18),e._uU(100,"Nombre"),e.qZA(),e.TgZ(101,"th",19),e._uU(102,"Acciones"),e.qZA()()(),e.TgZ(103,"tbody"),e.YNc(104,Q,9,3,"tr",20),e.ALo(105,"sortByMonth"),e.YNc(106,ke,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(107,"div",25)(108,"div",11)(109,"p",12),e._uU(110,"Balance 2026"),e.qZA(),e.TgZ(111,"div",13)(112,"div",14),e.YNc(113,De,4,0,"div",15),e.TgZ(114,"div",2)(115,"div",3)(116,"div",16)(117,"table",17)(118,"thead")(119,"tr")(120,"th",18),e._uU(121,"Tipo"),e.qZA(),e.TgZ(122,"th",18),e._uU(123,"Nombre"),e.qZA(),e.TgZ(124,"th",19),e._uU(125,"Acciones"),e.qZA()()(),e.TgZ(126,"tbody"),e.YNc(127,Je,9,3,"tr",20),e.ALo(128,"sortByMonth"),e.YNc(129,wt,3,0,"tr",21),e.qZA()()()()()()()()()()()()()(),e.TgZ(130,"div",26)(131,"div",27)(132,"div",28)(133,"div",29)(134,"button",30)(135,"span",31),e._uU(136,"\xd7"),e.qZA()()(),e.TgZ(137,"div",32)(138,"div",33)(139,"div",34)(140,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2022()}),e.TgZ(141,"h1",36),e._uU(142,"Nuevo Archivo Balance 2022"),e.qZA(),e.TgZ(143,"div",37)(144,"label",38),e._uU(145,"Nombre"),e.qZA(),e._UZ(146,"input",39),e.qZA(),e.TgZ(147,"div",37)(148,"label",40),e._uU(149,"Archivo"),e.qZA(),e.TgZ(150,"div",41)(151,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2022(v)}),e.qZA(),e.TgZ(152,"label",43),e._uU(153,"Seleccionar archivo"),e.qZA()()(),e.TgZ(154,"div",44)(155,"button",45),e._uU(156,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(157,"div",46)(158,"div",27)(159,"div",28)(160,"div",29)(161,"button",30)(162,"span",31),e._uU(163,"\xd7"),e.qZA()()(),e.TgZ(164,"div",32)(165,"div",33)(166,"div",34)(167,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2023()}),e.TgZ(168,"h1",36),e._uU(169,"Nuevo Archivo Balance 2023"),e.qZA(),e.TgZ(170,"div",37)(171,"label",38),e._uU(172,"Nombre"),e.qZA(),e._UZ(173,"input",39),e.qZA(),e.TgZ(174,"div",37)(175,"label",40),e._uU(176,"Archivo"),e.qZA(),e.TgZ(177,"div",41)(178,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2023(v)}
1),e.qZA(),e.TgZ(179,"label",43),e._uU(180,"Seleccionar archivo"),e.qZA()()(),e.TgZ(181,"div",44)(182,"button",45),e._uU(183,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(184,"div",47)(185,"div",27)(186,"div",28)(187,"div",29)(188,"button",30)(189,"span",31),e._uU(190,"\xd7"),e.qZA()()(),e.TgZ(191,"div",32)(192,"div",33)(193,"div",34)(194,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2024()}),e.TgZ(195,"h1",36),e._uU(196,"Nuevo Archivo Balance 2024"),e.qZA(),e.TgZ(197,"div",37)(198,"label",38),e._uU(199,"Nombre"),e.qZA(),e._UZ(200,"input",39),e.qZA(),e.TgZ(201,"div",37)(202,"label",40),e._uU(203,"Archivo"),e.qZA(),e.TgZ(204,"div",41)(205,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2024(v)}),e.qZA(),e.TgZ(206,"label",43),e._uU(207,"Seleccionar archivo"),e.qZA()()(),e.TgZ(208,"div",44)(209,"button",45),e._uU(210,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(211,"div",48)(212,"div",27)(213,"div",28)(214,"div",29)(215,"button",30)(216,"span",31),e._uU(217,"\xd7"),e.qZA()()(),e.TgZ(218,"div",32)(219,"div",33)(220,"div",34)(221,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2025()}),e.TgZ(222,"h1",36),e._uU(223,"Nuevo Archivo Balance 2025"),e.qZA(),e.TgZ(224,"div",37)(225,"label",38),e._uU(226,"Nombre"),e.qZA(),e._UZ(227,"input",39),e.qZA(),e.TgZ(228,"div",37)(229,"label",40),e._uU(230,"Archivo"),e.qZA(),e.TgZ(231,"div",41)(232,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2025(v)}),e.qZA(),e.TgZ(233,"label",43),e._uU(234,"Seleccionar archivo"),e.qZA()()(),e.YNc(235,on,4,0,"div",49),e.TgZ(236,"div",44)(237,"button",50),e.YNc(238,st,3,0,"span",21),e.YNc(239,Ee,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(240,"div",51)(241,"div",27)(242,"div",28)(243,"div",29)(244,"button",30)(245,"span",31),e._uU(246,"\xd7"),e.qZA()()(),e.TgZ(247,"div",32)(248,"div",33)(249,"div",34)(250,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2026()}),e.TgZ(251,"h1",36),e._uU(252,"Nuevo Archivo Balance 2026"),e.qZA(),e.TgZ(253,"div",37)(254,"label",38),e._uU(255,"Nombre"),e.qZA(),e._UZ(256,"input",39),e.qZA(),e.TgZ(257,"div",37)(258,"label",40),e._uU(259,"Archivo"),e.qZA(),e.TgZ(260,"div",41)(261,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2026(v)}),e.qZA(),e.TgZ(262,"label",43),e._uU(263,"Seleccionar archivo"),e.qZA()()(),e.YNc(264,V,4,0,"div",49),e.TgZ(265,"div",44)(266,"button",50),e.YNc(267,_e,3,0,"span",21),e.YNc(268,Tt,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(269,"div",52)(270,"div",27)(271,"div",28)(272,"div",29)(273,"button",30)(274,"span",31),e._uU(275,"\xd7"),e.qZA()()(),e.TgZ(276,"div",32)(277,"div",33)(278,"div",34)(279,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalanceComparativo()}),e.TgZ(280,"h1",36),e._uU(281,"Nuevo Archivo Balance Comparativo"),e.qZA(),e.TgZ(282,"div",37)(283,"label",38),e._uU(284,"Nombre"),e.qZA(),e._UZ(285,"input",39),e.qZA(),e.TgZ(286,"div",37)(287,"label",40),e._uU(288,"Archivo"),e.qZA(),e.TgZ(289,"div",41)(290,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalanceComparativo(v)}),e.qZA(),e.TgZ(291,"label",43),e._uU(292,"Seleccionar archivo"),e.qZA()()(),e.YNc(293,un,4,0,"div",49),e.TgZ(294,"div",44)(295,"button",50),e.YNc(296,Yn,3,0,"span",21),e.YNc(297,Li,3,0,"span",21),e.qZA()()()()()()()()()),2&n&&(e.xp6(21),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",e.lcZ(36,33,r.balance2023)),e.xp6(2),e.Q6J("ngIf",!r.balance2023||0===r.balance2023.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",e.lcZ(59,35,r.balancecomparative)),e.xp6(2),e.Q6J("ngIf",!r.balancecomparative||0===r.balancecomparative.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",e.lcZ(82,37,r.balance2024)),e.xp6(2),e.Q6J("ngIf",!r.balance2024||0===r.balance2024.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",e.lcZ(105,39,r.balance2025)),e.xp6(2),e.Q6J("ngIf",!r.balance2025||0===r.balance2025.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",e.lcZ(128,41,r.balance2026)),e.xp6(2),e.Q6J("ngIf",!r.balance2026||0===r.balance2026.length),e.xp6(11),e.Q6J("formGroup",r.balance2022Form),e.xp6(27),e.Q6J("formGroup",r.balance2023Form),e.xp6(27),e.Q6J("formGroup",r.balance2024Form),e.xp6(27),e.Q6J("formGroup",r.balance2025Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2025Form.valid||!r.file||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balance2026Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2026Form.valid||!r.file||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balanceComparativeForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balanceComparativeForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u,Ln],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}.balance-page[_ngcontent-%COMP%]{padding:16px}.balance-container[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:0 auto}.custom-tabs[_ngcontent-%COMP%]{margin:0 0 18px;background-color:#2e56a1;display:flex;justify-content:center;align-items:stretch;border:none;border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:140px;text-align:center;background-color:#2e56a1}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{width:100%;color:#fff;padding:14px 18px;font-size:18px;font-weight:500;border:none;border-radius:0;white-space:nowrap}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700}.custom-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{background-color:#fff;color:#2e56a1;font-weight:700}.letra[_ngcontent-%COMP%]{font-size:20px}.custom-tab-content[_ngcontent-%COMP%]{background-color:#fff;padding:0;border-radius:0 0 18px 18px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{border-radius:0 0 18px 18px;overflow:hidden;padding:20px}.content-panel[_ngcontent-%COMP%]{width:100%}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}.container-card-3-4[_ngcontent-%COMP%], .box3[_ngcontent-%COMP%], .box4[_ngcontent-%COMP%], .azul[_ngcontent-%COMP%], .div_training_title[_ngcontent-%COMP%], .flecha[_ngcontent-%COMP%], .imagen-valo[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%], .card-text[_ngcontent-%COMP%], .link-no-underline[_ngcontent-%COMP%]{max-width:100%}@media (max-width: 992px){.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:16px;padding:12px 16px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.balance-page[_ngcontent-%COMP%]{padding:12px}.custom-tabs[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:14px 14px 0 0}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:120px;flex:0 0 auto}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:14px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{padding:14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:110px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:13px;padding:12px 14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function qi(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function at(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function Xe(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,at,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Re(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function Ie(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"b"),e._uU(3,"Subiendo... Por favor espere"),e.qZA()()())}function xe(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function Ot(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",48),e._uU(2," Procesando... "),e.qZA())}let en=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocuments().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_calificacion:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onAddContrato(){if(this.calificationForm.invalid)return;const n=this.calificationForm.get("archivo")?.value,h=`pdfs/calificacion-riesgo/${n.name}`,v=this.storage.ref(h);this.storage.upload(h,n).snapshotChanges().subscribe(()=>{v.getDownloadURL().subscribe(Z=>{const X={tipo:"pdf",nombre:this.calificationForm.get("nombre")?.value,url:Z};this.contratos.push(X),this.calificationForm.reset()})},Z=>{})}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebase(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocument(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocument",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocument(n.id_calificacion,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-calificacion"]],decls:52,vars:8,consts:[[1,"container-fluid","calificacion-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","calificacion","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#calificacion",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-refresh","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Calificaci\xf3n Riesgos"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,qi,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,Xe,9,3,"tr",11),e.YNc(22,Re,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Calificaci\xf3n de Riesgos"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,Ie,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,xe,2,0,"span",12),e.YNc(51,Ot,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.calificacion-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.calificacion-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function pt(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function Gt(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function Ce(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,Gt,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Ue(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function ue(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"span",48),e._uU(3,"Subiendo archivo... por favor espere"),e.qZA()()())}function nt(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function Nt(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",49),e._uU(2," Procesando... "),e.qZA())}let mn=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocumentsTA().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_tasaactiva:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddContrato(){if(this.calificationForm.invalid)return;const n=this.calificationForm.get("archivo")?.value,h=`pdfs/Tasa-Activa/${n.name}`,v=this.storage.ref(h);this.storage.upload(h,n).snapshotChanges().subscribe(()=>{v.getDownloadURL().subscribe(Z=>{const X={tipo:"pdf",nombre:this.calificationForm.get("nombre")?.value,url:Z};this.contratos.push(X),this.calificationForm.reset()})},Z=>{})}onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseTA(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentTA(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentTA(n.id_tasaactiva,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-tasas-active"]],decls:52,vars:8,consts:[[1,"container-fluid","tasas-active-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","tasaactiva","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#tasaactiva",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"font-weight-bold"],[1,"fa","fa-spinner","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Tasas Activas"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,pt,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,Ce,9,3,"tr",11),e.YNc(22,Ue,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Tasas Activas"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,ue,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,nt,2,0,"span",12),e.YNc(51,Nt,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.tasas-active-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.tasas-active-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function Nn(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function kt(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function Ft(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,kt,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function bn(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function vn(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"span",48),e._uU(3,"Subiendo archivo... por favor espere"),e.qZA()()())}function ni(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function di(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",49),e._uU(2," Procesando... "),e.qZA())}let ti=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocumentsTP().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_tasapasiva:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onAddContrato(){if(this.calificationForm.invalid)return;const n=this.calificationForm.get("archivo")?.value,h=`pdfs/Tasa-Pasiva/${n.name}`,v=this.storage.ref(h);this.storage.upload(h,n).snapshotChanges().subscribe(()=>{v.getDownloadURL().subscribe(Z=>{const X={tipo:"pdf",nombre:this.calificationForm.get("nombre")?.value,url:Z};this.contratos.push(X),this.calificationForm.reset()})},Z=>{})}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseTP(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentTP(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentTP(n.id_tasapasiva,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-tasas-pasive"]],decls:52,vars:8,consts:[[1,"container-fluid","tasas-pasive-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","tasapasiva","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#tasapasiva",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"font-weight-bold"],[1,"fa","fa-spinner","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Tasas Pasivas"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,Nn,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,Ft,9,3,"tr",11),e.YNc(22,bn,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Tasas Pasivas"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,vn,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,ni,2,0,"span",12),e.YNc(51,di,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.tasas-pasive-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.tasas-pasive-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function cr(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function Ai(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function fr(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,Ai,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function xr(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function Yi(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"b"),e._uU(3,"Subiendo archivo... Espere un momento"),e.qZA()()())}function Zi(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function ho(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",48),e._uU(2," Cargando... "),e.qZA())}let Ni=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocumentsP().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_poliza:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseP(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentP(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentP",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentP(n.id_poliza,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-poliza"]],decls:52,vars:8,consts:[[1,"container-fluid","poliza-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","poliza","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#poliza",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-spinner","fa-pulse"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Pol\xedzas"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,cr,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,fr,9,3,"tr",11),e.YNc(22,xr,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Polizas"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,Yi,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,Zi,2,0,"span",12),e.YNc(51,ho,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.poliza-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.poliza-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function jr(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function Xr(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function Bt(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,Xr,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function he(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function ne(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47),e._uU(2," Procesando documento... por favor espere "),e.qZA()())}function Ne(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function yt(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",48),e._uU(2," Subiendo... "),e.qZA())}let Vt=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocumentsBG().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_buengobierno:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseBG(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentBG(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentBG",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo al servidor","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentBG(n.id_buengobierno,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-goberny"]],decls:52,vars:8,consts:[[1,"container-fluid","goberny-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","buen","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#buen",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-primary",2,"width","100%"],[1,"fa","fa-spinner","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Buen Gobierno"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,jr,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,Bt,9,3,"tr",11),e.YNc(22,he,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Buen Gobierno"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,ne,3,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,Ne,2,0,"span",12),e.YNc(51,yt,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.goberny-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.goberny-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function Ke(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function Ge(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function ht(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,Ge,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Kt(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function we(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"b"),e._uU(3,"Subiendo informaci\xf3n..."),e.qZA()()())}function ct(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function jt(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",48),e._uU(2," Espere... "),e.qZA())}let Mn=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.archivos=[],this.contratos=[],this.selectedcalification=null,this.file=[],this.cargando=!1,this.calificationForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.getDocument()}getDocument(){this.documentoService.getAllDocumentsN().subscribe(n=>{this.contratos=[],n.forEach(r=>{this.contratos.push({id_normativa:r.payload.doc.id,...r.payload.doc.data()})}),this.contratos.sort((r,h)=>r.fecha-h.fecha)})}onSelectContrato(n){this.selectedcalification=n}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumento(){if(this.calificationForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.calificationForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseN(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentN(v).then(M=>{this.cargando=!1,this.file=[],this.calificationForm.reset(),this.getDocument(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentN",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo","error")})}}}markFormTouched(){Object.values(this.calificationForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentN(n.id_normativa,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-normativa"]],decls:52,vars:8,consts:[[1,"container-fluid","normativa-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","normativa","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#normativa",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-circle-o-notch","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Normativa"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,Ke,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,ht,9,3,"tr",11),e.YNc(22,Kt,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumento()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Normativa"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,we,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,ct,2,0,"span",12),e.YNc(51,jt,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.contratos),e.xp6(1),e.Q6J("ngIf",!r.contratos||0===r.contratos.length),e.xp6(11),e.Q6J("formGroup",r.calificationForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.calificationForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.normativa-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.normativa-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function Jn(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",65)(2,"button",66),e._uU(3,"Nuevo"),e.qZA()()())}function Mi(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2024(h))}),e._UZ(1,"img",75),e.qZA()}}function Ti(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",67),e._UZ(2,"img",68),e.qZA(),e.TgZ(3,"td",69),e._uU(4),e.qZA(),e.TgZ(5,"td",70)(6,"a",71),e._UZ(7,"img",72),e.qZA(),e.YNc(8,Mi,2,0,"button",73),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function $i(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",76),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Ji(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",77)(2,"button",66),e._uU(3,"Nuevo"),e.qZA()()())}function eo(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2025(h))}),e._UZ(1,"img",75),e.qZA()}}function Do(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",67),e._UZ(2,"img",68),e.qZA(),e.TgZ(3,"td",69),e._uU(4),e.qZA(),e.TgZ(5,"td",70)(6,"a",71),e._UZ(7,"img",72),e.qZA(),e.YNc(8,eo,2,0,"button",73),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function As(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",76),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Wo(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",78)(2,"button",66),e._uU(3,"Nuevo"),e.qZA()()())}function Ao(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2026(h))}),e._UZ(1,"img",75),e.qZA()}}function vs(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",67),e._UZ(2,"img",68),e.qZA(),e.TgZ(3,"td",69),e._uU(4),e.qZA(),e.TgZ(5,"td",70)(6,"a",71),e._UZ(7,"img",72),e.qZA(),e.YNc(8,Ao,2,0,"button",73),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Is(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",76),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function co(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",79)(2,"button",66),e._uU(3,"Nuevo"),e.qZA()()())}function Ko(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalanceComparativo(h))}),e._UZ(1,"img",75),e.qZA()}}function Zs(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",67),e._UZ(2,"img",68),e.qZA(),e.TgZ(3,"td",69),e._uU(4),e.qZA(),e.TgZ(5,"td",70)(6,"a",71),e._UZ(7,"img",72),e.qZA(),e.YNc(8,Ko,2,0,"button",73),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Vo(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",76),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Co(c,o){1&c&&(e.TgZ(0,"div",80)(1,"div",81)(2,"b"),e._uU(3,"Subiendo \xcdndice 2025... Por favor espere"),e.qZA()()())}function fo(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",82),e._uU(2," Agregar \xcdndice 2025 "),e.qZA())}function Mo(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",83),e._uU(2," Procesando... "),e.qZA())}function Ss(c,o){1&c&&(e.TgZ(0,"div",80)(1,"div",81)(2,"b"),e._uU(3,"Subiendo \xcdndice 2026... Por favor espere"),e.qZA()()())}function zi(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",82),e._uU(2," Agregar \xcdndice 2026 "),e.qZA())}function cs(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",83),e._uU(2," Procesando... "),e.qZA())}function po(c,o){1&c&&(e.TgZ(0,"div",80)(1,"div",81)(2,"b"),e._uU(3,"Subiendo \xcdndice C
1omparativo... Espere un momento"),e.qZA()()())}function to(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",84),e._uU(2," Agregar \xcdndice "),e.qZA())}function bs(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",83),e._uU(2," Procesando... "),e.qZA())}let is=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.balance2022=[],this.balance2023=[],this.balance2024=[],this.balance2025=[],this.balance2026=[],this.balancecomparative=[],this.file=[],this.cargando=!1,this.balance2022Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2023Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2024Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2025Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2026Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balanceComparativeForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentBalance2025(),this.getDocumentBalance2026(),this.getDocumentBalanceComparativo();const n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentBalance2025(){this.documentoService.getAllDocumentsIndice2025().subscribe(n=>{this.balance2025=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2025.push({id_indice2025:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2025.sort((r,h)=>r.fecha-h.fecha)})}getDocumentBalance2026(){this.documentoService.getAllDocumentsIndice2026().subscribe(n=>{this.balance2026=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2026.push({id_indice2026:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2026.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2025(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}markFormTouched2(){Object.values(this.balance2025Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onAddDocumentBalance2025(){if(this.balance2025Form.invalid)return this.markFormTouched2(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2025Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndice2025(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndice2025(v).then(()=>{this.cargando=!1,this.file=[],this.balance2025Form.reset(),this.getDocumentBalance2025(),ie().fire({icon:"success",title:"Documento agregado",text:"El \xedndice 2025 se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Indice 2025",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del \xedndice 2025","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo local","error")}}onSelectDocumentBalance2026(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2026(){if(this.balance2026Form.invalid)return this.markFormTouched1(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2026Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndice2026(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndice2026(v).then(()=>{this.cargando=!1,this.file=[],this.balance2026Form.reset(),this.getDocumentBalance2026(),ie().fire({icon:"success",title:"Documento agregado",text:"El \xedndice 2026 se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Indice 2026",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del \xedndice 2026","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al procesar el archivo local","error")}}markFormTouched1(){Object.values(this.balance2026Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalance2025(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndice2025(n.id_indice2025,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}onChangeVisibleBalance2026(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndice2026(n.id_indice2026,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2022(){this.documentoService.getAllDocumentsIndice2022().subscribe(n=>{this.balance2022=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2022.push({id_indice2022:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2022.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2022(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2022(){if(this.balance2022Form.invalid)Object.values(this.balance2022Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2022Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndice2022(n,r.result).then(h=>{this.file=[],this.balance2022Form.reset(),this.getDocumentBalance2022();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndice2022(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2022(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndice2022(n.id_indice2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2023(){this.documentoService.getAllDocumentsIndice2023().subscribe(n=>{this.balance2023=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2023.push({id_indice2023:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2023.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2023(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2023(){if(this.balance2023Form.invalid)Object.values(this.balance2023Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2023Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndice2023(n,r.result).then(h=>{this.file=[],this.balance2023Form.reset(),this.getDocumentBalance2023();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndice2023(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2023(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndice2023(n.id_indice2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2024(){this.documentoService.getAllDocumentsIndice2024().subscribe(n=>{this.balance2024=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2024.push({id_indice2024:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2024.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2024(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2024(){if(this.balance2024Form.invalid)Object.values(this.balance2024Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2024Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndice2024(n,r.result).then(h=>{this.file=[],this.balance2024Form.reset(),this.getDocumentBalance2024();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndice2024(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2024(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndice2024(n.id_indice2024,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalanceComparativo(){this.documentoService.getAllDocumentsIndiceComparativo().subscribe(n=>{this.balancecomparative=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balancecomparative.push({id_indicecomparative:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balancecomparative.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalanceComparativo(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalanceComparativo(){if(this.balanceComparativeForm.invalid)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balanceComparativeForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndiceComparativo(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentIndiceComparativo(v).then(()=>{this.cargando=!1,this.file=[],this.balanceComparativeForm.reset(),this.getDocumentBalanceComparativo(),ie().fire({icon:"success",title:"Documento agregado",text:"El \xedndice comparativo se ha guardado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore Indice",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de \xedndice comparativo","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo local","error")}}markFormTouched(){Object.values(this.balanceComparativeForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalanceComparativo(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndiceComparativo(n.id_indicecomparative,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-financia-index"]],decls:217,vars:28,consts:[[1,"indice-page"],[1,"container-fluid","indice-container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","custom-tabs"],["role","presentation",1,"nav-item"],["id","tab-2025","data-toggle","tab","href","#content-2025","role","tab","aria-controls","content-2025","aria-selected","false",1,"nav-link","letra"],["id","tab-2026","data-toggle","tab","href","#content-2026","role","tab","aria-controls","content-2026","aria-selected","true",1,"nav-link","active","letra"],["id","tab-comparativo","data-toggle","tab","href","#content-comparativo","role","tab","aria-controls","content-comparativo","aria-selected","false",1,"nav-link","letra"],["id","myTabContent",1,"tab-content","custom-tab-content"],["id","content-2024","role","tabpanel","aria-labelledby","tab-2024",1,"tab-pane","fade"],[1,"content-panel"],[1,"section-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","content-2025","role","tabpanel","aria-labelledby","tab-2025",1,"tab-pane","fade"],["id","content-2026","role","tabpanel","aria-labelledby","tab-2026",1,"tab-pane","fade","show","active"],["id","content-comparativo","role","tabpanel","aria-labelledby","tab-comparativo",1,"tab-pane","fade"],["id","indice2024","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre2024"],["type","text","id","nombre2024","formControlName","nombre",1,"form-control"],["for","archivo2024"],[1,"custom-file"],["type","file","id","archivo2024","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2024",1,"custom-file-label"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn"],["id","indice2025","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2025"],["type","text","id","nombre2025","formControlName","nombre",1,"form-control"],["for","archivo2025"],["type","file","id","archivo2025","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2025",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["id","indice2026","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2026"],["type","text","id","nombre2026","formControlName","nombre",1,"form-control"],["for","archivo2026"],["type","file","id","archivo2026","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2026",1,"custom-file-label"],["id","indicecomparativo","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombreComparativo"],["type","text","id","nombreComparativo","formControlName","nombre",1,"form-control"],["for","archivoComparativo"],["type","file","id","archivoComparativo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivoComparativo",1,"custom-file-label"],["data-toggle","modal","data-target","#indice2024",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn",3,"click",4,"ngIf"],[1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],["data-toggle","modal","data-target","#indice2025",1,"col-12","action-bar"],["data-toggle","modal","data-target","#indice2026",1,"col-12","action-bar"],["data-toggle","modal","data-target","#indicecomparativo",1,"col-12","action-bar"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-list-ul"],[1,"fa","fa-refresh","fa-spin"],[1,"fa","fa-list-ol"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),e._uU(7," 2025 "),e.qZA()(),e.TgZ(8,"li",5)(9,"a",7),e._uU(10," 2026 "),e.qZA()(),e.TgZ(11,"li",5)(12,"a",8),e._uU(13," C
1omparativo "),e.qZA()()(),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"p",12),e._uU(18,"\xcdndice Financiero 2024"),e.qZA(),e.TgZ(19,"div",13)(20,"div",14),e.YNc(21,Jn,4,0,"div",15),e.TgZ(22,"div",2)(23,"div",3)(24,"div",16)(25,"table",17)(26,"thead")(27,"tr")(28,"th",18),e._uU(29,"Tipo"),e.qZA(),e.TgZ(30,"th",18),e._uU(31,"Nombre"),e.qZA(),e.TgZ(32,"th",19),e._uU(33,"Acciones"),e.qZA()()(),e.TgZ(34,"tbody"),e.YNc(35,Ti,9,3,"tr",20),e.YNc(36,$i,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(37,"div",22)(38,"div",11)(39,"p",12),e._uU(40,"\xcdndice Financiero 2025"),e.qZA(),e.TgZ(41,"div",13)(42,"div",14),e.YNc(43,Ji,4,0,"div",15),e.TgZ(44,"div",2)(45,"div",3)(46,"div",16)(47,"table",17)(48,"thead")(49,"tr")(50,"th",18),e._uU(51,"Tipo"),e.qZA(),e.TgZ(52,"th",18),e._uU(53,"Nombre"),e.qZA(),e.TgZ(54,"th",19),e._uU(55,"Acciones"),e.qZA()()(),e.TgZ(56,"tbody"),e.YNc(57,Do,9,3,"tr",20),e.YNc(58,As,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(59,"div",23)(60,"div",11)(61,"p",12),e._uU(62,"\xcdndice Financiero 2026"),e.qZA(),e.TgZ(63,"div",13)(64,"div",14),e.YNc(65,Wo,4,0,"div",15),e.TgZ(66,"div",2)(67,"div",3)(68,"div",16)(69,"table",17)(70,"thead")(71,"tr")(72,"th",18),e._uU(73,"Tipo"),e.qZA(),e.TgZ(74,"th",18),e._uU(75,"Nombre"),e.qZA(),e.TgZ(76,"th",19),e._uU(77,"Acciones"),e.qZA()()(),e.TgZ(78,"tbody"),e.YNc(79,vs,9,3,"tr",20),e.YNc(80,Is,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(81,"div",24)(82,"div",11)(83,"p",12),e._uU(84,"\xcdndice Financiero Comparativo"),e.qZA(),e.TgZ(85,"div",13)(86,"div",14),e.YNc(87,co,4,0,"div",15),e.TgZ(88,"div",2)(89,"div",3)(90,"div",16)(91,"table",17)(92,"thead")(93,"tr")(94,"th",18),e._uU(95,"Tipo"),e.qZA(),e.TgZ(96,"th",18),e._uU(97,"Nombre"),e.qZA(),e.TgZ(98,"th",19),e._uU(99,"Acciones"),e.qZA()()(),e.TgZ(100,"tbody"),e.YNc(101,Zs,9,3,"tr",20),e.YNc(102,Vo,3,0,"tr",21),e.qZA()()()()()()()()()()()()()(),e.TgZ(103,"div",25)(104,"div",26)(105,"div",27)(106,"div",28)(107,"button",29)(108,"span",30),e._uU(109,"\xd7"),e.qZA()()(),e.TgZ(110,"div",31)(111,"div",32)(112,"div",33)(113,"form",34),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2024()}),e.TgZ(114,"h1",35),e._uU(115,"Nuevo Archivo \xcdndice Financiero 2024"),e.qZA(),e.TgZ(116,"div",36)(117,"label",37),e._uU(118,"Nombre"),e.qZA(),e._UZ(119,"input",38),e.qZA(),e.TgZ(120,"div",36)(121,"label",39),e._uU(122,"Archivo"),e.qZA(),e.TgZ(123,"div",40)(124,"input",41),e.NdJ("change",function(v){return r.onSelectDocumentBalance2024(v)}),e.qZA(),e.TgZ(125,"label",42),e._uU(126,"Seleccionar archivo"),e.qZA()()(),e.TgZ(127,"div",43)(128,"button",44),e._uU(129,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(130,"div",45)(131,"div",26)(132,"div",27)(133,"div",28)(134,"button",29)(135,"span",30),e._uU(136,"\xd7"),e.qZA()()(),e.TgZ(137,"div",31)(138,"div",32)(139,"div",33)(140,"form",34),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2025()}),e.TgZ(141,"h1",35),e._uU(142,"Nuevo Archivo \xcdndice Financiero 2025"),e.qZA(),e.TgZ(143,"div",36)(144,"label",46),e._uU(145,"Nombre"),e.qZA(),e._UZ(146,"input",47),e.qZA(),e.TgZ(147,"div",36)(148,"label",48),e._uU(149,"Archivo"),e.qZA(),e.TgZ(150,"div",40)(151,"input",49),e.NdJ("change",function(v){return r.onSelectDocumentBalance2025(v)}),e.qZA(),e.TgZ(152,"label",50),e._uU(153,"Seleccionar archivo"),e.qZA()()(),e.YNc(154,Co,4,0,"div",51),e.TgZ(155,"div",43)(156,"button",52),e.YNc(157,fo,3,0,"span",21),e.YNc(158,Mo,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(159,"div",53)(160,"div",26)(161,"div",27)(162,"div",28)(163,"button",29)(164,"span",30),e._uU(165,"\xd7"),e.qZA()()(),e.TgZ(166,"div",31)(167,"div",32)(168,"div",33)(169,"form",34),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2026()}),e.TgZ(170,"h1",35),e._uU(171,"Nuevo Archivo \xcdndice Financiero 2026"),e.qZA(),e.TgZ(172,"div",36)(173,"label",54),e._uU(174,"Nombre"),e.qZA(),e._UZ(175,"input",55),e.qZA(),e.TgZ(176,"div",36)(177,"label",56),e._uU(178,"Archivo"),e.qZA(),e.TgZ(179,"div",40)(180,"input",57),e.NdJ("change",function(v){return r.onSelectDocumentBalance2026(v)}),e.qZA(),e.TgZ(181,"label",58),e._uU(182,"Seleccionar archivo"),e.qZA()()(),e.YNc(183,Ss,4,0,"div",51),e.TgZ(184,"div",43)(185,"button",52),e.YNc(186,zi,3,0,"span",21),e.YNc(187,cs,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(188,"div",59)(189,"div",26)(190,"div",27)(191,"div",28)(192,"button",29)(193,"span",30),e._uU(194,"\xd7"),e.qZA()()(),e.TgZ(195,"div",31)(196,"div",32)(197,"div",33)(198,"form",34),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalanceComparativo()}),e.TgZ(199,"h1",35),e._uU(200,"Nuevo Archivo \xcdndice Financiero Comparativo"),e.qZA(),e.TgZ(201,"div",36)(202,"label",60),e._uU(203,"Nombre"),e.qZA(),e._UZ(204,"input",61),e.qZA(),e.TgZ(205,"div",36)(206,"label",62),e._uU(207,"Archivo"),e.qZA(),e.TgZ(208,"div",40)(209,"input",63),e.NdJ("change",function(v){return r.onSelectDocumentBalanceComparativo(v)}),e.qZA(),e.TgZ(210,"label",64),e._uU(211,"Seleccionar archivo"),e.qZA()()(),e.YNc(212,po,4,0,"div",51),e.TgZ(213,"div",43)(214,"button",52),e.YNc(215,to,3,0,"span",21),e.YNc(216,bs,3,0,"span",21),e.qZA()()()()()()()()()),2&n&&(e.xp6(21),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2024),e.xp6(1),e.Q6J("ngIf",!r.balance2024||0===r.balance2024.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2025),e.xp6(1),e.Q6J("ngIf",!r.balance2025||0===r.balance2025.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2026),e.xp6(1),e.Q6J("ngIf",!r.balance2026||0===r.balance2026.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balancecomparative),e.xp6(1),e.Q6J("ngIf",!r.balancecomparative||0===r.balancecomparative.length),e.xp6(11),e.Q6J("formGroup",r.balance2024Form),e.xp6(27),e.Q6J("formGroup",r.balance2025Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2025Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balance2026Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2026Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balanceComparativeForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balanceComparativeForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}.indice-page[_ngcontent-%COMP%]{padding:16px}.indice-container[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:0 auto}.custom-tabs[_ngcontent-%COMP%]{margin:0 0 18px;background-color:#2e56a1;display:flex;justify-content:center;align-items:stretch;border:none;border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:140px;text-align:center;background-color:#2e56a1}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{width:100%;color:#fff;padding:14px 18px;font-size:18px;font-weight:500;border:none;border-radius:0;white-space:nowrap}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700}.custom-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{background-color:#fff;color:#2e56a1;font-weight:700}.letra[_ngcontent-%COMP%]{font-size:20px}.custom-tab-content[_ngcontent-%COMP%]{background-color:#fff;padding:0;border-radius:0 0 18px 18px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{border-radius:0 0 18px 18px;overflow:hidden;padding:20px}.content-panel[_ngcontent-%COMP%]{width:100%}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}.container-card-3-4[_ngcontent-%COMP%], .box3[_ngcontent-%COMP%], .box4[_ngcontent-%COMP%], .azul[_ngcontent-%COMP%], .div_training_title[_ngcontent-%COMP%], .flecha[_ngcontent-%COMP%], .imagen-valo[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%], .card-text[_ngcontent-%COMP%], .link-no-underline[_ngcontent-%COMP%]{max-width:100%}@media (max-width: 992px){.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:16px;padding:12px 16px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.indice-page[_ngcontent-%COMP%]{padding:12px}.custom-tabs[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:14px 14px 0 0}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:120px;flex:0 0 auto}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:14px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{padding:14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:110px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:13px;padding:12px 14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function ea(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",78)(2,"button",79),e._uU(3,"Nuevo"),e.qZA()()())}function Io(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2023(h))}),e._UZ(1,"img",88),e.qZA()}}function ha(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",80),e._UZ(2,"img",81),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83)(6,"a",84),e._UZ(7,"img",85),e.qZA(),e.YNc(8,Io,2,0,"button",86),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function fa(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",89),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function rs(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",90)(2,"button",79),e._uU(3,"Nuevo"),e.qZA()()())}function no(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2024(h))}),e._UZ(1,"img",88),e.qZA()}}function Bs(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",80),e._UZ(2,"img",81),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83)(6,"a",84),e._UZ(7,"img",85),e.qZA(),e.YNc(8,no,2,0,"button",86),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Ur(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",89),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function ks(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",91)(2,"button",79),e._uU(3,"Nuevo"),e.qZA()()())}function Rs(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2025(h))}),e._UZ(1,"img",88),e.qZA()}}function oo(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",80),e._UZ(2,"img",81),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83)(6,"a",84),e._UZ(7,"img",85),e.qZA(),e.YNc(8,Rs,2,0,"button",86),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function pe(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",89),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function ge(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",92)(2,"button",79),e._uU(3,"Nuevo"),e.qZA()()())}function Qe(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2026(h))}),e._UZ(1,"img",88),e.qZA()}}function Et(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",80),e._UZ(2,"img",81),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83)(6,"a",84),e._UZ(7,"img",85),e.qZA(),e.YNc(8,Qe,2,0,"button",86),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Ht(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",89),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function fn(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",93)(2,"button",79),e._uU(3,"Nuevo"),e.qZA()()())}function Rn(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalanceComparativo(h))}),e._UZ(1,"img",88),e.qZA()}}function hi(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",80),e._UZ(2,"img",81),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83)(6,"a",84),e._UZ(7,"img",85),e.qZA(),e.YNc(8,Rn,2,0,"button",86),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function fi(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",89),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Fi(c,o){1&c&&(e.TgZ(0,"div",94)(1,"div",95)(2,"b"),e._uU(3,"Subiendo Estado 2025... Espere por favor"),e.qZA()()())}function Si(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",96),e._uU(2," Agregar Estado 2025 "),e.qZA())}function Zr(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",97),e._uU(2," Procesando... "),e.qZA())}function Br(c,o){1&c&&(e.TgZ(0,"div",94)(1,"div",98)(2,"b"),e._uU(3,"Subiendo Estado 2026... Espere"),e.qZA()()())}function Dr(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",96),e._uU(2," Agregar Estado 2026 "),e.qZA())}function nr(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",97),e._uU(2," Procesando... "),e.qZA())}function ji(c,o){1&c&&(e.TgZ(0,"div",94)(1,"div",98)(2,"b"),e._uU(3,"Subiendo Comparativo... Espere un momento"),e.qZA()()())}function br(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",99),e._uU(2," Agregar Comparativo "),e.qZA())}function mi(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",100),e._uU(2," Procesando... "),e.qZA())}let Wr=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.balance2022=[],this.balance2023=[],this.balance2024=[],this.balance2025=[],this.balance2026=[],this.balancecomparative=[],this.file=[],this.cargando=!1,this.balance2022Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2023Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2024Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2025Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2026Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balanceComparativeForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentBalance2025(),this.getDocumentBalance2026(),this.getDocumentBalanceComparativo();const n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentBalance2025(){this.documentoService.getAllDocumentsEstado2025().subscribe(n=>
1{this.balance2025=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2025.push({id_estado2025:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2025.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2025(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2025(){if(this.balance2025Form.invalid)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2025Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstado2025(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstado2025(v).then(()=>{this.cargando=!1,this.file=[],this.balance2025Form.reset(),this.getDocumentBalance2025(),ie().fire({icon:"success",title:"Documento agregado",text:"El estado financiero 2025 se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore 2025",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de estado 2025","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al procesar el archivo local","error")}}onChangeVisibleBalance2025(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstado2025(n.id_estado2025,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2026(){console.log("eneto"),this.documentoService.getAllDocumentsEstado2026().subscribe(n=>{this.balance2026=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;console.log("element: ",r),this.balance2026.push({id_estado2026:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2026.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2026(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2026(){if(this.balance2026Form.invalid)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balance2026Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstado2026(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstado2026(v).then(()=>{this.cargando=!1,this.file=[],this.balance2026Form.reset(),this.getDocumentBalance2026(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error Firestore 2026",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de estado 2026","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo","error")}}markFormTouched2(){Object.values(this.balance2026Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalance2026(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstado2026(n.id_estado2026,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2022(){this.documentoService.getAllDocumentsEstado2022().subscribe(n=>{this.balance2022=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2022.push({id_estado2022:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2022.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2022(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2022(){if(this.balance2022Form.invalid)Object.values(this.balance2022Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2022Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstado2022(n,r.result).then(h=>{this.file=[],this.balance2022Form.reset(),this.getDocumentBalance2022();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstado2022(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2022(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstado2022(n.id_estado2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2023(){this.documentoService.getAllDocumentsEstado2023().subscribe(n=>{this.balance2023=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2023.push({id_estado2023:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2023.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2023(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2023(){if(this.balance2023Form.invalid)Object.values(this.balance2023Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2023Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstado2023(n,r.result).then(h=>{this.file=[],this.balance2023Form.reset(),this.getDocumentBalance2023();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstado2023(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2023(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstado2023(n.id_estado2023,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2024(){this.documentoService.getAllDocumentsEstado2024().subscribe(n=>{this.balance2024=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2024.push({id_estado2024:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2024.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2024(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2024(){if(this.balance2024Form.invalid)Object.values(this.balance2024Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{const n=this.balance2024Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstado2024(n,r.result).then(h=>{this.file=[],this.balance2024Form.reset(),this.getDocumentBalance2024();const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstado2024(v).then(()=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2024(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstado2024(n.id_estado2024,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalanceComparativo(){this.documentoService.getAllDocumentsEstadoComparativo().subscribe(n=>{this.balancecomparative=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balancecomparative.push({id_estadocomparative:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balancecomparative.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalanceComparativo(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalanceComparativo(){if(this.balanceComparativeForm.invalid)return this.markFormTouched(),void ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});this.cargando=!0;const n=this.balanceComparativeForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseEstadoComparativo(n,r.result).then(h=>{const v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentEstadoComparativo(v).then(()=>{this.cargando=!1,this.file=[],this.balanceComparativeForm.reset(),this.getDocumentBalanceComparativo(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance comparativo se ha guardado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentEstadoComparativo",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo comparativo","error")})},r.onerror=()=>{this.cargando=!1,ie().fire("Error","Error al leer el archivo local","error")}}markFormTouched(){Object.values(this.balanceComparativeForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>{r.markAsTouched()}):n.markAsTouched()})}onChangeVisibleBalanceComparativo(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentEstadoComparativo(n.id_estadocomparative,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-estado"]],decls:293,vars:33,consts:[[1,"estado-page"],[1,"container-fluid","estado-container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","custom-tabs"],[1,"nav-item"],["id","tab5","data-toggle","tab","href","#content5","role","tab","aria-controls","content5","aria-selected","false",1,"nav-link","letra"],["id","tab6","data-toggle","tab","href","#content6","role","tab","aria-controls","content6","aria-selected","false",1,"nav-link","active","letra"],["id","tab2","data-toggle","tab","href","#content3","role","tab","aria-controls","content2","aria-selected","false",1,"nav-link","letra"],["id","myTabContent",1,"tab-content","custom-tab-content"],["id","content2","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],[1,"content-panel"],[1,"section-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","content4","role","tabpanel","aria-labelledby","tab4",1,"tab-pane","fade"],["id","content5","role","tabpanel","aria-labelledby","tab5",1,"tab-pane","fade"],["id","content6","role","tabpanel","aria-labelledby","tab6",1,"tab-pane","fade","show","active"],["id","content3","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],["id","estado2022","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre2022"],["type","text","id","nombre2022","formControlName","nombre",1,"form-control"],["for","archivo2022"],[1,"custom-file"],["type","file","id","archivo2022","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2022",1,"custom-file-label"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn"],["id","estado2023","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2023"],["type","text","id","nombre2023","formControlName","nombre",1,"form-control"],["for","archivo2023"],["type","file","id","archivo2023","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2023",1,"custom-file-label"],["id","estado2024","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2024"],["type","text","id","nombre2024","formControlName","nombre",1,"form-control"],["for","archivo2024"],["type","file","id","archivo2024","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2024",1,"custom-file-label"],["id","estado2025","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2025"],["type","text","id","nombre2025","formControlName","nombre",1,"form-control"],["for","archivo2025"],["type","file","id","archivo2025","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2025",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["id","estado2026","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2026"],["type","text","id","nombre2026","formControlName","nombre",1,"form-control"],["for","archivo2026"],["type","file","id","archivo2026","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2026",1,"custom-file-label"],["id","estadocomparativo","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombreComparativo"],["type","text","id","nombreComparativo","formControlName","nombre",1,"form-control"],["for","archivoComparativo"],["type","file","id","archivoComparativo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivoComparativo",1,"custom-file-label"],["data-toggle","modal","data-target","#estado2023",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn",3,"click",4,"ngIf"],[1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],["data-toggle","modal","data-target","#estado2024",1,"col-12","action-bar"],["data-toggle","modal","data-target","#estado2025",1,"col-12","action-bar"],["data-toggle","modal","data-target","#estado2026",1,"col-12","action-bar"],["data-toggle","modal","data-target","#estadocomparativo",1,"col-12","action-bar"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-primary",2,"width","100%"],[1,"fa","fa-save"],[1,"fa","fa-spinner","fa-spin"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-plus"],[1,"fa","fa-refresh","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),e._uU(7,"2025"),e.qZA()(),e.TgZ(8,"li",5)(9,"a",7),e._uU(10,"2026"),e.qZA()(),e.TgZ(11,"li",5)(12,"a",8),e._uU(13,"Comparativo"),e.qZA()()(),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"p",12),e._uU(18,"Estado de Resultados 2023"),e.qZA(),e.TgZ(19,"div",13)(20,"div",14),e.YNc(21,ea,4,0,"div",15),e.TgZ(22,"div",2)(23,"div",3)(24,"div",16)(25,"table",17)(26,"thead")(27,"tr")(28,"th",18),e._uU(29,"Tipo"),e.qZA(),e.TgZ(30,"th",18),e._uU(31,"Nombre"),e.qZA(),e.TgZ(32,"th",19),e._uU(33,"Acciones"),e.qZA()()(),e.TgZ(34,"tbody"),e.YNc(35,ha,9,3,"tr",20),e.YNc(36,fa,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(37,"div",22)(38,"div",11)(39,"p",12),e._uU(40,"Estado de Resultados 2024"),e.qZA(),e.TgZ(41,"div",13)(42,"div",14),e.YNc(43,rs,4,0,"div",15),e.TgZ(44,"div",2)(45,"div",3)(46,"div",16)(47,"table",17)(48,"thead")(49,"tr")(
150,"th",18),e._uU(51,"Tipo"),e.qZA(),e.TgZ(52,"th",18),e._uU(53,"Nombre"),e.qZA(),e.TgZ(54,"th",19),e._uU(55,"Acciones"),e.qZA()()(),e.TgZ(56,"tbody"),e.YNc(57,Bs,9,3,"tr",20),e.YNc(58,Ur,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(59,"div",23)(60,"div",11)(61,"p",12),e._uU(62,"Estado de Resultados 2025"),e.qZA(),e.TgZ(63,"div",13)(64,"div",14),e.YNc(65,ks,4,0,"div",15),e.TgZ(66,"div",2)(67,"div",3)(68,"div",16)(69,"table",17)(70,"thead")(71,"tr")(72,"th",18),e._uU(73,"Tipo"),e.qZA(),e.TgZ(74,"th",18),e._uU(75,"Nombre"),e.qZA(),e.TgZ(76,"th",19),e._uU(77,"Acciones"),e.qZA()()(),e.TgZ(78,"tbody"),e.YNc(79,oo,9,3,"tr",20),e.YNc(80,pe,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(81,"div",24)(82,"div",11)(83,"p",12),e._uU(84,"Estado de Resultados 2026"),e.qZA(),e.TgZ(85,"div",13)(86,"div",14),e.YNc(87,ge,4,0,"div",15),e.TgZ(88,"div",2)(89,"div",3)(90,"div",16)(91,"table",17)(92,"thead")(93,"tr")(94,"th",18),e._uU(95,"Tipo"),e.qZA(),e.TgZ(96,"th",18),e._uU(97,"Nombre"),e.qZA(),e.TgZ(98,"th",19),e._uU(99,"Acciones"),e.qZA()()(),e.TgZ(100,"tbody"),e.YNc(101,Et,9,3,"tr",20),e.YNc(102,Ht,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(103,"div",25)(104,"div",11)(105,"p",12),e._uU(106,"Estado de Resultados Comparativo"),e.qZA(),e.TgZ(107,"div",13)(108,"div",14),e.YNc(109,fn,4,0,"div",15),e.TgZ(110,"div",2)(111,"div",3)(112,"div",16)(113,"table",17)(114,"thead")(115,"tr")(116,"th",18),e._uU(117,"Tipo"),e.qZA(),e.TgZ(118,"th",18),e._uU(119,"Nombre"),e.qZA(),e.TgZ(120,"th",19),e._uU(121,"Acciones"),e.qZA()()(),e.TgZ(122,"tbody"),e.YNc(123,hi,9,3,"tr",20),e.YNc(124,fi,3,0,"tr",21),e.qZA()()()()()()()()()()()()()(),e.TgZ(125,"div",26)(126,"div",27)(127,"div",28)(128,"div",29)(129,"button",30)(130,"span",31),e._uU(131,"\xd7"),e.qZA()()(),e.TgZ(132,"div",32)(133,"div",33)(134,"div",34)(135,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2022()}),e.TgZ(136,"h1",36),e._uU(137,"Nuevo Archivo Estado de Resultado 2022"),e.qZA(),e.TgZ(138,"div",37)(139,"label",38),e._uU(140,"Nombre"),e.qZA(),e._UZ(141,"input",39),e.qZA(),e.TgZ(142,"div",37)(143,"label",40),e._uU(144,"Archivo"),e.qZA(),e.TgZ(145,"div",41)(146,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2022(v)}),e.qZA(),e.TgZ(147,"label",43),e._uU(148,"Seleccionar archivo"),e.qZA()()(),e.TgZ(149,"div",44)(150,"button",45),e._uU(151,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(152,"div",46)(153,"div",27)(154,"div",28)(155,"div",29)(156,"button",30)(157,"span",31),e._uU(158,"\xd7"),e.qZA()()(),e.TgZ(159,"div",32)(160,"div",33)(161,"div",34)(162,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2023()}),e.TgZ(163,"h1",36),e._uU(164,"Nuevo Archivo Estado de Resultado 2023"),e.qZA(),e.TgZ(165,"div",37)(166,"label",47),e._uU(167,"Nombre"),e.qZA(),e._UZ(168,"input",48),e.qZA(),e.TgZ(169,"div",37)(170,"label",49),e._uU(171,"Archivo"),e.qZA(),e.TgZ(172,"div",41)(173,"input",50),e.NdJ("change",function(v){return r.onSelectDocumentBalance2023(v)}),e.qZA(),e.TgZ(174,"label",51),e._uU(175,"Seleccionar archivo"),e.qZA()()(),e.TgZ(176,"div",44)(177,"button",45),e._uU(178,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(179,"div",52)(180,"div",27)(181,"div",28)(182,"div",29)(183,"button",30)(184,"span",31),e._uU(185,"\xd7"),e.qZA()()(),e.TgZ(186,"div",32)(187,"div",33)(188,"div",34)(189,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2024()}),e.TgZ(190,"h1",36),e._uU(191,"Nuevo Archivo Estado de Resultado 2024"),e.qZA(),e.TgZ(192,"div",37)(193,"label",53),e._uU(194,"Nombre"),e.qZA(),e._UZ(195,"input",54),e.qZA(),e.TgZ(196,"div",37)(197,"label",55),e._uU(198,"Archivo"),e.qZA(),e.TgZ(199,"div",41)(200,"input",56),e.NdJ("change",function(v){return r.onSelectDocumentBalance2024(v)}),e.qZA(),e.TgZ(201,"label",57),e._uU(202,"Seleccionar archivo"),e.qZA()()(),e.TgZ(203,"div",44)(204,"button",45),e._uU(205,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(206,"div",58)(207,"div",27)(208,"div",28)(209,"div",29)(210,"button",30)(211,"span",31),e._uU(212,"\xd7"),e.qZA()()(),e.TgZ(213,"div",32)(214,"div",33)(215,"div",34)(216,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2025()}),e.TgZ(217,"h1",36),e._uU(218,"Nuevo Archivo Estado de Resultado 2025"),e.qZA(),e.TgZ(219,"div",37)(220,"label",59),e._uU(221,"Nombre"),e.qZA(),e._UZ(222,"input",60),e.qZA(),e.TgZ(223,"div",37)(224,"label",61),e._uU(225,"Archivo"),e.qZA(),e.TgZ(226,"div",41)(227,"input",62),e.NdJ("change",function(v){return r.onSelectDocumentBalance2025(v)}),e.qZA(),e.TgZ(228,"label",63),e._uU(229,"Seleccionar archivo"),e.qZA()()(),e.YNc(230,Fi,4,0,"div",64),e.TgZ(231,"div",44)(232,"button",65),e.YNc(233,Si,3,0,"span",21),e.YNc(234,Zr,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(235,"div",66)(236,"div",27)(237,"div",28)(238,"div",29)(239,"button",30)(240,"span",31),e._uU(241,"\xd7"),e.qZA()()(),e.TgZ(242,"div",32)(243,"div",33)(244,"div",34)(245,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2026()}),e.TgZ(246,"h1",36),e._uU(247,"Nuevo Archivo Estado de Resultado 2026"),e.qZA(),e.TgZ(248,"div",37)(249,"label",67),e._uU(250,"Nombre"),e.qZA(),e._UZ(251,"input",68),e.qZA(),e.TgZ(252,"div",37)(253,"label",69),e._uU(254,"Archivo"),e.qZA(),e.TgZ(255,"div",41)(256,"input",70),e.NdJ("change",function(v){return r.onSelectDocumentBalance2026(v)}),e.qZA(),e.TgZ(257,"label",71),e._uU(258,"Seleccionar archivo"),e.qZA()()(),e.YNc(259,Br,4,0,"div",64),e.TgZ(260,"div",44)(261,"button",65),e.YNc(262,Dr,3,0,"span",21),e.YNc(263,nr,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(264,"div",72)(265,"div",27)(266,"div",28)(267,"div",29)(268,"button",30)(269,"span",31),e._uU(270,"\xd7"),e.qZA()()(),e.TgZ(271,"div",32)(272,"div",33)(273,"div",34)(274,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalanceComparativo()}),e.TgZ(275,"h1",36),e._uU(276,"Nuevo Archivo Estado de Resultados Comparativo"),e.qZA(),e.TgZ(277,"div",37)(278,"label",73),e._uU(279,"Nombre"),e.qZA(),e._UZ(280,"input",74),e.qZA(),e.TgZ(281,"div",37)(282,"label",75),e._uU(283,"Archivo"),e.qZA(),e.TgZ(284,"div",41)(285,"input",76),e.NdJ("change",function(v){return r.onSelectDocumentBalanceComparativo(v)}),e.qZA(),e.TgZ(286,"label",77),e._uU(287,"Seleccionar archivo"),e.qZA()()(),e.YNc(288,ji,4,0,"div",64),e.TgZ(289,"div",44)(290,"button",65),e.YNc(291,br,3,0,"span",21),e.YNc(292,mi,3,0,"span",21),e.qZA()()()()()()()()()),2&n&&(e.xp6(21),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2023),e.xp6(1),e.Q6J("ngIf",!r.balance2023||0===r.balance2023.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2024),e.xp6(1),e.Q6J("ngIf",!r.balance2024||0===r.balance2024.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2025),e.xp6(1),e.Q6J("ngIf",!r.balance2025||0===r.balance2025.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2026),e.xp6(1),e.Q6J("ngIf",!r.balance2026||0===r.balance2026.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balancecomparative),e.xp6(1),e.Q6J("ngIf",!r.balancecomparative||0===r.balancecomparative.length),e.xp6(11),e.Q6J("formGroup",r.balance2022Form),e.xp6(27),e.Q6J("formGroup",r.balance2023Form),e.xp6(27),e.Q6J("formGroup",r.balance2024Form),e.xp6(27),e.Q6J("formGroup",r.balance2025Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2025Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balance2026Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2026Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balanceComparativeForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balanceComparativeForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}.estado-page[_ngcontent-%COMP%]{padding:16px}.estado-container[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:0 auto}.custom-tabs[_ngcontent-%COMP%]{margin:0 0 18px;background-color:#2e56a1;display:flex;justify-content:center;align-items:stretch;border:none;border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:140px;text-align:center;background-color:#2e56a1}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{width:100%;color:#fff;padding:14px 18px;font-size:18px;font-weight:500;border:none;border-radius:0;white-space:nowrap}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700}.custom-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{background-color:#fff;color:#2e56a1;font-weight:700}.letra[_ngcontent-%COMP%]{font-size:20px}.custom-tab-content[_ngcontent-%COMP%]{background-color:#fff;padding:0;border-radius:0 0 18px 18px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{border-radius:0 0 18px 18px;overflow:hidden;padding:20px}.content-panel[_ngcontent-%COMP%]{width:100%}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}.container-card-3-4[_ngcontent-%COMP%], .box3[_ngcontent-%COMP%], .box4[_ngcontent-%COMP%], .azul[_ngcontent-%COMP%], .div_training_title[_ngcontent-%COMP%], .flecha[_ngcontent-%COMP%], .imagen-valo[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%], .card-text[_ngcontent-%COMP%], .link-no-underline[_ngcontent-%COMP%]{max-width:100%}@media (max-width: 992px){.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:16px;padding:12px 16px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.estado-page[_ngcontent-%COMP%]{padding:12px}.custom-tabs[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:14px 14px 0 0}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:120px;flex:0 0 auto}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:14px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{padding:14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:110px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:13px;padding:12px 14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function Rr(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",70)(2,"button",71),e._uU(3,"Nuevo"),e.qZA()()())}function Hr(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2023(h))}),e._UZ(1,"img",80),e.qZA()}}function ur(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",72),e._UZ(2,"img",73),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",75)(6,"a",76),e._UZ(7,"img",77),e.qZA(),e.YNc(8,Hr,2,0,"button",78),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Yo(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",81),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function ys(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",82)(2,"button",71),e._uU(3,"Nuevo"),e.qZA()()())}function Jo(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2024(h))}),e._UZ(1,"img",80),e.qZA()}}function os(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",72),e._UZ(2,"img",73),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",75)(6,"a",76),e._UZ(7,"img",77),e.qZA(),e.YNc(8,Jo,2,0,"button",78),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function On(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",81),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Qi(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",83)(2,"button",71),e._uU(3,"Nuevo"),e.qZA()()())}function So(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2025(h))}),e._UZ(1,"img",80),e.qZA()}}function ko(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",72),e._UZ(2,"img",73),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",75)(6,"a",76),e._UZ(7,"img",77),e.qZA(),e.YNc(8,So,2,0,"button",78),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function so(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",81),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function J(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",84)(2,"button",71),e._uU(3,"Nuevo"),e.qZA()()())}function W(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",79),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2026(h))}),e._UZ(1,"img",80),e.qZA()}}function H(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",72),e._UZ(2,"img",73),e.qZA(),e.TgZ(3,"td",74),e._uU(4),e.qZA(),e.TgZ(5,"td",75)(6,"a",76),e._UZ(7,"img",77),e.qZA(),e.YNc(8,W,2,0,"button",78),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Se(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",81),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function ln(c,o){1&c&&(e.TgZ(0,"div",85)(1,"div",86)(2,"b"),e._uU(3,"Subiendo Calificaci\xf3n 2025... Espere"),e.qZA()()())}function pi(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar Calificaci\xf3n 2025"),e.qZA())}function Hi(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",87),e._uU(2," Cargando... "),e.qZA())}function us(c,o){1&c&&(e.TgZ(0,"div",85)(1,"div",86)(2,"b"),e._uU(3,"Subiendo Balance 2026... No cierre la ventana"),e.qZA()()())}function qo(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar Balance"),e.qZA())}function Or(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",88),e._uU(2," Subiendo... "),e.qZA())}let Me=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.balance2022=[],this.balance2023=[],this.balance2024=[],this.balance2025=[],this.balance2026=[],this.balancecomparative=[],this.file=[],this.cargando=!1,this.balance2022Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2023Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2024Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2025Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2026Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balanceComparativeForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentBalance2025(),this.getDocumentBalance2026(),this.getDocumentBalanceComparativo();let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario,this.adminpdf=!!this.usuario}getDocumentBalance2022(){this.documentoService.getAllDocumentsActiveCalification2022().subscribe(n=>
1{this.balance2022=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2022.push({id_activecalification2022:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2022.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2022(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2022(){if(this.balance2022Form.invalid)Object.values(this.balance2022Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2022Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseActiveCalification2022(n,r.result).then(h=>{this.file=[],this.balance2022Form.reset(),this.getDocumentBalance2022();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentActiveCalification2022(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2022(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentActiveCalification2022(n.id_activecalification2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2023(){this.documentoService.getAllDocumentsActiveCalification2023().subscribe(n=>{this.balance2023=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2023.push({id_activecalification2023:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2023.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2023(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2023(){if(this.balance2023Form.invalid)Object.values(this.balance2023Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2023Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseActiveCalification2023(n,r.result).then(h=>{this.file=[],this.balance2023Form.reset(),this.getDocumentBalance2023();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentActiveCalification2023(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2023(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentActiveCalification2023(n.id_activecalification2023,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2024(){this.documentoService.getAllDocumentsActiveCalification2024().subscribe(n=>{this.balance2024=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2024.push({id_activecalification2024:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2024.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2024(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2024(){if(this.balance2024Form.invalid)Object.values(this.balance2024Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2024Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseActiveCalification2024(n,r.result).then(h=>{this.file=[],this.balance2024Form.reset(),this.getDocumentBalance2024();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentActiveCalification2024(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2024(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentActiveCalification2024(n.id_activecalification2024,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2025(){this.documentoService.getAllDocumentsActiveCalification2025().subscribe(n=>{this.balance2025=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2025.push({id_activecalification2025:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2025.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2025(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2025(){if(this.balance2025Form.invalid)this.markFormTouched2(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.balance2025Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseActiveCalification2025(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentActiveCalification2025(v).then(M=>{this.cargando=!1,this.file=[],this.balance2025Form.reset(),this.getDocumentBalance2025(),ie().fire({icon:"success",title:"Documento agregado",text:"La calificaci\xf3n de activos 2025 se ha registrado con \xe9xito"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocument 2025",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de calificaci\xf3n 2025","error")})}}}markFormTouched2(){Object.values(this.balance2025Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisibleBalance2025(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentActiveCalification2025(n.id_activecalification2025,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2026(){this.documentoService.getAllDocumentsActiveCalification2026().subscribe(n=>{this.balance2026=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2026.push({id_activecalification2026:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2026.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2026(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2026(){if(this.balance2026Form.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.balance2026Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseActiveCalification2026(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentActiveCalification2026(v).then(M=>{this.cargando=!1,this.file=[],this.balance2026Form.reset(),this.getDocumentBalance2026(),ie().fire({icon:"success",title:"Documento agregado",text:"La calificaci\xf3n de activos 2026 se ha guardado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocument",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de calificaci\xf3n","error")})}}}markFormTouched(){Object.values(this.balance2026Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisibleBalance2026(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentActiveCalification2026(n.id_activecalification2026,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalanceComparativo(){this.documentoService.getAllDocumentsIndiceComparativo().subscribe(n=>{this.balancecomparative=[],n.forEach(r=>{this.balancecomparative.push({id_indicecomparative:r.payload.doc.id,...r.payload.doc.data()})})})}onSelectDocumentBalanceComparativo(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalanceComparativo(){if(this.balanceComparativeForm.invalid)Object.values(this.balanceComparativeForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balanceComparativeForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseIndiceComparativo(n,r.result).then(h=>{this.file=[],this.balanceComparativeForm.reset(),this.getDocumentBalanceComparativo(),this.documentoService.postDocumentIndiceComparativo({nameDocument:n,url:h,visible:!0}).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalanceComparativo(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentIndiceComparativo(n.id_indicecomparative,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-active-calification"]],decls:239,vars:25,consts:[[1,"active-calification-page"],[1,"container-fluid","active-calification-container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","custom-tabs"],[1,"nav-item"],["id","tab5","data-toggle","tab","href","#content5","role","tab","aria-controls","content5","aria-selected","true",1,"nav-link","letra"],["id","tab6","data-toggle","tab","href","#content6","role","tab","aria-controls","content6","aria-selected","true",1,"nav-link","active","letra"],["id","myTabContent",1,"tab-content","custom-tab-content"],["id","content2","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],[1,"content-panel"],[1,"section-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","content4","role","tabpanel","aria-labelledby","tab4",1,"tab-pane","fade"],["id","content5","role","tabpanel","aria-labelledby","tab5",1,"tab-pane","fade"],["id","content6","role","tabpanel","aria-labelledby","tab6",1,"tab-pane","fade","show","active"],["id","activo2022","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre2022"],["type","text","id","nombre2022","formControlName","nombre",1,"form-control"],["for","archivo2022"],[1,"custom-file"],["type","file","id","archivo2022","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2022",1,"custom-file-label"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn"],["id","activo2023","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2023"],["type","text","id","nombre2023","formControlName","nombre",1,"form-control"],["for","archivo2023"],["type","file","id","archivo2023","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2023",1,"custom-file-label"],["id","activo2024","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2024"],["type","text","id","nombre2024","formControlName","nombre",1,"form-control"],["for","archivo2024"],["type","file","id","archivo2024","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2024",1,"custom-file-label"],["id","activo2025","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2025"],["type","text","id","nombre2025","formControlName","nombre",1,"form-control"],["for","archivo2025"],["type","file","id","archivo2025","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2025",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["id","activo2026","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2026"],["type","text","id","nombre2026","formControlName","nombre",1,"form-control"],["for","archivo2026"],["type","file","id","archivo2026","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2026",1,"custom-file-label"],["data-toggle","modal","data-target","#activo2023",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn",3,"click",4,"ngIf"],[1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],["data-toggle","modal","data-target","#activo2024",1,"col-12","action-bar"],["data-toggle","modal","data-target","#activo2025",1,"col-12","action-bar"],["data-toggle","modal","data-target","#activo2026",1,"col-12","action-bar"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-spinner","fa-spin"],[1,"fa","fa-cog","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),e._uU(7,"2025"),e.qZA()(),e.TgZ(8,"li",5)(9,"a",7),e._uU(10,"2026"),e.qZA()()(),e.TgZ(11,"div",8)(12,"div",9)(13,"div",10)(14,"p",11),e._uU(15,"Calificaci\xf3n Activos de Riegos 2023"),e.qZA(),e.TgZ(16,"div",12)(17,"div",13),e.YNc(18,Rr,4,0,"div",14),e.TgZ(19,"div",2)(20,"div",3)(21,"div",15)(22,"table",16)(23,"thead")(24,"tr")(25,"th",17),e._uU(26,"Tipo"),e.qZA(),e.TgZ(27,"th",17),e._uU(28,"Nombre"),e.qZA(),e.TgZ(29,"th",18),e._uU(30,"Acciones"),e.qZA()()(),e.TgZ(31,"tbody"),e.YNc(32,ur,9,3,"tr",19),e.YNc(33,Yo,3,0,"tr",20),e.qZA()()()()()()()()(),e.TgZ(34,"div",21)(35,"div",10)(36,"p",11),e._uU(37,"Calificaci\xf3n Activos de Riegos 2024"),e.qZA(),e.TgZ(38,"div",12)(39,"div",13),e.YNc(40,ys,4,0,"div",14),e.TgZ(41,"div",2)(42,"div",3)(43,"div",15)(44,"table",16)(45,"thead")(46,"tr")(47,"th",17),e._uU(48,"Tipo"),e.qZA(),e.TgZ(49,"th",17),e._uU(50,"Nombre"),e.qZA(),e.TgZ(51,"th",18),e._uU(52,"Acciones"),e.qZA()()(),e.TgZ(53,"tbody"),e.YNc(54,os,9,3,"tr",19),e.YNc(55,On,3,0,"tr",20),e.qZA()()()()()()()()(),e.TgZ(56,"div",22)(57,"div",10)(58,"p",11),e._uU(59,"Calificaci\xf3n Activos de Riegos 2025"),e.qZA(),e.TgZ(60,"div",12)(61,"div",13),e.YNc(62,Qi,4,0,"div",14),e.TgZ(63,"div",2)(64,"div",3)(65,"div",15)(66,"table",16)(67,"thead")(68,"tr")(69,"th",17),e._uU(70,"Tipo"),e.qZA(),e.TgZ(71,"th",17),e._uU(72,"Nombre"),e.qZA(),e.TgZ(73,"th",18),e._uU(74,"Acciones"),e.qZA()()(),e.TgZ(75,"tbody"),e.YNc(76,ko,9,3,"tr",19),e.YNc(77,so,3,0,"tr",20),e.qZA()()()()()()()()(),e.TgZ(78,"div",23)(79,"div",10)(80,"p",11),e._uU(81,"Calificaci\xf3n Activos de Riegos 2026"),e.qZA(),e.TgZ(82,"div",12)(83,"div",13),e.YNc(84,J,4,0,"div",14),e.TgZ(85,"div",2)(86,"div",3)(87,"div",15)(88,"table",16)(89,"thead")(90,"tr")(91,"th",17),e._uU(92,"Tipo"),e.qZA(),e.TgZ(93,"th",17),e._uU(94,"Nombre"),e.qZA(),e.TgZ(95,"th",18),e._uU(96,"Acciones"),e.qZA()()(),e.TgZ(97,"tbody"),e.YNc(98,H,9,3,"tr",19),e.YNc(99,Se,3,0,"tr",20),e.qZA()()()()()()()()()()()()()(),e.TgZ(100,"div",24)(101,"div",25)(102,"div",26)(103,"div",27)(104,"button",28)(105,"span",29),e._uU(106,"\xd7"),e.qZA()()(),e.TgZ(107,"div",30)(108,"div",31)(109,"div",32)(110,"form",33),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2022()}),e.TgZ(111,"h1",34),e._uU(112,"Nuevo Archivo Calificaci\xf3n de Actividad de Riesgo 2022"),e.qZA(),e.TgZ(113,"div",35)(114,"label",36),e._uU(115,"Nombre"),e.qZA(),e._UZ(116,"input",37),e.qZA(),e.TgZ(117,"div",35)(118,"label",38),e._uU(119,"Archivo"),e.qZA(),e.TgZ(120,"div",39)(121,"input",40),e.NdJ("change",function(v){return r.onSelectDocumentBalance2022(v)}),e.qZA(),e.TgZ(122,"label",41),e._uU(123,"Seleccionar archivo"),e.qZA()()(),e.TgZ(124,"div",42)(125,"button",43),e._uU(126,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(127,"div",44)(128,"div",25)(129,"div",26)(130,"div",27)(131,"button",28)(132,"span",29),e._uU(133,"\xd7"),e.qZA()()(),e.TgZ(134,"div",30)(135,"div",31)(136,"div",32)(137,"form",33),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2023()}),e.TgZ(138,"h1",34),e._uU(139,"Nuevo Archivo Calificaci\xf3n de Actividad de Riesgo 2023"),e.qZA(),e.TgZ(140,"div",35)(141,"label",45),e._uU(142,"Nombre"),e.qZA(),e._UZ(143,"input",46),e.qZA(),e.TgZ(144,"div",35)(145,"label",47),e._uU(146,"Archivo"),e.qZA(),e.TgZ(147,"div",39)(148,"input",48),e.NdJ("change",function(v){return r.onSelectDocumentBalance2023(v)}
1),e.qZA(),e.TgZ(149,"label",49),e._uU(150,"Seleccionar archivo"),e.qZA()()(),e.TgZ(151,"div",42)(152,"button",43),e._uU(153,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(154,"div",50)(155,"div",25)(156,"div",26)(157,"div",27)(158,"button",28)(159,"span",29),e._uU(160,"\xd7"),e.qZA()()(),e.TgZ(161,"div",30)(162,"div",31)(163,"div",32)(164,"form",33),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2024()}),e.TgZ(165,"h1",34),e._uU(166,"Nuevo Archivo Calificaci\xf3n de Actividad de Riesgo 2024"),e.qZA(),e.TgZ(167,"div",35)(168,"label",51),e._uU(169,"Nombre"),e.qZA(),e._UZ(170,"input",52),e.qZA(),e.TgZ(171,"div",35)(172,"label",53),e._uU(173,"Archivo"),e.qZA(),e.TgZ(174,"div",39)(175,"input",54),e.NdJ("change",function(v){return r.onSelectDocumentBalance2024(v)}),e.qZA(),e.TgZ(176,"label",55),e._uU(177,"Seleccionar archivo"),e.qZA()()(),e.TgZ(178,"div",42)(179,"button",43),e._uU(180,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(181,"div",56)(182,"div",25)(183,"div",26)(184,"div",27)(185,"button",28)(186,"span",29),e._uU(187,"\xd7"),e.qZA()()(),e.TgZ(188,"div",30)(189,"div",31)(190,"div",32)(191,"form",33),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2025()}),e.TgZ(192,"h1",34),e._uU(193,"Nuevo Archivo Calificaci\xf3n de Actividad de Riesgo 2025"),e.qZA(),e.TgZ(194,"div",35)(195,"label",57),e._uU(196,"Nombre"),e.qZA(),e._UZ(197,"input",58),e.qZA(),e.TgZ(198,"div",35)(199,"label",59),e._uU(200,"Archivo"),e.qZA(),e.TgZ(201,"div",39)(202,"input",60),e.NdJ("change",function(v){return r.onSelectDocumentBalance2025(v)}),e.qZA(),e.TgZ(203,"label",61),e._uU(204,"Seleccionar archivo"),e.qZA()()(),e.YNc(205,ln,4,0,"div",62),e.TgZ(206,"div",42)(207,"button",63),e.YNc(208,pi,2,0,"span",20),e.YNc(209,Hi,3,0,"span",20),e.qZA()()()()()()()()(),e.TgZ(210,"div",64)(211,"div",25)(212,"div",26)(213,"div",27)(214,"button",28)(215,"span",29),e._uU(216,"\xd7"),e.qZA()()(),e.TgZ(217,"div",30)(218,"div",31)(219,"div",32)(220,"form",33),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2026()}),e.TgZ(221,"h1",34),e._uU(222,"Nuevo Archivo Calificaci\xf3n de Actividad de Riesgo 2026"),e.qZA(),e.TgZ(223,"div",35)(224,"label",65),e._uU(225,"Nombre"),e.qZA(),e._UZ(226,"input",66),e.qZA(),e.TgZ(227,"div",35)(228,"label",67),e._uU(229,"Archivo"),e.qZA(),e.TgZ(230,"div",39)(231,"input",68),e.NdJ("change",function(v){return r.onSelectDocumentBalance2026(v)}),e.qZA(),e.TgZ(232,"label",69),e._uU(233,"Seleccionar archivo"),e.qZA()()(),e.YNc(234,us,4,0,"div",62),e.TgZ(235,"div",42)(236,"button",63),e.YNc(237,qo,2,0,"span",20),e.YNc(238,Or,3,0,"span",20),e.qZA()()()()()()()()()),2&n&&(e.xp6(18),e.Q6J("ngIf",r.admin||r.adminpdf),e.xp6(14),e.Q6J("ngForOf",r.balance2023),e.xp6(1),e.Q6J("ngIf",!r.balance2023||0===r.balance2023.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2024),e.xp6(1),e.Q6J("ngIf",!r.balance2024||0===r.balance2024.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2025),e.xp6(1),e.Q6J("ngIf",!r.balance2025||0===r.balance2025.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2026),e.xp6(1),e.Q6J("ngIf",!r.balance2026||0===r.balance2026.length),e.xp6(11),e.Q6J("formGroup",r.balance2022Form),e.xp6(27),e.Q6J("formGroup",r.balance2023Form),e.xp6(27),e.Q6J("formGroup",r.balance2024Form),e.xp6(27),e.Q6J("formGroup",r.balance2025Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2025Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balance2026Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2026Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}.active-calification-page[_ngcontent-%COMP%]{padding:16px}.active-calification-container[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:0 auto}.custom-tabs[_ngcontent-%COMP%]{margin:0 0 18px;background-color:#2e56a1;display:flex;justify-content:center;align-items:stretch;border:none;border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:140px;text-align:center;background-color:#2e56a1}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{width:100%;color:#fff;padding:14px 18px;font-size:18px;font-weight:500;border:none;border-radius:0;white-space:nowrap}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700}.custom-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{background-color:#fff;color:#2e56a1;font-weight:700}.letra[_ngcontent-%COMP%]{font-size:20px}.custom-tab-content[_ngcontent-%COMP%]{background-color:#fff;padding:0;border-radius:0 0 18px 18px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{border-radius:0 0 18px 18px;overflow:hidden;padding:20px}.content-panel[_ngcontent-%COMP%]{width:100%}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}.container-card-3-4[_ngcontent-%COMP%], .box3[_ngcontent-%COMP%], .box4[_ngcontent-%COMP%], .azul[_ngcontent-%COMP%], .div_training_title[_ngcontent-%COMP%], .flecha[_ngcontent-%COMP%], .imagen-valo[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%], .card-text[_ngcontent-%COMP%], .link-no-underline[_ngcontent-%COMP%]{max-width:100%}@media (max-width: 992px){.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:16px;padding:12px 16px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.active-calification-page[_ngcontent-%COMP%]{padding:12px}.custom-tabs[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:14px 14px 0 0}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:120px;flex:0 0 auto}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:14px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{padding:14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:110px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:13px;padding:12px 14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();function Fe(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",72)(2,"button",73),e._uU(3,"Nuevo"),e.qZA()()())}function vt(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2023(h))}),e._UZ(1,"img",82),e.qZA()}}function Qt(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",74),e._UZ(2,"img",75),e.qZA(),e.TgZ(3,"td",76),e._uU(4),e.qZA(),e.TgZ(5,"td",77)(6,"a",78),e._UZ(7,"img",79),e.qZA(),e.YNc(8,vt,2,0,"button",80),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Pn(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",83),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Zn(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",84)(2,"button",73),e._uU(3,"Nuevo"),e.qZA()()())}function ci(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2024(h))}),e._UZ(1,"img",82),e.qZA()}}function dr(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",74),e._UZ(2,"img",75),e.qZA(),e.TgZ(3,"td",76),e._uU(4),e.qZA(),e.TgZ(5,"td",77)(6,"a",78),e._UZ(7,"img",79),e.qZA(),e.YNc(8,ci,2,0,"button",80),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function or(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",83),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function wr(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",85)(2,"button",73),e._uU(3,"Nuevo"),e.qZA()()())}function pr(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2025(h))}),e._UZ(1,"img",82),e.qZA()}}function Bi(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",74),e._UZ(2,"img",75),e.qZA(),e.TgZ(3,"td",76),e._uU(4),e.qZA(),e.TgZ(5,"td",77)(6,"a",78),e._UZ(7,"img",79),e.qZA(),e.YNc(8,pr,2,0,"button",8
10),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function Ro(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",83),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Cs(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",86)(2,"button",73),e._uU(3,"Nuevo"),e.qZA()()())}function Qo(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalance2026(h))}),e._UZ(1,"img",82),e.qZA()}}function ta(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",74),e._UZ(2,"img",75),e.qZA(),e.TgZ(3,"td",76),e._uU(4),e.qZA(),e.TgZ(5,"td",77)(6,"a",78),e._UZ(7,"img",79),e.qZA(),e.YNc(8,Qo,2,0,"button",80),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function na(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",83),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Xo(c,o){1&c&&(e.TgZ(0,"div",2)(1,"div",87)(2,"button",73),e._uU(3,"Nuevo"),e.qZA()()())}function ao(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",81),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleBalanceComparativo(h))}),e._UZ(1,"img",82),e.qZA()}}function xs(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",74),e._UZ(2,"img",75),e.qZA(),e.TgZ(3,"td",76),e._uU(4),e.qZA(),e.TgZ(5,"td",77)(6,"a",78),e._UZ(7,"img",79),e.qZA(),e.YNc(8,ao,2,0,"button",80),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.Oqu(n.nameDocument),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function $a(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",83),e._uU(2,"No hay documentos disponibles"),e.qZA()())}function Ra(c,o){1&c&&(e.TgZ(0,"div",88)(1,"div",89)(2,"b"),e._uU(3,"Subiendo Balance 2025... Espere por favor"),e.qZA()()())}function Eo(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar Balance 2025"),e.qZA())}function xo(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",90),e._uU(2," Subiendo... "),e.qZA())}function $r(c,o){1&c&&(e.TgZ(0,"div",88)(1,"div",89)(2,"b"),e._uU(3,"Subiendo Balance 2026... No cierre la ventana"),e.qZA()()())}function Tr(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar Balance"),e.qZA())}function yl(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",91),e._uU(2," Subiendo... "),e.qZA())}function Cl(c,o){1&c&&(e.TgZ(0,"div",88)(1,"div",89)(2,"b"),e._uU(3,"Subiendo Balance Comparativo... Por favor espere"),e.qZA()()())}function zs(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar Comparativo"),e.qZA())}function dc(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",92),e._uU(2," Procesando... "),e.qZA())}let Na=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.balance2022=[],this.balance2023=[],this.balance2024=[],this.balance2025=[],this.balance2026=[],this.balancecomparative=[],this.file=[],this.cargando=!1,this.balance2022Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2023Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2024Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2025Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balance2026Form=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]}),this.balanceComparativeForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentBalance2025(),this.getDocumentBalance2026(),this.getDocumentBalanceComparativo();let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentBalance2025(){this.documentoService.getAllDocumentsPatrimonio2025().subscribe(n=>{this.balance2025=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2025.push({id_patrimonio2025:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2025.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2025(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2025(){if(this.balance2025Form.invalid)this.markFormTouched2(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.balance2025Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonio2025(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonio2025(v).then(M=>{this.cargando=!1,this.file=[],this.balance2025Form.reset(),this.getDocumentBalance2025(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance 2025 se ha cargado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentPatrimonio2025",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del balance 2025","error")})}}}markFormTouched2(){Object.values(this.balance2025Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisibleBalance2025(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonio2025(n.id_patrimonio2025,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2026(){this.documentoService.getAllDocumentsPatrimonio2026().subscribe(n=>{this.balance2026=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2026.push({id_patrimonio2026:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2026.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2026(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2026(){if(this.balance2026Form.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.balance2026Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonio2026(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonio2026(v).then(M=>{this.cargando=!1,this.file=[],this.balance2026Form.reset(),this.getDocumentBalance2026(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance se ha registrado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentPatrimonio2026",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo del balance","error")})}}}markFormTouched(){Object.values(this.balance2026Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisibleBalance2026(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonio2026(n.id_patrimonio2026,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2022(){this.documentoService.getAllDocumentsPatrimonio2022().subscribe(n=>{this.balance2022=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2022.push({id_patrimonio2022:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2022.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2022(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2022(){if(this.balance2022Form.invalid)Object.values(this.balance2022Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2022Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonio2022(n,r.result).then(h=>{this.file=[],this.balance2022Form.reset(),this.getDocumentBalance2022();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonio2022(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2022(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonio2022(n.id_patrimonio2022,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2023(){this.documentoService.getAllDocumentsPatrimonio2023().subscribe(n=>{this.balance2023=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2023.push({id_patrimonio2023:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2023.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2023(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalance2023(){if(this.balance2023Form.invalid)Object.values(this.balance2023Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2023Form.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonio2023(n,r.result).then(h=>{this.file=[],this.balance2023Form.reset(),this.getDocumentBalance2023();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonio2023(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2023(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonio2023(n.id_patrimonio2023,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalance2024(){this.documentoService.getAllDocumentsPatrimonio2024().subscribe(n=>{this.balance2024=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balance2024.push({id_patrimonio2024:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balance2024.sort((r,h)=>r.fecha-h.fecha)})}onSelectDocumentBalance2024(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}
1onAddDocumentBalance2024(){if(this.balance2024Form.invalid)Object.values(this.balance2024Form.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()}),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{let n=this.balance2024Form.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonio2024(n,r.result).then(h=>{this.file=[],this.balance2024Form.reset(),this.getDocumentBalance2024();let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonio2024(v).then(M=>{ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})})})}}}onChangeVisibleBalance2024(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonio2024(n.id_patrimonio2024,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}getDocumentBalanceComparativo(){this.documentoService.getAllDocumentsPatrimonioComparativo().subscribe(n=>{this.balancecomparative=[],n.forEach(r=>{const h=r.payload.doc.data().fecha;this.balancecomparative.push({id_patrimoniocomparative:r.payload.doc.id,fecha:h,...r.payload.doc.data()})}),this.balancecomparative.sort((r,h)=>r.fecha-h.fecha),console.log("contratos-adhesion: ",this.balancecomparative)})}onSelectDocumentBalanceComparativo(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentBalanceComparativo(){if(this.balanceComparativeForm.invalid)this.markFormTouche3(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.balanceComparativeForm.get("nombre")?.value,r=new FileReader;
1r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebasePatrimonioComparativo(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentPatrimonioComparativo(v).then(M=>{this.cargando=!1,this.file=[],this.balanceComparativeForm.reset(),this.getDocumentBalanceComparativo(),ie().fire({icon:"success",title:"Documento agregado",text:"El balance comparativo se ha guardado correctamente"})}).catch(M=>{this.cargando=!1,console.error("Error en postDocumentPatrimonioComparativo",M)})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo comparativo","error")})}}}markFormTouche3(){Object.values(this.balanceComparativeForm.controls).forEach(n=>{n instanceof x.cw?Object.values(n.controls).forEach(r=>r.markAsTouched()):n.markAsTouched()})}onChangeVisibleBalanceComparativo(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentPatrimonioComparativo(n.id_patrimoniocomparative,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-patrimoni"]],decls:266,vars:32,consts:[[1,"patrimoni-page"],[1,"container-fluid","patrimoni-container"],[1,"row"],[1,"col-12"],["id","myTab","role","tablist",1,"nav","nav-tabs","custom-tabs"],[1,"nav-item"],["id","tab4","data-toggle","tab","href","#content5","role","tab","aria-controls","content5","aria-selected","false",1,"nav-link","letra"],["id","tab6","data-toggle","tab","href","#content6","role","tab","aria-controls","content6","aria-selected","false",1,"nav-link","active","letra"],["id","tab2","data-toggle","tab","href","#contentA3","role","tab","aria-controls","content2","aria-selected","false",1,"nav-link","letra"],["id","myTabContent",1,"tab-content","custom-tab-content"],["id","content2","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],[1,"content-panel"],[1,"section-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","content4","role","tabpanel","aria-labelledby","tab4",1,"tab-pane","fade"],["id","content5","role","tabpanel","aria-labelledby","tab5",1,"tab-pane","fade"],["id","content6","role","tabpanel","aria-labelledby","tab6",1,"tab-pane","fade","show","active"],["id","contentA3","role","tabpanel","aria-labelledby","tab2",1,"tab-pane","fade"],["id","patrimonio2023","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre2023"],["type","text","id","nombre2023","formControlName","nombre",1,"form-control"],["for","archivo2023"],[1,"custom-file"],["type","file","id","archivo2023","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2023",1,"custom-file-label"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn"],["id","patrimonio2024","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2024"],["type","text","id","nombre2024","formControlName","nombre",1,"form-control"],["for","archivo2024"],["type","file","id","archivo2024","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2024",1,"custom-file-label"],["id","patrimonio2025","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2025"],["type","text","id","nombre2025","formControlName","nombre",1,"form-control"],["for","archivo2025"],["type","file","id","archivo2025","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2025",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["id","patrimonio2026","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombre2026"],["type","text","id","nombre2026","formControlName","nombre",1,"form-control"],["for","archivo2026"],["type","file","id","archivo2026","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo2026",1,"custom-file-label"],["id","patrimoniocomparativo","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["for","nombreComparativo"],["type","text","id","nombreComparativo","formControlName","nombre",1,"form-control"],["for","archivoComparativo"],["type","file","id","archivoComparativo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivoComparativo",1,"custom-file-label"],["data-toggle","modal","data-target","#patrimonio2023",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn",3,"click",4,"ngIf"],[1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],["data-toggle","modal","data-target","#patrimonio2024",1,"col-12","action-bar"],["data-toggle","modal","data-target","#patrimonio2025",1,"col-12","action-bar"],["data-toggle","modal","data-target","#patrimonio2026",1,"col-12","action-bar"],["data-toggle","modal","data-target","#patrimoniocomparativo",1,"col-12","action-bar"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"fa","fa-spinner","fa-spin"],[1,"fa","fa-cog","fa-spin"],[1,"fa","fa-refresh","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),e._uU(7,"2025"),e.qZA()(),e.TgZ(8,"li",5)(9,"a",7),e._uU(10,"2026"),e.qZA()(),e.TgZ(11,"li",5)(12,"a",8),e._uU(13,"Comparativo"),e.qZA()()(),e.TgZ(14,"div",9)(15,"div",10)(16,"div",11)(17,"p",12),e._uU(18,"Patrimonio T\xe9cnico 2023"),e.qZA(),e.TgZ(19,"div",13)(20,"div",14),e.YNc(21,Fe,4,0,"div",15),e.TgZ(22,"div",2)(23,"div",3)(24,"div",16)(25,"table",17)(26,"thead")(27,"tr")(28,"th",18),e._uU(29,"Tipo"),e.qZA(),e.TgZ(30,"th",18),e._uU(31,"Nombre"),e.qZA(),e.TgZ(32,"th",19),e._uU(33,"Acciones"),e.qZA()()(),e.TgZ(34,"tbody"),e.YNc(35,Qt,9,3,"tr",20),e.YNc(36,Pn,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(37,"div",22)(38,"div",11)(39,"p",12),e._uU(40,"Patrimonio T\xe9cnico 2024"),e.qZA(),e.TgZ(41,"div",13)(42,"div",14),e.YNc(43,Zn,4,0,"div",15),e.TgZ(44,"div",2)(45,"div",3)(46,"div",16)(47,"table",17)(48,"thead")(49,"tr")(
150,"th",18),e._uU(51,"Tipo"),e.qZA(),e.TgZ(52,"th",18),e._uU(53,"Nombre"),e.qZA(),e.TgZ(54,"th",19),e._uU(55,"Acciones"),e.qZA()()(),e.TgZ(56,"tbody"),e.YNc(57,dr,9,3,"tr",20),e.YNc(58,or,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(59,"div",23)(60,"div",11)(61,"p",12),e._uU(62,"Patrimonio T\xe9cnico 2025"),e.qZA(),e.TgZ(63,"div",13)(64,"div",14),e.YNc(65,wr,4,0,"div",15),e.TgZ(66,"div",2)(67,"div",3)(68,"div",16)(69,"table",17)(70,"thead")(71,"tr")(72,"th",18),e._uU(73,"Tipo"),e.qZA(),e.TgZ(74,"th",18),e._uU(75,"Nombre"),e.qZA(),e.TgZ(76,"th",19),e._uU(77,"Acciones"),e.qZA()()(),e.TgZ(78,"tbody"),e.YNc(79,Bi,9,3,"tr",20),e.YNc(80,Ro,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(81,"div",24)(82,"div",11)(83,"p",12),e._uU(84,"Patrimonio T\xe9cnico 2026"),e.qZA(),e.TgZ(85,"div",13)(86,"div",14),e.YNc(87,Cs,4,0,"div",15),e.TgZ(88,"div",2)(89,"div",3)(90,"div",16)(91,"table",17)(92,"thead")(93,"tr")(94,"th",18),e._uU(95,"Tipo"),e.qZA(),e.TgZ(96,"th",18),e._uU(97,"Nombre"),e.qZA(),e.TgZ(98,"th",19),e._uU(99,"Acciones"),e.qZA()()(),e.TgZ(100,"tbody"),e.YNc(101,ta,9,3,"tr",20),e.YNc(102,na,3,0,"tr",21),e.qZA()()()()()()()()(),e.TgZ(103,"div",25)(104,"div",11)(105,"p",12),e._uU(106,"Patrimonio T\xe9cnico Comparativo"),e.qZA(),e.TgZ(107,"div",13)(108,"div",14),e.YNc(109,Xo,4,0,"div",15),e.TgZ(110,"div",2)(111,"div",3)(112,"div",16)(113,"table",17)(114,"thead")(115,"tr")(116,"th",18),e._uU(117,"Tipo"),e.qZA(),e.TgZ(118,"th",18),e._uU(119,"Nombre"),e.qZA(),e.TgZ(120,"th",19),e._uU(121,"Acciones"),e.qZA()()(),e.TgZ(122,"tbody"),e.YNc(123,xs,9,3,"tr",20),e.YNc(124,$a,3,0,"tr",21),e.qZA()()()()()()()()()()()()()(),e.TgZ(125,"div",26)(126,"div",27)(127,"div",28)(128,"div",29)(129,"button",30)(130,"span",31),e._uU(131,"\xd7"),e.qZA()()(),e.TgZ(132,"div",32)(133,"div",33)(134,"div",34)(135,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2023()}),e.TgZ(136,"h1",36),e._uU(137,"Nuevo Archivo Patrimonio T\xe9cnico 2023"),e.qZA(),e.TgZ(138,"div",37)(139,"label",38),e._uU(140,"Nombre"),e.qZA(),e._UZ(141,"input",39),e.qZA(),e.TgZ(142,"div",37)(143,"label",40),e._uU(144,"Archivo"),e.qZA(),e.TgZ(145,"div",41)(146,"input",42),e.NdJ("change",function(v){return r.onSelectDocumentBalance2023(v)}),e.qZA(),e.TgZ(147,"label",43),e._uU(148,"Seleccionar archivo"),e.qZA()()(),e.TgZ(149,"div",44)(150,"button",45),e._uU(151,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(152,"div",46)(153,"div",27)(154,"div",28)(155,"div",29)(156,"button",30)(157,"span",31),e._uU(158,"\xd7"),e.qZA()()(),e.TgZ(159,"div",32)(160,"div",33)(161,"div",34)(162,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2024()}),e.TgZ(163,"h1",36),e._uU(164,"Nuevo Archivo Patrimonio T\xe9cnico 2024"),e.qZA(),e.TgZ(165,"div",37)(166,"label",47),e._uU(167,"Nombre"),e.qZA(),e._UZ(168,"input",48),e.qZA(),e.TgZ(169,"div",37)(170,"label",49),e._uU(171,"Archivo"),e.qZA(),e.TgZ(172,"div",41)(173,"input",50),e.NdJ("change",function(v){return r.onSelectDocumentBalance2024(v)}),e.qZA(),e.TgZ(174,"label",51),e._uU(175,"Seleccionar archivo"),e.qZA()()(),e.TgZ(176,"div",44)(177,"button",45),e._uU(178,"Agregar"),e.qZA()()()()()()()()(),e.TgZ(179,"div",52)(180,"div",27)(181,"div",28)(182,"div",29)(183,"button",30)(184,"span",31),e._uU(185,"\xd7"),e.qZA()()(),e.TgZ(186,"div",32)(187,"div",33)(188,"div",34)(189,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2025()}),e.TgZ(190,"h1",36),e._uU(191,"Nuevo Archivo Patrimonio T\xe9cnico 2025"),e.qZA(),e.TgZ(192,"div",37)(193,"label",53),e._uU(194,"Nombre"),e.qZA(),e._UZ(195,"input",54),e.qZA(),e.TgZ(196,"div",37)(197,"label",55),e._uU(198,"Archivo"),e.qZA(),e.TgZ(199,"div",41)(200,"input",56),e.NdJ("change",function(v){return r.onSelectDocumentBalance2025(v)}),e.qZA(),e.TgZ(201,"label",57),e._uU(202,"Seleccionar archivo"),e.qZA()()(),e.YNc(203,Ra,4,0,"div",58),e.TgZ(204,"div",44)(205,"button",59),e.YNc(206,Eo,2,0,"span",21),e.YNc(207,xo,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(208,"div",60)(209,"div",27)(210,"div",28)(211,"div",29)(212,"button",30)(213,"span",31),e._uU(214,"\xd7"),e.qZA()()(),e.TgZ(215,"div",32)(216,"div",33)(217,"div",34)(218,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalance2026()}),e.TgZ(219,"h1",36),e._uU(220,"Nuevo Archivo Patrimonio T\xe9cnico 2026"),e.qZA(),e.TgZ(221,"div",37)(222,"label",61),e._uU(223,"Nombre"),e.qZA(),e._UZ(224,"input",62),e.qZA(),e.TgZ(225,"div",37)(226,"label",63),e._uU(227,"Archivo"),e.qZA(),e.TgZ(228,"div",41)(229,"input",64),e.NdJ("change",function(v){return r.onSelectDocumentBalance2026(v)}),e.qZA(),e.TgZ(230,"label",65),e._uU(231,"Seleccionar archivo"),e.qZA()()(),e.YNc(232,$r,4,0,"div",58),e.TgZ(233,"div",44)(234,"button",59),e.YNc(235,Tr,2,0,"span",21),e.YNc(236,yl,3,0,"span",21),e.qZA()()()()()()()()(),e.TgZ(237,"div",66)(238,"div",27)(239,"div",28)(240,"div",29)(241,"button",30)(242,"span",31),e._uU(243,"\xd7"),e.qZA()()(),e.TgZ(244,"div",32)(245,"div",33)(246,"div",34)(247,"form",35),e.NdJ("ngSubmit",function(){return r.onAddDocumentBalanceComparativo()}),e.TgZ(248,"h1",36),e._uU(249,"Nuevo Archivo Patrimonio T\xe9cnico Comparativo"),e.qZA(),e.TgZ(250,"div",37)(251,"label",67),e._uU(252,"Nombre"),e.qZA(),e._UZ(253,"input",68),e.qZA(),e.TgZ(254,"div",37)(255,"label",69),e._uU(256,"Archivo"),e.qZA(),e.TgZ(257,"div",41)(258,"input",70),e.NdJ("change",function(v){return r.onSelectDocumentBalanceComparativo(v)}),e.qZA(),e.TgZ(259,"label",71),e._uU(260,"Seleccionar archivo"),e.qZA()()(),e.YNc(261,Cl,4,0,"div",58),e.TgZ(262,"div",44)(263,"button",59),e.YNc(264,zs,2,0,"span",21),e.YNc(265,dc,3,0,"span",21),e.qZA()()()()()()()()()),2&n&&(e.xp6(21),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2023),e.xp6(1),e.Q6J("ngIf",!r.balance2023||0===r.balance2023.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2024),e.xp6(1),e.Q6J("ngIf",!r.balance2024||0===r.balance2024.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2025),e.xp6(1),e.Q6J("ngIf",!r.balance2025||0===r.balance2025.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balance2026),e.xp6(1),e.Q6J("ngIf",!r.balance2026||0===r.balance2026.length),e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.balancecomparative),e.xp6(1),e.Q6J("ngIf",!r.balancecomparative||0===r.balancecomparative.length),e.xp6(11),e.Q6J("formGroup",r.balance2023Form),e.xp6(27),e.Q6J("formGroup",r.balance2024Form),e.xp6(27),e.Q6J("formGroup",r.balance2025Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2025Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balance2026Form),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balance2026Form.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando),e.xp6(11),e.Q6J("formGroup",r.balanceComparativeForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.balanceComparativeForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{box-sizing:border-box}.patrimoni-page[_ngcontent-%COMP%]{padding:16px}.patrimoni-container[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:0 auto}.custom-tabs[_ngcontent-%COMP%]{margin:0 0 18px;background-color:#2e56a1;display:flex;justify-content:center;align-items:stretch;border:none;border-radius:16px 16px 0 0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{flex:1 1 auto;min-width:140px;text-align:center;background-color:#2e56a1}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{width:100%;color:#fff;padding:14px 18px;font-size:18px;font-weight:500;border:none;border-radius:0;white-space:nowrap}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#fff;font-weight:700}.custom-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]{background-color:#fff;color:#2e56a1;font-weight:700}.letra[_ngcontent-%COMP%]{font-size:20px}.custom-tab-content[_ngcontent-%COMP%]{background-color:#fff;padding:0;border-radius:0 0 18px 18px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{border-radius:0 0 18px 18px;overflow:hidden;padding:20px}.content-panel[_ngcontent-%COMP%]{width:100%}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}.container-card-3-4[_ngcontent-%COMP%], .box3[_ngcontent-%COMP%], .box4[_ngcontent-%COMP%], .azul[_ngcontent-%COMP%], .div_training_title[_ngcontent-%COMP%], .flecha[_ngcontent-%COMP%], .imagen-valo[_ngcontent-%COMP%], .card-title[_ngcontent-%COMP%], .card-text[_ngcontent-%COMP%], .link-no-underline[_ngcontent-%COMP%]{max-width:100%}@media (max-width: 992px){.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{font-size:16px;padding:12px 16px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.patrimoni-page[_ngcontent-%COMP%]{padding:12px}.custom-tabs[_ngcontent-%COMP%]{justify-content:flex-start;border-radius:14px 14px 0 0}.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:120px;flex:0 0 auto}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:14px}.custom-tab-content[_ngcontent-%COMP%] > .tab-pane[_ngcontent-%COMP%]{padding:14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.custom-tabs[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{min-width:110px}.custom-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .letra[_ngcontent-%COMP%]{font-size:13px;padding:12px 14px}.section-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})(),pa=(()=>{class c{constructor(n){this.router=n}redirectToNormativa(){this.nombre?this.cedula&&this.validarCedula(this.cedula)?this.correo&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.correo)?this.router.navigateByUrl("/dashboard/normativa"):ie().fire("Error","Por favor, ingrese un correo electr\xf3nico v\xe1lido.","error"):ie().fire("Error","Por favor, ingrese una c\xe9dula v\xe1lida.","error"):ie().fire("Error","Por favor, ingrese su nombre.","error")}validarCedula(n){if(isNaN(Number(n))||10!==n.length)return!1;const r=Number(n.substr(0,2)),h=Number(n.charAt(9));let v=0;for(let Z=0;Z<9;Z++){const X=Number(n.charAt(Z));if(Z%2==0){const be=2*X;v+=be>9?be-9:be}else v+=X}return r>=1&&r<=24&&h===10-v%10}ngOnInit(){}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(me.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-verifyData"]],decls:21,vars:3,consts:[[1,"container"],[1,"registro"],[1,"title"],[3,"ngSubmit"],[1,"form-group"],["for","nombre",1,"texto"],["type","text","id","nombre","name","nombre","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","cedula",1,"texto"],["type","text","id","cedula","name","cedula","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","correo",1,"texto"],["type","email","id","correo","name","correo","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),e._uU(4,"Solicitud de Ingreso"),e.qZA()(),e.TgZ(5,"form",3),e.NdJ("ngSubmit",function(){return r.redirectToNormativa()}),e.TgZ(6,"div",4)(7,"label",5),e._uU(8,"Nombre"),e.qZA(),e.TgZ(9,"input",6),e.NdJ("ngModelChange",function(v){return r.nombre=v}),e.qZA()(),e.TgZ(10,"div",4)(11,"label",7),e._uU(12,"C\xe9dula"),e.qZA(),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(v){return r.cedula=v}),e.qZA()(),e.TgZ(14,"div",4)(15,"label",9),e._uU(16,"Correo electr\xf3nico"),e.qZA(),e.TgZ(17,"input",10),e.NdJ("ngModelChange",function(v){return r.correo=v}),e.qZA()(),e.TgZ(18,"div",11)(19,"button",12),e._uU(20,"Enviar"),e.qZA()()()()()),2&n&&(e.xp6(9),e.Q6J("ngModel",r.nombre),e.xp6(4),e.Q6J("ngModel",r.cedula),e.xp6(4),e.Q6J("ngModel",r.correo))},dependencies:[x._Y,x.Fj,x.JJ,x.JL,x.Q7,x.On,x.F],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:#fff}.btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;width:100%;height:3.5vh;margin:0 0 10px;text-align:center;justify-content:center;justify-items:center;font-size:10pt;margin-top:2rem}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:5px;font-size:14px;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}
1.btn-primary[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]{color:#fff}.registro[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:60%;background-color:#f5f5f5;border-radius:5px;margin:auto;box-shadow:1px 1px 6px gray}.title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%;background-color:#2e56a1;color:#f5f5f5;font-weight:600;padding:15px 0;border-radius:5px 5px 0 0;margin:auto auto 15px}.title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:Helvetica,Arial,Sans-serif;font-weight:300;font-size:20px;margin-left:15px}.registro[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:75%;background-color:transparent;font-size:14px;padding:2px 5px;border-bottom:1px solid #989898;margin:15px auto}.warningLabel[_ngcontent-%COMP%]{color:red;font-size:14px;font-weight:700;border-bottom:1px solid red}.botonera[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:88%;padding:15px 8px;margin:auto}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:40%;padding:5px;background-color:transparent;font-size:16px;color:#686868;border:1px solid transparent;border-radius:5px;margin:auto;transition:.5s}.texto[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{border:1px solid #686868}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked{background-color:#686868;border:1px solid #686868;color:#f5f5f5}@media (min-width: 320px) and (max-width: 850px){.container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:#fff}.btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;width:100%;height:3.5vh;margin:0 0 10px;text-align:center;justify-content:center;justify-items:center;font-size:10pt;margin-top:2rem}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:5px;font-size:14px;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}.btn-primary[_ngcontent-%COMP%]:hover, .btn[_ngcontent-%COMP%]{color:#fff}.registro[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;background-color:#f5f5f5;border-radius:5px;margin:auto;box-shadow:1px 1px 6px gray}.title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%;background-color:#2e56a1;color:#f5f5f5;font-weight:600;padding:15px 0;border-radius:5px 5px 0 0;margin:auto auto 15px}.title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:Helvetica,Arial,Sans-serif;font-weight:300;font-size:20px;margin-left:15px}.registro[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:75%;background-color:transparent;font-size:14px;padding:2px 5px;border-bottom:1px solid #989898;margin:15px auto}.warningLabel[_ngcontent-%COMP%]{color:red;font-size:14px;font-weight:700;border-bottom:1px solid red}.botonera[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:88%;padding:15px 8px;margin:auto}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:40%;padding:5px;background-color:transparent;font-size:16px;color:#686868;border:1px solid transparent;border-radius:5px;margin:auto;transition:.5s}.texto[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:hover{border:1px solid #686868}.botonera[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked{background-color:#686868;border:1px solid #686868;color:#f5f5f5}}"]}),c})();var Vs=D(5180);function Ga(c,o){1&c&&e._UZ(0,"li",28)}function Ns(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li",22),e._uU(2),e.TgZ(3,"button",23),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.eliminarTasa(v))}),e._UZ(4,"img",24),e.qZA(),e.TgZ(5,"button",25),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.llenarFormulario(v))}),e._UZ(6,"img",26),e.qZA()(),e.YNc(7,Ga,1,0,"li",27),e.BQk()}if(2&c){const n=o.$implicit,r=o.index,h=e.oxw();e.xp6(2),e.lnq(" Plazo: ",n.plazoMin," - ",n.plazoMax," - Tasa: ",n.tasaNominal," "),e.xp6(5),e.Q6J("ngIf",r!==h.tasasNominales.length-1)}}let ws=(()=>{class c{constructor(n){this.tasaNominalService=n,this.tasasNominales=[],this.tasaEditada={plazoMin:0,plazoMax:0,tasaNominal:0,id_tasa:""},this.nuevaTasa={plazoMin:0,plazoMax:0,tasaNominal:0},this.modoEdicion=!1}ngOnInit(){this.obtenerTasas()}obtenerTasas(){this.tasaNominalService.obtenerTasas().subscribe(n=>
1{this.tasasNominales=[],n.forEach(r=>{!0===r.payload.doc.data().visible&&this.tasasNominales.push({id_tasa:r.payload.doc.id,...r.payload.doc.data()})}),this.tasasNominales.sort((r,h)=>r.fechaActual-h.fechaActual)})}camposLlenos(n){return 0!==n.plazoMin&&0!==n.plazoMax&&0!==n.tasaNominal}agregarTasa(){this.camposLlenos(this.nuevaTasa)?(this.nuevaTasa.visible=!0,this.nuevaTasa.fechaActual=Date.now(),this.tasaNominalService.agregarTasa(this.nuevaTasa).then(()=>{this.nuevaTasa={plazoMin:0,plazoMax:0,tasaNominal:0,visible:!0},this.obtenerTasas(),ie().fire({icon:"success",title:"Tasa agregada con \xe9xito",showConfirmButton:!1,timer:1500})}).catch(n=>{console.error("Error al agregar la tasa:",n)})):ie().fire({icon:"error",title:"\xa1Oops!",text:"Por favor, complete todos los campos.",confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"OK"})}eliminarTasa(n){ie().fire({title:"\xbfEst\xe1s seguro que quieres desactivar la tasa?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&this.tasaNominalService.putVisibleTasa(n.id_tasa,{visible:!1}).then(()=>{ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con \xe9xito",showConfirmButton:!1,timer:1500}),this.tasaNominalService.obtenerTasas().subscribe(v=>{this.tasasNominales=v})}).catch(v=>{console.error("Error al cambiar la visibilidad de la tasa:",v)})})}actualizarTasaEditada(){this.tasaNominalService.actualizarTasa(this.tasaEditada.id_tasa,this.tasaEditada).then(()=>{this.obtenerTasas(),this.tasaEditada={plazoMin:0,plazoMax:0,tasaNominal:0,id_tasa:""},ie().fire({icon:"success",title:"\xa1Actualizaci\xf3n exitosa!",showConfirmButton:!1,timer:1500});const n=document.getElementById("actualizartasa");if(n){n.classList.remove("show"),n.setAttribute("aria-hidden","true"),n.style.display="none";const r=document.getElementsByClassName("modal-backdrop");document.body.removeChild(r[0])}}).catch(n=>{console.error("Error al actualizar la tasa:",n)})}llenarFormulario(n){this.tasaEditada={...n}}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(Vs.V))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-tasas-admin"]],decls:53,vars:7,consts:[[1,"container"],[1,"row"],[1,"col-md-6"],[1,"list-group"],[4,"ngFor","ngForOf"],[1,"mb-3"],["for","plazoMinInput",1,"form-label"],["type","number","id","plazoMinInput","placeholder","Plazo m\xednimo","name","plazoMin",1,"form-control",3,"ngModel","ngModelChange"],["for","plazoMaxInput",1,"form-label"],["type","number","id","plazoMaxInput","placeholder","Plazo m\xe1ximo","name","plazoMax",1,"form-control",3,"ngModel","ngModelChange"],["for","tasaNominalInput",1,"form-label"],["type","number","id","tasaNominalInput","placeholder","Tasa nominal","name","tasaNominal",1,"form-control",3,"ngModel","ngModelChange"],["type","button",1,"btn","btn-primary",3,"click"],["id","actualizartasa","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","d-flex","align-items-center","justify-content-center"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"card"],[1,"card-body"],[1,"list-group-item"],[1,"btn","btn-sm","float-end",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar","width","35px"],["data-toggle","modal","data-target","#actualizartasa",1,"btn","btn-sm","float-end","mr-2",3,"click"],["src","../../../assets/img/admin/act.png","alt","Actualizar","width","30px"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),e._uU(4,"Tasas Nominales"),e.qZA(),e.TgZ(5,"ul",3),e.YNc(6,Ns,8,4,"ng-container",4),e.qZA()(),e.TgZ(7,"div",2)(8,"h2"),e._uU(9,"Agregar Nueva Tasa"),e.qZA(),e.TgZ(10,"form")(11,"div",5)(12,"label",6),e._uU(13,"Plazo m\xednimo"),e.qZA(),e.TgZ(14,"input",7),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.plazoMin=v}),e.qZA()(),e.TgZ(15,"div",5)(16,"label",8),e._uU(17,"Plazo m\xe1ximo"),e.qZA(),e.TgZ(18,"input",9),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.plazoMax=v}),e.qZA()(),e.TgZ(19,"div",5)(20,"label",10),e._uU(21,"Tasa nominal"),e.qZA(),e.TgZ(22,"input",11),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.tasaNominal=v}),e.qZA()(),e.TgZ(23,"button",12),e.NdJ("click",function(){return r.agregarTasa()}),e._uU(24,"Agregar"),e.qZA()()()()(),e.TgZ(25,"div",13)(26,"div",14)(27,"div",15)(28,"div",16)(29,"button",17)(30,"span",18),e._uU(31,"\xd7"),e.qZA()()(),e.TgZ(32,"div",19)(33,"div",20)(34,"div",21)(35,"div",2)(36,"h2"),e._uU(37,"Editar Tasa"),e.qZA(),e.TgZ(38,"form")(39,"div",5)(40,"label",6),e._uU(41,"Plazo m\xednimo"),e.qZA(),e.TgZ(42,"input",7),e.NdJ("ngModelChange",function(v){return r.tasaEditada.plazoMin=v}),e.qZA()(),e.TgZ(43,"div",5)(44,"label",8),e._uU(45,"Plazo m\xe1ximo"),e.qZA(),e.TgZ(46,"input",9),e.NdJ("ngModelChange",function(v){return r.tasaEditada.plazoMax=v}),e.qZA()(),e.TgZ(47,"div",5)(48,"label",10),e._uU(49,"Tasa nominal"),e.qZA(),e.TgZ(50,"input",11),e.NdJ("ngModelChange",function(v){return r.tasaEditada.tasaNominal=v}),e.qZA()(),e.TgZ(51,"button",12),e.NdJ("click",function(){return r.actualizarTasaEditada()}),e._uU(52,"Actualizar"),e.qZA()()()()()()()()()),2&n&&(e.xp6(6),e.Q6J("ngForOf",r.tasasNominales),e.xp6(8),e.Q6J("ngModel",r.nuevaTasa.plazoMin),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.plazoMax),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.tasaNominal),e.xp6(20
1),e.Q6J("ngModel",r.tasaEditada.plazoMin),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.plazoMax),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.tasaNominal))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.wV,x.JJ,x.JL,x.On,x.F],styles:[".list-group-item[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}.list-group-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.divider[_ngcontent-%COMP%]{border-top:1px solid #ccc;margin:10px 0;list-style:none}"]}),c})();var No=D(1967);function qs(c,o){1&c&&e._UZ(0,"li",32)}function ga(c,o){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"li",26),e._uU(2),e.TgZ(3,"button",27),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.eliminarTasa(v))}),e._UZ(4,"img",28),e.qZA(),e.TgZ(5,"button",29),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.llenarFormulario(v))}),e._UZ(6,"img",30),e.qZA()(),e.YNc(7,qs,1,0,"li",31),e.BQk()}if(2&c){const n=o.$implicit,r=o.index,h=e.oxw();e.xp6(2),e.xDo(" Producto: ",n.Nombre," - Tasa Efectiva: ",n.tasaefectiva," - Tasa Nominal: ",n.tasanom," - Plazo: ",n.Plazo," - Monto: ",n.Monto," "),e.xp6(5),e.Q6J("ngIf",r!==h.tasasNominales.length-1)}}let sl=(()=>{class c{constructor(n){this.CrediNominalService=n,this.tasasNominales=[],this.tasaEditada={Nombre:"",tasaefectiva:0,tasanom:0,Monto:0,Plazo:0,id_tasa:""},this.nuevaTasa={Nombre:"",tasaefectiva:0,tasanom:0,Monto:0,Plazo:0},this.modoEdicion=!1}ngOnInit(){this.obtenerTasas()}obtenerTasas(){this.CrediNominalService.obtenerTasas().subscribe(n=>{this.tasasNominales=[],n.forEach(r=>{!0===r.payload.doc.data().visible&&this.tasasNominales.push({id_tasa:r.payload.doc.id,...r.payload.doc.data()})}),this.tasasNominales.sort((r,h)=>r.fechaActual-h.fechaActual)})}camposLlenos(n){return 0!==n.plazoMin&&0!==n.plazoMax&&0!==n.tasaNominal}agregarTasa(){this.camposLlenos(this.nuevaTasa)?(this.nuevaTasa.visible=!0,this.nuevaTasa.fechaActual=Date.now(),this.CrediNominalService.agregarTasa(this.nuevaTasa).then(()=>{this.nuevaTasa={nombre:"",tasaefectiva:0,tasanom:0,Monto:0,Plazo:0,visible:!0},this.obtenerTasas(),ie().fire({icon:"success",title:"Tasa agregada con \xe9xito",showConfirmButton:!1,timer:1500})}).catch(n=>{console.error("Error al agregar la tasa:",n)})):ie().fire({icon:"error",title:"\xa1Oops!",text:"Por favor, complete todos los campos.",confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"OK"})}eliminarTasa(n){ie().fire({title:"\xbfEst\xe1s seguro que quieres desactivar la tasa?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&this.CrediNominalService.putVisibleTasa(n.id_tasa,{visible:!1}).then(()=>{ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con \xe9xito",showConfirmButton:!1,timer:1500}),this.CrediNominalService.obtenerTasas().subscribe(v=>{this.tasasNominales=v})}).catch(v=>{console.error("Error al cambiar la visibilidad:",v)})})}actualizarTasaEditada(){this.CrediNominalService.actualizarTasa(this.tasaEditada.id_tasa,this.tasaEditada).then(()=>{this.obtenerTasas(),this.tasaEditada={nombre:"",tasaefectiva:0,tasanom:0,Monto:0,Plazo:0,id_tasa:""},ie().fire({icon:"success",title:"\xa1Actualizaci\xf3n exitosa!",showConfirmButton:!1,timer:1500});const n=document.getElementById("actualizartasa");if(n){n.classList.remove("show"),n.setAttribute("aria-hidden","true"),n.style.display="none";const r=document.getElementsByClassName("modal-backdrop");document.body.removeChild(r[0])}}).catch(n=>{console.error("Error al actualizar:",n)})}llenarFormulario(n){this.tasaEditada={...n}}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(No.K))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-creditos-admin"]],decls:69,vars:11,consts:[[1,"container"],[1,"row"],[1,"col-md-6"],[1,"list-group"],[4,"ngFor","ngForOf"],[1,"mb-3"],["for","plazoMinInput",1,"form-label"],["type","text","id","plazoMinInput","placeholder","Nombre Producto","name","plazoMin",1,"form-control",3,"ngModel","ngModelChange"],["for","plazoMaxInput",1,"form-label"],["type","number","id","plazoMaxInput","placeholder","Plazo m\xe1ximo","name","plazoMax",1,"form-control",3,"ngModel","ngModelChange"],["for","tasaNominalInput",1,"form-label"],["type","number","id","tasaNominalInput","placeholder","Tasa nominal","name","tasaNominal",1,"form-control",3,"ngModel","ngModelChange"],["for","tasaMontoInput",1,"form-label"],["type","number","id","tasaMontoInput","placeholder","Monto Maximo","name","tasaMonto",1,"form-control",3,"ngModel","ngModelChange"],["for","tasaPlazoInput",1,"form-label"],["type","number","id","tasaPlazoInput","placeholder","Plazo Maximo","name","tasaPlazo",1,"form-control",3,"ngModel","ngModelChange"],["type","button",1,"btn","btn-primary",3,"click"],["id","actualizartasa","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","d-flex","align-items-center","justify-content-center"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"card"],[1,"card-body"],[1,"list-group-item"],[1,"btn","btn-sm","float-end",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar","width","35px"],["data-toggle","modal","data-target","#actualizartasa",1,"btn","btn-sm","float-end","mr-2",3,"click"],["src","../../../assets/img/admin/act.png","alt","Actualizar","width","30px"],["class","divider",4,"ngIf"],[1,"divi
1der"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),e._uU(4,"Creditos Productos"),e.qZA(),e.TgZ(5,"ul",3),e.YNc(6,ga,8,6,"ng-container",4),e.qZA()(),e.TgZ(7,"div",2)(8,"h2"),e._uU(9,"Agregar Nuevo Producto"),e.qZA(),e.TgZ(10,"form")(11,"div",5)(12,"label",6),e._uU(13,"Nombre Producto"),e.qZA(),e.TgZ(14,"input",7),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.Nombre=v}),e.qZA()(),e.TgZ(15,"div",5)(16,"label",8),e._uU(17,"Tasa Nominal"),e.qZA(),e.TgZ(18,"input",9),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.tasanom=v}),e.qZA()(),e.TgZ(19,"div",5)(20,"label",10),e._uU(21,"Tasa Efectiva"),e.qZA(),e.TgZ(22,"input",11),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.tasaefectiva=v}),e.qZA()(),e.TgZ(23,"div",5)(24,"label",12),e._uU(25,"Monto Maximo"),e.qZA(),e.TgZ(26,"input",13),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.Monto=v}),e.qZA()(),e.TgZ(27,"div",5)(28,"label",14),e._uU(29,"Plazo"),e.qZA(),e.TgZ(30,"input",15),e.NdJ("ngModelChange",function(v){return r.nuevaTasa.Plazo=v}),e.qZA()(),e.TgZ(31,"button",16),e.NdJ("click",function(){return r.agregarTasa()}),e._uU(32,"Agregar"),e.qZA()()()()(),e.TgZ(33,"div",17)(34,"div",18)(35,"div",19)(36,"div",20)(37,"button",21)(38,"span",22),e._uU(39,"\xd7"),e.qZA()()(),e.TgZ(40,"div",23)(41,"div",24)(42,"div",25)(43,"div",2)(44,"h2"),e._uU(45,"Editar Tasa"),e.qZA(),e.TgZ(46,"form")(47,"div",5)(48,"label",6),e._uU(49,"Nombre Producto"),e.qZA(),e.TgZ(50,"input",7),e.NdJ("ngModelChange",function(v){return r.tasaEditada.Nombre=v}),e.qZA()(),e.TgZ(51,"div",5)(52,"label",8),e._uU(53,"Tasa Nominal"),e.qZA(),e.TgZ(54,"input",9),e.NdJ("ngModelChange",function(v){return r.tasaEditada.tasanom=v}),e.qZA()(),e.TgZ(55,"div",5)(56,"label",10),e._uU(57,"Tasa Efectiva"),e.qZA(),e.TgZ(58,"input",11),e.NdJ("ngModelChange",function(v){return r.tasaEditada.tasaefectiva=v}),e.qZA()(),e.TgZ(59,"div",5)(60,"label",12),e._uU(61,"Monto Maximo"),e.qZA(),e.TgZ(62,"input",13),e.NdJ("ngModelChange",function(v){return r.tasaEditada.Monto=v}),e.qZA()(),e.TgZ(63,"div",5)(64,"label",14),e._uU(65,"Plazo"),e.qZA(),e.TgZ(66,"input",15),e.NdJ("ngModelChange",function(v){return r.tasaEditada.Plazo=v}),e.qZA()(),e.TgZ(67,"button",16),e.NdJ("click",function(){return r.actualizarTasaEditada()}),e._uU(68,"Actualizar"),e.qZA()()()()()()()()()),2&n&&(e.xp6(6),e.Q6J("ngForOf",r.tasasNominales),e.xp6(8),e.Q6J("ngModel",r.nuevaTasa.Nombre),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.tasanom),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.tasaefectiva),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.Monto),e.xp6(4),e.Q6J("ngModel",r.nuevaTasa.Plazo),e.xp6(20),e.Q6J("ngModel",r.tasaEditada.Nombre),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.tasanom),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.tasaefectiva),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.Monto),e.xp6(4),e.Q6J("ngModel",r.tasaEditada.Plazo))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.wV,x.JJ,x.JL,x.On,x.F]}),c})();var ya=D(3826),wo=D(5861),Ca=D(6270),ma=D(3353),B=D(1281),oe=D(2687),$=D(727),Ae=D(4986),Pt=D(5963),En=D(6406),xi=D(9751),Nr=D(6451);function Xi(c,o,n){for(let r in o)if(o.hasOwnProperty(r)){const h=o[r];h?c.setProperty(r,h,n?.has(r)?"important":""):c.removeProperty(r)}return c}function yr(c,o){const n=o?"":"none";Xi(c.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function Ei(c,o,n){Xi(c.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},n)}function Pr(c,o){return o&&"none"!=o?c+" "+o:c}function er(c){const o=c.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(c)*o}function ia(c,o){return c.getPropertyValue(o).split(",").map(r=>r.trim())}function In(c){const o=c.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function zr(c,o,n){const{top:r,bottom:h,left:v,right:M}=c;return n>=r&&n<=h&&o>=v&&o<=M}function Mr(c,o,n){c.top+=o,c.bottom=c.top+c.height,c.left+=n,c.right=c.left+c.width}function xa(c,o,n,r){const{top:h,right:v,bottom:M,left:Z,width:X,height:be}=c,gt=X*o,It=be*o;return r>h-It&&r<M+It&&n>Z-gt&&n<v+gt}class si{constructor(o){this._document=o,this.positions=new Map}clear(){this.positions.clear()}cache(o){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),o.forEach(n=>{this.positions.set(n,{scrollPosition:{top:n.scrollTop,left:n.scrollLeft},clientRect:In(n)})})}handleScroll(o){const n=(0,ma.sA)(o),r=this.positions.get(n);if(!r)return null;const h=r.scrollPosition;let v,M;if(n===this._document){const be=this.getViewportScrollPosition();
1v=be.top,M=be.left}else v=n.scrollTop,M=n.scrollLeft;const Z=h.top-v,X=h.left-M;return this.positions.forEach((be,gt)=>{be.clientRect&&n!==gt&&n.contains(gt)&&Mr(be.clientRect,Z,X)}),h.top=v,h.left=M,{top:Z,left:X}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function _i(c){const o=c.cloneNode(!0),n=o.querySelectorAll("[id]"),r=c.nodeName.toLowerCase();o.removeAttribute("id");for(let h=0;h<n.length;h++)n[h].removeAttribute("id");return"canvas"===r?Sn(c,o):("input"===r||"select"===r||"textarea"===r)&&Jt(c,o),Ms("canvas",c,o,Sn),Ms("input, textarea, select",c,o,Jt),o}function Ms(c,o,n,r){const h=o.querySelectorAll(c);if(h.length){const v=n.querySelectorAll(c);for(let M=0;M<h.length;M++)r(h[M],v[M])}}let ii=0;function Jt(c,o){"file"!==o.type&&(o.value=c.value),"radio"===o.type&&o.name&&(o.name=`mat-clone-${o.name}-${ii++}`)}function Sn(c,o){const n=o.getContext("2d");if(n)try{n.drawImage(c,0,0)}catch{}}const To=(0,ma.i$)({passive:!0}),al=(0,ma.i$)({passive:!1}),hc=new Set(["position"]);class fc{constructor(o,n,r,h,v,M){this._config=n,this._document=r,this._ngZone=h,this._viewportRuler=v,this._dragDropRegistry=M,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new de.x,this._pointerMoveSubscription=$.w0.EMPTY,this._pointerUpSubscription=$.w0.EMPTY,this._scrollSubscription=$.w0.EMPTY,this._resizeSubscription=$.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new de.x,this.started=new de.x,this.released=new de.x,this.ended=new de.x,this.entered=new de.x,this.exited=new de.x,this.dropped=new de.x,this.moved=this._moveEvents,this._pointerDown=Z=>{if(this.beforeStarted.next(),this._handles.length){const X=this._getTargetHandle(Z);X&&!this._disabledHandles.has(X)&&!this.disabled&&this._initializeDragSequence(X,Z)}else this.disabled||this._initializeDragSequence(this._rootElement,Z)},this._pointerMove=Z=>{const X=this._getPointerPositionOnPage(Z);if(!this._hasStartedDragging){if(Math.abs(X.x-this._pickupPositionOnPage.x)+Math.abs(X.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(Z),Tn=this._dropContainer;if(!Cn)return void this._endDragSequence(Z);(!Tn||!Tn.isDragging()&&!Tn.isReceiving())&&(Z.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(Z)))}return}Z.preventDefault();const be=this._getConstrainedPointerPosition(X);if(this._hasMoved=!0,this._lastKnownPointerPosition=X,this._updatePointerDirectionDelta(be),this._dropContainer)this._updateActiveDropContainer(be,X);else{const gt=this._activeTransform;gt.x=be.x-this._pickupPositionOnPage.x+this._passiveTransform.x,gt.y=be.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(gt.x,gt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:be,event:Z,distance:this._getDragDistance(be),delta:this._pointerDirectionDelta})})},this._pointerUp=Z=>{this._endDragSequence(Z)},this._nativeDragStart=Z=>{if(this._handles.length){const X=this._getTargetHandle(Z);X&&!this._disabledHandles.has(X)&&!this.disabled&&Z.preventDefault()}else this.disabled||Z.preventDefault()},this.withRootElement(o).withParent(n.parentDragRef||null),this._parentPositions=new si(r),M.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(o){const n=(0,B.Ig)(o);n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(r=>yr(r,n)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(r=>(0,B.fI)(r)),this._handles.forEach(r=>yr(r,this.disabled)),this._toggleNativeDragInteractions();const n=new Set;
1return this._disabledHandles.forEach(r=>{this._handles.indexOf(r)>-1&&n.add(r)}),this._disabledHandles=n,this}withPreviewTemplate(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){const n=(0,B.fI)(o);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{n.addEventListener("mousedown",this._pointerDown,al),n.addEventListener("touchstart",this._pointerDown,To),n.addEventListener("dragstart",this._nativeDragStart,al)}),this._initialTransform=void 0,this._rootElement=n),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?(0,B.fI)(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),yr(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),yr(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){const o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){const o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const n=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(n),dropPoint:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
1_startDragSequence(o){wa(o)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const n=this._dropContainer;if(n){const r=this._rootElement,h=r.parentNode,v=this._placeholder=this._createPlaceholderElement(),M=this._anchor=this._anchor||this._document.createComment(""),Z=this._getShadowRoot();h.insertBefore(M,r),this._initialTransform=r.style.transform||"",this._preview=this._createPreviewElement(),Ei(r,!1,hc),this._document.body.appendChild(h.replaceChild(v,r)),this._getPreviewInsertionPoint(h,Z).appendChild(this._preview),this.started.next({source:this}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(o,n){this._parentDragRef&&n.stopPropagation();const r=this.isDragging(),h=wa(n),v=!h&&0!==n.button,M=this._rootElement,Z=(0,ma.sA)(n),X=!h&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),be=h?(0,oe.yG)(n):(0,oe.X6)(n);if(Z&&Z.draggable&&"mousedown"===n.type&&n.preventDefault(),r||v||X||be)return;if(this._handles.length){const Yt=M.style;this._rootElementTapHighlight=Yt.webkitTapHighlightColor||"",Yt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Yt=>this._updateOnScroll(Yt)),this._boundaryElement&&(this._boundaryRect=In(this._boundaryElement));const gt=this._previewTemplate;this._pickupPositionInElement=gt&>.template&&!gt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(o,n);const It=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:It.x,y:It.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}_cleanupDragArtifacts(o){Ei(this._rootElement,!0,hc),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const n=this._dropContainer,r=n.getItemIndex(this),h=this._getPointerPositionOnPage(o),v=this._getDragDistance(h),M=n._isOverContainer(h.x,h.y);this.ended.next({source:this,distance:v,dropPoint:h}),this.dropped.next({item:this,currentIndex:r,previousIndex:this._initialIndex,container:n,previousContainer:this._initialContainer,isPointerOverContainer:M,distance:v,dropPoint:h}),n.drop(this,r,this._initialIndex,this._initialContainer,M,v,h),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:n},{x:r,y:h}){let v=this._initialContainer._getSiblingContainerFromPosition(this,o,n);!v&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,n)&&(v=this._initialContainer),v&&v!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=v,this._dropContainer.enter(this,o,n,v===this._initialContainer&&v.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:v,currentIndex:v.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(r,h),this._dropContainer._sortItem(this,o,n,this._pointerDirectionDelta),this._applyPreviewTransform(o-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y))}_createPreviewElement(){const o=this._previewTemplate,n=this.previewClass,r=o?o.template:null;let h;if(r&&o){const v=o.matchSize?this._rootElement.getBoundingClientRect():null,M=o.viewContainer.createEmbeddedView(r,o.context);M.detectChanges(),h=S(M,this._document),this._previewRef=M,o.matchSize?U(h,v):h.style.transform=go(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const v=this._rootElement;h=_i(v),U(h,v.getBoundingClientRect()),this._initialTransform&&(h.style.transform=this._initialTransform)}return Xi(h.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},hc),yr(h,!1),h.classList.add("cdk-drag-preview"),h.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEac
1h(v=>h.classList.add(v)):h.classList.add(n)),h}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const o=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);const n=function lo(c){const o=getComputedStyle(c),n=ia(o,"transition-property"),r=n.find(Z=>"transform"===Z||"all"===Z);if(!r)return 0;const h=n.indexOf(r),v=ia(o,"transition-duration"),M=ia(o,"transition-delay");return er(v[h])+er(M[h])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(r=>{const h=M=>{(!M||(0,ma.sA)(M)===this._preview&&"transform"===M.propertyName)&&(this._preview?.removeEventListener("transitionend",h),r(),clearTimeout(v))},v=setTimeout(h,1.5*n);this._preview.addEventListener("transitionend",h)}))}_createPlaceholderElement(){const o=this._placeholderTemplate,n=o?o.template:null;let r;return n?(this._placeholderRef=o.viewContainer.createEmbeddedView(n,o.context),this._placeholderRef.detectChanges(),r=S(this._placeholderRef,this._document)):r=_i(this._rootElement),r.style.pointerEvents="none",r.classList.add("cdk-drag-placeholder"),r}_getPointerPositionInElement(o,n){const r=this._rootElement.getBoundingClientRect(),h=o===this._rootElement?null:o,v=h?h.getBoundingClientRect():r,M=wa(n)?n.targetTouches[0]:n,Z=this._getViewportScrollPosition();return{x:v.left-r.left+(M.pageX-v.left-Z.left),y:v.top-r.top+(M.pageY-v.top-Z.top)}}_getPointerPositionOnPage(o){const n=this._getViewportScrollPosition(),r=wa(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,h=r.pageX-n.left,v=r.pageY-n.top;if(this._ownerSVGElement){const M=this._ownerSVGElement.getScreenCTM();if(M){const Z=this._ownerSVGElement.createSVGPoint();return Z.x=h,Z.y=v,Z.matrixTransform(M.inverse())}}return{x:h,y:v}}_getConstrainedPointerPosition(o){const n=this._dropContainer?this._dropContainer.lockAxis:null;let{x:r,y:h}=this.constrainPosition?this.constrainPosition(o,this):o;if("x"===this.lockAxis||"x"===n?h=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===n)&&(r=this._pickupPositionOnPage.x),this._boundaryRect){const{x:v,y:M}=this._pickupPositionInElement,Z=this._boundaryRect,{width:X,height:be}=this._getPreviewRect(),gt=Z.top+M,It=Z.bottom-(be-M);r=Fa(r,Z.left+v,Z.right-(X-v)),h=Fa(h,gt,It)}return{x:r,y:h}}_updatePointerDirectionDelta(o){const{x:n,y:r}=o,h=this._pointerDirectionDelta,v=this._pointerPositionAtLastDirectionChange,M=Math.abs(n-v.x),Z=Math.abs(r-v.y);return M>this._config.pointerDirectionChangeThreshold&&(h.x=n>v.x?1:-1,v.x=n),Z>this._config.pointerDirectionChangeThreshold&&(h.y=r>v.y?1:-1,v.y=r),h}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,yr(this._rootElement,o))}_removeRootElementListeners(o){o.removeEventListener("mousedown",this._pointerDown,al),o.removeEventListener("touchstart",this._pointerDown,To),o.removeEventListener("dragstart",this._nativeDragStart,al)}_applyRootElementTransform(o,n){const r=go(o,n),h=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=h.transform&&"none"!=h.transform?h.transform:""),h.transform=Pr(r,this._initialTransform)}_applyPreviewTransform(o,n){const r=this._previewTemplate?.template?void 0:this._initialTransform,h=go(o,n);this._preview.style.transform=Pr(h,r)}_getDragDistance(o){const n=this._pickupPositionOnPage;return n?{x:o.x-n.x,y:o.y-n.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:n}=this._passiveTransform;if(0===o&&0===n||this.isDragging()||!this._boundaryElement)return;const r=this._boundaryElement.getBoundingClientRect(),h=this._rootElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===h.width&&0===h.height)return;const v=r.left-h.left,M=h.right-r.right,Z=r.top-h.top,X=h.bottom-r.bottom;r.width>h.width?(v>0&&(o+=v),M>0&&(o-=M)):o=0,r.height>h.height?(Z>0&&(n+=Z),X>0&&(n-=X)):n=0,(o!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:o})}_getDragStartDelay(o){const n=this.dragStartDelay;return"number"==typeof n?n:wa(o)?n.touch:n?n.mouse:0}_updateOnScroll(o){const n=this._parentPositions.handleScroll(o);if(n){const r=(0,ma.sA)(o);this._boundaryRect&&r!==this._boundaryElement&&r.contains(this._boundaryElement)&&Mr(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,ma.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,n){const r=this._previewContainer||"global";if("parent"===r)return o;if("global"===r){const h=this._document;return n||h.fullscreenElement||h.webkitFullscreenElement||h.mozFullScreenElement||h.msFullscreenElement||h.body}return(0,B.fI)(r)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}_getTargetHandle(o){return this._handles.find(n=>o.target&&(o.target===n||n.contains(o.target)))}}function go(c,o){return`translate3d(${Math.round(c)}px, ${Math.round(o)}px, 0)`}function Fa(c,o,n){return Math.max(o,Math.min(n,c))}function wa(c){return"t"===c.type[0]}function S(c,o){const n=c.rootNodes;if(1===n.length&&n[0].nodeType===o.ELEMENT_NODE)return n[0];const r=o.createElement("div");
1return n.forEach(h=>r.appendChild(h)),r}function U(c,o){c.style.width=`${o.width}px`,c.style.height=`${o.height}px`,c.style.transform=go(o.left,o.top)}function ee(c,o,n){const r=Un(o,c.length-1),h=Un(n,c.length-1);if(r===h)return;const v=c[r],M=h<r?-1:1;for(let Z=r;Z!==h;Z+=M)c[Z]=c[Z+M];c[h]=v}function Un(c,o){return Math.max(0,Math.min(o,c))}class Kn{constructor(o,n,r,h,v){this._dragDropRegistry=n,this._ngZone=h,this._viewportRuler=v,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new de.x,this.entered=new de.x,this.exited=new de.x,this.dropped=new de.x,this.sorted=new de.x,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=$.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new de.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function dn(c=0,o=Ae.z){return c<0&&(c=0),(0,Pt.H)(c,c,o)}(0,En.Z).pipe((0,dt.R)(this._stopScrollTimers)).subscribe(()=>{const M=this._scrollNode,Z=this.autoScrollStep;1===this._verticalScrollDirection?M.scrollBy(0,-Z):2===this._verticalScrollDirection&&M.scrollBy(0,Z),1===this._horizontalScrollDirection?M.scrollBy(-Z,0):2===this._horizontalScrollDirection&&M.scrollBy(Z,0)})},this.element=(0,B.fI)(o),this._document=r,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new si(r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,n,r,h){let v;this._draggingStarted(),null==h?(v=this.sortingDisabled?this._draggables.indexOf(o):-1,-1===v&&(v=this._getItemIndexFromPointerPosition(o,n,r))):v=h;const M=this._activeDraggables,Z=M.indexOf(o),X=o.getPlaceholderElement();let be=M[v];if(be===o&&(be=M[v+1]),!be&&(null==v||-1===v||v<M.length-1)&&this._shouldEnterAsFirstChild(n,r)&&(be=M[0]),Z>-1&&M.splice(Z,1),be&&!this._dragDropRegistry.isDragging(be)){const gt=be.getRootElement();gt.parentElement.insertBefore(X,gt),M.splice(v,0,o)}else(0,B.fI)(this.element).appendChild(X),M.push(o);X.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,n,r,h,v,M,Z){this._reset(),this.dropped.next({item:o,currentIndex:n,previousIndex:r,container:this,previousContainer:h,isPointerOverContainer:v,distance:M,dropPoint:Z})}withItems(o){const n=this._draggables;return this._draggables=o,o.forEach(r=>r._withDropContainer(this)),this.isDragging()&&(n.filter(h=>h.isDragging()).every(h=>-1===o.indexOf(h))?this._reset():this._cacheItems()),this}withDirection(o){return this._direction=o,this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){return this._orientation=o,this}withScrollableParents(o){const n=(0,B.fI)(this.element);return this._scrollableElements=-1===o.indexOf(n)?[n,...o]:o.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(r=>r.drag===o):this._draggables.indexOf(o)}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,n,r,h){if(this.sortingDisabled||!this._clientRect||!xa(this._clientRect,.05,n,r))return;const v=this._itemPositions,M=this._getItemIndexFromPointerPosition(o,n,r,h);if(-1===M&&v.length>0)return;
1const Z="horizontal"===this._orientation,X=v.findIndex(Di=>Di.drag===o),be=v[M],It=be.clientRect,Yt=X>M?1:-1,Cn=this._getItemOffsetPx(v[X].clientRect,It,Yt),Tn=this._getSiblingOffsetPx(X,v,Yt),oi=v.slice();ee(v,X,M),this.sorted.next({previousIndex:X,currentIndex:M,container:this,item:o}),v.forEach((Di,qr)=>{if(oi[qr]===Di)return;const bo=Di.drag===o,Qs=bo?Cn:Tn,da=bo?o.getPlaceholderElement():Di.drag.getRootElement();Di.offset+=Qs,Z?(da.style.transform=Pr(`translate3d(${Math.round(Di.offset)}px, 0, 0)`,Di.initialTransform),Mr(Di.clientRect,0,Qs)):(da.style.transform=Pr(`translate3d(0, ${Math.round(Di.offset)}px, 0)`,Di.initialTransform),Mr(Di.clientRect,Qs,0))}),this._previousSwap.overlaps=zr(It,n,r),this._previousSwap.drag=be.drag,this._previousSwap.delta=Z?h.x:h.y}_startScrollingIfNecessary(o,n){if(this.autoScrollDisabled)return;let r,h=0,v=0;if(this._parentPositions.positions.forEach((M,Z)=>{Z===this._document||!M.clientRect||r||xa(M.clientRect,.05,o,n)&&([h,v]=function pc(c,o,n,r){const h=ss(o,r),v=Gi(o,n);let M=0,Z=0;if(h){const X=c.scrollTop;1===h?X>0&&(M=1):c.scrollHeight-X>c.clientHeight&&(M=2)}if(v){const X=c.scrollLeft;1===v?X>0&&(Z=1):c.scrollWidth-X>c.clientWidth&&(Z=2)}return[M,Z]}(Z,M.clientRect,o,n),(h||v)&&(r=Z))}),!h&&!v){const{width:M,height:Z}=this._viewportRuler.getViewportSize(),X={width:M,height:Z,top:0,right:M,bottom:Z,left:0};h=ss(X,n),v=Gi(X,o),r=window}r&&(h!==this._verticalScrollDirection||v!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=h,this._horizontalScrollDirection=v,this._scrollNode=r,(h||v)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const o=(0,B.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const o=(0,B.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(o).clientRect}_cacheItemPositions(){const o="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(n=>{const r=n.getVisibleElement();return{drag:n,offset:0,initialTransform:r.style.transform||"",clientRect:In(r)}}).sort((n,r)=>o?n.clientRect.left-r.clientRect.left:n.clientRect.top-r.clientRect.top)}_reset(){this._isDragging=!1;const o=(0,B.fI)(this.element).style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(n=>{const r=n.getRootElement();if(r){const h=this._itemPositions.find(v=>v.drag===n)?.initialTransform;r.style.transform=h||""}}),this._siblings.forEach(n=>n._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(o,n,r){const h="horizontal"===this._orientation,v=n[o].clientRect,M=n[o+-1*r];let Z=v[h?"width":"height"]*r;if(M){const X=h?"left":"top",be=h?"right":"bottom";-1===r?Z-=M.clientRect[X]-v[be]:Z+=v[X]-M.clientRect[be]}return Z}_getItemOffsetPx(o,n,r){const h="horizontal"===this._orientation;let v=h?n.left-o.left:n.top-o.top;return-1===r&&(v+=h?n.width-o.width:n.height-o.height),v}_shouldEnterAsFirstChild(o,n){if(!this._activeDraggables.length)return!1;const r=this._itemPositions,h="horizontal"===this._orientation;if(r[0].drag!==this._activeDraggables[0]){const M=r[r.length-1].clientRect;return h?o>=M.right:n>=M.bottom}{const M=r[0].clientRect;return h?o<=M.left:n<=M.top}}_getItemIndexFromPointerPosition(o,n,r,h){const v="horizontal"===this._orientation,M=this._itemPositions.findIndex(({drag:Z,clientRect:X})=>{if(Z===o)return!1;if(h){const be=v?h.x:h.y;if(Z===this._previousSwap.drag&&this._previousSwap.overlaps&&be===this._previousSwap.delta)return!1}return v?n>=Math.floor(X.left)&&n<Math.floor(X.right):r>=Math.floor(X.top)&&r<Math.floor(X.bottom)});return-1!==M&&this.sortPredicate(M,o,this)?M:-1}
1_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(o,n){return null!=this._clientRect&&zr(this._clientRect,o,n)}_getSiblingContainerFromPosition(o,n,r){return this._siblings.find(h=>h._canReceive(o,n,r))}_canReceive(o,n,r){if(!this._clientRect||!zr(this._clientRect,n,r)||!this.enterPredicate(o,this))return!1;const h=this._getShadowRoot().elementFromPoint(n,r);if(!h)return!1;const v=(0,B.fI)(this.element);return h===v||v.contains(h)}_startReceiving(o,n){const r=this._activeSiblings;!r.has(o)&&n.every(h=>this.enterPredicate(h,this)||this._draggables.indexOf(h)>-1)&&(r.add(o),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){const n=this._parentPositions.handleScroll(o);n&&(this._itemPositions.forEach(({clientRect:r})=>{Mr(r,n.top,n.left)}),this._itemPositions.forEach(({drag:r})=>{this._dragDropRegistry.isDragging(r)&&r._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const o=(0,ma.kV)((0,B.fI)(this.element));this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const o=this._activeDraggables.filter(n=>n.isDragging());this._siblings.forEach(n=>n._startReceiving(this,o))}}function ss(c,o){const{top:n,bottom:r,height:h}=c,v=.05*h;return o>=n-v&&o<=n+v?1:o>=r-v&&o<=r+v?2:0}function Gi(c,o){const{left:n,right:r,width:h}=c,v=.05*h;return o>=n-v&&o<=n+v?1:o>=r-v&&o<=r+v?2:0}const Kr=(0,ma.i$)({passive:!1,capture:!0});let Qn=(()=>{class c{constructor(n,r){this._ngZone=n,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=h=>h.isDragging(),this.pointerMove=new de.x,this.pointerUp=new de.x,this.scroll=new de.x,this._preventDefaultWhileDragging=h=>{this._activeDragInstances.length>0&&h.preventDefault()},this._persistentTouchmoveListener=h=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&h.preventDefault(),this.pointerMove.next(h))},this._document=r}registerDropContainer(n){this._dropInstances.has(n)||this._dropInstances.add(n)}registerDragItem(n){this._dragInstances.add(n),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Kr)})}removeDropContainer(n){this._dropInstances.delete(n)}removeDragItem(n){this._dragInstances.delete(n),this.stopDragging(n),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Kr)}startDragging(n,r){if(!(this._activeDragInstances.indexOf(n)>-1)&&(this._activeDragInstances.push(n),1===this._activeDragInstances.length)){const h=r.type.startsWith("touch");this._globalListeners.set(h?"touchend":"mouseup",{handler:v=>this.pointerUp.next(v),options:!0}).set("scroll",{handler:v=>this.scroll.next(v),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Kr}),h||this._globalListeners.set("mousemove",{handler:v=>this.pointerMove.next(v),options:Kr}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((v,M)=>{this._document.addEventListener(M,v.handler,v.options)})})}}stopDragging(n){const r=this._activeDragInstances.indexOf(n);r>-1&&(this._activeDragInstances.splice(r,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(n){return this._activeDragInstances.indexOf(n)>-1}scrolled(n){const r=[this.scroll];return n&&n!==this._document&&r.push(new xi.y(h=>this._ngZone.runOutsideAngular(()=>{const M=Z=>{this._activeDragInstances.length&&h.next(Z)};return n.addEventListener("scroll",M,!0),()=>{n.removeEventListener("scroll",M,!0)}}))),(0,Nr.T)(...r)}ngOnDestroy(){this._dragInstances.forEach(n=>
1this.removeDragItem(n)),this._dropInstances.forEach(n=>this.removeDropContainer(n)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((n,r)=>{this._document.removeEventListener(r,n.handler,n.options)}),this._globalListeners.clear()}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(e.R0b),e.LFG(z.K0))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const js={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Vc=(()=>{class c{constructor(n,r,h,v){this._document=n,this._ngZone=r,this._viewportRuler=h,this._dragDropRegistry=v}createDrag(n,r=js){return new fc(n,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(n){return new Kn(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(z.K0),e.LFG(e.R0b),e.LFG(Ca.rL),e.LFG(Qn))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),qc=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[Vc],imports:[Ca.ZD]}),c})();var ds=D(1085),hs=D(7676),Su=D(3035),_a=D(3238),Ma=D(1894);function ku(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",51),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisibleOferta(h))}),e._UZ(1,"img",52),e.qZA()}}function I(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e.YNc(14,ku,2,0,"button",50),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(2),e.Oqu(n.categoria),e.xp6(2),e.Oqu(n.name),e.xp6(2),e.Oqu(n.direccion),e.xp6(2),e.Oqu(n.contacto),e.xp6(2),e.Oqu(n.vigencia),e.xp6(2),e.Oqu(n.validez),e.xp6(2),e.Q6J("ngIf",r.admin)}}function k(c,o){if(1&c&&(e.TgZ(0,"mat-option",53),e._uU(1),e.qZA()),2&c){const n=o.$implicit;e.Q6J("value",n),e.xp6(1),e.hij(" ",n," ")}}function T(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"img",58),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.detalleFile(h))}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("src",n.url,e.LSH)}}function j(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"video",59),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.detalleFile(h))}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("src",n.url,e.LSH)}}function Y(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",54),e.YNc(1,T,1,1,"img",55),e.YNc(2,j,1,1,"video",56),e.TgZ(3,"button",57),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.onRemoveAdministrador(v))}),e._uU(4,"X"),e.qZA()()}if(2&c){const n=o.$implicit;e.xp6(1),e.Q6J("ngIf",n.type.startsWith("image/")),e.xp6(1),e.Q6J("ngIf",n.type.startsWith("video"))}}function Pe(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"ngx-dropzone-preview",60),e.NdJ("removed",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.onRemove(v))}),e._UZ(1,"ngx-dropzone-label"),e.qZA()}2&c&&e.Q6J("removable",!0)}let rt=(()=>{class c{constructor(n,r,h,v){this.storage=n,this.firestore=r,this.formBuilder=h,this.documentoService=v,this.ofertCard=[],this.auxElements=[],this.files=[],this.oferta=[],this.mostrarDetalleFile=!1,this.direccion="",this.ofertaSeleccionado=null,this.creandoNuevaOferta=!1,this.ciudades=["Ambato","Ba\xf1os","Patate","Pelileo","P\xedllaro","Latacunga","Salcedo","Riobamba","Guayaquil","Quito","Puyo","Tena","Pujil\xed"]}ngOnInit(){this.ofertasInitionForm(),this.obtenerOferta();let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}ofertasInitionForm(){this.formOfertElements=this.formBuilder.group({nombreEmpresa:new x.NI(""),visible:"1",direccion:new x.NI(""),contacto:new x.NI(""),vigencia:new x.NI(""),categoria:new x.NI(""),validez:new x.NI})}onRemove(n){this.auxElements.splice(this.auxElements.indexOf(n),1)}onRemoveAdministrador(n){console.log("Archivo a eliminar:",n),this.files.splice(this.files.indexOf(n),1),console.log("Lista de archivos despu\xe9s de eliminar:",this.files)}detalleFile(n){this.mostrarDetalleFile=!0,this.fileMostrarDetalle=n}cargarDetalleOfertaTarjeta(n){this.ofertaSeleccionado=n,this.formOfertElements.patchValue({name:n.name}),this.creandoNuevaOferta=!1}
1limpiarFormulario(){this.formOfertElements.reset(),this.ofertaSeleccionado=null,this.creandoNuevaOferta=!0}saveActualizarOferta(){var n=this;return(0,wo.Z)(function*(){const r=n.formOfertElements.value;if(n.creandoNuevaOferta)try{yield n.documentoService.guardarOferta(r),ie().fire({icon:"success",title:"Oferta guardada correctamente",showConfirmButton:!1,timer:1500}),n.obtenerOferta(),n.limpiarFormulario()}catch(h){console.error("Error al guardar el slider:",h),ie().fire("Error","Hubo un error al guardar el slider.","error")}else try{yield n.documentoService.actualizarOferta(n.ofertaSeleccionado.id,r),ie().fire({icon:"success",title:"Oferta actualizada correctamente",showConfirmButton:!1,timer:1500}),n.obtenerOferta(),n.limpiarFormulario()}catch(h){console.error("Error al actualizar el slider:",h),ie().fire("Error","Hubo un error al actualizar el slider.","error")}})()}onSelect(n){if(this.files.length>0)ie().fire({icon:"warning",title:"\xa1Atenci\xf3n!",text:"Ya se ha subido una imagen. Solo se permite subir una imagen a la vez.",confirmButtonText:"OK"});else if(n&&n.addedFiles&&n.addedFiles.length>0)if(0===this.auxElements.length){const r=n.addedFiles[0];if(r.type.startsWith("image/")){const h=new FileReader;h.onload=v=>{r.url=v.target.result,this.auxElements=[],this.auxElements.push(r)},h.readAsDataURL(r)}else ie().fire({icon:"error",title:"\xa1Error!",text:"Solo se permiten archivos de imagen (JPEG, JPG, PNG, GIF).",confirmButtonText:"OK"})}else ie().fire({icon:"error",title:"\xa1Error!",text:"Solo se permite subir una imagen.",confirmButtonText:"OK"});else ie().fire("Advertencia","No se seleccionaron archivos.","warning")}saveOferta(){var n=this;return(0,wo.Z)(function*(){if(n.files.length>0){const r=[];for(let h=0;h<n.files.length;h++){const v=n.files[h];if(v.type.startsWith("image/")){const Z=`ofertas/${(new Date).getTime()}_${v.name}`,X=n.storage.upload(Z,v);try{const gt=yield(yield X).ref.getDownloadURL();r.push(gt)}catch(be){console.error("Error al cargar la imagen: ",be),ie().fire("Error",`Hubo un error al cargar la imagen ${v.name}.`,"error")}}}if(r.length>0){const h=n.formOfertElements.get("nombreEmpresa")?.value||"",v=n.formOfertElements.get("direccion")?.value||"",M=n.formOfertElements.get("contacto")?.value||"",Z=n.formOfertElements.get("vigencia")?.value||"",X=n.formOfertElements.get("categoria")?.value||"",be=n.formOfertElements.get("validez")?.value||"";n.firestore.collection("ofertas").add({date:new Date,nombreEmpresa:h,visible:"1",direccion:v,contacto:M,vigencia:Z,categoria:X,validez:be,imageUrls:r}).then(gt=>{ie().fire("\xa1Im\xe1genes guardadas!","Las im\xe1genes se han guardado correctamente.","success")}).catch(gt=>{ie().fire("Error","Hubo un error al guardar las im\xe1genes.","error")})}else ie().fire("Advertencia","No se encontraron im\xe1genes para guardar.","warning")}else ie().fire("Advertencia","No se seleccionaron archivos.","warning");n.files=[],n.limpiarFormulario()})()}saveImgOferta(){if(this.auxElements.length>0)for(let n=0;n<this.auxElements.length;n++){const r=this.auxElements[n];if(r.type.startsWith("image/")){const h=new FileReader;h.onload=v=>{r.url=v.target.result,this.files.push(r)},h.readAsDataURL(r)}else this.files.push(r)}else ie().fire("Advertencia","No se seleccionaron archivos.","warning")}obtenerOferta(){this.firestore.collection("ofertas",n=>n.where("visible","==","1")).snapshotChanges().subscribe(n=>{this.oferta=[],n.forEach(r=>{const h=r.payload.doc.data();this.oferta.push({id:r.payload.doc.id,name:h.nombreEmpresa,direccion:h.direccion,
1contacto:h.contacto,vigencia:h.vigencia,categoria:h.categoria,validez:h.validez,imageUrls:h.imageUrls})}),console.log("Ofertas:",this.oferta)})}onChangeVisibleOferta(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.eliminarOferta(n.id,{visible:"0"}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}actualizarOferta(n,r){var h=this;return(0,wo.Z)(function*(){ie().fire({title:"\xbfEst\xe1s seguro que deseas actualizar este dato?",showDenyButton:!0,confirmButtonText:"Aceptar"}).then(function(){var v=(0,wo.Z)(function*(M){if(M.isConfirmed)try{const Z=yield h.documentoService.obtenerOfertaPorId(n);void 0!==Z?(h.formOfertElements.patchValue({name:Z.name,imagenes:Z.imagenes}),yield h.documentoService.actualizarOferta(n,r),ie().fire({icon:"success",title:"Actualizado correctamente",showConfirmButton:!1,timer:1500}),h.obtenerOferta()):(console.error("No se pudo obtener el slider correspondiente"),ie().fire("Error","No se pudo obtener el slider correspondiente","error"))}catch(Z){console.error("Error al actualizar el slider:",Z),ie().fire("Error","Hubo un error al actualizar el slider.","error")}});return function(M){return v.apply(this,arguments)}}())})()}drop(n){ee(this.files,n.previousIndex,n.currentIndex)}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(ft.Q1),e.Y36(ds.ST),e.Y36(x.qu),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-admin-ofert-card"]],decls:102,vars:5,consts:[[1,"container-fluid"],[1,"row"],[1,"col-md-6"],[1,"titulo"],[1,"table-responsive"],[1,"table","table-striped"],["scope","col"],[4,"ngFor","ngForOf"],[1,"card"],[1,"card-body"],[3,"formGroup"],[1,"card-subtitle","mb-3"],["type","text","placeholder","Nombre de la empresa","formControlName","nombreEmpresa",1,"form-control","mb-3"],["type","text","placeholder","Direcci\xf3n","formControlName","direccion",1,"form-control","mb-3"],["type","text","placeholder","Contacto","formControlName","contacto",1,"form-control","mb-3"],["type","text","placeholder","Vigencia","formControlName","vigencia",1,"form-control","mb-3"],[1,"form-group"],["for","categoria"],["appearance","fill"],["formControlName","validez","multiple","",1,"mat-select-lg"],[3,"value",4,"ngFor","ngForOf"],[1,"select-wrapper"],["id","categoria","formControlName","categoria",1,"form-control"],["value",""],["value","Salud y belleza"],["value","Deporte y entretenimiento"],["value","Restaurantes"],["value","Tecnolog\xeda"],["value","Hogar y moda"],["value","Compras y m\xe1s"],[1,"fas","fa-chevron-down"],[1,"d-flex","flex-wrap","justify-content-center"],["class","m-2 container-previsualitation",4,"ngFor","ngForOf"],[1,"mt-4"],["data-bs-toggle","modal","data-bs-target","#exampleModal",1,"btn","btn-primary","me-2","custom-btn"],[1,"ctn-btn","mt-4"],[1,"btn","btn-primary","me-2","custom-btn",3,"click"],["id","exampleModal","tabindex","-1","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"col-12","col-sm-12","col-lg-12"],["accept","image/jpeg,image/jpg,image/png,image/gif",3,"change"],[3,"removable","removed",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary"],["data-bs-dismiss","modal",1,"btn","btn-secondary",3,"click"],["class","btn texto",3,"click",4,"ngIf"],[1,"btn","texto",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],[3,"value"],[1,"m-2","container-previsualitation"],["class","img-fluid rounded","alt","",3,"src","click",4,"ngIf"],["class","img-fluid rounded","controls","",3,"src","click",4,"ngIf"],[1,"btn","btn-sm","btn-custom","mt-2",3,"click"],["alt","",1,"img-fluid","rounded",3,"src","click"],["controls","",1,"img-fluid","rounded",3,"src","click"],[3,"removable","removed"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e._uU(4,"Ofertas de Tarjetas Activas"),e.qZA(),e.TgZ(5,"div",4)(6,"table",5)(7,"thead")(8,"tr")(9,"th",6),e._uU(10,"Categoria"),e.qZA(),e.TgZ(11,"th",6),e._uU(12,"Nombre"),e.qZA(),e.TgZ(13,"th",6),e._uU(14,"Direcci\xf3n"),e.qZA(),e.TgZ(15,"th",6),e._uU(16,"Contacto"),e.qZA(),e.TgZ(17,"th",6),e._uU(18,"Vigencia"),e.qZA(),e.TgZ(19,"th",6),e._uU(20,"Ciudades"),e.qZA(),e._UZ(21,"th",6),e.qZA()(),e.TgZ(22,"tbody"),e.YNc(23,I,15,7,"tr",7),e.qZA()()()(),e.TgZ(24,"div",2)(25,"div",8)(26,"div",9)(27,"form",10)(28,"h2",3),e._uU(29,"Oferta de Tarjetas"),e.qZA(),e.TgZ(30,"h6",11),e._uU(31,"Nombre de la empresa"),e.qZA(),e._UZ(32,"input",12),e.TgZ(33,"h6",11),e._uU(34,"Direcci\xf3n"),e.qZA(),e._UZ(35,"input",13),e.TgZ(36,"h6",11),e._uU(37,"Contacto"),e.qZA(),e._UZ(38,"input",14),e.TgZ(39,"h6",11),e._uU(40,"Vigencia"),e.qZA(),e._UZ(41,"input",15),e.TgZ(42,"div",1)(43,"div",2)(44,"div",16)(45,"label",17),e._uU(46,"Ciudades:"),e.qZA(),e.TgZ(47,"mat-form-field",18)(48,"mat-label"),e._uU(49,"Ciudades de Ecuador"),e.qZA(),e.TgZ(50,"mat-select",19),e.YNc(51,k,2,2,"mat-option",20),e.qZA()()()(),e.TgZ(52,"div",2)(53,"div",16)(54,"label",17),e._uU(55,"Categor\xeda:"),e.qZA(),e.TgZ(56,"div",21)(57,"select",22)(58,"option",23),e._uU(59,"Selecciona una categoria"),e.qZA(),e.TgZ(60,"option",24),e._uU(61,"Salud y belleza"),e.qZA(),e.TgZ(62,"option",25),e._uU(63,"Deporte y entretenimiento"),e.qZA(),e.TgZ(64,"option",26),e._uU(65,"Restaurantes"),e.qZA(),e.TgZ(66,"option",27),e._uU(67,"Tecnolog\xeda"),e.qZA(),e.TgZ(68,"option",28),e._uU(69,"Hogar y moda"),e.qZA(),e.TgZ(70,"option",29),e._uU(71,"Compras y m\xe1s"),e.qZA()(),e._UZ(72,"i",30),e.qZA()()()()(),e.TgZ(73,"h6",11),e._uU(74,"Imagen Subida"),e.qZA(),e.TgZ(75,"div",31),e.YNc(76,Y,5,2,"div",32),e.qZA(),e.TgZ(77,"div",33)(78,"button",34),e._uU(79,"Subir Im\xe1genes"),e.qZA()(),e.TgZ(80,"div",35)(81,"button",36),e.NdJ("click",function(){return r.s
1aveOferta()}),e._uU(82,"Agregar Oferta"),e.qZA()()()()()()(),e.TgZ(83,"div",37)(84,"div",38)(85,"div",39)(86,"div",40)(87,"h5",41),e._uU(88,"Imagenes"),e.qZA(),e._UZ(89,"button",42),e.qZA(),e.TgZ(90,"div",43)(91,"div",1)(92,"div",44)(93,"ngx-dropzone",45),e.NdJ("change",function(v){return r.onSelect(v)}),e.TgZ(94,"ngx-dropzone-label"),e._uU(95,"Arrastra una imagen"),e.qZA(),e.YNc(96,Pe,2,1,"ngx-dropzone-preview",46),e.qZA()()()(),e.TgZ(97,"div",47)(98,"button",48),e._uU(99,"Cerrar"),e.qZA(),e.TgZ(100,"button",49),e.NdJ("click",function(){return r.saveImgOferta()}),e._uU(101,"Agregar"),e.qZA()()()()()),2&n&&(e.xp6(23),e.Q6J("ngForOf",r.oferta),e.xp6(4),e.Q6J("formGroup",r.formOfertElements),e.xp6(24),e.Q6J("ngForOf",r.ciudades),e.xp6(25),e.Q6J("ngForOf",r.files.slice(0,1)),e.xp6(20),e.Q6J("ngForOf",r.auxElements))},dependencies:[z.sg,z.O5,x._Y,x.YN,x.Kr,x.Fj,x.EJ,x.JJ,x.JL,x.sg,x.u,hs.KE,hs.hX,Su.gD,_a.ey,Ma._f,Ma.NP,Ma.dt],styles:[".select-wrapper[_ngcontent-%COMP%]{position:relative}.select-wrapper[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:50%;right:10px;transform:translateY(-50%);pointer-events:none}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-items:center;justify-content:center;height:100vh;width:100vw;margin-left:70rem}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:600px}.container-fluid[_ngcontent-%COMP%]{background-color:#f8f9fa;padding:20px}.card[_ngcontent-%COMP%]{border-radius:15px;box-shadow:0 0 10px #0000001a}.card-body[_ngcontent-%COMP%]{padding:20px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;margin-bottom:20px}.form-control[_ngcontent-%COMP%]{margin-bottom:15px}.select-wrapper[_ngcontent-%COMP%]{position:relative}.select-wrapper[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.form-row[_ngcontent-%COMP%]{margin-bottom:20px}.btn-primary[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;border:none}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#3b6dbb}.ctn-btn[_ngcontent-%COMP%]{text-align:center;margin-top:20px}.ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 20px;border-radius:5px;font-size:14px}.ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background-color:#2e56a1}.container-previsualitation[_ngcontent-%COMP%]{max-width:200px;margin:10px}@media (max-width: 767px){.modal-dialog[_ngcontent-%COMP%]{margin-left:0}.modal-content[_ngcontent-%COMP%]{max-width:none}}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] + tbody[_ngcontent-%COMP%]{border-top:2px solid #dee2e6}.table-sm[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table-sm[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.3rem}.table-bordered[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#0000000d}.table-hover[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#00000013}.text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:15pt}"]}),c})();function Ct(c,o){1&c&&(e.TgZ(0,"div",1)(1,"div",34)(2,"button",35),e._uU(3," Nuevo "),e.qZA()()())}function yn(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",43),e.NdJ("click",function(){e.CHM(n);const h=e.oxw().$implicit,v=e.oxw();return e.KtG(v.onChangeVisible(h))}),e._UZ(1,"img",44),e.qZA()}}function $n(c,o){if(1&c&&(e.TgZ(0,"tr")(1,"td",36),e._UZ(2,"img",37),e.qZA(),e.TgZ(3,"td",38),e._uU(4),e.qZA(),e.TgZ(5,"td",39)(6,"a",40),e._UZ(7,"img",41),e.qZA(),e.YNc(8,yn,2,0,"button",42),e.qZA()()),2&c){const n=o.$implicit,r=e.oxw();e.xp6(4),e.hij(" ",n.nameDocument," "),e.xp6(2),e.Q6J("href",n.url,e.LSH),e.xp6(2),e.Q6J("ngIf",r.admin)}}function gr(c,o){1&c&&(e.TgZ(0,"tr")(1,"td",45),e._uU(2," No hay documentos disponibles "),e.qZA()())}function Ci(c,o){1&c&&(e.TgZ(0,"div",46)(1,"div",47)(2,"span",48),e._uU(3,"Subiendo archivo... por favor espere"),e.qZA()()())}function Yr(c,o){1&c&&(e.TgZ(0,"span"),e._uU(1,"Agregar"),e.qZA())}function Fs(c,o){1&c&&(e.TgZ(0,"span"),e._UZ(1,"i",49),e._uU(2," Procesando... "),e.qZA())}let Ea=(()=>{class c{constructor(n,r,h){this.formBuilder=n,this.storage=r,this.documentoService=h,this.tarifarios=[],this.selectedtarifa=null,this.file=[],this.cargando=!1,this.tarifaForm=this.formBuilder.group({tipo:[""],nombre:["",x.kI.required],archivo:["",x.kI.required]})}ngOnInit(){this.getDocumentTarifa();let n=localStorage.getItem("usuario");this.usuario=JSON.parse(n),this.admin=!!this.usuario}getDocumentTarifa(){this.documentoService.getAllDocumentsTarifa().subscribe(n=>
1{this.tarifarios=[],n.forEach(r=>{this.tarifarios.push({id_tarifa:r.payload.doc.id,...r.payload.doc.data()})}),this.tarifarios.sort((r,h)=>r.fecha-h.fecha)})}onSelectTarifa(n){this.selectedtarifa=n}onAddTarifa(){if(this.tarifaForm.invalid)return;const n=this.tarifaForm.get("archivo")?.value,h=`pdfs/tarifarios-cooperativa/${n.name}`,v=this.storage.ref(h);this.storage.upload(h,n).snapshotChanges().subscribe(()=>{v.getDownloadURL().subscribe(Z=>{const X={tipo:"pdf",nombre:this.tarifaForm.get("nombre")?.value,url:Z};this.tarifarios.push(X),this.tarifaForm.reset()})},Z=>{})}onSelectDocument(n){n.target.files&&n.target.files[0]&&(this.file=n.target.files[0])}onAddDocumentoTarifa(){if(this.tarifaForm.invalid)this.markFormTouched(),ie().fire({icon:"error",title:"Error",text:"Completa todos los campos correctamente"});else{this.cargando=!0;let n=this.tarifaForm.get("nombre")?.value,r=new FileReader;r.readAsDataURL(this.file),r.onloadend=()=>{this.documentoService.upDocumentoFirebaseTarifa(n,r.result).then(h=>{let v={nameDocument:n,url:h,visible:!0,idUser:this.usuario.id_usuario,fecha:Date.now()};this.documentoService.postDocumentTarifa(v).then(M=>{this.cargando=!1,this.file=[],this.tarifaForm.reset(),this.getDocumentTarifa(),ie().fire({icon:"success",title:"Documento agregado",text:"El documento se ha agregado correctamente"})}).catch(M=>{this.cargando=!1})}).catch(h=>{this.cargando=!1,ie().fire("Error","No se pudo subir el archivo de tarifa","error")})}}}markFormTouched(){Object.values(this.tarifaForm.controls).forEach(n=>{n.markAsTouched()})}onChangeVisible(n){ie().fire({title:"\xbfEstas seguro que quieres desactivar documento?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Confirmar"}).then(r=>{r.isConfirmed&&(this.documentoService.putVisibleDocumentTarifa(n.id_tarifa,{visible:!1}),ie().fire({icon:"success",title:"Tu acci\xf3n se realiz\xf3 con exito",showConfirmButton:!1,timer:1500}))})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(ft.Q1),e.Y36(Wt.Z))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-tarifarios-cooperativa"]],decls:52,vars:8,consts:[[1,"container-fluid","tarifarios-page"],[1,"row"],[1,"col-12"],[1,"text-center","page-title"],[1,"content-card","card-header","mx-auto","bg-light"],[1,"content-inner"],["class","row",4,"ngIf"],[1,"table-responsive","custom-table-wrapper"],[1,"table","table-striped","custom-table"],["scope","col"],["scope","col",1,"actions-column"],[4,"ngFor","ngForOf"],[4,"ngIf"],["id","myModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel",1,"modal","fade"],["role","document",1,"modal-dialog","custom-modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-dismiss","modal","aria-label","Close",1,"close","modal-close"],["aria-hidden","true"],[1,"modal-body"],[1,"card","modal-card"],[1,"card-body"],[1,"custom-form",3,"formGroup","ngSubmit"],[1,"titulo"],[1,"form-group"],["for","nombre"],["type","text","id","nombre","formControlName","nombre",1,"form-control"],["for","archivo"],[1,"custom-file"],["type","file","id","archivo","formControlName","archivo",1,"custom-file-input",3,"change"],["for","archivo",1,"custom-file-label"],["class","progress mb-3","style","height: 25px;",4,"ngIf"],[1,"ctn-btn"],["type","submit",1,"btn","btn-primary","submit-btn",3,"disabled"],["data-toggle","modal","data-target","#myModal",1,"col-12","action-bar"],["type","submit",1,"btn","btn-primary","boton"],[1,"type-cell"],["src","../../assets/img/admin/pdf.png","alt","PDF",1,"pdf-icon"],[1,"name-cell"],[1,"actions-cell"],["target","_blank","title","Visualizar",1,"btn","texto","action-btn",3,"href"],["src","../../../assets/img/admin/view.png","alt","Visualizar"],["class","btn texto action-btn","title","Eliminar",3,"click",4,"ngIf"],["title","Eliminar",1,"btn","texto","action-btn",3,"click"],["src","../../../assets/img/admin/delete.png","alt","Eliminar"],["colspan","3",1,"empty-state-cell"],[1,"progress","mb-3",2,"height","25px"],["role","progressbar","aria-valuenow","100","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","progress-bar-animated","bg-success",2,"width","100%"],[1,"font-weight-bold"],[1,"fa","fa-spinner","fa-spin"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e._uU(4,"Tarifarios"),e.qZA()()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,Ct,4,0,"div",6),e.TgZ(8,"div",1)(9,"div",2)(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th",9),e._uU(15,"Tipo"),e.qZA(),e.TgZ(16,"th",9),e._uU(17,"Nombre"),e.qZA(),e.TgZ(18,"th",10),e._uU(19,"Acciones"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,$n,9,3,"tr",11),e.YNc(22,gr,3,0,"tr",12),e.qZA()()()()()()()(),e.TgZ(23,"div",13)(24,"div",14)(25,"div",15)(26,"div",16)(27,"button",17)(28,"span",18),e._uU(29,"\xd7"),e.qZA()()(),e.TgZ(30,"div",19)(31,"div",20)(32,"div",21)(33,"form",22),e.NdJ("ngSubmit",function(){return r.onAddDocumentoTarifa()}),e.TgZ(34,"h1",23),e._uU(35,"Nuevo Archivo Tarifario"),e.qZA(),e.TgZ(36,"div",24)(37,"label",25),e._uU(38,"Nombre"),e.qZA(),e._UZ(39,"input",26),e.qZA(),e.TgZ(40,"div",24)(41,"label",27),e._uU(42,"Archivo"),e.qZA(),e.TgZ(43,"div",28)(44,"input",29),e.NdJ("change",function(v){return r.onSelectDocument(v)}),e.qZA(),e.TgZ(45,"label",30),e._uU(46,"Seleccionar archivo"),e.qZA()()(),e.YNc(47,Ci,4,0,"div",31),e.TgZ(48,"div",32)(49,"button",33),e.YNc(50,Yr,2,0,"span",12),e.YNc(51,Fs,3,0,"span",12),e.qZA()()()()()()()()()),2&n&&(e.xp6(7),e.Q6J("ngIf",r.admin),e.xp6(14),e.Q6J("ngForOf",r.tarifarios),e.xp6(1),e.Q6J("ngIf",!r.tarifarios||0===r.tarifarios.length),e.xp6(11),e.Q6J("formGroup",r.tarifaForm),e.xp6(14),e.Q6J("ngIf",r.cargando),e.xp6(2),e.Q6J("disabled",!r.tarifaForm.valid||r.cargando),e.xp6(1),e.Q6J("ngIf",!r.cargando),e.xp6(1),e.Q6J("ngIf",r.cargando))},dependencies:[z.sg,z.O5,x._Y,x.Fj,x.JJ,x.JL,x.sg,x.u],styles:['*[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}body[_ngcontent-%COMP%]{background:#fefeff;font-family:Arial,Helvetica,sans-serif}.tarifarios-page[_ngcontent-%COMP%]{padding:16px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:28px;font-weight:700;margin-bottom:20px}.content-card[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0;background:#ffffff!important;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 8px 24px #2e56a114}.content-inner[_ngcontent-%COMP%]{padding:20px}.div[_ngcontent-%COMP%]{margin:15px}.titulo[_ngcontent-%COMP%]{text-align:center;color:#2e56a1;font-size:24px;margin-bottom:18px}
1.action-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:18px}.boton[_ngcontent-%COMP%]{margin:0}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{color:#fff;background-color:#2e56a1;border-color:#2e56a1;min-width:140px;min-height:44px;padding:10px 18px;text-align:center;font-size:14px;border-radius:10px;margin-top:0}.btn-primary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#bacd0b;border-color:#bacd0b}.btn[_ngcontent-%COMP%]{color:#fff}.card[_ngcontent-%COMP%]{margin-top:20px;border:none}.card-header[_ngcontent-%COMP%]{font-weight:700;font-size:20px}.card-body[_ngcontent-%COMP%]{padding:0}.custom-table-wrapper[_ngcontent-%COMP%]{width:100%;overflow-x:auto;border-radius:14px}.table[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;color:#797473;font-size:16px}.custom-table[_ngcontent-%COMP%]{margin-bottom:0;min-width:640px}.custom-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle;border-bottom:2px solid #dee2e6;color:#2e56a1;font-weight:700;background:#f5f8fd;white-space:nowrap}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.9rem .75rem;vertical-align:middle;border-top:1px solid #dee2e6}.table-striped[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#2e56a10a}.type-cell[_ngcontent-%COMP%]{width:80px;text-align:center}.name-cell[_ngcontent-%COMP%]{word-break:break-word;color:#4b5563}.actions-column[_ngcontent-%COMP%]{width:150px;text-align:center}.actions-cell[_ngcontent-%COMP%]{white-space:nowrap;text-align:center}.action-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px;margin:0 4px;background:transparent;border-radius:10px}.action-btn[_ngcontent-%COMP%]:hover{background:rgba(46,86,161,.08)}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px;object-fit:contain}.pdf-icon[_ngcontent-%COMP%]{width:28px;height:28px;object-fit:contain}.empty-state-cell[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#6b7280;font-weight:600}.modal-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 1rem);margin:.5rem auto}.custom-modal-dialog[_ngcontent-%COMP%]{width:100%;max-width:680px;padding:0 16px}.modal-content[_ngcontent-%COMP%]{width:100%;max-width:100%;border-radius:18px;border:none;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;border-bottom:1px solid #eef2f7}.modal-close[_ngcontent-%COMP%]{background:transparent;font-size:28px;line-height:1;color:#2e56a1;cursor:pointer}.modal-body[_ngcontent-%COMP%]{padding:16px}.modal-card[_ngcontent-%COMP%]{margin-top:0;border:none;box-shadow:none}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1;margin-bottom:8px;display:inline-block}.custom-file-label[_ngcontent-%COMP%]:after{content:"Examinar"}form.custom-form[_ngcontent-%COMP%]{background:#d5e2ea;width:100%;max-width:100%;margin:0 auto;padding:24px;border-radius:14px;border:2px solid #acc6d6}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-input[_ngcontent-%COMP%], form.custom-form[_ngcontent-%COMP%] .custom-file-label[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #acc6d6;width:100%;padding:10px 12px;display:block;font-size:14px}form.custom-form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus, form.custom-form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border:1px dashed #8eb1c7;box-shadow:none}form.custom-form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{resize:none}form.custom-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin:10px 0 8px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%]{width:100%;text-align:center;margin:24px 0 0}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{border-radius:10px;font-size:14px;text-transform:uppercase;color:#fff;filter:brightness(90%)}form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=reset], form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover[type=submit]{filter:brightness(110%)}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=reset][_ngcontent-%COMP%]{background:#eb4511;margin-right:20px}form.custom-form[_ngcontent-%COMP%] .ctn-btn[_ngcontent-%COMP%] button[type=submit][_ngcontent-%COMP%]{background:#2e56a1}.submit-btn[_ngcontent-%COMP%]{width:100%;max-width:220px}@media (max-width: 992px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:24px}
1.content-inner[_ngcontent-%COMP%]{padding:16px}.custom-table[_ngcontent-%COMP%]{min-width:580px}.titulo[_ngcontent-%COMP%]{font-size:22px}}@media (max-width: 768px){.tarifarios-page[_ngcontent-%COMP%]{padding:12px}.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.content-card[_ngcontent-%COMP%]{border-radius:14px}.content-inner[_ngcontent-%COMP%]{padding:14px}.action-bar[_ngcontent-%COMP%]{justify-content:stretch}.boton[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]{width:100%;min-width:100%}.custom-table[_ngcontent-%COMP%]{min-width:520px}.custom-modal-dialog[_ngcontent-%COMP%]{max-width:100%;padding:0 10px}.modal-body[_ngcontent-%COMP%]{padding:12px}form.custom-form[_ngcontent-%COMP%]{padding:18px}.titulo[_ngcontent-%COMP%]{font-size:20px}.action-btn[_ngcontent-%COMP%]{min-width:40px;min-height:40px;margin:0 2px}.pdf-icon[_ngcontent-%COMP%]{width:26px;height:26px}}@media (max-width: 480px){.page-title[_ngcontent-%COMP%], .text-center[_ngcontent-%COMP%]{font-size:20px}.content-inner[_ngcontent-%COMP%]{padding:12px}.custom-table[_ngcontent-%COMP%]{min-width:460px}.custom-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem .6rem;font-size:14px}.titulo[_ngcontent-%COMP%]{font-size:18px}form.custom-form[_ngcontent-%COMP%]{padding:16px;border-radius:12px}.action-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:20px;height:20px}}']}),c})();var hr=D(7340);function va(c,o){if(1&c&&(e.TgZ(0,"div",7),e._UZ(1,"img",8),e.qZA()),2&c){const n=e.oxw().$implicit;e.Q6J("@fade",void 0),e.xp6(1),e.Q6J("src",n,e.LSH)}}function Tl(c,o){if(1&c&&(e.ynx(0),e.YNc(1,va,2,2,"div",6),e.BQk()),2&c){const n=o.index,r=e.oxw();e.xp6(1),e.Q6J("ngIf",r.current==n)}}let jc=(()=>{class c{constructor(){this.current=0,this.img_list=[]}ngOnInit(){}prevSlide(){this.current=this.current>0?this.current-1:this.img_list.length-1}nextSlide(){this.current=this.current<this.img_list.length-1?this.current+1:0}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-panel-banner"]],decls:8,vars:1,consts:[[1,"container"],[1,"div_content_slider"],[1,"sliders"],[1,"nav","prev",3,"click"],[4,"ngFor","ngForOf"],[1,"nav","next",3,"click"],["class","slider",4,"ngIf"],[1,"slider"],[1,"img",3,"src"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),e.NdJ("click",function(){return r.prevSlide()}),e._uU(4,"\u276e"),e.qZA(),e.YNc(5,Tl,2,1,"ng-container",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return r.nextSlide()}),e._uU(7,"\u276f"),e.qZA()()()()),2&n&&(e.xp6(5),e.Q6J("ngForOf",r.img_list))},dependencies:[z.sg,z.O5],styles:[".div_content_slider[_ngcontent-%COMP%]{display:flex;justify-content:center}.sliders[_ngcontent-%COMP%]{position:relative;width:70%;height:220px;margin-top:2rem}.slider[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.img[_ngcontent-%COMP%]{width:100%;height:100%}.nav[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);background-color:#00000080;color:#fff;border:none;cursor:pointer;padding:15px 20px;font-size:18px;opacity:0;transition:opacity .3s;z-index:1;border-radius:50%}.sliders[_ngcontent-%COMP%]:hover .nav[_ngcontent-%COMP%]{opacity:1}.prev[_ngcontent-%COMP%]{left:10px}.next[_ngcontent-%COMP%]{right:10px}"],data:{animation:[(0,hr.X$)("fade",[(0,hr.eR)("void => *",[(0,hr.oB)({opacity:0}),(0,hr.jt)("400ms",(0,hr.oB)({opacity:1}))]),(0,hr.eR)("* => void",[(0,hr.oB)({opacity:1}),(0,hr.jt)("400ms",(0,hr.oB)({opacity:0}))])])]}}),c})();var Ri=D(3324),ra=D(3692),ll=D(259),Nd=D(2313),xp=D(1389),cn=D(2090),Vl=D(6881),Hc=D(1877),$c=D(4859);function Fd(c){return new xi.y(function(o){return{unsubscribe:(0,xp.x)(c,o.next.bind(o),o.error.bind(o),o.complete.bind(o))}})}class ql{constructor(o){return o}}class La{constructor(){return(0,Ri.vb)("auth")}}const jl=new e.OlP("angularfire2.auth-instances");function Zd(c){return(o,n)=>{const r=o.runOutsideAngular(()=>c(n));return new ql(r)}}const Jr={provide:La,deps:[[new e.FiY,jl]]},mc={provide:ql,useFactory:function Hl(c,o){const n=(0,Ri.JM)("auth",c,o);return n&&new ql(n)},deps:[[new e.FiY,jl],ra.Ot]};let jo=(()=>{class c{constructor(){(0,ll.KN)("angularfire",Ri.q4.full,"auth")}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[mc,Jr]}),c})();function Oo(c,...o){return{ngModule:jo,providers:[{provide:jl,useFactory:Zd(c),multi:!0,deps:[e.R0b,e.zs3,Ri.HU,ra.z6,[new e.FiY,Nd.nm],...o]}]}}const Bd=(0,Ri.u3)(Fd,!0),Vd=(0,Ri.u3)(xp.o,!0);var Ta=D(2810),Ya=D(4004),aa={includeMetadataChanges:!1};function Al(c,o){return void 0===o&&(o=aa),new xi.y(function(n){return{unsubscribe:(0,Ta.cf)(c,o,{next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}})}function ef(c,o){return void 0===o&&(o={}),function Ap(c){return Al(c,{includeMetadataChanges:!0})}(c).pipe((0,Ya.U)(function(n){return Ip(n,o)}))}function Ip(c,o){void 0===o&&(o={});var n=c.data();return!c.exists()||"object"!=typeof n||null===n||o.idField&&(n[o.idField]=c.id),n}function Yc(c,o){return void 0===o&&(o={}),function Sp(c){return Al(c,{includeMetadataChanges:!0}).pipe((0,Ya.U)(function(o){return o.docs}))}(c).pipe((0,Ya.U)(function(n){return n.map(function(r){return Ip(r,o)})}))}class Qa{constructor(o){return o}}const rf="firestore",b=new e.OlP("angularfire2.firestore-instances");function N(c){return(o,n)=>{const r=o.runOutsideAngular(()=>c(n));return new Qa(r)}}const ce={provide:class Bu{constructor(){return(0,Ri.vb)(rf)}},deps:[[new e.FiY,b]]},Ve={provide:Qa,useFactory:function w(c,o){const n=(0,Ri.JM)(rf,c,o);return n&&new Qa(n)},deps:[[new e.FiY,b],ra.Ot]};let qt=(()=>{class c{constructor(){(0,ll.KN)("angularfire",Ri.q4.full,"fst")}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[Ve,ce]}),c})();function an(c,...o){return{ngModule:qt,providers:[{provide:b,useFactory:N(c),multi:!0,deps:[e.R0b,e.zs3,Ri.HU,ra.z6,[new e.FiY,La],[new e.FiY,Nd.nm],...o]}]}}const mo=(0,Ri.u3)(Yc,!0),xc=(0,Ri.u3)(ef,!0),Kl=(0,Ri.u3)(Ta.ET,!0),wc=(0,Ri.u3)(Ta.hJ,!0),mr=(0,Ri.u3)(Ta.oe,!0),zu=(0,Ri.u3)(Ta.JU,!0),$d=(0,Ri.u3)(Ta.ad,!0),qu=(0,Ri.u3)(Ta.Xo,!0),cf=(0,Ri.u3)(Ta.IO,!0),el=(0,Ri.u3)(Ta.Bt,!0),Zp=(0,Ri.u3)(Ta.r7,!0);var Ls=D(6805),Qr=D(930),Ua=D(6961);class Il{constructor(o){return o}}const df="storage",Bp=new e.OlP("angularfire2.storage-instances");
1function Om(c){return(o,n)=>{const r=o.runOutsideAngular(()=>c(n));return new Il(r)}}const Wd={provide:class f0{constructor(){return(0,Ri.vb)(df)}},deps:[[new e.FiY,Bp]]},hf={provide:Il,useFactory:function p0(c,o){const n=(0,Ri.JM)(df,c,o);return n&&new Il(n)},deps:[[new e.FiY,Bp],ra.Ot]};let ff=(()=>{class c{constructor(){(0,ll.KN)("angularfire",Ri.q4.full,"gcs")}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[hf,Wd]}),c})();function zp(c,...o){return{ngModule:ff,providers:[{provide:Bp,useFactory:Om(c),multi:!0,deps:[e.R0b,e.zs3,Ri.HU,ra.z6,[new e.FiY,La],[new e.FiY,Nd.nm],...o]}]}}const pf=(0,Ri.u3)(Ua.oq,!0),_0=(0,Ri.u3)(Ua.Jt,!0),b1=(0,Ri.u3)(Ua.cF,!0),v0=(0,Ri.u3)(Ua.iH,!0),ms=(0,Ri.u3)(Ua.KV,!0);var eu,Jl=new Uint8Array(16);function jp(){if(!eu&&!(eu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eu(Jl)}const gf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Hp=function Kd(c){return"string"==typeof c&&gf.test(c)};for(var la=[],ns=0;ns<256;++ns)la.push((ns+256).toString(16).substr(1));const mf=function $u(c,o,n){var r=(c=c||{}).random||(c.rng||jp)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,o){n=n||0;for(var h=0;h<16;++h)o[n+h]=r[h];return o}return function Mb(c){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(la[c[o+0]]+la[c[o+1]]+la[c[o+2]]+la[c[o+3]]+"-"+la[c[o+4]]+la[c[o+5]]+"-"+la[c[o+6]]+la[c[o+7]]+"-"+la[c[o+8]]+la[c[o+9]]+"-"+la[c[o+10]]+la[c[o+11]]+la[c[o+12]]+la[c[o+13]]+la[c[o+14]]+la[c[o+15]]).toLowerCase();if(!Hp(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let y0=(()=>{class c{constructor(n,r){this.fs=n,this.storage=r,this.colRef=wc(this.fs,"remates")}list(){const n=cf(this.colRef,qu("fechaRemate","asc"));return mo(n,{idField:"id"})}create(n,r){var h=this;return(0,wo.Z)(function*(){return yield Kl(h.colRef,{...n,fotos:n.fotos??[],createdBy:r,createdAt:el(),updatedAt:el()})})()}update(n,r){var h=this;return(0,wo.Z)(function*(){const v=zu(h.fs,"remates",n);return yield Zp(v,{...r,updatedAt:el()})})()}remove(n){var r=this;return(0,wo.Z)(function*(){const h=zu(r.fs,"remates",n);return yield mr(h)})()}uploadPhotos(n,r,h){var v=this;return(0,wo.Z)(function*(){const M=[];let Z=h?.length??0;for(const X of r){const be=mf(),gt=`remates/${n}/photos/${be}-${X.name}`,It=v0(v.storage,gt);yield ms(It,X);const Yt=yield _0(It);M.push({id:be,url:Yt,path:gt,orden:Z++,createdAt:new Date})}return[...h??[],...M]})()}deletePhoto(n){var r=this;return(0,wo.Z)(function*(){const h=v0(r.storage,n);return yield pf(h)})()}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(Qa),e.LFG(Il))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),C0=(()=>{class c{constructor(n){this.sanitizer=n}transform(n){return n?this.sanitizer.bypassSecurityTrustUrl(n):""}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(g.H7,16))},c.\u0275pipe=e.Yjl({name:"safeUrl",type:c,pure:!0}),c})();function Pm(c,o){1&c&&(e.TgZ(0,"div",62),e._uU(1," Revisa los campos obligatorios marcados en rojo. "),e.qZA())}function x0(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function Tb(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1," Requerido "),e.qZA())}function Ob(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function y1(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function _f(c,o){if(1&c&&(e.TgZ(0,"option",63),e._uU(1),e.qZA()),2&c){const n=o.$implicit;e.Q6J("value",n.nombre),e.xp6(1),e.Oqu(n.nombre)}}function Dm(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function Tc(c,o){if(1&c&&(e.TgZ(0,"option",63),e._uU(1),e.qZA()),2&c){const n=o.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(n)}}function Gu(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function Am(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1,"Requerido"),e.qZA())}function Pb(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1," Requerido / inv\xe1lido "),e.qZA())}function Im(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1," Requerido "),e.qZA())}function Ql(c,o){1&c&&(e.TgZ(0,"small",22),e._uU(1," Requerido "),e.qZA())}function $p(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"ngx-dropzone-image-preview",64),e.NdJ("removed",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.onRemove(v))}),e.TgZ(1,"ngx-dropzone-label"),e._uU(2),e.qZA()()}if(2&c){const n=o.$implicit;e.Q6J("file",n)("removable",!0),e.xp6(2),e.Oqu(n.name)}}function C1(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",65)(1,"span",66),e._uU(2,"Estas fotos se subir\xe1n al guardar."),e.qZA(),e.TgZ(3,"button",67),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.clearNewFiles())}),e._uU(4,"Limpiar selecci\xf3n"),e.qZA()()}}function w0(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",72),e._UZ(1,"img",73),e.TgZ(2,"button",74),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw(2);return e.KtG(M.removePhotoGuardada(v))}),e._uU(3,"\xd7"),e.qZA()()}if(2&c){const n=o.$implicit;e.xp6(1),e.Q6J("src",n.url,e.LSH)}}function Yd(c,o){if(1&c&&(e.TgZ(0,"div",68)(1,"div",69),e._uU(2,"Fotos actuales"),e.qZA(),e.TgZ(3,"div",70),e.YNc(4,w0,4,1,"div",71),e.qZA()()),2&c){const n=e.oxw();e.xp6(4),e.Q6J("ngForOf",n.fotos)}}function tu(c,o){1&c&&(e.TgZ(0,"div",66),e._uU(1," No hay fotos a\xfan. "),e.qZA())}function nu(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",75),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.cerrarVistaPrevia())}),e.qZA()}}function tl(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",116),e.NdJ("click",function(){e.CHM(n);const h=e.oxw(2);return e.KtG(h.previewPrev())}),e._uU(1,"\u2039"),e.qZA()}}function vf(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",117),e.NdJ("click",function(){e.CHM(n);const h=e.oxw(2);return e.KtG(h.previewNext())}),e._uU(1,"\u203a"),e.qZA()}}function Gp(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"button",120),e.NdJ("click",function(){const v=e.CHM(n).index,M=e.oxw(3);return e.KtG(M.previewPick(v))}),e._UZ(1,"img",121),e.ALo(2,"safeUrl"),e.qZA()}if(2&c){const n=o.$implicit,r=o.index,h=e.oxw(3);e.ekj("active",r===h.previewIndex),e.xp6(1),e.Q6J("src",e.lcZ(2,3,n),e.LSH)}}function Jd(c,o){if(1&c&&(e.TgZ(0,"div",118),e.YNc(1,Gp,3,5,"button",119),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.previewFotos)}}function Sm(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.hij("",n.pv.areaPropiedadM2," m\xb2 propiedad")}}function Wp(c,o){1&c&&e._UZ(0,"br")}function bf(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.hij("Lote 1: ",n.pv.lote1M2," m\xb2")}}function Wu(c,o){1&c&&e._UZ(0,"br")}function km(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.hij("Lote 2: ",n.pv.lote2M2," m\xb2")}}function Kp(c,o){1&c&&e._UZ(0,"br")}function Yp(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.hij(" ",n.pv.areaConstruccionM2," m\xb2 construcci\xf3n ")}}function yf(c,o){1&c&&e._UZ(0,"br")}function iu(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(3);e.xp6(1),e.hij("\xc1rea 1: ",n.pv.area1M2," m\xb2")}}function Qd(c,o){1&c&&e._UZ(0,"br")}function M0(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(3);e.xp6(1),e.hij("\xc1rea 2: ",n.pv.area2M2," m\xb2")}}function Db(c,o){1&c&&e._UZ(0,"br")}function Ab(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(3);e.xp6(1),e.hij("\xc1rea 3: ",n.pv.area3M2," m\xb2")}}function Ib(c,o){1&c&&e._UZ(0,"br")}function Ku(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(3);e.xp6(1),e.hij("\xc1rea 4: ",n.pv.area4M2," m\xb2")}}function Yu(c,o){1&c&&e._UZ(0,"br")}function Oc(c,o){if(1&c&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&c){const n=e.oxw(3);e.xp6(1),e.hij("\xc1rea 5: ",n.pv.area5M2," m\xb2")}}function E0(c,o){if(1&c&&(e.ynx(0),e.YNc(1,yf,1,0,"br",97),e.YNc(2,iu,2,1,"span",97),e.YNc(3,Qd,1,0,"br",97),e.YNc(4,M0,2,1,"span",97),e.YNc(5,Db,1,0,"br",97),e.YNc(6,Ab,2,1,"span",97),e.YNc(7,Ib,1,0,"br",97),e.YNc(8,Ku,2,1,"span",97),e.YNc(9,Yu,1,0,"br",97),e.YNc(10,Oc,2,1,"span",97),e.BQk()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngIf",n.pv.area1M2),e.xp6(1),e.Q6J("ngIf",n.pv.area1M2),e.xp6(1),e.Q6J("ngIf",n.pv.area2M2),e.xp6(1),e.Q6J("ngIf",n.pv.area2M2),e.xp6(1),e.Q6J("ngIf",n.pv.area3M2),e.xp6(1),e.Q6J("ngIf",n.pv.area3M2),e.xp6(1),e.Q6J("ngIf",n.pv.area4M2),e.xp6(1),e.Q6J("ngIf",n.pv.area4M2),e.xp6(1),e.Q6J("ngIf",n.pv.area5M2),e.xp6(1),e.Q6J("ngIf",n.pv.area5M2)}}function T0(c,o){if(1&c&&(e.TgZ(0,"div",89),e._UZ(1,"span",90),e.TgZ(2,"div",92)(3,"div",93),e._uU(4,"Detalles"),e.qZA(),e.TgZ(5,"div",122),e._uU(6),e.qZA()()()),2&c){const n=e.oxw(2);e.xp6(6),e.Oqu(n.pv.detalles)}}function Sb(c,o){if(1&c&&(e.TgZ(0,"a",125)(1,"span",111),e.O4$(),e.TgZ(2,"svg",112),e._UZ(3,"path",126),e.qZA()(),e._uU(4),e.qZA()),2&c){const n=o.$implicit;e.Q6J("href","tel:"+n,e.LSH),e.xp6(4),e.hij(" ",n," ")}}function kb(c,o){if(1&c&&(e.TgZ(0,"div",123),e.YNc(1,Sb,5,2,"a",124),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",n.phoneContactsPreview)}}function Ju(c,o){if(1&c&&(e.TgZ(0,"a",127)(1,"span",111),e.O4$(),e.TgZ(2,"svg",112),e._UZ(3,"path",113)(4,"path",114),e.qZA()(),e.kcU(),e.TgZ(5,"span",115),e._uU(6),e.qZA()()),2&c){const n=o.$implicit;e.Q6J("href","mailto:"+n,e.LSH),e.xp6(6),e.Oqu(n)}}function Rm(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",76),e.NdJ("click",function(h){return h.stopPropagation()}),e.TgZ(1,"button",77),e.NdJ("click",function(){e.CHM(n);const h=e.oxw();return e.KtG(h.cerrarVistaPrevia())}),e._uU(2,"\u2715"),e.qZA(),e.TgZ(3,"div",78)(4,"div",79)(5,"div",80),e.YNc(6,tl,2,0,"button",81),e._UZ(7,"img",82),e.ALo(8,"safeUrl"),e.YNc(9,vf,2,0,"button",83),e.qZA(),e.YNc(10,Jd,2,1,"div",84),e.qZA(),e.TgZ(11,"div",85)(12,"h2",8
16),e._uU(13),e.qZA(),e.TgZ(14,"div",87),e._uU(15," N Proceso judicial: "),e.TgZ(16,"span"),e._uU(17),e.qZA()(),e.TgZ(18,"div",88)(19,"div",89)(20,"span",90),e._UZ(21,"img",91),e.qZA(),e.TgZ(22,"div",92)(23,"div",93),e._uU(24,"Fecha de remate"),e.qZA(),e.TgZ(25,"div"),e._uU(26),e.qZA()()(),e.TgZ(27,"div",89)(28,"span",90),e._UZ(29,"img",94),e.qZA(),e.TgZ(30,"div",92)(31,"div",93),e._uU(32,"Localizaci\xf3n"),e.qZA(),e.TgZ(33,"div"),e._uU(34),e.qZA()()(),e.TgZ(35,"div",89),e._UZ(36,"span",90),e.TgZ(37,"div",92)(38,"div",93),e._uU(39,"Ubicaci\xf3n"),e.qZA(),e.TgZ(40,"div"),e._uU(41),e.qZA()()(),e.TgZ(42,"div",89)(43,"span",90),e._UZ(44,"img",95),e.qZA(),e.TgZ(45,"div",92)(46,"div",93),e._uU(47,"Tipo de bien"),e.qZA(),e.TgZ(48,"div"),e._uU(49),e.qZA()()(),e.TgZ(50,"div",89)(51,"span",90),e._UZ(52,"img",96),e.qZA(),e.TgZ(53,"div",92)(54,"div",93),e._uU(55,"Extensi\xf3n"),e.qZA(),e.TgZ(56,"div"),e.YNc(57,Sm,2,1,"span",97),e.YNc(58,Wp,1,0,"br",97),e.YNc(59,bf,2,1,"span",97),e.YNc(60,Wu,1,0,"br",97),e.YNc(61,km,2,1,"span",97),e.YNc(62,Kp,1,0,"br",97),e.YNc(63,Yp,2,1,"span",97),e.YNc(64,E0,11,10,"ng-container",97),e.qZA()()(),e.YNc(65,T0,7,1,"div",98),e.qZA(),e.TgZ(66,"div",99)(67,"div",100)(68,"div",101),e._uU(69,"Aval\xfao pericial:"),e.qZA(),e.TgZ(70,"div",102),e._uU(71),e.qZA()(),e._UZ(72,"div",103),e.TgZ(73,"div",104)(74,"div",101),e._uU(75,"Valor m\xednimo de postura:"),e.qZA(),e.TgZ(76,"div",105),e._uU(77),e.qZA()()(),e.TgZ(78,"div",106)(79,"div",107),e._uU(80,"Contactos:"),e.qZA(),e.YNc(81,kb,2,1,"div",108),e.YNc(82,Ju,7,2,"a",109),e.TgZ(83,"a",110)(84,"span",111),e.O4$(),e.TgZ(85,"svg",112),e._UZ(86,"path",113)(87,"path",114),e.qZA()(),e.kcU(),e.TgZ(88,"span",115),e._uU(89,"[email protected]"),e.qZA()()()()()()}if(2&c){const n=e.oxw();e.xp6(4),e.Udp("--modalbg","url("+(n.previewFotos[n.previewIndex]||"https://via.placeholder.com/1200x800?text=Sin+foto")+")"),e.xp6(2),e.Q6J("ngIf",n.previewFotos.length>1),e.xp6(1),e.Q6J("src",e.lcZ(8,26,n.previewFotos[n.previewIndex])||"https://via.placeholder.com/800x600?text=Sin+foto",e.LSH),e.xp6(2),e.Q6J("ngIf",n.previewFotos.length>1),e.xp6(1),e.Q6J("ngIf",n.previewFotos.length>1),e.xp6(3),e.Oqu(n.pv.codigo),e.xp6(4),e.Oqu(n.pv.nroProcesoJudicial),e.xp6(9),e.Oqu(n.pv.fechaRemate),e.xp6(8),e.AsE("",n.pv.provincia,", ",n.pv.canton,""),e.xp6(7),e.Oqu(n.pv.ubicacion),e.xp6(8),e.Oqu(n.pv.tipoBien),e.xp6(8),e.Q6J("ngIf",n.pv.areaPropiedadM2),e.xp6(1),e.Q6J("ngIf",n.pv.lote1M2),e.xp6(1),e.Q6J("ngIf",n.pv.lote1M2),e.xp6(1),e.Q6J("ngIf",n.pv.lote2M2),e.xp6(1),e.Q6J("ngIf",n.pv.lote2M2),e.xp6(1),e.Q6J("ngIf",n.pv.areaConstruccionM2),e.xp6(1),e.Q6J("ngIf",n.pv.areaConstruccionM2),e.xp6(1),e.Q6J("ngIf",n.hasAreasPreview()),e.xp6(1),e.Q6J("ngIf",n.pv.detalles),e.xp6(6),e.hij("$ ",n.pv.avaluoPericial,""),e.xp6(6),e.hij("$ ",n.pv.valorMinimoPostura,""),e.xp6(4),e.Q6J("ngIf",n.phoneContactsPreview.length),e.xp6(1),e.Q6J("ngForOf",n.emailContactsPreview)}}let ru=(()=>{class c{constructor(n,r,h,v,M){this.fb=n,this.route=r,this.router=h,this.fs=v,this.remates=M,this.provincias=[{nombre:"Azuay",cantones:["Cuenca","Gir\xf3n","Gualaceo","Nab\xf3n","Paute","Pucar\xe1","San Fernando","Santa Isabel","Sigsig","O\xf1a","Chordeleg","El Pan","Sevilla de Oro","Guachapala","Camilo Ponce Enr\xedquez"]},{nombre:"Bol\xedvar",cantones:["Guaranda","Chillanes","Chimbo","Echeand\xeda","San Miguel","Caluma","Las Naves"]},{nombre:"Ca\xf1ar",cantones:["Azogues","Bibli\xe1n","Ca\xf1ar","La Troncal","El Tambo","D\xe9leg","Suscal"]},{nombre:"Carchi",cantones:["Tulc\xe1n","Bol\xedvar","Espejo","Mira","Mont\xfafar","San Pedro de Huaca"]},{nombre:"Chimborazo",cantones:["Riobamba","Alaus\xed","Colta","Chambo","Chunchi","Guamote","Guano","Pallatanga","Penipe","Cumand\xe1"]},{nombre:"Cotopaxi",cantones:["Latacunga","La Man\xe1","Pangua","Pujil\xed","Salcedo","Saquisil\xed","Sigchos"]},{nombre:"El Oro",cantones:["Machala","Arenillas","Atahualpa","Balsas","Chilla","El Guabo","Huaquillas","Marcabel\xed","Pasaje","Pi\xf1as","Portovelo","Santa Rosa","Zaruma","Las Lajas"]},{nombre:"Esmeraldas",cantones:["Esmeraldas","Eloy Alfaro","Muisne","Quinind\xe9","San Lorenzo","Atacames","Rioverde"]},{nombre:"Gal\xe1pagos",cantones:["San Crist\xf3bal","Santa Cruz","Isabela"]},{nombre:"Guayas",cantones:["Guayaquil","Alfredo Baquerizo Moreno (Jujan)","Balao","Balzar","Colimes","Daule","Dur\xe1n","El Empalme","El Triunfo","Milagro","Naranjal","Naranjito","Palestina","Pedro Carbo","Playas","Salitre","Samborond\xf3n","Santa Luc\xeda","Sim\xf3n Bol\xedvar","Yaguachi","Lomas de Sargentillo","Nobol","General Antonio Elizalde (Bucay)","Isidro Ayora"]},{nombre:"Imbabura",cantones:["Ibarra","Antonio Ante","Cotacachi","Otavalo","Pimampiro","San Miguel de Urcuqu\xed"]},{nombre:"Loja",cantones:["Loja","Calvas","Catamayo","Celica","Chaguarpamba","Esp\xedndola","Gonzanam\xe1","Macar\xe1","Paltas","Puyango","Saraguro","Sozoranga","Zapotillo","Pindal","Quilanga","Olmedo"]},{nombre:"Los R\xedos",cantones:["Babahoyo","Baba","Montalvo","Puebloviejo","Quevedo","Urdaneta","Ventanas","Vinces","Palenque","Buena Fe","Mocache","Quinsaloma"]},{nombre:"Manab\xed",cantones:["Portoviejo","Bol\xedvar","Chone","El Carmen","Flavio Alfaro","Jipijapa","Jun\xedn","Manta","Montecristi","Paj\xe1n","Pichincha","Rocafuerte","Santa Ana","Sucre","Tosagua","24 de Mayo","Pedernales","Olmedo","Puerto L\xf3pez","Jama","Jaramij\xf3","San Vicente"]},{nombre:"Morona Santiago",cantones:["Macas","Gualaquiza","Lim\xf3n Indanza","Palora","Santiago","Suc\xfaa","Huamboya","San Juan Bosco","Taisha","Logro\xf1o","Pablo Sexto","Tiwintza"]},{nombre:"Napo",cantones:["Tena","Archidona","El Chaco","Quijos","Carlos Julio Arosemena Tola"]},{nombre:"Orellana",cantones:["Francisco de Orellana","Aguarico","La Joya de los Sachas","Loreto"]},{nombre:"Pastaza",cantones:["Pastaza","Mera","Santa Clara","Arajuno"]},{nombre:"Pichincha",cantones:["Quito","Cayambe","Mej\xeda","Pedro Moncayo","Rumi\xf1ahui","San Miguel de los Bancos","Pedro Vicente Maldonado","Puerto Quito"]},{nombre:"Santa Elena",cantones:["Santa Elena","La Libertad","Salinas"]},{nombre:"Santo Domingo de los Ts\xe1chilas",cantones:["Santo Domingo","La Concordia"]},{nombre:"Sucumb\xedos",cantones:["Lago Agrio","Gonzalo Pizarro","Putumayo","Shushufindi","Sucumb\xedos","Cascales","Cuyabeno"]},{nombre:"Tungurahua",cantones:["Ambato","Ba\xf1os","Cevallos","Mocha","Patate","Quero","Pelileo","P\xedllaro","Tisaleo"]},{nombre:"Zamora Chinchipe",cantones:["Zamora","Chinchipe","Nangaritza","Yacuambi","Yantzaza","El Pangui","Centinela del C\xf3ndor","Palanda","Paquisha"]}],this.cantonesDisponibles=[],this.previewOpen=!1,this.previewIndex=0,this.previewFotos=[],this.previewContactos=[],this.loading=!1,this.saving=!1,this.uploading=!1,this.fotos=[],this.newFiles=[],this.form=this.fb.group({codigo:["",x.kI.required],nroProcesoJudicial:["",x.kI.required],tipoBien:["",x.kI.required],detalles:[""],provincia:["",x.kI.required],canton:["",x.kI.required],ubicacion:["",x.kI.required],ubicacionUrl:[""],avaluoPericial:["",x.kI.required],valorMinimoPostura:["",x.kI.required],areaPropiedadM2:[null],areaConstruccionM2:[null],lote1M2:[null],lote2M2:[null],area1M2:[null],area2M2:[null],area3M2:[null],area4M2:[null],area5M2:[null],fechaRemate:["",x.kI.required],contactosTxt:["",x.kI.required],estado:["BORRADOR",x.kI.required]})}ngOnInit(){var n=this;
1return(0,wo.Z)(function*(){const r=n.route.snapshot.paramMap.get("id");r?(n.remateId=r,yield n.loadForEdit(r)):n.cantonesDisponibles=[]})()}onProvinciaChange(n){const r=this.provincias.find(h=>h.nombre===n);this.cantonesDisponibles=r?r.cantones:[],this.form.get("canton")?.setValue("")}formatMiles(n){const r=this.form.get(n);if(!r)return;let h=String(r.value??"");h=h.replace(/[^\d.,]/g,""),h=h.replace(/,/g,"");const v=h.split(".");let M=v[0]||"",Z=v[1]??"";Z=Z.substring(0,2),M=M.replace(/\B(?=(\d{3})+(?!\d))/g,","),r.setValue(v.length>1?`${M}.${Z}`:M,{emitEvent:!1})}numberFromFormatted(n){const r=String(n??"").replace(/,/g,"");return Number(r)||0}formatNumberMiles(n){const r=Number(n??0);if(!r)return"";const h=String(r).split(".");return h[0]=h[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),h[1]&&(h[1]=h[1].substring(0,2)),h.join(".")}onSelect(n){const h=(n?.addedFiles||[]).filter(M=>/^image\/(jpeg|png|webp|jpg)$/i.test(M.type)),v=[...this.newFiles,...h].slice(0,10);this.newFiles=v}onRemove(n){this.newFiles=this.newFiles.filter(r=>r!==n)}abrirVistaPrevia(){if(this.form.invalid)return void this.form.markAllAsTouched();this.liberarBlobUrls();const n=this.fotos.map(h=>h.url).filter(Boolean),r=this.newFiles.map(h=>URL.createObjectURL(h));this.previewFotos=[...n,...r],this.previewContactos=this.parseContactos(String(this.form.value.contactosTxt||"")),this.previewIndex=0,setTimeout(()=>{this.previewOpen=!0,document.body.style.overflow="hidden"},50)}liberarBlobUrls(){this.previewFotos&&this.previewFotos.length>0&&this.previewFotos.forEach(n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)})}cerrarVistaPrevia(){this.previewFotos.forEach(n=>{n.startsWith("blob:")&&URL.revokeObjectURL(n)}),this.previewFotos=[],this.previewContactos=[],this.previewIndex=0,this.previewOpen=!1,document.body.style.overflow=""}previewNext(){!this.previewFotos.length||(this.previewIndex=(this.previewIndex+1)%this.previewFotos.length)}previewPrev(){!this.previewFotos.length||(this.previewIndex=(this.previewIndex-1+this.previewFotos.length)%this.previewFotos.length)}previewPick(n){this.previewIndex=n}get pv(){return this.form.value}hasAreasPreview(){const n=this.form.value;return!!(n.area1M2||n.area2M2||n.area3M2||n.area4M2||n.area5M2||n.lote1M2||n.lote2M2)}parsePreviewContactos(n){return(n||"").split(/[,\n\/]/g).map(r=>r.trim()).filter(Boolean)}isEmailContact(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}get phoneContactsPreview(){return this.previewContactos.filter(n=>!this.isEmailContact(n))}get emailContactsPreview(){return this.previewContactos.filter(n=>this.isEmailContact(n))}guardarYSubirFotos(){var n=this;return(0,wo.Z)(function*(){try{n.saving=!0,ie().fire({title:"Guardando...",text:"Por favor espere",allowOutsideClick:!1,didOpen:()=>{ie().showLoading()}}),yield n.save(),n.remateId&&n.newFiles.length>0&&(n.uploading=!0,n.fotos=yield n.remates.uploadPhotos(n.remateId,n.newFiles,n.fotos),yield n.remates.update(n.remateId,{fotos:n.fotos}),n.newFiles=[]),yield ie().fire({icon:"success",title:"Guardado correctamente",text:"El remate fue almacenado exitosamente.",confirmButtonColor:"#2563eb"}),n.router.navigateByUrl("/dashboard/remates-admin")}catch(r){console.error(r),ie().fire({icon:"error",title:"Error",text:r?.message||"Ocurri\xf3 un error al guardar."})}finally{n.saving=!1,n.uploading=!1}})()}parseContactos(n){return(n||"").split(/[,\n\/]/g).map(r=>r.trim()).filter(Boolean)}contactosToTxt(n=[]){return n.join(" / ")}escapeHtml(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}save(){var n=this;return(0,wo.Z)(function*(){if(n.form.invalid)throw n.form.markAllAsTouched(),new Error("Complete los campos obligatorios.");const r=n.form.value,h={codigo:String(r.codigo),nroProcesoJudicial:String(r.nroProcesoJudicial),tipoBien:String(r.tipoBien),detalles:(r.detalles??"").toString().trim(),provincia:String(r.provincia),canton:String(r.canton),ubicacion:String(r.ubicacion),ubicacionUrl:(r.ubicacionUrl??"").toString().trim(),avaluoPericial:n.numberFromFormatted(r.avaluoPericial),valorMinimoPostura:n.numberFromFormatted(r.valorMinimoPostura),areaPropiedadM2:r.areaPropiedadM2?Number(r.areaPropiedadM2):null,areaConstruccionM2:r.areaConstruccionM2?Number(r.areaConstruccionM2):null,lote1M2:r.lote1M2?Number(r.lote1M2):null,lote2M2:r.lote2M2?Number(r.lote2M2):null,area1M2:r.area1M2?Number(r.area1M2):null,area2M2:r.area2M2?Number(r.area2M2):null,area3M2:r.area3M2?Number(r.area3M2):null,area4M2:r.area4M2?Number(r.area4M2):null,area
15M2:r.area5M2?Number(r.area5M2):null,fechaRemate:String(r.fechaRemate),contactos:n.parseContactos(String(r.contactosTxt)),estado:r.estado,fotos:n.fotos||[]};if(n.remateId)yield n.remates.update(n.remateId,h);else{const v=localStorage.getItem("usuario");if(!v)throw new Error("No hay sesi\xf3n activa.");const Z=JSON.parse(v).id_usuario,X=yield n.remates.create(h,Z);n.remateId=X.id}})()}loadForEdit(n){var r=this;return(0,wo.Z)(function*(){r.loading=!0;try{const h=zu(r.fs,"remates",n),v=yield function h0(c,o){const n="object"==typeof o;return new Promise((r,h)=>{const v=new Qr.Hp({next:M=>{r(M),v.unsubscribe()},error:h,complete:()=>{n?r(o.defaultValue):h(new Ls.K)}});c.subscribe(v)})}(xc(h)),M=v?.provincia||"";if(M){const Z=r.provincias.find(X=>X.nombre===M);r.cantonesDisponibles=Z?Z.cantones:[]}else r.cantonesDisponibles=[];r.fotos=(v?.fotos??[]).slice().sort((Z,X)=>(Z.orden??0)-(X.orden??0)),r.form.patchValue({codigo:v?.codigo??"",nroProcesoJudicial:v?.nroProcesoJudicial??"",tipoBien:v?.tipoBien??"",detalles:v?.detalles??"",provincia:v?.provincia??"",canton:v?.canton??"",ubicacion:v?.ubicacion??"",ubicacionUrl:v?.ubicacionUrl??"",avaluoPericial:r.formatNumberMiles(v?.avaluoPericial),valorMinimoPostura:r.formatNumberMiles(v?.valorMinimoPostura),areaPropiedadM2:v?.areaPropiedadM2??null,areaConstruccionM2:v?.areaConstruccionM2??null,lote1M2:v?.lote1M2??null,lote2M2:v?.lote2M2??null,area1M2:v?.area1M2??null,area2M2:v?.area2M2??null,area3M2:v?.area3M2??null,area4M2:v?.area4M2??null,area5M2:v?.area5M2??null,fechaRemate:v?.fechaRemate??"",contactosTxt:r.contactosToTxt(v?.contactos??[]),estado:v?.estado??"BORRADOR"})}finally{r.loading=!1}})()}removePhotoGuardada(n){var r=this;return(0,wo.Z)(function*(){if(r.remateId)try{yield r.remates.deletePhoto(n.path),r.fotos=r.fotos.filter(h=>h.id!==n.id).map((h,v)=>({...h,orden:v})),yield r.remates.update(r.remateId,{fotos:r.fotos})}catch(h){console.error(h),alert("No se pudo eliminar la foto.")}})()}volver(){this.router.navigateByUrl("/dashboard/remates-admin")}clearNewFiles(){this.newFiles=[]}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(x.qu),e.Y36(me.gz),e.Y36(me.F0),e.Y36(Qa),e.Y36(y0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-remate-form"]],decls:224,vars:28,consts:[[1,"wrap"],[1,"page-header"],[1,"ph-title"],[1,"ph-subtitle"],[1,"ph-actions"],["type","button",1,"btn","ghost",3,"click"],["type","button",1,"btn","ghost",3,"disabled","click"],["type","button",1,"btn","primary",3,"disabled","click"],["class","hint",4,"ngIf"],[3,"formGroup"],[1,"grid"],[1,"card"],[1,"card-title"],[1,"form-row"],[1,"field"],[1,"req"],["type","text","formControlName","codigo","placeholder","Ej: EC-RJ-149697 / REM-2026-001",1,"control"],["class","err",4,"ngIf"],["type","text","formControlName","nroProcesoJudicial","placeholder","Ej: 18332-2023-01318",1,"control"],[1,"field","full"],["type","text","formControlName","tipoBien","placeholder","Ej: Terreno, casa, veh\xedculo...",1,"control"],["rows","4","formControlName","detalles","placeholder","Informaci\xf3n adicional del remate. Opcional.",1,"control"],[1,"err"],["type","date","formControlName","fechaRemate",1,"control"],["formControlName","estado",1,"control"],["value","BORRADOR"],["value","PUBLICADO"],["formControlName","provincia",1,"control",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","canton",1,"control",3,"disabled"],["type","text","formControlName","ubicacion","placeholder","Ej: Sector San Rafael Alto",1,"control"],["type","url","formControlName","ubicacionUrl","placeholder","https://maps.google.com/...",1,"control"],["type","text","formControlName","avaluoPericial","placeholder","Ej: 1,000,000.50",1,"control",3,"input"],["type","text","formControlName","valorMinimoPostura","placeholder","Ej: 1,000,000.50",1,"control",3,"input"],[1,"areas-cols"],[1,"areas-col"],["type","number","formControlName","areaPropiedadM2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","lote1M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","lote2M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","areaConstruccionM2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","area1M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","area2M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","area3M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","area4M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["type","number","formControlName","area5M2","min","0","step","0.01","placeholder","Opcional",1,"control"],["rows","3","formControlName","contactosTxt","placeholder","Ej: 0993968310 / 0993964856 / [email protected]",1,"control"],[1,"note"],[1,"card","span2"],[1,"ph
1otos-head"],[1,"badge"],[1,"dz",3,"multiple","change"],[1,"dz-label"],[1,"dz-title"],[1,"dz-sub"],[1,"dz-tip"],[3,"file","removable","removed",4,"ngFor","ngForOf"],["class","photos-footer",4,"ngIf"],["class","existing",4,"ngIf"],["class","muted",4,"ngIf"],["class","pr-modal-backdrop",3,"click",4,"ngIf"],["class","pr-modal2",3,"click",4,"ngIf"],[1,"hint"],[3,"value"],[3,"file","removable","removed"],[1,"photos-footer"],[1,"muted"],["type","button",1,"btn","ghost","sm",3,"click"],[1,"existing"],[1,"existing-title"],[1,"thumbs"],["class","thumb-wrap",4,"ngFor","ngForOf"],[1,"thumb-wrap"],[1,"thumb",3,"src"],["type","button",1,"x",3,"click"],[1,"pr-modal-backdrop",3,"click"],[1,"pr-modal2",3,"click"],["type","button",1,"pr-modal2-close",3,"click"],[1,"pr-modal2-grid"],[1,"pr-modal2-gallery"],[1,"pr-modal2-main"],["class","pr-modal2-nav left","type","button",3,"click",4,"ngIf"],["alt","Vista previa principal",3,"src"],["class","pr-modal2-nav right","type","button",3,"click",4,"ngIf"],["class","pr-modal2-thumbs",4,"ngIf"],[1,"pr-modal2-detail"],[1,"pr-modal2-code"],[1,"pr-modal2-proc"],[1,"pr-modal2-list"],[1,"pr-modal2-item"],[1,"pr-modal2-ico_2"],["src","../../../../assets/img/icono001.png","alt",""],[1,"pr-modal2-txt"],[1,"label"],["src","../../../../assets/img/icono002.png","alt",""],["src","../../../../assets/img/icono003.png","alt",""],["src","../../../../assets/img/icono004.png","alt",""],[4,"ngIf"],["class","pr-modal2-item",4,"ngIf"],[1,"pr-modal2-kpi"],[1,"kpi-line"],[1,"kpi-label"],[1,"kpi-val"],[1,"kpi-divider"],[1,"kpi-line","highlight"],[1,"kpi-big"],[1,"pr-modal2-contact"],[1,"contact-title"],["class","contact-phones-card",4,"ngIf"],["class","contact-btn2",3,"href",4,"ngFor","ngForOf"],["href","mailto:[email protected]",1,"contact-btn2"],[1,"contact-ico"],["viewBox","0 0 24 24","aria-hidden","true"],["d","M4 7h16v10H4z"],["d","M4 7l8 6 8-6"],[1,"contact-txt"],["type","button",1,"pr-modal2-nav","left",3,"click"],["type","button",1,"pr-modal2-nav","right",3,"click"],[1,"pr-modal2-thumbs"],["type","button",3,"active","click",4,"ngFor","ngForOf"],["type","button",3,"click"],["alt","miniatura",3,"src"],[2,"white-space","pre-line"],[1,"contact-phones-card"],["class","contact-phone-item",3,"href",4,"ngFor","ngForOf"],[1,"contact-phone-item",3,"href"],["d","M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.89 13a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.81 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l.96-.96a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"],[1,"contact-btn2",3,"href"]],template:function(n,r){if(1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),e._uU(4),e.qZA(),e.TgZ(5,"p",3),e._uU(6,"Completa la informaci\xf3n del remate y agrega fotograf\xedas del anuncio."),e.qZA()(),e.TgZ(7,"div",4)(8,"button",5),e.NdJ("click",function(){return r.volver()}),e._uU(9,"Volver"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return r.abrirVistaPrevia()}),e._uU(11," Vista previa "),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return r.guardarYSubirFotos()}),e._uU(13),e.qZA()()(),e.YNc(14,Pm,2,0,"div",8),e.TgZ(15,"form",9)(16,"div",10)(17,"div",11)(18,"h3",12),e._uU(19,"Datos del proceso"),e.qZA(),e.TgZ(20,"div",13)(21,"div",14)(22,"label"),e._uU(23,"C\xf3digo / Referencia "),e.TgZ(24,"span",15),e._uU(25,"*"),e.qZA()(),e._UZ(26,"input",16),e.YNc(27,x0,2,0,"small",17),e.qZA(),e.TgZ(28,"div",14)(29,"label"),e._uU(30,"Nro. Proceso Judicial "),e.TgZ(31,"span",15),e._uU(32,"*"),e.qZA()(),e._UZ(33,"input",18),e.YNc(34,Tb,2,0,"small",17),e.qZA()(),e.TgZ(35,"div",13)(36,"div",19)(37,"label"),e._uU(38,"Tipo de bien "),e.TgZ(39,"span",15),e._uU(40,"*"),e.qZA()(),e._UZ(41,"input",20),e.YNc(42,Ob,2,0,"small",17),e.qZA()(),e.TgZ(43,"div",13)(44,"div",19)(45,"label"),e._uU(46,"Detalles"),e.qZA(),e._UZ(47,"textarea",21),e.TgZ(48,"small",22),e._uU(49,"\xa0"),e.qZA()()(),e.TgZ(50,"div",13)(51,"div",14)(52,"label"),e._uU(53,"Fecha de remate "),e.TgZ(54,"span",15),e._uU(55,"*"),e.qZA()(),e._UZ(56,"input",23),e.YNc(57,y1,2,0,"small",17),e.qZA(),e.TgZ(58,"div",14)(59,"label"),e._uU(60,"Estado "),e.TgZ(61,"span",15),e._uU(62,"*"),e.qZA()(),e.TgZ(63,"select",24)(64,"option",25),e._uU(65,"Borrador"),e.qZA(),e.TgZ(66,"option",26),e._uU(67,"Publicado"),e.qZA()(),e.TgZ(68,"small",22),e._uU(69,"\xa0"),e.qZA()()()(),e.TgZ(70,"div",11)(71,"h3",12),e._uU(72,"Ubicaci\xf3n"),e.qZA(),e.TgZ(73,"div",13)(74,"div",14)(75,"label"),e._uU(76,"Provincia "),e.TgZ(77,"span",15),e._uU(78,"*"),e.qZA()(),e.TgZ(79,"select",27),e.NdJ("change",function(v){return r.onProvinciaChange(v.target.value)}
1),e.TgZ(80,"option",28),e._uU(81,"Seleccione..."),e.qZA(),e.YNc(82,_f,2,2,"option",29),e.qZA(),e.YNc(83,Dm,2,0,"small",17),e.qZA(),e.TgZ(84,"div",14)(85,"label"),e._uU(86,"Cant\xf3n "),e.TgZ(87,"span",15),e._uU(88,"*"),e.qZA()(),e.TgZ(89,"select",30)(90,"option",28),e._uU(91),e.qZA(),e.YNc(92,Tc,2,2,"option",29),e.qZA(),e.YNc(93,Gu,2,0,"small",17),e.qZA()(),e.TgZ(94,"div",13)(95,"div",19)(96,"label"),e._uU(97,"Sector / Direcci\xf3n "),e.TgZ(98,"span",15),e._uU(99,"*"),e.qZA()(),e._UZ(100,"input",31),e.YNc(101,Am,2,0,"small",17),e.qZA()(),e.TgZ(102,"div",13)(103,"div",19)(104,"label"),e._uU(105,"Link de ubicaci\xf3n (Google Maps)"),e.qZA(),e._UZ(106,"input",32),e.TgZ(107,"small",22),e._uU(108,"\xa0"),e.qZA()()()(),e.TgZ(109,"div",11)(110,"h3",12),e._uU(111,"Valores y \xe1reas"),e.qZA(),e.TgZ(112,"div",13)(113,"div",14)(114,"label"),e._uU(115,"Aval\xfao pericial (USD) "),e.TgZ(116,"span",15),e._uU(117,"*"),e.qZA()(),e.TgZ(118,"input",33),e.NdJ("input",function(){return r.formatMiles("avaluoPericial")}),e.qZA(),e.YNc(119,Pb,2,0,"small",17),e.qZA(),e.TgZ(120,"div",14)(121,"label"),e._uU(122,"Valor m\xednimo de postura (USD) "),e.TgZ(123,"span",15),e._uU(124,"*"),e.qZA()(),e.TgZ(125,"input",34),e.NdJ("input",function(){return r.formatMiles("valorMinimoPostura")}),e.qZA(),e.YNc(126,Im,2,0,"small",17),e.qZA()(),e.TgZ(127,"div",35)(128,"div",36)(129,"div",14)(130,"label"),e._uU(131,"\xc1rea propiedad (m\xb2)"),e.qZA(),e._UZ(132,"input",37),e.TgZ(133,"small",22),e._uU(134,"\xa0"),e.qZA()(),e.TgZ(135,"div",14)(136,"label"),e._uU(137,"Lote 1 (m\xb2)"),e.qZA(),e._UZ(138,"input",38),e.TgZ(139,"small",22),e._uU(140,"\xa0"),e.qZA()(),e.TgZ(141,"div",14)(142,"label"),e._uU(143,"Lote 2 (m\xb2)"),e.qZA(),e._UZ(144,"input",39),e.TgZ(145,"small",22),e._uU(146,"\xa0"),e.qZA()()(),e.TgZ(147,"div",36)(148,"div",14)(149,"label"),e._uU(150,"\xc1rea construcci\xf3n (m\xb2)"),e.qZA(),e._UZ(151,"input",40),e.TgZ(152,"small",22),e._uU(153,"\xa0"),e.qZA()(),e.TgZ(154,"div",14)(155,"label"),e._uU(156,"\xc1rea 1 (m\xb2)"),e.qZA(),e._UZ(157,"input",41),e.TgZ(158,"small",22),e._uU(159,"\xa0"),e.qZA()(),e.TgZ(160,"div",14)(161,"label"),e._uU(162,"\xc1rea 2 (m\xb2)"),e.qZA(),e._UZ(163,"input",42),e.TgZ(164,"small",22),e._uU(165,"\xa0"),e.qZA()(),e.TgZ(166,"div",14)(167,"label"),e._uU(168,"\xc1rea 3 (m\xb2)"),e.qZA(),e._UZ(169,"input",43),e.TgZ(170,"small",22),e._uU(171,"\xa0"),e.qZA()(),e.TgZ(172,"div",14)(173,"label"),e._uU(174,"\xc1rea 4 (m\xb2)"),e.qZA(),e._UZ(175,"input",44),e.TgZ(176,"small",22),e._uU(177,"\xa0"),e.qZA()(),e.TgZ(178,"div",14)(179,"label"),e._uU(180,"\xc1rea 5 (m\xb2)"),e.qZA(),e._UZ(181,"input",45),e.TgZ(182,"small",22),e._uU(183,"\xa0"),e.qZA()()()()(),e.TgZ(184,"div",11)(185,"h3",12),e._uU(186,"Contacto"),e.qZA(),e.TgZ(187,"div",13)(188,"div",19)(189,"label"),e._uU(190,"Contactos (tel\xe9fonos / correos) "),e.TgZ(191,"span",15),e._uU(192,"*"),e.qZA()(),e._UZ(193,"textarea",46),e.YNc(194,Ql,2,0,"small",17),e.qZA()(),e.TgZ(195,"div",47),e._uU(196," Puedes separar por: "),e.TgZ(197,"b"),e._uU(198,"/"),e.qZA(),e._uU(199," o "),e.TgZ(200,"b"),e._uU(201,","),e.qZA(),e._uU(202," o saltos de l\xednea. "),e.qZA()(),e.TgZ(203,"div",48)(204,"div",49)(205,"h3",12),e._uU(206,"Fotograf\xedas"),e.qZA(),e.TgZ(207,"div",50),e._uU(208),e.qZA()(),e.TgZ(209,"ngx-dropzone",51),e.NdJ("change",function(v){return r.onSelect(v)}),e.TgZ(210,"ngx-dropzone-label")(211,"div",52)(212,"div",53),e._uU(213,"Arrastra tus fotos aqu\xed"),e.qZA(),e.TgZ(214,"div",54),e._uU(215,"o haz clic para seleccionarlas (m\xe1x. 10)"),e.qZA(),e.TgZ(216,"div",55),e._uU(217,"JPG / PNG / WEBP"),e.qZA()()(),e.YNc(218,$p,3,3,"ngx-dropzone-image-preview",56),e.qZA(),e.YNc(219,C1,5,0,"div",57),e.YNc(220,Yd,5,1,"div",58),e.YNc(221,tu,2,0,"div",59),e.qZA()()()(),e.YNc(222,nu,1,0,"div",60),e.YNc(223,Rm,90,28,"div",61)),2&n){let h,v,M,Z,X,be,gt,It,Yt,Cn;e.xp6(4),e.Oqu(r.remateId?"Editar Remate":"Nuevo Remate"),e.xp6(6),e.Q6J("disabled",r.saving||r.uploading),e.xp6(2),e.Q6J("disabled",r.saving||r.uploading),e.xp6(1),e.hij(" ",r.saving||r.uploading?"Guardando...":"Guardar"," "),e.xp6(1),e.Q6J("ngIf",r.form.invali
1d&&(r.form.touched||r.form.dirty)),e.xp6(1),e.Q6J("formGroup",r.form),e.xp6(12),e.Q6J("ngIf",(null==(h=r.form.get("codigo"))?null:h.touched)&&(null==(h=r.form.get("codigo"))?null:h.invalid)),e.xp6(7),e.Q6J("ngIf",(null==(v=r.form.get("nroProcesoJudicial"))?null:v.touched)&&(null==(v=r.form.get("nroProcesoJudicial"))?null:v.invalid)),e.xp6(8),e.Q6J("ngIf",(null==(M=r.form.get("tipoBien"))?null:M.touched)&&(null==(M=r.form.get("tipoBien"))?null:M.invalid)),e.xp6(15),e.Q6J("ngIf",(null==(Z=r.form.get("fechaRemate"))?null:Z.touched)&&(null==(Z=r.form.get("fechaRemate"))?null:Z.invalid)),e.xp6(25),e.Q6J("ngForOf",r.provincias),e.xp6(1),e.Q6J("ngIf",(null==(X=r.form.get("provincia"))?null:X.touched)&&(null==(X=r.form.get("provincia"))?null:X.invalid)),e.xp6(6),e.Q6J("disabled",0===r.cantonesDisponibles.length),e.xp6(2),e.hij(" ",r.cantonesDisponibles.length?"Seleccione...":"Seleccione provincia primero"," "),e.xp6(1),e.Q6J("ngForOf",r.cantonesDisponibles),e.xp6(1),e.Q6J("ngIf",(null==(be=r.form.get("canton"))?null:be.touched)&&(null==(be=r.form.get("canton"))?null:be.invalid)),e.xp6(8),e.Q6J("ngIf",(null==(gt=r.form.get("ubicacion"))?null:gt.touched)&&(null==(gt=r.form.get("ubicacion"))?null:gt.invalid)),e.xp6(18),e.Q6J("ngIf",(null==(It=r.form.get("avaluoPericial"))?null:It.touched)&&(null==(It=r.form.get("avaluoPericial"))?null:It.invalid)),e.xp6(7),e.Q6J("ngIf",(null==(Yt=r.form.get("valorMinimoPostura"))?null:Yt.touched)&&(null==(Yt=r.form.get("valorMinimoPostura"))?null:Yt.invalid)),e.xp6(68),e.Q6J("ngIf",(null==(Cn=r.form.get("contactosTxt"))?null:Cn.touched)&&(null==(Cn=r.form.get("contactosTxt"))?null:Cn.invalid)),e.xp6(14),e.hij("",r.newFiles.length," nuevas"),e.xp6(1),e.Q6J("multiple",!0),e.xp6(9),e.Q6J("ngForOf",r.newFiles),e.xp6(1),e.Q6J("ngIf",r.newFiles.length),e.xp6(1),e.Q6J("ngIf",r.fotos.length),e.xp6(1),e.Q6J("ngIf",!r.fotos.length&&!r.newFiles.length),e.xp6(1),e.Q6J("ngIf",r.previewOpen),e.xp6(1),e.Q6J("ngIf",r.previewOpen)}},dependencies:[z.sg,z.O5,x._Y,x.YN,x.Kr,x.Fj,x.wV,x.EJ,x.JJ,x.JL,x.qQ,x.sg,x.u,Ma._f,Ma.NP,Ma.sv,C0],styles:['.wrap[_ngcontent-%COMP%]{background:#fff;border:1px solid #e7e7e7;border-radius:16px;padding:24px}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #eee}.ph-title[_ngcontent-%COMP%]{margin:0;font-size:22px;font-weight:900}
1.ph-subtitle[_ngcontent-%COMP%]{margin:4px 0 0;color:#666;font-size:14px}.ph-actions[_ngcontent-%COMP%]{display:flex;gap:10px}.hint[_ngcontent-%COMP%]{background:#fff7df;border:1px solid #ffe4a3;color:#333;padding:12px 14px;border-radius:12px;margin-bottom:18px}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}@media (max-width: 992px){.grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.card[_ngcontent-%COMP%]{background:#fafafa;border:1px solid #eee;border-radius:16px;padding:22px;box-shadow:0 2px 10px #0000000d;display:flex;flex-direction:column}.card-title[_ngcontent-%COMP%]{margin:0 0 18px;font-size:16px;font-weight:900;padding-left:10px;border-left:4px solid #2563eb}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;margin-bottom:10px}@media (max-width: 600px){.form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:88px}.field.full[_ngcontent-%COMP%]{grid-column:1 / -1}.areas-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;margin-bottom:10px}.areas-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media (max-width: 600px){.areas-cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}label[_ngcontent-%COMP%]{font-weight:800;font-size:13px;margin-bottom:6px}.req[_ngcontent-%COMP%]{color:#dc2626}.control[_ngcontent-%COMP%]{height:44px;padding:0 12px;border:1px solid #d7d7d7;border-radius:12px;background:#fff;outline:none;transition:all .2s;font-size:14px;width:100%}textarea.control[_ngcontent-%COMP%]{height:auto;padding:10px 12px;resize:vertical}.control[_ngcontent-%COMP%]:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.control.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#dc2626;background:#fff5f5}.err[_ngcontent-%COMP%]{font-size:12px;color:#dc2626;margin-top:4px;min-height:16px}.note[_ngcontent-%COMP%]{margin-top:6px;color:#666;font-size:13px}.btn[_ngcontent-%COMP%]{padding:10px 16px;border-radius:12px;font-weight:800;cursor:pointer;border:1px solid transparent}.btn.primary[_ngcontent-%COMP%]{border:0;color:#fff;background:#2563eb}.btn.ghost[_ngcontent-%COMP%]{background:#fff;border:1px solid #d9d9d9}.btn.sm[_ngcontent-%COMP%]{padding:8px 12px;border-radius:10px;font-size:13px}.span2[_ngcontent-%COMP%]{grid-column:span 2}@media (max-width: 992px){.span2[_ngcontent-%COMP%]{grid-column:span 1}}.photos-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.badge[_ngcontent-%COMP%]{font-size:12px;font-weight:900;padding:6px 10px;border-radius:999px;background:#2563eb;border:1px solid #e2e2e2}.dz[_ngcontent-%COMP%]{border:2px dashed #2563eb!important;border-radius:16px!important;padding:22px!important;background:#f0f6ff!important}.dz-label[_ngcontent-%COMP%]{text-align:center}.dz-title[_ngcontent-%COMP%]{font-weight:900;font-size:15px}.dz-sub[_ngcontent-%COMP%]{margin-top:4px;color:#555;font-size:13px}.dz-tip[_ngcontent-%COMP%]{margin-top:6px;color:#777;font-size:12px}.photos-footer[_ngcontent-%COMP%]{margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.muted[_ngcontent-%COMP%]{color:#666;font-size:13px}.existing[_ngcontent-%COMP%]{margin-top:16px}.existing-title[_ngcontent-%COMP%]{font-weight:900;margin-bottom:10px}.thumbs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px}.thumb-wrap[_ngcontent-%COMP%]{position:relative}.thumb[_ngcontent-%COMP%]{width:96px;height:96px;object-fit:cover;border-radius:14px;border:1px solid #e2e2e2;background:#fff}.x[_ngcontent-%COMP%]{position:absolute;top:-8px;right:-8px;width:26px;height:26px;border-radius:999px;border:1px solid #e2e2e2;background:#fff;cursor:pointer;font-weight:900;line-height:22px}.pr-modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9998}.pr-modal2[_ngcontent-%COMP%]{position:fixed;inset:0;margin:auto;width:min(880px,calc(100vw - 40px));height:min(820px,calc(100vh - 40px));background:#f3f4f6;border-radius:28px;z-index:9999;box-shadow:0 40px 90px #00000040;overflow:hidden}.pr-modal2-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1.2fr .8fr;height:100%}.pr-modal2-close[_ngcontent-%COMP%]{position:absolute;top:18px;right:22px;border:0;background:transparent;font-size:22px;
1cursor:pointer;color:#64748b;z-index:5}.pr-modal2-gallery[_ngcontent-%COMP%]{padding:30px;display:flex;flex-direction:column;justify-content:center;position:relative;border-top-left-radius:28px;border-bottom-left-radius:28px;overflow:hidden}.pr-modal2-gallery[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background-image:var(--modalbg, url(https://via.placeholder.com/1200x800?text=Sin+foto));background-size:cover;background-position:center;filter:blur(18px);transform:scale(1.15);opacity:.55}.pr-modal2-gallery[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background:rgba(15,23,42,.18)}.pr-modal2-gallery[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.pr-modal2-main[_ngcontent-%COMP%]{position:relative;height:520px;border-radius:22px;overflow:hidden;background:#e5e7eb}.pr-modal2-main[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.pr-modal2-nav[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;font-size:26px;background:#ffffffcc;cursor:pointer;z-index:2}.pr-modal2-nav.left[_ngcontent-%COMP%]{left:16px}.pr-modal2-nav.right[_ngcontent-%COMP%]{right:16px}.pr-modal2-thumbs[_ngcontent-%COMP%]{margin-top:16px;display:flex;gap:12px;justify-content:center;overflow-x:auto}.pr-modal2-thumbs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:2px solid transparent;border-radius:12px;overflow:hidden;height:70px;width:90px;padding:0;cursor:pointer;background:transparent;flex:0 0 auto}.pr-modal2-thumbs[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{border-color:#2e56a1}.pr-modal2-thumbs[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.pr-modal2-detail[_ngcontent-%COMP%]{padding:40px 36px;overflow-y:auto}.pr-modal2-code[_ngcontent-%COMP%]{font-size:28px;font-weight:800;color:#6b7280;margin:0}.pr-modal2-proc[_ngcontent-%COMP%]{font-size:13px;margin-bottom:24px;color:#2e56a1}.pr-modal2-proc[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#6b7280}.pr-modal2-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.pr-modal2-item[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start}.pr-modal2-ico_2[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;color:#86c319;flex:0 0 auto;margin-top:2px}.pr-modal2-ico_2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pr-modal2-txt[_ngcontent-%COMP%]{min-width:0}.pr-modal2-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#2e56a1;padding:unset!important}.pr-modal2-item[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child{font-size:14px;color:#4b5563}.pr-modal2-kpi[_ngcontent-%COMP%]{margin-top:28px;background:#ffffff;border-radius:16px;padding:10px;box-shadow:0 10px 30px #00000014}.kpi-line[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.kpi-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#2e56a1}.kpi-val[_ngcontent-%COMP%]{font-size:14px;color:#6b7280}.kpi-divider[_ngcontent-%COMP%]{height:1px;background:#e5e7eb;margin:10px 0}.kpi-big[_ngcontent-%COMP%]{font-size:22px;font-weight:800;color:#6b7280}.pr-modal2-contact[_ngcontent-%COMP%]{margin-top:55px}.contact-title[_ngcontent-%COMP%]{font-size:12px;font-weight:800;margin-bottom:12px;color:#2e56a1}.contact-btn2[_ngcontent-%COMP%]{height:40px;background:#2E56A1;color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 16px;text-decoration:none;box-shadow:0 10px 22px #2e56a12e;margin-bottom:12px}.contact-txt[_ngcontent-%COMP%]{font-weight:600;font-size:14px;letter-spacing:.2px;line-height:1}.contact-ico[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:999px;background:#fff;display:grid;place-items:center;flex:0 0 auto}.contact-ico[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;fill:none;stroke:#2e56a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.contact-phones-card[_ngcontent-%COMP%]{background:#2E56A1;border-radius:10px;display:flex;flex-direction:column;gap:6px;padding:10px 0;box-shadow:0 10px 22px #2e56a12e;margin-bottom:12px}.contact-phone-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:14px;padding:0 16px;color:#fff;font-size:14px;font-weight:600;text-decoration:none;letter-spacing:.2px;line-height:1.5}.contact-phone-item[_ngcontent-%COMP%]:hover{text-decoration:underline}@media (max-width: 1000px){.pr-modal2[_ngcontent-%COMP%]{overflow-y:auto}.pr-modal2-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.pr-modal2-main[_ngcontent-%COMP%]{height:300px}.pr-modal2-gallery[_ngcontent-%COMP%]{border-radius:28px 28px 0 0}}']}),c})();var Qu=D(9841),Cf=D(8675);function Rb(c,o){if(1&c){const n=e.EpF();e.TgZ(0,"div",15)(1,"div",16),e._uU(2),e.qZA(),e.TgZ(3,"div",12),e._uU(4),e.qZA(),e.TgZ(5,"div",12),e._uU(6),e.qZA(),e.TgZ(7,"div",12),e._uU(8),e.qZA(),e.TgZ(9,"div",12)(10,"span",17),e._uU(11),e.qZA()(),e.TgZ(12,"div",18)(13,"div",19)(14,"button",20),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.editar(v.id))}),e._uU(15,"Editar"),e.qZA(),e.TgZ(16,"button",21),e.NdJ("click",function(){const v=e.CHM(n).$implicit,M=e.oxw();return e.KtG(M.eliminar(v))}),e._uU(17,"Eliminar"),e.qZA()()()()}if(2&c){const n=o.$implicit;e.xp6(2),e.Oqu(n.codigo),e.xp6(2),e.Oqu(n.nroProcesoJudicial),e.xp6(2),e.Oqu(n.tipoBien),e.xp6(2),e.Oqu(n.fechaRemate),e.xp6(2),e.ekj("pub","PUBLICADO"===n.estado),e.xp6(1),e.Oqu(n.estado)}}const Nb=[{path:"",component:zt,children:[{path:"",loadChildren:()=>Promise.all([D.e(592),D.e(807)]).then(D.bind(D,7807)).then(c=>c.PagesModule)}]},{path:"",component:zt,children:[{path:"anuncioscus",loadChildren:()=>Promise.all([D.e(592),D.e(79)]).then(D.bind(D,6079)).then(c=>c.AdvertsModule)}]},{path:"dashboard",component:$e,children:[{path:"contrato",component:Wn},{path:"balance",component:Ii},{path:"indice-financiero",component:is},{path:"estado-resultado",component:Wr},{path:"calificacion-activos",component:Me},{path:"patrimonio",component:Na},{path:"verificar-ingreso",component:pa},{path:"calificacion",component:en},{path:"tasas-activas",component:mn},{path:"tasas-pasiva",component:ti},{path:"polizas",component:Ni},{path:"buen-gobierno",component:Vt},{path:"normativa",component:Mn},{path:"tarifarios-cooperativa",component:Ea},{path:"tasas",component:ws},{path:"creditosadmin",component:sl},{path:"ofertas-tarjetas",component:rt},{path:"remates-admin",canActivate:[ya.a],children:[{path:"",component:(()=>{class c{constructor(n,r){this.remates=n,this.router=r,this.q=ne
1w x.NI("",{nonNullable:!0}),this.estado=new x.NI("TODOS",{nonNullable:!0});const h=this.remates.list();this.remates$=(0,Qu.a)([h,this.q.valueChanges.pipe((0,Cf.O)("")),this.estado.valueChanges.pipe((0,Cf.O)("TODOS"))]).pipe((0,Ya.U)(([v,M,Z])=>{const X=(M||"").toLowerCase().trim();return v.filter(be=>"TODOS"===Z||be.estado===Z).filter(be=>!X||(be.codigo||"").toLowerCase().includes(X)||(be.nroProcesoJudicial||"").toLowerCase().includes(X)||(be.tipoBien||"").toLowerCase().includes(X)||(be.provincia||"").toLowerCase().includes(X)||(be.canton||"").toLowerCase().includes(X))}))}nuevo(){this.router.navigateByUrl("/dashboard/remates-admin/nuevo")}editar(n){this.router.navigateByUrl(`/dashboard/remates-admin/${n}/editar`)}eliminar(n){var r=this;return(0,wo.Z)(function*(){if(n.id&&(yield ie().fire({title:"\xbfEliminar remate?",html:`\n <strong>${n.codigo}</strong><br>\n Esta acci\xf3n no se puede deshacer.\n `,icon:"warning",showCancelButton:!0,confirmButtonText:"S\xed, eliminar",cancelButtonText:"Cancelar",confirmButtonColor:"#dc2626",cancelButtonColor:"#6b7280",reverseButtons:!0})).isConfirmed)try{yield r.remates.remove(n.id),yield ie().fire({title:"Eliminado",text:"El remate fue eliminado correctamente.",icon:"success",timer:1800,showConfirmButton:!1})}catch(v){console.error(v),ie().fire({title:"Error",text:"No se pudo eliminar el remate.",icon:"error"})}})()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(y0),e.Y36(me.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["app-remates-admin-list"]],decls:34,vars:5,consts:[[1,"wrap"],[1,"header"],[1,"muted"],["type","button",1,"btn","primary",3,"click"],[1,"filters"],["type","text","placeholder","Buscar por c\xf3digo, proceso, tipo, provincia...",1,"control",3,"formControl"],[1,"control",3,"formControl"],["value","TODOS"],["value","PUBLICADO"],["value","BORRADOR"],[1,"tbl"],[1,"trow","thead"],[1,"cell"],[1,"cell","actions-cell","head-actions"],["class","trow",4,"ngFor","ngForOf"],[1,"trow"],[1,"cell","strong"],[1,"badge"],[1,"cell","actions-cell"],[1,"actions"],["type","button",1,"btn","link",3,"click"],["type","button",1,"btn","danger",3,"click"]],template:function(n,r){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"h2"),e._uU(4,"Remates - Administraci\xf3n"),e.qZA(),e.TgZ(5,"p",2),e._uU(6,"Crea, edita y publica anuncios. Cada anuncio puede tener varias fotos."),e.qZA()(),e.TgZ(7,"button",3),e.NdJ("click",function(){return r.nuevo()}),e._uU(8,"+ Nuevo remate"),e.qZA()(),e.TgZ(9,"div",4),e._UZ(10,"input",5),e.TgZ(11,"select",6)(12,"option",7),e._uU(13,"Todos"),e.qZA(),e.TgZ(14,"option",8),e._uU(15,"Publicado"),e.qZA(),e.TgZ(16,"option",9),e._uU(17,"Borrador"),e.qZA()()(),e.TgZ(18,"div",10)(19,"div",11)(20,"div",12),e._uU(21,"C\xf3digo"),e.qZA(),e.TgZ(22,"div",12),e._uU(23,"Proceso"),e.qZA(),e.TgZ(24,"div",12),e._uU(25,"Tipo"),e.qZA(),e.TgZ(26,"div",12),e._uU(27,"Fecha"),e.qZA(),e.TgZ(28,"div",12),e._uU(29,"Estado"),e.qZA(),e.TgZ(30,"div",13),e._uU(31,"Acciones"),e.qZA()(),e.YNc(32,Rb,18,7,"div",14),e.ALo(33,"async"),e.qZA()()),2&n&&(e.xp6(10),e.Q6J("formControl",r.q),e.xp6(1),e.Q6J("formControl",r.estado),e.xp6(21),e.Q6J("ngForOf",e.lcZ(33,3,r.remates$)))},dependencies:[z.sg,x.YN,x.Kr,x.Fj,x.EJ,x.JJ,x.oH,z.Ov],styles:[".wrap[_ngcontent-%COMP%]{background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:16px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:12px}h2[_ngcontent-%COMP%]{margin:0;font-weight:900}.muted[_ngcontent-%COMP%]{color:#666;margin:6px 0 0}.filters[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:10px;margin:12px 0 16px}.control[_ngcontent-%COMP%]{height:44px;padding:0 12px;border:1px solid #d7d7d7;border-radius:10px;outline:none;background:#fff}.control[_ngcontent-%COMP%]:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.tbl[_ngcontent-%COMP%]{border:1px solid #eee;border-radius:12px;overflow:hidden}.trow[_ngcontent-%COMP%]{display:grid;grid-template-columns:1.2fr 1.4fr 1fr .9fr .9fr 260px;gap:0;border-bottom:1px solid #f0f0f0;align-items:stretch}.trow[_ngcontent-%COMP%]:last-child{border-bottom:0}.thead[_ngcontent-%COMP%]{background:#fafafa;font-weight:900}.cell[_ngcontent-%COMP%]{padding:14px 12px;display:flex;align-items:center;border-right:1px solid #f3f3f3;min-height:64px}.trow[_ngcontent-%COMP%] .cell[_ngcontent-%COMP%]:last-child{border-right:0}.strong[_ngcontent-%COMP%]{font-weight:900}.badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:999px;border:1px solid #ddd;font-size:12px;font-weight:900}.badge.pub[_ngcontent-%COMP%]{border-color:#bfe6d3;background:#eaf7f1}.actions-cell[_ngcontent-%COMP%], .head-actions[_ngcontent-%COMP%]{justify-content:flex-end}.actions[_ngcontent-%COMP%]{display:inline-flex;gap:10px;align-items:center}.btn[_ngcontent-%COMP%]{padding:9px 14px;border:0;border-radius:12px;cursor:pointer;font-weight:900}.btn.primary[_ngcontent-%COMP%]{background:#111827;color:#fff}.btn.link[_ngcontent-%COMP%]{background:#2563eb;
1color:#fff}.btn.danger[_ngcontent-%COMP%]{background:#ffd7d7}@media (max-width: 992px){.filters[_ngcontent-%COMP%]{grid-template-columns:1fr}.trow[_ngcontent-%COMP%]{grid-template-columns:1.2fr 1.4fr 1fr .9fr .9fr 200px}}@media (max-width: 768px){.trow[_ngcontent-%COMP%]{grid-template-columns:1fr}.thead[_ngcontent-%COMP%]{display:none}.cell[_ngcontent-%COMP%]{border-right:0;min-height:auto;padding:10px 12px}.actions-cell[_ngcontent-%COMP%]{justify-content:flex-start}}"]}),c})()},{path:"nuevo",component:ru},{path:":id/editar",component:ru}]}]},{path:"administrador",children:[{path:"auth",loadChildren:()=>D.e(225).then(D.bind(D,3225)).then(c=>c.AuthModule)}]},{path:"panel-banner",component:jc}];function wf(c){return new e.vHH(3e3,!1)}function k0(){return typeof window<"u"&&typeof window.document<"u"}function eg(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ou(c){switch(c.length){case 0:return new hr.ZN;case 1:return c[0];default:return new hr.ZE(c)}}function R0(c,o,n,r,h=new Map,v=new Map){const M=[],Z=[];let X=-1,be=null;if(r.forEach(gt=>{const It=gt.get("offset"),Yt=It==X,Cn=Yt&&be||new Map;gt.forEach((Tn,oi)=>{let Di=oi,qr=Tn;if("offset"!==oi)switch(Di=o.normalizePropertyName(Di,M),qr){case hr.k1:qr=h.get(oi);break;case hr.l3:qr=v.get(oi);break;default:qr=o.normalizeStyleValue(oi,Di,qr,M)}Cn.set(Di,qr)}),Yt||Z.push(Cn),be=Cn,X=It}),M.length)throw function w1(c){return new e.vHH(3502,!1)}();return Z}function sr(c,o,n,r){switch(o){case"start":c.onStart(()=>r(n&&Es(n,"start",c)));break;case"done":c.onDone(()=>r(n&&Es(n,"done",c)));break;case"destroy":c.onDestroy(()=>r(n&&Es(n,"destroy",c)))}}function Es(c,o,n){const v=tg(c.element,c.triggerName,c.fromState,c.toState,o||c.phaseName,n.totalTime??c.totalTime,!!n.disabled),M=c._data;return null!=M&&(v._data=M),v}function tg(c,o,n,r,h="",v=0,M){return{element:c,triggerName:o,fromState:n,toState:r,phaseName:h,totalTime:v,disabled:!!M}}function Za(c,o,n){let r=c.get(o);return r||c.set(o,r=n),r}function N0(c){const o=c.indexOf(":");return[c.substring(1,o),c.slice(o+1)]}let Vm=(c,o)=>!1,Tf=(c,o,n)=>[],F0=null;function id(c){const o=c.parentNode||c.host;return o===F0?null:o}(eg()||typeof Element<"u")&&(k0()?(F0=(()=>document.documentElement)(),Vm=(c,o)=>{for(;o;){if(o===c)return!0;o=id(o)}return!1}):Vm=(c,o)=>c.contains(o),Tf=(c,o,n)=>{if(n)return Array.from(c.querySelectorAll(o));const r=c.querySelector(o);return r?[r]:[]});let rd=null,Of=!1;const ih=Vm,rh=Tf;let qb=(()=>{class c{validateStyleProperty(n){return function ng(c){rd||(rd=function ig(){return typeof document<"u"?document.body:null}()||{},Of=!!rd.style&&"WebkitAppearance"in rd.style);let o=!0;return rd.style&&!function zb(c){return"ebkit"==c.substring(1,6)}(c)&&(o=c in rd.style,!o&&Of&&(o="Webkit"+c.charAt(0).toUpperCase()+c.slice(1)in rd.style)),o}(n)}matchesElement(n,r){return!1}containsElement(n,r){return ih(n,r)}getParentElement(n){return id(n)}query(n,r,h){return rh(n,r,h)}computeStyle(n,r,h){return h||""}animate(n,r,h,v,M,Z=[],X){return new hr.ZN(h,v)}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),jm=(()=>{class c{}return c.NOOP=new qb,c})();const Hm="ng-enter",og="ng-leave",ec="ng-trigger",sg=".ng-trigger",su="ng-animating",Sl=".ng-animating";function kl(c){if("number"==typeof c)return c;const o=c.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:od(parseFloat(o[1]),o[2])}function od(c,o){return"s"===o?1e3*c:c}function Pf(c,o,n){return c.hasOwnProperty("duration")?c:function U0(c,o,n){let h,v=0,M="";if("string"==typeof c){const Z=c.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Z)return o.push(wf()),{duration:0,delay:0,easing:""};h=od(parseFloat(Z[1]),Z[2]);const X=Z[3];null!=X&&(v=od(parseFloat(X),Z[4]));const be=Z[5];be&&(M=be)}else h=c;if(!n){let Z=!1,X=o.length;h<0&&(o.push(function P0(){return new e.vHH(3100,!1)}()),Z=!0),v<0&&(o.push(function Nm(){return new e.vHH(3101,!1)}()),Z=!0),Z&&o.splice(X,0,wf())}return{duration:h,delay:v,easing:M}}(c,o,n)}function oh(c,o={}
1){return Object.keys(c).forEach(n=>{o[n]=c[n]}),o}function Z0(c){const o=new Map;return Object.keys(c).forEach(n=>{o.set(n,c[n])}),o}function tc(c,o=new Map,n){if(n)for(let[r,h]of n)o.set(r,h);for(let[r,h]of c)o.set(r,h);return o}function ag(c,o,n){return n?o+":"+n+";":""}function lg(c){let o="";for(let n=0;n<c.style.length;n++){const r=c.style.item(n);o+=ag(0,r,c.style.getPropertyValue(r))}for(const n in c.style)c.style.hasOwnProperty(n)&&!n.startsWith("_")&&(o+=ag(0,Df(n),c.style[n]));c.setAttribute("style",o)}function Ba(c,o,n){c.style&&(o.forEach((r,h)=>{const v=za(h);n&&!n.has(h)&&n.set(h,c.style[v]),c.style[v]=r}),eg()&&lg(c))}function Dc(c,o){c.style&&(o.forEach((n,r)=>{const h=za(r);c.style[h]=""}),eg()&&lg(c))}function Rl(c){return Array.isArray(c)?1==c.length?c[0]:(0,hr.vP)(c):c}const ug=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ac(c){let o=[];if("string"==typeof c){let n;for(;n=ug.exec(c);)o.push(n[1]);ug.lastIndex=0}return o}function au(c,o,n){const r=c.toString(),h=r.replace(ug,(v,M)=>{let Z=o[M];return null==Z&&(n.push(function Xd(c){return new e.vHH(3003,!1)}()),Z=""),Z.toString()});return h==r?c:h}function sh(c){const o=[];let n=c.next();for(;!n.done;)o.push(n.value),n=c.next();return o}const dg=/-+([a-z0-9])/g;function za(c){return c.replace(dg,(...o)=>o[1].toUpperCase())}function Df(c){return c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ts(c,o,n){switch(o.type){case 7:return c.visitTrigger(o,n);case 0:return c.visitState(o,n);case 1:return c.visitTransition(o,n);case 2:return c.visitSequence(o,n);case 3:return c.visitGroup(o,n);case 4:return c.visitAnimate(o,n);case 5:return c.visitKeyframes(o,n);case 6:return c.visitStyle(o,n);case 8:return c.visitReference(o,n);case 9:return c.visitAnimateChild(o,n);case 10:return c.visitAnimateRef(o,n);case 11:return c.visitQuery(o,n);case 12:return c.visitStagger(o,n);default:throw function Mf(c){return new e.vHH(3004,!1)}()}}function Ks(c,o){return window.getComputedStyle(c)[o]}function Qm(c,o){const n=[];return"string"==typeof c?c.split(/\s*,\s*/).forEach(r=>function Xm(c,o,n){if(":"==c[0]){const X=function z0(c,o){switch(c){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return o.push(function td(c){return new e.vHH(3016,!1)}()),"* => *"}}(c,n);if("function"==typeof X)return void o.push(X);c=X}const r=c.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function Lb(c){return new e.vHH(3015,!1)}()),o;const h=r[1],v=r[2],M=r[3];o.push(ch(h,M));"<"==v[0]&&!("*"==h&&"*"==M)&&o.push(ch(M,h))}(r,n,o)):n.push(c),n}const fg=new Set(["true","1"]),pg=new Set(["false","0"]);function ch(c,o){const n=fg.has(c)||pg.has(c),r=fg.has(o)||pg.has(o);return(h,v)=>{let M="*"==c||c==h,Z="*"==o||o==v;return!M&&n&&"boolean"==typeof h&&(M=h?fg.has(c):pg.has(c)),!Z&&r&&"boolean"==typeof v&&(Z=v?fg.has(o):pg.has(o)),M&&Z}}const ad=new RegExp("s*:selfs*,?","g");function mg(c,o,n,r){return new _g(c).build(o,n,r)}class _g{constructor(o){this._driver=o}build(o,n,r){const h=new t_(n);return this._resetContextStyleTimingState(h),Ts(this,Rl(o),h)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,n){let r=n.queryCount=0,h=n.depCount=0;const v=[],M=[];return"@"==o.name.charAt(0)&&n.errors.push(function eh(){return new e.vHH(3006,!1)}()),o.definitions.forEach(Z=>{if(this._resetContextStyleTimingState(n),0==Z.type){const X=Z,be=X.name;be.toString().split(/\s*,\s*/).forEach(gt=>{X.name=gt,v.push(this.visitState(X,n))}),X.name=be}else if(1==Z.type){const X=this.visitTransition(Z,n);r+=X.queryCount,h+=X.depCount,M.push(X)}else n.errors.push(function Oa(){return new e.vHH(3007,!1)}())}),{type:7,name:o.name,states:v,transitions:M,queryCount:r,depCount:h,options:null}}visitState(o,n){const r=this.visitStyle(o.styles,n),h=o.options&&o.options.params||null;if(r.containsDynamicStyles){const v=new Set,M=h||{};
vendor: 28,675 bytes, line 1
1r.styles.forEach(Z=>{Z instanceof Map&&Z.forEach(X=>{Ac(X).forEach(be=>{M.hasOwnProperty(be)||v.add(be)})})}),v.size&&(sh(v.values()),n.errors.push(function D0(c,o){return new e.vHH(3008,!1)}()))}return{type:0,name:o.name,style:r,options:h?{params:h}:null}}visitTransition(o,n){n.queryCount=0,n.depCount=0;const r=Ts(this,Rl(o.animation),n);return{type:1,matchers:Qm(o.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:cd(o.options)}}visitSequence(o,n){return{type:2,steps:o.steps.map(r=>Ts(this,r,n)),options:cd(o.options)}}visitGroup(o,n){const r=n.currentTime;let h=0;const v=o.steps.map(M=>{n.currentTime=r;const Z=Ts(this,M,n);return h=Math.max(h,n.currentTime),Z});return n.currentTime=h,{type:3,steps:v,options:cd(o.options)}}visitAnimate(o,n){const r=function ld(c,o){if(c.hasOwnProperty("duration"))return c;if("number"==typeof c)return V0(Pf(c,o).duration,0,"");const n=c;if(n.split(/\s+/).some(v=>"{"==v.charAt(0)&&"{"==v.charAt(1))){const v=V0(0,0,"");return v.dynamic=!0,v.strValue=n,v}const h=Pf(n,o);return V0(h.duration,h.delay,h.easing)}(o.timings,n.errors);n.currentAnimateTimings=r;let h,v=o.styles?o.styles:(0,hr.oB)({});if(5==v.type)h=this.visitKeyframes(v,n);else{let M=o.styles,Z=!1;if(!M){Z=!0;const be={};r.easing&&(be.easing=r.easing),M=(0,hr.oB)(be)}n.currentTime+=r.duration+r.delay;const X=this.visitStyle(M,n);X.isEmptyStep=Z,h=X}return n.currentAnimateTimings=null,{type:4,timings:r,style:h,options:null}}visitStyle(o,n){const r=this._makeStyleAst(o,n);return this._validateStyleAst(r,n),r}_makeStyleAst(o,n){const r=[],h=Array.isArray(o.styles)?o.styles:[o.styles];for(let Z of h)"string"==typeof Z?Z===hr.l3?r.push(Z):n.errors.push(new e.vHH(3002,!1)):r.push(Z0(Z));let v=!1,M=null;return r.forEach(Z=>{if(Z instanceof Map&&(Z.has("easing")&&(M=Z.get("easing"),Z.delete("easing")),!v))for(let X of Z.values())if(X.toString().indexOf("{{")>=0){v=!0;break}}),{type:6,styles:r,easing:M,offset:o.offset,containsDynamicStyles:v,options:null}}_validateStyleAst(o,n){const r=n.currentAnimateTimings;let h=n.currentTime,v=n.currentTime;r&&v>0&&(v-=r.duration+r.delay),o.styles.forEach(M=>{"string"!=typeof M&&M.forEach((Z,X)=>{const be=n.collectedStyles.get(n.currentQuerySelector),gt=be.get(X);let It=!0;gt&&(v!=h&&v>=gt.startTime&&h<=gt.endTime&&(n.errors.push(function Lm(c,o,n,r,h){return new e.vHH(3010,!1)}()),It=!1),v=gt.startTime),It&&be.set(X,{startTime:v,endTime:h}),n.options&&function cg(c,o,n){const r=o.params||{},h=Ac(c);h.length&&h.forEach(v=>{r.hasOwnProperty(v)||n.push(function Xu(c){return new e.vHH(3001,!1)}())})}(Z,n.options,n.errors)})})}visitKeyframes(o,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function Pc(){return new e.vHH(3011,!1)}()),r;let v=0;const M=[];let Z=!1,X=!1,be=0;const gt=o.steps.map(qr=>{const bo=this._makeStyleAst(qr,n);let Qs=null!=bo.offset?bo.offset:function Sf(c){if("string"==typeof c)return null;let o=null;if(Array.isArray(c))c.forEach(n=>{if(n instanceof Map&&n.has("offset")){const r=n;o=parseFloat(r.get("offset")),r.delete("offset")}});else if(c instanceof Map&&c.has("offset")){const n=c;o=parseFloat(n.get("offset")),n.delete("offset")}return o}(bo.styles),da=0;return null!=Qs&&(v++,da=bo.offset=Qs),X=X||da<0||da>1,Z=Z||da<be,be=da,M.push(da),bo});X&&n.errors.push(function th(){return new e.vHH(3012,!1)}()),Z&&n.errors.push(function ed(){return new e.vHH(3200,!1)}());const It=o.steps.length;let Yt=0;v>0&&v<It?n.errors.push(function Aa(){return new e.vHH(3202,!1)}()):0==v&&(Yt=1/(It-1));const Cn=It-1,Tn=n.currentTime,oi=n.currentAnimateTimings,Di=oi.duration;return gt.forEach((qr,bo)=>{const Qs=Yt>0?bo==Cn?1:Yt*bo:M[bo],da=Qs*Di;n.currentTime=Tn+oi.delay+da,oi.duration=da,this._validateStyleAst(qr,n),qr.offset=Qs,r.styles.push(qr)}),r}visitReference(o,n){return{type:8,animation:Ts(this,Rl(o.animation),n),options:cd(o.options)}}visitAnimateChild(o,n){return n.depCount++,{type:9,options:cd(o.options)}}visitAnimateRef(o,n){return{type:10,animation:this.visitReference(o.animation,n),options:cd(o.options)}}visitQuery(o,n){const r=n.currentQuerySelector,h=o.options||{};n.queryCount++,n.currentQuery=o;const[v,M]=function vg(c){const o=!!c.split(/\s*,\s*/).find(n=>":self"==n);return o&&(c=c.replace(ad,"")),c=c.replace(/@\*/g,sg).replace(/@\w+/g,n=>sg+"-"+n.slice(1)).replace(/:animating/g,Sl),[c,o]}(o.selector);n.currentQuerySelector=r.length?r+" "+v:v,Za(n.collectedStyles,n.currentQuerySelector,new Map);const Z=Ts(this,Rl(o.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:v,limit:h.limit||0,optional:!!h.optional,includeSelf:M,animation:Z,originalSelector:o.selector,options:cd(o.options)}}visitStagger(o,n){n.currentQuery||n.errors.push(function Fb(){return new e.vHH(3013,!1)}());const r="full"===o.timings?{duration:0,delay:0,easing:"full"}:Pf(o.timings,n.errors,!0);return{type:12,animation:Ts(this,Rl(o.animation),n),timings:r,options:null}}}class t_{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function cd(c){return c?(c=oh(c)).params&&(c.params=function e_(c){return c?oh(c):null}(c.params)):c={},c}function V0(c,o,n){return{duration:c,delay:o,easing:n}}function bg(c,o,n,r,h,v,M=null,Z=!1){return{type:1,element:c,keyframes:o,preStyleProps:n,postStyleProps:r,duration:h,delay:v,totalTime:h+v,easing:M,subTimeline:Z}}class n_{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,n){let r=this._map.get(o);r||this._map.set(o,r=[]),r.push(...n)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const j0=new RegExp(":enter","g"),H0=new RegExp(":leave","g");function Nl(c,o,n,r,h,v=new Map,M=new Map,Z,X,be=[]){return(new lu).buildKeyframes(c,o,n,r,h,v,M,Z,X,be)}class lu{buildKeyframes(o,n,r,h,v,M,Z,X,be,gt=[]){be=be||new n_;const It=new yg(o,n,be,h,v,gt,[]);It.options=X;const Yt=X.delay?kl(X.delay):0;It.currentTimeline.delayNextStep(Yt),It.currentTimeline.setStyles([M],null,It.errors,X),Ts(this,r,It);const Cn=It.timelines.filter(Tn=>Tn.containsAnimation());if(Cn.length&&Z.size){let Tn;for(let oi=Cn.length-1;oi>=0;oi--){const Di=Cn[oi];if(Di.element===n){Tn=Di;break}}Tn&&!Tn.allowOnlyTimelineStyles()&&Tn.setStyles([Z],null,It.errors,X)}return Cn.length?Cn.map(Tn=>Tn.buildKeyframes()):[bg(n,[],[],[],0,Yt,"",!1)]}visitTrigger(o,n){}visitState(o,n){}visitTransition(o,n){}visitAnimateChild(o,n){const r=n.subInstructions.get(n.element);if(r){const h=n.createSubContext(o.options),v=n.currentTimeline.currentTime,M=this._visitSubInstructions(r,h,h.options);v!=M&&n.transformIntoNewTimeline(M)}n.previousNode=o}visitAnimateRef(o,n){const r=n.createSubContext(o.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],n,r),this.visitReference(o.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=o}_applyAnimationRefDelays(o,n,r){for(const h of o){const v=h?.delay;if(v){const M="number"==typeof v?v:kl(au(v,h?.params??{},n.errors));r.delayNextStep(M)}}}_visitSubInstructions(o,n,r){let v=n.currentTimeline.currentTime;const M=null!=r.duration?kl(r.duration):null,Z=null!=r.delay?kl(r.delay):null;return 0!==M&&o.forEach(X=>{const be=n.appendInstructionToTimeline(X,M,Z);v=Math.max(v,be.duration+be.delay)}),v}visitReference(o,n){n.updateOptions(o.options,!0),Ts(this,o.animation,n),n.previousNode=o}visitSequence(o,n){const r=n.subContextCount;let h=n;const v=o.options;if(v&&(v.params||v.delay)&&(h=n.createSubContext(v),h.transformIntoNewTimeline(),null!=v.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=uh);const M=kl(v.delay);h.delayNextStep(M)}o.steps.length&&(o.steps.forEach(M=>Ts(this,M,h)),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>r&&h.transformIntoNewTimeline()),n.previousNode=o}visitGroup(o,n){const r=[];let h=n.currentTimeline.currentTime;const v=o.options&&o.options.delay?kl(o.options.delay):0;o.steps.forEach(M=>{const Z=n.createSubContext(o.options);v&&Z.delayNextStep(v),Ts(this,M,Z),h=Math.max(h,Z.currentTimeline.currentTime),r.push(Z.currentTimeline)}),r.forEach(M=>n.currentTimeline.mergeTimelineCollectedStyles(M)),n.transformIntoNewTimeline(h),n.previousNode=o}_visitTiming(o,n){if(o.dynamic){const r=o.strValue;return Pf(n.params?au(r,n.params,n.errors):r,n.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,n){const r=n.currentAnimateTimings=this._visitTiming(o.timings,n),h=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),h.snapshotCurrentStyles());const v=o.style;5==v.type?this.visitKeyframes(v,n):(n.incrementTime(r.duration),this.visitStyle(v,n),h.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=o}visitStyle(o,n){const r=n.currentTimeline,h=n.currentAnimateTimings;!h&&r.hasCurrentStyleProperties()&&r.forwardFrame();const v=h&&h.easing||o.easing;o.isEmptyStep?r.applyEmptyStep(v):r.setStyles(o.styles,v,n.errors,n.options),n.previousNode=o}visitKeyframes(o,n){const r=n.currentAnimateTimings,h=n.currentTimeline.duration,v=r.duration,Z=n.createSubContext().currentTimeline;Z.easing=r.easing,o.styles.forEach(X=>{Z.forwardTime((X.offset||0)*v),Z.setStyles(X.styles,X.easing,n.errors,n.options),Z.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(Z),n.transformIntoNewTimeline(h+v),n.previousNode=o}visitQuery(o,n){const r=n.currentTimeline.currentTime,h=o.options||{},v=h.delay?kl(h.delay):0;v&&(6===n.previousNode.type||0==r&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=uh);let M=r;const Z=n.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=Z.length;let X=null;Z.forEach((be,gt)=>{n.currentQueryIndex=gt;const It=n.createSubContext(o.options,be);v&&It.delayNextStep(v),be===n.element&&(X=It.currentTimeline),Ts(this,o.animation,It),It.currentTimeline.applyStylesToKeyframe(),M=Math.max(M,It.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(M),X&&(n.currentTimeline.mergeTimelineCollectedStyles(X),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=o}visitStagger(o,n){const r=n.parentContext,h=n.currentTimeline,v=o.timings,M=Math.abs(v.duration),Z=M*(n.currentQueryTotal-1);let X=M*n.currentQueryIndex;switch(v.duration<0?"reverse":v.easing){case"reverse":X=Z-X;break;case"full":X=r.currentStaggerTime}const gt=n.currentTimeline;X&>.delayNextStep(X);const It=gt.currentTime;Ts(this,o.animation,n),n.previousNode=o,r.currentStaggerTime=h.currentTime-It+(h.startTime-r.currentTimeline.startTime)}}const uh={};class yg{constructor(o,n,r,h,v,M,Z,X){this._driver=o,this.element=n,this.subInstructions=r,this._enterClassName=h,this._leaveClassName=v,this.errors=M,this.timelines=Z,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=uh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=X||new dh(this._driver,n,0),Z.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,n){if(!o)return;const r=o;let h=this.options;null!=r.duration&&(h.duration=kl(r.duration)),null!=r.delay&&(h.delay=kl(r.delay));const v=r.params;if(v){let M=h.params;M||(M=this.options.params={}),Object.keys(v).forEach(Z=>{(!n||!M.hasOwnProperty(Z))&&(M[Z]=au(v[Z],M,this.errors))})}}_copyOptions(){const o={};if(this.options){const n=this.options.params;if(n){const r=o.params={};Object.keys(n).forEach(h=>{r[h]=n[h]})}}return o}createSubContext(o=null,n,r){const h=n||this.element,v=new yg(this._driver,h,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(h,r||0));return v.previousNode=this.previousNode,v.currentAnimateTimings=this.currentAnimateTimings,v.options=this._copyOptions(),v.updateOptions(o),v.currentQueryIndex=this.currentQueryIndex,v.currentQueryTotal=this.currentQueryTotal,v.parentContext=this,this.subContextCount++,v}transformIntoNewTimeline(o){return this.previousNode=uh,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,n,r){const h={duration:n??o.duration,delay:this.currentTimeline.currentTime+(r??0)+o.delay,easing:""},v=new r_(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,h,o.stretchStartingKeyframe);return this.timelines.push(v),h}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,n,r,h,v,M){let Z=[];if(h&&Z.push(this.element),o.length>0){o=(o=o.replace(j0,"."+this._enterClassName)).replace(H0,"."+this._leaveClassName);let be=this._driver.query(this.element,o,1!=r);0!==r&&(be=r<0?be.slice(be.length+r,be.length):be.slice(0,r)),Z.push(...be)}return!v&&0==Z.length&&M.push(function nh(c){return new e.vHH(3014,!1)}()),Z}}class dh{constructor(o,n,r,h){this._driver=o,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=h,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const n=1===this._keyframes.size&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+o),n&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,n){return this.applyStylesToKeyframe(),new dh(this._driver,o,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,n){this._localTimelineStyles.set(o,n),this._globalTimelineStyles.set(o,n),this._styleSummary.set(o,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||hr.l3),this._currentKeyframe.set(n,hr.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,n,r,h){n&&this._previousKeyframe.set("easing",n);const v=h&&h.params||{},M=function Hb(c,o){const n=new Map;let r;return c.forEach(h=>{if("*"===h){r=r||o.keys();for(let v of r)n.set(v,hr.l3)}else tc(h,n)}),n}(o,this._globalTimelineStyles);for(let[Z,X]of M){const be=au(X,v,r);this._pendingStyles.set(Z,be),this._localTimelineStyles.has(Z)||this._backFill.set(Z,this._globalTimelineStyles.get(Z)??hr.l3),this._updateStyle(Z,be)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,n)=>{this._currentKeyframe.set(n,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,o)}))}snapshotCurrentStyles(){for(let[o,n]of this._localTimelineStyles)this._pendingStyles.set(o,n),this._updateStyle(o,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let n in this._currentKeyframe)o.push(n);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((n,r)=>{const h=this._styleSummary.get(r);(!h||n.time>h.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let h=[];this._keyframes.forEach((Z,X)=>{const be=tc(Z,new Map,this._backFill);be.forEach((gt,It)=>{gt===hr.k1?o.add(It):gt===hr.l3&&n.add(It)}),r||be.set("offset",X/this.duration),h.push(be)});const v=o.size?sh(o.values()):[],M=n.size?sh(n.values()):[];if(r){const Z=h[0],X=new Map(Z);Z.set("offset",0),X.set("offset",1),h=[Z,X]}return bg(this.element,h,v,M,this.duration,this.startTime,this.easing,!1)}}class r_ extends dh{constructor(o,n,r,h,v,M,Z=!1){super(o,n,M.delay),this.keyframes=r,this.preStyleProps=h,this.postStyleProps=v,this._stretchStartingKeyframe=Z,this.timings={duration:M.duration,delay:M.delay,easing:M.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:n,duration:r,easing:h}=this.timings;if(this._stretchStartingKeyframe&&n){const v=[],M=r+n,Z=n/M,X=tc(o[0]);X.set("offset",0),v.push(X);const be=tc(o[0]);be.set("offset",kf(Z)),v.push(be);const gt=o.length-1;for(let It=1;It<=gt;It++){let Yt=tc(o[It]);const Cn=Yt.get("offset");Yt.set("offset",kf((n+Cn*r)/M)),v.push(Yt)}r=M,n=0,h="",o=v}return bg(this.element,o,this.preStyleProps,this.postStyleProps,r,n,h,!0)}}function kf(c,o=3){const n=Math.pow(10,o-1);return Math.round(c*n)/n}class Cg{}const $b=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class xg extends Cg{normalizePropertyName(o,n){return za(o)}normalizeStyleValue(o,n,r,h){let v="";const M=r.toString().trim();if($b.has(n)&&0!==r&&"0"!==r)if("number"==typeof r)v="px";else{const Z=r.match(/^[+-]?[\d\.]+([a-z]*)$/);Z&&0==Z[1].length&&h.push(function Jp(c,o){return new e.vHH(3005,!1)}())}return M+v}}function G0(c,o,n,r,h,v,M,Z,X,be,gt,It,Yt){return{type:0,element:c,triggerName:o,isRemovalTransition:h,fromState:n,fromStyles:v,toState:r,toStyles:M,timelines:Z,queriedElements:X,preStyleProps:be,postStyleProps:gt,totalTime:It,errors:Yt}}const Rf={};class hh{constructor(o,n,r){this._triggerName=o,this.ast=n,this._stateStyles=r}match(o,n,r,h){return function Nf(c,o,n,r,h){return c.some(v=>v(o,n,r,h))}(this.ast.matchers,o,n,r,h)}buildStyles(o,n,r){let h=this._stateStyles.get("*");return void 0!==o&&(h=this._stateStyles.get(o?.toString())||h),h?h.buildStyles(n,r):new Map}build(o,n,r,h,v,M,Z,X,be,gt){const It=[],Yt=this.ast.options&&this.ast.options.params||Rf,Tn=this.buildStyles(r,Z&&Z.params||Rf,It),oi=X&&X.params||Rf,Di=this.buildStyles(h,oi,It),qr=new Set,bo=new Map,Qs=new Map,da="void"===h,_b={params:cu(oi,Yt),delay:this.ast.options?.delay},qh=gt?[]:Nl(o,n,this.ast.animation,v,M,Tn,Di,_b,be,It);let zl=0;if(qh.forEach(vp=>{zl=Math.max(vp.duration+vp.delay,zl)}),It.length)return G0(n,this._triggerName,r,h,da,Tn,Di,[],[],bo,Qs,zl,It);qh.forEach(vp=>{const bp=vp.element,a2=Za(bo,bp,new Set);vp.preStyleProps.forEach(e0=>a2.add(e0));const d1=Za(Qs,bp,new Set);vp.postStyleProps.forEach(e0=>d1.add(e0)),bp!==n&&qr.add(bp)});const _p=sh(qr.values());return G0(n,this._triggerName,r,h,da,Tn,Di,qh,_p,bo,Qs,zl)}}function cu(c,o){const n=oh(o);for(const r in c)c.hasOwnProperty(r)&&null!=c[r]&&(n[r]=c[r]);return n}class uu{constructor(o,n,r){this.styles=o,this.defaultParams=n,this.normalizer=r}buildStyles(o,n){const r=new Map,h=oh(this.defaultParams);return Object.keys(o).forEach(v=>{const M=o[v];null!==M&&(h[v]=M)}),this.styles.styles.forEach(v=>{"string"!=typeof v&&v.forEach((M,Z)=>{M&&(M=au(M,h,n));const X=this.normalizer.normalizePropertyName(Z,n);M=this.normalizer.normalizeStyleValue(Z,X,M,n),r.set(X,M)})}),r}}class wg{constructor(o,n,r){this.name=o,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(h=>{this.states.set(h.name,new uu(h.style,h.options&&h.options.params||{},r))}),Sc(this.states,"true","1"),Sc(this.states,"false","0"),n.transitions.forEach(h=>{this.transitionFactories.push(new hh(o,h,this.states))}),this.fallbackTransition=function dd(c,o,n){return new hh(c,{type:1,animation:{type:2,steps:[],options:null},matchers:[(M,Z)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,n,r,h){return this.transitionFactories.find(M=>M.match(o,n,r,h))||null}matchStyles(o,n,r){return this.fallbackTransition.buildStyles(o,n,r)}}function Sc(c,o,n){c.has(o)?c.has(n)||c.set(n,c.get(o)):c.has(n)&&c.set(o,c.get(n))}const Mg=new n_;class hd{constructor(o,n,r){this.bodyNode=o,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,n){const r=[],v=mg(this._driver,n,r,[]);if(r.length)throw function Bm(c){return new e.vHH(3503,!1)}();this._animations.set(o,v)}_buildPlayer(o,n,r){const h=o.element,v=R0(0,this._normalizer,0,o.keyframes,n,r);return this._driver.animate(h,v,o.duration,o.delay,o.easing,[],!0)}create(o,n,r={}){const h=[],v=this._animations.get(o);let M;const Z=new Map;if(v?(M=Nl(this._driver,n,v,Hm,og,new Map,new Map,r,Mg,h),M.forEach(gt=>{const It=Za(Z,gt.element,new Map);gt.postStyleProps.forEach(Yt=>It.set(Yt,null))})):(h.push(function Ub(){return new e.vHH(3300,!1)}()),M=[]),h.length)throw function Ef(c){return new e.vHH(3504,!1)}();Z.forEach((gt,It)=>{gt.forEach((Yt,Cn)=>{gt.set(Cn,this._driver.computeStyle(It,Cn,hr.l3))})});const be=ou(M.map(gt=>{const It=Z.get(gt.element);return this._buildPlayer(gt,new Map,It)}));return this._playersById.set(o,be),be.onDestroy(()=>this.destroy(o)),this.players.push(be),be}destroy(o){const n=this._getPlayer(o);n.destroy(),this._playersById.delete(o);const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(o){const n=this._playersById.get(o);if(!n)throw function A0(c){return new e.vHH(3301,!1)}();return n}listen(o,n,r,h){const v=tg(n,"","","");return sr(this._getPlayer(o),r,v,h),()=>{}}command(o,n,r,h){if("register"==r)return void this.register(o,h[0]);if("create"==r)return void this.create(o,n,h[0]||{});const v=this._getPlayer(o);switch(r){case"play":v.play();break;case"pause":v.pause();break;case"reset":v.reset();break;case"restart":v.restart();break;case"finish":v.finish();break;case"init":v.init();break;case"setPosition":v.setPosition(parseFloat(h[0]));break;case"destroy":this.destroy(o)}}}const Eg="ng-animate-queued",Tg="ng-animate-disabled",W0=[],a_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},l_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fo="__ng_removed";class Pg{constructor(o,n=""){this.namespaceId=n;const r=o&&o.hasOwnProperty("value");if(this.value=function Wb(c){return c??null}(r?o.value:o),r){const v=oh(o);delete v.value,this.options=v}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const n=o.params;if(n){const r=this.options.params;Object.keys(n).forEach(h=>{null==r[h]&&(r[h]=n[h])})}}}const fh="void",K0=new Pg(fh);class Y0{constructor(o,n,r){this.id=o,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Va(n,this._hostClassName)}listen(o,n,r,h){if(!this._triggers.has(n))throw function Zb(c,o){return new e.vHH(3302,!1)}();if(null==r||0==r.length)throw function dl(c){return new e.vHH(3303,!1)}();if(!function Q0(c){return"start"==c||"done"==c}(r))throw function Bb(c,o){return new e.vHH(3400,!1)}();const v=Za(this._elementListeners,o,[]),M={name:n,phase:r,callback:h};v.push(M);const Z=Za(this._engine.statesByElement,o,new Map);return Z.has(n)||(Va(o,ec),Va(o,ec+"-"+n),Z.set(n,K0)),()=>{this._engine.afterFlush(()=>{const X=v.indexOf(M);X>=0&&v.splice(X,1),this._triggers.has(n)||Z.delete(n)})}}register(o,n){return!this._triggers.has(o)&&(this._triggers.set(o,n),!0)}_getTrigger(o){const n=this._triggers.get(o);if(!n)throw function zm(c){return new e.vHH(3401,!1)}();return n}trigger(o,n,r,h=!0){const v=this._getTrigger(n),M=new Ff(this.id,n,o);let Z=this._engine.statesByElement.get(o);Z||(Va(o,ec),Va(o,ec+"-"+n),this._engine.statesByElement.set(o,Z=new Map));let X=Z.get(n);const be=new Pg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&X&&be.absorbOptions(X.options),Z.set(n,be),X||(X=K0),be.value!==fh&&X.value===be.value){if(!function kg(c,o){const n=Object.keys(c),r=Object.keys(o);if(n.length!=r.length)return!1;for(let h=0;h<n.length;h++){const v=n[h];if(!o.hasOwnProperty(v)||c[v]!==o[v])return!1}return!0}(X.params,be.params)){const oi=[],Di=v.matchStyles(X.value,X.params,oi),qr=v.matchStyles(be.value,be.params,oi);oi.length?this._engine.reportError(oi):this._engine.afterFlush(()=>{Dc(o,Di),Ba(o,qr)})}return}const Yt=Za(this._engine.playersByElement,o,[]);Yt.forEach(oi=>{oi.namespaceId==this.id&&oi.triggerName==n&&oi.queued&&oi.destroy()});let Cn=v.matchTransition(X.value,be.value,o,be.params),Tn=!1;if(!Cn){if(!h)return;Cn=v.fallbackTransition,Tn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:n,transition:Cn,fromState:X,toState:be,player:M,isFallbackTransition:Tn}),Tn||(Va(o,Eg),M.onStart(()=>{fd(o,Eg)})),M.onDone(()=>{let oi=this.players.indexOf(M);oi>=0&&this.players.splice(oi,1);const Di=this._engine.playersByElement.get(o);if(Di){let qr=Di.indexOf(M);qr>=0&&Di.splice(qr,1)}}),this.players.push(M),Yt.push(M),M}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(n=>n.delete(o)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(h=>h.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const n=this._engine.playersByElement.get(o);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,n){const r=this._engine.driver.query(o,sg,!0);r.forEach(h=>{if(h[Fo])return;const v=this._engine.fetchNamespacesByElement(h);v.size?v.forEach(M=>M.triggerLeaveAnimation(h,n,!1,!0)):this.clearElementCache(h)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(h=>this.clearElementCache(h)))}triggerLeaveAnimation(o,n,r,h){const v=this._engine.statesByElement.get(o),M=new Map;if(v){const Z=[];if(v.forEach((X,be)=>{if(M.set(be,X.value),this._triggers.has(be)){const gt=this.trigger(o,be,fh,h);gt&&Z.push(gt)}}),Z.length)return this._engine.markElementAsRemoved(this.id,o,!0,n,M),r&&ou(Z).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const n=this._elementListeners.get(o),r=this._engine.statesByElement.get(o);if(n&&r){const h=new Set;n.forEach(v=>{const M=v.name;if(h.has(M))return;h.add(M);const X=this._triggers.get(M).fallbackTransition,be=r.get(M)||K0,gt=new Pg(fh),It=new Ff(this.id,M,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:M,transition:X,fromState:be,toState:gt,player:It,isFallbackTransition:!0})})}}removeNode(o,n){const r=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,n),this.triggerLeaveAnimation(o,n,!0))return;let h=!1;if(r.totalAnimations){const v=r.players.length?r.playersByQueriedElement.get(o):[];if(v&&v.length)h=!0;else{let M=o;for(;M=M.parentNode;)if(r.statesByElement.get(M)){h=!0;break}}}if(this.prepareLeaveAnimationListeners(o),h)r.markElementAsRemoved(this.id,o,!1,n);else{const v=o[Fo];(!v||v===a_)&&(r.afterFlush(()=>this.clearElementCache(o)),r.destroyInnerAnimations(o),r._onRemovalComplete(o,n))}}insertNode(o,n){Va(o,this._hostClassName)}drainQueuedTransitions(o){const n=[];return this._queue.forEach(r=>{const h=r.player;if(h.destroyed)return;const v=r.element,M=this._elementListeners.get(v);M&&M.forEach(Z=>{if(Z.name==r.triggerName){const X=tg(v,r.triggerName,r.fromState.value,r.toState.value);X._data=o,sr(r.player,Z.phase,X,Z.callback)}}),h.markedForDestroy?this._engine.afterFlush(()=>{h.destroy()}):n.push(r)}),this._queue=[],n.sort((r,h)=>{const v=r.transition.ast.depCount,M=h.transition.ast.depCount;return 0==v||0==M?v-M:this._engine.driver.containsElement(r.element,h.element)?1:-1})}
1destroy(o){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let n=!1;return this._elementListeners.has(o)&&(n=!0),n=!!this._queue.find(r=>r.element===o)||n,n}}class Dg{constructor(o,n,r){this.bodyNode=o,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(h,v)=>{}}_onRemovalComplete(o,n){this.onRemovalComplete(o,n)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&o.push(r)})}),o}createNamespace(o,n){const r=new Y0(o,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[o]=r}_balanceNamespaceList(o,n){const r=this._namespaceList,h=this.namespacesByHostElement;if(r.length-1>=0){let M=!1,Z=this.driver.getParentElement(n);for(;Z;){const X=h.get(Z);if(X){const be=r.indexOf(X);r.splice(be+1,0,o),M=!0;break}Z=this.driver.getParentElement(Z)}M||r.unshift(o)}else r.push(o);return h.set(n,o),o}register(o,n){let r=this._namespaceLookup[o];return r||(r=this.createNamespace(o,n)),r}registerTrigger(o,n,r){let h=this._namespaceLookup[o];h&&h.register(n,r)&&this.totalAnimations++}destroy(o,n){if(!o)return;const r=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[o];const h=this._namespaceList.indexOf(r);h>=0&&this._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const n=new Set,r=this.statesByElement.get(o);if(r)for(let h of r.values())if(h.namespaceId){const v=this._fetchNamespace(h.namespaceId);v&&n.add(v)}return n}trigger(o,n,r,h){if(Ag(n)){const v=this._fetchNamespace(o);if(v)return v.trigger(n,r,h),!0}return!1}insertNode(o,n,r,h){if(!Ag(n))return;const v=n[Fo];if(v&&v.setForRemoval){v.setForRemoval=!1,v.setForMove=!0;const M=this.collectedLeaveElements.indexOf(n);M>=0&&this.collectedLeaveElements.splice(M,1)}if(o){const M=this._fetchNamespace(o);M&&M.insertNode(n,r)}h&&this.collectEnterElement(n)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,n){n?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Va(o,Tg)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),fd(o,Tg))}removeNode(o,n,r,h){if(Ag(n)){const v=o?this._fetchNamespace(o):null;if(v?v.removeNode(n,h):this.markElementAsRemoved(o,n,!1,h),r){const M=this.namespacesByHostElement.get(n);M&&M.id!==o&&M.removeNode(n,h)}}else this._onRemovalComplete(n,h)}markElementAsRemoved(o,n,r,h,v){this.collectedLeaveElements.push(n),n[Fo]={namespaceId:o,setForRemoval:h,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:v}}listen(o,n,r,h,v){return Ag(n)?this._fetchNamespace(o).listen(n,r,h,v):()=>{}}_buildInstruction(o,n,r,h,v){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,r,h,o.fromState.options,o.toState.options,n,v)}destroyInnerAnimations(o){let n=this.driver.query(o,sg,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(o,Sl,!0),n.forEac
vendor: 19,389 bytes, line 1
1h(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(o){const n=this.playersByElement.get(o);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(o){const n=this.playersByQueriedElement.get(o);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return ou(this.players).onDone(()=>o());o()})}processLeaveNode(o){const n=o[Fo];if(n&&n.setForRemoval){if(o[Fo]=a_,n.namespaceId){this.destroyInnerAnimations(o);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(o)}this._onRemovalComplete(o,n.setForRemoval)}o.classList?.contains(Tg)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(o=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,h)=>this._balanceNamespaceList(r,h)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Va(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,o)}finally{for(let h=0;h<r.length;h++)r[h]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?ou(n).onDone(()=>{r.forEach(h=>h())}):r.forEach(h=>h())}}reportError(o){throw function nd(c){return new e.vHH(3402,!1)}()}_flushAnimations(o,n){const r=new n_,h=[],v=new Map,M=[],Z=new Map,X=new Map,be=new Map,gt=new Set;this.disabledNodes.forEach(Ui=>{gt.add(Ui);const rr=this.driver.query(Ui,".ng-animate-queued",!0);for(let vr=0;vr<rr.length;vr++)gt.add(rr[vr])});const It=this.bodyNode,Yt=Array.from(this.statesByElement.keys()),Cn=Ig(Yt,this.collectedEnterElements),Tn=new Map;let oi=0;Cn.forEach((Ui,rr)=>{const vr=Hm+oi++;Tn.set(rr,vr),Ui.forEach(yo=>Va(yo,vr))});const Di=[],qr=new Set,bo=new Set;for(let Ui=0;Ui<this.collectedLeaveElements.length;Ui++){const rr=this.collectedLeaveElements[Ui],vr=rr[Fo];vr&&vr.setForRemoval&&(Di.push(rr),qr.add(rr),vr.hasAnimation?this.driver.query(rr,".ng-star-inserted",!0).forEach(yo=>qr.add(yo)):bo.add(rr))}const Qs=new Map,da=Ig(Yt,Array.from(qr));da.forEach((Ui,rr)=>{const vr=og+oi++;Qs.set(rr,vr),Ui.forEach(yo=>Va(yo,vr))}),o.push(()=>{Cn.forEach((Ui,rr)=>{const vr=Tn.get(rr);Ui.forEach(yo=>fd(yo,vr))}),da.forEach((Ui,rr)=>{const vr=Qs.get(rr);Ui.forEach(yo=>fd(yo,vr))}),Di.forEach(Ui=>{this.processLeaveNode(Ui)})});const _b=[],qh=[];for(let Ui=this._namespaceList.length-1;Ui>=0;Ui--)this._namespaceList[Ui].drainQueuedTransitions(n).forEach(vr=>{const yo=vr.player,Ha=vr.element;if(_b.push(yo),this.collectedEnterElements.length){const bl=Ha[Fo];if(bl&&bl.setForMove){if(bl.previousTriggersValues&&bl.previousTriggersValues.has(vr.triggerName)){const t0=bl.previousTriggersValues.get(vr.triggerName),Au=this.statesByElement.get(vr.element);if(Au&&Au.has(vr.triggerName)){const YC=Au.get(vr.triggerName);YC.value=t0,Au.set(vr.triggerName,YC)}}return void yo.destroy()}}const jh=!It||!this.driver.containsElement(It,Ha),Bc=Qs.get(Ha),mm=Tn.get(Ha),Xs=this._buildInstruction(vr,r,mm,Bc,jh);if(Xs.errors&&Xs.errors.length)return void qh.push(Xs);if(jh)return yo.onStart(()=>Dc(Ha,Xs.fromStyles)),yo.onDestroy(()=>Ba(Ha,Xs.toStyles)),void h.push(yo);if(vr.isFallbackTransition)return yo.onStart(()=>Dc(Ha,Xs.fromStyles)),yo.onDestroy(()=>Ba(Ha,Xs.toStyles)),void h.push(yo);const u2=[];Xs.timelines.forEach(bl=>{bl.stretchStartingKeyframe=!0,this.disabledNodes.has(bl.element)||u2.push(bl)}),Xs.timelines=u2,r.append(Ha,Xs.timelines),M.push({instruction:Xs,player:yo,element:Ha}),Xs.queriedElements.forEach(bl=>Za(Z,bl,[]).push(yo)),Xs.preStyleProps.forEach((bl,t0)=>{if(bl.size){let Au=X.get(t0);Au||X.set(t0,Au=new Set),bl.forEach((YC,yw)=>Au.add(yw))}}),Xs.postStyleProps.forEach((bl,t0)=>{let Au=be.get(t0);Au||be.set(t0,Au=new Set),bl.forEach((YC,yw)=>Au.add(yw))})});if(qh.length){const Ui=[];qh.forEach(rr=>{Ui.push(function I0(c,o){return new e.vHH(3505,!1)}())}),_b.forEach(rr=>rr.destroy()),this.reportError(Ui)}const zl=new Map,_p=new Map;M.forEach(Ui=>{const rr=Ui.element;r.has(rr)&&(_p.set(rr,rr),this._beforeAnimationBuild(Ui.player.namespaceId,Ui.instruction,zl))}),h.forEach(Ui=>{const rr=Ui.element;this._getPreviousPlayers(rr,!1,Ui.namespaceId,Ui.triggerName,null).forEach(yo=>{Za(zl,rr,[]).push(yo),yo.destroy()})});const vp=Di.filter(Ui=>Rg(Ui,X,be)),bp=new Map;Lf(bp,this.driver,bo,be,hr.l3).forEach(Ui=>{Rg(Ui,X,be)&&vp.push(Ui)});const d1=new Map;Cn.forEach((Ui,rr)=>{Lf(d1,this.driver,new Set(Ui),X,hr.k1)}),vp.forEach(Ui=>{const rr=bp.get(Ui),vr=d1.get(Ui);bp.set(Ui,new Map([...Array.from(rr?.entries()??[]),...Array.from(vr?.entries()??[])]))});const e0=[],l2=[],c2={};M.forEach(Ui=>{const{element:rr,player:vr,instruction:yo}=Ui;if(r.has(rr)){if(gt.has(rr))return vr.onDestroy(()=>Ba(rr,yo.toStyles)),vr.disabled=!0,vr.overrideTotalTime(yo.totalTime),void h.push(vr);let Ha=c2;if(_p.size>1){let Bc=rr;const mm=[];for(;Bc=Bc.parentNode;){const Xs=_p.get(Bc);if(Xs){Ha=Xs;break}mm.push(Bc)}mm.forEach(Xs=>_p.set(Xs,Ha))}const jh=this._buildAnimation(vr.namespaceId,yo,zl,v,d1,bp);if(vr.setRealPlayer(jh),Ha===c2)e0.push(vr);else{const Bc=this.playersByElement.get(Ha);Bc&&Bc.length&&(vr.parentPlayer=ou(Bc)),h.push(vr)}}else Dc(rr,yo.fromStyles),vr.onDestroy(()=>Ba(rr,yo.toStyles)),l2.push(vr),gt.has(rr)&&h.push(vr)}),l2.forEach(Ui=>{const rr=v.get(Ui.element);if(rr&&rr.length){const vr=ou(rr);Ui.setRealPlayer(vr)}}),h.forEach(Ui=>{Ui.parentPlayer?Ui.syncPlayerEvents(Ui.parentPlayer):Ui.destroy()});for(let Ui=0;Ui<Di.length;Ui++){const rr=Di[Ui],vr=rr[Fo];if(fd(rr,og),vr&&vr.hasAnimation)continue;let yo=[];if(Z.size){let jh=Z.get(rr);jh&&jh.length&&yo.push(...jh);let Bc=this.driver.query(rr,Sl,!0);for(let mm=0;mm<Bc.length;mm++){let Xs=Z.get(Bc[mm]);Xs&&Xs.length&&yo.push(...Xs)}}const Ha=yo.filter(jh=>!jh.destroyed);Ha.length?Sg(this,rr,Ha):this.processLeaveNode(rr)}return Di.length=0,e0.forEach(Ui=>{this.players.push(Ui),Ui.onDone(()=>{Ui.destroy();const rr=this.players.indexOf(Ui);this.players.splice(rr,1)}),Ui.play()}),e0}elementContainsData(o,n){let r=!1;const h=n[Fo];return h&&h.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(o).elementContainsData(n)||r}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,n,r,h,v){let M=[];if(n){const Z=this.playersByQueriedElement.get(o);Z&&(M=Z)}else{const Z=this.playersByElement.get(o);if(Z){const X=!v||v==fh;Z.forEach(be=>{be.queued||!X&&be.triggerName!=h||M.push(be)})}}return(r||h)&&(M=M.filter(Z=>!(r&&r!=Z.namespaceId||h&&h!=Z.triggerName))),M}_beforeAnimationBuild(o,n,r){const v=n.element,M=n.isRemovalTransition?void 0:o,Z=n.isRemovalTransition?void 0:n.triggerName;for(const X of n.timelines){const be=X.element,gt=be!==v,It=Za(r,be,[]);this._getPreviousPlayers(be,gt,M,Z,n.toState).forEach(Cn=>{const Tn=Cn.getRealPlayer();Tn.beforeDestroy&&Tn.beforeDestroy(),Cn.destroy(),It.push(Cn)})}Dc(v,n.fromStyles)}_buildAnimation(o,n,r,h,v,M){const Z=n.triggerName,X=n.element,be=[],gt=new Set,It=new Set,Yt=n.timelines.map(Tn=>{const oi=Tn.element;gt.add(oi);const Di=oi[Fo];if(Di&&Di.removedBeforeQueried)return new hr.ZN(Tn.duration,Tn.delay);const qr=oi!==X,bo=function Kb(c){const o=[];return nl(c,o),o}((r.get(oi)||W0).map(zl=>zl.getRealPlayer())).filter(zl=>!!zl.element&&zl.element===oi),Qs=v.get(oi),da=M.get(oi),_b=R0(0,this._normalizer,0,Tn.keyframes,Qs,da),qh=this._buildPlayer(Tn,_b,bo);if(Tn.subTimeline&&h&&It.add(oi),qr){const zl=new Ff(o,Z,oi);zl.setRealPlayer(qh),be.push(zl)}return qh});be.forEach(Tn=>{Za(this.playersByQueriedElement,Tn.element,[]).push(Tn),Tn.onDone(()=>function J0(c,o,n){let r=c.get(o);if(r){if(r.length){const h=r.indexOf(n);r.splice(h,1)}0==r.length&&c.delete(o)}return r}(this.playersByQueriedElement,Tn.element,Tn))}),gt.forEach(Tn=>Va(Tn,su));const Cn=ou(Yt);return Cn.onDestroy(()=>{gt.forEach(Tn=>fd(Tn,su)),Ba(X,n.toStyles)}),It.forEach(Tn=>{Za(h,Tn,[]).push(Cn)}),Cn}_buildPlayer(o,n,r){return n.length>0?this.driver.animate(o.element,n,o.duration,o.delay,o.easing,r):new hr.ZN(o.duration,o.delay)}}class Ff{constructor(o,n,r){this.namespaceId=o,this.triggerName=n,this.element=r,this._player=new hr.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((n,r)=>{n.forEach(h=>sr(o,r,void 0,h))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const n=this._player;n.triggerCallback&&o.onStart(()=>n.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,n){Za(this._queuedCallbacks,o,[]).push(n)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const n=this._player;n.triggerCallback&&n.triggerCallback(o)}}function Ag(c){return c&&1===c.nodeType}function X0(c,o){const n=c.style.display;return c.style.display=o??"none",n}function Lf(c,o,n,r,h){const v=[];n.forEach(X=>v.push(X0(X)));const M=[];r.forEach((X,be)=>{const gt=new Map;X.forEach(It=>{const Yt=o.computeStyle(be,It,h);gt.set(It,Yt),(!Yt||0==Yt.length)&&(be[Fo]=l_,M.push(be))}),c.set(be,gt)});let Z=0;return n.forEach(X=>X0(X,v[Z++])),M}function Ig(c,o){const n=new Map;if(c.forEach(Z=>n.set(Z,[])),0==o.length)return n;const h=new Set(o),v=new Map;function M(Z){if(!Z)return 1;let X=v.get(Z);if(X)return X;const be=Z.parentNode;return X=n.has(be)?be:h.has(be)?1:M(be),v.set(Z,X),X}return o.forEach(Z=>{const X=M(Z);1!==X&&n.get(X).push(Z)}),n}function Va(c,o){c.classList?.add(o)}function fd(c,o){c.classList?.remove(o)}function Sg(c,o,n){ou(n).onDone(()=>c.processLeaveNode(o))}function nl(c,o){for(let n=0;n<c.length;n++){const r=c[n];r instanceof hr.ZE?nl(r.players,o):o.push(r)}}function Rg(c,o,n){const r=n.get(c);if(!r)return!1;let h=o.get(c);return h?r.forEach(v=>h.add(v)):o.set(c,r),n.delete(c),!0}class Uf{constructor(o,n,r){this.bodyNode=o,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(h,v)=>{},this._transitionEngine=new Dg(o,n,r),this._timelineEngine=new hd(o,n,r),this._transitionEngine.onRemovalComplete=(h,v)=>this.onRemovalComplete(h,v)}registerTrigger(o,n,r,h,v){const M=o+"-"+h;let Z=this._triggerCache[M];if(!Z){const X=[],gt=mg(this._driver,v,X,[]);if(X.length)throw function Zm(c,o){return new e.vHH(3404,!1)}();Z=function Fl(c,o,n){return new wg(c,o,n)}(h,gt,this._normalizer),this._triggerCache[M]=Z}this._transitionEngine.registerTrigger(n,h,Z)}register(o,n){this._transitionEngine.register(o,n)}destroy(o,n){this._transitionEngine.destroy(o,n)}onInsert(o,n,r,h){this._transitionEngine.insertNode(o,n,r,h)}onRemove(o,n,r,h){this._transitionEngine.removeNode(o,n,h||!1,r)}disableAnimations(o,n){this._transitionEngine.markElementAsDisabled(o,n)}process(o,n,r,h){if("@"==r.charAt(0)){const[v,M]=N0(r);this._timelineEngine.command(v,n,M,h)}else this._transitionEngine.trigger(o,n,r,h)}listen(o,n,r,h,v){if("@"==r.charAt(0)){const[M,Z]=N0(r);return this._timelineEngine.listen(M,n,Z,v)}return this._transitionEngine.listen(o,n,r,h,v)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ng=(()=>{class c{constructor(n,r,h){this._element=n,this._startStyles=r,this._endStyles=h,this._state=0;let v=c.initialStylesByElement.get(n);v||c.initialStylesByElement.set(n,v=new Map),this._initialStyles=v}start(){this._state<1&&(this._startStyles&&Ba(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ba(this._element,this._initialStyles),this._endStyles&&(Ba(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(c.initialStylesByElement.delete(this._element),this._startStyles&&(Dc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dc(this._element,this._endStyles),this._endStyles=null),Ba(this._element,this._initialStyles),this._state=3)}}return c.initialStylesByElement=new WeakMap,c})();function c_(c){let o=null;return c.forEach((n,r)=>{(function u_(c){return"display"===c||"position"===c})(r)&&(o=o||new Map,o.set(r,n))}),o}class ev{constructor(o,n,r,h){this.element=o,this.keyframes=n,this.options=r,this._specialStyles=h,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const n=[];return o.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(o,n,r){return o.animate(this._convertKeyframesToObject(n),r)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,h)=>{"offset"!==h&&o.set(h,this._finished?r:Ks(this.element,h))}),this.currentSnapshot=o}triggerCallback(o){const n="start"===o?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class Zf{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,n){return!1}containsElement(o,n){return ih(o,n)}getParentElement(o){return id(o)}query(o,n,r){return rh(o,n,r)}computeStyle(o,n,r){return window.getComputedStyle(o)[n]}animate(o,n,r,h,v,M=[]){const X={duration:r,delay:h,fill:0==h?"both":"forwards"};v&&(X.easing=v);const be=new Map,gt=M.filter(Cn=>Cn instanceof ev);(function Wm(c,o){return 0===c||0===o})(r,h)&>.forEach(Cn=>{Cn.currentSnapshot.forEach((Tn,oi)=>be.set(oi,Tn))});let It=function $m(c){return c.length?c[0]instanceof Map?c:c.map(o=>Z0(o)):[]}(n).map(Cn=>tc(Cn));It=function Km(c,o,n){if(n.size&&o.length){let r=o[0],h=[];if(n.forEach((v,M)=>{r.has(M)||h.push(M),r.set(M,v)}),h.length)for(let v=1;v<o.length;v++){let M=o[v];h.forEach(Z=>M.set(Z,Ks(c,Z)))}}return o}(o,It,be);const Yt=function E1(c,o){let n=null,r=null;return Array.isArray(o)&&o.length?(n=c_(o[0]),o.length>1&&(r=c_(o[o.length-1]))):o instanceof Map&&(n=c_(o)),n||r?new Ng(c,n,r):null}(o,It);return new ev(o,It,X,Yt)}}let Yb=(()=>{class c extends hr._j{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const h=Array.isArray(n)?(0,hr.vP)(n):n;return gh(this._renderer,null,r,"register",[h]),new d_(r,this._renderer)}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(e.FYo),e.LFG(z.K0))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();class d_ extends hr.LC{constructor(o,n){super(),this._id=o,this._renderer=n}create(o,n){return new ph(this._id,o,n||{},this._renderer)}}class ph{constructor(o,n,r,h){this.id=o,this.element=n,this._renderer=h,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(o,n){return this._renderer.listen(this.element,`@@${this.id}:${o}`,n)}_command(o,...n){return gh(this._renderer,this.element,this.id,o,n)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function gh(c,o,n,r,h){return c.setProperty(o,`@@${n}:${r}`,h)}const tv="@.disabled";let Bf=(()=>{class c{constructor(n,r,h){this.delegate=n,this.engine=r,this._zone=h,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(v,M)=>{const Z=M?.parentNode(v);Z&&M.removeChild(Z,v)}}createRenderer(n,r){const v=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let gt=this._rendererCache.get(v);return gt||(gt=new Jb("",v,this.engine,()=>this._rendererCache.delete(v)),this._rendererCache.set(v,gt)),gt}
1const M=r.id,Z=r.id+"-"+this._currentId;this._currentId++,this.engine.register(Z,n);const X=gt=>{Array.isArray(gt)?gt.forEach(X):this.engine.registerTrigger(M,Z,n,gt.name,gt)};return r.data.animation.forEach(X),new Fg(this,Z,v,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,h){n>=0&&n<this._microtaskId?this._zone.run(()=>r(h)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(v=>{const[M,Z]=v;M(Z)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,h]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(e.FYo),e.LFG(Uf),e.LFG(e.R0b))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();class Jb{constructor(o,n,r,h){this.namespaceId=o,this.delegate=n,this.engine=r,this._onDestroy=h,this.destroyNode=this.delegate.destroyNode?v=>n.destroyNode(v):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(o,n){return this.delegate.createElement(o,n)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,n){this.delegate.appendChild(o,n),this.engine.onInsert(this.namespaceId,n,o,!1)}insertBefore(o,n,r,h=!0){this.delegate.insertBefore(o,n,r),this.engine.onInsert(this.namespaceId,n,o,h)}removeChild(o,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(o,n){return this.delegate.selectRootElement(o,n)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,n,r,h){this.delegate.setAttribute(o,n,r,h)}removeAttribute(o,n,r){this.delegate.removeAttribute(o,n,r)}addClass(o,n){this.delegate.addClass(o,n)}removeClass(o,n){this.delegate.removeClass(o,n)}setStyle(o,n,r,h){this.delegate.setStyle(o,n,r,h)}removeStyle(o,n,r){this.delegate.removeStyle(o,n,r)}setProperty(o,n,r){"@"==n.charAt(0)&&n==tv?this.disableAnimations(o,!!r):this.delegate.setProperty(o,n,r)}setValue(o,n){this.delegate.setValue(o,n)}listen(o,n,r){return this.delegate.listen(o,n,r)}disableAnimations(o,n){this.engine.disableAnimations(o,n)}}class Fg extends Jb{constructor(o,n,r,h,v){super(n,r,h,v),this.factory=o,this.namespaceId=n}setProperty(o,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==tv?this.disableAnimations(o,r=void 0===r||!!r):this.engine.process(this.namespaceId,o,n.slice(1),r):this.delegate.setProperty(o,n,r)}listen(o,n,r){if("@"==n.charAt(0)){const h=function nc(c){switch(c){case"body":return document.body;case"document":return document;case"window":return window;default:return c}}(o);let v=n.slice(1),M="";return"@"!=v.charAt(0)&&([v,M]=function Lg(c){const o=c.indexOf(".");return[c.substring(0,o),c.slice(o+1)]}(v)),this.engine.listen(this.namespaceId,h,v,M,Z=>{this.factory.scheduleListenerCallback(Z._data||-1,r,Z)})}return this.delegate.listen(o,n,r)}}const Vf=[{provide:hr._j,useClass:Yb},{provide:Cg,useFactory:function zf(){return new xg}},{provide:Uf,useClass:(()=>{class c extends Uf{constructor(n,r,h,v){super(n.body,r,h)}ngOnDestroy(){this.flush()}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(z.K0),e.LFG(jm),e.LFG(Cg),e.LFG(e.z2F))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})()},{provide:e.FYo,useFactory:function kc(c,o,n){return new Bf(c,o,n)},deps:[g.se,Uf,e.R0b]}],du=[{provide:jm,useFactory:()=>new Zf},{provide:e.QbO,useValue:"BrowserAnimations"},...Vf],mh=[{provide:jm,useClass:qb},{provide:e.QbO,useValue:"NoopAnimations"},...Vf];let h_=(()=>{class c{static withConfig(n){return{ngModule:c,providers:n.disableAnimations?mh:du}}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:du,imports:[g.b2]}),c})();var p_=D(2011);const hu_firebaseConfig={apiKey:"AIzaSyD2T6Tu3EY-iviYv8mBttb_O9T2sWkZv6U",authDomain:"oscus-75618.firebaseapp.com",databaseURL:"https://oscus-75618-default-rtdb.firebaseio.com",projectId:"oscus-75618",storageBucket:"oscus-75618.appspot.com",messagingSenderId:"322964408485",appId:"1:322964408485:web:d016fbffcfa3be40a7254c",measurementId:"G-PLYKG2RJ44"},Ug="@firebase/database";let g_="";class m_{constructor(o){this.domStorage_=o,this.prefix_="firebase:"}set(o,n){null==n?this.domStorage_.removeItem(this.prefixedName_(o)):this.domStorage_.setItem(this.prefixedName_(o),(0,cn.Wl)(n))}get(o){const n=this.domStorage_.getItem(this.prefixedName_(o));return null==n?null:(0,cn.cI)(n)}remove(o){this.domStorage_.removeItem(this.prefixedName_(o))}prefixedName_(o){return this.prefix_+o}toString(){return this.domStorage_.toString()}}class Qb{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(o,n){null==n?delete this.cache_[o]:this.cache_[o]=n}get(o){return(0,cn.r3)(this.cache_,o)?this.cache_[o]:null}remove(o){delete this.cache_[o]}}const Zg=function(c){try{if(typeof window<"u"&&typeof window[c]<"u"){const o=window[c];return o.setItem("firebase:sentinel","cache"),o.removeItem("firebase:sentinel"),new m_(o)}}catch{}return new Qb},ic=Zg("localStorage"),pd=Zg("sessionStorage"),_h=new Hc.Yd("@firebase/database"),fu=function(){let c=1;return function(){return c++}}(),ov=function(c){const o=(0,cn.dS)(c),n=new cn.gQ;n.update(o);const r=n.digest();return cn.US.encodeByteArray(r)},gd=function(...c){let o="";for(let n=0;n<c.length;n++){const r=c[n];Array.isArray(r)||r&&"object"==typeof r&&"number"==typeof r.length?o+=gd.apply(null,r):o+="object"==typeof r?(0,cn.Wl)(r):r,o+=" "}return o};let pu=null,md=!0;const Os=function(...c){if(!0===md&&(md=!1,null===pu&&!0===pd.get("logging_enabled")&&function(c,o){(0,cn.hu)(!o||!0===c||!1===c,"Can't turn on custom loggers persistently."),!0===c?(_h.logLevel=Hc.in.VERBOSE,pu=_h.log.bind(_h),o&&pd.set("logging_enabled",!0)):"function"==typeof c?pu=c:(pu=null,pd.remove("logging_enabled"))}(!0)),pu){const o=gd.apply(null,c);pu(o)}},gu=function(c){return function(...o){Os(c,...o)}},Rc=function(...c){const o="FIREBASE INTERNAL ERROR: "+gd(...c);_h.error(o)},Nc=function(...c){const o=`FIREBASE FATAL ERROR: ${gd(...c)}`;throw _h.error(o),new Error(o)},Us=function(...c){const o="FIREBASE WARNING: "+gd(...c);_h.warn(o)},vh=function(c){return"number"==typeof c&&(c!=c||c===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY)},rc="[MIN_NAME]",Ys="[MAX_NAME]",il=function(c,o){if(c===o)return 0;
1if(c===rc||o===Ys)return-1;if(o===rc||c===Ys)return 1;{const n=vd(c),r=vd(o);return null!==n?null!==r?n-r==0?c.length-o.length:n-r:-1:null!==r?1:c<o?-1:1}},ca=function(c,o){return c===o?0:c<o?-1:1},qa=function(c,o){if(o&&c in o)return o[c];throw new Error("Missing required key ("+c+") in object: "+(0,cn.Wl)(o))},mu=function(c){if("object"!=typeof c||null===c)return(0,cn.Wl)(c);const o=[];for(const r in c)o.push(r);o.sort();let n="{";for(let r=0;r<o.length;r++)0!==r&&(n+=","),n+=(0,cn.Wl)(o[r]),n+=":",n+=mu(c[o[r]]);return n+="}",n},ja=function(c,o){const n=c.length;if(n<=o)return[c];const r=[];for(let h=0;h<n;h+=o)r.push(c.substring(h,h+o>n?n:h+o));return r};function as(c,o){for(const n in c)c.hasOwnProperty(n)&&o(n,c[n])}const _u=function(c){(0,cn.hu)(!vh(c),"Invalid JSON number");const r=1023;let h,v,M,Z,X;0===c?(v=0,M=0,h=1/c==-1/0?1:0):(h=c<0,(c=Math.abs(c))>=Math.pow(2,1-r)?(Z=Math.min(Math.floor(Math.log(c)/Math.LN2),r),v=Z+r,M=Math.round(c*Math.pow(2,52-Z)-Math.pow(2,52))):(v=0,M=Math.round(c/Math.pow(2,-1074))));const be=[];for(X=52;X;X-=1)be.push(M%2?1:0),M=Math.floor(M/2);for(X=11;X;X-=1)be.push(v%2?1:0),v=Math.floor(v/2);be.push(h?1:0),be.reverse();const gt=be.join("");let It="";for(X=0;X<64;X+=8){let Yt=parseInt(gt.substr(X,8),2).toString(16);1===Yt.length&&(Yt="0"+Yt),It+=Yt}return It.toLowerCase()},bu=new RegExp("^-?(0*)\\d{1,10}$"),vd=function(c){if(bu.test(c)){const o=Number(c);if(o>=-2147483648&&o<=2147483647)return o}return null},fl=function(c){try{c()}catch(o){setTimeout(()=>{throw Us("Exception was thrown by user callback.",o.stack||""),o},Math.floor(0))}},bd=function(c,o){const n=setTimeout(c,o);return"number"==typeof n&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(n):"object"==typeof n&&n.unref&&n.unref(),n};class av{constructor(o,n){this.appName_=o,this.appCheckProvider=n,this.appCheck=n?.getImmediate({optional:!0}),this.appCheck||n?.get().then(r=>this.appCheck=r)}getToken(o){return this.appCheck?this.appCheck.getToken(o):new Promise((n,r)=>{setTimeout(()=>{this.appCheck?this.getToken(o).then(n,r):n(null)},0)})}addTokenChangeListener(o){var n;null===(n=this.appCheckProvider)||void 0===n||n.get().then(r=>r.addTokenListener(o))}notifyForInvalidToken(){Us(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class lv{constructor(o,n,r){this.appName_=o,this.firebaseOptions_=n,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(h=>this.auth_=h)}getToken(o){return this.auth_?this.auth_.getToken(o).catch(n=>n&&"auth/token-not-initialized"===n.code?(Os("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(n)):new Promise((n,r)=>{setTimeout(()=>{this.auth_?this.getToken(o).then(n,r):n(null)},0)})}addTokenChangeListener(o){this.auth_?this.auth_.addAuthTokenListener(o):this.authProvider_.get().then(n=>n.addAuthTokenListener(o))}removeTokenChangeListener(o){this.authProvider_.get().then(n=>n.removeAuthTokenListener(o))}notifyForInvalidToken(){let o='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';o+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Us(o)}}let Ch=(()=>{class c{constructor(n){this.accessToken=n}getToken(n){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(n){n(this.accessToken)}removeTokenChangeListener(n){}notifyForInvalidToken(){}}return c.OWNER="owner",c})();const b_=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,Gf="websocket",Wf="long_polling";class yd{constructor(o,n,r,h,v=!1,M="",Z=!1,X=!1){this.secure=n,this.namespace=r,this.webSocketOnly=h,this.nodeAdmin=v,this.persistenceKey=M,this.includeNamespaceInQueryParams=Z,this.isUsingEmulator=X,this._host=o.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=ic.get("host:"+o)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(o){o!==this.internalHost&&(this.internalHost=o,this.isCacheableHost()&&ic.set("host:"+this._host,this.internalHost))}toString(){let o=this.toURLString();return this.persistenceKey&&(o+="<"+this.persistenceKey+">"),o}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function Lo(c,o,n){let r;if((0,cn.hu)("string"==typeof o,"typeof type must == string"),(0,cn.hu)("object"==typeof n,"typeof params must == object"),o===Gf)r=(c.secure?"wss://":"ws://")+c.internalHost+"/.ws?";else{if(o!==Wf)throw new Error("Unknown connection type: "+o);r=(c.secure?"https://":"http://")+c.internalHost+"/.lp?"}(function Kf(c){return c.host!==c.internalHost||c.isCustomHost()||c.includeNamespaceInQueryParams})(c)&&(n.ns=c.namespace);const h=[];return as(n,(v,M)=>{h.push(v+"="+M)}),r+h.join("&")}class Js{constructor(){this.counters_={}}incrementCounter(o,n=1){(0,cn.r3)(this.counters_,o)||(this.counters_[o]=0),this.counters_[o]+=n}get(){return(0,cn.p$)(this.counters_)}}const pl={},xh={};function wh(c){const o=c.toString();return pl[o]||(pl[o]=new Js),pl[o]}class cv{constructor(o){this.onMessage_=o,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(o,n){this.closeAfterResponse=o,this.onClose=n,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(o,n){for(this.pendingResponses[o]=n;this.pendingResponses[this.currentResponseNum];){const r=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let h=0;h<r.length;++h)r[h]&&fl(()=>{this.onMessage_(r[h])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class yu{constructor(o,n,r,h,v,M,Z){this.connId=o,this.repoInfo=n,this.applicationId=r,this.appCheckToken=h,this.authToken=v,this.transportSessionId=M,this.lastSessionId=Z,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=gu(o),this.stats_=wh(n),this.urlFn=X=>(this.appCheckToken&&(X.ac=this.appCheckToken),Lo(n,Wf,X))}open(o,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new cv(o),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(c){if((0,cn.Yr)()||"complete"===document.readyState)c();else{let o=!1;const n=function(){document.body?o||(o=!0,c()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}(()=>
1{if(this.isClosed_)return;this.scriptTagHolder=new Wg((...v)=>{const[M,Z,X,be,gt]=v;if(this.incrementIncomingBytes_(v),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===M)this.id=Z,this.password=X;else{if("close"!==M)throw new Error("Unrecognized command received: "+M);Z?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(Z,()=>{this.onClosed_()})):this.onClosed_()}},(...v)=>{const[M,Z]=v;this.incrementIncomingBytes_(v),this.myPacketOrderer.handleResponse(M,Z)},()=>{this.onClosed_()},this.urlFn);const r={start:"t"};r.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(r.cb=this.scriptTagHolder.uniqueCallbackIdentifier),r.v="5",this.transportSessionId&&(r.s=this.transportSessionId),this.lastSessionId&&(r.ls=this.lastSessionId),this.applicationId&&(r.p=this.applicationId),this.appCheckToken&&(r.ac=this.appCheckToken),typeof location<"u"&&location.hostname&&b_.test(location.hostname)&&(r.r="f");const h=this.urlFn(r);this.log_("Connecting via long-poll to "+h),this.scriptTagHolder.addTag(h,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){yu.forceAllow_=!0}static forceDisallow(){yu.forceDisallow_=!0}static isAvailable(){return!((0,cn.Yr)()||!yu.forceAllow_&&(yu.forceDisallow_||!(typeof document<"u")||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(o){const n=(0,cn.Wl)(o);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=(0,cn.h$)(n),h=ja(r,1840);for(let v=0;v<h.length;v++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,h.length,h[v]),this.curSegmentNum++}addDisconnectPingFrame(o,n){if((0,cn.Yr)())return;this.myDisconnFrame=document.createElement("iframe");const r={dframe:"t"};r.id=o,r.pw=n,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(o){const n=(0,cn.Wl)(o).length;this.bytesReceived+=n,this.stats_.incrementCounter("bytes_received",n)}}class Wg{constructor(o,n,r,h){if(this.onDisconnect=r,this.urlFn=h,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,cn.Yr)())this.commandCB=o,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=fu(),window["pLPCommand"+this.uniqueCallbackIdentifier]=o,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=Wg.createIFrame_();let v="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(v='<script>document.domain="'+document.domain+'";<\/script>');const M="<html><body>"+v+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(M),this.myIFrame.doc.close()}catch(Z){Os("frame writing exception"),Z.stack&&Os(Z.stack),Os(Z)}}}static createIFrame_(){const o=document.createElement("iframe");if(o.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(o);try{o.contentWindow.document||Os("No IE domain setting required")}catch{const r=document.domain;o.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}return o.contentDocument?o.doc=o.contentDocument:o.contentWindow?o.doc=o.contentWindow.document:o.document&&(o.doc=o.document),o}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const o=this.onDisconnect;o&&(this.onDisconnect=null,o())}
1startLongPoll(o,n){for(this.myID=o,this.myPW=n,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const o={};o.id=this.myID,o.pw=this.myPW,o.ser=this.currentSerial;let n=this.urlFn(o),r="",h=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+r.length<=1870;){const M=this.pendingSegs.shift();r=r+"&seg"+h+"="+M.seg+"&ts"+h+"="+M.ts+"&d"+h+"="+M.d,h++}return n+=r,this.addLongPollTag_(n,this.currentSerial),!0}return!1}enqueueSegment(o,n,r){this.pendingSegs.push({seg:o,ts:n,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(o,n){this.outstandingRequests.add(n);const r=()=>{this.outstandingRequests.delete(n),this.newRequest_()},h=setTimeout(r,Math.floor(25e3));this.addTag(o,()=>{clearTimeout(h),r()})}addTag(o,n){(0,cn.Yr)()?this.doNodeLongPoll(o,n):setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=o,r.onload=r.onreadystatechange=function(){const h=r.readyState;(!h||"loaded"===h||"complete"===h)&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{Os("Long-poll script failed to load: "+o),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}let Fc=null;typeof MozWebSocket<"u"?Fc=MozWebSocket:typeof WebSocket<"u"&&(Fc=WebSocket);let Cd=(()=>{class c{constructor(n,r,h,v,M,Z,X){this.connId=n,this.applicationId=h,this.appCheckToken=v,this.authToken=M,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=gu(this.connId),this.stats_=wh(r),this.connURL=c.connectionURL_(r,Z,X,v,h),this.nodeAdmin=r.nodeAdmin}static connectionURL_(n,r,h,v,M){const Z={v:"5"};return!(0,cn.Yr)()&&typeof location<"u"&&location.hostname&&b_.test(location.hostname)&&(Z.r="f"),r&&(Z.s=r),h&&(Z.ls=h),v&&(Z.ac=v),M&&(Z.p=M),Lo(n,Gf,Z)}open(n,r){this.onDisconnect=r,this.onMessage=n,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,ic.set("previous_websocket_failure",!0);try{let h;if((0,cn.Yr)()){h={headers:{"User-Agent":`Firebase/5/${g_}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(h.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(h.headers["X-Firebase-AppCheck"]=this.appCheckToken);const M=process.env,Z=0===this.connURL.indexOf("wss://")?M.HTTPS_PROXY||M.https_proxy:M.HTTP_PROXY||M.http_proxy;Z&&(h.proxy={origin:Z})}this.mySock=new Fc(this.connURL,[],h)}catch(h){this.log_("Error instantiating WebSocket.");const v=h.message||h.data;return v&&this.log_(v),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=h=>{this.handleIncomingFrame(h)},this.mySock.onerror=h=>{this.log_("WebSocket error. Closing connection.");const v=h.message||h.data;v&&this.log_(v),this.onClosed_()}}start(){}static forceDisallow(){c.forceDisallow_=!0}static isAvailable(){let n=!1;if(typeof navigator<"u"&&navigator.userAgent){const h=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);h&&h.length>1&&parseFloat(h[1])<4.4&&(n=!0)}return!n&&null!==Fc&&!c.forceDisallow_}static previouslyFailed(){return ic.isInMemoryStorage||!0===ic.get("previous_websocket_failure")}markConnectionHealthy(){ic.remove("previous_websocket_failure")}appendFrame_(n){if(this.frames.push(n),this.frames.length===this.totalFrames){const r=this.frames.join("");this.frames=null;const h=(0,cn.cI)(r);this.onMessage(h)}}handleNewFrameCount_(n){this.totalFrames=n,this.frames=[]}extractFrameCount_(n){if((0,cn.hu)(null===this.frames,"We already have a frame buffer"),n.length<=6){const r=Number(n);if(!isNaN(r))return this.handleNewFrameCount_(r),null}return this.handleNewFrameCount_(1),n}handleIncomingFrame(n){if(null===this.mySock)return;const r=n.data;if(this.bytesReceived+=r.length,this.stats_.incrementCounter("bytes_received",r.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(r);else{const h=this.extractFrameCount_(r);null!==h&&this.appendFrame_(h)}}send(n){this.resetKeepAlive();const r=(0,cn.Wl)(n);this.bytesSent+=r.length,this.stats_.incrementCounter("bytes_sent",r.length);const h=ja(r,16384);h.length>1&&this.sendString_(String(h.length));for(let v=0;v<h.length;v++)this.sendString_(h[v])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(n){try{this.mySock.send(n)}catch(r){this.log_("Exception thrown from WebSocket.send():",r.message||r.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return c.responsesRequiredToBeHealthy=2,c.healthyTimeout=3e4,c})(),Cu=(()=>{class c{constructor(n){this.initTransports_(n)}static get ALL_TRANSPORTS(){return[yu,Cd]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(n){const r=Cd&&Cd.isAvailable();let h=r&&!Cd.previouslyFailed();
vendor: 10,244 bytes, line 1
1if(n.webSocketOnly&&(r||Us("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),h=!0),h)this.transports_=[Cd];else{const v=this.transports_=[];for(const M of c.ALL_TRANSPORTS)M&&M.isAvailable()&&v.push(M);c.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}return c.globalTransportInitialized_=!1,c})();class Yg{constructor(o,n,r,h,v,M,Z,X,be,gt){this.id=o,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=h,this.authToken_=v,this.onMessage_=M,this.onReady_=Z,this.onDisconnect_=X,this.onKill_=be,this.lastSessionId=gt,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=gu("c:"+this.id+":"),this.transportManager_=new Cu(n),this.log_("Connection created"),this.start_()}start_(){const o=this.transportManager_.initialTransport();this.conn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(n,r)},Math.floor(0));const h=o.healthyTimeout||0;h>0&&(this.healthyTimeout_=bd(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(h)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(o){return n=>{o===this.conn_?this.onConnectionLost_(n):o===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(o){return n=>{2!==this.state_&&(o===this.rx_?this.onPrimaryMessageReceived_(n):o===this.secondaryConn_?this.onSecondaryMessageReceived_(n):this.log_("message on old connection"))}}sendRequest(o){this.sendData_({t:"d",d:o})}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(o){if("t"in o){const n=o.t;"a"===n?this.upgradeIfSecondaryHealthy_():"r"===n?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===n&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(o){const n=qa("t",o),r=qa("d",o);if("c"===n)this.onSecondaryControl_(r);else{if("d"!==n)throw new Error("Unknown protocol layer: "+n);this.pendingDataMessages.push(r)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(o){const n=qa("t",o),r=qa("d",o);"c"===n?this.onControl_(r):"d"===n&&this.onDataMessage_(r)}onDataMessage_(o){this.onPrimaryResponse_(),this.onMessage_(o)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(o){const n=qa("t",o);if("d"in o){const r=o.d;if("h"===n){const h=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(h.h=this.repoInfo_.host),this.onHandshake_(h)}else if("n"===n){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let h=0;h<this.pendingDataMessages.length;++h)this.onDataMessage_(this.pendingDataMessages[h]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===n?this.onConnectionShutdown_(r):"r"===n?this.onReset_(r):"e"===n?Rc("Server Error: "+r):"o"===n?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):Rc("Unknown control packet command: "+n)}}onHandshake_(o){const n=o.ts,r=o.v,h=o.h;this.sessionId=o.s,this.repoInfo_.host=h,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,n),"5"!==r&&Us("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const o=this.transportManager_.upgradeTransport();o&&this.startUpgrade_(o)}startUpgrade_(o){this.secondaryConn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),bd(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(o){this.log_("Reset packet received. New host: "+o),this.repoInfo_.host=o,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(o,n){this.log_("Realtime connection established."),this.conn_=o,this.state_=1,this.onReady_&&(this.onReady_(n,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):bd(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const o=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===o||this.rx_===o)&&this.close()}onConnectionLost_(o){this.conn_=null,o||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(ic.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(o){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(o),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(o){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(o)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class O_{put(o,n,r,h){}merge(o,n,r,h){}refreshAuthToken(o){}refreshAppCheckToken(o){}onDisconnectPut(o,n,r){}onDisconnectMerge(o,n,r){}onDisconnectCancel(o,n){}reportStats(o){}}class yv{constructor(o){this.allowedEvents_=o,this.listeners_={},(0,cn.hu)(Array.isArray(o)&&o.length>0,"Requires a non-empty array")}trigger(o,...n){if(Array.isArray(this.listeners_[o])){const r=[...this.listeners_[o]];for(let h=0;h<r.length;h++)r[h].callback.apply(r[h].context,n)}}on(o,n,r){this.validateEventType_(o),this.listeners_[o]=this.listeners_[o]||[],this.listeners_[o].push({callback:n,context:r});const h=this.getInitialEvent(o);h&&n.apply(r,h)}off(o,n,r){this.validateEventType_(o);const h=this.listeners_[o]||[];for(let v=0;v<h.length;v++)if(h[v].callback===n&&(!r||r===h[v].context))return void h.splice(v,1)}validateEventType_(o){(0,cn.hu)(this.allowedEvents_.find(n=>n===o),"Unknown event: "+o)}}class Jf extends yv{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!(0,cn.uI)()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new Jf}getInitialEvent(o){return(0,cn.hu)("online"===o,"Unknown event type: "+o),[this.online_]}currentlyOnline(){return this.online_}}class ro{constructor(o,n){if(void 0===n){this.pieces_=o.split("/");let r=0;for(let h=0;h<this.pieces_.length;h++)this.pieces_[h].length>0&&(this.pieces_[r]=this.pieces_[h],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=o,this.pieceNum_=n}toString(){let o="";for(let n=this.pieceNum_;n<this.pieces_.length;n++)""!==this.pieces_[n]&&(o+="/"+this.pieces_[n]);return o||"/"}}function ar(){return new ro("")}function Ar(c){return c.pieceNum_>=c.pieces_.length?null:c.pieces_[c.pieceNum_]}function oc(c){return c.pieces_.length-c.pieceNum_}function Fr(c){let o=c.pieceNum_;return o<c.pieces_.length&&o++,new ro(c.pieces_,o)}function ba(c){return c.pieceNum_<c.pieces_.length?c.pieces_[c.pieces_.length-1]:null}function Uc(c,o=0){return c.pieces_.slice(c.pieceNum_+o)}function Oh(c){if(c.pieceNum_>=c.pieces_.length)return null;const o=[];for(let n=c.pieceNum_;n<c.pieces_.length-1;n++)o.push(c.pieces_[n]);return new ro(o,0)}function $o(c,o){const n=[];for(let r=c.pieceNum_;r<c.pieces_.length;r++)n.push(c.pieces_[r]);if(o instanceof ro)for(let r=o.pieceNum_;r<o.pieces_.length;r++)n.push(o.pieces_[r]);else{const r=o.split("/");for(let h=0;h<r.length;h++)r[h].length>0&&n.push(r[h])}return new ro(n,0)}function Er(c){return c.pieceNum_>=c.pieces_.length}function Ia(c,o){const n=Ar(c),r=Ar(o);if(null===n)return o;if(n===r)return Ia(Fr(c),Fr(o));
1throw new Error("INTERNAL ERROR: innerPath ("+o+") is not within outerPath ("+c+")")}function Ph(c,o){if(oc(c)!==oc(o))return!1;for(let n=c.pieceNum_,r=o.pieceNum_;n<=c.pieces_.length;n++,r++)if(c.pieces_[n]!==o.pieces_[r])return!1;return!0}function ua(c,o){let n=c.pieceNum_,r=o.pieceNum_;if(oc(c)>oc(o))return!1;for(;n<c.pieces_.length;){if(c.pieces_[n]!==o.pieces_[r])return!1;++n,++r}return!0}class Qf{constructor(o,n){this.errorPrefix_=n,this.parts_=Uc(o,0),this.byteLength_=Math.max(1,this.parts_.length);for(let r=0;r<this.parts_.length;r++)this.byteLength_+=(0,cn.ug)(this.parts_[r]);D_(this)}}function D_(c){if(c.byteLength_>768)throw new Error(c.errorPrefix_+"has a key path longer than 768 bytes ("+c.byteLength_+").");if(c.parts_.length>32)throw new Error(c.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+rl(c))}function rl(c){return 0===c.parts_.length?"":"in property '"+c.parts_.join(".")+"'"}class ep extends yv{constructor(){let o,n;super(["visible"]),typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(n="visibilitychange",o="hidden"):typeof document.mozHidden<"u"?(n="mozvisibilitychange",o="mozHidden"):typeof document.msHidden<"u"?(n="msvisibilitychange",o="msHidden"):typeof document.webkitHidden<"u"&&(n="webkitvisibilitychange",o="webkitHidden")),this.visible_=!0,n&&document.addEventListener(n,()=>{const r=!document[o];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}static getInstance(){return new ep}getInitialEvent(o){return(0,cn.hu)("visible"===o,"Unknown event type: "+o),[this.visible_]}}const Qg=1e3;let tp,Mu=(()=>{class c extends O_{constructor(n,r,h,v,M,Z,X,be){if(super(),this.repoInfo_=n,this.applicationId_=r,this.onDataUpdate_=h,this.onConnectStatus_=v,this.onServerInfoUpdate_=M,this.authTokenProvider_=Z,this.appCheckTokenProvider_=X,this.authOverride_=be,this.id=c.nextPersistentConnectionId_++,this.log_=gu("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Qg,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,be&&!(0,cn.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");ep.getInstance().on("visible",this.onVisible_,this),-1===n.host.indexOf("fblocal")&&Jf.getInstance().on("online",this.onOnline_,this)}sendRequest(n,r,h){const v=++this.requestNumber_,M={r:v,a:n,b:r};this.log_((0,cn.Wl)(M)),(0,cn.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(M),h&&(this.requestCBHash_[v]=h)}get(n){this.initConnection_();const r=new cn.BH,h={p:n._path.toString(),q:n._queryObject};return this.outstandingGets_.push({action:"g",request:h,onComplete:Z=>{const X=Z.d;"ok"===Z.s?r.resolve(X):r.reject(X)}}),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),r.promise}listen(n,r,h,v){this.initConnection_();const M=n._queryIdentifier,Z=n._path.toString();this.log_("Listen called for "+Z+" "+M),this.listens.has(Z)||this.listens.set(Z,new Map),(0,cn.hu)(n._queryParams.isDefault()||!n._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,cn.hu)(!this.listens.get(Z).has(M),"listen() called twice for same path/queryId.");const X={onComplete:v,hashFn:r,query:n,tag:h};this.listens.get(Z).set(M,X),this.connected_&&this.sendListen_(X)}sendGet_(n){const r=this.outstandingGets_[n];this.sendRequest("g",r.request,h=>{delete this.outstandingGets_[n],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),r.onComplete&&r.onComplete(h)})}sendListen_(n){const r=n.query,h=r._path.toString(),v=r._queryIdentifier;this.log_("Listen on "+h+" for "+v);const M={p:h};n.tag&&(M.q=r._queryObject,M.t=n.tag),M.h=n.hashFn(),this.sendRequest("q",M,X=>{const be=X.d,gt=X.s;c.warnOnListenWarnings_(be,r),(this.listens.get(h)&&this.listens.get(h).get(v))===n&&(this.log_("listen response",X),"ok"!==gt&&this.removeListen_(h,v),n.onComplete&&n.onComplete(gt,be))})}static warnOnListenWarnings_(n,r){if(n&&"object"==typeof n&&(0,cn.r3)(n,"w")){const h=(0,cn.DV)(n,"w");if(Array.isArray(h)&&~h.indexOf("no_index")){const v='".indexOn": "'+r._queryParams.getIndex().toString()+'"',M=r._path.toString();Us(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${v} at ${M} to your security rules for better performance.`)}}}refreshAuthToken(n){this.authToken_=n,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(n)}reduceReconnectDelayIfAdminCredential_(n){(n&&40===n.length||(0,cn.GJ)(n))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(n){this.appCheckToken_=n,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const n=this.authToken_,r=(0,cn.w9)(n)?"auth":"gauth",h={cred:n};null===this.authOverride_?h.noauth=!0:"object"==typeof this.authOverride_&&(h.authvar=this.authOverride_),this.sendRequest(r,h,v=>{const M=v.s,Z=v.d||"error";this.authToken_===n&&("ok"===M?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(M,Z))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},n=>{const r=n.s,h=n.d||"error";"ok"===r?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(r,h)})}unlisten(n,r){const h=n._path.toString(),v=n._queryIdentifier;this.log_("Unlisten called for "+h+" "+v),(0,cn.hu)(n._queryParams.isDefault()||!n._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(h,v)&&this.connected_&&this.sendUnlisten_(h,v,n._queryObject,r)}sendUnlisten_(n,r,h,v){this.log_("Unlisten on "+n+" for "+r);const M={p:n};v&&(M.q=h,M.t=v),this.sendRequest("n",M)}onDisconnectPut(n,r,h){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",n,r,h):this.onDisconnectRequestQueue_.push({pathString:n,action:"o",data:r,onComplete:h})}onDisconnectMerge(n,r,h){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",n,r,h):this.onDisconnectRequestQueue_.push({pathString:n,action:"om",data:r,onComplete:h})}onDisconnectCancel(n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",n,null,r):this.onDisconnectRequestQueue_.push({pathString:n,action:"oc",data:null,onComplete:r})}sendOnDisconnect_(n,r,h,v){const M={p:r,d:h};this.log_("onDisconnect "+n,M),this.sendRequest(n,M,Z=>{v&&setTimeout(()=>{v(Z.s,Z.d)},Math.floor(0))})}put(n,r,h,v){this.putInternal("p",n,r,h,v)}merge(n,r,h,v){this.putInternal("m",n,r,h,v)}putInternal(n,r,h,v,M){this.initConnection_();const Z={p:r,d:h};void 0!==M&&(Z.h=M),this.outstandingPuts_.push({action:n,request:Z,onComplete:v}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+r)}
1sendPut_(n){const r=this.outstandingPuts_[n].action,h=this.outstandingPuts_[n].request,v=this.outstandingPuts_[n].onComplete;this.outstandingPuts_[n].queued=this.connected_,this.sendRequest(r,h,M=>{this.log_(r+" response",M),delete this.outstandingPuts_[n],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),v&&v(M.s,M.d)})}reportStats(n){if(this.connected_){const r={c:n};this.log_("reportStats",r),this.sendRequest("s",r,h=>{"ok"!==h.s&&this.log_("reportStats","Error sending stats: "+h.d)})}}onDataMessage_(n){if("r"in n){this.log_("from server: "+(0,cn.Wl)(n));const r=n.r,h=this.requestCBHash_[r];h&&(delete this.requestCBHash_[r],h(n.b))}else{if("error"in n)throw"A server-side error has occurred: "+n.error;"a"in n&&this.onDataPush_(n.a,n.b)}}onDataPush_(n,r){this.log_("handleServerMessage",n,r),"d"===n?this.onDataUpdate_(r.p,r.d,!1,r.t):"m"===n?this.onDataUpdate_(r.p,r.d,!0,r.t):"c"===n?this.onListenRevoked_(r.p,r.q):"ac"===n?this.onAuthRevoked_(r.s,r.d):"apc"===n?this.onAppCheckRevoked_(r.s,r.d):"sd"===n?this.onSecurityDebugPacket_(r):Rc("Unrecognized action received from server: "+(0,cn.Wl)(n)+"\nAre you using the latest client?")}onReady_(n,r){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(n),this.lastSessionId=r,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(n){(0,cn.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(n))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(n){n&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=Qg,this.realtime_||this.scheduleConnect_(0)),this.visible_=n}onOnline_(n){n?(this.log_("Browser went online."),this.reconnectDelay_=Qg,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=Qg),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const n=(new Date).getTime()-this.lastConnectionAttemptTime_;let r=Math.max(0,this.reconnectDelay_-n);r=Math.random()*r,this.log_("Trying to reconnect in "+r+"ms"),this.scheduleConnect_(r),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var n=this;return(0,wo.Z)(function*(){if(n.shouldReconnect_()){n.log_("Making a connection attempt"),n.lastConnectionAttemptTime_=(new Date).getTime(),n.lastConnectionEstablishedTime_=null;const r=n.onDataMessage_.bind(n),h=n.onReady_.bind(n),v=n.onRealtimeDisconnect_.bind(n),M=n.id+":"+c.nextConnectionId_++,Z=n.lastSessionId;let X=!1,be=null;const gt=function(){be?be.close():(X=!0,v())};n.realtime_={close:gt,sendRequest:function(Cn){(0,cn.hu)(be,"sendRequest call when we're not connected not allowed."),be.sendRequest(Cn)}};const Yt=n.forceTokenRefresh_;n.forceTokenRefresh_=!1;try{const[Cn,Tn]=yield Promise.all([n.authTokenProvider_.getToken(Yt),n.appCheckTokenProvider_.getToken(Yt)]);X?Os("getToken() completed but was canceled"):(Os("getToken() completed. Creating connection."),n.authToken_=Cn&&Cn.accessToken,n.appCheckToken_=Tn&&Tn.token,be=new Yg(M,n.repoInfo_,n.applicationId_,n.appCheckToken_,n.authToken_,r,h,v,oi=>{Us(oi+" ("+n.repoInfo_.toString()+")"),n.interrupt("server_kill")},Z))}catch(Cn){n.log_("Failed to get token: "+Cn),X||(n.repoInfo_.nodeAdmin&&Us(Cn),gt())}}})()}interrupt(n){Os("Interrupting connection for reason: "+n),this.interruptReasons_[n]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(n){Os("Resuming connection for reason: "+n),delete this.interruptReasons_[n],(0,cn.xb)(this.interruptReasons_)&&(this.reconnectDelay_=Qg,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(n){const r=n-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:r})}cancelSentTransactions_(){for(let n=0;n<this.outstandingPuts_.length;n++){const r=this.outstandingPuts_[n];r&&"h"in r.request&&r.queued&&(r.onComplete&&r.onComplete("disconnect"),delete this.outstandingPuts_[n],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(n,r){let h;h=r?r.map(M=>mu(M)).join("$"):"default";const v=this.removeListen_(n,h);v&&v.onComplete&&v.onComplete("permission_denied")}removeListen_(n,r){const h=new ro(n).toString();let v;if(this.listens.has(h)){const M=this.listens.get(h);v=M.get(r),M.delete(r),0===M.size&&this.listens.delete(h)}else v=void 0;return v}onAuthRevoked_(n,r){Os("Auth token revoked: "+n+"/"+r),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===n||"permission_denied"===n)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(n,r){Os("App check token revoked: "+n+"/"+r),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===n||"permission_denied"===n)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(n){this.securityDebugCallback_?this.securityDebugCallback_(n):"msg"in n&&console.log("FIREBASE: "+n.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const n of this.listens.values())for(const r of n.values())this.sendListen_(r);for(let n=0;n<this.outstandingPuts_.length;n++)this.outstandingPuts_[n]&&this.sendPut_(n);for(;this.onDisconnectRequestQueue_.length;){const n=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(n.action,n.pathString,n.data,n.onComplete)}for(let n=0;n<this.outstandingGets_.length;n++)this.outstandingGets_[n]&&this.sendGet_(n)}sendConnectStats_(){const n={};let r="js";(0,cn.Yr)()&&(r=this.repoInfo_.nodeAdmin?"admin_node":"node"),n["sdk."+r+"."+g_.replace(/\./g,"-")]=1,(0,cn.uI)()?n["framework.cordova"]=1:(0,cn.b$)()&&(n["framework.reactnative"]=1),this.reportStats(n)}shouldReconnect_(){const n=Jf.getInstance().currentlyOnline();return(0,cn.xb)(this.interruptReasons_)&&n}}return c.nextPersistentConnectionId_=0,c.nextConnectionId_=0,c})();class Ir{constructor(o,n){this.name=o,this.node=n}static Wrap(o,n){return new Ir(o,n)}}class Eu{getCompare(){return this.compare.bind(this)}indexedValueChanged(o,n){const r=new Ir(rc,o),h=new Ir(rc,n);return 0!==this.compare(r,h)}
vendor: 4,034 bytes, line 1
1minPost(){return Ir.MIN}}class S_ extends Eu{static get __EMPTY_NODE(){return tp}static set __EMPTY_NODE(o){tp=o}compare(o,n){return il(o.name,n.name)}isDefinedOn(o){throw(0,cn.g5)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(o,n){return!1}minPost(){return Ir.MIN}maxPost(){return new Ir(Ys,tp)}makePost(o,n){return(0,cn.hu)("string"==typeof o,"KeyIndex indexValue must always be a string."),new Ir(o,tp)}toString(){return".key"}}const gl=new S_;class Ah{constructor(o,n,r,h,v=null){this.isReverse_=h,this.resultGenerator_=v,this.nodeStack_=[];let M=1;for(;!o.isEmpty();)if(M=n?r(o.key,n):1,h&&(M*=-1),M<0)o=this.isReverse_?o.left:o.right;else{if(0===M){this.nodeStack_.push(o);break}this.nodeStack_.push(o),o=this.isReverse_?o.right:o.left}}getNext(){if(0===this.nodeStack_.length)return null;let n,o=this.nodeStack_.pop();if(n=this.resultGenerator_?this.resultGenerator_(o.key,o.value):{key:o.key,value:o.value},this.isReverse_)for(o=o.left;!o.isEmpty();)this.nodeStack_.push(o),o=o.right;else for(o=o.right;!o.isEmpty();)this.nodeStack_.push(o),o=o.left;return n}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const o=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(o.key,o.value):{key:o.key,value:o.value}}}let Ih,ml=(()=>{class c{constructor(n,r,h,v,M){this.key=n,this.value=r,this.color=h??c.RED,this.left=v??Sa.EMPTY_NODE,this.right=M??Sa.EMPTY_NODE}copy(n,r,h,v,M){return new c(n??this.key,r??this.value,h??this.color,v??this.left,M??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||!!n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,r,h){let v=this;const M=h(n,v.key);return v=M<0?v.copy(null,null,null,v.left.insert(n,r,h),null):0===M?v.copy(null,r,null,null,null):v.copy(null,null,null,null,v.right.insert(n,r,h)),v.fixUp_()}removeMin_(){if(this.left.isEmpty())return Sa.EMPTY_NODE;let n=this;return!n.left.isRed_()&&!n.left.left.isRed_()&&(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.removeMin_(),null),n.fixUp_()}remove(n,r){let h,v;if(h=this,r(n,h.key)<0)!h.left.isEmpty()&&!h.left.isRed_()&&!h.left.left.isRed_()&&(h=h.moveRedLeft_()),h=h.copy(null,null,null,h.left.remove(n,r),null);else{if(h.left.isRed_()&&(h=h.rotateRight_()),!h.right.isEmpty()&&!h.right.isRed_()&&!h.right.left.isRed_()&&(h=h.moveRedRight_()),0===r(n,h.key)){if(h.right.isEmpty())return Sa.EMPTY_NODE;v=h.right.min_(),h=h.copy(v.key,v.value,null,null,h.right.removeMin_())}h=h.copy(null,null,null,null,h.right.remove(n,r))}return h.fixUp_()}isRed_(){return this.color}fixUp_(){let n=this;return n.right.isRed_()&&!n.left.isRed_()&&(n=n.rotateLeft_()),n.left.isRed_()&&n.left.left.isRed_()&&(n=n.rotateRight_()),n.left.isRed_()&&n.right.isRed_()&&(n=n.colorFlip_()),n}moveRedLeft_(){let n=this.colorFlip_();return n.right.left.isRed_()&&(n=n.copy(null,null,null,null,n.right.rotateRight_()),n=n.rotateLeft_(),n=n.colorFlip_()),n}moveRedRight_(){let n=this.colorFlip_();return n.left.left.isRed_()&&(n=n.rotateRight_(),n=n.colorFlip_()),n}rotateLeft_(){const n=this.copy(null,null,c.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight_(){const n=this.copy(null,null,c.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip_(){const n=this.left.copy(null,null,!this.left.color,null,null),r=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,r)}checkMaxDepth_(){const n=this.check_();return Math.pow(2,n)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
vendor: 4,536 bytes, line 1
1if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const n=this.left.check_();if(n!==this.right.check_())throw new Error("Black depths differ");return n+(this.isRed_()?0:1)}}return c.RED=!0,c.BLACK=!1,c})();class Sa{constructor(o,n=Sa.EMPTY_NODE){this.comparator_=o,this.root_=n}insert(o,n){return new Sa(this.comparator_,this.root_.insert(o,n,this.comparator_).copy(null,null,ml.BLACK,null,null))}remove(o){return new Sa(this.comparator_,this.root_.remove(o,this.comparator_).copy(null,null,ml.BLACK,null,null))}get(o){let n,r=this.root_;for(;!r.isEmpty();){if(n=this.comparator_(o,r.key),0===n)return r.value;n<0?r=r.left:n>0&&(r=r.right)}return null}getPredecessorKey(o){let n,r=this.root_,h=null;for(;!r.isEmpty();){if(n=this.comparator_(o,r.key),0===n){if(r.left.isEmpty())return h?h.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}n<0?r=r.left:n>0&&(h=r,r=r.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(o){return this.root_.inorderTraversal(o)}reverseTraversal(o){return this.root_.reverseTraversal(o)}getIterator(o){return new Ah(this.root_,null,this.comparator_,!1,o)}getIteratorFrom(o,n){return new Ah(this.root_,o,this.comparator_,!1,n)}getReverseIteratorFrom(o,n){return new Ah(this.root_,o,this.comparator_,!0,n)}getReverseIterator(o){return new Ah(this.root_,null,this.comparator_,!0,o)}}function wv(c,o){return il(c.name,o.name)}function np(c,o){return il(c,o)}Sa.EMPTY_NODE=new class xv{copy(o,n,r,h,v){return this}insert(o,n,r){return new ml(o,n,null)}remove(o,n){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(o){return!1}reverseTraversal(o){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const ty=function(c){return"number"==typeof c?"number:"+_u(c):"string:"+c},ny=function(c){if(c.isLeafNode()){const o=c.val();(0,cn.hu)("string"==typeof o||"number"==typeof o||"object"==typeof o&&(0,cn.r3)(o,".sv"),"Priority must be a string or number.")}else(0,cn.hu)(c===Ih||c.isEmpty(),"priority of unexpected type.");(0,cn.hu)(c===Ih||c.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Mv,iy,Tu,ip=(()=>{class c{constructor(n,r=c.__childrenNodeConstructor.EMPTY_NODE){this.value_=n,this.priorityNode_=r,this.lazyHash_=null,(0,cn.hu)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),ny(this.priorityNode_)}static set __childrenNodeConstructor(n){Mv=n}static get __childrenNodeConstructor(){return Mv}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(n){return new c(this.value_,n)}getImmediateChild(n){return".priority"===n?this.priorityNode_:c.__childrenNodeConstructor.EMPTY_NODE}getChild(n){return Er(n)?this:".priority"===Ar(n)?this.priorityNode_:c.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(n,r){return null}updateImmediateChild(n,r){return".priority"===n?this.updatePriority(r):r.isEmpty()&&".priority"!==n?this:c.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(n,r).updatePriority(this.priorityNode_)}updateChild(n,r){const h=Ar(n);return null===h?r:r.isEmpty()&&".priority"!==h?this:((0,cn.hu)(".priority"!==h||1===oc(n),".priority must be the last token in a path"),this.updateImmediateChild(h,c.__childrenNodeConstructor.EMPTY_NODE.updateChild(Fr(n),r)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(n,r){return!1}val(n){return n&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let n="";this.priorityNode_.isEmpty()||(n+="priority:"+ty(this.priorityNode_.val())+":");const r=typeof this.value_;n+=r+":",n+="number"===r?_u(this.value_):this.value_,this.lazyHash_=ov(n)}return this.lazyHash_}getValue(){return this.value_}compareTo(n){return n===c.__childrenNodeConstructor.EMPTY_NODE?1:n instanceof c.__childrenNodeConstructor?-1:((0,cn.hu)(n.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(n))}compareToLeafNode_(n){const r=typeof n.value_,h=typeof this.value_,v=c.VALUE_TYPE_ORDER.indexOf(r),M=c.VALUE_TYPE_ORDER.indexOf(h);return(0,cn.hu)(v>=0,"Unknown leaf type: "+r),(0,cn.hu)(M>=0,"Unknown leaf type: "+h),v===M?"object"===h?0:this.value_<n.value_?-1:this.value_===n.value_?0:1:M-v}withIndex(){return this}isIndexed(){return!0}
1equals(n){if(n===this)return!0;if(n.isLeafNode()){const r=n;return this.value_===r.value_&&this.priorityNode_.equals(r.priorityNode_)}return!1}}return c.VALUE_TYPE_ORDER=["object","boolean","number","string"],c})();const Zo=new class Md extends Eu{compare(o,n){const r=o.node.getPriority(),h=n.node.getPriority(),v=r.compareTo(h);return 0===v?il(o.name,n.name):v}isDefinedOn(o){return!o.getPriority().isEmpty()}indexedValueChanged(o,n){return!o.getPriority().equals(n.getPriority())}minPost(){return Ir.MIN}maxPost(){return new Ir(Ys,new ip("[PRIORITY-POST]",Tu))}makePost(o,n){const r=iy(o);return new Ir(n,new ip("[PRIORITY-POST]",r))}toString(){return".priority"}},Ev=Math.log(2);class Tv{constructor(o){this.count=parseInt(Math.log(o+1)/Ev,10),this.current_=this.count-1;const h=(v=>parseInt(Array(this.count+1).join("1"),2))();this.bits_=o+1&h}nextBitIsOne(){const o=!(this.bits_&1<<this.current_);return this.current_--,o}}const _l=function(c,o,n,r){c.sort(o);const h=function(X,be){const gt=be-X;let It,Yt;if(0===gt)return null;if(1===gt)return It=c[X],Yt=n?n(It):It,new ml(Yt,It.node,ml.BLACK,null,null);{const Cn=parseInt(gt/2,10)+X,Tn=h(X,Cn),oi=h(Cn+1,be);return It=c[Cn],Yt=n?n(It):It,new ml(Yt,It.node,ml.BLACK,Tn,oi)}},Z=function(X){let be=null,gt=null,It=c.length;const Yt=function(Tn,oi){const Di=It-Tn,qr=It;It-=Tn;const bo=h(Di+1,qr),Qs=c[Di],da=n?n(Qs):Qs;Cn(new ml(da,Qs.node,oi,null,bo))},Cn=function(Tn){be?(be.left=Tn,be=Tn):(gt=Tn,be=Tn)};for(let Tn=0;Tn<X.count;++Tn){const oi=X.nextBitIsOne(),Di=Math.pow(2,X.count-(Tn+1));oi?Yt(Di,ml.BLACK):(Yt(Di,ml.BLACK),Yt(Di,ml.RED))}return gt}(new Tv(c.length));return new Sa(r||o,Z)};let tm;const Ed={};class sc{constructor(o,n){this.indexes_=o,this.indexSet_=n}static get Default(){return(0,cn.hu)(Ed&&Zo,"ChildrenNode.ts has not been loaded"),tm=tm||new sc({".priority":Ed},{".priority":Zo}),tm}get(o){const n=(0,cn.DV)(this.indexes_,o);if(!n)throw new Error("No index defined for "+o);return n instanceof Sa?n:null}hasIndex(o){return(0,cn.r3)(this.indexSet_,o.toString())}addIndex(o,n){(0,cn.hu)(o!==gl,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let h=!1;const v=n.getIterator(Ir.Wrap);let Z,M=v.getNext();for(;M;)h=h||o.isDefinedOn(M.node),r.push(M),M=v.getNext();Z=h?_l(r,o.getCompare()):Ed;const X=o.toString(),be=Object.assign({},this.indexSet_);be[X]=o;const gt=Object.assign({},this.indexes_);return gt[X]=Z,new sc(gt,be)}addToIndexes(o,n){const r=(0,cn.UI)(this.indexes_,(h,v)=>{const M=(0,cn.DV)(this.indexSet_,v);if((0,cn.hu)(M,"Missing index implementation for "+v),h===Ed){if(M.isDefinedOn(o.node)){const Z=[],X=n.getIterator(Ir.Wrap);let be=X.getNext();for(;be;)be.name!==o.name&&Z.push(be),be=X.getNext();return Z.push(o),_l(Z,M.getCompare())}return Ed}{const Z=n.get(o.name);let X=h;return Z&&(X=X.remove(new Ir(o.name,Z))),X.insert(o,o.node)}});return new sc(r,this.indexSet_)}removeFromIndexes(o,n){const r=(0,cn.UI)(this.indexes_,h=>{if(h===Ed)return h;{const v=n.get(o.name);return v?h.remove(new Ir(o.name,v)):h}});return new sc(r,this.indexSet_)}}let Sh,Cr=(()=>{class c{constructor(n,r,h){this.children_=n,this.priorityNode_=r,this.indexMap_=h,this.lazyHash_=null,this.priorityNode_&&ny(this.priorityNode_),this.children_.isEmpty()&&(0,cn.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return Sh||(Sh=new c(new Sa(np),null,sc.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||Sh}updatePriority(n){return this.children_.isEmpty()?this:new c(this.children_,n,this.indexMap_)}getImmediateChild(n){if(".priority"===n)return this.getPriority();{const r=this.children_.get(n);return null===r?Sh:r}}getChild(n){const r=Ar(n);return null===r?this:this.getImmediateChild(r).getChild(Fr(n))}hasChild(n){return null!==this.children_.get(n)}updateImmediateChild(n,r){if((0,cn.hu)(r,"We should always be passing snapshot nodes"),".priority"===n)return this.updatePriority(r);{const h=new Ir(n,r);let v,M;r.isEmpty()?(v=this.children_.remove(n),M=this.indexMap_.removeFromIndexes(h,this.children_)):(v=this.children_.insert(n,r),M=this.indexMap_.addToIndexes(h,this.children_));const Z=v.isEmpty()?Sh:this.priorityNode_;return new c(v,Z,M)}}updateChild(n,r){const h=Ar(n);if(null===h)return r;{(0,cn.hu)(".priority"!==Ar(n)||1===oc(n),".priority must be the last token in a path");const v=this.getImmediateChild(h).updateChild(Fr(n),r);return this.updateImmediateChild(h,v)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(n){if(this.isEmpty())return null;const r={};let h=0,v=0,M=!0;if(this.forEachChild(Zo,(Z,X)=>{r[Z]=X.val(n),h++,M&&c.INTEGER_REGEXP_.test(Z)?v=Math.max(v,Number(Z)):M=!1}),!n&&M&&v<2*h){const Z=[];for(const X in r)Z[X]=r[X];return Z}
1return n&&!this.getPriority().isEmpty()&&(r[".priority"]=this.getPriority().val()),r}hash(){if(null===this.lazyHash_){let n="";this.getPriority().isEmpty()||(n+="priority:"+ty(this.getPriority().val())+":"),this.forEachChild(Zo,(r,h)=>{const v=h.hash();""!==v&&(n+=":"+r+":"+v)}),this.lazyHash_=""===n?"":ov(n)}return this.lazyHash_}getPredecessorChildName(n,r,h){const v=this.resolveIndex_(h);if(v){const M=v.getPredecessorKey(new Ir(n,r));return M?M.name:null}return this.children_.getPredecessorKey(n)}getFirstChildName(n){const r=this.resolveIndex_(n);if(r){const h=r.minKey();return h&&h.name}return this.children_.minKey()}getFirstChild(n){const r=this.getFirstChildName(n);return r?new Ir(r,this.children_.get(r)):null}getLastChildName(n){const r=this.resolveIndex_(n);if(r){const h=r.maxKey();return h&&h.name}return this.children_.maxKey()}getLastChild(n){const r=this.getLastChildName(n);return r?new Ir(r,this.children_.get(r)):null}forEachChild(n,r){const h=this.resolveIndex_(n);return h?h.inorderTraversal(v=>r(v.name,v.node)):this.children_.inorderTraversal(r)}getIterator(n){return this.getIteratorFrom(n.minPost(),n)}getIteratorFrom(n,r){const h=this.resolveIndex_(r);if(h)return h.getIteratorFrom(n,v=>v);{const v=this.children_.getIteratorFrom(n.name,Ir.Wrap);let M=v.peek();for(;null!=M&&r.compare(M,n)<0;)v.getNext(),M=v.peek();return v}}getReverseIterator(n){return this.getReverseIteratorFrom(n.maxPost(),n)}getReverseIteratorFrom(n,r){const h=this.resolveIndex_(r);if(h)return h.getReverseIteratorFrom(n,v=>v);{const v=this.children_.getReverseIteratorFrom(n.name,Ir.Wrap);let M=v.peek();for(;null!=M&&r.compare(M,n)>0;)v.getNext(),M=v.peek();return v}}compareTo(n){return this.isEmpty()?n.isEmpty()?0:-1:n.isLeafNode()||n.isEmpty()?1:n===Td?-1:0}withIndex(n){if(n===gl||this.indexMap_.hasIndex(n))return this;{const r=this.indexMap_.addIndex(n,this.children_);return new c(this.children_,this.priorityNode_,r)}}isIndexed(n){return n===gl||this.indexMap_.hasIndex(n)}equals(n){if(n===this)return!0;if(n.isLeafNode())return!1;{const r=n;if(this.getPriority().equals(r.getPriority())){if(this.children_.count()===r.children_.count()){const h=this.getIterator(Zo),v=r.getIterator(Zo);let M=h.getNext(),Z=v.getNext();for(;M&&Z;){if(M.name!==Z.name||!M.node.equals(Z.node))return!1;M=h.getNext(),Z=v.getNext()}return null===M&&null===Z}return!1}return!1}}resolveIndex_(n){return n===gl?null:this.indexMap_.get(n.toString())}}return c.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,c})();const Td=new class Ov extends Cr{constructor(){super(new Sa(np),Cr.EMPTY_NODE,sc.Default)}compareTo(o){return o===this?0:1}equals(o){return o===this}getPriority(){return this}getImmediateChild(o){return Cr.EMPTY_NODE}isEmpty(){return!1}};function _o(c,o=null){if(null===c)return Cr.EMPTY_NODE;if("object"==typeof c&&".priority"in c&&(o=c[".priority"]),(0,cn.hu)(null===o||"string"==typeof o||"number"==typeof o||"object"==typeof o&&".sv"in o,"Invalid priority type found: "+typeof o),"object"==typeof c&&".value"in c&&null!==c[".value"]&&(c=c[".value"]),"object"!=typeof c||".sv"in c)return new ip(c,_o(o));if(c instanceof Array){let n=Cr.EMPTY_NODE;return as(c,(r,h)=>{if((0,cn.r3)(c,r)&&"."!==r.substring(0,1)){const v=_o(h);(v.isLeafNode()||!v.isEmpty())&&(n=n.updateImmediateChild(r,v))}}),n.updatePriority(_o(o))}{const n=[];let r=!1;if(as(c,(M,Z)=>{if("."!==M.substring(0,1)){const X=_o(Z);X.isEmpty()||(r=r||!X.getPriority().isEmpty(),n.push(new Ir(M,X)))}}),0===n.length)return Cr.EMPTY_NODE;const v=_l(n,wv,M=>M.name,np);if(r){const M=_l(n,Zo.getCompare());return new Cr(v,_o(o),new sc({".priority":M},{".priority":Zo}))}return new Cr(v,_o(o),sc.Default)}}Object.defineProperties(Ir,{MIN:{value:new Ir(rc,Cr.EMPTY_NODE)},MAX:{value:new Ir(Ys,Td)}}),S_.__EMPTY_NODE=Cr.EMPTY_NODE,ip.__childrenNodeConstructor=Cr,function ey(c){Ih=c}(Td),function rp(c){Tu=c}(Td),function wd(c){iy=c}(_o);class k_ extends Eu{constructor(o){super(),this.indexPath_=o,(0,cn.hu)(!Er(o)&&".priority"!==Ar(o),"Can't create PathIndex with empty path or .priority key")}extractChild(o){return o.getChild(this.indexPath_)}isDefinedOn(o){return!o.getChild(this.indexPath_).isEmpty()}compare(o,n){const r=this.extractChild(o.node),h=this.extractChild(n.node),v=r.compareTo(h);return 0===v?il(o.name,n.name):v}makePost(o,n){const r=_o(o),h=Cr.EMPTY_NODE.updateChild(this.indexPath_,r);return new Ir(n,h)}maxPost(){const o=Cr.EMPTY_NODE.updateChild(this.indexPath_,Td);return new Ir(Ys,o)}toString(){return Uc(this.indexPath_,0).join("/")}}
1const ol=new class ry extends Eu{compare(o,n){const r=o.node.compareTo(n.node);return 0===r?il(o.name,n.name):r}isDefinedOn(o){return!0}indexedValueChanged(o,n){return!o.equals(n)}minPost(){return Ir.MIN}maxPost(){return Ir.MAX}makePost(o,n){const r=_o(o);return new Ir(n,r)}toString(){return".value"}};function kh(c,o,n){return{type:"child_changed",snapshotNode:o,childName:c,oldSnap:n}}class Iv{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Zo}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,cn.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,cn.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:rc}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,cn.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,cn.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:Ys}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,cn.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===Zo}copy(){const o=new Iv;return o.limitSet_=this.limitSet_,o.limit_=this.limit_,o.startSet_=this.startSet_,o.startAfterSet_=this.startAfterSet_,o.indexStartValue_=this.indexStartValue_,o.startNameSet_=this.startNameSet_,o.indexStartName_=this.indexStartName_,o.endSet_=this.endSet_,o.endBeforeSet_=this.endBeforeSet_,o.indexEndValue_=this.indexEndValue_,o.endNameSet_=this.endNameSet_,o.indexEndName_=this.indexEndName_,o.index_=this.index_,o.viewFrom_=this.viewFrom_,o}}function ac(c){const o={};if(c.isDefault())return o;let n;if(c.index_===Zo?n="$priority":c.index_===ol?n="$value":c.index_===gl?n="$key":((0,cn.hu)(c.index_ instanceof k_,"Unrecognized index type!"),n=c.index_.toString()),o.orderBy=(0,cn.Wl)(n),c.startSet_){const r=c.startAfterSet_?"startAfter":"startAt";o[r]=(0,cn.Wl)(c.indexStartValue_),c.startNameSet_&&(o[r]+=","+(0,cn.Wl)(c.indexStartName_))}if(c.endSet_){const r=c.endBeforeSet_?"endBefore":"endAt";o[r]=(0,cn.Wl)(c.indexEndValue_),c.endNameSet_&&(o[r]+=","+(0,cn.Wl)(c.indexEndName_))}return c.limitSet_&&(c.isViewFromLeft()?o.limitToFirst=c.limit_:o.limitToLast=c.limit_),o}function Sv(c){const o={};if(c.startSet_&&(o.sp=c.indexStartValue_,c.startNameSet_&&(o.sn=c.indexStartName_),o.sin=!c.startAfterSet_),c.endSet_&&(o.ep=c.indexEndValue_,c.endNameSet_&&(o.en=c.indexEndName_),o.ein=!c.endBeforeSet_),c.limitSet_){o.l=c.limit_;let n=c.viewFrom_;""===n&&(n=c.isViewFromLeft()?"l":"r"),o.vf=n}return c.index_!==Zo&&(o.i=c.index_.toString()),o}class sp extends O_{constructor(o,n,r,h){super(),this.repoInfo_=o,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=h,this.log_=gu("p:rest:"),this.listens_={}}reportStats(o){throw new Error("Method not implemented.")}static getListenId_(o,n){return void 0!==n?"tag$"+n:((0,cn.hu)(o._queryParams.isDefault(),"should have a tag if it's not a default query."),o._path.toString())}listen(o,n,r,h){const v=o._path.toString();this.log_("Listen called for "+v+" "+o._queryIdentifier);const M=sp.getListenId_(o,r),Z={};this.listens_[M]=Z;const X=ac(o._queryParams);this.restRequest_(v+".json",X,(be,gt)=>{let It=gt;if(404===be&&(It=null,be=null),null===be&&this.onDataUpdate_(v,It,!1,r),(0,cn.DV)(this.listens_,M)===Z){let Yt;Yt=be?401===be?"permission_denied":"rest_error:"+be:"ok",h(Yt,null)}})}unlisten(o,n){const r=sp.getListenId_(o,n);delete this.listens_[r]}get(o){const n=ac(o._queryParams),r=o._path.toString(),h=new cn.BH;return this.restRequest_(r+".json",n,(v,M)=>{let Z=M;404===v&&(Z=null,v=null),null===v?(this.onDataUpdate_(r,Z,!1,null),h.resolve(Z)):h.reject(new Error(Z))}),h.promise}refreshAuthToken(o){}restRequest_(o,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([h,v])=>{h&&h.accessToken&&(n.auth=h.accessToken),v&&v.token&&(n.ac=v.token);const M=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+o+"?ns="+this.repoInfo_.namespace+(0,cn.xO)(n);this.log_("Sending REST request for "+M);const Z=new XMLHttpRequest;Z.onreadystatechange=()=>{if(r&&4===Z.readyState){this.log_("REST Response for "+M+" received. status:",Z.status,"response:",Z.responseText);let X=null;if(Z.status>=200&&Z.status<300){try{X=(0,cn.cI)(Z.responseText)}catch{Us("Failed to parse JSON response for "+M+": "+Z.responseText)}r(null,X)}else 401!==Z.status&&404!==Z.status&&Us("Got unsuccessful REST response for "+M+" Status: "+Z.status),r(Z.status);r=null}},Z.open("GET",M,!0),Z.send()})}}class kv{constructor(){this.rootNode_=Cr.EMPTY_NODE}getNode(o){return this.rootNode_.getChild(o)}updateSnapshot(o,n){this.rootNode_=this.rootNode_.updateChild(o,n)}}function ap(){return{value:null,children:new Map}}
1function Pd(c,o,n){if(Er(o))c.value=n,c.children.clear();else if(null!==c.value)c.value=c.value.updateChild(o,n);else{const r=Ar(o);c.children.has(r)||c.children.set(r,ap()),Pd(c.children.get(r),o=Fr(o),n)}}function F_(c,o,n){null!==c.value?n(o,c.value):function S1(c,o){c.children.forEach((n,r)=>{o(r,n)})}(c,(r,h)=>{F_(h,new ro(o.toString()+"/"+r),n)})}class rm{constructor(o){this.collection_=o,this.last_=null}get(){const o=this.collection_.get(),n=Object.assign({},o);return this.last_&&as(this.last_,(r,h)=>{n[r]=n[r]-h}),this.last_=o,n}}class i{constructor(o,n){this.server_=n,this.statsToReport_={},this.statsListener_=new rm(o);const r=1e4+2e4*Math.random();bd(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const o=this.statsListener_.get(),n={};let r=!1;as(o,(h,v)=>{v>0&&(0,cn.r3)(this.statsToReport_,h)&&(n[h]=v,r=!0)}),r&&this.server_.reportStats(n),bd(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var u=(()=>{return(c=u||(u={}))[c.OVERWRITE=0]="OVERWRITE",c[c.MERGE=1]="MERGE",c[c.ACK_USER_WRITE=2]="ACK_USER_WRITE",c[c.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",u;var c})();function C(c){return{fromUser:!1,fromServer:!0,queryId:c,tagged:!0}}class F{constructor(o,n,r){this.path=o,this.affectedTree=n,this.revert=r,this.type=u.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(o){if(Er(this.path)){if(null!=this.affectedTree.value)return(0,cn.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new ro(o));return new F(ar(),n,this.revert)}}return(0,cn.hu)(Ar(this.path)===o,"operationForChild called for unrelated child."),new F(Fr(this.path),this.affectedTree,this.revert)}}class re{constructor(o,n,r){this.source=o,this.path=n,this.snap=r,this.type=u.OVERWRITE}operationForChild(o){return Er(this.path)?new re(this.source,ar(),this.snap.getImmediateChild(o)):new re(this.source,Fr(this.path),this.snap)}}class Be{constructor(o,n,r){this.source=o,this.path=n,this.children=r,this.type=u.MERGE}operationForChild(o){if(Er(this.path)){const n=this.children.subtree(new ro(o));return n.isEmpty()?null:n.value?new re(this.source,ar(),n.value):new Be(this.source,ar(),n)}return(0,cn.hu)(Ar(this.path)===o,"Can't get a merge for a child not on the path of the operation"),new Be(this.source,Fr(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class _t{constructor(o,n,r){this.node_=o,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(o){if(Er(o))return this.isFullyInitialized()&&!this.filtered_;const n=Ar(o);return this.isCompleteForChild(n)}isCompleteForChild(o){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(o)}getNode(){return this.node_}}function Bn(c,o,n,r,h,v){const M=r.filter(Z=>Z.type===n);M.sort((Z,X)=>function wi(c,o,n){if(null==o.childName||null==n.childName)throw(0,cn.g5)("Should only compare child_ events.");const r=new Ir(o.childName,o.snapshotNode),h=new Ir(n.childName,n.snapshotNode);return c.index_.compare(r,h)}(c,Z,X)),M.forEach(Z=>{const X=function bi(c,o,n){return"value"===o.type||"child_removed"===o.type||(o.prevName=n.getPredecessorChildName(o.childName,o.snapshotNode,c.index_)),o}(c,Z,v);h.forEach(be=>{be.respondsTo(Z.type)&&o.push(be.createEvent(X,c.query_))})})}function _r(c,o){return{eventCache:c,serverCache:o}}function Lr(c,o,n,r){return _r(new _t(o,n,r),c.serverCache)}function kr(c,o,n,r){return _r(c.eventCache,new _t(o,n,r))}function Ds(c){return c.eventCache.isFullyInitialized()?c.eventCache.getNode():null}function Go(c){return c.serverCache.isFullyInitialized()?c.serverCache.getNode():null}let Bo;class Gr{constructor(o,n=(()=>(Bo||(Bo=new Sa(ca)),Bo))()){this.value=o,this.children=n}static fromObject(o){let n=new Gr(null);return as(o,(r,h)=>{n=n.set(new ro(r),h)}),n}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(o,n){if(null!=this.value&&n(this.value))return{path:ar(),value:this.value};if(Er(o))return null;{const r=Ar(o),h=this.children.get(r);if(null!==h){const v=h.findRootMostMatchingPathAndValue(Fr(o),n);return null!=v?{path:$o(new ro(r),v.path),value:v.value}:null}return null}}findRootMostValueAndPath(o){return this.findRootMostMatchingPathAndValue(o,()=>!0)}subtree(o){if(Er(o))return this;{const n=Ar(o),r=this.children.get(n);return null!==r?r.subtree(Fr(o)):new Gr(null)}}set(o,n){if(Er(o))return new Gr(n,this.children);{const r=Ar(o),v=(this.children.get(r)||new Gr(null)).set(Fr(o),n),M=this.children.insert(r,v);return new Gr(this.value,M)}}remove(o){if(Er(o))return this.children.isEmpty()?new Gr(null):new Gr(null,this.children);{const n=Ar(o),r=this.children.get(n);if(r){const h=r.remove(Fr(o));let v;return v=h.isEmpty()?this.children.remove(n):this.children.insert(n,h),null===this.value&&v.isEmpty()?new Gr(null):new Gr(this.value,v)}return this}}get(o){if(Er(o))return this.value;{const n=Ar(o),r=this.children.get(n);return r?r.get(Fr(o)):null}}setTree(o,n){if(Er(o))return n;{const r=Ar(o),v=(this.children.get(r)||new Gr(null)).setTree(Fr(o),n);let M;return M=v.isEmpty()?this.children.remove(r):this.children.insert(r,v),new Gr(this.value,M)}}fold(o){return this.fold_(ar(),o)}fold_(o,n){const r={};return this.children.inorderTraversal((h,v)=>{r[h]=v.fold_($o(o,h),n)}),n(o,this.value,r)}findOnPath(o,n){return this.findOnPath_(o,ar(),n)}findOnPath_(o,n,r){const h=!!this.value&&r(n,this.value);if(h)return h;if(Er(o))return null;{const v=Ar(o),M=this.children.get(v);return M?M.findOnPath_(Fr(o),$o(n,v),r):null}}foreachOnPath(o,n){return this.foreachOnPath_(o,ar(),n)}foreachOnPath_(o,n,r){if(Er(o))return this;{this.value&&r(n,this.value);const h=Ar(o),v=this.children.get(h);return v?v.foreachOnPath_(Fr(o),$o(n,h),r):new Gr(null)}}foreach(o){this.foreach_(ar(),o)}foreach_(o,n){this.children.inorderTraversal((r,h)=>{h.foreach_($o(o,r),n)}),this.value&&n(o,this.value)}foreachChild(o){this.children.inorderTraversal((n,r)=>{r.value&&o(n,r.value)})}}class vl{constructor(o){this.writeTree_=o}static empty(){return new vl(new Gr(null))}}
1function U_(c,o,n){if(Er(o))return new vl(new Gr(n));{const r=c.writeTree_.findRootMostValueAndPath(o);if(null!=r){const h=r.path;let v=r.value;const M=Ia(h,o);return v=v.updateChild(M,n),new vl(c.writeTree_.set(h,v))}{const h=new Gr(n),v=c.writeTree_.setTree(o,h);return new vl(v)}}}function Rv(c,o,n){let r=c;return as(n,(h,v)=>{r=U_(r,$o(o,h),v)}),r}function om(c,o){if(Er(o))return vl.empty();{const n=c.writeTree_.setTree(o,new Gr(null));return new vl(n)}}function sy(c,o){return null!=lp(c,o)}function lp(c,o){const n=c.writeTree_.findRootMostValueAndPath(o);return null!=n?c.writeTree_.get(n.path).getChild(Ia(n.path,o)):null}function k1(c){const o=[],n=c.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Zo,(r,h)=>{o.push(new Ir(r,h))}):c.writeTree_.children.inorderTraversal((r,h)=>{null!=h.value&&o.push(new Ir(r,h.value))}),o}function Fh(c,o){if(Er(o))return c;{const n=lp(c,o);return new vl(null!=n?new Gr(n):c.writeTree_.subtree(o))}}function ay(c){return c.writeTree_.isEmpty()}function cp(c,o){return R1(ar(),c.writeTree_,o)}function R1(c,o,n){if(null!=o.value)return n.updateChild(c,o.value);{let r=null;return o.children.inorderTraversal((h,v)=>{".priority"===h?((0,cn.hu)(null!==v.value,"Priority writes must always be leaf nodes"),r=v.value):n=R1($o(c,h),v,n)}),!n.getChild(c).isEmpty()&&null!==r&&(n=n.updateChild($o(c,".priority"),r)),n}}function Nv(c,o){return V1(o,c)}function F1(c,o){if(c.snap)return ua(c.path,o);for(const n in c.children)if(c.children.hasOwnProperty(n)&&ua($o(c.path,n),o))return!0;return!1}function L1(c){return c.visible}function U1(c,o,n){let r=vl.empty();for(let h=0;h<c.length;++h){const v=c[h];if(o(v)){const M=v.path;let Z;if(v.snap)ua(n,M)?(Z=Ia(n,M),r=U_(r,Z,v.snap)):ua(M,n)&&(Z=Ia(M,n),r=U_(r,ar(),v.snap.getChild(Z)));else{if(!v.children)throw(0,cn.g5)("WriteRecord should have .snap or .children");if(ua(n,M))Z=Ia(n,M),r=Rv(r,Z,v.children);else if(ua(M,n))if(Z=Ia(M,n),Er(Z))r=Rv(r,ar(),v.children);else{const X=(0,cn.DV)(v.children,Ar(Z));if(X){const be=X.getChild(Fr(Z));r=U_(r,ar(),be)}}}}}return r}function Fv(c,o,n,r,h){if(r||h){const v=Fh(c.visibleWrites,o);return!h&&ay(v)?n:h||null!=n||sy(v,ar())?cp(U1(c.allWrites,function(be){return(be.visible||h)&&(!r||!~r.indexOf(be.writeId))&&(ua(be.path,o)||ua(o,be.path))},o),n||Cr.EMPTY_NODE):null}{const v=lp(c.visibleWrites,o);if(null!=v)return v;{const M=Fh(c.visibleWrites,o);return ay(M)?n:null!=n||sy(M,ar())?cp(M,n||Cr.EMPTY_NODE):null}}}function sm(c,o,n,r){return Fv(c.writeTree,c.treePath,o,n,r)}function ly(c,o){return function ix(c,o,n){let r=Cr.EMPTY_NODE;const h=lp(c.visibleWrites,o);if(h)return h.isLeafNode()||h.forEachChild(Zo,(v,M)=>{r=r.updateImmediateChild(v,M)}),r;if(n){const v=Fh(c.visibleWrites,o);return n.forEachChild(Zo,(M,Z)=>{const X=cp(Fh(v,new ro(M)),Z);r=r.updateImmediateChild(M,X)}),k1(v).forEach(M=>{r=r.updateImmediateChild(M.name,M.node)}),r}return k1(Fh(c.visibleWrites,o)).forEach(M=>{r=r.updateImmediateChild(M.name,M.node)}),r}(c.writeTree,c.treePath,o)}function cy(c,o,n,r){return function Z1(c,o,n,r,h){(0,cn.hu)(r||h,"Either existingEventSnap or existingServerSnap must exist");const v=$o(o,n);if(sy(c.visibleWrites,v))return null;{const M=Fh(c.visibleWrites,v);return ay(M)?h.getChild(n):cp(M,h.getChild(n))}}(c.writeTree,c.treePath,o,n,r)}function Lv(c,o){return function rx(c,o){return lp(c.visibleWrites,o)}(c.writeTree,$o(c.treePath,o))}function uy(c,o,n){return function B1(c,o,n,r){const h=$o(o,n),v=lp(c.visibleWrites,h);return null!=v?v:r.isCompleteForChild(n)?cp(Fh(c.visibleWrites,h),r.getNode().getImmediateChild(n)):null}(c.writeTree,c.treePath,o,n)}function z1(c,o){return V1($o(c.treePath,o),c.writeTree)}function V1(c,o){return{treePath:c,writeTree:o}}class lx{constructor(){this.changeMap=new Map}trackChildChange(o){const n=o.type,r=o.childName;(0,cn.hu)("child_added"===n||"child_changed"===n||"child_removed"===n,"Only child changes supported for tracking"),(0,cn.hu)(".priority"!==r,"Only non-priority child changes can be tracked.");const h=this.changeMap.get(r);if(h){const v=h.type;if("child_added"===n&&"child_removed"===v)this.changeMap.set(r,kh(r,o.snapshotNode,h.snapshotNode));else if("child_removed"===n&&"child_added"===v)this.changeMap.delete(r);else if("child_removed"===n&&"child_changed"===v)this.changeMap.set(r,function nm(c,o){return{type:"child_removed",snapshotNode:o,childName:c}}(r,h.oldSnap));else if("child_changed"===n&&"child_added"===v)this.changeMap.set(r,function Od(c,o){return{type:"child_added",snapshotNode:o,childName:c}}(r,o.snapshotNode));else{if("child_changed"!==n||"child_changed"!==v)throw(0,cn.g5)("Illegal combination of changes: "+o+" occurred after "+h);this.changeMap.set(r,kh(r,o.snapshotNode,h.oldSnap))}}else this.changeMap.set(r,o)}getChanges(){return Array.from(this.changeMap.values())}}const q1=new class cx{getCompleteChild(o){return null}getChildAfterChild(o,n,r){return null}};class Uv{constructor(o,n,r=null){this.writes_=o,this.viewCache_=n,this.optCompleteServerCache_=r}getCompleteChild(o){const n=this.viewCache_.eventCache;if(n.isCompleteForChild(o))return n.getNode().getImmediateChild(o);{const r=null!=this.optCompleteServerCache_?new _t(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return uy(this.writes_,o,r)}}getChildAfterChild(o,n,r){const h=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Go(this.viewCache_),v=function ax(c,o,n,r,h,v){return function ox(c,o,n,r,h,v,M){let Z;const X=Fh(c.visibleWrites,o),be=lp(X,ar());if(null!=be)Z=be;else{if(null==n)return[];Z=cp(X,n)}if(Z=Z.withIndex(M),Z.isEmpty()||Z.isLeafNode())return[];{const gt=[],It=M.getCompare(),Yt=v?Z.getReverseIteratorFrom(r,M):Z.getIteratorFrom(r,M);let Cn=Yt.getNext();for(;Cn&>.length<h;)0!==It(Cn,r)&>.push(Cn),Cn=Yt.getNext();return gt}}(c.writeTree,c.treePath,o,n,r,h,v)}(this.writes_,h,n,1,r,o);return 0===v.length?null:v[0]}}function $1(c,o,n,r,h,v){const M=o.eventCache;if(null!=Lv(r,n))return o;{let Z,X;if(Er(n))if((0,cn.hu)(o.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),o.serverCache.isFiltered()){const be=Go(o),It=ly(r,be instanceof Cr?be:Cr.EMPTY_NODE);Z=c.filter.updateFullNode(o.eventCache.getNode(),It,v)}else{const be=sm(r,Go(o));Z=c.filter.updateFullNode(o.eventCache.getNode(),be,v)}else{const be=Ar(n);if(".priority"===be){(0,cn.hu)(1===oc(n),"Can't have a priority with additional path components");const gt=M.getNode();X=o.serverCache.getNode();const It=cy(r,n,gt,X);Z=null!=It?c.filter.updatePriority(gt,It):M.getNode()}else{const gt=Fr(n);let It;if(M.isCompleteForChild(be)){X=o.serverCache.getNode();const Yt=cy(r,n,M.getNode(),X);It=null!=Yt?M.getNode().getImmediateChild(be).updateChild(gt,Yt):M.getNode().getImmediateChild(be)}else It=uy(r,be,o.serverCache);Z=null!=It?c.filter.updateChild(M.getNode(),be,It,gt,h,v):M.getNode()}}return Lr(o,Z,M.isFullyInitialized()||Er(n),c.filter.filtersNodes())}}function Zv(c,o,n,r,h,v,M,Z){const X=o.serverCache;let be;const gt=M?c.filter:c.filter.getIndexedFilter();if(Er(n))be=gt.updateFullNode(X.getNode(),r,null);else if(gt.filtersNodes()&&!X.isFiltered()){const Cn=X.getNode().updateChild(n,r);be=gt.updateFullNode(X.getNode(),Cn,null)}else{const Cn=Ar(n);if(!X.isCompleteForPath(n)&&oc(n)>1)return o;const Tn=Fr(n),Di=X.getNode().getImmediateChild(Cn).updateChild(T
1n,r);be=".priority"===Cn?gt.updatePriority(X.getNode(),Di):gt.updateChild(X.getNode(),Cn,Di,Tn,q1,null)}const It=kr(o,be,X.isFullyInitialized()||Er(n),gt.filtersNodes());return $1(c,It,n,h,new Uv(h,It,v),Z)}function dy(c,o,n,r,h,v,M){const Z=o.eventCache;let X,be;const gt=new Uv(h,o,v);if(Er(n))be=c.filter.updateFullNode(o.eventCache.getNode(),r,M),X=Lr(o,be,!0,c.filter.filtersNodes());else{const It=Ar(n);if(".priority"===It)be=c.filter.updatePriority(o.eventCache.getNode(),r),X=Lr(o,be,Z.isFullyInitialized(),Z.isFiltered());else{const Yt=Fr(n),Cn=Z.getNode().getImmediateChild(It);let Tn;if(Er(Yt))Tn=r;else{const oi=gt.getCompleteChild(It);Tn=null!=oi?".priority"===ba(Yt)&&oi.getChild(Oh(Yt)).isEmpty()?oi:oi.updateChild(Yt,r):Cr.EMPTY_NODE}X=Cn.equals(Tn)?o:Lr(o,c.filter.updateChild(Z.getNode(),It,Tn,Yt,gt,M),Z.isFullyInitialized(),c.filter.filtersNodes())}}return X}function Bv(c,o){return c.eventCache.isCompleteForChild(o)}function fy(c,o,n){return n.foreach((r,h)=>{o=o.updateChild(r,h)}),o}function B_(c,o,n,r,h,v,M,Z){if(o.serverCache.getNode().isEmpty()&&!o.serverCache.isFullyInitialized())return o;let be,X=o;be=Er(n)?r:new Gr(null).setTree(n,r);const gt=o.serverCache.getNode();return be.children.inorderTraversal((It,Yt)=>{if(gt.hasChild(It)){const Tn=fy(0,o.serverCache.getNode().getImmediateChild(It),Yt);X=Zv(c,X,new ro(It),Tn,h,v,M,Z)}}),be.children.inorderTraversal((It,Yt)=>{const Cn=!o.serverCache.isCompleteForChild(It)&&null===Yt.value;if(!gt.hasChild(It)&&!Cn){const oi=fy(0,o.serverCache.getNode().getImmediateChild(It),Yt);X=Zv(c,X,new ro(It),oi,h,v,M,Z)}}),X}function W1(c,o){const n=Go(c.viewCache_);return n&&(c.query._queryParams.loadsAllData()||!Er(o)&&!n.getImmediateChild(Ar(o)).isEmpty())?n.getChild(o):null}function zv(c,o,n,r){o.type===u.MERGE&&null!==o.source.queryId&&((0,cn.hu)(Go(c.viewCache_),"We should always have a full cache before handling merges"),(0,cn.hu)(Ds(c.viewCache_),"Missing event cache, even though we have a server cache"));const h=c.viewCache_,v=function dx(c,o,n,r,h){const v=new lx;let M,Z;if(n.type===u.OVERWRITE){const be=n;be.source.fromUser?M=dy(c,o,be.path,be.snap,r,h,v):((0,cn.hu)(be.source.fromServer,"Unknown source."),Z=be.source.tagged||o.serverCache.isFiltered()&&!Er(be.path),M=Zv(c,o,be.path,be.snap,r,h,Z,v))}else if(n.type===u.MERGE){const be=n;be.source.fromUser?M=function hy(c,o,n,r,h,v,M){let Z=o;return r.foreach((X,be)=>{const gt=$o(n,X);Bv(o,Ar(gt))&&(Z=dy(c,Z,gt,be,h,v,M))}),r.foreach((X,be)=>{const gt=$o(n,X);Bv(o,Ar(gt))||(Z=dy(c,Z,gt,be,h,v,M))}),Z}(c,o,be.path,be.children,r,h,v):((0,cn.hu)(be.source.fromServer,"Unknown source."),Z=be.source.tagged||o.serverCache.isFiltered(),M=B_(c,o,be.path,be.children,r,h,Z,v))}else if(n.type===u.ACK_USER_WRITE){const be=n;M=be.revert?function py(c,o,n,r,h,v){let M;if(null!=Lv(r,n))return o;{const Z=new Uv(r,o,h),X=o.eventCache.getNode();let be;if(Er(n)||".priority"===Ar(n)){let gt;if(o.serverCache.isFullyInitialized())gt=sm(r,Go(o));else{const It=o.serverCache.getNode();(0,cn.hu)(It instanceof Cr,"serverChildren would be complete if leaf node"),gt=ly(r,It)}be=c.filter.updateFullNode(X,gt,v)}else{const gt=Ar(n);let It=uy(r,gt,o.serverCache);null==It&&o.serverCache.isCompleteForChild(gt)&&(It=X.getImmediateChild(gt)),be=null!=It?c.filter.updateChild(X,gt,It,Fr(n),Z,v):o.eventCache.getNode().hasChild(gt)?c.filter.updateChild(X,gt,Cr.EMPTY_NODE,Fr(n),Z,v):X,be.isEmpty()&&o.serverCache.isFullyInitialized()&&(M=sm(r,Go(o)),M.isLeafNode()&&(be=c.filter.updateFullNode(be,M,v)))}return M=o.serverCache.isFullyInitialized()||null!=Lv(r,ar()),Lr(o,be,M,c.filter.filtersNodes())}}(c,o,be.path,r,h,v):function hx(c,o,n,r,h,v,M){if(null!=Lv(h,n))return o;const Z=o.serverCache.isFiltered(),X=o.serverCache;if(null!=r.value){if(Er(n)&&X.isFullyInitialized()||X.isCompleteForPath(n))return Zv(c,o,n,X.getNode().getChild(n),h,v,Z,M);if(Er(n)){let be=new Gr(null);return X.getNode().forEachChild(gl,(gt,It)=>{be=be.set(new ro(gt),It)}),B_(c,o,n,be,h,v,Z,M)}return o}{let be=new Gr(null);return r.foreach((gt,It)=>{const Yt=$o(n,gt);X.isCompleteForPath(Yt)&&(be=be.set(gt,X.getNode().getChild(Yt)))}),B_(c,o,n,be,h,v,Z,M)}}(c,o,be.path,be.affectedTree,r,h,v)}else{if(n.type!==u.LISTEN_COMPLETE)throw(0,cn.g5)("Unknown operation type: "+n.type);M=function fx(c,o,n,r,h){const v=o.serverCache;return $1(c,kr(o,v.getNode(),v.isFullyInitialized()||Er(n),v.isFiltered()),n,r,q1,h)}(c,o,n.path,r,v)}const X=v.getChanges();return function H1(c,o,n){const r=o.eventCache;if(r.isFullyInitialized()){const h=r.getNode().isLeafNode()||r.getNode().isEmpty(),v=Ds(c);(n.length>0||!c.eventCache.isFullyInitialized()||h&&!r.getNode().equals(v)||!r.getNode().getPriority().equals(v.getPriority()))&&n.push(function R_(c){return{type:"value",snapshotNode:c}}(Ds(o)))}}(o,M,X),{viewCache:M,changes:X}}(c.processor_,h,o,n,r);return function ux(c,o){(0,cn.hu)(o.eventCache.getNode().isIndexed(c.filter.getIndex()),"Event snap not indexed"),(0,cn.hu)(o.serverCache.getNode().isIndexed(c.filter.getIndex()),"Server snap not indexed")}(c.processor_,v.viewCache),(0,cn.hu)(v.viewCache.serverCache.isFullyInitialized()||!h.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),c.viewCache_=v.viewCache,function Vv(c,o,n,r){return function xn(c,o,n,r){const h=[],v=[];return o.forEach(M=>{"child_changed"===M.type&&c.index_.indexedValueChanged(M.oldSnap,M.snapshotNode)&&v.push(function Dv(c,o){return{type:"child_moved",snapshotNode:o,childName:c}}(M.childName,M.snapshotNode))}),Bn(c,h,"child_removed",o,r,n),Bn(c,h,"child_added",o,r,n),Bn(c,h,"child_moved",v,r,n),Bn(c,h,"child_changed",o,r,n),Bn(c,h,"value",o,r,n),h}(c.eventGenerator_,o,n,r?[r]:c.eventRegistrations_)}(c,v.changes,v.viewCache.eventCache.getNode(),null)}let qv,$v;function jv(c,o,n,r){const h=o.source.queryId;if(null!==h){const v=c.views.get(h);
1return(0,cn.hu)(null!=v,"SyncTree gave us an op for an invalid query."),zv(v,o,n,r)}{let v=[];for(const M of c.views.values())v=v.concat(zv(M,o,n,r));return v}}function Lh(c,o){let n=null;for(const r of c.views.values())n=n||W1(r,o);return n}class X1{constructor(o){this.listenProvider_=o,this.syncPointTree_=new Gr(null),this.pendingWriteTree_=function sx(){return{visibleWrites:vl.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Gv(c,o,n,r,h){return function Z_(c,o,n,r,h){(0,cn.hu)(r>c.lastWriteId,"Stacking an older write on top of newer ones"),void 0===h&&(h=!0),c.allWrites.push({path:o,snap:n,writeId:r,visible:h}),h&&(c.visibleWrites=U_(c.visibleWrites,o,n)),c.lastWriteId=r}(c.pendingWriteTree_,o,n,r,h),h?dp(c,new re({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},o,n)):[]}function Ad(c,o,n=!1){const r=function N1(c,o){for(let n=0;n<c.allWrites.length;n++){const r=c.allWrites[n];if(r.writeId===o)return r}return null}(c.pendingWriteTree_,o);if(function tx(c,o){const n=c.allWrites.findIndex(Z=>Z.writeId===o);(0,cn.hu)(n>=0,"removeWrite called with nonexistent writeId.");const r=c.allWrites[n];c.allWrites.splice(n,1);let h=r.visible,v=!1,M=c.allWrites.length-1;for(;h&&M>=0;){const Z=c.allWrites[M];Z.visible&&(M>=n&&F1(Z,r.path)?h=!1:ua(r.path,Z.path)&&(v=!0)),M--}return!!h&&(v?(function nx(c){c.visibleWrites=U1(c.allWrites,L1,ar()),c.lastWriteId=c.allWrites.length>0?c.allWrites[c.allWrites.length-1].writeId:-1}(c),!0):(r.snap?c.visibleWrites=om(c.visibleWrites,r.path):as(r.children,X=>{c.visibleWrites=om(c.visibleWrites,$o(r.path,X))}),!0))}(c.pendingWriteTree_,o)){let v=new Gr(null);return null!=r.snap?v=v.set(ar(),!0):as(r.children,M=>{v=v.set(new ro(M),!0)}),dp(c,new F(r.path,v,n))}return[]}function z_(c,o,n){return dp(c,new re({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},o,n))}function V_(c,o,n){const h=c.pendingWriteTree_,v=c.syncPointTree_.findOnPath(o,(M,Z)=>{const be=Lh(Z,Ia(M,o));if(be)return be});return Fv(h,o,v,n,!0)}function dp(c,o){return yy(o,c.syncPointTree_,null,Nv(c.pendingWriteTree_,ar()))}function yy(c,o,n,r){if(Er(c.path))return Cy(c,o,n,r);{const h=o.get(ar());null==n&&null!=h&&(n=Lh(h,ar()));let v=[];const M=Ar(c.path),Z=c.operationForChild(M),X=o.children.get(M);if(X&&Z){const be=n?n.getImmediateChild(M):null,gt=z1(r,M);v=v.concat(yy(Z,X,be,gt))}return h&&(v=v.concat(jv(h,c,r,n))),v}}function Cy(c,o,n,r){const h=o.get(ar());null==n&&null!=h&&(n=Lh(h,ar()));let v=[];return o.children.inorderTraversal((M,Z)=>{const X=n?n.getImmediateChild(M):null,be=z1(r,M),gt=c.operationForChild(M);gt&&(v=v.concat(Cy(gt,Z,X,be)))}),h&&(v=v.concat(jv(h,c,r,n))),v}function Kv(c,o){return c.tagToQueryMap.get(o)}function Yv(c){const o=c.indexOf("$");return(0,cn.hu)(-1!==o&&o<c.length-1,"Bad queryKey."),{queryId:c.substr(o+1),path:new ro(c.substr(0,o))}}function My(c,o,n){const r=c.syncPointTree_.get(o);return(0,cn.hu)(r,"Missing sync point for query tag that we're tracking"),jv(r,n,Nv(c.pendingWriteTree_,o),null)}class lc{constructor(o){this.node_=o}getImmediateChild(o){const n=this.node_.getImmediateChild(o);return new lc(n)}node(){return this.node_}}class Ty{constructor(o,n){this.syncTree_=o,this.path_=n}getImmediateChild(o){const n=$o(this.path_,o);return new Ty(this.syncTree_,n)}node(){return V_(this.syncTree_,this.path_)}}const lm=function(c,o,n){return c&&"object"==typeof c?((0,cn.hu)(".sv"in c,"Unexpected leaf node or priority contents"),"string"==typeof c[".sv"]?Ex(c[".sv"],o,n):"object"==typeof c[".sv"]?Tx(c[".sv"],o):void(0,cn.hu)(!1,"Unexpected server value: "+JSON.stringify(c,null,2))):c},Ex=function(c,o,n){if("timestamp"===c)return n.timestamp;(0,cn.hu)(!1,"Unexpected server value: "+c)},Tx=function(c,o,n){c.hasOwnProperty("increment")||(0,cn.hu)(!1,"Unexpected server value: "+JSON.stringify(c,null,2));const r=c.increment;"number"!=typeof r&&(0,cn.hu)(!1,"Unexpected increment value: "+r);const h=o.node();if((0,cn.hu)(null!==h&&typeof h<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!h.isLeafNode())return r;const M=h.getValue();return"number"!=typeof M?r:M+r},cm=function(c,o,n){return um(c,new lc(o),n)};
1function um(c,o,n){const r=c.getPriority().val(),h=lm(r,o.getImmediateChild(".priority"),n);let v;if(c.isLeafNode()){const M=c,Z=lm(M.getValue(),o,n);return Z!==M.getValue()||h!==M.getPriority().val()?new ip(Z,_o(h)):c}{const M=c;return v=M,h!==M.getPriority().val()&&(v=v.updatePriority(new ip(h))),M.forEachChild(Zo,(Z,X)=>{const be=um(X,o.getImmediateChild(Z),n);be!==X&&(v=v.updateImmediateChild(Z,be))}),v}}class Oy{constructor(o="",n=null,r={children:{},childCount:0}){this.name=o,this.parent=n,this.node=r}}function Qv(c,o){let n=o instanceof ro?o:new ro(o),r=c,h=Ar(n);for(;null!==h;){const v=(0,cn.DV)(r.node.children,h)||{children:{},childCount:0};r=new Oy(h,r,v),n=Fr(n),h=Ar(n)}return r}function Uh(c){return c.node.value}function Xv(c,o){c.node.value=o,$_(c)}function eb(c){return c.node.childCount>0}function tb(c,o){as(c.node.children,(n,r)=>{o(new Oy(n,c,r))})}function sC(c,o,n,r){n&&!r&&o(c),tb(c,h=>{sC(h,o,!0,r)}),n&&r&&o(c)}function hp(c){return new ro(null===c.parent?c.name:hp(c.parent)+"/"+c.name)}function $_(c){null!==c.parent&&function aC(c,o,n){const r=function oC(c){return void 0===Uh(c)&&!eb(c)}(n),h=(0,cn.r3)(c.node.children,o);r&&h?(delete c.node.children[o],c.node.childCount--,$_(c)):!r&&!h&&(c.node.children[o]=n.node,c.node.childCount++,$_(c))}(c.parent,c.name,c)}const Py=/[\[\].#$\/\u0000-\u001F\u007F]/,Dy=/[\[\].#$\u0000-\u001F\u007F]/,Ay=10485760,nb=function(c){return"string"==typeof c&&0!==c.length&&!Py.test(c)},hm=function(c,o,n){const r=n instanceof ro?new Qf(n,c):n;if(void 0===o)throw new Error(c+"contains undefined "+rl(r));if("function"==typeof o)throw new Error(c+"contains a function "+rl(r)+" with contents = "+o.toString());if(vh(o))throw new Error(c+"contains "+o.toString()+" "+rl(r));if("string"==typeof o&&o.length>Ay/3&&(0,cn.ug)(o)>Ay)throw new Error(c+"contains a string greater than "+Ay+" utf8 bytes "+rl(r)+" ('"+o.substring(0,50)+"...')");if(o&&"object"==typeof o){let h=!1,v=!1;if(as(o,(M,Z)=>{if(".value"===M)h=!0;else if(".priority"!==M&&".sv"!==M&&(v=!0,!nb(M)))throw new Error(c+" contains an invalid key ("+M+") "+rl(r)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function Cv(c,o){c.parts_.length>0&&(c.byteLength_+=1),c.parts_.push(o),c.byteLength_+=(0,cn.ug)(o),D_(c)})(r,M),hm(c,Z,r),function Xf(c){const o=c.parts_.pop();c.byteLength_-=(0,cn.ug)(o),c.parts_.length>0&&(c.byteLength_-=1)}(r)}),h&&v)throw new Error(c+' contains ".value" child '+rl(r)+" in addition to actual children.")}},Sy=function(c,o){const n=o.path.toString();if("string"!=typeof o.repoInfo.host||0===o.repoInfo.host.length||!nb(o.repoInfo.namespace)&&"localhost"!==o.repoInfo.host.split(":")[0]||0!==n.length&&!function(c){return c&&(c=c.replace(/^\/*\.info(\/|$)/,"/")),function(c){return"string"==typeof c&&0!==c.length&&!Dy.test(c)}(c)}(n))throw new Error((0,cn.gK)(c,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};class dC{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function Bl(c,o,n){(function Pa(c,o){let n=null;for(let r=0;r<o.length;r++){const h=o[r],v=h.getPath();null!==n&&!Ph(v,n.path)&&(c.eventLists_.push(n),n=null),null===n&&(n={events:[],path:v}),n.events.push(h)}n&&c.eventLists_.push(n)})(c,n),function hC(c,o){c.recursionDepth_++;let n=!0;for(let r=0;r<c.eventLists_.length;r++){const h=c.eventLists_[r];h&&(o(h.path)?(Ew(c.eventLists_[r]),c.eventLists_[r]=null):n=!1)}n&&(c.eventLists_=[]),c.recursionDepth_--}(c,r=>ua(r,o)||ua(o,r))}function Ew(c){for(let o=0;o<c.events.length;o++){const n=c.events[o];if(null!==n){c.events[o]=null;const r=n.getEventRunner();pu&&Os("event: "+n.toString()),fl(r)}}}class pC{constructor(o,n,r,h){this.repoInfo_=o,this.forceRestClient_=n,this.authTokenProvider_=r,this.appCheckProvider_=h,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new dC,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=ap(),this.transactionQueueTree_=new Oy,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function gC(c){const n=c.infoData_.getNode(new ro(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+n}function pp(c){return function(c){return(c=c||{}).timestamp=c.timestamp||(new Date).getTime(),c}({timestamp:gC(c)})}function mC(c,o,n,r,h){c.dataUpdateCount++;const v=new ro(o);n=c.interceptServerDataCallback_?c.interceptServerDataCallback_(o,n):n;let M=[];if(h)if(r){const X=(0,cn.UI)(n,be=>_o(be));M=function xx(c,o,n,r){const h=Kv(c,r);if(h){const v=Yv(h),M=v.path,Z=v.queryId,X=Ia(M,o),be=Gr.fromObject(n);return My(c,M,new Be(C(Z),X,be))}return[]}(c.serverSyncTree_,v,X,h)}else{const X=_o(n);M=function nC(c,o,n,r){const h=Kv(c,r);if(null!=h){const v=Yv(h),M=v.path,Z=v.queryId,X=Ia(M,o);return My(c,M,new re(C(Z),X,n))}return[]}(c.serverSyncTree_,v,X,h)}else if(r){const X=(0,cn.UI)(n,be=>_o(be));M=function tC(c,o,n){const r=Gr.fromObject(n);return dp(c,new Be({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},o,r))}(c.serverSyncTree_,v,X)}else{const X=_o(n);M=z_(c.serverSyncTree_,v,X)}let Z=v;M.length>0&&(Z=fm(c,v)),Bl(c.eventQueue_,Z,M)}function ky(c,o){Ry(c,"connected",o),!1===o&&function ab(c){Bh(c,"onDisconnectEvents");const o=pp(c),n=ap();F_(c.onDisconnect_,ar(),(h,v)=>{const M=function(c,o,n,r){return um(o,new Ty(n,c),r)}(h,v,c.serverSyncTree_,o);Pd(n,h,M)});let r=[];F_(n,ar(),(h,v)=>{r=r.concat(z_(c.serverSyncTree_,h,v));const M=function Zy(c,o){const n=hp(Ly(c,o)),r=Qv(c.transactionQueueTree_,o);return function Mw(c,o,n){let r=n?c:c.parent;for(;null!==r;){if(o(r))return!0;r=r.parent}}(r,h=>{By(c,h)}),By(c,r),sC(r,h=>{By(c,h)}),n}(c,h);fm(c,M)}),c.onDisconnect_=ap(),Bl(c.eventQueue_,ar(),r)}(c)}function Ry(c,o,n){const r=new ro("/.info/"+o),h=_o(n);c.infoData_.updateSnapshot(r,h);const v=z_(c.infoSyncTree_,r,h);Bl(c.eventQueue_,r,v)}function ob(c){return c.nextWriteId_++}function Bh(c,...o){let n="";c.persistentConnection_&&(n=c.persistentConnection_.id+":"),Os(n,...o)}function xC(c,o,n){return V_(c.serverSyncTree_,o,n)||Cr.EMPTY_NODE}function lb(c,o=c.transactionQueueTree_){if(o||K_(c,o),Uh(o)){const n=MC(c,o);(0,cn.hu)(n.length>0,"Sending zero length transaction queue"),n.every(h=>0===h.status)&&function kx(c,o,n){const r=n.map(be=>be.currentWriteId),h=xC(c,o,r);let v=h;const M=h.hash();for(let be=0;be<n.length;be++){const gt=n[be];(0,cn.hu)(0===gt.status,"tryToSendTransactionQueue_: items in queue should all be run."),gt.status=1,gt.retryCount++;const It=Ia(o,gt.path);v=v.updateChild(It,gt.currentOutputSnapshotRaw)}const Z=v.val(!0),X=o;c.server_.put(X.toString(),Z,be=>{Bh(c,"transaction put response",{path:X.toString(),status:be});let gt=[];if("ok"===be){const It=[];for(let Yt=0;Yt<n.length;Yt++)n[Yt].status=2,gt=gt.concat(Ad(c.serverSyncTree_,n[Yt].currentWriteId)),n[Yt].onComplete&&It.push(()=>n[Yt].onComplete(null,!0,n[Yt].currentOutputSnapshotResolved)),n[Yt].unwatcher();K_(c,Qv(c.transactionQueueTree_,o)),lb(c,c.transactionQueueTree_),Bl(c.eventQueue_,o,gt);for(let Yt=0;Yt<It.length;Yt++)fl(It[Yt])}else{if("datastale"===be)for(let It=0;It<n.length;It++)n[It].status=3===n[It].status?4:0;else{Us("transaction at "+X.toString()+" failed: "+be);for(let It=0;It<n.length;It++)n[It].status=4,n[It].abortReason=be}fm(c,o)}},M)}(c,hp(o),n)}else eb(o)&&tb(o,n=>{lb(c,n)})}function fm(c,o){const n=Ly(c,o),r=hp(n);
1return function wC(c,o,n){if(0===o.length)return;const r=[];let h=[];const M=o.filter(Z=>0===Z.status).map(Z=>Z.currentWriteId);for(let Z=0;Z<o.length;Z++){const X=o[Z],be=Ia(n,X.path);let It,gt=!1;if((0,cn.hu)(null!==be,"rerunTransactionsUnderNode_: relativePath should not be null."),4===X.status)gt=!0,It=X.abortReason,h=h.concat(Ad(c.serverSyncTree_,X.currentWriteId,!0));else if(0===X.status)if(X.retryCount>=25)gt=!0,It="maxretry",h=h.concat(Ad(c.serverSyncTree_,X.currentWriteId,!0));else{const Yt=xC(c,X.path,M);X.currentInputSnapshot=Yt;const Cn=o[Z].update(Yt.val());if(void 0!==Cn){hm("transaction failed: Data returned ",Cn,X.path);let Tn=_o(Cn);"object"==typeof Cn&&null!=Cn&&(0,cn.r3)(Cn,".priority")||(Tn=Tn.updatePriority(Yt.getPriority()));const Di=X.currentWriteId,qr=pp(c),bo=cm(Tn,Yt,qr);X.currentOutputSnapshotRaw=Tn,X.currentOutputSnapshotResolved=bo,X.currentWriteId=ob(c),M.splice(M.indexOf(Di),1),h=h.concat(Gv(c.serverSyncTree_,X.path,bo,X.currentWriteId,X.applyLocally)),h=h.concat(Ad(c.serverSyncTree_,Di,!0))}else gt=!0,It="nodata",h=h.concat(Ad(c.serverSyncTree_,X.currentWriteId,!0))}Bl(c.eventQueue_,n,h),h=[],gt&&(o[Z].status=2,setTimeout(o[Z].unwatcher,Math.floor(0)),o[Z].onComplete&&r.push("nodata"===It?()=>o[Z].onComplete(null,!1,o[Z].currentInputSnapshot):()=>o[Z].onComplete(new Error(It),!1,null)))}K_(c,c.transactionQueueTree_);for(let Z=0;Z<r.length;Z++)fl(r[Z]);lb(c,c.transactionQueueTree_)}(c,MC(c,n),r),r}function Ly(c,o){let n,r=c.transactionQueueTree_;for(n=Ar(o);null!==n&&void 0===Uh(r);)r=Qv(r,n),n=Ar(o=Fr(o));return r}function MC(c,o){const n=[];return Uy(c,o,n),n.sort((r,h)=>r.order-h.order),n}function Uy(c,o,n){const r=Uh(o);if(r)for(let h=0;h<r.length;h++)n.push(r[h]);tb(o,h=>{Uy(c,h,n)})}function K_(c,o){const n=Uh(o);if(n){let r=0;for(let h=0;h<n.length;h++)2!==n[h].status&&(n[r]=n[h],r++);n.length=r,Xv(o,n.length>0?n:void 0)}tb(o,r=>{K_(c,r)})}function By(c,o){const n=Uh(o);if(n){const r=[];let h=[],v=-1;for(let M=0;M<n.length;M++)3===n[M].status||(1===n[M].status?((0,cn.hu)(v===M-1,"All SENT items should be at beginning of queue."),v=M,n[M].status=3,n[M].abortReason="set"):((0,cn.hu)(0===n[M].status,"Unexpected transaction status in abort"),n[M].unwatcher(),h=h.concat(Ad(c.serverSyncTree_,n[M].currentWriteId,!0)),n[M].onComplete&&r.push(n[M].onComplete.bind(null,new Error("set"),!1,null))));-1===v?Xv(o,void 0):n.length=v+1,Bl(c.eventQueue_,hp(o),h);for(let M=0;M<r.length;M++)fl(r[M])}}const cb=function(c,o){const n=TC(c),r=n.namespace;return"firebase.com"===n.domain&&Nc(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!r||"undefined"===r)&&"localhost"!==n.domain&&Nc("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||typeof window<"u"&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Us("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new yd(n.host,n.secure,r,"ws"===n.scheme||"wss"===n.scheme,o,"",r!==n.subdomain),path:new ro(n.pathString)}},TC=function(c){let o="",n="",r="",h="",v="",M=!0,Z="https",X=443;if("string"==typeof c){let be=c.indexOf("//");be>=0&&(Z=c.substring(0,be-1),c=c.substring(be+2));let gt=c.indexOf("/");-1===gt&&(gt=c.length);let It=c.indexOf("?");-1===It&&(It=c.length),o=c.substring(0,Math.min(gt,It)),gt<It&&(h=function EC(c){let o="";const n=c.split("/");for(let r=0;r<n.length;r++)if(n[r].length>0){let h=n[r];try{h=decodeURIComponent(h.replace(/\+/g," "))}catch{}o+="/"+h}return o}(c.substring(gt,It)));const Yt=function Rx(c){const o={};"?"===c.charAt(0)&&(c=c.substring(1));for(const n of c.split("&")){if(0===n.length)continue;const r=n.split("=");2===r.length?o[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Us(`Invalid query segment '${n}' in query '${c}'`)}return o}(c.substring(Math.min(c.length,It)));be=o.indexOf(":"),be>=0?(M="https"===Z||"wss"===Z,X=parseInt(o.substring(be+1),10)):be=o.length;const Cn=o.slice(0,be);if("localhost"===Cn.toLowerCase())n="localhost";else if(Cn.split(".").length<=2)n=Cn;else{const Tn=o.indexOf(".");r=o.substring(0,Tn).toLowerCase(),n=o.substring(Tn+1),v=r}"ns"in Yt&&(v=Yt.ns)}return{host:o,port:X,domain:n,subdomain:r,secure:M,scheme:Z,pathString:h,namespace:v}};class uc{constructor(o,n,r,h){this._repo=o,this._path=n,this._queryParams=r,this._orderByCalled=h}get key(){return Er(this._path)?null:ba(this._path)}get ref(){return new Pu(this._repo,this._path)}get _queryIdentifier(){const o=Sv(this._queryParams),n=mu(o);return"{}"===n?"default":n}
1get _queryObject(){return Sv(this._queryParams)}isEqual(o){if(!((o=(0,cn.m9)(o))instanceof uc))return!1;const n=this._repo===o._repo,r=Ph(this._path,o._path);return n&&r&&this._queryIdentifier===o._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function Zl(c){let o="";for(let n=c.pieceNum_;n<c.pieces_.length;n++)""!==c.pieces_[n]&&(o+="/"+encodeURIComponent(String(c.pieces_[n])));return o||"/"}(this._path)}}class Pu extends uc{constructor(o,n){super(o,n,new Iv,!1)}get parent(){const o=Oh(this._path);return null===o?null:new Pu(this._repo,o)}get root(){let o=this;for(;null!==o.parent;)o=o.parent;return o}}(function _y(c){(0,cn.hu)(!qv,"__referenceConstructor has already been defined"),qv=c})(Pu),function xw(c){(0,cn.hu)(!$v,"__referenceConstructor has already been defined"),$v=c}(Pu);const Wy={};class Sd{constructor(o,n){this._repoInternal=o,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function W_(c,o,n){if(c.stats_=wh(c.repoInfo_),c.forceRestClient_||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)c.server_=new sp(c.repoInfo_,(r,h,v,M)=>{mC(c,r,h,v,M)},c.authTokenProvider_,c.appCheckProvider_),setTimeout(()=>ky(c,!0),0);else{if(typeof n<"u"&&null!==n){if("object"!=typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,cn.Wl)(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}c.persistentConnection_=new Mu(c.repoInfo_,o,(r,h,v,M)=>{mC(c,r,h,v,M)},r=>{ky(c,r)},r=>{!function Dx(c,o){as(o,(n,r)=>{Ry(c,n,r)})}(c,r)},c.authTokenProvider_,c.appCheckProvider_,n),c.server_=c.persistentConnection_}c.authTokenProvider_.addTokenChangeListener(r=>{c.server_.refreshAuthToken(r)}),c.appCheckProvider_.addTokenChangeListener(r=>{c.server_.refreshAppCheckToken(r.token)}),c.statsReporter_=function jg(c,o){const n=c.toString();return xh[n]||(xh[n]=o()),xh[n]}(c.repoInfo_,()=>new i(c.stats_,c.server_)),c.infoData_=new kv,c.infoSyncTree_=new X1({startListening:(r,h,v,M)=>{let Z=[];const X=c.infoData_.getNode(r._path);return X.isEmpty()||(Z=z_(c.infoSyncTree_,r._path,X),setTimeout(()=>{M("ok")},0)),Z},stopListening:()=>{}}),Ry(c,"connected",!1),c.serverSyncTree_=new X1({startListening:(r,h,v,M)=>(c.server_.listen(r,v,h,(Z,X)=>{const be=M(Z,X);Bl(c.eventQueue_,r._path,be)}),[]),stopListening:(r,h)=>{c.server_.unlisten(r,h)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Pu(this._repo,ar())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function zh(c,o){const n=Wy[o];(!n||n[c.key]!==c)&&Nc(`Database ${o}(${c.repoInfo_}) has already been deleted.`),function yC(c){c.persistentConnection_&&c.persistentConnection_.interrupt("repo_interrupt")}(c),delete n[c.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(o){null===this._rootInternal&&Nc("Cannot call "+o+" on a deleted database.")}}function Yx(c=(0,Vl.getApp)(),o){const n=(0,Vl._getProvider)(c,"database").getImmediate({identifier:o});if(!n._instanceStarted){const r=(0,cn.P0)("database");r&&function Jx(c,o,n,r={}){(c=(0,cn.m9)(c))._checkNotDeleted("useEmulator"),c._instanceStarted&&Nc("Cannot call useEmulator() after instance has already been initialized.");const h=c._repoInternal;let v;if(h.repoInfo_.nodeAdmin)r.mockUserToken&&Nc('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),v=new Ch(Ch.OWNER);else if(r.mockUserToken){const M="string"==typeof r.mockUserToken?r.mockUserToken:(0,cn.Sg)(r.mockUserToken,c.app.options.projectId);v=new Ch(M)}!function Kx(c,o,n,r){c.repoInfo_=new yd(`${o}:${n}`,!1,c.repoInfo_.namespace,c.repoInfo_.webSocketOnly,c.repoInfo_.nodeAdmin,c.repoInfo_.persistenceKey,c.repoInfo_.includeNamespaceInQueryParams,!0),r&&(c.authTokenProvider_=r)}(h,o,n,v)}(n,...r)}return n}
1Mu.prototype.simpleListen=function(c,o){this.sendRequest("q",{p:c},o)},Mu.prototype.echo=function(c,o){this.sendRequest("echo",{d:c},o)},function BC(c){(function O1(c){g_=c})(Vl.SDK_VERSION),(0,Vl._registerComponent)(new $c.wA("database",(o,{instanceIdentifier:n})=>function Yy(c,o,n,r,h){let v=r||c.options.databaseURL;void 0===v&&(c.options.projectId||Nc("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),Os("Using default host for project ",c.options.projectId),v=`${c.options.projectId}-default-rtdb.firebaseio.com`);let X,be,M=cb(v,h),Z=M.repoInfo;typeof process<"u"&&process.env&&(be=process.env.FIREBASE_DATABASE_EMULATOR_HOST),be?(X=!0,v=`http://${be}?ns=${Z.namespace}`,M=cb(v,h),Z=M.repoInfo):X=!M.repoInfo.secure;const gt=h&&X?new Ch(Ch.OWNER):new lv(c.name,c.options,o);Sy("Invalid Firebase Database URL",M),Er(M.path)||Nc("Database URL must point to the root of a Firebase Database (not including a child path).");const It=function UC(c,o,n,r){let h=Wy[o.name];h||(h={},Wy[o.name]=h);let v=h[c.toURLString()];return v&&Nc("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),v=new pC(c,!1,n,r),h[c.toURLString()]=v,v}(Z,c,gt,new av(c.name,n));return new Sd(It,c)}(o.getProvider("app").getImmediate(),o.getProvider("auth-internal"),o.getProvider("app-check-internal"),n),"PUBLIC").setMultipleInstances(!0)),(0,Vl.registerVersion)(Ug,"0.14.4",c),(0,Vl.registerVersion)(Ug,"0.14.4","esm2017")}();class db{constructor(o){return o}}const Xy="database",fb=new e.OlP("angularfire2.database-instances");function zC(c){return(o,n)=>{const r=o.runOutsideAngular(()=>c(n));return new db(r)}}const VC={provide:class hb{constructor(){return(0,Ri.vb)(Xy)}},deps:[[new e.FiY,fb]]},ow={provide:db,useFactory:function rw(c,o){const n=(0,Ri.JM)(Xy,c,o);return n&&new db(n)},deps:[[new e.FiY,fb],ra.Ot]};let sw=(()=>{class c{constructor(){(0,ll.KN)("angularfire",Ri.q4.full,"rtdb")}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[ow,VC]}),c})();function Uw(c,...o){return{ngModule:sw,providers:[{provide:fb,useFactory:zC(c),multi:!0,deps:[e.R0b,e.zs3,Ri.HU,ra.z6,[new e.FiY,La],[new e.FiY,Nd.nm],...o]}]}}const n1=(0,Ri.u3)(Yx,!0);var pb=D(9646),WC=D(9300),mw=D(3900),t2=D(8421),n2=D(4482),_w=D(5403);var vw=D(5577),r2=D(1884),o2=D(1520),s2=D(7582),KC=D(3008);class gb{constructor(o){return o}}const bw="analytics",d=Ri.nk.async,p=(0,Ri.u3)(KC.IH,!0),y=(0,Ri.u3)(KC.Kz,!0),te=(0,Ri.u3)(KC.Iv,!0);let et=(()=>{class c{constructor(n,r,h){let v;this.disposables=[],(0,ll.KN)("angularfire",Ri.q4.full,"user-tracking"),this.initialized=r.runOutsideAngular(()=>new Promise(M=>{v=M})),d().then(()=>{const M=h.get(gb);M?this.disposables=[Bd(n).subscribe(Z=>{te(M,Z?.uid),v()})]:v()})}
1ngOnDestroy(){this.disposables.forEach(n=>n.unsubscribe())}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(ql),e.LFG(e.R0b),e.LFG(e.zs3))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();const ki="firebase_screen_id",Fn="outlet",zo="screen_class",Vh="screen_name";let l1=Math.floor(Math.random()*(Math.pow(2,32)-1))-Math.pow(2,31);const Q_={},c1=c=>{const o=[c[zo],c[Fn]].join("#");if(Q_.hasOwnProperty(o))return Q_[o];{const n=l1++;return Q_[o]=n,n}};let mb=(()=>{class c{constructor(n,r,h,v,M,Z){(0,ll.KN)("angularfire",Ri.q4.full,"screen-tracking"),d().then(()=>{const X=Z.get(gb);!n||!X||v.runOutsideAngular(()=>{this.disposable=((c,o,n)=>c.events.pipe((0,WC.h)(h=>h instanceof me.jw)).pipe((0,mw.w)(h=>{var v;const Z=(null===(v=c.parseUrl(c.url.replace(/(?:\().+(?:\))/g,Cn=>Cn.replace("://",":///"))).root.children[h.snapshot.outlet])||void 0===v?void 0:v.toString())||"",X=c.routerState.root.children.map(Cn=>Cn).find(Cn=>Cn.outlet===h.snapshot.outlet);if(!X)return(0,pb.of)(null);let be=X;for(;be.firstChild;)be=be.firstChild;const gt=be.pathFromRoot.map(Cn=>{var Tn;return null===(Tn=Cn.routeConfig)||void 0===Tn?void 0:Tn.path}).filter(Cn=>Cn).join("/")||"/",It={[Vh]:gt,page_path:`/${Z}`,firebase_event_origin:"auto",firebase_screen:gt,[Fn]:h.snapshot.outlet};o&&(It.page_title=o.getTitle());let Yt=X.component;if(Yt){if(Yt===me.fw){let Cn=h.snapshot;for(;Cn.firstChild;)Cn=Cn.firstChild;Yt=Cn.component}}else Yt=h.snapshot.component;if("string"==typeof Yt)return(0,pb.of)(Object.assign(Object.assign({},It),{[zo]:Yt}));if(Yt){const Cn=n.resolveComponentFactory(Yt);return(0,pb.of)(Object.assign(Object.assign({},It),{[zo]:Cn.selector}))}return(0,pb.of)(null)}),(0,WC.h)(h=>!!h),(0,Ya.U)(h=>Object.assign({firebase_screen_class:h[zo],[ki]:c1(h)},h)),function i2(c,o,n,r){return(0,n2.e)((h,v)=>{let M;o&&"function"!=typeof o?({duration:n,element:M,connector:r}=o):M=o;const Z=new Map,X=Tn=>{Z.forEach(Tn),Tn(v)},be=Tn=>X(oi=>oi.error(Tn));let gt=0,It=!1;const Yt=new _w.Q(v,Tn=>{try{const oi=c(Tn);let Di=Z.get(oi);if(!Di){Z.set(oi,Di=r?r():new de.x);const qr=function Cn(Tn,oi){const Di=new xi.y(qr=>{gt++;const bo=oi.subscribe(qr);return()=>{bo.unsubscribe(),0==--gt&&It&&Yt.unsubscribe()}});return Di.key=Tn,Di}(oi,Di);if(v.next(qr),n){const bo=(0,_w.x)(Di,()=>{Di.complete(),bo?.unsubscribe()},void 0,void 0,()=>Z.delete(oi));Yt.add((0,t2.Xf)(n(qr)).subscribe(bo))}}Di.next(M?M(Tn):Tn)}catch(oi){be(oi)}},()=>X(Tn=>Tn.complete()),be,()=>Z.clear(),()=>(It=!0,0===gt));h.subscribe(Yt)})}(h=>h[Fn]),(0,vw.z)(h=>h.pipe((0,r2.x)((v,M)=>JSON.stringify(v)===JSON.stringify(M)),(0,Cf.O)(void 0),(0,o2.G)(),(0,Ya.U)(([v,M])=>v?Object.assign({firebase_previous_class:v[zo],firebase_previous_screen:v[Vh],firebase_previous_id:v[ki]},M):M)))))(n,r,h).pipe((0,mw.w)(be=>(0,s2.mG)(this,void 0,void 0,function*(){return M&&(yield M.initialized),y(X,"screen_view",be)}))).subscribe()})})}ngOnDestroy(){this.disposable&&this.disposable.unsubscribe()}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(me.F0,8),e.LFG(g.Dx,8),e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(et,8),e.LFG(e.zs3))},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})();const X_=new e.OlP("angularfire2.analytics-instances");function k2(c){return(o,n)=>{if(!Ri.nk.sync())return null;const r=o.runOutsideAngular(()=>c(n));return new gb(r)}}const R2={provide:class s{constructor(){return(0,Ri.vb)(bw)}},deps:[[new e.FiY,X_]]},N2={provide:gb,useFactory:function S2(c,o){if(!Ri.nk.sync())return null;const n=(0,Ri.JM)(bw,c,o);return n&&new gb(n)},deps:[[new e.FiY,X_],ra.Ot]};let F2=(()=>{class c{constructor(n,r){(0,ll.KN)("angularfire",Ri.q4.full,"analytics")}}return c.\u0275fac=function(n){return new(n||c)(e.LFG(mb,8),e.LFG(et,8))},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({providers:[N2,R2,{provide:e.ip1,useValue:Ri.nk.async,multi:!0}]}),c})();function L2(c,...o){return{ngModule:F2,providers:[{provide:X_,useFactory:k2(c),multi:!0,deps:[e.R0b,e.zs3,Ri.HU,ra.z6,...o]}]}}var U2=D(9832);let Z2=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c,bootstrap:[se]}),c.\u0275inj=e.cJS({providers:[mb],imports:[g.b2,z.ez,me.Bz.forRoot(Nb,{useHash:!1}),x.u5,x.UX,R.JF,hs.lN,Su.LD,ve.aw.forRoot({loader:{provide:ve.Zw,useFactory:B2,deps:[R.eN]}}),h_,p_.hO.initializeApp(hu_firebaseConfig),(0,ra.hX)(()=>(0,ra.ZF)(hu_firebaseConfig)),Oo(()=>Vd()),an(()=>$d()),L2(()=>p()),Uw(()=>n1()),zp(()=>b1()),ds.yb,Te.w.forRoot({id:"GTM-TF273QDR"}),qc,Ma.bB]}),c})();function B2(c){return new U2.w(c,"./assets/i18n/",".json")}(0,e.G48)(),g.q6().bootstrapModule(Z2).catch(c=>console.error(c))},1135:(wn,bt,D)=>{"use strict";D.d(bt,{X:()=>e});var g=D(7579);class e extends g.x{constructor(me){super(),this._value=me}get value(){return this.getValue()}_subscribe(me){const ve=super._subscribe(me);return!ve.closed&&me.next(this._value),ve}getValue(){const{hasError:me,thrownError:ve,_value:ae}=this;if(me)throw ve;return this._throwIfClosed(),ae}next(me){super.next(this._value=me)}}},9751:(wn,bt,D)=>{"use strict";D.d(bt,{y:()=>se});var g=D(930),e=D(727),R=D(8822),me=D(9635),ve=D(2416),ae=D(576),Te=D(2806);let se=(()=>{class de{constructor(Mt){Mt&&(this._subscribe=Mt)}lift(Mt){const We=new de;return We.source=this,We.operator=Mt,We}subscribe(Mt,We,At){const qe=function G(de){return de&&de instanceof g.Lv||function x(de){return de&&(0,ae.m)(de.next)&&(0,ae.m)(de.error)&&(0,ae.m)(de.complete)}(de)&&(0,e.Nn)(de)}(Mt)?Mt:new g.Hp(Mt,We,At);return(0,Te.x)(()=>{const{operator:lt,source:sn}=this;qe.add(lt?lt.call(qe,sn):sn?this._subscribe(qe):this._trySubscribe(qe))}),qe}_trySubscribe(Mt){try{return this._subscribe(Mt)}catch(We){Mt.error(We)}}forEach(Mt,We){return new(We=z(We))((At,qe)=>{const lt=new g.Hp({next:sn=>{try{Mt(sn)}catch(Xt){qe(Xt),lt.unsubscribe()}},error:qe,complete:At});this.subscribe(lt)})}_subscribe(Mt){var We;return null===(We=this.source)||void 0===We?void 0:We.subscribe(Mt)}[R.L](){return this}
vendor: 5,074 bytes, line 1
1pipe(...Mt){return(0,me.U)(Mt)(this)}toPromise(Mt){return new(Mt=z(Mt))((We,At)=>{let qe;this.subscribe(lt=>qe=lt,lt=>At(lt),()=>We(qe))})}}return de.create=dt=>new de(dt),de})();function z(de){var dt;return null!==(dt=de??ve.v.Promise)&&void 0!==dt?dt:Promise}},4707:(wn,bt,D)=>{"use strict";D.d(bt,{t:()=>R});var g=D(7579),e=D(6063);class R extends g.x{constructor(ve=1/0,ae=1/0,Te=e.l){super(),this._bufferSize=ve,this._windowTime=ae,this._timestampProvider=Te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ae===1/0,this._bufferSize=Math.max(1,ve),this._windowTime=Math.max(1,ae)}next(ve){const{isStopped:ae,_buffer:Te,_infiniteTimeWindow:se,_timestampProvider:z,_windowTime:x}=this;ae||(Te.push(ve),!se&&Te.push(z.now()+x)),this._trimBuffer(),super.next(ve)}_subscribe(ve){this._throwIfClosed(),this._trimBuffer();const ae=this._innerSubscribe(ve),{_infiniteTimeWindow:Te,_buffer:se}=this,z=se.slice();for(let x=0;x<z.length&&!ve.closed;x+=Te?1:2)ve.next(z[x]);return this._checkFinalizedStatuses(ve),ae}_trimBuffer(){const{_bufferSize:ve,_timestampProvider:ae,_buffer:Te,_infiniteTimeWindow:se}=this,z=(se?1:2)*ve;if(ve<1/0&&z<Te.length&&Te.splice(0,Te.length-z),!se){const x=ae.now();let G=0;for(let de=1;de<Te.length&&Te[de]<=x;de+=2)G=de;G&&Te.splice(0,G+1)}}}},7579:(wn,bt,D)=>{"use strict";D.d(bt,{x:()=>Te});var g=D(9751),e=D(727);const me=(0,D(3888).d)(z=>function(){z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=D(8737),ae=D(2806);let Te=(()=>{class z extends g.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const de=new se(this,this);return de.operator=G,de}_throwIfClosed(){if(this.closed)throw new me}next(G){(0,ae.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const de of this.currentObservers)de.next(G)}})}error(G){(0,ae.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:de}=this;for(;de.length;)de.shift().error(G)}})}complete(){(0,ae.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:de,isStopped:dt,observers:Mt}=this;return de||dt?e.Lc:(this.currentObservers=null,Mt.push(G),new e.w0(()=>{this.currentObservers=null,(0,ve.P)(Mt,G)}))}_checkFinalizedStatuses(G){const{hasError:de,thrownError:dt,isStopped:Mt}=this;de?G.error(dt):Mt&&G.complete()}asObservable(){const G=new g.y;return G.source=this,G}}return z.create=(x,G)=>new se(x,G),z})();class se extends Te{constructor(x,G){super(),this.destination=x,this.source=G}next(x){var G,de;null===(de=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===de||de.call(G,x)}error(x){var G,de;null===(de=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===de||de.call(G,x)}complete(){var x,G;null===(G=null===(x=this.destination)||void 0===x?void 0:x.complete)||void 0===G||G.call(x)}_subscribe(x){var G,de;return null!==(de=null===(G=this.source)||void 0===G?void 0:G.subscribe(x))&&void 0!==de?de:e.Lc}}},930:(wn,bt,D)=>{"use strict";D.d(bt,{Hp:()=>At,Lv:()=>de});var g=D(576),e=D(727),R=D(2416),me=D(7849),ve=D(5032);const ae=z("C",void 0,void 0);function z(ot,fe,ut){return{kind:ot,value:fe,error:ut}}var x=D(3410),G=D(2806);class de extends e.w0{constructor(fe){super(),this.isStopped=!1,fe?(this.destination=fe,(0,e.Nn)(fe)&&fe.add(this)):this.destination=Xt}static create(fe,ut,Ye){return new At(fe,ut,Ye)}next(fe){this.isStopped?sn(function se(ot){return z("N",ot,void 0)}(fe),this):this._next(fe)}error(fe){this.isStopped?sn(function Te(ot){return z("E",void 0,ot)}(fe),this):(this.isStopped=!0,this._error(fe))}complete(){this.isStopped?sn(ae,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(fe){this.destination.next(fe)}_error(fe){try{this.destination.error(fe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const dt=Function.prototype.bind;function Mt(ot,fe){return dt.call(ot,fe)}class We{constructor(fe){this.partialObserver=fe}next(fe){const{partialObserver:ut}=this;if(ut.next)try{ut.next(fe)}catch(Ye){qe(Ye)}}error(fe){const{partialObserver:ut}=this;if(ut.error)try{ut.error(fe)}catch(Ye){qe(Ye)}else qe(fe)}complete(){const{partialObserver:fe}=this;if(fe.complete)try{fe.complete()}catch(ut){qe(ut)}}}class At extends de{constructor(fe,ut,Ye){let it;if(super(),(0,g.m)(fe)||!fe)it={next:fe??void 0,error:ut??void 0,complete:Ye??void 0};else{let ze;
1this&&R.v.useDeprecatedNextContext?(ze=Object.create(fe),ze.unsubscribe=()=>this.unsubscribe(),it={next:fe.next&&Mt(fe.next,ze),error:fe.error&&Mt(fe.error,ze),complete:fe.complete&&Mt(fe.complete,ze)}):it=fe}this.destination=new We(it)}}function qe(ot){R.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(ot):(0,me.h)(ot)}function sn(ot,fe){const{onStoppedNotification:ut}=R.v;ut&&x.z.setTimeout(()=>ut(ot,fe))}const Xt={closed:!0,next:ve.Z,error:function lt(ot){throw ot},complete:ve.Z}},727:(wn,bt,D)=>{"use strict";D.d(bt,{Lc:()=>ae,w0:()=>ve,Nn:()=>Te});var g=D(576);const R=(0,D(3888).d)(z=>function(G){z(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((de,dt)=>`${dt+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var me=D(8737);class ve{constructor(x){this.initialTeardown=x,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let x;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const Mt of G)Mt.remove(this);else G.remove(this);const{initialTeardown:de}=this;if((0,g.m)(de))try{de()}catch(Mt){x=Mt instanceof R?Mt.errors:[Mt]}const{_finalizers:dt}=this;if(dt){this._finalizers=null;for(const Mt of dt)try{se(Mt)}catch(We){x=x??[],We instanceof R?x=[...x,...We.errors]:x.push(We)}}if(x)throw new R(x)}}add(x){var G;if(x&&x!==this)if(this.closed)se(x);else{if(x instanceof ve){if(x.closed||x._hasParent(this))return;x._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(x)}}_hasParent(x){const{_parentage:G}=this;return G===x||Array.isArray(G)&&G.includes(x)}_addParent(x){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(x),G):G?[G,x]:x}_removeParent(x){const{_parentage:G}=this;G===x?this._parentage=null:Array.isArray(G)&&(0,me.P)(G,x)}remove(x){const{_finalizers:G}=this;G&&(0,me.P)(G,x),x instanceof ve&&x._removeParent(this)}}ve.EMPTY=(()=>{const z=new ve;return z.closed=!0,z})();const ae=ve.EMPTY;function Te(z){return z instanceof ve||z&&"closed"in z&&(0,g.m)(z.remove)&&(0,g.m)(z.add)&&(0,g.m)(z.unsubscribe)}function se(z){(0,g.m)(z)?z():z.unsubscribe()}},2416:(wn,bt,D)=>{"use strict";D.d(bt,{v:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(wn,bt,D)=>{"use strict";D.d(bt,{a:()=>x});var g=D(9751),e=D(4742),R=D(8996),me=D(4671),ve=D(3268),ae=D(3269),Te=D(1810),se=D(5403),z=D(9672);function x(...dt){const Mt=(0,ae.yG)(dt),We=(0,ae.jO)(dt),{args:At,keys:qe}=(0,e.D)(dt);if(0===At.length)return(0,R.D)([],Mt);const lt=new g.y(function G(dt,Mt,We=me.y){return At=>{de(Mt,()=>{const{length:qe}=dt,lt=new Array(qe);let sn=qe,Xt=qe;for(let ot=0;ot<qe;ot++)de(Mt,()=>{const fe=(0,R.D)(dt[ot],Mt);let ut=!1;fe.subscribe((0,se.x)(At,Ye=>{lt[ot]=Ye,ut||(ut=!0,Xt--),Xt||At.next(We(lt.slice()))},()=>{--sn||At.complete()}))},At)},At)}}(At,Mt,qe?sn=>(0,Te.n)(qe,sn):me.y));return We?lt.pipe((0,ve.Z)(We)):lt}function de(dt,Mt,We){dt?(0,z.f)(We,dt,Mt):Mt()}},7272:(wn,bt,D)=>{"use strict";D.d(bt,{z:()=>ve});var g=D(8189),R=D(3269),me=D(8996);function ve(...ae){return function e(){return(0,g.J)(1)}()((0,me.D)(ae,(0,R.yG)(ae)))}},9770:(wn,bt,D)=>{"use strict";D.d(bt,{P:()=>R});var g=D(9751),e=D(8421);function R(me){return new g.y(ve=>{(0,e.Xf)(me()).subscribe(ve)})}},515:(wn,bt,D)=>{"use strict";D.d(bt,{E:()=>e});const e=new(D(9751).y)(ve=>ve.complete())},4128:(wn,bt,D)=>{"use strict";D.d(bt,{D:()=>se});var g=D(9751),e=D(4742),R=D(8421),me=D(3269),ve=D(5403),ae=D(3268),Te=D(1810);function se(...z){const x=(0,me.jO)(z),{args:G,keys:de}=(0,e.D)(z),dt=new g.y(Mt=>{const{length:We}=G;if(!We)return void Mt.complete();const At=new Array(We);let qe=We,lt=We;for(let sn=0;sn<We;sn++){let Xt=!1;(0,R.Xf)(G[sn]).subscribe((0,ve.x)(Mt,ot=>{Xt||(Xt=!0,lt--),At[sn]=ot},()=>qe--,void 0,()=>{(!qe||!Xt)&&(lt||Mt.next(de?(0,Te.n)(de,At):At),Mt.complete())}))}});return x?dt.pipe((0,ae.Z)(x)):dt}},8996:(wn,bt,D)=>{"use strict";D.d(bt,{D:()=>fe});var g=D(8421),e=D(5363),R=D(9468),ae=D(9751),se=D(2202),z=D(576),x=D(9672);function de(ut,Ye){if(!ut)throw new Error("Iterable cannot be null");return new ae.y(it=>{(0,x.f)(it,Ye,()=>{const ze=ut[Symbol.asyncIterator]();(0,x.f)(it,Ye,()=>{ze.next().then(xt=>{xt.done?it.complete():it.next(xt.value)})},0,!0)})})}var dt=D(3670),Mt=D(8239),We=D(1144),At=D(6495),qe=D(2206),lt=D(4532),sn=D(3260);function fe(ut,Ye){return Ye?function ot(ut,Ye){if(null!=ut){if((0,dt.c)(ut))return function me(ut,Ye){return(0,g.Xf)(ut).pipe((0,R.R)(Ye),(0,e.Q)(Ye))}(ut,Ye);if((0,We.z)(ut))return function Te(ut,Ye){return new ae.y(it=>{let ze=0;
1return Ye.schedule(function(){ze===ut.length?it.complete():(it.next(ut[ze++]),it.closed||this.schedule())})})}(ut,Ye);if((0,Mt.t)(ut))return function ve(ut,Ye){return(0,g.Xf)(ut).pipe((0,R.R)(Ye),(0,e.Q)(Ye))}(ut,Ye);if((0,qe.D)(ut))return de(ut,Ye);if((0,At.T)(ut))return function G(ut,Ye){return new ae.y(it=>{let ze;return(0,x.f)(it,Ye,()=>{ze=ut[se.h](),(0,x.f)(it,Ye,()=>{let xt,mt;try{({value:xt,done:mt}=ze.next())}catch(zt){return void it.error(zt)}mt?it.complete():it.next(xt)},0,!0)}),()=>(0,z.m)(ze?.return)&&ze.return()})}(ut,Ye);if((0,sn.L)(ut))return function Xt(ut,Ye){return de((0,sn.Q)(ut),Ye)}(ut,Ye)}throw(0,lt.z)(ut)}(ut,Ye):(0,g.Xf)(ut)}},4968:(wn,bt,D)=>{"use strict";D.d(bt,{R:()=>x});var g=D(8421),e=D(9751),R=D(5577),me=D(1144),ve=D(576),ae=D(3268);const Te=["addListener","removeListener"],se=["addEventListener","removeEventListener"],z=["on","off"];function x(We,At,qe,lt){if((0,ve.m)(qe)&&(lt=qe,qe=void 0),lt)return x(We,At,qe).pipe((0,ae.Z)(lt));const[sn,Xt]=function Mt(We){return(0,ve.m)(We.addEventListener)&&(0,ve.m)(We.removeEventListener)}(We)?se.map(ot=>fe=>We[ot](At,fe,qe)):function de(We){return(0,ve.m)(We.addListener)&&(0,ve.m)(We.removeListener)}(We)?Te.map(G(We,At)):function dt(We){return(0,ve.m)(We.on)&&(0,ve.m)(We.off)}(We)?z.map(G(We,At)):[];if(!sn&&(0,me.z)(We))return(0,R.z)(ot=>x(ot,At,qe))((0,g.Xf)(We));if(!sn)throw new TypeError("Invalid event target");return new e.y(ot=>{const fe=(...ut)=>ot.next(1<ut.length?ut:ut[0]);return sn(fe),()=>Xt(fe)})}function G(We,At){return qe=>lt=>We[qe](At,lt)}},8421:(wn,bt,D)=>{"use strict";D.d(bt,{Xf:()=>dt});var g=D(7582),e=D(1144),R=D(8239),me=D(9751),ve=D(3670),ae=D(2206),Te=D(4532),se=D(6495),z=D(3260),x=D(576),G=D(7849),de=D(8822);function dt(ot){if(ot instanceof me.y)return ot;if(null!=ot){if((0,ve.c)(ot))return function Mt(ot){return new me.y(fe=>{const ut=ot[de.L]();if((0,x.m)(ut.subscribe))return ut.subscribe(fe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ot);if((0,e.z)(ot))return function We(ot){return new me.y(fe=>{for(let ut=0;ut<ot.length&&!fe.closed;ut++)fe.next(ot[ut]);fe.complete()})}(ot);if((0,R.t)(ot))return function At(ot){return new me.y(fe=>{ot.then(ut=>{fe.closed||(fe.next(ut),fe.complete())},ut=>fe.error(ut)).then(null,G.h)})}(ot);if((0,ae.D)(ot))return lt(ot);if((0,se.T)(ot))return function qe(ot){return new me.y(fe=>{for(const ut of ot)if(fe.next(ut),fe.closed)return;fe.complete()})}(ot);if((0,z.L)(ot))return function sn(ot){return lt((0,z.Q)(ot))}(ot)}throw(0,Te.z)(ot)}function lt(ot){return new me.y(fe=>{(function Xt(ot,fe){var ut,Ye,it,ze;return(0,g.mG)(this,void 0,void 0,function*(){try{for(ut=(0,g.KL)(ot);!(Ye=yield ut.next()).done;)if(fe.next(Ye.value),fe.closed)return}catch(xt){it={error:xt}}finally{try{Ye&&!Ye.done&&(ze=ut.return)&&(yield ze.call(ut))}finally{if(it)throw it.error}}fe.complete()})})(ot,fe).catch(ut=>fe.error(ut))})}},6451:(wn,bt,D)=>{"use strict";D.d(bt,{T:()=>ae});var g=D(8189),e=D(8421),R=D(515),me=D(3269),ve=D(8996);function ae(...Te){const se=(0,me.yG)(Te),z=(0,me._6)(Te,1/0),x=Te;return x.length?1===x.length?(0,e.Xf)(x[0]):(0,g.J)(z)((0,ve.D)(x,se)):R.E}},9646:(wn,bt,D)=>{"use strict";D.d(bt,{of:()=>R});var g=D(3269),e=D(8996);function R(...me){const ve=(0,g.yG)(me);return(0,e.D)(me,ve)}},5963:(wn,bt,D)=>{"use strict";D.d(bt,{H:()=>ve});var g=D(9751),e=D(4986),R=D(3532);function ve(ae=0,Te,se=e.P){let z=-1;return null!=Te&&((0,R.K)(Te)?se=Te:z=Te),new g.y(x=>{let G=function me(ae){return ae instanceof Date&&!isNaN(ae)}(ae)?+ae-se.now():ae;G<0&&(G=0);let de=0;return se.schedule(function(){x.closed||(x.next(de++),0<=z?this.schedule(void 0,z):x.complete())},G)})}},5403:(wn,bt,D)=>{"use strict";D.d(bt,{Q:()=>R,x:()=>e});var g=D(930);function e(me,ve,ae,Te,se){return new R(me,ve,ae,Te,se)}class R extends g.Lv{constructor(ve,ae,Te,se,z,x){super(ve),this.onFinalize=z,this.shouldUnsubscribe=x,this._next=ae?function(G){try{ae(G)}catch(de){ve.error(de)}}:super._next,this._error=se?function(G){try{se(G)}catch(de){ve.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=Te?function(){try{Te()}catch(G){ve.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ve;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ae}=this;super.unsubscribe(),!ae&&(null===(ve=this.onFinalize)||void 0===ve||ve.call(this))}}}},4351:(wn,bt,D)=>{"use strict";D.d(bt,{b:()=>R});var g=D(5577),e=D(576);function R(me,ve){return(0,e.m)(ve)?(0,g.z)(me,ve,1):(0,g.z)(me,1)}},8372:(wn,bt,D)=>{"use strict";D.d(bt,{b:()=>me});var g=D(4986),e=D(4482),R=D(5403);function me(ve,ae=g.z){return(0,e.e)((Te,se)=>{let z=null,x=null,G=null;const de=()=>{if(z){z.unsubscribe(),z=null;const Mt=x;x=null,se.next(Mt)}};function dt(){const Mt=G+ve,We=ae.now();if(We<Mt)return z=this.schedule(void 0,Mt-We),void se.add(z);de()}Te.subscribe((0,R.x)(se,Mt=>{x=Mt,G=ae.now(),z||(z=ae.schedule(dt,ve),se.add(z))},()=>{de(),se.complete()},void 0,()=>{x=z=null}))})}},6590:(wn,bt,D)=>{"use strict";D.d(bt,{d:()=>R});var g=D(4482),e=D(5403);function R(me){return(0,g.e)((ve,ae)=>{let Te=!1;ve.subscribe((0,e.x)(ae,se=>{Te=!0,ae.next(se)},()=>{Te||ae.next(me),ae.complete()}
1))})}},1884:(wn,bt,D)=>{"use strict";D.d(bt,{x:()=>me});var g=D(4671),e=D(4482),R=D(5403);function me(ae,Te=g.y){return ae=ae??ve,(0,e.e)((se,z)=>{let x,G=!0;se.subscribe((0,R.x)(z,de=>{const dt=Te(de);(G||!ae(x,dt))&&(G=!1,x=dt,z.next(de))}))})}function ve(ae,Te){return ae===Te}},9300:(wn,bt,D)=>{"use strict";D.d(bt,{h:()=>R});var g=D(4482),e=D(5403);function R(me,ve){return(0,g.e)((ae,Te)=>{let se=0;ae.subscribe((0,e.x)(Te,z=>me.call(ve,z,se++)&&Te.next(z)))})}},590:(wn,bt,D)=>{"use strict";D.d(bt,{P:()=>Te});var g=D(6805),e=D(9300),R=D(5698),me=D(6590),ve=D(8068),ae=D(4671);function Te(se,z){const x=arguments.length>=2;return G=>G.pipe(se?(0,e.h)((de,dt)=>se(de,dt,G)):ae.y,(0,R.q)(1),x?(0,me.d)(z):(0,ve.T)(()=>new g.K))}},4004:(wn,bt,D)=>{"use strict";D.d(bt,{U:()=>R});var g=D(4482),e=D(5403);function R(me,ve){return(0,g.e)((ae,Te)=>{let se=0;ae.subscribe((0,e.x)(Te,z=>{Te.next(me.call(ve,z,se++))}))})}},8189:(wn,bt,D)=>{"use strict";D.d(bt,{J:()=>R});var g=D(5577),e=D(4671);function R(me=1/0){return(0,g.z)(e.y,me)}},5577:(wn,bt,D)=>{"use strict";D.d(bt,{z:()=>se});var g=D(4004),e=D(8421),R=D(4482),me=D(9672),ve=D(5403),Te=D(576);function se(z,x,G=1/0){return(0,Te.m)(x)?se((de,dt)=>(0,g.U)((Mt,We)=>x(de,Mt,dt,We))((0,e.Xf)(z(de,dt))),G):("number"==typeof x&&(G=x),(0,R.e)((de,dt)=>function ae(z,x,G,de,dt,Mt,We,At){const qe=[];let lt=0,sn=0,Xt=!1;const ot=()=>{Xt&&!qe.length&&!lt&&x.complete()},fe=Ye=>lt<de?ut(Ye):qe.push(Ye),ut=Ye=>{Mt&&x.next(Ye),lt++;let it=!1;(0,e.Xf)(G(Ye,sn++)).subscribe((0,ve.x)(x,ze=>{dt?.(ze),Mt?fe(ze):x.next(ze)},()=>{it=!0},void 0,()=>{if(it)try{for(lt--;qe.length&<<de;){const ze=qe.shift();We?(0,me.f)(x,We,()=>ut(ze)):ut(ze)}ot()}catch(ze){x.error(ze)}}))};return z.subscribe((0,ve.x)(x,fe,()=>{Xt=!0,ot()})),()=>{At?.()}}(de,dt,z,G)))}},5363:(wn,bt,D)=>{"use strict";D.d(bt,{Q:()=>me});var g=D(9672),e=D(4482),R=D(5403);function me(ve,ae=0){return(0,e.e)((Te,se)=>{Te.subscribe((0,R.x)(se,z=>(0,g.f)(se,ve,()=>se.next(z),ae),()=>(0,g.f)(se,ve,()=>se.complete(),ae),z=>(0,g.f)(se,ve,()=>se.error(z),ae)))})}},1520:(wn,bt,D)=>{"use strict";D.d(bt,{G:()=>R});var g=D(4482),e=D(5403);function R(){return(0,g.e)((me,ve)=>{let ae,Te=!1;me.subscribe((0,e.x)(ve,se=>{const z=ae;ae=se,Te&&ve.next([z,se]),Te=!0}))})}},5026:(wn,bt,D)=>{"use strict";D.d(bt,{R:()=>me});var g=D(4482),e=D(5403);function R(ve,ae,Te,se,z){return(x,G)=>{let de=Te,dt=ae,Mt=0;x.subscribe((0,e.x)(G,We=>{const At=Mt++;dt=de?ve(dt,We,At):(de=!0,We),se&&G.next(dt)},z&&(()=>{de&&G.next(dt),G.complete()})))}}function me(ve,ae){return(0,g.e)(R(ve,ae,arguments.length>=2,!0))}},3099:(wn,bt,D)=>{"use strict";D.d(bt,{B:()=>ve});var g=D(8421),e=D(7579),R=D(930),me=D(4482);function ve(Te={}){const{connector:se=(()=>new e.x),resetOnError:z=!0,resetOnComplete:x=!0,resetOnRefCountZero:G=!0}=Te;return de=>{let dt,Mt,We,At=0,qe=!1,lt=!1;const sn=()=>{Mt?.unsubscribe(),Mt=void 0},Xt=()=>{sn(),dt=We=void 0,qe=lt=!1},ot=()=>{const fe=dt;Xt(),fe?.unsubscribe()};return(0,me.e)((fe,ut)=>{At++,!lt&&!qe&&sn();const Ye=We=We??se();ut.add(()=>{At--,0===At&&!lt&&!qe&&(Mt=ae(ot,G))}),Ye.subscribe(ut),!dt&&At>0&&(dt=new R.Hp({next:it=>Ye.next(it),error:it=>{lt=!0,sn(),Mt=ae(Xt,z,it),Ye.error(it)},complete:()=>{qe=!0,sn(),Mt=ae(Xt,x),Ye.complete()}}),(0,g.Xf)(fe).subscribe(dt))})(de)}}function ae(Te,se,...z){if(!0===se)return void Te();if(!1===se)return;const x=new R.Hp({next:()=>{x.unsubscribe(),Te()}});return se(...z).subscribe(x)}},4782:(wn,bt,D)=>{"use strict";D.d(bt,{d:()=>R});var g=D(4707),e=D(3099);function R(me,ve,ae){let Te,se=!1;return me&&"object"==typeof me?({bufferSize:Te=1/0,windowTime:ve=1/0,refCount:se=!1,scheduler:ae}=me):Te=me??1/0,(0,e.B)({connector:()=>new g.t(Te,ve,ae),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:se})}},8675:(wn,bt,D)=>{"use strict";D.d(bt,{O:()=>me});var g=D(7272),e=D(3269),R=D(4482);function me(...ve){const ae=(0,e.yG)(ve);return(0,R.e)((Te,se)=>{(ae?(0,g.z)(ve,Te,ae):(0,g.z)(ve,Te)).subscribe(se)})}},9468:(wn,bt,D)=>{"use strict";D.d(bt,{R:()=>e});var g=D(4482);function e(R,me=0){return(0,g.e)((ve,ae)=>{ae.add(R.schedule(()=>ve.subscribe(ae),me))})}},3900:(wn,bt,D)=>{"use strict";D.d(bt,{w:()=>me});var g=D(8421),e=D(4482),R=D(5403);function me(ve,ae){return(0,e.e)((Te,se)=>{let z=null,x=0,G=!1;const de=()=>G&&!z&&se.complete();Te.subscribe((0,R.x)(se,dt=>{z?.unsubscribe();let Mt=0;const We=x++;(0,g.Xf)(ve(dt,We)).subscribe(z=(0,R.x)(se,At=>se.next(ae?ae(dt,At,We,Mt++):At),()=>{z=null,de()}))},()=>{G=!0,de()}))})}},5698:(wn,bt,D)=>{"use strict";D.d(bt,{q:()=>me});var g=D(515),e=D(4482),R=D(5403);function me(ve){return ve<=0?()=>g.E:(0,e.e)((ae,Te)=>{let se=0;ae.subscribe((0,R.x)(Te,z=>{++se<=ve&&(Te.next(z),ve<=se&&Te.complete())}))})}},2722:(wn,bt,D)=>{"use strict";D.d(bt,{R:()=>ve});var g=D(4482),e=D(5403),R=D(8421),me=D(5032);function ve(ae){return(0,g.e)((Te,se)=>{(0,R.Xf)(ae).subscribe((0,e.x)(se,()=>se.complete(),me.Z)),!se.closed&&Te.subscribe(se)})}},2529:(wn,bt,D)=>{"use strict";D.d(bt,{o:()=>R});var g=D(4482),e=D(5403);function R(me,ve=!1){return(0,g.e)((ae,Te)=>{let se=0;ae.subscribe((0,e.x)(Te,z=>{const x=me(z,se++);(x||ve)&&Te.next(z),!x&&Te.complete()}
vendor: 9,308 bytes, line 1
1))})}},8505:(wn,bt,D)=>{"use strict";D.d(bt,{b:()=>ve});var g=D(576),e=D(4482),R=D(5403),me=D(4671);function ve(ae,Te,se){const z=(0,g.m)(ae)||Te||se?{next:ae,error:Te,complete:se}:ae;return z?(0,e.e)((x,G)=>{var de;null===(de=z.subscribe)||void 0===de||de.call(z);let dt=!0;x.subscribe((0,R.x)(G,Mt=>{var We;null===(We=z.next)||void 0===We||We.call(z,Mt),G.next(Mt)},()=>{var Mt;dt=!1,null===(Mt=z.complete)||void 0===Mt||Mt.call(z),G.complete()},Mt=>{var We;dt=!1,null===(We=z.error)||void 0===We||We.call(z,Mt),G.error(Mt)},()=>{var Mt,We;dt&&(null===(Mt=z.unsubscribe)||void 0===Mt||Mt.call(z)),null===(We=z.finalize)||void 0===We||We.call(z)}))}):me.y}},8068:(wn,bt,D)=>{"use strict";D.d(bt,{T:()=>me});var g=D(6805),e=D(4482),R=D(5403);function me(ae=ve){return(0,e.e)((Te,se)=>{let z=!1;Te.subscribe((0,R.x)(se,x=>{z=!0,se.next(x)},()=>z?se.complete():se.error(ae())))})}function ve(){return new g.K}},4408:(wn,bt,D)=>{"use strict";D.d(bt,{o:()=>ve});var g=D(727);class e extends g.w0{constructor(Te,se){super()}schedule(Te,se=0){return this}}const R={setInterval(ae,Te,...se){const{delegate:z}=R;return z?.setInterval?z.setInterval(ae,Te,...se):setInterval(ae,Te,...se)},clearInterval(ae){const{delegate:Te}=R;return(Te?.clearInterval||clearInterval)(ae)},delegate:void 0};var me=D(8737);class ve extends e{constructor(Te,se){super(Te,se),this.scheduler=Te,this.work=se,this.pending=!1}schedule(Te,se=0){var z;if(this.closed)return this;this.state=Te;const x=this.id,G=this.scheduler;return null!=x&&(this.id=this.recycleAsyncId(G,x,se)),this.pending=!0,this.delay=se,this.id=null!==(z=this.id)&&void 0!==z?z:this.requestAsyncId(G,this.id,se),this}requestAsyncId(Te,se,z=0){return R.setInterval(Te.flush.bind(Te,this),z)}recycleAsyncId(Te,se,z=0){if(null!=z&&this.delay===z&&!1===this.pending)return se;null!=se&&R.clearInterval(se)}execute(Te,se){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const z=this._execute(Te,se);if(z)return z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Te,se){let x,z=!1;try{this.work(Te)}catch(G){z=!0,x=G||new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),x}unsubscribe(){if(!this.closed){const{id:Te,scheduler:se}=this,{actions:z}=se;this.work=this.state=this.scheduler=null,this.pending=!1,(0,me.P)(z,this),null!=Te&&(this.id=this.recycleAsyncId(se,Te,null)),this.delay=null,super.unsubscribe()}}}},7565:(wn,bt,D)=>{"use strict";D.d(bt,{v:()=>R});var g=D(6063);class e{constructor(ve,ae=e.now){this.schedulerActionCtor=ve,this.now=ae}schedule(ve,ae=0,Te){return new this.schedulerActionCtor(this,ve).schedule(Te,ae)}}e.now=g.l.now;class R extends e{constructor(ve,ae=e.now){super(ve,ae),this.actions=[],this._active=!1}flush(ve){const{actions:ae}=this;if(this._active)return void ae.push(ve);let Te;this._active=!0;do{if(Te=ve.execute(ve.state,ve.delay))break}while(ve=ae.shift());if(this._active=!1,Te){for(;ve=ae.shift();)ve.unsubscribe();throw Te}}}},6406:(wn,bt,D)=>{"use strict";D.d(bt,{Z:()=>Te});var g=D(4408),e=D(727);const R={schedule(z){let x=requestAnimationFrame,G=cancelAnimationFrame;const{delegate:de}=R;de&&(x=de.requestAnimationFrame,G=de.cancelAnimationFrame);const dt=x(Mt=>{G=void 0,z(Mt)});return new e.w0(()=>G?.(dt))},requestAnimationFrame(...z){const{delegate:x}=R;return(x?.requestAnimationFrame||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:x}=R;return(x?.cancelAnimationFrame||cancelAnimationFrame)(...z)},delegate:void 0};var ve=D(7565);const Te=new class ae extends ve.v{flush(x){this._active=!0;const G=this._scheduled;this._scheduled=void 0;const{actions:de}=this;let dt;x=x||de.shift();do{if(dt=x.execute(x.state,x.delay))break}while((x=de[0])&&x.id===G&&de.shift());if(this._active=!1,dt){for(;(x=de[0])&&x.id===G&&de.shift();)x.unsubscribe();throw dt}}}(class me extends g.o{constructor(x,G){super(x,G),this.scheduler=x,this.work=G}requestAsyncId(x,G,de=0){return null!==de&&de>0?super.requestAsyncId(x,G,de):(x.actions.push(this),x._scheduled||(x._scheduled=R.requestAnimationFrame(()=>x.flush(void 0))))}recycleAsyncId(x,G,de=0){var dt;if(null!=de?de>0:this.delay>0)return super.recycleAsyncId(x,G,de);const{actions:Mt}=x;null!=G&&(null===(dt=Mt[Mt.length-1])||void 0===dt?void 0:dt.id)!==G&&(R.cancelAnimationFrame(G),x._scheduled=void 0)}})},4986:(wn,bt,D)=>{"use strict";D.d(bt,{P:()=>me,z:()=>R});var g=D(4408);const R=new(D(7565).v)(g.o),me=R},6063:(wn,bt,D)=>{"use strict";D.d(bt,{l:()=>g});const g={now:()=>(g.delegate||Date).now(),delegate:void 0}},3410:(wn,bt,D)=>{"use strict";D.d(bt,{z:()=>g});const g={setTimeout(e,R,...me){const{delegate:ve}=g;return ve?.setTimeout?ve.setTimeout(e,R,...me):setTimeout(e,R,...me)},clearTimeout(e){const{delegate:R}=g;return(R?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(wn,bt,D)=>{"use strict";D.d(bt,{h:()=>e});const e=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(wn,bt,D)=>{"use strict";D.d(bt,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(wn,bt,D)=>{"use strict";D.d(bt,{K:()=>e});const e=(0,D(3888).d)(R=>function(){R(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(wn,bt,D)=>{"use strict";D.d(bt,{_6:()=>ae,jO:()=>me,yG:()=>ve});var g=D(576),e=D(3532);function R(Te){return Te[Te.length-1]}function me(Te){return(0,g.m)(R(Te))?Te.pop():void 0}function ve(Te){return(0,e.K)(R(Te))?Te.pop():void 0}function ae(Te,se){return"number"==typeof R(Te)?Te.pop():se}},4742:(wn,bt,D)=>{"use strict";D.d(bt,{D:()=>ve});const{isArray:g}=Array,{getPrototypeOf:e,prototype:R,keys:me}=Object;function ve(Te){if(1===Te.length){const se=Te[0];if(g(se))return{args:se,keys:null};if(function ae(Te){return Te&&"object"==typeof Te&&e(Te)===R}(se)){const z=me(se);return{args:z.map(x=>se[x]),keys:z}}}return{args:Te,keys:null}}},8737:(wn,bt,D)=>{"use strict";function g(e,R){if(e){const me=e.indexOf(R);0<=me&&e.splice(me,1)}}D.d(bt,{P:()=>g})},3888:(wn,bt,D)=>{"use strict";function g(e){const me=e(ve=>{Error.call(ve),ve.stack=(new Error).stack});return me.prototype=Object.create(Error.prototype),me.prototype.constructor=me,me}D.d(bt,{d:()=>g})},1810:(wn,bt,D)=>{"use strict";function g(e,R){return e.reduce((me,ve,ae)=>(me[ve]=R[ae],me),{})}D.d(bt,{n:()=>g})},2806:(wn,bt,D)=>{"use strict";D.d(bt,{O:()=>me,x:()=>R});var g=D(2416);let e=null;function R(ve){if(g.v.useDeprecatedSynchronousErrorHandling){const ae=!e;if(ae&&(e={errorThrown:!1,error:null}),ve(),ae){const{errorThrown:Te,error:se}=e;if(e=null,Te)throw se}}else ve()}function me(ve){g.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=ve)}},9672:(wn,bt,D)=>{"use strict";function g(e,R,me,ve=0,ae=!1){const Te=R.schedule(function(){me(),ae?e.add(this.schedule(null,ve)):this.unsubscribe()},ve);if(e.add(Te),!ae)return Te}D.d(bt,{f:()=>g})},4671:(wn,bt,D)=>{"use strict";function g(e){return e}D.d(bt,{y:()=>g})},1144:(wn,bt,D)=>{"use strict";D.d(bt,{z:()=>g});const g=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(wn,bt,D)=>{"use strict";D.d(bt,{D:()=>e});var g=D(576);function e(R){return Symbol.asyncIterator&&(0,g.m)(R?.[Symbol.asyncIterator])}},576:(wn,bt,D)=>{"use strict";function g(e){return"function"==typeof e}D.d(bt,{m:()=>g})},3670:(wn,bt,D)=>{"use strict";D.d(bt,{c:()=>R});var g=D(8822),e=D(576);function R(me){return(0,e.m)(me[g.L])}},6495:(wn,bt,D)=>{"use strict";D.d(bt,{T:()=>R});var g=D(2202),e=D(576);function R(me){return(0,e.m)(me?.[g.h])}},5191:(wn,bt,D)=>{"use strict";D.d(bt,{b:()=>R});var g=D(9751),e=D(576);function R(me){return!!me&&(me instanceof g.y||(0,e.m)(me.lift)&&(0,e.m)(me.subscribe))}},8239:(wn,bt,D)=>{"use strict";D.d(bt,{t:()=>e});var g=D(576);function e(R){return(0,g.m)(R?.then)}},3260:(wn,bt,D)=>{"use strict";D.d(bt,{L:()=>me,Q:()=>R});var g=D(7582),e=D(576);function R(ve){return(0,g.FC)(this,arguments,function*(){const Te=ve.getReader();try{for(;;){const{value:se,done:z}=yield(0,g.qq)(Te.read());if(z)return yield(0,g.qq)(void 0);yield yield(0,g.qq)(se)}}finally{Te.releaseLock()}})}function me(ve){return(0,e.m)(ve?.getReader)}},3532:(wn,bt,D)=>{"use strict";D.d(bt,{K:()=>e});var g=D(576);function e(R){return R&&(0,g.m)(R.schedule)}},4482:(wn,bt,D)=>{"use strict";D.d(bt,{A:()=>e,e:()=>R});var g=D(576);function e(me){return(0,g.m)(me?.lift)}function R(me){return ve=>{if(e(ve))return ve.lift(function(ae){try{return me(ae,this)}catch(Te){this.error(Te)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(wn,bt,D)=>{"use strict";D.d(bt,{Z:()=>me});var g=D(4004);const{isArray:e}=Array;function me(ve){return(0,g.U)(ae=>function R(ve,ae){return e(ae)?ve(...ae):ve(ae)}(ve,ae))}},5032:(wn,bt,D)=>{"use strict";function g(){}D.d(bt,{Z:()=>g})},9635:(wn,bt,D)=>{"use strict";D.d(bt,{U:()=>R,z:()=>e});var g=D(4671);function e(...me){return R(me)}function R(me){return 0===me.length?g.y:1===me.length?me[0]:function(ae){return me.reduce((Te,se)=>se(Te),ae)}}},7849:(wn,bt,D)=>{"use strict";D.d(bt,{h:()=>R});var g=D(2416),e=D(3410);function R(me){e.z.setTimeout(()=>{const{onUnhandledError:ve}=g.v;if(!ve)throw me;ve(me)})}},4532:(wn,bt,D)=>{"use strict";function g(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invali
1d object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(bt,{z:()=>g})},5226:function(wn){wn.exports=function(){"use strict";function bt(S,U,ee){if("function"==typeof S?S===U:S.has(U))return arguments.length<3?U:ee;throw new TypeError("Private element is not present on this object")}function g(S,U){return S.get(bt(S,U))}function e(S,U,ee){(function D(S,U){if(U.has(S))throw new TypeError("Cannot initialize the same private elements twice on an object")})(S,U),U.set(S,ee)}const ve={},Te=S=>new Promise(U=>{if(!S)return U();const ee=window.scrollX,He=window.scrollY;ve.restoreFocusTimeout=setTimeout(()=>{ve.previousActiveElement instanceof HTMLElement?(ve.previousActiveElement.focus(),ve.previousActiveElement=null):document.body&&document.body.focus(),U()},100),window.scrollTo(ee,He)}),x=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((S,U)=>(S[U]="swal2-"+U,S),{}),de=["success","warning","info","question","error"].reduce((S,U)=>(S[U]="swal2-"+U,S),{}),dt="SweetAlert2:",Mt=S=>S.charAt(0).toUpperCase()+S.slice(1),We=S=>{console.warn(`${dt} ${"object"==typeof S?S.join(" "):S}`)},At=S=>{console.error(`${dt} ${S}`)},qe=[],sn=(S,U=null)=>{(S=>{qe.includes(S)||(qe.push(S),We(S))})(`"${S}" is deprecated and will be removed in the next major release.${U?` Use "${U}" instead.`:""}`)},Xt=S=>"function"==typeof S?S():S,ot=S=>S&&"function"==typeof S.toPromise,fe=S=>ot(S)?S.toPromise():Promise.resolve(S),ut=S=>S&&Promise.resolve(S)===S,Ye=()=>document.body.querySelector(`.${x.container}`),it=S=>{const U=Ye();return U?U.querySelector(S):null},ze=S=>it(`.${S}`),xt=()=>ze(x.popup),mt=()=>ze(x.icon),pn=()=>ze(x.title),$t=()=>ze(x["html-container"]),Vn=()=>ze(x.image),Ut=()=>ze(x["progress-steps"]),gn=()=>ze(x["validation-message"]),tt=()=>it(`.${x.actions} .${x.confirm}`),Zt=()=>it(`.${x.actions} .${x.cancel}`),St=()=>it(`.${x.actions} .${x.deny}`),je=()=>it(`.${x.loader}`),ie=()=>ze(x.actions),ft=()=>ze(x.footer),Wt=()=>ze(x["timer-progress-bar"]),Dt=()=>ze(x.close),Gn=()=>{const S=xt();if(!S)return[];const U=S.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),ee=Array.from(U).sort((Un,tr)=>{const Oi=parseInt(Un.getAttribute("tabindex")||"0"),Kn=parseInt(tr.getAttribute("tabindex")||"0");return Oi>Kn?1:Oi<Kn?-1:0}),He=S.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),Rt=Array.from(He).filter(Un=>"-1"!==Un.getAttribute("tabindex"));return[...new Set(ee.concat(Rt))].filter(Un=>O(Un))},qn=()=>Wn(document.body,x.shown)&&!Wn(document.body,x["toast-shown"])&&!Wn(document.body,x["no-backdrop"]),kn=()=>{const S=xt();return!!S&&Wn(S,x.toast)},An=(S,U)=>{if(S.textContent="",U){const He=(new DOMParser).parseFromString(U,"text/html"),Rt=He.querySelector("head");Rt&&Array.from(Rt.childNodes).forEach(tr=>{S.appendChild(tr)});const Un=He.querySelector("body");Un&&Array.from(Un.childNodes).forEach(tr=>{tr instanceof HTMLVideoElement||tr instanceof HTMLAudioElement?S.appendChild(tr.cloneNode(!0)):S.appendChild(tr)})}},Wn=(S,U)=>{if(!U)return!1;const ee=U.split(/\s+/);for(let He=0;He<ee.length;He++)if(!S.classList.contains(ee[He]))return!1;return!0},Hn=(S,U,ee)=>{if(((S,U)=>{Array.from(S.classList).forEach(ee=>{!Object.values(x).includes(ee)&&!Object.values(de).includes(ee)&&!Object.values(U.showClass||{}).includes(ee)&&S.classList.remove(ee)})})(S,U),!U.customClass)return;const He=U.customClass[ee];if(He){if("string"!=typeof He&&!He.forEach)return void We(`Invalid type of customClass.${ee}! Expected string or iterable object, got "${typeof He}"`);zn(S,He)}},yi=(S,U)=>{if(!U)return null;switch(U){case"select":case"textarea":case"file":return S.querySelector(`.${x.popup} > .${x[U]}`);case"checkbox":return S.querySelector(`.${x.popup} > .${x.checkbox} input`);case"radio":return S.querySelector(`.${x.popup} > .${x.radio} input:checked`)||S.querySelector(`.${x.popup} > .${x.radio} input:first-child`);case"range":return S.querySelector(`.${x.popup} > .${x.range} input`);default:return S.querySelector(`.${x.popup} > .${x.input}`)}},_n=S=>{if(S.focus(),"file"!==S.type){const U=S.value;
1S.value="",S.value=U}},ui=(S,U,ee)=>{!S||!U||("string"==typeof U&&(U=U.split(/\s+/).filter(Boolean)),U.forEach(He=>{Array.isArray(S)?S.forEach(Rt=>{ee?Rt.classList.add(He):Rt.classList.remove(He)}):ee?S.classList.add(He):S.classList.remove(He)}))},zn=(S,U)=>{ui(S,U,!0)},ri=(S,U)=>{ui(S,U,!1)},Pi=(S,U)=>{const ee=Array.from(S.children);for(let He=0;He<ee.length;He++){const Rt=ee[He];if(Rt instanceof HTMLElement&&Wn(Rt,U))return Rt}},li=(S,U,ee)=>{ee===`${parseInt(`${ee}`)}`&&(ee=parseInt(ee)),ee||0===parseInt(`${ee}`)?S.style.setProperty(U,"number"==typeof ee?`${ee}px`:ee):S.style.removeProperty(U)},ei=(S,U="flex")=>{!S||(S.style.display=U)},Ze=S=>{!S||(S.style.display="none")},Oe=(S,U="block")=>{!S||new MutationObserver(()=>{le(S,S.innerHTML,U)}).observe(S,{childList:!0,subtree:!0})},P=(S,U,ee,He)=>{const Rt=S.querySelector(U);Rt&&Rt.style.setProperty(ee,He)},le=(S,U,ee="flex")=>{U?ei(S,ee):Ze(S)},O=S=>Boolean(S&&(S.offsetWidth||S.offsetHeight||S.getClientRects().length)),ke=S=>Boolean(S.scrollHeight>S.clientHeight),ye=S=>{const U=window.getComputedStyle(S),ee=parseFloat(U.getPropertyValue("animation-duration")||"0"),He=parseFloat(U.getPropertyValue("transition-duration")||"0");return ee>0||He>0},Je=(S,U=!1)=>{const ee=Wt();!ee||O(ee)&&(U&&(ee.style.transition="none",ee.style.width="100%"),setTimeout(()=>{ee.style.transition=`width ${S/1e3}s linear`,ee.style.width="0%"},10))},st=`\n <div aria-labelledby="${x.title}" aria-describedby="${x["html-container"]}" class="${x.popup}" tabindex="-1">\n <button type="button" class="${x.close}"></button>\n <ul class="${x["progress-steps"]}"></ul>\n <div class="${x.icon}"></div>\n <img class="${x.image}" />\n <h2 class="${x.title}" id="${x.title}"></h2>\n <div class="${x["html-container"]}" id="${x["html-container"]}"></div>\n <input class="${x.input}" id="${x.input}" />\n <input type="file" class="${x.file}" />\n <div class="${x.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${x.select}" id="${x.select}"></select>\n <div class="${x.radio}"></div>\n <label class="${x.checkbox}">\n <input type="checkbox" id="${x.checkbox}" />\n <span class="${x.label}"></span>\n </label>\n <textarea class="${x.textarea}" id="${x.textarea}"></textarea>\n <div class="${x["validation-message"]}" id="${x["validation-message"]}"></div>\n <div class="${x.actions}">\n <div class="${x.loader}"></div>\n <button type="button" class="${x.confirm}"></button>\n <button type="button" class="${x.deny}"></button>\n <button type="button" class="${x.cancel}"></button>\n </div>\n <div class="${x.footer}"></div>\n <div class="${x["timer-progress-bar-container"]}">\n <div class="${x["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),V=()=>{ve.currentInstance&&ve.currentInstance.resetValidationMessage()},Li=S=>{const U=(()=>{const S=Ye();return!!S&&(S.remove(),ri([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]),!0)})();if(typeof window>"u"||typeof document>"u")return void At("SweetAlert2 requires document to initialize");const ee=document.createElement("div");ee.className=x.container,U&&zn(ee,x["no-transition"]),An(ee,st),ee.dataset.swal2Theme=S.theme;const He=(S=>{if("string"==typeof S){const U=document.querySelector(S);if(!U)throw new Error(`Target element "${S}" not found`);return U}return S})(S.target||"body");He.appendChild(ee),S.topLayer&&(ee.setAttribute("popover",""),ee.showPopover()),(S=>{const U=xt();!U||(U.setAttribute("role",S.toast?"alert":"dialog"),U.setAttribute("aria-live",S.toast?"polite":"assertive"),S.toast||U.setAttribute("aria-modal","true"))})(S),(S=>{"rtl"===window.getComputedStyle(S).direction&&(zn(Ye(),x.rtl),ve.isRTL=!0)})(He),(()=>{const S=xt();if(!S)return;const U=Pi(S,x.input),ee=Pi(S,x.file),He=S.querySelector(`.${x.range} input`),Rt=S.querySelector(`.${x.range} output`),Un=Pi(S,x.select),tr=S.querySelector(`.${x.checkbox} input`),Oi=Pi(S,x.textarea);U&&(U.oninput=V),ee&&(ee.onchange=V),Un&&(Un.onchange=V),tr&&(tr.onchange=V),Oi&&(Oi.oninput=V),He&&Rt&&(He.oninput=()=>{V(),Rt.value=He.value},He.onchange=()=>{V(),Rt.value=He.value})})()},Ii=(S,U)=>{S instanceof HTMLElement?U.appendChild(S):"object"==typeof S?qi(S,U):S&&An(U,S)},qi=(S,U)=>{"jquery"in S?at(U,S):An(U,S.toString())},at=(S,U)=>{if(S.textContent="",0 in U)for(let ee=0;ee in U;ee++)S.appendChild(U[ee].cloneNode(!0));else S.appendChild(U.cloneNode(!0))},Xe=(S,U)=>{const ee=ie(),He=je();!ee||!He||(U.showConfirmButton||U.showDenyButton||U.showCancelButton?ei(ee):Ze(ee),Hn(ee,U,"actions"),function Re(S,U,ee){const He=tt(),Rt=St(),Un=Zt();!He||!Rt||!Un||(Ot(He,"confirm",ee),Ot(Rt,"deny",ee),Ot(Un,"cancel",ee),function Ie(S,U,ee,He){He.buttonsStyling?(zn([S,U,ee],x.styled),He.confirmButtonColor&&S.style.setProperty("--swal2-confirm-button-background-color",He.confirmButtonColor),He.denyButtonColor&&U.style.setProperty("--swal2-deny-button-background-color",He.denyButtonColor),He.cancelButtonColor&&ee.style.setProperty("--swal2-cancel-button-background-color",He.cancelButtonColor),xe(S),xe(U),xe(ee)):ri([S,U,ee],x.styled)}(He,Rt,Un,ee),ee.reverseButtons&&(ee.toast?(S.insertBefore(Un,He),S.insertBefore(Rt,He)):(S.insertBefore(Un,U),S.insertBefore(Rt,U),S.insertBefore(He,U))))}(ee,He,U),An(He,U.loaderHtml||""),Hn(He,U,"loader"))};function xe(S){const U=window.getComputedStyle(S);
vendor: 8,165 bytes, line 1
1if(U.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const ee=U.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");S.style.setProperty("--swal2-action-button-focus-box-shadow",U.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${ee}`))}function Ot(S,U,ee){const He=Mt(U);le(S,ee[`show${He}Button`],"inline-block"),An(S,ee[`${U}ButtonText`]||""),S.setAttribute("aria-label",ee[`${U}ButtonAriaLabel`]||""),S.className=x[U],Hn(S,ee,`${U}Button`)}const pt=(S,U)=>{const ee=Ye();!ee||(function Gt(S,U){"string"==typeof U?S.style.background=U:U||zn([document.documentElement,document.body],x["no-backdrop"])}(ee,U.backdrop),function Ce(S,U){!U||(U in x?zn(S,x[U]):(We('The "position" parameter is not valid, defaulting to "center"'),zn(S,x.center)))}(ee,U.position),function Ue(S,U){!U||zn(S,x[`grow-${U}`])}(ee,U.grow),Hn(ee,U,"container"))};var ue={innerParams:new WeakMap,domCache:new WeakMap};const nt=["input","file","range","select","radio","checkbox","textarea"],mn=S=>{if(!S.input)return;if(!ti[S.input])return void At(`Unexpected type of input! Expected ${Object.keys(ti).join(" | ")}, got "${S.input}"`);const U=ni(S.input);if(!U)return;const ee=ti[S.input](U,S);ei(U),S.inputAutoFocus&&setTimeout(()=>{_n(ee)})},kt=(S,U)=>{const ee=xt();if(!ee)return;const He=yi(ee,S);if(He){(S=>{for(let U=0;U<S.attributes.length;U++){const ee=S.attributes[U].name;["id","type","value","style"].includes(ee)||S.removeAttribute(ee)}})(He);for(const Rt in U)He.setAttribute(Rt,U[Rt])}},Ft=S=>{if(!S.input)return;const U=ni(S.input);U&&Hn(U,S,"input")},bn=(S,U)=>{!S.placeholder&&U.inputPlaceholder&&(S.placeholder=U.inputPlaceholder)},vn=(S,U,ee)=>{if(ee.inputLabel){const He=document.createElement("label"),Rt=x["input-label"];He.setAttribute("for",S.id),He.className=Rt,"object"==typeof ee.customClass&&zn(He,ee.customClass.inputLabel),He.innerText=ee.inputLabel,U.insertAdjacentElement("beforebegin",He)}},ni=S=>{const U=xt();if(U)return Pi(U,x[S]||x.input)},di=(S,U)=>{["string","number"].includes(typeof U)?S.value=`${U}`:ut(U)||We(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof U}"`)},ti={};ti.text=ti.email=ti.password=ti.number=ti.tel=ti.url=ti.search=ti.date=ti["datetime-local"]=ti.time=ti.week=ti.month=(S,U)=>{const ee=S;return di(ee,U.inputValue),vn(ee,ee,U),bn(ee,U),ee.type=U.input,ee},ti.file=(S,U)=>{const ee=S;return vn(ee,ee,U),bn(ee,U),ee},ti.range=(S,U)=>{const ee=S,He=ee.querySelector("input"),Rt=ee.querySelector("output");return He&&(di(He,U.inputValue),He.type=U.input,vn(He,S,U)),Rt&&di(Rt,U.inputValue),S},ti.select=(S,U)=>{const ee=S;if(ee.textContent="",U.inputPlaceholder){const He=document.createElement("option");An(He,U.inputPlaceholder),He.value="",He.disabled=!0,He.selected=!0,ee.appendChild(He)}return vn(ee,ee,U),ee},ti.radio=S=>(S.textContent="",S),ti.checkbox=(S,U)=>{const ee=xt();if(!ee)throw new Error("Popup not found");const He=yi(ee,"checkbox");if(!He)throw new Error("Checkbox input not found");He.value="1",He.checked=Boolean(U.inputValue);const Un=S.querySelector("span");if(Un){const tr=U.inputPlaceholder||U.inputLabel;tr&&An(Un,tr)}return He},ti.textarea=(S,U)=>{const ee=S;di(ee,U.inputValue),bn(ee,U),vn(ee,ee,U);return setTimeout(()=>{if("MutationObserver"in window){const Rt=xt();if(!Rt)return;const Un=parseInt(window.getComputedStyle(Rt).width);new MutationObserver(()=>{if(!document.body.contains(ee))return;const Oi=ee.offsetWidth+(Rt=>parseInt(window.getComputedStyle(Rt).marginLeft)+parseInt(window.getComputedStyle(Rt).marginRight))(ee),Kn=xt();Kn&&(Oi>Un?Kn.style.width=`${Oi}px`:li(Kn,"width",U.width))}).observe(ee,{attributes:!0,attributeFilter:["style"]})}}),ee};const cr=(S,U)=>{const ee=$t();!ee||(Oe(ee),Hn(ee,U,"htmlContainer"),U.html?(Ii(U.html,ee),ei(ee,"block")):U.text?(ee.textContent=U.text,ei(ee,"block")):Ze(ee),((S,U)=>{const ee=xt();if(!ee)return;const He=ue.innerParams.get(S),Rt=!He||U.input!==He.input;nt.forEach(Un=>{const tr=Pi(ee,x[Un]);!tr||(kt(Un,U.inputAttributes),tr.className=x[Un],Rt&&Ze(tr))}),U.input&&(Rt&&mn(U),Ft(U))})(S,U))},xr=(S,U)=>{for(const[ee,He]of Object.entries(de))U.icon!==ee&&ri(S,He);zn(S,U.icon&&de[U.icon]),jr(S,U),Yi(),Hn(S,U,"icon")},Yi=()=>{const S=xt();if(!S)return;const U=window.getComputedStyle(S).getPropertyValue("background-color"),ee=S.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let He=0;He<ee.length;He++)ee[He].style.backgroundColor=U},Ni=(S,U)=>{if(!U.icon&&!U.iconHtml)return;let ee=S.innerHTML,He="";U.iconHtml?He=Xr(U.iconHtml):"success"===U.icon?(He=(S=>`\n ${S.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${S.animation?'<div class="swal2-success-fix"></div>':""}\n ${S.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(U),ee=ee.replace(/ style=".*?"/g,"")):"error"===U.icon?He='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':U.icon&&(He=Xr({question:"?",warning:"!",info:"i"}[U.icon])),ee.trim()!==He.trim()&&An(S,He)},jr=(S,U)=>{if(U.iconColor){S.style.color=U.iconColor,S.style.borderColor=U.iconColor;for(const ee of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])P(S,ee,"background-color",U.iconColor);P(S,".swal2-success-ring","border-color",U.iconColor)}},Xr=S=>`<div class="${x["icon-content"]}">${S}</div>`;let he=!1,ne=0,Ne=0,yt=0,Vt=0;const ht=S=>{const U=xt();if(!U)return;const ee=mt();if(S.target===U||ee&&ee.contains(S.target)){he=!0;const He=ct(S);ne=He.clientX,Ne=He.clientY,yt=parseInt(U.style.insetInlineStart)||0,Vt=parseInt(U.style.insetBlockStart)||0,zn(U,"swal2-dragging")}},Kt=S=>{const U=xt();if(U&&he){let{clientX:ee,clientY:He}=ct(S);const Rt=ee-ne;U.style.insetInlineStart=`${yt+(ve.isRTL?-Rt:Rt)}px`,U.style.insetBlockStart=`${Vt+(He-Ne)}px`}},we=()=>{const S=xt();he=!1,ri(S,"swal2-dragging")},ct=S=>{let U=0,ee=0;return S.type.startsWith("mouse")?(U=S.clientX,ee=S.clientY):S.type.startsWith("touch")&&(U=S.touches[0].clientX,ee=S.touches[0].clientY),{clientX:U,clientY:ee}},jt=(S,U)=>{const ee=Ye(),He=xt();if(ee&&He){if(U.toast){li(ee,"width",U.width),He.style.width="100%";const Rt=je();Rt&&He.insertBefore(Rt,mt())}else li(He,"width",U.width);li(He,"padding",U.padding),U.color&&(He.style.color=U.color),U.background&&(He.style.background=U.background),Ze(gn()),Mn(He,U),U.draggable&&!U.toast?(zn(He,x.draggable),(S=>{S.addEventListener("mousedown",ht),document.body.addEventListener("mousemove",Kt),S.addEventListener("mouseup",we),S.addEventListener("touchstart",ht),document.body.addEventListener("touchmove",Kt),S.addEventListener("touchend",we)})(He)):(ri(He,x.draggable),(S=>{S.removeEventListener("mousedown",ht),document.body.removeEventListener("mousemove",Kt),S.removeEventListener("mouseup",we),S.removeEventListener("touchstart",ht),document.body.removeEventListener("touchmove",Kt),S.removeEventListener("touchend",we)})(He))}},Mn=(S,U)=>{const ee=U.showClass||{};S.className=`${x.popup} ${O(S)?ee.popup:""}`,U.toast?(zn([document.documentElement,document.body],x["toast-shown"]),zn(S,x.toast)):zn(S,x.modal),Hn(S,U,"popup"),"string"==typeof U.customClass&&zn(S,U.customClass),U.icon&&zn(S,x[`icon-${U.icon}`])},Mi=S=>{const U=document.createElement("li");return zn(U,x["progress-step"]),An(U,S),U},Ti=S=>{const U=document.createElement("li");return zn(U,x["progress-step-line"]),S.progressStepsDistance&&li(U,"width",S.progressStepsDistance),U},Ji=(S,U)=>{var ee;jt(0,U),pt(0,U),((S,U)=>{const ee=Ut();if(!ee)return;const{progressSteps:He,currentProgressStep:Rt}=U;He&&0!==He.length&&void 0!==Rt?(ei(ee),ee.textContent="",Rt>=He.length&&We("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),He.forEach((Un,tr)=>{const Oi=Mi(Un);if(ee.appendChild(Oi),tr===Rt&&zn(Oi,x["active-progress-step"]),tr!==He.length-1){const Kn=Ti(U);
1ee.appendChild(Kn)}})):Ze(ee)})(0,U),((S,U)=>{const ee=ue.innerParams.get(S),He=mt();if(He){if(ee&&U.icon===ee.icon)return Ni(He,U),void xr(He,U);if(U.icon||U.iconHtml)return U.icon&&-1===Object.keys(de).indexOf(U.icon)?(At(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${U.icon}"`),void Ze(He)):(ei(He),Ni(He,U),xr(He,U),zn(He,U.showClass&&U.showClass.icon),void window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Yi));Ze(He)}})(S,U),((S,U)=>{const ee=Vn();if(ee){if(!U.imageUrl)return void Ze(ee);ei(ee,""),ee.setAttribute("src",U.imageUrl),ee.setAttribute("alt",U.imageAlt||""),li(ee,"width",U.imageWidth),li(ee,"height",U.imageHeight),ee.className=x.image,Hn(ee,U,"image")}})(0,U),((S,U)=>{const ee=pn();!ee||(Oe(ee),le(ee,Boolean(U.title||U.titleText),"block"),U.title&&Ii(U.title,ee),U.titleText&&(ee.innerText=U.titleText),Hn(ee,U,"title"))})(0,U),((S,U)=>{const ee=Dt();!ee||(An(ee,U.closeButtonHtml||""),Hn(ee,U,"closeButton"),le(ee,U.showCloseButton),ee.setAttribute("aria-label",U.closeButtonAriaLabel||""))})(0,U),cr(S,U),Xe(0,U),((S,U)=>{const ee=ft();!ee||(Oe(ee),le(ee,Boolean(U.footer),"block"),U.footer&&Ii(U.footer,ee),Hn(ee,U,"footer"))})(0,U);const He=xt();"function"==typeof U.didRender&&He&&U.didRender(He),null===(ee=ve.eventEmitter)||void 0===ee||ee.emit("didRender",He)},Do=()=>{var S;return null===(S=tt())||void 0===S?void 0:S.click()},Ao=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),vs=S=>{S.keydownTarget&&S.keydownHandlerAdded&&S.keydownHandler&&(S.keydownTarget.removeEventListener("keydown",S.keydownHandler,{capture:S.keydownListenerCapture}),S.keydownHandlerAdded=!1)},co=(S,U)=>{var ee;const He=Gn();if(He.length)return-2===(S+=U)&&(S=He.length-1),S===He.length?S=0:-1===S&&(S=He.length-1),void He[S].focus();null===(ee=xt())||void 0===ee||ee.focus()},Ko=["ArrowRight","ArrowDown"],Zs=["ArrowLeft","ArrowUp"],Vo=(S,U,ee)=>{!S||U.isComposing||229===U.keyCode||(S.stopKeydownPropagation&&U.stopPropagation(),"Enter"===U.key?Co(U,S):"Tab"===U.key?fo(U):[...Ko,...Zs].includes(U.key)?Mo(U.key):"Escape"===U.key&&Ss(U,S,ee))},Co=(S,U)=>{if(!Xt(U.allowEnterKey))return;const ee=xt();if(!ee||!U.input)return;const He=yi(ee,U.input);if(S.target&&He&&S.target instanceof HTMLElement&&S.target.outerHTML===He.outerHTML){if(["textarea","file"].includes(U.input))return;Do(),S.preventDefault()}},fo=S=>{const U=S.target,ee=Gn();let He=-1;for(let Rt=0;Rt<ee.length;Rt++)if(U===ee[Rt]){He=Rt;break}co(He,S.shiftKey?-1:1),S.stopPropagation(),S.preventDefault()},Mo=S=>{const U=ie(),ee=tt(),He=St(),Rt=Zt();if(!(U&&ee&&He&&Rt))return;if(document.activeElement instanceof HTMLElement&&![ee,He,Rt].includes(document.activeElement))return;const tr=Ko.includes(S)?"nextElementSibling":"previousElementSibling";let Oi=document.activeElement;if(Oi){for(let Kn=0;Kn<U.children.length;Kn++){if(Oi=Oi[tr],!Oi)return;if(Oi instanceof HTMLButtonElement&&O(Oi))break}Oi instanceof HTMLButtonElement&&Oi.focus()}},Ss=(S,U,ee)=>{S.preventDefault(),Xt(U.allowEscapeKey)&&ee(Ao.esc)};var zi={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const po=()=>{Array.from(document.body.children).forEach(U=>{U.hasAttribute("data-previous-aria-hidden")?(U.setAttribute("aria-hidden",U.getAttribute("data-previous-aria-hidden")||""),U.removeAttribute("data-previous-aria-hidden")):U.removeAttribute("aria-hidden")})},to=typeof window<"u"&&Boolean(window.GestureEvent),is=()=>{const S=Ye();if(!S)return;let U;S.ontouchstart=ee=>{U=ea(ee)},S.ontouchmove=ee=>{U&&(ee.preventDefault(),ee.stopPropagation())}},ea=S=>{const U=S.target,ee=Ye(),He=$t();return!(!ee||!He||Io(S)||ha(S)||U!==ee&&(ke(ee)||!(U instanceof HTMLElement)||((S,U)=>{let ee=S;for(;ee&&ee!==U;){if(ke(ee))return!0;ee=ee.parentElement}return!1})(U,He)||"INPUT"===U.tagName||"TEXTAREA"===U.tagName||ke(He)&&He.contains(U)))},Io=S=>Boolean(S.touches&&S.touches.length&&"stylus"===S.touches[0].touchType),ha=S=>S.touches&&S.touches.length>1;let no=null;const Bs=S=>{null===no&&(document.body.scrollHeight>window.innerHeight||"scroll"===S)&&(no=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${no+(()=>{const S=document.createElement("div");S.className=x["scrollbar-measure"],document.body.appendChild(S);const U=S.getBoundingClientRect().width-S.clientWidth;return document.body.removeChild(S),U})()}px`)};function ks(S,U,ee,He){kn()?Rn(S,He):(Te(ee).then(()=>Rn(S,He)),vs(ve)),to?(U.setAttribute("style","display:none !important"),U.removeAttribute("class"),U.innerHTML=""):U.remove(),qn()&&(null!==no&&(document.body.style.paddingRight=`${no}px`,no=null),(()=>{if(Wn(document.body,x.iosfix)){const S=parseInt(document.body.style.top,10);ri(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*S}})(),po()),function Rs(){ri([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"]])}()}function oo(S){S=Et(S);const U=zi.swalPromiseResolve.get(this),ee=pe(this);this.isAwaitingPromise?S.isDismissed||(Qe(this),U(S)):ee&&U(S)}const pe=S=>{const U=xt();if(!U)return!1;const ee=ue.innerParams.get(S);if(!ee||Wn(U,ee.hideClass.popup))return!1;ri(U,ee.showClass.popup),zn(U,ee.hideClass.popup);const He=Ye();return ri(He,ee.showClass.backdrop),zn(He,ee.hideClass.backdrop),Ht(S,U,ee),!0};function ge(S){const U=zi.swalPromiseReject.get(this);Qe(this),U&&U(S)}const Qe=S=>{S.isAwaitingPromise&&(delete S.isAwaitingPromise,ue.innerParams.get(S)||S._destroy())},Et=S=>typeof S>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},S),Ht=(S,U,ee)=>{var He;const Rt=Ye(),Un=ye(U);"function"==typeof ee.willClose&&ee.willClose(U),null===(He=ve.eventEmitter)||void 0===He||He.emit("willClose",U),Un&&Rt?fn(S,U,Rt,Boolean(ee.returnFocus),ee.didClose):Rt&&ks(S,Rt,Boolean(ee.returnFocus),ee.didClose)},fn=(S,U,ee,He,Rt)=>{ve.swalCloseEventFinishedCallback=ks.bind(null,S,ee,He,Rt);const Un=function(tr){var Oi;tr.target===U&&(null===(Oi=ve.swalCloseEventFinishedCallback)||void 0===Oi||Oi.call(ve),delete ve.swalCloseEventFinishedCallback,U.removeEventListener("animationend",Un),U.removeEventListener("transitionend",Un))};U.addEventListener("animationend",Un),U.addEventListener("transitionend",Un)},Rn=(S,U)=>{setTimeout(()=>{var ee;"function"==typeof U&&U.bind(S.params)(),null===(ee=ve.eventEmitter)||void 0===ee||ee.emit("didClose"),S._destroy&&S._destroy()})},hi=S=>{let U=xt();
1if(U||new wa,U=xt(),!U)return;const ee=je();kn()?Ze(mt()):fi(U,S),ei(ee),U.setAttribute("data-loading","true"),U.setAttribute("aria-busy","true"),U.focus()},fi=(S,U)=>{const ee=ie(),He=je();!ee||!He||(!U&&O(tt())&&(U=tt()),ei(ee),U&&(Ze(U),He.setAttribute("data-button-to-replace",U.className),ee.insertBefore(He,U)),zn([S,ee],x.loading))},Zr=S=>S.checked?1:0,Br=S=>S.checked?S.value:null,Dr=S=>S.files&&S.files.length?null!==S.getAttribute("multiple")?S.files:S.files[0]:null,nr=(S,U)=>{const ee=xt();if(!ee)return;const He=Rt=>{"select"===U.input?function br(S,U,ee){const He=Pi(S,x.select);if(!He)return;const Rt=(Un,tr,Oi)=>{const Kn=document.createElement("option");Kn.value=Oi,An(Kn,tr),Kn.selected=Rr(Oi,ee.inputValue),Un.appendChild(Kn)};U.forEach(Un=>{const tr=Un[0],Oi=Un[1];if(Array.isArray(Oi)){const Kn=document.createElement("optgroup");Kn.label=tr,Kn.disabled=!1,He.appendChild(Kn),Oi.forEach(ss=>Rt(Kn,ss[1],ss[0]))}else Rt(He,Oi,tr)}),He.focus()}(ee,Wr(Rt),U):"radio"===U.input&&function mi(S,U,ee){const He=Pi(S,x.radio);if(!He)return;U.forEach(Un=>{const tr=Un[0],Oi=Un[1],Kn=document.createElement("input"),ss=document.createElement("label");Kn.type="radio",Kn.name=x.radio,Kn.value=tr,Rr(tr,ee.inputValue)&&(Kn.checked=!0);const Gi=document.createElement("span");An(Gi,Oi),Gi.className=x.label,ss.appendChild(Kn),ss.appendChild(Gi),He.appendChild(ss)});const Rt=He.querySelectorAll("input");Rt.length&&Rt[0].focus()}(ee,Wr(Rt),U)};ot(U.inputOptions)||ut(U.inputOptions)?(hi(tt()),fe(U.inputOptions).then(Rt=>{S.hideLoading(),He(Rt)})):"object"==typeof U.inputOptions?He(U.inputOptions):At("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof U.inputOptions)},ji=(S,U)=>{const ee=S.getInput();!ee||(Ze(ee),fe(U.inputValue).then(He=>{ee.value="number"===U.input?`${parseFloat(He)||0}`:`${He}`,ei(ee),ee.focus(),S.hideLoading()}).catch(He=>{At(`Error in inputValue promise: ${He}`),ee.value="",ei(ee),ee.focus(),S.hideLoading()}))};const Wr=S=>{const U=[];return S instanceof Map?S.forEach((ee,He)=>{let Rt=ee;"object"==typeof Rt&&(Rt=Wr(Rt)),U.push([He,Rt])}):Object.keys(S).forEach(ee=>{let He=S[ee];"object"==typeof He&&(He=Wr(He)),U.push([ee,He])}),U},Rr=(S,U)=>Boolean(U)&&null!=U&&U.toString()===S.toString(),ys=(S,U)=>{const ee=ue.innerParams.get(S);if(!ee.input)return void At(`The "input" parameter is needed to be set when using returnInputValueOn${Mt(U)}`);const He=S.getInput(),Rt=((S,U)=>{const ee=S.getInput();if(!ee)return null;switch(U.input){case"checkbox":return Zr(ee);case"radio":return Br(ee);case"file":return Dr(ee);default:return U.inputAutoTrim?ee.value.trim():ee.value}})(S,ee);ee.inputValidator?Jo(S,Rt,U):He&&!He.checkValidity()?(S.enableButtons(),S.showValidationMessage(ee.validationMessage||He.validationMessage)):"deny"===U?os(S,Rt):So(S,Rt)},Jo=(S,U,ee)=>{const He=ue.innerParams.get(S);S.disableInput(),Promise.resolve().then(()=>fe(He.inputValidator(U,He.validationMessage))).then(Un=>{S.enableButtons(),S.enableInput(),Un?S.showValidationMessage(Un):"deny"===ee?os(S,U):So(S,U)})},os=(S,U)=>{const ee=ue.innerParams.get(S);ee.showLoaderOnDeny&&hi(St()),ee.preDeny?(S.isAwaitingPromise=!0,Promise.resolve().then(()=>fe(ee.preDeny(U,ee.validationMessage))).then(Rt=>{!1===Rt?(S.hideLoading(),Qe(S)):S.close({isDenied:!0,value:typeof Rt>"u"?U:Rt})}).catch(Rt=>Qi(S,Rt))):S.close({isDenied:!0,value:U})},On=(S,U)=>{S.close({isConfirmed:!0,value:U})},Qi=(S,U)=>{S.rejectPromise(U)},So=(S,U)=>{const ee=ue.innerParams.get(S);ee.showLoaderOnConfirm&&hi(),ee.preConfirm?(S.resetValidationMessage(),S.isAwaitingPromise=!0,Promise.resolve().then(()=>fe(ee.preConfirm(U,ee.validationMessage))).then(Rt=>{O(gn())||!1===Rt?(S.hideLoading(),Qe(S)):On(S,typeof Rt>"u"?U:Rt)}).catch(Rt=>Qi(S,Rt))):On(S,U)};function ko(){const S=ue.innerParams.get(this);if(!S)return;const U=ue.domCache.get(this);Ze(U.loader),kn()?S.icon&&ei(mt()):so(U),ri([U.popup,U.actions],x.loading),U.popup.removeAttribute("aria-busy"),U.popup.removeAttribute("data-loading"),U.confirmButton.disabled=!1,U.denyButton.disabled=!1,U.cancelButton.disabled=!1}const so=S=>{const U=S.loader.getAttribute("data-button-to-replace"),ee=U?S.popup.getElementsByClassName(U):[];ee.length?ei(ee[0],"inline-block"):!O(tt())&&!O(St())&&!O(Zt())&&Ze(S.actions)};function J(){const S=ue.innerParams.get(this),U=ue.domCache.get(this);return U?yi(U.popup,S.input):null}function W(S,U,ee){const He=ue.domCache.get(S);
vendor: 2,660 bytes, line 1
1U.forEach(Rt=>{He[Rt].disabled=ee})}function H(S,U){const ee=xt();if(ee&&S)if("radio"===S.type){const He=ee.querySelectorAll(`[name="${x.radio}"]`);for(let Rt=0;Rt<He.length;Rt++)He[Rt].disabled=U}else S.disabled=U}function Se(){W(this,["confirmButton","denyButton","cancelButton"],!1)}function ln(){W(this,["confirmButton","denyButton","cancelButton"],!0)}function pi(){H(this.getInput(),!1)}function Hi(){H(this.getInput(),!0)}function us(S){const U=ue.domCache.get(this),ee=ue.innerParams.get(this);An(U.validationMessage,S),U.validationMessage.className=x["validation-message"],ee.customClass&&ee.customClass.validationMessage&&zn(U.validationMessage,ee.customClass.validationMessage),ei(U.validationMessage);const He=this.getInput();He&&(He.setAttribute("aria-invalid","true"),He.setAttribute("aria-describedby",x["validation-message"]),_n(He),zn(He,x.inputerror))}function qo(){const S=ue.domCache.get(this);S.validationMessage&&Ze(S.validationMessage);const U=this.getInput();U&&(U.removeAttribute("aria-invalid"),U.removeAttribute("aria-describedby"),ri(U,x.inputerror))}const Or={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
vendor: 8,070 bytes, line 1
1:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Me=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Fe={allowEnterKey:void 0},vt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Qt=S=>Object.prototype.hasOwnProperty.call(Or,S),Pn=S=>-1!==Me.indexOf(S),Zn=S=>Fe[S],ci=S=>{Qt(S)||We(`Unknown parameter "${S}"`)},dr=S=>{vt.includes(S)&&We(`The parameter "${S}" is incompatible with toasts`)},or=S=>{const U=Zn(S);U&&sn(S,U)},wr=S=>{!1===S.backdrop&&S.allowOutsideClick&&We('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),S.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(S.theme)&&We(`Invalid theme "${S.theme}"`);for(const U in S)ci(U),S.toast&&dr(U),or(U)};function pr(S){const U=Ye(),ee=xt(),He=ue.innerParams.get(this);if(!ee||Wn(ee,He.hideClass.popup))return void We("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const Rt=Bi(S),Un=Object.assign({},He,Rt);wr(Un),U&&(U.dataset.swal2Theme=Un.theme),Ji(this,Un),ue.innerParams.set(this,Un),Object.defineProperties(this,{params:{value:Object.assign({},this.params,S),writable:!1,enumerable:!0}})}const Bi=S=>{const U={};return Object.keys(S).forEach(ee=>{Pn(ee)?U[ee]=S[ee]:We(`Invalid parameter to update: ${ee}`)}),U};function Ro(){var S;const U=ue.domCache.get(this),ee=ue.innerParams.get(this);ee?(U.popup&&ve.swalCloseEventFinishedCallback&&(ve.swalCloseEventFinishedCallback(),delete ve.swalCloseEventFinishedCallback),"function"==typeof ee.didDestroy&&ee.didDestroy(),null===(S=ve.eventEmitter)||void 0===S||S.emit("didDestroy"),Cs(this)):Qo(this)}const Cs=S=>{Qo(S),delete S.params,delete ve.keydownHandler,delete ve.keydownTarget,delete ve.currentInstance},Qo=S=>{S.isAwaitingPromise?(ta(ue,S),S.isAwaitingPromise=!0):(ta(zi,S),ta(ue,S),delete S.isAwaitingPromise,delete S.disableButtons,delete S.enableButtons,delete S.getInput,delete S.disableInput,delete S.enableInput,delete S.hideLoading,delete S.disableLoading,delete S.showValidationMessage,delete S.resetValidationMessage,delete S.close,delete S.closePopup,delete S.closeModal,delete S.closeToast,delete S.rejectPromise,delete S.update,delete S._destroy)},ta=(S,U)=>{for(const ee in S)S[ee].delete(U)};var na=Object.freeze({__proto__:null,_destroy:Ro,close:oo,closeModal:oo,closePopup:oo,closeToast:oo,disableButtons:ln,disableInput:Hi,disableLoading:ko,enableButtons:Se,enableInput:pi,getInput:J,handleAwaitingPromise:Qe,hideLoading:ko,rejectPromise:ge,resetValidationMessage:qo,showValidationMessage:us,update:pr});const ao=(S,U,ee)=>{U.popup.onclick=()=>{S&&(xs(S)||S.timer||S.input)||ee(Ao.close)}},xs=S=>Boolean(S.showConfirmButton||S.showDenyButton||S.showCancelButton||S.showCloseButton);let $a=!1;const Ra=S=>{S.popup.onmousedown=()=>{S.container.onmouseup=function(U){S.container.onmouseup=()=>{},U.target===S.container&&($a=!0)}}},Eo=S=>{S.container.onmousedown=U=>{U.target===S.container&&U.preventDefault(),S.popup.onmouseup=function(ee){S.popup.onmouseup=()=>{},(ee.target===S.popup||ee.target instanceof HTMLElement&&S.popup.contains(ee.target))&&($a=!0)}}},xo=(S,U,ee)=>{U.container.onclick=He=>{$a?$a=!1:He.target===U.container&&Xt(S.allowOutsideClick)&&ee(Ao.backdrop)}},Tr=S=>S instanceof Element||(S=>"object"==typeof S&&null!==S&&"jquery"in S)(S);const Na=()=>{if(ve.timeout)return(()=>{const S=Wt();if(!S)return;const U=parseInt(window.getComputedStyle(S).width);S.style.removeProperty("transition"),S.style.width="100%";const ee=parseInt(window.getComputedStyle(S).width);S.style.width=U/ee*100+"%"})(),ve.timeout.stop()},pa=()=>{if(ve.timeout){const S=ve.timeout.start();return Je(S),S}};let ws=!1;const No={};const ga=S=>{for(let U=S.target;U&&U!==document;U=U.parentNode)for(const ee in No){const He=U.getAttribute&&U.getAttribute(ee);if(He)return void No[ee].fire({template:He})}};ve.eventEmitter=new class sl{constructor(){this.events={}}_getHandlersByEventName(U){return typeof this.events[U]>"u"&&(this.events[U]=[]),this.events[U]}on(U,ee){const He=this._getHandlersByEventName(U);He.includes(ee)||He.push(ee)}once(U,ee){const He=(...Rt)=>{this.removeListener(U,He),ee.apply(this,Rt)};this.on(U,He)}emit(U,...ee){this._getHandlersByEventName(U).forEach(He=>{try{He.apply(this,ee)}catch(Rt){console.error(Rt)}})}removeListener(U,ee){const He=this._getHandlersByEventName(U),Rt=He.indexOf(ee);Rt>-1&&He.splice(Rt,1)}removeAllListeners(U){void 0!==this.events[U]&&(this.events[U].length=0)}reset(){this.events={}}};var ma=Object.freeze({__proto__:null,argsToParams:S=>{const U={};return"object"!=typeof S[0]||Tr(S[0])?["title","html","icon"].forEach((ee,He)=>{const Rt=S[He];"string"==typeof Rt||Tr(Rt)?U[ee]=Rt:void 0!==Rt&&At(`Unexpected type of ${ee}! Expected "string" or "Element", got ${typeof Rt}`)}):Object.assign(U,S[0]),U},bindClickHandler:function qs(S="data-swal-template"){No[S]=this,ws||(document.body.addEventListener("click",ga),ws=!0)},clickCancel:()=>{var S;return null===(S=Zt())||void 0===S?void 0:S.click()},clickConfirm:Do,clickDeny:()=>{var S;return null===(S=St())||void 0===S?void 0:S.click()},enableLoading:hi,fire:function Cl(...S){return new this(...S)},getActions:ie,getCancelButton:Zt,getCloseButton:Dt,getConfirmButton:tt,getContainer:Ye,getDenyButton:St,getFocusableElements:Gn,getFooter:ft,getHtmlContainer:$t,getIcon:mt,getIconContent:()=>ze(x["icon-content"]),getImage:Vn,getInputLabel:()=>ze(x["input-label"]),getLoader:je,getPopup:xt,getProgressSteps:Ut,getTimerLeft:()=>ve.timeout&&ve.timeout.getTimerLeft(),getTimerProgressBar:Wt,getTitle:pn,getValidationMessage:gn,increaseTimer:S=>{if(ve.timeout){const U=ve.timeout.increase(S);return Je(U,!0),U}},isDeprecatedParameter:Zn,isLoading:()=>{const S=xt();return!!S&&S.hasAttribute("data-loading")},isTimerRunning:()=>Boolean(ve.timeout&&ve.timeout.isRunning()),isUpdatableParameter:Pn,isValidParameter:Qt,isVisible:()=>O(xt()),mixin:function zs(S){return class U extends(this){_main(He,Rt){return super._main(He,Object.assign({},S,Rt))}}},off:(S,U)=>{if(ve.eventEmitter){if(!S)return void ve.eventEmitter.reset();U?ve.eventEmitter.removeListener(S,U):ve.eventEmitter.removeAllListeners(S)}},on:(S,U)=>{ve.eventEmitter&&ve.eventEmitter.on(S,U)},once:(S,U)=>{ve.eventEmitter&&ve.eventEmitter.once(S,U)},resumeTimer:pa,showLoading:hi,stopTimer:Na,toggleTimer:()=>{const S=ve.timeout;return S&&(S.running?Na():pa())}});class B{constructor(U,ee){this.callback=U,this.remaining=ee,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(U){const ee=this.running;return ee&&this.stop(),this.remaining+=U,ee&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const oe=["swal-title","swal-html","swal-footer"],Ae=S=>{const U={};return Array.from(S.querySelectorAll("swal-param")).forEach(He=>
1{Ei(He,["name","value"]);const Rt=He.getAttribute("name"),Un=He.getAttribute("value");!Rt||!Un||(U[Rt]=Rt in Or&&"boolean"==typeof Or[Rt]?"false"!==Un:Rt in Or&&"object"==typeof Or[Rt]?JSON.parse(Un):Un)}),U},Pt=S=>{const U={};return Array.from(S.querySelectorAll("swal-function-param")).forEach(He=>{const Rt=He.getAttribute("name"),Un=He.getAttribute("value");!Rt||!Un||(U[Rt]=new Function(`return ${Un}`)())}),U},dn=S=>{const U={};return Array.from(S.querySelectorAll("swal-button")).forEach(He=>{Ei(He,["type","color","aria-label"]);const Rt=He.getAttribute("type");if(Rt&&["confirm","cancel","deny"].includes(Rt)){if(U[`${Rt}ButtonText`]=He.innerHTML,U[`show${Mt(Rt)}Button`]=!0,He.hasAttribute("color")){const Un=He.getAttribute("color");null!==Un&&(U[`${Rt}ButtonColor`]=Un)}if(He.hasAttribute("aria-label")){const Un=He.getAttribute("aria-label");null!==Un&&(U[`${Rt}ButtonAriaLabel`]=Un)}}}),U},En=S=>{const U={},ee=S.querySelector("swal-image");return ee&&(Ei(ee,["src","width","height","alt"]),ee.hasAttribute("src")&&(U.imageUrl=ee.getAttribute("src")||void 0),ee.hasAttribute("width")&&(U.imageWidth=ee.getAttribute("width")||void 0),ee.hasAttribute("height")&&(U.imageHeight=ee.getAttribute("height")||void 0),ee.hasAttribute("alt")&&(U.imageAlt=ee.getAttribute("alt")||void 0)),U},xi=S=>{const U={},ee=S.querySelector("swal-icon");return ee&&(Ei(ee,["type","color"]),ee.hasAttribute("type")&&(U.icon=ee.getAttribute("type")),ee.hasAttribute("color")&&(U.iconColor=ee.getAttribute("color")),U.iconHtml=ee.innerHTML),U},Nr=S=>{const U={},ee=S.querySelector("swal-input");ee&&(Ei(ee,["type","label","placeholder","value"]),U.input=ee.getAttribute("type")||"text",ee.hasAttribute("label")&&(U.inputLabel=ee.getAttribute("label")),ee.hasAttribute("placeholder")&&(U.inputPlaceholder=ee.getAttribute("placeholder")),ee.hasAttribute("value")&&(U.inputValue=ee.getAttribute("value")));const He=Array.from(S.querySelectorAll("swal-input-option"));return He.length&&(U.inputOptions={},He.forEach(Rt=>{Ei(Rt,["value"]);const Un=Rt.getAttribute("value");Un&&(U.inputOptions[Un]=Rt.innerHTML)})),U},Xi=(S,U)=>{const ee={};for(const He in U){const Rt=U[He],Un=S.querySelector(Rt);Un&&(Ei(Un,[]),ee[Rt.replace(/^swal-/,"")]=Un.innerHTML.trim())}return ee},yr=S=>{const U=oe.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(S.children).forEach(ee=>{const He=ee.tagName.toLowerCase();U.includes(He)||We(`Unrecognized element <${He}>`)})},Ei=(S,U)=>{Array.from(S.attributes).forEach(ee=>{-1===U.indexOf(ee.name)&&We([`Unrecognized attribute "${ee.name}" on <${S.tagName.toLowerCase()}>.`,U.length?`Allowed attributes are: ${U.join(", ")}`:"To set the value, use HTML within the element."])})},er=S=>{var U,ee;const He=Ye(),Rt=xt();if(!He||!Rt)return;"function"==typeof S.willOpen&&S.willOpen(Rt),null===(U=ve.eventEmitter)||void 0===U||U.emit("willOpen",Rt);const tr=window.getComputedStyle(document.body).overflowY;if(zr(He,Rt,S),setTimeout(()=>{ia(He,Rt)},10),qn()&&(In(He,void 0!==S.scrollbarPadding&&S.scrollbarPadding,tr),(()=>{const S=Ye();Array.from(document.body.children).forEach(ee=>{ee.contains(S)||(ee.hasAttribute("aria-hidden")&&ee.setAttribute("data-previous-aria-hidden",ee.getAttribute("aria-hidden")||""),ee.setAttribute("aria-hidden","true"))})})()),!kn()&&!ve.previousActiveElement&&(ve.previousActiveElement=document.activeElement),"function"==typeof S.didOpen){const Oi=S.didOpen;setTimeout(()=>Oi(Rt))}null===(ee=ve.eventEmitter)||void 0===ee||ee.emit("didOpen",Rt)},lo=S=>{const U=xt();if(!U||S.target!==U)return;const ee=Ye();!ee||(U.removeEventListener("animationend",lo),U.removeEventListener("transitionend",lo),ee.style.overflowY="auto",ri(ee,x["no-transition"]))},ia=(S,U)=>{ye(U)?(S.style.overflowY="hidden",U.addEventListener("animationend",lo),U.addEventListener("transitionend",lo)):S.style.overflowY="auto"},In=(S,U,ee)=>{(()=>{if(to&&!Wn(document.body,x.iosfix)){const S=document.body.scrollTop;document.body.style.top=-1*S+"px",zn(document.body,x.iosfix),is()}})(),U&&"hidden"!==ee&&Bs(ee),setTimeout(()=>{S.scrollTop=0})},zr=(S,U,ee)=>{var He;null!==(He=ee.showClass)&&void 0!==He&&He.backdrop&&zn(S,ee.showClass.backdrop),ee.animation?(U.style.setProperty("opacity","0","important"),ei(U,"grid"),setTimeout(()=>{var Rt;null!==(Rt=ee.showClass)&&void 0!==Rt&&Rt.popup&&zn(U,ee.showClass.popup),U.style.removeProperty("opacity")},10)):ei(U,"grid"),zn([document.documentElement,document.body],x.shown),ee.heightAuto&&ee.backdrop&&!ee.toast&&zn([document.documentElement,document.body],x["height-auto"])};var Mr_email=(S,U)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(S)?Promise.resolve():Promise.resolve(U||"Invalid email address"),Mr_url=(S,U)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(S)?Promise.resolve():Promise.resolve(U||"Invalid URL");function _i(S){(function xa(S){S.inputValidator||("email"===S.input&&(S.inputValidator=Mr_email),"url"===S.input&&(S.inputValidator=Mr_url))})(S),S.showLoaderOnConfirm&&!S.preConfirm&&We("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function si(S){(!S.target||"string"==typeof S.target&&!document.querySelector(S.target)||"string"!=typeof S.target&&!S.target.appendChild)&&(We('Target parameter is not val
1id, defaulting to "body"'),S.target="body")}(S),"string"==typeof S.title&&(S.title=S.title.split("\n").join("<br />")),Li(S)}let Ms;var ii=new WeakMap;class Jt{constructor(...U){if(e(this,ii,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),typeof window>"u")return;Ms=this;const ee=Object.freeze(this.constructor.argsToParams(U));this.params=ee,this.isAwaitingPromise=!1,function R(S,U,ee){return S.set(bt(S,U),ee),ee}(ii,this,this._main(Ms.params))}_main(U,ee={}){if(wr(Object.assign({},ee,U)),ve.currentInstance){const Un=zi.swalPromiseResolve.get(ve.currentInstance),{isAwaitingPromise:tr}=ve.currentInstance;ve.currentInstance._destroy(),tr||Un({isDismissed:!0}),qn()&&po()}ve.currentInstance=Ms;const He=To(U,ee);_i(He),Object.freeze(He),ve.timeout&&(ve.timeout.stop(),delete ve.timeout),clearTimeout(ve.restoreFocusTimeout);const Rt=al(Ms);return Ji(Ms,He),ue.innerParams.set(Ms,He),Sn(Ms,Rt,He)}then(U){return g(ii,this).then(U)}finally(U){return g(ii,this).finally(U)}}const Sn=(S,U,ee)=>new Promise((He,Rt)=>{const Un=tr=>{S.close({isDismissed:!0,dismiss:tr,isConfirmed:!1,isDenied:!1})};zi.swalPromiseResolve.set(S,He),zi.swalPromiseReject.set(S,Rt),U.confirmButton.onclick=()=>{(S=>{const U=ue.innerParams.get(S);S.disableButtons(),U.input?ys(S,"confirm"):So(S,!0)})(S)},U.denyButton.onclick=()=>{(S=>{const U=ue.innerParams.get(S);S.disableButtons(),U.returnInputValueOnDeny?ys(S,"deny"):os(S,!1)})(S)},U.cancelButton.onclick=()=>{((S,U)=>{S.disableButtons(),U(Ao.cancel)})(S,Un)},U.closeButton.onclick=()=>{Un(Ao.close)},((S,U,ee)=>{S.toast?ao(S,U,ee):(Ra(U),Eo(U),xo(S,U,ee))})(ee,U,Un),((S,U,ee)=>{if(vs(S),!U.toast){const He=Un=>Vo(U,Un,ee);S.keydownHandler=He;const Rt=U.keydownListenerCapture?window:xt();Rt&&(S.keydownTarget=Rt,S.keydownListenerCapture=U.keydownListenerCapture,S.keydownTarget.addEventListener("keydown",He,{capture:S.keydownListenerCapture}),S.keydownHandlerAdded=!0)}})(ve,ee,Un),((S,U)=>{"select"===U.input||"radio"===U.input?nr(S,U):["text","email","number","tel","textarea"].some(ee=>ee===U.input)&&(ot(U.inputValue)||ut(U.inputValue))&&(hi(tt()),ji(S,U))})(S,ee),er(ee),zc(ve,ee,Un),hc(U,ee),setTimeout(()=>{U.container.scrollTop=0})}),To=(S,U)=>{const ee=(S=>{const U="string"==typeof S.template?document.querySelector(S.template):S.template;if(!U)return{};const ee=U.content;return yr(ee),Object.assign(Ae(ee),Pt(ee),dn(ee),En(ee),xi(ee),Nr(ee),Xi(ee,oe))})(S),He=Object.assign({},Or,U,ee,S);return He.showClass=Object.assign({},Or.showClass,He.showClass),He.hideClass=Object.assign({},Or.hideClass,He.hideClass),!1===He.animation&&(He.showClass={backdrop:"swal2-noanimation"},He.hideClass={}),He},al=S=>{const U={popup:xt(),container:Ye(),actions:ie(),confirmButton:tt(),denyButton:St(),cancelButton:Zt(),loader:je(),closeButton:Dt(),validationMessage:gn(),progressSteps:Ut()};return ue.domCache.set(S,U),U},zc=(S,U,ee)=>{const He=Wt();Ze(He),U.timer&&(S.timeout=new B(()=>{ee("timer"),delete S.timeout},U.timer),U.timerProgressBar&&He&&(ei(He),Hn(He,U,"timerProgressBar"),setTimeout(()=>{S.timeout&&S.timeout.running&&Je(U.timer)})))},hc=(S,U)=>{if(!U.toast){if(!Xt(U.allowEnterKey))return sn("allowEnterKey"),void Fa();fc(S)||go(S,U)||co(-1,1)}},fc=S=>{const U=Array.from(S.popup.querySelectorAll("[autofocus]"));for(const ee of U)if(ee instanceof HTMLElement&&O(ee))return ee.focus(),!0;return!1},go=(S,U)=>U.focusDeny&&O(S.denyButton)?(S.denyButton.focus(),!0):U.focusCancel&&O(S.cancelButton)?(S.cancelButton.focus(),!0):!(!U.focusConfirm||!O(S.confirmButton)||(S.confirmButton.focus(),0)),Fa=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Jt.prototype.disableButtons=ln,Jt.prototype.enableButtons=Se,Jt.prototype.getInput=J,Jt.prototype.disableInput=Hi,Jt.prototype.enableInput=pi,Jt.prototype.hideLoading=ko,Jt.prototype.disableLoading=ko,Jt.prototype.showValidationMessage=us,Jt.prototype.resetValidationMessage=qo,Jt.prototype.close=oo,Jt.prototype.closePopup=oo,Jt.prototype.closeModal=oo,Jt.prototype.closeToast=oo,Jt.prototype.rejectPromise=ge,Jt.prototype.update=pr,Jt.prototype._destroy=Ro,Object.assign(Jt,ma),Object.keys(na).forEac
1h(S=>{Jt[S]=function(...U){if(Ms&&Ms[S])return Ms[S](...U)}}),Jt.DismissReason=Ao,Jt.version="11.26.18";const wa=Jt;return wa.default=wa,wa}(),typeof this<"u"&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),typeof document<"u"&&function(bt,D){var g=bt.createElement("style");if(bt.getElementsByTagName("head")[0].appendChild(g),g.styleSheet)g.styleSheet.disabled||(g.styleSheet.cssText=D);else try{g.innerHTML=D}catch{g.innerText=D}}(document,
vendor: 12,087 bytes, line 1
1':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);
vendor: 5,100 bytes, line 1
1box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;
vendor: 13,481 bytes, line 1
1box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')
vendor: 2,720 bytes, line 1
1},7340:(wn,bt,D)=>{"use strict";D.d(bt,{IO:()=>We,LC:()=>e,SB:()=>z,X$:()=>me,ZE:()=>sn,ZN:()=>lt,_j:()=>g,eR:()=>G,jt:()=>ve,k1:()=>Xt,l3:()=>R,oB:()=>se,pV:()=>dt,vP:()=>Te});class g{}class e{}const R="*";function me(ot,fe){return{type:7,name:ot,definitions:fe,options:{}}}function ve(ot,fe=null){return{type:4,styles:fe,timings:ot}}function Te(ot,fe=null){return{type:2,steps:ot,options:fe}}function se(ot){return{type:6,styles:ot,offset:null}}function z(ot,fe,ut){return{type:0,name:ot,styles:fe,options:ut}}function G(ot,fe,ut=null){return{type:1,expr:ot,animation:fe,options:ut}}function dt(ot=null){return{type:9,options:ot}}function We(ot,fe,ut=null){return{type:11,selector:ot,animation:fe,options:ut}}function qe(ot){Promise.resolve().then(ot)}class lt{constructor(fe=0,ut=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=fe+ut}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fe=>fe()),this._onDoneFns=[])}onStart(fe){this._originalOnStartFns.push(fe),this._onStartFns.push(fe)}onDone(fe){this._originalOnDoneFns.push(fe),this._onDoneFns.push(fe)}onDestroy(fe){this._onDestroyFns.push(fe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qe(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(fe=>fe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(fe=>fe()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(fe){this._position=this.totalTime?fe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(fe){const ut="start"==fe?this._onStartFns:this._onDoneFns;ut.forEach(Ye=>Ye()),ut.length=0}}class sn{constructor(fe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=fe;let ut=0,Ye=0,it=0;const ze=this.players.length;0==ze?qe(()=>this._onFinish()):this.players.forEach(xt=>{xt.onDone(()=>{++ut==ze&&this._onFinish()}),xt.onDestroy(()=>{++Ye==ze&&this._onDestroy()}),xt.onStart(()=>{++it==ze&&this._onStart()})}),this.totalTime=this.players.reduce((xt,mt)=>Math.max(xt,mt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fe=>fe()),this._onDoneFns=[])}
1init(){this.players.forEach(fe=>fe.init())}onStart(fe){this._onStartFns.push(fe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(fe=>fe()),this._onStartFns=[])}onDone(fe){this._onDoneFns.push(fe)}onDestroy(fe){this._onDestroyFns.push(fe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(fe=>fe.play())}pause(){this.players.forEach(fe=>fe.pause())}restart(){this.players.forEach(fe=>fe.restart())}finish(){this._onFinish(),this.players.forEach(fe=>fe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(fe=>fe.destroy()),this._onDestroyFns.forEach(fe=>fe()),this._onDestroyFns=[])}reset(){this.players.forEach(fe=>fe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(fe){const ut=fe*this.totalTime;this.players.forEach(Ye=>{const it=Ye.totalTime?Math.min(1,ut/Ye.totalTime):1;Ye.setPosition(it)})}getPosition(){const fe=this.players.reduce((ut,Ye)=>null===ut||Ye.totalTime>ut.totalTime?Ye:ut,null);return null!=fe?fe.getPosition():0}beforeDestroy(){this.players.forEach(fe=>{fe.beforeDestroy&&fe.beforeDestroy()})}triggerCallback(fe){const ut="start"==fe?this._onStartFns:this._onDoneFns;ut.forEach(Ye=>Ye()),ut.length=0}}const Xt="!"},2687:(wn,bt,D)=>{"use strict";D.d(bt,{Kd:()=>ri,X6:()=>kn,qm:()=>Q,s1:()=>ut,yG:()=>ai});var g=D(6895),e=D(4650),R=D(3353),me=D(7579),ve=D(727),ae=D(9521),Te=D(8505),se=D(8372),z=D(9300),x=D(4004);class ut extends class fe{constructor(ye){this._items=ye,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new me.x,this._typeaheadSubscription=ve.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Je=>Je.disabled,this._pressedLetters=[],this.tabOut=new me.x,this.change=new me.x,ye instanceof e.n_E&&ye.changes.subscribe(Je=>
1{if(this._activeItem){const on=Je.toArray().indexOf(this._activeItem);on>-1&&on!==this._activeItemIndex&&(this._activeItemIndex=on)}})}skipPredicate(ye){return this._skipPredicateFn=ye,this}withWrap(ye=!0){return this._wrap=ye,this}withVerticalOrientation(ye=!0){return this._vertical=ye,this}withHorizontalOrientation(ye){return this._horizontal=ye,this}withAllowedModifierKeys(ye){return this._allowedModifierKeys=ye,this}withTypeAhead(ye=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Te.b)(Je=>this._pressedLetters.push(Je)),(0,se.b)(ye),(0,z.h)(()=>this._pressedLetters.length>0),(0,x.U)(()=>this._pressedLetters.join(""))).subscribe(Je=>{const wt=this._getItemsArray();for(let on=1;on<wt.length+1;on++){const st=(this._activeItemIndex+on)%wt.length,Ee=wt[st];if(!this._skipPredicateFn(Ee)&&0===Ee.getLabel().toUpperCase().trim().indexOf(Je)){this.setActiveItem(st);break}}this._pressedLetters=[]}),this}withHomeAndEnd(ye=!0){return this._homeAndEnd=ye,this}setActiveItem(ye){const Je=this._activeItem;this.updateActiveItem(ye),this._activeItem!==Je&&this.change.next(this._activeItemIndex)}onKeydown(ye){const Je=ye.keyCode,on=["altKey","ctrlKey","metaKey","shiftKey"].every(st=>!ye[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(Je){case ae.Mf:return void this.tabOut.next();case ae.JH:if(this._vertical&&on){this.setNextItemActive();break}return;case ae.LH:if(this._vertical&&on){this.setPreviousItemActive();break}return;case ae.SV:if(this._horizontal&&on){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ae.oh:if(this._horizontal&&on){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ae.Sd:if(this._homeAndEnd&&on){this.setFirstItemActive();break}return;case ae.uR:if(this._homeAndEnd&&on){this.setLastItemActive();break}return;default:return void((on||(0,ae.Vb)(ye,"shiftKey"))&&(ye.key&&1===ye.key.length?this._letterKeyStream.next(ye.key.toLocaleUpperCase()):(Je>=ae.A&&Je<=ae.Z||Je>=ae.xE&&Je<=ae.aO)&&this._letterKeyStream.next(String.fromCharCode(Je))))}this._pressedLetters=[],ye.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(ye){const Je=this._getItemsArray(),wt="number"==typeof ye?ye:Je.indexOf(ye);this._activeItem=Je[wt]??null,this._activeItemIndex=wt}_setActiveItemByDelta(ye){this._wrap?this._setActiveInWrapMode(ye):this._setActiveInDefaultMode(ye)}_setActiveInWrapMode(ye){const Je=this._getItemsArray();for(let wt=1;wt<=Je.length;wt++){const on=(this._activeItemIndex+ye*wt+Je.length)%Je.length;if(!this._skipPredicateFn(Je[on]))return void this.setActiveItem(on)}}_setActiveInDefaultMode(ye){this._setActiveItemByIndex(this._activeItemIndex+ye,ye)}_setActiveItemByIndex(ye,Je){const wt=this._getItemsArray();if(wt[ye]){for(;this._skipPredicateFn(wt[ye]);)if(!wt[ye+=Je])return;this.setActiveItem(ye)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}{setActiveItem(ye){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ye),this.activeItem&&this.activeItem.setActiveStyles()}}function kn(De){return 0===De.buttons||0===De.offsetX&&0===De.offsetY}function ai(De){const ye=De.touches&&De.touches[0]||De.changedTouches&&De.changedTouches[0];return!(!ye||-1!==ye.identifier||null!=ye.radiusX&&1!==ye.radiusX||null!=ye.radiusY&&1!==ye.radiusY)}const _n=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ui(){return null}}),zn=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ri=(()=>{class De{constructor(Je,wt,on,st){this._ngZone=wt,this._defaultOptions=st,this._document=on,this._liveElement=Je||this._createLiveElement()}announce(Je,...wt){const on=this._defaultOptions;let st,Ee;return 1===wt.length&&"number"==typeof wt[0]?Ee=wt[0]:[st,Ee]=wt,this.clear(),clearTimeout(this._previousTimeout),st||(st=on&&on.politeness?on.politeness:"polite"),null==Ee&&on&&(Ee=on.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(V=>this._currentResolve=V)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Je,"number"==typeof Ee&&(this._previousTimeout=setTimeout(()=>this.clear(),Ee)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Je="cdk-live-announcer-element",wt=this._document.getElementsByClassName(Je),on=this._document.createElement("div");for(let st=0;st<wt.length;st++)wt[st].remove();return on.classList.add(Je),on.classList.add("cdk-visually-hidden"),on.setAttribute("aria-atomic","true"),on.setAttribute("aria-live","polite"),this._document.body.appendChild(on),on}}return De.\u0275fac=function(Je){return new(Je||De)(e.LFG(_n,8),e.LFG(e.R0b),e.LFG(g.K0),e.LFG(zn,8))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const P="cdk-high-contrast-black-on-white",le="cdk-high-contrast-white-on-black",O="c
1dk-high-contrast-active";let Q=(()=>{class De{constructor(Je,wt){this._platform=Je,this._document=wt}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Je=this._document.createElement("div");Je.style.backgroundColor="rgb(1,2,3)",Je.style.position="absolute",this._document.body.appendChild(Je);const wt=this._document.defaultView||window,on=wt&&wt.getComputedStyle?wt.getComputedStyle(Je):null,st=(on&&on.backgroundColor||"").replace(/ /g,"");switch(Je.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Je=this._document.body.classList;Je.remove(O),Je.remove(P),Je.remove(le),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?(Je.add(O),Je.add(P)):2===wt&&(Je.add(O),Je.add(le))}}}return De.\u0275fac=function(Je){return new(Je||De)(e.LFG(R.t4),e.LFG(g.K0))},De.\u0275prov=e.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})()},445:(wn,bt,D)=>{"use strict";D.d(bt,{Is:()=>Te,vT:()=>z});var g=D(4650),e=D(6895);const R=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function me(){return(0,g.f3M)(e.K0)}}),ve=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Te=(()=>{class x{constructor(de){if(this.value="ltr",this.change=new g.vpe,de){const Mt=de.documentElement?de.documentElement.dir:null;this.value=function ae(x){const G=x?.toLowerCase()||"";return"auto"===G&&typeof navigator<"u"&&navigator?.language?ve.test(navigator.language)?"rtl":"ltr":"rtl"===G?"rtl":"ltr"}((de.body?de.body.dir:null)||Mt||"ltr")}}ngOnDestroy(){this.change.complete()}}return x.\u0275fac=function(de){return new(de||x)(g.LFG(R,8))},x.\u0275prov=g.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})(),z=(()=>{class x{}return x.\u0275fac=function(de){return new(de||x)},x.\u0275mod=g.oAB({type:x}),x.\u0275inj=g.cJS({}),x})()},1281:(wn,bt,D)=>{"use strict";D.d(bt,{Eq:()=>ve,HM:()=>ae,Ig:()=>e,fI:()=>Te,su:()=>R});var g=D(4650);function e(z){return null!=z&&"false"!=`${z}`}function R(z,x=0){return function me(z){return!isNaN(parseFloat(z))&&!isNaN(Number(z))}(z)?Number(z):x}function ve(z){return Array.isArray(z)?z:[z]}function ae(z){return null==z?"":"string"==typeof z?z:`${z}px`}function Te(z){return z instanceof g.SBq?z.nativeElement:z}},5017:(wn,bt,D)=>{"use strict";D.d(bt,{Ov:()=>x,P3:()=>Te,Z9:()=>ae,eX:()=>z,k:()=>dt});var g=D(5191),e=D(9646),R=D(7579),me=D(4650);function ae(Mt){return Mt&&"function"==typeof Mt.connect}class Te extends class ve{}{constructor(We){super(),this._data=We}connect(){return(0,g.b)(this._data)?this._data:(0,e.of)(this._data)}disconnect(){}}class z{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(We,At,qe,lt,sn){We.forEachOperation((Xt,ot,fe)=>{let ut,Ye;null==Xt.previousIndex?(ut=this._insertView(()=>qe(Xt,ot,fe),fe,At,lt(Xt)),Ye=ut?1:0):null==fe?(this._detachAndCacheView(ot,At),Ye=3):(ut=this._moveView(ot,fe,At,lt(Xt)),Ye=2),sn&&sn({context:ut?.context,operation:Ye,record:Xt})})}detach(){for(const We of this._viewCache)We.destroy();this._viewCache=[]}_insertView(We,At,qe,lt){const sn=this._insertViewFromCache(At,qe);if(sn)return void(sn.context.$implicit=lt);const Xt=We();return qe.createEmbeddedView(Xt.templateRef,Xt.context,Xt.index)}_detachAndCacheView(We,At){const qe=At.detach(We);this._maybeCacheView(qe,At)}_moveView(We,At,qe,lt){const sn=qe.get(We);return qe.move(sn,At),sn.context.$implicit=lt,sn}_maybeCacheView(We,At){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(We);else{const qe=At.indexOf(We);-1===qe?We.destroy():At.remove(qe)}}_insertViewFromCache(We,At){const qe=this._viewCache.pop();return qe&&At.insert(qe,We),qe||null}}class x{constructor(We=!1,At,qe=!0){this._multiple=We,this._emitChanges=qe,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new R.x,At&&At.length&&(We?At.forEach(lt=>this._markSelected(lt)):this._markSelected(At[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())
1),this._selected}select(...We){this._verifyValueAssignment(We),We.forEach(At=>this._markSelected(At)),this._emitChangeEvent()}deselect(...We){this._verifyValueAssignment(We),We.forEach(At=>this._unmarkSelected(At)),this._emitChangeEvent()}toggle(We){this.isSelected(We)?this.deselect(We):this.select(We)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(We){return this._selection.has(We)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(We){this._multiple&&this.selected&&this._selected.sort(We)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(We){this.isSelected(We)||(this._multiple||this._unmarkAll(),this._selection.add(We),this._emitChanges&&this._selectedToEmit.push(We))}_unmarkSelected(We){this.isSelected(We)&&(this._selection.delete(We),this._emitChanges&&this._deselectedToEmit.push(We))}_unmarkAll(){this.isEmpty()||this._selection.forEach(We=>this._unmarkSelected(We))}_verifyValueAssignment(We){}}const dt=new me.OlP("_ViewRepeater")},9521:(wn,bt,D)=>{"use strict";D.d(bt,{A:()=>je,JH:()=>Xt,JU:()=>ae,K5:()=>ve,LH:()=>lt,L_:()=>de,MW:()=>O,Mf:()=>R,SV:()=>sn,Sd:()=>At,Vb:()=>yt,Z:()=>le,aO:()=>gn,b2:()=>Ne,hY:()=>G,jx:()=>Te,oh:()=>qe,uR:()=>We,xE:()=>it,zL:()=>se});const R=9,ve=13,ae=16,Te=17,se=18,G=27,de=32,We=35,At=36,qe=37,lt=38,sn=39,Xt=40,it=48,gn=57,je=65,le=90,O=91,Ne=224;function yt(Vt,...Ke){return Ke.length?Ke.some(Ge=>Vt[Ge]):Vt.altKey||Vt.shiftKey||Vt.ctrlKey||Vt.metaKey}},3353:(wn,bt,D)=>{"use strict";D.d(bt,{Mq:()=>Mt,Oy:()=>ot,_i:()=>We,i$:()=>G,kV:()=>lt,sA:()=>Xt,t4:()=>me});var g=D(4650),e=D(6895);let R;try{R=typeof Intl<"u"&&Intl.v8BreakIterator}catch{R=!1}let z,de,dt,At,me=(()=>{class fe{constructor(Ye){this._platformId=Ye,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!R)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return fe.\u0275fac=function(Ye){return new(Ye||fe)(g.LFG(g.Lbi))},fe.\u0275prov=g.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function G(fe){return function x(){if(null==z&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>z=!0}))}finally{z=z||!1}return z}()?fe:!!fe.capture}function Mt(){if(null==dt){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return dt=!1,dt;if("scrollBehavior"in document.documentElement.style)dt=!0;else{const fe=Element.prototype.scrollTo;dt=!!fe&&!/\{\s*\[native code\]\s*\}/.test(fe.toString())}}return dt}function We(){if("object"!=typeof document||!document)return 0;if(null==de){const fe=document.createElement("div"),ut=fe.style;fe.dir="rtl",ut.width="1px",ut.overflow="auto",ut.visibility="hidden",ut.pointerEvents="none",ut.position="absolute";const Ye=document.createElement("div"),it=Ye.style;it.width="2px",it.height="1px",fe.appendChild(Ye),document.body.appendChild(fe),de=0,0===fe.scrollLeft&&(fe.scrollLeft=1,de=0===fe.scrollLeft?1:2),fe.remove()}return de}function lt(fe){if(function qe(){if(null==At){const fe=typeof document<"u"?document.head:null;At=!(!fe||!fe.createShadowRoot&&!fe.attachShadow)}return At}()){const ut=fe.getRootNode?fe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ut instanceof ShadowRoot)return ut}return null}function Xt(fe){return fe.composedPath?fe.composedPath()[0]:fe.target}function ot(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Moc
1ha}},6270:(wn,bt,D)=>{"use strict";D.d(bt,{xd:()=>ai,ZD:()=>li,x0:()=>Pi,N7:()=>zn,mF:()=>Wn,Cl:()=>ei,rL:()=>yi});var g=D(1281),e=D(4650),R=D(7579),me=D(9646),ve=D(9751),ae=D(4968),Te=D(6406),se=D(4408);let x,z=1;const G={};function de(Ze){return Ze in G&&(delete G[Ze],!0)}const dt={setImmediate(Ze){const Oe=z++;return G[Oe]=!0,x||(x=Promise.resolve()),x.then(()=>de(Oe)&&Ze()),Oe},clearImmediate(Ze){de(Ze)}},{setImmediate:We,clearImmediate:At}=dt,qe={setImmediate(...Ze){const{delegate:Oe}=qe;return(Oe?.setImmediate||We)(...Ze)},clearImmediate(Ze){const{delegate:Oe}=qe;return(Oe?.clearImmediate||At)(Ze)},delegate:void 0};var sn=D(7565);const ot=new class Xt extends sn.v{flush(Oe){this._active=!0;const P=this._scheduled;this._scheduled=void 0;const{actions:le}=this;let O;Oe=Oe||le.shift();do{if(O=Oe.execute(Oe.state,Oe.delay))break}while((Oe=le[0])&&Oe.id===P&&le.shift());if(this._active=!1,O){for(;(Oe=le[0])&&Oe.id===P&&le.shift();)Oe.unsubscribe();throw O}}}(class lt extends se.o{constructor(Oe,P){super(Oe,P),this.scheduler=Oe,this.work=P}requestAsyncId(Oe,P,le=0){return null!==le&&le>0?super.requestAsyncId(Oe,P,le):(Oe.actions.push(this),Oe._scheduled||(Oe._scheduled=qe.setImmediate(Oe.flush.bind(Oe,void 0))))}recycleAsyncId(Oe,P,le=0){var O;if(null!=le?le>0:this.delay>0)return super.recycleAsyncId(Oe,P,le);const{actions:Q}=Oe;null!=P&&(null===(O=Q[Q.length-1])||void 0===O?void 0:O.id)!==P&&(qe.clearImmediate(P),Oe._scheduled=void 0)}});var ut=D(727),Ye=D(5191),it=D(1884),ze=D(4986),xt=D(4482),mt=D(8421),zt=D(5403),$t=D(5963);function Vn(Ze,Oe=ze.z){return function pn(Ze){return(0,xt.e)((Oe,P)=>{let le=!1,O=null,Q=null,ke=!1;const De=()=>{if(Q?.unsubscribe(),Q=null,le){le=!1;const Je=O;O=null,P.next(Je)}ke&&P.complete()},ye=()=>{Q=null,ke&&P.complete()};Oe.subscribe((0,zt.x)(P,Je=>{le=!0,O=Je,Q||(0,mt.Xf)(Ze(Je)).subscribe(Q=(0,zt.x)(P,De,ye))},()=>{ke=!0,(!le||!Q||Q.closed)&&P.complete()}))})}(()=>(0,$t.H)(Ze,Oe))}var Ut=D(9300),gn=D(2722),tt=D(8675),Zt=D(1520),St=D(3900),$e=D(4782),je=D(3353),ie=D(6895),ft=D(445),Wt=D(5017);const Dt=["contentWrapper"],hn=["*"],Gn=new e.OlP("VIRTUAL_SCROLL_STRATEGY");class qn{constructor(Oe,P,le){this._scrolledIndexChange=new R.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,it.x)()),this._viewport=null,this._itemSize=Oe,this._minBufferPx=P,this._maxBufferPx=le}attach(Oe){this._viewport=Oe,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(Oe,P,le){this._itemSize=Oe,this._minBufferPx=P,this._maxBufferPx=le,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(Oe,P){this._viewport&&this._viewport.scrollToOffset(Oe*this._itemSize,P)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const Oe=this._viewport.getRenderedRange(),P={start:Oe.start,end:Oe.end},le=this._viewport.getViewportSize(),O=this._viewport.getDataLength();let Q=this._viewport.measureScrollOffset(),ke=this._itemSize>0?Q/this._itemSize:0;if(P.end>O){const ye=Math.ceil(le/this._itemSize),Je=Math.max(0,Math.min(ke,O-ye));ke!=Je&&(ke=Je,Q=Je*this._itemSize,P.start=Math.floor(ke)),P.end=Math.max(0,Math.min(O,P.start+ye))}const De=Q-P.start*this._itemSize;if(De<this._minBufferPx&&0!=P.start){const ye=Math.ceil((this._maxBufferPx-De)/this._itemSize);P.start=Math.max(0,P.start-ye),P.end=Math.min(O,Math.ceil(ke+(le+this._minBufferPx)/this._itemSize))}else{const ye=P.end*this._itemSize-(Q+le);if(ye<this._minBufferPx&&P.end!=O){const Je=Math.ceil((this._maxBufferPx-ye)/this._itemSize);Je>0&&(P.end=Math.min(O,P.end+Je),P.start=Math.max(0,Math.floor(ke-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(P),this._viewport.setRenderedContentOffset(this._itemSize*P.start),this._scrolledIndexChange.next(Math.floor(ke))}}function kn(Ze){return Ze._scrollStrategy}let ai=(()=>{class Ze{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new qn(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(P){this._itemSize=(0,g.su)(P)}get minBufferPx(){return this._minBufferPx}set minBufferPx(P){this._minBufferPx=(0,g.su)(P)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(P){this._maxBufferPx=(0,g.su)(P)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[e._Bn([{provide:Gn,useFactory:kn,deps:[(0,e.Gpc)(()=>Ze)]}]),e.TTD]}),Ze})(),Wn=(()=>{class Ze{constructor(P,le,O){this._ngZone=P,this._platform=le,this._scrolled=new R.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=O}register(P){this.scrollContainers.has(P)||this.scrollContainers.set(P,P.elementScrolled().subscribe(()=>this._scrolled.next(P)))}deregister(P){const le=this.scrollContainers.get(P);le&&(le.unsubscribe(),this.scrollContainers.delete(P))}scrolled(P=20){return this._platform.isBrowser?new ve.y(le=>{this._globalSubscription||this._addGlobalListener();const O=P>0?this._scrolled.pipe(Vn(P)).subscribe(le):this._scrolled.subscribe(le);return this._scrolledCount++,()=>{O.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,me.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEac
1h((P,le)=>this.deregister(le)),this._scrolled.complete()}ancestorScrolled(P,le){const O=this.getAncestorScrollContainers(P);return this.scrolled(le).pipe((0,Ut.h)(Q=>!Q||O.indexOf(Q)>-1))}getAncestorScrollContainers(P){const le=[];return this.scrollContainers.forEach((O,Q)=>{this._scrollableContainsElement(Q,P)&&le.push(Q)}),le}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(P,le){let O=(0,g.fI)(le),Q=P.getElementRef().nativeElement;do{if(O==Q)return!0}while(O=O.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const P=this._getWindow();return(0,ae.R)(P.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(e.R0b),e.LFG(je.t4),e.LFG(ie.K0,8))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Ln=(()=>{class Ze{constructor(P,le,O,Q){this.elementRef=P,this.scrollDispatcher=le,this.ngZone=O,this.dir=Q,this._destroyed=new R.x,this._elementScrolled=new ve.y(ke=>this.ngZone.runOutsideAngular(()=>(0,ae.R)(this.elementRef.nativeElement,"scroll").pipe((0,gn.R)(this._destroyed)).subscribe(ke)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(P){const le=this.elementRef.nativeElement,O=this.dir&&"rtl"==this.dir.value;null==P.left&&(P.left=O?P.end:P.start),null==P.right&&(P.right=O?P.start:P.end),null!=P.bottom&&(P.top=le.scrollHeight-le.clientHeight-P.bottom),O&&0!=(0,je._i)()?(null!=P.left&&(P.right=le.scrollWidth-le.clientWidth-P.left),2==(0,je._i)()?P.left=P.right:1==(0,je._i)()&&(P.left=P.right?-P.right:P.right)):null!=P.right&&(P.left=le.scrollWidth-le.clientWidth-P.right),this._applyScrollToOptions(P)}_applyScrollToOptions(P){const le=this.elementRef.nativeElement;(0,je.Mq)()?le.scrollTo(P):(null!=P.top&&(le.scrollTop=P.top),null!=P.left&&(le.scrollLeft=P.left))}measureScrollOffset(P){const le="left",O="right",Q=this.elementRef.nativeElement;if("top"==P)return Q.scrollTop;if("bottom"==P)return Q.scrollHeight-Q.clientHeight-Q.scrollTop;const ke=this.dir&&"rtl"==this.dir.value;return"start"==P?P=ke?O:le:"end"==P&&(P=ke?le:O),ke&&2==(0,je._i)()?P==le?Q.scrollWidth-Q.clientWidth-Q.scrollLeft:Q.scrollLeft:ke&&1==(0,je._i)()?P==le?Q.scrollLeft+Q.scrollWidth-Q.clientWidth:-Q.scrollLeft:P==le?Q.scrollLeft:Q.scrollWidth-Q.clientWidth-Q.scrollLeft}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.Y36(e.SBq),e.Y36(Wn),e.Y36(e.R0b),e.Y36(ft.Is,8))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ze})(),yi=(()=>{class Ze{constructor(P,le,O){this._platform=P,this._change=new R.x,this._changeListener=Q=>{this._change.next(Q)},this._document=O,le.runOutsideAngular(()=>{if(P.isBrowser){const Q=this._getWindow();Q.addEventListener("resize",this._changeListener),Q.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const P=this._getWindow();P.removeEventListener("resize",this._changeListener),P.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const P={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),P}getViewportRect(){const P=this.getViewportScrollPosition(),{width:le,height:O}=this.getViewportSize();return{top:P.top,left:P.left,bottom:P.top+O,right:P.left+le,height:O,width:le}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const P=this._document,le=this._getWindow(),O=P.documentElement,Q=O.getBoundingClientRect();return{top:-Q.top||P.body.scrollTop||le.scrollY||O.scrollTop||0,left:-Q.left||P.body.scrollLeft||le.scrollX||O.scrollLeft||0}}change(P=20){return P>0?this._change.pipe(Vn(P)):this._change}
1_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const P=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:P.innerWidth,height:P.innerHeight}:{width:0,height:0}}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(je.t4),e.LFG(e.R0b),e.LFG(ie.K0,8))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const ui=typeof requestAnimationFrame<"u"?Te.Z:ot;let zn=(()=>{class Ze extends Ln{constructor(P,le,O,Q,ke,De,ye){super(P,De,O,ke),this.elementRef=P,this._changeDetectorRef=le,this._scrollStrategy=Q,this._detachedSubject=new R.x,this._renderedRangeSubject=new R.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ve.y(Je=>this._scrollStrategy.scrolledIndexChange.subscribe(wt=>Promise.resolve().then(()=>this.ngZone.run(()=>Je.next(wt))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ut.w0.EMPTY,this._viewportChanges=ye.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(P){this._orientation!==P&&(this._orientation=P,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(P){this._appendOnly=(0,g.Ig)(P)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,tt.O)(null),Vn(0,ui)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(P){this.ngZone.runOutsideAngular(()=>{this._forOf=P,this._forOf.dataStream.pipe((0,gn.R)(this._detachedSubject)).subscribe(le=>{const O=le.length;O!==this._dataLength&&(this._dataLength=O,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(P){this._totalContentSize!==P&&(this._totalContentSize=P,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(P){(function _n(Ze,Oe){return Ze.start==Oe.start&&Ze.end==Oe.end})(this._renderedRange,P)||(this.appendOnly&&(P={start:0,end:Math.max(this._renderedRange.end,P.end)}),this._renderedRangeSubject.next(this._renderedRange=P),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(P,le="to-start"){const Q="horizontal"==this.orientation,ke=Q?"X":"Y";let ye=`translate${ke}(${Number((Q&&this.dir&&"rtl"==this.dir.value?-1:1)*P)}px)`;this._renderedContentOffset=P=this.appendOnly&&"to-start"===le?0:P,"to-end"===le&&(ye+=` translate${ke}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=ye&&(this._renderedContentTransform=ye,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(P,le="auto"){const O={behavior:le};"horizontal"===this.orientation?O.start=P:O.top=P,this.scrollTo(O)}scrollToIndex(P,le="auto"){this._scrollStrategy.scrollToIndex(P,le)}measureScrollOffset(P){return super.measureScrollOffset(P||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const P=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?P.offsetWidth:P.offsetHeight}measureRangeSize(P){return this._forOf?this._forOf.measureRangeSize(P,this.orientation):0}
1checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const P=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?P.clientWidth:P.clientHeight}_markChangeDetectionNeeded(P){P&&this._runAfterChangeDetection.push(P),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const P=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const le of P)le()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(Gn,8),e.Y36(ft.Is,8),e.Y36(Wn),e.Y36(yi))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(P,le){if(1&P&&e.Gf(Dt,7),2&P){let O;e.iGM(O=e.CRH())&&(le._contentWrapper=O.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(P,le){2&P&&e.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===le.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==le.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[e._Bn([{provide:Ln,useExisting:Ze}]),e.qOj],ngContentSelectors:hn,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(P,le){1&P&&(e.F$t(),e.TgZ(0,"div",0,1),e.Hsn(2),e.qZA(),e._UZ(3,"div",2)),2&P&&(e.xp6(3),e.Udp("width",le._totalContentWidth)("height",le._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Ze})();function ri(Ze,Oe,P){if(!P.getBoundingClientRect)return 0;const O=P.getBoundingClientRect();return"horizontal"===Ze?"start"===Oe?O.left:O.right:"start"===Oe?O.top:O.bottom}let Pi=(()=>{class Ze{constructor(P,le,O,Q,ke,De){this._viewContainerRef=P,this._template=le,this._differs=O,this._viewRepeater=Q,this._viewport=ke,this.viewChange=new R.x,this._dataSourceChanges=new R.x,this.dataStream=this._dataSourceChanges.pipe((0,tt.O)(null),(0,Zt.G)(),(0,St.w)(([ye,Je])=>this._changeDataSource(ye,Je)),(0,$e.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new R.x,this.dataStream.subscribe(ye=>{this._data=ye,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,gn.R)(this._destroyed)).subscribe(ye=>{this._renderedRange=ye,this.viewChange.observers.length&&De.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(P){this._cdkVirtualForOf=P,(0,Wt.Z9)(P)?this._dataSourceChanges.next(P):this._dataSourceChanges.next(new Wt.P3((0,Ye.b)(P)?P:Array.from(P||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(P){this._needsUpdate=!0,this._cdkVirtualForTrackBy=P?(le,O)=>P(le+(this._renderedRange?this._renderedRange.start:0),O):void 0}
1set cdkVirtualForTemplate(P){P&&(this._needsUpdate=!0,this._template=P)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(P){this._viewRepeater.viewCacheSize=(0,g.su)(P)}measureRangeSize(P,le){if(P.start>=P.end)return 0;const O=P.start-this._renderedRange.start,Q=P.end-P.start;let ke,De;for(let ye=0;ye<Q;ye++){const Je=this._viewContainerRef.get(ye+O);if(Je&&Je.rootNodes.length){ke=De=Je.rootNodes[0];break}}for(let ye=Q-1;ye>-1;ye--){const Je=this._viewContainerRef.get(ye+O);if(Je&&Je.rootNodes.length){De=Je.rootNodes[Je.rootNodes.length-1];break}}return ke&&De?ri(le,"end",De)-ri(le,"start",ke):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const P=this._differ.diff(this._renderedItems);P?this._applyChanges(P):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((P,le)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(P,le):le)),this._needsUpdate=!0)}_changeDataSource(P,le){return P&&P.disconnect(this),this._needsUpdate=!0,le?le.connect(this):(0,me.of)()}_updateContext(){const P=this._data.length;let le=this._viewContainerRef.length;for(;le--;){const O=this._viewContainerRef.get(le);O.context.index=this._renderedRange.start+le,O.context.count=P,this._updateComputedContextProperties(O.context),O.detectChanges()}}_applyChanges(P){this._viewRepeater.applyChanges(P,this._viewContainerRef,(Q,ke,De)=>this._getEmbeddedViewArgs(Q,De),Q=>Q.item),P.forEachIdentityChange(Q=>{this._viewContainerRef.get(Q.currentIndex).context.$implicit=Q.item});const le=this._data.length;let O=this._viewContainerRef.length;for(;O--;){const Q=this._viewContainerRef.get(O);Q.context.index=this._renderedRange.start+O,Q.context.count=le,this._updateComputedContextProperties(Q.context)}}_updateComputedContextProperties(P){P.first=0===P.index,P.last=P.index===P.count-1,P.even=P.index%2==0,P.odd=!P.even}_getEmbeddedViewArgs(P,le){return{templateRef:this._template,context:{$implicit:P.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:le}}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Wt.k),e.Y36(zn,4),e.Y36(e.R0b))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[e._Bn([{provide:Wt.k,useClass:Wt.eX}])]}),Ze})(),li=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({}),Ze})(),ei=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[ft.vT,li],ft.vT,li]}),Ze})()},6895:(wn,bt,D)=>{"use strict";D.d(bt,{Do:()=>Xt,ED:()=>ct,EM:()=>Et,HT:()=>ve,JF:()=>fi,JJ:()=>to,K0:()=>Te,Mx:()=>ho,NF:()=>Rs,O5:()=>Vt,Ov:()=>Ao,PC:()=>Mi,PM:()=>oo,RF:()=>Kt,S$:()=>qe,V_:()=>x,Ye:()=>ot,b0:()=>sn,bD:()=>no,ez:()=>rs,mk:()=>Ni,n9:()=>we,q:()=>R,sg:()=>ne,tP:()=>Ti,w_:()=>ae});var g=D(4650);let e=null;function R(){return e}function ve(B){e||(e=B)}class ae{}const Te=new g.OlP("DocumentToken");let se=(()=>{class B{historyGo($){throw new Error("Not implemented")}}return B.\u0275fac=function($){return new($||B)},B.\u0275prov=g.Yz7({token:B,factory:function(){return function z(){return(0,g.LFG)(G)}()},providedIn:"platform"}),B})();const x=new g.OlP("Location Initialized");let G=(()=>{class B extends se{constructor($){super(),this._doc=$,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState($){const Ae=R().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("popstate",$,!1),()=>Ae.removeEventListener("popstate",$)}onHashChange($){const Ae=R().getGlobalEventTarget(this._doc,"window");return Ae.addEventListener("hashchange",$,!1),()=>Ae.removeEventListener("hashchange",$)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname($){this.location.pathname=$}pushState($,Ae,Pt){de()?this._history.pushState($,Ae,Pt):this.location.hash=Pt}replaceState($,Ae,Pt){de()?this._history.replaceState($,Ae,Pt):this.location.hash=Pt}forward(){this._history.forward()}back(){this._history.back()}historyGo($=0){this._history.go($)}getState(){return this._history.state}}return B.\u0275fac=function($){return new($||B)(g.LFG(Te))},B.\u0275prov=g.Yz7({token:B,factory:function(){return function dt(){return new G((0,g.LFG)(Te))}()},providedIn:"platform"}),B})();function de(){return!!window.history.pushState}function Mt(B,oe){if(0==B.length)return oe;if(0==oe.length)return B;let $=0;return B.endsWith("/")&&$++,oe.startsWith("/")&&$++,2==$?B+oe.substring(1):1==$?B+oe:B+"/"+oe}function We(B){const oe=B.match(/#|\?|$/),$=oe&&oe.index||B.length;return B.slice(0,$-("/"===B[$-1]?1:0))+B.slice($)}function At(B){return B&&"?"!==B[0]?"?"+B:B}let qe=(()=>{class B{historyGo($){throw new Error("Not implemented")}}return B.\u0275fac=function($){return new($||B)},B.\u0275prov=g.Yz7({token:B,factory:function(){return(0,g.f3M)(sn)},providedIn:"root"}),B})();const lt=new g.OlP("appBaseHref");let sn=(()=>{class B extends qe{constructor($,Ae){super(),this._platformLocation=$,this._removeListenerFns=[],this._baseHref=Ae??this._platformLocation.getBaseHrefFromDOM()??(0,g.f3M)(Te).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($){this._removeListenerFns.push(this._platformLocation.onPopState($),this._platformLocation.on
1HashChange($))}getBaseHref(){return this._baseHref}prepareExternalUrl($){return Mt(this._baseHref,$)}path($=!1){const Ae=this._platformLocation.pathname+At(this._platformLocation.search),Pt=this._platformLocation.hash;return Pt&&$?`${Ae}${Pt}`:Ae}pushState($,Ae,Pt,dn){const En=this.prepareExternalUrl(Pt+At(dn));this._platformLocation.pushState($,Ae,En)}replaceState($,Ae,Pt,dn){const En=this.prepareExternalUrl(Pt+At(dn));this._platformLocation.replaceState($,Ae,En)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($=0){this._platformLocation.historyGo?.($)}}return B.\u0275fac=function($){return new($||B)(g.LFG(se),g.LFG(lt,8))},B.\u0275prov=g.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),Xt=(()=>{class B extends qe{constructor($,Ae){super(),this._platformLocation=$,this._baseHref="",this._removeListenerFns=[],null!=Ae&&(this._baseHref=Ae)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState($){this._removeListenerFns.push(this._platformLocation.onPopState($),this._platformLocation.onHashChange($))}getBaseHref(){return this._baseHref}path($=!1){let Ae=this._platformLocation.hash;return null==Ae&&(Ae="#"),Ae.length>0?Ae.substring(1):Ae}prepareExternalUrl($){const Ae=Mt(this._baseHref,$);return Ae.length>0?"#"+Ae:Ae}pushState($,Ae,Pt,dn){let En=this.prepareExternalUrl(Pt+At(dn));0==En.length&&(En=this._platformLocation.pathname),this._platformLocation.pushState($,Ae,En)}replaceState($,Ae,Pt,dn){let En=this.prepareExternalUrl(Pt+At(dn));0==En.length&&(En=this._platformLocation.pathname),this._platformLocation.replaceState($,Ae,En)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo($=0){this._platformLocation.historyGo?.($)}}return B.\u0275fac=function($){return new($||B)(g.LFG(se),g.LFG(lt,8))},B.\u0275prov=g.Yz7({token:B,factory:B.\u0275fac}),B})(),ot=(()=>{class B{constructor($){this._subject=new g.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=$;const Ae=this._locationStrategy.getBaseHref();this._baseHref=We(Ye(Ae)),this._locationStrategy.onPopState(Pt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Pt.state,type:Pt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path($=!1){return this.normalize(this._locationStrategy.path($))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo($,Ae=""){return this.path()==this.normalize($+At(Ae))}normalize($){return B.stripTrailingSlash(function ut(B,oe){return B&&oe.startsWith(B)?oe.substring(B.length):oe}(this._baseHref,Ye($)))}prepareExternalUrl($){return $&&"/"!==$[0]&&($="/"+$),this._locationStrategy.prepareExternalUrl($)}go($,Ae="",Pt=null){this._locationStrategy.pushState(Pt,"",$,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl($+At(Ae)),Pt)}replaceState($,Ae="",Pt=null){this._locationStrategy.replaceState(Pt,"",$,Ae),this._notifyUrlChangeListeners(this.prepareExternalUrl($+At(Ae)),Pt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo($=0){this._locationStrategy.historyGo?.($)}onUrlChange($){return this._urlChangeListeners.push($),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ae=>{this._notifyUrlChangeListeners(Ae.url,Ae.state)})),()=>{const Ae=this._urlChangeListeners.indexOf($);this._urlChangeListeners.splice(Ae,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners($="",Ae){this._urlChangeListeners.forEach(Pt=>Pt($,Ae))}subscribe($,Ae,Pt){return this._subject.subscribe({next:$,error:Ae,complete:Pt})}}return B.normalizeQueryParams=At,B.joinWithSlash=Mt,B.stripTrailingSlash=We,B.\u0275fac=function($){return new($||B)(g.LFG(qe))},B.\u0275prov=g.Yz7({token:B,factory:function(){return function fe(){return new ot((0,g.LFG)(qe))}()},providedIn:"root"}),B})();function Ye(B){return B.replace(/\/index.html$/,"")}var ze=(()=>((ze=ze||{})[ze.Decimal=0]="Decimal",ze[ze.Percent=1]="Percent",ze[ze.Currency=2]="Currency",ze[ze.Scientific=3]="Scientific",ze))(),$t=(()=>(($t=$t||{})[$t.Decimal=0]="Decimal",$t[$t.Group=1]="Group",$t[$t.List=2]="List",$t[$t.PercentSign=3]="PercentSign",$t[$t.PlusSign=4]="PlusSign",$t[$t.MinusSign=5]="MinusSign",$t[$t.Exponential=6]="Exponential",$t[$t.SuperscriptingExponent=7]="SuperscriptingExponent",$t[$t.PerMille=8]="PerMille",$t[$t.Infinity=9]="Infinity",$t[$t.NaN=10]="NaN",$t[$t.TimeSeparator=11]="TimeSeparator",$t[$t.CurrencyDecimal=12]="CurrencyDecimal",$t[$t.CurrencyGroup=13]="CurrencyGroup",$t))();function Dt(B,oe){const $=(0,g.cg1)(B),Ae=$[g.wAp.NumberSymbols][oe];if(typeof Ae>"u"){if(oe===$t.CurrencyDecimal)return $[g.wAp.NumberSymbols][$t.Decimal];if(oe===$t.CurrencyGroup)return $[g.wAp.NumberSymbols][$t.Group]}return Ae}const pt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ai(B){const oe=parseInt(B);if(isNaN(oe))throw new Error("Invalid integer literal when parsing "+B);return oe}function ho(B,oe){oe=encodeURIComponent(oe);for(const $ of B.split(";")){const Ae=$.indexOf("="),[Pt,dn]=-1==Ae?[$,""]:[$.slice(0,Ae),$.slice(Ae+1)];if(Pt.trim()===oe)return decodeURIComponent(dn)}return null}let Ni=(()=>{class B{constructor($,Ae,Pt,dn){this._iterableDiffers=$,this._keyValueDiffers=Ae,this._ngEl=Pt,this._renderer=dn,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass($){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof $?$.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass($){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof $?$.split(/\s+/):$,this._rawClass&&((0,g.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const $=this._iterableDiffer.diff(this._rawClass);$&&this._applyIterableChanges($)}else if(this._keyValueDiffer){const $=this._keyValueDiffer.diff(this._rawClass);$&&this._applyKeyValueChanges($)}}_applyKeyValueChanges($){$.forEachAddedItem(Ae=>this._toggleClass(Ae.key,Ae.currentValue)),$.forEachChangedItem(Ae=>this._toggleClass(Ae.key,Ae.currentValue)),$.forEachRemovedItem(Ae=>{Ae.previousValue&&this._toggleClass(Ae.key,!1)})}_applyIterableChanges($){$.forEachAddedItem(Ae=>{if("string"!=typeof Ae.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,g.AaK)(Ae.item)}`);this._toggleClass(Ae.item,!0)}),$.forEachRemovedItem(Ae=>this._toggleClass(Ae.item,!1))}_applyClasses($){$&&(Array.isArray($)||$ instanceof Set?$.forEach(Ae=>this._toggleClass(Ae,!0)):Object.keys($).forEach(Ae=>this._toggleClass(Ae,!!$[Ae])))}_removeClasses($){$&&(Array.isArray($)||$ instanceof Set?$.forEach(Ae=>this._toggleClass(Ae,!1)):Object.keys($).forEach(Ae=>this._toggleClass(Ae,!1)))}_toggleClass($,Ae){($=$.trim())&&$.split(/\s+/g).forEach(Pt=>{Ae?this._renderer.addClass(this._ngEl.nativeElement,Pt):this._renderer.removeClass(this._ngEl.nativeElement,Pt)})}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.ZZ4),g.Y36(g.aQg),g.Y36(g.SBq),g.Y36(g.Qsj))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),B})();class he{constructor(oe,$,Ae,Pt){this.$implicit=oe,this.ngForOf=$,this.index=Ae,this.count=Pt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ne=(()=>{class B{constructor($,Ae,Pt){this._viewContainer=$,this._template=Ae,this._differs=Pt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf($){this._ngForOf=$,this._ngForOfDirty=!0}set ngForTrackBy($){this._trackByFn=$}get ngForTrackBy(){return this._trackByFn}set ngForTemplate($){$&&(this._template=$)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const $=this._ngForOf;!this._differ&&$&&(this._differ=this._differs.find($).create(this.ngForTrackBy))}if(this._differ){const $=this._differ.diff(this._ngForOf);$&&this._applyChanges($)}}_applyChanges($){const Ae=this._viewContainer;$.forEachOperation((Pt,dn,En)=>
1{if(null==Pt.previousIndex)Ae.createEmbeddedView(this._template,new he(Pt.item,this._ngForOf,-1,-1),null===En?void 0:En);else if(null==En)Ae.remove(null===dn?void 0:dn);else if(null!==dn){const xi=Ae.get(dn);Ae.move(xi,En),Ne(xi,Pt)}});for(let Pt=0,dn=Ae.length;Pt<dn;Pt++){const xi=Ae.get(Pt).context;xi.index=Pt,xi.count=dn,xi.ngForOf=this._ngForOf}$.forEachIdentityChange(Pt=>{Ne(Ae.get(Pt.currentIndex),Pt)})}static ngTemplateContextGuard($,Ae){return!0}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),B})();function Ne(B,oe){B.context.$implicit=oe.item}let Vt=(()=>{class B{constructor($,Ae){this._viewContainer=$,this._context=new Ke,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ae}set ngIf($){this._context.$implicit=this._context.ngIf=$,this._updateView()}set ngIfThen($){Ge("ngIfThen",$),this._thenTemplateRef=$,this._thenViewRef=null,this._updateView()}set ngIfElse($){Ge("ngIfElse",$),this._elseTemplateRef=$,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard($,Ae){return!0}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.s_b),g.Y36(g.Rgc))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),B})();class Ke{constructor(){this.$implicit=null,this.ngIf=null}}function Ge(B,oe){if(oe&&!oe.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,g.AaK)(oe)}'.`)}class ht{constructor(oe,$){this._viewContainerRef=oe,this._templateRef=$,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(oe){oe&&!this._created?this.create():!oe&&this._created&&this.destroy()}}let Kt=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch($){this._ngSwitch=$,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault($){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push($)}_matchCase($){const Ae=$==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ae,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ae}_updateDefaultCases($){if(this._defaultViews&&$!==this._defaultUsed){this._defaultUsed=$;for(let Ae=0;Ae<this._defaultViews.length;Ae++)this._defaultViews[Ae].enforceState($)}}}return B.\u0275fac=function($){return new($||B)},B.\u0275dir=g.lG2({type:B,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),B})(),we=(()=>{class B{constructor($,Ae,Pt){this.ngSwitch=Pt,Pt._addCase(),this._view=new ht($,Ae)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(Kt,9))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),B})(),ct=(()=>{class B{constructor($,Ae,Pt){Pt._addDefault(new ht($,Ae))}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(Kt,9))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngSwitchDefault",""]],standalone:!0}),B})(),Mi=(()=>{class B{constructor($,Ae,Pt){this._ngEl=$,this._differs=Ae,this._renderer=Pt,this._ngStyle=null,this._differ=null}set ngStyle($){this._ngStyle=$,!this._differ&&$&&(this._differ=this._differs.find($).create())}ngDoCheck(){if(this._differ){const $=this._differ.diff(this._ngStyle);$&&this._applyChanges($)}}_setStyle($,Ae){const[Pt,dn]=$.split("."),En=-1===Pt.indexOf("-")?void 0:g.JOm.DashCase;null!=Ae?this._renderer.setStyle(this._ngEl.nativeElement,Pt,dn?`${Ae}${dn}`:Ae,En):this._renderer.removeStyle(this._ngEl.nativeElement,Pt,En)}_applyChanges($){$.forEachRemovedItem(Ae=>this._setStyle(Ae.key,null)),$.forEachAddedItem(Ae=>this._setStyle(Ae.key,Ae.currentValue)),$.forEachChangedItem(Ae=>this._setStyle(Ae.key,Ae.currentValue))}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.SBq),g.Y36(g.aQg),g.Y36(g.Qsj))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),B})(),Ti=(()=>
vendor: 4,444 bytes, line 1
1{class B{constructor($){this._viewContainerRef=$,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges($){if($.ngTemplateOutlet||$.ngTemplateOutletInjector){const Ae=this._viewContainerRef;if(this._viewRef&&Ae.remove(Ae.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Pt,ngTemplateOutletContext:dn,ngTemplateOutletInjector:En}=this;this._viewRef=Ae.createEmbeddedView(Pt,dn,En?{injector:En}:void 0)}else this._viewRef=null}else this._viewRef&&$.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.s_b))},B.\u0275dir=g.lG2({type:B,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.TTD]}),B})();function Ji(B,oe){return new g.vHH(2100,!1)}class eo{createSubscription(oe,$){return oe.subscribe({next:$,error:Ae=>{throw Ae}})}dispose(oe){oe.unsubscribe()}}class Do{createSubscription(oe,$){return oe.then($,Ae=>{throw Ae})}dispose(oe){}}const As=new Do,Wo=new eo;let Ao=(()=>{class B{constructor($){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=$}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform($){return this._obj?$!==this._obj?(this._dispose(),this.transform($)):this._latestValue:($&&this._subscribe($),this._latestValue)}_subscribe($){this._obj=$,this._strategy=this._selectStrategy($),this._subscription=this._strategy.createSubscription($,Ae=>this._updateLatestValue($,Ae))}_selectStrategy($){if((0,g.QGY)($))return As;if((0,g.F4k)($))return Wo;throw Ji()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue($,Ae){$===this._obj&&(this._latestValue=Ae,this._ref.markForCheck())}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.sBO,16))},B.\u0275pipe=g.Yjl({name:"async",type:B,pure:!1,standalone:!0}),B})(),to=(()=>{class B{constructor($){this._locale=$}transform($,Ae,Pt){if(!function ea(B){return!(null==B||""===B||B!=B)}($))return null;Pt=Pt||this._locale;try{return function vn(B,oe,$){return function kt(B,oe,$,Ae,Pt,dn,En=!1){let xi="",Nr=!1;if(isFinite(B)){let Xi=function ti(B){let Ae,Pt,dn,En,xi,oe=Math.abs(B)+"",$=0;for((Pt=oe.indexOf("."))>-1&&(oe=oe.replace(".","")),(dn=oe.search(/e/i))>0?(Pt<0&&(Pt=dn),Pt+=+oe.slice(dn+1),oe=oe.substring(0,dn)):Pt<0&&(Pt=oe.length),dn=0;"0"===oe.charAt(dn);dn++);if(dn===(xi=oe.length))Ae=[0],Pt=1;else{for(xi--;"0"===oe.charAt(xi);)xi--;for(Pt-=dn,Ae=[],En=0;dn<=xi;dn++,En++)Ae[En]=Number(oe.charAt(dn))}return Pt>22&&(Ae=Ae.splice(0,21),$=Pt-1,Pt=1),{digits:Ae,exponent:$,integerLen:Pt}}(B);En&&(Xi=function di(B){if(0===B.digits[0])return B;const oe=B.digits.length-B.integerLen;return B.exponent?B.exponent+=2:(0===oe?B.digits.push(0,0):1===oe&&B.digits.push(0),B.integerLen+=2),B}(Xi));let yr=oe.minInt,Ei=oe.minFrac,Pr=oe.maxFrac;if(dn){const Mr=dn.match(pt);if(null===Mr)throw new Error(`${dn} is not a valid digit info`);const xa=Mr[1],si=Mr[3],_i=Mr[5];null!=xa&&(yr=Ai(xa)),null!=si&&(Ei=Ai(si)),null!=_i?Pr=Ai(_i):null!=si&&Ei>Pr&&(Pr=Ei)}!function cr(B,oe,$){if(oe>$)throw new Error(`The minimum number of digits after fraction (${oe}) is higher than the maximum (${$}).`);let Ae=B.digits,Pt=Ae.length-B.integerLen;const dn=Math.min(Math.max(oe,Pt),$);let En=dn+B.integerLen,xi=Ae[En];if(En>0){Ae.splice(Math.max(B.integerLen,En));for(let Ei=En;Ei<Ae.length;Ei++)Ae[Ei]=0}else{Pt=Math.max(0,Pt),B.integerLen=1,Ae.length=Math.max(1,En=dn+1),Ae[0]=0;for(let Ei=1;Ei<En;Ei++)Ae[Ei]=0}if(xi>=5)if(En-1<0){for(let Ei=0;Ei>En;Ei--)Ae.unshift(0),B.integerLen++;Ae.unshift(1),B.integerLen++}else Ae[En-1]++;for(;Pt<Math.max(0,dn);Pt++)Ae.push(0);let Nr=0!==dn;const Xi=oe+B.integerLen,yr=Ae.reduceRight(function(Ei,Pr,er,lo){return lo[er]=(Pr+=Ei)<10?Pr:Pr-10,Nr&&(0===lo[er]&&er>=Xi?lo.pop():Nr=!1),Pr>=10?1:0},0);yr&&(Ae.unshift(yr),B.integerLen++)}(Xi,Ei,Pr);let er=Xi.digits,lo=Xi.integerLen;const ia=Xi.exponent;let In=[];for(Nr=er.every(Mr=>!Mr);lo<yr;lo++)er.unshift(0);for(;lo<0;lo++)er.unshift(0);lo>0?In=er.splice(lo,er.length):(In=er,er=[0]);const zr=[];for(er.length>=oe.lgSize&&zr.unshift(er.splice(-oe.lgSize,er.length).join(""));er.length>
1oe.gSize;)zr.unshift(er.splice(-oe.gSize,er.length).join(""));er.length&&zr.unshift(er.join("")),xi=zr.join(Dt($,Ae)),In.length&&(xi+=Dt($,Pt)+In.join("")),ia&&(xi+=Dt($,$t.Exponential)+"+"+ia)}else xi=Dt($,$t.Infinity);return xi=B<0&&!Nr?oe.negPre+xi+oe.negSuf:oe.posPre+xi+oe.posSuf,xi}(B,function ni(B,oe="-"){const $={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ae=B.split(";"),Pt=Ae[0],dn=Ae[1],En=-1!==Pt.indexOf(".")?Pt.split("."):[Pt.substring(0,Pt.lastIndexOf("0")+1),Pt.substring(Pt.lastIndexOf("0")+1)],xi=En[0],Nr=En[1]||"";$.posPre=xi.substring(0,xi.indexOf("#"));for(let yr=0;yr<Nr.length;yr++){const Ei=Nr.charAt(yr);"0"===Ei?$.minFrac=$.maxFrac=yr+1:"#"===Ei?$.maxFrac=yr+1:$.posSuf+=Ei}const Xi=xi.split(",");if($.gSize=Xi[1]?Xi[1].length:0,$.lgSize=Xi[2]||Xi[1]?(Xi[2]||Xi[1]).length:0,dn){const yr=Pt.length-$.posPre.length-$.posSuf.length,Ei=dn.indexOf("#");$.negPre=dn.substring(0,Ei).replace(/'/g,""),$.negSuf=dn.slice(Ei+yr).replace(/'/g,"")}else $.negPre=oe+$.posPre,$.negSuf=$.posSuf;return $}(function hn(B,oe){return(0,g.cg1)(B)[g.wAp.NumberFormats][oe]}(oe,ze.Decimal),Dt(oe,$t.MinusSign)),oe,$t.Group,$t.Decimal,$)}(function Io(B){if("string"==typeof B&&!isNaN(Number(B)-parseFloat(B)))return Number(B);if("number"!=typeof B)throw new Error(`${B} is not a number`);return B}($),Pt,Ae)}catch(dn){throw Ji()}}}return B.\u0275fac=function($){return new($||B)(g.Y36(g.soG,16))},B.\u0275pipe=g.Yjl({name:"number",type:B,pure:!0,standalone:!0}),B})();let rs=(()=>{class B{}return B.\u0275fac=function($){return new($||B)},B.\u0275mod=g.oAB({type:B}),B.\u0275inj=g.cJS({}),B})();const no="browser";function Rs(B){return B===no}function oo(B){return"server"===B}let Et=(()=>{class B{}return B.\u0275prov=(0,g.Yz7)({token:B,providedIn:"root",factory:()=>new Ht((0,g.LFG)(Te),window)}),B})();class Ht{constructor(oe,$){this.document=oe,this.window=$,this.offset=()=>[0,0]}setOffset(oe){this.offset=Array.isArray(oe)?()=>oe:oe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(oe){this.supportsScrolling()&&this.window.scrollTo(oe[0],oe[1])}scrollToAnchor(oe){if(!this.supportsScrolling())return;const $=function Rn(B,oe){const $=B.getElementById(oe)||B.getElementsByName(oe)[0];if($)return $;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Ae=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let Pt=Ae.currentNode;for(;Pt;){const dn=Pt.shadowRoot;if(dn){const En=dn.getElementById(oe)||dn.querySelector(`[name="${oe}"]`);if(En)return En}Pt=Ae.nextNode()}}return null}(this.document,oe);$&&(this.scrollToElement($),$.focus())}setHistoryScrollRestoration(oe){if(this.supportScrollRestoration()){const $=this.window.history;$&&$.scrollRestoration&&($.scrollRestoration=oe)}}scrollToElement(oe){const $=oe.getBoundingClientRect(),Ae=$.left+this.window.pageXOffset,Pt=$.top+this.window.pageYOffset,dn=this.offset();this.window.scrollTo(Ae-dn[0],Pt-dn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const oe=fn(this.window.history)||fn(Object.getPrototypeOf(this.window.history));return!(!oe||!oe.writable&&!oe.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function fn(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class fi{}},529:(wn,bt,D)=>{"use strict";D.d(bt,{JF:()=>Pi,eN:()=>Ut});var g=D(6895),e=D(4650),R=D(9646),me=D(9751),ve=D(4351),ae=D(9300),Te=D(4004);class se{}class z{}class x{constructor(Oe){this.normalizedNames=new Map,this.lazyUpdate=null,Oe?this.lazyInit="string"==typeof Oe?()=>{this.headers=new Map,Oe.split("\n").forEach(P=>{const le=P.indexOf(":");if(le>0){const O=P.slice(0,le),Q=O.toLowerCase(),ke=P.slice(le+1).trim();this.maybeSetNormalizedName(O,Q),this.headers.has(Q)?this.headers.get(Q).push(ke):this.headers.set(Q,[ke])}})}:()=>{this.headers=new Map,Object.keys(Oe).forEach(P=>{let le=Oe[P];const O=P.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(O,le),this.maybeSetNormalizedName(P,O))})}:this.headers=new Map}has(Oe){return this.init(),this.headers.has(Oe.toLowerCase())}get(Oe){this.init();const P=this.headers.get(Oe.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Oe){return this.init(),this.headers.get(Oe.toLowerCase())||null}append(Oe,P){return this.clone({name:Oe,value:P,op:"a"})}set(Oe,P){return this.clone({name:Oe,value:P,op:"s"})}delete(Oe,P){return this.clone({name:Oe,value:P,op:"d"})}maybeSetNormalizedName(Oe,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,Oe)}init(){this.lazyInit&&(this.lazyInit instanceof x?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Oe=>this.applyUpdate(Oe)),this.lazyUpdate=null))}
vendor: 6,297 bytes, line 1
1copyFrom(Oe){Oe.init(),Array.from(Oe.headers.keys()).forEach(P=>{this.headers.set(P,Oe.headers.get(P)),this.normalizedNames.set(P,Oe.normalizedNames.get(P))})}clone(Oe){const P=new x;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof x?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([Oe]),P}applyUpdate(Oe){const P=Oe.name.toLowerCase();switch(Oe.op){case"a":case"s":let le=Oe.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Oe.name,P);const O=("a"===Oe.op?this.headers.get(P):void 0)||[];O.push(...le),this.headers.set(P,O);break;case"d":const Q=Oe.value;if(Q){let ke=this.headers.get(P);if(!ke)return;ke=ke.filter(De=>-1===Q.indexOf(De)),0===ke.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,ke)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(Oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>Oe(this.normalizedNames.get(P),this.headers.get(P)))}}class de{encodeKey(Oe){return At(Oe)}encodeValue(Oe){return At(Oe)}decodeKey(Oe){return decodeURIComponent(Oe)}decodeValue(Oe){return decodeURIComponent(Oe)}}const Mt=/%(\d[a-f0-9])/gi,We={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function At(Ze){return encodeURIComponent(Ze).replace(Mt,(Oe,P)=>We[P]??Oe)}function qe(Ze){return`${Ze}`}class lt{constructor(Oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Oe.encoder||new de,Oe.fromString){if(Oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function dt(Ze,Oe){const P=new Map;return Ze.length>0&&Ze.replace(/^\?/,"").split("&").forEach(O=>{const Q=O.indexOf("="),[ke,De]=-1==Q?[Oe.decodeKey(O),""]:[Oe.decodeKey(O.slice(0,Q)),Oe.decodeValue(O.slice(Q+1))],ye=P.get(ke)||[];ye.push(De),P.set(ke,ye)}),P}(Oe.fromString,this.encoder)}else Oe.fromObject?(this.map=new Map,Object.keys(Oe.fromObject).forEach(P=>{const le=Oe.fromObject[P],O=Array.isArray(le)?le.map(qe):[qe(le)];this.map.set(P,O)})):this.map=null}has(Oe){return this.init(),this.map.has(Oe)}get(Oe){this.init();const P=this.map.get(Oe);return P?P[0]:null}getAll(Oe){return this.init(),this.map.get(Oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Oe,P){return this.clone({param:Oe,value:P,op:"a"})}appendAll(Oe){const P=[];return Object.keys(Oe).forEach(le=>{const O=Oe[le];Array.isArray(O)?O.forEach(Q=>{P.push({param:le,value:Q,op:"a"})}):P.push({param:le,value:O,op:"a"})}),this.clone(P)}set(Oe,P){return this.clone({param:Oe,value:P,op:"s"})}delete(Oe,P){return this.clone({param:Oe,value:P,op:"d"})}toString(){return this.init(),this.keys().map(Oe=>{const P=this.encoder.encodeKey(Oe);return this.map.get(Oe).map(le=>P+"="+this.encoder.encodeValue(le)).join("&")}).filter(Oe=>""!==Oe).join("&")}clone(Oe){const P=new lt({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(Oe),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Oe=>this.map.set(Oe,this.cloneFrom.map.get(Oe))),this.updates.forEach(Oe=>{switch(Oe.op){case"a":case"s":const P=("a"===Oe.op?this.map.get(Oe.param):void 0)||[];P.push(qe(Oe.value)),this.map.set(Oe.param,P);break;case"d":if(void 0===Oe.value){this.map.delete(Oe.param);break}{let le=this.map.get(Oe.param)||[];const O=le.indexOf(qe(Oe.value));-1!==O&&le.splice(O,1),le.length>0?this.map.set(Oe.param,le):this.map.delete(Oe.param)}}}),this.cloneFrom=this.updates=null)}}class Xt{constructor(){this.map=new Map}set(Oe,P){return this.map.set(Oe,P),this}get(Oe){return this.map.has(Oe)||this.map.set(Oe,Oe.defaultValue()),this.map.get(Oe)}delete(Oe){return this.map.delete(Oe),this}has(Oe){return this.map.has(Oe)}keys(){return this.map.keys()}}function fe(Ze){return typeof ArrayBuffer<"u"&&Ze instanceof ArrayBuffer}function ut(Ze){return typeof Blob<"u"&&Ze instanceof Blob}function Ye(Ze){return typeof FormData<"u"&&Ze instanceof FormData}class ze{constructor(Oe,P,le,O){let Q;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Oe.toUpperCase(),function ot(Ze){switch(Ze){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||O?(this.body=void 0!==le?le:null,Q=O):Q=le,Q&&(this.reportProgress=!!Q.reportProgress,this.withCredentials=!!Q.withCredentials,Q.responseType&&(this.responseType=Q.responseType),Q.headers&&(this.headers=Q.headers),Q.context&&(this.context=Q.context),Q.params&&(this.params=Q.params)),this.headers||(this.headers=new x),this.context||(this.context=new Xt),this.params){const ke=this.params.toString();if(0===ke.length)this.urlWithParams=P;else{const De=P.indexOf("?");this.urlWithParams=P+(-1===De?"?":De<P.length-1?"&":"")+ke}}else this.params=new lt,this.urlWithParams=P}serializeBody(){return null===this.body?null:fe(this.body)||ut(this.body)||Ye(this.body)||function it(Ze){return typeof URLSearchParams<"u"&&Ze instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof lt?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ye(this.body)?null:ut(this.body)?this.body.type||null:fe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof lt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Oe={}){const P=Oe.method||this.method,le=Oe.url||this.url,O=Oe.responseType||this.responseType,Q=void 0!==Oe.body?Oe.body:this.body,ke=void 0!==Oe.withCredentials?Oe.withCredentials:this.withCredentials,De=void 0!==Oe.reportProgress?Oe.reportProgress:this.reportProgress;let ye=Oe.headers||this.headers,Je=Oe.params||this.params;const wt=Oe.context??this.context;return void 0!==Oe.setHeaders&&(ye=Object.keys(Oe.setHeaders).reduce((on,st)=>on.set(st,Oe.setHeaders[st]),ye)),Oe.setParams&&(Je=Object.keys(Oe.setParams).reduce((on,st)=>on.set(st,Oe.setParams[st]),Je)),new ze(P,le,Q,{params:Je,headers:ye,context:wt,reportProgress:De,responseType:O,withCredentials:ke})}}var xt=(()=>((xt=xt||{}
1)[xt.Sent=0]="Sent",xt[xt.UploadProgress=1]="UploadProgress",xt[xt.ResponseHeader=2]="ResponseHeader",xt[xt.DownloadProgress=3]="DownloadProgress",xt[xt.Response=4]="Response",xt[xt.User=5]="User",xt))();class mt{constructor(Oe,P=200,le="OK"){this.headers=Oe.headers||new x,this.status=void 0!==Oe.status?Oe.status:P,this.statusText=Oe.statusText||le,this.url=Oe.url||null,this.ok=this.status>=200&&this.status<300}}class zt extends mt{constructor(Oe={}){super(Oe),this.type=xt.ResponseHeader}clone(Oe={}){return new zt({headers:Oe.headers||this.headers,status:void 0!==Oe.status?Oe.status:this.status,statusText:Oe.statusText||this.statusText,url:Oe.url||this.url||void 0})}}class pn extends mt{constructor(Oe={}){super(Oe),this.type=xt.Response,this.body=void 0!==Oe.body?Oe.body:null}clone(Oe={}){return new pn({body:void 0!==Oe.body?Oe.body:this.body,headers:Oe.headers||this.headers,status:void 0!==Oe.status?Oe.status:this.status,statusText:Oe.statusText||this.statusText,url:Oe.url||this.url||void 0})}}class $t extends mt{constructor(Oe){super(Oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Oe.url||"(unknown url)"}`:`Http failure response for ${Oe.url||"(unknown url)"}: ${Oe.status} ${Oe.statusText}`,this.error=Oe.error||null}}function Vn(Ze,Oe){return{body:Oe,headers:Ze.headers,context:Ze.context,observe:Ze.observe,params:Ze.params,reportProgress:Ze.reportProgress,responseType:Ze.responseType,withCredentials:Ze.withCredentials}}let Ut=(()=>{class Ze{constructor(P){this.handler=P}request(P,le,O={}){let Q;if(P instanceof ze)Q=P;else{let ye,Je;ye=O.headers instanceof x?O.headers:new x(O.headers),O.params&&(Je=O.params instanceof lt?O.params:new lt({fromObject:O.params})),Q=new ze(P,le,void 0!==O.body?O.body:null,{headers:ye,context:O.context,params:Je,reportProgress:O.reportProgress,responseType:O.responseType||"json",withCredentials:O.withCredentials})}const ke=(0,R.of)(Q).pipe((0,ve.b)(ye=>this.handler.handle(ye)));if(P instanceof ze||"events"===O.observe)return ke;const De=ke.pipe((0,ae.h)(ye=>ye instanceof pn));switch(O.observe||"body"){case"body":switch(Q.responseType){case"arraybuffer":return De.pipe((0,Te.U)(ye=>{if(null!==ye.body&&!(ye.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ye.body}));case"blob":return De.pipe((0,Te.U)(ye=>{if(null!==ye.body&&!(ye.body instanceof Blob))throw new Error("Response is not a Blob.");return ye.body}));case"text":return De.pipe((0,Te.U)(ye=>{if(null!==ye.body&&"string"!=typeof ye.body)throw new Error("Response is not a string.");return ye.body}));default:return De.pipe((0,Te.U)(ye=>ye.body))}case"response":return De;default:throw new Error(`Unreachable: unhandled observe type ${O.observe}}`)}}delete(P,le={}){return this.request("DELETE",P,le)}get(P,le={}){return this.request("GET",P,le)}head(P,le={}){return this.request("HEAD",P,le)}jsonp(P,le){return this.request("JSONP",P,{params:(new lt).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,le={}){return this.request("OPTIONS",P,le)}patch(P,le,O={}){return this.request("PATCH",P,Vn(O,le))}post(P,le,O={}){return this.request("POST",P,Vn(O,le))}put(P,le,O={}){return this.request("PUT",P,Vn(O,le))}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(se))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();class gn{constructor(Oe,P){this.next=Oe,this.interceptor=P}handle(Oe){return this.interceptor.intercept(Oe,this.next)}}const tt=new e.OlP("HTTP_INTERCEPTORS");let Zt=(()=>{class Ze{intercept(P,le){return le.handle(P)}}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const qn=/^\)\]\}',?\n/;let ai=(()=>{class Ze{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new me.y(le=>{const O=this.xhrFactory.build();if(O.open(P.method,P.urlWithParams),P.withCredentials&&(O.withCredentials=!0),P.headers.forEac
1h((Ee,V)=>O.setRequestHeader(Ee,V.join(","))),P.headers.has("Accept")||O.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const Ee=P.detectContentTypeHeader();null!==Ee&&O.setRequestHeader("Content-Type",Ee)}if(P.responseType){const Ee=P.responseType.toLowerCase();O.responseType="json"!==Ee?Ee:"text"}const Q=P.serializeBody();let ke=null;const De=()=>{if(null!==ke)return ke;const Ee=O.statusText||"OK",V=new x(O.getAllResponseHeaders()),_e=function kn(Ze){return"responseURL"in Ze&&Ze.responseURL?Ze.responseURL:/^X-Request-URL:/m.test(Ze.getAllResponseHeaders())?Ze.getResponseHeader("X-Request-URL"):null}(O)||P.url;return ke=new zt({headers:V,status:O.status,statusText:Ee,url:_e}),ke},ye=()=>{let{headers:Ee,status:V,statusText:_e,url:Tt}=De(),un=null;204!==V&&(un=typeof O.response>"u"?O.responseText:O.response),0===V&&(V=un?200:0);let Yn=V>=200&&V<300;if("json"===P.responseType&&"string"==typeof un){const Li=un;un=un.replace(qn,"");try{un=""!==un?JSON.parse(un):null}catch(Ii){un=Li,Yn&&(Yn=!1,un={error:Ii,text:un})}}Yn?(le.next(new pn({body:un,headers:Ee,status:V,statusText:_e,url:Tt||void 0})),le.complete()):le.error(new $t({error:un,headers:Ee,status:V,statusText:_e,url:Tt||void 0}))},Je=Ee=>{const{url:V}=De(),_e=new $t({error:Ee,status:O.status||0,statusText:O.statusText||"Unknown Error",url:V||void 0});le.error(_e)};let wt=!1;const on=Ee=>{wt||(le.next(De()),wt=!0);let V={type:xt.DownloadProgress,loaded:Ee.loaded};Ee.lengthComputable&&(V.total=Ee.total),"text"===P.responseType&&!!O.responseText&&(V.partialText=O.responseText),le.next(V)},st=Ee=>{let V={type:xt.UploadProgress,loaded:Ee.loaded};Ee.lengthComputable&&(V.total=Ee.total),le.next(V)};return O.addEventListener("load",ye),O.addEventListener("error",Je),O.addEventListener("timeout",Je),O.addEventListener("abort",Je),P.reportProgress&&(O.addEventListener("progress",on),null!==Q&&O.upload&&O.upload.addEventListener("progress",st)),O.send(Q),le.next({type:xt.Sent}),()=>{O.removeEventListener("error",Je),O.removeEventListener("abort",Je),O.removeEventListener("load",ye),O.removeEventListener("timeout",Je),P.reportProgress&&(O.removeEventListener("progress",on),null!==Q&&O.upload&&O.upload.removeEventListener("progress",st)),O.readyState!==O.DONE&&O.abort()}})}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(g.JF))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const An=new e.OlP("XSRF_COOKIE_NAME"),Wn=new e.OlP("XSRF_HEADER_NAME");class Ln{}let Hn=(()=>{class Ze{constructor(P,le,O){this.doc=P,this.platform=le,this.cookieName=O,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,g.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(g.K0),e.LFG(e.Lbi),e.LFG(An))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),yi=(()=>{class Ze{constructor(P,le){this.tokenService=P,this.headerName=le}intercept(P,le){const O=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||O.startsWith("http://")||O.startsWith("https://"))return le.handle(P);const Q=this.tokenService.getToken();return null!==Q&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,Q)})),le.handle(P)}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(Ln),e.LFG(Wn))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),_n=(()=>{class Ze{constructor(P,le){this.backend=P,this.injector=le,this.chain=null}handle(P){if(null===this.chain){const le=this.injector.get(tt,[]);this.chain=le.reduceRight((O,Q)=>new gn(O,Q),this.backend)}return this.chain.handle(P)}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(z),e.LFG(e.zs3))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})(),ri=(()=>{class Ze{static disable(){return{ngModule:Ze,providers:[{provide:yi,useClass:Zt}]}}static withOptions(P={}){return{ngModule:Ze,providers:[P.cookieName?{provide:An,useValue:P.cookieName}:[],P.headerName?{provide:Wn,useValue:P.headerName}:[]]}}}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[yi,{provide:tt,useExisting:yi,multi:!0},{provide:Ln,useClass:Hn},{provide:An,useValue:"XSRF-TOKEN"},{provide:Wn,useValue:"X-XSRF-TOKEN"}
1]}),Ze})(),Pi=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[Ut,{provide:se,useClass:_n},ai,{provide:z,useExisting:ai}],imports:[ri.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ze})()},4650:(wn,bt,D)=>{"use strict";D.d(bt,{$8M:()=>Kn,$Z:()=>au,AFp:()=>Hy,ALo:()=>xy,AaK:()=>se,Akn:()=>ar,AsE:()=>I_,BQk:()=>wh,CHM:()=>So,CRH:()=>ib,CZH:()=>jy,CqO:()=>Hg,D6c:()=>WC,DdM:()=>Gv,EJc:()=>Dw,EiD:()=>Kd,EpF:()=>cv,F$t:()=>fv,F4k:()=>uv,FYo:()=>xf,FiY:()=>Jr,G48:()=>sw,Gf:()=>cC,GfV:()=>P0,GkF:()=>jg,Gpc:()=>G,Gre:()=>Ah,Hsn:()=>$g,Ikx:()=>Td,JOm:()=>oa,JVY:()=>f0,Jf7:()=>Lm,KtG:()=>ko,L6k:()=>v1,LAX:()=>p0,LFG:()=>fs,LSH:()=>$u,Lbi:()=>Y_,Lck:()=>K1,MAs:()=>Sr,MMx:()=>Vv,NdJ:()=>y_,O4$:()=>Tr,OlP:()=>io,Oqu:()=>Dh,PXZ:()=>Yx,Q6J:()=>Gf,QGY:()=>Mh,QP$:()=>en,QbO:()=>Ux,Qsj:()=>Nb,R0b:()=>Zc,RDi:()=>Cb,Rgc:()=>lm,SBq:()=>Qu,Sil:()=>Bx,Suo:()=>Iy,TTD:()=>bs,TgZ:()=>Kf,Tol:()=>oc,Udp:()=>Th,VKq:()=>eC,W1O:()=>dC,WLB:()=>Ad,X6Q:()=>ow,XFs:()=>_n,Xpm:()=>Tt,Xts:()=>Dm,Y36:()=>Ac,YKP:()=>W1,YNc:()=>qg,Yjl:()=>Re,Yz7:()=>ft,Z0I:()=>Gn,ZZ4:()=>$C,_Bn:()=>G1,_UZ:()=>Js,_Vd:()=>Ju,_c5:()=>e2,_uU:()=>A_,aQg:()=>GC,c2e:()=>Ow,cJS:()=>Dt,cg1:()=>Od,dDg:()=>Wy,dqk:()=>O,eBb:()=>Bp,eFA:()=>BC,ekj:()=>ro,eoX:()=>Ky,evT:()=>Pc,f3M:()=>Ud,g9A:()=>Lx,h0i:()=>am,hGG:()=>pb,hij:()=>em,iGM:()=>hm,ifc:()=>le,ip1:()=>Nx,jDz:()=>my,kL8:()=>kh,kcU:()=>Cl,l5B:()=>tC,lG2:()=>Xe,lcZ:()=>Kv,lnq:()=>xd,lqb:()=>Wu,lri:()=>Wx,mCW:()=>Vp,n5z:()=>Rt,n_E:()=>Jv,oAB:()=>Ii,oxw:()=>x_,pB0:()=>Om,q3G:()=>ns,q4F:()=>Nm,qLn:()=>eh,qOj:()=>pd,qZA:()=>Lo,qzn:()=>Il,rWj:()=>LC,s9C:()=>Gg,sBO:()=>Zw,sIi:()=>Us,s_b:()=>um,soG:()=>$y,tb:()=>J_,tp0:()=>jo,uIk:()=>as,uOi:()=>mf,vHH:()=>We,vpe:()=>lc,wAp:()=>Vi,xDo:()=>Ir,xi3:()=>Yv,xp6:()=>Es,ynx:()=>xh,z2F:()=>hb,z3N:()=>Ua,zSh:()=>Gp,zs3:()=>Xl});var g=D(7579),e=D(727),R=D(9751),me=D(6451),ve=D(3099);function ae(s){for(let a in s)if(s[a]===ae)return a;throw Error("Could not find renamed property on target object.")}function Te(s,a){for(const d in a)a.hasOwnProperty(d)&&!s.hasOwnProperty(d)&&(s[d]=a[d])}function se(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(se).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const a=s.toString();if(null==a)return""+a;const d=a.indexOf("\n");return-1===d?a:a.substring(0,d)}function z(s,a){return null==s||""===s?null===a?"":a:null==a||""===a?s:s+" "+a}const x=ae({__forward_ref__:ae});function G(s){return s.__forward_ref__=G,s.toString=function(){return se(this())},s}function de(s){return dt(s)?s():s}function dt(s){return"function"==typeof s&&s.hasOwnProperty(x)&&s.__forward_ref__===G}class We extends Error{constructor(a,d){super(function At(s,a){return`NG0${Math.abs(s)}${a?": "+a.trim():""}`}(a,d)),this.code=a}}function qe(s){return"string"==typeof s?s:null==s?"":String(s)}function fe(s,a){throw new We(-201,!1)}function Zt(s,a){null==s&&function St(s,a,d,p){throw new Error(`ASSERTION ERROR: ${s}`+(null==p?"":` [Expected=> ${d} ${p} ${a} <=Actual]`))}(a,s,null,"!=")}function ft(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function Dt(s){return{providers:s.providers||[],imports:s.imports||[]}}function hn(s){return qn(s,Wn)||qn(s,Hn)}function Gn(s){return null!==hn(s)}function qn(s,a){return s.hasOwnProperty(a)?s[a]:null}function An(s){return s&&(s.hasOwnProperty(Ln)||s.hasOwnProperty(yi))?s[Ln]:null}const Wn=ae({\u0275prov:ae}),Ln=ae({\u0275inj:ae}),Hn=ae({ngInjectableDef:ae}),yi=ae({ngInjectorDef:ae});var _n=(()=>((_n=_n||{})[_n.Default=0]="Default",_n[_n.Host=1]="Host",_n[_n.Self=2]="Self",_n[_n.SkipSelf=4]="SkipSelf",_n[_n.Optional=8]="Optional",_n))();let ui;function ri(s){const a=ui;return ui=s,a}function Pi(s,a,d){const p=hn(s);return p&&"root"==p.providedIn?void 0===p.value?p.value=p.factory():p.value:d&_n.Optional?null:void 0!==a?a:void fe(se(s))}function ei(s){return{toString:s}.toString()}var Ze=(()=>((Ze=Ze||{})[Ze.OnPush=0]="OnPush",Ze[Ze.Default=1]="Default",Ze))(),le=(()=>{return(s=le||(le={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",le;var s})();const O=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),De={},ye=[],Je=ae({\u0275cmp:ae}),wt=ae({\u0275dir:ae}),on=ae({\u0275pipe:ae}),st=ae({\u0275mod:ae}),Ee=ae({\u0275fac:ae}),V=ae({__NG_ELEMENT_ID__:ae});let _e=0;function Tt(s){return ei(()=>{const d=!0===s.standalone,p={},m={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:p,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===Ze.OnPush,directiveDefs:null,pipeDefs:null,
1standalone:d,dependencies:d&&s.dependencies||null,getStandaloneInjector:null,selectors:s.selectors||ye,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||le.Emulated,id:"c"+_e++,styles:s.styles||ye,_:null,setInput:null,schemas:s.schemas||null,tView:null},y=s.dependencies,E=s.features;return m.inputs=at(s.inputs,p),m.outputs=at(s.outputs),E&&E.forEach(L=>L(m)),m.directiveDefs=y?()=>("function"==typeof y?y():y).map(Yn).filter(Li):null,m.pipeDefs=y?()=>("function"==typeof y?y():y).map(Ot).filter(Li):null,m})}function Yn(s){return Ie(s)||xe(s)}function Li(s){return null!==s}function Ii(s){return ei(()=>({type:s.type,bootstrap:s.bootstrap||ye,declarations:s.declarations||ye,imports:s.imports||ye,exports:s.exports||ye,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function at(s,a){if(null==s)return De;const d={};for(const p in s)if(s.hasOwnProperty(p)){let m=s[p],y=m;Array.isArray(m)&&(y=m[1],m=m[0]),d[m]=p,a&&(a[m]=y)}return d}const Xe=Tt;function Re(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function Ie(s){return s[Je]||null}function xe(s){return s[wt]||null}function Ot(s){return s[on]||null}function en(s){const a=Ie(s)||xe(s)||Ot(s);return null!==a&&a.standalone}function pt(s,a){const d=s[st]||null;if(!d&&!0===a)throw new Error(`Type ${se(s)} does not have '\u0275mod' property.`);return d}function Ge(s){return Array.isArray(s)&&"object"==typeof s[1]}function ht(s){return Array.isArray(s)&&!0===s[1]}function Kt(s){return 0!=(8&s.flags)}function we(s){return 2==(2&s.flags)}function ct(s){return 1==(1&s.flags)}function jt(s){return null!==s.template}function Mn(s){return 0!=(256&s[2])}function po(s,a){return s.hasOwnProperty(Ee)?s[Ee]:null}class to{constructor(a,d,p){this.previousValue=a,this.currentValue=d,this.firstChange=p}isFirstChange(){return this.firstChange}}function bs(){return is}function is(s){return s.type.prototype.ngOnChanges&&(s.setInput=Io),ea}function ea(){const s=fa(this),a=s?.current;if(a){const d=s.previous;if(d===De)s.previous=a;else for(let p in a)d[p]=a[p];s.current=null,this.ngOnChanges(a)}}function Io(s,a,d,p){const m=fa(s)||function rs(s,a){return s[ha]=a}(s,{previous:De,current:null}),y=m.current||(m.current={}),E=m.previous,L=this.declaredInputs[d],q=E[L];y[L]=new to(q&&q.currentValue,a,E===De),s[p]=a}bs.ngInherit=!0;const ha="__ngSimpleChanges__";function fa(s){return s[ha]||null}function Qe(s){for(;Array.isArray(s);)s=s[0];return s}function fn(s,a){return Qe(a[s])}function Rn(s,a){return Qe(a[s.index])}function fi(s,a){return s.data[a]}function Fi(s,a){return s[a]}function Si(s,a){const d=a[s];return Ge(d)?d:d[0]}function Br(s){return 64==(64&s[2])}function nr(s,a){return null==a?null:s[a]}function ji(s){s[18]=0}function br(s,a){s[5]+=a;let d=s,p=s[3];for(;null!==p&&(1===a&&1===d[5]||-1===a&&0===d[5]);)p[5]+=a,d=p,p=p[3]}const mi={lFrame:na(null),bindingsEnabled:!0};function ys(){return mi.bindingsEnabled}function On(){return mi.lFrame.lView}function Qi(){return mi.lFrame.tView}function So(s){return mi.lFrame.contextLView=s,s[8]}function ko(s){return mi.lFrame.contextLView=null,s}function so(){let s=J();for(;null!==s&&64===s.type;)s=s.parent;return s}function J(){return mi.lFrame.currentTNode}function H(s,a){const d=mi.lFrame;d.currentTNode=s,d.isParent=a}function Se(){return mi.lFrame.isParent}function ln(){mi.lFrame.isParent=!1}function Or(){const s=mi.lFrame;let a=s.bindingRootIndex;return-1===a&&(a=s.bindingRootIndex=s.tView.bindingStartIndex),a}function Me(){return mi.lFrame.bindingIndex}function vt(){return mi.lFrame.bindingIndex++}function Qt(s){const a=mi.lFrame,d=a.bindingIndex;return a.bindingIndex=a.bindingIndex+s,d}function ci(s,a){const d=mi.lFrame;d.bindingIndex=d.bindingRootIndex=s,or(a)}function or(s){mi.lFrame.currentDirectiveIndex=s}function pr(){return mi.lFrame.currentQueryIndex}function Bi(s){mi.lFrame.currentQueryIndex=s}function Ro(s){const a=s[1];return 2===a.type?a.declTNode:1===a.type?s[6]:null}function Cs(s,a,d){if(d&_n.SkipSelf){let m=a,y=s;for(;!(m=m.parent,null!==m||d&_n.Host||(m=Ro(y),null===m||(y=y[15],10&m.type))););if(null===m)return!1;a=m,s=y}const p=mi.lFrame=ta();return p.currentTNode=a,p.lView=s,!0}function Qo(s){const a=ta(),d=s[1];mi.lFrame=a,a.currentTNode=d.firstChild,a.lView=s,a.tView=d,a.contextLView=s,a.bindingIndex=d.bindingStartIndex,a.inI18n=!1}function ta(){const s=mi.lFrame,a=null===s?null:s.child;return null===a?na(s):a}function na(s){const a={currentTNode:null,isParent:!0,lView:null,tView:null,
vendor: 4,098 bytes, line 1
1selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=a),a}function Xo(){const s=mi.lFrame;return mi.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const ao=Xo;function xs(){const s=Xo();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function Eo(){return mi.lFrame.selectedIndex}function xo(s){mi.lFrame.selectedIndex=s}function $r(){const s=mi.lFrame;return fi(s.tView,s.selectedIndex)}function Tr(){mi.lFrame.currentNamespace="svg"}function Cl(){!function zs(){mi.lFrame.currentNamespace=null}()}function pa(s,a){for(let d=a.directiveStart,p=a.directiveEnd;d<p;d++){const y=s.data[d].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:L,ngAfterViewInit:q,ngAfterViewChecked:te,ngOnDestroy:Le}=y;E&&(s.contentHooks||(s.contentHooks=[])).push(-d,E),L&&((s.contentHooks||(s.contentHooks=[])).push(d,L),(s.contentCheckHooks||(s.contentCheckHooks=[])).push(d,L)),q&&(s.viewHooks||(s.viewHooks=[])).push(-d,q),te&&((s.viewHooks||(s.viewHooks=[])).push(d,te),(s.viewCheckHooks||(s.viewCheckHooks=[])).push(d,te)),null!=Le&&(s.destroyHooks||(s.destroyHooks=[])).push(d,Le)}}function Vs(s,a,d){ws(s,a,3,d)}function Ga(s,a,d,p){(3&s[2])===d&&ws(s,a,d,p)}function Ns(s,a){let d=s[2];(3&d)===a&&(d&=2047,d+=1,s[2]=d)}function ws(s,a,d,p){const y=p??-1,E=a.length-1;let L=0;for(let q=void 0!==p?65535&s[18]:0;q<E;q++)if("number"==typeof a[q+1]){if(L=a[q],null!=p&&L>=p)break}else a[q]<0&&(s[18]+=65536),(L<y||-1==y)&&(No(s,d,a,q),s[18]=(4294901760&s[18])+q+2),q++}function No(s,a,d,p){const m=d[p]<0,y=d[p+1],L=s[m?-d[p]:d[p]];if(m){if(s[2]>>11<s[18]>>16&&(3&s[2])===a){s[2]+=2048;try{y.call(L)}finally{}}}else try{y.call(L)}finally{}}class ga{constructor(a,d,p){this.factory=a,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=p}}function Ae(s,a,d){let p=0;for(;p<d.length;){const m=d[p];if("number"==typeof m){if(0!==m)break;p++;const y=d[p++],E=d[p++],L=d[p++];s.setAttribute(a,E,L,y)}else{const y=m,E=d[++p];dn(y)?s.setProperty(a,y,E):s.setAttribute(a,y,E),p++}}return p}function Pt(s){return 3===s||4===s||6===s}function dn(s){return 64===s.charCodeAt(0)}function En(s,a){if(null!==a&&0!==a.length)if(null===s||0===s.length)s=a.slice();else{let d=-1;for(let p=0;p<a.length;p++){const m=a[p];"number"==typeof m?d=m:0===d||xi(s,d,m,null,-1===d||2===d?a[++p]:null)}}return s}function xi(s,a,d,p,m){let y=0,E=s.length;if(-1===a)E=-1;else for(;y<s.length;){const L=s[y++];if("number"==typeof L){if(L===a){E=-1;break}if(L>a){E=y-1;break}}}for(;y<s.length;){const L=s[y];if("number"==typeof L)break;if(L===d){if(null===p)return void(null!==m&&(s[y+1]=m));if(p===s[y+1])return void(s[y+2]=m)}y++,null!==p&&y++,null!==m&&y++}-1!==E&&(s.splice(E,0,a),y=E+1),s.splice(y++,0,d),null!==p&&s.splice(y++,0,p),null!==m&&s.splice(y++,0,m)}function Nr(s){return-1!==s}function Xi(s){return 32767&s}function Ei(s,a){let d=function yr(s){return s>>16}(s),p=a;for(;d>0;)p=p[15],d--;return p}let Pr=!0;function er(s){const a=Pr;return Pr=s,a}let zr=0;const Mr={};function si(s,a){const d=Ms(s,a);if(-1!==d)return d;const p=a[1];p.firstCreatePass&&(s.injectorIndex=a.length,_i(p.data,s),_i(a,null),_i(p.blueprint,null));const m=ii(s,a),y=s.injectorIndex;if(Nr(m)){const E=Xi(m),L=Ei(m,a),q=L[1].data;for(let te=0;te<8;te++)a[y+te]=L[E+te]|q[E+te]}return a[y+8]=m,y}function _i(s,a){s.push(0,0,0,0,0,0,0,0,a)}function Ms(s,a){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===a[s.injectorIndex+8]?-1:s.injectorIndex}function ii(s,a){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let d=0,p=null,m=a;for(;null!==m;){if(p=Oi(m),null===p)return-1;if(d++,m=m[15],-1!==p.injectorIndex)return p.injectorIndex|d<<16}return-1}function Jt(s,a,d){!function xa(s,a,d){let p;"string"==typeof d?p=d.charCodeAt(0)||0:d.hasOwnProperty(V)&&(p=d[
1V]),null==p&&(p=d[V]=zr++);const m=255&p;a.data[s+(m>>5)]|=1<<m}(s,a,d)}function To(s,a,d){if(d&_n.Optional||void 0!==s)return s;fe()}function al(s,a,d,p){if(d&_n.Optional&&void 0===p&&(p=null),0==(d&(_n.Self|_n.Host))){const m=s[9],y=ri(void 0);try{return m?m.get(a,p,d&_n.Optional):Pi(a,p,d&_n.Optional)}finally{ri(y)}}return To(p,0,d)}function zc(s,a,d,p=_n.Default,m){if(null!==s){if(1024&a[2]){const E=function tr(s,a,d,p,m){let y=s,E=a;for(;null!==y&&null!==E&&1024&E[2]&&!(256&E[2]);){const L=hc(y,E,d,p|_n.Self,Mr);if(L!==Mr)return L;let q=y.parent;if(!q){const te=E[21];if(te){const Le=te.get(d,Mr,p);if(Le!==Mr)return Le}q=Oi(E),E=E[15]}y=q}return m}(s,a,d,p,Mr);if(E!==Mr)return E}const y=hc(s,a,d,p,Mr);if(y!==Mr)return y}return al(a,d,p,m)}function hc(s,a,d,p,m){const y=function wa(s){if("string"==typeof s)return s.charCodeAt(0)||0;const a=s.hasOwnProperty(V)?s[V]:void 0;return"number"==typeof a?a>=0?255&a:He:a}(d);if("function"==typeof y){if(!Cs(a,s,p))return p&_n.Host?To(m,0,p):al(a,d,p,m);try{const E=y(p);if(null!=E||p&_n.Optional)return E;fe()}finally{ao()}}else if("number"==typeof y){let E=null,L=Ms(s,a),q=-1,te=p&_n.Host?a[16][6]:null;for((-1===L||p&_n.SkipSelf)&&(q=-1===L?ii(s,a):a[L+8],-1!==q&&U(p,!1)?(E=a[1],L=Xi(q),a=Ei(q,a)):L=-1);-1!==L;){const Le=a[1];if(S(y,L,Le.data)){const et=fc(L,a,d,E,p,te);if(et!==Mr)return et}q=a[L+8],-1!==q&&U(p,a[1].data[L+8]===te)&&S(y,L,a)?(E=Le,L=Xi(q),a=Ei(q,a)):L=-1}}return m}function fc(s,a,d,p,m,y){const E=a[1],L=E.data[s+8],Le=go(L,E,d,null==p?we(L)&&Pr:p!=E&&0!=(3&L.type),m&_n.Host&&y===L);return null!==Le?Fa(a,E,Le,L):Mr}function go(s,a,d,p,m){const y=s.providerIndexes,E=a.data,L=1048575&y,q=s.directiveStart,Le=y>>20,Lt=m?L+Le:s.directiveEnd;for(let nn=p?L:L+Le;nn<Lt;nn++){const Dn=E[nn];if(nn<q&&d===Dn||nn>=q&&Dn.type===d)return nn}if(m){const nn=E[q];if(nn&&jt(nn)&&nn.type===d)return q}return null}function Fa(s,a,d,p){let m=s[d];const y=a.data;if(function sl(s){return s instanceof ga}(m)){const E=m;E.resolving&&function sn(s,a){const d=a?`. Dependency path: ${a.join(" > ")} > ${s}`:"";throw new We(-200,`Circular dependency in DI detected for ${s}${d}`)}(function lt(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():qe(s)}(y[d]));const L=er(E.canSeeViewProviders);E.resolving=!0;const q=E.injectImpl?ri(E.injectImpl):null;Cs(s,p,_n.Default);try{m=s[d]=E.factory(void 0,y,s,p),a.firstCreatePass&&d>=p.directiveStart&&function Na(s,a,d){const{ngOnChanges:p,ngOnInit:m,ngDoCheck:y}=a.type.prototype;if(p){const E=is(a);(d.preOrderHooks||(d.preOrderHooks=[])).push(s,E),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(s,E)}m&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-s,m),y&&((d.preOrderHooks||(d.preOrderHooks=[])).push(s,y),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(s,y))}(d,y[d],a)}finally{null!==q&&ri(q),er(L),E.resolving=!1,ao()}}return m}function S(s,a,d){return!!(d[a+(s>>5)]&1<<s)}function U(s,a){return!(s&_n.Self||s&_n.Host&&a)}class ee{constructor(a,d){this._tNode=a,this._lView=d}get(a,d,p){return zc(this._tNode,this._lView,a,p,d)}}function He(){return new ee(so(),On())}function Rt(s){return ei(()=>{const a=s.prototype.constructor,d=a[Ee]||Un(a),p=Object.prototype;let m=Object.getPrototypeOf(s.prototype).constructor;for(;m&&m!==p;){const y=m[Ee]||Un(m);if(y&&y!==d)return y;m=Object.getPrototypeOf(m)}return y=>new y})}function Un(s){return dt(s)?()=>{const a=Un(de(s));return a&&a()}:po(s)}function Oi(s){const a=s[1],d=a.type;return 2===d?a.declTNode:1===d?s[6]:null}function Kn(s){return function Sn(s,a){if("class"===a)return s.classes;if("style"===a)return s.styles;const d=s.attrs;if(d){const p=d.length;let m=0;for(;m<p;){const y=d[m];if(Pt(y))break;if(0===y)m+=2;else if("number"==typeof y)for(m++;m<p&&"string"==typeof d[m];)m++;else{if(y===a)return d[m+1];m+=2}}}return null}(so(),s)}const Gi="__parameters__";function js(s,a,d){return ei(()=>{const p=function Qn(s){return function(...d){if(s){const p=s(...d);for(const m in p)this[m]=p[m]}}}(a);function m(...y){if(this instanceof m)return p.apply(this,y),this;const E=new m(...y);return L.annotation=E,L;function L(q,te,Le){const et=q.hasOwnProperty(Gi)?q[Gi]:Object.defineProperty(q,Gi,{value:[]})[Gi];for(;et.length<=Le;)et.push(null);return(et[Le]=et[Le]||[]).push(E),q}}return d&&(m.prototype=Object.create(d.prototype)),m.prototype.ngMetadataName=s,m.annotationCls=m,m})}class io{constructor(a,d){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=ft({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ds(s,a){void 0===a&&(a=s);for(let d=0;d<s.length;d++){let p=s[d];Array.isArray(p)?(a===s&&(a=s.slice(0,d)),ds(p,a)):a!==s&&a.push(p)}return a}
1function hs(s,a){s.forEach(d=>Array.isArray(d)?hs(d,a):a(d))}function Su(s,a,d){a>=s.length?s.push(d):s.splice(a,0,d)}function _a(s,a){return a>=s.length-1?s.pop():s.splice(a,1)[0]}function Ma(s,a){const d=[];for(let p=0;p<s;p++)d.push(a);return d}function Pe(s,a,d){let p=Ct(s,a);return p>=0?s[1|p]=d:(p=~p,function k(s,a,d,p){let m=s.length;if(m==a)s.push(d,p);else if(1===m)s.push(p,s[0]),s[0]=d;else{for(m--,s.push(s[m-1],s[m]);m>a;)s[m]=s[m-2],m--;s[a]=d,s[a+1]=p}}(s,p,a,d)),p}function rt(s,a){const d=Ct(s,a);if(d>=0)return s[1|d]}function Ct(s,a){return function $n(s,a,d){let p=0,m=s.length>>d;for(;m!==p;){const y=p+(m-p>>1),E=s[y<<d];if(a===E)return y<<d;E>a?m=y:p=y+1}return~(m<<d)}(s,a,1)}const Ri={},ra="__NG_DI_FLAG__",ll="ngTempTokenPath",xp=/\n/gm,Vl="__source";let Hc;function $c(s){const a=Hc;return Hc=s,a}function Fd(s,a=_n.Default){if(void 0===Hc)throw new We(-203,!1);return null===Hc?Pi(s,void 0,a):Hc.get(s,a&_n.Optional?null:void 0,a)}function fs(s,a=_n.Default){return(function zn(){return ui}()||Fd)(de(s),a)}function Ud(s,a=_n.Default){return"number"!=typeof a&&(a=0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)),fs(s,a)}function ql(s){const a=[];for(let d=0;d<s.length;d++){const p=de(s[d]);if(Array.isArray(p)){if(0===p.length)throw new We(900,!1);let m,y=_n.Default;for(let E=0;E<p.length;E++){const L=p[E],q=Hs(L);"number"==typeof q?-1===q?m=L.token:y|=q:m=L}a.push(fs(m,y))}else a.push(fs(p))}return a}function La(s,a){return s[ra]=a,s.prototype[ra]=a,s}function Hs(s){return s[ra]}const Jr=La(js("Optional"),8),jo=La(js("SkipSelf"),4);var oa=(()=>((oa=oa||{})[oa.Important=1]="Important",oa[oa.DashCase=2]="DashCase",oa))();const Jh=new Map;let Vr=0;const Ya="__ngContext__";function aa(s,a){Ge(a)?(s[Ya]=a[20],function Wc(s){Jh.set(s[20],s)}(a)):s[Ya]=a}function Cc(s,a){return undefined(s,a)}function Yc(s){const a=s[3];return ht(a)?a[3]:a}function Bu(s){return b(s[13])}function A(s){return b(s[4])}function b(s){for(;null!==s&&!ht(s);)s=s[4];return s}function N(s,a,d,p,m){if(null!=p){let y,E=!1;ht(p)?y=p:Ge(p)&&(E=!0,p=p[0]);const L=Qe(p);0===s&&null!==d?null==m?Np(a,d,L):Yl(a,d,L,m||null,!0):1===s&&null!==d?Yl(a,d,L,m||null,!0):2===s?function wm(s,a,d){const p=zu(s,a);p&&function Fp(s,a,d,p){s.removeChild(a,d,p)}(s,p,a,d)}(a,L,E):3===s&&a.destroyNode(L),null!=y&&function h1(s,a,d,p,m){const y=d[7];y!==Qe(d)&&N(a,s,p,y,m);for(let L=10;L<d.length;L++){const q=d[L];$d(q[1],q,s,a,p,y)}}(a,s,y,d,m)}}function an(s,a,d){return s.createElement(a,d)}function xc(s,a){const d=s[9],p=d.indexOf(a),m=a[3];512&a[2]&&(a[2]&=-513,br(m,-1)),d.splice(p,1)}function gs(s,a){if(s.length<=10)return;const d=10+a,p=s[d];if(p){const m=p[17];null!==m&&m!==s&&xc(m,p),a>0&&(s[d-1][4]=p[4]);const y=_a(s,10+a);!function jn(s,a){$d(s,a,a[11],2,null,null),a[0]=null,a[6]=null}(p[1],p);const E=y[19];null!==E&&E.detachView(y[1]),p[3]=null,p[4]=null,p[2]&=-65}return p}function Hd(s,a){if(!(128&a[2])){const d=a[11];d.destroyNode&&$d(s,a,d,3,null,null),function ir(s){let a=s[13];if(!a)return Kl(s[1],s);for(;a;){let d=null;if(Ge(a))d=a[13];else{const p=a[10];p&&(d=p)}if(!d){for(;a&&!a[4]&&a!==s;)Ge(a)&&Kl(a[1],a),a=a[3];null===a&&(a=s),Ge(a)&&Kl(a[1],a),d=a&&a[4]}a=d}}(a)}}function Kl(s,a){if(!(128&a[2])){a[2]&=-65,a[2]|=128,function Xa(s,a){let d;if(null!=s&&null!=(d=s.destroyHooks))for(let p=0;p<d.length;p+=2){const m=a[d[p]];if(!(m instanceof ga)){const y=d[p+1];if(Array.isArray(y))for(let E=0;E<y.length;E+=2){const L=m[y[E]],q=y[E+1];try{q.call(L)}finally{}}else try{y.call(m)}finally{}}}}(s,a),function Rp(s,a){const d=s.cleanup,p=a[7];let m=-1;if(null!==d)for(let y=0;y<d.length-1;y+=2)if("string"==typeof d[y]){const E=d[y+1],L="function"==typeof E?E(a):Qe(a[E]),q=p[m=d[y+2]],te=d[y+3];"boolean"==typeof te?L.removeEventListener(d[y],q,te):te>=0?p[m=te]():p[m=-te].unsubscribe(),y+=2}else{const E=p[m=d[y+1]];d[y].call(E)}if(null!==p){for(let y=m+1;y<p.length;y++)(0,p[y])();a[7]=null}}(s,a),1===a[1].type&&a[11].destroy();const d=a[17];if(null!==d&&ht(a[3])){d!==a[3]&&xc(d,a);const p=a[19];null!==p&&p.detachView(s)}!function Dp(s){Jh.delete(s[20])}(a)}}function sf(s,a,d){return function wc(s,a,d){let p=a;for(;null!==p&&40&p.type;)p=(a=p).parent;if(null===p)return d[0];if(2&p.flags){const m=s.data[p.directiveStart].encapsulation;if(m===le.None||m===le.Emulated)return null}return Rn(p,d)}(s,a.parent,d)}function Yl(s,a,d,p,m){s.insertBefore(a,d,p,m)}function Np(s,a,d){s.appendChild(a,d)}function mr(s,a,d,p,m){null!==p?Yl(s,a,d,p,m):Np(s,a,d)}function zu(s,a){return s.parentNode(a)}function a0(s,a,d){return bb(s,a,d)}let Gd,el,Up,bb=function Lp(s,a,d){return 40&s.type?Rn(s,d):null};
vendor: 4,946 bytes, line 1
1function Jc(s,a,d,p){const m=sf(s,p,a),y=a[11],L=a0(p.parent||a[6],p,a);if(null!=m)if(Array.isArray(d))for(let q=0;q<d.length;q++)mr(y,m,d[q],L,!1);else mr(y,m,d,L,!1)}function Mc(s,a){if(null!==a){const d=a.type;if(3&d)return Rn(a,s);if(4&d)return Qc(-1,s[a.index]);if(8&d){const p=a.child;if(null!==p)return Mc(s,p);{const m=s[a.index];return ht(m)?Qc(-1,m):Qe(m)}}if(32&d)return Cc(a,s)()||Qe(s[a.index]);{const p=u0(s,a);return null!==p?Array.isArray(p)?p[0]:Mc(Yc(s[16]),p):Mc(s,a.next)}}return null}function u0(s,a){return null!==a?s[16][6].projection[a.projection]:null}function Qc(s,a){const d=10+s+1;if(d<a.length){const p=a[d],m=p[1].firstChild;if(null!==m)return Mc(p,m)}return a[7]}function Vu(s,a,d,p,m,y,E){for(;null!=d;){const L=p[d.index],q=d.type;if(E&&0===a&&(L&&aa(Qe(L),p),d.flags|=4),64!=(64&d.flags))if(8&q)Vu(s,a,d.child,p,m,y,!1),N(a,s,m,L,y);else if(32&q){const te=Cc(d,p);let Le;for(;Le=te();)N(a,s,m,Le,y);N(a,s,m,L,y)}else 16&q?af(s,a,p,d,m,y):N(a,s,m,L,y);d=E?d.projectionNext:d.next}}function $d(s,a,d,p,m,y){Vu(d,p,s.firstChild,a,m,y,!1)}function af(s,a,d,p,m,y){const E=d[16],q=E[6].projection[p.projection];if(Array.isArray(q))for(let te=0;te<q.length;te++)N(a,s,m,q[te],y);else Vu(s,a,q,E[3],m,y,!0)}function ts(s,a,d){s.setAttribute(a,"style",d)}function lf(s,a,d){""===d?s.removeAttribute(a,"class"):s.setAttribute(a,"class",d)}function qu(s){return function Mm(){if(void 0===Gd&&(Gd=null,O.trustedTypes))try{Gd=O.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return Gd}()?.createHTML(s)||s}function Cb(s){el=s}function Zp(s){return function ju(){if(void 0===Up&&(Up=null,O.trustedTypes))try{Up=O.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return Up}()?.createScriptURL(s)||s}class Xc{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class m1 extends Xc{getTypeName(){return"HTML"}}class _1 extends Xc{getTypeName(){return"Style"}}class Ls extends Xc{getTypeName(){return"Script"}}class Qr extends Xc{getTypeName(){return"URL"}}class h0 extends Xc{getTypeName(){return"ResourceURL"}}function Ua(s){return s instanceof Xc?s.changingThisBreaksApplicationSecurity:s}function Il(s,a){const d=function df(s){return s instanceof Xc&&s.getTypeName()||null}(s);if(null!=d&&d!==a){if("ResourceURL"===d&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${d} (see https://g.co/ng/security#xss)`)}return d===a}function f0(s){return new m1(s)}function v1(s){return new _1(s)}function Bp(s){return new Ls(s)}function p0(s){return new Qr(s)}function Om(s){return new h0(s)}class hf{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a="<body><remove></remove>"+a;try{const d=(new window.DOMParser).parseFromString(qu(a),"text/html").body;return null===d?this.inertDocumentHelper.getInertBodyElement(a):(d.removeChild(d.firstChild),d)}catch{return null}}}class ff{constructor(a){if(this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const d=this.inertDocument.createElement("html");this.inertDocument.appendChild(d);const p=this.inertDocument.createElement("body");d.appendChild(p)}}getInertBodyElement(a){const d=this.inertDocument.createElement("template");if("content"in d)return d.innerHTML=qu(a),d;const p=this.inertDocument.createElement("body");return p.innerHTML=qu(a),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(p),p}stripCustomNsAttrs(a){const d=a.attributes;for(let m=d.length-1;0<m;m--){const E=d.item(m).name;("xmlns:ns1"===E||0===E.indexOf("ns1:"))&&a.removeAttribute(E)}let p=a.firstChild;for(;p;)p.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(p),p=p.nextSibling}}const xb=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Vp(s){return(s=String(s)).match(xb)?s:"unsafe:"+s}function Ec(s){const a={};for(const d of s.split(","))a[d]=!0;return a}function pf(...s){const a={};for(const d of s)for(const p in d)d.hasOwnProperty(p)&&(a[p]=!0);return a}const g0=Ec("area,br,col,hr,img,wbr"),m0=Ec("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_0=Ec("rp,rt"),qp=pf(g0,pf(m0,Ec("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),pf(_0,Ec("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),pf(_0,m0)),Hu=Ec("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ms=pf(Hu,Ec("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ec("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),b0=Ec("script,style,template");class wb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let d=a.firstChild,p=!0;for(;d;)if(d.nodeType===Node.ELEMENT_NODE?p=this.startElement(d):d.nodeType===Node.TEXT_NODE?this.chars(d.nodeValue):this.sanitizedSomething=!0,p&&d.firstChild)d=d.firstChild;else for(;d;){d.nodeType===Node.ELEMENT_NODE&&this.endElement(d);let m=this.checkClobberedElement(d,d.nextSibling);if(m){d=m;break}d=this.checkClobberedElement(d,d.parentNode)}return this.buf.join("")}startElement(a){const d=a.nodeName.toLowerCase();if(!qp.hasOwnProperty(d))return this.sanitizedSomething=!0,!b0.hasOwnProperty(d);this.buf.push("<"),this.buf.push(d);const p=a.attributes;for(let m=0;m<p.length;m++){const y=p.item(m),E=y.name,L=E.toLowerCase();if(!ms.hasOwnProperty(L)){this.sanitizedSomething=!0;continue}let q=y.value;Hu[L]&&(q=Vp(q)),this.buf.push(" ",E,'="',jp(q),'"')}return this.buf.push(">"),!0}endElement(a){const d=a.nodeName.toLowerCase();qp.hasOwnProperty(d)&&!g0.hasOwnProperty(d)&&(this.buf.push("</"),this.buf.push(d),this.buf.push(">"))}chars(a){this.buf.push(jp(a))}checkClobberedElement(a,d){if(d&&(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return d}}const eu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jl=/([^\#-~ |!])/g;function jp(s){return s.replace(/&/g,"&").replace(eu,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Jl,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let gf;function Kd(s,a){let d=null;try{gf=gf||function Wd(s){const a=new ff(s);return function zp(){try{return!!(new window.DOMParser).parseFromString(qu(""),"text/html")}catch{return!1}}()?new hf(a):a}(s);let p=a?String(a):"";d=gf.getInertBodyElement(p);let m=5,y=p;do{if(0===m)throw new Error("Failed to sanitize html because the input is unstable");m--,p=y,y=d.innerHTML,d=gf.getInertBodyElement(p)}while(p!==y);return qu((new wb).sanitizeChildren(Hp(d)||d))}finally{if(d){const p=Hp(d)||d;for(;p.firstChild;)p.removeChild(p.firstChild)}}}function Hp(s){return"content"in s&&function la(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var ns=(()=>((ns=ns||{})[ns.NONE=0]="NONE",ns[ns.HTML=1]="HTML",ns[ns.STYLE=2]="STYLE",ns[ns.SCRIPT=3]="SCRIPT",ns[ns.URL=4]="URL",ns[ns.RESOURCE_URL=5]="RESOURCE_URL",ns))();function $u(s){const a=_f();return a?a.sanitize(ns.URL,s)||"":Il(s,"URL")?Ua(s):Vp(qe(s))}function mf(s){const a=_f();if(a)return Zp(a.sanitize(ns.RESOURCE_URL,s)||"");if(Il(s,"ResourceURL"))return Zp(Ua(s));throw new We(904,!1)}function _f(){const s=On();return s&&s[12]}const Dm=new io("ENVIRONMENT_INITIALIZER"),Tc=new io("INJECTOR",-1),Gu=ne
vendor: 5,981 bytes, line 1
1w io("INJECTOR_DEF_TYPES");class Am{get(a,d=Ri){if(d===Ri){const p=new Error(`NullInjectorError: No provider for ${se(a)}!`);throw p.name="NullInjectorError",p}return d}}function Pb(...s){return{\u0275providers:Im(0,s)}}function Im(s,...a){const d=[],p=new Set;let m;return hs(a,y=>{const E=y;$p(E,d,[],p)&&(m||(m=[]),m.push(E))}),void 0!==m&&Ql(m,d),d}function Ql(s,a){for(let d=0;d<s.length;d++){const{providers:m}=s[d];hs(m,y=>{a.push(y)})}}function $p(s,a,d,p){if(!(s=de(s)))return!1;let m=null,y=An(s);const E=!y&&Ie(s);if(y||E){if(E&&!E.standalone)return!1;m=s}else{const q=s.ngModule;if(y=An(q),!y)return!1;m=q}const L=p.has(m);if(E){if(L)return!1;if(p.add(m),E.dependencies){const q="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const te of q)$p(te,a,d,p)}}else{if(!y)return!1;{if(null!=y.imports&&!L){let te;p.add(m);try{hs(y.imports,Le=>{$p(Le,a,d,p)&&(te||(te=[]),te.push(Le))})}finally{}void 0!==te&&Ql(te,a)}if(!L){const te=po(m)||(()=>new m);a.push({provide:m,useFactory:te,deps:ye},{provide:Gu,useValue:m,multi:!0},{provide:Dm,useValue:()=>fs(m),multi:!0})}const q=y.providers;null==q||L||hs(q,Le=>{a.push(Le)})}}return m!==s&&void 0!==s.providers}const w0=ae({provide:String,useValue:ae});function Yd(s){return null!==s&&"object"==typeof s&&w0 in s}function tl(s){return"function"==typeof s}const Gp=new io("Set Injector scope."),Jd={},Sm={};let Wp;function bf(){return void 0===Wp&&(Wp=new Am),Wp}class Wu{}class km extends Wu{constructor(a,d,p,m){super(),this.parent=d,this.source=p,this.scopes=m,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ku(a,E=>this.processProvider(E)),this.records.set(Tc,Qd(void 0,this)),m.has("environment")&&this.records.set(Wu,Qd(void 0,this));const y=this.records.get(Gp);null!=y&&"string"==typeof y.value&&this.scopes.add(y.value),this.injectorDefTypes=new Set(this.get(Gu.multi,ye,_n.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const a of this._ngOnDestroyHooks)a.ngOnDestroy();for(const a of this._onDestroyHooks)a()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(a){this._onDestroyHooks.push(a)}runInContext(a){this.assertNotDestroyed();const d=$c(this),p=ri(void 0);try{return a()}finally{$c(d),ri(p)}}get(a,d=Ri,p=_n.Default){this.assertNotDestroyed();const m=$c(this),y=ri(void 0);try{if(!(p&_n.SkipSelf)){let L=this.records.get(a);if(void 0===L){const q=function Ab(s){return"function"==typeof s||"object"==typeof s&&s instanceof io}(a)&&hn(a);L=q&&this.injectableDefInScope(q)?Qd(Kp(a),Jd):null,this.records.set(a,L)}if(null!=L)return this.hydrate(a,L)}return(p&_n.Self?bf():this.parent).get(a,d=p&_n.Optional&&d===Ri?null:d)}catch(E){if("NullInjectorError"===E.name){if((E[ll]=E[ll]||[]).unshift(se(a)),m)throw E;return function jl(s,a,d,p){const m=s[ll];throw a[Vl]&&m.unshift(a[Vl]),s.message=function Hl(s,a,d,p=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.slice(2):s;let m=se(a);if(Array.isArray(a))m=a.map(se).join(" -> ");else if("object"==typeof a){let y=[];for(let E in a)if(a.hasOwnProperty(E)){let L=a[E];y.push(E+":"+("string"==typeof L?JSON.stringify(L):se(L)))}m=`{${y.join(", ")}}`}return`${d}${p?"("+p+")":""}[${m}]: ${s.replace(xp,"\n ")}`}("\n"+s.message,m,d,p),s.ngTokenPath=m,s[ll]=null,s}(E,a,"R3InjectorError",this.source)}throw E}finally{ri(y),$c(m)}}resolveInjectorInitializers(){const a=$c(this),d=ri(void 0);try{const p=this.get(Dm.multi,ye,_n.Self);for(const m of p)m()}finally{$c(a),ri(d)}}toString(){const a=[],d=this.records;for(const p of d.keys())a.push(se(p));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new We(205,!1)}processProvider(a){let d=tl(a=de(a))?a:de(a&&a.provide);const p=function yf(s){return Yd(s)?Qd(void 0,s.useValue):Qd(iu(s),Jd)}(a);if(tl(a)||!0!==a.multi)this.records.get(d);else{let m=this.records.get(d);m||(m=Qd(void 0,Jd,!0),m.factory=()=>ql(m.multi),this.records.set(d,m)),d=a,m.multi.push(a)}this.records.set(d,p)}hydrate(a,d){return d.value===Jd&&(d.value=Sm,d.value=d.factory()),"object"==typeof d.value&&d.value&&function Db(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(d.value)&&this._ngOnDestroyHooks.add(d.value),d.value}injectableDefInScope(a){if(!a.providedIn)return!1;const d=de(a.providedIn);return"string"==typeof d?"any"===d||this.scopes.has(d):this.injectorDefTypes.has(d)}}function Kp(s){const a=hn(s),d=null!==a?a.factory:po(s);if(null!==d)return d;if(s instanceof io)throw new We(204,!1);if(s instanceof Function)return function Yp(s){const a=s.length;if(a>0)throw Ma(a,"?"),new We(204,!1);const d=function kn(s){const a=s&&(s[Wn]||s[Hn]);if(a){const d=function ai(s){if(s.hasOwnProperty("name"))return s.name;const a=(""+s).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${d}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${d}" class.`),a}return null}(s);return null!==d?()=>d.factory(s):()=>new s}(s);throw new We(204,!1)}function iu(s,a,d){let p;if(tl(s)){const m=de(s);return po(m)||Kp(m)}if(Yd(s))p=()=>de(s.useValue);else if(function nu(s){return!(!s||!s.useFactory)}(s))p=()=>s.useFactory(...ql(s.deps||[]));else if(function tu(s){return!(!s||!s.useExisting)}(s))p=()=>fs(de(s.useExisting));else{const m=de(s&&(s.useClass||s.provide));if(!function M0(s){return!!s.deps}(s))return po(m)||Kp(m);p=()=>new m(...ql(s.deps))}return p}function Qd(s,a,d=!1){return{factory:s,value:a,multi:d?[]:void 0}}function Ib(s){return!!s.\u0275providers}function Ku(s,a){for(const d of s)Array.isArray(d)?Ku(d,a):Ib(d)?Ku(d.\u0275providers,a):a(d)}class Oc{}class kb{resolveComponentFactory(a){throw function E0(s){const a=Error(`No component factory found for ${se(s)}
1. Did you add it to @NgModule.entryComponents?`);return a.ngComponent=s,a}(a)}}let Ju=(()=>{class s{}return s.NULL=new kb,s})();function Rm(){return ru(so(),On())}function ru(s,a){return new Qu(Rn(s,a))}let Qu=(()=>{class s{constructor(d){this.nativeElement=d}}return s.__NG_ELEMENT_ID__=Rm,s})();function Cf(s){return s instanceof Qu?s.nativeElement:s}class xf{}let Nb=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function O0(){const s=On(),d=Si(so().index,s);return(Ge(d)?d:s)[11]}(),s})(),wf=(()=>{class s{}return s.\u0275prov=ft({token:s,providedIn:"root",factory:()=>null}),s})();class P0{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const Nm=new P0("14.3.0"),Xu={};function Jp(s){return s.ngOriginalError}class eh{constructor(){this._console=console}handleError(a){const d=this._findOriginalError(a);this._console.error("ERROR",a),d&&this._console.error("ORIGINAL ERROR",d)}_findOriginalError(a){let d=a&&Jp(a);for(;d&&Jp(d);)d=Jp(d);return d||null}}function Lm(s){return s.ownerDocument.defaultView}function Pc(s){return s.ownerDocument}function Aa(s){return s instanceof Function?s():s}function Zm(s,a,d){let p=s.length;for(;;){const m=s.indexOf(a,d);if(-1===m)return m;if(0===m||s.charCodeAt(m-1)<=32){const y=a.length;if(m+y===p||s.charCodeAt(m+y)<=32)return m}d=m+1}}const Bm="ng-template";function Ub(s,a,d){let p=0;for(;p<s.length;){let m=s[p++];if(d&&"class"===m){if(m=s[p],-1!==Zm(m.toLowerCase(),a,0))return!0}else if(1===m){for(;p<s.length&&"string"==typeof(m=s[p++]);)if(m.toLowerCase()===a)return!0;return!1}}return!1}function Ef(s){return 4===s.type&&s.value!==Bm}function A0(s,a,d){return a===(4!==s.type||d?s.value:Bm)}function Zb(s,a,d){let p=4;const m=s.attrs||[],y=function Xp(s){for(let a=0;a<s.length;a++)if(Pt(s[a]))return a;return s.length}(m);let E=!1;for(let L=0;L<a.length;L++){const q=a[L];if("number"!=typeof q){if(!E)if(4&p){if(p=2|1&p,""!==q&&!A0(s,q,d)||""===q&&1===a.length){if(dl(p))return!1;E=!0}}else{const te=8&p?q:a[++L];if(8&p&&null!==s.attrs){if(!Ub(s.attrs,te,d)){if(dl(p))return!1;E=!0}continue}const et=Bb(8&p?"class":q,m,Ef(s),d);if(-1===et){if(dl(p))return!1;E=!0;continue}if(""!==te){let Lt;Lt=et>y?"":m[et+1].toLowerCase();const nn=8&p?Lt:null;if(nn&&-1!==Zm(nn,te,0)||2&p&&te!==Lt){if(dl(p))return!1;E=!0}}}}else{if(!E&&!dl(p)&&!dl(q))return!1;if(E&&dl(q))continue;E=!1,p=q|1&p}}return dl(p)||E}function dl(s){return 0==(1&s)}function Bb(s,a,d,p){if(null===a)return-1;let m=0;if(p||!d){let y=!1;for(;m<a.length;){const E=a[m];if(E===s)return m;if(3===E||6===E)y=!0;else{if(1===E||2===E){let L=a[++m];for(;"string"==typeof L;)L=a[++m];continue}if(4===E)break;if(0===E){m+=4;continue}}m+=y?1:2}return-1}return function I0(s,a){let d=s.indexOf(4);if(d>-1)for(d++;d<s.length;){const p=s[d];if("number"==typeof p)return-1;if(p===a)return d;d++}return-1}(a,s)}function zm(s,a,d=!1){for(let p=0;p<a.length;p++)if(Zb(s,a[p],d))return!0;return!1}function S0(s,a){e:for(let d=0;d<a.length;d++){const p=a[d];if(s.length===p.length){for(let m=0;m<s.length;m++)if(s[m]!==p[m])continue e;return!0}}return!1}function k0(s,a){return s?":not("+a.trim()+")":a}function eg(s){let a=s[0],d=1,p=2,m="",y=!1;for(;d<s.length;){let E=s[d];if("string"==typeof E)if(2&p){const L=s[++d];m+="["+E+(L.length>0?'="'+L+'"':"")+"]"}else 8&p?m+="."+E:4&p&&(m+=" "+E);else""!==m&&!dl(E)&&(a+=k0(y,m),m=""),p=E,y=y||!dl(p);d++}return""!==m&&(a+=k0(y,m)),a}const sr={};function Es(s){tg(Qi(),On(),Eo()+s,!1)}function tg(s,a,d,p){if(!p)if(3==(3&a[2])){const y=s.preOrderCheckHooks;null!==y&&Vs(a,y,d)}else{const y=s.preOrderHooks;null!==y&&Ga(a,y,0,d)}xo(d)}function Of(s,a=null,d=null,p){const m=ng(s,a,d,p);return m.resolveInjectorInitializers(),m}function ng(s,a=null,d=null,p,m=new Set){const y=[d||ye,Pb(s)];return p=p||("object"==typeof s?void 0:se(s)),new km(y,a||bf(),p||null,m)}let Xl=(()=>{class s{static create(d,p){if(Array.isArray(d))return Of({name:""},p,d,"");{const m=d.name??"";return Of({name:m},d.parent,d.providers,m)}}}return s.THROW_IF_NOT_FOUND=Ri,s.NULL=new Am,s.\u0275prov=ft({token:s,providedIn:"any",factory:()=>fs(Tc)}),s.__NG_ELEMENT_ID__=-1,s})();function Ac(s,a=_n.Default){const d=On();return null===d?fs(s,a):zc(so(),d,de(s),a)}function au(){throw new Error("invalid")}function dg(s,a){return s<<17|a<<2}function za(s){return s>>17&32767}function Km(s){return 2|s}function Ts(s){return(131068&s)>>2}function Ks(s,a){return-131069&s|a<<2}function sd(s){return 1|s}function xg(s,a){const d=s.contentQueries;if(null!==d)for(let p=0;p<d.length;p+=2){const m=d[p],y=d[p+1];if(-1!==y){const E=s.data[y];Bi(m),E.contentQueries(2,a[y],y)}}}function hh(s,a,d,p,m,y,E,L,q,te,Le){const et=a.blueprint.slice();return et[0]=m,et[2]=76|p,(null!==Le||s&&1024&s[2])&&(et[2]|=1024),ji(et),et[3]=et[15]=s,et[8]=d,et[10]=E||s&&s[10],et[11]=L||s&&s[11],et[12]=q||s&&s[12]||null,et[9]=te||s&&s[9]||null,et[6]=y,et[20]=function uo(){return Vr++}(),et[21]=Le,et[16]=2==a.type?s[16]:et,et}function ud(s,a,d,p,m){let y=s.data[a];if(null===y)y=function Nf(s,a,d,p,m){const y=J(),E=Se(),q=s.data[a]=function s_(s,a,d,p,m,y
1){return{type:d,index:p,insertBeforeIndex:null,injectorIndex:a?a.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:m,attrs:y,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:a,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,E?y:y&&y.parent,d,a,p,m);return null===s.firstChild&&(s.firstChild=q),null!==y&&(E?null==y.child&&null!==q.parent&&(y.child=q):null===y.next&&(y.next=q)),q}(s,a,d,p,m),function Pn(){return mi.lFrame.inI18n}()&&(y.flags|=64);else if(64&y.type){y.type=d,y.value=p,y.attrs=m;const E=function W(){const s=mi.lFrame,a=s.currentTNode;return s.isParent?a:a.parent}();y.injectorIndex=null===E?-1:E.injectorIndex}return H(y,!0),y}function cu(s,a,d,p){if(0===d)return-1;const m=a.length;for(let y=0;y<d;y++)a.push(p),s.blueprint.push(p),s.data.push(null);return m}function uu(s,a,d){Qo(a);try{const p=s.viewQuery;null!==p&&Bf(1,p,d);const m=s.template;null!==m&&wg(s,a,m,1,d),s.firstCreatePass&&(s.firstCreatePass=!1),s.staticContentQueries&&xg(s,a),s.staticViewQueries&&Bf(2,s.viewQuery,d);const y=s.components;null!==y&&function Rf(s,a){for(let d=0;d<a.length;d++)Yb(s,a[d])}(a,y)}catch(p){throw s.firstCreatePass&&(s.incompleteFirstPass=!0,s.firstCreatePass=!1),p}finally{a[2]&=-5,xs()}}function Fl(s,a,d,p){const m=a[2];if(128!=(128&m)){Qo(a);try{ji(a),function Fe(s){return mi.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==d&&wg(s,a,d,2,p);const E=3==(3&m);if(E){const te=s.preOrderCheckHooks;null!==te&&Vs(a,te,null)}else{const te=s.preOrderHooks;null!==te&&Ga(a,te,0,null),Ns(a,0)}if(function u_(s){for(let a=Bu(s);null!==a;a=A(a)){if(!a[2])continue;const d=a[9];for(let p=0;p<d.length;p++){const m=d[p],y=m[3];0==(512&m[2])&&br(y,1),m[2]|=512}}}(a),function c_(s){for(let a=Bu(s);null!==a;a=A(a))for(let d=10;d<a.length;d++){const p=a[d],m=p[1];Br(p)&&Fl(m,p,m.template,p[8])}}(a),null!==s.contentQueries&&xg(s,a),E){const te=s.contentCheckHooks;null!==te&&Vs(a,te)}else{const te=s.contentHooks;null!==te&&Ga(a,te,1),Ns(a,1)}!function $b(s,a){const d=s.hostBindingOpCodes;if(null!==d)try{for(let p=0;p<d.length;p++){const m=d[p];if(m<0)xo(~m);else{const y=m,E=d[++p],L=d[++p];ci(E,y),L(2,a[y])}}}finally{xo(-1)}}(s,a);const L=s.components;null!==L&&function G0(s,a){for(let d=0;d<a.length;d++)ev(s,a[d])}(a,L);const q=s.viewQuery;if(null!==q&&Bf(2,q,p),E){const te=s.viewCheckHooks;null!==te&&Vs(a,te)}else{const te=s.viewHooks;null!==te&&Ga(a,te,2),Ns(a,2)}!0===s.firstUpdatePass&&(s.firstUpdatePass=!1),a[2]&=-41,512&a[2]&&(a[2]&=-513,br(a[3],-1))}finally{xs()}}}function wg(s,a,d,p,m){const y=Eo(),E=2&p;try{xo(-1),E&&a.length>22&&tg(s,a,22,!1),d(p,m)}finally{xo(y)}}function dd(s,a,d){if(Kt(a)){const m=a.directiveEnd;for(let y=a.directiveStart;y<m;y++){const E=s.data[y];E.contentQueries&&E.contentQueries(1,d[y],y)}}}function Sc(s,a,d){!ys()||(function Wb(s,a,d,p){const m=d.directiveStart,y=d.directiveEnd;s.firstCreatePass||si(d,a),aa(p,a);const E=d.initialInputs;for(let L=m;L<y;L++){const q=s.data[L],te=jt(q);te&&Kb(a,d,q);const Le=Fa(a,s,L,d);aa(Le,a),null!==E&&Rg(0,L-m,Le,q,0,E),te&&(Si(d.index,a)[8]=Le)}}(s,a,d,Rn(d,a)),128==(128&d.flags)&&function Ag(s,a,d){const p=d.directiveStart,m=d.directiveEnd,y=d.index,E=function dr(){return mi.lFrame.currentDirectiveIndex}();try{xo(y);for(let L=p;L<m;L++){const q=s.data[L],te=a[L];or(L),(null!==q.hostBindings||0!==q.hostVars||null!==q.hostAttrs)&&Q0(q,te)}}finally{xo(-1),or(E)}}(s,a,d))}function Mg(s,a,d=Rn){const p=a.localNames;if(null!==p){let m=a.index+1;for(let y=0;y<p.length;y+=2){const E=p[y+1],L=-1===E?d(a,s):s[E];s[m++]=L}}}function hd(s){const a=s.tView;return null===a||a.incompleteFirstPass?s.tView=Eg(1,null,s.template,s.decls,s.vars,s.directiveDefs,s.pipeDefs,s.viewQuery,s.schemas,s.consts):a}function Eg(s,a,d,p,m,y,E,L,q,te){const Le=22+p,et=Le+m,Lt=function Gb(s,a){const d=[];for(let p=0;p<a;p++)d.push(p<s?null:sr);return d}(Le,et),nn="function"==typeof te?te():te;return Lt[1]={type:s,blueprint:Lt,template:d,queries:null,viewQuery:L,declTNode:a,data:Lt.slice().fill(null,Le),bindingStartIndex:Le,expandoStartIndex:et,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof y?y():y,pipeRegistry:"function"==typeof E?E():E,firstChild:null,schemas:q,consts:nn,incompleteFirstPass:!1}
1}function Og(s,a,d,p){const m=Fg(a);null===d?m.push(p):(m.push(d),s.firstCreatePass&&nc(s).push(p,m.length-1))}function W0(s,a,d){for(let p in s)if(s.hasOwnProperty(p)){const m=s[p];(d=null===d?{}:d).hasOwnProperty(p)?d[p].push(a,m):d[p]=[a,m]}return d}function a_(s,a){const p=a.directiveEnd,m=s.data,y=a.attrs,E=[];let L=null,q=null;for(let te=a.directiveStart;te<p;te++){const Le=m[te],et=Le.inputs,Lt=null===y||Ef(a)?null:Uf(et,y);E.push(Lt),L=W0(et,te,L),q=W0(Le.outputs,te,q)}null!==L&&(L.hasOwnProperty("class")&&(a.flags|=16),L.hasOwnProperty("style")&&(a.flags|=32)),a.initialInputs=E,a.inputs=L,a.outputs=q}function Fo(s,a,d,p,m,y,E,L){const q=Rn(a,d);let Le,te=a.inputs;!L&&null!=te&&(Le=te[p])?(zf(s,d,Le,p,m),we(a)&&Pg(d,a.index)):3&a.type&&(p=function l_(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(p),m=null!=E?E(m,a.value||"",p):m,y.setProperty(q,p,m))}function Pg(s,a){const d=Si(a,s);16&d[2]||(d[2]|=32)}function Dg(s,a,d,p){let m=!1;if(ys()){const y=function X0(s,a,d){const p=s.directiveRegistry;let m=null;if(p)for(let y=0;y<p.length;y++){const E=p[y];zm(d,E.selectors,!1)&&(m||(m=[]),Jt(si(d,a),s,E.type),jt(E)?(Lf(s,d),m.unshift(E)):m.push(E))}return m}(s,a,d),E=null===p?null:{"":-1};if(null!==y){m=!0,fd(d,s.data.length,y.length);for(let Le=0;Le<y.length;Le++){const et=y[Le];et.providersResolver&&et.providersResolver(et)}let L=!1,q=!1,te=cu(s,a,y.length,null);for(let Le=0;Le<y.length;Le++){const et=y[Le];d.mergedAttrs=En(d.mergedAttrs,et.hostAttrs),Sg(s,d,a,te,et),Va(te,et,E),null!==et.contentQueries&&(d.flags|=8),(null!==et.hostBindings||null!==et.hostAttrs||0!==et.hostVars)&&(d.flags|=128);const Lt=et.type.prototype;!L&&(Lt.ngOnChanges||Lt.ngOnInit||Lt.ngDoCheck)&&((s.preOrderHooks||(s.preOrderHooks=[])).push(d.index),L=!0),!q&&(Lt.ngOnChanges||Lt.ngDoCheck)&&((s.preOrderCheckHooks||(s.preOrderCheckHooks=[])).push(d.index),q=!0),te++}a_(s,d)}E&&function Ig(s,a,d){if(a){const p=s.localNames=[];for(let m=0;m<a.length;m+=2){const y=d[a[m+1]];if(null==y)throw new We(-301,!1);p.push(a[m],y)}}}(d,p,E)}return d.mergedAttrs=En(d.mergedAttrs,d.attrs),m}function Ff(s,a,d,p,m,y){const E=y.hostBindings;if(E){let L=s.hostBindingOpCodes;null===L&&(L=s.hostBindingOpCodes=[]);const q=~a.index;(function J0(s){let a=s.length;for(;a>0;){const d=s[--a];if("number"==typeof d&&d<0)return d}return 0})(L)!=q&&L.push(q),L.push(p,m,E)}}function Q0(s,a){null!==s.hostBindings&&s.hostBindings(1,a)}function Lf(s,a){a.flags|=2,(s.components||(s.components=[])).push(a.index)}function Va(s,a,d){if(d){if(a.exportAs)for(let p=0;p<a.exportAs.length;p++)d[a.exportAs[p]]=s;jt(a)&&(d[""]=s)}}function fd(s,a,d){s.flags|=1,s.directiveStart=a,s.directiveEnd=a+d,s.providerIndexes=a}function Sg(s,a,d,p,m){s.data[p]=m;const y=m.factory||(m.factory=po(m.type)),E=new ga(y,jt(m),Ac);s.blueprint[p]=E,d[p]=E,Ff(s,a,0,p,cu(s,d,m.hostVars,sr),m)}function Kb(s,a,d){const p=Rn(a,s),m=hd(d),y=s[10],E=ph(s,hh(s,m,null,d.onPush?32:16,p,a,y,y.createRenderer(p,d),null,null,null));s[a.index]=E}function nl(s,a,d,p,m,y){const E=Rn(s,a);!function kg(s,a,d,p,m,y,E){if(null==y)s.removeAttribute(a,m,d);else{const L=null==E?qe(y):E(y,p||"",m);s.setAttribute(a,m,L,d)}}(a[11],E,y,s.value,d,p,m)}function Rg(s,a,d,p,m,y){const E=y[a];if(null!==E){const L=p.setInput;for(let q=0;q<E.length;){const te=E[q++],Le=E[q++],et=E[q++];null!==L?p.setInput(d,et,te,Le):d[Le]=et}}}function Uf(s,a){let d=null,p=0;for(;p<a.length;){const m=a[p];if(0!==m)if(5!==m){if("number"==typeof m)break;s.hasOwnProperty(m)&&(null===d&&(d=[]),d.push(m,s[m],a[p+1])),p+=2}else p+=2;else p+=4}return d}function Ng(s,a,d,p){return new Array(s,!0,!1,a,null,0,p,d,null,null)}function ev(s,a){const d=Si(a,s);if(Br(d)){const p=d[1];48&d[2]?Fl(p,d,p.template,d[8]):d[5]>0&&Zf(d)}}function Zf(s){for(let p=Bu(s);null!==p;p=A(p))for(let m=10;m<p.length;m++){const y=p[m];if(Br(y))if(512&y[2]){const E=y[1];Fl(E,y,E.template,y[8])}else y[5]>0&&Zf(y)}const d=s[1].components;if(null!==d)for(let p=0;p<d.length;p++){const m=Si(d[p],s);Br(m)&&m[5]>0&&Zf(m)}}function Yb(s,a){const d=Si(a,s),p=d[1];(function d_(s,a){for(let d=a.length;d<s.blueprint.length;d++)a.push(s.blueprint[d])})(p,d),uu(p,d,d[8])}function ph(s,a){return s[13]?s[14][4]=a:s[13]=a,s[14]=a,a}function gh(s){for(;s;){s[2]|=32;const a=Yc(s);if(Mn(s)&&!a)return s;s=a}return null}function hl(s,a,d,p=!0){const m=a[10];m.begin&&m.begin();try{Fl(s,a,s.template,d)}catch(E){throw p&&nv(a,E),E}finally{m.end&&m.end()}}function Bf(s,a,d){Bi(0),a(s,d)}function Fg(s){return s[7]||(s[7]=[])}function nc(s){return s.cleanup||(s.cleanup=[])}function nv(s,a){const d=s[9],p=d?d.get(eh,null):null;p&&p.handleError(a)}function zf(s,a,d,p,m){for(let y=0;y<d.length;){const E=d[y++],L=d[y++],q=a[E],te=s.data[E];
1null!==te.setInput?te.setInput(q,m,p,L):q[L]=m}}function kc(s,a,d){const p=fn(a,s);!function Ve(s,a,d){s.setValue(a,d)}(s[11],p,d)}function Vf(s,a,d){let p=d?s.styles:null,m=d?s.classes:null,y=0;if(null!==a)for(let E=0;E<a.length;E++){const L=a[E];"number"==typeof L?y=L:1==y?m=z(m,L):2==y&&(p=z(p,L+": "+a[++E]+";"))}d?s.styles=p:s.stylesWithoutHost=p,d?s.classes=m:s.classesWithoutHost=m}function du(s,a,d,p,m=!1){for(;null!==d;){const y=a[d.index];if(null!==y&&p.push(Qe(y)),ht(y))for(let L=10;L<y.length;L++){const q=y[L],te=q[1].firstChild;null!==te&&du(q[1],q,te,p)}const E=d.type;if(8&E)du(s,a,d.child,p);else if(32&E){const L=Cc(d,a);let q;for(;q=L();)p.push(q)}else if(16&E){const L=u0(a,d);if(Array.isArray(L))p.push(...L);else{const q=Yc(a[16]);du(q[1],q,L,p,!0)}}d=m?d.projectionNext:d.next}return p}class mh{constructor(a,d){this._lView=a,this._cdRefInjectingView=d,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const a=this._lView,d=a[1];return du(d,a,d.firstChild,[])}get context(){return this._lView[8]}set context(a){this._lView[8]=a}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const a=this._lView[3];if(ht(a)){const d=a[8],p=d?d.indexOf(this):-1;p>-1&&(gs(a,p),_a(d,p))}this._attachedToViewContainer=!1}Hd(this._lView[1],this._lView)}onDestroy(a){Og(this._lView[1],this._lView,null,a)}markForCheck(){gh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){hl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new We(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Wi(s,a){$d(s,a,a[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new We(902,!1);this._appRef=a}}class h_ extends mh{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;hl(a[1],a,a[8],!1)}checkNoChanges(){}get context(){return null}}class iv extends Ju{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const d=Ie(a);return new hu(d,this.ngModule)}}function f_(s){const a=[];for(let d in s)s.hasOwnProperty(d)&&a.push({propName:s[d],templateName:d});return a}class p_{constructor(a,d){this.injector=a,this.parentInjector=d}get(a,d,p){const m=this.injector.get(a,Xu,p);return m!==Xu||d===Xu?m:this.parentInjector.get(a,d,p)}}class hu extends Oc{constructor(a,d){super(),this.componentDef=a,this.ngModule=d,this.componentType=a.type,this.selector=function ou(s){return s.map(eg).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!d}get inputs(){return f_(this.componentDef.inputs)}get outputs(){return f_(this.componentDef.outputs)}create(a,d,p,m){let y=(m=m||this.ngModule)instanceof Wu?m:m?.injector;y&&null!==this.componentDef.getStandaloneInjector&&(y=this.componentDef.getStandaloneInjector(y)||y);const E=y?new p_(a,y):a,L=E.get(xf,null);if(null===L)throw new We(407,!1);const q=E.get(wf,null),te=L.createRenderer(null,this.componentDef),Le=this.componentDef.selectors[0][0]||"div",et=p?function o_(s,a,d){return s.selectRootElement(a,d===le.ShadowDom)}(te,p,this.componentDef.encapsulation):an(te,Le,function T1(s){const a=s.toLowerCase();return"svg"===a?"svg":"math"===a?"math":null}(Le)),Lt=this.componentDef.onPush?288:272,nn=Eg(0,null,null,1,0,null,null,null,null,null),Dn=hh(null,nn,null,Lt,null,null,L,te,q,E,null);let Xn,gi;Qo(Dn);try{const ki=function m_(s,a,d,p,m,y){const E=d[1];d[22]=s;const q=ud(E,22,2,"#host",null),te=q.mergedAttrs=a.hostAttrs;null!==te&&(Vf(q,te,!0),null!==s&&(Ae(m,s,te),null!==q.classes&&lf(m,s,q.classes),null!==q.styles&&ts(m,s,q.styles)));const Le=p.createRenderer(s,a),et=hh(d,hd(a),null,a.onPush?32:16,d[22],q,p,Le,y||null,null,null);return E.firstCreatePass&&(Jt(si(q,d),E,a.type),Lf(E,q),fd(q,d.length,1)),ph(d,et),d[22]=et}(et,this.componentDef,Dn,L,te);if(et)if(p)Ae(te,et,["ng-version",Nm.full]);else{const{attrs:Ki,classes:Fn}=function R0(s){const a=[],d=[];let p=1,m=2;for(;p<s.length;){let y=s[p];if("string"==typeof y)2===m?""!==y&&a.push(y,s[++p]):8===m&&d.push(y);else{if(!dl(m))break;m=y}p++}return{attrs:a,classes:d}}(this.componentDef.selectors[0]);Ki&&Ae(te,et,Ki),Fn&&Fn.length>0&&lf(te,et,Fn.join(" "))}if(gi=fi(nn,22),void 0!==d){const Ki=gi.projection=[];for(let Fn=0;Fn<this.ngContentSelectors.length;Fn++){const lr=d[Fn];Ki.push(null!=lr?Array.from(lr):null)}}Xn=function Qb(s,a,d,p){const m=d[1],y=function Y0(s,a,d){const p=so();s.firstCreatePass&&(d.providersResolver&&d.providersResolver(d),Sg(s,p,a,cu(s,a,1,null),d),a_(s,p));const m=Fa(a,s,p.directiveStart,p);aa(m,a);const y=Rn(p,a);return y&&aa(y,a),m}(m,d,a);if(s[8]=d[8]=y,null!==p)for(const L of p)L(y,a);if(a.contentQueries){const L=so();a.contentQueries(1,y,L.directiveStart)}const E=so();return!m.firstCreatePass||null===a.hostBindings&&null===a.hostAttrs||(xo(E.index),Ff(d[1],E,0,E.directiveStart,E.directiveEnd,a),Q0(a,y)),y}(ki,this.componentDef,Dn,[Zg]),uu(nn,Dn,null)}finally{xs()}return new g_(this.componentType,Xn,ru(gi,Dn),Dn,gi)}}class g_ extends class Yu{}
1{constructor(a,d,p,m,y){super(),this.location=p,this._rootLView=m,this._tNode=y,this.instance=d,this.hostView=this.changeDetectorRef=new h_(m),this.componentType=a}setInput(a,d){const p=this._tNode.inputs;let m;if(null!==p&&(m=p[a])){const y=this._rootLView;zf(y[1],y,m,a,d),Pg(y,this._tNode.index)}}get injector(){return new ee(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(a){this.hostView.onDestroy(a)}}function Zg(){const s=so();pa(On()[1],s)}function pd(s){let a=function ic(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),d=!0;const p=[s];for(;a;){let m;if(jt(s))m=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new We(903,!1);m=a.\u0275dir}if(m){if(d){p.push(m);const E=s;E.inputs=fu(s.inputs),E.declaredInputs=fu(s.declaredInputs),E.outputs=fu(s.outputs);const L=m.hostBindings;L&&pu(s,L);const q=m.viewQuery,te=m.contentQueries;if(q&&ov(s,q),te&&gd(s,te),Te(s.inputs,m.inputs),Te(s.declaredInputs,m.declaredInputs),Te(s.outputs,m.outputs),jt(m)&&m.data.animation){const Le=s.data;Le.animation=(Le.animation||[]).concat(m.data.animation)}}const y=m.features;if(y)for(let E=0;E<y.length;E++){const L=y[E];L&&L.ngInherit&&L(s),L===pd&&(d=!1)}}a=Object.getPrototypeOf(a)}!function _h(s){let a=0,d=null;for(let p=s.length-1;p>=0;p--){const m=s[p];m.hostVars=a+=m.hostVars,m.hostAttrs=En(m.hostAttrs,d=En(d,m.hostAttrs))}}(p)}function fu(s){return s===De?{}:s===ye?[]:s}function ov(s,a){const d=s.viewQuery;s.viewQuery=d?(p,m)=>{a(p,m),d(p,m)}:a}function gd(s,a){const d=s.contentQueries;s.contentQueries=d?(p,m,y)=>{a(p,m,y),d(p,m,y)}:a}function pu(s,a){const d=s.hostBindings;s.hostBindings=d?(p,m)=>{a(p,m),d(p,m)}:a}let gu=null;function Rc(){if(!gu){const s=O.Symbol;if(s&&s.iterator)gu=s.iterator;else{const a=Object.getOwnPropertyNames(Map.prototype);for(let d=0;d<a.length;++d){const p=a[d];"entries"!==p&&"size"!==p&&Map.prototype[p]===Map.prototype.entries&&(gu=p)}}}return gu}function Us(s){return!!qf(s)&&(Array.isArray(s)||!(s instanceof Map)&&Rc()in s)}function qf(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function Ys(s,a,d){return s[a]=d}function ca(s,a,d){return!Object.is(s[a],d)&&(s[a]=d,!0)}function qa(s,a,d,p){const m=ca(s,a,d);return ca(s,a+1,p)||m}function ja(s,a,d,p,m,y){const E=qa(s,a,d,p);return qa(s,a+2,m,y)||E}function as(s,a,d,p){const m=On();return ca(m,vt(),a)&&(Qi(),nl($r(),m,s,a,d,p)),as}function vu(s,a,d,p){return ca(s,vt(),d)?a+qe(d)+p:sr}function Ll(s,a,d,p,m,y,E,L){const te=function mu(s,a,d,p,m){const y=qa(s,a,d,p);return ca(s,a+2,m)||y}(s,Me(),d,m,E);return Qt(3),te?a+qe(d)+p+qe(m)+y+qe(E)+L:sr}function qg(s,a,d,p,m,y,E,L){const q=On(),te=Qi(),Le=s+22,et=te.firstCreatePass?function b_(s,a,d,p,m,y,E,L,q){const te=a.consts,Le=ud(a,s,4,E||null,nr(te,L));Dg(a,d,Le,nr(te,q)),pa(a,Le);const et=Le.tViews=Eg(2,Le,p,m,y,a.directiveRegistry,a.pipeRegistry,null,a.schemas,te);return null!==a.queries&&(a.queries.template(a,Le),et.queries=a.queries.embeddedTView(Le)),Le}(Le,te,q,a,d,p,m,y,E):te.data[Le];H(et,!1);const Lt=q[11].createComment("");Jc(te,q,Lt,et),aa(Lt,q),ph(q,q[Le]=Ng(Lt,q,Lt,et)),ct(et)&&Sc(te,q,et),null!=E&&Mg(q,et,L)}function Sr(s){return Fi(function Hi(){return mi.lFrame.contextLView}(),22+s)}function Gf(s,a,d){const p=On();return ca(p,vt(),a)&&Fo(Qi(),$r(),p,s,a,p[11],d,!1),Gf}function Wf(s,a,d,p,m){const E=m?"class":"style";zf(s,d,a.inputs[E],E,p)}function Kf(s,a,d,p){const m=On(),y=Qi(),E=22+s,L=m[11],q=m[E]=an(L,a,function dc(){return mi.lFrame.currentNamespace}()),te=y.firstCreatePass?function yd(s,a,d,p,m,y,E){const L=a.consts,te=ud(a,s,2,m,nr(L,y));return Dg(a,d,te,nr(L,E)),null!==te.attrs&&Vf(te,te.attrs,!1),null!==te.mergedAttrs&&Vf(te,te.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,te),te}(E,y,m,0,a,d,p):y.data[E];H(te,!0);const Le=te.mergedAttrs;null!==Le&&Ae(L,q,Le);const et=te.classes;null!==et&&lf(L,q,et);const Lt=te.styles;return null!==Lt&&ts(L,q,Lt),64!=(64&te.flags)&&Jc(y,m,q,te),0===function Hr(){return mi.lFrame.elementDepthCount}()&&aa(q,m),function ur(){mi.lFrame.elementDepthCount++}(),ct(te)&&(Sc(y,m,te),dd(y,te,m)),null!==p&&Mg(m,te),Kf}function Lo(){let s=so();Se()?ln():(s=s.parent,H(s,!1));const a=s;!function Yo(){mi.lFrame.elementDepthCount--}();const d=Qi();return d.firstCreatePass&&(pa(d,s),Kt(s)&&d.queries.elementEnd(s)),null!=a.classesWithoutHost&&function ma(s){return 0!=(16&s.flags)}(a)&&Wf(d,a,On(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function B(s){return 0!=(32&s.flags)}(a)&&Wf(d,a,On(),a.stylesWithoutHost,!1),Lo}function Js(s,a,d,p){return Kf(s,a,d,p),Lo(),Js}function xh(s,a,d){const p=On(),m=Qi(),y=s+22,E=m.firstCreatePass?function pl(s,a,d,p,m){const y=a.consts,E=nr(y,p),L=ud(a,s,8,"ng-container",E);
vendor: 11,081 bytes, line 1
1return null!==E&&Vf(L,E,!0),Dg(a,d,L,nr(y,m)),null!==a.queries&&a.queries.elementStart(a,L),L}(y,m,p,a,d):m.data[y];H(E,!0);const L=p[y]=p[11].createComment("");return Jc(m,p,L,E),aa(L,p),ct(E)&&(Sc(m,p,E),dd(m,E,p)),null!=d&&Mg(p,E),xh}function wh(){let s=so();const a=Qi();return Se()?ln():(s=s.parent,H(s,!1)),a.firstCreatePass&&(pa(a,s),Kt(s)&&a.queries.elementEnd(s)),wh}function jg(s,a,d){return xh(s,a,d),wh(),jg}function cv(){return On()}function Mh(s){return!!s&&"function"==typeof s.then}function uv(s){return!!s&&"function"==typeof s.subscribe}const Hg=uv;function y_(s,a,d,p){const m=On(),y=Qi(),E=so();return function dv(s,a,d,p,m,y,E,L){const q=ct(p),Le=s.firstCreatePass&&nc(s),et=a[8],Lt=Fg(a);let nn=!0;if(3&p.type||L){const gi=Rn(p,a),ki=L?L(gi):gi,Ki=Lt.length,Fn=L?vo=>L(Qe(vo[p.index])):p.index;let lr=null;if(!L&&q&&(lr=function Uo(s,a,d,p){const m=s.cleanup;if(null!=m)for(let y=0;y<m.length-1;y+=2){const E=m[y];if(E===d&&m[y+1]===p){const L=a[7],q=m[y+2];return L.length>q?L[q]:null}"string"==typeof E&&(y+=2)}return null}(s,a,m,p.index)),null!==lr)(lr.__ngLastListenerFn__||lr).__ngNextListenerFn__=y,lr.__ngLastListenerFn__=y,nn=!1;else{y=_s(p,a,et,y,!1);const vo=d.listen(ki,m,y);Lt.push(y,vo),Le&&Le.push(m,Fn,Ki,Ki+1)}}else y=_s(p,a,et,y,!1);const Dn=p.outputs;let Xn;if(nn&&null!==Dn&&(Xn=Dn[m])){const gi=Xn.length;if(gi)for(let ki=0;ki<gi;ki+=2){const zo=a[Xn[ki]][Xn[ki+1]].subscribe(y),Vh=Lt.length;Lt.push(y,zo),Le&&Le.push(m,p.index,Vh,-(Vh+1))}}}(y,m,m[11],E,s,a,0,p),y_}function hv(s,a,d,p){try{return!1!==d(p)}catch(m){return nv(s,m),!1}}function _s(s,a,d,p,m){return function y(E){if(E===Function)return p;gh(2&s.flags?Si(s.index,a):a);let q=hv(a,0,p,E),te=y.__ngNextListenerFn__;for(;te;)q=hv(a,0,te,E)&&q,te=te.__ngNextListenerFn__;return m&&!1===q&&(E.preventDefault(),E.returnValue=!1),q}}function x_(s=1){return function $a(s){return(mi.lFrame.contextLView=function Ra(s,a){for(;s>0;)a=a[15],s--;return a}(s,mi.lFrame.contextLView))[8]}(s)}function Xb(s,a){let d=null;const p=function nd(s){const a=s.attrs;if(null!=a){const d=a.indexOf(5);if(0==(1&d))return a[d+1]}return null}(s);for(let m=0;m<a.length;m++){const y=a[m];if("*"!==y){if(null===p?zm(s,y,!0):S0(p,y))return m}else d=m}return d}function fv(s){const a=On()[16][6];if(!a.projection){const p=a.projection=Ma(s?s.length:1,null),m=p.slice();let y=a.child;for(;null!==y;){const E=s?Xb(y,s):0;null!==E&&(m[E]?m[E].projectionNext=y:p[E]=y,m[E]=y),y=y.next}}}function $g(s,a=0,d){const p=On(),m=Qi(),y=ud(m,22+s,16,null,d||null);null===y.projection&&(y.projection=a),ln(),64!=(64&y.flags)&&function yb(s,a,d){af(a[11],0,a,d,sf(s,d,a),a0(d.parent||a[6],d,a))}(m,p,y)}function Gg(s,a,d){return w_(s,"",a,"",d),Gg}function w_(s,a,d,p,m){const y=On(),E=vu(y,a,d,p);return E!==sr&&Fo(Qi(),$r(),y,s,E,y[11],m,!1),w_}function wu(s,a,d,p,m){const y=s[d+1],E=null===a;let L=p?za(y):Ts(y),q=!1;for(;0!==L&&(!1===q||E);){const Le=s[L+1];Kg(s[L],a)&&(q=!0,s[L+1]=p?sd(Le):Km(Le)),L=p?za(Le):Ts(Le)}q&&(s[d+1]=p?Km(y):sd(y))}function Kg(s,a){return null===s||null==a||(Array.isArray(s)?s[1]:s)===a||!(!Array.isArray(s)||"string"!=typeof a)&&Ct(s,a)>=0}const Ps={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function E_(s){return s.substring(Ps.key,Ps.keyEnd)}function _v(s){return s.substring(Ps.value,Ps.valueEnd)}function Yf(s,a){const d=Ps.textEnd;return d===a?-1:(a=Ps.keyEnd=function bv(s,a,d){for(;a<d&&s.charCodeAt(a)>32;)a++;return a}(s,Ps.key=a,d),Ul(s,a,d))}function Lc(s,a){const d=Ps.textEnd;let p=Ps.key=Ul(s,a,d);return d===p?-1:(p=Ps.keyEnd=function Yg(s,a,d){let p;for(;a<d&&(45===(p=s.charCodeAt(a))||95===p||(-33&p)>=65&&(-33&p)<=90||p>=48&&p<=57);)a++;return a}(s,p,d),p=O_(s,p,d),p=Ps.value=Ul(s,p,d),p=Ps.valueEnd=function yv(s,a,d){let p=-1,m=-1,y=-1,E=a,L=E;for(;E<d;){const q=s.charCodeAt(E++);if(59===q)return L;34===q||39===q?L=E=Jf(s,q,E,d):a===E-4&&85===y&&82===m&&76===p&&40===q?L=E=Jf(s,41,E,d):q>32&&(L=E),y=m,m=p,p=-33&q}return L}(s,p,d),O_(s,p,d))}function Eh(s){Ps.key=0,Ps.keyEnd=0,Ps.value=0,Ps.valueEnd=0,Ps.textEnd=s.length}function Ul(s,a,d){for(;a<d&&s.charCodeAt(a)<=32;)a++;return a}function O_(s,a,d,p){return(a=Ul(s,a,d))<d&&a++,a}function Jf(s,a,d,p){let m=-1,y=d;for(;y<p;){const E=s.charCodeAt(y++);if(E==a&&92!==m)return y;m=92==E&&92===m?0:E}throw new Error}function Th(s,a,d){return ba(s,a,d,!1),Th}function ro(s,a){return ba(s,a,null,!0),ro}function ar(s){Zl(Cv,Ar,s,!1)}function Ar(s,a){for(let d=function vv(s){return Eh(s),Lc(s,Ul(s,0,Ps.textEnd))}(a);d>=0;d=Lc(a,d))Cv(s,E_(a),_v(a))}function oc(s){Zl(Pe,Fr,s,!0)}function Fr(s,a){for(let d=function T_(s){return Eh(s),Yf(s,Ul(s,0,Ps.textEnd))}(a);d>=0;d=Yf(a,d))Pe(s,E_(a),!0)}function ba(s,a,d,p){const m=On(),y=Qi(),E=Qt(2);y.firstUpdatePass&&Oh(y,s,E,p),a!==sr&&ca(m,E,a)&&D_(y,y.data[Eo()],m,m[11],s,m[E+1]=function Qg(s,a){return null==s||("string"==typeof a?s+=a:"object"==typeof s&&(s=se(Ua(s)))),s}(a,d),p,E)}function Zl(s,a,d,p){const m=Qi(),y=Qt(2);m.firstUpdatePass&&Oh(m,null,y,p);const E=On();if(d!==sr&&ca(E,y,d)){const L=m.data[Eo()];if(Xg(L,p)&&!Uc(m,y)){let q=p?L.classesWithoutHost:L.stylesWithoutHost;null!==q&&(d=z(q,d||"")),Wf(m,L,E,d,p)}else!function Xf(s,a,d,p,m,y,E,L){m===sr&&(m=ye);let q=0,te=0,Le=0<m.length?m[0]:null,et=0<y.length?y[0]:null;for(;null!==Le||null!==et;){const Lt=q<m.length?m[q+1]:void 0,nn=te<y.length?y[te+1]:void 0;let Xn,Dn=null;Le===et?(q+=2,te+=2,Lt!==nn&&(Dn=et,Xn=nn)):null===et||null!==Le&&Le<et?(q+=2,Dn=Le):(te+=2,Dn=et,Xn=nn),null!==Dn&&D_(s,a,d,p,Dn,Xn,E,L),Le=q<m.length?m[q]:null,et=te<y.length?y[te]:null}}(m,L,E,E[11],E[y+1],E[y+1]=function Qf(s,a,d){if(null==d||""===d)return ye;const p=[],m=Ua(d);if(Array.isArray(m))for(let y=0;y<m.length;y++)s(p,m[y],!0);else if("object"==typeof m)for(const y in m)m.hasOwnProperty(y)&&s(p,y,m[y]);else"string"==typeof m&&a(p,m);return p}(s,a,d),p,y)}}function Uc(s,a){return a>=s.expandoStartIndex}function Oh(s,a,d,p){const m=s.data;if(null===m[d+1]){const y=m[Eo()],E=Uc(s,d);Xg(y,p)&&null===a&&!E&&(a=!1),a=function $o(s,a,d,p){const m=function wr(s){const a=mi.lFrame.currentDirectiveIndex;return-1===a?null:s[a]}(s);let y=p?a.residualClasses:a.residualStyles;if(null===m)0===(p?a.classBindings:a.styleBindings)&&(d=ua(d=Ph(null,s,a,d,p),a.attrs,p),y=null);else{const E=a.directiveStylingLast;if(-1===E||s[E]!==m)if(d=Ph(m,s,a,d,p),null===y){let q=function Er(s,a,d){const p=d?a.classBindings:a.styleBindings;if(0!==Ts(p))return s[za(p)]}(s,a,p);void 0!==q&&Array.isArray(q)&&(q=Ph(null,s,a,q[1],p),q=ua(q,a.attrs,p),function Ia(s,a,d,p){s[za(d?a.classBindings:a.styleBindings)]=p}(s,a,p,q))}else y=function Jg(s,a,d){let p;const m=a.directiveEnd;for(let y=1+a.directiveStylingLast;y<m;y++)p=ua(p,s[y].hostAttrs,d);return ua(p,a.attrs,d)}(s,a,p)}return void 0!==y&&(p?a.residualClasses=y:a.residualStyles=y),d}(m,y,a,p),function xu(s,a,d,p,m,y){let E=y?a.classBindings:a.styleBindings,L=za(E),q=Ts(E);s[p]=d;let Le,te=!1;if(Array.isArray(d)){const et=d;Le=et[1],(null===Le||Ct(et,Le)>0)&&(te=!0)}else Le=d;if(m)if(0!==q){const Lt=za(s[L+1]);s[p+1]=dg(Lt,L),0!==Lt&&(s[Lt+1]=Ks(s[Lt+1],p)),s[L+1]=function Wm(s,a){return 131071&s|a<<17}(s[L+1],p)}else s[p+1]=dg(L,0),0!==L&&(s[L+1]=Ks(s[L+1],p)),L=p;else s[p+1]=dg(q,0),0===L?L=p:s[q+1]=Ks(s[q+1],p),q=p;te&&(s[p+1]=Km(s[p+1])),wu(s,Le,p,!0),wu(s,Le,p,!1),function P1(s,a,d,p,m){const y=m?s.residualClasses:s.residualStyles;null!=y&&"string"==typeof a&&Ct(y,a)>=0&&(d[p+1]=sd(d[p+1]))}(a,Le,s,p,y),E=dg(L,q),y?a.classBindings=E:a.styleBindings=E}(m,y,a,d,E,p)}}function Ph(s,a,d,p,m){let y=null;const E=d.directiveEnd;let L=d.directiveStylingLast;for(-1===L?L=d.directiveStart:L++;L<E&&(y=a[L],p=ua(p,y.hostAttrs,m),y!==s);)L++;return null!==s&&(d.directiveStylingLast=L),p}function ua(s,a,d){const p=d?1:2;let m=-1;if(null!==a)for(let y=0;y<a.length;y++){const E=a[y];"number"==typeof E?m=E:m===p&&(Array.isArray(s)||(s=void 0===s?[]:["",s]),Pe(s,E,!!d||a[++y]))}return void 0===s?null:s}function Cv(s,a,d){Pe(s,a,Ua(d))}function D_(s,a,d,p,m,y,E,L){if(!(3&a.type))return;const q=s.data,te=q[L+1];ep(function Af(s){return 1==(1&s)}(te)?rl(q,a,d,m,Ts(te),E):void 0)||(ep(y)||function Df(s){return 2==(2&s)}(te)&&(y=rl(q,null,d,m,L,E)),function f1(s,a,d,p,m){if(a)m?s.addClass(d,p):s.removeClass(d,p);else{let y=-1===p.indexOf("-")?void 0:oa.DashCase;null==m?s.removeStyle(d,p,y):("string"==typeof m&&m.endsWith("!important")&&(m=m.slice(0,-10),y|=oa.Important),s.setStyle(d,p,m,y))}}(p,E,fn(Eo(),d),m,y))}function rl(s,a,d,p,m,y){const E=null===a;let L;for(;m>0;){const q=s[m],te=Array.isArray(q),Le=te?q[1]:q,et=null===Le;let Lt=d[m+1];Lt===sr&&(Lt=et?ye:void 0);let nn=et?rt(Lt,p):Le===p?Lt:void 0;if(te&&!ep(nn)&&(nn=rt(q,p)),ep(nn)&&(L=nn,E))return L;const Dn=s[m+1];m=E?za(Dn):Ts(Dn)}if(null!==a){let q=y?a.residualClasses:a.residualStyles;null!=q&&(L=rt(q,p))}return L}function ep(s){return void 0!==s}function Xg(s,a){return 0!=(s.flags&(a?16:32))}function A_(s,a=""){const d=On(),p=Qi(),m=s+22,y=p.firstCreatePass?ud(p,m,1,a,null):p.data[m],E=d[m]=function ce(s,a){return s.createText(a)}(d[11],a);Jc(p,d,E,y),H(y,!1)}function Dh(s){return em("",s,""),Dh}function em(s,a,d){const p=On(),m=vu(p,s,a,d);return m!==sr&&kc(p,Eo(),m),em}function I_(s,a,d,p,m){const y=On(),E=function _d(s,a,d,p,m,y){const L=qa(s,Me(),d,m);return Qt(2),L?a+qe(d)+p+qe(m)+y:sr}(y,s,a,d,p,m);return E!==sr&&kc(y,Eo(),E),I_}function xd(s,a,d,p,m,y,E){const L=On(),q=Ll(L,s,a,d,p,m,y,E);return q!==sr&&kc(L,Eo(),q),xd}function Ir(s,a,d,p,m,y,E,L,q,te,Le){const et=On(),Lt=function bh(s,a,d,p,m,y,E,L,q,te,Le,et){const Lt=Me();let nn=ja(s,Lt,d,m,E,q);return nn=ca(s,Lt+4,Le)||nn,Qt(5),nn?a+qe(d)+p+qe(m)+y+qe(E)+L+qe(q)+te+qe(Le)+et:sr}(et,s,a,d,p,m,y,E,L,q,te,Le);return Lt!==sr&&kc(et,Eo(),Lt),Ir}function Ah(s,a,d){Zl(Pe,Fr,vu(On(),s,a,d),!0)}function Td(s,a,d){const p=On();return ca(p,vt(),a)&&Fo(Qi(),$r(),p,s,a,p[11],d,!0),Td}const _o=void 0;var ry=["en",[["a","p"],["AM","PM"],_o],[["AM","PM"],_o,_o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_o,"{1} 'at' {0}",_o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k_(s){const d=Math.floor(Math.abs(s)),p=s.toString().replace(/^[^.]*\.?/,"").length;return 1===d&&0===p?1:5}];let ol={};function Od(s){const a=function D1(s){return s.toLowerCase().replace(/_/g,"-")}(s);let d=Dv(a);if(d)return d;const p=a.split("-")[0];if(d=Dv(p),d)return d;if("en"===p)return ry;throw new We(701,!1)}function kh(s){return Od(s)[Vi.PluralCase]}
1function Dv(s){return s in ol||(ol[s]=O.ng&&O.ng.common&&O.ng.common.locales&&O.ng.common.locales[s]),ol[s]}var Vi=(()=>((Vi=Vi||{})[Vi.LocaleId=0]="LocaleId",Vi[Vi.DayPeriodsFormat=1]="DayPeriodsFormat",Vi[Vi.DayPeriodsStandalone=2]="DayPeriodsStandalone",Vi[Vi.DaysFormat=3]="DaysFormat",Vi[Vi.DaysStandalone=4]="DaysStandalone",Vi[Vi.MonthsFormat=5]="MonthsFormat",Vi[Vi.MonthsStandalone=6]="MonthsStandalone",Vi[Vi.Eras=7]="Eras",Vi[Vi.FirstDayOfWeek=8]="FirstDayOfWeek",Vi[Vi.WeekendRange=9]="WeekendRange",Vi[Vi.DateFormat=10]="DateFormat",Vi[Vi.TimeFormat=11]="TimeFormat",Vi[Vi.DateTimeFormat=12]="DateTimeFormat",Vi[Vi.NumberSymbols=13]="NumberSymbols",Vi[Vi.NumberFormats=14]="NumberFormats",Vi[Vi.CurrencyCode=15]="CurrencyCode",Vi[Vi.CurrencySymbol=16]="CurrencySymbol",Vi[Vi.CurrencyName=17]="CurrencyName",Vi[Vi.Currencies=18]="Currencies",Vi[Vi.Directionality=19]="Directionality",Vi[Vi.PluralCase=20]="PluralCase",Vi[Vi.ExtraData=21]="ExtraData",Vi))();const op="en-US";let Nh=op;function Bv(s,a,d,p,m){if(s=de(s),Array.isArray(s))for(let y=0;y<s.length;y++)Bv(s[y],a,d,p,m);else{const y=Qi(),E=On();let L=tl(s)?s:de(s.provide),q=iu(s);const te=so(),Le=1048575&te.providerIndexes,et=te.directiveStart,Lt=te.providerIndexes>>20;if(tl(s)||!s.multi){const nn=new ga(q,m,Ac),Dn=B_(L,a,m?Le:Le+Lt,et);-1===Dn?(Jt(si(te,E),y,L),hy(y,s,a.length),a.push(L),te.directiveStart++,te.directiveEnd++,m&&(te.providerIndexes+=1048576),d.push(nn),E.push(nn)):(d[Dn]=nn,E[Dn]=nn)}else{const nn=B_(L,a,Le+Lt,et),Dn=B_(L,a,Le,Le+Lt),Xn=nn>=0&&d[nn],gi=Dn>=0&&d[Dn];if(m&&!gi||!m&&!Xn){Jt(si(te,E),y,L);const ki=function px(s,a,d,p,m){const y=new ga(s,d,Ac);return y.multi=[],y.index=a,y.componentProviders=0,fy(y,m,p&&!d),y}(m?fx:hx,d.length,m,p,q);!m&&gi&&(d[Dn].providerFactory=ki),hy(y,s,a.length,0),a.push(L),te.directiveStart++,te.directiveEnd++,m&&(te.providerIndexes+=1048576),d.push(ki),E.push(ki)}else hy(y,s,nn>-1?nn:Dn,fy(d[m?Dn:nn],q,!m&&p));!m&&p&&gi&&d[Dn].componentProviders++}}}function hy(s,a,d,p){const m=tl(a),y=function vf(s){return!!s.useClass}(a);if(m||y){const q=(y?de(a.useClass):a).prototype.ngOnDestroy;if(q){const te=s.destroyHooks||(s.destroyHooks=[]);if(!m&&a.multi){const Le=te.indexOf(d);-1===Le?te.push(d,[p,q]):te[Le+1].push(p,q)}else te.push(d,q)}}}function fy(s,a,d){return d&&s.componentProviders++,s.multi.push(a)-1}function B_(s,a,d,p){for(let m=d;m<p;m++)if(a[m]===s)return m;return-1}function hx(s,a,d,p){return py(this.multi,[])}function fx(s,a,d,p){const m=this.multi;let y;if(this.providerFactory){const E=this.providerFactory.componentProviders,L=Fa(d,d[1],this.providerFactory.index,p);y=L.slice(0,E),py(m,y);for(let q=E;q<L.length;q++)y.push(L[q])}else y=[],py(m,y);return y}function py(s,a){for(let d=0;d<s.length;d++)a.push((0,s[d])());return a}function G1(s,a=[]){return d=>{d.providersResolver=(p,m)=>function dy(s,a,d){const p=Qi();if(p.firstCreatePass){const m=jt(s);Bv(d,p.data,p.blueprint,m,!0),Bv(a,p.data,p.blueprint,m,!1)}}(p,m?m(s):s,a)}}class am{}class W1{}function K1(s,a){return new gy(s,a??null)}class gy extends am{constructor(a,d){super(),this._parent=d,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iv(this);const p=pt(a);this._bootstrapComponents=Aa(p.bootstrap),this._r3Injector=ng(a,d,[{provide:am,useValue:this},{provide:Ju,useValue:this.componentFactoryResolver}],se(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(d=>d()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class zv extends W1{constructor(a){super(),this.moduleType=a}create(a){return new gy(this.moduleType,a)}}class gx extends am{constructor(a,d,p){super(),this.componentFactoryResolver=new iv(this),this.instance=null;const m=new km([...a,{provide:am,useValue:this},{provide:Ju,useValue:this.componentFactoryResolver}],d||bf(),p,new Set(["environment"]));this.injector=m,m.resolveInjectorInitializers()}
1destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function Vv(s,a,d=null){return new gx(s,a,d).injector}let qv=(()=>{class s{constructor(d){this._injector=d,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(d){if(!d.standalone)return null;if(!this.cachedInjectors.has(d.id)){const p=Im(0,d.type),m=p.length>0?Vv([p],this._injector,`Standalone[${d.type.name}]`):null;this.cachedInjectors.set(d.id,m)}return this.cachedInjectors.get(d.id)}ngOnDestroy(){try{for(const d of this.cachedInjectors.values())null!==d&&d.destroy()}finally{this.cachedInjectors.clear()}}}return s.\u0275prov=ft({token:s,providedIn:"environment",factory:()=>new s(fs(Wu))}),s})();function my(s){s.getStandaloneInjector=a=>a.get(qv).getOrCreateStandaloneInjector(s)}function Gv(s,a,d){const p=Or()+s,m=On();return m[p]===sr?Ys(m,p,d?a.call(d):a()):function il(s,a){return s[a]}(m,p)}function eC(s,a,d,p){return V_(On(),Or(),s,a,d,p)}function Ad(s,a,d,p,m){return iC(On(),Or(),s,a,d,p,m)}function tC(s,a,d,p,m,y,E){return function yy(s,a,d,p,m,y,E,L,q){const te=a+d;return ja(s,te,m,y,E,L)?Ys(s,te+4,q?p.call(q,m,y,E,L):p(m,y,E,L)):up(s,te+4)}(On(),Or(),s,a,d,p,m,y,E)}function up(s,a){const d=s[a];return d===sr?void 0:d}function V_(s,a,d,p,m,y){const E=a+d;return ca(s,E,m)?Ys(s,E+1,y?p.call(y,m):p(m)):up(s,E+1)}function iC(s,a,d,p,m,y,E){const L=a+d;return qa(s,L,m,y)?Ys(s,L+2,E?p.call(E,m,y):p(m,y)):up(s,L+2)}function xy(s,a){const d=Qi();let p;const m=s+22;d.firstCreatePass?(p=function q_(s,a){if(a)for(let d=a.length-1;d>=0;d--){const p=a[d];if(s===p.name)return p}}(a,d.pipeRegistry),d.data[m]=p,p.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(m,p.onDestroy)):p=d.data[m];const y=p.factory||(p.factory=po(p.type)),E=ri(Ac);try{const L=er(!1),q=y();return er(L),function $f(s,a,d,p){d>=s.data.length&&(s.data[d]=null,s.blueprint[d]=null),a[d]=p}(d,On(),m,q),q}finally{ri(E)}}function Kv(s,a,d){const p=s+22,m=On(),y=Fi(m,p);return H_(m,p)?V_(m,Or(),a,y.transform,d,y):y.transform(d)}function Yv(s,a,d,p){const m=s+22,y=On(),E=Fi(y,m);return H_(y,m)?iC(y,Or(),a,E.transform,d,p,E):E.transform(d,p)}function H_(s,a){return s[1].data[a].pure}function Ey(s){return a=>{setTimeout(s,void 0,a)}}const lc=class Mx extends g.x{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,d,p){let m=a,y=d||(()=>null),E=p;if(a&&"object"==typeof a){const q=a;m=q.next?.bind(q),y=q.error?.bind(q),E=q.complete?.bind(q)}this.__isAsync&&(y=Ey(y),m&&(m=Ey(m)),E&&(E=Ey(E)));const L=super.subscribe({next:m,error:y,complete:E});
1return a instanceof e.w0&&a.add(L),L}};function Ty(){return this._results[Rc()]()}class Jv{constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const d=Rc(),p=Jv.prototype;p[d]||(p[d]=Ty)}get changes(){return this._changes||(this._changes=new lc)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,d){return this._results.reduce(a,d)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,d){const p=this;p.dirty=!1;const m=ds(a);(this._changesDetected=!function qc(s,a,d){if(s.length!==a.length)return!1;for(let p=0;p<s.length;p++){let m=s[p],y=a[p];if(d&&(m=d(m),y=d(y)),y!==m)return!1}return!0}(p._results,m,d))&&(p._results=m,p.length=m.length,p.last=m[this.length-1],p.first=m[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let lm=(()=>{class s{}return s.__NG_ELEMENT_ID__=rC,s})();const Ex=lm,Tx=class extends Ex{constructor(a,d,p){super(),this._declarationLView=a,this._declarationTContainer=d,this.elementRef=p}createEmbeddedView(a,d){const p=this._declarationTContainer.tViews,m=hh(this._declarationLView,p,a,16,null,p.declTNode,null,null,null,null,d||null);m[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(m[19]=E.createEmbeddedView(p)),uu(p,m,a),new mh(m)}};function rC(){return cm(so(),On())}function cm(s,a){return 4&s.type?new Tx(a,s,ru(s,a)):null}let um=(()=>{class s{}return s.__NG_ELEMENT_ID__=Oy,s})();function Oy(){return oC(so(),On())}const Qv=um,Uh=class extends Qv{constructor(a,d,p){super(),this._lContainer=a,this._hostTNode=d,this._hostLView=p}get element(){return ru(this._hostTNode,this._hostLView)}get injector(){return new ee(this._hostTNode,this._hostLView)}get parentInjector(){const a=ii(this._hostTNode,this._hostLView);if(Nr(a)){const d=Ei(a,this._hostLView),p=Xi(a);return new ee(d[1].data[p+8],d)}return new ee(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const d=Xv(this._lContainer);return null!==d&&d[a]||null}get length(){return this._lContainer.length-10}createEmbeddedView(a,d,p){let m,y;"number"==typeof p?m=p:null!=p&&(m=p.index,y=p.injector);const E=a.createEmbeddedView(d||{},y);return this.insert(E,m),E}createComponent(a,d,p,m,y){const E=a&&!function El(s){return"function"==typeof s}(a);let L;if(E)L=d;else{const et=d||{};L=et.index,p=et.injector,m=et.projectableNodes,y=et.environmentInjector||et.ngModuleRef}const q=E?a:new hu(Ie(a)),te=p||this.parentInjector;if(!y&&null==q.ngModule){const Lt=(E?te:this.parentInjector).get(Wu,null);Lt&&(y=Lt)}const Le=q.create(te,m,void 0,y);return this.insert(Le.hostView,L),Le}insert(a,d){const p=a._lView,m=p[1];if(function Dr(s){return ht(s[3])}(p)){const Le=this.indexOf(a);if(-1!==Le)this.detach(Le);else{const et=p[3],Lt=new Uh(et,et[6],et[3]);Lt.detach(Lt.indexOf(a))}}const y=this._adjustIndex(d),E=this._lContainer;!function mo(s,a,d,p){const m=10+p,y=d.length;p>0&&(d[m-1][4]=a),p<y-10?(a[4]=d[m],Su(d,10+p,a)):(d.push(a),a[4]=null),a[3]=d;const E=a[17];null!==E&&d!==E&&function Ws(s,a){const d=s[9];a[16]!==a[3][3][16]&&(s[2]=!0),null===d?s[9]=[a]:d.push(a)}(E,a);const L=a[19];null!==L&&L.insertView(s),a[2]|=64}(m,p,E,y);const L=Qc(y,E),q=p[11],te=zu(q,E[7]);return null!==te&&function vi(s,a,d,p,m,y){p[0]=m,p[6]=a,$d(s,p,d,1,m,y)}(m,E[6],q,p,te,L),a.attachToViewContainerRef(),Su(eb(E),y,a),a}move(a,d){return this.insert(a,d)}indexOf(a){const d=Xv(this._lContainer);return null!==d?d.indexOf(a):-1}remove(a){const d=this._adjustIndex(a,-1),p=gs(this._lContainer,d);p&&(_a(eb(this._lContainer),d),Hd(p[1],p))}detach(a){const d=this._adjustIndex(a,-1),p=gs(this._lContainer,d);return p&&null!=_a(eb(this._lContainer),d)?new mh(p):null}_adjustIndex(a,d=0){return a??this.length+d}};function Xv(s){return s[8]}function eb(s){return s[8]||(s[8]=[])}function oC(s,a){let d;const p=a[s.index];if(ht(p))d=p;else{let m;if(8&s.type)m=Qe(p);else{const y=a[11];m=y.createComment("");const E=Rn(s,a);Yl(y,zu(y,E),m,function vb(s,a){return s.nextSibling(a)}(y,E),!1)}a[s.index]=d=Ng(p,a,m,s),ph(a,d)}return new Uh(d,s,a)}class hp{constructor(a){this.queryList=a,this.matches=null}clone(){return new hp(this.queryList)}setDirty(){this.queryList.setDirty()}}class $_{constructor(a=[]){this.queries=a}createEmbeddedView(a){const d=a.queries;if(null!==d){const p=null!==a.contentQueries?a.contentQueries[0]:d.length,m=[];for(let y=0;y<p;y++){const E=d.getByIndex(y);m.push(this.queries[E.indexInDeclarationView].clone())}return new $_(m)}return null}insertView(a){this.dirtyQueriesWithMatches(a)}detachView(a){this.dirtyQueriesWithMatches(a)}dirtyQueriesWithMatches(a){for(let d=0;d<this.queries.length;d++)null!==Sy(a,d).matches&&this.queries[d].setDirty()}}class aC{constructor(a,d,p=null){this.predicate=a,this.flags=d,this.read=p}}class Py{constructor(a=[]){this.queries=a}elementStart(a,d){for(let p=0;p<this.queries.length;p++)this.queries[p].elementStart(a,d)}elementEnd(a){for(let d=0;d<this.queries.length;d++)this.queries[d].elementEnd(a)}embeddedTView(a){let d=null;for(let p=0;p<this.length;p++){const m=null!==d?d.length:0,y=this.getByIndex(p).embeddedTView(a,m);y&&(y.indexInDeclarationView=p,null!==d?d.push(y):d=[y])}return null!==d?new Py(d):null}template(a,d){for(let p=0;p<this.queries.length;p++)this.queries[p].template(a,d)}getByIndex(a){return this.queries[a]}get length(){return this.queries.length}track(a){this.queries.push(a)}}class Dy{constructor(a,d=-1){this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=d}elementStart(a,d){this.isApplyingToNode(d)&&this.matchTNode(a,d)}elementEnd(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)}template(a,d){this.elementStart(a,d)}embeddedTView(a,d){return this.isApplyingToNode(a)?(this.crossesNgTemplate=!0,this.addMatch(-a.index,d),new Dy(this.metadata)):null}isApplyingToNode(a){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const d=this._declarationNodeIndex;let p=a.parent;for(;null!==p&&8&p.type&&p.index!==d;)p=p.parent;return d===(null!==p?p.index:-1)}return this._appliesToNextNode}
1matchTNode(a,d){const p=this.metadata.predicate;if(Array.isArray(p))for(let m=0;m<p.length;m++){const y=p[m];this.matchTNodeWithReadOption(a,d,Ay(d,y)),this.matchTNodeWithReadOption(a,d,go(d,a,y,!1,!1))}else p===lm?4&d.type&&this.matchTNodeWithReadOption(a,d,-1):this.matchTNodeWithReadOption(a,d,go(d,a,p,!1,!1))}matchTNodeWithReadOption(a,d,p){if(null!==p){const m=this.metadata.read;if(null!==m)if(m===Qu||m===um||m===lm&&4&d.type)this.addMatch(d.index,-2);else{const y=go(d,a,m,!1,!1);null!==y&&this.addMatch(d.index,y)}else this.addMatch(d.index,p)}}addMatch(a,d){null===this.matches?this.matches=[a,d]:this.matches.push(a,d)}}function Ay(s,a){const d=s.localNames;if(null!==d)for(let p=0;p<d.length;p+=2)if(d[p]===a)return d[p+1];return null}function lC(s,a,d,p){return-1===d?function nb(s,a){return 11&s.type?ru(s,a):4&s.type?cm(s,a):null}(a,s):-2===d?function Ox(s,a,d){return d===Qu?ru(a,s):d===lm?cm(a,s):d===um?oC(a,s):void 0}(s,a,p):Fa(s,s[1],d,a)}function dm(s,a,d,p){const m=a[19].queries[p];if(null===m.matches){const y=s.data,E=d.matches,L=[];for(let q=0;q<E.length;q+=2){const te=E[q];L.push(te<0?null:lC(a,y[te],E[q+1],d.metadata.read))}m.matches=L}return m.matches}function cc(s,a,d,p){const m=s.queries.getByIndex(d),y=m.matches;if(null!==y){const E=dm(s,a,m,d);for(let L=0;L<y.length;L+=2){const q=y[L];if(q>0)p.push(E[L/2]);else{const te=y[L+1],Le=a[-q];for(let et=10;et<Le.length;et++){const Lt=Le[et];Lt[17]===Lt[3]&&cc(Lt[1],Lt,te,p)}if(null!==Le[9]){const et=Le[9];for(let Lt=0;Lt<et.length;Lt++){const nn=et[Lt];cc(nn[1],nn,te,p)}}}}}return p}function hm(s){const a=On(),d=Qi(),p=pr();Bi(p+1);const m=Sy(d,p);if(s.dirty&&function Zr(s){return 4==(4&s[2])}(a)===(2==(2&m.metadata.flags))){if(null===m.matches)s.reset([]);else{const y=m.crossesNgTemplate?cc(d,a,p,[]):dm(d,a,m,p);s.reset(y,Cf),s.notifyOnChanges()}return!0}return!1}function cC(s,a,d){const p=Qi();p.firstCreatePass&&(uC(p,new aC(s,a,d),-1),2==(2&a)&&(p.staticViewQueries=!0)),rb(p,On(),a)}function Iy(s,a,d,p){const m=Qi();if(m.firstCreatePass){const y=so();uC(m,new aC(a,d,p),y.index),function Ou(s,a){const d=s.contentQueries||(s.contentQueries=[]);a!==(d.length?d[d.length-1]:-1)&&d.push(s.queries.length-1,a)}(m,s),2==(2&d)&&(m.staticContentQueries=!0)}rb(m,On(),d)}function ib(){return function G_(s,a){return s[19].queries[a].queryList}(On(),pr())}function rb(s,a,d){const p=new Jv(4==(4&d));Og(s,a,p,p.destroy),null===a[19]&&(a[19]=new $_),a[19].queries.push(new hp(p))}function uC(s,a,d){null===s.queries&&(s.queries=new Py),s.queries.track(new Dy(a,d))}function Sy(s,a){return s.queries.getByIndex(a)}function dC(s,a){return cm(s,a)}function Id(...s){}const Nx=new io("Application Initializer");let jy=(()=>{class s{constructor(d){this.appInits=d,this.resolve=Id,this.reject=Id,this.initialized=!1,this.done=!1,this.donePromise=new Promise((p,m)=>{this.resolve=p,this.reject=m})}runInitializers(){if(this.initialized)return;const d=[],p=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let m=0;m<this.appInits.length;m++){const y=this.appInits[m]();if(Mh(y))d.push(y);else if(Hg(y)){const E=new Promise((L,q)=>{y.subscribe({complete:L,error:q})});d.push(E)}}Promise.all(d).then(()=>{p()}).catch(m=>{this.reject(m)}),0===d.length&&p(),this.initialized=!0}}return s.\u0275fac=function(d){return new(d||s)(fs(Nx,8))},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Hy=new io("AppId",{providedIn:"root",factory:function Fx(){return`${SC()}${SC()}${SC()}`}});function SC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lx=new io("Platform Initializer"),Y_=new io("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),J_=new io("appBootstrapListener"),Ux=new io("AnimationModuleType");let Ow=(()=>{class s{log(d){console.log(d)}warn(d){console.warn(d)}}return s.\u0275fac=function(d){return new(d||s)},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const $y=new io("LocaleId",{providedIn:"root",factory:()=>Ud($y,_n.Optional|_n.SkipSelf)||function Pw(){return typeof $localize<"u"&&$localize.locale||op}()}),Dw=new io("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Aw{constructor(a,d){this.ngModuleFactory=a,this.componentFactories=d}}let Bx=(()=>{class s{compileModuleSync(d){return new zv(d)}compileModuleAsync(d){return Promise.resolve(this.compileModuleSync(d))}compileModuleAndAllComponentsSync(d){const p=this.compileModuleSync(d),y=Aa(pt(d).declarations).reduce((E,L)=>{const q=Ie(L);return q&&E.push(new hu(q)),E},[]);return new Aw(p,y)}compileModuleAndAllComponentsAsync(d){return Promise.resolve(this.compileModuleAndAllComponentsSync(d))}clearCache(){}clearCacheFor(d){}getModuleId(d){}}return s.\u0275fac=function(d){return new(d||s)},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const qx=(()=>Promise.resolve(0))();function RC(s){typeof Zone>"u"?qx.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class Zc{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:d=!1,shouldCoalesceRunChangeDetection:p=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lc(!1),this.onMicrotaskEmpty=new lc(!1),this.onStable=new lc(!1),this.onError=ne
1w lc(!1),typeof Zone>"u")throw new We(908,!1);Zone.assertZonePatched();const m=this;if(m._nesting=0,m._outer=m._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const y=Zone.AsyncStackTaggingZoneSpec;m._inner=m._inner.fork(new y("Angular"))}Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!p&&d,m.shouldCoalesceRunChangeDetection=p,m.lastRequestAnimationFrameId=-1,m.nativeRequestAnimationFrame=function jx(){let s=O.requestAnimationFrame,a=O.cancelAnimationFrame;if(typeof Zone<"u"&&s&&a){const d=s[Zone.__symbol__("OriginalDelegate")];d&&(s=d);const p=a[Zone.__symbol__("OriginalDelegate")];p&&(a=p)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:a}}().nativeRequestAnimationFrame,function Rw(s){const a=()=>{!function $x(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(O,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Gy(s),s.isCheckStableRunning=!0,NC(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Gy(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(d,p,m,y,E,L)=>{try{return Gx(s),d.invokeTask(m,y,E,L)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===y.type||s.shouldCoalesceRunChangeDetection)&&a(),FC(s)}},onInvoke:(d,p,m,y,E,L,q)=>{try{return Gx(s),d.invoke(m,y,E,L,q)}finally{s.shouldCoalesceRunChangeDetection&&a(),FC(s)}},onHasTask:(d,p,m,y)=>{d.hasTask(m,y),p===m&&("microTask"==y.change?(s._hasPendingMicrotasks=y.microTask,Gy(s),NC(s)):"macroTask"==y.change&&(s.hasPendingMacrotasks=y.macroTask))},onHandleError:(d,p,m,y)=>(d.handleError(m,y),s.runOutsideAngular(()=>s.onError.emit(y)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zc.isInAngularZone())throw new We(909,!1)}static assertNotInAngularZone(){if(Zc.isInAngularZone())throw new We(909,!1)}run(a,d,p){return this._inner.run(a,d,p)}runTask(a,d,p,m){const y=this._inner,E=y.scheduleEventTask("NgZoneEvent: "+m,a,Hx,Id,Id);try{return y.runTask(E,d,p)}finally{y.cancelTask(E)}}runGuarded(a,d,p){return this._inner.runGuarded(a,d,p)}runOutsideAngular(a){return this._outer.run(a)}}const Hx={};function NC(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Gy(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Gx(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function FC(s){s._nesting--,NC(s)}class Nw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lc,this.onMicrotaskEmpty=new lc,this.onStable=new lc,this.onError=new lc}run(a,d,p){return a.apply(d,p)}runGuarded(a,d,p){return a.apply(d,p)}runOutsideAngular(a){return a()}runTask(a,d,p,m){return a.apply(d,p)}}const Wx=new io(""),LC=new io("");let Yy,Wy=(()=>{class s{constructor(d,p,m){this._ngZone=d,this.registry=p,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yy||(function Kx(s){Yy=s}(m),m.addToWindow(p)),this._watchAngularEvents(),d.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Zc.assertNotInAngularZone(),RC(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}
1decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())RC(()=>{for(;0!==this._callbacks.length;){let d=this._callbacks.pop();clearTimeout(d.timeoutId),d.doneCb(this._didWork)}this._didWork=!1});else{let d=this.getPendingTasks();this._callbacks=this._callbacks.filter(p=>!p.updateCb||!p.updateCb(d)||(clearTimeout(p.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(d=>({source:d.source,creationLocation:d.creationLocation,data:d.data})):[]}addCallback(d,p,m){let y=-1;p&&p>0&&(y=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==y),d(this._didWork,this.getPendingTasks())},p)),this._callbacks.push({doneCb:d,timeoutId:y,updateCb:m})}whenStable(d,p,m){if(m&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(d,p,m),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(d){this.registry.registerApplication(d,this)}unregisterApplication(d){this.registry.unregisterApplication(d)}findProviders(d,p,m){return[]}}return s.\u0275fac=function(d){return new(d||s)(fs(Zc),fs(Ky),fs(LC))},s.\u0275prov=ft({token:s,factory:s.\u0275fac}),s})(),Ky=(()=>{class s{constructor(){this._applications=new Map}registerApplication(d,p){this._applications.set(d,p)}unregisterApplication(d){this._applications.delete(d)}unregisterAllApplications(){this._applications.clear()}getTestability(d){return this._applications.get(d)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(d,p=!0){return Yy?.findTestabilityInTree(this,d,p)??null}}return s.\u0275fac=function(d){return new(d||s)},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})(),zh=null;const UC=new io("AllowMultipleToken"),Jy=new io("PlatformDestroyListeners");class Yx{constructor(a,d){this.name=a,this.token=d}}function BC(s,a,d=[]){const p=`Platform: ${a}`,m=new io(p);return(y=[])=>{let E=Qy();if(!E||E.injector.get(UC,!1)){const L=[...d,...y,{provide:m,useValue:!0}];s?s(L):function Jx(s){if(zh&&!zh.get(UC,!1))throw new We(400,!1);zh=s;const a=s.get(tw);(function Qx(s){const a=s.get(Lx,null);a&&a.forEach(d=>d())})(s)}(function ew(s=[],a){return Xl.create({name:a,providers:[{provide:Gp,useValue:"platform"},{provide:Jy,useValue:new Set([()=>zh=null])},...s]})}(L,p))}return function Xx(s){const a=Qy();if(!a)throw new We(401,!1);return a}()}}function Qy(){return zh?.get(tw)??null}let tw=(()=>{class s{constructor(d){this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(d,p){const m=function iw(s,a){let d;return d="noop"===s?new Nw:("zone.js"===s?void 0:s)||new Zc(a),d}(p?.ngZone,function nw(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!s||!s.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!s||!s.ngZoneRunCoalescing)||!1}}(p)),y=[{provide:Zc,useValue:m}];return m.run(()=>{const E=Xl.create({providers:y,parent:this.injector,name:d.moduleType.name}),L=d.create(E),q=L.injector.get(eh,null);if(!q)throw new We(402,!1);return m.runOutsideAngular(()=>{const te=m.onError.subscribe({next:Le=>{q.handleError(Le)}});L.onDestroy(()=>{e1(this._modules,L),te.unsubscribe()})}),function db(s,a,d){try{const p=d();return Mh(p)?p.catch(m=>{throw a.runOutsideAngular(()=>s.handleError(m)),m}):p}catch(p){throw a.runOutsideAngular(()=>s.handleError(p)),p}}(q,m,()=>{const te=L.injector.get(jy);return te.runInitializers(),te.donePromise.then(()=>(function ac(s){Zt(s,"Expected localeId to be defined"),"string"==typeof s&&(Nh=s.toLowerCase().replace(/_/g,"-"))}(L.injector.get($y,op)||op),this._moduleDoBootstrap(L),L))})})}bootstrapModule(d,p=[]){const m=Xy({},p);return function ZC(s,a,d){const p=new zv(d);return Promise.resolve(p)}(0,0,d).then(y=>this.bootstrapModuleFactory(y,m))}_moduleDoBootstrap(d){const p=d.injector.get(hb);if(d._bootstrapComponents.length>
10)d._bootstrapComponents.forEach(m=>p.bootstrap(m));else{if(!d.instance.ngDoBootstrap)throw new We(403,!1);d.instance.ngDoBootstrap(p)}this._modules.push(d)}onDestroy(d){this._destroyListeners.push(d)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new We(404,!1);this._modules.slice().forEach(p=>p.destroy()),this._destroyListeners.forEach(p=>p());const d=this._injector.get(Jy,null);d&&(d.forEach(p=>p()),d.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(d){return new(d||s)(fs(Xl))},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Xy(s,a){return Array.isArray(a)?a.reduce(Xy,s):{...s,...a}}let hb=(()=>{class s{constructor(d,p,m){this._zone=d,this._injector=p,this._exceptionHandler=m,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const y=new R.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),E=new R.y(L=>{let q;this._zone.runOutsideAngular(()=>{q=this._zone.onStable.subscribe(()=>{Zc.assertNotInAngularZone(),RC(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{Zc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{q.unsubscribe(),te.unsubscribe()}});this.isStable=(0,me.T)(y,E.pipe((0,ve.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(d,p){const m=d instanceof Oc;if(!this._injector.get(jy).done)throw!m&&en(d),new We(405,false);let E;E=m?d:this._injector.get(Ju).resolveComponentFactory(d),this.componentTypes.push(E.componentType);const L=function Fw(s){return s.isBoundToModule}(E)?void 0:this._injector.get(am),te=E.create(Xl.NULL,[],p||E.selector,L),Le=te.location.nativeElement,et=te.injector.get(Wx,null);return et?.registerApplication(Le),te.onDestroy(()=>{this.detachView(te.hostView),e1(this.components,te),et?.unregisterApplication(Le)}),this._loadComponent(te),te}tick(){if(this._runningTick)throw new We(101,!1);try{this._runningTick=!0;for(let d of this._views)d.detectChanges()}catch(d){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(d))}finally{this._runningTick=!1}}attachView(d){const p=d;this._views.push(p),p.attachToAppRef(this)}detachView(d){const p=d;e1(this._views,p),p.detachFromAppRef()}_loadComponent(d){this.attachView(d.hostView),this.tick(),this.components.push(d),this._injector.get(J_,[]).concat(this._bootstrapListeners).forEach(m=>m(d))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(d=>d()),this._views.slice().forEach(d=>d.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(d){return this._destroyListeners.push(d),()=>e1(this._destroyListeners,d)}destroy(){if(this._destroyed)throw new We(406,!1);const d=this._injector;d.destroy&&!d.destroyed&&d.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return s.\u0275fac=function(d){return new(d||s)(fs(Zc),fs(Wu),fs(eh))},s.\u0275prov=ft({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function e1(s,a){const d=s.indexOf(a);d>-1&&s.splice(d,1)}let zC=!0,VC=!1;function ow(){return VC=!0,zC}function sw(){if(VC)throw new Error("Cannot enable prod mode after platform setup.");zC=!1}let Zw=(()=>{class s{}return s.__NG_ELEMENT_ID__=Bw,s})();function Bw(s){return function zw(s,a,d){if(we(s)&&!d){const p=Si(s.index,a);return new mh(p,p)}return 47&s.type?new mh(a[16],a):null}(so(),On(),16==(16&s))}class uw{constructor(){}supports(a){return Us(a)}create(a){return new Gw(a)}}const $w=(s,a)=>a;class Gw{constructor(a){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||$w}forEachItem(a){let d;for(d=this._itHead;null!==d;d=d._next)a(d)}forEachOperation(a){let d=this._itHead,p=this._removalsHead,m=0,y=null;for(;d||p;
vendor: 5,977 bytes, line 1
1){const E=!p||d&&d.currentIndex<hw(p,m,y)?d:p,L=hw(E,m,y),q=E.currentIndex;if(E===p)m--,p=p._nextRemoved;else if(d=d._next,null==E.previousIndex)m++;else{y||(y=[]);const te=L-m,Le=q-m;if(te!=Le){for(let Lt=0;Lt<te;Lt++){const nn=Lt<y.length?y[Lt]:y[Lt]=0,Dn=nn+Lt;Le<=Dn&&Dn<te&&(y[Lt]=nn+1)}y[E.previousIndex]=Le-te}}L!==q&&a(E,L,q)}}forEachPreviousItem(a){let d;for(d=this._previousItHead;null!==d;d=d._nextPrevious)a(d)}forEachAddedItem(a){let d;for(d=this._additionsHead;null!==d;d=d._nextAdded)a(d)}forEachMovedItem(a){let d;for(d=this._movesHead;null!==d;d=d._nextMoved)a(d)}forEachRemovedItem(a){let d;for(d=this._removalsHead;null!==d;d=d._nextRemoved)a(d)}forEachIdentityChange(a){let d;for(d=this._identityChangesHead;null!==d;d=d._nextIdentityChange)a(d)}diff(a){if(null==a&&(a=[]),!Us(a))throw new We(900,!1);return this.check(a)?this:null}onDestroy(){}check(a){this._reset();let m,y,E,d=this._itHead,p=!1;if(Array.isArray(a)){this.length=a.length;for(let L=0;L<this.length;L++)y=a[L],E=this._trackByFn(L,y),null!==d&&Object.is(d.trackById,E)?(p&&(d=this._verifyReinsertion(d,y,E,L)),Object.is(d.item,y)||this._addIdentityChange(d,y)):(d=this._mismatch(d,y,E,L),p=!0),d=d._next}else m=0,function vh(s,a){if(Array.isArray(s))for(let d=0;d<s.length;d++)a(s[d]);else{const d=s[Rc()]();let p;for(;!(p=d.next()).done;)a(p.value)}}(a,L=>{E=this._trackByFn(m,L),null!==d&&Object.is(d.trackById,E)?(p&&(d=this._verifyReinsertion(d,L,E,m)),Object.is(d.item,L)||this._addIdentityChange(d,L)):(d=this._mismatch(d,L,E,m),p=!0),d=d._next,m++}),this.length=m;return this._truncate(d),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,d,p,m){let y;return null===a?y=this._itTail:(y=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(p,null))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._reinsertAfter(a,y,m)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(p,m))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._moveAfter(a,y,m)):a=this._addAfter(new Ww(d,p),y,m),a}_verifyReinsertion(a,d,p,m){let y=null===this._unlinkedRecords?null:this._unlinkedRecords.get(p,null);return null!==y?a=this._reinsertAfter(y,a._prev,m):a.currentIndex!=m&&(a.currentIndex=m,this._addToMoves(a,m)),a}_truncate(a){for(;null!==a;){const d=a._next;this._addToRemovals(this._unlink(a)),a=d}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(a,d,p){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const m=a._prevRemoved,y=a._nextRemoved;return null===m?this._removalsHead=y:m._nextRemoved=y,null===y?this._removalsTail=m:y._prevRemoved=m,this._insertAfter(a,d,p),this._addToMoves(a,p),a}_moveAfter(a,d,p){return this._unlink(a),this._insertAfter(a,d,p),this._addToMoves(a,p),a}_addAfter(a,d,p){return this._insertAfter(a,d,p),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,d,p){const m=null===d?this._itHead:d._next;return a._next=m,a._prev=d,null===m?this._itTail=a:m._prev=a,null===d?this._itHead=a:d._next=a,null===this._linkedRecords&&(this._linkedRecords=new dw),this._linkedRecords.put(a),a.currentIndex=p,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const d=a._prev,p=a._next;return null===d?this._itHead=p:d._next=p,null===p?this._itTail=d:p._prev=d,a}_addToMoves(a,d){return a.previousIndex===d||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new dw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,d){return a.item=d,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class Ww{constructor(a,d){this.item=a,this.trackById=d,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Kw{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,d){let p;for(p=this._head;null!==p;p=p._nextDup)if((null===d||d<=p.currentIndex)&&Object.is(p.trackById,a))return p;return null}remove(a){const d=a._prevDup,p=a._nextDup;return null===d?this._head=p:d._nextDup=p,null===p?this._tail=d:p._prevDup=d,null===this._head}}class dw{constructor(){this.map=new Map}put(a){const d=a.trackById;let p=this.map.get(d);p||(p=new Kw,this.map.set(d,p)),p.add(a)}get(a,d){const m=this.map.get(a);return m?m.get(a,d):null}remove(a){const d=a.trackById;
1return this.map.get(d).remove(a)&&this.map.delete(d),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hw(s,a,d){const p=s.previousIndex;if(null===p)return p;let m=0;return d&&p<d.length&&(m=d[p]),p+a+m}class fw{constructor(){}supports(a){return a instanceof Map||qf(a)}create(){return new Yw}}class Yw{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(a){let d;for(d=this._mapHead;null!==d;d=d._next)a(d)}forEachPreviousItem(a){let d;for(d=this._previousMapHead;null!==d;d=d._nextPrevious)a(d)}forEachChangedItem(a){let d;for(d=this._changesHead;null!==d;d=d._nextChanged)a(d)}forEachAddedItem(a){let d;for(d=this._additionsHead;null!==d;d=d._nextAdded)a(d)}forEachRemovedItem(a){let d;for(d=this._removalsHead;null!==d;d=d._nextRemoved)a(d)}diff(a){if(a){if(!(a instanceof Map||qf(a)))throw new We(900,!1)}else a=new Map;return this.check(a)?this:null}onDestroy(){}check(a){this._reset();let d=this._mapHead;if(this._appendAfter=null,this._forEach(a,(p,m)=>{if(d&&d.key===m)this._maybeAddToChanges(d,p),this._appendAfter=d,d=d._next;else{const y=this._getOrCreateRecordForKey(m,p);d=this._insertBeforeOrAppend(d,y)}}),d){d._prev&&(d._prev._next=null),this._removalsHead=d;for(let p=d;null!==p;p=p._nextRemoved)p===this._mapHead&&(this._mapHead=null),this._records.delete(p.key),p._nextRemoved=p._next,p.previousValue=p.currentValue,p.currentValue=null,p._prev=null,p._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,d){if(a){const p=a._prev;return d._next=a,d._prev=p,a._prev=d,p&&(p._next=d),a===this._mapHead&&(this._mapHead=d),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=d,d._prev=this._appendAfter):this._mapHead=d,this._appendAfter=d,null}_getOrCreateRecordForKey(a,d){if(this._records.has(a)){const m=this._records.get(a);this._maybeAddToChanges(m,d);const y=m._prev,E=m._next;return y&&(y._next=E),E&&(E._prev=y),m._next=null,m._prev=null,m}const p=new Jw(a);return this._records.set(a,p),p.currentValue=d,this._addToAdditions(p),p}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,d){Object.is(d,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=d,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,d){a instanceof Map?a.forEach(d):Object.keys(a).forEach(p=>d(a[p],p))}}class Jw{constructor(a){this.key=a,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pw(){return new $C([new uw])}let $C=(()=>{class s{constructor(d){this.factories=d}static create(d,p){if(null!=p){const m=p.factories.slice();d=d.concat(m)}return new s(d)}static extend(d){return{provide:s,useFactory:p=>s.create(d,p||pw()),deps:[[s,new jo,new Jr]]}}find(d){const p=this.factories.find(m=>m.supports(d));if(null!=p)return p;throw new We(901,!1)}}return s.\u0275prov=ft({token:s,providedIn:"root",factory:pw}),s})();function gw(){return new GC([new fw])}let GC=(()=>{class s{constructor(d){this.factories=d}static create(d,p){if(p){const m=p.factories.slice();d=d.concat(m)}return new s(d)}static extend(d){return{provide:s,useFactory:p=>s.create(d,p||gw()),deps:[[s,new jo,new Jr]]}}find(d){const p=this.factories.find(m=>m.supports(d));if(p)return p;throw new We(901,!1)}}return s.\u0275prov=ft({token:s,providedIn:"root",factory:gw}),s})();const e2=BC(null,"core",[]);let pb=(()=>{class s{constructor(d){}}return s.\u0275fac=function(d){return new(d||s)(fs(hb))},s.\u0275mod=Ii({type:s}),s.\u0275inj=Dt({}),s})();function WC(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}},4006:(wn,bt,D)=>{"use strict";D.d(bt,{EJ:()=>Io,F:()=>Bt,Fj:()=>Mt,JJ:()=>_n,JL:()=>ui,JU:()=>se,Kr:()=>ks,NI:()=>Ne,On:()=>Mi,Q7:()=>hi,UX:()=>Yo,Wl:()=>x,YN:()=>ha,_Y:()=>Ti,a5:()=>Wn,c5:()=>br,cw:()=>Ie,kI:()=>ot,oH:()=>Zs,qQ:()=>Ht,qu:()=>Qi,sg:()=>Co,u:()=>to,u5:()=>ur,wV:()=>Ji});var g=D(4650),e=D(6895),R=D(8996),me=D(4128),ve=D(4004);let ae=(()=>{class J{constructor(H,Se){this._renderer=H,this._elementRef=Se,this.onChange=ln=>{},this.onTouched=()=>{}}setProperty(H,Se){this._renderer.setProperty(this._elementRef.nativeElement,H,Se)}registerOnTouched(H){this.onTouched=H}registerOnChange(H){this.onChange=H}setDisabledState(H){this.setProperty("disabled",H)}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(g.Qsj),g.Y36(g.SBq))},J.\u0275dir=g.lG2({type:J}),J})(),Te=(()=>{class J extends ae{}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,features:[g.qOj]}),J})();const se=new g.OlP("NgValueAccessor"),z={provide:se,useExisting:(0,g.Gpc)(()=>x),multi:!0};let x=(()=>{class J extends Te{writeValue(H){this.setProperty("checked",H)}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(H,Se){1&H&&g.NdJ("change",function(pi){return Se.onChange(pi.target.checked)})("blur",function(){return Se.onTouched()})},features:[g._Bn([z]),g.qOj]}),J})();const G={provide:se,useExisting:(0,g.Gpc)(()=>Mt),multi:!0},dt=new g.OlP("CompositionEventMode");let Mt=(()=>{class J extends ae{constructor(H,Se,ln){super(H,Se),this._compositionMode=ln,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function de(){const J=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(J.toLowerCase())}())}writeValue(H){this.setProperty("value",H??"")}_handleInput(H){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(H)}_compositionStart(){this._composing=!0}_compositionEnd(H){this._composing=!1,this._compositionMode&&this.onChange(H)}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(dt,8))},J.\u0275dir=g.lG2({type:J,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(H,Se){1&H&&g.NdJ("input",function(pi){return Se._handleInput(pi.target.value)})("blur",function(){return Se.onTouched()})("compositionstart",function(){return Se._compositionStart()})("compositionend",function(pi){return Se._compositionEnd(pi.target.value)})},features:[g._Bn([G]),g.qOj]}),J})();function At(J){return null==J||("string"==typeof J||Array.isArray(J))&&0===J.length}function qe(J){return null!=J&&"number"==typeof J.length}const lt=new g.OlP("NgValidators"),sn=new g.OlP("NgAsyncValidators"),Xt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ot{static min(W){return fe(W)}static max(W){return function ut(J){return W=>{if(At(W.value)||At(J))return null;const H=parseFloat(W.value);return!isNaN(H)&&H>J?{max:{max:J,actual:W.value}}:null}}(W)}static required(W){return Ye(W)}static requiredTrue(W){return function it(J){return!0===J.value?null:{required:!0}}(W)}static email(W){return function ze(J){return At(J.value)||Xt.test(J.value)?null:{email:!0}}(W)}static minLength(W){return function xt(J){return W=>At(W.value)||!qe(W.value)?null:W.value.length<J?{minlength:{requiredLength:J,actualLength:W.value.length}}:null}(W)}static maxLength(W){return function mt(J){return W=>qe(W.value)&&W.value.length>J?{maxlength:{requiredLength:J,actualLength:W.value.length}}:null}(W)}static pattern(W){return zt(W)}static nullValidator(W){return null}static compose(W){return St(W)}static composeAsync(W){return je(W)}}function fe(J){return W=>{if(At(W.value)||At(J))return null;const H=parseFloat(W.value);return!isNaN(H)&&H<J?{min:{min:J,actual:W.value}}:null}}function Ye(J){return At(J.value)?{required:!0}:null}function zt(J){if(!J)return pn;let W,H;return"string"==typeof J?(H="","^"!==J.charAt(0)&&(H+="^"),H+=J,"$"!==J.charAt(J.length-1)&&(H+="$"),W=new RegExp(H)):(H=J.toString(),W=J),Se=>{if(At(Se.value))return null;const ln=Se.value;return W.test(ln)?null:{pattern:{requiredPattern:H,actualValue:ln}}}}function pn(J){return null}function $t(J){return null!=J}function Vn(J){return(0,g.QGY)(J)?(0,R.D)(J):J}function Ut(J){let W={};return J.forEach(H=>{W=null!=H?{...W,...H}:W}),0===Object.keys(W).length?null:W}function gn(J,W){return W.map(H=>H(J))}function Zt(J){return J.map(W=>function tt(J){return!J.validate}(W)?W:H=>W.validate(H))}function St(J){if(!J)return null;const W=J.filter($t);return 0==W.length?null:function(H){return Ut(gn(H,W))}}function $e(J){return null!=J?St(Zt(J)):null}function je(J){if(!J)return null;const W=J.filter($t);return 0==W.length?null:function(H){const Se=gn(H,W).map(Vn);return(0,me.D)(Se).pipe((0,ve.U)(Ut))}}function ie(J){return null!=J?je(Zt(J)):null}function ft(J,W){return null===J?[W]:Array.isArray(J)?[...J,W]:[J,W]}function Wt(J){return J._rawValidators}function Dt(J){return J._rawAsyncValidators}function hn(J){return J?Array.isArray(J)?J:[J]:[]}function Gn(J,W){return Array.isArray(J)?J.includes(W):J===W}function qn(J,W){const H=hn(W);return hn(J).forEach(ln=>{Gn(H,ln)||H.push(ln)}),H}function kn(J,W){return hn(W).filter(H=>!Gn(J,H))}class ai{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(W){this._rawValidators=W||[],this._composedValidatorFn=$e(this._rawValidators)}_setAsyncValidators(W){this._rawAsyncValidators=W||[],this._composedAsyncValidatorFn=ie(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(W){this._onDestroyCallbacks.push(W)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(W=>W()),this._onDestroyCallbacks=[]}reset(W){this.control&&this.control.reset(W)}hasError(W,H){return!!this.control&&this.control.hasError(W,H)}getError(W,H){return this.control?this.control.getError(W,H):null}}class An extends ai{get formDirective(){return null}get path(){return null}}
1class Wn extends ai{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ln{constructor(W){this._cd=W}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let _n=(()=>{class J extends Ln{constructor(H){super(H)}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(Wn,2))},J.\u0275dir=g.lG2({type:J,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(H,Se){2&H&&g.ekj("ng-untouched",Se.isUntouched)("ng-touched",Se.isTouched)("ng-pristine",Se.isPristine)("ng-dirty",Se.isDirty)("ng-valid",Se.isValid)("ng-invalid",Se.isInvalid)("ng-pending",Se.isPending)},features:[g.qOj]}),J})(),ui=(()=>{class J extends Ln{constructor(H){super(H)}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(An,10))},J.\u0275dir=g.lG2({type:J,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(H,Se){2&H&&g.ekj("ng-untouched",Se.isUntouched)("ng-touched",Se.isTouched)("ng-pristine",Se.isPristine)("ng-dirty",Se.isDirty)("ng-valid",Se.isValid)("ng-invalid",Se.isInvalid)("ng-pending",Se.isPending)("ng-submitted",Se.isSubmitted)},features:[g.qOj]}),J})();const Ee="VALID",V="INVALID",_e="PENDING",Tt="DISABLED";function un(J){return(qi(J)?J.validators:J)||null}function Yn(J){return Array.isArray(J)?$e(J):J||null}function Li(J,W){return(qi(W)?W.asyncValidators:J)||null}function Ii(J){return Array.isArray(J)?ie(J):J||null}function qi(J){return null!=J&&!Array.isArray(J)&&"object"==typeof J}function at(J,W,H){const Se=J.controls;if(!(W?Object.keys(Se):Se).length)throw new g.vHH(1e3,"");if(!Se[H])throw new g.vHH(1001,"")}function Xe(J,W,H){J._forEachChild((Se,ln)=>{if(void 0===H[ln])throw new g.vHH(1002,"")})}class Re{constructor(W,H){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=W,this._rawAsyncValidators=H,this._composedValidatorFn=Yn(this._rawValidators),this._composedAsyncValidatorFn=Ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(W){this._rawValidators=this._composedValidatorFn=W}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(W){this._rawAsyncValidators=this._composedAsyncValidatorFn=W}get parent(){return this._parent}get valid(){return this.status===Ee}get invalid(){return this.status===V}get pending(){return this.status==_e}get disabled(){return this.status===Tt}get enabled(){return this.status!==Tt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(W){this._rawValidators=W,this._composedValidatorFn=Yn(W)}setAsyncValidators(W){this._rawAsyncValidators=W,this._composedAsyncValidatorFn=Ii(W)}addValidators(W){this.setValidators(qn(W,this._rawValidators))}addAsyncValidators(W){this.setAsyncValidators(qn(W,this._rawAsyncValidators))}removeValidators(W){this.setValidators(kn(W,this._rawValidators))}removeAsyncValidators(W){this.setAsyncValidators(kn(W,this._rawAsyncValidators))}hasValidator(W){return Gn(this._rawValidators,W)}hasAsyncValidator(W){return Gn(this._rawAsyncValidators,W)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(W={}){this.touched=!0,this._parent&&!W.onlySelf&&this._parent.markAsTouched(W)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(W=>W.markAllAsTouched())}markAsUntouched(W={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(H=>{H.markAsUntouched({onlySelf:!0})}),this._parent&&!W.onlySelf&&this._parent._updateTouched(W)}markAsDirty(W={}){this.pristine=!1,this._parent&&!W.onlySelf&&this._parent.markAsDirty(W)}markAsPristine(W={}
vendor: 4,174 bytes, line 1
1){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(H=>{H.markAsPristine({onlySelf:!0})}),this._parent&&!W.onlySelf&&this._parent._updatePristine(W)}markAsPending(W={}){this.status=_e,!1!==W.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!W.onlySelf&&this._parent.markAsPending(W)}disable(W={}){const H=this._parentMarkedDirty(W.onlySelf);this.status=Tt,this.errors=null,this._forEachChild(Se=>{Se.disable({...W,onlySelf:!0})}),this._updateValue(),!1!==W.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...W,skipPristineCheck:H}),this._onDisabledChange.forEach(Se=>Se(!0))}enable(W={}){const H=this._parentMarkedDirty(W.onlySelf);this.status=Ee,this._forEachChild(Se=>{Se.enable({...W,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:W.emitEvent}),this._updateAncestors({...W,skipPristineCheck:H}),this._onDisabledChange.forEach(Se=>Se(!1))}_updateAncestors(W){this._parent&&!W.onlySelf&&(this._parent.updateValueAndValidity(W),W.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(W){this._parent=W}getRawValue(){return this.value}updateValueAndValidity(W={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ee||this.status===_e)&&this._runAsyncValidator(W.emitEvent)),!1!==W.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!W.onlySelf&&this._parent.updateValueAndValidity(W)}_updateTreeValidity(W={emitEvent:!0}){this._forEachChild(H=>H._updateTreeValidity(W)),this.updateValueAndValidity({onlySelf:!0,emitEvent:W.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tt:Ee}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(W){if(this.asyncValidator){this.status=_e,this._hasOwnPendingAsyncValidator=!0;const H=Vn(this.asyncValidator(this));this._asyncValidationSubscription=H.subscribe(Se=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Se,{emitEvent:W})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(W,H={}){this.errors=W,this._updateControlsErrors(!1!==H.emitEvent)}get(W){let H=W;return null==H||(Array.isArray(H)||(H=H.split(".")),0===H.length)?null:H.reduce((Se,ln)=>Se&&Se._find(ln),this)}getError(W,H){const Se=H?this.get(H):this;return Se&&Se.errors?Se.errors[W]:null}hasError(W,H){return!!this.getError(W,H)}get root(){let W=this;for(;W._parent;)W=W._parent;return W}_updateControlsErrors(W){this.status=this._calculateStatus(),W&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(W)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?Tt:this.errors?V:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_e)?_e:this._anyControlsHaveStatus(V)?V:Ee}_anyControlsHaveStatus(W){return this._anyControls(H=>H.status===W)}_anyControlsDirty(){return this._anyControls(W=>W.dirty)}_anyControlsTouched(){return this._anyControls(W=>W.touched)}_updatePristine(W={}){this.pristine=!this._anyControlsDirty(),this._parent&&!W.onlySelf&&this._parent._updatePristine(W)}_updateTouched(W={}){this.touched=this._anyControlsTouched(),this._parent&&!W.onlySelf&&this._parent._updateTouched(W)}_registerOnCollectionChange(W){this._onCollectionChange=W}_setUpdateStrategy(W){qi(W)&&null!=W.updateOn&&(this._updateOn=W.updateOn)}_parentMarkedDirty(W){return!W&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(W){return null}}class Ie extends Re{constructor(W,H,Se){super(un(H),Li(Se,H)),this.controls=W,this._initObservables(),this._setUpdateStrategy(H),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(W,H){return this.controls[W]?this.controls[W]:(this.controls[W]=H,H.setParent(this),H._registerOnCollectionChange(this._onCollectionChange),H)}addControl(W,H,Se={}
vendor: 4,850 bytes, line 1
1){this.registerControl(W,H),this.updateValueAndValidity({emitEvent:Se.emitEvent}),this._onCollectionChange()}removeControl(W,H={}){this.controls[W]&&this.controls[W]._registerOnCollectionChange(()=>{}),delete this.controls[W],this.updateValueAndValidity({emitEvent:H.emitEvent}),this._onCollectionChange()}setControl(W,H,Se={}){this.controls[W]&&this.controls[W]._registerOnCollectionChange(()=>{}),delete this.controls[W],H&&this.registerControl(W,H),this.updateValueAndValidity({emitEvent:Se.emitEvent}),this._onCollectionChange()}contains(W){return this.controls.hasOwnProperty(W)&&this.controls[W].enabled}setValue(W,H={}){Xe(this,0,W),Object.keys(W).forEach(Se=>{at(this,!0,Se),this.controls[Se].setValue(W[Se],{onlySelf:!0,emitEvent:H.emitEvent})}),this.updateValueAndValidity(H)}patchValue(W,H={}){null!=W&&(Object.keys(W).forEach(Se=>{const ln=this.controls[Se];ln&&ln.patchValue(W[Se],{onlySelf:!0,emitEvent:H.emitEvent})}),this.updateValueAndValidity(H))}reset(W={},H={}){this._forEachChild((Se,ln)=>{Se.reset(W[ln],{onlySelf:!0,emitEvent:H.emitEvent})}),this._updatePristine(H),this._updateTouched(H),this.updateValueAndValidity(H)}getRawValue(){return this._reduceChildren({},(W,H,Se)=>(W[Se]=H.getRawValue(),W))}_syncPendingControls(){let W=this._reduceChildren(!1,(H,Se)=>!!Se._syncPendingControls()||H);return W&&this.updateValueAndValidity({onlySelf:!0}),W}_forEachChild(W){Object.keys(this.controls).forEach(H=>{const Se=this.controls[H];Se&&W(Se,H)})}_setUpControls(){this._forEachChild(W=>{W.setParent(this),W._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(W){for(const[H,Se]of Object.entries(this.controls))if(this.contains(H)&&W(Se))return!0;return!1}_reduceValue(){return this._reduceChildren({},(H,Se,ln)=>((Se.enabled||this.disabled)&&(H[ln]=Se.value),H))}_reduceChildren(W,H){let Se=W;return this._forEachChild((ln,pi)=>{Se=H(Se,ln,pi)}),Se}_allControlsDisabled(){for(const W of Object.keys(this.controls))if(this.controls[W].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(W){return this.controls.hasOwnProperty(W)?this.controls[W]:null}}class en extends Ie{}function Gt(J,W){return[...W.path,J]}function Ce(J,W){Nt(J,W),W.valueAccessor.writeValue(J.value),J.disabled&&W.valueAccessor.setDisabledState?.(!0),function Nn(J,W){W.valueAccessor.registerOnChange(H=>{J._pendingValue=H,J._pendingChange=!0,J._pendingDirty=!0,"change"===J.updateOn&&Ft(J,W)})}(J,W),function bn(J,W){const H=(Se,ln)=>{W.valueAccessor.writeValue(Se),ln&&W.viewToModelUpdate(Se)};J.registerOnChange(H),W._registerOnDestroy(()=>{J._unregisterOnChange(H)})}(J,W),function kt(J,W){W.valueAccessor.registerOnTouched(()=>{J._pendingTouched=!0,"blur"===J.updateOn&&J._pendingChange&&Ft(J,W),"submit"!==J.updateOn&&J.markAsTouched()})}(J,W),function nt(J,W){if(W.valueAccessor.setDisabledState){const H=Se=>{W.valueAccessor.setDisabledState(Se)};J.registerOnDisabledChange(H),W._registerOnDestroy(()=>{J._unregisterOnDisabledChange(H)})}}(J,W)}function Ue(J,W,H=!0){const Se=()=>{};W.valueAccessor&&(W.valueAccessor.registerOnChange(Se),W.valueAccessor.registerOnTouched(Se)),mn(J,W),J&&(W._invokeOnDestroyCallbacks(),J._registerOnCollectionChange(()=>{}))}function ue(J,W){J.forEach(H=>{H.registerOnValidatorChange&&H.registerOnValidatorChange(W)})}function Nt(J,W){const H=Wt(J);null!==W.validator?J.setValidators(ft(H,W.validator)):"function"==typeof H&&J.setValidators([H]);const Se=Dt(J);null!==W.asyncValidator?J.setAsyncValidators(ft(Se,W.asyncValidator)):"function"==typeof Se&&J.setAsyncValidators([Se]);const ln=()=>J.updateValueAndValidity();ue(W._rawValidators,ln),ue(W._rawAsyncValidators,ln)}function mn(J,W){let H=!1;if(null!==J){if(null!==W.validator){const ln=Wt(J);if(Array.isArray(ln)&&ln.length>0){const pi=ln.filter(Hi=>Hi!==W.validator);pi.length!==ln.length&&(H=!0,J.setValidators(pi))}}if(null!==W.asyncValidator){const ln=Dt(J);if(Array.isArray(ln)&&ln.length>0){const pi=ln.filter(Hi=>Hi!==W.asyncValidator);pi.length!==ln.length&&(H=!0,J.setAsyncValidators(pi))}}}const Se=()=>{};return ue(W._rawValidators,Se),ue(W._rawAsyncValidators,Se),H}function Ft(J,W){J._pendingDirty&&J.markAsDirty(),J.setValue(J._pendingValue,{emitModelToViewChange:!1}),W.viewToModelUpdate(J._pendingValue),J._pendingChange=!1}function vn(J,W){Nt(J,W)}function fr(J,W){if(!J.hasOwnProperty("model"))return!1;const H=J.model;return!!H.isFirstChange()||!Object.is(W,H.currentValue)}function Yi(J,W){J._syncPendingControls(),W.forEach(H=>{const Se=H.control;"submit"===Se.updateOn&&Se._pendingChange&&(H.viewToModelUpdate(Se._pendingValue),Se._pendingChange=!1)})}function Zi(J,W){if(!W)return null;let H,Se,ln;return Array.isArray(W),W.forEach(pi=>{pi.constructor===Mt?H=pi:function xr(J){return Object.getPrototypeOf(J.constructor)===Te}(pi)?Se=pi:ln=pi}
1),ln||Se||H||null}const jr={provide:An,useExisting:(0,g.Gpc)(()=>Bt)},Xr=(()=>Promise.resolve())();let Bt=(()=>{class J extends An{constructor(H,Se){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new Ie({},$e(H),ie(Se))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(H){Xr.then(()=>{const Se=this._findContainer(H.path);H.control=Se.registerControl(H.name,H.control),Ce(H.control,H),H.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(H)})}getControl(H){return this.form.get(H.path)}removeControl(H){Xr.then(()=>{const Se=this._findContainer(H.path);Se&&Se.removeControl(H.name),this._directives.delete(H)})}addFormGroup(H){Xr.then(()=>{const Se=this._findContainer(H.path),ln=new Ie({});vn(ln,H),Se.registerControl(H.name,ln),ln.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(H){Xr.then(()=>{const Se=this._findContainer(H.path);Se&&Se.removeControl(H.name)})}getFormGroup(H){return this.form.get(H.path)}updateModel(H,Se){Xr.then(()=>{this.form.get(H.path).setValue(Se)})}setValue(H){this.control.setValue(H)}onSubmit(H){return this.submitted=!0,Yi(this.form,this._directives),this.ngSubmit.emit(H),"dialog"===H?.target?.method}onReset(){this.resetForm()}resetForm(H){this.form.reset(H),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(H){return H.pop(),H.length?this.form.get(H):this.form}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(lt,10),g.Y36(sn,10))},J.\u0275dir=g.lG2({type:J,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(H,Se){1&H&&g.NdJ("submit",function(pi){return Se.onSubmit(pi)})("reset",function(){return Se.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([jr]),g.qOj]}),J})();function he(J,W){const H=J.indexOf(W);H>-1&&J.splice(H,1)}function ne(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}const Ne=class extends Re{constructor(W=null,H,Se){super(un(H),Li(Se,H)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(W),this._setUpdateStrategy(H),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qi(H)&&(H.nonNullable||H.initialValueIsDefault)&&(this.defaultValue=ne(W)?W.value:W)}setValue(W,H={}){this.value=this._pendingValue=W,this._onChange.length&&!1!==H.emitModelToViewChange&&this._onChange.forEach(Se=>Se(this.value,!1!==H.emitViewToModelChange)),this.updateValueAndValidity(H)}patchValue(W,H={}){this.setValue(W,H)}reset(W=this.defaultValue,H={}){this._applyFormState(W),this.markAsPristine(H),this.markAsUntouched(H),this.setValue(this.value,H),this._pendingChange=!1}_updateValue(){}_anyControls(W){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(W){this._onChange.push(W)}_unregisterOnChange(W){he(this._onChange,W)}registerOnDisabledChange(W){this._onDisabledChange.push(W)}_unregisterOnDisabledChange(W){he(this._onDisabledChange,W)}_forEachChild(W){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(W){ne(W)?(this.value=this._pendingValue=W.value,W.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=W}},Mn={provide:Wn,useExisting:(0,g.Gpc)(()=>Mi)},Jn=(()=>Promise.resolve())();let Mi=(()=>{class J extends Wn{constructor(H,Se,ln,pi,Hi){super(),this._changeDetectorRef=Hi,this.control=new Ne,this._registered=!1,this.update=new g.vpe,this._parent=H,this._setValidators(Se),this._setAsyncValidators(ln),this.valueAccessor=Zi(0,pi)}ngOnChanges(H){if(this._checkForErrors(),!this._registered||"name"in H){if(this._registered&&(this._checkName(),this.formDirective)){const Se=H.name.previousValue;this.formDirective.removeControl({name:Se,path:this._getPath(Se)})}this._setUpControl()}"isDisabled"in H&&this._updateDisabled(H),fr(H,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(H){this.viewModel=H,this.update.emit(H)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ce(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(H){Jn.then(()=>{this.control.setValue(H,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(H){const Se=H.isDisabled.currentValue,ln=0!==Se&&(0,g.D6c)(Se);Jn.then(()=>{ln&&!this.control.disabled?this.control.disable():!ln&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(H){return this._parent?Gt(H,this._parent):[H]}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(An,9),g.Y36(lt,10),g.Y36(sn,10),g.Y36(se,10),g.Y36(g.sBO,8))},J.\u0275dir=g.lG2({type:J,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g._Bn([Mn]),g.qOj,g.TTD]}),J})(),Ti=(()=>{class J{}return J.\u0275fac=function(H){return new(H||J)},J.\u0275dir=g.lG2({type:J,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),J})();const $i={provide:se,useExisting:(0,g.Gpc)(()=>Ji),multi:!0};let Ji=(()=>{class J extends Te{writeValue(H){this.setProperty("value",H??"")}registerOnChange(H){this.onChange=Se=>{H(""==Se?null:parseFloat(Se))}}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(H,Se){1&H&&g.NdJ("input",function(pi){return Se.onChange(pi.target.value)})("blur",function(){return Se.onTouched()})},features:[g._Bn([$i]),g.qOj]}),J})(),As=(()=>{class J{}return J.\u0275fac=function(H){return new(H||J)},J.\u0275mod=g.oAB({type:J}),J.\u0275inj=g.cJS({}),J})();const co=new g.OlP("NgModelWithFormControlWarning"),Ko={provide:Wn,useExisting:(0,g.Gpc)(()=>Zs)};let Zs=(()=>{class J extends Wn{constructor(H,Se,ln,pi){super(),this._ngModelWarningConfig=pi,this.update=new g.vpe,this._ngModelWarningSent=!1,this._setValidators(H),this._setAsyncValidators(Se),this.valueAccessor=Zi(0,ln)}set isDisabled(H){}ngOnChanges(H){if(this._isControlChanged(H)){const Se=H.form.previousValue;Se&&Ue(Se,this,!1),Ce(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}fr(H,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ue(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(H){this.viewModel=H,this.update.emit(H)}_isControlChanged(H){return H.hasOwnProperty("form")}}return J._ngModelWarningSentOnce=!1,J.\u0275fac=function(H){return new(H||J)(g.Y36(lt,10),g.Y36(sn,10),g.Y36(se,10),g.Y36(co,8))},J.\u0275dir=g.lG2({type:J,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[g._Bn([Ko]),g.qOj,g.TTD]}),J})();const Vo={provide:An,useExisting:(0,g.Gpc)(()=>Co)};let Co=(()=>{class J extends An{constructor(H,Se){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.vpe,this._setValidators(
1H),this._setAsyncValidators(Se)}ngOnChanges(H){this._checkFormPresent(),H.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(H){const Se=this.form.get(H.path);return Ce(Se,H),Se.updateValueAndValidity({emitEvent:!1}),this.directives.push(H),Se}getControl(H){return this.form.get(H.path)}removeControl(H){Ue(H.control||null,H,!1),function ho(J,W){const H=J.indexOf(W);H>-1&&J.splice(H,1)}(this.directives,H)}addFormGroup(H){this._setUpFormContainer(H)}removeFormGroup(H){this._cleanUpFormContainer(H)}getFormGroup(H){return this.form.get(H.path)}addFormArray(H){this._setUpFormContainer(H)}removeFormArray(H){this._cleanUpFormContainer(H)}getFormArray(H){return this.form.get(H.path)}updateModel(H,Se){this.form.get(H.path).setValue(Se)}onSubmit(H){return this.submitted=!0,Yi(this.form,this.directives),this.ngSubmit.emit(H),"dialog"===H?.target?.method}onReset(){this.resetForm()}resetForm(H){this.form.reset(H),this.submitted=!1}_updateDomValue(){this.directives.forEach(H=>{const Se=H.control,ln=this.form.get(H.path);Se!==ln&&(Ue(Se||null,H),(J=>J instanceof Ne)(ln)&&(Ce(ln,H),H.control=ln))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(H){const Se=this.form.get(H.path);vn(Se,H),Se.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(H){if(this.form){const Se=this.form.get(H.path);Se&&function ni(J,W){return mn(J,W)}(Se,H)&&Se.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nt(this.form,this),this._oldForm&&mn(this._oldForm,this)}_checkFormPresent(){}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(lt,10),g.Y36(sn,10))},J.\u0275dir=g.lG2({type:J,selectors:[["","formGroup",""]],hostBindings:function(H,Se){1&H&&g.NdJ("submit",function(pi){return Se.onSubmit(pi)})("reset",function(){return Se.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([Vo]),g.qOj,g.TTD]}),J})();const po={provide:Wn,useExisting:(0,g.Gpc)(()=>to)};let to=(()=>{class J extends Wn{constructor(H,Se,ln,pi,Hi){super(),this._ngModelWarningConfig=Hi,this._added=!1,this.update=new g.vpe,this._ngModelWarningSent=!1,this._parent=H,this._setValidators(Se),this._setAsyncValidators(ln),this.valueAccessor=Zi(0,pi)}set isDisabled(H){}ngOnChanges(H){this._added||this._setUpControl(),fr(H,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(H){this.viewModel=H,this.update.emit(H)}get path(){return Gt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return J._ngModelWarningSentOnce=!1,J.\u0275fac=function(H){return new(H||J)(g.Y36(An,13),g.Y36(lt,10),g.Y36(sn,10),g.Y36(se,10),g.Y36(co,8))},J.\u0275dir=g.lG2({type:J,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g._Bn([po]),g.qOj,g.TTD]}),J})();const bs={provide:se,useExisting:(0,g.Gpc)(()=>Io),multi:!0};function is(J,W){return null==J?`${W}`:(W&&"object"==typeof W&&(W="Object"),`${J}: ${W}`.slice(0,50))}let Io=(()=>{class J extends Te{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(H){this._compareWith=H}writeValue(H){this.value=H;const ln=is(this._getOptionId(H),H);this.setProperty("value",ln)}registerOnChange(H){this.onChange=Se=>{this.value=this._getOptionValue(Se),H(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(H){for(const Se of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Se),H))return Se;return null}_getOptionValue(H){const Se=function ea(J){return J.split(":")[0]}(H);return this._optionMap.has(Se)?this._optionMap.get(Se):H}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(H,Se){1&H&&g.NdJ("change",function(pi){return Se.onChange(pi.target.value)})("blur",function(){return Se.onTouched()})},inputs:{compareWith:"compareWith"},features:[g._Bn([bs]),g.qOj]}),J})(),ha=(()=>{class J{constructor(H,Se,ln){this._element=H,this._renderer=Se,this._select=ln,this._select&&(this.id=this._select._registerOption())}set ngValue(H){null!=this._select&&(this._select._optionMap.set(this.id,H),this._setElementValue(is(this.id,H)),this._select.writeValue(this._select.value))}set value(H){this._setElementValue(H),this._select&&this._select.writeValue(this._select.value)}_setElementValue(H){this._renderer.setProperty(this._element.nativeElement,"value",H)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(g.SBq),g.Y36(g.Qsj),g.Y36(Io,9))},J.\u0275dir=g.lG2({type:J,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),J})();const fa={provide:se,useExisting:(0,g.Gpc)(()=>Ur),multi:!0};function rs(J,W){return null==J?`${W}`:("string"==typeof W&&(W=`'${W}'`),W&&"object"==typeof W&&(W="Object"),`${J}: ${W}`.slice(0,50))}let Ur=(()=>{class J extends Te{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(H){this._compareWith=H}writeValue(H){let Se;if(this.value=H,Array.isArray(H)){const ln=H.map(pi=>this._getOptionId(pi));Se=(pi,Hi)=>{pi._setSelected(ln.indexOf(Hi.toString())>-1)}}else Se=(ln,pi)=>{ln._setSelected(!1)};this._optionMap.forEach(Se)}registerOnChange(H){this.onChange=Se=>{const ln=[],pi=Se.selectedOptions;if(void 0!==pi){const Hi=pi;for(let us=0;us<Hi.length;us++){const Or=this._getOptionValue(Hi[us].value);ln.push(Or)}}else{const Hi=Se.options;for(let us=0;us<Hi.length;us++){const qo=Hi[us];if(qo.selected){const Or=this._getOptionValue(qo.value);ln.push(Or)}}}this.value=ln,H(ln)}}_registerOption(H){const Se=(this._idCounter++).toString();return this._optionMap.set(Se,H),Se}_getOptionId(H){for(const Se of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Se)._value,H))return Se;return null}_getOptionValue(H){const Se=function no(J){return J.split(":")[0]}(H);return this._optionMap.has(Se)?this._optionMap.get(Se)._value:H}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(H,Se){1&H&&g.NdJ("change",function(pi){return Se.onChange(pi.target)})("blur",function(){return Se.onTouched()})},inputs:{compareWith:"compareWith"},features:[g._Bn([fa]),g.qOj]}),J})(),ks=(()=>{class J{constructor(H,Se,ln){this._element=H,this._renderer=Se,this._select=ln,this._select&&(this.id=this._select._registerOption(this))}set ngValue(H){null!=this._select&&(this._value=H,this._setElementValue(rs(this.id,H)),this._select.writeValue(this._select.value))}set value(H){this._select?(this._value=H,this._setElementValue(rs(this.id,H)),this._select.writeValue(this._select.value)):this._setElementValue(H)}_setElementValue(H){this._renderer.setProperty(this._element.nativeElement,"value",H)}_setSelected(H){this._renderer.setProperty(this._element.nativeElement,"selected",H)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return J.\u0275fac=function(H){return new(H||J)(g.Y36(g.SBq),g.Y36(g.Qsj),g.Y36(Ur,9))},J.\u0275dir=g.lG2({type:J,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),J})();let pe=(()=>{class J{constructor(){this._validator=pn}ngOnChanges(H){if(this.inputName in H){const Se=this.normalizeInput(H[this.inputName].currentValue);this._enabled=this.enabled(Se),this._validator=this._enabled?this.createValidator(Se):pn,this._onChange&&this._onChange()}}validate(H){return this._validator(H)}registerOnValidatorChange(H){this._onChange=H}enabled(H){return null!=H}}return J.\u0275fac=function(H){return new(H||J)},J.\u0275dir=g.lG2({type:J,features:[g.TTD]}),J})();const Et={provide:lt,useExisting:(0,g.Gpc)(()=>Ht),multi:!0};let Ht=(()=>{class J extends pe{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=H=>function oo(J){return"number"==typeof J?J:parseFloat(J)}(H),this.createValidator=H=>fe(H)}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(H,Se){2&H&&g.uIk("min",Se._enabled?Se.min:null)},inputs:{min:"min"},features:[g._Bn([Et]),g.qOj]}),J})();const fn={provide:lt,useExisting:(0,g.Gpc)(()=>hi),multi:!0};let hi=(()=>{class J extends pe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=g.D6c,this.createValidator=H=>Ye}enabled(H){return H}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(H,Se){2&H&&g.uIk("required",Se._enabled?"":null)},inputs:{required:"required"},features:[g._Bn([fn]),g.qOj]}),J})();const ji={provide:lt,useExisting:(0,g.Gpc)(()=>br),multi:!0};let br=(()=>{class J extends pe{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=H=>H,this.createValidator=H=>zt(H)}}return J.\u0275fac=function(){let W;return function(Se){return(W||(W=g.n5z(J)))(Se||J)}}(),J.\u0275dir=g.lG2({type:J,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(H,Se){2&H&&g.uIk("pattern",Se._enabled?Se.pattern:null)},inputs:{pattern:"pattern"},features:[g._Bn([ji]),g.qOj]}),J})(),Hr=(()=>{class J{}return J.\u0275fac=function(H){return new(H||J)},J.\u0275mod=g.oAB({type:J}),J.\u0275inj=g.cJS({imports:[As]}),J})(),ur=(()=>{class J{}return J.\u0275fac=function(H){return new(H||J)},J.\u0275mod=g.oAB({type:J}),J.\u0275inj=g.cJS({imports:[Hr]}),J})(),Yo=(()=>{class J{static withConfig(H){return{ngModule:J,providers:[{provide:co,useValue:H.warnOnNgModelWithFormControl}]}}}return J.\u0275fac=function(H){return new(H||J)},J.\u0275mod=g.oAB({type:J}),J.\u0275inj=g.cJS({imports:[Hr]}),J})();class ys extends Re{constructor(W,H,Se){super(un(H),Li(Se,H)),this.controls=W,this._initOb
1servables(),this._setUpdateStrategy(H),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(W){return this.controls[this._adjustIndex(W)]}push(W,H={}){this.controls.push(W),this._registerControl(W),this.updateValueAndValidity({emitEvent:H.emitEvent}),this._onCollectionChange()}insert(W,H,Se={}){this.controls.splice(W,0,H),this._registerControl(H),this.updateValueAndValidity({emitEvent:Se.emitEvent})}removeAt(W,H={}){let Se=this._adjustIndex(W);Se<0&&(Se=0),this.controls[Se]&&this.controls[Se]._registerOnCollectionChange(()=>{}),this.controls.splice(Se,1),this.updateValueAndValidity({emitEvent:H.emitEvent})}setControl(W,H,Se={}){let ln=this._adjustIndex(W);ln<0&&(ln=0),this.controls[ln]&&this.controls[ln]._registerOnCollectionChange(()=>{}),this.controls.splice(ln,1),H&&(this.controls.splice(ln,0,H),this._registerControl(H)),this.updateValueAndValidity({emitEvent:Se.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(W,H={}){Xe(this,0,W),W.forEach((Se,ln)=>{at(this,!1,ln),this.at(ln).setValue(Se,{onlySelf:!0,emitEvent:H.emitEvent})}),this.updateValueAndValidity(H)}patchValue(W,H={}){null!=W&&(W.forEach((Se,ln)=>{this.at(ln)&&this.at(ln).patchValue(Se,{onlySelf:!0,emitEvent:H.emitEvent})}),this.updateValueAndValidity(H))}reset(W=[],H={}){this._forEachChild((Se,ln)=>{Se.reset(W[ln],{onlySelf:!0,emitEvent:H.emitEvent})}),this._updatePristine(H),this._updateTouched(H),this.updateValueAndValidity(H)}getRawValue(){return this.controls.map(W=>W.getRawValue())}clear(W={}){this.controls.length<1||(this._forEachChild(H=>H._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:W.emitEvent}))}_adjustIndex(W){return W<0?W+this.length:W}_syncPendingControls(){let W=this.controls.reduce((H,Se)=>!!Se._syncPendingControls()||H,!1);return W&&this.updateValueAndValidity({onlySelf:!0}),W}_forEachChild(W){this.controls.forEach((H,Se)=>{W(H,Se)})}_updateValue(){this.value=this.controls.filter(W=>W.enabled||this.disabled).map(W=>W.value)}_anyControls(W){return this.controls.some(H=>H.enabled&&W(H))}_setUpControls(){this._forEachChild(W=>this._registerControl(W))}_allControlsDisabled(){for(const W of this.controls)if(W.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(W){W.setParent(this),W._registerOnCollectionChange(this._onCollectionChange)}_find(W){return this.at(W)??null}}function On(J){return!!J&&(void 0!==J.asyncValidators||void 0!==J.validators||void 0!==J.updateOn)}let Qi=(()=>{class J{constructor(){this.useNonNullable=!1}get nonNullable(){const H=new J;return H.useNonNullable=!0,H}group(H,Se=null){const ln=this._reduceControls(H);let pi={};return On(Se)?pi=Se:null!==Se&&(pi.validators=Se.validator,pi.asyncValidators=Se.asyncValidator),new Ie(ln,pi)}record(H,Se=null){const ln=this._reduceControls(H);return new en(ln,Se)}control(H,Se,ln){let pi={};return this.useNonNullable?(On(Se)?pi=Se:(pi.validators=Se,pi.asyncValidators=ln),new Ne(H,{...pi,nonNullable:!0})):new Ne(H,Se,ln)}array(H,Se,ln){const pi=H.map(Hi=>this._createControl(Hi));return new ys(pi,Se,ln)}_reduceControls(H){const Se={};return Object.keys(H).forEach(ln=>{Se[ln]=this._createControl(H[ln])}),Se}_createControl(H){return H instanceof Ne||H instanceof Re?H:Array.isArray(H)?this.control(H[0],H.length>1?H[1]:null,H.length>2?H[2]:null):this.control(H)}}return J.\u0275fac=function(H){return new(H||J)},J.\u0275prov=g.Yz7({token:J,factory:J.\u0275fac,providedIn:Yo}),J})()},3238:(wn,bt,D)=>{"use strict";D.d(bt,{rD:()=>ft,K7:()=>le,HF:()=>ei,BQ:()=>Xt,ey:()=>ye,Ng:()=>on,CB:()=>Je,jH:()=>wt,pj:()=>it,Kr:()=>ze,Id:()=>Ye,FD:()=>mt,sb:()=>xt});var g=D(4650),e=D(2687),R=D(445),ve=D(6895),ae=D(3353),Te=D(1281),se=D(7579),z=D(9521);function de(st,Ee){if(1&st&&g._UZ(0,"mat-pseudo-checkbox",4),2&st){const V=g.oxw();g.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function dt(st,Ee){if(1&st&&(g.TgZ(0,"span",5),g._uU(1),g.qZA()),2&st){const V=g.oxw();g.xp6(1),g.hij("(",V.group.label,")")}}const Mt=["*"],sn=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function lt(){return!0}});let Xt=(()=>{class st{constructor(V,_e,Tt){this._sanityChecks=_e,this._document=Tt,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasse
1s(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,ae.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return st.\u0275fac=function(V){return new(V||st)(g.LFG(e.qm),g.LFG(sn,8),g.LFG(ve.K0))},st.\u0275mod=g.oAB({type:st}),st.\u0275inj=g.cJS({imports:[[R.vT],R.vT]}),st})();function Ye(st){return class extends st{constructor(...Ee){super(...Ee),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ee){this._disabled=(0,Te.Ig)(Ee)}}}function it(st,Ee){return class extends st{constructor(...V){super(...V),this.defaultColor=Ee,this.color=Ee}get color(){return this._color}set color(V){const _e=V||this.defaultColor;_e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),_e&&this._elementRef.nativeElement.classList.add(`mat-${_e}`),this._color=_e)}}}function ze(st){return class extends st{constructor(...Ee){super(...Ee),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ee){this._disableRipple=(0,Te.Ig)(Ee)}}}function xt(st,Ee=0){return class extends st{constructor(...V){super(...V),this._tabIndex=Ee,this.defaultTabIndex=Ee}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,Te.su)(V):this.defaultTabIndex}}}function mt(st){return class extends st{constructor(...Ee){super(...Ee),this.stateChanges=new se.x,this.errorState=!1}updateErrorState(){const Ee=this.errorState,un=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);un!==Ee&&(this.errorState=un,this.stateChanges.next())}}}let ft=(()=>{class st{isErrorState(V,_e){return!!(V&&V.invalid&&(V.touched||_e&&_e.submitted))}}return st.\u0275fac=function(V){return new(V||st)},st.\u0275prov=g.Yz7({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();class qn{constructor(Ee,V,_e){this._renderer=Ee,this.element=V,this.config=_e,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const kn={enterDuration:225,exitDuration:150},An=(0,ae.i$)({passive:!0}),Wn=["mousedown","touchstart"],Ln=["mouseup","mouseleave","touchend","touchcancel"];class Hn{constructor(Ee,V,_e,Tt){this._target=Ee,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Tt.isBrowser&&(this._containerElement=(0,Te.fI)(_e))}fadeInRipple(Ee,V,_e={}){const Tt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),un={...kn,..._e.animation};_e.centered&&(Ee=Tt.left+Tt.width/2,V=Tt.top+Tt.height/2);const Yn=_e.radius||function _n(st,Ee,V){const _e=Math.max(Math.abs(st-V.left),Math.abs(st-V.right)),Tt=Math.max(Math.abs(Ee-V.top),Math.abs(Ee-V.bottom));return Math.sqrt(_e*_e+Tt*Tt)}(Ee,V,Tt),Li=Ee-Tt.left,Ii=V-Tt.top,qi=un.enterDuration,at=document.createElement("div");at.classList.add("mat-ripple-element"),at.style.left=Li-Yn+"px",at.style.top=Ii-Yn+"px",at.style.height=2*Yn+"px",at.style.width=2*Yn+"px",null!=_e.color&&(at.style.backgroundColor=_e.color),at.style.transitionDuration=`${qi}ms`,this._containerElement.appendChild(at),function yi(st){window.getComputedStyle(st).getPropertyValue("opacity")}(at),at.style.transform="scale(1)";const Xe=new qn(this,at,_e);return Xe.state=0,this._activeRipples.add(Xe),_e.persistent||(this._mostRecentTransientRipple=Xe),this._runTimeoutOutsideZone(()=>{const Re=Xe===this._mostRecentTransientRipple;Xe.state=1,!_e.persistent&&(!Re||!this._isPointerDown)&&Xe.fadeOut()},qi),Xe}fadeOutRipple(Ee){const V=this._activeRipples.delete(Ee);if(Ee===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const _e=Ee.element,Tt={...kn,...Ee.config.animation};_e.style.transitionDuration=`${Tt.exitDuration}ms`,_e.style.opacity="0",Ee.state=2,this._runTimeoutOutsideZone(()=>{Ee.state=3,_e.remove()},Tt.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ee=>Ee.fadeOut())}
1fadeOutAllNonPersistent(){this._activeRipples.forEach(Ee=>{Ee.config.persistent||Ee.fadeOut()})}setupTriggerEvents(Ee){const V=(0,Te.fI)(Ee);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(Wn))}handleEvent(Ee){"mousedown"===Ee.type?this._onMousedown(Ee):"touchstart"===Ee.type?this._onTouchStart(Ee):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ln),this._pointerUpEventsRegistered=!0)}_onMousedown(Ee){const V=(0,e.X6)(Ee),_e=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!V&&!_e&&(this._isPointerDown=!0,this.fadeInRipple(Ee.clientX,Ee.clientY,this._target.rippleConfig))}_onTouchStart(Ee){if(!this._target.rippleDisabled&&!(0,e.yG)(Ee)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const V=Ee.changedTouches;for(let _e=0;_e<V.length;_e++)this.fadeInRipple(V[_e].clientX,V[_e].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Ee=>{!Ee.config.persistent&&(1===Ee.state||Ee.config.terminateOnPointerUp&&0===Ee.state)&&Ee.fadeOut()}))}_runTimeoutOutsideZone(Ee,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ee,V))}_registerEvents(Ee){this._ngZone.runOutsideAngular(()=>{Ee.forEach(V=>{this._triggerElement.addEventListener(V,this,An)})})}_removeTriggerEvents(){this._triggerElement&&(Wn.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,An)}),this._pointerUpEventsRegistered&&Ln.forEach(Ee=>{this._triggerElement.removeEventListener(Ee,this,An)}))}}const ui=new g.OlP("mat-ripple-global-options");let zn=(()=>{class st{constructor(V,_e,Tt,un,Yn){this._elementRef=V,this._animationMode=Yn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=un||{},this._rippleRenderer=new Hn(this,_e,V,Tt)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,_e=0,Tt){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,_e,{...this.rippleConfig,...Tt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...V})}}return st.\u0275fac=function(V){return new(V||st)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(ae.t4),g.Y36(ui,8),g.Y36(g.QbO,8))},st.\u0275dir=g.lG2({type:st,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,_e){2&V&&g.ekj("mat-ripple-unbounded",_e.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),st})(),ri=(()=>{class st{}return st.\u0275fac=function(V){return new(V||st)},st.\u0275mod=g.oAB({type:st}),st.\u0275inj=g.cJS({imports:[[Xt],Xt]}),st})(),Pi=(()=>{class st{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return st.\u0275fac=function(V){return new(V||st)(g.Y36(g.QbO,8))},st.\u0275cmp=g.Xpm({type:st,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,_e){2&V&&g.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===_e.state)("mat-pseudo-checkbox-checked","checked"===_e.state)("mat-pseudo-checkbox-disabled",_e.disabled)("_mat-animation-noopable","NoopAnimations"===_e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,_e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),st})(),li=(()=>{class st{}return st.\u0275fac=function(V){return new(V||st)},st.\u0275mod=g.oAB({type:st}),st.\u0275inj=g.cJS({imports:[[Xt]]}),st})();const ei=new g.OlP("MAT_OPTION_PARENT_COMPONENT"),le=new g.OlP("MatOptgroup");let Q=0;class ke{constructor(Ee,V=!1){this.source=Ee,this.isUserInput=V}}let De=(()=>{class st{constructor(V,_e,Tt,un){this._element=V,this._changeDetectorRef=_e,this._parent=Tt,this.group=un,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Q++,this.onSelectionChange=new g.vpe,this._stateChanges=new se.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,Te.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,_e){const Tt=this._getHostElement();"function"==typeof Tt.focus&&Tt.focus(_e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===z.K5||V.keyCode===z.L_)&&!(0,z.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}
1_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new ke(this,V))}}return st.\u0275fac=function(V){g.$Z()},st.\u0275dir=g.lG2({type:st,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),st})(),ye=(()=>{class st extends De{constructor(V,_e,Tt,un){super(V,_e,Tt,un)}}return st.\u0275fac=function(V){return new(V||st)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(ei,8),g.Y36(le,8))},st.\u0275cmp=g.Xpm({type:st,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,_e){1&V&&g.NdJ("click",function(){return _e._selectViaInteraction()})("keydown",function(un){return _e._handleKeydown(un)}),2&V&&(g.Ikx("id",_e.id),g.uIk("tabindex",_e._getTabIndex())("aria-selected",_e._getAriaSelected())("aria-disabled",_e.disabled.toString()),g.ekj("mat-selected",_e.selected)("mat-option-multiple",_e.multiple)("mat-active",_e.active)("mat-option-disabled",_e.disabled))},exportAs:["matOption"],features:[g.qOj],ngContentSelectors:Mt,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,_e){1&V&&(g.F$t(),g.YNc(0,de,1,2,"mat-pseudo-checkbox",0),g.TgZ(1,"span",1),g.Hsn(2),g.qZA(),g.YNc(3,dt,2,1,"span",2),g._UZ(4,"div",3)),2&V&&(g.Q6J("ngIf",_e.multiple),g.xp6(3),g.Q6J("ngIf",_e.group&&_e.group._inert),g.xp6(1),g.Q6J("matRippleTrigger",_e._getHostElement())("matRippleDisabled",_e.disabled||_e.disableRipple))},dependencies:[Pi,ve.O5,zn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),st})();function Je(st,Ee,V){if(V.length){let _e=Ee.toArray(),Tt=V.toArray(),un=0;for(let Yn=0;Yn<st+1;Yn++)_e[Yn].group&&_e[Yn].group===Tt[un]&&un++;return un}return 0}function wt(st,Ee,V,_e){return st<V?st:st+Ee>V+_e?Math.max(0,st-_e+Ee):V}let on=(()=>{class st{}return st.\u0275fac=function(V){return new(V||st)},st.\u0275mod=g.oAB({type:st}),st.\u0275inj=g.cJS({imports:[[ri,ve.ez,Xt,li]]}),st})()},7676:(wn,bt,D)=>{"use strict";D.d(bt,{G_:()=>Pi,KE:()=>li,Eo:()=>ie,lN:()=>ei,hX:()=>kn});var g=D(1281),e=D(4650),R=D(9751),me=D(7579),ve=D(8372);let ae=(()=>{class Ze{create(P){return typeof MutationObserver>"u"?null:new MutationObserver(P)}}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Te=(()=>{class Ze{constructor(P){this._mutationObserverFactory=P,this._observedElements=new Map}
1ngOnDestroy(){this._observedElements.forEach((P,le)=>this._cleanupObserver(le))}observe(P){const le=(0,g.fI)(P);return new R.y(O=>{const ke=this._observeElement(le).subscribe(O);return()=>{ke.unsubscribe(),this._unobserveElement(le)}})}_observeElement(P){if(this._observedElements.has(P))this._observedElements.get(P).count++;else{const le=new me.x,O=this._mutationObserverFactory.create(Q=>le.next(Q));O&&O.observe(P,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(P,{observer:O,stream:le,count:1})}return this._observedElements.get(P).stream}_unobserveElement(P){this._observedElements.has(P)&&(this._observedElements.get(P).count--,this._observedElements.get(P).count||this._cleanupObserver(P))}_cleanupObserver(P){if(this._observedElements.has(P)){const{observer:le,stream:O}=this._observedElements.get(P);le&&le.disconnect(),O.complete(),this._observedElements.delete(P)}}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.LFG(ae))},Ze.\u0275prov=e.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),se=(()=>{class Ze{constructor(P,le,O){this._contentObserver=P,this._elementRef=le,this._ngZone=O,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(P){this._disabled=(0,g.Ig)(P),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(P){this._debounce=(0,g.su)(P),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const P=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?P.pipe((0,ve.b)(this.debounce)):P).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.Y36(Te),e.Y36(e.SBq),e.Y36(e.R0b))},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Ze})(),z=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({providers:[ae]}),Ze})();var x=D(6895),G=D(3238),de=D(445),dt=D(6451),Mt=D(4968),We=D(8675),At=D(2722),qe=D(5698),lt=D(7340),sn=D(3353);const Xt=["connectionContainer"],ot=["inputContainer"],fe=["label"];function ut(Ze,Oe){1&Ze&&(e.ynx(0),e.TgZ(1,"div",14),e._UZ(2,"div",15)(3,"div",16)(4,"div",17),e.qZA(),e.TgZ(5,"div",18),e._UZ(6,"div",15)(7,"div",16)(8,"div",17),e.qZA(),e.BQk())}function Ye(Ze,Oe){if(1&Ze){const P=e.EpF();e.TgZ(0,"div",19),e.NdJ("cdkObserveContent",function(){e.CHM(P);const O=e.oxw();return e.KtG(O.updateOutlineGap())}),e.Hsn(1,1),e.qZA()}if(2&Ze){const P=e.oxw();e.Q6J("cdkObserveContentDisabled","outline"!=P.appearance)}}function it(Ze,Oe){if(1&Ze&&(e.ynx(0),e.Hsn(1,2),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.BQk()),2&Ze){const P=e.oxw(2);e.xp6(3),e.Oqu(P._control.placeholder)}}function ze(Ze,Oe){1&Ze&&e.Hsn(0,3,["*ngSwitchCase","true"])}function xt(Ze,Oe){1&Ze&&(e.TgZ(0,"span",23),e._uU(1," *"),e.qZA())}function mt(Ze,Oe){if(1&Ze){const P=e.EpF();e.TgZ(0,"label",20,21),e.NdJ("cdkObserveContent",function(){e.CHM(P);const O=e.oxw();return e.KtG(O.updateOutlineGap())}),e.YNc(2,it,4,1,"ng-container",12),e.YNc(3,ze,1,0,"ng-content",12),e.YNc(4,xt,2,0,"span",22),e.qZA()}if(2&Ze){const P=e.oxw();e.ekj("mat-empty",P._control.empty&&!P._shouldAlwaysFloat())("mat-form-field-empty",P._control.empty&&!P._shouldAlwaysFloat())("mat-accent","accent"==P.color)("mat-warn","warn"==P.color),e.Q6J("cdkObserveContentDisabled","outline"!=P.appearance)("id",P._labelId)("ngSwitch",P._hasLabel()),e.uIk("for",P._control.id)("aria-owns",P._control.id),e.xp6(2),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngIf",!P.hideRequiredMarker&&P._control.required&&!P._control.disabled)}}function zt(Ze,Oe){1&Ze&&(e.TgZ(0,"div",24),e.Hsn(1,4),e.qZA())}function pn(Ze,Oe){if(1&Ze&&(e.TgZ(0,"div",25),e._UZ(1,"span",26),e.qZA()),2&Ze){const P=e.oxw();e.xp6(1),e.ekj("mat-accent","accent"==P.color)("mat-warn","warn"==P.color)}}function $t(Ze,Oe){if(1&Ze&&(e.TgZ(0,"div"),e.Hsn(1,5),e.qZA()),2&Ze){const P=e.oxw();e.Q6J("@transitionMessages",P._subscriptAnimationState)}}function Vn(Ze,Oe){if(1&Ze&&(e.TgZ(0,"div",30),e._uU(1),e.qZA()),2&Ze){const P=e.oxw(2);e.Q6J("id",P._hintLabelId),e.xp6(1),e.Oqu(P.hintLabel)}}function Ut(Ze,Oe){if(1&Ze&&(e.TgZ(0,"div",27),e.YNc(1,Vn,2,2,"div",28),e.Hsn(2,6),e._UZ(3,"div",29),e.Hsn(4,7),e.qZA()),2&Ze){const P=e.oxw();e.Q6J("@transitionMessages",P._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",P.hintLabel)}}const gn=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],St=new e.OlP("MatError"),je={transitionMessages:(0,lt.X$)("transitionMessages",[(0,lt.SB)("enter",(0,lt.oB)({opacity:1,transform:"translateY(0%)"})),(0,lt.eR)("void => enter",[(0,lt.oB)({opacity:0,transform:"translateY(-5px)"}),(0,lt.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ie=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275dir=e.lG2({type:Ze}),Ze})();const Gn=new e.OlP("MatHint");let kn=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["mat-label"]]}),Ze})(),ai=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275dir=e.lG2({type:Ze,selectors:[["mat-placeholder"]]}),Ze})();const An=new e.OlP("MatPrefix"),Ln=new e.OlP("MatSuffix");let yi=0;const zn=(0,G.pj)(class{constructor(Ze){this._elementRef=Ze}},"primary"),ri=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Pi=new e.OlP("MatFormField");let li=(()=>{class Ze extends zn{constructor(P,le,O,Q,ke,De,ye){super(P),this._changeDetectorRef=le,this._dir=O,this._defaults=Q,this._platform=ke,this._ngZone=De,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new me.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+yi++,this._labelId="mat-form-field-label-"+yi++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ye,this.appearance=Q&&Q.appearance?Q.appearance:"legacy",this._hideRequiredMarker=!(!Q||null==Q.hideRequiredMarker)&&Q.hideRequiredMarker}get appearance(){return this._appearance}set appearance(P){const le=this._appearance;this._appearance=P||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&le!==P&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(P){this._hideRequiredMarker=(0,g.Ig)(P)}
1_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(P){this._hintLabel=P,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(P){P!==this._floatLabel&&(this._floatLabel=P||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(P){this._explicitFormFieldControl=P}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const P=this._control;P.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${P.controlType}`),P.stateChanges.pipe((0,We.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),P.ngControl&&P.ngControl.valueChanges&&P.ngControl.valueChanges.pipe((0,At.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,At.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,dt.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,We.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,We.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,At.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(P){const le=this._control?this._control.ngControl:null;return le&&le[P]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Mt.R)(this._label.nativeElement,"transitionend").pipe((0,qe.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let P=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&P.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const le=this._hintChildren?this._hintChildren.find(Q=>"start"===Q.align):null,O=this._hintChildren?this._hintChildren.find(Q=>"end"===Q.align):null;le?P.push(le.id):this._hintLabel&&P.push(this._hintLabelId),O&&P.push(O.id)}else this._errorChildren&&P.push(...this._errorChildren.map(le=>le.id));this._control.setDescribedByIds(P)}}_validateControlChild(){}updateOutlineGap(){const P=this._label?this._label.nativeElement:null,le=this._connectionContainerRef.nativeElement,O=".mat-form-field-outline-start",Q=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!P||!P.children.length||!P.textContent.trim()){const wt=le.querySelectorAll(`${O}, ${Q}`);for(let on=0;on<wt.length;on++)wt[on].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let ke=0,De=0;const ye=le.querySelectorAll(O),Je=le.querySelectorAll(Q);if(this._label&&this._label.nativeElement.children.length){const wt=le.getBoundingClientRect();if(0===wt.width&&0===wt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const on=this._getStartEnd(wt),st=P.children,Ee=this._getStartEnd(st[0].getBoundingClientRect());let V=0;for(let _e=0;_e<st.length;_e++)V+=st[_e].offsetWidth;ke=Math.abs(Ee-on)-5,De=V>0?.75*V+10:0}for(let wt=0;wt<ye.length;wt++)ye[wt].style.width=`${ke}px`;for(let wt=0;wt<Je.length;wt++)Je[wt].style.width=`${De}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(P){return this._dir&&"rtl"===this._dir.value?P.right:P.left}
1_isAttachedToDOM(){const P=this._elementRef.nativeElement;if(P.getRootNode){const le=P.getRootNode();return le&&le!==P}return document.documentElement.contains(P)}}return Ze.\u0275fac=function(P){return new(P||Ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(de.Is,8),e.Y36(ri,8),e.Y36(sn.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["mat-form-field"]],contentQueries:function(P,le,O){if(1&P&&(e.Suo(O,ie,5),e.Suo(O,ie,7),e.Suo(O,kn,5),e.Suo(O,kn,7),e.Suo(O,ai,5),e.Suo(O,St,5),e.Suo(O,Gn,5),e.Suo(O,An,5),e.Suo(O,Ln,5)),2&P){let Q;e.iGM(Q=e.CRH())&&(le._controlNonStatic=Q.first),e.iGM(Q=e.CRH())&&(le._controlStatic=Q.first),e.iGM(Q=e.CRH())&&(le._labelChildNonStatic=Q.first),e.iGM(Q=e.CRH())&&(le._labelChildStatic=Q.first),e.iGM(Q=e.CRH())&&(le._placeholderChild=Q.first),e.iGM(Q=e.CRH())&&(le._errorChildren=Q),e.iGM(Q=e.CRH())&&(le._hintChildren=Q),e.iGM(Q=e.CRH())&&(le._prefixChildren=Q),e.iGM(Q=e.CRH())&&(le._suffixChildren=Q)}},viewQuery:function(P,le){if(1&P&&(e.Gf(Xt,7),e.Gf(ot,5),e.Gf(fe,5)),2&P){let O;e.iGM(O=e.CRH())&&(le._connectionContainerRef=O.first),e.iGM(O=e.CRH())&&(le._inputContainerRef=O.first),e.iGM(O=e.CRH())&&(le._label=O.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(P,le){2&P&&e.ekj("mat-form-field-appearance-standard","standard"==le.appearance)("mat-form-field-appearance-fill","fill"==le.appearance)("mat-form-field-appearance-outline","outline"==le.appearance)("mat-form-field-appearance-legacy","legacy"==le.appearance)("mat-form-field-invalid",le._control.errorState)("mat-form-field-can-float",le._canLabelFloat())("mat-form-field-should-float",le._shouldLabelFloat())("mat-form-field-has-label",le._hasFloatingLabel())("mat-form-field-hide-placeholder",le._hideControlPlaceholder())("mat-form-field-disabled",le._control.disabled)("mat-form-field-autofilled",le._control.autofilled)("mat-focused",le._control.focused)("ng-untouched",le._shouldForward("untouched"))("ng-touched",le._shouldForward("touched"))("ng-pristine",le._shouldForward("pristine"))("ng-dirty",le._shouldForward("dirty"))("ng-valid",le._shouldForward("valid"))("ng-invalid",le._shouldForward("invalid"))("ng-pending",le._shouldForward("pending"))("_mat-animation-noopable",!le._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:Pi,useExisting:Ze}]),e.qOj],ngContentSelectors:tt,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(P,le){1&P&&(e.F$t(gn),e.TgZ(0,"div",0)(1,"div",1,2),e.NdJ("click",function(Q){return le._control.onContainerClick&&le._control.onContainerClick(Q)}),e.YNc(3,ut,9,0,"ng-container",3),e.YNc(4,Ye,2,1,"div",4),e.TgZ(5,"div",5,6),e.Hsn(7),e.TgZ(8,"span",7),e.YNc(9,mt,5,16,"label",8),e.qZA()(),e.YNc(10,zt,2,0,"div",9),e.qZA(),e.YNc(11,pn,2,4,"div",10),e.TgZ(12,"div",11),e.YNc(13,$t,2,1,"div",12),e.YNc(14,Ut,5,2,"div",13),e.qZA()()),2&P&&(e.xp6(3),e.Q6J("ngIf","outline"==le.appearance),e.xp6(1),e.Q6J("ngIf",le._prefixChildren.length),e.xp6(
15),e.Q6J("ngIf",le._hasFloatingLabel()),e.xp6(1),e.Q6J("ngIf",le._suffixChildren.length),e.xp6(1),e.Q6J("ngIf","outline"!=le.appearance),e.xp6(1),e.Q6J("ngSwitch",le._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[x.O5,se,x.RF,x.n9],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}
1.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}
1.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[je.transitionMessages]},changeDetection:0}),Ze})(),ei=(()=>{class Ze{}return Ze.\u0275fac=function(P){return new(P||Ze)},Ze.\u0275mod=e.oAB({type:Ze}),Ze.\u0275inj=e.cJS({imports:[[x.ez,G.BQ,z],G.BQ]}),Ze})()},3035:(wn,bt,D)=>{"use strict";D.d(bt,{gD:()=>jr,LD:()=>Xr});var g=D(6270),e=D(6895),R=D(4650),me=D(1281),ve=D(3353),ae=D(445);class dt{attach(he){return this._attachedHost=he,he.attach(this)}detach(){let he=this._attachedHost;null!=he&&(this._attachedHost=null,he.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(he){this._attachedHost=he}}class Mt extends dt{constructor(he,ne,Ne,yt){super(),this.component=he,this.viewContainerRef=ne,this.injector=Ne,this.componentFactoryResolver=yt}}class We extends dt{constructor(he,ne,Ne){super(),this.templateRef=he,this.viewContainerRef=ne,this.context=Ne}get origin(){return this.templateRef.elementRef}attach(he,ne=this.context){return this.context=ne,super.attach(he)}detach(){return this.context=void 0,super.detach()}}class At extends dt{constructor(he){super(),this.element=he instanceof R.SBq?he.nativeElement:he}}class sn extends class qe{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(he){return he instanceof Mt?(this._attachedPortal=he,this.attachComponentPortal(he)):he instanceof We?(this._attachedPortal=he,this.attachTemplatePortal(he)):this.attachDomPortal&&he instanceof At?(this._attachedPortal=he,this.attachDomPortal(he)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDis
1poseFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(he){this._disposeFn=he}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(he,ne,Ne,yt,Vt){super(),this.outletElement=he,this._componentFactoryResolver=ne,this._appRef=Ne,this._defaultInjector=yt,this.attachDomPortal=Ke=>{const Ge=Ke.element,ht=this._document.createComment("dom-portal");Ge.parentNode.insertBefore(ht,Ge),this.outletElement.appendChild(Ge),this._attachedPortal=Ke,super.setDisposeFn(()=>{ht.parentNode&&ht.parentNode.replaceChild(Ge,ht)})},this._document=Vt}attachComponentPortal(he){const Ne=(he.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(he.component);let yt;return he.viewContainerRef?(yt=he.viewContainerRef.createComponent(Ne,he.viewContainerRef.length,he.injector||he.viewContainerRef.injector),this.setDisposeFn(()=>yt.destroy())):(yt=Ne.create(he.injector||this._defaultInjector||R.zs3.NULL),this._appRef.attachView(yt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(yt.hostView),yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(yt)),this._attachedPortal=he,yt}attachTemplatePortal(he){let ne=he.viewContainerRef,Ne=ne.createEmbeddedView(he.templateRef,he.context);return Ne.rootNodes.forEach(yt=>this.outletElement.appendChild(yt)),Ne.detectChanges(),this.setDisposeFn(()=>{let yt=ne.indexOf(Ne);-1!==yt&&ne.remove(yt)}),this._attachedPortal=he,Ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(he){return he.hostView.rootNodes[0]}}let it=(()=>{class Bt{}return Bt.\u0275fac=function(ne){return new(ne||Bt)},Bt.\u0275mod=R.oAB({type:Bt}),Bt.\u0275inj=R.cJS({}),Bt})();var xt=D(7579),mt=D(727),zt=D(6451),pn=D(5698),$t=D(2722),Vn=D(2529),Ut=D(9521);const gn=(0,ve.Mq)();class tt{constructor(he,ne){this._viewportRuler=he,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ne}attach(){}enable(){if(this._canBeEnabled()){const he=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=he.style.left||"",this._previousHTMLStyles.top=he.style.top||"",he.style.left=(0,me.HM)(-this._previousScrollPosition.left),he.style.top=(0,me.HM)(-this._previousScrollPosition.top),he.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const he=this._document.documentElement,Ne=he.style,yt=this._document.body.style,Vt=Ne.scrollBehavior||"",Ke=yt.scrollBehavior||"";this._isEnabled=!1,Ne.left=this._previousHTMLStyles.left,Ne.top=this._previousHTMLStyles.top,he.classList.remove("cdk-global-scrollblock"),gn&&(Ne.scrollBehavior=yt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gn&&(Ne.scrollBehavior=Vt,yt.scrollBehavior=Ke)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ne=this._document.body,Ne=this._viewportRuler.getViewportSize();return ne.scrollHeight>Ne.height||ne.scrollWidth>Ne.width}}class St{constructor(he,ne,Ne,yt){this._scrollDispatcher=he,this._ngZone=ne,this._viewportRuler=Ne,this._config=yt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(he){this._overlayRef=he}enable(){if(this._scrollSubscription)return;const he=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=he.subscribe(()=>{const ne=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ne-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=he.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class $e{enable(){}disable(){}attach(){}}function je(Bt,he){return he.some(ne=>Bt.bottom<ne.top||Bt.top>ne.bottom||Bt.right<ne.left||Bt.left>ne.right)}function ie(Bt,he){return he.some(ne=>Bt.top<ne.top||Bt.bottom>ne.bottom||Bt.left<ne.left||Bt.right>ne.right)}class ft{constructor(he,ne,Ne,yt){this._scrollDispatcher=he,this._viewportRuler
1=ne,this._ngZone=Ne,this._config=yt,this._scrollSubscription=null}attach(he){this._overlayRef=he}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ne=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ne,height:yt}=this._viewportRuler.getViewportSize();je(ne,[{width:Ne,height:yt,bottom:yt,right:Ne,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Wt=(()=>{class Bt{constructor(ne,Ne,yt,Vt){this._scrollDispatcher=ne,this._viewportRuler=Ne,this._ngZone=yt,this.noop=()=>new $e,this.close=Ke=>new St(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ke),this.block=()=>new tt(this._viewportRuler,this._document),this.reposition=Ke=>new ft(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ke),this._document=Vt}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(g.mF),R.LFG(g.rL),R.LFG(R.R0b),R.LFG(e.K0))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})();class Dt{constructor(he){if(this.scrollStrategy=new $e,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,he){const ne=Object.keys(he);for(const Ne of ne)void 0!==he[Ne]&&(this[Ne]=he[Ne])}}}class qn{constructor(he,ne){this.connectionPair=he,this.scrollableViewProperties=ne}}let An=(()=>{class Bt{constructor(ne){this._attachedOverlays=[],this._document=ne}ngOnDestroy(){this.detach()}add(ne){this.remove(ne),this._attachedOverlays.push(ne)}remove(ne){const Ne=this._attachedOverlays.indexOf(ne);Ne>-1&&this._attachedOverlays.splice(Ne,1),0===this._attachedOverlays.length&&this.detach()}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(e.K0))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})(),Wn=(()=>{class Bt extends An{constructor(ne,Ne){super(ne),this._ngZone=Ne,this._keydownListener=yt=>{const Vt=this._attachedOverlays;for(let Ke=Vt.length-1;Ke>-1;Ke--)if(Vt[Ke]._keydownEvents.observers.length>0){const Ge=Vt[Ke]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ge.next(yt)):Ge.next(yt);break}}}add(ne){super.add(ne),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(e.K0),R.LFG(R.R0b,8))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})(),Ln=(()=>{class Bt extends An{constructor(ne,Ne,yt){super(ne),this._platform=Ne,this._ngZone=yt,this._cursorStyleIsSet=!1,this._pointerDownListener=Vt=>{this._pointerDownEventTarget=(0,ve.sA)(Vt)},this._clickListener=Vt=>{const Ke=(0,ve.sA)(Vt),Ge="click"===Vt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ke;this._pointerDownEventTarget=null;const ht=this._attachedOverlays.slice();for(let Kt=ht.length-1;Kt>-1;Kt--){const we=ht[Kt];if(we._outsidePointerEvents.observers.length<1||!we.hasAttached())continue;if(we.overlayElement.contains(Ke)||we.overlayElement.contains(Ge))break;const ct=we._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(Vt)):ct.next(Vt)}}}add(ne){if(super.add(ne),!this._isAttached){const Ne=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ne)):this._addEventListeners(Ne),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ne.style.cursor,Ne.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ne=this._document.body;ne.removeEventListener("pointerdown",this._pointerDownListener,!0),ne.removeEventListener("click",this._clickListener,!0),ne.removeEventListener("auxclick",this._clickListener,!0),ne.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ne.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ne){ne.addEventListener("pointerdown",this._pointerDownListener,!0),ne.addEventListener("click",this._clickListener,!0),ne.addEventListener("auxclick",this._clickListener,!0),ne.addEventListener("contextmenu",this._clickListener,!0)}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(e.K0),R.LFG(ve.t4),R.LFG(R.R0b,8))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})(),Hn=(()=>{class Bt{constructor(ne,Ne){this._platform=Ne,this._document=ne}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ne="cdk-overlay-container";if(this._platform.isBrowser||(0,ve.Oy)()){const yt=this._document.querySelectorAll(`.${ne}[platform="server"], .${ne}[platform="test"]`);for(let Vt=0;Vt<yt.length;Vt++)yt[Vt].remove()}const Ne=this._document.createElement("div");Ne.classList.add(ne),(0,ve.Oy)()?Ne.setAttribute("platform","test"):this._platform.isBrowser||Ne.setAttribute("platform","server"),this._document.body.appendChild(Ne),this._containerElement=Ne}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(e.K0),R.LFG(ve.t4))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})();class yi{constructor(he,ne,Ne,yt,Vt,Ke,Ge,ht,Kt){this._portalOutlet=he,this._host=ne,this._pane=Ne,this._config=yt,this._ngZone=Vt,this._keyboardDispatcher=Ke,this._document=Ge,this._location=ht,this._outsideClickDispatcher=Kt,this._backdropElement=null,this._backdropClick=new xt.x,this._attachments=new xt.x,this._detachments=new xt.x,this._locationChanges=mt.w0.EMPTY,this._backdropClickHandler=we=>this._backdropClick.next(we),this._backdropTransitionendHandler=we=>{this._disposeBackdrop(we.target)}
1,this._keydownEvents=new xt.x,this._outsidePointerEvents=new xt.x,yt.scrollStrategy&&(this._scrollStrategy=yt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=yt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(he){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ne=this._portalOutlet.attach(he);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,pn.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ne}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const he=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),he}dispose(){const he=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,he&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(he){he!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=he,this.hasAttached()&&(he.attach(this),this.updatePosition()))}updateSize(he){this._config={...this._config,...he},this._updateElementSize()}setDirection(he){this._config={...this._config,direction:he},this._updateElementDirection()}addPanelClass(he){this._pane&&this._toggleClasses(this._pane,he,!0)}removePanelClass(he){this._pane&&this._toggleClasses(this._pane,he,!1)}getDirection(){const he=this._config.direction;return he?"string"==typeof he?he:he.value:"ltr"}updateScrollStrategy(he){he!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=he,this.hasAttached()&&(he.attach(this),he.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const he=this._pane.style;he.width=(0,me.HM)(this._config.width),he.height=(0,me.HM)(this._config.height),he.minWidth=(0,me.HM)(this._config.minWidth),he.minHeight=(0,me.HM)(this._config.minHeight),he.maxWidth=(0,me.HM)(this._config.maxWidth),he.maxHeight=(0,me.HM)(this._config.maxHeight)}_togglePointerEvents(he){this._pane.style.pointerEvents=he?"":"none"}_attachBackdrop(){const he="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(he)})}):this._backdropElement.classList.add(he)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const he=this._backdropElement;!he||(he.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{he.addEventListener("transitionend",this._backdropTransitionendHandler)}),he.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(he)},500)))}_toggleClasses(he,ne,Ne){const yt=(0,me.Eq)(ne||[]).filter(Vt=>!!Vt);yt.length&&(Ne?he.classList.add(...yt):he.classList.remove(...yt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const he=this._ngZone.onStable.pipe((0,$t.R)((0,zt.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),he.unsubscribe())})})}_disposeScrollStrategy(){const he=this._scrollStrategy;he&&(he.disable(),he.detach&&he.detach())}_disposeBackdrop(he){he&&(he.removeEventListener("click",this._backdropClickHandler),he.removeEventListener("transitionend",this._backdropTransitionendHandler),he.remove(),this._backdropElement===he&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _n="cdk-overlay-connected-position-bounding-box",ui=/([A-Za-z%]+)$/;
vendor: 4,513 bytes, line 1
1class zn{constructor(he,ne,Ne,yt,Vt){this._viewportRuler=ne,this._document=Ne,this._platform=yt,this._overlayContainer=Vt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new xt.x,this._resizeSubscription=mt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(he)}get positions(){return this._preferredPositions}attach(he){this._validatePositions(),he.hostElement.classList.add(_n),this._overlayRef=he,this._boundingBox=he.hostElement,this._pane=he.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const he=this._originRect,ne=this._overlayRect,Ne=this._viewportRect,yt=this._containerRect,Vt=[];let Ke;for(let Ge of this._preferredPositions){let ht=this._getOriginPoint(he,yt,Ge),Kt=this._getOverlayPoint(ht,ne,Ge),we=this._getOverlayFit(Kt,ne,Ne,Ge);if(we.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ge,ht);this._canFitWithFlexibleDimensions(we,Kt,Ne)?Vt.push({position:Ge,origin:ht,overlayRect:ne,boundingBoxRect:this._calculateBoundingBoxRect(ht,Ge)}):(!Ke||Ke.overlayFit.visibleArea<we.visibleArea)&&(Ke={overlayFit:we,overlayPoint:Kt,originPoint:ht,position:Ge,overlayRect:ne})}if(Vt.length){let Ge=null,ht=-1;for(const Kt of Vt){const we=Kt.boundingBoxRect.width*Kt.boundingBoxRect.height*(Kt.position.weight||1);we>ht&&(ht=we,Ge=Kt)}return this._isPushed=!1,void this._applyPosition(Ge.position,Ge.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ke.position,Ke.originPoint);this._applyPosition(Ke.position,Ke.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ri(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_n),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const he=this._lastPosition;if(he){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ne=this._getOriginPoint(this._originRect,this._containerRect,he);this._applyPosition(he,ne)}else this.apply()}withScrollableContainers(he){return this._scrollables=he,this}withPositions(he){return this._preferredPositions=he,-1===he.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(he){return this._viewportMargin=he,this}withFlexibleDimensions(he=!0){return this._hasFlexibleDimensions=he,this}withGrowAfterOpen(he=!0){return this._growAfterOpen=he,this}withPush(he=!0){return this._canPush=he,this}withLockedPosition(he=!0){return this._positionLocked=he,this}setOrigin(he){return this._origin=he,this}withDefaultOffsetX(he){return this._offsetX=he,this}withDefaultOffsetY(he){return this._offsetY=he,this}withTransformOriginOn(he){return this._transformOriginSelector=he,this}_getOriginPoint(he,ne,Ne){let yt,Vt;if("center"==Ne.originX)yt=he.left+he.width/2;else{const Ke=this._isRtl()?he.right:he.left,Ge=this._isRtl()?he.left:he.right;yt="start"==Ne.originX?Ke:Ge}return ne.left<0&&(yt-=ne.left),Vt="center"==Ne.originY?he.top+he.height/2:"top"==Ne.originY?he.top:he.bottom,ne.top<0&&(Vt-=ne.top),{x:yt,y:Vt}}_getOverlayPoint(he,ne,Ne){let yt,Vt;
vendor: 1,339 bytes, line 1
1return yt="center"==Ne.overlayX?-ne.width/2:"start"===Ne.overlayX?this._isRtl()?-ne.width:0:this._isRtl()?0:-ne.width,Vt="center"==Ne.overlayY?-ne.height/2:"top"==Ne.overlayY?0:-ne.height,{x:he.x+yt,y:he.y+Vt}}_getOverlayFit(he,ne,Ne,yt){const Vt=li(ne);let{x:Ke,y:Ge}=he,ht=this._getOffset(yt,"x"),Kt=this._getOffset(yt,"y");ht&&(Ke+=ht),Kt&&(Ge+=Kt);let jt=0-Ge,Mn=Ge+Vt.height-Ne.height,Jn=this._subtractOverflows(Vt.width,0-Ke,Ke+Vt.width-Ne.width),Mi=this._subtractOverflows(Vt.height,jt,Mn),Ti=Jn*Mi;return{visibleArea:Ti,isCompletelyWithinViewport:Vt.width*Vt.height===Ti,fitsInViewportVertically:Mi===Vt.height,fitsInViewportHorizontally:Jn==Vt.width}}_canFitWithFlexibleDimensions(he,ne,Ne){if(this._hasFlexibleDimensions){const yt=Ne.bottom-ne.y,Vt=Ne.right-ne.x,Ke=Pi(this._overlayRef.getConfig().minHeight),Ge=Pi(this._overlayRef.getConfig().minWidth),Kt=he.fitsInViewportHorizontally||null!=Ge&&Ge<=Vt;return(he.fitsInViewportVertically||null!=Ke&&Ke<=yt)&&Kt}return!1}_pushOverlayOnScreen(he,ne,Ne){if(this._previousPushAmount&&this._positionLocked)return{x:he.x+this._previousPushAmount.x,y:he.y+this._previousPushAmount.y};const yt=li(ne),Vt=this._viewportRect,Ke=Math.max(he.x+yt.width-Vt.width,0),Ge=Math.max(he.y+yt.height-Vt.height,0),ht=Math.max(Vt.top-Ne.top-he.y,0),Kt=Math.max(Vt.left-Ne.left-he.x,0);let we=0,ct=0;
1return we=yt.width<=Vt.width?Kt||-Ke:he.x<this._viewportMargin?Vt.left-Ne.left-he.x:0,ct=yt.height<=Vt.height?ht||-Ge:he.y<this._viewportMargin?Vt.top-Ne.top-he.y:0,this._previousPushAmount={x:we,y:ct},{x:he.x+we,y:he.y+ct}}_applyPosition(he,ne){if(this._setTransformOrigin(he),this._setOverlayElementStyles(ne,he),this._setBoundingBoxStyles(ne,he),he.panelClass&&this._addPanelClasses(he.panelClass),this._lastPosition=he,this._positionChanges.observers.length){const Ne=this._getScrollVisibility(),yt=new qn(he,Ne);this._positionChanges.next(yt)}this._isInitialRender=!1}_setTransformOrigin(he){if(!this._transformOriginSelector)return;const ne=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ne,yt=he.overlayY;Ne="center"===he.overlayX?"center":this._isRtl()?"start"===he.overlayX?"right":"left":"start"===he.overlayX?"left":"right";for(let Vt=0;Vt<ne.length;Vt++)ne[Vt].style.transformOrigin=`${Ne} ${yt}`}_calculateBoundingBoxRect(he,ne){const Ne=this._viewportRect,yt=this._isRtl();let Vt,Ke,Ge,we,ct,jt;if("top"===ne.overlayY)Ke=he.y,Vt=Ne.height-Ke+this._viewportMargin;else if("bottom"===ne.overlayY)Ge=Ne.height-he.y+2*this._viewportMargin,Vt=Ne.height-Ge+this._viewportMargin;else{const Mn=Math.min(Ne.bottom-he.y+Ne.top,he.y),Jn=this._lastBoundingBoxSize.height;Vt=2*Mn,Ke=he.y-Mn,Vt>Jn&&!this._isInitialRender&&!this._growAfterOpen&&(Ke=he.y-Jn/2)}if("end"===ne.overlayX&&!yt||"start"===ne.overlayX&&yt)jt=Ne.width-he.x+this._viewportMargin,we=he.x-this._viewportMargin;else if("start"===ne.overlayX&&!yt||"end"===ne.overlayX&&yt)ct=he.x,we=Ne.right-he.x;else{const Mn=Math.min(Ne.right-he.x+Ne.left,he.x),Jn=this._lastBoundingBoxSize.width;we=2*Mn,ct=he.x-Mn,we>Jn&&!this._isInitialRender&&!this._growAfterOpen&&(ct=he.x-Jn/2)}return{top:Ke,left:ct,bottom:Ge,right:jt,width:we,height:Vt}}_setBoundingBoxStyles(he,ne){const Ne=this._calculateBoundingBoxRect(he,ne);!this._isInitialRender&&!this._growAfterOpen&&(Ne.height=Math.min(Ne.height,this._lastBoundingBoxSize.height),Ne.width=Math.min(Ne.width,this._lastBoundingBoxSize.width));const yt={};if(this._hasExactPosition())yt.top=yt.left="0",yt.bottom=yt.right=yt.maxHeight=yt.maxWidth="",yt.width=yt.height="100%";else{const Vt=this._overlayRef.getConfig().maxHeight,Ke=this._overlayRef.getConfig().maxWidth;yt.height=(0,me.HM)(Ne.height),yt.top=(0,me.HM)(Ne.top),yt.bottom=(0,me.HM)(Ne.bottom),yt.width=(0,me.HM)(Ne.width),yt.left=(0,me.HM)(Ne.left),yt.right=(0,me.HM)(Ne.right),yt.alignItems="center"===ne.overlayX?"center":"end"===ne.overlayX?"flex-end":"flex-start",yt.justifyContent="center"===ne.overlayY?"center":"bottom"===ne.overlayY?"flex-end":"flex-start",Vt&&(yt.maxHeight=(0,me.HM)(Vt)),Ke&&(yt.maxWidth=(0,me.HM)(Ke))}this._lastBoundingBoxSize=Ne,ri(this._boundingBox.style,yt)}_resetBoundingBoxStyles(){ri(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ri(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(he,ne){const Ne={},yt=this._hasExactPosition(),Vt=this._hasFlexibleDimensions,Ke=this._overlayRef.getConfig();if(yt){const we=this._viewportRuler.getViewportScrollPosition();ri(Ne,this._getExactOverlayY(ne,he,we)),ri(Ne,this._getExactOverlayX(ne,he,we))}else Ne.position="static";let Ge="",ht=this._getOffset(ne,"x"),Kt=this._getOffset(ne,"y");ht&&(Ge+=`translateX(${ht}px) `),Kt&&(Ge+=`translateY(${Kt}
1px)`),Ne.transform=Ge.trim(),Ke.maxHeight&&(yt?Ne.maxHeight=(0,me.HM)(Ke.maxHeight):Vt&&(Ne.maxHeight="")),Ke.maxWidth&&(yt?Ne.maxWidth=(0,me.HM)(Ke.maxWidth):Vt&&(Ne.maxWidth="")),ri(this._pane.style,Ne)}_getExactOverlayY(he,ne,Ne){let yt={top:"",bottom:""},Vt=this._getOverlayPoint(ne,this._overlayRect,he);return this._isPushed&&(Vt=this._pushOverlayOnScreen(Vt,this._overlayRect,Ne)),"bottom"===he.overlayY?yt.bottom=this._document.documentElement.clientHeight-(Vt.y+this._overlayRect.height)+"px":yt.top=(0,me.HM)(Vt.y),yt}_getExactOverlayX(he,ne,Ne){let Ke,yt={left:"",right:""},Vt=this._getOverlayPoint(ne,this._overlayRect,he);return this._isPushed&&(Vt=this._pushOverlayOnScreen(Vt,this._overlayRect,Ne)),Ke=this._isRtl()?"end"===he.overlayX?"left":"right":"end"===he.overlayX?"right":"left","right"===Ke?yt.right=this._document.documentElement.clientWidth-(Vt.x+this._overlayRect.width)+"px":yt.left=(0,me.HM)(Vt.x),yt}_getScrollVisibility(){const he=this._getOriginRect(),ne=this._pane.getBoundingClientRect(),Ne=this._scrollables.map(yt=>yt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ie(he,Ne),isOriginOutsideView:je(he,Ne),isOverlayClipped:ie(ne,Ne),isOverlayOutsideView:je(ne,Ne)}}_subtractOverflows(he,...ne){return ne.reduce((Ne,yt)=>Ne-Math.max(yt,0),he)}_getNarrowedViewportRect(){const he=this._document.documentElement.clientWidth,ne=this._document.documentElement.clientHeight,Ne=this._viewportRuler.getViewportScrollPosition();return{top:Ne.top+this._viewportMargin,left:Ne.left+this._viewportMargin,right:Ne.left+he-this._viewportMargin,bottom:Ne.top+ne-this._viewportMargin,width:he-2*this._viewportMargin,height:ne-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(he,ne){return"x"===ne?he.offsetX??this._offsetX:he.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(he){this._pane&&(0,me.Eq)(he).forEach(ne=>{""!==ne&&-1===this._appliedPanelClasses.indexOf(ne)&&(this._appliedPanelClasses.push(ne),this._pane.classList.add(ne))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(he=>{this._pane.classList.remove(he)}),this._appliedPanelClasses=[])}_getOriginRect(){const he=this._origin;if(he instanceof R.SBq)return he.nativeElement.getBoundingClientRect();if(he instanceof Element)return he.getBoundingClientRect();const ne=he.width||0,Ne=he.height||0;return{top:he.y,bottom:he.y+Ne,left:he.x,right:he.x+ne,height:Ne,width:ne}}}function ri(Bt,he){for(let ne in he)he.hasOwnProperty(ne)&&(Bt[ne]=he[ne]);return Bt}function Pi(Bt){if("number"!=typeof Bt&&null!=Bt){const[he,ne]=Bt.split(ui);return ne&&"px"!==ne?null:parseFloat(he)}return Bt||null}function li(Bt){return{top:Math.floor(Bt.top),right:Math.floor(Bt.right),bottom:Math.floor(Bt.bottom),left:Math.floor(Bt.left),width:Math.floor(Bt.width),height:Math.floor(Bt.height)}}const ei="cdk-global-overlay-wrapper";class Ze{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(he){const ne=he.getConfig();this._overlayRef=he,this._width&&!ne.width&&he.updateSize({width:this._width}),this._height&&!ne.height&&he.updateSize({height:this._height}),he.hostElement.classList.add(ei),this._isDisposed=!1}top(he=""){return this._bottomOffset="",this._topOffset=he,this._alignItems="flex-start",this}left(he=""){return this._rightOffset="",this._leftOffset=he,this._justifyContent="flex-start",this}bottom(he=""){return this._topOffset="",this._bottomOffset=he,this._alignItems="flex-end",this}right(he=""){return this._leftOffset="",this._rightOffset=he,this._justifyContent="flex-end",this}width(he=""){return this._overlayRef?this._overlayRef.updateSize({width:he}):this._width=he,this}height(he=""){return this._overlayRef?this._overlayRef.updateSize({height:he}):this._height=he,this}centerHorizontally(he=""){return this.left(he),this._justifyContent="center",this}centerVertically(he=""){return this.top(he),this._alignItems="center",this}
1apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const he=this._overlayRef.overlayElement.style,ne=this._overlayRef.hostElement.style,Ne=this._overlayRef.getConfig(),{width:yt,height:Vt,maxWidth:Ke,maxHeight:Ge}=Ne,ht=!("100%"!==yt&&"100vw"!==yt||Ke&&"100%"!==Ke&&"100vw"!==Ke),Kt=!("100%"!==Vt&&"100vh"!==Vt||Ge&&"100%"!==Ge&&"100vh"!==Ge);he.position=this._cssPosition,he.marginLeft=ht?"0":this._leftOffset,he.marginTop=Kt?"0":this._topOffset,he.marginBottom=this._bottomOffset,he.marginRight=this._rightOffset,ht?ne.justifyContent="flex-start":"center"===this._justifyContent?ne.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ne.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ne.justifyContent="flex-start"):ne.justifyContent=this._justifyContent,ne.alignItems=Kt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const he=this._overlayRef.overlayElement.style,ne=this._overlayRef.hostElement,Ne=ne.style;ne.classList.remove(ei),Ne.justifyContent=Ne.alignItems=he.marginTop=he.marginBottom=he.marginLeft=he.marginRight=he.position="",this._overlayRef=null,this._isDisposed=!0}}let Oe=(()=>{class Bt{constructor(ne,Ne,yt,Vt){this._viewportRuler=ne,this._document=Ne,this._platform=yt,this._overlayContainer=Vt}global(){return new Ze}flexibleConnectedTo(ne){return new zn(ne,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(g.rL),R.LFG(e.K0),R.LFG(ve.t4),R.LFG(Hn))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac,providedIn:"root"}),Bt})(),P=0,le=(()=>{class Bt{constructor(ne,Ne,yt,Vt,Ke,Ge,ht,Kt,we,ct,jt){this.scrollStrategies=ne,this._overlayContainer=Ne,this._componentFactoryResolver=yt,this._positionBuilder=Vt,this._keyboardDispatcher=Ke,this._injector=Ge,this._ngZone=ht,this._document=Kt,this._directionality=we,this._location=ct,this._outsideClickDispatcher=jt}create(ne){const Ne=this._createHostElement(),yt=this._createPaneElement(Ne),Vt=this._createPortalOutlet(yt),Ke=new Dt(ne);return Ke.direction=Ke.direction||this._directionality.value,new yi(Vt,Ne,yt,Ke,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ne){const Ne=this._document.createElement("div");return Ne.id="cdk-overlay-"+P++,Ne.classList.add("cdk-overlay-pane"),ne.appendChild(Ne),Ne}_createHostElement(){const ne=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ne),ne}_createPortalOutlet(ne){return this._appRef||(this._appRef=this._injector.get(R.z2F)),new sn(ne,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.LFG(Wt),R.LFG(Hn),R.LFG(R._Vd),R.LFG(Oe),R.LFG(Wn),R.LFG(R.zs3),R.LFG(R.R0b),R.LFG(e.K0),R.LFG(ae.Is),R.LFG(e.Ye),R.LFG(Ln))},Bt.\u0275prov=R.Yz7({token:Bt,factory:Bt.\u0275fac}),Bt})();const O=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Q=new R.OlP("cdk-connected-overlay-scroll-strategy");let ke=(()=>{class Bt{constructor(ne){this.elementRef=ne}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.Y36(R.SBq))},Bt.\u0275dir=R.lG2({type:Bt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Bt})(),De=(()=>{class Bt{constructor(ne,Ne,yt,Vt,Ke){this._overlay=ne,this._dir=Ke,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=mt.w0.EMPTY,this._attachSubscription=mt.w0.EMPTY,this._detachSubscription=mt.w0.EMPTY,this._positionSubscription=mt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new R.vpe,this.positionChange=new R.vpe,this.attach=new R.vpe,this.detach=new R.vpe,this.overlayKeydown=new R.vpe,this.overlayOutsideClick=new R.vpe,this._templatePortal=new We(Ne,yt),this._scrollStrategyFactory=Vt,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(ne){this._offsetX=ne,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ne){this._offsetY=ne,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ne){this._hasBackdrop=(0,me.Ig)(ne)}get lockPosition(){return this._lockPosition}set lockPosition(ne){this._lockPosition=(0,me.Ig)(ne)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ne){this._flexibleDimensions=(0,me.Ig)(ne)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ne){this._growAfterOpen=(0,me.Ig)(ne)}get push(){return this._push}set push(ne){this._push=(0,me.Ig)(ne)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ne){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ne.origin&&this.open&&this._position.apply()),ne.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=O);const ne=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ne.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ne.detachments().subscribe(()=>this.detach.emit()),ne.keydownEvents().subscribe(Ne=>{this.overlayKeydown.next(Ne),Ne.keyCode===Ut.hY&&!this.disableClose&&!(0,Ut.Vb)(Ne)&&(Ne.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ne=>{this.overlayOutsideClick.next(Ne)})}_buildConfig(){const ne=this._position=this.positionStrategy||this._createPositionStrategy(),Ne=new Dt({direction:this._dir,positionStrategy:ne,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ne.width=this.width),(this.height||0===this.height)&&(Ne.height=this.height),(this.minWidth||0===this.minWidth)&&(Ne.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ne.minHeight=this.minHeight),this.backdropClass&&(Ne.backdropClass=this.backdropClass),this.panelClass&&(Ne.panelClass=this.panelClass),Ne}_updatePositionStrategy(ne){const Ne=this.positions.map(yt=>({originX:yt.originX,originY:yt.originY,overlayX:yt.overlayX,overlayY:yt.overlayY,offsetX:yt.offsetX||this.offsetX,offsetY:yt.offsetY||this.offsetY,panelClass:yt.panelClass||void 0}));return ne.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ne).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ne=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ne),ne}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin
1instanceof ke?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ne=>{this.backdropClick.emit(ne)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,Vn.o)(()=>this.positionChange.observers.length>0)).subscribe(ne=>{this.positionChange.emit(ne),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.Y36(le),R.Y36(R.Rgc),R.Y36(R.s_b),R.Y36(Q),R.Y36(ae.Is,8))},Bt.\u0275dir=R.lG2({type:Bt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[R.TTD]}),Bt})();const Je={provide:Q,deps:[le],useFactory:function ye(Bt){return()=>Bt.scrollStrategies.reposition()}};let wt=(()=>{class Bt{}return Bt.\u0275fac=function(ne){return new(ne||Bt)},Bt.\u0275mod=R.oAB({type:Bt}),Bt.\u0275inj=R.cJS({providers:[le,Je],imports:[[ae.vT,it,g.Cl],g.Cl]}),Bt})();var st=D(3238),Ee=D(7676),V=D(2687),_e=D(5017),Tt=D(4006),un=D(9770),Yn=D(8675),Li=D(3900),Ii=D(9300),qi=D(4004),at=D(1884),Xe=D(7340);const Re=["trigger"],Ie=["panel"];function xe(Bt,he){if(1&Bt&&(R.TgZ(0,"span",8),R._uU(1),R.qZA()),2&Bt){const ne=R.oxw();R.xp6(1),R.Oqu(ne.placeholder)}}function Ot(Bt,he){if(1&Bt&&(R.TgZ(0,"span",12),R._uU(1),R.qZA()),2&Bt){const ne=R.oxw(2);R.xp6(1),R.Oqu(ne.triggerValue)}}function en(Bt,he){1&Bt&&R.Hsn(0,0,["*ngSwitchCase","true"])}function pt(Bt,he){if(1&Bt&&(R.TgZ(0,"span",9),R.YNc(1,Ot,2,1,"span",10),R.YNc(2,en,1,0,"ng-content",11),R.qZA()),2&Bt){const ne=R.oxw();R.Q6J("ngSwitch",!!ne.customTrigger),R.xp6(2),R.Q6J("ngSwitchCase",!0)}}function Gt(Bt,he){if(1&Bt){const ne=R.EpF();R.TgZ(0,"div",13)(1,"div",14,15),R.NdJ("@transformPanel.done",function(yt){R.CHM(ne);const Vt=R.oxw();return R.KtG(Vt._panelDoneAnimatingStream.next(yt.toState))})("keydown",function(yt){R.CHM(ne);const Vt=R.oxw();return R.KtG(Vt._handleKeydown(yt))}),R.Hsn(3,1),R.qZA()()}if(2&Bt){const ne=R.oxw();R.Q6J("@transformPanelWrap",void 0),R.xp6(1),R.Gre("mat-select-panel ",ne._getPanelTheme(),""),R.Udp("transform-origin",ne._transformOrigin)("font-size",ne._triggerFontSize,"px"),R.Q6J("ngClass",ne.panelClass)("@transformPanel",ne.multiple?"showing-multiple":"showing"),R.uIk("id",ne.id+"-panel")("aria-multiselectable",ne.multiple)("aria-label",ne.ariaLabel||null)("aria-labelledby",ne._getPanelAriaLabelledby())}}const Ce=[[["mat-select-trigger"]],"*"],Ue=["mat-select-trigger","*"],ue={transformPanelWrap:(0,Xe.X$)("transformPanelWrap",[(0,Xe.eR)("* => void",(0,Xe.IO)("@transformPanel",[(0,Xe.pV)()],{optional:!0}))]),transformPanel:(0,Xe.X$)("transformPanel",[(0,Xe.SB)("void",(0,Xe.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0}
1)),(0,Xe.SB)("showing",(0,Xe.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,Xe.SB)("showing-multiple",(0,Xe.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,Xe.eR)("void => *",(0,Xe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,Xe.eR)("* => void",(0,Xe.jt)("100ms 25ms linear",(0,Xe.oB)({opacity:0})))])};let Nn=0;const ti=new R.OlP("mat-select-scroll-strategy"),Ai=new R.OlP("MAT_SELECT_CONFIG"),fr={provide:ti,deps:[le],useFactory:function cr(Bt){return()=>Bt.scrollStrategies.reposition()}};class xr{constructor(he,ne){this.source=he,this.value=ne}}const Yi=(0,st.Kr)((0,st.sb)((0,st.Id)((0,st.FD)(class{constructor(Bt,he,ne,Ne,yt){this._elementRef=Bt,this._defaultErrorStateMatcher=he,this._parentForm=ne,this._parentFormGroup=Ne,this.ngControl=yt}})))),Zi=new R.OlP("MatSelectTrigger");let Ni=(()=>{class Bt extends Yi{constructor(ne,Ne,yt,Vt,Ke,Ge,ht,Kt,we,ct,jt,Mn,Jn,Mi){super(Ke,Vt,ht,Kt,ct),this._viewportRuler=ne,this._changeDetectorRef=Ne,this._ngZone=yt,this._dir=Ge,this._parentFormField=we,this._liveAnnouncer=Jn,this._defaultOptions=Mi,this._panelOpen=!1,this._compareWith=(Ti,$i)=>Ti===$i,this._uid="mat-select-"+Nn++,this._triggerAriaLabelledBy=null,this._destroy=new xt.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Nn++,this._panelDoneAnimatingStream=new xt.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,un.P)(()=>{const Ti=this.options;return Ti?Ti.changes.pipe((0,Yn.O)(Ti),(0,Li.w)(()=>(0,zt.T)(...Ti.map($i=>$i.onSelectionChange)))):this._ngZone.onStable.pipe((0,pn.q)(1),(0,Li.w)(()=>this.optionSelectionChanges))}),this.openedChange=new R.vpe,this._openedStream=this.openedChange.pipe((0,Ii.h)(Ti=>Ti),(0,qi.U)(()=>{}
1)),this._closedStream=this.openedChange.pipe((0,Ii.h)(Ti=>!Ti),(0,qi.U)(()=>{})),this.selectionChange=new R.vpe,this.valueChange=new R.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Mi?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Mi.typeaheadDebounceInterval),this._scrollStrategyFactory=Mn,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(jt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ne){this._placeholder=ne,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Tt.kI.required)??!1}set required(ne){this._required=(0,me.Ig)(ne),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ne){this._multiple=(0,me.Ig)(ne)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ne){this._disableOptionCentering=(0,me.Ig)(ne)}get compareWith(){return this._compareWith}set compareWith(ne){this._compareWith=ne,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ne){this._assignValue(ne)&&this._onChange(ne)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ne){this._typeaheadDebounceInterval=(0,me.su)(ne)}get id(){return this._id}set id(ne){this._id=ne||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new _e.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,at.x)(),(0,$t.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,$t.R)(this._destroy)).subscribe(ne=>{ne.added.forEach(Ne=>Ne.select()),ne.removed.forEach(Ne=>Ne.deselect())}),this.options.changes.pipe((0,Yn.O)(null),(0,$t.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ne=this._getTriggerAriaLabelledby(),Ne=this.ngControl;if(ne!==this._triggerAriaLabelledBy){const yt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ne,ne?yt.setAttribute("aria-labelledby",ne):yt.removeAttribute("aria-labelledby")}Ne&&(this._previousControl!==Ne.control&&(void 0!==this._previousControl&&null!==Ne.disabled&&Ne.disabled!==this.disabled&&(this.disabled=Ne.disabled),this._previousControl=Ne.control),this.updateErrorState())}ngOnChanges(ne){ne.disabled&&this.stateChanges.next(),ne.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ne){this._assignValue(ne)}registerOnChange(ne){this._onChange=ne}registerOnTouched(ne){this._onTouched=ne}setDisabledState(ne){this.disabled=ne,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ne=this._selectionModel.selected.map(Ne=>Ne.viewValue);return this._isRtl()&&ne.reverse(),ne.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ne){this.disabled||(this.panelOpen?this._handleOpenKeydown(ne):this._handleClosedKeydown(ne))}_handleClosedKeydown(ne){const Ne=ne.keyCode,yt=Ne===Ut.JH||Ne===Ut.LH||Ne===Ut.oh||Ne===Ut.SV,Vt=Ne===Ut.K5||Ne===Ut.L_,Ke=this._keyManager;if(!Ke.isTyping()&&Vt&&!(0,Ut.Vb)(ne)||(this.multiple||ne.altKey)&&yt)ne.preventDefault(),this.open();else if(!this.multiple){const Ge=this.selected;Ke.onKeydown(ne);const ht=this.selected;ht&&Ge!==ht&&this._liveAnnouncer.announce(ht.viewValue,1e4)}}_handleOpenKeydown(ne){const Ne=this._keyManager,yt=ne.keyCode,Vt=yt===Ut.JH||yt===Ut.LH,Ke=Ne.isTyping();if(Vt&&ne.altKey)ne.preventDefault(),this.close();else if(Ke||yt!==Ut.K5&&yt!==Ut.L_||!Ne.activeItem||(0,Ut.Vb)(ne))if(!Ke&&this._multiple&&yt===Ut.A&&ne.ctrlKey){ne.preventDefault();const Ge=this.options.some(ht=>!ht.disabled&&!ht.selected);this.options.forEach(ht=>
1{ht.disabled||(Ge?ht.select():ht.deselect())})}else{const Ge=Ne.activeItemIndex;Ne.onKeydown(ne),this._multiple&&Vt&&ne.shiftKey&&Ne.activeItem&&Ne.activeItemIndex!==Ge&&Ne.activeItem._selectViaInteraction()}else ne.preventDefault(),Ne.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,pn.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(ne){if(this._selectionModel.selected.forEach(Ne=>Ne.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ne)Array.isArray(ne),ne.forEach(Ne=>this._selectOptionByValue(Ne)),this._sortValues();else{const Ne=this._selectOptionByValue(ne);Ne?this._keyManager.updateActiveItem(Ne):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ne){const Ne=this.options.find(yt=>{if(this._selectionModel.isSelected(yt))return!1;try{return null!=yt.value&&this._compareWith(yt.value,ne)}catch{return!1}});return Ne&&this._selectionModel.select(Ne),Ne}_assignValue(ne){return!!(ne!==this._value||this._multiple&&Array.isArray(ne))&&(this.options&&this._setSelectionByValue(ne),this._value=ne,!0)}_initKeyManager(){this._keyManager=new V.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,$t.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,$t.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const ne=(0,zt.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,$t.R)(ne)).subscribe(Ne=>{this._onSelect(Ne.source,Ne.isUserInput),Ne.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,zt.T)(...this.options.map(Ne=>Ne._stateChanges)).pipe((0,$t.R)(ne)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ne,Ne){const yt=this._selectionModel.isSelected(ne);null!=ne.value||this._multiple?(yt!==ne.selected&&(ne.selected?this._selectionModel.select(ne):this._selectionModel.deselect(ne)),Ne&&this._keyManager.setActiveItem(ne),this.multiple&&(this._sortValues(),Ne&&this.focus())):(ne.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ne.value)),yt!==this._selectionModel.isSelected(ne)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ne=this.options.toArray();this._selectionModel.sort((Ne,yt)=>this.sortComparator?this.sortComparator(Ne,yt,ne):ne.indexOf(Ne)-ne.indexOf(yt)),this.stateChanges.next()}}_propagateChanges(ne){let Ne=null;Ne=this.multiple?this.selected.map(yt=>yt.value):this.selected?this.selected.value:ne,this._value=Ne,this.valueChange.emit(Ne),this._onChange(Ne),this.selectionChange.emit(this._getChangeEvent(Ne)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ne){this._elementRef.nativeElement.focus(ne)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ne=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ne?ne+" ":"")+this.ariaLabelledby:ne}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ne=this._parentFormField?.getLabelId();let Ne=(ne?ne+" ":"")+this._valueId;return this.ariaLabelledby&&(Ne+=" "+this.ariaLabelledby),Ne}_panelDoneAnimating(ne){this.openedChange.emit(ne)}setDescribedByIds(ne){this._ariaDescribedby=ne.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Bt.\u0275fac=function(ne){return new(ne||Bt)(R.Y36(g.rL),R.Y36(R.sBO),R.Y36(R.R0b),R.Y36(st.rD),R.Y36(R.SBq),R.Y36(ae.Is,8),R.Y36(Tt.F,8),R.Y36(Tt.sg,8),R.Y36(Ee.G_,8),R.Y36(Tt.a5,10),R.$8M("tabindex"),R.Y36(ti),R.Y36(V.Kd),R.Y36(Ai,8))},Bt.\u0275dir=R.lG2({type:Bt,viewQuery:function(ne,Ne){if(1&ne&&(R.Gf(Re,5),R.Gf(Ie,5),R.Gf(De,5)),2&ne){let yt;R.iGM(yt=R.CRH())&&(Ne.trigger=yt.first),R.iGM(yt=R.CRH())&&(Ne.panel=yt.first),R.iGM(yt=R.CRH())&&(Ne._overlayDir=yt.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[R.qOj,R.TTD]}),Bt})(),jr=(()=>{class Bt extends Ni{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(ne,Ne,yt){const Vt=this._getItemHeight();return Math.min(Math.max(0,Vt*ne-Ne+Vt/2),yt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,$t.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,pn.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ne){const Ne=(0,st.CB)(ne,this.options,this.optionGroups),yt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ne&&1===Ne?0:(0,st.jH)((ne+Ne)*yt,yt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ne){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ne)}_getChangeEvent(ne){return new xr(this,ne)}_calculateOverlayOffsetX(){const ne=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Ne=this._viewportRuler.getViewportSize(),yt=this._isRtl(),Vt=this.multiple?56:32;let Ke;if(this.multiple)Ke=40;else if(this.disableOptionCentering)Ke=16;else{let Kt=this._selectionModel.selected[0]||this.options.first;Ke=Kt&&Kt.group?32:16}yt||(Ke*=-1);const Ge=0-(ne.left+Ke-(yt?Vt:0)),ht=ne.right+Ke-Ne.width+(yt?0:Vt);Ge>0?Ke+=Ge+8:ht>0&&(Ke-=ht+8),this._overlayDir.offsetX=Math.round(Ke),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ne,Ne,yt){const Vt=this._getItemHeight(),Ke=(Vt-this._triggerRect.height)/2,Ge=Math.floor(256/Vt);let ht;return this.disableOptionCentering?0:(ht=0===this._scrollTop?ne*Vt:this._scrollTop===yt?(ne-(this._getItemCount()-Ge))*Vt+(Vt-(this._getItemCount()*Vt-256)%Vt):Ne-Vt/2,Math.round(-1*ht-Ke))}_checkOverlayWithinViewport(ne){const Ne=this._getItemHeight(),yt=this._viewportRuler.getViewportSize(),Vt=this._triggerRect.top-8,Ke=yt.height-this._triggerRect.bottom-8,Ge=Math.abs(this._offsetY),Kt=Math.min(this._getItemCount()*Ne,256)-Ge-this._triggerRect.height;Kt>Ke?this._adjustPanelUp(Kt,Ke):Ge>Vt?this._adjustPanelDown(Ge,Vt,ne):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ne,Ne){const yt=Math.round(ne-Ne);this._scrollTop-=yt,this._offsetY-=yt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ne,Ne,yt){const Vt=Math.round(ne-Ne);if(this._scrollTop+=Vt,this._offsetY+=Vt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=yt)return this._scrollTop=yt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ne=this._getItemHeight(),Ne=this._getItemCount(),yt=Math.min(Ne*ne,256),Ke=Ne*ne-yt;let Ge;Ge=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ge+=(0,st.CB)(Ge,this.options,this.optionGroups);const ht=yt/2;this._scrollTop=this._calculateOverlayScroll(Ge,ht,Ke),this._offsetY=this._calculateOverlayOffsetY(Ge,ht,Ke),this._checkOverlayWithinViewport(Ke)}_getOriginBasedOnOption(){const ne=this._getItemHeight(),Ne=(ne-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-Ne+ne/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Bt.\u0275fac=function(){let he;
1return function(Ne){return(he||(he=R.n5z(Bt)))(Ne||Bt)}}(),Bt.\u0275cmp=R.Xpm({type:Bt,selectors:[["mat-select"]],contentQueries:function(ne,Ne,yt){if(1&ne&&(R.Suo(yt,Zi,5),R.Suo(yt,st.ey,5),R.Suo(yt,st.K7,5)),2&ne){let Vt;R.iGM(Vt=R.CRH())&&(Ne.customTrigger=Vt.first),R.iGM(Vt=R.CRH())&&(Ne.options=Vt),R.iGM(Vt=R.CRH())&&(Ne.optionGroups=Vt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(ne,Ne){1&ne&&R.NdJ("keydown",function(Vt){return Ne._handleKeydown(Vt)})("focus",function(){return Ne._onFocus()})("blur",function(){return Ne._onBlur()}),2&ne&&(R.uIk("id",Ne.id)("tabindex",Ne.tabIndex)("aria-controls",Ne.panelOpen?Ne.id+"-panel":null)("aria-expanded",Ne.panelOpen)("aria-label",Ne.ariaLabel||null)("aria-required",Ne.required.toString())("aria-disabled",Ne.disabled.toString())("aria-invalid",Ne.errorState)("aria-describedby",Ne._ariaDescribedby||null)("aria-activedescendant",Ne._getAriaActiveDescendant()),R.ekj("mat-select-disabled",Ne.disabled)("mat-select-invalid",Ne.errorState)("mat-select-required",Ne.required)("mat-select-empty",Ne.empty)("mat-select-multiple",Ne.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[R._Bn([{provide:Ee.Eo,useExisting:Bt},{provide:st.HF,useExisting:Bt}]),R.qOj],ngContentSelectors:Ue,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ne,Ne){if(1&ne&&(R.F$t(Ce),R.TgZ(0,"div",0,1),R.NdJ("click",function(){return Ne.toggle()}),R.TgZ(3,"div",2),R.YNc(4,xe,2,1,"span",3),R.YNc(5,pt,3,2,"span",4),R.qZA(),R.TgZ(6,"div",5),R._UZ(7,"div",6),R.qZA()(),R.YNc(8,Gt,4,14,"ng-template",7),R.NdJ("backdropClick",function(){return Ne.close()})("attach",function(){return Ne._onAttached()})("detach",function(){return Ne.close()})),2&ne){const yt=R.MAs(1);R.uIk("aria-owns",Ne.panelOpen?Ne.id+"-panel":null),R.xp6(3),R.Q6J("ngSwitch",Ne.empty),R.uIk("id",Ne._valueId),R.xp6(1),R.Q6J("ngSwitchCase",!0),R.xp6(1),R.Q6J("ngSwitchCase",!1),R.xp6(3),R.Q6J("cdkConnectedOverlayPanelClass",Ne._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ne._scrollStrategy)("cdkConnectedOverlayOrigin",yt)("cdkConnectedOverlayOpen",Ne.panelOpen)("cdkConnectedOverlayPositions",Ne._positions)("cdkConnectedOverlayMinWidth",null==Ne._triggerRect?null:Ne._triggerRect.width)("cdkConnectedOverlayOffsetY",Ne._offsetY)}},dependencies:[ke,e.RF,e.n9,e.ED,De,e.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[ue.transformPanelWrap,ue.transformPanel]},changeDetection:0}),Bt})(),Xr=(()=>{class Bt{}return Bt.\u0275fac=function(ne){return new(ne||Bt)},Bt.\u0275mod=R.oAB({type:Bt}),Bt.\u0275inj=R.cJS({providers:[fr],imports:[[e.ez,wt,st.Ng,st.BQ],g.ZD,Ee.lN,st.Ng,st.BQ]}),Bt})()},1481:(wn,bt,D)=>{"use strict";D.d(bt,{Dx:()=>Ze,H7:()=>Ot,b2:()=>zn,q6:()=>Hn,se:()=>$t});var g=D(6895),e=D(4650);class R extends g.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class me extends R{static makeCurrent(){(0,g.HT)(new me)}onAndCancel(Ue,ue,nt){return Ue.addEventListener(ue,nt,!1),()=>{Ue.removeEventListener(ue,nt,!1)}}dispatchEvent(Ue,ue){Ue.dispatchEvent(ue)}remove(Ue){Ue.parentNode&&Ue.parentNode.removeChild(Ue)}createElement(Ue,ue){return(ue=ue||this.getDefaultDocument()).createElement(Ue)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ue){return Ue.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ue){return Ue instanceof DocumentFragment}getGlobalEventTarget(Ue,ue){return"window"===ue?window:"document"===ue?Ue:"body"===ue?Ue.body:null}getBaseHref(Ue){const ue=function ae(){return ve=ve||document.querySelector("base"),ve?ve.getAttribute("href"):null}();return null==ue?null:function se(Ce){Te=Te||document.createElement("a"),Te.setAttribute("href",Ce);const Ue=Te.pathname;return"/"===Ue.charAt(0)?Ue:`/${Ue}`}(ue)}resetBaseElement(){ve=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ue){return(0,g.Mx)(document.cookie,Ue)}}let Te,ve=null;const z=new e.OlP("TRANSITION_ID"),G=[{provide:e.ip1,useFactory:function x(Ce,Ue,ue){return()=>{ue.get(e.CZH).donePromise.then(()=>{const nt=(0,g.q)(),Nt=Ue.querySelectorAll(`style[ng-transition="${Ce}"]`);for(let mn=0;mn<Nt.length;mn++)nt.remove(Nt[mn])})}},deps:[z,g.K0,e.zs3],multi:!0}];let dt=(()=>{class Ce{build(){return new XMLHttpRequest}}return Ce.\u0275fac=function(ue){return new(ue||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Mt=new e.OlP("EventManagerPlugins");let We=(()=>{class Ce{constructor(ue,nt){this._zone=nt,this._eventNameToPlugin=new Map,ue.forEach(Nt=>Nt.manager=this),this._plugins=ue.slice().reverse()}addEventListener(ue,nt,Nt){return this._findPluginFor(nt).addEventListener(ue,nt,Nt)}addGlobalEventListener(ue,nt,Nt){return this._findPluginFor(nt).addGlobalEventListener(ue,nt,Nt)}getZone(){return this._zone}_findPluginFor(ue){const nt=this._eventNameToPlugin.get(ue);if(nt)return nt;const Nt=this._plugins;for(let mn=0;mn<Nt.length;mn++){const Nn=Nt[mn];if(Nn.supports(ue))return this._eventNameToPlugin.set(ue,Nn),Nn}throw new Error(`No event manager plugin found for event ${ue}`)}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(Mt),e.LFG(e.R0b))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class At{constructor(Ue){this._doc=Ue}addGlobalEventListener(Ue,ue,nt){const Nt=(0,g.q)().getGlobalEventTarget(this._doc,Ue);if(!Nt)throw new Error(`Unsupported event target ${Nt} for event ${ue}`);return this.addEventListener(Nt,ue,nt)}}let qe=(()=>{class Ce{constructor(){this._stylesSet=new Set}addStyles(ue){const nt=new Set;ue.forEach(Nt=>{this._stylesSet.has(Nt)||(this._stylesSet.add(Nt),nt.add(Nt))}),this.onStylesAdded(nt)}onStylesAdded(ue){}getAllStyles(){return Array.from(this._stylesSet)}}return Ce.\u0275fac=function(ue){return new(ue||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),lt=(()=>{class Ce extends qe{constructor(ue){super(),this._doc=ue,this._hostNodes=new Map,this._hostNodes.set(ue.head,[])}_addStylesToHost(ue,nt,Nt){ue.forEach(mn=>{const Nn=this._doc.createElement("style");Nn.textContent=mn,Nt.push(nt.appendChild(Nn))})}addHost(ue){const nt=[];this._addStylesToHost(this._stylesSet,ue,nt),this._hostNodes.set(ue,nt)}removeHost(ue){const nt=this._hostNodes.get(ue);nt&&nt.forEach(sn),this._hostNodes.delete(ue)}
1onStylesAdded(ue){this._hostNodes.forEach((nt,Nt)=>{this._addStylesToHost(ue,Nt,nt)})}ngOnDestroy(){this._hostNodes.forEach(ue=>ue.forEach(sn))}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(g.K0))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function sn(Ce){(0,g.q)().remove(Ce)}const Xt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ot=/%COMP%/g;function mt(Ce,Ue,ue){for(let nt=0;nt<Ue.length;nt++){let Nt=Ue[nt];Array.isArray(Nt)?mt(Ce,Nt,ue):(Nt=Nt.replace(ot,Ce),ue.push(Nt))}return ue}function zt(Ce){return Ue=>{if("__ngUnwrap__"===Ue)return Ce;!1===Ce(Ue)&&(Ue.preventDefault(),Ue.returnValue=!1)}}let $t=(()=>{class Ce{constructor(ue,nt,Nt){this.eventManager=ue,this.sharedStylesHost=nt,this.appId=Nt,this.rendererByCompId=new Map,this.defaultRenderer=new Vn(ue)}createRenderer(ue,nt){if(!ue||!nt)return this.defaultRenderer;switch(nt.encapsulation){case e.ifc.Emulated:{let Nt=this.rendererByCompId.get(nt.id);return Nt||(Nt=new Zt(this.eventManager,this.sharedStylesHost,nt,this.appId),this.rendererByCompId.set(nt.id,Nt)),Nt.applyToHost(ue),Nt}case 1:case e.ifc.ShadowDom:return new St(this.eventManager,this.sharedStylesHost,ue,nt);default:if(!this.rendererByCompId.has(nt.id)){const Nt=mt(nt.id,nt.styles,[]);this.sharedStylesHost.addStyles(Nt),this.rendererByCompId.set(nt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(We),e.LFG(lt),e.LFG(e.AFp))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class Vn{constructor(Ue){this.eventManager=Ue,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ue,ue){return ue?document.createElementNS(Xt[ue]||ue,Ue):document.createElement(Ue)}createComment(Ue){return document.createComment(Ue)}createText(Ue){return document.createTextNode(Ue)}appendChild(Ue,ue){(tt(Ue)?Ue.content:Ue).appendChild(ue)}insertBefore(Ue,ue,nt){Ue&&(tt(Ue)?Ue.content:Ue).insertBefore(ue,nt)}removeChild(Ue,ue){Ue&&Ue.removeChild(ue)}selectRootElement(Ue,ue){let nt="string"==typeof Ue?document.querySelector(Ue):Ue;if(!nt)throw new Error(`The selector "${Ue}" did not match any elements`);return ue||(nt.textContent=""),nt}parentNode(Ue){return Ue.parentNode}nextSibling(Ue){return Ue.nextSibling}setAttribute(Ue,ue,nt,Nt){if(Nt){ue=Nt+":"+ue;const mn=Xt[Nt];mn?Ue.setAttributeNS(mn,ue,nt):Ue.setAttribute(ue,nt)}else Ue.setAttribute(ue,nt)}removeAttribute(Ue,ue,nt){if(nt){const Nt=Xt[nt];Nt?Ue.removeAttributeNS(Nt,ue):Ue.removeAttribute(`${nt}:${ue}`)}else Ue.removeAttribute(ue)}addClass(Ue,ue){Ue.classList.add(ue)}removeClass(Ue,ue){Ue.classList.remove(ue)}setStyle(Ue,ue,nt,Nt){Nt&(e.JOm.DashCase|e.JOm.Important)?Ue.style.setProperty(ue,nt,Nt&e.JOm.Important?"important":""):Ue.style[ue]=nt}removeStyle(Ue,ue,nt){nt&e.JOm.DashCase?Ue.style.removeProperty(ue):Ue.style[ue]=""}setProperty(Ue,ue,nt){Ue[ue]=nt}setValue(Ue,ue){Ue.nodeValue=ue}listen(Ue,ue,nt){return"string"==typeof Ue?this.eventManager.addGlobalEventListener(Ue,ue,zt(nt)):this.eventManager.addEventListener(Ue,ue,zt(nt))}}function tt(Ce){return"TEMPLATE"===Ce.tagName&&void 0!==Ce.content}class Zt extends Vn{constructor(Ue,ue,nt,Nt){super(Ue),this.component=nt;const mn=mt(Nt+"-"+nt.id,nt.styles,[]);ue.addStyles(mn),this.contentAttr=function ze(Ce){return"_ngcontent-%COMP%".replace(ot,Ce)}(Nt+"-"+nt.id),this.hostAttr=function xt(Ce){return"_nghost-%COMP%".replace(ot,Ce)}(Nt+"-"+nt.id)}applyToHost(Ue){super.setAttribute(Ue,this.hostAttr,"")}createElement(Ue,ue){const nt=super.createElement(Ue,ue);return super.setAttribute(nt,this.contentAttr,""),nt}}class St extends Vn{constructor(Ue,ue,nt,Nt){super(Ue),this.sharedStylesHost=ue,this.hostEl=nt,this.shadowRoot=nt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mn=mt(Nt.id,Nt.styles,[]);for(let Nn=0;Nn<mn.length;Nn++){const kt=document.createElement("style");kt.textContent=mn[Nn],this.shadowRoot.appendChild(kt)}}nodeOrShadowRoot(Ue){return Ue===this.hostEl?this.shadowRoot:Ue}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ue,ue){return super.appendChild(this.nodeOrShadowRoot(Ue),ue)}insertBefore(Ue,ue,nt){return super.insertBefore(this.nodeOrShadowRoot(Ue),ue,nt)}removeChild(Ue,ue){return super.removeChild(this.nodeOrShadowRoot(Ue),ue)}parentNode(Ue){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ue)))}}let $e=(()=>{class Ce extends At{constructor(ue){super(ue)}supports(ue){return!0}addEventListener(ue,nt,Nt){return ue.addEventListener(nt,Nt,!1),()=>this.removeEventListener(ue,nt,Nt)}removeEventListener(ue,nt,Nt){return ue.removeEventListener(nt,Nt)}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(g.K0))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const je=["alt","control","meta","shift"],ie={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ft={alt:Ce=>Ce.altKey,control:Ce=>Ce.ctrlKey,meta:Ce=>Ce.metaKey,shift:Ce=>Ce.shiftKey};let Wt=(()=>{class Ce extends At{constructor(ue){super(ue)}supports(ue){return null!=Ce.parseEventName(ue)}addEventListener(ue,nt,Nt){const mn=Ce.parseEventName(nt),Nn=Ce.eventCallback(mn.fullKey,Nt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.q)().onAndCancel(ue,mn.domEventName,Nn))}static parseEventName(ue){const nt=ue.toLowerCase().split("."),Nt=nt.shift();if(0===nt.length||"keydown"!==Nt&&"keyup"!==Nt)return null;const mn=Ce._normalizeKey(nt.pop());let Nn="",kt=nt.indexOf("code");if(kt>-1&&(nt.splice(kt,1),Nn="code."),je.forEach(bn=>{const vn=nt.indexOf(bn);vn>-1&&(nt.splice(vn,1),Nn+=bn+".")}),Nn+=mn,0!=nt.length||0===mn.length)return null;const Ft={};return Ft.domEventName=Nt,Ft.fullKey=Nn,Ft}static matchEventFullKeyCode(ue,nt){let Nt=ie[ue.key]||ue.key,mn="";return nt.indexOf("code.")>-1&&(Nt=ue.code,mn="code."),!(null==Nt||!Nt)&&(Nt=Nt.toLowerCase()," "===Nt?Nt="space":"."===Nt&&(Nt="dot"),je.forEach(Nn=>{Nn!==Nt&&(0,ft[Nn])(ue)&&(mn+=Nn+".")}),mn+=Nt,mn===nt)}static eventCallback(ue,nt,Nt){return mn=>{Ce.matchEventFullKeyCode(mn,ue)&&Nt.runGuarded(()=>nt(mn))}}static _normalizeKey(ue){return"esc"===ue?"escape":ue}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(g.K0))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Hn=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:g.bD},{provide:e.g9A,useValue:function ai(){me.makeCurrent()},multi:!0},{provide:g.K0,useFactory:function Wn(){return(0,e.RDi)(document),document},deps:[]}]),yi=new e.OlP(""),_n=[{provide:e.rWj,useClass:class de{addToWindow(Ue){e.dqk.getAngularTestability=(nt,Nt=!0)=>{const mn=Ue.findTestabilityInTree(nt,Nt);if(null==mn)throw new Error("Could not find testability for element.");return mn},e.dqk.getAllAngularTestabilities=()=>Ue.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ue.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(nt=>{const Nt=e.dqk.getAllAngularTestabilities();let mn=Nt.length,Nn=!1;const kt=function(Ft){Nn=Nn||Ft,mn--,0==mn&&nt(Nn)};Nt.forEach(function(Ft){Ft.whenStable(kt)})})}findTestabilityInTree(Ue,ue,nt){return null==ue?null:Ue.getTestability(ue)??(nt?(0,g.q)().isShadowRoot(ue)?this.findTestabilityInTree(Ue,ue.host,!0):this.findTestabilityInTree(Ue,ue.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],ui=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function An(){return new e.qLn},deps:[]},{provide:Mt,useClass:$e,multi:!0,deps:[g.K0,e.R0b,e.Lbi]},{provide:Mt,useClass:Wt,multi:!0,deps:[g.K0]},{provide:$t,useClass:$t,deps:[We,lt,e.AFp]},{provide:e.FYo,useExisting:$t},{provide:qe,useExisting:lt},{provide:lt,useClass:lt,deps:[g.K0]},{provide:We,useClass:We,deps:[Mt,e.R0b]},{provide:g.JF,useClass:dt,deps:[]},[]];let zn=(()=>{class Ce{constructor(ue){}static withServerTransition(ue){return{ngModule:Ce,providers:[{provide:e.AFp,useValue:ue.appId},{provide:z,useExisting:e.AFp},G]}}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(yi,12))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({providers:[...ui,..._n],imports:[g.ez,e.hGG]}
1),Ce})(),Ze=(()=>{class Ce{constructor(ue){this._doc=ue}getTitle(){return this._doc.title}setTitle(ue){this._doc.title=ue||""}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(g.K0))},Ce.\u0275prov=e.Yz7({token:Ce,factory:function(ue){let nt=null;return nt=ue?new ue:function ei(){return new Ze((0,e.LFG)(g.K0))}(),nt},providedIn:"root"}),Ce})();typeof window<"u"&&window;let Ot=(()=>{class Ce{}return Ce.\u0275fac=function(ue){return new(ue||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:function(ue){let nt=null;return nt=ue?new(ue||Ce):e.LFG(pt),nt},providedIn:"root"}),Ce})(),pt=(()=>{class Ce extends Ot{constructor(ue){super(),this._doc=ue}sanitize(ue,nt){if(null==nt)return null;switch(ue){case e.q3G.NONE:return nt;case e.q3G.HTML:return(0,e.qzn)(nt,"HTML")?(0,e.z3N)(nt):(0,e.EiD)(this._doc,String(nt)).toString();case e.q3G.STYLE:return(0,e.qzn)(nt,"Style")?(0,e.z3N)(nt):nt;case e.q3G.SCRIPT:if((0,e.qzn)(nt,"Script"))return(0,e.z3N)(nt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(nt,"URL")?(0,e.z3N)(nt):(0,e.mCW)(String(nt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(nt,"ResourceURL"))return(0,e.z3N)(nt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ue} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ue){return(0,e.JVY)(ue)}bypassSecurityTrustStyle(ue){return(0,e.L6k)(ue)}bypassSecurityTrustScript(ue){return(0,e.eBb)(ue)}bypassSecurityTrustUrl(ue){return(0,e.LAX)(ue)}bypassSecurityTrustResourceUrl(ue){return(0,e.pB0)(ue)}}return Ce.\u0275fac=function(ue){return new(ue||Ce)(e.LFG(g.K0))},Ce.\u0275prov=e.Yz7({token:Ce,factory:function(ue){let nt=null;return nt=ue?new ue:function en(Ce){return new pt(Ce.get(g.K0))}(e.LFG(e.zs3)),nt},providedIn:"root"}),Ce})()},4496:(wn,bt,D)=>{"use strict";D.d(bt,{gz:()=>fo,jw:()=>Do,m2:()=>Ge,F0:()=>go,rH:()=>S,Od:()=>ee,yS:()=>U,Bz:()=>El,lC:()=>ge,fw:()=>Ht});var g=D(4650),e=D(8996),R=D(9646),me=D(1135),ve=D(6805),ae=D(9841),Te=D(7272),se=D(9770),z=D(9635),x=D(9751),G=D(576);function de(I,k){const T=(0,G.m)(I)?I:()=>I,j=Y=>Y.error(T());return new x.y(k?Y=>k.schedule(j,0,Y):j)}var dt=D(515),Mt=D(727),We=D(4482),At=D(5403);function qe(){return(0,We.e)((I,k)=>{let T=null;I._refCount++;const j=(0,At.x)(k,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(T=null);const Y=I._connection,Pe=T;T=null,Y&&(!Pe||Y===Pe)&&Y.unsubscribe(),k.unsubscribe()});I.subscribe(j),j.closed||(T=I.connect())})}class lt extends x.y{constructor(k,T){super(),this.source=k,this.subjectFactory=T,this._subject=null,this._refCount=0,this._connection=null,(0,We.A)(k)&&(this.lift=k.lift)}_subscribe(k){return this.getSubject().subscribe(k)}getSubject(){const k=this._subject;return(!k||k.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:k}=this;this._subject=this._connection=null,k?.unsubscribe()}connect(){let k=this._connection;if(!k){k=this._connection=new Mt.w0;const T=this.getSubject();k.add(this.source.subscribe((0,At.x)(T,void 0,()=>{this._teardown(),T.complete()},j=>{this._teardown(),T.error(j)},()=>this._teardown()))),k.closed&&(this._connection=null,k=Mt.w0.EMPTY)}return k}refCount(){return qe()(this)}}var sn=D(7579),Xt=D(6895),ot=D(4004),fe=D(3900),ut=D(5698),Ye=D(8675),it=D(9300),ze=D(5577),xt=D(590),mt=D(4351),zt=D(8505),pn=D(8421);function $t(I){return(0,We.e)((k,T)=>{let Pe,j=null,Y=!1;j=k.subscribe((0,At.x)(T,void 0,void 0,rt=>{Pe=(0,pn.Xf)(I(rt,$t(I)(k))),j?(j.unsubscribe(),j=null,Pe.subscribe(T)):Y=!0})),Y&&(j.unsubscribe(),j=null,Pe.subscribe(T))})}var Vn=D(5026);function Ut(I){return I<=0?()=>dt.E:(0,We.e)((k,T)=>{let j=[];k.subscribe((0,At.x)(T,Y=>{j.push(Y),I<j.length&&j.shift()},()=>{for(const Y of j)T.next(Y);T.complete()},void 0,()=>{j=null}))})}var gn=D(8068),tt=D(6590),Zt=D(4671);function St(I,k){const T=arguments.length>=2;return j=>j.pipe(I?(0,it.h)((Y,Pe)=>I(Y,Pe,j)):Zt.y,Ut(1),T?(0,tt.d)(k):(0,gn.T)(()=>new ve.K))}var $e=D(2529);function ie(I){return(0,We.e)((k,T)=>{try{k.subscribe(T)}finally{T.add(I)}})}
1var ft=D(8189),Wt=D(1481);const Dt="primary",hn=Symbol("RouteTitle");class Gn{constructor(k){this.params=k||{}}has(k){return Object.prototype.hasOwnProperty.call(this.params,k)}get(k){if(this.has(k)){const T=this.params[k];return Array.isArray(T)?T[0]:T}return null}getAll(k){if(this.has(k)){const T=this.params[k];return Array.isArray(T)?T:[T]}return[]}get keys(){return Object.keys(this.params)}}function qn(I){return new Gn(I)}function kn(I,k,T){const j=T.path.split("/");if(j.length>I.length||"full"===T.pathMatch&&(k.hasChildren()||j.length<I.length))return null;const Y={};for(let Pe=0;Pe<j.length;Pe++){const rt=j[Pe],Ct=I[Pe];if(rt.startsWith(":"))Y[rt.substring(1)]=Ct;else if(rt!==Ct.path)return null}return{consumed:I.slice(0,j.length),posParams:Y}}function An(I,k){const T=I?Object.keys(I):void 0,j=k?Object.keys(k):void 0;if(!T||!j||T.length!=j.length)return!1;let Y;for(let Pe=0;Pe<T.length;Pe++)if(Y=T[Pe],!Wn(I[Y],k[Y]))return!1;return!0}function Wn(I,k){if(Array.isArray(I)&&Array.isArray(k)){if(I.length!==k.length)return!1;const T=[...I].sort(),j=[...k].sort();return T.every((Y,Pe)=>j[Pe]===Y)}return I===k}function Ln(I){return Array.prototype.concat.apply([],I)}function Hn(I){return I.length>0?I[I.length-1]:null}function _n(I,k){for(const T in I)I.hasOwnProperty(T)&&k(I[T],T)}function ui(I){return(0,g.CqO)(I)?I:(0,g.QGY)(I)?(0,e.D)(Promise.resolve(I)):(0,R.of)(I)}const Pi={exact:function Oe(I,k,T){if(!wt(I.segments,k.segments)||!Q(I.segments,k.segments,T)||I.numberOfChildren!==k.numberOfChildren)return!1;for(const j in k.children)if(!I.children[j]||!Oe(I.children[j],k.children[j],T))return!1;return!0},subset:le},li={exact:function Ze(I,k){return An(I,k)},subset:function P(I,k){return Object.keys(k).length<=Object.keys(I).length&&Object.keys(k).every(T=>Wn(I[T],k[T]))},ignored:()=>!0};function ei(I,k,T){return Pi[T.paths](I.root,k.root,T.matrixParams)&&li[T.queryParams](I.queryParams,k.queryParams)&&!("exact"===T.fragment&&I.fragment!==k.fragment)}function le(I,k,T){return O(I,k,k.segments,T)}function O(I,k,T,j){if(I.segments.length>T.length){const Y=I.segments.slice(0,T.length);return!(!wt(Y,T)||k.hasChildren()||!Q(Y,T,j))}if(I.segments.length===T.length){if(!wt(I.segments,T)||!Q(I.segments,T,j))return!1;for(const Y in k.children)if(!I.children[Y]||!le(I.children[Y],k.children[Y],j))return!1;return!0}{const Y=T.slice(0,I.segments.length),Pe=T.slice(I.segments.length);return!!(wt(I.segments,Y)&&Q(I.segments,Y,j)&&I.children[Dt])&&O(I.children[Dt],k,Pe,j)}}function Q(I,k,T){return k.every((j,Y)=>li[T](I[Y].parameters,j.parameters))}class ke{constructor(k,T,j){this.root=k,this.queryParams=T,this.fragment=j}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qn(this.queryParams)),this._queryParamMap}toString(){return V.serialize(this)}}class De{constructor(k,T){this.segments=k,this.children=T,this.parent=null,_n(T,(j,Y)=>j.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _e(this)}}class ye{constructor(k,T){this.path=k,this.parameters=T}get parameterMap(){return this._parameterMap||(this._parameterMap=qn(this.parameters)),this._parameterMap}toString(){return Xe(this)}}function wt(I,k){return I.length===k.length&&I.every((T,j)=>T.path===k[j].path)}let st=(()=>{class I{}return I.\u0275fac=function(T){return new(T||I)},I.\u0275prov=g.Yz7({token:I,factory:function(){return new Ee},providedIn:"root"}),I})();class Ee{parse(k){const T=new Ue(k);return new ke(T.parseRootSegment(),T.parseQueryParams(),T.parseFragment())}serialize(k){const T=`/${Tt(k.root,!0)}`,j=function Ie(I){const k=Object.keys(I).map(T=>{const j=I[T];return Array.isArray(j)?j.map(Y=>`${Yn(T)}=${Yn(Y)}`).join("&"):`${Yn(T)}=${Yn(j)}`}).filter(T=>!!T);return k.length?`?${k.join("&")}`:""}(k.queryParams);return`${T}${j}${"string"==typeof k.fragment?`#${function Li(I){return encodeURI(I)}(k.fragment)}`:""}`}}const V=new Ee;function _e(I){return I.segments.map(k=>Xe(k)).join("/")}function Tt(I,k){if(!I.hasChildren())return _e(I);if(k){const T=I.children[Dt]?Tt(I.children[Dt],!1):"",j=[];return _n(I.children,(Y,Pe)=>{Pe!==Dt&&j.push(`${Pe}:${Tt(Y,!1)}`)}),j.length>0?`${T}(${j.join("//")})`:T}{const T=function on(I,k){let T=[];return _n(I.children,(j,Y)=>{Y===Dt&&(T=T.concat(k(j,Y)))}),_n(I.children,(j,Y)=>{Y!==Dt&&(T=T.concat(k(j,Y)))}),T}(I,(j,Y)=>Y===Dt?[Tt(I.children[Dt],!1)]:[`${Y}:${Tt(j,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[Dt]?`${_e(I)}/${T[0]}`:`${_e(I)}/(${T.join("//")})`}}function un(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yn(I){return un(I).replace(/%3B/gi,";")}function Ii(I){return un(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qi(I){return decodeURIComponent(I)}function at(I){return qi(I.replace(/\+/g,"%20"))}function Xe(I){return`${Ii(I.path)}${function Re(I){return Object.keys(I).map(k=>`;${Ii(k)}=${Ii(I[k])}`).join("")}(I.parameters)}`}const xe=/^[^\/()?;=#]+/;function Ot(I){const k=I.match(xe);return k?k[0]:""}const en=/^[^=?&#]+/,Gt=/^[^&#]+/;
1class Ue{constructor(k){this.url=k,this.remaining=k}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new De([],{}):new De([],this.parseChildren())}parseQueryParams(){const k={};if(this.consumeOptional("?"))do{this.parseQueryParam(k)}while(this.consumeOptional("&"));return k}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const k=[];for(this.peekStartsWith("(")||k.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),k.push(this.parseSegment());let T={};this.peekStartsWith("/(")&&(this.capture("/"),T=this.parseParens(!0));let j={};return this.peekStartsWith("(")&&(j=this.parseParens(!1)),(k.length>0||Object.keys(T).length>0)&&(j[Dt]=new De(k,T)),j}parseSegment(){const k=Ot(this.remaining);if(""===k&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(k),new ye(qi(k),this.parseMatrixParams())}parseMatrixParams(){const k={};for(;this.consumeOptional(";");)this.parseParam(k);return k}parseParam(k){const T=Ot(this.remaining);if(!T)return;this.capture(T);let j="";if(this.consumeOptional("=")){const Y=Ot(this.remaining);Y&&(j=Y,this.capture(j))}k[qi(T)]=qi(j)}parseQueryParam(k){const T=function pt(I){const k=I.match(en);return k?k[0]:""}(this.remaining);if(!T)return;this.capture(T);let j="";if(this.consumeOptional("=")){const rt=function Ce(I){const k=I.match(Gt);return k?k[0]:""}(this.remaining);rt&&(j=rt,this.capture(j))}const Y=at(T),Pe=at(j);if(k.hasOwnProperty(Y)){let rt=k[Y];Array.isArray(rt)||(rt=[rt],k[Y]=rt),rt.push(Pe)}else k[Y]=Pe}parseParens(k){const T={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const j=Ot(this.remaining),Y=this.remaining[j.length];if("/"!==Y&&")"!==Y&&";"!==Y)throw new g.vHH(4010,!1);let Pe;j.indexOf(":")>-1?(Pe=j.slice(0,j.indexOf(":")),this.capture(Pe),this.capture(":")):k&&(Pe=Dt);const rt=this.parseChildren();T[Pe]=1===Object.keys(rt).length?rt[Dt]:new De([],rt),this.consumeOptional("//")}return T}peekStartsWith(k){return this.remaining.startsWith(k)}consumeOptional(k){return!!this.peekStartsWith(k)&&(this.remaining=this.remaining.substring(k.length),!0)}capture(k){if(!this.consumeOptional(k))throw new g.vHH(4011,!1)}}function ue(I){return I.segments.length>0?new De([],{[Dt]:I}):I}function nt(I){const k={};for(const j of Object.keys(I.children)){const Pe=nt(I.children[j]);(Pe.segments.length>0||Pe.hasChildren())&&(k[j]=Pe)}return function Nt(I){if(1===I.numberOfChildren&&I.children[Dt]){const k=I.children[Dt];return new De(I.segments.concat(k.segments),k.children)}return I}(new De(I.segments,k))}function mn(I){return I instanceof ke}function vn(I,k,T,j,Y){if(0===T.length)return ti(k.root,k.root,k.root,j,Y);const Pe=function fr(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Ai(!0,0,I);let k=0,T=!1;const j=I.reduce((Y,Pe,rt)=>{if("object"==typeof Pe&&null!=Pe){if(Pe.outlets){const Ct={};return _n(Pe.outlets,(yn,$n)=>{Ct[$n]="string"==typeof yn?yn.split("/"):yn}),[...Y,{outlets:Ct}]}if(Pe.segmentPath)return[...Y,Pe.segmentPath]}return"string"!=typeof Pe?[...Y,Pe]:0===rt?(Pe.split("/").forEach((Ct,yn)=>{0==yn&&"."===Ct||(0==yn&&""===Ct?T=!0:".."===Ct?k++:""!=Ct&&Y.push(Ct))}),Y):[...Y,Pe]},[]);return new Ai(T,k,j)}(T);return Pe.toRoot()?ti(k.root,k.root,new De([],{}),j,Y):function rt(yn){const $n=function Zi(I,k,T,j){if(I.isAbsolute)return new xr(k.root,!0,0);if(-1===j)return new xr(T,T===k.root,0);return function ho(I,k,T){let j=I,Y=k,Pe=T;for(;Pe>Y;){if(Pe-=Y,j=j.parent,!j)throw new g.vHH(4005,!1);Y=j.segments.length}return new xr(j,!1,Y-Pe)}(T,j+(ni(I.commands[0])?0:1),I.numberOfDoubleDots)}(Pe,k,I.snapshot?._urlSegment,yn),gr=$n.processChildren?Xr($n.segmentGroup,$n.index,Pe.commands):jr($n.segmentGroup,$n.index,Pe.commands);return ti(k.root,$n.segmentGroup,gr,j,Y)}(I.snapshot?._lastPathIndex)}function ni(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function di(I){return"object"==typeof I&&null!=I&&I.outlets}function ti(I,k,T,j,Y){let rt,Pe={};j&&_n(j,(yn,$n)=>{Pe[$n]=Array.isArray(yn)?yn.map(gr=>`${gr}`):`${yn}`}),rt=I===k?T:cr(I,k,T);const Ct=ue(nt(rt));return new ke(Ct,Pe,Y)}function cr(I,k,T){const j={};return _n(I.children,(Y,Pe)=>{j[Pe]=Y===k?T:cr(Y,k,T)}),new De(I.segments,j)}class Ai{constructor(k,T,j){if(this.isAbsolute=k,this.numberOfDoubleDots=T,this.commands=j,k&&j.length>0&&ni(j[0]))throw new g.vHH(4003,!1);const Y=j.find(di);if(Y&&Y!==Hn(j))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xr{constructor(k,T,j){this.segmentGroup=k,this.processChildren=T,this.index=j}}function jr(I,k,T){if(I||(I=new De([],{})),0===I.segments.length&&I.hasChildren())return Xr(I,k,T);const j=function Bt(I,k,T){let j=0,Y=k;const Pe={match:!1,pathIndex:0,commandIndex:0};for(;Y<I.segments.length;){if(j>=T.length)return Pe;
vendor: 4,801 bytes, line 1
1const rt=I.segments[Y],Ct=T[j];if(di(Ct))break;const yn=`${Ct}`,$n=j<T.length-1?T[j+1]:null;if(Y>0&&void 0===yn)break;if(yn&&$n&&"object"==typeof $n&&void 0===$n.outlets){if(!yt(yn,$n,rt))return Pe;j+=2}else{if(!yt(yn,{},rt))return Pe;j++}Y++}return{match:!0,pathIndex:Y,commandIndex:j}}(I,k,T),Y=T.slice(j.commandIndex);if(j.match&&j.pathIndex<I.segments.length){const Pe=new De(I.segments.slice(0,j.pathIndex),{});return Pe.children[Dt]=new De(I.segments.slice(j.pathIndex),I.children),Xr(Pe,0,Y)}return j.match&&0===Y.length?new De(I.segments,{}):j.match&&!I.hasChildren()?he(I,k,T):j.match?Xr(I,0,Y):he(I,k,T)}function Xr(I,k,T){if(0===T.length)return new De(I.segments,{});{const j=function Ni(I){return di(I[0])?I[0].outlets:{[Dt]:I}}(T),Y={};return _n(j,(Pe,rt)=>{"string"==typeof Pe&&(Pe=[Pe]),null!==Pe&&(Y[rt]=jr(I.children[rt],k,Pe))}),_n(I.children,(Pe,rt)=>{void 0===j[rt]&&(Y[rt]=Pe)}),new De(I.segments,Y)}}function he(I,k,T){const j=I.segments.slice(0,k);let Y=0;for(;Y<T.length;){const Pe=T[Y];if(di(Pe)){const yn=ne(Pe.outlets);return new De(j,yn)}if(0===Y&&ni(T[0])){j.push(new ye(I.segments[k].path,Ne(T[0]))),Y++;continue}const rt=di(Pe)?Pe.outlets[Dt]:`${Pe}`,Ct=Y<T.length-1?T[Y+1]:null;rt&&Ct&&ni(Ct)?(j.push(new ye(rt,Ne(Ct))),Y+=2):(j.push(new ye(rt,{})),Y++)}return new De(j,{})}function ne(I){const k={};return _n(I,(T,j)=>{"string"==typeof T&&(T=[T]),null!==T&&(k[j]=he(new De([],{}),0,T))}),k}function Ne(I){const k={};return _n(I,(T,j)=>k[j]=`${T}`),k}function yt(I,k,T){return I==T.path&&An(k,T.parameters)}class Vt{constructor(k,T){this.id=k,this.url=T}}class Ke extends Vt{constructor(k,T,j="imperative",Y=null){super(k,T),this.type=0,this.navigationTrigger=j,this.restoredState=Y}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ge extends Vt{constructor(k,T,j){super(k,T),this.urlAfterRedirects=j,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ht extends Vt{constructor(k,T,j,Y){super(k,T),this.reason=j,this.code=Y,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kt extends Vt{constructor(k,T,j,Y){super(k,T),this.error=j,this.target=Y,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class we extends Vt{constructor(k,T,j,Y){super(k,T),this.urlAfterRedirects=j,this.state=Y,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ct extends Vt{constructor(k,T,j,Y){super(k,T),this.urlAfterRedirects=j,this.state=Y,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jt extends Vt{constructor(k,T,j,Y,Pe){super(k,T),this.urlAfterRedirects=j,this.state=Y,this.shouldActivate=Pe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Mn extends Vt{constructor(k,T,j,Y){super(k,T),this.urlAfterRedirects=j,this.state=Y,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jn extends Vt{constructor(k,T,j,Y){super(k,T),this.urlAfterRedirects=j,this.state=Y,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi{constructor(k){this.route=k,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ti{constructor(k){this.route=k,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $i{constructor(k){this.snapshot=k,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ji{constructor(k){this.snapshot=k,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eo{constructor(k){this.snapshot=k,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Do{constructor(k){this.snapshot=k,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class As{constructor(k,T,j){this.routerEvent=k,this.position=T,this.anchor=j,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ao{constructor(k){this._root=k}get root(){return this._root.value}
1parent(k){const T=this.pathFromRoot(k);return T.length>1?T[T.length-2]:null}children(k){const T=vs(k,this._root);return T?T.children.map(j=>j.value):[]}firstChild(k){const T=vs(k,this._root);return T&&T.children.length>0?T.children[0].value:null}siblings(k){const T=Is(k,this._root);return T.length<2?[]:T[T.length-2].children.map(Y=>Y.value).filter(Y=>Y!==k)}pathFromRoot(k){return Is(k,this._root).map(T=>T.value)}}function vs(I,k){if(I===k.value)return k;for(const T of k.children){const j=vs(I,T);if(j)return j}return null}function Is(I,k){if(I===k.value)return[k];for(const T of k.children){const j=Is(I,T);if(j.length)return j.unshift(k),j}return[]}class co{constructor(k,T){this.value=k,this.children=T}toString(){return`TreeNode(${this.value})`}}function Ko(I){const k={};return I&&I.children.forEach(T=>k[T.value.outlet]=T),k}class Zs extends Ao{constructor(k,T){super(k),this.snapshot=T,po(this,k)}toString(){return this.snapshot.toString()}}function Vo(I,k){const T=function Co(I,k){const rt=new zi([],{},{},"",{},Dt,k,null,I.root,-1,{});return new cs("",new co(rt,[]))}(I,k),j=new me.X([new ye("",{})]),Y=new me.X({}),Pe=new me.X({}),rt=new me.X({}),Ct=new me.X(""),yn=new fo(j,Y,rt,Ct,Pe,Dt,k,T.root);return yn.snapshot=T.root,new Zs(new co(yn,[]),T)}class fo{constructor(k,T,j,Y,Pe,rt,Ct,yn){this.url=k,this.params=T,this.queryParams=j,this.fragment=Y,this.data=Pe,this.outlet=rt,this.component=Ct,this.title=this.data?.pipe((0,ot.U)($n=>$n[hn]))??(0,R.of)(void 0),this._futureSnapshot=yn}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ot.U)(k=>qn(k)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ot.U)(k=>qn(k)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Mo(I,k="emptyOnly"){const T=I.pathFromRoot;let j=0;if("always"!==k)for(j=T.length-1;j>=1;){const Y=T[j],Pe=T[j-1];if(Y.routeConfig&&""===Y.routeConfig.path)j--;else{if(Pe.component)break;j--}}return function Ss(I){return I.reduce((k,T)=>({params:{...k.params,...T.params},data:{...k.data,...T.data},resolve:{...T.data,...k.resolve,...T.routeConfig?.data,...T._resolvedData}}),{params:{},data:{},resolve:{}})}(T.slice(j))}class zi{constructor(k,T,j,Y,Pe,rt,Ct,yn,$n,gr,Ci,Yr){this.url=k,this.params=T,this.queryParams=j,this.fragment=Y,this.data=Pe,this.outlet=rt,this.component=Ct,this.title=this.data?.[hn],this.routeConfig=yn,this._urlSegment=$n,this._lastPathIndex=gr,this._correctedLastPathIndex=Yr??gr,this._resolve=Ci}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=qn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(j=>j.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cs extends Ao{constructor(k,T){super(T),this.url=k,po(this,T)}toString(){return to(this._root)}}function po(I,k){k.value._routerState=I,k.children.forEach(T=>po(I,T))}function to(I){const k=I.children.length>0?` { ${I.children.map(to).join(", ")} } `:"";return`${I.value}${k}`}function bs(I){if(I.snapshot){const k=I.snapshot,T=I._futureSnapshot;I.snapshot=T,An(k.queryParams,T.queryParams)||I.queryParams.next(T.queryParams),k.fragment!==T.fragment&&I.fragment.next(T.fragment),An(k.params,T.params)||I.params.next(T.params),function ai(I,k){if(I.length!==k.length)return!1;for(let T=0;T<I.length;++T)if(!An(I[T],k[T]))return!1;return!0}(k.url,T.url)||I.url.next(T.url),An(k.data,T.data)||I.data.next(T.data)}else I.snapshot=I._futureSnapshot,I.data.next(I._futureSnapshot.data)}function is(I,k){const T=An(I.params,k.params)&&function Je(I,k){return wt(I,k)&&I.every((T,j)=>An(T.parameters,k[j].parameters))}(I.url,k.url);return T&&!(!I.parent!=!k.parent)&&(!I.parent||is(I.parent,k.parent))}function Io(I,k,T){if(T&&I.shouldReuseRoute(k.value,T.value.snapshot)){const j=T.value;j._futureSnapshot=k.value;const Y=function ha(I,k,T){return k.children.map(j=>{for(const Y of T.children)if(I.shouldReuseRoute(j.value,Y.value.snapshot))return Io(I,j,Y);return Io(I,j)})}(I,k,T);return new co(j,Y)}{if(I.shouldAttach(k.value)){const Pe=I.retrieve(k.value);if(null!==Pe){const rt=Pe.route;return rt.value._futureSnapshot=k.value,rt.children=k.children.map(Ct=>Io(I,Ct)),rt}}const j=function fa(I){return new fo(new me.X(I.url),new me.X(I.params),new me.X(I.queryParams),new me.X(I.fragment),new me.X(I.data),I.outlet,I.component,I)}(k.value),Y=k.children.map(Pe=>Io(I,Pe));return new co(j,Y)}}const rs="ngNavigationCancelingError";function no(I,k){const{redirectTo:T,navigationBehaviorOptions:j}=mn(k)?{redirectTo:k,navigationBehaviorOptions:void 0}
1:k,Y=Bs(!1,0,k);return Y.url=T,Y.navigationBehaviorOptions=j,Y}function Bs(I,k,T){const j=new Error("NavigationCancelingError: "+(I||""));return j[rs]=!0,j.cancellationCode=k,T&&(j.url=T),j}function Ur(I){return ks(I)&&mn(I.url)}function ks(I){return I&&I[rs]}class Rs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oo,this.attachRef=null}}let oo=(()=>{class I{constructor(){this.contexts=new Map}onChildOutletCreated(T,j){const Y=this.getOrCreateContext(T);Y.outlet=j,this.contexts.set(T,Y)}onChildOutletDestroyed(T){const j=this.getContext(T);j&&(j.outlet=null,j.attachRef=null)}onOutletDeactivated(){const T=this.contexts;return this.contexts=new Map,T}onOutletReAttached(T){this.contexts=T}getOrCreateContext(T){let j=this.getContext(T);return j||(j=new Rs,this.contexts.set(T,j)),j}getContext(T){return this.contexts.get(T)||null}}return I.\u0275fac=function(T){return new(T||I)},I.\u0275prov=g.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();const pe=!1;let ge=(()=>{class I{constructor(T,j,Y,Pe,rt){this.parentContexts=T,this.location=j,this.changeDetector=Pe,this.environmentInjector=rt,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=Y||Dt,T.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const T=this.parentContexts.getContext(this.name);T&&T.route&&(T.attachRef?this.attach(T.attachRef,T.route):this.activateWith(T.route,T.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,pe);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,pe);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,pe);this.location.detach();const T=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(T.instance),T}attach(T,j){this.activated=T,this._activatedRoute=j,this.location.insert(T.hostView),this.attachEvents.emit(T.instance)}deactivate(){if(this.activated){const T=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(T)}}activateWith(T,j){if(this.isActivated)throw new g.vHH(4013,pe);this._activatedRoute=T;const Y=this.location,rt=T._futureSnapshot.component,Ct=this.parentContexts.getOrCreateContext(this.name).children,yn=new Qe(T,Ct,Y.injector);if(j&&function Et(I){return!!I.resolveComponentFactory}(j)){const $n=j.resolveComponentFactory(rt);this.activated=Y.createComponent($n,Y.length,yn)}else this.activated=Y.createComponent(rt,{index:Y.length,injector:yn,environmentInjector:j??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return I.\u0275fac=function(T){return new(T||I)(g.Y36(oo),g.Y36(g.s_b),g.$8M("name"),g.Y36(g.sBO),g.Y36(g.lqb))},I.\u0275dir=g.lG2({type:I,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),I})();class Qe{constructor(k,T,j){this.route=k,this.childContexts=T,this.parent=j}get(k,T){return k===fo?this.route:k===oo?this.childContexts:this.parent.get(k,T)}}let Ht=(()=>{class I{}return I.\u0275fac=function(T){return new(T||I)},I.\u0275cmp=g.Xpm({type:I,selectors:[["ng-component"]],standalone:!0,features:[g.jDz],decls:1,vars:0,template:function(T,j){1&T&&g._UZ(0,"router-outlet")},dependencies:[ge],encapsulation:2}),I})();function fn(I,k){return I.providers&&!I._injector&&(I._injector=(0,g.MMx)(I.providers,k,`Route: ${I.path}`)),I._injector??k}function nr(I){const k=I.children&&I.children.map(nr),T=k?{...I,children:k}:{...I};return!T.component&&!T.loadComponent&&(k||T.loadChildren)&&T.outlet&&T.outlet!==Dt&&(T.component=Ht),T}function ji(I){return I.outlet||Dt}function br(I,k){const T=I.filter(j=>ji(j)===k);return T.push(...I.filter(j=>ji(j)!==k)),T}
1function mi(I){if(!I)return null;if(I.routeConfig?._injector)return I.routeConfig._injector;for(let k=I.parent;k;k=k.parent){const T=k.routeConfig;if(T?._loadedInjector)return T._loadedInjector;if(T?._injector)return T._injector}return null}class Rr{constructor(k,T,j,Y){this.routeReuseStrategy=k,this.futureState=T,this.currState=j,this.forwardEvent=Y}activate(k){const T=this.futureState._root,j=this.currState?this.currState._root:null;this.deactivateChildRoutes(T,j,k),bs(this.futureState.root),this.activateChildRoutes(T,j,k)}deactivateChildRoutes(k,T,j){const Y=Ko(T);k.children.forEach(Pe=>{const rt=Pe.value.outlet;this.deactivateRoutes(Pe,Y[rt],j),delete Y[rt]}),_n(Y,(Pe,rt)=>{this.deactivateRouteAndItsChildren(Pe,j)})}deactivateRoutes(k,T,j){const Y=k.value,Pe=T?T.value:null;if(Y===Pe)if(Y.component){const rt=j.getContext(Y.outlet);rt&&this.deactivateChildRoutes(k,T,rt.children)}else this.deactivateChildRoutes(k,T,j);else Pe&&this.deactivateRouteAndItsChildren(T,j)}deactivateRouteAndItsChildren(k,T){k.value.component&&this.routeReuseStrategy.shouldDetach(k.value.snapshot)?this.detachAndStoreRouteSubtree(k,T):this.deactivateRouteAndOutlet(k,T)}detachAndStoreRouteSubtree(k,T){const j=T.getContext(k.value.outlet),Y=j&&k.value.component?j.children:T,Pe=Ko(k);for(const rt of Object.keys(Pe))this.deactivateRouteAndItsChildren(Pe[rt],Y);if(j&&j.outlet){const rt=j.outlet.detach(),Ct=j.children.onOutletDeactivated();this.routeReuseStrategy.store(k.value.snapshot,{componentRef:rt,route:k,contexts:Ct})}}deactivateRouteAndOutlet(k,T){const j=T.getContext(k.value.outlet),Y=j&&k.value.component?j.children:T,Pe=Ko(k);for(const rt of Object.keys(Pe))this.deactivateRouteAndItsChildren(Pe[rt],Y);j&&j.outlet&&(j.outlet.deactivate(),j.children.onOutletDeactivated(),j.attachRef=null,j.resolver=null,j.route=null)}activateChildRoutes(k,T,j){const Y=Ko(T);k.children.forEach(Pe=>{this.activateRoutes(Pe,Y[Pe.value.outlet],j),this.forwardEvent(new Do(Pe.value.snapshot))}),k.children.length&&this.forwardEvent(new Ji(k.value.snapshot))}activateRoutes(k,T,j){const Y=k.value,Pe=T?T.value:null;if(bs(Y),Y===Pe)if(Y.component){const rt=j.getOrCreateContext(Y.outlet);this.activateChildRoutes(k,T,rt.children)}else this.activateChildRoutes(k,T,j);else if(Y.component){const rt=j.getOrCreateContext(Y.outlet);if(this.routeReuseStrategy.shouldAttach(Y.snapshot)){const Ct=this.routeReuseStrategy.retrieve(Y.snapshot);this.routeReuseStrategy.store(Y.snapshot,null),rt.children.onOutletReAttached(Ct.contexts),rt.attachRef=Ct.componentRef,rt.route=Ct.route.value,rt.outlet&&rt.outlet.attach(Ct.componentRef,Ct.route.value),bs(Ct.route.value),this.activateChildRoutes(k,null,rt.children)}else{const Ct=mi(Y.snapshot),yn=Ct?.get(g._Vd)??null;rt.attachRef=null,rt.route=Y,rt.resolver=yn,rt.injector=Ct,rt.outlet&&rt.outlet.activateWith(Y,rt.injector),this.activateChildRoutes(k,null,rt.children)}}else this.activateChildRoutes(k,null,j)}}class Hr{constructor(k){this.path=k,this.route=this.path[this.path.length-1]}}class ur{constructor(k,T){this.component=k,this.route=T}}function Yo(I,k,T){const j=I._root;return os(j,k?k._root:null,T,[j.value])}function Jo(I,k){const T=Symbol(),j=k.get(I,T);return j===T?"function"!=typeof I||(0,g.Z0I)(I)?k.get(I):I:j}function os(I,k,T,j,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Pe=Ko(k);return I.children.forEach(rt=>{(function On(I,k,T,j,Y={canDeactivateChecks:[],canActivateChecks:[]}){const Pe=I.value,rt=k?k.value:null,Ct=T?T.getContext(I.value.outlet):null;if(rt&&Pe.routeConfig===rt.routeConfig){const yn=function Qi(I,k,T){if("function"==typeof T)return T(I,k);switch(T){case"pathParamsChange":return!wt(I.url,k.url);case"pathParamsOrQueryParamsChange":return!wt(I.url,k.url)||!An(I.queryParams,k.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!is(I,k)||!An(I.queryParams,k.queryParams);default:return!is(I,k)}}(rt,Pe,Pe.routeConfig.runGuardsAndResolvers);yn?Y.canActivateChecks.push(new Hr(j)):(Pe.data=rt.data,Pe._resolvedData=rt._resolvedData),os(I,k,Pe.component?Ct?Ct.children:null:T,j,Y),yn&&Ct&&Ct.outlet&&Ct.outlet.isActivated&&Y.canDeactivateChecks.push(new ur(Ct.outlet.component,rt))}else rt&&So(k,Ct,Y),Y.canActivateChecks.push(new Hr(j)),os(I,null,Pe.component?Ct?Ct.children:null:T,j,Y)})(rt,Pe[rt.value.outlet],T,j.concat([rt.value]),Y),delete Pe[rt.value.outlet]}),_n(Pe,(rt,Ct)=>So(rt,T.getContext(Ct),Y)),Y}function So(I,k,T){const j=Ko(I),Y=I.value;_n(j,(Pe,rt)=>{So(Pe,Y.component?k?k.children.getContext(rt):null:k,T)}),T.canDeactivateChecks.push(new ur(Y.component&&k&&k.outlet&&k.outlet.isActivated?k.outlet.component:null,Y))}function ko(I){return"function"==typeof I}
1function us(I){return I instanceof ve.K||"EmptyError"===I?.name}const qo=Symbol("INITIAL_VALUE");function Or(){return(0,fe.w)(I=>(0,ae.a)(I.map(k=>k.pipe((0,ut.q)(1),(0,Ye.O)(qo)))).pipe((0,ot.U)(k=>{for(const T of k)if(!0!==T){if(T===qo)return qo;if(!1===T||T instanceof ke)return T}return!0}),(0,it.h)(k=>k!==qo),(0,ut.q)(1)))}function wr(I){return(0,z.z)((0,zt.b)(k=>{if(mn(k))throw no(0,k)}),(0,ot.U)(k=>!0===k))}const Bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ro(I,k,T,j,Y){const Pe=Cs(I,k,T);return Pe.matched?function pr(I,k,T,j){const Y=k.canMatch;if(!Y||0===Y.length)return(0,R.of)(!0);const Pe=Y.map(rt=>{const Ct=Jo(rt,I);return ui(function ln(I){return I&&ko(I.canMatch)}(Ct)?Ct.canMatch(k,T):I.runInContext(()=>Ct(k,T)))});return(0,R.of)(Pe).pipe(Or(),wr())}(j=fn(k,j),k,T).pipe((0,ot.U)(rt=>!0===rt?Pe:{...Bi})):(0,R.of)(Pe)}function Cs(I,k,T){if(""===k.path)return"full"===k.pathMatch&&(I.hasChildren()||T.length>0)?{...Bi}:{matched:!0,consumedSegments:[],remainingSegments:T,parameters:{},positionalParamSegments:{}};const Y=(k.matcher||kn)(T,I,k);if(!Y)return{...Bi};const Pe={};_n(Y.posParams,(Ct,yn)=>{Pe[yn]=Ct.path});const rt=Y.consumed.length>0?{...Pe,...Y.consumed[Y.consumed.length-1].parameters}:Pe;return{matched:!0,consumedSegments:Y.consumed,remainingSegments:T.slice(Y.consumed.length),parameters:rt,positionalParamSegments:Y.posParams??{}}}function Qo(I,k,T,j,Y="corrected"){if(T.length>0&&function Xo(I,k,T){return T.some(j=>xs(I,k,j)&&ji(j)!==Dt)}(I,T,j)){const rt=new De(k,function na(I,k,T,j){const Y={};Y[Dt]=j,j._sourceSegment=I,j._segmentIndexShift=k.length;for(const Pe of T)if(""===Pe.path&&ji(Pe)!==Dt){const rt=new De([],{});rt._sourceSegment=I,rt._segmentIndexShift=k.length,Y[ji(Pe)]=rt}return Y}(I,k,j,new De(T,I.children)));return rt._sourceSegment=I,rt._segmentIndexShift=k.length,{segmentGroup:rt,slicedSegments:[]}}if(0===T.length&&function ao(I,k,T){return T.some(j=>xs(I,k,j))}(I,T,j)){const rt=new De(I.segments,function ta(I,k,T,j,Y,Pe){const rt={};for(const Ct of j)if(xs(I,T,Ct)&&!Y[ji(Ct)]){const yn=new De([],{});yn._sourceSegment=I,yn._segmentIndexShift="legacy"===Pe?I.segments.length:k.length,rt[ji(Ct)]=yn}return{...Y,...rt}}(I,k,T,j,I.children,Y));return rt._sourceSegment=I,rt._segmentIndexShift=k.length,{segmentGroup:rt,slicedSegments:T}}const Pe=new De(I.segments,I.children);return Pe._sourceSegment=I,Pe._segmentIndexShift=k.length,{segmentGroup:Pe,slicedSegments:T}}function xs(I,k,T){return(!(I.hasChildren()||k.length>0)||"full"!==T.pathMatch)&&""===T.path}function $a(I,k,T,j){return!!(ji(I)===j||j!==Dt&&xs(k,T,I))&&("**"===I.path||Cs(k,I,T).matched)}function Ra(I,k,T){return 0===k.length&&!I.children[T]}const Eo=!1;class xo{constructor(k){this.segmentGroup=k||null}}class $r{constructor(k){this.urlTree=k}}function Tr(I){return de(new xo(I))}function yl(I){return de(new $r(I))}class Na{constructor(k,T,j,Y,Pe){this.injector=k,this.configLoader=T,this.urlSerializer=j,this.urlTree=Y,this.config=Pe,this.allowRedirects=!0}apply(){const k=Qo(this.urlTree.root,[],[],this.config).segmentGroup,T=new De(k.segments,k.children);return this.expandSegmentGroup(this.injector,this.config,T,Dt).pipe((0,ot.U)(Pe=>this.createUrlTree(nt(Pe),this.urlTree.queryParams,this.urlTree.fragment))).pipe($t(Pe=>{if(Pe instanceof $r)return this.allowRedirects=!1,this.match(Pe.urlTree);throw Pe instanceof xo?this.noMatchError(Pe):Pe}))}match(k){return this.expandSegmentGroup(this.injector,this.config,k.root,Dt).pipe((0,ot.U)(Y=>this.createUrlTree(nt(Y),k.queryParams,k.fragment))).pipe($t(Y=>{throw Y instanceof xo?this.noMatchError(Y):Y}))}noMatchError(k){return new g.vHH(4002,Eo)}createUrlTree(k,T,j){const Y=ue(k);return new ke(Y,T,j)}expandSegmentGroup(k,T,j,Y){return 0===j.segments.length&&j.hasChildren()?this.expandChildren(k,T,j).pipe((0,ot.U)(Pe=>new De([],Pe))):this.expandSegment(k,j,T,j.segments,Y,!0)}expandChildren(k,T,j){const Y=[];for(const Pe of Object.keys(j.children))"primary"===Pe?Y.unshift(Pe):Y.push(Pe);return(0,e.D)(Y).pipe((0,mt.b)(Pe=>{const rt=j.children[Pe],Ct=br(T,Pe);return this.expandSegmentGroup(k,Ct,rt,Pe).pipe((0,ot.U)(yn=>({segment:yn,outlet:Pe})))}),(0,Vn.R)((Pe,rt)=>
1(Pe[rt.outlet]=rt.segment,Pe),{}),St())}expandSegment(k,T,j,Y,Pe,rt){return(0,e.D)(j).pipe((0,mt.b)(Ct=>this.expandSegmentAgainstRoute(k,T,j,Ct,Y,Pe,rt).pipe($t($n=>{if($n instanceof xo)return(0,R.of)(null);throw $n}))),(0,xt.P)(Ct=>!!Ct),$t((Ct,yn)=>{if(us(Ct))return Ra(T,Y,Pe)?(0,R.of)(new De([],{})):Tr(T);throw Ct}))}expandSegmentAgainstRoute(k,T,j,Y,Pe,rt,Ct){return $a(Y,T,Pe,rt)?void 0===Y.redirectTo?this.matchSegmentAgainstRoute(k,T,Y,Pe,rt):Ct&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(k,T,j,Y,Pe,rt):Tr(T):Tr(T)}expandSegmentAgainstRouteUsingRedirect(k,T,j,Y,Pe,rt){return"**"===Y.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(k,j,Y,rt):this.expandRegularSegmentAgainstRouteUsingRedirect(k,T,j,Y,Pe,rt)}expandWildCardWithParamsAgainstRouteUsingRedirect(k,T,j,Y){const Pe=this.applyRedirectCommands([],j.redirectTo,{});return j.redirectTo.startsWith("/")?yl(Pe):this.lineralizeSegments(j,Pe).pipe((0,ze.z)(rt=>{const Ct=new De(rt,{});return this.expandSegment(k,Ct,T,rt,Y,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(k,T,j,Y,Pe,rt){const{matched:Ct,consumedSegments:yn,remainingSegments:$n,positionalParamSegments:gr}=Cs(T,Y,Pe);if(!Ct)return Tr(T);const Ci=this.applyRedirectCommands(yn,Y.redirectTo,gr);return Y.redirectTo.startsWith("/")?yl(Ci):this.lineralizeSegments(Y,Ci).pipe((0,ze.z)(Yr=>this.expandSegment(k,T,j,Yr.concat($n),rt,!1)))}matchSegmentAgainstRoute(k,T,j,Y,Pe){return"**"===j.path?(k=fn(j,k),j.loadChildren?(j._loadedRoutes?(0,R.of)({routes:j._loadedRoutes,injector:j._loadedInjector}):this.configLoader.loadChildren(k,j)).pipe((0,ot.U)(Ct=>(j._loadedRoutes=Ct.routes,j._loadedInjector=Ct.injector,new De(Y,{})))):(0,R.of)(new De(Y,{}))):Ro(T,j,Y,k).pipe((0,fe.w)(({matched:rt,consumedSegments:Ct,remainingSegments:yn})=>rt?this.getChildConfig(k=j._injector??k,j,Y).pipe((0,ze.z)(gr=>{const Ci=gr.injector??k,Yr=gr.routes,{segmentGroup:Fs,slicedSegments:Ea}=Qo(T,Ct,yn,Yr),hr=new De(Fs.segments,Fs.children);if(0===Ea.length&&hr.hasChildren())return this.expandChildren(Ci,Yr,hr).pipe((0,ot.U)(Ri=>new De(Ct,Ri)));if(0===Yr.length&&0===Ea.length)return(0,R.of)(new De(Ct,{}));const va=ji(j)===Pe;return this.expandSegment(Ci,hr,Yr,Ea,va?Dt:Pe,!0).pipe((0,ot.U)(jc=>new De(Ct.concat(jc.segments),jc.children)))})):Tr(T)))}getChildConfig(k,T,j){return T.children?(0,R.of)({routes:T.children,injector:k}):T.loadChildren?void 0!==T._loadedRoutes?(0,R.of)({routes:T._loadedRoutes,injector:T._loadedInjector}):function or(I,k,T,j){const Y=k.canLoad;if(void 0===Y||0===Y.length)return(0,R.of)(!0);const Pe=Y.map(rt=>{const Ct=Jo(rt,I);return ui(function J(I){return I&&ko(I.canLoad)}(Ct)?Ct.canLoad(k,T):I.runInContext(()=>Ct(k,T)))});return(0,R.of)(Pe).pipe(Or(),wr())}(k,T,j).pipe((0,ze.z)(Y=>Y?this.configLoader.loadChildren(k,T).pipe((0,zt.b)(Pe=>{T._loadedRoutes=Pe.routes,T._loadedInjector=Pe.injector})):function zs(I){return de(Bs(Eo,3))}())):(0,R.of)({routes:[],injector:k})}lineralizeSegments(k,T){let j=[],Y=T.root;for(;;){if(j=j.concat(Y.segments),0===Y.numberOfChildren)return(0,R.of)(j);if(Y.numberOfChildren>1||!Y.children[Dt])return de(new g.vHH(4e3,Eo));Y=Y.children[Dt]}}applyRedirectCommands(k,T,j){return this.applyRedirectCreateUrlTree(T,this.urlSerializer.parse(T),k,j)}applyRedirectCreateUrlTree(k,T,j,Y){const Pe=this.createSegmentGroup(k,T.root,j,Y);return new ke(Pe,this.createQueryParams(T.queryParams,this.urlTree.queryParams),T.fragment)}createQueryParams(k,T){const j={};return _n(k,(Y,Pe)=>{if("string"==typeof Y&&Y.startsWith(":")){const Ct=Y.substring(1);j[Pe]=T[Ct]}else j[Pe]=Y}),j}createSegmentGroup(k,T,j,Y){const Pe=this.createSegments(k,T.segments,j,Y);let rt={};return _n(T.children,(Ct,yn)=>{rt[yn]=this.createSegmentGroup(k,Ct,j,Y)}),new De(Pe,rt)}createSegments(k,T,j,Y){return T.map(Pe=>Pe.path.startsWith(":")?this.findPosParam(k,Pe,Y):this.findOrReturn(Pe,j))}findPosParam(k,T,j){const Y=j[T.path.substring(1)];if(!Y)throw new g.vHH(4001,Eo);return Y}findOrReturn(k,T){let j=0;
1for(const Y of T){if(Y.path===k.path)return T.splice(j),Y;j++}return k}}class Ga{}class No{constructor(k,T,j,Y,Pe,rt,Ct,yn){this.injector=k,this.rootComponentType=T,this.config=j,this.urlTree=Y,this.url=Pe,this.paramsInheritanceStrategy=rt,this.relativeLinkResolution=Ct,this.urlSerializer=yn}recognize(){const k=Qo(this.urlTree.root,[],[],this.config.filter(T=>void 0===T.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,k,Dt).pipe((0,ot.U)(T=>{if(null===T)return null;const j=new zi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Dt,this.rootComponentType,null,this.urlTree.root,-1,{}),Y=new co(j,T),Pe=new cs(this.url,Y);return this.inheritParamsAndData(Pe._root),Pe}))}inheritParamsAndData(k){const T=k.value,j=Mo(T,this.paramsInheritanceStrategy);T.params=Object.freeze(j.params),T.data=Object.freeze(j.data),k.children.forEach(Y=>this.inheritParamsAndData(Y))}processSegmentGroup(k,T,j,Y){return 0===j.segments.length&&j.hasChildren()?this.processChildren(k,T,j):this.processSegment(k,T,j,j.segments,Y)}processChildren(k,T,j){return(0,e.D)(Object.keys(j.children)).pipe((0,mt.b)(Y=>{const Pe=j.children[Y],rt=br(T,Y);return this.processSegmentGroup(k,rt,Pe,Y)}),(0,Vn.R)((Y,Pe)=>Y&&Pe?(Y.push(...Pe),Y):null),(0,$e.o)(Y=>null!==Y),(0,tt.d)(null),St(),(0,ot.U)(Y=>{if(null===Y)return null;const Pe=ya(Y);return function qs(I){I.sort((k,T)=>k.value.outlet===Dt?-1:T.value.outlet===Dt?1:k.value.outlet.localeCompare(T.value.outlet))}(Pe),Pe}))}processSegment(k,T,j,Y,Pe){return(0,e.D)(T).pipe((0,mt.b)(rt=>this.processSegmentAgainstRoute(rt._injector??k,rt,j,Y,Pe)),(0,xt.P)(rt=>!!rt),$t(rt=>{if(us(rt))return Ra(j,Y,Pe)?(0,R.of)([]):(0,R.of)(null);throw rt}))}processSegmentAgainstRoute(k,T,j,Y,Pe){if(T.redirectTo||!$a(T,j,Y,Pe))return(0,R.of)(null);let rt;if("**"===T.path){const Ct=Y.length>0?Hn(Y).parameters:{},yn=ma(j)+Y.length,$n=new zi(Y,Ct,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,oe(T),ji(T),T.component??T._loadedComponent??null,T,Ca(j),yn,$(T),yn);rt=(0,R.of)({snapshot:$n,consumedSegments:[],remainingSegments:[]})}else rt=Ro(j,T,Y,k).pipe((0,ot.U)(({matched:Ct,consumedSegments:yn,remainingSegments:$n,parameters:gr})=>{if(!Ct)return null;const Ci=ma(j)+yn.length;return{snapshot:new zi(yn,gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,oe(T),ji(T),T.component??T._loadedComponent??null,T,Ca(j),Ci,$(T),Ci),consumedSegments:yn,remainingSegments:$n}}));return rt.pipe((0,fe.w)(Ct=>{if(null===Ct)return(0,R.of)(null);const{snapshot:yn,consumedSegments:$n,remainingSegments:gr}=Ct;k=T._injector??k;const Ci=T._loadedInjector??k,Yr=function ga(I){return I.children?I.children:I.loadChildren?I._loadedRoutes:[]}(T),{segmentGroup:Fs,slicedSegments:Ea}=Qo(j,$n,gr,Yr.filter(va=>void 0===va.redirectTo),this.relativeLinkResolution);if(0===Ea.length&&Fs.hasChildren())return this.processChildren(Ci,Yr,Fs).pipe((0,ot.U)(va=>null===va?null:[new co(yn,va)]));if(0===Yr.length&&0===Ea.length)return(0,R.of)([new co(yn,[])]);const hr=ji(T)===Pe;return this.processSegment(Ci,Yr,Fs,Ea,hr?Dt:Pe).pipe((0,ot.U)(va=>null===va?null:[new co(yn,va)]))}))}}function sl(I){const k=I.value.routeConfig;return k&&""===k.path&&void 0===k.redirectTo}function ya(I){const k=[],T=new Set;for(const j of I){if(!sl(j)){k.push(j);continue}const Y=k.find(Pe=>j.value.routeConfig===Pe.value.routeConfig);void 0!==Y?(Y.children.push(...j.children),T.add(Y)):k.push(j)}for(const j of T){const Y=ya(j.children);k.push(new co(j.value,Y))}return k.filter(j=>!T.has(j))}function Ca(I){let k=I;for(;k._sourceSegment;)k=k._sourceSegment;return k}function ma(I){let k=I,T=k._segmentIndexShift??0;for(;k._sourceSegment;)k=k._sourceSegment,T+=k._segmentIndexShift??0;return T-1}function oe(I){return I.data||{}}function $(I){return I.resolve||{}}function Xi(I){return"string"==typeof I.title||null===I.title}function yr(I){return(0,fe.w)(k=>{const T=I(k);return T?(0,e.D)(T).pipe((0,ot.U)(()=>k)):(0,R.of)(k)})}let Ei=(()=>{class I{buildTitle(T){let j,Y=T.root;for(;void 0!==Y;)j=this.getResolvedTitleForRoute(Y)??j,Y=Y.children.find(Pe=>Pe.outlet===Dt);return j}getResolvedTitleForRoute(T){return T.data[hn]}}return I.\u0275fac=function(T){return new(T||I)},I.\u0275prov=g.Yz7({token:I,factory:function(){return(0,g.f3M)(Pr)},providedIn:"root"}),I})(),Pr=(()=>
1{class I extends Ei{constructor(T){super(),this.title=T}updateTitle(T){const j=this.buildTitle(T);void 0!==j&&this.title.setTitle(j)}}return I.\u0275fac=function(T){return new(T||I)(g.LFG(Wt.Dx))},I.\u0275prov=g.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();class lo{}class In extends class ia{shouldDetach(k){return!1}store(k,T){}shouldAttach(k){return!1}retrieve(k){return null}shouldReuseRoute(k,T){return k.routeConfig===T.routeConfig}}{}const Mr=new g.OlP("",{providedIn:"root",factory:()=>({})}),si=new g.OlP("ROUTES");let _i=(()=>{class I{constructor(T,j){this.injector=T,this.compiler=j,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(T){if(this.componentLoaders.get(T))return this.componentLoaders.get(T);if(T._loadedComponent)return(0,R.of)(T._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(T);const j=ui(T.loadComponent()).pipe((0,zt.b)(Pe=>{this.onLoadEndListener&&this.onLoadEndListener(T),T._loadedComponent=Pe}),ie(()=>{this.componentLoaders.delete(T)})),Y=new lt(j,()=>new sn.x).pipe(qe());return this.componentLoaders.set(T,Y),Y}loadChildren(T,j){if(this.childrenLoaders.get(j))return this.childrenLoaders.get(j);if(j._loadedRoutes)return(0,R.of)({routes:j._loadedRoutes,injector:j._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(j);const Pe=this.loadModuleFactoryOrRoutes(j.loadChildren).pipe((0,ot.U)(Ct=>{this.onLoadEndListener&&this.onLoadEndListener(j);let yn,$n,gr=!1;Array.isArray(Ct)?$n=Ct:(yn=Ct.create(T).injector,$n=Ln(yn.get(si,[],g.XFs.Self|g.XFs.Optional)));return{routes:$n.map(nr),injector:yn}}),ie(()=>{this.childrenLoaders.delete(j)})),rt=new lt(Pe,()=>new sn.x).pipe(qe());return this.childrenLoaders.set(j,rt),rt}loadModuleFactoryOrRoutes(T){return ui(T()).pipe((0,ze.z)(j=>j instanceof g.YKP||Array.isArray(j)?(0,R.of)(j):(0,e.D)(this.compiler.compileModuleAsync(j))))}}return I.\u0275fac=function(T){return new(T||I)(g.LFG(g.zs3),g.LFG(g.Sil))},I.\u0275prov=g.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();class Ms{}class ii{shouldProcessUrl(k){return!0}extract(k){return k}merge(k,T){return k}}function Sn(I){throw I}function To(I,k,T){return k.parse("/")}const al={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fc(){const I=(0,g.f3M)(st),k=(0,g.f3M)(oo),T=(0,g.f3M)(Xt.Ye),j=(0,g.f3M)(g.zs3),Y=(0,g.f3M)(g.Sil),Pe=(0,g.f3M)(si,{optional:!0})??[],rt=(0,g.f3M)(Mr,{optional:!0})??{},Ct=(0,g.f3M)(Pr),yn=(0,g.f3M)(Ei,{optional:!0}),$n=(0,g.f3M)(Ms,{optional:!0}),gr=(0,g.f3M)(lo,{optional:!0}),Ci=new go(null,I,k,T,j,Y,Ln(Pe));return $n&&(Ci.urlHandlingStrategy=$n),gr&&(Ci.routeReuseStrategy=gr),Ci.titleStrategy=yn??Ct,function hc(I,k){I.errorHandler&&(k.errorHandler=I.errorHandler),I.malformedUriErrorHandler&&(k.malformedUriErrorHandler=I.malformedUriErrorHandler),I.onSameUrlNavigation&&(k.onSameUrlNavigation=I.onSameUrlNavigation),I.paramsInheritanceStrategy&&(k.paramsInheritanceStrategy=I.paramsInheritanceStrategy),I.relativeLinkResolution&&(k.relativeLinkResolution=I.relativeLinkResolution),I.urlUpdateStrategy&&(k.urlUpdateStrategy=I.urlUpdateStrategy),I.canceledNavigationResolution&&(k.canceledNavigationResolution=I.canceledNavigationResolution)}(rt,Ci),Ci}let go=(()=>{class I{constructor(T,j,Y,Pe,rt,Ct,yn){this.rootComponentType=T,this.urlSerializer=j,this.rootContexts=Y,this.location=Pe,this.config=yn,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new sn.x,this.errorHandler=Sn,this.malformedUriErrorHandler=To,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new ii,this.routeReuseStrategy=new In,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=rt.get(_i),this.configLoader.onLoadEndListener=Yr=>this.triggerEvent(new Ti(Yr)),this.configLoader.onLoadStartListener=Yr=>this.triggerEvent(new Mi(Yr)),this.ngModule=rt.get(g.h0i),this.console=rt.get(g.c2e);const Ci=rt.get(g.R0b);this.isNgZoneEnabled=Ci instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(yn),this.currentUrlTree=function ri(){return new ke(new De([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Vo(this.currentUrlTree,this.rootComponentType),this.transitions=new me.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(T){const j=this.events;return T.pipe((0,it.h)(Y=>0!==Y.id),(0,ot.U)(Y=>({...Y,extractedUrl:this.urlHandlingStrategy.extract(Y.rawUrl)})),(0,fe.w)(Y=>{let Pe=!1,rt=!1;return(0,R.of)(Y).pipe((0,zt.b)(Ct=>{this.currentNavigation={id:Ct.id,initialUrl:Ct.rawUrl,extractedUrl:Ct.extractedUrl,trigger:Ct.source,extras:Ct.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,fe.w)(Ct=>{const yn=this.browserUrlTree.toString(),$n=!this.navigated||Ct.extractedUrl.toString()!==yn||yn!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||$n)&&this.urlHandlingStrategy.shouldProcessUrl(Ct.rawUrl))return wa(Ct.source)&&(this.browserUrlTree=Ct.extractedUrl),(0,R.of)(Ct).pipe((0,fe.w)(Ci=>{const Yr=this.transitions.getValue();return j.next(new Ke(Ci.id,this.serializeUrl(Ci.extractedUrl),Ci.source,Ci.restoredState)),Yr!==this.transitions.getValue()?dt.E:Promise.resolve(Ci)}),function pa(I,k,T,j){return(0,fe.w)(Y=>function dc(I,k,T,j,Y){return new Na(I,k,T,j,Y).apply()}(I,k,T,Y.extractedUrl,j).pipe((0,ot.U)(Pe=>({...Y,urlAfterRedirects:Pe}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,zt.b)(Ci=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ci.urlAfterRedirects},Y.urlAfterRedirects=Ci.urlAfterRedirects}),function Ae(I,k,T,j,Y,Pe){return(0,ze.z)(rt=>function ws(I,k,T,j,Y,Pe,rt="emptyOnly",Ct="legacy"){return new No(I,k,T,j,Y,rt,Ct,Pe).recognize().pipe((0,fe.w)(yn=>null===yn?function Ns(I){return new x.y(k=>k.error(I))}(new Ga):(0,R.of)(yn)))}(I,k,T,rt.urlAfterRedirects,j.serialize(rt.urlAfterRedirects),j,Y,Pe).pipe((0,ot.U)(Ct=>({...rt,targetSnapshot:Ct}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,zt.b)(Ci=>{if(Y.targetSnapshot=Ci.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!Ci.extras.skipLocationChange){const Fs=this.urlHandlingStrategy.merge(Ci.urlAfterRedirects,Ci.rawUrl);this.setBrowserUrl(Fs,Ci)}this.browserUrlTree=Ci.urlAfterRedirects}const Yr=new we(Ci.id,this.serializeUrl(Ci.extractedUrl),this.serializeUrl(Ci.urlAfterRedirects),Ci.targetSnapshot);j.next(Yr)}));if($n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Yr,extractedUrl:Fs,source:Ea,restoredState:hr,extras:va}=Ct,Tl=new Ke(Yr,this.serializeUrl(Fs),Ea,hr);j.next(Tl);const jc=Vo(Fs,this.rootComponentType).snapshot;return Y={...Ct,targetSnapshot:jc,urlAfterRedirects:Fs,extras:{...va,skipLocationChange:!1,replaceUrl:!1}},(0,R.of)(Y)}return this.rawUrlTree=Ct.rawUrl,Ct.resolve(null),dt.E}),(0,zt.b)(Ct=>{const yn=new ct(Ct.id,this.serializeUrl(Ct.extractedUrl),this.serializeUrl(Ct.urlAfterRedirects),Ct.targetSnapshot);this.triggerEvent(yn)}),(0,ot.U)(Ct=>Y={...Ct,guards:Yo(Ct.targetSnapshot,Ct.currentSnapshot,this.rootContexts)}),function Me(I,k){return(0,ze.z)(T=>{const{targetSnapshot:j,currentSnapshot:Y,guards:{canActivateChecks:Pe,canDeactivateChecks:rt}}=T;return 0===rt.length&&0===Pe.length?(0,R.of)({...T,guardsResult:!0}):function Fe(I,k,T,j){return(0,e.D)(I).pipe((0,ze.z)(Y=>
1function dr(I,k,T,j,Y){const Pe=k&&k.routeConfig?k.routeConfig.canDeactivate:null;if(!Pe||0===Pe.length)return(0,R.of)(!0);const rt=Pe.map(Ct=>{const yn=mi(k)??Y,$n=Jo(Ct,yn);return ui(function Se(I){return I&&ko(I.canDeactivate)}($n)?$n.canDeactivate(I,k,T,j):yn.runInContext(()=>$n(I,k,T,j))).pipe((0,xt.P)())});return(0,R.of)(rt).pipe(Or())}(Y.component,Y.route,T,k,j)),(0,xt.P)(Y=>!0!==Y,!0))}(rt,j,Y,I).pipe((0,ze.z)(Ct=>Ct&&function so(I){return"boolean"==typeof I}(Ct)?function vt(I,k,T,j){return(0,e.D)(k).pipe((0,mt.b)(Y=>(0,Te.z)(function Pn(I,k){return null!==I&&k&&k(new $i(I)),(0,R.of)(!0)}(Y.route.parent,j),function Qt(I,k){return null!==I&&k&&k(new eo(I)),(0,R.of)(!0)}(Y.route,j),function ci(I,k,T){const j=k[k.length-1],Pe=k.slice(0,k.length-1).reverse().map(rt=>function ys(I){const k=I.routeConfig?I.routeConfig.canActivateChild:null;return k&&0!==k.length?{node:I,guards:k}:null}(rt)).filter(rt=>null!==rt).map(rt=>(0,se.P)(()=>{const Ct=rt.guards.map(yn=>{const $n=mi(rt.node)??T,gr=Jo(yn,$n);return ui(function H(I){return I&&ko(I.canActivateChild)}(gr)?gr.canActivateChild(j,I):$n.runInContext(()=>gr(j,I))).pipe((0,xt.P)())});return(0,R.of)(Ct).pipe(Or())}));return(0,R.of)(Pe).pipe(Or())}
1(I,Y.path,T),function Zn(I,k,T){const j=k.routeConfig?k.routeConfig.canActivate:null;if(!j||0===j.length)return(0,R.of)(!0);const Y=j.map(Pe=>(0,se.P)(()=>{const rt=mi(k)??T,Ct=Jo(Pe,rt);return ui(function W(I){return I&&ko(I.canActivate)}(Ct)?Ct.canActivate(k,I):rt.runInContext(()=>Ct(k,I))).pipe((0,xt.P)())}));return(0,R.of)(Y).pipe(Or())}(I,Y.route,T))),(0,xt.P)(Y=>!0!==Y,!0))}(j,Pe,I,k):(0,R.of)(Ct)),(0,ot.U)(Ct=>({...T,guardsResult:Ct})))})}(this.ngModule.injector,Ct=>this.triggerEvent(Ct)),(0,zt.b)(Ct=>{if(Y.guardsResult=Ct.guardsResult,mn(Ct.guardsResult))throw no(0,Ct.guardsResult);const yn=new jt(Ct.id,this.serializeUrl(Ct.extractedUrl),this.serializeUrl(Ct.urlAfterRedirects),Ct.targetSnapshot,!!Ct.guardsResult);this.triggerEvent(yn)}),(0,it.h)(Ct=>!!Ct.guardsResult||(this.restoreHistory(Ct),this.cancelNavigationTransition(Ct,"",3),!1)),yr(Ct=>{if(Ct.guards.canActivateChecks.length)return(0,R.of)(Ct).pipe((0,zt.b)(yn=>{const $n=new Mn(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot);this.triggerEvent($n)}),(0,fe.w)(yn=>{let $n=!1;return(0,R.of)(yn).pipe(function Pt(I,k){return(0,ze.z)(T=>{const{targetSnapshot:j,guards:{canActivateChecks:Y}}=T;if(!Y.length)return(0,R.of)(T);let Pe=0;return(0,e.D)(Y).pipe((0,mt.b)(rt=>function dn(I,k,T,j){const Y=I.routeConfig,Pe=I._resolve;return void 0!==Y?.title&&!Xi(Y)&&(Pe[hn]=Y.title),function En(I,k,T,j){const Y=function xi(I){return[...Object.keys(I),...Object.getOwnPropertySymbols(I)]}(I);if(0===Y.length)return(0,R.of)({});const Pe={};return(0,e.D)(Y).pipe((0,ze.z)(rt=>function Nr(I,k,T,j){const Y=mi(k)??j,Pe=Jo(I,Y);return ui(Pe.resolve?Pe.resolve(k,T):Y.runInContext(()=>Pe(k,T)))}(I[rt],k,T,j).pipe((0,xt.P)(),(0,zt.b)(Ct=>{Pe[rt]=Ct}
1))),Ut(1),function je(I){return(0,ot.U)(()=>I)}(Pe),$t(rt=>us(rt)?dt.E:de(rt)))}(Pe,I,k,j).pipe((0,ot.U)(rt=>(I._resolvedData=rt,I.data=Mo(I,T).resolve,Y&&Xi(Y)&&(I.data[hn]=Y.title),null)))}(rt.route,j,I,k)),(0,zt.b)(()=>Pe++),Ut(1),(0,ze.z)(rt=>Pe===Y.length?(0,R.of)(T):dt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,zt.b)({next:()=>$n=!0,complete:()=>{$n||(this.restoreHistory(yn),this.cancelNavigationTransition(yn,"",2))}}))}),(0,zt.b)(yn=>{const $n=new Jn(yn.id,this.serializeUrl(yn.extractedUrl),this.serializeUrl(yn.urlAfterRedirects),yn.targetSnapshot);this.triggerEvent($n)}))}),yr(Ct=>{const yn=$n=>{const gr=[];$n.routeConfig?.loadComponent&&!$n.routeConfig._loadedComponent&&gr.push(this.configLoader.loadComponent($n.routeConfig).pipe((0,zt.b)(Ci=>{$n.component=Ci}),(0,ot.U)(()=>{})));for(const Ci of $n.children)gr.push(...yn(Ci));return gr};return(0,ae.a)(yn(Ct.targetSnapshot.root)).pipe((0,tt.d)(),(0,ut.q)(1))}),yr(()=>this.afterPreactivation()),(0,ot.U)(Ct=>{const yn=function ea(I,k,T){const j=Io(I,k._root,T?T._root:void 0);return new Zs(j,k)}(this.routeReuseStrategy,Ct.targetSnapshot,Ct.currentRouterState);return Y={...Ct,targetRouterState:yn}}),(0,zt.b)(Ct=>{this.currentUrlTree=Ct.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ct.urlAfterRedirects,Ct.rawUrl),this.routerState=Ct.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ct.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ct),this.browserUrlTree=Ct.urlAfterRedirects)}),((I,k,T)=>(0,ot.U)(j=>(new Rr(k,j.targetRouterState,j.currentRouterState,T).activate(I),j)))(this.rootContexts,this.routeReuseStrategy,Ct=>this.triggerEvent(Ct)),(0,zt.b)({next(){Pe=!0},complete(){Pe=!0}}),ie(()=>{Pe||rt||this.cancelNavigationTransition(Y,"",1),this.currentNavigation?.id===Y.id&&(this.currentNavigation=null)}),$t(Ct=>{if(rt=!0,ks(Ct)){Ur(Ct)||(this.navigated=!0,this.restoreHistory(Y,!0));const yn=new ht(Y.id,this.serializeUrl(Y.extractedUrl),Ct.message,Ct.cancellationCode);if(j.next(yn),Ur(Ct)){const $n=this.urlHandlingStrategy.merge(Ct.url,this.rawUrlTree),gr={skipLocationChange:Y.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||wa(Y.source)};this.scheduleNavigation($n,"imperative",null,gr,{resolve:Y.resolve,reject:Y.reject,promise:Y.promise})}else Y.resolve(!1)}else{this.restoreHistory(Y,!0);const yn=new Kt(Y.id,this.serializeUrl(Y.extractedUrl),Ct,Y.targetSnapshot??void 0);j.next(yn);try{Y.resolve(this.errorHandler(Ct))}catch($n){Y.reject($n)}}return dt.E}))}))}resetRootComponentType(T){this.rootComponentType=T,this.routerState.root.component=this.rootComponentType}setTransition(T){this.transitions.next({...this.transitions.value,...T})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(T=>{const j="popstate"===T.type?"popstate":"hashchange";"popstate"===j&&setTimeout(()=>{const Y={replaceUrl:!0},Pe=T.state?.navigationId?T.state:null;if(Pe){const Ct={...Pe};delete Ct.navigationId,delete Ct.\u0275routerPageId,0!==Object.keys(Ct).length&&(Y.state=Ct)}const rt=this.parseUrl(T.url);this.scheduleNavigation(rt,j,Pe,Y)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(T){this.events.next(T)}resetConfig(T){this.config=T.map(nr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(T,j={}){const{relativeTo:Y,queryParams:Pe,fragment:rt,queryParamsHandling:Ct,preserveFragment:yn}=j,$n=Y||this.routerState.root,gr=yn?this.currentUrlTree.fragment:rt;let Ci=null;switch(Ct){case"merge":Ci={...this.currentUrlTree.queryParams,...Pe};break;case"preserve":Ci=this.currentUrlTree.queryParams;break;default:Ci=Pe||null}return null!==Ci&&(Ci=this.removeEmptyProps(Ci)),vn($n,this.currentUrlTree,T,Ci,gr??null)}navigateByUrl(T,j={skipLocationChange:!1}){const Y=mn(T)?T:this.parseUrl(T),Pe=this.urlHandlingStrategy.merge(Y,this.rawUrlTree);return this.scheduleNavigation(Pe,"imperative",null,j)}navigate(T,j={skipLocationChange:!1}){return function Fa(I){for(let k=0;k<I.length;k++){if(null==I[k])throw new g.vHH(4008,false)}}(T),this.navigateByUrl(this.createUrlTree(T,j),j)}serializeUrl(T){return this.urlSerializer.serialize(T)}parseUrl(T){let j;try{j=this.urlSerializer.parse(T)}catch(Y){j=this.malformedUriErrorHandler(Y,this.urlSerializer,T)}return j}isActive(T,j){let Y;if(Y=!0===j?{...al}:!1===j?{...zc}:j,mn(T))return ei(this.currentUrlTree,T,Y);const Pe=this.parseUrl(T);return ei(this.currentUrlTree,Pe,Y)}removeEmptyProps(T){return Object.keys(T).reduce((j,Y)=>{const Pe=T[Y];return null!=Pe&&(j[Y]=Pe),j},{})}processNavigations(){this.navigations.subscribe(T=>{this.navigated=!0,this.lastSuccessfulId=T.id,this.currentPageId=T.targetPageId,this.events.next(new Ge(T.id,this.serializeUrl(T.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),T.resolve(!0)},T=>{this.console.warn(`Unhandled Navigation Error: ${T}`)})}scheduleNavigation(T,j,Y,Pe,rt){if(this.disposed)return Promise.resolve(!1);let Ct,yn,$n;rt?(Ct=rt.resolve,yn=rt.reject,$n=rt.promise):$n=new Promise((Yr,Fs)=>{Ct=Yr,yn=Fs});const gr=++this.navigationId;let Ci;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(Y=this.location.getState()),Ci=Y&&Y.\u0275routerPageId?Y.\u0275routerPageId:Pe.replaceUrl||Pe.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ci=0,this.setTransition({id:gr,targetPageId:Ci,source:j,restoredState:Y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:T,extras:Pe,resolve:Ct,reject:yn,promise:$n,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),$n.catch(Yr=>Promise.reject(Yr))}setBrowserUrl(T,j){const Y=this.urlSerializer.serialize(T),Pe={...j.extras.state,...this.generateNgRouterState(j.id,j.targetPageId)};this.location.isCurrentPathEqualTo(Y)||j.extras.replaceUrl?this.location.replaceState(Y,"",Pe):this.location.go(Y,"",Pe)}restoreHistory(T,j=!1){if("computed"===this.canceledNavigationResolution){const Y=this.currentPageId-T.targetPageId;"popstate"!==T.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===Y?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===Y&&(this.resetState(T),this.browserUrlTree=T.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Y)}else"replace"===this.canceledNavigationResolution&&(j&&this.resetState(T),this.resetUrlToCurrentUrlTree())}resetState(T){this.routerState=T.currentRouterState,this.currentUrlTree=T.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,T.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(T,j,Y){const Pe=new ht(T.id,this.serializeUrl(T.extractedUrl),j,Y);this.triggerEvent(Pe),T.resolve(!1)}generateNgRouterState(T,j){return"computed"===this.canceledNavigationResolution?{navigationId:T,\u0275routerPageId:j}:{navigationId:T}}}return I.\u0275fac=function(T){g.$Z()},I.\u0275prov=g.Yz7({token:I,factory:function(){return fc()},providedIn:"root"}),I})();function wa(I){return"imperative"!==I}let S=(()=>{class I{constructor(T,j,Y,Pe,rt){this.router=T,this.route=j,this.tabIndexAttribute=Y,this.renderer=Pe,this.el=rt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new sn.x,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(T){this._preserveFragment=(0,g.D6c)(T)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(T){this._skipLocationChange=(0,g.D6c)(T)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(T){this._replaceUrl=(0,g.D6c)(T)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(T){if(null!=this.tabIndexAttribute)return;const j=this.renderer,Y=this.el.nativeElement;null!==T?j.setAttribute(Y,"tabindex",T):j.removeAttribute(Y,"tabindex")}ngOnChanges(T){this.onChanges.next(this)}set routerLink(T){null!=T?(this.commands=Array.isArray(T)?T:[T],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return I.\u0275fac=function(T){return new(T||I)(g.Y36(go),g.Y36(fo),g.$8M("tabindex"),g.Y36(g.Qsj),g.Y36(g.SBq))},I.\u0275dir=g.lG2({type:I,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(T,j){1&T&&g.NdJ("click",function(){return j.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[g.TTD]}),I})(),U=(()=>{class I{constructor(T,j,Y){this.router=T,this.route=j,this.locationStrategy=Y,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new sn.x,this.subscription=T.events.subscribe(Pe=>{Pe instanceof Ge&&this.updateTargetUrlAndHref()})}set preserveFragment(T){this._preserveFragment=(0,g.D6c)(T)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(T){this._skipLocationChange=(0,g.D6c)(T)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(T){this._replaceUrl=(0,g.D6c)(T)}get replaceUrl(){return this._replaceUrl}set routerLink(T){this.commands=null!=T?Array.isArray(T)?T:[T]:null}ngOnChanges(T){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(T,j,Y,Pe,rt){return!!(0!==T||j||Y||Pe||rt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return I.\u0275fac=function(T){return new(T||I)(g.Y36(go),g.Y36(fo),g.Y36(Xt.S$))},I.\u0275dir=g.lG2({type:I,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(T,j){1&T&&g.NdJ("click",function(Pe){return j.onClick(Pe.button,Pe.ctrlKey,Pe.shiftKey,Pe.altKey,Pe.metaKey)}),2&T&&g.uIk("target",j.target)("href",j.href,g.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[g.TTD]}),I})(),ee=(()=>{class I{constructor(T,j,Y,Pe,rt,Ct){this.router=T,this.element=j,this.renderer=Y,this.cdr=Pe,this.link=rt,this.linkWithHref=Ct,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new g.vpe,this.routerEventsSubscription=T.events.subscribe(yn=>{yn instanceof Ge&&this.update()})}ngAfterContentInit(){(0,R.of)(this.links.changes,this.linksWithHrefs.changes,(0,R.of)(null)).pipe((0,ft.J)()).subscribe(T=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const T=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(j=>!!j).map(j=>j.onChanges);this.linkInputChangesSubscription=(0,e.D)(T).pipe((0,ft.J)()).subscribe(j=>{this.isActive!==this.isLinkActive(this.router)(j)&&this.update()})}set routerLinkActive(T){const j=Array.isArray(T)?T:T.split(" ");this.classes=j.filter(Y=>!!Y)}ngOnChanges(T){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const T=this.hasActiveLinks();this.isActive!==T&&(this.isActive=T,this.cdr.markForCheck(),this.classes.forEac
1h(j=>{T?this.renderer.addClass(this.element.nativeElement,j):this.renderer.removeClass(this.element.nativeElement,j)}),T&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(T))})}isLinkActive(T){const j=function He(I){return!!I.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Y=>!!Y.urlTree&&T.isActive(Y.urlTree,j)}hasActiveLinks(){const T=this.isLinkActive(this.router);return this.link&&T(this.link)||this.linkWithHref&&T(this.linkWithHref)||this.links.some(T)||this.linksWithHrefs.some(T)}}return I.\u0275fac=function(T){return new(T||I)(g.Y36(go),g.Y36(g.SBq),g.Y36(g.Qsj),g.Y36(g.sBO),g.Y36(S,8),g.Y36(U,8))},I.\u0275dir=g.lG2({type:I,selectors:[["","routerLinkActive",""]],contentQueries:function(T,j,Y){if(1&T&&(g.Suo(Y,S,5),g.Suo(Y,U,5)),2&T){let Pe;g.iGM(Pe=g.CRH())&&(j.links=Pe),g.iGM(Pe=g.CRH())&&(j.linksWithHrefs=Pe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[g.TTD]}),I})();class Rt{}let Oi=(()=>{class I{constructor(T,j,Y,Pe,rt){this.router=T,this.injector=Y,this.preloadingStrategy=Pe,this.loader=rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,it.h)(T=>T instanceof Ge),(0,mt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(T,j){const Y=[];for(const Pe of j){Pe.providers&&!Pe._injector&&(Pe._injector=(0,g.MMx)(Pe.providers,T,`Route: ${Pe.path}`));const rt=Pe._injector??T,Ct=Pe._loadedInjector??rt;Pe.loadChildren&&!Pe._loadedRoutes&&void 0===Pe.canLoad||Pe.loadComponent&&!Pe._loadedComponent?Y.push(this.preloadConfig(rt,Pe)):(Pe.children||Pe._loadedRoutes)&&Y.push(this.processRoutes(Ct,Pe.children??Pe._loadedRoutes))}return(0,e.D)(Y).pipe((0,ft.J)())}preloadConfig(T,j){return this.preloadingStrategy.preload(j,()=>{let Y;Y=j.loadChildren&&void 0===j.canLoad?this.loader.loadChildren(T,j):(0,R.of)(null);const Pe=Y.pipe((0,ze.z)(rt=>null===rt?(0,R.of)(void 0):(j._loadedRoutes=rt.routes,j._loadedInjector=rt.injector,this.processRoutes(rt.injector??T,rt.routes))));if(j.loadComponent&&!j._loadedComponent){const rt=this.loader.loadComponent(j);return(0,e.D)([Pe,rt]).pipe((0,ft.J)())}return Pe})}}return I.\u0275fac=function(T){return new(T||I)(g.LFG(go),g.LFG(g.Sil),g.LFG(g.lqb),g.LFG(Rt),g.LFG(_i))},I.\u0275prov=g.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})();const Kn=new g.OlP("");let ss=(()=>{class I{constructor(T,j,Y={}){this.router=T,this.viewportScroller=j,this.options=Y,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Y.scrollPositionRestoration=Y.scrollPositionRestoration||"disabled",Y.anchorScrolling=Y.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(T=>{T instanceof Ke?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=T.navigationTrigger,this.restoredId=T.restoredState?T.restoredState.navigationId:0):T instanceof Ge&&(this.lastId=T.id,this.scheduleScrollEvent(T,this.router.parseUrl(T.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(T=>{T instanceof As&&(T.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(T.position):T.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(T.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(T,j){this.router.triggerEvent(new As(T,"popstate"===this.lastSource?this.store[this.restoredId]:null,j))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return I.\u0275fac=function(T){g.$Z()},I.\u0275prov=g.Yz7({token:I,factory:I.\u0275fac}),I})();function Qn(I,k){return{\u0275kind:I,\u0275providers:k}}function js(I){return[{provide:si,multi:!0,useValue:I}]}function xl(){const I=(0,g.f3M)(g.zs3);return k=>{const T=I.get(g.z2F);if(k!==T.components[0])return;const j=I.get(go),Y=I.get(io);
11===I.get(gc)&&j.initialNavigation(),I.get(Rd,null,g.XFs.Optional)?.setUpPreloading(),I.get(Kn,null,g.XFs.Optional)?.init(),j.resetRootComponentType(T.componentTypes[0]),Y.closed||(Y.next(),Y.unsubscribe())}}const io=new g.OlP("",{factory:()=>new sn.x}),gc=new g.OlP("",{providedIn:"root",factory:()=>1});const Rd=new g.OlP("");function Da(I){return Qn(0,[{provide:Rd,useExisting:Oi},{provide:Rt,useExisting:I}])}const Ml=new g.OlP("ROUTER_FORROOT_GUARD"),es=[Xt.Ye,{provide:st,useClass:Ee},{provide:go,useFactory:fc},oo,{provide:fo,useFactory:function Kr(I){return I.routerState.root},deps:[go]},_i];function rn(){return new g.PXZ("Router",go)}let El=(()=>{class I{constructor(T){}static forRoot(T,j){return{ngModule:I,providers:[es,[],js(T),{provide:Ml,useFactory:hs,deps:[[go,new g.FiY,new g.tp0]]},{provide:Mr,useValue:j||{}},j?.useHash?{provide:Xt.S$,useClass:Xt.Do}:{provide:Xt.S$,useClass:Xt.b0},{provide:Kn,useFactory:()=>{const I=(0,g.f3M)(go),k=(0,g.f3M)(Xt.EM),T=(0,g.f3M)(Mr);return T.scrollOffset&&k.setOffset(T.scrollOffset),new ss(I,k,T)}},j?.preloadingStrategy?Da(j.preloadingStrategy).\u0275providers:[],{provide:g.PXZ,multi:!0,useFactory:rn},j?.initialNavigation?Su(j):[],[{provide:_a,useFactory:xl},{provide:g.tb,multi:!0,useExisting:_a}]]}}static forChild(T){return{ngModule:I,providers:[js(T)]}}}return I.\u0275fac=function(T){return new(T||I)(g.LFG(Ml,8))},I.\u0275mod=g.oAB({type:I}),I.\u0275inj=g.cJS({imports:[Ht]}),I})();function hs(I){return"guarded"}function Su(I){return["disabled"===I.initialNavigation?Qn(3,[{provide:g.ip1,multi:!0,useFactory:()=>{const k=(0,g.f3M)(go);return()=>{k.setUpLocationChangeListener()}}},{provide:gc,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Qn(2,[{provide:gc,useValue:0},{provide:g.ip1,multi:!0,deps:[g.zs3],useFactory:k=>{const T=k.get(Xt.V_,Promise.resolve());let j=!1;return()=>T.then(()=>new Promise(Pe=>{const rt=k.get(go),Ct=k.get(io);(function Y(Pe){k.get(go).events.pipe((0,it.h)(Ct=>Ct instanceof Ge||Ct instanceof ht||Ct instanceof Kt),(0,ot.U)(Ct=>Ct instanceof Ge||Ct instanceof ht&&(0===Ct.code||1===Ct.code)&&null),(0,it.h)(Ct=>null!==Ct),(0,ut.q)(1)).subscribe(()=>{Pe()})})(()=>{Pe(!0),j=!0}),rt.afterPreactivation=()=>(Pe(!0),j||Ct.closed?(0,R.of)(void 0):Ct),rt.initialNavigation()}))}}]).\u0275providers:[]]}const _a=new g.OlP("")},3942:(wn,bt,D)=>{"use strict";D.d(bt,{Z:()=>We});var g=D(2090),e=D(4859),R=D(6881),me=D(1877);class ve{constructor(qe,lt){this._delegate=qe,this.firebase=lt,(0,R._addComponent)(qe,new e.wA("app-compat",()=>this,"PUBLIC")),this.container=qe.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(qe){this._delegate.automaticDataCollectionEnabled=qe}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(qe=>{this._delegate.checkDestroyed(),qe()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,R.deleteApp)(this._delegate)))}_getService(qe,lt=R._DEFAULT_ENTRY_NAME){var sn;this._delegate.checkDestroyed();const Xt=this._delegate.container.getProvider(qe);return!Xt.isInitialized()&&"EXPLICIT"===(null===(sn=Xt.getComponent())||void 0===sn?void 0:sn.instantiationMode)&&Xt.initialize(),Xt.getImmediate({identifier:lt})}_removeServiceInstance(qe,lt=R._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(qe).clearInstance(lt)}_addComponent(qe){(0,R._addComponent)(this._delegate,qe)}_addOrOverwriteComponent(qe){(0,R._addOrOverwriteComponent)(this._delegate,qe)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const Te=new g.LL("app-compat","Firebase",{"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."}),x=function z(){const At=function se(At){const qe={},lt={__esModule:!0,initializeApp:function ot(it,ze={}){const xt=R.initializeApp(it,ze);if((0,g.r3)(qe,xt.name))return qe[xt.name];const mt=new At(xt,lt);return qe[xt.name]=mt,mt}
1,app:Xt,registerVersion:R.registerVersion,setLogLevel:R.setLogLevel,onLog:R.onLog,apps:null,SDK_VERSION:R.SDK_VERSION,INTERNAL:{registerComponent:function ut(it){const ze=it.name,xt=ze.replace("-compat","");if(R._registerComponent(it)&&"PUBLIC"===it.type){const mt=(zt=Xt())=>{if("function"!=typeof zt[xt])throw Te.create("invalid-app-argument",{appName:ze});return zt[xt]()};void 0!==it.serviceProps&&(0,g.ZB)(mt,it.serviceProps),lt[xt]=mt,At.prototype[xt]=function(...zt){return this._getService.bind(this,ze).apply(this,it.multipleInstances?zt:[])}}return"PUBLIC"===it.type?lt[xt]:null},removeApp:function sn(it){delete qe[it]},useAsService:function Ye(it,ze){return"serverAuth"===ze?null:ze},modularAPIs:R}};function Xt(it){if(!(0,g.r3)(qe,it=it||R._DEFAULT_ENTRY_NAME))throw Te.create("no-app",{appName:it});return qe[it]}return lt.default=lt,Object.defineProperty(lt,"apps",{get:function fe(){return Object.keys(qe).map(it=>qe[it])}}),Xt.App=At,lt}(ve);return At.INTERNAL=Object.assign(Object.assign({},At.INTERNAL),{createFirebaseNamespace:z,extendNamespace:function qe(lt){(0,g.ZB)(At,lt)},createSubscribe:g.ne,ErrorFactory:g.LL,deepExtend:g.ZB}),At}(),G=new me.Yd("@firebase/app-compat");if((0,g.jU)()&&void 0!==self.firebase){G.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const At=self.firebase.SDK_VERSION;At&&At.indexOf("LITE")>=0&&G.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const We=x;!function Mt(At){(0,R.registerVersion)("@firebase/app-compat","0.2.13",At)}()},6881:(wn,bt,D)=>{"use strict";D.r(bt),D.d(bt,{FirebaseError:()=>me.ZR,SDK_VERSION:()=>on,_DEFAULT_ENTRY_NAME:()=>li,_addComponent:()=>P,_addOrOverwriteComponent:()=>le,_apps:()=>Ze,_clearComponents:()=>De,_components:()=>Oe,_getProvider:()=>Q,_registerComponent:()=>O,_removeServiceInstance:()=>ke,deleteApp:()=>_e,getApp:()=>Ee,getApps:()=>V,initializeApp:()=>st,onLog:()=>Yn,registerVersion:()=>un,setLogLevel:()=>Li});var g=D(5861),e=D(4859),R=D(1877),me=D(2090);let ae,Te;const x=new WeakMap,G=new WeakMap,de=new WeakMap,dt=new WeakMap,Mt=new WeakMap;let qe={get(kt,Ft,bn){if(kt instanceof IDBTransaction){if("done"===Ft)return G.get(kt);if("objectStoreNames"===Ft)return kt.objectStoreNames||de.get(kt);if("store"===Ft)return bn.objectStoreNames[1]?void 0:bn.objectStore(bn.objectStoreNames[0])}return ot(kt[Ft])},set:(kt,Ft,bn)=>(kt[Ft]=bn,!0),has:(kt,Ft)=>kt instanceof IDBTransaction&&("done"===Ft||"store"===Ft)||Ft in kt};function Xt(kt){return"function"==typeof kt?function sn(kt){return kt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function z(){return Te||(Te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(kt)?function(...Ft){return kt.apply(fe(this),Ft),ot(x.get(this))}:function(...Ft){return ot(kt.apply(fe(this),Ft))}:function(Ft,...bn){const vn=kt.call(fe(this),Ft,...bn);return de.set(vn,Ft.sort?Ft.sort():[Ft]),ot(vn)}}(kt):(kt instanceof IDBTransaction&&function At(kt){if(G.has(kt))return;const Ft=new Promise((bn,vn)=>{const ni=()=>{kt.removeEventListener("complete",di),kt.removeEventListener("error",ti),kt.removeEventListener("abort",ti)},di=()=>{bn(),ni()},ti=()=>{vn(kt.error||new DOMException("AbortError","AbortError")),ni()};kt.addEventListener("complete",di),kt.addEventListener("error",ti),kt.addEventListener("abort",ti)});G.set(kt,Ft)}(kt),((kt,Ft)=>Ft.some(bn=>kt instanceof bn))(kt,function se(){return ae||(ae=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(kt,qe):kt)}function ot(kt){if(kt instanceof IDBRequest)return function We(kt){const Ft=new Promise((bn,vn)=>{const ni=()=>{kt.removeEventListener("success",di),kt.removeEventListener("error",ti)},di=()=>{bn(ot(kt.result)),ni()},ti=()=>{vn(kt.error),ni()};kt.addEventListener("success",di),kt.addEventListener("error",ti)});return Ft.then(bn=>{bn instanceof IDBCursor&&x.set(bn,kt)}).catch(()=>{}),Mt.set(Ft,kt),Ft}(kt);if(dt.has(kt))return dt.get(kt);const Ft=Xt(kt);return Ft!==kt&&(dt.set(kt,Ft),Mt.set(Ft,kt)),Ft}const fe=kt=>Mt.get(kt),it=["get","getKey","getAll","getAllKeys","count"],ze=["put","add","delete","clear"],xt=new Map;function mt(kt,Ft){if(!(kt instanceof IDBDatabase)||Ft in kt||"string"!=typeof Ft)return;if(xt.get(Ft))return xt.get(Ft);const bn=Ft.replace(/FromIndex$/,""),vn=Ft!==bn,ni=ze.includes(bn);if(!(bn in(vn?IDBIndex:IDBObjectStore).prototype)||!ni&&!it.includes(bn))return;const di=function(){var ti=(0,g.Z)(function*(cr,...Ai){const fr=this.transaction(cr,ni?"readwrite":"readonly");let xr=fr.store;return vn&&(xr=xr.index(Ai.shift())),(yield Promise.all([xr[bn](...Ai),ni&&fr.done]))[0]});return function(Ai){return ti.apply(this,arguments)}}();return xt.set(Ft,di),di}!function lt(kt){qe=kt(qe)}(kt=>({...kt,get:(Ft,bn,vn)=>mt(Ft,bn)||kt.get(Ft,bn,vn),has:(Ft,bn)=>!!mt(Ft,bn)||kt.has(Ft,bn)}));class zt{constructor(Ft){this.container=Ft}getPlatformInfoString(){return this.container.getProviders().map(bn=>{if(function pn(kt){return"VERSION"===kt.getComponent()?.type}(bn)){const vn=bn.getImmediate();return`${vn.library}/${vn.version}`}return null}).filter(bn=>bn).join(" ")}}const $t="@firebase/app",Ut=new R.Yd("@firebase/app"),li="[DEFAULT]",ei={[$t]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Ze=new Map,Oe=new Map;function P(kt,Ft){try{kt.container.addComponent(Ft)}catch(bn){Ut.debug(`Component ${Ft.name} failed to register with FirebaseApp ${kt.name}`,bn)}}function le(kt,Ft){kt.container.addOrOverwriteComponent(Ft)}function O(kt){const Ft=kt.name;if(Oe.has(Ft))return Ut.debug(`There were multiple attempts to register component ${Ft}.`),!1;Oe.set(Ft,kt);for(const bn of Ze.values())P(bn,kt);return!0}function Q(kt,Ft){const bn=kt.container.getProvider("heartbeat").getImmediate({optional:!0});return bn&&bn.triggerHeartbeat(),kt.container.getProvider(Ft)}function ke(kt,Ft,bn=li){Q(kt,Ft).clearInstance(bn)}function De(){Oe.clear()}const Je=new me.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
1d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class wt{constructor(Ft,bn,vn){this._isDeleted=!1,this._options=Object.assign({},Ft),this._config=Object.assign({},bn),this._name=bn.name,this._automaticDataCollectionEnabled=bn.automaticDataCollectionEnabled,this._container=vn,this.container.addComponent(new e.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ft){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ft}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(Ft){this._isDeleted=Ft}checkDestroyed(){if(this.isDeleted)throw Je.create("app-deleted",{appName:this._name})}}const on="9.23.0";function st(kt,Ft={}){let bn=kt;"object"!=typeof Ft&&(Ft={name:Ft});const vn=Object.assign({name:li,automaticDataCollectionEnabled:!1},Ft),ni=vn.name;if("string"!=typeof ni||!ni)throw Je.create("bad-app-name",{appName:String(ni)});if(bn||(bn=(0,me.aH)()),!bn)throw Je.create("no-options");const di=Ze.get(ni);if(di){if((0,me.vZ)(bn,di.options)&&(0,me.vZ)(vn,di.config))return di;throw Je.create("duplicate-app",{appName:ni})}const ti=new e.H0(ni);for(const Ai of Oe.values())ti.addComponent(Ai);const cr=new wt(bn,vn,ti);return Ze.set(ni,cr),cr}function Ee(kt=li){const Ft=Ze.get(kt);if(!Ft&&kt===li&&(0,me.aH)())return st();if(!Ft)throw Je.create("no-app",{appName:kt});return Ft}function V(){return Array.from(Ze.values())}function _e(kt){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,g.Z)(function*(kt){const Ft=kt.name;Ze.has(Ft)&&(Ze.delete(Ft),yield Promise.all(kt.container.getProviders().map(bn=>bn.delete())),kt.isDeleted=!0)})).apply(this,arguments)}function un(kt,Ft,bn){var vn;let ni=null!==(vn=ei[kt])&&void 0!==vn?vn:kt;bn&&(ni+=`-${bn}`);const di=ni.match(/\s|\//),ti=Ft.match(/\s|\//);if(di||ti){const cr=[`Unable to register library "${ni}" with version "${Ft}":`];return di&&cr.push(`library name "${ni}" contains illegal characters (whitespace or "/")`),di&&ti&&cr.push("and"),ti&&cr.push(`version name "${Ft}" contains illegal characters (whitespace or "/")`),void Ut.warn(cr.join(" "))}O(new e.wA(`${ni}-version`,()=>({library:ni,version:Ft}),"VERSION"))}function Yn(kt,Ft){if(null!==kt&&"function"!=typeof kt)throw Je.create("invalid-log-argument");(0,R.Am)(kt,Ft)}function Li(kt){(0,R.Ub)(kt)}const at="firebase-heartbeat-store";let Xe=null;function Re(){return Xe||(Xe=function ut(kt,Ft,{blocked:bn,upgrade:vn,blocking:ni,terminated:di}={}){const ti=indexedDB.open(kt,Ft),cr=ot(ti);return vn&&ti.addEventListener("upgradeneeded",Ai=>{vn(ot(ti.result),Ai.oldVersion,Ai.newVersion,ot(ti.transaction),Ai)}),bn&&ti.addEventListener("blocked",Ai=>bn(Ai.oldVersion,Ai.newVersion,Ai)),cr.then(Ai=>{di&&Ai.addEventListener("close",()=>di()),ni&&Ai.addEventListener("versionchange",fr=>ni(fr.oldVersion,fr.newVersion,fr))}).catch(()=>{}),cr}("firebase-heartbeat-database",1,{upgrade:(kt,Ft)=>{0===Ft&&kt.createObjectStore(at)}}).catch(kt=>{throw Je.create("idb-open",{originalErrorMessage:kt.message})})),Xe}function xe(){return(xe=(0,g.Z)(function*(kt){try{return yield(yield Re()).transaction(at).objectStore(at).get(pt(kt))}catch(Ft){if(Ft instanceof me.ZR)Ut.warn(Ft.message);else{const bn=Je.create("idb-get",{originalErrorMessage:Ft?.message});Ut.warn(bn.message)}}})).apply(this,arguments)}function Ot(kt,Ft){return en.apply(this,arguments)}function en(){return(en=(0,g.Z)(function*(kt,Ft){try{const vn=(yield Re()).transaction(at,"readwrite");yield vn.objectStore(at).put(Ft,pt(kt)),yield vn.done}catch(bn){if(bn instanceof me.ZR)Ut.warn(bn.message);else{const vn=Je.create("idb-set",{originalErrorMessage:bn?.message});Ut.warn(vn.message)}}})).apply(this,arguments)}function pt(kt){return`${kt.name}!${kt.options.appId}`}
1class Ue{constructor(Ft){this.container=Ft,this._heartbeatsCache=null;const bn=this.container.getProvider("app").getImmediate();this._storage=new Nt(bn),this._heartbeatsCachePromise=this._storage.read().then(vn=>(this._heartbeatsCache=vn,vn))}triggerHeartbeat(){var Ft=this;return(0,g.Z)(function*(){const vn=Ft.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ni=ue();if(null===Ft._heartbeatsCache&&(Ft._heartbeatsCache=yield Ft._heartbeatsCachePromise),Ft._heartbeatsCache.lastSentHeartbeatDate!==ni&&!Ft._heartbeatsCache.heartbeats.some(di=>di.date===ni))return Ft._heartbeatsCache.heartbeats.push({date:ni,agent:vn}),Ft._heartbeatsCache.heartbeats=Ft._heartbeatsCache.heartbeats.filter(di=>{const ti=new Date(di.date).valueOf();return Date.now()-ti<=2592e6}),Ft._storage.overwrite(Ft._heartbeatsCache)})()}getHeartbeatsHeader(){var Ft=this;return(0,g.Z)(function*(){if(null===Ft._heartbeatsCache&&(yield Ft._heartbeatsCachePromise),null===Ft._heartbeatsCache||0===Ft._heartbeatsCache.heartbeats.length)return"";const bn=ue(),{heartbeatsToSend:vn,unsentEntries:ni}=function nt(kt,Ft=1024){const bn=[];let vn=kt.slice();for(const ni of kt){const di=bn.find(ti=>ti.agent===ni.agent);if(di){if(di.dates.push(ni.date),mn(bn)>Ft){di.dates.pop();break}}else if(bn.push({agent:ni.agent,dates:[ni.date]}),mn(bn)>Ft){bn.pop();break}vn=vn.slice(1)}return{heartbeatsToSend:bn,unsentEntries:vn}}(Ft._heartbeatsCache.heartbeats),di=(0,me.L)(JSON.stringify({version:2,heartbeats:vn}));return Ft._heartbeatsCache.lastSentHeartbeatDate=bn,ni.length>0?(Ft._heartbeatsCache.heartbeats=ni,yield Ft._storage.overwrite(Ft._heartbeatsCache)):(Ft._heartbeatsCache.heartbeats=[],Ft._storage.overwrite(Ft._heartbeatsCache)),di})()}}function ue(){return(new Date).toISOString().substring(0,10)}class Nt{constructor(Ft){this.app=Ft,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.Z)(function*(){return!!(0,me.hl)()&&(0,me.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ft=this;return(0,g.Z)(function*(){return(yield Ft._canUseIndexedDBPromise)&&(yield function Ie(kt){return xe.apply(this,arguments)}(Ft.app))||{heartbeats:[]}})()}overwrite(Ft){var bn=this;return(0,g.Z)(function*(){var vn;if(yield bn._canUseIndexedDBPromise){const di=yield bn.read();return Ot(bn.app,{lastSentHeartbeatDate:null!==(vn=Ft.lastSentHeartbeatDate)&&void 0!==vn?vn:di.lastSentHeartbeatDate,heartbeats:Ft.heartbeats})}})()}add(Ft){var bn=this;return(0,g.Z)(function*(){var vn;if(yield bn._canUseIndexedDBPromise){const di=yield bn.read();return Ot(bn.app,{lastSentHeartbeatDate:null!==(vn=Ft.lastSentHeartbeatDate)&&void 0!==vn?vn:di.lastSentHeartbeatDate,heartbeats:[...di.heartbeats,...Ft.heartbeats]})}})()}}function mn(kt){return(0,me.L)(JSON.stringify({version:2,heartbeats:kt})).length}!function Nn(kt){O(new e.wA("platform-logger",Ft=>new zt(Ft),"PRIVATE")),O(new e.wA("heartbeat",Ft=>new Ue(Ft),"PRIVATE")),un($t,"0.9.13",kt),un($t,"0.9.13","esm2017"),un("fire-js","")}("")},4859:(wn,bt,D)=>{"use strict";D.d(bt,{H0:()=>se,wA:()=>R});var g=D(5861),e=D(2090);class R{constructor(x,G,de){this.name=x,this.instanceFactory=G,this.type=de,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(x){return this.instantiationMode=x,this}setMultipleInstances(x){return this.multipleInstances=x,this}setServiceProps(x){return this.serviceProps=x,this}setInstanceCreatedCallback(x){return this.onInstanceCreated=x,this}}const me="[DEFAULT]";class ve{constructor(x,G){this.name=x,this.container=G,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(x){const G=this.normalizeInstanceIdentifier(x);if(!this.instancesDeferred.has(G)){const de=new e.BH;if(this.instancesDeferred.set(G,de),this.isInitialized(G)||this.shouldAutoInitialize())try{const dt=this.getOrInitializeService({instanceIdentifier:G});dt&&de.resolve(dt)}catch{}}return this.instancesDeferred.get(G).promise}getImmediate(x){var G;const de=this.normalizeInstanceIdentifier(x?.identifier),dt=null!==(G=x?.optional)&&void 0!==G&&G;if(!this.isInitialized(de)&&!this.shouldAutoInitialize()){if(dt)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:de})}catch(Mt){if(dt)return null;throw Mt}}getComponent(){return this.component}setComponent(x){if(x.name!==this.name)throw Error(`Mismatching Component ${x.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=x,this.shouldAutoInitialize()){if(function Te(z){return"EAGER"===z.instantiationMode}(x))try{this.getOrInitializeService({instanceIdentifier:me})}catch{}for(const[G,de]of this.instancesDeferred.entries()){const dt=this.normalizeInstanceIdentifier(G);try{const Mt=this.getOrInitializeService({instanceIdentifier:dt});de.resolve(Mt)}catch{}}}}clearInstance(x=me){this.instancesDeferred.delete(x),this.instancesOptions.delete(x),this.instances.delete(x)}delete(){var x=this;return(0,g.Z)(function*(){const G=Array.from(x.instances.values());yield Promise.all([...G.filter(de=>"INTERNAL"in de).map(de=>de.INTERNAL.delete()),...G.filter(de=>"_delete"in de).map(de=>de._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(x=me){return this.instances.has(x)}getOptions(x=me){return this.instancesOptions.get(x)||{}}initialize(x={}){const{options:G={}}=x,de=this.normalizeInstanceIdentifier(x.instanceIdentifier);if(this.isInitialized(de))throw Error(`${this.name}(${de}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const dt=this.getOrInitializeService({instanceIdentifier:de,options:G});for(const[Mt,We]of this.instancesDeferred.entries())de===this.normalizeInstanceIdentifier(Mt)&&We.resolve(dt);return dt}onInit(x,G){var de;const dt=this.normalizeInstanceIdentifier(G),Mt=null!==(de=this.onInitCallbacks.get(dt))&&void 0!==de?de:new Set;Mt.add(x),this.onInitCallbacks.set(dt,Mt);const We=this.instances.get(dt);return We&&x(We,dt),()=>{Mt.delete(x)}}invokeOnInitCallbacks(x,G){const de=this.onInitCallbacks.get(G);if(de)for(const dt of de)try{dt(x,G)}catch{}}getOrInitializeService({instanceIdentifier:x,options:G={}}){let de=this.instances.get(x);if(!de&&this.component&&(de=this.component.instanceFactory(this.container,{instanceIdentifier:(z=
1x,z===me?void 0:z),options:G}),this.instances.set(x,de),this.instancesOptions.set(x,G),this.invokeOnInitCallbacks(de,x),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,x,de)}catch{}var z;return de||null}normalizeInstanceIdentifier(x=me){return this.component?this.component.multipleInstances?x:me:x}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class se{constructor(x){this.name=x,this.providers=new Map}addComponent(x){const G=this.getProvider(x.name);if(G.isComponentSet())throw new Error(`Component ${x.name} has already been registered with ${this.name}`);G.setComponent(x)}addOrOverwriteComponent(x){this.getProvider(x.name).isComponentSet()&&this.providers.delete(x.name),this.addComponent(x)}getProvider(x){if(this.providers.has(x))return this.providers.get(x);const G=new ve(x,this);return this.providers.set(x,G),G}getProviders(){return Array.from(this.providers.values())}}},4727:(wn,bt,D)=>{"use strict";var g=D(5861),e=D(6881),R=D(4859),me=D(2090);let ae,Te;const x=new WeakMap,G=new WeakMap,de=new WeakMap,dt=new WeakMap,Mt=new WeakMap;let qe={get(we,ct,jt){if(we instanceof IDBTransaction){if("done"===ct)return G.get(we);if("objectStoreNames"===ct)return we.objectStoreNames||de.get(we);if("store"===ct)return jt.objectStoreNames[1]?void 0:jt.objectStore(jt.objectStoreNames[0])}return ot(we[ct])},set:(we,ct,jt)=>(we[ct]=jt,!0),has:(we,ct)=>we instanceof IDBTransaction&&("done"===ct||"store"===ct)||ct in we};function Xt(we){return"function"==typeof we?function sn(we){return we!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function z(){return Te||(Te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(we)?function(...ct){return we.apply(fe(this),ct),ot(x.get(this))}:function(...ct){return ot(we.apply(fe(this),ct))}:function(ct,...jt){const Mn=we.call(fe(this),ct,...jt);return de.set(Mn,ct.sort?ct.sort():[ct]),ot(Mn)}}(we):(we instanceof IDBTransaction&&function At(we){if(G.has(we))return;const ct=new Promise((jt,Mn)=>{const Jn=()=>{we.removeEventListener("complete",Mi),we.removeEventListener("error",Ti),we.removeEventListener("abort",Ti)},Mi=()=>{jt(),Jn()},Ti=()=>{Mn(we.error||new DOMException("AbortError","AbortError")),Jn()};we.addEventListener("complete",Mi),we.addEventListener("error",Ti),we.addEventListener("abort",Ti)});G.set(we,ct)}(we),((we,ct)=>ct.some(jt=>we instanceof jt))(we,function se(){return ae||(ae=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(we,qe):we)}function ot(we){if(we instanceof IDBRequest)return function We(we){const ct=new Promise((jt,Mn)=>{const Jn=()=>{we.removeEventListener("success",Mi),we.removeEventListener("error",Ti)},Mi=()=>{jt(ot(we.result)),Jn()},Ti=()=>{Mn(we.error),Jn()};we.addEventListener("success",Mi),we.addEventListener("error",Ti)});return ct.then(jt=>{jt instanceof IDBCursor&&x.set(jt,we)}).catch(()=>{}),Mt.set(ct,we),ct}(we);if(dt.has(we))return dt.get(we);const ct=Xt(we);return ct!==we&&(dt.set(we,ct),Mt.set(ct,we)),ct}const fe=we=>Mt.get(we),it=["get","getKey","getAll","getAllKeys","count"],ze=["put","add","delete","clear"],xt=new Map;function mt(we,ct){if(!(we instanceof IDBDatabase)||ct in we||"string"!=typeof ct)return;if(xt.get(ct))return xt.get(ct);const jt=ct.replace(/FromIndex$/,""),Mn=ct!==jt,Jn=ze.includes(jt);if(!(jt in(Mn?IDBIndex:IDBObjectStore).prototype)||!Jn&&!it.includes(jt))return;const Mi=function(){var Ti=(0,g.Z)(function*($i,...Ji){const eo=this.transaction($i,Jn?"readwrite":"readonly");let Do=eo.store;return Mn&&(Do=Do.index(Ji.shift())),(yield Promise.all([Do[jt](...Ji),Jn&&eo.done]))[0]});return function(Ji){return Ti.apply(this,arguments)}}();return xt.set(ct,Mi),Mi}!function lt(we){qe=we(qe)}(we=>({...we,get:(ct,jt,Mn)=>mt(ct,jt)||we.get(ct,jt,Mn),has:(ct,jt)=>!!mt(ct,jt)||we.has(ct,jt)}));const zt="@firebase/installations",Vn="w:0.6.4",Ut="FIS_v2",je=new me.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function ie(we){return we instanceof me.ZR&&we.code.includes("request-failed")}function ft({projectId:we}){return`https://firebaseinstallations.googleapis.com/v1/projects/${we}/installations`}
1function Wt(we){return{token:we.token,requestStatus:2,expiresIn:An(we.expiresIn),creationTime:Date.now()}}function Dt(we,ct){return hn.apply(this,arguments)}function hn(){return(hn=(0,g.Z)(function*(we,ct){const Mn=(yield ct.json()).error;return je.create("request-failed",{requestName:we,serverCode:Mn.code,serverMessage:Mn.message,serverStatus:Mn.status})})).apply(this,arguments)}function Gn({apiKey:we}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":we})}function qn(we,{refreshToken:ct}){const jt=Gn(we);return jt.append("Authorization",function Wn(we){return`${Ut} ${we}`}(ct)),jt}function kn(we){return ai.apply(this,arguments)}function ai(){return(ai=(0,g.Z)(function*(we){const ct=yield we();return ct.status>=500&&ct.status<600?we():ct})).apply(this,arguments)}function An(we){return Number(we.replace("s","000"))}function Ln(we,ct){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,g.Z)(function*({appConfig:we,heartbeatServiceProvider:ct},{fid:jt}){const Mn=ft(we),Jn=Gn(we),Mi=ct.getImmediate({optional:!0});if(Mi){const eo=yield Mi.getHeartbeatsHeader();eo&&Jn.append("x-firebase-client",eo)}const $i={method:"POST",headers:Jn,body:JSON.stringify({fid:jt,authVersion:Ut,appId:we.appId,sdkVersion:Vn})},Ji=yield kn(()=>fetch(Mn,$i));if(Ji.ok){const eo=yield Ji.json();return{fid:eo.fid||jt,registrationStatus:2,refreshToken:eo.refreshToken,authToken:Wt(eo.authToken)}}throw yield Dt("Create Installation",Ji)})).apply(this,arguments)}function yi(we){return new Promise(ct=>{setTimeout(ct,we)})}const ui=/^[cdef][\w-]{21}$/;function ri(){try{const we=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(we),we[0]=112+we[0]%16;const jt=function Pi(we){return function _n(we){return btoa(String.fromCharCode(...we)).replace(/\+/g,"-").replace(/\//g,"_")}(we).substr(0,22)}(we);return ui.test(jt)?jt:""}catch{return""}}function li(we){return`${we.appName}!${we.appId}`}const ei=new Map;function Ze(we,ct){const jt=li(we);le(jt,ct),function O(we,ct){const jt=function ke(){return!Q&&"BroadcastChannel"in self&&(Q=new BroadcastChannel("[Firebase] FID Change"),Q.onmessage=we=>{le(we.data.key,we.data.fid)}),Q}();jt&&jt.postMessage({key:we,fid:ct}),function De(){0===ei.size&&Q&&(Q.close(),Q=null)}()}(jt,ct)}function le(we,ct){const jt=ei.get(we);if(jt)for(const Mn of jt)Mn(ct)}let Q=null;const wt="firebase-installations-store";let on=null;function st(){return on||(on=function ut(we,ct,{blocked:jt,upgrade:Mn,blocking:Jn,terminated:Mi}={}){const Ti=indexedDB.open(we,ct),$i=ot(Ti);return Mn&&Ti.addEventListener("upgradeneeded",Ji=>{Mn(ot(Ti.result),Ji.oldVersion,Ji.newVersion,ot(Ti.transaction))}),jt&&Ti.addEventListener("blocked",()=>jt()),$i.then(Ji=>{Mi&&Ji.addEventListener("close",()=>Mi()),Jn&&Ji.addEventListener("versionchange",()=>Jn())}).catch(()=>{}),$i}("firebase-installations-database",1,{upgrade:(we,ct)=>{0===ct&&we.createObjectStore(wt)}})),on}function Ee(we,ct){return V.apply(this,arguments)}function V(){return(V=(0,g.Z)(function*(we,ct){const jt=li(we),Jn=(yield st()).transaction(wt,"readwrite"),Mi=Jn.objectStore(wt),Ti=yield Mi.get(jt);return yield Mi.put(ct,jt),yield Jn.done,(!Ti||Ti.fid!==ct.fid)&&Ze(we,ct.fid),ct})).apply(this,arguments)}function _e(we){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,g.Z)(function*(we){const ct=li(we),Mn=(yield st()).transaction(wt,"readwrite");yield Mn.objectStore(wt).delete(ct),yield Mn.done})).apply(this,arguments)}function un(we,ct){return Yn.apply(this,arguments)}function Yn(){return(Yn=(0,g.Z)(function*(we,ct){const jt=li(we),Jn=(yield st()).transaction(wt,"readwrite"),Mi=Jn.objectStore(wt),Ti=yield Mi.get(jt),$i=ct(Ti);return void 0===$i?yield Mi.delete(jt):yield Mi.put($i,jt),yield Jn.done,$i&&(!Ti||Ti.fid!==$i.fid)&&Ze(we,$i.fid),$i})).apply(this,arguments)}function Li(we){return Ii.apply(this,arguments)}function Ii(){return(Ii=(0,g.Z)(function*(we){let ct;const jt=yield un(we.appConfig,Mn=>{const Jn=qi(Mn),Mi=at(we,Jn);return ct=Mi.registrationPromise,Mi.installationEntry});return""===jt.fid?{installationEntry:yield ct}:{installationEntry:jt,registrationPromise:ct}})).apply(this,arguments)}function qi(we){return en(we||{fid:ri(),registrationStatus:0})}function at(we,ct){if(0===ct.registrationStatus){if(!navigator.onLine)return{installationEntry:ct,registrationPromise:Promise.reject(je.create("app-offline"))};const jt={fid:ct.fid,registrationStatus:1,registrationTime:Date.now()},Mn=function Xe(we,ct){return Re.apply(this,arguments)}(we,jt);return{installationEntry:jt,registrationPromise:Mn}}return 1===ct.registrationStatus?{installationEntry:ct,registrationPromise:Ie(we)}:{installationEntry:ct}}function Re(){return(Re=(0,g.Z)(function*(we,ct){try{const jt=yield Ln(we,ct);return Ee(we.appConfig,jt)}catch(jt){throw ie(jt)&&409===jt.customData.serverCode?yield _e(we.appConfig):yield Ee(we.appConfig,{fid:ct.fid,registrationStatus:0}),jt}})).apply(this,arguments)}function Ie(we){return xe.apply(this,arguments)}function xe(){return(xe=(0,g.Z)(function*(we){let ct=yield Ot(we.appConfig);for(;1===ct.registrationStatus;)yield yi(100),ct=yield Ot(we.appConfig);if(0===ct.registrationStatus){const{installationEntry:jt,registrationPromise:Mn}=yield Li(we);return Mn||jt}return ct})).apply(this,arguments)}function Ot(we){return un(we,ct=>{if(!ct)throw je.create("installation-not-found");return en(ct)})}function en(we){return function pt(we){return 1===we.registrationStatus&&we.registrationTime+1e4<Date.now()}(we)?{fid:we.fid,registrationStatus:0}:we}function Gt(we,ct){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,g.Z)(function*({appConfig:we,heartbeatServiceProvider:ct},jt){const Mn=Ue(we,jt),Jn=qn(we,jt),Mi=ct.getImmediate({optional:!0});if(Mi){const eo=yield Mi.getHeartbeatsHeader();eo&&Jn.append("x-firebase-client",eo)}const $i={method:"POST",headers:Jn,body:JSON.stringify({installation:{sdkVersion:Vn,appI
1d:we.appId}})},Ji=yield kn(()=>fetch(Mn,$i));if(Ji.ok)return Wt(yield Ji.json());throw yield Dt("Generate Auth Token",Ji)})).apply(this,arguments)}function Ue(we,{fid:ct}){return`${ft(we)}/${ct}/authTokens:generate`}function ue(we){return nt.apply(this,arguments)}function nt(){return(nt=(0,g.Z)(function*(we,ct=!1){let jt;const Mn=yield un(we.appConfig,Mi=>{if(!bn(Mi))throw je.create("not-registered");const Ti=Mi.authToken;if(!ct&&vn(Ti))return Mi;if(1===Ti.requestStatus)return jt=Nt(we,ct),Mi;{if(!navigator.onLine)throw je.create("app-offline");const $i=di(Mi);return jt=kt(we,$i),$i}});return jt?yield jt:Mn.authToken})).apply(this,arguments)}function Nt(we,ct){return mn.apply(this,arguments)}function mn(){return(mn=(0,g.Z)(function*(we,ct){let jt=yield Nn(we.appConfig);for(;1===jt.authToken.requestStatus;)yield yi(100),jt=yield Nn(we.appConfig);const Mn=jt.authToken;return 0===Mn.requestStatus?ue(we,ct):Mn})).apply(this,arguments)}function Nn(we){return un(we,ct=>{if(!bn(ct))throw je.create("not-registered");return function ti(we){return 1===we.requestStatus&&we.requestTime+1e4<Date.now()}(ct.authToken)?Object.assign(Object.assign({},ct),{authToken:{requestStatus:0}}):ct})}function kt(we,ct){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,g.Z)(function*(we,ct){try{const jt=yield Gt(we,ct),Mn=Object.assign(Object.assign({},ct),{authToken:jt});return yield Ee(we.appConfig,Mn),jt}catch(jt){if(!ie(jt)||401!==jt.customData.serverCode&&404!==jt.customData.serverCode){const Mn=Object.assign(Object.assign({},ct),{authToken:{requestStatus:0}});yield Ee(we.appConfig,Mn)}else yield _e(we.appConfig);throw jt}})).apply(this,arguments)}function bn(we){return void 0!==we&&2===we.registrationStatus}function vn(we){return 2===we.requestStatus&&!function ni(we){const ct=Date.now();return ct<we.creationTime||we.creationTime+we.expiresIn<ct+36e5}(we)}function di(we){const ct={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},we),{authToken:ct})}function Ai(){return(Ai=(0,g.Z)(function*(we){const ct=we,{installationEntry:jt,registrationPromise:Mn}=yield Li(ct);return Mn?Mn.catch(console.error):ue(ct).catch(console.error),jt.fid})).apply(this,arguments)}function xr(){return(xr=(0,g.Z)(function*(we,ct=!1){const jt=we;return yield Yi(jt),(yield ue(jt,ct)).token})).apply(this,arguments)}function Yi(we){return Zi.apply(this,arguments)}function Zi(){return(Zi=(0,g.Z)(function*(we){const{registrationPromise:ct}=yield Li(we);ct&&(yield ct)})).apply(this,arguments)}function yt(we){return je.create("missing-app-config-values",{valueName:we})}const Vt="installations",Ge=we=>{const ct=we.getProvider("app").getImmediate(),jt=function Ne(we){if(!we||!we.options)throw yt("App Configuration");if(!we.name)throw yt("App Name");const ct=["projectId","apiKey","appId"];for(const jt of ct)if(!we.options[jt])throw yt(jt);return{appName:we.name,projectId:we.options.projectId,apiKey:we.options.apiKey,appId:we.options.appId}}(ct);return{app:ct,appConfig:jt,heartbeatServiceProvider:(0,e._getProvider)(ct,"heartbeat"),_delete:()=>Promise.resolve()}},ht=we=>{const ct=we.getProvider("app").getImmediate(),jt=(0,e._getProvider)(ct,Vt).getImmediate();return{getId:()=>function cr(we){return Ai.apply(this,arguments)}(jt),getToken:Jn=>function fr(we){return xr.apply(this,arguments)}(jt,Jn)}};(function Kt(){(0,e._registerComponent)(new R.wA(Vt,Ge,"PUBLIC")),(0,e._registerComponent)(new R.wA("installations-internal",ht,"PRIVATE"))})(),(0,e.registerVersion)(zt,"0.6.4"),(0,e.registerVersion)(zt,"0.6.4","esm2017")},1877:(wn,bt,D)=>{"use strict";D.d(bt,{Am:()=>z,Ub:()=>se,Yd:()=>Te,in:()=>e});const g=[];var e=(()=>{return(x=e||(e={}))[x.DEBUG=0]="DEBUG",x[x.VERBOSE=1]="VERBOSE",x[x.INFO=2]="INFO",x[x.WARN=3]="WARN",x[x.ERROR=4]="ERROR",x[x.SILENT=5]="SILENT",e;var x})();const R={debug:e.DEBUG,verbose:e.VERBOSE,info:e.INFO,warn:e.WARN,error:e.ERROR,silent:e.SILENT},me=e.INFO,ve={[e.DEBUG]:"log",[e.VERBOSE]:"log",[e.INFO]:"info",[e.WARN]:"warn",[e.ERROR]:"error"},ae=(x,G,...de)=>{if(G<x.logLevel)return;const dt=(new Date).toISOString(),Mt=ve[G];if(!Mt)throw new Error(`Attempted to log a message with an invali
1d logType (value: ${G})`);console[Mt](`[${dt}] ${x.name}:`,...de)};class Te{constructor(G){this.name=G,this._logLevel=me,this._logHandler=ae,this._userLogHandler=null,g.push(this)}get logLevel(){return this._logLevel}set logLevel(G){if(!(G in e))throw new TypeError(`Invalid value "${G}" assigned to \`logLevel\``);this._logLevel=G}setLogLevel(G){this._logLevel="string"==typeof G?R[G]:G}get logHandler(){return this._logHandler}set logHandler(G){if("function"!=typeof G)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=G}get userLogHandler(){return this._userLogHandler}set userLogHandler(G){this._userLogHandler=G}debug(...G){this._userLogHandler&&this._userLogHandler(this,e.DEBUG,...G),this._logHandler(this,e.DEBUG,...G)}log(...G){this._userLogHandler&&this._userLogHandler(this,e.VERBOSE,...G),this._logHandler(this,e.VERBOSE,...G)}info(...G){this._userLogHandler&&this._userLogHandler(this,e.INFO,...G),this._logHandler(this,e.INFO,...G)}warn(...G){this._userLogHandler&&this._userLogHandler(this,e.WARN,...G),this._logHandler(this,e.WARN,...G)}error(...G){this._userLogHandler&&this._userLogHandler(this,e.ERROR,...G),this._logHandler(this,e.ERROR,...G)}}function se(x){g.forEach(G=>{G.setLogLevel(x)})}function z(x,G){for(const de of g){let dt=null;G&&G.level&&(dt=R[G.level]),de.userLogHandler=null===x?null:(Mt,We,...At)=>{const qe=At.map(lt=>{if(null==lt)return null;if("string"==typeof lt)return lt;if("number"==typeof lt||"boolean"==typeof lt)return lt.toString();if(lt instanceof Error)return lt.message;try{return JSON.stringify(lt)}catch{return null}}).filter(lt=>lt).join(" ");We>=(dt??Mt.logLevel)&&x({level:e[We].toLowerCase(),message:qe,args:At,type:Mt.name})}}}},9383:(wn,bt,D)=>{"use strict";D.d(bt,{X$:()=>$t,Zw:()=>de,aw:()=>Vn,sK:()=>zt});var g=D(4650),e=D(9646),R=D(5191),me=D(4128),ve=D(7272),ae=D(9770),Te=D(5698),se=D(4782),z=D(4004),x=D(4351),G=D(3900);class de{}let dt=(()=>{class Ut extends de{getTranslation(tt){return(0,e.of)({})}}return Ut.\u0275fac=function(){let gn;return function(Zt){return(gn||(gn=g.n5z(Ut)))(Zt||Ut)}}(),Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})();class Mt{}let We=(()=>{class Ut{handle(tt){return tt.key}}return Ut.\u0275fac=function(tt){return new(tt||Ut)},Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})();function At(Ut,gn){if(Ut===gn)return!0;if(null===Ut||null===gn)return!1;if(Ut!=Ut&&gn!=gn)return!0;let St,$e,je,tt=typeof Ut;if(tt==typeof gn&&"object"==tt){if(!Array.isArray(Ut)){if(Array.isArray(gn))return!1;for($e in je=Object.create(null),Ut){if(!At(Ut[$e],gn[$e]))return!1;je[$e]=!0}for($e in gn)if(!($e in je)&&typeof gn[$e]<"u")return!1;return!0}if(!Array.isArray(gn))return!1;if((St=Ut.length)==gn.length){for($e=0;$e<St;$e++)if(!At(Ut[$e],gn[$e]))return!1;return!0}}return!1}function qe(Ut){return typeof Ut<"u"&&null!==Ut}function lt(Ut){return Ut&&"object"==typeof Ut&&!Array.isArray(Ut)}function sn(Ut,gn){let tt=Object.assign({},Ut);return lt(Ut)&<(gn)&&Object.keys(gn).forEach(Zt=>{lt(gn[Zt])?Zt in Ut?tt[Zt]=sn(Ut[Zt],gn[Zt]):Object.assign(tt,{[Zt]:gn[Zt]}):Object.assign(tt,{[Zt]:gn[Zt]})}),tt}class Xt{}let ot=(()=>{class Ut extends Xt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(tt,Zt){let St;return St="string"==typeof tt?this.interpolateString(tt,Zt):"function"==typeof tt?this.interpolateFunction(tt,Zt):tt,St}getValue(tt,Zt){let St="string"==typeof Zt?Zt.split("."):[Zt];Zt="";do{Zt+=St.shift(),!qe(tt)||!qe(tt[Zt])||"object"!=typeof tt[Zt]&&St.length?St.length?Zt+=".":tt=void 0:(tt=tt[Zt],Zt="")}while(St.length);return tt}interpolateFunction(tt,Zt){return tt(Zt)}interpolateString(tt,Zt){return Zt?tt.replace(this.templateMatcher,(St,$e)=>{let je=this.getValue(Zt,$e);return qe(je)?je:St}):tt}}return Ut.\u0275fac=function(){let gn;return function(Zt){return(gn||(gn=g.n5z(Ut)))(Zt||Ut)}}(),Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})();class fe{}let ut=(()=>{class Ut extends fe{compile(tt,Zt){return tt}compileTranslations(tt,Zt){return tt}}return Ut.\u0275fac=function(){let gn;return function(Zt){return(gn||(gn=g.n5z(Ut)))(Zt||Ut)}}(),Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})();class Ye{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const it=new g.OlP("USE_STORE"),ze=new g.OlP("USE_DEFAULT_LANG"),xt=new g.OlP("DEFAULT_LANGUAGE"),mt=new g.OlP("USE_EXTEND");let zt=(()=>{class Ut{constructor(tt,Zt,St,$e,je,ie=!0,ft=!1,Wt=!1,Dt){this.store=tt,this.currentLoader=Zt,this.compiler=St,this.parser=$e,this.missingTranslationHandler=je,this.useDefaultLang=ie,this.isolate=ft,this.extend=Wt,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},Dt&&this.setDefaultLang(Dt)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(tt){this.isolate?this._defaultLang=tt:this.store.defaultLang=tt}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(tt){this.isolate?this._currentLang=tt:this.store.currentLang=tt}get langs(){return this.isolate?this._langs:this.store.langs}set langs(tt){this.isolate?this._langs=tt:this.store.langs=tt}get translations(){return this.isolate?this._translations:this.store.translations}set translations(tt){this.isolate?this._translations=tt:this.store.translations=tt}setDefaultLang(tt){if(tt===this.defaultLang)return;let Zt=this.retrieveTranslations(tt);typeof Zt<"u"?(null==this.defaultLang&&(this.defaultLang=tt),Zt.pipe((0,Te.q)(1)).subscribe(St=>{this.changeDefaultLang(tt)})):this.changeDefaultLang(tt)}getDefaultLang(){return this.defaultLang}use(tt){if(tt===this.currentLang)return(0,e.of)(this.translations[tt]);let Zt=this.retrieveTranslations(tt);return typeof Zt<"u"?(this.currentLang||(this.currentLang=tt),Zt.pipe((0,Te.q)(1)).subscribe(St=>{this.changeLang(tt)}),Zt):(this.changeLang(tt),(0,e.of)(this.translations[tt]))}retrieveTranslations(tt){let Zt;return(typeof this.translations[tt]>"u"||this.extend)&&(this._translationRequests[tt]=this._translationRequests[tt]||this.getTranslation(tt),Zt=this._translationRequests[tt]),Zt}getTranslation(tt){this.pending=!0;const Zt=this.currentLoader.getTranslation(tt).pipe((0,se.d)(1),(0,Te.q)(1));return this.loadingTranslations=Zt.pipe((0,z.U)(St=>this.compiler.compileTranslations(St,tt)),(0,se.d)(1),(0,Te.q)(1)),this.loadingTranslations.subscribe({next:St=>{this.translations[tt]=this.extend&&this.translations[tt]?{...St,...this.translations[tt]}:St,this.updateLangs(),this.pending=!1},error:St=>{this.pending=!1}}),Zt}setTranslation(tt,Zt,St=!1){Zt=this.compiler.compileTranslations(Zt,tt),this.translations[tt]=(St||this.extend)&&this.translations[tt]?sn(this.translations[tt],Zt):Zt,this.updateLangs(),this.onTranslationChange.emit({lang:tt,translations:this.translations[tt]})}getLangs(){return this.langs}addLangs(tt){tt.forEach(Zt=>{-1===this.langs.indexOf(Zt)&&this.langs.push(Zt)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(tt,Zt,St){let $e;if(Zt instanceof Array){let je={},ie=!1;for(let ft of Zt)je[ft]=this.getParsedResult(tt,ft,St),(0,R.b)(je[ft])&&(ie=!0);
1if(ie){const ft=Zt.map(Wt=>(0,R.b)(je[Wt])?je[Wt]:(0,e.of)(je[Wt]));return(0,me.D)(ft).pipe((0,z.U)(Wt=>{let Dt={};return Wt.forEach((hn,Gn)=>{Dt[Zt[Gn]]=hn}),Dt}))}return je}if(tt&&($e=this.parser.interpolate(this.parser.getValue(tt,Zt),St)),typeof $e>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&($e=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Zt),St)),typeof $e>"u"){let je={key:Zt,translateService:this};typeof St<"u"&&(je.interpolateParams=St),$e=this.missingTranslationHandler.handle(je)}return typeof $e<"u"?$e:Zt}get(tt,Zt){if(!qe(tt)||!tt.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,x.b)(St=>(St=this.getParsedResult(St,tt,Zt),(0,R.b)(St)?St:(0,e.of)(St))));{let St=this.getParsedResult(this.translations[this.currentLang],tt,Zt);return(0,R.b)(St)?St:(0,e.of)(St)}}getStreamOnTranslationChange(tt,Zt){if(!qe(tt)||!tt.length)throw new Error('Parameter "key" required');return(0,ve.z)((0,ae.P)(()=>this.get(tt,Zt)),this.onTranslationChange.pipe((0,G.w)(St=>{const $e=this.getParsedResult(St.translations,tt,Zt);return"function"==typeof $e.subscribe?$e:(0,e.of)($e)})))}stream(tt,Zt){if(!qe(tt)||!tt.length)throw new Error('Parameter "key" required');return(0,ve.z)((0,ae.P)(()=>this.get(tt,Zt)),this.onLangChange.pipe((0,G.w)(St=>{const $e=this.getParsedResult(St.translations,tt,Zt);return(0,R.b)($e)?$e:(0,e.of)($e)})))}instant(tt,Zt){if(!qe(tt)||!tt.length)throw new Error('Parameter "key" required');let St=this.getParsedResult(this.translations[this.currentLang],tt,Zt);if((0,R.b)(St)){if(tt instanceof Array){let $e={};return tt.forEach((je,ie)=>{$e[tt[ie]]=tt[ie]}),$e}return tt}return St}set(tt,Zt,St=this.currentLang){this.translations[St][tt]=this.compiler.compile(Zt,St),this.updateLangs(),this.onTranslationChange.emit({lang:St,translations:this.translations[St]})}changeLang(tt){this.currentLang=tt,this.onLangChange.emit({lang:tt,translations:this.translations[tt]}),null==this.defaultLang&&this.changeDefaultLang(tt)}changeDefaultLang(tt){this.defaultLang=tt,this.onDefaultLangChange.emit({lang:tt,translations:this.translations[tt]})}reloadLang(tt){return this.resetLang(tt),this.getTranslation(tt)}resetLang(tt){this._translationRequests[tt]=void 0,this.translations[tt]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let tt=window.navigator.languages?window.navigator.languages[0]:null;return tt=tt||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof tt>"u"?void 0:(-1!==tt.indexOf("-")&&(tt=tt.split("-")[0]),-1!==tt.indexOf("_")&&(tt=tt.split("_")[0]),tt)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let tt=window.navigator.languages?window.navigator.languages[0]:null;return tt=tt||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,tt}}return Ut.\u0275fac=function(tt){return new(tt||Ut)(g.LFG(Ye),g.LFG(de),g.LFG(fe),g.LFG(Xt),g.LFG(Mt),g.LFG(ze),g.LFG(it),g.LFG(mt),g.LFG(xt))},Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})(),$t=(()=>{class Ut{constructor(tt,Zt){this.translate=tt,this._ref=Zt,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(tt,Zt,St){let $e=je=>{this.value=void 0!==je?je:tt,this.lastKey=tt,this._ref.markForCheck()};if(St){let je=this.translate.getParsedResult(St,tt,Zt);(0,R.b)(je.subscribe)?je.subscribe($e):$e(je)}this.translate.get(tt,Zt).subscribe($e)}transform(tt,...Zt){if(!tt||!tt.length)return tt;if(At(tt,this.lastKey)&&At(Zt,this.lastParams))return this.value;let St;if(qe(Zt[0])&&Zt.length)if("string"==typeof Zt[0]&&Zt[0].length){let $e=Zt[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{St=JSON.parse($e)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Zt[0]}`)}}else"object"==typeof Zt[0]&&!Array.isArray(Zt[0])&&(St=Zt[0]);return this.lastKey=tt,this.lastParams=Zt,this.updateValue(tt,St),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe($e=>{this.lastKey&&$e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateV
1alue(tt,St,$e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe($e=>{this.lastKey&&(this.lastKey=null,this.updateValue(tt,St,$e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(tt,St))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return Ut.\u0275fac=function(tt){return new(tt||Ut)(g.Y36(zt,16),g.Y36(g.sBO,16))},Ut.\u0275pipe=g.Yjl({name:"translate",type:Ut,pure:!1}),Ut.\u0275prov=g.Yz7({token:Ut,factory:Ut.\u0275fac}),Ut})(),Vn=(()=>{class Ut{static forRoot(tt={}){return{ngModule:Ut,providers:[tt.loader||{provide:de,useClass:dt},tt.compiler||{provide:fe,useClass:ut},tt.parser||{provide:Xt,useClass:ot},tt.missingTranslationHandler||{provide:Mt,useClass:We},Ye,{provide:it,useValue:tt.isolate},{provide:ze,useValue:tt.useDefaultLang},{provide:mt,useValue:tt.extend},{provide:xt,useValue:tt.defaultLanguage},zt]}}static forChild(tt={}){return{ngModule:Ut,providers:[tt.loader||{provide:de,useClass:dt},tt.compiler||{provide:fe,useClass:ut},tt.parser||{provide:Xt,useClass:ot},tt.missingTranslationHandler||{provide:Mt,useClass:We},{provide:it,useValue:tt.isolate},{provide:ze,useValue:tt.useDefaultLang},{provide:mt,useValue:tt.extend},{provide:xt,useValue:tt.defaultLanguage},zt]}}}return Ut.\u0275fac=function(tt){return new(tt||Ut)},Ut.\u0275mod=g.oAB({type:Ut}),Ut.\u0275inj=g.cJS({}),Ut})()},9832:(wn,bt,D)=>{"use strict";D.d(bt,{w:()=>g});class g{constructor(R,me="/assets/i18n/",ve=".json"){this.http=R,this.prefix=me,this.suffix=ve}getTranslation(R){return this.http.get(`${this.prefix}${R}${this.suffix}`)}}},7846:(wn,bt,D)=>{"use strict";D.d(bt,{k:()=>me,w:()=>ve});var g=D(4650);let e=(()=>{class ae{constructor(se){this._googleTagManagerConfig={id:null,gtm_auth:"",gtm_preview:""},se&&this.set(se)}set(se){this._googleTagManagerConfig=se}get(){return this._googleTagManagerConfig}}return ae.\u0275fac=function(se){return new(se||ae)(g.LFG(R,8))},ae.\u0275prov=g.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const R=new g.OlP("google-tag-manager-config");let me=(()=>{class ae{constructor(se,z,x,G,de,dt){if(this.googleTagManagerConfiguration=se,this.googleTagManagerId=z,this.googleTagManagerAuth=x,this.googleTagManagerPreview=G,this.googleTagManagerResourcePath=de,this.googleTagManagerCSPNonce=dt,this.isLoaded=!1,this.browserGlobals={windowRef:()=>window,documentRef:()=>document},this.config=this.googleTagManagerConfiguration?.get(),null==this.config&&(this.config={id:null}),this.config={...this.config,id:z||this.config.id,gtm_auth:x||this.config.gtm_auth,gtm_preview:G||this.config.gtm_preview,gtm_resource_path:de||this.config.gtm_resource_path},null==this.config.id)throw new Error("Google tag manager ID not provided.")}getDataLayer(){const se=this.browserGlobals.windowRef();return se.dataLayer=se.dataLayer||[],se.dataLayer}pushOnDataLayer(se){this.getDataLayer().push(se)}addGtmToDom(){return new Promise((se,z)=>{if(this.isLoaded)return se(this.isLoaded);const x=this.browserGlobals.documentRef();this.pushOnDataLayer({"gtm.start":(new Date).getTime(),event:"gtm.js"});const G=x.createElement("script");G.id="GTMscript",G.async=!0,G.src=this.applyGtmQueryParams(this.config.gtm_resource_path?this.config.gtm_resource_path:"https://www.googletagmanager.com/gtm.js"),G.addEventListener("load",()=>se(this.isLoaded=!0)),G.addEventListener("error",()=>z(!1)),this.googleTagManagerCSPNonce&&G.setAttribute("nonce",this.googleTagManagerCSPNonce),x.head.insertBefore(G,x.head.firstChild)})}pushTag(se){return new Promise((z,x)=>{if(this.isLoaded)return this.pushOnDataLayer(se),z();this.addGtmToDom().then(()=>(this.pushOnDataLayer(se),z())).catch(()=>x())})}applyGtmQueryParams(se){return-1===se.indexOf("?")&&(se+="?"),se+Object.keys(this.config).filter(z=>this.config[z]).map(z=>`${z}=${this.config[z]}`).join("&")}}return ae.\u0275fac=function(se){return new(se||ae)(g.LFG(e,8),g.LFG("googleTagManagerId",8),g.LFG("googleTagManagerAuth",8),g.LFG("googleTagManagerPreview",8),g.LFG("googleTagManagerResourcePath",8),g.LFG("googleTagManagerCSPNonce",8))},ae.\u0275prov=g.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),ve=(()=>{class ae{static forRoot(se){return{ngModule:ae,providers:[{provide:R,useValue:se}]}}}return ae.\u0275fac=function(se){return new(se||ae)},ae.\u0275mod=g.oAB({type:ae}),ae.\u0275inj=g.cJS({}),ae})()},3008:(wn,bt,D)=>{"use strict";D.d(bt,{IH:()=>Ee,Gb:()=>_e,Kz:()=>Re,Iv:()=>Ii});var g=D(5861),e=D(6881),R=D(1877),me=D(2090),ve=D(4859);D(4727);const Te="analytics",se="firebase_id",z="origin",G="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",de="https://www.googletagmanager.com/gtag/js",dt=new R.Yd("@firebase/analytics"),We=new me.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}
1","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function At(pt){if(!pt.startsWith(de)){const Gt=We.create("invalid-gtag-resource",{gtagURL:pt});return dt.warn(Gt.message),""}return pt}function qe(pt){return Promise.all(pt.map(Gt=>Gt.catch(Ce=>Ce)))}function sn(pt,Gt){const Ce=function lt(pt,Gt){let Ce;return window.trustedTypes&&(Ce=window.trustedTypes.createPolicy(pt,Gt)),Ce}("firebase-js-sdk-policy",{createScriptURL:At}),Ue=document.createElement("script"),ue=`${de}?l=${pt}&id=${Gt}`;Ue.src=Ce?Ce?.createScriptURL(ue):ue,Ue.async=!0,document.head.appendChild(Ue)}function ot(pt,Gt,Ce,Ue,ue,nt){return fe.apply(this,arguments)}function fe(){return(fe=(0,g.Z)(function*(pt,Gt,Ce,Ue,ue,nt){const Nt=Ue[ue];try{if(Nt)yield Gt[Nt];else{const Nn=(yield qe(Ce)).find(kt=>kt.measurementId===ue);Nn&&(yield Gt[Nn.appId])}}catch(mn){dt.error(mn)}pt("config",ue,nt)})).apply(this,arguments)}function ut(pt,Gt,Ce,Ue,ue){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,g.Z)(function*(pt,Gt,Ce,Ue,ue){try{let nt=[];if(ue&&ue.send_to){let Nt=ue.send_to;Array.isArray(Nt)||(Nt=[Nt]);const mn=yield qe(Ce);for(const Nn of Nt){const kt=mn.find(bn=>bn.measurementId===Nn),Ft=kt&&Gt[kt.appId];if(!Ft){nt=[];break}nt.push(Ft)}}0===nt.length&&(nt=Object.values(Gt)),yield Promise.all(nt),pt("event",Ue,ue||{})}catch(nt){dt.error(nt)}})).apply(this,arguments)}function xt(pt){const Gt=window.document.getElementsByTagName("script");for(const Ce of Object.values(Gt))if(Ce.src&&Ce.src.includes(de)&&Ce.src.includes(pt))return Ce;return null}const $t=new class pn{constructor(Gt={},Ce=1e3){this.throttleMetadata=Gt,this.intervalMillis=Ce}getThrottleMetadata(Gt){return this.throttleMetadata[Gt]}setThrottleMetadata(Gt,Ce){this.throttleMetadata[Gt]=Ce}deleteThrottleMetadata(Gt){delete this.throttleMetadata[Gt]}};function Vn(pt){return new Headers({Accept:"application/json","x-goog-api-key":pt})}function Ut(pt){return gn.apply(this,arguments)}function gn(){return(gn=(0,g.Z)(function*(pt){var Gt;const{appId:Ce,apiKey:Ue}=pt,ue={method:"GET",headers:Vn(Ue)},nt=G.replace("{app-id}",Ce),Nt=yield fetch(nt,ue);if(200!==Nt.status&&304!==Nt.status){let mn="";try{const Nn=yield Nt.json();null!==(Gt=Nn.error)&&void 0!==Gt&&Gt.message&&(mn=Nn.error.message)}catch{}throw We.create("config-fetch-failed",{httpStatus:Nt.status,responseMessage:mn})}return Nt.json()})).apply(this,arguments)}function tt(pt){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,g.Z)(function*(pt,Gt=$t,Ce){const{appId:Ue,apiKey:ue,measurementId:nt}=pt.options;if(!Ue)throw We.create("no-app-id");if(!ue){if(nt)return{measurementId:nt,appId:Ue};throw We.create("no-api-key")}const Nt=Gt.getThrottleMetadata(Ue)||{backoffCount:0,throttleEndTimeMillis:Date.now()},mn=new ft;return setTimeout((0,g.Z)(function*(){mn.abort()}),void 0!==Ce?Ce:6e4),St({appId:Ue,apiKey:ue,measurementId:nt},Nt,mn,Gt)})).apply(this,arguments)}function St(pt,Gt,Ce){return $e.apply(this,arguments)}function $e(){return($e=(0,g.Z)(function*(pt,{throttleEndTimeMillis:Gt,backoffCount:Ce},Ue,ue=$t){var nt;const{appId:Nt,measurementId:mn}=pt;try{yield je(Ue,Gt)}catch(Nn){if(mn)return dt.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${mn} provided in the "measurementId" field in the local Firebase config. [${Nn?.message}
1]`),{appId:Nt,measurementId:mn};throw Nn}try{const Nn=yield Ut(pt);return ue.deleteThrottleMetadata(Nt),Nn}catch(Nn){const kt=Nn;if(!ie(kt)){if(ue.deleteThrottleMetadata(Nt),mn)return dt.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${mn} provided in the "measurementId" field in the local Firebase config. [${kt?.message}]`),{appId:Nt,measurementId:mn};throw Nn}const Ft=503===Number(null===(nt=kt?.customData)||void 0===nt?void 0:nt.httpStatus)?(0,me.$s)(Ce,ue.intervalMillis,30):(0,me.$s)(Ce,ue.intervalMillis),bn={throttleEndTimeMillis:Date.now()+Ft,backoffCount:Ce+1};return ue.setThrottleMetadata(Nt,bn),dt.debug(`Calling attemptFetch again in ${Ft} millis`),St(pt,bn,Ue,ue)}})).apply(this,arguments)}function je(pt,Gt){return new Promise((Ce,Ue)=>{const ue=Math.max(Gt-Date.now(),0),nt=setTimeout(Ce,ue);pt.addEventListener(()=>{clearTimeout(nt),Ue(We.create("fetch-throttle",{throttleEndTimeMillis:Gt}))})})}function ie(pt){if(!(pt instanceof me.ZR&&pt.customData))return!1;const Gt=Number(pt.customData.httpStatus);return 429===Gt||500===Gt||503===Gt||504===Gt}class ft{constructor(){this.listeners=[]}addEventListener(Gt){this.listeners.push(Gt)}abort(){this.listeners.forEach(Gt=>Gt())}}let Wt,ui;function hn(){return(hn=(0,g.Z)(function*(pt,Gt,Ce,Ue,ue){if(ue&&ue.global)pt("event",Ce,Ue);else{const nt=yield Gt;pt("event",Ce,Object.assign(Object.assign({},Ue),{send_to:nt}))}})).apply(this,arguments)}function ai(){return(ai=(0,g.Z)(function*(pt,Gt,Ce,Ue){if(Ue&&Ue.global)return pt("set",{user_id:Ce}),Promise.resolve();pt("config",yield Gt,{update:!0,user_id:Ce})})).apply(this,arguments)}function zn(pt){ui=pt}function ri(pt){Wt=pt}function Pi(){return li.apply(this,arguments)}function li(){return(li=(0,g.Z)(function*(){if(!(0,me.hl)())return dt.warn(We.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,me.eu)()}catch(pt){return dt.warn(We.create("indexeddb-unavailable",{errorInfo:pt?.toString()}).message),!1}return!0})).apply(this,arguments)}function Ze(){return(Ze=(0,g.Z)(function*(pt,Gt,Ce,Ue,ue,nt,Nt){var mn;const Nn=tt(pt);Nn.then(ni=>{Ce[ni.measurementId]=ni.appId,pt.options.measurementId&&ni.measurementId!==pt.options.measurementId&&dt.warn(`The measurement ID in the local Firebase config (${pt.options.measurementId}) does not match the measurement ID fetched from the server (${ni.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(ni=>dt.error(ni)),Gt.push(Nn);const kt=Pi().then(ni=>{if(ni)return Ue.getId()}),[Ft,bn]=yield Promise.all([Nn,kt]);xt(nt)||sn(nt,Ft.measurementId),ui&&(ue("consent","default",ui),zn(void 0)),ue("js",new Date);const vn=null!==(mn=Nt?.config)&&void 0!==mn?mn:{};return vn[z]="firebase",vn.update=!0,null!=bn&&(vn[se]=bn),ue("config",Ft.measurementId,vn),Wt&&(ue("set",Wt),ri(void 0)),Ft.measurementId})).apply(this,arguments)}class Oe{constructor(Gt){this.app=Gt}_delete(){return delete P[this.app.options.appId],Promise.resolve()}}let P={},le=[];const O={};let De,ye,Q="dataLayer",Je=!1;function st(pt,Gt,Ce){!function on(){const pt=[];if((0,me.ru)()&&pt.push("This is a browser extension environment."),(0,me.zI)()||pt.push("Cookies are not available."),pt.length>0){const Gt=pt.map((Ue,ue)=>`(${ue+1}) ${Ue}`).join(" "),Ce=We.create("invalid-analytics-context",{errorInfo:Gt});dt.warn(Ce.message)}}();const Ue=pt.options.appId;if(!Ue)throw We.create("no-app-id");if(!pt.options.apiKey){if(!pt.options.measurementId)throw We.create("no-api-key");dt.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${pt.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=P[Ue])throw We.create("already-exists",{id:Ue});if(!Je){!function Xt(pt){let Gt=[];Array.isArray(window[pt])?Gt=window[pt]:window[pt]=Gt}(Q);const{wrappedGtag:nt,gtagCore:Nt}=function ze(pt,Gt,Ce,Ue,ue){let nt=function(...Nt){window[Ue].push(arguments)};return window[ue]&&"function"==typeof window[ue]&&(nt=window[ue]),window[ue]=function it(pt,Gt,Ce,Ue){function nt(){return(nt=(0,g.Z)(function*(Nt,...mn){try{if("event"===Nt){const[Nn,kt]=mn;yield ut(pt,Gt,Ce,Nn,kt)}else if("config"===Nt){const[Nn,kt]=mn;yield ot(pt,Gt,Ce,Ue,Nn,kt)}else if("consent"===Nt){const[Nn]=mn;pt("consent","update",Nn)}else if("get"===Nt){const[Nn,kt,Ft]=mn;pt("get",Nn,kt,Ft)}else if("set"===Nt){const[Nn]=mn;pt("set",Nn)}else pt(Nt,...mn)}catch(Nn){dt.error(Nn)}})).apply(this,arguments)}return function ue(Nt){return nt.apply(this,arguments)}}(nt,pt,Gt,Ce),{gtagCore:nt,wrappedGtag:window[ue]}}(P,le,O,Q,"gtag");ye=nt,De=Nt,Je=!0}return P[Ue]=function ei(pt,Gt,Ce,Ue,ue,nt,Nt){return Ze.apply(this,arguments)}(pt,le,O,Gt,De,Q,Ce),new Oe(pt)}function Ee(pt=(0,e.getApp)()){pt=(0,me.m9)(pt);const Gt=(0,e._getProvider)(pt,Te);return Gt.isInitialized()?Gt.getImmediate():function V(pt,Gt={}){const Ce=(0,e._getProvider)(pt,Te);if(Ce.isInitialized()){const ue=Ce.getImmediate();if((0,me.vZ)(Gt,Ce.getOptions()))return ue;throw We.create("already-initialized")}return Ce.initialize({options:Gt})}(pt)}function _e(){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,g.Z)(function*(){if((0,me.ru)()||!(0,me.zI)()||!(0,me.hl)())return!1;try{return yield(0,me.eu)()}catch{return!1}}
1)).apply(this,arguments)}function Ii(pt,Gt,Ce){pt=(0,me.m9)(pt),function kn(pt,Gt,Ce,Ue){return ai.apply(this,arguments)}(ye,P[pt.app.options.appId],Gt,Ce).catch(Ue=>dt.error(Ue))}function Re(pt,Gt,Ce,Ue){pt=(0,me.m9)(pt),function Dt(pt,Gt,Ce,Ue,ue){return hn.apply(this,arguments)}(ye,P[pt.app.options.appId],Gt,Ce,Ue).catch(ue=>dt.error(ue))}const xe="@firebase/analytics";!function en(){(0,e._registerComponent)(new ve.wA(Te,(Gt,{options:Ce})=>st(Gt.getProvider("app").getImmediate(),Gt.getProvider("installations-internal").getImmediate(),Ce),"PUBLIC")),(0,e._registerComponent)(new ve.wA("analytics-internal",function pt(Gt){try{const Ce=Gt.getProvider(Te).getImmediate();return{logEvent:(Ue,ue,nt)=>Re(Ce,Ue,ue,nt)}}catch(Ce){throw We.create("interop-component-reg-failed",{reason:Ce})}},"PRIVATE")),(0,e.registerVersion)(xe,"0.10.0"),(0,e.registerVersion)(xe,"0.10.0","esm2017")}()},259:(wn,bt,D)=>{"use strict";D.d(bt,{C6:()=>g.getApps,KN:()=>g.registerVersion,Mq:()=>g.getApp,ZF:()=>g.initializeApp});var g=D(6881);(0,g.registerVersion)("firebase","9.23.0","app")},9260:(wn,bt,D)=>{"use strict";D.d(bt,{Z:()=>g.Z});var g=D(3942);g.Z.registerVersion("firebase","9.23.0","app-compat")},9568:(wn,bt,D)=>{"use strict";D.r(bt);var g=D(5861),e=D(3942),R=D(1389),me=D(2090),Te=(D(6881),D(1877),D(4859));function se(){return window}function G(){return(G=(0,g.Z)(function*(Re,Ie,xe){var Ot;const{BuildInfo:en}=se();(0,R.as)(Ie.sessionId,"AuthEvent did not contain a session ID");const pt=yield lt(Ie.sessionId),Gt={};return(0,R.at)()?Gt.ibi=en.packageName:(0,R.au)()?Gt.apn=en.packageName:(0,R.av)(Re,"operation-not-supported-in-this-environment"),en.displayName&&(Gt.appDisplayName=en.displayName),Gt.sessionId=pt,(0,R.aw)(Re,xe,Ie.type,void 0,null!==(Ot=Ie.eventId)&&void 0!==Ot?Ot:void 0,Gt)})).apply(this,arguments)}function dt(){return(dt=(0,g.Z)(function*(Re){const{BuildInfo:Ie}=se(),xe={};(0,R.at)()?xe.iosBundleId=Ie.packageName:(0,R.au)()?xe.androidPackageName=Ie.packageName:(0,R.av)(Re,"operation-not-supported-in-this-environment"),yield(0,R.ax)(Re,xe)})).apply(this,arguments)}function At(){return(At=(0,g.Z)(function*(Re,Ie,xe){const{cordova:Ot}=se();let en=()=>{};try{yield new Promise((pt,Gt)=>{let Ce=null;function Ue(){var Nt;pt();const mn=null===(Nt=Ot.plugins.browsertab)||void 0===Nt?void 0:Nt.close;"function"==typeof mn&&mn(),"function"==typeof xe?.close&&xe.close()}function ue(){Ce||(Ce=window.setTimeout(()=>{Gt((0,R.az)(Re,"redirect-cancelled-by-user"))},2e3))}function nt(){"visible"===document?.visibilityState&&ue()}Ie.addPassiveListener(Ue),document.addEventListener("resume",ue,!1),(0,R.au)()&&document.addEventListener("visibilitychange",nt,!1),en=()=>{Ie.removePassiveListener(Ue),document.removeEventListener("resume",ue,!1),document.removeEventListener("visibilitychange",nt,!1),Ce&&window.clearTimeout(Ce)}})}finally{en()}})).apply(this,arguments)}function lt(Re){return sn.apply(this,arguments)}function sn(){return(sn=(0,g.Z)(function*(Re){const Ie=Xt(Re),xe=yield crypto.subtle.digest("SHA-256",Ie);return Array.from(new Uint8Array(xe)).map(en=>en.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}function Xt(Re){if((0,R.as)(/[0-9a-zA-Z]+/.test(Re),"Can only convert alpha-numeric strings"),typeof TextEncoder<"u")return(new TextEncoder).encode(Re);const Ie=new ArrayBuffer(Re.length),xe=new Uint8Array(Ie);for(let Ot=0;Ot<Re.length;Ot++)xe[Ot]=Re.charCodeAt(Ot);return xe}class fe extends R.aB{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(Ie=>{this.resolveInialized=Ie})}addPassiveListener(Ie){this.passiveListeners.add(Ie)}removePassiveListener(Ie){this.passiveListeners.delete(Ie)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(Ie){return this.resolveInialized(),this.passiveListeners.forEach(xe=>xe(Ie)),super.onEvent(Ie)}initialized(){var Ie=this;return(0,g.Z)(function*(){yield Ie.initPromise})()}}function it(Re){return ze.apply(this,arguments)}function ze(){return(ze=(0,g.Z)(function*(Re){const Ie=yield zt()._get(pn(Re));return Ie&&(yield zt()._remove(pn(Re))),Ie})).apply(this,arguments)}function mt(){const Re=[],Ie="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let xe=0;xe<20;xe++){const Ot=Math.floor(Math.random()*Ie.length);Re.push(Ie.charAt(Ot))}return Re.join("")}function zt(){return(0,R.aC)(R.b)}function pn(Re){return(0,R.aD)("authEvent",Re.config.apiKey,Re.name)}function Ut(Re){if(!Re?.includes("?"))return{};const[Ie,...xe]=Re.split("?");return(0,me.zd)(xe.join("?"))}function St(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:(0,R.az)("no-auth-event")}}function Wt(){var Re;return(null===(Re=self?.location)||void 0===Re?void 0:Re.protocol)||null}function hn(Re=(0,me.z$)()){return!("file:"!==Wt()&&"ionic:"!==Wt()&&"capacitor:"!==Wt()||!Re.toLowerCase().match(/iphone|ipad|ipod|android/))}function An(){try{const Re=self.localStorage,Ie=R.aL();if(Re)return Re.setItem(Ie,"1"),Re.removeItem(Ie),!function ai(Re=(0,me.z$)()){return function qn(){return(0,me.w1)()&&11===document?.documentMode}()||function kn(Re=(0,me.z$)()){return/Edge\/\d+/.test(Re)}(Re)}()||(0,me.hl)()}catch{return Wn()&&(0,me.hl)()}return!1}function Wn(){return typeof global<"u"&&"WorkerGlobalScope"in global&&"importScripts"in global}function Ln(){return(function Dt(){return"http:"===Wt()||"https:"===Wt()}()||(0,me.ru)()||hn())&&!function Gn(){return(0,me.b$)()||(0,me.UG)()}()&&An()&&!Wn()}function Hn(){return hn()&&typeof document<"u"}function _n(){return(_n=(0,g.Z)(function*(){return!!Hn()&&new Promise(Re=>{const Ie=setTimeout(()=>{Re(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(Ie),Re(!0)})})})).apply(this,arguments)}const zn={LOCAL:"local",NONE:"none",SESSION:"session"},ri=R.aA,Pi="persistence";function ei(Re){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,g.Z)(function*(Re){yield Re._initializationPromise;const Ie=P(),xe=R.aD(Pi,Re.config.apiKey,Re.name);Ie&&Ie.setItem(xe,Re._getPersistence())})).apply(this,arguments)}function P(){var Re;try{return(null===(Re=function ui(){return typeof window<"u"?window:null}())||void 0===Re?void 0:Re.sessionStorage)||null}catch{return null}}const le=R.aA;class O{constructor(){this.browserResolver=R.aC(R.k),this.cordovaResolver=R.aC(class tt{constructor(){this._redirectPersistence=R.a,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=R.aE,this._overrideRedirectResult=R.aF}_initialize(Ie){var xe=this;return(0,g.Z)(function*(){const Ot=Ie._key();let en=xe.eventManagers.get(Ot);return en||(en=new fe(Ie),xe.eventManagers.set(Ot,en),xe.attachCallbackListeners(Ie,en)),en})()}_openPopup(Ie){(0,R.av)(Ie,"operation-not-supported-in-this-environment")}_openRedirect(Ie,xe,Ot,en){var pt=this;return(0,g.Z)(function*(){!function qe(Re){var Ie,xe,Ot,en,pt,Gt,Ce,Ue,ue,nt;const Nt=se();(0,R.aA)("function"==typeof(null===(Ie=Nt?.universalLinks)||void 0===Ie?void 0:Ie.subscribe),Re,"invali
1d-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),(0,R.aA)(typeof(null===(xe=Nt?.BuildInfo)||void 0===xe?void 0:xe.packageName)<"u",Re,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),(0,R.aA)("function"==typeof(null===(pt=null===(en=null===(Ot=Nt?.cordova)||void 0===Ot?void 0:Ot.plugins)||void 0===en?void 0:en.browsertab)||void 0===pt?void 0:pt.openUrl),Re,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,R.aA)("function"==typeof(null===(Ue=null===(Ce=null===(Gt=Nt?.cordova)||void 0===Gt?void 0:Gt.plugins)||void 0===Ce?void 0:Ce.browsertab)||void 0===Ue?void 0:Ue.isAvailable),Re,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,R.aA)("function"==typeof(null===(nt=null===(ue=Nt?.cordova)||void 0===ue?void 0:ue.InAppBrowser)||void 0===nt?void 0:nt.open),Re,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(Ie);const Gt=yield pt._initialize(Ie);yield Gt.initialized(),Gt.resetRedirect(),(0,R.aG)(),yield pt._originValidation(Ie);const Ce=function ut(Re,Ie,xe=null){return{type:Ie,eventId:xe,urlResponse:null,sessionId:mt(),postBody:null,tenantId:Re.tenantId,error:(0,R.az)(Re,"no-auth-event")}}(Ie,Ot,en);yield function Ye(Re,Ie){return zt()._set(pn(Re),Ie)}(Ie,Ce);const Ue=yield function x(Re,Ie,xe){return G.apply(this,arguments)}(Ie,Ce,xe),ue=yield function Mt(Re){const{cordova:Ie}=se();return new Promise(xe=>{Ie.plugins.browsertab.isAvailable(Ot=>{let en=null;Ot?Ie.plugins.browsertab.openUrl(Re):en=Ie.InAppBrowser.open(Re,(0,R.ay)()?"_blank":"_system","location=yes"),xe(en)})})}(Ue);return function We(Re,Ie,xe){return At.apply(this,arguments)}(Ie,Gt,ue)})()}_isIframeWebStorageSupported(Ie,xe){throw new Error("Method not implemented.")}_originValidation(Ie){const xe=Ie._key();return this.originValidationPromises[xe]||(this.originValidationPromises[xe]=function de(Re){return dt.apply(this,arguments)}(Ie)),this.originValidationPromises[xe]}attachCallbackListeners(Ie,xe){const{universalLinks:Ot,handleOpenURL:en,BuildInfo:pt}=se(),Gt=setTimeout((0,g.Z)(function*(){yield it(Ie),xe.onEvent(St())}),500),Ce=function(){var nt=(0,g.Z)(function*(Nt){clearTimeout(Gt);const mn=yield it(Ie);let Nn=null;mn&&Nt?.url&&(Nn=function xt(Re,Ie){var xe,Ot;const en=function Vn(Re){const Ie=Ut(Re),xe=Ie.link?decodeURIComponent(Ie.link):void 0,Ot=Ut(xe).link,en=Ie.deep_link_id?decodeURIComponent(Ie.deep_link_id):void 0;return Ut(en).link||en||Ot||xe||Re}(Ie);if(en.includes("/__/auth/callback")){const pt=Ut(en),Gt=pt.firebaseError?function $t(Re){try{return JSON.parse(Re)}catch{return null}}(decodeURIComponent(pt.firebaseError)):null,Ce=null===(Ot=null===(xe=Gt?.code)||void 0===xe?void 0:xe.split("auth/"))||void 0===Ot?void 0:Ot[1],Ue=Ce?(0,R.az)(Ce):null;return Ue?{type:Re.type,eventId:Re.eventId,tenantId:Re.tenantId,error:Ue,urlResponse:null,sessionId:null,postBody:null}:{type:Re.type,eventId:Re.eventId,tenantId:Re.tenantId,sessionId:Re.sessionId,urlResponse:en,postBody:null}}return null}(mn,Nt.url)),xe.onEvent(Nn||St())});return function(mn){return nt.apply(this,arguments)}}();typeof Ot<"u"&&"function"==typeof Ot.subscribe&&Ot.subscribe(null,Ce);const Ue=en,ue=`${pt.packageName.toLowerCase()}://`;se().handleOpenURL=function(){var nt=(0,g.Z)(function*(Nt){if(Nt.toLowerCase().startsWith(ue)&&Ce({url:Nt}),"function"==typeof Ue)try{Ue(Nt)}catch(mn){console.error(mn)}});return function(Nt){return nt.apply(this,arguments)}}()}}),this.underlyingResolver=null,this._redirectPersistence=R.a,this._completeRedirectFn=R.aE,this._overrideRedirectResult=R.aF}_initialize(Ie){var xe=this;return(0,g.Z)(function*(){return yield xe.selectUnderlyingResolver(),xe.assertedUnderlyingResolver._initialize(Ie)})()}_openPopup(Ie,xe,Ot,en){var pt=this;return(0,g.Z)(function*(){return yield pt.selectUnderlyingResolver(),pt.assertedUnderlyingResolver._openPopup(Ie,xe,Ot,en)})()}_openRedirect(Ie,xe,Ot,en){var pt=this;return(0,g.Z)(function*(){return yield pt.selectUnderlyingResolver(),pt.assertedUnderlyingResolver._openRedirect(Ie,xe,Ot,en)})()}_isIframeWebStorageSupported(Ie,xe){this.assertedUnderlyingResolver._isIframeWebStorageSupported(Ie,xe)}_originValidation(Ie){return this.assertedUnderlyingResolver._originValidation(Ie)}get _shouldInitProactively(){return Hn()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return le(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var Ie=this;return(0,g.Z)(function*(){if(Ie.underlyingResolver)return;const xe=yield function yi(){return _n.apply(this,arguments)}();Ie.underlyingResolver=xe?Ie.cordovaResolver:Ie.browserResolver})()}}function Q(Re){return Re.unwrap()}function De(Re){return Je(Re)}function Je(Re){const{_tokenResponse:Ie}=Re instanceof me.ZR?Re.customData:Re;if(!Ie)return null;
1if(!(Re instanceof me.ZR)&&"temporaryProof"in Ie&&"phoneNumber"in Ie)return R.P.credentialFromResult(Re);const xe=Ie.providerId;if(!xe||xe===R.p.PASSWORD)return null;let Ot;switch(xe){case R.p.GOOGLE:Ot=R.V;break;case R.p.FACEBOOK:Ot=R.U;break;case R.p.GITHUB:Ot=R.W;break;case R.p.TWITTER:Ot=R.Z;break;default:const{oauthIdToken:en,oauthAccessToken:pt,oauthTokenSecret:Gt,pendingToken:Ce,nonce:Ue}=Ie;return pt||Gt||en||Ce?Ce?xe.startsWith("saml.")?R.aO._create(xe,Ce):R.L._fromParams({providerId:xe,signInMethod:xe,pendingToken:Ce,idToken:en,accessToken:pt}):new R.X(xe).credential({idToken:en,accessToken:pt,rawNonce:Ue}):null}return Re instanceof me.ZR?Ot.credentialFromError(Re):Ot.credentialFromResult(Re)}function wt(Re,Ie){return Ie.catch(xe=>{throw xe instanceof me.ZR&&function ye(Re,Ie){var xe;const Ot=null===(xe=Ie.customData)||void 0===xe?void 0:xe._tokenResponse;if("auth/multi-factor-auth-required"===Ie?.code)Ie.resolver=new Ee(Re,R.aq(Re,Ie));else if(Ot){const en=Je(Ie),pt=Ie;en&&(pt.credential=en,pt.tenantId=Ot.tenantId||void 0,pt.email=Ot.email||void 0,pt.phoneNumber=Ot.phoneNumber||void 0)}}(Re,xe),xe}).then(xe=>{const en=xe.user;return{operationType:xe.operationType,credential:De(xe),additionalUserInfo:R.ao(xe),user:V.getOrCreate(en)}})}function on(Re,Ie){return st.apply(this,arguments)}function st(){return(st=(0,g.Z)(function*(Re,Ie){const xe=yield Ie;return{verificationId:xe.verificationId,confirm:Ot=>wt(Re,xe.confirm(Ot))}})).apply(this,arguments)}class Ee{constructor(Ie,xe){this.resolver=xe,this.auth=function ke(Re){return Re.wrapped()}(Ie)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(Ie){return wt(Q(this.auth),this.resolver.resolveSignIn(Ie))}}class V{constructor(Ie){this._delegate=Ie,this.multiFactor=R.ar(Ie)}static getOrCreate(Ie){return V.USER_MAP.has(Ie)||V.USER_MAP.set(Ie,new V(Ie)),V.USER_MAP.get(Ie)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(Ie){return this._delegate.getIdTokenResult(Ie)}getIdToken(Ie){return this._delegate.getIdToken(Ie)}linkAndRetrieveDataWithCredential(Ie){return this.linkWithCredential(Ie)}linkWithCredential(Ie){var xe=this;return(0,g.Z)(function*(){return wt(xe.auth,R.a0(xe._delegate,Ie))})()}linkWithPhoneNumber(Ie,xe){var Ot=this;return(0,g.Z)(function*(){return on(Ot.auth,R.l(Ot._delegate,Ie,xe))})()}linkWithPopup(Ie){var xe=this;return(0,g.Z)(function*(){return wt(xe.auth,R.d(xe._delegate,Ie,O))})()}linkWithRedirect(Ie){var xe=this;return(0,g.Z)(function*(){return yield ei(R.aH(xe.auth)),R.g(xe._delegate,Ie,O)})()}reauthenticateAndRetrieveDataWithCredential(Ie){return this.reauthenticateWithCredential(Ie)}reauthenticateWithCredential(Ie){var xe=this;return(0,g.Z)(function*(){return wt(xe.auth,R.a1(xe._delegate,Ie))})()}reauthenticateWithPhoneNumber(Ie,xe){return on(this.auth,R.r(this._delegate,Ie,xe))}reauthenticateWithPopup(Ie){return wt(this.auth,R.e(this._delegate,Ie,O))}reauthenticateWithRedirect(Ie){var xe=this;return(0,g.Z)(function*(){return yield ei(R.aH(xe.auth)),R.h(xe._delegate,Ie,O)})()}sendEmailVerification(Ie){return R.ae(this._delegate,Ie)}unlink(Ie){var xe=this;return(0,g.Z)(function*(){return yield R.an(xe._delegate,Ie),xe})()}updateEmail(Ie){return R.aj(this._delegate,Ie)}updatePassword(Ie){return R.ak(this._delegate,Ie)}updatePhoneNumber(Ie){return R.u(this._delegate,Ie)}updateProfile(Ie){return R.ai(this._delegate,Ie)}verifyBeforeUpdateEmail(Ie,xe){return R.af(this._delegate,Ie,xe)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}V.USER_MAP=new WeakMap;const _e=R.aA;let Tt=(()=>{class Re{constructor(xe,Ot){if(this.app=xe,Ot.isInitialized())return this._delegate=Ot.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:en}=xe.options;_e(en,"invalid-api-key",{appName:xe.name}),_e(en,"invalid-api-key",{appName:xe.name});const pt=typeof window<"u"?O:void 0;this._delegate=Ot.initialize({options:{persistence:Yn(en,xe.name),popupRedirectResolver:pt}}),this._delegate._updateErrorMap(R.D),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?V.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(xe){this._delegate.languageCode=xe}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(xe){this._delegate.tenantId=xe}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(xe,Ot){R.I(this._delegate,xe,Ot)}applyActionCode(xe){return R.a5(this._delegate,xe)}checkActionCode(xe){return R.a6(this._delegate,xe)}confirmPasswordReset(xe,Ot){return R.a4(this._delegate,xe,Ot)}createUserWithEmailAndPassword(xe,Ot){var en=this;return(0,g.Z)(function*(){return wt(en._delegate,R.a8(en._delegate,xe,Ot))})()}
1fetchProvidersForEmail(xe){return this.fetchSignInMethodsForEmail(xe)}fetchSignInMethodsForEmail(xe){return R.ad(this._delegate,xe)}isSignInWithEmailLink(xe){return R.ab(this._delegate,xe)}getRedirectResult(){var xe=this;return(0,g.Z)(function*(){_e(Ln(),xe._delegate,"operation-not-supported-in-this-environment");const Ot=yield R.j(xe._delegate,O);return Ot?wt(xe._delegate,Promise.resolve(Ot)):{credential:null,user:null}})()}addFrameworkForLogging(xe){!function $e(Re,Ie){(0,R.aH)(Re)._logFramework(Ie)}(this._delegate,xe)}onAuthStateChanged(xe,Ot,en){const{next:pt,error:Gt,complete:Ce}=un(xe,Ot,en);return this._delegate.onAuthStateChanged(pt,Gt,Ce)}onIdTokenChanged(xe,Ot,en){const{next:pt,error:Gt,complete:Ce}=un(xe,Ot,en);return this._delegate.onIdTokenChanged(pt,Gt,Ce)}sendSignInLinkToEmail(xe,Ot){return R.aa(this._delegate,xe,Ot)}sendPasswordResetEmail(xe,Ot){return R.a3(this._delegate,xe,Ot||void 0)}setPersistence(xe){var Ot=this;return(0,g.Z)(function*(){let en;switch(function li(Re,Ie){ri(Object.values(zn).includes(Ie),Re,"invalid-persistence-type"),(0,me.b$)()?ri(Ie!==zn.SESSION,Re,"unsupported-persistence-type"):(0,me.UG)()?ri(Ie===zn.NONE,Re,"unsupported-persistence-type"):Wn()?ri(Ie===zn.NONE||Ie===zn.LOCAL&&(0,me.hl)(),Re,"unsupported-persistence-type"):ri(Ie===zn.NONE||An(),Re,"unsupported-persistence-type")}(Ot._delegate,xe),xe){case zn.SESSION:en=R.a;break;case zn.LOCAL:en=(yield R.aC(R.i)._isAvailable())?R.i:R.b;break;case zn.NONE:en=R.N;break;default:return R.av("argument-error",{appName:Ot._delegate.name})}return Ot._delegate.setPersistence(en)})()}signInAndRetrieveDataWithCredential(xe){return this.signInWithCredential(xe)}signInAnonymously(){return wt(this._delegate,R._(this._delegate))}signInWithCredential(xe){return wt(this._delegate,R.$(this._delegate,xe))}signInWithCustomToken(xe){return wt(this._delegate,R.a2(this._delegate,xe))}signInWithEmailAndPassword(xe,Ot){return wt(this._delegate,R.a9(this._delegate,xe,Ot))}signInWithEmailLink(xe,Ot){return wt(this._delegate,R.ac(this._delegate,xe,Ot))}signInWithPhoneNumber(xe,Ot){return on(this._delegate,R.s(this._delegate,xe,Ot))}signInWithPopup(xe){var Ot=this;return(0,g.Z)(function*(){return _e(Ln(),Ot._delegate,"operation-not-supported-in-this-environment"),wt(Ot._delegate,R.c(Ot._delegate,xe,O))})()}signInWithRedirect(xe){var Ot=this;return(0,g.Z)(function*(){return _e(Ln(),Ot._delegate,"operation-not-supported-in-this-environment"),yield ei(Ot._delegate),R.f(Ot._delegate,xe,O)})()}updateCurrentUser(xe){return this._delegate.updateCurrentUser(xe)}verifyPasswordResetCode(xe){return R.a7(this._delegate,xe)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return Re.Persistence=zn,Re})();function un(Re,Ie,xe){let Ot=Re;"function"!=typeof Re&&({next:Ot,error:Ie,complete:xe}=Re);const en=Ot;return{next:Gt=>en(Gt&&V.getOrCreate(Gt)),error:Ie,complete:xe}}function Yn(Re,Ie){const xe=function Oe(Re,Ie){const xe=P();if(!xe)return[];const Ot=R.aD(Pi,Re,Ie);switch(xe.getItem(Ot)){case zn.NONE:return[R.N];case zn.LOCAL:return[R.i,R.a];case zn.SESSION:return[R.a];default:return[]}}(Re,Ie);if(typeof self<"u"&&!xe.includes(R.i)&&xe.push(R.i),typeof window<"u")for(const Ot of[R.b,R.a])xe.includes(Ot)||xe.push(Ot);return xe.includes(R.N)||xe.push(R.N),xe}class Li{constructor(){this.providerId="phone",this._delegate=new R.P(Q(e.Z.auth()))}static credential(Ie,xe){return R.P.credential(Ie,xe)}verifyPhoneNumber(Ie,xe){return this._delegate.verifyPhoneNumber(Ie,xe)}unwrap(){return this._delegate}}Li.PHONE_SIGN_IN_METHOD=R.P.PHONE_SIGN_IN_METHOD,Li.PROVIDER_ID=R.P.PROVIDER_ID;const Ii=R.aA;class qi{constructor(Ie,xe,Ot=e.Z.app()){var en;Ii(null===(en=Ot.options)||void 0===en?void 0:en.apiKey,"invalid-api-key",{appName:Ot.name}),this._delegate=new R.R(Ie,xe,Ot.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function Xe(Re){Re.INTERNAL.registerComponent(new Te.wA("auth-compat",Ie=>{const xe=Ie.getProvider("app-compat").getImmediate(),Ot=Ie.getProvider("auth");return new Tt(xe,Ot)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:R.A.EMAIL_SIGNIN,PASSWORD_RESET:R.A.PASSWORD_RESET,RECOVER_EMAIL:R.A.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:R.A.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:R.A.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:R.A.VERIFY_EMAIL}},EmailAuthProvider:R.Q,FacebookAuthProvider:R.U,GithubAuthProvider:R.W,GoogleAuthProvider:R.V,OAuthProvider:R.X,SAMLAuthProvider:R.Y,PhoneAuthProvider:Li,PhoneMultiFactorGenerator:R.m,RecaptchaVerifier:qi,TwitterAuthProvider:R.Z,Auth:Tt,AuthCredential:R.J,Error:me.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),Re.registerVersion("@firebase/auth-compat","0.4.2")}(e.Z)},1894:(wn,bt,D)=>{"use strict";D.d(bt,{NP:()=>We,_f:()=>fe,bB:()=>it,dt:()=>Xt,sv:()=>ut});var g=D(5861),e=D(4650),R=D(6895),me=D(1481);function ve(ze,xt){if(1&ze){const mt=e.EpF();e.TgZ(0,"ngx-dropzone-remove-badge",1),e.NdJ("click",function(pn){e.CHM(mt);const $t=e.oxw();return e.KtG($t._remove(pn))}),e.qZA()}}const ae=[[["ngx-dropzone-label"]]],Te=["ngx-dropzone-label"],se=["fileInput"];function z(ze,xt){1&ze&&e.Hsn(0,2,["*ngIf","!_hasPreviews"])}const x=[[["ngx-dropzone-preview"]],"*",[["ngx-dropzone-label"]]],G=["ngx-dropzone-preview","*","ngx-dropzone-label"];function de(ze,xt){if(1&ze){const mt=e.EpF();e.TgZ(0,"ngx-dropzone-remove-badge",2),e.NdJ("click",function(pn){e.CHM(mt);const $t=e.oxw();return e.KtG($t._remove(pn))}),e.qZA()}}let We=(()=>{class ze{}return ze.\u0275fac=function(mt){return new(mt||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["ngx-dropzone-label"]]}),ze})();function At(ze){return null!=ze&&"false"!=`${ze}`}let lt=(()=>{class ze{}return ze.\u0275fac=function(mt){return new(mt||ze)},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["ngx-dropzone-remove-badge"]],decls:3,vars:0,consts:[["x1","0","y1","0","x2","10","y2","10"],["x1","0","y1","10","x2","10","y2","0"]],template:function(mt,zt){1&mt&&(e.O4$(),e.TgZ(0,"svg"),e._UZ(1,"line",0)(2,"line",1),e.qZA())},styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;height:22px;width:22px;position:absolute;top:5px;right:5px;border-radius:50%;background:#bbb;color:#333;cursor:pointer}[_nghost-%COMP%]:hover{background:#aeaeae}[_nghost-%COMP%] > svg[_ngcontent-%COMP%]{height:10px;width:10px}[_nghost-%COMP%] > svg[_ngcontent-%COMP%] > line[_ngcontent-%COMP%]{stroke-width:2px;stroke:#fff}"]}),ze})();var sn=(()=>{return(ze=sn||(sn={}))[ze.BACKSPACE=8]="BACKSPACE",ze[ze.DELETE=46]="DELETE",sn;var ze})();let Xt=(()=>{class ze{constructor(mt){this.sanitizer=mt,this._removable=!1,this.removed=new e.vpe,this.tabIndex=0}set file(mt){this._file=mt}get file(){return this._file}get removable(){return this._removable}set removable(mt){this._removable=At(mt)}keyEvent(mt){switch(mt.keyCode){case sn.BACKSPACE:case sn.DELETE:this.remove()}}get hostStyle(){return this.sanitizer.bypassSecurityTrustStyle("\n\t\t\tdisplay: flex;\n\t\t\theight: 140px;\n\t\t\tmin-height: 140px;\n\t\t\tmin-width: 180px;\n\t\t\tmax-width: 180px;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tpadding: 0 20px;\n\t\t\tmargin: 10px;\n\t\t\tborder-radius: 5px;\n\t\t\tposition: relative;\n\t\t")}_remove(mt){mt.stopPropagation(),this.remove()}remove(){this._removable&&this.removed.next(this.file)}readFile(){var mt=this;return(0,g.Z)(function*(){return new Promise((zt,pn)=>{const $t=new FileReader;if($t.onload=Vn=>{zt(Vn.target.result)},$t.onerror=Vn=>{console.error(`FileReader failed on file ${mt.file.name}.`),pn(Vn)},!mt.file)return pn("No file to read. Please provide a file using the [file] Input property.");
1$t.readAsDataURL(mt.file)})})()}}return ze.\u0275fac=function(mt){return new(mt||ze)(e.Y36(me.H7))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["ngx-dropzone-preview"]],hostVars:3,hostBindings:function(mt,zt){1&mt&&e.NdJ("keyup",function($t){return zt.keyEvent($t)}),2&mt&&(e.Ikx("tabindex",zt.tabIndex),e.Akn(zt.hostStyle))},inputs:{file:"file",removable:"removable"},outputs:{removed:"removed"},ngContentSelectors:Te,decls:2,vars:1,consts:[[3,"click",4,"ngIf"],[3,"click"]],template:function(mt,zt){1&mt&&(e.F$t(ae),e.Hsn(0),e.YNc(1,ve,1,0,"ngx-dropzone-remove-badge",0)),2&mt&&(e.xp6(1),e.Q6J("ngIf",zt.removable))},dependencies:[lt,R.O5],styles:["[_nghost-%COMP%]{background-image:linear-gradient(to top,#ededed,#efefef,#f1f1f1,#f4f4f4,#f6f6f6)}[_nghost-%COMP%]:hover, [_nghost-%COMP%]:focus{background-image:linear-gradient(to top,#e3e3e3,#ebeaea,#e8e7e7,#ebeaea,#f4f4f4);outline:0}[_nghost-%COMP%]:hover ngx-dropzone-remove-badge[_ngcontent-%COMP%], [_nghost-%COMP%]:focus ngx-dropzone-remove-badge[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] ngx-dropzone-remove-badge[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] ngx-dropzone-label{overflow-wrap:break-word}"]}),ze})(),ot=(()=>{class ze{parseFileList(mt,zt,pn,$t){const Vn=[],Ut=[];for(let tt=0;tt<mt.length;tt++){const Zt=mt.item(tt);this.isAccepted(Zt,zt)?pn&&Zt.size>pn?this.rejectFile(Ut,Zt,"size"):!$t&&Vn.length>=1?this.rejectFile(Ut,Zt,"no_multiple"):Vn.push(Zt):this.rejectFile(Ut,Zt,"type")}return{addedFiles:Vn,rejectedFiles:Ut}}isAccepted(mt,zt){if("*"===zt)return!0;const pn=zt.split(",").map(gn=>gn.toLowerCase().trim()),$t=mt.type.toLowerCase(),Vn=mt.name.toLowerCase();return!!pn.find(gn=>gn.endsWith("/*")?$t.split("/")[0]===gn.split("/")[0]:gn.startsWith(".")?Vn.endsWith(gn):gn==$t)}rejectFile(mt,zt,pn){const $t=zt;$t.reason=pn,mt.push($t)}}return ze.\u0275fac=function(mt){return new(mt||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),fe=(()=>{class ze{constructor(mt){this.service=mt,this.change=new e.vpe,this.accept="*",this._disabled=!1,this._multiple=!0,this._maxFileSize=void 0,this._expandable=!1,this._disableClick=!1,this._processDirectoryDrop=!1,this._isHovered=!1}get _hasPreviews(){return!!this._previewChildren.length}get disabled(){return this._disabled}set disabled(mt){this._disabled=At(mt),this._isHovered&&(this._isHovered=!1)}get multiple(){return this._multiple}set multiple(mt){this._multiple=At(mt)}get maxFileSize(){return this._maxFileSize}set maxFileSize(mt){this._maxFileSize=function qe(ze){return isNaN(parseFloat(ze))||isNaN(Number(ze))?null:Number(ze)}(mt)}get expandable(){return this._expandable}set expandable(mt){this._expandable=At(mt)}get disableClick(){return this._disableClick}set disableClick(mt){this._disableClick=At(mt)}get processDirectoryDrop(){return this._processDirectoryDrop}set processDirectoryDrop(mt){this._processDirectoryDrop=At(mt)}_onClick(){this.disableClick||this.showFileSelector()}_onDragOver(mt){this.disabled||(this.preventDefault(mt),this._isHovered=!0)}_onDragLeave(){this._isHovered=!1}_onDrop(mt){if(!this.disabled)if(this.preventDefault(mt),this._isHovered=!1,this.processDirectoryDrop&&DataTransferItem.prototype.webkitGetAsEntry){const zt=mt.dataTransfer.items;if(zt.length>0){const pn=[],$t=[];for(let Ut=0;Ut<zt.length;Ut++){const gn=zt[Ut].webkitGetAsEntry();gn.isFile?pn.push(mt.dataTransfer.files[Ut]):gn.isDirectory&&$t.push(gn)}const Vn=new DataTransfer;if(pn.forEach(Ut=>{Vn.items.add(Ut)}),!$t.length&&Vn.items.length&&this.handleFileDrop(Vn.files),$t.length){const Ut=[];for(const gn of $t)Ut.push(this.extractFilesFromDirectory(gn));Promise.all(Ut).then(gn=>{gn.reduce((tt,Zt)=>[...tt,...Zt]).forEach(tt=>{Vn.items.add(tt)}),this.handleFileDrop(Vn.files)})}}}else this.handleFileDrop(mt.dataTransfer.files)}extractFilesFromDirectory(mt){function zt($t){return pn.apply(this,arguments)}function pn(){return(pn=(0,g.Z)(function*($t){try{return yield new Promise((Vn,Ut)=>$t.file(Vn,Ut))}catch(Vn){console.log("Error converting a fileEntry to a File: ",Vn)}})).apply(this,arguments)}return new Promise(($t,Vn)=>{const Ut=[],gn=mt.createReader(),tt=()=>{gn.readEntries(function(){var Zt=(0,g.Z)(function*(St){if(St.length){const $e=St.filter(je=>je.isFile);for(const je of $e){const ie=yield zt(je);Ut.push(ie)}tt()}else $t(Ut)});return function(St){return Zt.apply(this,arguments)}}())};tt()})}showFileSelector(){this.disabled||this._fileInput.nativeElement.click()}_onFilesSelected(mt){this.handleFileDrop(mt.target.files),this._fileInput.nativeElement.value="",this.preventDefault(mt)}
1handleFileDrop(mt){const zt=this.service.parseFileList(mt,this.accept,this.maxFileSize,this.multiple);this.change.next({addedFiles:zt.addedFiles,rejectedFiles:zt.rejectedFiles,source:this})}preventDefault(mt){mt.preventDefault(),mt.stopPropagation()}}return ze.\u0275fac=function(mt){return new(mt||ze)(e.Y36(ot,2))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["ngx-dropzone"],["","ngx-dropzone",""]],contentQueries:function(mt,zt,pn){if(1&mt&&e.Suo(pn,Xt,5),2&mt){let $t;e.iGM($t=e.CRH())&&(zt._previewChildren=$t)}},viewQuery:function(mt,zt){if(1&mt&&e.Gf(se,7),2&mt){let pn;e.iGM(pn=e.CRH())&&(zt._fileInput=pn.first)}},hostVars:8,hostBindings:function(mt,zt){1&mt&&e.NdJ("click",function(){return zt._onClick()})("dragover",function($t){return zt._onDragOver($t)})("dragleave",function(){return zt._onDragLeave()})("drop",function($t){return zt._onDrop($t)}),2&mt&&e.ekj("ngx-dz-disabled",zt.disabled)("expandable",zt.expandable)("unclickable",zt.disableClick)("ngx-dz-hovered",zt._isHovered)},inputs:{accept:"accept",disabled:"disabled",multiple:"multiple",maxFileSize:"maxFileSize",expandable:"expandable",disableClick:"disableClick",processDirectoryDrop:"processDirectoryDrop",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedBy:["aria-describedby","ariaDescribedBy"]},outputs:{change:"change"},features:[e._Bn([ot])],ngContentSelectors:G,decls:5,vars:8,consts:[["type","file",3,"id","multiple","accept","disabled","change"],["fileInput",""],[4,"ngIf"]],template:function(mt,zt){1&mt&&(e.F$t(x),e.TgZ(0,"input",0,1),e.NdJ("change",function($t){return zt._onFilesSelected($t)}),e.qZA(),e.YNc(2,z,1,0,"ng-content",2),e.Hsn(3),e.Hsn(4,1)),2&mt&&(e.Q6J("id",zt.id)("multiple",zt.multiple)("accept",zt.accept)("disabled",zt.disabled),e.uIk("aria-label",zt.ariaLabel)("aria-labelledby",zt.ariaLabelledby)("aria-describedby",zt.ariaDescribedBy),e.xp6(2),e.Q6J("ngIf",!zt._hasPreviews))},dependencies:[R.O5],styles:["[_nghost-%COMP%]{display:flex;align-items:center;height:180px;background:#fff;cursor:pointer;color:#717386;border:2px dashed #717386;border-radius:5px;font-size:16px;overflow-x:auto}.ngx-dz-hovered[_nghost-%COMP%]{border-style:solid}.ngx-dz-disabled[_nghost-%COMP%]{opacity:.5;cursor:no-drop;pointer-events:none}.expandable[_nghost-%COMP%]{overflow:hidden;height:unset;min-height:180px;flex-wrap:wrap}.unclickable[_nghost-%COMP%]{cursor:default}[_nghost-%COMP%] ngx-dropzone-label{text-align:center;z-index:10;margin:10px auto}[_nghost-%COMP%] input[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}[_nghost-%COMP%] input[_ngcontent-%COMP%]:focus + ngx-dropzone-label{outline:1px dotted #000;outline:-webkit-focus-ring-color auto 5px}"]}),ze})(),ut=(()=>{class ze extends Xt{constructor(mt){super(mt),this.defaultImgLoading="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiByZ2IoMjQxLCAyNDIsIDI0Mykgbm9uZSByZXBlYXQgc2Nyb2xsIDAlIDAlOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjIyNHB4IiBoZWlnaHQ9IjIyNHB4IiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgo8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIxNCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2U9IiM4NWEyYjYiIHN0cm9rZS1kYXNoYXJyYXk9IjIxLjk5MTE0ODU3NTEyODU1MiAyMS45OTExNDg1NzUxMjg1NTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+CiAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGR1cj0iMS4xNjI3OTA2OTc2NzQ0MTg0cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGtleVRpbWVzPSIwOzEiIHZhbHVlcz0iMCA1MCA1MDszNjAgNTAgNTAiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KPC9jaXJjbGU+CjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjEwIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZT0iI2JiY2VkZCIgc3Ryb2tlLWRhc2hhcnJheT0iMTUuNzA3OTYzMjY3OTQ4OTY2IDE1LjcwNzk2MzI2Nzk0ODk2NiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjE1LjcwNzk2MzI2Nzk0ODk2NiIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj4KICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgZHVyPSIxLjE2Mjc5MDY5NzY3NDQxODRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIga2V5VGltZXM9IjA7MSIgdmFsdWVzPSIwIDUwIDUwOy0zNjAgNTAgNTAiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KPC9jaXJjbGU+CjwhLS0gW2xkaW9dIGdlbmVyYXRlZCBieSBodHRwczovL2xvYWRpbmcuaW8vIC0tPjwvc3ZnPg==",this.imageSrc=this.sanitizer.bypassSecurityTrustUrl(this.defaultImgLoading)}set file(mt){this._file=mt,this.renderImage()}get file(){return this._file}ngOnInit(){this.renderImage()}renderImage(){this.readFile().then(mt=>setTimeout(()=>this.imageSrc=mt)).catch(mt=>console.error(mt))}}return ze.\u0275fac=function(mt){return new(mt||ze)(e.Y36(me.H7))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["ngx-dropzone-image-preview"]],inputs:{file:"file"},features:[e._Bn([{provide:Xt,useExisting:ze}]),e.qOj],ngContentSelectors:Te,decls:3,vars:2,consts:[[3,"src"],[3,"click",4,"ngIf"],[3,"click"]],template:function(mt,zt){1&mt&&(e.F$t(ae),e._UZ(0,"img",0),e.Hsn(1),e.YNc(2,de,1,0,"ngx-dropzone-remove-badge",1)),2&mt&&(e.Q6J("src",zt.imageSrc,e.LSH),e.xp6(2),e.Q6J("ngIf",zt.removable))},dependencies:[lt,R.O5],styles:["[_nghost-%COMP%]{min-width:unset!important;max-width:unset!important;padding:0!important}[_nghost-%COMP%]:hover img[_ngcontent-%COMP%], [_nghost-%COMP%]:focus img[_ngcontent-%COMP%]{opacity:.7}[_nghost-%COMP%]:hover ngx-dropzone-remove-badge[_ngcontent-%COMP%], [_nghost-%COMP%]:focus ngx-dropzone-remove-badge[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] ngx-dropzone-remove-badge[_ngcontent-%COMP%]{opacity:0}
1[_nghost-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;border-radius:5px;opacity:.8}[_nghost-%COMP%] ngx-dropzone-label{position:absolute;overflow-wrap:break-word}"]}),ze})(),it=(()=>{class ze{}return ze.\u0275fac=function(mt){return new(mt||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[R.ez]]}),ze})()},805:(wn,bt,D)=>{"use strict";D.d(bt,{F0:()=>Mt,b4:()=>Te,iZ:()=>G,jx:()=>sn,m8:()=>Xt,ws:()=>se});var g=D(4650),e=D(7579),R=D(982),me=D(6895);let ae=(()=>{class fe{}return fe.STARTS_WITH="startsWith",fe.CONTAINS="contains",fe.NOT_CONTAINS="notContains",fe.ENDS_WITH="endsWith",fe.EQUALS="equals",fe.NOT_EQUALS="notEquals",fe.IN="in",fe.LESS_THAN="lt",fe.LESS_THAN_OR_EQUAL_TO="lte",fe.GREATER_THAN="gt",fe.GREATER_THAN_OR_EQUAL_TO="gte",fe.BETWEEN="between",fe.IS="is",fe.IS_NOT="isNot",fe.BEFORE="before",fe.AFTER="after",fe.DATE_IS="dateIs",fe.DATE_IS_NOT="dateIsNot",fe.DATE_BEFORE="dateBefore",fe.DATE_AFTER="dateAfter",fe})(),Te=(()=>{class fe{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[ae.STARTS_WITH,ae.CONTAINS,ae.NOT_CONTAINS,ae.ENDS_WITH,ae.EQUALS,ae.NOT_EQUALS],numeric:[ae.EQUALS,ae.NOT_EQUALS,ae.LESS_THAN,ae.LESS_THAN_OR_EQUAL_TO,ae.GREATER_THAN,ae.GREATER_THAN_OR_EQUAL_TO],date:[ae.DATE_IS,ae.DATE_IS_NOT,ae.DATE_BEFORE,ae.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new e.x,this.translationObserver=this.translationSource.asObservable()}getTranslation(Ye){return this.translation[Ye]}setTranslation(Ye){this.translation={...this.translation,...Ye},this.translationSource.next(this.translation)}}return fe.\u0275fac=function(Ye){return new(Ye||fe)},fe.\u0275prov=g.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),se=(()=>{class fe{}return fe.STARTS_WITH="startsWith",fe.CONTAINS="contains",fe.NOT_CONTAINS="notContains",fe.ENDS_WITH="endsWith",fe.EQUALS="equals",fe.NOT_EQUALS="notEquals",fe.NO_FILTER="noFilter",fe.LT="lt",fe.LTE="lte",fe.GT="gt",fe.GTE="gte",fe.IS="is",fe.IS_NOT="isNot",fe.BEFORE="before",fe.AFTER="after",fe.CLEAR="clear",fe.APPLY="apply",fe.MATCH_ALL="matchAll",fe.MATCH_ANY="matchAny",fe.ADD_RULE="addRule",fe.REMOVE_RULE="removeRule",fe.ACCEPT="accept",fe.REJECT="reject",fe.CHOOSE="choose",fe.UPLOAD="upload",fe.CANCEL="cancel",fe.DAY_NAMES="dayNames",fe.DAY_NAMES_SHORT="dayNamesShort",fe.DAY_NAMES_MIN="dayNamesMin",fe.MONTH_NAMES="monthNames",fe.MONTH_NAMES_SHORT="monthNamesShort",fe.FIRST_DAY_OF_WEEK="firstDayOfWeek",fe.TODAY="today",fe.WEEK_HEADER="weekHeader",fe.WEAK="weak",fe.MEDIUM="medium",fe.STRONG="strong",fe.PASSWORD_PROMPT="passwordPrompt",fe.EMPTY_MESSAGE="emptyMessage",fe.EMPTY_FILTER_MESSAGE="emptyFilterMessage",fe})(),G=(()=>{class fe{constructor(){this.filters={startsWith:(Ye,it,ze)=>{if(null==it||""===it.trim())return!0;if(null==Ye)return!1;let xt=R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze);return R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze).slice(0,xt.length)===xt},contains:(Ye,it,ze)=>{if(null==it||"string"==typeof it&&""===it.trim())return!0;
1if(null==Ye)return!1;let xt=R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze);return-1!==R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze).indexOf(xt)},notContains:(Ye,it,ze)=>{if(null==it||"string"==typeof it&&""===it.trim())return!0;if(null==Ye)return!1;let xt=R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze);return-1===R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze).indexOf(xt)},endsWith:(Ye,it,ze)=>{if(null==it||""===it.trim())return!0;if(null==Ye)return!1;let xt=R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze),mt=R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze);return-1!==mt.indexOf(xt,mt.length-xt.length)},equals:(Ye,it,ze)=>null==it||"string"==typeof it&&""===it.trim()||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()===it.getTime():R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze)==R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze)),notEquals:(Ye,it,ze)=>!(null==it||"string"==typeof it&&""===it.trim()||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()===it.getTime():R.gb.removeAccents(Ye.toString()).toLocaleLowerCase(ze)==R.gb.removeAccents(it.toString()).toLocaleLowerCase(ze))),in:(Ye,it)=>{if(null==it||0===it.length)return!0;for(let ze=0;ze<it.length;ze++)if(R.gb.equals(Ye,it[ze]))return!0;return!1},between:(Ye,it)=>null==it||null==it[0]||null==it[1]||null!=Ye&&(Ye.getTime?it[0].getTime()<=Ye.getTime()&&Ye.getTime()<=it[1].getTime():it[0]<=Ye&&Ye<=it[1]),lt:(Ye,it,ze)=>null==it||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()<it.getTime():Ye<it),lte:(Ye,it,ze)=>null==it||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()<=it.getTime():Ye<=it),gt:(Ye,it,ze)=>null==it||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()>it.getTime():Ye>it),gte:(Ye,it,ze)=>null==it||null!=Ye&&(Ye.getTime&&it.getTime?Ye.getTime()>=it.getTime():Ye>=it),is:(Ye,it,ze)=>this.filters.equals(Ye,it,ze),isNot:(Ye,it,ze)=>this.filters.notEquals(Ye,it,ze),before:(Ye,it,ze)=>this.filters.lt(Ye,it,ze),after:(Ye,it,ze)=>this.filters.gt(Ye,it,ze),dateIs:(Ye,it)=>null==it||null!=Ye&&Ye.toDateString()===it.toDateString(),dateIsNot:(Ye,it)=>null==it||null!=Ye&&Ye.toDateString()!==it.toDateString(),dateBefore:(Ye,it)=>null==it||null!=Ye&&Ye.getTime()<it.getTime(),dateAfter:(Ye,it)=>null==it||null!=Ye&&Ye.getTime()>it.getTime()}}filter(Ye,it,ze,xt,mt){let zt=[];if(Ye)for(let pn of Ye)for(let $t of it){let Vn=R.gb.resolveFieldData(pn,$t);if(this.filters[xt](Vn,ze,mt)){zt.push(pn);break}}return zt}register(Ye,it){this.filters[Ye]=it}}return fe.\u0275fac=function(Ye){return new(Ye||fe)},fe.\u0275prov=g.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),Mt=(()=>{class fe{constructor(){this.clickSource=new e.x,this.clickObservable=this.clickSource.asObservable()}add(Ye){Ye&&this.clickSource.next(Ye)}}return fe.\u0275fac=function(Ye){return new(Ye||fe)},fe.\u0275prov=g.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),sn=(()=>{class fe{constructor(Ye){this.template=Ye}getType(){return this.name}}return fe.\u0275fac=function(Ye){return new(Ye||fe)(g.Y36(g.Rgc))},fe.\u0275dir=g.lG2({type:fe,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),fe})(),Xt=(()=>{class fe{}return fe.\u0275fac=function(Ye){return new(Ye||fe)},fe.\u0275mod=g.oAB({type:fe}),fe.\u0275inj=g.cJS({imports:[[me.ez]]}),fe})()},97:(wn,bt,D)=>{"use strict";D.d(bt,{Lt:()=>Ze,kW:()=>Oe});var g=D(6270),e=D(4650),R=D(7340),me=D(6895),ve=D(805);let ae=(()=>{class P{static addClass(O,Q){O.classList?O.classList.add(Q):O.className+=" "+Q}static addMultipleClasses(O,Q){if(O.classList){let ke=Q.trim().split(" ");for(let De=0;De<ke.length;De++)O.classList.add(ke[De])}else{let ke=Q.split(" ");for(let De=0;De<ke.length;De++)O.className+=" "+ke[De]}}static removeClass(O,Q){O.classList?O.classList.remove(Q):O.className=O.className.replace(new RegExp("(^|\\b)"+Q.split(" ").join("|")+"(\\b|$)","gi")," ")}static hasClass(O,Q){return O.classList?O.classList.contains(Q):new RegExp("(^| )"+Q+"( |$)","gi").test(O.className)}static siblings(O){return Array.prototype.filter.call(O.parentNode.children,function(Q){return Q!==O})}static find(O,Q){return Array.from(O.querySelectorAll(Q))}static findSingle(O,Q){return O?O.querySelector(Q):null}static index(O){let Q=O.parentNode.childNodes,ke=0;for(var De=0;De<Q.length;De++){if(Q[De]==O)return ke;1==Q[De].nodeType&&ke++}return-1}static indexWithinGroup(O,Q){let ke=O.parentNode?O.parentNode.childNodes:[],De=0;for(var ye=0;ye<ke.length;ye++){if(ke[ye]==O)return De;ke[ye].attributes&&ke[ye].attributes[Q]&&1==ke[ye].nodeType&&De++}return-1}static relativePosition(O,Q){let ke=O.offsetParent?{width:O.offsetWidth,height:O.offsetHeight}:this.getHiddenElementDimensions(O);const De=Q.offsetHeight,ye=Q.getBoundingClientRect(),Je=this.getViewport();let wt,on;ye.top+De+ke.height>Je.height?(wt=-1*ke.height,O.style.transformOrigin="bottom",ye.top+wt<0&&(wt=-1*ye.top)):(wt=De,O.style.transformOrigin="top"),on=ke.width>Je.width?-1*ye.left:ye.left+ke.width>Je.width?-1*(ye.left+ke.width-Je.width):0,O.style.top=wt+"px",O.style.left=on+"px"}static absolutePosition(O,Q){let _e,Tt,ke=O.offsetParent?{width:O.offsetWidth,height:O.offsetHeight}:this.getHiddenElementDimensions(O),De=ke.height,ye=ke.width,Je=Q.offsetHeight,wt=Q.offsetWidth,on=Q.getBoundingClientRect(),st=this.getWindowScrollTop(),Ee=this.getWindowScrollLeft(),V=this.getViewport();on.top+Je+De>V.height?(_e=on.top+st-De,O.style.transformOrigin="bottom",_e<0&&(_e=st)):(_e=Je+on.top+st,O.style.transformOrigin="top"),Tt=on.left+ye>V.width?Math.max(0,on.left+Ee+wt-ye):on.left+Ee,O.style.top=_e+"px",O.style.left=Tt+"px"}static getParents(O,Q=[]){return null===O.parentNode?Q:this.getParents(O.parentNode,Q.concat([O.parentNode]))}static getScrollableParents(O){let Q=[];if(O){let ke=this.getParents(O);const De=/(auto|scroll)/,ye=Je=>{let wt=window.getComputedStyle(Je,null);return De.test(wt.getPropertyValue("overflow"))||De.test(wt.getPropertyValue("overflowX"))||De.test(wt.getPropertyValue("overflowY"))};for(let Je of ke){let wt=1===Je.nodeType&&Je.dataset.scrollselectors;if(wt){let on=wt.split(",");for(let st of on){let Ee=this.findSingle(Je,st);Ee&&ye(Ee)&&Q.push(Ee)}}9!==Je.nodeType&&ye(Je)&&Q.push(Je)}}return Q}static getHiddenElementOuterHeight(O){O.style.visibility="hidden",O.style.display="block";let Q=O.offsetHeight;return O.style.display="none",O.style.visibility="visible",Q}static getHiddenElementOuterWidth(O){O.style.visibility="hidden",O.style.display="block";let Q=O.offsetWidth;return O.style.display="none",O.style.visibility="visible",Q}static getHiddenElementDimensions(O){let Q={};return O.style.visibility="hidden",O.style.display="block",Q.width=O.offsetWidth,Q.height=O.offsetHeight,O.style.display="none",O.style.visibility="visible",Q}static scrollInView(O,Q){let ke=getComputedStyle(O).getPropertyValue("borderTopWidth"),De=ke?parseFloat(ke):0,ye=getComputedStyle(O).getPropertyValue("paddingTop"),Je=ye?parseFloat(ye):0,wt=O.getBoundingClientRect(),st=Q.getBoundingClientRect().top+document.body.scrollTop-(wt.top+document.body.scrollTop)-De-Je,Ee=O.scrollTop,V=O.clientHeight,_e=this.getOuterHeight(Q);st<0?O.scrollTop=Ee+st:st+_e>V&&(O.scrollTop=Ee+st-V+_e)}static fadeIn(O,Q){O.style.opacity=0;let ke=+new Date,De=0,ye=function(){De=+O.style.opacity.replace(",",".")+((new Date).getTime()-ke)/Q,O.style.opacity=De,ke=+new Date,+De<1&&(window.requestAnimationFrame&&requestAnimationFrame(ye)||setTimeout(ye,16))};ye()}static fadeOut(O,Q){var ke=1,Je=50/Q;let wt=setInterval(()=>{(ke-=Je)<=0&&(ke=0,clearInterval(wt)),O.style.opacity=ke},50)}
vendor: 5,884 bytes, line 1
1static getWindowScrollTop(){let O=document.documentElement;return(window.pageYOffset||O.scrollTop)-(O.clientTop||0)}static getWindowScrollLeft(){let O=document.documentElement;return(window.pageXOffset||O.scrollLeft)-(O.clientLeft||0)}static matches(O,Q){var ke=Element.prototype;return(ke.matches||ke.webkitMatchesSelector||ke.mozMatchesSelector||ke.msMatchesSelector||function(ye){return-1!==[].indexOf.call(document.querySelectorAll(ye),this)}).call(O,Q)}static getOuterWidth(O,Q){let ke=O.offsetWidth;if(Q){let De=getComputedStyle(O);ke+=parseFloat(De.marginLeft)+parseFloat(De.marginRight)}return ke}static getHorizontalPadding(O){let Q=getComputedStyle(O);return parseFloat(Q.paddingLeft)+parseFloat(Q.paddingRight)}static getHorizontalMargin(O){let Q=getComputedStyle(O);return parseFloat(Q.marginLeft)+parseFloat(Q.marginRight)}static innerWidth(O){let Q=O.offsetWidth,ke=getComputedStyle(O);return Q+=parseFloat(ke.paddingLeft)+parseFloat(ke.paddingRight),Q}static width(O){let Q=O.offsetWidth,ke=getComputedStyle(O);return Q-=parseFloat(ke.paddingLeft)+parseFloat(ke.paddingRight),Q}static getInnerHeight(O){let Q=O.offsetHeight,ke=getComputedStyle(O);return Q+=parseFloat(ke.paddingTop)+parseFloat(ke.paddingBottom),Q}static getOuterHeight(O,Q){let ke=O.offsetHeight;if(Q){let De=getComputedStyle(O);ke+=parseFloat(De.marginTop)+parseFloat(De.marginBottom)}return ke}static getHeight(O){let Q=O.offsetHeight,ke=getComputedStyle(O);return Q-=parseFloat(ke.paddingTop)+parseFloat(ke.paddingBottom)+parseFloat(ke.borderTopWidth)+parseFloat(ke.borderBottomWidth),Q}static getWidth(O){let Q=O.offsetWidth,ke=getComputedStyle(O);return Q-=parseFloat(ke.paddingLeft)+parseFloat(ke.paddingRight)+parseFloat(ke.borderLeftWidth)+parseFloat(ke.borderRightWidth),Q}static getViewport(){let O=window,Q=document,ke=Q.documentElement,De=Q.getElementsByTagName("body")[0];return{width:O.innerWidth||ke.clientWidth||De.clientWidth,height:O.innerHeight||ke.clientHeight||De.clientHeight}}static getOffset(O){var Q=O.getBoundingClientRect();return{top:Q.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:Q.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(O,Q){let ke=O.parentNode;if(!ke)throw"Can't replace element";return ke.replaceChild(Q,O)}static getUserAgent(){return navigator.userAgent}static isIE(){var O=window.navigator.userAgent;return O.indexOf("MSIE ")>0||(O.indexOf("Trident/")>0?(O.indexOf("rv:"),!0):O.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(O,Q){if(this.isElement(Q))Q.appendChild(O);else{if(!Q.el||!Q.el.nativeElement)throw"Cannot append "+Q+" to "+O;Q.el.nativeElement.appendChild(O)}}static removeChild(O,Q){if(this.isElement(Q))Q.removeChild(O);else{if(!Q.el||!Q.el.nativeElement)throw"Cannot remove "+O+" from "+Q;Q.el.nativeElement.removeChild(O)}}static removeElement(O){"remove"in Element.prototype?O.remove():O.parentNode.removeChild(O)}static isElement(O){return"object"==typeof HTMLElement?O instanceof HTMLElement:O&&"object"==typeof O&&null!==O&&1===O.nodeType&&"string"==typeof O.nodeName}static calculateScrollbarWidth(O){if(O){let Q=getComputedStyle(O);return O.offsetWidth-O.clientWidth-parseFloat(Q.borderLeftWidth)-parseFloat(Q.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let Q=document.createElement("div");Q.className="p-scrollbar-measure",document.body.appendChild(Q);let ke=Q.offsetWidth-Q.clientWidth;return document.body.removeChild(Q),this.calculatedScrollbarWidth=ke,ke}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let O=document.createElement("div");O.className="p-scrollbar-measure",document.body.appendChild(O);let Q=O.offsetHeight-O.clientHeight;return document.body.removeChild(O),this.calculatedScrollbarWidth=Q,Q}static invokeElementMethod(O,Q,ke){O[Q].apply(O,ke)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let O=this.resolveUserAgent();this.browser={},O.browser&&(this.browser[O.browser]=!0,this.browser.version=O.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let O=navigator.userAgent.toLowerCase(),Q=/(chrome)[ \/]([\w.]+)/.exec(O)||/(webkit)[ \/]([\w.]+)/.exec(O)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(O)||/(msie) ([\w.]+)/.exec(O)||O.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(O)||[];return{browser:Q[1]||"",version:Q[2]||"0"}}static isInteger(O){return Number.isInteger?Number.isInteger(O):"number"==typeof O&&isFinite(O)&&Math.floor(O)===O}static isHidden(O){return null===O.offsetParent}static getFocusableElements(O){let Q=P.find(O,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not
1([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),ke=[];for(let De of Q)"none"!=getComputedStyle(De).display&&"hidden"!=getComputedStyle(De).visibility&&ke.push(De);return ke}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return P.zindex=1e3,P.calculatedScrollbarWidth=null,P.calculatedScrollbarHeight=null,P})();class Te{constructor(le,O=(()=>{})){this.element=le,this.listener=O}bindScrollListener(){this.scrollableParents=ae.getScrollableParents(this.element);for(let le=0;le<this.scrollableParents.length;le++)this.scrollableParents[le].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let le=0;le<this.scrollableParents.length;le++)this.scrollableParents[le].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}var se=D(982),z=D(4006);let x=(()=>{class P{constructor(O,Q,ke){this.el=O,this.zone=Q,this.config=ke,this.escape=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(O){this._disabled=O,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let O=this.getTarget(this.el.nativeElement);O.addEventListener("focus",this.focusListener),O.addEventListener("blur",this.blurListener)}})}ngOnChanges(O){O.tooltipPosition&&this.setOption({tooltipPosition:O.tooltipPosition.currentValue}),O.tooltipEvent&&this.setOption({tooltipEvent:O.tooltipEvent.currentValue}),O.appendTo&&this.setOption({appendTo:O.appendTo.currentValue}),O.positionStyle&&this.setOption({positionStyle:O.positionStyle.currentValue}),O.tooltipStyleClass&&this.setOption({tooltipStyleClass:O.tooltipStyleClass.currentValue}),O.tooltipZIndex&&this.setOption({tooltipZIndex:O.tooltipZIndex.currentValue}),O.escape&&this.setOption({escape:O.escape.currentValue}),O.showDelay&&this.setOption({showDelay:O.showDelay.currentValue}),O.hideDelay&&this.setOption({hideDelay:O.hideDelay.currentValue}),O.life&&this.setOption({life:O.life.currentValue}),O.positionTop&&this.setOption({positionTop:O.positionTop.currentValue}),O.positionLeft&&this.setOption({positionLeft:O.positionLeft.currentValue}),O.disabled&&this.setOption({disabled:O.disabled.currentValue}),O.text&&(this.setOption({tooltipLabel:O.text.currentValue}),this.active&&(O.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),O.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...O.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(O){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(O){this.deactivate()}onFocus(O){this.activate()}onBlur(O){this.deactivate()}onClick(O){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let O=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},O)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let O=document.createElement("div");O.className="p-tooltip-arrow",this.container.appendChild(O),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?ae.appendChild(this.container,this.el.nativeElement):ae.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block"}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),ae.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?se.P9.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&se.P9.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let O=this.el.nativeElement.getBoundingClientRect();return{left:O.left+ae.getWindowScrollLeft(),top:O.top+ae.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let O=this.getHostOffset(),Q=O.left+ae.getOuterWidth(this.el.nativeElement),ke=O.to
1p+(ae.getOuterHeight(this.el.nativeElement)-ae.getOuterHeight(this.container))/2;this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=ke+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let O=this.getHostOffset(),Q=O.left-ae.getOuterWidth(this.container),ke=O.top+(ae.getOuterHeight(this.el.nativeElement)-ae.getOuterHeight(this.container))/2;this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=ke+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let O=this.getHostOffset(),Q=O.left+(ae.getOuterWidth(this.el.nativeElement)-ae.getOuterWidth(this.container))/2,ke=O.top-ae.getOuterHeight(this.container);this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=ke+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let O=this.getHostOffset(),Q=O.left+(ae.getOuterWidth(this.el.nativeElement)-ae.getOuterWidth(this.container))/2,ke=O.top+ae.getOuterHeight(this.el.nativeElement);this.container.style.left=Q+this.getOption("positionLeft")+"px",this.container.style.top=ke+this.getOption("positionTop")+"px"}setOption(O){this._tooltipOptions={...this._tooltipOptions,...O}}getOption(O){return this._tooltipOptions[O]}getTarget(O){return ae.hasClass(O,"p-inputwrapper")?ae.findSingle(O,"input"):O}preAlign(O){this.container.style.left="-999px",this.container.style.top="-999px";let Q="p-tooltip p-component p-tooltip-"+O;this.container.className=this.getOption("tooltipStyleClass")?Q+" "+this.getOption("tooltipStyleClass"):Q}isOutOfBounds(){let O=this.container.getBoundingClientRect(),Q=O.top,ke=O.left,De=ae.getOuterWidth(this.container),ye=ae.getOuterHeight(this.container),Je=ae.getViewport();return ke+De>Je.width||ke<0||Q<0||Q+ye>Je.height}onWindowResize(O){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Te(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let O=this.getTarget(this.el.nativeElement);O.removeEventListener("focus",this.focusListener),O.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):ae.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&se.P9.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return P.\u0275fac=function(O){return new(O||P)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ve.b4))},P.\u0275dir=e.lG2({type:P,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[e.TTD]}),P})(),G=(()=>{class P{}return P.\u0275fac=function(O){return new(O||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[me.ez]]}),P})(),de=(()=>{class P{constructor(O,Q,ke){this.el=O,this.zone=Q,this.config=ke}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(O){let Q=this.getInk();if(!Q||"none"===getComputedStyle(Q,null).display)return;if(ae.removeClass(Q,"p-ink-active"),!ae.getHeight(Q)&&!ae.getWidth(Q)){let Je=Math.max(ae.getOuterWidth(this.el.nativeElement),ae.getOuterHeight(this.el.nativeElement));Q.style.height=Je+"px",Q.style.width=Je+"px"}let ke=ae.getOffset(this.el.nativeElement),De=O.pageX-ke.left+document.body.scrollTop-ae.getWidth(Q)/2,ye=O.pageY-ke.top+document.body.scrollLeft-ae.getHeight(Q)/2;Q.style.top=ye+"px",Q.style.left=De+"px",ae.addClass(Q,"p-ink-active")}getInk(){for(let O=0;O<this.el.nativeElement.children.length;O++)if(-1!==this.el.nativeElement.children[O].className.indexOf("p-ink"))return this.el.nativeElement.children[O];return null}resetInk(){let O=this.getInk();O&&ae.removeClass(O,"p-ink-active")}onAnimationEnd(O){ae.removeClass(O.currentTarget,"p-ink-active")}create(){let O=document.createElement("span");O.className="p-ink",this.el.nativeElement.appendChild(O),this.animationListener=this.onAnimationEnd.bind(this),O.addEventListener("animationend",this.animationListener)}remove(){let O=this.getInk();O&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),O.removeEventListener("animationend",this.animationListener),ae.removeElement(O))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return P.\u0275fac=function(O){return new(O||P)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ve.b4,8))},P.\u0275dir=e.lG2({type:P,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),P})(),dt=(()=>{class P{}return P.\u0275fac=function(O){return new(O||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[me.ez]]}),P})();function Mt(P,le){if(1&P&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&P){const O=e.oxw();e.xp6(1),e.Oqu(O.label||"empty")}}function We(P,le){1&P&&e.GkF(0)}const At=function(P){return{height:P}},qe=function(P,le){return{"p-dropdown-item":!0,"p-highlight":P,"p-disabled":le}},lt=function(P){return{$implicit:P}},sn=["container"],Xt=["filter"],ot=["in"],fe=["editableInput"];function ut(P,le){if(1&P&&(e.ynx(0),e._uU(1),e.BQk()),2&P){const O=e.oxw(2);e.xp6(1),e.Oqu(O.label||"empty")}}function Ye(P,le){1&P&&e.GkF(0)}
1const it=function(P){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":P}};function ze(P,le){if(1&P&&(e.TgZ(0,"span",12),e.YNc(1,ut,2,1,"ng-container",13),e.YNc(2,Ye,1,0,"ng-container",14),e.qZA()),2&P){const O=e.oxw();e.Q6J("ngClass",e.VKq(9,it,null==O.label||0===O.label.length))("pTooltip",O.tooltip)("tooltipPosition",O.tooltipPosition)("positionStyle",O.tooltipPositionStyle)("tooltipStyleClass",O.tooltipStyleClass),e.uIk("id",O.labelId),e.xp6(1),e.Q6J("ngIf",!O.selectedItemTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",O.selectedItemTemplate)("ngTemplateOutletContext",e.VKq(11,lt,O.selectedOption))}}const xt=function(P){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":P}};function mt(P,le){if(1&P&&(e.TgZ(0,"span",15),e._uU(1),e.qZA()),2&P){const O=e.oxw();e.Q6J("ngClass",e.VKq(2,xt,null==O.placeholder||0===O.placeholder.length)),e.xp6(1),e.Oqu(O.placeholder||"empty")}}function zt(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"input",16,17),e.NdJ("click",function(){e.CHM(O);const ke=e.oxw();return e.KtG(ke.onEditableInputClick())})("input",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onEditableInputChange(ke))})("focus",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onEditableInputFocus(ke))})("blur",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onInputBlur(ke))}),e.qZA()}if(2&P){const O=e.oxw();e.Q6J("disabled",O.disabled),e.uIk("maxlength",O.maxlength)("placeholder",O.placeholder)("aria-expanded",O.overlayVisible)}}function pn(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"i",18),e.NdJ("click",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.clear(ke))}),e.qZA()}}function $t(P,le){1&P&&e.GkF(0)}function Vn(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"div",26)(1,"div",27),e.NdJ("click",function(ke){return ke.stopPropagation()}),e.TgZ(2,"input",28,29),e.NdJ("keydown.enter",function(ke){return ke.preventDefault()})("keydown",function(ke){e.CHM(O);const De=e.oxw(2);return e.KtG(De.onKeydown(ke,!1))})("input",function(ke){e.CHM(O);const De=e.oxw(2);return e.KtG(De.onFilterInputChange(ke))}),e.qZA(),e._UZ(4,"span",30),e.qZA()()}if(2&P){const O=e.oxw(2);e.xp6(2),e.Q6J("value",O.filterValue||""),e.uIk("placeholder",O.filterPlaceholder)("aria-label",O.ariaFilterLabel)("aria-activedescendant",O.overlayVisible?"p-highlighted-option":O.labelId)}}function Ut(P,le){if(1&P&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&P){const O=e.oxw().$implicit,Q=e.oxw(3);e.xp6(1),e.Oqu(Q.getOptionGroupLabel(O)||"empty")}}function gn(P,le){1&P&&e.GkF(0)}function tt(P,le){1&P&&e.GkF(0)}const Zt=function(P,le){return{$implicit:P,selectedOption:le}};function St(P,le){if(1&P&&(e.TgZ(0,"li",32),e.YNc(1,Ut,2,1,"span",13),e.YNc(2,gn,1,0,"ng-container",14),e.qZA(),e.YNc(3,tt,1,0,"ng-container",14)),2&P){const O=le.$implicit;e.oxw(2);const Q=e.MAs(8),ke=e.oxw();e.xp6(1),e.Q6J("ngIf",!ke.groupTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",ke.groupTemplate)("ngTemplateOutletContext",e.VKq(5,lt,O)),e.xp6(1),e.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",e.WLB(7,Zt,ke.getOptionGroupChildren(O),ke.selectedOption))}}function $e(P,le){if(1&P&&(e.ynx(0),e.YNc(1,St,4,10,"ng-template",31),e.BQk()),2&P){const O=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",O.optionsToDisplay)}}function je(P,le){1&P&&e.GkF(0)}function ie(P,le){if(1&P&&(e.ynx(0),e.YNc(1,je,1,0,"ng-container",14),e.BQk()),2&P){e.oxw();const O=e.MAs(8),Q=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",O)("ngTemplateOutletContext",e.WLB(2,Zt,Q.optionsToDisplay,Q.selectedOption))}}function ft(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"p-dropdownItem",35),e.NdJ("onClick",function(ke){e.CHM(O);const De=e.oxw(4);return e.KtG(De.onItemClick(ke))}),e.qZA()}if(2&P){const O=le.$implicit,Q=e.oxw(2).selectedOption,ke=e.oxw(2);e.Q6J("option",O)("selected",Q==O)("label",ke.getOptionLabel(O))("disabled",ke.isOptionDisabled(O))("template",ke.itemTemplate)}}function Wt(P,le){if(1&P&&(e.ynx(0),e.YNc(1,ft,1,5,"ng-template",31),e.BQk()),2&P){const O=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",O)}}function Dt(P,le){if(1&P){const O=e.EpF();e.ynx(0),e.TgZ(1,"p-dropdownItem",35),e.NdJ("onClick",function(ke){e.CHM(O);const De=e.oxw(5);return e.KtG(De.onItemClick(ke))}),e.qZA(),e.BQk()}if(2&P){const O=le.$implicit,Q=e.oxw(3).selectedOption,ke=e.oxw(2);e.xp6(1),e.Q6J("option",O)("selected",Q==O)("label",ke.getOptionLabel(O))("disabled",ke.isOptionDisabled(O))("template",ke.itemTemplate)}}function hn(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"cdk-virtual-scroll-viewport",37,38),e.NdJ("scrolledIndexChange",function(){e.CHM(O);const ke=e.oxw(4);return e.KtG(ke.scrollToSelectedVirtualScrollElement())}),e.YNc(2,Dt,2,5,"ng-container",39),e.qZA()}if(2&P){const O=e.oxw(2).$implicit,Q=e.oxw(2);e.Q6J("ngStyle",e.VKq(3,At,Q.scrollHeight))("itemSize",Q.itemSize),e.xp6(2),e.Q6J("cdkVirtualForOf",O)}}function Gn(P,le){if(1&P&&e.YNc(0,hn,3,5,"cdk-virtual-scroll-viewport",36),2&P){const O=e.oxw(3);e.Q6J("ngIf",O.virtualScroll&&O.optionsToDisplay&&O.optionsToDisplay.length)}}function qn(P,le){if(1&P&&(e.YNc(0,Wt,2,1,"ng-container",33),e.YNc(1,Gn,1,1,"ng-template",null,34,e.W1O)),2&P){const O=e.MAs(2),Q=e.oxw(2);e.Q6J("ngIf",!Q.virtualScroll)("ngIfElse",O)}}function kn(P,le){if(1&P&&(e.ynx(0),e._uU(1),e.BQk()),2&P){const O=e.oxw(3);e.xp6(1),e.hij(" ",O.emptyFilterMessageLabel," ")}}function ai(P,le){1&P&&e.GkF(0,null,41)}function An(P,le){if(1&P&&(e.TgZ(0,"li",40),e.YNc(1,kn,2,1,"ng-container",33),e.YNc(2,ai,2,0,"ng-container",20),e.qZA()),2&P){const O=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!O.emptyFilterTemplate&&!O.emptyTemplate)("ngIfElse",O.emptyFilter),e.xp6(1),e.Q6J("ngTemplateOutlet",O.emptyFilterTemplate||O.emptyTemplate)}}function Wn(P,le){if(1&P&&(e.ynx(0),e._uU(1),e.BQk()),2&P){const O=e.oxw(3);e.xp6(1),e.hij(" ",O.emptyMessageLabel," ")}}function Ln(P,le){1&P&&e.GkF(0,null,42)}function Hn(P,le){if(1&P&&(e.TgZ(0,"li",40),e.YNc(1,Wn,2,1,"ng-container",33),e.YNc(2,Ln,2,0,"ng-container",20),e.qZA()),2&P){const O=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!O.emptyTemplate)("ngIfElse",O.empty),e.xp6(1),e.Q6J("ngTemplateOutlet",O.emptyTemplate)}}function yi(P,le){1&P&&e.GkF(0)}const _n=function(P,le){return{showTransitionParams:P,hideTransitionParams:le}},ui=function(P){return{value:"visible",params:P}},zn=function(P){return{"p-dropdown-virtualscroll":P}};function ri(P,le){if(1&P){const O=e.EpF();e.TgZ(0,"div",19),e.NdJ("click",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onOverlayClick(ke))})("@overlayAnimation.start",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onOverlayAnimationStart(ke))})("@overlayAnimation.start",function(ke){e.CHM(O);const De=e.oxw();return e.KtG(De.onOverlayAnimationEnd(ke))}),e.YNc(1,$t,1,0,"ng-container",20),e.YNc(2,Vn,5,4,"div",21),e.TgZ(3,"div",22)(4,"ul",23),e.YNc(5,$e,2,1,"ng-container",13),e.YNc(6,ie,2,5,"ng-container",13),e.YNc(7,qn,3,2,"ng-template",null,24,e.W1O),e.YNc(9,An,3,3,"li",25),e.YNc(10,Hn,3,3,"li",25),e.qZA()(),e.YNc(11,yi,
11,0,"ng-container",20),e.qZA()}if(2&P){const O=e.oxw();e.Tol(O.panelStyleClass),e.Q6J("ngClass","p-dropdown-panel p-component")("@overlayAnimation",e.VKq(19,ui,e.WLB(16,_n,O.showTransitionOptions,O.hideTransitionOptions)))("ngStyle",O.panelStyle),e.xp6(1),e.Q6J("ngTemplateOutlet",O.headerTemplate),e.xp6(1),e.Q6J("ngIf",O.filter),e.xp6(1),e.Udp("max-height",O.virtualScroll?"auto":O.scrollHeight||"auto"),e.xp6(1),e.Q6J("ngClass",e.VKq(21,zn,O.virtualScroll)),e.uIk("id",O.listId),e.xp6(1),e.Q6J("ngIf",O.group),e.xp6(1),e.Q6J("ngIf",!O.group),e.xp6(3),e.Q6J("ngIf",O.filterValue&&O.isEmpty()),e.xp6(1),e.Q6J("ngIf",!O.filterValue&&O.isEmpty()),e.xp6(1),e.Q6J("ngTemplateOutlet",O.footerTemplate)}}const Pi=function(P,le,O,Q){return{"p-dropdown p-component":!0,"p-disabled":P,"p-dropdown-open":le,"p-focus":O,"p-dropdown-clearable":Q}},li={provide:z.JU,useExisting:(0,e.Gpc)(()=>Ze),multi:!0};let ei=(()=>{class P{constructor(){this.onClick=new e.vpe}onOptionClick(O){this.onClick.emit({originalEvent:O,option:this.option})}}return P.\u0275fac=function(O){return new(O||P)},P.\u0275cmp=e.Xpm({type:P,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(O,Q){1&O&&(e.TgZ(0,"li",0),e.NdJ("click",function(De){return Q.onOptionClick(De)}),e.YNc(1,Mt,2,1,"span",1),e.YNc(2,We,1,0,"ng-container",2),e.qZA()),2&O&&(e.Q6J("ngStyle",e.VKq(8,At,Q.itemSize+"px"))("id",Q.selected?"p-highlighted-option":"")("ngClass",e.WLB(10,qe,Q.selected,Q.disabled)),e.uIk("aria-label",Q.label)("aria-selected",Q.selected),e.xp6(1),e.Q6J("ngIf",!Q.template),e.xp6(1),e.Q6J("ngTemplateOutlet",Q.template)("ngTemplateOutletContext",e.VKq(13,lt,Q.option)))},dependencies:[de,me.PC,me.mk,me.O5,me.tP],encapsulation:2}),P})(),Ze=(()=>{class P{constructor(O,Q,ke,De,ye,Je,wt){this.el=O,this.renderer=Q,this.cd=ke,this.zone=De,this.filterService=ye,this.config=Je,this.overlayService=wt,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.onChange=new e.vpe,this.onFilter=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onClick=new e.vpe,this.onShow=new e.vpe,this.onHide=new e.vpe,this.onClear=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.viewPortOffsetTop=0,this.id=(0,se.Th)()}get disabled(){return this._disabled}set disabled(O){O&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=O,this.cd.destroyed||this.cd.detectChanges()}
1ngAfterContentInit(){this.templates.forEach(O=>{switch(O.getType()){case"item":default:this.itemTemplate=O.template;break;case"selectedItem":this.selectedItemTemplate=O.template;break;case"header":this.headerTemplate=O.template;break;case"footer":this.footerTemplate=O.template;break;case"emptyfilter":this.emptyFilterTemplate=O.template;break;case"empty":this.emptyTemplate=O.template;break;case"group":this.groupTemplate=O.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list"}get options(){return this._options}set options(O){this._options=O,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),this.selectedOption||(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(O){this._filterValue=O,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ve.ws.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ve.ws.EMPTY_FILTER_MESSAGE)}get filled(){return this.value||null!=this.value||null!=this.value}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(O){return this.optionLabel?se.gb.resolveFieldData(O,this.optionLabel):null!=O.label?O.label:O}getOptionValue(O){return this.optionValue?se.gb.resolveFieldData(O,this.optionValue):this.optionLabel||void 0===O.value?O:O.value}isOptionDisabled(O){return this.optionDisabled?se.gb.resolveFieldData(O,this.optionDisabled):void 0!==O.disabled&&O.disabled}getOptionGroupLabel(O){return this.optionGroupLabel?se.gb.resolveFieldData(O,this.optionGroupLabel):null!=O.label?O.label:O}getOptionGroupChildren(O){return this.optionGroupChildren?se.gb.resolveFieldData(O,this.optionGroupChildren):O.items}onItemClick(O){const Q=O.option;this.isOptionDisabled(Q)||(this.selectItem(O.originalEvent,Q),this.accessibleViewChild.nativeElement.focus()),setTimeout(()=>{this.hide()},150)}selectItem(O,Q){this.selectedOption!=Q&&(this.selectedOption=Q,this.value=this.getOptionValue(Q),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:O,value:this.value}),this.virtualScroll&&setTimeout(()=>{this.viewPortOffsetTop=this.viewPort?this.viewPort.measureScrollOffset():0},1))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.virtualScroll&&this.updateVirtualScrollSelectedIndex(!0),this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){if(this.virtualScroll&&this.viewPort){let Q=this.viewPort.getRenderedRange();this.updateVirtualScrollSelectedIndex(!1),(Q.start>this.virtualScrollSelectedIndex||Q.end<this.virtualScrollSelectedIndex)&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)}ae.findSingle(this.overlay,"li.p-highlight")&&ae.scrollInView(this.itemsWrapper,ae.findSingle(this.overlay,"li.p-highlight")),this.selectedOptionUpdated=!1}}writeValue(O){this.filter&&this.resetFilter(),this.value=O,this.updateSelectedOption(O),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(O){this.selectedOption=this.findOption(O,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(O){this.onModelChange=O}registerOnTouched(O){this.onModelTouched=O}setDisabledState(O){this.disabled=O,this.cd.markForCheck()}onMouseclick(O){this.disabled||this.readonly||this.isInputClick(O)||(this.onClick.emit(O),this.accessibleViewChild.nativeElement.focus(),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}onOverlayClick(O){this.overlayService.add({originalEvent:O,target:this.el.nativeElement})}isInputClick(O){return ae.hasClass(O.target,"p-dropdown-clear-icon")||O.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&O.target.isSameNode(this.editableInputViewChild.nativeElement)}isOutsideClicked(O){return!(this.el.nativeElement.isSameNode(O.target)||this.el.nativeElement.contains(O.target)||this.overlay&&this.overlay.contains(O.target))}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputClick(){this.bindDocumentClickListener()}onEditableInputFocus(O){this.focused=!0,this.hide(),this.onFocus.emit(O)}onEditableInputChange(O){this.value=O.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:O,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(O){switch(O.toState){case"visible":if(this.overlay=O.element,this.itemsWrapper=ae.findSingle(this.overlay,this.virtualScroll?".cdk-virtual-scroll-viewport":".p-dropdown-items-wrapper"),this.appendOverlay(),this.autoZIndex&&se.P9.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options&&this.options.length&&!this.virtualScroll){let ke=ae.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");ke&&ke.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(O);break;case"void":this.onOverlayHide(),this.onHide.emit(O)}}onOverlayAnimationEnd(O){"void"===O.toState&&se.P9.clear(O.element)}scrollToSelectedVirtualScrollElement(){this.virtualAutoScrolled||(this.viewPortOffsetTop?this.viewPort.scrollToOffset(this.viewPortOffsetTop):this.virtualScrollSelectedIndex>-1&&this.viewPort.scrollToIndex(this.virtualScrollSelectedIndex)),this.virtualAutoScrolled=!0}updateVirtualScrollSelectedIndex(O){this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&(O&&(this.viewPortOffsetTop=0),this.virtualScrollSelectedIndex=this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay))}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):ae.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=ae.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.virtualScroll&&(this.virtualAutoScrolled=!1),this.cd.markForCheck()}alignOverlay(){this.overlay&&(this.appendTo?ae.absolutePosition(this.overlay,this.containerViewChild.nativeElement):ae.relativePosition(this.overlay,this.containerViewChild.nativeElement))}onInputFocus(O){this.focused=!0,this.onFocus.emit(O)}onInputBlur(O){this.focused=!1,this.onBlur.emit(O),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(O){let Q;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let ke=O-1;0<=ke;ke--){let De=this.optionsToDisplay[ke];if(!this.isOptionDisabled(De)){Q=De;break}}if(!Q)for(let ke=this.optionsToDisplay.length-1;ke>=O;ke--){let De=this.optionsToDisplay[ke];if(!this.isOptionDisabled(De)){Q=De;break}}}return Q}findNextEnabledOption(O){let Q;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let ke=O+1;ke<this.optionsToDisplay.length;ke++){let De=this.optionsToDisplay[ke];if(!this.isOptionDisabled(De)){Q=De;break}}if(!Q)for(let ke=0;ke<O;ke++){let De=this.optionsToDisplay[ke];if(!this.isOptionDisabled(De)){Q=De;break}}}return Q}onKeydown(O,Q){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(O.which){case 40:if(!this.overlayVisible&&O.altKey)this.show();else if(this.group){let ke=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==ke){let De=ke.itemIndex+1;De<this.getOptionGroupChildren(this.optionsToDisplay[ke.groupIndex]).length?(this.selectItem(O,this.getOptionGroupChildren(this.optionsToDisplay[ke.groupIndex])[De]),this.selectedOptionUpdated=!0):this.optionsToDisplay[ke.groupIndex+1]&&(this.selectItem(O,this.getOptionGroupChildren(this.optionsToDisplay[ke.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(O,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let ke=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,De=this.findNextEnabledOption(ke);De&&(this.selectItem(O,De),this.selectedOptionUpdated=!0)}O.preventDefault();break;case 38:if(this.group){let ke=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==ke){let De=ke.itemIndex-1;if(De>=0)this.selectItem(O,this.getOptionGroupChildren(this.optionsToDisplay[ke.groupIndex])[De]),this.selectedOptionUpdated=!0;else if(De<0){let ye=this.optionsToDisplay[ke.groupIndex-1];ye&&(this.selectItem(O,this.getOptionGroupChildren(ye)[this.getOptionGroupChildren(ye).length-1]),this.selectedOptionUpdated=!0)}}}else{let ke=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,De=this.findPrevEnabledOption(ke);De&&(this.selectItem(O,De),this.selectedOptionUpdated=!0)}O.preventDefault();break;case 32:Q&&(this.overlayVisible?this.hide():this.show(),O.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),O.preventDefault();break;case 27:case 9:this.hide();break;default:Q&&!O.metaKey&&this.search(O)}}search(O){this.searchTimeout&&clearTimeout(this.searchTimeout);const Q=O.key;let ke;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=Q,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+Q:Q,this.group){let De=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};ke=this.searchOptionWithinGroup(De)}else{let De=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;ke=this.searchOption(++De)}ke&&!this.isOptionDisabled(ke)&&(this.selectItem(O,ke),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(O){let Q;return this.searchValue&&(Q=this.searchOptionInRange(O,this.optionsToDisplay.length),Q||(Q=this.searchOptionInRange(0,O))),Q}searchOptionInRange(O,Q){for(let ke=O;ke<Q;ke++){let De=this.optionsToDisplay[ke];if(this.getOptionLabel(De).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&
1!this.isOptionDisabled(De))return De}return null}searchOptionWithinGroup(O){if(this.searchValue){for(let ke=O.groupIndex;ke<this.optionsToDisplay.length;ke++)for(let De=O.groupIndex===ke?O.itemIndex+1:0;De<this.getOptionGroupChildren(this.optionsToDisplay[ke]).length;De++){let ye=this.getOptionGroupChildren(this.optionsToDisplay[ke])[De];if(this.getOptionLabel(ye).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(ye))return ye}for(let ke=0;ke<=O.groupIndex;ke++)for(let De=0;De<(O.groupIndex===ke?O.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[ke]).length);De++){let ye=this.getOptionGroupChildren(this.optionsToDisplay[ke])[De];if(this.getOptionLabel(ye).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(ye))return ye}}return null}findOptionIndex(O,Q){let ke=-1;if(Q)for(let De=0;De<Q.length;De++)if(null==O&&null==this.getOptionValue(Q[De])||se.gb.equals(O,this.getOptionValue(Q[De]),this.dataKey)){ke=De;break}return ke}findOptionGroupIndex(O,Q){let ke,De;if(Q)for(let ye=0;ye<Q.length&&(ke=ye,De=this.findOptionIndex(O,this.getOptionGroupChildren(Q[ye])),-1===De);ye++);return-1!==De?{groupIndex:ke,itemIndex:De}:-1}findOption(O,Q,ke){if(this.group&&!ke){let De;if(Q&&Q.length)for(let ye of Q)if(De=this.findOption(O,this.getOptionGroupChildren(ye),!0),De)break;return De}{let De=this.findOptionIndex(O,Q);return-1!=De?Q[De]:null}}onFilterInputChange(O){let Q=O.target.value;Q&&Q.length?(this._filterValue=Q,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.optionsChanged=!0,this.onFilter.emit({originalEvent:O,filter:this._filterValue})}activateFilter(){let O=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let Q=[];for(let ke of this.options){let De=this.filterService.filter(this.getOptionGroupChildren(ke),O,this.filterValue,this.filterMatchMode,this.filterLocale);De&&De.length&&Q.push({...ke,[this.optionGroupChildren]:De})}this.optionsToDisplay=Q}else this.optionsToDisplay=this.filterService.filter(this.options,O,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?ae.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ae.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",Q=>{!this.preventDocumentDefault&&this.isOutsideClicked(Q)&&(this.hide(),this.unbindDocumentClickListener()),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!ae.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Te(this.containerViewChild.nativeElement,O=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}clear(O){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:O,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(O)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.itemsWrapper=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&se.P9.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return P.\u0275fac=function(O){return new(O||P)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(ve.iZ),e.Y36(ve.b4),e.Y36(ve.F0))},P.\u0275cmp=e.Xpm({type:P,selectors:[["p-dropdown"]],contentQueries:function(O,Q,ke){if(1&O&&e.Suo(ke,ve.jx,4),2&O){let De;e.iGM(De=e.CRH())&&(Q.templates=De)}},viewQuery:function(O,Q){if(1&O&&(e.Gf(sn,5),e.Gf(Xt,5),e.Gf(ot,5),e.Gf(g.N7,5),e.Gf(fe,5)),2&O){let ke;e.iGM(ke=e.CRH())&&(Q.containerViewChild=ke.first),e.iGM(ke=e.CRH())&&(Q.filterViewChild=ke.first),e.iGM(ke=e.CRH())&&(Q.accessibleViewChild=ke.first),e.iGM(ke=e.CRH())&&(Q.viewPort=ke.first),e.iGM(ke=e.CRH())&&(Q.editableInputViewChild=ke.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(O,Q){2&O&&e.ekj("p-inputwrapper-filled",Q.filled)("p-inputwrapper-focus",Q.focused||Q.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",virtualScroll:"virtualScroll",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear"},features:[e._Bn([li])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",3,"disabled","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-in
1puttext","aria-haspopup","listbox",3,"disabled","click","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","click","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],["onOverlayAnimationEnd","",3,"ngClass","ngStyle","click"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",4,"ngIf"],[1,"p-dropdown-items-wrapper"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["itemslist",""],["class","p-dropdown-empty-message",4,"ngIf"],[1,"p-dropdown-header"],[1,"p-dropdown-filter-container",3,"click"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group"],[4,"ngIf","ngIfElse"],["virtualScrollList",""],[3,"option","selected","label","disabled","template","onClick"],[3,"ngStyle","itemSize","scrolledIndexChange",4,"ngIf"],[3,"ngStyle","itemSize","scrolledIndexChange"],["viewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"p-dropdown-empty-message"],["emptyFilter",""],["empty",""]],template:function(O,Q){1&O&&(e.TgZ(0,"div",0,1),e.NdJ("click",function(De){return Q.onMouseclick(De)}),e.TgZ(2,"div",2)(3,"input",3,4),e.NdJ("focus",function(De){return Q.onInputFocus(De)})("blur",function(De){return Q.onInputBlur(De)})("keydown",function(De){return Q.onKeydown(De,!0)}),e.qZA()(),e.YNc(5,ze,3,13,"span",5),e.YNc(6,mt,2,4,"span",6),e.YNc(7,zt,2,4,"input",7),e.YNc(8,pn,1,0,"i",8),e.TgZ(9,"div",9),e._UZ(10,"span",10),e.qZA(),e.YNc(11,ri,12,23,"div",11),e.qZA()),2&O&&(e.Tol(Q.styleClass),e.Q6J("ngClass",e.l5B(20,Pi,Q.disabled,Q.overlayVisible,Q.focused,Q.showClear&&!Q.disabled))("ngStyle",Q.style),e.xp6(3),e.Q6J("disabled",Q.disabled),e.uIk("id",Q.inputId)("placeholder",Q.placeholder)("aria-label",Q.ariaLabel)("aria-expanded",!1)("aria-labelledby",Q.ariaLabelledBy)("tabindex",Q.tabindex)("autofocus",Q.autofocus)("aria-activedescendant",Q.overlayVisible?Q.labelId:null),e.xp6(2),e.Q6J("ngIf",!Q.editable&&null!=Q.label),e.xp6(1),e.Q6J("ngIf",!Q.editable&&null==Q.label),e.xp6(1),e.Q6J("ngIf",Q.editable),e.xp6(1),e.Q6J("ngIf",null!=Q.value&&Q.showClear&&!Q.disabled),e.xp6(1),e.uIk("aria-expanded",Q.overlayVisible),e.xp6(1),e.Q6J("ngClass",Q.dropdownIcon),e.xp6(1),e.Q6J("ngIf",Q.overlayVisible))},dependencies:[ei,g.N7,me.mk,me.PC,me.O5,x,me.tP,me.sg,g.xd,g.x0],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,data:{animation:[(0,R.X$)("overlayAnimation",[(0,R.eR)(":enter",[(0,R.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,R.jt)("{{showTransitionParams}}")]),(0,R.eR)(":leave",[(0,R.jt)("{{hideTransitionParams}}",(0,R.oB)({opacity:0}
1))])])]},changeDetection:0}),P})(),Oe=(()=>{class P{}return P.\u0275fac=function(O){return new(O||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[me.ez,ve.m8,g.Cl,G,dt],ve.m8,g.Cl]}),P})()},982:(wn,bt,D)=>{"use strict";D.d(bt,{P9:()=>ve,Th:()=>R,gb:()=>g});class g{static equals(Te,se,z){return z?this.resolveFieldData(Te,z)===this.resolveFieldData(se,z):this.equalsByValue(Te,se)}static equalsByValue(Te,se){if(Te===se)return!0;if(Te&&se&&"object"==typeof Te&&"object"==typeof se){var G,de,dt,z=Array.isArray(Te),x=Array.isArray(se);if(z&&x){if((de=Te.length)!=se.length)return!1;for(G=de;0!=G--;)if(!this.equalsByValue(Te[G],se[G]))return!1;return!0}if(z!=x)return!1;var Mt=Te instanceof Date,We=se instanceof Date;if(Mt!=We)return!1;if(Mt&&We)return Te.getTime()==se.getTime();var At=Te instanceof RegExp,qe=se instanceof RegExp;if(At!=qe)return!1;if(At&&qe)return Te.toString()==se.toString();var lt=Object.keys(Te);if((de=lt.length)!==Object.keys(se).length)return!1;for(G=de;0!=G--;)if(!Object.prototype.hasOwnProperty.call(se,lt[G]))return!1;for(G=de;0!=G--;)if(!this.equalsByValue(Te[dt=lt[G]],se[dt]))return!1;return!0}return Te!=Te&&se!=se}static resolveFieldData(Te,se){if(Te&&se){if(this.isFunction(se))return se(Te);if(-1==se.indexOf("."))return Te[se];{let z=se.split("."),x=Te;for(let G=0,de=z.length;G<de;++G){if(null==x)return null;x=x[z[G]]}return x}}return null}static isFunction(Te){return!!(Te&&Te.constructor&&Te.call&&Te.apply)}static reorderArray(Te,se,z){Te&&se!==z&&(z>=Te.length&&(z%=Te.length,se%=Te.length),Te.splice(z,0,Te.splice(se,1)[0]))}static insertIntoOrderedArray(Te,se,z,x){if(z.length>0){let G=!1;for(let de=0;de<z.length;de++)if(this.findIndexInList(z[de],x)>se){z.splice(de,0,Te),G=!0;break}G||z.push(Te)}else z.push(Te)}static findIndexInList(Te,se){let z=-1;if(se)for(let x=0;x<se.length;x++)if(se[x]==Te){z=x;break}return z}static contains(Te,se){if(null!=Te&&se&&se.length)for(let z of se)if(this.equals(Te,z))return!0;return!1}static removeAccents(Te){return Te&&Te.search(/[\xC0-\xFF]/g)>-1&&(Te=Te.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),Te}static isEmpty(Te){return null==Te||""===Te||Array.isArray(Te)&&0===Te.length||!(Te instanceof Date)&&"object"==typeof Te&&0===Object.keys(Te).length}static isNotEmpty(Te){return!this.isEmpty(Te)}}var e=0;function R(){return"pr_id_"+ ++e}var ve=function me(){let ae=[];const x=G=>G&&parseInt(G.style.zIndex,10)||0;return{get:x,set:(G,de,dt)=>{de&&(de.style.zIndex=String(((G,de)=>{let dt=ae.length>0?ae[ae.length-1]:{key:G,value:de},Mt=dt.value+(dt.key===G?0:de)+1;return ae.push({key:G,value:Mt}),Mt})(G,dt)))},clear:G=>{G&&((G=>{ae=ae.filter(de=>de.value!==G)})(x(G)),G.style.zIndex="")},getCurrent:()=>ae.length>0?ae[ae.length-1].value:0}}()},5861:(wn,bt,D)=>{"use strict";function g(R,me,ve,ae,Te,se,z){try{var x=R[se](z),G=x.value}catch(de){return void ve(de)}x.done?me(G):Promise.resolve(G).then(ae,Te)}function e(R){return function(){var me=this,ve=arguments;return new Promise(function(ae,Te){var se=R.apply(me,ve);function z(G){g(se,ae,Te,z,x,"next",G)}function x(G){g(se,ae,Te,z,x,"throw",G)}z(void 0)})}}D.d(bt,{Z:()=>e})},7582:(wn,bt,D)=>{"use strict";function me($e,je){var ie={};for(var ft in $e)Object.prototype.hasOwnProperty.call($e,ft)&&je.indexOf(ft)<0&&(ie[ft]=$e[ft]);if(null!=$e&&"function"==typeof Object.getOwnPropertySymbols){var Wt=0;for(ft=Object.getOwnPropertySymbols($e);Wt<ft.length;Wt++)je.indexOf(ft[Wt])<0&&Object.prototype.propertyIsEnumerable.call($e,ft[Wt])&&(ie[ft[Wt]]=$e[ft[Wt]])}return ie}function de($e,je,ie,ft){return new(ie||(ie=Promise))(function(Dt,hn){function Gn(ai){try{kn(ft.next(ai))}catch(An){hn(An)}}function qn(ai){try{kn(ft.throw(ai))}catch(An){hn(An)}}function kn(ai){ai.done?Dt(ai.value):function Wt(Dt){return Dt instanceof ie?Dt:new ie(function(hn){hn(Dt)})}(ai.value).then(Gn,qn)}kn((ft=ft.apply($e,je||[])).next())})}function ot($e){return this instanceof ot?(this.v=$e,this):new ot($e)}function fe($e,je,ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Wt,ft=ie.apply($e,je||[]),Dt=[];return Wt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Gn("next"),Gn("throw"),Gn("return",function hn(Ln){return function(Hn){return Promise.resolve(Hn).then(Ln,An)}}),Wt[Symbol.asyncIterator]=function(){return this},Wt;function Gn(Ln,Hn){ft[Ln]&&(Wt[Ln]=function(yi){return new Promise(function(_n,ui){Dt.push([Ln,yi,_n,ui])>1||qn(Ln,yi)})},Hn&&(Wt[Ln]=Hn(Wt[Ln])))}function qn(Ln,Hn){try{!function kn(Ln){Ln.value instanceof ot?Promise.resolve(Ln.value.v).then(ai,An):Wn(Dt[0][2],Ln)}(ft[Ln](Hn))}catch(yi){Wn(Dt[0][3],yi)}}function ai(Ln){qn("next",Ln)}function An(Ln){qn("throw",Ln)}function Wn(Ln,Hn){Ln(Hn),Dt.shift(),Dt.length&&qn(Dt[0][0],Dt[0][1])}}function Ye($e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie,je=$e[Symbol.asyncIterator];return je?je.call($e):($e=function At($e){var je="function"==typeof Symbol&&Symbol.iterator,ie=je&&$e[je],ft=0;if(ie)return ie.call($e);if($e&&"number"==typeof $e.length)return{next:function(){return $e&&ft>=$e.length&&($e=void 0),{value:$e&&$e[ft++],done:!$e}}};throw new TypeError(je?"Object is not iterable.":"Symbol.iterator is not defined.")}($e),ie={},ft("next"),ft("throw"),ft("return"),ie[Symbol.asyncIterator]=function(){return this},ie);function ft(Dt){ie[Dt]=$e[Dt]&&function(hn){return new Promise(function(Gn,qn){!function Wt(Dt,hn,Gn,qn){Promise.resolve(qn).then(function(kn){Dt({value:kn,done:Gn})},hn)}(Gn,qn,(hn=$e[Dt](hn)).done,hn.value)})}}}D.d(bt,{FC:()=>fe,KL:()=>Ye,_T:()=>me,mG:()=>de,qq:()=>ot}),"function"==typeof SuppressedError&&SuppressedError}},wn=>{wn(wn.s=472)}]);
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.