@skill-map/cli 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -962,4 +962,4 @@ ${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
962
962
  border-color: transparent;
963
963
  color: dt('button.link.active.color');
964
964
  }
965
- `;var gM=["content"],mM=["loadingicon"],yM=["icon"],vM=["*"],lb=(e,n)=>({class:e,pt:n});function bM(e,n){e&1&&Sa(0)}function DM(e,n){if(e&1&&ar(0,"span",7),e&2){let t=Xe(3);Ae(t.cn(t.cx("loadingIcon"),"pi-spin",t.loadingIcon||(t.buttonProps==null?null:t.buttonProps.loadingIcon))),ne("pBind",t.ptm("loadingIcon")),Je("aria-hidden",!0)}}function EM(e,n){if(e&1&&(kr(),ar(0,"svg",8)),e&2){let t=Xe(3);Ae(t.cn(t.cx("loadingIcon"),t.cx("spinnerIcon"))),ne("pBind",t.ptm("loadingIcon"))("spin",!0),Je("aria-hidden",!0)}}function IM(e,n){if(e&1&&(cr(0),Zt(1,DM,1,4,"span",3)(2,EM,1,5,"svg",6),En()),e&2){let t=Xe(2);De(),ne("ngIf",t.loadingIcon||(t.buttonProps==null?null:t.buttonProps.loadingIcon)),De(),ne("ngIf",!(t.loadingIcon||t.buttonProps!=null&&t.buttonProps.loadingIcon))}}function CM(e,n){}function wM(e,n){if(e&1&&Zt(0,CM,0,0,"ng-template",9),e&2){let t=Xe(2);ne("ngIf",t.loadingIconTemplate||t._loadingIconTemplate)}}function TM(e,n){if(e&1&&(cr(0),Zt(1,IM,3,2,"ng-container",2)(2,wM,1,1,null,5),En()),e&2){let t=Xe();De(),ne("ngIf",!t.loadingIconTemplate&&!t._loadingIconTemplate),De(),ne("ngTemplateOutlet",t.loadingIconTemplate||t._loadingIconTemplate)("ngTemplateOutletContext",Aa(3,lb,t.cx("loadingIcon"),t.ptm("loadingIcon")))}}function SM(e,n){if(e&1&&ar(0,"span",7),e&2){let t=Xe(2);Ae(t.cn(t.cx("icon"),t.icon||(t.buttonProps==null?null:t.buttonProps.icon))),ne("pBind",t.ptm("icon")),Je("data-p",t.dataIconP)}}function _M(e,n){}function MM(e,n){if(e&1&&Zt(0,_M,0,0,"ng-template",9),e&2){let t=Xe(2);ne("ngIf",!t.icon&&(t.iconTemplate||t._iconTemplate))}}function NM(e,n){if(e&1&&(cr(0),Zt(1,SM,1,4,"span",3)(2,MM,1,1,null,5),En()),e&2){let t=Xe();De(),ne("ngIf",(t.icon||(t.buttonProps==null?null:t.buttonProps.icon))&&!t.iconTemplate&&!t._iconTemplate),De(),ne("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)("ngTemplateOutletContext",Aa(3,lb,t.cx("icon"),t.ptm("icon")))}}function AM(e,n){if(e&1&&(rr(0,"span",7),ai(1),Qr()),e&2){let t=Xe();Ae(t.cx("label")),ne("pBind",t.ptm("label")),Je("aria-hidden",(t.icon||(t.buttonProps==null?null:t.buttonProps.icon))&&!(t.label||t.buttonProps!=null&&t.buttonProps.label))("data-p",t.dataLabelP),De(),ro(t.label||(t.buttonProps==null?null:t.buttonProps.label))}}function xM(e,n){if(e&1&&ar(0,"p-badge",10),e&2){let t=Xe();ne("value",t.badge||(t.buttonProps==null?null:t.buttonProps.badge))("severity",t.badgeSeverity||(t.buttonProps==null?null:t.buttonProps.badgeSeverity))("pt",t.ptm("pcBadge"))("unstyled",t.unstyled())}}var RM={root:({instance:e})=>["p-button p-component",{"p-button-icon-only":e.hasIcon&&!e.label&&!e.buttonProps?.label&&!e.badge,"p-button-vertical":(e.iconPos==="top"||e.iconPos==="bottom")&&e.label,"p-button-loading":e.loading||e.buttonProps?.loading,"p-button-link":e.link||e.buttonProps?.link,[`p-button-${e.severity||e.buttonProps?.severity}`]:e.severity||e.buttonProps?.severity,"p-button-raised":e.raised||e.buttonProps?.raised,"p-button-rounded":e.rounded||e.buttonProps?.rounded,"p-button-text":e.text||e.variant==="text"||e.buttonProps?.text||e.buttonProps?.variant==="text","p-button-outlined":e.outlined||e.variant==="outlined"||e.buttonProps?.outlined||e.buttonProps?.variant==="outlined","p-button-sm":e.size==="small"||e.buttonProps?.size==="small","p-button-lg":e.size==="large"||e.buttonProps?.size==="large","p-button-plain":e.plain||e.buttonProps?.plain,"p-button-fluid":e.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:e})=>["p-button-icon",{[`p-button-icon-${e.iconPos||e.buttonProps?.iconPos}`]:e.label||e.buttonProps?.label,"p-button-icon-left":(e.iconPos==="left"||e.buttonProps?.iconPos==="left")&&e.label||e.buttonProps?.label,"p-button-icon-right":(e.iconPos==="right"||e.buttonProps?.iconPos==="right")&&e.label||e.buttonProps?.label,"p-button-icon-top":(e.iconPos==="top"||e.buttonProps?.iconPos==="top")&&e.label||e.buttonProps?.label,"p-button-icon-bottom":(e.iconPos==="bottom"||e.buttonProps?.iconPos==="bottom")&&e.label||e.buttonProps?.label},e.icon,e.buttonProps?.icon],spinnerIcon:({instance:e})=>Object.entries(e.cx("icon")).filter(([,n])=>!!n).reduce((n,[t])=>n+` ${t}`,"p-button-loading-icon"),label:"p-button-label"},ab=(()=>{class e extends Ce{name="button";style=sb;classes=RM;static \u0275fac=(()=>{let t;return function(o){return(t||(t=G(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var cb=new D("BUTTON_INSTANCE");var OM=(()=>{class e extends et{componentName="Button";hostName="";$pcButton=g(cb,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(We,{self:!0});_componentStyle=g(ab);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=Ie(void 0,{transform:ce});onClick=new Be;onFocus=new Be;onBlur=new Be;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=g(Xv,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}get hasIcon(){return this.icon||this.buttonProps?.icon||this.iconTemplate||this._iconTemplate||this.loadingIcon||this.loadingIconTemplate||this._loadingIconTemplate}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"icon":this._iconTemplate=t.template;break;case"loadingicon":this._loadingIconTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}get dataP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge,loading:this.loading,fluid:this.hasFluid,rounded:this.rounded,raised:this.raised,outlined:this.outlined||this.variant==="outlined",text:this.text||this.variant==="text",link:this.link,vertical:(this.iconPos==="top"||this.iconPos==="bottom")&&this.label})}get dataIconP(){return this.cn({[this.iconPos]:this.iconPos,[this.size]:this.size})}get dataLabelP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=G(e)))(o||e)}})();static \u0275cmp=Pe({type:e,selectors:[["p-button"]],contentQueries:function(r,o,i){if(r&1&&Na(i,gM,5)(i,mM,5)(i,yM,5)(i,Vv,4),r&2){let s;eo(s=to())&&(o.contentTemplate=s.first),eo(s=to())&&(o.loadingIconTemplate=s.first),eo(s=to())&&(o.iconTemplate=s.first),eo(s=to())&&(o.templates=s)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",ce],raised:[2,"raised","raised",ce],rounded:[2,"rounded","rounded",ce],text:[2,"text","text",ce],plain:[2,"plain","plain",ce],outlined:[2,"outlined","outlined",ce],link:[2,"link","link",ce],tabindex:[2,"tabindex","tabindex",fi],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",ce],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",ce],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Ue([ab,{provide:cb,useExisting:e},{provide:ur,useExisting:e}]),sr([We]),Ee],ngContentSelectors:vM,decls:7,vars:17,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt","unstyled",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt","unstyled"]],template:function(r,o){r&1&&(At(),rr(0,"button",0),Ma("click",function(s){return o.onClick.emit(s)})("focus",function(s){return o.onFocus.emit(s)})("blur",function(s){return o.onBlur.emit(s)}),xt(1),Zt(2,bM,1,0,"ng-container",1)(3,TM,3,6,"ng-container",2)(4,NM,3,6,"ng-container",2)(5,AM,2,6,"span",3)(6,xM,1,4,"p-badge",4),Qr()),r&2&&(Ae(o.cn(o.cx("root"),o.styleClass,o.buttonProps==null?null:o.buttonProps.styleClass)),ne("ngStyle",o.style||(o.buttonProps==null?null:o.buttonProps.style))("disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("pAutoFocus",o.autofocus||(o.buttonProps==null?null:o.buttonProps.autofocus))("pBind",o.ptm("root")),Je("type",o.type||(o.buttonProps==null?null:o.buttonProps.type))("aria-label",o.ariaLabel||(o.buttonProps==null?null:o.buttonProps.ariaLabel))("tabindex",o.tabindex||(o.buttonProps==null?null:o.buttonProps.tabindex))("data-p",o.dataP)("data-p-disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("data-p-severity",o.severity||(o.buttonProps==null?null:o.buttonProps.severity)),De(2),ne("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),De(),ne("ngIf",o.loading||(o.buttonProps==null?null:o.buttonProps.loading)),De(),ne("ngIf",!(o.loading||o.buttonProps!=null&&o.buttonProps.loading)),De(),ne("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.label||(o.buttonProps==null?null:o.buttonProps.label))),De(),ne("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.badge||(o.buttonProps==null?null:o.buttonProps.badge))))},dependencies:[gt,Ud,zd,Wd,ib,zv,nb,Kv,ff,wn,We],encapsulation:2,changeDetection:0})}return e})(),e8=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he({type:e});static \u0275inj=fe({imports:[gt,OM,wn,wn]})}return e})();function pf(e){e||(e=g(X));let n=new A(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(Mc(n))}function u8(e,n){let r=!n?.manualCleanup?n?.injector?.get(X)??g(X):null,o=kM(n?.equal),i;n?.requireSync?i=$({kind:0},{equal:o}):i=$({kind:1,value:n?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(n?.requireSync&&i().kind===0)throw new I(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),xe(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new I(601,!1)}},{equal:n?.equal})}function kM(e=Object.is){return(n,t)=>n.kind===1&&t.kind===1&&e(n.value,t.value)}var db=new D("DATA_SOURCE"),ub=class extends Error{code;details;constructor(n,t,r){super(t),this.name="DataSourceError",this.code=n,this.details=r}};function hf(e){if(typeof e!="object"||e===null)return!1;let n=e;if(typeof n.type!="string"||n.type.length===0)return!1;let t=n.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in n))}function fb(e){if(!hf(e)||e.type!=="sidecar.bumped")return!1;let n=e.data;if(typeof n!="object"||n===null||typeof n.nodePath!="string"||n.nodePath.length===0)return!1;let t=n.version;return!(t!==null&&typeof t!="number"||n.status!=="fresh")}var pb=new D("SKILL_MAP_MODE");function y8(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var mt={connected:e=>`[ws] connected to ${e}`,closed:(e,n)=>`[ws] closed (code=${e}, reason="${n}")`,malformedFrame:e=>`[ws] malformed frame dropped: ${e}`,socketError:e=>`[ws] socket error: ${e}`,reconnectScheduled:(e,n)=>`[ws] reconnect attempt ${n} scheduled in ${e}ms`,reconnectGiveUp:e=>`[ws] giving up after ${e} failed reconnect attempts`};var hb=[1e3,2e3,4e3,8e3,16e3,3e4],gf=10,PM=new Set([1e3,1001]);function FM(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var LM=new D("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>e=>new WebSocket(e)}),BM=new D("WS_URL",{providedIn:"root",factory:()=>FM()}),Ja=class e{mode=g(pb);destroyRef=g(X);subject=new K;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;socketFactory=g(LM);url=g(BM);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=An:this.events$=new A(n=>{!this.socket&&!this.disposed&&this.connect();let t=this.subject.subscribe(n);return()=>t.unsubscribe()}).pipe(Sc({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(sn(n=>n.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(sn(fb)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let n;try{n=this.socketFactory(this.url)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(mt.socketError(r)),this.scheduleReconnect();return}this.socket=n,n.onopen=()=>{this.reconnectAttempt=0,console.info(mt.connected(this.url))},n.onmessage=t=>{this.handleFrame(t.data)},n.onerror=t=>{let r=typeof t=="object"&&t!==null&&"message"in t?String(t.message??"unknown"):"unknown";console.warn(mt.socketError(r))},n.onclose=t=>{console.info(mt.closed(t.code,t.reason)),this.socket=null,!this.disposed&&(PM.has(t.code)||this.scheduleReconnect())}}handleFrame(n){if(typeof n!="string"){console.warn(mt.malformedFrame("non-string frame"));return}let t;try{t=JSON.parse(n)}catch(r){let o=r instanceof Error?r.message:String(r);console.warn(mt.malformedFrame(o));return}if(!hf(t)){console.warn(mt.malformedFrame("envelope shape"));return}this.subject.next(t)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=gf){console.warn(mt.reconnectGiveUp(gf)),this.subject.error(new Error(mt.reconnectGiveUp(gf)));return}let n=Math.min(this.reconnectAttempt,hb.length-1),t=hb[n];this.reconnectAttempt+=1,console.info(mt.reconnectScheduled(t,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},t)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(t){return new(t||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var gb=class e{dataSource=g(db);wsEvents=g(Ja);destroyRef=g(X);_nodes=$([]);_scan=$(null);_loading=$(!1);_error=$(null);pendingRefresh=!1;nodes=this._nodes.asReadonly();scan=this._scan.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();count=xe(()=>this._nodes().length);byKind=xe(()=>{let n=new Map;for(let t of this._nodes()){let r=n.get(t.kind);r?r.push(t):n.set(t.kind,[t])}return n});hasAnyFavorites=xe(()=>this._nodes().some(n=>n.isFavorite===!0));constructor(){this.wsEvents.scanCompleted$.pipe(pf(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(pf(this.destroyRef)).subscribe(n=>{this.patchSidecarFromBump({nodePath:n.data.nodePath,version:n.data.version,status:n.data.status})})}setFavoriteLocal(n,t){this._nodes.update(r=>{let o=!1,i=r.map(s=>s.path!==n||s.isFavorite===t?s:(o=!0,j(y({},s),{isFavorite:t})));return o?i:r})}async toggleFavorite(n,t){this.setFavoriteLocal(n,t);try{return t?await this.dataSource.setFavorite(n):await this.dataSource.unsetFavorite(n),t}catch(r){this.setFavoriteLocal(n,!t);let o=r instanceof Error?r.message:String(r);return this._error.set(o),!t}}patchSidecarFromBump(n){this._nodes.update(t=>{let r=!1,o=t.map(i=>{if(i.path!==n.nodePath)return i;r=!0;let s=i.sidecar,a=y({},s?.annotations??{});return n.version!==null&&(a.version=n.version),j(y({},i),{sidecar:y({present:!0,status:n.status,annotations:a},s?.root===void 0?{}:{root:s.root})})});return r?o:t})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);try{let n=await this.dataSource.loadScan();this._scan.set(n),this._nodes.set(n.nodes.map(jM))}catch(n){let t=n instanceof Error?n.message:String(n);this._error.set(t)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}static \u0275fac=function(t){return new(t||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};function jM(e){let n=e.kind,t=e.frontmatter??{},r=j(y({},t),{name:typeof t.name=="string"?t.name:"",description:typeof t.description=="string"?t.description:""}),o={path:e.path,kind:n,provider:e.provider,frontmatter:r,linksOutCount:e.linksOutCount,linksInCount:e.linksInCount,externalRefsCount:e.externalRefsCount,bytesTotal:e.bytes?.total,tokensTotal:e.tokens?.total,bodyHash:e.bodyHash,frontmatterHash:e.frontmatterHash,isFavorite:e.isFavorite===!0};return e.sidecar&&(o.sidecar=y({},e.sidecar)),e.contributions&&(o.contributions=[...e.contributions]),o}var mb=class e{static isArray(n,t=!0){return Array.isArray(n)&&(t||n.length!==0)}static isObject(n,t=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(t||Object.keys(n).length!==0)}static equals(n,t,r){return r?this.resolveFieldData(n,r)===this.resolveFieldData(t,r):this.equalsByValue(n,t)}static equalsByValue(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var r=Array.isArray(n),o=Array.isArray(t),i,s,a;if(r&&o){if(s=n.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!this.equalsByValue(n[i],t[i]))return!1;return!0}if(r!=o)return!1;var c=this.isDate(n),l=this.isDate(t);if(c!=l)return!1;if(c&&l)return n.getTime()==t.getTime();var u=n instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==t.toString();var f=Object.keys(n);if(s=f.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!this.equalsByValue(n[a],t[a]))return!1;return!0}return n!==n&&t!==t}static resolveFieldData(n,t){if(n&&t){if(this.isFunction(t))return t(n);if(t.indexOf(".")==-1)return n[t];{let r=t.split("."),o=n;for(let i=0,s=r.length;i<s;++i){if(o==null)return null;o=o[r[i]]}return o}}else return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,t,r){let o;n&&t!==r&&(r>=n.length&&(r%=n.length,t%=n.length),n.splice(r,0,n.splice(t,1)[0]))}static insertIntoOrderedArray(n,t,r,o){if(r.length>0){let i=!1;for(let s=0;s<r.length;s++)if(this.findIndexInList(r[s],o)>t){r.splice(s,0,n),i=!0;break}i||r.push(n)}else r.push(n)}static findIndexInList(n,t){let r=-1;if(t){for(let o=0;o<t.length;o++)if(t[o]==n){r=o;break}}return r}static contains(n,t){if(n!=null&&t&&t.length){for(let r of t)if(this.equals(n,r))return!0}return!1}static removeAccents(n){return n&&(n=n.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),n}static isDate(n){return Object.prototype.toString.call(n)==="[object Date]"}static isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!this.isDate(n)&&typeof n=="object"&&Object.keys(n).length===0}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,t,r,o=1){let i=-1,s=this.isEmpty(n),a=this.isEmpty(t);return s&&a?i=0:s?i=o:a?i=-o:typeof n=="string"&&typeof t=="string"?i=n.localeCompare(t,r,{numeric:!0}):i=n<t?-1:n>t?1:0,i}static sort(n,t,r=1,o,i=1){let s=e.compare(n,t,o,r),a=r;return(e.isEmpty(n)||e.isEmpty(t))&&(a=i===1?r:i),a*s}static merge(n,t){if(!(n==null&&t==null)){{if((n==null||typeof n=="object")&&(t==null||typeof t=="object"))return y(y({},n||{}),t||{});if((n==null||typeof n=="string")&&(t==null||typeof t=="string"))return[n||"",t||""].join(" ")}return t||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...t){return this.isFunction(n)?n(...t):n}static findLastIndex(n,t){let r=-1;if(this.isNotEmpty(n))try{r=n.findLastIndex(t)}catch{r=n.lastIndexOf([...n].reverse().find(t))}return r}static findLast(n,t){let r;if(this.isNotEmpty(n))try{r=n.findLast(t)}catch{r=[...n].reverse().find(t)}return r}static deepEquals(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var r=Array.isArray(n),o=Array.isArray(t),i,s,a;if(r&&o){if(s=n.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!this.deepEquals(n[i],t[i]))return!1;return!0}if(r!=o)return!1;var c=n instanceof Date,l=t instanceof Date;if(c!=l)return!1;if(c&&l)return n.getTime()==t.getTime();var u=n instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==t.toString();var f=Object.keys(n);if(s=f.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!this.deepEquals(n[a],t[a]))return!1;return!0}return n!==n&&t!==t}static minifyCSS(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(n){return this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}static isString(n,t=!0){return typeof n=="string"&&(t||n!=="")}},yb=0;function F8(e="pn_id_"){return yb++,`${e}${yb}`}function VM(){let e=[],n=(i,s)=>{let a=e.length>0?e[e.length-1]:{key:i,value:s},c=a.value+(a.key===i?0:s)+2;return e.push({key:i,value:c}),c},t=i=>{e=e.filter(s=>s.value!==i)},r=()=>e.length>0?e[e.length-1].value:0,o=i=>i&&parseInt(i.style.zIndex,10)||0;return{get:o,set:(i,s,a)=>{s&&(s.style.zIndex=String(n(i,a)))},clear:i=>{i&&(t(o(i)),i.style.zIndex="")},getCurrent:()=>r(),generateZIndex:n,revertZIndex:t}}var L8=VM();export{we as a,Mb as b,A as c,K as d,vo as e,An as f,YN as g,on as h,qi as i,jb as j,Vb as k,Rn as l,Hb as m,ze as n,Yb as o,Lt as p,Dc as q,Ki as r,Qb as s,Jb as t,Ec as u,sn as v,cp as w,Ic as x,Cc as y,wc as z,sD as A,aD as B,cD as C,_c as D,Mc as E,lD as F,I as G,jt as H,ss as I,v as J,fe as K,pD as L,D as M,_ as N,g as O,It as P,ve as Q,_r as R,OD as S,Vp as T,Hp as U,kr as V,Jp as W,se as X,B as Y,X as Z,qn as _,Be as $,ue as aa,Wt as ba,WD as ca,$ as da,_e as ea,bn as fa,G as ga,Mu as ha,be as ia,pt as ja,nI as ka,$g as la,iI as ma,sI as na,De as oa,om as pa,_t as qa,Nt as ra,ee as sa,qt as ta,Ym as ua,hd as va,Pe as wa,he as xa,te as ya,sr as za,Ee as Aa,Zt as Ba,ey as Ca,oy as Da,Ta as Ea,Ed as Fa,iy as Ga,oi as Ha,qw as Ia,Zw as Ja,Je as Ka,Ps as La,Fs as Ma,eT as Na,tT as Oa,nT as Pa,rT as Qa,oT as Ra,iT as Sa,ne as Ta,rr as Ua,Qr as Va,ar as Wa,Jr as Xa,Xr as Ya,ii as Za,cr as _a,En as $a,Sa as ab,dy as bb,uT as cb,dT as db,_a as eb,Ma as fb,hy as gb,Xe as hb,At as ib,xt as jb,Na as kb,my as lb,eo as mb,to as nb,wd as ob,yy as pb,vy as qb,gT as rb,no as sb,Td as tb,Sd as ub,Ae as vb,ai as wb,ro as xb,_d as yb,Ay as zb,xy as Ab,Ry as Bb,$T as Cb,Oy as Db,Py as Eb,UT as Fb,WT as Gb,Ue as Hb,ZT as Ib,YT as Jb,Aa as Kb,KT as Lb,QT as Mb,JT as Nb,XT as Ob,eS as Pb,iS as Qb,sS as Rb,li as Sb,xe as Tb,lS as Ub,Hy as Vb,aj as Wb,Ie as Xb,cj as Yb,MS as Zb,lj as _b,uj as $b,dj as ac,di as bc,ce as cc,fi as dc,pj as ec,hj as fc,Yt as gc,Fa as hc,av as ic,qS as jc,ZS as kc,dv as lc,Ud as mc,Wd as nc,zd as oc,gt as pc,gi as qc,Q2 as rc,b_ as sc,Rt as tc,Ov as uc,z_ as vc,G_ as wc,gH as xc,q_ as yc,Ii as zc,eM as Ac,wH as Bc,ge as Cc,TH as Dc,SH as Ec,_H as Fc,MH as Gc,NH as Hc,Vv as Ic,wn as Jc,AH as Kc,Ce as Lc,lf as Mc,XH as Nc,ur as Oc,et as Pc,uf as Qc,g$ as Rc,m$ as Sc,Wv as Tc,zv as Uc,We as Vc,Gv as Wc,ff as Xc,Kv as Yc,Xv as Zc,tb as _c,nb as $c,ib as ad,OM as bd,e8 as cd,mb as dd,F8 as ed,L8 as fd,pf as gd,u8 as hd,db as id,ub as jd,pb as kd,y8 as ld,Ja as md,gb as nd};
965
+ `;var gM=["content"],mM=["loadingicon"],yM=["icon"],vM=["*"],lb=(e,n)=>({class:e,pt:n});function bM(e,n){e&1&&Sa(0)}function DM(e,n){if(e&1&&ar(0,"span",7),e&2){let t=Xe(3);Ae(t.cn(t.cx("loadingIcon"),"pi-spin",t.loadingIcon||(t.buttonProps==null?null:t.buttonProps.loadingIcon))),ne("pBind",t.ptm("loadingIcon")),Je("aria-hidden",!0)}}function EM(e,n){if(e&1&&(kr(),ar(0,"svg",8)),e&2){let t=Xe(3);Ae(t.cn(t.cx("loadingIcon"),t.cx("spinnerIcon"))),ne("pBind",t.ptm("loadingIcon"))("spin",!0),Je("aria-hidden",!0)}}function IM(e,n){if(e&1&&(cr(0),Zt(1,DM,1,4,"span",3)(2,EM,1,5,"svg",6),En()),e&2){let t=Xe(2);De(),ne("ngIf",t.loadingIcon||(t.buttonProps==null?null:t.buttonProps.loadingIcon)),De(),ne("ngIf",!(t.loadingIcon||t.buttonProps!=null&&t.buttonProps.loadingIcon))}}function CM(e,n){}function wM(e,n){if(e&1&&Zt(0,CM,0,0,"ng-template",9),e&2){let t=Xe(2);ne("ngIf",t.loadingIconTemplate||t._loadingIconTemplate)}}function TM(e,n){if(e&1&&(cr(0),Zt(1,IM,3,2,"ng-container",2)(2,wM,1,1,null,5),En()),e&2){let t=Xe();De(),ne("ngIf",!t.loadingIconTemplate&&!t._loadingIconTemplate),De(),ne("ngTemplateOutlet",t.loadingIconTemplate||t._loadingIconTemplate)("ngTemplateOutletContext",Aa(3,lb,t.cx("loadingIcon"),t.ptm("loadingIcon")))}}function SM(e,n){if(e&1&&ar(0,"span",7),e&2){let t=Xe(2);Ae(t.cn(t.cx("icon"),t.icon||(t.buttonProps==null?null:t.buttonProps.icon))),ne("pBind",t.ptm("icon")),Je("data-p",t.dataIconP)}}function _M(e,n){}function MM(e,n){if(e&1&&Zt(0,_M,0,0,"ng-template",9),e&2){let t=Xe(2);ne("ngIf",!t.icon&&(t.iconTemplate||t._iconTemplate))}}function NM(e,n){if(e&1&&(cr(0),Zt(1,SM,1,4,"span",3)(2,MM,1,1,null,5),En()),e&2){let t=Xe();De(),ne("ngIf",(t.icon||(t.buttonProps==null?null:t.buttonProps.icon))&&!t.iconTemplate&&!t._iconTemplate),De(),ne("ngTemplateOutlet",t.iconTemplate||t._iconTemplate)("ngTemplateOutletContext",Aa(3,lb,t.cx("icon"),t.ptm("icon")))}}function AM(e,n){if(e&1&&(rr(0,"span",7),ai(1),Qr()),e&2){let t=Xe();Ae(t.cx("label")),ne("pBind",t.ptm("label")),Je("aria-hidden",(t.icon||(t.buttonProps==null?null:t.buttonProps.icon))&&!(t.label||t.buttonProps!=null&&t.buttonProps.label))("data-p",t.dataLabelP),De(),ro(t.label||(t.buttonProps==null?null:t.buttonProps.label))}}function xM(e,n){if(e&1&&ar(0,"p-badge",10),e&2){let t=Xe();ne("value",t.badge||(t.buttonProps==null?null:t.buttonProps.badge))("severity",t.badgeSeverity||(t.buttonProps==null?null:t.buttonProps.badgeSeverity))("pt",t.ptm("pcBadge"))("unstyled",t.unstyled())}}var RM={root:({instance:e})=>["p-button p-component",{"p-button-icon-only":e.hasIcon&&!e.label&&!e.buttonProps?.label&&!e.badge,"p-button-vertical":(e.iconPos==="top"||e.iconPos==="bottom")&&e.label,"p-button-loading":e.loading||e.buttonProps?.loading,"p-button-link":e.link||e.buttonProps?.link,[`p-button-${e.severity||e.buttonProps?.severity}`]:e.severity||e.buttonProps?.severity,"p-button-raised":e.raised||e.buttonProps?.raised,"p-button-rounded":e.rounded||e.buttonProps?.rounded,"p-button-text":e.text||e.variant==="text"||e.buttonProps?.text||e.buttonProps?.variant==="text","p-button-outlined":e.outlined||e.variant==="outlined"||e.buttonProps?.outlined||e.buttonProps?.variant==="outlined","p-button-sm":e.size==="small"||e.buttonProps?.size==="small","p-button-lg":e.size==="large"||e.buttonProps?.size==="large","p-button-plain":e.plain||e.buttonProps?.plain,"p-button-fluid":e.hasFluid}],loadingIcon:"p-button-loading-icon",icon:({instance:e})=>["p-button-icon",{[`p-button-icon-${e.iconPos||e.buttonProps?.iconPos}`]:e.label||e.buttonProps?.label,"p-button-icon-left":(e.iconPos==="left"||e.buttonProps?.iconPos==="left")&&e.label||e.buttonProps?.label,"p-button-icon-right":(e.iconPos==="right"||e.buttonProps?.iconPos==="right")&&e.label||e.buttonProps?.label,"p-button-icon-top":(e.iconPos==="top"||e.buttonProps?.iconPos==="top")&&e.label||e.buttonProps?.label,"p-button-icon-bottom":(e.iconPos==="bottom"||e.buttonProps?.iconPos==="bottom")&&e.label||e.buttonProps?.label},e.icon,e.buttonProps?.icon],spinnerIcon:({instance:e})=>Object.entries(e.cx("icon")).filter(([,n])=>!!n).reduce((n,[t])=>n+` ${t}`,"p-button-loading-icon"),label:"p-button-label"},ab=(()=>{class e extends Ce{name="button";style=sb;classes=RM;static \u0275fac=(()=>{let t;return function(o){return(t||(t=G(e)))(o||e)}})();static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();var cb=new D("BUTTON_INSTANCE");var OM=(()=>{class e extends et{componentName="Button";hostName="";$pcButton=g(cb,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(We,{self:!0});_componentStyle=g(ab);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}type="button";badge;disabled;raised=!1;rounded=!1;text=!1;plain=!1;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;iconPos="left";icon;label;loading=!1;loadingIcon;severity;buttonProps;fluid=Ie(void 0,{transform:ce});onClick=new Be;onFocus=new Be;onBlur=new Be;contentTemplate;loadingIconTemplate;iconTemplate;templates;pcFluid=g(Xv,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}get hasIcon(){return this.icon||this.buttonProps?.icon||this.iconTemplate||this._iconTemplate||this.loadingIcon||this.loadingIconTemplate||this._loadingIconTemplate}_contentTemplate;_iconTemplate;_loadingIconTemplate;onAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"icon":this._iconTemplate=t.template;break;case"loadingicon":this._loadingIconTemplate=t.template;break;default:this._contentTemplate=t.template;break}})}get dataP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge,loading:this.loading,fluid:this.hasFluid,rounded:this.rounded,raised:this.raised,outlined:this.outlined||this.variant==="outlined",text:this.text||this.variant==="text",link:this.link,vertical:(this.iconPos==="top"||this.iconPos==="bottom")&&this.label})}get dataIconP(){return this.cn({[this.iconPos]:this.iconPos,[this.size]:this.size})}get dataLabelP(){return this.cn({[this.size]:this.size,"icon-only":this.hasIcon&&!this.label&&!this.badge})}static \u0275fac=(()=>{let t;return function(o){return(t||(t=G(e)))(o||e)}})();static \u0275cmp=Pe({type:e,selectors:[["p-button"]],contentQueries:function(r,o,i){if(r&1&&Na(i,gM,5)(i,mM,5)(i,yM,5)(i,Vv,4),r&2){let s;eo(s=to())&&(o.contentTemplate=s.first),eo(s=to())&&(o.loadingIconTemplate=s.first),eo(s=to())&&(o.iconTemplate=s.first),eo(s=to())&&(o.templates=s)}},inputs:{hostName:"hostName",type:"type",badge:"badge",disabled:[2,"disabled","disabled",ce],raised:[2,"raised","raised",ce],rounded:[2,"rounded","rounded",ce],text:[2,"text","text",ce],plain:[2,"plain","plain",ce],outlined:[2,"outlined","outlined",ce],link:[2,"link","link",ce],tabindex:[2,"tabindex","tabindex",fi],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",ce],iconPos:"iconPos",icon:"icon",label:"label",loading:[2,"loading","loading",ce],loadingIcon:"loadingIcon",severity:"severity",buttonProps:"buttonProps",fluid:[1,"fluid"]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[Ue([ab,{provide:cb,useExisting:e},{provide:ur,useExisting:e}]),sr([We]),Ee],ngContentSelectors:vM,decls:7,vars:17,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","pAutoFocus","pBind"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"value","severity","pt","unstyled",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","spinner",3,"class","pBind","spin",4,"ngIf"],[3,"pBind"],["data-p-icon","spinner",3,"pBind","spin"],[3,"ngIf"],[3,"value","severity","pt","unstyled"]],template:function(r,o){r&1&&(At(),rr(0,"button",0),Ma("click",function(s){return o.onClick.emit(s)})("focus",function(s){return o.onFocus.emit(s)})("blur",function(s){return o.onBlur.emit(s)}),xt(1),Zt(2,bM,1,0,"ng-container",1)(3,TM,3,6,"ng-container",2)(4,NM,3,6,"ng-container",2)(5,AM,2,6,"span",3)(6,xM,1,4,"p-badge",4),Qr()),r&2&&(Ae(o.cn(o.cx("root"),o.styleClass,o.buttonProps==null?null:o.buttonProps.styleClass)),ne("ngStyle",o.style||(o.buttonProps==null?null:o.buttonProps.style))("disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("pAutoFocus",o.autofocus||(o.buttonProps==null?null:o.buttonProps.autofocus))("pBind",o.ptm("root")),Je("type",o.type||(o.buttonProps==null?null:o.buttonProps.type))("aria-label",o.ariaLabel||(o.buttonProps==null?null:o.buttonProps.ariaLabel))("tabindex",o.tabindex||(o.buttonProps==null?null:o.buttonProps.tabindex))("data-p",o.dataP)("data-p-disabled",o.disabled||o.loading||(o.buttonProps==null?null:o.buttonProps.disabled))("data-p-severity",o.severity||(o.buttonProps==null?null:o.buttonProps.severity)),De(2),ne("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),De(),ne("ngIf",o.loading||(o.buttonProps==null?null:o.buttonProps.loading)),De(),ne("ngIf",!(o.loading||o.buttonProps!=null&&o.buttonProps.loading)),De(),ne("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.label||(o.buttonProps==null?null:o.buttonProps.label))),De(),ne("ngIf",!o.contentTemplate&&!o._contentTemplate&&(o.badge||(o.buttonProps==null?null:o.buttonProps.badge))))},dependencies:[gt,Ud,zd,Wd,ib,zv,nb,Kv,ff,wn,We],encapsulation:2,changeDetection:0})}return e})(),e8=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=he({type:e});static \u0275inj=fe({imports:[gt,OM,wn,wn]})}return e})();function pf(e){e||(e=g(X));let n=new A(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(Mc(n))}function u8(e,n){let r=!n?.manualCleanup?n?.injector?.get(X)??g(X):null,o=kM(n?.equal),i;n?.requireSync?i=$({kind:0},{equal:o}):i=$({kind:1,value:n?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(n?.requireSync&&i().kind===0)throw new I(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),xe(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new I(601,!1)}},{equal:n?.equal})}function kM(e=Object.is){return(n,t)=>n.kind===1&&t.kind===1&&e(n.value,t.value)}var db=new D("DATA_SOURCE"),ub=class extends Error{code;details;constructor(n,t,r){super(t),this.name="DataSourceError",this.code=n,this.details=r}};function hf(e){if(typeof e!="object"||e===null)return!1;let n=e;if(typeof n.type!="string"||n.type.length===0)return!1;let t=n.timestamp;return!(typeof t!="number"&&typeof t!="string"||!("data"in n))}function fb(e){if(!hf(e)||e.type!=="sidecar.bumped")return!1;let n=e.data;if(typeof n!="object"||n===null||typeof n.nodePath!="string"||n.nodePath.length===0)return!1;let t=n.version;return!(t!==null&&typeof t!="number"||n.status!=="fresh")}var pb=new D("SKILL_MAP_MODE");function y8(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var mt={connected:e=>`[ws] connected to ${e}`,closed:(e,n)=>`[ws] closed (code=${e}, reason="${n}")`,malformedFrame:e=>`[ws] malformed frame dropped: ${e}`,socketError:e=>`[ws] socket error: ${e}`,reconnectScheduled:(e,n)=>`[ws] reconnect attempt ${n} scheduled in ${e}ms`,reconnectGiveUp:e=>`[ws] giving up after ${e} failed reconnect attempts`};var hb=[1e3,2e3,4e3,8e3,16e3,3e4],gf=10,PM=new Set([1e3]);function FM(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var LM=new D("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>e=>new WebSocket(e)}),BM=new D("WS_URL",{providedIn:"root",factory:()=>FM()}),Ja=class e{mode=g(pb);destroyRef=g(X);subject=new K;socket=null;reconnectTimer=null;reconnectAttempt=0;disposed=!1;socketFactory=g(LM);url=g(BM);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=An:this.events$=new A(n=>{!this.socket&&!this.disposed&&this.connect();let t=this.subject.subscribe(n);return()=>t.unsubscribe()}).pipe(Sc({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(sn(n=>n.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(sn(fb)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let n;try{n=this.socketFactory(this.url)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(mt.socketError(r)),this.scheduleReconnect();return}this.socket=n,n.onopen=()=>{this.reconnectAttempt=0,console.info(mt.connected(this.url))},n.onmessage=t=>{this.handleFrame(t.data)},n.onerror=t=>{let r=typeof t=="object"&&t!==null&&"message"in t?String(t.message??"unknown"):"unknown";console.warn(mt.socketError(r))},n.onclose=t=>{console.info(mt.closed(t.code,t.reason)),this.socket=null,!this.disposed&&(PM.has(t.code)||this.scheduleReconnect())}}handleFrame(n){if(typeof n!="string"){console.warn(mt.malformedFrame("non-string frame"));return}let t;try{t=JSON.parse(n)}catch(r){let o=r instanceof Error?r.message:String(r);console.warn(mt.malformedFrame(o));return}if(!hf(t)){console.warn(mt.malformedFrame("envelope shape"));return}this.subject.next(t)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=gf){console.warn(mt.reconnectGiveUp(gf)),this.subject.error(new Error(mt.reconnectGiveUp(gf)));return}let n=Math.min(this.reconnectAttempt,hb.length-1),t=hb[n];this.reconnectAttempt+=1,console.info(mt.reconnectScheduled(t,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},t)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(t){return new(t||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};var gb=class e{dataSource=g(db);wsEvents=g(Ja);destroyRef=g(X);_nodes=$([]);_scan=$(null);_loading=$(!1);_error=$(null);pendingRefresh=!1;nodes=this._nodes.asReadonly();scan=this._scan.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();count=xe(()=>this._nodes().length);byKind=xe(()=>{let n=new Map;for(let t of this._nodes()){let r=n.get(t.kind);r?r.push(t):n.set(t.kind,[t])}return n});hasAnyFavorites=xe(()=>this._nodes().some(n=>n.isFavorite===!0));constructor(){this.wsEvents.scanCompleted$.pipe(pf(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(pf(this.destroyRef)).subscribe(n=>{this.patchSidecarFromBump({nodePath:n.data.nodePath,version:n.data.version,status:n.data.status})})}setFavoriteLocal(n,t){this._nodes.update(r=>{let o=!1,i=r.map(s=>s.path!==n||s.isFavorite===t?s:(o=!0,j(y({},s),{isFavorite:t})));return o?i:r})}async toggleFavorite(n,t){this.setFavoriteLocal(n,t);try{return t?await this.dataSource.setFavorite(n):await this.dataSource.unsetFavorite(n),t}catch(r){this.setFavoriteLocal(n,!t);let o=r instanceof Error?r.message:String(r);return this._error.set(o),!t}}patchSidecarFromBump(n){this._nodes.update(t=>{let r=!1,o=t.map(i=>{if(i.path!==n.nodePath)return i;r=!0;let s=i.sidecar,a=y({},s?.annotations??{});return n.version!==null&&(a.version=n.version),j(y({},i),{sidecar:y({present:!0,status:n.status,annotations:a},s?.root===void 0?{}:{root:s.root})})});return r?o:t})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);try{let n=await this.dataSource.loadScan();this._scan.set(n),this._nodes.set(n.nodes.map(jM))}catch(n){let t=n instanceof Error?n.message:String(n);this._error.set(t)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}static \u0275fac=function(t){return new(t||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})};function jM(e){let n=e.kind,t=e.frontmatter??{},r=j(y({},t),{name:typeof t.name=="string"?t.name:"",description:typeof t.description=="string"?t.description:""}),o={path:e.path,kind:n,provider:e.provider,frontmatter:r,linksOutCount:e.linksOutCount,linksInCount:e.linksInCount,externalRefsCount:e.externalRefsCount,bytesTotal:e.bytes?.total,tokensTotal:e.tokens?.total,bodyHash:e.bodyHash,frontmatterHash:e.frontmatterHash,isFavorite:e.isFavorite===!0};return e.sidecar&&(o.sidecar=y({},e.sidecar)),e.contributions&&(o.contributions=[...e.contributions]),o}var mb=class e{static isArray(n,t=!0){return Array.isArray(n)&&(t||n.length!==0)}static isObject(n,t=!0){return typeof n=="object"&&!Array.isArray(n)&&n!=null&&(t||Object.keys(n).length!==0)}static equals(n,t,r){return r?this.resolveFieldData(n,r)===this.resolveFieldData(t,r):this.equalsByValue(n,t)}static equalsByValue(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var r=Array.isArray(n),o=Array.isArray(t),i,s,a;if(r&&o){if(s=n.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!this.equalsByValue(n[i],t[i]))return!1;return!0}if(r!=o)return!1;var c=this.isDate(n),l=this.isDate(t);if(c!=l)return!1;if(c&&l)return n.getTime()==t.getTime();var u=n instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==t.toString();var f=Object.keys(n);if(s=f.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!this.equalsByValue(n[a],t[a]))return!1;return!0}return n!==n&&t!==t}static resolveFieldData(n,t){if(n&&t){if(this.isFunction(t))return t(n);if(t.indexOf(".")==-1)return n[t];{let r=t.split("."),o=n;for(let i=0,s=r.length;i<s;++i){if(o==null)return null;o=o[r[i]]}return o}}else return null}static isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,t,r){let o;n&&t!==r&&(r>=n.length&&(r%=n.length,t%=n.length),n.splice(r,0,n.splice(t,1)[0]))}static insertIntoOrderedArray(n,t,r,o){if(r.length>0){let i=!1;for(let s=0;s<r.length;s++)if(this.findIndexInList(r[s],o)>t){r.splice(s,0,n),i=!0;break}i||r.push(n)}else r.push(n)}static findIndexInList(n,t){let r=-1;if(t){for(let o=0;o<t.length;o++)if(t[o]==n){r=o;break}}return r}static contains(n,t){if(n!=null&&t&&t.length){for(let r of t)if(this.equals(n,r))return!0}return!1}static removeAccents(n){return n&&(n=n.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),n}static isDate(n){return Object.prototype.toString.call(n)==="[object Date]"}static isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!this.isDate(n)&&typeof n=="object"&&Object.keys(n).length===0}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,t,r,o=1){let i=-1,s=this.isEmpty(n),a=this.isEmpty(t);return s&&a?i=0:s?i=o:a?i=-o:typeof n=="string"&&typeof t=="string"?i=n.localeCompare(t,r,{numeric:!0}):i=n<t?-1:n>t?1:0,i}static sort(n,t,r=1,o,i=1){let s=e.compare(n,t,o,r),a=r;return(e.isEmpty(n)||e.isEmpty(t))&&(a=i===1?r:i),a*s}static merge(n,t){if(!(n==null&&t==null)){{if((n==null||typeof n=="object")&&(t==null||typeof t=="object"))return y(y({},n||{}),t||{});if((n==null||typeof n=="string")&&(t==null||typeof t=="string"))return[n||"",t||""].join(" ")}return t||n}}static isPrintableCharacter(n=""){return this.isNotEmpty(n)&&n.length===1&&n.match(/\S| /)}static getItemValue(n,...t){return this.isFunction(n)?n(...t):n}static findLastIndex(n,t){let r=-1;if(this.isNotEmpty(n))try{r=n.findLastIndex(t)}catch{r=n.lastIndexOf([...n].reverse().find(t))}return r}static findLast(n,t){let r;if(this.isNotEmpty(n))try{r=n.findLast(t)}catch{r=[...n].reverse().find(t)}return r}static deepEquals(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){var r=Array.isArray(n),o=Array.isArray(t),i,s,a;if(r&&o){if(s=n.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!this.deepEquals(n[i],t[i]))return!1;return!0}if(r!=o)return!1;var c=n instanceof Date,l=t instanceof Date;if(c!=l)return!1;if(c&&l)return n.getTime()==t.getTime();var u=n instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==t.toString();var f=Object.keys(n);if(s=f.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!this.deepEquals(n[a],t[a]))return!1;return!0}return n!==n&&t!==t}static minifyCSS(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(n){return this.isString(n)?n.replace(/(-|_)/g,"").toLowerCase():n}static isString(n,t=!0){return typeof n=="string"&&(t||n!=="")}},yb=0;function F8(e="pn_id_"){return yb++,`${e}${yb}`}function VM(){let e=[],n=(i,s)=>{let a=e.length>0?e[e.length-1]:{key:i,value:s},c=a.value+(a.key===i?0:s)+2;return e.push({key:i,value:c}),c},t=i=>{e=e.filter(s=>s.value!==i)},r=()=>e.length>0?e[e.length-1].value:0,o=i=>i&&parseInt(i.style.zIndex,10)||0;return{get:o,set:(i,s,a)=>{s&&(s.style.zIndex=String(n(i,a)))},clear:i=>{i&&(t(o(i)),i.style.zIndex="")},getCurrent:()=>r(),generateZIndex:n,revertZIndex:t}}var L8=VM();export{we as a,Mb as b,A as c,K as d,vo as e,An as f,YN as g,on as h,qi as i,jb as j,Vb as k,Rn as l,Hb as m,ze as n,Yb as o,Lt as p,Dc as q,Ki as r,Qb as s,Jb as t,Ec as u,sn as v,cp as w,Ic as x,Cc as y,wc as z,sD as A,aD as B,cD as C,_c as D,Mc as E,lD as F,I as G,jt as H,ss as I,v as J,fe as K,pD as L,D as M,_ as N,g as O,It as P,ve as Q,_r as R,OD as S,Vp as T,Hp as U,kr as V,Jp as W,se as X,B as Y,X as Z,qn as _,Be as $,ue as aa,Wt as ba,WD as ca,$ as da,_e as ea,bn as fa,G as ga,Mu as ha,be as ia,pt as ja,nI as ka,$g as la,iI as ma,sI as na,De as oa,om as pa,_t as qa,Nt as ra,ee as sa,qt as ta,Ym as ua,hd as va,Pe as wa,he as xa,te as ya,sr as za,Ee as Aa,Zt as Ba,ey as Ca,oy as Da,Ta as Ea,Ed as Fa,iy as Ga,oi as Ha,qw as Ia,Zw as Ja,Je as Ka,Ps as La,Fs as Ma,eT as Na,tT as Oa,nT as Pa,rT as Qa,oT as Ra,iT as Sa,ne as Ta,rr as Ua,Qr as Va,ar as Wa,Jr as Xa,Xr as Ya,ii as Za,cr as _a,En as $a,Sa as ab,dy as bb,uT as cb,dT as db,_a as eb,Ma as fb,hy as gb,Xe as hb,At as ib,xt as jb,Na as kb,my as lb,eo as mb,to as nb,wd as ob,yy as pb,vy as qb,gT as rb,no as sb,Td as tb,Sd as ub,Ae as vb,ai as wb,ro as xb,_d as yb,Ay as zb,xy as Ab,Ry as Bb,$T as Cb,Oy as Db,Py as Eb,UT as Fb,WT as Gb,Ue as Hb,ZT as Ib,YT as Jb,Aa as Kb,KT as Lb,QT as Mb,JT as Nb,XT as Ob,eS as Pb,iS as Qb,sS as Rb,li as Sb,xe as Tb,lS as Ub,Hy as Vb,aj as Wb,Ie as Xb,cj as Yb,MS as Zb,lj as _b,uj as $b,dj as ac,di as bc,ce as cc,fi as dc,pj as ec,hj as fc,Yt as gc,Fa as hc,av as ic,qS as jc,ZS as kc,dv as lc,Ud as mc,Wd as nc,zd as oc,gt as pc,gi as qc,Q2 as rc,b_ as sc,Rt as tc,Ov as uc,z_ as vc,G_ as wc,gH as xc,q_ as yc,Ii as zc,eM as Ac,wH as Bc,ge as Cc,TH as Dc,SH as Ec,_H as Fc,MH as Gc,NH as Hc,Vv as Ic,wn as Jc,AH as Kc,Ce as Lc,lf as Mc,XH as Nc,ur as Oc,et as Pc,uf as Qc,g$ as Rc,m$ as Sc,Wv as Tc,zv as Uc,We as Vc,Gv as Wc,ff as Xc,Kv as Yc,Xv as Zc,tb as _c,nb as $c,ib as ad,OM as bd,e8 as cd,mb as dd,F8 as ed,L8 as fd,pf as gd,u8 as hd,db as id,ub as jd,pb as kd,y8 as ld,Ja as md,gb as nd};
@@ -1,4 +1,4 @@
1
- import{$ as B,Aa as f,Ba as Fe,Ea as st,Ha as at,Hb as A,I as O,Ic as bt,J as q,Jb as Se,Jc as pe,K as x,Ka as de,Lc as me,M as D,Na as R,O as C,Oa as j,Oc as Y,Pc as X,Sb as E,Ta as G,Tb as M,Ua as we,V as nt,Va as Ie,Vc as N,Wa as lt,Wb as g,Wc as ve,Xb as a,Z as it,Za as dt,_c as Dt,ab as Ne,ad as Mt,bc as Oe,cc as I,d as Xe,da as V,dc as mt,ea as ae,ec as xe,fa as ot,fb as H,ga as v,gc as Te,h as Je,hb as K,ia as z,ib as ut,jb as ct,kb as ht,mb as ue,n as et,nb as ce,oa as Z,oc as vt,pa as rt,pc as he,ra as Q,sa as c,t as tt,tb as ft,vb as k,wa as P,wb as gt,xa as T,xb as pt,ya as p,za as le}from"./chunk-O5N7UH37.js";import{J as _t,L as ge,Q as Le,U as Ct,b as fe,d as ke,g as yt,ga as Be}from"./chunk-3SI3TVER.js";import{a as y,b as w}from"./chunk-VB56BUGO.js";var an=["data-p-icon","times"],vi=(()=>{class t extends Dt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["","data-p-icon","times"]],features:[f],attrs:an,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(nt(),dt(0,"path",0))},encapsulation:2})}return t})();var ln=Object.defineProperty,Vt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,At=(t,n,e)=>n in t?ln(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Et=(t,n)=>{for(var e in n||(n={}))dn.call(n,e)&&At(t,e,n[e]);if(Vt)for(var e of Vt(n))un.call(n,e)&&At(t,e,n[e]);return t},cn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{d(e.next(l))}catch(u){o(u)}},s=l=>{try{d(e.throw(l))}catch(u){o(u)}},d=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);d((e=e.apply(t,n)).next())}),ye="animation",ee="transition";function hn(t){return t?t.disabled||!!(t.safe&&_t()):!1}function fn(t,n){return t?Et(Et({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function gn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function pn(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function mn(t,n){let e=window.getComputedStyle(t),i=_=>{let S=e[`${_}Delay`],F=e[`${_}Duration`];return[S.split(", ").map(Be),F.split(", ").map(Be)]},[o,r]=i(ee),[s,d]=i(ye),l=Math.max(...r.map((_,S)=>_+o[S])),u=Math.max(...d.map((_,S)=>_+s[S])),h,m=0,b=0;return n===ee?l>0&&(h=ee,m=l,b=r.length):n===ye?u>0&&(h=ye,m=u,b=d.length):(m=Math.max(l,u),h=m>0?l>u?ee:ye:void 0,b=h?h===ee?r.length:d.length:0),{type:h,timeout:m,count:b}}function _e(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function vn(t,n=!0,e=!1){if(!n&&!e)return;let i=yt(t);n&&Le(t,"--pui-motion-height",i.height+"px"),e&&Le(t,"--pui-motion-width",i.width+"px")}var yn={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Pe(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,s={},d=h=>{if(Object.assign(e,fn(h,yn)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=pn(e),i=hn(e),o=gn(e),r=null},l=h=>cn(null,null,function*(){r?.();let{onBefore:m,onStart:b,onAfter:_,onCancelled:S}=s[h]||{},F={element:t};if(i){m?.(F),b?.(F),_?.(F);return}let{from:ze,active:Ze,to:Qe}=o[h]||{};return vn(t,e.autoHeight,e.autoWidth),m?.(F),fe(t,ze),fe(t,Ze),t.offsetHeight,ke(t,ze),fe(t,Qe),b?.(F),new Promise(Ke=>{let rn=_e(e.duration,h),Ye=()=>{ke(t,[Qe,Ze]),r=null},sn=()=>{Ye(),_?.(F),Ke()};r=()=>{Ye(),S?.(F),Ke()},Cn(t,e.type,rn,sn)})});d(n);let u={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(h,m)=>{if(!h)throw new Error("Element is required.");t=h,u.cancel(),d(m)}};return e.appear&&u.enter(),u}var _n=0;function Cn(t,n,e,i){let o=t._motionEndId=++_n,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:s,timeout:d,count:l}=mn(t,n);if(!s){i();return}let u=s+"end",h=0,m=()=>{t.removeEventListener(u,b,!0),r()},b=_=>{_.target===t&&++h>=l&&m()};t.addEventListener(u,b,{capture:!0,once:!0}),setTimeout(()=>{h<l&&m()},d+1)}var Dn=["*"];function Mn(t,n){t&1&&ct(0)}var Ce=new WeakMap;function te(t,n){if(t)switch(Ce.has(t)||Ce.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function be(t,n){if(!t)return;let e=Ce.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Ce.delete(t)}var Vn=`
1
+ import{$ as B,Aa as f,Ba as Fe,Ea as st,Ha as at,Hb as A,I as O,Ic as bt,J as q,Jb as Se,Jc as pe,K as x,Ka as de,Lc as me,M as D,Na as R,O as C,Oa as j,Oc as Y,Pc as X,Sb as E,Ta as G,Tb as M,Ua as we,V as nt,Va as Ie,Vc as N,Wa as lt,Wb as g,Wc as ve,Xb as a,Z as it,Za as dt,_c as Dt,ab as Ne,ad as Mt,bc as Oe,cc as I,d as Xe,da as V,dc as mt,ea as ae,ec as xe,fa as ot,fb as H,ga as v,gc as Te,h as Je,hb as K,ia as z,ib as ut,jb as ct,kb as ht,mb as ue,n as et,nb as ce,oa as Z,oc as vt,pa as rt,pc as he,ra as Q,sa as c,t as tt,tb as ft,vb as k,wa as P,wb as gt,xa as T,xb as pt,ya as p,za as le}from"./chunk-AALYQ3RG.js";import{J as _t,L as ge,Q as Le,U as Ct,b as fe,d as ke,g as yt,ga as Be}from"./chunk-3SI3TVER.js";import{a as y,b as w}from"./chunk-VB56BUGO.js";var an=["data-p-icon","times"],vi=(()=>{class t extends Dt{static \u0275fac=(()=>{let e;return function(o){return(e||(e=v(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["","data-p-icon","times"]],features:[f],attrs:an,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){i&1&&(nt(),dt(0,"path",0))},encapsulation:2})}return t})();var ln=Object.defineProperty,Vt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,At=(t,n,e)=>n in t?ln(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Et=(t,n)=>{for(var e in n||(n={}))dn.call(n,e)&&At(t,e,n[e]);if(Vt)for(var e of Vt(n))un.call(n,e)&&At(t,e,n[e]);return t},cn=(t,n,e)=>new Promise((i,o)=>{var r=l=>{try{d(e.next(l))}catch(u){o(u)}},s=l=>{try{d(e.throw(l))}catch(u){o(u)}},d=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);d((e=e.apply(t,n)).next())}),ye="animation",ee="transition";function hn(t){return t?t.disabled||!!(t.safe&&_t()):!1}function fn(t,n){return t?Et(Et({},t),Object.entries(n).reduce((e,[i,o])=>{var r;return e[i]=(r=t[i])!=null?r:o,e},{})):n}function gn(t){let{name:n,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${n}-enter-from`,to:e?.to||`${n}-enter-to`,active:e?.active||`${n}-enter-active`},leave:{from:i?.from||`${n}-leave-from`,to:i?.to||`${n}-leave-to`,active:i?.active||`${n}-leave-active`}}}function pn(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function mn(t,n){let e=window.getComputedStyle(t),i=_=>{let S=e[`${_}Delay`],F=e[`${_}Duration`];return[S.split(", ").map(Be),F.split(", ").map(Be)]},[o,r]=i(ee),[s,d]=i(ye),l=Math.max(...r.map((_,S)=>_+o[S])),u=Math.max(...d.map((_,S)=>_+s[S])),h,m=0,b=0;return n===ee?l>0&&(h=ee,m=l,b=r.length):n===ye?u>0&&(h=ye,m=u,b=d.length):(m=Math.max(l,u),h=m>0?l>u?ee:ye:void 0,b=h?h===ee?r.length:d.length:0),{type:h,timeout:m,count:b}}function _e(t,n){return typeof t=="number"?t:typeof t=="object"&&t[n]!=null?t[n]:null}function vn(t,n=!0,e=!1){if(!n&&!e)return;let i=yt(t);n&&Le(t,"--pui-motion-height",i.height+"px"),e&&Le(t,"--pui-motion-width",i.width+"px")}var yn={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function Pe(t,n){if(!t)throw new Error("Element is required.");let e={},i=!1,o={},r=null,s={},d=h=>{if(Object.assign(e,fn(h,yn)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=pn(e),i=hn(e),o=gn(e),r=null},l=h=>cn(null,null,function*(){r?.();let{onBefore:m,onStart:b,onAfter:_,onCancelled:S}=s[h]||{},F={element:t};if(i){m?.(F),b?.(F),_?.(F);return}let{from:ze,active:Ze,to:Qe}=o[h]||{};return vn(t,e.autoHeight,e.autoWidth),m?.(F),fe(t,ze),fe(t,Ze),t.offsetHeight,ke(t,ze),fe(t,Qe),b?.(F),new Promise(Ke=>{let rn=_e(e.duration,h),Ye=()=>{ke(t,[Qe,Ze]),r=null},sn=()=>{Ye(),_?.(F),Ke()};r=()=>{Ye(),S?.(F),Ke()},Cn(t,e.type,rn,sn)})});d(n);let u={enter:()=>e.enter?l("enter"):Promise.resolve(),leave:()=>e.leave?l("leave"):Promise.resolve(),cancel:()=>{r?.(),r=null},update:(h,m)=>{if(!h)throw new Error("Element is required.");t=h,u.cancel(),d(m)}};return e.appear&&u.enter(),u}var _n=0;function Cn(t,n,e,i){let o=t._motionEndId=++_n,r=()=>{o===t._motionEndId&&i()};if(e!=null)return setTimeout(r,e);let{type:s,timeout:d,count:l}=mn(t,n);if(!s){i();return}let u=s+"end",h=0,m=()=>{t.removeEventListener(u,b,!0),r()},b=_=>{_.target===t&&++h>=l&&m()};t.addEventListener(u,b,{capture:!0,once:!0}),setTimeout(()=>{h<l&&m()},d+1)}var Dn=["*"];function Mn(t,n){t&1&&ct(0)}var Ce=new WeakMap;function te(t,n){if(t)switch(Ce.has(t)||Ce.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),n){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function be(t,n){if(!t)return;let e=Ce.get(t)??t.style;switch(n){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}Ce.delete(t)}var Vn=`
2
2
  .p-motion {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{$ as ot,A as Q,Aa as Xn,B as Ke,C as Bn,D as P,Da as tr,E as ne,Ea as er,F as U,G as S,Ga as nr,H as qn,Ha as rr,Hb as ur,J as y,K as We,Ka as ir,L as Vn,Lc as Cr,M as I,N as re,O as d,Oc as Ir,P as Kn,Pc as Er,Q as Z,R as x,Rb as dr,Sb as R,Tb as H,Tc as Or,Ub as hr,Vb as pr,Wa as or,Wc as rn,X as Wn,Xb as at,Y as Ge,Z as Qe,_ as Gn,a as Pn,aa as Ze,b as Un,ba as ie,bc as se,c as jn,cc as F,d as rt,da as v,dc as gt,e as L,ea as Ye,f as _,fa as Mt,fb as sr,fc as fr,fd as ue,ga as Nt,h as O,ha as Qn,hc as gr,i as g,ia as Je,ic as ae,j as $n,k as Be,kb as ar,l as Hn,ma as Zn,mb as lr,n as C,nb as cr,o as qe,p as V,q as Ve,qc as mr,r as Fn,ra as Xe,s as Xt,sa as A,ta as oe,ua as Yn,v as it,va as tn,w as te,wa as Jn,x as ee,xa as en,xc as vr,y as ft,ya as st,z as zn,zc as Tr}from"./chunk-O5N7UH37.js";import{D as Y,N as Sr,a as Lt,h as yr,i as br,j as Rr,m as z,p as nn,r as le,s as wr,u as ce}from"./chunk-3SI3TVER.js";import{a as u,b as N}from"./chunk-VB56BUGO.js";var p="primary",Wt=Symbol("RouteTitle"),cn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new cn(e)}function on(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function xr(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let l={},c=e.slice(0,n.length);return on(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let a={};return!on(o,e.slice(0,o.length),a)||!on(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function me(e){return new Promise((r,t)=>{e.pipe(Q()).subscribe({next:n=>r(n),error:n=>t(n)})})}function ki(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!B(e[t],r[t]))return!1;return!0}function B(e,r){let t=e?un(e):void 0,n=r?un(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!kr(e[i],r[i]))return!1;return!0}function un(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function kr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function Pi(e){return e.length>0?e[e.length-1]:null}function ht(e){return Be(e)?e:er(e)?O(Promise.resolve(e)):g(e)}function Pr(e){return Be(e)?me(e):Promise.resolve(e)}var Ui={exact:jr,subset:$r},Ur={exact:ji,subset:$i,ignored:()=>!0},Cn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function In(e,r,t){let n=e instanceof E?e:r.parseUrl(e);return H(()=>dn(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},jt),t)))}function dn(e,r,t){return Ui[t.paths](e.root,r.root,t.matrixParams)&&Ur[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function ji(e,r){return B(e,r)}function jr(e,r,t){if(!lt(e.segments,r.segments)||!pe(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!jr(e.children[n],r.children[n],t))return!1;return!0}function $i(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>kr(e[t],r[t]))}function $r(e,r,t){return Hr(e,r,r.segments,t)}function Hr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!lt(i,t)||r.hasChildren()||!pe(i,t,n))}else if(e.segments.length===t.length){if(!lt(e.segments,t)||!pe(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!$r(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!lt(e.segments,i)||!pe(e.segments,i,n)||!e.children[p]?!1:Hr(e.children[p],r,o,n)}}function pe(e,r,t){return r.every((n,i)=>Ur[t](e[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){return zi.serialize(this)}},m=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}},J=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ct(this.parameters),this._parameterMap}toString(){return zr(this)}};function Hi(e,r){return lt(e,r)&&e.every((t,n)=>B(t.parameters,r[n].parameters))}function lt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Fi(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ct=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new X,providedIn:"root"})}return e})(),X=class{parse(r){let t=new pn(r);return new E(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${_t(r.root,!0)}`,n=Vi(r.queryParams),i=typeof r.fragment=="string"?`#${Bi(r.fragment)}`:"";return`${t}${n}${i}`}},zi=new X;function fe(e){return e.segments.map(r=>zr(r)).join("/")}function _t(e,r){if(!e.hasChildren())return fe(e);if(r){let t=e.children[p]?_t(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${_t(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Fi(e,(n,i)=>i===p?[_t(e.children[p],!1)]:[`${i}:${_t(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${fe(e)}/${t[0]}`:`${fe(e)}/(${t.join("//")})`}}function Fr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function de(e){return Fr(e).replace(/%3B/gi,";")}function Bi(e){return encodeURI(e)}function hn(e){return Fr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function Ar(e){return ge(e.replace(/\+/g,"%20"))}function zr(e){return`${hn(e.path)}${qi(e.parameters)}`}function qi(e){return Object.entries(e).map(([r,t])=>`;${hn(r)}=${hn(t)}`).join("")}function Vi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${de(t)}=${de(i)}`).join("&"):`${de(t)}=${de(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Ki=/^[^\/()?;#]+/;function sn(e){let r=e.match(Ki);return r?r[0]:""}var Wi=/^[^\/()?;=#]+/;function Gi(e){let r=e.match(Wi);return r?r[0]:""}var Qi=/^[^=?&#]+/;function Zi(e){let r=e.match(Qi);return r?r[0]:""}var Yi=/^[^&#]+/;function Ji(e){let r=e.match(Yi);return r?r[0]:""}var pn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[p]=new m(t,n)),i}parseSegment(){let r=sn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new J(ge(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Gi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=sn(this.remaining);i&&(n=i,this.capture(n))}r[ge(t)]=ge(n)}parseQueryParam(r){let t=Zi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=Ji(this.remaining);s&&(n=s,this.capture(n))}let i=Ar(t),o=Ar(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=sn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(t+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new m([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function Br(e){return e.segments.length>0?new m([],{[p]:e}):e}function qr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=qr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new m(e.segments,r);return Xi(t)}function Xi(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new m(e.segments.concat(r.segments),r.children)}return e}function tt(e){return e instanceof E}function Vr(e,r,t=null,n=null,i=new X){let o=Kr(e);return Wr(o,r,t,n,i)}function Kr(e){let r;function t(o){let s={};for(let l of o.children){let c=t(l);s[l.outlet]=c}let a=new m(o.url,s);return o===e&&(r=a),a}let n=t(e.root),i=Br(n);return r??i}function Wr(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return an(o,o,o,t,n,i);let s=to(r);if(s.toRoot())return an(o,o,new m([],{}),t,n,i);let a=eo(s,o,e),l=a.processChildren?kt(a.segmentGroup,a.index,s.commands):Qr(a.segmentGroup,a.index,s.commands);return an(o,a.segmentGroup,l,t,n,i)}function ve(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $t(e){return typeof e=="object"&&e!=null&&e.outlets}function Dr(e,r,t){e||="\u0275";let n=new E;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function an(e,r,t,n,i,o){let s={};for(let[c,h]of Object.entries(n??{}))s[c]=Array.isArray(h)?h.map(f=>Dr(c,f,o)):Dr(c,h,o);let a;e===r?a=t:a=Gr(e,r,t);let l=Br(qr(a));return new E(l,s,i)}function Gr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Gr(o,r,t)}),new m(e.segments,n)}var ye=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&ve(n[0]))throw new S(4003,!1);let i=n.find($t);if(i&&i!==Pi(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function to(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ye(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?t=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ye(t,r,n)}var vt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function eo(e,r,t){if(e.isAbsolute)return new vt(r,!0,0);if(!t)return new vt(r,!1,NaN);if(t.parent===null)return new vt(t,!0,0);let n=ve(e.commands[0])?0:1,i=t.segments.length-1+n;return no(t,i,e.numberOfDoubleDots)}function no(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new vt(n,!1,i-o)}function ro(e){return $t(e[0])?e[0].outlets:{[p]:e}}function Qr(e,r,t){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return kt(e,r,t);let n=io(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new m(e.segments.slice(0,n.pathIndex),{});return o.children[p]=new m(e.segments.slice(n.pathIndex),e.children),kt(o,0,i)}else return n.match&&i.length===0?new m(e.segments,{}):n.match&&!e.hasChildren()?fn(e,r,t):n.match?kt(e,0,i):fn(e,r,t)}function kt(e,r,t){if(t.length===0)return new m(e.segments,{});{let n=ro(t),i={};if(Object.keys(n).some(o=>o!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let o=kt(e.children[p],r,t);return new m(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Qr(e.children[o],r,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(e.segments,i)}}function io(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let s=e.segments[i],a=t[n];if($t(a))break;let l=`${a}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Nr(l,c,s))return o;n+=2}else{if(!Nr(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fn(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if($t(o)){let l=oo(o.outlets);return new m(n,l)}if(i===0&&ve(t[0])){let l=e.segments[r];n.push(new J(l.path,Mr(t[0]))),i++;continue}let s=$t(o)?o.outlets[p]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&ve(a)?(n.push(new J(s,Mr(a))),i+=2):(n.push(new J(s,{})),i++)}return new m(n,{})}function oo(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=fn(new m([],{}),0,n))}),r}function Mr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Nr(e,r,t){return e==t.path&&B(r,t.parameters)}var Pt="imperative",w=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(w||{}),M=class{id;url;constructor(r,t){this.id=r,this.url=t}},ut=class extends M{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends M{urlAfterRedirects;type=w.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(T||{}),Ht=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ht||{}),k=class extends M{reason;code;type=w.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zr(e){return e instanceof k&&(e.code===T.Redirect||e.code===T.SupersededByNewNavigation)}var W=class extends M{reason;code;type=w.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},dt=class extends M{error;target;type=w.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ft=class extends M{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},be=class extends M{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Re=class extends M{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},we=class extends M{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Se=class extends M{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ie=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ee=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ae=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var bt=class{},zt=class{},Rt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function so(e){return!(e instanceof bt)&&!(e instanceof Rt)&&!(e instanceof zt)}var De=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new It(this.rootInjector)}},It=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new De(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(re(Z))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Me=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=gn(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=gn(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=mn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return mn(r,this._root).map(t=>t.value)}};function gn(e,r){if(e===r.value)return r;for(let t of r.children){let n=gn(e,t);if(n)return n}return null}function mn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=mn(e,t);if(n.length)return n.unshift(r),n}return[]}var D=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function mt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Bt=class extends Me{snapshot;constructor(r,t){super(r),this.snapshot=t,On(this,r)}toString(){return this.snapshot.toString()}};function Yr(e,r){let t=ao(e,r),n=new L([new J("",{})]),i=new L({}),o=new L({}),s=new L({}),a=new L(""),l=new G(n,i,s,a,o,p,e,t.root);return l.snapshot=t.root,new Bt(new D(l,[]),t)}function ao(e,r){let t={},n={},i={},s=new wt([],t,i,"",n,p,e,null,{},r);return new qt("",new D(s,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,s,a,l){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(C(c=>c[Wt]))??g(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(r=>ct(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(r=>ct(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function En(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&Xr(i)&&(n.resolve[Wt]=i.title),n}var wt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Wt]}constructor(r,t,n,i,o,s,a,l,c,h){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}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??=ct(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},qt=class extends Me{url;constructor(r,t){super(t),this.url=r,On(this,t)}toString(){return Jr(this._root)}};function On(e,r){r.value._routerState=e,r.children.forEach(t=>On(e,t))}function Jr(e){let r=e.children.length>0?` { ${e.children.map(Jr).join(", ")} } `:"";return`${e.value}${r}`}function ln(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,B(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),B(r.params,t.params)||e.paramsSubject.next(t.params),ki(r.url,t.url)||e.urlSubject.next(t.url),B(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function vn(e,r){let t=B(e.params,r.params)&&Hi(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||vn(e.parent,r.parent))}function Xr(e){return typeof e.title=="string"||e.title===null}var ti=new I(""),An=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ot;deactivateEvents=new ot;attachEvents=new ot;detachEvents=new ot;routerOutletData=at();parentContexts=d(It);location=d(oe);changeDetector=d(se);inputBinder=d(Gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yn(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=st({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mt]})}return e})(),yn=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===G?this.route:r===It?this.childContexts:r===ti?this.outletData:this.parent.get(r,t)}},Gt=new I(""),Dn=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=qe([n.queryParams,n.params,n.data]).pipe(P(([o,s,a],l)=>(a=u(u(u({},o),s),a),l===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=fr(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})(),Mn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Jn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&or(0,"router-outlet")},dependencies:[An],encapsulation:2})}return e})();function Nn(e){let r=e.children&&e.children.map(Nn),t=r?N(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Mn),t}function lo(e,r,t){let n=Vt(e,r._root,t?t._root:void 0);return new Bt(n,r)}function Vt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=co(e,r,t);return new D(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Vt(e,a)),s}}let n=uo(r.value),i=r.children.map(o=>Vt(e,o));return new D(n,i)}}function co(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Vt(e,n,i);return Vt(e,n)})}function uo(e){return new G(new L(e.url),new L(e.params),new L(e.queryParams),new L(e.fragment),new L(e.data),e.outlet,e.component,e)}var St=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},ei="ngNavigationCancelingError";function Ne(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=tt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ni(!1,T.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ni(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ei]=!0,t.cancellationCode=r,t}function ho(e){return ri(e)&&tt(e.url)}function ri(e){return!!e&&e[ei]}var bn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),ln(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=mt(t);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,t,s.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=mt(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=mt(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=mt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ae(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ee(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(ln(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,s.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ln(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Le=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},yt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function po(e,r,t){let n=e._root,i=r?r._root:null;return xt(n,i,t,[n.value])}function fo(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Et(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Vn(e)?e:r.get(e):n}function xt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=mt(r);return e.children.forEach(s=>{go(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ut(a,t.getContext(s),i)),i}function go(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=r?r.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=mo(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Le(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xt(e,r,a?a.children:null,n,i):xt(e,r,t,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new yt(a.outlet.component,s))}else s&&Ut(r,a,i),i.canActivateChecks.push(new Le(n)),o.component?xt(e,null,a?a.children:null,n,i):xt(e,null,t,n,i);return i}function mo(e,r,t){if(typeof t=="function")return x(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!lt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!lt(e.url,r.url)||!B(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vn(e,r)||!B(e.queryParams,r.queryParams);default:return!vn(e,r)}}function Ut(e,r,t){let n=mt(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Ut(s,r.children.getContext(o),t):Ut(s,null,t):Ut(s,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new yt(r.outlet.component,i)):t.canDeactivateChecks.push(new yt(null,i)):t.canDeactivateChecks.push(new yt(null,i))}function Qt(e){return typeof e=="function"}function vo(e){return typeof e=="boolean"}function yo(e){return e&&Qt(e.canLoad)}function bo(e){return e&&Qt(e.canActivate)}function Ro(e){return e&&Qt(e.canActivateChild)}function wo(e){return e&&Qt(e.canDeactivate)}function So(e){return e&&Qt(e.canMatch)}function ii(e){return e instanceof Hn||e?.name==="EmptyError"}var he=Symbol("INITIAL_VALUE");function Tt(){return P(e=>qe(e.map(r=>r.pipe(ft(1),Bn(he)))).pipe(C(r=>{for(let t of r)if(t!==!0){if(t===he)return he;if(t===!1||To(t))return t}return!0}),it(r=>r!==he),ft(1)))}function To(e){return tt(e)||e instanceof St}function oi(e){return e.aborted?g(void 0).pipe(ft(1)):new jn(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function si(e){return ne(oi(e))}function Co(e){return V(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(N(u({},r),{guardsResult:!0})):Io(o,t,n).pipe(V(s=>s&&vo(s)?Eo(t,i,e):g(s)),C(s=>N(u({},r),{guardsResult:s})))})}function Io(e,r,t){return O(e).pipe(V(n=>No(n.component,n.route,t,r)),Q(n=>n!==!0,!0))}function Eo(e,r,t){return O(r).pipe(ee(n=>Fn(Ao(n.route.parent,t),Oo(n.route,t),Mo(e,n.path),Do(e,n.route))),Q(n=>n!==!0,!0))}function Oo(e,r){return e!==null&&r&&r(new Oe(e)),g(!0)}function Ao(e,r){return e!==null&&r&&r(new Ie(e)),g(!0)}function Do(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let n=t.map(i=>Xt(()=>{let o=r._environmentInjector,s=Et(i,o),a=bo(s)?s.canActivate(r,e):x(o,()=>s(r,e));return ht(a).pipe(Q())}));return g(n).pipe(Tt())}function Mo(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>fo(o)).filter(o=>o!==null).map(o=>Xt(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=Et(a,l),h=Ro(c)?c.canActivateChild(t,e):x(l,()=>c(t,e));return ht(h).pipe(Q())});return g(s).pipe(Tt())}));return g(i).pipe(Tt())}function No(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,l=Et(s,a),c=wo(l)?l.canDeactivate(e,r,t,n):x(a,()=>l(e,r,t,n));return ht(c).pipe(Q())});return g(o).pipe(Tt())}function Lo(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let l=Et(a,e),c=yo(l)?l.canLoad(r,t):x(e,()=>l(r,t)),h=ht(c);return i?h.pipe(si(i)):h});return g(s).pipe(Tt(),ai(n))}function ai(e){return Un(U(r=>{if(typeof r!="boolean")throw Ne(e,r)}),C(r=>r===!0))}function _o(e,r,t,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(l=>{let c=Et(l,e),h=So(c)?c.canMatch(r,t,i):x(e,()=>c(r,t,i));return ht(h).pipe(si(o))});return g(a).pipe(Tt(),ai(n))}var K=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Kt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function xo(e){throw new S(4e3,!1)}function ko(e){throw ni(!1,T.GuardRejected)}var Rn=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}async lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw xo(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,t,n,i,o){let s=await Po(t,i,o);if(s instanceof E)throw new Kt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Kt(a);return a}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new E(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=t[a]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(r,l,n,i)}),new m(o,s)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function Po(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return me(ht(x(t,()=>n(r))))}function Uo(e,r){return e.providers&&!e._injector&&(e._injector=tn(e.providers,r,`Route: ${e.path}`)),e._injector??r}function j(e){return e.outlet||p}function jo(e,r){let t=e.filter(n=>j(n)===r);return t.push(...e.filter(n=>j(n)!==r)),t}var wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function li(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function $o(e,r,t,n,i,o,s){let a=ci(e,r,t);if(!a.matched)return g(a);let l=li(o(a));return n=Uo(r,n),_o(n,r,t,i,l,s).pipe(C(c=>c===!0?a:u({},wn)))}function ci(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},wn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||xr)(t,e,r);if(!i)return u({},wn);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Lr(e,r,t,n,i){return t.length>0&&zo(e,t,n,i)?{segmentGroup:new m(r,Fo(n,new m(t,e.children))),slicedSegments:[]}:t.length===0&&Bo(e,t,n)?{segmentGroup:new m(e.segments,Ho(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new m(e.segments,e.children),slicedSegments:t}}function Ho(e,r,t,n){let i={};for(let o of t)if(ke(e,r,o)&&!n[j(o)]){let s=new m([],{});i[j(o)]=s}return u(u({},n),i)}function Fo(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&j(n)!==p){let i=new m([],{});t[j(n)]=i}return t}function zo(e,r,t,n){return t.some(i=>!ke(e,r,i)||!(j(i)!==p)?!1:!(n!==void 0&&j(i)===n))}function Bo(e,r,t){return t.some(n=>ke(e,r,n))}function ke(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function qo(e,r,t){return r.length===0&&!e.children[t]}var Sn=class{};async function Vo(e,r,t,n,i,o,s="emptyOnly",a){return new Tn(e,r,t,n,i,s,o,a).recognize()}var Ko=31,Tn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,s,a,l){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new Rn(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Lr(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new D(n,t),o=new qt("",i),s=Vr(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let t=new wt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,t),rootSnapshot:t}}catch(n){if(n instanceof Kt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof K?this.noMatchError(n):n}}async processSegmentGroup(r,t,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let s=await this.processSegment(r,t,n,n.segments,i,!0,o);return s instanceof D?[s]:[]}async processChildren(r,t,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=n.children[l],h=jo(t,l),f=await this.processSegmentGroup(r,h,c,l,i);s.push(...f)}let a=ui(s);return Wo(a),a}async processSegment(r,t,n,i,o,s,a){for(let l of t)try{return await this.processSegmentAgainstRoute(l._injector??r,t,l,n,i,o,s,a)}catch(c){if(c instanceof K||ii(c))continue;throw c}if(qo(n,i,o))return new Sn;throw new K(n)}async processSegmentAgainstRoute(r,t,n,i,o,s,a,l){if(j(n)!==s&&(s===p||!ke(i,o,n)))throw new K(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,s,l);throw new K(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:b}=ci(t,i,o);if(!l)throw new K(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ko&&(this.allowRedirects=!1));let et=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,li(et),r),nt=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(r,n,t,nt.concat(b),s,!1,a)}createSnapshot(r,t,n,i,o){let s=new wt(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Qo(t),j(t),t.component??t._loadedComponent??null,t,Zo(t),r),a=En(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(r,t,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Jt=>this.createSnapshot(r,n,Jt.consumedSegments,Jt.parameters,s),l=await me($o(t,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new K(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:b,remainingSegments:et}=l,q=this.createSnapshot(r,n,b,f,s),{segmentGroup:nt,slicedSegments:At}=Lr(t,b,et,c,o);if(At.length===0&&nt.hasChildren()){let Jt=await this.processChildren(h,c,nt,q);return new D(q,Jt)}if(c.length===0&&At.length===0)return new D(q,[]);let ze=j(n)===o,Dt=await this.processSegment(h,c,nt,At,ze?p:o,!0,q);return new D(q,Dt instanceof D?[Dt]:[])}async getChildConfig(r,t,n){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await me(Lo(r,t,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw ko(t)}return{routes:[],injector:r}}};function Wo(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Go(e){let r=e.value.routeConfig;return r&&r.path===""}function ui(e){let r=[],t=new Set;for(let n of e){if(!Go(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=ui(n.children);r.push(new D(n.value,i))}return r.filter(n=>!t.has(n))}function Qo(e){return e.data||{}}function Zo(e){return e.resolve||{}}function Yo(e,r,t,n,i,o,s){return V(async a=>{let{state:l,tree:c}=await Vo(e,r,t,n,a.extractedUrl,i,o,s);return N(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Jo(e){return V(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of di(a))o.add(l);let s=0;return O(o).pipe(ee(a=>i.has(a)?Xo(a,t,e):(a.data=En(a,a.parent,e).resolve,g(void 0))),U(()=>s++),Ke(1),V(a=>s===o.size?g(r):_))})}function di(e){let r=e.children.map(t=>di(t)).flat();return[e,...r]}function Xo(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!Xr(n)&&(i[Wt]=n.title),Xt(()=>(e.data=En(e,e.parent,t).resolve,ts(i,e,r).pipe(C(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function ts(e,r,t){let n=un(e);if(n.length===0)return g({});let i={};return O(n).pipe(V(o=>es(e[o],r,t).pipe(Q(),U(s=>{if(s instanceof St)throw Ne(new X,s);i[o]=s}))),Ke(1),C(()=>i),te(o=>ii(o)?_:$n(o)))}function es(e,r,t){let n=r._environmentInjector,i=Et(e,n),o=i.resolve?i.resolve(r,t):x(n,()=>i(r,t));return ht(o)}function _r(e){return P(r=>{let t=e(r);return t?O(t).pipe(C(()=>r)):g(r)})}var Ln=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Wt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(hi),providedIn:"root"})}return e})(),hi=(()=>{class e extends Ln{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(re(vr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ot=new I("",{factory:()=>({})}),Zt=new I(""),pi=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(dr);async loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Pr(x(t,()=>n.loadComponent())),s=await mi(gi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await fi(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function fi(e,r,t,n){let i=await Pr(x(t,()=>e.loadChildren())),o=await mi(gi(i)),s;o instanceof Yn||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(e);let a,l,c=!1,h;return Array.isArray(s)?(l=s,c=!0):(a=s.create(t).injector,h=s,l=a.get(Zt,[],{optional:!0,self:!0}).flat()),{routes:l.map(Nn),injector:a,factory:h}}function ns(e){return e&&typeof e=="object"&&"default"in e}function gi(e){return ns(e)?e.default:e}async function mi(e){return e}var Pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(rs),providedIn:"root"})}return e})(),rs=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vi=new I("");var is=()=>{},yi=new I(""),bi=(()=>{class e{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new rt;transitionAbortWithErrorSubject=new rt;configLoader=d(pi);environmentInjector=d(Z);destroyRef=d(Qe);urlSerializer=d(Ct);rootContexts=d(It);location=d(ae);inputBindingEnabled=d(Gt,{optional:!0})!==null;titleStrategy=d(Ln);options=d(Ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Pe);createViewTransition=d(vi,{optional:!0});navigationErrorHandler=d(yi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Te(i)),n=i=>this.events.next(new Ce(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;R(()=>{this.transitions?.next(N(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new L(null),this.transitions.pipe(it(n=>n!==null),P(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(P(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),_;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?N(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new W(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ht.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(P(f=>(this.events.next(new ut(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?_:Promise.resolve(f))),Yo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),U(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=f.urlAfterRedirects,b)),this.events.next(new zt)}),P(f=>O(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(C(()=>f))),U(()=>{let f=new Ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:b,source:et,restoredState:q,extras:nt}=a,At=new ut(f,this.urlSerializer.serialize(b),et,q);this.events.next(At);let ze=Yr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=N(u({},a),{targetSnapshot:ze,urlAfterRedirects:b,extras:N(u({},nt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Dt=>(Dt.finalUrl=b,Dt)),g(n)}else return this.events.next(new W(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ht.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),C(a=>{let l=new be(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=N(u({},a),{guards:po(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),Co(a=>this.events.next(a)),P(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ne(this.urlSerializer,a.guardsResult);let l=new Re(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",T.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let c=new we(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return _;let h=!1;return g(a).pipe(Jo(this.paramsInheritanceStrategy),U({next:()=>{h=!0;let f=new Se(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(a,"",T.NoDataFromResolver)}}))}),_r(a=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;f.push(this.configLoader.loadComponent(b,h.routeConfig).then(et=>{h.component=et}))}for(let b of h.children)f.push(...l(b));return f},c=l(a.targetSnapshot.root);return c.length===0?g(a):O(Promise.all(c).then(()=>a))}),_r(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?O(c).pipe(C(()=>n)):g(n)}),ft(1),P(a=>{let l=lo(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=N(u({},a),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new bt);let c=n.beforeActivateHandler.deferredHandle;return c?O(c.then(()=>a)):g(a)}),U(a=>{new bn(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(l=>(l.abort=is,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),ne(oi(o.signal).pipe(it(()=>!i&&!n.targetRouterState),U(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),U({complete:()=>{i=!0}}),ne(this.transitionAbortWithErrorSubject.pipe(U(a=>{throw a}))),zn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),te(a=>{if(i=!0,this.destroyed)return n.resolve(!1),_;if(ri(a))this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),ho(a)?this.events.next(new Rt(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=x(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof St){let{message:h,cancellationCode:f}=Ne(this.urlSerializer,c);this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Rt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _}))}))}cancelNavigationTransition(t,n,i){let o=new k(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=R(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function os(e){return e!==Pt}var Ri=new I("");var wi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(ss),providedIn:"root"})}return e})(),_e=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},ss=(()=>{class e extends _e{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ue=(()=>{class e{urlSerializer=d(Ct);options=d(Ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ae);urlHandlingStrategy=d(Pe);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,s=i??o;return s instanceof E?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=Yr(null,d(Z));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(as),providedIn:"root"})}return e})(),as=(()=>{class e extends Ue{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ut?this.updateStateMemento():t instanceof W?this.commitTransition(n):t instanceof Ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof k&&!Zr(t)?this.restoreHistory(n):t instanceof dt?this.restoreHistory(n,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,l=u(u({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",l)}else{let a=u(u({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _n(e,r){e.events.pipe(it(t=>t instanceof $||t instanceof k||t instanceof dt||t instanceof W),C(t=>t instanceof $||t instanceof W?0:(t instanceof k?t.code===T.Redirect||t.code===T.SupersededByNewNavigation:!1)?2:1),it(t=>t!==2),ft(1)).subscribe(()=>{r()})}var pt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(tr);stateManager=d(Ue);options=d(Ot,{optional:!0})||{};pendingTasks=d(Gn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(bi);urlSerializer=d(Ct);location=d(ae);urlHandlingStrategy=d(Pe);injector=d(Z);_events=new rt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(wi);injectorCleanup=d(Ri,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Zt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Gt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=R(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof k&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Rt){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||os(i.source)},s);this.scheduleNavigation(a,Pt,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}so(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pt,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let s=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(t);this.scheduleNavigation(a,n,s,o).catch(l=>{this.disposed||this.injector.get(ie)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return R(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Nn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let b=i?i.snapshot:this.routerState.snapshot.root;f=Kr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return Wr(f,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=tt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pt,null,n)}navigate(t,n={skipLocationChange:!1}){return ls(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(qn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},Cn):n===!1?i=u({},jt):i=u(u({},jt),n),tt(t))return dn(this.currentUrlTree,t,i);let o=this.parseUrl(t);return dn(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(t,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,b)=>{a=f,l=b});let h=this.pendingTasks.add();return _n(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ls(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new S(4008,!1)}var us=(()=>{class e{router=d(pt);stateManager=d(Ue);fragment=v("");queryParams=v({});path=v("");serializer=d(Ct);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof $&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),je=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new pr("href"),{optional:!0});reactiveHref=hr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return R(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return R(this._target)}_target=v(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return R(this._queryParams)}_queryParams=v(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return R(this._fragment)}_fragment=v(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return R(this._queryParamsHandling)}_queryParamsHandling=v(void 0);set state(t){this._state.set(t)}get state(){return R(this._state)}_state=v(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return R(this._info)}_info=v(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return R(this._relativeTo)}_relativeTo=v(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return R(this._preserveFragment)}_preserveFragment=v(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return R(this._skipLocationChange)}_skipLocationChange=v(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return R(this._replaceUrl)}_replaceUrl=v(!1);isAnchorElement;onChanges=new rt;applicationErrorHandler=d(ie);options=d(Ot,{optional:!0});reactiveRouterState=d(us);constructor(t,n,i,o,s,a){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=v(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(tt(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(t!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=H(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:tt(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return R(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(A(pt),A(G),Qn("tabindex"),A(Xe),A(Je),A(gr))};static \u0275dir=st({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&sr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ir("href",i.reactiveHref(),Zn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",F],skipLocationChange:[2,"skipLocationChange","skipLocationChange",F],replaceUrl:[2,"replaceUrl","replaceUrl",F],routerLink:"routerLink"},features:[Mt]})}return e})(),ds=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ot;link=d(je,{optional:!0});constructor(t,n,i,o){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(s=>{s instanceof $&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Ve()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(t).pipe(Ve()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=hs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},Cn):u({},jt);return i=>{let o=i.urlTree;return o?R(In(o,t,n)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)(A(pt),A(Je),A(Xe),A(se))};static \u0275dir=st({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&ar(o,je,5),n&2){let s;lr(s=cr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Mt]})}return e})();function hs(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ps=new I("");function fs(e,...r){return Kn([{provide:Zt,multi:!0,useValue:e},[],{provide:G,useFactory:gs},{provide:nr,multi:!0,useFactory:vs},r.map(t=>t.\u0275providers)])}function gs(){return d(pt).routerState.root}function ms(e,r){return{\u0275kind:e,\u0275providers:r}}function vs(){let e=d(Wn);return r=>{let t=e.get(rr);if(r!==t.components[0])return;let n=e.get(pt),i=e.get(ys);e.get(bs)===1&&n.initialNavigation(),e.get(Rs,null,{optional:!0})?.setUpPreloading(),e.get(ps,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ys=new I("",{factory:()=>new rt}),bs=new I("",{factory:()=>1});var Rs=new I("");function ws(){return ms(8,[Dn,{provide:Gt,useExisting:Dn}])}var Si=`
1
+ import{$ as ot,A as Q,Aa as Xn,B as Ke,C as Bn,D as P,Da as tr,E as ne,Ea as er,F as U,G as S,Ga as nr,H as qn,Ha as rr,Hb as ur,J as y,K as We,Ka as ir,L as Vn,Lc as Cr,M as I,N as re,O as d,Oc as Ir,P as Kn,Pc as Er,Q as Z,R as x,Rb as dr,Sb as R,Tb as H,Tc as Or,Ub as hr,Vb as pr,Wa as or,Wc as rn,X as Wn,Xb as at,Y as Ge,Z as Qe,_ as Gn,a as Pn,aa as Ze,b as Un,ba as ie,bc as se,c as jn,cc as F,d as rt,da as v,dc as gt,e as L,ea as Ye,f as _,fa as Mt,fb as sr,fc as fr,fd as ue,ga as Nt,h as O,ha as Qn,hc as gr,i as g,ia as Je,ic as ae,j as $n,k as Be,kb as ar,l as Hn,ma as Zn,mb as lr,n as C,nb as cr,o as qe,p as V,q as Ve,qc as mr,r as Fn,ra as Xe,s as Xt,sa as A,ta as oe,ua as Yn,v as it,va as tn,w as te,wa as Jn,x as ee,xa as en,xc as vr,y as ft,ya as st,z as zn,zc as Tr}from"./chunk-AALYQ3RG.js";import{D as Y,N as Sr,a as Lt,h as yr,i as br,j as Rr,m as z,p as nn,r as le,s as wr,u as ce}from"./chunk-3SI3TVER.js";import{a as u,b as N}from"./chunk-VB56BUGO.js";var p="primary",Wt=Symbol("RouteTitle"),cn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new cn(e)}function on(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function xr(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let l={},c=e.slice(0,n.length);return on(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let a={};return!on(o,e.slice(0,o.length),a)||!on(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function me(e){return new Promise((r,t)=>{e.pipe(Q()).subscribe({next:n=>r(n),error:n=>t(n)})})}function ki(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!B(e[t],r[t]))return!1;return!0}function B(e,r){let t=e?un(e):void 0,n=r?un(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!kr(e[i],r[i]))return!1;return!0}function un(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function kr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function Pi(e){return e.length>0?e[e.length-1]:null}function ht(e){return Be(e)?e:er(e)?O(Promise.resolve(e)):g(e)}function Pr(e){return Be(e)?me(e):Promise.resolve(e)}var Ui={exact:jr,subset:$r},Ur={exact:ji,subset:$i,ignored:()=>!0},Cn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function In(e,r,t){let n=e instanceof E?e:r.parseUrl(e);return H(()=>dn(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},jt),t)))}function dn(e,r,t){return Ui[t.paths](e.root,r.root,t.matrixParams)&&Ur[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function ji(e,r){return B(e,r)}function jr(e,r,t){if(!lt(e.segments,r.segments)||!pe(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!jr(e.children[n],r.children[n],t))return!1;return!0}function $i(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>kr(e[t],r[t]))}function $r(e,r,t){return Hr(e,r,r.segments,t)}function Hr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!lt(i,t)||r.hasChildren()||!pe(i,t,n))}else if(e.segments.length===t.length){if(!lt(e.segments,t)||!pe(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!$r(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!lt(e.segments,i)||!pe(e.segments,i,n)||!e.children[p]?!1:Hr(e.children[p],r,o,n)}}function pe(e,r,t){return r.every((n,i)=>Ur[t](e[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){return zi.serialize(this)}},m=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}},J=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ct(this.parameters),this._parameterMap}toString(){return zr(this)}};function Hi(e,r){return lt(e,r)&&e.every((t,n)=>B(t.parameters,r[n].parameters))}function lt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Fi(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ct=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new X,providedIn:"root"})}return e})(),X=class{parse(r){let t=new pn(r);return new E(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${_t(r.root,!0)}`,n=Vi(r.queryParams),i=typeof r.fragment=="string"?`#${Bi(r.fragment)}`:"";return`${t}${n}${i}`}},zi=new X;function fe(e){return e.segments.map(r=>zr(r)).join("/")}function _t(e,r){if(!e.hasChildren())return fe(e);if(r){let t=e.children[p]?_t(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${_t(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Fi(e,(n,i)=>i===p?[_t(e.children[p],!1)]:[`${i}:${_t(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${fe(e)}/${t[0]}`:`${fe(e)}/(${t.join("//")})`}}function Fr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function de(e){return Fr(e).replace(/%3B/gi,";")}function Bi(e){return encodeURI(e)}function hn(e){return Fr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function Ar(e){return ge(e.replace(/\+/g,"%20"))}function zr(e){return`${hn(e.path)}${qi(e.parameters)}`}function qi(e){return Object.entries(e).map(([r,t])=>`;${hn(r)}=${hn(t)}`).join("")}function Vi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${de(t)}=${de(i)}`).join("&"):`${de(t)}=${de(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Ki=/^[^\/()?;#]+/;function sn(e){let r=e.match(Ki);return r?r[0]:""}var Wi=/^[^\/()?;=#]+/;function Gi(e){let r=e.match(Wi);return r?r[0]:""}var Qi=/^[^=?&#]+/;function Zi(e){let r=e.match(Qi);return r?r[0]:""}var Yi=/^[^&#]+/;function Ji(e){let r=e.match(Yi);return r?r[0]:""}var pn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[p]=new m(t,n)),i}parseSegment(){let r=sn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new J(ge(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Gi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=sn(this.remaining);i&&(n=i,this.capture(n))}r[ge(t)]=ge(n)}parseQueryParam(r){let t=Zi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=Ji(this.remaining);s&&(n=s,this.capture(n))}let i=Ar(t),o=Ar(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=sn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(t+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new m([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function Br(e){return e.segments.length>0?new m([],{[p]:e}):e}function qr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=qr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new m(e.segments,r);return Xi(t)}function Xi(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new m(e.segments.concat(r.segments),r.children)}return e}function tt(e){return e instanceof E}function Vr(e,r,t=null,n=null,i=new X){let o=Kr(e);return Wr(o,r,t,n,i)}function Kr(e){let r;function t(o){let s={};for(let l of o.children){let c=t(l);s[l.outlet]=c}let a=new m(o.url,s);return o===e&&(r=a),a}let n=t(e.root),i=Br(n);return r??i}function Wr(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return an(o,o,o,t,n,i);let s=to(r);if(s.toRoot())return an(o,o,new m([],{}),t,n,i);let a=eo(s,o,e),l=a.processChildren?kt(a.segmentGroup,a.index,s.commands):Qr(a.segmentGroup,a.index,s.commands);return an(o,a.segmentGroup,l,t,n,i)}function ve(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $t(e){return typeof e=="object"&&e!=null&&e.outlets}function Dr(e,r,t){e||="\u0275";let n=new E;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function an(e,r,t,n,i,o){let s={};for(let[c,h]of Object.entries(n??{}))s[c]=Array.isArray(h)?h.map(f=>Dr(c,f,o)):Dr(c,h,o);let a;e===r?a=t:a=Gr(e,r,t);let l=Br(qr(a));return new E(l,s,i)}function Gr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Gr(o,r,t)}),new m(e.segments,n)}var ye=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&ve(n[0]))throw new S(4003,!1);let i=n.find($t);if(i&&i!==Pi(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function to(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ye(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?t=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ye(t,r,n)}var vt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function eo(e,r,t){if(e.isAbsolute)return new vt(r,!0,0);if(!t)return new vt(r,!1,NaN);if(t.parent===null)return new vt(t,!0,0);let n=ve(e.commands[0])?0:1,i=t.segments.length-1+n;return no(t,i,e.numberOfDoubleDots)}function no(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new vt(n,!1,i-o)}function ro(e){return $t(e[0])?e[0].outlets:{[p]:e}}function Qr(e,r,t){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return kt(e,r,t);let n=io(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new m(e.segments.slice(0,n.pathIndex),{});return o.children[p]=new m(e.segments.slice(n.pathIndex),e.children),kt(o,0,i)}else return n.match&&i.length===0?new m(e.segments,{}):n.match&&!e.hasChildren()?fn(e,r,t):n.match?kt(e,0,i):fn(e,r,t)}function kt(e,r,t){if(t.length===0)return new m(e.segments,{});{let n=ro(t),i={};if(Object.keys(n).some(o=>o!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let o=kt(e.children[p],r,t);return new m(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Qr(e.children[o],r,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(e.segments,i)}}function io(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let s=e.segments[i],a=t[n];if($t(a))break;let l=`${a}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Nr(l,c,s))return o;n+=2}else{if(!Nr(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fn(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if($t(o)){let l=oo(o.outlets);return new m(n,l)}if(i===0&&ve(t[0])){let l=e.segments[r];n.push(new J(l.path,Mr(t[0]))),i++;continue}let s=$t(o)?o.outlets[p]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&ve(a)?(n.push(new J(s,Mr(a))),i+=2):(n.push(new J(s,{})),i++)}return new m(n,{})}function oo(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=fn(new m([],{}),0,n))}),r}function Mr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Nr(e,r,t){return e==t.path&&B(r,t.parameters)}var Pt="imperative",w=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(w||{}),M=class{id;url;constructor(r,t){this.id=r,this.url=t}},ut=class extends M{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends M{urlAfterRedirects;type=w.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(T||{}),Ht=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ht||{}),k=class extends M{reason;code;type=w.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zr(e){return e instanceof k&&(e.code===T.Redirect||e.code===T.SupersededByNewNavigation)}var W=class extends M{reason;code;type=w.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},dt=class extends M{error;target;type=w.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ft=class extends M{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},be=class extends M{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Re=class extends M{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},we=class extends M{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Se=class extends M{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ie=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ee=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ae=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var bt=class{},zt=class{},Rt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function so(e){return!(e instanceof bt)&&!(e instanceof Rt)&&!(e instanceof zt)}var De=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new It(this.rootInjector)}},It=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new De(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(re(Z))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Me=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=gn(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=gn(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=mn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return mn(r,this._root).map(t=>t.value)}};function gn(e,r){if(e===r.value)return r;for(let t of r.children){let n=gn(e,t);if(n)return n}return null}function mn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=mn(e,t);if(n.length)return n.unshift(r),n}return[]}var D=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function mt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Bt=class extends Me{snapshot;constructor(r,t){super(r),this.snapshot=t,On(this,r)}toString(){return this.snapshot.toString()}};function Yr(e,r){let t=ao(e,r),n=new L([new J("",{})]),i=new L({}),o=new L({}),s=new L({}),a=new L(""),l=new G(n,i,s,a,o,p,e,t.root);return l.snapshot=t.root,new Bt(new D(l,[]),t)}function ao(e,r){let t={},n={},i={},s=new wt([],t,i,"",n,p,e,null,{},r);return new qt("",new D(s,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,s,a,l){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(C(c=>c[Wt]))??g(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(r=>ct(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(r=>ct(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function En(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&Xr(i)&&(n.resolve[Wt]=i.title),n}var wt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Wt]}constructor(r,t,n,i,o,s,a,l,c,h){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}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??=ct(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},qt=class extends Me{url;constructor(r,t){super(t),this.url=r,On(this,t)}toString(){return Jr(this._root)}};function On(e,r){r.value._routerState=e,r.children.forEach(t=>On(e,t))}function Jr(e){let r=e.children.length>0?` { ${e.children.map(Jr).join(", ")} } `:"";return`${e.value}${r}`}function ln(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,B(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),B(r.params,t.params)||e.paramsSubject.next(t.params),ki(r.url,t.url)||e.urlSubject.next(t.url),B(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function vn(e,r){let t=B(e.params,r.params)&&Hi(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||vn(e.parent,r.parent))}function Xr(e){return typeof e.title=="string"||e.title===null}var ti=new I(""),An=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ot;deactivateEvents=new ot;attachEvents=new ot;detachEvents=new ot;routerOutletData=at();parentContexts=d(It);location=d(oe);changeDetector=d(se);inputBinder=d(Gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yn(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=st({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mt]})}return e})(),yn=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===G?this.route:r===It?this.childContexts:r===ti?this.outletData:this.parent.get(r,t)}},Gt=new I(""),Dn=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=qe([n.queryParams,n.params,n.data]).pipe(P(([o,s,a],l)=>(a=u(u(u({},o),s),a),l===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=fr(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})(),Mn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Jn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&or(0,"router-outlet")},dependencies:[An],encapsulation:2})}return e})();function Nn(e){let r=e.children&&e.children.map(Nn),t=r?N(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Mn),t}function lo(e,r,t){let n=Vt(e,r._root,t?t._root:void 0);return new Bt(n,r)}function Vt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=co(e,r,t);return new D(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Vt(e,a)),s}}let n=uo(r.value),i=r.children.map(o=>Vt(e,o));return new D(n,i)}}function co(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Vt(e,n,i);return Vt(e,n)})}function uo(e){return new G(new L(e.url),new L(e.params),new L(e.queryParams),new L(e.fragment),new L(e.data),e.outlet,e.component,e)}var St=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},ei="ngNavigationCancelingError";function Ne(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=tt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ni(!1,T.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ni(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ei]=!0,t.cancellationCode=r,t}function ho(e){return ri(e)&&tt(e.url)}function ri(e){return!!e&&e[ei]}var bn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),ln(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=mt(t);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,t,s.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=mt(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=mt(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=mt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ae(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ee(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(ln(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,s.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ln(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Le=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},yt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function po(e,r,t){let n=e._root,i=r?r._root:null;return xt(n,i,t,[n.value])}function fo(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Et(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Vn(e)?e:r.get(e):n}function xt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=mt(r);return e.children.forEach(s=>{go(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ut(a,t.getContext(s),i)),i}function go(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=r?r.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=mo(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Le(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xt(e,r,a?a.children:null,n,i):xt(e,r,t,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new yt(a.outlet.component,s))}else s&&Ut(r,a,i),i.canActivateChecks.push(new Le(n)),o.component?xt(e,null,a?a.children:null,n,i):xt(e,null,t,n,i);return i}function mo(e,r,t){if(typeof t=="function")return x(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!lt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!lt(e.url,r.url)||!B(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vn(e,r)||!B(e.queryParams,r.queryParams);default:return!vn(e,r)}}function Ut(e,r,t){let n=mt(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Ut(s,r.children.getContext(o),t):Ut(s,null,t):Ut(s,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new yt(r.outlet.component,i)):t.canDeactivateChecks.push(new yt(null,i)):t.canDeactivateChecks.push(new yt(null,i))}function Qt(e){return typeof e=="function"}function vo(e){return typeof e=="boolean"}function yo(e){return e&&Qt(e.canLoad)}function bo(e){return e&&Qt(e.canActivate)}function Ro(e){return e&&Qt(e.canActivateChild)}function wo(e){return e&&Qt(e.canDeactivate)}function So(e){return e&&Qt(e.canMatch)}function ii(e){return e instanceof Hn||e?.name==="EmptyError"}var he=Symbol("INITIAL_VALUE");function Tt(){return P(e=>qe(e.map(r=>r.pipe(ft(1),Bn(he)))).pipe(C(r=>{for(let t of r)if(t!==!0){if(t===he)return he;if(t===!1||To(t))return t}return!0}),it(r=>r!==he),ft(1)))}function To(e){return tt(e)||e instanceof St}function oi(e){return e.aborted?g(void 0).pipe(ft(1)):new jn(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function si(e){return ne(oi(e))}function Co(e){return V(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(N(u({},r),{guardsResult:!0})):Io(o,t,n).pipe(V(s=>s&&vo(s)?Eo(t,i,e):g(s)),C(s=>N(u({},r),{guardsResult:s})))})}function Io(e,r,t){return O(e).pipe(V(n=>No(n.component,n.route,t,r)),Q(n=>n!==!0,!0))}function Eo(e,r,t){return O(r).pipe(ee(n=>Fn(Ao(n.route.parent,t),Oo(n.route,t),Mo(e,n.path),Do(e,n.route))),Q(n=>n!==!0,!0))}function Oo(e,r){return e!==null&&r&&r(new Oe(e)),g(!0)}function Ao(e,r){return e!==null&&r&&r(new Ie(e)),g(!0)}function Do(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let n=t.map(i=>Xt(()=>{let o=r._environmentInjector,s=Et(i,o),a=bo(s)?s.canActivate(r,e):x(o,()=>s(r,e));return ht(a).pipe(Q())}));return g(n).pipe(Tt())}function Mo(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>fo(o)).filter(o=>o!==null).map(o=>Xt(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=Et(a,l),h=Ro(c)?c.canActivateChild(t,e):x(l,()=>c(t,e));return ht(h).pipe(Q())});return g(s).pipe(Tt())}));return g(i).pipe(Tt())}function No(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,l=Et(s,a),c=wo(l)?l.canDeactivate(e,r,t,n):x(a,()=>l(e,r,t,n));return ht(c).pipe(Q())});return g(o).pipe(Tt())}function Lo(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let l=Et(a,e),c=yo(l)?l.canLoad(r,t):x(e,()=>l(r,t)),h=ht(c);return i?h.pipe(si(i)):h});return g(s).pipe(Tt(),ai(n))}function ai(e){return Un(U(r=>{if(typeof r!="boolean")throw Ne(e,r)}),C(r=>r===!0))}function _o(e,r,t,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(l=>{let c=Et(l,e),h=So(c)?c.canMatch(r,t,i):x(e,()=>c(r,t,i));return ht(h).pipe(si(o))});return g(a).pipe(Tt(),ai(n))}var K=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Kt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function xo(e){throw new S(4e3,!1)}function ko(e){throw ni(!1,T.GuardRejected)}var Rn=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}async lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw xo(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,t,n,i,o){let s=await Po(t,i,o);if(s instanceof E)throw new Kt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Kt(a);return a}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new E(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=t[a]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(r,l,n,i)}),new m(o,s)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function Po(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return me(ht(x(t,()=>n(r))))}function Uo(e,r){return e.providers&&!e._injector&&(e._injector=tn(e.providers,r,`Route: ${e.path}`)),e._injector??r}function j(e){return e.outlet||p}function jo(e,r){let t=e.filter(n=>j(n)===r);return t.push(...e.filter(n=>j(n)!==r)),t}var wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function li(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function $o(e,r,t,n,i,o,s){let a=ci(e,r,t);if(!a.matched)return g(a);let l=li(o(a));return n=Uo(r,n),_o(n,r,t,i,l,s).pipe(C(c=>c===!0?a:u({},wn)))}function ci(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},wn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||xr)(t,e,r);if(!i)return u({},wn);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Lr(e,r,t,n,i){return t.length>0&&zo(e,t,n,i)?{segmentGroup:new m(r,Fo(n,new m(t,e.children))),slicedSegments:[]}:t.length===0&&Bo(e,t,n)?{segmentGroup:new m(e.segments,Ho(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new m(e.segments,e.children),slicedSegments:t}}function Ho(e,r,t,n){let i={};for(let o of t)if(ke(e,r,o)&&!n[j(o)]){let s=new m([],{});i[j(o)]=s}return u(u({},n),i)}function Fo(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&j(n)!==p){let i=new m([],{});t[j(n)]=i}return t}function zo(e,r,t,n){return t.some(i=>!ke(e,r,i)||!(j(i)!==p)?!1:!(n!==void 0&&j(i)===n))}function Bo(e,r,t){return t.some(n=>ke(e,r,n))}function ke(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function qo(e,r,t){return r.length===0&&!e.children[t]}var Sn=class{};async function Vo(e,r,t,n,i,o,s="emptyOnly",a){return new Tn(e,r,t,n,i,s,o,a).recognize()}var Ko=31,Tn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,s,a,l){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new Rn(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Lr(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new D(n,t),o=new qt("",i),s=Vr(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let t=new wt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,t),rootSnapshot:t}}catch(n){if(n instanceof Kt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof K?this.noMatchError(n):n}}async processSegmentGroup(r,t,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let s=await this.processSegment(r,t,n,n.segments,i,!0,o);return s instanceof D?[s]:[]}async processChildren(r,t,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=n.children[l],h=jo(t,l),f=await this.processSegmentGroup(r,h,c,l,i);s.push(...f)}let a=ui(s);return Wo(a),a}async processSegment(r,t,n,i,o,s,a){for(let l of t)try{return await this.processSegmentAgainstRoute(l._injector??r,t,l,n,i,o,s,a)}catch(c){if(c instanceof K||ii(c))continue;throw c}if(qo(n,i,o))return new Sn;throw new K(n)}async processSegmentAgainstRoute(r,t,n,i,o,s,a,l){if(j(n)!==s&&(s===p||!ke(i,o,n)))throw new K(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,s,l);throw new K(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:b}=ci(t,i,o);if(!l)throw new K(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ko&&(this.allowRedirects=!1));let et=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,li(et),r),nt=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(r,n,t,nt.concat(b),s,!1,a)}createSnapshot(r,t,n,i,o){let s=new wt(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Qo(t),j(t),t.component??t._loadedComponent??null,t,Zo(t),r),a=En(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(r,t,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Jt=>this.createSnapshot(r,n,Jt.consumedSegments,Jt.parameters,s),l=await me($o(t,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new K(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:b,remainingSegments:et}=l,q=this.createSnapshot(r,n,b,f,s),{segmentGroup:nt,slicedSegments:At}=Lr(t,b,et,c,o);if(At.length===0&&nt.hasChildren()){let Jt=await this.processChildren(h,c,nt,q);return new D(q,Jt)}if(c.length===0&&At.length===0)return new D(q,[]);let ze=j(n)===o,Dt=await this.processSegment(h,c,nt,At,ze?p:o,!0,q);return new D(q,Dt instanceof D?[Dt]:[])}async getChildConfig(r,t,n){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await me(Lo(r,t,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw ko(t)}return{routes:[],injector:r}}};function Wo(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Go(e){let r=e.value.routeConfig;return r&&r.path===""}function ui(e){let r=[],t=new Set;for(let n of e){if(!Go(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=ui(n.children);r.push(new D(n.value,i))}return r.filter(n=>!t.has(n))}function Qo(e){return e.data||{}}function Zo(e){return e.resolve||{}}function Yo(e,r,t,n,i,o,s){return V(async a=>{let{state:l,tree:c}=await Vo(e,r,t,n,a.extractedUrl,i,o,s);return N(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Jo(e){return V(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of di(a))o.add(l);let s=0;return O(o).pipe(ee(a=>i.has(a)?Xo(a,t,e):(a.data=En(a,a.parent,e).resolve,g(void 0))),U(()=>s++),Ke(1),V(a=>s===o.size?g(r):_))})}function di(e){let r=e.children.map(t=>di(t)).flat();return[e,...r]}function Xo(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!Xr(n)&&(i[Wt]=n.title),Xt(()=>(e.data=En(e,e.parent,t).resolve,ts(i,e,r).pipe(C(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function ts(e,r,t){let n=un(e);if(n.length===0)return g({});let i={};return O(n).pipe(V(o=>es(e[o],r,t).pipe(Q(),U(s=>{if(s instanceof St)throw Ne(new X,s);i[o]=s}))),Ke(1),C(()=>i),te(o=>ii(o)?_:$n(o)))}function es(e,r,t){let n=r._environmentInjector,i=Et(e,n),o=i.resolve?i.resolve(r,t):x(n,()=>i(r,t));return ht(o)}function _r(e){return P(r=>{let t=e(r);return t?O(t).pipe(C(()=>r)):g(r)})}var Ln=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Wt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(hi),providedIn:"root"})}return e})(),hi=(()=>{class e extends Ln{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(re(vr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ot=new I("",{factory:()=>({})}),Zt=new I(""),pi=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(dr);async loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Pr(x(t,()=>n.loadComponent())),s=await mi(gi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await fi(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function fi(e,r,t,n){let i=await Pr(x(t,()=>e.loadChildren())),o=await mi(gi(i)),s;o instanceof Yn||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(e);let a,l,c=!1,h;return Array.isArray(s)?(l=s,c=!0):(a=s.create(t).injector,h=s,l=a.get(Zt,[],{optional:!0,self:!0}).flat()),{routes:l.map(Nn),injector:a,factory:h}}function ns(e){return e&&typeof e=="object"&&"default"in e}function gi(e){return ns(e)?e.default:e}async function mi(e){return e}var Pe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(rs),providedIn:"root"})}return e})(),rs=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vi=new I("");var is=()=>{},yi=new I(""),bi=(()=>{class e{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new rt;transitionAbortWithErrorSubject=new rt;configLoader=d(pi);environmentInjector=d(Z);destroyRef=d(Qe);urlSerializer=d(Ct);rootContexts=d(It);location=d(ae);inputBindingEnabled=d(Gt,{optional:!0})!==null;titleStrategy=d(Ln);options=d(Ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Pe);createViewTransition=d(vi,{optional:!0});navigationErrorHandler=d(yi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Te(i)),n=i=>this.events.next(new Ce(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;R(()=>{this.transitions?.next(N(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new L(null),this.transitions.pipe(it(n=>n!==null),P(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(P(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),_;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?N(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new W(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ht.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(P(f=>(this.events.next(new ut(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?_:Promise.resolve(f))),Yo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),U(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=f.urlAfterRedirects,b)),this.events.next(new zt)}),P(f=>O(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(C(()=>f))),U(()=>{let f=new Ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:b,source:et,restoredState:q,extras:nt}=a,At=new ut(f,this.urlSerializer.serialize(b),et,q);this.events.next(At);let ze=Yr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=N(u({},a),{targetSnapshot:ze,urlAfterRedirects:b,extras:N(u({},nt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Dt=>(Dt.finalUrl=b,Dt)),g(n)}else return this.events.next(new W(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ht.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),C(a=>{let l=new be(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=N(u({},a),{guards:po(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),Co(a=>this.events.next(a)),P(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ne(this.urlSerializer,a.guardsResult);let l=new Re(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",T.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let c=new we(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return _;let h=!1;return g(a).pipe(Jo(this.paramsInheritanceStrategy),U({next:()=>{h=!0;let f=new Se(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(a,"",T.NoDataFromResolver)}}))}),_r(a=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;f.push(this.configLoader.loadComponent(b,h.routeConfig).then(et=>{h.component=et}))}for(let b of h.children)f.push(...l(b));return f},c=l(a.targetSnapshot.root);return c.length===0?g(a):O(Promise.all(c).then(()=>a))}),_r(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?O(c).pipe(C(()=>n)):g(n)}),ft(1),P(a=>{let l=lo(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=N(u({},a),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new bt);let c=n.beforeActivateHandler.deferredHandle;return c?O(c.then(()=>a)):g(a)}),U(a=>{new bn(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(l=>(l.abort=is,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),ne(oi(o.signal).pipe(it(()=>!i&&!n.targetRouterState),U(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),U({complete:()=>{i=!0}}),ne(this.transitionAbortWithErrorSubject.pipe(U(a=>{throw a}))),zn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),te(a=>{if(i=!0,this.destroyed)return n.resolve(!1),_;if(ri(a))this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),ho(a)?this.events.next(new Rt(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=x(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof St){let{message:h,cancellationCode:f}=Ne(this.urlSerializer,c);this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Rt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _}))}))}cancelNavigationTransition(t,n,i){let o=new k(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=R(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function os(e){return e!==Pt}var Ri=new I("");var wi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(ss),providedIn:"root"})}return e})(),_e=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},ss=(()=>{class e extends _e{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ue=(()=>{class e{urlSerializer=d(Ct);options=d(Ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ae);urlHandlingStrategy=d(Pe);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,s=i??o;return s instanceof E?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=Yr(null,d(Z));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(as),providedIn:"root"})}return e})(),as=(()=>{class e extends Ue{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ut?this.updateStateMemento():t instanceof W?this.commitTransition(n):t instanceof Ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof k&&!Zr(t)?this.restoreHistory(n):t instanceof dt?this.restoreHistory(n,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,l=u(u({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",l)}else{let a=u(u({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _n(e,r){e.events.pipe(it(t=>t instanceof $||t instanceof k||t instanceof dt||t instanceof W),C(t=>t instanceof $||t instanceof W?0:(t instanceof k?t.code===T.Redirect||t.code===T.SupersededByNewNavigation:!1)?2:1),it(t=>t!==2),ft(1)).subscribe(()=>{r()})}var pt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(tr);stateManager=d(Ue);options=d(Ot,{optional:!0})||{};pendingTasks=d(Gn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(bi);urlSerializer=d(Ct);location=d(ae);urlHandlingStrategy=d(Pe);injector=d(Z);_events=new rt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(wi);injectorCleanup=d(Ri,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Zt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Gt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=R(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof k&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Rt){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||os(i.source)},s);this.scheduleNavigation(a,Pt,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}so(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pt,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let s=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(t);this.scheduleNavigation(a,n,s,o).catch(l=>{this.disposed||this.injector.get(ie)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return R(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Nn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let b=i?i.snapshot:this.routerState.snapshot.root;f=Kr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return Wr(f,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=tt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pt,null,n)}navigate(t,n={skipLocationChange:!1}){return ls(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(qn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},Cn):n===!1?i=u({},jt):i=u(u({},jt),n),tt(t))return dn(this.currentUrlTree,t,i);let o=this.parseUrl(t);return dn(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(t,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,b)=>{a=f,l=b});let h=this.pendingTasks.add();return _n(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ls(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new S(4008,!1)}var us=(()=>{class e{router=d(pt);stateManager=d(Ue);fragment=v("");queryParams=v({});path=v("");serializer=d(Ct);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof $&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),je=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new pr("href"),{optional:!0});reactiveHref=hr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return R(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return R(this._target)}_target=v(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return R(this._queryParams)}_queryParams=v(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return R(this._fragment)}_fragment=v(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return R(this._queryParamsHandling)}_queryParamsHandling=v(void 0);set state(t){this._state.set(t)}get state(){return R(this._state)}_state=v(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return R(this._info)}_info=v(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return R(this._relativeTo)}_relativeTo=v(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return R(this._preserveFragment)}_preserveFragment=v(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return R(this._skipLocationChange)}_skipLocationChange=v(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return R(this._replaceUrl)}_replaceUrl=v(!1);isAnchorElement;onChanges=new rt;applicationErrorHandler=d(ie);options=d(Ot,{optional:!0});reactiveRouterState=d(us);constructor(t,n,i,o,s,a){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=v(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(tt(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(t!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=H(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:tt(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return R(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(A(pt),A(G),Qn("tabindex"),A(Xe),A(Je),A(gr))};static \u0275dir=st({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&sr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ir("href",i.reactiveHref(),Zn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",F],skipLocationChange:[2,"skipLocationChange","skipLocationChange",F],replaceUrl:[2,"replaceUrl","replaceUrl",F],routerLink:"routerLink"},features:[Mt]})}return e})(),ds=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ot;link=d(je,{optional:!0});constructor(t,n,i,o){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(s=>{s instanceof $&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Ve()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(t).pipe(Ve()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=hs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},Cn):u({},jt);return i=>{let o=i.urlTree;return o?R(In(o,t,n)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)(A(pt),A(Je),A(Xe),A(se))};static \u0275dir=st({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&ar(o,je,5),n&2){let s;lr(s=cr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Mt]})}return e})();function hs(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ps=new I("");function fs(e,...r){return Kn([{provide:Zt,multi:!0,useValue:e},[],{provide:G,useFactory:gs},{provide:nr,multi:!0,useFactory:vs},r.map(t=>t.\u0275providers)])}function gs(){return d(pt).routerState.root}function ms(e,r){return{\u0275kind:e,\u0275providers:r}}function vs(){let e=d(Wn);return r=>{let t=e.get(rr);if(r!==t.components[0])return;let n=e.get(pt),i=e.get(ys);e.get(bs)===1&&n.initialNavigation(),e.get(Rs,null,{optional:!0})?.setUpPreloading(),e.get(ps,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ys=new I("",{factory:()=>new rt}),bs=new I("",{factory:()=>1});var Rs=new I("");function ws(){return ms(8,[Dn,{provide:Gt,useExisting:Dn}])}var Si=`
2
2
  .p-tooltip {
3
3
  position: absolute;
4
4
  display: none;