@skill-map/cli 0.49.0 → 0.50.1

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.
@@ -0,0 +1 @@
1
+ import{b as Fe,r as Ar}from"./chunk-WMGW2UAL.js";import{$ as St,A as Rt,C as ar,D as U,E as $e,F as P,Gc as Er,H as R,I as sr,K as w,M as cr,N as b,O as Ct,P as f,Q as ur,Ra as fr,S as Q,T as N,Ta as pr,Va as It,Wa as gr,Ya as vr,Z as lr,a as Xt,aa as dr,b as er,ba as ie,bb as mr,c as tr,cb as yr,d as te,e as M,ea as wt,eb as Rr,f as T,fb as Cr,ga as ze,h as D,i as g,j as rr,ja as hr,k as gt,ka as bt,l as nr,n as S,o as vt,p as F,pc as wr,q as ir,qc as K,r as ke,tc as br,u as re,ub as Sr,v as mt,w as yt,x as ne,y as or,z as q,zc as Ir}from"./chunk-VJ57LHDR.js";import{a as d,b as A}from"./chunk-WCABR6TI.js";var h="primary",_e=Symbol("RouteTitle"),Dt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Z(e){return new Dt(e)}function Et(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Pr(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Et(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!Et(o,e.slice(0,o.length),a)||!Et(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function We(e){return new Promise((n,t)=>{e.pipe(q()).subscribe({next:r=>n(r),error:r=>t(r)})})}function An(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!x(e[t],n[t]))return!1;return!0}function x(e,n){let t=e?Nt(e):void 0,r=n?Nt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!Lr(e[i],n[i]))return!1;return!0}function Nt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Lr(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function Mn(e){return e.length>0?e[e.length-1]:null}function ee(e){return gt(e)?e:yr(e)?D(Promise.resolve(e)):g(e)}function xr(e){return gt(e)?We(e):Promise.resolve(e)}var Tn={exact:$r,subset:zr},jr={exact:Dn,subset:Nn,ignored:()=>!0},kr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_t={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Mr(e,n,t){return Tn[t.paths](e.root,n.root,t.matrixParams)&&jr[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function Dn(e,n){return x(e,n)}function $r(e,n,t){if(!Y(e.segments,n.segments)||!Be(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!$r(e.children[r],n.children[r],t))return!1;return!0}function Nn(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Lr(e[t],n[t]))}function zr(e,n,t){return Fr(e,n,n.segments,t)}function Fr(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Y(i,t)||n.hasChildren()||!Be(i,t,r))}else if(e.segments.length===t.length){if(!Y(e.segments,t)||!Be(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!zr(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!Y(e.segments,i)||!Be(e.segments,i,r)||!e.children[h]?!1:Fr(e.children[h],n,o,r)}}function Be(e,n,t){return n.every((r,i)=>jr[t](e[i].parameters,r.parameters))}var O=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Z(this.queryParams),this._queryParamMap}toString(){return Un.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ve(this)}},H=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Z(this.parameters),this._parameterMap}toString(){return Hr(this)}};function _n(e,n){return Y(e,n)&&e.every((t,r)=>x(t.parameters,n[r].parameters))}function Y(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function On(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===h&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==h&&(t=t.concat(n(i,r)))}),t}var Oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Ut(n);return new O(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${ye(n.root,!0)}`,r=xn(n.queryParams),i=typeof n.fragment=="string"?`#${Pn(n.fragment)}`:"";return`${t}${r}${i}`}},Un=new B;function Ve(e){return e.segments.map(n=>Hr(n)).join("/")}function ye(e,n){if(!e.hasChildren())return Ve(e);if(n){let t=e.children[h]?ye(e.children[h],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==h&&r.push(`${i}:${ye(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=On(e,(r,i)=>i===h?[ye(e.children[h],!1)]:[`${i}:${ye(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[h]!=null?`${Ve(e)}/${t[0]}`:`${Ve(e)}/(${t.join("//")})`}}function qr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qe(e){return qr(e).replace(/%3B/gi,";")}function Pn(e){return encodeURI(e)}function Ot(e){return qr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ge(e){return decodeURIComponent(e)}function Tr(e){return Ge(e.replace(/\+/g,"%20"))}function Hr(e){return`${Ot(e.path)}${Ln(e.parameters)}`}function Ln(e){return Object.entries(e).map(([n,t])=>`;${Ot(n)}=${Ot(t)}`).join("")}function xn(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${qe(t)}=${qe(i)}`).join("&"):`${qe(t)}=${qe(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var jn=/^[^\/()?;#]+/;function At(e){let n=e.match(jn);return n?n[0]:""}var kn=/^[^\/()?;=#]+/;function $n(e){let n=e.match(kn);return n?n[0]:""}var zn=/^[^=?&#]+/;function Fn(e){let n=e.match(zn);return n?n[0]:""}var qn=/^[^&#]+/;function Hn(e){let n=e.match(qn);return n?n[0]:""}var Ut=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new R(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[h]=new v(t,r)),i}parseSegment(){let n=At(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new H(Ge(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=$n(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=At(this.remaining);i&&(r=i,this.capture(r))}n[Ge(t)]=Ge(r)}parseQueryParam(n){let t=Fn(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Hn(this.remaining);s&&(r=s,this.capture(r))}let i=Tr(t),o=Tr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=At(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new R(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=h);let a=this.parseChildren(t+1);r[s??h]=Object.keys(a).length===1&&a[h]?a[h]:new v([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new R(4011,!1)}};function Br(e){return e.segments.length>0?new v([],{[h]:e}):e}function Vr(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=Vr(i);if(r===h&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return Bn(t)}function Bn(e){if(e.numberOfChildren===1&&e.children[h]){let n=e.children[h];return new v(e.segments.concat(n.segments),n.children)}return e}function ce(e){return e instanceof O}function Gr(e,n,t=null,r=null,i=new B){let o=Wr(e);return Qr(o,n,t,r,i)}function Wr(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=Br(r);return n??i}function Qr(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Mt(o,o,o,t,r,i);let s=Vn(n);if(s.toRoot())return Mt(o,o,new v([],{}),t,r,i);let a=Gn(s,o,e),c=a.processChildren?Ce(a.segmentGroup,a.index,s.commands):Yr(a.segmentGroup,a.index,s.commands);return Mt(o,a.segmentGroup,c,t,r,i)}function Qe(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function be(e){return typeof e=="object"&&e!=null&&e.outlets}function Dr(e,n,t){e||="\u0275";let r=new O;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Mt(e,n,t,r,i,o){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(p=>Dr(u,p,o)):Dr(u,l,o);let a;e===n?a=t:a=Kr(e,n,t);let c=Br(Vr(a));return new O(c,s,i)}function Kr(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=Kr(o,n,t)}),new v(e.segments,r)}var Ke=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Qe(r[0]))throw new R(4003,!1);let i=r.find(be);if(i&&i!==Mn(r))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Vn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ke(!0,0,e);let n=0,t=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ke(t,n,r)}var ae=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Gn(e,n,t){if(e.isAbsolute)return new ae(n,!0,0);if(!t)return new ae(n,!1,NaN);if(t.parent===null)return new ae(t,!0,0);let r=Qe(e.commands[0])?0:1,i=t.segments.length-1+r;return Wn(t,i,e.numberOfDoubleDots)}function Wn(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new R(4005,!1);i=r.segments.length}return new ae(r,!1,i-o)}function Qn(e){return be(e[0])?e[0].outlets:{[h]:e}}function Yr(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return Ce(e,n,t);let r=Kn(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[h]=new v(e.segments.slice(r.pathIndex),e.children),Ce(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Pt(e,n,t):r.match?Ce(e,0,i):Pt(e,n,t)}function Ce(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Qn(t),i={};if(Object.keys(r).some(o=>o!==h)&&e.children[h]&&e.numberOfChildren===1&&e.children[h].segments.length===0){let o=Ce(e.children[h],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Yr(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function Kn(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(be(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!_r(c,u,s))return o;r+=2}else{if(!_r(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Pt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(be(o)){let c=Yn(o.outlets);return new v(r,c)}if(i===0&&Qe(t[0])){let c=e.segments[n];r.push(new H(c.path,Nr(t[0]))),i++;continue}let s=be(o)?o.outlets[h]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&Qe(a)?(r.push(new H(s,Nr(a))),i+=2):(r.push(new H(s,{})),i++)}return new v(r,{})}function Yn(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Pt(new v([],{}),0,r))}),n}function Nr(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function _r(e,n,t){return e==t.path&&x(n,t.parameters)}var Se="imperative",y=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(y||{}),E=class{id;url;constructor(n,t){this.id=n,this.url=t}},J=class extends E{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends E{urlAfterRedirects;type=y.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},C=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(C||{}),Ie=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ie||{}),_=class extends E{reason;code;type=y.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Zr(e){return e instanceof _&&(e.code===C.Redirect||e.code===C.SupersededByNewNavigation)}var z=class extends E{reason;code;type=y.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},X=class extends E{error;target;type=y.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ee=class extends E{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ye=class extends E{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ze=class extends E{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Je=class extends E{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xe=class extends E{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},et=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},rt=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},it=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ot=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ue=class{},Ae=class{},le=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Zn(e){return!(e instanceof ue)&&!(e instanceof le)&&!(e instanceof Ae)}var at=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe(this.rootInjector)}},pe=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new at(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Ct(Q))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),st=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Lt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Lt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=xt(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return xt(n,this._root).map(t=>t.value)}};function Lt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Lt(e,t);if(r)return r}return null}function xt(e,n){if(e===n.value)return[n];for(let t of n.children){let r=xt(e,t);if(r.length)return r.unshift(n),r}return[]}var I=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function oe(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var Me=class extends st{snapshot;constructor(n,t){super(n),this.snapshot=t,Vt(this,n)}toString(){return this.snapshot.toString()}};function Jr(e,n){let t=Jn(e,n),r=new M([new H("",{})]),i=new M({}),o=new M({}),s=new M({}),a=new M(""),c=new V(r,i,s,a,o,h,e,t.root);return c.snapshot=t.root,new Me(new I(c,[]),t)}function Jn(e,n){let t={},r={},i={},s=new de([],t,i,"",r,h,e,null,{},n);return new Te("",new I(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[_e]))??g(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(n=>Z(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(n=>Z(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Bt(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:d(d({},n.params),e.params),data:d(d({},n.data),e.data),resolve:d(d(d(d({},e.data),n.data),i?.data),e._resolvedData)}:r={params:d({},e.params),data:d({},e.data),resolve:d(d({},e.data),e._resolvedData??{})},i&&en(i)&&(r.resolve[_e]=i.title),r}var de=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[_e]}constructor(n,t,r,i,o,s,a,c,u,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Z(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Z(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},Te=class extends st{url;constructor(n,t){super(t),this.url=n,Vt(this,t)}toString(){return Xr(this._root)}};function Vt(e,n){n.value._routerState=e,n.children.forEach(t=>Vt(e,t))}function Xr(e){let n=e.children.length>0?` { ${e.children.map(Xr).join(", ")} } `:"";return`${e.value}${n}`}function Tt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,x(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),x(n.params,t.params)||e.paramsSubject.next(t.params),An(n.url,t.url)||e.urlSubject.next(t.url),x(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function jt(e,n){let t=x(e.params,n.params)&&_n(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||jt(e.parent,n.parent))}function en(e){return typeof e.title=="string"||e.title===null}var tn=new b(""),Gt=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=h;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=br();parentContexts=f(pe);location=f(fr);changeDetector=f(Ir);inputBinder=f(Ue,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new kt(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=vr({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[hr]})}return e})(),kt=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===V?this.route:n===pe?this.childContexts:n===tn?this.outletData:this.parent.get(n,t)}},Ue=new b(""),Wt=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=vt([r.queryParams,r.params,r.data]).pipe(U(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Er(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Qt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=gr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Sr(0,"router-outlet")},dependencies:[Gt],encapsulation:2})}return e})();function Kt(e){let n=e.children&&e.children.map(Kt),t=n?A(d({},e),{children:n}):d({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==h&&(t.component=Qt),t}function Xn(e,n,t){let r=De(e,n._root,t?t._root:void 0);return new Me(r,n)}function De(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=ei(e,n,t);return new I(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>De(e,a)),s}}let r=ti(n.value),i=n.children.map(o=>De(e,o));return new I(r,i)}}function ei(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return De(e,r,i);return De(e,r)})}function ti(e){return new V(new M(e.url),new M(e.params),new M(e.queryParams),new M(e.fragment),new M(e.data),e.outlet,e.component,e)}var he=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},rn="ngNavigationCancelingError";function ct(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=ce(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=nn(!1,C.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function nn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[rn]=!0,t.cancellationCode=n,t}function ri(e){return on(e)&&ce(e.url)}function on(e){return!!e&&e[rn]}var $t=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Tt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=oe(t);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=oe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=oe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=oe(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new ot(o.value.snapshot))}),n.children.length&&this.forwardEvent(new nt(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Tt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Tt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ut=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(n,t){this.component=n,this.route=t}};function ni(e,n,t){let r=e._root,i=n?n._root:null;return Re(r,i,t,[r.value])}function ii(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function ge(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!cr(e)?e:n.get(e):r}function Re(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=oe(n);return e.children.forEach(s=>{oi(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>we(a,t.getContext(s),i)),i}function oi(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=ai(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new ut(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Re(e,n,a?a.children:null,r,i):Re(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new se(a.outlet.component,s))}else s&&we(n,a,i),i.canActivateChecks.push(new ut(r)),o.component?Re(e,null,a?a.children:null,r,i):Re(e,null,t,r,i);return i}function ai(e,n,t){if(typeof t=="function")return N(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!Y(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Y(e.url,n.url)||!x(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jt(e,n)||!x(e.queryParams,n.queryParams);default:return!jt(e,n)}}function we(e,n,t){let r=oe(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?we(s,n.children.getContext(o),t):we(s,null,t):we(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new se(n.outlet.component,i)):t.canDeactivateChecks.push(new se(null,i)):t.canDeactivateChecks.push(new se(null,i))}function Pe(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function ci(e){return e&&Pe(e.canLoad)}function ui(e){return e&&Pe(e.canActivate)}function li(e){return e&&Pe(e.canActivateChild)}function di(e){return e&&Pe(e.canDeactivate)}function hi(e){return e&&Pe(e.canMatch)}function an(e){return e instanceof nr||e?.name==="EmptyError"}var He=Symbol("INITIAL_VALUE");function fe(){return U(e=>vt(e.map(n=>n.pipe(ne(1),ar(He)))).pipe(S(n=>{for(let t of n)if(t!==!0){if(t===He)return He;if(t===!1||fi(t))return t}return!0}),re(n=>n!==He),ne(1)))}function fi(e){return ce(e)||e instanceof he}function sn(e){return e.aborted?g(void 0).pipe(ne(1)):new tr(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function cn(e){return $e(sn(e))}function pi(e){return F(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(A(d({},n),{guardsResult:!0})):gi(o,t,r).pipe(F(s=>s&&si(s)?vi(t,i,e):g(s)),S(s=>A(d({},n),{guardsResult:s})))})}function gi(e,n,t){return D(e).pipe(F(r=>Si(r.component,r.route,t,n)),q(r=>r!==!0,!0))}function vi(e,n,t){return D(n).pipe(yt(r=>ir(yi(r.route.parent,t),mi(r.route,t),Ci(e,r.path),Ri(e,r.route))),q(r=>r!==!0,!0))}function mi(e,n){return e!==null&&n&&n(new it(e)),g(!0)}function yi(e,n){return e!==null&&n&&n(new rt(e)),g(!0)}function Ri(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>ke(()=>{let o=n._environmentInjector,s=ge(i,o),a=ui(s)?s.canActivate(n,e):N(o,()=>s(n,e));return ee(a).pipe(q())}));return g(r).pipe(fe())}function Ci(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>ii(o)).filter(o=>o!==null).map(o=>ke(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=ge(a,c),l=li(u)?u.canActivateChild(t,e):N(c,()=>u(t,e));return ee(l).pipe(q())});return g(s).pipe(fe())}));return g(i).pipe(fe())}function Si(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=ge(s,a),u=di(c)?c.canDeactivate(e,n,t,r):N(a,()=>c(e,n,t,r));return ee(u).pipe(q())});return g(o).pipe(fe())}function wi(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=ge(a,e),u=ci(c)?c.canLoad(n,t):N(e,()=>c(n,t)),l=ee(u);return i?l.pipe(cn(i)):l});return g(s).pipe(fe(),un(r))}function un(e){return er(P(n=>{if(typeof n!="boolean")throw ct(e,n)}),S(n=>n===!0))}function bi(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=ge(c,e),l=hi(u)?u.canMatch(n,t,i):N(e,()=>u(n,t,i));return ee(l).pipe(cn(o))});return g(a).pipe(fe(),un(r))}var k=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},Ne=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function Ii(e){throw new R(4e3,!1)}function Ei(e){throw nn(!1,C.GuardRejected)}var zt=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}async lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[h])throw Ii(`${n.redirectTo}`);i=i.children[h]}}async applyRedirectCommands(n,t,r,i,o){let s=await Ai(t,i,o);if(s instanceof O)throw new Ne(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ne(a);return a}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new O(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function Ai(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return We(ee(N(t,()=>r(n))))}function Mi(e,n){return e.providers&&!e._injector&&(e._injector=It(e.providers,n,`Route: ${e.path}`)),e._injector??n}function L(e){return e.outlet||h}function Ti(e,n){let t=e.filter(r=>L(r)===n);return t.push(...e.filter(r=>L(r)!==n)),t}var Ft={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ln(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function Di(e,n,t,r,i,o,s){let a=dn(e,n,t);if(!a.matched)return g(a);let c=ln(o(a));return r=Mi(n,r),bi(r,n,t,i,c,s).pipe(S(u=>u===!0?a:d({},Ft)))}function dn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?d({},Ft):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Pr)(t,e,n);if(!i)return d({},Ft);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Or(e,n,t,r,i){return t.length>0&&Oi(e,t,r,i)?{segmentGroup:new v(n,_i(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Ui(e,t,r)?{segmentGroup:new v(e.segments,Ni(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Ni(e,n,t,r){let i={};for(let o of t)if(dt(e,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return d(d({},r),i)}function _i(e,n){let t={};t[h]=n;for(let r of e)if(r.path===""&&L(r)!==h){let i=new v([],{});t[L(r)]=i}return t}function Oi(e,n,t,r){return t.some(i=>!dt(e,n,i)||!(L(i)!==h)?!1:!(r!==void 0&&L(i)===r))}function Ui(e,n,t){return t.some(r=>dt(e,n,r))}function dt(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Pi(e,n,t){return n.length===0&&!e.children[t]}var qt=class{};async function Li(e,n,t,r,i,o,s="emptyOnly",a){return new Ht(e,n,t,r,i,s,o,a).recognize()}var xi=31,Ht=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new zt(this.urlSerializer,this.urlTree)}noMatchError(n){return new R(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Or(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=await this.match(n),i=new I(r,t),o=new Te("",i),s=Gr(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let t=new de([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),h,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,h,t),rootSnapshot:t}}catch(r){if(r instanceof Ne)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof k?this.noMatchError(r):r}}async processSegmentGroup(n,t,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=await this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof I?[s]:[]}async processChildren(n,t,r,i){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],l=Ti(t,c),p=await this.processSegmentGroup(n,l,u,c,i);s.push(...p)}let a=hn(s);return ji(a),a}async processSegment(n,t,r,i,o,s,a){for(let c of t)try{return await this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof k||an(u))continue;throw u}if(Pi(r,i,o))return new qt;throw new k(r)}async processSegmentAgainstRoute(n,t,r,i,o,s,a,c){if(L(r)!==s&&(s===h||!dt(i,o,r)))throw new k(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new k(i)}async expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:m}=dn(t,i,o);if(!c)throw new k(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let G=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let j=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,p,ln(G),n),W=await this.applyRedirects.lineralizeSegments(i,j);return this.processSegment(n,r,t,W.concat(m),s,!1,a)}createSnapshot(n,t,r,i,o){let s=new de(r,i,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,$i(t),L(t),t.component??t._loadedComponent??null,t,zi(t),n),a=Bt(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(n,t,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=je=>this.createSnapshot(n,r,je.consumedSegments,je.parameters,s),c=await We(Di(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new k(t);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:p,consumedSegments:m,remainingSegments:G}=c,j=this.createSnapshot(n,r,m,p,s),{segmentGroup:W,slicedSegments:ve}=Or(t,m,G,u,o);if(ve.length===0&&W.hasChildren()){let je=await this.processChildren(l,u,W,j);return new I(j,je)}if(u.length===0&&ve.length===0)return new I(j,[]);let pt=L(r)===o,me=await this.processSegment(l,u,W,ve,pt?h:o,!0,j);return new I(j,me instanceof I?[me]:[])}async getChildConfig(n,t,r){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await We(wi(n,t,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw Ei(t)}return{routes:[],injector:n}}};function ji(e){e.sort((n,t)=>n.value.outlet===h?-1:t.value.outlet===h?1:n.value.outlet.localeCompare(t.value.outlet))}function ki(e){let n=e.value.routeConfig;return n&&n.path===""}function hn(e){let n=[],t=new Set;for(let r of e){if(!ki(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=hn(r.children);n.push(new I(r.value,i))}return n.filter(r=>!t.has(r))}function $i(e){return e.data||{}}function zi(e){return e.resolve||{}}function Fi(e,n,t,r,i,o,s){return F(async a=>{let{state:c,tree:u}=await Li(e,n,t,r,a.extractedUrl,i,o,s);return A(d({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function qi(e){return F(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of fn(a))o.add(c);let s=0;return D(o).pipe(yt(a=>i.has(a)?Hi(a,t,e):(a.data=Bt(a,a.parent,e).resolve,g(void 0))),P(()=>s++),Rt(1),F(a=>s===o.size?g(n):T))})}function fn(e){let n=e.children.map(t=>fn(t)).flat();return[e,...n]}function Hi(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!en(r)&&(i[_e]=r.title),ke(()=>(e.data=Bt(e,e.parent,t).resolve,Bi(i,e,n).pipe(S(o=>(e._resolvedData=o,e.data=d(d({},e.data),o),null)))))}function Bi(e,n,t){let r=Nt(e);if(r.length===0)return g({});let i={};return D(r).pipe(F(o=>Vi(e[o],n,t).pipe(q(),P(s=>{if(s instanceof he)throw ct(new B,s);i[o]=s}))),Rt(1),S(()=>i),mt(o=>an(o)?T:rr(o)))}function Vi(e,n,t){let r=n._environmentInjector,i=ge(e,r),o=i.resolve?i.resolve(n,t):N(r,()=>i(n,t));return ee(o)}function Ur(e){return U(n=>{let t=e(n);return t?D(t).pipe(S(()=>n)):g(n)})}var Yt=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===h);return r}getResolvedTitleForRoute(t){return t.data[_e]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(pn),providedIn:"root"})}return e})(),pn=(()=>{class e extends Yt{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Ct(Ar))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Le=new b("",{factory:()=>({})}),xe=new b(""),gn=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(wr);async loadComponent(t,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await xr(N(t,()=>r.loadComponent())),s=await yn(mn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await vn(r,this.compiler,t,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function vn(e,n,t,r){let i=await xr(N(t,()=>e.loadChildren())),o=await yn(mn(i)),s;o instanceof pr||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,l=s,c=a.get(xe,[],{optional:!0,self:!0}).flat()),{routes:c.map(Kt),injector:a,factory:l}}function Gi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Gi(e)?e.default:e}async function yn(e){return e}var ht=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Wi),providedIn:"root"})}return e})(),Wi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rn=new b("");var Qi=()=>{},Cn=new b(""),Sn=(()=>{class e{currentNavigation=ze(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=ze(null);events=new te;transitionAbortWithErrorSubject=new te;configLoader=f(gn);environmentInjector=f(Q);destroyRef=f(St);urlSerializer=f(Oe);rootContexts=f(pe);location=f(Fe);inputBindingEnabled=f(Ue,{optional:!0})!==null;titleStrategy=f(Yt);options=f(Le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(ht);createViewTransition=f(Rn,{optional:!0});navigationErrorHandler=f(Cn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new et(i)),r=i=>this.events.next(new tt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;K(()=>{this.transitions?.next(A(d({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new M(null),this.transitions.pipe(re(r=>r!==null),U(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(U(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",C.SupersededByNewNavigation),T;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?A(d({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new z(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ie.IgnoredSameUrlNavigation)),a.resolve(!1),T;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(U(p=>(this.events.next(new J(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?T:Promise.resolve(p))),Fi(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),P(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=p.urlAfterRedirects,m)),this.events.next(new Ae)}),U(p=>D(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(S(()=>p))),P(()=>{let p=new Ee(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:m,source:G,restoredState:j,extras:W}=a,ve=new J(p,this.urlSerializer.serialize(m),G,j);this.events.next(ve);let pt=Jr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=A(d({},a),{targetSnapshot:pt,urlAfterRedirects:m,extras:A(d({},W),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(me=>(me.finalUrl=m,me)),g(r)}else return this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ie.IgnoredByUrlHandlingStrategy)),a.resolve(!1),T}),S(a=>{let c=new Ye(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=A(d({},a),{guards:ni(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),pi(a=>this.events.next(a)),U(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw ct(this.urlSerializer,a.guardsResult);let c=new Ze(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return T;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",C.GuardRejected),T;if(a.guards.canActivateChecks.length===0)return g(a);let u=new Je(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return T;let l=!1;return g(a).pipe(qi(this.paramsInheritanceStrategy),P({next:()=>{l=!0;let p=new Xe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>{l||this.cancelNavigationTransition(a,"",C.NoDataFromResolver)}}))}),Ur(a=>{let c=l=>{let p=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let m=l._environmentInjector;p.push(this.configLoader.loadComponent(m,l.routeConfig).then(G=>{l.component=G}))}for(let m of l.children)p.push(...c(m));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):D(Promise.all(u).then(()=>a))}),Ur(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?D(u).pipe(S(()=>r)):g(r)}),ne(1),U(a=>{let c=Xn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=A(d({},a),{targetRouterState:c}),this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new ue);let u=r.beforeActivateHandler.deferredHandle;return u?D(u.then(()=>a)):g(a)}),P(a=>{new $t(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=Qi,c)),this.lastSuccessfulNavigation.set(K(this.currentNavigation)),this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),$e(sn(o.signal).pipe(re(()=>!i&&!r.targetRouterState),P(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",C.Aborted)}))),P({complete:()=>{i=!0}}),$e(this.transitionAbortWithErrorSubject.pipe(P(a=>{throw a}))),or(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",C.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),mt(a=>{if(i=!0,this.destroyed)return r.resolve(!1),T;if(on(a))this.events.next(new _(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ri(a)?this.events.next(new le(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new X(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=N(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof he){let{message:l,cancellationCode:p}=ct(this.urlSerializer,u);this.events.next(new _(r.id,this.urlSerializer.serialize(r.extractedUrl),l,p)),this.events.next(new le(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return T}))}))}cancelNavigationTransition(t,r,i){let o=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=K(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ki(e){return e!==Se}var wn=new b("");var bn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Yi),providedIn:"root"})}return e})(),lt=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Yi=(()=>{class e extends lt{static \u0275fac=(()=>{let t;return function(i){return(t||(t=bt(e)))(i||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zt=(()=>{class e{urlSerializer=f(Oe);options=f(Le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Fe);urlHandlingStrategy=f(ht);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new O;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof O?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=Jr(null,f(Q));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>f(Zi),providedIn:"root"})}return e})(),Zi=(()=>{class e extends Zt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof J?this.updateStateMemento():t instanceof z?this.commitTransition(r):t instanceof Ee?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof ue?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof _&&!Zr(t)?this.restoreHistory(r):t instanceof X?this.restoreHistory(r,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(t,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=bt(e)))(i||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jt(e,n){e.events.pipe(re(t=>t instanceof $||t instanceof _||t instanceof X||t instanceof z),S(t=>t instanceof $||t instanceof z?0:(t instanceof _?t.code===C.Redirect||t.code===C.SupersededByNewNavigation:!1)?2:1),re(t=>t!==2),ne(1)).subscribe(()=>{n()})}var ft=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(mr);stateManager=f(Zt);options=f(Le,{optional:!0})||{};pendingTasks=f(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(Sn);urlSerializer=f(Oe);location=f(Fe);urlHandlingStrategy=f(ht);injector=f(Q);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(bn);injectorCleanup=f(wn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(xe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(Ue,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Xt;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=K(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof _&&r.code!==C.Redirect&&r.code!==C.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof le){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=d({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ki(i.source)},s);this.scheduleNavigation(a,Se,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Zn(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Se,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(wt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Kt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let p;try{let m=i?i.snapshot:this.routerState.snapshot.root;p=Wr(m)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return Qr(p,t,l,u??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=ce(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(t,r={skipLocationChange:!1}){return Ji(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(sr(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=d({},kr):r===!1?i=d({},_t):i=d(d({},_t),r),ce(t))return Mr(this.currentUrlTree,t,i);let o=this.parseUrl(t);return Mr(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((p,m)=>{a=p,c=m});let l=this.pendingTasks.add();return Jt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ji(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new R(4008,!1)}var to=new b("");function ro(e,...n){return ur([{provide:xe,multi:!0,useValue:e},[],{provide:V,useFactory:no},{provide:Rr,multi:!0,useFactory:oo},n.map(t=>t.\u0275providers)])}function no(){return f(ft).routerState.root}function io(e,n){return{\u0275kind:e,\u0275providers:n}}function oo(){let e=f(lr);return n=>{let t=e.get(Cr);if(n!==t.components[0])return;let r=e.get(ft),i=e.get(ao);e.get(so)===1&&r.initialNavigation(),e.get(co,null,{optional:!0})?.setUpPreloading(),e.get(to,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ao=new b("",{factory:()=>new te}),so=new b("",{factory:()=>1});var co=new b("");function uo(){return io(8,[Wt,{provide:Ue,useExisting:Wt}])}export{J as a,$ as b,_ as c,X as d,Xe as e,V as f,Gt as g,Yt as h,ft as i,ro as j,uo as k};
@@ -1,4 +1,4 @@
1
- import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-OUNBYGMY.js";import{o as em}from"./chunk-FDJ5FDGM.js";import{F as Ra,G as fl,K as pl,L as Kd,O as dl,Sa as Xd,Za as Qd,_a as Zd,a as Vd,ma as Jd,u as va}from"./chunk-NV5DRQPL.js";import{a as p,b as E,d as qt,f as Yd}from"./chunk-WCABR6TI.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var Pt="10.55.0";function pt(){return pr(C),C}function pr(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pt,t[Pt]=t[Pt]||{}}function sn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Pt]=r[Pt]||{};return o[e]||(o[e]=t())}var dr=["debug","info","warn","error","log","assert","trace"],Wy="Sentry Logger ",Wr={};function Fe(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Wr);r.forEach(o=>{let i=Wr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function jy(){_l().enabled=!0}function zy(){_l().enabled=!1}function am(){return _l().enabled}function qy(...e){ml("log",...e)}function Yy(...e){ml("warn",...e)}function Vy(...e){ml("error",...e)}function ml(e,...t){b&&am()&&Fe(()=>{C.console[e](`${Wy}[${e}]:`,...t)})}function _l(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:jy,disable:zy,isEnabled:am,log:qy,warn:Yy,error:Vy};var cm=/\(error: (.*)\)/,um=/captureMessage|captureException/;function zi(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
1
+ import{a as tm,b as nm,c as rm,d as om,e as im,i as sm}from"./chunk-AEA5GIA7.js";import{n as em}from"./chunk-WMGW2UAL.js";import{F as Ra,G as fl,K as pl,L as Kd,O as dl,Qa as Xd,Xa as Qd,Ya as Zd,a as Vd,la as Jd,u as va}from"./chunk-VJ57LHDR.js";import{a as p,b as E,d as qt,f as Yd}from"./chunk-WCABR6TI.js";var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var C=globalThis;var Pt="10.55.0";function pt(){return pr(C),C}function pr(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Pt,t[Pt]=t[Pt]||{}}function sn(e,t,n=C){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[Pt]=r[Pt]||{};return o[e]||(o[e]=t())}var dr=["debug","info","warn","error","log","assert","trace"],Wy="Sentry Logger ",Wr={};function Fe(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Wr);r.forEach(o=>{let i=Wr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function jy(){_l().enabled=!0}function zy(){_l().enabled=!1}function am(){return _l().enabled}function qy(...e){ml("log",...e)}function Yy(...e){ml("warn",...e)}function Vy(...e){ml("error",...e)}function ml(e,...t){b&&am()&&Fe(()=>{C.console[e](`${Wy}[${e}]:`,...t)})}function _l(){return b?sn("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:jy,disable:zy,isEnabled:am,log:qy,warn:Yy,error:Vy};var cm=/\(error: (.*)\)/,um=/captureMessage|captureException/;function zi(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(`
2
2
  `);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=cm.test(c)?c.replace(cm,"$1"):c;if(!u.includes("Error: ")){for(let f of t){let l=f(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return gl(i.slice(o))}}function Ca(e){return Array.isArray(e)?zi(...e):e}function gl(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Na(t).function||"")&&t.pop(),t.reverse(),um.test(Na(t).function||"")&&(t.pop(),um.test(Na(t).function||"")&&t.pop()),t.slice(0,50).map(n=>E(p({},n),{filename:n.filename||Na(t).filename,function:n.function||"?"}))}function Na(e){return e[e.length-1]||{}}var hl="<anonymous>";function dt(e){try{return!e||typeof e!="function"?hl:e.name||hl}catch{return hl}}function jr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function lm(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var qi={},fm={};function rt(e,t){return qi[e]=qi[e]||[],qi[e].push(t),()=>{let n=qi[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function ot(e,t){if(!fm[e]){fm[e]=!0;try{t()}catch(n){b&&h.error(`Error while instrumenting ${e}`,n)}}}function $e(e,t){let n=e&&qi[e];if(n)for(let r of n)try{r(t)}catch(o){b&&h.error(`Error while triggering instrumentation handler.
3
3
  Type: ${e}
4
4
  Name: ${dt(r)}
@@ -1,4 +1,4 @@
1
- import{$ as In,B as _n,C as X,Ca as Ie,Da as te,E as we,Fa as Dt,Ja as T,L as Cn,M as En,O as Sn,Q as Dn,S as Tn,T as ft,U as wn,V as Qt,Y as at,Z as Xt,_ as Et,a as _t,aa as An,b as Se,c as pn,d as Ct,da as Jt,e as hn,ea as W,f as fn,h as gn,ha as St,i as mn,j as bn,m as G,p as De,q as yn,r as xt,s as vn,u as Zt,y as Te}from"./chunk-4SG4352Z.js";import{a as Ce,g as dn,h as cn,i as un,j as it,k as ht,l as Ee}from"./chunk-FDJ5FDGM.js";import{$ as q,$a as rt,Ab as Gt,B as Ze,Bb as zt,Cb as on,Dc as Yt,E as Qe,Gb as rn,H as Ht,Hb as vt,Hc as _,Ic as st,J as he,Ja as U,Jb as K,K as g,Kb as et,L as F,Lb as nt,Mb as sn,N as y,Ob as Mt,P as c,Pa as Je,Pb as Ot,Q as Xe,Ra as ut,Sa as I,Ta as tn,Ub as an,Vb as ve,Wb as ln,X as Ut,Xb as R,Ya as $,Yb as qt,Z as $t,Za as L,Zb as Kt,_ as Z,_a as S,ab as E,ba as ot,bb as pt,c as Bt,ca as jt,d as z,eb as en,f as ze,fb as nn,ga as f,h as qe,hc as O,ia as D,ja as Wt,ka as m,kb as j,kc as _e,ma as tt,n as Ke,qa as yt,s as Ye,sc as Q,tb as A,tc as v,u as pe,ub as fe,vb as ge,wb as At,xb as me,xc as b,yb as be,zb as ye}from"./chunk-NV5DRQPL.js";import{a as d,b as N,d as Ge}from"./chunk-WCABR6TI.js";function lt(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[lt(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}var $i=Object.defineProperty,Mn=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,On=(n,i,t)=>i in n?$i(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t,xn=(n,i)=>{for(var t in i||(i={}))ji.call(i,t)&&On(n,t,i[t]);if(Mn)for(var t of Mn(i))Wi.call(i,t)&&On(n,t,i[t]);return n};function Nn(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[Nn(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}function Gi(n){return typeof n=="function"&&"call"in n&&"apply"in n}function zi({skipUndefined:n=!1},...i){return i?.reduce((t,e={})=>{for(let o in e){let r=e[o];if(!(n&&r===void 0))if(o==="style")t.style=xn(xn({},t.style),e.style);else if(o==="class"||o==="className")t[o]=Nn(t[o],e[o]);else if(Gi(r)){let s=t[o];t[o]=s?(...a)=>{s(...a),r(...a)}:r}else t[o]=r}return t},{})}function Ae(...n){return zi({skipUndefined:!1},...n)}var ee={};function gt(n="pui_id_"){return Object.hasOwn(ee,n)||(ee[n]=0),ee[n]++,`${n}${ee[n]}`}var Fn=["*"],qi=(function(n){return n[n.ACCEPT=0]="ACCEPT",n[n.REJECT=1]="REJECT",n[n.CANCEL=2]="CANCEL",n})(qi||{}),Ir=(()=>{class n{requireConfirmationSource=new z;acceptConfirmationSource=new z;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac})}return n})();var P=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return n})(),Ar=(()=>{class n{static AND="and";static OR="or"}return n})(),Mr=(()=>{class n{filter(t,e,o,r,s){let a=[];if(t)for(let l of t)for(let u of e){let p=wn(l,u);if(this.filters[r](p,o,s)){a.push(l);break}}return a}filters={startsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).slice(0,r.length)===r},contains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).indexOf(r)!==-1},notContains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).indexOf(r)===-1},endsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o),s=W(t.toString()).toLocaleLowerCase(o);return s.indexOf(r,s.length-r.length)!==-1},equals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()===e.getTime():t==e?!0:W(t.toString()).toLocaleLowerCase(o)==W(e.toString()).toLocaleLowerCase(o),notEquals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!1:t==null?!0:t.getTime&&e.getTime?t.getTime()!==e.getTime():t==e?!1:W(t.toString()).toLocaleLowerCase(o)!=W(e.toString()).toLocaleLowerCase(o),in:(t,e)=>{if(e==null||e.length===0)return!0;for(let o=0;o<e.length;o++)if(Qt(t,e[o]))return!0;return!1},between:(t,e)=>e==null||e[0]==null||e[1]==null?!0:t==null?!1:t.getTime?e[0].getTime()<=t.getTime()&&t.getTime()<=e[1].getTime():e[0]<=t&&t<=e[1],lt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<e.getTime():t<e,lte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<=e.getTime():t<=e,gt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>e.getTime():t>e,gte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>=e.getTime():t>=e,is:(t,e,o)=>this.filters.equals(t,e,o),isNot:(t,e,o)=>this.filters.notEquals(t,e,o),before:(t,e,o)=>this.filters.lt(t,e,o),after:(t,e,o)=>this.filters.gt(t,e,o),dateIs:(t,e)=>e==null?!0:t==null?!1:t.toDateString()===e.toDateString(),dateIsNot:(t,e)=>e==null?!0:t==null?!1:t.toDateString()!==e.toDateString(),dateBefore:(t,e)=>e==null?!0:t==null?!1:t.getTime()<e.getTime(),dateAfter:(t,e)=>e==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>e.getTime())};register(t,e){this.filters[t]=e}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Or=(()=>{class n{clickSource=new z;parentDragSource=new z;clickObservable=this.clickSource.asObservable();parentDragObservable=this.parentDragSource.asObservable();add(t){t&&this.clickSource.next(t)}emitParentDrag(t){this.parentDragSource.next(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var xr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=$({type:n,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Fn,decls:1,vars:0,template:function(e,o){e&1&&(et(),nt(0))},encapsulation:2})}return n})(),Nr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=$({type:n,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Fn,decls:1,vars:0,template:function(e,o){e&1&&(et(),nt(0))},encapsulation:2})}return n})(),Ln=(()=>{class n{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(e){return new(e||n)(I(Je))};static \u0275dir=S({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return n})(),dt=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({imports:[it]})}return n})(),Fr=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return n})();var $n=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,e){this._renderer=t,this._elementRef=e}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(e){return new(e||n)(I(ut),I(tt))};static \u0275dir=S({type:n})}return n})(),Ki=(()=>{class n extends $n{static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(n)))(o||n)}})();static \u0275dir=S({type:n,features:[E]})}return n})(),jn=new y("");var Yi={provide:jn,useExisting:he(()=>Wn),multi:!0};function Zi(){let n=Ce()?Ce().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var Qi=new y(""),Wn=(()=>{class n extends $n{_compositionMode;_composing=!1;constructor(t,e,o){super(t,e),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Zi())}writeValue(t){let e=t??"";this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(e){return new(e||n)(I(ut),I(tt),I(Qi,8))};static \u0275dir=S({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,o){e&1&&vt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[O([Yi]),E]})}return n})();var Xi=new y(""),Ji=new y("");function Gn(n){return n!=null}function zn(n){return en(n)?qe(n):n}function qn(n){let i={};return n.forEach(t=>{i=t!=null?d(d({},i),t):i}),Object.keys(i).length===0?null:i}function Kn(n,i){return i.map(t=>t(n))}function to(n){return!n.validate}function Yn(n){return n.map(i=>to(i)?i:t=>i.validate(t))}function eo(n){if(!n)return null;let i=n.filter(Gn);return i.length==0?null:function(t){return qn(Kn(t,i))}}function Zn(n){return n!=null?eo(Yn(n)):null}function no(n){if(!n)return null;let i=n.filter(Gn);return i.length==0?null:function(t){let e=Kn(t,i).map(zn);return Ye(e).pipe(Ke(qn))}}function Qn(n){return n!=null?no(Yn(n)):null}function Pn(n,i){return n===null?[i]:Array.isArray(n)?[...n,i]:[n,i]}function io(n){return n._rawValidators}function oo(n){return n._rawAsyncValidators}function Me(n){return n?Array.isArray(n)?n:[n]:[]}function ie(n,i){return Array.isArray(n)?n.includes(i):n===i}function Vn(n,i){let t=Me(i);return Me(n).forEach(o=>{ie(t,o)||t.push(o)}),t}function kn(n,i){return Me(i).filter(t=>!ie(n,t))}var oe=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Zn(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,t){return this.control?this.control.hasError(i,t):!1}getError(i,t){return this.control?this.control.getError(i,t):null}},Oe=class extends oe{name;get formDirective(){return null}get path(){return null}},mt=class extends oe{_parent=null;name=null;valueAccessor=null},xe=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Jr=(()=>{class n extends xe{constructor(t){super(t)}static \u0275fac=function(e){return new(e||n)(I(mt,2))};static \u0275dir=S({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,o){e&2&&ve("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[E]})}return n})();var Nt="VALID",ne="INVALID",Tt="PENDING",Ft="DISABLED",bt=class{},re=class extends bt{value;source;constructor(i,t){super(),this.value=i,this.source=t}},Lt=class extends bt{pristine;source;constructor(i,t){super(),this.pristine=i,this.source=t}},Pt=class extends bt{touched;source;constructor(i,t){super(),this.touched=i,this.source=t}},wt=class extends bt{status;source;constructor(i,t){super(),this.status=i,this.source=t}};var Ne=class extends bt{source;constructor(i){super(),this.source=i}};function ro(n){return(se(n)?n.validators:n)||null}function so(n){return Array.isArray(n)?Zn(n):n||null}function ao(n,i){return(se(i)?i.asyncValidators:n)||null}function lo(n){return Array.isArray(n)?Qn(n):n||null}function se(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}var Fe=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,t){this._assignValidators(i),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Q(this.statusReactive)}set status(i){Q(()=>this.statusReactive.set(i))}_status=v(()=>this.statusReactive());statusReactive=f(void 0);get valid(){return this.status===Nt}get invalid(){return this.status===ne}get pending(){return this.status===Tt}get disabled(){return this.status===Ft}get enabled(){return this.status!==Ft}errors;get pristine(){return Q(this.pristineReactive)}set pristine(i){Q(()=>this.pristineReactive.set(i))}_pristine=v(()=>this.pristineReactive());pristineReactive=f(!0);get dirty(){return!this.pristine}get touched(){return Q(this.touchedReactive)}set touched(i){Q(()=>this.touchedReactive.set(i))}_touched=v(()=>this.touchedReactive());touchedReactive=f(!1);get untouched(){return!this.touched}_events=new z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Vn(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Vn(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(kn(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(kn(i,this._rawAsyncValidators))}hasValidator(i){return ie(this._rawValidators,i)}hasAsyncValidator(i){return ie(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let t=this.touched===!1;this.touched=!0;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(N(d({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Pt(!0,e))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(i))}markAsUntouched(i={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let e=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:e})}),i.onlySelf||this._parent?._updateTouched(i,e),t&&i.emitEvent!==!1&&this._events.next(new Pt(!1,e))}markAsDirty(i={}){let t=this.pristine===!0;this.pristine=!1;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(N(d({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Lt(!1,e))}markAsPristine(i={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let e=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,e),t&&i.emitEvent!==!1&&this._events.next(new Lt(!0,e))}markAsPending(i={}){this.status=Tt;let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new wt(this.status,t)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(N(d({},i),{sourceControl:t}))}disable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Ft,this.errors=null,this._forEachChild(o=>{o.disable(N(d({},i),{onlySelf:!0}))}),this._updateValue();let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new re(this.value,e)),this._events.next(new wt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(d({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Nt,this._forEachChild(e=>{e.enable(N(d({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(N(d({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(i,t){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let e=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nt||this.status===Tt)&&this._runAsyncValidator(e,i.emitEvent)}let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new re(this.value,t)),this._events.next(new wt(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(N(d({},i),{sourceControl:t}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ft:Nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,t){if(this.asyncValidator){this.status=Tt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:i!==!1};let e=zn(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,t={}){this.errors=i,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(i){let t=i;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((e,o)=>e&&e._find(o),this)}getError(i,t){let e=t?this.get(t):this;return e?.errors?e.errors[i]:null}hasError(i,t){return!!this.getError(i,t)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,t,e){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||e)&&this._events.next(new wt(this.status,t)),this._parent&&this._parent._updateControlsErrors(i,t,e)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ft:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tt)?Tt:this._anyControlsHaveStatus(ne)?ne:Nt}_anyControlsHaveStatus(i){return this._anyControls(t=>t.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,t){let e=!this._anyControlsDirty(),o=this.pristine!==e;this.pristine=e,i.onlySelf||this._parent?._updatePristine(i,t),o&&this._events.next(new Lt(this.pristine,t))}_updateTouched(i={},t){this.touched=this._anyControlsTouched(),this._events.next(new Pt(this.touched,t)),i.onlySelf||this._parent?._updateTouched(i,t)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){se(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=so(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=lo(this._rawAsyncValidators)}};var Xn=new y("",{factory:()=>Le}),Le="always";function co(n,i){return[...i.path,n]}function uo(n,i,t=Le){ho(n,i),i.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&i.valueAccessor.setDisabledState?.(n.disabled),fo(n,i),mo(n,i),go(n,i),po(n,i)}function Rn(n,i){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function po(n,i){if(i.valueAccessor.setDisabledState){let t=e=>{i.valueAccessor.setDisabledState(e)};n.registerOnDisabledChange(t),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function ho(n,i){let t=io(n);i.validator!==null?n.setValidators(Pn(t,i.validator)):typeof t=="function"&&n.setValidators([t]);let e=oo(n);i.asyncValidator!==null?n.setAsyncValidators(Pn(e,i.asyncValidator)):typeof e=="function"&&n.setAsyncValidators([e]);let o=()=>n.updateValueAndValidity();Rn(i._rawValidators,o),Rn(i._rawAsyncValidators,o)}function fo(n,i){i.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Jn(n,i)})}function go(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Jn(n,i),n.updateOn!=="submit"&&n.markAsTouched()})}function Jn(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function mo(n,i){let t=(e,o)=>{i.valueAccessor.writeValue(e),o&&i.viewToModelUpdate(e)};n.registerOnChange(t),i._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function bo(n,i){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(i,t.currentValue)}function yo(n){return Object.getPrototypeOf(n.constructor)===Ki}function vo(n,i){if(!i)return null;Array.isArray(i);let t,e,o;return i.forEach(r=>{r.constructor===Wn?t=r:yo(r)?e=r:o=r}),o||e||t||null}function Bn(n,i){let t=n.indexOf(i);t>-1&&n.splice(t,1)}function Hn(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var _o=class extends Fe{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,t,e){super(ro(t),ao(e,t)),this._applyFormState(i),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Hn(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,t={}){this.value=this._pendingValue=i,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(i,t={}){this.setValue(i,t)}reset(i=this.defaultValue,t={}){this._applyFormState(i),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Ne(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){Bn(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Bn(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Hn(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var Co={provide:mt,useExisting:he(()=>Eo)},Un=Promise.resolve(),Eo=(()=>{class n extends mt{_changeDetectorRef;callSetDisabledState;control=new _o;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ot;constructor(t,e,o,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=t,this._setValidators(e),this._setAsyncValidators(o),this.valueAccessor=vo(this,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let e=t.name.previousValue;this.formDirective.removeControl({name:e,path:this._getPath(e)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),bo(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){uo(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Un.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let e=t.isDisabled.currentValue,o=e!==0&&_(e);Un.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?co(t,this._parent):[t]}static \u0275fac=function(e){return new(e||n)(I(Oe,9),I(Xi,10),I(Ji,10),I(jn,10),I(Yt,8),I(Xn,8))};static \u0275dir=S({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[O([Co]),E,Wt]})}return n})();var So=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})();var es=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Xn,useValue:t.callSetDisabledState??Le}]}}static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({imports:[So]})}return n})();var ti=`
1
+ import{$ as In,B as _n,C as X,Ca as Ie,Da as te,E as we,Fa as Dt,Ja as T,L as Cn,M as En,O as Sn,Q as Dn,S as Tn,T as ft,U as wn,V as Qt,Y as at,Z as Xt,_ as Et,a as _t,aa as An,b as Se,c as pn,d as Ct,da as Jt,e as hn,ea as W,f as fn,h as gn,ha as St,i as mn,j as bn,m as G,p as De,q as yn,r as xt,s as vn,u as Zt,y as Te}from"./chunk-4SG4352Z.js";import{a as Ce,f as dn,g as cn,h as un,i as it,j as ht,k as Ee}from"./chunk-WMGW2UAL.js";import{$ as q,$a as pt,Ab as on,B as Ze,Dc as _,E as Qe,Eb as rn,Ec as st,Fb as vt,H as Ht,Ha as U,Hb as K,Ib as et,J as he,Jb as nt,K as g,Kb as sn,L as F,Mb as Mt,N as y,Na as Je,Nb as Ot,P as c,Pa as ut,Q as Xe,Qa as I,Ra as tn,Sb as an,Tb as ve,Ub as ln,Vb as R,Wa as $,Wb as qt,X as Ut,Xa as L,Xb as Kt,Ya as S,Z as $t,Za as rt,_ as Z,_a as E,ba as ot,c as Bt,ca as jt,cb as en,d as z,db as nn,f as ze,fc as O,ga as f,h as qe,ia as D,ib as j,ic as _e,ja as Wt,ka as m,la as tt,n as Ke,pa as yt,qc as Q,rb as A,rc as v,s as Ye,sb as fe,tb as ge,tc as b,u as pe,ub as At,vb as me,wb as be,xb as ye,yb as Gt,zb as zt,zc as Yt}from"./chunk-VJ57LHDR.js";import{a as d,b as N,d as Ge}from"./chunk-WCABR6TI.js";function lt(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[lt(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}var $i=Object.defineProperty,Mn=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,On=(n,i,t)=>i in n?$i(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t,xn=(n,i)=>{for(var t in i||(i={}))ji.call(i,t)&&On(n,t,i[t]);if(Mn)for(var t of Mn(i))Wi.call(i,t)&&On(n,t,i[t]);return n};function Nn(...n){if(n){let i=[];for(let t=0;t<n.length;t++){let e=n[t];if(!e)continue;let o=typeof e;if(o==="string"||o==="number")i.push(e);else if(o==="object"){let r=Array.isArray(e)?[Nn(...e)]:Object.entries(e).map(([s,a])=>a?s:void 0);i=r.length?i.concat(r.filter(s=>!!s)):i}}return i.join(" ").trim()}}function Gi(n){return typeof n=="function"&&"call"in n&&"apply"in n}function zi({skipUndefined:n=!1},...i){return i?.reduce((t,e={})=>{for(let o in e){let r=e[o];if(!(n&&r===void 0))if(o==="style")t.style=xn(xn({},t.style),e.style);else if(o==="class"||o==="className")t[o]=Nn(t[o],e[o]);else if(Gi(r)){let s=t[o];t[o]=s?(...a)=>{s(...a),r(...a)}:r}else t[o]=r}return t},{})}function Ae(...n){return zi({skipUndefined:!1},...n)}var ee={};function gt(n="pui_id_"){return Object.hasOwn(ee,n)||(ee[n]=0),ee[n]++,`${n}${ee[n]}`}var Fn=["*"],qi=(function(n){return n[n.ACCEPT=0]="ACCEPT",n[n.REJECT=1]="REJECT",n[n.CANCEL=2]="CANCEL",n})(qi||{}),Ir=(()=>{class n{requireConfirmationSource=new z;acceptConfirmationSource=new z;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac})}return n})();var P=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return n})(),Ar=(()=>{class n{static AND="and";static OR="or"}return n})(),Mr=(()=>{class n{filter(t,e,o,r,s){let a=[];if(t)for(let l of t)for(let u of e){let p=wn(l,u);if(this.filters[r](p,o,s)){a.push(l);break}}return a}filters={startsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).slice(0,r.length)===r},contains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).indexOf(r)!==-1},notContains:(t,e,o)=>{if(e==null||typeof e=="string"&&e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o);return W(t.toString()).toLocaleLowerCase(o).indexOf(r)===-1},endsWith:(t,e,o)=>{if(e==null||e.trim()==="")return!0;if(t==null)return!1;let r=W(e.toString()).toLocaleLowerCase(o),s=W(t.toString()).toLocaleLowerCase(o);return s.indexOf(r,s.length-r.length)!==-1},equals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()===e.getTime():t==e?!0:W(t.toString()).toLocaleLowerCase(o)==W(e.toString()).toLocaleLowerCase(o),notEquals:(t,e,o)=>e==null||typeof e=="string"&&e.trim()===""?!1:t==null?!0:t.getTime&&e.getTime?t.getTime()!==e.getTime():t==e?!1:W(t.toString()).toLocaleLowerCase(o)!=W(e.toString()).toLocaleLowerCase(o),in:(t,e)=>{if(e==null||e.length===0)return!0;for(let o=0;o<e.length;o++)if(Qt(t,e[o]))return!0;return!1},between:(t,e)=>e==null||e[0]==null||e[1]==null?!0:t==null?!1:t.getTime?e[0].getTime()<=t.getTime()&&t.getTime()<=e[1].getTime():e[0]<=t&&t<=e[1],lt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<e.getTime():t<e,lte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()<=e.getTime():t<=e,gt:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>e.getTime():t>e,gte:(t,e,o)=>e==null?!0:t==null?!1:t.getTime&&e.getTime?t.getTime()>=e.getTime():t>=e,is:(t,e,o)=>this.filters.equals(t,e,o),isNot:(t,e,o)=>this.filters.notEquals(t,e,o),before:(t,e,o)=>this.filters.lt(t,e,o),after:(t,e,o)=>this.filters.gt(t,e,o),dateIs:(t,e)=>e==null?!0:t==null?!1:t.toDateString()===e.toDateString(),dateIsNot:(t,e)=>e==null?!0:t==null?!1:t.toDateString()!==e.toDateString(),dateBefore:(t,e)=>e==null?!0:t==null?!1:t.getTime()<e.getTime(),dateAfter:(t,e)=>e==null?!0:t==null?!1:(t.setHours(0,0,0,0),t.getTime()>e.getTime())};register(t,e){this.filters[t]=e}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Or=(()=>{class n{clickSource=new z;parentDragSource=new z;clickObservable=this.clickSource.asObservable();parentDragObservable=this.parentDragSource.asObservable();add(t){t&&this.clickSource.next(t)}emitParentDrag(t){this.parentDragSource.next(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=g({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var xr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=$({type:n,selectors:[["p-header"]],standalone:!1,ngContentSelectors:Fn,decls:1,vars:0,template:function(e,o){e&1&&(et(),nt(0))},encapsulation:2})}return n})(),Nr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=$({type:n,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:Fn,decls:1,vars:0,template:function(e,o){e&1&&(et(),nt(0))},encapsulation:2})}return n})(),Ln=(()=>{class n{template;type;name;constructor(t){this.template=t}getType(){return this.name}static \u0275fac=function(e){return new(e||n)(I(Je))};static \u0275dir=S({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return n})(),dt=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({imports:[it]})}return n})(),Fr=(()=>{class n{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return n})();var $n=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,e){this._renderer=t,this._elementRef=e}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(e){return new(e||n)(I(ut),I(tt))};static \u0275dir=S({type:n})}return n})(),Ki=(()=>{class n extends $n{static \u0275fac=(()=>{let t;return function(o){return(t||(t=m(n)))(o||n)}})();static \u0275dir=S({type:n,features:[E]})}return n})(),jn=new y("");var Yi={provide:jn,useExisting:he(()=>Wn),multi:!0};function Zi(){let n=Ce()?Ce().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var Qi=new y(""),Wn=(()=>{class n extends $n{_compositionMode;_composing=!1;constructor(t,e,o){super(t,e),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Zi())}writeValue(t){let e=t??"";this.setProperty("value",e)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(e){return new(e||n)(I(ut),I(tt),I(Qi,8))};static \u0275dir=S({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,o){e&1&&vt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[O([Yi]),E]})}return n})();var Xi=new y(""),Ji=new y("");function Gn(n){return n!=null}function zn(n){return en(n)?qe(n):n}function qn(n){let i={};return n.forEach(t=>{i=t!=null?d(d({},i),t):i}),Object.keys(i).length===0?null:i}function Kn(n,i){return i.map(t=>t(n))}function to(n){return!n.validate}function Yn(n){return n.map(i=>to(i)?i:t=>i.validate(t))}function eo(n){if(!n)return null;let i=n.filter(Gn);return i.length==0?null:function(t){return qn(Kn(t,i))}}function Zn(n){return n!=null?eo(Yn(n)):null}function no(n){if(!n)return null;let i=n.filter(Gn);return i.length==0?null:function(t){let e=Kn(t,i).map(zn);return Ye(e).pipe(Ke(qn))}}function Qn(n){return n!=null?no(Yn(n)):null}function Pn(n,i){return n===null?[i]:Array.isArray(n)?[...n,i]:[n,i]}function io(n){return n._rawValidators}function oo(n){return n._rawAsyncValidators}function Me(n){return n?Array.isArray(n)?n:[n]:[]}function ie(n,i){return Array.isArray(n)?n.includes(i):n===i}function Vn(n,i){let t=Me(i);return Me(n).forEach(o=>{ie(t,o)||t.push(o)}),t}function kn(n,i){return Me(i).filter(t=>!ie(n,t))}var oe=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=Zn(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control?.reset(i)}hasError(i,t){return this.control?this.control.hasError(i,t):!1}getError(i,t){return this.control?this.control.getError(i,t):null}},Oe=class extends oe{name;get formDirective(){return null}get path(){return null}},mt=class extends oe{_parent=null;name=null;valueAccessor=null},xe=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Jr=(()=>{class n extends xe{constructor(t){super(t)}static \u0275fac=function(e){return new(e||n)(I(mt,2))};static \u0275dir=S({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,o){e&2&&ve("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[E]})}return n})();var Nt="VALID",ne="INVALID",Tt="PENDING",Ft="DISABLED",bt=class{},re=class extends bt{value;source;constructor(i,t){super(),this.value=i,this.source=t}},Lt=class extends bt{pristine;source;constructor(i,t){super(),this.pristine=i,this.source=t}},Pt=class extends bt{touched;source;constructor(i,t){super(),this.touched=i,this.source=t}},wt=class extends bt{status;source;constructor(i,t){super(),this.status=i,this.source=t}};var Ne=class extends bt{source;constructor(i){super(),this.source=i}};function ro(n){return(se(n)?n.validators:n)||null}function so(n){return Array.isArray(n)?Zn(n):n||null}function ao(n,i){return(se(i)?i.asyncValidators:n)||null}function lo(n){return Array.isArray(n)?Qn(n):n||null}function se(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}var Fe=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,t){this._assignValidators(i),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Q(this.statusReactive)}set status(i){Q(()=>this.statusReactive.set(i))}_status=v(()=>this.statusReactive());statusReactive=f(void 0);get valid(){return this.status===Nt}get invalid(){return this.status===ne}get pending(){return this.status===Tt}get disabled(){return this.status===Ft}get enabled(){return this.status!==Ft}errors;get pristine(){return Q(this.pristineReactive)}set pristine(i){Q(()=>this.pristineReactive.set(i))}_pristine=v(()=>this.pristineReactive());pristineReactive=f(!0);get dirty(){return!this.pristine}get touched(){return Q(this.touchedReactive)}set touched(i){Q(()=>this.touchedReactive.set(i))}_touched=v(()=>this.touchedReactive());touchedReactive=f(!1);get untouched(){return!this.touched}_events=new z;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Vn(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Vn(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(kn(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(kn(i,this._rawAsyncValidators))}hasValidator(i){return ie(this._rawValidators,i)}hasAsyncValidator(i){return ie(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let t=this.touched===!1;this.touched=!0;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsTouched(N(d({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Pt(!0,e))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(i))}markAsUntouched(i={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let e=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:e})}),i.onlySelf||this._parent?._updateTouched(i,e),t&&i.emitEvent!==!1&&this._events.next(new Pt(!1,e))}markAsDirty(i={}){let t=this.pristine===!0;this.pristine=!1;let e=i.sourceControl??this;i.onlySelf||this._parent?.markAsDirty(N(d({},i),{sourceControl:e})),t&&i.emitEvent!==!1&&this._events.next(new Lt(!1,e))}markAsPristine(i={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let e=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),i.onlySelf||this._parent?._updatePristine(i,e),t&&i.emitEvent!==!1&&this._events.next(new Lt(!0,e))}markAsPending(i={}){this.status=Tt;let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new wt(this.status,t)),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.markAsPending(N(d({},i),{sourceControl:t}))}disable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Ft,this.errors=null,this._forEachChild(o=>{o.disable(N(d({},i),{onlySelf:!0}))}),this._updateValue();let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new re(this.value,e)),this._events.next(new wt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(d({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let t=this._parentMarkedDirty(i.onlySelf);this.status=Nt,this._forEachChild(e=>{e.enable(N(d({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(N(d({},i),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(i,t){i.onlySelf||(this._parent?.updateValueAndValidity(i),i.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let e=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nt||this.status===Tt)&&this._runAsyncValidator(e,i.emitEvent)}let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new re(this.value,t)),this._events.next(new wt(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),i.onlySelf||this._parent?.updateValueAndValidity(N(d({},i),{sourceControl:t}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ft:Nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,t){if(this.asyncValidator){this.status=Tt,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:i!==!1};let e=zn(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,t={}){this.errors=i,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(i){let t=i;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((e,o)=>e&&e._find(o),this)}getError(i,t){let e=t?this.get(t):this;return e?.errors?e.errors[i]:null}hasError(i,t){return!!this.getError(i,t)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,t,e){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||e)&&this._events.next(new wt(this.status,t)),this._parent&&this._parent._updateControlsErrors(i,t,e)}_initObservables(){this.valueChanges=new ot,this.statusChanges=new ot}_calculateStatus(){return this._allControlsDisabled()?Ft:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tt)?Tt:this._anyControlsHaveStatus(ne)?ne:Nt}_anyControlsHaveStatus(i){return this._anyControls(t=>t.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,t){let e=!this._anyControlsDirty(),o=this.pristine!==e;this.pristine=e,i.onlySelf||this._parent?._updatePristine(i,t),o&&this._events.next(new Lt(this.pristine,t))}_updateTouched(i={},t){this.touched=this._anyControlsTouched(),this._events.next(new Pt(this.touched,t)),i.onlySelf||this._parent?._updateTouched(i,t)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){se(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=so(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=lo(this._rawAsyncValidators)}};var Xn=new y("",{factory:()=>Le}),Le="always";function co(n,i){return[...i.path,n]}function uo(n,i,t=Le){ho(n,i),i.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&i.valueAccessor.setDisabledState?.(n.disabled),fo(n,i),mo(n,i),go(n,i),po(n,i)}function Rn(n,i){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(i)})}function po(n,i){if(i.valueAccessor.setDisabledState){let t=e=>{i.valueAccessor.setDisabledState(e)};n.registerOnDisabledChange(t),i._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function ho(n,i){let t=io(n);i.validator!==null?n.setValidators(Pn(t,i.validator)):typeof t=="function"&&n.setValidators([t]);let e=oo(n);i.asyncValidator!==null?n.setAsyncValidators(Pn(e,i.asyncValidator)):typeof e=="function"&&n.setAsyncValidators([e]);let o=()=>n.updateValueAndValidity();Rn(i._rawValidators,o),Rn(i._rawAsyncValidators,o)}function fo(n,i){i.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Jn(n,i)})}function go(n,i){i.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Jn(n,i),n.updateOn!=="submit"&&n.markAsTouched()})}function Jn(n,i){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function mo(n,i){let t=(e,o)=>{i.valueAccessor.writeValue(e),o&&i.viewToModelUpdate(e)};n.registerOnChange(t),i._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function bo(n,i){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(i,t.currentValue)}function yo(n){return Object.getPrototypeOf(n.constructor)===Ki}function vo(n,i){if(!i)return null;Array.isArray(i);let t,e,o;return i.forEach(r=>{r.constructor===Wn?t=r:yo(r)?e=r:o=r}),o||e||t||null}function Bn(n,i){let t=n.indexOf(i);t>-1&&n.splice(t,1)}function Hn(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var _o=class extends Fe{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,t,e){super(ro(t),ao(e,t)),this._applyFormState(i),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Hn(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,t={}){this.value=this._pendingValue=i,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(i,t={}){this.setValue(i,t)}reset(i=this.defaultValue,t={}){this._applyFormState(i),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Ne(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){Bn(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Bn(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){Hn(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var Co={provide:mt,useExisting:he(()=>Eo)},Un=Promise.resolve(),Eo=(()=>{class n extends mt{_changeDetectorRef;callSetDisabledState;control=new _o;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ot;constructor(t,e,o,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=t,this._setValidators(e),this._setAsyncValidators(o),this.valueAccessor=vo(this,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let e=t.name.previousValue;this.formDirective.removeControl({name:e,path:this._getPath(e)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),bo(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){uo(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Un.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let e=t.isDisabled.currentValue,o=e!==0&&_(e);Un.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?co(t,this._parent):[t]}static \u0275fac=function(e){return new(e||n)(I(Oe,9),I(Xi,10),I(Ji,10),I(jn,10),I(Yt,8),I(Xn,8))};static \u0275dir=S({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[O([Co]),E,Wt]})}return n})();var So=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({})}return n})();var es=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Xn,useValue:t.callSetDisabledState??Le}]}}static \u0275fac=function(e){return new(e||n)};static \u0275mod=L({type:n});static \u0275inj=F({imports:[So]})}return n})();var ti=`
2
2
  *,
3
3
  ::before,
4
4
  ::after {