@mxtommy/kip 3.9.0-beta.15 → 3.9.0-beta.16
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/README.md +12 -49
- package/package.json +1 -1
- package/public/assets/svg/icons.svg +343 -39
- package/public/{chunk-JRXB4H3R.js → chunk-25PZU2O2.js} +1 -1
- package/public/{chunk-UYHYM4HU.js → chunk-2A7APCUX.js} +7 -7
- package/public/{chunk-7ROSR534.js → chunk-2LVIMPKK.js} +2 -2
- package/public/{chunk-L4UIO6KZ.js → chunk-3NNJBUG2.js} +3 -3
- package/public/{chunk-KH2LYQ34.js → chunk-3TEG54JB.js} +1 -1
- package/public/chunk-5GDQVRW5.js +1 -0
- package/public/{chunk-UE2C4S42.js → chunk-5KVBD33V.js} +1 -1
- package/public/{chunk-E44UUOOY.js → chunk-65ID7QUH.js} +1 -1
- package/public/chunk-CRI44YBB.js +1 -0
- package/public/chunk-CSR4FRGT.js +1 -0
- package/public/chunk-DVIUW3OC.js +2 -0
- package/public/{chunk-AWECVMCK.js → chunk-EQYME7LZ.js} +1 -1
- package/public/chunk-FYD5M4IT.js +16 -0
- package/public/{chunk-WQ6UD7J4.js → chunk-HECHZXLY.js} +1 -1
- package/public/chunk-JZ6SEETI.js +11 -0
- package/public/{chunk-4TXMPFLE.js → chunk-MZ4HV3HJ.js} +1 -1
- package/public/{chunk-5ZFD7GS7.js → chunk-NHAQWUX3.js} +1 -1
- package/public/{chunk-IQFEZZ5Q.js → chunk-RO6EAWVQ.js} +1 -1
- package/public/{chunk-SOVSVBLY.js → chunk-SZ2ILSI7.js} +1 -1
- package/public/{chunk-NMRNE6VS.js → chunk-TEJD7CAE.js} +1 -1
- package/public/chunk-TGXMWTBW.js +1 -0
- package/public/{chunk-3PHQNZHK.js → chunk-V5UALPYU.js} +3 -3
- package/public/chunk-VAOWYL36.js +1 -0
- package/public/index.html +1 -1
- package/public/main-BLOBFFNL.js +53 -0
- package/public/chunk-4BZUNPAS.js +0 -15
- package/public/chunk-A7JAKUEN.js +0 -2
- package/public/chunk-B2TLSQTS.js +0 -1
- package/public/chunk-BAGWY54D.js +0 -11
- package/public/chunk-DSUPPAGD.js +0 -1
- package/public/chunk-EURN6O7T.js +0 -1
- package/public/chunk-FI56NUZD.js +0 -2
- package/public/chunk-JGYVOFIW.js +0 -1
- package/public/chunk-PECKIPUO.js +0 -1
- package/public/main-IMSYBGZF.js +0 -53
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as $r,A as v,Aa as jt,B as Ge,Ba as Nr,C as I,Ca as Ur,Cc as tn,D as Pt,Da as Ye,E as Ir,Eb as Zr,Ec as rn,F as Qe,Fa as Pr,Ga as xr,Ic as Ft,Ja as Ze,Ka as kt,Kc as et,L as H,La as _r,M as te,Ma as Lr,N as re,Nb as Jr,Nc as nn,Pc as on,Q as xt,Qc as fe,R as le,Rc as sn,Sc as pe,Ta as jr,Tc as qt,W as Ke,X as G,Y as _t,Z as Ar,Za as kr,_a as he,a as l,ab as zr,b as D,ba as Tr,bb as Fr,cb as qr,db as Je,ea as Er,eb as Br,ed as an,f as Rr,fa as A,fb as Hr,g as yr,ga as Lt,gb as Xe,ha as S,i as Sr,j as Cr,k as Nt,ka as C,l as Ut,m as q,ma as R,mb as de,na as Or,nb as Vr,o as N,oa as Mr,ob as Wr,pa as T,pb as Gr,pd as un,qa as Q,qb as Qr,r as B,ra as h,rb as $t,s as b,sa as Dr,sb as zt,t as d,tb as Kr,u as Me,ua as ne,ub as Yr,v as wr,va as U,w as br,xc as Xr,yc as en}from"./chunk-FYD5M4IT.js";var f="primary",qe=Symbol("RouteTitle"),Gt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function se(t){return new Gt(t)}function vn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function di(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],n[e]))return!1;return!0}function L(t,n){let e=t?Qt(t):void 0,r=n?Qt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!mn(t[i],n[i]))return!1;return!0}function Qt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function mn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Rn(t){return t.length>0?t[t.length-1]:null}function V(t){return wr(t)?t:Qr(t)?b(Promise.resolve(t)):d(t)}var fi={exact:Sn,subset:Cn},yn={exact:pi,subset:gi,ignored:()=>!0};function cn(t,n,e){return fi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function pi(t,n){return L(t,n)}function Sn(t,n,e){if(!ie(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Sn(t.children[r],n.children[r],e))return!1;return!0}function gi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>mn(t[e],n[e]))}function Cn(t,n,e){return wn(t,n,n.segments,e)}function wn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ie(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!ie(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ie(t.segments,i)||!nt(t.segments,i,r)||!t.children[f]?!1:wn(t.children[f],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var k=class{root;queryParams;fragment;_queryParamMap;constructor(n=new p([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){return Ri.serialize(this)}},p=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=se(this.parameters),this._parameterMap}toString(){return In(this)}};function vi(t,n){return ie(t,n)&&t.every((e,r)=>L(e.parameters,n[r].parameters))}function ie(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function mi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ae=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>new Y,providedIn:"root"})}return t})(),Y=class{parse(n){let e=new Yt(n);return new k(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=Ci(n.queryParams),i=typeof n.fragment=="string"?`#${yi(n.fragment)}`:"";return`${e}${r}${i}`}},Ri=new Y;function it(t){return t.segments.map(n=>In(n)).join("/")}function De(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[f]?De(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=mi(t,(r,i)=>i===f?[De(t.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function bn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return bn(t).replace(/%3B/gi,";")}function yi(t){return encodeURI(t)}function Kt(t){return bn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function ln(t){return ot(t.replace(/\+/g,"%20"))}function In(t){return`${Kt(t.path)}${Si(t.parameters)}`}function Si(t){return Object.entries(t).map(([n,e])=>`;${Kt(n)}=${Kt(e)}`).join("")}function Ci(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var wi=/^[^\/()?;#]+/;function Bt(t){let n=t.match(wi);return n?n[0]:""}var bi=/^[^\/()?;=#]+/;function Ii(t){let n=t.match(bi);return n?n[0]:""}var Ai=/^[^=?&#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Ei=/^[^&#]+/;function Oi(t){let n=t.match(Ei);return n?n[0]:""}var Yt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new p([],{}):new p([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new p(n,e)),r}parseSegment(){let n=Bt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new K(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ii(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Bt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Ti(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Oi(this.remaining);s&&(r=s,this.capture(r))}let i=ln(e),o=ln(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Bt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new p([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}};function An(t){return t.segments.length>0?new p([],{[f]:t}):t}function Tn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=Tn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new p(t.segments,n);return Mi(e)}function Mi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new p(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof k}function En(t,n,e=null,r=null){let i=On(t);return Mn(i,n,e,r)}function On(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new p(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=An(r);return n??i}function Mn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Ht(i,i,i,e,r);let o=Di(n);if(o.toRoot())return Ht(i,i,new p([],{}),e,r);let s=Ni(o,i,t),a=s.processChildren?Ue(s.segmentGroup,s.index,o.commands):Nn(s.segmentGroup,s.index,o.commands);return Ht(i,s.segmentGroup,a,e,r)}function st(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function Ht(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(g=>`${g}`):`${c}`});let s;t===n?s=e:s=Dn(t,n,e);let a=An(Tn(s));return new k(a,o,i)}function Dn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Dn(o,n,e)}),new p(t.segments,r)}var at=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&st(r[0]))throw new C(4003,!1);let i=r.find(xe);if(i&&i!==Rn(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new at(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=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,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new at(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ni(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=st(t.commands[0])?0:1,i=e.segments.length-1+r;return Ui(e,i,t.numberOfDoubleDots)}function Ui(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new me(r,!1,i-o)}function Pi(t){return xe(t[0])?t[0].outlets:{[f]:t}}function Nn(t,n,e){if(t??=new p([],{}),t.segments.length===0&&t.hasChildren())return Ue(t,n,e);let r=xi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new p(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new p(t.segments.slice(r.pathIndex),t.children),Ue(o,0,i)}else return r.match&&i.length===0?new p(t.segments,{}):r.match&&!t.hasChildren()?Zt(t,n,e):r.match?Ue(t,0,i):Zt(t,n,e)}function Ue(t,n,e){if(e.length===0)return new p(t.segments,{});{let r=Pi(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Ue(t.children[f],n,e);return new p(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Nn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new p(t.segments,i)}}function xi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(xe(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!dn(u,c,s))return o;r+=2}else{if(!dn(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let u=_i(o.outlets);return new p(r,u)}if(i===0&&st(e[0])){let u=t.segments[n];r.push(new K(u.path,hn(e[0]))),i++;continue}let s=xe(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&st(a)?(r.push(new K(s,hn(a))),i+=2):(r.push(new K(s,{})),i++)}return new p(r,{})}function _i(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Zt(new p([],{}),0,r))}),n}function hn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function dn(t,n,e){return t==e.path&&L(n,e.parameters)}var Re="imperative",m=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(m||{}),M=class{id;url;constructor(n,e){this.id=n,this.url=e}},J=class extends M{type=m.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends M{urlAfterRedirects;type=m.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Se=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Se||{}),j=class extends M{reason;code;type=m.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$=class extends M{reason;code;type=m.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Ce=class extends M{error;target;type=m.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},_e=class extends M{urlAfterRedirects;state;type=m.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends M{urlAfterRedirects;state;type=m.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends M{urlAfterRedirects;state;shouldActivate;type=m.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},lt=class extends M{urlAfterRedirects;state;type=m.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class extends M{urlAfterRedirects;state;type=m.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class{route;type=m.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ft=class{route;type=m.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},pt=class{snapshot;type=m.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gt=class{snapshot;type=m.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=m.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=m.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},we=class{routerEvent;position;anchor;type=m.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Le=class{},be=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Li(t){return!(t instanceof Le)&&!(t instanceof be)}function ji(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function _(t){return t.outlet||f}function ki(t,n){let e=t.filter(r=>_(r)===n);return e.push(...t.filter(r=>_(r)!==n)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Rt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ue(this.rootInjector)}},ue=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Q(ne))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Xt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Xt(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function Xt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Xt(t,e);if(r.length)return r.unshift(n),r}return[]}var O=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var je=class extends yt{snapshot;constructor(n,e){super(n),this.snapshot=e,ar(this,n)}toString(){return this.snapshot.toString()}};function Un(t){let n=$i(t),e=new N([new K("",{})]),r=new N({}),i=new N({}),o=new N({}),s=new N(""),a=new z(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new je(new O(a,[]),n)}function $i(t){let n={},e={},r={},o=new oe([],n,r,"",e,f,t,null,{});return new ke("",new O(o,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[qe]))??d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>se(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>se(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&xn(i)&&(r.resolve[qe]=i.title),r}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[qe]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=se(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ke=class extends yt{url;constructor(n,e){super(e),this.url=n,ar(this,e)}toString(){return Pn(this._root)}};function ar(t,n){n.value._routerState=t,n.children.forEach(e=>ar(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Vt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(n.params,e.params)||t.paramsSubject.next(e.params),di(n.url,e.url)||t.urlSubject.next(e.url),L(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function er(t,n){let e=L(t.params,n.params)&&vi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||er(t.parent,n.parent))}function xn(t){return typeof t.title=="string"||t.title===null}var _n=new T(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new de;deactivateEvents=new de;attachEvents=new de;detachEvents=new de;routerOutletData=rn(void 0);parentContexts=h(ue);location=h(zr);changeDetector=h(Ft);inputBinder=h(Be,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new tr(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),tr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===z?this.route:n===ue?this.childContexts:n===_n?this.outletData:this.parent.get(n,e)}},Be=new T(""),cr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ge([r.queryParams,r.params,r.data]).pipe(A(([o,s,a],u)=>(a=l(l(l({},o),s),a),u===0?d(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=nn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),lr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Br({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Zr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function hr(t){let n=t.children&&t.children.map(hr),e=n?D(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=lr),e}function zi(t,n,e){let r=$e(t,n._root,e?e._root:void 0);return new je(r,n)}function $e(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Fi(t,n,e);return new O(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$e(t,a)),s}}let r=qi(n.value),i=n.children.map(o=>$e(t,o));return new O(r,i)}}function Fi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return $e(t,r,i);return $e(t,r)})}function qi(t){return new z(new N(t.url),new N(t.params),new N(t.queryParams),new N(t.fragment),new N(t.data),t.outlet,t.component,t)}var Ie=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Ln="ngNavigationCancelingError";function Ct(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Ln]=!0,e.cancellationCode=n,e}function Bi(t){return kn(t)&&Z(t.url)}function kn(t){return!!t&&t[Ln]}var Hi=(t,n,e,r)=>v(i=>(new rr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),rr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Vt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new mt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new gt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Vt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Vt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},wt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ye=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Vi(t,n,e){let r=t._root,i=n?n._root:null;return Ne(r,i,e,[r.value])}function Wi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ee(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Ne(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(n);return t.children.forEach(s=>{Gi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Pe(a,e.getContext(s),i)),i}function Gi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Qi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new wt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(t,n,a?a.children:null,r,i):Ne(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ye(a.outlet.component,s))}else s&&Pe(n,a,i),i.canActivateChecks.push(new wt(r)),o.component?Ne(t,null,a?a.children:null,r,i):Ne(t,null,e,r,i);return i}function Qi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ie(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ie(t.url,n.url)||!L(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(t,n)||!L(t.queryParams,n.queryParams);case"paramsChange":default:return!er(t,n)}}function Pe(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Pe(s,n.children.getContext(o),e):Pe(s,null,e):Pe(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new ye(n.outlet.component,i)):e.canDeactivateChecks.push(new ye(null,i)):e.canDeactivateChecks.push(new ye(null,i))}function He(t){return typeof t=="function"}function Ki(t){return typeof t=="boolean"}function Yi(t){return t&&He(t.canLoad)}function Zi(t){return t&&He(t.canActivate)}function Ji(t){return t&&He(t.canActivateChild)}function Xi(t){return t&&He(t.canDeactivate)}function eo(t){return t&&He(t.canMatch)}function $n(t){return t instanceof br||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Ae(){return A(t=>Ge(t.map(n=>n.pipe(le(1),Er(rt)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||to(e))return e}return!0}),H(n=>n!==rt),le(1)))}function to(t){return Z(t)||t instanceof Ie}function ro(t,n){return I(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(D(l({},e),{guardsResult:!0})):no(s,r,i,t).pipe(I(a=>a&&Ki(a)?io(r,o,t,n):d(a)),v(a=>D(l({},e),{guardsResult:a})))})}function no(t,n,e,r){return b(t).pipe(I(i=>co(i.component,i.route,e,n,r)),G(i=>i!==!0,!0))}function io(t,n,e,r){return b(n).pipe(re(i=>Ir(so(i.route.parent,r),oo(i.route,r),uo(t,i.path,e),ao(t,i.route,e))),G(i=>i!==!0,!0))}function oo(t,n){return t!==null&&n&&n(new vt(t)),d(!0)}function so(t,n){return t!==null&&n&&n(new pt(t)),d(!0)}function ao(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(o=>Qe(()=>{let s=Te(n)??e,a=Ee(o,s),u=Zi(a)?a.canActivate(n,t):U(s,()=>a(n,t));return V(u).pipe(G())}));return d(i).pipe(Ae())}function uo(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Wi(s)).filter(s=>s!==null).map(s=>Qe(()=>{let a=s.guards.map(u=>{let c=Te(s.node)??e,g=Ee(u,c),y=Ji(g)?g.canActivateChild(r,t):U(c,()=>g(r,t));return V(y).pipe(G())});return d(a).pipe(Ae())}));return d(o).pipe(Ae())}function co(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(a=>{let u=Te(n)??i,c=Ee(a,u),g=Xi(c)?c.canDeactivate(t,n,e,r):U(u,()=>c(t,n,e,r));return V(g).pipe(G())});return d(s).pipe(Ae())}function lo(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let a=Ee(s,t),u=Yi(a)?a.canLoad(n,e):U(t,()=>a(n,e));return V(u)});return d(o).pipe(Ae(),zn(r))}function zn(t){return Sr(S(n=>{if(typeof n!="boolean")throw Ct(t,n)}),v(n=>n===!0))}function ho(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let a=Ee(s,t),u=eo(a)?a.canMatch(n,e):U(t,()=>a(n,e));return V(u)});return d(o).pipe(Ae(),zn(r))}var ze=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Fe=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new ze(t))}function fo(t){return Me(new C(4e3,!1))}function po(t){return Me(jn(!1,w.GuardRejected))}var nr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return fo(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){return go(e,i,o).pipe(v(s=>{if(s instanceof k)throw new Fe(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Fe(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new k(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new p(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function go(t,n,e){if(typeof t=="string")return d(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:g,title:y}=n;return V(U(e,()=>r({params:c,data:g,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:y})))}var ir={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vo(t,n,e,r,i){let o=Fn(t,n,e);return o.matched?(r=ji(n,r),ho(r,n,e,i).pipe(v(s=>s===!0?o:l({},ir)))):d(o)}function Fn(t,n,e){if(n.path==="**")return mo(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},ir):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||vn)(e,t,n);if(!i)return l({},ir);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function mo(t){return{matched:!0,parameters:t.length>0?Rn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fn(t,n,e,r){return e.length>0&&So(t,e,r)?{segmentGroup:new p(n,yo(r,new p(e,t.children))),slicedSegments:[]}:e.length===0&&Co(t,e,r)?{segmentGroup:new p(t.segments,Ro(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new p(t.segments,t.children),slicedSegments:e}}function Ro(t,n,e,r){let i={};for(let o of e)if(It(t,n,o)&&!r[_(o)]){let s=new p([],{});i[_(o)]=s}return l(l({},r),i)}function yo(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&_(r)!==f){let i=new p([],{});e[_(r)]=i}return e}function So(t,n,e){return e.some(r=>It(t,n,r)&&_(r)!==f)}function Co(t,n,e){return e.some(r=>It(t,n,r))}function It(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function wo(t,n,e){return n.length===0&&!t.children[e]}var or=class{};function bo(t,n,e,r,i,o,s="emptyOnly"){return new sr(t,n,e,r,i,s,o).recognize()}var Io=31,sr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new nr(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=fn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new O(r,e),o=new ke("",i),s=En(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),te(r=>{if(r instanceof Fe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ze?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(v(s=>s instanceof O?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return b(o).pipe(re(s=>{let a=r.children[s],u=ki(e,s);return this.processSegmentGroup(n,u,a,s,i)}),Tr((s,a)=>(s.push(...a),s)),xt(null),Ar(),I(s=>{if(s===null)return ge(r);let a=qn(s);return Ao(a),d(a)}))}processSegment(n,e,r,i,o,s,a){return b(e).pipe(re(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,o,s,a).pipe(te(c=>{if(c instanceof ze)return d(null);throw c}))),G(u=>!!u),te(u=>{if($n(u))return wo(r,i,o)?d(new or):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return _(r)!==s&&(s===f||!It(i,o,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:g,positionalParamSegments:y,remainingSegments:x}=Fn(e,i,o);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Io&&(this.allowRedirects=!1));let W=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,pn(i),_(i),i.component??i._loadedComponent??null,i,gn(i)),E=St(W,a,this.paramsInheritanceStrategy);return W.params=Object.freeze(E.params),W.data=Object.freeze(E.data),this.applyRedirects.applyRedirectCommands(g,i.redirectTo,y,W,n).pipe(A(ee=>this.applyRedirects.lineralizeSegments(i,ee)),I(ee=>this.processSegment(n,r,e,ee.concat(x),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=vo(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(A(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(A(({routes:c})=>{let g=r._loadedInjector??n,{parameters:y,consumedSegments:x,remainingSegments:W}=u,E=new oe(x,y,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,pn(r),_(r),r.component??r._loadedComponent??null,r,gn(r)),Mt=St(E,s,this.paramsInheritanceStrategy);E.params=Object.freeze(Mt.params),E.data=Object.freeze(Mt.data);let{segmentGroup:ee,slicedSegments:Dt}=fn(e,x,W,c);if(Dt.length===0&&ee.hasChildren())return this.processChildren(g,c,ee,E).pipe(v(We=>new O(E,We)));if(c.length===0&&Dt.length===0)return d(new O(E,[]));let li=_(r)===o;return this.processSegment(g,c,ee,Dt,li?f:o,!0,E).pipe(v(We=>new O(E,We instanceof O?[We]:[])))}))):ge(e)))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):lo(n,e,r,this.urlSerializer).pipe(I(i=>i?this.configLoader.loadChildren(n,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):po(e))):d({routes:[],injector:n})}};function Ao(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function To(t){let n=t.value.routeConfig;return n&&n.path===""}function qn(t){let n=[],e=new Set;for(let r of t){if(!To(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=qn(r.children);n.push(new O(r.value,i))}return n.filter(r=>!e.has(r))}function pn(t){return t.data||{}}function gn(t){return t.resolve||{}}function Eo(t,n,e,r,i,o){return I(s=>bo(t,n,e,r,s.extractedUrl,i,o).pipe(v(({state:a,tree:u})=>D(l({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Oo(t,n){return I(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Bn(u))s.add(c);let a=0;return b(s).pipe(re(u=>o.has(u)?Mo(u,r,t,n):(u.data=St(u,u.parent,t).resolve,d(void 0))),S(()=>a++),_t(1),I(u=>a===s.size?d(e):B))})}function Bn(t){let n=t.children.map(e=>Bn(e)).flat();return[t,...n]}function Mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!xn(i)&&(o[qe]=i.title),Qe(()=>(t.data=St(t,t.parent,e).resolve,Do(o,t,n,r).pipe(v(s=>(t._resolvedData=s,t.data=l(l({},t.data),s),null)))))}function Do(t,n,e,r){let i=Qt(t);if(i.length===0)return d({});let o={};return b(i).pipe(I(s=>No(t[s],n,e,r).pipe(G(),S(a=>{if(a instanceof Ie)throw Ct(new Y,a);o[s]=a}))),_t(1),v(()=>o),te(s=>$n(s)?B:Me(s)))}function No(t,n,e,r){let i=Te(n)??r,o=Ee(t,i),s=o.resolve?o.resolve(n,e):U(i,()=>o(n,e));return V(s)}function Wt(t){return A(n=>{let e=t(n);return e?b(e).pipe(v(()=>n)):d(n)})}var dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[qe]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Hn),providedIn:"root"})}return t})(),Hn=(()=>{class t extends dr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Q(un))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),X=new T("",{providedIn:"root",factory:()=>({})}),ce=new T(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(Xr);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return d(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=V(U(e,()=>r.loadComponent())).pipe(v(Wn),A(Gn),S(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ke(()=>{this.componentLoaders.delete(r)})),o=new Ut(i,()=>new q).pipe(Nt());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Vn(r,this.compiler,e,this.onLoadEndListener).pipe(Ke(()=>{this.childrenLoaders.delete(r)})),s=new Ut(o,()=>new q).pipe(Nt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vn(t,n,e,r){return V(U(e,()=>t.loadChildren())).pipe(v(Wn),A(Gn),I(i=>i instanceof qr||Array.isArray(i)?d(i):b(n.compileModuleAsync(i))),v(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(ce,[],{optional:!0,self:!0}).flat()),{routes:s.map(hr),injector:o}}))}function Uo(t){return t&&typeof t=="object"&&"default"in t}function Wn(t){return Uo(t)?t.default:t}function Gn(t){return d(t)}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Po),providedIn:"root"})}return t})(),Po=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fr=new T(""),pr=new T("");function Qn(t,n,e){let r=t.get(pr),i=t.get(Nr);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),xo(t)));a.ready.catch(c=>{});let{onViewTransitionCreated:u}=r;return u&&U(t,()=>u({transition:a,from:n,to:e})),s}function xo(t){return new Promise(n=>{Wr({read:()=>setTimeout(n)},{injector:t})})}var gr=new T(""),Et=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new q;transitionAbortWithErrorSubject=new q;configLoader=h(At);environmentInjector=h(ne);destroyRef=h(Ur);urlSerializer=h(ae);rootContexts=h(ue);location=h(pe);inputBindingEnabled=h(Be,{optional:!0})!==null;titleStrategy=h(dr);options=h(X,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(Tt);createViewTransition=h(fr,{optional:!0});navigationErrorHandler=h(gr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new dt(i)),r=i=>this.events.next(new ft(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))}setupNavigations(e){return this.transitions=new N(null),this.transitions.pipe(H(r=>r!==null),A(r=>{let i=!1;return d(r).pipe(A(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),B;this.currentTransition=r,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?D(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new $(o.id,this.urlSerializer.serialize(o.rawUrl),"",Se.IgnoredSameUrlNavigation)),o.resolve(!1),B;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return d(o).pipe(A(u=>(this.events.next(new J(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?B:Promise.resolve(u))),Eo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=D(l({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let c=new _e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:g,restoredState:y,extras:x}=o,W=new J(u,this.urlSerializer.serialize(c),g,y);this.events.next(W);let E=Un(this.rootComponentType).snapshot;return this.currentTransition=r=D(l({},o),{targetSnapshot:E,urlAfterRedirects:c,extras:D(l({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=c,d(r)}else return this.events.next(new $(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),B}),S(o=>{let s=new ut(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=r=D(l({},o),{guards:Vi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),ro(this.environmentInjector,o=>this.events.next(o)),S(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Ct(this.urlSerializer,o.guardsResult);let s=new ct(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),H(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",w.GuardRejected),!1)),Wt(o=>{if(o.guards.canActivateChecks.length!==0)return d(o).pipe(S(s=>{let a=new lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>{let a=!1;return d(s).pipe(Oo(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",w.NoDataFromResolver)}}))}),S(s=>{let a=new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Wt(o=>{let s=a=>{let u=[];if(a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent){let c=Te(a)??this.environmentInjector;u.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(S(g=>{a.component=g}),v(()=>{})))}for(let c of a.children)u.push(...s(c));return u};return Ge(s(o.targetSnapshot.root)).pipe(xt(null),le(1))}),Wt(()=>this.afterPreactivation()),A(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?b(a).pipe(v(()=>r)):d(r)}),v(o=>{let s=zi(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=D(l({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,r}),S(()=>{this.events.next(new Le)}),Hi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),le(1),Lt(new Cr(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(H(()=>!i&&!r.targetRouterState),S(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",w.Aborted)}))),S({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new P(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),Lt(this.transitionAbortWithErrorSubject.pipe(S(o=>{throw o}))),Ke(()=>{i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),te(o=>{if(this.destroyed)return r.resolve(!1),B;if(i=!0,kn(o))this.events.next(new j(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),Bi(o)?this.events.next(new be(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Ce(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=U(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Ie){let{message:u,cancellationCode:c}=Ct(this.urlSerializer,a);this.events.next(new j(r.id,this.urlSerializer.serialize(r.extractedUrl),u,c)),this.events.next(new be(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return B}))}))}cancelNavigationTransition(e,r,i){let o=new j(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _o(t){return t!==Re}var Kn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(Lo),providedIn:"root"})}return t})(),bt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Lo=(()=>{class t extends bt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=kt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yn=(()=>{class t{urlSerializer=h(ae);options=h(X,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(pe);urlHandlingStrategy=h(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new k;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof k?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Un(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>h(jo),providedIn:"root"})}return t})(),jo=(()=>{class t extends Yn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof J?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof _e?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Le?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof j&&e.code!==w.SupersededByNewNavigation&&e.code!==w.Redirect?this.restoreHistory(r):e instanceof Ce?this.restoreHistory(r,!0):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=kt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ot(t,n){t.events.pipe(H(e=>e instanceof P||e instanceof j||e instanceof Ce||e instanceof $),v(e=>e instanceof P||e instanceof $?0:(e instanceof j?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:!1)?2:1),H(e=>e!==2),le(1)).subscribe(()=>{n()})}var ko={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Gr);stateManager=h(Yn);options=h(X,{optional:!0})||{};pendingTasks=h(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(Et);urlSerializer=h(ae);location=h(pe);urlHandlingStrategy=h(Tt);injector=h(ne);_events=new q;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(Kn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(ce,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(Be,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new yr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof j&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0;else if(r instanceof be){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_o(i.source)},s);this.scheduleNavigation(a,Re,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Li(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Re,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(u=>{this.disposed||this.injector.get(Ye)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(hr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,g=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":g=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let y;try{let x=i?i.snapshot:this.routerState.snapshot.root;y=On(x)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return Mn(y,e,g,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Re,null,r)}navigate(e,r={skipLocationChange:!1}){return zo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},ko):r===!1?i=l({},$o):i=r,Z(e))return cn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return cn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((y,x)=>{a=y,u=x});let g=this.pendingTasks.add();return Ot(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(y=>Promise.reject(y))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new C(4008,!1)}var Zn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pr(null);get href(){return en(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new q;applicationErrorHandler=h(Ye);options=h(X,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(h(new tn("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,r=i=>i==="merge"||i==="preserve";e||=r(this.queryParamsHandling),e||=!this.queryParamsHandling&&!r(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof P&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Z(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(he(F),he(z),_r("tabindex"),he(kr),he(Lr),he(fe))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Jr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Yr("href",i.reactiveHref(),jr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ve=class{};var Jn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(H(e=>e instanceof P),re(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return b(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let o=i.pipe(I(s=>s===null?d(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return b([o,s]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Q(F),Q(ne),Q(Ve),Q(At))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xn=new T(""),Fo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Re;restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof J?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof we&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>Rr(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new we(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){$r()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function qo(t,...n){return Dr([{provide:ce,multi:!0,useValue:t},[],{provide:z,useFactory:ei,deps:[F]},{provide:zt,multi:!0,useFactory:ti},n.map(e=>e.\u0275providers)])}function ei(t){return t.routerState.root}function Oe(t,n){return{\u0275kind:t,\u0275providers:n}}function ti(){let t=h(jt);return n=>{let e=t.get(Kr);if(n!==e.components[0])return;let r=t.get(F),i=t.get(ri);t.get(mr)===1&&r.initialNavigation(),t.get(oi,null,{optional:!0})?.setUpPreloading(),t.get(Xn,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ri=new T("",{factory:()=>new q}),mr=new T("",{providedIn:"root",factory:()=>1});function ni(){let t=[{provide:mr,useValue:0},$t(()=>{let n=h(jt);return n.get(on,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(ri);Ot(i,()=>{r(!0)}),n.get(Et).afterPreactivation=()=>(r(!0),o.closed?d(void 0):o),i.initialNavigation()}))})];return Oe(2,t)}function ii(){let t=[$t(()=>{h(F).setUpLocationChangeListener()}),{provide:mr,useValue:2}];return Oe(3,t)}var oi=new T("");function si(t){return Oe(0,[{provide:oi,useExisting:Jn},{provide:Ve,useExisting:t}])}function Bo(){return Oe(6,[{provide:fe,useClass:qt}])}function ai(){return Oe(8,[cr,{provide:Be,useExisting:cr}])}function ui(t){Fr("NgRouterViewTransitions");let n=[{provide:fr,useValue:Qn},{provide:pr,useValue:l({skipNextTransition:!!t?.skipInitialTransition},t)}];return Oe(9,n)}var ci=[pe,{provide:ae,useClass:Y},F,ue,{provide:z,useFactory:ei,deps:[F]},At,[]],Ho=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[ci,[],{provide:ce,multi:!0,useValue:e},[],r?.errorHandler?{provide:gr,useValue:r.errorHandler}:[],{provide:X,useValue:r||{}},r?.useHash?Wo():Go(),Vo(),r?.preloadingStrategy?si(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Qo(r):[],r?.bindToComponentInputs?ai().\u0275providers:[],r?.enableViewTransitions?ui().\u0275providers:[],Ko()]}}static forChild(e){return{ngModule:t,providers:[{provide:ce,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Hr({type:t});static \u0275inj=Or({})}return t})();function Vo(){return{provide:Xn,useFactory:()=>{let t=h(an),n=h(Vr),e=h(X),r=h(Et),i=h(ae);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fo(i,r,t,n,e)}}}function Wo(){return{provide:fe,useClass:qt}}function Go(){return{provide:fe,useClass:sn}}function Qo(t){return[t.initialNavigation==="disabled"?ii().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ni().\u0275providers:[]]}var vr=new T("");function Ko(){return[{provide:vr,useFactory:ti},{provide:zt,multi:!0,useExisting:vr}]}export{P as a,z as b,ur as c,F as d,Zn as e,qo as f,Bo as g,Ho as h};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as kt,e as Ot,f as Pt}from"./chunk-L4UIO6KZ.js";import{a as Rt,b as zt,c as Ft,d as At,e as Lt,f as Ht,g as Vt,h as Nt,i as Bt,j as Qt,k as jt,m as $t,n as pe,p as de,q as qt}from"./chunk-4TXMPFLE.js";import{f as It,n as Tt}from"./chunk-AWECVMCK.js";import{g as pt}from"./chunk-FI56NUZD.js";import{a as we}from"./chunk-JRXB4H3R.js";import{D as yt,G as St,I as Ct,J as ve,M as be,P as xt,Q as ye,R as Dt,X as Mt,Y as wt,Z as Et,aa as Se,da as Ce,k as Je,ka as xe,ma as De,oa as Me,p as Xe,t as ft,u as _t,w as gt,y as vt,z as bt}from"./chunk-IQFEZZ5Q.js";import{$b as s,A as Re,Aa as _,Ab as Ne,Ac as p,Bb as P,Bc as k,Cc as I,Ce as ct,Db as g,De as mt,Eb as Be,Fc as G,Gb as N,Gc as K,Ge as ge,Hb as Qe,Hc as U,Ja as x,Le as ut,Mc as qe,Na as Le,Nc as ue,Oa as X,Oc as We,Pc as he,Pe as ht,Qa as ee,Qc as Ge,Ra as te,Rc as Ke,Sb as B,Tb as D,Tc as Ue,Ub as M,Uc as Ze,Vd as et,Wb as R,Xb as z,Xc as le,Xd as tt,Yb as F,Zb as h,_b as r,ac as S,ae as it,cd as fe,ce as at,de as nt,ec as Q,fa as O,fc as j,fd as Z,g as Oe,ga as ze,gc as A,ha as T,hc as $,ic as q,jc as C,jd as Y,kd as Ye,lc as u,m as oe,mb as l,mc as ie,me as rt,nc as ae,ne as ot,oa as Fe,ob as V,oc as w,pc as ne,pe as st,qb as He,qc as v,ra as Ae,rc as b,t as Pe,ta as c,tb as Ve,tc as me,te as lt,uc as je,vc as W,wc as $e,xb as E,xc as L,xe as dt,za as f,zb as y,zc as se,zd as _e}from"./chunk-4BZUNPAS.js";var Wt=(()=>{class t{transform(e,i){return!e||!e.length?[]:i?e.filter(a=>a.includes("self")):e}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Ne({name:"filterSelf",type:t,pure:!0})}return t})();var ri=["*"];function oi(t,o){t&1&&ae(0)}var Ie=(()=>{class t{_elementRef=c(ee);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),Te=(()=>{class t{template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var H={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},si=new Ae("STEPPER_GLOBAL_OPTIONS"),ce=(()=>{class t{_stepperOptions;_stepper=c(J);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=x(!1);interactedStream=new N;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=x(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=x(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=x(null);index=x(-1);isSelected=le(()=>this._stepper.selectedIndex===this.index());indicatorType=le(()=>{let e=this.isSelected(),i=this.completed,a=this._state()??H.NUMBER,n=this._editable();return this._showError()&&this.hasError&&!e?H.ERROR:this._displayDefaultIndicatorType?!i||e?H.NUMBER:n?H.EDIT:H.DONE:i&&!e?H.DONE:i&&e?a:n&&e?H.EDIT:a});isNavigable=le(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=x(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=c(si,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,Te,5),w(n,St,5)),i&2){let d;v(d=b())&&(a.stepLabel=d.first),v(d=b())&&(a._childForms=d)}},viewQuery:function(i,a){if(i&1&&ne(V,7),i&2){let n;v(n=b())&&(a.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Y],optional:[2,"optional","optional",Y],completed:[2,"completed","completed",Y],hasError:[2,"hasError","hasError",Y]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Le],ngContentSelectors:ri,decls:1,vars:0,template:function(i,a){i&1&&(ie(),Be(0,oi,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),J=(()=>{class t{_dir=c(lt,{optional:!0});_changeDetectorRef=c(Z);_elementRef=c(ee);_destroyed=new oe;_keyManager;_steps;steps=new te;_stepHeader;_sortedHeaders=new te;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=x(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new N;selectedIndexChange=new N;_groupId=c(rt).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(O(this._steps),T(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,a)=>i.index.set(a)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(O(this._stepHeader),T(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new st(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:Pe()).pipe(O(this._layoutDirection()),T(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),a=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:a,selectedStep:i[e],previouslySelectedStep:i[a]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=ot(e),a=e.keyCode,n=this._keyManager;n?.activeItemIndex!=null&&!i&&(a===32||a===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=et();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ce,5),w(n,Ie,5)),i&2){let d;v(d=b())&&(a._steps=d),v(d=b())&&(a._stepHeader=d)}},inputs:{linear:[2,"linear","linear",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Ye],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),Gt=(()=>{class t{_stepper=c(J);type="submit";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.next()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})(),Kt=(()=>{class t{_stepper=c(J);type="button";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.previous()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})();var li=(t,o,e)=>({index:t,active:o,optional:e});function pi(t,o){if(t&1&&A(0,2),t&2){let e=u();h("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",Ge(2,li,e.index,e.active,e.optional))}}function di(t,o){if(t&1&&(r(0,"span",7),p(1),s()),t&2){let e=u(2);l(),k(e._getDefaultTextForState(e.state))}}function ci(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=u(3);l(),k(e._intl.completedLabel)}}function mi(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=u(3);l(),k(e._intl.editableLabel)}}function ui(t,o){if(t&1&&(D(0,ci,2,1,"span",8)(1,mi,2,1,"span",8),r(2,"mat-icon",7),p(3),s()),t&2){let e=u(2);M(e.state==="done"?0:e.state==="edit"?1:-1),l(3),k(e._getDefaultTextForState(e.state))}}function hi(t,o){if(t&1&&D(0,di,2,1,"span",7)(1,ui,4,2),t&2){let e,i=u();M((e=i.state)==="number"?0:1)}}function fi(t,o){t&1&&(r(0,"div",4),A(1,9),s()),t&2&&(l(),h("ngTemplateOutlet",o.template))}function _i(t,o){if(t&1&&(r(0,"div",4),p(1),s()),t&2){let e=u();l(),k(e.label)}}function gi(t,o){if(t&1&&(r(0,"div",5),p(1),s()),t&2){let e=u();l(),k(e._intl.optionalLabel)}}function vi(t,o){if(t&1&&(r(0,"div",6),p(1),s()),t&2){let e=u();l(),k(e.errorMessage)}}var Zt=["*"];function bi(t,o){}function yi(t,o){if(t&1&&(ae(0),g(1,bi,0,0,"ng-template",0)),t&2){let e=u();l(),h("cdkPortalOutlet",e._portal)}}var Si=["animatedContainer"],Yt=t=>({step:t});function Ci(t,o){t&1&&ae(0)}function xi(t,o){t&1&&S(0,"div",7)}function Di(t,o){if(t&1&&(A(0,6),D(1,xi,1,0,"div",7)),t&2){let e=o.$implicit,i=o.$index,a=o.$count;u(2);let n=W(4);h("ngTemplateOutlet",n)("ngTemplateOutletContext",he(3,Yt,e)),l(),M(i!==a-1?1:-1)}}function Mi(t,o){if(t&1&&(r(0,"div",8,1),A(2,9),s()),t&2){let e=o.$implicit,i=o.$index,a=u(2);se("mat-horizontal-stepper-content-"+a._getAnimationDirection(i)),h("id",a._getStepContentId(i)),B("aria-labelledby",a._getStepLabelId(i))("inert",a.selectedIndex===i?null:""),l(2),h("ngTemplateOutlet",e.content)}}function wi(t,o){if(t&1&&(r(0,"div",2)(1,"div",3),z(2,Di,2,5,null,null,R),s(),r(4,"div",4),z(5,Mi,3,6,"div",5,R),s()()),t&2){let e=u();l(2),F(e.steps),l(3),F(e.steps)}}function Ei(t,o){if(t&1&&(r(0,"div",10),A(1,6),r(2,"div",11,1)(4,"div",12)(5,"div",13),A(6,9),s()()()()),t&2){let e=o.$implicit,i=o.$index,a=o.$index,n=o.$count,d=u(2),m=W(4);l(),h("ngTemplateOutlet",m)("ngTemplateOutletContext",he(10,Yt,e)),l(),L("mat-stepper-vertical-line",a!==n-1)("mat-vertical-content-container-active",d.selectedIndex===i),B("inert",d.selectedIndex===i?null:""),l(2),h("id",d._getStepContentId(i)),B("aria-labelledby",d._getStepLabelId(i)),l(2),h("ngTemplateOutlet",e.content)}}function Ii(t,o){if(t&1&&z(0,Ei,7,12,"div",10,R),t&2){let e=u();F(e.steps)}}function Ti(t,o){if(t&1){let e=$();r(0,"mat-step-header",14),C("click",function(){let a=f(e).step;return _(a.select())})("keydown",function(a){f(e);let n=u();return _(n._onKeydown(a))}),s()}if(t&2){let e=o.step,i=u();L("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),h("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),B("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var re=(()=>{class t extends Te{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[P]})}return t})(),ki=(()=>{class t{changes=new oe;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=Fe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ut=(()=>{class t extends Ie{_intl=c(ki);_focusMonitor=c(it);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=c(at);e.load(mt),e.load(nt);let i=c(Z);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,a){i&2&&(se("mat-"+(a.color||"primary")),L("mat-step-header-empty-label",a._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[P],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,a){if(i&1&&(S(0,"div",0),r(1,"div")(2,"div",1),D(3,pi,1,6,"ng-container",2)(4,hi,2,1),s()(),r(5,"div",3),D(6,fi,2,1,"div",4)(7,_i,2,1,"div",4),D(8,gi,2,1,"div",5),D(9,vi,2,1,"div",6),s()),i&2){let n;h("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disableRipple),l(),se(qe("mat-step-icon-state-",a.state," mat-step-icon")),L("mat-step-icon-selected",a.selected),l(2),M(a.iconOverrides&&a.iconOverrides[a.state]?3:4),l(2),L("mat-step-label-active",a.active)("mat-step-label-selected",a.selected)("mat-step-label-error",a.state=="error"),l(),M((n=a._templateLabel())?6:a._stringLabel()?7:-1,n),l(2),M(a._hasOptionalLabel()?8:-1),l(),M(a._hasErrorLabel()?9:-1)}},dependencies:[ct,_e,pt],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return t})(),Oi=(()=>{class t{templateRef=c(V);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),Pi=(()=>{class t{_template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),ke=(()=>{class t extends ce{_errorStateMatcher=c(De,{skipSelf:!0});_viewContainerRef=c(Ve);_isSelected=Oe.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(ze(()=>this._stepper.selectionChange.pipe(Re(e=>e.selectedStep===this),O(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new ut(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let a=this._errorStateMatcher.isErrorState(e,i),n=!!(e&&e.invalid&&this.interacted);return a||n}static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,re,5),w(n,Pi,5)),i&2){let d;v(d=b())&&(a.stepLabel=d.first),v(d=b())&&(a._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ue([{provide:De,useExisting:t},{provide:ce,useExisting:t}]),P],ngContentSelectors:Zt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,a){i&1&&(ie(),g(0,yi,2,1,"ng-template"))},dependencies:[ht],encapsulation:2,changeDetection:0})}return t})(),Jt=(()=>{class t extends J{_ngZone=c(Qe);_renderer=c(He);_animationsDisabled=dt();_cleanupTransition;_isAnimating=x(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new te;_icons;animationDone=new N;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!c(tt).isBrowser;constructor(){super();let i=c(ee).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(T(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(T(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(O(null),T(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let a=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),n=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(a||n)&&this._animatedContainers.find(m=>m.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ke,5),w(n,Oi,5)),i&2){let d;v(d=b())&&(a._steps=d),v(d=b())&&(a._icons=d)}},viewQuery:function(i,a){if(i&1&&(ne(Ut,5),ne(Si,5)),i&2){let n;v(n=b())&&(a._stepHeader=n),v(n=b())&&(a._animatedContainers=n)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,a){i&2&&(B("aria-orientation",a.orientation),$e("--mat-stepper-animation-duration",a._getAnimationDuration()),L("mat-stepper-horizontal",a.orientation==="horizontal")("mat-stepper-vertical",a.orientation==="vertical")("mat-stepper-label-position-end",a.orientation==="horizontal"&&a.labelPosition=="end")("mat-stepper-label-position-bottom",a.orientation==="horizontal"&&a.labelPosition=="bottom")("mat-stepper-header-position-bottom",a.headerPosition==="bottom")("mat-stepper-animating",a._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ue([{provide:J,useExisting:t}]),P],ngContentSelectors:Zt,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,a){if(i&1&&(ie(),D(0,Ci,1,0),D(1,wi,7,0,"div",2)(2,Ii,2,0),g(3,Ti,1,23,"ng-template",null,0,Ze)),i&2){let n;M(a._isServer?0:-1),l(),M((n=a.orientation)==="horizontal"?1:n==="vertical"?2:-1)}},dependencies:[_e,Ut],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
|
-
`],encapsulation:2,changeDetection:0})}return t})(),Xt=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})(),ei=(()=>{class t extends Kt{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})();var Ri=()=>[5,10,25,100];function zi(t,o){t&1&&(r(0,"mat-header-cell",29),p(1," Path "),s())}function Fi(t,o){if(t&1&&(r(0,"mat-cell",30),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.path," ")}}function Ai(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Source "),s())}function Li(t,o){if(t&1&&(r(0,"mat-cell",32),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.pathSource," ")}}function Hi(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Time Scale "),s())}function Vi(t,o){if(t&1&&(r(0,"mat-cell",33),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.timeScaleFormat," ")}}function Ni(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Duration "),s())}function Bi(t,o){if(t&1&&(r(0,"mat-cell",33),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.period," ")}}function Qi(t,o){t&1&&S(0,"mat-header-cell",34)}function ji(t,o){if(t&1){let e=$();r(0,"mat-cell",35)(1,"button",36),C("click",function(){let a=f(e).$implicit,n=u();return _(n.openDatasetModal(a.uuid))}),p(2,"Edit"),s(),r(3,"button",36),C("click",function(){let a=f(e).$implicit,n=u();return _(n.deleteDataset(a.uuid))}),p(4,"Delete"),s()()}}function $i(t,o){t&1&&S(0,"mat-header-row",37)}function qi(t,o){t&1&&S(0,"mat-row",38)}function Wi(t,o){if(t&1&&(r(0,"mat-row"),p(1),s()),t&2){u();let e=W(9);l(),I(' No data matching the filter "',e.value,'" ')}}function Gi(t,o){t&1&&p(0,"Source Data")}function Ki(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;h("value",e),l(),I(" ",e," ")}}function Ui(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;h("value",e),l(),I(" ",e," ")}}function Zi(t,o){t&1&&p(0,"Sampling")}var ii="[_nghost-%COMP%]{display:block;height:100%;width:100%}.content-area[_ngcontent-%COMP%]{height:calc(100% - 63px);overflow-y:auto;width:100%;scroll-behavior:smooth}.filter[_ngcontent-%COMP%]{margin-bottom:10px}.buttons[_ngcontent-%COMP%]{margin-top:10px}.mat-column-actions[_ngcontent-%COMP%]{text-align:end}.buttons[_ngcontent-%COMP%]{margin-right:5px}.pathCell[_ngcontent-%COMP%], .pathHeader[_ngcontent-%COMP%]{flex:1 1 50%}.dataHeader[_ngcontent-%COMP%], .dataCell[_ngcontent-%COMP%]{flex:1 1 10%;justify-content:center}.actionHeader[_ngcontent-%COMP%]{flex:1 1 20%}.actionCell[_ngcontent-%COMP%]{flex:1 1 20%;justify-content:end}@media screen and (max-width: 750px){.pathHeader[_ngcontent-%COMP%], .dataHeader[_ngcontent-%COMP%]{flex:1 1 30%}.actionHeader[_ngcontent-%COMP%]{display:none}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:before{content:attr(data-label);float:left;padding-right:5px}mat-row[_ngcontent-%COMP%]:after{min-height:auto;padding-bottom:10px}.dataRow[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.dataCell[_ngcontent-%COMP%], .actionCell[_ngcontent-%COMP%]{margin-left:24px}}",bn=(()=>{class t{paginator=fe(pe);sort=fe(de);pageTitle="Datasets";selectedDataset;tableData=new $t([]);displayedColumns=["path","pathSource","timeScaleFormat","period","actions"];dialog=c(gt);cdRef=c(Z);dsService=c(Pt);ngOnInit(){this.loadDatasets()}loadDatasets(){this.tableData.data=this.dsService.list().filter(e=>e.editable!==!1)}ngAfterViewInit(){this.tableData.paginator=this.paginator(),this.tableData.sort=this.sort(),this.tableData.filter="",this.cdRef.detectChanges()}openDatasetModal(e){let i;if(e){let a=Je(this.tableData.data.find(n=>n.uuid===e));a&&(i=this.dialog.open(ti,{data:a,disableClose:!1}))}else i=this.dialog.open(ti,{disableClose:!1});i.afterClosed().subscribe(a=>{a===void 0||!a||(a.label=`${a.path}, Source: ${a.pathSource}, Scale: ${a.timeScaleFormat}, Period: ${a.period} `,a.uuid?this.editDataset(a):this.addDataset(a),this.loadDatasets())})}addDataset(e){this.dsService.create(e.path,e.pathSource,e.timeScaleFormat,e.period,e.label,!0,!0),this.loadDatasets()}editDataset(e){this.dsService.edit(e),this.loadDatasets()}deleteDataset(e){this.dsService.remove(e),this.loadDatasets()}trackByUuid(e,i){return`${i.uuid}`}applyFilter(e){let i=e.target.value;this.tableData.filter=i.trim().toLowerCase(),this.tableData.paginator&&this.tableData.paginator.firstPage()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets"]],viewQuery:function(i,a){i&1&&(me(a.paginator,pe,5),me(a.sort,de,5)),i&2&&je(2)},decls:36,vars:7,consts:[["existingDataSet","ngForm"],["input",""],[1,"content-area"],["name","existingDataSet",1,"page-content-wrapper","content-area"],[1,"mat-card-subtitle","description-text"],[1,"filter"],["matInput","","placeholder","Ex: navigation","value","",3,"keyup"],[1,"mat-elevation-z8","full-width","table-container"],["matSort","","matSortActive","path","matSortDirection","asc",1,"full-display",3,"dataSource","trackBy"],["matColumnDef","path"],["class","pathHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","pathCell","data-label","Path: ",4,"matCellDef"],["matColumnDef","pathSource"],["class","dataHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","dataCell","data-label","Source: ",4,"matCellDef"],["matColumnDef","timeScaleFormat"],["class","dataCell","data-label","Scale: ",4,"matCellDef"],["matColumnDef","period"],["matColumnDef","actions"],["class","actionHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","actionCell",4,"matCellDef"],["class","headerRow",4,"matHeaderRowDef","matHeaderRowDefSticky"],["class","dataRow",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],[1,"paginator"],["pageSize","5",3,"pageSizeOptions"],[1,"formActionFooter"],[1,"formActionDivider"],["mat-flat-button","",1,"formActionButton",3,"click"],["mat-sort-header","",1,"pathHeader"],["data-label","Path: ",1,"pathCell"],["mat-sort-header","",1,"dataHeader"],["data-label","Source: ",1,"dataCell"],["data-label","Scale: ",1,"dataCell"],["mat-sort-header","",1,"actionHeader"],[1,"actionCell"],["mat-raised-button","","color","accent",1,"small-button","buttons",3,"click"],[1,"headerRow"],[1,"dataRow"]],template:function(i,a){if(i&1){let n=$();r(0,"div",2)(1,"form",3,0)(3,"p",4),p(4,"Datasets are background processes that record path values over time. Combine with the Data Chart widget they offer data visualization graphs. Care should be applied to manage Datasets and evaluate system resources usage. "),s(),r(5,"mat-form-field",5)(6,"mat-label"),p(7,"Filter"),s(),r(8,"input",6,1),C("keyup",function(m){return f(n),_(a.applyFilter(m))}),s()(),r(10,"div",7)(11,"mat-table",8),Q(12,9),g(13,zi,2,0,"mat-header-cell",10)(14,Fi,2,1,"mat-cell",11),j(),Q(15,12),g(16,Ai,2,0,"mat-header-cell",13)(17,Li,2,1,"mat-cell",14),j(),Q(18,15),g(19,Hi,2,0,"mat-header-cell",13)(20,Vi,2,1,"mat-cell",16),j(),Q(21,17),g(22,Ni,2,0,"mat-header-cell",13)(23,Bi,2,1,"mat-cell",16),j(),Q(24,18),g(25,Qi,1,0,"mat-header-cell",19)(26,ji,5,0,"mat-cell",20),j(),g(27,$i,1,0,"mat-header-row",21)(28,qi,1,0,"mat-row",22)(29,Wi,2,1,"mat-row",23),s()(),r(30,"div",24),S(31,"mat-paginator",25),s(),r(32,"div",26),S(33,"mat-divider",27),r(34,"button",28),C("click",function(){return f(n),_(a.openDatasetModal())}),p(35,"Add"),s()()()()}i&2&&(l(11),h("dataSource",a.tableData)("trackBy",a.trackByUuid),l(16),h("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",!0),l(),h("matRowDefColumns",a.displayedColumns),l(3),h("pageSizeOptions",We(6,Ri)))},dependencies:[Se,ye,ve,be,xe,Ce,Me,Rt,de,At,Ft,Lt,qt,zt,Ht,ge,Vt,Bt,Nt,Qt,jt,pe,we],styles:[ii]})}return t})(),ti=(()=>{class t{SignalKDataService=c(Xe);dialogRef=c(ft);dataset=c(_t);titleDialog=null;newDataset={uuid:null,path:null,pathSource:null,baseUnit:null,timeScaleFormat:"second",period:10,label:null};formDataset=null;availablePaths=[];availableSources=[];filterSelfPaths=!0;ngOnInit(){if(this.dataset){this.titleDialog="Edit Dataset",this.formDataset=this.dataset;let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)))}else this.titleDialog="Add Dataset",this.formDataset=this.newDataset;this.availablePaths=this.SignalKDataService.getPathsByType("number").sort()}changePath(){let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)),this.formDataset.pathSource="default")}closeForm(){this.dialogRef.close(this.formDataset)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets-modal"]],decls:67,vars:11,consts:[["datasetForm","ngForm"],["mat-dialog-title",""],["name","datasetForm",3,"ngSubmit"],["matStepLabel",""],[1,"tab-content"],[1,"full-width"],["placeholder","Select data path","name","selectedPath","required","",3,"ngModelChange","ngModel"],[3,"value"],["name","filterSelfPaths",3,"ngModelChange","ngModel"],["placeholder","Select data source","name","selectedSource","required","",3,"ngModelChange","ngModel"],[1,"buttons"],["type","button","mat-raised-button","","color","accent","matStepperNext","",3,"disabled"],[1,"mat-subtitle-1"],[1,"flex-container",2,"margin-top","10px"],[1,"flex-field-50"],["placeholder","Select dataset time scale","name","timeScaleFormat","required","",3,"ngModelChange","ngModel"],["value","hour"],["value","minute"],["value","second"],["matInput","","type","number","min","1","max","60","step","1","placeholder","Enter or select number...","name","period","required","",3,"ngModelChange","ngModel"],[2,"margin-top","10px"],["type","button","mat-raised-button","","color","accent","matStepperPrevious","",1,"buttons"],["mat-raised-button","","type","submit","color","accent",1,"buttons",3,"disabled"]],template:function(i,a){if(i&1){let n=$();r(0,"h6",1),p(1),s(),r(2,"mat-dialog-content")(3,"form",2,0),C("ngSubmit",function(){return f(n),_(a.closeForm())}),r(5,"mat-horizontal-stepper")(6,"mat-step"),g(7,Gi,1,0,"ng-template",3),r(8,"div",4)(9,"mat-form-field",5)(10,"mat-label"),p(11,"Signal K Path"),s(),r(12,"mat-select",6),U("ngModelChange",function(m){return f(n),K(a.formDataset.path,m)||(a.formDataset.path=m),_(m)}),C("ngModelChange",function(){return f(n),_(a.changePath())}),z(13,Ki,2,2,"mat-option",7,R),Ke(15,"filterSelf"),s()(),r(16,"mat-checkbox",8),U("ngModelChange",function(m){return f(n),K(a.filterSelfPaths,m)||(a.filterSelfPaths=m),_(m)}),p(17," Restrict to own vessel "),s(),S(18,"br")(19,"br"),r(20,"mat-form-field",5)(21,"mat-label"),p(22,"Source"),s(),r(23,"mat-select",9),U("ngModelChange",function(m){return f(n),K(a.formDataset.pathSource,m)||(a.formDataset.pathSource=m),_(m)}),z(24,Ui,2,2,"mat-option",7,R),s()()(),S(26,"mat-divider"),r(27,"div",10)(28,"button",11),p(29," Next "),s()()(),r(30,"mat-step"),g(31,Zi,1,0,"ng-template",3),r(32,"div",4)(33,"span",12),p(34,"Time Scales"),s(),r(35,"div",13)(36,"div",14)(37,"mat-form-field",5)(38,"mat-label"),p(39,"Scale"),s(),r(40,"mat-select",15),U("ngModelChange",function(m){return f(n),K(a.formDataset.timeScaleFormat,m)||(a.formDataset.timeScaleFormat=m),_(m)}),r(41,"mat-option",16),p(42,"Hours"),s(),r(43,"mat-option",17),p(44,"Minutes"),s(),r(45,"mat-option",18),p(46,"Seconds"),s()()()(),r(47,"div",14)(48,"mat-form-field",5)(49,"mat-label"),p(50,"Duration"),s(),r(51,"input",19),U("ngModelChange",function(m){return f(n),K(a.formDataset.period,m)||(a.formDataset.period=m),_(m)}),s()()()(),r(52,"p",20),p(53,"Time scales define the data sampling rate and overall Dataset level of precision. Select a Time Scale that is targeted to your intended usage. Shorter Time Scales have higher system resources costs, for both the data capture and widget rendering process. "),s(),r(54,"ul")(55,"li"),p(56,"Hours: per minute sampling rate. Intended for long sampling periods when slow refresh rate is acceptable and system resource usage should be minimized. Grafana is the perfect alternative to this Time Scale. "),s(),r(57,"li"),p(58,"Minutes: per second sampling rate. Meant for trends observations such wind speed, depth, solar power, voltage, etc. "),s(),r(59,"li"),p(60,"Secondes: 200ms sampling rate. Intended for use cases where user may act upon realtime information such as when racing. "),s()()(),S(61,"mat-divider"),r(62,"div",10)(63,"button",21),p(64," Back "),s(),r(65,"button",22),p(66," Save "),s()()()()()()}if(i&2){let n=W(4);l(),I(" ",a.titleDialog," "),l(11),G("ngModel",a.formDataset.path),l(),F(Ue(15,8,a.availablePaths,a.filterSelfPaths)),l(3),G("ngModel",a.filterSelfPaths),l(7),G("ngModel",a.formDataset.pathSource),l(),F(a.availableSources),l(4),h("disabled",!a.formDataset.path),l(12),G("ngModel",a.formDataset.timeScaleFormat),l(11),G("ngModel",a.formDataset.period),l(14),h("disabled",!n.valid)}},dependencies:[Ot,vt,bt,Se,ye,yt,Dt,Ct,ve,Et,wt,Mt,xt,be,Jt,ke,re,xe,Ce,Tt,It,kt,we,ge,Xt,Me,ei,Wt],styles:[ii]})}return t})();export{bn as a,ti as b};
|
|
1
|
+
import{a as kt,e as Ot,f as Pt}from"./chunk-3NNJBUG2.js";import{a as Rt,b as zt,c as Ft,d as At,e as Lt,f as Ht,g as Vt,h as Nt,i as Bt,j as Qt,k as jt,m as $t,n as pe,p as de,q as qt}from"./chunk-MZ4HV3HJ.js";import{f as It,n as Tt}from"./chunk-EQYME7LZ.js";import{a as we}from"./chunk-25PZU2O2.js";import{D as yt,G as St,I as Ct,J as ve,M as be,P as xt,Q as ye,R as Dt,X as Mt,Y as wt,Z as Et,aa as Se,da as Ce,k as Je,ka as xe,ma as De,oa as Me,p as pt,t as ft,u as _t,w as gt,y as vt,z as bt}from"./chunk-RO6EAWVQ.js";import{$b as L,$d as dt,A as Re,Ab as F,Bb as h,Cb as r,Cd as tt,Db as s,Eb as S,Ed as it,Fa as x,Fc as fe,Fd as at,Ib as Q,Ic as Z,Ja as Le,Jb as j,Ka as X,Kb as A,Kc as Y,Lb as $,Lc as Ye,Ma as ee,Mb as q,Na as te,Nb as C,Od as nt,Pb as u,Pd as rt,Qb as ie,Rb as ae,Rd as ot,Sb as w,Tb as ne,Ub as v,Vb as b,Vd as st,Wa as l,Xa as V,Xb as me,Xd as lt,Yb as je,Yc as _e,Za as He,Zb as W,_b as $e,ab as Ve,bc as se,cc as p,dc as k,ea as O,eb as E,ec as I,ee as ct,fa as ze,fe as mt,g as Oe,ga as T,gb as y,hb as Ne,hc as G,ib as P,ic as K,ie as ge,jc as U,kb as g,lb as Be,m as oe,ma as Fe,mb as N,nb as Qe,ne as ut,oc as qe,pa as Ae,pc as ue,qc as We,ra as c,rc as he,re as ht,sc as Ge,t as Pe,tc as Ke,ub as B,vb as D,vc as Ue,vd as Xe,wa as f,wb as M,wc as Ze,xa as _,xd as et,yb as R,zb as z,zc as le}from"./chunk-FYD5M4IT.js";var Wt=(()=>{class t{transform(e,i){return!e||!e.length?[]:i?e.filter(a=>a.includes("self")):e}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Ne({name:"filterSelf",type:t,pure:!0})}return t})();var ri=["*"];function oi(t,o){t&1&&ae(0)}var Ie=(()=>{class t{_elementRef=c(ee);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),Te=(()=>{class t{template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var H={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},si=new Ae("STEPPER_GLOBAL_OPTIONS"),ce=(()=>{class t{_stepperOptions;_stepper=c(J);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=x(!1);interactedStream=new N;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=x(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=x(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=x(null);index=x(-1);isSelected=le(()=>this._stepper.selectedIndex===this.index());indicatorType=le(()=>{let e=this.isSelected(),i=this.completed,a=this._state()??H.NUMBER,n=this._editable();return this._showError()&&this.hasError&&!e?H.ERROR:this._displayDefaultIndicatorType?!i||e?H.NUMBER:n?H.EDIT:H.DONE:i&&!e?H.DONE:i&&e?a:n&&e?H.EDIT:a});isNavigable=le(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=x(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=c(si,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,Te,5),w(n,St,5)),i&2){let d;v(d=b())&&(a.stepLabel=d.first),v(d=b())&&(a._childForms=d)}},viewQuery:function(i,a){if(i&1&&ne(V,7),i&2){let n;v(n=b())&&(a.content=n.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",Y],optional:[2,"optional","optional",Y],completed:[2,"completed","completed",Y],hasError:[2,"hasError","hasError",Y]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Le],ngContentSelectors:ri,decls:1,vars:0,template:function(i,a){i&1&&(ie(),Be(0,oi,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),J=(()=>{class t{_dir=c(st,{optional:!0});_changeDetectorRef=c(Z);_elementRef=c(ee);_destroyed=new oe;_keyManager;_steps;steps=new te;_stepHeader;_sortedHeaders=new te;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=x(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new N;selectedIndexChange=new N;_groupId=c(nt).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(O(this._steps),T(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,a)=>i.index.set(a)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(O(this._stepHeader),T(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new ot(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:Pe()).pipe(O(this._layoutDirection()),T(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),a=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:a,selectedStep:i[e],previouslySelectedStep:i[a]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=rt(e),a=e.keyCode,n=this._keyManager;n?.activeItemIndex!=null&&!i&&(a===32||a===13)?(this.selectedIndex=n.activeItemIndex,e.preventDefault()):n?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Xe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ce,5),w(n,Ie,5)),i&2){let d;v(d=b())&&(a._steps=d),v(d=b())&&(a._stepHeader=d)}},inputs:{linear:[2,"linear","linear",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Ye],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),Gt=(()=>{class t{_stepper=c(J);type="submit";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.next()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})(),Kt=(()=>{class t{_stepper=c(J);type="button";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,a){i&1&&C("click",function(){return a._stepper.previous()}),i&2&&q("type",a.type)},inputs:{type:"type"}})}return t})();var li=(t,o,e)=>({index:t,active:o,optional:e});function pi(t,o){if(t&1&&A(0,2),t&2){let e=u();h("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",Ge(2,li,e.index,e.active,e.optional))}}function di(t,o){if(t&1&&(r(0,"span",7),p(1),s()),t&2){let e=u(2);l(),k(e._getDefaultTextForState(e.state))}}function ci(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=u(3);l(),k(e._intl.completedLabel)}}function mi(t,o){if(t&1&&(r(0,"span",8),p(1),s()),t&2){let e=u(3);l(),k(e._intl.editableLabel)}}function ui(t,o){if(t&1&&(D(0,ci,2,1,"span",8)(1,mi,2,1,"span",8),r(2,"mat-icon",7),p(3),s()),t&2){let e=u(2);M(e.state==="done"?0:e.state==="edit"?1:-1),l(3),k(e._getDefaultTextForState(e.state))}}function hi(t,o){if(t&1&&D(0,di,2,1,"span",7)(1,ui,4,2),t&2){let e,i=u();M((e=i.state)==="number"?0:1)}}function fi(t,o){t&1&&(r(0,"div",4),A(1,9),s()),t&2&&(l(),h("ngTemplateOutlet",o.template))}function _i(t,o){if(t&1&&(r(0,"div",4),p(1),s()),t&2){let e=u();l(),k(e.label)}}function gi(t,o){if(t&1&&(r(0,"div",5),p(1),s()),t&2){let e=u();l(),k(e._intl.optionalLabel)}}function vi(t,o){if(t&1&&(r(0,"div",6),p(1),s()),t&2){let e=u();l(),k(e.errorMessage)}}var Zt=["*"];function bi(t,o){}function yi(t,o){if(t&1&&(ae(0),g(1,bi,0,0,"ng-template",0)),t&2){let e=u();l(),h("cdkPortalOutlet",e._portal)}}var Si=["animatedContainer"],Yt=t=>({step:t});function Ci(t,o){t&1&&ae(0)}function xi(t,o){t&1&&S(0,"div",7)}function Di(t,o){if(t&1&&(A(0,6),D(1,xi,1,0,"div",7)),t&2){let e=o.$implicit,i=o.$index,a=o.$count;u(2);let n=W(4);h("ngTemplateOutlet",n)("ngTemplateOutletContext",he(3,Yt,e)),l(),M(i!==a-1?1:-1)}}function Mi(t,o){if(t&1&&(r(0,"div",8,1),A(2,9),s()),t&2){let e=o.$implicit,i=o.$index,a=u(2);se("mat-horizontal-stepper-content-"+a._getAnimationDirection(i)),h("id",a._getStepContentId(i)),B("aria-labelledby",a._getStepLabelId(i))("inert",a.selectedIndex===i?null:""),l(2),h("ngTemplateOutlet",e.content)}}function wi(t,o){if(t&1&&(r(0,"div",2)(1,"div",3),z(2,Di,2,5,null,null,R),s(),r(4,"div",4),z(5,Mi,3,6,"div",5,R),s()()),t&2){let e=u();l(2),F(e.steps),l(3),F(e.steps)}}function Ei(t,o){if(t&1&&(r(0,"div",10),A(1,6),r(2,"div",11,1)(4,"div",12)(5,"div",13),A(6,9),s()()()()),t&2){let e=o.$implicit,i=o.$index,a=o.$index,n=o.$count,d=u(2),m=W(4);l(),h("ngTemplateOutlet",m)("ngTemplateOutletContext",he(10,Yt,e)),l(),L("mat-stepper-vertical-line",a!==n-1)("mat-vertical-content-container-active",d.selectedIndex===i),B("inert",d.selectedIndex===i?null:""),l(2),h("id",d._getStepContentId(i)),B("aria-labelledby",d._getStepLabelId(i)),l(2),h("ngTemplateOutlet",e.content)}}function Ii(t,o){if(t&1&&z(0,Ei,7,12,"div",10,R),t&2){let e=u();F(e.steps)}}function Ti(t,o){if(t&1){let e=$();r(0,"mat-step-header",14),C("click",function(){let a=f(e).step;return _(a.select())})("keydown",function(a){f(e);let n=u();return _(n._onKeydown(a))}),s()}if(t&2){let e=o.step,i=u();L("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),h("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),B("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var re=(()=>{class t extends Te{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[P]})}return t})(),ki=(()=>{class t{changes=new oe;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=Fe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ut=(()=>{class t extends Ie{_intl=c(ki);_focusMonitor=c(tt);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=c(it);e.load(mt),e.load(at);let i=c(Z);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof re?null:this.label}_templateLabel(){return this.label instanceof re?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,a){i&2&&(se("mat-"+(a.color||"primary")),L("mat-step-header-empty-label",a._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[P],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,a){if(i&1&&(S(0,"div",0),r(1,"div")(2,"div",1),D(3,pi,1,6,"ng-container",2)(4,hi,2,1),s()(),r(5,"div",3),D(6,fi,2,1,"div",4)(7,_i,2,1,"div",4),D(8,gi,2,1,"div",5),D(9,vi,2,1,"div",6),s()),i&2){let n;h("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disableRipple),l(),se(qe("mat-step-icon-state-",a.state," mat-step-icon")),L("mat-step-icon-selected",a.selected),l(2),M(a.iconOverrides&&a.iconOverrides[a.state]?3:4),l(2),L("mat-step-label-active",a.active)("mat-step-label-selected",a.selected)("mat-step-label-error",a.state=="error"),l(),M((n=a._templateLabel())?6:a._stringLabel()?7:-1,n),l(2),M(a._hasOptionalLabel()?8:-1),l(),M(a._hasErrorLabel()?9:-1)}},dependencies:[ct,_e,lt],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return t})(),Oi=(()=>{class t{templateRef=c(V);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),Pi=(()=>{class t{_template=c(V);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),ke=(()=>{class t extends ce{_errorStateMatcher=c(De,{skipSelf:!0});_viewContainerRef=c(Ve);_isSelected=Oe.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(ze(()=>this._stepper.selectionChange.pipe(Re(e=>e.selectedStep===this),O(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new ut(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let a=this._errorStateMatcher.isErrorState(e,i),n=!!(e&&e.invalid&&this.interacted);return a||n}static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275cmp=E({type:t,selectors:[["mat-step"]],contentQueries:function(i,a,n){if(i&1&&(w(n,re,5),w(n,Pi,5)),i&2){let d;v(d=b())&&(a.stepLabel=d.first),v(d=b())&&(a._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ue([{provide:De,useExisting:t},{provide:ce,useExisting:t}]),P],ngContentSelectors:Zt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,a){i&1&&(ie(),g(0,yi,2,1,"ng-template"))},dependencies:[ht],encapsulation:2,changeDetection:0})}return t})(),Jt=(()=>{class t extends J{_ngZone=c(Qe);_renderer=c(He);_animationsDisabled=dt();_cleanupTransition;_isAnimating=x(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new te;_icons;animationDone=new N;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!c(et).isBrowser;constructor(){super();let i=c(ee).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(T(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(T(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(O(null),T(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let a=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),n=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(a||n)&&this._animatedContainers.find(m=>m.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,a,n){if(i&1&&(w(n,ke,5),w(n,Oi,5)),i&2){let d;v(d=b())&&(a._steps=d),v(d=b())&&(a._icons=d)}},viewQuery:function(i,a){if(i&1&&(ne(Ut,5),ne(Si,5)),i&2){let n;v(n=b())&&(a._stepHeader=n),v(n=b())&&(a._animatedContainers=n)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,a){i&2&&(B("aria-orientation",a.orientation),$e("--mat-stepper-animation-duration",a._getAnimationDuration()),L("mat-stepper-horizontal",a.orientation==="horizontal")("mat-stepper-vertical",a.orientation==="vertical")("mat-stepper-label-position-end",a.orientation==="horizontal"&&a.labelPosition=="end")("mat-stepper-label-position-bottom",a.orientation==="horizontal"&&a.labelPosition=="bottom")("mat-stepper-header-position-bottom",a.headerPosition==="bottom")("mat-stepper-animating",a._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ue([{provide:J,useExisting:t}]),P],ngContentSelectors:Zt,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,a){if(i&1&&(ie(),D(0,Ci,1,0),D(1,wi,7,0,"div",2)(2,Ii,2,0),g(3,Ti,1,23,"ng-template",null,0,Ze)),i&2){let n;M(a._isServer?0:-1),l(),M((n=a.orientation)==="horizontal"?1:n==="vertical"?2:-1)}},dependencies:[_e,Ut],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
|
+
`],encapsulation:2,changeDetection:0})}return t})(),Xt=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})(),ei=(()=>{class t extends Kt{static \u0275fac=(()=>{let e;return function(a){return(e||(e=X(t)))(a||t)}})();static \u0275dir=y({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(i,a){i&2&&q("type",a.type)},features:[P]})}return t})();var Ri=()=>[5,10,25,100];function zi(t,o){t&1&&(r(0,"mat-header-cell",29),p(1," Path "),s())}function Fi(t,o){if(t&1&&(r(0,"mat-cell",30),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.path," ")}}function Ai(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Source "),s())}function Li(t,o){if(t&1&&(r(0,"mat-cell",32),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.pathSource," ")}}function Hi(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Time Scale "),s())}function Vi(t,o){if(t&1&&(r(0,"mat-cell",33),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.timeScaleFormat," ")}}function Ni(t,o){t&1&&(r(0,"mat-header-cell",31),p(1," Duration "),s())}function Bi(t,o){if(t&1&&(r(0,"mat-cell",33),p(1),s()),t&2){let e=o.$implicit;l(),I(" ",e.period," ")}}function Qi(t,o){t&1&&S(0,"mat-header-cell",34)}function ji(t,o){if(t&1){let e=$();r(0,"mat-cell",35)(1,"button",36),C("click",function(){let a=f(e).$implicit,n=u();return _(n.openDatasetModal(a.uuid))}),p(2,"Edit"),s(),r(3,"button",36),C("click",function(){let a=f(e).$implicit,n=u();return _(n.deleteDataset(a.uuid))}),p(4,"Delete"),s()()}}function $i(t,o){t&1&&S(0,"mat-header-row",37)}function qi(t,o){t&1&&S(0,"mat-row",38)}function Wi(t,o){if(t&1&&(r(0,"mat-row"),p(1),s()),t&2){u();let e=W(9);l(),I(' No data matching the filter "',e.value,'" ')}}function Gi(t,o){t&1&&p(0,"Source Data")}function Ki(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;h("value",e),l(),I(" ",e," ")}}function Ui(t,o){if(t&1&&(r(0,"mat-option",7),p(1),s()),t&2){let e=o.$implicit;h("value",e),l(),I(" ",e," ")}}function Zi(t,o){t&1&&p(0,"Sampling")}var ii="[_nghost-%COMP%]{display:block;height:100%;width:100%}.content-area[_ngcontent-%COMP%]{height:calc(100% - 63px);overflow-y:auto;width:100%;scroll-behavior:smooth}.filter[_ngcontent-%COMP%]{margin-bottom:10px}.buttons[_ngcontent-%COMP%]{margin-top:10px}.mat-column-actions[_ngcontent-%COMP%]{text-align:end}.buttons[_ngcontent-%COMP%]{margin-right:5px}.pathCell[_ngcontent-%COMP%], .pathHeader[_ngcontent-%COMP%]{flex:1 1 50%}.dataHeader[_ngcontent-%COMP%], .dataCell[_ngcontent-%COMP%]{flex:1 1 10%;justify-content:center}.actionHeader[_ngcontent-%COMP%]{flex:1 1 20%}.actionCell[_ngcontent-%COMP%]{flex:1 1 20%;justify-content:end}@media screen and (max-width: 750px){.pathHeader[_ngcontent-%COMP%], .dataHeader[_ngcontent-%COMP%]{flex:1 1 30%}.actionHeader[_ngcontent-%COMP%]{display:none}.mat-mdc-table[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:before{content:attr(data-label);float:left;padding-right:5px}mat-row[_ngcontent-%COMP%]:after{min-height:auto;padding-bottom:10px}.dataRow[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}.dataCell[_ngcontent-%COMP%], .actionCell[_ngcontent-%COMP%]{margin-left:24px}}",bn=(()=>{class t{paginator=fe(pe);sort=fe(de);pageTitle="Datasets";selectedDataset;tableData=new $t([]);displayedColumns=["path","pathSource","timeScaleFormat","period","actions"];dialog=c(gt);cdRef=c(Z);dsService=c(Pt);ngOnInit(){this.loadDatasets()}loadDatasets(){this.tableData.data=this.dsService.list().filter(e=>e.editable!==!1)}ngAfterViewInit(){this.tableData.paginator=this.paginator(),this.tableData.sort=this.sort(),this.tableData.filter="",this.cdRef.detectChanges()}openDatasetModal(e){let i;if(e){let a=Je(this.tableData.data.find(n=>n.uuid===e));a&&(i=this.dialog.open(ti,{data:a,disableClose:!1}))}else i=this.dialog.open(ti,{disableClose:!1});i.afterClosed().subscribe(a=>{a===void 0||!a||(a.label=`${a.path}, Source: ${a.pathSource}, Scale: ${a.timeScaleFormat}, Period: ${a.period} `,a.uuid?this.editDataset(a):this.addDataset(a),this.loadDatasets())})}addDataset(e){this.dsService.create(e.path,e.pathSource,e.timeScaleFormat,e.period,e.label,!0,!0),this.loadDatasets()}editDataset(e){this.dsService.edit(e),this.loadDatasets()}deleteDataset(e){this.dsService.remove(e),this.loadDatasets()}trackByUuid(e,i){return`${i.uuid}`}applyFilter(e){let i=e.target.value;this.tableData.filter=i.trim().toLowerCase(),this.tableData.paginator&&this.tableData.paginator.firstPage()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets"]],viewQuery:function(i,a){i&1&&(me(a.paginator,pe,5),me(a.sort,de,5)),i&2&&je(2)},decls:36,vars:7,consts:[["existingDataSet","ngForm"],["input",""],[1,"content-area"],["name","existingDataSet",1,"page-content-wrapper","content-area"],[1,"mat-card-subtitle","description-text"],[1,"filter"],["matInput","","placeholder","Ex: navigation","value","",3,"keyup"],[1,"mat-elevation-z8","full-width","table-container"],["matSort","","matSortActive","path","matSortDirection","asc",1,"full-display",3,"dataSource","trackBy"],["matColumnDef","path"],["class","pathHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","pathCell","data-label","Path: ",4,"matCellDef"],["matColumnDef","pathSource"],["class","dataHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","dataCell","data-label","Source: ",4,"matCellDef"],["matColumnDef","timeScaleFormat"],["class","dataCell","data-label","Scale: ",4,"matCellDef"],["matColumnDef","period"],["matColumnDef","actions"],["class","actionHeader","mat-sort-header","",4,"matHeaderCellDef"],["class","actionCell",4,"matCellDef"],["class","headerRow",4,"matHeaderRowDef","matHeaderRowDefSticky"],["class","dataRow",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],[1,"paginator"],["pageSize","5",3,"pageSizeOptions"],[1,"formActionFooter"],[1,"formActionDivider"],["mat-flat-button","",1,"formActionButton",3,"click"],["mat-sort-header","",1,"pathHeader"],["data-label","Path: ",1,"pathCell"],["mat-sort-header","",1,"dataHeader"],["data-label","Source: ",1,"dataCell"],["data-label","Scale: ",1,"dataCell"],["mat-sort-header","",1,"actionHeader"],[1,"actionCell"],["mat-raised-button","","color","accent",1,"small-button","buttons",3,"click"],[1,"headerRow"],[1,"dataRow"]],template:function(i,a){if(i&1){let n=$();r(0,"div",2)(1,"form",3,0)(3,"p",4),p(4,"Datasets are background processes that record path values over time. Combine with the Data Chart widget they offer data visualization graphs. Care should be applied to manage Datasets and evaluate system resources usage. "),s(),r(5,"mat-form-field",5)(6,"mat-label"),p(7,"Filter"),s(),r(8,"input",6,1),C("keyup",function(m){return f(n),_(a.applyFilter(m))}),s()(),r(10,"div",7)(11,"mat-table",8),Q(12,9),g(13,zi,2,0,"mat-header-cell",10)(14,Fi,2,1,"mat-cell",11),j(),Q(15,12),g(16,Ai,2,0,"mat-header-cell",13)(17,Li,2,1,"mat-cell",14),j(),Q(18,15),g(19,Hi,2,0,"mat-header-cell",13)(20,Vi,2,1,"mat-cell",16),j(),Q(21,17),g(22,Ni,2,0,"mat-header-cell",13)(23,Bi,2,1,"mat-cell",16),j(),Q(24,18),g(25,Qi,1,0,"mat-header-cell",19)(26,ji,5,0,"mat-cell",20),j(),g(27,$i,1,0,"mat-header-row",21)(28,qi,1,0,"mat-row",22)(29,Wi,2,1,"mat-row",23),s()(),r(30,"div",24),S(31,"mat-paginator",25),s(),r(32,"div",26),S(33,"mat-divider",27),r(34,"button",28),C("click",function(){return f(n),_(a.openDatasetModal())}),p(35,"Add"),s()()()()}i&2&&(l(11),h("dataSource",a.tableData)("trackBy",a.trackByUuid),l(16),h("matHeaderRowDef",a.displayedColumns)("matHeaderRowDefSticky",!0),l(),h("matRowDefColumns",a.displayedColumns),l(3),h("pageSizeOptions",We(6,Ri)))},dependencies:[Se,ye,ve,be,xe,Ce,Me,Rt,de,At,Ft,Lt,qt,zt,Ht,ge,Vt,Bt,Nt,Qt,jt,pe,we],styles:[ii]})}return t})(),ti=(()=>{class t{SignalKDataService=c(pt);dialogRef=c(ft);dataset=c(_t);titleDialog=null;newDataset={uuid:null,path:null,pathSource:null,baseUnit:null,timeScaleFormat:"second",period:10,label:null};formDataset=null;availablePaths=[];availableSources=[];filterSelfPaths=!0;ngOnInit(){if(this.dataset){this.titleDialog="Edit Dataset",this.formDataset=this.dataset;let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)))}else this.titleDialog="Add Dataset",this.formDataset=this.newDataset;this.availablePaths=this.SignalKDataService.getPathsByType("number").sort()}changePath(){let e=this.SignalKDataService.getPathObject(this.formDataset.path);e!==null&&(this.availableSources=["default"].concat(Object.keys(e.sources)),this.formDataset.pathSource="default")}closeForm(){this.dialogRef.close(this.formDataset)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=E({type:t,selectors:[["settings-datasets-modal"]],decls:67,vars:11,consts:[["datasetForm","ngForm"],["mat-dialog-title",""],["name","datasetForm",3,"ngSubmit"],["matStepLabel",""],[1,"tab-content"],[1,"full-width"],["placeholder","Select data path","name","selectedPath","required","",3,"ngModelChange","ngModel"],[3,"value"],["name","filterSelfPaths",3,"ngModelChange","ngModel"],["placeholder","Select data source","name","selectedSource","required","",3,"ngModelChange","ngModel"],[1,"buttons"],["type","button","mat-raised-button","","color","accent","matStepperNext","",3,"disabled"],[1,"mat-subtitle-1"],[1,"flex-container",2,"margin-top","10px"],[1,"flex-field-50"],["placeholder","Select dataset time scale","name","timeScaleFormat","required","",3,"ngModelChange","ngModel"],["value","hour"],["value","minute"],["value","second"],["matInput","","type","number","min","1","max","60","step","1","placeholder","Enter or select number...","name","period","required","",3,"ngModelChange","ngModel"],[2,"margin-top","10px"],["type","button","mat-raised-button","","color","accent","matStepperPrevious","",1,"buttons"],["mat-raised-button","","type","submit","color","accent",1,"buttons",3,"disabled"]],template:function(i,a){if(i&1){let n=$();r(0,"h6",1),p(1),s(),r(2,"mat-dialog-content")(3,"form",2,0),C("ngSubmit",function(){return f(n),_(a.closeForm())}),r(5,"mat-horizontal-stepper")(6,"mat-step"),g(7,Gi,1,0,"ng-template",3),r(8,"div",4)(9,"mat-form-field",5)(10,"mat-label"),p(11,"Signal K Path"),s(),r(12,"mat-select",6),U("ngModelChange",function(m){return f(n),K(a.formDataset.path,m)||(a.formDataset.path=m),_(m)}),C("ngModelChange",function(){return f(n),_(a.changePath())}),z(13,Ki,2,2,"mat-option",7,R),Ke(15,"filterSelf"),s()(),r(16,"mat-checkbox",8),U("ngModelChange",function(m){return f(n),K(a.filterSelfPaths,m)||(a.filterSelfPaths=m),_(m)}),p(17," Restrict to own vessel "),s(),S(18,"br")(19,"br"),r(20,"mat-form-field",5)(21,"mat-label"),p(22,"Source"),s(),r(23,"mat-select",9),U("ngModelChange",function(m){return f(n),K(a.formDataset.pathSource,m)||(a.formDataset.pathSource=m),_(m)}),z(24,Ui,2,2,"mat-option",7,R),s()()(),S(26,"mat-divider"),r(27,"div",10)(28,"button",11),p(29," Next "),s()()(),r(30,"mat-step"),g(31,Zi,1,0,"ng-template",3),r(32,"div",4)(33,"span",12),p(34,"Time Scales"),s(),r(35,"div",13)(36,"div",14)(37,"mat-form-field",5)(38,"mat-label"),p(39,"Scale"),s(),r(40,"mat-select",15),U("ngModelChange",function(m){return f(n),K(a.formDataset.timeScaleFormat,m)||(a.formDataset.timeScaleFormat=m),_(m)}),r(41,"mat-option",16),p(42,"Hours"),s(),r(43,"mat-option",17),p(44,"Minutes"),s(),r(45,"mat-option",18),p(46,"Seconds"),s()()()(),r(47,"div",14)(48,"mat-form-field",5)(49,"mat-label"),p(50,"Duration"),s(),r(51,"input",19),U("ngModelChange",function(m){return f(n),K(a.formDataset.period,m)||(a.formDataset.period=m),_(m)}),s()()()(),r(52,"p",20),p(53,"Time scales define the data sampling rate and overall Dataset level of precision. Select a Time Scale that is targeted to your intended usage. Shorter Time Scales have higher system resources costs, for both the data capture and widget rendering process. "),s(),r(54,"ul")(55,"li"),p(56,"Hours: per minute sampling rate. Intended for long sampling periods when slow refresh rate is acceptable and system resource usage should be minimized. Grafana is the perfect alternative to this Time Scale. "),s(),r(57,"li"),p(58,"Minutes: per second sampling rate. Meant for trends observations such wind speed, depth, solar power, voltage, etc. "),s(),r(59,"li"),p(60,"Secondes: 200ms sampling rate. Intended for use cases where user may act upon realtime information such as when racing. "),s()()(),S(61,"mat-divider"),r(62,"div",10)(63,"button",21),p(64," Back "),s(),r(65,"button",22),p(66," Save "),s()()()()()()}if(i&2){let n=W(4);l(),I(" ",a.titleDialog," "),l(11),G("ngModel",a.formDataset.path),l(),F(Ue(15,8,a.availablePaths,a.filterSelfPaths)),l(3),G("ngModel",a.filterSelfPaths),l(7),G("ngModel",a.formDataset.pathSource),l(),F(a.availableSources),l(4),h("disabled",!a.formDataset.path),l(12),G("ngModel",a.formDataset.timeScaleFormat),l(11),G("ngModel",a.formDataset.period),l(14),h("disabled",!n.valid)}},dependencies:[Ot,vt,bt,Se,ye,yt,Dt,Ct,ve,Et,wt,Mt,xt,be,Jt,ke,re,xe,Ce,Tt,It,kt,we,ge,Xt,Me,ei,Wt],styles:[ii]})}return t})();export{bn as a,ti as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as g}from"./chunk-TGXMWTBW.js";import{Cb as e,Db as n,Ec as c,Nb as l,Wa as m,Xd as p,Yd as u,cc as i,dc as d,eb as s,ge as h,le as f,ra as r}from"./chunk-FYD5M4IT.js";var T=(()=>{class t{pageTitle=c();_router=r(g);backPage(){this._router.navigate(["/home"])}closePage(){this._router.navigate(["/dashboard"])}static \u0275fac=function(a){return new(a||t)};static \u0275cmp=s({type:t,selectors:[["page-header"]],inputs:{pageTitle:[1,"pageTitle"]},decls:10,vars:1,consts:[[1,"fullpage-header"],[1,"fullpage-header-title"],[1,"dialog-close-icon"],["mat-icon-button","",3,"click"]],template:function(a,o){a&1&&(e(0,"div",0)(1,"h6",1),i(2),n(),e(3,"div",2)(4,"button",3),l("click",function(){return o.backPage()}),e(5,"mat-icon"),i(6,"arrow_back_ios"),n()(),e(7,"button",3),l("click",function(){return o.closePage()}),e(8,"mat-icon"),i(9,"close"),n()()()()),a&2&&(m(2),d(o.pageTitle()))},dependencies:[f,h,u,p],styles:[".fullpage-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.fullpage-header-title[_ngcontent-%COMP%]{margin-block-start:0px;margin-block-end:0px;padding:18px 24px 13px;color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, .03125em))}.dialog-close-icon[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;padding-right:15px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:max-content}"]})}return t})();export{T as a};
|
package/public/index.html
CHANGED
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
</app-root>
|
|
64
64
|
</div>
|
|
65
|
-
<link rel="modulepreload" href="chunk-
|
|
65
|
+
<link rel="modulepreload" href="chunk-JZ6SEETI.js"><link rel="modulepreload" href="chunk-5KVBD33V.js"><link rel="modulepreload" href="chunk-TEJD7CAE.js"><link rel="modulepreload" href="chunk-3NNJBUG2.js"><link rel="modulepreload" href="chunk-NHAQWUX3.js"><link rel="modulepreload" href="chunk-SZ2ILSI7.js"><link rel="modulepreload" href="chunk-HECHZXLY.js"><link rel="modulepreload" href="chunk-EQYME7LZ.js"><link rel="modulepreload" href="chunk-TGXMWTBW.js"><link rel="modulepreload" href="chunk-5GDQVRW5.js"><script src="polyfills-KH22MU6U.js" type="module"></script><script src="main-BLOBFFNL.js" type="module"></script></body>
|
|
66
66
|
</html>
|