-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-UPR32R27.js
2 lines (2 loc) · 110 KB
/
chunk-UPR32R27.js
1
2
import{$ as Nr,$a as qr,$b as At,A as Ir,Aa as ye,Ab as Jr,B as sn,Ba as jr,Bb as Yr,Ca as pn,Da as Fr,Ea as de,F as X,G as he,Ga as gn,I as Q,Ib as Hr,J as on,Ja as $r,K as me,L as Ar,La as Be,N as ve,Na as B,O as ee,Oa as _r,P as an,Q as Mr,R as Dr,Ra as zr,Rb as yn,Sa as mn,Sb as we,T as Or,Tb as Qr,U as k,Ua as x,Ub as wn,V as Pr,Va as Br,Vb as Tt,W as D,Wa as Vr,Wb as Ct,X as E,Xb as Et,Z as y,Zb as It,_ as Fe,_b as ei,a as p,aa as C,ab as Wr,b as P,ba as cn,bb as vn,ca as v,cb as St,cc as ti,da as h,dc as Rn,ea as yt,ec as ni,fa as xr,fc as ri,ga as un,gb as Gr,gc as N,ha as $e,hc as ii,i as en,ia as wt,ic as Re,j as Sr,ja as Ur,jc as si,k as Tr,ka as _e,kc as bn,l as tn,la as Rt,lc as Ve,m as nn,ma as ze,mc as Mt,n as rn,na as kr,o as Y,oa as te,p as F,pa as z,q as H,qa as bt,qb as Kr,r as O,s as g,t as Le,ta as ln,u as Cr,ua as Lr,ub as Zr,v as Er,va as hn,vc as oi,w as b,wa as dn,x as vt,xc as Sn,y as U,yc as Tn,z as je,za as fn,zb as Xr,zc as Dt}from"./chunk-UVJMIVZR.js";var We=class{},Ge=class{},J=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var In=class{encodeKey(e){return ai(e)}encodeValue(e){return ai(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Ts(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],u=i.get(o)||[];u.push(a),i.set(o,u)}),i}var Cs=/%(\d[a-f0-9])/gi,Es={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ai(t){return encodeURIComponent(t).replace(Cs,(e,i)=>Es[i]??e)}function Ot(t){return`${t}`}var re=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new In,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ts(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Ot):[Ot(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Ot(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Ot(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var An=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Is(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ci(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ui(t){return typeof Blob<"u"&&t instanceof Blob}function li(t){return typeof FormData<"u"&&t instanceof FormData}function As(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var qe=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(Is(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new J,this.context??=new An,!this.params)this.params=new re,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),u=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+u+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ci(this.body)||ui(this.body)||li(this.body)||As(this.body)?this.body:this.body instanceof re?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||li(this.body)?null:ui(this.body)?this.body.type||null:ci(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof re?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,c=e.headers||this.headers,l=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((f,R)=>f.set(R,e.setHeaders[R]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,R)=>f.set(R,e.setParams[R]),l)),new t(i,n,o,{params:l,headers:c,context:d,reportProgress:u,responseType:r,withCredentials:a,transferCache:s})}},ie=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ie||{}),Ke=class{constructor(e,i=Xe.Ok,n="OK"){this.headers=e.headers||new J,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Pt=class t extends Ke{constructor(e={}){super(e),this.type=ie.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ze=class t extends Ke{constructor(e={}){super(e),this.type=ie.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ne=class extends Ke{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Xe=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Xe||{});function Cn(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ms=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof qe)o=n;else{let c;s.headers instanceof J?c=s.headers:c=new J(s.headers);let l;s.params&&(s.params instanceof re?l=s.params:l=new re({fromObject:s.params})),o=new qe(n,r,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=g(o).pipe(Q(c=>this.handler.handle(c)));if(n instanceof qe||s.observe==="events")return a;let u=a.pipe(X(c=>c instanceof Ze));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(b(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(b(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(b(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(b(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new re().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,Cn(s,r))}post(n,r,s={}){return this.request("POST",n,Cn(s,r))}put(n,r,s={}){return this.request("PUT",n,Cn(s,r))}};e.\u0275fac=function(r){return new(r||e)(v(We))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ds=/^\)\]\}',?\n/,Os="X-Request-URL";function hi(t){if(t.url)return t.url;let e=Os.toLocaleLowerCase();return t.headers.get(e)}var En=(()=>{let e=class e{constructor(){this.fetchImpl=h(Mn,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=h(x)}handle(n){return new tn(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(Dn,o=>r.error(new ne({error:o}))),()=>s.abort()})}doRequest(n,r,s){return en(this,null,function*(){let o=this.createRequestInit(n),a;try{let I=this.fetchImpl(n.urlWithParams,p({signal:r},o));Ps(I),s.next({type:ie.Sent}),a=yield I}catch(I){s.error(new ne({error:I,status:I.status??0,statusText:I.statusText,url:n.urlWithParams,headers:I.headers}));return}let u=new J(a.headers),c=a.statusText,l=hi(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&s.next(new Pt({headers:u,status:d,statusText:c,url:l})),a.body){let I=a.headers.get("content-length"),_=[],T=a.body.getReader(),w=0,W,ge,M=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>en(this,null,function*(){for(;;){let{done:le,value:ke}=yield T.read();if(le)break;if(_.push(ke),w+=ke.length,n.reportProgress){ge=n.responseType==="text"?(ge??"")+(W??=new TextDecoder).decode(ke,{stream:!0}):void 0;let br=()=>s.next({type:ie.DownloadProgress,total:I?+I:void 0,loaded:w,partialText:ge});M?M.run(br):br()}}}));let Ue=this.concatChunks(_,w);try{let le=a.headers.get("Content-Type")??"";f=this.parseBody(n,Ue,le)}catch(le){s.error(new ne({error:le,headers:new J(a.headers),status:a.status,statusText:a.statusText,url:hi(a)??n.urlWithParams}));return}}d===0&&(d=f?Xe.Ok:0),d>=200&&d<300?(s.next(new Ze({body:f,headers:u,status:d,statusText:c,url:l})),s.complete()):s.error(new ne({error:f,headers:u,status:d,statusText:c,url:l}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Ds,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Mn=class{};function Dn(){}function Ps(t){t.then(Dn,Dn)}function Ns(t,e){return e(t)}function xs(t,e,i){return(n,r)=>z(i,()=>e(n,s=>t(s,r)))}var gi=new C(""),Us=new C(""),mi=new C("");var di=(()=>{let e=class e extends We{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=h(St);let s=h(mi,{optional:!0});this.backend=s??n}handle(n){if(this.chain===null){let s=Array.from(new Set([...this.injector.get(gi),...this.injector.get(Us,[])]));this.chain=s.reduceRight((o,a)=>xs(o,a,this.injector),Ns)}let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ve(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(v(Ge),v(te))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var ks=/^\)\]\}',?\n/;function Ls(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var fi=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?O(r.\u0275loadImpl()):g(null)).pipe(k(()=>new tn(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((T,w)=>a.setRequestHeader(T,w.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let T=n.detectContentTypeHeader();T!==null&&a.setRequestHeader("Content-Type",T)}if(n.responseType){let T=n.responseType.toLowerCase();a.responseType=T!=="json"?T:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let T=a.statusText||"OK",w=new J(a.getAllResponseHeaders()),W=Ls(a)||n.url;return c=new Pt({headers:w,status:a.status,statusText:T,url:W}),c},d=()=>{let{headers:T,status:w,statusText:W,url:ge}=l(),M=null;w!==Xe.NoContent&&(M=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=M?Xe.Ok:0);let Ue=w>=200&&w<300;if(n.responseType==="json"&&typeof M=="string"){let le=M;M=M.replace(ks,"");try{M=M!==""?JSON.parse(M):null}catch(ke){M=le,Ue&&(Ue=!1,M={error:ke,text:M})}}Ue?(o.next(new Ze({body:M,headers:T,status:w,statusText:W,url:ge||void 0})),o.complete()):o.error(new ne({error:M,headers:T,status:w,statusText:W,url:ge||void 0}))},f=T=>{let{url:w}=l(),W=new ne({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});o.error(W)},R=!1,I=T=>{R||(o.next(l()),R=!0);let w={type:ie.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(w.total=T.total),n.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),o.next(w)},_=T=>{let w={type:ie.UploadProgress,loaded:T.loaded};T.lengthComputable&&(w.total=T.total),o.next(w)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",I),u!==null&&a.upload&&a.upload.addEventListener("progress",_)),a.send(u),o.next({type:ie.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",I),u!==null&&a.upload&&a.upload.removeEventListener("progress",_)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(v(Dt))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),vi=new C(""),js="XSRF-TOKEN",Fs=new C("",{providedIn:"root",factory:()=>js}),$s="X-XSRF-TOKEN",_s=new C("",{providedIn:"root",factory:()=>$s}),Nt=class{},zs=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mt(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(v(N),v(de),v(Fs))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function Bs(t,e){let i=t.url.toLowerCase();if(!h(vi)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=h(Nt).getToken(),r=h(_s);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var yi=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(yi||{});function Vs(t,e){return{\u0275kind:t,\u0275providers:e}}function Ec(...t){let e=[Ms,fi,di,{provide:We,useExisting:di},{provide:Ge,useExisting:fi},{provide:gi,useValue:Bs,multi:!0},{provide:vi,useValue:!0},{provide:Nt,useClass:zs}];for(let i of t)e.push(...i.\u0275providers);return ze(e)}function Ic(){return Vs(yi.Fetch,[En,{provide:Ge,useExisting:En},{provide:mi,useExisting:En}])}var Nn=class extends ri{constructor(){super(...arguments),this.supportsDOMEvents=!0}},xn=class t extends Nn{static makeCurrent(){ni(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=qs();return i==null?null:Ws(i)}resetBaseElement(){Je=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Mt(document.cookie,e)}},Je=null;function qs(){return Je=Je||document.querySelector("base"),Je?Je.getAttribute("href"):null}function Ws(t){return new URL(t,document.baseURI).pathname}var Gs=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),xt=new C(""),Si=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(v(xt),v(x))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ye=class{constructor(e){this._doc=e}},On="ng-app-id",Ti=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Sn(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${On}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(On),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(On,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(v(N),v(pn),v(gn,8),v(de))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Pn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ln=/%COMP%/g,Ci="%COMP%",Ks=`_nghost-${Ci}`,Zs=`_ngcontent-${Ci}`,Xs=!0,Js=new C("",{providedIn:"root",factory:()=>Xs});function Ys(t){return Zs.replace(Ln,t)}function Hs(t){return Ks.replace(Ln,t)}function Ei(t,e){return e.map(i=>i.replace(Ln,t))}var wi=(()=>{let e=class e{constructor(n,r,s,o,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Sn(u),this.defaultRenderer=new He(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===$e.ShadowDom&&(r=P(p({},r),{encapsulation:$e.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof Ut?s.applyToHost(n):s instanceof Qe&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(r.encapsulation){case $e.Emulated:o=new Ut(c,l,r,this.appId,d,a,u,f);break;case $e.ShadowDom:return new Un(c,l,n,r,a,u,this.nonce,f);default:o=new Qe(c,l,r,d,a,u,f);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(v(Si),v(Ti),v(pn),v(Js),v(N),v(de),v(x),v(gn))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),He=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Pn[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Ri(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Ri(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new E(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=Pn[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Pn[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Be.DashCase|Be.Important)?e.style.setProperty(i,n,r&Be.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=Rn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Ri(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Un=class extends He{constructor(e,i,n,r,s,o,a,u){super(e,s,o,u),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ei(r.id,r.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Qe=class extends He{constructor(e,i,n,r,s,o,a,u){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?Ei(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ut=class extends Qe{constructor(e,i,n,r,s,o,a,u){let c=r+"-"+n.id;super(e,i,n,s,o,a,u,c),this.contentAttr=Ys(c),this.hostAttr=Hs(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},Qs=(()=>{let e=class e extends Ye{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(v(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),bi=["alt","control","meta","shift"],eo={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},to={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},no=(()=>{let e=class e extends Ye{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rn().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),bi.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let s=eo[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),bi.forEach(a=>{if(a!==s){let u=to[a];u(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(v(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function ru(t,e){return ei(p({rootComponent:t},ro(e)))}function ro(t){return{appProviders:[...co,...t?.providers??[]],platformProviders:ao}}function io(){xn.makeCurrent()}function so(){return new dn}function oo(){return jr(document),document}var ao=[{provide:de,useValue:oi},{provide:Fr,useValue:io,multi:!0},{provide:N,useFactory:oo,deps:[]}];var co=[{provide:kr,useValue:"root"},{provide:dn,useFactory:so,deps:[]},{provide:xt,useClass:Qs,multi:!0,deps:[N,x,de]},{provide:xt,useClass:no,multi:!0,deps:[N]},wi,Ti,Si,{provide:zr,useExisting:wi},{provide:Dt,useClass:Gs,deps:[]},[]];var Ii=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(v(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var uo={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},kn=new C("HammerGestureConfig"),Ai=new C("HammerLoader"),lo=(()=>{let e=class e{constructor(){this.events=[],this.overrides={}}buildHammer(n){let r=new Hammer(n,this.options);r.get("pinch").set({enable:!0}),r.get("rotate").set({enable:!0});for(let s in this.overrides)r.get(s).set(this.overrides[s]);return r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),ho=(()=>{let e=class e extends Ye{constructor(n,r,s,o){super(n),this._config=r,this.console=s,this.loader=o,this._loaderPromise=null}supports(n){return!(!uo.hasOwnProperty(n.toLowerCase())&&!this.isCustomEvent(n)||!window.Hammer&&!this.loader)}addEventListener(n,r,s){let o=this.manager.getZone();if(r=r.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let a=!1,u=()=>{a=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{if(!window.Hammer){u=()=>{};return}a||(u=this.addEventListener(n,r,s))}).catch(()=>{u=()=>{}})),()=>{u()}}return o.runOutsideAngular(()=>{let a=this._config.buildHammer(n),u=function(c){o.runGuarded(function(){s(c)})};return a.on(r,u),()=>{a.off(r,u),typeof a.destroy=="function"&&a.destroy()}})}isCustomEvent(n){return this._config.events.indexOf(n)>-1}};e.\u0275fac=function(r){return new(r||e)(v(N),v(kn),v(we),v(Ai,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),iu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=_e({type:e}),e.\u0275inj=Fe({providers:[{provide:xt,useClass:ho,multi:!0,deps:[N,kn,we,[new yt,Ai]]},{provide:kn,useClass:lo,deps:[]}]});let t=e;return t})();var m="primary",ft=Symbol("RouteTitle"),zn=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Ee(t){return new zn(t)}function po(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function go(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!G(t[i],e[i]))return!1;return!0}function G(t,e){let i=t?Bn(t):void 0,n=e?Bn(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!ji(t[r],e[r]))return!1;return!0}function Bn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ji(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,s)=>n[s]===r)}else return t===e}function Fi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Cr(t)?t:Qr(t)?O(Promise.resolve(t)):g(t)}var mo={exact:_i,subset:zi},$i={exact:vo,subset:yo,ignored:()=>!0};function Mi(t,e,i){return mo[i.paths](t.root,e.root,i.matrixParams)&&$i[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function vo(t,e){return G(t,e)}function _i(t,e,i){if(!pe(t.segments,e.segments)||!jt(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!_i(t.children[n],e.children[n],i))return!1;return!0}function yo(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>ji(t[i],e[i]))}function zi(t,e,i){return Bi(t,e,e.segments,i)}function Bi(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!pe(r,i)||e.hasChildren()||!jt(r,i,n))}else if(t.segments.length===i.length){if(!pe(t.segments,i)||!jt(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!zi(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!pe(t.segments,r)||!jt(t.segments,r,n)||!t.children[m]?!1:Bi(t.children[m],e,s,n)}}function jt(t,e,i){return e.every((n,r)=>$i[i](t[r].parameters,n.parameters))}var se=class{constructor(e=new S([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ee(this.queryParams),this._queryParamMap}toString(){return bo.serialize(this)}},S=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ft(this)}},fe=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ee(this.parameters),this._parameterMap}toString(){return qi(this)}};function wo(t,e){return pe(t,e)&&t.every((i,n)=>G(i.parameters,e[n].parameters))}function pe(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Ro(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===m&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==m&&(i=i.concat(e(r,n)))}),i}var Pe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>new ot,providedIn:"root"});let t=e;return t})(),ot=class{parse(e){let i=new qn(e);return new se(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${et(e.root,!0)}`,n=Co(e.queryParams),r=typeof e.fragment=="string"?`#${So(e.fragment)}`:"";return`${i}${n}${r}`}},bo=new ot;function Ft(t){return t.segments.map(e=>qi(e)).join("/")}function et(t,e){if(!t.hasChildren())return Ft(t);if(e){let i=t.children[m]?et(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==m&&n.push(`${r}:${et(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Ro(t,(n,r)=>r===m?[et(t.children[m],!1)]:[`${r}:${et(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${Ft(t)}/${i[0]}`:`${Ft(t)}/(${i.join("//")})`}}function Vi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kt(t){return Vi(t).replace(/%3B/gi,";")}function So(t){return encodeURI(t)}function Vn(t){return Vi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $t(t){return decodeURIComponent(t)}function Di(t){return $t(t.replace(/\+/g,"%20"))}function qi(t){return`${Vn(t.path)}${To(t.parameters)}`}function To(t){return Object.entries(t).map(([e,i])=>`;${Vn(e)}=${Vn(i)}`).join("")}function Co(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${kt(i)}=${kt(r)}`).join("&"):`${kt(i)}=${kt(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var Eo=/^[^\/()?;#]+/;function jn(t){let e=t.match(Eo);return e?e[0]:""}var Io=/^[^\/()?;=#]+/;function Ao(t){let e=t.match(Io);return e?e[0]:""}var Mo=/^[^=?&#]+/;function Do(t){let e=t.match(Mo);return e?e[0]:""}var Oo=/^[^&#]+/;function Po(t){let e=t.match(Oo);return e?e[0]:""}var qn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[m]=new S(e,i)),n}parseSegment(){let e=jn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(e),new fe($t(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Ao(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=jn(this.remaining);r&&(n=r,this.capture(n))}e[$t(i)]=$t(n)}parseQueryParam(e){let i=Do(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=Po(this.remaining);o&&(n=o,this.capture(n))}let r=Di(i),s=Di(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=jn(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new E(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[m]:new S([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new E(4011,!1)}};function Wi(t){return t.segments.length>0?new S([],{[m]:t}):t}function Gi(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=Gi(r);if(n===m&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new S(t.segments,e);return No(i)}function No(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new S(t.segments.concat(e.segments),e.children)}return t}function Ie(t){return t instanceof se}function xo(t,e,i=null,n=null){let r=Ki(t);return Zi(r,e,i,n)}function Ki(t){let e;function i(s){let o={};for(let u of s.children){let c=i(u);o[u.outlet]=c}let a=new S(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=Wi(n);return e??r}function Zi(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Fn(r,r,r,i,n);let s=Uo(e);if(s.toRoot())return Fn(r,r,new S([],{}),i,n);let o=ko(s,r,t),a=o.processChildren?rt(o.segmentGroup,o.index,s.commands):Ji(o.segmentGroup,o.index,s.commands);return Fn(r,o.segmentGroup,a,i,n)}function _t(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function at(t){return typeof t=="object"&&t!=null&&t.outlets}function Fn(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===e?o=i:o=Xi(t,e,i);let a=Wi(Gi(o));return new se(a,s,r)}function Xi(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=Xi(s,e,i)}),new S(t.segments,n)}var zt=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&_t(n[0]))throw new E(4003,!1);let r=n.find(at);if(r&&r!==Fi(n))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Uo(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new zt(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new zt(i,e,n)}var Te=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function ko(t,e,i){if(t.isAbsolute)return new Te(e,!0,0);if(!i)return new Te(e,!1,NaN);if(i.parent===null)return new Te(i,!0,0);let n=_t(t.commands[0])?0:1,r=i.segments.length-1+n;return Lo(i,r,t.numberOfDoubleDots)}function Lo(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new E(4005,!1);r=n.segments.length}return new Te(n,!1,r-s)}function jo(t){return at(t[0])?t[0].outlets:{[m]:t}}function Ji(t,e,i){if(t??=new S([],{}),t.segments.length===0&&t.hasChildren())return rt(t,e,i);let n=Fo(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new S(t.segments.slice(0,n.pathIndex),{});return s.children[m]=new S(t.segments.slice(n.pathIndex),t.children),rt(s,0,r)}else return n.match&&r.length===0?new S(t.segments,{}):n.match&&!t.hasChildren()?Wn(t,e,i):n.match?rt(t,0,r):Wn(t,e,i)}function rt(t,e,i){if(i.length===0)return new S(t.segments,{});{let n=jo(i),r={};if(Object.keys(n).some(s=>s!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=rt(t.children[m],e,i);return new S(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Ji(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new S(t.segments,r)}}function Fo(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;let o=t.segments[r],a=i[n];if(at(a))break;let u=`${a}`,c=n<i.length-1?i[n+1]:null;if(r>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Pi(u,c,o))return s;n+=2}else{if(!Pi(u,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Wn(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(at(s)){let u=$o(s.outlets);return new S(n,u)}if(r===0&&_t(i[0])){let u=t.segments[e];n.push(new fe(u.path,Oi(i[0]))),r++;continue}let o=at(s)?s.outlets[m]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&_t(a)?(n.push(new fe(o,Oi(a))),r+=2):(n.push(new fe(o,{})),r++)}return new S(n,{})}function $o(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Wn(new S([],{}),0,n))}),e}function Oi(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function Pi(t,e,i){return t==i.path&&G(e,i.parameters)}var it="imperative",A=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(A||{}),$=class{constructor(e,i){this.id=e,this.url=i}},Ae=class extends ${constructor(e,i,n="imperative",r=null){super(e,i),this.type=A.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},V=class extends ${constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=A.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},j=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(j||{}),Bt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Bt||{}),oe=class extends ${constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=A.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ae=class extends ${constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=A.NavigationSkipped}},Me=class extends ${constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=A.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vt=class extends ${constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=A.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gn=class extends ${constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=A.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kn=class extends ${constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=A.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Zn=class extends ${constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=A.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xn=class extends ${constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=A.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jn=class{constructor(e){this.route=e,this.type=A.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Yn=class{constructor(e){this.route=e,this.type=A.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Hn=class{constructor(e){this.snapshot=e,this.type=A.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qn=class{constructor(e){this.snapshot=e,this.type=A.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},er=class{constructor(e){this.snapshot=e,this.type=A.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tr=class{constructor(e){this.snapshot=e,this.type=A.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qt=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=A.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},ct=class{},ut=class{constructor(e){this.url=e}};var nr=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new nr,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=rr(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=rr(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=ir(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return ir(e,this._root).map(i=>i.value)}};function rr(t,e){if(t===e.value)return e;for(let i of e.children){let n=rr(t,i);if(n)return n}return null}function ir(t,e){if(t===e.value)return[e];for(let i of e.children){let n=ir(t,i);if(n.length)return n.unshift(e),n}return[]}var L=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Se(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Gt=class extends Wt{constructor(e,i){super(e),this.snapshot=i,pr(this,e)}toString(){return this.snapshot.toString()}};function Yi(t){let e=_o(t),i=new F([new fe("",{})]),n=new F({}),r=new F({}),s=new F({}),o=new F(""),a=new ce(i,n,s,o,r,m,t,e.root);return a.snapshot=e.root,new Gt(new L(a,[]),e)}function _o(t){let e={},i={},n={},r="",s=new lt([],e,n,r,i,m,t,null,{});return new Kt("",new L(s,[]))}var ce=class{constructor(e,i,n,r,s,o,a,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(b(c=>c[ft]))??g(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,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(){return this._paramMap??=this.params.pipe(b(e=>Ee(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(e=>Ee(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function fr(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:p(p({},e.params),t.params),data:p(p({},e.data),t.data),resolve:p(p(p(p({},t.data),e.data),r?.data),t._resolvedData)}:n={params:p({},t.params),data:p({},t.data),resolve:p(p({},t.data),t._resolvedData??{})},r&&Qi(r)&&(n.resolve[ft]=r.title),n}var lt=class{get title(){return this.data?.[ft]}constructor(e,i,n,r,s,o,a,u,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ee(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ee(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Kt=class extends Wt{constructor(e,i){super(i),this.url=e,pr(this,i)}toString(){return Hi(this._root)}};function pr(t,e){e.value._routerState=t,e.children.forEach(i=>pr(t,i))}function Hi(t){let e=t.children.length>0?` { ${t.children.map(Hi).join(", ")} } `:"";return`${t.value}${e}`}function $n(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,G(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),G(e.params,i.params)||t.paramsSubject.next(i.params),go(e.url,i.url)||t.urlSubject.next(i.url),G(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function sr(t,e){let i=G(t.params,e.params)&&wo(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||sr(t.parent,e.parent))}function Qi(t){return typeof t.title=="string"||t.title===null}var zo=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new ye,this.deactivateEvents=new ye,this.attachEvents=new ye,this.detachEvents=new ye,this.parentContexts=h(pt),this.location=h(Vr),this.changeDetector=h(It),this.environmentInjector=h(te),this.inputBinder=h(Yt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new or(n,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Rt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[bt]});let t=e;return t})(),or=class{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n,this.__ngOutletInjector=!0}get(e,i){return e===ce?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},Yt=new C(""),Ni=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,s=vt([r.queryParams,r.params,r.data]).pipe(k(([o,a,u],c)=>(u=p(p(p({},o),a),u),c===0?g(u):Promise.resolve(u)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=ti(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function Bo(t,e,i){let n=ht(t,e._root,i?i._root:void 0);return new Gt(n,e)}function ht(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=Vo(t,e,i);return new L(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ht(t,a)),o}}let n=qo(e.value),r=e.children.map(s=>ht(t,s));return new L(n,r)}}function Vo(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return ht(t,n,r);return ht(t,n)})}function qo(t){return new ce(new F(t.url),new F(t.params),new F(t.queryParams),new F(t.fragment),new F(t.data),t.outlet,t.component,t)}var es="ngNavigationCancelingError";function ts(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Ie(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=ns(!1,j.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function ns(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[es]=!0,i.cancellationCode=e,i}function Wo(t){return rs(t)&&Ie(t.url)}function rs(t){return!!t&&t[es]}var Go=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ur({type:e,selectors:[["ng-component"]],standalone:!0,features:[Hr],decls:1,vars:0,template:function(r,s){r&1&&Kr(0,"router-outlet")},dependencies:[zo],encapsulation:2});let t=e;return t})();function Ko(t,e){return t.providers&&!t._injector&&(t._injector=vn(t.providers,e,`Route: ${t.path}`)),t._injector??e}function gr(t){let e=t.children&&t.children.map(gr),i=e?P(p({},t),{children:e}):p({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=Go),i}function K(t){return t.outlet||m}function Zo(t,e){let i=t.filter(n=>K(n)===e);return i.push(...t.filter(n=>K(n)!==e)),i}function gt(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Xo=(t,e,i,n)=>b(r=>(new ar(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),ar=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),$n(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Se(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Se(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Se(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Se(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new tr(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Qn(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if($n(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),$n(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=gt(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},Zt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ce=class{constructor(e,i){this.component=e,this.route=i}};function Jo(t,e,i){let n=t._root,r=e?e._root:null;return tt(n,r,i,[n.value])}function Yo(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Ne(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Nr(t)?t:e.get(t):n}function tt(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Se(e);return t.children.forEach(o=>{Ho(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>st(a,i.getContext(o),r)),r}function Ho(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Qo(o,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Zt(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?tt(t,e,a?a.children:null,n,r):tt(t,e,i,n,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ce(a.outlet.component,o))}else o&&st(e,a,r),r.canActivateChecks.push(new Zt(n)),s.component?tt(t,null,a?a.children:null,n,r):tt(t,null,i,n,r);return r}function Qo(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!pe(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pe(t.url,e.url)||!G(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!sr(t,e)||!G(t.queryParams,e.queryParams);case"paramsChange":default:return!sr(t,e)}}function st(t,e,i){let n=Se(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?st(o,e.children.getContext(s),i):st(o,null,i):st(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Ce(e.outlet.component,r)):i.canDeactivateChecks.push(new Ce(null,r)):i.canDeactivateChecks.push(new Ce(null,r))}function mt(t){return typeof t=="function"}function ea(t){return typeof t=="boolean"}function ta(t){return t&&mt(t.canLoad)}function na(t){return t&&mt(t.canActivate)}function ra(t){return t&&mt(t.canActivateChild)}function ia(t){return t&&mt(t.canDeactivate)}function sa(t){return t&&mt(t.canMatch)}function is(t){return t instanceof Er||t?.name==="EmptyError"}var Lt=Symbol("INITIAL_VALUE");function De(){return k(t=>vt(t.map(e=>e.pipe(me(1),Or(Lt)))).pipe(b(e=>{for(let i of e)if(i!==!0){if(i===Lt)return Lt;if(i===!1||i instanceof se)return i}return!0}),X(e=>e!==Lt),me(1)))}function oa(t,e){return U(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?g(P(p({},i),{guardsResult:!0})):aa(o,n,r,t).pipe(U(a=>a&&ea(a)?ca(n,s,t,e):g(a)),b(a=>P(p({},i),{guardsResult:a})))})}function aa(t,e,i,n){return O(t).pipe(U(r=>fa(r.component,r.route,i,e,n)),ee(r=>r!==!0,!0))}function ca(t,e,i,n){return O(e).pipe(Q(r=>Ir(la(r.route.parent,n),ua(r.route,n),da(t,r.path,i),ha(t,r.route,i))),ee(r=>r!==!0,!0))}function ua(t,e){return t!==null&&e&&e(new er(t)),g(!0)}function la(t,e){return t!==null&&e&&e(new Hn(t)),g(!0)}function ha(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let r=n.map(s=>sn(()=>{let o=gt(e)??i,a=Ne(s,o),u=na(a)?a.canActivate(e,t):z(o,()=>a(e,t));return ue(u).pipe(ee())}));return g(r).pipe(De())}function da(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Yo(o)).filter(o=>o!==null).map(o=>sn(()=>{let a=o.guards.map(u=>{let c=gt(o.node)??i,l=Ne(u,c),d=ra(l)?l.canActivateChild(n,t):z(c,()=>l(n,t));return ue(d).pipe(ee())});return g(a).pipe(De())}));return g(s).pipe(De())}function fa(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return g(!0);let o=s.map(a=>{let u=gt(e)??r,c=Ne(a,u),l=ia(c)?c.canDeactivate(t,e,i,n):z(u,()=>c(t,e,i,n));return ue(l).pipe(ee())});return g(o).pipe(De())}function pa(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return g(!0);let s=r.map(o=>{let a=Ne(o,t),u=ta(a)?a.canLoad(e,i):z(t,()=>a(e,i));return ue(u)});return g(s).pipe(De(),ss(n))}function ss(t){return Tr(D(e=>{if(Ie(e))throw ts(t,e)}),b(e=>e===!0))}function ga(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return g(!0);let s=r.map(o=>{let a=Ne(o,t),u=sa(a)?a.canMatch(e,i):z(t,()=>a(e,i));return ue(u)});return g(s).pipe(De(),ss(n))}var dt=class{constructor(e){this.segmentGroup=e||null}},Xt=class extends Error{constructor(e){super(),this.urlTree=e}};function be(t){return Le(new dt(t))}function ma(t){return Le(new E(4e3,!1))}function va(t){return Le(ns(!1,j.GuardRejected))}var cr=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return g(n);if(r.numberOfChildren>1||!r.children[m])return ma(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new Xt(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new se(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,n,r)}),new S(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new E(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},ur={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ya(t,e,i,n,r){let s=mr(t,e,i);return s.matched?(n=Ko(e,n),ga(n,e,i,r).pipe(b(o=>o===!0?s:p({},ur)))):g(s)}function mr(t,e,i){if(e.path==="**")return wa(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?p({},ur):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||po)(i,t,e);if(!r)return p({},ur);let s={};Object.entries(r.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=r.consumed.length>0?p(p({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function wa(t){return{matched:!0,parameters:t.length>0?Fi(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xi(t,e,i,n){return i.length>0&&Sa(t,i,n)?{segmentGroup:new S(e,ba(n,new S(i,t.children))),slicedSegments:[]}:i.length===0&&Ta(t,i,n)?{segmentGroup:new S(t.segments,Ra(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new S(t.segments,t.children),slicedSegments:i}}function Ra(t,e,i,n){let r={};for(let s of i)if(Ht(t,e,s)&&!n[K(s)]){let o=new S([],{});r[K(s)]=o}return p(p({},n),r)}function ba(t,e){let i={};i[m]=e;for(let n of t)if(n.path===""&&K(n)!==m){let r=new S([],{});i[K(n)]=r}return i}function Sa(t,e,i){return i.some(n=>Ht(t,e,n)&&K(n)!==m)}function Ta(t,e,i){return i.some(n=>Ht(t,e,n))}function Ht(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Ca(t,e,i,n){return K(t)!==n&&(n===m||!Ht(e,i,t))?!1:mr(e,t,i).matched}function Ea(t,e,i){return e.length===0&&!t.children[i]}var lr=class{};function Ia(t,e,i,n,r,s,o="emptyOnly"){return new hr(t,e,i,n,r,o,s).recognize()}var Aa=31,hr=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new cr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new E(4002,`'${e.segmentGroup}'`)}recognize(){let e=xi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(b(i=>{let n=new lt([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new L(n,i),s=new Kt("",r),o=xo(n,[],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(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(he(n=>{if(n instanceof Xt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof dt?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=fr(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(b(s=>s instanceof L?[s]:[]))}processChildren(e,i,n){let r=[];for(let s of Object.keys(n.children))s==="primary"?r.unshift(s):r.push(s);return O(r).pipe(Q(s=>{let o=n.children[s],a=Zo(i,s);return this.processSegmentGroup(e,a,o,s)}),Dr((s,o)=>(s.push(...o),s)),on(null),Mr(),U(s=>{if(s===null)return be(n);let o=os(s);return Ma(o),g(o)}))}processSegment(e,i,n,r,s,o){return O(i).pipe(Q(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,s,o).pipe(he(u=>{if(u instanceof dt)return g(null);throw u}))),ee(a=>!!a),he(a=>{if(is(a))return Ea(n,r,s)?g(new lr):be(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,s,o,a){return Ca(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o):be(r):be(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=mr(i,r,s);if(!a)return be(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Aa&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,d).pipe(U(f=>this.processSegment(e,n,i,f.concat(l),o,!1)))}matchSegmentAgainstRoute(e,i,n,r,s){let o=ya(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),o.pipe(k(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(k(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,R=new lt(l,f,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Oa(n),K(n),n.component??n._loadedComponent??null,n,Pa(n)),{segmentGroup:I,slicedSegments:_}=xi(i,l,d,u);if(_.length===0&&I.hasChildren())return this.processChildren(c,u,I).pipe(b(w=>w===null?null:new L(R,w)));if(u.length===0&&_.length===0)return g(new L(R,[]));let T=K(n)===s;return this.processSegment(c,u,I,_,T?m:s,!0).pipe(b(w=>new L(R,w instanceof L?[w]:[])))}))):be(i)))}getChildConfig(e,i,n){return i.children?g({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?g({routes:i._loadedRoutes,injector:i._loadedInjector}):pa(e,i,n,this.urlSerializer).pipe(U(r=>r?this.configLoader.loadChildren(e,i).pipe(D(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):va(i))):g({routes:[],injector:e})}};function Ma(t){t.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Da(t){let e=t.value.routeConfig;return e&&e.path===""}function os(t){let e=[],i=new Set;for(let n of t){if(!Da(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=os(n.children);e.push(new L(n.value,r))}return e.filter(n=>!i.has(n))}function Oa(t){return t.data||{}}function Pa(t){return t.resolve||{}}function Na(t,e,i,n,r,s){return U(o=>Ia(t,e,i,n,o.extractedUrl,r,s).pipe(b(({state:a,tree:u})=>P(p({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function xa(t,e){return U(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return g(i);let s=new Set(r.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of as(u))o.add(c);let a=0;return O(o).pipe(Q(u=>s.has(u)?Ua(u,n,t,e):(u.data=fr(u,u.parent,t).resolve,g(void 0))),D(()=>a++),an(1),U(u=>a===o.size?g(i):H))})}function as(t){let e=t.children.map(i=>as(i)).flat();return[t,...e]}function Ua(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!Qi(r)&&(s[ft]=r.title),ka(s,t,e,n).pipe(b(o=>(t._resolvedData=o,t.data=fr(t,t.parent,i).resolve,null)))}function ka(t,e,i,n){let r=Bn(t);if(r.length===0)return g({});let s={};return O(r).pipe(U(o=>La(t[o],e,i,n).pipe(ee(),D(a=>{s[o]=a}))),an(1),Ar(s),he(o=>is(o)?H:Le(o)))}function La(t,e,i,n){let r=gt(e)??n,s=Ne(t,r),o=s.resolve?s.resolve(e,i):z(r,()=>s(e,i));return ue(o)}function _n(t){return k(e=>{let i=t(e);return i?O(i).pipe(b(()=>e)):g(e)})}var cs=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(n){return n.data[ft]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>h(ja),providedIn:"root"});let t=e;return t})(),ja=(()=>{let e=class e extends cs{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(v(Ii))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xe=new C("",{providedIn:"root",factory:()=>({})}),Oe=new C(""),vr=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(Et)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return g(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=ue(n.loadComponent()).pipe(b(us),D(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),ve(()=>{this.componentLoaders.delete(n)})),s=new rn(r,()=>new Y).pipe(nn());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return g({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Fa(r,this.compiler,n,this.onLoadEndListener).pipe(ve(()=>{this.childrenLoaders.delete(r)})),a=new rn(o,()=>new Y).pipe(nn());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Fa(t,e,i,n){return ue(t.loadChildren()).pipe(b(us),U(r=>r instanceof Wr||Array.isArray(r)?g(r):O(e.compileModuleAsync(r))),b(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Oe,[],{optional:!0,self:!0}).flat()),{routes:o.map(gr),injector:s}}))}function $a(t){return t&&typeof t=="object"&&"default"in t}function us(t){return $a(t)?t.default:t}var yr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>h(_a),providedIn:"root"});let t=e;return t})(),_a=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ls=new C(""),hs=new C("");function za(t,e,i){let n=t.get(hs),r=t.get(N);return t.get(x).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),Ba(t))),{onViewTransitionCreated:u}=n;return u&&z(t,()=>u({transition:a,from:e,to:i})),o})}function Ba(t){return new Promise(e=>{Br(e,{injector:t})})}var Qt=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Y,this.transitionAbortSubject=new Y,this.configLoader=h(vr),this.environmentInjector=h(te),this.urlSerializer=h(Pe),this.rootContexts=h(pt),this.location=h(Ve),this.inputBindingEnabled=h(Yt,{optional:!0})!==null,this.titleStrategy=h(cs),this.options=h(xe,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(yr),this.createViewTransition=h(ls,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new Jn(s)),r=s=>this.events.next(new Yn(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(P(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new F({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:it,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),b(o=>P(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),k(o=>{let a=!1,u=!1;return g(o).pipe(k(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",j.SupersededByNewNavigation),H;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?P(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new ae(c.id,this.urlSerializer.serialize(c.rawUrl),f,Bt.IgnoredSameUrlNavigation)),c.resolve(null),H}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return g(c).pipe(k(f=>{let R=this.transitions?.getValue();return this.events.next(new Ae(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),R!==this.transitions?.getValue()?H:Promise.resolve(f)}),Na(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),D(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=P(p({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let R=new Vt(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:R,source:I,restoredState:_,extras:T}=c,w=new Ae(f,this.urlSerializer.serialize(R),I,_);this.events.next(w);let W=Yi(this.rootComponentType).snapshot;return this.currentTransition=o=P(p({},c),{targetSnapshot:W,urlAfterRedirects:R,extras:P(p({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=R,g(o)}else{let f="";return this.events.next(new ae(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Bt.IgnoredByUrlHandlingStrategy)),c.resolve(null),H}}),D(c=>{let l=new Gn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),b(c=>(this.currentTransition=o=P(p({},c),{guards:Jo(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),oa(this.environmentInjector,c=>this.events.next(c)),D(c=>{if(o.guardsResult=c.guardsResult,Ie(c.guardsResult))throw ts(this.urlSerializer,c.guardsResult);let l=new Kn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),X(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",j.GuardRejected),!1)),_n(c=>{if(c.guards.canActivateChecks.length)return g(c).pipe(D(l=>{let d=new Zn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),k(l=>{let d=!1;return g(l).pipe(xa(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",j.NoDataFromResolver)}}))}),D(l=>{let d=new Xn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),_n(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(D(R=>{d.component=R}),b(()=>{})));for(let R of d.children)f.push(...l(R));return f};return vt(l(c.targetSnapshot.root)).pipe(on(null),me(1))}),_n(()=>this.afterPreactivation()),k(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?O(d).pipe(b(()=>o)):g(o)}),b(c=>{let l=Bo(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=P(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),D(()=>{this.events.next(new ct)}),Xo(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),me(1),D({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new V(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Pr(this.transitionAbortSubject.pipe(D(c=>{throw c}))),ve(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",j.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),he(c=>{if(u=!0,rs(c))this.events.next(new oe(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),Wo(c)?this.events.next(new ut(c.url)):o.resolve(!1);else{this.events.next(new Me(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return H}))}))}cancelNavigationTransition(n,r,s){let o=new oe(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Va(t){return t!==it}var qa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>h(Wa),providedIn:"root"});let t=e;return t})(),dr=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},Wa=(()=>{let e=class e extends dr{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ln(e)))(s||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ds=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>h(Ga),providedIn:"root"});let t=e;return t})(),Ga=(()=>{let e=class e extends ds{constructor(){super(...arguments),this.location=h(Ve),this.urlSerializer=h(Pe),this.options=h(xe,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(yr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new se,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Yi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Ae)this.stateMemento=this.createStateMemento();else if(n instanceof ae)this.rawUrlTree=r.initialUrl;else if(n instanceof Vt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof ct?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof oe&&(n.code===j.GuardRejected||n.code===j.NoDataFromResolver)?this.restoreHistory(r):n instanceof Me?this.restoreHistory(r,!0):n instanceof V&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=p(p({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=p(p({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ln(e)))(s||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nt=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(nt||{});function fs(t,e){t.events.pipe(X(i=>i instanceof V||i instanceof oe||i instanceof Me||i instanceof ae),b(i=>i instanceof V||i instanceof ae?nt.COMPLETE:(i instanceof oe?i.code===j.Redirect||i.code===j.SupersededByNewNavigation:!1)?nt.REDIRECTING:nt.FAILED),X(i=>i!==nt.REDIRECTING),me(1)).subscribe(()=>{e()})}function Ka(t){throw t}var Za={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},q=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=h(we),this.stateManager=h(ds),this.options=h(xe,{optional:!0})||{},this.pendingTasks=h(St),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(Qt),this.urlSerializer=h(Pe),this.location=h(Ve),this.urlHandlingStrategy=h(yr),this._events=new Y,this.errorHandler=this.options.errorHandler||Ka,this.navigated=!1,this.routeReuseStrategy=h(qa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(Oe,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(Yt,{optional:!0}),this.eventsSubscription=new Sr,this.isNgZoneEnabled=h(x)instanceof x&&x.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof oe&&r.code!==j.Redirect&&r.code!==j.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof V)this.navigated=!0;else if(r instanceof ut){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),u={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Va(s.source)};this.scheduleNavigation(a,it,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Ya(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),it,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=p({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(gr),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(n,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=s?s.snapshot:this.routerState.snapshot.root;f=Ki(R)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Zi(f,n,d,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=Ie(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,it,null,r)}navigate(n,r={skipLocationChange:!1}){return Ja(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=p({},Za):r===!1?s=p({},Xa):s=r,Ie(n))return Mi(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Mi(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,R)=>{u=f,c=R});let d=this.pendingTasks.add();return fs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ja(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new E(4008,!1)}function Ya(t){return!(t instanceof ct)&&!(t instanceof ut)}var Ui=(()=>{let e=class e{constructor(n,r,s,o,a,u){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new Y,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof V&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:$r(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}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})}};e.\u0275fac=function(r){return new(r||e)(B(q),B(ce),Lr("tabindex"),B(mn),B(fn),B(Re))},e.\u0275dir=Rt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&Zr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Gr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[wt.HasDecoratorInputTransform,"preserveFragment","preserveFragment",At],skipLocationChange:[wt.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",At],replaceUrl:[wt.HasDecoratorInputTransform,"replaceUrl","replaceUrl",At],routerLink:"routerLink"},standalone:!0,features:[qr,bt]});let t=e;return t})(),Tu=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,s,o,a){this.router=n,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ye,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof V&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(je()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=O(n).pipe(je()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(s=>!!s)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=Ha(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(r){return new(r||e)(B(q),B(fn),B(mn),B(It),B(Ui,8))},e.\u0275dir=Rt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&Xr(o,Ui,5),r&2){let a;Jr(a=Yr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[bt]});let t=e;return t})();function Ha(t){return!!t.paths}var Jt=class{},Cu=(()=>{let e=class e{preload(n,r){return r().pipe(he(()=>g(null)))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Eu=(()=>{let e=class e{preload(n,r){return g(null)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qa=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(X(n=>n instanceof V),Q(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=vn(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,u=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(u,o.children??o._loadedRoutes))}return O(s).pipe(je())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=g(null);let o=s.pipe(U(a=>a===null?g(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return O([o,a]).pipe(je())}else return o})}};e.\u0275fac=function(r){return new(r||e)(v(q),v(Et),v(te),v(Jt),v(vr))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wr=new C(""),ps=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",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(n=>{n instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof V?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ae&&n.code===Bt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof qt&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qt(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){_r()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function Iu(t,...e){return ze([{provide:Oe,multi:!0,useValue:t},[],{provide:ce,useFactory:gs,deps:[q]},{provide:Tt,multi:!0,useFactory:ms},e.map(i=>i.\u0275providers)])}function gs(t){return t.routerState.root}function Z(t,e){return{\u0275kind:t,\u0275providers:e}}function Au(t){return[{provide:Oe,multi:!0,useValue:t},[]]}function Mu(t={}){return Z(4,[{provide:wr,useFactory:()=>{let i=h(Tn),n=h(x),r=h(Qt),s=h(Pe);return new ps(s,r,i,n,t)}}])}function ms(){let t=h(hn);return e=>{let i=t.get(Ct);if(e!==i.components[0])return;let n=t.get(q),r=t.get(vs);t.get(Rr)===1&&n.initialNavigation(),t.get(ys,null,cn.Optional)?.setUpPreloading(),t.get(wr,null,cn.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var vs=new C("",{factory:()=>new Y}),Rr=new C("",{providedIn:"root",factory:()=>1});function ec(){return Z(2,[{provide:Rr,useValue:0},{provide:wn,multi:!0,deps:[hn],useFactory:e=>{let i=e.get(ii,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(q),s=e.get(vs);fs(r,()=>{n(!0)}),e.get(Qt).afterPreactivation=()=>(n(!0),s.closed?g(void 0):s),r.initialNavigation()}))}}])}function tc(){return Z(3,[{provide:wn,multi:!0,useFactory:()=>{let e=h(q);return()=>{e.setUpLocationChangeListener()}}},{provide:Rr,useValue:2}])}function Du(){let t=[];return t=[],Z(1,t)}var ys=new C("");function nc(t){return Z(0,[{provide:ys,useExisting:Qa},{provide:Jt,useExisting:t}])}function Ou(t){return Z(5,[{provide:xe,useValue:t}])}function Pu(){return Z(6,[{provide:Re,useClass:bn}])}function Nu(t){return Z(7,[{provide:un,multi:!0,useValue:()=>{let i=h(te);h(q).events.subscribe(n=>{n instanceof Me&&z(i,()=>t(n))})}}])}function rc(){return Z(8,[Ni,{provide:Yt,useExisting:Ni}])}function ic(t){let e=[{provide:ls,useValue:za},{provide:hs,useValue:p({skipNextTransition:!!t?.skipInitialTransition},t)}];return Z(9,e)}var ki=new C("ROUTER_FORROOT_GUARD"),sc=[Ve,{provide:Pe,useClass:ot},q,pt,{provide:ce,useFactory:gs,deps:[q]},vr,[]],xu=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[sc,[],{provide:Oe,multi:!0,useValue:n},{provide:ki,useFactory:uc,deps:[[q,new yt,new xr]]},{provide:xe,useValue:r||{}},r?.useHash?ac():cc(),oc(),r?.preloadingStrategy?nc(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?lc(r):[],r?.bindToComponentInputs?rc().\u0275providers:[],r?.enableViewTransitions?ic().\u0275providers:[],hc()]}}static forChild(n){return{ngModule:e,providers:[{provide:Oe,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(v(ki,8))},e.\u0275mod=_e({type:e}),e.\u0275inj=Fe({});let t=e;return t})();function oc(){return{provide:wr,useFactory:()=>{let t=h(Tn),e=h(x),i=h(xe),n=h(Qt),r=h(Pe);return i.scrollOffset&&t.setOffset(i.scrollOffset),new ps(r,n,t,e,i)}}}function ac(){return{provide:Re,useClass:bn}}function cc(){return{provide:Re,useClass:si}}function uc(t){return"guarded"}function lc(t){return[t.initialNavigation==="disabled"?tc().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ec().\u0275providers:[]]}var Li=new C("");function hc(){return[{provide:Li,useFactory:ms},{provide:Tt,multi:!0,useExisting:Li}]}function Uu(t){return t.map(e=>(...i)=>h(e).canMatch(...i))}function ku(t){return t.map(e=>(...i)=>h(e).canActivate(...i))}function Lu(t){return t.map(e=>(...i)=>h(e).canActivateChild(...i))}function ju(t){return t.map(e=>(...i)=>h(e).canDeactivate(...i))}function Fu(t){return(...e)=>h(t).resolve(...e)}var $u=new yn("17.3.3");export{Ec as a,Ic as b,wi as c,ru as d,iu as e,m as f,Ee as g,po as h,se as i,S as j,fe as k,Pe as l,ot as m,xo as n,A as o,$ as p,Ae as q,V as r,j as s,Bt as t,oe as u,ae as v,Me as w,Vt as x,Gn as y,Kn as z,Zn as A,Xn as B,Jn as C,Yn as D,Hn as E,Qn as F,er as G,tr as H,qt as I,nr as J,pt as K,Gt as L,ce as M,lt as N,Kt as O,zo as P,Go as Q,cs as R,ja as S,xe as T,Oe as U,Fa as V,yr as W,qa as X,dr as Y,fs as Z,q as _,Ui as $,Tu as aa,Jt as ba,Cu as ca,Eu as da,Qa as ea,Iu as fa,Au as ga,Mu as ha,ec as ia,tc as ja,Du as ka,nc as la,Ou as ma,Pu as na,Nu as oa,rc as pa,ic as qa,sc as ra,xu as sa,Li as ta,Uu as ua,ku as va,Lu as wa,ju as xa,Fu as ya,$u as za};