marketplacepos 2.7.3 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/Marketplace/25.b70d86f301c02577.js +1 -0
  2. package/Marketplace/360.35d9782330672e00.js +1 -0
  3. package/Marketplace/369.19d90a301af16090.js +1 -0
  4. package/Marketplace/392.f4537160149f627a.js +1 -0
  5. package/Marketplace/397.bd20bd794e4994a8.js +1 -0
  6. package/Marketplace/3rdpartylicenses.txt +0 -50
  7. package/Marketplace/512.2796526d3f4c83f5.js +1 -0
  8. package/Marketplace/516.23780ce40d15b408.js +1 -0
  9. package/Marketplace/587.69b186b4d297a852.js +1 -0
  10. package/Marketplace/61.868e35095821a091.js +1 -0
  11. package/Marketplace/616.b7e1ec6933570169.js +1 -0
  12. package/Marketplace/643.7de8ebbdb10aeed8.js +1 -0
  13. package/Marketplace/717.26634e93ca9b60ed.js +1 -0
  14. package/Marketplace/72.b0c5b137e38d6dbc.js +1 -0
  15. package/Marketplace/833.552ef7db8cfcde45.js +1 -0
  16. package/Marketplace/859.b43bda3adda95fa3.js +1 -0
  17. package/Marketplace/863.67b36200543c45b1.js +1 -0
  18. package/Marketplace/874.8531eff61a70fef4.js +1 -0
  19. package/Marketplace/877.460b82caffdbeb26.js +1 -0
  20. package/Marketplace/913.08c7bf72f6b8e4f8.js +1 -0
  21. package/Marketplace/993.f25cf4b5757f3e91.js +1 -0
  22. package/Marketplace/997.6b3f954f35ff3ac0.js +1 -0
  23. package/Marketplace/common.1ae3037cc1f5de4e.js +1 -0
  24. package/Marketplace/index.html +2 -2
  25. package/Marketplace/main.3c2864f277c98596.js +1 -0
  26. package/Marketplace/runtime.2751fd0e9a5e9d78.js +1 -0
  27. package/Marketplace/{styles.ca007450064f7ae0.css → styles.bd36b2077413d718.css} +1 -1
  28. package/package.json +1 -1
  29. package/Marketplace/174.ef0e2b8b4c9d2b0b.js +0 -1
  30. package/Marketplace/25.43ab1ee524b9049a.js +0 -1
  31. package/Marketplace/291.779ede87479fb9b2.js +0 -1
  32. package/Marketplace/360.45dba871a275bde4.js +0 -1
  33. package/Marketplace/369.fe9dd78b5ae1f834.js +0 -1
  34. package/Marketplace/397.5668d07ae2910130.js +0 -1
  35. package/Marketplace/512.8bb0df7db698606b.js +0 -1
  36. package/Marketplace/516.6cbc60a45960d8fd.js +0 -1
  37. package/Marketplace/587.b913510ac1ecfe12.js +0 -1
  38. package/Marketplace/61.b5326b8a8507ca2b.js +0 -1
  39. package/Marketplace/616.ce2eff13bf85dd2a.js +0 -1
  40. package/Marketplace/628.161d18d5f92f87c9.js +0 -1
  41. package/Marketplace/643.cee753340fd82dfa.js +0 -1
  42. package/Marketplace/717.b70435564cbfa38c.js +0 -1
  43. package/Marketplace/72.23a9b1a59cf7bfca.js +0 -1
  44. package/Marketplace/796.f712080a257b33c0.js +0 -1
  45. package/Marketplace/863.73daa64a1cf098b8.js +0 -1
  46. package/Marketplace/874.23cc68e9ff331b03.js +0 -1
  47. package/Marketplace/913.c2ffbc12dd99b85d.js +0 -1
  48. package/Marketplace/997.c2b107d851cf971c.js +0 -1
  49. package/Marketplace/common.8f5889e94b19f645.js +0 -1
  50. package/Marketplace/main.f4b54c0122a625bf.js +0 -1
  51. package/Marketplace/runtime.aa1e68d995bcf102.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{7899:(nt,De,w)=>{w.d(De,{zQ:()=>Pi,ww:()=>ei});var d=w(4650),p=w(7579),N=w(9646),$=w(9751),K=w(8996),q=w(6451),se=w(5363),ie=w(3900),ue=w(4004),B=w(4782),G=w(590),te=w(576);function Le(le,pe){return(0,te.m)(pe)?(0,ie.w)(()=>le,pe):(0,ie.w)(()=>le)}var Ae=w(9468),je=w(9300),Ze=w(5813),Te=w(2011),Pe=w(6895);w(5867);var bt=w(5861),St=w(9681),Ne=w(4859),Qe=w(2090),ce=w(1877);const xe=new Map,et={activated:!1,tokenObservers:[]},Pt={initialized:!1,enabled:!1};function zt(le){return xe.get(le)||et}function an(le,pe){xe.set(le,pe)}function ln(){return Pt}class Kt{constructor(pe,Ie,Ve,Xe,at){if(this.operation=pe,this.retryPolicy=Ie,this.getWaitDuration=Ve,this.lowerBound=Xe,this.upperBound=at,this.pending=null,this.nextErrorWaitInterval=Xe,Xe>at)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(pe){var Ie=this;return(0,bt.Z)(function*(){Ie.stop();try{Ie.pending=new Qe.BH,yield function yt(le){return new Promise(pe=>{setTimeout(pe,le)})}(Ie.getNextRun(pe)),Ie.pending.resolve(),yield Ie.pending.promise,Ie.pending=new Qe.BH,yield Ie.operation(),Ie.pending.resolve(),yield Ie.pending.promise,Ie.process(!0).catch(()=>{})}catch(Ve){Ie.retryPolicy(Ve)?Ie.process(!1).catch(()=>{}):Ie.stop()}})()}getNextRun(pe){if(pe)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ie=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ie}}}const fn=new Qe.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 In(le){if(!zt(le).activated)throw fn.create("use-before-activation",{appName:le.name})}function It(le,pe){return _t.apply(this,arguments)}function _t(){return(_t=(0,bt.Z)(function*({url:le,body:pe},Ie){var Ve,Xe;const at={"Content-Type":"application/json"},Ot=Ie.getImmediate({optional:!0});if(Ot){const li=yield Ot.getHeartbeatsHeader();li&&(at["X-Firebase-Client"]=li)}const Pn={method:"POST",body:JSON.stringify(pe),headers:at};let $t,Zn;try{$t=yield fetch(le,Pn)}catch(li){throw fn.create("fetch-network-error",{originalErrorMessage:null===(Ve=li)||void 0===Ve?void 0:Ve.message})}if(200!==$t.status)throw fn.create("fetch-status-error",{httpStatus:$t.status});try{Zn=yield $t.json()}catch(li){throw fn.create("fetch-parse-error",{originalErrorMessage:null===(Xe=li)||void 0===Xe?void 0:Xe.message})}const Mr=Zn.ttl.match(/^([\d.]+)(s)$/);if(!Mr||!Mr[2]||isNaN(Number(Mr[1])))throw fn.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Zn.ttl}`});const Oi=1e3*Number(Mr[1]),ai=Date.now();return{token:Zn.token,expireTimeMillis:ai+Oi,issuedAtTimeMillis:ai}})).apply(this,arguments)}function mn(le,pe){const{projectId:Ie,appId:Ve,apiKey:Xe}=le.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Ie}/apps/${Ve}:exchangeDebugToken?key=${Xe}`,body:{debug_token:pe}}}const Mn="firebase-app-check-store";let dn=null;function qr(){return dn||(dn=new Promise((le,pe)=>{var Ie;try{const Ve=indexedDB.open("firebase-app-check-database",1);Ve.onsuccess=Xe=>{le(Xe.target.result)},Ve.onerror=Xe=>{var at;pe(fn.create("storage-open",{originalErrorMessage:null===(at=Xe.target.error)||void 0===at?void 0:at.message}))},Ve.onupgradeneeded=Xe=>{0===Xe.oldVersion&&Xe.target.result.createObjectStore(Mn,{keyPath:"compositeKey"})}}catch(Ve){pe(fn.create("storage-open",{originalErrorMessage:null===(Ie=Ve)||void 0===Ie?void 0:Ie.message}))}}),dn)}function _e(){return(_e=(0,bt.Z)(function*(le,pe){const Ve=(yield qr()).transaction(Mn,"readwrite"),at=Ve.objectStore(Mn).put({compositeKey:le,value:pe});return new Promise((Ot,Pn)=>{at.onsuccess=$t=>{Ot()},Ve.onerror=$t=>{var Zn;Pn(fn.create("storage-set",{originalErrorMessage:null===(Zn=$t.target.error)||void 0===Zn?void 0:Zn.message}))}})})).apply(this,arguments)}const k=new ce.Yd("@firebase/app-check");function ke(le,pe){return(0,Qe.hl)()?function Vn(le,pe){return function Ye(le,pe){return _e.apply(this,arguments)}(function Ue(le){return`${le.options.appId}-${le.name}`}(le),pe)}(le,pe).catch(Ie=>{k.warn(`Failed to write token to IndexedDB. Error: ${Ie}`)}):Promise.resolve()}function Mt(){return ln().enabled}function Rt(){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,bt.Z)(function*(){const le=ln();if(le.enabled&&le.token)return le.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const X={error:"UNKNOWN_ERROR"};function L(le){return Qe.US.encodeString(JSON.stringify(le),!1)}function ve(le){return $e.apply(this,arguments)}function $e(){return($e=(0,bt.Z)(function*(le,pe=!1){const Ie=le.app;In(Ie);const Ve=zt(Ie);let at,Xe=Ve.token;if(Xe&&!Cn(Xe)&&(an(Ie,Object.assign(Object.assign({},Ve),{token:void 0})),Xe=void 0),!Xe){const $t=yield Ve.cachedTokenPromise;$t&&(Cn($t)?Xe=$t:yield ke(Ie,void 0))}if(!pe&&Xe&&Cn(Xe))return{token:Xe.token};let Pn,Ot=!1;if(Mt()){Ve.exchangeTokenPromise||(Ve.exchangeTokenPromise=It(mn(Ie,yield Rt()),le.heartbeatServiceProvider).finally(()=>{Ve.exchangeTokenPromise=void 0}),Ot=!0);const $t=yield Ve.exchangeTokenPromise;return yield ke(Ie,$t),an(Ie,Object.assign(Object.assign({},Ve),{token:$t})),{token:$t.token}}try{Ve.exchangeTokenPromise||(Ve.exchangeTokenPromise=Ve.provider.getToken().finally(()=>{Ve.exchangeTokenPromise=void 0}),Ot=!0),Xe=yield Ve.exchangeTokenPromise}catch($t){"appCheck/throttled"===$t.code?k.warn($t.message):k.error($t),at=$t}return Xe?at?Pn=Cn(Xe)?{token:Xe.token,internalError:at}:si(at):(Pn={token:Xe.token},an(Ie,Object.assign(Object.assign({},Ve),{token:Xe})),yield ke(Ie,Xe)):Pn=si(at),Ot&&Cr(Ie,Pn),Pn})).apply(this,arguments)}function Ft(le,pe){const Ie=zt(le),Ve=Ie.tokenObservers.filter(Xe=>Xe.next!==pe);0===Ve.length&&Ie.tokenRefresher&&Ie.tokenRefresher.isRunning()&&Ie.tokenRefresher.stop(),an(le,Object.assign(Object.assign({},Ie),{tokenObservers:Ve}))}function zn(le){const{app:pe}=le,Ie=zt(pe);let Ve=Ie.tokenRefresher;Ve||(Ve=function Gn(le){const{app:pe}=le;return new Kt((0,bt.Z)(function*(){let Ve;if(Ve=zt(pe).token?yield ve(le,!0):yield ve(le),Ve.error)throw Ve.error;if(Ve.internalError)throw Ve.internalError}),()=>!0,()=>{const Ie=zt(pe);if(Ie.token){let Ve=Ie.token.issuedAtTimeMillis+.5*(Ie.token.expireTimeMillis-Ie.token.issuedAtTimeMillis)+3e5;return Ve=Math.min(Ve,Ie.token.expireTimeMillis-3e5),Math.max(0,Ve-Date.now())}return 0},3e4,96e4)}(le),an(pe,Object.assign(Object.assign({},Ie),{tokenRefresher:Ve}))),!Ve.isRunning()&&Ie.isTokenAutoRefreshEnabled&&Ve.start()}function Cr(le,pe){const Ie=zt(le).tokenObservers;for(const Ve of Ie)try{"EXTERNAL"===Ve.type&&null!=pe.error?Ve.error(pe.error):Ve.next(pe)}catch{}}function Cn(le){return le.expireTimeMillis-Date.now()>0}function si(le){return{token:L(X),error:le}}class hi{constructor(pe,Ie){this.app=pe,this.heartbeatServiceProvider=Ie}_delete(){const{tokenObservers:pe}=zt(this.app);for(const Ie of pe)Ft(this.app,Ie.next);return Promise.resolve()}}const pi="app-check-internal";!function vr(){(0,St._registerComponent)(new Ne.wA("app-check",le=>function ho(le,pe){return new hi(le,pe)}(le.getProvider("app").getImmediate(),le.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((le,pe,Ie)=>{le.getProvider(pi).initialize()})),(0,St._registerComponent)(new Ne.wA(pi,le=>function io(le){return{getToken:pe=>ve(le,pe),addTokenListener:pe=>function ut(le,pe,Ie,Ve){const{app:Xe}=le,at=zt(Xe),Ot={next:Ie,error:Ve,type:pe};if(an(Xe,Object.assign(Object.assign({},at),{tokenObservers:[...at.tokenObservers,Ot]})),at.token&&Cn(at.token)){const Pn=at.token;Promise.resolve().then(()=>{Ie({token:Pn.token}),zn(le)}).catch(()=>{})}at.cachedTokenPromise.then(()=>zn(le))}(le,"INTERNAL",pe),removeTokenListener:pe=>Ft(le.app,pe)}}(le.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,St.registerVersion)("@firebase/app-check","0.5.15")}();class Tn{constructor(){return(0,Ze.vb)("app-check")}}typeof window<"u"&&window;var go=w(127);const Ai=new d.OlP("angularfire2.auth.use-emulator"),Gi=new d.OlP("angularfire2.auth.settings"),Wi=new d.OlP("angularfire2.auth.tenant-id"),mo=new d.OlP("angularfire2.auth.langugage-code"),yo=new d.OlP("angularfire2.auth.use-device-language"),Io=new d.OlP("angularfire.auth.persistence");let Pi=(()=>{class le{constructor(Ie,Ve,Xe,at,Ot,Pn,$t,Zn,Mr,Oi,ai,li){const so=new p.x,_i=(0,N.of)(void 0).pipe((0,se.Q)(Ot.outsideAngular),(0,ie.w)(()=>at.runOutsideAngular(()=>w.e(545).then(w.bind(w,9545)))),(0,ue.U)(()=>(0,Te.on)(Ie,at,Ve)),(0,ue.U)(Fr=>((le,pe,Ie,Ve,Xe,at,Ot,Pn)=>(0,Te.cc)(`${le.name}.auth`,"AngularFireAuth",le.name,()=>{const $t=pe.runOutsideAngular(()=>le.auth());if(Ie&&$t.useEmulator(...Ie),Ve&&($t.tenantId=Ve),$t.languageCode=Xe,at&&$t.useDeviceLanguage(),Ot)for(const[Zn,Mr]of Object.entries(Ot))$t.settings[Zn]=Mr;return Pn&&$t.setPersistence(Pn),$t},[Ie,Ve,Xe,at,Ot,Pn]))(Fr,at,Pn,Zn,Mr,Oi,$t,ai)),(0,B.d)({bufferSize:1,refCount:!1}));if((0,Pe.PM)(Xe))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,N.of)(null);else{_i.pipe((0,G.P)()).subscribe();const Ki=_i.pipe((0,ie.w)(pn=>pn.getRedirectResult().then(Sn=>Sn,()=>null)),Ze.iC,(0,B.d)({bufferSize:1,refCount:!1})),_r=_i.pipe((0,ie.w)(pn=>new $.y(Sn=>({unsubscribe:at.runOutsideAngular(()=>pn.onAuthStateChanged(ni=>Sn.next(ni),ni=>Sn.error(ni),()=>Sn.complete()))})))),ti=_i.pipe((0,ie.w)(pn=>new $.y(Sn=>({unsubscribe:at.runOutsideAngular(()=>pn.onIdTokenChanged(ni=>Sn.next(ni),ni=>Sn.error(ni),()=>Sn.complete()))}))));this.authState=Ki.pipe(Le(_r),(0,Ae.R)(Ot.outsideAngular),(0,se.Q)(Ot.insideAngular)),this.user=Ki.pipe(Le(ti),(0,Ae.R)(Ot.outsideAngular),(0,se.Q)(Ot.insideAngular)),this.idToken=this.user.pipe((0,ie.w)(pn=>pn?(0,K.D)(pn.getIdToken()):(0,N.of)(null))),this.idTokenResult=this.user.pipe((0,ie.w)(pn=>pn?(0,K.D)(pn.getIdTokenResult()):(0,N.of)(null))),this.credential=(0,q.T)(Ki,so,this.authState.pipe((0,je.h)(pn=>!pn))).pipe((0,ue.U)(pn=>pn?.user?pn:null),(0,Ae.R)(Ot.outsideAngular),(0,se.Q)(Ot.insideAngular))}return(0,Te.pX)(this,_i,at,{spy:{apply:(Fr,Ki,_r)=>{(Fr.startsWith("signIn")||Fr.startsWith("createUser"))&&_r.then(ti=>so.next(ti))}}})}}return le.\u0275fac=function(Ie){return new(Ie||le)(d.LFG(Te.Dh),d.LFG(Te.xv,8),d.LFG(d.Lbi),d.LFG(d.R0b),d.LFG(Ze.HU),d.LFG(Ai,8),d.LFG(Gi,8),d.LFG(Wi,8),d.LFG(mo,8),d.LFG(yo,8),d.LFG(Io,8),d.LFG(Tn,8))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"any"}),le})(),ei=(()=>{class le{constructor(){go.Z.registerVersion("angularfire",Ze.q4.full,"auth-compat")}}return le.\u0275fac=function(Ie){return new(Ie||le)},le.\u0275mod=d.oAB({type:le}),le.\u0275inj=d.cJS({providers:[Pi]}),le})()},2011:(nt,De,w)=>{w.d(De,{Dh:()=>ie,GT:()=>q,cc:()=>Ae,hO:()=>Le,on:()=>B,pX:()=>K,xv:()=>ue});var d=w(4650),p=w(127),N=w(5813);nt=w.hmd(nt);const $=["ngOnDestroy"],K=(Pe,Se,ye,Ce={})=>new Proxy(Pe,{get:(F,ae)=>ye.runOutsideAngular(()=>{var re;if(Pe[ae])return!(null===(re=Ce?.spy)||void 0===re)&&re.get&&Ce.spy.get(ae,Pe[ae]),Pe[ae];if($.indexOf(ae)>-1)return()=>{};const he=Se.toPromise().then(Y=>{const de=Y&&Y[ae];return"function"==typeof de?de.bind(Y):de&&de.then?de.then(j=>ye.run(()=>j)):ye.run(()=>de)});return new Proxy(()=>{},{get:(Y,de)=>he[de],apply:(Y,de,j)=>he.then(Z=>{var be;const fe=Z&&Z(...j);return!(null===(be=Ce?.spy)||void 0===be)&&be.apply&&Ce.spy.apply(ae,j,fe),fe})})})}),q=(Pe,Se)=>{Se.forEach(ye=>{Object.getOwnPropertyNames(ye.prototype||ye).forEach(Ce=>{Object.defineProperty(Pe.prototype,Ce,Object.getOwnPropertyDescriptor(ye.prototype||ye,Ce))})})};class se{constructor(Se){return Se}}const ie=new d.OlP("angularfire2.app.options"),ue=new d.OlP("angularfire2.app.name");function B(Pe,Se,ye){const F="object"==typeof ye&&ye||{};F.name=F.name||"string"==typeof ye&&ye||"[DEFAULT]";const re=p.Z.apps.filter(he=>he&&he.name===F.name)[0]||Se.runOutsideAngular(()=>p.Z.initializeApp(Pe,F));try{JSON.stringify(Pe)!==JSON.stringify(re.options)&&G("error",`${re.name} Firebase App already initialized with different options${nt.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new se(re)}const G=(Pe,...Se)=>{(0,d.X6Q)()&&typeof console<"u"&&console[Pe](...Se)},te={provide:se,useFactory:B,deps:[ie,d.R0b,[new d.FiY,ue]]};let Le=(()=>{class Pe{constructor(ye){p.Z.registerVersion("angularfire",N.q4.full,"core"),p.Z.registerVersion("angularfire",N.q4.full,"app-compat"),p.Z.registerVersion("angular",d.q4F.full,ye.toString())}static initializeApp(ye,Ce){return{ngModule:Pe,providers:[{provide:ie,useValue:ye},{provide:ue,useValue:Ce}]}}}return Pe.\u0275fac=function(ye){return new(ye||Pe)(d.LFG(d.Lbi))},Pe.\u0275mod=d.oAB({type:Pe}),Pe.\u0275inj=d.cJS({providers:[te]}),Pe})();function Ae(Pe,Se,ye,Ce,F){const[,ae,re]=globalThis.\u0275AngularfireInstanceCache.find(he=>he[0]===Pe)||[];if(ae)return function je(Pe,Se){try{return Pe.toString()===Se.toString()}catch{return Pe===Se}}(F,re)||(Te("error",`${Se} was already initialized on the ${ye} Firebase App with different settings.${Ze?" You may need to reload as Firebase is not HMR aware.":""}`),Te("warn",{is:F,was:re})),ae;{const he=Ce();return globalThis.\u0275AngularfireInstanceCache.push([Pe,he,F]),he}}const Ze=!!nt.hot,Te=(Pe,...Se)=>{(0,d.X6Q)()&&typeof console<"u"&&console[Pe](...Se)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},5813:(nt,De,w)=>{w.d(De,{q4:()=>Zo,iC:()=>ia,HU:()=>To,vb:()=>vt,JM:()=>ft});var d=w(4650),p=w(5867),N=w(5861),$=w(9681),K=w(2090),q=w(4859),se=w(1877),ie=w(8766);const ue="@firebase/installations",B="0.5.15",te=`w:${B}`,Le="FIS_v2",Se=new K.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 ye(D){return D instanceof K.ZR&&D.code.includes("request-failed")}function Ce({projectId:D}){return`https://firebaseinstallations.googleapis.com/v1/projects/${D}/installations`}function F(D){return{token:D.token,requestStatus:2,expiresIn:Z(D.expiresIn),creationTime:Date.now()}}function ae(D,C){return re.apply(this,arguments)}function re(){return(re=(0,N.Z)(function*(D,C){const W=(yield C.json()).error;return Se.create("request-failed",{requestName:D,serverCode:W.code,serverMessage:W.message,serverStatus:W.status})})).apply(this,arguments)}function he({apiKey:D}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":D})}function Y(D,{refreshToken:C}){const A=he(D);return A.append("Authorization",function be(D){return`${Le} ${D}`}(C)),A}function de(D){return j.apply(this,arguments)}function j(){return(j=(0,N.Z)(function*(D){const C=yield D();return C.status>=500&&C.status<600?D():C})).apply(this,arguments)}function Z(D){return Number(D.replace("s","000"))}function fe(D,C){return ze.apply(this,arguments)}function ze(){return(ze=(0,N.Z)(function*({appConfig:D,heartbeatServiceProvider:C},{fid:A}){const W=Ce(D),Ee=he(D),Fe=C.getImmediate({optional:!0});if(Fe){const Zt=yield Fe.getHeartbeatsHeader();Zt&&Ee.append("x-firebase-client",Zt)}const ht={method:"POST",headers:Ee,body:JSON.stringify({fid:A,authVersion:Le,appId:D.appId,sdkVersion:te})},Ut=yield de(()=>fetch(W,ht));if(Ut.ok){const Zt=yield Ut.json();return{fid:Zt.fid||A,registrationStatus:2,refreshToken:Zt.refreshToken,authToken:F(Zt.authToken)}}throw yield ae("Create Installation",Ut)})).apply(this,arguments)}function Ke(D){return new Promise(C=>{setTimeout(C,D)})}const Yt=/^[cdef][\w-]{21}$/;function bt(){try{const D=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(D),D[0]=112+D[0]%16;const A=function St(D){return function pt(D){return btoa(String.fromCharCode(...D)).replace(/\+/g,"-").replace(/\//g,"_")}(D).substr(0,22)}(D);return Yt.test(A)?A:""}catch{return""}}function Ne(D){return`${D.appName}!${D.appId}`}const Qe=new Map;function ce(D,C){const A=Ne(D);Pt(A,C),function zt(D,C){const A=function ln(){return!an&&"BroadcastChannel"in self&&(an=new BroadcastChannel("[Firebase] FID Change"),an.onmessage=D=>{Pt(D.data.key,D.data.fid)}),an}();A&&A.postMessage({key:D,fid:C}),function ir(){0===Qe.size&&an&&(an.close(),an=null)}()}(A,C)}function Pt(D,C){const A=Qe.get(D);if(A)for(const W of A)W(C)}let an=null;const $n="firebase-installations-store";let tn=null;function jn(){return tn||(tn=(0,ie.X3)("firebase-installations-database",1,{upgrade:(D,C)=>{0===C&&D.createObjectStore($n)}})),tn}function Kt(D,C){return yt.apply(this,arguments)}function yt(){return(yt=(0,N.Z)(function*(D,C){const A=Ne(D),Ee=(yield jn()).transaction($n,"readwrite"),Fe=Ee.objectStore($n),Je=yield Fe.get(A);return yield Fe.put(C,A),yield Ee.done,(!Je||Je.fid!==C.fid)&&ce(D,C.fid),C})).apply(this,arguments)}function Et(D){return fn.apply(this,arguments)}function fn(){return(fn=(0,N.Z)(function*(D){const C=Ne(D),W=(yield jn()).transaction($n,"readwrite");yield W.objectStore($n).delete(C),yield W.done})).apply(this,arguments)}function or(D,C){return In.apply(this,arguments)}function In(){return(In=(0,N.Z)(function*(D,C){const A=Ne(D),Ee=(yield jn()).transaction($n,"readwrite"),Fe=Ee.objectStore($n),Je=yield Fe.get(A),ht=C(Je);return void 0===ht?yield Fe.delete(A):yield Fe.put(ht,A),yield Ee.done,ht&&(!Je||Je.fid!==ht.fid)&&ce(D,ht.fid),ht})).apply(this,arguments)}function Nn(D){return sr.apply(this,arguments)}function sr(){return(sr=(0,N.Z)(function*(D){let C;const A=yield or(D.appConfig,W=>{const Ee=It(W),Fe=_t(D,Ee);return C=Fe.registrationPromise,Fe.installationEntry});return""===A.fid?{installationEntry:yield C}:{installationEntry:A,registrationPromise:C}})).apply(this,arguments)}function It(D){return Mn(D||{fid:bt(),registrationStatus:0})}function _t(D,C){if(0===C.registrationStatus){if(!navigator.onLine)return{installationEntry:C,registrationPromise:Promise.reject(Se.create("app-offline"))};const A={fid:C.fid,registrationStatus:1,registrationTime:Date.now()},W=function lt(D,C){return Ct.apply(this,arguments)}(D,A);return{installationEntry:A,registrationPromise:W}}return 1===C.registrationStatus?{installationEntry:C,registrationPromise:mn(D)}:{installationEntry:C}}function Ct(){return(Ct=(0,N.Z)(function*(D,C){try{const A=yield fe(D,C);return Kt(D.appConfig,A)}catch(A){throw ye(A)&&409===A.customData.serverCode?yield Et(D.appConfig):yield Kt(D.appConfig,{fid:C.fid,registrationStatus:0}),A}})).apply(this,arguments)}function mn(D){return kn.apply(this,arguments)}function kn(){return(kn=(0,N.Z)(function*(D){let C=yield Hn(D.appConfig);for(;1===C.registrationStatus;)yield Ke(100),C=yield Hn(D.appConfig);if(0===C.registrationStatus){const{installationEntry:A,registrationPromise:W}=yield Nn(D);return W||A}return C})).apply(this,arguments)}function Hn(D){return or(D,C=>{if(!C)throw Se.create("installation-not-found");return Mn(C)})}function Mn(D){return function mr(D){return 1===D.registrationStatus&&D.registrationTime+1e4<Date.now()}(D)?{fid:D.fid,registrationStatus:0}:D}function dn(D,C){return qr.apply(this,arguments)}function qr(){return(qr=(0,N.Z)(function*({appConfig:D,heartbeatServiceProvider:C},A){const W=Qt(D,A),Ee=Y(D,A),Fe=C.getImmediate({optional:!0});if(Fe){const Zt=yield Fe.getHeartbeatsHeader();Zt&&Ee.append("x-firebase-client",Zt)}const ht={method:"POST",headers:Ee,body:JSON.stringify({installation:{sdkVersion:te,appId:D.appId}})},Ut=yield de(()=>fetch(W,ht));if(Ut.ok)return F(yield Ut.json());throw yield ae("Generate Auth Token",Ut)})).apply(this,arguments)}function Qt(D,{fid:C}){return`${Ce(D)}/${C}/authTokens:generate`}function Vn(D){return yr.apply(this,arguments)}function yr(){return(yr=(0,N.Z)(function*(D,C=!1){let A;const W=yield or(D.appConfig,Fe=>{if(!Ue(Fe))throw Se.create("not-registered");const Je=Fe.authToken;if(!C&&k(Je))return Fe;if(1===Je.requestStatus)return A=rt(D,C),Fe;{if(!navigator.onLine)throw Se.create("app-offline");const ht=oe(Fe);return A=V(D,ht),ht}});return A?yield A:W.authToken})).apply(this,arguments)}function rt(D,C){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,N.Z)(function*(D,C){let A=yield _e(D.appConfig);for(;1===A.authToken.requestStatus;)yield Ke(100),A=yield _e(D.appConfig);const W=A.authToken;return 0===W.requestStatus?Vn(D,C):W})).apply(this,arguments)}function _e(D){return or(D,C=>{if(!Ue(C))throw Se.create("not-registered");return function ke(D){return 1===D.requestStatus&&D.requestTime+1e4<Date.now()}(C.authToken)?Object.assign(Object.assign({},C),{authToken:{requestStatus:0}}):C})}function V(D,C){return J.apply(this,arguments)}function J(){return(J=(0,N.Z)(function*(D,C){try{const A=yield dn(D,C),W=Object.assign(Object.assign({},C),{authToken:A});return yield Kt(D.appConfig,W),A}catch(A){if(!ye(A)||401!==A.customData.serverCode&&404!==A.customData.serverCode){const W=Object.assign(Object.assign({},C),{authToken:{requestStatus:0}});yield Kt(D.appConfig,W)}else yield Et(D.appConfig);throw A}})).apply(this,arguments)}function Ue(D){return void 0!==D&&2===D.registrationStatus}function k(D){return 2===D.requestStatus&&!function U(D){const C=Date.now();return C<D.creationTime||D.creationTime+D.expiresIn<C+36e5}(D)}function oe(D){const C={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},D),{authToken:C})}function it(){return(it=(0,N.Z)(function*(D){const C=D,{installationEntry:A,registrationPromise:W}=yield Nn(C);return W?W.catch(console.error):Vn(C).catch(console.error),A.fid})).apply(this,arguments)}function Rt(){return(Rt=(0,N.Z)(function*(D,C=!1){const A=D;return yield Xt(A),(yield Vn(A,C)).token})).apply(this,arguments)}function Xt(D){return Q.apply(this,arguments)}function Q(){return(Q=(0,N.Z)(function*(D){const{registrationPromise:C}=yield Nn(D);C&&(yield C)})).apply(this,arguments)}function Cr(D){return Se.create("missing-app-config-values",{valueName:D})}const Cn="installations",hi=D=>{const C=D.getProvider("app").getImmediate(),A=function Gn(D){if(!D||!D.options)throw Cr("App Configuration");if(!D.name)throw Cr("App Name");const C=["projectId","apiKey","appId"];for(const A of C)if(!D.options[A])throw Cr(A);return{appName:D.name,projectId:D.options.projectId,apiKey:D.options.apiKey,appId:D.options.appId}}(C);return{app:C,appConfig:A,heartbeatServiceProvider:(0,$._getProvider)(C,"heartbeat"),_delete:()=>Promise.resolve()}},ho=D=>{const C=D.getProvider("app").getImmediate(),A=(0,$._getProvider)(C,Cn).getImmediate();return{getId:()=>function ge(D){return it.apply(this,arguments)}(A),getToken:Ee=>function Mt(D){return Rt.apply(this,arguments)}(A,Ee)}};(function io(){(0,$._registerComponent)(new q.wA(Cn,hi,"PUBLIC")),(0,$._registerComponent)(new q.wA("installations-internal",ho,"PRIVATE"))})(),(0,$.registerVersion)(ue,B),(0,$.registerVersion)(ue,B,"esm2017");const zr="@firebase/remote-config",Wn=new K.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 pi{constructor(C,A,W,Ee){this.client=C,this.storage=A,this.storageCache=W,this.logger=Ee}isCachedDataFresh(C,A){if(!A)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const W=Date.now()-A,Ee=W<=C;return this.logger.debug(`Config fetch cache check. Cache age millis: ${W}. Cache max age millis (minimumFetchIntervalMillis setting): ${C}. Is cache hit: ${Ee}.`),Ee}fetch(C){var A=this;return(0,N.Z)(function*(){const[W,Ee]=yield Promise.all([A.storage.getLastSuccessfulFetchTimestampMillis(),A.storage.getLastSuccessfulFetchResponse()]);if(Ee&&A.isCachedDataFresh(C.cacheMaxAgeMillis,W))return Ee;C.eTag=Ee&&Ee.eTag;const Fe=yield A.client.fetch(C),Je=[A.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Fe.status&&Je.push(A.storage.setLastSuccessfulFetchResponse(Fe)),yield Promise.all(Je),Fe})()}}function vr(D=navigator){return D.languages&&D.languages[0]||D.language}class gi{constructor(C,A,W,Ee,Fe,Je){this.firebaseInstallations=C,this.sdkVersion=A,this.namespace=W,this.projectId=Ee,this.apiKey=Fe,this.appId=Je}fetch(C){var A=this;return(0,N.Z)(function*(){var W,Ee,Fe;const[Je,ht]=yield Promise.all([A.firebaseInstallations.getId(),A.firebaseInstallations.getToken()]),Zt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${A.projectId}/namespaces/${A.namespace}:fetch?key=${A.apiKey}`,nn={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":C.eTag||"*"},jt={sdk_version:A.sdkVersion,app_instance_id:Je,app_instance_id_token:ht,app_id:A.appId,language_code:vr()},wi={method:"POST",headers:nn,body:JSON.stringify(jt)},Bi=fetch(Zt,wi),la=new Promise((ds,js)=>{C.signal.addEventListener(()=>{const Na=new Error("The operation was aborted.");Na.name="AbortError",js(Na)})});let ua;try{yield Promise.race([Bi,la]),ua=yield Bi}catch(ds){let js="fetch-client-network";throw"AbortError"===(null===(W=ds)||void 0===W?void 0:W.name)&&(js="fetch-timeout"),Wn.create(js,{originalErrorMessage:null===(Ee=ds)||void 0===Ee?void 0:Ee.message})}let Us=ua.status;const Gl=ua.headers.get("ETag")||void 0;let xa,cs;if(200===ua.status){let ds;try{ds=yield ua.json()}catch(js){throw Wn.create("fetch-client-parse",{originalErrorMessage:null===(Fe=js)||void 0===Fe?void 0:Fe.message})}xa=ds.entries,cs=ds.state}if("INSTANCE_STATE_UNSPECIFIED"===cs?Us=500:"NO_CHANGE"===cs?Us=304:("NO_TEMPLATE"===cs||"EMPTY_CONFIG"===cs)&&(xa={}),304!==Us&&200!==Us)throw Wn.create("fetch-status",{httpStatus:Us});return{status:Us,eTag:Gl,config:xa}})()}}class nr{constructor(C,A){this.client=C,this.storage=A}fetch(C){var A=this;return(0,N.Z)(function*(){const W=(yield A.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return A.attemptFetch(C,W)})()}attemptFetch(C,{throttleEndTimeMillis:A,backoffCount:W}){var Ee=this;return(0,N.Z)(function*(){yield function $i(D,C){return new Promise((A,W)=>{const Ee=Math.max(C-Date.now(),0),Fe=setTimeout(A,Ee);D.addEventListener(()=>{clearTimeout(Fe),W(Wn.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}(C.signal,A);try{const Fe=yield Ee.client.fetch(C);return yield Ee.storage.deleteThrottleMetadata(),Fe}catch(Fe){if(!function Tn(D){if(!(D instanceof K.ZR&&D.customData))return!1;const C=Number(D.customData.httpStatus);return 429===C||500===C||503===C||504===C}(Fe))throw Fe;const Je={throttleEndTimeMillis:Date.now()+(0,K.$s)(W),backoffCount:W+1};return yield Ee.storage.setThrottleMetadata(Je),Ee.attemptFetch(C,Je)}})()}}class Tr{constructor(C,A,W,Ee,Fe){this.app=C,this._client=A,this._storageCache=W,this._storage=Ee,this._logger=Fe,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 Gr(D,C){var A;const W=D.target.error||void 0;return Wn.create(C,{originalErrorMessage:W&&(null===(A=W)||void 0===A?void 0:A.message)})}const rr="app_namespace_store";class Ln{constructor(C,A,W,Ee=function dr(){return new Promise((D,C)=>{var A;try{const W=indexedDB.open("firebase_remote_config",1);W.onerror=Ee=>{C(Gr(Ee,"storage-open"))},W.onsuccess=Ee=>{D(Ee.target.result)},W.onupgradeneeded=Ee=>{0===Ee.oldVersion&&Ee.target.result.createObjectStore(rr,{keyPath:"compositeKey"})}}catch(W){C(Wn.create("storage-open",{originalErrorMessage:null===(A=W)||void 0===A?void 0:A.message}))}})}()){this.appId=C,this.appName=A,this.namespace=W,this.openDbPromise=Ee}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(C){return this.set("last_fetch_status",C)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(C){return this.set("last_successful_fetch_timestamp_millis",C)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(C){return this.set("last_successful_fetch_response",C)}getActiveConfig(){return this.get("active_config")}setActiveConfig(C){return this.set("active_config",C)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(C){return this.set("active_config_etag",C)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(C){return this.set("throttle_metadata",C)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(C){var A=this;return(0,N.Z)(function*(){const W=yield A.openDbPromise;return new Promise((Ee,Fe)=>{var Je;const Ut=W.transaction([rr],"readonly").objectStore(rr),Zt=A.createCompositeKey(C);try{const nn=Ut.get(Zt);nn.onerror=jt=>{Fe(Gr(jt,"storage-get"))},nn.onsuccess=jt=>{const wi=jt.target.result;Ee(wi?wi.value:void 0)}}catch(nn){Fe(Wn.create("storage-get",{originalErrorMessage:null===(Je=nn)||void 0===Je?void 0:Je.message}))}})})()}set(C,A){var W=this;return(0,N.Z)(function*(){const Ee=yield W.openDbPromise;return new Promise((Fe,Je)=>{var ht;const Zt=Ee.transaction([rr],"readwrite").objectStore(rr),nn=W.createCompositeKey(C);try{const jt=Zt.put({compositeKey:nn,value:A});jt.onerror=wi=>{Je(Gr(wi,"storage-set"))},jt.onsuccess=()=>{Fe()}}catch(jt){Je(Wn.create("storage-set",{originalErrorMessage:null===(ht=jt)||void 0===ht?void 0:ht.message}))}})})()}delete(C){var A=this;return(0,N.Z)(function*(){const W=yield A.openDbPromise;return new Promise((Ee,Fe)=>{var Je;const Ut=W.transaction([rr],"readwrite").objectStore(rr),Zt=A.createCompositeKey(C);try{const nn=Ut.delete(Zt);nn.onerror=jt=>{Fe(Gr(jt,"storage-delete"))},nn.onsuccess=()=>{Ee()}}catch(nn){Fe(Wn.create("storage-delete",{originalErrorMessage:null===(Je=nn)||void 0===Je?void 0:Je.message}))}})})()}createCompositeKey(C){return[this.appId,this.appName,this.namespace,C].join()}}class Xr{constructor(C){this.storage=C}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var C=this;return(0,N.Z)(function*(){const A=C.storage.getLastFetchStatus(),W=C.storage.getLastSuccessfulFetchTimestampMillis(),Ee=C.storage.getActiveConfig(),Fe=yield A;Fe&&(C.lastFetchStatus=Fe);const Je=yield W;Je&&(C.lastSuccessfulFetchTimestampMillis=Je);const ht=yield Ee;ht&&(C.activeConfig=ht)})()}setLastFetchStatus(C){return this.lastFetchStatus=C,this.storage.setLastFetchStatus(C)}setLastSuccessfulFetchTimestampMillis(C){return this.lastSuccessfulFetchTimestampMillis=C,this.storage.setLastSuccessfulFetchTimestampMillis(C)}setActiveConfig(C){return this.activeConfig=C,this.storage.setActiveConfig(C)}}function Mi(){return go.apply(this,arguments)}function go(){return(go=(0,N.Z)(function*(){if(!(0,K.hl)())return!1;try{return yield(0,K.eu)()}catch{return!1}})).apply(this,arguments)}!function Vi(){(0,$._registerComponent)(new q.wA("remote-config",function D(C,{instanceIdentifier:A}){const W=C.getProvider("app").getImmediate(),Ee=C.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Wn.create("registration-window");if(!(0,K.hl)())throw Wn.create("indexed-db-unavailable");const{projectId:Fe,apiKey:Je,appId:ht}=W.options;if(!Fe)throw Wn.create("registration-project-id");if(!Je)throw Wn.create("registration-api-key");if(!ht)throw Wn.create("registration-app-id");const Ut=new Ln(ht,W.name,A=A||"firebase"),Zt=new Xr(Ut),nn=new se.Yd(zr);nn.logLevel=se.in.ERROR;const jt=new gi(Ee,$.SDK_VERSION,A,Fe,Je,ht),wi=new nr(jt,Ut),Bi=new pi(wi,Ut,Zt,nn),la=new Tr(W,Bi,Zt,Ut,nn);return function hn(D){const C=(0,K.m9)(D);C._initializePromise||(C._initializePromise=C._storageCache.loadFromStorage().then(()=>{C._isInitializationComplete=!0}))}(la),la},"PUBLIC").setMultipleInstances(!0)),(0,$.registerVersion)(zr,"0.3.14"),(0,$.registerVersion)(zr,"0.3.14","esm2017")}();const Ir="/firebase-messaging-sw.js",Ai="/firebase-cloud-messaging-push-scope",Gi="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",mo="google.c.a.c_id",yo="google.c.a.c_l",Io="google.c.a.ts",vs="google.c.a.e";var ei=(()=>{return(D=ei||(ei={})).PUSH_RECEIVED="push-received",D.NOTIFICATION_CLICKED="notification-clicked",ei;var D})();function le(D){const C=new Uint8Array(D);return btoa(String.fromCharCode(...C)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function pe(D){const A=(D+"=".repeat((4-D.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),W=atob(A),Ee=new Uint8Array(W.length);for(let Fe=0;Fe<W.length;++Fe)Ee[Fe]=W.charCodeAt(Fe);return Ee}const Ie="fcm_token_details_db",Xe="fcm_token_object_Store";function at(D){return Ot.apply(this,arguments)}function Ot(){return Ot=(0,N.Z)(function*(D){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Fe=>Fe.name).includes(Ie))return null;let C=null;return(yield(0,ie.X3)(Ie,5,{upgrade:(W=(0,N.Z)(function*(Ee,Fe,Je,ht){var Ut;if(Fe<2||!Ee.objectStoreNames.contains(Xe))return;const Zt=ht.objectStore(Xe),nn=yield Zt.index("fcmSenderId").get(D);if(yield Zt.clear(),nn)if(2===Fe){const jt=nn;if(!jt.auth||!jt.p256dh||!jt.endpoint)return;C={token:jt.fcmToken,createTime:null!==(Ut=jt.createTime)&&void 0!==Ut?Ut:Date.now(),subscriptionOptions:{auth:jt.auth,p256dh:jt.p256dh,endpoint:jt.endpoint,swScope:jt.swScope,vapidKey:"string"==typeof jt.vapidKey?jt.vapidKey:le(jt.vapidKey)}}}else if(3===Fe){const jt=nn;C={token:jt.fcmToken,createTime:jt.createTime,subscriptionOptions:{auth:le(jt.auth),p256dh:le(jt.p256dh),endpoint:jt.endpoint,swScope:jt.swScope,vapidKey:le(jt.vapidKey)}}}else if(4===Fe){const jt=nn;C={token:jt.fcmToken,createTime:jt.createTime,subscriptionOptions:{auth:le(jt.auth),p256dh:le(jt.p256dh),endpoint:jt.endpoint,swScope:jt.swScope,vapidKey:le(jt.vapidKey)}}}}),function(Fe,Je,ht,Ut){return W.apply(this,arguments)})})).close(),yield(0,ie.Lj)(Ie),yield(0,ie.Lj)("fcm_vapid_details_db"),yield(0,ie.Lj)("undefined"),Pn(C)?C:null;var W}),Ot.apply(this,arguments)}function Pn(D){if(!D||!D.subscriptionOptions)return!1;const{subscriptionOptions:C}=D;return"number"==typeof D.createTime&&D.createTime>0&&"string"==typeof D.token&&D.token.length>0&&"string"==typeof C.auth&&C.auth.length>0&&"string"==typeof C.p256dh&&C.p256dh.length>0&&"string"==typeof C.endpoint&&C.endpoint.length>0&&"string"==typeof C.swScope&&C.swScope.length>0&&"string"==typeof C.vapidKey&&C.vapidKey.length>0}const Mr="firebase-messaging-store";let Oi=null;function ai(){return Oi||(Oi=(0,ie.X3)("firebase-messaging-database",1,{upgrade:(D,C)=>{0===C&&D.createObjectStore(Mr)}})),Oi}function li(D){return so.apply(this,arguments)}function so(){return(so=(0,N.Z)(function*(D){const C=ti(D),W=yield(yield ai()).transaction(Mr).objectStore(Mr).get(C);if(W)return W;{const Ee=yield at(D.appConfig.senderId);if(Ee)return yield _i(D,Ee),Ee}})).apply(this,arguments)}function _i(D,C){return Fr.apply(this,arguments)}function Fr(){return(Fr=(0,N.Z)(function*(D,C){const A=ti(D),Ee=(yield ai()).transaction(Mr,"readwrite");return yield Ee.objectStore(Mr).put(C,A),yield Ee.done,C})).apply(this,arguments)}function Ki(D){return _r.apply(this,arguments)}function _r(){return(_r=(0,N.Z)(function*(D){const C=ti(D),W=(yield ai()).transaction(Mr,"readwrite");yield W.objectStore(Mr).delete(C),yield W.done})).apply(this,arguments)}function ti({appConfig:D}){return D.appId}const Sn=new K.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 ni(D,C){return yn.apply(this,arguments)}function yn(){return(yn=(0,N.Z)(function*(D,C){var A;const W=yield Kr(D),Ee=jo(C),Fe={method:"POST",headers:W,body:JSON.stringify(Ee)};let Je;try{Je=yield(yield fetch(Zi(D.appConfig),Fe)).json()}catch(ht){throw Sn.create("token-subscribe-failed",{errorInfo:null===(A=ht)||void 0===A?void 0:A.toString()})}if(Je.error)throw Sn.create("token-subscribe-failed",{errorInfo:Je.error.message});if(!Je.token)throw Sn.create("token-subscribe-no-token");return Je.token})).apply(this,arguments)}function Mo(D,C){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,N.Z)(function*(D,C){var A;const W=yield Kr(D),Ee=jo(C.subscriptionOptions),Fe={method:"PATCH",headers:W,body:JSON.stringify(Ee)};let Je;try{Je=yield(yield fetch(`${Zi(D.appConfig)}/${C.token}`,Fe)).json()}catch(ht){throw Sn.create("token-update-failed",{errorInfo:null===(A=ht)||void 0===A?void 0:A.toString()})}if(Je.error)throw Sn.create("token-update-failed",{errorInfo:Je.error.message});if(!Je.token)throw Sn.create("token-update-no-token");return Je.token})).apply(this,arguments)}function fr(D,C){return ao.apply(this,arguments)}function ao(){return(ao=(0,N.Z)(function*(D,C){var A;const Ee={method:"DELETE",headers:yield Kr(D)};try{const Je=yield(yield fetch(`${Zi(D.appConfig)}/${C}`,Ee)).json();if(Je.error)throw Sn.create("token-unsubscribe-failed",{errorInfo:Je.error.message})}catch(Fe){throw Sn.create("token-unsubscribe-failed",{errorInfo:null===(A=Fe)||void 0===A?void 0:A.toString()})}})).apply(this,arguments)}function Zi({projectId:D}){return`https://fcmregistrations.googleapis.com/v1/projects/${D}/registrations`}function Kr(D){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,N.Z)(function*({appConfig:D,installations:C}){const A=yield C.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":D.apiKey,"x-goog-firebase-installations-auth":`FIS ${A}`})})).apply(this,arguments)}function jo({p256dh:D,auth:C,endpoint:A,vapidKey:W}){const Ee={web:{endpoint:A,auth:C,p256dh:D}};return W!==Gi&&(Ee.web.applicationPubKey=W),Ee}const Di=6048e5;function Ao(D){return ui.apply(this,arguments)}function ui(){return(ui=(0,N.Z)(function*(D){const C=yield Rs(D.swRegistration,D.vapidKey),A={vapidKey:D.vapidKey,swScope:D.swRegistration.scope,endpoint:C.endpoint,auth:le(C.getKey("auth")),p256dh:le(C.getKey("p256dh"))},W=yield li(D.firebaseDependencies);if(W){if(ts(W.subscriptionOptions,A))return Date.now()>=W.createTime+Di?Nt(D,{token:W.token,createTime:Date.now(),subscriptionOptions:A}):W.token;try{yield fr(D.firebaseDependencies,W.token)}catch(Ee){console.warn(Ee)}return es(D.firebaseDependencies,A)}return es(D.firebaseDependencies,A)})).apply(this,arguments)}function Xo(D){return Ei.apply(this,arguments)}function Ei(){return(Ei=(0,N.Z)(function*(D){const C=yield li(D.firebaseDependencies);C&&(yield fr(D.firebaseDependencies,C.token),yield Ki(D.firebaseDependencies));const A=yield D.swRegistration.pushManager.getSubscription();return!A||A.unsubscribe()})).apply(this,arguments)}function Nt(D,C){return vo.apply(this,arguments)}function vo(){return(vo=(0,N.Z)(function*(D,C){try{const A=yield Mo(D.firebaseDependencies,C),W=Object.assign(Object.assign({},C),{token:A,createTime:Date.now()});return yield _i(D.firebaseDependencies,W),A}catch(A){throw yield Xo(D),A}})).apply(this,arguments)}function es(D,C){return Po.apply(this,arguments)}function Po(){return(Po=(0,N.Z)(function*(D,C){const W={token:yield ni(D,C),createTime:Date.now(),subscriptionOptions:C};return yield _i(D,W),W.token})).apply(this,arguments)}function Rs(D,C){return Ho.apply(this,arguments)}function Ho(){return(Ho=(0,N.Z)(function*(D,C){return(yield D.pushManager.getSubscription())||D.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:pe(C)})})).apply(this,arguments)}function ts(D,C){return C.vapidKey===D.vapidKey&&C.endpoint===D.endpoint&&C.auth===D.auth&&C.p256dh===D.p256dh}function xs(D){const C={from:D.from,collapseKey:D.collapse_key,messageId:D.fcmMessageId};return function _s(D,C){if(!C.notification)return;D.notification={};const A=C.notification.title;A&&(D.notification.title=A);const W=C.notification.body;W&&(D.notification.body=W);const Ee=C.notification.image;Ee&&(D.notification.image=Ee)}(C,D),function He(D,C){C.data&&(D.data=C.data)}(C,D),function en(D,C){var A,W,Ee,Fe,Je;if(!(C.fcmOptions||null!==(A=C.notification)&&void 0!==A&&A.click_action))return;D.fcmOptions={};const ht=null!==(Ee=null===(W=C.fcmOptions)||void 0===W?void 0:W.link)&&void 0!==Ee?Ee:null===(Fe=C.notification)||void 0===Fe?void 0:Fe.click_action;ht&&(D.fcmOptions.link=ht);const Ut=null===(Je=C.fcmOptions)||void 0===Je?void 0:Je.analytics_label;Ut&&(D.fcmOptions.analyticsLabel=Ut)}(C,D),C}function Yi(D){return"object"==typeof D&&!!D&&mo in D}function $o(D,C){const A=[];for(let W=0;W<D.length;W++)A.push(D.charAt(W)),W<C.length&&A.push(C.charAt(W));return A.join("")}function _o(D){return Sn.create("missing-app-config-values",{valueName:D})}$o("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),$o("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Oo{constructor(C,A,W){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Ee=function hr(D){if(!D||!D.options)throw _o("App Configuration Object");if(!D.name)throw _o("App Name");const C=["projectId","apiKey","appId","messagingSenderId"],{options:A}=D;for(const W of C)if(!A[W])throw _o(W);return{appName:D.name,projectId:A.projectId,apiKey:A.apiKey,appId:A.appId,senderId:A.messagingSenderId}}(C);this.firebaseDependencies={app:C,appConfig:Ee,installations:A,analyticsProvider:W}}_delete(){return Promise.resolve()}}function Lr(D){return Ro.apply(this,arguments)}function Ro(){return(Ro=(0,N.Z)(function*(D){var C;try{D.swRegistration=yield navigator.serviceWorker.register(Ir,{scope:Ai}),D.swRegistration.update().catch(()=>{})}catch(A){throw Sn.create("failed-service-worker-registration",{browserErrorMessage:null===(C=A)||void 0===C?void 0:C.message})}})).apply(this,arguments)}function Vo(D,C){return zo.apply(this,arguments)}function zo(){return(zo=(0,N.Z)(function*(D,C){if(!C&&!D.swRegistration&&(yield Lr(D)),C||!D.swRegistration){if(!(C instanceof ServiceWorkerRegistration))throw Sn.create("invalid-sw-registration");D.swRegistration=C}})).apply(this,arguments)}function Ds(D,C){return Qi.apply(this,arguments)}function Qi(){return(Qi=(0,N.Z)(function*(D,C){C?D.vapidKey=C:D.vapidKey||(D.vapidKey=Gi)})).apply(this,arguments)}function On(){return(On=(0,N.Z)(function*(D,C){if(!navigator)throw Sn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Sn.create("permission-blocked");return yield Ds(D,C?.vapidKey),yield Vo(D,C?.serviceWorkerRegistration),Ao(D)})).apply(this,arguments)}function Ci(D,C,A){return Br.apply(this,arguments)}function Br(){return(Br=(0,N.Z)(function*(D,C,A){const W=Ur(C);(yield D.firebaseDependencies.analyticsProvider.get()).logEvent(W,{message_id:A[mo],message_name:A[yo],message_time:A[Io],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function Ur(D){switch(D){case ei.NOTIFICATION_CLICKED:return"notification_open";case ei.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Do(){return(Do=(0,N.Z)(function*(D,C){const A=C.data;if(!A.isFirebaseMessaging)return;D.onMessageHandler&&A.messageType===ei.PUSH_RECEIVED&&("function"==typeof D.onMessageHandler?D.onMessageHandler(xs(A)):D.onMessageHandler.next(xs(A)));const W=A.data;Yi(W)&&"1"===W[vs]&&(yield Ci(D,A.messageType,W))})).apply(this,arguments)}const xo="@firebase/messaging",lo=D=>{const C=new Oo(D.getProvider("app").getImmediate(),D.getProvider("installations-internal").getImmediate(),D.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",A=>function ns(D,C){return Do.apply(this,arguments)}(C,A)),C},Ri=D=>{const C=D.getProvider("messaging").getImmediate();return{getToken:W=>function Dr(D,C){return On.apply(this,arguments)}(C,W)}};function xi(){return Ni.apply(this,arguments)}function Ni(){return(Ni=(0,N.Z)(function*(){try{yield(0,K.eu)()}catch{return!1}return typeof window<"u"&&(0,K.hl)()&&(0,K.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 Go(){(0,$._registerComponent)(new q.wA("messaging",lo,"PUBLIC")),(0,$._registerComponent)(new q.wA("messaging-internal",Ri,"PRIVATE")),(0,$.registerVersion)(xo,"0.9.19"),(0,$.registerVersion)(xo,"0.9.19","esm2017")}();const Ji="analytics",Pr="firebase_id",bs="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",is="https://www.googletagmanager.com/gtag/js",pr=new se.Yd("@firebase/analytics");function ws(D){return Promise.all(D.map(C=>C.catch(A=>A)))}function Ts(D,C){const A=document.createElement("script");A.src=`${is}?l=${D}&id=${C}`,A.async=!0,document.head.appendChild(A)}function Eo(D,C,A,W,Ee,Fe){return g.apply(this,arguments)}function g(){return(g=(0,N.Z)(function*(D,C,A,W,Ee,Fe){const Je=W[Ee];try{if(Je)yield C[Je];else{const Ut=(yield ws(A)).find(Zt=>Zt.measurementId===Ee);Ut&&(yield C[Ut.appId])}}catch(ht){pr.error(ht)}D("config",Ee,Fe)})).apply(this,arguments)}function S(D,C,A,W,Ee){return v.apply(this,arguments)}function v(){return(v=(0,N.Z)(function*(D,C,A,W,Ee){try{let Fe=[];if(Ee&&Ee.send_to){let Je=Ee.send_to;Array.isArray(Je)||(Je=[Je]);const ht=yield ws(A);for(const Ut of Je){const Zt=ht.find(jt=>jt.measurementId===Ut),nn=Zt&&C[Zt.appId];if(!nn){Fe=[];break}Fe.push(nn)}}0===Fe.length&&(Fe=Object.values(C)),yield Promise.all(Fe),D("event",W,Ee||{})}catch(Fe){pr.error(Fe)}})).apply(this,arguments)}function Oe(D){const C=window.document.getElementsByTagName("script");for(const A of Object.values(C))if(A.src&&A.src.includes(is)&&A.src.includes(D))return A;return null}const dt=new K.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}","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.'}),qt=new class vn{constructor(C={},A=1e3){this.throttleMetadata=C,this.intervalMillis=A}getThrottleMetadata(C){return this.throttleMetadata[C]}setThrottleMetadata(C,A){this.throttleMetadata[C]=A}deleteThrottleMetadata(C){delete this.throttleMetadata[C]}};function Jn(D){return new Headers({Accept:"application/json","x-goog-api-key":D})}function Rn(D){return Yn.apply(this,arguments)}function Yn(){return(Yn=(0,N.Z)(function*(D){var C;const{appId:A,apiKey:W}=D,Ee={method:"GET",headers:Jn(W)},Fe=bs.replace("{app-id}",A),Je=yield fetch(Fe,Ee);if(200!==Je.status&&304!==Je.status){let ht="";try{const Ut=yield Je.json();null!==(C=Ut.error)&&void 0!==C&&C.message&&(ht=Ut.error.message)}catch{}throw dt.create("config-fetch-failed",{httpStatus:Je.status,responseMessage:ht})}return Je.json()})).apply(this,arguments)}function mi(D){return ri.apply(this,arguments)}function ri(){return(ri=(0,N.Z)(function*(D,C=qt,A){const{appId:W,apiKey:Ee,measurementId:Fe}=D.options;if(!W)throw dt.create("no-app-id");if(!Ee){if(Fe)return{measurementId:Fe,appId:W};throw dt.create("no-api-key")}const Je=C.getThrottleMetadata(W)||{backoffCount:0,throttleEndTimeMillis:Date.now()},ht=new co;return setTimeout((0,N.Z)(function*(){ht.abort()}),void 0!==A?A:6e4),Or({appId:W,apiKey:Ee,measurementId:Fe},Je,ht,C)})).apply(this,arguments)}function Or(D,C,A){return Xn.apply(this,arguments)}function Xn(){return(Xn=(0,N.Z)(function*(D,{throttleEndTimeMillis:C,backoffCount:A},W,Ee=qt){var Fe,Je;const{appId:ht,measurementId:Ut}=D;try{yield ki(W,C)}catch(Zt){if(Ut)return pr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ut} provided in the "measurementId" field in the local Firebase config. [${null===(Fe=Zt)||void 0===Fe?void 0:Fe.message}]`),{appId:ht,measurementId:Ut};throw Zt}try{const Zt=yield Rn(D);return Ee.deleteThrottleMetadata(ht),Zt}catch(Zt){const nn=Zt;if(!Co(nn)){if(Ee.deleteThrottleMetadata(ht),Ut)return pr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ut} provided in the "measurementId" field in the local Firebase config. [${nn?.message}]`),{appId:ht,measurementId:Ut};throw Zt}const jt=503===Number(null===(Je=nn?.customData)||void 0===Je?void 0:Je.httpStatus)?(0,K.$s)(A,Ee.intervalMillis,30):(0,K.$s)(A,Ee.intervalMillis),wi={throttleEndTimeMillis:Date.now()+jt,backoffCount:A+1};return Ee.setThrottleMetadata(ht,wi),pr.debug(`Calling attemptFetch again in ${jt} millis`),Or(D,wi,W,Ee)}})).apply(this,arguments)}function ki(D,C){return new Promise((A,W)=>{const Ee=Math.max(C-Date.now(),0),Fe=setTimeout(A,Ee);D.addEventListener(()=>{clearTimeout(Fe),W(dt.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}function Co(D){if(!(D instanceof K.ZR&&D.customData))return!1;const C=Number(D.customData.httpStatus);return 429===C||500===C||503===C||504===C}class co{constructor(){this.listeners=[]}addEventListener(C){this.listeners.push(C)}abort(){this.listeners.forEach(C=>C())}}let os,Fi;function Wo(){return(Wo=(0,N.Z)(function*(D,C,A,W,Ee){if(Ee&&Ee.global)D("event",A,W);else{const Fe=yield C;D("event",A,Object.assign(Object.assign({},W),{send_to:Fe}))}})).apply(this,arguments)}function E(D){Fi=D}function s(D){os=D}function a(){return y.apply(this,arguments)}function y(){return(y=(0,N.Z)(function*(){var D;if(!(0,K.hl)())return pr.warn(dt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,K.eu)()}catch(C){return pr.warn(dt.create("indexeddb-unavailable",{errorInfo:null===(D=C)||void 0===D?void 0:D.toString()}).message),!1}return!0})).apply(this,arguments)}function x(){return(x=(0,N.Z)(function*(D,C,A,W,Ee,Fe,Je){var ht;const Ut=mi(D);Ut.then(Bi=>{A[Bi.measurementId]=Bi.appId,D.options.measurementId&&Bi.measurementId!==D.options.measurementId&&pr.warn(`The measurement ID in the local Firebase config (${D.options.measurementId}) does not match the measurement ID fetched from the server (${Bi.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(Bi=>pr.error(Bi)),C.push(Ut);const Zt=a().then(Bi=>{if(Bi)return W.getId()}),[nn,jt]=yield Promise.all([Ut,Zt]);Oe(Fe)||Ts(Fe,nn.measurementId),Fi&&(Ee("consent","default",Fi),E(void 0)),Ee("js",new Date);const wi=null!==(ht=Je?.config)&&void 0!==ht?ht:{};return wi.origin="firebase",wi.update=!0,null!=jt&&(wi[Pr]=jt),Ee("config",nn.measurementId,wi),os&&(Ee("set",os),s(void 0)),nn.measurementId})).apply(this,arguments)}class ne{constructor(C){this.app=C}_delete(){return delete ee[this.app.options.appId],Promise.resolve()}}let ee={},Re=[];const Ge={};let Wt,Lt,st="dataLayer",Tt=!1;function xn(D,C,A){!function _n(){const D=[];if((0,K.ru)()&&D.push("This is a browser extension environment."),(0,K.zI)()||D.push("Cookies are not available."),D.length>0){const C=D.map((W,Ee)=>`(${Ee+1}) ${W}`).join(" "),A=dt.create("invalid-analytics-context",{errorInfo:C});pr.warn(A.message)}}();const W=D.options.appId;if(!W)throw dt.create("no-app-id");if(!D.options.apiKey){if(!D.options.measurementId)throw dt.create("no-api-key");pr.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 ${D.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=ee[W])throw dt.create("already-exists",{id:W});if(!Tt){!function Fs(D){let C=[];Array.isArray(window[D])?C=window[D]:window[D]=C}(st);const{wrappedGtag:Fe,gtagCore:Je}=function z(D,C,A,W,Ee){let Fe=function(...Je){window[W].push(arguments)};return window[Ee]&&"function"==typeof window[Ee]&&(Fe=window[Ee]),window[Ee]=function M(D,C,A,W){function Fe(){return(Fe=(0,N.Z)(function*(Je,ht,Ut){try{"event"===Je?yield S(D,C,A,ht,Ut):"config"===Je?yield Eo(D,C,A,W,ht,Ut):"consent"===Je?D("consent","update",Ut):D("set",ht)}catch(Zt){pr.error(Zt)}})).apply(this,arguments)}return function Ee(Je,ht,Ut){return Fe.apply(this,arguments)}}(Fe,D,C,A),{gtagCore:Fe,wrappedGtag:window[Ee]}}(ee,Re,Ge,st,"gtag");Lt=Fe,Wt=Je,Tt=!0}return ee[W]=function I(D,C,A,W,Ee,Fe,Je){return x.apply(this,arguments)}(D,Re,Ge,C,Wt,st,A),new ne(D)}function cr(){return ii.apply(this,arguments)}function ii(){return(ii=(0,N.Z)(function*(){if((0,K.ru)()||!(0,K.zI)()||!(0,K.hl)())return!1;try{return yield(0,K.eu)()}catch{return!1}})).apply(this,arguments)}const Dn="@firebase/analytics";!function na(){(0,$._registerComponent)(new q.wA(Ji,(C,{options:A})=>xn(C.getProvider("app").getImmediate(),C.getProvider("installations-internal").getImmediate(),A),"PUBLIC")),(0,$._registerComponent)(new q.wA("analytics-internal",function D(C){try{const A=C.getProvider(Ji).getImmediate();return{logEvent:(W,Ee,Fe)=>function zs(D,C,A,W){D=(0,K.m9)(D),function ss(D,C,A,W,Ee){return Wo.apply(this,arguments)}(Lt,ee[D.app.options.appId],C,A,W).catch(Ee=>pr.error(Ee))}(A,W,Ee,Fe)}}catch(A){throw dt.create("interop-component-reg-failed",{reason:A})}},"PRIVATE")),(0,$.registerVersion)(Dn,"0.8.3"),(0,$.registerVersion)(Dn,"0.8.3","esm2017")}();var Dt=w(4408),Bt=w(7565);const Rr=new class En extends Bt.v{}(class At extends Dt.o{constructor(C,A){super(C,A),this.scheduler=C,this.work=A}schedule(C,A=0){return A>0?super.schedule(C,A):(this.delay=A,this.state=C,this.scheduler.flush(this),this)}execute(C,A){return A>0||this.closed?super.execute(C,A):this._execute(C,A)}requestAsyncId(C,A,W=0){return null!=W&&W>0||null==W&&this.delay>0?super.requestAsyncId(C,A,W):C.flush(this)}});var yi=w(4986),bo=w(8505),Jt=w(9468),Ko=w(5363);const Zo=new d.GfV("7.5.0"),xr="__angularfire_symbol__analyticsIsSupportedValue",c="__angularfire_symbol__analyticsIsSupported",f="__angularfire_symbol__remoteConfigIsSupportedValue",l="__angularfire_symbol__remoteConfigIsSupported",m="__angularfire_symbol__messagingIsSupportedValue",b="__angularfire_symbol__messagingIsSupported";function ft(D,C,A){if(C){if(1===C.length)return C[0];const Fe=C.filter(Je=>Je.app===A);if(1===Fe.length)return Fe[0]}return A.container.getProvider(D).getImmediate({optional:!0})}globalThis[c]||(globalThis[c]=cr().then(D=>globalThis[xr]=D).catch(()=>globalThis[xr]=!1)),globalThis[b]||(globalThis[b]=xi().then(D=>globalThis[m]=D).catch(()=>globalThis[m]=!1)),globalThis[l]||(globalThis[l]=Mi().then(D=>globalThis[f]=D).catch(()=>globalThis[f]=!1));const vt=(D,C)=>{const A=C?[C]:(0,p.C6)(),W=[];return A.forEach(Ee=>{Ee.container.getProvider(D).instances.forEach(Je=>{W.includes(Je)||W.push(Je)})}),W};function un(){}class $r{constructor(C,A=Rr){this.zone=C,this.delegate=A}now(){return this.delegate.now()}schedule(C,A,W){const Ee=this.zone;return this.delegate.schedule(function(Je){Ee.runGuarded(()=>{C.apply(this,[Je])})},A,W)}}class wo{constructor(C){this.zone=C,this.task=null}call(C,A){const W=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",un,{},un,un)),A.pipe((0,bo.b)({next:W,complete:W,error:W})).subscribe(C).add(W)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let To=(()=>{class D{constructor(A){this.ngZone=A,this.outsideAngular=A.runOutsideAngular(()=>new $r(Zone.current)),this.insideAngular=A.run(()=>new $r(Zone.current,yi.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return D.\u0275fac=function(A){return new(A||D)(d.LFG(d.R0b))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function bi(){const D=globalThis.\u0275AngularFireScheduler;if(!D)throw new Error("Either AngularFireModule has not been provided in your AppModule (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 D}function ia(D){return bi(),function oa(D){return function(A){return(A=A.lift(new wo(D.ngZone))).pipe((0,Jt.R)(D.outsideAngular),(0,Ko.Q)(D.insideAngular))}}(bi())(D)}},2090:(nt,De,w)=>{w.d(De,{$s:()=>_e,BH:()=>sn,L:()=>ie,LL:()=>Qe,Pz:()=>Yt,UG:()=>je,US:()=>q,ZB:()=>G,ZR:()=>Ne,aH:()=>pt,b$:()=>Pe,eu:()=>he,hl:()=>re,jU:()=>Ze,m9:()=>Ue,ne:()=>sr,pd:()=>In,r3:()=>er,ru:()=>Te,tV:()=>ue,uI:()=>Ae,vZ:()=>Kt,w1:()=>ye,xO:()=>fn,xb:()=>tn,z$:()=>Le,zI:()=>Y,zd:()=>or});const $=function(k){const U=[];let oe=0;for(let ke=0;ke<k.length;ke++){let ge=k.charCodeAt(ke);ge<128?U[oe++]=ge:ge<2048?(U[oe++]=ge>>6|192,U[oe++]=63&ge|128):55296==(64512&ge)&&ke+1<k.length&&56320==(64512&k.charCodeAt(ke+1))?(ge=65536+((1023&ge)<<10)+(1023&k.charCodeAt(++ke)),U[oe++]=ge>>18|240,U[oe++]=ge>>12&63|128,U[oe++]=ge>>6&63|128,U[oe++]=63&ge|128):(U[oe++]=ge>>12|224,U[oe++]=ge>>6&63|128,U[oe++]=63&ge|128)}return U},q={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(k,U){if(!Array.isArray(k))throw Error("encodeByteArray takes an array as a parameter");this.init_();const oe=U?this.byteToCharMapWebSafe_:this.byteToCharMap_,ke=[];for(let ge=0;ge<k.length;ge+=3){const it=k[ge],Mt=ge+1<k.length,Rt=Mt?k[ge+1]:0,Xt=ge+2<k.length,Q=Xt?k[ge+2]:0;let ve=(15&Rt)<<2|Q>>6,$e=63&Q;Xt||($e=64,Mt||(ve=64)),ke.push(oe[it>>2],oe[(3&it)<<4|Rt>>4],oe[ve],oe[$e])}return ke.join("")},encodeString(k,U){return this.HAS_NATIVE_SUPPORT&&!U?btoa(k):this.encodeByteArray($(k),U)},decodeString(k,U){return this.HAS_NATIVE_SUPPORT&&!U?atob(k):function(k){const U=[];let oe=0,ke=0;for(;oe<k.length;){const ge=k[oe++];if(ge<128)U[ke++]=String.fromCharCode(ge);else if(ge>191&&ge<224){const it=k[oe++];U[ke++]=String.fromCharCode((31&ge)<<6|63&it)}else if(ge>239&&ge<365){const Xt=((7&ge)<<18|(63&k[oe++])<<12|(63&k[oe++])<<6|63&k[oe++])-65536;U[ke++]=String.fromCharCode(55296+(Xt>>10)),U[ke++]=String.fromCharCode(56320+(1023&Xt))}else{const it=k[oe++],Mt=k[oe++];U[ke++]=String.fromCharCode((15&ge)<<12|(63&it)<<6|63&Mt)}}return U.join("")}(this.decodeStringToByteArray(k,U))},decodeStringToByteArray(k,U){this.init_();const oe=U?this.charToByteMapWebSafe_:this.charToByteMap_,ke=[];for(let ge=0;ge<k.length;){const it=oe[k.charAt(ge++)],Rt=ge<k.length?oe[k.charAt(ge)]:0;++ge;const Q=ge<k.length?oe[k.charAt(ge)]:64;++ge;const L=ge<k.length?oe[k.charAt(ge)]:64;if(++ge,null==it||null==Rt||null==Q||null==L)throw Error();ke.push(it<<2|Rt>>4),64!==Q&&(ke.push(Rt<<4&240|Q>>2),64!==L&&ke.push(Q<<6&192|L))}return ke},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let k=0;k<this.ENCODED_VALS.length;k++)this.byteToCharMap_[k]=this.ENCODED_VALS.charAt(k),this.charToByteMap_[this.byteToCharMap_[k]]=k,this.byteToCharMapWebSafe_[k]=this.ENCODED_VALS_WEBSAFE.charAt(k),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[k]]=k,k>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(k)]=k,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(k)]=k)}}},ie=function(k){return function(k){const U=$(k);return q.encodeByteArray(U,!0)}(k).replace(/\./g,"")},ue=function(k){try{return q.decodeString(k,!0)}catch(U){console.error("base64Decode failed: ",U)}return null};function G(k,U){if(!(U instanceof Object))return U;switch(U.constructor){case Date:return new Date(U.getTime());case Object:void 0===k&&(k={});break;case Array:k=[];break;default:return U}for(const oe in U)!U.hasOwnProperty(oe)||!te(oe)||(k[oe]=G(k[oe],U[oe]));return k}function te(k){return"__proto__"!==k}function Le(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Ae(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Le())}function je(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Ze(){return"object"==typeof self&&self.self===self}function Te(){const k="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof k&&void 0!==k.id}function Pe(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function ye(){const k=Le();return k.indexOf("MSIE ")>=0||k.indexOf("Trident/")>=0}function re(){return"object"==typeof indexedDB}function he(){return new Promise((k,U)=>{try{let oe=!0;const ke="validate-browser-context-for-indexeddb-analytics-module",ge=self.indexedDB.open(ke);ge.onsuccess=()=>{ge.result.close(),oe||self.indexedDB.deleteDatabase(ke),k(!0)},ge.onupgradeneeded=()=>{oe=!1},ge.onerror=()=>{var it;U((null===(it=ge.error)||void 0===it?void 0:it.message)||"")}}catch(oe){U(oe)}})}function Y(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const fe=()=>{try{return function de(){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 k=process.env.__FIREBASE_DEFAULTS__;return k?JSON.parse(k):void 0})()||(()=>{if(typeof document>"u")return;let k;try{k=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const U=k&&ue(k[1]);return U&&JSON.parse(U)})()}catch(k){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${k}`)}},pt=()=>{var k;return null===(k=fe())||void 0===k?void 0:k.config},Yt=k=>{var U;return null===(U=fe())||void 0===U?void 0:U[`_${k}`]};class sn{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((U,oe)=>{this.resolve=U,this.reject=oe})}wrapCallback(U){return(oe,ke)=>{oe?this.reject(oe):this.resolve(ke),"function"==typeof U&&(this.promise.catch(()=>{}),1===U.length?U(oe):U(oe,ke))}}}class Ne extends Error{constructor(U,oe,ke){super(oe),this.code=U,this.customData=ke,this.name="FirebaseError",Object.setPrototypeOf(this,Ne.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Qe.prototype.create)}}class Qe{constructor(U,oe,ke){this.service=U,this.serviceName=oe,this.errors=ke}create(U,...oe){const ke=oe[0]||{},ge=`${this.service}/${U}`,it=this.errors[U],Mt=it?function ce(k,U){return k.replace(xe,(oe,ke)=>{const ge=U[ke];return null!=ge?String(ge):`<${ke}?>`})}(it,ke):"Error";return new Ne(ge,`${this.serviceName}: ${Mt} (${ge}).`,ke)}}const xe=/\{\$([^}]+)}/g;function er(k,U){return Object.prototype.hasOwnProperty.call(k,U)}function tn(k){for(const U in k)if(Object.prototype.hasOwnProperty.call(k,U))return!1;return!0}function Kt(k,U){if(k===U)return!0;const oe=Object.keys(k),ke=Object.keys(U);for(const ge of oe){if(!ke.includes(ge))return!1;const it=k[ge],Mt=U[ge];if(yt(it)&&yt(Mt)){if(!Kt(it,Mt))return!1}else if(it!==Mt)return!1}for(const ge of ke)if(!oe.includes(ge))return!1;return!0}function yt(k){return null!==k&&"object"==typeof k}function fn(k){const U=[];for(const[oe,ke]of Object.entries(k))Array.isArray(ke)?ke.forEach(ge=>{U.push(encodeURIComponent(oe)+"="+encodeURIComponent(ge))}):U.push(encodeURIComponent(oe)+"="+encodeURIComponent(ke));return U.length?"&"+U.join("&"):""}function or(k){const U={};return k.replace(/^\?/,"").split("&").forEach(ke=>{if(ke){const[ge,it]=ke.split("=");U[decodeURIComponent(ge)]=decodeURIComponent(it)}}),U}function In(k){const U=k.indexOf("?");if(!U)return"";const oe=k.indexOf("#",U);return k.substring(U,oe>0?oe:void 0)}function sr(k,U){const oe=new It(k,U);return oe.subscribe.bind(oe)}class It{constructor(U,oe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=oe,this.task.then(()=>{U(this)}).catch(ke=>{this.error(ke)})}next(U){this.forEachObserver(oe=>{oe.next(U)})}error(U){this.forEachObserver(oe=>{oe.error(U)}),this.close(U)}complete(){this.forEachObserver(U=>{U.complete()}),this.close()}subscribe(U,oe,ke){let ge;if(void 0===U&&void 0===oe&&void 0===ke)throw new Error("Missing Observer.");ge=function lt(k,U){if("object"!=typeof k||null===k)return!1;for(const oe of U)if(oe in k&&"function"==typeof k[oe])return!0;return!1}(U,["next","error","complete"])?U:{next:U,error:oe,complete:ke},void 0===ge.next&&(ge.next=Ct),void 0===ge.error&&(ge.error=Ct),void 0===ge.complete&&(ge.complete=Ct);const it=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ge.error(this.finalError):ge.complete()}catch{}}),this.observers.push(ge),it}unsubscribeOne(U){void 0===this.observers||void 0===this.observers[U]||(delete this.observers[U],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(U){if(!this.finalized)for(let oe=0;oe<this.observers.length;oe++)this.sendOne(oe,U)}sendOne(U,oe){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[U])try{oe(this.observers[U])}catch(ke){typeof console<"u"&&console.error&&console.error(ke)}})}close(U){this.finalized||(this.finalized=!0,void 0!==U&&(this.finalError=U),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Ct(){}function _e(k,U=1e3,oe=2){const ke=U*Math.pow(oe,k),ge=Math.round(.5*ke*(Math.random()-.5)*2);return Math.min(144e5,ke+ge)}function Ue(k){return k&&k._delegate?k._delegate:k}},1318:(nt,De,w)=>{w.d(De,{O:()=>Te});var d=w(515),p=w(9751),N=w(262),$=w(4986),K=w(1165),q=w(4482),se=w(8421),ie=w(3888),ue=w(5403),B=w(9672);const G=(0,ie.d)(Pe=>function(ye=null){Pe(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ye});function Le(Pe){throw new G(Pe)}var Ae=w(4650),je=w(529),Ze=w(7185);class Te{constructor(Se,ye){this.http=Se,this.toastr=ye}get(Se){return this.http.get(Se).pipe((0,N.K)(ye=>{let Ce=this.errorMessageHandling(ye);return this.toastr.error(""!=Ce.message?Ce.message:"An unknown error has occured!",Ce.header),d.E}))}post(Se,ye,Ce={},F=1e5){return new p.y(ae=>{this.http.post(Se,ye,Ce).pipe(function te(Pe,Se){const{first:ye,each:Ce,with:F=Le,scheduler:ae=Se??$.z,meta:re=null}=(0,K.q)(Pe)?{first:Pe}:"number"==typeof Pe?{each:Pe}:Pe;if(null==ye&&null==Ce)throw new TypeError("No timeout provided.");return(0,q.e)((he,Y)=>{let de,j,Z=null,be=0;const fe=ze=>{j=(0,B.f)(Y,ae,()=>{try{de.unsubscribe(),(0,se.Xf)(F({meta:re,lastValue:Z,seen:be})).subscribe(Y)}catch(Ke){Y.error(Ke)}},ze)};de=he.subscribe((0,ue.x)(Y,ze=>{j?.unsubscribe(),be++,Y.next(Z=ze),Ce>0&&fe(Ce)},void 0,void 0,()=>{j?.closed||j?.unsubscribe(),Z=null})),!be&&fe(null!=ye?"number"==typeof ye?ye:+ye-ae.now():Ce)})}(F)).subscribe({next:re=>{ae.next(re),ae.complete()},error:re=>{if(200==re.status)ae.next(re.error.text),ae.complete();else{if(!this.unauthorizedErrorHandling(re)&&!Array.isArray(re?.error?.Message)){let Y=this.errorMessageHandling(re);this.toastr.error(""!=Y.message?Y.message:"An unknown error has occured!",Y.header,{enableHtml:!0})}ae.error(re)}}})})}unauthorizedErrorHandling(Se){let ye=!1;return 401==Se.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",ye=!0),ye}errorMessageHandling(Se){let ye="API Error",Ce="Exception Message";return Se.error?(ye="API Error - "+Se.status,Se.error.Message&&(Ce=-1!=Se.error.Message.indexOf("Message")?JSON.parse(Se.error.Message).Message:Se.error.Message)):Se.message&&(ye="API Error - "+Se.name,Ce=Se.message),{header:ye,message:Ce}}}Te.\u0275fac=function(Se){return new(Se||Te)(Ae.LFG(je.eN),Ae.LFG(Ze._W))},Te.\u0275prov=Ae.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"})},8002:(nt,De,w)=>{w.d(De,{e:()=>p});var d=w(4650);class p{constructor(){}getParseToken(){let $=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken($.Token.access_token)}GetRoles(){return this.getParseToken().Role}ParseToken($){try{const q=$.split(".")[0].replace("-","+").replace("_","/"),se=JSON.parse(window.atob(q)),ue=$.split(".")[1].replace("-","+").replace("_","/"),B=JSON.parse(window.atob(ue));return B.header=se,B}catch{return!1}}}p.\u0275fac=function($){return new($||p)},p.\u0275prov=d.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})},2340:(nt,De,w)=>{w.d(De,{N:()=>d});const d={production:!0,version:"2.7.3",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"}}},5059:(nt,De,w)=>{var d=w(1481),p=w(4650),N=w(529),$=w(4707);function K(E,s){return(a,y)=>!E.call(s,a,y)}var q=w(9300),se=w(8421),ue=w(6451),B=w(2805),G=w(8746),te=w(3900),Le=w(4482),Ae=w(5032),je=w(5403);function Ze(E){return(0,Le.e)((s,a)=>{let y=!1,I=null,x=null;const ne=()=>{if(x?.unsubscribe(),x=null,y){y=!1;const ee=I;I=null,a.next(ee)}};s.subscribe((0,je.x)(a,ee=>{x?.unsubscribe(),y=!0,I=ee,x=(0,je.x)(a,ne,Ae.Z),(0,se.Xf)(E(ee)).subscribe(x)},()=>{ne(),a.complete()},void 0,()=>{I=x=null}))})}var Te=w(1884),Pe=w(8505),Se=w(6895);function ye(E,s){1&E&&p.GkF(0)}function Ce(E,s){if(1&E&&p._UZ(0,"sk-cube-grid",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function F(E,s){if(1&E&&p._UZ(0,"sk-chasing-dots",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function ae(E,s){if(1&E&&p._UZ(0,"sk-double-bounce",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function re(E,s){if(1&E&&p._UZ(0,"sk-rotating-plane",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function he(E,s){if(1&E&&p._UZ(0,"sk-spinner-pulse",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function Y(E,s){if(1&E&&p._UZ(0,"sk-three-bounce",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function de(E,s){if(1&E&&p._UZ(0,"sk-wandering-cubes",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}function j(E,s){if(1&E&&p._UZ(0,"sk-wave",4),2&E){const a=p.oxw(2);p.Q6J("backgroundColor",a.backgroundColor)}}const Z=function(E){return{"background-color":E}};function be(E,s){if(1&E&&(p.TgZ(0,"div",1),p.YNc(1,ye,1,0,"ng-container",2),p.YNc(2,Ce,1,1,"sk-cube-grid",3),p.YNc(3,F,1,1,"sk-chasing-dots",3),p.YNc(4,ae,1,1,"sk-double-bounce",3),p.YNc(5,re,1,1,"sk-rotating-plane",3),p.YNc(6,he,1,1,"sk-spinner-pulse",3),p.YNc(7,Y,1,1,"sk-three-bounce",3),p.YNc(8,de,1,1,"sk-wandering-cubes",3),p.YNc(9,j,1,1,"sk-wave",3),p.qZA()),2&E){const a=p.oxw();p.Udp("opacity",a.opacity),p.ekj("backdrop",a.backdrop),p.Q6J("ngStyle",p.VKq(14,Z,a.backdrop?a.backdropBackgroundColor:"transparent")),p.xp6(1),p.Q6J("ngComponentOutlet",a.entryComponent),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skCubeGrid),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skChasingDots),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skDoubleBounce),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skRotatingPlane),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skSpinnerPulse),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skThreeBounce),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skWanderingCubes),p.xp6(1),p.Q6J("ngIf",a.spinner===a.spinkit.skWave)}}let fe=(()=>{class E{}return E.\u0275fac=function(a){return new(a||E)},E.\u0275dir=p.lG2({type:E,inputs:{backgroundColor:"backgroundColor"}}),E})(),ze=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-chasing-dots"]],features:[p.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),E})(),Ke=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-cube-grid"]],features:[p.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),E})(),pt=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-double-bounce"]],features:[p.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),E})(),Yt=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-rotating-plane"]],features:[p.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(a,y){1&a&&p._UZ(0,"div",0),2&a&&p.Udp("background-color",y.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),E})(),sn=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-spinner-pulse"]],features:[p.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(a,y){1&a&&p._UZ(0,"div",0),2&a&&p.Udp("background-color",y.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),E})(),bt=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-three-bounce"]],features:[p.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2)(3,"div",3),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),E})(),St=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-wandering-cubes"]],features:[p.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),E})(),Ne=(()=>{class E extends fe{}return E.\u0275fac=function(){let s;return function(y){return(s||(s=p.n5z(E)))(y||E)}}(),E.\u0275cmp=p.Xpm({type:E,selectors:[["sk-wave"]],features:[p.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(a,y){1&a&&(p.TgZ(0,"div",0),p._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),p.qZA()),2&a&&(p.ekj("colored",!y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor),p.xp6(1),p.Udp("background-color",y.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),E})();const Qe={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let xe=(()=>{class E{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new $.t(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(a){this._filteredMethods=a}set filteredHeaders(a){this._filteredHeaders=a}set forceByPass(a){this._forceByPass=a}shouldBypassUrl(a){return this._filteredUrlPatterns.some(y=>y.test(a))}shouldBypassMethod(a){return this._filteredMethods.some(y=>y.toUpperCase()===a.method.toUpperCase())}shouldBypassHeader(a){return this._filteredHeaders.some(y=>a.headers.has(y))}shouldBypass(a){return this._forceByPass||this.shouldBypassUrl(a.urlWithParams)||this.shouldBypassMethod(a)||this.shouldBypassHeader(a)}intercept(a,y){const I=this.shouldBypass(a);return I||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),y.handle(a).pipe((0,G.x)(()=>{I||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const et=[{provide:N.TP,useExisting:xe,multi:!0}];let Pt=(()=>{class E{constructor(a){this.pendingRequestsInterceptor=a,this._visibility$=new $.t(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return E.\u0275fac=function(a){return new(a||E)(p.LFG(xe))},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})(),zt=(()=>{class E{constructor(a,y){this.pendingRequestsInterceptor=a,this.spinnerVisibility=y,this.spinkit=Qe,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=Qe.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[a,y]=function ie(E,s,a){return[(0,q.h)(s,a)((0,se.Xf)(E)),(0,q.h)(K(s,a))((0,se.Xf)(E))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,I=>I);this.isVisible$=(0,ue.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,te.w)(()=>a.pipe(Ze(()=>(0,B.H)(this.debounceDelay))))),a.pipe((0,te.w)(()=>y.pipe(Ze(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Te.x)(),(0,Pe.b)(I=>this.updateExpirationDelay(I)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(a=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(a)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(a){a&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,B.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return E.\u0275fac=function(a){return new(a||E)(p.Y36(xe),p.Y36(Pt))},E.\u0275cmp=p.Xpm({type:E,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(a,y){1&a&&(p.YNc(0,be,10,16,"div",0),p.ALo(1,"async")),2&a&&p.Q6J("ngIf",p.lcZ(1,1,y.isVisible$))},dependencies:[Se.$G,Se.O5,Se.PC,Ke,ze,pt,Yt,sn,bt,St,Ne,Se.Ov],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),E})(),an=(()=>{class E{static forRoot(){return{ngModule:E,providers:[et]}}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275mod=p.oAB({type:E}),E.\u0275inj=p.cJS({imports:[Se.ez]}),E})();var ln=w(1318),ir=w(8002),Bn=w(6806);const er=[{path:"",loadChildren:()=>Promise.all([w.e(796),w.e(291),w.e(369)]).then(w.bind(w,9369)).then(E=>E.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([w.e(291),w.e(397)]).then(w.bind(w,2397)).then(E=>E.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];class $n{}$n.\u0275fac=function(s){return new(s||$n)},$n.\u0275mod=p.oAB({type:$n}),$n.\u0275inj=p.cJS({imports:[Bn.Bz.forRoot(er,{}),Bn.Bz]});var tn=w(4004),jn=w(5577);class Kt{constructor(s,a,y){this._router=s,this.titleService=a,this.activatedRoute=y}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,q.h)(s=>s instanceof Bn.m2)).pipe((0,tn.U)(()=>this.activatedRoute),(0,tn.U)(s=>{for(;s.firstChild;)s=s.firstChild;return s}),(0,q.h)(s=>"primary"===s.outlet),(0,jn.z)(s=>s.data)).subscribe(s=>{let a=" | Marketplace";"Dealpos x Marketplace"==s.title&&(a=""),this.titleService.setTitle(s.title+a)})}overrideDateToJsonFunction(){function s(a){return a<10?"0"+a:a}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+s(this.getMonth()+1)+"-"+s(this.getDate())+"T"+s(this.getHours())+":"+s(this.getMinutes())+":"+s(this.getSeconds())+".000"}}}Kt.\u0275fac=function(s){return new(s||Kt)(p.Y36(Bn.F0),p.Y36(d.Dx),p.Y36(Bn.gz))},Kt.\u0275cmp=p.Xpm({type:Kt,selectors:[["app-root"]],decls:2,vars:0,template:function(s,a){1&s&&p._UZ(0,"router-outlet")(1,"ng-http-loader")},dependencies:[Bn.lC,zt]});var yt=w(7340);function fn(E){return new p.vHH(3e3,!1)}function ve(){return typeof window<"u"&&typeof window.document<"u"}function $e(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ut(E){switch(E.length){case 0:return new yt.ZN;case 1:return E[0];default:return new yt.ZE(E)}}function Ft(E,s,a,y,I=new Map,x=new Map){const ne=[],ee=[];let Re=-1,Ge=null;if(y.forEach(st=>{const mt=st.get("offset"),Wt=mt==Re,Lt=Wt&&Ge||new Map;st.forEach((Tt,kt)=>{let _n=kt,xn=Tt;if("offset"!==kt)switch(_n=s.normalizePropertyName(_n,ne),xn){case yt.k1:xn=I.get(kt);break;case yt.l3:xn=x.get(kt);break;default:xn=s.normalizeStyleValue(kt,_n,xn,ne)}Lt.set(_n,xn)}),Wt||ee.push(Lt),Ge=Lt,Re=mt}),ne.length)throw function Ue(E){return new p.vHH(3502,!1)}();return ee}function zn(E,s,a,y){switch(s){case"start":E.onStart(()=>y(a&&Gn(a,"start",E)));break;case"done":E.onDone(()=>y(a&&Gn(a,"done",E)));break;case"destroy":E.onDestroy(()=>y(a&&Gn(a,"destroy",E)))}}function Gn(E,s,a){const x=Cr(E.element,E.triggerName,E.fromState,E.toState,s||E.phaseName,a.totalTime??E.totalTime,!!a.disabled),ne=E._data;return null!=ne&&(x._data=ne),x}function Cr(E,s,a,y,I="",x=0,ne){return{element:E,triggerName:s,fromState:a,toState:y,phaseName:I,totalTime:x,disabled:!!ne}}function Cn(E,s,a){let y=E.get(s);return y||E.set(s,y=a),y}function si(E){const s=E.indexOf(":");return[E.substring(1,s),E.slice(s+1)]}let hi=(E,s)=>!1,ho=(E,s,a)=>[],io=null;function zr(E){const s=E.parentNode||E.host;return s===io?null:s}($e()||typeof Element<"u")&&(ve()?(io=(()=>document.documentElement)(),hi=(E,s)=>{for(;s;){if(s===E)return!0;s=zr(s)}return!1}):hi=(E,s)=>E.contains(s),ho=(E,s,a)=>{if(a)return Array.from(E.querySelectorAll(s));const y=E.querySelector(s);return y?[y]:[]});let An=null,ar=!1;const ct=hi,xt=ho;let lr=(()=>{class E{validateStyleProperty(a){return function Wn(E){An||(An=function Nr(){return typeof document<"u"?document.body:null}()||{},ar=!!An.style&&"WebkitAppearance"in An.style);let s=!0;return An.style&&!function cn(E){return"ebkit"==E.substring(1,6)}(E)&&(s=E in An.style,!s&&ar&&(s="Webkit"+E.charAt(0).toUpperCase()+E.slice(1)in An.style)),s}(a)}matchesElement(a,y){return!1}containsElement(a,y){return ct(a,y)}getParentElement(a){return zr(a)}query(a,y,I){return xt(a,y,I)}computeStyle(a,y,I){return I||""}animate(a,y,I,x,ne,ee=[],Re){return new yt.ZN(I,x)}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac}),E})(),br=(()=>{class E{}return E.NOOP=new lr,E})();const Jr="ng-enter",kr="ng-leave",Ht="ng-trigger",Ti=".ng-trigger",Si="ng-animating",Hi=".ng-animating";function Kn(E){if("number"==typeof E)return E;const s=E.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:tr(parseFloat(s[1]),s[2])}function tr(E,s){return"s"===s?1e3*E:E}function vi(E,s,a){return E.hasOwnProperty("duration")?E:function pi(E,s,a){let I,x=0,ne="";if("string"==typeof E){const ee=E.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ee)return s.push(fn()),{duration:0,delay:0,easing:""};I=tr(parseFloat(ee[1]),ee[2]);const Re=ee[3];null!=Re&&(x=tr(parseFloat(Re),ee[4]));const Ge=ee[5];Ge&&(ne=Ge)}else I=E;if(!a){let ee=!1,Re=s.length;I<0&&(s.push(function or(){return new p.vHH(3100,!1)}()),ee=!0),x<0&&(s.push(function In(){return new p.vHH(3101,!1)}()),ee=!0),ee&&s.splice(Re,0,fn())}return{duration:I,delay:x,easing:ne}}(E,s,a)}function vr(E,s={}){return Object.keys(E).forEach(a=>{s[a]=E[a]}),s}function gi(E){const s=new Map;return Object.keys(E).forEach(a=>{s.set(a,E[a])}),s}function nr(E,s=new Map,a){if(a)for(let[y,I]of a)s.set(y,I);for(let[y,I]of E)s.set(y,I);return s}function Ii(E,s,a){return a?s+":"+a+";":""}function Uo(E){let s="";for(let a=0;a<E.style.length;a++){const y=E.style.item(a);s+=Ii(0,y,E.style.getPropertyValue(y))}for(const a in E.style)E.style.hasOwnProperty(a)&&!a.startsWith("_")&&(s+=Ii(0,Sr(a),E.style[a]));E.setAttribute("style",s)}function Tr(E,s,a){E.style&&(s.forEach((y,I)=>{const x=zi(I);a&&!a.has(I)&&a.set(I,E.style[x]),E.style[x]=y}),$e()&&Uo(E))}function Gr(E,s){E.style&&(s.forEach((a,y)=>{const I=zi(y);E.style[I]=""}),$e()&&Uo(E))}function rr(E){return Array.isArray(E)?1==E.length?E[0]:(0,yt.vP)(E):E}const po=new RegExp("{{\\s*(.+?)\\s*}}","g");function dr(E){let s=[];if("string"==typeof E){let a;for(;a=po.exec(E);)s.push(a[1]);po.lastIndex=0}return s}function Ln(E,s,a){const y=E.toString(),I=y.replace(po,(x,ne)=>{let ee=s[ne];return null==ee&&(a.push(function sr(E){return new p.vHH(3003,!1)}()),ee=""),ee.toString()});return I==y?E:I}function Xr(E){const s=[];let a=E.next();for(;!a.done;)s.push(a.value),a=E.next();return s}const Vi=/-+([a-z0-9])/g;function zi(E){return E.replace(Vi,(...s)=>s[1].toUpperCase())}function Sr(E){return E.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ir(E,s,a){switch(s.type){case 7:return E.visitTrigger(s,a);case 0:return E.visitState(s,a);case 1:return E.visitTransition(s,a);case 2:return E.visitSequence(s,a);case 3:return E.visitGroup(s,a);case 4:return E.visitAnimate(s,a);case 5:return E.visitKeyframes(s,a);case 6:return E.visitStyle(s,a);case 8:return E.visitReference(s,a);case 9:return E.visitAnimateChild(s,a);case 10:return E.visitAnimateRef(s,a);case 11:return E.visitQuery(s,a);case 12:return E.visitStagger(s,a);default:throw function It(E){return new p.vHH(3004,!1)}()}}function Ai(E,s){return window.getComputedStyle(E)[s]}function le(E,s){const a=[];return"string"==typeof E?E.split(/\s*,\s*/).forEach(y=>function pe(E,s,a){if(":"==E[0]){const Re=function Ie(E,s){switch(E){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,y)=>parseFloat(y)>parseFloat(a);case":decrement":return(a,y)=>parseFloat(y)<parseFloat(a);default:return s.push(function Ye(E){return new p.vHH(3016,!1)}()),"* => *"}}(E,a);if("function"==typeof Re)return void s.push(Re);E=Re}const y=E.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==y||y.length<4)return a.push(function rt(E){return new p.vHH(3015,!1)}()),s;const I=y[1],x=y[2],ne=y[3];s.push(at(I,ne));"<"==x[0]&&!("*"==I&&"*"==ne)&&s.push(at(ne,I))}(y,a,s)):a.push(E),a}const Ve=new Set(["true","1"]),Xe=new Set(["false","0"]);function at(E,s){const a=Ve.has(E)||Xe.has(E),y=Ve.has(s)||Xe.has(s);return(I,x)=>{let ne="*"==E||E==I,ee="*"==s||s==x;return!ne&&a&&"boolean"==typeof I&&(ne=I?Ve.has(E):Xe.has(E)),!ee&&y&&"boolean"==typeof x&&(ee=x?Ve.has(s):Xe.has(s)),ne&&ee}}const Pn=new RegExp("s*:selfs*,?","g");function $t(E,s,a,y){return new Mr(E).build(s,a,y)}class Mr{constructor(s){this._driver=s}build(s,a,y){const I=new li(a);return this._resetContextStyleTimingState(I),Ir(this,rr(s),I)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,a){let y=a.queryCount=0,I=a.depCount=0;const x=[],ne=[];return"@"==s.name.charAt(0)&&a.errors.push(function lt(){return new p.vHH(3006,!1)}()),s.definitions.forEach(ee=>{if(this._resetContextStyleTimingState(a),0==ee.type){const Re=ee,Ge=Re.name;Ge.toString().split(/\s*,\s*/).forEach(st=>{Re.name=st,x.push(this.visitState(Re,a))}),Re.name=Ge}else if(1==ee.type){const Re=this.visitTransition(ee,a);y+=Re.queryCount,I+=Re.depCount,ne.push(Re)}else a.errors.push(function Ct(){return new p.vHH(3007,!1)}())}),{type:7,name:s.name,states:x,transitions:ne,queryCount:y,depCount:I,options:null}}visitState(s,a){const y=this.visitStyle(s.styles,a),I=s.options&&s.options.params||null;if(y.containsDynamicStyles){const x=new Set,ne=I||{};y.styles.forEach(ee=>{ee instanceof Map&&ee.forEach(Re=>{dr(Re).forEach(Ge=>{ne.hasOwnProperty(Ge)||x.add(Ge)})})}),x.size&&(Xr(x.values()),a.errors.push(function mn(E,s){return new p.vHH(3008,!1)}()))}return{type:0,name:s.name,style:y,options:I?{params:I}:null}}visitTransition(s,a){a.queryCount=0,a.depCount=0;const y=Ir(this,rr(s.animation),a);return{type:1,matchers:le(s.expr,a.errors),animation:y,queryCount:a.queryCount,depCount:a.depCount,options:Fr(s.options)}}visitSequence(s,a){return{type:2,steps:s.steps.map(y=>Ir(this,y,a)),options:Fr(s.options)}}visitGroup(s,a){const y=a.currentTime;let I=0;const x=s.steps.map(ne=>{a.currentTime=y;const ee=Ir(this,ne,a);return I=Math.max(I,a.currentTime),ee});return a.currentTime=I,{type:3,steps:x,options:Fr(s.options)}}visitAnimate(s,a){const y=function _i(E,s){if(E.hasOwnProperty("duration"))return E;if("number"==typeof E)return Ki(vi(E,s).duration,0,"");const a=E;if(a.split(/\s+/).some(x=>"{"==x.charAt(0)&&"{"==x.charAt(1))){const x=Ki(0,0,"");return x.dynamic=!0,x.strValue=a,x}const I=vi(a,s);return Ki(I.duration,I.delay,I.easing)}(s.timings,a.errors);a.currentAnimateTimings=y;let I,x=s.styles?s.styles:(0,yt.oB)({});if(5==x.type)I=this.visitKeyframes(x,a);else{let ne=s.styles,ee=!1;if(!ne){ee=!0;const Ge={};y.easing&&(Ge.easing=y.easing),ne=(0,yt.oB)(Ge)}a.currentTime+=y.duration+y.delay;const Re=this.visitStyle(ne,a);Re.isEmptyStep=ee,I=Re}return a.currentAnimateTimings=null,{type:4,timings:y,style:I,options:null}}visitStyle(s,a){const y=this._makeStyleAst(s,a);return this._validateStyleAst(y,a),y}_makeStyleAst(s,a){const y=[],I=Array.isArray(s.styles)?s.styles:[s.styles];for(let ee of I)"string"==typeof ee?ee===yt.l3?y.push(ee):a.errors.push(new p.vHH(3002,!1)):y.push(gi(ee));let x=!1,ne=null;return y.forEach(ee=>{if(ee instanceof Map&&(ee.has("easing")&&(ne=ee.get("easing"),ee.delete("easing")),!x))for(let Re of ee.values())if(Re.toString().indexOf("{{")>=0){x=!0;break}}),{type:6,styles:y,easing:ne,offset:s.offset,containsDynamicStyles:x,options:null}}_validateStyleAst(s,a){const y=a.currentAnimateTimings;let I=a.currentTime,x=a.currentTime;y&&x>0&&(x-=y.duration+y.delay),s.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((ee,Re)=>{const Ge=a.collectedStyles.get(a.currentQuerySelector),st=Ge.get(Re);let mt=!0;st&&(x!=I&&x>=st.startTime&&I<=st.endTime&&(a.errors.push(function Mn(E,s,a,y,I){return new p.vHH(3010,!1)}()),mt=!1),x=st.startTime),mt&&Ge.set(Re,{startTime:x,endTime:I}),a.options&&function ur(E,s,a){const y=s.params||{},I=dr(E);I.length&&I.forEach(x=>{y.hasOwnProperty(x)||a.push(function Nn(E){return new p.vHH(3001,!1)}())})}(ee,a.options,a.errors)})})}visitKeyframes(s,a){const y={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function mr(){return new p.vHH(3011,!1)}()),y;let x=0;const ne=[];let ee=!1,Re=!1,Ge=0;const st=s.steps.map(xn=>{const jr=this._makeStyleAst(xn,a);let Zr=null!=jr.offset?jr.offset:function so(E){if("string"==typeof E)return null;let s=null;if(Array.isArray(E))E.forEach(a=>{if(a instanceof Map&&a.has("offset")){const y=a;s=parseFloat(y.get("offset")),y.delete("offset")}});else if(E instanceof Map&&E.has("offset")){const a=E;s=parseFloat(a.get("offset")),a.delete("offset")}return s}(jr.styles),cr=0;return null!=Zr&&(x++,cr=jr.offset=Zr),Re=Re||cr<0||cr>1,ee=ee||cr<Ge,Ge=cr,ne.push(cr),jr});Re&&a.errors.push(function dn(){return new p.vHH(3012,!1)}()),ee&&a.errors.push(function qr(){return new p.vHH(3200,!1)}());const mt=s.steps.length;let Wt=0;x>0&&x<mt?a.errors.push(function Qt(){return new p.vHH(3202,!1)}()):0==x&&(Wt=1/(mt-1));const Lt=mt-1,Tt=a.currentTime,kt=a.currentAnimateTimings,_n=kt.duration;return st.forEach((xn,jr)=>{const Zr=Wt>0?jr==Lt?1:Wt*jr:ne[jr],cr=Zr*_n;a.currentTime=Tt+kt.delay+cr,kt.duration=cr,this._validateStyleAst(xn,a),xn.offset=Zr,y.styles.push(xn)}),y}visitReference(s,a){return{type:8,animation:Ir(this,rr(s.animation),a),options:Fr(s.options)}}visitAnimateChild(s,a){return a.depCount++,{type:9,options:Fr(s.options)}}visitAnimateRef(s,a){return{type:10,animation:this.visitReference(s.animation,a),options:Fr(s.options)}}visitQuery(s,a){const y=a.currentQuerySelector,I=s.options||{};a.queryCount++,a.currentQuery=s;const[x,ne]=function Oi(E){const s=!!E.split(/\s*,\s*/).find(a=>":self"==a);return s&&(E=E.replace(Pn,"")),E=E.replace(/@\*/g,Ti).replace(/@\w+/g,a=>Ti+"-"+a.slice(1)).replace(/:animating/g,Hi),[E,s]}(s.selector);a.currentQuerySelector=y.length?y+" "+x:x,Cn(a.collectedStyles,a.currentQuerySelector,new Map);const ee=Ir(this,rr(s.animation),a);return a.currentQuery=null,a.currentQuerySelector=y,{type:11,selector:x,limit:I.limit||0,optional:!!I.optional,includeSelf:ne,animation:ee,originalSelector:s.selector,options:Fr(s.options)}}visitStagger(s,a){a.currentQuery||a.errors.push(function Vn(){return new p.vHH(3013,!1)}());const y="full"===s.timings?{duration:0,delay:0,easing:"full"}:vi(s.timings,a.errors,!0);return{type:12,animation:Ir(this,rr(s.animation),a),timings:y,options:null}}}class li{constructor(s){this.errors=s,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 Fr(E){return E?(E=vr(E)).params&&(E.params=function ai(E){return E?vr(E):null}(E.params)):E={},E}function Ki(E,s,a){return{duration:E,delay:s,easing:a}}function _r(E,s,a,y,I,x,ne=null,ee=!1){return{type:1,element:E,keyframes:s,preStyleProps:a,postStyleProps:y,duration:I,delay:x,totalTime:I+x,easing:ne,subTimeline:ee}}class ti{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,a){let y=this._map.get(s);y||this._map.set(s,y=[]),y.push(...a)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const ni=new RegExp(":enter","g"),Mo=new RegExp(":leave","g");function Wr(E,s,a,y,I,x=new Map,ne=new Map,ee,Re,Ge=[]){return(new fr).buildKeyframes(E,s,a,y,I,x,ne,ee,Re,Ge)}class fr{buildKeyframes(s,a,y,I,x,ne,ee,Re,Ge,st=[]){Ge=Ge||new ti;const mt=new Zi(s,a,Ge,I,x,st,[]);mt.options=Re;const Wt=Re.delay?Kn(Re.delay):0;mt.currentTimeline.delayNextStep(Wt),mt.currentTimeline.setStyles([ne],null,mt.errors,Re),Ir(this,y,mt);const Lt=mt.timelines.filter(Tt=>Tt.containsAnimation());if(Lt.length&&ee.size){let Tt;for(let kt=Lt.length-1;kt>=0;kt--){const _n=Lt[kt];if(_n.element===a){Tt=_n;break}}Tt&&!Tt.allowOnlyTimelineStyles()&&Tt.setStyles([ee],null,mt.errors,Re)}return Lt.length?Lt.map(Tt=>Tt.buildKeyframes()):[_r(a,[],[],[],0,Wt,"",!1)]}visitTrigger(s,a){}visitState(s,a){}visitTransition(s,a){}visitAnimateChild(s,a){const y=a.subInstructions.get(a.element);if(y){const I=a.createSubContext(s.options),x=a.currentTimeline.currentTime,ne=this._visitSubInstructions(y,I,I.options);x!=ne&&a.transformIntoNewTimeline(ne)}a.previousNode=s}visitAnimateRef(s,a){const y=a.createSubContext(s.options);y.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],a,y),this.visitReference(s.animation,y),a.transformIntoNewTimeline(y.currentTimeline.currentTime),a.previousNode=s}_applyAnimationRefDelays(s,a,y){for(const I of s){const x=I?.delay;if(x){const ne="number"==typeof x?x:Kn(Ln(x,I?.params??{},a.errors));y.delayNextStep(ne)}}}_visitSubInstructions(s,a,y){let x=a.currentTimeline.currentTime;const ne=null!=y.duration?Kn(y.duration):null,ee=null!=y.delay?Kn(y.delay):null;return 0!==ne&&s.forEach(Re=>{const Ge=a.appendInstructionToTimeline(Re,ne,ee);x=Math.max(x,Ge.duration+Ge.delay)}),x}visitReference(s,a){a.updateOptions(s.options,!0),Ir(this,s.animation,a),a.previousNode=s}visitSequence(s,a){const y=a.subContextCount;let I=a;const x=s.options;if(x&&(x.params||x.delay)&&(I=a.createSubContext(x),I.transformIntoNewTimeline(),null!=x.delay)){6==I.previousNode.type&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=ao);const ne=Kn(x.delay);I.delayNextStep(ne)}s.steps.length&&(s.steps.forEach(ne=>Ir(this,ne,I)),I.currentTimeline.applyStylesToKeyframe(),I.subContextCount>y&&I.transformIntoNewTimeline()),a.previousNode=s}visitGroup(s,a){const y=[];let I=a.currentTimeline.currentTime;const x=s.options&&s.options.delay?Kn(s.options.delay):0;s.steps.forEach(ne=>{const ee=a.createSubContext(s.options);x&&ee.delayNextStep(x),Ir(this,ne,ee),I=Math.max(I,ee.currentTimeline.currentTime),y.push(ee.currentTimeline)}),y.forEach(ne=>a.currentTimeline.mergeTimelineCollectedStyles(ne)),a.transformIntoNewTimeline(I),a.previousNode=s}_visitTiming(s,a){if(s.dynamic){const y=s.strValue;return vi(a.params?Ln(y,a.params,a.errors):y,a.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,a){const y=a.currentAnimateTimings=this._visitTiming(s.timings,a),I=a.currentTimeline;y.delay&&(a.incrementTime(y.delay),I.snapshotCurrentStyles());const x=s.style;5==x.type?this.visitKeyframes(x,a):(a.incrementTime(y.duration),this.visitStyle(x,a),I.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=s}visitStyle(s,a){const y=a.currentTimeline,I=a.currentAnimateTimings;!I&&y.hasCurrentStyleProperties()&&y.forwardFrame();const x=I&&I.easing||s.easing;s.isEmptyStep?y.applyEmptyStep(x):y.setStyles(s.styles,x,a.errors,a.options),a.previousNode=s}visitKeyframes(s,a){const y=a.currentAnimateTimings,I=a.currentTimeline.duration,x=y.duration,ee=a.createSubContext().currentTimeline;ee.easing=y.easing,s.styles.forEach(Re=>{ee.forwardTime((Re.offset||0)*x),ee.setStyles(Re.styles,Re.easing,a.errors,a.options),ee.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(ee),a.transformIntoNewTimeline(I+x),a.previousNode=s}visitQuery(s,a){const y=a.currentTimeline.currentTime,I=s.options||{},x=I.delay?Kn(I.delay):0;x&&(6===a.previousNode.type||0==y&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=ao);let ne=y;const ee=a.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!I.optional,a.errors);a.currentQueryTotal=ee.length;let Re=null;ee.forEach((Ge,st)=>{a.currentQueryIndex=st;const mt=a.createSubContext(s.options,Ge);x&&mt.delayNextStep(x),Ge===a.element&&(Re=mt.currentTimeline),Ir(this,s.animation,mt),mt.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,mt.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(ne),Re&&(a.currentTimeline.mergeTimelineCollectedStyles(Re),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=s}visitStagger(s,a){const y=a.parentContext,I=a.currentTimeline,x=s.timings,ne=Math.abs(x.duration),ee=ne*(a.currentQueryTotal-1);let Re=ne*a.currentQueryIndex;switch(x.duration<0?"reverse":x.easing){case"reverse":Re=ee-Re;break;case"full":Re=y.currentStaggerTime}const st=a.currentTimeline;Re&&st.delayNextStep(Re);const mt=st.currentTime;Ir(this,s.animation,a),a.previousNode=s,y.currentStaggerTime=I.currentTime-mt+(I.startTime-y.currentTimeline.startTime)}}const ao={};class Zi{constructor(s,a,y,I,x,ne,ee,Re){this._driver=s,this.element=a,this.subInstructions=y,this._enterClassName=I,this._leaveClassName=x,this.errors=ne,this.timelines=ee,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ao,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Re||new Kr(this._driver,a,0),ee.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,a){if(!s)return;const y=s;let I=this.options;null!=y.duration&&(I.duration=Kn(y.duration)),null!=y.delay&&(I.delay=Kn(y.delay));const x=y.params;if(x){let ne=I.params;ne||(ne=this.options.params={}),Object.keys(x).forEach(ee=>{(!a||!ne.hasOwnProperty(ee))&&(ne[ee]=Ln(x[ee],ne,this.errors))})}}_copyOptions(){const s={};if(this.options){const a=this.options.params;if(a){const y=s.params={};Object.keys(a).forEach(I=>{y[I]=a[I]})}}return s}createSubContext(s=null,a,y){const I=a||this.element,x=new Zi(this._driver,I,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(I,y||0));return x.previousNode=this.previousNode,x.currentAnimateTimings=this.currentAnimateTimings,x.options=this._copyOptions(),x.updateOptions(s),x.currentQueryIndex=this.currentQueryIndex,x.currentQueryTotal=this.currentQueryTotal,x.parentContext=this,this.subContextCount++,x}transformIntoNewTimeline(s){return this.previousNode=ao,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,a,y){const I={duration:a??s.duration,delay:this.currentTimeline.currentTime+(y??0)+s.delay,easing:""},x=new Ar(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,I,s.stretchStartingKeyframe);return this.timelines.push(x),I}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,a,y,I,x,ne){let ee=[];if(I&&ee.push(this.element),s.length>0){s=(s=s.replace(ni,"."+this._enterClassName)).replace(Mo,"."+this._leaveClassName);let Ge=this._driver.query(this.element,s,1!=y);0!==y&&(Ge=y<0?Ge.slice(Ge.length+y,Ge.length):Ge.slice(0,y)),ee.push(...Ge)}return!x&&0==ee.length&&ne.push(function yr(E){return new p.vHH(3014,!1)}()),ee}}class Kr{constructor(s,a,y,I){this._driver=s,this.element=a,this.startTime=y,this._elementTimelineStylesLookup=I,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(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,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(s){const a=1===this._keyframes.size&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+s),a&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,a){return this.applyStylesToKeyframe(),new Kr(this._driver,s,a||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(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,a){this._localTimelineStyles.set(s,a),this._globalTimelineStyles.set(s,a),this._styleSummary.set(s,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[a,y]of this._globalTimelineStyles)this._backFill.set(a,y||yt.l3),this._currentKeyframe.set(a,yt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,a,y,I){a&&this._previousKeyframe.set("easing",a);const x=I&&I.params||{},ne=function Di(E,s){const a=new Map;let y;return E.forEach(I=>{if("*"===I){y=y||s.keys();for(let x of y)a.set(x,yt.l3)}else nr(I,a)}),a}(s,this._globalTimelineStyles);for(let[ee,Re]of ne){const Ge=Ln(Re,x,y);this._pendingStyles.set(ee,Ge),this._localTimelineStyles.has(ee)||this._backFill.set(ee,this._globalTimelineStyles.get(ee)??yt.l3),this._updateStyle(ee,Ge)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,a)=>{this._currentKeyframe.set(a,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,s)}))}snapshotCurrentStyles(){for(let[s,a]of this._localTimelineStyles)this._pendingStyles.set(s,a),this._updateStyle(s,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let a in this._currentKeyframe)s.push(a);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((a,y)=>{const I=this._styleSummary.get(y);(!I||a.time>I.time)&&this._updateStyle(y,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,a=new Set,y=1===this._keyframes.size&&0===this.duration;let I=[];this._keyframes.forEach((ee,Re)=>{const Ge=nr(ee,new Map,this._backFill);Ge.forEach((st,mt)=>{st===yt.k1?s.add(mt):st===yt.l3&&a.add(mt)}),y||Ge.set("offset",Re/this.duration),I.push(Ge)});const x=s.size?Xr(s.values()):[],ne=a.size?Xr(a.values()):[];if(y){const ee=I[0],Re=new Map(ee);ee.set("offset",0),Re.set("offset",1),I=[ee,Re]}return _r(this.element,I,x,ne,this.duration,this.startTime,this.easing,!1)}}class Ar extends Kr{constructor(s,a,y,I,x,ne,ee=!1){super(s,a,ne.delay),this.keyframes=y,this.preStyleProps=I,this.postStyleProps=x,this._stretchStartingKeyframe=ee,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:a,duration:y,easing:I}=this.timings;if(this._stretchStartingKeyframe&&a){const x=[],ne=y+a,ee=a/ne,Re=nr(s[0]);Re.set("offset",0),x.push(Re);const Ge=nr(s[0]);Ge.set("offset",jo(ee)),x.push(Ge);const st=s.length-1;for(let mt=1;mt<=st;mt++){let Wt=nr(s[mt]);const Lt=Wt.get("offset");Wt.set("offset",jo((a+Lt*y)/ne)),x.push(Wt)}y=ne,a=0,I="",s=x}return _r(this.element,s,this.preStyleProps,this.postStyleProps,y,a,I,!0)}}function jo(E,s=3){const a=Math.pow(10,s-1);return Math.round(E*a)/a}class ui{}const Ei=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 Nt extends ui{normalizePropertyName(s,a){return zi(s)}normalizeStyleValue(s,a,y,I){let x="";const ne=y.toString().trim();if(Ei.has(a)&&0!==y&&"0"!==y)if("number"==typeof y)x="px";else{const ee=y.match(/^[+-]?[\d\.]+([a-z]*)$/);ee&&0==ee[1].length&&I.push(function _t(E,s){return new p.vHH(3005,!1)}())}return ne+x}}function vo(E,s,a,y,I,x,ne,ee,Re,Ge,st,mt,Wt){return{type:0,element:E,triggerName:s,isRemovalTransition:I,fromState:a,fromStyles:x,toState:y,toStyles:ne,timelines:ee,queriedElements:Re,preStyleProps:Ge,postStyleProps:st,totalTime:mt,errors:Wt}}const es={};class Po{constructor(s,a,y){this._triggerName=s,this.ast=a,this._stateStyles=y}match(s,a,y,I){return function Ho(E,s,a,y,I){return E.some(x=>x(s,a,y,I))}(this.ast.matchers,s,a,y,I)}buildStyles(s,a,y){let I=this._stateStyles.get("*");return void 0!==s&&(I=this._stateStyles.get(s?.toString())||I),I?I.buildStyles(a,y):new Map}build(s,a,y,I,x,ne,ee,Re,Ge,st){const mt=[],Wt=this.ast.options&&this.ast.options.params||es,Tt=this.buildStyles(y,ee&&ee.params||es,mt),kt=Re&&Re.params||es,_n=this.buildStyles(I,kt,mt),xn=new Set,jr=new Map,Zr=new Map,cr="void"===I,ii={params:ts(kt,Wt),delay:this.ast.options?.delay},Hr=st?[]:Wr(s,a,this.ast.animation,x,ne,Tt,_n,ii,Ge,mt);let gr=0;if(Hr.forEach(Li=>{gr=Math.max(Li.duration+Li.delay,gr)}),mt.length)return vo(a,this._triggerName,y,I,cr,Tt,_n,[],[],jr,Zr,gr,mt);Hr.forEach(Li=>{const oi=Li.element,zs=Cn(jr,oi,new Set);Li.preStyleProps.forEach(Dn=>zs.add(Dn));const Ss=Cn(Zr,oi,new Set);Li.postStyleProps.forEach(Dn=>Ss.add(Dn)),oi!==a&&xn.add(oi)});const to=Xr(xn.values());return vo(a,this._triggerName,y,I,cr,Tt,_n,Hr,to,jr,Zr,gr)}}function ts(E,s){const a=vr(s);for(const y in E)E.hasOwnProperty(y)&&null!=E[y]&&(a[y]=E[y]);return a}class xs{constructor(s,a,y){this.styles=s,this.defaultParams=a,this.normalizer=y}buildStyles(s,a){const y=new Map,I=vr(this.defaultParams);return Object.keys(s).forEach(x=>{const ne=s[x];null!==ne&&(I[x]=ne)}),this.styles.styles.forEach(x=>{"string"!=typeof x&&x.forEach((ne,ee)=>{ne&&(ne=Ln(ne,I,a));const Re=this.normalizer.normalizePropertyName(ee,a);ne=this.normalizer.normalizeStyleValue(ee,Re,ne,a),y.set(ee,ne)})}),y}}class He{constructor(s,a,y){this.name=s,this.ast=a,this._normalizer=y,this.transitionFactories=[],this.states=new Map,a.states.forEach(I=>{this.states.set(I.name,new xs(I.style,I.options&&I.options.params||{},y))}),Yi(this.states,"true","1"),Yi(this.states,"false","0"),a.transitions.forEach(I=>{this.transitionFactories.push(new Po(s,I,this.states))}),this.fallbackTransition=function en(E,s,a){return new Po(E,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ne,ee)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,a,y,I){return this.transitionFactories.find(ne=>ne.match(s,a,y,I))||null}matchStyles(s,a,y){return this.fallbackTransition.buildStyles(s,a,y)}}function Yi(E,s,a){E.has(s)?E.has(a)||E.set(a,E.get(s)):E.has(a)&&E.set(s,E.get(a))}const $o=new ti;class hr{constructor(s,a,y){this.bodyNode=s,this._driver=a,this._normalizer=y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,a){const y=[],x=$t(this._driver,a,y,[]);if(y.length)throw function k(E){return new p.vHH(3503,!1)}();this._animations.set(s,x)}_buildPlayer(s,a,y){const I=s.element,x=Ft(0,this._normalizer,0,s.keyframes,a,y);return this._driver.animate(I,x,s.duration,s.delay,s.easing,[],!0)}create(s,a,y={}){const I=[],x=this._animations.get(s);let ne;const ee=new Map;if(x?(ne=Wr(this._driver,a,x,Jr,kr,new Map,new Map,y,$o,I),ne.forEach(st=>{const mt=Cn(ee,st.element,new Map);st.postStyleProps.forEach(Wt=>mt.set(Wt,null))})):(I.push(function U(){return new p.vHH(3300,!1)}()),ne=[]),I.length)throw function oe(E){return new p.vHH(3504,!1)}();ee.forEach((st,mt)=>{st.forEach((Wt,Lt)=>{st.set(Lt,this._driver.computeStyle(mt,Lt,yt.l3))})});const Ge=ut(ne.map(st=>{const mt=ee.get(st.element);return this._buildPlayer(st,new Map,mt)}));return this._playersById.set(s,Ge),Ge.onDestroy(()=>this.destroy(s)),this.players.push(Ge),Ge}destroy(s){const a=this._getPlayer(s);a.destroy(),this._playersById.delete(s);const y=this.players.indexOf(a);y>=0&&this.players.splice(y,1)}_getPlayer(s){const a=this._playersById.get(s);if(!a)throw function ke(E){return new p.vHH(3301,!1)}();return a}listen(s,a,y,I){const x=Cr(a,"","","");return zn(this._getPlayer(s),y,x,I),()=>{}}command(s,a,y,I){if("register"==y)return void this.register(s,I[0]);if("create"==y)return void this.create(s,a,I[0]||{});const x=this._getPlayer(s);switch(y){case"play":x.play();break;case"pause":x.pause();break;case"reset":x.reset();break;case"restart":x.restart();break;case"finish":x.finish();break;case"init":x.init();break;case"setPosition":x.setPosition(parseFloat(I[0]));break;case"destroy":this.destroy(s)}}}const _o="ng-animate-queued",Lr="ng-animate-disabled",Ds=[],Qi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Dr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},On="__ng_removed";class Ci{get params(){return this.options.params}constructor(s,a=""){this.namespaceId=a;const y=s&&s.hasOwnProperty("value");if(this.value=function lo(E){return E??null}(y?s.value:s),y){const x=vr(s);delete x.value,this.options=x}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const a=s.params;if(a){const y=this.options.params;Object.keys(a).forEach(I=>{null==y[I]&&(y[I]=a[I])})}}}const Br="void",Ur=new Ci(Br);class ns{constructor(s,a,y){this.id=s,this.hostElement=a,this._engine=y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,qn(a,this._hostClassName)}listen(s,a,y,I){if(!this._triggers.has(a))throw function ge(E,s){return new p.vHH(3302,!1)}();if(null==y||0==y.length)throw function it(E){return new p.vHH(3303,!1)}();if(!function Go(E){return"start"==E||"done"==E}(y))throw function Mt(E,s){return new p.vHH(3400,!1)}();const x=Cn(this._elementListeners,s,[]),ne={name:a,phase:y,callback:I};x.push(ne);const ee=Cn(this._engine.statesByElement,s,new Map);return ee.has(a)||(qn(s,Ht),qn(s,Ht+"-"+a),ee.set(a,Ur)),()=>{this._engine.afterFlush(()=>{const Re=x.indexOf(ne);Re>=0&&x.splice(Re,1),this._triggers.has(a)||ee.delete(a)})}}register(s,a){return!this._triggers.has(s)&&(this._triggers.set(s,a),!0)}_getTrigger(s){const a=this._triggers.get(s);if(!a)throw function Rt(E){return new p.vHH(3401,!1)}();return a}trigger(s,a,y,I=!0){const x=this._getTrigger(a),ne=new xo(this.id,a,s);let ee=this._engine.statesByElement.get(s);ee||(qn(s,Ht),qn(s,Ht+"-"+a),this._engine.statesByElement.set(s,ee=new Map));let Re=ee.get(a);const Ge=new Ci(y,this.id);if(!(y&&y.hasOwnProperty("value"))&&Re&&Ge.absorbOptions(Re.options),ee.set(a,Ge),Re||(Re=Ur),Ge.value!==Br&&Re.value===Ge.value){if(!function Es(E,s){const a=Object.keys(E),y=Object.keys(s);if(a.length!=y.length)return!1;for(let I=0;I<a.length;I++){const x=a[I];if(!s.hasOwnProperty(x)||E[x]!==s[x])return!1}return!0}(Re.params,Ge.params)){const kt=[],_n=x.matchStyles(Re.value,Re.params,kt),xn=x.matchStyles(Ge.value,Ge.params,kt);kt.length?this._engine.reportError(kt):this._engine.afterFlush(()=>{Gr(s,_n),Tr(s,xn)})}return}const Wt=Cn(this._engine.playersByElement,s,[]);Wt.forEach(kt=>{kt.namespaceId==this.id&&kt.triggerName==a&&kt.queued&&kt.destroy()});let Lt=x.matchTransition(Re.value,Ge.value,s,Ge.params),Tt=!1;if(!Lt){if(!I)return;Lt=x.fallbackTransition,Tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:a,transition:Lt,fromState:Re,toState:Ge,player:ne,isFallbackTransition:Tt}),Tt||(qn(s,_o),ne.onStart(()=>{qi(s,_o)})),ne.onDone(()=>{let kt=this.players.indexOf(ne);kt>=0&&this.players.splice(kt,1);const _n=this._engine.playersByElement.get(s);if(_n){let xn=_n.indexOf(ne);xn>=0&&_n.splice(xn,1)}}),this.players.push(ne),Wt.push(ne),ne}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(a=>a.delete(s)),this._elementListeners.forEach((a,y)=>{this._elementListeners.set(y,a.filter(I=>I.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const a=this._engine.playersByElement.get(s);a&&(a.forEach(y=>y.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,a){const y=this._engine.driver.query(s,Ti,!0);y.forEach(I=>{if(I[On])return;const x=this._engine.fetchNamespacesByElement(I);x.size?x.forEach(ne=>ne.triggerLeaveAnimation(I,a,!1,!0)):this.clearElementCache(I)}),this._engine.afterFlushAnimationsDone(()=>y.forEach(I=>this.clearElementCache(I)))}triggerLeaveAnimation(s,a,y,I){const x=this._engine.statesByElement.get(s),ne=new Map;if(x){const ee=[];if(x.forEach((Re,Ge)=>{if(ne.set(Ge,Re.value),this._triggers.has(Ge)){const st=this.trigger(s,Ge,Br,I);st&&ee.push(st)}}),ee.length)return this._engine.markElementAsRemoved(this.id,s,!0,a,ne),y&&ut(ee).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const a=this._elementListeners.get(s),y=this._engine.statesByElement.get(s);if(a&&y){const I=new Set;a.forEach(x=>{const ne=x.name;if(I.has(ne))return;I.add(ne);const Re=this._triggers.get(ne).fallbackTransition,Ge=y.get(ne)||Ur,st=new Ci(Br),mt=new xo(this.id,ne,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:ne,transition:Re,fromState:Ge,toState:st,player:mt,isFallbackTransition:!0})})}}removeNode(s,a){const y=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,a),this.triggerLeaveAnimation(s,a,!0))return;let I=!1;if(y.totalAnimations){const x=y.players.length?y.playersByQueriedElement.get(s):[];if(x&&x.length)I=!0;else{let ne=s;for(;ne=ne.parentNode;)if(y.statesByElement.get(ne)){I=!0;break}}}if(this.prepareLeaveAnimationListeners(s),I)y.markElementAsRemoved(this.id,s,!1,a);else{const x=s[On];(!x||x===Qi)&&(y.afterFlush(()=>this.clearElementCache(s)),y.destroyInnerAnimations(s),y._onRemovalComplete(s,a))}}insertNode(s,a){qn(s,this._hostClassName)}drainQueuedTransitions(s){const a=[];return this._queue.forEach(y=>{const I=y.player;if(I.destroyed)return;const x=y.element,ne=this._elementListeners.get(x);ne&&ne.forEach(ee=>{if(ee.name==y.triggerName){const Re=Cr(x,y.triggerName,y.fromState.value,y.toState.value);Re._data=s,zn(y.player,ee.phase,Re,ee.callback)}}),I.markedForDestroy?this._engine.afterFlush(()=>{I.destroy()}):a.push(y)}),this._queue=[],a.sort((y,I)=>{const x=y.transition.ast.depCount,ne=I.transition.ast.depCount;return 0==x||0==ne?x-ne:this._engine.driver.containsElement(y.element,I.element)?1:-1})}destroy(s){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let a=!1;return this._elementListeners.has(s)&&(a=!0),a=!!this._queue.find(y=>y.element===s)||a,a}}class Do{_onRemovalComplete(s,a){this.onRemovalComplete(s,a)}constructor(s,a,y){this.bodyNode=s,this.driver=a,this._normalizer=y,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=(I,x)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(a=>{a.players.forEach(y=>{y.queued&&s.push(y)})}),s}createNamespace(s,a){const y=new ns(s,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(y,a):(this.newHostElements.set(a,y),this.collectEnterElement(a)),this._namespaceLookup[s]=y}_balanceNamespaceList(s,a){const y=this._namespaceList,I=this.namespacesByHostElement;if(y.length-1>=0){let ne=!1,ee=this.driver.getParentElement(a);for(;ee;){const Re=I.get(ee);if(Re){const Ge=y.indexOf(Re);y.splice(Ge+1,0,s),ne=!0;break}ee=this.driver.getParentElement(ee)}ne||y.unshift(s)}else y.push(s);return I.set(a,s),s}register(s,a){let y=this._namespaceLookup[s];return y||(y=this.createNamespace(s,a)),y}registerTrigger(s,a,y){let I=this._namespaceLookup[s];I&&I.register(a,y)&&this.totalAnimations++}destroy(s,a){if(!s)return;const y=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(y.hostElement),delete this._namespaceLookup[s];const I=this._namespaceList.indexOf(y);I>=0&&this._namespaceList.splice(I,1)}),this.afterFlushAnimationsDone(()=>y.destroy(a))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const a=new Set,y=this.statesByElement.get(s);if(y)for(let I of y.values())if(I.namespaceId){const x=this._fetchNamespace(I.namespaceId);x&&a.add(x)}return a}trigger(s,a,y,I){if(Ri(a)){const x=this._fetchNamespace(s);if(x)return x.trigger(a,y,I),!0}return!1}insertNode(s,a,y,I){if(!Ri(a))return;const x=a[On];if(x&&x.setForRemoval){x.setForRemoval=!1,x.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(a);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(s){const ne=this._fetchNamespace(s);ne&&ne.insertNode(a,y)}I&&this.collectEnterElement(a)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,a){a?this.disabledNodes.has(s)||(this.disabledNodes.add(s),qn(s,Lr)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),qi(s,Lr))}removeNode(s,a,y,I){if(Ri(a)){const x=s?this._fetchNamespace(s):null;if(x?x.removeNode(a,I):this.markElementAsRemoved(s,a,!1,I),y){const ne=this.namespacesByHostElement.get(a);ne&&ne.id!==s&&ne.removeNode(a,I)}}else this._onRemovalComplete(a,I)}markElementAsRemoved(s,a,y,I,x){this.collectedLeaveElements.push(a),a[On]={namespaceId:s,setForRemoval:I,hasAnimation:y,removedBeforeQueried:!1,previousTriggersValues:x}}listen(s,a,y,I,x){return Ri(a)?this._fetchNamespace(s).listen(a,y,I,x):()=>{}}_buildInstruction(s,a,y,I,x){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,y,I,s.fromState.options,s.toState.options,a,x)}destroyInnerAnimations(s){let a=this.driver.query(s,Ti,!0);a.forEach(y=>this.destroyActiveAnimationsForElement(y)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(s,Hi,!0),a.forEach(y=>this.finishActiveQueriedAnimationOnElement(y)))}destroyActiveAnimationsForElement(s){const a=this.playersByElement.get(s);a&&a.forEach(y=>{y.queued?y.markedForDestroy=!0:y.destroy()})}finishActiveQueriedAnimationOnElement(s){const a=this.playersByQueriedElement.get(s);a&&a.forEach(y=>y.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return ut(this.players).onDone(()=>s());s()})}processLeaveNode(s){const a=s[On];if(a&&a.setForRemoval){if(s[On]=Qi,a.namespaceId){this.destroyInnerAnimations(s);const y=this._fetchNamespace(a.namespaceId);y&&y.clearElementCache(s)}this._onRemovalComplete(s,a.setForRemoval)}s.classList?.contains(Lr)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(y=>{this.markElementAsDisabled(y,!1)})}flush(s=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((y,I)=>this._balanceNamespaceList(y,I)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let y=0;y<this.collectedEnterElements.length;y++)qn(this.collectedEnterElements[y],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const y=[];try{a=this._flushAnimations(y,s)}finally{for(let I=0;I<y.length;I++)y[I]()}}else for(let y=0;y<this.collectedLeaveElements.length;y++)this.processLeaveNode(this.collectedLeaveElements[y]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(y=>y()),this._flushFns=[],this._whenQuietFns.length){const y=this._whenQuietFns;this._whenQuietFns=[],a.length?ut(a).onDone(()=>{y.forEach(I=>I())}):y.forEach(I=>I())}}reportError(s){throw function Xt(E){return new p.vHH(3402,!1)}()}_flushAnimations(s,a){const y=new ti,I=[],x=new Map,ne=[],ee=new Map,Re=new Map,Ge=new Map,st=new Set;this.disabledNodes.forEach(Dt=>{st.add(Dt);const At=this.driver.query(Dt,".ng-animate-queued",!0);for(let Bt=0;Bt<At.length;Bt++)st.add(At[Bt])});const mt=this.bodyNode,Wt=Array.from(this.statesByElement.keys()),Lt=uo(Wt,this.collectedEnterElements),Tt=new Map;let kt=0;Lt.forEach((Dt,At)=>{const Bt=Jr+kt++;Tt.set(At,Bt),Dt.forEach(En=>qn(En,Bt))});const _n=[],xn=new Set,jr=new Set;for(let Dt=0;Dt<this.collectedLeaveElements.length;Dt++){const At=this.collectedLeaveElements[Dt],Bt=At[On];Bt&&Bt.setForRemoval&&(_n.push(At),xn.add(At),Bt.hasAnimation?this.driver.query(At,".ng-star-inserted",!0).forEach(En=>xn.add(En)):jr.add(At))}const Zr=new Map,cr=uo(Wt,Array.from(xn));cr.forEach((Dt,At)=>{const Bt=kr+kt++;Zr.set(At,Bt),Dt.forEach(En=>qn(En,Bt))}),s.push(()=>{Lt.forEach((Dt,At)=>{const Bt=Tt.get(At);Dt.forEach(En=>qi(En,Bt))}),cr.forEach((Dt,At)=>{const Bt=Zr.get(At);Dt.forEach(En=>qi(En,Bt))}),_n.forEach(Dt=>{this.processLeaveNode(Dt)})});const ii=[],Hr=[];for(let Dt=this._namespaceList.length-1;Dt>=0;Dt--)this._namespaceList[Dt].drainQueuedTransitions(a).forEach(Bt=>{const En=Bt.player,Rr=Bt.element;if(ii.push(En),this.collectedEnterElements.length){const xr=Rr[On];if(xr&&xr.setForMove){if(xr.previousTriggersValues&&xr.previousTriggersValues.has(Bt.triggerName)){const c=xr.previousTriggersValues.get(Bt.triggerName),f=this.statesByElement.get(Bt.element);if(f&&f.has(Bt.triggerName)){const l=f.get(Bt.triggerName);l.value=c,f.set(Bt.triggerName,l)}}return void En.destroy()}}const di=!mt||!this.driver.containsElement(mt,Rr),yi=Zr.get(Rr),bo=Tt.get(Rr),Jt=this._buildInstruction(Bt,y,bo,yi,di);if(Jt.errors&&Jt.errors.length)return void Hr.push(Jt);if(di)return En.onStart(()=>Gr(Rr,Jt.fromStyles)),En.onDestroy(()=>Tr(Rr,Jt.toStyles)),void I.push(En);if(Bt.isFallbackTransition)return En.onStart(()=>Gr(Rr,Jt.fromStyles)),En.onDestroy(()=>Tr(Rr,Jt.toStyles)),void I.push(En);const Ko=[];Jt.timelines.forEach(xr=>{xr.stretchStartingKeyframe=!0,this.disabledNodes.has(xr.element)||Ko.push(xr)}),Jt.timelines=Ko,y.append(Rr,Jt.timelines),ne.push({instruction:Jt,player:En,element:Rr}),Jt.queriedElements.forEach(xr=>Cn(ee,xr,[]).push(En)),Jt.preStyleProps.forEach((xr,c)=>{if(xr.size){let f=Re.get(c);f||Re.set(c,f=new Set),xr.forEach((l,m)=>f.add(m))}}),Jt.postStyleProps.forEach((xr,c)=>{let f=Ge.get(c);f||Ge.set(c,f=new Set),xr.forEach((l,m)=>f.add(m))})});if(Hr.length){const Dt=[];Hr.forEach(At=>{Dt.push(function X(E,s){return new p.vHH(3505,!1)}())}),ii.forEach(At=>At.destroy()),this.reportError(Dt)}const gr=new Map,to=new Map;ne.forEach(Dt=>{const At=Dt.element;y.has(At)&&(to.set(At,At),this._beforeAnimationBuild(Dt.player.namespaceId,Dt.instruction,gr))}),I.forEach(Dt=>{const At=Dt.element;this._getPreviousPlayers(At,!1,Dt.namespaceId,Dt.triggerName,null).forEach(En=>{Cn(gr,At,[]).push(En),En.destroy()})});const Li=_n.filter(Dt=>Cs(Dt,Re,Ge)),oi=new Map;Ni(oi,this.driver,jr,Ge,yt.l3).forEach(Dt=>{Cs(Dt,Re,Ge)&&Li.push(Dt)});const Ss=new Map;Lt.forEach((Dt,At)=>{Ni(Ss,this.driver,new Set(Dt),Re,yt.k1)}),Li.forEach(Dt=>{const At=oi.get(Dt),Bt=Ss.get(Dt);oi.set(Dt,new Map([...Array.from(At?.entries()??[]),...Array.from(Bt?.entries()??[])]))});const Dn=[],Fo=[],na={};ne.forEach(Dt=>{const{element:At,player:Bt,instruction:En}=Dt;if(y.has(At)){if(st.has(At))return Bt.onDestroy(()=>Tr(At,En.toStyles)),Bt.disabled=!0,Bt.overrideTotalTime(En.totalTime),void I.push(Bt);let Rr=na;if(to.size>1){let yi=At;const bo=[];for(;yi=yi.parentNode;){const Jt=to.get(yi);if(Jt){Rr=Jt;break}bo.push(yi)}bo.forEach(Jt=>to.set(Jt,Rr))}const di=this._buildAnimation(Bt.namespaceId,En,gr,x,Ss,oi);if(Bt.setRealPlayer(di),Rr===na)Dn.push(Bt);else{const yi=this.playersByElement.get(Rr);yi&&yi.length&&(Bt.parentPlayer=ut(yi)),I.push(Bt)}}else Gr(At,En.fromStyles),Bt.onDestroy(()=>Tr(At,En.toStyles)),Fo.push(Bt),st.has(At)&&I.push(Bt)}),Fo.forEach(Dt=>{const At=x.get(Dt.element);if(At&&At.length){const Bt=ut(At);Dt.setRealPlayer(Bt)}}),I.forEach(Dt=>{Dt.parentPlayer?Dt.syncPlayerEvents(Dt.parentPlayer):Dt.destroy()});for(let Dt=0;Dt<_n.length;Dt++){const At=_n[Dt],Bt=At[On];if(qi(At,kr),Bt&&Bt.hasAnimation)continue;let En=[];if(ee.size){let di=ee.get(At);di&&di.length&&En.push(...di);let yi=this.driver.query(At,Hi,!0);for(let bo=0;bo<yi.length;bo++){let Jt=ee.get(yi[bo]);Jt&&Jt.length&&En.push(...Jt)}}const Rr=En.filter(di=>!di.destroyed);Rr.length?Ns(this,At,Rr):this.processLeaveNode(At)}return _n.length=0,Dn.forEach(Dt=>{this.players.push(Dt),Dt.onDone(()=>{Dt.destroy();const At=this.players.indexOf(Dt);this.players.splice(At,1)}),Dt.play()}),Dn}elementContainsData(s,a){let y=!1;const I=a[On];return I&&I.setForRemoval&&(y=!0),this.playersByElement.has(a)&&(y=!0),this.playersByQueriedElement.has(a)&&(y=!0),this.statesByElement.has(a)&&(y=!0),this._fetchNamespace(s).elementContainsData(a)||y}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,a,y,I,x){let ne=[];if(a){const ee=this.playersByQueriedElement.get(s);ee&&(ne=ee)}else{const ee=this.playersByElement.get(s);if(ee){const Re=!x||x==Br;ee.forEach(Ge=>{Ge.queued||!Re&&Ge.triggerName!=I||ne.push(Ge)})}}return(y||I)&&(ne=ne.filter(ee=>!(y&&y!=ee.namespaceId||I&&I!=ee.triggerName))),ne}_beforeAnimationBuild(s,a,y){const x=a.element,ne=a.isRemovalTransition?void 0:s,ee=a.isRemovalTransition?void 0:a.triggerName;for(const Re of a.timelines){const Ge=Re.element,st=Ge!==x,mt=Cn(y,Ge,[]);this._getPreviousPlayers(Ge,st,ne,ee,a.toState).forEach(Lt=>{const Tt=Lt.getRealPlayer();Tt.beforeDestroy&&Tt.beforeDestroy(),Lt.destroy(),mt.push(Lt)})}Gr(x,a.fromStyles)}_buildAnimation(s,a,y,I,x,ne){const ee=a.triggerName,Re=a.element,Ge=[],st=new Set,mt=new Set,Wt=a.timelines.map(Tt=>{const kt=Tt.element;st.add(kt);const _n=kt[On];if(_n&&_n.removedBeforeQueried)return new yt.ZN(Tt.duration,Tt.delay);const xn=kt!==Re,jr=function ks(E){const s=[];return No(E,s),s}((y.get(kt)||Ds).map(gr=>gr.getRealPlayer())).filter(gr=>!!gr.element&&gr.element===kt),Zr=x.get(kt),cr=ne.get(kt),ii=Ft(0,this._normalizer,0,Tt.keyframes,Zr,cr),Hr=this._buildPlayer(Tt,ii,jr);if(Tt.subTimeline&&I&&mt.add(kt),xn){const gr=new xo(s,ee,kt);gr.setRealPlayer(Hr),Ge.push(gr)}return Hr});Ge.forEach(Tt=>{Cn(this.playersByQueriedElement,Tt.element,[]).push(Tt),Tt.onDone(()=>function rs(E,s,a){let y=E.get(s);if(y){if(y.length){const I=y.indexOf(a);y.splice(I,1)}0==y.length&&E.delete(s)}return y}(this.playersByQueriedElement,Tt.element,Tt))}),st.forEach(Tt=>qn(Tt,Si));const Lt=ut(Wt);return Lt.onDestroy(()=>{st.forEach(Tt=>qi(Tt,Si)),Tr(Re,a.toStyles)}),mt.forEach(Tt=>{Cn(I,Tt,[]).push(Lt)}),Lt}_buildPlayer(s,a,y){return a.length>0?this.driver.animate(s.element,a,s.duration,s.delay,s.easing,y):new yt.ZN(s.duration,s.delay)}}class xo{constructor(s,a,y){this.namespaceId=s,this.triggerName=a,this.element=y,this._player=new yt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((a,y)=>{a.forEach(I=>zn(s,y,void 0,I))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const a=this._player;a.triggerCallback&&s.onStart(()=>a.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,a){Cn(this._queuedCallbacks,s,[]).push(a)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}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(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const a=this._player;a.triggerCallback&&a.triggerCallback(s)}}function Ri(E){return E&&1===E.nodeType}function xi(E,s){const a=E.style.display;return E.style.display=s??"none",a}function Ni(E,s,a,y,I){const x=[];a.forEach(Re=>x.push(xi(Re)));const ne=[];y.forEach((Re,Ge)=>{const st=new Map;Re.forEach(mt=>{const Wt=s.computeStyle(Ge,mt,I);st.set(mt,Wt),(!Wt||0==Wt.length)&&(Ge[On]=Dr,ne.push(Ge))}),E.set(Ge,st)});let ee=0;return a.forEach(Re=>xi(Re,x[ee++])),ne}function uo(E,s){const a=new Map;if(E.forEach(ee=>a.set(ee,[])),0==s.length)return a;const I=new Set(s),x=new Map;function ne(ee){if(!ee)return 1;let Re=x.get(ee);if(Re)return Re;const Ge=ee.parentNode;return Re=a.has(Ge)?Ge:I.has(Ge)?1:ne(Ge),x.set(ee,Re),Re}return s.forEach(ee=>{const Re=ne(ee);1!==Re&&a.get(Re).push(ee)}),a}function qn(E,s){E.classList?.add(s)}function qi(E,s){E.classList?.remove(s)}function Ns(E,s,a){ut(a).onDone(()=>E.processLeaveNode(s))}function No(E,s){for(let a=0;a<E.length;a++){const y=E[a];y instanceof yt.ZE?No(y.players,s):s.push(y)}}function Cs(E,s,a){const y=a.get(E);if(!y)return!1;let I=s.get(E);return I?y.forEach(x=>I.add(x)):s.set(E,y),a.delete(E),!0}class Ji{constructor(s,a,y){this.bodyNode=s,this._driver=a,this._normalizer=y,this._triggerCache={},this.onRemovalComplete=(I,x)=>{},this._transitionEngine=new Do(s,a,y),this._timelineEngine=new hr(s,a,y),this._transitionEngine.onRemovalComplete=(I,x)=>this.onRemovalComplete(I,x)}registerTrigger(s,a,y,I,x){const ne=s+"-"+I;let ee=this._triggerCache[ne];if(!ee){const Re=[],st=$t(this._driver,x,Re,[]);if(Re.length)throw function J(E,s){return new p.vHH(3404,!1)}();ee=function _s(E,s,a){return new He(E,s,a)}(I,st,this._normalizer),this._triggerCache[ne]=ee}this._transitionEngine.registerTrigger(a,I,ee)}register(s,a){this._transitionEngine.register(s,a)}destroy(s,a){this._transitionEngine.destroy(s,a)}onInsert(s,a,y,I){this._transitionEngine.insertNode(s,a,y,I)}onRemove(s,a,y,I){this._transitionEngine.removeNode(s,a,I||!1,y)}disableAnimations(s,a){this._transitionEngine.markElementAsDisabled(s,a)}process(s,a,y,I){if("@"==y.charAt(0)){const[x,ne]=si(y);this._timelineEngine.command(x,a,ne,I)}else this._transitionEngine.trigger(s,a,y,I)}listen(s,a,y,I,x){if("@"==y.charAt(0)){const[ne,ee]=si(y);return this._timelineEngine.listen(ne,a,ee,x)}return this._transitionEngine.listen(s,a,y,I,x)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Xi=(()=>{class E{constructor(a,y,I){this._element=a,this._startStyles=y,this._endStyles=I,this._state=0;let x=E.initialStylesByElement.get(a);x||E.initialStylesByElement.set(a,x=new Map),this._initialStyles=x}start(){this._state<1&&(this._startStyles&&Tr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Tr(this._element,this._initialStyles),this._endStyles&&(Tr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(E.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Tr(this._element,this._initialStyles),this._state=3)}}return E.initialStylesByElement=new WeakMap,E})();function Un(E){let s=null;return E.forEach((a,y)=>{(function bs(E){return"display"===E||"position"===E})(y)&&(s=s||new Map,s.set(y,a))}),s}class is{constructor(s,a,y,I){this.element=s,this.keyframes=a,this.options=y,this._specialStyles=I,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=y.duration,this._delay=y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const a=[];return s.forEach(y=>{a.push(Object.fromEntries(y))}),a}_triggerWebAnimation(s,a,y){return s.animate(this._convertKeyframesToObject(a),y)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),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(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((y,I)=>{"offset"!==I&&s.set(I,this._finished?y:Ai(this.element,I))}),this.currentSnapshot=s}triggerCallback(s){const a="start"===s?this._onStartFns:this._onDoneFns;a.forEach(y=>y()),a.length=0}}class pr{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,a){return!1}containsElement(s,a){return ct(s,a)}getParentElement(s){return zr(s)}query(s,a,y){return xt(s,a,y)}computeStyle(s,a,y){return window.getComputedStyle(s)[a]}animate(s,a,y,I,x,ne=[]){const Re={duration:y,delay:I,fill:0==I?"both":"forwards"};x&&(Re.easing=x);const Ge=new Map,st=ne.filter(Lt=>Lt instanceof is);(function Mi(E,s){return 0===E||0===s})(y,I)&&st.forEach(Lt=>{Lt.currentSnapshot.forEach((Tt,kt)=>Ge.set(kt,Tt))});let mt=function $i(E){return E.length?E[0]instanceof Map?E:E.map(s=>gi(s)):[]}(a).map(Lt=>nr(Lt));mt=function go(E,s,a){if(a.size&&s.length){let y=s[0],I=[];if(a.forEach((x,ne)=>{y.has(ne)||I.push(ne),y.set(ne,x)}),I.length)for(let x=1;x<s.length;x++){let ne=s[x];I.forEach(ee=>ne.set(ee,Ai(E,ee)))}}return s}(s,mt,Ge);const Wt=function Pr(E,s){let a=null,y=null;return Array.isArray(s)&&s.length?(a=Un(s[0]),s.length>1&&(y=Un(s[s.length-1]))):s instanceof Map&&(a=Un(s)),a||y?new Xi(E,a,y):null}(s,mt);return new is(s,mt,Re,Wt)}}let ws=(()=>{class E extends yt._j{constructor(a,y){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(y.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(a){const y=this._nextAnimationId.toString();this._nextAnimationId++;const I=Array.isArray(a)?(0,yt.vP)(a):a;return Eo(this._renderer,null,y,"register",[I]),new Ts(y,this._renderer)}}return E.\u0275fac=function(a){return new(a||E)(p.LFG(p.FYo),p.LFG(Se.K0))},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac}),E})();class Ts extends yt.LC{constructor(s,a){super(),this._id=s,this._renderer=a}create(s,a){return new Fs(this._id,s,a||{},this._renderer)}}class Fs{constructor(s,a,y,I){this.id=s,this.element=a,this._renderer=I,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",y)}_listen(s,a){return this._renderer.listen(this.element,`@@${this.id}:${s}`,a)}_command(s,...a){return Eo(this._renderer,this.element,this.id,s,a)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}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(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Eo(E,s,a,y,I){return E.setProperty(s,`@@${a}:${y}`,I)}const g="@",S="@.disabled";let v=(()=>{class E{constructor(a,y,I){this.delegate=a,this.engine=y,this._zone=I,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),y.onRemovalComplete=(x,ne)=>{const ee=ne?.parentNode(x);ee&&ne.removeChild(ee,x)}}createRenderer(a,y){const x=this.delegate.createRenderer(a,y);if(!(a&&y&&y.data&&y.data.animation)){let st=this._rendererCache.get(x);return st||(st=new M("",x,this.engine,()=>this._rendererCache.delete(x)),this._rendererCache.set(x,st)),st}const ne=y.id,ee=y.id+"-"+this._currentId;this._currentId++,this.engine.register(ee,a);const Re=st=>{Array.isArray(st)?st.forEach(Re):this.engine.registerTrigger(ne,ee,a,st.name,st)};return y.data.animation.forEach(Re),new z(this,ee,x,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,y,I){a>=0&&a<this._microtaskId?this._zone.run(()=>y(I)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(x=>{const[ne,ee]=x;ne(ee)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([y,I]))}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 E.\u0275fac=function(a){return new(a||E)(p.LFG(p.FYo),p.LFG(Ji),p.LFG(p.R0b))},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac}),E})();class M{constructor(s,a,y,I){this.namespaceId=s,this.delegate=a,this.engine=y,this._onDestroy=I,this.destroyNode=this.delegate.destroyNode?x=>a.destroyNode(x):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(s,a){return this.delegate.createElement(s,a)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,a){this.delegate.appendChild(s,a),this.engine.onInsert(this.namespaceId,a,s,!1)}insertBefore(s,a,y,I=!0){this.delegate.insertBefore(s,a,y),this.engine.onInsert(this.namespaceId,a,s,I)}removeChild(s,a,y){this.engine.onRemove(this.namespaceId,a,this.delegate,y)}selectRootElement(s,a){return this.delegate.selectRootElement(s,a)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,a,y,I){this.delegate.setAttribute(s,a,y,I)}removeAttribute(s,a,y){this.delegate.removeAttribute(s,a,y)}addClass(s,a){this.delegate.addClass(s,a)}removeClass(s,a){this.delegate.removeClass(s,a)}setStyle(s,a,y,I){this.delegate.setStyle(s,a,y,I)}removeStyle(s,a,y){this.delegate.removeStyle(s,a,y)}setProperty(s,a,y){a.charAt(0)==g&&a==S?this.disableAnimations(s,!!y):this.delegate.setProperty(s,a,y)}setValue(s,a){this.delegate.setValue(s,a)}listen(s,a,y){return this.delegate.listen(s,a,y)}disableAnimations(s,a){this.engine.disableAnimations(s,a)}}class z extends M{constructor(s,a,y,I,x){super(a,y,I,x),this.factory=s,this.namespaceId=a}setProperty(s,a,y){a.charAt(0)==g?"."==a.charAt(1)&&a==S?this.disableAnimations(s,y=void 0===y||!!y):this.engine.process(this.namespaceId,s,a.slice(1),y):this.delegate.setProperty(s,a,y)}listen(s,a,y){if(a.charAt(0)==g){const I=function Oe(E){switch(E){case"body":return document.body;case"document":return document;case"window":return window;default:return E}}(s);let x=a.slice(1),ne="";return x.charAt(0)!=g&&([x,ne]=function Be(E){const s=E.indexOf(".");return[E.substring(0,s),E.slice(s+1)]}(x)),this.engine.listen(this.namespaceId,I,x,ne,ee=>{this.factory.scheduleListenerCallback(ee._data||-1,y,ee)})}return this.delegate.listen(s,a,y)}}const vn=[{provide:yt._j,useClass:ws},{provide:ui,useFactory:function bn(){return new Nt}},{provide:Ji,useClass:(()=>{class E extends Ji{constructor(a,y,I,x){super(a.body,y,I)}ngOnDestroy(){this.flush()}}return E.\u0275fac=function(a){return new(a||E)(p.LFG(Se.K0),p.LFG(br),p.LFG(ui),p.LFG(p.z2F))},E.\u0275prov=p.Yz7({token:E,factory:E.\u0275fac}),E})()},{provide:p.FYo,useFactory:function gn(E,s,a){return new v(E,s,a)},deps:[d.se,Ji,p.R0b]}],qt=[{provide:br,useFactory:()=>new pr},{provide:p.QbO,useValue:"BrowserAnimations"},...vn],Jn=[{provide:br,useClass:lr},{provide:p.QbO,useValue:"NoopAnimations"},...vn];let Rn=(()=>{class E{static withConfig(a){return{ngModule:E,providers:a.disableAnimations?Jn:qt}}}return E.\u0275fac=function(a){return new(a||E)},E.\u0275mod=p.oAB({type:E}),E.\u0275inj=p.cJS({providers:qt,imports:[d.b2]}),E})();class Or{constructor(s){this._router=s}intercept(s,a){let y=JSON.parse(window.localStorage.getItem("user")),I=new Date;if(null!=y){let x=new Date(y.Token.expiredAt);s=s.clone(I<x?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${y.Token.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else s=s.clone({setHeaders:{"Content-Type":"application/json"}});return a.handle(s)}}Or.\u0275fac=function(s){return new(s||Or)(p.LFG(Bn.F0))},Or.\u0275prov=p.Yz7({token:Or,factory:Or.\u0275fac});var Xn=w(7185);function Co(E,s){if(1&E){const a=p.EpF();p.TgZ(0,"a",10),p.NdJ("click",function(){p.CHM(a);const I=p.oxw(2);return p.KtG(I.remove())}),p._uU(1," x "),p.qZA()}}function co(E,s){if(1&E&&(p.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),p._uU(4),p.qZA()()(),p.TgZ(5,"div",8),p.YNc(6,Co,2,0,"a",9),p.qZA()()),2&E){const a=p.oxw();p.Udp("display","inactive"===a.state.value?"none":""),p.xp6(2),p.Tol(a.options.titleClass),p.uIk("aria-label",a.title),p.xp6(2),p.Oqu(a.title),p.xp6(2),p.Q6J("ngIf",a.options.closeButton)}}const os=function(E){return{notitle:E}};function ss(E,s){if(1&E&&p._UZ(0,"div",11),2&E){const a=p.oxw();p.Tol(a.options.messageClass),p.Q6J("ngClass",p.VKq(4,os,null==a.title))("innerHTML",a.message,p.oJD)}}function Wo(E,s){if(1&E&&(p.TgZ(0,"div",12),p._uU(1),p.qZA()),2&E){const a=p.oxw();p.Tol(a.options.messageClass),p.Q6J("ngClass",p.VKq(5,os,null==a.title)),p.uIk("aria-label",a.message),p.xp6(1),p.hij(" ",a.message," ")}}function as(E,s){if(1&E){const a=p.EpF();p.TgZ(0,"a",10),p.NdJ("click",function(){p.CHM(a);const I=p.oxw();return p.KtG(I.remove())}),p._uU(1," x "),p.qZA()}}function Ls(E,s){if(1&E&&(p.TgZ(0,"div"),p._UZ(1,"div",13),p.qZA()),2&E){const a=p.oxw();p.xp6(1),p.Udp("width",a.width+"%")}}class eo extends Xn.FN{constructor(s,a){super(s,a),this.toastrService=s,this.toastPackage=a}ngOnInit(){}action(s){return s.stopPropagation(),this.toastPackage.triggerAction(),!1}}eo.\u0275fac=function(s){return new(s||eo)(p.Y36(Xn._W),p.Y36(Xn.PR))},eo.\u0275cmp=p.Xpm({type:eo,selectors:[["","custom-toast-component",""]],features:[p.qOj],attrs:["custom-toast-component",""],decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","g-0"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(s,a){1&s&&(p.TgZ(0,"div",0),p.YNc(1,co,7,7,"div",1),p.YNc(2,ss,1,6,"div",2),p.YNc(3,Wo,2,7,"div",3),p.YNc(4,as,2,0,"a",4),p.YNc(5,Ls,2,2,"div",5),p.qZA()),2&s&&(p.xp6(1),p.Q6J("ngIf",a.title),p.xp6(1),p.Q6J("ngIf",a.message&&a.options.enableHtml),p.xp6(1),p.Q6J("ngIf",a.message&&!a.options.enableHtml),p.xp6(1),p.Q6J("ngIf",a.options.closeButton&&null==a.title),p.xp6(1),p.Q6J("ngIf",a.options.progressBar))},dependencies:[Se.mk,Se.O5],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:0}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0;margin-left:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,yt.X$)("flyInOut",[(0,yt.SB)("inactive",(0,yt.oB)({opacity:0})),(0,yt.eR)("inactive => active",(0,yt.jt)("400ms ease-out",(0,yt.F4)([(0,yt.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,yt.oB)({transform:"skewX(20deg)",opacity:1}),(0,yt.oB)({transform:"skewX(-5deg)",opacity:1}),(0,yt.oB)({transform:"none",opacity:1})]))),(0,yt.eR)("active => removed",(0,yt.jt)("400ms ease-out",(0,yt.F4)([(0,yt.oB)({opacity:1}),(0,yt.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});var ls=w(5421),Vs=w(2011),ci=w(7899),Bs=w(2340);class Fi{}Fi.\u0275fac=function(s){return new(s||Fi)},Fi.\u0275mod=p.oAB({type:Fi,bootstrap:[Kt]}),Fi.\u0275inj=p.cJS({providers:[{provide:N.TP,useClass:Or,multi:!0},ln.O,ir.e],imports:[d.b2,$n,Rn,Xn.Rh.forRoot({toastComponent:eo,positionClass:"toast-bottom-right",closeButton:!0}),N.JF,ls.Cz.forRoot({name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]}),an.forRoot(),Vs.hO.initializeApp(Bs.N.firebaseConfig),ci.ww]}),Bs.N.production&&(0,p.G48)(),d.q6().bootstrapModule(Fi).catch(E=>console.error(E))},5867:(nt,De,w)=>{w.d(De,{C6:()=>d.getApps,Mq:()=>d.getApp});var d=w(9681);(0,d.registerVersion)("firebase","9.12.1","app")},127:(nt,De,w)=>{w.d(De,{Z:()=>d.Z});var d=w(3942);d.Z.registerVersion("firebase","9.12.1","app-compat")},1135:(nt,De,w)=>{w.d(De,{X:()=>p});var d=w(7579);class p extends d.x{constructor($){super(),this._value=$}get value(){return this.getValue()}_subscribe($){const K=super._subscribe($);return!K.closed&&$.next(this._value),K}getValue(){const{hasError:$,thrownError:K,_value:q}=this;if($)throw K;return this._throwIfClosed(),q}next($){super.next(this._value=$)}}},9751:(nt,De,w)=>{w.d(De,{y:()=>ie});var d=w(930),p=w(727),N=w(8822),$=w(9635),K=w(2416),q=w(576),se=w(2806);let ie=(()=>{class te{constructor(Ae){Ae&&(this._subscribe=Ae)}lift(Ae){const je=new te;return je.source=this,je.operator=Ae,je}subscribe(Ae,je,Ze){const Te=function G(te){return te&&te instanceof d.Lv||function B(te){return te&&(0,q.m)(te.next)&&(0,q.m)(te.error)&&(0,q.m)(te.complete)}(te)&&(0,p.Nn)(te)}(Ae)?Ae:new d.Hp(Ae,je,Ze);return(0,se.x)(()=>{const{operator:Pe,source:Se}=this;Te.add(Pe?Pe.call(Te,Se):Se?this._subscribe(Te):this._trySubscribe(Te))}),Te}_trySubscribe(Ae){try{return this._subscribe(Ae)}catch(je){Ae.error(je)}}forEach(Ae,je){return new(je=ue(je))((Ze,Te)=>{const Pe=new d.Hp({next:Se=>{try{Ae(Se)}catch(ye){Te(ye),Pe.unsubscribe()}},error:Te,complete:Ze});this.subscribe(Pe)})}_subscribe(Ae){var je;return null===(je=this.source)||void 0===je?void 0:je.subscribe(Ae)}[N.L](){return this}pipe(...Ae){return(0,$.U)(Ae)(this)}toPromise(Ae){return new(Ae=ue(Ae))((je,Ze)=>{let Te;this.subscribe(Pe=>Te=Pe,Pe=>Ze(Pe),()=>je(Te))})}}return te.create=Le=>new te(Le),te})();function ue(te){var Le;return null!==(Le=te??K.v.Promise)&&void 0!==Le?Le:Promise}},4707:(nt,De,w)=>{w.d(De,{t:()=>N});var d=w(7579),p=w(6063);class N extends d.x{constructor(K=1/0,q=1/0,se=p.l){super(),this._bufferSize=K,this._windowTime=q,this._timestampProvider=se,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=q===1/0,this._bufferSize=Math.max(1,K),this._windowTime=Math.max(1,q)}next(K){const{isStopped:q,_buffer:se,_infiniteTimeWindow:ie,_timestampProvider:ue,_windowTime:B}=this;q||(se.push(K),!ie&&se.push(ue.now()+B)),this._trimBuffer(),super.next(K)}_subscribe(K){this._throwIfClosed(),this._trimBuffer();const q=this._innerSubscribe(K),{_infiniteTimeWindow:se,_buffer:ie}=this,ue=ie.slice();for(let B=0;B<ue.length&&!K.closed;B+=se?1:2)K.next(ue[B]);return this._checkFinalizedStatuses(K),q}_trimBuffer(){const{_bufferSize:K,_timestampProvider:q,_buffer:se,_infiniteTimeWindow:ie}=this,ue=(ie?1:2)*K;if(K<1/0&&ue<se.length&&se.splice(0,se.length-ue),!ie){const B=q.now();let G=0;for(let te=1;te<se.length&&se[te]<=B;te+=2)G=te;G&&se.splice(0,G+1)}}}},7579:(nt,De,w)=>{w.d(De,{x:()=>se});var d=w(9751),p=w(727);const $=(0,w(3888).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var K=w(8737),q=w(2806);let se=(()=>{class ue extends d.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new ie(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new $}next(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,q.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:te,isStopped:Le,observers:Ae}=this;return te||Le?p.Lc:(this.currentObservers=null,Ae.push(G),new p.w0(()=>{this.currentObservers=null,(0,K.P)(Ae,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:Le,isStopped:Ae}=this;te?G.error(Le):Ae&&G.complete()}asObservable(){const G=new d.y;return G.source=this,G}}return ue.create=(B,G)=>new ie(B,G),ue})();class ie extends se{constructor(B,G){super(),this.destination=B,this.source=G}next(B){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,B)}error(B){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,B)}complete(){var B,G;null===(G=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===G||G.call(B)}_subscribe(B){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe(B))&&void 0!==te?te:p.Lc}}},930:(nt,De,w)=>{w.d(De,{Hp:()=>Ze,Lv:()=>te});var d=w(576),p=w(727),N=w(2416),$=w(7849),K=w(5032);const q=ue("C",void 0,void 0);function ue(Ce,F,ae){return{kind:Ce,value:F,error:ae}}var B=w(3410),G=w(2806);class te extends p.w0{constructor(F){super(),this.isStopped=!1,F?(this.destination=F,(0,p.Nn)(F)&&F.add(this)):this.destination=ye}static create(F,ae,re){return new Ze(F,ae,re)}next(F){this.isStopped?Se(function ie(Ce){return ue("N",Ce,void 0)}(F),this):this._next(F)}error(F){this.isStopped?Se(function se(Ce){return ue("E",void 0,Ce)}(F),this):(this.isStopped=!0,this._error(F))}complete(){this.isStopped?Se(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(F){this.destination.next(F)}_error(F){try{this.destination.error(F)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Le=Function.prototype.bind;function Ae(Ce,F){return Le.call(Ce,F)}class je{constructor(F){this.partialObserver=F}next(F){const{partialObserver:ae}=this;if(ae.next)try{ae.next(F)}catch(re){Te(re)}}error(F){const{partialObserver:ae}=this;if(ae.error)try{ae.error(F)}catch(re){Te(re)}else Te(F)}complete(){const{partialObserver:F}=this;if(F.complete)try{F.complete()}catch(ae){Te(ae)}}}class Ze extends te{constructor(F,ae,re){let he;if(super(),(0,d.m)(F)||!F)he={next:F??void 0,error:ae??void 0,complete:re??void 0};else{let Y;this&&N.v.useDeprecatedNextContext?(Y=Object.create(F),Y.unsubscribe=()=>this.unsubscribe(),he={next:F.next&&Ae(F.next,Y),error:F.error&&Ae(F.error,Y),complete:F.complete&&Ae(F.complete,Y)}):he=F}this.destination=new je(he)}}function Te(Ce){N.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(Ce):(0,$.h)(Ce)}function Se(Ce,F){const{onStoppedNotification:ae}=N.v;ae&&B.z.setTimeout(()=>ae(Ce,F))}const ye={closed:!0,next:K.Z,error:function Pe(Ce){throw Ce},complete:K.Z}},727:(nt,De,w)=>{w.d(De,{Lc:()=>q,w0:()=>K,Nn:()=>se});var d=w(576);const N=(0,w(3888).d)(ue=>function(G){ue(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,Le)=>`${Le+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var $=w(8737);class K{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const Ae of G)Ae.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,d.m)(te))try{te()}catch(Ae){B=Ae instanceof N?Ae.errors:[Ae]}const{_finalizers:Le}=this;if(Le){this._finalizers=null;for(const Ae of Le)try{ie(Ae)}catch(je){B=B??[],je instanceof N?B=[...B,...je.errors]:B.push(je)}}if(B)throw new N(B)}}add(B){var G;if(B&&B!==this)if(this.closed)ie(B);else{if(B instanceof K){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(B)}}_hasParent(B){const{_parentage:G}=this;return G===B||Array.isArray(G)&&G.includes(B)}_addParent(B){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(B),G):G?[G,B]:B}_removeParent(B){const{_parentage:G}=this;G===B?this._parentage=null:Array.isArray(G)&&(0,$.P)(G,B)}remove(B){const{_finalizers:G}=this;G&&(0,$.P)(G,B),B instanceof K&&B._removeParent(this)}}K.EMPTY=(()=>{const ue=new K;return ue.closed=!0,ue})();const q=K.EMPTY;function se(ue){return ue instanceof K||ue&&"closed"in ue&&(0,d.m)(ue.remove)&&(0,d.m)(ue.add)&&(0,d.m)(ue.unsubscribe)}function ie(ue){(0,d.m)(ue)?ue():ue.unsubscribe()}},2416:(nt,De,w)=>{w.d(De,{v:()=>d});const d={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(nt,De,w)=>{w.d(De,{a:()=>B});var d=w(9751),p=w(4742),N=w(8996),$=w(4671),K=w(3268),q=w(3269),se=w(1810),ie=w(5403),ue=w(9672);function B(...Le){const Ae=(0,q.yG)(Le),je=(0,q.jO)(Le),{args:Ze,keys:Te}=(0,p.D)(Le);if(0===Ze.length)return(0,N.D)([],Ae);const Pe=new d.y(function G(Le,Ae,je=$.y){return Ze=>{te(Ae,()=>{const{length:Te}=Le,Pe=new Array(Te);let Se=Te,ye=Te;for(let Ce=0;Ce<Te;Ce++)te(Ae,()=>{const F=(0,N.D)(Le[Ce],Ae);let ae=!1;F.subscribe((0,ie.x)(Ze,re=>{Pe[Ce]=re,ae||(ae=!0,ye--),ye||Ze.next(je(Pe.slice()))},()=>{--Se||Ze.complete()}))},Ze)},Ze)}}(Ze,Ae,Te?Se=>(0,se.n)(Te,Se):$.y));return je?Pe.pipe((0,K.Z)(je)):Pe}function te(Le,Ae,je){Le?(0,ue.f)(je,Le,Ae):Ae()}},7272:(nt,De,w)=>{w.d(De,{z:()=>K});var d=w(8189),N=w(3269),$=w(8996);function K(...q){return function p(){return(0,d.J)(1)}()((0,$.D)(q,(0,N.yG)(q)))}},9770:(nt,De,w)=>{w.d(De,{P:()=>N});var d=w(9751),p=w(8421);function N($){return new d.y(K=>{(0,p.Xf)($()).subscribe(K)})}},515:(nt,De,w)=>{w.d(De,{E:()=>p});const p=new(w(9751).y)(K=>K.complete())},8996:(nt,De,w)=>{w.d(De,{D:()=>F});var d=w(8421),p=w(5363),N=w(9468),q=w(9751),ie=w(2202),ue=w(576),B=w(9672);function te(ae,re){if(!ae)throw new Error("Iterable cannot be null");return new q.y(he=>{(0,B.f)(he,re,()=>{const Y=ae[Symbol.asyncIterator]();(0,B.f)(he,re,()=>{Y.next().then(de=>{de.done?he.complete():he.next(de.value)})},0,!0)})})}var Le=w(3670),Ae=w(8239),je=w(1144),Ze=w(6495),Te=w(2206),Pe=w(4532),Se=w(3260);function F(ae,re){return re?function Ce(ae,re){if(null!=ae){if((0,Le.c)(ae))return function $(ae,re){return(0,d.Xf)(ae).pipe((0,N.R)(re),(0,p.Q)(re))}(ae,re);if((0,je.z)(ae))return function se(ae,re){return new q.y(he=>{let Y=0;return re.schedule(function(){Y===ae.length?he.complete():(he.next(ae[Y++]),he.closed||this.schedule())})})}(ae,re);if((0,Ae.t)(ae))return function K(ae,re){return(0,d.Xf)(ae).pipe((0,N.R)(re),(0,p.Q)(re))}(ae,re);if((0,Te.D)(ae))return te(ae,re);if((0,Ze.T)(ae))return function G(ae,re){return new q.y(he=>{let Y;return(0,B.f)(he,re,()=>{Y=ae[ie.h](),(0,B.f)(he,re,()=>{let de,j;try{({value:de,done:j}=Y.next())}catch(Z){return void he.error(Z)}j?he.complete():he.next(de)},0,!0)}),()=>(0,ue.m)(Y?.return)&&Y.return()})}(ae,re);if((0,Se.L)(ae))return function ye(ae,re){return te((0,Se.Q)(ae),re)}(ae,re)}throw(0,Pe.z)(ae)}(ae,re):(0,d.Xf)(ae)}},8421:(nt,De,w)=>{w.d(De,{Xf:()=>Le});var d=w(655),p=w(1144),N=w(8239),$=w(9751),K=w(3670),q=w(2206),se=w(4532),ie=w(6495),ue=w(3260),B=w(576),G=w(7849),te=w(8822);function Le(Ce){if(Ce instanceof $.y)return Ce;if(null!=Ce){if((0,K.c)(Ce))return function Ae(Ce){return new $.y(F=>{const ae=Ce[te.L]();if((0,B.m)(ae.subscribe))return ae.subscribe(F);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ce);if((0,p.z)(Ce))return function je(Ce){return new $.y(F=>{for(let ae=0;ae<Ce.length&&!F.closed;ae++)F.next(Ce[ae]);F.complete()})}(Ce);if((0,N.t)(Ce))return function Ze(Ce){return new $.y(F=>{Ce.then(ae=>{F.closed||(F.next(ae),F.complete())},ae=>F.error(ae)).then(null,G.h)})}(Ce);if((0,q.D)(Ce))return Pe(Ce);if((0,ie.T)(Ce))return function Te(Ce){return new $.y(F=>{for(const ae of Ce)if(F.next(ae),F.closed)return;F.complete()})}(Ce);if((0,ue.L)(Ce))return function Se(Ce){return Pe((0,ue.Q)(Ce))}(Ce)}throw(0,se.z)(Ce)}function Pe(Ce){return new $.y(F=>{(function ye(Ce,F){var ae,re,he,Y;return(0,d.mG)(this,void 0,void 0,function*(){try{for(ae=(0,d.KL)(Ce);!(re=yield ae.next()).done;)if(F.next(re.value),F.closed)return}catch(de){he={error:de}}finally{try{re&&!re.done&&(Y=ae.return)&&(yield Y.call(ae))}finally{if(he)throw he.error}}F.complete()})})(Ce,F).catch(ae=>F.error(ae))})}},6451:(nt,De,w)=>{w.d(De,{T:()=>q});var d=w(8189),p=w(8421),N=w(515),$=w(3269),K=w(8996);function q(...se){const ie=(0,$.yG)(se),ue=(0,$._6)(se,1/0),B=se;return B.length?1===B.length?(0,p.Xf)(B[0]):(0,d.J)(ue)((0,K.D)(B,ie)):N.E}},9646:(nt,De,w)=>{w.d(De,{of:()=>N});var d=w(3269),p=w(8996);function N(...$){const K=(0,d.yG)($);return(0,p.D)($,K)}},2843:(nt,De,w)=>{w.d(De,{_:()=>N});var d=w(9751),p=w(576);function N($,K){const q=(0,p.m)($)?$:()=>$,se=ie=>ie.error(q());return new d.y(K?ie=>K.schedule(se,0,ie):se)}},2805:(nt,De,w)=>{w.d(De,{H:()=>K});var d=w(9751),p=w(4986),N=w(3532),$=w(1165);function K(q=0,se,ie=p.P){let ue=-1;return null!=se&&((0,N.K)(se)?ie=se:ue=se),new d.y(B=>{let G=(0,$.q)(q)?+q-ie.now():q;G<0&&(G=0);let te=0;return ie.schedule(function(){B.closed||(B.next(te++),0<=ue?this.schedule(void 0,ue):B.complete())},G)})}},5403:(nt,De,w)=>{w.d(De,{x:()=>p});var d=w(930);function p($,K,q,se,ie){return new N($,K,q,se,ie)}class N extends d.Lv{constructor(K,q,se,ie,ue,B){super(K),this.onFinalize=ue,this.shouldUnsubscribe=B,this._next=q?function(G){try{q(G)}catch(te){K.error(te)}}:super._next,this._error=ie?function(G){try{ie(G)}catch(te){K.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=se?function(){try{se()}catch(G){K.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var K;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(K=this.onFinalize)||void 0===K||K.call(this))}}}},262:(nt,De,w)=>{w.d(De,{K:()=>$});var d=w(8421),p=w(5403),N=w(4482);function $(K){return(0,N.e)((q,se)=>{let B,ie=null,ue=!1;ie=q.subscribe((0,p.x)(se,void 0,void 0,G=>{B=(0,d.Xf)(K(G,$(K)(q))),ie?(ie.unsubscribe(),ie=null,B.subscribe(se)):ue=!0})),ue&&(ie.unsubscribe(),ie=null,B.subscribe(se))})}},4351:(nt,De,w)=>{w.d(De,{b:()=>N});var d=w(5577),p=w(576);function N($,K){return(0,p.m)(K)?(0,d.z)($,K,1):(0,d.z)($,1)}},6590:(nt,De,w)=>{w.d(De,{d:()=>N});var d=w(4482),p=w(5403);function N($){return(0,d.e)((K,q)=>{let se=!1;K.subscribe((0,p.x)(q,ie=>{se=!0,q.next(ie)},()=>{se||q.next($),q.complete()}))})}},1884:(nt,De,w)=>{w.d(De,{x:()=>$});var d=w(4671),p=w(4482),N=w(5403);function $(q,se=d.y){return q=q??K,(0,p.e)((ie,ue)=>{let B,G=!0;ie.subscribe((0,N.x)(ue,te=>{const Le=se(te);(G||!q(B,Le))&&(G=!1,B=Le,ue.next(te))}))})}function K(q,se){return q===se}},9300:(nt,De,w)=>{w.d(De,{h:()=>N});var d=w(4482),p=w(5403);function N($,K){return(0,d.e)((q,se)=>{let ie=0;q.subscribe((0,p.x)(se,ue=>$.call(K,ue,ie++)&&se.next(ue)))})}},8746:(nt,De,w)=>{w.d(De,{x:()=>p});var d=w(4482);function p(N){return(0,d.e)(($,K)=>{try{$.subscribe(K)}finally{K.add(N)}})}},590:(nt,De,w)=>{w.d(De,{P:()=>se});var d=w(6805),p=w(9300),N=w(5698),$=w(6590),K=w(8068),q=w(4671);function se(ie,ue){const B=arguments.length>=2;return G=>G.pipe(ie?(0,p.h)((te,Le)=>ie(te,Le,G)):q.y,(0,N.q)(1),B?(0,$.d)(ue):(0,K.T)(()=>new d.K))}},4004:(nt,De,w)=>{w.d(De,{U:()=>N});var d=w(4482),p=w(5403);function N($,K){return(0,d.e)((q,se)=>{let ie=0;q.subscribe((0,p.x)(se,ue=>{se.next($.call(K,ue,ie++))}))})}},9718:(nt,De,w)=>{w.d(De,{h:()=>p});var d=w(4004);function p(N){return(0,d.U)(()=>N)}},8189:(nt,De,w)=>{w.d(De,{J:()=>N});var d=w(5577),p=w(4671);function N($=1/0){return(0,d.z)(p.y,$)}},5577:(nt,De,w)=>{w.d(De,{z:()=>ie});var d=w(4004),p=w(8421),N=w(4482),$=w(9672),K=w(5403),se=w(576);function ie(ue,B,G=1/0){return(0,se.m)(B)?ie((te,Le)=>(0,d.U)((Ae,je)=>B(te,Ae,Le,je))((0,p.Xf)(ue(te,Le))),G):("number"==typeof B&&(G=B),(0,N.e)((te,Le)=>function q(ue,B,G,te,Le,Ae,je,Ze){const Te=[];let Pe=0,Se=0,ye=!1;const Ce=()=>{ye&&!Te.length&&!Pe&&B.complete()},F=re=>Pe<te?ae(re):Te.push(re),ae=re=>{Ae&&B.next(re),Pe++;let he=!1;(0,p.Xf)(G(re,Se++)).subscribe((0,K.x)(B,Y=>{Le?.(Y),Ae?F(Y):B.next(Y)},()=>{he=!0},void 0,()=>{if(he)try{for(Pe--;Te.length&&Pe<te;){const Y=Te.shift();je?(0,$.f)(B,je,()=>ae(Y)):ae(Y)}Ce()}catch(Y){B.error(Y)}}))};return ue.subscribe((0,K.x)(B,F,()=>{ye=!0,Ce()})),()=>{Ze?.()}}(te,Le,ue,G)))}},5363:(nt,De,w)=>{w.d(De,{Q:()=>$});var d=w(9672),p=w(4482),N=w(5403);function $(K,q=0){return(0,p.e)((se,ie)=>{se.subscribe((0,N.x)(ie,ue=>(0,d.f)(ie,K,()=>ie.next(ue),q),()=>(0,d.f)(ie,K,()=>ie.complete(),q),ue=>(0,d.f)(ie,K,()=>ie.error(ue),q)))})}},5026:(nt,De,w)=>{w.d(De,{R:()=>$});var d=w(4482),p=w(5403);function N(K,q,se,ie,ue){return(B,G)=>{let te=se,Le=q,Ae=0;B.subscribe((0,p.x)(G,je=>{const Ze=Ae++;Le=te?K(Le,je,Ze):(te=!0,je),ie&&G.next(Le)},ue&&(()=>{te&&G.next(Le),G.complete()})))}}function $(K,q){return(0,d.e)(N(K,q,arguments.length>=2,!0))}},3099:(nt,De,w)=>{w.d(De,{B:()=>K});var d=w(8421),p=w(7579),N=w(930),$=w(4482);function K(se={}){const{connector:ie=(()=>new p.x),resetOnError:ue=!0,resetOnComplete:B=!0,resetOnRefCountZero:G=!0}=se;return te=>{let Le,Ae,je,Ze=0,Te=!1,Pe=!1;const Se=()=>{Ae?.unsubscribe(),Ae=void 0},ye=()=>{Se(),Le=je=void 0,Te=Pe=!1},Ce=()=>{const F=Le;ye(),F?.unsubscribe()};return(0,$.e)((F,ae)=>{Ze++,!Pe&&!Te&&Se();const re=je=je??ie();ae.add(()=>{Ze--,0===Ze&&!Pe&&!Te&&(Ae=q(Ce,G))}),re.subscribe(ae),!Le&&Ze>0&&(Le=new N.Hp({next:he=>re.next(he),error:he=>{Pe=!0,Se(),Ae=q(ye,ue,he),re.error(he)},complete:()=>{Te=!0,Se(),Ae=q(ye,B),re.complete()}}),(0,d.Xf)(F).subscribe(Le))})(te)}}function q(se,ie,...ue){if(!0===ie)return void se();if(!1===ie)return;const B=new N.Hp({next:()=>{B.unsubscribe(),se()}});return ie(...ue).subscribe(B)}},4782:(nt,De,w)=>{w.d(De,{d:()=>N});var d=w(4707),p=w(3099);function N($,K,q){let se,ie=!1;return $&&"object"==typeof $?({bufferSize:se=1/0,windowTime:K=1/0,refCount:ie=!1,scheduler:q}=$):se=$??1/0,(0,p.B)({connector:()=>new d.t(se,K,q),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ie})}},8675:(nt,De,w)=>{w.d(De,{O:()=>$});var d=w(7272),p=w(3269),N=w(4482);function $(...K){const q=(0,p.yG)(K);return(0,N.e)((se,ie)=>{(q?(0,d.z)(K,se,q):(0,d.z)(K,se)).subscribe(ie)})}},9468:(nt,De,w)=>{w.d(De,{R:()=>p});var d=w(4482);function p(N,$=0){return(0,d.e)((K,q)=>{q.add(N.schedule(()=>K.subscribe(q),$))})}},3900:(nt,De,w)=>{w.d(De,{w:()=>$});var d=w(8421),p=w(4482),N=w(5403);function $(K,q){return(0,p.e)((se,ie)=>{let ue=null,B=0,G=!1;const te=()=>G&&!ue&&ie.complete();se.subscribe((0,N.x)(ie,Le=>{ue?.unsubscribe();let Ae=0;const je=B++;(0,d.Xf)(K(Le,je)).subscribe(ue=(0,N.x)(ie,Ze=>ie.next(q?q(Le,Ze,je,Ae++):Ze),()=>{ue=null,te()}))},()=>{G=!0,te()}))})}},5698:(nt,De,w)=>{w.d(De,{q:()=>$});var d=w(515),p=w(4482),N=w(5403);function $(K){return K<=0?()=>d.E:(0,p.e)((q,se)=>{let ie=0;q.subscribe((0,N.x)(se,ue=>{++ie<=K&&(se.next(ue),K<=ie&&se.complete())}))})}},2529:(nt,De,w)=>{w.d(De,{o:()=>N});var d=w(4482),p=w(5403);function N($,K=!1){return(0,d.e)((q,se)=>{let ie=0;q.subscribe((0,p.x)(se,ue=>{const B=$(ue,ie++);(B||K)&&se.next(ue),!B&&se.complete()}))})}},8505:(nt,De,w)=>{w.d(De,{b:()=>K});var d=w(576),p=w(4482),N=w(5403),$=w(4671);function K(q,se,ie){const ue=(0,d.m)(q)||se||ie?{next:q,error:se,complete:ie}:q;return ue?(0,p.e)((B,G)=>{var te;null===(te=ue.subscribe)||void 0===te||te.call(ue);let Le=!0;B.subscribe((0,N.x)(G,Ae=>{var je;null===(je=ue.next)||void 0===je||je.call(ue,Ae),G.next(Ae)},()=>{var Ae;Le=!1,null===(Ae=ue.complete)||void 0===Ae||Ae.call(ue),G.complete()},Ae=>{var je;Le=!1,null===(je=ue.error)||void 0===je||je.call(ue,Ae),G.error(Ae)},()=>{var Ae,je;Le&&(null===(Ae=ue.unsubscribe)||void 0===Ae||Ae.call(ue)),null===(je=ue.finalize)||void 0===je||je.call(ue)}))}):$.y}},8068:(nt,De,w)=>{w.d(De,{T:()=>$});var d=w(6805),p=w(4482),N=w(5403);function $(q=K){return(0,p.e)((se,ie)=>{let ue=!1;se.subscribe((0,N.x)(ie,B=>{ue=!0,ie.next(B)},()=>ue?ie.complete():ie.error(q())))})}function K(){return new d.K}},4408:(nt,De,w)=>{w.d(De,{o:()=>K});var d=w(727);class p extends d.w0{constructor(se,ie){super()}schedule(se,ie=0){return this}}const N={setInterval(q,se,...ie){const{delegate:ue}=N;return ue?.setInterval?ue.setInterval(q,se,...ie):setInterval(q,se,...ie)},clearInterval(q){const{delegate:se}=N;return(se?.clearInterval||clearInterval)(q)},delegate:void 0};var $=w(8737);class K extends p{constructor(se,ie){super(se,ie),this.scheduler=se,this.work=ie,this.pending=!1}schedule(se,ie=0){if(this.closed)return this;this.state=se;const ue=this.id,B=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(B,ue,ie)),this.pending=!0,this.delay=ie,this.id=this.id||this.requestAsyncId(B,this.id,ie),this}requestAsyncId(se,ie,ue=0){return N.setInterval(se.flush.bind(se,this),ue)}recycleAsyncId(se,ie,ue=0){if(null!=ue&&this.delay===ue&&!1===this.pending)return ie;N.clearInterval(ie)}execute(se,ie){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ue=this._execute(se,ie);if(ue)return ue;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(se,ie){let B,ue=!1;try{this.work(se)}catch(G){ue=!0,B=G||new Error("Scheduled action threw falsy error")}if(ue)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:se,scheduler:ie}=this,{actions:ue}=ie;this.work=this.state=this.scheduler=null,this.pending=!1,(0,$.P)(ue,this),null!=se&&(this.id=this.recycleAsyncId(ie,se,null)),this.delay=null,super.unsubscribe()}}}},7565:(nt,De,w)=>{w.d(De,{v:()=>N});var d=w(6063);class p{constructor(K,q=p.now){this.schedulerActionCtor=K,this.now=q}schedule(K,q=0,se){return new this.schedulerActionCtor(this,K).schedule(se,q)}}p.now=d.l.now;class N extends p{constructor(K,q=p.now){super(K,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(K){const{actions:q}=this;if(this._active)return void q.push(K);let se;this._active=!0;do{if(se=K.execute(K.state,K.delay))break}while(K=q.shift());if(this._active=!1,se){for(;K=q.shift();)K.unsubscribe();throw se}}}},4986:(nt,De,w)=>{w.d(De,{P:()=>$,z:()=>N});var d=w(4408);const N=new(w(7565).v)(d.o),$=N},6063:(nt,De,w)=>{w.d(De,{l:()=>d});const d={now:()=>(d.delegate||Date).now(),delegate:void 0}},3410:(nt,De,w)=>{w.d(De,{z:()=>d});const d={setTimeout(p,N,...$){const{delegate:K}=d;return K?.setTimeout?K.setTimeout(p,N,...$):setTimeout(p,N,...$)},clearTimeout(p){const{delegate:N}=d;return(N?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(nt,De,w)=>{w.d(De,{h:()=>p});const p=function d(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(nt,De,w)=>{w.d(De,{L:()=>d});const d="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(nt,De,w)=>{w.d(De,{K:()=>p});const p=(0,w(3888).d)(N=>function(){N(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(nt,De,w)=>{w.d(De,{_6:()=>q,jO:()=>$,yG:()=>K});var d=w(576),p=w(3532);function N(se){return se[se.length-1]}function $(se){return(0,d.m)(N(se))?se.pop():void 0}function K(se){return(0,p.K)(N(se))?se.pop():void 0}function q(se,ie){return"number"==typeof N(se)?se.pop():ie}},4742:(nt,De,w)=>{w.d(De,{D:()=>K});const{isArray:d}=Array,{getPrototypeOf:p,prototype:N,keys:$}=Object;function K(se){if(1===se.length){const ie=se[0];if(d(ie))return{args:ie,keys:null};if(function q(se){return se&&"object"==typeof se&&p(se)===N}(ie)){const ue=$(ie);return{args:ue.map(B=>ie[B]),keys:ue}}}return{args:se,keys:null}}},8737:(nt,De,w)=>{function d(p,N){if(p){const $=p.indexOf(N);0<=$&&p.splice($,1)}}w.d(De,{P:()=>d})},3888:(nt,De,w)=>{function d(p){const $=p(K=>{Error.call(K),K.stack=(new Error).stack});return $.prototype=Object.create(Error.prototype),$.prototype.constructor=$,$}w.d(De,{d:()=>d})},1810:(nt,De,w)=>{function d(p,N){return p.reduce(($,K,q)=>($[K]=N[q],$),{})}w.d(De,{n:()=>d})},2806:(nt,De,w)=>{w.d(De,{O:()=>$,x:()=>N});var d=w(2416);let p=null;function N(K){if(d.v.useDeprecatedSynchronousErrorHandling){const q=!p;if(q&&(p={errorThrown:!1,error:null}),K(),q){const{errorThrown:se,error:ie}=p;if(p=null,se)throw ie}}else K()}function $(K){d.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=K)}},9672:(nt,De,w)=>{function d(p,N,$,K=0,q=!1){const se=N.schedule(function(){$(),q?p.add(this.schedule(null,K)):this.unsubscribe()},K);if(p.add(se),!q)return se}w.d(De,{f:()=>d})},4671:(nt,De,w)=>{function d(p){return p}w.d(De,{y:()=>d})},1144:(nt,De,w)=>{w.d(De,{z:()=>d});const d=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(nt,De,w)=>{w.d(De,{D:()=>p});var d=w(576);function p(N){return Symbol.asyncIterator&&(0,d.m)(N?.[Symbol.asyncIterator])}},1165:(nt,De,w)=>{function d(p){return p instanceof Date&&!isNaN(p)}w.d(De,{q:()=>d})},576:(nt,De,w)=>{function d(p){return"function"==typeof p}w.d(De,{m:()=>d})},3670:(nt,De,w)=>{w.d(De,{c:()=>N});var d=w(8822),p=w(576);function N($){return(0,p.m)($[d.L])}},6495:(nt,De,w)=>{w.d(De,{T:()=>N});var d=w(2202),p=w(576);function N($){return(0,p.m)($?.[d.h])}},8239:(nt,De,w)=>{w.d(De,{t:()=>p});var d=w(576);function p(N){return(0,d.m)(N?.then)}},3260:(nt,De,w)=>{w.d(De,{L:()=>$,Q:()=>N});var d=w(655),p=w(576);function N(K){return(0,d.FC)(this,arguments,function*(){const se=K.getReader();try{for(;;){const{value:ie,done:ue}=yield(0,d.qq)(se.read());if(ue)return yield(0,d.qq)(void 0);yield yield(0,d.qq)(ie)}}finally{se.releaseLock()}})}function $(K){return(0,p.m)(K?.getReader)}},3532:(nt,De,w)=>{w.d(De,{K:()=>p});var d=w(576);function p(N){return N&&(0,d.m)(N.schedule)}},4482:(nt,De,w)=>{w.d(De,{A:()=>p,e:()=>N});var d=w(576);function p($){return(0,d.m)($?.lift)}function N($){return K=>{if(p(K))return K.lift(function(q){try{return $(q,this)}catch(se){this.error(se)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(nt,De,w)=>{w.d(De,{Z:()=>$});var d=w(4004);const{isArray:p}=Array;function $(K){return(0,d.U)(q=>function N(K,q){return p(q)?K(...q):K(q)}(K,q))}},5032:(nt,De,w)=>{function d(){}w.d(De,{Z:()=>d})},9635:(nt,De,w)=>{w.d(De,{U:()=>N,z:()=>p});var d=w(4671);function p(...$){return N($)}function N($){return 0===$.length?d.y:1===$.length?$[0]:function(q){return $.reduce((se,ie)=>ie(se),q)}}},7849:(nt,De,w)=>{w.d(De,{h:()=>N});var d=w(2416),p=w(3410);function N($){p.z.setTimeout(()=>{const{onUnhandledError:K}=d.v;if(!K)throw $;K($)})}},4532:(nt,De,w)=>{function d(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}w.d(De,{z:()=>d})},655:(nt,De,w)=>{function $(j,Z){var be={};for(var fe in j)Object.prototype.hasOwnProperty.call(j,fe)&&Z.indexOf(fe)<0&&(be[fe]=j[fe]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var ze=0;for(fe=Object.getOwnPropertySymbols(j);ze<fe.length;ze++)Z.indexOf(fe[ze])<0&&Object.prototype.propertyIsEnumerable.call(j,fe[ze])&&(be[fe[ze]]=j[fe[ze]])}return be}function ie(j,Z,be,fe){return new(be||(be=Promise))(function(Ke,pt){function Yt(St){try{bt(fe.next(St))}catch(Ne){pt(Ne)}}function sn(St){try{bt(fe.throw(St))}catch(Ne){pt(Ne)}}function bt(St){St.done?Ke(St.value):function ze(Ke){return Ke instanceof be?Ke:new be(function(pt){pt(Ke)})}(St.value).then(Yt,sn)}bt((fe=fe.apply(j,Z||[])).next())})}function Te(j){return this instanceof Te?(this.v=j,this):new Te(j)}function Pe(j,Z,be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,fe=be.apply(j,Z||[]),Ke=[];return ze={},pt("next"),pt("throw"),pt("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function pt(Qe){fe[Qe]&&(ze[Qe]=function(ce){return new Promise(function(xe,et){Ke.push([Qe,ce,xe,et])>1||Yt(Qe,ce)})})}function Yt(Qe,ce){try{!function sn(Qe){Qe.value instanceof Te?Promise.resolve(Qe.value.v).then(bt,St):Ne(Ke[0][2],Qe)}(fe[Qe](ce))}catch(xe){Ne(Ke[0][3],xe)}}function bt(Qe){Yt("next",Qe)}function St(Qe){Yt("throw",Qe)}function Ne(Qe,ce){Qe(ce),Ke.shift(),Ke.length&&Yt(Ke[0][0],Ke[0][1])}}function ye(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var be,Z=j[Symbol.asyncIterator];return Z?Z.call(j):(j=function te(j){var Z="function"==typeof Symbol&&Symbol.iterator,be=Z&&j[Z],fe=0;if(be)return be.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&fe>=j.length&&(j=void 0),{value:j&&j[fe++],done:!j}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),be={},fe("next"),fe("throw"),fe("return"),be[Symbol.asyncIterator]=function(){return this},be);function fe(Ke){be[Ke]=j[Ke]&&function(pt){return new Promise(function(Yt,sn){!function ze(Ke,pt,Yt,sn){Promise.resolve(sn).then(function(bt){Ke({value:bt,done:Yt})},pt)}(Yt,sn,(pt=j[Ke](pt)).done,pt.value)})}}}w.d(De,{FC:()=>Pe,KL:()=>ye,_T:()=>$,mG:()=>ie,qq:()=>Te})},7340:(nt,De,w)=>{w.d(De,{F4:()=>B,IO:()=>je,LC:()=>p,SB:()=>ue,X$:()=>$,ZE:()=>Se,ZN:()=>Pe,_j:()=>d,eR:()=>G,jt:()=>K,k1:()=>ye,l3:()=>N,oB:()=>ie,pV:()=>Le,ru:()=>q,vP:()=>se});class d{}class p{}const N="*";function $(Ce,F){return{type:7,name:Ce,definitions:F,options:{}}}function K(Ce,F=null){return{type:4,styles:F,timings:Ce}}function q(Ce,F=null){return{type:3,steps:Ce,options:F}}function se(Ce,F=null){return{type:2,steps:Ce,options:F}}function ie(Ce){return{type:6,styles:Ce,offset:null}}function ue(Ce,F,ae){return{type:0,name:Ce,styles:F,options:ae}}function B(Ce){return{type:5,steps:Ce}}function G(Ce,F,ae=null){return{type:1,expr:Ce,animation:F,options:ae}}function Le(Ce=null){return{type:9,options:Ce}}function je(Ce,F,ae=null){return{type:11,selector:Ce,animation:F,options:ae}}function Te(Ce){Promise.resolve().then(Ce)}class Pe{constructor(F=0,ae=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=F+ae}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}onStart(F){this._originalOnStartFns.push(F),this._onStartFns.push(F)}onDone(F){this._originalOnDoneFns.push(F),this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(F=>F()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(F){this._position=this.totalTime?F*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(F){const ae="start"==F?this._onStartFns:this._onDoneFns;ae.forEach(re=>re()),ae.length=0}}class Se{constructor(F){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=F;let ae=0,re=0,he=0;const Y=this.players.length;0==Y?Te(()=>this._onFinish()):this.players.forEach(de=>{de.onDone(()=>{++ae==Y&&this._onFinish()}),de.onDestroy(()=>{++re==Y&&this._onDestroy()}),de.onStart(()=>{++he==Y&&this._onStart()})}),this.totalTime=this.players.reduce((de,j)=>Math.max(de,j.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(F=>F()),this._onDoneFns=[])}init(){this.players.forEach(F=>F.init())}onStart(F){this._onStartFns.push(F)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(F=>F()),this._onStartFns=[])}onDone(F){this._onDoneFns.push(F)}onDestroy(F){this._onDestroyFns.push(F)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(F=>F.play())}pause(){this.players.forEach(F=>F.pause())}restart(){this.players.forEach(F=>F.restart())}finish(){this._onFinish(),this.players.forEach(F=>F.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(F=>F.destroy()),this._onDestroyFns.forEach(F=>F()),this._onDestroyFns=[])}reset(){this.players.forEach(F=>F.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(F){const ae=F*this.totalTime;this.players.forEach(re=>{const he=re.totalTime?Math.min(1,ae/re.totalTime):1;re.setPosition(he)})}getPosition(){const F=this.players.reduce((ae,re)=>null===ae||re.totalTime>ae.totalTime?re:ae,null);return null!=F?F.getPosition():0}beforeDestroy(){this.players.forEach(F=>{F.beforeDestroy&&F.beforeDestroy()})}triggerCallback(F){const ae="start"==F?this._onStartFns:this._onDoneFns;ae.forEach(re=>re()),ae.length=0}}const ye="!"},6895:(nt,De,w)=>{w.d(De,{$G:()=>Fn,Do:()=>Se,ED:()=>tr,EM:()=>ai,HT:()=>$,JF:()=>Ki,JJ:()=>yo,K0:()=>q,Mx:()=>Qn,NF:()=>Pn,O5:()=>kr,Ov:()=>rr,PC:()=>gi,PM:()=>$t,RF:()=>Hi,S$:()=>Ze,Ts:()=>Ai,V_:()=>ue,Ye:()=>ye,Zd:()=>xi,b0:()=>Pe,bD:()=>Ve,ez:()=>Ie,mk:()=>xt,n9:()=>Kn,q:()=>N,sg:()=>wr,tP:()=>$i,uU:()=>Sr,w_:()=>K});var d=w(4650);let p=null;function N(){return p}function $(g){p||(p=g)}class K{}const q=new d.OlP("DocumentToken");let se=(()=>{class g{historyGo(v){throw new Error("Not implemented")}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=d.Yz7({token:g,factory:function(){return function ie(){return(0,d.LFG)(B)}()},providedIn:"platform"}),g})();const ue=new d.OlP("Location Initialized");let B=(()=>{class g extends se{constructor(v){super(),this._doc=v,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return N().getBaseHref(this._doc)}onPopState(v){const M=N().getGlobalEventTarget(this._doc,"window");return M.addEventListener("popstate",v,!1),()=>M.removeEventListener("popstate",v)}onHashChange(v){const M=N().getGlobalEventTarget(this._doc,"window");return M.addEventListener("hashchange",v,!1),()=>M.removeEventListener("hashchange",v)}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(v){this._location.pathname=v}pushState(v,M,z){G()?this._history.pushState(v,M,z):this._location.hash=z}replaceState(v,M,z){G()?this._history.replaceState(v,M,z):this._location.hash=z}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return g.\u0275fac=function(v){return new(v||g)(d.LFG(q))},g.\u0275prov=d.Yz7({token:g,factory:function(){return function te(){return new B((0,d.LFG)(q))}()},providedIn:"platform"}),g})();function G(){return!!window.history.pushState}function Le(g,S){if(0==g.length)return S;if(0==S.length)return g;let v=0;return g.endsWith("/")&&v++,S.startsWith("/")&&v++,2==v?g+S.substring(1):1==v?g+S:g+"/"+S}function Ae(g){const S=g.match(/#|\?|$/),v=S&&S.index||g.length;return g.slice(0,v-("/"===g[v-1]?1:0))+g.slice(v)}function je(g){return g&&"?"!==g[0]?"?"+g:g}let Ze=(()=>{class g{historyGo(v){throw new Error("Not implemented")}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=d.Yz7({token:g,factory:function(){return(0,d.f3M)(Pe)},providedIn:"root"}),g})();const Te=new d.OlP("appBaseHref");let Pe=(()=>{class g extends Ze{constructor(v,M){super(),this._platformLocation=v,this._removeListenerFns=[],this._baseHref=M??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return Le(this._baseHref,v)}path(v=!1){const M=this._platformLocation.pathname+je(this._platformLocation.search),z=this._platformLocation.hash;return z&&v?`${M}${z}`:M}pushState(v,M,z,Oe){const Be=this.prepareExternalUrl(z+je(Oe));this._platformLocation.pushState(v,M,Be)}replaceState(v,M,z,Oe){const Be=this.prepareExternalUrl(z+je(Oe));this._platformLocation.replaceState(v,M,Be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return g.\u0275fac=function(v){return new(v||g)(d.LFG(se),d.LFG(Te,8))},g.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})(),Se=(()=>{class g extends Ze{constructor(v,M){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=M&&(this._baseHref=M)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let M=this._platformLocation.hash;return null==M&&(M="#"),M.length>0?M.substring(1):M}prepareExternalUrl(v){const M=Le(this._baseHref,v);return M.length>0?"#"+M:M}pushState(v,M,z,Oe){let Be=this.prepareExternalUrl(z+je(Oe));0==Be.length&&(Be=this._platformLocation.pathname),this._platformLocation.pushState(v,M,Be)}replaceState(v,M,z,Oe){let Be=this.prepareExternalUrl(z+je(Oe));0==Be.length&&(Be=this._platformLocation.pathname),this._platformLocation.replaceState(v,M,Be)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return g.\u0275fac=function(v){return new(v||g)(d.LFG(se),d.LFG(Te,8))},g.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac}),g})(),ye=(()=>{class g{constructor(v){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=v;const M=this._locationStrategy.getBaseHref();this._basePath=function re(g){if(new RegExp("^(https?:)?//").test(g)){const[,v]=g.split(/\/\/[^\/]+/);return v}return g}(Ae(ae(M))),this._locationStrategy.onPopState(z=>{this._subject.emit({url:this.path(!0),pop:!0,state:z.state,type:z.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(v=!1){return this.normalize(this._locationStrategy.path(v))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(v,M=""){return this.path()==this.normalize(v+je(M))}normalize(v){return g.stripTrailingSlash(function F(g,S){return g&&new RegExp(`^${g}([/;?#]|$)`).test(S)?S.substring(g.length):S}(this._basePath,ae(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._locationStrategy.prepareExternalUrl(v)}go(v,M="",z=null){this._locationStrategy.pushState(z,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+je(M)),z)}replaceState(v,M="",z=null){this._locationStrategy.replaceState(z,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+je(M)),z)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(v=0){this._locationStrategy.historyGo?.(v)}onUrlChange(v){return this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(M=>{this._notifyUrlChangeListeners(M.url,M.state)})),()=>{const M=this._urlChangeListeners.indexOf(v);this._urlChangeListeners.splice(M,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(v="",M){this._urlChangeListeners.forEach(z=>z(v,M))}subscribe(v,M,z){return this._subject.subscribe({next:v,error:M,complete:z})}}return g.normalizeQueryParams=je,g.joinWithSlash=Le,g.stripTrailingSlash=Ae,g.\u0275fac=function(v){return new(v||g)(d.LFG(Ze))},g.\u0275prov=d.Yz7({token:g,factory:function(){return function Ce(){return new ye((0,d.LFG)(Ze))}()},providedIn:"root"}),g})();function ae(g){return g.replace(/\/index.html$/,"")}var Y=(()=>((Y=Y||{})[Y.Decimal=0]="Decimal",Y[Y.Percent=1]="Percent",Y[Y.Currency=2]="Currency",Y[Y.Scientific=3]="Scientific",Y))(),j=(()=>((j=j||{})[j.Format=0]="Format",j[j.Standalone=1]="Standalone",j))(),Z=(()=>((Z=Z||{})[Z.Narrow=0]="Narrow",Z[Z.Abbreviated=1]="Abbreviated",Z[Z.Wide=2]="Wide",Z[Z.Short=3]="Short",Z))(),be=(()=>((be=be||{})[be.Short=0]="Short",be[be.Medium=1]="Medium",be[be.Long=2]="Long",be[be.Full=3]="Full",be))(),fe=(()=>((fe=fe||{})[fe.Decimal=0]="Decimal",fe[fe.Group=1]="Group",fe[fe.List=2]="List",fe[fe.PercentSign=3]="PercentSign",fe[fe.PlusSign=4]="PlusSign",fe[fe.MinusSign=5]="MinusSign",fe[fe.Exponential=6]="Exponential",fe[fe.SuperscriptingExponent=7]="SuperscriptingExponent",fe[fe.PerMille=8]="PerMille",fe[fe.Infinity=9]="Infinity",fe[fe.NaN=10]="NaN",fe[fe.TimeSeparator=11]="TimeSeparator",fe[fe.CurrencyDecimal=12]="CurrencyDecimal",fe[fe.CurrencyGroup=13]="CurrencyGroup",fe))();function Qe(g,S){return Kt((0,d.cg1)(g)[d.wAp.DateFormat],S)}function ce(g,S){return Kt((0,d.cg1)(g)[d.wAp.TimeFormat],S)}function xe(g,S){return Kt((0,d.cg1)(g)[d.wAp.DateTimeFormat],S)}function et(g,S){const v=(0,d.cg1)(g),M=v[d.wAp.NumberSymbols][S];if(typeof M>"u"){if(S===fe.CurrencyDecimal)return v[d.wAp.NumberSymbols][fe.Decimal];if(S===fe.CurrencyGroup)return v[d.wAp.NumberSymbols][fe.Group]}return M}function er(g){if(!g[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Kt(g,S){for(let v=S;v>-1;v--)if(typeof g[v]<"u")return g[v];throw new Error("Locale data API: locale data undefined")}function yt(g){const[S,v]=g.split(":");return{hours:+S,minutes:+v}}const In=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nn={},sr=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var It=(()=>((It=It||{})[It.Short=0]="Short",It[It.ShortGMT=1]="ShortGMT",It[It.Long=2]="Long",It[It.Extended=3]="Extended",It))(),_t=(()=>((_t=_t||{})[_t.FullYear=0]="FullYear",_t[_t.Month=1]="Month",_t[_t.Date=2]="Date",_t[_t.Hours=3]="Hours",_t[_t.Minutes=4]="Minutes",_t[_t.Seconds=5]="Seconds",_t[_t.FractionalSeconds=6]="FractionalSeconds",_t[_t.Day=7]="Day",_t))(),lt=(()=>((lt=lt||{})[lt.DayPeriods=0]="DayPeriods",lt[lt.Days=1]="Days",lt[lt.Months=2]="Months",lt[lt.Eras=3]="Eras",lt))();function Ct(g,S,v,M){let z=function it(g){if(Rt(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[z,Oe=1,Be=1]=g.split("-").map(dt=>+dt);return mn(z,Oe-1,Be)}const v=parseFloat(g);if(!isNaN(g-v))return new Date(v);let M;if(M=g.match(In))return function Mt(g){const S=new Date(0);let v=0,M=0;const z=g[8]?S.setUTCFullYear:S.setFullYear,Oe=g[8]?S.setUTCHours:S.setHours;g[9]&&(v=Number(g[9]+g[10]),M=Number(g[9]+g[11])),z.call(S,Number(g[1]),Number(g[2])-1,Number(g[3]));const Be=Number(g[4]||0)-v,dt=Number(g[5]||0)-M,bn=Number(g[6]||0),gn=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return Oe.call(S,Be,dt,bn,gn),S}(M)}const S=new Date(g);if(!Rt(S))throw new Error(`Unable to convert "${g}" into a date`);return S}(g);S=kn(v,S)||S;let dt,Be=[];for(;S;){if(dt=sr.exec(S),!dt){Be.push(S);break}{Be=Be.concat(dt.slice(1));const vn=Be.pop();if(!vn)break;S=vn}}let bn=z.getTimezoneOffset();M&&(bn=oe(M,bn),z=function ge(g,S,v){const M=v?-1:1,z=g.getTimezoneOffset();return function ke(g,S){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+S),g}(g,M*(oe(S,z)-z))}(z,M,!0));let gn="";return Be.forEach(vn=>{const qt=function U(g){if(k[g])return k[g];let S;switch(g){case"G":case"GG":case"GGG":S=Qt(lt.Eras,Z.Abbreviated);break;case"GGGG":S=Qt(lt.Eras,Z.Wide);break;case"GGGGG":S=Qt(lt.Eras,Z.Narrow);break;case"y":S=dn(_t.FullYear,1,0,!1,!0);break;case"yy":S=dn(_t.FullYear,2,0,!0,!0);break;case"yyy":S=dn(_t.FullYear,3,0,!1,!0);break;case"yyyy":S=dn(_t.FullYear,4,0,!1,!0);break;case"Y":S=Ue(1);break;case"YY":S=Ue(2,!0);break;case"YYY":S=Ue(3);break;case"YYYY":S=Ue(4);break;case"M":case"L":S=dn(_t.Month,1,1);break;case"MM":case"LL":S=dn(_t.Month,2,1);break;case"MMM":S=Qt(lt.Months,Z.Abbreviated);break;case"MMMM":S=Qt(lt.Months,Z.Wide);break;case"MMMMM":S=Qt(lt.Months,Z.Narrow);break;case"LLL":S=Qt(lt.Months,Z.Abbreviated,j.Standalone);break;case"LLLL":S=Qt(lt.Months,Z.Wide,j.Standalone);break;case"LLLLL":S=Qt(lt.Months,Z.Narrow,j.Standalone);break;case"w":S=J(1);break;case"ww":S=J(2);break;case"W":S=J(1,!0);break;case"d":S=dn(_t.Date,1);break;case"dd":S=dn(_t.Date,2);break;case"c":case"cc":S=dn(_t.Day,1);break;case"ccc":S=Qt(lt.Days,Z.Abbreviated,j.Standalone);break;case"cccc":S=Qt(lt.Days,Z.Wide,j.Standalone);break;case"ccccc":S=Qt(lt.Days,Z.Narrow,j.Standalone);break;case"cccccc":S=Qt(lt.Days,Z.Short,j.Standalone);break;case"E":case"EE":case"EEE":S=Qt(lt.Days,Z.Abbreviated);break;case"EEEE":S=Qt(lt.Days,Z.Wide);break;case"EEEEE":S=Qt(lt.Days,Z.Narrow);break;case"EEEEEE":S=Qt(lt.Days,Z.Short);break;case"a":case"aa":case"aaa":S=Qt(lt.DayPeriods,Z.Abbreviated);break;case"aaaa":S=Qt(lt.DayPeriods,Z.Wide);break;case"aaaaa":S=Qt(lt.DayPeriods,Z.Narrow);break;case"b":case"bb":case"bbb":S=Qt(lt.DayPeriods,Z.Abbreviated,j.Standalone,!0);break;case"bbbb":S=Qt(lt.DayPeriods,Z.Wide,j.Standalone,!0);break;case"bbbbb":S=Qt(lt.DayPeriods,Z.Narrow,j.Standalone,!0);break;case"B":case"BB":case"BBB":S=Qt(lt.DayPeriods,Z.Abbreviated,j.Format,!0);break;case"BBBB":S=Qt(lt.DayPeriods,Z.Wide,j.Format,!0);break;case"BBBBB":S=Qt(lt.DayPeriods,Z.Narrow,j.Format,!0);break;case"h":S=dn(_t.Hours,1,-12);break;case"hh":S=dn(_t.Hours,2,-12);break;case"H":S=dn(_t.Hours,1);break;case"HH":S=dn(_t.Hours,2);break;case"m":S=dn(_t.Minutes,1);break;case"mm":S=dn(_t.Minutes,2);break;case"s":S=dn(_t.Seconds,1);break;case"ss":S=dn(_t.Seconds,2);break;case"S":S=dn(_t.FractionalSeconds,1);break;case"SS":S=dn(_t.FractionalSeconds,2);break;case"SSS":S=dn(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":S=yr(It.Short);break;case"ZZZZZ":S=yr(It.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":S=yr(It.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":S=yr(It.Long);break;default:return null}return k[g]=S,S}(vn);gn+=qt?qt(z,v,bn):"''"===vn?"'":vn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),gn}function mn(g,S,v){const M=new Date(0);return M.setFullYear(g,S,v),M.setHours(0,0,0),M}function kn(g,S){const v=function Ke(g){return(0,d.cg1)(g)[d.wAp.LocaleId]}(g);if(Nn[v]=Nn[v]||{},Nn[v][S])return Nn[v][S];let M="";switch(S){case"shortDate":M=Qe(g,be.Short);break;case"mediumDate":M=Qe(g,be.Medium);break;case"longDate":M=Qe(g,be.Long);break;case"fullDate":M=Qe(g,be.Full);break;case"shortTime":M=ce(g,be.Short);break;case"mediumTime":M=ce(g,be.Medium);break;case"longTime":M=ce(g,be.Long);break;case"fullTime":M=ce(g,be.Full);break;case"short":const z=kn(g,"shortTime"),Oe=kn(g,"shortDate");M=Hn(xe(g,be.Short),[z,Oe]);break;case"medium":const Be=kn(g,"mediumTime"),dt=kn(g,"mediumDate");M=Hn(xe(g,be.Medium),[Be,dt]);break;case"long":const bn=kn(g,"longTime"),gn=kn(g,"longDate");M=Hn(xe(g,be.Long),[bn,gn]);break;case"full":const vn=kn(g,"fullTime"),qt=kn(g,"fullDate");M=Hn(xe(g,be.Full),[vn,qt])}return M&&(Nn[v][S]=M),M}function Hn(g,S){return S&&(g=g.replace(/\{([^}]+)}/g,function(v,M){return null!=S&&M in S?S[M]:v})),g}function Mn(g,S,v="-",M,z){let Oe="";(g<0||z&&g<=0)&&(z?g=1-g:(g=-g,Oe=v));let Be=String(g);for(;Be.length<S;)Be="0"+Be;return M&&(Be=Be.slice(Be.length-S)),Oe+Be}function dn(g,S,v=0,M=!1,z=!1){return function(Oe,Be){let dt=function qr(g,S){switch(g){case _t.FullYear:return S.getFullYear();case _t.Month:return S.getMonth();case _t.Date:return S.getDate();case _t.Hours:return S.getHours();case _t.Minutes:return S.getMinutes();case _t.Seconds:return S.getSeconds();case _t.FractionalSeconds:return S.getMilliseconds();case _t.Day:return S.getDay();default:throw new Error(`Unknown DateType value "${g}".`)}}(g,Oe);if((v>0||dt>-v)&&(dt+=v),g===_t.Hours)0===dt&&-12===v&&(dt=12);else if(g===_t.FractionalSeconds)return function mr(g,S){return Mn(g,3).substring(0,S)}(dt,S);const bn=et(Be,fe.MinusSign);return Mn(dt,S,bn,M,z)}}function Qt(g,S,v=j.Format,M=!1){return function(z,Oe){return function Vn(g,S,v,M,z,Oe){switch(v){case lt.Months:return function sn(g,S,v){const M=(0,d.cg1)(g),Oe=Kt([M[d.wAp.MonthsFormat],M[d.wAp.MonthsStandalone]],S);return Kt(Oe,v)}(S,z,M)[g.getMonth()];case lt.Days:return function Yt(g,S,v){const M=(0,d.cg1)(g),Oe=Kt([M[d.wAp.DaysFormat],M[d.wAp.DaysStandalone]],S);return Kt(Oe,v)}(S,z,M)[g.getDay()];case lt.DayPeriods:const Be=g.getHours(),dt=g.getMinutes();if(Oe){const gn=function $n(g){const S=(0,d.cg1)(g);return er(S),(S[d.wAp.ExtraData][2]||[]).map(M=>"string"==typeof M?yt(M):[yt(M[0]),yt(M[1])])}(S),vn=function tn(g,S,v){const M=(0,d.cg1)(g);er(M);const Oe=Kt([M[d.wAp.ExtraData][0],M[d.wAp.ExtraData][1]],S)||[];return Kt(Oe,v)||[]}(S,z,M),qt=gn.findIndex(Jn=>{if(Array.isArray(Jn)){const[Rn,Yn]=Jn,mi=Be>=Rn.hours&&dt>=Rn.minutes,ri=Be<Yn.hours||Be===Yn.hours&&dt<Yn.minutes;if(Rn.hours<Yn.hours){if(mi&&ri)return!0}else if(mi||ri)return!0}else if(Jn.hours===Be&&Jn.minutes===dt)return!0;return!1});if(-1!==qt)return vn[qt]}return function pt(g,S,v){const M=(0,d.cg1)(g),Oe=Kt([M[d.wAp.DayPeriodsFormat],M[d.wAp.DayPeriodsStandalone]],S);return Kt(Oe,v)}(S,z,M)[Be<12?0:1];case lt.Eras:return function bt(g,S){return Kt((0,d.cg1)(g)[d.wAp.Eras],S)}(S,M)[g.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(z,Oe,g,S,v,M)}}function yr(g){return function(S,v,M){const z=-1*M,Oe=et(v,fe.MinusSign),Be=z>0?Math.floor(z/60):Math.ceil(z/60);switch(g){case It.Short:return(z>=0?"+":"")+Mn(Be,2,Oe)+Mn(Math.abs(z%60),2,Oe);case It.ShortGMT:return"GMT"+(z>=0?"+":"")+Mn(Be,1,Oe);case It.Long:return"GMT"+(z>=0?"+":"")+Mn(Be,2,Oe)+":"+Mn(Math.abs(z%60),2,Oe);case It.Extended:return 0===M?"Z":(z>=0?"+":"")+Mn(Be,2,Oe)+":"+Mn(Math.abs(z%60),2,Oe);default:throw new Error(`Unknown zone width "${g}"`)}}}function V(g){return mn(g.getFullYear(),g.getMonth(),g.getDate()+(4-g.getDay()))}function J(g,S=!1){return function(v,M){let z;if(S){const Oe=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,Be=v.getDate();z=1+Math.floor((Be+Oe)/7)}else{const Oe=V(v),Be=function _e(g){const S=mn(g,0,1).getDay();return mn(g,0,1+(S<=4?4:11)-S)}(Oe.getFullYear()),dt=Oe.getTime()-Be.getTime();z=1+Math.round(dt/6048e5)}return Mn(z,g,et(M,fe.MinusSign))}}function Ue(g,S=!1){return function(v,M){return Mn(V(v).getFullYear(),g,et(M,fe.MinusSign),S)}}const k={};function oe(g,S){g=g.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(v)?S:v}function Rt(g){return g instanceof Date&&!isNaN(g.valueOf())}const Xt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,X=".",L="0";function oo(g){const S=parseInt(g);if(isNaN(S))throw new Error("Invalid integer literal when parsing "+g);return S}function Qn(g,S){S=encodeURIComponent(S);for(const v of g.split(";")){const M=v.indexOf("="),[z,Oe]=-1==M?[v,""]:[v.slice(0,M),v.slice(M+1)];if(z.trim()===S)return decodeURIComponent(Oe)}return null}const Nr=/\s+/,ct=[];let xt=(()=>{class g{constructor(v,M,z,Oe){this._iterableDiffers=v,this._keyValueDiffers=M,this._ngEl=z,this._renderer=Oe,this.initialClasses=ct,this.stateMap=new Map}set klass(v){this.initialClasses=null!=v?v.trim().split(Nr):ct}set ngClass(v){this.rawClass="string"==typeof v?v.trim().split(Nr):v}ngDoCheck(){for(const M of this.initialClasses)this._updateState(M,!0);const v=this.rawClass;if(Array.isArray(v)||v instanceof Set)for(const M of v)this._updateState(M,!0);else if(null!=v)for(const M of Object.keys(v))this._updateState(M,Boolean(v[M]));this._applyStateDiff()}_updateState(v,M){const z=this.stateMap.get(v);void 0!==z?(z.enabled!==M&&(z.changed=!0,z.enabled=M),z.touched=!0):this.stateMap.set(v,{enabled:M,changed:!0,touched:!0})}_applyStateDiff(){for(const v of this.stateMap){const M=v[0],z=v[1];z.changed?(this._toggleClass(M,z.enabled),z.changed=!1):z.touched||(z.enabled&&this._toggleClass(M,!1),this.stateMap.delete(M)),z.touched=!1}}_toggleClass(v,M){(v=v.trim()).length>0&&v.split(Nr).forEach(z=>{M?this._renderer.addClass(this._ngEl.nativeElement,z):this._renderer.removeClass(this._ngEl.nativeElement,z)})}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),g})(),Fn=(()=>{class g{constructor(v){this._viewContainerRef=v,this.ngComponentOutlet=null}ngOnChanges(v){const{_viewContainerRef:M,ngComponentOutletNgModule:z,ngComponentOutletNgModuleFactory:Oe}=this;if(M.clear(),this._componentRef=void 0,this.ngComponentOutlet){const Be=this.ngComponentOutletInjector||M.parentInjector;(v.ngComponentOutletNgModule||v.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=z?(0,d.Lck)(z,lr(Be)):Oe?Oe.create(lr(Be)):void 0),this._componentRef=M.createComponent(this.ngComponentOutlet,{index:M.length,injector:Be,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[d.TTD]}),g})();function lr(g){return g.get(d.h0i).injector}class wn{constructor(S,v,M,z){this.$implicit=S,this.ngForOf=v,this.index=M,this.count=z}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 wr=(()=>{class g{set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}constructor(v,M,z){this._viewContainer=v,this._template=M,this._differs=z,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const M=this._viewContainer;v.forEachOperation((z,Oe,Be)=>{if(null==z.previousIndex)M.createEmbeddedView(this._template,new wn(z.item,this._ngForOf,-1,-1),null===Be?void 0:Be);else if(null==Be)M.remove(null===Oe?void 0:Oe);else if(null!==Oe){const dt=M.get(Oe);M.move(dt,Be),hn(dt,z)}});for(let z=0,Oe=M.length;z<Oe;z++){const dt=M.get(z).context;dt.index=z,dt.count=Oe,dt.ngForOf=this._ngForOf}v.forEachIdentityChange(z=>{hn(M.get(z.currentIndex),z)})}static ngTemplateContextGuard(v,M){return!0}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),g})();function hn(g,S){g.context.$implicit=S.item}let kr=(()=>{class g{constructor(v,M){this._viewContainer=v,this._context=new Ht,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=M}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){Ti("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){Ti("ngIfElse",v),this._elseTemplateRef=v,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(v,M){return!0}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b),d.Y36(d.Rgc))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),g})();class Ht{constructor(){this.$implicit=null,this.ngIf=null}}function Ti(g,S){if(S&&!S.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,d.AaK)(S)}'.`)}class Si{constructor(S,v){this._viewContainerRef=S,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(S){S&&!this._created?this.create():!S&&this._created&&this.destroy()}}let Hi=(()=>{class g{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews.push(v)}_matchCase(v){const M=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||M,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),M}_updateDefaultCases(v){if(this._defaultViews.length>0&&v!==this._defaultUsed){this._defaultUsed=v;for(const M of this._defaultViews)M.enforceState(v)}}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275dir=d.lG2({type:g,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),g})(),Kn=(()=>{class g{constructor(v,M,z){this.ngSwitch=z,z._addCase(),this._view=new Si(v,M)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Hi,9))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),g})(),tr=(()=>{class g{constructor(v,M,z){z._addDefault(new Si(v,M))}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Hi,9))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngSwitchDefault",""]],standalone:!0}),g})(),gi=(()=>{class g{constructor(v,M,z){this._ngEl=v,this._differs=M,this._renderer=z,this._ngStyle=null,this._differ=null}set ngStyle(v){this._ngStyle=v,!this._differ&&v&&(this._differ=this._differs.find(v).create())}ngDoCheck(){if(this._differ){const v=this._differ.diff(this._ngStyle);v&&this._applyChanges(v)}}_setStyle(v,M){const[z,Oe]=v.split("."),Be=-1===z.indexOf("-")?void 0:d.JOm.DashCase;null!=M?this._renderer.setStyle(this._ngEl.nativeElement,z,Oe?`${M}${Oe}`:M,Be):this._renderer.removeStyle(this._ngEl.nativeElement,z,Be)}_applyChanges(v){v.forEachRemovedItem(M=>this._setStyle(M.key,null)),v.forEachAddedItem(M=>this._setStyle(M.key,M.currentValue)),v.forEachChangedItem(M=>this._setStyle(M.key,M.currentValue))}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),g})(),$i=(()=>{class g{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(v){if(v.ngTemplateOutlet||v.ngTemplateOutletInjector){const M=this._viewContainerRef;if(this._viewRef&&M.remove(M.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:z,ngTemplateOutletContext:Oe,ngTemplateOutletInjector:Be}=this;this._viewRef=M.createEmbeddedView(z,Oe,Be?{injector:Be}:void 0)}else this._viewRef=null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.s_b))},g.\u0275dir=d.lG2({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),g})();function nr(g,S){return new d.vHH(2100,!1)}class Ii{createSubscription(S,v){return S.subscribe({next:v,error:M=>{throw M}})}dispose(S){S.unsubscribe()}}class Uo{createSubscription(S,v){return S.then(v,M=>{throw M})}dispose(S){}}const Tr=new Uo,Gr=new Ii;let rr=(()=>{class g{constructor(v){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=v}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(v){return this._obj?v!==this._obj?(this._dispose(),this.transform(v)):this._latestValue:(v&&this._subscribe(v),this._latestValue)}_subscribe(v){this._obj=v,this._strategy=this._selectStrategy(v),this._subscription=this._strategy.createSubscription(v,M=>this._updateLatestValue(v,M))}_selectStrategy(v){if((0,d.QGY)(v))return Tr;if((0,d.F4k)(v))return Gr;throw nr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(v,M){v===this._obj&&(this._latestValue=M,this._ref.markForCheck())}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.sBO,16))},g.\u0275pipe=d.Yjl({name:"async",type:g,pure:!1,standalone:!0}),g})();const Vi=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),zi=new d.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Sr=(()=>{class g{constructor(v,M,z){this.locale=v,this.defaultTimezone=M,this.defaultOptions=z}transform(v,M,z,Oe){if(null==v||""===v||v!=v)return null;try{return Ct(v,M??this.defaultOptions?.dateFormat??"mediumDate",Oe||this.locale,z??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Be){throw nr()}}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.soG,16),d.Y36(Vi,24),d.Y36(zi,24))},g.\u0275pipe=d.Yjl({name:"date",type:g,pure:!0,standalone:!0}),g})(),Ai=(()=>{class g{transform(v){return JSON.stringify(v,null,2)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275pipe=d.Yjl({name:"json",type:g,pure:!1,standalone:!0}),g})(),yo=(()=>{class g{constructor(v){this._locale=v}transform(v,M,z){if(!function Pi(g){return!(null==g||""===g||g!=g)}(v))return null;z=z||this._locale;try{return function si(g,S,v){return function Gn(g,S,v,M,z,Oe,Be=!1){let dt="",bn=!1;if(isFinite(g)){let gn=function io(g){let M,z,Oe,Be,dt,S=Math.abs(g)+"",v=0;for((z=S.indexOf(X))>-1&&(S=S.replace(X,"")),(Oe=S.search(/e/i))>0?(z<0&&(z=Oe),z+=+S.slice(Oe+1),S=S.substring(0,Oe)):z<0&&(z=S.length),Oe=0;S.charAt(Oe)===L;Oe++);if(Oe===(dt=S.length))M=[0],z=1;else{for(dt--;S.charAt(dt)===L;)dt--;for(z-=Oe,M=[],Be=0;Oe<=dt;Oe++,Be++)M[Be]=Number(S.charAt(Oe))}return z>22&&(M=M.splice(0,21),v=z-1,z=1),{digits:M,exponent:v,integerLen:z}}(g);Be&&(gn=function ho(g){if(0===g.digits[0])return g;const S=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===S?g.digits.push(0,0):1===S&&g.digits.push(0),g.integerLen+=2),g}(gn));let vn=S.minInt,qt=S.minFrac,Jn=S.maxFrac;if(Oe){const Xn=Oe.match(Xt);if(null===Xn)throw new Error(`${Oe} is not a valid digit info`);const ki=Xn[1],Co=Xn[3],co=Xn[5];null!=ki&&(vn=oo(ki)),null!=Co&&(qt=oo(Co)),null!=co?Jn=oo(co):null!=Co&&qt>Jn&&(Jn=qt)}!function zr(g,S,v){if(S>v)throw new Error(`The minimum number of digits after fraction (${S}) is higher than the maximum (${v}).`);let M=g.digits,z=M.length-g.integerLen;const Oe=Math.min(Math.max(S,z),v);let Be=Oe+g.integerLen,dt=M[Be];if(Be>0){M.splice(Math.max(g.integerLen,Be));for(let qt=Be;qt<M.length;qt++)M[qt]=0}else{z=Math.max(0,z),g.integerLen=1,M.length=Math.max(1,Be=Oe+1),M[0]=0;for(let qt=1;qt<Be;qt++)M[qt]=0}if(dt>=5)if(Be-1<0){for(let qt=0;qt>Be;qt--)M.unshift(0),g.integerLen++;M.unshift(1),g.integerLen++}else M[Be-1]++;for(;z<Math.max(0,Oe);z++)M.push(0);let bn=0!==Oe;const gn=S+g.integerLen,vn=M.reduceRight(function(qt,Jn,Rn,Yn){return Yn[Rn]=(Jn+=qt)<10?Jn:Jn-10,bn&&(0===Yn[Rn]&&Rn>=gn?Yn.pop():bn=!1),Jn>=10?1:0},0);vn&&(M.unshift(vn),g.integerLen++)}(gn,qt,Jn);let Rn=gn.digits,Yn=gn.integerLen;const mi=gn.exponent;let ri=[];for(bn=Rn.every(Xn=>!Xn);Yn<vn;Yn++)Rn.unshift(0);for(;Yn<0;Yn++)Rn.unshift(0);Yn>0?ri=Rn.splice(Yn,Rn.length):(ri=Rn,Rn=[0]);const Or=[];for(Rn.length>=S.lgSize&&Or.unshift(Rn.splice(-S.lgSize,Rn.length).join(""));Rn.length>S.gSize;)Or.unshift(Rn.splice(-S.gSize,Rn.length).join(""));Rn.length&&Or.unshift(Rn.join("")),dt=Or.join(et(v,M)),ri.length&&(dt+=et(v,z)+ri.join("")),mi&&(dt+=et(v,fe.Exponential)+"+"+mi)}else dt=et(v,fe.Infinity);return dt=g<0&&!bn?S.negPre+dt+S.negSuf:S.posPre+dt+S.posSuf,dt}(g,function hi(g,S="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},M=g.split(";"),z=M[0],Oe=M[1],Be=-1!==z.indexOf(X)?z.split(X):[z.substring(0,z.lastIndexOf(L)+1),z.substring(z.lastIndexOf(L)+1)],dt=Be[0],bn=Be[1]||"";v.posPre=dt.substring(0,dt.indexOf("#"));for(let vn=0;vn<bn.length;vn++){const qt=bn.charAt(vn);qt===L?v.minFrac=v.maxFrac=vn+1:"#"===qt?v.maxFrac=vn+1:v.posSuf+=qt}const gn=dt.split(",");if(v.gSize=gn[1]?gn[1].length:0,v.lgSize=gn[2]||gn[1]?(gn[2]||gn[1]).length:0,Oe){const vn=z.length-v.posPre.length-v.posSuf.length,qt=Oe.indexOf("#");v.negPre=Oe.substring(0,qt).replace(/'/g,""),v.negSuf=Oe.slice(qt+vn).replace(/'/g,"")}else v.negPre=S+v.posPre,v.negSuf=v.posSuf;return v}(function Pt(g,S){return(0,d.cg1)(g)[d.wAp.NumberFormats][S]}(S,Y.Decimal),et(S,fe.MinusSign)),S,fe.Group,fe.Decimal,v)}(function ei(g){if("string"==typeof g&&!isNaN(Number(g)-parseFloat(g)))return Number(g);if("number"!=typeof g)throw new Error(`${g} is not a number`);return g}(v),z,M)}catch(Oe){throw nr()}}}return g.\u0275fac=function(v){return new(v||g)(d.Y36(d.soG,16))},g.\u0275pipe=d.Yjl({name:"number",type:g,pure:!0,standalone:!0}),g})();let Ie=(()=>{class g{}return g.\u0275fac=function(v){return new(v||g)},g.\u0275mod=d.oAB({type:g}),g.\u0275inj=d.cJS({}),g})();const Ve="browser";function Pn(g){return g===Ve}function $t(g){return"server"===g}let ai=(()=>{class g{}return g.\u0275prov=(0,d.Yz7)({token:g,providedIn:"root",factory:()=>new li((0,d.LFG)(q),window)}),g})();class li{constructor(S,v){this.document=S,this.window=v,this.offset=()=>[0,0]}setOffset(S){this.offset=Array.isArray(S)?()=>S:S}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(S){this.supportsScrolling()&&this.window.scrollTo(S[0],S[1])}scrollToAnchor(S){if(!this.supportsScrolling())return;const v=function _i(g,S){const v=g.getElementById(S)||g.getElementsByName(S)[0];if(v)return v;if("function"==typeof g.createTreeWalker&&g.body&&(g.body.createShadowRoot||g.body.attachShadow)){const M=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let z=M.currentNode;for(;z;){const Oe=z.shadowRoot;if(Oe){const Be=Oe.getElementById(S)||Oe.querySelector(`[name="${S}"]`);if(Be)return Be}z=M.nextNode()}}return null}(this.document,S);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(S){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=S)}}scrollToElement(S){const v=S.getBoundingClientRect(),M=v.left+this.window.pageXOffset,z=v.top+this.window.pageYOffset,Oe=this.offset();this.window.scrollTo(M-Oe[0],z-Oe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const S=so(this.window.history)||so(Object.getPrototypeOf(this.window.history));return!(!S||!S.writable&&!S.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function so(g){return Object.getOwnPropertyDescriptor(g,"scrollRestoration")}class Ki{}const Mo=g=>g.src,Wr=new d.OlP("ImageLoader",{providedIn:"root",factory:()=>Mo}),Vo=new d.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let zo=(()=>{class g{constructor(){this.preloadedImages=(0,d.f3M)(Vo),this.document=(0,d.f3M)(q)}createPreloadLinkTag(v,M,z,Oe){if(this.preloadedImages.has(M))return;this.preloadedImages.add(M);const Be=v.createElement("link");v.setAttribute(Be,"as","image"),v.setAttribute(Be,"href",M),v.setAttribute(Be,"rel","preload"),v.setAttribute(Be,"fetchpriority","high"),Oe&&v.setAttribute(Be,"imageSizes",Oe),z&&v.setAttribute(Be,"imageSrcset",z),v.appendChild(this.document.head,Be)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const Qi=/^((\s*\d+w\s*(,|$)){1,})$/,Br=[1,2],Ri={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},Go=new d.OlP("ImageConfig",{providedIn:"root",factory:()=>Ri});let xi=(()=>{class g{constructor(){this.imageLoader=(0,d.f3M)(Wr),this.config=function qn(g){let S={};return g.breakpoints&&(S.breakpoints=g.breakpoints.sort((v,M)=>v-M)),Object.assign({},Ri,g,S)}((0,d.f3M)(Go)),this.renderer=(0,d.f3M)(d.Qsj),this.imgElement=(0,d.f3M)(d.SBq).nativeElement,this.injector=(0,d.f3M)(d.zs3),this.isServer=$t((0,d.f3M)(d.Lbi)),this.preloadLinkChecker=(0,d.f3M)(zo),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(v){this._width=Ni(v)}get width(){return this._width}set height(v){this._height=Ni(v)}get height(){return this._height}set priority(v){this._priority=uo(v)}get priority(){return this._priority}set disableOptimizedSrcset(v){this._disableOptimizedSrcset=uo(v)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(v){this._fill=uo(v)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const v=this.getRewrittenSrc();let M;this.setHostAttribute("src",v),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?M=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(M=this.getAutomaticSrcset()),M&&this.setHostAttribute("srcset",M),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,v,M,this.sizes)}ngOnChanges(v){}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.imageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const v=Qi.test(this.ngSrcset);return this.ngSrcset.split(",").filter(z=>""!==z).map(z=>{z=z.trim();const Oe=v?parseFloat(z):parseFloat(z)*this.width;return`${this.imageLoader({src:this.ngSrc,width:Oe})} ${z}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:v}=this.config;let M=v;return"100vw"===this.sizes?.trim()&&(M=v.filter(Oe=>Oe>=640)),M.map(Oe=>`${this.imageLoader({src:this.ngSrc,width:Oe})} ${Oe}w`).join(", ")}getFixedSrcset(){return Br.map(M=>`${this.imageLoader({src:this.ngSrc,width:this.width*M})} ${M}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Mo&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(v,M){this.renderer.setAttribute(this.imgElement,v,M)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275dir=d.lG2({type:g,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(v,M){2&v&&d.Udp("position",M.fill?"absolute":null)("width",M.fill?"100%":null)("height",M.fill?"100%":null)("inset",M.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[d.TTD]}),g})();function Ni(g){return"string"==typeof g?parseInt(g,10):g}function uo(g){return null!=g&&"false"!=`${g}`}},529:(nt,De,w)=>{w.d(De,{JF:()=>yr,TP:()=>bt,eN:()=>Ke});var d=w(6895),p=w(4650),N=w(9646),$=w(9751),K=w(4351),q=w(9300),se=w(4004);class ie{}class ue{}class B{constructor(V){this.normalizedNames=new Map,this.lazyUpdate=null,V?this.lazyInit="string"==typeof V?()=>{this.headers=new Map,V.split("\n").forEach(J=>{const Ue=J.indexOf(":");if(Ue>0){const k=J.slice(0,Ue),U=k.toLowerCase(),oe=J.slice(Ue+1).trim();this.maybeSetNormalizedName(k,U),this.headers.has(U)?this.headers.get(U).push(oe):this.headers.set(U,[oe])}})}:()=>{this.headers=new Map,Object.keys(V).forEach(J=>{let Ue=V[J];const k=J.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(k,Ue),this.maybeSetNormalizedName(J,k))})}:this.headers=new Map}has(V){return this.init(),this.headers.has(V.toLowerCase())}get(V){this.init();const J=this.headers.get(V.toLowerCase());return J&&J.length>0?J[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(V){return this.init(),this.headers.get(V.toLowerCase())||null}append(V,J){return this.clone({name:V,value:J,op:"a"})}set(V,J){return this.clone({name:V,value:J,op:"s"})}delete(V,J){return this.clone({name:V,value:J,op:"d"})}maybeSetNormalizedName(V,J){this.normalizedNames.has(J)||this.normalizedNames.set(J,V)}init(){this.lazyInit&&(this.lazyInit instanceof B?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(V=>this.applyUpdate(V)),this.lazyUpdate=null))}copyFrom(V){V.init(),Array.from(V.headers.keys()).forEach(J=>{this.headers.set(J,V.headers.get(J)),this.normalizedNames.set(J,V.normalizedNames.get(J))})}clone(V){const J=new B;return J.lazyInit=this.lazyInit&&this.lazyInit instanceof B?this.lazyInit:this,J.lazyUpdate=(this.lazyUpdate||[]).concat([V]),J}applyUpdate(V){const J=V.name.toLowerCase();switch(V.op){case"a":case"s":let Ue=V.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(V.name,J);const k=("a"===V.op?this.headers.get(J):void 0)||[];k.push(...Ue),this.headers.set(J,k);break;case"d":const U=V.value;if(U){let oe=this.headers.get(J);if(!oe)return;oe=oe.filter(ke=>-1===U.indexOf(ke)),0===oe.length?(this.headers.delete(J),this.normalizedNames.delete(J)):this.headers.set(J,oe)}else this.headers.delete(J),this.normalizedNames.delete(J)}}forEach(V){this.init(),Array.from(this.normalizedNames.keys()).forEach(J=>V(this.normalizedNames.get(J),this.headers.get(J)))}}class te{encodeKey(V){return Ze(V)}encodeValue(V){return Ze(V)}decodeKey(V){return decodeURIComponent(V)}decodeValue(V){return decodeURIComponent(V)}}const Ae=/%(\d[a-f0-9])/gi,je={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ze(_e){return encodeURIComponent(_e).replace(Ae,(V,J)=>je[J]??V)}function Te(_e){return`${_e}`}class Pe{constructor(V={}){if(this.updates=null,this.cloneFrom=null,this.encoder=V.encoder||new te,V.fromString){if(V.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Le(_e,V){const J=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(k=>{const U=k.indexOf("="),[oe,ke]=-1==U?[V.decodeKey(k),""]:[V.decodeKey(k.slice(0,U)),V.decodeValue(k.slice(U+1))],ge=J.get(oe)||[];ge.push(ke),J.set(oe,ge)}),J}(V.fromString,this.encoder)}else V.fromObject?(this.map=new Map,Object.keys(V.fromObject).forEach(J=>{const Ue=V.fromObject[J],k=Array.isArray(Ue)?Ue.map(Te):[Te(Ue)];this.map.set(J,k)})):this.map=null}has(V){return this.init(),this.map.has(V)}get(V){this.init();const J=this.map.get(V);return J?J[0]:null}getAll(V){return this.init(),this.map.get(V)||null}keys(){return this.init(),Array.from(this.map.keys())}append(V,J){return this.clone({param:V,value:J,op:"a"})}appendAll(V){const J=[];return Object.keys(V).forEach(Ue=>{const k=V[Ue];Array.isArray(k)?k.forEach(U=>{J.push({param:Ue,value:U,op:"a"})}):J.push({param:Ue,value:k,op:"a"})}),this.clone(J)}set(V,J){return this.clone({param:V,value:J,op:"s"})}delete(V,J){return this.clone({param:V,value:J,op:"d"})}toString(){return this.init(),this.keys().map(V=>{const J=this.encoder.encodeKey(V);return this.map.get(V).map(Ue=>J+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(V=>""!==V).join("&")}clone(V){const J=new Pe({encoder:this.encoder});return J.cloneFrom=this.cloneFrom||this,J.updates=(this.updates||[]).concat(V),J}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(V=>this.map.set(V,this.cloneFrom.map.get(V))),this.updates.forEach(V=>{switch(V.op){case"a":case"s":const J=("a"===V.op?this.map.get(V.param):void 0)||[];J.push(Te(V.value)),this.map.set(V.param,J);break;case"d":if(void 0===V.value){this.map.delete(V.param);break}{let Ue=this.map.get(V.param)||[];const k=Ue.indexOf(Te(V.value));-1!==k&&Ue.splice(k,1),Ue.length>0?this.map.set(V.param,Ue):this.map.delete(V.param)}}}),this.cloneFrom=this.updates=null)}}class ye{constructor(){this.map=new Map}set(V,J){return this.map.set(V,J),this}get(V){return this.map.has(V)||this.map.set(V,V.defaultValue()),this.map.get(V)}delete(V){return this.map.delete(V),this}has(V){return this.map.has(V)}keys(){return this.map.keys()}}function F(_e){return typeof ArrayBuffer<"u"&&_e instanceof ArrayBuffer}function ae(_e){return typeof Blob<"u"&&_e instanceof Blob}function re(_e){return typeof FormData<"u"&&_e instanceof FormData}class Y{constructor(V,J,Ue,k){let U;if(this.url=J,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=V.toUpperCase(),function Ce(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||k?(this.body=void 0!==Ue?Ue:null,U=k):U=Ue,U&&(this.reportProgress=!!U.reportProgress,this.withCredentials=!!U.withCredentials,U.responseType&&(this.responseType=U.responseType),U.headers&&(this.headers=U.headers),U.context&&(this.context=U.context),U.params&&(this.params=U.params)),this.headers||(this.headers=new B),this.context||(this.context=new ye),this.params){const oe=this.params.toString();if(0===oe.length)this.urlWithParams=J;else{const ke=J.indexOf("?");this.urlWithParams=J+(-1===ke?"?":ke<J.length-1?"&":"")+oe}}else this.params=new Pe,this.urlWithParams=J}serializeBody(){return null===this.body?null:F(this.body)||ae(this.body)||re(this.body)||function he(_e){return typeof URLSearchParams<"u"&&_e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Pe?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||re(this.body)?null:ae(this.body)?this.body.type||null:F(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Pe?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(V={}){const J=V.method||this.method,Ue=V.url||this.url,k=V.responseType||this.responseType,U=void 0!==V.body?V.body:this.body,oe=void 0!==V.withCredentials?V.withCredentials:this.withCredentials,ke=void 0!==V.reportProgress?V.reportProgress:this.reportProgress;let ge=V.headers||this.headers,it=V.params||this.params;const Mt=V.context??this.context;return void 0!==V.setHeaders&&(ge=Object.keys(V.setHeaders).reduce((Rt,Xt)=>Rt.set(Xt,V.setHeaders[Xt]),ge)),V.setParams&&(it=Object.keys(V.setParams).reduce((Rt,Xt)=>Rt.set(Xt,V.setParams[Xt]),it)),new Y(J,Ue,U,{params:it,headers:ge,context:Mt,reportProgress:ke,responseType:k,withCredentials:oe})}}var de=(()=>((de=de||{})[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User",de))();class j{constructor(V,J=200,Ue="OK"){this.headers=V.headers||new B,this.status=void 0!==V.status?V.status:J,this.statusText=V.statusText||Ue,this.url=V.url||null,this.ok=this.status>=200&&this.status<300}}class Z extends j{constructor(V={}){super(V),this.type=de.ResponseHeader}clone(V={}){return new Z({headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class be extends j{constructor(V={}){super(V),this.type=de.Response,this.body=void 0!==V.body?V.body:null}clone(V={}){return new be({body:void 0!==V.body?V.body:this.body,headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class fe extends j{constructor(V){super(V,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${V.url||"(unknown url)"}`:`Http failure response for ${V.url||"(unknown url)"}: ${V.status} ${V.statusText}`,this.error=V.error||null}}function ze(_e,V){return{body:V,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let Ke=(()=>{class _e{constructor(J){this.handler=J}request(J,Ue,k={}){let U;if(J instanceof Y)U=J;else{let ge,it;ge=k.headers instanceof B?k.headers:new B(k.headers),k.params&&(it=k.params instanceof Pe?k.params:new Pe({fromObject:k.params})),U=new Y(J,Ue,void 0!==k.body?k.body:null,{headers:ge,context:k.context,params:it,reportProgress:k.reportProgress,responseType:k.responseType||"json",withCredentials:k.withCredentials})}const oe=(0,N.of)(U).pipe((0,K.b)(ge=>this.handler.handle(ge)));if(J instanceof Y||"events"===k.observe)return oe;const ke=oe.pipe((0,q.h)(ge=>ge instanceof be));switch(k.observe||"body"){case"body":switch(U.responseType){case"arraybuffer":return ke.pipe((0,se.U)(ge=>{if(null!==ge.body&&!(ge.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ge.body}));case"blob":return ke.pipe((0,se.U)(ge=>{if(null!==ge.body&&!(ge.body instanceof Blob))throw new Error("Response is not a Blob.");return ge.body}));case"text":return ke.pipe((0,se.U)(ge=>{if(null!==ge.body&&"string"!=typeof ge.body)throw new Error("Response is not a string.");return ge.body}));default:return ke.pipe((0,se.U)(ge=>ge.body))}case"response":return ke;default:throw new Error(`Unreachable: unhandled observe type ${k.observe}}`)}}delete(J,Ue={}){return this.request("DELETE",J,Ue)}get(J,Ue={}){return this.request("GET",J,Ue)}head(J,Ue={}){return this.request("HEAD",J,Ue)}jsonp(J,Ue){return this.request("JSONP",J,{params:(new Pe).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(J,Ue={}){return this.request("OPTIONS",J,Ue)}patch(J,Ue,k={}){return this.request("PATCH",J,ze(k,Ue))}post(J,Ue,k={}){return this.request("POST",J,ze(k,Ue))}put(J,Ue,k={}){return this.request("PUT",J,ze(k,Ue))}}return _e.\u0275fac=function(J){return new(J||_e)(p.LFG(ie))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();function pt(_e,V){return V(_e)}function Yt(_e,V){return(J,Ue)=>V.intercept(J,{handle:k=>_e(k,Ue)})}const bt=new p.OlP("HTTP_INTERCEPTORS"),St=new p.OlP("HTTP_INTERCEPTOR_FNS");function Ne(){let _e=null;return(V,J)=>(null===_e&&(_e=((0,p.f3M)(bt,{optional:!0})??[]).reduceRight(Yt,pt)),_e(V,J))}let Qe=(()=>{class _e extends ie{constructor(J,Ue){super(),this.backend=J,this.injector=Ue,this.chain=null}handle(J){if(null===this.chain){const Ue=Array.from(new Set(this.injector.get(St)));this.chain=Ue.reduceRight((k,U)=>function sn(_e,V,J){return(Ue,k)=>J.runInContext(()=>V(Ue,U=>_e(U,k)))}(k,U,this.injector),pt)}return this.chain(J,Ue=>this.backend.handle(Ue))}}return _e.\u0275fac=function(J){return new(J||_e)(p.LFG(ue),p.LFG(p.lqb))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const tn=/^\)\]\}',?\n/;let Kt=(()=>{class _e{constructor(J){this.xhrFactory=J}handle(J){if("JSONP"===J.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new $.y(Ue=>{const k=this.xhrFactory.build();if(k.open(J.method,J.urlWithParams),J.withCredentials&&(k.withCredentials=!0),J.headers.forEach((Q,X)=>k.setRequestHeader(Q,X.join(","))),J.headers.has("Accept")||k.setRequestHeader("Accept","application/json, text/plain, */*"),!J.headers.has("Content-Type")){const Q=J.detectContentTypeHeader();null!==Q&&k.setRequestHeader("Content-Type",Q)}if(J.responseType){const Q=J.responseType.toLowerCase();k.responseType="json"!==Q?Q:"text"}const U=J.serializeBody();let oe=null;const ke=()=>{if(null!==oe)return oe;const Q=k.statusText||"OK",X=new B(k.getAllResponseHeaders()),L=function jn(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(k)||J.url;return oe=new Z({headers:X,status:k.status,statusText:Q,url:L}),oe},ge=()=>{let{headers:Q,status:X,statusText:L,url:ve}=ke(),$e=null;204!==X&&($e=typeof k.response>"u"?k.responseText:k.response),0===X&&(X=$e?200:0);let ut=X>=200&&X<300;if("json"===J.responseType&&"string"==typeof $e){const Ft=$e;$e=$e.replace(tn,"");try{$e=""!==$e?JSON.parse($e):null}catch(zn){$e=Ft,ut&&(ut=!1,$e={error:zn,text:$e})}}ut?(Ue.next(new be({body:$e,headers:Q,status:X,statusText:L,url:ve||void 0})),Ue.complete()):Ue.error(new fe({error:$e,headers:Q,status:X,statusText:L,url:ve||void 0}))},it=Q=>{const{url:X}=ke(),L=new fe({error:Q,status:k.status||0,statusText:k.statusText||"Unknown Error",url:X||void 0});Ue.error(L)};let Mt=!1;const Rt=Q=>{Mt||(Ue.next(ke()),Mt=!0);let X={type:de.DownloadProgress,loaded:Q.loaded};Q.lengthComputable&&(X.total=Q.total),"text"===J.responseType&&k.responseText&&(X.partialText=k.responseText),Ue.next(X)},Xt=Q=>{let X={type:de.UploadProgress,loaded:Q.loaded};Q.lengthComputable&&(X.total=Q.total),Ue.next(X)};return k.addEventListener("load",ge),k.addEventListener("error",it),k.addEventListener("timeout",it),k.addEventListener("abort",it),J.reportProgress&&(k.addEventListener("progress",Rt),null!==U&&k.upload&&k.upload.addEventListener("progress",Xt)),k.send(U),Ue.next({type:de.Sent}),()=>{k.removeEventListener("error",it),k.removeEventListener("abort",it),k.removeEventListener("load",ge),k.removeEventListener("timeout",it),J.reportProgress&&(k.removeEventListener("progress",Rt),null!==U&&k.upload&&k.upload.removeEventListener("progress",Xt)),k.readyState!==k.DONE&&k.abort()}})}}return _e.\u0275fac=function(J){return new(J||_e)(p.LFG(d.JF))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const yt=new p.OlP("XSRF_ENABLED"),Et="XSRF-TOKEN",fn=new p.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Et}),or="X-XSRF-TOKEN",In=new p.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>or});class Nn{}let sr=(()=>{class _e{constructor(J,Ue,k){this.doc=J,this.platform=Ue,this.cookieName=k,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const J=this.doc.cookie||"";return J!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(J,this.cookieName),this.lastCookieString=J),this.lastToken}}return _e.\u0275fac=function(J){return new(J||_e)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(fn))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();function It(_e,V){const J=_e.url.toLowerCase();if(!(0,p.f3M)(yt)||"GET"===_e.method||"HEAD"===_e.method||J.startsWith("http://")||J.startsWith("https://"))return V(_e);const Ue=(0,p.f3M)(Nn).getToken(),k=(0,p.f3M)(In);return null!=Ue&&!_e.headers.has(k)&&(_e=_e.clone({headers:_e.headers.set(k,Ue)})),V(_e)}var lt=(()=>((lt=lt||{})[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt))();function Ct(_e,V){return{\u0275kind:_e,\u0275providers:V}}function mn(..._e){const V=[Ke,Kt,Qe,{provide:ie,useExisting:Qe},{provide:ue,useExisting:Kt},{provide:St,useValue:It,multi:!0},{provide:yt,useValue:!0},{provide:Nn,useClass:sr}];for(const J of _e)V.push(...J.\u0275providers);return(0,p.MR2)(V)}const Hn=new p.OlP("LEGACY_INTERCEPTOR_FN");function mr({cookieName:_e,headerName:V}){const J=[];return void 0!==_e&&J.push({provide:fn,useValue:_e}),void 0!==V&&J.push({provide:In,useValue:V}),Ct(lt.CustomXsrfConfiguration,J)}let yr=(()=>{class _e{}return _e.\u0275fac=function(J){return new(J||_e)},_e.\u0275mod=p.oAB({type:_e}),_e.\u0275inj=p.cJS({providers:[mn(Ct(lt.LegacyInterceptors,[{provide:Hn,useFactory:Ne},{provide:St,useExisting:Hn,multi:!0}]),mr({cookieName:Et,headerName:or}))]}),_e})()},4650:(nt,De,w)=>{w.d(De,{$8M:()=>cr,$WT:()=>Wn,$Z:()=>_f,AFp:()=>Eg,ALo:()=>jp,AaK:()=>ie,AsE:()=>fc,BQk:()=>Sl,CHM:()=>Yi,CRH:()=>qp,CZH:()=>Ul,CqO:()=>Xf,D6c:()=>kE,DdM:()=>Ap,EJc:()=>Q0,EiD:()=>Nd,EpF:()=>qf,F$t:()=>ih,F4k:()=>Jf,FYo:()=>Yd,FiY:()=>aa,G48:()=>yE,Gf:()=>Yp,GfV:()=>Qd,GkF:()=>Ju,Gpc:()=>G,Gre:()=>kh,Hsn:()=>oh,Ikx:()=>hc,JOm:()=>fs,JVY:()=>Hm,JZr:()=>Ze,KtG:()=>$o,L6k:()=>$m,LAX:()=>zm,LFG:()=>rt,LSH:()=>mu,Lbi:()=>W0,Lck:()=>ZD,MAs:()=>Qf,MMx:()=>bc,MR2:()=>sy,NdJ:()=>ec,O4$:()=>bs,OlP:()=>Dn,Oqu:()=>dc,P3R:()=>Ld,PXZ:()=>dE,Q6J:()=>Yu,QGY:()=>Xu,QbO:()=>K0,Qsj:()=>Ey,R0b:()=>Bo,RDi:()=>Nm,Rgc:()=>tl,SBq:()=>Ha,Sil:()=>J0,Suo:()=>Qp,TTD:()=>Oi,TgZ:()=>bl,Tol:()=>Dh,Udp:()=>lc,VKq:()=>Pp,W1O:()=>tg,WFA:()=>tc,WLB:()=>Op,X6Q:()=>mE,XFs:()=>Et,Xpm:()=>Gn,Xts:()=>yu,Y36:()=>ma,YKP:()=>Dp,YNc:()=>Yf,Yjl:()=>oo,Yz7:()=>et,Z0I:()=>ln,ZZ4:()=>Kc,_Bn:()=>_p,_UZ:()=>qu,_Vd:()=>ja,_c5:()=>xE,_uU:()=>Ih,aQg:()=>Zc,c2e:()=>Z0,cJS:()=>zt,cg1:()=>gc,d8E:()=>pc,dDg:()=>aE,dqk:()=>It,eBb:()=>Vm,eFA:()=>Ng,ekj:()=>uc,eoX:()=>Og,f3M:()=>_e,g9A:()=>bg,h0i:()=>Pa,hGG:()=>NE,hYB:()=>ic,hij:()=>Al,iGM:()=>Zp,ifc:()=>Rt,ip1:()=>Dg,jDz:()=>Cp,kEZ:()=>Rp,kL8:()=>Gh,kcU:()=>pr,kuF:()=>Pe,l5B:()=>xp,lG2:()=>zr,lcZ:()=>Hp,lqb:()=>Ys,lri:()=>Ag,mCW:()=>ul,n5z:()=>_n,n_E:()=>Nl,oAB:()=>hi,oJD:()=>kd,oxw:()=>rh,pB0:()=>Gm,q3G:()=>Yr,q4F:()=>qd,qLn:()=>$a,qOj:()=>Gu,qZA:()=>wl,qbA:()=>Np,qzn:()=>da,rWj:()=>Pg,s9C:()=>nc,sBO:()=>vE,s_b:()=>Fl,soG:()=>jl,tBr:()=>sa,tb:()=>wg,tp0:()=>C,uIk:()=>Zu,vHH:()=>Te,vpe:()=>ys,wAp:()=>Vt,xi3:()=>$p,xp6:()=>sf,ynx:()=>Tl,z2F:()=>Hl,z3N:()=>Is,zSh:()=>Eu,zs3:()=>Qs});var d=w(7579),p=w(727),N=w(9751),$=w(6451),K=w(3099);function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function se(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ue(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const B=q({__forward_ref__:q});function G(e){return e.__forward_ref__=G,e.toString=function(){return ie(this())},e}function te(e){return Le(e)?e():e}function Le(e){return"function"==typeof e&&e.hasOwnProperty(B)&&e.__forward_ref__===G}function Ae(e){return e&&!!e.\u0275providers}const Ze="https://g.co/ng/security#xss";class Te extends Error{constructor(t,n){super(Pe(t,n)),this.code=t}}function Pe(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function Se(e){return"string"==typeof e?e:null==e?"":String(e)}function re(e,t){throw new Te(-201,!1)}function St(e,t){null==e&&function Ne(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function et(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zt(e){return{providers:e.providers||[],imports:e.imports||[]}}function an(e){return ir(e,tn)||ir(e,Kt)}function ln(e){return null!==an(e)}function ir(e,t){return e.hasOwnProperty(t)?e[t]:null}function $n(e){return e&&(e.hasOwnProperty(jn)||e.hasOwnProperty(yt))?e[jn]:null}const tn=q({\u0275prov:q}),jn=q({\u0275inj:q}),Kt=q({ngInjectableDef:q}),yt=q({ngInjectorDef:q});var Et=(()=>((Et=Et||{})[Et.Default=0]="Default",Et[Et.Host=1]="Host",Et[Et.Self=2]="Self",Et[Et.SkipSelf=4]="SkipSelf",Et[Et.Optional=8]="Optional",Et))();let fn;function In(e){const t=fn;return fn=e,t}function Nn(e,t,n){const r=an(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Et.Optional?null:void 0!==t?t:void re(ie(e))}const It=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),mn={},kn="__NG_DI_FLAG__",Hn="ngTempTokenPath",mr=/\n/gm,qr="__source";let Qt;function Vn(e){const t=Qt;return Qt=e,t}function yr(e,t=Et.Default){if(void 0===Qt)throw new Te(-203,!1);return null===Qt?Nn(e,void 0,t):Qt.get(e,t&Et.Optional?null:void 0,t)}function rt(e,t=Et.Default){return(function or(){return fn}()||yr)(te(e),t)}function _e(e,t=Et.Default){return rt(e,V(t))}function V(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function J(e){const t=[];for(let n=0;n<e.length;n++){const r=te(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Te(900,!1);let i,o=Et.Default;for(let u=0;u<r.length;u++){const h=r[u],_=k(h);"number"==typeof _?-1===_?i=h.token:o|=_:i=h}t.push(rt(i,o))}else t.push(rt(r))}return t}function Ue(e,t){return e[kn]=t,e.prototype[kn]=t,e}function k(e){return e[kn]}function ke(e){return{toString:e}.toString()}var ge=(()=>((ge=ge||{})[ge.OnPush=0]="OnPush",ge[ge.Default=1]="Default",ge))(),Rt=(()=>{return(e=Rt||(Rt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Rt;var e})();const Xt={},Q=[],X=q({\u0275cmp:q}),L=q({\u0275dir:q}),ve=q({\u0275pipe:q}),$e=q({\u0275mod:q}),ut=q({\u0275fac:q}),Ft=q({__NG_ELEMENT_ID__:q});let zn=0;function Gn(e){return ke(()=>{const n=!0===e.standalone,r={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ge.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Rt.Emulated,id:"c"+zn++,styles:e.styles||Q,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=e.dependencies,u=e.features;return i.inputs=io(e.inputs,r),i.outputs=io(e.outputs),u&&u.forEach(h=>h(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Cn).filter(si):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ar).filter(si):null,i})}function Cn(e){return cn(e)||An(e)}function si(e){return null!==e}function hi(e){return ke(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function io(e,t){if(null==e)return Xt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const zr=Gn;function oo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function cn(e){return e[X]||null}function An(e){return e[L]||null}function ar(e){return e[ve]||null}function Wn(e){const t=cn(e)||An(e)||ar(e);return null!==t&&t.standalone}function Qn(e,t){const n=e[$e]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function dr(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ln(e){return Array.isArray(e)&&!0===e[1]}function Xr(e){return 0!=(4&e.flags)}function Vi(e){return e.componentOffset>-1}function zi(e){return 1==(1&e.flags)}function Sr(e){return null!==e.template}function Mi(e){return 0!=(256&e[2])}function Zn(e,t){return e.hasOwnProperty(ut)?e[ut]:null}class Mr{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Oi(){return ai}function ai(e){return e.type.prototype.ngOnChanges&&(e.setInput=so),li}function li(){const e=Fr(this),t=e?.current;if(t){const n=e.previous;if(n===Xt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function so(e,t,n,r){const i=this.declaredInputs[n],o=Fr(e)||function Ki(e,t){return e[_i]=t}(e,{previous:Xt,current:null}),u=o.current||(o.current={}),h=o.previous,_=h[i];u[i]=new Mr(_&&_.currentValue,t,h===Xt),e[r]=t}Oi.ngInherit=!0;const _i="__ngSimpleChanges__";function Fr(e){return e[_i]||null}function yn(e){for(;Array.isArray(e);)e=e[0];return e}function Wr(e,t){return yn(t[e])}function fr(e,t){return yn(t[e.index])}function Zi(e,t){return e.data[t]}function Kr(e,t){return e[t]}function Ar(e,t){const n=t[e];return dr(n)?n:n[0]}function Di(e){return 64==(64&e[2])}function ui(e,t){return null==t?null:e[t]}function Xo(e){e[18]=0}function Ei(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Nt={lFrame:Ns(null),bindingsEnabled:!0};function ts(){return Nt.bindingsEnabled}function He(){return Nt.lFrame.lView}function en(){return Nt.lFrame.tView}function Yi(e){return Nt.lFrame.contextLView=e,e[8]}function $o(e){return Nt.lFrame.contextLView=null,e}function hr(){let e=_o();for(;null!==e&&64===e.type;)e=e.parent;return e}function _o(){return Nt.lFrame.currentTNode}function Lr(e,t){const n=Nt.lFrame;n.currentTNode=e,n.isParent=t}function Ro(){return Nt.lFrame.isParent}function Vo(){Nt.lFrame.isParent=!1}function Dr(){const e=Nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Br(){return Nt.lFrame.bindingIndex++}function Ur(e){const t=Nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function xo(e,t){const n=Nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,lo(t)}function lo(e){Nt.lFrame.currentDirectiveIndex=e}function Ri(e){const t=Nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Go(){return Nt.lFrame.currentQueryIndex}function xi(e){Nt.lFrame.currentQueryIndex=e}function Ni(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function uo(e,t,n){if(n&Et.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&Et.Host||(i=Ni(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=Nt.lFrame=qi();return r.currentTNode=t,r.lView=e,!0}function qn(e){const t=qi(),n=e[1];Nt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qi(){const e=Nt.lFrame,t=null===e?null:e.child;return null===t?Ns(e):t}function Ns(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ks(){const e=Nt.lFrame;return Nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const No=ks;function Es(){const e=ks();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Pr(){return Nt.lFrame.selectedIndex}function Xi(e){Nt.lFrame.selectedIndex=e}function Un(){const e=Nt.lFrame;return Zi(e.tView,e.selectedIndex)}function bs(){Nt.lFrame.currentNamespace="svg"}function pr(){!function ws(){Nt.lFrame.currentNamespace=null}()}function Eo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const o=e.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:h,ngAfterViewInit:_,ngAfterViewChecked:T,ngOnDestroy:O}=o;u&&(e.contentHooks||(e.contentHooks=[])).push(-n,u),h&&((e.contentHooks||(e.contentHooks=[])).push(n,h),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,h)),_&&(e.viewHooks||(e.viewHooks=[])).push(-n,_),T&&((e.viewHooks||(e.viewHooks=[])).push(n,T),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,T)),null!=O&&(e.destroyHooks||(e.destroyHooks=[])).push(n,O)}}function g(e,t,n){M(e,t,3,n)}function S(e,t,n,r){(3&e[2])===n&&M(e,t,n,r)}function v(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function M(e,t,n,r){const o=r??-1,u=t.length-1;let h=0;for(let _=void 0!==r?65535&e[18]:0;_<u;_++)if("number"==typeof t[_+1]){if(h=t[_],null!=r&&h>=r)break}else t[_]<0&&(e[18]+=65536),(h<o||-1==o)&&(z(e,n,t,_),e[18]=(4294901760&e[18])+_+2),_++}function z(e,t,n,r){const i=n[r]<0,o=n[r+1],h=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(h)}finally{}}}else try{o.call(h)}finally{}}class Be{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function mi(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],u=n[r++],h=n[r++];e.setAttribute(t,u,h,o)}else{const o=i,u=n[++r];Or(o)?e.setProperty(t,o,u):e.setAttribute(t,o,u),r++}}return r}function ri(e){return 3===e||4===e||6===e}function Or(e){return 64===e.charCodeAt(0)}function Xn(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||ki(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function ki(e,t,n,r,i){let o=0,u=e.length;if(-1===t)u=-1;else for(;o<e.length;){const h=e[o++];if("number"==typeof h){if(h===t){u=-1;break}if(h>t){u=o-1;break}}}for(;o<e.length;){const h=e[o];if("number"==typeof h)break;if(h===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==u&&(e.splice(u,0,t),o=u+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Co(e){return-1!==e}function co(e){return 32767&e}function ss(e,t){let n=function os(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Wo=!0;function as(e){const t=Wo;return Wo=e,t}let Vs=0;const ci={};function ko(e,t){const n=E(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Fi(r.data,e),Fi(t,null),Fi(r.blueprint,null));const i=s(e,t),o=e.injectorIndex;if(Co(i)){const u=co(i),h=ss(i,t),_=h[1].data;for(let T=0;T<8;T++)t[o+T]=h[u+T]|_[u+T]}return t[o+8]=i,o}function Fi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function E(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function s(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Zr(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function a(e,t,n){!function Bs(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ft)&&(r=n[Ft]),null==r&&(r=n[Ft]=Vs++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function I(e,t,n){if(n&Et.Optional||void 0!==e)return e;re()}function x(e,t,n,r){if(n&Et.Optional&&void 0===r&&(r=null),!(n&(Et.Self|Et.Host))){const i=e[9],o=In(void 0);try{return i?i.get(t,r,n&Et.Optional):Nn(t,r,n&Et.Optional)}finally{In(o)}}return I(r,0,n)}function ne(e,t,n,r=Et.Default,i){if(null!==e){if(1024&t[2]){const u=function jr(e,t,n,r,i){let o=e,u=t;for(;null!==o&&null!==u&&1024&u[2]&&!(256&u[2]);){const h=ee(o,u,n,r|Et.Self,ci);if(h!==ci)return h;let _=o.parent;if(!_){const T=u[21];if(T){const O=T.get(n,ci,r);if(O!==ci)return O}_=Zr(u),u=u[15]}o=_}return i}(e,t,n,r,ci);if(u!==ci)return u}const o=ee(e,t,n,r,ci);if(o!==ci)return o}return x(t,n,r,i)}function ee(e,t,n,r,i){const o=function mt(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ft)?e[Ft]:void 0;return"number"==typeof t?t>=0?255&t:kt:t}(n);if("function"==typeof o){if(!uo(t,e,r))return r&Et.Host?I(i,0,r):x(t,n,r,i);try{const u=o(r);if(null!=u||r&Et.Optional)return u;re()}finally{No()}}else if("number"==typeof o){let u=null,h=E(e,t),_=-1,T=r&Et.Host?t[16][6]:null;for((-1===h||r&Et.SkipSelf)&&(_=-1===h?s(e,t):t[h+8],-1!==_&&Lt(r,!1)?(u=t[1],h=co(_),t=ss(_,t)):h=-1);-1!==h;){const O=t[1];if(Wt(o,h,O.data)){const H=Re(h,t,n,u,r,T);if(H!==ci)return H}_=t[h+8],-1!==_&&Lt(r,t[1].data[h+8]===T)&&Wt(o,h,t)?(u=O,h=co(_),t=ss(_,t)):h=-1}}return i}function Re(e,t,n,r,i,o){const u=t[1],h=u.data[e+8],O=Ge(h,u,n,null==r?Vi(h)&&Wo:r!=u&&0!=(3&h.type),i&Et.Host&&o===h);return null!==O?st(t,u,O,h):ci}function Ge(e,t,n,r,i){const o=e.providerIndexes,u=t.data,h=1048575&o,_=e.directiveStart,O=o>>20,me=i?h+O:e.directiveEnd;for(let Me=r?h:h+O;Me<me;Me++){const We=u[Me];if(Me<_&&n===We||Me>=_&&We.type===n)return Me}if(i){const Me=u[_];if(Me&&Sr(Me)&&Me.type===n)return _}return null}function st(e,t,n,r){let i=e[n];const o=t.data;if(function dt(e){return e instanceof Be}(i)){const u=i;u.resolving&&function Ce(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Te(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ye(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Se(e)}(o[n]));const h=as(u.canSeeViewProviders);u.resolving=!0;const _=u.injectImpl?In(u.injectImpl):null;uo(e,r,Et.Default);try{i=e[n]=u.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Fs(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const u=ai(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==_&&In(_),as(h),u.resolving=!1,No()}}return i}function Wt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Lt(e,t){return!(e&Et.Self||e&Et.Host&&t)}class Tt{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ne(this._tNode,this._lView,t,V(r),n)}}function kt(){return new Tt(hr(),He())}function _n(e){return ke(()=>{const t=e.prototype.constructor,n=t[ut]||xn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[ut]||xn(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function xn(e){return Le(e)?()=>{const t=xn(te(e));return t&&t()}:Zn(e)}function Zr(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function cr(e){return function y(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const o=n[i];if(ri(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}}return null}(hr(),e)}const Hr="__parameters__";function oi(e,t,n){return ke(()=>{const r=function Li(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const u=new i(...o);return h.annotation=u,h;function h(_,T,O){const H=_.hasOwnProperty(Hr)?_[Hr]:Object.defineProperty(_,Hr,{value:[]})[Hr];for(;H.length<=O;)H.push(null);return(H[O]=H[O]||[]).push(u),_}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class Dn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=et({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function f(e,t){e.forEach(n=>Array.isArray(n)?f(n,t):t(n))}function l(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function m(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function b(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ft(e,t,n){let r=un(e,t);return r>=0?e[1|r]=n:(r=~r,function we(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function vt(e,t){const n=un(e,t);if(n>=0)return e[1|n]}function un(e,t){return function wo(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),u=e[o<<n];if(t===u)return o<<n;u>t?i=o:r=o+1}return~(i<<n)}(e,t,1)}const sa=Ue(oi("Inject",e=>({token:e})),-1),aa=Ue(oi("Optional"),8),C=Ue(oi("SkipSelf"),4);var fs=(()=>((fs=fs||{})[fs.Important=1]="Important",fs[fs.DashCase=2]="DashCase",fs))();const Yl=new Map;let rm=0;const ql="__ngContext__";function Ui(e,t){dr(t)?(e[ql]=t[20],function om(e){Yl.set(e[20],e)}(t)):e[ql]=t}function Xl(e,t){return undefined(e,t)}function Fa(e){const t=e[3];return Ln(t)?t[3]:t}function eu(e){return ld(e[13])}function tu(e){return ld(e[4])}function ld(e){for(;null!==e&&!Ln(e);)e=e[4];return e}function ca(e,t,n,r,i){if(null!=r){let o,u=!1;Ln(r)?o=r:dr(r)&&(u=!0,r=r[0]);const h=yn(r);0===e&&null!==n?null==i?pd(t,n,h):Gs(t,n,h,i||null,!0):1===e&&null!==n?Gs(t,n,h,i||null,!0):2===e?function lu(e,t,n){const r=il(e,t);r&&function Tm(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,h,u):3===e&&t.destroyNode(h),null!=o&&function Mm(e,t,n,r,i){const o=n[7];o!==yn(n)&&ca(t,e,r,o,i);for(let h=10;h<n.length;h++){const _=n[h];La(_[1],_,e,t,r,o)}}(t,e,o,n,i)}}function ru(e,t,n){return e.createElement(t,n)}function cd(e,t){const n=e[9],r=n.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,Ei(i,-1)),n.splice(r,1)}function iu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&cd(i,r),t>0&&(e[n-1][4]=r[4]);const o=m(e,10+t);!function ym(e,t){La(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const u=o[19];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function dd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&La(e,t,n,3,null,null),function Dm(e){let t=e[13];if(!t)return ou(e[1],e);for(;t;){let n=null;if(dr(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)dr(t)&&ou(t[1],t),t=t[3];null===t&&(t=e),dr(t)&&ou(t[1],t),n=t&&t[4]}t=n}}(t)}}function ou(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function wm(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Be)){const o=n[r+1];if(Array.isArray(o))for(let u=0;u<o.length;u+=2){const h=i[o[u]],_=o[u+1];try{_.call(h)}finally{}}else try{o.call(i)}finally{}}}}(e,t),function bm(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const u=n[o+3];u>=0?r[i=u]():r[i=-u].unsubscribe(),o+=2}else{const u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&Ln(t[3])){n!==t[3]&&cd(n,t);const r=t[19];null!==r&&r.detachView(e)}!function sm(e){Yl.delete(e[20])}(t)}}function fd(e,t,n){return function hd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Rt.None||o===Rt.Emulated)return null}return fr(r,n)}}(e,t.parent,n)}function Gs(e,t,n,r,i){e.insertBefore(t,n,r,i)}function pd(e,t,n){e.appendChild(t,n)}function gd(e,t,n,r,i){null!==r?Gs(e,t,n,r,i):pd(e,t,n)}function il(e,t){return e.parentNode(t)}function md(e,t,n){return vd(e,t,n)}let al,du,ll,vd=function yd(e,t,n){return 40&e.type?fr(e,n):null};function ol(e,t,n,r){const i=fd(e,r,t),o=t[11],h=md(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let _=0;_<n.length;_++)gd(o,i,n[_],h,!1);else gd(o,i,n,h,!1)}function sl(e,t){if(null!==t){const n=t.type;if(3&n)return fr(t,e);if(4&n)return au(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return sl(e,r);{const i=e[t.index];return Ln(i)?au(-1,i):yn(i)}}if(32&n)return Xl(t,e)()||yn(e[t.index]);{const r=Dd(e,t);return null!==r?Array.isArray(r)?r[0]:sl(Fa(e[16]),r):sl(e,t.next)}}return null}function Dd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function au(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return sl(r,i)}return t[7]}function uu(e,t,n,r,i,o,u){for(;null!=n;){const h=r[n.index],_=n.type;if(u&&0===t&&(h&&Ui(yn(h),r),n.flags|=2),32!=(32&n.flags))if(8&_)uu(e,t,n.child,r,i,o,!1),ca(t,e,i,h,o);else if(32&_){const T=Xl(n,r);let O;for(;O=T();)ca(t,e,i,O,o);ca(t,e,i,h,o)}else 16&_?Ed(e,t,r,n,i,o):ca(t,e,i,h,o);n=u?n.projectionNext:n.next}}function La(e,t,n,r,i,o){uu(n,r,e.firstChild,t,i,o,!1)}function Ed(e,t,n,r,i,o){const u=n[16],_=u[6].projection[r.projection];if(Array.isArray(_))for(let T=0;T<_.length;T++)ca(t,e,i,_[T],o);else uu(e,t,_,u[3],i,o,!0)}function Cd(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function bd(e,t,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&mi(e,t,r),null!==i&&Cd(e,t,i),null!==o&&function Pm(e,t,n){e.setAttribute(t,"style",n)}(e,t,o)}function Ws(e){return function cu(){if(void 0===al&&(al=null,It.trustedTypes))try{al=It.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return al}()?.createHTML(e)||e}function Nm(e){du=e}function fu(){if(void 0===ll&&(ll=null,It.trustedTypes))try{ll=It.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ll}function Td(e){return fu()?.createHTML(e)||e}function Id(e){return fu()?.createScriptURL(e)||e}class Ks{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ze})`}}class km extends Ks{getTypeName(){return"HTML"}}class Fm extends Ks{getTypeName(){return"Style"}}class Lm extends Ks{getTypeName(){return"Script"}}class Bm extends Ks{getTypeName(){return"URL"}}class Um extends Ks{getTypeName(){return"ResourceURL"}}function Is(e){return e instanceof Ks?e.changingThisBreaksApplicationSecurity:e}function da(e,t){const n=function jm(e){return e instanceof Ks&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ze})`)}return n===t}function Hm(e){return new km(e)}function $m(e){return new Fm(e)}function Vm(e){return new Lm(e)}function zm(e){return new Bm(e)}function Gm(e){return new Um(e)}class Wm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ws(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Km{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Ws(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Ws(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const u=n.item(i).name;("xmlns:ns1"===u||0===u.indexOf("ns1:"))&&t.removeAttribute(u)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Ym=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function ul(e){return(e=String(e)).match(Ym)?e:"unsafe:"+e}function Ms(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ba(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ad=Ms("area,br,col,hr,img,wbr"),Pd=Ms("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=Ms("rp,rt"),hu=Ba(Ad,Ba(Pd,Ms("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")),Ba(Od,Ms("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")),Ba(Od,Pd)),pu=Ms("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rd=Ba(pu,Ms("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,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"),Ms("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")),Qm=Ms("script,style,template");class qm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!hu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Qm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),u=o.name,h=u.toLowerCase();if(!Rd.hasOwnProperty(h)){this.sanitizedSomething=!0;continue}let _=o.value;pu[h]&&(_=ul(_)),this.buf.push(" ",u,'="',xd(_),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();hu.hasOwnProperty(n)&&!Ad.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(xd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Jm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xm=/([^\#-~ |!])/g;function xd(e){return e.replace(/&/g,"&amp;").replace(Jm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Xm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let cl;function Nd(e,t){let n=null;try{cl=cl||function Md(e){const t=new Km(e);return function Zm(){try{return!!(new window.DOMParser).parseFromString(Ws(""),"text/html")}catch{return!1}}()?new Wm(t):t}(e);let r=t?String(t):"";n=cl.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=cl.getInertBodyElement(r)}while(r!==o);return Ws((new qm).sanitizeChildren(gu(n)||n))}finally{if(n){const r=gu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function gu(e){return"content"in e&&function ey(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Yr=(()=>((Yr=Yr||{})[Yr.NONE=0]="NONE",Yr[Yr.HTML=1]="HTML",Yr[Yr.STYLE=2]="STYLE",Yr[Yr.SCRIPT=3]="SCRIPT",Yr[Yr.URL=4]="URL",Yr[Yr.RESOURCE_URL=5]="RESOURCE_URL",Yr))();function kd(e){const t=Ua();return t?Td(t.sanitize(Yr.HTML,e)||""):da(e,"HTML")?Td(Is(e)):Nd(function wd(){return void 0!==du?du:typeof document<"u"?document:void 0}(),Se(e))}function mu(e){const t=Ua();return t?t.sanitize(Yr.URL,e)||"":da(e,"URL")?Is(e):ul(Se(e))}function Fd(e){const t=Ua();if(t)return Id(t.sanitize(Yr.RESOURCE_URL,e)||"");if(da(e,"ResourceURL"))return Id(Is(e));throw new Te(904,!1)}function Ld(e,t,n){return function oy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Fd:mu}(t,n)(e)}function Ua(){const e=He();return e&&e[12]}const yu=new Dn("ENVIRONMENT_INITIALIZER"),Bd=new Dn("INJECTOR",-1),Ud=new Dn("INJECTOR_DEF_TYPES");class jd{get(t,n=mn){if(n===mn){const r=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw r.name="NullInjectorError",r}return n}}function sy(e){return{\u0275providers:e}}function ay(...e){return{\u0275providers:Hd(0,e),\u0275fromNgModule:!0}}function Hd(e,...t){const n=[],r=new Set;let i;return f(t,o=>{const u=o;vu(u,n,[],r)&&(i||(i=[]),i.push(u))}),void 0!==i&&$d(i,n),n}function $d(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];_u(i,o=>{t.push(o)})}}function vu(e,t,n,r){if(!(e=te(e)))return!1;let i=null,o=$n(e);const u=!o&&cn(e);if(o||u){if(u&&!u.standalone)return!1;i=e}else{const _=e.ngModule;if(o=$n(_),!o)return!1;i=_}const h=r.has(i);if(u){if(h)return!1;if(r.add(i),u.dependencies){const _="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const T of _)vu(T,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!h){let T;r.add(i);try{f(o.imports,O=>{vu(O,t,n,r)&&(T||(T=[]),T.push(O))})}finally{}void 0!==T&&$d(T,t)}if(!h){const T=Zn(i)||(()=>new i);t.push({provide:i,useFactory:T,deps:Q},{provide:Ud,useValue:i,multi:!0},{provide:yu,useValue:()=>rt(i),multi:!0})}const _=o.providers;null==_||h||_u(_,O=>{t.push(O)})}}return i!==e&&void 0!==e.providers}function _u(e,t){for(let n of e)Ae(n)&&(n=n.\u0275providers),Array.isArray(n)?_u(n,t):t(n)}const ly=q({provide:String,useValue:q});function Du(e){return null!==e&&"object"==typeof e&&ly in e}function Zs(e){return"function"==typeof e}const Eu=new Dn("Set Injector scope."),dl={},cy={};let Cu;function fl(){return void 0===Cu&&(Cu=new jd),Cu}class Ys{}class Gd extends Ys{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wu(t,u=>this.processProvider(u)),this.records.set(Bd,fa(void 0,this)),i.has("environment")&&this.records.set(Ys,fa(void 0,this));const o=this.records.get(Eu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ud.multi,Q,Et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=Vn(this),r=In(void 0);try{return t()}finally{Vn(n),In(r)}}get(t,n=mn,r=Et.Default){this.assertNotDestroyed(),r=V(r);const i=Vn(this),o=In(void 0);try{if(!(r&Et.SkipSelf)){let h=this.records.get(t);if(void 0===h){const _=function gy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Dn}(t)&&an(t);h=_&&this.injectableDefInScope(_)?fa(bu(t),dl):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(r&Et.Self?fl():this.parent).get(t,n=r&Et.Optional&&n===mn?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Hn]=u[Hn]||[]).unshift(ie(t)),i)throw u;return function U(e,t,n,r){const i=e[Hn];throw t[qr]&&i.unshift(t[qr]),e.message=function oe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let o=[];for(let u in t)if(t.hasOwnProperty(u)){let h=t[u];o.push(u+":"+("string"==typeof h?JSON.stringify(h):ie(h)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(mr,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Hn]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{In(o),Vn(i)}}resolveInjectorInitializers(){const t=Vn(this),n=In(void 0);try{const r=this.get(yu.multi,Q,Et.Self);for(const i of r)i()}finally{Vn(t),In(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Te(205,!1)}processProvider(t){let n=Zs(t=te(t))?t:te(t&&t.provide);const r=function fy(e){return Du(e)?fa(void 0,e.useValue):fa(Wd(e),dl)}(t);if(Zs(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=fa(void 0,dl,!0),i.factory=()=>J(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===dl&&(n.value=cy,n.value=n.factory()),"object"==typeof n.value&&n.value&&function py(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=te(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function bu(e){const t=an(e),n=null!==t?t.factory:Zn(e);if(null!==n)return n;if(e instanceof Dn)throw new Te(204,!1);if(e instanceof Function)return function dy(e){const t=e.length;if(t>0)throw b(t,"?"),new Te(204,!1);const n=function Bn(e){const t=e&&(e[tn]||e[Kt]);if(t){const n=function er(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Te(204,!1)}function Wd(e,t,n){let r;if(Zs(e)){const i=te(e);return Zn(i)||bu(i)}if(Du(e))r=()=>te(e.useValue);else if(function zd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...J(e.deps||[]));else if(function Vd(e){return!(!e||!e.useExisting)}(e))r=()=>rt(te(e.useExisting));else{const i=te(e&&(e.useClass||e.provide));if(!function hy(e){return!!e.deps}(e))return Zn(i)||bu(i);r=()=>new i(...J(e.deps))}return r}function fa(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wu(e,t){for(const n of e)Array.isArray(n)?wu(n,t):n&&Ae(n)?wu(n.\u0275providers,t):t(n)}class my{}class Kd{}class vy{resolveComponentFactory(t){throw function yy(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let ja=(()=>{class e{}return e.NULL=new vy,e})();function _y(){return ha(hr(),He())}function ha(e,t){return new Ha(fr(e,t))}let Ha=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=_y,e})();function Dy(e){return e instanceof Ha?e.nativeElement:e}class Yd{}let Ey=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Cy(){const e=He(),n=Ar(hr().index,e);return(dr(n)?n:e)[11]}(),e})(),by=(()=>{class e{}return e.\u0275prov=et({token:e,providedIn:"root",factory:()=>null}),e})();class Qd{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const qd=new Qd("15.1.1"),Tu={};function Iu(e){return e.ngOriginalError}class $a{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Iu(t);for(;n&&Iu(n);)n=Iu(n);return n||null}}function As(e){return e instanceof Function?e():e}function Xd(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const ef="ng-template";function Ny(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==Xd(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function tf(e){return 4===e.type&&e.value!==ef}function ky(e,t,n){return t===(4!==e.type||n?e.value:ef)}function Fy(e,t,n){let r=4;const i=e.attrs||[],o=function Uy(e){for(let t=0;t<e.length;t++)if(ri(e[t]))return t;return e.length}(i);let u=!1;for(let h=0;h<t.length;h++){const _=t[h];if("number"!=typeof _){if(!u)if(4&r){if(r=2|1&r,""!==_&&!ky(e,_,n)||""===_&&1===t.length){if(Yo(r))return!1;u=!0}}else{const T=8&r?_:t[++h];if(8&r&&null!==e.attrs){if(!Ny(e.attrs,T,n)){if(Yo(r))return!1;u=!0}continue}const H=Ly(8&r?"class":_,i,tf(e),n);if(-1===H){if(Yo(r))return!1;u=!0;continue}if(""!==T){let me;me=H>o?"":i[H+1].toLowerCase();const Me=8&r?me:null;if(Me&&-1!==Xd(Me,T,0)||2&r&&T!==me){if(Yo(r))return!1;u=!0}}}}else{if(!u&&!Yo(r)&&!Yo(_))return!1;if(u&&Yo(_))continue;u=!1,r=_|1&r}}return Yo(r)||u}function Yo(e){return 0==(1&e)}function Ly(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){const u=t[i];if(u===e)return i;if(3===u||6===u)o=!0;else{if(1===u||2===u){let h=t[++i];for(;"string"==typeof h;)h=t[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=o?1:2}return-1}return function jy(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function nf(e,t,n=!1){for(let r=0;r<t.length;r++)if(Fy(e,t[r],n))return!0;return!1}function Hy(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function rf(e,t){return e?":not("+t.trim()+")":t}function $y(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let u=e[n];if("string"==typeof u)if(2&r){const h=e[++n];i+="["+u+(h.length>0?'="'+h+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!Yo(u)&&(t+=rf(o,i),i=""),r=u,o=o||!Yo(r);n++}return""!==i&&(t+=rf(o,i)),t}const on={};function sf(e){af(en(),He(),Pr()+e,!1)}function af(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&g(t,o,n)}else{const o=e.preOrderHooks;null!==o&&S(t,o,0,n)}Xi(n)}function df(e,t=null,n=null,r){const i=ff(e,t,n,r);return i.resolveInjectorInitializers(),i}function ff(e,t=null,n=null,r,i=new Set){const o=[n||Q,ay(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Gd(o,t||fl(),r||null,i)}let Qs=(()=>{class e{static create(n,r){if(Array.isArray(n))return df({name:""},r,n,"");{const i=n.name??"";return df({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=mn,e.NULL=new jd,e.\u0275prov=et({token:e,providedIn:"any",factory:()=>rt(Bd)}),e.__NG_ELEMENT_ID__=-1,e})();function ma(e,t=Et.Default){const n=He();return null===n?rt(e,t):ne(hr(),n,te(e),t)}function _f(){throw new Error("invalid")}function Df(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r+1];if(-1!==o){const u=e.data[o];xi(n[r]),u.contentQueries(2,t[o],o)}}}function pl(e,t,n,r,i,o,u,h,_,T,O){const H=t.blueprint.slice();return H[0]=i,H[2]=76|r,(null!==O||e&&1024&e[2])&&(H[2]|=1024),Xo(H),H[3]=H[15]=e,H[8]=n,H[10]=u||e&&e[10],H[11]=h||e&&e[11],H[12]=_||e&&e[12]||null,H[9]=T||e&&e[9]||null,H[6]=o,H[20]=function im(){return rm++}(),H[21]=O,H[16]=2==t.type?e[16]:H,H}function ya(e,t,n,r,i){let o=e.data[t];if(null===o)o=function Ru(e,t,n,r,i){const o=_o(),u=Ro(),_=e.data[t]=function pv(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=_),null!==o&&(u?null==o.child&&null!==_.parent&&(o.child=_):null===o.next&&(o.next=_)),_}(e,t,n,r,i),function ns(){return Nt.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const u=function Oo(){const e=Nt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===u?-1:u.injectorIndex}return Lr(o,!0),o}function Va(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function xu(e,t,n){qn(t);try{const r=e.viewQuery;null!==r&&Vu(1,r,n);const i=e.template;null!==i&&Ef(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Df(e,t),e.staticViewQueries&&Vu(2,e.viewQuery,n);const o=e.components;null!==o&&function dv(e,t){for(let n=0;n<t.length;n++)xv(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Es()}}function gl(e,t,n,r){const i=t[2];if(128!=(128&i)){qn(t);try{Xo(t),function Ci(e){return Nt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Ef(e,t,n,2,r);const u=3==(3&i);if(u){const T=e.preOrderCheckHooks;null!==T&&g(t,T,null)}else{const T=e.preOrderHooks;null!==T&&S(t,T,0,null),v(t,0)}if(function Ov(e){for(let t=eu(e);null!==t;t=tu(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r];512&i[2]||Ei(i[3],1),i[2]|=512}}}(t),function Pv(e){for(let t=eu(e);null!==t;t=tu(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];Di(r)&&gl(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Df(e,t),u){const T=e.contentCheckHooks;null!==T&&g(t,T)}else{const T=e.contentHooks;null!==T&&S(t,T,1),v(t,1)}!function uv(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)Xi(~i);else{const o=i,u=n[++r],h=n[++r];xo(u,o),h(2,t[o])}}}finally{Xi(-1)}}(e,t);const h=e.components;null!==h&&function cv(e,t){for(let n=0;n<t.length;n++)Rv(e,t[n])}(t,h);const _=e.viewQuery;if(null!==_&&Vu(2,_,r),u){const T=e.viewCheckHooks;null!==T&&g(t,T)}else{const T=e.viewHooks;null!==T&&S(t,T,2),v(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Ei(t[3],-1))}finally{Es()}}}function Ef(e,t,n,r,i){const o=Pr(),u=2&r;try{Xi(-1),u&&t.length>22&&af(e,t,22,!1),n(r,i)}finally{Xi(o)}}function Nu(e,t,n){if(Xr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const u=e.data[o];u.contentQueries&&u.contentQueries(1,n[o],o)}}}function ku(e,t,n){ts()&&(function Dv(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;Vi(n)&&function Iv(e,t,n){const r=fr(t,e),i=Cf(n),o=e[10],u=ml(e,pl(e,i,null,n.onPush?32:16,r,t,o,o.createRenderer(r,n),null,null,null));e[t.index]=u}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||ko(n,t),Ui(r,t);const u=n.initialInputs;for(let h=i;h<o;h++){const _=e.data[h],T=st(t,e,h,n);Ui(T,t),null!==u&&Mv(0,h-i,T,_,0,u),Sr(_)&&(Ar(n.index,t)[8]=st(t,e,h,n))}}(e,t,n,fr(n,t)),64==(64&n.flags)&&Mf(e,t,n))}function Fu(e,t,n=fr){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const u=r[o+1],h=-1===u?n(t,e):e[u];e[i++]=h}}}function Cf(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Lu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Lu(e,t,n,r,i,o,u,h,_,T){const O=22+r,H=O+i,me=function fv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:on);return n}(O,H),Me="function"==typeof T?T():T;return me[1]={type:e,blueprint:me,template:n,queries:null,viewQuery:h,declTNode:t,data:me.slice().fill(null,O),bindingStartIndex:O,expandoStartIndex:H,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 o?o():o,pipeRegistry:"function"==typeof u?u():u,firstChild:null,schemas:_,consts:Me,incompleteFirstPass:!1}}function bf(e,t,n,r){const i=Pf(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Of(e).push(r,i.length-1))}function wf(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?Tf(n,t,i,o):r.hasOwnProperty(i)&&Tf(n,t,r[i],o)}return n}function Tf(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function So(e,t,n,r,i,o,u,h){const _=fr(t,n);let O,T=t.inputs;!h&&null!=T&&(O=T[r])?(zu(e,n,O,r,i),Vi(t)&&Sf(n,t.index)):3&t.type&&(r=function mv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=u?u(i,t.value||"",r):i,o.setProperty(_,r,i))}function Sf(e,t){const n=Ar(t,e);16&n[2]||(n[2]|=32)}function Bu(e,t,n,r){let i=!1;if(ts()){const o=null===r?null:{"":-1},u=function Cv(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o<n.length;o++){const u=n[o];if(nf(t,u.selectors,!1))if(r||(r=[]),Sr(u))if(null!==u.findHostDirectiveDefs){const h=[];i=i||new Map,u.findHostDirectiveDefs(u,h,i),r.unshift(...h,u),Uu(e,t,h.length)}else r.unshift(u),Uu(e,t,0);else i=i||new Map,u.findHostDirectiveDefs?.(u,r,i),r.push(u)}return null===r?null:[r,i]}(e,n);let h,_;null===u?h=_=null:[h,_]=u,null!==h&&(i=!0,If(e,t,n,h,o,_)),o&&function bv(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const o=n[t[i+1]];if(null==o)throw new Te(-301,!1);r.push(t[i],o)}}}(n,r,o)}return n.mergedAttrs=Xn(n.mergedAttrs,n.attrs),i}function If(e,t,n,r,i,o){for(let T=0;T<r.length;T++)a(ko(n,t),e,r[T].type);!function Tv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let T=0;T<r.length;T++){const O=r[T];O.providersResolver&&O.providersResolver(O)}let u=!1,h=!1,_=Va(e,t,r.length,null);for(let T=0;T<r.length;T++){const O=r[T];n.mergedAttrs=Xn(n.mergedAttrs,O.hostAttrs),Sv(e,n,t,_,O),wv(_,O,i),null!==O.contentQueries&&(n.flags|=4),(null!==O.hostBindings||null!==O.hostAttrs||0!==O.hostVars)&&(n.flags|=64);const H=O.type.prototype;!u&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!h&&(H.ngOnChanges||H.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),h=!0),_++}!function gv(e,t,n){const i=t.directiveEnd,o=e.data,u=t.attrs,h=[];let _=null,T=null;for(let O=t.directiveStart;O<i;O++){const H=o[O],me=n?n.get(H):null,We=me?me.outputs:null;_=wf(H.inputs,O,_,me?me.inputs:null),T=wf(H.outputs,O,T,We);const ot=null===_||null===u||tf(t)?null:Av(_,O,u);h.push(ot)}null!==_&&(_.hasOwnProperty("class")&&(t.flags|=8),_.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=h,t.inputs=_,t.outputs=T}(e,n,o)}function Mf(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,u=function rs(){return Nt.lFrame.currentDirectiveIndex}();try{Xi(o);for(let h=r;h<i;h++){const _=e.data[h],T=t[h];lo(h),(null!==_.hostBindings||0!==_.hostVars||null!==_.hostAttrs)&&Ev(_,T)}}finally{Xi(-1),lo(u)}}function Ev(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Uu(e,t,n){t.componentOffset=n,(e.components||(e.components=[])).push(t.index)}function wv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Sr(t)&&(n[""]=e)}}function Sv(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=Zn(i.type)),u=new Be(o,Sr(i),ma);e.blueprint[r]=u,n[r]=u,function vv(e,t,n,r,i){const o=i.hostBindings;if(o){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const h=~t.index;(function _v(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=h&&u.push(h),u.push(n,r,o)}}(e,t,r,Va(e,n,i.hostVars,on),i)}function hs(e,t,n,r,i,o){const u=fr(e,t);!function ju(e,t,n,r,i,o,u){if(null==o)e.removeAttribute(t,i,n);else{const h=null==u?Se(o):u(o,r||"",i);e.setAttribute(t,i,h,n)}}(t[11],u,o,e.value,n,r,i)}function Mv(e,t,n,r,i,o){const u=o[t];if(null!==u){const h=r.setInput;for(let _=0;_<u.length;){const T=u[_++],O=u[_++],H=u[_++];null!==h?r.setInput(n,H,T,O):n[O]=H}}}function Av(e,t,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const u=e[o];for(let h=0;h<u.length;h+=2)if(u[h]===t){r.push(o,u[h+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Af(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null]}function Rv(e,t){const n=Ar(t,e);if(Di(n)){const r=n[1];48&n[2]?gl(r,n,r.template,n[8]):n[5]>0&&Hu(n)}}function Hu(e){for(let r=eu(e);null!==r;r=tu(r))for(let i=10;i<r.length;i++){const o=r[i];if(Di(o))if(512&o[2]){const u=o[1];gl(u,o,u.template,o[8])}else o[5]>0&&Hu(o)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=Ar(n[r],e);Di(i)&&i[5]>0&&Hu(i)}}function xv(e,t){const n=Ar(t,e),r=n[1];(function Nv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),xu(r,n,n[8])}function ml(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function $u(e){for(;e;){e[2]|=32;const t=Fa(e);if(Mi(e)&&!t)return e;e=t}return null}function yl(e,t,n,r=!0){const i=t[10];i.begin&&i.begin();try{gl(e,t,e.template,n)}catch(u){throw r&&xf(t,u),u}finally{i.end&&i.end()}}function Vu(e,t,n){xi(0),t(e,n)}function Pf(e){return e[7]||(e[7]=[])}function Of(e){return e.cleanup||(e.cleanup=[])}function Rf(e,t,n){return(null===e||Sr(e))&&(n=function Mo(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function xf(e,t){const n=e[9],r=n?n.get($a,null):null;r&&r.handleError(t)}function zu(e,t,n,r,i){for(let o=0;o<n.length;){const u=n[o++],h=n[o++],_=t[u],T=e.data[u];null!==T.setInput?T.setInput(_,i,r,h):_[h]=i}}function Ps(e,t,n){const r=Wr(t,e);!function ud(e,t,n){e.setValue(t,n)}(e[11],r,n)}function vl(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let u=0;u<t.length;u++){const h=t[u];"number"==typeof h?o=h:1==o?i=ue(i,h):2==o&&(r=ue(r,h+": "+t[++u]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function _l(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(yn(o)),Ln(o))for(let h=10;h<o.length;h++){const _=o[h],T=_[1].firstChild;null!==T&&_l(_[1],_,T,r)}const u=n.type;if(8&u)_l(e,t,n.child,r);else if(32&u){const h=Xl(n,t);let _;for(;_=h();)r.push(_)}else if(16&u){const h=Dd(t,n);if(Array.isArray(h))r.push(...h);else{const _=Fa(t[16]);_l(_[1],_,h,r,!0)}}n=i?n.projectionNext:n.next}return r}class za{get rootNodes(){const t=this._lView,n=t[1];return _l(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Ln(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(iu(t,r),m(n,r))}this._attachedToViewContainer=!1}dd(this._lView[1],this._lView)}onDestroy(t){bf(this._lView[1],this._lView,null,t)}markForCheck(){$u(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){yl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function _m(e,t){La(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Te(902,!1);this._appRef=t}}class kv extends za{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;yl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Nf extends ja{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=cn(t);return new Ga(n,this.ngModule)}}function kf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Lv{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=V(r);const i=this.injector.get(t,Tu,r);return i!==Tu||n===Tu?i:this.parentInjector.get(t,n,r)}}class Ga extends Kd{get inputs(){return kf(this.componentDef.inputs)}get outputs(){return kf(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vy(e){return e.map($y).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Ys?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const u=o?new Lv(t,o):t,h=u.get(Yd,null);if(null===h)throw new Te(407,!1);const _=u.get(by,null),T=h.createRenderer(null,this.componentDef),O=this.componentDef.selectors[0][0]||"div",H=r?function hv(e,t,n){return e.selectRootElement(t,n===Rt.ShadowDom)}(T,r,this.componentDef.encapsulation):ru(T,O,function Fv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(O)),me=this.componentDef.onPush?288:272,Me=Lu(0,null,null,1,0,null,null,null,null,null),We=pl(null,Me,null,me,null,null,h,T,_,u,null);let ot,gt;qn(We);try{const wt=this.componentDef;let Gt,tt=null;wt.findHostDirectiveDefs?(Gt=[],tt=new Map,wt.findHostDirectiveDefs(wt,Gt,tt),Gt.push(wt)):Gt=[wt];const rn=function Uv(e,t){const n=e[1];return e[22]=t,ya(n,22,2,"#host",null)}(We,H),Er=function jv(e,t,n,r,i,o,u,h){const _=i[1];!function Hv(e,t,n,r){for(const i of e)t.mergedAttrs=Xn(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(vl(t,t.mergedAttrs,!0),null!==n&&bd(r,n,t))}(r,e,t,u);const T=o.createRenderer(t,n),O=pl(i,Cf(n),null,n.onPush?32:16,i[e.index],e,o,T,h||null,null,null);return _.firstCreatePass&&Uu(_,e,r.length-1),ml(i,O),i[e.index]=O}(rn,H,wt,Gt,We,h,T);gt=Zi(Me,22),H&&function Vv(e,t,n,r){if(r)mi(e,n,["ng-version",qd.full]);else{const{attrs:i,classes:o}=function zy(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Yo(i))break;i=o}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&mi(e,n,i),o&&o.length>0&&Cd(e,n,o.join(" "))}}(T,wt,H,r),void 0!==n&&function zv(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const o=n[i];r.push(null!=o?Array.from(o):null)}}(gt,this.ngContentSelectors,n),ot=function $v(e,t,n,r,i,o){const u=hr(),h=i[1],_=fr(u,i);If(h,i,u,n,null,r);for(let O=0;O<n.length;O++)Ui(st(i,h,u.directiveStart+O,u),i);Mf(h,i,u),_&&Ui(_,i);const T=st(i,h,u.directiveStart+u.componentOffset,u);if(e[8]=i[8]=T,null!==o)for(const O of o)O(T,t);return Nu(h,u,e),T}(Er,wt,Gt,tt,We,[Gv]),xu(Me,We,null)}finally{Es()}return new Bv(this.componentType,ot,ha(gt,We),We,gt)}}class Bv extends my{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new kv(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){const o=this._rootLView;zu(o[1],o,i,t,n),Sf(o,this._tNode.index)}}get injector(){return new Tt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Gv(){const e=hr();Eo(He()[1],e)}function Gu(e){let t=function Ff(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Sr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Te(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const u=e;u.inputs=Wu(e.inputs),u.declaredInputs=Wu(e.declaredInputs),u.outputs=Wu(e.outputs);const h=i.hostBindings;h&&Yv(e,h);const _=i.viewQuery,T=i.contentQueries;if(_&&Kv(e,_),T&&Zv(e,T),se(e.inputs,i.inputs),se(e.declaredInputs,i.declaredInputs),se(e.outputs,i.outputs),Sr(i)&&i.data.animation){const O=e.data;O.animation=(O.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let u=0;u<o.length;u++){const h=o[u];h&&h.ngInherit&&h(e),h===Gu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Wv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Xn(i.hostAttrs,n=Xn(n,i.hostAttrs))}}(r)}function Wu(e){return e===Xt?{}:e===Q?[]:e}function Kv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function Zv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function Yv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let Dl=null;function qs(){if(!Dl){const e=It.Symbol;if(e&&e.iterator)Dl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Dl=r)}}}return Dl}function El(e){return!!Ku(e)&&(Array.isArray(e)||!(e instanceof Map)&&qs()in e)}function Ku(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ps(e,t,n){return e[t]=n}function Wa(e,t){return e[t]}function ji(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Js(e,t,n,r){const i=ji(e,t,n);return ji(e,t+1,r)||i}function Lo(e,t,n,r,i,o){const u=Js(e,t,n,r);return Js(e,t+2,i,o)||u}function Zu(e,t,n,r){const i=He();return ji(i,Br(),t)&&(en(),hs(Un(),i,e,t,n,r)),Zu}function _a(e,t,n,r){return ji(e,Br(),n)?t+Se(n)+r:on}function Da(e,t,n,r,i,o){const h=Js(e,function On(){return Nt.lFrame.bindingIndex}(),n,i);return Ur(2),h?t+Se(n)+r+Se(i)+o:on}function Yf(e,t,n,r,i,o,u,h){const _=He(),T=en(),O=e+22,H=T.firstCreatePass?function o_(e,t,n,r,i,o,u,h,_){const T=t.consts,O=ya(t,e,4,u||null,ui(T,h));Bu(t,n,O,ui(T,_)),Eo(t,O);const H=O.tViews=Lu(2,O,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,T);return null!==t.queries&&(t.queries.template(t,O),H.queries=t.queries.embeddedTView(O)),O}(O,T,_,t,n,r,i,o,u):T.data[O];Lr(H,!1);const me=_[11].createComment("");ol(T,_,me,H),Ui(me,_),ml(_,_[O]=Af(me,_,me,H)),zi(H)&&ku(T,_,H),null!=u&&Fu(_,H,h)}function Qf(e){return Kr(function zo(){return Nt.lFrame.contextLView}(),22+e)}function Yu(e,t,n){const r=He();return ji(r,Br(),t)&&So(en(),Un(),r,e,t,r[11],n,!1),Yu}function Qu(e,t,n,r,i){const u=i?"class":"style";zu(e,n,t.inputs[u],u,r)}function bl(e,t,n,r){const i=He(),o=en(),u=22+e,h=i[11],_=i[u]=ru(h,t,function Ts(){return Nt.lFrame.currentNamespace}()),T=o.firstCreatePass?function a_(e,t,n,r,i,o,u){const h=t.consts,T=ya(t,e,2,i,ui(h,o));return Bu(t,n,T,ui(h,u)),null!==T.attrs&&vl(T,T.attrs,!1),null!==T.mergedAttrs&&vl(T,T.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,T),T}(u,o,i,0,t,n,r):o.data[u];return Lr(T,!0),bd(h,_,T),32!=(32&T.flags)&&ol(o,i,_,T),0===function Po(){return Nt.lFrame.elementDepthCount}()&&Ui(_,i),function Rs(){Nt.lFrame.elementDepthCount++}(),zi(T)&&(ku(o,i,T),Nu(o,T,i)),null!==r&&Fu(i,T),bl}function wl(){let e=hr();Ro()?Vo():(e=e.parent,Lr(e,!1));const t=e;!function Ho(){Nt.lFrame.elementDepthCount--}();const n=en();return n.firstCreatePass&&(Eo(n,e),Xr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qt(e){return 0!=(8&e.flags)}(t)&&Qu(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Jn(e){return 0!=(16&e.flags)}(t)&&Qu(n,t,He(),t.stylesWithoutHost,!1),wl}function qu(e,t,n,r){return bl(e,t,n,r),wl(),qu}function Tl(e,t,n){const r=He(),i=en(),o=e+22,u=i.firstCreatePass?function l_(e,t,n,r,i){const o=t.consts,u=ui(o,r),h=ya(t,e,8,"ng-container",u);return null!==u&&vl(h,u,!0),Bu(t,n,h,ui(o,i)),null!==t.queries&&t.queries.elementStart(t,h),h}(o,i,r,t,n):i.data[o];Lr(u,!0);const h=r[o]=r[11].createComment("");return ol(i,r,h,u),Ui(h,r),zi(u)&&(ku(i,r,u),Nu(i,u,r)),null!=n&&Fu(r,u),Tl}function Sl(){let e=hr();const t=en();return Ro()?Vo():(e=e.parent,Lr(e,!1)),t.firstCreatePass&&(Eo(t,e),Xr(e)&&t.queries.elementEnd(e)),Sl}function Ju(e,t,n){return Tl(e,t,n),Sl(),Ju}function qf(){return He()}function Xu(e){return!!e&&"function"==typeof e.then}function Jf(e){return!!e&&"function"==typeof e.subscribe}const Xf=Jf;function ec(e,t,n,r){const i=He(),o=en(),u=hr();return eh(o,i,i[11],u,e,t,r),ec}function tc(e,t){const n=hr(),r=He(),i=en();return eh(i,r,Rf(Ri(i.data),n,r),n,e,t),tc}function eh(e,t,n,r,i,o,u){const h=zi(r),T=e.firstCreatePass&&Of(e),O=t[8],H=Pf(t);let me=!0;if(3&r.type||u){const ot=fr(r,t),gt=u?u(ot):ot,wt=H.length,Gt=u?rn=>u(yn(rn[r.index])):r.index;let tt=null;if(!u&&h&&(tt=function u_(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const u=i[o];if(u===n&&i[o+1]===r){const h=t[7],_=i[o+2];return h.length>_?h[_]:null}"string"==typeof u&&(o+=2)}return null}(e,t,i,r.index)),null!==tt)(tt.__ngLastListenerFn__||tt).__ngNextListenerFn__=o,tt.__ngLastListenerFn__=o,me=!1;else{o=nh(r,t,O,o,!1);const rn=n.listen(gt,i,o);H.push(o,rn),T&&T.push(i,Gt,wt,wt+1)}}else o=nh(r,t,O,o,!1);const Me=r.outputs;let We;if(me&&null!==Me&&(We=Me[i])){const ot=We.length;if(ot)for(let gt=0;gt<ot;gt+=2){const Er=t[We[gt]][We[gt+1]].subscribe(o),Qr=H.length;H.push(o,Er),T&&T.push(i,r.index,Qr,-(Qr+1))}}}function th(e,t,n,r){try{return!1!==n(r)}catch(i){return xf(e,i),!1}}function nh(e,t,n,r,i){return function o(u){if(u===Function)return r;$u(e.componentOffset>-1?Ar(e.index,t):t);let _=th(t,0,r,u),T=o.__ngNextListenerFn__;for(;T;)_=th(t,0,T,u)&&_,T=T.__ngNextListenerFn__;return i&&!1===_&&(u.preventDefault(),u.returnValue=!1),_}}function rh(e=1){return function Cs(e){return(Nt.lFrame.contextLView=function Ji(e,t){for(;e>0;)t=t[15],e--;return t}(e,Nt.lFrame.contextLView))[8]}(e)}function c_(e,t){let n=null;const r=function By(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?nf(e,o,!0):Hy(r,o))return i}else n=i}return n}function ih(e){const t=He()[16][6];if(!t.projection){const r=t.projection=b(e?e.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const u=e?c_(o,e):0;null!==u&&(i[u]?i[u].projectionNext=o:r[u]=o,i[u]=o),o=o.next}}}function oh(e,t=0,n){const r=He(),i=en(),o=ya(i,22+e,16,null,n||null);null===o.projection&&(o.projection=t),Vo(),32!=(32&o.flags)&&function Im(e,t,n){Ed(t[11],0,t,n,fd(e,n,t),md(n.parent||t[6],n,t))}(i,r,o)}function nc(e,t,n){return rc(e,"",t,"",n),nc}function rc(e,t,n,r,i){const o=He(),u=_a(o,t,n,r);return u!==on&&So(en(),Un(),o,e,u,o[11],i,!1),rc}function ic(e,t,n,r,i,o,u){const h=He(),_=Da(h,t,n,r,i,o);return _!==on&&So(en(),Un(),h,e,_,h[11],u,!1),ic}function Il(e,t){return e<<17|t<<2}function Hs(e){return e>>17&32767}function oc(e){return 2|e}function Xs(e){return(131068&e)>>2}function sc(e,t){return-131069&e|t<<2}function ac(e){return 1|e}function hh(e,t,n,r,i){const o=e[n+1],u=null===t;let h=r?Hs(o):Xs(o),_=!1;for(;0!==h&&(!1===_||u);){const O=e[h+1];m_(e[h],t)&&(_=!0,e[h+1]=r?ac(O):oc(O)),h=r?Hs(O):Xs(O)}_&&(e[n+1]=r?oc(o):ac(o))}function m_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&un(e,t)>=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ph(e){return e.substring(fi.key,fi.keyEnd)}function gh(e,t){const n=fi.textEnd;return n===t?-1:(t=fi.keyEnd=function D_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,fi.key=t,n),Ia(e,t,n))}function Ia(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function lc(e,t,n){return Qo(e,t,n,!1),lc}function uc(e,t){return Qo(e,t,null,!0),uc}function Dh(e){qo(ft,ms,e,!0)}function ms(e,t){for(let n=function v_(e){return function yh(e){fi.key=0,fi.keyEnd=0,fi.value=0,fi.valueEnd=0,fi.textEnd=e.length}(e),gh(e,Ia(e,0,fi.textEnd))}(t);n>=0;n=gh(t,n))ft(e,ph(t),!0)}function Qo(e,t,n,r){const i=He(),o=en(),u=Ur(2);o.firstUpdatePass&&Ch(o,e,u,r),t!==on&&ji(i,u,t)&&wh(o,o.data[Pr()],i,i[11],e,i[u+1]=function P_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(Is(e)))),e}(t,n),r,u)}function qo(e,t,n,r){const i=en(),o=Ur(2);i.firstUpdatePass&&Ch(i,null,o,r);const u=He();if(n!==on&&ji(u,o,n)){const h=i.data[Pr()];if(Sh(h,r)&&!Eh(i,o)){let _=r?h.classesWithoutHost:h.stylesWithoutHost;null!==_&&(n=ue(_,n||"")),Qu(i,h,u,n,r)}else!function A_(e,t,n,r,i,o,u,h){i===on&&(i=Q);let _=0,T=0,O=0<i.length?i[0]:null,H=0<o.length?o[0]:null;for(;null!==O||null!==H;){const me=_<i.length?i[_+1]:void 0,Me=T<o.length?o[T+1]:void 0;let ot,We=null;O===H?(_+=2,T+=2,me!==Me&&(We=H,ot=Me)):null===H||null!==O&&O<H?(_+=2,We=O):(T+=2,We=H,ot=Me),null!==We&&wh(e,t,n,r,We,ot,u,h),O=_<i.length?i[_]:null,H=T<o.length?o[T]:null}}(i,h,u,u[11],u[o+1],u[o+1]=function M_(e,t,n){if(null==n||""===n)return Q;const r=[],i=Is(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,o)}}function Eh(e,t){return t>=e.expandoStartIndex}function Ch(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Pr()],u=Eh(e,n);Sh(o,r)&&null===t&&!u&&(t=!1),t=function w_(e,t,n,r){const i=Ri(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ka(n=cc(null,e,t,n,r),t.attrs,r),o=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==i)if(n=cc(i,e,t,n,r),null===o){let _=function T_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Xs(r))return e[Hs(r)]}(e,t,r);void 0!==_&&Array.isArray(_)&&(_=cc(null,e,t,_[1],r),_=Ka(_,t.attrs,r),function S_(e,t,n,r){e[Hs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,_))}else o=function I_(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ka(r,e[o].hostAttrs,n);return Ka(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function p_(e,t,n,r,i,o){let u=o?t.classBindings:t.styleBindings,h=Hs(u),_=Xs(u);e[r]=n;let O,T=!1;if(Array.isArray(n)?(O=n[1],(null===O||un(n,O)>0)&&(T=!0)):O=n,i)if(0!==_){const me=Hs(e[h+1]);e[r+1]=Il(me,h),0!==me&&(e[me+1]=sc(e[me+1],r)),e[h+1]=function f_(e,t){return 131071&e|t<<17}(e[h+1],r)}else e[r+1]=Il(h,0),0!==h&&(e[h+1]=sc(e[h+1],r)),h=r;else e[r+1]=Il(_,0),0===h?h=r:e[_+1]=sc(e[_+1],r),_=r;T&&(e[r+1]=oc(e[r+1])),hh(e,O,r,!0),hh(e,O,r,!1),function g_(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&un(o,t)>=0&&(n[r+1]=ac(n[r+1]))}(t,O,e,r,o),u=Il(h,_),o?t.classBindings=u:t.styleBindings=u}(i,o,t,n,u,r)}}function cc(e,t,n,r,i){let o=null;const u=n.directiveEnd;let h=n.directiveStylingLast;for(-1===h?h=n.directiveStart:h++;h<u&&(o=t[h],r=Ka(r,o.hostAttrs,i),o!==e);)h++;return null!==e&&(n.directiveStylingLast=h),r}function Ka(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const u=t[o];"number"==typeof u?i=u:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ft(e,u,!!n||t[++o]))}return void 0===e?null:e}function wh(e,t,n,r,i,o,u,h){if(!(3&t.type))return;const _=e.data,T=_[h+1],O=function h_(e){return 1==(1&e)}(T)?Th(_,t,n,i,Xs(T),u):void 0;Ml(O)||(Ml(o)||function d_(e){return 2==(2&e)}(T)&&(o=Th(_,null,n,i,h,u)),function Am(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=-1===r.indexOf("-")?void 0:fs.DashCase;null==i?e.removeStyle(n,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=fs.Important),e.setStyle(n,r,i,o))}}(r,u,Wr(Pr(),n),i,o))}function Th(e,t,n,r,i,o){const u=null===t;let h;for(;i>0;){const _=e[i],T=Array.isArray(_),O=T?_[1]:_,H=null===O;let me=n[i+1];me===on&&(me=H?Q:void 0);let Me=H?vt(me,r):O===r?me:void 0;if(T&&!Ml(Me)&&(Me=vt(_,r)),Ml(Me)&&(h=Me,u))return h;const We=e[i+1];i=u?Hs(We):Xs(We)}if(null!==t){let _=o?t.residualClasses:t.residualStyles;null!=_&&(h=vt(_,r))}return h}function Ml(e){return void 0!==e}function Sh(e,t){return 0!=(e.flags&(t?8:16))}function Ih(e,t=""){const n=He(),r=en(),i=e+22,o=r.firstCreatePass?ya(r,i,1,t,null):r.data[i],u=n[i]=function nu(e,t){return e.createText(t)}(n[11],t);ol(r,n,u,o),Lr(o,!1)}function dc(e){return Al("",e,""),dc}function Al(e,t,n){const r=He(),i=_a(r,e,t,n);return i!==on&&Ps(r,Pr(),i),Al}function fc(e,t,n,r,i){const o=He(),u=Da(o,e,t,n,r,i);return u!==on&&Ps(o,Pr(),u),fc}function kh(e,t,n){qo(ft,ms,_a(He(),e,t,n),!0)}function hc(e,t,n){const r=He();return ji(r,Br(),t)&&So(en(),Un(),r,e,t,r[11],n,!0),hc}function pc(e,t,n){const r=He();if(ji(r,Br(),t)){const o=en(),u=Un();So(o,u,r,e,t,Rf(Ri(o.data),u,r),n,!0)}return pc}const ea=void 0;var Y_=["en",[["a","p"],["AM","PM"],ea],[["AM","PM"],ea,ea],[["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"]],ea,[["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"]],ea,[["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}",ea,"{1} 'at' {0}",ea],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Z_(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Ma={};function gc(e){const t=function Q_(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Wh(t);if(n)return n;const r=t.split("-")[0];if(n=Wh(r),n)return n;if("en"===r)return Y_;throw new Te(701,!1)}function Gh(e){return gc(e)[Vt.PluralCase]}function Wh(e){return e in Ma||(Ma[e]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[e]),Ma[e]}var Vt=(()=>((Vt=Vt||{})[Vt.LocaleId=0]="LocaleId",Vt[Vt.DayPeriodsFormat=1]="DayPeriodsFormat",Vt[Vt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Vt[Vt.DaysFormat=3]="DaysFormat",Vt[Vt.DaysStandalone=4]="DaysStandalone",Vt[Vt.MonthsFormat=5]="MonthsFormat",Vt[Vt.MonthsStandalone=6]="MonthsStandalone",Vt[Vt.Eras=7]="Eras",Vt[Vt.FirstDayOfWeek=8]="FirstDayOfWeek",Vt[Vt.WeekendRange=9]="WeekendRange",Vt[Vt.DateFormat=10]="DateFormat",Vt[Vt.TimeFormat=11]="TimeFormat",Vt[Vt.DateTimeFormat=12]="DateTimeFormat",Vt[Vt.NumberSymbols=13]="NumberSymbols",Vt[Vt.NumberFormats=14]="NumberFormats",Vt[Vt.CurrencyCode=15]="CurrencyCode",Vt[Vt.CurrencySymbol=16]="CurrencySymbol",Vt[Vt.CurrencyName=17]="CurrencyName",Vt[Vt.Currencies=18]="Currencies",Vt[Vt.Directionality=19]="Directionality",Vt[Vt.PluralCase=20]="PluralCase",Vt[Vt.ExtraData=21]="ExtraData",Vt))();const Aa="en-US";let Kh=Aa;function vc(e,t,n,r,i){if(e=te(e),Array.isArray(e))for(let o=0;o<e.length;o++)vc(e[o],t,n,r,i);else{const o=en(),u=He();let h=Zs(e)?e:te(e.provide),_=Wd(e);const T=hr(),O=1048575&T.providerIndexes,H=T.directiveStart,me=T.providerIndexes>>20;if(Zs(e)||!e.multi){const Me=new Be(_,i,ma),We=Dc(h,t,i?O:O+me,H);-1===We?(a(ko(T,u),o,h),_c(o,e,t.length),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(Me),u.push(Me)):(n[We]=Me,u[We]=Me)}else{const Me=Dc(h,t,O+me,H),We=Dc(h,t,O,O+me),gt=We>=0&&n[We];if(i&&!gt||!i&&!(Me>=0&&n[Me])){a(ko(T,u),o,h);const wt=function KD(e,t,n,r,i){const o=new Be(e,n,ma);return o.multi=[],o.index=t,o.componentProviders=0,vp(o,i,r&&!n),o}(i?WD:GD,n.length,i,r,_);!i&&gt&&(n[We].providerFactory=wt),_c(o,e,t.length,0),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(wt),u.push(wt)}else _c(o,e,Me>-1?Me:We,vp(n[i?We:Me],_,!i&&r));!i&&r&&gt&&n[We].componentProviders++}}}function _c(e,t,n,r){const i=Zs(t),o=function uy(e){return!!e.useClass}(t);if(i||o){const _=(o?te(t.useClass):t).prototype.ngOnDestroy;if(_){const T=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const O=T.indexOf(n);-1===O?T.push(n,[r,_]):T[O+1].push(r,_)}else T.push(n,_)}}}function vp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Dc(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function GD(e,t,n,r){return Ec(this.multi,[])}function WD(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const u=this.providerFactory.componentProviders,h=st(n,n[1],this.providerFactory.index,r);o=h.slice(0,u),Ec(i,o);for(let _=u;_<h.length;_++)o.push(h[_])}else o=[],Ec(i,o);return o}function Ec(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function _p(e,t=[]){return n=>{n.providersResolver=(r,i)=>function zD(e,t,n){const r=en();if(r.firstCreatePass){const i=Sr(e);vc(n,r.data,r.blueprint,i,!0),vc(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Pa{}class Dp{}function ZD(e,t){return new Ep(e,t??null)}class Ep extends Pa{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nf(this);const r=Qn(t);this._bootstrapComponents=As(r.bootstrap),this._r3Injector=ff(t,n,[{provide:Pa,useValue:this},{provide:ja,useValue:this.componentFactoryResolver}],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cc extends Dp{constructor(t){super(),this.moduleType=t}create(t){return new Ep(this.moduleType,t)}}class YD extends Pa{constructor(t,n,r){super(),this.componentFactoryResolver=new Nf(this),this.instance=null;const i=new Gd([...t,{provide:Pa,useValue:this},{provide:ja,useValue:this.componentFactoryResolver}],n||fl(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function bc(e,t,n=null){return new YD(e,t,n).injector}let QD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=Hd(0,n.type),i=r.length>0?bc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,i)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=et({token:e,providedIn:"environment",factory:()=>new e(rt(Ys))}),e})();function Cp(e){e.getStandaloneInjector=t=>t.get(QD).getOrCreateStandaloneInjector(e)}function Ap(e,t,n){const r=Dr()+e,i=He();return i[r]===on?ps(i,r,n?t.call(n):t()):Wa(i,r)}function Pp(e,t,n,r){return kp(He(),Dr(),e,t,n,r)}function Op(e,t,n,r,i){return Fp(He(),Dr(),e,t,n,r,i)}function Rp(e,t,n,r,i,o){return function Lp(e,t,n,r,i,o,u,h){const _=t+n;return function Cl(e,t,n,r,i){const o=Js(e,t,n,r);return ji(e,t+2,i)||o}(e,_,i,o,u)?ps(e,_+3,h?r.call(h,i,o,u):r(i,o,u)):Xa(e,_+3)}(He(),Dr(),e,t,n,r,i,o)}function xp(e,t,n,r,i,o,u){return function Bp(e,t,n,r,i,o,u,h,_){const T=t+n;return Lo(e,T,i,o,u,h)?ps(e,T+4,_?r.call(_,i,o,u,h):r(i,o,u,h)):Xa(e,T+4)}(He(),Dr(),e,t,n,r,i,o,u)}function Np(e,t,n,r,i,o,u,h){const _=Dr()+e,T=He(),O=Lo(T,_,n,r,i,o);return ji(T,_+4,u)||O?ps(T,_+5,h?t.call(h,n,r,i,o,u):t(n,r,i,o,u)):Wa(T,_+5)}function Xa(e,t){const n=e[t];return n===on?void 0:n}function kp(e,t,n,r,i,o){const u=t+n;return ji(e,u,i)?ps(e,u+1,o?r.call(o,i):r(i)):Xa(e,u+1)}function Fp(e,t,n,r,i,o,u){const h=t+n;return Js(e,h,i,o)?ps(e,h+2,u?r.call(u,i,o):r(i,o)):Xa(e,h+2)}function jp(e,t){const n=en();let r;const i=e+22;n.firstCreatePass?(r=function c0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Zn(r.type)),u=In(ma);try{const h=as(!1),_=o();return as(h),function s_(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,He(),i,_),_}finally{In(u)}}function Hp(e,t,n){const r=e+22,i=He(),o=Kr(i,r);return el(i,r)?kp(i,Dr(),t,o.transform,n,o):o.transform(n)}function $p(e,t,n,r){const i=e+22,o=He(),u=Kr(o,i);return el(o,i)?Fp(o,Dr(),t,u.transform,n,r,u):u.transform(n,r)}function el(e,t){return e[1].data[t].pure}function Tc(e){return t=>{setTimeout(e,void 0,t)}}const ys=class p0 extends d.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),u=r;if(t&&"object"==typeof t){const _=t;i=_.next?.bind(_),o=_.error?.bind(_),u=_.complete?.bind(_)}this.__isAsync&&(o=Tc(o),i&&(i=Tc(i)),u&&(u=Tc(u)));const h=super.subscribe({next:i,error:o,complete:u});return t instanceof p.w0&&t.add(h),h}};function g0(){return this._results[qs()]()}class Nl{get changes(){return this._changes||(this._changes=new ys)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=qs(),r=Nl.prototype;r[n]||(r[n]=g0)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=function c(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function xr(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let tl=(()=>{class e{}return e.__NG_ELEMENT_ID__=v0,e})();const m0=tl,y0=class extends m0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,i=pl(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);i[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(i[19]=u.createEmbeddedView(r)),xu(r,i,t),new za(i)}};function v0(){return kl(hr(),He())}function kl(e,t){return 4&e.type?new y0(t,e,ha(e,t)):null}let Fl=(()=>{class e{}return e.__NG_ELEMENT_ID__=_0,e})();function _0(){return Gp(hr(),He())}const D0=Fl,Vp=class extends D0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ha(this._hostTNode,this._hostLView)}get injector(){return new Tt(this._hostTNode,this._hostLView)}get parentInjector(){const t=s(this._hostTNode,this._hostLView);if(Co(t)){const n=ss(t,this._hostLView),r=co(t);return new Tt(n[1].data[r+8],n)}return new Tt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=zp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const u=t.createEmbeddedView(n||{},o);return this.insert(u,i),u}createComponent(t,n,r,i,o){const u=t&&!function Zo(e){return"function"==typeof e}(t);let h;if(u)h=n;else{const H=n||{};h=H.index,r=H.injector,i=H.projectableNodes,o=H.environmentInjector||H.ngModuleRef}const _=u?t:new Ga(cn(t)),T=r||this.parentInjector;if(!o&&null==_.ngModule){const me=(u?T:this.parentInjector).get(Ys,null);me&&(o=me)}const O=_.create(T,i,void 0,o);return this.insert(O.hostView,h),O}insert(t,n){const r=t._lView,i=r[1];if(function Ao(e){return Ln(e[3])}(r)){const O=this.indexOf(t);if(-1!==O)this.detach(O);else{const H=r[3],me=new Vp(H,H[6],H[3]);me.detach(me.indexOf(t))}}const o=this._adjustIndex(n),u=this._lContainer;!function Em(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],l(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const u=t[17];null!==u&&n!==u&&function Cm(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(u,t);const h=t[19];null!==h&&h.insertView(e),t[2]|=64}(i,r,u,o);const h=au(o,u),_=r[11],T=il(_,u[7]);return null!==T&&function vm(e,t,n,r,i,o){r[0]=i,r[6]=t,La(e,r,n,1,i,o)}(i,u[6],_,r,T,h),t.attachToViewContainerRef(),l(Sc(u),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=zp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=iu(this._lContainer,n);r&&(m(Sc(this._lContainer),n),dd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=iu(this._lContainer,n);return r&&null!=m(Sc(this._lContainer),n)?new za(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[8]}function Sc(e){return e[8]||(e[8]=[])}function Gp(e,t){let n;const r=t[e.index];if(Ln(r))n=r;else{let i;if(8&e.type)i=yn(r);else{const o=t[11];i=o.createComment("");const u=fr(e,t);Gs(o,il(o,u),i,function Sm(e,t){return e.nextSibling(t)}(o,u),!1)}t[e.index]=n=Af(r,t,i,e),ml(t,n)}return new Vp(n,e,t)}class Ic{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ic(this.queryList)}setDirty(){this.queryList.setDirty()}}class Mc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const u=n.getByIndex(o);i.push(this.queries[u.indexInDeclarationView].clone())}return new Mc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==eg(t,n).matches&&this.queries[n].setDirty()}}class Wp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Ac{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new Ac(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Pc{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Pc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,n,E0(n,o)),this.matchTNodeWithReadOption(t,n,Ge(n,t,o,!1,!1))}else r===tl?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ge(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Ha||i===Fl||i===tl&&4&n.type)this.addMatch(n.index,-2);else{const o=Ge(n,t,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function E0(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function b0(e,t,n,r){return-1===n?function C0(e,t){return 11&e.type?ha(e,t):4&e.type?kl(e,t):null}(t,e):-2===n?function w0(e,t,n){return n===Ha?ha(t,e):n===tl?kl(t,e):n===Fl?Gp(t,e):void 0}(e,t,r):st(e,e[1],n,t)}function Kp(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const o=e.data,u=n.matches,h=[];for(let _=0;_<u.length;_+=2){const T=u[_];h.push(T<0?null:b0(t,o[T],u[_+1],n.metadata.read))}i.matches=h}return i.matches}function Oc(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const u=Kp(e,t,i,n);for(let h=0;h<o.length;h+=2){const _=o[h];if(_>0)r.push(u[h/2]);else{const T=o[h+1],O=t[-_];for(let H=10;H<O.length;H++){const me=O[H];me[17]===me[3]&&Oc(me[1],me,T,r)}if(null!==O[9]){const H=O[9];for(let me=0;me<H.length;me++){const Me=H[me];Oc(Me[1],Me,T,r)}}}}}return r}function Zp(e){const t=He(),n=en(),r=Go();xi(r+1);const i=eg(n,r);if(e.dirty&&function jo(e){return 4==(4&e[2])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?Oc(n,t,r,[]):Kp(n,t,i,r);e.reset(o,Dy),e.notifyOnChanges()}return!0}return!1}function Yp(e,t,n){const r=en();r.firstCreatePass&&(Xp(r,new Wp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Jp(r,He(),t)}function Qp(e,t,n,r){const i=en();if(i.firstCreatePass){const o=hr();Xp(i,new Wp(t,n,r),o.index),function S0(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Jp(i,He(),n)}function qp(){return function T0(e,t){return e[19].queries[t].queryList}(He(),Go())}function Jp(e,t,n){const r=new Nl(4==(4&n));bf(e,t,r,r.destroy),null===t[19]&&(t[19]=new Mc),t[19].queries.push(new Ic(r))}function Xp(e,t,n){null===e.queries&&(e.queries=new Ac),e.queries.track(new Pc(t,n))}function eg(e,t){return e.queries.getByIndex(t)}function tg(e,t){return kl(e,t)}function Bl(...e){}const Dg=new Dn("Application Initializer");let Ul=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Bl,this.reject=Bl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Xu(o))n.push(o);else if(Xf(o)){const u=new Promise((h,_)=>{o.subscribe({complete:h,error:_})});n.push(u)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(rt(Dg,8))},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Eg=new Dn("AppId",{providedIn:"root",factory:function Cg(){return`${Fc()}${Fc()}${Fc()}`}});function Fc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const bg=new Dn("Platform Initializer"),W0=new Dn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wg=new Dn("appBootstrapListener"),K0=new Dn("AnimationModuleType");let Z0=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const jl=new Dn("LocaleId",{providedIn:"root",factory:()=>_e(jl,Et.Optional|Et.SkipSelf)||function Y0(){return typeof $localize<"u"&&$localize.locale||Aa}()}),Q0=new Dn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class q0{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let J0=(()=>{class e{compileModuleSync(n){return new Cc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=As(Qn(n).declarations).reduce((u,h)=>{const _=cn(h);return _&&u.push(new Ga(_)),u},[]);return new q0(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const tE=(()=>Promise.resolve(0))();function Lc(e){typeof Zone>"u"?tE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ys(!1),this.onMicrotaskEmpty=new ys(!1),this.onStable=new ys(!1),this.onError=new ys(!1),typeof Zone>"u")throw new Te(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function nE(){let e=It.requestAnimationFrame,t=It.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function oE(e){const t=()=>{!function iE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(It,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Uc(e),e.isCheckStableRunning=!0,Bc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Uc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,u,h)=>{try{return Ig(e),n.invokeTask(i,o,u,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Mg(e)}},onInvoke:(n,r,i,o,u,h,_)=>{try{return Ig(e),n.invoke(i,o,u,h,_)}finally{e.shouldCoalesceRunChangeDetection&&t(),Mg(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Uc(e),Bc(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bo.isInAngularZone())throw new Te(909,!1)}static assertNotInAngularZone(){if(Bo.isInAngularZone())throw new Te(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,u=o.scheduleEventTask("NgZoneEvent: "+i,t,rE,Bl,Bl);try{return o.runTask(u,n,r)}finally{o.cancelTask(u)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const rE={};function Bc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Uc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ig(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Mg(e){e._nesting--,Bc(e)}class sE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ys,this.onMicrotaskEmpty=new ys,this.onStable=new ys,this.onError=new ys}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const Ag=new Dn(""),Pg=new Dn("");let jc,aE=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,jc||(function lE(e){jc=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.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:()=>{Bo.assertNotInAngularZone(),Lc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){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())Lc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(rt(Bo),rt(Og),rt(Pg))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})(),Og=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return jc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),$s=null;const Rg=new Dn("AllowMultipleToken"),Hc=new Dn("PlatformDestroyListeners");class dE{constructor(t,n){this.name=t,this.token=n}}function Ng(e,t,n=[]){const r=`Platform: ${t}`,i=new Dn(r);return(o=[])=>{let u=$c();if(!u||u.injector.get(Rg,!1)){const h=[...n,...o,{provide:i,useValue:!0}];e?e(h):function fE(e){if($s&&!$s.get(Rg,!1))throw new Te(400,!1);$s=e;const t=e.get(Fg);(function xg(e){const t=e.get(bg,null);t&&t.forEach(n=>n())})(e)}(function kg(e=[],t){return Qs.create({name:t,providers:[{provide:Eu,useValue:"platform"},{provide:Hc,useValue:new Set([()=>$s=null])},...e]})}(h,r))}return function pE(e){const t=$c();if(!t)throw new Te(401,!1);return t}()}}function $c(){return $s?.get(Fg)??null}let Fg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function Bg(e,t){let n;return n="noop"===e?new sE:("zone.js"===e?void 0:e)||new Bo(t),n}(r?.ngZone,function Lg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Bo,useValue:i}];return i.run(()=>{const u=Qs.create({providers:o,parent:this.injector,name:n.moduleType.name}),h=n.create(u),_=h.injector.get($a,null);if(!_)throw new Te(402,!1);return i.runOutsideAngular(()=>{const T=i.onError.subscribe({next:O=>{_.handleError(O)}});h.onDestroy(()=>{$l(this._modules,h),T.unsubscribe()})}),function Ug(e,t,n){try{const r=n();return Xu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(_,i,()=>{const T=h.injector.get(Ul);return T.runInitializers(),T.donePromise.then(()=>(function Zh(e){St(e,"Expected localeId to be defined"),"string"==typeof e&&(Kh=e.toLowerCase().replace(/_/g,"-"))}(h.injector.get(jl,Aa)||Aa),this._moduleDoBootstrap(h),h))})})}bootstrapModule(n,r=[]){const i=jg({},r);return function uE(e,t,n){const r=new Cc(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Hl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Te(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Te(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Hc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(rt(Qs))},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function jg(e,t){return Array.isArray(t)?t.reduce(jg,e):{...e,...t}}let Hl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,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 o=new N.y(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),u=new N.y(h=>{let _;this._zone.runOutsideAngular(()=>{_=this._zone.onStable.subscribe(()=>{Bo.assertNotInAngularZone(),Lc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{Bo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{_.unsubscribe(),T.unsubscribe()}});this.isStable=(0,$.T)(o,u.pipe((0,K.B)()))}bootstrap(n,r){const i=n instanceof Kd;if(!this._injector.get(Ul).done)throw!i&&Wn(n),new Te(405,false);let u;u=i?n:this._injector.get(ja).resolveComponentFactory(n),this.componentTypes.push(u.componentType);const h=function cE(e){return e.isBoundToModule}(u)?void 0:this._injector.get(Pa),T=u.create(Qs.NULL,[],r||u.selector,h),O=T.location.nativeElement,H=T.injector.get(Ag,null);return H?.registerApplication(O),T.onDestroy(()=>{this.detachView(T.hostView),$l(this.components,T),H?.unregisterApplication(O)}),this._loadComponent(T),T}tick(){if(this._runningTick)throw new Te(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$l(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(wg,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$l(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Te(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(rt(Bo),rt(Ys),rt($a))},e.\u0275prov=et({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $l(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function mE(){return!1}function yE(){}let vE=(()=>{class e{}return e.__NG_ELEMENT_ID__=_E,e})();function _E(e){return function DE(e,t,n){if(Vi(e)&&!n){const r=Ar(e.index,t);return new za(r,r)}return 47&e.type?new za(t[16],t):null}(hr(),He(),16==(16&e))}class Gg{constructor(){}supports(t){return El(t)}create(t){return new SE(t)}}const TE=(e,t)=>t;class SE{constructor(t){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=t||TE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const u=!r||n&&n.currentIndex<Kg(r,i,o)?n:r,h=Kg(u,i,o),_=u.currentIndex;if(u===r)i--,r=r._nextRemoved;else if(n=n._next,null==u.previousIndex)i++;else{o||(o=[]);const T=h-i,O=_-i;if(T!=O){for(let me=0;me<T;me++){const Me=me<o.length?o[me]:o[me]=0,We=Me+me;O<=We&&We<T&&(o[me]=Me+1)}o[u.previousIndex]=O-T}}h!==_&&t(u,h,_)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!El(t))throw new Te(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,u,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let h=0;h<this.length;h++)o=t[h],u=this._trackByFn(h,o),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,o,u,h)),Object.is(n.item,o)||this._addIdentityChange(n,o)):(n=this._mismatch(n,o,u,h),r=!0),n=n._next}else i=0,function n_(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[qs()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,h=>{u=this._trackByFn(i,h),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,h,u,i)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,u,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new IE(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Wg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class IE{constructor(t,n){this.item=t,this.trackById=n,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 ME{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Wg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new ME,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Kg(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Zg{constructor(){}supports(t){return t instanceof Map||Ku(t)}create(){return new AE}}class AE{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(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Ku(t)))throw new Te(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,u=i._next;return o&&(o._next=u),u&&(u._prev=o),i._next=null,i._prev=null,i}const r=new PE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class PE{constructor(t){this.key=t,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 Yg(){return new Kc([new Gg])}let Kc=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Yg()),deps:[[e,new C,new aa]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Te(901,!1)}}return e.\u0275prov=et({token:e,providedIn:"root",factory:Yg}),e})();function Qg(){return new Zc([new Zg])}let Zc=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Qg()),deps:[[e,new C,new aa]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Te(901,!1)}}return e.\u0275prov=et({token:e,providedIn:"root",factory:Qg}),e})();const xE=Ng(null,"core",[]);let NE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(rt(Hl))},e.\u0275mod=hi({type:e}),e.\u0275inj=zt({}),e})();function kE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},1481:(nt,De,w)=>{w.d(De,{Dx:()=>Nn,H7:()=>it,b2:()=>yt,q6:()=>$n,se:()=>be});var d=w(6895),p=w(4650);class N extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $ extends N{static makeCurrent(){(0,d.HT)(new $)}onAndCancel(X,L,ve){return X.addEventListener(L,ve,!1),()=>{X.removeEventListener(L,ve,!1)}}dispatchEvent(X,L){X.dispatchEvent(L)}remove(X){X.parentNode&&X.parentNode.removeChild(X)}createElement(X,L){return(L=L||this.getDefaultDocument()).createElement(X)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(X){return X.nodeType===Node.ELEMENT_NODE}isShadowRoot(X){return X instanceof DocumentFragment}getGlobalEventTarget(X,L){return"window"===L?window:"document"===L?X:"body"===L?X.body:null}getBaseHref(X){const L=function q(){return K=K||document.querySelector("base"),K?K.getAttribute("href"):null}();return null==L?null:function ie(Q){se=se||document.createElement("a"),se.setAttribute("href",Q);const X=se.pathname;return"/"===X.charAt(0)?X:`/${X}`}(L)}resetBaseElement(){K=null}getUserAgent(){return window.navigator.userAgent}getCookie(X){return(0,d.Mx)(document.cookie,X)}}let se,K=null;const ue=new p.OlP("TRANSITION_ID"),G=[{provide:p.ip1,useFactory:function B(Q,X,L){return()=>{L.get(p.CZH).donePromise.then(()=>{const ve=(0,d.q)(),$e=X.querySelectorAll(`style[ng-transition="${Q}"]`);for(let ut=0;ut<$e.length;ut++)ve.remove($e[ut])})}},deps:[ue,d.K0,p.zs3],multi:!0}];let Le=(()=>{class Q{build(){return new XMLHttpRequest}}return Q.\u0275fac=function(L){return new(L||Q)},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Ae=new p.OlP("EventManagerPlugins");let je=(()=>{class Q{constructor(L,ve){this._zone=ve,this._eventNameToPlugin=new Map,L.forEach($e=>$e.manager=this),this._plugins=L.slice().reverse()}addEventListener(L,ve,$e){return this._findPluginFor(ve).addEventListener(L,ve,$e)}addGlobalEventListener(L,ve,$e){return this._findPluginFor(ve).addGlobalEventListener(L,ve,$e)}getZone(){return this._zone}_findPluginFor(L){const ve=this._eventNameToPlugin.get(L);if(ve)return ve;const $e=this._plugins;for(let ut=0;ut<$e.length;ut++){const Ft=$e[ut];if(Ft.supports(L))return this._eventNameToPlugin.set(L,Ft),Ft}throw new Error(`No event manager plugin found for event ${L}`)}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(Ae),p.LFG(p.R0b))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class Ze{constructor(X){this._doc=X}addGlobalEventListener(X,L,ve){const $e=(0,d.q)().getGlobalEventTarget(this._doc,X);if(!$e)throw new Error(`Unsupported event target ${$e} for event ${L}`);return this.addEventListener($e,L,ve)}}let Te=(()=>{class Q{constructor(){this._stylesSet=new Set}addStyles(L){const ve=new Set;L.forEach($e=>{this._stylesSet.has($e)||(this._stylesSet.add($e),ve.add($e))}),this.onStylesAdded(ve)}onStylesAdded(L){}getAllStyles(){return Array.from(this._stylesSet)}}return Q.\u0275fac=function(L){return new(L||Q)},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})(),Pe=(()=>{class Q extends Te{constructor(L){super(),this._doc=L,this._hostNodes=new Map,this._hostNodes.set(L.head,[])}_addStylesToHost(L,ve,$e){L.forEach(ut=>{const Ft=this._doc.createElement("style");Ft.textContent=ut,$e.push(ve.appendChild(Ft))})}addHost(L){const ve=[];this._addStylesToHost(this._stylesSet,L,ve),this._hostNodes.set(L,ve)}removeHost(L){const ve=this._hostNodes.get(L);ve&&ve.forEach(Se),this._hostNodes.delete(L)}onStylesAdded(L){this._hostNodes.forEach((ve,$e)=>{this._addStylesToHost(L,$e,ve)})}ngOnDestroy(){this._hostNodes.forEach(L=>L.forEach(Se))}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(d.K0))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();function Se(Q){(0,d.q)().remove(Q)}const ye={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/"},Ce=/%COMP%/g;function j(Q,X){return X.flat(100).map(L=>L.replace(Ce,Q))}function Z(Q){return X=>{if("__ngUnwrap__"===X)return Q;!1===Q(X)&&(X.preventDefault(),X.returnValue=!1)}}let be=(()=>{class Q{constructor(L,ve,$e){this.eventManager=L,this.sharedStylesHost=ve,this.appId=$e,this.rendererByCompId=new Map,this.defaultRenderer=new fe(L)}createRenderer(L,ve){if(!L||!ve)return this.defaultRenderer;switch(ve.encapsulation){case p.ifc.Emulated:{let $e=this.rendererByCompId.get(ve.id);return $e||($e=new Yt(this.eventManager,this.sharedStylesHost,ve,this.appId),this.rendererByCompId.set(ve.id,$e)),$e.applyToHost(L),$e}case p.ifc.ShadowDom:return new sn(this.eventManager,this.sharedStylesHost,L,ve);default:if(!this.rendererByCompId.has(ve.id)){const $e=j(ve.id,ve.styles);this.sharedStylesHost.addStyles($e),this.rendererByCompId.set(ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(je),p.LFG(Pe),p.LFG(p.AFp))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class fe{constructor(X){this.eventManager=X,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(X,L){return L?document.createElementNS(ye[L]||L,X):document.createElement(X)}createComment(X){return document.createComment(X)}createText(X){return document.createTextNode(X)}appendChild(X,L){(pt(X)?X.content:X).appendChild(L)}insertBefore(X,L,ve){X&&(pt(X)?X.content:X).insertBefore(L,ve)}removeChild(X,L){X&&X.removeChild(L)}selectRootElement(X,L){let ve="string"==typeof X?document.querySelector(X):X;if(!ve)throw new Error(`The selector "${X}" did not match any elements`);return L||(ve.textContent=""),ve}parentNode(X){return X.parentNode}nextSibling(X){return X.nextSibling}setAttribute(X,L,ve,$e){if($e){L=$e+":"+L;const ut=ye[$e];ut?X.setAttributeNS(ut,L,ve):X.setAttribute(L,ve)}else X.setAttribute(L,ve)}removeAttribute(X,L,ve){if(ve){const $e=ye[ve];$e?X.removeAttributeNS($e,L):X.removeAttribute(`${ve}:${L}`)}else X.removeAttribute(L)}addClass(X,L){X.classList.add(L)}removeClass(X,L){X.classList.remove(L)}setStyle(X,L,ve,$e){$e&(p.JOm.DashCase|p.JOm.Important)?X.style.setProperty(L,ve,$e&p.JOm.Important?"important":""):X.style[L]=ve}removeStyle(X,L,ve){ve&p.JOm.DashCase?X.style.removeProperty(L):X.style[L]=""}setProperty(X,L,ve){X[L]=ve}setValue(X,L){X.nodeValue=L}listen(X,L,ve){return"string"==typeof X?this.eventManager.addGlobalEventListener(X,L,Z(ve)):this.eventManager.addEventListener(X,L,Z(ve))}}function pt(Q){return"TEMPLATE"===Q.tagName&&void 0!==Q.content}class Yt extends fe{constructor(X,L,ve,$e){super(X),this.component=ve;const ut=j($e+"-"+ve.id,ve.styles);L.addStyles(ut),this.contentAttr=function Y(Q){return"_ngcontent-%COMP%".replace(Ce,Q)}($e+"-"+ve.id),this.hostAttr=function de(Q){return"_nghost-%COMP%".replace(Ce,Q)}($e+"-"+ve.id)}applyToHost(X){super.setAttribute(X,this.hostAttr,"")}createElement(X,L){const ve=super.createElement(X,L);return super.setAttribute(ve,this.contentAttr,""),ve}}class sn extends fe{constructor(X,L,ve,$e){super(X),this.sharedStylesHost=L,this.hostEl=ve,this.shadowRoot=ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ut=j($e.id,$e.styles);for(let Ft=0;Ft<ut.length;Ft++){const zn=document.createElement("style");zn.textContent=ut[Ft],this.shadowRoot.appendChild(zn)}}nodeOrShadowRoot(X){return X===this.hostEl?this.shadowRoot:X}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(X,L){return super.appendChild(this.nodeOrShadowRoot(X),L)}insertBefore(X,L,ve){return super.insertBefore(this.nodeOrShadowRoot(X),L,ve)}removeChild(X,L){return super.removeChild(this.nodeOrShadowRoot(X),L)}parentNode(X){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(X)))}}let bt=(()=>{class Q extends Ze{constructor(L){super(L)}supports(L){return!0}addEventListener(L,ve,$e){return L.addEventListener(ve,$e,!1),()=>this.removeEventListener(L,ve,$e)}removeEventListener(L,ve,$e){return L.removeEventListener(ve,$e)}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(d.K0))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const St=["alt","control","meta","shift"],Ne={"\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"},Qe={alt:Q=>Q.altKey,control:Q=>Q.ctrlKey,meta:Q=>Q.metaKey,shift:Q=>Q.shiftKey};let ce=(()=>{class Q extends Ze{constructor(L){super(L)}supports(L){return null!=Q.parseEventName(L)}addEventListener(L,ve,$e){const ut=Q.parseEventName(ve),Ft=Q.eventCallback(ut.fullKey,$e,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(L,ut.domEventName,Ft))}static parseEventName(L){const ve=L.toLowerCase().split("."),$e=ve.shift();if(0===ve.length||"keydown"!==$e&&"keyup"!==$e)return null;const ut=Q._normalizeKey(ve.pop());let Ft="",zn=ve.indexOf("code");if(zn>-1&&(ve.splice(zn,1),Ft="code."),St.forEach(Cr=>{const Cn=ve.indexOf(Cr);Cn>-1&&(ve.splice(Cn,1),Ft+=Cr+".")}),Ft+=ut,0!=ve.length||0===ut.length)return null;const Gn={};return Gn.domEventName=$e,Gn.fullKey=Ft,Gn}static matchEventFullKeyCode(L,ve){let $e=Ne[L.key]||L.key,ut="";return ve.indexOf("code.")>-1&&($e=L.code,ut="code."),!(null==$e||!$e)&&($e=$e.toLowerCase()," "===$e?$e="space":"."===$e&&($e="dot"),St.forEach(Ft=>{Ft!==$e&&(0,Qe[Ft])(L)&&(ut+=Ft+".")}),ut+=$e,ut===ve)}static eventCallback(L,ve,$e){return ut=>{Q.matchEventFullKeyCode(ut,L)&&$e.runGuarded(()=>ve(ut))}}static _normalizeKey(L){return"esc"===L?"escape":L}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(d.K0))},Q.\u0275prov=p.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const $n=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function ln(){$.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function Bn(){return(0,p.RDi)(document),document},deps:[]}]),tn=new p.OlP(""),jn=[{provide:p.rWj,useClass:class te{addToWindow(X){p.dqk.getAngularTestability=(ve,$e=!0)=>{const ut=X.findTestabilityInTree(ve,$e);if(null==ut)throw new Error("Could not find testability for element.");return ut},p.dqk.getAllAngularTestabilities=()=>X.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>X.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ve=>{const $e=p.dqk.getAllAngularTestabilities();let ut=$e.length,Ft=!1;const zn=function(Gn){Ft=Ft||Gn,ut--,0==ut&&ve(Ft)};$e.forEach(function(Gn){Gn.whenStable(zn)})})}findTestabilityInTree(X,L,ve){return null==L?null:X.getTestability(L)??(ve?(0,d.q)().isShadowRoot(L)?this.findTestabilityInTree(X,L.host,!0):this.findTestabilityInTree(X,L.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Kt=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function ir(){return new p.qLn},deps:[]},{provide:Ae,useClass:bt,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:Ae,useClass:ce,multi:!0,deps:[d.K0]},{provide:be,useClass:be,deps:[je,Pe,p.AFp]},{provide:p.FYo,useExisting:be},{provide:Te,useExisting:Pe},{provide:Pe,useClass:Pe,deps:[d.K0]},{provide:je,useClass:je,deps:[Ae,p.R0b]},{provide:d.JF,useClass:Le,deps:[]},[]];let yt=(()=>{class Q{constructor(L){}static withServerTransition(L){return{ngModule:Q,providers:[{provide:p.AFp,useValue:L.appId},{provide:ue,useExisting:p.AFp},G]}}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(tn,12))},Q.\u0275mod=p.oAB({type:Q}),Q.\u0275inj=p.cJS({providers:[...Kt,...jn],imports:[d.ez,p.hGG]}),Q})(),Nn=(()=>{class Q{constructor(L){this._doc=L}getTitle(){return this._doc.title}setTitle(L){this._doc.title=L||""}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(d.K0))},Q.\u0275prov=p.Yz7({token:Q,factory:function(L){let ve=null;return ve=L?new L:function In(){return new Nn((0,p.LFG)(d.K0))}(),ve},providedIn:"root"}),Q})();typeof window<"u"&&window;let it=(()=>{class Q{}return Q.\u0275fac=function(L){return new(L||Q)},Q.\u0275prov=p.Yz7({token:Q,factory:function(L){let ve=null;return ve=L?new(L||Q):p.LFG(Rt),ve},providedIn:"root"}),Q})(),Rt=(()=>{class Q extends it{constructor(L){super(),this._doc=L}sanitize(L,ve){if(null==ve)return null;switch(L){case p.q3G.NONE:return ve;case p.q3G.HTML:return(0,p.qzn)(ve,"HTML")?(0,p.z3N)(ve):(0,p.EiD)(this._doc,String(ve)).toString();case p.q3G.STYLE:return(0,p.qzn)(ve,"Style")?(0,p.z3N)(ve):ve;case p.q3G.SCRIPT:if((0,p.qzn)(ve,"Script"))return(0,p.z3N)(ve);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ve,"URL")?(0,p.z3N)(ve):(0,p.mCW)(String(ve));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ve,"ResourceURL"))return(0,p.z3N)(ve);throw new Error(`unsafe value used in a resource URL context (see ${p.JZr})`);default:throw new Error(`Unexpected SecurityContext ${L} (see ${p.JZr})`)}}bypassSecurityTrustHtml(L){return(0,p.JVY)(L)}bypassSecurityTrustStyle(L){return(0,p.L6k)(L)}bypassSecurityTrustScript(L){return(0,p.eBb)(L)}bypassSecurityTrustUrl(L){return(0,p.LAX)(L)}bypassSecurityTrustResourceUrl(L){return(0,p.pB0)(L)}}return Q.\u0275fac=function(L){return new(L||Q)(p.LFG(d.K0))},Q.\u0275prov=p.Yz7({token:Q,factory:function(L){let ve=null;return ve=L?new L:function Mt(Q){return new Rt(Q.get(d.K0))}(p.LFG(p.zs3)),ve},providedIn:"root"}),Q})()},6806:(nt,De,w)=>{w.d(De,{gz:()=>Mi,m2:()=>hn,F0:()=>s,rH:()=>y,Od:()=>I,Bz:()=>En,lC:()=>Zn});var d=w(4650),p=w(8996),N=w(9646),$=w(1135),K=w(6805),q=w(9841),se=w(7272),ie=w(9770),ue=w(9635),B=w(2843),G=w(9751),te=w(515),Le=w(727),Ae=w(4482),je=w(5403);function Ze(){return(0,Ae.e)((c,f)=>{let l=null;c._refCount++;const m=(0,je.x)(f,void 0,void 0,void 0,()=>{if(!c||c._refCount<=0||0<--c._refCount)return void(l=null);const b=c._connection,P=l;l=null,b&&(!P||b===P)&&b.unsubscribe(),f.unsubscribe()});c.subscribe(m),m.closed||(l=c.connect())})}class Te extends G.y{constructor(f,l){super(),this.source=f,this.subjectFactory=l,this._subject=null,this._refCount=0,this._connection=null,(0,Ae.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,f?.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new Le.w0;const l=this.getSubject();f.add(this.source.subscribe((0,je.x)(l,void 0,()=>{this._teardown(),l.complete()},m=>{this._teardown(),l.error(m)},()=>this._teardown()))),f.closed&&(this._connection=null,f=Le.w0.EMPTY)}return f}refCount(){return Ze()(this)}}var Pe=w(7579),Se=w(6895),ye=w(4004),Ce=w(3900),F=w(5698),ae=w(8675),re=w(9300),he=w(5577),Y=w(590),de=w(4351),j=w(8505),Z=w(262),be=w(5026);function fe(c){return c<=0?()=>te.E:(0,Ae.e)((f,l)=>{let m=[];f.subscribe((0,je.x)(l,b=>{m.push(b),c<m.length&&m.shift()},()=>{for(const b of m)l.next(b);l.complete()},void 0,()=>{m=null}))})}var ze=w(8068),Ke=w(6590),pt=w(4671);function Yt(c,f){const l=arguments.length>=2;return m=>m.pipe(c?(0,re.h)((b,P)=>c(b,P,m)):pt.y,fe(1),l?(0,Ke.d)(f):(0,ze.T)(()=>new K.K))}var sn=w(2529),bt=w(9718),St=w(8746),Ne=w(8189),Qe=w(1481);const ce="primary",xe=Symbol("RouteTitle");class et{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const l=this.params[f];return Array.isArray(l)?l[0]:l}return null}getAll(f){if(this.has(f)){const l=this.params[f];return Array.isArray(l)?l:[l]}return[]}get keys(){return Object.keys(this.params)}}function Pt(c){return new et(c)}function zt(c,f,l){const m=l.path.split("/");if(m.length>c.length||"full"===l.pathMatch&&(f.hasChildren()||m.length<c.length))return null;const b={};for(let P=0;P<m.length;P++){const R=m[P],we=c[P];if(R.startsWith(":"))b[R.substring(1)]=we;else if(R!==we.path)return null}return{consumed:c.slice(0,m.length),posParams:b}}function ln(c,f){const l=c?Object.keys(c):void 0,m=f?Object.keys(f):void 0;if(!l||!m||l.length!=m.length)return!1;let b;for(let P=0;P<l.length;P++)if(b=l[P],!ir(c[b],f[b]))return!1;return!0}function ir(c,f){if(Array.isArray(c)&&Array.isArray(f)){if(c.length!==f.length)return!1;const l=[...c].sort(),m=[...f].sort();return l.every((b,P)=>m[P]===b)}return c===f}function Bn(c){return Array.prototype.concat.apply([],c)}function er(c){return c.length>0?c[c.length-1]:null}function tn(c,f){for(const l in c)c.hasOwnProperty(l)&&f(c[l],l)}function jn(c){return(0,d.CqO)(c)?c:(0,d.QGY)(c)?(0,p.D)(Promise.resolve(c)):(0,N.of)(c)}const Kt=!1,yt={exact:function In(c,f,l){if(!Hn(c.segments,f.segments)||!_t(c.segments,f.segments,l)||c.numberOfChildren!==f.numberOfChildren)return!1;for(const m in f.children)if(!c.children[m]||!In(c.children[m],f.children[m],l))return!1;return!0},subset:sr},Et={exact:function or(c,f){return ln(c,f)},subset:function Nn(c,f){return Object.keys(f).length<=Object.keys(c).length&&Object.keys(f).every(l=>ir(c[l],f[l]))},ignored:()=>!0};function fn(c,f,l){return yt[l.paths](c.root,f.root,l.matrixParams)&&Et[l.queryParams](c.queryParams,f.queryParams)&&!("exact"===l.fragment&&c.fragment!==f.fragment)}function sr(c,f,l){return It(c,f,f.segments,l)}function It(c,f,l,m){if(c.segments.length>l.length){const b=c.segments.slice(0,l.length);return!(!Hn(b,l)||f.hasChildren()||!_t(b,l,m))}if(c.segments.length===l.length){if(!Hn(c.segments,l)||!_t(c.segments,l,m))return!1;for(const b in f.children)if(!c.children[b]||!sr(c.children[b],f.children[b],m))return!1;return!0}{const b=l.slice(0,c.segments.length),P=l.slice(c.segments.length);return!!(Hn(c.segments,b)&&_t(c.segments,b,m)&&c.children[ce])&&It(c.children[ce],f,P,m)}}function _t(c,f,l){return f.every((m,b)=>Et[l](c[b].parameters,m.parameters))}class lt{constructor(f=new Ct([],{}),l={},m=null){this.root=f,this.queryParams=l,this.fragment=m}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pt(this.queryParams)),this._queryParamMap}toString(){return qr.serialize(this)}}class Ct{constructor(f,l){this.segments=f,this.children=l,this.parent=null,tn(l,(m,b)=>m.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}}class mn{constructor(f,l){this.path=f,this.parameters=l}get parameterMap(){return this._parameterMap||(this._parameterMap=Pt(this.parameters)),this._parameterMap}toString(){return Ue(this)}}function Hn(c,f){return c.length===f.length&&c.every((l,m)=>l.path===f[m].path)}let mr=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:function(){return new dn},providedIn:"root"}),c})();class dn{parse(f){const l=new Xt(f);return new lt(l.parseRootSegment(),l.parseQueryParams(),l.parseFragment())}serialize(f){const l=`/${Vn(f.root,!0)}`,m=function U(c){const f=Object.keys(c).map(l=>{const m=c[l];return Array.isArray(m)?m.map(b=>`${rt(l)}=${rt(b)}`).join("&"):`${rt(l)}=${rt(m)}`}).filter(l=>!!l);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${l}${m}${"string"==typeof f.fragment?`#${function Ye(c){return encodeURI(c)}(f.fragment)}`:""}`}}const qr=new dn;function Qt(c){return c.segments.map(f=>Ue(f)).join("/")}function Vn(c,f){if(!c.hasChildren())return Qt(c);if(f){const l=c.children[ce]?Vn(c.children[ce],!1):"",m=[];return tn(c.children,(b,P)=>{P!==ce&&m.push(`${P}:${Vn(b,!1)}`)}),m.length>0?`${l}(${m.join("//")})`:l}{const l=function Mn(c,f){let l=[];return tn(c.children,(m,b)=>{b===ce&&(l=l.concat(f(m,b)))}),tn(c.children,(m,b)=>{b!==ce&&(l=l.concat(f(m,b)))}),l}(c,(m,b)=>b===ce?[Vn(c.children[ce],!1)]:[`${b}:${Vn(m,!1)}`]);return 1===Object.keys(c.children).length&&null!=c.children[ce]?`${Qt(c)}/${l[0]}`:`${Qt(c)}/(${l.join("//")})`}}function yr(c){return encodeURIComponent(c).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rt(c){return yr(c).replace(/%3B/gi,";")}function _e(c){return yr(c).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function V(c){return decodeURIComponent(c)}function J(c){return V(c.replace(/\+/g,"%20"))}function Ue(c){return`${_e(c.path)}${function k(c){return Object.keys(c).map(f=>`;${_e(f)}=${_e(c[f])}`).join("")}(c.parameters)}`}const oe=/^[^\/()?;=#]+/;function ke(c){const f=c.match(oe);return f?f[0]:""}const ge=/^[^=?&#]+/,Mt=/^[^&#]+/;class Xt{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let l={};this.peekStartsWith("/(")&&(this.capture("/"),l=this.parseParens(!0));let m={};return this.peekStartsWith("(")&&(m=this.parseParens(!1)),(f.length>0||Object.keys(l).length>0)&&(m[ce]=new Ct(f,l)),m}parseSegment(){const f=ke(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new d.vHH(4009,Kt);return this.capture(f),new mn(V(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const l=ke(this.remaining);if(!l)return;this.capture(l);let m="";if(this.consumeOptional("=")){const b=ke(this.remaining);b&&(m=b,this.capture(m))}f[V(l)]=V(m)}parseQueryParam(f){const l=function it(c){const f=c.match(ge);return f?f[0]:""}(this.remaining);if(!l)return;this.capture(l);let m="";if(this.consumeOptional("=")){const R=function Rt(c){const f=c.match(Mt);return f?f[0]:""}(this.remaining);R&&(m=R,this.capture(m))}const b=J(l),P=J(m);if(f.hasOwnProperty(b)){let R=f[b];Array.isArray(R)||(R=[R],f[b]=R),R.push(P)}else f[b]=P}parseParens(f){const l={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const m=ke(this.remaining),b=this.remaining[m.length];if("/"!==b&&")"!==b&&";"!==b)throw new d.vHH(4010,Kt);let P;m.indexOf(":")>-1?(P=m.slice(0,m.indexOf(":")),this.capture(P),this.capture(":")):f&&(P=ce);const R=this.parseChildren();l[P]=1===Object.keys(R).length?R[ce]:new Ct([],R),this.consumeOptional("//")}return l}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new d.vHH(4011,Kt)}}function Q(c){return c.segments.length>0?new Ct([],{[ce]:c}):c}function X(c){const f={};for(const m of Object.keys(c.children)){const P=X(c.children[m]);(P.segments.length>0||P.hasChildren())&&(f[m]=P)}return function L(c){if(1===c.numberOfChildren&&c.children[ce]){const f=c.children[ce];return new Ct(c.segments.concat(f.segments),f.children)}return c}(new Ct(c.segments,f))}function ve(c){return c instanceof lt}function Gn(c,f,l,m,b){if(0===l.length)return si(f.root,f.root,f.root,m,b);const P=function io(c){if("string"==typeof c[0]&&1===c.length&&"/"===c[0])return new ho(!0,0,c);let f=0,l=!1;const m=c.reduce((b,P,R)=>{if("object"==typeof P&&null!=P){if(P.outlets){const we={};return tn(P.outlets,(qe,ft)=>{we[ft]="string"==typeof qe?qe.split("/"):qe}),[...b,{outlets:we}]}if(P.segmentPath)return[...b,P.segmentPath]}return"string"!=typeof P?[...b,P]:0===R?(P.split("/").forEach((we,qe)=>{0==qe&&"."===we||(0==qe&&""===we?l=!0:".."===we?f++:""!=we&&b.push(we))}),b):[...b,P]},[]);return new ho(l,f,m)}(l);return P.toRoot()?si(f.root,f.root,new Ct([],{}),m,b):function R(qe){const ft=function cn(c,f,l,m){if(c.isAbsolute)return new zr(f.root,!0,0);if(-1===m)return new zr(l,l===f.root,0);return function An(c,f,l){let m=c,b=f,P=l;for(;P>b;){if(P-=b,m=m.parent,!m)throw new d.vHH(4005,!1);b=m.segments.length}return new zr(m,!1,b-P)}(l,m+(Cr(c.commands[0])?0:1),c.numberOfDoubleDots)}(P,f,c.snapshot?._urlSegment,qe),vt=ft.processChildren?Qn(ft.segmentGroup,ft.index,P.commands):Wn(ft.segmentGroup,ft.index,P.commands);return si(f.root,ft.segmentGroup,vt,m,b)}(c.snapshot?._lastPathIndex)}function Cr(c){return"object"==typeof c&&null!=c&&!c.outlets&&!c.segmentPath}function Cn(c){return"object"==typeof c&&null!=c&&c.outlets}function si(c,f,l,m,b){let R,P={};m&&tn(m,(qe,ft)=>{P[ft]=Array.isArray(qe)?qe.map(vt=>`${vt}`):`${qe}`}),R=c===f?l:hi(c,f,l);const we=Q(X(R));return new lt(we,P,b)}function hi(c,f,l){const m={};return tn(c.children,(b,P)=>{m[P]=b===f?l:hi(b,f,l)}),new Ct(c.segments,m)}class ho{constructor(f,l,m){if(this.isAbsolute=f,this.numberOfDoubleDots=l,this.commands=m,f&&m.length>0&&Cr(m[0]))throw new d.vHH(4003,!1);const b=m.find(Cn);if(b&&b!==er(m))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zr{constructor(f,l,m){this.segmentGroup=f,this.processChildren=l,this.index=m}}function Wn(c,f,l){if(c||(c=new Ct([],{})),0===c.segments.length&&c.hasChildren())return Qn(c,f,l);const m=function Nr(c,f,l){let m=0,b=f;const P={match:!1,pathIndex:0,commandIndex:0};for(;b<c.segments.length;){if(m>=l.length)return P;const R=c.segments[b],we=l[m];if(Cn(we))break;const qe=`${we}`,ft=m<l.length-1?l[m+1]:null;if(b>0&&void 0===qe)break;if(qe&&ft&&"object"==typeof ft&&void 0===ft.outlets){if(!lr(qe,ft,R))return P;m+=2}else{if(!lr(qe,{},R))return P;m++}b++}return{match:!0,pathIndex:b,commandIndex:m}}(c,f,l),b=l.slice(m.commandIndex);if(m.match&&m.pathIndex<c.segments.length){const P=new Ct(c.segments.slice(0,m.pathIndex),{});return P.children[ce]=new Ct(c.segments.slice(m.pathIndex),c.children),Qn(P,0,b)}return m.match&&0===b.length?new Ct(c.segments,{}):m.match&&!c.hasChildren()?ct(c,f,l):m.match?Qn(c,0,b):ct(c,f,l)}function Qn(c,f,l){if(0===l.length)return new Ct(c.segments,{});{const m=function ar(c){return Cn(c[0])?c[0].outlets:{[ce]:c}}(l),b={};return tn(m,(P,R)=>{"string"==typeof P&&(P=[P]),null!==P&&(b[R]=Wn(c.children[R],f,P))}),tn(c.children,(P,R)=>{void 0===m[R]&&(b[R]=P)}),new Ct(c.segments,b)}}function ct(c,f,l){const m=c.segments.slice(0,f);let b=0;for(;b<l.length;){const P=l[b];if(Cn(P)){const qe=xt(P.outlets);return new Ct(m,qe)}if(0===b&&Cr(l[0])){m.push(new mn(c.segments[f].path,Fn(l[0]))),b++;continue}const R=Cn(P)?P.outlets[ce]:`${P}`,we=b<l.length-1?l[b+1]:null;R&&we&&Cr(we)?(m.push(new mn(R,Fn(we))),b+=2):(m.push(new mn(R,{})),b++)}return new Ct(m,{})}function xt(c){const f={};return tn(c,(l,m)=>{"string"==typeof l&&(l=[l]),null!==l&&(f[m]=ct(new Ct([],{}),0,l))}),f}function Fn(c){const f={};return tn(c,(l,m)=>f[m]=`${l}`),f}function lr(c,f,l){return c==l.path&&ln(f,l.parameters)}const br="imperative";class wn{constructor(f,l){this.id=f,this.url=l}}class wr extends wn{constructor(f,l,m="imperative",b=null){super(f,l),this.type=0,this.navigationTrigger=m,this.restoredState=b}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class hn extends wn{constructor(f,l,m){super(f,l),this.urlAfterRedirects=m,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Jr extends wn{constructor(f,l,m,b){super(f,l),this.reason=m,this.code=b,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class kr extends wn{constructor(f,l,m,b){super(f,l),this.reason=m,this.code=b,this.type=16}}class Ht extends wn{constructor(f,l,m,b){super(f,l),this.error=m,this.target=b,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends wn{constructor(f,l,m,b){super(f,l),this.urlAfterRedirects=m,this.state=b,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Si extends wn{constructor(f,l,m,b){super(f,l),this.urlAfterRedirects=m,this.state=b,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi extends wn{constructor(f,l,m,b,P){super(f,l),this.urlAfterRedirects=m,this.state=b,this.shouldActivate=P,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kn extends wn{constructor(f,l,m,b){super(f,l),this.urlAfterRedirects=m,this.state=b,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends wn{constructor(f,l,m,b){super(f,l),this.urlAfterRedirects=m,this.state=b,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi{constructor(f){this.route=f,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pi{constructor(f){this.route=f,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vr{constructor(f){this.snapshot=f,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gi{constructor(f){this.snapshot=f,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $i{constructor(f){this.snapshot=f,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tn{constructor(f){this.snapshot=f,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nr{constructor(f,l,m){this.routerEvent=f,this.position=l,this.anchor=m,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Tr=(()=>{class c{createUrlTree(l,m,b,P,R,we){return Gn(l||m.root,b,P,R,we)}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac}),c})(),rr=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:function(f){return Tr.\u0275fac(f)},providedIn:"root"}),c})();class ur{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const l=this.pathFromRoot(f);return l.length>1?l[l.length-2]:null}children(f){const l=po(f,this._root);return l?l.children.map(m=>m.value):[]}firstChild(f){const l=po(f,this._root);return l&&l.children.length>0?l.children[0].value:null}siblings(f){const l=dr(f,this._root);return l.length<2?[]:l[l.length-2].children.map(b=>b.value).filter(b=>b!==f)}pathFromRoot(f){return dr(f,this._root).map(l=>l.value)}}function po(c,f){if(c===f.value)return f;for(const l of f.children){const m=po(c,l);if(m)return m}return null}function dr(c,f){if(c===f.value)return[f];for(const l of f.children){const m=dr(c,l);if(m.length)return m.unshift(f),m}return[]}class Ln{constructor(f,l){this.value=f,this.children=l}toString(){return`TreeNode(${this.value})`}}function Xr(c){const f={};return c&&c.children.forEach(l=>f[l.value.outlet]=l),f}class Vi extends ur{constructor(f,l){super(f),this.snapshot=l,Wi(this,f)}toString(){return this.snapshot.toString()}}function zi(c,f){const l=function Sr(c,f){const R=new Ai([],{},{},"",{},ce,f,null,c.root,-1,{});return new Gi("",new Ln(R,[]))}(c,f),m=new $.X([new mn("",{})]),b=new $.X({}),P=new $.X({}),R=new $.X({}),we=new $.X(""),qe=new Mi(m,b,R,we,P,ce,f,l.root);return qe.snapshot=l.root,new Vi(new Ln(qe,[]),l)}class Mi{constructor(f,l,m,b,P,R,we,qe){this.url=f,this.params=l,this.queryParams=m,this.fragment=b,this.data=P,this.outlet=R,this.component=we,this.title=this.data?.pipe((0,ye.U)(ft=>ft[xe]))??(0,N.of)(void 0),this._futureSnapshot=qe}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,ye.U)(f=>Pt(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ye.U)(f=>Pt(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function go(c,f="emptyOnly"){const l=c.pathFromRoot;let m=0;if("always"!==f)for(m=l.length-1;m>=1;){const b=l[m],P=l[m-1];if(b.routeConfig&&""===b.routeConfig.path)m--;else{if(P.component)break;m--}}return function Ir(c){return c.reduce((f,l)=>({params:{...f.params,...l.params},data:{...f.data,...l.data},resolve:{...l.data,...f.resolve,...l.routeConfig?.data,...l._resolvedData}}),{params:{},data:{},resolve:{}})}(l.slice(m))}class Ai{get title(){return this.data?.[xe]}constructor(f,l,m,b,P,R,we,qe,ft,vt,un){this.url=f,this.params=l,this.queryParams=m,this.fragment=b,this.data=P,this.outlet=R,this.component=we,this.routeConfig=qe,this._urlSegment=ft,this._lastPathIndex=vt,this._resolve=un}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=Pt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Pt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(m=>m.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gi extends ur{constructor(f,l){super(l),this.url=f,Wi(this,l)}toString(){return mo(this._root)}}function Wi(c,f){f.value._routerState=c,f.children.forEach(l=>Wi(c,l))}function mo(c){const f=c.children.length>0?` { ${c.children.map(mo).join(", ")} } `:"";return`${c.value}${f}`}function yo(c){if(c.snapshot){const f=c.snapshot,l=c._futureSnapshot;c.snapshot=l,ln(f.queryParams,l.queryParams)||c.queryParams.next(l.queryParams),f.fragment!==l.fragment&&c.fragment.next(l.fragment),ln(f.params,l.params)||c.params.next(l.params),function an(c,f){if(c.length!==f.length)return!1;for(let l=0;l<c.length;++l)if(!ln(c[l],f[l]))return!1;return!0}(f.url,l.url)||c.url.next(l.url),ln(f.data,l.data)||c.data.next(l.data)}else c.snapshot=c._futureSnapshot,c.data.next(c._futureSnapshot.data)}function Io(c,f){const l=ln(c.params,f.params)&&function kn(c,f){return Hn(c,f)&&c.every((l,m)=>ln(l.parameters,f[m].parameters))}(c.url,f.url);return l&&!(!c.parent!=!f.parent)&&(!c.parent||Io(c.parent,f.parent))}function Pi(c,f,l){if(l&&c.shouldReuseRoute(f.value,l.value.snapshot)){const m=l.value;m._futureSnapshot=f.value;const b=function ei(c,f,l){return f.children.map(m=>{for(const b of l.children)if(c.shouldReuseRoute(m.value,b.value.snapshot))return Pi(c,m,b);return Pi(c,m)})}(c,f,l);return new Ln(m,b)}{if(c.shouldAttach(f.value)){const P=c.retrieve(f.value);if(null!==P){const R=P.route;return R.value._futureSnapshot=f.value,R.children=f.children.map(we=>Pi(c,we)),R}}const m=function le(c){return new Mi(new $.X(c.url),new $.X(c.params),new $.X(c.queryParams),new $.X(c.fragment),new $.X(c.data),c.outlet,c.component,c)}(f.value),b=f.children.map(P=>Pi(c,P));return new Ln(m,b)}}const pe="ngNavigationCancelingError";function Ie(c,f){const{redirectTo:l,navigationBehaviorOptions:m}=ve(f)?{redirectTo:f,navigationBehaviorOptions:void 0}:f,b=Ve(!1,0,f);return b.url=l,b.navigationBehaviorOptions=m,b}function Ve(c,f,l){const m=new Error("NavigationCancelingError: "+(c||""));return m[pe]=!0,m.cancellationCode=f,l&&(m.url=l),m}function Xe(c){return at(c)&&ve(c.url)}function at(c){return c&&c[pe]}class Ot{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Pn,this.attachRef=null}}let Pn=(()=>{class c{constructor(){this.contexts=new Map}onChildOutletCreated(l,m){const b=this.getOrCreateContext(l);b.outlet=m,this.contexts.set(l,b)}onChildOutletDestroyed(l){const m=this.getContext(l);m&&(m.outlet=null,m.attachRef=null)}onOutletDeactivated(){const l=this.contexts;return this.contexts=new Map,l}onOutletReAttached(l){this.contexts=l}getOrCreateContext(l){let m=this.getContext(l);return m||(m=new Ot,this.contexts.set(l,m)),m}getContext(l){return this.contexts.get(l)||null}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const $t=!1;let Zn=(()=>{class c{constructor(){this.activated=null,this._activatedRoute=null,this.name=ce,this.activateEvents=new d.vpe,this.deactivateEvents=new d.vpe,this.attachEvents=new d.vpe,this.detachEvents=new d.vpe,this.parentContexts=(0,d.f3M)(Pn),this.location=(0,d.f3M)(d.s_b),this.changeDetector=(0,d.f3M)(d.sBO),this.environmentInjector=(0,d.f3M)(d.lqb)}ngOnChanges(l){if(l.name){const{firstChange:m,previousValue:b}=l.name;if(m)return;this.isTrackedInParentContexts(b)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(b)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(l){return this.parentContexts.getContext(l)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const l=this.parentContexts.getContext(this.name);l?.route&&(l.attachRef?this.attach(l.attachRef,l.route):this.activateWith(l.route,l.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.vHH(4012,$t);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.vHH(4012,$t);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.vHH(4012,$t);this.location.detach();const l=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(l.instance),l}attach(l,m){this.activated=l,this._activatedRoute=m,this.location.insert(l.hostView),this.attachEvents.emit(l.instance)}deactivate(){if(this.activated){const l=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,m){if(this.isActivated)throw new d.vHH(4013,$t);this._activatedRoute=l;const b=this.location,R=l.snapshot.component,we=this.parentContexts.getOrCreateContext(this.name).children,qe=new Mr(l,we,b.injector);if(m&&function Oi(c){return!!c.resolveComponentFactory}(m)){const ft=m.resolveComponentFactory(R);this.activated=b.createComponent(ft,b.length,qe)}else this.activated=b.createComponent(R,{index:b.length,injector:qe,environmentInjector:m??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275dir=d.lG2({type:c,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.TTD]}),c})();class Mr{constructor(f,l,m){this.route=f,this.childContexts=l,this.parent=m}get(f,l){return f===Mi?this.route:f===Pn?this.childContexts:this.parent.get(f,l)}}let ai=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275cmp=d.Xpm({type:c,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(l,m){1&l&&d._UZ(0,"router-outlet")},dependencies:[Zn],encapsulation:2}),c})();function li(c,f){return c.providers&&!c._injector&&(c._injector=(0,d.MMx)(c.providers,f,`Route: ${c.path}`)),c._injector??f}function ni(c){const f=c.children&&c.children.map(ni),l=f?{...c,children:f}:{...c};return!l.component&&!l.loadComponent&&(f||l.loadChildren)&&l.outlet&&l.outlet!==ce&&(l.component=ai),l}function yn(c){return c.outlet||ce}function Mo(c,f){const l=c.filter(m=>yn(m)===f);return l.push(...c.filter(m=>yn(m)!==f)),l}function Wr(c){if(!c)return null;if(c.routeConfig?._injector)return c.routeConfig._injector;for(let f=c.parent;f;f=f.parent){const l=f.routeConfig;if(l?._loadedInjector)return l._loadedInjector;if(l?._injector)return l._injector}return null}class ao{constructor(f,l,m,b){this.routeReuseStrategy=f,this.futureState=l,this.currState=m,this.forwardEvent=b}activate(f){const l=this.futureState._root,m=this.currState?this.currState._root:null;this.deactivateChildRoutes(l,m,f),yo(this.futureState.root),this.activateChildRoutes(l,m,f)}deactivateChildRoutes(f,l,m){const b=Xr(l);f.children.forEach(P=>{const R=P.value.outlet;this.deactivateRoutes(P,b[R],m),delete b[R]}),tn(b,(P,R)=>{this.deactivateRouteAndItsChildren(P,m)})}deactivateRoutes(f,l,m){const b=f.value,P=l?l.value:null;if(b===P)if(b.component){const R=m.getContext(b.outlet);R&&this.deactivateChildRoutes(f,l,R.children)}else this.deactivateChildRoutes(f,l,m);else P&&this.deactivateRouteAndItsChildren(l,m)}deactivateRouteAndItsChildren(f,l){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,l):this.deactivateRouteAndOutlet(f,l)}detachAndStoreRouteSubtree(f,l){const m=l.getContext(f.value.outlet),b=m&&f.value.component?m.children:l,P=Xr(f);for(const R of Object.keys(P))this.deactivateRouteAndItsChildren(P[R],b);if(m&&m.outlet){const R=m.outlet.detach(),we=m.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:R,route:f,contexts:we})}}deactivateRouteAndOutlet(f,l){const m=l.getContext(f.value.outlet),b=m&&f.value.component?m.children:l,P=Xr(f);for(const R of Object.keys(P))this.deactivateRouteAndItsChildren(P[R],b);m&&m.outlet&&(m.outlet.deactivate(),m.children.onOutletDeactivated(),m.attachRef=null,m.resolver=null,m.route=null)}activateChildRoutes(f,l,m){const b=Xr(l);f.children.forEach(P=>{this.activateRoutes(P,b[P.value.outlet],m),this.forwardEvent(new Tn(P.value.snapshot))}),f.children.length&&this.forwardEvent(new gi(f.value.snapshot))}activateRoutes(f,l,m){const b=f.value,P=l?l.value:null;if(yo(b),b===P)if(b.component){const R=m.getOrCreateContext(b.outlet);this.activateChildRoutes(f,l,R.children)}else this.activateChildRoutes(f,l,m);else if(b.component){const R=m.getOrCreateContext(b.outlet);if(this.routeReuseStrategy.shouldAttach(b.snapshot)){const we=this.routeReuseStrategy.retrieve(b.snapshot);this.routeReuseStrategy.store(b.snapshot,null),R.children.onOutletReAttached(we.contexts),R.attachRef=we.componentRef,R.route=we.route.value,R.outlet&&R.outlet.attach(we.componentRef,we.route.value),yo(we.route.value),this.activateChildRoutes(f,null,R.children)}else{const we=Wr(b.snapshot),qe=we?.get(d._Vd)??null;R.attachRef=null,R.route=b,R.resolver=qe,R.injector=we,R.outlet&&R.outlet.activateWith(b,R.injector),this.activateChildRoutes(f,null,R.children)}}else this.activateChildRoutes(f,null,m)}}class Zi{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class Kr{constructor(f,l){this.component=f,this.route=l}}function Ar(c,f,l){const m=c._root;return Ao(m,f?f._root:null,l,[m.value])}function Di(c,f){const l=Symbol(),m=f.get(c,l);return m===l?"function"!=typeof c||(0,d.Z0I)(c)?f.get(c):c:m}function Ao(c,f,l,m,b={canDeactivateChecks:[],canActivateChecks:[]}){const P=Xr(f);return c.children.forEach(R=>{(function ui(c,f,l,m,b={canDeactivateChecks:[],canActivateChecks:[]}){const P=c.value,R=f?f.value:null,we=l?l.getContext(c.value.outlet):null;if(R&&P.routeConfig===R.routeConfig){const qe=function Xo(c,f,l){if("function"==typeof l)return l(c,f);switch(l){case"pathParamsChange":return!Hn(c.url,f.url);case"pathParamsOrQueryParamsChange":return!Hn(c.url,f.url)||!ln(c.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Io(c,f)||!ln(c.queryParams,f.queryParams);default:return!Io(c,f)}}(R,P,P.routeConfig.runGuardsAndResolvers);qe?b.canActivateChecks.push(new Zi(m)):(P.data=R.data,P._resolvedData=R._resolvedData),Ao(c,f,P.component?we?we.children:null:l,m,b),qe&&we&&we.outlet&&we.outlet.isActivated&&b.canDeactivateChecks.push(new Kr(we.outlet.component,R))}else R&&Ei(f,we,b),b.canActivateChecks.push(new Zi(m)),Ao(c,null,P.component?we?we.children:null:l,m,b)})(R,P[R.value.outlet],l,m.concat([R.value]),b),delete P[R.value.outlet]}),tn(P,(R,we)=>Ei(R,l.getContext(we),b)),b}function Ei(c,f,l){const m=Xr(c),b=c.value;tn(m,(P,R)=>{Ei(P,b.component?f?f.children.getContext(R):null:f,l)}),l.canDeactivateChecks.push(new Kr(b.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,b))}function Nt(c){return"function"==typeof c}function He(c){return c instanceof K.K||"EmptyError"===c?.name}const en=Symbol("INITIAL_VALUE");function Yi(){return(0,Ce.w)(c=>(0,q.a)(c.map(f=>f.pipe((0,F.q)(1),(0,ae.O)(en)))).pipe((0,ye.U)(f=>{for(const l of f)if(!0!==l){if(l===en)return en;if(!1===l||l instanceof lt)return l}return!0}),(0,re.h)(f=>f!==en),(0,F.q)(1)))}function Qi(c){return(0,ue.z)((0,j.b)(f=>{if(ve(f))throw Ie(0,f)}),(0,ye.U)(f=>!0===f))}const On={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ci(c,f,l,m,b){const P=Br(c,f,l);return P.matched?function Dr(c,f,l,m){const b=f.canMatch;if(!b||0===b.length)return(0,N.of)(!0);const P=b.map(R=>{const we=Di(R,c);return jn(function ts(c){return c&&Nt(c.canMatch)}(we)?we.canMatch(f,l):c.runInContext(()=>we(f,l)))});return(0,N.of)(P).pipe(Yi(),Qi())}(m=li(f,m),f,l).pipe((0,ye.U)(R=>!0===R?P:{...On})):(0,N.of)(P)}function Br(c,f,l){if(""===f.path)return"full"===f.pathMatch&&(c.hasChildren()||l.length>0)?{...On}:{matched:!0,consumedSegments:[],remainingSegments:l,parameters:{},positionalParamSegments:{}};const b=(f.matcher||zt)(l,c,f);if(!b)return{...On};const P={};tn(b.posParams,(we,qe)=>{P[qe]=we.path});const R=b.consumed.length>0?{...P,...b.consumed[b.consumed.length-1].parameters}:P;return{matched:!0,consumedSegments:b.consumed,remainingSegments:l.slice(b.consumed.length),parameters:R,positionalParamSegments:b.posParams??{}}}function Ur(c,f,l,m){if(l.length>0&&function xo(c,f,l){return l.some(m=>lo(c,f,m)&&yn(m)!==ce)}(c,l,m)){const P=new Ct(f,function Do(c,f,l,m){const b={};b[ce]=m,m._sourceSegment=c,m._segmentIndexShift=f.length;for(const P of l)if(""===P.path&&yn(P)!==ce){const R=new Ct([],{});R._sourceSegment=c,R._segmentIndexShift=f.length,b[yn(P)]=R}return b}(c,f,m,new Ct(l,c.children)));return P._sourceSegment=c,P._segmentIndexShift=f.length,{segmentGroup:P,slicedSegments:[]}}if(0===l.length&&function rs(c,f,l){return l.some(m=>lo(c,f,m))}(c,l,m)){const P=new Ct(c.segments,function ns(c,f,l,m,b){const P={};for(const R of m)if(lo(c,l,R)&&!b[yn(R)]){const we=new Ct([],{});we._sourceSegment=c,we._segmentIndexShift=f.length,P[yn(R)]=we}return{...b,...P}}(c,f,l,m,c.children));return P._sourceSegment=c,P._segmentIndexShift=f.length,{segmentGroup:P,slicedSegments:l}}const b=new Ct(c.segments,c.children);return b._sourceSegment=c,b._segmentIndexShift=f.length,{segmentGroup:b,slicedSegments:l}}function lo(c,f,l){return(!(c.hasChildren()||f.length>0)||"full"!==l.pathMatch)&&""===l.path}function Ri(c,f,l,m){return!!(yn(c)===m||m!==ce&&lo(f,l,c))&&("**"===c.path||Br(f,c,l).matched)}function Go(c,f,l){return 0===f.length&&!c.children[l]}const xi=!1;class Ni{constructor(f){this.segmentGroup=f||null}}class uo{constructor(f){this.urlTree=f}}function qn(c){return(0,B._)(new Ni(c))}function qi(c){return(0,B._)(new uo(c))}class Es{constructor(f,l,m,b,P){this.injector=f,this.configLoader=l,this.urlSerializer=m,this.urlTree=b,this.config=P,this.allowRedirects=!0}apply(){const f=Ur(this.urlTree.root,[],[],this.config).segmentGroup,l=new Ct(f.segments,f.children);return this.expandSegmentGroup(this.injector,this.config,l,ce).pipe((0,ye.U)(P=>this.createUrlTree(X(P),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Z.K)(P=>{if(P instanceof uo)return this.allowRedirects=!1,this.match(P.urlTree);throw P instanceof Ni?this.noMatchError(P):P}))}match(f){return this.expandSegmentGroup(this.injector,this.config,f.root,ce).pipe((0,ye.U)(b=>this.createUrlTree(X(b),f.queryParams,f.fragment))).pipe((0,Z.K)(b=>{throw b instanceof Ni?this.noMatchError(b):b}))}noMatchError(f){return new d.vHH(4002,xi)}createUrlTree(f,l,m){const b=Q(f);return new lt(b,l,m)}expandSegmentGroup(f,l,m,b){return 0===m.segments.length&&m.hasChildren()?this.expandChildren(f,l,m).pipe((0,ye.U)(P=>new Ct([],P))):this.expandSegment(f,m,l,m.segments,b,!0)}expandChildren(f,l,m){const b=[];for(const P of Object.keys(m.children))"primary"===P?b.unshift(P):b.push(P);return(0,p.D)(b).pipe((0,de.b)(P=>{const R=m.children[P],we=Mo(l,P);return this.expandSegmentGroup(f,we,R,P).pipe((0,ye.U)(qe=>({segment:qe,outlet:P})))}),(0,be.R)((P,R)=>(P[R.outlet]=R.segment,P),{}),Yt())}expandSegment(f,l,m,b,P,R){return(0,p.D)(m).pipe((0,de.b)(we=>this.expandSegmentAgainstRoute(f,l,m,we,b,P,R).pipe((0,Z.K)(ft=>{if(ft instanceof Ni)return(0,N.of)(null);throw ft}))),(0,Y.P)(we=>!!we),(0,Z.K)((we,qe)=>{if(He(we))return Go(l,b,P)?(0,N.of)(new Ct([],{})):qn(l);throw we}))}expandSegmentAgainstRoute(f,l,m,b,P,R,we){return Ri(b,l,P,R)?void 0===b.redirectTo?this.matchSegmentAgainstRoute(f,l,b,P,R):we&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,l,m,b,P,R):qn(l):qn(l)}expandSegmentAgainstRouteUsingRedirect(f,l,m,b,P,R){return"**"===b.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,m,b,R):this.expandRegularSegmentAgainstRouteUsingRedirect(f,l,m,b,P,R)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,l,m,b){const P=this.applyRedirectCommands([],m.redirectTo,{});return m.redirectTo.startsWith("/")?qi(P):this.lineralizeSegments(m,P).pipe((0,he.z)(R=>{const we=new Ct(R,{});return this.expandSegment(f,we,l,R,b,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,l,m,b,P,R){const{matched:we,consumedSegments:qe,remainingSegments:ft,positionalParamSegments:vt}=Br(l,b,P);if(!we)return qn(l);const un=this.applyRedirectCommands(qe,b.redirectTo,vt);return b.redirectTo.startsWith("/")?qi(un):this.lineralizeSegments(b,un).pipe((0,he.z)($r=>this.expandSegment(f,l,m,$r.concat(ft),R,!1)))}matchSegmentAgainstRoute(f,l,m,b,P){return"**"===m.path?(f=li(m,f),m.loadChildren?(m._loadedRoutes?(0,N.of)({routes:m._loadedRoutes,injector:m._loadedInjector}):this.configLoader.loadChildren(f,m)).pipe((0,ye.U)(we=>(m._loadedRoutes=we.routes,m._loadedInjector=we.injector,new Ct(b,{})))):(0,N.of)(new Ct(b,{}))):Ci(l,m,b,f).pipe((0,Ce.w)(({matched:R,consumedSegments:we,remainingSegments:qe})=>R?this.getChildConfig(f=m._injector??f,m,b).pipe((0,he.z)(vt=>{const un=vt.injector??f,$r=vt.routes,{segmentGroup:wo,slicedSegments:To}=Ur(l,we,qe,$r),bi=new Ct(wo.segments,wo.children);if(0===To.length&&bi.hasChildren())return this.expandChildren(un,$r,bi).pipe((0,ye.U)(rl=>new Ct(we,rl)));if(0===$r.length&&0===To.length)return(0,N.of)(new Ct(we,{}));const no=yn(m)===P;return this.expandSegment(un,bi,$r,To,no?ce:P,!0).pipe((0,ye.U)(ra=>new Ct(we.concat(ra.segments),ra.children)))})):qn(l)))}getChildConfig(f,l,m){return l.children?(0,N.of)({routes:l.children,injector:f}):l.loadChildren?void 0!==l._loadedRoutes?(0,N.of)({routes:l._loadedRoutes,injector:l._loadedInjector}):function Ds(c,f,l,m){const b=f.canLoad;if(void 0===b||0===b.length)return(0,N.of)(!0);const P=b.map(R=>{const we=Di(R,c);return jn(function es(c){return c&&Nt(c.canLoad)}(we)?we.canLoad(f,l):c.runInContext(()=>we(f,l)))});return(0,N.of)(P).pipe(Yi(),Qi())}(f,l,m).pipe((0,he.z)(b=>b?this.configLoader.loadChildren(f,l).pipe((0,j.b)(P=>{l._loadedRoutes=P.routes,l._loadedInjector=P.injector})):function ks(c){return(0,B._)(Ve(xi,3))}())):(0,N.of)({routes:[],injector:f})}lineralizeSegments(f,l){let m=[],b=l.root;for(;;){if(m=m.concat(b.segments),0===b.numberOfChildren)return(0,N.of)(m);if(b.numberOfChildren>1||!b.children[ce])return(0,B._)(new d.vHH(4e3,xi));b=b.children[ce]}}applyRedirectCommands(f,l,m){return this.applyRedirectCreateUrlTree(l,this.urlSerializer.parse(l),f,m)}applyRedirectCreateUrlTree(f,l,m,b){const P=this.createSegmentGroup(f,l.root,m,b);return new lt(P,this.createQueryParams(l.queryParams,this.urlTree.queryParams),l.fragment)}createQueryParams(f,l){const m={};return tn(f,(b,P)=>{if("string"==typeof b&&b.startsWith(":")){const we=b.substring(1);m[P]=l[we]}else m[P]=b}),m}createSegmentGroup(f,l,m,b){const P=this.createSegments(f,l.segments,m,b);let R={};return tn(l.children,(we,qe)=>{R[qe]=this.createSegmentGroup(f,we,m,b)}),new Ct(P,R)}createSegments(f,l,m,b){return l.map(P=>P.path.startsWith(":")?this.findPosParam(f,P,b):this.findOrReturn(P,m))}findPosParam(f,l,m){const b=m[l.path.substring(1)];if(!b)throw new d.vHH(4001,xi);return b}findOrReturn(f,l){let m=0;for(const b of l){if(b.path===f.path)return l.splice(m),b;m++}return f}}class Pr{}class bs{constructor(f,l,m,b,P,R,we){this.injector=f,this.rootComponentType=l,this.config=m,this.urlTree=b,this.url=P,this.paramsInheritanceStrategy=R,this.urlSerializer=we}recognize(){const f=Ur(this.urlTree.root,[],[],this.config.filter(l=>void 0===l.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,f,ce).pipe((0,ye.U)(l=>{if(null===l)return null;const m=new Ai([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),b=new Ln(m,l),P=new Gi(this.url,b);return this.inheritParamsAndData(P._root),P}))}inheritParamsAndData(f){const l=f.value,m=go(l,this.paramsInheritanceStrategy);l.params=Object.freeze(m.params),l.data=Object.freeze(m.data),f.children.forEach(b=>this.inheritParamsAndData(b))}processSegmentGroup(f,l,m,b){return 0===m.segments.length&&m.hasChildren()?this.processChildren(f,l,m):this.processSegment(f,l,m,m.segments,b)}processChildren(f,l,m){return(0,p.D)(Object.keys(m.children)).pipe((0,de.b)(b=>{const P=m.children[b],R=Mo(l,b);return this.processSegmentGroup(f,R,P,b)}),(0,be.R)((b,P)=>b&&P?(b.push(...P),b):null),(0,sn.o)(b=>null!==b),(0,Ke.d)(null),Yt(),(0,ye.U)(b=>{if(null===b)return null;const P=Ts(b);return function is(c){c.sort((f,l)=>f.value.outlet===ce?-1:l.value.outlet===ce?1:f.value.outlet.localeCompare(l.value.outlet))}(P),P}))}processSegment(f,l,m,b,P){return(0,p.D)(l).pipe((0,de.b)(R=>this.processSegmentAgainstRoute(R._injector??f,R,m,b,P)),(0,Y.P)(R=>!!R),(0,Z.K)(R=>{if(He(R))return Go(m,b,P)?(0,N.of)([]):(0,N.of)(null);throw R}))}processSegmentAgainstRoute(f,l,m,b,P){if(l.redirectTo||!Ri(l,m,b,P))return(0,N.of)(null);let R;if("**"===l.path){const we=b.length>0?er(b).parameters:{},qe=g(m)+b.length,ft=new Ai(b,we,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,v(l),yn(l),l.component??l._loadedComponent??null,l,Eo(m),qe,M(l));R=(0,N.of)({snapshot:ft,consumedSegments:[],remainingSegments:[]})}else R=Ci(m,l,b,f).pipe((0,ye.U)(({matched:we,consumedSegments:qe,remainingSegments:ft,parameters:vt})=>{if(!we)return null;const un=g(m)+qe.length;return{snapshot:new Ai(qe,vt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,v(l),yn(l),l.component??l._loadedComponent??null,l,Eo(m),un,M(l)),consumedSegments:qe,remainingSegments:ft}}));return R.pipe((0,Ce.w)(we=>{if(null===we)return(0,N.of)(null);const{snapshot:qe,consumedSegments:ft,remainingSegments:vt}=we;f=l._injector??f;const un=l._loadedInjector??f,$r=function pr(c){return c.children?c.children:c.loadChildren?c._loadedRoutes:[]}(l),{segmentGroup:wo,slicedSegments:To}=Ur(m,ft,vt,$r.filter(no=>void 0===no.redirectTo));if(0===To.length&&wo.hasChildren())return this.processChildren(un,$r,wo).pipe((0,ye.U)(no=>null===no?null:[new Ln(qe,no)]));if(0===$r.length&&0===To.length)return(0,N.of)([new Ln(qe,[])]);const bi=yn(l)===P;return this.processSegment(un,$r,wo,To,bi?ce:P).pipe((0,ye.U)(no=>null===no?null:[new Ln(qe,no)]))}))}}function ws(c){const f=c.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function Ts(c){const f=[],l=new Set;for(const m of c){if(!ws(m)){f.push(m);continue}const b=f.find(P=>m.value.routeConfig===P.value.routeConfig);void 0!==b?(b.children.push(...m.children),l.add(b)):f.push(m)}for(const m of l){const b=Ts(m.children);f.push(new Ln(m.value,b))}return f.filter(m=>!l.has(m))}function Eo(c){let f=c;for(;f._sourceSegment;)f=f._sourceSegment;return f}function g(c){let f=c,l=f._segmentIndexShift??0;for(;f._sourceSegment;)f=f._sourceSegment,l+=f._segmentIndexShift??0;return l-1}function v(c){return c.data||{}}function M(c){return c.resolve||{}}function vn(c){return"string"==typeof c.title||null===c.title}function qt(c){return(0,Ce.w)(f=>{const l=c(f);return l?(0,p.D)(l).pipe((0,ye.U)(()=>f)):(0,N.of)(f)})}const Yn=new d.OlP("ROUTES");let mi=(()=>{class c{constructor(l,m){this.injector=l,this.compiler=m,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(l){if(this.componentLoaders.get(l))return this.componentLoaders.get(l);if(l._loadedComponent)return(0,N.of)(l._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(l);const m=jn(l.loadComponent()).pipe((0,ye.U)(Or),(0,j.b)(P=>{this.onLoadEndListener&&this.onLoadEndListener(l),l._loadedComponent=P}),(0,St.x)(()=>{this.componentLoaders.delete(l)})),b=new Te(m,()=>new Pe.x).pipe(Ze());return this.componentLoaders.set(l,b),b}loadChildren(l,m){if(this.childrenLoaders.get(m))return this.childrenLoaders.get(m);if(m._loadedRoutes)return(0,N.of)({routes:m._loadedRoutes,injector:m._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(m);const P=this.loadModuleFactoryOrRoutes(m.loadChildren).pipe((0,ye.U)(we=>{this.onLoadEndListener&&this.onLoadEndListener(m);let qe,ft,vt=!1;Array.isArray(we)?ft=we:(qe=we.create(l).injector,ft=Bn(qe.get(Yn,[],d.XFs.Self|d.XFs.Optional)));return{routes:ft.map(ni),injector:qe}}),(0,St.x)(()=>{this.childrenLoaders.delete(m)})),R=new Te(P,()=>new Pe.x).pipe(Ze());return this.childrenLoaders.set(m,R),R}loadModuleFactoryOrRoutes(l){return jn(l()).pipe((0,ye.U)(Or),(0,he.z)(b=>b instanceof d.YKP||Array.isArray(b)?(0,N.of)(b):(0,p.D)(this.compiler.compileModuleAsync(b))))}}return c.\u0275fac=function(l){return new(l||c)(d.LFG(d.zs3),d.LFG(d.Sil))},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function Or(c){return function ri(c){return c&&"object"==typeof c&&"default"in c}(c)?c.default:c}let ki=(()=>{class c{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Pe.x,this.configLoader=(0,d.f3M)(mi),this.environmentInjector=(0,d.f3M)(d.lqb),this.urlSerializer=(0,d.f3M)(mr),this.rootContexts=(0,d.f3M)(Pn),this.navigationId=0,this.afterPreactivation=()=>(0,N.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=b=>this.events.next(new pi(b)),this.configLoader.onLoadStartListener=b=>this.events.next(new vi(b))}complete(){this.transitions?.complete()}handleNavigationRequest(l){const m=++this.navigationId;this.transitions?.next({...this.transitions.value,...l,id:m})}setupNavigations(l){return this.transitions=new $.X({id:0,targetPageId:0,currentUrlTree:l.currentUrlTree,currentRawUrl:l.currentUrlTree,extractedUrl:l.urlHandlingStrategy.extract(l.currentUrlTree),urlAfterRedirects:l.urlHandlingStrategy.extract(l.currentUrlTree),rawUrl:l.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:br,restoredState:null,currentSnapshot:l.routerState.snapshot,targetSnapshot:null,currentRouterState:l.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,re.h)(m=>0!==m.id),(0,ye.U)(m=>({...m,extractedUrl:l.urlHandlingStrategy.extract(m.rawUrl)})),(0,Ce.w)(m=>{let b=!1,P=!1;return(0,N.of)(m).pipe((0,j.b)(R=>{this.currentNavigation={id:R.id,initialUrl:R.rawUrl,extractedUrl:R.extractedUrl,trigger:R.source,extras:R.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ce.w)(R=>{const we=l.browserUrlTree.toString(),qe=!l.navigated||R.extractedUrl.toString()!==we||we!==l.currentUrlTree.toString();if(!qe&&"reload"!==(R.extras.onSameUrlNavigation??l.onSameUrlNavigation)){const vt="";return this.events.next(new kr(R.id,l.serializeUrl(m.rawUrl),vt,0)),l.rawUrlTree=R.rawUrl,R.resolve(null),te.E}if(l.urlHandlingStrategy.shouldProcessUrl(R.rawUrl))return Co(R.source)&&(l.browserUrlTree=R.extractedUrl),(0,N.of)(R).pipe((0,Ce.w)(vt=>{const un=this.transitions?.getValue();return this.events.next(new wr(vt.id,this.urlSerializer.serialize(vt.extractedUrl),vt.source,vt.restoredState)),un!==this.transitions?.getValue()?te.E:Promise.resolve(vt)}),function Cs(c,f,l,m){return(0,Ce.w)(b=>function No(c,f,l,m,b){return new Es(c,f,l,m,b).apply()}(c,f,l,b.extractedUrl,m).pipe((0,ye.U)(P=>({...b,urlAfterRedirects:P}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,l.config),(0,j.b)(vt=>{this.currentNavigation={...this.currentNavigation,finalUrl:vt.urlAfterRedirects},m.urlAfterRedirects=vt.urlAfterRedirects}),function z(c,f,l,m,b){return(0,he.z)(P=>function Un(c,f,l,m,b,P,R="emptyOnly"){return new bs(c,f,l,m,b,R,P).recognize().pipe((0,Ce.w)(we=>null===we?function Xi(c){return new G.y(f=>f.error(c))}(new Pr):(0,N.of)(we)))}(c,f,l,P.urlAfterRedirects,m.serialize(P.urlAfterRedirects),m,b).pipe((0,ye.U)(R=>({...P,targetSnapshot:R}))))}(this.environmentInjector,this.rootComponentType,l.config,this.urlSerializer,l.paramsInheritanceStrategy),(0,j.b)(vt=>{if(m.targetSnapshot=vt.targetSnapshot,"eager"===l.urlUpdateStrategy){if(!vt.extras.skipLocationChange){const $r=l.urlHandlingStrategy.merge(vt.urlAfterRedirects,vt.rawUrl);l.setBrowserUrl($r,vt)}l.browserUrlTree=vt.urlAfterRedirects}const un=new Ti(vt.id,this.urlSerializer.serialize(vt.extractedUrl),this.urlSerializer.serialize(vt.urlAfterRedirects),vt.targetSnapshot);this.events.next(un)}));if(qe&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){const{id:vt,extractedUrl:un,source:$r,restoredState:wo,extras:To}=R,bi=new wr(vt,this.urlSerializer.serialize(un),$r,wo);this.events.next(bi);const no=zi(un,this.rootComponentType).snapshot;return m={...R,targetSnapshot:no,urlAfterRedirects:un,extras:{...To,skipLocationChange:!1,replaceUrl:!1}},(0,N.of)(m)}{const vt="";return this.events.next(new kr(R.id,l.serializeUrl(m.extractedUrl),vt,1)),l.rawUrlTree=R.rawUrl,R.resolve(null),te.E}}),(0,j.b)(R=>{const we=new Si(R.id,this.urlSerializer.serialize(R.extractedUrl),this.urlSerializer.serialize(R.urlAfterRedirects),R.targetSnapshot);this.events.next(we)}),(0,ye.U)(R=>m={...R,guards:Ar(R.targetSnapshot,R.currentSnapshot,this.rootContexts)}),function $o(c,f){return(0,he.z)(l=>{const{targetSnapshot:m,currentSnapshot:b,guards:{canActivateChecks:P,canDeactivateChecks:R}}=l;return 0===R.length&&0===P.length?(0,N.of)({...l,guardsResult:!0}):function hr(c,f,l,m){return(0,p.D)(c).pipe((0,he.z)(b=>function zo(c,f,l,m,b){const P=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!P||0===P.length)return(0,N.of)(!0);const R=P.map(we=>{const qe=Wr(f)??b,ft=Di(we,qe);return jn(function Ho(c){return c&&Nt(c.canDeactivate)}(ft)?ft.canDeactivate(c,f,l,m):qe.runInContext(()=>ft(c,f,l,m))).pipe((0,Y.P)())});return(0,N.of)(R).pipe(Yi())}(b.component,b.route,l,f,m)),(0,Y.P)(b=>!0!==b,!0))}(R,m,b,c).pipe((0,he.z)(we=>we&&function vo(c){return"boolean"==typeof c}(we)?function _o(c,f,l,m){return(0,p.D)(f).pipe((0,de.b)(b=>(0,se.z)(function Lr(c,f){return null!==c&&f&&f(new vr(c)),(0,N.of)(!0)}(b.route.parent,m),function Oo(c,f){return null!==c&&f&&f(new $i(c)),(0,N.of)(!0)}(b.route,m),function Vo(c,f,l){const m=f[f.length-1],P=f.slice(0,f.length-1).reverse().map(R=>function jo(c){const f=c.routeConfig?c.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:c,guards:f}:null}(R)).filter(R=>null!==R).map(R=>(0,ie.P)(()=>{const we=R.guards.map(qe=>{const ft=Wr(R.node)??l,vt=Di(qe,ft);return jn(function Rs(c){return c&&Nt(c.canActivateChild)}(vt)?vt.canActivateChild(m,c):ft.runInContext(()=>vt(m,c))).pipe((0,Y.P)())});return(0,N.of)(we).pipe(Yi())}));return(0,N.of)(P).pipe(Yi())}(c,b.path,l),function Ro(c,f,l){const m=f.routeConfig?f.routeConfig.canActivate:null;if(!m||0===m.length)return(0,N.of)(!0);const b=m.map(P=>(0,ie.P)(()=>{const R=Wr(f)??l,we=Di(P,R);return jn(function Po(c){return c&&Nt(c.canActivate)}(we)?we.canActivate(f,c):R.runInContext(()=>we(f,c))).pipe((0,Y.P)())}));return(0,N.of)(b).pipe(Yi())}(c,b.route,l))),(0,Y.P)(b=>!0!==b,!0))}(m,P,c,f):(0,N.of)(we)),(0,ye.U)(we=>({...l,guardsResult:we})))})}(this.environmentInjector,R=>this.events.next(R)),(0,j.b)(R=>{if(m.guardsResult=R.guardsResult,ve(R.guardsResult))throw Ie(0,R.guardsResult);const we=new Hi(R.id,this.urlSerializer.serialize(R.extractedUrl),this.urlSerializer.serialize(R.urlAfterRedirects),R.targetSnapshot,!!R.guardsResult);this.events.next(we)}),(0,re.h)(R=>!!R.guardsResult||(l.restoreHistory(R),this.cancelNavigationTransition(R,"",3),!1)),qt(R=>{if(R.guards.canActivateChecks.length)return(0,N.of)(R).pipe((0,j.b)(we=>{const qe=new Kn(we.id,this.urlSerializer.serialize(we.extractedUrl),this.urlSerializer.serialize(we.urlAfterRedirects),we.targetSnapshot);this.events.next(qe)}),(0,Ce.w)(we=>{let qe=!1;return(0,N.of)(we).pipe(function Oe(c,f){return(0,he.z)(l=>{const{targetSnapshot:m,guards:{canActivateChecks:b}}=l;if(!b.length)return(0,N.of)(l);let P=0;return(0,p.D)(b).pipe((0,de.b)(R=>function Be(c,f,l,m){const b=c.routeConfig,P=c._resolve;return void 0!==b?.title&&!vn(b)&&(P[xe]=b.title),function dt(c,f,l,m){const b=function bn(c){return[...Object.keys(c),...Object.getOwnPropertySymbols(c)]}(c);if(0===b.length)return(0,N.of)({});const P={};return(0,p.D)(b).pipe((0,he.z)(R=>function gn(c,f,l,m){const b=Wr(f)??m,P=Di(c,b);return jn(P.resolve?P.resolve(f,l):b.runInContext(()=>P(f,l)))}(c[R],f,l,m).pipe((0,Y.P)(),(0,j.b)(we=>{P[R]=we}))),fe(1),(0,bt.h)(P),(0,Z.K)(R=>He(R)?te.E:(0,B._)(R)))}(P,c,f,m).pipe((0,ye.U)(R=>(c._resolvedData=R,c.data=go(c,l).resolve,b&&vn(b)&&(c.data[xe]=b.title),null)))}(R.route,m,c,f)),(0,j.b)(()=>P++),fe(1),(0,he.z)(R=>P===b.length?(0,N.of)(l):te.E))})}(l.paramsInheritanceStrategy,this.environmentInjector),(0,j.b)({next:()=>qe=!0,complete:()=>{qe||(l.restoreHistory(we),this.cancelNavigationTransition(we,"",2))}}))}),(0,j.b)(we=>{const qe=new tr(we.id,this.urlSerializer.serialize(we.extractedUrl),this.urlSerializer.serialize(we.urlAfterRedirects),we.targetSnapshot);this.events.next(qe)}))}),qt(R=>{const we=qe=>{const ft=[];qe.routeConfig?.loadComponent&&!qe.routeConfig._loadedComponent&&ft.push(this.configLoader.loadComponent(qe.routeConfig).pipe((0,j.b)(vt=>{qe.component=vt}),(0,ye.U)(()=>{})));for(const vt of qe.children)ft.push(...we(vt));return ft};return(0,q.a)(we(R.targetSnapshot.root)).pipe((0,Ke.d)(),(0,F.q)(1))}),qt(()=>this.afterPreactivation()),(0,ye.U)(R=>{const we=function vs(c,f,l){const m=Pi(c,f._root,l?l._root:void 0);return new Vi(m,f)}(l.routeReuseStrategy,R.targetSnapshot,R.currentRouterState);return m={...R,targetRouterState:we}}),(0,j.b)(R=>{l.currentUrlTree=R.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(R.urlAfterRedirects,R.rawUrl),l.routerState=R.targetRouterState,"deferred"===l.urlUpdateStrategy&&(R.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,R),l.browserUrlTree=R.urlAfterRedirects)}),((c,f,l)=>(0,ye.U)(m=>(new ao(f,m.targetRouterState,m.currentRouterState,l).activate(c),m)))(this.rootContexts,l.routeReuseStrategy,R=>this.events.next(R)),(0,j.b)({next:R=>{b=!0,this.lastSuccessfulNavigation=this.currentNavigation,l.navigated=!0,this.events.next(new hn(R.id,this.urlSerializer.serialize(R.extractedUrl),this.urlSerializer.serialize(l.currentUrlTree))),l.titleStrategy?.updateTitle(R.targetRouterState.snapshot),R.resolve(!0)},complete:()=>{b=!0}}),(0,St.x)(()=>{b||P||this.cancelNavigationTransition(m,"",1),this.currentNavigation?.id===m.id&&(this.currentNavigation=null)}),(0,Z.K)(R=>{if(P=!0,at(R)){Xe(R)||(l.navigated=!0,l.restoreHistory(m,!0));const we=new Jr(m.id,this.urlSerializer.serialize(m.extractedUrl),R.message,R.cancellationCode);if(this.events.next(we),Xe(R)){const qe=l.urlHandlingStrategy.merge(R.url,l.rawUrlTree),ft={skipLocationChange:m.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||Co(m.source)};l.scheduleNavigation(qe,br,null,ft,{resolve:m.resolve,reject:m.reject,promise:m.promise})}else m.resolve(!1)}else{l.restoreHistory(m,!0);const we=new Ht(m.id,this.urlSerializer.serialize(m.extractedUrl),R,m.targetSnapshot??void 0);this.events.next(we);try{m.resolve(l.errorHandler(R))}catch(qe){m.reject(qe)}}return te.E}))}))}cancelNavigationTransition(l,m,b){const P=new Jr(l.id,this.urlSerializer.serialize(l.extractedUrl),m,b);this.events.next(P),l.resolve(!1)}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function Co(c){return c!==br}let co=(()=>{class c{buildTitle(l){let m,b=l.root;for(;void 0!==b;)m=this.getResolvedTitleForRoute(b)??m,b=b.children.find(P=>P.outlet===ce);return m}getResolvedTitleForRoute(l){return l.data[xe]}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:function(){return(0,d.f3M)(os)},providedIn:"root"}),c})(),os=(()=>{class c extends co{constructor(l){super(),this.title=l}updateTitle(l){const m=this.buildTitle(l);void 0!==m&&this.title.setTitle(m)}}return c.\u0275fac=function(l){return new(l||c)(d.LFG(Qe.Dx))},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ss=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:function(){return(0,d.f3M)(as)},providedIn:"root"}),c})();class Wo{shouldDetach(f){return!1}store(f,l){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,l){return f.routeConfig===l.routeConfig}}let as=(()=>{class c extends Wo{}return c.\u0275fac=function(){let f;return function(m){return(f||(f=d.n5z(c)))(m||c)}}(),c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const eo=new d.OlP("",{providedIn:"root",factory:()=>({})});let ls=(()=>{class c{}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:function(){return(0,d.f3M)(Vs)},providedIn:"root"}),c})(),Vs=(()=>{class c{shouldProcessUrl(l){return!0}extract(l){return l}merge(l,m){return l}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function Bs(c){throw c}function ko(c,f,l){return f.parse("/")}const Fi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},E={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let s=(()=>{class c{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,d.f3M)(d.c2e),this.isNgZoneEnabled=!1,this.options=(0,d.f3M)(eo,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Bs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ko,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,d.f3M)(ls),this.routeReuseStrategy=(0,d.f3M)(ss),this.urlCreationStrategy=(0,d.f3M)(rr),this.titleStrategy=(0,d.f3M)(co),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Bn((0,d.f3M)(Yn,{optional:!0})??[]),this.navigationTransitions=(0,d.f3M)(ki),this.urlSerializer=(0,d.f3M)(mr),this.location=(0,d.f3M)(Se.Ye),this.isNgZoneEnabled=(0,d.f3M)(d.R0b)instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new lt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zi(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(l=>{this.lastSuccessfulId=l.id,this.currentPageId=l.targetPageId},l=>{this.console.warn(`Unhandled Navigation Error: ${l}`)})}resetRootComponentType(l){this.routerState.root.component=l,this.navigationTransitions.rootComponentType=l}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const l=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),br,l)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(l=>{const m="popstate"===l.type?"popstate":"hashchange";"popstate"===m&&setTimeout(()=>{this.navigateToSyncWithBrowser(l.url,m,l.state)},0)}))}navigateToSyncWithBrowser(l,m,b){const P={replaceUrl:!0},R=b?.navigationId?b:null;if(b){const qe={...b};delete qe.navigationId,delete qe.\u0275routerPageId,0!==Object.keys(qe).length&&(P.state=qe)}const we=this.parseUrl(l);this.scheduleNavigation(we,m,R,P)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(l){this.config=l.map(ni),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(l,m={}){const{relativeTo:b,queryParams:P,fragment:R,queryParamsHandling:we,preserveFragment:qe}=m,ft=qe?this.currentUrlTree.fragment:R;let vt=null;switch(we){case"merge":vt={...this.currentUrlTree.queryParams,...P};break;case"preserve":vt=this.currentUrlTree.queryParams;break;default:vt=P||null}return null!==vt&&(vt=this.removeEmptyProps(vt)),this.urlCreationStrategy.createUrlTree(b,this.routerState,this.currentUrlTree,l,vt,ft??null)}navigateByUrl(l,m={skipLocationChange:!1}){const b=ve(l)?l:this.parseUrl(l),P=this.urlHandlingStrategy.merge(b,this.rawUrlTree);return this.scheduleNavigation(P,br,null,m)}navigate(l,m={skipLocationChange:!1}){return function a(c){for(let f=0;f<c.length;f++){if(null==c[f])throw new d.vHH(4008,!1)}}(l),this.navigateByUrl(this.createUrlTree(l,m),m)}serializeUrl(l){return this.urlSerializer.serialize(l)}parseUrl(l){let m;try{m=this.urlSerializer.parse(l)}catch(b){m=this.malformedUriErrorHandler(b,this.urlSerializer,l)}return m}isActive(l,m){let b;if(b=!0===m?{...Fi}:!1===m?{...E}:m,ve(l))return fn(this.currentUrlTree,l,b);const P=this.parseUrl(l);return fn(this.currentUrlTree,P,b)}removeEmptyProps(l){return Object.keys(l).reduce((m,b)=>{const P=l[b];return null!=P&&(m[b]=P),m},{})}scheduleNavigation(l,m,b,P,R){if(this.disposed)return Promise.resolve(!1);let we,qe,ft,vt;return R?(we=R.resolve,qe=R.reject,ft=R.promise):ft=new Promise((un,$r)=>{we=un,qe=$r}),vt="computed"===this.canceledNavigationResolution?b&&b.\u0275routerPageId?b.\u0275routerPageId:P.replaceUrl||P.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:vt,source:m,restoredState:b,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:l,extras:P,resolve:we,reject:qe,promise:ft,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ft.catch(un=>Promise.reject(un))}setBrowserUrl(l,m){const b=this.urlSerializer.serialize(l),P={...m.extras.state,...this.generateNgRouterState(m.id,m.targetPageId)};this.location.isCurrentPathEqualTo(b)||m.extras.replaceUrl?this.location.replaceState(b,"",P):this.location.go(b,"",P)}restoreHistory(l,m=!1){if("computed"===this.canceledNavigationResolution){const b=this.currentPageId-l.targetPageId;"popstate"!==l.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===b?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===b&&(this.resetState(l),this.browserUrlTree=l.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(b)}else"replace"===this.canceledNavigationResolution&&(m&&this.resetState(l),this.resetUrlToCurrentUrlTree())}resetState(l){this.routerState=l.currentRouterState,this.currentUrlTree=l.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,l.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(l,m){return"computed"===this.canceledNavigationResolution?{navigationId:l,\u0275routerPageId:m}:{navigationId:l}}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),y=(()=>{class c{constructor(l,m,b,P,R,we){this.router=l,this.route=m,this.tabIndexAttribute=b,this.renderer=P,this.el=R,this.locationStrategy=we,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Pe.x;const qe=R.nativeElement.tagName;this.isAnchorElement="A"===qe||"AREA"===qe,this.isAnchorElement?this.subscription=l.events.subscribe(ft=>{ft instanceof hn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(l){this._preserveFragment=(0,d.D6c)(l)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(l){this._skipLocationChange=(0,d.D6c)(l)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(l){this._replaceUrl=(0,d.D6c)(l)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(l){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",l)}ngOnChanges(l){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(l){null!=l?(this.commands=Array.isArray(l)?l:[l],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(l,m,b,P,R){return!!(null===this.urlTree||this.isAnchorElement&&(0!==l||m||b||P||R||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const l=null===this.href?null:(0,d.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",l)}applyAttributeValue(l,m){const b=this.renderer,P=this.el.nativeElement;null!==m?b.setAttribute(P,l,m):b.removeAttribute(P,l)}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 c.\u0275fac=function(l){return new(l||c)(d.Y36(s),d.Y36(Mi),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(Se.S$))},c.\u0275dir=d.lG2({type:c,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(l,m){1&l&&d.NdJ("click",function(P){return m.onClick(P.button,P.ctrlKey,P.shiftKey,P.altKey,P.metaKey)}),2&l&&d.uIk("target",m.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[d.TTD]}),c})(),I=(()=>{class c{get isActive(){return this._isActive}constructor(l,m,b,P,R){this.router=l,this.element=m,this.renderer=b,this.cdr=P,this.link=R,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new d.vpe,this.routerEventsSubscription=l.events.subscribe(we=>{we instanceof hn&&this.update()})}ngAfterContentInit(){(0,N.of)(this.links.changes,(0,N.of)(null)).pipe((0,Ne.J)()).subscribe(l=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const l=[...this.links.toArray(),this.link].filter(m=>!!m).map(m=>m.onChanges);this.linkInputChangesSubscription=(0,p.D)(l).pipe((0,Ne.J)()).subscribe(m=>{this._isActive!==this.isLinkActive(this.router)(m)&&this.update()})}set routerLinkActive(l){const m=Array.isArray(l)?l:l.split(" ");this.classes=m.filter(b=>!!b)}ngOnChanges(l){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const l=this.hasActiveLinks();this._isActive!==l&&(this._isActive=l,this.cdr.markForCheck(),this.classes.forEach(m=>{l?this.renderer.addClass(this.element.nativeElement,m):this.renderer.removeClass(this.element.nativeElement,m)}),l&&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(l))})}isLinkActive(l){const m=function x(c){return!!c.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return b=>!!b.urlTree&&l.isActive(b.urlTree,m)}hasActiveLinks(){const l=this.isLinkActive(this.router);return this.link&&l(this.link)||this.links.some(l)}}return c.\u0275fac=function(l){return new(l||c)(d.Y36(s),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(y,8))},c.\u0275dir=d.lG2({type:c,selectors:[["","routerLinkActive",""]],contentQueries:function(l,m,b){if(1&l&&d.Suo(b,y,5),2&l){let P;d.iGM(P=d.CRH())&&(m.links=P)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),c})();class ne{}let Ge=(()=>{class c{constructor(l,m,b,P,R){this.router=l,this.injector=b,this.preloadingStrategy=P,this.loader=R}setUpPreloading(){this.subscription=this.router.events.pipe((0,re.h)(l=>l instanceof hn),(0,de.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(l,m){const b=[];for(const P of m){P.providers&&!P._injector&&(P._injector=(0,d.MMx)(P.providers,l,`Route: ${P.path}`));const R=P._injector??l,we=P._loadedInjector??R;P.loadChildren&&!P._loadedRoutes&&void 0===P.canLoad||P.loadComponent&&!P._loadedComponent?b.push(this.preloadConfig(R,P)):(P.children||P._loadedRoutes)&&b.push(this.processRoutes(we,P.children??P._loadedRoutes))}return(0,p.D)(b).pipe((0,Ne.J)())}preloadConfig(l,m){return this.preloadingStrategy.preload(m,()=>{let b;b=m.loadChildren&&void 0===m.canLoad?this.loader.loadChildren(l,m):(0,N.of)(null);const P=b.pipe((0,he.z)(R=>null===R?(0,N.of)(void 0):(m._loadedRoutes=R.routes,m._loadedInjector=R.injector,this.processRoutes(R.injector??l,R.routes))));if(m.loadComponent&&!m._loadedComponent){const R=this.loader.loadComponent(m);return(0,p.D)([P,R]).pipe((0,Ne.J)())}return P})}}return c.\u0275fac=function(l){return new(l||c)(d.LFG(s),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(ne),d.LFG(mi))},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const st=new d.OlP("");let mt=(()=>{class c{constructor(l,m,b,P,R={}){this.urlSerializer=l,this.transitions=m,this.viewportScroller=b,this.zone=P,this.options=R,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},R.scrollPositionRestoration=R.scrollPositionRestoration||"disabled",R.anchorScrolling=R.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(l=>{l instanceof wr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=l.navigationTrigger,this.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof hn&&(this.lastId=l.id,this.scheduleScrollEvent(l,this.urlSerializer.parse(l.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(l=>{l instanceof nr&&(l.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(l,m){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nr(l,"popstate"===this.lastSource?this.store[this.restoredId]:null,m))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return c.\u0275fac=function(l){d.$Z()},c.\u0275prov=d.Yz7({token:c,factory:c.\u0275fac}),c})();function kt(c,f){return{\u0275kind:c,\u0275providers:f}}function cr(){const c=(0,d.f3M)(d.zs3);return f=>{const l=c.get(d.z2F);if(f!==l.components[0])return;const m=c.get(s),b=c.get(ii);1===c.get(Hr)&&m.initialNavigation(),c.get(oi,null,d.XFs.Optional)?.setUpPreloading(),c.get(st,null,d.XFs.Optional)?.init(),m.resetRootComponentType(l.componentTypes[0]),b.closed||(b.next(),b.unsubscribe())}}const ii=new d.OlP("",{factory:()=>new Pe.x}),Hr=new d.OlP("",{providedIn:"root",factory:()=>1});const oi=new d.OlP("");function zs(c){return kt(0,[{provide:oi,useExisting:Ge},{provide:ne,useExisting:c}])}const Dt=new d.OlP("ROUTER_FORROOT_GUARD"),At=[Se.Ye,{provide:mr,useClass:dn},s,Pn,{provide:Mi,useFactory:function Tt(c){return c.routerState.root},deps:[s]},mi,[]];function Bt(){return new d.PXZ("Router",s)}let En=(()=>{class c{constructor(l){}static forRoot(l,m){return{ngModule:c,providers:[At,[],{provide:Yn,multi:!0,useValue:l},{provide:Dt,useFactory:bo,deps:[[s,new d.FiY,new d.tp0]]},{provide:eo,useValue:m||{}},m?.useHash?{provide:Se.S$,useClass:Se.Do}:{provide:Se.S$,useClass:Se.b0},{provide:st,useFactory:()=>{const c=(0,d.f3M)(Se.EM),f=(0,d.f3M)(d.R0b),l=(0,d.f3M)(eo),m=(0,d.f3M)(ki),b=(0,d.f3M)(mr);return l.scrollOffset&&c.setOffset(l.scrollOffset),new mt(b,m,c,f,l)}},m?.preloadingStrategy?zs(m.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:Bt},m?.initialNavigation?Jt(m):[],[{provide:Ko,useFactory:cr},{provide:d.tb,multi:!0,useExisting:Ko}]]}}static forChild(l){return{ngModule:c,providers:[{provide:Yn,multi:!0,useValue:l}]}}}return c.\u0275fac=function(l){return new(l||c)(d.LFG(Dt,8))},c.\u0275mod=d.oAB({type:c}),c.\u0275inj=d.cJS({imports:[ai]}),c})();function bo(c){return"guarded"}function Jt(c){return["disabled"===c.initialNavigation?kt(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const f=(0,d.f3M)(s);return()=>{f.setUpLocationChangeListener()}}},{provide:Hr,useValue:2}]).\u0275providers:[],"enabledBlocking"===c.initialNavigation?kt(2,[{provide:Hr,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:f=>{const l=f.get(Se.V_,Promise.resolve());return()=>l.then(()=>new Promise(b=>{const P=f.get(s),R=f.get(ii);(function m(b){f.get(s).events.pipe((0,re.h)(R=>R instanceof hn||R instanceof Jr||R instanceof Ht),(0,ye.U)(R=>R instanceof hn||R instanceof Jr&&(0===R.code||1===R.code)&&null),(0,re.h)(R=>null!==R),(0,F.q)(1)).subscribe(()=>{b()})})(()=>{b(!0)}),f.get(ki).afterPreactivation=()=>(b(!0),R.closed?(0,N.of)(void 0):R),P.initialNavigation()}))}}]).\u0275providers:[]]}const Ko=new d.OlP("")},3942:(nt,De,w)=>{w.d(De,{Z:()=>je});var d=w(2090),p=w(4859),N=w(9681),$=w(1877);class K{constructor(Te,Pe){this._delegate=Te,this.firebase=Pe,(0,N._addComponent)(Te,new p.wA("app-compat",()=>this,"PUBLIC")),this.container=Te.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Te){this._delegate.automaticDataCollectionEnabled=Te}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Te=>{this._delegate.checkDestroyed(),Te()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,N.deleteApp)(this._delegate)))}_getService(Te,Pe=N._DEFAULT_ENTRY_NAME){var Se;this._delegate.checkDestroyed();const ye=this._delegate.container.getProvider(Te);return!ye.isInitialized()&&"EXPLICIT"===(null===(Se=ye.getComponent())||void 0===Se?void 0:Se.instantiationMode)&&ye.initialize(),ye.getImmediate({identifier:Pe})}_removeServiceInstance(Te,Pe=N._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Te).clearInstance(Pe)}_addComponent(Te){(0,N._addComponent)(this._delegate,Te)}_addOrOverwriteComponent(Te){(0,N._addOrOverwriteComponent)(this._delegate,Te)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const se=new d.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."}),B=function ue(){const Ze=function ie(Ze){const Te={},Pe={__esModule:!0,initializeApp:function Ce(he,Y={}){const de=N.initializeApp(he,Y);if((0,d.r3)(Te,de.name))return Te[de.name];const j=new Ze(de,Pe);return Te[de.name]=j,j},app:ye,registerVersion:N.registerVersion,setLogLevel:N.setLogLevel,onLog:N.onLog,apps:null,SDK_VERSION:N.SDK_VERSION,INTERNAL:{registerComponent:function ae(he){const Y=he.name,de=Y.replace("-compat","");if(N._registerComponent(he)&&"PUBLIC"===he.type){const j=(Z=ye())=>{if("function"!=typeof Z[de])throw se.create("invalid-app-argument",{appName:Y});return Z[de]()};void 0!==he.serviceProps&&(0,d.ZB)(j,he.serviceProps),Pe[de]=j,Ze.prototype[de]=function(...Z){return this._getService.bind(this,Y).apply(this,he.multipleInstances?Z:[])}}return"PUBLIC"===he.type?Pe[de]:null},removeApp:function Se(he){delete Te[he]},useAsService:function re(he,Y){return"serverAuth"===Y?null:Y},modularAPIs:N}};function ye(he){if(!(0,d.r3)(Te,he=he||N._DEFAULT_ENTRY_NAME))throw se.create("no-app",{appName:he});return Te[he]}return Pe.default=Pe,Object.defineProperty(Pe,"apps",{get:function F(){return Object.keys(Te).map(he=>Te[he])}}),ye.App=Ze,Pe}(K);return Ze.INTERNAL=Object.assign(Object.assign({},Ze.INTERNAL),{createFirebaseNamespace:ue,extendNamespace:function Te(Pe){(0,d.ZB)(Ze,Pe)},createSubscribe:d.ne,ErrorFactory:d.LL,deepExtend:d.ZB}),Ze}(),G=new $.Yd("@firebase/app-compat");if((0,d.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 Ze=self.firebase.SDK_VERSION;Ze&&Ze.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 je=B;!function Ae(Ze){(0,N.registerVersion)("@firebase/app-compat","0.1.37",Ze)}()},9681:(nt,De,w)=>{w.r(De),w.d(De,{FirebaseError:()=>$.ZR,SDK_VERSION:()=>Bn,_DEFAULT_ENTRY_NAME:()=>sn,_addComponent:()=>Qe,_addOrOverwriteComponent:()=>ce,_apps:()=>St,_clearComponents:()=>zt,_components:()=>Ne,_getProvider:()=>et,_registerComponent:()=>xe,_removeServiceInstance:()=>Pt,deleteApp:()=>jn,getApp:()=>$n,getApps:()=>tn,initializeApp:()=>er,onLog:()=>Et,registerVersion:()=>yt,setLogLevel:()=>fn});var d=w(5861),p=w(4859),N=w(1877),$=w(2090),K=w(8766);class q{constructor(Ye){this.container=Ye}getPlatformInfoString(){return this.container.getProviders().map(_e=>{if(function se(rt){return"VERSION"===rt.getComponent()?.type}(_e)){const V=_e.getImmediate();return`${V.library}/${V.version}`}return null}).filter(_e=>_e).join(" ")}}const ie="@firebase/app",B=new N.Yd("@firebase/app"),sn="[DEFAULT]",bt={[ie]:"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"},St=new Map,Ne=new Map;function Qe(rt,Ye){try{rt.container.addComponent(Ye)}catch(_e){B.debug(`Component ${Ye.name} failed to register with FirebaseApp ${rt.name}`,_e)}}function ce(rt,Ye){rt.container.addOrOverwriteComponent(Ye)}function xe(rt){const Ye=rt.name;if(Ne.has(Ye))return B.debug(`There were multiple attempts to register component ${Ye}.`),!1;Ne.set(Ye,rt);for(const _e of St.values())Qe(_e,rt);return!0}function et(rt,Ye){const _e=rt.container.getProvider("heartbeat").getImmediate({optional:!0});return _e&&_e.triggerHeartbeat(),rt.container.getProvider(Ye)}function Pt(rt,Ye,_e=sn){et(rt,Ye).clearInstance(_e)}function zt(){Ne.clear()}const ln=new $.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","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.","invalid-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 ir{constructor(Ye,_e,V){this._isDeleted=!1,this._options=Object.assign({},Ye),this._config=Object.assign({},_e),this._name=_e.name,this._automaticDataCollectionEnabled=_e.automaticDataCollectionEnabled,this._container=V,this.container.addComponent(new p.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ye){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ye}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(Ye){this._isDeleted=Ye}checkDestroyed(){if(this.isDeleted)throw ln.create("app-deleted",{appName:this._name})}}const Bn="9.12.1";function er(rt,Ye={}){let _e=rt;"object"!=typeof Ye&&(Ye={name:Ye});const V=Object.assign({name:sn,automaticDataCollectionEnabled:!1},Ye),J=V.name;if("string"!=typeof J||!J)throw ln.create("bad-app-name",{appName:String(J)});if(_e||(_e=(0,$.aH)()),!_e)throw ln.create("no-options");const Ue=St.get(J);if(Ue){if((0,$.vZ)(_e,Ue.options)&&(0,$.vZ)(V,Ue.config))return Ue;throw ln.create("duplicate-app",{appName:J})}const k=new p.H0(J);for(const oe of Ne.values())k.addComponent(oe);const U=new ir(_e,V,k);return St.set(J,U),U}function $n(rt=sn){const Ye=St.get(rt);if(!Ye&&rt===sn)return er();if(!Ye)throw ln.create("no-app",{appName:rt});return Ye}function tn(){return Array.from(St.values())}function jn(rt){return Kt.apply(this,arguments)}function Kt(){return(Kt=(0,d.Z)(function*(rt){const Ye=rt.name;St.has(Ye)&&(St.delete(Ye),yield Promise.all(rt.container.getProviders().map(_e=>_e.delete())),rt.isDeleted=!0)})).apply(this,arguments)}function yt(rt,Ye,_e){var V;let J=null!==(V=bt[rt])&&void 0!==V?V:rt;_e&&(J+=`-${_e}`);const Ue=J.match(/\s|\//),k=Ye.match(/\s|\//);if(Ue||k){const U=[`Unable to register library "${J}" with version "${Ye}":`];return Ue&&U.push(`library name "${J}" contains illegal characters (whitespace or "/")`),Ue&&k&&U.push("and"),k&&U.push(`version name "${Ye}" contains illegal characters (whitespace or "/")`),void B.warn(U.join(" "))}xe(new p.wA(`${J}-version`,()=>({library:J,version:Ye}),"VERSION"))}function Et(rt,Ye){if(null!==rt&&"function"!=typeof rt)throw ln.create("invalid-log-argument");(0,N.Am)(rt,Ye)}function fn(rt){(0,N.Ub)(rt)}const Nn="firebase-heartbeat-store";let sr=null;function It(){return sr||(sr=(0,K.X3)("firebase-heartbeat-database",1,{upgrade:(rt,Ye)=>{0===Ye&&rt.createObjectStore(Nn)}}).catch(rt=>{throw ln.create("idb-open",{originalErrorMessage:rt.message})})),sr}function lt(){return(lt=(0,d.Z)(function*(rt){var Ye;try{return(yield It()).transaction(Nn).objectStore(Nn).get(kn(rt))}catch(_e){if(_e instanceof $.ZR)B.warn(_e.message);else{const V=ln.create("idb-get",{originalErrorMessage:null===(Ye=_e)||void 0===Ye?void 0:Ye.message});B.warn(V.message)}}})).apply(this,arguments)}function Ct(rt,Ye){return mn.apply(this,arguments)}function mn(){return(mn=(0,d.Z)(function*(rt,Ye){var _e;try{const J=(yield It()).transaction(Nn,"readwrite");return yield J.objectStore(Nn).put(Ye,kn(rt)),J.done}catch(V){if(V instanceof $.ZR)B.warn(V.message);else{const J=ln.create("idb-set",{originalErrorMessage:null===(_e=V)||void 0===_e?void 0:_e.message});B.warn(J.message)}}})).apply(this,arguments)}function kn(rt){return`${rt.name}!${rt.options.appId}`}class mr{constructor(Ye){this.container=Ye,this._heartbeatsCache=null;const _e=this.container.getProvider("app").getImmediate();this._storage=new Qt(_e),this._heartbeatsCachePromise=this._storage.read().then(V=>(this._heartbeatsCache=V,V))}triggerHeartbeat(){var Ye=this;return(0,d.Z)(function*(){const V=Ye.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),J=dn();if(null===Ye._heartbeatsCache&&(Ye._heartbeatsCache=yield Ye._heartbeatsCachePromise),Ye._heartbeatsCache.lastSentHeartbeatDate!==J&&!Ye._heartbeatsCache.heartbeats.some(Ue=>Ue.date===J))return Ye._heartbeatsCache.heartbeats.push({date:J,agent:V}),Ye._heartbeatsCache.heartbeats=Ye._heartbeatsCache.heartbeats.filter(Ue=>{const k=new Date(Ue.date).valueOf();return Date.now()-k<=2592e6}),Ye._storage.overwrite(Ye._heartbeatsCache)})()}getHeartbeatsHeader(){var Ye=this;return(0,d.Z)(function*(){if(null===Ye._heartbeatsCache&&(yield Ye._heartbeatsCachePromise),null===Ye._heartbeatsCache||0===Ye._heartbeatsCache.heartbeats.length)return"";const _e=dn(),{heartbeatsToSend:V,unsentEntries:J}=function qr(rt,Ye=1024){const _e=[];let V=rt.slice();for(const J of rt){const Ue=_e.find(k=>k.agent===J.agent);if(Ue){if(Ue.dates.push(J.date),Vn(_e)>Ye){Ue.dates.pop();break}}else if(_e.push({agent:J.agent,dates:[J.date]}),Vn(_e)>Ye){_e.pop();break}V=V.slice(1)}return{heartbeatsToSend:_e,unsentEntries:V}}(Ye._heartbeatsCache.heartbeats),Ue=(0,$.L)(JSON.stringify({version:2,heartbeats:V}));return Ye._heartbeatsCache.lastSentHeartbeatDate=_e,J.length>0?(Ye._heartbeatsCache.heartbeats=J,yield Ye._storage.overwrite(Ye._heartbeatsCache)):(Ye._heartbeatsCache.heartbeats=[],Ye._storage.overwrite(Ye._heartbeatsCache)),Ue})()}}function dn(){return(new Date).toISOString().substring(0,10)}class Qt{constructor(Ye){this.app=Ye,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,d.Z)(function*(){return!!(0,$.hl)()&&(0,$.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ye=this;return(0,d.Z)(function*(){return(yield Ye._canUseIndexedDBPromise)&&(yield function _t(rt){return lt.apply(this,arguments)}(Ye.app))||{heartbeats:[]}})()}overwrite(Ye){var _e=this;return(0,d.Z)(function*(){var V;if(yield _e._canUseIndexedDBPromise){const Ue=yield _e.read();return Ct(_e.app,{lastSentHeartbeatDate:null!==(V=Ye.lastSentHeartbeatDate)&&void 0!==V?V:Ue.lastSentHeartbeatDate,heartbeats:Ye.heartbeats})}})()}add(Ye){var _e=this;return(0,d.Z)(function*(){var V;if(yield _e._canUseIndexedDBPromise){const Ue=yield _e.read();return Ct(_e.app,{lastSentHeartbeatDate:null!==(V=Ye.lastSentHeartbeatDate)&&void 0!==V?V:Ue.lastSentHeartbeatDate,heartbeats:[...Ue.heartbeats,...Ye.heartbeats]})}})()}}function Vn(rt){return(0,$.L)(JSON.stringify({version:2,heartbeats:rt})).length}!function yr(rt){xe(new p.wA("platform-logger",Ye=>new q(Ye),"PRIVATE")),xe(new p.wA("heartbeat",Ye=>new mr(Ye),"PRIVATE")),yt(ie,"0.8.2",rt),yt(ie,"0.8.2","esm2017"),yt("fire-js","")}("")},4859:(nt,De,w)=>{w.d(De,{H0:()=>ie,wA:()=>N});var d=w(5861),p=w(2090);class N{constructor(B,G,te){this.name=B,this.instanceFactory=G,this.type=te,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(B){return this.instantiationMode=B,this}setMultipleInstances(B){return this.multipleInstances=B,this}setServiceProps(B){return this.serviceProps=B,this}setInstanceCreatedCallback(B){return this.onInstanceCreated=B,this}}const $="[DEFAULT]";class K{constructor(B,G){this.name=B,this.container=G,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(B){const G=this.normalizeInstanceIdentifier(B);if(!this.instancesDeferred.has(G)){const te=new p.BH;if(this.instancesDeferred.set(G,te),this.isInitialized(G)||this.shouldAutoInitialize())try{const Le=this.getOrInitializeService({instanceIdentifier:G});Le&&te.resolve(Le)}catch{}}return this.instancesDeferred.get(G).promise}getImmediate(B){var G;const te=this.normalizeInstanceIdentifier(B?.identifier),Le=null!==(G=B?.optional)&&void 0!==G&&G;if(!this.isInitialized(te)&&!this.shouldAutoInitialize()){if(Le)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:te})}catch(Ae){if(Le)return null;throw Ae}}getComponent(){return this.component}setComponent(B){if(B.name!==this.name)throw Error(`Mismatching Component ${B.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=B,this.shouldAutoInitialize()){if(function se(ue){return"EAGER"===ue.instantiationMode}(B))try{this.getOrInitializeService({instanceIdentifier:$})}catch{}for(const[G,te]of this.instancesDeferred.entries()){const Le=this.normalizeInstanceIdentifier(G);try{const Ae=this.getOrInitializeService({instanceIdentifier:Le});te.resolve(Ae)}catch{}}}}clearInstance(B=$){this.instancesDeferred.delete(B),this.instancesOptions.delete(B),this.instances.delete(B)}delete(){var B=this;return(0,d.Z)(function*(){const G=Array.from(B.instances.values());yield Promise.all([...G.filter(te=>"INTERNAL"in te).map(te=>te.INTERNAL.delete()),...G.filter(te=>"_delete"in te).map(te=>te._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(B=$){return this.instances.has(B)}getOptions(B=$){return this.instancesOptions.get(B)||{}}initialize(B={}){const{options:G={}}=B,te=this.normalizeInstanceIdentifier(B.instanceIdentifier);if(this.isInitialized(te))throw Error(`${this.name}(${te}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Le=this.getOrInitializeService({instanceIdentifier:te,options:G});for(const[Ae,je]of this.instancesDeferred.entries())te===this.normalizeInstanceIdentifier(Ae)&&je.resolve(Le);return Le}onInit(B,G){var te;const Le=this.normalizeInstanceIdentifier(G),Ae=null!==(te=this.onInitCallbacks.get(Le))&&void 0!==te?te:new Set;Ae.add(B),this.onInitCallbacks.set(Le,Ae);const je=this.instances.get(Le);return je&&B(je,Le),()=>{Ae.delete(B)}}invokeOnInitCallbacks(B,G){const te=this.onInitCallbacks.get(G);if(te)for(const Le of te)try{Le(B,G)}catch{}}getOrInitializeService({instanceIdentifier:B,options:G={}}){let te=this.instances.get(B);if(!te&&this.component&&(te=this.component.instanceFactory(this.container,{instanceIdentifier:(ue=B,ue===$?void 0:ue),options:G}),this.instances.set(B,te),this.instancesOptions.set(B,G),this.invokeOnInitCallbacks(te,B),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,B,te)}catch{}var ue;return te||null}normalizeInstanceIdentifier(B=$){return this.component?this.component.multipleInstances?B:$:B}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ie{constructor(B){this.name=B,this.providers=new Map}addComponent(B){const G=this.getProvider(B.name);if(G.isComponentSet())throw new Error(`Component ${B.name} has already been registered with ${this.name}`);G.setComponent(B)}addOrOverwriteComponent(B){this.getProvider(B.name).isComponentSet()&&this.providers.delete(B.name),this.addComponent(B)}getProvider(B){if(this.providers.has(B))return this.providers.get(B);const G=new K(B,this);return this.providers.set(B,G),G}getProviders(){return Array.from(this.providers.values())}}},1877:(nt,De,w)=>{w.d(De,{Am:()=>ue,Ub:()=>ie,Yd:()=>se,in:()=>p});const d=[];var p=(()=>{return(B=p||(p={}))[B.DEBUG=0]="DEBUG",B[B.VERBOSE=1]="VERBOSE",B[B.INFO=2]="INFO",B[B.WARN=3]="WARN",B[B.ERROR=4]="ERROR",B[B.SILENT=5]="SILENT",p;var B})();const N={debug:p.DEBUG,verbose:p.VERBOSE,info:p.INFO,warn:p.WARN,error:p.ERROR,silent:p.SILENT},$=p.INFO,K={[p.DEBUG]:"log",[p.VERBOSE]:"log",[p.INFO]:"info",[p.WARN]:"warn",[p.ERROR]:"error"},q=(B,G,...te)=>{if(G<B.logLevel)return;const Le=(new Date).toISOString(),Ae=K[G];if(!Ae)throw new Error(`Attempted to log a message with an invalid logType (value: ${G})`);console[Ae](`[${Le}] ${B.name}:`,...te)};class se{constructor(G){this.name=G,this._logLevel=$,this._logHandler=q,this._userLogHandler=null,d.push(this)}get logLevel(){return this._logLevel}set logLevel(G){if(!(G in p))throw new TypeError(`Invalid value "${G}" assigned to \`logLevel\``);this._logLevel=G}setLogLevel(G){this._logLevel="string"==typeof G?N[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,p.DEBUG,...G),this._logHandler(this,p.DEBUG,...G)}log(...G){this._userLogHandler&&this._userLogHandler(this,p.VERBOSE,...G),this._logHandler(this,p.VERBOSE,...G)}info(...G){this._userLogHandler&&this._userLogHandler(this,p.INFO,...G),this._logHandler(this,p.INFO,...G)}warn(...G){this._userLogHandler&&this._userLogHandler(this,p.WARN,...G),this._logHandler(this,p.WARN,...G)}error(...G){this._userLogHandler&&this._userLogHandler(this,p.ERROR,...G),this._logHandler(this,p.ERROR,...G)}}function ie(B){d.forEach(G=>{G.setLogLevel(B)})}function ue(B,G){for(const te of d){let Le=null;G&&G.level&&(Le=N[G.level]),te.userLogHandler=null===B?null:(Ae,je,...Ze)=>{const Te=Ze.map(Pe=>{if(null==Pe)return null;if("string"==typeof Pe)return Pe;if("number"==typeof Pe||"boolean"==typeof Pe)return Pe.toString();if(Pe instanceof Error)return Pe.message;try{return JSON.stringify(Pe)}catch{return null}}).filter(Pe=>Pe).join(" ");je>=(Le??Ae.logLevel)&&B({level:p[je].toLowerCase(),message:Te,args:Ze,type:Ae.name})}}}},8766:(nt,De,w)=>{w.d(De,{Lj:()=>Ce,X3:()=>ye});var d=w(5861);let N,$;const se=new WeakMap,ie=new WeakMap,ue=new WeakMap,B=new WeakMap,G=new WeakMap;let Ae={get(Y,de,j){if(Y instanceof IDBTransaction){if("done"===de)return ie.get(Y);if("objectStoreNames"===de)return Y.objectStoreNames||ue.get(Y);if("store"===de)return j.objectStoreNames[1]?void 0:j.objectStore(j.objectStoreNames[0])}return Pe(Y[de])},set:(Y,de,j)=>(Y[de]=j,!0),has:(Y,de)=>Y instanceof IDBTransaction&&("done"===de||"store"===de)||de in Y};function Te(Y){return"function"==typeof Y?function Ze(Y){return Y!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function q(){return $||($=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Y)?function(...de){return Y.apply(Se(this),de),Pe(se.get(this))}:function(...de){return Pe(Y.apply(Se(this),de))}:function(de,...j){const Z=Y.call(Se(this),de,...j);return ue.set(Z,de.sort?de.sort():[de]),Pe(Z)}}(Y):(Y instanceof IDBTransaction&&function Le(Y){if(ie.has(Y))return;const de=new Promise((j,Z)=>{const be=()=>{Y.removeEventListener("complete",fe),Y.removeEventListener("error",ze),Y.removeEventListener("abort",ze)},fe=()=>{j(),be()},ze=()=>{Z(Y.error||new DOMException("AbortError","AbortError")),be()};Y.addEventListener("complete",fe),Y.addEventListener("error",ze),Y.addEventListener("abort",ze)});ie.set(Y,de)}(Y),((Y,de)=>de.some(j=>Y instanceof j))(Y,function K(){return N||(N=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Y,Ae):Y)}function Pe(Y){if(Y instanceof IDBRequest)return function te(Y){const de=new Promise((j,Z)=>{const be=()=>{Y.removeEventListener("success",fe),Y.removeEventListener("error",ze)},fe=()=>{j(Pe(Y.result)),be()},ze=()=>{Z(Y.error),be()};Y.addEventListener("success",fe),Y.addEventListener("error",ze)});return de.then(j=>{j instanceof IDBCursor&&se.set(j,Y)}).catch(()=>{}),G.set(de,Y),de}(Y);if(B.has(Y))return B.get(Y);const de=Te(Y);return de!==Y&&(B.set(Y,de),G.set(de,Y)),de}const Se=Y=>G.get(Y);function ye(Y,de,{blocked:j,upgrade:Z,blocking:be,terminated:fe}={}){const ze=indexedDB.open(Y,de),Ke=Pe(ze);return Z&&ze.addEventListener("upgradeneeded",pt=>{Z(Pe(ze.result),pt.oldVersion,pt.newVersion,Pe(ze.transaction))}),j&&ze.addEventListener("blocked",()=>j()),Ke.then(pt=>{fe&&pt.addEventListener("close",()=>fe()),be&&pt.addEventListener("versionchange",()=>be())}).catch(()=>{}),Ke}function Ce(Y,{blocked:de}={}){const j=indexedDB.deleteDatabase(Y);return de&&j.addEventListener("blocked",()=>de()),Pe(j).then(()=>{})}const F=["get","getKey","getAll","getAllKeys","count"],ae=["put","add","delete","clear"],re=new Map;function he(Y,de){if(!(Y instanceof IDBDatabase)||de in Y||"string"!=typeof de)return;if(re.get(de))return re.get(de);const j=de.replace(/FromIndex$/,""),Z=de!==j,be=ae.includes(j);if(!(j in(Z?IDBIndex:IDBObjectStore).prototype)||!be&&!F.includes(j))return;const fe=function(){var ze=(0,d.Z)(function*(Ke,...pt){const Yt=this.transaction(Ke,be?"readwrite":"readonly");let sn=Yt.store;return Z&&(sn=sn.index(pt.shift())),(yield Promise.all([sn[j](...pt),be&&Yt.done]))[0]});return function(pt){return ze.apply(this,arguments)}}();return re.set(de,fe),fe}!function je(Y){Ae=Y(Ae)}(Y=>({...Y,get:(de,j,Z)=>he(de,j)||Y.get(de,j,Z),has:(de,j)=>!!he(de,j)||Y.has(de,j)}))},5421:(nt,De,w)=>{w.d(De,{Cz:()=>Se,ys:()=>Pe});var d=w(5861),p=w(4650),N=w(6895),$=w(9751),K=w(8996),q=w(9841),se=w(7579),ie=w(5698);function ue(ye,Ce,F,ae){return new Promise((re,he)=>{ye||he("IndexedDB not available");const Y=ye.open(Ce,F);let de;Y.onsuccess=j=>{de=Y.result,re(de)},Y.onerror=j=>{he(`IndexedDB error: ${Y.error}`)},"function"==typeof ae&&(Y.onupgradeneeded=j=>{ae(j,de)})})}function B(ye,Ce,F,ae,re){if(!ye)return;const he=ye.open(Ce,F);he.onupgradeneeded=Y=>{const de=Y.target.result;ae.forEach(Z=>{if(!de.objectStoreNames.contains(Z.store)){const be=de.createObjectStore(Z.store,Z.storeConfig);Z.storeSchema.forEach(fe=>{be.createIndex(fe.name,fe.keypath,fe.options)})}});const j=re&&re();j&&Object.keys(j).map(Z=>parseInt(Z,10)).filter(Z=>Z>Y.oldVersion).sort((Z,be)=>Z-be).forEach(Z=>{j[Z](de,he.transaction)}),de.close()},he.onsuccess=Y=>{Y.target.result.close()}}function Le(ye,Ce,F){ye||F("You need to use the openDatabase function to create a database before you query it!"),function te(ye,Ce){return ye.objectStoreNames.contains(Ce)}(ye,Ce)||F(`objectStore does not exists: ${Ce}`)}function Ae(ye,Ce){const F=ye.transaction(Ce.storeName,Ce.dbMode);return F.onerror=Ce.error,F.onabort=Ce.abort,F}function je(ye,Ce,F,ae){return{storeName:Ce,dbMode:ye,error:re=>{F(re)},abort:re=>{F(re)}}}var Ze=(()=>{return(ye=Ze||(Ze={})).readonly="readonly",ye.readwrite="readwrite",Ze;var ye})();const Te=new p.OlP(null);let Pe=(()=>{class ye{constructor(F,ae){if(this.dbConfig=F,this.platformId=ae,!F.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!F.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,N.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,B(this.indexedDB,F.name,F.version,F.objectStoresMeta,F.migrationFactory),ue(this.indexedDB,F.name).then(re=>{re.version!==F.version&&(this.dbConfig.version=re.version)}))}createObjectStore(F,ae){const re=[F];B(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,re,ae)}add(F,ae,re){return new $.y(he=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Y=>{const j=Ae(Y,je(Ze.readwrite,F,be=>he.error(be))).objectStore(F);(Boolean(re)?j.add(ae,re):j.add(ae)).onsuccess=function(){var be=(0,d.Z)(function*(fe){j.get(fe.target.result).onsuccess=pt=>{he.next(pt.target.result),he.complete()}});return function(fe){return be.apply(this,arguments)}}()}).catch(Y=>he.error(Y))})}bulkAdd(F,ae){const re=new Promise((he,Y)=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(de=>{const Z=Ae(de,je(Ze.readwrite,F,he)).objectStore(F),be=ae.map(fe=>new Promise((ze,Ke)=>{const pt=fe.key;delete fe.key,(Boolean(pt)?Z.add(fe,pt):Z.add(fe)).onsuccess=sn=>{ze(sn.target.result)}}));he(Promise.all(be))}).catch(de=>Y(de))});return(0,K.D)(re)}bulkDelete(F,ae){const re=ae.map(he=>new Promise((Y,de)=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(j=>{const Z=Ae(j,je(Ze.readwrite,F,de));Z.objectStore(F).delete(he),Z.oncomplete=()=>{this.getAll(F).pipe((0,ie.q)(1)).subscribe(fe=>{Y(fe)})}}).catch(j=>de(j))}));return(0,K.D)(Promise.all(re))}getByKey(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{const j=Ae(he,je(Ze.readonly,F,re.error)).objectStore(F).get(ae);j.onsuccess=Z=>{re.next(Z.target.result),re.complete()},j.onerror=Z=>{re.error(Z)}}).catch(he=>re.error(he))})}bulkGet(F,ae){const re=ae.map(he=>this.getByKey(F,he));return new $.y(he=>{(0,q.a)(re).subscribe(Y=>{he.next(Y),he.complete()})})}getByID(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,Z=>re.error(Z)),Ae(he,je(Ze.readonly,F,re.error)).objectStore(F).get(ae).onsuccess=Z=>{re.next(Z.target.result)}}).catch(he=>re.error(he))})}getByIndex(F,ae,re){return new $.y(he=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Y=>{Le(Y,F,fe=>he.error(fe)),Ae(Y,je(Ze.readonly,F,he.error)).objectStore(F).index(ae).get(re).onsuccess=fe=>{he.next(fe.target.result),he.complete()}}).catch(Y=>he.error(Y))})}getAll(F){return new $.y(ae=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(re=>{Le(re,F,j=>ae.error(j));const de=Ae(re,je(Ze.readonly,F,ae.error)).objectStore(F).getAll();de.onerror=j=>{ae.error(j)},de.onsuccess=({target:{result:j}})=>{ae.next(j),ae.complete()}}).catch(re=>ae.error(re))})}update(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,Z=>re.error(Z));const de=Ae(he,je(Ze.readwrite,F,Z=>re.error(Z))).objectStore(F);de.put(ae).onsuccess=function(){var Z=(0,d.Z)(function*(be){de.get(be.target.result).onsuccess=Ke=>{re.next(Ke.target.result),re.complete()}});return function(be){return Z.apply(this,arguments)}}()}).catch(he=>re.error(he))})}delete(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,j=>re.error(j));const Y=Ae(he,je(Ze.readwrite,F,j=>re.error(j)));Y.objectStore(F).delete(ae),Y.oncomplete=()=>{this.getAll(F).pipe((0,ie.q)(1)).subscribe(j=>{re.next(j),re.complete()})}}).catch(he=>re.error(he))})}deleteByKey(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,j=>re.error(j));const Y=Ae(he,je(Ze.readwrite,F,j=>re.error(j))),de=Y.objectStore(F);Y.oncomplete=()=>{re.next(!0),re.complete()},de.delete(ae)}).catch(he=>re.error(he))})}clear(F){return new $.y(ae=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(re=>{Le(re,F,de=>ae.error(de));const he=Ae(re,je(Ze.readwrite,F,de=>ae.error(de)));he.objectStore(F).clear(),he.oncomplete=()=>{ae.next(!0),ae.complete()}}).catch(re=>ae.error(re))})}deleteDatabase(){var F=this;return new $.y(ae=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(function(){var re=(0,d.Z)(function*(he){yield he.close();const Y=F.indexedDB.deleteDatabase(F.dbConfig.name);Y.onsuccess=()=>{ae.next(!0),ae.complete()},Y.onerror=de=>ae.error(de),Y.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}});return function(he){return re.apply(this,arguments)}}()).catch(re=>ae.error(re))})}openCursor(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,Z=>re.error(Z));const de=Ae(he,je(Ze.readonly,F,re.error)).objectStore(F);(void 0===ae?de.openCursor():de.openCursor(ae)).onsuccess=Z=>{re.next(Z),re.complete()}}).catch(he=>re.error(he))})}openCursorByIndex(F,ae,re,he=Ze.readonly){const Y=new se.x;return ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(de=>{Le(de,F,ze=>{Y.error(ze)}),Ae(de,je(he,F,ze=>{Y.error(ze)})).objectStore(F).index(ae).openCursor(re).onsuccess=ze=>{Y.next(ze)}}).catch(de=>Y.error(de)),Y}getAllByIndex(F,ae,re){const he=[];return new $.y(Y=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(de=>{Le(de,F,ze=>Y.error(ze)),Ae(de,je(Ze.readonly,F,Y.error)).objectStore(F).index(ae).openCursor(re).onsuccess=ze=>{const Ke=ze.target.result;Ke?(he.push(Ke.value),Ke.continue()):(Y.next(he),Y.complete())}}).catch(de=>Y.error(de))})}getAllKeysByIndex(F,ae,re){const he=[];return new $.y(Y=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(de=>{Le(de,F,ze=>Y.error(ze)),Ae(de,je(Ze.readonly,F,Y.error)).objectStore(F).index(ae).openKeyCursor(re).onsuccess=ze=>{const Ke=ze.target.result;Ke?(he.push({primaryKey:Ke.primaryKey,key:Ke.key}),Ke.continue()):(Y.next(he),Y.complete())}}).catch(de=>Y.error(de))})}count(F,ae){return new $.y(re=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(he=>{Le(he,F,Z=>re.error(Z));const j=Ae(he,je(Ze.readonly,F,re.error)).objectStore(F).count(ae);j.onerror=Z=>re.error(Z),j.onsuccess=Z=>{re.next(Z.target.result),re.complete()}}).catch(he=>re.error(he))})}countByIndex(F,ae,re){return new $.y(he=>{ue(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(Y=>{Le(Y,F,fe=>he.error(fe));const be=Ae(Y,je(Ze.readonly,F,he.error)).objectStore(F).index(ae).count(re);be.onerror=fe=>he.error(fe),be.onsuccess=fe=>{he.next(fe.target.result),he.complete()}}).catch(Y=>he.error(Y))})}deleteObjectStore(F){return function G(ye,Ce,F){if(!ye||!Ce||!F)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new $.y(ae=>{try{const he=indexedDB.open(ye,Ce+1);he.onupgradeneeded=Y=>{const de=Y.target.result;de.deleteObjectStore(F),de.close(),console.log("onupgradeneeded"),ae.next(!0),ae.complete()},he.onerror=Y=>ae.error(Y)}catch(re){ae.error(re)}})}(this.dbConfig.name,++this.dbConfig.version,F)}}return ye.\u0275fac=function(F){return new(F||ye)(p.LFG(Te),p.LFG(p.Lbi))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Se=(()=>{class ye{static forRoot(F){return{ngModule:ye,providers:[Pe,{provide:Te,useValue:F}]}}}return ye.\u0275fac=function(F){return new(F||ye)},ye.\u0275mod=p.oAB({type:ye}),ye.\u0275inj=p.cJS({imports:[[N.ez]]}),ye})()},7185:(nt,De,w)=>{w.d(De,{FN:()=>ze,PR:()=>re,Rh:()=>pt,_W:()=>fe});var d=w(4650),p=w(7340),N=w(7579),$=w(6895),K=w(1481);const q=["toast-component",""];function se(Ne,Qe){if(1&Ne){const ce=d.EpF();d.TgZ(0,"button",5),d.NdJ("click",function(){d.CHM(ce);const et=d.oxw();return d.KtG(et.remove())}),d.TgZ(1,"span",6),d._uU(2,"\xd7"),d.qZA()()}}function ie(Ne,Qe){if(1&Ne&&(d.ynx(0),d._uU(1),d.BQk()),2&Ne){const ce=d.oxw(2);d.xp6(1),d.hij("[",ce.duplicatesCount+1,"]")}}function ue(Ne,Qe){if(1&Ne&&(d.TgZ(0,"div"),d._uU(1),d.YNc(2,ie,2,1,"ng-container",4),d.qZA()),2&Ne){const ce=d.oxw();d.Tol(ce.options.titleClass),d.uIk("aria-label",ce.title),d.xp6(1),d.hij(" ",ce.title," "),d.xp6(1),d.Q6J("ngIf",ce.duplicatesCount)}}function B(Ne,Qe){if(1&Ne&&d._UZ(0,"div",7),2&Ne){const ce=d.oxw();d.Tol(ce.options.messageClass),d.Q6J("innerHTML",ce.message,d.oJD)}}function G(Ne,Qe){if(1&Ne&&(d.TgZ(0,"div",8),d._uU(1),d.qZA()),2&Ne){const ce=d.oxw();d.Tol(ce.options.messageClass),d.uIk("aria-label",ce.message),d.xp6(1),d.hij(" ",ce.message," ")}}function te(Ne,Qe){if(1&Ne&&(d.TgZ(0,"div"),d._UZ(1,"div",9),d.qZA()),2&Ne){const ce=d.oxw();d.xp6(1),d.Udp("width",ce.width+"%")}}class Ce{constructor(Qe,ce){this.component=Qe,this.injector=ce}attach(Qe,ce){return this._attachedHost=Qe,Qe.attach(this,ce)}detach(){const Qe=this._attachedHost;if(Qe)return this._attachedHost=void 0,Qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Qe){this._attachedHost=Qe}}class F{attach(Qe,ce){return this._attachedPortal=Qe,this.attachComponentPortal(Qe,ce)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Qe){this._disposeFn=Qe}}class ae{constructor(Qe){this._overlayRef=Qe,this.duplicatesCount=0,this._afterClosed=new N.x,this._activate=new N.x,this._manualClose=new N.x,this._resetTimeout=new N.x,this._countDuplicate=new N.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(Qe,ce){Qe&&this._resetTimeout.next(),ce&&this._countDuplicate.next(++this.duplicatesCount)}}class re{constructor(Qe,ce,xe,et,Pt,zt){this.toastId=Qe,this.config=ce,this.message=xe,this.title=et,this.toastType=Pt,this.toastRef=zt,this._onTap=new N.x,this._onAction=new N.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(Qe){this._onAction.next(Qe)}onAction(){return this._onAction.asObservable()}}const Y=new d.OlP("ToastConfig");class de extends F{constructor(Qe,ce,xe){super(),this._hostDomElement=Qe,this._componentFactoryResolver=ce,this._appRef=xe}attachComponentPortal(Qe,ce){const xe=this._componentFactoryResolver.resolveComponentFactory(Qe.component);let et;return et=xe.create(Qe.injector),this._appRef.attachView(et.hostView),this.setDisposeFn(()=>{this._appRef.detachView(et.hostView),et.destroy()}),ce?this._hostDomElement.insertBefore(this._getComponentRootNode(et),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(et)),et}_getComponentRootNode(Qe){return Qe.hostView.rootNodes[0]}}class j{constructor(Qe){this._portalHost=Qe}attach(Qe,ce=!0){return this._portalHost.attach(Qe,ce)}detach(){return this._portalHost.detach()}}let Z=(()=>{class Ne{constructor(ce){this._document=ce}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ce=this._document.createElement("div");ce.classList.add("overlay-container"),ce.setAttribute("aria-live","polite"),this._document.body.appendChild(ce),this._containerElement=ce}}return Ne.\u0275fac=function(ce){return new(ce||Ne)(d.LFG($.K0))},Ne.\u0275prov=d.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),be=(()=>{class Ne{constructor(ce,xe,et,Pt){this._overlayContainer=ce,this._componentFactoryResolver=xe,this._appRef=et,this._document=Pt,this._paneElements=new Map}create(ce,xe){return this._createOverlayRef(this.getPaneElement(ce,xe))}getPaneElement(ce="",xe){return this._paneElements.get(xe)||this._paneElements.set(xe,{}),this._paneElements.get(xe)[ce]||(this._paneElements.get(xe)[ce]=this._createPaneElement(ce,xe)),this._paneElements.get(xe)[ce]}_createPaneElement(ce,xe){const et=this._document.createElement("div");return et.id="toast-container",et.classList.add(ce),et.classList.add("toast-container"),xe?xe.getContainerElement().appendChild(et):this._overlayContainer.getContainerElement().appendChild(et),et}_createPortalHost(ce){return new de(ce,this._componentFactoryResolver,this._appRef)}_createOverlayRef(ce){return new j(this._createPortalHost(ce))}}return Ne.\u0275fac=function(ce){return new(ce||Ne)(d.LFG(Z),d.LFG(d._Vd),d.LFG(d.z2F),d.LFG($.K0))},Ne.\u0275prov=d.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),fe=(()=>{class Ne{constructor(ce,xe,et,Pt,zt){this.overlay=xe,this._injector=et,this.sanitizer=Pt,this.ngZone=zt,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...ce.default,...ce.config},ce.config.iconClasses&&(this.toastrConfig.iconClasses={...ce.default.iconClasses,...ce.config.iconClasses})}show(ce,xe,et={},Pt=""){return this._preBuildNotification(Pt,ce,xe,this.applyConfig(et))}success(ce,xe,et={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",ce,xe,this.applyConfig(et))}error(ce,xe,et={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",ce,xe,this.applyConfig(et))}info(ce,xe,et={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",ce,xe,this.applyConfig(et))}warning(ce,xe,et={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",ce,xe,this.applyConfig(et))}clear(ce){for(const xe of this.toasts)if(void 0!==ce){if(xe.toastId===ce)return void xe.toastRef.manualClose()}else xe.toastRef.manualClose()}remove(ce){const xe=this._findToast(ce);if(!xe||(xe.activeToast.toastRef.close(),this.toasts.splice(xe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const et=this.toasts[this.currentlyActive].toastRef;et.isInactive()||(this.currentlyActive=this.currentlyActive+1,et.activate())}return!0}findDuplicate(ce="",xe="",et,Pt){const{includeTitleDuplicates:zt}=this.toastrConfig;for(const an of this.toasts)if((!zt||zt&&an.title===ce)&&an.message===xe)return an.toastRef.onDuplicate(et,Pt),an;return null}applyConfig(ce={}){return{...this.toastrConfig,...ce}}_findToast(ce){for(let xe=0;xe<this.toasts.length;xe++)if(this.toasts[xe].toastId===ce)return{index:xe,activeToast:this.toasts[xe]};return null}_preBuildNotification(ce,xe,et,Pt){return Pt.onActivateTick?this.ngZone.run(()=>this._buildNotification(ce,xe,et,Pt)):this._buildNotification(ce,xe,et,Pt)}_buildNotification(ce,xe,et,Pt){if(!Pt.toastComponent)throw new Error("toastComponent required");const zt=this.findDuplicate(et,xe,this.toastrConfig.resetTimeoutOnDuplicate&&Pt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&et||xe)&&this.toastrConfig.preventDuplicates&&null!==zt)return zt;this.previousToastMessage=xe;let an=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(an=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ln=this.overlay.create(Pt.positionClass,this.overlayContainer);this.index=this.index+1;let ir=xe;xe&&Pt.enableHtml&&(ir=this.sanitizer.sanitize(d.q3G.HTML,xe));const Bn=new ae(ln),er=new re(this.index,Pt,ir,et,ce,Bn),tn=d.zs3.create({providers:[{provide:re,useValue:er}],parent:this._injector}),jn=new Ce(Pt.toastComponent,tn),Kt=ln.attach(jn,Pt.newestOnTop);Bn.componentInstance=Kt.instance;const yt={toastId:this.index,title:et||"",message:xe||"",toastRef:Bn,onShown:Bn.afterActivate(),onHidden:Bn.afterClosed(),onTap:er.onTap(),onAction:er.onAction(),portal:Kt};return an||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{yt.toastRef.activate()})),this.toasts.push(yt),yt}}return Ne.\u0275fac=function(ce){return new(ce||Ne)(d.LFG(Y),d.LFG(be),d.LFG(d.zs3),d.LFG(K.H7),d.LFG(d.R0b))},Ne.\u0275prov=d.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),ze=(()=>{class Ne{constructor(ce,xe,et){this.toastrService=ce,this.toastPackage=xe,this.ngZone=et,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=xe.message,this.title=xe.title,this.options=xe.config,this.originalTimeout=xe.config.timeOut,this.toastClasses=`${xe.toastType} ${xe.config.toastClass}`,this.sub=xe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=xe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=xe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=xe.toastRef.countDuplicate().subscribe(Pt=>{this.duplicatesCount=Pt})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const ce=(new Date).getTime();this.width=(this.hideTime-ce)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(ce,xe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(ce),xe)):this.timeout=setTimeout(()=>ce(),xe)}outsideInterval(ce,xe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(ce),xe)):this.intervalId=setInterval(()=>ce(),xe)}runInsideAngular(ce){this.ngZone?this.ngZone.run(()=>ce()):ce()}}return Ne.\u0275fac=function(ce){return new(ce||Ne)(d.Y36(fe),d.Y36(re),d.Y36(d.R0b))},Ne.\u0275cmp=d.Xpm({type:Ne,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(ce,xe){1&ce&&d.NdJ("click",function(){return xe.tapToast()})("mouseenter",function(){return xe.stickAround()})("mouseleave",function(){return xe.delayedHideToast()}),2&ce&&(d.d8E("@flyInOut",xe.state),d.Tol(xe.toastClasses),d.Udp("display",xe.displayStyle))},attrs:q,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(ce,xe){1&ce&&(d.YNc(0,se,3,0,"button",0),d.YNc(1,ue,3,5,"div",1),d.YNc(2,B,1,3,"div",2),d.YNc(3,G,2,4,"div",3),d.YNc(4,te,2,2,"div",4)),2&ce&&(d.Q6J("ngIf",xe.options.closeButton),d.xp6(1),d.Q6J("ngIf",xe.title),d.xp6(1),d.Q6J("ngIf",xe.message&&xe.options.enableHtml),d.xp6(1),d.Q6J("ngIf",xe.message&&!xe.options.enableHtml),d.xp6(1),d.Q6J("ngIf",xe.options.progressBar))},dependencies:[$.O5],encapsulation:2,data:{animation:[(0,p.X$)("flyInOut",[(0,p.SB)("inactive",(0,p.oB)({opacity:0})),(0,p.SB)("active",(0,p.oB)({opacity:1})),(0,p.SB)("removed",(0,p.oB)({opacity:0})),(0,p.eR)("inactive => active",(0,p.jt)("{{ easeTime }}ms {{ easing }}")),(0,p.eR)("active => removed",(0,p.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ne})();const Ke={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null,toastComponent:ze};let pt=(()=>{class Ne{static forRoot(ce={}){return{ngModule:Ne,providers:[{provide:Y,useValue:{default:Ke,config:ce}}]}}}return Ne.\u0275fac=function(ce){return new(ce||Ne)},Ne.\u0275mod=d.oAB({type:Ne}),Ne.\u0275inj=d.cJS({imports:[$.ez]}),Ne})()},5861:(nt,De,w)=>{function d(N,$,K,q,se,ie,ue){try{var B=N[ie](ue),G=B.value}catch(te){return void K(te)}B.done?$(G):Promise.resolve(G).then(q,se)}function p(N){return function(){var $=this,K=arguments;return new Promise(function(q,se){var ie=N.apply($,K);function ue(G){d(ie,q,se,ue,B,"next",G)}function B(G){d(ie,q,se,ue,B,"throw",G)}ue(void 0)})}}w.d(De,{Z:()=>p})}},nt=>{nt(nt.s=5059)}]);