import{$ as Pe,A as Ie,Aa as Z,B as Zr,C as Me,D as ce,E as En,F as Yr,G as Kr,H as Xr,I as q,J as Jr,Ja as ci,K as N,L as M,La as Y,M as Qr,Ma as O,N as v,O as Ye,P as ei,Q as I,R as Sn,S as w,T as f,U as Ke,V as ti,W as Xe,X as Ft,Xa as li,Y as bn,Z as Oe,_ as ni,a as p,aa as ne,ab as Ot,b as x,ba as An,bb as Pt,c as zr,cb as di,d as Rt,db as Nt,e as Vr,ea as Rn,eb as Je,f as Gr,fa as Fn,fb as hi,g as mn,ga as Tn,gb as Pn,h as Dn,ha as Ce,hb as fi,i as vn,ia as ri,ib as Le,j as ye,ja as In,jb as pi,k as H,ka as ii,kb as gi,l as ae,la as re,lb as Nn,m as $,ma as Mn,n as g,na as Tt,o as Ze,p as Hr,pa as Ne,q as Wr,r as b,ra as le,s as yn,sa as si,t as W,ta as oi,u as qr,ua as On,v as wn,va as It,w as ue,wa as ai,x as Te,xa as ui,y as we,ya as Mt,z as Cn}from"./chunk-D5HXR3C2.js";var bi=null;function _e(){return bi}function Ai(t){bi??=t}var zt=class{};var j=new I(""),Ri=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(qs),providedIn:"platform"});let t=e;return t})();var qs=(()=>{let e=class e extends Ri{constructor(){super(),this._doc=f(j),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _e().getBaseHref(this._doc)}onPopState(n){let r=_e().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_e().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Fi(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function mi(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Ee(t){return t&&t[0]!=="?"?"?"+t:t}var Gt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Ti),providedIn:"root"});let t=e;return t})(),Zs=new I(""),Ti=(()=>{let e=class e extends Gt{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??f(j).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Fi(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ee(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+Ee(o));this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+Ee(o));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(w(Ri),w(Zs,8))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Qe=(()=>{let e=class e{constructor(n){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Xs(mi(Di(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ee(r))}normalize(n){return e.stripTrailingSlash(Ks(this._basePath,Di(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ee(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ee(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=Ee,e.joinWithSlash=Fi,e.stripTrailingSlash=mi,e.\u0275fac=function(r){return new(r||e)(w(Gt))},e.\u0275prov=v({token:e,factory:()=>Ys(),providedIn:"root"});let t=e;return t})();function Ys(){return new Qe(w(Gt))}function Ks(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function Di(t){return t.replace(/\/index.html$/,"")}function Xs(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}var U=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(U||{}),R=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(R||{}),z=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(z||{}),de={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Js(t){return Y(t)[O.LocaleId]}function Qs(t,e,i){let n=Y(t),r=[n[O.DayPeriodsFormat],n[O.DayPeriodsStandalone]],s=K(r,e);return K(s,i)}function eo(t,e,i){let n=Y(t),r=[n[O.DaysFormat],n[O.DaysStandalone]],s=K(r,e);return K(s,i)}function to(t,e,i){let n=Y(t),r=[n[O.MonthsFormat],n[O.MonthsStandalone]],s=K(r,e);return K(s,i)}function no(t,e){let n=Y(t)[O.Eras];return K(n,e)}function Lt(t,e){let i=Y(t);return K(i[O.DateFormat],e)}function _t(t,e){let i=Y(t);return K(i[O.TimeFormat],e)}function kt(t,e){let n=Y(t)[O.DateTimeFormat];return K(n,e)}function Ht(t,e){let i=Y(t),n=i[O.NumberSymbols][e];if(typeof n>"u"){if(e===de.CurrencyDecimal)return i[O.NumberSymbols][de.Decimal];if(e===de.CurrencyGroup)return i[O.NumberSymbols][de.Group]}return n}function Ii(t){if(!t[O.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[O.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ro(t){let e=Y(t);return Ii(e),(e[O.ExtraData][2]||[]).map(n=>typeof n=="string"?Ln(n):[Ln(n[0]),Ln(n[1])])}function io(t,e,i){let n=Y(t);Ii(n);let r=[n[O.ExtraData][0],n[O.ExtraData][1]],s=K(r,e)||[];return K(s,i)||[]}function K(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function Ln(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var so=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xt={},oo=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,se=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(se||{}),S=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(S||{}),E=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(E||{});function ao(t,e,i,n){let r=Do(t);e=ie(i,e)||e;let o=[],a;for(;e;)if(a=oo.exec(e),a){o=o.concat(a.slice(1));let l=o.pop();if(!l)break;e=l}else{o.push(e);break}let c=r.getTimezoneOffset();n&&(c=Oi(n,c),r=mo(r,n,!0));let u="";return o.forEach(l=>{let h=po(l);u+=h?h(r,i,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Vt(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function ie(t,e){let i=Js(t);if(xt[i]??={},xt[i][e])return xt[i][e];let n="";switch(e){case"shortDate":n=Lt(t,z.Short);break;case"mediumDate":n=Lt(t,z.Medium);break;case"longDate":n=Lt(t,z.Long);break;case"fullDate":n=Lt(t,z.Full);break;case"shortTime":n=_t(t,z.Short);break;case"mediumTime":n=_t(t,z.Medium);break;case"longTime":n=_t(t,z.Long);break;case"fullTime":n=_t(t,z.Full);break;case"short":let r=ie(t,"shortTime"),s=ie(t,"shortDate");n=Ut(kt(t,z.Short),[r,s]);break;case"medium":let o=ie(t,"mediumTime"),a=ie(t,"mediumDate");n=Ut(kt(t,z.Medium),[o,a]);break;case"long":let c=ie(t,"longTime"),u=ie(t,"longDate");n=Ut(kt(t,z.Long),[c,u]);break;case"full":let l=ie(t,"fullTime"),h=ie(t,"fullDate");n=Ut(kt(t,z.Full),[l,h]);break}return n&&(xt[i][e]=n),n}function Ut(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function J(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,s=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===S.Hours)a===0&&i===-12&&(a=12);else if(t===S.FractionalSeconds)return uo(a,e);let c=Ht(o,de.MinusSign);return J(a,e,c,n,r)}}function co(t,e){switch(t){case S.FullYear:return e.getFullYear();case S.Month:return e.getMonth();case S.Date:return e.getDate();case S.Hours:return e.getHours();case S.Minutes:return e.getMinutes();case S.Seconds:return e.getSeconds();case S.FractionalSeconds:return e.getMilliseconds();case S.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function T(t,e,i=U.Format,n=!1){return function(r,s){return lo(r,s,t,e,i,n)}}function lo(t,e,i,n,r,s){switch(i){case E.Months:return to(e,r,n)[t.getMonth()];case E.Days:return eo(e,r,n)[t.getDay()];case E.DayPeriods:let o=t.getHours(),a=t.getMinutes();if(s){let u=ro(e),l=io(e,r,n),h=u.findIndex(d=>{if(Array.isArray(d)){let[D,F]=d,k=o>=D.hours&&a>=D.minutes,C=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case se.Short:return(r>=0?"+":"")+J(o,2,s)+J(Math.abs(r%60),2,s);case se.ShortGMT:return"GMT"+(r>=0?"+":"")+J(o,1,s);case se.Long:return"GMT"+(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);case se.Extended:return n===0?"Z":(r>=0?"+":"")+J(o,2,s)+":"+J(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}var ho=0,$t=4;function fo(t){let e=Vt(t,ho,1).getDay();return Vt(t,0,1+(e<=$t?$t:$t+7)-e)}function Mi(t){let e=t.getDay(),i=e===0?-3:$t-e;return Vt(t.getFullYear(),t.getMonth(),t.getDate()+i)}function _n(t,e=!1){return function(i,n){let r;if(e){let s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,o=i.getDate();r=1+Math.floor((o+s)/7)}else{let s=Mi(i),o=fo(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return J(r,t,Ht(n,de.MinusSign))}}function jt(t,e=!1){return function(i,n){let s=Mi(i).getFullYear();return J(s,t,Ht(n,de.MinusSign),e)}}var kn={};function po(t){if(kn[t])return kn[t];let e;switch(t){case"G":case"GG":case"GGG":e=T(E.Eras,R.Abbreviated);break;case"GGGG":e=T(E.Eras,R.Wide);break;case"GGGGG":e=T(E.Eras,R.Narrow);break;case"y":e=P(S.FullYear,1,0,!1,!0);break;case"yy":e=P(S.FullYear,2,0,!0,!0);break;case"yyy":e=P(S.FullYear,3,0,!1,!0);break;case"yyyy":e=P(S.FullYear,4,0,!1,!0);break;case"Y":e=jt(1);break;case"YY":e=jt(2,!0);break;case"YYY":e=jt(3);break;case"YYYY":e=jt(4);break;case"M":case"L":e=P(S.Month,1,1);break;case"MM":case"LL":e=P(S.Month,2,1);break;case"MMM":e=T(E.Months,R.Abbreviated);break;case"MMMM":e=T(E.Months,R.Wide);break;case"MMMMM":e=T(E.Months,R.Narrow);break;case"LLL":e=T(E.Months,R.Abbreviated,U.Standalone);break;case"LLLL":e=T(E.Months,R.Wide,U.Standalone);break;case"LLLLL":e=T(E.Months,R.Narrow,U.Standalone);break;case"w":e=_n(1);break;case"ww":e=_n(2);break;case"W":e=_n(1,!0);break;case"d":e=P(S.Date,1);break;case"dd":e=P(S.Date,2);break;case"c":case"cc":e=P(S.Day,1);break;case"ccc":e=T(E.Days,R.Abbreviated,U.Standalone);break;case"cccc":e=T(E.Days,R.Wide,U.Standalone);break;case"ccccc":e=T(E.Days,R.Narrow,U.Standalone);break;case"cccccc":e=T(E.Days,R.Short,U.Standalone);break;case"E":case"EE":case"EEE":e=T(E.Days,R.Abbreviated);break;case"EEEE":e=T(E.Days,R.Wide);break;case"EEEEE":e=T(E.Days,R.Narrow);break;case"EEEEEE":e=T(E.Days,R.Short);break;case"a":case"aa":case"aaa":e=T(E.DayPeriods,R.Abbreviated);break;case"aaaa":e=T(E.DayPeriods,R.Wide);break;case"aaaaa":e=T(E.DayPeriods,R.Narrow);break;case"b":case"bb":case"bbb":e=T(E.DayPeriods,R.Abbreviated,U.Standalone,!0);break;case"bbbb":e=T(E.DayPeriods,R.Wide,U.Standalone,!0);break;case"bbbbb":e=T(E.DayPeriods,R.Narrow,U.Standalone,!0);break;case"B":case"BB":case"BBB":e=T(E.DayPeriods,R.Abbreviated,U.Format,!0);break;case"BBBB":e=T(E.DayPeriods,R.Wide,U.Format,!0);break;case"BBBBB":e=T(E.DayPeriods,R.Narrow,U.Format,!0);break;case"h":e=P(S.Hours,1,-12);break;case"hh":e=P(S.Hours,2,-12);break;case"H":e=P(S.Hours,1);break;case"HH":e=P(S.Hours,2);break;case"m":e=P(S.Minutes,1);break;case"mm":e=P(S.Minutes,2);break;case"s":e=P(S.Seconds,1);break;case"ss":e=P(S.Seconds,2);break;case"S":e=P(S.FractionalSeconds,1);break;case"SS":e=P(S.FractionalSeconds,2);break;case"SSS":e=P(S.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Bt(se.Short);break;case"ZZZZZ":e=Bt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Bt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Bt(se.Long);break;default:return null}return kn[t]=e,e}function Oi(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function go(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function mo(t,e,i){let n=i?-1:1,r=t.getTimezoneOffset(),s=Oi(e,r);return go(t,n*(s-r))}function Do(t){if(vi(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,s=1,o=1]=t.split("-").map(a=>+a);return Vt(r,s-1,o)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(so))return vo(n)}let e=new Date(t);if(!vi(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function vo(t){let e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return s.call(e,o,a,c,u),e}function vi(t){return t instanceof Date&&!isNaN(t.valueOf())}function Wt(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var _c=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new xn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){yi("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){yi("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(le(It),le(si))},e.\u0275dir=Ft({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),xn=class{constructor(){this.$implicit=null,this.ngIf=null}};function yi(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Qr(e)}'.`)}function Pi(t,e){return new M(2100,!1)}var Un=class{createSubscription(e,i){return Nn(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){Nn(()=>e.unsubscribe())}},Bn=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},yo=new Bn,wo=new Un,kc=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Pt(n))return yo;if(di(n))return wo;throw Pi(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(le(Le,16))},e.\u0275pipe=bn({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var Co="mediumDate",Eo=new I(""),So=new I(""),xc=(()=>{let e=class e{constructor(n,r,s){this.locale=n,this.defaultTimezone=r,this.defaultOptions=s}transform(n,r,s,o){if(n==null||n===""||n!==n)return null;try{let a=r??this.defaultOptions?.dateFormat??Co,c=s??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ao(n,a,o||this.locale,c)}catch(a){throw Pi(e,a.message)}}};e.\u0275fac=function(r){return new(r||e)(le(fi,16),le(Eo,24),le(So,24))},e.\u0275pipe=bn({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var bo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Xe({type:e}),e.\u0275inj=Ye({});let t=e;return t})(),Ni="browser",Ao="server";function et(t){return t===Ao}var ke=class{};var nt=class{},rt=class{},Q=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 Vn=class{encodeKey(e){return Li(e)}encodeValue(e){return Li(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function To(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))],c=i.get(o)||[];c.push(a),i.set(o,c)}),i}var Io=/%(\d[a-f0-9])/gi,Mo={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Li(t){return encodeURIComponent(t).replace(Io,(e,i)=>Mo[i]??e)}function qt(t){return`${t}`}var fe=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Vn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=To(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(qt):[qt(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(qt(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(qt(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 Gn=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 Oo(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function _i(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ki(t){return typeof Blob<"u"&&t instanceof Blob}function xi(t){return typeof FormData<"u"&&t instanceof FormData}function Po(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var tt=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(Oo(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 Q,this.context??=new Gn,!this.params)this.params=new fe,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":ad.set(D,e.setHeaders[D]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,D)=>d.set(D,e.setParams[D]),l)),new t(i,n,o,{params:l,headers:u,context:h,reportProgress:c,responseType:r,withCredentials:a,transferCache:s})}},pe=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(pe||{}),it=class{constructor(e,i=st.Ok,n="OK"){this.headers=e.headers||new Q,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}},Yt=class t extends it{constructor(e={}){super(e),this.type=pe.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})}},Se=class t extends it{constructor(e={}){super(e),this.type=pe.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})}},he=class extends it{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}},st=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(st||{});function $n(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 No=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof tt)o=n;else{let u;s.headers instanceof Q?u=s.headers:u=new Q(s.headers);let l;s.params&&(s.params instanceof fe?l=s.params:l=new fe({fromObject:s.params})),o=new tt(n,r,s.body!==void 0?s.body:null,{headers:u,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=g(o).pipe(we(u=>this.handler.handle(u)));if(n instanceof tt||s.observe==="events")return a;let c=a.pipe(ue(u=>u instanceof Se));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(b(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(b(u=>u.body))}case"response":return c;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 fe().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,$n(s,r))}post(n,r,s={}){return this.request("POST",n,$n(s,r))}put(n,r,s={}){return this.request("PUT",n,$n(s,r))}};e.\u0275fac=function(r){return new(r||e)(w(nt))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Lo=/^\)\]\}',?\n/,_o="X-Request-URL";function Ui(t){if(t.url)return t.url;let e=_o.toLocaleLowerCase();return t.headers.get(e)}var zn=(()=>{let e=class e{constructor(){this.fetchImpl=f(Hn,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=f(Z)}handle(n){return new mn(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(Wn,o=>r.error(new he({error:o}))),()=>s.abort()})}doRequest(n,r,s){return Rt(this,null,function*(){let o=this.createRequestInit(n),a;try{let F=this.fetchImpl(n.urlWithParams,p({signal:r},o));ko(F),s.next({type:pe.Sent}),a=yield F}catch(F){s.error(new he({error:F,status:F.status??0,statusText:F.statusText,url:n.urlWithParams,headers:F.headers}));return}let c=new Q(a.headers),u=a.statusText,l=Ui(a)??n.urlWithParams,h=a.status,d=null;if(n.reportProgress&&s.next(new Yt({headers:c,status:h,statusText:u,url:l})),a.body){let F=a.headers.get("content-length"),k=[],C=a.body.getReader(),y=0,B,oe,L=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Rt(this,null,function*(){for(;;){let{done:ve,value:qe}=yield C.read();if(ve)break;if(k.push(qe),y+=qe.length,n.reportProgress){oe=n.responseType==="text"?(oe??"")+(B??=new TextDecoder).decode(qe,{stream:!0}):void 0;let $r=()=>s.next({type:pe.DownloadProgress,total:F?+F:void 0,loaded:y,partialText:oe});L?L.run($r):$r()}}}));let We=this.concatChunks(k,y);try{let ve=a.headers.get("Content-Type")??"";d=this.parseBody(n,We,ve)}catch(ve){s.error(new he({error:ve,headers:new Q(a.headers),status:a.status,statusText:a.statusText,url:Ui(a)??n.urlWithParams}));return}}h===0&&(h=d?st.Ok:0),h>=200&&h<300?(s.next(new Se({body:d,headers:c,status:h,statusText:u,url:l})),s.complete()):s.error(new he({error:d,headers:c,status:h,statusText:u,url:l}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Lo,"");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=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Hn=class{};function Wn(){}function ko(t){t.then(Wn,Wn)}function xo(t,e){return e(t)}function Uo(t,e,i){return(n,r)=>ne(i,()=>e(n,s=>t(s,r)))}var Zi=new I(""),Yi=new I(""),Ki=new I("");var Bi=(()=>{let e=class e extends nt{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=f(Mt);let s=f(Ki,{optional:!0});this.backend=s??n}handle(n){if(this.chain===null){let s=Array.from(new Set([...this.injector.get(Zi),...this.injector.get(Yi,[])]));this.chain=s.reduceRight((o,a)=>Uo(o,a,this.injector),xo)}let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(Me(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(w(rt),w(Pe))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();var Bo=/^\)\]\}',?\n/;function jo(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ji=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new M(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?$(r.\u0275loadImpl()):g(null)).pipe(q(()=>new mn(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((C,y)=>a.setRequestHeader(C,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let C=n.detectContentTypeHeader();C!==null&&a.setRequestHeader("Content-Type",C)}if(n.responseType){let C=n.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let C=a.statusText||"OK",y=new Q(a.getAllResponseHeaders()),B=jo(a)||n.url;return u=new Yt({headers:y,status:a.status,statusText:C,url:B}),u},h=()=>{let{headers:C,status:y,statusText:B,url:oe}=l(),L=null;y!==st.NoContent&&(L=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=L?st.Ok:0);let We=y>=200&&y<300;if(n.responseType==="json"&&typeof L=="string"){let ve=L;L=L.replace(Bo,"");try{L=L!==""?JSON.parse(L):null}catch(qe){L=ve,We&&(We=!1,L={error:qe,text:L})}}We?(o.next(new Se({body:L,headers:C,status:y,statusText:B,url:oe||void 0})),o.complete()):o.error(new he({error:L,headers:C,status:y,statusText:B,url:oe||void 0}))},d=C=>{let{url:y}=l(),B=new he({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});o.error(B)},D=!1,F=C=>{D||(o.next(l()),D=!0);let y={type:pe.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(y.total=C.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),o.next(y)},k=C=>{let y={type:pe.UploadProgress,loaded:C.loaded};C.lengthComputable&&(y.total=C.total),o.next(y)};return a.addEventListener("load",h),a.addEventListener("error",d),a.addEventListener("timeout",d),a.addEventListener("abort",d),n.reportProgress&&(a.addEventListener("progress",F),c!==null&&a.upload&&a.upload.addEventListener("progress",k)),a.send(c),o.next({type:pe.Sent}),()=>{a.removeEventListener("error",d),a.removeEventListener("abort",d),a.removeEventListener("load",h),a.removeEventListener("timeout",d),n.reportProgress&&(a.removeEventListener("progress",F),c!==null&&a.upload&&a.upload.removeEventListener("progress",k)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(w(ke))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Xi=new I(""),$o="XSRF-TOKEN",zo=new I("",{providedIn:"root",factory:()=>$o}),Vo="X-XSRF-TOKEN",Go=new I("",{providedIn:"root",factory:()=>Vo}),Kt=class{},Ho=(()=>{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=Wt(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(w(j),w(re),w(zo))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function Wo(t,e){let i=t.url.toLowerCase();if(!f(Xi)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=f(Kt).getToken(),r=f(Go);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Ji=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}(Ji||{});function qo(t,e){return{\u0275kind:t,\u0275providers:e}}function Zc(...t){let e=[No,ji,Bi,{provide:nt,useExisting:Bi},{provide:rt,useExisting:ji},{provide:Zi,useValue:Wo,multi:!0},{provide:Xi,useValue:!0},{provide:Kt,useClass:Ho}];for(let i of t)e.push(...i.\u0275providers);return Oe(e)}function Yc(){return qo(Ji.Fetch,[zn,{provide:rt,useExisting:zn},{provide:Ki,useExisting:zn}])}var $i="b",zi="h",Vi="s",Gi="st",Hi="u",Wi="rt",Zt=new I(""),Zo=["GET","HEAD"];function Yo(t,e){let h=f(Zt),{isCacheActive:i}=h,n=zr(h,["isCacheActive"]),{transferCache:r,method:s}=t;if(!i||s==="POST"&&!n.includePostRequests&&!r||s!=="POST"&&!Zo.includes(s)||r===!1||n.filter?.(t)===!1)return e(t);let o=f(Tt),a=Xo(t),c=o.get(a,null),u=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(u=r.includeHeaders),c){let{[$i]:d,[Wi]:D,[zi]:F,[Vi]:k,[Gi]:C,[Hi]:y}=c,B=d;switch(D){case"arraybuffer":B=new TextEncoder().encode(d).buffer;break;case"blob":B=new Blob([d]);break}let oe=new Q(F);return g(new Se({body:B,headers:oe,status:k,statusText:C,url:y}))}let l=et(f(re));return e(t).pipe(N(d=>{d instanceof Se&&l&&o.set(a,{[$i]:d.body,[zi]:Ko(d.headers,u),[Vi]:d.status,[Gi]:d.statusText,[Hi]:d.url||"",[Wi]:t.responseType})}))}function Ko(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 qi(t){return[...t.keys()].sort().map(e=>`${e}=${t.getAll(e)}`).join("&")}function Xo(t){let{params:e,method:i,responseType:n,url:r}=t,s=qi(e),o=t.serializeBody();o instanceof URLSearchParams?o=qi(o):typeof o!="string"&&(o="");let a=[i,n,r,o,s].join("|"),c=Jo(a);return c}function Jo(t){let e=0;for(let i of t)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function Qi(t){return[{provide:Zt,useFactory:()=>(On("NgHttpTransferCache"),p({isCacheActive:!0},t))},{provide:Yi,useValue:Yo,multi:!0,deps:[Tt,Zt]},{provide:Nt,multi:!0,useFactory:()=>{let e=f(Je),i=f(Zt);return()=>{hi(e).then(()=>{i.isCacheActive=!1})}}}]}var Yn=class extends zt{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kn=class t extends Yn{static makeCurrent(){Ai(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=ta();return i==null?null:na(i)}resetBaseElement(){ot=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wt(document.cookie,e)}},ot=null;function ta(){return ot=ot||document.querySelector("base"),ot?ot.getAttribute("href"):null}function na(t){return new URL(t,document.baseURI).pathname}var ra=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Xn=new I(""),rs=(()=>{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 M(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(w(Xn),w(Z))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Xt=class{constructor(e){this._doc=e}},qn="ng-app-id",is=(()=>{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=et(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[${qn}="${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(qn),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(qn,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)(w(j),w(In),w(Mn,8),w(re))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),Zn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},er=/%COMP%/g,ss="%COMP%",ia=`_nghost-${ss}`,sa=`_ngcontent-${ss}`,oa=!0,aa=new I("",{providedIn:"root",factory:()=>oa});function ua(t){return sa.replace(er,t)}function ca(t){return ia.replace(er,t)}function os(t,e){return e.map(i=>i.replace(er,t))}var es=(()=>{let e=class e{constructor(n,r,s,o,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=et(c),this.defaultRenderer=new at(n,a,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ke.ShadowDom&&(r=x(p({},r),{encapsulation:Ke.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof Jt?s.applyToHost(n):s instanceof ut&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ke.Emulated:o=new Jt(u,l,r,this.appId,h,a,c,d);break;case Ke.ShadowDom:return new Jn(u,l,n,r,a,c,this.nonce,d);default:o=new ut(u,l,r,h,a,c,d);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(w(rs),w(is),w(In),w(aa),w(j),w(re),w(Z),w(Mn))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),at=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(Zn[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ts(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(ts(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 M(-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=Zn[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Zn[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&(Ne.DashCase|Ne.Important)?e.style.setProperty(i,n,r&Ne.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Ne.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=_e().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 ts(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Jn=class extends at{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=os(r.id,r.styles);for(let l of u){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)}},ut=class extends at{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?os(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Jt=class extends ut{constructor(e,i,n,r,s,o,a,c){let u=r+"-"+n.id;super(e,i,n,s,o,a,c,u),this.contentAttr=ua(u),this.hostAttr=ca(u)}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}},la=(()=>{let e=class e extends Xt{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)(w(j))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})(),ns=["alt","control","meta","shift"],da={"\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"},ha={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},fa=(()=>{let e=class e extends Xt{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(()=>_e().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="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),ns.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 u={};return u.domEventName=s,u.fullKey=a,u}static matchEventFullKeyCode(n,r){let s=da[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"),ns.forEach(a=>{if(a!==s){let c=ha[a];c(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)(w(j))},e.\u0275prov=v({token:e,factory:e.\u0275fac});let t=e;return t})();function bl(t,e){return pi(p({rootComponent:t},pa(e)))}function pa(t){return{appProviders:[...ya,...t?.providers??[]],platformProviders:va}}function ga(){Kn.makeCurrent()}function ma(){return new Tn}function Da(){return ri(document),document}var va=[{provide:re,useValue:Ni},{provide:ii,useValue:ga,multi:!0},{provide:j,useFactory:Da,deps:[]}];var ya=[{provide:ni,useValue:"root"},{provide:Tn,useFactory:ma,deps:[]},{provide:Xn,useClass:la,multi:!0,deps:[j,Z,re]},{provide:Xn,useClass:fa,multi:!0,deps:[j]},es,is,rs,{provide:oi,useExisting:es},{provide:ke,useClass:ra,deps:[]},[]];var as=(()=>{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)(w(j))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Qn=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t}(Qn||{});function Al(...t){let e=[],i=new Set,n=i.has(Qn.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:s}of t)i.add(s),r.length&&e.push(r);return Oe([[],gi(),i.has(Qn.NoHttpTransferCache)||n?[]:Qi({}),e])}var m="primary",St=Symbol("RouteTitle"),sr=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 $e(t){return new sr(t)}function Ca(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===r)}else return t===e}function ps(t){return t.length>0?t[t.length-1]:null}function De(t){return Hr(t)?t:Pt(t)?$(Promise.resolve(t)):g(t)}var Sa={exact:ms,subset:Ds},gs={exact:ba,subset:Aa,ignored:()=>!0};function us(t,e,i){return Sa[i.paths](t.root,e.root,i.matrixParams)&&gs[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function ba(t,e){return ee(t,e)}function ms(t,e,i){if(!Ae(t.segments,e.segments)||!tn(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ms(t.children[n],e.children[n],i))return!1;return!0}function Aa(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>fs(t[i],e[i]))}function Ds(t,e,i){return vs(t,e,e.segments,i)}function vs(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Ae(r,i)||e.hasChildren()||!tn(r,i,n))}else if(t.segments.length===i.length){if(!Ae(t.segments,i)||!tn(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!Ds(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!Ae(t.segments,r)||!tn(t.segments,r,n)||!t.children[m]?!1:vs(t.children[m],e,s,n)}}function tn(t,e,i){return e.every((n,r)=>gs[i](t[r].parameters,n.parameters))}var ge=class{constructor(e=new A([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=$e(this.queryParams),this._queryParamMap}toString(){return Ta.serialize(this)}},A=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 nn(this)}},be=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=$e(this.parameters),this._parameterMap}toString(){return ws(this)}};function Ra(t,e){return Ae(t,e)&&t.every((i,n)=>ee(i.parameters,e[n].parameters))}function Ae(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Fa(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 Pr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>new sn,providedIn:"root"});let t=e;return t})(),sn=class{parse(e){let i=new ur(e);return new ge(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ct(e.root,!0)}`,n=Oa(e.queryParams),r=typeof e.fragment=="string"?`#${Ia(e.fragment)}`:"";return`${i}${n}${r}`}},Ta=new sn;function nn(t){return t.segments.map(e=>ws(e)).join("/")}function ct(t,e){if(!t.hasChildren())return nn(t);if(e){let i=t.children[m]?ct(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==m&&n.push(`${r}:${ct(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Fa(t,(n,r)=>r===m?[ct(t.children[m],!1)]:[`${r}:${ct(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${nn(t)}/${i[0]}`:`${nn(t)}/(${i.join("//")})`}}function ys(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qt(t){return ys(t).replace(/%3B/gi,";")}function Ia(t){return encodeURI(t)}function ar(t){return ys(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rn(t){return decodeURIComponent(t)}function cs(t){return rn(t.replace(/\+/g,"%20"))}function ws(t){return`${ar(t.path)}${Ma(t.parameters)}`}function Ma(t){return Object.entries(t).map(([e,i])=>`;${ar(e)}=${ar(i)}`).join("")}function Oa(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Qt(i)}=${Qt(r)}`).join("&"):`${Qt(i)}=${Qt(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var Pa=/^[^\/()?;#]+/;function tr(t){let e=t.match(Pa);return e?e[0]:""}var Na=/^[^\/()?;=#]+/;function La(t){let e=t.match(Na);return e?e[0]:""}var _a=/^[^=?&#]+/;function ka(t){let e=t.match(_a);return e?e[0]:""}var xa=/^[^&#]+/;function Ua(t){let e=t.match(xa);return e?e[0]:""}var ur=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new A([],{}):new A([],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 A(e,i)),n}parseSegment(){let e=tr(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new be(rn(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=La(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=tr(this.remaining);r&&(n=r,this.capture(n))}e[rn(i)]=rn(n)}parseQueryParam(e){let i=ka(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=Ua(this.remaining);o&&(n=o,this.capture(n))}let r=cs(i),s=cs(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=tr(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(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 A([],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 M(4011,!1)}};function Cs(t){return t.segments.length>0?new A([],{[m]:t}):t}function Es(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=Es(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 A(t.segments,e);return Ba(i)}function Ba(t){if(t.numberOfChildren===1&&t.children[m]){let e=t.children[m];return new A(t.segments.concat(e.segments),e.children)}return t}function ze(t){return t instanceof ge}function ja(t,e,i=null,n=null){let r=Ss(t);return bs(r,e,i,n)}function Ss(t){let e;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new A(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=Cs(n);return e??r}function bs(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return nr(r,r,r,i,n);let s=$a(e);if(s.toRoot())return nr(r,r,new A([],{}),i,n);let o=za(s,r,t),a=o.processChildren?ht(o.segmentGroup,o.index,s.commands):Rs(o.segmentGroup,o.index,s.commands);return nr(r,o.segmentGroup,a,i,n)}function on(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function gt(t){return typeof t=="object"&&t!=null&&t.outlets}function nr(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===e?o=i:o=As(t,e,i);let a=Cs(Es(o));return new ge(a,s,r)}function As(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=As(s,e,i)}),new A(t.segments,n)}var an=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&on(n[0]))throw new M(4003,!1);let r=n.find(gt);if(r&&r!==ps(n))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $a(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new an(!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(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new an(i,e,n)}var Be=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function za(t,e,i){if(t.isAbsolute)return new Be(e,!0,0);if(!i)return new Be(e,!1,NaN);if(i.parent===null)return new Be(i,!0,0);let n=on(t.commands[0])?0:1,r=i.segments.length-1+n;return Va(i,r,t.numberOfDoubleDots)}function Va(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new M(4005,!1);r=n.segments.length}return new Be(n,!1,r-s)}function Ga(t){return gt(t[0])?t[0].outlets:{[m]:t}}function Rs(t,e,i){if(t??=new A([],{}),t.segments.length===0&&t.hasChildren())return ht(t,e,i);let n=Ha(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexs!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=ht(t.children[m],e,i);return new A(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=Rs(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new A(t.segments,r)}}function Ha(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=t.segments[r],a=i[n];if(gt(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ds(c,u,o))return s;n+=2}else{if(!ds(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function cr(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=cr(new A([],{}),0,n))}),e}function ls(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function ds(t,e,i){return t==i.path&&ee(e,i.parameters)}var ft="imperative",_=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}(_||{}),X=class{constructor(e,i){this.id=e,this.url=i}},mt=class extends X{constructor(e,i,n="imperative",r=null){super(e,i),this.type=_.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Re=class extends X{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=_.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},G=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(G||{}),lr=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(lr||{}),me=class extends X{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Fe=class extends X{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=_.NavigationSkipped}},Dt=class extends X{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=_.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},un=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hr=class extends X{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=_.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},fr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pr=class extends X{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=_.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gr=class{constructor(e){this.route=e,this.type=_.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mr=class{constructor(e){this.route=e,this.type=_.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Dr=class{constructor(e){this.snapshot=e,this.type=_.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vr=class{constructor(e){this.snapshot=e,this.type=_.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yr=class{constructor(e){this.snapshot=e,this.type=_.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wr=class{constructor(e){this.snapshot=e,this.type=_.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var vt=class{},yt=class{constructor(e){this.url=e}};var Cr=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pn,this.attachRef=null}},pn=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Cr,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cn=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=Er(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Er(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Sr(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Sr(e,this._root).map(i=>i.value)}};function Er(t,e){if(t===e.value)return e;for(let i of e.children){let n=Er(t,i);if(n)return n}return null}function Sr(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Sr(t,i);if(n.length)return n.unshift(e),n}return[]}var V=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Ue(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var ln=class extends cn{constructor(e,i){super(e),this.snapshot=i,Lr(this,e)}toString(){return this.snapshot.toString()}};function Fs(t){let e=qa(t),i=new H([new be("",{})]),n=new H({}),r=new H({}),s=new H({}),o=new H(""),a=new Ve(i,n,s,o,r,m,t,e.root);return a.snapshot=e.root,new ln(new V(a,[]),e)}function qa(t){let e={},i={},n={},r="",s=new wt([],e,n,r,i,m,t,null,{});return new dn("",new V(s,[]))}var Ve=class{constructor(e,i,n,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(b(u=>u[St]))??g(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(b(e=>$e(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(e=>$e(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Nr(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&&Is(r)&&(n.resolve[St]=r.title),n}var wt=class{get title(){return this.data?.[St]}constructor(e,i,n,r,s,o,a,c,u){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=$e(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$e(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}')`}},dn=class extends cn{constructor(e,i){super(i),this.url=e,Lr(this,i)}toString(){return Ts(this._root)}};function Lr(t,e){e.value._routerState=t,e.children.forEach(i=>Lr(t,i))}function Ts(t){let e=t.children.length>0?` { ${t.children.map(Ts).join(", ")} } `:"";return`${t.value}${e}`}function rr(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,ee(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),ee(e.params,i.params)||t.paramsSubject.next(i.params),Ea(e.url,i.url)||t.urlSubject.next(i.url),ee(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function br(t,e){let i=ee(t.params,e.params)&&Ra(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||br(t.parent,e.parent))}function Is(t){return typeof t.title=="string"||t.title===null}var Za=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=f(pn),this.location=f(It),this.changeDetector=f(Le),this.environmentInjector=f(Pe),this.inputBinder=f(_r,{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 M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(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 M(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Ar(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Ft({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[An]});let t=e;return t})(),Ar=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===Ve?this.route:e===pn?this.childContexts:this.parent.get(e,i)}},_r=new I("");function Ya(t,e,i){let n=Ct(t,e._root,i?i._root:void 0);return new ln(n,e)}function Ct(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=Ka(t,e,i);return new V(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=>Ct(t,a)),o}}let n=Xa(e.value),r=e.children.map(s=>Ct(t,s));return new V(n,r)}}function Ka(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Ct(t,n,r);return Ct(t,n)})}function Xa(t){return new Ve(new H(t.url),new H(t.params),new H(t.queryParams),new H(t.fragment),new H(t.data),t.outlet,t.component,t)}var Ms="ngNavigationCancelingError";function Os(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=ze(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Ps(!1,G.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Ps(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Ms]=!0,i.cancellationCode=e,i}function Ja(t){return Ns(t)&&ze(t.url)}function Ns(t){return!!t&&t[Ms]}var Qa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ti({type:e,selectors:[["ng-component"]],standalone:!0,features:[li],decls:1,vars:0,template:function(r,s){r&1&&ci(0,"router-outlet")},dependencies:[Za],encapsulation:2});let t=e;return t})();function eu(t,e){return t.providers&&!t._injector&&(t._injector=ui(t.providers,e,`Route: ${t.path}`)),t._injector??e}function kr(t){let e=t.children&&t.children.map(kr),i=e?x(p({},t),{children:e}):p({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=Qa),i}function te(t){return t.outlet||m}function tu(t,e){let i=t.filter(n=>te(n)===e);return i.push(...t.filter(n=>te(n)!==e)),i}function bt(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 nu=(t,e,i,n)=>b(r=>(new Rr(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Rr=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),rr(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Ue(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=Ue(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=Ue(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=Ue(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new wr(s.value.snapshot))}),e.children.length&&this.forwardEvent(new vr(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(rr(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),rr(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=bt(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},hn=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},je=class{constructor(e,i){this.component=e,this.route=i}};function ru(t,e,i){let n=t._root,r=e?e._root:null;return lt(n,r,i,[n.value])}function iu(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function He(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!ei(t)?t:e.get(t):n}function lt(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Ue(e);return t.children.forEach(o=>{su(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>pt(a,i.getContext(o),r)),r}function su(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 c=ou(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new hn(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?lt(t,e,a?a.children:null,n,r):lt(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new je(a.outlet.component,o))}else o&&pt(e,a,r),r.canActivateChecks.push(new hn(n)),s.component?lt(t,null,a?a.children:null,n,r):lt(t,null,i,n,r);return r}function ou(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Ae(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ae(t.url,e.url)||!ee(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!br(t,e)||!ee(t.queryParams,e.queryParams);case"paramsChange":default:return!br(t,e)}}function pt(t,e,i){let n=Ue(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?pt(o,e.children.getContext(s),i):pt(o,null,i):pt(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new je(e.outlet.component,r)):i.canDeactivateChecks.push(new je(null,r)):i.canDeactivateChecks.push(new je(null,r))}function At(t){return typeof t=="function"}function au(t){return typeof t=="boolean"}function uu(t){return t&&At(t.canLoad)}function cu(t){return t&&At(t.canActivate)}function lu(t){return t&&At(t.canActivateChild)}function du(t){return t&&At(t.canDeactivate)}function hu(t){return t&&At(t.canMatch)}function Ls(t){return t instanceof Wr||t?.name==="EmptyError"}var en=Symbol("INITIAL_VALUE");function Ge(){return q(t=>yn(t.map(e=>e.pipe(Ie(1),Xr(en)))).pipe(b(e=>{for(let i of e)if(i!==!0){if(i===en)return en;if(i===!1||i instanceof ge)return i}return!0}),ue(e=>e!==en),Ie(1)))}function fu(t,e){return W(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?g(x(p({},i),{guardsResult:!0})):pu(o,n,r,t).pipe(W(a=>a&&au(a)?gu(n,s,t,e):g(a)),b(a=>x(p({},i),{guardsResult:a})))})}function pu(t,e,i,n){return $(t).pipe(W(r=>wu(r.component,r.route,i,e,n)),ce(r=>r!==!0,!0))}function gu(t,e,i,n){return $(e).pipe(we(r=>qr(Du(r.route.parent,n),mu(r.route,n),yu(t,r.path,i),vu(t,r.route,i))),ce(r=>r!==!0,!0))}function mu(t,e){return t!==null&&e&&e(new yr(t)),g(!0)}function Du(t,e){return t!==null&&e&&e(new Dr(t)),g(!0)}function vu(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return g(!0);let r=n.map(s=>wn(()=>{let o=bt(e)??i,a=He(s,o),c=cu(a)?a.canActivate(e,t):ne(o,()=>a(e,t));return De(c).pipe(ce())}));return g(r).pipe(Ge())}function yu(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>iu(o)).filter(o=>o!==null).map(o=>wn(()=>{let a=o.guards.map(c=>{let u=bt(o.node)??i,l=He(c,u),h=lu(l)?l.canActivateChild(n,t):ne(u,()=>l(n,t));return De(h).pipe(ce())});return g(a).pipe(Ge())}));return g(s).pipe(Ge())}function wu(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 c=bt(e)??r,u=He(a,c),l=du(u)?u.canDeactivate(t,e,i,n):ne(c,()=>u(t,e,i,n));return De(l).pipe(ce())});return g(o).pipe(Ge())}function Cu(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=He(o,t),c=uu(a)?a.canLoad(e,i):ne(t,()=>a(e,i));return De(c)});return g(s).pipe(Ge(),_s(n))}function _s(t){return Gr(N(e=>{if(ze(e))throw Os(t,e)}),b(e=>e===!0))}function Eu(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return g(!0);let s=r.map(o=>{let a=He(o,t),c=hu(a)?a.canMatch(e,i):ne(t,()=>a(e,i));return De(c)});return g(s).pipe(Ge(),_s(n))}var Et=class{constructor(e){this.segmentGroup=e||null}},fn=class extends Error{constructor(e){super(),this.urlTree=e}};function xe(t){return Ze(new Et(t))}function Su(t){return Ze(new M(4e3,!1))}function bu(t){return Ze(Ps(!1,G.GuardRejected))}var Fr=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 Su(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new fn(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new ge(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,n,r)}),new A(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new M(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}},Tr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Au(t,e,i,n,r){let s=xr(t,e,i);return s.matched?(n=eu(e,n),Eu(n,e,i,r).pipe(b(o=>o===!0?s:p({},Tr)))):g(s)}function xr(t,e,i){if(e.path==="**")return Ru(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?p({},Tr):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Ca)(i,t,e);if(!r)return p({},Tr);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.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 Ru(t){return{matched:!0,parameters:t.length>0?ps(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function hs(t,e,i,n){return i.length>0&&Iu(t,i,n)?{segmentGroup:new A(e,Tu(n,new A(i,t.children))),slicedSegments:[]}:i.length===0&&Mu(t,i,n)?{segmentGroup:new A(t.segments,Fu(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new A(t.segments,t.children),slicedSegments:i}}function Fu(t,e,i,n){let r={};for(let s of i)if(gn(t,e,s)&&!n[te(s)]){let o=new A([],{});r[te(s)]=o}return p(p({},n),r)}function Tu(t,e){let i={};i[m]=e;for(let n of t)if(n.path===""&&te(n)!==m){let r=new A([],{});i[te(n)]=r}return i}function Iu(t,e,i){return i.some(n=>gn(t,e,n)&&te(n)!==m)}function Mu(t,e,i){return i.some(n=>gn(t,e,n))}function gn(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Ou(t,e,i,n){return te(t)!==n&&(n===m||!gn(e,i,t))?!1:xr(e,t,i).matched}function Pu(t,e,i){return e.length===0&&!t.children[i]}var Ir=class{};function Nu(t,e,i,n,r,s,o="emptyOnly"){return new Mr(t,e,i,n,r,o,s).recognize()}var Lu=31,Mr=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 Fr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=hs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(b(i=>{let n=new wt([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new V(n,i),s=new dn("",r),o=ja(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(Te(n=>{if(n instanceof fn)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=Nr(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(b(s=>s instanceof V?[s]:[]))}processChildren(e,i,n){let r=[];for(let s of Object.keys(n.children))s==="primary"?r.unshift(s):r.push(s);return $(r).pipe(we(s=>{let o=n.children[s],a=tu(i,s);return this.processSegmentGroup(e,a,o,s)}),Kr((s,o)=>(s.push(...o),s)),Cn(null),Yr(),W(s=>{if(s===null)return xe(n);let o=ks(s);return _u(o),g(o)}))}processSegment(e,i,n,r,s,o){return $(i).pipe(we(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,s,o).pipe(Te(c=>{if(c instanceof Et)return g(null);throw c}))),ce(a=>!!a),Te(a=>{if(Ls(a))return Pu(n,r,s)?g(new Ir):xe(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,s,o,a){return Ou(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o):xe(r):xe(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=xr(i,r,s);if(!a)return xe(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Lu&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,h).pipe(W(d=>this.processSegment(e,n,i,d.concat(l),o,!1)))}matchSegmentAgainstRoute(e,i,n,r,s){let o=Au(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),o.pipe(q(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(q(({routes:c})=>{let u=n._loadedInjector??e,{consumedSegments:l,remainingSegments:h,parameters:d}=a,D=new wt(l,d,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,xu(n),te(n),n.component??n._loadedComponent??null,n,Uu(n)),{segmentGroup:F,slicedSegments:k}=hs(i,l,h,c);if(k.length===0&&F.hasChildren())return this.processChildren(u,c,F).pipe(b(y=>y===null?null:new V(D,y)));if(c.length===0&&k.length===0)return g(new V(D,[]));let C=te(n)===s;return this.processSegment(u,c,F,k,C?m:s,!0).pipe(b(y=>new V(D,y instanceof V?[y]:[])))}))):xe(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}):Cu(e,i,n,this.urlSerializer).pipe(W(r=>r?this.configLoader.loadChildren(e,i).pipe(N(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):bu(i))):g({routes:[],injector:e})}};function _u(t){t.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function ku(t){let e=t.value.routeConfig;return e&&e.path===""}function ks(t){let e=[],i=new Set;for(let n of t){if(!ku(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=ks(n.children);e.push(new V(n.value,r))}return e.filter(n=>!i.has(n))}function xu(t){return t.data||{}}function Uu(t){return t.resolve||{}}function Bu(t,e,i,n,r,s){return W(o=>Nu(t,e,i,n,o.extractedUrl,r,s).pipe(b(({state:a,tree:c})=>x(p({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function ju(t,e){return W(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return g(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of xs(c))o.add(u);let a=0;return $(o).pipe(we(c=>s.has(c)?$u(c,n,t,e):(c.data=Nr(c,c.parent,t).resolve,g(void 0))),N(()=>a++),En(1),W(c=>a===o.size?g(i):ae))})}function xs(t){let e=t.children.map(i=>xs(i)).flat();return[t,...e]}function $u(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!Is(r)&&(s[St]=r.title),zu(s,t,e,n).pipe(b(o=>(t._resolvedData=o,t.data=Nr(t,t.parent,i).resolve,null)))}function zu(t,e,i,n){let r=or(t);if(r.length===0)return g({});let s={};return $(r).pipe(W(o=>Vu(t[o],e,i,n).pipe(ce(),N(a=>{s[o]=a}))),En(1),Zr(s),Te(o=>Ls(o)?ae:Ze(o)))}function Vu(t,e,i,n){let r=bt(e)??n,s=He(t,r),o=s.resolve?s.resolve(e,i):ne(r,()=>s(e,i));return De(o)}function ir(t){return q(e=>{let i=t(e);return i?$(i).pipe(b(()=>e)):g(e)})}var Us=(()=>{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[St]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Gu),providedIn:"root"});let t=e;return t})(),Gu=(()=>{let e=class e extends Us{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)(w(as))},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ur=new I("",{providedIn:"root",factory:()=>({})}),Br=new I(""),Hu=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Pn)}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=De(n.loadComponent()).pipe(b(Bs),N(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Me(()=>{this.componentLoaders.delete(n)})),s=new vn(r,()=>new ye).pipe(Dn());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=Wu(r,this.compiler,n,this.onLoadEndListener).pipe(Me(()=>{this.childrenLoaders.delete(r)})),a=new vn(o,()=>new ye).pipe(Dn());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Wu(t,e,i,n){return De(t.loadChildren()).pipe(b(Bs),W(r=>r instanceof ai||Array.isArray(r)?g(r):$(e.compileModuleAsync(r))),b(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Br,[],{optional:!0,self:!0}).flat()),{routes:o.map(kr),injector:s}}))}function qu(t){return t&&typeof t=="object"&&"default"in t}function Bs(t){return qu(t)?t.default:t}var jr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Zu),providedIn:"root"});let t=e;return t})(),Zu=(()=>{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=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yu=new I("");var Ku=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=f(Hu),this.environmentInjector=f(Pe),this.urlSerializer=f(Pr),this.rootContexts=f(pn),this.location=f(Qe),this.inputBindingEnabled=f(_r,{optional:!0})!==null,this.titleStrategy=f(Us),this.options=f(Ur,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(jr),this.createViewTransition=f(Yu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>g(void 0),this.rootComponentType=null;let n=s=>this.events.next(new gr(s)),r=s=>this.events.next(new mr(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(x(p(p({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new H({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ft,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ue(o=>o.id!==0),b(o=>x(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),q(o=>{let a=!1,c=!1;return g(o).pipe(q(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",G.SupersededByNewNavigation),ae;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?x(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&h!=="reload"){let d="";return this.events.next(new Fe(u.id,this.urlSerializer.serialize(u.rawUrl),d,lr.IgnoredSameUrlNavigation)),u.resolve(null),ae}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return g(u).pipe(q(d=>{let D=this.transitions?.getValue();return this.events.next(new mt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),D!==this.transitions?.getValue()?ae:Promise.resolve(d)}),Bu(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),N(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=x(p({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let D=new un(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(D)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:D,source:F,restoredState:k,extras:C}=u,y=new mt(d,this.urlSerializer.serialize(D),F,k);this.events.next(y);let B=Fs(this.rootComponentType).snapshot;return this.currentTransition=o=x(p({},u),{targetSnapshot:B,urlAfterRedirects:D,extras:x(p({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,g(o)}else{let d="";return this.events.next(new Fe(u.id,this.urlSerializer.serialize(u.extractedUrl),d,lr.IgnoredByUrlHandlingStrategy)),u.resolve(null),ae}}),N(u=>{let l=new dr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),b(u=>(this.currentTransition=o=x(p({},u),{guards:ru(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),fu(this.environmentInjector,u=>this.events.next(u)),N(u=>{if(o.guardsResult=u.guardsResult,ze(u.guardsResult))throw Os(this.urlSerializer,u.guardsResult);let l=new hr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),ue(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",G.GuardRejected),!1)),ir(u=>{if(u.guards.canActivateChecks.length)return g(u).pipe(N(l=>{let h=new fr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}),q(l=>{let h=!1;return g(l).pipe(ju(this.paramsInheritanceStrategy,this.environmentInjector),N({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(l,"",G.NoDataFromResolver)}}))}),N(l=>{let h=new pr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}))}),ir(u=>{let l=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(N(D=>{h.component=D}),b(()=>{})));for(let D of h.children)d.push(...l(D));return d};return yn(l(u.targetSnapshot.root)).pipe(Cn(null),Ie(1))}),ir(()=>this.afterPreactivation()),q(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,h=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return h?$(h).pipe(b(()=>o)):g(o)}),b(u=>{let l=Ya(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=x(p({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),N(()=>{this.events.next(new vt)}),nu(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Ie(1),N({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Re(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Jr(this.transitionAbortSubject.pipe(N(u=>{throw u}))),Me(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",G.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Te(u=>{if(c=!0,Ns(u))this.events.next(new me(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Ja(u)?this.events.next(new yt(u.url)):o.resolve(!1);else{this.events.next(new Dt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return ae}))}))}cancelNavigationTransition(n,r,s){let o=new me(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=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Xu(t){return t!==ft}var Ju=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(Qu),providedIn:"root"});let t=e;return t})(),Or=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},Qu=(()=>{let e=class e extends Or{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Rn(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),js=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=v({token:e,factory:()=>f(ec),providedIn:"root"});let t=e;return t})(),ec=(()=>{let e=class e extends js{constructor(){super(...arguments),this.location=f(Qe),this.urlSerializer=f(Pr),this.options=f(Ur,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(jr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ge,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Fs(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 mt)this.stateMemento=this.createStateMemento();else if(n instanceof Fe)this.rawUrlTree=r.initialUrl;else if(n instanceof un){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof vt?(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 me&&(n.code===G.GuardRejected||n.code===G.NoDataFromResolver)?this.restoreHistory(r):n instanceof Dt?this.restoreHistory(r,!0):n instanceof Re&&(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=Rn(e)))(s||e)}})(),e.\u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dt=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(dt||{});function tc(t,e){t.events.pipe(ue(i=>i instanceof Re||i instanceof me||i instanceof Dt||i instanceof Fe),b(i=>i instanceof Re||i instanceof Fe?dt.COMPLETE:(i instanceof me?i.code===G.Redirect||i.code===G.SupersededByNewNavigation:!1)?dt.REDIRECTING:dt.FAILED),ue(i=>i!==dt.REDIRECTING),Ie(1)).subscribe(()=>{e()})}function nc(t){throw t}var rc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ic={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},$s=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(Ot),this.stateManager=f(js),this.options=f(Ur,{optional:!0})||{},this.pendingTasks=f(Mt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(Ku),this.urlSerializer=f(Pr),this.location=f(Qe),this.urlHandlingStrategy=f(jr),this._events=new ye,this.errorHandler=this.options.errorHandler||nc,this.navigated=!1,this.routeReuseStrategy=f(Ju),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Br,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(_r,{optional:!0}),this.eventsSubscription=new Vr,this.isNgZoneEnabled=f(Z)instanceof Z&&Z.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof me&&r.code!==G.Redirect&&r.code!==G.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Re)this.navigated=!0;else if(r instanceof yt){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Xu(s.source)};this.scheduleNavigation(a,ft,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}oc(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),ft,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 u=p({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,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(kr),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:c,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:a,h=null;switch(c){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 D=s?s.snapshot:this.routerState.snapshot.root;d=Ss(D)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return bs(d,n,h,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=ze(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,ft,null,r)}navigate(n,r={skipLocationChange:!1}){return sc(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({},rc):r===!1?s=p({},ic):s=r,ze(n))return us(this.currentUrlTree,n,s);let o=this.parseUrl(n);return us(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 c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((d,D)=>{c=d,u=D});let h=this.pendingTasks.add();return tc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:u,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=v({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function sc(t){for(let e=0;ei.\u0275providers)])}function uc(t){return t.routerState.root}function cc(){let t=f(Fn);return e=>{let i=t.get(Je);if(e!==i.components[0])return;let n=t.get($s),r=t.get(lc);t.get(dc)===1&&n.initialNavigation(),t.get(hc,null,Sn.Optional)?.setUpPreloading(),t.get(ac,null,Sn.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var lc=new I("",{factory:()=>new ye}),dc=new I("",{providedIn:"root",factory:()=>1});var hc=new I("");export{_c as a,kc as b,xc as c,bo as d,No as e,Zc as f,Yc as g,bl as h,Al as i,Ve as j,Za as k,$s as l,sd as m};