@whoz-oss/coday-client 0.121.2 → 0.123.0

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 (67) hide show
  1. package/3rdpartylicenses.txt +2 -2
  2. package/browser/chunk-5NUGIKIB.js +1 -0
  3. package/browser/chunk-5OMZQ4OZ.js +1 -0
  4. package/browser/chunk-6KXNYOC4.js +1 -0
  5. package/browser/{chunk-FCCT54AP.js → chunk-6Z6SJ4Y2.js} +1 -1
  6. package/browser/{chunk-VUV5JL5J.js → chunk-7QG3AKRT.js} +1 -1
  7. package/browser/chunk-7XMHOWLT.js +1 -0
  8. package/browser/{chunk-MJEQQZDO.js → chunk-AKBSVQGQ.js} +1 -1
  9. package/browser/{chunk-JPWWZVYZ.js → chunk-AVD3CUGR.js} +1 -1
  10. package/browser/chunk-B4OTLKPN.js +1 -0
  11. package/browser/chunk-BYYYYB67.js +1 -0
  12. package/browser/chunk-CR4XXAY3.js +1 -0
  13. package/browser/{chunk-UMDZZGIC.js → chunk-DE3P5WR7.js} +1 -1
  14. package/browser/{chunk-UXXLDXN3.js → chunk-DSN23Y6D.js} +1 -1
  15. package/browser/chunk-DWEXNFR7.js +1 -0
  16. package/browser/chunk-EH7TPIXS.js +1 -0
  17. package/browser/chunk-GHOFO7YQ.js +1 -0
  18. package/browser/chunk-HAWWBYDG.js +1 -0
  19. package/browser/{chunk-GT5UFSUE.js → chunk-HIRSL5MY.js} +1 -1
  20. package/browser/chunk-HK2BLNG3.js +1 -0
  21. package/browser/chunk-HLLG2DDM.js +1 -0
  22. package/browser/{chunk-PKKHLHXJ.js → chunk-HVJQKHJC.js} +1 -1
  23. package/browser/chunk-I3QA4WXI.js +1 -0
  24. package/browser/{chunk-5CTKRMM2.js → chunk-IYJZ4CSD.js} +1 -1
  25. package/browser/{chunk-UGVRFJHC.js → chunk-IZRO2LMH.js} +1 -1
  26. package/browser/{chunk-VNGIXNER.js → chunk-JBAZQRNW.js} +1 -1
  27. package/browser/chunk-JQSINAMU.js +1 -0
  28. package/browser/chunk-L66AMHS4.js +13 -0
  29. package/browser/chunk-LEUHLZHG.js +1 -0
  30. package/browser/chunk-LPT4NEYN.js +1 -0
  31. package/browser/chunk-OGOX2BYJ.js +1 -0
  32. package/browser/{chunk-TE3JOGRA.js → chunk-P36TOKXO.js} +1 -1
  33. package/browser/chunk-PDZ2DBT6.js +1 -0
  34. package/browser/{chunk-4LFZBXC3.js → chunk-PWW4FOUT.js} +1 -1
  35. package/browser/{chunk-3TOJSAQM.js → chunk-Q56XXDIJ.js} +1 -1
  36. package/browser/{chunk-S5LR3GBS.js → chunk-RHMP25CV.js} +1 -1
  37. package/browser/chunk-RIKUGKVO.js +1 -0
  38. package/browser/{chunk-DJBCK5D7.js → chunk-RUEXWAWX.js} +2 -2
  39. package/browser/{chunk-P5TSPSCB.js → chunk-UGL3W65S.js} +1 -1
  40. package/browser/{chunk-5UOZGBZ2.js → chunk-VCDX36SM.js} +1 -1
  41. package/browser/{chunk-NO2ODJHX.js → chunk-VEOXUX7X.js} +1 -1
  42. package/browser/{chunk-KYPMYRHP.js → chunk-VU7RWHPC.js} +1 -1
  43. package/browser/{chunk-7RF7FEOC.js → chunk-W4XTZNHN.js} +1 -1
  44. package/browser/chunk-XL52MS6C.js +1 -0
  45. package/browser/{chunk-OMLFSDJ5.js → chunk-XNWPPTWL.js} +1 -1
  46. package/browser/chunk-Y3EGCKL7.js +1 -0
  47. package/browser/{chunk-PWN5O4WY.js → chunk-Y73HWDY3.js} +1 -1
  48. package/browser/{chunk-2DE3OXG3.js → chunk-ZK67B6NL.js} +1 -1
  49. package/browser/index.html +1 -1
  50. package/browser/main-RALP5G7L.js +359 -0
  51. package/package.json +1 -1
  52. package/browser/chunk-4FGPNBI3.js +0 -1
  53. package/browser/chunk-4OMSGXSL.js +0 -1
  54. package/browser/chunk-ELXKRVE4.js +0 -1
  55. package/browser/chunk-FPUSD6J7.js +0 -1
  56. package/browser/chunk-G5XS2TEE.js +0 -1
  57. package/browser/chunk-JW6LSUP2.js +0 -1
  58. package/browser/chunk-LVEC3TBP.js +0 -1
  59. package/browser/chunk-OK747ZMT.js +0 -1
  60. package/browser/chunk-R35XCYRZ.js +0 -1
  61. package/browser/chunk-R5SZYFB2.js +0 -1
  62. package/browser/chunk-W4VYO3E2.js +0 -1
  63. package/browser/chunk-WQDJM4TR.js +0 -1
  64. package/browser/chunk-XPK5V34V.js +0 -1
  65. package/browser/chunk-YDXVLOQW.js +0 -11
  66. package/browser/chunk-Z7DC3UIO.js +0 -1
  67. package/browser/main-4CSREW6D.js +0 -361
@@ -0,0 +1 @@
1
+ import{c as a}from"./chunk-5OMZQ4OZ.js";import"./chunk-BYYYYB67.js";import"./chunk-UGL3W65S.js";import"./chunk-VU7RWHPC.js";import"./chunk-L66AMHS4.js";import"./chunk-JBAZQRNW.js";import"./chunk-HVJQKHJC.js";import"./chunk-ZK67B6NL.js";import"./chunk-Y73HWDY3.js";import"./chunk-RUEXWAWX.js";export{a as CaseShellComponent};
@@ -1 +1 @@
1
- import{$ as Q,$a as qr,A as G,C as We,Ca as Lr,D as Te,F as le,Hc as Ft,I as Er,Ia as xr,J as W,Ja as Lt,K as Dt,Oa as jr,P as Mr,Pa as kr,Pc as Jr,Q as P,R as Qe,Ra as $r,Sa as Ye,T as L,Ta as zr,U as S,Ua as Fr,V as Tr,Va as xt,X as C,Y as Dr,Z as Nr,_ as A,a as l,aa as h,b as D,ba as _r,bb as Hr,d as m,da as q,db as jt,e as Cr,ea as E,eb as kt,f as Sr,fb as Br,fc as Gr,g as wr,gc as K,h as ue,i as N,ja as Nt,k as _,ka as Or,kc as Wr,l as b,la as _t,m as g,ma as Ur,n as br,na as de,o as Et,oa as Pr,oc as $t,p as Ir,qa as Ot,rb as Vr,s as I,sa as Ke,t as Mt,tc as Qr,u as j,ua as Ut,v as Tt,va as Pt,vc as Kr,w as Ar,wc as zt,x as Ge,xc as Yr,yc as he,zc as Zr}from"./chunk-DJBCK5D7.js";var f="primary",ze=Symbol("RouteTitle"),Gt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function re(e){return new Gt(e)}function qt(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function sn(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return qt(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!qt(o,e.slice(0,o.length),a)||!qt(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function rt(e){return new Promise((n,t)=>{e.pipe(W()).subscribe({next:r=>n(r),error:r=>t(r)})})}function si(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!k(e[t],n[t]))return!1;return!0}function k(e,n){let t=e?Wt(e):void 0,r=n?Wt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!cn(e[i],n[i]))return!1;return!0}function Wt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function cn(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function ci(e){return e.length>0?e[e.length-1]:null}function ie(e){return Et(e)?e:Hr(e)?b(Promise.resolve(e)):g(e)}function un(e){return Et(e)?rt(e):Promise.resolve(e)}var ui={exact:hn,subset:fn},ln={exact:li,subset:di,ignored:()=>!0},dn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Xr(e,n,t){return ui[t.paths](e.root,n.root,t.matrixParams)&&ln[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function li(e,n){return k(e,n)}function hn(e,n,t){if(!te(e.segments,n.segments)||!Xe(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!hn(e.children[r],n.children[r],t))return!1;return!0}function di(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>cn(e[t],n[t]))}function fn(e,n,t){return pn(e,n,n.segments,t)}function pn(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!te(i,t)||n.hasChildren()||!Xe(i,t,r))}else if(e.segments.length===t.length){if(!te(e.segments,t)||!Xe(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!fn(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!te(e.segments,i)||!Xe(e.segments,i,r)||!e.children[f]?!1:pn(e.children[f],n,o,r)}}function Xe(e,n,t){return n.every((r,i)=>ln[t](e[i].parameters,r.parameters))}var U=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){return pi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}},Y=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=re(this.parameters),this._parameterMap}toString(){return vn(this)}};function hi(e,n){return te(e,n)&&e.every((t,r)=>k(t.parameters,n[r].parameters))}function te(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function fi(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===f&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==f&&(t=t.concat(n(i,r)))}),t}var oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Yt(n);return new U(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${De(n.root,!0)}`,r=mi(n.queryParams),i=typeof n.fragment=="string"?`#${gi(n.fragment)}`:"";return`${t}${r}${i}`}},pi=new B;function et(e){return e.segments.map(n=>vn(n)).join("/")}function De(e,n){if(!e.hasChildren())return et(e);if(n){let t=e.children[f]?De(e.children[f],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=fi(e,(r,i)=>i===f?[De(e.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${et(e)}/${t[0]}`:`${et(e)}/(${t.join("//")})`}}function gn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(e){return gn(e).replace(/%3B/gi,";")}function gi(e){return encodeURI(e)}function Kt(e){return gn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tt(e){return decodeURIComponent(e)}function en(e){return tt(e.replace(/\+/g,"%20"))}function vn(e){return`${Kt(e.path)}${vi(e.parameters)}`}function vi(e){return Object.entries(e).map(([n,t])=>`;${Kt(n)}=${Kt(t)}`).join("")}function mi(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Ze(t)}=${Ze(i)}`).join("&"):`${Ze(t)}=${Ze(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Ht(e){let n=e.match(yi);return n?n[0]:""}var Ri=/^[^\/()?;=#]+/;function Ci(e){let n=e.match(Ri);return n?n[0]:""}var Si=/^[^=?&#]+/;function wi(e){let n=e.match(Si);return n?n[0]:""}var bi=/^[^&#]+/;function Ii(e){let n=e.match(bi);return n?n[0]:""}var Yt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[f]=new v(t,r)),i}parseSegment(){let n=Ht(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new Y(tt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Ci(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=Ht(this.remaining);i&&(r=i,this.capture(r))}n[tt(t)]=tt(r)}parseQueryParam(n){let t=wi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Ii(this.remaining);s&&(r=s,this.capture(r))}let i=en(t),o=en(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ht(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let a=this.parseChildren(t+1);r[s??f]=Object.keys(a).length===1&&a[f]?a[f]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function mn(e){return e.segments.length>0?new v([],{[f]:e}):e}function yn(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=yn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return Ai(t)}function Ai(e){if(e.numberOfChildren===1&&e.children[f]){let n=e.children[f];return new v(e.segments.concat(n.segments),n.children)}return e}function me(e){return e instanceof U}function Rn(e,n,t=null,r=null,i=new B){let o=Cn(e);return Sn(o,n,t,r,i)}function Cn(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=mn(r);return n??i}function Sn(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Bt(o,o,o,t,r,i);let s=Ei(n);if(s.toRoot())return Bt(o,o,new v([],{}),t,r,i);let a=Mi(s,o,e),c=a.processChildren?_e(a.segmentGroup,a.index,s.commands):bn(a.segmentGroup,a.index,s.commands);return Bt(o,a.segmentGroup,c,t,r,i)}function nt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ue(e){return typeof e=="object"&&e!=null&&e.outlets}function tn(e,n,t){e||="\u0275";let r=new U;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Bt(e,n,t,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(p=>tn(u,p,o)):tn(u,d,o);let a;e===n?a=t:a=wn(e,n,t);let c=mn(yn(a));return new U(c,s,i)}function wn(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=wn(o,n,t)}),new v(e.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&nt(r[0]))throw new S(4003,!1);let i=r.find(Ue);if(i&&i!==ci(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ei(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new it(!0,0,e);let n=0,t=!1,r=e.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===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new it(t,n,r)}var pe=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Mi(e,n,t){if(e.isAbsolute)return new pe(n,!0,0);if(!t)return new pe(n,!1,NaN);if(t.parent===null)return new pe(t,!0,0);let r=nt(e.commands[0])?0:1,i=t.segments.length-1+r;return Ti(t,i,e.numberOfDoubleDots)}function Ti(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new pe(r,!1,i-o)}function Di(e){return Ue(e[0])?e[0].outlets:{[f]:e}}function bn(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return _e(e,n,t);let r=Ni(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(e.segments.slice(r.pathIndex),e.children),_e(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Zt(e,n,t):r.match?_e(e,0,i):Zt(e,n,t)}function _e(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Di(t),i={};if(Object.keys(r).some(o=>o!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let o=_e(e.children[f],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=bn(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function Ni(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(Ue(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!nn(c,u,s))return o;r+=2}else{if(!nn(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(Ue(o)){let c=_i(o.outlets);return new v(r,c)}if(i===0&&nt(t[0])){let c=e.segments[n];r.push(new Y(c.path,rn(t[0]))),i++;continue}let s=Ue(o)?o.outlets[f]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&nt(a)?(r.push(new Y(s,rn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function _i(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Zt(new v([],{}),0,r))}),n}function rn(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function nn(e,n,t){return e==t.path&&k(n,t.parameters)}var ge="imperative",R=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(R||{}),T=class{id;url;constructor(n,t){this.id=n,this.url=t}},Z=class extends T{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},x=class extends T{urlAfterRedirects;type=R.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(w||{}),ye=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ye||{}),O=class extends T{reason;code;type=R.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function In(e){return e instanceof O&&(e.code===w.Redirect||e.code===w.SupersededByNewNavigation)}var z=class extends T{reason;code;type=R.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},ne=class extends T{error;target;type=R.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe=class extends T{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ot=class extends T{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends T{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},st=class extends T{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends T{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},dt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ft=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Re=class{routerEvent;position;anchor;scrollBehavior;type=R.Scroll;constructor(n,t,r,i){this.routerEvent=n,this.position=t,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ce=class{},Le=class{},Se=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Oi(e){return!(e instanceof Ce)&&!(e instanceof Se)&&!(e instanceof Le)}var gt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ae(this.rootInjector)}},ae=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new gt(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Q(q))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Jt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Jt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=Xt(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Xt(n,this._root).map(t=>t.value)}};function Jt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Jt(e,t);if(r)return r}return null}function Xt(e,n){if(e===n.value)return[n];for(let t of n.children){let r=Xt(e,t);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function fe(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xe=class extends vt{snapshot;constructor(n,t){super(n),this.snapshot=t,cr(this,n)}toString(){return this.snapshot.toString()}};function An(e,n){let t=Ui(e,n),r=new N([new Y("",{})]),i=new N({}),o=new N({}),s=new N({}),a=new N(""),c=new V(r,i,s,a,o,f,e,t.root);return c.snapshot=t.root,new xe(new M(c,[]),t)}function Ui(e,n){let t={},r={},i={},s=new we([],t,i,"",r,f,e,null,{},n);return new je("",new M(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[ze]))??g(void 0),this.url=n,this.params=t,this.queryParams=r,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(I(n=>re(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>re(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function sr(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),e.params),data:l(l({},n.data),e.data),resolve:l(l(l(l({},e.data),n.data),i?.data),e._resolvedData)}:r={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&Mn(i)&&(r.resolve[ze]=i.title),r}var we=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze]}constructor(n,t,r,i,o,s,a,c,u,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},je=class extends vt{url;constructor(n,t){super(t),this.url=n,cr(this,t)}toString(){return En(this._root)}};function cr(e,n){n.value._routerState=e,n.children.forEach(t=>cr(e,t))}function En(e){let n=e.children.length>0?` { ${e.children.map(En).join(", ")} } `:"";return`${e.value}${n}`}function Vt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,k(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),k(n.params,t.params)||e.paramsSubject.next(t.params),si(n.url,t.url)||e.urlSubject.next(t.url),k(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function er(e,n){let t=k(e.params,n.params)&&hi(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||er(e.parent,n.parent))}function Mn(e){return typeof e.title=="string"||e.title===null}var Tn=new A(""),ur=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new de;deactivateEvents=new de;attachEvents=new de;detachEvents=new de;routerOutletData=Wr();parentContexts=h(ae);location=h(kr);changeDetector=h($t);inputBinder=h(Fe,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new tr(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=xt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ut]})}return e})(),tr=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===V?this.route:n===ae?this.childContexts:n===Tn?this.outletData:this.parent.get(n,t)}},Fe=new A(""),lr=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=Mt([r.queryParams,r.params,r.data]).pipe(P(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Qr(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),dr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=zr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Vr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return e})();function hr(e){let n=e.children&&e.children.map(hr),t=n?D(l({},e),{children:n}):l({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=dr),t}function Pi(e,n,t){let r=ke(e,n._root,t?t._root:void 0);return new xe(r,n)}function ke(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=Li(e,n,t);return new M(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(e,a)),s}}let r=xi(n.value),i=n.children.map(o=>ke(e,o));return new M(r,i)}}function Li(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ke(e,r,i);return ke(e,r)})}function xi(e){return new V(new N(e.url),new N(e.params),new N(e.queryParams),new N(e.fragment),new N(e.data),e.outlet,e.component,e)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},Dn="ngNavigationCancelingError";function mt(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=me(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Nn(!1,w.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function Nn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Dn]=!0,t.cancellationCode=n,t}function ji(e){return _n(e)&&me(e.url)}function _n(e){return!!e&&e[Dn]}var rr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Vt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=fe(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=fe(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new pt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ht(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Vt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.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),Vt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},yt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ve=class{component;route;constructor(n,t){this.component=n,this.route=t}};function ki(e,n,t){let r=e._root,i=n?n._root:null;return Ne(r,i,t,[r.value])}function $i(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Ae(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Nr(e)?e:n.get(e):r}function Ne(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(n);return e.children.forEach(s=>{zi(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Oe(a,t.getContext(s),i)),i}function zi(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Fi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new yt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(e,n,a?a.children:null,r,i):Ne(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ve(a.outlet.component,s))}else s&&Oe(n,a,i),i.canActivateChecks.push(new yt(r)),o.component?Ne(e,null,a?a.children:null,r,i):Ne(e,null,t,r,i);return i}function Fi(e,n,t){if(typeof t=="function")return E(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!te(e.url,n.url);case"pathParamsOrQueryParamsChange":return!te(e.url,n.url)||!k(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(e,n)||!k(e.queryParams,n.queryParams);default:return!er(e,n)}}function Oe(e,n,t){let r=fe(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Oe(s,n.children.getContext(o),t):Oe(s,null,t):Oe(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ve(n.outlet.component,i)):t.canDeactivateChecks.push(new ve(null,i)):t.canDeactivateChecks.push(new ve(null,i))}function qe(e){return typeof e=="function"}function qi(e){return typeof e=="boolean"}function Hi(e){return e&&qe(e.canLoad)}function Bi(e){return e&&qe(e.canActivate)}function Vi(e){return e&&qe(e.canActivateChild)}function Gi(e){return e&&qe(e.canDeactivate)}function Wi(e){return e&&qe(e.canMatch)}function On(e){return e instanceof Ir||e?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function Ie(){return P(e=>Mt(e.map(n=>n.pipe(le(1),Mr(Je)))).pipe(I(n=>{for(let t of n)if(t!==!0){if(t===Je)return Je;if(t===!1||Qi(t))return t}return!0}),G(n=>n!==Je),le(1)))}function Qi(e){return me(e)||e instanceof be}function Un(e){return e.aborted?g(void 0).pipe(le(1)):new wr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function Pn(e){return Qe(Un(e))}function Ki(e){return j(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(l({},n),{guardsResult:!0})):Yi(o,t,r).pipe(j(s=>s&&qi(s)?Zi(t,i,e):g(s)),I(s=>D(l({},n),{guardsResult:s})))})}function Yi(e,n,t){return b(e).pipe(j(r=>ro(r.component,r.route,t,n)),W(r=>r!==!0,!0))}function Zi(e,n,t){return b(n).pipe(Te(r=>Ar(Xi(r.route.parent,t),Ji(r.route,t),to(e,r.path),eo(e,r.route))),W(r=>r!==!0,!0))}function Ji(e,n){return e!==null&&n&&n(new ft(e)),g(!0)}function Xi(e,n){return e!==null&&n&&n(new dt(e)),g(!0)}function eo(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>Ge(()=>{let o=n._environmentInjector,s=Ae(i,o),a=Bi(s)?s.canActivate(n,e):E(o,()=>s(n,e));return ie(a).pipe(W())}));return g(r).pipe(Ie())}function to(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>$i(o)).filter(o=>o!==null).map(o=>Ge(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ae(a,c),d=Vi(u)?u.canActivateChild(t,e):E(c,()=>u(t,e));return ie(d).pipe(W())});return g(s).pipe(Ie())}));return g(i).pipe(Ie())}function ro(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ae(s,a),u=Gi(c)?c.canDeactivate(e,n,t,r):E(a,()=>c(e,n,t,r));return ie(u).pipe(W())});return g(o).pipe(Ie())}function no(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ae(a,e),u=Hi(c)?c.canLoad(n,t):E(e,()=>c(n,t)),d=ie(u);return i?d.pipe(Pn(i)):d});return g(s).pipe(Ie(),Ln(r))}function Ln(e){return Sr(L(n=>{if(typeof n!="boolean")throw mt(e,n)}),I(n=>n===!0))}function io(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=Ae(c,e),d=Wi(u)?u.canMatch(n,t,i):E(e,()=>u(n,t,i));return ie(d).pipe(Pn(o))});return g(a).pipe(Ie(),Ln(r))}var H=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},$e=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function oo(e){throw new S(4e3,!1)}function ao(e){throw Nn(!1,w.GuardRejected)}var nr=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){return m(this,null,function*(){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw oo(`${n.redirectTo}`);i=i.children[f]}})}applyRedirectCommands(n,t,r,i,o){return m(this,null,function*(){let s=yield so(t,i,o);if(s instanceof U)throw new $e(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $e(a);return a})}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new U(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function so(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return rt(ie(E(t,()=>r(n))))}function co(e,n){return e.providers&&!e._injector&&(e._injector=Ye(e.providers,n,`Route: ${e.path}`)),e._injector??n}function $(e){return e.outlet||f}function uo(e,n){let t=e.filter(r=>$(r)===n);return t.push(...e.filter(r=>$(r)!==n)),t}var ir={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xn(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function lo(e,n,t,r,i,o,s){let a=jn(e,n,t);if(!a.matched)return g(a);let c=xn(o(a));return r=co(n,r),io(r,n,t,i,c,s).pipe(I(u=>u===!0?a:l({},ir)))}function jn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},ir):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||sn)(t,e,n);if(!i)return l({},ir);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function on(e,n,t,r){return t.length>0&&po(e,t,r)?{segmentGroup:new v(n,fo(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&go(e,t,r)?{segmentGroup:new v(e.segments,ho(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function ho(e,n,t,r){let i={};for(let o of t)if(Ct(e,n,o)&&!r[$(o)]){let s=new v([],{});i[$(o)]=s}return l(l({},r),i)}function fo(e,n){let t={};t[f]=n;for(let r of e)if(r.path===""&&$(r)!==f){let i=new v([],{});t[$(r)]=i}return t}function po(e,n,t){return t.some(r=>Ct(e,n,r)&&$(r)!==f)}function go(e,n,t){return t.some(r=>Ct(e,n,r))}function Ct(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function vo(e,n,t){return n.length===0&&!e.children[t]}var or=class{};function mo(e,n,t,r,i,o,s="emptyOnly",a){return m(this,null,function*(){return new ar(e,n,t,r,i,s,o,a).recognize()})}var yo=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new nr(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){return m(this,null,function*(){let n=on(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=yield this.match(n),i=new M(r,t),o=new je("",i),s=Rn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return m(this,null,function*(){let t=new we([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,f,t),rootSnapshot:t}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof H?this.noMatchError(r):r}})}processSegmentGroup(n,t,r,i,o){return m(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=yield this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,t,r,i){return m(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],d=uo(t,c),p=yield this.processSegmentGroup(n,d,u,c,i);s.push(...p)}let a=kn(s);return Ro(a),a})}processSegment(n,t,r,i,o,s,a){return m(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof H||On(u))continue;throw u}if(vo(r,i,o))return new or;throw new H(r)})}processSegmentAgainstRoute(n,t,r,i,o,s,a,c){return m(this,null,function*(){if($(r)!==s&&(s===f||!Ct(i,o,r)))throw new H(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new H(i)})}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){return m(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=jn(t,i,o);if(!c)throw new H(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let X=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let F=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,xn(X),n),ee=yield this.applyRedirects.lineralizeSegments(i,F);return this.processSegment(n,r,t,ee.concat(y),s,!1,a)})}createSnapshot(n,t,r,i,o){let s=new we(r,i,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,So(t),$(t),t.component??t._loadedComponent??null,t,wo(t),n),a=sr(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(n,t,r,i,o,s){return m(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Ve=>this.createSnapshot(n,r,Ve.consumedSegments,Ve.parameters,s),c=yield rt(lo(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new H(t);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:X}=c,F=this.createSnapshot(n,r,y,p,s),{segmentGroup:ee,slicedSegments:Ee}=on(t,y,X,u);if(Ee.length===0&&ee.hasChildren()){let Ve=yield this.processChildren(d,u,ee,F);return new M(F,Ve)}if(u.length===0&&Ee.length===0)return new M(F,[]);let At=$(r)===o,Me=yield this.processSegment(d,u,ee,Ee,At?f:o,!0,F);return new M(F,Me instanceof M?[Me]:[])})}getChildConfig(n,t,r){return m(this,null,function*(){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield rt(no(n,t,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw ao(t)}return{routes:[],injector:n}})}};function Ro(e){e.sort((n,t)=>n.value.outlet===f?-1:t.value.outlet===f?1:n.value.outlet.localeCompare(t.value.outlet))}function Co(e){let n=e.value.routeConfig;return n&&n.path===""}function kn(e){let n=[],t=new Set;for(let r of e){if(!Co(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=kn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!t.has(r))}function So(e){return e.data||{}}function wo(e){return e.resolve||{}}function bo(e,n,t,r,i,o,s){return j(a=>m(null,null,function*(){let{state:c,tree:u}=yield mo(e,n,t,r,a.extractedUrl,i,o,s);return D(l({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Io(e){return j(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of $n(a))o.add(c);let s=0;return b(o).pipe(Te(a=>i.has(a)?Ao(a,t,e):(a.data=sr(a,a.parent,e).resolve,g(void 0))),L(()=>s++),Dt(1),j(a=>s===o.size?g(n):_))})}function $n(e){let n=e.children.map(t=>$n(t)).flat();return[e,...n]}function Ao(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!Mn(r)&&(i[ze]=r.title),Ge(()=>(e.data=sr(e,e.parent,t).resolve,Eo(i,e,n).pipe(I(o=>(e._resolvedData=o,e.data=l(l({},e.data),o),null)))))}function Eo(e,n,t){let r=Wt(e);if(r.length===0)return g({});let i={};return b(r).pipe(j(o=>Mo(e[o],n,t).pipe(W(),L(s=>{if(s instanceof be)throw mt(new B,s);i[o]=s}))),Dt(1),I(()=>i),We(o=>On(o)?_:br(o)))}function Mo(e,n,t){let r=n._environmentInjector,i=Ae(e,r),o=i.resolve?i.resolve(n,t):E(r,()=>i(n,t));return ie(o)}function an(e){return P(n=>{let t=e(n);return t?b(t).pipe(I(()=>n)):g(n)})}var fr=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(t){return t.data[ze]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(zn),providedIn:"root"})}return e})(),zn=(()=>{class e extends fr{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Q(Jr))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),se=new A("",{factory:()=>({})}),ce=new A(""),St=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(Gr);loadComponent(t,r){return m(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield un(E(t,()=>r.loadComponent())),s=yield Hn(qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield Fn(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Fn(e,n,t,r){return m(this,null,function*(){let i=yield un(E(t,()=>e.loadChildren())),o=yield Hn(qn(i)),s;o instanceof $r||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(e);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,d=s,c=a.get(ce,[],{optional:!0,self:!0}).flat()),{routes:c.map(hr),injector:a,factory:d}})}function To(e){return e&&typeof e=="object"&&"default"in e}function qn(e){return To(e)?e.default:e}function Hn(e){return m(this,null,function*(){return e})}var wt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Do),providedIn:"root"})}return e})(),Do=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pr=new A(""),gr=new A("");function Bn(e,n,t){let r=e.get(gr),i=e.get(Or);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),No(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&E(e,()=>c({transition:a,from:n,to:t})),s}function No(e){return new Promise(n=>{Lt({read:()=>setTimeout(n)},{injector:e})})}var _o=()=>{},vr=new A(""),bt=(()=>{class e{currentNavigation=Ke(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Ke(null);events=new ue;transitionAbortWithErrorSubject=new ue;configLoader=h(St);environmentInjector=h(q);destroyRef=h(_t);urlSerializer=h(oe);rootContexts=h(ae);location=h(he);inputBindingEnabled=h(Fe,{optional:!0})!==null;titleStrategy=h(fr);options=h(se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(wt);createViewTransition=h(pr,{optional:!0});navigationErrorHandler=h(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new ut(i)),r=i=>this.events.next(new lt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;K(()=>{this.transitions?.next(D(l({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new N(null),this.transitions.pipe(G(r=>r!==null),P(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(P(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),_;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?D(l({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new z(a.id,this.urlSerializer.serialize(a.rawUrl),"",ye.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(P(p=>(this.events.next(new Z(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?_:Promise.resolve(p))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),L(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=p.urlAfterRedirects,y)),this.events.next(new Le)}),P(p=>b(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(I(()=>p))),L(()=>{let p=new Pe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:X,restoredState:F,extras:ee}=a,Ee=new Z(p,this.urlSerializer.serialize(y),X,F);this.events.next(Ee);let At=An(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=D(l({},a),{targetSnapshot:At,urlAfterRedirects:y,extras:D(l({},ee),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Me=>(Me.finalUrl=y,Me)),g(r)}else return this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ye.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),I(a=>{let c=new ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=D(l({},a),{guards:ki(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),Ki(a=>this.events.next(a)),P(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw mt(this.urlSerializer,a.guardsResult);let c=new at(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",w.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let u=new st(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return _;let d=!1;return g(a).pipe(Io(this.paramsInheritanceStrategy),L({next:()=>{d=!0;let p=new ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{d||this.cancelNavigationTransition(a,"",w.NoDataFromResolver)}}))}),an(a=>{let c=d=>{let p=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let y=d._environmentInjector;p.push(this.configLoader.loadComponent(y,d.routeConfig).then(X=>{d.component=X}))}for(let y of d.children)p.push(...c(y));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):b(Promise.all(u).then(()=>a))}),an(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?b(u).pipe(I(()=>r)):g(r)}),le(1),P(a=>{let c=Pi(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=D(l({},a),{targetRouterState:c}),this.currentNavigation.update(d=>(d.targetRouterState=c,d)),this.events.next(new Ce);let u=r.beforeActivateHandler.deferredHandle;return u?b(u.then(()=>a)):g(a)}),L(a=>{new rr(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=_o,c)),this.lastSuccessfulNavigation.set(K(this.currentNavigation)),this.events.next(new x(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Qe(Un(o.signal).pipe(G(()=>!i&&!r.targetRouterState),L(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",w.Aborted)}))),L({complete:()=>{i=!0}}),Qe(this.transitionAbortWithErrorSubject.pipe(L(a=>{throw a}))),Er(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),We(a=>{if(i=!0,this.destroyed)return r.resolve(!1),_;if(_n(a))this.events.next(new O(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ji(a)?this.events.next(new Se(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ne(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=E(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof be){let{message:d,cancellationCode:p}=mt(this.urlSerializer,u);this.events.next(new O(r.id,this.urlSerializer.serialize(r.extractedUrl),d,p)),this.events.next(new Se(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return _}))}))}cancelNavigationTransition(t,r,i){let o=new O(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=K(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Oo(e){return e!==ge}var Vn=new A("");var Gn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Uo),providedIn:"root"})}return e})(),Rt=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Uo=(()=>{class e extends Rt{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mr=(()=>{class e{urlSerializer=h(oe);options=h(se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(he);urlHandlingStrategy=h(wt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new U;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof U?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=An(null,h(q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Po),providedIn:"root"})}return e})(),Po=(()=>{class e extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof Z?this.updateStateMemento():t instanceof z?this.commitTransition(r):t instanceof Pe?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Ce?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof O&&!In(t)?this.restoreHistory(r):t instanceof ne?this.restoreHistory(r,!0):t instanceof x&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,c=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",c)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function It(e,n){e.events.pipe(G(t=>t instanceof x||t instanceof O||t instanceof ne||t instanceof z),I(t=>t instanceof x||t instanceof z?0:(t instanceof O?t.code===w.Redirect||t.code===w.SupersededByNewNavigation:!1)?2:1),G(t=>t!==2),le(1)).subscribe(()=>{n()})}var J=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(qr);stateManager=h(mr);options=h(se,{optional:!0})||{};pendingTasks=h(Ur);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(bt);urlSerializer=h(oe);location=h(he);urlHandlingStrategy=h(wt);injector=h(q);_events=new ue;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Gn);injectorCleanup=h(Vn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(ce,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Fe,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=K(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof O&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof x)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Se){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=l({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Oo(i.source)},s);this.scheduleNavigation(a,ge,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ge,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null;if(i){let c=l({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ot)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(hr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=Cn(y)}catch(y){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Sn(p,t,d,u??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=me(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ge,null,r)}navigate(t,r={skipLocationChange:!1}){return Lo(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(r){return this.console.warn(Tr(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=l({},dn):r===!1?i=l({},Qt):i=l(l({},Qt),r),me(t))return Xr(this.currentUrlTree,t,i);let o=this.parseUrl(t);return Xr(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,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((p,y)=>{a=p,c=y});let d=this.pendingTasks.add();return It(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Lo(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new S(4008,!1)}var He=class{};var Wn=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,i,o){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(t=>t instanceof x),Te(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ye(o.providers,t,""));let s=o._injector??t;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let 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 b(i).pipe(Tt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{if(t.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=b(this.loader.loadChildren(t,r)):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??t,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(t,r);return b([o,s]).pipe(Tt())}else return o})}static \u0275fac=function(r){return new(r||e)(Q(J),Q(q),Q(He),Q(St))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qn=new A(""),jo=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ge;restoredId=0;store={};urlSerializer=h(oe);zone=h(Pr);viewportScroller=h(Ft);transitions=h(bt);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.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(t=>{t instanceof Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof x?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof z&&t.code===ye.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof Re)||t.scrollBehavior==="manual")return;let r={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,r):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,r){let i=K(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>m(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Re(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){jr()};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})();function ko(e,...n){return _r([{provide:ce,multi:!0,useValue:e},[],{provide:V,useFactory:Kn},{provide:kt,multi:!0,useFactory:Yn},n.map(t=>t.\u0275providers)])}function Kn(){return h(J).routerState.root}function Be(e,n){return{\u0275kind:e,\u0275providers:n}}function Yn(){let e=h(Nt);return n=>{let t=e.get(Br);if(n!==t.components[0])return;let r=e.get(J),i=e.get(Zn);e.get(Rr)===1&&r.initialNavigation(),e.get(ei,null,{optional:!0})?.setUpPreloading(),e.get(Qn,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Zn=new A("",{factory:()=>new ue}),Rr=new A("",{factory:()=>1});function Jn(){let e=[{provide:Lr,useValue:!0},{provide:Rr,useValue:0},jt(()=>{let n=h(Nt);return n.get(Kr,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(J),o=n.get(Zn);It(i,()=>{r(!0)}),n.get(bt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Be(2,e)}function Xn(){let e=[jt(()=>{h(J).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return Be(3,e)}var ei=new A("");function ti(e){return Be(0,[{provide:ei,useExisting:Wn},{provide:He,useExisting:e}])}function ri(){return Be(8,[lr,{provide:Fe,useExisting:lr}])}function ni(e){xr("NgRouterViewTransitions");let n=[{provide:pr,useValue:Bn},{provide:gr,useValue:l({skipNextTransition:!!e?.skipInitialTransition},e)}];return Be(9,n)}var ii=[he,{provide:oe,useClass:B},J,ae,{provide:V,useFactory:Kn},St,[]],$o=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[ii,[],{provide:ce,multi:!0,useValue:t},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:se,useValue:r||{}},r?.useHash?Fo():qo(),zo(),r?.preloadingStrategy?ti(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Ho(r):[],r?.bindToComponentInputs?ri().\u0275providers:[],r?.enableViewTransitions?ni().\u0275providers:[],Bo()]}}static forChild(t){return{ngModule:e,providers:[{provide:ce,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fr({type:e});static \u0275inj=Dr({})}return e})();function zo(){return{provide:Qn,useFactory:()=>{let e=h(Ft),n=h(se);return n.scrollOffset&&e.setOffset(n.scrollOffset),new jo(n)}}}function Fo(){return{provide:zt,useClass:Zr}}function qo(){return{provide:zt,useClass:Yr}}function Ho(e){return[e.initialNavigation==="disabled"?Xn().\u0275providers:[],e.initialNavigation==="enabledBlocking"?Jn().\u0275providers:[]]}var yr=new A("");function Bo(){return[{provide:yr,useFactory:Yn},{provide:kt,multi:!0,useExisting:yr}]}export{V as a,ur as b,J as c,ko as d,$o as e};
1
+ import{$ as Q,$a as qr,A as G,C as We,Ca as Lr,D as Te,F as le,Hc as Ft,I as Er,Ia as xr,J as W,Ja as Lt,K as Dt,Oa as jr,P as Mr,Pa as kr,Pc as Jr,Q as P,R as Qe,Ra as $r,Sa as Ye,T as L,Ta as zr,U as S,Ua as Fr,V as Tr,Va as xt,X as C,Y as Dr,Z as Nr,_ as A,a as l,aa as h,b as D,ba as _r,bb as Hr,d as m,da as q,db as jt,e as Cr,ea as E,eb as kt,f as Sr,fb as Br,fc as Gr,g as wr,gc as K,h as ue,i as N,ja as Nt,k as _,ka as Or,kc as Wr,l as b,la as _t,m as g,ma as Ur,n as br,na as de,o as Et,oa as Pr,oc as $t,p as Ir,qa as Ot,rb as Vr,s as I,sa as Ke,t as Mt,tc as Qr,u as j,ua as Ut,v as Tt,va as Pt,vc as Kr,w as Ar,wc as zt,x as Ge,xc as Yr,yc as he,zc as Zr}from"./chunk-RUEXWAWX.js";var f="primary",ze=Symbol("RouteTitle"),Gt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function re(e){return new Gt(e)}function qt(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function sn(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return qt(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!qt(o,e.slice(0,o.length),a)||!qt(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function rt(e){return new Promise((n,t)=>{e.pipe(W()).subscribe({next:r=>n(r),error:r=>t(r)})})}function si(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!k(e[t],n[t]))return!1;return!0}function k(e,n){let t=e?Wt(e):void 0,r=n?Wt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!cn(e[i],n[i]))return!1;return!0}function Wt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function cn(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function ci(e){return e.length>0?e[e.length-1]:null}function ie(e){return Et(e)?e:Hr(e)?b(Promise.resolve(e)):g(e)}function un(e){return Et(e)?rt(e):Promise.resolve(e)}var ui={exact:hn,subset:fn},ln={exact:li,subset:di,ignored:()=>!0},dn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Xr(e,n,t){return ui[t.paths](e.root,n.root,t.matrixParams)&&ln[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function li(e,n){return k(e,n)}function hn(e,n,t){if(!te(e.segments,n.segments)||!Xe(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!hn(e.children[r],n.children[r],t))return!1;return!0}function di(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>cn(e[t],n[t]))}function fn(e,n,t){return pn(e,n,n.segments,t)}function pn(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!te(i,t)||n.hasChildren()||!Xe(i,t,r))}else if(e.segments.length===t.length){if(!te(e.segments,t)||!Xe(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!fn(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!te(e.segments,i)||!Xe(e.segments,i,r)||!e.children[f]?!1:pn(e.children[f],n,o,r)}}function Xe(e,n,t){return n.every((r,i)=>ln[t](e[i].parameters,r.parameters))}var U=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){return pi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}},Y=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=re(this.parameters),this._parameterMap}toString(){return vn(this)}};function hi(e,n){return te(e,n)&&e.every((t,r)=>k(t.parameters,n[r].parameters))}function te(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function fi(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===f&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==f&&(t=t.concat(n(i,r)))}),t}var oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Yt(n);return new U(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${De(n.root,!0)}`,r=mi(n.queryParams),i=typeof n.fragment=="string"?`#${gi(n.fragment)}`:"";return`${t}${r}${i}`}},pi=new B;function et(e){return e.segments.map(n=>vn(n)).join("/")}function De(e,n){if(!e.hasChildren())return et(e);if(n){let t=e.children[f]?De(e.children[f],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=fi(e,(r,i)=>i===f?[De(e.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${et(e)}/${t[0]}`:`${et(e)}/(${t.join("//")})`}}function gn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(e){return gn(e).replace(/%3B/gi,";")}function gi(e){return encodeURI(e)}function Kt(e){return gn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tt(e){return decodeURIComponent(e)}function en(e){return tt(e.replace(/\+/g,"%20"))}function vn(e){return`${Kt(e.path)}${vi(e.parameters)}`}function vi(e){return Object.entries(e).map(([n,t])=>`;${Kt(n)}=${Kt(t)}`).join("")}function mi(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Ze(t)}=${Ze(i)}`).join("&"):`${Ze(t)}=${Ze(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var yi=/^[^\/()?;#]+/;function Ht(e){let n=e.match(yi);return n?n[0]:""}var Ri=/^[^\/()?;=#]+/;function Ci(e){let n=e.match(Ri);return n?n[0]:""}var Si=/^[^=?&#]+/;function wi(e){let n=e.match(Si);return n?n[0]:""}var bi=/^[^&#]+/;function Ii(e){let n=e.match(bi);return n?n[0]:""}var Yt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[f]=new v(t,r)),i}parseSegment(){let n=Ht(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new Y(tt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Ci(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=Ht(this.remaining);i&&(r=i,this.capture(r))}n[tt(t)]=tt(r)}parseQueryParam(n){let t=wi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Ii(this.remaining);s&&(r=s,this.capture(r))}let i=en(t),o=en(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Ht(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let a=this.parseChildren(t+1);r[s??f]=Object.keys(a).length===1&&a[f]?a[f]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function mn(e){return e.segments.length>0?new v([],{[f]:e}):e}function yn(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=yn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return Ai(t)}function Ai(e){if(e.numberOfChildren===1&&e.children[f]){let n=e.children[f];return new v(e.segments.concat(n.segments),n.children)}return e}function me(e){return e instanceof U}function Rn(e,n,t=null,r=null,i=new B){let o=Cn(e);return Sn(o,n,t,r,i)}function Cn(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=mn(r);return n??i}function Sn(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Bt(o,o,o,t,r,i);let s=Ei(n);if(s.toRoot())return Bt(o,o,new v([],{}),t,r,i);let a=Mi(s,o,e),c=a.processChildren?_e(a.segmentGroup,a.index,s.commands):bn(a.segmentGroup,a.index,s.commands);return Bt(o,a.segmentGroup,c,t,r,i)}function nt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ue(e){return typeof e=="object"&&e!=null&&e.outlets}function tn(e,n,t){e||="\u0275";let r=new U;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Bt(e,n,t,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(p=>tn(u,p,o)):tn(u,d,o);let a;e===n?a=t:a=wn(e,n,t);let c=mn(yn(a));return new U(c,s,i)}function wn(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=wn(o,n,t)}),new v(e.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&nt(r[0]))throw new S(4003,!1);let i=r.find(Ue);if(i&&i!==ci(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ei(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new it(!0,0,e);let n=0,t=!1,r=e.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===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new it(t,n,r)}var pe=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Mi(e,n,t){if(e.isAbsolute)return new pe(n,!0,0);if(!t)return new pe(n,!1,NaN);if(t.parent===null)return new pe(t,!0,0);let r=nt(e.commands[0])?0:1,i=t.segments.length-1+r;return Ti(t,i,e.numberOfDoubleDots)}function Ti(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new pe(r,!1,i-o)}function Di(e){return Ue(e[0])?e[0].outlets:{[f]:e}}function bn(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return _e(e,n,t);let r=Ni(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(e.segments.slice(r.pathIndex),e.children),_e(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Zt(e,n,t):r.match?_e(e,0,i):Zt(e,n,t)}function _e(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Di(t),i={};if(Object.keys(r).some(o=>o!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let o=_e(e.children[f],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=bn(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function Ni(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(Ue(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!nn(c,u,s))return o;r+=2}else{if(!nn(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(Ue(o)){let c=_i(o.outlets);return new v(r,c)}if(i===0&&nt(t[0])){let c=e.segments[n];r.push(new Y(c.path,rn(t[0]))),i++;continue}let s=Ue(o)?o.outlets[f]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&nt(a)?(r.push(new Y(s,rn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function _i(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Zt(new v([],{}),0,r))}),n}function rn(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function nn(e,n,t){return e==t.path&&k(n,t.parameters)}var ge="imperative",R=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(R||{}),T=class{id;url;constructor(n,t){this.id=n,this.url=t}},Z=class extends T{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},x=class extends T{urlAfterRedirects;type=R.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(w||{}),ye=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ye||{}),O=class extends T{reason;code;type=R.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function In(e){return e instanceof O&&(e.code===w.Redirect||e.code===w.SupersededByNewNavigation)}var z=class extends T{reason;code;type=R.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},ne=class extends T{error;target;type=R.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe=class extends T{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ot=class extends T{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends T{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},st=class extends T{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends T{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},dt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ft=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Re=class{routerEvent;position;anchor;scrollBehavior;type=R.Scroll;constructor(n,t,r,i){this.routerEvent=n,this.position=t,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ce=class{},Le=class{},Se=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Oi(e){return!(e instanceof Ce)&&!(e instanceof Se)&&!(e instanceof Le)}var gt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ae(this.rootInjector)}},ae=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new gt(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Q(q))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Jt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Jt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=Xt(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Xt(n,this._root).map(t=>t.value)}};function Jt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Jt(e,t);if(r)return r}return null}function Xt(e,n){if(e===n.value)return[n];for(let t of n.children){let r=Xt(e,t);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function fe(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xe=class extends vt{snapshot;constructor(n,t){super(n),this.snapshot=t,cr(this,n)}toString(){return this.snapshot.toString()}};function An(e,n){let t=Ui(e,n),r=new N([new Y("",{})]),i=new N({}),o=new N({}),s=new N({}),a=new N(""),c=new V(r,i,s,a,o,f,e,t.root);return c.snapshot=t.root,new xe(new M(c,[]),t)}function Ui(e,n){let t={},r={},i={},s=new we([],t,i,"",r,f,e,null,{},n);return new je("",new M(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[ze]))??g(void 0),this.url=n,this.params=t,this.queryParams=r,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(I(n=>re(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>re(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function sr(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),e.params),data:l(l({},n.data),e.data),resolve:l(l(l(l({},e.data),n.data),i?.data),e._resolvedData)}:r={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&Mn(i)&&(r.resolve[ze]=i.title),r}var we=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze]}constructor(n,t,r,i,o,s,a,c,u,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},je=class extends vt{url;constructor(n,t){super(t),this.url=n,cr(this,t)}toString(){return En(this._root)}};function cr(e,n){n.value._routerState=e,n.children.forEach(t=>cr(e,t))}function En(e){let n=e.children.length>0?` { ${e.children.map(En).join(", ")} } `:"";return`${e.value}${n}`}function Vt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,k(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),k(n.params,t.params)||e.paramsSubject.next(t.params),si(n.url,t.url)||e.urlSubject.next(t.url),k(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function er(e,n){let t=k(e.params,n.params)&&hi(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||er(e.parent,n.parent))}function Mn(e){return typeof e.title=="string"||e.title===null}var Tn=new A(""),ur=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new de;deactivateEvents=new de;attachEvents=new de;detachEvents=new de;routerOutletData=Wr();parentContexts=h(ae);location=h(kr);changeDetector=h($t);inputBinder=h(Fe,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new tr(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=xt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ut]})}return e})(),tr=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===V?this.route:n===ae?this.childContexts:n===Tn?this.outletData:this.parent.get(n,t)}},Fe=new A(""),lr=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=Mt([r.queryParams,r.params,r.data]).pipe(P(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Qr(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),dr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=zr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Vr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return e})();function hr(e){let n=e.children&&e.children.map(hr),t=n?D(l({},e),{children:n}):l({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=dr),t}function Pi(e,n,t){let r=ke(e,n._root,t?t._root:void 0);return new xe(r,n)}function ke(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=Li(e,n,t);return new M(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(e,a)),s}}let r=xi(n.value),i=n.children.map(o=>ke(e,o));return new M(r,i)}}function Li(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ke(e,r,i);return ke(e,r)})}function xi(e){return new V(new N(e.url),new N(e.params),new N(e.queryParams),new N(e.fragment),new N(e.data),e.outlet,e.component,e)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},Dn="ngNavigationCancelingError";function mt(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=me(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Nn(!1,w.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function Nn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Dn]=!0,t.cancellationCode=n,t}function ji(e){return _n(e)&&me(e.url)}function _n(e){return!!e&&e[Dn]}var rr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Vt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=fe(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=fe(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new pt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ht(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Vt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.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),Vt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},yt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ve=class{component;route;constructor(n,t){this.component=n,this.route=t}};function ki(e,n,t){let r=e._root,i=n?n._root:null;return Ne(r,i,t,[r.value])}function $i(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Ae(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Nr(e)?e:n.get(e):r}function Ne(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(n);return e.children.forEach(s=>{zi(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Oe(a,t.getContext(s),i)),i}function zi(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Fi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new yt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(e,n,a?a.children:null,r,i):Ne(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ve(a.outlet.component,s))}else s&&Oe(n,a,i),i.canActivateChecks.push(new yt(r)),o.component?Ne(e,null,a?a.children:null,r,i):Ne(e,null,t,r,i);return i}function Fi(e,n,t){if(typeof t=="function")return E(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!te(e.url,n.url);case"pathParamsOrQueryParamsChange":return!te(e.url,n.url)||!k(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(e,n)||!k(e.queryParams,n.queryParams);default:return!er(e,n)}}function Oe(e,n,t){let r=fe(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Oe(s,n.children.getContext(o),t):Oe(s,null,t):Oe(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ve(n.outlet.component,i)):t.canDeactivateChecks.push(new ve(null,i)):t.canDeactivateChecks.push(new ve(null,i))}function qe(e){return typeof e=="function"}function qi(e){return typeof e=="boolean"}function Hi(e){return e&&qe(e.canLoad)}function Bi(e){return e&&qe(e.canActivate)}function Vi(e){return e&&qe(e.canActivateChild)}function Gi(e){return e&&qe(e.canDeactivate)}function Wi(e){return e&&qe(e.canMatch)}function On(e){return e instanceof Ir||e?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function Ie(){return P(e=>Mt(e.map(n=>n.pipe(le(1),Mr(Je)))).pipe(I(n=>{for(let t of n)if(t!==!0){if(t===Je)return Je;if(t===!1||Qi(t))return t}return!0}),G(n=>n!==Je),le(1)))}function Qi(e){return me(e)||e instanceof be}function Un(e){return e.aborted?g(void 0).pipe(le(1)):new wr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function Pn(e){return Qe(Un(e))}function Ki(e){return j(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(l({},n),{guardsResult:!0})):Yi(o,t,r).pipe(j(s=>s&&qi(s)?Zi(t,i,e):g(s)),I(s=>D(l({},n),{guardsResult:s})))})}function Yi(e,n,t){return b(e).pipe(j(r=>ro(r.component,r.route,t,n)),W(r=>r!==!0,!0))}function Zi(e,n,t){return b(n).pipe(Te(r=>Ar(Xi(r.route.parent,t),Ji(r.route,t),to(e,r.path),eo(e,r.route))),W(r=>r!==!0,!0))}function Ji(e,n){return e!==null&&n&&n(new ft(e)),g(!0)}function Xi(e,n){return e!==null&&n&&n(new dt(e)),g(!0)}function eo(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>Ge(()=>{let o=n._environmentInjector,s=Ae(i,o),a=Bi(s)?s.canActivate(n,e):E(o,()=>s(n,e));return ie(a).pipe(W())}));return g(r).pipe(Ie())}function to(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>$i(o)).filter(o=>o!==null).map(o=>Ge(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ae(a,c),d=Vi(u)?u.canActivateChild(t,e):E(c,()=>u(t,e));return ie(d).pipe(W())});return g(s).pipe(Ie())}));return g(i).pipe(Ie())}function ro(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ae(s,a),u=Gi(c)?c.canDeactivate(e,n,t,r):E(a,()=>c(e,n,t,r));return ie(u).pipe(W())});return g(o).pipe(Ie())}function no(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ae(a,e),u=Hi(c)?c.canLoad(n,t):E(e,()=>c(n,t)),d=ie(u);return i?d.pipe(Pn(i)):d});return g(s).pipe(Ie(),Ln(r))}function Ln(e){return Sr(L(n=>{if(typeof n!="boolean")throw mt(e,n)}),I(n=>n===!0))}function io(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=Ae(c,e),d=Wi(u)?u.canMatch(n,t,i):E(e,()=>u(n,t,i));return ie(d).pipe(Pn(o))});return g(a).pipe(Ie(),Ln(r))}var H=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},$e=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function oo(e){throw new S(4e3,!1)}function ao(e){throw Nn(!1,w.GuardRejected)}var nr=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){return m(this,null,function*(){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw oo(`${n.redirectTo}`);i=i.children[f]}})}applyRedirectCommands(n,t,r,i,o){return m(this,null,function*(){let s=yield so(t,i,o);if(s instanceof U)throw new $e(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $e(a);return a})}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new U(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function so(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return rt(ie(E(t,()=>r(n))))}function co(e,n){return e.providers&&!e._injector&&(e._injector=Ye(e.providers,n,`Route: ${e.path}`)),e._injector??n}function $(e){return e.outlet||f}function uo(e,n){let t=e.filter(r=>$(r)===n);return t.push(...e.filter(r=>$(r)!==n)),t}var ir={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xn(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function lo(e,n,t,r,i,o,s){let a=jn(e,n,t);if(!a.matched)return g(a);let c=xn(o(a));return r=co(n,r),io(r,n,t,i,c,s).pipe(I(u=>u===!0?a:l({},ir)))}function jn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},ir):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||sn)(t,e,n);if(!i)return l({},ir);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function on(e,n,t,r){return t.length>0&&po(e,t,r)?{segmentGroup:new v(n,fo(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&go(e,t,r)?{segmentGroup:new v(e.segments,ho(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function ho(e,n,t,r){let i={};for(let o of t)if(Ct(e,n,o)&&!r[$(o)]){let s=new v([],{});i[$(o)]=s}return l(l({},r),i)}function fo(e,n){let t={};t[f]=n;for(let r of e)if(r.path===""&&$(r)!==f){let i=new v([],{});t[$(r)]=i}return t}function po(e,n,t){return t.some(r=>Ct(e,n,r)&&$(r)!==f)}function go(e,n,t){return t.some(r=>Ct(e,n,r))}function Ct(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function vo(e,n,t){return n.length===0&&!e.children[t]}var or=class{};function mo(e,n,t,r,i,o,s="emptyOnly",a){return m(this,null,function*(){return new ar(e,n,t,r,i,s,o,a).recognize()})}var yo=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new nr(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){return m(this,null,function*(){let n=on(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=yield this.match(n),i=new M(r,t),o=new je("",i),s=Rn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return m(this,null,function*(){let t=new we([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,f,t),rootSnapshot:t}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof H?this.noMatchError(r):r}})}processSegmentGroup(n,t,r,i,o){return m(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=yield this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,t,r,i){return m(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],d=uo(t,c),p=yield this.processSegmentGroup(n,d,u,c,i);s.push(...p)}let a=kn(s);return Ro(a),a})}processSegment(n,t,r,i,o,s,a){return m(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof H||On(u))continue;throw u}if(vo(r,i,o))return new or;throw new H(r)})}processSegmentAgainstRoute(n,t,r,i,o,s,a,c){return m(this,null,function*(){if($(r)!==s&&(s===f||!Ct(i,o,r)))throw new H(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new H(i)})}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){return m(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=jn(t,i,o);if(!c)throw new H(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>yo&&(this.allowRedirects=!1));let X=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let F=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,xn(X),n),ee=yield this.applyRedirects.lineralizeSegments(i,F);return this.processSegment(n,r,t,ee.concat(y),s,!1,a)})}createSnapshot(n,t,r,i,o){let s=new we(r,i,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,So(t),$(t),t.component??t._loadedComponent??null,t,wo(t),n),a=sr(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(n,t,r,i,o,s){return m(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Ve=>this.createSnapshot(n,r,Ve.consumedSegments,Ve.parameters,s),c=yield rt(lo(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new H(t);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:X}=c,F=this.createSnapshot(n,r,y,p,s),{segmentGroup:ee,slicedSegments:Ee}=on(t,y,X,u);if(Ee.length===0&&ee.hasChildren()){let Ve=yield this.processChildren(d,u,ee,F);return new M(F,Ve)}if(u.length===0&&Ee.length===0)return new M(F,[]);let At=$(r)===o,Me=yield this.processSegment(d,u,ee,Ee,At?f:o,!0,F);return new M(F,Me instanceof M?[Me]:[])})}getChildConfig(n,t,r){return m(this,null,function*(){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield rt(no(n,t,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw ao(t)}return{routes:[],injector:n}})}};function Ro(e){e.sort((n,t)=>n.value.outlet===f?-1:t.value.outlet===f?1:n.value.outlet.localeCompare(t.value.outlet))}function Co(e){let n=e.value.routeConfig;return n&&n.path===""}function kn(e){let n=[],t=new Set;for(let r of e){if(!Co(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=kn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!t.has(r))}function So(e){return e.data||{}}function wo(e){return e.resolve||{}}function bo(e,n,t,r,i,o,s){return j(a=>m(null,null,function*(){let{state:c,tree:u}=yield mo(e,n,t,r,a.extractedUrl,i,o,s);return D(l({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Io(e){return j(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of $n(a))o.add(c);let s=0;return b(o).pipe(Te(a=>i.has(a)?Ao(a,t,e):(a.data=sr(a,a.parent,e).resolve,g(void 0))),L(()=>s++),Dt(1),j(a=>s===o.size?g(n):_))})}function $n(e){let n=e.children.map(t=>$n(t)).flat();return[e,...n]}function Ao(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!Mn(r)&&(i[ze]=r.title),Ge(()=>(e.data=sr(e,e.parent,t).resolve,Eo(i,e,n).pipe(I(o=>(e._resolvedData=o,e.data=l(l({},e.data),o),null)))))}function Eo(e,n,t){let r=Wt(e);if(r.length===0)return g({});let i={};return b(r).pipe(j(o=>Mo(e[o],n,t).pipe(W(),L(s=>{if(s instanceof be)throw mt(new B,s);i[o]=s}))),Dt(1),I(()=>i),We(o=>On(o)?_:br(o)))}function Mo(e,n,t){let r=n._environmentInjector,i=Ae(e,r),o=i.resolve?i.resolve(n,t):E(r,()=>i(n,t));return ie(o)}function an(e){return P(n=>{let t=e(n);return t?b(t).pipe(I(()=>n)):g(n)})}var fr=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(t){return t.data[ze]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(zn),providedIn:"root"})}return e})(),zn=(()=>{class e extends fr{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Q(Jr))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),se=new A("",{factory:()=>({})}),ce=new A(""),St=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(Gr);loadComponent(t,r){return m(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield un(E(t,()=>r.loadComponent())),s=yield Hn(qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=m(this,null,function*(){try{let o=yield Fn(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Fn(e,n,t,r){return m(this,null,function*(){let i=yield un(E(t,()=>e.loadChildren())),o=yield Hn(qn(i)),s;o instanceof $r||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(e);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,d=s,c=a.get(ce,[],{optional:!0,self:!0}).flat()),{routes:c.map(hr),injector:a,factory:d}})}function To(e){return e&&typeof e=="object"&&"default"in e}function qn(e){return To(e)?e.default:e}function Hn(e){return m(this,null,function*(){return e})}var wt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Do),providedIn:"root"})}return e})(),Do=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pr=new A(""),gr=new A("");function Bn(e,n,t){let r=e.get(gr),i=e.get(Or);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),No(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&E(e,()=>c({transition:a,from:n,to:t})),s}function No(e){return new Promise(n=>{Lt({read:()=>setTimeout(n)},{injector:e})})}var _o=()=>{},vr=new A(""),bt=(()=>{class e{currentNavigation=Ke(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Ke(null);events=new ue;transitionAbortWithErrorSubject=new ue;configLoader=h(St);environmentInjector=h(q);destroyRef=h(_t);urlSerializer=h(oe);rootContexts=h(ae);location=h(he);inputBindingEnabled=h(Fe,{optional:!0})!==null;titleStrategy=h(fr);options=h(se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(wt);createViewTransition=h(pr,{optional:!0});navigationErrorHandler=h(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new ut(i)),r=i=>this.events.next(new lt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;K(()=>{this.transitions?.next(D(l({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new N(null),this.transitions.pipe(G(r=>r!==null),P(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(P(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),_;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?D(l({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new z(a.id,this.urlSerializer.serialize(a.rawUrl),"",ye.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(P(p=>(this.events.next(new Z(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?_:Promise.resolve(p))),bo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),L(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=p.urlAfterRedirects,y)),this.events.next(new Le)}),P(p=>b(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(I(()=>p))),L(()=>{let p=new Pe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:X,restoredState:F,extras:ee}=a,Ee=new Z(p,this.urlSerializer.serialize(y),X,F);this.events.next(Ee);let At=An(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=D(l({},a),{targetSnapshot:At,urlAfterRedirects:y,extras:D(l({},ee),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Me=>(Me.finalUrl=y,Me)),g(r)}else return this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ye.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),I(a=>{let c=new ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=D(l({},a),{guards:ki(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),Ki(a=>this.events.next(a)),P(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw mt(this.urlSerializer,a.guardsResult);let c=new at(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",w.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let u=new st(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return _;let d=!1;return g(a).pipe(Io(this.paramsInheritanceStrategy),L({next:()=>{d=!0;let p=new ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{d||this.cancelNavigationTransition(a,"",w.NoDataFromResolver)}}))}),an(a=>{let c=d=>{let p=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let y=d._environmentInjector;p.push(this.configLoader.loadComponent(y,d.routeConfig).then(X=>{d.component=X}))}for(let y of d.children)p.push(...c(y));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):b(Promise.all(u).then(()=>a))}),an(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?b(u).pipe(I(()=>r)):g(r)}),le(1),P(a=>{let c=Pi(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=D(l({},a),{targetRouterState:c}),this.currentNavigation.update(d=>(d.targetRouterState=c,d)),this.events.next(new Ce);let u=r.beforeActivateHandler.deferredHandle;return u?b(u.then(()=>a)):g(a)}),L(a=>{new rr(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=_o,c)),this.lastSuccessfulNavigation.set(K(this.currentNavigation)),this.events.next(new x(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Qe(Un(o.signal).pipe(G(()=>!i&&!r.targetRouterState),L(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",w.Aborted)}))),L({complete:()=>{i=!0}}),Qe(this.transitionAbortWithErrorSubject.pipe(L(a=>{throw a}))),Er(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),We(a=>{if(i=!0,this.destroyed)return r.resolve(!1),_;if(_n(a))this.events.next(new O(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ji(a)?this.events.next(new Se(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ne(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=E(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof be){let{message:d,cancellationCode:p}=mt(this.urlSerializer,u);this.events.next(new O(r.id,this.urlSerializer.serialize(r.extractedUrl),d,p)),this.events.next(new Se(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return _}))}))}cancelNavigationTransition(t,r,i){let o=new O(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=K(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Oo(e){return e!==ge}var Vn=new A("");var Gn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Uo),providedIn:"root"})}return e})(),Rt=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Uo=(()=>{class e extends Rt{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mr=(()=>{class e{urlSerializer=h(oe);options=h(se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(he);urlHandlingStrategy=h(wt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new U;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof U?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=An(null,h(q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>h(Po),providedIn:"root"})}return e})(),Po=(()=>{class e extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof Z?this.updateStateMemento():t instanceof z?this.commitTransition(r):t instanceof Pe?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Ce?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof O&&!In(t)?this.restoreHistory(r):t instanceof ne?this.restoreHistory(r,!0):t instanceof x&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,c=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",c)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function It(e,n){e.events.pipe(G(t=>t instanceof x||t instanceof O||t instanceof ne||t instanceof z),I(t=>t instanceof x||t instanceof z?0:(t instanceof O?t.code===w.Redirect||t.code===w.SupersededByNewNavigation:!1)?2:1),G(t=>t!==2),le(1)).subscribe(()=>{n()})}var J=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(qr);stateManager=h(mr);options=h(se,{optional:!0})||{};pendingTasks=h(Ur);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(bt);urlSerializer=h(oe);location=h(he);urlHandlingStrategy=h(wt);injector=h(q);_events=new ue;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Gn);injectorCleanup=h(Vn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(ce,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Fe,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=K(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof O&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof x)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Se){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=l({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Oo(i.source)},s);this.scheduleNavigation(a,ge,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ge,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null;if(i){let c=l({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ot)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(hr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=Cn(y)}catch(y){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Sn(p,t,d,u??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=me(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ge,null,r)}navigate(t,r={skipLocationChange:!1}){return Lo(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(r){return this.console.warn(Tr(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=l({},dn):r===!1?i=l({},Qt):i=l(l({},Qt),r),me(t))return Xr(this.currentUrlTree,t,i);let o=this.parseUrl(t);return Xr(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,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((p,y)=>{a=p,c=y});let d=this.pendingTasks.add();return It(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Lo(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new S(4008,!1)}var He=class{};var Wn=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,i,o){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(t=>t instanceof x),Te(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ye(o.providers,t,""));let s=o._injector??t;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let 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 b(i).pipe(Tt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{if(t.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=b(this.loader.loadChildren(t,r)):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??t,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(t,r);return b([o,s]).pipe(Tt())}else return o})}static \u0275fac=function(r){return new(r||e)(Q(J),Q(q),Q(He),Q(St))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qn=new A(""),jo=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ge;restoredId=0;store={};urlSerializer=h(oe);zone=h(Pr);viewportScroller=h(Ft);transitions=h(bt);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.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(t=>{t instanceof Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof x?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof z&&t.code===ye.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof Re)||t.scrollBehavior==="manual")return;let r={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,r):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,r){let i=K(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>m(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Re(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){jr()};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})();function ko(e,...n){return _r([{provide:ce,multi:!0,useValue:e},[],{provide:V,useFactory:Kn},{provide:kt,multi:!0,useFactory:Yn},n.map(t=>t.\u0275providers)])}function Kn(){return h(J).routerState.root}function Be(e,n){return{\u0275kind:e,\u0275providers:n}}function Yn(){let e=h(Nt);return n=>{let t=e.get(Br);if(n!==t.components[0])return;let r=e.get(J),i=e.get(Zn);e.get(Rr)===1&&r.initialNavigation(),e.get(ei,null,{optional:!0})?.setUpPreloading(),e.get(Qn,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Zn=new A("",{factory:()=>new ue}),Rr=new A("",{factory:()=>1});function Jn(){let e=[{provide:Lr,useValue:!0},{provide:Rr,useValue:0},jt(()=>{let n=h(Nt);return n.get(Kr,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(J),o=n.get(Zn);It(i,()=>{r(!0)}),n.get(bt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Be(2,e)}function Xn(){let e=[jt(()=>{h(J).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return Be(3,e)}var ei=new A("");function ti(e){return Be(0,[{provide:ei,useExisting:Wn},{provide:He,useExisting:e}])}function ri(){return Be(8,[lr,{provide:Fe,useExisting:lr}])}function ni(e){xr("NgRouterViewTransitions");let n=[{provide:pr,useValue:Bn},{provide:gr,useValue:l({skipNextTransition:!!e?.skipInitialTransition},e)}];return Be(9,n)}var ii=[he,{provide:oe,useClass:B},J,ae,{provide:V,useFactory:Kn},St,[]],$o=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[ii,[],{provide:ce,multi:!0,useValue:t},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:se,useValue:r||{}},r?.useHash?Fo():qo(),zo(),r?.preloadingStrategy?ti(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Ho(r):[],r?.bindToComponentInputs?ri().\u0275providers:[],r?.enableViewTransitions?ni().\u0275providers:[],Bo()]}}static forChild(t){return{ngModule:e,providers:[{provide:ce,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Fr({type:e});static \u0275inj=Dr({})}return e})();function zo(){return{provide:Qn,useFactory:()=>{let e=h(Ft),n=h(se);return n.scrollOffset&&e.setOffset(n.scrollOffset),new jo(n)}}}function Fo(){return{provide:zt,useClass:Zr}}function qo(){return{provide:zt,useClass:Yr}}function Ho(e){return[e.initialNavigation==="disabled"?Xn().\u0275providers:[],e.initialNavigation==="enabledBlocking"?Jn().\u0275providers:[]]}var yr=new A("");function Bo(){return[{provide:yr,useFactory:Yn},{provide:kt,multi:!0,useExisting:yr}]}export{x as a,V as b,ur as c,J as d,ko as e,$o as f};