@skill-map/cli 0.51.0 → 0.53.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.
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +239 -1659
- package/dist/cli/tutorial/sm-tutorial/references/_core.md +332 -0
- package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +175 -0
- package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +251 -0
- package/dist/cli/tutorial/{sm-master/references/tour-authoring.md → sm-tutorial/references/part-authoring.md} +14 -15
- package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +267 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +180 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +424 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +156 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +286 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +78 -0
- package/dist/cli/tutorial/{sm-master/references/tour-plugins.md → sm-tutorial/references/part-plugins.md} +11 -11
- package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +186 -0
- package/dist/cli/tutorial/{sm-master/references/tour-settings.md → sm-tutorial/references/part-settings.md} +22 -24
- package/dist/cli.js +1253 -564
- package/dist/index.d.ts +1 -1
- package/dist/index.js +335 -208
- package/dist/kernel/index.d.ts +320 -15
- package/dist/kernel/index.js +335 -208
- package/dist/migrations/001_initial.sql +36 -0
- package/dist/ui/chunk-EQ72PEHT.js +1 -0
- package/dist/ui/chunk-GBKHMJ4B.js +1110 -0
- package/dist/ui/chunk-GEI6INVH.js +515 -0
- package/dist/ui/chunk-JXRIGHET.js +552 -0
- package/dist/ui/{chunk-WQMZOINB.js → chunk-K2MAVAHG.js} +1 -1
- package/dist/ui/{chunk-BV323KTK.js → chunk-KHARMPTZ.js} +1 -1
- package/dist/ui/chunk-L4NIF75A.js +2 -0
- package/dist/ui/chunk-LCOYSPKE.js +1 -0
- package/dist/ui/chunk-OFDQMBSJ.js +1 -0
- package/dist/ui/chunk-P2DAPRK7.js +2 -0
- package/dist/ui/chunk-Q2A6FWC7.js +4 -0
- package/dist/ui/chunk-TXTY24G4.js +2204 -0
- package/dist/ui/chunk-UBQUCSQ4.js +1 -0
- package/dist/ui/chunk-WFLPMCK4.js +392 -0
- package/dist/ui/chunk-WHZVGOS3.js +5 -0
- package/dist/ui/chunk-YQFIXHKM.js +123 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/main-OYITFJ7B.js +4 -0
- package/dist/ui/{styles-RG7Y33BT.css → styles-Q4NCOJQY.css} +1 -1
- package/migrations/001_initial.sql +36 -0
- package/package.json +10 -8
- package/dist/cli/tutorial/sm-master/SKILL.md +0 -688
- package/dist/cli/tutorial/sm-master/references/fixture-templates.md +0 -212
- package/dist/ui/chunk-2GXE52AJ.js +0 -123
- package/dist/ui/chunk-AEA5GIA7.js +0 -1
- package/dist/ui/chunk-KHRNVLJW.js +0 -1
- package/dist/ui/chunk-OZTRR4M7.js +0 -2312
- package/dist/ui/chunk-Q5YJKCTP.js +0 -1066
- package/dist/ui/chunk-RCT3JSFL.js +0 -1
- package/dist/ui/chunk-VBTLX7GH.js +0 -1110
- package/dist/ui/chunk-VJ57LHDR.js +0 -4
- package/dist/ui/chunk-WMGW2UAL.js +0 -2
- package/dist/ui/main-N7D2YBEX.js +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Fe,r as Ar}from"./chunk-WMGW2UAL.js";import{$ as St,A as Rt,C as ar,D as U,E as $e,F as P,Gc as Er,H as R,I as sr,K as w,M as cr,N as b,O as Ct,P as f,Q as ur,Ra as fr,S as Q,T as N,Ta as pr,Va as It,Wa as gr,Ya as vr,Z as lr,a as Xt,aa as dr,b as er,ba as ie,bb as mr,c as tr,cb as yr,d as te,e as M,ea as wt,eb as Rr,f as T,fb as Cr,ga as ze,h as D,i as g,j as rr,ja as hr,k as gt,ka as bt,l as nr,n as S,o as vt,p as F,pc as wr,q as ir,qc as K,r as ke,tc as br,u as re,ub as Sr,v as mt,w as yt,x as ne,y as or,z as q,zc as Ir}from"./chunk-VJ57LHDR.js";import{a as d,b as A}from"./chunk-WCABR6TI.js";var h="primary",_e=Symbol("RouteTitle"),Dt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Z(e){return new Dt(e)}function Et(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Pr(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Et(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!Et(o,e.slice(0,o.length),a)||!Et(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function We(e){return new Promise((n,t)=>{e.pipe(q()).subscribe({next:r=>n(r),error:r=>t(r)})})}function An(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!x(e[t],n[t]))return!1;return!0}function x(e,n){let t=e?Nt(e):void 0,r=n?Nt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!Lr(e[i],n[i]))return!1;return!0}function Nt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Lr(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function Mn(e){return e.length>0?e[e.length-1]:null}function ee(e){return gt(e)?e:yr(e)?D(Promise.resolve(e)):g(e)}function xr(e){return gt(e)?We(e):Promise.resolve(e)}var Tn={exact:$r,subset:zr},jr={exact:Dn,subset:Nn,ignored:()=>!0},kr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_t={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Mr(e,n,t){return Tn[t.paths](e.root,n.root,t.matrixParams)&&jr[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function Dn(e,n){return x(e,n)}function $r(e,n,t){if(!Y(e.segments,n.segments)||!Be(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!$r(e.children[r],n.children[r],t))return!1;return!0}function Nn(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Lr(e[t],n[t]))}function zr(e,n,t){return Fr(e,n,n.segments,t)}function Fr(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Y(i,t)||n.hasChildren()||!Be(i,t,r))}else if(e.segments.length===t.length){if(!Y(e.segments,t)||!Be(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!zr(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!Y(e.segments,i)||!Be(e.segments,i,r)||!e.children[h]?!1:Fr(e.children[h],n,o,r)}}function Be(e,n,t){return n.every((r,i)=>jr[t](e[i].parameters,r.parameters))}var O=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Z(this.queryParams),this._queryParamMap}toString(){return Un.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ve(this)}},H=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Z(this.parameters),this._parameterMap}toString(){return Hr(this)}};function _n(e,n){return Y(e,n)&&e.every((t,r)=>x(t.parameters,n[r].parameters))}function Y(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function On(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===h&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==h&&(t=t.concat(n(i,r)))}),t}var Oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Ut(n);return new O(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${ye(n.root,!0)}`,r=xn(n.queryParams),i=typeof n.fragment=="string"?`#${Pn(n.fragment)}`:"";return`${t}${r}${i}`}},Un=new B;function Ve(e){return e.segments.map(n=>Hr(n)).join("/")}function ye(e,n){if(!e.hasChildren())return Ve(e);if(n){let t=e.children[h]?ye(e.children[h],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==h&&r.push(`${i}:${ye(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=On(e,(r,i)=>i===h?[ye(e.children[h],!1)]:[`${i}:${ye(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[h]!=null?`${Ve(e)}/${t[0]}`:`${Ve(e)}/(${t.join("//")})`}}function qr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qe(e){return qr(e).replace(/%3B/gi,";")}function Pn(e){return encodeURI(e)}function Ot(e){return qr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ge(e){return decodeURIComponent(e)}function Tr(e){return Ge(e.replace(/\+/g,"%20"))}function Hr(e){return`${Ot(e.path)}${Ln(e.parameters)}`}function Ln(e){return Object.entries(e).map(([n,t])=>`;${Ot(n)}=${Ot(t)}`).join("")}function xn(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${qe(t)}=${qe(i)}`).join("&"):`${qe(t)}=${qe(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var jn=/^[^\/()?;#]+/;function At(e){let n=e.match(jn);return n?n[0]:""}var kn=/^[^\/()?;=#]+/;function $n(e){let n=e.match(kn);return n?n[0]:""}var zn=/^[^=?&#]+/;function Fn(e){let n=e.match(zn);return n?n[0]:""}var qn=/^[^&#]+/;function Hn(e){let n=e.match(qn);return n?n[0]:""}var Ut=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new R(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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[h]=new v(t,r)),i}parseSegment(){let n=At(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new H(Ge(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=$n(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=At(this.remaining);i&&(r=i,this.capture(r))}n[Ge(t)]=Ge(r)}parseQueryParam(n){let t=Fn(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Hn(this.remaining);s&&(r=s,this.capture(r))}let i=Tr(t),o=Tr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=At(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new R(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=h);let a=this.parseChildren(t+1);r[s??h]=Object.keys(a).length===1&&a[h]?a[h]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new R(4011,!1)}};function Br(e){return e.segments.length>0?new v([],{[h]:e}):e}function Vr(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=Vr(i);if(r===h&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return Bn(t)}function Bn(e){if(e.numberOfChildren===1&&e.children[h]){let n=e.children[h];return new v(e.segments.concat(n.segments),n.children)}return e}function ce(e){return e instanceof O}function Gr(e,n,t=null,r=null,i=new B){let o=Wr(e);return Qr(o,n,t,r,i)}function Wr(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=Br(r);return n??i}function Qr(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Mt(o,o,o,t,r,i);let s=Vn(n);if(s.toRoot())return Mt(o,o,new v([],{}),t,r,i);let a=Gn(s,o,e),c=a.processChildren?Ce(a.segmentGroup,a.index,s.commands):Yr(a.segmentGroup,a.index,s.commands);return Mt(o,a.segmentGroup,c,t,r,i)}function Qe(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function be(e){return typeof e=="object"&&e!=null&&e.outlets}function Dr(e,n,t){e||="\u0275";let r=new O;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Mt(e,n,t,r,i,o){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(p=>Dr(u,p,o)):Dr(u,l,o);let a;e===n?a=t:a=Kr(e,n,t);let c=Br(Vr(a));return new O(c,s,i)}function Kr(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=Kr(o,n,t)}),new v(e.segments,r)}var Ke=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Qe(r[0]))throw new R(4003,!1);let i=r.find(be);if(i&&i!==Mn(r))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Vn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ke(!0,0,e);let n=0,t=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ke(t,n,r)}var ae=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Gn(e,n,t){if(e.isAbsolute)return new ae(n,!0,0);if(!t)return new ae(n,!1,NaN);if(t.parent===null)return new ae(t,!0,0);let r=Qe(e.commands[0])?0:1,i=t.segments.length-1+r;return Wn(t,i,e.numberOfDoubleDots)}function Wn(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new R(4005,!1);i=r.segments.length}return new ae(r,!1,i-o)}function Qn(e){return be(e[0])?e[0].outlets:{[h]:e}}function Yr(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return Ce(e,n,t);let r=Kn(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[h]=new v(e.segments.slice(r.pathIndex),e.children),Ce(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Pt(e,n,t):r.match?Ce(e,0,i):Pt(e,n,t)}function Ce(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Qn(t),i={};if(Object.keys(r).some(o=>o!==h)&&e.children[h]&&e.numberOfChildren===1&&e.children[h].segments.length===0){let o=Ce(e.children[h],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Yr(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function Kn(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(be(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!_r(c,u,s))return o;r+=2}else{if(!_r(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Pt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(be(o)){let c=Yn(o.outlets);return new v(r,c)}if(i===0&&Qe(t[0])){let c=e.segments[n];r.push(new H(c.path,Nr(t[0]))),i++;continue}let s=be(o)?o.outlets[h]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&Qe(a)?(r.push(new H(s,Nr(a))),i+=2):(r.push(new H(s,{})),i++)}return new v(r,{})}function Yn(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Pt(new v([],{}),0,r))}),n}function Nr(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function _r(e,n,t){return e==t.path&&x(n,t.parameters)}var Se="imperative",y=(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})(y||{}),E=class{id;url;constructor(n,t){this.id=n,this.url=t}},J=class extends E{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends E{urlAfterRedirects;type=y.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},C=(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})(C||{}),Ie=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ie||{}),_=class extends E{reason;code;type=y.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zr(e){return e instanceof _&&(e.code===C.Redirect||e.code===C.SupersededByNewNavigation)}var z=class extends E{reason;code;type=y.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},X=class extends E{error;target;type=y.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ee=class extends E{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ye=class extends E{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ze=class extends E{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Je=class extends E{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xe=class extends E{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},et=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rt=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},it=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ot=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ue=class{},Ae=class{},le=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Zn(e){return!(e instanceof ue)&&!(e instanceof le)&&!(e instanceof Ae)}var at=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe(this.rootInjector)}},pe=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new at(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Ct(Q))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),st=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Lt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Lt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=xt(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return xt(n,this._root).map(t=>t.value)}};function Lt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Lt(e,t);if(r)return r}return null}function xt(e,n){if(e===n.value)return[n];for(let t of n.children){let r=xt(e,t);if(r.length)return r.unshift(n),r}return[]}var I=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function oe(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var Me=class extends st{snapshot;constructor(n,t){super(n),this.snapshot=t,Vt(this,n)}toString(){return this.snapshot.toString()}};function Jr(e,n){let t=Jn(e,n),r=new M([new H("",{})]),i=new M({}),o=new M({}),s=new M({}),a=new M(""),c=new V(r,i,s,a,o,h,e,t.root);return c.snapshot=t.root,new Me(new I(c,[]),t)}function Jn(e,n){let t={},r={},i={},s=new de([],t,i,"",r,h,e,null,{},n);return new Te("",new I(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[_e]))??g(void 0),this.url=n,this.params=t,this.queryParams=r,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(S(n=>Z(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(n=>Z(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Bt(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:d(d({},n.params),e.params),data:d(d({},n.data),e.data),resolve:d(d(d(d({},e.data),n.data),i?.data),e._resolvedData)}:r={params:d({},e.params),data:d({},e.data),resolve:d(d({},e.data),e._resolvedData??{})},i&&en(i)&&(r.resolve[_e]=i.title),r}var de=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[_e]}constructor(n,t,r,i,o,s,a,c,u,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}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??=Z(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Z(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},Te=class extends st{url;constructor(n,t){super(t),this.url=n,Vt(this,t)}toString(){return Xr(this._root)}};function Vt(e,n){n.value._routerState=e,n.children.forEach(t=>Vt(e,t))}function Xr(e){let n=e.children.length>0?` { ${e.children.map(Xr).join(", ")} } `:"";return`${e.value}${n}`}function Tt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,x(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),x(n.params,t.params)||e.paramsSubject.next(t.params),An(n.url,t.url)||e.urlSubject.next(t.url),x(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function jt(e,n){let t=x(e.params,n.params)&&_n(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||jt(e.parent,n.parent))}function en(e){return typeof e.title=="string"||e.title===null}var tn=new b(""),Gt=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=h;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=br();parentContexts=f(pe);location=f(fr);changeDetector=f(Ir);inputBinder=f(Ue,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)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 R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,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,r){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new kt(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=vr({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[hr]})}return e})(),kt=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===V?this.route:n===pe?this.childContexts:n===tn?this.outletData:this.parent.get(n,t)}},Ue=new b(""),Wt=(()=>{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:r}=t,i=vt([r.queryParams,r.params,r.data]).pipe(U(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Er(r.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(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Qt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=gr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Sr(0,"router-outlet")},dependencies:[Gt],encapsulation:2})}return e})();function Kt(e){let n=e.children&&e.children.map(Kt),t=n?A(d({},e),{children:n}):d({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==h&&(t.component=Qt),t}function Xn(e,n,t){let r=De(e,n._root,t?t._root:void 0);return new Me(r,n)}function De(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=ei(e,n,t);return new I(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>De(e,a)),s}}let r=ti(n.value),i=n.children.map(o=>De(e,o));return new I(r,i)}}function ei(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return De(e,r,i);return De(e,r)})}function ti(e){return new V(new M(e.url),new M(e.params),new M(e.queryParams),new M(e.fragment),new M(e.data),e.outlet,e.component,e)}var he=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},rn="ngNavigationCancelingError";function ct(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=ce(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=nn(!1,C.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function nn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[rn]=!0,t.cancellationCode=n,t}function ri(e){return on(e)&&ce(e.url)}function on(e){return!!e&&e[rn]}var $t=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Tt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=oe(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=oe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=oe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=oe(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new ot(o.value.snapshot))}),n.children.length&&this.forwardEvent(new nt(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Tt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.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),Tt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ut=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(n,t){this.component=n,this.route=t}};function ni(e,n,t){let r=e._root,i=n?n._root:null;return Re(r,i,t,[r.value])}function ii(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function ge(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!cr(e)?e:n.get(e):r}function Re(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=oe(n);return e.children.forEach(s=>{oi(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>we(a,t.getContext(s),i)),i}function oi(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=ai(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new ut(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Re(e,n,a?a.children:null,r,i):Re(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new se(a.outlet.component,s))}else s&&we(n,a,i),i.canActivateChecks.push(new ut(r)),o.component?Re(e,null,a?a.children:null,r,i):Re(e,null,t,r,i);return i}function ai(e,n,t){if(typeof t=="function")return N(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!Y(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Y(e.url,n.url)||!x(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jt(e,n)||!x(e.queryParams,n.queryParams);default:return!jt(e,n)}}function we(e,n,t){let r=oe(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?we(s,n.children.getContext(o),t):we(s,null,t):we(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new se(n.outlet.component,i)):t.canDeactivateChecks.push(new se(null,i)):t.canDeactivateChecks.push(new se(null,i))}function Pe(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function ci(e){return e&&Pe(e.canLoad)}function ui(e){return e&&Pe(e.canActivate)}function li(e){return e&&Pe(e.canActivateChild)}function di(e){return e&&Pe(e.canDeactivate)}function hi(e){return e&&Pe(e.canMatch)}function an(e){return e instanceof nr||e?.name==="EmptyError"}var He=Symbol("INITIAL_VALUE");function fe(){return U(e=>vt(e.map(n=>n.pipe(ne(1),ar(He)))).pipe(S(n=>{for(let t of n)if(t!==!0){if(t===He)return He;if(t===!1||fi(t))return t}return!0}),re(n=>n!==He),ne(1)))}function fi(e){return ce(e)||e instanceof he}function sn(e){return e.aborted?g(void 0).pipe(ne(1)):new tr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function cn(e){return $e(sn(e))}function pi(e){return F(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(A(d({},n),{guardsResult:!0})):gi(o,t,r).pipe(F(s=>s&&si(s)?vi(t,i,e):g(s)),S(s=>A(d({},n),{guardsResult:s})))})}function gi(e,n,t){return D(e).pipe(F(r=>Si(r.component,r.route,t,n)),q(r=>r!==!0,!0))}function vi(e,n,t){return D(n).pipe(yt(r=>ir(yi(r.route.parent,t),mi(r.route,t),Ci(e,r.path),Ri(e,r.route))),q(r=>r!==!0,!0))}function mi(e,n){return e!==null&&n&&n(new it(e)),g(!0)}function yi(e,n){return e!==null&&n&&n(new rt(e)),g(!0)}function Ri(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>ke(()=>{let o=n._environmentInjector,s=ge(i,o),a=ui(s)?s.canActivate(n,e):N(o,()=>s(n,e));return ee(a).pipe(q())}));return g(r).pipe(fe())}function Ci(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>ii(o)).filter(o=>o!==null).map(o=>ke(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=ge(a,c),l=li(u)?u.canActivateChild(t,e):N(c,()=>u(t,e));return ee(l).pipe(q())});return g(s).pipe(fe())}));return g(i).pipe(fe())}function Si(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=ge(s,a),u=di(c)?c.canDeactivate(e,n,t,r):N(a,()=>c(e,n,t,r));return ee(u).pipe(q())});return g(o).pipe(fe())}function wi(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=ge(a,e),u=ci(c)?c.canLoad(n,t):N(e,()=>c(n,t)),l=ee(u);return i?l.pipe(cn(i)):l});return g(s).pipe(fe(),un(r))}function un(e){return er(P(n=>{if(typeof n!="boolean")throw ct(e,n)}),S(n=>n===!0))}function bi(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=ge(c,e),l=hi(u)?u.canMatch(n,t,i):N(e,()=>u(n,t,i));return ee(l).pipe(cn(o))});return g(a).pipe(fe(),un(r))}var k=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},Ne=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function Ii(e){throw new R(4e3,!1)}function Ei(e){throw nn(!1,C.GuardRejected)}var zt=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}async lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[h])throw Ii(`${n.redirectTo}`);i=i.children[h]}}async applyRedirectCommands(n,t,r,i,o){let s=await Ai(t,i,o);if(s instanceof O)throw new Ne(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ne(a);return a}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new O(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function Ai(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return We(ee(N(t,()=>r(n))))}function Mi(e,n){return e.providers&&!e._injector&&(e._injector=It(e.providers,n,`Route: ${e.path}`)),e._injector??n}function L(e){return e.outlet||h}function Ti(e,n){let t=e.filter(r=>L(r)===n);return t.push(...e.filter(r=>L(r)!==n)),t}var Ft={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ln(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 Di(e,n,t,r,i,o,s){let a=dn(e,n,t);if(!a.matched)return g(a);let c=ln(o(a));return r=Mi(n,r),bi(r,n,t,i,c,s).pipe(S(u=>u===!0?a:d({},Ft)))}function dn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?d({},Ft):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Pr)(t,e,n);if(!i)return d({},Ft);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},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 Or(e,n,t,r,i){return t.length>0&&Oi(e,t,r,i)?{segmentGroup:new v(n,_i(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Ui(e,t,r)?{segmentGroup:new v(e.segments,Ni(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Ni(e,n,t,r){let i={};for(let o of t)if(dt(e,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return d(d({},r),i)}function _i(e,n){let t={};t[h]=n;for(let r of e)if(r.path===""&&L(r)!==h){let i=new v([],{});t[L(r)]=i}return t}function Oi(e,n,t,r){return t.some(i=>!dt(e,n,i)||!(L(i)!==h)?!1:!(r!==void 0&&L(i)===r))}function Ui(e,n,t){return t.some(r=>dt(e,n,r))}function dt(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Pi(e,n,t){return n.length===0&&!e.children[t]}var qt=class{};async function Li(e,n,t,r,i,o,s="emptyOnly",a){return new Ht(e,n,t,r,i,s,o,a).recognize()}var xi=31,Ht=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new zt(this.urlSerializer,this.urlTree)}noMatchError(n){return new R(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Or(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=await this.match(n),i=new I(r,t),o=new Te("",i),s=Gr(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let t=new de([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),h,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,h,t),rootSnapshot:t}}catch(r){if(r instanceof Ne)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof k?this.noMatchError(r):r}}async processSegmentGroup(n,t,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=await this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof I?[s]:[]}async processChildren(n,t,r,i){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],l=Ti(t,c),p=await this.processSegmentGroup(n,l,u,c,i);s.push(...p)}let a=hn(s);return ji(a),a}async processSegment(n,t,r,i,o,s,a){for(let c of t)try{return await this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof k||an(u))continue;throw u}if(Pi(r,i,o))return new qt;throw new k(r)}async processSegmentAgainstRoute(n,t,r,i,o,s,a,c){if(L(r)!==s&&(s===h||!dt(i,o,r)))throw new k(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new k(i)}async expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:m}=dn(t,i,o);if(!c)throw new k(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let G=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let j=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,p,ln(G),n),W=await this.applyRedirects.lineralizeSegments(i,j);return this.processSegment(n,r,t,W.concat(m),s,!1,a)}createSnapshot(n,t,r,i,o){let s=new de(r,i,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,$i(t),L(t),t.component??t._loadedComponent??null,t,zi(t),n),a=Bt(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(n,t,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=je=>this.createSnapshot(n,r,je.consumedSegments,je.parameters,s),c=await We(Di(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new k(t);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:p,consumedSegments:m,remainingSegments:G}=c,j=this.createSnapshot(n,r,m,p,s),{segmentGroup:W,slicedSegments:ve}=Or(t,m,G,u,o);if(ve.length===0&&W.hasChildren()){let je=await this.processChildren(l,u,W,j);return new I(j,je)}if(u.length===0&&ve.length===0)return new I(j,[]);let pt=L(r)===o,me=await this.processSegment(l,u,W,ve,pt?h:o,!0,j);return new I(j,me instanceof I?[me]:[])}async getChildConfig(n,t,r){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await We(wi(n,t,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw Ei(t)}return{routes:[],injector:n}}};function ji(e){e.sort((n,t)=>n.value.outlet===h?-1:t.value.outlet===h?1:n.value.outlet.localeCompare(t.value.outlet))}function ki(e){let n=e.value.routeConfig;return n&&n.path===""}function hn(e){let n=[],t=new Set;for(let r of e){if(!ki(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=hn(r.children);n.push(new I(r.value,i))}return n.filter(r=>!t.has(r))}function $i(e){return e.data||{}}function zi(e){return e.resolve||{}}function Fi(e,n,t,r,i,o,s){return F(async a=>{let{state:c,tree:u}=await Li(e,n,t,r,a.extractedUrl,i,o,s);return A(d({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function qi(e){return F(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of fn(a))o.add(c);let s=0;return D(o).pipe(yt(a=>i.has(a)?Hi(a,t,e):(a.data=Bt(a,a.parent,e).resolve,g(void 0))),P(()=>s++),Rt(1),F(a=>s===o.size?g(n):T))})}function fn(e){let n=e.children.map(t=>fn(t)).flat();return[e,...n]}function Hi(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!en(r)&&(i[_e]=r.title),ke(()=>(e.data=Bt(e,e.parent,t).resolve,Bi(i,e,n).pipe(S(o=>(e._resolvedData=o,e.data=d(d({},e.data),o),null)))))}function Bi(e,n,t){let r=Nt(e);if(r.length===0)return g({});let i={};return D(r).pipe(F(o=>Vi(e[o],n,t).pipe(q(),P(s=>{if(s instanceof he)throw ct(new B,s);i[o]=s}))),Rt(1),S(()=>i),mt(o=>an(o)?T:rr(o)))}function Vi(e,n,t){let r=n._environmentInjector,i=ge(e,r),o=i.resolve?i.resolve(n,t):N(r,()=>i(n,t));return ee(o)}function Ur(e){return U(n=>{let t=e(n);return t?D(t).pipe(S(()=>n)):g(n)})}var Yt=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===h);return r}getResolvedTitleForRoute(t){return t.data[_e]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(pn),providedIn:"root"})}return e})(),pn=(()=>{class e extends Yt{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Ct(Ar))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Le=new b("",{factory:()=>({})}),xe=new b(""),gn=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(wr);async loadComponent(t,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await xr(N(t,()=>r.loadComponent())),s=await yn(mn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await vn(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function vn(e,n,t,r){let i=await xr(N(t,()=>e.loadChildren())),o=await yn(mn(i)),s;o instanceof pr||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,l=s,c=a.get(xe,[],{optional:!0,self:!0}).flat()),{routes:c.map(Kt),injector:a,factory:l}}function Gi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Gi(e)?e.default:e}async function yn(e){return e}var ht=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Wi),providedIn:"root"})}return e})(),Wi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rn=new b("");var Qi=()=>{},Cn=new b(""),Sn=(()=>{class e{currentNavigation=ze(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ze(null);events=new te;transitionAbortWithErrorSubject=new te;configLoader=f(gn);environmentInjector=f(Q);destroyRef=f(St);urlSerializer=f(Oe);rootContexts=f(pe);location=f(Fe);inputBindingEnabled=f(Ue,{optional:!0})!==null;titleStrategy=f(Yt);options=f(Le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(ht);createViewTransition=f(Rn,{optional:!0});navigationErrorHandler=f(Cn,{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 et(i)),r=i=>this.events.next(new tt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;K(()=>{this.transitions?.next(A(d({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new M(null),this.transitions.pipe(re(r=>r!==null),U(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(U(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",C.SupersededByNewNavigation),T;this.currentTransition=r;let c=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:c?A(d({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new z(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ie.IgnoredSameUrlNavigation)),a.resolve(!1),T;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(U(p=>(this.events.next(new J(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?T:Promise.resolve(p))),Fi(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),P(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=p.urlAfterRedirects,m)),this.events.next(new Ae)}),U(p=>D(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(S(()=>p))),P(()=>{let p=new Ee(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:m,source:G,restoredState:j,extras:W}=a,ve=new J(p,this.urlSerializer.serialize(m),G,j);this.events.next(ve);let pt=Jr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=A(d({},a),{targetSnapshot:pt,urlAfterRedirects:m,extras:A(d({},W),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(me=>(me.finalUrl=m,me)),g(r)}else return this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ie.IgnoredByUrlHandlingStrategy)),a.resolve(!1),T}),S(a=>{let c=new Ye(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=A(d({},a),{guards:ni(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),pi(a=>this.events.next(a)),U(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw ct(this.urlSerializer,a.guardsResult);let c=new Ze(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return T;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",C.GuardRejected),T;if(a.guards.canActivateChecks.length===0)return g(a);let u=new Je(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return T;let l=!1;return g(a).pipe(qi(this.paramsInheritanceStrategy),P({next:()=>{l=!0;let p=new Xe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{l||this.cancelNavigationTransition(a,"",C.NoDataFromResolver)}}))}),Ur(a=>{let c=l=>{let p=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let m=l._environmentInjector;p.push(this.configLoader.loadComponent(m,l.routeConfig).then(G=>{l.component=G}))}for(let m of l.children)p.push(...c(m));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):D(Promise.all(u).then(()=>a))}),Ur(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?D(u).pipe(S(()=>r)):g(r)}),ne(1),U(a=>{let c=Xn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=A(d({},a),{targetRouterState:c}),this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new ue);let u=r.beforeActivateHandler.deferredHandle;return u?D(u.then(()=>a)):g(a)}),P(a=>{new $t(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=Qi,c)),this.lastSuccessfulNavigation.set(K(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))}),$e(sn(o.signal).pipe(re(()=>!i&&!r.targetRouterState),P(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",C.Aborted)}))),P({complete:()=>{i=!0}}),$e(this.transitionAbortWithErrorSubject.pipe(P(a=>{throw a}))),or(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",C.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),mt(a=>{if(i=!0,this.destroyed)return r.resolve(!1),T;if(on(a))this.events.next(new _(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ri(a)?this.events.next(new le(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new X(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=N(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof he){let{message:l,cancellationCode:p}=ct(this.urlSerializer,u);this.events.next(new _(r.id,this.urlSerializer.serialize(r.extractedUrl),l,p)),this.events.next(new le(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return T}))}))}cancelNavigationTransition(t,r,i){let o=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),r,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))),r=K(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ki(e){return e!==Se}var wn=new b("");var bn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Yi),providedIn:"root"})}return e})(),lt=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Yi=(()=>{class e extends lt{static \u0275fac=(()=>{let t;return function(i){return(t||(t=bt(e)))(i||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zt=(()=>{class e{urlSerializer=f(Oe);options=f(Le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Fe);urlHandlingStrategy=f(ht);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new O;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof O?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=Jr(null,f(Q));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(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Zi),providedIn:"root"})}return e})(),Zi=(()=>{class e extends Zt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof J?this.updateStateMemento():t instanceof z?this.commitTransition(r):t instanceof Ee?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof ue?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof _&&!Zr(t)?this.restoreHistory(r):t instanceof X?this.restoreHistory(r,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!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"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=bt(e)))(i||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jt(e,n){e.events.pipe(re(t=>t instanceof $||t instanceof _||t instanceof X||t instanceof z),S(t=>t instanceof $||t instanceof z?0:(t instanceof _?t.code===C.Redirect||t.code===C.SupersededByNewNavigation:!1)?2:1),re(t=>t!==2),ne(1)).subscribe(()=>{n()})}var ft=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(mr);stateManager=f(Zt);options=f(Le,{optional:!0})||{};pendingTasks=f(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(Sn);urlSerializer=f(Oe);location=f(Fe);urlHandlingStrategy=f(ht);injector=f(Q);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(bn);injectorCleanup=f(wn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(xe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(Ue,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Xt;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=K(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof _&&r.code!==C.Redirect&&r.code!==C.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof le){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=d({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ki(i.source)},s);this.scheduleNavigation(a,Se,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Zn(r)&&this._events.next(r)}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),Se,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(wt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Kt),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,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let p;try{let m=i?i.snapshot:this.routerState.snapshot.root;p=Wr(m)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Qr(p,t,l,u??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=ce(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(t,r={skipLocationChange:!1}){return Ji(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(sr(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=d({},kr):r===!1?i=d({},_t):i=d(d({},_t),r),ce(t))return Mr(this.currentUrlTree,t,i);let o=this.parseUrl(t);return Mr(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((p,m)=>{a=p,c=m});let l=this.pendingTasks.add();return Jt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ji(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new R(4008,!1)}var to=new b("");function ro(e,...n){return ur([{provide:xe,multi:!0,useValue:e},[],{provide:V,useFactory:no},{provide:Rr,multi:!0,useFactory:oo},n.map(t=>t.\u0275providers)])}function no(){return f(ft).routerState.root}function io(e,n){return{\u0275kind:e,\u0275providers:n}}function oo(){let e=f(lr);return n=>{let t=e.get(Cr);if(n!==t.components[0])return;let r=e.get(ft),i=e.get(ao);e.get(so)===1&&r.initialNavigation(),e.get(co,null,{optional:!0})?.setUpPreloading(),e.get(to,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ao=new b("",{factory:()=>new te}),so=new b("",{factory:()=>1});var co=new b("");function uo(){return io(8,[Wt,{provide:Ue,useExisting:Wt}])}export{J as a,$ as b,_ as c,X as d,Xe as e,V as f,Gt as g,Yt as h,ft as i,ro as j,uo as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as l,V as d,Z as p}from"./chunk-VBTLX7GH.js";import{K as o,P as s,ga as a,rc as r}from"./chunk-VJ57LHDR.js";import{a as c}from"./chunk-WCABR6TI.js";var S={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."},telemetry:{label:"Send anonymous error & usage reports",description:"Report crashes and which features you use. No file contents or paths.",hint:"Restart sm for this to take effect."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",referencePathsInputAriaLabel:"New folder path",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternsInputAriaLabel:"New ignore pattern",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceNone:"No provider detected. Install or enable a provider to start.",activeProviderDetectedPrefix:"Detected:",activeProviderEmptyOption:"(none)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(e,i)=>e==="present"?i:`${e} \xB7 ${i}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterOptionA11y:(e,i)=>i?`Show only ${e} extensions`:"Show all kinds",pluginsSourceFilterOptionA11y:(e,i)=>i?`Show only ${e} plugins`:"Show all sources",pluginsFilterA11y:"Filter plugins by source and kind",pluginsFilterAllA11y:"Show every plugin (clear the source and kind filters)",pluginsProjectEmpty:"No project plugins yet. Drop one under .skill-map/plugins/ or create it with sm plugins create <id>.",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending plugin changes",applyA11y:"Apply pending plugin changes and refresh the map",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,i)=>i?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,i)=>i?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var y="#9ca3af",k="#6b7280",A=(()=>{class e{_entries=a([]);providers=this._entries.asReadonly();index=r(()=>{let t=new Map;for(let n of this._entries())t.set(n.id,n);return t});ingest(t){if(!t)return;let n=[];for(let[b,v]of Object.entries(t))n.push(c({id:b},v));P(this._entries(),n)||this._entries.set(n)}lookup(t){return this.index().get(t)}cardChip(t){if(!t)return null;let n=this.lookup(t);return n?n.hideChip?null:u(n):g(t)}lensChip(t){if(!t)return null;let n=this.lookup(t);return n?u(n):g(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function u(e){let i={label:e.label,color:e.color};return e.colorDark!==void 0&&(i.colorDark=e.colorDark),i}function g(e){return{label:e,color:y,colorDark:k}}function P(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++)if(JSON.stringify(e[t])!==JSON.stringify(i[t]))return!1;return!0}var f={available:"Update available",copiedLabel:"Copied!",tooltip:e=>`v${e} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:e=>`Update available: version ${e}, click to copy the install command`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var N=(()=>{class e{dataSource=s(l);status=a(null);isOutdated=r(()=>this.status()?.isOutdated===!0);latest=r(()=>this.status()?.latest??null);current=r(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(f.fetchFailed(n))}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var m={scanFailed:e=>`scan-trigger failed: ${e}`};var M=(()=>{class e{dataSource=s(l);loader=s(p);scanning=a(!1);scanError=a(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let n=t instanceof d||t instanceof Error?t.message:String(t);this.scanError.set(n),console.warn(m.scanFailed(n))}finally{this.scanning.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{A as a,f as b,N as c,S as d,M as e};
|