marketplacepos 5.41.6 → 5.43.1
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.
- package/Marketplace/3rdpartylicenses.txt +123 -123
- package/Marketplace/chunk-222IBZU6.js +1 -0
- package/Marketplace/chunk-235G2DSM.js +1 -0
- package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
- package/Marketplace/chunk-2BUABOHG.js +1 -0
- package/Marketplace/{chunk-7GQIIDFF.js → chunk-2DJWDXTZ.js} +1 -1
- package/Marketplace/chunk-2SXRC4IG.js +1 -0
- package/Marketplace/chunk-2TL43SUD.js +1 -0
- package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
- package/Marketplace/chunk-33IXC6UG.js +1 -0
- package/Marketplace/chunk-3D323DES.js +1 -0
- package/Marketplace/chunk-3K33MNZY.js +1 -0
- package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
- package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
- package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
- package/Marketplace/chunk-4VFVMBPQ.js +1 -0
- package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
- package/Marketplace/chunk-5DIRXS7I.js +1 -0
- package/Marketplace/chunk-5EQNOCXP.js +1 -0
- package/Marketplace/chunk-5PVFITW6.js +252 -0
- package/Marketplace/chunk-5QAURMZF.js +222 -0
- package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
- package/Marketplace/chunk-66YHNWRR.js +1 -0
- package/Marketplace/chunk-6IFZ2TO6.js +1 -0
- package/Marketplace/chunk-6J745ID2.js +4 -0
- package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
- package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
- package/Marketplace/{chunk-ITTRZMEX.js → chunk-6X2OBNJQ.js} +4 -4
- package/Marketplace/chunk-74L5LOR4.js +1 -0
- package/Marketplace/chunk-7HYMSL6P.js +1 -0
- package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
- package/Marketplace/chunk-A4F37V57.js +1 -0
- package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
- package/Marketplace/chunk-AGRVVEIR.js +397 -0
- package/Marketplace/chunk-ALKC77XL.js +78 -0
- package/Marketplace/chunk-ALSWTSZR.js +1 -0
- package/Marketplace/chunk-AUO2UUO7.js +1 -0
- package/Marketplace/chunk-AVEGIEYT.js +193 -0
- package/Marketplace/chunk-B37XDXUI.js +1 -0
- package/Marketplace/chunk-BJWQKM5G.js +1 -0
- package/Marketplace/chunk-BQTUAYGY.js +1 -0
- package/Marketplace/{chunk-IINERY5O.js → chunk-CGJ37FLZ.js} +11 -11
- package/Marketplace/chunk-CINZW7MA.js +1 -0
- package/Marketplace/chunk-CPJFWVUP.js +1 -0
- package/Marketplace/chunk-CQ6GTQW6.js +1 -0
- package/Marketplace/chunk-CSSG7NAJ.js +1 -0
- package/Marketplace/chunk-CVFPPKTF.js +1 -0
- package/Marketplace/chunk-DJILLV4M.js +1 -0
- package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
- package/Marketplace/chunk-E7X3E2GE.js +2 -0
- package/Marketplace/chunk-EL2TGTHA.js +1 -0
- package/Marketplace/chunk-EU2KAMEK.js +1 -0
- package/Marketplace/chunk-F4GMWHYJ.js +33 -0
- package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
- package/Marketplace/chunk-FN6AYDMI.js +1 -0
- package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
- package/Marketplace/chunk-G4OF4YLE.js +2 -0
- package/Marketplace/chunk-GCECFUOP.js +1 -0
- package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
- package/Marketplace/chunk-GOS4RIF2.js +1 -0
- package/Marketplace/{chunk-ICSMRW7O.js → chunk-GPC4DECX.js} +1 -1
- package/Marketplace/chunk-GZXQUJKX.js +1 -0
- package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
- package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
- package/Marketplace/chunk-HTQJCQ32.js +1 -0
- package/Marketplace/{chunk-LQZTRBOB.js → chunk-HV6V6JHY.js} +1 -1
- package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
- package/Marketplace/chunk-ILQQ6R7K.js +15 -0
- package/Marketplace/chunk-IMO7KDT2.js +1 -0
- package/Marketplace/chunk-IYHPRFB5.js +1 -0
- package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
- package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
- package/Marketplace/chunk-JS55A2RS.js +7 -0
- package/Marketplace/chunk-JSA73LJT.js +1 -0
- package/Marketplace/chunk-JT4Y2ID4.js +1 -0
- package/Marketplace/chunk-JTOYNS32.js +1 -0
- package/Marketplace/chunk-JV4MMNGD.js +79 -0
- package/Marketplace/chunk-JX5NLHUQ.js +2 -0
- package/Marketplace/{chunk-E6HA2AGS.js → chunk-KQQCKHF3.js} +1 -1
- package/Marketplace/chunk-KWQS4KX7.js +1 -0
- package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
- package/Marketplace/chunk-KXS76PRS.js +70 -0
- package/Marketplace/chunk-KYIY3VQ6.js +141 -0
- package/Marketplace/{chunk-Z2PI4IS6.js → chunk-L53DCJFT.js} +1 -1
- package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
- package/Marketplace/chunk-LPK5TPBQ.js +1 -0
- package/Marketplace/chunk-LR4UZ2OS.js +30 -0
- package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
- package/Marketplace/chunk-LWSRD5LF.js +1 -0
- package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
- package/Marketplace/chunk-MC3GSUIF.js +1 -0
- package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
- package/Marketplace/chunk-MTUIRWOB.js +2 -0
- package/Marketplace/chunk-MZI5AYCE.js +1 -0
- package/Marketplace/chunk-NB4T45CV.js +1 -0
- package/Marketplace/chunk-NOO3VUTK.js +1 -0
- package/Marketplace/chunk-NPG45B2D.js +1 -0
- package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
- package/Marketplace/chunk-NTW6FBP5.js +1 -0
- package/Marketplace/chunk-NXC2W6VA.js +1 -0
- package/Marketplace/chunk-NZA4BEER.js +102 -0
- package/Marketplace/chunk-O55KM5KY.js +1 -0
- package/Marketplace/chunk-O6U5QCHJ.js +1 -0
- package/Marketplace/chunk-OJWFYXZX.js +1 -0
- package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
- package/Marketplace/chunk-OL5RQ7K4.js +1 -0
- package/Marketplace/chunk-OMDX33L2.js +266 -0
- package/Marketplace/chunk-OUEMCONQ.js +5 -0
- package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
- package/Marketplace/chunk-OZ7LWNOK.js +15 -0
- package/Marketplace/chunk-PE5AFID4.js +1 -0
- package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
- package/Marketplace/chunk-PW42BQIY.js +1 -0
- package/Marketplace/chunk-QQ3TCYLJ.js +1 -0
- package/Marketplace/chunk-R4IYKVKK.js +1 -0
- package/Marketplace/chunk-R62F5NWC.js +1 -0
- package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
- package/Marketplace/chunk-RBRIJGT2.js +3 -0
- package/Marketplace/chunk-RFGNZCTV.js +1 -0
- package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
- package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
- package/Marketplace/chunk-SLQA5QBT.js +1 -0
- package/Marketplace/chunk-SMCI6XBO.js +1 -0
- package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
- package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
- package/Marketplace/chunk-SZECT5VQ.js +1 -0
- package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
- package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
- package/Marketplace/{chunk-PQ6Z7K5L.js → chunk-UEWZXE4O.js} +1 -1
- package/Marketplace/chunk-UF4FKEE7.js +93 -0
- package/Marketplace/chunk-UJYSVGLV.js +1 -0
- package/Marketplace/chunk-UJZ3KSBV.js +1 -0
- package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
- package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
- package/Marketplace/{chunk-CTUXL543.js → chunk-USRA2YIW.js} +1 -1
- package/Marketplace/chunk-V3NCYRCF.js +1 -0
- package/Marketplace/chunk-VRI3CYGG.js +1 -0
- package/Marketplace/chunk-WCU6IR2R.js +1 -0
- package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
- package/Marketplace/chunk-WHRDK5NL.js +1 -0
- package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
- package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
- package/Marketplace/chunk-XND52RIU.js +1 -0
- package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
- package/Marketplace/chunk-XXKHKD6T.js +1 -0
- package/Marketplace/chunk-Y5IPCXWN.js +1 -0
- package/Marketplace/chunk-YA7OZNAF.js +1 -0
- package/Marketplace/{chunk-OAS72QB2.js → chunk-YPVYJUXS.js} +1 -1
- package/Marketplace/chunk-Z3ITXK3D.js +1 -0
- package/Marketplace/chunk-ZAVDOMSW.js +1 -0
- package/Marketplace/chunk-ZBVPUFFS.js +5 -0
- package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
- package/Marketplace/chunk-ZN47D2EO.js +1 -0
- package/Marketplace/chunk-ZNDU44GH.js +51 -0
- package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-HEFRSFSR.js +1 -0
- package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-25HVJVYO.js +0 -1
- package/Marketplace/chunk-2BBMPSAE.js +0 -93
- package/Marketplace/chunk-34CTATL6.js +0 -1
- package/Marketplace/chunk-3OD47PUU.js +0 -15
- package/Marketplace/chunk-4ASUM4N5.js +0 -1
- package/Marketplace/chunk-4G3QN54S.js +0 -193
- package/Marketplace/chunk-5KHDEW35.js +0 -1
- package/Marketplace/chunk-62PFQNHJ.js +0 -1
- package/Marketplace/chunk-6ALHX2I4.js +0 -1
- package/Marketplace/chunk-73OLUI2Z.js +0 -1
- package/Marketplace/chunk-743EWFUY.js +0 -1
- package/Marketplace/chunk-AB3DHTC7.js +0 -1
- package/Marketplace/chunk-ACV6YALZ.js +0 -1
- package/Marketplace/chunk-BB5SMGW7.js +0 -5
- package/Marketplace/chunk-D54NUPYF.js +0 -153
- package/Marketplace/chunk-DFRA5ORA.js +0 -1
- package/Marketplace/chunk-DPLEMBB4.js +0 -1
- package/Marketplace/chunk-E3HMIPER.js +0 -2
- package/Marketplace/chunk-F2X5N2W5.js +0 -2
- package/Marketplace/chunk-FJVZ33X4.js +0 -1
- package/Marketplace/chunk-GPEVUTDI.js +0 -2
- package/Marketplace/chunk-HUEPKUQW.js +0 -1
- package/Marketplace/chunk-HW3FX455.js +0 -1
- package/Marketplace/chunk-I4QWUPXR.js +0 -1
- package/Marketplace/chunk-IHYEQWAY.js +0 -3
- package/Marketplace/chunk-IIBM2V3E.js +0 -1
- package/Marketplace/chunk-IIJMZKPL.js +0 -1
- package/Marketplace/chunk-JB6W72VA.js +0 -1
- package/Marketplace/chunk-JTZJTXCN.js +0 -1
- package/Marketplace/chunk-K2H6WANG.js +0 -1
- package/Marketplace/chunk-KVP6OL4J.js +0 -2
- package/Marketplace/chunk-LNXJNBJQ.js +0 -1
- package/Marketplace/chunk-LPXBSHUI.js +0 -180
- package/Marketplace/chunk-MATSRG2L.js +0 -447
- package/Marketplace/chunk-NTGWFIOH.js +0 -1
- package/Marketplace/chunk-OHN3VXQV.js +0 -1
- package/Marketplace/chunk-OIZORVCZ.js +0 -1
- package/Marketplace/chunk-OOKURHR4.js +0 -1
- package/Marketplace/chunk-OQNYXG6U.js +0 -1
- package/Marketplace/chunk-PV6JAW7E.js +0 -5
- package/Marketplace/chunk-PWJ2Z5EH.js +0 -4
- package/Marketplace/chunk-PXB4YEY3.js +0 -1
- package/Marketplace/chunk-PZTMYAA7.js +0 -1
- package/Marketplace/chunk-SUC77PQU.js +0 -1
- package/Marketplace/chunk-T5ONJF63.js +0 -7
- package/Marketplace/chunk-T6Q5SGJG.js +0 -2
- package/Marketplace/chunk-T6QOFDEE.js +0 -1
- package/Marketplace/chunk-TZXF4K2V.js +0 -1
- package/Marketplace/chunk-UQVGVHST.js +0 -1
- package/Marketplace/chunk-VETHPEVU.js +0 -1
- package/Marketplace/chunk-VSEWXNVC.js +0 -291
- package/Marketplace/chunk-XFCMKJV6.js +0 -1
- package/Marketplace/chunk-XM6GN4VF.js +0 -1
- package/Marketplace/chunk-YIUQQGOQ.js +0 -1
- package/Marketplace/chunk-YJ6KE7ER.js +0 -1
- package/Marketplace/chunk-Z46DDENN.js +0 -1
- package/Marketplace/chunk-ZOVPSET6.js +0 -1
- package/Marketplace/chunk-ZSHPWPPL.js +0 -1
- package/Marketplace/chunk-ZTQGQXIT.js +0 -1
- package/Marketplace/main-36VYJM2O.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as Vi,$a as cn,A as vr,Ab as lo,Ac as bo,Bb as ho,Ca as Er,Cb as fo,Da as Sr,Db as ln,Ea as De,Eb as po,Fb as Ie,G as se,Ga as Ct,Gb as $,Hb as bt,Ia as Et,J as je,Ja as qi,K as me,Ka as ze,La as J,Lb as _r,Ma as br,Mb as go,N as Dr,Na as Wi,Nb as dn,O as et,Oa as Ae,Ob as hn,Pb as Ir,Qb as fn,Rb as mo,S as $e,Sa as Zi,Sb as Mr,T as Se,Ta as Rr,Tb as vo,U as yr,Ua as Yi,Ub as Fr,V as $i,Va as tt,Vb as Do,X as zi,Xa as Ar,Xb as yo,Ya as Ki,Za as Xi,_a as Ji,a as ki,aa as G,b as xi,bb as Qi,c as Dt,ca as an,cb as St,d as gr,db as Te,dd as Ro,e as mr,ea as x,eb as nt,ed as Or,f as te,fb as eo,fd as Ao,g as K,ga as w,gb as to,ha as ve,hb as no,hd as Me,ib as ro,ic as wo,id as To,ja as D,jb as io,jd as _o,ka as be,kb as oo,kd as Io,la as Hi,lb as so,ld as Mo,m as ge,ma as C,mb as Ve,md as ye,na as wr,nd as Pr,oa as m,od as pn,p as k,pa as d,pb as ao,pc as q,q as p,qc as F,r as yt,rb as He,rc as Co,s as Ui,sa as un,sb as Tr,sd as Fo,t as Bi,ta as Gi,ua as Re,ub as uo,v as R,va as X,vb as _e,w as sn,wa as Cr,wb as T,x as j,xa as ae,xb as co,xc as Eo,y as wt,yb as Ge,z as ji,zc as So}from"./chunk-T5ONJF63.js";import{a as f,b as L}from"./chunk-K2H6WANG.js";var O=new C("");var No=null;function ue(){return No}function Nr(t){No??=t}var Rt=class{},At=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Lo),providedIn:"platform"})}return t})(),Lr=new C(""),Lo=(()=>{class t extends At{_location;_history;_doc=d(O);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ue().getBaseHref(this._doc)}onPopState(e){let n=ue().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=ue().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function gn(t,r){return t?r?t.endsWith("/")?r.startsWith("/")?t+r.slice(1):t+r:r.startsWith("/")?t+r:`${t}/${r}`:t:r}function Oo(t){let r=t.search(/#|\?|$/);return t[r-1]==="/"?t.slice(0,r-1)+t.slice(r):t}function ne(t){return t&&t[0]!=="?"?`?${t}`:t}var re=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(vn),providedIn:"root"})}return t})(),mn=new C(""),vn=(()=>{class t extends re{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return gn(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+ne(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(m(At),m(mn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oe=(()=>{class t{_subject=new te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Pa(Oo(Po(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+ne(n))}normalize(e){return t.stripTrailingSlash(Oa(this._basePath,Po(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ne(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=ne;static joinWithSlash=gn;static stripTrailingSlash=Oo;static \u0275fac=function(n){return new(n||t)(m(re))};static \u0275prov=D({token:t,factory:()=>Fa(),providedIn:"root"})}return t})();function Fa(){return new Oe(m(re))}function Oa(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function Po(t){return t.replace(/\/index.html$/,"")}function Pa(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Hr=(()=>{class t extends re{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=gn(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+ne(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(m(At),m(mn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var Gr=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Gr||{});var U=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(U||{}),_=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(_||{}),z=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(z||{}),V={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zo(t){return q(t)[F.LocaleId]}function Vo(t,r,e){let n=q(t),i=[n[F.DayPeriodsFormat],n[F.DayPeriodsStandalone]],o=Q(i,r);return Q(o,e)}function Ho(t,r,e){let n=q(t),i=[n[F.DaysFormat],n[F.DaysStandalone]],o=Q(i,r);return Q(o,e)}function Go(t,r,e){let n=q(t),i=[n[F.MonthsFormat],n[F.MonthsStandalone]],o=Q(i,r);return Q(o,e)}function qo(t,r){let n=q(t)[F.Eras];return Q(n,r)}function Tt(t,r){let e=q(t);return Q(e[F.DateFormat],r)}function _t(t,r){let e=q(t);return Q(e[F.TimeFormat],r)}function It(t,r){let n=q(t)[F.DateTimeFormat];return Q(n,r)}function ce(t,r){let e=q(t),n=e[F.NumberSymbols][r];if(typeof n>"u"){if(r===V.CurrencyDecimal)return e[F.NumberSymbols][V.Decimal];if(r===V.CurrencyGroup)return e[F.NumberSymbols][V.Group]}return n}function Wo(t,r){return q(t)[F.NumberFormats][r]}function Zo(t){if(!t[F.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[F.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yo(t){let r=q(t);return Zo(r),(r[F.ExtraData][2]||[]).map(n=>typeof n=="string"?kr(n):[kr(n[0]),kr(n[1])])}function Ko(t,r,e){let n=q(t);Zo(n);let i=[n[F.ExtraData][0],n[F.ExtraData][1]],o=Q(i,r)||[];return Q(o,e)||[]}function Q(t,r){for(let e=r;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function kr(t){let[r,e]=t.split(":");return{hours:+r,minutes:+e}}var Na=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Dn={},La=/((?:[^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]*)/;function Xo(t,r,e,n){let i=Ha(t);r=we(e,r)||r;let s=[],a;for(;r;)if(a=La.exec(r),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;r=l}else{s.push(r);break}let u=i.getTimezoneOffset();n&&(u=Qo(n,u),i=Va(i,n));let c="";return s.forEach(l=>{let h=$a(l);c+=h?h(i,e,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sn(t,r,e){let n=new Date(0);return n.setFullYear(t,r,e),n.setHours(0,0,0),n}function we(t,r){let e=zo(t);if(Dn[e]??={},Dn[e][r])return Dn[e][r];let n="";switch(r){case"shortDate":n=Tt(t,z.Short);break;case"mediumDate":n=Tt(t,z.Medium);break;case"longDate":n=Tt(t,z.Long);break;case"fullDate":n=Tt(t,z.Full);break;case"shortTime":n=_t(t,z.Short);break;case"mediumTime":n=_t(t,z.Medium);break;case"longTime":n=_t(t,z.Long);break;case"fullTime":n=_t(t,z.Full);break;case"short":let i=we(t,"shortTime"),o=we(t,"shortDate");n=yn(It(t,z.Short),[i,o]);break;case"medium":let s=we(t,"mediumTime"),a=we(t,"mediumDate");n=yn(It(t,z.Medium),[s,a]);break;case"long":let u=we(t,"longTime"),c=we(t,"longDate");n=yn(It(t,z.Long),[u,c]);break;case"full":let l=we(t,"fullTime"),h=we(t,"fullDate");n=yn(It(t,z.Full),[l,h]);break}return n&&(Dn[e][r]=n),n}function yn(t,r){return r&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return r!=null&&n in r?r[n]:e})),t}function ie(t,r,e="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=e));let s=String(t);for(;s.length<r;)s="0"+s;return n&&(s=s.slice(s.length-r)),o+s}function ka(t,r){return ie(t,3).substring(0,r)}function P(t,r,e=0,n=!1,i=!1){return function(o,s){let a=xa(t,o);if((e>0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return ka(a,r);let u=ce(s,V.MinusSign);return ie(a,r,u,n,i)}}function xa(t,r){switch(t){case 0:return r.getFullYear();case 1:return r.getMonth();case 2:return r.getDate();case 3:return r.getHours();case 4:return r.getMinutes();case 5:return r.getSeconds();case 6:return r.getMilliseconds();case 7:return r.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function I(t,r,e=U.Format,n=!1){return function(i,o){return Ua(i,o,t,r,e,n)}}function Ua(t,r,e,n,i,o){switch(e){case 2:return Go(r,i,n)[t.getMonth()];case 1:return Ho(r,i,n)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(o){let c=Yo(r),l=Ko(r,i,n),h=c.findIndex(v=>{if(Array.isArray(v)){let[g,b]=v,S=s>=g.hours&&a>=g.minutes,E=s<b.hours||s===b.hours&&a<b.minutes;if(g.hours<b.hours){if(S&&E)return!0}else if(S||E)return!0}else if(v.hours===s&&v.minutes===a)return!0;return!1});if(h!==-1)return l[h]}return Vo(r,i,n)[s<12?0:1];case 3:return qo(r,n)[t.getFullYear()<=0?0:1];default:let u=e;throw new Error(`unexpected translation type ${u}`)}}function wn(t){return function(r,e,n){let i=-1*n,o=ce(e,V.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case 0:return(i>=0?"+":"")+ie(s,2,o)+ie(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+ie(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+ie(s,2,o)+":"+ie(Math.abs(i%60),2,o);case 3:return n===0?"Z":(i>=0?"+":"")+ie(s,2,o)+":"+ie(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var Ba=0,En=4;function ja(t){let r=Sn(t,Ba,1).getDay();return Sn(t,0,1+(r<=En?En:En+7)-r)}function Jo(t){let r=t.getDay(),e=r===0?-3:En-r;return Sn(t.getFullYear(),t.getMonth(),t.getDate()+e)}function xr(t,r=!1){return function(e,n){let i;if(r){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();i=1+Math.floor((s+o)/7)}else{let o=Jo(e),s=ja(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return ie(i,t,ce(n,V.MinusSign))}}function Cn(t,r=!1){return function(e,n){let o=Jo(e).getFullYear();return ie(o,t,ce(n,V.MinusSign),r)}}var Ur={};function $a(t){if(Ur[t])return Ur[t];let r;switch(t){case"G":case"GG":case"GGG":r=I(3,_.Abbreviated);break;case"GGGG":r=I(3,_.Wide);break;case"GGGGG":r=I(3,_.Narrow);break;case"y":r=P(0,1,0,!1,!0);break;case"yy":r=P(0,2,0,!0,!0);break;case"yyy":r=P(0,3,0,!1,!0);break;case"yyyy":r=P(0,4,0,!1,!0);break;case"Y":r=Cn(1);break;case"YY":r=Cn(2,!0);break;case"YYY":r=Cn(3);break;case"YYYY":r=Cn(4);break;case"M":case"L":r=P(1,1,1);break;case"MM":case"LL":r=P(1,2,1);break;case"MMM":r=I(2,_.Abbreviated);break;case"MMMM":r=I(2,_.Wide);break;case"MMMMM":r=I(2,_.Narrow);break;case"LLL":r=I(2,_.Abbreviated,U.Standalone);break;case"LLLL":r=I(2,_.Wide,U.Standalone);break;case"LLLLL":r=I(2,_.Narrow,U.Standalone);break;case"w":r=xr(1);break;case"ww":r=xr(2);break;case"W":r=xr(1,!0);break;case"d":r=P(2,1);break;case"dd":r=P(2,2);break;case"c":case"cc":r=P(7,1);break;case"ccc":r=I(1,_.Abbreviated,U.Standalone);break;case"cccc":r=I(1,_.Wide,U.Standalone);break;case"ccccc":r=I(1,_.Narrow,U.Standalone);break;case"cccccc":r=I(1,_.Short,U.Standalone);break;case"E":case"EE":case"EEE":r=I(1,_.Abbreviated);break;case"EEEE":r=I(1,_.Wide);break;case"EEEEE":r=I(1,_.Narrow);break;case"EEEEEE":r=I(1,_.Short);break;case"a":case"aa":case"aaa":r=I(0,_.Abbreviated);break;case"aaaa":r=I(0,_.Wide);break;case"aaaaa":r=I(0,_.Narrow);break;case"b":case"bb":case"bbb":r=I(0,_.Abbreviated,U.Standalone,!0);break;case"bbbb":r=I(0,_.Wide,U.Standalone,!0);break;case"bbbbb":r=I(0,_.Narrow,U.Standalone,!0);break;case"B":case"BB":case"BBB":r=I(0,_.Abbreviated,U.Format,!0);break;case"BBBB":r=I(0,_.Wide,U.Format,!0);break;case"BBBBB":r=I(0,_.Narrow,U.Format,!0);break;case"h":r=P(3,1,-12);break;case"hh":r=P(3,2,-12);break;case"H":r=P(3,1);break;case"HH":r=P(3,2);break;case"m":r=P(4,1);break;case"mm":r=P(4,2);break;case"s":r=P(5,1);break;case"ss":r=P(5,2);break;case"S":r=P(6,1);break;case"SS":r=P(6,2);break;case"SSS":r=P(6,3);break;case"Z":case"ZZ":case"ZZZ":r=wn(0);break;case"ZZZZZ":r=wn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=wn(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=wn(2);break;default:return null}return Ur[t]=r,r}function Qo(t,r){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?r:e}function za(t,r){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+r),t}function Va(t,r,e){let i=t.getTimezoneOffset(),o=Qo(r,i);return za(t,-1*(o-i))}function Ha(t){if(ko(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return Sn(i,o-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Na))return Ga(n)}let r=new Date(t);if(!ko(r))throw new Error(`Unable to convert "${t}" into a date`);return r}function Ga(t){let r=new Date(0),e=0,n=0,i=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(r,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,a,u,c),r}function ko(t){return t instanceof Date&&!isNaN(t.valueOf())}var qa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,xo=22,bn=".",Mt="0",Wa=";",Za=",",Br="#";function Ya(t,r,e,n,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=ce(e,V.Infinity);else{let c=Ja(t);s&&(c=Xa(c));let l=r.minInt,h=r.minFrac,v=r.maxFrac;if(o){let ee=o.match(qa);if(ee===null)throw new Error(`${o} is not a valid digit info`);let M=ee[1],Be=ee[3],on=ee[5];M!=null&&(l=jr(M)),Be!=null&&(h=jr(Be)),on!=null?v=jr(on):Be!=null&&h>v&&(v=h)}Qa(c,h,v);let g=c.digits,b=c.integerLen,S=c.exponent,E=[];for(u=g.every(ee=>!ee);b<l;b++)g.unshift(0);for(;b<0;b++)g.unshift(0);b>0?E=g.splice(b,g.length):(E=g,g=[0]);let B=[];for(g.length>=r.lgSize&&B.unshift(g.splice(-r.lgSize,g.length).join(""));g.length>r.gSize;)B.unshift(g.splice(-r.gSize,g.length).join(""));g.length&&B.unshift(g.join("")),a=B.join(ce(e,n)),E.length&&(a+=ce(e,i)+E.join("")),S&&(a+=ce(e,V.Exponential)+"+"+S)}return t<0&&!u?a=r.negPre+a+r.negSuf:a=r.posPre+a+r.posSuf,a}function es(t,r,e){let n=Wo(r,Gr.Decimal),i=Ka(n,ce(r,V.MinusSign));return Ya(t,i,r,V.Group,V.Decimal,e)}function Ka(t,r="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(Wa),i=n[0],o=n[1],s=i.indexOf(bn)!==-1?i.split(bn):[i.substring(0,i.lastIndexOf(Mt)+1),i.substring(i.lastIndexOf(Mt)+1)],a=s[0],u=s[1]||"";e.posPre=a.substring(0,a.indexOf(Br));for(let l=0;l<u.length;l++){let h=u.charAt(l);h===Mt?e.minFrac=e.maxFrac=l+1:h===Br?e.maxFrac=l+1:e.posSuf+=h}let c=a.split(Za);if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let l=i.length-e.posPre.length-e.posSuf.length,h=o.indexOf(Br);e.negPre=o.substring(0,h).replace(/'/g,""),e.negSuf=o.slice(h+l).replace(/'/g,"")}else e.negPre=r+e.posPre,e.negSuf=e.posSuf;return e}function Xa(t){if(t.digits[0]===0)return t;let r=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(r===0?t.digits.push(0,0):r===1&&t.digits.push(0),t.integerLen+=2),t}function Ja(t){let r=Math.abs(t)+"",e=0,n,i,o,s,a;for((i=r.indexOf(bn))>-1&&(r=r.replace(bn,"")),(o=r.search(/e/i))>0?(i<0&&(i=o),i+=+r.slice(o+1),r=r.substring(0,o)):i<0&&(i=r.length),o=0;r.charAt(o)===Mt;o++);if(o===(a=r.length))n=[0],i=1;else{for(a--;r.charAt(a)===Mt;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(r.charAt(o))}return i>xo&&(n=n.splice(0,xo-1),e=i-1,i=1),{digits:n,exponent:e,integerLen:i}}function Qa(t,r,e){if(r>e)throw new Error(`The minimum number of digits after fraction (${r}) is higher than the maximum (${e}).`);let n=t.digits,i=n.length-t.integerLen,o=Math.min(Math.max(r,i),e),s=o+t.integerLen,a=n[s];if(s>0){n.splice(Math.max(t.integerLen,s));for(let h=s;h<n.length;h++)n[h]=0}else{i=Math.max(0,i),t.integerLen=1,n.length=Math.max(1,s=o+1),n[0]=0;for(let h=1;h<s;h++)n[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[s-1]++;for(;i<Math.max(0,o);i++)n.push(0);let u=o!==0,c=r+t.integerLen,l=n.reduceRight(function(h,v,g,b){return v=v+h,b[g]=v<10?v:v-10,u&&(b[g]===0&&g>=c?b.pop():u=!1),v>=10?1:0},0);l&&(n.unshift(l),t.integerLen++)}function jr(t){let r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}var $r=/\s+/,Uo=[],eu=(()=>{class t{_ngEl;_renderer;initialClasses=Uo;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split($r):Uo}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split($r):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],i=e[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split($r).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||t)(T(Ae),T(_e))};static \u0275dir=$({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})(),tu=(()=>{class t{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0||e.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=fo(this.ngComponentOutletNgModule,Bo(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Bo(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[n,i]of this._inputsUsed)i?(e.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(e.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||t)(T(Ge))};static \u0275dir=$({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[ae]})}return t})();function Bo(t){return t.get(lo).injector}var Rn=class{$implicit;ngForOf;index;count;constructor(r,e,n,i){this.$implicit=r,this.ngForOf=e,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},ts=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,i){this._viewContainer=e,this._template=n,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new Rn(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(o===null?void 0:o);else if(o!==null){let a=n.get(o);n.move(a,s),jo(a,i)}});for(let i=0,o=n.length;i<o;i++){let a=n.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{let o=n.get(i.currentIndex);jo(o,i)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(T(Ge),T(Tr),T(To))};static \u0275dir=$({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function jo(t,r){t.context.$implicit=r.item}var nu=(()=>{class t{_viewContainer;_context=new An;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$o(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$o(e,!1),this._elseTemplateRef=e,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(T(Ge),T(Tr))};static \u0275dir=$({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),An=class{$implicit=null;ngIf=null};function $o(t,r){if(t&&!t.createEmbeddedView)throw new w(2020,!1)}var ru=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,i){this._ngEl=e,this._differs=n,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:He.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${n}${o}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(T(Ae),T(_o),T(_e))};static \u0275dir=$({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),iu=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(e,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||t)(T(Ge))};static \u0275dir=$({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ae]})}return t})();function qr(t,r){return new w(2100,!1)}var zr=class{createSubscription(r,e){return pn(()=>r.subscribe({next:e,error:n=>{throw n}}))}dispose(r){pn(()=>r.unsubscribe())}},Vr=class{createSubscription(r,e){return r.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(r){r.unsubscribe()}},ou=new Vr,su=new zr,au=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(fn(e))return ou;if(mo(e))return su;throw qr(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(T(Me,16))};static \u0275pipe=bt({name:"async",type:t,pure:!1})}return t})();var uu="mediumDate",ns=new C(""),rs=new C(""),cu=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,i){this.locale=e,this.defaultTimezone=n,this.defaultOptions=i}transform(e,n,i,o){if(e==null||e===""||e!==e)return null;try{let s=n??this.defaultOptions?.dateFormat??uu,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Xo(e,s,o||this.locale,a)}catch(s){throw qr(t,s.message)}}static \u0275fac=function(n){return new(n||t)(T(Or,16),T(ns,24),T(rs,24))};static \u0275pipe=bt({name:"date",type:t,pure:!0})}return t})();var lu=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=bt({name:"json",type:t,pure:!1})}return t})();var du=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,n,i){if(!hu(e))return null;i||=this._locale;try{let o=fu(e);return es(o,i,n)}catch(o){throw qr(t,o.message)}}static \u0275fac=function(n){return new(n||t)(T(Or,16))};static \u0275pipe=bt({name:"number",type:t,pure:!0})}return t})();function hu(t){return!(t==null||t===""||t!==t)}function fu(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var Wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({})}return t})();function Ft(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var Tn="browser",is="server";function pu(t){return t===Tn}function _n(t){return t===is}var qe=class{};var ss=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new Zr(d(O),window)})}return t})(),Zr=class{document;window;offset=()=>[0,0];constructor(r,e){this.document=r,this.window=e}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){let e=Du(this.document,r);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){let e=r.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function Du(t,r){let e=t.getElementById(r)||t.getElementsByName(r)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}i=n.nextNode()}}return null}var yu="20";function wu(t){return/^https?:\/\//.test(t)}function Cu(t){if(!(typeof t=="string")||t.trim()==="")return!1;try{let e=new URL(t);return!0}catch{return!1}}function Eu(t){return t.endsWith("/")?t.slice(0,-1):t}function Su(t){return t.startsWith("/")?t.slice(1):t}var as=t=>t.src,us=new C("",{providedIn:"root",factory:()=>as});function bu(t,r){return function(n){return Cu(n)||Ru(n,r||[]),n=Eu(n),[{provide:us,useValue:s=>(wu(s.src)&&Au(n,s.src),t(n,L(f({},s),{src:Su(s.src)})))}]}}function Ru(t,r){throw new w(2959,!1)}function Au(t,r){throw new w(2959,!1)}var _h=bu(Tu,void 0);function Tu(t,r){let e=new URL(`${t}/${r.src}`);return e.searchParams.set("auto","format"),r.width&&e.searchParams.set("w",r.width.toString()),r.isPlaceholder&&e.searchParams.set("q",yu),e.href}var os=/^((\s*\d+w\s*(,|$)){1,})$/;var _u=[1,2],Iu=640;var Mu=1920,Fu=1080;var Ih=(()=>{class t{imageLoader=d(us);config=Ou(d(Xi));renderer=d(_e);imgElement=d(Ae).nativeElement;injector=d(De);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){cn("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?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");let e=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&os.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(e){let n=e;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=os.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let o=e?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:o})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,n=e;return this.sizes?.trim()==="100vw"&&(n=e.filter(o=>o>=Iu)),n.map(o=>`${this.callImageLoader({src:this.ngSrc,width:o})} ${o}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return _u.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>Mu||this.height>Fu),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==as&&!e}generatePlaceholder(e){let{placeholderResolution:n}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let n=()=>{let s=this.injector.get(Me);i(),o(),this.placeholder=!1,s.markForCheck()},i=this.renderer.listen(e,"load",n),o=this.renderer.listen(e,"error",n);Pu(e,n)}setHostAttribute(e,n){this.renderer.setAttribute(this.imgElement,e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$({type:t,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,i){n&2&&yo("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Nu],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Pr],height:[2,"height","height",Pr],loading:"loading",priority:[2,"priority","priority",ye],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",ye],fill:[2,"fill","fill",ye],placeholder:[2,"placeholder","placeholder",Lu],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[ae]})}return t})();function Ou(t){let r={};return t.breakpoints&&(r.breakpoints=t.breakpoints.sort((e,n)=>e-n)),Object.assign({},Ki,t,r)}function Pu(t,r){t.complete&&t.naturalWidth&&r()}function Nu(t){return typeof t=="string"?t:Te(t)}function Lu(t){return typeof t=="string"&&t!=="true"&&t!=="false"&&t!==""?t:ye(t)}var Fn=new C(""),Jr=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new w(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(m(Fn),m(J))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Ot=class{_doc;constructor(r){this._doc=r}manager},In="ng-app-id";function cs(t){for(let r of t)r.remove()}function ls(t,r){let e=r.createElement("style");return e.textContent=t,e}function xu(t,r,e,n){let i=t.head?.querySelectorAll(`style[${In}="${r}"],link[${In}="${r}"]`);if(i)for(let o of i)o.removeAttribute(In),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Kr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Qr=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.isServer=_n(o),xu(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,ls);n?.forEach(i=>this.addUsage(i,this.external,Kr))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(cs(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])cs(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,ls(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,Kr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(In,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(m(O),m(Rr),m(Ar,8),m(tt))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Yr={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/Math/MathML"},ei=/%COMP%/g;var hs="%COMP%",Uu=`_nghost-${hs}`,Bu=`_ngcontent-${hs}`,ju=!0,$u=new C("",{providedIn:"root",factory:()=>ju});function zu(t){return Bu.replace(ei,t)}function Vu(t){return Uu.replace(ei,t)}function fs(t,r){return r.map(e=>e.replace(ei,t))}var ti=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,u,c=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.tracingService=l,this.platformIsServer=_n(a),this.defaultRenderer=new Pt(e,s,u,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===St.ShadowDom&&(n=L(f({},n),{encapsulation:St.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof Mn?i.applyToHost(e):i instanceof Nt&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer,v=this.tracingService;switch(n.encapsulation){case St.Emulated:o=new Mn(u,c,n,this.appId,l,s,a,h,v);break;case St.ShadowDom:return new Xr(u,c,e,n,s,a,this.nonce,h,v);default:o=new Nt(u,c,n,l,s,a,h,v);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(m(Jr),m(Qr),m(Rr),m($u),m(O),m(tt),m(J),m(Ar),m(Ji,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Pt=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(Yr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(ds(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(ds(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new w(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=Yr[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=Yr[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(He.DashCase|He.Important)?r.style.setProperty(e,n,i&He.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&He.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=ue().getGlobalEventTarget(this.doc,r),!r))throw new w(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function ds(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Xr=class extends Pt{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,u,c),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=fs(i.id,l);for(let v of l){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=v,this.shadowRoot.appendChild(g)}let h=i.getExternalStyles?.();if(h)for(let v of h){let g=Kr(v,o);a&&g.setAttribute("nonce",a),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Nt=class extends Pt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,u,c){super(r,o,s,a,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=c?fs(c,l):l,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Mn=class extends Nt{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,u,c){let l=i+"-"+n.id;super(r,e,n,o,s,a,u,c,l),this.contentAttr=zu(l),this.hostAttr=Vu(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var On=class t extends Rt{supportsDOMEvents=!0;static makeCurrent(){Nr(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Hu();return e==null?null:Gu(e)}resetBaseElement(){Lt=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Ft(document.cookie,r)}},Lt=null;function Hu(){return Lt=Lt||document.head.querySelector("base"),Lt?Lt.getAttribute("href"):null}function Gu(t){return new URL(t,document.baseURI).pathname}var Pn=class{addToWindow(r){ve.getAngularTestability=(n,i=!0)=>{let o=r.findTestabilityInTree(n,i);if(o==null)throw new w(5103,!1);return o},ve.getAllAngularTestabilities=()=>r.getAllTestabilities(),ve.getAllAngularRootElements=()=>r.getAllRootElements();let e=n=>{let i=ve.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};ve.frameworkStabilizers||(ve.frameworkStabilizers=[]),ve.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,n){if(e==null)return null;let i=r.getTestability(e);return i??(n?ue().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},qu=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),gs=(()=>{class t extends Ot{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ps=["alt","control","meta","shift"],Wu={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},ms=(()=>{class t extends Ot{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ue().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),ps.forEach(c=>{let l=n.indexOf(c);l>-1&&(n.splice(l,1),s+=c+".")}),s+=o,n.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(e,n){let i=Wu[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),ps.forEach(s=>{if(s!==i){let a=Zu[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Yu(){On.makeCurrent()}function Ku(){return new br}function Xu(){return Zi(document),document}var Ju=[{provide:tt,useValue:Tn},{provide:Yi,useValue:Yu,multi:!0},{provide:O,useFactory:Xu}],Qu=Ao(Io,"browser",Ju);var ec=[{provide:dn,useClass:Pn},{provide:go,useClass:hn,deps:[J,Ir,dn]},{provide:hn,useClass:hn,deps:[J,Ir,dn]}],tc=[{provide:Gi,useValue:"root"},{provide:br,useFactory:Ku},{provide:Fn,useClass:gs,multi:!0,deps:[O]},{provide:Fn,useClass:ms,multi:!0,deps:[O]},ti,Qr,Jr,{provide:uo,useExisting:ti},{provide:qe,useClass:qu},[]],nc=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({providers:[...tc,...ec],imports:[Wr,Mo]})}return t})();var it=class{},kt=class{},Pe=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
|
|
2
|
-
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Ln=class{encodeKey(r){return vs(r)}encodeValue(r){return vs(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function rc(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],u=e.get(s)||[];u.push(a),e.set(s,u)}),e}var ic=/%(\d[a-f0-9])/gi,oc={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vs(t){return encodeURIComponent(t).replace(ic,(r,e)=>oc[e]??r)}function Nn(t){return`${t}`}var Ce=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Ln,r.fromString){if(r.fromObject)throw new w(2805,!1);this.map=rc(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Nn):[Nn(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Nn(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Nn(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var kn=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function sc(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ds(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ys(t){return typeof Blob<"u"&&t instanceof Blob}function ws(t){return typeof FormData<"u"&&t instanceof FormData}function ac(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Cs="Content-Type",Es="Accept",bs="X-Request-URL",Rs="text/plain",As="application/json",uc=`${As}, ${Rs}, */*`,rt=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let o;if(sc(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Pe,this.context??=new kn,!this.params)this.params=new Ce,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),u=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Ds(this.body)||ys(this.body)||ws(this.body)||ac(this.body)?this.body:this.body instanceof Ce?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ws(this.body)?null:ys(this.body)?this.body.type||null:Ds(this.body)?null:typeof this.body=="string"?Rs:this.body instanceof Ce?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?As:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.transferCache??this.transferCache,s=r.body!==void 0?r.body:this.body,a=r.withCredentials??this.withCredentials,u=r.reportProgress??this.reportProgress,c=r.headers||this.headers,l=r.params||this.params,h=r.context??this.context;return r.setHeaders!==void 0&&(c=Object.keys(r.setHeaders).reduce((v,g)=>v.set(g,r.setHeaders[g]),c)),r.setParams&&(l=Object.keys(r.setParams).reduce((v,g)=>v.set(g,r.setParams[g]),l)),new t(e,n,s,{params:l,headers:c,context:h,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},We=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(We||{}),ot=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new Pe,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},xn=class t extends ot{constructor(r={}){super(r)}type=We.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},xt=class t extends ot{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=We.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},Ut=class extends ot{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},cc=200,lc=204;function ni(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ts=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof rt)o=e;else{let u;i.headers instanceof Pe?u=i.headers:u=new Pe(i.headers);let c;i.params&&(i.params instanceof Ce?c=i.params:c=new Ce({fromObject:i.params})),o=new rt(e,n,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=p(o).pipe(me(u=>this.handler.handle(u)));if(e instanceof rt||i.observe==="events")return s;let a=s.pipe(se(u=>u instanceof xt));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(R(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new w(2806,!1);return u.body}));case"blob":return a.pipe(R(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new w(2807,!1);return u.body}));case"text":return a.pipe(R(u=>{if(u.body!==null&&typeof u.body!="string")throw new w(2808,!1);return u.body}));case"json":default:return a.pipe(R(u=>u.body))}case"response":return a;default:throw new w(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Ce().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,ni(i,n))}post(e,n,i={}){return this.request("POST",e,ni(i,n))}put(e,n,i={}){return this.request("PUT",e,ni(i,n))}static \u0275fac=function(n){return new(n||t)(m(it))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var dc=new C("");function _s(t,r){return r(t)}function hc(t,r){return(e,n)=>r.intercept(e,{handle:i=>t(i,n)})}function fc(t,r,e){return(n,i)=>X(e,()=>r(n,o=>t(o,i)))}var Is=new C(""),ii=new C(""),Ms=new C(""),oi=new C("",{providedIn:"root",factory:()=>!0});function pc(){let t=null;return(r,e)=>{t===null&&(t=(d(Is,{optional:!0})??[]).reduceRight(hc,_s));let n=d(Et);if(d(oi)){let o=n.add();return t(r,e).pipe($e(()=>n.remove(o)))}else return t(r,e)}}var Un=(()=>{class t extends it{backend;injector;chain=null;pendingTasks=d(Et);contributeToStability=d(oi);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(ii),...this.injector.get(Ms,[])]));this.chain=n.reduceRight((i,o)=>fc(i,o,this.injector),_s)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe($e(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(m(kt),m(Re))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var gc=/^\)\]\}',?\n/,mc=RegExp(`^${bs}:`,"m");function vc(t){return"responseURL"in t&&t.responseURL?t.responseURL:mc.test(t.getAllResponseHeaders())?t.getResponseHeader(bs):null}var ri=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new w(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?k(n.\u0275loadImpl()):p(null)).pipe(G(()=>new Dt(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((S,E)=>s.setRequestHeader(S,E.join(","))),e.headers.has(Es)||s.setRequestHeader(Es,uc),!e.headers.has(Cs)){let S=e.detectContentTypeHeader();S!==null&&s.setRequestHeader(Cs,S)}if(e.responseType){let S=e.responseType.toLowerCase();s.responseType=S!=="json"?S:"text"}let a=e.serializeBody(),u=null,c=()=>{if(u!==null)return u;let S=s.statusText||"OK",E=new Pe(s.getAllResponseHeaders()),B=vc(s)||e.url;return u=new xn({headers:E,status:s.status,statusText:S,url:B}),u},l=()=>{let{headers:S,status:E,statusText:B,url:ee}=c(),M=null;E!==lc&&(M=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=M?cc:0);let Be=E>=200&&E<300;if(e.responseType==="json"&&typeof M=="string"){let on=M;M=M.replace(gc,"");try{M=M!==""?JSON.parse(M):null}catch(Ma){M=on,Be&&(Be=!1,M={error:Ma,text:M})}}Be?(o.next(new xt({body:M,headers:S,status:E,statusText:B,url:ee||void 0})),o.complete()):o.error(new Ut({error:M,headers:S,status:E,statusText:B,url:ee||void 0}))},h=S=>{let{url:E}=c(),B=new Ut({error:S,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(B)},v=!1,g=S=>{v||(o.next(c()),v=!0);let E={type:We.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(E.total=S.total),e.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),o.next(E)},b=S=>{let E={type:We.UploadProgress,loaded:S.loaded};S.lengthComputable&&(E.total=S.total),o.next(E)};return s.addEventListener("load",l),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:We.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",l),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(m(qe))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Fs=new C(""),Dc="XSRF-TOKEN",yc=new C("",{providedIn:"root",factory:()=>Dc}),wc="X-XSRF-TOKEN",Cc=new C("",{providedIn:"root",factory:()=>wc}),Bt=class{},Ec=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ft(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(m(O),m(yc))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Sc(t,r){let e=t.url.toLowerCase();if(!d(Fs)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(Bt).getToken(),i=d(Cc);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var si=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(si||{});function bc(t,r){return{\u0275kind:t,\u0275providers:r}}function Rc(...t){let r=[Ts,ri,Un,{provide:it,useExisting:Un},{provide:kt,useFactory:()=>d(dc,{optional:!0})??d(ri)},{provide:ii,useValue:Sc,multi:!0},{provide:Fs,useValue:!0},{provide:Bt,useClass:Ec}];for(let e of t)r.push(...e.\u0275providers);return un(r)}var Ss=new C("");function Ac(){return bc(si.LegacyInterceptors,[{provide:Ss,useFactory:pc},{provide:ii,useExisting:Ss,multi:!0}])}var Os=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _c=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=m(Ic),i},providedIn:"root"})}return t})(),Ic=(()=>{class t extends _c{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ve.NONE:return n;case Ve.HTML:return nt(n,"HTML")?Te(n):so(this._doc,String(n)).toString();case Ve.STYLE:return nt(n,"Style")?Te(n):n;case Ve.SCRIPT:if(nt(n,"Script"))return Te(n);throw new w(5200,!1);case Ve.URL:return nt(n,"URL")?Te(n):oo(String(n));case Ve.RESOURCE_URL:if(nt(n,"ResourceURL"))return Te(n);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(e){return eo(e)}bypassSecurityTrustStyle(e){return to(e)}bypassSecurityTrustScript(e){return no(e)}bypassSecurityTrustUrl(e){return ro(e)}bypassSecurityTrustResourceUrl(e){return io(e)}static \u0275fac=function(n){return new(n||t)(m(O))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var y="primary",Jt=Symbol("RouteTitle"),di=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ke(t){return new di(t)}function js(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Fc(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!le(t[e],r[e]))return!1;return!0}function le(t,r){let e=t?hi(t):void 0,n=r?hi(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!$s(t[i],r[i]))return!1;return!0}function hi(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function $s(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function zs(t){return t.length>0?t[t.length-1]:null}function Ue(t){return Ui(t)?t:fn(t)?k(Promise.resolve(t)):p(t)}var Oc={exact:Hs,subset:Gs},Vs={exact:Pc,subset:Nc,ignored:()=>!0};function Ps(t,r,e){return Oc[e.paths](t.root,r.root,e.matrixParams)&&Vs[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Pc(t,r){return le(t,r)}function Hs(t,r,e){if(!Ze(t.segments,r.segments)||!$n(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hs(t.children[n],r.children[n],e))return!1;return!0}function Nc(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>$s(t[e],r[e]))}function Gs(t,r,e){return qs(t,r,r.segments,e)}function qs(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Ze(i,e)||r.hasChildren()||!$n(i,e,n))}else if(t.segments.length===e.length){if(!Ze(t.segments,e)||!$n(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Gs(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ze(t.segments,i)||!$n(t.segments,i,n)||!t.children[y]?!1:qs(t.children[y],r,o,n)}}function $n(t,r,e){return r.every((n,i)=>Vs[e](t[i].parameters,n.parameters))}var he=class{root;queryParams;fragment;_queryParamMap;constructor(r=new A([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ke(this.queryParams),this._queryParamMap}toString(){return xc.serialize(this)}},A=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zn(this)}},Ne=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Ke(this.parameters),this._parameterMap}toString(){return Zs(this)}};function Lc(t,r){return Ze(t,r)&&t.every((e,n)=>le(e.parameters,r[n].parameters))}function Ze(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function kc(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===y&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==y&&(e=e.concat(r(i,n)))}),e}var Xe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>new Le,providedIn:"root"})}return t})(),Le=class{parse(r){let e=new pi(r);return new he(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${jt(r.root,!0)}`,n=jc(r.queryParams),i=typeof r.fragment=="string"?`#${Uc(r.fragment)}`:"";return`${e}${n}${i}`}},xc=new Le;function zn(t){return t.segments.map(r=>Zs(r)).join("/")}function jt(t,r){if(!t.hasChildren())return zn(t);if(r){let e=t.children[y]?jt(t.children[y],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==y&&n.push(`${i}:${jt(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=kc(t,(n,i)=>i===y?[jt(t.children[y],!1)]:[`${i}:${jt(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[y]!=null?`${zn(t)}/${e[0]}`:`${zn(t)}/(${e.join("//")})`}}function Ws(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bn(t){return Ws(t).replace(/%3B/gi,";")}function Uc(t){return encodeURI(t)}function fi(t){return Ws(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vn(t){return decodeURIComponent(t)}function Ns(t){return Vn(t.replace(/\+/g,"%20"))}function Zs(t){return`${fi(t.path)}${Bc(t.parameters)}`}function Bc(t){return Object.entries(t).map(([r,e])=>`;${fi(r)}=${fi(e)}`).join("")}function jc(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Bn(e)}=${Bn(i)}`).join("&"):`${Bn(e)}=${Bn(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var $c=/^[^\/()?;#]+/;function ai(t){let r=t.match($c);return r?r[0]:""}var zc=/^[^\/()?;=#]+/;function Vc(t){let r=t.match(zc);return r?r[0]:""}var Hc=/^[^=?&#]+/;function Gc(t){let r=t.match(Hc);return r?r[0]:""}var qc=/^[^&#]+/;function Wc(t){let r=t.match(qc);return r?r[0]:""}var pi=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new A([],{}):new A([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[y]=new A(r,e)),n}parseSegment(){let r=ai(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new Ne(Vn(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Vc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=ai(this.remaining);i&&(n=i,this.capture(n))}r[Vn(e)]=Vn(n)}parseQueryParam(r){let e=Gc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Wc(this.remaining);s&&(n=s,this.capture(n))}let i=Ns(e),o=Ns(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ai(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=y);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[y]:new A([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Ys(t){return t.segments.length>0?new A([],{[y]:t}):t}function Ks(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Ks(i);if(n===y&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new A(t.segments,r);return Zc(e)}function Zc(t){if(t.numberOfChildren===1&&t.children[y]){let r=t.children[y];return new A(t.segments.concat(r.segments),r.children)}return t}function ke(t){return t instanceof he}function Xs(t,r,e=null,n=null){let i=Js(t);return Qs(i,r,e,n)}function Js(t){let r;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new A(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=Ys(n);return r??i}function Qs(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return ui(i,i,i,e,n);let o=Yc(r);if(o.toRoot())return ui(i,i,new A([],{}),e,n);let s=Kc(o,i,t),a=s.processChildren?zt(s.segmentGroup,s.index,o.commands):ta(s.segmentGroup,s.index,o.commands);return ui(i,s.segmentGroup,a,e,n)}function Gn(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ht(t){return typeof t=="object"&&t!=null&&t.outlets}function ui(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===r?s=e:s=ea(t,r,e);let a=Ys(Ks(s));return new he(a,o,i)}function ea(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=ea(o,r,e)}),new A(t.segments,n)}var qn=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&Gn(n[0]))throw new w(4003,!1);let i=n.find(Ht);if(i&&i!==zs(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yc(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new qn(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new qn(e,r,n)}var ut=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Kc(t,r,e){if(t.isAbsolute)return new ut(r,!0,0);if(!e)return new ut(r,!1,NaN);if(e.parent===null)return new ut(e,!0,0);let n=Gn(t.commands[0])?0:1,i=e.segments.length-1+n;return Xc(e,i,t.numberOfDoubleDots)}function Xc(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ut(n,!1,i-o)}function Jc(t){return Ht(t[0])?t[0].outlets:{[y]:t}}function ta(t,r,e){if(t??=new A([],{}),t.segments.length===0&&t.hasChildren())return zt(t,r,e);let n=Qc(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new A(t.segments.slice(0,n.pathIndex),{});return o.children[y]=new A(t.segments.slice(n.pathIndex),t.children),zt(o,0,i)}else return n.match&&i.length===0?new A(t.segments,{}):n.match&&!t.hasChildren()?gi(t,r,e):n.match?zt(t,0,i):gi(t,r,e)}function zt(t,r,e){if(e.length===0)return new A(t.segments,{});{let n=Jc(e),i={};if(Object.keys(n).some(o=>o!==y)&&t.children[y]&&t.numberOfChildren===1&&t.children[y].segments.length===0){let o=zt(t.children[y],r,e);return new A(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=ta(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new A(t.segments,i)}}function Qc(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(Ht(a))break;let u=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!ks(u,c,s))return o;n+=2}else{if(!ks(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function gi(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Ht(o)){let u=el(o.outlets);return new A(n,u)}if(i===0&&Gn(e[0])){let u=t.segments[r];n.push(new Ne(u.path,Ls(e[0]))),i++;continue}let s=Ht(o)?o.outlets[y]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Gn(a)?(n.push(new Ne(s,Ls(a))),i+=2):(n.push(new Ne(s,{})),i++)}return new A(n,{})}function el(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=gi(new A([],{}),0,n))}),r}function Ls(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function ks(t,r,e){return t==e.path&&le(r,e.parameters)}var Hn="imperative",N=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(N||{}),Z=class{id;url;constructor(r,e){this.id=r,this.url=e}},xe=class extends Z{type=N.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Y=class extends Z{urlAfterRedirects;type=N.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},H=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(H||{}),lt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(lt||{}),de=class extends Z{reason;code;type=N.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fe=class extends Z{reason;code;type=N.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},dt=class extends Z{error;target;type=N.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gt=class extends Z{urlAfterRedirects;state;type=N.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wn=class extends Z{urlAfterRedirects;state;type=N.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zn=class extends Z{urlAfterRedirects;state;shouldActivate;type=N.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Yn=class extends Z{urlAfterRedirects;state;type=N.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kn=class extends Z{urlAfterRedirects;state;type=N.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xn=class{route;type=N.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Jn=class{route;type=N.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qn=class{snapshot;type=N.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},er=class{snapshot;type=N.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tr=class{snapshot;type=N.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nr=class{snapshot;type=N.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=class{routerEvent;position;anchor;type=N.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},qt=class{},ft=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function tl(t,r){return t.providers&&!t._injector&&(t._injector=ln(t.providers,r,`Route: ${t.path}`)),t._injector??r}function oe(t){return t.outlet||y}function nl(t,r){let e=t.filter(n=>oe(n)===r);return e.push(...t.filter(n=>oe(n)!==r)),e}function Qt(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var rr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Qt(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Je(this.rootInjector)}},Je=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new rr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(m(Re))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ir=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=mi(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=mi(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=vi(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return vi(r,this._root).map(e=>e.value)}};function mi(t,r){if(t===r.value)return r;for(let e of r.children){let n=mi(t,e);if(n)return n}return null}function vi(t,r){if(t===r.value)return[r];for(let e of r.children){let n=vi(t,e);if(n.length)return n.unshift(r),n}return[]}var W=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function at(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Wt=class extends ir{snapshot;constructor(r,e){super(r),this.snapshot=e,Ri(this,r)}toString(){return this.snapshot.toString()}};function na(t){let r=rl(t),e=new K([new Ne("",{})]),n=new K({}),i=new K({}),o=new K({}),s=new K(""),a=new Ee(e,n,o,s,i,y,t,r.root);return a.snapshot=r.root,new Wt(new W(a,[]),r)}function rl(t){let r={},e={},n={},i="",o=new Ye([],r,n,i,e,y,t,null,{});return new Zt("",new W(o,[]))}var Ee=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,u){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(R(c=>c[Jt]))??p(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}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.params.pipe(R(r=>Ke(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(R(r=>Ke(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function or(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:f(f({},r.params),t.params),data:f(f({},r.data),t.data),resolve:f(f(f(f({},t.data),r.data),i?.data),t._resolvedData)}:n={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&ia(i)&&(n.resolve[Jt]=i.title),n}var Ye=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Jt]}constructor(r,e,n,i,o,s,a,u,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=Ke(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ke(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Zt=class extends ir{url;constructor(r,e){super(e),this.url=r,Ri(this,e)}toString(){return ra(this._root)}};function Ri(t,r){r.value._routerState=t,r.children.forEach(e=>Ri(t,e))}function ra(t){let r=t.children.length>0?` { ${t.children.map(ra).join(", ")} } `:"";return`${t.value}${r}`}function ci(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,le(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),le(r.params,e.params)||t.paramsSubject.next(e.params),Fc(r.url,e.url)||t.urlSubject.next(e.url),le(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Di(t,r){let e=le(t.params,r.params)&&Lc(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Di(t.parent,r.parent))}function ia(t){return typeof t.title=="string"||t.title===null}var oa=new C(""),Ai=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=y;activateEvents=new ze;deactivateEvents=new ze;attachEvents=new ze;detachEvents=new ze;routerOutletData=Wi(void 0);parentContexts=d(Je);location=d(Ge);changeDetector=d(Me);inputBinder=d(en,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new yi(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ae]})}return t})(),yi=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Ee?this.route:r===Je?this.childContexts:r===oa?this.outletData:this.parent.get(r,e)}},en=new C(""),Ti=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=sn([n.queryParams,n.params,n.data]).pipe(G(([o,s,a],u)=>(a=f(f(f({},o),s),a),u===0?p(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Fo(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),_i=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=po({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&wo(0,"router-outlet")},dependencies:[Ai],encapsulation:2})}return t})();function Ii(t){let r=t.children&&t.children.map(Ii),e=r?L(f({},t),{children:r}):f({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==y&&(e.component=_i),e}function il(t,r,e){let n=Yt(t,r._root,e?e._root:void 0);return new Wt(n,r)}function Yt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=ol(t,r,e);return new W(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Yt(t,a)),s}}let n=sl(r.value),i=r.children.map(o=>Yt(t,o));return new W(n,i)}}function ol(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Yt(t,n,i);return Yt(t,n)})}function sl(t){return new Ee(new K(t.url),new K(t.params),new K(t.queryParams),new K(t.fragment),new K(t.data),t.outlet,t.component,t)}var pt=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sa="ngNavigationCancelingError";function sr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ke(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=aa(!1,H.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function aa(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sa]=!0,e.cancellationCode=r,e}function al(t){return ua(t)&&ke(t.url)}function ua(t){return!!t&&t[sa]}var ul=(t,r,e,n)=>R(i=>(new wi(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),wi=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),ci(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=at(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=at(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=at(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=at(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new nr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new er(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(ci(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ci(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},ar=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ct=class{component;route;constructor(r,e){this.component=r,this.route=e}};function cl(t,r,e){let n=t._root,i=r?r._root:null;return $t(n,i,e,[n.value])}function ll(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function mt(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Hi(t)?t:r.get(t):n}function $t(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=at(r);return t.children.forEach(s=>{dl(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Vt(a,e.getContext(s),i)),i}function dl(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=hl(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new ar(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$t(t,r,a?a.children:null,n,i):$t(t,r,e,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ct(a.outlet.component,s))}else s&&Vt(r,a,i),i.canActivateChecks.push(new ar(n)),o.component?$t(t,null,a?a.children:null,n,i):$t(t,null,e,n,i);return i}function hl(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Ze(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Ze(t.url,r.url)||!le(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Di(t,r)||!le(t.queryParams,r.queryParams);case"paramsChange":default:return!Di(t,r)}}function Vt(t,r,e){let n=at(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Vt(s,r.children.getContext(o),e):Vt(s,null,e):Vt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ct(r.outlet.component,i)):e.canDeactivateChecks.push(new ct(null,i)):e.canDeactivateChecks.push(new ct(null,i))}function tn(t){return typeof t=="function"}function fl(t){return typeof t=="boolean"}function pl(t){return t&&tn(t.canLoad)}function gl(t){return t&&tn(t.canActivate)}function ml(t){return t&&tn(t.canActivateChild)}function vl(t){return t&&tn(t.canDeactivate)}function Dl(t){return t&&tn(t.canMatch)}function ca(t){return t instanceof Bi||t?.name==="EmptyError"}var jn=Symbol("INITIAL_VALUE");function gt(){return G(t=>sn(t.map(r=>r.pipe(et(1),Vi(jn)))).pipe(R(r=>{for(let e of r)if(e!==!0){if(e===jn)return jn;if(e===!1||yl(e))return e}return!0}),se(r=>r!==jn),et(1)))}function yl(t){return ke(t)||t instanceof pt}function wl(t,r){return j(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?p(L(f({},e),{guardsResult:!0})):Cl(s,n,i,t).pipe(j(a=>a&&fl(a)?El(n,o,t,r):p(a)),R(a=>L(f({},e),{guardsResult:a})))})}function Cl(t,r,e,n){return k(t).pipe(j(i=>Tl(i.component,i.route,e,r,n)),Se(i=>i!==!0,!0))}function El(t,r,e,n){return k(r).pipe(me(i=>ji(bl(i.route.parent,n),Sl(i.route,n),Al(t,i.path,e),Rl(t,i.route,e))),Se(i=>i!==!0,!0))}function Sl(t,r){return t!==null&&r&&r(new tr(t)),p(!0)}function bl(t,r){return t!==null&&r&&r(new Qn(t)),p(!0)}function Rl(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return p(!0);let i=n.map(o=>vr(()=>{let s=Qt(r)??e,a=mt(o,s),u=gl(a)?a.canActivate(r,t):X(s,()=>a(r,t));return Ue(u).pipe(Se())}));return p(i).pipe(gt())}function Al(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ll(s)).filter(s=>s!==null).map(s=>vr(()=>{let a=s.guards.map(u=>{let c=Qt(s.node)??e,l=mt(u,c),h=ml(l)?l.canActivateChild(n,t):X(c,()=>l(n,t));return Ue(h).pipe(Se())});return p(a).pipe(gt())}));return p(o).pipe(gt())}function Tl(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return p(!0);let s=o.map(a=>{let u=Qt(r)??i,c=mt(a,u),l=vl(c)?c.canDeactivate(t,r,e,n):X(u,()=>c(t,r,e,n));return Ue(l).pipe(Se())});return p(s).pipe(gt())}function _l(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return p(!0);let o=i.map(s=>{let a=mt(s,t),u=pl(a)?a.canLoad(r,e):X(t,()=>a(r,e));return Ue(u)});return p(o).pipe(gt(),la(n))}function la(t){return xi(x(r=>{if(typeof r!="boolean")throw sr(t,r)}),R(r=>r===!0))}function Il(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return p(!0);let o=i.map(s=>{let a=mt(s,t),u=Dl(a)?a.canMatch(r,e):X(t,()=>a(r,e));return Ue(u)});return p(o).pipe(gt(),la(n))}var Kt=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Xt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function st(t){return yt(new Kt(t))}function Ml(t){return yt(new w(4e3,!1))}function Fl(t){return yt(aa(!1,H.GuardRejected))}var Ci=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return p(n);if(i.numberOfChildren>1||!i.children[y])return Ml(`${r.redirectTo}`);i=i.children[y]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:h,outlet:v,params:g,data:b,title:S}=i,E=X(o,()=>a({params:g,data:b,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:v,title:S}));if(E instanceof he)throw new Xt(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Xt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new he(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(r,u,n,i)}),new A(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Ei={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ol(t,r,e,n,i){let o=da(t,r,e);return o.matched?(n=tl(r,n),Il(n,r,e,i).pipe(R(s=>s===!0?o:f({},Ei)))):p(o)}function da(t,r,e){if(r.path==="**")return Pl(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},Ei):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||js)(e,t,r);if(!i)return f({},Ei);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?f(f({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Pl(t){return{matched:!0,parameters:t.length>0?zs(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xs(t,r,e,n){return e.length>0&&kl(t,e,n)?{segmentGroup:new A(r,Ll(n,new A(e,t.children))),slicedSegments:[]}:e.length===0&&xl(t,e,n)?{segmentGroup:new A(t.segments,Nl(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new A(t.segments,t.children),slicedSegments:e}}function Nl(t,r,e,n){let i={};for(let o of e)if(cr(t,r,o)&&!n[oe(o)]){let s=new A([],{});i[oe(o)]=s}return f(f({},n),i)}function Ll(t,r){let e={};e[y]=r;for(let n of t)if(n.path===""&&oe(n)!==y){let i=new A([],{});e[oe(n)]=i}return e}function kl(t,r,e){return e.some(n=>cr(t,r,n)&&oe(n)!==y)}function xl(t,r,e){return e.some(n=>cr(t,r,n))}function cr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ul(t,r,e){return r.length===0&&!t.children[e]}var Si=class{};function Bl(t,r,e,n,i,o,s="emptyOnly"){return new bi(t,r,e,n,i,s,o).recognize()}var jl=31,bi=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Ci(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=xs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(R(({children:e,rootSnapshot:n})=>{let i=new W(n,e),o=new Zt("",i),s=Xs(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new Ye([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),y,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,y,e).pipe(R(n=>({children:n,rootSnapshot:e})),je(n=>{if(n instanceof Xt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Kt?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(R(s=>s instanceof W?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return k(o).pipe(me(s=>{let a=n.children[s],u=nl(e,s);return this.processSegmentGroup(r,u,a,s,i)}),zi((s,a)=>(s.push(...a),s)),Dr(null),$i(),j(s=>{if(s===null)return st(n);let a=ha(s);return $l(a),p(a)}))}processSegment(r,e,n,i,o,s,a){return k(e).pipe(me(u=>this.processSegmentAgainstRoute(u._injector??r,e,u,n,i,o,s,a).pipe(je(c=>{if(c instanceof Kt)return p(null);throw c}))),Se(u=>!!u),je(u=>{if(ca(u))return Ul(n,i,o)?p(new Si):st(n);throw u}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,u){return oe(n)!==s&&(s===y||!cr(i,o,n))?st(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,u):st(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:v}=da(e,i,o);if(!u)return st(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jl&&(this.allowRedirects=!1));let g=new Ye(o,c,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Us(i),oe(i),i.component??i._loadedComponent??null,i,Bs(i)),b=or(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(b.params),g.data=Object.freeze(b.data);let S=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,g,r);return this.applyRedirects.lineralizeSegments(i,S).pipe(j(E=>this.processSegment(r,n,e,E.concat(v),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=Ol(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(G(u=>u.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(G(({routes:c})=>{let l=n._loadedInjector??r,{parameters:h,consumedSegments:v,remainingSegments:g}=u,b=new Ye(v,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Us(n),oe(n),n.component??n._loadedComponent??null,n,Bs(n)),S=or(b,s,this.paramsInheritanceStrategy);b.params=Object.freeze(S.params),b.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:B}=xs(e,v,g,c);if(B.length===0&&E.hasChildren())return this.processChildren(l,c,E,b).pipe(R(M=>new W(b,M)));if(c.length===0&&B.length===0)return p(new W(b,[]));let ee=oe(n)===o;return this.processSegment(l,c,E,B,ee?y:o,!0,b).pipe(R(M=>new W(b,M instanceof W?[M]:[])))}))):st(e)))}getChildConfig(r,e,n){return e.children?p({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):_l(r,e,n,this.urlSerializer).pipe(j(i=>i?this.configLoader.loadChildren(r,e).pipe(x(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Fl(e))):p({routes:[],injector:r})}};function $l(t){t.sort((r,e)=>r.value.outlet===y?-1:e.value.outlet===y?1:r.value.outlet.localeCompare(e.value.outlet))}function zl(t){let r=t.value.routeConfig;return r&&r.path===""}function ha(t){let r=[],e=new Set;for(let n of t){if(!zl(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=ha(n.children);r.push(new W(n.value,i))}return r.filter(n=>!e.has(n))}function Us(t){return t.data||{}}function Bs(t){return t.resolve||{}}function Vl(t,r,e,n,i,o){return j(s=>Bl(t,r,e,n,s.extractedUrl,i,o).pipe(R(({state:a,tree:u})=>L(f({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Hl(t,r){return j(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of fa(u))s.add(c);let a=0;return k(s).pipe(me(u=>o.has(u)?Gl(u,n,t,r):(u.data=or(u,u.parent,t).resolve,p(void 0))),x(()=>a++),yr(1),j(u=>a===s.size?p(e):ge))})}function fa(t){let r=t.children.map(e=>fa(e)).flat();return[t,...r]}function Gl(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!ia(i)&&(o[Jt]=i.title),ql(o,t,r,n).pipe(R(s=>(t._resolvedData=s,t.data=or(t,t.parent,e).resolve,null)))}function ql(t,r,e,n){let i=hi(t);if(i.length===0)return p({});let o={};return k(i).pipe(j(s=>Wl(t[s],r,e,n).pipe(Se(),x(a=>{if(a instanceof pt)throw sr(new Le,a);o[s]=a}))),yr(1),R(()=>o),je(s=>ca(s)?ge:yt(s)))}function Wl(t,r,e,n){let i=Qt(r)??n,o=mt(t,i),s=o.resolve?o.resolve(r,e):X(i,()=>o(r,e));return Ue(s)}function li(t){return G(r=>{let e=t(r);return e?k(e).pipe(R(()=>r)):p(r)})}var Mi=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===y);return n}getResolvedTitleForRoute(e){return e.data[Jt]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(pa),providedIn:"root"})}return t})(),pa=(()=>{class t extends Mi{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(m(Os))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=new C("",{providedIn:"root",factory:()=>({})}),vt=new C(""),lr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Ro);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Ue(e.loadComponent()).pipe(R(ma),x(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$e(()=>{this.componentLoaders.delete(e)})),i=new mr(n,()=>new te).pipe(gr());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return p({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ga(n,this.compiler,e,this.onLoadEndListener).pipe($e(()=>{this.childrenLoaders.delete(n)})),s=new mr(o,()=>new te).pipe(gr());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ga(t,r,e,n){return Ue(t.loadChildren()).pipe(R(ma),j(i=>i instanceof ho||Array.isArray(i)?p(i):k(r.compileModuleAsync(i))),R(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(vt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ii),injector:o}}))}function Zl(t){return t&&typeof t=="object"&&"default"in t}function ma(t){return Zl(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Yl),providedIn:"root"})}return t})(),Yl=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fi=new C(""),Oi=new C("");function va(t,r,e){let n=t.get(Oi),i=t.get(O);return t.get(J).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),Kl(t))),{onViewTransitionCreated:u}=n;return u&&X(t,()=>u({transition:a,from:r,to:e})),s})}function Kl(t){return new Promise(r=>{Qi({read:()=>setTimeout(r)},{injector:t})})}var Pi=new C(""),hr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new te;transitionAbortSubject=new te;configLoader=d(lr);environmentInjector=d(Re);destroyRef=d(Ct);urlSerializer=d(Xe);rootContexts=d(Je);location=d(Oe);inputBindingEnabled=d(en,{optional:!0})!==null;titleStrategy=d(Mi);options=d(Qe,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(dr);createViewTransition=d(Fi,{optional:!0});navigationErrorHandler=d(Pi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>p(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Xn(i)),n=i=>this.events.next(new Jn(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(L(f({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new K(null),this.transitions.pipe(se(n=>n!==null),G(n=>{let i=!1,o=!1;return p(n).pipe(G(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",H.SupersededByNewNavigation),ge;this.currentTransition=n,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?L(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&u!=="reload"){let c="";return this.events.next(new fe(s.id,this.urlSerializer.serialize(s.rawUrl),c,lt.IgnoredSameUrlNavigation)),s.resolve(!1),ge}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return p(s).pipe(G(c=>(this.events.next(new xe(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?ge:Promise.resolve(c))),Vl(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),x(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=L(f({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let l=new Gt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:c,extractedUrl:l,source:h,restoredState:v,extras:g}=s,b=new xe(c,this.urlSerializer.serialize(l),h,v);this.events.next(b);let S=na(this.rootComponentType).snapshot;return this.currentTransition=n=L(f({},s),{targetSnapshot:S,urlAfterRedirects:l,extras:L(f({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,p(n)}else{let c="";return this.events.next(new fe(s.id,this.urlSerializer.serialize(s.extractedUrl),c,lt.IgnoredByUrlHandlingStrategy)),s.resolve(!1),ge}}),x(s=>{let a=new Wn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),R(s=>(this.currentTransition=n=L(f({},s),{guards:cl(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),wl(this.environmentInjector,s=>this.events.next(s)),x(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw sr(this.urlSerializer,s.guardsResult);let a=new Zn(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),se(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",H.GuardRejected),!1)),li(s=>{if(s.guards.canActivateChecks.length!==0)return p(s).pipe(x(a=>{let u=new Yn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),G(a=>{let u=!1;return p(a).pipe(Hl(this.paramsInheritanceStrategy,this.environmentInjector),x({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",H.NoDataFromResolver)}}))}),x(a=>{let u=new Kn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),li(s=>{let a=u=>{let c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(x(l=>{u.component=l}),R(()=>{})));for(let l of u.children)c.push(...a(l));return c};return sn(a(s.targetSnapshot.root)).pipe(Dr(null),et(1))}),li(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,u=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return u?k(u).pipe(R(()=>n)):p(n)}),R(s=>{let a=il(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=L(f({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),x(()=>{this.events.next(new qt)}),ul(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),et(1),x({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),an(this.transitionAbortSubject.pipe(x(s=>{throw s}))),$e(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",H.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),je(s=>{if(this.destroyed)return n.resolve(!1),ge;if(o=!0,ua(s))this.events.next(new de(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),al(s)?this.events.next(new ft(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let u=X(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(u instanceof pt){let{message:c,cancellationCode:l}=sr(this.urlSerializer,u);this.events.next(new de(n.id,this.urlSerializer.serialize(n.extractedUrl),c,l)),this.events.next(new ft(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return ge}))}))}cancelNavigationTransition(e,n,i){let o=new de(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xl(t){return t!==Hn}var Da=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Jl),providedIn:"root"})}return t})(),ur=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Jl=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Er(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ya=(()=>{class t{urlSerializer=d(Xe);options=d(Qe,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(Oe);urlHandlingStrategy=d(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new he;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof he?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=na(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:()=>d(Ql),providedIn:"root"})}return t})(),Ql=(()=>{class t extends ya{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof xe?this.updateStateMemento():e instanceof fe?this.commitTransition(n):e instanceof Gt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof qt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof de&&(e.code===H.GuardRejected||e.code===H.NoDataFromResolver)?this.restoreHistory(n):e instanceof dt?this.restoreHistory(n,!0):e instanceof Y&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=f(f({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=f(f({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Er(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fr(t,r){t.events.pipe(se(e=>e instanceof Y||e instanceof de||e instanceof dt||e instanceof fe),R(e=>e instanceof Y||e instanceof fe?0:(e instanceof de?e.code===H.Redirect||e.code===H.SupersededByNewNavigation:!1)?2:1),se(e=>e!==2),et(1)).subscribe(()=>{r()})}var ed={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},td={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},pe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(_r);stateManager=d(ya);options=d(Qe,{optional:!0})||{};pendingTasks=d(Et);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(hr);urlSerializer=d(Xe);location=d(Oe);urlHandlingStrategy=d(dr);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Da);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(vt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(en,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ki;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof de&&n.code!==H.Redirect&&n.code!==H.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Y)this.navigated=!0;else if(n instanceof ft){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),u=f({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Xl(i.source)},s);this.scheduleNavigation(a,Hn,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}rd(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Hn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=f({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ii),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=n,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=f(f({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let v=i?i.snapshot:this.routerState.snapshot.root;h=Js(v)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return Qs(h,e,l,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ke(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Hn,null,n)}navigate(e,n={skipLocationChange:!1}){return nd(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=f({},ed):n===!1?i=f({},td):i=n,ke(e))return Ps(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Ps(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((h,v)=>{a=h,u=v});let l=this.pendingTasks.add();return fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nd(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function rd(t){return!(t instanceof qt)&&!(t instanceof ft)}var pr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te;constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Y&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ke(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:ao(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ke(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(T(pe),T(Ee),Sr("tabindex"),T(_e),T(Ae),T(re))};static \u0275dir=$({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Co("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Do("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ye],replaceUrl:[2,"replaceUrl","replaceUrl",ye],routerLink:"routerLink"},features:[ae]})}return t})(),id=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ze;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Y&&this.update()})}ngAfterContentInit(){p(this.links.changes,p(null)).pipe(wt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=k(e).pipe(wt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=od(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(T(pe),T(Ae),T(_e),T(Me),T(pr,8))};static \u0275dir=$({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Eo(o,pr,5),n&2){let s;So(s=bo())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ae]})}return t})();function od(t){return!!t.paths}var nn=class{};var wa=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,o){this.router=e,this.injector=n,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(se(e=>e instanceof Y),me(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let i=[];for(let o of n){o.providers&&!o._injector&&(o._injector=ln(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return k(i).pipe(wt())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=p(null);let o=i.pipe(j(s=>s===null?p(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return k([o,s]).pipe(wt())}else return o})}static \u0275fac=function(n){return new(n||t)(m(pe),m(Re),m(nn),m(lr))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ca=new C(""),sd=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof xe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Y?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fe&&e.code===lt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ht&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ht(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){co()};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function ad(t){return t.routerState.root}function rn(t,r){return{\u0275kind:t,\u0275providers:r}}function ud(){let t=d(De);return r=>{let e=t.get(Fr);if(r!==e.components[0])return;let n=t.get(pe),i=t.get(Ea);t.get(Li)===1&&n.initialNavigation(),t.get(Ra,null,wr.Optional)?.setUpPreloading(),t.get(Ca,null,wr.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ea=new C("",{factory:()=>new te}),Li=new C("",{providedIn:"root",factory:()=>1});function Sa(){let t=[{provide:Li,useValue:0},Mr(()=>{let r=d(De);return r.get(Lr,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(pe),o=r.get(Ea);fr(i,()=>{n(!0)}),r.get(hr).afterPreactivation=()=>(n(!0),o.closed?p(void 0):o),i.initialNavigation()}))})];return rn(2,t)}function ba(){let t=[Mr(()=>{d(pe).setUpLocationChangeListener()}),{provide:Li,useValue:2}];return rn(3,t)}var Ra=new C("");function Aa(t){return rn(0,[{provide:Ra,useExisting:wa},{provide:nn,useExisting:t}])}function Ta(){return rn(8,[Ti,{provide:en,useExisting:Ti}])}function _a(t){cn("NgRouterViewTransitions");let r=[{provide:Fi,useValue:va},{provide:Oi,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return rn(9,r)}var Ia=[Oe,{provide:Xe,useClass:Le},pe,Je,{provide:Ee,useFactory:ad,deps:[pe]},lr,[]],cd=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Ia,[],{provide:vt,multi:!0,useValue:e},[],n?.errorHandler?{provide:Pi,useValue:n.errorHandler}:[],{provide:Qe,useValue:n||{}},n?.useHash?dd():hd(),ld(),n?.preloadingStrategy?Aa(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?fd(n):[],n?.bindToComponentInputs?Ta().\u0275providers:[],n?.enableViewTransitions?_a().\u0275providers:[],pd()]}}static forChild(e){return{ngModule:t,providers:[{provide:vt,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ie({type:t});static \u0275inj=be({})}return t})();function ld(){return{provide:Ca,useFactory:()=>{let t=d(ss),r=d(J),e=d(Qe),n=d(hr),i=d(Xe);return e.scrollOffset&&t.setOffset(e.scrollOffset),new sd(i,n,t,r,e)}}}function dd(){return{provide:re,useClass:Hr}}function hd(){return{provide:re,useClass:vn}}function fd(t){return[t.initialNavigation==="disabled"?ba().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Sa().\u0275providers:[]]}var Ni=new C("");function pd(){return[{provide:Ni,useFactory:ud},{provide:vo,multi:!0,useExisting:Ni}]}function gd(t){t||(Cr(gd),t=d(Ct));let r=new Dt(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(an(r))}function md(t){t===void 0&&(Cr(md),t=d(De));let r=t.get(qi);return e=>new Dt(n=>{let i=r.add(),o=!1;function s(){o||(i(),o=!0)}let a=e.subscribe({next:u=>{n.next(u),s()},complete:()=>{n.complete(),s()},error:u=>{n.error(u),s()}});return a.add(()=>{n.unsubscribe(),s()}),a})}export{O as a,ue as b,Oe as c,eu as d,tu as e,ts as f,nu as g,ru as h,iu as i,au as j,cu as k,lu as l,du as m,Wr as n,pu as o,_n as p,_h as q,Ih as r,ti as s,Qu as t,nc as u,Pe as v,Ce as w,Ts as x,Is as y,Rc as z,Ac as A,Os as B,_c as C,Y as D,Ee as E,Ai as F,pe as G,pr as H,id as I,cd as J,gd as K,md as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as qt}from"./chunk-2BBMPSAE.js";import{a as Jt,b as Qt}from"./chunk-E3HMIPER.js";import"./chunk-7GQIIDFF.js";import{b as Yt}from"./chunk-MATSRG2L.js";import"./chunk-V2OJQHE3.js";import"./chunk-6XFYITUD.js";import{a as Xt,b as Ht}from"./chunk-OLSC6KHB.js";import{a as $t,b as Rt}from"./chunk-COBHWPGI.js";import{a as pt,b as Bt,c as Gt,d as st,e as ut}from"./chunk-ZSHPWPPL.js";import"./chunk-VETHPEVU.js";import"./chunk-75BDXSG3.js";import"./chunk-6NNAICJE.js";import"./chunk-LPXBSHUI.js";import"./chunk-D54NUPYF.js";import"./chunk-EGTYAIU5.js";import{a as Wt}from"./chunk-7TWBIV3T.js";import"./chunk-J7AGLBPL.js";import"./chunk-6ALHX2I4.js";import"./chunk-4G3QN54S.js";import"./chunk-3RK6DDJD.js";import{a as jt}from"./chunk-62PFQNHJ.js";import"./chunk-Q72ZXPDP.js";import"./chunk-MNFHFW3E.js";import"./chunk-ZZVNB72Q.js";import"./chunk-VGXQU74M.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-RIHLYYZU.js";import"./chunk-Q2OEJFVT.js";import{d as $,e as R}from"./chunk-6IAGGRZN.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import"./chunk-IHYEQWAY.js";import{e as et}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{m as Ut,n as Lt}from"./chunk-ITTRZMEX.js";import{r as Mt,s as Vt}from"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as K,e as ct,h as U,i as Y,l as mt,m as Nt,n as X,p as H,q as Pt,r as J,s as Ot,t as kt,u as wt,x as Q,y as tt,z as L}from"./chunk-DPLEMBB4.js";import{b as Dt,c as f}from"./chunk-PXB4YEY3.js";import{g as V,j as T,n as S}from"./chunk-GPEVUTDI.js";import{Eb as v,Ec as _,Fc as at,Gc as z,Ic as Ft,Jc as At,K as St,Ka as P,Kb as h,Kc as Et,M as It,Na as ht,Oc as x,Pc as lt,Wb as m,Z,Zc as b,_c as y,bc as g,cc as O,ea as A,ec as k,fc as w,gc as p,hc as l,ic as d,ja as E,jc as D,kc as M,mc as W,pa as u,qb as s,rc as I,sc as r,v as F,xa as N,ya as G,za as j}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var q=function(e){return e[e.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",e[e.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",e[e.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",e[e.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",e[e.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",e}(q||{});var it=function(e){return e[e.FORMAT_NORMAL=1]="FORMAT_NORMAL",e[e.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",e}(it||{});var ot=function(e){return e[e.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",e[e.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",e[e.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",e[e.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",e[e.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",e}(ot||{});var Ct=class extends mt{setValue(c,t){if(c instanceof Date){let i=Math.floor(c.getTime()/1e3);super.setValue(i,t)}else super.setValue(c,t)}},gt=(()=>{class e{constructor(){this.shopeeUploadService=u(pt),this.formBuilder=u(Q)}getAttributes(t){return this.shopeeUploadService.getAttributes(t.channelId,t.categoryId).pipe(F(i=>this.setLabelToIndonesian(i)))}setLabelToIndonesian(t=[]){let i,n;return t=t.map(o=>(i=o?.multi_lang?.find(a=>a.language=="id"),o.attribute_value_list=o?.attribute_value_list?.map(a=>(n=a?.multi_lang?.find(C=>C.language=="id"),a.name=n?.value,a)),o.name=i?.value?i?.value:o.name,o)),t}createFormGroup(t){let i=this.formBuilder.group({}),n=[];return t.forEach(o=>{if(n=[],o.mandatory&&n.push(ct.required),o?.attribute_info?.format_type==it.FORMAT_QUANTITATIVE_WITH_UNIT&&o?.attribute_info?.input_type==q.FREE_TEXT_FILED){let a=this.formBuilder.group({unit:new mt(null),value:new mt(null,n)});i.addControl(JSON.stringify(o.attribute_id),a)}else o?.attribute_info?.input_type==q.FREE_TEXT_FILED&&o?.attribute_info?.input_validation_type==ot.VALIDATOR_DATE_TYPE?i.addControl(JSON.stringify(o.attribute_id),new Ct(null,n)):i.addControl(JSON.stringify(o.attribute_id),this.formBuilder.control(null,n))}),i}getFilteredAttributes(t,i){let n=JSON.parse(JSON.stringify(t)),o=Object.keys(i),a=n.filter(C=>o.findIndex(ft=>parseInt(ft)==C.attribute_id||C.mandatory)!=-1);return a=this.filterSelectedAttributes(a,i),a}filterSelectedAttributes(t,i){return t.map(o=>{switch(o.attribute_info.input_type){case q.MULTI_COMBO_BOX:f.IsNotEmpty(i[o.attribute_id])?o.attribute_value_list=o.attribute_value_list.filter(a=>i[o.attribute_id]?.findIndex(C=>C==a.value_id)!=-1):o.attribute_value_list=[];break;case q.FREE_TEXT_FILED:o.attribute_info.format_type==it.FORMAT_QUANTITATIVE_WITH_UNIT?o.attribute_value_list=this.setSelectedQuantitativeAttr(i[o.attribute_id]?.value,i[o.attribute_id]?.unit):o.attribute_info.input_validation_type==ot.VALIDATOR_DATE_TYPE?o.attribute_value_list=this.setSelectedDateAttr(i[o.attribute_id]):o.attribute_value_list=this.setSelectedQuantitativeAttr(i[o.attribute_id]);break;default:o.attribute_value_list=o.attribute_value_list.filter(a=>a.value_id==i[o.attribute_id])}return o}).filter(o=>o?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(t,i){let n=[];if(f.IsNotEmpty(t)){let o={value_id:0,original_value_name:JSON.stringify(t)};f.IsNotEmpty(i)&&(o.value_unit=i),n=[o]}return n}setSelectedDateAttr(t){let i=[];return f.IsNotEmpty(t)&&(i=[{value_id:0,original_value_name:JSON.stringify(t)}]),i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();var bt=()=>[];function ie(e,c){e&1&&(p(0,"span",5),_(1,"*"),l())}function oe(e,c){if(e&1&&d(0,"ng-select",6),e&2){let t=r().$implicit;m("multiple",!0)("formControlName",t.attribute_id)("items",t.attribute_value_list?t.attribute_value_list:lt(4,bt))("placeholder","Pilih "+(t==null?null:t.name))}}function ne(e,c){if(e&1&&d(0,"input",8),e&2){let t=r(2).$implicit;m("formControlName",t.attribute_id)("placeholder","Isi "+(t==null?null:t.name))}}function re(e,c){if(e&1&&(p(0,"option",15),_(1),l()),e&2){let t=c.$implicit;m("value",t),s(),at(t)}}function ae(e,c){if(e&1&&(p(0,"div",10),d(1,"input",12),p(2,"select",13)(3,"option",14),_(4,"Unit"),l(),k(5,re,2,2,"option",15,O),l()()),e&2){let t=r(3).$implicit;m("formGroupName",t.attribute_id),s(),m("placeholder","Isi "+(t==null?null:t.name)),s(2),m("value",null),s(2),w(t==null||t.attribute_info==null?null:t.attribute_info.attribute_unit_list)}}function le(e,c){if(e&1&&d(0,"input",11),e&2){let t=r(3).$implicit;m("formControlName",t.attribute_id)("placeholder","Isi "+(t==null?null:t.name))}}function ce(e,c){if(e&1&&h(0,ae,7,3,"div",10)(1,le,1,2,"input",11),e&2){let t=r(2).$implicit,i=r(2);g((t==null||t.attribute_info==null?null:t.attribute_info.format_type)==i.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function me(e,c){if(e&1&&d(0,"datepicker",9),e&2){let t=r(2).$implicit;m("formControlName",t.attribute_id)}}function pe(e,c){if(e&1&&h(0,ne,1,2,"input",8)(1,ce,2,1)(2,me,1,1,"datepicker",9),e&2){let t,i=r().$implicit,n=r(2);g((t=i==null||i.attribute_info==null?null:i.attribute_info.input_validation_type)===n.validationType.VALIDATOR_STRING_TYPE?0:t===n.validationType.VALIDATOR_FLOAT_TYPE?1:t===n.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function se(e,c){if(e&1&&d(0,"ng-select",7),e&2){let t=r().$implicit;m("formControlName",t.attribute_id)("items",t.attribute_value_list?t.attribute_value_list:lt(3,bt))("placeholder","Pilih "+(t==null?null:t.name))}}function ue(e,c){if(e&1&&d(0,"ng-select",7),e&2){let t=r().$implicit;m("formControlName",t.attribute_id)("items",t.attribute_value_list?t.attribute_value_list:lt(3,bt))("placeholder","Pilih "+(t==null?null:t.name))}}function de(e,c){if(e&1&&(p(0,"div",3)(1,"div",4),h(2,ie,2,0,"span",5),p(3,"span"),_(4),l()(),h(5,oe,1,5,"ng-select",6)(6,pe,3,1)(7,se,1,4,"ng-select",7)(8,ue,1,4,"ng-select",7),l()),e&2){let t,i=c.$implicit,n=r(2);s(2),g(i.mandatory?2:-1),s(2),z(" ",i==null?null:i.name," "),s(),g((t=i==null||i.attribute_info==null?null:i.attribute_info.input_type)===n.inputType.MULTI_COMBO_BOX?5:t===n.inputType.FREE_TEXT_FILED?6:t===n.inputType.SINGLE_COMBO_BOX?7:8)}}function _e(e,c){if(e&1&&(D(0),p(1,"form",1)(2,"div",2),k(3,de,9,3,"div",3,O),l()(),M()),e&2){let t=c.ngIf,i=r();s(),m("formGroup",i.form),s(2),w(t)}}var zt=(()=>{class e{constructor(){this.formCategoryService=u(gt),this.attributesChanges=new P,this.inputType=q,this.formatType=it,this.validationType=ot}ngOnChanges(){f.IsNotEmpty(this.categoryId)&&f.IsNotEmpty(this.channelId)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:this.categoryId,channelId:this.channelId,channelType:this.channelType}).pipe(A(t=>{this.form=this.formCategoryService.createFormGroup(t),this.listenToFormChange(t)}),Z(1)))}listenToFormChange(t){let i=[];this.formSubscription=this.form.valueChanges.subscribe(n=>{i=this.formCategoryService.getFilteredAttributes(t,n),this.attributesChanges.emit(i)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["shopee-attribute-form"]],inputs:{channelType:"channelType",categoryId:"categoryId",channelId:"channelId",channelProductUpload:"channelProductUpload"},outputs:{attributesChanges:"attributesChanges"},features:[x([gt]),N],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","value_id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","value_id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"],[1,"attribute-datepicker",3,"formControlName"],[1,"d-flex","align-items-center",3,"formGroupName"],["type","text","autoNum","",1,"form-control",3,"formControlName","placeholder"],["formControlName","value","type","text","autoNum","",1,"form-control","me-1",2,"width","200px",3,"placeholder"],["name","unit","id","unit","formControlName","unit",1,"form-control"],["disabled","","selected","",3,"value"],[3,"value"]],template:function(i,n){i&1&&(h(0,_e,5,1,"ng-container",0),b(1,"async")),i&2&&m("ngIf",y(1,1,n.attributes$))},dependencies:[S,V,T,R,$,L,X,kt,wt,K,Ot,U,Y,H,J,Pt,Wt,Qt,Jt],styles:["input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{height:36px;border-radius:4px} datepicker.attribute-datepicker>mat-form-field.mat-mdc-form-field>.mat-mdc-text-field-wrapper{height:36px} datepicker.attribute-datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:11px!important;padding-bottom:11px!important;height:36px;min-height:36px!important} datepicker.attribute-datepicker mat-datepicker-toggle>button.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 36px}"]})}}return e})();var yt=(()=>{class e{constructor(){this.httpService=u(et),this.formBuilder=u(Q),this.uploadProductService=u(ut)}getAttributes(t,i){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:i}]).pipe(St(o=>this.uploadProductService.selectedProduct$.pipe(F(a=>(o=this.mappingAttributeSalesProperty(o,a),o)))))}mappingAttributeSalesProperty(t,i){let n=0;return t.filter(o=>(o.type=="SALES_PROPERTY"&&(n+=1),n>1?(n=0,!1):!0)).map(o=>(o.type=="SALES_PROPERTY"&&(o.name="Jenis Variant",o.is_multiple_selection=!1,o.is_required=this.isProductHasMoreVariant(i),o.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),o))}isProductHasMoreVariant(t){let i=!1,n=[];return t.forEach(o=>{o.Variants&&n.push(o.Variants.length)}),i=n.some(o=>o>1),i}createFormGroup(t){let i=this.formBuilder.group({}),n=[];return t.forEach(o=>{n=[],o.is_required&&n.push(ct.required),i.addControl(o.id,this.formBuilder.control(null,n))}),i}getFilteredAttributes(t,i){let n=JSON.parse(JSON.stringify(t)),o=Object.keys(i),a=n.filter(C=>o.findIndex(ft=>parseInt(ft)==C.id)!=-1);return a=this.filterSelectedAttributes(a,i),a}filterSelectedAttributes(t,i){return t.map(o=>(f.IsNotEmpty(o.values)?o.is_multiple_selection?o.values=o.values.filter(a=>i[o.id]?.includes(a.id)):o.values=o.values.filter(a=>a.id==i[o.id]):i[o.id]&&(o.values=[{id:null,name:i[o.id]}]),o)).filter(o=>o?.values?.length>0)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function fe(e,c){e&1&&(p(0,"span",5),_(1,"*"),l())}function he(e,c){if(e&1&&d(0,"ng-select",6),e&2){let t=r().$implicit;m("multiple",!0)("formControlName",t.id)("items",t.values)("placeholder","Pilih "+(t==null?null:t.name))}}function Ce(e,c){if(e&1&&d(0,"ng-select",7),e&2){let t=r().$implicit;m("formControlName",t.id)("items",t.values)("placeholder","Pilih "+(t==null?null:t.name))}}function ge(e,c){if(e&1&&d(0,"input",8),e&2){let t=r().$implicit;m("formControlName",t.id)("placeholder",t==null?null:t.name)}}function be(e,c){if(e&1&&(p(0,"small",5),_(1),l()),e&2){let t=r().$implicit;s(),z(" ",t==null?null:t.name," is mandatory ")}}function ye(e,c){if(e&1&&(p(0,"div",3)(1,"div",4),h(2,fe,2,0,"span",5),p(3,"span"),_(4),l()(),h(5,he,1,4,"ng-select",6)(6,Ce,1,3,"ng-select",7)(7,ge,1,2,"input",8)(8,be,2,1,"small",5),l()),e&2){let t=c.$implicit;s(2),g(t.is_required?2:-1),s(2),z(" ",t==null?null:t.name," "),s(),g(t.is_multiple_selection?5:t.values!==null&&t.values.length>0?6:7),s(3),g(t.is_required?8:-1)}}function ve(e,c){if(e&1&&(D(0),p(1,"form",1)(2,"div",2),k(3,ye,9,4,"div",3,O),l()(),M()),e&2){let t=c.ngIf,i=r();s(),m("formGroup",i.form),s(2),w(t)}}var Zt=(()=>{class e{constructor(){this.tiktokAttributeFormService=u(yt),this.attributesChanges=new P}ngOnChanges(){f.IsNotEmpty(this.categoryId)&&f.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(F(t=>t.filter(i=>!(i.type=="PRODUCT_PROPERTY"&&(f.IsEmpty(i.values)||i.values?.length==0)&&i.is_customizable==!1))),A(t=>{this.form=this.tiktokAttributeFormService.createFormGroup(t),this.listenToFormChange(t)}),Z(1)))}listenToFormChange(t){let i=[];this.formSubscription=this.form.valueChanges.subscribe(n=>{i=this.tiktokAttributeFormService.getFilteredAttributes(t,n),this.attributesChanges.emit(i)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[x([yt]),N],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"]],template:function(i,n){i&1&&(h(0,ve,5,1,"ng-container",0),b(1,"async")),i&2&&m("ngIf",y(1,1,n.attributes$))},dependencies:[S,V,T,R,$,L,X,K,U,Y,H,J,tt],encapsulation:2})}}return e})();var vt=(()=>{class e{constructor(){this.woocommerceUploadService=u(st)}getAttributes(t,i){return this.woocommerceUploadService.getAttributes(t,i).pipe(F(n=>n.map(o=>({key:o.name,label:o.name}))))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();var Kt=(()=>{class e{constructor(){this.wooAttributeFormService=u(vt),this.channelId=ht(),this.categoryId=ht(),this.attributesChanges=new P}ngOnChanges(){f.IsNotEmpty(this.categoryId())&&f.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(t){this.attributesChanges.emit([t.key])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[x([vt]),N],decls:6,vars:3,consts:[[1,"row"],[1,"col-6"],[1,"mb-1"],["bindLabel","label","bindValue","id","placeholder","Pilih Atribut",3,"change","items"]],template:function(i,n){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),_(3,"Atribut"),l(),p(4,"ng-select",3),b(5,"async"),I("change",function(a){return n.onSelectAttribute(a)}),l()()()),i&2&&(s(4),m("items",y(5,1,n.attributes$)))},dependencies:[S,T,tt,R,$,L],encapsulation:2})}}return e})();var xt=(()=>{class e{constructor(){this.httpService=u(et),this.formBuilder=u(Q)}getAttributes(t,i){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:i}]).pipe(F(o=>o))}createFormGroup(t){let i=this.formBuilder.group({});return t.forEach(n=>{i.addControl(n.variant,this.formBuilder.control(null))}),i}convertAttributes(t={}){return Object.values(t).filter(n=>n!==null).map(n=>JSON.stringify(n))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function xe(e,c){if(e&1&&(p(0,"div",3)(1,"div",4),_(2),l(),d(3,"ng-select",5),l()),e&2){let t=c.$implicit;s(2),z(" ",t==null?null:t.variant," "),s(),m("formControlName",t.variant)("items",t.values)("placeholder","Pilih "+(t==null?null:t.variant))}}function Te(e,c){if(e&1&&(D(0),p(1,"form",1)(2,"div",2),k(3,xe,4,4,"div",3,O),l()(),M()),e&2){let t=c.ngIf,i=r();s(),m("formGroup",i.form),s(2),w(t)}}var te=(()=>{class e{constructor(){this.tokpedAttrFormService=u(xt),this.attributesChanges=new P}ngOnInit(){}ngOnChanges(t){f.IsNotEmpty(this.categoryId)&&f.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(A(i=>{this.form=this.tokpedAttrFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){let t=[];this.formSubscription=this.form.valueChanges.subscribe(i=>{t=this.tokpedAttrFormService.convertAttributes(i),this.attributesChanges.emit(t)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[x([xt]),N],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(i,n){i&1&&(h(0,Te,5,1,"ng-container",0),b(1,"async")),i&2&&m("ngIf",y(1,1,n.attributes$))},dependencies:[S,V,T,R,$,L,X,U,Y,H,J],encapsulation:2})}}return e})();var Tt=(()=>{class e{constructor(){this.httpService=u(et),this.formBuilder=u(Q)}getAttributes(t){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:t}]).pipe(A(n=>(n.Options.StatusOptions=n.Options.Status.map(o=>({id:o,name:o})),n)))}createFormGroup(t){let i=this.formBuilder.group({});return Object.keys(t.Attribute).forEach(o=>{i.addControl(o,this.formBuilder.control(null))}),i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function Se(e,c){if(e&1&&(D(0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),_(5," Brand "),l(),d(6,"input",5),l(),p(7,"div",6)(8,"div",4),_(9," Product Type "),l(),d(10,"input",7),l(),p(11,"div",6)(12,"div",4),_(13," Status "),l(),d(14,"ng-select",8),l()()(),M()),e&2){let t=c.ngIf,i=r();s(),m("formGroup",i.form),s(13),m("items",t.Options.StatusOptions)}}var ee=(()=>{class e{constructor(){this.attributesChanges=new P,this.shopifyFormService=u(Tt)}ngOnChanges(t){t.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(A(i=>{this.form=this.shopifyFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(It(500)).subscribe(t=>{this.attributesChanges.emit([t])})}ngOnDestroy(){this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[x([Tt]),N],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","Brand","type","text","placeholder","brand",1,"form-control"],[1,"col-6"],["formControlName","ProductType","type","text","placeholder","Product Type",1,"form-control"],["formControlName","Status","bindLabel","name","bindValue","id","placeholder","Status",3,"items"]],template:function(i,n){i&1&&(h(0,Se,15,2,"ng-container",0),b(1,"async")),i&2&&m("ngIf",y(1,1,n.attributes$))},dependencies:[S,V,T,L,X,K,U,Y,H,J,R,$],encapsulation:2})}}return e})();function Ie(e,c){if(e&1&&(p(0,"div",6),d(1,"app-product-card",9),l()),e&2){let t=c.$implicit;s(),m("productId",t==null?null:t.ID)("title",t==null?null:t.Name)("image",t==null?null:t.ThumbnailUrl)("description",(t==null||t.Variants==null?null:t.Variants.length)>1?(t==null||t.Variants==null?null:t.Variants.length)+" Variants":null)("imageForZoom",t==null?null:t.ImageUrl)("code",t==null||t.Variants[0]==null?null:t.Variants[0].Code)("showFooter",!1)}}function Fe(e,c){if(e&1){let t=W();D(0),p(1,"mat-checkbox",21),Et("ngModelChange",function(n){G(t);let o=r().$implicit;return At(o.selected,n)||(o.selected=n),j(n)}),I("ngModelChange",function(){let n=G(t).ngIf,o=r(),a=o.$implicit,C=o.$index,nt=r();return j(nt.onSelectChannel(a,C,n))}),l(),M()}if(e&2){let t=r().$implicit;s(),Ft("ngModel",t.selected)}}function Ae(e,c){if(e&1&&(p(0,"div",18),d(1,"input",22),l()),e&2){let t=r().$implicit,i=r();m("matTooltip",t.type==i.channelType.Shopify?"Cannot change category, please change category in admin.shopify.com":t.type==i.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function Ee(e,c){if(e&1){let t=W();p(0,"app-channel-category-select",23),I("selectedCategory",function(n){G(t);let o=r().$index,a=r();return j(a.onCategoryChange(o,n))}),l()}if(e&2){let t=r().$implicit,i=r();m("disabled",!t.selected||t.selected&&t.type==i.channelType.Lazada)("channelId",t.id)("channelType",t.type)("categoryId",t.categoryId)}}function Ne(e,c){if(e&1){let t=W();p(0,"shopee-attribute-form",27),I("attributesChanges",function(n){G(t);let o=r(2).$index,a=r();return j(a.onAttributesChange(o,n))}),l()}if(e&2){let t=r(2).$implicit;m("categoryId",t.categoryId)("channelId",t.id)("channelType",t.type)}}function Pe(e,c){if(e&1){let t=W();p(0,"tiktok-attribute-form",28),I("attributesChanges",function(n){G(t);let o=r(2).$index,a=r();return j(a.onAttributesChange(o,n))}),l()}if(e&2){let t=r(2).$implicit;m("categoryId",t.categoryId)("channelId",t.id)}}function Oe(e,c){if(e&1){let t=W();p(0,"wooocommerce-attribute-form",28),I("attributesChanges",function(n){G(t);let o=r(2).$index,a=r();return j(a.onAttributesChange(o,n))}),l()}if(e&2){let t=r(2).$implicit;m("categoryId",t.categoryId)("channelId",t.id)}}function ke(e,c){if(e&1){let t=W();p(0,"tokopedia-attribute-form",28),I("attributesChanges",function(n){G(t);let o=r(2).$index,a=r();return j(a.onAttributesChange(o,n))}),l()}if(e&2){let t=r(2).$implicit;m("categoryId",t.categoryId)("channelId",t.id)}}function we(e,c){if(e&1&&(p(0,"div",20)(1,"div",24),h(2,Ne,1,3,"shopee-attribute-form",25)(3,Pe,1,2,"tiktok-attribute-form",26)(4,Oe,1,2,"wooocommerce-attribute-form",26)(5,ke,1,2,"tokopedia-attribute-form",26),l()()),e&2){let t,i=r().$implicit,n=r();s(2),g((t=i.type)===n.channelType.Shopee?2:t===n.channelType.Tiktok?3:t===n.channelType.WooCommerce?4:t===n.channelType.Tokopedia?5:-1)}}function De(e,c){if(e&1){let t=W();p(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",29),I("attributesChanges",function(n){G(t);let o=r().$index,a=r();return j(a.onAttributesChange(o,n))}),l()()()}if(e&2){let t=r().$implicit;s(2),m("channelId",t.id)}}function Me(e,c){if(e&1&&(p(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),h(6,Fe,2,1,"ng-container",14),b(7,"async"),l(),p(8,"div"),d(9,"app-channel-logo",15),l(),p(10,"div",16)(11,"span"),_(12),l()()()(),p(13,"div",12)(14,"div",17),h(15,Ae,2,1,"div",18)(16,Ee,1,4,"app-channel-category-select",19),l()()(),h(17,we,6,1,"div",20)(18,De,3,1,"div",20),l()()),e&2){let t=c.$implicit,i=r();s(6),m("ngIf",y(7,8,i.defaultCategories$)),s(3),m("typeId",t.type)("showChannelName",!1),s(),m("matTooltip",t.name)("matTooltipShowDelay",2500),s(2),at(t.name),s(3),g(t.type==i.channelType.Shopify||t.type==i.channelType.Plugo?15:16),s(2),g(t.categoryId&&i.channelType.Lazada!=t.type&&t.selected?17:i.channelType.Shopify==t.type&&t.selected?18:-1)}}var Ko=(()=>{class e{constructor(){this.uploadProductService=u(ut),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=Dt,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(Z(1))}onCategoryChange(t,i){this.channelProductUploads.update(n=>n.map((o,a)=>(a==t&&(o.categoryId=i,o.attributes=[]),o)))}onAttributesChange(t,i){this.channelProductUploads.update(n=>n.map((o,a)=>(a==t&&(o.attributes=i),o)))}onSelectChannel(t,i,n){this.channelProductUploads.update(o=>o.map((a,C)=>{if(C==i&&t.selected){let nt=this.findCategoryByChannelId(t.id,n);a.categoryId=nt?.DefaultCategoryID}return C==i&&!t.selected&&(a.categoryId=null),a}))}findCategoryByChannelId(t,i){return i.find(n=>n.ID===t)}onUploadProduct(){this.uploadProductService.onUploadProduct(this.channelProductUploads())}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=v({type:e,selectors:[["app-product-upload"]],features:[x([pt,Bt,Gt,st])],decls:17,vars:5,consts:[["headerTitle","Upload Product To Channel",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-upload"],[1,"container-fluid","mt-6"],[1,"ps-3","mt-8","pb-5","fw-medium"],[1,"row","mb-10","ps-3"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"ps-3","mb-8","border-bottom","pb-5","fw-medium"],[1,"row","mb-6"],[3,"productId","title","image","description","imageForZoom","code","showFooter"],[1,"col-12"],[1,"row"],[1,"col-3"],[1,"d-flex","align-items-center"],[4,"ngIf"],[3,"typeId","showChannelName"],[2,"overflow","hidden","text-overflow","ellipsis","white-space","nowrap",3,"matTooltip","matTooltipShowDelay"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip"],[3,"disabled","channelId","channelType","categoryId"],[1,"row","my-3"],["color","primary",1,"example-margin",3,"ngModelChange","ngModel"],["disabled","","type","text","placeholder","Category Unavailable",1,"form-control","rounded-1",2,"height","35px"],[3,"selectedCategory","disabled","channelId","channelType","categoryId"],[1,"col-12","ps-11"],[3,"categoryId","channelId","channelType"],[3,"categoryId","channelId"],[3,"attributesChanges","categoryId","channelId","channelType"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(i,n){if(i&1&&(p(0,"mainpanel",0)(1,"actions")(2,"button",1),I("click",function(){return n.onUploadProduct()}),d(3,"i",2),_(4," Upload "),l()(),p(5,"content")(6,"div",3)(7,"h3",4),_(8,"Product To Upload"),l(),p(9,"div",5),k(10,Ie,2,7,"div",6,O),b(12,"async"),l(),p(13,"h3",7),_(14,"Channel To Upload"),l(),k(15,Me,19,10,"div",8,O),l()()()),i&2){let o;m("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),m("disabled",((o=n.channelProductUploads())==null?null:o.length)==0),s(8),w(y(12,3,n.selectedProducts$)),s(5),w(n.channelProductUploads())}},dependencies:[S,V,T,Yt,Lt,Ut,Ht,Xt,Rt,$t,tt,U,Nt,Vt,Mt,zt,Zt,Kt,te,ee,jt,qt],encapsulation:2})}}return e})();export{Ko as ProductUploadComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as _}from"./chunk-KVP6OL4J.js";import"./chunk-77IUCPIQ.js";import{a as ye,b as ge}from"./chunk-OE2JYQHN.js";import"./chunk-7GQIIDFF.js";import"./chunk-VETHPEVU.js";import"./chunk-75BDXSG3.js";import"./chunk-J7AGLBPL.js";import"./chunk-6ALHX2I4.js";import"./chunk-3RK6DDJD.js";import{a as R}from"./chunk-5KHDEW35.js";import"./chunk-Q72ZXPDP.js";import"./chunk-MNFHFW3E.js";import"./chunk-ZZVNB72Q.js";import"./chunk-SDUUFQUI.js";import"./chunk-G6EG5QJS.js";import"./chunk-RIHLYYZU.js";import"./chunk-Q2OEJFVT.js";import"./chunk-T6QOFDEE.js";import"./chunk-KXZCGKQW.js";import"./chunk-QCZIDOKW.js";import"./chunk-IHYEQWAY.js";import{e as he}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import"./chunk-KHWTOD6H.js";import{m as w,n as ue}from"./chunk-ITTRZMEX.js";import"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{y as fe}from"./chunk-DPLEMBB4.js";import{c as d}from"./chunk-PXB4YEY3.js";import{F as pe,H as de,J as ce,f as ae,g as F,j as le,k as P,m as me,n as se}from"./chunk-GPEVUTDI.js";import{Eb as T,Ec as p,Fb as Z,Fc as j,Gc as J,Ic as y,Jc as g,Kb as h,Kc as C,Na as V,Pc as re,Uc as oe,Wb as m,Z as Q,Zc as k,_b as $,_c as B,bc as H,cc as ee,ea as z,ec as te,fc as ie,gc as r,hc as a,ic as v,ja as q,ka as X,lc as ne,oa as Y,ob as G,pd as U,qb as l,rc as b,sc as u,vc as K,wb as f}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var Ce=(()=>{class n{constructor(){this.reportTabs=[{Title:"1.Create Order",Url:"/menu/sync-log/order/sync-order"},{Title:"2.Convert Order To Invoice",Url:"/menu/sync-log/order/convert-to-invoice"},{Title:"3.Create Invoice",Url:"/menu/sync-log/order/invoice"},{Title:"4.Create Outbound Logistic",Url:"/menu/sync-log/order/delivery"},{Title:"5.Add Payment",Url:"/menu/sync-log/order/payment"},{Title:"6.Void Invoice",Url:"/menu/sync-log/order/void-invoice"},{Title:"All",Url:"/menu/sync-log/order/all"}]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,selectors:[["app-order"]],standalone:!1,decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(i,t){i&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),v(3,"nav-tab",2),a()()(),v(4,"router-outlet")),i&2&&(l(3),m("Tabs",t.reportTabs))},dependencies:[ye,pe],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]})}}return n})();var S=class{};var I=(()=>{class n{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((i,t)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/CreateInvoice",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncVoidInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/Void",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncConvertInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/ConvertToInvoice",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncDelivery(e){return new Promise((i,t)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncPayment(e){return new Promise((i,t)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(s=>{i(s)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}static{this.\u0275fac=function(i){return new(i||n)(Y(he))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var O=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(O||{});var De=()=>["/menu/log/order"],Ee=(n,c,e,i,t)=>({responseCode:n,From:c,to:e,actionType:i,ChannelID:t});function Oe(n,c){if(n&1&&(r(0,"th",6)(1,"div",7)(2,"h4"),p(3),a(),r(4,"small",8),p(5),a()()()),n&2){let e=c.$implicit,i=u();l(3),j(e),l(),$(i.getTextBgColor(e)),l(),j(i.getHeaderStatusDesc(e))}}function Re(n,c){if(n&1&&(r(0,"a",12),p(1),k(2,"number"),a()),n&2){let e=u().$implicit,i=u().$implicit,t=u();m("routerLink",re(5,De))("queryParams",oe(6,Ee,e.Key,t.fromQueryParam,t.toQueryParam,t.type,i.ChannelID)),l(),J(" ",B(2,3,e.Value)," ")}}function Le(n,c){n&1&&(r(0,"span",13),p(1,"-"),a())}function xe(n,c){if(n&1&&(r(0,"td",11),h(1,Re,3,12,"a",12)(2,Le,2,0,"span",13),a()),n&2){let e=c.$implicit;l(),H(e.Value?1:2)}}function Me(n,c){if(n&1&&(r(0,"tr")(1,"td")(2,"a",9),v(3,"img",10),a()(),r(4,"td")(5,"div")(6,"a",9),p(7),a()(),r(8,"div"),p(9),a()(),te(10,xe,3,1,"td",11,ee),a()),n&2){let e=c.$implicit,i=u();l(2),K("href",e.Url,G),l(),m("src",i.getChannelLogo(e.Type),G),l(3),K("href",e.Url,G),l(),j(e.Name),l(2),j(e.Url),l(),ie(e.list)}}function ke(n,c){if(n&1&&(r(0,"td",11)(1,"div",17),p(2),k(3,"number"),a()()),n&2){let e=c.$implicit;l(2),J(" ",B(3,1,e.total)," ")}}function Be(n,c){if(n&1&&(r(0,"tfoot")(1,"tr")(2,"td",14)(3,"div",15),p(4,"Total"),a()(),h(5,ke,4,3,"td",16),a()()),n&2){let e=u();l(5),m("ngForOf",e.logsCalculation())}}var D=(()=>{class n{constructor(){this.header=V(),this.result=V(),this.orderedHeader=U(()=>this.header().sort((e,i)=>e-i)),this.logsOrdered=U(()=>{let e=this.result();return e=e.map(i=>(this.orderedHeader().forEach(t=>{i.list.findIndex(o=>o.Key===t)===-1&&i.list.push({Key:t,Value:0}),i.list.sort((o,A)=>o.Key-A.Key)}),i)),e}),this.logsCalculation=U(()=>{let e=this.concatStatusCode(),i=[];return this.orderedHeader().forEach(t=>{let o=e.filter(A=>A.Key===t).reduce((A,we)=>A+we.Value,0);i.push({status:t,total:o})}),i}),this.type=null,this.headerStatus=O,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}getHeaderStatusDesc(e){let i=null;switch(e){case O.BAD_REQUEST:i="BAD REQUEST";break;case O.CONFLICT:i="CONFLICT";break;case O.INTERNAL_SERVER_ERROR:i="INTERNAL SERVER ERROR";break;case O.NOT_FOUND:i="NOT FOUND";break;default:i="OK";break}return i}getTextBgColor(e){let i=null;switch(e){case O.OK:i="bg-success";break;case O.INTERNAL_SERVER_ERROR:i="bg-danger";break;default:i="bg-warning";break}return i}getChannelLogo(e){return d.getChannelLogoByTypeId(e)}concatStatusCode(){return this.logsOrdered().map(e=>e.list).reduce((e,i)=>[...e,...i],[])}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,selectors:[["app-table-report"]],inputs:{header:[1,"header"],result:[1,"result"],from:"from",to:"to",type:"type"},standalone:!1,decls:10,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"h3","fw-bold","ms-1"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(i,t){i&1&&(r(0,"table",0)(1,"thead",1)(2,"tr"),v(3,"th",2),r(4,"th",3),p(5,"Channel"),a(),h(6,Oe,6,4,"th",4),a()(),r(7,"tbody"),h(8,Me,12,5,"tr",5),a(),h(9,Be,6,1,"tfoot"),a()),i&2&&(l(6),m("ngForOf",t.orderedHeader()),l(2),m("ngForOf",t.logsOrdered()),l(),H(t.logsCalculation().length>0?9:-1))},dependencies:[ae,de,me],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]})}}return n})();function Ne(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",0)}}var ve=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.pageTitle="New Order";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-sales-order"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.getChannelLogs()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ne,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function We(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Te=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,We,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function Ae(n,c){if(n&1&&(r(0,"div",8)(1,"div",9),v(2,"app-table-report",10),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",3)}}var _e=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S;let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-delivery"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"filterDate"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div",1)(3,"label",2),p(4,"From/To"),a(),r(5,"div",3)(6,"datepicker",4),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",5),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",6),h(11,Ae,3,5,"div",7),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function je(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",4)}}var Se=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Completed";let t=new Date;this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-payment"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,je,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function Ge(n,c){n&1&&ne(0)}function Ue(n,c){if(n&1&&(r(0,"div",8)(1,"div",9),v(2,"app-table-report",10),a()()),n&2){let e=c.ngIf,i=u();l(2),m("result",e.Body)("header",e.Header)("from",i.filter==null?null:i.filter.From)("to",i.filter==null?null:i.filter.To)}}var be=(()=>{class n{constructor(e,i){this.reportOrderService=e,this.datePipe=i,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=d.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":i+"-"} ${t})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(z(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(Q())}onFilter(){this.updatePageTitle(),this.initData()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-all"]],standalone:!1,decls:15,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ge,1,0,"ng-container",6),k(12,"async"),h(13,Ue,3,4,"div",7),k(14,"async"),a()()()),i&2&&(m("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",B(12,6,t.pageLoader$)),l(2),m("ngIf",B(14,8,t.reportData$)))},dependencies:[F,w,_,D,le],encapsulation:2})}}return n})();function Ve(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Fe=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Convert Sales Order To Invoice";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Convert Sales Order To Invoice (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-convert-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ve,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function He(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Pe=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,selectors:[["app-void-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,He,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();var Ke=[{path:"",component:Ce,children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:"sync-order",component:ve,canActivate:[R],data:{title:"Sync Order"}},{path:"convert-to-invoice",component:Fe,canActivate:[R],data:{title:"Sync Convert to Invoice"}},{path:"invoice",component:Te,canActivate:[R],data:{title:"Sync Invoice"}},{path:"delivery",component:_e,canActivate:[R],data:{title:"Sync Delivery"}},{path:"payment",component:Se,canActivate:[R],data:{title:"Sync Payment"}},{path:"void-invoice",component:Pe,canActivate:[R],data:{title:"Sync void invoice"}},{path:"all",component:be,canActivate:[R],data:{title:"All Report"}}]}],Gt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=Z({type:n})}static{this.\u0275inj=X({imports:[se,ge,fe,ue,_,ce.forChild(Ke)]})}}return n})();export{Gt as OrderModule};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as F}from"./chunk-CTUXL543.js";import{a as _t}from"./chunk-7KG3DC5J.js";import{a as k}from"./chunk-4ASUM4N5.js";import{a as dt,b as st,d as ft,e as ut}from"./chunk-6IAGGRZN.js";import{l as pt}from"./chunk-IHYEQWAY.js";import{e as ct}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import{m as B,n as gt}from"./chunk-ITTRZMEX.js";import"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{h as at,m as rt,y as lt}from"./chunk-DPLEMBB4.js";import{c as mt}from"./chunk-PXB4YEY3.js";import{E as ot,H as L,J as R,d as it,f as nt,g as D,j as M,k as T,m as w,n as P}from"./chunk-GPEVUTDI.js";import{$c as C,Dc as J,Eb as N,Ec as a,Fb as b,Fc as p,Gc as S,Ic as K,Jc as Q,Kb as f,Kc as X,Pc as Y,Qc as Z,Rc as tt,Wb as m,Z as O,Zc as d,_c as h,aa as z,ad as et,ca as q,f as A,gc as o,hc as n,ic as E,jc as u,ka as x,kc as g,mc as W,nb as U,ob as j,qb as r,rc as H,sc as s,v,vc as G,wb as _,ya as I,za as y}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";var bt=(e,c)=>({"bg-gradient-danger":e,"bg-gradient-warning":c}),Et=()=>["/menu/notification/detail"],Dt=e=>({ID:e});function Mt(e,c){if(e&1&&(o(0,"span",14),E(1,"img",15),n(),a(2)),e&2){let t=c.item;r(),m("src",t.Img,j)("alt",t.Name),r(),S(" ",t.Name," ")}}function Tt(e,c){if(e&1&&(u(0),a(1),d(2,"number"),o(3,"span"),a(4,"s"),n(),g()),e&2){let t=s().$implicit;r(),S(" ",C(2,1,t.DurationInSecond,"1.1-1")," ")}}function wt(e,c){e&1&&a(0," - ")}function Pt(e,c){if(e&1&&(u(0),o(1,"tr",16)(2,"td")(3,"a",17),E(4,"img",18),o(5,"span"),a(6),n()()(),o(7,"td")(8,"b"),a(9),n(),E(10,"div",19),n(),o(11,"td"),f(12,Tt,5,4,"ng-container",20)(13,wt,1,0,"ng-template",null,0,et),n(),o(15,"td"),a(16),n(),o(17,"td"),a(18),d(19,"date"),n()(),g()),e&2){let t=c.$implicit,i=J(14);r(),m("ngClass",tt(14,bt,t.Status==1,t.Status==0)),r(2),m("routerLink",Y(17,Et))("queryParams",Z(18,Dt,t.ID)),r(),G("src",t.Img,j),r(2),p(t.Name),r(3),p(t.Label),r(),m("innerHTML",t.Message,U),r(2),m("ngIf",t.DurationInSecond)("ngIfElse",i),r(4),p(t.StatusLabel),r(2),p(C(19,11,t.Created,"dd MMM yyyy HH:mm"))}}function Lt(e,c){if(e&1){let t=W();u(0),o(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),d(4,"async"),d(5,"async"),H("total",function(){I(t);let l=s(2);return y(l.getRowCount())})("next",function(){I(t);let l=s(2);return y(l.getNotifications())})("previous",function(){I(t);let l=s(2);return y(l.getNotifications())}),n()()(),g()}if(e&2){let t=s().ngIf,i=s();r(3),m("filter",i.filter)("totaldata",t==null?null:t.length)("paginationTotal",h(4,4,i.rowCount$))("hasClicked",h(5,6,i.rowCount$))}}function Rt(e,c){if(e&1&&(u(0),f(1,Lt,6,8,"ng-container",13),g()),e&2){let t=c.ngIf;r(),m("ngIf",t.length>0)}}var ht=(()=>{class e{constructor(t,i,l){this.http=t,this.notificationService=i,this.authService=l,this.filter=new _t,this.destroy$=new A,this.channelOptions=l.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(q(this.destroy$)).subscribe(t=>{t.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(t=>{this.filter=t.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let t={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",t).pipe(v(i=>i.Data),v(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),O(1))}setTimeToSecond(t){return t=t.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),t}setChannelLogoToNotifications(t){return t=t.map(i=>(i.Img=mt.getChannelLogoByTypeId(i.TypeID),i)),t}getRowCount(){let t={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",t).pipe(v(i=>i.Count),O(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||e)(_(ct),_(F),_(pt))}}static{this.\u0275cmp=N({type:e,selectors:[["app-notification"]],standalone:!1,decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,l){i&1&&(o(0,"mainpanel",1),H("onSubmit",function(){return l.onFilter()}),o(1,"filters")(2,"div")(3,"h6",2),a(4,"Channel"),n(),o(5,"ng-select",3),X("ngModelChange",function($){return Q(l.filter.ChannelID,$)||(l.filter.ChannelID=$),$}),f(6,Mt,3,3,"ng-template",4),n()()(),o(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),a(16,"Channel"),n(),o(17,"th"),a(18,"Process"),n(),o(19,"th"),a(20,"Duration"),n(),o(21,"th"),a(22,"Status"),n(),o(23,"th"),a(24,"Created"),n()()(),o(25,"tbody"),f(26,Pt,20,20,"ng-container",12),d(27,"async"),n()()()()(),f(28,Rt,2,1,"ng-container",13),d(29,"async"),n()()()),i&2&&(r(5),m("clearable",!0)("items",l.channelOptions),K("ngModel",l.filter.ChannelID),r(21),m("ngForOf",h(27,5,l.notifications$)),r(2),m("ngIf",h(29,7,l.notifications$)))},dependencies:[it,nt,D,ft,dt,st,at,rt,B,L,k,M,w,T],encapsulation:2})}}return e})();function Ft(e,c){if(e&1&&(o(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),a(4,"Perflog"),n()(),o(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),a(9),n()()()()()()),e&2){let t=s().ngIf;r(9),p(t.Perflog)}}function Bt(e,c){if(e&1&&(u(0),o(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),a(5,"StackTrace"),n()(),o(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),a(10),n()()()()()(),g()),e&2){let t=s().ngIf;r(10),p(t==null?null:t.StackTrace)}}function kt(e,c){if(e&1&&(u(0),o(1,"mainpanel",1)(2,"actions")(3,"a",2),a(4,"Back"),n()(),o(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),a(12,"General"),n()(),o(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),a(18,"Created Date"),n(),o(19,"div")(20,"span"),a(21),d(22,"date"),n()()()(),o(23,"div",10)(24,"div",11)(25,"label"),a(26,"Status"),n(),o(27,"div")(28,"span"),a(29),n()()()()(),o(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),a(34,"Duration"),n(),o(35,"div")(36,"span"),a(37),d(38,"number"),n()()()(),o(39,"div",10)(40,"div",11)(41,"label"),a(42,"Label"),n(),o(43,"div")(44,"span"),a(45),n()()()()()()()()(),o(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),a(51,"Message"),n()(),o(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),a(56),n()()()()()(),f(57,Ft,10,1,"div",16)(58,Bt,11,1,"ng-container",0),n()()()(),g()),e&2){let t=c.ngIf;r(),m("headerTitle","Notification "+t.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),r(20),p(C(22,10,t.Created,"dd MMM yyyy HH:mm:ss")),r(8),p(t.StatusLabel),r(8),S("",C(38,13,t.DurationInSecond,"1.1-1")," s"),r(8),p(t.Label),r(11),p(t.Message),r(),m("ngIf",t==null?null:t.Perflog),r(),m("ngIf",t==null?null:t.StackTrace)}}var vt=(()=>{class e{constructor(t,i){this.activatedRoute=t,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(z(t=>{let i=t.ID;return this.notificationService.getNotificationDetail(i).pipe(v(l=>(l.DurationInSecond=parseInt(l.Duration)/1e3,l)))}))}static{this.\u0275fac=function(i){return new(i||e)(_(ot),_(F))}}static{this.\u0275cmp=N({type:e,selectors:[["app-detail"]],standalone:!1,decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,l){i&1&&(f(0,kt,59,16,"ng-container",0),d(1,"async")),i&2&&m("ngIf",h(1,1,l.notification$))},dependencies:[D,B,L,M,w,T],encapsulation:2})}}return e})();var $t=[{path:"",component:ht},{path:"detail",component:vt}],Ct=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=b({type:e})}static{this.\u0275inj=x({imports:[P,R.forChild($t)]})}}return e})();var de=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=b({type:e})}static{this.\u0275inj=x({imports:[P,Ct,ut,lt,gt,R,k]})}}return e})();export{de as NotificationModule};
|