dealposbooks 1.9.2 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/3rdpartylicenses.txt +769 -68
  2. package/assets/scss/components/_scafholdings.scss +21 -17
  3. package/assets/scss/layouts/_sidebar.scss +1 -1
  4. package/assets/scss/style.scss +51 -11
  5. package/assets/scss/variables/_variables.scss +3 -3
  6. package/{chunk-4OXMK44M.js → chunk-2US5D2LY.js} +1 -1
  7. package/{chunk-HKFTHGN6.js → chunk-33XUIS57.js} +1 -1
  8. package/{chunk-DCES5UJV.js → chunk-353U23ZQ.js} +1 -1
  9. package/chunk-3B65XZ6E.js +1 -0
  10. package/{chunk-5M3BH2HK.js → chunk-3CEJ67I5.js} +1 -1
  11. package/chunk-3E2EKFPH.js +1 -0
  12. package/{chunk-XFW6LFAM.js → chunk-3ENMEUVK.js} +1 -1
  13. package/chunk-3H5KBX4R.js +1 -0
  14. package/chunk-3XLREP6U.js +297 -0
  15. package/{chunk-63XPN7AG.js → chunk-4CUA33JH.js} +1 -1
  16. package/chunk-4NSHHAXV.js +1 -0
  17. package/{chunk-OVUTH3B6.js → chunk-5AITWOQZ.js} +1 -1
  18. package/{chunk-VET2QT6C.js → chunk-5QVQY32E.js} +1 -1
  19. package/chunk-6DPW74DP.js +1 -0
  20. package/{chunk-FOSJHYSQ.js → chunk-6NCHCAKY.js} +3 -3
  21. package/{chunk-HBVENULS.js → chunk-7DRL5PZZ.js} +1 -1
  22. package/chunk-7G6KXHQB.js +1 -0
  23. package/{chunk-W5VZK5LZ.js → chunk-7KQDKLO4.js} +1 -1
  24. package/{chunk-VHNXAKFS.js → chunk-7U2775BI.js} +1 -1
  25. package/{chunk-OPNWLQQY.js → chunk-7U2I35GP.js} +1 -1
  26. package/{chunk-5MHVGNVO.js → chunk-A47VRZZB.js} +1 -1
  27. package/{chunk-JWPV2SP2.js → chunk-ACQX2T2H.js} +1 -1
  28. package/chunk-AG7353CN.js +1 -0
  29. package/chunk-AI6YS6T2.js +1 -0
  30. package/{chunk-S6JRFIGG.js → chunk-ANMXAMBL.js} +1 -1
  31. package/{chunk-K5GIEJY3.js → chunk-ARSLNNKY.js} +4 -4
  32. package/chunk-AT7II4DO.js +7 -0
  33. package/{chunk-OUJ6CGAI.js → chunk-BCXNVGDH.js} +1 -1
  34. package/chunk-BJNN42CI.js +1 -0
  35. package/chunk-CSQ4MHL2.js +246 -0
  36. package/chunk-DG6ETDOW.js +1 -0
  37. package/{chunk-ELUESCCC.js → chunk-DIX7J6JH.js} +1 -1
  38. package/chunk-DMVAXVYQ.js +1 -0
  39. package/{chunk-4FHVIHSY.js → chunk-DNSQSWOS.js} +1 -1
  40. package/chunk-F3PEWQT7.js +1 -0
  41. package/{chunk-PCZW753D.js → chunk-FTVGAWDW.js} +1 -1
  42. package/{chunk-M66SFDOI.js → chunk-FUCSF42O.js} +1 -1
  43. package/chunk-FXUC6M2U.js +1 -0
  44. package/{chunk-UHDEQNDX.js → chunk-GCGWIESO.js} +1 -1
  45. package/{chunk-DERWDCI5.js → chunk-GY53MWXH.js} +5 -5
  46. package/{chunk-FJ7IM55X.js → chunk-H4V6YZX2.js} +1 -1
  47. package/chunk-IHJLTHHQ.js +1 -0
  48. package/{chunk-KOC7QQ5A.js → chunk-J6H3BBKP.js} +1 -1
  49. package/{chunk-5CZUTVXD.js → chunk-JG5HGOEX.js} +1 -1
  50. package/{chunk-OBBJFGOA.js → chunk-LFDCJISD.js} +1 -1
  51. package/chunk-LFGL4ACG.css +1 -0
  52. package/{chunk-JDKSRPMM.js → chunk-LNRTAR2V.js} +1 -1
  53. package/chunk-LWKS2JEV.js +1 -0
  54. package/chunk-N2XLL6HJ.js +33 -0
  55. package/chunk-NM37SDQJ.js +1 -0
  56. package/chunk-NN6GSTBJ.js +1 -0
  57. package/chunk-NRULEUE7.js +1 -0
  58. package/{chunk-4EDEITTK.js → chunk-O2GA6PH7.js} +1 -1
  59. package/{chunk-PAQGWJ3J.js → chunk-OAD4GTH6.js} +1 -1
  60. package/chunk-OCIKQOWD.js +328 -0
  61. package/{chunk-JBLYOAVS.js → chunk-PJKHUCJX.js} +1 -1
  62. package/chunk-PRRU3DEZ.js +503 -0
  63. package/{chunk-TO47DVWB.js → chunk-PZBZVQUY.js} +1 -1
  64. package/chunk-Q2IWISMY.js +1 -0
  65. package/{chunk-V4MEQMDJ.js → chunk-Q5BXN24W.js} +3 -3
  66. package/{chunk-EDPSZYHH.js → chunk-QIXIZZPY.js} +1 -1
  67. package/{chunk-Q3HG4BLC.js → chunk-RANHETC3.js} +2 -2
  68. package/{chunk-HGUXJRBI.js → chunk-RQEEJGOE.js} +1 -1
  69. package/{chunk-GO3ETPB7.js → chunk-SGXU6X3O.js} +1 -1
  70. package/chunk-TDDTBHQE.js +1 -0
  71. package/{chunk-W56XJVPD.js → chunk-TNWHAKS6.js} +1 -1
  72. package/{chunk-ZZNYX7MX.js → chunk-TPGKCMVN.js} +1 -1
  73. package/{chunk-CP57YBBI.js → chunk-TYETQJ2X.js} +2 -2
  74. package/{chunk-FNWWNWQP.js → chunk-U5LD55IP.js} +1 -1
  75. package/chunk-U6SRN7P3.js +1 -0
  76. package/{chunk-CCE4VMYO.js → chunk-V3B32QFK.js} +1 -1
  77. package/chunk-VBCJCAMN.js +1 -0
  78. package/chunk-W76GKZZU.js +1 -0
  79. package/{chunk-Z5SFK23M.js → chunk-WAJWW3TC.js} +1 -1
  80. package/{chunk-WLFERE5C.js → chunk-WM3NKRKN.js} +1 -1
  81. package/{chunk-GYOO2JKC.js → chunk-X4EHZEMZ.js} +1 -1
  82. package/chunk-X5SV4H5B.js +1 -0
  83. package/chunk-YQFG5XE2.js +1 -0
  84. package/chunk-YWYF6P7O.js +1 -0
  85. package/chunk-YYUWLV5N.js +1 -0
  86. package/{chunk-OWUXXKGD.js → chunk-ZB6TB7JI.js} +3 -3
  87. package/{chunk-PZRWSIXN.js → chunk-ZPTNYW2S.js} +1 -1
  88. package/{chunk-7CAU344O.js → chunk-ZUALJ33O.js} +1 -1
  89. package/index.html +2 -2
  90. package/main-L6WVDQUB.js +1 -0
  91. package/main-YYIZ54AR.css +1 -0
  92. package/package.json +1 -1
  93. package/styles-7FHABE27.css +1 -0
  94. package/chunk-2GAPYNNZ.js +0 -1
  95. package/chunk-2HYLQR56.js +0 -1
  96. package/chunk-2VTAWSHV.js +0 -1
  97. package/chunk-3R4UQAEP.js +0 -1
  98. package/chunk-3SPHZLLV.js +0 -301
  99. package/chunk-4OHRBQE4.js +0 -1
  100. package/chunk-4TTJBC5I.js +0 -1
  101. package/chunk-74EMBNLM.js +0 -1
  102. package/chunk-75NY4EHJ.js +0 -7
  103. package/chunk-BS6MB7HD.js +0 -1
  104. package/chunk-C54Z7Z3J.js +0 -246
  105. package/chunk-EQDQRRRY.js +0 -1
  106. package/chunk-GH3BVHFE.js +0 -1
  107. package/chunk-GYI6FJNZ.js +0 -1
  108. package/chunk-HF7H6NPN.js +0 -1
  109. package/chunk-MOGY4H6O.js +0 -1
  110. package/chunk-PMQ7L7VQ.js +0 -1
  111. package/chunk-PRVKVHZC.js +0 -1
  112. package/chunk-QEQCMTMU.js +0 -1
  113. package/chunk-QMXENXYW.js +0 -1
  114. package/chunk-R4CV5F66.js +0 -1
  115. package/chunk-RJZW77TO.js +0 -1
  116. package/chunk-W37QK7Z5.js +0 -520
  117. package/chunk-WF2ZEF5P.js +0 -1
  118. package/chunk-WZ5MSCDB.js +0 -1
  119. package/chunk-YAEJRHVD.js +0 -1
  120. package/chunk-ZQKGNYP5.js +0 -297
  121. package/main-G22CDQKS.js +0 -1
  122. package/styles-ETBLCGC3.css +0 -1
@@ -1,2 +1,2 @@
1
- import{a as _,b as nt,c as Si,d as Ti,e as Ei,f as it,g as bi,h as De,i as Ci,u as Lt,v as Ii,x as jr,y as jt,z as Fr}from"./chunk-DCES5UJV.js";import{$ as y,$a as fe,Aa as _r,Bb as kr,Ca as Hn,Cb as li,D as G,Da as Pr,Eb as Lr,Fb as tt,Ga as Gn,Gb as rt,Ha as Nr,I as ne,Ia as Wn,J as ee,Ja as Ye,Jb as di,La as Ur,M as Ir,Ma as Xn,Mc as vi,N as Ee,Na as Jn,Oa as Nt,Pc as xt,Q as be,Qa as Yn,R as ie,Ra as Ze,S as Mr,Sa as Me,Sc as yi,T as jn,Ta as Ae,Tc as Ri,U as Fn,Ua as Zn,Uc as kt,Va as Kn,W as $n,Wa as Qn,Wb as hi,X as x,Xa as ei,Y as zn,Ya as ti,Z as D,Za as ri,_a as ni,_c as wi,a as Pn,ba as v,c as Nn,ca as Xe,cb as ii,d as Un,da as Bn,dc as fi,e as Er,ea as C,f as br,fa as Ar,g as K,ga as g,gb as Ke,h as $,ha as d,ia as Ce,ic as pi,jb as oi,k as Q,ka as Vn,kb as xr,kc as gi,l as O,la as oe,lb as V,lc as mi,m as f,ma as z,mb as si,n as Ge,nb as ai,o as xn,oa as Je,p as kn,rb as ci,s as E,sa as Dr,t as _t,ta as qn,tb as Ut,u as N,ua as Ie,ub as ui,v as We,va as Or,vb as Qe,w as Ln,wb as et,x as Cr,xa as Pt,ya as he,za as B}from"./chunk-K5GIEJY3.js";import{a as h,b as P,c as _n}from"./chunk-EQDQRRRY.js";var zt=new C(""),Vr=(()=>{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 y(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(g(zt),g(B))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ot=class{_doc;constructor(r){this._doc=r}manager},Ft="ng-app-id";function Mi(t){for(let r of t)r.remove()}function Ai(t,r){let e=r.createElement("style");return e.textContent=t,e}function Ko(t,r,e,n){let i=t.head?.querySelectorAll(`style[${Ft}="${r}"],link[${Ft}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Ft),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 zr(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=jr(o),Ko(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Ai);n?.forEach(i=>this.addUsage(i,this.external,zr))}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&&(Mi(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Mi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Ai(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,zr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ft,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(g(_),g(Nr),g(Ur,8),g(Ye))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),$r={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"},Hr=/%COMP%/g;var Oi="%COMP%",Qo=`_nghost-${Oi}`,es=`_ngcontent-${Oi}`,ts=!0,rs=new C("",{providedIn:"root",factory:()=>ts});function ns(t){return es.replace(Hr,t)}function is(t){return Qo.replace(Hr,t)}function _i(t,r){return r.map(e=>e.replace(Hr,t))}var Gr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,c,u=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=jr(a),this.defaultRenderer=new st(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ze.ShadowDom&&(n=P(h({},n),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof $t?i.applyToHost(e):i instanceof at&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,w=this.tracingService;switch(n.encapsulation){case Ze.Emulated:o=new $t(c,u,n,this.appId,l,s,a,m,w);break;case Ze.ShadowDom:return new Br(c,u,e,n,s,a,this.nonce,m,w);default:o=new at(c,u,n,l,s,a,m,w);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)(g(Vr),g(qr),g(Nr),g(rs),g(_),g(Ye),g(B),g(Ur),g(Jn,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),st=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($r[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Di(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Di(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 y(-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=$r[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=$r[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&(Ke.DashCase|Ke.Important)?r.style.setProperty(e,n,i&Ke.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ke.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=nt().getGlobalEventTarget(this.doc,r),!r))throw new y(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 Di(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Br=class extends st{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=_i(i.id,l);for(let w of l){let S=document.createElement("style");a&&S.setAttribute("nonce",a),S.textContent=w,this.shadowRoot.appendChild(S)}let m=i.getExternalStyles?.();if(m)for(let w of m){let S=zr(w,o);a&&S.setAttribute("nonce",a),this.shadowRoot.appendChild(S)}}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)}},at=class extends st{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=u?_i(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},$t=class extends at{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,c,u){let l=i+"-"+n.id;super(r,e,n,o,s,a,c,u,l),this.contentAttr=ns(l),this.hostAttr=is(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 Bt=class t extends Ti{supportsDOMEvents=!0;static makeCurrent(){Si(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=ss();return e==null?null:as(e)}resetBaseElement(){ut=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Lt(document.cookie,r)}},ut=null;function ss(){return ut=ut||document.head.querySelector("base"),ut?ut.getAttribute("href"):null}function as(t){return new URL(t,document.baseURI).pathname}var cs=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ni=(()=>{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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Pi=["alt","control","meta","shift"],us={"\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"},ls={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ui=(()=>{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(()=>nt().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."),Pi.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),s+=u+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let i=us[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"),Pi.forEach(s=>{if(s!==i){let a=ls[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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function ds(t,r){return yi(h({rootComponent:t},hs(r)))}function hs(t){return{appProviders:[...vs,...t?.providers??[]],platformProviders:ms}}function fs(){Bt.makeCurrent()}function ps(){return new _r}function gs(){return Gn(document),document}var ms=[{provide:Ye,useValue:Ii},{provide:Wn,useValue:fs,multi:!0},{provide:_,useFactory:gs}];var vs=[{provide:Vn,useValue:"root"},{provide:_r,useFactory:ps},{provide:zt,useClass:Ni,multi:!0,deps:[_]},{provide:zt,useClass:Ui,multi:!0,deps:[_]},Gr,qr,Vr,{provide:oi,useExisting:Gr},{provide:jt,useClass:cs},[]];var _e=class{},lt=class{},re=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 qt=class{encodeKey(r){return xi(r)}encodeValue(r){return xi(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function ys(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))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var Rs=/%(\d[a-f0-9])/gi,ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xi(t){return encodeURIComponent(t).replace(Rs,(r,e)=>ws[e]??r)}function Vt(t){return`${t}`}var te=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new qt,r.fromString){if(r.fromObject)throw new y(2805,!1);this.map=ys(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(Vt):[Vt(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(Vt(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(Vt(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 Ht=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 Ss(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ki(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Li(t){return typeof Blob<"u"&&t instanceof Blob}function ji(t){return typeof FormData<"u"&&t instanceof FormData}function Ts(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Fi="Content-Type",$i="Accept",zi="X-Request-URL",Bi="text/plain",Vi="application/json",Es=`${Vi}, ${Bi}, */*`,Oe=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(Ss(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 re,this.context??=new Ht,!this.params)this.params=new te,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ki(this.body)||Li(this.body)||ji(this.body)||Ts(this.body)?this.body:this.body instanceof te?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||ji(this.body)?null:Li(this.body)?this.body.type||null:ki(this.body)?null:typeof this.body=="string"?Bi:this.body instanceof te?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Vi: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,c=r.reportProgress??this.reportProgress,u=r.headers||this.headers,l=r.params||this.params,m=r.context??this.context;return r.setHeaders!==void 0&&(u=Object.keys(r.setHeaders).reduce((w,S)=>w.set(S,r.setHeaders[S]),u)),r.setParams&&(l=Object.keys(r.setParams).reduce((w,S)=>w.set(S,r.setParams[S]),l)),new t(e,n,s,{params:l,headers:u,context:m,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},pe=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}(pe||{}),Pe=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new re,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}},Gt=class t extends Pe{constructor(r={}){super(r)}type=pe.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})}},ge=class t extends Pe{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=pe.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})}},dt=class extends Pe{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}},bs=200,Cs=204;function Wr(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 qi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Oe)o=e;else{let c;i.headers instanceof re?c=i.headers:c=new re(i.headers);let u;i.params&&(i.params instanceof te?u=i.params:u=new te({fromObject:i.params})),o=new Oe(e,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=f(o).pipe(ee(c=>this.handler.handle(c)));if(e instanceof Oe||i.observe==="events")return s;let a=s.pipe(G(c=>c instanceof ge));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y(2806,!1);return c.body}));case"blob":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y(2807,!1);return c.body}));case"text":return a.pipe(E(c=>{if(c.body!==null&&typeof c.body!="string")throw new y(2808,!1);return c.body}));case"json":default:return a.pipe(E(c=>c.body))}case"response":return a;default:throw new y(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 te().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,Wr(i,n))}post(e,n,i={}){return this.request("POST",e,Wr(i,n))}put(e,n,i={}){return this.request("PUT",e,Wr(i,n))}static \u0275fac=function(n){return new(n||t)(g(_e))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Is=new C("");function Ms(t,r){return r(t)}function As(t,r,e){return(n,i)=>z(e,()=>r(n,o=>t(o,i)))}var Jr=new C(""),Yr=new C(""),Hi=new C("",{providedIn:"root",factory:()=>!0});var Wt=(()=>{class t extends _e{backend;injector;chain=null;pendingTasks=d(Pt);contributeToStability=d(Hi);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(Jr),...this.injector.get(Yr,[])]));this.chain=n.reduceRight((i,o)=>As(i,o,this.injector),Ms)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(be(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(g(lt),g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Ds=/^\)\]\}',?\n/,Os=RegExp(`^${zi}:`,"m");function _s(t){return"responseURL"in t&&t.responseURL?t.responseURL:Os.test(t.getAllResponseHeaders())?t.getResponseHeader(zi):null}var Xr=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new y(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?O(n.\u0275loadImpl()):f(null)).pipe(x(()=>new Un(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((R,T)=>s.setRequestHeader(R,T.join(","))),e.headers.has($i)||s.setRequestHeader($i,Es),!e.headers.has(Fi)){let R=e.detectContentTypeHeader();R!==null&&s.setRequestHeader(Fi,R)}if(e.responseType){let R=e.responseType.toLowerCase();s.responseType=R!=="json"?R:"text"}let a=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let R=s.statusText||"OK",T=new re(s.getAllResponseHeaders()),F=_s(s)||e.url;return c=new Gt({headers:T,status:s.status,statusText:R,url:F}),c},l=()=>{let{headers:R,status:T,statusText:F,url:Te}=u(),I=null;T!==Cs&&(I=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=I?bs:0);let He=T>=200&&T<300;if(e.responseType==="json"&&typeof I=="string"){let Yo=I;I=I.replace(Ds,"");try{I=I!==""?JSON.parse(I):null}catch(Zo){I=Yo,He&&(He=!1,I={error:Zo,text:I})}}He?(o.next(new ge({body:I,headers:R,status:T,statusText:F,url:Te||void 0})),o.complete()):o.error(new dt({error:I,headers:R,status:T,statusText:F,url:Te||void 0}))},m=R=>{let{url:T}=u(),F=new dt({error:R,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(F)},w=!1,S=R=>{w||(o.next(u()),w=!0);let T={type:pe.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},M=R=>{let T={type:pe.UploadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),o.next(T)};return s.addEventListener("load",l),s.addEventListener("error",m),s.addEventListener("timeout",m),s.addEventListener("abort",m),e.reportProgress&&(s.addEventListener("progress",S),a!==null&&s.upload&&s.upload.addEventListener("progress",M)),s.send(a),o.next({type:pe.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",l),s.removeEventListener("timeout",m),e.reportProgress&&(s.removeEventListener("progress",S),a!==null&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(g(jt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Gi=new C(""),Ps="XSRF-TOKEN",Ns=new C("",{providedIn:"root",factory:()=>Ps}),Us="X-XSRF-TOKEN",xs=new C("",{providedIn:"root",factory:()=>Us}),ht=class{},ks=(()=>{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=Lt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(g(_),g(Ns))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Ls(t,r){let e=t.url.toLowerCase();if(!d(Gi)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(ht).getToken(),i=d(xs);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var Zr=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}(Zr||{});function js(t,r){return{\u0275kind:t,\u0275providers:r}}function Fs(...t){let r=[qi,Xr,Wt,{provide:_e,useExisting:Wt},{provide:lt,useFactory:()=>d(Is,{optional:!0})??d(Xr)},{provide:Jr,useValue:Ls,multi:!0},{provide:Gi,useValue:!0},{provide:ht,useClass:ks}];for(let e of t)r.push(...e.\u0275providers);return Ce(r)}function $s(t){return js(Zr.Interceptors,t.map(r=>({provide:Jr,useValue:r,multi:!0})))}var Bs=new C(""),Vs="b",qs="h",Hs="s",Gs="st",Ws="u",Xs="rt",Kr=new C(""),Js=["GET","HEAD"];function Ys(t,r){let w=d(Kr),{isCacheActive:e}=w,n=_n(w,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!Js.includes(o)||!n.includeRequestsWithAuthHeaders&&Zs(t)||n.filter?.(t)===!1)return r(t);let s=d(Xn);if(d(Bs,{optional:!0}))throw new y(2803,!1);let c=t.url,u=Ks(t,c),l=s.get(u,null),m=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(m=i.includeHeaders),l){let{[Vs]:S,[Xs]:M,[qs]:R,[Hs]:T,[Gs]:F,[Ws]:Te}=l,I=S;switch(M){case"arraybuffer":I=new TextEncoder().encode(S).buffer;break;case"blob":I=new Blob([S]);break}let He=new re(R);return f(new ge({body:I,headers:He,status:T,statusText:F,url:Te}))}return r(t).pipe(D(S=>{S instanceof ge}))}function Zs(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function Wi(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Ks(t,r){let{params:e,method:n,responseType:i}=t,o=Wi(e),s=t.serializeBody();s instanceof URLSearchParams?s=Wi(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=Qs(a);return c}function Qs(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function Xi(t){return[{provide:Kr,useFactory:()=>(Nt("NgHttpTransferCache"),h({isCacheActive:!0},t))},{provide:Yr,useValue:Ys,multi:!0},{provide:tt,multi:!0,useFactory:()=>{let r=d(rt),e=d(Kr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Ji=(()=>{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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ta=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=g(ra),i},providedIn:"root"})}return t})(),ra=(()=>{class t extends ta{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case fe.NONE:return n;case fe.HTML:return Ae(n,"HTML")?Me(n):ni(this._doc,String(n)).toString();case fe.STYLE:return Ae(n,"Style")?Me(n):n;case fe.SCRIPT:if(Ae(n,"Script"))return Me(n);throw new y(5200,!1);case fe.URL:return Ae(n,"URL")?Me(n):ri(String(n));case fe.RESOURCE_URL:if(Ae(n,"ResourceURL"))return Me(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Zn(e)}bypassSecurityTrustStyle(e){return Kn(e)}bypassSecurityTrustScript(e){return Qn(e)}bypassSecurityTrustUrl(e){return ei(e)}bypassSecurityTrustResourceUrl(e){return ti(e)}static \u0275fac=function(n){return new(n||t)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qr=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Qr||{});function Tl(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(Qr.HttpTransferCacheOptions);return Ce([[],Ri(),e.has(Qr.NoHttpTransferCache)||n?[]:Xi({}),r])}var p="primary",Ct=Symbol("RouteTitle"),on=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 ye(t){return new on(t)}function no(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 ia(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!W(t[e],r[e]))return!1;return!0}function W(t,r){let e=t?sn(t):void 0,n=r?sn(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],!io(t[i],r[i]))return!1;return!0}function sn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function io(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 oo(t){return t.length>0?t[t.length-1]:null}function le(t){return xn(t)?t:li(t)?O(Promise.resolve(t)):f(t)}var oa={exact:ao,subset:co},so={exact:sa,subset:aa,ignored:()=>!0};function Yi(t,r,e){return oa[e.paths](t.root,r.root,e.matrixParams)&&so[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function sa(t,r){return W(t,r)}function ao(t,r,e){if(!me(t.segments,r.segments)||!Yt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ao(t.children[n],r.children[n],e))return!1;return!0}function aa(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>io(t[e],r[e]))}function co(t,r,e){return uo(t,r,r.segments,e)}function uo(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Yt(i,e,n))}else if(t.segments.length===e.length){if(!me(t.segments,e)||!Yt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!co(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!me(t.segments,i)||!Yt(t.segments,i,n)||!t.children[p]?!1:uo(t.children[p],r,o,n)}}function Yt(t,r,e){return r.every((n,i)=>so[e](t[i].parameters,n.parameters))}var J=class{root;queryParams;fragment;_queryParamMap;constructor(r=new b([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){return la.serialize(this)}},b=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 Zt(this)}},se=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ye(this.parameters),this._parameterMap}toString(){return ho(this)}};function ca(t,r){return me(t,r)&&t.every((e,n)=>W(e.parameters,r[n].parameters))}function me(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function ua(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var de=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>new ae,providedIn:"root"})}return t})(),ae=class{parse(r){let e=new cn(r);return new J(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${ft(r.root,!0)}`,n=fa(r.queryParams),i=typeof r.fragment=="string"?`#${da(r.fragment)}`:"";return`${e}${n}${i}`}},la=new ae;function Zt(t){return t.segments.map(r=>ho(r)).join("/")}function ft(t,r){if(!t.hasChildren())return Zt(t);if(r){let e=t.children[p]?ft(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${ft(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=ua(t,(n,i)=>i===p?[ft(t.children[p],!1)]:[`${i}:${ft(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Zt(t)}/${e[0]}`:`${Zt(t)}/(${e.join("//")})`}}function lo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(t){return lo(t).replace(/%3B/gi,";")}function da(t){return encodeURI(t)}function an(t){return lo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kt(t){return decodeURIComponent(t)}function Zi(t){return Kt(t.replace(/\+/g,"%20"))}function ho(t){return`${an(t.path)}${ha(t.parameters)}`}function ha(t){return Object.entries(t).map(([r,e])=>`;${an(r)}=${an(e)}`).join("")}function fa(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Xt(e)}=${Xt(i)}`).join("&"):`${Xt(e)}=${Xt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var pa=/^[^\/()?;#]+/;function en(t){let r=t.match(pa);return r?r[0]:""}var ga=/^[^\/()?;=#]+/;function ma(t){let r=t.match(ga);return r?r[0]:""}var va=/^[^=?&#]+/;function ya(t){let r=t.match(va);return r?r[0]:""}var Ra=/^[^&#]+/;function wa(t){let r=t.match(Ra);return r?r[0]:""}var cn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],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[p]=new b(r,e)),n}parseSegment(){let r=en(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new se(Kt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=ma(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=en(this.remaining);i&&(n=i,this.capture(n))}r[Kt(e)]=Kt(n)}parseQueryParam(r){let e=ya(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=wa(this.remaining);s&&(n=s,this.capture(n))}let i=Zi(e),o=Zi(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=en(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new b([],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 y(4011,!1)}};function fo(t){return t.segments.length>0?new b([],{[p]:t}):t}function po(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=po(i);if(n===p&&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 b(t.segments,r);return Sa(e)}function Sa(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new b(t.segments.concat(r.segments),r.children)}return t}function ce(t){return t instanceof J}function go(t,r,e=null,n=null){let i=mo(t);return vo(i,r,e,n)}function mo(t){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new b(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=fo(n);return r??i}function vo(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return tn(i,i,i,e,n);let o=Ta(r);if(o.toRoot())return tn(i,i,new b([],{}),e,n);let s=Ea(o,i,t),a=s.processChildren?gt(s.segmentGroup,s.index,o.commands):Ro(s.segmentGroup,s.index,o.commands);return tn(i,s.segmentGroup,a,e,n)}function er(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vt(t){return typeof t=="object"&&t!=null&&t.outlets}function tn(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===r?s=e:s=yo(t,r,e);let a=fo(po(s));return new J(a,o,i)}function yo(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=yo(o,r,e)}),new b(t.segments,n)}var tr=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&er(n[0]))throw new y(4003,!1);let i=n.find(vt);if(i&&i!==oo(n))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ta(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new tr(!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(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new tr(e,r,n)}var xe=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Ea(t,r,e){if(t.isAbsolute)return new xe(r,!0,0);if(!e)return new xe(r,!1,NaN);if(e.parent===null)return new xe(e,!0,0);let n=er(t.commands[0])?0:1,i=e.segments.length-1+n;return ba(e,i,t.numberOfDoubleDots)}function ba(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new y(4005,!1);i=n.segments.length}return new xe(n,!1,i-o)}function Ca(t){return vt(t[0])?t[0].outlets:{[p]:t}}function Ro(t,r,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return gt(t,r,e);let n=Ia(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new b(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new b(t.segments.slice(n.pathIndex),t.children),gt(o,0,i)}else return n.match&&i.length===0?new b(t.segments,{}):n.match&&!t.hasChildren()?un(t,r,e):n.match?gt(t,0,i):un(t,r,e)}function gt(t,r,e){if(e.length===0)return new b(t.segments,{});{let n=Ca(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=gt(t.children[p],r,e);return new b(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ro(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new b(t.segments,i)}}function Ia(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(vt(a))break;let c=`${a}`,u=n<e.length-1?e[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Qi(c,u,s))return o;n+=2}else{if(!Qi(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function un(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(vt(o)){let c=Ma(o.outlets);return new b(n,c)}if(i===0&&er(e[0])){let c=t.segments[r];n.push(new se(c.path,Ki(e[0]))),i++;continue}let s=vt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&er(a)?(n.push(new se(s,Ki(a))),i+=2):(n.push(new se(s,{})),i++)}return new b(n,{})}function Ma(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=un(new b([],{}),0,n))}),r}function Ki(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Qi(t,r,e){return t==e.path&&W(r,e.parameters)}var Qt="imperative",A=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}(A||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},ue=class extends L{type=A.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}')`}},j=class extends L{urlAfterRedirects;type=A.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(U||{}),Le=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Le||{}),X=class extends L{reason;code;type=A.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Y=class extends L{reason;code;type=A.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},je=class extends L{error;target;type=A.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})`}},yt=class extends L{urlAfterRedirects;state;type=A.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})`}},rr=class extends L{urlAfterRedirects;state;type=A.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})`}},nr=class extends L{urlAfterRedirects;state;shouldActivate;type=A.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})`}},ir=class extends L{urlAfterRedirects;state;type=A.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})`}},or=class extends L{urlAfterRedirects;state;type=A.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})`}},sr=class{route;type=A.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ar=class{route;type=A.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cr=class{snapshot;type=A.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ur=class{snapshot;type=A.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{snapshot;type=A.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=A.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{routerEvent;position;anchor;type=A.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}')`}},Rt=class{},$e=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Aa(t,r){return t.providers&&!t._injector&&(t._injector=Ut(t.providers,r,`Route: ${t.path}`)),t._injector??r}function q(t){return t.outlet||p}function Da(t,r){let e=t.filter(n=>q(n)===r);return e.push(...t.filter(n=>q(n)!==r)),e}function It(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 hr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return It(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Re(this.rootInjector)}},Re=(()=>{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 hr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fr=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=ln(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=ln(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=dn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return dn(r,this._root).map(e=>e.value)}};function ln(t,r){if(t===r.value)return r;for(let e of r.children){let n=ln(t,e);if(n)return n}return null}function dn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=dn(t,e);if(n.length)return n.unshift(r),n}return[]}var k=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var wt=class extends fr{snapshot;constructor(r,e){super(r),this.snapshot=e,Rn(this,r)}toString(){return this.snapshot.toString()}};function wo(t){let r=Oa(t),e=new $([new se("",{})]),n=new $({}),i=new $({}),o=new $({}),s=new $(""),a=new Z(e,n,o,s,i,p,t,r.root);return a.snapshot=r.root,new wt(new k(a,[]),r)}function Oa(t){let r={},e={},n={},i="",o=new ve([],r,n,i,e,p,t,null,{});return new St("",new k(o,[]))}var Z=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,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(E(u=>u[Ct]))??f(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(E(r=>ye(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ye(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function pr(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&To(i)&&(n.resolve[Ct]=i.title),n}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ct]}constructor(r,e,n,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye(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}')`}},St=class extends fr{url;constructor(r,e){super(e),this.url=r,Rn(this,e)}toString(){return So(this._root)}};function Rn(t,r){r.value._routerState=t,r.children.forEach(e=>Rn(t,e))}function So(t){let r=t.children.length>0?` { ${t.children.map(So).join(", ")} } `:"";return`${t.value}${r}`}function rn(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,W(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),W(r.params,e.params)||t.paramsSubject.next(e.params),ia(r.url,e.url)||t.urlSubject.next(e.url),W(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function hn(t,r){let e=W(t.params,r.params)&&ca(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||hn(t.parent,r.parent))}function To(t){return typeof t.title=="string"||t.title===null}var Eo=new C(""),wn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new he;deactivateEvents=new he;attachEvents=new he;detachEvents=new he;routerOutletData=Hn(void 0);parentContexts=d(Re);location=d(ai);changeDetector=d(xt);inputBinder=d(Mt,{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 y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(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 y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new fn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,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=et({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Je]})}return t})(),fn=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===Z?this.route:r===Re?this.childContexts:r===Eo?this.outletData:this.parent.get(r,e)}},Mt=new C(""),Sn=(()=>{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=_t([n.queryParams,n.params,n.data]).pipe(x(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?f(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=wi(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=v({token:t,factory:t.\u0275fac})}return t})(),Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ui({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&hi(0,"router-outlet")},dependencies:[wn],encapsulation:2})}return t})();function En(t){let r=t.children&&t.children.map(En),e=r?P(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Tn),e}function _a(t,r,e){let n=Tt(t,r._root,e?e._root:void 0);return new wt(n,r)}function Tt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Pa(t,r,e);return new k(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=>Tt(t,a)),s}}let n=Na(r.value),i=r.children.map(o=>Tt(t,o));return new k(n,i)}}function Pa(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Tt(t,n,i);return Tt(t,n)})}function Na(t){return new Z(new $(t.url),new $(t.params),new $(t.queryParams),new $(t.fragment),new $(t.data),t.outlet,t.component,t)}var ze=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},bo="ngNavigationCancelingError";function gr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ce(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Co(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Co(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bo]=!0,e.cancellationCode=r,e}function Ua(t){return Io(t)&&ce(t.url)}function Io(t){return!!t&&t[bo]}var xa=(t,r,e,n)=>E(i=>(new pn(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),pn=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),rn(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=Ue(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=Ue(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=Ue(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=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new dr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new ur(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(rn(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),rn(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)}},mr=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ke=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ka(t,r,e){let n=t._root,i=r?r._root:null;return pt(n,i,e,[n.value])}function La(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ve(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Bn(t)?t:r.get(t):n}function pt(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return t.children.forEach(s=>{ja(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>mt(a,e.getContext(s),i)),i}function ja(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 c=Fa(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new mr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?pt(t,r,a?a.children:null,n,i):pt(t,r,e,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ke(a.outlet.component,s))}else s&&mt(r,a,i),i.canActivateChecks.push(new mr(n)),o.component?pt(t,null,a?a.children:null,n,i):pt(t,null,e,n,i);return i}function Fa(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!me(t.url,r.url);case"pathParamsOrQueryParamsChange":return!me(t.url,r.url)||!W(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hn(t,r)||!W(t.queryParams,r.queryParams);case"paramsChange":default:return!hn(t,r)}}function mt(t,r,e){let n=Ue(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?mt(s,r.children.getContext(o),e):mt(s,null,e):mt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ke(r.outlet.component,i)):e.canDeactivateChecks.push(new ke(null,i)):e.canDeactivateChecks.push(new ke(null,i))}function At(t){return typeof t=="function"}function $a(t){return typeof t=="boolean"}function za(t){return t&&At(t.canLoad)}function Ba(t){return t&&At(t.canActivate)}function Va(t){return t&&At(t.canActivateChild)}function qa(t){return t&&At(t.canDeactivate)}function Ha(t){return t&&At(t.canMatch)}function Mo(t){return t instanceof kn||t?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function Be(){return x(t=>_t(t.map(r=>r.pipe(Ee(1),$n(Jt)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===Jt)return Jt;if(e===!1||Ga(e))return e}return!0}),G(r=>r!==Jt),Ee(1)))}function Ga(t){return ce(t)||t instanceof ze}function Wa(t,r){return N(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(P(h({},e),{guardsResult:!0})):Xa(s,n,i,t).pipe(N(a=>a&&$a(a)?Ja(n,o,t,r):f(a)),E(a=>P(h({},e),{guardsResult:a})))})}function Xa(t,r,e,n){return O(t).pipe(N(i=>ec(i.component,i.route,e,r,n)),ie(i=>i!==!0,!0))}function Ja(t,r,e,n){return O(r).pipe(ee(i=>Ln(Za(i.route.parent,n),Ya(i.route,n),Qa(t,i.path,e),Ka(t,i.route,e))),ie(i=>i!==!0,!0))}function Ya(t,r){return t!==null&&r&&r(new lr(t)),f(!0)}function Za(t,r){return t!==null&&r&&r(new cr(t)),f(!0)}function Ka(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(o=>Cr(()=>{let s=It(r)??e,a=Ve(o,s),c=Ba(a)?a.canActivate(r,t):z(s,()=>a(r,t));return le(c).pipe(ie())}));return f(i).pipe(Be())}function Qa(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>La(s)).filter(s=>s!==null).map(s=>Cr(()=>{let a=s.guards.map(c=>{let u=It(s.node)??e,l=Ve(c,u),m=Va(l)?l.canActivateChild(n,t):z(u,()=>l(n,t));return le(m).pipe(ie())});return f(a).pipe(Be())}));return f(o).pipe(Be())}function ec(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=It(r)??i,u=Ve(a,c),l=qa(u)?u.canDeactivate(t,r,e,n):z(c,()=>u(t,r,e,n));return le(l).pipe(ie())});return f(s).pipe(Be())}function tc(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=za(a)?a.canLoad(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}function Ao(t){return Nn(D(r=>{if(typeof r!="boolean")throw gr(t,r)}),E(r=>r===!0))}function rc(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=Ha(a)?a.canMatch(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}var Et=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},bt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Ne(t){return Ge(new Et(t))}function nc(t){return Ge(new y(4e3,!1))}function ic(t){return Ge(Co(!1,U.GuardRejected))}var gn=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 f(n);if(i.numberOfChildren>1||!i.children[p])return nc(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,params:S,data:M,title:R}=i,T=z(o,()=>a({params:S,data:M,queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,title:R}));if(T instanceof J)throw new bt(T);e=T}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new bt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new J(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,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new b(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 y(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}},mn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oc(t,r,e,n,i){let o=Do(t,r,e);return o.matched?(n=Aa(r,n),rc(n,r,e,i).pipe(E(s=>s===!0?o:h({},mn)))):f(o)}function Do(t,r,e){if(r.path==="**")return sc(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},mn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||no)(e,t,r);if(!i)return h({},mn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},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 sc(t){return{matched:!0,parameters:t.length>0?oo(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function eo(t,r,e,n){return e.length>0&&uc(t,e,n)?{segmentGroup:new b(r,cc(n,new b(e,t.children))),slicedSegments:[]}:e.length===0&&lc(t,e,n)?{segmentGroup:new b(t.segments,ac(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function ac(t,r,e,n){let i={};for(let o of e)if(yr(t,r,o)&&!n[q(o)]){let s=new b([],{});i[q(o)]=s}return h(h({},n),i)}function cc(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&q(n)!==p){let i=new b([],{});e[q(n)]=i}return e}function uc(t,r,e){return e.some(n=>yr(t,r,n)&&q(n)!==p)}function lc(t,r,e){return e.some(n=>yr(t,r,n))}function yr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function dc(t,r,e){return r.length===0&&!t.children[e]}var vn=class{};function hc(t,r,e,n,i,o,s="emptyOnly"){return new yn(t,r,e,n,i,s,o).recognize()}var fc=31,yn=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 gn(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=eo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(E(({children:e,rootSnapshot:n})=>{let i=new k(n,e),o=new St("",i),s=go(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 ve([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(E(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof bt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?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(E(s=>s instanceof k?[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 O(o).pipe(ee(s=>{let a=n.children[s],c=Da(e,s);return this.processSegmentGroup(r,c,a,s,i)}),Fn((s,a)=>(s.push(...a),s)),Ir(null),jn(),N(s=>{if(s===null)return Ne(n);let a=Oo(s);return pc(a),f(a)}))}processSegment(r,e,n,i,o,s,a){return O(e).pipe(ee(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,o,s,a).pipe(ne(u=>{if(u instanceof Et)return f(null);throw u}))),ie(c=>!!c),ne(c=>{if(Mo(c))return dc(n,i,o)?f(new vn):Ne(n);throw c}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,c){return q(n)!==s&&(s===p||!yr(i,o,n))?Ne(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,c):Ne(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:m,remainingSegments:w}=Do(e,i,o);if(!c)return Ne(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>fc&&(this.allowRedirects=!1));let S=new ve(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(i),q(i),i.component??i._loadedComponent??null,i,ro(i)),M=pr(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(M.params),S.data=Object.freeze(M.data);let R=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,m,S,r);return this.applyRedirects.lineralizeSegments(i,R).pipe(N(T=>this.processSegment(r,n,e,T.concat(w),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=oc(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(x(c=>c.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:u})=>{let l=n._loadedInjector??r,{parameters:m,consumedSegments:w,remainingSegments:S}=c,M=new ve(w,m,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(n),q(n),n.component??n._loadedComponent??null,n,ro(n)),R=pr(M,s,this.paramsInheritanceStrategy);M.params=Object.freeze(R.params),M.data=Object.freeze(R.data);let{segmentGroup:T,slicedSegments:F}=eo(e,w,S,u);if(F.length===0&&T.hasChildren())return this.processChildren(l,u,T,M).pipe(E(I=>new k(M,I)));if(u.length===0&&F.length===0)return f(new k(M,[]));let Te=q(n)===o;return this.processSegment(l,u,T,F,Te?p:o,!0,M).pipe(E(I=>new k(M,I instanceof k?[I]:[])))}))):Ne(e)))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):tc(r,e,n,this.urlSerializer).pipe(N(i=>i?this.configLoader.loadChildren(r,e).pipe(D(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ic(e))):f({routes:[],injector:r})}};function pc(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function gc(t){let r=t.value.routeConfig;return r&&r.path===""}function Oo(t){let r=[],e=new Set;for(let n of t){if(!gc(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=Oo(n.children);r.push(new k(n.value,i))}return r.filter(n=>!e.has(n))}function to(t){return t.data||{}}function ro(t){return t.resolve||{}}function mc(t,r,e,n,i,o){return N(s=>hc(t,r,e,n,s.extractedUrl,i,o).pipe(E(({state:a,tree:c})=>P(h({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function vc(t,r){return N(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of _o(c))s.add(u);let a=0;return O(s).pipe(ee(c=>o.has(c)?yc(c,n,t,r):(c.data=pr(c,c.parent,t).resolve,f(void 0))),D(()=>a++),Mr(1),N(c=>a===s.size?f(e):Q))})}function _o(t){let r=t.children.map(e=>_o(e)).flat();return[t,...r]}function yc(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!To(i)&&(o[Ct]=i.title),Rc(o,t,r,n).pipe(E(s=>(t._resolvedData=s,t.data=pr(t,t.parent,e).resolve,null)))}function Rc(t,r,e,n){let i=sn(t);if(i.length===0)return f({});let o={};return O(i).pipe(N(s=>wc(t[s],r,e,n).pipe(ie(),D(a=>{if(a instanceof ze)throw gr(new ae,a);o[s]=a}))),Mr(1),E(()=>o),ne(s=>Mo(s)?Q:Ge(s)))}function wc(t,r,e,n){let i=It(r)??n,o=Ve(t,i),s=o.resolve?o.resolve(r,e):z(i,()=>o(r,e));return le(s)}function nn(t){return x(r=>{let e=t(r);return e?O(e).pipe(E(()=>r)):f(r)})}var bn=(()=>{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===p);return n}getResolvedTitleForRoute(e){return e.data[Ct]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends bn{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)(g(Ji))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),we=new C("",{providedIn:"root",factory:()=>({})}),Se=new C(""),Rr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(vi);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=le(e.loadComponent()).pipe(E(Uo),D(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),be(()=>{this.componentLoaders.delete(e)})),i=new br(n,()=>new K).pipe(Er());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=No(n,this.compiler,e,this.onLoadEndListener).pipe(be(()=>{this.childrenLoaders.delete(n)})),s=new br(o,()=>new K).pipe(Er());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function No(t,r,e,n){return le(t.loadChildren()).pipe(E(Uo),N(i=>i instanceof ci||Array.isArray(i)?f(i):O(r.compileModuleAsync(i))),E(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(Se,[],{optional:!0,self:!0}).flat()),{routes:s.map(En),injector:o}}))}function Sc(t){return t&&typeof t=="object"&&"default"in t}function Uo(t){return Sc(t)?t.default:t}var wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Tc),providedIn:"root"})}return t})(),Tc=(()=>{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=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cn=new C(""),In=new C("");function xo(t,r,e){let n=t.get(In),i=t.get(_);return t.get(B).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Ec(t))),{onViewTransitionCreated:c}=n;return c&&z(t,()=>c({transition:a,from:r,to:e})),s})}function Ec(t){return new Promise(r=>{Yn({read:()=>setTimeout(r)},{injector:t})})}var Mn=new C(""),Dt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K;transitionAbortSubject=new K;configLoader=d(Rr);environmentInjector=d(oe);destroyRef=d(Or);urlSerializer=d(de);rootContexts=d(Re);location=d(De);inputBindingEnabled=d(Mt,{optional:!0})!==null;titleStrategy=d(bn);options=d(we,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(wr);createViewTransition=d(Cn,{optional:!0});navigationErrorHandler=d(Mn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new sr(i)),n=i=>this.events.next(new ar(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(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new $(null),this.transitions.pipe(G(n=>n!==null),x(n=>{let i=!1,o=!1;return f(n).pipe(x(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),Q;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?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.rawUrl),u,Le.IgnoredSameUrlNavigation)),s.resolve(!1),Q}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return f(s).pipe(x(u=>(this.events.next(new ue(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?Q:Promise.resolve(u))),mc(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(u=>{n.targetSnapshot=u.targetSnapshot,n.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new yt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:m,restoredState:w,extras:S}=s,M=new ue(u,this.urlSerializer.serialize(l),m,w);this.events.next(M);let R=wo(this.rootComponentType).snapshot;return this.currentTransition=n=P(h({},s),{targetSnapshot:R,urlAfterRedirects:l,extras:P(h({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,f(n)}else{let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),u,Le.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Q}}),D(s=>{let a=new rr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),E(s=>(this.currentTransition=n=P(h({},s),{guards:ka(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),Wa(this.environmentInjector,s=>this.events.next(s)),D(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw gr(this.urlSerializer,s.guardsResult);let a=new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),G(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",U.GuardRejected),!1)),nn(s=>{if(s.guards.canActivateChecks.length!==0)return f(s).pipe(D(a=>{let c=new ir(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),x(a=>{let c=!1;return f(a).pipe(vc(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",U.NoDataFromResolver)}}))}),D(a=>{let c=new or(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),nn(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(D(l=>{c.component=l}),E(()=>{})));for(let l of c.children)u.push(...a(l));return u};return _t(a(s.targetSnapshot.root)).pipe(Ir(null),Ee(1))}),nn(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?O(c).pipe(E(()=>n)):f(n)}),E(s=>{let a=_a(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=P(h({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),D(()=>{this.events.next(new Rt)}),xa(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ee(1),D({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new j(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),zn(this.transitionAbortSubject.pipe(D(s=>{throw s}))),be(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(s=>{if(this.destroyed)return n.resolve(!1),Q;if(o=!0,Io(s))this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),Ua(s)?this.events.next(new $e(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new je(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=z(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof ze){let{message:u,cancellationCode:l}=gr(this.urlSerializer,c);this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),u,l)),this.events.next(new $e(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return Q}))}))}cancelNavigationTransition(e,n,i){let o=new X(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=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bc(t){return t!==Qt}var ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Cc),providedIn:"root"})}return t})(),vr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Cc=(()=>{class t extends vr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{urlSerializer=d(de);options=d(we,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(De);urlHandlingStrategy=d(wr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new J;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 J?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=wo(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=v({token:t,factory:()=>d(Ic),providedIn:"root"})}return t})(),Ic=(()=>{class t extends Lo{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 ue?this.updateStateMemento():e instanceof Y?this.commitTransition(n):e instanceof yt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Rt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof X&&(e.code===U.GuardRejected||e.code===U.NoDataFromResolver)?this.restoreHistory(n):e instanceof je?this.restoreHistory(n,!0):e instanceof j&&(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,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},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=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Sr(t,r){t.events.pipe(G(e=>e instanceof j||e instanceof X||e instanceof je||e instanceof Y),E(e=>e instanceof j||e instanceof Y?0:(e instanceof X?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?2:1),G(e=>e!==2),Ee(1)).subscribe(()=>{r()})}var Mc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ac={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},H=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(kr);stateManager=d(Lo);options=d(we,{optional:!0})||{};pendingTasks=d(Pt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Dt);urlSerializer=d(de);location=d(De);urlHandlingStrategy=d(wr);_events=new K;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(ko);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Se,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Mt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;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 X&&n.code!==U.Redirect&&n.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof j)this.navigated=!0;else if(n instanceof $e){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bc(i.source)},s);this.scheduleNavigation(a,Qt,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oc(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),Qt,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 c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}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(En),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:c}=n,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let m;try{let w=i?i.snapshot:this.routerState.snapshot.root;m=mo(w)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return vo(m,e,l,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ce(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Qt,null,n)}navigate(e,n={skipLocationChange:!1}){return Dc(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=h({},Mc):n===!1?i=h({},Ac):i=n,ce(e))return Yi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Yi(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,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((m,w)=>{a=m,c=w});let l=this.pendingTasks.add();return Sr(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:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new y(4008,!1)}function Oc(t){return!(t instanceof Rt)&&!(t instanceof $e)}var Tr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new K;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 c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof j&&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)):(ce(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 c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!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:ii(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:ce(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)(V(H),V(Z),qn("tabindex"),V(xr),V(Pr),V(it))};static \u0275dir=et({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&fi("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&di("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",kt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",kt],replaceUrl:[2,"replaceUrl","replaceUrl",kt],routerLink:"routerLink"},features:[Je]})}return t})(),_c=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new he;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 j&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(We()).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=O(e).pipe(We()).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=Pc(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)(V(H),V(Pr),V(xr),V(xt),V(Tr,8))};static \u0275dir=et({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&pi(o,Tr,5),n&2){let s;gi(s=mi())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Je]})}return t})();function Pc(t){return!!t.paths}var Ot=class{},Nc=(()=>{class t{preload(e,n){return n().pipe(ne(()=>f(null)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var jo=(()=>{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(G(e=>e instanceof j),ee(()=>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=Ut(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 O(i).pipe(We())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let o=i.pipe(N(s=>s===null?f(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 O([o,s]).pipe(We())}else return o})}static \u0275fac=function(n){return new(n||t)(g(H),g(oe),g(Ot),g(Rr))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dn=new C(""),Fo=(()=>{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 ue?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof j?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Y&&e.code===Le.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 Fe&&(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 Fe(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){si()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Uc(t,...r){return Ce([{provide:Se,multi:!0,useValue:t},[],{provide:Z,useFactory:$o,deps:[H]},{provide:tt,multi:!0,useFactory:zo},r.map(e=>e.\u0275providers)])}function $o(t){return t.routerState.root}function qe(t,r){return{\u0275kind:t,\u0275providers:r}}function xc(t={}){return qe(4,[{provide:Dn,useFactory:()=>{let e=d(Fr),n=d(B),i=d(Dt),o=d(de);return new Fo(o,i,e,n,t)}}])}function zo(){let t=d(Ie);return r=>{let e=t.get(rt);if(r!==e.components[0])return;let n=t.get(H),i=t.get(Bo);t.get(On)===1&&n.initialNavigation(),t.get(Ho,null,Ar.Optional)?.setUpPreloading(),t.get(Dn,null,Ar.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bo=new C("",{factory:()=>new K}),On=new C("",{providedIn:"root",factory:()=>1});function Vo(){let t=[{provide:On,useValue:0},Lr(()=>{let r=d(Ie);return r.get(Ei,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(H),o=r.get(Bo);Sr(i,()=>{n(!0)}),r.get(Dt).afterPreactivation=()=>(n(!0),o.closed?f(void 0):o),i.initialNavigation()}))})];return qe(2,t)}function qo(){let t=[Lr(()=>{d(H).setUpLocationChangeListener()}),{provide:On,useValue:2}];return qe(3,t)}var Ho=new C("");function Go(t){return qe(0,[{provide:Ho,useExisting:jo},{provide:Ot,useExisting:t}])}function Wo(){return qe(8,[Sn,{provide:Mt,useExisting:Sn}])}function Xo(t){Nt("NgRouterViewTransitions");let r=[{provide:Cn,useValue:xo},{provide:In,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return qe(9,r)}var Jo=[De,{provide:de,useClass:ae},H,Re,{provide:Z,useFactory:$o,deps:[H]},Rr,[]],kc=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Jo,[],{provide:Se,multi:!0,useValue:e},[],n?.errorHandler?{provide:Mn,useValue:n.errorHandler}:[],{provide:we,useValue:n||{}},n?.useHash?jc():Fc(),Lc(),n?.preloadingStrategy?Go(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?$c(n):[],n?.bindToComponentInputs?Wo().\u0275providers:[],n?.enableViewTransitions?Xo().\u0275providers:[],zc()]}}static forChild(e){return{ngModule:t,providers:[{provide:Se,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Qe({type:t});static \u0275inj=Xe({})}return t})();function Lc(){return{provide:Dn,useFactory:()=>{let t=d(Fr),r=d(B),e=d(we),n=d(Dt),i=d(de);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fo(i,n,t,r,e)}}}function jc(){return{provide:it,useClass:Ci}}function Fc(){return{provide:it,useClass:bi}}function $c(t){return[t.initialNavigation==="disabled"?qo().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Vo().\u0275providers:[]]}var An=new C("");function zc(){return[{provide:An,useFactory:zo},{provide:tt,multi:!0,useExisting:An}]}export{Gr as a,ds as b,te as c,pe as d,ge as e,dt as f,qi as g,Fs as h,$s as i,Ji as j,ta as k,Tl as l,Z as m,wn as n,H as o,Tr as p,_c as q,Nc as r,Uc as s,xc as t,Go as u,Wo as v,kc as w};
1
+ import{a as _,b as nt,c as Si,d as Ti,e as Ei,f as it,g as bi,h as De,i as Ci,u as Lt,v as Ii,x as jr,y as jt,z as Fr}from"./chunk-353U23ZQ.js";import{$ as y,$a as ni,$c as wi,Aa as B,Ba as _r,Cb as kr,D as G,Da as Hn,Db as li,Ea as Pr,Fb as Lr,Gb as tt,Ha as Gn,Hb as rt,I as ne,Ia as Nr,J as ee,Ja as Wn,Ka as Ye,Kb as di,M as Ir,Ma as Ur,N as Ee,Na as Xn,Nc as vi,Oa as Jn,Pa as Nt,Q as be,Qc as xt,R as ie,Ra as Yn,S as Mr,Sa as Ze,T as jn,Ta as Me,Tc as yi,U as Fn,Ua as Ae,Uc as Ri,Va as Zn,Vc as kt,W as $n,Wa as Kn,X as x,Xa as Qn,Xb as hi,Y as zn,Ya as ei,Z as D,Za as ti,_a as ri,a as Pn,ab as fe,ba as v,c as Nn,ca as Xe,d as Un,da as Bn,db as ii,e as Er,ea as C,ec as fi,f as br,fa as Ar,g as K,ga as g,h as $,ha as d,hb as Ke,ia as Ce,jc as pi,k as Q,ka as Vn,kb as oi,l as O,la as oe,lb as xr,lc as gi,m as f,ma as z,mb as V,mc as mi,n as Ge,nb as si,o as xn,oa as Je,ob as ai,p as kn,s as E,sb as ci,t as _t,ta as Dr,u as N,ua as qn,ub as Ut,v as We,va as Ie,vb as ui,w as Ln,wa as Or,wb as Qe,x as Cr,xb as et,ya as Pt,za as he}from"./chunk-ARSLNNKY.js";import{a as h,b as P,c as _n}from"./chunk-YQFG5XE2.js";var zt=new C(""),Vr=(()=>{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 y(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(g(zt),g(B))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ot=class{_doc;constructor(r){this._doc=r}manager},Ft="ng-app-id";function Mi(t){for(let r of t)r.remove()}function Ai(t,r){let e=r.createElement("style");return e.textContent=t,e}function Ko(t,r,e,n){let i=t.head?.querySelectorAll(`style[${Ft}="${r}"],link[${Ft}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Ft),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 zr(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=jr(o),Ko(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Ai);n?.forEach(i=>this.addUsage(i,this.external,zr))}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&&(Mi(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Mi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Ai(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,zr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ft,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(g(_),g(Nr),g(Ur,8),g(Ye))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),$r={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"},Hr=/%COMP%/g;var Oi="%COMP%",Qo=`_nghost-${Oi}`,es=`_ngcontent-${Oi}`,ts=!0,rs=new C("",{providedIn:"root",factory:()=>ts});function ns(t){return es.replace(Hr,t)}function is(t){return Qo.replace(Hr,t)}function _i(t,r){return r.map(e=>e.replace(Hr,t))}var Gr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,c,u=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=jr(a),this.defaultRenderer=new st(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ze.ShadowDom&&(n=P(h({},n),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof $t?i.applyToHost(e):i instanceof at&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,w=this.tracingService;switch(n.encapsulation){case Ze.Emulated:o=new $t(c,u,n,this.appId,l,s,a,m,w);break;case Ze.ShadowDom:return new Br(c,u,e,n,s,a,this.nonce,m,w);default:o=new at(c,u,n,l,s,a,m,w);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)(g(Vr),g(qr),g(Nr),g(rs),g(_),g(Ye),g(B),g(Ur),g(Jn,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),st=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($r[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Di(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Di(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 y(-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=$r[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=$r[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&(Ke.DashCase|Ke.Important)?r.style.setProperty(e,n,i&Ke.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ke.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=nt().getGlobalEventTarget(this.doc,r),!r))throw new y(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 Di(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Br=class extends st{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=_i(i.id,l);for(let w of l){let S=document.createElement("style");a&&S.setAttribute("nonce",a),S.textContent=w,this.shadowRoot.appendChild(S)}let m=i.getExternalStyles?.();if(m)for(let w of m){let S=zr(w,o);a&&S.setAttribute("nonce",a),this.shadowRoot.appendChild(S)}}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)}},at=class extends st{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=u?_i(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},$t=class extends at{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,c,u){let l=i+"-"+n.id;super(r,e,n,o,s,a,c,u,l),this.contentAttr=ns(l),this.hostAttr=is(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 Bt=class t extends Ti{supportsDOMEvents=!0;static makeCurrent(){Si(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=ss();return e==null?null:as(e)}resetBaseElement(){ut=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Lt(document.cookie,r)}},ut=null;function ss(){return ut=ut||document.head.querySelector("base"),ut?ut.getAttribute("href"):null}function as(t){return new URL(t,document.baseURI).pathname}var cs=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ni=(()=>{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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Pi=["alt","control","meta","shift"],us={"\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"},ls={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ui=(()=>{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(()=>nt().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."),Pi.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),s+=u+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let i=us[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"),Pi.forEach(s=>{if(s!==i){let a=ls[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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function ds(t,r){return yi(h({rootComponent:t},hs(r)))}function hs(t){return{appProviders:[...vs,...t?.providers??[]],platformProviders:ms}}function fs(){Bt.makeCurrent()}function ps(){return new _r}function gs(){return Gn(document),document}var ms=[{provide:Ye,useValue:Ii},{provide:Wn,useValue:fs,multi:!0},{provide:_,useFactory:gs}];var vs=[{provide:Vn,useValue:"root"},{provide:_r,useFactory:ps},{provide:zt,useClass:Ni,multi:!0,deps:[_]},{provide:zt,useClass:Ui,multi:!0,deps:[_]},Gr,qr,Vr,{provide:oi,useExisting:Gr},{provide:jt,useClass:cs},[]];var _e=class{},lt=class{},re=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 qt=class{encodeKey(r){return xi(r)}encodeValue(r){return xi(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function ys(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))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var Rs=/%(\d[a-f0-9])/gi,ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xi(t){return encodeURIComponent(t).replace(Rs,(r,e)=>ws[e]??r)}function Vt(t){return`${t}`}var te=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new qt,r.fromString){if(r.fromObject)throw new y(2805,!1);this.map=ys(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(Vt):[Vt(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(Vt(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(Vt(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 Ht=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 Ss(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ki(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Li(t){return typeof Blob<"u"&&t instanceof Blob}function ji(t){return typeof FormData<"u"&&t instanceof FormData}function Ts(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Fi="Content-Type",$i="Accept",zi="X-Request-URL",Bi="text/plain",Vi="application/json",Es=`${Vi}, ${Bi}, */*`,Oe=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(Ss(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 re,this.context??=new Ht,!this.params)this.params=new te,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ki(this.body)||Li(this.body)||ji(this.body)||Ts(this.body)?this.body:this.body instanceof te?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||ji(this.body)?null:Li(this.body)?this.body.type||null:ki(this.body)?null:typeof this.body=="string"?Bi:this.body instanceof te?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Vi: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,c=r.reportProgress??this.reportProgress,u=r.headers||this.headers,l=r.params||this.params,m=r.context??this.context;return r.setHeaders!==void 0&&(u=Object.keys(r.setHeaders).reduce((w,S)=>w.set(S,r.setHeaders[S]),u)),r.setParams&&(l=Object.keys(r.setParams).reduce((w,S)=>w.set(S,r.setParams[S]),l)),new t(e,n,s,{params:l,headers:u,context:m,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},pe=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}(pe||{}),Pe=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new re,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}},Gt=class t extends Pe{constructor(r={}){super(r)}type=pe.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})}},ge=class t extends Pe{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=pe.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})}},dt=class extends Pe{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}},bs=200,Cs=204;function Wr(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 qi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Oe)o=e;else{let c;i.headers instanceof re?c=i.headers:c=new re(i.headers);let u;i.params&&(i.params instanceof te?u=i.params:u=new te({fromObject:i.params})),o=new Oe(e,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=f(o).pipe(ee(c=>this.handler.handle(c)));if(e instanceof Oe||i.observe==="events")return s;let a=s.pipe(G(c=>c instanceof ge));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y(2806,!1);return c.body}));case"blob":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y(2807,!1);return c.body}));case"text":return a.pipe(E(c=>{if(c.body!==null&&typeof c.body!="string")throw new y(2808,!1);return c.body}));case"json":default:return a.pipe(E(c=>c.body))}case"response":return a;default:throw new y(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 te().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,Wr(i,n))}post(e,n,i={}){return this.request("POST",e,Wr(i,n))}put(e,n,i={}){return this.request("PUT",e,Wr(i,n))}static \u0275fac=function(n){return new(n||t)(g(_e))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Is=new C("");function Ms(t,r){return r(t)}function As(t,r,e){return(n,i)=>z(e,()=>r(n,o=>t(o,i)))}var Jr=new C(""),Yr=new C(""),Hi=new C("",{providedIn:"root",factory:()=>!0});var Wt=(()=>{class t extends _e{backend;injector;chain=null;pendingTasks=d(Pt);contributeToStability=d(Hi);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(Jr),...this.injector.get(Yr,[])]));this.chain=n.reduceRight((i,o)=>As(i,o,this.injector),Ms)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(be(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(g(lt),g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Ds=/^\)\]\}',?\n/,Os=RegExp(`^${zi}:`,"m");function _s(t){return"responseURL"in t&&t.responseURL?t.responseURL:Os.test(t.getAllResponseHeaders())?t.getResponseHeader(zi):null}var Xr=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new y(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?O(n.\u0275loadImpl()):f(null)).pipe(x(()=>new Un(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((R,T)=>s.setRequestHeader(R,T.join(","))),e.headers.has($i)||s.setRequestHeader($i,Es),!e.headers.has(Fi)){let R=e.detectContentTypeHeader();R!==null&&s.setRequestHeader(Fi,R)}if(e.responseType){let R=e.responseType.toLowerCase();s.responseType=R!=="json"?R:"text"}let a=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let R=s.statusText||"OK",T=new re(s.getAllResponseHeaders()),F=_s(s)||e.url;return c=new Gt({headers:T,status:s.status,statusText:R,url:F}),c},l=()=>{let{headers:R,status:T,statusText:F,url:Te}=u(),I=null;T!==Cs&&(I=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=I?bs:0);let He=T>=200&&T<300;if(e.responseType==="json"&&typeof I=="string"){let Yo=I;I=I.replace(Ds,"");try{I=I!==""?JSON.parse(I):null}catch(Zo){I=Yo,He&&(He=!1,I={error:Zo,text:I})}}He?(o.next(new ge({body:I,headers:R,status:T,statusText:F,url:Te||void 0})),o.complete()):o.error(new dt({error:I,headers:R,status:T,statusText:F,url:Te||void 0}))},m=R=>{let{url:T}=u(),F=new dt({error:R,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(F)},w=!1,S=R=>{w||(o.next(u()),w=!0);let T={type:pe.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},M=R=>{let T={type:pe.UploadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),o.next(T)};return s.addEventListener("load",l),s.addEventListener("error",m),s.addEventListener("timeout",m),s.addEventListener("abort",m),e.reportProgress&&(s.addEventListener("progress",S),a!==null&&s.upload&&s.upload.addEventListener("progress",M)),s.send(a),o.next({type:pe.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",l),s.removeEventListener("timeout",m),e.reportProgress&&(s.removeEventListener("progress",S),a!==null&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(g(jt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Gi=new C(""),Ps="XSRF-TOKEN",Ns=new C("",{providedIn:"root",factory:()=>Ps}),Us="X-XSRF-TOKEN",xs=new C("",{providedIn:"root",factory:()=>Us}),ht=class{},ks=(()=>{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=Lt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(g(_),g(Ns))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Ls(t,r){let e=t.url.toLowerCase();if(!d(Gi)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(ht).getToken(),i=d(xs);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var Zr=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}(Zr||{});function js(t,r){return{\u0275kind:t,\u0275providers:r}}function Fs(...t){let r=[qi,Xr,Wt,{provide:_e,useExisting:Wt},{provide:lt,useFactory:()=>d(Is,{optional:!0})??d(Xr)},{provide:Jr,useValue:Ls,multi:!0},{provide:Gi,useValue:!0},{provide:ht,useClass:ks}];for(let e of t)r.push(...e.\u0275providers);return Ce(r)}function $s(t){return js(Zr.Interceptors,t.map(r=>({provide:Jr,useValue:r,multi:!0})))}var Bs=new C(""),Vs="b",qs="h",Hs="s",Gs="st",Ws="u",Xs="rt",Kr=new C(""),Js=["GET","HEAD"];function Ys(t,r){let w=d(Kr),{isCacheActive:e}=w,n=_n(w,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!Js.includes(o)||!n.includeRequestsWithAuthHeaders&&Zs(t)||n.filter?.(t)===!1)return r(t);let s=d(Xn);if(d(Bs,{optional:!0}))throw new y(2803,!1);let c=t.url,u=Ks(t,c),l=s.get(u,null),m=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(m=i.includeHeaders),l){let{[Vs]:S,[Xs]:M,[qs]:R,[Hs]:T,[Gs]:F,[Ws]:Te}=l,I=S;switch(M){case"arraybuffer":I=new TextEncoder().encode(S).buffer;break;case"blob":I=new Blob([S]);break}let He=new re(R);return f(new ge({body:I,headers:He,status:T,statusText:F,url:Te}))}return r(t).pipe(D(S=>{S instanceof ge}))}function Zs(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function Wi(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Ks(t,r){let{params:e,method:n,responseType:i}=t,o=Wi(e),s=t.serializeBody();s instanceof URLSearchParams?s=Wi(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=Qs(a);return c}function Qs(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function Xi(t){return[{provide:Kr,useFactory:()=>(Nt("NgHttpTransferCache"),h({isCacheActive:!0},t))},{provide:Yr,useValue:Ys,multi:!0},{provide:tt,multi:!0,useFactory:()=>{let r=d(rt),e=d(Kr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Ji=(()=>{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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ta=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=g(ra),i},providedIn:"root"})}return t})(),ra=(()=>{class t extends ta{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case fe.NONE:return n;case fe.HTML:return Ae(n,"HTML")?Me(n):ni(this._doc,String(n)).toString();case fe.STYLE:return Ae(n,"Style")?Me(n):n;case fe.SCRIPT:if(Ae(n,"Script"))return Me(n);throw new y(5200,!1);case fe.URL:return Ae(n,"URL")?Me(n):ri(String(n));case fe.RESOURCE_URL:if(Ae(n,"ResourceURL"))return Me(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Zn(e)}bypassSecurityTrustStyle(e){return Kn(e)}bypassSecurityTrustScript(e){return Qn(e)}bypassSecurityTrustUrl(e){return ei(e)}bypassSecurityTrustResourceUrl(e){return ti(e)}static \u0275fac=function(n){return new(n||t)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qr=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Qr||{});function Tl(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(Qr.HttpTransferCacheOptions);return Ce([[],Ri(),e.has(Qr.NoHttpTransferCache)||n?[]:Xi({}),r])}var p="primary",Ct=Symbol("RouteTitle"),on=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 ye(t){return new on(t)}function no(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 ia(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!W(t[e],r[e]))return!1;return!0}function W(t,r){let e=t?sn(t):void 0,n=r?sn(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],!io(t[i],r[i]))return!1;return!0}function sn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function io(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 oo(t){return t.length>0?t[t.length-1]:null}function le(t){return xn(t)?t:li(t)?O(Promise.resolve(t)):f(t)}var oa={exact:ao,subset:co},so={exact:sa,subset:aa,ignored:()=>!0};function Yi(t,r,e){return oa[e.paths](t.root,r.root,e.matrixParams)&&so[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function sa(t,r){return W(t,r)}function ao(t,r,e){if(!me(t.segments,r.segments)||!Yt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ao(t.children[n],r.children[n],e))return!1;return!0}function aa(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>io(t[e],r[e]))}function co(t,r,e){return uo(t,r,r.segments,e)}function uo(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Yt(i,e,n))}else if(t.segments.length===e.length){if(!me(t.segments,e)||!Yt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!co(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!me(t.segments,i)||!Yt(t.segments,i,n)||!t.children[p]?!1:uo(t.children[p],r,o,n)}}function Yt(t,r,e){return r.every((n,i)=>so[e](t[i].parameters,n.parameters))}var J=class{root;queryParams;fragment;_queryParamMap;constructor(r=new b([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){return la.serialize(this)}},b=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 Zt(this)}},se=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ye(this.parameters),this._parameterMap}toString(){return ho(this)}};function ca(t,r){return me(t,r)&&t.every((e,n)=>W(e.parameters,r[n].parameters))}function me(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function ua(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var de=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>new ae,providedIn:"root"})}return t})(),ae=class{parse(r){let e=new cn(r);return new J(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${ft(r.root,!0)}`,n=fa(r.queryParams),i=typeof r.fragment=="string"?`#${da(r.fragment)}`:"";return`${e}${n}${i}`}},la=new ae;function Zt(t){return t.segments.map(r=>ho(r)).join("/")}function ft(t,r){if(!t.hasChildren())return Zt(t);if(r){let e=t.children[p]?ft(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${ft(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=ua(t,(n,i)=>i===p?[ft(t.children[p],!1)]:[`${i}:${ft(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Zt(t)}/${e[0]}`:`${Zt(t)}/(${e.join("//")})`}}function lo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(t){return lo(t).replace(/%3B/gi,";")}function da(t){return encodeURI(t)}function an(t){return lo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kt(t){return decodeURIComponent(t)}function Zi(t){return Kt(t.replace(/\+/g,"%20"))}function ho(t){return`${an(t.path)}${ha(t.parameters)}`}function ha(t){return Object.entries(t).map(([r,e])=>`;${an(r)}=${an(e)}`).join("")}function fa(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Xt(e)}=${Xt(i)}`).join("&"):`${Xt(e)}=${Xt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var pa=/^[^\/()?;#]+/;function en(t){let r=t.match(pa);return r?r[0]:""}var ga=/^[^\/()?;=#]+/;function ma(t){let r=t.match(ga);return r?r[0]:""}var va=/^[^=?&#]+/;function ya(t){let r=t.match(va);return r?r[0]:""}var Ra=/^[^&#]+/;function wa(t){let r=t.match(Ra);return r?r[0]:""}var cn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],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[p]=new b(r,e)),n}parseSegment(){let r=en(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new se(Kt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=ma(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=en(this.remaining);i&&(n=i,this.capture(n))}r[Kt(e)]=Kt(n)}parseQueryParam(r){let e=ya(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=wa(this.remaining);s&&(n=s,this.capture(n))}let i=Zi(e),o=Zi(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=en(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new b([],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 y(4011,!1)}};function fo(t){return t.segments.length>0?new b([],{[p]:t}):t}function po(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=po(i);if(n===p&&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 b(t.segments,r);return Sa(e)}function Sa(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new b(t.segments.concat(r.segments),r.children)}return t}function ce(t){return t instanceof J}function go(t,r,e=null,n=null){let i=mo(t);return vo(i,r,e,n)}function mo(t){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new b(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=fo(n);return r??i}function vo(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return tn(i,i,i,e,n);let o=Ta(r);if(o.toRoot())return tn(i,i,new b([],{}),e,n);let s=Ea(o,i,t),a=s.processChildren?gt(s.segmentGroup,s.index,o.commands):Ro(s.segmentGroup,s.index,o.commands);return tn(i,s.segmentGroup,a,e,n)}function er(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vt(t){return typeof t=="object"&&t!=null&&t.outlets}function tn(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===r?s=e:s=yo(t,r,e);let a=fo(po(s));return new J(a,o,i)}function yo(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=yo(o,r,e)}),new b(t.segments,n)}var tr=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&er(n[0]))throw new y(4003,!1);let i=n.find(vt);if(i&&i!==oo(n))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ta(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new tr(!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(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new tr(e,r,n)}var xe=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Ea(t,r,e){if(t.isAbsolute)return new xe(r,!0,0);if(!e)return new xe(r,!1,NaN);if(e.parent===null)return new xe(e,!0,0);let n=er(t.commands[0])?0:1,i=e.segments.length-1+n;return ba(e,i,t.numberOfDoubleDots)}function ba(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new y(4005,!1);i=n.segments.length}return new xe(n,!1,i-o)}function Ca(t){return vt(t[0])?t[0].outlets:{[p]:t}}function Ro(t,r,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return gt(t,r,e);let n=Ia(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new b(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new b(t.segments.slice(n.pathIndex),t.children),gt(o,0,i)}else return n.match&&i.length===0?new b(t.segments,{}):n.match&&!t.hasChildren()?un(t,r,e):n.match?gt(t,0,i):un(t,r,e)}function gt(t,r,e){if(e.length===0)return new b(t.segments,{});{let n=Ca(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=gt(t.children[p],r,e);return new b(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ro(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new b(t.segments,i)}}function Ia(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(vt(a))break;let c=`${a}`,u=n<e.length-1?e[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Qi(c,u,s))return o;n+=2}else{if(!Qi(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function un(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(vt(o)){let c=Ma(o.outlets);return new b(n,c)}if(i===0&&er(e[0])){let c=t.segments[r];n.push(new se(c.path,Ki(e[0]))),i++;continue}let s=vt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&er(a)?(n.push(new se(s,Ki(a))),i+=2):(n.push(new se(s,{})),i++)}return new b(n,{})}function Ma(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=un(new b([],{}),0,n))}),r}function Ki(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Qi(t,r,e){return t==e.path&&W(r,e.parameters)}var Qt="imperative",A=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}(A||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},ue=class extends L{type=A.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}')`}},j=class extends L{urlAfterRedirects;type=A.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(U||{}),Le=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Le||{}),X=class extends L{reason;code;type=A.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Y=class extends L{reason;code;type=A.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},je=class extends L{error;target;type=A.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})`}},yt=class extends L{urlAfterRedirects;state;type=A.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})`}},rr=class extends L{urlAfterRedirects;state;type=A.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})`}},nr=class extends L{urlAfterRedirects;state;shouldActivate;type=A.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})`}},ir=class extends L{urlAfterRedirects;state;type=A.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})`}},or=class extends L{urlAfterRedirects;state;type=A.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})`}},sr=class{route;type=A.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ar=class{route;type=A.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cr=class{snapshot;type=A.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ur=class{snapshot;type=A.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{snapshot;type=A.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=A.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{routerEvent;position;anchor;type=A.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}')`}},Rt=class{},$e=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Aa(t,r){return t.providers&&!t._injector&&(t._injector=Ut(t.providers,r,`Route: ${t.path}`)),t._injector??r}function q(t){return t.outlet||p}function Da(t,r){let e=t.filter(n=>q(n)===r);return e.push(...t.filter(n=>q(n)!==r)),e}function It(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 hr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return It(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Re(this.rootInjector)}},Re=(()=>{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 hr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fr=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=ln(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=ln(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=dn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return dn(r,this._root).map(e=>e.value)}};function ln(t,r){if(t===r.value)return r;for(let e of r.children){let n=ln(t,e);if(n)return n}return null}function dn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=dn(t,e);if(n.length)return n.unshift(r),n}return[]}var k=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var wt=class extends fr{snapshot;constructor(r,e){super(r),this.snapshot=e,Rn(this,r)}toString(){return this.snapshot.toString()}};function wo(t){let r=Oa(t),e=new $([new se("",{})]),n=new $({}),i=new $({}),o=new $({}),s=new $(""),a=new Z(e,n,o,s,i,p,t,r.root);return a.snapshot=r.root,new wt(new k(a,[]),r)}function Oa(t){let r={},e={},n={},i="",o=new ve([],r,n,i,e,p,t,null,{});return new St("",new k(o,[]))}var Z=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,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(E(u=>u[Ct]))??f(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(E(r=>ye(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ye(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function pr(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&To(i)&&(n.resolve[Ct]=i.title),n}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ct]}constructor(r,e,n,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye(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}')`}},St=class extends fr{url;constructor(r,e){super(e),this.url=r,Rn(this,e)}toString(){return So(this._root)}};function Rn(t,r){r.value._routerState=t,r.children.forEach(e=>Rn(t,e))}function So(t){let r=t.children.length>0?` { ${t.children.map(So).join(", ")} } `:"";return`${t.value}${r}`}function rn(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,W(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),W(r.params,e.params)||t.paramsSubject.next(e.params),ia(r.url,e.url)||t.urlSubject.next(e.url),W(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function hn(t,r){let e=W(t.params,r.params)&&ca(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||hn(t.parent,r.parent))}function To(t){return typeof t.title=="string"||t.title===null}var Eo=new C(""),wn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new he;deactivateEvents=new he;attachEvents=new he;detachEvents=new he;routerOutletData=Hn(void 0);parentContexts=d(Re);location=d(ai);changeDetector=d(xt);inputBinder=d(Mt,{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 y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(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 y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new fn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,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=et({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Je]})}return t})(),fn=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===Z?this.route:r===Re?this.childContexts:r===Eo?this.outletData:this.parent.get(r,e)}},Mt=new C(""),Sn=(()=>{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=_t([n.queryParams,n.params,n.data]).pipe(x(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?f(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=wi(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=v({token:t,factory:t.\u0275fac})}return t})(),Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ui({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&hi(0,"router-outlet")},dependencies:[wn],encapsulation:2})}return t})();function En(t){let r=t.children&&t.children.map(En),e=r?P(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Tn),e}function _a(t,r,e){let n=Tt(t,r._root,e?e._root:void 0);return new wt(n,r)}function Tt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Pa(t,r,e);return new k(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=>Tt(t,a)),s}}let n=Na(r.value),i=r.children.map(o=>Tt(t,o));return new k(n,i)}}function Pa(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Tt(t,n,i);return Tt(t,n)})}function Na(t){return new Z(new $(t.url),new $(t.params),new $(t.queryParams),new $(t.fragment),new $(t.data),t.outlet,t.component,t)}var ze=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},bo="ngNavigationCancelingError";function gr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ce(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Co(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Co(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bo]=!0,e.cancellationCode=r,e}function Ua(t){return Io(t)&&ce(t.url)}function Io(t){return!!t&&t[bo]}var xa=(t,r,e,n)=>E(i=>(new pn(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),pn=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),rn(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=Ue(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=Ue(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=Ue(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=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new dr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new ur(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(rn(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),rn(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)}},mr=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ke=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ka(t,r,e){let n=t._root,i=r?r._root:null;return pt(n,i,e,[n.value])}function La(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ve(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Bn(t)?t:r.get(t):n}function pt(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return t.children.forEach(s=>{ja(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>mt(a,e.getContext(s),i)),i}function ja(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 c=Fa(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new mr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?pt(t,r,a?a.children:null,n,i):pt(t,r,e,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ke(a.outlet.component,s))}else s&&mt(r,a,i),i.canActivateChecks.push(new mr(n)),o.component?pt(t,null,a?a.children:null,n,i):pt(t,null,e,n,i);return i}function Fa(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!me(t.url,r.url);case"pathParamsOrQueryParamsChange":return!me(t.url,r.url)||!W(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hn(t,r)||!W(t.queryParams,r.queryParams);case"paramsChange":default:return!hn(t,r)}}function mt(t,r,e){let n=Ue(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?mt(s,r.children.getContext(o),e):mt(s,null,e):mt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ke(r.outlet.component,i)):e.canDeactivateChecks.push(new ke(null,i)):e.canDeactivateChecks.push(new ke(null,i))}function At(t){return typeof t=="function"}function $a(t){return typeof t=="boolean"}function za(t){return t&&At(t.canLoad)}function Ba(t){return t&&At(t.canActivate)}function Va(t){return t&&At(t.canActivateChild)}function qa(t){return t&&At(t.canDeactivate)}function Ha(t){return t&&At(t.canMatch)}function Mo(t){return t instanceof kn||t?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function Be(){return x(t=>_t(t.map(r=>r.pipe(Ee(1),$n(Jt)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===Jt)return Jt;if(e===!1||Ga(e))return e}return!0}),G(r=>r!==Jt),Ee(1)))}function Ga(t){return ce(t)||t instanceof ze}function Wa(t,r){return N(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(P(h({},e),{guardsResult:!0})):Xa(s,n,i,t).pipe(N(a=>a&&$a(a)?Ja(n,o,t,r):f(a)),E(a=>P(h({},e),{guardsResult:a})))})}function Xa(t,r,e,n){return O(t).pipe(N(i=>ec(i.component,i.route,e,r,n)),ie(i=>i!==!0,!0))}function Ja(t,r,e,n){return O(r).pipe(ee(i=>Ln(Za(i.route.parent,n),Ya(i.route,n),Qa(t,i.path,e),Ka(t,i.route,e))),ie(i=>i!==!0,!0))}function Ya(t,r){return t!==null&&r&&r(new lr(t)),f(!0)}function Za(t,r){return t!==null&&r&&r(new cr(t)),f(!0)}function Ka(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(o=>Cr(()=>{let s=It(r)??e,a=Ve(o,s),c=Ba(a)?a.canActivate(r,t):z(s,()=>a(r,t));return le(c).pipe(ie())}));return f(i).pipe(Be())}function Qa(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>La(s)).filter(s=>s!==null).map(s=>Cr(()=>{let a=s.guards.map(c=>{let u=It(s.node)??e,l=Ve(c,u),m=Va(l)?l.canActivateChild(n,t):z(u,()=>l(n,t));return le(m).pipe(ie())});return f(a).pipe(Be())}));return f(o).pipe(Be())}function ec(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=It(r)??i,u=Ve(a,c),l=qa(u)?u.canDeactivate(t,r,e,n):z(c,()=>u(t,r,e,n));return le(l).pipe(ie())});return f(s).pipe(Be())}function tc(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=za(a)?a.canLoad(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}function Ao(t){return Nn(D(r=>{if(typeof r!="boolean")throw gr(t,r)}),E(r=>r===!0))}function rc(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=Ha(a)?a.canMatch(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}var Et=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},bt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Ne(t){return Ge(new Et(t))}function nc(t){return Ge(new y(4e3,!1))}function ic(t){return Ge(Co(!1,U.GuardRejected))}var gn=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 f(n);if(i.numberOfChildren>1||!i.children[p])return nc(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,params:S,data:M,title:R}=i,T=z(o,()=>a({params:S,data:M,queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,title:R}));if(T instanceof J)throw new bt(T);e=T}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new bt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new J(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,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new b(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 y(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}},mn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oc(t,r,e,n,i){let o=Do(t,r,e);return o.matched?(n=Aa(r,n),rc(n,r,e,i).pipe(E(s=>s===!0?o:h({},mn)))):f(o)}function Do(t,r,e){if(r.path==="**")return sc(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},mn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||no)(e,t,r);if(!i)return h({},mn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},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 sc(t){return{matched:!0,parameters:t.length>0?oo(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function eo(t,r,e,n){return e.length>0&&uc(t,e,n)?{segmentGroup:new b(r,cc(n,new b(e,t.children))),slicedSegments:[]}:e.length===0&&lc(t,e,n)?{segmentGroup:new b(t.segments,ac(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function ac(t,r,e,n){let i={};for(let o of e)if(yr(t,r,o)&&!n[q(o)]){let s=new b([],{});i[q(o)]=s}return h(h({},n),i)}function cc(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&q(n)!==p){let i=new b([],{});e[q(n)]=i}return e}function uc(t,r,e){return e.some(n=>yr(t,r,n)&&q(n)!==p)}function lc(t,r,e){return e.some(n=>yr(t,r,n))}function yr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function dc(t,r,e){return r.length===0&&!t.children[e]}var vn=class{};function hc(t,r,e,n,i,o,s="emptyOnly"){return new yn(t,r,e,n,i,s,o).recognize()}var fc=31,yn=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 gn(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=eo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(E(({children:e,rootSnapshot:n})=>{let i=new k(n,e),o=new St("",i),s=go(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 ve([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(E(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof bt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?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(E(s=>s instanceof k?[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 O(o).pipe(ee(s=>{let a=n.children[s],c=Da(e,s);return this.processSegmentGroup(r,c,a,s,i)}),Fn((s,a)=>(s.push(...a),s)),Ir(null),jn(),N(s=>{if(s===null)return Ne(n);let a=Oo(s);return pc(a),f(a)}))}processSegment(r,e,n,i,o,s,a){return O(e).pipe(ee(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,o,s,a).pipe(ne(u=>{if(u instanceof Et)return f(null);throw u}))),ie(c=>!!c),ne(c=>{if(Mo(c))return dc(n,i,o)?f(new vn):Ne(n);throw c}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,c){return q(n)!==s&&(s===p||!yr(i,o,n))?Ne(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,c):Ne(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:m,remainingSegments:w}=Do(e,i,o);if(!c)return Ne(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>fc&&(this.allowRedirects=!1));let S=new ve(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(i),q(i),i.component??i._loadedComponent??null,i,ro(i)),M=pr(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(M.params),S.data=Object.freeze(M.data);let R=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,m,S,r);return this.applyRedirects.lineralizeSegments(i,R).pipe(N(T=>this.processSegment(r,n,e,T.concat(w),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=oc(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(x(c=>c.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:u})=>{let l=n._loadedInjector??r,{parameters:m,consumedSegments:w,remainingSegments:S}=c,M=new ve(w,m,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(n),q(n),n.component??n._loadedComponent??null,n,ro(n)),R=pr(M,s,this.paramsInheritanceStrategy);M.params=Object.freeze(R.params),M.data=Object.freeze(R.data);let{segmentGroup:T,slicedSegments:F}=eo(e,w,S,u);if(F.length===0&&T.hasChildren())return this.processChildren(l,u,T,M).pipe(E(I=>new k(M,I)));if(u.length===0&&F.length===0)return f(new k(M,[]));let Te=q(n)===o;return this.processSegment(l,u,T,F,Te?p:o,!0,M).pipe(E(I=>new k(M,I instanceof k?[I]:[])))}))):Ne(e)))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):tc(r,e,n,this.urlSerializer).pipe(N(i=>i?this.configLoader.loadChildren(r,e).pipe(D(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ic(e))):f({routes:[],injector:r})}};function pc(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function gc(t){let r=t.value.routeConfig;return r&&r.path===""}function Oo(t){let r=[],e=new Set;for(let n of t){if(!gc(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=Oo(n.children);r.push(new k(n.value,i))}return r.filter(n=>!e.has(n))}function to(t){return t.data||{}}function ro(t){return t.resolve||{}}function mc(t,r,e,n,i,o){return N(s=>hc(t,r,e,n,s.extractedUrl,i,o).pipe(E(({state:a,tree:c})=>P(h({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function vc(t,r){return N(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of _o(c))s.add(u);let a=0;return O(s).pipe(ee(c=>o.has(c)?yc(c,n,t,r):(c.data=pr(c,c.parent,t).resolve,f(void 0))),D(()=>a++),Mr(1),N(c=>a===s.size?f(e):Q))})}function _o(t){let r=t.children.map(e=>_o(e)).flat();return[t,...r]}function yc(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!To(i)&&(o[Ct]=i.title),Rc(o,t,r,n).pipe(E(s=>(t._resolvedData=s,t.data=pr(t,t.parent,e).resolve,null)))}function Rc(t,r,e,n){let i=sn(t);if(i.length===0)return f({});let o={};return O(i).pipe(N(s=>wc(t[s],r,e,n).pipe(ie(),D(a=>{if(a instanceof ze)throw gr(new ae,a);o[s]=a}))),Mr(1),E(()=>o),ne(s=>Mo(s)?Q:Ge(s)))}function wc(t,r,e,n){let i=It(r)??n,o=Ve(t,i),s=o.resolve?o.resolve(r,e):z(i,()=>o(r,e));return le(s)}function nn(t){return x(r=>{let e=t(r);return e?O(e).pipe(E(()=>r)):f(r)})}var bn=(()=>{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===p);return n}getResolvedTitleForRoute(e){return e.data[Ct]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends bn{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)(g(Ji))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),we=new C("",{providedIn:"root",factory:()=>({})}),Se=new C(""),Rr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(vi);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=le(e.loadComponent()).pipe(E(Uo),D(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),be(()=>{this.componentLoaders.delete(e)})),i=new br(n,()=>new K).pipe(Er());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=No(n,this.compiler,e,this.onLoadEndListener).pipe(be(()=>{this.childrenLoaders.delete(n)})),s=new br(o,()=>new K).pipe(Er());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function No(t,r,e,n){return le(t.loadChildren()).pipe(E(Uo),N(i=>i instanceof ci||Array.isArray(i)?f(i):O(r.compileModuleAsync(i))),E(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(Se,[],{optional:!0,self:!0}).flat()),{routes:s.map(En),injector:o}}))}function Sc(t){return t&&typeof t=="object"&&"default"in t}function Uo(t){return Sc(t)?t.default:t}var wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Tc),providedIn:"root"})}return t})(),Tc=(()=>{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=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cn=new C(""),In=new C("");function xo(t,r,e){let n=t.get(In),i=t.get(_);return t.get(B).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Ec(t))),{onViewTransitionCreated:c}=n;return c&&z(t,()=>c({transition:a,from:r,to:e})),s})}function Ec(t){return new Promise(r=>{Yn({read:()=>setTimeout(r)},{injector:t})})}var Mn=new C(""),Dt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K;transitionAbortSubject=new K;configLoader=d(Rr);environmentInjector=d(oe);destroyRef=d(Or);urlSerializer=d(de);rootContexts=d(Re);location=d(De);inputBindingEnabled=d(Mt,{optional:!0})!==null;titleStrategy=d(bn);options=d(we,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(wr);createViewTransition=d(Cn,{optional:!0});navigationErrorHandler=d(Mn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new sr(i)),n=i=>this.events.next(new ar(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(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new $(null),this.transitions.pipe(G(n=>n!==null),x(n=>{let i=!1,o=!1;return f(n).pipe(x(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),Q;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?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.rawUrl),u,Le.IgnoredSameUrlNavigation)),s.resolve(!1),Q}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return f(s).pipe(x(u=>(this.events.next(new ue(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?Q:Promise.resolve(u))),mc(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(u=>{n.targetSnapshot=u.targetSnapshot,n.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new yt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:m,restoredState:w,extras:S}=s,M=new ue(u,this.urlSerializer.serialize(l),m,w);this.events.next(M);let R=wo(this.rootComponentType).snapshot;return this.currentTransition=n=P(h({},s),{targetSnapshot:R,urlAfterRedirects:l,extras:P(h({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,f(n)}else{let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),u,Le.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Q}}),D(s=>{let a=new rr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),E(s=>(this.currentTransition=n=P(h({},s),{guards:ka(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),Wa(this.environmentInjector,s=>this.events.next(s)),D(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw gr(this.urlSerializer,s.guardsResult);let a=new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),G(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",U.GuardRejected),!1)),nn(s=>{if(s.guards.canActivateChecks.length!==0)return f(s).pipe(D(a=>{let c=new ir(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),x(a=>{let c=!1;return f(a).pipe(vc(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",U.NoDataFromResolver)}}))}),D(a=>{let c=new or(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),nn(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(D(l=>{c.component=l}),E(()=>{})));for(let l of c.children)u.push(...a(l));return u};return _t(a(s.targetSnapshot.root)).pipe(Ir(null),Ee(1))}),nn(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?O(c).pipe(E(()=>n)):f(n)}),E(s=>{let a=_a(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=P(h({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),D(()=>{this.events.next(new Rt)}),xa(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ee(1),D({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new j(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),zn(this.transitionAbortSubject.pipe(D(s=>{throw s}))),be(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(s=>{if(this.destroyed)return n.resolve(!1),Q;if(o=!0,Io(s))this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),Ua(s)?this.events.next(new $e(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new je(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=z(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof ze){let{message:u,cancellationCode:l}=gr(this.urlSerializer,c);this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),u,l)),this.events.next(new $e(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return Q}))}))}cancelNavigationTransition(e,n,i){let o=new X(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=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bc(t){return t!==Qt}var ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Cc),providedIn:"root"})}return t})(),vr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Cc=(()=>{class t extends vr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{urlSerializer=d(de);options=d(we,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(De);urlHandlingStrategy=d(wr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new J;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 J?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=wo(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=v({token:t,factory:()=>d(Ic),providedIn:"root"})}return t})(),Ic=(()=>{class t extends Lo{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 ue?this.updateStateMemento():e instanceof Y?this.commitTransition(n):e instanceof yt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Rt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof X&&(e.code===U.GuardRejected||e.code===U.NoDataFromResolver)?this.restoreHistory(n):e instanceof je?this.restoreHistory(n,!0):e instanceof j&&(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,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},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=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Sr(t,r){t.events.pipe(G(e=>e instanceof j||e instanceof X||e instanceof je||e instanceof Y),E(e=>e instanceof j||e instanceof Y?0:(e instanceof X?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?2:1),G(e=>e!==2),Ee(1)).subscribe(()=>{r()})}var Mc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ac={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},H=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(kr);stateManager=d(Lo);options=d(we,{optional:!0})||{};pendingTasks=d(Pt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Dt);urlSerializer=d(de);location=d(De);urlHandlingStrategy=d(wr);_events=new K;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(ko);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Se,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Mt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;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 X&&n.code!==U.Redirect&&n.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof j)this.navigated=!0;else if(n instanceof $e){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bc(i.source)},s);this.scheduleNavigation(a,Qt,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oc(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),Qt,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 c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}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(En),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:c}=n,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let m;try{let w=i?i.snapshot:this.routerState.snapshot.root;m=mo(w)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return vo(m,e,l,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ce(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Qt,null,n)}navigate(e,n={skipLocationChange:!1}){return Dc(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=h({},Mc):n===!1?i=h({},Ac):i=n,ce(e))return Yi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Yi(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,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((m,w)=>{a=m,c=w});let l=this.pendingTasks.add();return Sr(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:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new y(4008,!1)}function Oc(t){return!(t instanceof Rt)&&!(t instanceof $e)}var Tr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new K;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 c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof j&&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)):(ce(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 c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!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:ii(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:ce(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)(V(H),V(Z),qn("tabindex"),V(xr),V(Pr),V(it))};static \u0275dir=et({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&fi("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&di("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",kt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",kt],replaceUrl:[2,"replaceUrl","replaceUrl",kt],routerLink:"routerLink"},features:[Je]})}return t})(),_c=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new he;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 j&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(We()).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=O(e).pipe(We()).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=Pc(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)(V(H),V(Pr),V(xr),V(xt),V(Tr,8))};static \u0275dir=et({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&pi(o,Tr,5),n&2){let s;gi(s=mi())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Je]})}return t})();function Pc(t){return!!t.paths}var Ot=class{},Nc=(()=>{class t{preload(e,n){return n().pipe(ne(()=>f(null)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var jo=(()=>{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(G(e=>e instanceof j),ee(()=>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=Ut(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 O(i).pipe(We())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let o=i.pipe(N(s=>s===null?f(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 O([o,s]).pipe(We())}else return o})}static \u0275fac=function(n){return new(n||t)(g(H),g(oe),g(Ot),g(Rr))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dn=new C(""),Fo=(()=>{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 ue?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof j?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Y&&e.code===Le.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 Fe&&(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 Fe(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){si()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Uc(t,...r){return Ce([{provide:Se,multi:!0,useValue:t},[],{provide:Z,useFactory:$o,deps:[H]},{provide:tt,multi:!0,useFactory:zo},r.map(e=>e.\u0275providers)])}function $o(t){return t.routerState.root}function qe(t,r){return{\u0275kind:t,\u0275providers:r}}function xc(t={}){return qe(4,[{provide:Dn,useFactory:()=>{let e=d(Fr),n=d(B),i=d(Dt),o=d(de);return new Fo(o,i,e,n,t)}}])}function zo(){let t=d(Ie);return r=>{let e=t.get(rt);if(r!==e.components[0])return;let n=t.get(H),i=t.get(Bo);t.get(On)===1&&n.initialNavigation(),t.get(Ho,null,Ar.Optional)?.setUpPreloading(),t.get(Dn,null,Ar.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bo=new C("",{factory:()=>new K}),On=new C("",{providedIn:"root",factory:()=>1});function Vo(){let t=[{provide:On,useValue:0},Lr(()=>{let r=d(Ie);return r.get(Ei,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(H),o=r.get(Bo);Sr(i,()=>{n(!0)}),r.get(Dt).afterPreactivation=()=>(n(!0),o.closed?f(void 0):o),i.initialNavigation()}))})];return qe(2,t)}function qo(){let t=[Lr(()=>{d(H).setUpLocationChangeListener()}),{provide:On,useValue:2}];return qe(3,t)}var Ho=new C("");function Go(t){return qe(0,[{provide:Ho,useExisting:jo},{provide:Ot,useExisting:t}])}function Wo(){return qe(8,[Sn,{provide:Mt,useExisting:Sn}])}function Xo(t){Nt("NgRouterViewTransitions");let r=[{provide:Cn,useValue:xo},{provide:In,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return qe(9,r)}var Jo=[De,{provide:de,useClass:ae},H,Re,{provide:Z,useFactory:$o,deps:[H]},Rr,[]],kc=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Jo,[],{provide:Se,multi:!0,useValue:e},[],n?.errorHandler?{provide:Mn,useValue:n.errorHandler}:[],{provide:we,useValue:n||{}},n?.useHash?jc():Fc(),Lc(),n?.preloadingStrategy?Go(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?$c(n):[],n?.bindToComponentInputs?Wo().\u0275providers:[],n?.enableViewTransitions?Xo().\u0275providers:[],zc()]}}static forChild(e){return{ngModule:t,providers:[{provide:Se,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Qe({type:t});static \u0275inj=Xe({})}return t})();function Lc(){return{provide:Dn,useFactory:()=>{let t=d(Fr),r=d(B),e=d(we),n=d(Dt),i=d(de);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fo(i,n,t,r,e)}}}function jc(){return{provide:it,useClass:Ci}}function Fc(){return{provide:it,useClass:bi}}function $c(t){return[t.initialNavigation==="disabled"?qo().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Vo().\u0275providers:[]]}var An=new C("");function zc(){return[{provide:An,useFactory:zo},{provide:tt,multi:!0,useExisting:An}]}export{Gr as a,ds as b,re as c,te as d,pe as e,ge as f,dt as g,qi as h,Fs as i,$s as j,Ji as k,ta as l,Tl as m,Z as n,wn as o,H as p,Tr as q,_c as r,Nc as s,Uc as t,xc as u,Go as v,Wo as w,kc as x};