@mxtommy/kip 3.8.2 → 3.9.0-beta.3

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.
@@ -1,2 +0,0 @@
1
- import{$a as Lr,$b as Jr,A as v,B as vt,C as A,D as fn,Da as pe,E as Cr,Ea as E,Eb as Zr,Ed as gi,F as St,Fa as Ar,Fb as be,Fd as mi,G as wr,Ga as re,Gb as K,Gd as vi,Ha as yt,Hb as Qr,Hd as Si,Ib as In,Ja as Dr,Jb as Kr,Jd as yi,Ka as Or,Kb as _t,Kd as Ri,L as Y,La as Sn,Lb as bt,M as Z,Mb as En,N as he,Na as Rt,Nb as Xr,Oa as yn,Ob as _n,Pa as Nr,Pb as bn,Q as pn,Qa as Ct,Qb as Tn,R as ee,Rb as Tt,Sa as Pr,Ta as Rn,Ua as Ur,Va as Ge,Vc as oi,W as we,Wc as si,X as te,Xa as Cn,Y as gn,Ya as wn,Z as Ir,Za as Ie,_a as Ee,_c as Mt,a as d,ab as xr,ad as ai,b as N,ba as Er,bb as jr,ca as _r,cb as kr,db as $r,eb as Fr,ed as Mn,f as mr,fa as br,fb as zr,g as mt,ga as D,gb as P,gd as ci,ha as mn,hd as ui,i as vr,ia as w,ic as ei,id as Te,j as Sr,jb as Hr,k as dn,l as hn,la as y,lc as ti,ld as li,m as W,ma as Q,mb as Ye,mc as ni,md as Me,nd as di,o as x,oa as m,ob as Br,od as hi,pa as ne,pb as Vr,pd as fi,qa as Tr,qb as _e,qd as Ae,r as G,ra as C,rb as qr,rd as pi,s as M,sa as g,sb as Wr,sd as De,t as h,ta as l,tb as Gr,td as An,te as Dn,u as de,ua as vn,ub as Yr,v as yr,vb as wt,w as Rr,wa as Mr,wb as It,wc as ri,xa as fe,xb as ie,ya as j,yb as Et,yc as ii}from"./chunk-35L7BBBD.js";var Ne=new C(""),Ln=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(g(Ne),g(K))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ge=class{_doc;constructor(r){this._doc=r}manager},On="ng-app-id";function Ci(n){for(let r of n)r.remove()}function wi(n,r){let e=r.createElement("style");return e.textContent=n,e}function Ho(n,r,e,t){let i=n.head?.querySelectorAll(`style[${On}="${r}"],link[${On}="${r}"]`);if(i)for(let o of i)o.removeAttribute(On),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Pn(n,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var xn=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,Ho(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,wi);t?.forEach(i=>this.addUsage(i,this.external,Pn))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(Ci(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ci(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,wi(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Pn(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(g(E),g(Rn),g(Cn,8),g(Ge))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Nn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},jn=/%COMP%/g;var Ei="%COMP%",Bo=`_nghost-${Ei}`,Vo=`_ngcontent-${Ei}`,qo=!0,Wo=new C("",{providedIn:"root",factory:()=>qo});function Go(n){return Vo.replace(jn,n)}function Yo(n){return Bo.replace(jn,n)}function _i(n,r){return r.map(e=>e.replace(jn,n))}var kn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,u=null,f=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=f,this.platformIsServer=!1,this.defaultRenderer=new Ze(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof At?i.applyToHost(e):i instanceof Qe&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,R=this.platformIsServer,I=this.tracingService;switch(t.encapsulation){case wn.Emulated:o=new At(c,u,t,this.appId,f,s,a,R,I);break;case wn.ShadowDom:return new Un(c,u,e,t,s,a,this.nonce,R,I);default:o=new Qe(c,u,t,f,s,a,R,I);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(g(Ln),g(xn),g(Rn),g(Wo),g(E),g(Ge),g(K),g(Cn),g(Zr,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ze=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,i,o){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(Nn[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Ii(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Ii(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,i){if(i){e=i+":"+e;let o=Nn[i];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let i=Nn[t];i?r.removeAttributeNS(i,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,i){i&(Ye.DashCase|Ye.Important)?r.style.setProperty(e,t,i&Ye.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&Ye.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,i){if(typeof r=="string"&&(r=Me().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Ii(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Un=class extends Ze{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=i.styles;f=_i(i.id,f);for(let I of f){let b=document.createElement("style");a&&b.setAttribute("nonce",a),b.textContent=I,this.shadowRoot.appendChild(b)}let R=i.getExternalStyles?.();if(R)for(let I of R){let b=Pn(I,o);a&&b.setAttribute("nonce",a),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Qe=class extends Ze{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let f=t.styles;this.styles=u?_i(u,f):f,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},At=class extends Qe{contentAttr;hostAttr;constructor(r,e,t,i,o,s,a,c,u){let f=i+"-"+t.id;super(r,e,t,o,s,a,c,u,f),this.contentAttr=Go(f),this.hostAttr=Yo(f)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var Dt=class n extends hi{supportsDOMEvents=!0;static makeCurrent(){di(new n)}onAndCancel(r,e,t,i){return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Zo();return e==null?null:Qo(e)}resetBaseElement(){Ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return mi(document.cookie,r)}},Ke=null;function Zo(){return Ke=Ke||document.head.querySelector("base"),Ke?Ke.getAttribute("href"):null}function Qo(n){return new URL(n,document.baseURI).pathname}var Ot=class{addToWindow(r){Q.getAngularTestability=(t,i=!0)=>{let o=r.findTestabilityInTree(t,i);if(o==null)throw new y(5103,!1);return o},Q.getAllAngularTestabilities=()=>r.getAllTestabilities(),Q.getAllAngularRootElements=()=>r.getAllRootElements();let e=t=>{let i=Q.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};Q.frameworkStabilizers||(Q.frameworkStabilizers=[]),Q.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,t){if(e==null)return null;let i=r.getTestability(e);return i??(t?Me().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},Ko=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ti=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),bi=["alt","control","meta","shift"],Xo={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Jo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Mi=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=n.parseEventName(t),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Me().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),bi.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),s+=u+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=Xo[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),bi.forEach(s=>{if(s!==i){let a=Jo[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();function es(n,r){let e=d({rootComponent:n},ts(r));return ui(e)}function ts(n){return{appProviders:[...Ai,...n?.providers??[]],platformProviders:os}}function ns(){Dt.makeCurrent()}function rs(){return new re}function is(){return Pr(document),document}var os=[{provide:Ge,useValue:Si},{provide:Ur,useValue:ns,multi:!0},{provide:E,useFactory:is}];var ss=[{provide:_t,useClass:Ot},{provide:Kr,useClass:bt,deps:[K,En,_t]},{provide:bt,useClass:bt,deps:[K,En,_t]}],Ai=[{provide:Mr,useValue:"root"},{provide:re,useFactory:rs},{provide:Ne,useClass:Ti,multi:!0,deps:[E]},{provide:Ne,useClass:Mi,multi:!0,deps:[E]},kn,xn,Ln,{provide:Br,useExisting:kn},{provide:vi,useClass:Ko},[]],as=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({providers:[...Ai,...ss],imports:[gi,ci]})}return n})();var Di=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var us={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},$n=new C(""),Oi=new C(""),ls=(()=>{class n{events=[];overrides={};options;buildHammer(e){let t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(let i in this.overrides)t.get(i).set(this.overrides[i]);return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ds=(()=>{class n extends ge{_config;_injector;loader;_loaderPromise=null;constructor(e,t,i,o){super(e),this._config=t,this._injector=i,this.loader=o}supports(e){return!(!us.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,i){let o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let s=!1,a=()=>{s=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{if(!window.Hammer){a=()=>{};return}s||(a=this.addEventListener(e,t,i))}).catch(()=>{a=()=>{}})),()=>{a()}}return o.runOutsideAngular(()=>{let s=this._config.buildHammer(e),a=function(c){o.runGuarded(function(){i(c)})};return s.on(t,a),()=>{s.off(t,a),typeof s.destroy=="function"&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static \u0275fac=function(t){return new(t||n)(g(E),g($n),g(pe),g(Oi,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Hc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({providers:[{provide:Ne,useClass:ds,multi:!0,deps:[E,$n,pe,[new Sn,Oi]]},{provide:$n,useClass:ls}]})}return n})(),Fn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:function(t){let i=null;return t?i=new(t||n):i=g(hs),i},providedIn:"root"})}return n})(),hs=(()=>{class n extends Fn{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case P.NONE:return t;case P.HTML:return Ee(t,"HTML")?Ie(t):zr(this._doc,String(t)).toString();case P.STYLE:return Ee(t,"Style")?Ie(t):t;case P.SCRIPT:if(Ee(t,"Script"))return Ie(t);throw new y(5200,!1);case P.URL:return Ee(t,"URL")?Ie(t):Fr(String(t));case P.RESOURCE_URL:if(Ee(t,"ResourceURL"))return Ie(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Lr(e)}bypassSecurityTrustStyle(e){return xr(e)}bypassSecurityTrustScript(e){return jr(e)}bypassSecurityTrustUrl(e){return kr(e)}bypassSecurityTrustResourceUrl(e){return $r(e)}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var p="primary",lt=Symbol("RouteTitle"),qn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Se(n){return new qn(n)}function Fi(n,r,e){let t=e.path.split("/");if(t.length>n.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<n.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:i}}function fs(n,r){if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e)if(!F(n[e],r[e]))return!1;return!0}function F(n,r){let e=n?Wn(n):void 0,t=r?Wn(r):void 0;if(!e||!t||e.length!=t.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!zi(n[i],r[i]))return!1;return!0}function Wn(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function zi(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;let e=[...n].sort(),t=[...r].sort();return e.every((i,o)=>t[o]===i)}else return n===r}function Hi(n){return n.length>0?n[n.length-1]:null}function X(n){return yr(n)?n:Xr(n)?M(Promise.resolve(n)):h(n)}var ps={exact:Vi,subset:qi},Bi={exact:gs,subset:ms,ignored:()=>!0};function Pi(n,r,e){return ps[e.paths](n.root,r.root,e.matrixParams)&&Bi[e.queryParams](n.queryParams,r.queryParams)&&!(e.fragment==="exact"&&n.fragment!==r.fragment)}function gs(n,r){return F(n,r)}function Vi(n,r,e){if(!me(n.segments,r.segments)||!Ut(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!n.children[t]||!Vi(n.children[t],r.children[t],e))return!1;return!0}function ms(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>zi(n[e],r[e]))}function qi(n,r,e){return Wi(n,r,r.segments,e)}function Wi(n,r,e,t){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Ut(i,e,t))}else if(n.segments.length===e.length){if(!me(n.segments,e)||!Ut(n.segments,e,t))return!1;for(let i in r.children)if(!n.children[i]||!qi(n.children[i],r.children[i],t))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!me(n.segments,i)||!Ut(n.segments,i,t)||!n.children[p]?!1:Wi(n.children[p],r,o,t)}}function Ut(n,r,e){return r.every((t,i)=>Bi[e](n[i].parameters,t.parameters))}var H=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){return ys.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},oe=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Se(this.parameters),this._parameterMap}toString(){return Yi(this)}};function vs(n,r){return me(n,r)&&n.every((e,t)=>F(e.parameters,r[t].parameters))}function me(n,r){return n.length!==r.length?!1:n.every((e,t)=>e.path===r[t].path)}function Ss(n,r){let e=[];return Object.entries(n.children).forEach(([t,i])=>{t===p&&(e=e.concat(r(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==p&&(e=e.concat(r(i,t)))}),e}var ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>new se,providedIn:"root"})}return n})(),se=class{parse(r){let e=new Yn(r);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Xe(r.root,!0)}`,t=ws(r.queryParams),i=typeof r.fragment=="string"?`#${Rs(r.fragment)}`:"";return`${e}${t}${i}`}},ys=new se;function Lt(n){return n.segments.map(r=>Yi(r)).join("/")}function Xe(n,r){if(!n.hasChildren())return Lt(n);if(r){let e=n.children[p]?Xe(n.children[p],!1):"",t=[];return Object.entries(n.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${Xe(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Ss(n,(t,i)=>i===p?[Xe(n.children[p],!1)]:[`${i}:${Xe(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[p]!=null?`${Lt(n)}/${e[0]}`:`${Lt(n)}/(${e.join("//")})`}}function Gi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(n){return Gi(n).replace(/%3B/gi,";")}function Rs(n){return encodeURI(n)}function Gn(n){return Gi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(n){return decodeURIComponent(n)}function Ui(n){return xt(n.replace(/\+/g,"%20"))}function Yi(n){return`${Gn(n.path)}${Cs(n.parameters)}`}function Cs(n){return Object.entries(n).map(([r,e])=>`;${Gn(r)}=${Gn(e)}`).join("")}function ws(n){let r=Object.entries(n).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Nt(e)}=${Nt(i)}`).join("&"):`${Nt(e)}=${Nt(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Is=/^[^\/()?;#]+/;function zn(n){let r=n.match(Is);return r?r[0]:""}var Es=/^[^\/()?;=#]+/;function _s(n){let r=n.match(Es);return r?r[0]:""}var bs=/^[^=?&#]+/;function Ts(n){let r=n.match(bs);return r?r[0]:""}var Ms=/^[^&#]+/;function As(n){let r=n.match(Ms);return r?r[0]:""}var Yn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[p]=new S(r,e)),t}parseSegment(){let r=zn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new oe(xt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=_s(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=zn(this.remaining);i&&(t=i,this.capture(t))}r[xt(e)]=xt(t)}parseQueryParam(r){let e=Ts(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=As(this.remaining);s&&(t=s,this.capture(t))}let i=Ui(e),o=Ui(t);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=zn(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function Zi(n){return n.segments.length>0?new S([],{[p]:n}):n}function Qi(n){let r={};for(let[t,i]of Object.entries(n.children)){let o=Qi(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new S(n.segments,r);return Ds(e)}function Ds(n){if(n.numberOfChildren===1&&n.children[p]){let r=n.children[p];return new S(n.segments.concat(r.segments),r.children)}return n}function ae(n){return n instanceof H}function Ki(n,r,e=null,t=null){let i=Xi(n);return Ji(i,r,e,t)}function Xi(n){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new S(o.url,s);return o===n&&(r=a),a}let t=e(n.root),i=Zi(t);return r??i}function Ji(n,r,e,t){let i=n;for(;i.parent;)i=i.parent;if(r.length===0)return Hn(i,i,i,e,t);let o=Os(r);if(o.toRoot())return Hn(i,i,new S([],{}),e,t);let s=Ns(o,i,n),a=s.processChildren?et(s.segmentGroup,s.index,o.commands):to(s.segmentGroup,s.index,o.commands);return Hn(i,s.segmentGroup,a,e,t)}function jt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function nt(n){return typeof n=="object"&&n!=null&&n.outlets}function Hn(n,r,e,t,i){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let s;n===r?s=e:s=eo(n,r,e);let a=Zi(Qi(s));return new H(a,o,i)}function eo(n,r,e){let t={};return Object.entries(n.children).forEach(([i,o])=>{o===r?t[i]=e:t[i]=eo(o,r,e)}),new S(n.segments,t)}var kt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&jt(t[0]))throw new y(4003,!1);let i=t.find(nt);if(i&&i!==Hi(t))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Os(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new kt(!0,0,n);let r=0,e=!1,t=n.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===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new kt(e,r,t)}var Le=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Ns(n,r,e){if(n.isAbsolute)return new Le(r,!0,0);if(!e)return new Le(r,!1,NaN);if(e.parent===null)return new Le(e,!0,0);let t=jt(n.commands[0])?0:1,i=e.segments.length-1+t;return Ps(e,i,n.numberOfDoubleDots)}function Ps(n,r,e){let t=n,i=r,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new y(4005,!1);i=t.segments.length}return new Le(t,!1,i-o)}function Us(n){return nt(n[0])?n[0].outlets:{[p]:n}}function to(n,r,e){if(n??=new S([],{}),n.segments.length===0&&n.hasChildren())return et(n,r,e);let t=Ls(n,r,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new S(n.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(n.segments.slice(t.pathIndex),n.children),et(o,0,i)}else return t.match&&i.length===0?new S(n.segments,{}):t.match&&!n.hasChildren()?Zn(n,r,e):t.match?et(n,0,i):Zn(n,r,e)}function et(n,r,e){if(e.length===0)return new S(n.segments,{});{let t=Us(e),i={};if(Object.keys(t).some(o=>o!==p)&&n.children[p]&&n.numberOfChildren===1&&n.children[p].segments.length===0){let o=et(n.children[p],r,e);return new S(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=to(n.children[o],r,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(n.segments,i)}}function Ls(n,r,e){let t=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(t>=e.length)return o;let s=n.segments[i],a=e[t];if(nt(a))break;let c=`${a}`,u=t<e.length-1?e[t+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!xi(c,u,s))return o;t+=2}else{if(!xi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Zn(n,r,e){let t=n.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(nt(o)){let c=xs(o.outlets);return new S(t,c)}if(i===0&&jt(e[0])){let c=n.segments[r];t.push(new oe(c.path,Li(e[0]))),i++;continue}let s=nt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&jt(a)?(t.push(new oe(s,Li(a))),i+=2):(t.push(new oe(s,{})),i++)}return new S(t,{})}function xs(n){let r={};return Object.entries(n).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Zn(new S([],{}),0,t))}),r}function Li(n){let r={};return Object.entries(n).forEach(([e,t])=>r[e]=`${t}`),r}function xi(n,r,e){return n==e.path&&F(r,e.parameters)}var xe="imperative",_=(function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n})(_||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},ce=class extends L{type=_.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",i=null){super(r,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends L{urlAfterRedirects;type=_.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n})(T||{}),ke=(function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n})(ke||{}),z=class extends L{reason;code;type=_.NavigationCancel;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends L{reason;code;type=_.NavigationSkipped;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}},$e=class extends L{error;target;type=_.NavigationError;constructor(r,e,t,i){super(r,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},rt=class extends L{urlAfterRedirects;state;type=_.RoutesRecognized;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$t=class extends L{urlAfterRedirects;state;type=_.GuardsCheckStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends L{urlAfterRedirects;state;shouldActivate;type=_.GuardsCheckEnd;constructor(r,e,t,i,o){super(r,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends L{urlAfterRedirects;state;type=_.ResolveStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends L{urlAfterRedirects;state;type=_.ResolveEnd;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class{route;type=_.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vt=class{route;type=_.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qt=class{snapshot;type=_.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=_.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=_.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=_.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{routerEvent;position;anchor;type=_.Scroll;constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},it=class{},ze=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function js(n){return!(n instanceof it)&&!(n instanceof ze)}function ks(n,r){return n.providers&&!n._injector&&(n._injector=wt(n.providers,r,`Route: ${n.path}`)),n._injector??r}function $(n){return n.outlet||p}function $s(n,r){let e=n.filter(t=>$(t)===r);return e.push(...n.filter(t=>$(t)!==r)),e}function Ve(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let r=n.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ve(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Re(this.rootInjector)}},Re=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Zt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||n)(g(fe))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Qt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Qn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Qn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Kn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Kn(r,this._root).map(e=>e.value)}};function Qn(n,r){if(n===r.value)return r;for(let e of r.children){let t=Qn(n,e);if(t)return t}return null}function Kn(n,r){if(n===r.value)return[r];for(let e of r.children){let t=Kn(n,e);if(t.length)return t.unshift(r),t}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(n){let r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}var ot=class extends Qt{snapshot;constructor(r,e){super(r),this.snapshot=e,or(this,r)}toString(){return this.snapshot.toString()}};function no(n){let r=Fs(n),e=new x([new oe("",{})]),t=new x({}),i=new x({}),o=new x({}),s=new x(""),a=new V(e,t,o,s,i,p,n,r.root);return a.snapshot=r.root,new ot(new U(a,[]),r)}function Fs(n){let r={},e={},t={},o=new ve([],r,t,"",e,p,n,null,{});return new st("",new U(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(v(u=>u[lt]))??h(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(r=>Se(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(r=>Se(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Kt(n,r,e="emptyOnly"){let t,{routeConfig:i}=n;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:d(d({},r.params),n.params),data:d(d({},r.data),n.data),resolve:d(d(d(d({},n.data),r.data),i?.data),n._resolvedData)}:t={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},i&&io(i)&&(t.resolve[lt]=i.title),t}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[lt]}constructor(r,e,t,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=t,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},st=class extends Qt{url;constructor(r,e){super(e),this.url=r,or(this,e)}toString(){return ro(this._root)}};function or(n,r){r.value._routerState=n,r.children.forEach(e=>or(n,e))}function ro(n){let r=n.children.length>0?` { ${n.children.map(ro).join(", ")} } `:"";return`${n.value}${r}`}function Bn(n){if(n.snapshot){let r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,F(r.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),F(r.params,e.params)||n.paramsSubject.next(e.params),fs(r.url,e.url)||n.urlSubject.next(e.url),F(r.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Xn(n,r){let e=F(n.params,r.params)&&vs(n.url,r.url),t=!n.parent!=!r.parent;return e&&!t&&(!n.parent||Xn(n.parent,r.parent))}function io(n){return typeof n.title=="string"||n.title===null}var oo=new C(""),sr=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new be;deactivateEvents=new be;attachEvents=new be;detachEvents=new be;routerOutletData=ai(void 0);parentContexts=l(Re);location=l(Wr);changeDetector=l(Mn);inputBinder=l(dt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Jn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Et({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Rt]})}return n})(),Jn=class{route;childContexts;parent;outletData;constructor(r,e,t,i){this.route=r,this.childContexts=e,this.parent=t,this.outletData=i}get(r,e){return r===V?this.route:r===Re?this.childContexts:r===oo?this.outletData:this.parent.get(r,e)}},dt=new C(""),ar=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=vt([t.queryParams,t.params,t.data]).pipe(D(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=li(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),cr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=It({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&Jr(0,"router-outlet")},dependencies:[sr],encapsulation:2})}return n})();function ur(n){let r=n.children&&n.children.map(ur),e=r?N(d({},n),{children:r}):d({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=cr),e}function zs(n,r,e){let t=at(n,r._root,e?e._root:void 0);return new ot(t,r)}function at(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let i=Hs(n,r,e);return new U(t,i)}else{if(n.shouldAttach(r.value)){let o=n.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>at(n,a)),s}}let t=Bs(r.value),i=r.children.map(o=>at(n,o));return new U(t,i)}}function Hs(n,r,e){return r.children.map(t=>{for(let i of e.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return at(n,t,i);return at(n,t)})}function Bs(n){return new V(new x(n.url),new x(n.params),new x(n.queryParams),new x(n.fragment),new x(n.data),n.outlet,n.component,n)}var He=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},so="ngNavigationCancelingError";function Xt(n,r){let{redirectTo:e,navigationBehaviorOptions:t}=ae(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ao(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function ao(n,r){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[so]=!0,e.cancellationCode=r,e}function Vs(n){return co(n)&&ae(n.url)}function co(n){return!!n&&n[so]}var qs=(n,r,e,t)=>v(i=>(new er(r,i.targetRouterState,i.currentRouterState,e,t).activate(n),i)),er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Bn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Yt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Wt(r.value.snapshot))}activateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(Bn(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(i.component){let s=t.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),Bn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},Jt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},je=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Ws(n,r,e){let t=n._root,i=r?r._root:null;return Je(t,i,e,[t.value])}function Gs(n){let r=n.routeConfig?n.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:n,guards:r}}function qe(n,r){let e=Symbol(),t=r.get(n,e);return t===e?typeof n=="function"&&!Tr(n)?n:r.get(n):t}function Je(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return n.children.forEach(s=>{Ys(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>tt(a,e.getContext(s),i)),i}function Ys(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=r?r.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Zs(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Jt(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Je(n,r,a?a.children:null,t,i):Je(n,r,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new je(a.outlet.component,s))}else s&&tt(r,a,i),i.canActivateChecks.push(new Jt(t)),o.component?Je(n,null,a?a.children:null,t,i):Je(n,null,e,t,i);return i}function Zs(n,r,e){if(typeof e=="function")return e(n,r);switch(e){case"pathParamsChange":return!me(n.url,r.url);case"pathParamsOrQueryParamsChange":return!me(n.url,r.url)||!F(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xn(n,r)||!F(n.queryParams,r.queryParams);case"paramsChange":default:return!Xn(n,r)}}function tt(n,r,e){let t=Ue(n),i=n.value;Object.entries(t).forEach(([o,s])=>{i.component?r?tt(s,r.children.getContext(o),e):tt(s,null,e):tt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new je(r.outlet.component,i)):e.canDeactivateChecks.push(new je(null,i)):e.canDeactivateChecks.push(new je(null,i))}function ht(n){return typeof n=="function"}function Qs(n){return typeof n=="boolean"}function Ks(n){return n&&ht(n.canLoad)}function Xs(n){return n&&ht(n.canActivate)}function Js(n){return n&&ht(n.canActivateChild)}function ea(n){return n&&ht(n.canDeactivate)}function ta(n){return n&&ht(n.canMatch)}function uo(n){return n instanceof Rr||n?.name==="EmptyError"}var Pt=Symbol("INITIAL_VALUE");function Be(){return D(n=>vt(n.map(r=>r.pipe(ee(1),br(Pt)))).pipe(v(r=>{for(let e of r)if(e!==!0){if(e===Pt)return Pt;if(e===!1||na(e))return e}return!0}),Y(r=>r!==Pt),ee(1)))}function na(n){return ae(n)||n instanceof He}function ra(n,r){return A(e=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(N(d({},e),{guardsResult:!0})):ia(s,t,i,n).pipe(A(a=>a&&Qs(a)?oa(t,o,n,r):h(a)),v(a=>N(d({},e),{guardsResult:a})))})}function ia(n,r,e,t){return M(n).pipe(A(i=>la(i.component,i.route,e,r,t)),te(i=>i!==!0,!0))}function oa(n,r,e,t){return M(r).pipe(he(i=>Cr(aa(i.route.parent,t),sa(i.route,t),ua(n,i.path,e),ca(n,i.route,e))),te(i=>i!==!0,!0))}function sa(n,r){return n!==null&&r&&r(new Gt(n)),h(!0)}function aa(n,r){return n!==null&&r&&r(new qt(n)),h(!0)}function ca(n,r,e){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return h(!0);let i=t.map(o=>St(()=>{let s=Ve(r)??e,a=qe(o,s),c=Xs(a)?a.canActivate(r,n):j(s,()=>a(r,n));return X(c).pipe(te())}));return h(i).pipe(Be())}function ua(n,r,e){let t=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Gs(s)).filter(s=>s!==null).map(s=>St(()=>{let a=s.guards.map(c=>{let u=Ve(s.node)??e,f=qe(c,u),R=Js(f)?f.canActivateChild(t,n):j(u,()=>f(t,n));return X(R).pipe(te())});return h(a).pipe(Be())}));return h(o).pipe(Be())}function la(n,r,e,t,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let c=Ve(r)??i,u=qe(a,c),f=ea(u)?u.canDeactivate(n,r,e,t):j(c,()=>u(n,r,e,t));return X(f).pipe(te())});return h(s).pipe(Be())}function da(n,r,e,t){let i=r.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=qe(s,n),c=Ks(a)?a.canLoad(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Be(),lo(t))}function lo(n){return vr(w(r=>{if(typeof r!="boolean")throw Xt(n,r)}),v(r=>r===!0))}function ha(n,r,e,t){let i=r.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=qe(s,n),c=ta(a)?a.canMatch(r,e):j(n,()=>a(r,e));return X(c)});return h(o).pipe(Be(),lo(t))}var ct=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},ut=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Pe(n){return de(new ct(n))}function fa(n){return de(new y(4e3,!1))}function pa(n){return de(ao(!1,T.GuardRejected))}var tr=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let t=[],i=e.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return h(t);if(i.numberOfChildren>1||!i.children[p])return fa(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,t,i,o){return ga(e,i,o).pipe(v(s=>{if(s instanceof H)throw new ut(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,t);if(s[0]==="/")throw new ut(a);return a}))}applyRedirectCreateUrlTree(r,e,t,i){let o=this.createSegmentGroup(r,e.root,t,i);return new H(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[i]=e[a]}else t[i]=o}),t}createSegmentGroup(r,e,t,i){let o=this.createSegments(r,e.segments,t,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,t,i)}),new S(o,s)}createSegments(r,e,t,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,t))}findPosParam(r,e,t){let i=t[e.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(r,e){let t=0;for(let i of e){if(i.path===r.path)return e.splice(t),i;t++}return r}};function ga(n,r,e){if(typeof n=="string")return h(n);let t=n,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:f,title:R}=r;return X(j(e,()=>t({params:u,data:f,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:R})))}var nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ma(n,r,e,t,i){let o=ho(n,r,e);return o.matched?(t=ks(r,t),ha(t,r,e,i).pipe(v(s=>s===!0?o:d({},nr)))):h(o)}function ho(n,r,e){if(r.path==="**")return va(e);if(r.path==="")return r.pathMatch==="full"&&(n.hasChildren()||e.length>0)?d({},nr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Fi)(e,n,r);if(!i)return d({},nr);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:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function va(n){return{matched:!0,parameters:n.length>0?Hi(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function ji(n,r,e,t){return e.length>0&&Ra(n,e,t)?{segmentGroup:new S(r,ya(t,new S(e,n.children))),slicedSegments:[]}:e.length===0&&Ca(n,e,t)?{segmentGroup:new S(n.segments,Sa(n,e,t,n.children)),slicedSegments:e}:{segmentGroup:new S(n.segments,n.children),slicedSegments:e}}function Sa(n,r,e,t){let i={};for(let o of e)if(tn(n,r,o)&&!t[$(o)]){let s=new S([],{});i[$(o)]=s}return d(d({},t),i)}function ya(n,r){let e={};e[p]=r;for(let t of n)if(t.path===""&&$(t)!==p){let i=new S([],{});e[$(t)]=i}return e}function Ra(n,r,e){return e.some(t=>tn(n,r,t)&&$(t)!==p)}function Ca(n,r,e){return e.some(t=>tn(n,r,t))}function tn(n,r,e){return(n.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function wa(n,r,e){return r.length===0&&!n.children[e]}var rr=class{};function Ia(n,r,e,t,i,o,s="emptyOnly"){return new ir(n,r,e,t,i,s,o).recognize()}var Ea=31,ir=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,t,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new tr(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=ji(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(v(({children:e,rootSnapshot:t})=>{let i=new U(t,e),o=new st("",i),s=Ki(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new ve([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(v(t=>({children:t,rootSnapshot:e})),Z(t=>{if(t instanceof ut)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ct?this.noMatchError(t):t}))}processSegmentGroup(r,e,t,i,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(r,e,t,o):this.processSegment(r,e,t,t.segments,i,!0,o).pipe(v(s=>s instanceof U?[s]:[]))}processChildren(r,e,t,i){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return M(o).pipe(he(s=>{let a=t.children[s],c=$s(e,s);return this.processSegmentGroup(r,c,a,s,i)}),Er((s,a)=>(s.push(...a),s)),pn(null),Ir(),A(s=>{if(s===null)return Pe(t);let a=fo(s);return _a(a),h(a)}))}processSegment(r,e,t,i,o,s,a){return M(e).pipe(he(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,t,i,o,s,a).pipe(Z(u=>{if(u instanceof ct)return h(null);throw u}))),te(c=>!!c),Z(c=>{if(uo(c))return wa(t,i,o)?h(new rr):Pe(t);throw c}))}processSegmentAgainstRoute(r,e,t,i,o,s,a,c){return $(t)!==s&&(s===p||!tn(i,o,t))?Pe(i):t.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,t,o,s,c):Pe(i)}expandSegmentAgainstRouteUsingRedirect(r,e,t,i,o,s,a){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:R,remainingSegments:I}=ho(e,i,o);if(!c)return Pe(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ea&&(this.allowRedirects=!1));let b=new ve(o,u,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ki(i),$(i),i.component??i._loadedComponent??null,i,$i(i)),O=Kt(b,a,this.paramsInheritanceStrategy);return b.params=Object.freeze(O.params),b.data=Object.freeze(O.data),this.applyRedirects.applyRedirectCommands(f,i.redirectTo,R,b,r).pipe(D(le=>this.applyRedirects.lineralizeSegments(i,le)),A(le=>this.processSegment(r,t,e,le.concat(I),s,!1,a)))}matchSegmentAgainstRoute(r,e,t,i,o,s){let a=ma(e,t,i,r,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe(D(c=>c.matched?(r=t._injector??r,this.getChildConfig(r,t,i).pipe(D(({routes:u})=>{let f=t._loadedInjector??r,{parameters:R,consumedSegments:I,remainingSegments:b}=c,O=new ve(I,R,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ki(t),$(t),t.component??t._loadedComponent??null,t,$i(t)),un=Kt(O,s,this.paramsInheritanceStrategy);O.params=Object.freeze(un.params),O.data=Object.freeze(un.data);let{segmentGroup:le,slicedSegments:ln}=ji(e,I,b,u);if(ln.length===0&&le.hasChildren())return this.processChildren(f,u,le,O).pipe(v(gt=>new U(O,gt)));if(u.length===0&&ln.length===0)return h(new U(O,[]));let zo=$(t)===o;return this.processSegment(f,u,le,ln,zo?p:o,!0,O).pipe(v(gt=>new U(O,gt instanceof U?[gt]:[])))}))):Pe(e)))}getChildConfig(r,e,t){return e.children?h({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):da(r,e,t,this.urlSerializer).pipe(A(i=>i?this.configLoader.loadChildren(r,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):pa(e))):h({routes:[],injector:r})}};function _a(n){n.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function ba(n){let r=n.value.routeConfig;return r&&r.path===""}function fo(n){let r=[],e=new Set;for(let t of n){if(!ba(t)){r.push(t);continue}let i=r.find(o=>t.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...t.children),e.add(i)):r.push(t)}for(let t of e){let i=fo(t.children);r.push(new U(t.value,i))}return r.filter(t=>!e.has(t))}function ki(n){return n.data||{}}function $i(n){return n.resolve||{}}function Ta(n,r,e,t,i,o){return A(s=>Ia(n,r,e,t,s.extractedUrl,i,o).pipe(v(({state:a,tree:c})=>N(d({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Ma(n,r){return A(e=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of po(c))s.add(u);let a=0;return M(s).pipe(he(c=>o.has(c)?Aa(c,t,n,r):(c.data=Kt(c,c.parent,n).resolve,h(void 0))),w(()=>a++),gn(1),A(c=>a===s.size?h(e):G))})}function po(n){let r=n.children.map(e=>po(e)).flat();return[n,...r]}function Aa(n,r,e,t){let i=n.routeConfig,o=n._resolve;return i?.title!==void 0&&!io(i)&&(o[lt]=i.title),St(()=>(n.data=Kt(n,n.parent,e).resolve,Da(o,n,r,t).pipe(v(s=>(n._resolvedData=s,n.data=d(d({},n.data),s),null)))))}function Da(n,r,e,t){let i=Wn(n);if(i.length===0)return h({});let o={};return M(i).pipe(A(s=>Oa(n[s],r,e,t).pipe(te(),w(a=>{if(a instanceof He)throw Xt(new se,a);o[s]=a}))),gn(1),v(()=>o),Z(s=>uo(s)?G:de(s)))}function Oa(n,r,e,t){let i=Ve(r)??t,o=qe(n,i),s=o.resolve?o.resolve(r,e):j(i,()=>o(r,e));return X(s)}function Vn(n){return D(r=>{let e=n(r);return e?M(e).pipe(v(()=>r)):h(r)})}var lr=(()=>{class n{buildTitle(e){let t,i=e.root;for(;i!==void 0;)t=this.getResolvedTitleForRoute(i)??t,i=i.children.find(o=>o.outlet===p);return t}getResolvedTitleForRoute(e){return e.data[lt]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>l(go),providedIn:"root"})}return n})(),go=(()=>{class n extends lr{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||n)(g(Di))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ue=new C("",{providedIn:"root",factory:()=>({})}),Ce=new C(""),nn=(()=>{class n{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(oi);loadComponent(e,t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return h(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=X(j(e,()=>t.loadComponent())).pipe(v(vo),D(So),w(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),we(()=>{this.componentLoaders.delete(t)})),o=new hn(i,()=>new W).pipe(dn());return this.componentLoaders.set(t,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return h({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=mo(t,this.compiler,e,this.onLoadEndListener).pipe(we(()=>{this.childrenLoaders.delete(t)})),s=new hn(o,()=>new W).pipe(dn());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function mo(n,r,e,t){return X(j(e,()=>n.loadChildren())).pipe(v(vo),D(So),A(i=>i instanceof Yr||Array.isArray(i)?h(i):M(r.compileModuleAsync(i))),v(i=>{t&&t(n);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Ce,[],{optional:!0,self:!0}).flat()),{routes:s.map(ur),injector:o}}))}function Na(n){return n&&typeof n=="object"&&"default"in n}function vo(n){return Na(n)?n.default:n}function So(n){return h(n)}var rn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>l(Pa),providedIn:"root"})}return n})(),Pa=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),dr=new C(""),hr=new C("");function yo(n,r,e){let t=n.get(hr),i=n.get(E);if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Ua(n)));a.ready.catch(u=>{});let{onViewTransitionCreated:c}=t;return c&&j(n,()=>c({transition:a,from:r,to:e})),s}function Ua(n){return new Promise(r=>{Qr({read:()=>setTimeout(r)},{injector:n})})}var fr=new C(""),on=(()=>{class n{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortWithErrorSubject=new W;configLoader=l(nn);environmentInjector=l(fe);destroyRef=l(Ar);urlSerializer=l(ye);rootContexts=l(Re);location=l(De);inputBindingEnabled=l(dt,{optional:!0})!==null;titleStrategy=l(lr);options=l(ue,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(rn);createViewTransition=l(dr,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Bt(i)),t=i=>this.events.next(new Vt(i));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(N(d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(Y(t=>t!==null),D(t=>{let i=!1;return h(t).pipe(D(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),G;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?N(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new B(o.id,this.urlSerializer.serialize(o.rawUrl),"",ke.IgnoredSameUrlNavigation)),o.resolve(!1),G;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(D(c=>(this.events.next(new ce(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?G:Promise.resolve(c))),Ta(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(c=>{t.targetSnapshot=c.targetSnapshot,t.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=N(d({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let u=new rt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:u,source:f,restoredState:R,extras:I}=o,b=new ce(c,this.urlSerializer.serialize(u),f,R);this.events.next(b);let O=no(this.rootComponentType).snapshot;return this.currentTransition=t=N(d({},o),{targetSnapshot:O,urlAfterRedirects:u,extras:N(d({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=u,h(t)}else return this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),"",ke.IgnoredByUrlHandlingStrategy)),o.resolve(!1),G}),w(o=>{let s=new $t(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=t=N(d({},o),{guards:Ws(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),ra(this.environmentInjector,o=>this.events.next(o)),w(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Xt(this.urlSerializer,o.guardsResult);let s=new Ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),Y(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",T.GuardRejected),!1)),Vn(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(w(s=>{let a=new zt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),D(s=>{let a=!1;return h(s).pipe(Ma(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),w(s=>{let a=new Ht(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Vn(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent){let u=Ve(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(u,a.routeConfig).pipe(w(f=>{a.component=f}),v(()=>{})))}for(let u of a.children)c.push(...s(u));return c};return vt(s(o.targetSnapshot.root)).pipe(pn(null),ee(1))}),Vn(()=>this.afterPreactivation()),D(()=>{let{currentSnapshot:o,targetSnapshot:s}=t,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?M(a).pipe(v(()=>t)):h(t)}),v(o=>{let s=zs(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=N(d({},o),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),w(()=>{this.events.next(new it)}),qs(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ee(1),mn(new Sr(o=>{let s=t.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(Y(()=>!i&&!t.targetRouterState),w(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",T.Aborted)}))),w({next:o=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),mn(this.transitionAbortWithErrorSubject.pipe(w(o=>{throw o}))),we(()=>{i||this.cancelNavigationTransition(t,"",T.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),Z(o=>{if(this.destroyed)return t.resolve(!1),G;if(i=!0,co(o))this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),Vs(o)?this.events.next(new ze(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let s=new $e(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let a=j(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof He){let{message:c,cancellationCode:u}=Xt(this.urlSerializer,a);this.events.next(new z(t.id,this.urlSerializer.serialize(t.extractedUrl),c,u)),this.events.next(new ze(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(a)}}return G}))}))}cancelNavigationTransition(e,t,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),t,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function La(n){return n!==xe}var Ro=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>l(xa),providedIn:"root"})}return n})(),en=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},xa=(()=>{class n extends en{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yn(n)))(i||n)}})();static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Co=(()=>{class n{urlSerializer=l(ye);options=l(ue,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(De);urlHandlingStrategy=l(rn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new H;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,s=i??o;return s instanceof H?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:i}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,i),this.routerState=e):this.rawUrlTree=i}routerState=no(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>l(ja),providedIn:"root"})}return n})(),ja=(()=>{class n extends Co{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof ce?this.updateStateMemento():e instanceof B?this.commitTransition(t):e instanceof rt?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof it?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof z&&e.code!==T.SupersededByNewNavigation&&e.code!==T.Redirect?this.restoreHistory(t):e instanceof $e?this.restoreHistory(t,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:i}){let{replaceUrl:o,state:s}=t;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=yn(n)))(i||n)}})();static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function sn(n,r){n.events.pipe(Y(e=>e instanceof k||e instanceof z||e instanceof $e||e instanceof B),v(e=>e instanceof k||e instanceof B?0:(e instanceof z?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Y(e=>e!==2),ee(1)).subscribe(()=>{r()})}var ka={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$a={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},q=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(In);stateManager=l(Co);options=l(ue,{optional:!0})||{};pendingTasks=l(Or);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(on);urlSerializer=l(ye);location=l(De);urlHandlingStrategy=l(rn);injector=l(fe);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Ro);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(Ce,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(dt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new mt;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof z&&t.code!==T.Redirect&&t.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof k)this.navigated=!0;else if(t instanceof ze){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,i.currentRawUrl),c=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||La(i.source)},s);this.scheduleNavigation(a,xe,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}js(t)&&this._events.next(t)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,i)=>{this.navigateToSyncWithBrowser(e,i,t)})}navigateToSyncWithBrowser(e,t,i){let o={replaceUrl:!0},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(e);this.scheduleNavigation(a,t,s,o).catch(c=>{this.disposed||this.injector.get(yt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ur),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,u=c?this.currentUrlTree.fragment:s,f=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":f=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}f!==null&&(f=this.removeEmptyProps(f));let R;try{let I=i?i.snapshot:this.routerState.snapshot.root;R=Xi(I)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),R=this.currentUrlTree.root}return Ji(R,e,f,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){let i=ae(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,xe,null,t)}navigate(e,t={skipLocationChange:!1}){return Fa(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let i;if(t===!0?i=d({},ka):t===!1?i=d({},$a):i=t,ae(e))return Pi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pi(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((t,[i,o])=>(o!=null&&(t[i]=o),t),{})}scheduleNavigation(e,t,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((R,I)=>{a=R,c=I});let f=this.pendingTasks.add();return sn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(R=>Promise.reject(R))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Fa(n){for(let r=0;r<n.length;r++)if(n[r]==null)throw new y(4008,!1)}var wo=(()=>{class n{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Dr(null);get href(){return si(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;applicationErrorHandler=l(yt);options=l(ue,{optional:!0});constructor(e,t,i,o,s,a){this.router=e,this.route=t,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Mt("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,t=i=>i==="merge"||i==="preserve";e||=t(this.queryParamsHandling),e||=!this.queryParamsHandling&&!t(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof k&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ae(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,t){let i=this.renderer,o=this.el.nativeElement;t!==null?i.setAttribute(o,e,t):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ae(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||n)(_e(q),_e(V),Nr("tabindex"),_e(Vr),_e(Ct),_e(Ae))};static \u0275dir=Et({type:n,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(t,i){t&1&&ei("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&Tt("href",i.reactiveHref(),Hr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Te],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Te],replaceUrl:[2,"replaceUrl","replaceUrl",Te],routerLink:"routerLink"},features:[Rt]})}return n})();var ft=class{};var Io=(()=>{class n{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,i,o){this.router=e,this.injector=t,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Y(e=>e instanceof k),he(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let i=[];for(let o of t){o.providers&&!o._injector&&(o._injector=wt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return M(i).pipe(fn())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let i;t.loadChildren&&t.canLoad===void 0?i=this.loader.loadChildren(e,t):i=h(null);let o=i.pipe(A(s=>s===null?h(void 0):(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(t.loadComponent&&!t._loadedComponent){let s=this.loader.loadComponent(e,t);return M([o,s]).pipe(fn())}else return o})}static \u0275fac=function(t){return new(t||n)(g(q),g(fe),g(ft),g(nn))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Eo=new C(""),za=(()=>{class n{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=xe;restoredId=0;store={};constructor(e,t,i,o,s={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ce?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===ke.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fe&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>mr(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new Fe(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){qr()};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();function Ha(n,...r){return vn([{provide:Ce,multi:!0,useValue:n},[],{provide:V,useFactory:_o,deps:[q]},{provide:bn,multi:!0,useFactory:bo},r.map(e=>e.\u0275providers)])}function _o(n){return n.routerState.root}function We(n,r){return{\u0275kind:n,\u0275providers:r}}function bo(){let n=l(pe);return r=>{let e=n.get(Tn);if(r!==e.components[0])return;let t=n.get(q),i=n.get(To);n.get(gr)===1&&t.initialNavigation(),n.get(Do,null,{optional:!0})?.setUpPreloading(),n.get(Eo,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var To=new C("",{factory:()=>new W}),gr=new C("",{providedIn:"root",factory:()=>1});function Mo(){let n=[{provide:gr,useValue:0},_n(()=>{let r=l(pe);return r.get(fi,Promise.resolve()).then(()=>new Promise(t=>{let i=r.get(q),o=r.get(To);sn(i,()=>{t(!0)}),r.get(on).afterPreactivation=()=>(t(!0),o.closed?h(void 0):o),i.initialNavigation()}))})];return We(2,n)}function Ao(){let n=[_n(()=>{l(q).setUpLocationChangeListener()}),{provide:gr,useValue:2}];return We(3,n)}var Do=new C("");function Oo(n){return We(0,[{provide:Do,useExisting:Io},{provide:ft,useExisting:n}])}function Ba(){return We(6,[{provide:Ae,useClass:An}])}function No(){return We(8,[ar,{provide:dt,useExisting:ar}])}function Po(n){Gr("NgRouterViewTransitions");let r=[{provide:dr,useValue:yo},{provide:hr,useValue:d({skipNextTransition:!!n?.skipInitialTransition},n)}];return We(9,r)}var Uo=[De,{provide:ye,useClass:se},q,Re,{provide:V,useFactory:_o,deps:[q]},nn,[]],Va=(()=>{class n{constructor(){}static forRoot(e,t){return{ngModule:n,providers:[Uo,[],{provide:Ce,multi:!0,useValue:e},[],t?.errorHandler?{provide:fr,useValue:t.errorHandler}:[],{provide:ue,useValue:t||{}},t?.useHash?Wa():Ga(),qa(),t?.preloadingStrategy?Oo(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?Ya(t):[],t?.bindToComponentInputs?No().\u0275providers:[],t?.enableViewTransitions?Po().\u0275providers:[],Za()]}}static forChild(e){return{ngModule:n,providers:[{provide:Ce,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({})}return n})();function qa(){return{provide:Eo,useFactory:()=>{let n=l(yi),r=l(K),e=l(ue),t=l(on),i=l(ye);return e.scrollOffset&&n.setOffset(e.scrollOffset),new za(i,t,n,r,e)}}}function Wa(){return{provide:Ae,useClass:An}}function Ga(){return{provide:Ae,useClass:pi}}function Ya(n){return[n.initialNavigation==="disabled"?Ao().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Mo().\u0275providers:[]]}var pr=new C("");function Za(){return[{provide:pr,useFactory:bo},{provide:bn,multi:!0,useExisting:pr}]}var an;function Qa(){if(an===void 0&&(an=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(an=n.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return an}function pt(n){return Qa()?.createHTML(n)||n}function Lo(n){return Error(`Unable to find icon with the name "${n}"`)}function Ka(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function xo(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function jo(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var J=class{url;svgText;options;svgElement;constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}},$o=(()=>{class n{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,i,o){this._httpClient=e,this._sanitizer=t,this._errorHandler=o,this._document=i}addSvgIcon(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}addSvgIconLiteral(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}addSvgIconInNamespace(e,t,i,o){return this._addSvgIconConfig(e,t,new J(i,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,i,o){let s=this._sanitizer.sanitize(P.HTML,i);if(!s)throw jo(i);let a=pt(s);return this._addSvgIconConfig(e,t,new J("",a,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,i){return this._addSvgIconSetConfig(e,new J(t,null,i))}addSvgIconSetLiteralInNamespace(e,t,i){let o=this._sanitizer.sanitize(P.HTML,t);if(!o)throw jo(t);let s=pt(o);return this._addSvgIconSetConfig(e,new J("",s,i))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(P.RESOURCE_URL,e);if(!t)throw xo(e);let i=this._cachedIconsByUrl.get(t);return i?h(cn(i)):this._loadSvgIconFromConfig(new J(e,null)).pipe(w(o=>this._cachedIconsByUrl.set(t,o)),v(o=>cn(o)))}getNamedSvgIcon(e,t=""){let i=ko(t,e),o=this._svgIconConfigs.get(i);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(i,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):de(Lo(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?h(cn(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(t=>cn(t)))}_getSvgFromIconSetConfigs(e,t){let i=this._extractIconWithNameFromAnySet(e,t);if(i)return h(i);let o=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Z(a=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(P.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(u)),h(null)})));return wr(o).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw Lo(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(w(t=>e.svgText=t),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?h(null):this._fetchIcon(e).pipe(w(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,i){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let a=this._svgElementFromString(pt("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let i=t.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(e){let t=this._svgElementFromString(pt("<svg></svg>")),i=e.attributes;for(let o=0;o<i.length;o++){let{name:s,value:a}=i[o];s!=="id"&&t.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[o].cloneNode(!0));return t}_setSvgAttributes(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}_fetchIcon(e){let{url:t,options:i}=e,o=i?.withCredentials??!1;if(!this._httpClient)throw Ka();if(t==null)throw Error(`Cannot fetch icon from URL "${t}".`);let s=this._sanitizer.sanitize(P.RESOURCE_URL,t);if(!s)throw xo(t);let a=this._inProgressUrlFetches.get(s);if(a)return a;let c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(v(u=>pt(u)),we(()=>this._inProgressUrlFetches.delete(s)),_r());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,i){return this._svgIconConfigs.set(ko(e,t),i),this}_addSvgIconSetConfig(e,t){let i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let i=0;i<this._resolvers.length;i++){let o=this._resolvers[i](t,e);if(o)return Xa(o)?new J(o.url,null,o.options):new J(o,null)}}static \u0275fac=function(t){return new(t||n)(g(Ri,8),g(Fn),g(E,8),g(re))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function cn(n){return n.cloneNode(!0)}function ko(n,r){return n+":"+r}function Xa(n){return!!(n.url&&n.options)}var Ja=["*"],ec=new C("MAT_ICON_DEFAULT_OPTIONS"),tc=new C("mat-icon-location",{providedIn:"root",factory:nc});function nc(){let n=l(E),r=n?n.location:null;return{getPathname:()=>r?r.pathname+r.search:""}}var Fo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],rc=Fo.map(n=>`[${n}]`).join(", "),ic=/^url\(['"]?#(.*?)['"]?\)$/,nl=(()=>{class n{_elementRef=l(Ct);_iconRegistry=l($o);_location=l(tc);_errorHandler=l(re);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=mt.EMPTY;constructor(){let e=l(new Mt("aria-hidden"),{optional:!0}),t=l(ec,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let i=e.childNodes[t];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>e.classList.remove(i)),t.forEach(i=>e.classList.add(i)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((i,o)=>{i.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(rc),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<t.length;o++)Fo.forEach(s=>{let a=t[o],c=a.getAttribute(s),u=c?c.match(ic):null;if(u){let f=i.get(a);f||(f=[],i.set(a,f)),f.push({name:s,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,i]=this._splitIconName(e);t&&(this._svgNamespace=t),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,t).pipe(ee(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${t}:${i}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=It({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,i){t&2&&(Tt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ii(i.color?"mat-"+i.color:""),ri("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Te],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Ja,decls:1,vars:0,template:function(t,i){t&1&&(ti(),ni(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
2
- `],encapsulation:2,changeDetection:0})}return n})(),rl=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({imports:[Dn,Dn]})}return n})();export{kn as a,es as b,as as c,$n as d,ls as e,Hc as f,Fn as g,V as h,sr as i,q as j,wo as k,Ha as l,Ba as m,Va as n,$o as o,nl as p,rl as q};
@@ -1,2 +0,0 @@
1
- import{a as zt,d as Xt,e as Jt,f as Qt,g as te,h as ee,j as ie,k as se,m as ne,n as re}from"./chunk-GQ3O7IYU.js";import"./chunk-PKNLASTF.js";import"./chunk-VYUMZVH2.js";import"./chunk-CBUY7NMR.js";import"./chunk-JY3WVS7C.js";import{a as oe}from"./chunk-FYMQ3PE4.js";import"./chunk-ZBCOJLI4.js";import{p as G,q as $}from"./chunk-SMXTNO74.js";import"./chunk-3LEMFOCV.js";import"./chunk-7VNHJHIE.js";import"./chunk-2YVW3TBK.js";import"./chunk-TA4GACKT.js";import{$b as Ht,A as xt,Aa as R,Ac as rt,Da as Tt,Ea as Q,Fb as v,Gb as V,Ge as jt,Hb as Mt,Ie as qt,J as Et,Ja as tt,K as H,Mc as ot,Na as kt,Qa as et,R as Rt,Rb as Lt,Rd as Gt,Sd as $t,Td as z,Ue as Kt,Vd as M,Wb as Nt,We as Yt,Xb as At,Yb as Ft,Yd as lt,Zb as _,_b as D,_d as S,be as Ut,de as Wt,ed as at,fa as X,g as y,ga as Ct,gc as Bt,ha as O,ia as It,ic as P,id as T,j as Y,jd as Vt,kc as I,lb as B,le as Zt,m as p,o as Pt,oa as J,ob as it,q as yt,ra as x,sb as Ot,se as dt,ta as c,wb as C,wc as nt,yb as st,za as E,zc as b}from"./chunk-35L7BBBD.js";function pt(r){let e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<t.length;s++)t[s].removeAttribute("id");return i==="canvas"?de(r,e):(i==="input"||i==="select"||i==="textarea")&&le(r,e),ae("canvas",r,e,de),ae("input, textarea, select",r,e,le),e}function ae(r,e,t,i){let s=e.querySelectorAll(r);if(s.length){let n=t.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}var He=0;function le(r,e){e.type!=="file"&&(e.value=r.value),e.type==="radio"&&e.name&&(e.name=`mat-clone-${e.name}-${He++}`)}function de(r,e){let t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch{}}function vt(r){let e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function _t(r,e,t){let{top:i,bottom:s,left:n,right:o}=r;return t>=i&&t<=s&&e>=n&&e<=o}function Be(r,e){let t=e.left<r.left,i=e.left+e.width>r.right,s=e.top<r.top,n=e.top+e.height>r.bottom;return t||i||s||n}function A(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function ce(r,e,t,i){let{top:s,right:n,bottom:o,left:a,width:l,height:d}=r,h=l*e,u=d*e;return i>s-u&&i<o+u&&t>a-h&&t<n+h}var U=class{_document;positions=new Map;constructor(e){this._document=e}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:vt(t)})})}handleScroll(e){let t=M(e),i=this.positions.get(t);if(!i)return null;let s=i.scrollPosition,n,o;if(t===this._document){let d=this.getViewportScrollPosition();n=d.top,o=d.left}else n=t.scrollTop,o=t.scrollLeft;let a=s.top-n,l=s.left-o;return this.positions.forEach((d,h)=>{d.clientRect&&t!==h&&t.contains(h)&&A(d.clientRect,a,l)}),s.top=n,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function ye(r,e){let t=r.rootNodes;if(t.length===1&&t[0].nodeType===e.ELEMENT_NODE)return t[0];let i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function Dt(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];s?r.setProperty(i,s,t?.has(i)?"important":""):r.removeProperty(i)}return r}function k(r,e){let t=e?"":"none";Dt(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function he(r,e,t){Dt(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function W(r,e){return e&&e!="none"?r+" "+e:r}function pe(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=F(e.left,e.top)}function F(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function _e(r){let e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function Ve(r){let e=getComputedStyle(r),t=ct(e,"transition-property"),i=t.find(a=>a==="transform"||a==="all");if(!i)return 0;let s=t.indexOf(i),n=ct(e,"transition-duration"),o=ct(e,"transition-delay");return _e(n[s])+_e(o[s])}function ct(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}var ze=new Set(["position"]),gt=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(e,t,i,s,n,o,a,l,d,h){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=s,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=d,this._renderer=h}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),ge(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return Ve(this._preview)}addEventListener(e,t){return this._renderer.listen(this._preview,e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,i=e?e.template:null,s;if(i&&e){let n=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=ye(o,this._document),this._previewEmbeddedView=o,e.matchSize?pe(s,n):s.style.transform=F(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=pt(this._rootElement),pe(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return Dt(s.style,{"pointer-events":"none",margin:ge(s)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},ze),k(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("popover","manual"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}};function ge(r){return"showPopover"in r}var Ge={passive:!0},ue={passive:!1},$e={passive:!1,capture:!0},Ue=800,me="cdk-drag-placeholder",fe=new Set(["position"]),ut=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=tt(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new p;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=y.EMPTY;_pointerUpSubscription=y.EMPTY;_scrollSubscription=y.EMPTY;_resizeSubscription=y.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>k(t,e)))}_disabled=!1;beforeStarted=new p;started=new p;released=new p;ended=new p;entered=new p;exited=new p;dropped=new p;moved=this._moveEvents;data;constrainPosition;constructor(e,t,i,s,n,o,a){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._renderer=a,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new U(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>S(i)),this._handles.forEach(i=>k(i,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=S(e);if(t!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(t,"mousedown",this._pointerDown,ue),i.listen(t,"touchstart",this._pointerDown,Ge),i.listen(t,"dragstart",this._nativeDragStart,ue)]),this._initialTransform=void 0,this._rootElement=t}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?S(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Be(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let e=this._boundaryElement.getBoundingClientRect(),t=this._rootElement.getBoundingClientRect(),i=0,s=0;t.left<e.left?i=e.left-t.left:t.right>e.right&&(i=e.right-t.right),t.top<e.top?s=e.top-t.top:t.bottom>e.bottom&&(s=e.bottom-t.bottom);let n=this._activeTransform.x,o=this._activeTransform.y,a=n+i,l=o+s;this._rootElement.style.transform=F(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),k(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),k(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){let s=Math.abs(t.x-this._pickupPositionOnPage.x),n=Math.abs(t.y-this._pickupPositionOnPage.y);if(s+n>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),l=this._dropContainer;if(!a){this._endDragSequence(e);return}(!l||!l.isDragging()&&!l.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(e)))}return}e.cancelable&&e.preventDefault();let i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,n=this._activeTransform;n.x=i.x-s.x+this._passiveTransform.x,n.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(n.x,n.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=e=>{this._endDragSequence(e)};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){L(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(t,"selectstart",We,$e)}),i){let s=this._rootElement,n=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");n.insertBefore(a,s),this._initialTransform=s.style.transform||"",this._preview=new gt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(n,t)),he(s,!1,fe),this._document.body.appendChild(n.replaceChild(o,s)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let i=this.isDragging(),s=L(t),n=!s&&t.button!==0,o=this._rootElement,a=M(t),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+Ue>Date.now(),d=s?$t(t):Gt(t);if(a&&a.draggable&&t.type==="mousedown"&&t.preventDefault(),i||n||l||d)return;if(this._handles.length){let w=o.style;this._rootElementTapHighlight=w.webkitTapHighlightColor||"",w.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(w=>this._updateOnScroll(w)),this._boundaryElement&&(this._boundaryRect=vt(this._boundaryElement));let h=this._previewTemplate;this._pickupPositionInElement=h&&h.template&&!h.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){he(this._rootElement,!0,fe),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(n,this._dropContainer,a),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=a=>{(!a||this._preview&&M(a)===this._preview.element&&a.propertyName==="transform")&&(o(),i(),clearTimeout(n))},n=setTimeout(s,t*1.5),o=this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=ye(this._placeholderRef,this._document)):i=pt(this._rootElement),i.style.pointerEvents="none",i.classList.add(me),i}_getPointerPositionInElement(e,t,i){let s=t===this._rootElement?null:t,n=s?s.getBoundingClientRect():e,o=L(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-n.left-a.left,d=o.pageY-n.top-a.top;return{x:n.left-e.left+l,y:n.top-e.top+d}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),i=L(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||t==="x"?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||t==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:d}=this._getPreviewRect(),h=a.top+o,u=a.bottom-(d-o),w=a.left+n,q=a.right-(l-n);i=ve(i,w,q),s=ve(s,h,u)}return{x:i,y:s}}_updatePointerDirectionDelta(e){let{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,k(this._rootElement,e))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(e=>e()),this._rootElementCleanups=void 0}_applyRootElementTransform(e,t){let i=1/this.scale,s=F(e*i,t*i),n=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=n.transform&&n.transform!="none"?n.transform:""),n.transform=W(s,this._initialTransform)}_applyPreviewTransform(e,t){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=F(e,t);this._preview.setTransform(W(s,i))}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let n=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,s.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t=="number"?t:L(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let i=M(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&A(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=z(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let i=this._previewContainer||"global";if(i==="parent")return e;if(i==="global"){let s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return S(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault()}else this.disabled||e.preventDefault()};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}_conditionallyInsertAnchor(e,t,i){if(e===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(t===this._initialContainer&&t.hasAnchor){let s=this._anchor??=pt(this._placeholder);s.classList.remove(me),s.classList.add("cdk-drag-anchor"),s.style.transform="",i?i.before(s):S(t.element).appendChild(s)}}};function ve(r,e,t){return Math.max(e,Math.min(t,r))}function L(r){return r.type[0]==="t"}function We(r){r.preventDefault()}function j(r,e,t){let i=De(e,r.length-1),s=De(t,r.length-1);if(i===s)return;let n=r[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)r[a]=r[a+o];r[s]=n}function De(r,e){return Math.max(0,Math.min(e,r))}var Z=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(e){this._dragDropRegistry=e}_previousSwap={drag:null,delta:0,overlaps:!1};start(e){this.withItems(e)}sort(e,t,i,s){let n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,s);if(o===-1&&n.length>0)return null;let a=this.orientation==="horizontal",l=n.findIndex(m=>m.drag===e),d=n[o],h=n[l].clientRect,u=d.clientRect,w=l>o?1:-1,q=this._getItemOffsetPx(h,u,w),Ne=this._getSiblingOffsetPx(l,n,w),Ae=n.slice();return j(n,l,o),n.forEach((m,Fe)=>{if(Ae[Fe]===m)return;let bt=m.drag===e,K=bt?q:Ne,wt=bt?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=K;let St=Math.round(m.offset*(1/m.drag.scale));a?(wt.style.transform=W(`translate3d(${St}px, 0, 0)`,m.initialTransform),A(m.clientRect,0,K)):(wt.style.transform=W(`translate3d(0, ${St}px, 0)`,m.initialTransform),A(m.clientRect,K,0))}),this._previousSwap.overlaps=_t(u,t,i),this._previousSwap.drag=d.drag,this._previousSwap.delta=a?s.x:s.y,{previousIndex:l,currentIndex:o}}enter(e,t,i,s){let n=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s,o=this._activeDraggables,a=o.indexOf(e),l=e.getPlaceholderElement(),d=o[n];if(d===e&&(d=o[n+1]),!d&&(n==null||n===-1||n<o.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(d=o[0]),a>-1&&o.splice(a,1),d&&!this._dragDropRegistry.isDragging(d)){let h=d.getRootElement();h.parentElement.insertBefore(l,h),o.splice(n,0,e)}else this._element.appendChild(l),o.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{let t=e.getRootElement();if(t){let i=this._itemPositions.find(s=>s.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return this._getVisualItemPositions().findIndex(t=>t.drag===e)}getItemAtIndex(e){return this._getVisualItemPositions()[e]?.drag||null}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{A(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(t=>{let i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:vt(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=s?t.left-e.left:t.top-e.top;return i===-1&&(n+=s?t.width-e.width:t.height-e.height),n}_getSiblingOffsetPx(e,t,i){let s=this.orientation==="horizontal",n=t[e].clientRect,o=t[e+i*-1],a=n[s?"width":"height"]*i;if(o){let l=s?"left":"top",d=s?"right":"bottom";i===-1?a-=o.clientRect[l]-n[d]:a+=n[l]-o.clientRect[d]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,s=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}else{let o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===e)return!1;if(s){let d=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return n?t>=Math.floor(l.left)&&t<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return o===-1||!this._sortPredicate(o,e)?-1:o}},mt=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(e,t){this._document=e,this._dragDropRegistry=t}start(e){let t=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<t.length;i++){let s=t[i];this._relatedNodes.push([s,s.nextSibling])}this.withItems(e)}sort(e,t,i,s){let n=this._getItemIndexFromPointerPosition(e,t,i),o=this._previousSwap;if(n===-1||this._activeItems[n]===e)return null;let a=this._activeItems[n];if(o.drag===a&&o.overlaps&&o.deltaX===s.x&&o.deltaY===s.y)return null;let l=this.getItemIndex(e),d=e.getPlaceholderElement(),h=a.getRootElement();n>l?h.after(d):h.before(d),j(this._activeItems,l,n);let u=this._getRootNode().elementFromPoint(t,i);return o.deltaX=s.x,o.deltaY=s.y,o.drag=a,o.overlaps=h===u||h.contains(u),{previousIndex:l,currentIndex:n}}enter(e,t,i,s){let n=this._activeItems.indexOf(e);n>-1&&this._activeItems.splice(n,1);let o=s==null||s<0?this._getItemIndexFromPointerPosition(e,t,i):s;o===-1&&(o=this._getClosestItemIndexToPointer(e,t,i));let a=this._activeItems[o];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(o,0,e),a.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){let e=this._element,t=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[s,n]=this._relatedNodes[i];s.parentNode===e&&s.nextSibling!==n&&(n===null?e.appendChild(s):n.parentNode===e&&e.insertBefore(s,n))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}getItemAtIndex(e){return this._activeItems[e]||null}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,i){let s=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(i)),n=s?this._activeItems.findIndex(o=>{let a=o.getRootElement();return s===a||a.contains(s)}):-1;return n===-1||!this._sortPredicate(n,e)?-1:n}_getRootNode(){return this._rootNode||(this._rootNode=z(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let s=1/0,n=-1;for(let o=0;o<this._activeItems.length;o++){let a=this._activeItems[o];if(a!==e){let{x:l,y:d}=a.getRootElement().getBoundingClientRect(),h=Math.hypot(t-l,i-d);h<s&&(s=h,n=o)}}return n}},be=.05,xe=.05,f=(function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r})(f||{}),g=(function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r})(g||{}),ft=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new p;entered=new p;exited=new p;dropped=new p;sorted=new p;receivingStarted=new p;receivingStopped=new p;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=y.EMPTY;_verticalScrollDirection=f.NONE;_horizontalScrollDirection=g.NONE;_scrollNode;_stopScrollTimers=new p;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n;let o=this.element=S(e);this._document=i,this.withOrientation("vertical").withElementContainer(o),t.registerDropContainer(this),this._parentPositions=new U(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){this._draggingStarted(),s==null&&this.sortingDisabled&&(s=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a,event:l})}withItems(e){let t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>e.indexOf(s)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof Z&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if(e==="mixed")this._sortStrategy=new mt(this._document,this._dragDropRegistry);else{let t=new Z(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,i)=>this.sortPredicate(t,i,this)),this}withScrollableParents(e){let t=this._container;return this._scrollableElements=e.indexOf(t)===-1?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;let t=S(this.element),i=this._scrollableElements.indexOf(this._container),s=this._scrollableElements.indexOf(e);return i>-1&&this._scrollableElements.splice(i,1),s>-1&&this._scrollableElements.splice(s,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}getItemAtIndex(e){return this._isDragging?this._sortStrategy.getItemAtIndex(e):this._draggables[e]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._domRect||!ce(this._domRect,be,t,i))return;let n=this._sortStrategy.sort(e,t,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=f.NONE,n=g.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||ce(o.clientRect,be,e,t)&&([s,n]=Ze(a,o.clientRect,this._direction,e,t),(s||n)&&(i=a))}),!s&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};s=Ee(l,t),n=Re(l,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),Et(0,yt).pipe(O(this._stopScrollTimers)).subscribe(()=>{let e=this._scrollNode,t=this.autoScrollStep;this._verticalScrollDirection===f.UP?e.scrollBy(0,-t):this._verticalScrollDirection===f.DOWN&&e.scrollBy(0,t),this._horizontalScrollDirection===g.LEFT?e.scrollBy(-t,0):this._horizontalScrollDirection===g.RIGHT&&e.scrollBy(t,0)})};_isOverContainer(e,t){return this._domRect!=null&&_t(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._domRect||!_t(this._domRect,t,i)||!this.enterPredicate(e,this))return!1;let s=this._getShadowRoot().elementFromPoint(t,i);return s?s===this._container||this._container.contains(s):!1}_startReceiving(e,t){let i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){let t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=z(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}};function Ee(r,e){let{top:t,bottom:i,height:s}=r,n=s*xe;return e>=t-n&&e<=t+n?f.UP:e>=i-n&&e<=i+n?f.DOWN:f.NONE}function Re(r,e){let{left:t,right:i,width:s}=r,n=s*xe;return e>=t-n&&e<=t+n?g.LEFT:e>=i-n&&e<=i+n?g.RIGHT:g.NONE}function Ze(r,e,t,i,s){let n=Ee(e,s),o=Re(e,i),a=f.NONE,l=g.NONE;if(n){let d=r.scrollTop;n===f.UP?d>0&&(a=f.UP):r.scrollHeight-d>r.clientHeight&&(a=f.DOWN)}if(o){let d=r.scrollLeft;t==="rtl"?o===g.RIGHT?d<0&&(l=g.RIGHT):r.scrollWidth+d>r.clientWidth&&(l=g.LEFT):o===g.LEFT?d>0&&(l=g.LEFT):r.scrollWidth-d>r.clientWidth&&(l=g.RIGHT)}return[a,l]}var N={capture:!0},ht={passive:!1,capture:!0},je=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,s){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
2
- `],encapsulation:2,changeDetection:0})}return r})(),Ce=(()=>{class r{_ngZone=c(V);_document=c(Q);_styleLoader=c(Ut);_renderer=c(it).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new p;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=tt([]);_globalListeners;_draggingPredicate=t=>t.isDragging();_domNodesToDirectives=null;pointerMove=new p;pointerUp=new p;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,ht)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(je),this._activeDragInstances.update(s=>[...s,t]),this._activeDragInstances().length===1)){let s=i.type.startsWith("touch"),n=a=>this.pointerUp.next(a),o=[["scroll",a=>this._scroll.next(a),N],["selectstart",this._preventDefaultWhileDragging,ht]];s?o.push(["touchend",n,N],["touchcancel",n,N]):o.push(["mouseup",n,N]),s||o.push(["mousemove",a=>this.pointerMove.next(a),ht]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([a,l,d])=>this._renderer.listen(this._document,a,l,d))})}}stopDragging(t){this._activeDragInstances.update(i=>{let s=i.indexOf(t);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let i=[this._scroll];return t&&t!==this._document&&i.push(new Y(s=>this._ngZone.runOutsideAngular(()=>{let n=this._renderer.listen(t,"scroll",o=>{this._activeDragInstances().length&&s.next(o)},N);return()=>{n()}}))),H(...i)}registerDirectiveNode(t,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(t,i)}removeDirectiveNode(t){this._domNodesToDirectives?.delete(t)}getDragDirectiveForNode(t){return this._domNodesToDirectives?.get(t)||null}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault()};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))};_clearGlobalListeners(){this._globalListeners?.forEach(t=>t()),this._globalListeners=void 0}static \u0275fac=function(i){return new(i||r)};static \u0275prov=J({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),qe={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Ie=(()=>{class r{_document=c(Q);_ngZone=c(V);_viewportRuler=c(Yt);_dragDropRegistry=c(Ce);_renderer=c(it).createRenderer(null,null);constructor(){}createDrag(t,i=qe){return new ut(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(t){return new ft(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=J({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),we=new x("CDK_DRAG_PARENT");var Ke=new x("CdkDragHandle");var Te=new x("CDK_DRAG_CONFIG"),ke=new x("CdkDropList"),Oe=(()=>{class r{element=c(et);dropContainer=c(ke,{optional:!0,skipSelf:!0});_ngZone=c(V);_viewContainerRef=c(Ot);_dir=c(dt,{optional:!0});_changeDetectorRef=c(at);_selfHandle=c(Ke,{optional:!0,self:!0});_parentDrag=c(we,{optional:!0,skipSelf:!0});_dragDropRegistry=c(Ce);_destroyed=new p;_handles=new Pt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new v;released=new v;ended=new v;entered=new v;exited=new v;dropped=new v;moved=new Y(t=>{let i=this._dragRef.moved.pipe(xt(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(t);return()=>{i.unsubscribe()}});_injector=c(Tt);constructor(){let t=this.dropContainer,i=c(Te,{optional:!0}),s=c(Ie);this._dragRef=s.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),t&&(t.addItem(this),t._dropListRef.beforeStarted.pipe(O(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){Mt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){let i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){let i=this._handles.getValue(),s=i.indexOf(t);s>-1&&(i.splice(s,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):S(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof s=="object"&&s?s:lt(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe(Rt(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let s=this._dragDropRegistry.getDragDirectiveForNode(i);if(s){t.withParent(s._dragRef);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){let{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:d,previewContainer:h}=t;this.disabled=l??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}_setupHandlesListener(){this._handles.pipe(It(t=>{let i=t.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Ct(t=>H(...t.map(i=>i._stateChanges.pipe(X(i))))),O(this._destroyed)).subscribe(t=>{let i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}static \u0275fac=function(i){return new(i||r)};static \u0275dir=st({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){i&2&&nt("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",T],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",Vt]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[ot([{provide:we,useExisting:r}]),kt]})}return r})(),Se=new x("CdkDropListGroup");var Me=(()=>{class r{element=c(et);_changeDetectorRef=c(at);_scrollDispatcher=c(Kt);_dir=c(dt,{optional:!0});_group=c(Se,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new p;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=c(Zt).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new v;entered=new v;exited=new v;sorted=new v;_unsortedItems=new Set;constructor(){let t=c(Ie),i=c(Te,{optional:!0});this._dropListRef=t.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(s,n)=>this.enterPredicate(s.data,n.data),this._dropListRef.sortPredicate=(s,n,o)=>this.sortPredicate(s,n.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(t){this._unsortedItems.add(t),t._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef))}removeItem(t){if(this._unsortedItems.delete(t),this._latestSortedRefs){let i=this._latestSortedRefs.indexOf(t._dragRef);i>-1&&(this._latestSortedRefs.splice(i,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(X(this._dir.value),O(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{let i=Wt(this.connectedTo).map(s=>{if(typeof s=="string"){let n=r._dropLists.find(o=>o.id===s);return n}return s});if(this._group&&this._group._items.forEach(s=>{i.indexOf(s)===-1&&i.push(s)}),!this._scrollableParentsResolved){let s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let s=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(s)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=lt(this.autoScrollStep,2),t.hasAnchor=this.hasAnchor,t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef)),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),H(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){let{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(t){this._latestSortedRefs=t,this._dropListRef.withItems(t)}static \u0275fac=function(i){return new(i||r)};static \u0275dir=st({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){i&2&&(Lt("id",s.id),nt("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",T],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",T],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",T],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",T]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[ot([{provide:Se,useValue:void 0},{provide:ke,useExisting:r}])]})}return r})();var Le=(()=>{class r{_bottomSheetRef=c(Qt);clickAction(t){this._bottomSheetRef.dismiss(t)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["dashboards-manage-bottom-sheet"]],decls:11,vars:0,consts:[["mat-list-item","",3,"click"],["matListItemIcon",""]],template:function(i,s){i&1&&(_(0,"mat-action-list")(1,"button",0),P("click",function(){return s.clickAction("duplicate")}),_(2,"mat-icon",1),b(3,"content_copy"),D(),_(4,"span"),b(5,"Duplicate"),D()(),_(6,"button",0),P("click",function(){return s.clickAction("delete")}),_(7,"mat-icon",1),b(8,"delete_forever"),D(),_(9,"span"),b(10,"Delete"),D()()())},dependencies:[re,se,ne,ie,$,G],encapsulation:2})}return r})();var Xe=(r,e)=>e.id;function Je(r,e){if(r&1){let t=Bt();_(0,"div",6),P("cdkDragStarted",function(){E(t);let s=I();return R(s.dragStart())})("cdkDragMoved",function(s){E(t);let n=I();return R(n.onDragMoved(s))})("cdkDragEnded",function(){E(t);let s=I();return R(s.dragEnd())})("press",function(){let s=E(t).$index,n=I();return R(n.onPress(s))})("doubletap",function(){let s=E(t).$index,n=I();return R(n.editDashboard(s))}),_(1,"span",7)(2,"div",8),b(3),D()(),_(4,"p",9),b(5),D()()}if(r&2){let t=e.$implicit,i=e.$index;B(3),rt(i+1),B(2),rt(t.name)}}var Gi=(()=>{class r{pageTitle="Dashboards";_bottomSheet=c(te);_dashboard=c(zt);_uiEvent=c(Jt);_dialog=c(Xt);_dragActive=!1;_dragMoved=!1;_dragSuppressThresholdPx=4;addDashboard(){this._dialog.openNameDialog({title:"New Dashboard",name:`Dashboard ${this._dashboard.dashboards().length+1}`,confirmBtnText:"Create",cancelBtnText:"Cancel"}).afterClosed().subscribe(t=>{t&&this._dashboard.add(t.name,[])})}openBottomSheet(t){this._bottomSheet.open(Le).afterDismissed().subscribe(s=>{switch(s){case"delete":this.deleteDashboard(t);break;case"duplicate":this.duplicateDashboard(t,`${this._dashboard.dashboards()[t].name}`);break;default:break}})}editDashboard(t){this._dialog.openNameDialog({title:"Rename Dashboard",name:this._dashboard.dashboards()[t].name,confirmBtnText:"Save",cancelBtnText:"Cancel"}).afterClosed().subscribe(i=>{i&&this._dashboard.update(t,i.name)})}deleteDashboard(t){this._dashboard.delete(t)}duplicateDashboard(t,i){this._dialog.openNameDialog({title:"Duplicate Dashboard",name:`${i} copy`,confirmBtnText:"Save",cancelBtnText:"Cancel"}).afterClosed().subscribe(s=>{s&&this._dashboard.duplicate(t,s.name)})}drop(t){this._dashboard.dashboards.update(i=>{let s=[...i];return j(s,t.previousIndex,t.currentIndex),s})}dragStart(){this._uiEvent.isDragging.set(!0),this._dragActive=!0,this._dragMoved=!1}dragEnd(){this._uiEvent.isDragging.set(!1),this._dragActive=!1,setTimeout(()=>{this._dragMoved=!1},60)}onDragMoved(t){if(!this._dragActive||this._dragMoved)return;Math.hypot(t.distance.x,t.distance.y)>this._dragSuppressThresholdPx&&(this._dragMoved=!0)}onPress(t){this._dragMoved||this.openBottomSheet(t)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=C({type:r,selectors:[["dashboards-editor"]],decls:11,vars:1,consts:[[3,"pageTitle"],["cdkDropList","","cdkDropListOrientation","mixed",1,"dashboard-manage",3,"cdkDropListDropped"],["cdkDrag","","cdkDragBoundary",".dashboard-manage",1,"dashboard-card","dashboard-item"],[1,"dashboard-card","dashboard-item-add","dashboard-add-btn"],["mat-fab","",3,"click"],[2,"margin-top","10px"],["cdkDrag","","cdkDragBoundary",".dashboard-manage",1,"dashboard-card","dashboard-item",3,"cdkDragStarted","cdkDragMoved","cdkDragEnded","press","doubletap"],[2,"display","block","width","100%"],[1,"item-index"],[1,"mat-title-large",2,"margin-top","25px"]],template:function(i,s){i&1&&(Ht(0,"page-header",0),_(1,"div",1),P("cdkDropListDropped",function(o){return s.drop(o)}),Nt(2,Je,6,2,"div",2,Xe),_(4,"div",3)(5,"button",4),P("click",function(){return s.addDashboard()}),_(6,"mat-icon"),b(7,"add_box"),D()(),_(8,"p",5)(9,"i"),b(10,"Add Dashboard"),D()()()()),i&2&&(Ft("pageTitle",s.pageTitle),B(2),At(s._dashboard.dashboards()))},dependencies:[ee,qt,jt,oe,$,G,Me,Oe],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.dashboard-manage[_ngcontent-%COMP%]{box-sizing:border-box;padding:0 60px;width:100%;height:calc(100% - 63px);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-around;overflow-y:auto;scroll-behavior:smooth}.dashboard-card[_ngcontent-%COMP%]{position:relative;height:200px;width:300px;margin:10px;border-radius:15px;padding:10px;align-content:center;text-align:center}.dashboard-item[_ngcontent-%COMP%]{background-color:var(--kip-widget-card-background-color);border:1px solid var(--mat-sys-surface-container-highest)}.dashboard-item-add[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container);border:1px solid var(--mat-sys-surface-container-highest)}.dashboard-add-btn[_ngcontent-%COMP%]{align-content:center;text-align:center;border:dashed 1px var(--mat-sys-outline)}.item-index[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;height:42px;width:42px;background-color:var(--mat-sys-tertiary-fixed);color:var(--mat-sys-surface-bright);border-radius:50%;align-content:center;align-items:center;justify-content:center;font-weight:700}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px var(--mat-sys-on-primary-container),0 8px 10px 1px var(--mat-sys-on-primary-container),0 3px 14px 2px var(--mat-sys-on-primary-container)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}return r})();export{Gi as DashboardsEditorComponent};