import{e as tn}from"./chunk-BRIVAFG5.js";import{I as Jr,d as Zr,f as Kr,g as mt,h as Yr,i as Xr,j as Ct}from"./chunk-VTET4O2Q.js";import{$a as Or,Ca as br,Cd as Hr,Da as P,Ea as Ir,Ga as w,Hd as Wr,J as D,Ja as I,Jc as qr,Jd as De,K as f,Kd as Me,L as gt,Ld as Gr,M as mr,Md as Wt,N as Cr,Na as S,Oa as Ar,P as C,Pa as Dr,Pd as Te,Q as Vt,Qa as U,R as M,Ra as ye,Rb as $r,S as ge,Sa as V,T as yr,Ta as p,Tc as Vr,U as ve,Ud as Gt,Va as Mr,Wa as Tr,Wb as nt,Xb as Nr,Za as Ht,Zd as Qr,_ as K,_a as Er,a as h,ab as Re,ac as jr,b as A,ca as J,cb as Ur,cc as it,da as tt,dc as Ie,ec as Lr,fa as me,fb as rt,ga as et,gb as B,ia as Rr,ib as Se,jc as kr,lc as zr,m as pr,n as gr,nb as we,nc as Ae,oa as Bt,ob as xr,oc as Fr,od as Br,p as vr,pa as q,pb as be,r as fe,ra as Ce,s as pe,sa as Sr,sc as _r,t as F,tb as Pr,u as O,ub as vt,xa as wr,z as _}from"./chunk-XNQ3RS5P.js";var g="primary",$t=Symbol("RouteTitle"),Pe=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new Pe(e)}function Wn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let n={};for(let s=0;s<r.length;s++){let o=r[s],a=e[s];if(o.startsWith(":"))n[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:n}}function Gn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!$(e[i],t[i]))return!1;return!0}function $(e,t){let i=e?$e(e):void 0,r=t?$e(t):void 0;if(!i||!r||i.length!=r.length)return!1;let n;for(let s=0;s<i.length;s++)if(n=i[s],!ln(e[n],t[n]))return!1;return!0}function $e(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function ln(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>r[s]===n)}else return e===t}function hn(e){return e.length>0?e[e.length-1]:null}function Z(e){return mr(e)?e:Wr(e)?D(Promise.resolve(e)):f(e)}var Qn={exact:fn,subset:pn},dn={exact:Zn,subset:Kn,ignored:()=>!0};function en(e,t,i){return Qn[i.paths](e.root,t.root,i.matrixParams)&&dn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Zn(e,t){return $(e,t)}function fn(e,t,i){if(!X(e.segments,t.segments)||!Kt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!fn(e.children[r],t.children[r],i))return!1;return!0}function Kn(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>ln(e[i],t[i]))}function pn(e,t,i){return gn(e,t,t.segments,i)}function gn(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!X(n,i)||t.hasChildren()||!Kt(n,i,r))}else if(e.segments.length===i.length){if(!X(e.segments,i)||!Kt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!pn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!X(e.segments,n)||!Kt(e.segments,n,r)||!e.children[g]?!1:gn(e.children[g],t,s,r)}}function Kt(e,t,i){return t.every((r,n)=>dn[i](e[n].parameters,r.parameters))}var H=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){return Jn.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yt(this)}},Y=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){var t;return(t=this._parameterMap)!=null||(this._parameterMap=ct(this.parameters)),this._parameterMap}toString(){return mn(this)}};function Yn(e,t){return X(e,t)&&e.every((i,r)=>$(i.parameters,t[r].parameters))}function X(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function Xn(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===g&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==g&&(i=i.concat(t(n,r)))}),i}var Nt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>new At,providedIn:"root"});let e=t;return e})(),At=class{parse(t){let i=new je(t);return new H(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i="/".concat(yt(t.root,!0)),r=ri(t.queryParams),n=typeof t.fragment=="string"?"#".concat(ti(t.fragment)):"";return"".concat(i).concat(r).concat(n)}},Jn=new At;function Yt(e){return e.segments.map(t=>mn(t)).join("/")}function yt(e,t){if(!e.hasChildren())return Yt(e);if(t){let i=e.children[g]?yt(e.children[g],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==g&&r.push("".concat(n,":").concat(yt(s,!1)))}),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}else{let i=Xn(e,(r,n)=>n===g?[yt(e.children[g],!1)]:["".concat(n,":").concat(yt(r,!1))]);return Object.keys(e.children).length===1&&e.children[g]!=null?"".concat(Yt(e),"/").concat(i[0]):"".concat(Yt(e),"/(").concat(i.join("//"),")")}}function vn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qt(e){return vn(e).replace(/%3B/gi,";")}function ti(e){return encodeURI(e)}function Ne(e){return vn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xt(e){return decodeURIComponent(e)}function rn(e){return Xt(e.replace(/\+/g,"%20"))}function mn(e){return"".concat(Ne(e.path)).concat(ei(e.parameters))}function ei(e){return Object.entries(e).map(([t,i])=>";".concat(Ne(t),"=").concat(Ne(i))).join("")}function ri(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>"".concat(Qt(i),"=").concat(Qt(n))).join("&"):"".concat(Qt(i),"=").concat(Qt(r))).filter(i=>i);return t.length?"?".concat(t.join("&")):""}var ni=/^[^\/()?;#]+/;function Ee(e){let t=e.match(ni);return t?t[0]:""}var ii=/^[^\/()?;=#]+/;function si(e){let t=e.match(ii);return t?t[0]:""}var oi=/^[^=?&#]+/;function ai(e){let t=e.match(oi);return t?t[0]:""}var ui=/^[^&#]+/;function ci(e){let t=e.match(ui);return t?t[0]:""}var je=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){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 i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[g]=new m(t,i)),r}parseSegment(){let t=Ee(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new Y(Xt(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=si(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=Ee(this.remaining);n&&(r=n,this.capture(r))}t[Xt(i)]=Xt(r)}parseQueryParam(t){let i=ai(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=ci(this.remaining);o&&(r=o,this.capture(r))}let n=rn(i),s=rn(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ee(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new I(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=g);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[g]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Cn(e){return e.segments.length>0?new m([],{[g]:e}):e}function yn(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=yn(n);if(r===g&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return li(i)}function li(e){if(e.numberOfChildren===1&&e.children[g]){let t=e.children[g];return new m(e.segments.concat(t.segments),t.children)}return e}function lt(e){return e instanceof H}function hi(e,t,i=null,r=null){let n=Rn(e);return Sn(n,t,i,r)}function Rn(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=Cn(r);return t!=null?t:n}function Sn(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return Oe(n,n,n,i,r);let s=di(t);if(s.toRoot())return Oe(n,n,new m([],{}),i,r);let o=fi(s,n,e),a=o.processChildren?wt(o.segmentGroup,o.index,s.commands):bn(o.segmentGroup,o.index,s.commands);return Oe(n,o.segmentGroup,a,i,r)}function Jt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Dt(e){return typeof e=="object"&&e!=null&&e.outlets}function Oe(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>"".concat(l)):"".concat(u)});let o;e===t?o=i:o=wn(e,t,i);let a=Cn(yn(o));return new H(a,s,n)}function wn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=wn(s,t,i)}),new m(e.segments,r)}var te=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&Jt(r[0]))throw new I(4003,!1);let n=r.find(Dt);if(n&&n!==hn(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new te(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new te(i,t,r)}var at=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function fi(e,t,i){if(e.isAbsolute)return new at(t,!0,0);if(!i)return new at(t,!1,NaN);if(i.parent===null)return new at(i,!0,0);let r=Jt(e.commands[0])?0:1,n=i.segments.length-1+r;return pi(i,n,e.numberOfDoubleDots)}function pi(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new I(4005,!1);n=r.segments.length}return new at(r,!1,n-s)}function gi(e){return Dt(e[0])?e[0].outlets:{[g]:e}}function bn(e,t,i){if(e!=null||(e=new m([],{})),e.segments.length===0&&e.hasChildren())return wt(e,t,i);let r=vi(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let s=new m(e.segments.slice(0,r.pathIndex),{});return s.children[g]=new m(e.segments.slice(r.pathIndex),e.children),wt(s,0,n)}else return r.match&&n.length===0?new m(e.segments,{}):r.match&&!e.hasChildren()?Le(e,t,i):r.match?wt(e,0,n):Le(e,t,i)}function wt(e,t,i){if(i.length===0)return new m(e.segments,{});{let r=gi(i),n={};if(Object.keys(r).some(s=>s!==g)&&e.children[g]&&e.numberOfChildren===1&&e.children[g].segments.length===0){let s=wt(e.children[g],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=bn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function vi(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n<e.segments.length;){if(r>=i.length)return s;let o=e.segments[n],a=i[r];if(Dt(a))break;let c="".concat(a),u=r<i.length-1?i[r+1]:null;if(n>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!sn(c,u,o))return s;r+=2}else{if(!sn(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function Le(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n<i.length;){let s=i[n];if(Dt(s)){let c=mi(s.outlets);return new m(r,c)}if(n===0&&Jt(i[0])){let c=e.segments[t];r.push(new Y(c.path,nn(i[0]))),n++;continue}let o=Dt(s)?s.outlets[g]:"".concat(s),a=n<i.length-1?i[n+1]:null;o&&a&&Jt(a)?(r.push(new Y(o,nn(a))),n+=2):(r.push(new Y(o,{})),n++)}return new m(r,{})}function mi(e){let t={};return Object.entries(e).forEach(([i,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=Le(new m([],{}),0,r))}),t}function nn(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]="".concat(r)),t}function sn(e,t,i){return e==i.path&&$(t,i.parameters)}var bt="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||{}),x=class{constructor(t,i){this.id=t,this.url=i}},ht=class extends x{constructor(t,i,r="imperative",n=null){super(t,i),this.type=R.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}},N=class extends x{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=R.NavigationEnd}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}},E=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||{}),ee=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ee||{}),W=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=R.NavigationCancel}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}},G=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=R.NavigationSkipped}},Mt=class extends x{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=R.NavigationError}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}},re=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.RoutesRecognized}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},ke=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.GuardsCheckStart}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},ze=class extends x{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=R.GuardsCheckEnd}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}},Fe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.ResolveStart}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},_e=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.ResolveEnd}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},qe=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadStart}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}},Ve=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadEnd}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}},Be=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(t,"')")}},He=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(t,"')")}},We=class{constructor(t){this.snapshot=t,this.type=R.ActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(t,"')")}},Ge=class{constructor(t){this.snapshot=t,this.type=R.ActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(t,"')")}},ne=class{constructor(t,i,r){this.routerEvent=t,this.position=i,this.anchor=r,this.type=R.Scroll}toString(){let t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}},Tt=class{},Et=class{constructor(t){this.url=t}};var Qe=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new jt,this.attachRef=null}},jt=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new Qe,this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ie=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Ze(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=Ze(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Ke(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Ke(t,this._root).map(i=>i.value)}};function Ze(e,t){if(e===t.value)return t;for(let i of t.children){let r=Ze(e,i);if(r)return r}return null}function Ke(e,t){if(e===t.value)return[t];for(let i of t.children){let r=Ke(e,i);if(r.length)return r.unshift(t),r}return[]}var T=class{constructor(t,i){this.value=t,this.children=i}toString(){return"TreeNode(".concat(this.value,")")}};function ot(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var se=class extends ie{constructor(t,i){super(t),this.snapshot=i,or(this,t)}toString(){return this.snapshot.toString()}};function In(e){let t=Ci(e),i=new O([new Y("",{})]),r=new O({}),n=new O({}),s=new O({}),o=new O(""),a=new Q(i,r,s,o,n,g,e,t.root);return a.snapshot=t.root,new se(new T(a,[]),t)}function Ci(e){let t={},i={},r={},n="",s=new Ot([],t,r,n,i,g,e,null,{});return new oe("",new T(s,[]))}var Q=class{constructor(t,i,r,n,s,o,a,c){var u,l;this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=(l=(u=this.dataSubject)==null?void 0:u.pipe(C(d=>d[$t])))!=null?l:f(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}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(){var t;return(t=this._paramMap)!=null||(this._paramMap=this.params.pipe(C(i=>ct(i)))),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(C(i=>ct(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}};function sr(e,t,i="emptyOnly"){var s,o;let r,{routeConfig:n}=e;return t!==null&&(i==="always"||(n==null?void 0:n.path)===""||!t.component&&!((s=t.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n==null?void 0:n.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),(o=e._resolvedData)!=null?o:{})},n&&Dn(n)&&(r.resolve[$t]=n.title),r}var Ot=class{get title(){var t;return(t=this.data)==null?void 0:t[$t]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var t;return(t=this._paramMap)!=null||(this._paramMap=ct(this.params)),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=ct(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(i,"')")}},oe=class extends ie{constructor(t,i){super(i),this.url=t,or(this,i)}toString(){return An(this._root)}};function or(e,t){t.value._routerState=e,t.children.forEach(i=>or(e,i))}function An(e){let t=e.children.length>0?" { ".concat(e.children.map(An).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Ue(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,$(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),$(t.params,i.params)||e.paramsSubject.next(i.params),Gn(t.url,i.url)||e.urlSubject.next(i.url),$(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ye(e,t){let i=$(e.params,t.params)&&Yn(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Ye(e.parent,t.parent))}function Dn(e){return typeof e.title=="string"||e.title===null}var yi=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=p(jt),this.location=p(Lr),this.changeDetector=p(Te),this.environmentInjector=p(rt),this.inputBinder=p(le,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var n;return((n=this.parentContexts.getContext(r))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){var s;this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),(s=this.inputBinder)==null||s.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){var l;if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Xe(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n!=null?n:this.environmentInjector}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Re({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Se]});let e=t;return e})(),Xe=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===Q?this.route:t===jt?this.childContexts:this.parent.get(t,i)}},le=new U(""),on=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){var n;(n=this.outletDataSubscriptions.get(r))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:n}=r,s=Vt([n.queryParams,n.params,n.data]).pipe(P(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?f(c):Promise.resolve(c)))).subscribe(o=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(r);return}let a=Qr(n.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(r,s)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Ri(e,t,i){let r=Ut(e,t._root,i?i._root:void 0);return new se(r,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=Si(e,t,i);return new T(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let r=wi(t.value),n=t.children.map(s=>Ut(e,s));return new T(r,n)}}function Si(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Ut(e,r,n);return Ut(e,r)})}function wi(e){return new Q(new O(e.url),new O(e.params),new O(e.queryParams),new O(e.fragment),new O(e.data),e.outlet,e.component,e)}var Mn="ngNavigationCancelingError";function Tn(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=lt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=En(!1,E.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function En(e,t){let i=new Error("NavigationCancelingError: ".concat(e||""));return i[Mn]=!0,i.cancellationCode=t,i}function bi(e){return On(e)&&lt(e.url)}function On(e){return!!e&&e[Mn]}var Ii=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Er({type:t,selectors:[["ng-component"]],standalone:!0,features:[Br],decls:1,vars:0,template:function(n,s){n&1&&qr(0,"router-outlet")},dependencies:[yi],encapsulation:2});let e=t;return e})();function Ai(e,t){var i;return e.providers&&!e._injector&&(e._injector=Ae(e.providers,t,"Route: ".concat(e.path))),(i=e._injector)!=null?i:t}function ar(e){let t=e.children&&e.children.map(ar),i=t?A(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==g&&(i.component=Ii),i}function j(e){return e.outlet||g}function Di(e,t){let i=e.filter(r=>j(r)===t);return i.push(...e.filter(r=>j(r)!==t)),i}function Lt(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){let r=i.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var Mi=(e,t,i,r)=>C(n=>(new Je(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),Je=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),Ue(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Ge(s.value.snapshot))}),t.children.length&&this.forwardEvent(new He(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(Ue(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Ue(a.route.value),this.activateChildRoutes(t,null,o.children)}else{let a=Lt(n.snapshot);o.attachRef=null,o.route=n,o.injector=a,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,r)}},ae=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ut=class{constructor(t,i){this.component=t,this.route=i}};function Ti(e,t,i){let r=e._root,n=t?t._root:null;return Rt(r,n,i,[r.value])}function Ei(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ft(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!Dr(e)?e:t.get(e):r}function Rt(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=ot(t);return e.children.forEach(o=>{Oi(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>It(a,i.getContext(o),n)),n}function Oi(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Ui(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ae(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Rt(e,t,a?a.children:null,r,n):Rt(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new ut(a.outlet.component,o))}else o&&It(t,a,n),n.canActivateChecks.push(new ae(r)),s.component?Rt(e,null,a?a.children:null,r,n):Rt(e,null,i,r,n);return n}function Ui(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!X(e.url,t.url);case"pathParamsOrQueryParamsChange":return!X(e.url,t.url)||!$(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ye(e,t)||!$(e.queryParams,t.queryParams);case"paramsChange":default:return!Ye(e,t)}}function It(e,t,i){let r=ot(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?It(o,t.children.getContext(s),i):It(o,null,i):It(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new ut(t.outlet.component,n)):i.canDeactivateChecks.push(new ut(null,n)):i.canDeactivateChecks.push(new ut(null,n))}function kt(e){return typeof e=="function"}function xi(e){return typeof e=="boolean"}function Pi(e){return e&&kt(e.canLoad)}function $i(e){return e&&kt(e.canActivate)}function Ni(e){return e&&kt(e.canActivateChild)}function ji(e){return e&&kt(e.canDeactivate)}function Li(e){return e&&kt(e.canMatch)}function Un(e){return e instanceof Cr||(e==null?void 0:e.name)==="EmptyError"}var Zt=Symbol("INITIAL_VALUE");function dt(){return P(e=>Vt(e.map(t=>t.pipe(et(1),br(Zt)))).pipe(C(t=>{for(let i of t)if(i!==!0){if(i===Zt)return Zt;if(i===!1||i instanceof H)return i}return!0}),K(t=>t!==Zt),et(1)))}function ki(e,t){return M(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(A(h({},i),{guardsResult:!0})):zi(o,r,n,e).pipe(M(a=>a&&xi(a)?Fi(r,s,e,t):f(a)),C(a=>A(h({},i),{guardsResult:a})))})}function zi(e,t,i,r){return D(e).pipe(M(n=>Hi(n.component,n.route,i,t,r)),q(n=>n!==!0,!0))}function Fi(e,t,i,r){return D(t).pipe(tt(n=>yr(qi(n.route.parent,r),_i(n.route,r),Bi(e,n.path,i),Vi(e,n.route,i))),q(n=>n!==!0,!0))}function _i(e,t){return e!==null&&t&&t(new We(e)),f(!0)}function qi(e,t){return e!==null&&t&&t(new Be(e)),f(!0)}function Vi(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let n=r.map(s=>ve(()=>{var u;let o=(u=Lt(t))!=null?u:i,a=ft(s,o),c=$i(a)?a.canActivate(t,e):B(o,()=>a(t,e));return Z(c).pipe(q())}));return f(n).pipe(dt())}function Bi(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>ve(()=>{let a=o.guards.map(c=>{var y;let u=(y=Lt(o.node))!=null?y:i,l=ft(c,u),d=Ni(l)?l.canActivateChild(r,e):B(u,()=>l(r,e));return Z(d).pipe(q())});return f(a).pipe(dt())}));return f(s).pipe(dt())}function Hi(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{var d;let c=(d=Lt(t))!=null?d:n,u=ft(a,c),l=ji(u)?u.canDeactivate(e,t,i,r):B(c,()=>u(e,t,i,r));return Z(l).pipe(q())});return f(o).pipe(dt())}function Wi(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return f(!0);let s=n.map(o=>{let a=ft(o,e),c=Pi(a)?a.canLoad(t,i):B(e,()=>a(t,i));return Z(c)});return f(s).pipe(dt(),xn(r))}function xn(e){return vr(w(t=>{if(lt(t))throw Tn(e,t)}),C(t=>t===!0))}function Gi(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return f(!0);let s=n.map(o=>{let a=ft(o,e),c=Li(a)?a.canMatch(t,i):B(e,()=>a(t,i));return Z(c)});return f(s).pipe(dt(),xn(r))}var xt=class{constructor(t){this.segmentGroup=t||null}},ue=class extends Error{constructor(t){super(),this.urlTree=t}};function st(e){return gt(new xt(e))}function Qi(e){return gt(new I(4e3,!1))}function Zi(e){return gt(En(!1,E.GuardRejected))}var tr=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return f(r);if(n.numberOfChildren>1||!n.children[g])return Qi(t.redirectTo);n=n.children[g]}}applyRedirectCommands(t,i,r){let n=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i.startsWith("/"))throw new ue(n);return n}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new H(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new I(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},er={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ki(e,t,i,r,n){let s=ur(e,t,i);return s.matched?(r=Ai(t,r),Gi(r,t,i,n).pipe(C(o=>o===!0?s:h({},er)))):f(s)}function ur(e,t,i){var a,c;if(t.path==="**")return Yi(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},er):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Wn)(i,e,t);if(!n)return h({},er);let s={};Object.entries((a=n.posParams)!=null?a:{}).forEach(([u,l])=>{s[u]=l.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:(c=n.posParams)!=null?c:{}}}function Yi(e){return{matched:!0,parameters:e.length>0?hn(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function an(e,t,i,r){return i.length>0&&ts(e,i,r)?{segmentGroup:new m(t,Ji(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&es(e,i,r)?{segmentGroup:new m(e.segments,Xi(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function Xi(e,t,i,r){let n={};for(let s of i)if(he(e,t,s)&&!r[j(s)]){let o=new m([],{});n[j(s)]=o}return h(h({},r),n)}function Ji(e,t){let i={};i[g]=t;for(let r of e)if(r.path===""&&j(r)!==g){let n=new m([],{});i[j(r)]=n}return i}function ts(e,t,i){return i.some(r=>he(e,t,r)&&j(r)!==g)}function es(e,t,i){return i.some(r=>he(e,t,r))}function he(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function rs(e,t,i,r){return j(e)!==r&&(r===g||!he(t,i,e))?!1:ur(t,e,i).matched}function ns(e,t,i){return t.length===0&&!e.children[i]}var rr=class{};function is(e,t,i,r,n,s,o="emptyOnly"){return new nr(e,t,i,r,n,o,s).recognize()}var ss=31,nr=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new tr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,"'".concat(t.segmentGroup,"'"))}recognize(){let t=an(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(C(i=>{let r=new Ot([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},g,this.rootComponentType,null,{}),n=new T(r,i),s=new oe("",n),o=hi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,g).pipe(J(r=>{if(r instanceof ue)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof xt?this.noMatchError(r):r}))}inheritParamsAndData(t,i){let r=t.value,n=sr(r,i,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(s=>this.inheritParamsAndData(s,r))}processSegmentGroup(t,i,r,n){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r):this.processSegment(t,i,r,r.segments,n,!0).pipe(C(s=>s instanceof T?[s]:[]))}processChildren(t,i,r){let n=[];for(let s of Object.keys(r.children))s==="primary"?n.unshift(s):n.push(s);return D(n).pipe(tt(s=>{let o=r.children[s],a=Di(i,s);return this.processSegmentGroup(t,a,o,s)}),wr((s,o)=>(s.push(...o),s)),me(null),Sr(),M(s=>{if(s===null)return st(r);let o=Pn(s);return os(o),f(o)}))}processSegment(t,i,r,n,s,o){return D(i).pipe(tt(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:t,i,a,r,n,s,o).pipe(J(u=>{if(u instanceof xt)return f(null);throw u}))}),q(a=>!!a),J(a=>{if(Un(a))return ns(r,n,s)?f(new rr):st(r);throw a}))}processSegmentAgainstRoute(t,i,r,n,s,o,a){return rs(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o):st(n):st(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=ur(i,n,s);if(!a)return st(i);n.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ss&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,n.redirectTo,u);return this.applyRedirects.lineralizeSegments(n,d).pipe(M(y=>this.processSegment(t,r,i,y.concat(l),o,!1)))}matchSegmentAgainstRoute(t,i,r,n,s){let o=Ki(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),o.pipe(P(a=>{var c;return a.matched?(t=(c=r._injector)!=null?c:t,this.getChildConfig(t,r,n).pipe(P(({routes:u})=>{var _t,qt,fr;let l=(_t=r._loadedInjector)!=null?_t:t,{consumedSegments:d,remainingSegments:y,parameters:v}=a,b=new Ot(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,us(r),j(r),(fr=(qt=r.component)!=null?qt:r._loadedComponent)!=null?fr:null,r,cs(r)),{segmentGroup:k,slicedSegments:z}=an(i,d,y,u);if(z.length===0&&k.hasChildren())return this.processChildren(l,u,k).pipe(C(pt=>pt===null?null:new T(b,pt)));if(u.length===0&&z.length===0)return f(new T(b,[]));let de=j(r)===s;return this.processSegment(l,u,k,z,de?g:s,!0).pipe(C(pt=>new T(b,pt instanceof T?[pt]:[])))}))):st(i)}))}getChildConfig(t,i,r){return i.children?f({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Wi(t,i,r,this.urlSerializer).pipe(M(n=>n?this.configLoader.loadChildren(t,i).pipe(w(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Zi(i))):f({routes:[],injector:t})}};function os(e){e.sort((t,i)=>t.value.outlet===g?-1:i.value.outlet===g?1:t.value.outlet.localeCompare(i.value.outlet))}function as(e){let t=e.value.routeConfig;return t&&t.path===""}function Pn(e){let t=[],i=new Set;for(let r of e){if(!as(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=Pn(r.children);t.push(new T(r.value,n))}return t.filter(r=>!i.has(r))}function us(e){return e.data||{}}function cs(e){return e.resolve||{}}function ls(e,t,i,r,n,s){return M(o=>is(e,t,i,r,o.extractedUrl,n,s).pipe(C(({state:a,tree:c})=>A(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function hs(e,t){return M(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return f(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of $n(c))o.add(u);let a=0;return D(o).pipe(tt(c=>s.has(c)?ds(c,r,e,t):(c.data=sr(c,c.parent,e).resolve,f(void 0))),w(()=>a++),Ce(1),M(c=>a===o.size?f(i):_))})}function $n(e){let t=e.children.map(i=>$n(i)).flat();return[e,...t]}function ds(e,t,i,r){let n=e.routeConfig,s=e._resolve;return(n==null?void 0:n.title)!==void 0&&!Dn(n)&&(s[$t]=n.title),fs(s,e,t,r).pipe(C(o=>(e._resolvedData=o,e.data=sr(e,e.parent,i).resolve,null)))}function fs(e,t,i,r){let n=$e(e);if(n.length===0)return f({});let s={};return D(n).pipe(M(o=>ps(e[o],t,i,r).pipe(q(),w(a=>{s[o]=a}))),Ce(1),Rr(s),J(o=>Un(o)?_:gt(o)))}function ps(e,t,i,r){var a;let n=(a=Lt(t))!=null?a:r,s=ft(e,n),o=s.resolve?s.resolve(t,i):B(n,()=>s(t,i));return Z(o)}function xe(e){return P(t=>{let i=e(t);return i?D(i).pipe(C(()=>t)):f(t)})}var Nn=(()=>{let t=class t{buildTitle(r){var o;let n,s=r.root;for(;s!==void 0;)n=(o=this.getResolvedTitleForRoute(s))!=null?o:n,s=s.children.find(a=>a.outlet===g);return n}getResolvedTitleForRoute(r){return r.data[$t]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>p(gs),providedIn:"root"});let e=t;return e})(),gs=(()=>{let t=class t extends Nn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(V(tn))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zt=new U("",{providedIn:"root",factory:()=>({})}),Pt=new U(""),cr=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Wt)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return f(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=Z(r.loadComponent()).pipe(C(jn),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),Bt(()=>{this.componentLoaders.delete(r)})),s=new pe(n,()=>new F).pipe(fe());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=vs(n,this.compiler,r,this.onLoadEndListener).pipe(Bt(()=>{this.childrenLoaders.delete(n)})),a=new pe(o,()=>new F).pipe(fe());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function vs(e,t,i,r){return Z(e.loadChildren()).pipe(C(jn),M(n=>n instanceof zr||Array.isArray(n)?f(n):D(t.compileModuleAsync(n))),C(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(Pt,[],{optional:!0,self:!0}).flat()),{routes:o.map(ar),injector:s}}))}function ms(e){return e&&typeof e=="object"&&"default"in e}function jn(e){return ms(e)?e.default:e}var lr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>p(Cs),providedIn:"root"});let e=t;return e})(),Cs=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ln=new U(""),kn=new U("");function ys(e,t,i){let r=e.get(kn),n=e.get(Zr);return e.get(it).runOutsideAngular(()=>{if(!n.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=n.startViewTransition(()=>(s(),Rs(e))),{onViewTransitionCreated:c}=r;return c&&B(e,()=>c({transition:a,from:t,to:i})),o})}function Rs(e){return new Promise(t=>{Ie(t,{injector:e})})}var hr=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new F,this.transitionAbortSubject=new F,this.configLoader=p(cr),this.environmentInjector=p(rt),this.urlSerializer=p(Nt),this.rootContexts=p(jt),this.location=p(Ct),this.inputBindingEnabled=p(le,{optional:!0})!==null,this.titleStrategy=p(Nn),this.options=p(zt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(lr),this.createViewTransition=p(Ln,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let r=s=>this.events.next(new qe(s)),n=s=>this.events.next(new Ve(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var s;let n=++this.navigationId;(s=this.transitions)==null||s.next(A(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new O({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(K(o=>o.id!==0),C(o=>A(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let a=!1,c=!1;return f(o).pipe(P(u=>{var y;if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),_;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?A(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=(y=u.extras.onSameUrlNavigation)!=null?y:r.onSameUrlNavigation;if(!l&&d!=="reload"){let v="";return this.events.next(new G(u.id,this.urlSerializer.serialize(u.rawUrl),v,ee.IgnoredSameUrlNavigation)),u.resolve(null),_}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return f(u).pipe(P(v=>{var k,z;let b=(k=this.transitions)==null?void 0:k.getValue();return this.events.next(new ht(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),b!==((z=this.transitions)==null?void 0:z.getValue())?_:Promise.resolve(v)}),ls(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),w(v=>{o.targetSnapshot=v.targetSnapshot,o.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=A(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let b=new re(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(b)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:v,extractedUrl:b,source:k,restoredState:z,extras:de}=u,_t=new ht(v,this.urlSerializer.serialize(b),k,z);this.events.next(_t);let qt=In(this.rootComponentType).snapshot;return this.currentTransition=o=A(h({},u),{targetSnapshot:qt,urlAfterRedirects:b,extras:A(h({},de),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=b,f(o)}else{let v="";return this.events.next(new G(u.id,this.urlSerializer.serialize(u.extractedUrl),v,ee.IgnoredByUrlHandlingStrategy)),u.resolve(null),_}}),w(u=>{let l=new ke(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=o=A(h({},u),{guards:Ti(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),ki(this.environmentInjector,u=>this.events.next(u)),w(u=>{if(o.guardsResult=u.guardsResult,lt(u.guardsResult))throw Tn(this.urlSerializer,u.guardsResult);let l=new ze(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),K(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",E.GuardRejected),!1)),xe(u=>{if(u.guards.canActivateChecks.length)return f(u).pipe(w(l=>{let d=new Fe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),P(l=>{let d=!1;return f(l).pipe(hs(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",E.NoDataFromResolver)}}))}),w(l=>{let d=new _e(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),xe(u=>{let l=d=>{var v;let y=[];(v=d.routeConfig)!=null&&v.loadComponent&&!d.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(d.routeConfig).pipe(w(b=>{d.component=b}),C(()=>{})));for(let b of d.children)y.push(...l(b));return y};return Vt(l(u.targetSnapshot.root)).pipe(me(null),et(1))}),xe(()=>this.afterPreactivation()),P(()=>{var y;let{currentSnapshot:u,targetSnapshot:l}=o,d=(y=this.createViewTransition)==null?void 0:y.call(this,this.environmentInjector,u.root,l.root);return d?D(d).pipe(C(()=>o)):f(o)}),C(u=>{let l=Ri(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=A(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),w(()=>{this.events.next(new Tt)}),Mi(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),et(1),w({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Ir(this.transitionAbortSubject.pipe(w(u=>{throw u}))),Bt(()=>{var u;!a&&!c&&this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),((u=this.currentTransition)==null?void 0:u.id)===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(u=>{var l;if(c=!0,On(u))this.events.next(new W(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),bi(u)?this.events.next(new Et(u.url)):o.resolve(!1);else{this.events.next(new Mt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,(l=o.targetSnapshot)!=null?l:void 0));try{o.resolve(r.errorHandler(u))}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return _}))}))}cancelNavigationTransition(r,n,s){let o=new W(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){var r,n;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var n,s;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==((n=this.currentTransition)==null?void 0:n.extractedUrl.toString())&&!((s=this.currentTransition)!=null&&s.extras.skipLocationChange)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ss(e){return e!==bt}var ws=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>p(bs),providedIn:"root"});let e=t;return e})(),ir=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},bs=(()=>{let t=class t extends ir{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=we(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>p(Is),providedIn:"root"});let e=t;return e})(),Is=(()=>{let t=class t extends zn{constructor(){super(...arguments),this.location=p(Ct),this.urlSerializer=p(Nt),this.options=p(zt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(lr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new H,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=In(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r,n;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(n=(r=this.restoredState())==null?void 0:r.\u0275routerPageId)!=null?n:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof ht)this.stateMemento=this.createStateMemento();else if(r instanceof G)this.rawUrlTree=n.initialUrl;else if(r instanceof re){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(s,n)}}else r instanceof Tt?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):r instanceof W&&(r.code===E.GuardRejected||r.code===E.NoDataFromResolver)?this.restoreHistory(n):r instanceof Mt?this.restoreHistory(n,!0):r instanceof N&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){var n;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(n=r.finalUrl)!=null?n:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=we(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),St=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(St||{});function Fn(e,t){e.events.pipe(K(i=>i instanceof N||i instanceof W||i instanceof Mt||i instanceof G),C(i=>i instanceof N||i instanceof G?St.COMPLETE:(i instanceof W?i.code===E.Redirect||i.code===E.SupersededByNewNavigation:!1)?St.REDIRECTING:St.FAILED),K(i=>i!==St.REDIRECTING),et(1)).subscribe(()=>{t()})}function As(e){throw e}var Ds={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ms={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},L=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r,n;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(Hr),this.stateManager=p(zn),this.options=p(zt,{optional:!0})||{},this.pendingTasks=p(Fr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(hr),this.urlSerializer=p(Nt),this.location=p(Ct),this.urlHandlingStrategy=p(lr),this._events=new F,this.errorHandler=this.options.errorHandler||As,this.navigated=!1,this.routeReuseStrategy=p(ws),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(n=(r=p(Pt,{optional:!0}))==null?void 0:r.flat())!=null?n:[],this.componentInputBindingEnabled=!!p(le,{optional:!0}),this.eventsSubscription=new gr,this.isNgZoneEnabled=p(it)instanceof it&&it.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:s=>{this.console.warn(s)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof W&&n.code!==E.Redirect&&n.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof N)this.navigated=!0;else if(n instanceof Et){let a=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Ss(s.source)};this.scheduleNavigation(a,bt,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Es(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bt,this.stateManager.restoredState())}setUpLocationChangeListener(){var r;(r=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,s)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",s)},0)}))}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s!=null&&s.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(ar),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let y;try{let v=s?s.snapshot:this.routerState.snapshot.root;y=Rn(v)}catch(v){(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),y=this.currentUrlTree.root}return Sn(y,r,d,l!=null?l:null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=lt(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,bt,null,n)}navigate(r,n={skipLocationChange:!1}){return Ts(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch(n){return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},Ds):n===!1?s=h({},Ms):s=n,lt(r))return en(this.currentUrlTree,r,s);let o=this.parseUrl(r);return en(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((y,v)=>{c=y,u=v});let d=this.pendingTasks.add();return Fn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(y=>Promise.reject(y))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ts(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new I(4008,!1)}function Es(e){return!(e instanceof Tt)&&!(e instanceof Et)}var vo=(()=>{let t=class t{constructor(r,n,s,o,a,c){var l;this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new F,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=(l=a.nativeElement.tagName)==null?void 0:l.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(d=>{d instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r!=null?(this.commands=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){var r;(r=this.subscription)==null||r.unsubscribe()}updateHref(){var s;let r=this.urlTree;this.href=r!==null&&this.locationStrategy?(s=this.locationStrategy)==null?void 0:s.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:$r(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(n){return new(n||t)(nt(L),nt(Q),xr("tabindex"),nt(jr),nt(Pr),nt(mt))},t.\u0275dir=Re({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&Vr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&_r("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ht.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Gt],skipLocationChange:[Ht.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Gt],replaceUrl:[Ht.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Gt],routerLink:"routerLink"},standalone:!0,features:[kr,Se]});let e=t;return e})();var ce=class{};var Os=(()=>{let t=class t{constructor(r,n,s,o,a){this.router=r,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(K(r=>r instanceof N),tt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,n){var o,a,c;let s=[];for(let u of n){u.providers&&!u._injector&&(u._injector=Ae(u.providers,r,"Route: ".concat(u.path)));let l=(o=u._injector)!=null?o:r,d=(a=u._loadedInjector)!=null?a:l;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&s.push(this.preloadConfig(l,u)),(u.children||u._loadedRoutes)&&s.push(this.processRoutes(d,(c=u.children)!=null?c:u._loadedRoutes))}return D(s).pipe(ge())}preloadConfig(r,n){return this.preloadingStrategy.preload(n,()=>{let s;n.loadChildren&&n.canLoad===void 0?s=this.loader.loadChildren(r,n):s=f(null);let o=s.pipe(M(a=>{var c;return a===null?f(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes((c=a.injector)!=null?c:r,a.routes))}));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return D([o,a]).pipe(ge())}else return o})}};t.\u0275fac=function(n){return new(n||t)(V(L),V(Wt),V(rt),V(ce),V(cr))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_n=new U(""),Us=(()=>{let t=class t{constructor(r,n,s,o,a={}){this.urlSerializer=r,this.transitions=n,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=p(rt),a.scrollPositionRestoration||(a.scrollPositionRestoration="disabled"),a.anchorScrolling||(a.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(r=>{r instanceof ht?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof N?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof G&&r.code===ee.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof ne&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,n){this.zone.runOutsideAngular(()=>pr(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),Ie(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new ne(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){var r,n;(r=this.routerEventsSubscription)==null||r.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}};t.\u0275fac=function(n){Nr()},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function mo(e,...t){return Ur([{provide:Pt,multi:!0,useValue:e},[],{provide:Q,useFactory:qn,deps:[L]},{provide:Me,multi:!0,useFactory:Vn},t.map(i=>i.\u0275providers)])}function qn(e){return e.routerState.root}function Ft(e,t){return{\u0275kind:e,\u0275providers:t}}function Vn(){let e=p(be);return t=>{var s,o;let i=e.get(Gr);if(t!==i.components[0])return;let r=e.get(L),n=e.get(Bn);e.get(dr)===1&&r.initialNavigation(),(s=e.get(Hn,null,ye.Optional))==null||s.setUpPreloading(),(o=e.get(_n,null,ye.Optional))==null||o.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Bn=new U("",{factory:()=>new F}),dr=new U("",{providedIn:"root",factory:()=>1});function xs(){return Ft(2,[{provide:dr,useValue:0},{provide:De,multi:!0,deps:[be],useFactory:t=>{let i=t.get(Kr,Promise.resolve());return()=>i.then(()=>new Promise(r=>{let n=t.get(L),s=t.get(Bn);Fn(n,()=>{r(!0)}),t.get(hr).afterPreactivation=()=>(r(!0),s.closed?f(void 0):s),n.initialNavigation()}))}}])}function Ps(){return Ft(3,[{provide:De,multi:!0,useFactory:()=>{let t=p(L);return()=>{t.setUpLocationChangeListener()}}},{provide:dr,useValue:2}])}var Hn=new U("");function $s(e){return Ft(0,[{provide:Hn,useExisting:Os},{provide:ce,useExisting:e}])}function Ns(){return Ft(8,[on,{provide:le,useExisting:on}])}function js(e){let t=[{provide:Ln,useValue:ys},{provide:kn,useValue:h({skipNextTransition:!!(e!=null&&e.skipInitialTransition)},e)}];return Ft(9,t)}var un=new U("ROUTER_FORROOT_GUARD"),Ls=[Ct,{provide:Nt,useClass:At},L,jt,{provide:Q,useFactory:qn,deps:[L]},cr,[]],Co=(()=>{let t=class t{constructor(r){}static forRoot(r,n){return{ngModule:t,providers:[Ls,[],{provide:Pt,multi:!0,useValue:r},{provide:un,useFactory:_s,deps:[[L,new Mr,new Tr]]},{provide:zt,useValue:n||{}},n!=null&&n.useHash?zs():Fs(),ks(),n!=null&&n.preloadingStrategy?$s(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?qs(n):[],n!=null&&n.bindToComponentInputs?Ns().\u0275providers:[],n!=null&&n.enableViewTransitions?js().\u0275providers:[],Vs()]}}static forChild(r){return{ngModule:t,providers:[{provide:Pt,multi:!0,useValue:r}]}}};t.\u0275fac=function(n){return new(n||t)(V(un,8))},t.\u0275mod=Or({type:t}),t.\u0275inj=Ar({});let e=t;return e})();function ks(){return{provide:_n,useFactory:()=>{let e=p(Jr),t=p(it),i=p(zt),r=p(hr),n=p(Nt);return i.scrollOffset&&e.setOffset(i.scrollOffset),new Us(n,r,e,t,i)}}}function zs(){return{provide:mt,useClass:Xr}}function Fs(){return{provide:mt,useClass:Yr}}function _s(e){return"guarded"}function qs(e){return[e.initialNavigation==="disabled"?Ps().\u0275providers:[],e.initialNavigation==="enabledBlocking"?xs().\u0275providers:[]]}var cn=new U("");function Vs(){return[{provide:cn,useFactory:Vn},{provide:Me,multi:!0,useExisting:cn}]}export{g as a,Y as b,ht as c,N as d,W as e,G as f,Mt as g,re as h,Q as i,yi as j,L as k,vo as l,mo as m,xs as n,Co as o};