-
Notifications
You must be signed in to change notification settings - Fork 1
/
chunk-6KKW6GNI.js
2 lines (2 loc) · 103 KB
/
chunk-6KKW6GNI.js
1
2
import{$a as Mr,Aa as Yt,Ba as Tr,Ca as br,Da as Qt,Dc as cn,E as Y,Ec as Gr,Fa as en,Fc as Wr,G as ge,Ga as we,Gb as jr,Gc as j,H as ue,Hc as un,Ia as Er,Ic as pt,Ja as tn,Jc as gt,K as Ht,Ka as Cr,L as me,La as ee,M as pr,Na as nn,Nb as Lr,Oa as rn,P as ve,Pc as Xr,Q,R as Jt,Ra as Ir,Rc as je,S as gr,Sc as Kr,T as mr,Tb as kr,Tc as mt,Ua as xe,Vb as Fr,W as vr,Wa as V,Wb as $r,X as _,Xa as Ar,Y as yr,Z as M,_ as A,a as p,aa as b,ab as sn,b as P,bb as Dr,c as cr,ca as wr,cb as G,cc as _r,da as C,ea as Zt,eb as on,f as ur,fa as E,fb as Or,g as lr,ga as f,h as Vt,i as qt,j as Gt,jb as Pr,k as J,kb as Nr,l as F,la as Ne,lb as xr,ma as Rr,mb as ut,mc as lt,n as Z,nc as zr,o as x,oa as at,oc as ht,p as g,pc as Ue,q as Pe,qa as ye,qc as Br,r as hr,ra as Sr,rc as an,s as dr,sa as le,ta as z,tb as Ur,u as S,uc as dt,v as Wt,va as ct,vc as Vr,w as $,wc as qr,x as Xt,xc as ft,y as fr,z as Kt}from"./chunk-FNSPSJSE.js";var ke=class{},Fe=class{},W=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 hn=class{encodeKey(e){return Hr(e)}encodeValue(e){return Hr(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function ps(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 gs=/%(\d[a-f0-9])/gi,ms={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hr(t){return encodeURIComponent(t).replace(gs,(e,i)=>ms[i]??e)}function vt(t){return`${t}`}var ne=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new hn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ps(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(vt):[vt(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(vt(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(vt(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 dn=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 vs(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Jr(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Zr(t){return typeof Blob<"u"&&t instanceof Blob}function Yr(t){return typeof FormData<"u"&&t instanceof FormData}function ys(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Le=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(vs(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 W,this.context??=new dn,!this.params)this.params=new ne,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"||Jr(this.body)||Zr(this.body)||Yr(this.body)||ys(this.body)?this.body:this.body instanceof ne?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||Yr(this.body)?null:Zr(this.body)?this.body.type||null:Jr(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof ne?"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,h=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((d,v)=>d.set(v,e.setHeaders[v]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,v)=>d.set(v,e.setParams[v]),l)),new t(i,n,o,{params:l,headers:c,context:h,reportProgress:u,responseType:r,withCredentials:a,transferCache:s})}},re=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}(re||{}),$e=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new W,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}},wt=class t extends $e{constructor(e={}){super(e),this.type=re.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})}},he=class t extends $e{constructor(e={}){super(e),this.type=re.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})}},te=class extends $e{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}},di=200,ws=204;function ln(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 Rs=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Le)o=n;else{let c;s.headers instanceof W?c=s.headers:c=new W(s.headers);let l;s.params&&(s.params instanceof ne?l=s.params:l=new ne({fromObject:s.params})),o=new Le(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(ue(c=>this.handler.handle(c)));if(n instanceof Le||s.observe==="events")return a;let u=a.pipe(Y(c=>c instanceof he));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(S(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(S(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(S(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(S(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 ne().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,ln(s,r))}post(n,r,s={}){return this.request("POST",n,ln(s,r))}put(n,r,s={}){return this.request("PUT",n,ln(s,r))}};e.\u0275fac=function(r){return new(r||e)(E(ke))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Ss=/^\)\]\}',?\n/,Ts="X-Request-URL";function Qr(t){if(t.url)return t.url;let e=Ts.toLocaleLowerCase();return t.headers.get(e)}var fn=(()=>{let e=class e{constructor(){this.fetchImpl=f(pn,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=f(G)}handle(n){return new Vt(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(gn,o=>r.error(new te({error:o}))),()=>s.abort()})}async doRequest(n,r,s){let o=this.createRequestInit(n),a;try{let y=this.fetchImpl(n.urlWithParams,p({signal:r},o));bs(y),s.next({type:re.Sent}),a=await y}catch(y){s.error(new te({error:y,status:y.status??0,statusText:y.statusText,url:n.urlWithParams,headers:y.headers}));return}let u=new W(a.headers),c=a.statusText,l=Qr(a)??n.urlWithParams,h=a.status,d=null;if(n.reportProgress&&s.next(new wt({headers:u,status:h,statusText:c,url:l})),a.body){let y=a.headers.get("content-length"),O=[],w=a.body.getReader(),R=0,N,U,I=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:ce,value:Oe}=await w.read();if(ce)break;if(O.push(Oe),R+=Oe.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(N??=new TextDecoder).decode(Oe,{stream:!0}):void 0;let ar=()=>s.next({type:re.DownloadProgress,total:y?+y:void 0,loaded:R,partialText:U});I?I.run(ar):ar()}}});let ae=this.concatChunks(O,R);try{let ce=a.headers.get("Content-Type")??"";d=this.parseBody(n,ae,ce)}catch(ce){s.error(new te({error:ce,headers:new W(a.headers),status:a.status,statusText:a.statusText,url:Qr(a)??n.urlWithParams}));return}}h===0&&(h=d?di:0),h>=200&&h<300?(s.next(new he({body:d,headers:u,status:h,statusText:c,url:l})),s.complete()):s.error(new te({error:d,headers:u,status:h,statusText:c,url:l}))}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Ss,"");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=b({token:e,factory:e.\u0275fac});let t=e;return t})(),pn=class{};function gn(){}function bs(t){t.then(gn,gn)}function Es(t,e){return e(t)}function Cs(t,e,i){return(n,r)=>z(i,()=>e(n,s=>t(s,r)))}var fi=new C(""),pi=new C(""),Is=new C("",{providedIn:"root",factory:()=>!0});var ei=(()=>{let e=class e extends ke{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=f(ut),this.contributeToStability=f(Is)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(fi),...this.injector.get(pi,[])]));this.chain=r.reduceRight((s,o)=>Cs(s,o,this.injector),Es)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(ve(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(E(Fe),E(le))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();var As=/^\)\]\}',?\n/;function Ms(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ti=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?x(r.\u0275loadImpl()):g(null)).pipe(_(()=>new Vt(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,R)=>a.setRequestHeader(w,R.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=a.statusText||"OK",R=new W(a.getAllResponseHeaders()),N=Ms(a)||n.url;return c=new wt({headers:R,status:a.status,statusText:w,url:N}),c},h=()=>{let{headers:w,status:R,statusText:N,url:U}=l(),I=null;R!==ws&&(I=typeof a.response>"u"?a.responseText:a.response),R===0&&(R=I?di:0);let ae=R>=200&&R<300;if(n.responseType==="json"&&typeof I=="string"){let ce=I;I=I.replace(As,"");try{I=I!==""?JSON.parse(I):null}catch(Oe){I=ce,ae&&(ae=!1,I={error:Oe,text:I})}}ae?(o.next(new he({body:I,headers:w,status:R,statusText:N,url:U||void 0})),o.complete()):o.error(new te({error:I,headers:w,status:R,statusText:N,url:U||void 0}))},d=w=>{let{url:R}=l(),N=new te({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:R||void 0});o.error(N)},v=!1,y=w=>{v||(o.next(l()),v=!0);let R={type:re.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(R.total=w.total),n.responseType==="text"&&a.responseText&&(R.partialText=a.responseText),o.next(R)},O=w=>{let R={type:re.UploadProgress,loaded:w.loaded};w.lengthComputable&&(R.total=w.total),o.next(R)};return a.addEventListener("load",h),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),n.reportProgress&&(a.addEventListener("progress",y),u!==null&&a.upload&&a.upload.addEventListener("progress",O)),a.send(u),o.next({type:re.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",h),a.removeEventListener("timeout",d),n.reportProgress&&(a.removeEventListener("progress",y),u!==null&&a.upload&&a.upload.removeEventListener("progress",O)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(E(mt))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),gi=new C(""),Ds="XSRF-TOKEN",Os=new C("",{providedIn:"root",factory:()=>Ds}),Ps="X-XSRF-TOKEN",Ns=new C("",{providedIn:"root",factory:()=>Ps}),Rt=class{},xs=(()=>{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=gt(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(E(j),E(ee),E(Os))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function Us(t,e){let i=t.url.toLowerCase();if(!f(gi)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=f(Rt).getToken(),r=f(Ns);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var mi=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}(mi||{});function js(t,e){return{\u0275kind:t,\u0275providers:e}}function vc(...t){let e=[Rs,ti,ei,{provide:ke,useExisting:ei},{provide:Fe,useFactory:()=>f(fn,{optional:!0})??f(ti)},{provide:fi,useValue:Us,multi:!0},{provide:gi,useValue:!0},{provide:Rt,useClass:xs}];for(let i of t)e.push(...i.\u0275providers);return ye(e)}function yc(){return js(mi.Fetch,[fn,{provide:Fe,useExisting:fn}])}var Ls=new C(""),ni="b",ri="h",ii="s",si="st",oi="u",ai="rt",yt=new C(""),ks=["GET","HEAD"];function Fs(t,e){let v=f(yt),{isCacheActive:i}=v,n=cr(v,["isCacheActive"]),{transferCache:r,method:s}=t;if(!i||r===!1||s==="POST"&&!n.includePostRequests&&!r||s!=="POST"&&!ks.includes(s)||!n.includeRequestsWithAuthHeaders&&$s(t)||n.filter?.(t)===!1)return e(t);let o=f(rn),a=f(Ls,{optional:!0}),u=je(f(ee));if(a&&!u)throw new A(2803,!1);let c=u&&a?Vs(t.url,a):t.url,l=zs(t,c),h=o.get(l,null),d=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(d=r.includeHeaders),h){let{[ni]:y,[ai]:O,[ri]:w,[ii]:R,[si]:N,[oi]:U}=h,I=y;switch(O){case"arraybuffer":I=new TextEncoder().encode(y).buffer;break;case"blob":I=new Blob([y]);break}let ae=new W(w);return g(new he({body:I,headers:ae,status:R,statusText:N,url:U}))}return e(t).pipe(M(y=>{y instanceof he&&u&&o.set(l,{[ni]:y.body,[ri]:_s(y.headers,d),[ii]:y.status,[si]:y.statusText,[oi]:c,[ai]:t.responseType})}))}function $s(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function _s(t,e){if(!e)return{};let i={};for(let n of e){let r=t.getAll(n);r!==null&&(i[n]=r)}return i}function ci(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function zs(t,e){let{params:i,method:n,responseType:r}=t,s=ci(i),o=t.serializeBody();o instanceof URLSearchParams?o=ci(o):typeof o!="string"&&(o="");let a=[n,r,e,o,s].join("|"),u=Bs(a);return u}function Bs(t){let e=0;for(let i of t)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function vi(t){return[{provide:yt,useFactory:()=>(Dr("NgHttpTransferCache"),p({isCacheActive:!0},t))},{provide:pi,useValue:Fs,multi:!0,deps:[rn,yt]},{provide:ht,multi:!0,useFactory:()=>{let e=f(Ue),i=f(yt);return()=>{Br(e).then(()=>{i.isCacheActive=!1})}}}]}function Vs(t,e){let i=new URL(t,"resolve://").origin,n=e[i];return n?t.replace(i,n):t}var yn=class extends Wr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},wn=class t extends yn{static makeCurrent(){Gr(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=Xs();return i==null?null:Ks(i)}resetBaseElement(){_e=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return gt(document.cookie,e)}},_e=null;function Xs(){return _e=_e||document.querySelector("base"),_e?_e.getAttribute("href"):null}function Ks(t){return new URL(t,document.baseURI).pathname}var Hs=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Rn=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 A(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(E(Rn),E(G))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),St=class{constructor(e){this._doc=e}},mn="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=je(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[${mn}="${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(mn),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(mn,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)(E(j),E(tn),E(nn,8),E(ee))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),vn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},bn=/%COMP%/g,bi="%COMP%",Js=`_nghost-${bi}`,Zs=`_ngcontent-${bi}`,Ys=!0,Qs=new C("",{providedIn:"root",factory:()=>Ys});function eo(t){return Zs.replace(bn,t)}function to(t){return Js.replace(bn,t)}function Ei(t,e){return e.map(i=>i.replace(bn,t))}var yi=(()=>{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=je(u),this.defaultRenderer=new ze(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ne.ShadowDom&&(r=P(p({},r),{encapsulation:Ne.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof Tt?s.applyToHost(n):s instanceof Be&&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,h=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ne.Emulated:o=new Tt(c,l,r,this.appId,h,a,u,d);break;case Ne.ShadowDom:return new Sn(c,l,n,r,a,u,this.nonce,d);default:o=new Be(c,l,r,h,a,u,d);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(E(Si),E(Ti),E(tn),E(Qs),E(j),E(ee),E(G),E(nn))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),ze=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(vn[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(wi(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(wi(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 A(-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=vn[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=vn[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&(xe.DashCase|xe.Important)?e.style.setProperty(i,n,r&xe.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&xe.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=cn().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 wi(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Sn=class extends ze{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 h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=l,this.shadowRoot.appendChild(h)}}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)}},Be=class extends ze{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)}},Tt=class extends Be{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=eo(c),this.hostAttr=to(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}},no=(()=>{let e=class e extends St{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)(E(j))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Ri=["alt","control","meta","shift"],ro={"\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"},io={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},so=(()=>{let e=class e extends St{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(()=>cn().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."),Ri.forEach(l=>{let h=r.indexOf(l);h>-1&&(r.splice(h,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=ro[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"),Ri.forEach(a=>{if(a!==s){let u=io[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)(E(j))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function Zc(t,e){return Vr(p({rootComponent:t},oo(e)))}function oo(t){return{appProviders:[...ho,...t?.providers??[]],platformProviders:lo}}function ao(){wn.makeCurrent()}function co(){return new Qt}function uo(){return Er(document),document}var lo=[{provide:ee,useValue:Xr},{provide:Cr,useValue:ao,multi:!0},{provide:j,useFactory:uo,deps:[]}];var ho=[{provide:Sr,useValue:"root"},{provide:Qt,useFactory:co,deps:[]},{provide:Rn,useClass:no,multi:!0,deps:[j,G,ee]},{provide:Rn,useClass:so,multi:!0,deps:[j]},yi,Ti,Si,{provide:Mr,useExisting:yi},{provide:mt,useClass:Hs,deps:[]},[]];var Ci=(()=>{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)(E(j))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Tn=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t}(Tn||{});function Yc(...t){let e=[],i=new Set,n=i.has(Tn.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:s}of t)i.add(s),r.length&&e.push(r);return ye([[],qr(),i.has(Tn.NoHttpTransferCache)||n?[]:vi({}),e])}var m="primary",it=Symbol("RouteTitle"),Mn=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 Ce(t){return new Mn(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[0]===":")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(!X(t[i],e[i]))return!1;return!0}function X(t,e){let i=t?Dn(t):void 0,n=e?Dn(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],!Ui(t[r],e[r]))return!1;return!0}function Dn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Ui(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 ji(t){return t.length>0?t[t.length-1]:null}function oe(t){return hr(t)?t:zr(t)?x(Promise.resolve(t)):g(t)}var mo={exact:ki,subset:Fi},Li={exact:vo,subset:yo,ignored:()=>!0};function Ii(t,e,i){return mo[i.paths](t.root,e.root,i.matrixParams)&&Li[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function vo(t,e){return X(t,e)}function ki(t,e,i){if(!fe(t.segments,e.segments)||!Ct(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ki(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=>Ui(t[i],e[i]))}function Fi(t,e,i){return $i(t,e,e.segments,i)}function $i(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!fe(r,i)||e.hasChildren()||!Ct(r,i,n))}else if(t.segments.length===i.length){if(!fe(t.segments,i)||!Ct(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!Fi(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!fe(t.segments,r)||!Ct(t.segments,r,n)||!t.children[m]?!1:$i(t.children[m],e,s,n)}}function Ct(t,e,i){return e.every((n,r)=>Li[i](t[r].parameters,n.parameters))}var ie=class{constructor(e=new T([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ce(this.queryParams),this._queryParamMap}toString(){return So.serialize(this)}},T=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 It(this)}},de=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ce(this.parameters),this._parameterMap}toString(){return zi(this)}};function wo(t,e){return fe(t,e)&&t.every((i,n)=>X(i.parameters,e[n].parameters))}function fe(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 $t=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:()=>new He,providedIn:"root"});let t=e;return t})(),He=class{parse(e){let i=new Pn(e);return new ie(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ve(e.root,!0)}`,n=Eo(e.queryParams),r=typeof e.fragment=="string"?`#${To(e.fragment)}`:"";return`${i}${n}${r}`}},So=new He;function It(t){return t.segments.map(e=>zi(e)).join("/")}function Ve(t,e){if(!t.hasChildren())return It(t);if(e){let i=t.children[m]?Ve(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==m&&n.push(`${r}:${Ve(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Ro(t,(n,r)=>r===m?[Ve(t.children[m],!1)]:[`${r}:${Ve(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${It(t)}/${i[0]}`:`${It(t)}/(${i.join("//")})`}}function _i(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bt(t){return _i(t).replace(/%3B/gi,";")}function To(t){return encodeURI(t)}function On(t){return _i(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function Ai(t){return At(t.replace(/\+/g,"%20"))}function zi(t){return`${On(t.path)}${bo(t.parameters)}`}function bo(t){return Object.entries(t).map(([e,i])=>`;${On(e)}=${On(i)}`).join("")}function Eo(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${bt(i)}=${bt(r)}`).join("&"):`${bt(i)}=${bt(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var Co=/^[^\/()?;#]+/;function En(t){let e=t.match(Co);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 Pn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new T([],{}):new T([],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 T(e,i)),n}parseSegment(){let e=En(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(e),new de(At(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=En(this.remaining);r&&(n=r,this.capture(n))}e[At(i)]=At(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=Ai(i),s=Ai(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=En(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new A(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 T([],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 A(4011,!1)}};function Bi(t){return t.segments.length>0?new T([],{[m]:t}):t}function Vi(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=Vi(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 T(t.segments,e);return No(i)}function No(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new T(t.segments.concat(e.segments),e.children)}return t}function Je(t){return t instanceof ie}function xo(t,e,i=null,n=null){let r=qi(t);return Gi(r,e,i,n)}function qi(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 T(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=Bi(n);return e??r}function Gi(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Cn(r,r,r,i,n);let s=Uo(e);if(s.toRoot())return Cn(r,r,new T([],{}),i,n);let o=jo(s,r,t),a=o.processChildren?We(o.segmentGroup,o.index,s.commands):Xi(o.segmentGroup,o.index,s.commands);return Cn(r,o.segmentGroup,a,i,n)}function Mt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ze(t){return typeof t=="object"&&t!=null&&t.outlets}function Cn(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=Wi(t,e,i);let a=Bi(Vi(o));return new ie(a,s,r)}function Wi(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=Wi(s,e,i)}),new T(t.segments,n)}var Dt=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Mt(n[0]))throw new A(4003,!1);let r=n.find(Ze);if(r&&r!==ji(n))throw new A(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 Dt(!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 Dt(i,e,n)}var Te=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function jo(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=Mt(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 A(4005,!1);r=n.segments.length}return new Te(n,!1,r-s)}function ko(t){return Ze(t[0])?t[0].outlets:{[m]:t}}function Xi(t,e,i){if(t??=new T([],{}),t.segments.length===0&&t.hasChildren())return We(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 T(t.segments.slice(0,n.pathIndex),{});return s.children[m]=new T(t.segments.slice(n.pathIndex),t.children),We(s,0,r)}else return n.match&&r.length===0?new T(t.segments,{}):n.match&&!t.hasChildren()?Nn(t,e,i):n.match?We(t,0,r):Nn(t,e,i)}function We(t,e,i){if(i.length===0)return new T(t.segments,{});{let n=ko(i),r={};if(Object.keys(n).some(s=>s!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=We(t.children[m],e,i);return new T(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Xi(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new T(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(Ze(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(!Di(u,c,o))return s;n+=2}else{if(!Di(u,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Nn(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(Ze(s)){let u=$o(s.outlets);return new T(n,u)}if(r===0&&Mt(i[0])){let u=t.segments[e];n.push(new de(u.path,Mi(i[0]))),r++;continue}let o=Ze(s)?s.outlets[m]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&Mt(a)?(n.push(new de(o,Mi(a))),r+=2):(n.push(new de(o,{})),r++)}return new T(n,{})}function $o(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Nn(new T([],{}),0,n))}),e}function Mi(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function Di(t,e,i){return t==i.path&&X(e,i.parameters)}var Xe="imperative",D=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}(D||{}),B=class{constructor(e,i){this.id=e,this.url=i}},Ie=class extends B{constructor(e,i,n="imperative",r=null){super(e,i),this.type=D.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},K=class extends B{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=D.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},k=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(k||{}),Ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ot||{}),H=class extends B{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=D.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},se=class extends B{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=D.NavigationSkipped}},Ye=class extends B{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=D.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pt=class extends B{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=D.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xn=class extends B{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=D.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Un=class extends B{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=D.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},jn=class extends B{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=D.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ln=class extends B{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=D.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kn=class{constructor(e){this.route=e,this.type=D.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fn=class{constructor(e){this.route=e,this.type=D.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},$n=class{constructor(e){this.snapshot=e,this.type=D.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_n=class{constructor(e){this.snapshot=e,this.type=D.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zn=class{constructor(e){this.snapshot=e,this.type=D.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bn=class{constructor(e){this.snapshot=e,this.type=D.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=D.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Qe=class{},Ae=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};var Vn=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new _t(this.injector),this.attachRef=null}},_t=(()=>{let e=class e{constructor(n){this.parentInjector=n,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 Vn(this.parentInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(E(le))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xt=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=qn(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=qn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Gn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Gn(e,this._root).map(i=>i.value)}};function qn(t,e){if(t===e.value)return e;for(let i of e.children){let n=qn(t,i);if(n)return n}return null}function Gn(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Gn(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 Ut=class extends xt{constructor(e,i){super(e),this.snapshot=i,er(this,e)}toString(){return this.snapshot.toString()}};function Ki(t){let e=_o(t),i=new F([new de("",{})]),n=new F({}),r=new F({}),s=new F({}),o=new F(""),a=new pe(i,n,s,o,r,m,t,e.root);return a.snapshot=e.root,new Ut(new L(a,[]),e)}function _o(t){let e={},i={},n={},r="",s=new be([],e,n,r,i,m,t,null,{});return new Lt("",new L(s,[]))}var pe=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(S(c=>c[it]))??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(S(e=>Ce(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(e=>Ce(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function jt(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&&Ji(r)&&(n.resolve[it]=r.title),n}var be=class{get title(){return this.data?.[it]}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??=Ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ce(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}')`}},Lt=class extends xt{constructor(e,i){super(i),this.url=e,er(this,i)}toString(){return Hi(this._root)}};function er(t,e){e.value._routerState=t,e.children.forEach(i=>er(t,i))}function Hi(t){let e=t.children.length>0?` { ${t.children.map(Hi).join(", ")} } `:"";return`${t.value}${e}`}function In(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,X(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),X(e.params,i.params)||t.paramsSubject.next(i.params),go(e.url,i.url)||t.urlSubject.next(i.url),X(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wn(t,e){let i=X(t.params,e.params)&&wo(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Wn(t.parent,e.parent))}function Ji(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 we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=f(_t),this.location=f(Or),this.changeDetector=f(dt),this.inputBinder=f(tr,{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 A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(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 A(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Xn(n,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=at({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ct]});let t=e;return t})(),Xn=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===pe?this.route:e===_t?this.childContexts:this.parent.get(e,i)}},tr=new C("");function Bo(t,e,i){let n=et(t,e._root,i?i._root:void 0);return new Ut(n,e)}function et(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=>et(t,a)),o}}let n=qo(e.value),r=e.children.map(s=>et(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 et(t,n,r);return et(t,n)})}function qo(t){return new pe(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 tt=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},Zi="ngNavigationCancelingError";function kt(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Je(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Yi(!1,k.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Yi(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Zi]=!0,i.cancellationCode=e,i}function Go(t){return Qi(t)&&Je(t.url)}function Qi(t){return!!t&&t[Zi]}var Wo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Rr({type:e,selectors:[["ng-component"]],standalone:!0,features:[_r],decls:1,vars:0,template:function(r,s){r&1&&jr(0,"router-outlet")},dependencies:[zo],encapsulation:2});let t=e;return t})();function Xo(t,e){return t.providers&&!t._injector&&(t._injector=xr(t.providers,e,`Route: ${t.path}`)),t._injector??e}function nr(t){let e=t.children&&t.children.map(nr),i=e?P(p({},t),{children:e}):p({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=Wo),i}function q(t){return t.outlet||m}function Ko(t,e){let i=t.filter(n=>q(n)===e);return i.push(...t.filter(n=>q(n)!==e)),i}function st(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 Ho=(t,e,i,n)=>S(r=>(new Kn(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Kn=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),In(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 Bn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new _n(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(In(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),In(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=st(r.snapshot);o.attachRef=null,o.route=r,o.injector=a??o.injector,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},Ft=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ee=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 qe(n,r,i,[n.value])}function Zo(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function De(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!wr(t)?t:e.get(t):n}function qe(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Se(e);return t.children.forEach(o=>{Yo(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Ke(a,i.getContext(o),r)),r}function Yo(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 Ft(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?qe(t,e,a?a.children:null,n,r):qe(t,e,i,n,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ee(a.outlet.component,o))}else o&&Ke(e,a,r),r.canActivateChecks.push(new Ft(n)),s.component?qe(t,null,a?a.children:null,n,r):qe(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!fe(t.url,e.url);case"pathParamsOrQueryParamsChange":return!fe(t.url,e.url)||!X(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wn(t,e)||!X(t.queryParams,e.queryParams);case"paramsChange":default:return!Wn(t,e)}}function Ke(t,e,i){let n=Se(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Ke(o,e.children.getContext(s),i):Ke(o,null,i):Ke(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Ee(e.outlet.component,r)):i.canDeactivateChecks.push(new Ee(null,r)):i.canDeactivateChecks.push(new Ee(null,r))}function ot(t){return typeof t=="function"}function ea(t){return typeof t=="boolean"}function ta(t){return t&&ot(t.canLoad)}function na(t){return t&&ot(t.canActivate)}function ra(t){return t&&ot(t.canActivateChild)}function ia(t){return t&&ot(t.canDeactivate)}function sa(t){return t&&ot(t.canMatch)}function es(t){return t instanceof dr||t?.name==="EmptyError"}var Et=Symbol("INITIAL_VALUE");function Me(){return _(t=>Wt(t.map(e=>e.pipe(me(1),vr(Et)))).pipe(S(e=>{for(let i of e)if(i!==!0){if(i===Et)return Et;if(i===!1||oa(i))return i}return!0}),Y(e=>e!==Et),me(1)))}function oa(t){return Je(t)||t instanceof tt}function aa(t,e){return $(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})):ca(o,n,r,t).pipe($(a=>a&&ea(a)?ua(n,s,t,e):g(a)),S(a=>P(p({},i),{guardsResult:a})))})}function ca(t,e,i,n){return x(t).pipe($(r=>pa(r.component,r.route,i,e,n)),Q(r=>r!==!0,!0))}function ua(t,e,i,n){return x(e).pipe(ue(r=>fr(ha(r.route.parent,n),la(r.route,n),fa(t,r.path,i),da(t,r.route,i))),Q(r=>r!==!0,!0))}function la(t,e){return t!==null&&e&&e(new zn(t)),g(!0)}function ha(t,e){return t!==null&&e&&e(new $n(t)),g(!0)}function da(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let r=n.map(s=>Kt(()=>{let o=st(e)??i,a=De(s,o),u=na(a)?a.canActivate(e,t):z(o,()=>a(e,t));return oe(u).pipe(Q())}));return g(r).pipe(Me())}function fa(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Zo(o)).filter(o=>o!==null).map(o=>Kt(()=>{let a=o.guards.map(u=>{let c=st(o.node)??i,l=De(u,c),h=ra(l)?l.canActivateChild(n,t):z(c,()=>l(n,t));return oe(h).pipe(Q())});return g(a).pipe(Me())}));return g(s).pipe(Me())}function pa(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=st(e)??r,c=De(a,u),l=ia(c)?c.canDeactivate(t,e,i,n):z(u,()=>c(t,e,i,n));return oe(l).pipe(Q())});return g(o).pipe(Me())}function ga(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=De(o,t),u=ta(a)?a.canLoad(e,i):z(t,()=>a(e,i));return oe(u)});return g(s).pipe(Me(),ts(n))}function ts(t){return lr(M(e=>{if(typeof e!="boolean")throw kt(t,e)}),S(e=>e===!0))}function ma(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return g(!0);let s=r.map(o=>{let a=De(o,t),u=sa(a)?a.canMatch(e,i):z(t,()=>a(e,i));return oe(u)});return g(s).pipe(Me(),ts(n))}var nt=class{constructor(e){this.segmentGroup=e||null}},rt=class extends Error{constructor(e){super(),this.urlTree=e}};function Re(t){return Pe(new nt(t))}function va(t){return Pe(new A(4e3,!1))}function ya(t){return Pe(Yi(!1,k.GuardRejected))}var Hn=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 va(`${e.redirectTo}`);r=r.children[m]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:u,fragment:c,routeConfig:l,url:h,outlet:d,params:v,data:y,title:O}=r,w=z(s,()=>a({params:v,data:y,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:d,title:O}));if(w instanceof ie)throw new rt(w);i=w}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new rt(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new ie(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[0]===":"){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 T(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new A(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}},Jn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wa(t,e,i,n,r){let s=rr(t,e,i);return s.matched?(n=Xo(e,n),ma(n,e,i,r).pipe(S(o=>o===!0?s:p({},Jn)))):g(s)}function rr(t,e,i){if(e.path==="**")return Ra(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?p({},Jn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||po)(i,t,e);if(!r)return p({},Jn);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 Ra(t){return{matched:!0,parameters:t.length>0?ji(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Oi(t,e,i,n){return i.length>0&&ba(t,i,n)?{segmentGroup:new T(e,Ta(n,new T(i,t.children))),slicedSegments:[]}:i.length===0&&Ea(t,i,n)?{segmentGroup:new T(t.segments,Sa(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new T(t.segments,t.children),slicedSegments:i}}function Sa(t,e,i,n){let r={};for(let s of i)if(zt(t,e,s)&&!n[q(s)]){let o=new T([],{});r[q(s)]=o}return p(p({},n),r)}function Ta(t,e){let i={};i[m]=e;for(let n of t)if(n.path===""&&q(n)!==m){let r=new T([],{});i[q(n)]=r}return i}function ba(t,e,i){return i.some(n=>zt(t,e,n)&&q(n)!==m)}function Ea(t,e,i){return i.some(n=>zt(t,e,n))}function zt(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Ca(t,e,i,n){return q(t)!==n&&(n===m||!zt(e,i,t))?!1:rr(e,t,i).matched}function Ia(t,e,i){return e.length===0&&!t.children[i]}var Zn=class{};function Aa(t,e,i,n,r,s,o="emptyOnly"){return new Yn(t,e,i,n,r,o,s).recognize()}var Ma=31,Yn=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 Hn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new A(4002,`'${e.segmentGroup}'`)}recognize(){let e=Oi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(S(({children:i,rootSnapshot:n})=>{let r=new L(n,i),s=new Lt("",r),o=xo(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new be([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),m,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,m,i).pipe(S(n=>({children:n,rootSnapshot:i})),ge(n=>{if(n instanceof rt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof nt?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(S(o=>o instanceof L?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return x(s).pipe(ue(o=>{let a=n.children[o],u=Ko(i,o);return this.processSegmentGroup(e,u,a,o,r)}),mr((o,a)=>(o.push(...a),o)),Ht(null),gr(),$(o=>{if(o===null)return Re(n);let a=ns(o);return Da(a),g(a)}))}processSegment(e,i,n,r,s,o,a){return x(i).pipe(ue(u=>this.processSegmentAgainstRoute(u._injector??e,i,u,n,r,s,o,a).pipe(ge(c=>{if(c instanceof nt)return g(null);throw c}))),Q(u=>!!u),ge(u=>{if(es(u))return Ia(n,r,s)?g(new Zn):Re(n);throw u}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,u){return Ca(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,u):Re(r):Re(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:d}=rr(i,r,s);if(!u)return Re(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ma&&(this.allowRedirects=!1));let v=new be(s,c,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(r),q(r),r.component??r._loadedComponent??null,r,Ni(r)),y=jt(v,a,this.paramsInheritanceStrategy);v.params=Object.freeze(y.params),v.data=Object.freeze(y.data);let O=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,h,v,e);return this.applyRedirects.lineralizeSegments(r,O).pipe($(w=>this.processSegment(e,n,i,w.concat(d),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=wa(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(_(u=>u.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(_(({routes:c})=>{let l=n._loadedInjector??e,{parameters:h,consumedSegments:d,remainingSegments:v}=u,y=new be(d,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Pi(n),q(n),n.component??n._loadedComponent??null,n,Ni(n)),O=jt(y,o,this.paramsInheritanceStrategy);y.params=Object.freeze(O.params),y.data=Object.freeze(O.data);let{segmentGroup:w,slicedSegments:R}=Oi(i,d,v,c);if(R.length===0&&w.hasChildren())return this.processChildren(l,c,w,y).pipe(S(U=>new L(y,U)));if(c.length===0&&R.length===0)return g(new L(y,[]));let N=q(n)===s;return this.processSegment(l,c,w,R,N?m:s,!0,y).pipe(S(U=>new L(y,U instanceof L?[U]:[])))}))):Re(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}):ga(e,i,n,this.urlSerializer).pipe($(r=>r?this.configLoader.loadChildren(e,i).pipe(M(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):ya(i))):g({routes:[],injector:e})}};function Da(t){t.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Oa(t){let e=t.value.routeConfig;return e&&e.path===""}function ns(t){let e=[],i=new Set;for(let n of t){if(!Oa(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=ns(n.children);e.push(new L(n.value,r))}return e.filter(n=>!i.has(n))}function Pi(t){return t.data||{}}function Ni(t){return t.resolve||{}}function Pa(t,e,i,n,r,s){return $(o=>Aa(t,e,i,n,o.extractedUrl,r,s).pipe(S(({state:a,tree:u})=>P(p({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Na(t,e){return $(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 rs(u))o.add(c);let a=0;return x(o).pipe(ue(u=>s.has(u)?xa(u,n,t,e):(u.data=jt(u,u.parent,t).resolve,g(void 0))),M(()=>a++),Jt(1),$(u=>a===o.size?g(i):Z))})}function rs(t){let e=t.children.map(i=>rs(i)).flat();return[t,...e]}function xa(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!Ji(r)&&(s[it]=r.title),Ua(s,t,e,n).pipe(S(o=>(t._resolvedData=o,t.data=jt(t,t.parent,i).resolve,null)))}function Ua(t,e,i,n){let r=Dn(t);if(r.length===0)return g({});let s={};return x(r).pipe($(o=>ja(t[o],e,i,n).pipe(Q(),M(a=>{if(a instanceof tt)throw kt(new He,a);s[o]=a}))),Jt(1),pr(s),ge(o=>es(o)?Z:Pe(o)))}function ja(t,e,i,n){let r=st(e)??n,s=De(t,r),o=s.resolve?s.resolve(e,i):z(r,()=>s(e,i));return oe(o)}function An(t){return _(e=>{let i=t(e);return i?x(i).pipe(S(()=>e)):g(e)})}var is=(()=>{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[it]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:()=>f(La),providedIn:"root"});let t=e;return t})(),La=(()=>{let e=class e extends is{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)(E(Ci))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ir=new C("",{providedIn:"root",factory:()=>({})}),sr=new C(""),ka=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(an)}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=oe(n.loadComponent()).pipe(S(ss),M(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),ve(()=>{this.componentLoaders.delete(n)})),s=new Gt(r,()=>new J).pipe(qt());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 Gt(o,()=>new J).pipe(qt());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Fa(t,e,i,n){return oe(t.loadChildren()).pipe(S(ss),$(r=>r instanceof Nr||Array.isArray(r)?g(r):x(e.compileModuleAsync(r))),S(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(sr,[],{optional:!0,self:!0}).flat()),{routes:o.map(nr),injector:s}}))}function $a(t){return t&&typeof t=="object"&&"default"in t}function ss(t){return $a(t)?t.default:t}var or=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:()=>f(_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=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),os=new C(""),as=new C("");function za(t,e,i){let n=t.get(as),r=t.get(j);return t.get(G).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));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=>{on(e,{injector:t})})}var Va=new C(""),cs=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new J,this.transitionAbortSubject=new J,this.configLoader=f(ka),this.environmentInjector=f(le),this.urlSerializer=f($t),this.rootContexts=f(_t),this.location=f(pt),this.inputBindingEnabled=f(tr,{optional:!0})!==null,this.titleStrategy=f(is),this.options=f(ir,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(or),this.createViewTransition=f(os,{optional:!0}),this.navigationErrorHandler=f(Va,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new kn(s)),r=s=>this.events.next(new Fn(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:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Xe,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),S(o=>P(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),_(o=>{let a=!1,u=!1;return g(o).pipe(_(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",k.SupersededByNewNavigation),Z;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(),h=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&h!=="reload"){let d="";return this.events.next(new se(c.id,this.urlSerializer.serialize(c.rawUrl),d,Ot.IgnoredSameUrlNavigation)),c.resolve(!1),Z}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return g(c).pipe(_(d=>{let v=this.transitions?.getValue();return this.events.next(new Ie(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),v!==this.transitions?.getValue()?Z:Promise.resolve(d)}),Pa(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),M(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=P(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let v=new Pt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(v)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:v,source:y,restoredState:O,extras:w}=c,R=new Ie(d,this.urlSerializer.serialize(v),y,O);this.events.next(R);let N=Ki(this.rootComponentType).snapshot;return this.currentTransition=o=P(p({},c),{targetSnapshot:N,urlAfterRedirects:v,extras:P(p({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=v,g(o)}else{let d="";return this.events.next(new se(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Ot.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Z}}),M(c=>{let l=new xn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),S(c=>(this.currentTransition=o=P(p({},c),{guards:Jo(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),aa(this.environmentInjector,c=>this.events.next(c)),M(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw kt(this.urlSerializer,c.guardsResult);let l=new Un(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Y(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",k.GuardRejected),!1)),An(c=>{if(c.guards.canActivateChecks.length)return g(c).pipe(M(l=>{let h=new jn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}),_(l=>{let h=!1;return g(l).pipe(Na(this.paramsInheritanceStrategy,this.environmentInjector),M({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(l,"",k.NoDataFromResolver)}}))}),M(l=>{let h=new Ln(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}))}),An(c=>{let l=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(M(v=>{h.component=v}),S(()=>{})));for(let v of h.children)d.push(...l(v));return d};return Wt(l(c.targetSnapshot.root)).pipe(Ht(null),me(1))}),An(()=>this.afterPreactivation()),_(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,h=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return h?x(h).pipe(S(()=>o)):g(o)}),S(c=>{let l=Bo(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=P(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),M(()=>{this.events.next(new Qe)}),Ho(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),me(1),M({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new K(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),yr(this.transitionAbortSubject.pipe(M(c=>{throw c}))),ve(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",k.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ge(c=>{if(u=!0,Qi(c))this.events.next(new H(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),Go(c)?this.events.next(new Ae(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Ye(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let h=z(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(h instanceof tt){let{message:d,cancellationCode:v}=kt(this.urlSerializer,h);this.events.next(new H(o.id,this.urlSerializer.serialize(o.extractedUrl),d,v)),this.events.next(new Ae(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(l);let d=n.errorHandler(c);o.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return Z}))}))}cancelNavigationTransition(n,r,s){let o=new H(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=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qa(t){return t!==Xe}var Ga=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:()=>f(Wa),providedIn:"root"});let t=e;return t})(),Qn=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 Qn{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Yt(e)))(s||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),us=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:()=>f(Xa),providedIn:"root"});let t=e;return t})(),Xa=(()=>{let e=class e extends us{constructor(){super(...arguments),this.location=f(pt),this.urlSerializer=f($t),this.options=f(ir,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(or),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ie,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ki(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 Ie)this.stateMemento=this.createStateMemento();else if(n instanceof se)this.rawUrlTree=r.initialUrl;else if(n instanceof Pt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof Qe?(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 H&&(n.code===k.GuardRejected||n.code===k.NoDataFromResolver)?this.restoreHistory(r):n instanceof Ye?this.restoreHistory(r,!0):n instanceof K&&(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=Yt(e)))(s||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ge=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ge||{});function Ka(t,e){t.events.pipe(Y(i=>i instanceof K||i instanceof H||i instanceof Ye||i instanceof se),S(i=>i instanceof K||i instanceof se?Ge.COMPLETE:(i instanceof H?i.code===k.Redirect||i.code===k.SupersededByNewNavigation:!1)?Ge.REDIRECTING:Ge.FAILED),Y(i=>i!==Ge.REDIRECTING),me(1)).subscribe(()=>{e()})}function Ha(t){throw t}var Ja={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Za={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Bt=(()=>{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.console=f(lt),this.stateManager=f(us),this.options=f(ir,{optional:!0})||{},this.pendingTasks=f(ut),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(cs),this.urlSerializer=f($t),this.location=f(pt),this.urlHandlingStrategy=f(or),this._events=new J,this.errorHandler=this.options.errorHandler||Ha,this.navigated=!1,this.routeReuseStrategy=f(Ga),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(sr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(tr,{optional:!0}),this.eventsSubscription=new ur,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 H&&r.code!==k.Redirect&&r.code!==k.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof K)this.navigated=!0;else if(r instanceof Ae){let a=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=p({info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||qa(s.source)},a);this.scheduleNavigation(u,Xe,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Qa(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),Xe,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(nr),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,h=null;switch(u){case"merge":h=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let v=s?s.snapshot:this.routerState.snapshot.root;d=qi(v)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Gi(d,n,h,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=Je(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Xe,null,r)}navigate(n,r={skipLocationChange:!1}){return Ya(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({},Ja):r===!1?s=p({},Za):s=r,Je(n))return Ii(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Ii(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((d,v)=>{u=d,c=v});let h=this.pendingTasks.add();return Ka(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),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(d=>Promise.reject(d))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ya(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new A(4008,!1)}function Qa(t){return!(t instanceof Qe)&&!(t instanceof Ae)}var xi=(()=>{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 J,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 K&&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:Ir(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)(V(Bt),V(pe),Tr("tabindex"),V(sn),V(en),V(un))},e.\u0275dir=at({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&Lr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ur("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ft],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ft],replaceUrl:[2,"replaceUrl","replaceUrl",ft],routerLink:"routerLink"},standalone:!0,features:[Pr,ct]});let t=e;return t})(),bu=(()=>{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 we,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof K&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Xt()).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=x(n).pipe(Xt()).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=ec(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)(V(Bt),V(en),V(sn),V(dt),V(xi,8))},e.\u0275dir=at({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&kr(o,xi,5),r&2){let a;Fr(a=$r())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ct]});let t=e;return t})();function ec(t){return!!t.paths}var ls=new C(""),tc=(()=>{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={},this.environmentInjector=f(le),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 Ie?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof K?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof se&&n.code===Ot.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 Nt&&(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(async()=>{await new Promise(s=>{setTimeout(()=>{s()}),on(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Nt(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Ar()},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function Eu(t,...e){return ye([{provide:sr,multi:!0,useValue:t},[],{provide:pe,useFactory:nc,deps:[Bt]},{provide:ht,multi:!0,useFactory:rc},e.map(i=>i.\u0275providers)])}function nc(t){return t.routerState.root}function hs(t,e){return{\u0275kind:t,\u0275providers:e}}function Cu(t={}){return hs(4,[{provide:ls,useFactory:()=>{let i=f(Kr),n=f(G),r=f(cs),s=f($t);return new tc(s,r,i,n,t)}}])}function rc(){let t=f(br);return e=>{let i=t.get(Ue);if(e!==i.components[0])return;let n=t.get(Bt),r=t.get(ic);t.get(sc)===1&&n.initialNavigation(),t.get(oc,null,Zt.Optional)?.setUpPreloading(),t.get(ls,null,Zt.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ic=new C("",{factory:()=>new J}),sc=new C("",{providedIn:"root",factory:()=>1});var oc=new C("");function Iu(t){let e=[{provide:os,useValue:za},{provide:as,useValue:p({skipNextTransition:!!t?.skipInitialTransition},t)}];return hs(9,e)}export{Rs as a,vc as b,yc as c,yi as d,Zc as e,Ci as f,Yc as g,xo as h,Ie as i,K as j,H as k,se as l,Ye as m,Nt as n,pe as o,zo as p,is as q,Ga as r,Qn as s,Bt as t,xi as u,bu as v,Eu as w,Cu as x,Iu as y};