@skill-map/cli 0.39.0 → 0.40.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-master/references/tour-authoring.md +0 -4
- package/dist/cli/tutorial/sm-tutorial/SKILL.md +279 -26
- package/dist/cli.js +732 -549
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -13
- package/dist/index.js.map +1 -1
- package/dist/kernel/index.d.ts +44 -34
- package/dist/kernel/index.js +28 -13
- package/dist/kernel/index.js.map +1 -1
- package/dist/ui/{chunk-VZIYRREA.js → chunk-2W6BCESO.js} +30 -29
- package/dist/ui/{chunk-NHI5UPNK.js → chunk-3FPS5OIY.js} +1 -1
- package/dist/ui/chunk-4KQGLZV2.js +123 -0
- package/dist/ui/chunk-ASCTZSBZ.js +107 -0
- package/dist/ui/chunk-GSTYLDCL.js +135 -0
- package/dist/ui/chunk-MHEKCBIR.js +317 -0
- package/dist/ui/chunk-PFA2CVPN.js +61 -0
- package/dist/ui/chunk-PURF7B6R.js +411 -0
- package/dist/ui/chunk-UFCOGNZX.js +1 -0
- package/dist/ui/chunk-WQ42JTZB.js +90 -0
- package/dist/ui/chunk-XEWWXGNE.js +1 -0
- package/dist/ui/chunk-YXFKPYK3.js +965 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main-WLCA4YLM.js +3 -0
- package/package.json +2 -2
- package/dist/ui/chunk-AALYQ3RG.js +0 -965
- package/dist/ui/chunk-JECPBFFX.js +0 -135
- package/dist/ui/chunk-LGLLRAJ6.js +0 -61
- package/dist/ui/chunk-PVVKVGJ6.js +0 -500
- package/dist/ui/chunk-SKA7ZFUX.js +0 -1
- package/dist/ui/chunk-VDMXHCXR.js +0 -1
- package/dist/ui/chunk-XRDZZC5F.js +0 -123
- package/dist/ui/chunk-YPO2DTMO.js +0 -317
- package/dist/ui/chunk-ZYIKNMFV.js +0 -107
- package/dist/ui/main-TYWMNAII.js +0 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import{$ as Ze,A as Ke,B as qn,C as j,Ca as er,D as re,Da as nr,E as $,F as T,Fa as rr,G as Vn,Ga as ir,Gb as dr,I as y,J as We,Ja as or,Jc as Cr,K as Kn,L as A,M as ie,Mc as Er,N as d,Nc as Ar,O as Wn,P as J,Q as P,Qb as hr,Rb as R,Rc as Or,Sb as z,Tb as pr,Ub as fr,Uc as rn,Va as sr,W as Gn,Wb as lt,X as Ge,Y as Qe,Z as Qn,_ as st,a as Un,aa as oe,ac as ae,b as jn,bc as B,c as $n,ca as v,cc as yt,d as it,da as Ye,dd as de,e as x,ea as Dt,eb as ar,ec as gr,f as k,fa as Lt,fc as vr,ga as Zn,gc as le,h as N,ha as Je,i as g,j as Hn,jb as lr,k as Be,l as Fn,la as Yn,lb as cr,mb as ur,n as E,o as qe,oc as mr,p as K,q as Ve,qa as Xe,r as zn,ra as M,s as te,sa as se,ta as Jn,u as ot,ua as tn,v as ee,va as Xn,vc as yr,w as ne,wa as en,x as mt,xa as at,xc as Ir,y as Bn,z as Y,za as tr}from"./chunk-YXFKPYK3.js";import{D as X,N as Tr,a as xt,h as br,i as wr,j as Rr,m as q,p as nn,r as ce,s as Sr,u as ue}from"./chunk-3SI3TVER.js";import{a as u,b as L}from"./chunk-VB56BUGO.js";var f="primary",Qt=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 ut(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 kr(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(Y()).subscribe({next:n=>r(n),error:n=>t(n)})})}function ji(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!V(e[t],r[t]))return!1;return!0}function V(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],!Pr(e[i],r[i]))return!1;return!0}function un(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Pr(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 $i(e){return e.length>0?e[e.length-1]:null}function pt(e){return Be(e)?e:nr(e)?N(Promise.resolve(e)):g(e)}function Ur(e){return Be(e)?me(e):Promise.resolve(e)}var Hi={exact:$r,subset:Hr},jr={exact:Fi,subset:zi,ignored:()=>!0},In={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ht={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Cn(e,r,t){let n=e instanceof O?e:r.parseUrl(e);return z(()=>dn(r.lastSuccessfulNavigation()?.finalUrl??new O,n,u(u({},Ht),t)))}function dn(e,r,t){return Hi[t.paths](e.root,r.root,t.matrixParams)&&jr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function Fi(e,r){return V(e,r)}function $r(e,r,t){if(!ct(e.segments,r.segments)||!fe(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!$r(e.children[n],r.children[n],t))return!1;return!0}function zi(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Pr(e[t],r[t]))}function Hr(e,r,t){return Fr(e,r,r.segments,t)}function Fr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!ct(i,t)||r.hasChildren()||!fe(i,t,n))}else if(e.segments.length===t.length){if(!ct(e.segments,t)||!fe(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Hr(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!ct(e.segments,i)||!fe(e.segments,i,n)||!e.children[f]?!1:Fr(e.children[f],r,o,n)}}function fe(e,r,t){return r.every((n,i)=>jr[t](e[i].parameters,n.parameters))}var O=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??=ut(this.queryParams),this._queryParamMap}toString(){return Vi.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 ge(this)}},tt=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ut(this.parameters),this._parameterMap}toString(){return Br(this)}};function Bi(e,r){return ct(e,r)&&e.every((t,n)=>V(t.parameters,r[n].parameters))}function ct(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function qi(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===f&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==f&&(t=t.concat(r(i,n)))}),t}var At=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new et,providedIn:"root"})}return e})(),et=class{parse(r){let t=new pn(r);return new O(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${kt(r.root,!0)}`,n=Gi(r.queryParams),i=typeof r.fragment=="string"?`#${Ki(r.fragment)}`:"";return`${t}${n}${i}`}},Vi=new et;function ge(e){return e.segments.map(r=>Br(r)).join("/")}function kt(e,r){if(!e.hasChildren())return ge(e);if(r){let t=e.children[f]?kt(e.children[f],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==f&&n.push(`${i}:${kt(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=qi(e,(n,i)=>i===f?[kt(e.children[f],!1)]:[`${i}:${kt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${ge(e)}/${t[0]}`:`${ge(e)}/(${t.join("//")})`}}function zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function he(e){return zr(e).replace(/%3B/gi,";")}function Ki(e){return encodeURI(e)}function hn(e){return zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ve(e){return decodeURIComponent(e)}function Nr(e){return ve(e.replace(/\+/g,"%20"))}function Br(e){return`${hn(e.path)}${Wi(e.parameters)}`}function Wi(e){return Object.entries(e).map(([r,t])=>`;${hn(r)}=${hn(t)}`).join("")}function Gi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${he(t)}=${he(i)}`).join("&"):`${he(t)}=${he(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Qi=/^[^\/()?;#]+/;function sn(e){let r=e.match(Qi);return r?r[0]:""}var Zi=/^[^\/()?;=#]+/;function Yi(e){let r=e.match(Zi);return r?r[0]:""}var Ji=/^[^=?&#]+/;function Xi(e){let r=e.match(Ji);return r?r[0]:""}var to=/^[^&#]+/;function eo(e){let r=e.match(to);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 T(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[f]=new m(t,n)),i}parseSegment(){let r=sn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(r),new tt(ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Yi(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[ve(t)]=ve(n)}parseQueryParam(r){let t=Xi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=eo(this.remaining);s&&(n=s,this.capture(n))}let i=Nr(t),o=Nr(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 T(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=f);let a=this.parseChildren(t+1);n[s??f]=Object.keys(a).length===1&&a[f]?a[f]: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 T(4011,!1)}};function qr(e){return e.segments.length>0?new m([],{[f]:e}):e}function Vr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=Vr(i);if(n===f&&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 no(t)}function no(e){if(e.numberOfChildren===1&&e.children[f]){let r=e.children[f];return new m(e.segments.concat(r.segments),r.children)}return e}function nt(e){return e instanceof O}function Kr(e,r,t=null,n=null,i=new et){let o=Wr(e);return Gr(o,r,t,n,i)}function Wr(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=qr(n);return r??i}function Gr(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=ro(r);if(s.toRoot())return an(o,o,new m([],{}),t,n,i);let a=io(s,o,e),l=a.processChildren?Ut(a.segmentGroup,a.index,s.commands):Zr(a.segmentGroup,a.index,s.commands);return an(o,a.segmentGroup,l,t,n,i)}function ye(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ft(e){return typeof e=="object"&&e!=null&&e.outlets}function Mr(e,r,t){e||="\u0275";let n=new O;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(p=>Mr(c,p,o)):Mr(c,h,o);let a;e===r?a=t:a=Qr(e,r,t);let l=qr(Vr(a));return new O(l,s,i)}function Qr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Qr(o,r,t)}),new m(e.segments,n)}var be=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&ye(n[0]))throw new T(4003,!1);let i=n.find(Ft);if(i&&i!==$i(n))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ro(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new be(!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 be(t,r,n)}var wt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function io(e,r,t){if(e.isAbsolute)return new wt(r,!0,0);if(!t)return new wt(r,!1,NaN);if(t.parent===null)return new wt(t,!0,0);let n=ye(e.commands[0])?0:1,i=t.segments.length-1+n;return oo(t,i,e.numberOfDoubleDots)}function oo(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new T(4005,!1);i=n.segments.length}return new wt(n,!1,i-o)}function so(e){return Ft(e[0])?e[0].outlets:{[f]:e}}function Zr(e,r,t){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return Ut(e,r,t);let n=ao(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[f]=new m(e.segments.slice(n.pathIndex),e.children),Ut(o,0,i)}else return n.match&&i.length===0?new m(e.segments,{}):n.match&&!e.hasChildren()?fn(e,r,t):n.match?Ut(e,0,i):fn(e,r,t)}function Ut(e,r,t){if(t.length===0)return new m(e.segments,{});{let n=so(t),i={};if(Object.keys(n).some(o=>o!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let o=Ut(e.children[f],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]=Zr(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 ao(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(Ft(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(!Dr(l,c,s))return o;n+=2}else{if(!Dr(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(Ft(o)){let l=lo(o.outlets);return new m(n,l)}if(i===0&&ye(t[0])){let l=e.segments[r];n.push(new tt(l.path,_r(t[0]))),i++;continue}let s=Ft(o)?o.outlets[f]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&ye(a)?(n.push(new tt(s,_r(a))),i+=2):(n.push(new tt(s,{})),i++)}return new m(n,{})}function lo(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 _r(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Dr(e,r,t){return e==t.path&&V(r,t.parameters)}var jt="imperative",S=(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})(S||{}),D=class{id;url;constructor(r,t){this.id=r,this.url=t}},dt=class extends D{type=S.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}')`}},F=class extends D{urlAfterRedirects;type=S.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},I=(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})(I||{}),zt=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(zt||{}),U=class extends D{reason;code;type=S.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 Yr(e){return e instanceof U&&(e.code===I.Redirect||e.code===I.SupersededByNewNavigation)}var G=class extends D{reason;code;type=S.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},ht=class extends D{error;target;type=S.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})`}},Bt=class extends D{urlAfterRedirects;state;type=S.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})`}},we=class extends D{urlAfterRedirects;state;type=S.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 D{urlAfterRedirects;state;shouldActivate;type=S.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})`}},Se=class extends D{urlAfterRedirects;state;type=S.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})`}},Te=class extends D{urlAfterRedirects;state;type=S.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})`}},Ie=class{route;type=S.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=S.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ee=class{snapshot;type=S.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ae=class{snapshot;type=S.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=S.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ne=class{snapshot;type=S.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var St=class{},qt=class{},Tt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function co(e){return!(e instanceof St)&&!(e instanceof Tt)&&!(e instanceof qt)}var Me=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 Ot(this.rootInjector)}},Ot=(()=>{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 Me(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(ie(J))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_e=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=vn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return vn(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 vn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=vn(e,t);if(n.length)return n.unshift(r),n}return[]}var _=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function bt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Vt=class extends _e{snapshot;constructor(r,t){super(r),this.snapshot=t,An(this,r)}toString(){return this.snapshot.toString()}};function Jr(e,r){let t=uo(e,r),n=new x([new tt("",{})]),i=new x({}),o=new x({}),s=new x({}),a=new x(""),l=new Q(n,i,s,a,o,f,e,t.root);return l.snapshot=t.root,new Vt(new _(l,[]),t)}function uo(e,r){let t={},n={},i={},s=new It([],t,i,"",n,f,e,null,{},r);return new Kt("",new _(s,[]))}var Q=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(E(c=>c[Qt]))??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(E(r=>ut(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ut(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&&ti(i)&&(n.resolve[Qt]=i.title),n}var It=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qt]}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??=ut(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ut(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}')`}},Kt=class extends _e{url;constructor(r,t){super(t),this.url=r,An(this,t)}toString(){return Xr(this._root)}};function An(e,r){r.value._routerState=e,r.children.forEach(t=>An(e,t))}function Xr(e){let r=e.children.length>0?` { ${e.children.map(Xr).join(", ")} } `:"";return`${e.value}${r}`}function ln(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,V(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),V(r.params,t.params)||e.paramsSubject.next(t.params),ji(r.url,t.url)||e.urlSubject.next(t.url),V(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function mn(e,r){let t=V(e.params,r.params)&&Bi(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||mn(e.parent,r.parent))}function ti(e){return typeof e.title=="string"||e.title===null}var ei=new A(""),On=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new st;deactivateEvents=new st;attachEvents=new st;detachEvents=new st;routerOutletData=lt();parentContexts=d(Ot);location=d(se);changeDetector=d(ae);inputBinder=d(Zt,{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 T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(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 T(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=at({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Dt]})}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===Q?this.route:r===Ot?this.childContexts:r===ei?this.outletData:this.parent.get(r,t)}},Zt=new A(""),Nn=(()=>{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(j(([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=gr(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=Xn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&sr(0,"router-outlet")},dependencies:[On],encapsulation:2})}return e})();function _n(e){let r=e.children&&e.children.map(_n),t=r?L(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=Mn),t}function ho(e,r,t){let n=Wt(e,r._root,t?t._root:void 0);return new Vt(n,r)}function Wt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=po(e,r,t);return new _(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=>Wt(e,a)),s}}let n=fo(r.value),i=r.children.map(o=>Wt(e,o));return new _(n,i)}}function po(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Wt(e,n,i);return Wt(e,n)})}function fo(e){return new Q(new x(e.url),new x(e.params),new x(e.queryParams),new x(e.fragment),new x(e.data),e.outlet,e.component,e)}var Ct=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},ni="ngNavigationCancelingError";function De(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=nt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ri(!1,I.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ri(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ni]=!0,t.cancellationCode=r,t}function go(e){return ii(e)&&nt(e.url)}function ii(e){return!!e&&e[ni]}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=bt(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=bt(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=bt(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=bt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ne(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ae(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]}},Rt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function vo(e,r,t){let n=e._root,i=r?r._root:null;return Pt(n,i,t,[n.value])}function mo(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Nt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Kn(e)?e:r.get(e):n}function Pt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=bt(r);return e.children.forEach(s=>{yo(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>$t(a,t.getContext(s),i)),i}function yo(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=bo(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Le(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Pt(e,r,a?a.children:null,n,i):Pt(e,r,t,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Rt(a.outlet.component,s))}else s&&$t(r,a,i),i.canActivateChecks.push(new Le(n)),o.component?Pt(e,null,a?a.children:null,n,i):Pt(e,null,t,n,i);return i}function bo(e,r,t){if(typeof t=="function")return P(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!ct(e.url,r.url);case"pathParamsOrQueryParamsChange":return!ct(e.url,r.url)||!V(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(e,r)||!V(e.queryParams,r.queryParams);default:return!mn(e,r)}}function $t(e,r,t){let n=bt(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?r?$t(s,r.children.getContext(o),t):$t(s,null,t):$t(s,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new Rt(r.outlet.component,i)):t.canDeactivateChecks.push(new Rt(null,i)):t.canDeactivateChecks.push(new Rt(null,i))}function Yt(e){return typeof e=="function"}function wo(e){return typeof e=="boolean"}function Ro(e){return e&&Yt(e.canLoad)}function So(e){return e&&Yt(e.canActivate)}function To(e){return e&&Yt(e.canActivateChild)}function Io(e){return e&&Yt(e.canDeactivate)}function Co(e){return e&&Yt(e.canMatch)}function oi(e){return e instanceof Fn||e?.name==="EmptyError"}var pe=Symbol("INITIAL_VALUE");function Et(){return j(e=>qe(e.map(r=>r.pipe(mt(1),qn(pe)))).pipe(E(r=>{for(let t of r)if(t!==!0){if(t===pe)return pe;if(t===!1||Eo(t))return t}return!0}),ot(r=>r!==pe),mt(1)))}function Eo(e){return nt(e)||e instanceof Ct}function si(e){return e.aborted?g(void 0).pipe(mt(1)):new $n(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function ai(e){return re(si(e))}function Ao(e){return K(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(L(u({},r),{guardsResult:!0})):Oo(o,t,n).pipe(K(s=>s&&wo(s)?No(t,i,e):g(s)),E(s=>L(u({},r),{guardsResult:s})))})}function Oo(e,r,t){return N(e).pipe(K(n=>xo(n.component,n.route,t,r)),Y(n=>n!==!0,!0))}function No(e,r,t){return N(r).pipe(ne(n=>zn(_o(n.route.parent,t),Mo(n.route,t),Lo(e,n.path),Do(e,n.route))),Y(n=>n!==!0,!0))}function Mo(e,r){return e!==null&&r&&r(new Oe(e)),g(!0)}function _o(e,r){return e!==null&&r&&r(new Ee(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=>te(()=>{let o=r._environmentInjector,s=Nt(i,o),a=So(s)?s.canActivate(r,e):P(o,()=>s(r,e));return pt(a).pipe(Y())}));return g(n).pipe(Et())}function Lo(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>mo(o)).filter(o=>o!==null).map(o=>te(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=Nt(a,l),h=To(c)?c.canActivateChild(t,e):P(l,()=>c(t,e));return pt(h).pipe(Y())});return g(s).pipe(Et())}));return g(i).pipe(Et())}function xo(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=Nt(s,a),c=Io(l)?l.canDeactivate(e,r,t,n):P(a,()=>l(e,r,t,n));return pt(c).pipe(Y())});return g(o).pipe(Et())}function ko(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=Nt(a,e),c=Ro(l)?l.canLoad(r,t):P(e,()=>l(r,t)),h=pt(c);return i?h.pipe(ai(i)):h});return g(s).pipe(Et(),li(n))}function li(e){return jn($(r=>{if(typeof r!="boolean")throw De(e,r)}),E(r=>r===!0))}function Po(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=Nt(l,e),h=Co(c)?c.canMatch(r,t,i):P(e,()=>c(r,t,i));return pt(h).pipe(ai(o))});return g(a).pipe(Et(),li(n))}var W=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Gt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function Uo(e){throw new T(4e3,!1)}function jo(e){throw ri(!1,I.GuardRejected)}var wn=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[f])throw Uo(`${r.redirectTo}`);i=i.children[f]}}async applyRedirectCommands(r,t,n,i,o){let s=await $o(t,i,o);if(s instanceof O)throw new Gt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Gt(a);return a}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new O(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 T(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 $o(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return me(pt(P(t,()=>n(r))))}function Ho(e,r){return e.providers&&!e._injector&&(e._injector=tn(e.providers,r,`Route: ${e.path}`)),e._injector??r}function H(e){return e.outlet||f}function Fo(e,r){let t=e.filter(n=>H(n)===r);return t.push(...e.filter(n=>H(n)!==r)),t}var Rn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ci(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 zo(e,r,t,n,i,o,s){let a=ui(e,r,t);if(!a.matched)return g(a);let l=ci(o(a));return n=Ho(r,n),Po(n,r,t,i,l,s).pipe(E(c=>c===!0?a:u({},Rn)))}function ui(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},Rn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||kr)(t,e,r);if(!i)return u({},Rn);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&&Vo(e,t,n,i)?{segmentGroup:new m(r,qo(n,new m(t,e.children))),slicedSegments:[]}:t.length===0&&Ko(e,t,n)?{segmentGroup:new m(e.segments,Bo(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new m(e.segments,e.children),slicedSegments:t}}function Bo(e,r,t,n){let i={};for(let o of t)if(Pe(e,r,o)&&!n[H(o)]){let s=new m([],{});i[H(o)]=s}return u(u({},n),i)}function qo(e,r){let t={};t[f]=r;for(let n of e)if(n.path===""&&H(n)!==f){let i=new m([],{});t[H(n)]=i}return t}function Vo(e,r,t,n){return t.some(i=>!Pe(e,r,i)||!(H(i)!==f)?!1:!(n!==void 0&&H(i)===n))}function Ko(e,r,t){return t.some(n=>Pe(e,r,n))}function Pe(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Wo(e,r,t){return r.length===0&&!e.children[t]}var Sn=class{};async function Go(e,r,t,n,i,o,s="emptyOnly",a){return new Tn(e,r,t,n,i,s,o,a).recognize()}var Qo=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 wn(this.urlSerializer,this.urlTree)}noMatchError(r){return new T(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Lr(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new _(n,t),o=new Kt("",i),s=Kr(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 It([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,f,t),rootSnapshot:t}}catch(n){if(n instanceof Gt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof W?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 _?[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=Fo(t,l),p=await this.processSegmentGroup(r,h,c,l,i);s.push(...p)}let a=di(s);return Zo(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 W||oi(c))continue;throw c}if(Wo(n,i,o))return new Sn;throw new W(n)}async processSegmentAgainstRoute(r,t,n,i,o,s,a,l){if(H(n)!==s&&(s===f||!Pe(i,o,n)))throw new W(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 W(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:p,remainingSegments:b}=ui(t,i,o);if(!l)throw new W(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Qo&&(this.allowRedirects=!1));let w=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let C=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,p,ci(w),r),Z=await this.applyRedirects.lineralizeSegments(i,C);return this.processSegment(r,n,t,Z.concat(b),s,!1,a)}createSnapshot(r,t,n,i,o){let s=new It(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Jo(t),H(t),t.component??t._loadedComponent??null,t,Xo(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=vt=>this.createSnapshot(r,n,vt.consumedSegments,vt.parameters,s),l=await me(zo(t,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new W(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:p,consumedSegments:b,remainingSegments:w}=l,C=this.createSnapshot(r,n,b,p,s),{segmentGroup:Z,slicedSegments:rt}=Lr(t,b,w,c,o);if(rt.length===0&&Z.hasChildren()){let vt=await this.processChildren(h,c,Z,C);return new _(C,vt)}if(c.length===0&&rt.length===0)return new _(C,[]);let _t=H(n)===o,gt=await this.processSegment(h,c,Z,rt,_t?f:o,!0,C);return new _(C,gt instanceof _?[gt]:[])}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(ko(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 jo(t)}return{routes:[],injector:r}}};function Zo(e){e.sort((r,t)=>r.value.outlet===f?-1:t.value.outlet===f?1:r.value.outlet.localeCompare(t.value.outlet))}function Yo(e){let r=e.value.routeConfig;return r&&r.path===""}function di(e){let r=[],t=new Set;for(let n of e){if(!Yo(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=di(n.children);r.push(new _(n.value,i))}return r.filter(n=>!t.has(n))}function Jo(e){return e.data||{}}function Xo(e){return e.resolve||{}}function ts(e,r,t,n,i,o,s){return K(async a=>{let{state:l,tree:c}=await Go(e,r,t,n,a.extractedUrl,i,o,s);return L(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function es(e){return K(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 hi(a))o.add(l);let s=0;return N(o).pipe(ne(a=>i.has(a)?ns(a,t,e):(a.data=En(a,a.parent,e).resolve,g(void 0))),$(()=>s++),Ke(1),K(a=>s===o.size?g(r):k))})}function hi(e){let r=e.children.map(t=>hi(t)).flat();return[e,...r]}function ns(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!ti(n)&&(i[Qt]=n.title),te(()=>(e.data=En(e,e.parent,t).resolve,rs(i,e,r).pipe(E(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function rs(e,r,t){let n=un(e);if(n.length===0)return g({});let i={};return N(n).pipe(K(o=>is(e[o],r,t).pipe(Y(),$(s=>{if(s instanceof Ct)throw De(new et,s);i[o]=s}))),Ke(1),E(()=>i),ee(o=>oi(o)?k:Hn(o)))}function is(e,r,t){let n=r._environmentInjector,i=Nt(e,n),o=i.resolve?i.resolve(r,t):P(n,()=>i(r,t));return pt(o)}function xr(e){return j(r=>{let t=e(r);return t?N(t).pipe(E(()=>r)):g(r)})}var Dn=(()=>{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===f);return n}getResolvedTitleForRoute(t){return t.data[Qt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(pi),providedIn:"root"})}return e})(),pi=(()=>{class e extends Dn{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)(ie(yr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mt=new A("",{factory:()=>({})}),Jt=new A(""),fi=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(hr);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 Ur(P(t,()=>n.loadComponent())),s=await mi(vi(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 gi(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 gi(e,r,t,n){let i=await Ur(P(t,()=>e.loadChildren())),o=await mi(vi(i)),s;o instanceof Jn||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(Jt,[],{optional:!0,self:!0}).flat()),{routes:l.map(_n),injector:a,factory:h}}function os(e){return e&&typeof e=="object"&&"default"in e}function vi(e){return os(e)?e.default:e}async function mi(e){return e}var Ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(ss),providedIn:"root"})}return e})(),ss=(()=>{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})(),yi=new A("");var as=()=>{},bi=new A(""),wi=(()=>{class e{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new it;transitionAbortWithErrorSubject=new it;configLoader=d(fi);environmentInjector=d(J);destroyRef=d(Qe);urlSerializer=d(At);rootContexts=d(Ot);location=d(le);inputBindingEnabled=d(Zt,{optional:!0})!==null;titleStrategy=d(Dn);options=d(Mt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Ue);createViewTransition=d(yi,{optional:!0});navigationErrorHandler=d(bi,{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 Ie(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(L(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 x(null),this.transitions.pipe(ot(n=>n!==null),j(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(j(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",I.SupersededByNewNavigation),k;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?L(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 G(a.id,this.urlSerializer.serialize(a.rawUrl),"",zt.IgnoredSameUrlNavigation)),a.resolve(!1),k;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(j(p=>(this.events.next(new dt(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?k:Promise.resolve(p))),ts(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),$(p=>{n.targetSnapshot=p.targetSnapshot,n.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=p.urlAfterRedirects,b)),this.events.next(new qt)}),j(p=>N(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(E(()=>p))),$(()=>{let p=new Bt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:b,source:w,restoredState:C,extras:Z}=a,rt=new dt(p,this.urlSerializer.serialize(b),w,C);this.events.next(rt);let _t=Jr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=L(u({},a),{targetSnapshot:_t,urlAfterRedirects:b,extras:L(u({},Z),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(gt=>(gt.finalUrl=b,gt)),g(n)}else return this.events.next(new G(a.id,this.urlSerializer.serialize(a.extractedUrl),"",zt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}),E(a=>{let l=new we(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=L(u({},a),{guards:vo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),Ao(a=>this.events.next(a)),j(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw De(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 k;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",I.GuardRejected),k;if(a.guards.canActivateChecks.length===0)return g(a);let c=new Se(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return k;let h=!1;return g(a).pipe(es(this.paramsInheritanceStrategy),$({next:()=>{h=!0;let p=new Te(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{h||this.cancelNavigationTransition(a,"",I.NoDataFromResolver)}}))}),xr(a=>{let l=h=>{let p=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;p.push(this.configLoader.loadComponent(b,h.routeConfig).then(w=>{h.component=w}))}for(let b of h.children)p.push(...l(b));return p},c=l(a.targetSnapshot.root);return c.length===0?g(a):N(Promise.all(c).then(()=>a))}),xr(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?N(c).pipe(E(()=>n)):g(n)}),mt(1),j(a=>{let l=ho(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=L(u({},a),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new St);let c=n.beforeActivateHandler.deferredHandle;return c?N(c.then(()=>a)):g(a)}),$(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=as,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),re(si(o.signal).pipe(ot(()=>!i&&!n.targetRouterState),$(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",I.Aborted)}))),$({complete:()=>{i=!0}}),re(this.transitionAbortWithErrorSubject.pipe($(a=>{throw a}))),Bn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",I.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ee(a=>{if(i=!0,this.destroyed)return n.resolve(!1),k;if(ii(a))this.events.next(new U(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),go(a)?this.events.next(new Tt(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new ht(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=P(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof Ct){let{message:h,cancellationCode:p}=De(this.urlSerializer,c);this.events.next(new U(n.id,this.urlSerializer.serialize(n.extractedUrl),h,p)),this.events.next(new Tt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return k}))}))}cancelNavigationTransition(t,n,i){let o=new U(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 ls(e){return e!==jt}var Ri=new A("");var Si=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(cs),providedIn:"root"})}return e})(),xe=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}},cs=(()=>{class e extends xe{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),je=(()=>{class e{urlSerializer=d(At);options=d(Mt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(le);urlHandlingStrategy=d(Ue);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new O;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 O?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=Jr(null,d(J));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(us),providedIn:"root"})}return e})(),us=(()=>{class e extends je{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 dt?this.updateStateMemento():t instanceof G?this.commitTransition(n):t instanceof Bt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof St?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof U&&!Yr(t)?this.restoreHistory(n):t instanceof ht?this.restoreHistory(n,!0):t instanceof F&&(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=Lt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ln(e,r){e.events.pipe(ot(t=>t instanceof F||t instanceof U||t instanceof ht||t instanceof G),E(t=>t instanceof F||t instanceof G?0:(t instanceof U?t.code===I.Redirect||t.code===I.SupersededByNewNavigation:!1)?2:1),ot(t=>t!==2),mt(1)).subscribe(()=>{r()})}var ft=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(er);stateManager=d(je);options=d(Mt,{optional:!0})||{};pendingTasks=d(Qn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(wi);urlSerializer=d(At);location=d(le);urlHandlingStrategy=d(Ue);injector=d(J);_events=new it;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Si);injectorCleanup=d(Ri,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Jt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Zt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Un;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 U&&n.code!==I.Redirect&&n.code!==I.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Tt){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"||ls(i.source)},s);this.scheduleNavigation(a,jt,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}co(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),jt,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(oe)(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(_n),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 p;try{let b=i?i.snapshot:this.routerState.snapshot.root;p=Wr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Gr(p,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=nt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,jt,null,n)}navigate(t,n={skipLocationChange:!1}){return ds(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(Vn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},In):n===!1?i=u({},Ht):i=u(u({},Ht),n),nt(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((p,b)=>{a=p,l=b});let h=this.pendingTasks.add();return Ln(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 ds(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new T(4008,!1)}var ps=(()=>{class e{router=d(ft);stateManager=d(je);fragment=v("");queryParams=v({});path=v("");serializer=d(At);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof F&&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 O(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$e=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new fr("href"),{optional:!0});reactiveHref=pr(()=>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 it;applicationErrorHandler=d(oe);options=d(Mt,{optional:!0});reactiveRouterState=d(ps);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)):(nt(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=z(()=>{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:nt(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)(M(ft),M(Q),Zn("tabindex"),M(Xe),M(Je),M(vr))};static \u0275dir=at({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ar("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&or("href",i.reactiveHref(),Yn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",B],skipLocationChange:[2,"skipLocationChange","skipLocationChange",B],replaceUrl:[2,"replaceUrl","replaceUrl",B],routerLink:"routerLink"},features:[Dt]})}return e})(),fs=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new st;link=d($e,{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 F&&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=N(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=gs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},In):u({},Ht);return i=>{let o=i.urlTree;return o?R(Cn(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)(M(ft),M(Je),M(Xe),M(ae))};static \u0275dir=at({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&lr(o,$e,5),n&2){let s;cr(s=ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Dt]})}return e})();function gs(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var vs=new A("");function ms(e,...r){return Wn([{provide:Jt,multi:!0,useValue:e},[],{provide:Q,useFactory:ys},{provide:rr,multi:!0,useFactory:ws},r.map(t=>t.\u0275providers)])}function ys(){return d(ft).routerState.root}function bs(e,r){return{\u0275kind:e,\u0275providers:r}}function ws(){let e=d(Gn);return r=>{let t=e.get(ir);if(r!==t.components[0])return;let n=e.get(ft),i=e.get(Rs);e.get(Ss)===1&&n.initialNavigation(),e.get(Ts,null,{optional:!0})?.setUpPreloading(),e.get(vs,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Rs=new A("",{factory:()=>new it}),Ss=new A("",{factory:()=>1});var Ts=new A("");function Is(){return bs(8,[Nn,{provide:Zt,useExisting:Nn}])}var Ti=`
|
|
2
|
+
.p-tooltip {
|
|
3
|
+
position: absolute;
|
|
4
|
+
display: none;
|
|
5
|
+
max-width: dt('tooltip.max.width');
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.p-tooltip-right,
|
|
9
|
+
.p-tooltip-left {
|
|
10
|
+
padding: 0 dt('tooltip.gutter');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.p-tooltip-top,
|
|
14
|
+
.p-tooltip-bottom {
|
|
15
|
+
padding: dt('tooltip.gutter') 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-tooltip-text {
|
|
19
|
+
white-space: pre-line;
|
|
20
|
+
word-break: break-word;
|
|
21
|
+
background: dt('tooltip.background');
|
|
22
|
+
color: dt('tooltip.color');
|
|
23
|
+
padding: dt('tooltip.padding');
|
|
24
|
+
box-shadow: dt('tooltip.shadow');
|
|
25
|
+
border-radius: dt('tooltip.border.radius');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-tooltip-arrow {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: 0;
|
|
31
|
+
height: 0;
|
|
32
|
+
border-color: transparent;
|
|
33
|
+
border-style: solid;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.p-tooltip-right .p-tooltip-arrow {
|
|
37
|
+
margin-top: calc(-1 * dt('tooltip.gutter'));
|
|
38
|
+
border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
|
|
39
|
+
border-right-color: dt('tooltip.background');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-tooltip-left .p-tooltip-arrow {
|
|
43
|
+
margin-top: calc(-1 * dt('tooltip.gutter'));
|
|
44
|
+
border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
|
|
45
|
+
border-left-color: dt('tooltip.background');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.p-tooltip-top .p-tooltip-arrow {
|
|
49
|
+
margin-left: calc(-1 * dt('tooltip.gutter'));
|
|
50
|
+
border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
|
|
51
|
+
border-top-color: dt('tooltip.background');
|
|
52
|
+
border-bottom-color: dt('tooltip.background');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-tooltip-bottom .p-tooltip-arrow {
|
|
56
|
+
margin-left: calc(-1 * dt('tooltip.gutter'));
|
|
57
|
+
border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
|
|
58
|
+
border-top-color: dt('tooltip.background');
|
|
59
|
+
border-bottom-color: dt('tooltip.background');
|
|
60
|
+
}
|
|
61
|
+
`;var Cs={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Ii=(()=>{class e extends Cr{name="tooltip";style=Ti;classes=Cs;static \u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})();var Ci=new A("TOOLTIP_INSTANCE"),ll=(()=>{class e extends Ar{zone;viewContainer;componentName="Tooltip";$pcTooltip=d(Ci,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=lt(void 0);$appendTo=z(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:Ir("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=d(Ii);interactionInProgress=!1;ptTooltip=lt();pTooltipPT=lt();pTooltipUnstyled=lt();constructor(t,n){super(),this.zone=t,this.viewContainer=n,Ye(()=>{let i=this.ptTooltip()||this.pTooltipPT();i&&this.directivePT.set(i)}),Ye(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){mr(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.addEventListener("focus",this.focusListener),n.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=u(u({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(xt(t.relatedTarget,"p-tooltip")||xt(t.relatedTarget,"p-tooltip-text")||xt(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=ce("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=ce("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=ce("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?nn(this.container,this.el.nativeElement):nn(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",n=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),Sr(this.container,250),this.getOption("tooltipZIndex")==="auto"?de.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&de.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let n=this.viewContainer.createEmbeddedView(t);n.detectChanges(),n.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[o,s]of i.entries())if(o===0)s.call(this);else if(this.isOutOfBounds())s.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),n=t.left+wr(),i=t.top+Rr();return{left:n,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?ue(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,n=q(t),i=(X(t)-X(this.container))/2;this.alignTooltip(n,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),n=q(this.container),i=(X(this.el.nativeElement)-X(this.container))/2;this.alignTooltip(-n,i),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),n=this.getHostOffset(),i=q(this.container),o=(q(this.el.nativeElement)-q(this.container))/2,s=X(this.container);this.alignTooltip(o,-s);let a=n.left-this.getHostOffset().left+i/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=a+"px"}getArrowElement(){return ue(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),n=q(this.container),i=this.getHostOffset(),o=(q(this.el.nativeElement)-q(this.container))/2,s=X(this.el.nativeElement);this.alignTooltip(o,s);let a=i.left-this.getHostOffset().left+n/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=a+"px"}alignTooltip(t,n){let i=this.getHostOffset(),o=i.left+t,s=i.top+n;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=s+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=u(u({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return xt(t,"p-inputwrapper")?ue(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),n=t.top,i=t.left,o=q(this.container),s=X(this.container),a=br();return i+o>a.width||i<0||n<0||n+s>a.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Or(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.removeEventListener("focus",this.focusListener),n.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Tr(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&de.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(n){return new(n||e)(M(Ze),M(se))};static \u0275dir=at({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",B],showDelay:[2,"showDelay","showDelay",yt],hideDelay:[2,"hideDelay","hideDelay",yt],life:[2,"life","life",yt],positionTop:[2,"positionTop","positionTop",yt],positionLeft:[2,"positionLeft","positionLeft",yt],autoHide:[2,"autoHide","autoHide",B],fitContent:[2,"fitContent","fitContent",B],hideOnEscape:[2,"hideOnEscape","hideOnEscape",B],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",B],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[dr([Ii,{provide:Ci,useExisting:e},{provide:Er,useExisting:e}]),tr]})}return e})(),cl=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=en({type:e});static \u0275inj=We({imports:[rn,rn]})}return e})();var Es=new Set(["stale-body","stale-frontmatter","stale-both"]);function He(e){return e?Es.has(e.status??null):!1}function Xt(e){let r=e.metadata;return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function fl(e){if(!e)return null;let r=e.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let t=Xt(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function xn(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=Xt(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function gl(e){if(!e)return[];let r=e.frontmatter,t=[];if(e.kind==="agent"&&Array.isArray(r.tools))for(let n of r.tools)typeof n=="string"&&n.length>0&&t.push(n);if(e.kind==="skill"||e.kind==="command"){let n=r["allowed-tools"];if(Array.isArray(n))for(let i of n)typeof i=="string"&&i.length>0&&t.push(i);else typeof n=="string"&&n.length>0&&t.push(n)}return t}function vl(e){return He(e?.sidecar)}function Ei(e){if(!e)return null;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return t;let n=Xt(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0?n:null}function Ai(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(i=>typeof i=="string"&&i.length>0);let n=Xt(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(i=>typeof i=="string"&&i.length>0):[]}function ml(e,r){switch(e?.sidecar?.status){case"stale-body":return r.staleBody;case"stale-frontmatter":return r.staleFrontmatter;case"stale-both":return r.staleBoth;default:return""}}function yl(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function bl(e){let r=new Date(e);if(isNaN(r.getTime()))return e;let t=Date.now()-r.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let i=Math.floor(n/60);if(i<60)return`${i} minute${i===1?"":"s"} ago`;let o=Math.floor(i/60);if(o<24)return`${o} hour${o===1?"":"s"} ago`;let s=Math.floor(o/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let l=Math.floor(s/365);return`${l} year${l===1?"":"s"} ago`}var Cl=["stable","experimental","deprecated"],Oi=["invokes","references","mentions","supersedes"],Ni=class e{_searchText=v("");_selectedKinds=v([]);_kindToggleExplicitEmpty=v(!1);_selectedStabilities=v([]);_hasIssuesOnly=v(!1);_staleOnly=v(!1);_favoritesOnly=v(!1);_selectedLinkKinds=v([]);_severityErrorActive=v(!1);_severityWarnActive=v(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();selectedStabilities=this._selectedStabilities.asReadonly();hasIssuesOnly=this._hasIssuesOnly.asReadonly();staleOnly=this._staleOnly.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=z(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._selectedStabilities().length>0||this._hasIssuesOnly()||this._staleOnly()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(r){this._searchText.set(r)}setKinds(r){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...r])}toggleKind(r,t){let n=this._selectedKinds(),i=t,s=this._kindToggleExplicitEmpty()?new Set:n.length===0?new Set(i):new Set(n);s.has(r)?s.delete(r):s.add(r),s.size===i.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):s.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...s]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(r){if(this._kindToggleExplicitEmpty())return!1;let t=this._selectedKinds();return t.length===0?!0:t.includes(r)}setStabilities(r){this._selectedStabilities.set([...r])}setHasIssuesOnly(r){this._hasIssuesOnly.set(r)}setStaleOnly(r){this._staleOnly.set(r)}setFavoritesOnly(r){this._favoritesOnly.set(r)}setLinkKinds(r){this._selectedLinkKinds.set([...r])}toggleLinkKind(r){let t=this._selectedLinkKinds(),n=t.length===0?new Set(Oi):new Set(t);n.has(r)?n.delete(r):n.add(r),n.size===Oi.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...n])}isLinkKindActive(r){let t=this._selectedLinkKinds();return t.length===0?!0:t.includes(r)}toggleSeverity(r){r==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(r){return r==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(r){let t=new Set(r);this._severityErrorActive.set(t.has("error")),this._severityWarnActive.set(t.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._selectedStabilities.set([]),this._hasIssuesOnly.set(!1),this._staleOnly.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(r,t){let n=this.searchText().trim().toLowerCase(),i=this.selectedKinds(),o=this._kindToggleExplicitEmpty(),s=this.selectedStabilities(),a=this.hasIssuesOnly(),l=this.staleOnly(),c=this.favoritesOnly(),h=this._severityErrorActive(),p=this._severityWarnActive(),b=(h||p)&&t!==void 0;return r.filter(w=>{if(n){let C=w.frontmatter,rt=(Array.isArray(C.tags)?C.tags:[]).filter(vt=>typeof vt=="string").join(" "),_t=Ai(w).join(" ");if(![w.path,w.frontmatter.name??"",w.frontmatter.description??"",rt,_t].join(" ").toLowerCase().includes(n))return!1}if(o||i.length>0&&!i.includes(w.kind))return!1;if(s.length>0){let C=xn(w);if(!C||!s.includes(C))return!1}return!(a&&!As(w,t)||l&&!He(w.sidecar)||c&&w.isFavorite!==!0||b&&(h&&!t.errors.has(w.path)||p&&!t.warns.has(w.path)))})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})};function As(e,r){return!!(xn(e)==="deprecated"||Ei(e)!==null||r&&(r.errors.has(e.path)||r.warns.has(e.path)))}var Mi={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function Fe(e,r,t){return[Math.round(e[0]+(r[0]-e[0])*t),Math.round(e[1]+(r[1]-e[1])*t),Math.round(e[2]+(r[2]-e[2])*t)]}function Os(e){let r=/^#([0-9a-f]{6})$/i.exec(e);if(!r)throw new Error(Mi.invalidHex(e));let t=parseInt(r[1],16);return[t>>16&255,t>>8&255,t&255]}function ze([e,r,t]){let n=i=>Math.max(0,Math.min(255,i)).toString(16).padStart(2,"0");return`#${n(e)}${n(r)}${n(t)}`}var _i=[255,255,255],Di=[0,0,0];function kn(e,r){let t=Os(e);return r==="light"?{bg:ze(Fe(t,_i,.85)),fg:ze(Fe(t,Di,.5))}:{bg:ze(Fe(t,Di,.7)),fg:ze(Fe(t,_i,.6))}}var Ns=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,Li=/^#[0-9a-f]{6}$/i,xi=class e{doc=d(Ge);_entries=v([]);kinds=this._entries.asReadonly();index=z(()=>{let r=new Map;for(let t of this._entries())r.set(t.name,t);return r});ingest(r){if(!r)return;let t=[];for(let[i,o]of Object.entries(r)){if(!Ns.test(i))continue;let s=o.providers[o.primaryProviderId];if(!s)continue;let a={name:i,primaryProviderId:o.primaryProviderId,providers:o.providers,label:s.label,color:s.color};s.colorDark!==void 0&&(a.colorDark=s.colorDark),s.emoji!==void 0&&(a.emoji=s.emoji),s.icon!==void 0&&(a.icon=s.icon),t.push(a)}let n=this._entries();_s(n,t)||(this._entries.set(t),this.applyCssVars())}lookup(r){return this.index().get(r)}labelOf(r){return this.lookup(r)?.label??r}colorOf(r,t="light"){let n=this.lookup(r);return n?t==="dark"?n.colorDark??n.color:n.color:"#9ca3af"}iconOf(r){return this.lookup(r)?.icon}emojiOf(r){return this.lookup(r)?.emoji}providersOf(r){return this.lookup(r)?.providers}applyCssVars(){if(!this.doc.head)return;let r=Ms(this.doc),t=[],n=[];for(let i of this._entries()){if(!Li.test(i.color))continue;let o=i.colorDark??i.color;if(Li.test(o))try{let s=kn(i.color,"light"),a=kn(o,"dark");t.push(`--sm-kind-${i.name}: ${i.color};`),t.push(`--sm-kind-${i.name}-bg: ${s.bg};`),t.push(`--sm-kind-${i.name}-fg: ${s.fg};`),n.push(`--sm-kind-${i.name}: ${o};`),n.push(`--sm-kind-${i.name}-bg: ${a.bg};`),n.push(`--sm-kind-${i.name}-fg: ${a.fg};`)}catch{continue}}r.textContent=`:root { ${t.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})},ki="sm-kind-vars";function Ms(e){let r=e.getElementById(ki);return r||(r=e.createElement("style"),r.id=ki,e.head.appendChild(r)),r}function _s(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],i=r[t];if(n.name!==i.name||n.primaryProviderId!==i.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(i.providers))return!1}return!0}function Pn(e){let r=e.normalize("NFD");return r=r.replace(new RegExp("\\p{Mn}+","gu"),""),r=r.toLowerCase(),r=r.replace(/[-_\s]+/g," "),r=r.replace(/\s+/g," "),r.trim()}function kl(e){let r=new Map;return Ds(e,r),Ls(e,r),r}function Ds(e,r){for(let t of e){let n=Pi(t);if(n===null)continue;let i=Pn(n);r.has(i)||r.set(i,t.path)}}function Ls(e,r){for(let t of e){if(Pi(t)!==null)continue;let n=xs(t.path);if(n.length===0)continue;let i=Pn(n);r.has(i)||r.set(i,t.path)}}function Pi(e){let r=e.frontmatter?.name;return typeof r!="string"||r.length===0?null:r}function xs(e){let r=e.split("/").filter(n=>n.length>0);if(r.length===0)return e;let t=r[r.length-1];return t==="SKILL.md"&&r.length>=2?r[r.length-2]:t.replace(/\.md$/,"")}function Pl(e,r,t){let n=e.charAt(0);if(n!=="/"&&n!=="@")return e;let i=r!==null?r.replace(/^[/@]/,"").trim():Pn(e.slice(1));return t.get(i)??e}export{F as a,Q as b,On as c,Dn as d,ft as e,$e as f,fs as g,ms as h,Is as i,ll as j,cl as k,He as l,fl as m,xn as n,gl as o,vl as p,Ei as q,Ai as r,ml as s,yl as t,bl as u,Cl as v,Oi as w,Ni as x,xi as y,kl as z,xs as A,Pl as B};
|