diff --git a/404.html b/404.html index d40035374..a269dfb28 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/chunk-ZWLMTOCV.js b/chunk-AIAQHW2T.js similarity index 98% rename from chunk-ZWLMTOCV.js rename to chunk-AIAQHW2T.js index f2ce1fc79..9f6fb424c 100644 --- a/chunk-ZWLMTOCV.js +++ b/chunk-AIAQHW2T.js @@ -1,2 +1,2 @@ -import{f as pt}from"./chunk-WYE4JZFG.js";import{N,P as Ut,f as Ot,g as Et,j as At,l as Mt,n as Dt,o as Pt,p as St,x as Rt,y as Lt}from"./chunk-HYP3ZPSI.js";import{$a as L,$e as B,B as w,Bb as ct,Cb as lt,Eb as V,Ed as T,Fa as J,G as Y,Ga as tt,Gb as W,Ia as et,Jc as M,Ld as vt,Ob as ut,Pb as E,Pd as Tt,Qa as h,Qc as ht,Rd as gt,Ve as Ct,W as q,Xa as it,Ze as H,_ as G,af as g,db as b,eb as I,fb as _,fd as d,ga as m,gb as nt,gd as r,hb as p,hc as dt,ie as bt,ja as s,je as It,k as x,l as j,la as R,ma as $,mb as f,n as Q,nb as v,nc as A,nd as D,oa as K,ob as ot,od as _t,pa as y,pb as U,pd as F,pe as a,qb as k,qd as ft,qe as xt,r as P,ra as C,re as wt,vb as z,wb as O,wc as mt,xb as rt,xe as yt,yb as at,z as S,za as Z,zb as st}from"./chunk-XSFATUKW.js";var Vt=new m("[TUI_CALENDAR_DATE_STREAM]");function de(n){return{provide:Vt,deps:[[new R,new $,ht],[new R,n]],useFactory:Wt}}function Wt(n,t){return n?xt(n).pipe(P(c=>t?t==null?void 0:t.fromControlValue(c):c)):Q(null)}var me=new m("[TUI_DATE_VALUE_TRANSFORMER]"),pe=new m("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),he=new m("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),_e=r(a("confirm")),fe=r(a("cancel")),ve=r(a("done")),Te=r(a("more")),ge=r(a("hide")),be=r(a("showAll")),Ie=r(a("otherDate")),xe=r(a("mobileCalendarTexts")),we=r(a("range")),ye=r(a("countTexts")),Ce=r(a("time")),Oe=r(a("dateTexts")),Ee=r(a("digitalInformationUnits")),Ae=r(a("copyTexts")),Me=r(a("passwordTexts")),De=r(a("shortCalendarMonths")),Pe=r(a("fileTexts")),Se=r(a("pagination")),Re=r(a("inputFileTexts")),Le=r(a("multiSelectTexts")),Ue=r(a("countries")),ke=r(a("previewTexts")),ze=r(a("zoomTexts")),Ft={icon:()=>"@tui.calendar",min:bt,max:It,nativePicker:!1},Ve=d(Ft);var Nt={stringify:String,identityMatcher:gt,disabledItemHandler:Tt},We=d(Nt);var Ht=new m("[TUI_MOBILE_CALENDAR]"),Fe={provide:N,useFactory:()=>s(Rt)&&s(Ht,{optional:!0})||s(N,{skipSelf:!0})},Bt={rotate:"@tui.rotate-ccw-square",prev:"@tui.arrow-left",next:"@tui.arrow-right",zoomIn:"@tui.plus",zoomOut:"@tui.minus",zoomReset:"@tui.minimize"},Ne=d(Bt);var He=d({});var jt="tui-tab-activate",Qt=(()=>{let t=class t{constructor(){var o,i;this.el=T(),this.rla=s(pt,{optional:!0}),this.observer=this.rla&&((o=s(g,{optional:!0}))==null?void 0:o.pipe(w(()=>{var e;return!!((e=this.rla)!=null&&e.isActive)}))),this.sub=S(this.observer||x,((i=this.rla)==null?void 0:i.isActiveChange.pipe(w(Boolean)))||x,this.el.matches("button")?wt(this.el,"click"):x).pipe(M()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(jt,{bubbles:!0})))}ngOnDestroy(){Dt(this.el)&&this.el.blur()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=C({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[L([Ct])]});let n=t;return n})(),zt={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},X=d(zt);function Ri(n){return D(X,n,zt)}var Yt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[E],decls:0,vars:0,template:function(i,e){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab]._icon-start:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab]._icon-end:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} +import{N,P as Ut,f as Ot,g as Et,j as At,l as Mt,n as Dt,o as Pt,p as St,x as Rt,y as Lt}from"./chunk-GGY6MJXK.js";import{f as pt}from"./chunk-UPKNOQ5B.js";import{$a as L,$e as B,B as w,Bb as ct,Cb as lt,Eb as V,Ed as T,Fa as J,G as Y,Ga as tt,Gb as W,Ia as et,Jc as M,Ld as vt,Ob as ut,Pb as E,Pd as Tt,Qa as h,Qc as ht,Rd as gt,Ve as Ct,W as q,Xa as it,Ze as H,_ as G,af as g,db as b,eb as I,fb as _,fd as d,ga as m,gb as nt,gd as r,hb as p,hc as dt,ie as bt,ja as s,je as It,k as x,l as j,la as R,ma as $,mb as f,n as Q,nb as v,nc as A,nd as D,oa as K,ob as ot,od as _t,pa as y,pb as U,pd as F,pe as a,qb as k,qd as ft,qe as xt,r as P,ra as C,re as wt,vb as z,wb as O,wc as mt,xb as rt,xe as yt,yb as at,z as S,za as Z,zb as st}from"./chunk-SY4TDKKS.js";var Vt=new m("[TUI_CALENDAR_DATE_STREAM]");function de(n){return{provide:Vt,deps:[[new R,new $,ht],[new R,n]],useFactory:Wt}}function Wt(n,t){return n?xt(n).pipe(P(c=>t?t==null?void 0:t.fromControlValue(c):c)):Q(null)}var me=new m("[TUI_DATE_VALUE_TRANSFORMER]"),pe=new m("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),he=new m("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),_e=r(a("confirm")),fe=r(a("cancel")),ve=r(a("done")),Te=r(a("more")),ge=r(a("hide")),be=r(a("showAll")),Ie=r(a("otherDate")),xe=r(a("mobileCalendarTexts")),we=r(a("range")),ye=r(a("countTexts")),Ce=r(a("time")),Oe=r(a("dateTexts")),Ee=r(a("digitalInformationUnits")),Ae=r(a("copyTexts")),Me=r(a("passwordTexts")),De=r(a("shortCalendarMonths")),Pe=r(a("fileTexts")),Se=r(a("pagination")),Re=r(a("inputFileTexts")),Le=r(a("multiSelectTexts")),Ue=r(a("countries")),ke=r(a("previewTexts")),ze=r(a("zoomTexts")),Ft={icon:()=>"@tui.calendar",min:bt,max:It,nativePicker:!1},Ve=d(Ft);var Nt={stringify:String,identityMatcher:gt,disabledItemHandler:Tt},We=d(Nt);var Ht=new m("[TUI_MOBILE_CALENDAR]"),Fe={provide:N,useFactory:()=>s(Rt)&&s(Ht,{optional:!0})||s(N,{skipSelf:!0})},Bt={rotate:"@tui.rotate-ccw-square",prev:"@tui.arrow-left",next:"@tui.arrow-right",zoomIn:"@tui.plus",zoomOut:"@tui.minus",zoomReset:"@tui.minimize"},Ne=d(Bt);var He=d({});var jt="tui-tab-activate",Qt=(()=>{let t=class t{constructor(){var o,i;this.el=T(),this.rla=s(pt,{optional:!0}),this.observer=this.rla&&((o=s(g,{optional:!0}))==null?void 0:o.pipe(w(()=>{var e;return!!((e=this.rla)!=null&&e.isActive)}))),this.sub=S(this.observer||x,((i=this.rla)==null?void 0:i.isActiveChange.pipe(w(Boolean)))||x,this.el.matches("button")?wt(this.el,"click"):x).pipe(M()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(jt,{bubbles:!0})))}ngOnDestroy(){Dt(this.el)&&this.el.blur()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=C({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[L([Ct])]});let n=t;return n})(),zt={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},X=d(zt);function Ri(n){return D(X,n,zt)}var Yt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=y({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[E],decls:0,vars:0,template:function(i,e){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab]._icon-start:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab]._icon-end:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} `],encapsulation:2,changeDetection:0});let n=t;return n})(),kt=(()=>{let t=class t{constructor(){this.el=T(),this.injector=s(K),this.nothing=ft(Yt),this.size=s(X).size,this.activeItemIndex=0,this.activeItemIndexChange=new J}get tabs(){return Array.from(this.el.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}moveFocus(o,i){let{tabs:e}=this;St(e.indexOf(o),e,i)}ngAfterViewChecked(){it(()=>{this.markTabAsActive()},{injector:this.injector})}onActivate(o,i){let e=this.tabs.findIndex(l=>l===i);o.stopPropagation(),e!==this.activeItemIndex&&(this.activeItemIndexChange.emit(e),this.activeItemIndex=e)}markTabAsActive(){let{tabs:o,activeElement:i}=this;o.forEach(e=>{let l=e===i;e.classList.toggle("_active",l),e.setAttribute("tabIndex",l?"0":"-1")})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=C({type:t,hostVars:1,hostBindings:function(i,e){i&1&&z("tui-tab-activate",function(u){return e.onActivate(u,u.target)}),i&2&&I("data-size",e.size)},inputs:{size:"size",activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"},standalone:!0});let n=t;return n})(),Li=(()=>{let t=class t{constructor(){this.el=T(),this.options=s(X),this.tabs=s(kt),this.children=vt,this.sub=s(g).pipe(yt(s(tt)),M()).subscribe(()=>this.refresh()),this.underline=this.options.underline}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex),this.refresh()}onKeyDownArrow(o,i){this.tabs.moveFocus(o,i)}refresh(){let{activeElement:o}=this.tabs;if(o&&!o.isConnected)return;let{offsetLeft:i=0,offsetWidth:e=0}=o||{};this.el.style.setProperty("--t-left",F(i)),this.el.style.setProperty("--t-width",F(e))}scrollTo(o){let i=this.tabs.tabs[o];if(!i)return;let{offsetLeft:e,offsetWidth:l}=i;ethis.el.scrollLeft+this.el.offsetWidth&&(this.el.scrollLeft=e+l-this.el.offsetWidth)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=C({type:t,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(i,e,l){if(i&1&&st(l,Qt,4),i&2){let u;ct(u=lt())&&(e.children=u)}},hostVars:4,hostBindings:function(i,e){i&1&&z("keydown.arrowRight.prevent",function(u){return e.onKeyDownArrow(u.target,1)})("keydown.arrowLeft.prevent",function(u){return e.onKeyDownArrow(u.target,-1)})("animationend",function(){return e.refresh()}),i&2&&(nt("--t-color",e.underline===!0?"var(--tui-background-accent-1)":e.underline),p("_underline",e.underline))},inputs:{underline:"underline"},standalone:!0,features:[ut([g,{provide:B,useValue:{childList:!0,characterData:!0,subtree:!0}}]),L([{directive:kt,inputs:["activeItemIndex","activeItemIndex","size","size"],outputs:["activeItemIndexChange","activeItemIndexChange"]}])]});let n=t;return j([_t],n.prototype,"scrollTo",null),n})();var qt=new m("[TUI_TABS_REFRESH]"),Ui=[H,g,Ut({align:"right"}),{provide:B,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:qt,deps:[H,g,A,et,dt],useFactory:(n,t,{body:c},{nativeElement:o},i)=>S(n,t.pipe(G(()=>i.detectChanges()))).pipe(w(()=>c.contains(o)),Y(0),q(null),M())}];var Gt=["*"];function $t(n,t){if(n&1&&(U(0),V(1),k()),n&2){let c=t.polymorpheusOutlet;h(),W(" ",c," ")}}function Kt(n,t){if(n&1&&(f(0,"div",6),b(1,$t,2,1,"ng-container",7),v()),n&2){let c=O(2);p("t-text_horizontal",c.isHorizontal),h(),_("polymorpheusOutlet",c.textContent)}}function Zt(n,t){if(n&1&&(f(0,"div",2),Z(),f(1,"svg",3),ot(2,"circle",4),v(),b(3,Kt,2,3,"div",5),v()),n&2){let c=O();p("t-loader_horizontal",c.isHorizontal)("t-loader_inherit-color",c.inheritColor),h(3),_("ngIf",c.hasText)}}var Jt={size:"m",inheritColor:!1,overlay:!1},te=d(Jt);var Ki=(()=>{let t=class t{constructor(){this.doc=s(A),this.el=T(),this.isIOS=s(Lt),this.options=s(te),this.loading=!0,this.isApple=At(this.el)||this.isIOS,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay}set showLoader(o){o&&this.focused&&Mt(this.doc),this.loading=o}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!Et(this.size)}get focused(){return Pt(this.el)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=y({type:t,selectors:[["tui-loader"]],hostVars:3,hostBindings:function(i,e){i&2&&(I("data-size",e.size),p("_loading",e.loading))},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},standalone:!0,features:[E],ngContentSelectors:Gt,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","height","100%","width","100%",1,"t-icon"],["cx","50%","cy","50%",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(i,e){i&1&&(rt(),f(0,"fieldset",0),at(1),v(),b(2,Zt,4,5,"div",1)),i&2&&(p("t-content_has-overlay",e.hasOverlay)("t-content_loading",e.loading),_("disabled",e.loading&&!e.isApple),I("inert",e.loading||null),h(2),_("ngIf",e.loading))},dependencies:[mt,Ot],styles:["[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem;--tui-thickness: calc(var(--t-diameter) / 12)}._loading[_nghost-%COMP%]{overflow:hidden}[data-size=xs][_nghost-%COMP%]{--t-diameter: .75em}[data-size=s][_nghost-%COMP%]{--t-diameter: 1em}[data-size=m][_nghost-%COMP%]{--t-diameter: 1.5em}[data-size=l][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 5em}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;min-height:var(--t-diameter);flex-shrink:0;align-self:center;color:var(--tui-text-primary);stroke:var(--tui-background-accent-1);animation:tuiFadeIn var(--tui-duration);font-size:1rem}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--tui-font-text-s);margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(-90deg)}50%{transform:rotate(-90deg) rotate(1turn)}to{transform:rotate(-90deg) rotate(3turn)}}.t-icon[_ngcontent-%COMP%]{display:block;width:var(--t-diameter);height:var(--t-diameter);margin:.25rem calc(var(--t-diameter) / -2);border-radius:100%;overflow:hidden;animation:_ngcontent-%COMP%_tuiLoaderRotate 4s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}50%{stroke-dashoffset:calc(.05 * calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness))))}to{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}}.t-circle[_ngcontent-%COMP%]{r:calc(var(--t-diameter) / 2 - var(--tui-thickness));stroke-dasharray:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)));fill:none;stroke:inherit;stroke-width:max(var(--tui-thickness),1.5px);animation:_ngcontent-%COMP%_tuiLoaderDashOffset 4s linear infinite}"],changeDetection:0});let n=t;return n})();export{Ki as a,Vt as b,de as c,me as d,pe as e,Ie as f,Oe as g,Ve as h,We as i,Ht as j,Fe as k,Qt as l,Ri as m,Li as n}; diff --git a/chunk-E54VESK4.js b/chunk-BNVWNJYJ.js similarity index 55% rename from chunk-E54VESK4.js rename to chunk-BNVWNJYJ.js index 3d2d11dd7..f6d1c9faa 100644 --- a/chunk-E54VESK4.js +++ b/chunk-BNVWNJYJ.js @@ -1 +1 @@ -import{a as g}from"./chunk-FURPKULB.js";import{e as b}from"./chunk-WYE4JZFG.js";import{a as y,b as C,c as D}from"./chunk-M65T2WFK.js";import{Ac as T,Eb as n,Fb as u,Gb as f,Pb as h,Qa as r,fb as d,jb as p,kb as c,lb as l,mb as o,nb as m,pa as s}from"./chunk-XSFATUKW.js";import"./chunk-HFDGAYQF.js";function v(e,t){if(e&1&&(o(0,"a",0)(1,"h2",1),n(2),o(3,"span",2),n(4),m()()()),e&2){let a=t.$implicit;d("routerLink",a.link),r(2),f(" ",a.title," "),r(2),u(a.description)}}var x=[{title:"Iot Dashboard",link:"/dashboards/iot",description:"Smart home dashboard"},{title:"Crypto Dashboard",link:"/dashboards/crypto",description:"Crypto token dashboard"}],N=(()=>{let t=class t{constructor(){this.dashboardsListData=x}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=s({type:t,selectors:[["lmb-dashboards-list"]],standalone:!0,features:[h],decls:2,vars:0,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",3,"routerLink"],["tuiTitle",""],["tuiSubtitle",""]],template:function(i,k){i&1&&c(0,v,5,3,"a",0,p),i&2&&l(k.dashboardsListData)},dependencies:[T,b,C,D,g,y],styles:["[_nghost-%COMP%]{display:flex;padding-top:1rem;flex-direction:column;gap:1rem}"],changeDetection:0});let e=t;return e})();export{N as DashboardsListComponent}; +import{a as g}from"./chunk-YR2WX2SW.js";import{e as b}from"./chunk-UPKNOQ5B.js";import{a as y,b as C,c as D}from"./chunk-GXKQ5RYX.js";import{Ac as T,Eb as n,Fb as u,Gb as f,Pb as h,Qa as r,fb as d,jb as p,kb as c,lb as l,mb as o,nb as m,pa as s}from"./chunk-SY4TDKKS.js";import"./chunk-HFDGAYQF.js";function k(e,t){if(e&1&&(o(0,"a",0)(1,"h2",1),n(2),o(3,"span",2),n(4),m()()()),e&2){let a=t.$implicit;d("routerLink",a.link),r(2),f(" ",a.title," "),r(2),u(a.description)}}var v=[{title:"Iot Dashboard",link:"/dashboards/iot",description:"Smart home dashboard"},{title:"Crypto Dashboard",link:"/dashboards/crypto",description:"Crypto token dashboard"}],N=(()=>{let t=class t{constructor(){this.dashboardsListData=v}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=s({type:t,selectors:[["lmb-dashboards-list"]],standalone:!0,features:[h],decls:2,vars:0,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",3,"routerLink"],["tuiTitle",""],["tuiSubtitle",""]],template:function(i,L){i&1&&c(0,k,5,3,"a",0,p),i&2&&l(L.dashboardsListData)},dependencies:[T,b,C,D,g,y],styles:["[_nghost-%COMP%]{display:flex;padding-top:1rem;flex-direction:column;gap:1rem}"],changeDetection:0});let e=t;return e})();export{N as DashboardsListComponent,v as INITIAL_DATA}; diff --git a/chunk-BQLPYTT5.js b/chunk-BQLPYTT5.js deleted file mode 100644 index 6cab3b245..000000000 --- a/chunk-BQLPYTT5.js +++ /dev/null @@ -1 +0,0 @@ -import{e as E,g as A}from"./chunk-OGZW3WSL.js";import"./chunk-ZWLMTOCV.js";import{a as L,b as N,c as S,d as b,e as k}from"./chunk-WYE4JZFG.js";import"./chunk-HYP3ZPSI.js";import{Ac as x,B as c,Eb as r,Gb as g,Pb as T,Qa as h,Vb as C,W as l,Wb as y,Ye as D,gb as v,ja as u,mb as m,nb as o,ob as a,pa as f,r as p,yc as R}from"./chunk-XSFATUKW.js";import"./chunk-HFDGAYQF.js";var q=(()=>{let e=class e{constructor(){var i;this.activatedRoute=u(N),this.data$=u(b).events.pipe(c(t=>t instanceof L),p(t=>{var n;return(n=t.snapshot.firstChild)==null?void 0:n.data.title}),l((i=this.activatedRoute.snapshot.firstChild)==null?void 0:i.data.title))}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f({type:e,selectors:[["lmb-dashboards"]],standalone:!0,features:[T],decls:11,vars:5,consts:[["tuiNavigationNav",""],["routerLink","/dashboards"],["icon","@tui.chevron-left"],["tuiNavigationLogo",""],["tuiFade",""]],template:function(t,n){if(t&1&&(m(0,"nav",0)(1,"a",1),a(2,"tui-icon",2),r(3," Back "),o(),r(4," / "),m(5,"span",3)(6,"span",4),r(7),C(8,"async"),o()(),a(9,"hr"),o(),a(10,"router-outlet")),t&2){let d;v("position","sticky"),h(7),g("",(d=y(8,3,n.data$))!==null&&d!==void 0?d:""," dashboard")}},dependencies:[R,x,k,S,D,E,A],encapsulation:2,changeDetection:0});let s=e;return s})();export{q as DashboardsComponent}; diff --git a/chunk-VB2RI7JU.js b/chunk-DCGDNVNZ.js similarity index 98% rename from chunk-VB2RI7JU.js rename to chunk-DCGDNVNZ.js index 204e2ff85..fe55c9f51 100644 --- a/chunk-VB2RI7JU.js +++ b/chunk-DCGDNVNZ.js @@ -1,2 +1,2 @@ -import{a as Gt,d as Zt,f as et,g as ee,k as ne}from"./chunk-FKFBZDNU.js";import{$ as Jt,Q as qt,S as Qt,Z as Xt,ja as te}from"./chunk-HYP3ZPSI.js";import{a as Y,b as $,c as nt}from"./chunk-M65T2WFK.js";import{$b as Rt,$c as Et,Ac as I,Bb as kt,Cb as vt,Db as Ct,Dc as Pt,Eb as h,Fa as ft,Fb as wt,Gb as R,Ha as _t,Ib as G,Jb as Z,Jd as J,Kb as q,Kc as ot,Lb as O,Lc as X,Mb as V,Nb as H,Oc as It,Oe as jt,Pb as D,Qa as l,Qc as Tt,Rb as Mt,Rc as Lt,Td as Ut,Vb as g,Vc as At,Vd as Kt,Wb as k,Wd as Yt,X as ut,Xb as U,Xc as Bt,Xe as K,Ye as Wt,Za as B,_c as Ft,bd as zt,da as dt,db as f,df as tt,fb as d,fd as Nt,ga as ht,gb as w,hd as Ot,ib as y,ja as S,jb as N,kb as F,kc as P,lb as E,mb as c,nb as m,ob as x,pa as b,pb as St,qb as xt,qe as $t,r as W,s as pt,sa as gt,sb as T,vb as M,w as mt,wb as p,wc as Q,xa as v,xb as bt,xd as Vt,ya as C,yb as at,yc as L,yd as Ht,zb as Dt,zc as yt}from"./chunk-XSFATUKW.js";import{a as lt,b as ct}from"./chunk-HFDGAYQF.js";var pe=new ht("",{factory:()=>"https://api.coincap.io/v2/assets"}),A=(()=>{let i=class i{constructor(){this.http=S(Pt),this.API=S(pe)}getTokens(){return this.http.get(this.API).pipe(W(a=>a.data))}getHistory(a,o){return this.http.get(`${this.API}/${a}/history`,{params:{interval:o}}).pipe(W(r=>r.data))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=dt({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var e=function(t){return t.ArmenianDram="AMD",t.AustralianDollar="AUD",t.AzerbaijaniManat="AZN",t.Baht="THB",t.BahrainiDinar="BHD",t.BelarusianRuble="BYN",t.BrazilianReal="BRL",t.CanadianDollar="CAD",t.CzechKoruna="CZK",t.Dirham="AED",t.Dollar="USD",t.EastCaribbeanDollar="XCD",t.Euro="EUR",t.Forint="HUF",t.GeorgianLari="GEL",t.HongKongDollar="HKD",t.Hryvnia="UAH",t.IndianRupee="INR",t.IndonesianRupiah="IDR",t.IranianRial="IRR",t.IsraeliShekel="ILS",t.KyrgyzstanSom="KGS",t.MalaysianRinggit="MYR",t.MexicanPeso="MXN",t.MoldovanLeu="MDL",t.MongolianTugrik="MNT",t.NewTurkmenManat="TMT",t.PolandZloty="PLN",t.Pound="GBP",t.Ruble="RUB",t.SaudiRiyal="SAR",t.SerbianDinar="RSD",t.SingaporeDollar="SGD",t.SouthAfricanRand="ZAR",t.SriLankanRupee="LKR",t.SwissFranc="CHF",t.TajikistaniSomoni="TJS",t.Tenge="KZT",t.TurkishLira="TRY",t.UzbekSum="UZS",t.VietnameseDong="VND",t.Won="KRW",t.Yen="JPY",t.YuanRenminbi="CNY",t}(e||{}),n=function(t){return t.ArmenianDram="051",t.AustralianDollar="036",t.AzerbaijaniManat="944",t.Baht="764",t.BahrainiDinar="048",t.BelarusianRuble="933",t.BrazilianReal="986",t.CanadianDollar="124",t.CzechKoruna="203",t.Dirham="784",t.Dollar="840",t.EastCaribbeanDollar="951",t.Euro="978",t.Forint="348",t.GeorgianLari="981",t.HongKongDollar="344",t.Hryvnia="980",t.IndianRupee="356",t.IndonesianRupiah="360",t.IranianRial="364",t.IsraeliShekel="376",t.KyrgyzstanSom="417",t.MalaysianRinggit="458",t.MexicanPeso="484",t.MoldovanLeu="498",t.MongolianTugrik="496",t.NewTurkmenManat="934",t.PolandZloty="985",t.Pound="826",t.Ruble="643",t.SaudiRiyal="682",t.SerbianDinar="941",t.SingaporeDollar="702",t.SouthAfricanRand="710",t.SriLankanRupee="144",t.SwissFranc="756",t.TajikistaniSomoni="972",t.Tenge="398",t.TurkishLira="949",t.UzbekSum="860",t.VietnameseDong="704",t.Won="410",t.Yen="392",t.YuanRenminbi="156",t}(n||{});function me(t){switch(t){case e.Ruble:case n.Ruble:return"\u20BD";case e.Dollar:case n.Dollar:case e.MexicanPeso:case n.MexicanPeso:return"$";case e.SingaporeDollar:case n.SingaporeDollar:return"S$";case e.AustralianDollar:case n.AustralianDollar:return"A$";case e.BahrainiDinar:case n.BahrainiDinar:return"BD";case e.CzechKoruna:case n.CzechKoruna:return"K\u010D";case e.HongKongDollar:case n.HongKongDollar:return"HK$";case e.CanadianDollar:case n.CanadianDollar:return"C$";case e.EastCaribbeanDollar:case n.EastCaribbeanDollar:return"EC$";case e.Euro:case n.Euro:return"\u20AC";case e.Forint:case n.Forint:return"Ft";case e.Pound:case n.Pound:return"\xA3";case e.Baht:case n.Baht:return"\u0E3F";case e.TurkishLira:case n.TurkishLira:return"\u20BA";case e.YuanRenminbi:case n.YuanRenminbi:return"CN\xA5";case e.Yen:case n.Yen:return"\xA5";case e.IsraeliShekel:case n.IsraeliShekel:return"\u20AA";case e.IndianRupee:case n.IndianRupee:return"\u20B9";case e.SwissFranc:case n.SwissFranc:return"\u20A3";case e.ArmenianDram:case n.ArmenianDram:return"\u058F";case e.Won:case n.Won:return"\u20A9";case e.Tenge:case n.Tenge:return"\u20B8";case e.Hryvnia:case n.Hryvnia:return"\u20B4";case e.UzbekSum:case n.UzbekSum:return"So'm";case e.KyrgyzstanSom:case n.KyrgyzstanSom:return"c";case e.Dirham:case n.Dirham:return"Dh";case e.TajikistaniSomoni:case n.TajikistaniSomoni:return"SM";case e.MalaysianRinggit:case n.MalaysianRinggit:return"RM";case e.BelarusianRuble:case n.BelarusianRuble:return"Br";case e.GeorgianLari:case n.GeorgianLari:return"\u20BE";case e.AzerbaijaniManat:case n.AzerbaijaniManat:return"\u20BC";case e.SriLankanRupee:case n.SriLankanRupee:return"Rs.";case e.SerbianDinar:case n.SerbianDinar:return"DIN";case e.SaudiRiyal:case n.SaudiRiyal:return"SR";case e.MoldovanLeu:case n.MoldovanLeu:return"L";case e.MongolianTugrik:case n.MongolianTugrik:return"\u20AE";case e.PolandZloty:case n.PolandZloty:return"z\u0142";case e.SouthAfricanRand:case n.SouthAfricanRand:return"R";case e.IranianRial:case n.IranianRial:return"IR";case e.IndonesianRupiah:case n.IndonesianRupiah:return"Rp";case e.VietnameseDong:case n.VietnameseDong:return"\u0111";case e.NewTurkmenManat:case n.NewTurkmenManat:return"TMT";case e.BrazilianReal:case n.BrazilianReal:return"R$";default:return null}}function ue(t){return t===null||Ot(t)?t||"":String(t).padStart(3,"0")}function ie(t){let i=ue(t);return me(i)||i}var We={[e.Ruble]:n.Ruble,[e.Dollar]:n.Dollar,[e.MexicanPeso]:n.MexicanPeso,[e.MoldovanLeu]:n.MoldovanLeu,[e.PolandZloty]:n.PolandZloty,[e.SingaporeDollar]:n.SingaporeDollar,[e.AustralianDollar]:n.AustralianDollar,[e.HongKongDollar]:n.HongKongDollar,[e.CanadianDollar]:n.CanadianDollar,[e.CzechKoruna]:n.CzechKoruna,[e.EastCaribbeanDollar]:n.EastCaribbeanDollar,[e.Euro]:n.Euro,[e.Forint]:n.Forint,[e.Pound]:n.Pound,[e.Baht]:n.Baht,[e.BahrainiDinar]:n.BahrainiDinar,[e.TurkishLira]:n.TurkishLira,[e.YuanRenminbi]:n.YuanRenminbi,[e.Yen]:n.Yen,[e.IsraeliShekel]:n.IsraeliShekel,[e.IndianRupee]:n.IndianRupee,[e.SwissFranc]:n.SwissFranc,[e.ArmenianDram]:n.ArmenianDram,[e.Won]:n.Won,[e.Tenge]:n.Tenge,[e.Hryvnia]:n.Hryvnia,[e.UzbekSum]:n.UzbekSum,[e.KyrgyzstanSom]:n.KyrgyzstanSom,[e.Dirham]:n.Dirham,[e.TajikistaniSomoni]:n.TajikistaniSomoni,[e.MalaysianRinggit]:n.MalaysianRinggit,[e.BelarusianRuble]:n.BelarusianRuble,[e.GeorgianLari]:n.GeorgianLari,[e.AzerbaijaniManat]:n.AzerbaijaniManat,[e.SriLankanRupee]:n.SriLankanRupee,[e.SerbianDinar]:n.SerbianDinar,[e.SaudiRiyal]:n.SaudiRiyal,[e.MongolianTugrik]:n.MongolianTugrik,[e.SouthAfricanRand]:n.SouthAfricanRand,[e.IranianRial]:n.IranianRial,[e.IndonesianRupiah]:n.IndonesianRupiah,[e.VietnameseDong]:n.VietnameseDong,[e.NewTurkmenManat]:n.NewTurkmenManat,[e.BrazilianReal]:n.BrazilianReal};var Ge={[n.Ruble]:e.Ruble,[n.Dollar]:e.Dollar,[n.MexicanPeso]:e.MexicanPeso,[n.MoldovanLeu]:e.MoldovanLeu,[n.PolandZloty]:e.PolandZloty,[n.SingaporeDollar]:e.SingaporeDollar,[n.AustralianDollar]:e.AustralianDollar,[n.HongKongDollar]:e.HongKongDollar,[n.CanadianDollar]:e.CanadianDollar,[n.CzechKoruna]:e.CzechKoruna,[n.EastCaribbeanDollar]:e.EastCaribbeanDollar,[n.Euro]:e.Euro,[n.Forint]:e.Forint,[n.Pound]:e.Pound,[n.Baht]:e.Baht,[n.BahrainiDinar]:e.BahrainiDinar,[n.TurkishLira]:e.TurkishLira,[n.YuanRenminbi]:e.YuanRenminbi,[n.Yen]:e.Yen,[n.IsraeliShekel]:e.IsraeliShekel,[n.IndianRupee]:e.IndianRupee,[n.SwissFranc]:e.SwissFranc,[n.ArmenianDram]:e.ArmenianDram,[n.Won]:e.Won,[n.Tenge]:e.Tenge,[n.Hryvnia]:e.Hryvnia,[n.UzbekSum]:e.UzbekSum,[n.KyrgyzstanSom]:e.KyrgyzstanSom,[n.Dirham]:e.Dirham,[n.TajikistaniSomoni]:e.TajikistaniSomoni,[n.MalaysianRinggit]:e.MalaysianRinggit,[n.BelarusianRuble]:e.BelarusianRuble,[n.GeorgianLari]:e.GeorgianLari,[n.AzerbaijaniManat]:e.AzerbaijaniManat,[n.SriLankanRupee]:e.SriLankanRupee,[n.SerbianDinar]:e.SerbianDinar,[n.SaudiRiyal]:e.SaudiRiyal,[n.MongolianTugrik]:e.MongolianTugrik,[n.SouthAfricanRand]:e.SouthAfricanRand,[n.IranianRial]:e.IranianRial,[n.IndonesianRupiah]:e.IndonesianRupiah,[n.VietnameseDong]:e.VietnameseDong,[n.NewTurkmenManat]:e.NewTurkmenManat,[n.BrazilianReal]:e.BrazilianReal};var de={currency:null,currencyAlign:"right",sign:"negative-only"},he=Nt(de);function ge(t,i){return i==="never"||!t||i==="negative-only"&&t>0?"":i==="force-negative"||t<0&&i!=="force-positive"?Kt:Yt}var fe=2,it=(()=>{let i=class i{constructor(){this.options=S(he),this.format=S(jt)}transform(a,o=this.options.currency,r=this.options.currencyAlign){return this.format.pipe(W(u=>{let _=ge(a,this.options.sign),j=ie(o),rt=Gt(Math.abs(a),ct(lt({},u),{precision:Number.isNaN(u.precision)?fe:u.precision})),st=(j==null?void 0:j.length)>1||r==="right"?Ut:"";return r==="right"?`${_}${rt}${st}${j}`:`${_}${j}${st}${rt}`}))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=gt({name:"tuiAmount",type:i,pure:!0,standalone:!0});let t=i;return t})();var ae={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var _e=(t,i)=>[t,i];function Se(t,i){if(t&1){let s=T();c(0,"button",4),M("click",function(){let o=v(s).$implicit,r=p();return C(r.filterButton.set(o))}),h(1),m()}if(t&2){let s=i.$implicit,a=p();d("tuiAppearanceState",s===a.filterButton()?"active":null),l(),R(" ",s," ")}}var oe=(()=>{let i=class i{constructor(){this.pricesService=S(A),this.step=P(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=P(()=>new Map((this.history()??[]).map((a,o)=>[Math.trunc(o/this.step()),new Date(a.date).toDateString()]))),this.chart=P(()=>this.processData(this.history())),this.minPrice=P(()=>Math.min(...(this.history()??[]).map(a=>Number(a.priceUsd)))),this.maxPrice=P(()=>Math.max(...(this.history()??[]).map(a=>Number(a.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=B(this.filterButtons[0]),this.maxPoints=150,this.token=_t.required(),this.interval=P(()=>ae[this.filterButton()]),this.history=X(pt([ot(this.token),ot(this.interval)]).pipe(ut(([a,o])=>this.pricesService.getHistory(a,o)))),this.yStringify=a=>`${(this.maxPrice()>10?a:a/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=a=>`${this.xTargets().get(a)}`}processData(a){return(a??[]).map((r,u)=>[Math.trunc(u/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,u)=>u%this.step()===0)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[D],decls:9,vars:21,consts:[[1,"axes",3,"axisYLabels","horizontalLines","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(o,r){o&1&&(c(0,"tui-axes",0),g(1,"tuiAmount"),g(2,"async"),g(3,"tuiAmount"),g(4,"async"),x(5,"tui-line-chart",1),m(),c(6,"div",2),F(7,Se,2,2,"button",3,N),m()),o&2&&(d("axisYLabels",Mt(18,_e,k(2,12,k(1,10,r.minPrice()))||"",k(4,16,k(3,14,r.maxPrice()))||""))("horizontalLines",4)("verticalLines",4),l(5),d("height",r.maxPrice()*(r.maxPrice()>10?1:100)-r.minPrice()*(r.maxPrice()>10?1:100))("value",r.chart())("width",r.chart().length)("x",0)("xStringify",r.xStringify)("y",r.minPrice()*(r.maxPrice()>10?1:100))("yStringify",r.yStringify),l(2),E(r.filterButtons))},dependencies:[L,I,it,ee,K,ne],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let t=i;return t})();var xe=[[["input"]],"*"],be=["input","*"];function De(t,i){t&1&&(c(0,"span",3),at(1,1),m())}function ke(t,i){if(t&1&&(St(0),x(1,"span",1),f(2,De,2,0,"span",2),xt()),t&2){let s=i.tuiLet,a=p();l(),w("text-indent",a.indent,"px"),d("textContent",s),l(),d("ngIf",!s)}}var re=(()=>{let i=class i{constructor(){this.value$=mt(()=>$t(this.control)),this.indent=-1}onScroll(a){Ht(a)&&Vt(a)&&(this.indent=-a.scrollLeft-1)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["tui-input-inline"]],contentQueries:function(o,r,u){if(o&1&&Dt(u,Tt,5),o&2){let _;kt(_=vt())&&(r.control=_.first)}},hostBindings:function(o,r){o&1&&M("scroll.capture",function(_){return r.onScroll(_.target)})},standalone:!0,features:[D],ngContentSelectors:be,decls:3,vars:3,consts:[[4,"tuiLet"],[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(o,r){o&1&&(bt(xe),f(0,ke,3,4,"ng-container",0),g(1,"async"),at(2)),o&2&&d("tuiLet",k(1,1,r.value$))},dependencies:[Q,Zt,L],styles:[`tui-input-inline{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{display:block;padding-right:.02em;margin-left:1px;white-space:pre}tui-input-inline>.t-placeholder{display:inline-block;min-width:1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none} +import{a as Gt,d as Zt,f as et,g as ee,k as ne}from"./chunk-JDRSJW3I.js";import{$ as Jt,Q as qt,S as Qt,Z as Xt,ja as te}from"./chunk-GGY6MJXK.js";import{a as Y,b as $,c as nt}from"./chunk-GXKQ5RYX.js";import{$b as Rt,$c as Et,Ac as I,Bb as kt,Cb as vt,Db as Ct,Dc as Pt,Eb as h,Fa as ft,Fb as wt,Gb as R,Ha as _t,Ib as G,Jb as Z,Jd as J,Kb as q,Kc as ot,Lb as O,Lc as X,Mb as V,Nb as H,Oc as It,Oe as jt,Pb as D,Qa as l,Qc as Tt,Rb as Mt,Rc as Lt,Td as Ut,Vb as g,Vc as At,Vd as Kt,Wb as k,Wd as Yt,X as ut,Xb as U,Xc as Bt,Xe as K,Ye as Wt,Za as B,_c as Ft,bd as zt,da as dt,db as f,df as tt,fb as d,fd as Nt,ga as ht,gb as w,hd as Ot,ib as y,ja as S,jb as N,kb as F,kc as P,lb as E,mb as c,nb as m,ob as x,pa as b,pb as St,qb as xt,qe as $t,r as W,s as pt,sa as gt,sb as T,vb as M,w as mt,wb as p,wc as Q,xa as v,xb as bt,xd as Vt,ya as C,yb as at,yc as L,yd as Ht,zb as Dt,zc as yt}from"./chunk-SY4TDKKS.js";import{a as lt,b as ct}from"./chunk-HFDGAYQF.js";var pe=new ht("",{factory:()=>"https://api.coincap.io/v2/assets"}),A=(()=>{let i=class i{constructor(){this.http=S(Pt),this.API=S(pe)}getTokens(){return this.http.get(this.API).pipe(W(a=>a.data))}getHistory(a,o){return this.http.get(`${this.API}/${a}/history`,{params:{interval:o}}).pipe(W(r=>r.data))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=dt({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var e=function(t){return t.ArmenianDram="AMD",t.AustralianDollar="AUD",t.AzerbaijaniManat="AZN",t.Baht="THB",t.BahrainiDinar="BHD",t.BelarusianRuble="BYN",t.BrazilianReal="BRL",t.CanadianDollar="CAD",t.CzechKoruna="CZK",t.Dirham="AED",t.Dollar="USD",t.EastCaribbeanDollar="XCD",t.Euro="EUR",t.Forint="HUF",t.GeorgianLari="GEL",t.HongKongDollar="HKD",t.Hryvnia="UAH",t.IndianRupee="INR",t.IndonesianRupiah="IDR",t.IranianRial="IRR",t.IsraeliShekel="ILS",t.KyrgyzstanSom="KGS",t.MalaysianRinggit="MYR",t.MexicanPeso="MXN",t.MoldovanLeu="MDL",t.MongolianTugrik="MNT",t.NewTurkmenManat="TMT",t.PolandZloty="PLN",t.Pound="GBP",t.Ruble="RUB",t.SaudiRiyal="SAR",t.SerbianDinar="RSD",t.SingaporeDollar="SGD",t.SouthAfricanRand="ZAR",t.SriLankanRupee="LKR",t.SwissFranc="CHF",t.TajikistaniSomoni="TJS",t.Tenge="KZT",t.TurkishLira="TRY",t.UzbekSum="UZS",t.VietnameseDong="VND",t.Won="KRW",t.Yen="JPY",t.YuanRenminbi="CNY",t}(e||{}),n=function(t){return t.ArmenianDram="051",t.AustralianDollar="036",t.AzerbaijaniManat="944",t.Baht="764",t.BahrainiDinar="048",t.BelarusianRuble="933",t.BrazilianReal="986",t.CanadianDollar="124",t.CzechKoruna="203",t.Dirham="784",t.Dollar="840",t.EastCaribbeanDollar="951",t.Euro="978",t.Forint="348",t.GeorgianLari="981",t.HongKongDollar="344",t.Hryvnia="980",t.IndianRupee="356",t.IndonesianRupiah="360",t.IranianRial="364",t.IsraeliShekel="376",t.KyrgyzstanSom="417",t.MalaysianRinggit="458",t.MexicanPeso="484",t.MoldovanLeu="498",t.MongolianTugrik="496",t.NewTurkmenManat="934",t.PolandZloty="985",t.Pound="826",t.Ruble="643",t.SaudiRiyal="682",t.SerbianDinar="941",t.SingaporeDollar="702",t.SouthAfricanRand="710",t.SriLankanRupee="144",t.SwissFranc="756",t.TajikistaniSomoni="972",t.Tenge="398",t.TurkishLira="949",t.UzbekSum="860",t.VietnameseDong="704",t.Won="410",t.Yen="392",t.YuanRenminbi="156",t}(n||{});function me(t){switch(t){case e.Ruble:case n.Ruble:return"\u20BD";case e.Dollar:case n.Dollar:case e.MexicanPeso:case n.MexicanPeso:return"$";case e.SingaporeDollar:case n.SingaporeDollar:return"S$";case e.AustralianDollar:case n.AustralianDollar:return"A$";case e.BahrainiDinar:case n.BahrainiDinar:return"BD";case e.CzechKoruna:case n.CzechKoruna:return"K\u010D";case e.HongKongDollar:case n.HongKongDollar:return"HK$";case e.CanadianDollar:case n.CanadianDollar:return"C$";case e.EastCaribbeanDollar:case n.EastCaribbeanDollar:return"EC$";case e.Euro:case n.Euro:return"\u20AC";case e.Forint:case n.Forint:return"Ft";case e.Pound:case n.Pound:return"\xA3";case e.Baht:case n.Baht:return"\u0E3F";case e.TurkishLira:case n.TurkishLira:return"\u20BA";case e.YuanRenminbi:case n.YuanRenminbi:return"CN\xA5";case e.Yen:case n.Yen:return"\xA5";case e.IsraeliShekel:case n.IsraeliShekel:return"\u20AA";case e.IndianRupee:case n.IndianRupee:return"\u20B9";case e.SwissFranc:case n.SwissFranc:return"\u20A3";case e.ArmenianDram:case n.ArmenianDram:return"\u058F";case e.Won:case n.Won:return"\u20A9";case e.Tenge:case n.Tenge:return"\u20B8";case e.Hryvnia:case n.Hryvnia:return"\u20B4";case e.UzbekSum:case n.UzbekSum:return"So'm";case e.KyrgyzstanSom:case n.KyrgyzstanSom:return"c";case e.Dirham:case n.Dirham:return"Dh";case e.TajikistaniSomoni:case n.TajikistaniSomoni:return"SM";case e.MalaysianRinggit:case n.MalaysianRinggit:return"RM";case e.BelarusianRuble:case n.BelarusianRuble:return"Br";case e.GeorgianLari:case n.GeorgianLari:return"\u20BE";case e.AzerbaijaniManat:case n.AzerbaijaniManat:return"\u20BC";case e.SriLankanRupee:case n.SriLankanRupee:return"Rs.";case e.SerbianDinar:case n.SerbianDinar:return"DIN";case e.SaudiRiyal:case n.SaudiRiyal:return"SR";case e.MoldovanLeu:case n.MoldovanLeu:return"L";case e.MongolianTugrik:case n.MongolianTugrik:return"\u20AE";case e.PolandZloty:case n.PolandZloty:return"z\u0142";case e.SouthAfricanRand:case n.SouthAfricanRand:return"R";case e.IranianRial:case n.IranianRial:return"IR";case e.IndonesianRupiah:case n.IndonesianRupiah:return"Rp";case e.VietnameseDong:case n.VietnameseDong:return"\u0111";case e.NewTurkmenManat:case n.NewTurkmenManat:return"TMT";case e.BrazilianReal:case n.BrazilianReal:return"R$";default:return null}}function ue(t){return t===null||Ot(t)?t||"":String(t).padStart(3,"0")}function ie(t){let i=ue(t);return me(i)||i}var We={[e.Ruble]:n.Ruble,[e.Dollar]:n.Dollar,[e.MexicanPeso]:n.MexicanPeso,[e.MoldovanLeu]:n.MoldovanLeu,[e.PolandZloty]:n.PolandZloty,[e.SingaporeDollar]:n.SingaporeDollar,[e.AustralianDollar]:n.AustralianDollar,[e.HongKongDollar]:n.HongKongDollar,[e.CanadianDollar]:n.CanadianDollar,[e.CzechKoruna]:n.CzechKoruna,[e.EastCaribbeanDollar]:n.EastCaribbeanDollar,[e.Euro]:n.Euro,[e.Forint]:n.Forint,[e.Pound]:n.Pound,[e.Baht]:n.Baht,[e.BahrainiDinar]:n.BahrainiDinar,[e.TurkishLira]:n.TurkishLira,[e.YuanRenminbi]:n.YuanRenminbi,[e.Yen]:n.Yen,[e.IsraeliShekel]:n.IsraeliShekel,[e.IndianRupee]:n.IndianRupee,[e.SwissFranc]:n.SwissFranc,[e.ArmenianDram]:n.ArmenianDram,[e.Won]:n.Won,[e.Tenge]:n.Tenge,[e.Hryvnia]:n.Hryvnia,[e.UzbekSum]:n.UzbekSum,[e.KyrgyzstanSom]:n.KyrgyzstanSom,[e.Dirham]:n.Dirham,[e.TajikistaniSomoni]:n.TajikistaniSomoni,[e.MalaysianRinggit]:n.MalaysianRinggit,[e.BelarusianRuble]:n.BelarusianRuble,[e.GeorgianLari]:n.GeorgianLari,[e.AzerbaijaniManat]:n.AzerbaijaniManat,[e.SriLankanRupee]:n.SriLankanRupee,[e.SerbianDinar]:n.SerbianDinar,[e.SaudiRiyal]:n.SaudiRiyal,[e.MongolianTugrik]:n.MongolianTugrik,[e.SouthAfricanRand]:n.SouthAfricanRand,[e.IranianRial]:n.IranianRial,[e.IndonesianRupiah]:n.IndonesianRupiah,[e.VietnameseDong]:n.VietnameseDong,[e.NewTurkmenManat]:n.NewTurkmenManat,[e.BrazilianReal]:n.BrazilianReal};var Ge={[n.Ruble]:e.Ruble,[n.Dollar]:e.Dollar,[n.MexicanPeso]:e.MexicanPeso,[n.MoldovanLeu]:e.MoldovanLeu,[n.PolandZloty]:e.PolandZloty,[n.SingaporeDollar]:e.SingaporeDollar,[n.AustralianDollar]:e.AustralianDollar,[n.HongKongDollar]:e.HongKongDollar,[n.CanadianDollar]:e.CanadianDollar,[n.CzechKoruna]:e.CzechKoruna,[n.EastCaribbeanDollar]:e.EastCaribbeanDollar,[n.Euro]:e.Euro,[n.Forint]:e.Forint,[n.Pound]:e.Pound,[n.Baht]:e.Baht,[n.BahrainiDinar]:e.BahrainiDinar,[n.TurkishLira]:e.TurkishLira,[n.YuanRenminbi]:e.YuanRenminbi,[n.Yen]:e.Yen,[n.IsraeliShekel]:e.IsraeliShekel,[n.IndianRupee]:e.IndianRupee,[n.SwissFranc]:e.SwissFranc,[n.ArmenianDram]:e.ArmenianDram,[n.Won]:e.Won,[n.Tenge]:e.Tenge,[n.Hryvnia]:e.Hryvnia,[n.UzbekSum]:e.UzbekSum,[n.KyrgyzstanSom]:e.KyrgyzstanSom,[n.Dirham]:e.Dirham,[n.TajikistaniSomoni]:e.TajikistaniSomoni,[n.MalaysianRinggit]:e.MalaysianRinggit,[n.BelarusianRuble]:e.BelarusianRuble,[n.GeorgianLari]:e.GeorgianLari,[n.AzerbaijaniManat]:e.AzerbaijaniManat,[n.SriLankanRupee]:e.SriLankanRupee,[n.SerbianDinar]:e.SerbianDinar,[n.SaudiRiyal]:e.SaudiRiyal,[n.MongolianTugrik]:e.MongolianTugrik,[n.SouthAfricanRand]:e.SouthAfricanRand,[n.IranianRial]:e.IranianRial,[n.IndonesianRupiah]:e.IndonesianRupiah,[n.VietnameseDong]:e.VietnameseDong,[n.NewTurkmenManat]:e.NewTurkmenManat,[n.BrazilianReal]:e.BrazilianReal};var de={currency:null,currencyAlign:"right",sign:"negative-only"},he=Nt(de);function ge(t,i){return i==="never"||!t||i==="negative-only"&&t>0?"":i==="force-negative"||t<0&&i!=="force-positive"?Kt:Yt}var fe=2,it=(()=>{let i=class i{constructor(){this.options=S(he),this.format=S(jt)}transform(a,o=this.options.currency,r=this.options.currencyAlign){return this.format.pipe(W(u=>{let _=ge(a,this.options.sign),j=ie(o),rt=Gt(Math.abs(a),ct(lt({},u),{precision:Number.isNaN(u.precision)?fe:u.precision})),st=(j==null?void 0:j.length)>1||r==="right"?Ut:"";return r==="right"?`${_}${rt}${st}${j}`:`${_}${j}${st}${rt}`}))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=gt({name:"tuiAmount",type:i,pure:!0,standalone:!0});let t=i;return t})();var ae={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var _e=(t,i)=>[t,i];function Se(t,i){if(t&1){let s=T();c(0,"button",4),M("click",function(){let o=v(s).$implicit,r=p();return C(r.filterButton.set(o))}),h(1),m()}if(t&2){let s=i.$implicit,a=p();d("tuiAppearanceState",s===a.filterButton()?"active":null),l(),R(" ",s," ")}}var oe=(()=>{let i=class i{constructor(){this.pricesService=S(A),this.step=P(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=P(()=>new Map((this.history()??[]).map((a,o)=>[Math.trunc(o/this.step()),new Date(a.date).toDateString()]))),this.chart=P(()=>this.processData(this.history())),this.minPrice=P(()=>Math.min(...(this.history()??[]).map(a=>Number(a.priceUsd)))),this.maxPrice=P(()=>Math.max(...(this.history()??[]).map(a=>Number(a.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=B(this.filterButtons[0]),this.maxPoints=150,this.token=_t.required(),this.interval=P(()=>ae[this.filterButton()]),this.history=X(pt([ot(this.token),ot(this.interval)]).pipe(ut(([a,o])=>this.pricesService.getHistory(a,o)))),this.yStringify=a=>`${(this.maxPrice()>10?a:a/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=a=>`${this.xTargets().get(a)}`}processData(a){return(a??[]).map((r,u)=>[Math.trunc(u/this.step()),Number(r.priceUsd)*(this.maxPrice()>10?1:100)]).filter((r,u)=>u%this.step()===0)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[D],decls:9,vars:21,consts:[[1,"axes",3,"axisYLabels","horizontalLines","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(o,r){o&1&&(c(0,"tui-axes",0),g(1,"tuiAmount"),g(2,"async"),g(3,"tuiAmount"),g(4,"async"),x(5,"tui-line-chart",1),m(),c(6,"div",2),F(7,Se,2,2,"button",3,N),m()),o&2&&(d("axisYLabels",Mt(18,_e,k(2,12,k(1,10,r.minPrice()))||"",k(4,16,k(3,14,r.maxPrice()))||""))("horizontalLines",4)("verticalLines",4),l(5),d("height",r.maxPrice()*(r.maxPrice()>10?1:100)-r.minPrice()*(r.maxPrice()>10?1:100))("value",r.chart())("width",r.chart().length)("x",0)("xStringify",r.xStringify)("y",r.minPrice()*(r.maxPrice()>10?1:100))("yStringify",r.yStringify),l(2),E(r.filterButtons))},dependencies:[L,I,it,ee,K,ne],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let t=i;return t})();var xe=[[["input"]],"*"],be=["input","*"];function De(t,i){t&1&&(c(0,"span",3),at(1,1),m())}function ke(t,i){if(t&1&&(St(0),x(1,"span",1),f(2,De,2,0,"span",2),xt()),t&2){let s=i.tuiLet,a=p();l(),w("text-indent",a.indent,"px"),d("textContent",s),l(),d("ngIf",!s)}}var re=(()=>{let i=class i{constructor(){this.value$=mt(()=>$t(this.control)),this.indent=-1}onScroll(a){Ht(a)&&Vt(a)&&(this.indent=-a.scrollLeft-1)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["tui-input-inline"]],contentQueries:function(o,r,u){if(o&1&&Dt(u,Tt,5),o&2){let _;kt(_=vt())&&(r.control=_.first)}},hostBindings:function(o,r){o&1&&M("scroll.capture",function(_){return r.onScroll(_.target)})},standalone:!0,features:[D],ngContentSelectors:be,decls:3,vars:3,consts:[[4,"tuiLet"],[1,"t-before",3,"textContent"],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(o,r){o&1&&(bt(xe),f(0,ke,3,4,"ng-container",0),g(1,"async"),at(2)),o&2&&d("tuiLet",k(1,1,r.value$))},dependencies:[Q,Zt,L],styles:[`tui-input-inline{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{display:block;padding-right:.02em;margin-left:1px;white-space:pre}tui-input-inline>.t-placeholder{display:inline-block;min-width:1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none} `],encapsulation:2,changeDetection:0});let t=i;return t})();function Ce(t,i){if(t&1){let s=T();c(0,"div",4),M("click",function(){v(s);let o=p().$implicit,r=p(2);return C(r.chooseToken(o.id))}),x(1,"tui-avatar",5),c(2,"div",6),h(3),c(4,"div",7),h(5),g(6,"number"),c(7,"span"),h(8),g(9,"number"),m()()()()}if(t&2){let s=p().$implicit;l(),d("src","https://assets.coincap.io/assets/icons/"+s.symbol.toLowerCase()+"@2x.png"),l(2),R(" ",s.name," "),l(2),R(" ",U(6,6,s.priceUsd,"1.2-2"),"$ "),l(2),w("color",s.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),l(),R(" ",U(9,9,s.changePercent24Hr,"1.2-2"),"% ")}}function we(t,i){if(t&1&&f(0,Ce,10,12,"div",3),t&2){let s=i.$implicit,a=p(2);y(a.token===""||s.id===a.token?0:-1)}}function Me(t,i){if(t&1){let s=T();c(0,"button",8),M("click",function(){v(s);let o=p(2);return C(o.addToken())}),h(1," Add Token "),m()}}function Re(t,i){if(t&1&&(c(0,"div",0)(1,"div",1),F(2,we,1,1,null,null,N),m(),f(4,Me,2,0,"button",2),m()),t&2){let s=p(),a=H(0);l(2),E(a.slice(0,s.showTokens)),l(2),y(s.token===""&&s.showTokens{let i=class i{constructor(){this.pricesService=S(A),this.tokens$=this.pricesService.getTokens(),this.showTokens=4,this.token="",this.tokenChange=new ft}addToken(){this.showTokens+=1}chooseToken(a){let o=this.token===a?"":a;this.token=o,this.tokenChange.emit(o)}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[D],decls:3,vars:4,consts:[["tuiCardLarge","",1,"price-list"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(o,r){if(o&1&&(O(0),g(1,"async"),f(2,Re,5,1,"div",0)),o&2){let u=V(k(1,1,r.tokens$));l(2),y(u?2:-1)}},dependencies:[L,I,yt,tt,K,$,et,Y],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:22.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let t=i;return t})();function ye(t,i){if(t&1&&x(0,"lmb-price-chart",3),t&2){let s=p();d("token",s.token)}}var le=(()=>{let i=class i{constructor(){this.pricesService=S(A),this.token=""}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-prices"]],standalone:!0,features:[D],decls:6,vars:6,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],[3,"token"],[3,"tokenChange","token"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"header",1)(2,"h2",2),h(3," Cryptocurrency Prices "),m()(),f(4,ye,1,1,"lmb-price-chart",3),c(5,"lmb-price-list",4),q("tokenChange",function(_){return Z(r.token,_)||(r.token=_),_}),m()()),o&2&&(w("height","100%"),l(2),w("text-align","center"),l(2),y(r.token!==""?4:-1),l(),G("token",r.token))},dependencies:[I,oe,se,J,$,nt,Y],encapsulation:2,changeDetection:0});let t=i;return t})();var Pe=(t,i)=>i.symbol;function Ie(t,i){t&1&&x(0,"tui-icon",17),t&2&&w("font-size",1,"em")("margin-left",.5,"rem")}function Te(t,i){if(t&1){let s=T();c(0,"button",15),M("click",function(){let o=v(s).$implicit,r=p().$implicit;p();let u=H(9),_=p(2);return C([u?_.newTokenTo(o.symbol):_.newTokenFrom(o.symbol),r()])}),h(1),f(2,Ie,1,4,"tui-icon",16),m()}if(t&2){let s=i.$implicit;p(2);let a=H(0);d("value",s.symbol),l(),R(" ",s.symbol.toUpperCase()," "),l(),d("ngIf",s.symbol.toLowerCase()===a.toLowerCase())}}function Le(t,i){if(t&1&&(c(0,"tui-data-list",13),F(1,Te,3,3,"button",14,Pe),m()),t&2){p(3);let s=H(0);l(),E(s)}}function Ae(t,i){if(t&1){let s=T();c(0,"input",18),q("ngModelChange",function(o){v(s);let r=p(3);return Z(r.to,o)||(r.to=o),C(o)}),M("input",function(){v(s);let o=p(3);return C(o.newSwapTo())}),m()}if(t&2){let s=p(3);G("ngModel",s.to)}}function Be(t,i){if(t&1){let s=T();c(0,"input",18),q("ngModelChange",function(o){v(s);let r=p(3);return Z(r.from,o)||(r.from=o),C(o)}),M("input",function(){v(s);let o=p(3);return C(o.newSwapFrom())}),m()}if(t&2){let s=p(3);G("ngModel",s.from)}}function Fe(t,i){if(t&1&&(h(0),g(1,"tuiAmount"),g(2,"async")),t&2){let s=p(3);R(" \u2248",k(2,4,U(1,1,s.priceTo()*s.to(),"USD"))," ")}}function Ee(t,i){if(t&1&&(h(0),g(1,"tuiAmount"),g(2,"async")),t&2){let s=p(3);R(" \u2248",k(2,4,U(1,1,s.priceFrom()*s.from(),"USD"))," ")}}function ze(t,i){if(t&1&&(O(0),c(1,"div")(2,"div",6)(3,"div",7),h(4),m(),c(5,"div",7),h(6),m()(),c(7,"button",8),x(8,"tui-avatar",9),O(9),f(10,Le,3,0,"ng-template",null,0,Rt),m()(),c(12,"div")(13,"tui-input-inline",10),f(14,Ae,1,1,"input",11)(15,Be,1,1,"input",11),m(),c(16,"div")(17,"div",12),f(18,Fe,3,6)(19,Ee,3,6),m(),x(20,"hr"),m()()),t&2){let s=i.$implicit,a=i.$index,o=Ct(11),r=p(2),u=V(a?r.tokenTo().toUpperCase():r.tokenFrom().toUpperCase());l(4),wt(s),l(2),R("Balance: 1000 ",u.toUpperCase(),""),l(),d("tuiDropdown",o),l(),d("src","https://assets.coincap.io/assets/icons/"+u.toLowerCase()+"@2x.png"),l(),V(a),l(5),y(a?14:15),l(4),y(a?18:19)}}function Ne(t,i){if(t&1&&(c(0,"div",2)(1,"header",3)(2,"h2",4),h(3," Swap "),m()(),F(4,ze,21,8,null,null,N),c(6,"button",5),h(7," Swap "),m()()),t&2){let s=p();w("height","100%"),l(2),w("text-align","center"),l(2),E(s.titles)}}var ce=(()=>{let i=class i{constructor(){this.cryptoService=S(A),this.tokens=X(this.cryptoService.getTokens()),this.priceFrom=P(()=>this.getPrice(this.tokenFrom())),this.priceTo=P(()=>this.getPrice(this.tokenTo())),this.titles=["From","To"],this.from=B(0),this.to=B(0),this.tokenFrom=B("eth"),this.tokenTo=B("btc")}newTokenFrom(a){this.tokenFrom.set(a),this.newSwapFrom()}newTokenTo(a){this.tokenTo.set(a),this.newSwapTo()}getPrice(a){var o;return Number((o=(this.tokens()??[]).find(r=>r.symbol.toLowerCase()===a.toLowerCase()))==null?void 0:o.priceUsd)||0}newSwapFrom(){this.to.set(Number((this.priceFrom()*Number(this.from())/this.priceTo()).toFixed(2)))}newSwapTo(){this.from.set(Number((this.priceTo()*Number(this.to())/this.priceFrom()).toFixed(2)))}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-swap"]],standalone:!0,features:[D],decls:2,vars:2,consts:[["dropdownContent",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",3,"height"],["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],["appearance","primary","tuiButton",""],["tuiCell","l"],["TuiTitle",""],["tuiButton","","tuiChevron","","tuiDropdownOpen","","type","button",1,"choose-crypto",3,"tuiDropdown"],["size","xs",3,"src"],["tuiTitle","l"],["max","1000","min","0","type","number",3,"ngModel"],["tuiSubtitle","",1,"equal-number"],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],["max","1000","min","0","type","number",3,"ngModelChange","input","ngModel"]],template:function(o,r){if(o&1&&(O(0),f(1,Ne,8,4,"div",1)),o&2){let u=V(r.tokens());l(),y(u?1:-1)}},dependencies:[I,Q,L,zt,It,Bt,Lt,Et,Ft,At,it,J,tt,K,$,et,te,Jt,Xt,qt,Qt,nt,Wt,re,Y],styles:[".choose-crypto[_ngcontent-%COMP%]{height:2rem}.equal-number[_ngcontent-%COMP%]{text-align:right}tui-input-inline[_ngcontent-%COMP%]{height:2.5rem}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"],changeDetection:0});let t=i;return t})();var ki=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=b({type:i,selectors:[["lmb-crypto"]],standalone:!0,features:[D],decls:4,vars:0,consts:[[1,"column"],[1,"row"],[1,"grow"]],template:function(o,r){o&1&&(c(0,"div",0)(1,"div",1),x(2,"lmb-prices",2)(3,"lmb-swap",2),m()())},dependencies:[I,le,ce],styles:[".grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let t=i;return t})();export{ki as CryptoComponent}; diff --git a/chunk-HYP3ZPSI.js b/chunk-GGY6MJXK.js similarity index 99% rename from chunk-HYP3ZPSI.js rename to chunk-GGY6MJXK.js index fee94fa65..c1a788820 100644 --- a/chunk-HYP3ZPSI.js +++ b/chunk-GGY6MJXK.js @@ -1,3 +1,3 @@ -import{$ as ve,$a as se,$b as Ms,Aa as j,Ab as Cs,Ad as $e,Ae as We,B as ot,Bb as He,Bc as ks,Bd as yn,Ca as Ss,Cb as xe,Cd as Pi,Da as ne,Db as Os,Dd as Bs,Eb as oi,Ed as F,F as ys,Fa as Ds,Fc as Rs,Fd as vn,Ga as et,Gb as ai,Gd as wn,He as Ws,I as vs,Ia as ii,Ja as Ts,Jc as it,K as ke,Ke as Vs,L as $,La as Es,Lc as Ai,Ld as Us,M as ws,Me as Ks,Nd as bn,Ob as P,Od as Bt,Pa as we,Pb as ct,Pd as je,Qa as rt,Qb as Be,Qc as Mi,Qd as Fi,Qe as Ve,R as ti,Ra as gn,Sd as zs,T as Si,Ta as Lt,Te as Ke,U as Di,V as Ti,Vb as Is,Vc as Ls,Ve as qs,W as tt,Wb as As,X as ht,Y as Jt,Ya as ni,Z as Ei,Za as Ht,_ as ei,_a as bt,aa as bs,ba as M,ca as _s,d as Tt,da as N,db as lt,dd as Hs,eb as re,fb as V,fd as Se,g as Rt,ga as dt,gd as Z,h as me,hb as Kt,hc as pt,ja as u,kc as oe,kd as Ue,ke as Ut,l as Et,la as te,lc as Ps,le as Te,mb as Ot,md as Q,n as Ct,na as Re,nb as It,nc as _e,ne as $s,oa as ee,ob as Le,od as xt,oe as _n,pa as at,pb as si,pd as St,qb as ri,qd as xs,r as C,ra as T,rb as Ci,rd as ze,re as x,se as Ni,ub as Oi,ue as js,vb as _t,vc as Fs,wa as ie,wb as be,wc as li,we as Sn,x as ge,xb as qt,xe as ui,y as ye,yb as Zt,yc as Ns,yd as ci,ye as ft,z as Y,zb as Ii,zd as De}from"./chunk-XSFATUKW.js";import{a as wt,b as Ne,c as gs,d as G}from"./chunk-HFDGAYQF.js";var Tn=new dt("POLYMORPHEUS_CONTEXT"),Qt=class{constructor(t,i){G(this,"component");G(this,"i");this.component=t,this.i=i}createInjector(t,i){return Ss.create({parent:this.i||t,providers:[{provide:Tn,useValue:i}]})}},ki=class{constructor(t){G(this,"$implicit");this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var En=(()=>{let t=class t{constructor(e=u(Lt,{self:!0}),s=u(pt)){G(this,"template");G(this,"cdr");G(this,"polymorpheus","");this.template=e,this.cdr=s}static ngTemplateContextGuard(e,s){return!0}check(){this.cdr.markForCheck()}};G(t,"\u0275fac",function(s){return new(s||t)(gn(Lt),gn(pt))}),G(t,"\u0275dir",T({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"],standalone:!0}));let n=t;return n})(),ae=(()=>{let t=class t{constructor(){G(this,"vcr",u(ni));G(this,"i",u(ee));G(this,"t",u(Lt));G(this,"c");G(this,"content","");G(this,"context")}static ngTemplateContextGuard(e,s){return!0}ngOnChanges({content:e}){var o;let s=this.getContext();if((o=this.c)==null||o.injector.get(pt).markForCheck(),!e)return;this.vcr.clear();let r=s&&new Proxy(s,{get:(a,l)=>{var c;return(c=this.getContext())==null?void 0:c[l]}});Zs(this.content)?this.process(this.content,r):(s instanceof ki&&s.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,r,{injector:this.i})}ngDoCheck(){Dn(this.content)&&this.content.check()}get template(){return Dn(this.content)?this.content.template:this.content instanceof Lt?this.content:this.t}getContext(){return eo(this.content)||Zs(this.content)?this.context:new ki(this.context&&typeof this.content=="function"?this.content(this.context):this.content)}process(e,s){let r=e.createInjector(this.i,s);this.c=this.vcr.createComponent(e.component,{injector:r})}};G(t,"\u0275fac",function(s){return new(s||t)}),G(t,"\u0275dir",T({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[0,"polymorpheusOutlet","content"],context:[0,"polymorpheusOutletContext","context"]},standalone:!0,features:[ie]}));let n=t;return n})();function Dn(n){return n instanceof En}function Zs(n){return n instanceof Qt}function eo(n){return Dn(n)||n instanceof Lt}var D=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(D||{}),zt="*";function L(n,t){return{type:D.Trigger,name:n,definitions:t,options:{}}}function _(n,t=null){return{type:D.Animate,styles:t,timings:n}}function Qs(n,t=null){return{type:D.Sequence,steps:n,options:t}}function d(n){return{type:D.Style,styles:n,offset:null}}function E(n,t,i=null){return{type:D.Transition,expr:n,animation:t,options:i}}function Ri(n=null){return{type:D.AnimateChild,options:n}}function W(n,t,i=null){return{type:D.Query,selector:n,animation:t,options:i}}function X(n,t){return{type:D.Stagger,timings:n,animation:t}}var le=class{constructor(t=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},hi=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let i=0,e=0,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==r&&this._onFinish()}),o.onDestroy(()=>{++e==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let i=t*this.totalTime;this.players.forEach(e=>{let s=e.totalTime?Math.min(1,i/e.totalTime):1;e.setPosition(s)})}getPosition(){let t=this.players.reduce((i,e)=>i===null||e.totalTime>i.totalTime?e:i,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},Li="!";var S="{{duration}}ms ease-in-out",I={params:{duration:300}},nt=300,Gs=L("tuiParentAnimation",[E(":leave",[W(":scope > *",[Ri()],{optional:!0})])]),ec=L("tuiParentStop",[E(":enter",[])]),ic=L("tuiHost",[E(":enter",[d({overflow:"clip"}),W(":scope > *",[Ri()],{optional:!0})]),E(":leave",[W(":scope > *",[Ri()],{optional:!0})])]),nc=L("tuiHeightCollapse",[E(":enter",[d({height:0}),_(S,d({height:"*"}))],I),E(":leave",[d({height:"*"}),_(S,d({height:0}))],I)]),sc=L("tuiHeightCollapseList",[E("* => *",[W(":enter",[d({height:0}),X(nt,[_(S,d({height:"*"}))])],{optional:!0}),W(":leave",[d({height:"*"}),X(nt,[_(S,d({height:0}))])],{optional:!0})],I)]),rc=L("tuiWidthCollapse",[E(":enter",[d({width:0}),_(S,d({width:"*"}))],I),E(":leave",[d({width:"*"}),_(S,d({width:0}))],I)]),oc=L("tuiWidthCollapseList",[E("* => *",[W(":enter",[d({width:0}),X(nt,[_(S,d({width:"*"}))])],{optional:!0}),W(":leave",[d({width:"*"}),X(nt,[_(S,d({width:0}))])],{optional:!0})],I)]),Hi=L("tuiFadeIn",[E(":enter",[d({opacity:0}),_(S,d({opacity:1}))],I),E(":leave",[d({opacity:1}),_(S,d({opacity:0}))],I)]),ac=L("tuiFadeInList",[E("* => *",[W(":enter",[d({opacity:0}),X(nt,[_(S,d({opacity:1}))])],{optional:!0}),W(":leave",[d({opacity:1}),X(nt,[_(S,d({opacity:0}))])],{optional:!0})],I)]),lc=L("tuiFadeInTop",[E(":enter",[d({transform:"translateY(-10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(-10px)",opacity:0}))],I)]),cc=L("tuiFadeInBottom",[E(":enter",[d({transform:"translateY(10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(10px)",opacity:0}))],I)]),Ys=L("tuiDropdownAnimation",[E(":enter",[d({transform:"translateY(-10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(-10px)",opacity:0}))],I)]),uc=L("tuiScaleIn",[E(":enter",[d({transform:"scale(0)"}),_(S,d({transform:"scale(1)"}))],I),E(":leave",[d({transform:"scale(1)"}),_(S,d({transform:"scale(0)"}))],I)]),hc=L("tuiPop",[E(":enter",[d({transform:"scale(0)"}),_(S,d({transform:"scale(1.1)"})),_(S,d({transform:"scale(1)"}))],I),E(":leave",[d({transform:"scale(1)"}),_(S,d({transform:"scale(1.1)"})),_(S,d({transform:"scale(0)"}))],I)]),dc=L("tuiScaleInList",[E("* => *",[W(":enter",[d({transform:"scale(0)"}),X(nt,[_(S,d({transform:"scale(1)"}))])],{optional:!0}),W(":leave",[d({transform:"scale(1)"}),X(nt,[_(S,d({transform:"scale(0)"}))])],{optional:!0})],I)]),pc=L("tuiSlideIn",[E("* => left",[d({transform:"translateX(-100%)"}),_(S,d({transform:"translateX(0)"}))],I),E("left => *",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(-100%)"}))],I),E("* => right",[d({transform:"translateX(100%)"}),_(S,d({transform:"translateX(0)"}))],I),E("right => *",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(100%)"}))],I)]),fc=L("tuiSlideInLeft",[E(":enter",[d({transform:"translateX(-100%)"}),_(S,d({transform:"translateX(0)"}))],I),E(":leave",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(-100%)"}))],I)]),mc=L("tuiSlideInLeftList",[E("* => *",[W(":enter",[d({transform:"translateX(-100%)"}),X(nt,[_(S,d({transform:"translateX(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateX(0)"}),X(nt,[_(S,d({transform:"translateX(-100%)"}))])],{optional:!0})],I)]),gc=L("tuiSlideInRight",[E(":enter",[d({transform:"translateX(100%)"}),_(S,d({transform:"translateX(0)"}))],I),E(":leave",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(100%)"}))],I)]),yc=L("tuiSlideInRightList",[E("* => *",[W(":enter",[d({transform:"translateX(100%)"}),X(nt,[_(S,d({transform:"translateX(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateX(0)"}),X(nt,[_(S,d({transform:"translateX(100%)"}))])],{optional:!0})],I)]),vc=L("tuiSlideInTop",[E(":enter",[d({transform:"translate3d(0,{{start}},0)",pointerEvents:"none"}),_(S,d({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),E(":leave",[d({transform:"translate3d(0,{{end}},0)"}),_(S,d({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),wc=L("tuiSlideInTopList",[E("* => *",[W(":enter",[d({transform:"translateY(100%)"}),X(nt,[_(S,d({transform:"translateY(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateY(0)"}),X(nt,[_(S,d({transform:"translateY(100%)"}))])],{optional:!0})],I)]),bc=L("tuiSlideInBottom",[E(":enter",[d({transform:"translateY(-100%)"}),_(S,d({transform:"translateY(0)"}))],I),E(":leave",[d({transform:"translateY(0)"}),_(S,d({transform:"translateY(-100%)"}))],I)]),_c=L("tuiSlideInBottomList",[E("* => *",[W(":enter",[d({transform:"translateY(-100%)"}),X(nt,[_(S,d({transform:"translateY(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateY(0)"}),X(nt,[_(S,d({transform:"translateY(-100%)"}))])],{optional:!0})],I)]);function Cn(n){return!!n&&(io(n)||Cn(n.parentElement))}function io(n){var t;return((t=n.ownerDocument.defaultView)==null?void 0:t.getComputedStyle(n).getPropertyValue("position"))==="fixed"}var no=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];function Js(n=""){return n.length===1||no.includes(n)}function On(n,t="tui-hints"){var i;return!!((i=Pi(n))!=null&&i.some(e=>!e.closest(t)))}function xi(n,t){return(i,e)=>{let s=i||wt({},e||t);return Object.keys(n).forEach(r=>{s[r]=n[r]}),s}}var Xs={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function Ec(n,t="s"){return Xs[n]>Xs[t]}var so=300;function qe(n){return{value:"",params:{duration:ro(n)}}}function ro(n){return n&&so/n}function oo(n){return n.platform.startsWith("Mac")||n.platform==="iPhone"}var ao=/ipad|iphone|ipod/;function tr(n){return ao.test(n.userAgent.toLowerCase())||oo(n)&&n.maxTouchPoints>1}function Ic({ownerDocument:n}){var s,r,o,a,l,c,h,p;let t=n==null?void 0:n.defaultView,i=typeof t.safari<"u"&&((r=(s=t.safari)==null?void 0:s.pushNotification)==null?void 0:r.toString())==="[object SafariRemoteNotification]",e=!!((a=(o=t.navigator)==null?void 0:o.vendor)!=null&&a.includes("Apple"))&&!((c=(l=t.navigator)==null?void 0:l.userAgent)!=null&&c.includes("CriOS"))&&!((p=(h=t.navigator)==null?void 0:h.userAgent)!=null&&p.includes("FxiOS"));return i||e}function Bi({activeElement:n}){if(!(n!=null&&n.shadowRoot))return n;let t=n.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Fc(n){let t=Bi(n);De(t)&&t.blur()}function Ui(n){if(n.hasAttribute("disabled")||n.getAttribute("tabIndex")==="-1")return!1;if(De(n)&&n.isContentEditable||n.getAttribute("tabIndex")==="0")return!0;switch(n.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return n.hasAttribute("controls");case"INPUT":return n.getAttribute("type")!=="hidden";case"A":case"LINK":return n.hasAttribute("href");default:return!1}}function lo(n){return!n.hasAttribute("disabled")&&(n.getAttribute("tabIndex")==="-1"||Ui(n))}function In({initial:n,root:t,previous:i=!1,keyboard:e=!0}){if(!t.ownerDocument)return null;let s=e?Ui:lo,r=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,zs);for(r.currentNode=n;i?r.previousNode():r.nextNode();)if(De(r.currentNode)&&(n=r.currentNode),De(n)&&s(n))return n;return null}function di(n){return!!(n!=null&&n.ownerDocument)&&Bi(n.ownerDocument)===n&&n.ownerDocument.hasFocus()}function pi(n){var i;let t=(n==null?void 0:n.ownerDocument)&&Bi(n.ownerDocument);return!!t&&n.contains(t)&&!!((i=n.ownerDocument)!=null&&i.hasFocus())}function er(n,t,i){for(n+=i;n>=0&&n{let c=l.get("offset"),h=c==o,p=h&&a||new Map;l.forEach((y,m)=>{let f=m,v=y;if(m!=="offset")switch(f=n.normalizePropertyName(f,s),v){case Li:v=i.get(m);break;case zt:v=e.get(m);break;default:v=n.normalizeStyleValue(m,f,v,s);break}p.set(f,v)}),h||r.push(p),a=p,o=c}),s.length)throw Mo(s);return r}function Xn(n,t,i,e){switch(t){case"start":n.onStart(()=>e(i&&An(i,"start",n)));break;case"done":n.onDone(()=>e(i&&An(i,"done",n)));break;case"destroy":n.onDestroy(()=>e(i&&An(i,"destroy",n)));break}}function An(n,t,i){let e=i.totalTime,s=!!i.disabled,r=Jn(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function Jn(n,t,i,e,s="",r=0,o){return{element:n,triggerName:t,fromState:i,toState:e,phaseName:s,totalTime:r,disabled:!!o}}function yt(n,t,i){let e=n.get(t);return e||n.set(t,e=i),e}function nr(n){let t=n.indexOf(":"),i=n.substring(1,t),e=n.slice(t+1);return[i,e]}var zo=typeof document>"u"?null:document.documentElement;function ts(n){let t=n.parentNode||n.host||null;return t===zo?null:t}function $o(n){return n.substring(1,6)=="ebkit"}var Ee=null,sr=!1;function jo(n){Ee||(Ee=Wo()||{},sr=Ee.style?"WebkitAppearance"in Ee.style:!1);let t=!0;return Ee.style&&!$o(n)&&(t=n in Ee.style,!t&&sr&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ee.style)),t}function Wo(){return typeof document<"u"?document.body:null}function _r(n,t){for(;t;){if(t===n)return!0;t=ts(t)}return!1}function Sr(n,t,i){if(i)return Array.from(n.querySelectorAll(t));let e=n.querySelector(t);return e?[e]:[]}var Vo=(()=>{let t=class t{validateStyleProperty(e){return jo(e)}containsElement(e,s){return _r(e,s)}getParentElement(e){return ts(e)}query(e,s,r){return Sr(e,s,r)}computeStyle(e,s,r){return r||""}animate(e,s,r,o,a,l=[],c){return new le(r,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ss=class ss{};ss.NOOP=new Vo;var rr=ss,Rn=class{};var Ko=1e3,Dr="{{",qo="}}",Tr="ng-enter",Ln="ng-leave",zi="ng-trigger",Ki=".ng-trigger",or="ng-animating",Hn=".ng-animating";function Gt(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xn(parseFloat(t[1]),t[2])}function xn(n,t){switch(t){case"s":return n*Ko;default:return n}}function qi(n,t,i){return n.hasOwnProperty("duration")?n:Zo(n,t,i)}function Zo(n,t,i){let e=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(e);if(a===null)return t.push(ir(n)),{duration:0,delay:0,easing:""};s=xn(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=xn(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=t.length;s<0&&(t.push(co()),a=!0),r<0&&(t.push(uo()),a=!0),a&&t.splice(l,0,ir(n))}return{duration:s,delay:r,easing:o}}function Qo(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function $t(n,t,i){t.forEach((e,s)=>{let r=es(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=e})}function Oe(n,t){t.forEach((i,e)=>{let s=es(e);n.style[s]=""})}function fi(n){return Array.isArray(n)?n.length==1?n[0]:Qs(n):n}function Go(n,t,i){let e=t.params||{},s=Er(n);s.length&&s.forEach(r=>{e.hasOwnProperty(r)||i.push(ho(r))})}var Bn=new RegExp(`${Dr}\\s*(.+?)\\s*${qo}`,"g");function Er(n){let t=[];if(typeof n=="string"){let i;for(;i=Bn.exec(n);)t.push(i[1]);Bn.lastIndex=0}return t}function gi(n,t,i){let e=`${n}`,s=e.replace(Bn,(r,o)=>{let a=t[o];return a==null&&(i.push(po(o)),a=""),a.toString()});return s==e?n:s}var Yo=/-+([a-z0-9])/g;function es(n){return n.replace(Yo,(...t)=>t[1].toUpperCase())}function Xo(n,t){return n===0||t===0}function Jo(n,t,i){if(i.size&&t.length){let e=t[0],s=[];if(i.forEach((r,o)=>{e.has(o)||s.push(o),e.set(o,r)}),s.length)for(let r=1;ro.set(a,is(n,a)))}}return t}function gt(n,t,i){switch(t.type){case D.Trigger:return n.visitTrigger(t,i);case D.State:return n.visitState(t,i);case D.Transition:return n.visitTransition(t,i);case D.Sequence:return n.visitSequence(t,i);case D.Group:return n.visitGroup(t,i);case D.Animate:return n.visitAnimate(t,i);case D.Keyframes:return n.visitKeyframes(t,i);case D.Style:return n.visitStyle(t,i);case D.Reference:return n.visitReference(t,i);case D.AnimateChild:return n.visitAnimateChild(t,i);case D.AnimateRef:return n.visitAnimateRef(t,i);case D.Query:return n.visitQuery(t,i);case D.Stagger:return n.visitStagger(t,i);default:throw fo(t.type)}}function is(n,t){return window.getComputedStyle(n)[t]}var ta=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),ar=class extends Rn{normalizePropertyName(t,i){return es(t)}normalizeStyleValue(t,i,e,s){let r="",o=e.toString().trim();if(ta.has(i)&&e!==0&&e!=="0")if(typeof e=="number")r="px";else{let a=e.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(mo(t,e))}return o+r}};var Zi="*";function ea(n,t){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(e=>ia(e,i,t)):i.push(n),i}function ia(n,t,i){if(n[0]==":"){let l=na(n,i);if(typeof l=="function"){t.push(l);return}n=l}let e=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(e==null||e.length<4)return i.push(Oo(n)),t;let s=e[1],r=e[2],o=e[3];t.push(lr(s,o));let a=s==Zi&&o==Zi;r[0]=="<"&&!a&&t.push(lr(o,s))}function na(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,e)=>parseFloat(e)>parseFloat(i);case":decrement":return(i,e)=>parseFloat(e) *"}}var $i=new Set(["true","1"]),ji=new Set(["false","0"]);function lr(n,t){let i=$i.has(n)||ji.has(n),e=$i.has(t)||ji.has(t);return(s,r)=>{let o=n==Zi||n==s,a=t==Zi||t==r;return!o&&i&&typeof s=="boolean"&&(o=s?$i.has(n):ji.has(n)),!a&&e&&typeof r=="boolean"&&(a=r?$i.has(t):ji.has(t)),o&&a}}var Cr=":self",sa=new RegExp(`s*${Cr}s*,?`,"g");function Or(n,t,i,e){return new Un(n).build(t,i,e)}var cr="",Un=class{constructor(t){this._driver=t}build(t,i,e){let s=new zn(i);return this._resetContextStyleTimingState(s),gt(this,fi(t),s)}_resetContextStyleTimingState(t){t.currentQuerySelector=cr,t.collectedStyles=new Map,t.collectedStyles.set(cr,new Map),t.currentTime=0}visitTrigger(t,i){let e=i.queryCount=0,s=i.depCount=0,r=[],o=[];return t.name.charAt(0)=="@"&&i.errors.push(go()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==D.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==D.Transition){let l=this.visitTransition(a,i);e+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(yo())}),{type:D.Trigger,name:t.name,states:r,transitions:o,queryCount:e,depCount:s,options:null}}visitState(t,i){let e=this.visitStyle(t.styles,i),s=t.options&&t.options.params||null;if(e.containsDynamicStyles){let r=new Set,o=s||{};e.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Er(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&i.errors.push(vo(t.name,[...r.values()]))}return{type:D.State,name:t.name,style:e,options:s?{params:s}:null}}visitTransition(t,i){i.queryCount=0,i.depCount=0;let e=gt(this,fi(t.animation),i),s=ea(t.expr,i.errors);return{type:D.Transition,matchers:s,animation:e,queryCount:i.queryCount,depCount:i.depCount,options:Ce(t.options)}}visitSequence(t,i){return{type:D.Sequence,steps:t.steps.map(e=>gt(this,e,i)),options:Ce(t.options)}}visitGroup(t,i){let e=i.currentTime,s=0,r=t.steps.map(o=>{i.currentTime=e;let a=gt(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:D.Group,steps:r,options:Ce(t.options)}}visitAnimate(t,i){let e=la(t.timings,i.errors);i.currentAnimateTimings=e;let s,r=t.styles?t.styles:d({});if(r.type==D.Keyframes)s=this.visitKeyframes(r,i);else{let o=t.styles,a=!1;if(!o){a=!0;let c={};e.easing&&(c.easing=e.easing),o=d(c)}i.currentTime+=e.duration+e.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:D.Animate,timings:e,style:s,options:null}}visitStyle(t,i){let e=this._makeStyleAst(t,i);return this._validateStyleAst(e,i),e}_makeStyleAst(t,i){let e=[],s=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of s)typeof a=="string"?a===zt?e.push(a):i.errors.push(wo(a)):e.push(new Map(Object.entries(a)));let r=!1,o=null;return e.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Dr)>=0){r=!0;break}}}),{type:D.Style,styles:e,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,i){let e=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;e&&r>0&&(r-=e.duration+e.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),h=c.get(l),p=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(i.errors.push(bo(l,h.startTime,h.endTime,r,s)),p=!1),r=h.startTime),p&&c.set(l,{startTime:r,endTime:s}),i.options&&Go(a,i.options,i.errors)})})}visitKeyframes(t,i){let e={type:D.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(_o()),e;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=t.steps.map(k=>{let R=this._makeStyleAst(k,i),B=R.offset!=null?R.offset:aa(R.styles),z=0;return B!=null&&(r++,z=R.offset=B),l=l||z<0||z>1,a=a||z0&&r{let B=y>0?R==m?1:y*R:o[R],z=B*O;i.currentTime=f+v.delay+z,v.duration=z,this._validateStyleAst(k,i),k.offset=B,e.styles.push(k)}),e}visitReference(t,i){return{type:D.Reference,animation:gt(this,fi(t.animation),i),options:Ce(t.options)}}visitAnimateChild(t,i){return i.depCount++,{type:D.AnimateChild,options:Ce(t.options)}}visitAnimateRef(t,i){return{type:D.AnimateRef,animation:this.visitReference(t.animation,i),options:Ce(t.options)}}visitQuery(t,i){let e=i.currentQuerySelector,s=t.options||{};i.queryCount++,i.currentQuery=t;let[r,o]=ra(t.selector);i.currentQuerySelector=e.length?e+" "+r:r,yt(i.collectedStyles,i.currentQuerySelector,new Map);let a=gt(this,fi(t.animation),i);return i.currentQuery=null,i.currentQuerySelector=e,{type:D.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ce(t.options)}}visitStagger(t,i){i.currentQuery||i.errors.push(Eo());let e=t.timings==="full"?{duration:0,delay:0,easing:"full"}:qi(t.timings,i.errors,!0);return{type:D.Stagger,animation:gt(this,fi(t.animation),i),timings:e,options:null}}};function ra(n){let t=!!n.split(/\s*,\s*/).find(i=>i==Cr);return t&&(n=n.replace(sa,"")),n=n.replace(/@\*/g,Ki).replace(/@\w+/g,i=>Ki+"-"+i.slice(1)).replace(/:animating/g,Hn),[n,t]}function oa(n){return n?wt({},n):null}var zn=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function aa(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;t=parseFloat(i.get("offset")),i.delete("offset")}return t}function la(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=qi(n,t).duration;return Mn(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Mn(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=qi(i,t);return Mn(s.duration,s.delay,s.easing)}function Ce(n){return n?(n=wt({},n),n.params&&(n.params=oa(n.params))):n={},n}function Mn(n,t,i){return{duration:n,delay:t,easing:i}}function ns(n,t,i,e,s,r,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:i,postStyleProps:e,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var yi=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,i){let e=this._map.get(t);e||this._map.set(t,e=[]),e.push(...i)}has(t){return this._map.has(t)}clear(){this._map.clear()}},ca=1,ua=":enter",ha=new RegExp(ua,"g"),da=":leave",pa=new RegExp(da,"g");function Ir(n,t,i,e,s,r=new Map,o=new Map,a,l,c=[]){return new $n().buildKeyframes(n,t,i,e,s,r,o,a,l,c)}var $n=class{buildKeyframes(t,i,e,s,r,o,a,l,c,h=[]){c=c||new yi;let p=new jn(t,i,c,s,r,h,[]);p.options=l;let y=l.delay?Gt(l.delay):0;p.currentTimeline.delayNextStep(y),p.currentTimeline.setStyles([o],null,p.errors,l),gt(this,e,p);let m=p.timelines.filter(f=>f.containsAnimation());if(m.length&&a.size){let f;for(let v=m.length-1;v>=0;v--){let O=m[v];if(O.element===i){f=O;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,p.errors,l)}return m.length?m.map(f=>f.buildKeyframes()):[ns(i,[],[],[],0,y,"",!1)]}visitTrigger(t,i){}visitState(t,i){}visitTransition(t,i){}visitAnimateChild(t,i){let e=i.subInstructions.get(i.element);if(e){let s=i.createSubContext(t.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(e,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=t}visitAnimateRef(t,i){let e=i.createSubContext(t.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],i,e),this.visitReference(t.animation,e),i.transformIntoNewTimeline(e.currentTimeline.currentTime),i.previousNode=t}_applyAnimationRefDelays(t,i,e){for(let s of t){let r=s==null?void 0:s.delay;if(r){let o=typeof r=="number"?r:Gt(gi(r,(s==null?void 0:s.params)??{},i.errors));e.delayNextStep(o)}}}_visitSubInstructions(t,i,e){let r=i.currentTimeline.currentTime,o=e.duration!=null?Gt(e.duration):null,a=e.delay!=null?Gt(e.delay):null;return o!==0&&t.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,i){i.updateOptions(t.options,!0),gt(this,t.animation,i),i.previousNode=t}visitSequence(t,i){let e=i.subContextCount,s=i,r=t.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==D.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Qi);let o=Gt(r.delay);s.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>gt(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>e&&s.transformIntoNewTimeline()),i.previousNode=t}visitGroup(t,i){let e=[],s=i.currentTimeline.currentTime,r=t.options&&t.options.delay?Gt(t.options.delay):0;t.steps.forEach(o=>{let a=i.createSubContext(t.options);r&&a.delayNextStep(r),gt(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),e.push(a.currentTimeline)}),e.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=t}_visitTiming(t,i){if(t.dynamic){let e=t.strValue,s=i.params?gi(e,i.params,i.errors):e;return qi(s,i.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,i){let e=i.currentAnimateTimings=this._visitTiming(t.timings,i),s=i.currentTimeline;e.delay&&(i.incrementTime(e.delay),s.snapshotCurrentStyles());let r=t.style;r.type==D.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(e.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=t}visitStyle(t,i){let e=i.currentTimeline,s=i.currentAnimateTimings;!s&&e.hasCurrentStyleProperties()&&e.forwardFrame();let r=s&&s.easing||t.easing;t.isEmptyStep?e.applyEmptyStep(r):e.setStyles(t.styles,r,i.errors,i.options),i.previousNode=t}visitKeyframes(t,i){let e=i.currentAnimateTimings,s=i.currentTimeline.duration,r=e.duration,a=i.createSubContext().currentTimeline;a.easing=e.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=t}visitQuery(t,i){let e=i.currentTimeline.currentTime,s=t.options||{},r=s.delay?Gt(s.delay):0;r&&(i.previousNode.type===D.Style||e==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Qi);let o=e,a=i.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{i.currentQueryIndex=h;let p=i.createSubContext(t.options,c);r&&p.delayNextStep(r),c===i.element&&(l=p.currentTimeline),gt(this,t.animation,p),p.currentTimeline.applyStylesToKeyframe();let y=p.currentTimeline.currentTime;o=Math.max(o,y)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=t}visitStagger(t,i){let e=i.parentContext,s=i.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=e.currentStaggerTime;break}let h=i.currentTimeline;l&&h.delayNextStep(l);let p=h.currentTime;gt(this,t.animation,i),i.previousNode=t,e.currentStaggerTime=s.currentTime-p+(s.startTime-e.currentTimeline.startTime)}},Qi={},jn=class n{constructor(t,i,e,s,r,o,a,l){this._driver=t,this.element=i,this.subInstructions=e,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Gi(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,i){if(!t)return;let e=t,s=this.options;e.duration!=null&&(s.duration=Gt(e.duration)),e.delay!=null&&(s.delay=Gt(e.delay));let r=e.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=gi(r[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let i=this.options.params;if(i){let e=t.params={};Object.keys(i).forEach(s=>{e[s]=i[s]})}}return t}createSubContext(t=null,i,e){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,e||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Qi,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,i,e){let s={duration:i??t.duration,delay:this.currentTimeline.currentTime+(e??0)+t.delay,easing:""},r=new Wn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,i,e,s,r,o){let a=[];if(s&&a.push(this.element),t.length>0){t=t.replace(ha,"."+this._enterClassName),t=t.replace(pa,"."+this._leaveClassName);let l=e!=1,c=this._driver.query(this.element,t,l);e!==0&&(c=e<0?c.slice(c.length+e,c.length):c.slice(0,e)),a.push(...c)}return!r&&a.length==0&&o.push(Co(i)),a}},Gi=class n{constructor(t,i,e,s){this._driver=t,this.element=i,this.startTime=e,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+t),i&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,i){return this.applyStylesToKeyframe(),new n(this._driver,t,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ca,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,i){this._localTimelineStyles.set(t,i),this._globalTimelineStyles.set(t,i),this._styleSummary.set(t,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[i,e]of this._globalTimelineStyles)this._backFill.set(i,e||zt),this._currentKeyframe.set(i,zt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,i,e,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=fa(t,this._globalTimelineStyles);for(let[a,l]of o){let c=gi(l,r,e);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zt),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,i)=>{this._currentKeyframe.set(i,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,t)}))}snapshotCurrentStyles(){for(let[t,i]of this._localTimelineStyles)this._pendingStyles.set(t,i),this._updateStyle(t,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let i in this._currentKeyframe)t.push(i);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((i,e)=>{let s=this._styleSummary.get(e);(!s||i.time>s.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,i=new Set,e=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,p)=>{h===Li?t.add(p):h===zt&&i.add(p)}),e||c.set("offset",l/this.duration),s.push(c)});let r=[...t.values()],o=[...i.values()];if(e){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return ns(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Wn=class extends Gi{constructor(t,i,e,s,r,o,a=!1){super(t,i,o.delay),this.keyframes=e,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:i,duration:e,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=e+i,a=i/o,l=new Map(t[0]);l.set("offset",0),r.push(l);let c=new Map(t[0]);c.set("offset",ur(a)),r.push(c);let h=t.length-1;for(let p=1;p<=h;p++){let y=new Map(t[p]),m=y.get("offset"),f=i+m*e;y.set("offset",ur(f/o)),r.push(y)}e=o,i=0,s="",t=r}return ns(this.element,t,this.preStyleProps,this.postStyleProps,e,i,s,!0)}};function ur(n,t=3){let i=Math.pow(10,t-1);return Math.round(n*i)/i}function fa(n,t){let i=new Map,e;return n.forEach(s=>{if(s==="*"){e??(e=t.keys());for(let r of e)i.set(r,zt)}else for(let[r,o]of s)i.set(r,o)}),i}function hr(n,t,i,e,s,r,o,a,l,c,h,p,y){return{type:0,element:n,triggerName:t,isRemovalTransition:s,fromState:i,fromStyles:r,toState:e,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:p,errors:y}}var Pn={},Yi=class{constructor(t,i,e){this._triggerName=t,this.ast=i,this._stateStyles=e}match(t,i,e,s){return ma(this.ast.matchers,t,i,e,s)}buildStyles(t,i,e){let s=this._stateStyles.get("*");return t!==void 0&&(s=this._stateStyles.get(t==null?void 0:t.toString())||s),s?s.buildStyles(i,e):new Map}build(t,i,e,s,r,o,a,l,c,h){var Nt;let p=[],y=this.ast.options&&this.ast.options.params||Pn,m=a&&a.params||Pn,f=this.buildStyles(e,m,p),v=l&&l.params||Pn,O=this.buildStyles(s,v,p),k=new Set,R=new Map,B=new Map,z=s==="void",Fe={params:Ar(v,y),delay:(Nt=this.ast.options)==null?void 0:Nt.delay},Ft=h?[]:Ir(t,i,this.ast.animation,r,o,f,O,Fe,c,p),st=0;return Ft.forEach(Wt=>{st=Math.max(Wt.duration+Wt.delay,st)}),p.length?hr(i,this._triggerName,e,s,z,f,O,[],[],R,B,st,p):(Ft.forEach(Wt=>{let Vt=Wt.element,ds=yt(R,Vt,new Set);Wt.preStyleProps.forEach(pe=>ds.add(pe));let Je=yt(B,Vt,new Set);Wt.postStyleProps.forEach(pe=>Je.add(pe)),Vt!==i&&k.add(Vt)}),hr(i,this._triggerName,e,s,z,f,O,Ft,[...k.values()],R,B,st))}};function ma(n,t,i,e,s){return n.some(r=>r(t,i,e,s))}function Ar(n,t){let i=wt({},t);return Object.entries(n).forEach(([e,s])=>{s!=null&&(i[e]=s)}),i}var Vn=class{constructor(t,i,e){this.styles=t,this.defaultParams=i,this.normalizer=e}buildStyles(t,i){let e=new Map,s=Ar(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=gi(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),e.set(a,o)})}),e}};function ga(n,t,i){return new Kn(n,t,i)}var Kn=class{constructor(t,i,e){this.name=t,this.ast=i,this._normalizer=e,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Vn(s.style,r,e))}),dr(this.states,"true","1"),dr(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new Yi(t,s,this.states))}),this.fallbackTransition=ya(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,i,e,s){return this.transitionFactories.find(o=>o.match(t,i,e,s))||null}matchStyles(t,i,e){return this.fallbackTransition.buildStyles(t,i,e)}};function ya(n,t,i){let e=[(o,a)=>!0],s={type:D.Sequence,steps:[],options:null},r={type:D.Transition,animation:s,matchers:e,options:null,queryCount:0,depCount:0};return new Yi(n,r,t)}function dr(n,t,i){n.has(t)?n.has(i)||n.set(i,n.get(t)):n.has(i)&&n.set(t,n.get(i))}var va=new yi,qn=class{constructor(t,i,e){this.bodyNode=t,this._driver=i,this._normalizer=e,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,i){let e=[],s=[],r=Or(this._driver,i,e,s);if(e.length)throw Po(e);s.length&&void 0,this._animations.set(t,r)}_buildPlayer(t,i,e){let s=t.element,r=br(this._normalizer,t.keyframes,i,e);return this._driver.animate(s,r,t.duration,t.delay,t.easing,[],!0)}create(t,i,e={}){let s=[],r=this._animations.get(t),o,a=new Map;if(r?(o=Ir(this._driver,i,r,Tr,Ln,new Map,new Map,e,va,s),o.forEach(h=>{let p=yt(a,h.element,new Map);h.postStyleProps.forEach(y=>p.set(y,null))})):(s.push(Fo()),o=[]),s.length)throw No(s);a.forEach((h,p)=>{h.forEach((y,m)=>{h.set(m,this._driver.computeStyle(p,m,zt))})});let l=o.map(h=>{let p=a.get(h.element);return this._buildPlayer(h,new Map,p)}),c=ce(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let i=this._getPlayer(t);i.destroy(),this._playersById.delete(t);let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1)}_getPlayer(t){let i=this._playersById.get(t);if(!i)throw ko(t);return i}listen(t,i,e,s){let r=Jn(i,"","","");return Xn(this._getPlayer(t),e,r,s),()=>{}}command(t,i,e,s){if(e=="register"){this.register(t,s[0]);return}if(e=="create"){let o=s[0]||{};this.create(t,i,o);return}let r=this._getPlayer(t);switch(e){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t);break}}},pr="ng-animate-queued",wa=".ng-animate-queued",Fn="ng-animate-disabled",ba=".ng-animate-disabled",_a="ng-star-inserted",Sa=".ng-star-inserted",Da=[],Mr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ta={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},At="__ng_removed",vi=class{get params(){return this.options.params}constructor(t,i=""){this.namespaceId=i;let e=t&&t.hasOwnProperty("value"),s=e?t.value:t;if(this.value=Ca(s),e){let r=t,{value:o}=r,a=gs(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let i=t.params;if(i){let e=this.options.params;Object.keys(i).forEach(s=>{e[s]==null&&(e[s]=i[s])})}}},mi="void",Nn=new vi(mi),Zn=class{constructor(t,i,e){this.id=t,this.hostElement=i,this._engine=e,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Dt(i,this._hostClassName)}listen(t,i,e,s){if(!this._triggers.has(i))throw Ro(e,i);if(e==null||e.length==0)throw Lo(i);if(!Oa(e))throw Ho(e,i);let r=yt(this._elementListeners,t,[]),o={name:i,phase:e,callback:s};r.push(o);let a=yt(this._engine.statesByElement,t,new Map);return a.has(i)||(Dt(t,zi),Dt(t,zi+"-"+i),a.set(i,Nn)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(t,i){return this._triggers.has(t)?!1:(this._triggers.set(t,i),!0)}_getTrigger(t){let i=this._triggers.get(t);if(!i)throw xo(t);return i}trigger(t,i,e,s=!0){let r=this._getTrigger(i),o=new wi(this.id,i,t),a=this._engine.statesByElement.get(t);a||(Dt(t,zi),Dt(t,zi+"-"+i),this._engine.statesByElement.set(t,a=new Map));let l=a.get(i),c=new vi(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Nn),!(c.value===mi)&&l.value===c.value){if(!Ma(l.params,c.params)){let v=[],O=r.matchStyles(l.value,l.params,v),k=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Oe(t,O),$t(t,k)})}return}let y=yt(this._engine.playersByElement,t,[]);y.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let m=r.matchTransition(l.value,c.value,t,c.params),f=!1;if(!m){if(!s)return;m=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:m,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(Dt(t,pr),o.onStart(()=>{Ze(t,pr)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);let O=this._engine.playersByElement.get(t);if(O){let k=O.indexOf(o);k>=0&&O.splice(k,1)}}),this.players.push(o),y.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(i=>i.delete(t)),this._elementListeners.forEach((i,e)=>{this._elementListeners.set(e,i.filter(s=>s.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let i=this._engine.playersByElement.get(t);i&&(i.forEach(e=>e.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,i){let e=this._engine.driver.query(t,Ki,!0);e.forEach(s=>{if(s[At])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>e.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(t,i,e,s){let r=this._engine.statesByElement.get(t),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(t,c,mi,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,i,o),e&&ce(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let i=this._elementListeners.get(t),e=this._engine.statesByElement.get(t);if(i&&e){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=e.get(o)||Nn,h=new vi(mi),p=new wi(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:h,player:p,isFallbackTransition:!0})})}}removeNode(t,i){let e=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,i),this.triggerLeaveAnimation(t,i,!0))return;let s=!1;if(e.totalAnimations){let r=e.players.length?e.playersByQueriedElement.get(t):[];if(r&&r.length)s=!0;else{let o=t;for(;o=o.parentNode;)if(e.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)e.markElementAsRemoved(this.id,t,!1,i);else{let r=t[At];(!r||r===Mr)&&(e.afterFlush(()=>this.clearElementCache(t)),e.destroyInnerAnimations(t),e._onRemovalComplete(t,i))}}insertNode(t,i){Dt(t,this._hostClassName)}drainQueuedTransitions(t){let i=[];return this._queue.forEach(e=>{let s=e.player;if(s.destroyed)return;let r=e.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==e.triggerName){let l=Jn(r,e.triggerName,e.fromState.value,e.toState.value);l._data=t,Xn(e.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(e)}),this._queue=[],i.sort((e,s)=>{let r=e.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(e.element,s.element)?1:-1})}destroy(t){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Qn=class{_onRemovalComplete(t,i){this.onRemovalComplete(t,i)}constructor(t,i,e){this.bodyNode=t,this.driver=i,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(i=>{i.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,i){let e=new Zn(t,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(e,i):(this.newHostElements.set(i,e),this.collectEnterElement(i)),this._namespaceLookup[t]=e}_balanceNamespaceList(t,i){let e=this._namespaceList,s=this.namespacesByHostElement;if(e.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=e.indexOf(l);e.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||e.unshift(t)}else e.push(t);return s.set(i,t),t}register(t,i){let e=this._namespaceLookup[t];return e||(e=this.createNamespace(t,i)),e}registerTrigger(t,i,e){let s=this._namespaceLookup[t];s&&s.register(i,e)&&this.totalAnimations++}destroy(t,i){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let e=this._fetchNamespace(t);this.namespacesByHostElement.delete(e.hostElement);let s=this._namespaceList.indexOf(e);s>=0&&this._namespaceList.splice(s,1),e.destroy(i),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let i=new Set,e=this.statesByElement.get(t);if(e){for(let s of e.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(t,i,e,s){if(Wi(i)){let r=this._fetchNamespace(t);if(r)return r.trigger(i,e,s),!0}return!1}insertNode(t,i,e,s){if(!Wi(i))return;let r=i[At];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(i,e)}s&&this.collectEnterElement(i)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,i){i?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Dt(t,Fn)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ze(t,Fn))}removeNode(t,i,e){if(Wi(i)){let s=t?this._fetchNamespace(t):null;s?s.removeNode(i,e):this.markElementAsRemoved(t,i,!1,e);let r=this.namespacesByHostElement.get(i);r&&r.id!==t&&r.removeNode(i,e)}else this._onRemovalComplete(i,e)}markElementAsRemoved(t,i,e,s,r){this.collectedLeaveElements.push(i),i[At]={namespaceId:t,setForRemoval:s,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,i,e,s,r){return Wi(i)?this._fetchNamespace(t).listen(i,e,s,r):()=>{}}_buildInstruction(t,i,e,s,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,e,s,t.fromState.options,t.toState.options,i,r)}destroyInnerAnimations(t){let i=this.driver.query(t,Ki,!0);i.forEach(e=>this.destroyActiveAnimationsForElement(e)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(t,Hn,!0),i.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(t){let i=this.playersByElement.get(t);i&&i.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(t){let i=this.playersByQueriedElement.get(t);i&&i.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ce(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;let i=t[At];if(i&&i.setForRemoval){if(t[At]=Mr,i.namespaceId){this.destroyInnerAnimations(t);let s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(e=t.classList)!=null&&e.contains(Fn)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ba,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(t=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,s)=>this._balanceNamespaceList(e,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){let e=this._whenQuietFns;this._whenQuietFns=[],i.length?ce(i).onDone(()=>{e.forEach(s=>s())}):e.forEach(s=>s())}}reportError(t){throw Bo(t)}_flushAnimations(t,i){let e=new yi,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(g=>{h.add(g);let w=this.driver.query(g,wa,!0);for(let b=0;b{let b=Tr+v++;f.set(w,b),g.forEach(A=>Dt(A,b))});let O=[],k=new Set,R=new Set;for(let g=0;gk.add(A)):R.add(w))}let B=new Map,z=gr(y,Array.from(k));z.forEach((g,w)=>{let b=Ln+v++;B.set(w,b),g.forEach(A=>Dt(A,b))}),t.push(()=>{m.forEach((g,w)=>{let b=f.get(w);g.forEach(A=>Ze(A,b))}),z.forEach((g,w)=>{let b=B.get(w);g.forEach(A=>Ze(A,b))}),O.forEach(g=>{this.processLeaveNode(g)})});let Fe=[],Ft=[];for(let g=this._namespaceList.length-1;g>=0;g--)this._namespaceList[g].drainQueuedTransitions(i).forEach(b=>{let A=b.player,q=b.element;if(Fe.push(A),this.collectedEnterElements.length){let J=q[At];if(J&&J.setForMove){if(J.previousTriggersValues&&J.previousTriggersValues.has(b.triggerName)){let fe=J.previousTriggersValues.get(b.triggerName),vt=this.statesByElement.get(b.element);if(vt&&vt.has(b.triggerName)){let _i=vt.get(b.triggerName);_i.value=fe,vt.set(b.triggerName,_i)}}A.destroy();return}}let kt=!p||!this.driver.containsElement(p,q),ut=B.get(q),Xt=f.get(q),H=this._buildInstruction(b,e,Xt,ut,kt);if(H.errors&&H.errors.length){Ft.push(H);return}if(kt){A.onStart(()=>Oe(q,H.fromStyles)),A.onDestroy(()=>$t(q,H.toStyles)),s.push(A);return}if(b.isFallbackTransition){A.onStart(()=>Oe(q,H.fromStyles)),A.onDestroy(()=>$t(q,H.toStyles)),s.push(A);return}let ms=[];H.timelines.forEach(J=>{J.stretchStartingKeyframe=!0,this.disabledNodes.has(J.element)||ms.push(J)}),H.timelines=ms,e.append(q,H.timelines);let to={instruction:H,player:A,element:q};o.push(to),H.queriedElements.forEach(J=>yt(a,J,[]).push(A)),H.preStyleProps.forEach((J,fe)=>{if(J.size){let vt=l.get(fe);vt||l.set(fe,vt=new Set),J.forEach((_i,mn)=>vt.add(mn))}}),H.postStyleProps.forEach((J,fe)=>{let vt=c.get(fe);vt||c.set(fe,vt=new Set),J.forEach((_i,mn)=>vt.add(mn))})});if(Ft.length){let g=[];Ft.forEach(w=>{g.push(Uo(w.triggerName,w.errors))}),Fe.forEach(w=>w.destroy()),this.reportError(g)}let st=new Map,Nt=new Map;o.forEach(g=>{let w=g.element;e.has(w)&&(Nt.set(w,w),this._beforeAnimationBuild(g.player.namespaceId,g.instruction,st))}),s.forEach(g=>{let w=g.element;this._getPreviousPlayers(w,!1,g.namespaceId,g.triggerName,null).forEach(A=>{yt(st,w,[]).push(A),A.destroy()})});let Wt=O.filter(g=>yr(g,l,c)),Vt=new Map;mr(Vt,this.driver,R,c,zt).forEach(g=>{yr(g,l,c)&&Wt.push(g)});let Je=new Map;m.forEach((g,w)=>{mr(Je,this.driver,new Set(g),l,Li)}),Wt.forEach(g=>{let w=Vt.get(g),b=Je.get(g);Vt.set(g,new Map([...(w==null?void 0:w.entries())??[],...(b==null?void 0:b.entries())??[]]))});let pe=[],ps=[],fs={};o.forEach(g=>{let{element:w,player:b,instruction:A}=g;if(e.has(w)){if(h.has(w)){b.onDestroy(()=>$t(w,A.toStyles)),b.disabled=!0,b.overrideTotalTime(A.totalTime),s.push(b);return}let q=fs;if(Nt.size>1){let ut=w,Xt=[];for(;ut=ut.parentNode;){let H=Nt.get(ut);if(H){q=H;break}Xt.push(ut)}Xt.forEach(H=>Nt.set(H,q))}let kt=this._buildAnimation(b.namespaceId,A,st,r,Je,Vt);if(b.setRealPlayer(kt),q===fs)pe.push(b);else{let ut=this.playersByElement.get(q);ut&&ut.length&&(b.parentPlayer=ce(ut)),s.push(b)}}else Oe(w,A.fromStyles),b.onDestroy(()=>$t(w,A.toStyles)),ps.push(b),h.has(w)&&s.push(b)}),ps.forEach(g=>{let w=r.get(g.element);if(w&&w.length){let b=ce(w);g.setRealPlayer(b)}}),s.forEach(g=>{g.parentPlayer?g.syncPlayerEvents(g.parentPlayer):g.destroy()});for(let g=0;g!kt.destroyed);q.length?Ia(this,w,q):this.processLeaveNode(w)}return O.length=0,pe.forEach(g=>{this.players.push(g),g.onDone(()=>{g.destroy();let w=this.players.indexOf(g);this.players.splice(w,1)}),g.play()}),pe}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,i,e,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let l=!r||r==mi;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(e||s)&&(o=o.filter(a=>!(e&&e!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(t,i,e){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:t,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,h=c!==r,p=yt(e,c,[]);this._getPreviousPlayers(c,h,o,a,i.toState).forEach(m=>{let f=m.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),m.destroy(),p.push(m)})}Oe(r,i.fromStyles)}_buildAnimation(t,i,e,s,r,o){let a=i.triggerName,l=i.element,c=[],h=new Set,p=new Set,y=i.timelines.map(f=>{let v=f.element;h.add(v);let O=v[At];if(O&&O.removedBeforeQueried)return new le(f.duration,f.delay);let k=v!==l,R=Aa((e.get(v)||Da).map(st=>st.getRealPlayer())).filter(st=>{let Nt=st;return Nt.element?Nt.element===v:!1}),B=r.get(v),z=o.get(v),Fe=br(this._normalizer,f.keyframes,B,z),Ft=this._buildPlayer(f,Fe,R);if(f.subTimeline&&s&&p.add(v),k){let st=new wi(t,a,v);st.setRealPlayer(Ft),c.push(st)}return Ft});c.forEach(f=>{yt(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ea(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>Dt(f,or));let m=ce(y);return m.onDestroy(()=>{h.forEach(f=>Ze(f,or)),$t(l,i.toStyles)}),p.forEach(f=>{yt(s,f,[]).push(m)}),m}_buildPlayer(t,i,e){return i.length>0?this.driver.animate(t.element,i,t.duration,t.delay,t.easing,e):new le(t.duration,t.delay)}},wi=class{constructor(t,i,e){this.namespaceId=t,this.triggerName=i,this.element=e,this._player=new le,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((i,e)=>{i.forEach(s=>Xn(t,e,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let i=this._player;i.triggerCallback&&t.onStart(()=>i.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,i){yt(this._queuedCallbacks,t,[]).push(i)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let i=this._player;i.triggerCallback&&i.triggerCallback(t)}};function Ea(n,t,i){let e=n.get(t);if(e){if(e.length){let s=e.indexOf(i);e.splice(s,1)}e.length==0&&n.delete(t)}return e}function Ca(n){return n??null}function Wi(n){return n&&n.nodeType===1}function Oa(n){return n=="start"||n=="done"}function fr(n,t){let i=n.style.display;return n.style.display=t??"none",i}function mr(n,t,i,e,s){let r=[];i.forEach(l=>r.push(fr(l)));let o=[];e.forEach((l,c)=>{let h=new Map;l.forEach(p=>{let y=t.computeStyle(c,p,s);h.set(p,y),(!y||y.length==0)&&(c[At]=Ta,o.push(c))}),n.set(c,h)});let a=0;return i.forEach(l=>fr(l,r[a++])),o}function gr(n,t){let i=new Map;if(n.forEach(a=>i.set(a,[])),t.length==0)return i;let e=1,s=new Set(t),r=new Map;function o(a){if(!a)return e;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=e:l=o(c),r.set(a,l),l}return t.forEach(a=>{let l=o(a);l!==e&&i.get(l).push(a)}),i}function Dt(n,t){var i;(i=n.classList)==null||i.add(t)}function Ze(n,t){var i;(i=n.classList)==null||i.remove(t)}function Ia(n,t,i){ce(i).onDone(()=>n.processLeaveNode(t))}function Aa(n){let t=[];return Pr(n,t),t}function Pr(n,t){for(let i=0;is.add(r)):t.set(n,e),i.delete(n),!0}var Xi=class{constructor(t,i,e){this._driver=i,this._normalizer=e,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Qn(t.body,i,e),this._timelineEngine=new qn(t.body,i,e),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(t,i,e,s,r){let o=t+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Or(this._driver,r,l,c);if(l.length)throw Ao(s,l);c.length&&void 0,a=ga(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(t,i){this._transitionEngine.register(t,i)}destroy(t,i){this._transitionEngine.destroy(t,i)}onInsert(t,i,e,s){this._transitionEngine.insertNode(t,i,e,s)}onRemove(t,i,e){this._transitionEngine.removeNode(t,i,e)}disableAnimations(t,i){this._transitionEngine.markElementAsDisabled(t,i)}process(t,i,e,s){if(e.charAt(0)=="@"){let[r,o]=nr(e),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(t,i,e,s)}listen(t,i,e,s,r){if(e.charAt(0)=="@"){let[o,a]=nr(e);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(t,i,e,s,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Pa(n,t){let i=null,e=null;return Array.isArray(t)&&t.length?(i=kn(t[0]),t.length>1&&(e=kn(t[t.length-1]))):t instanceof Map&&(i=kn(t)),i||e?new Gn(n,i,e):null}var Qe=class Qe{constructor(t,i,e){this._element=t,this._startStyles=i,this._endStyles=e,this._state=0;let s=Qe.initialStylesByElement.get(t);s||Qe.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&$t(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($t(this._element,this._initialStyles),this._endStyles&&($t(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Qe.initialStylesByElement.delete(this._element),this._startStyles&&(Oe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Oe(this._element,this._endStyles),this._endStyles=null),$t(this._element,this._initialStyles),this._state=3)}};Qe.initialStylesByElement=new WeakMap;var Gn=Qe;function kn(n){let t=null;return n.forEach((i,e)=>{Fa(e)&&(t=t||new Map,t.set(e,i))}),t}function Fa(n){return n==="display"||n==="position"}var Ji=class{constructor(t,i,e,s){this.element=t,this.keyframes=i,this.options=e,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let i=[];return t.forEach(e=>{i.push(Object.fromEntries(e))}),i}_triggerWebAnimation(t,i,e){return t.animate(this._convertKeyframesToObject(i),e)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,s)=>{s!=="offset"&&t.set(s,this._finished?e:is(this.element,s))}),this.currentSnapshot=t}triggerCallback(t){let i=t==="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},vr=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,i){return _r(t,i)}getParentElement(t){return ts(t)}query(t,i,e){return Sr(t,i,e)}computeStyle(t,i,e){return is(t,i)}animate(t,i,e,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:e,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(m=>m instanceof Ji);Xo(e,s)&&h.forEach(m=>{m.currentSnapshot.forEach((f,v)=>c.set(v,f))});let p=Qo(i).map(m=>new Map(m));p=Jo(t,p,c);let y=Pa(t,p);return new Ji(t,p,l,y)}};var Vi="@",Fr="@.disabled",tn=class{constructor(t,i,e,s){this.namespaceId=t,this.delegate=i,this.engine=e,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var i,e;(e=(i=this.delegate).destroyNode)==null||e.call(i,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,i){this.delegate.appendChild(t,i),this.engine.onInsert(this.namespaceId,i,t,!1)}insertBefore(t,i,e,s=!0){this.delegate.insertBefore(t,i,e),this.engine.onInsert(this.namespaceId,i,t,s)}removeChild(t,i,e){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,e,s){this.delegate.setAttribute(t,i,e,s)}removeAttribute(t,i,e){this.delegate.removeAttribute(t,i,e)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,e,s){this.delegate.setStyle(t,i,e,s)}removeStyle(t,i,e){this.delegate.removeStyle(t,i,e)}setProperty(t,i,e){i.charAt(0)==Vi&&i==Fr?this.disableAnimations(t,!!e):this.delegate.setProperty(t,i,e)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,e){return this.delegate.listen(t,i,e)}disableAnimations(t,i){this.engine.disableAnimations(t,i)}},Yn=class extends tn{constructor(t,i,e,s,r){super(i,e,s,r),this.factory=t,this.namespaceId=i}setProperty(t,i,e){i.charAt(0)==Vi?i.charAt(1)=="."&&i==Fr?(e=e===void 0?!0:!!e,this.disableAnimations(t,e)):this.engine.process(this.namespaceId,t,i.slice(1),e):this.delegate.setProperty(t,i,e)}listen(t,i,e){if(i.charAt(0)==Vi){let s=Na(t),r=i.slice(1),o="";return r.charAt(0)!=Vi&&([r,o]=ka(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,e,a)})}return this.delegate.listen(t,i,e)}};function Na(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function ka(n){let t=n.indexOf("."),i=n.substring(0,t),e=n.slice(t+1);return[i,e]}var wr=class{constructor(t,i,e){this.delegate=t,this.engine=i,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{r==null||r.removeChild(null,s)}}createRenderer(t,i){var c;let e="",s=this.delegate.createRenderer(t,i);if(!t||!((c=i==null?void 0:i.data)!=null&&c.animation)){let h=this._rendererCache,p=h.get(s);if(!p){let y=()=>h.delete(s);p=new tn(e,s,this.engine,y),h.set(s,p)}return p}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,t,h.name,h)};return i.data.animation.forEach(a),new Yn(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,e){if(t>=0&&ti(e));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,e])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Ra=Z(()=>{let n={onRemovalComplete:()=>{}},t=new me(null),i=u(Xi,{optional:!0})||n,{onRemovalComplete:e=n.onRemovalComplete}=i;return i.onRemovalComplete=(s,r)=>{t.next(s),e.call(i,s,r)},t.pipe(ht(s=>ye(0).pipe(C(()=>null),tt(s))),Si())});function Nr(n,t=null){return yn(n).activeElement!==n&&!n.matches(":disabled")&&!(t!=null&&t.contains(n))}function La(n){return Y(x(n,"focusin").pipe(C(({target:t})=>t)),x(n,"focusout").pipe(ot(({target:t,relatedTarget:i})=>!!i&&Nr(t)),C(({relatedTarget:t})=>t)))}var kr=Z(()=>{let n=u(Ra),t=u(Ut),i=u(_e),e=x(t,"focusout",{capture:!0}),s=x(t,"focusin",{capture:!0}),r=x(t,"blur"),o=x(t,"mousedown"),a=x(t,"mouseup");return Y(e.pipe(Jt(o),ti({delay:()=>a}),bs(n),ot(([l,c])=>Nr($e(l),c)),C(([{relatedTarget:l}])=>l)),r.pipe(C(()=>i.activeElement),ot(l=>!!(l!=null&&l.matches("iframe")))),s.pipe(ht(l=>{let c=$e(l),h=yn(c);return h===i?Ct(c):La(h).pipe(tt(c))})),o.pipe(ht(l=>{let c=$e(l);return!i.activeElement||i.activeElement===i.body?Ct(c):e.pipe(vs(1),C(()=>c),Jt(ye(0)))}))).pipe($(),Si())}),Zc=Z(()=>{var n;return((n=u(_e).querySelector("base"))==null?void 0:n.href)??""}),Ha=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,xa=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,rs=Z(()=>Ha.test(u(_n).toLowerCase())||xa.test(u(_n).slice(0,4).toLowerCase())),en=Z(()=>tr(u($s))),Ba=Z(()=>u(rs)&&!u(en)),Rr=Z(()=>{var n;return!!((n=u(Ut))!=null&&n.webkitConvertPointFromNodeToPage)}),Qc=Z(()=>u(en)?"ios":u(Ba)?"android":"web"),Gc=Z(()=>{let n=u(Ut).matchMedia("(pointer: coarse)");return Ai(ge(n,"change").pipe(C(()=>n.matches)),{initialValue:n.matches})}),Ua=Z(()=>!!u(Ut).Cypress),za=Z(je),Yc=Z(()=>u(Ua)||u(za)),os=new dt("");function Xc(n){return{provide:os,useValue:n}}var Jc=Z(()=>ks(u(Ts))?new Range:{}),Lr=new dt("[TUI_WINDOW_SIZE]",{factory:()=>{let n=u(Ut);return x(n,"resize").pipe(tt(null),C(()=>{var s,r;let t=Math.max(n.document.documentElement.clientWidth||0,n.innerWidth||0,((s=n.visualViewport)==null?void 0:s.width)||0),i=Math.max(n.document.documentElement.clientHeight||0,n.innerHeight||0,((r=n.visualViewport)==null?void 0:r.height)||0),e={width:t,height:i,top:0,left:0,right:t,bottom:i,x:0,y:0};return Ne(wt({},e),{toJSON:()=>JSON.stringify(e)})}),Di({bufferSize:1,refCount:!0}))}});function $a(n,t){if(n&1&&(Ot(0,"div",3),Le(1,"div",4),It()),n&2){let i=be().ngIf,e=be();Kt("t-bar_has-horizontal",i[1]),V("@tuiFadeIn",e.options)}}function ja(n,t){if(n&1&&(Ot(0,"div",5),Le(1,"div",6),It()),n&2){let i=be().ngIf,e=be();Kt("t-bar_has-vertical",i[0]),V("@tuiFadeIn",e.options)}}function Wa(n,t){if(n&1&&(si(0),lt(1,$a,2,3,"div",1)(2,ja,2,3,"div",2),ri()),n&2){let i=t.ngIf;rt(),V("ngIf",i[0]),rt(),V("ngIf",i[1])}}var Va=["*"];function Ka(n,t){n&1&&Le(0,"tui-scroll-controls",2)}var Hr=(()=>{let t=class t extends Tt{constructor(){super(e=>this.scroll$.subscribe(e)),this.el=F(),this.element=u(Ve).nativeElement,this.scroll$=Y(x(this.el.parentElement,"mousedown").pipe(C(e=>this.getScrolled(e,.5,.5))),x(this.el,"mousedown").pipe(ui(u(et)),ht(e=>{let{ownerDocument:s}=this.el,r=this.el.getBoundingClientRect(),o=qa(e,r),a=Za(e,r);return x(s,"mousemove").pipe(C(l=>this.getScrolled(l,o,a)),Jt(x(s,"mouseup")))})))}getScrolled({clientY:e,clientX:s},r,o){let{offsetHeight:a,offsetWidth:l}=this.el,{top:c,left:h,width:p,height:y}=this.el.parentElement.getBoundingClientRect(),m=this.element.scrollHeight-y,f=this.element.scrollWidth-p,v=(e-c-a*r)/(y-a),O=(s-h-l*o)/(p-l);return[m*v,f*O]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function qa({clientY:n},{top:t,height:i}){return(n-t)/i}function Za({clientX:n},{left:t,width:i}){return(n-t)/i}var nn=24,Qa=(()=>{let t=class t{constructor(){this.el=u(Ve).nativeElement,this.style=F().style,this.scrollSub=u(Hr).pipe(it()).subscribe(([e,s])=>{this.el.style.scrollBehavior="auto",this.el.scrollTo({top:e,left:s}),this.el.style.scrollBehavior=""}),this.styleSub=Y(u(Te).pipe(ve(100)),js(this.el)).pipe(ui(u(et)),it()).subscribe(()=>{this.tuiScrollbar==="vertical"?(this.style.top=`${this.thumb*100}%`,this.style.height=`${this.view*100}%`):(this.style.left=`${this.thumb*100}%`,this.style.width=`${this.view*100}%`)}),this.tuiScrollbar="vertical"}get scrolled(){let{scrollTop:e,scrollHeight:s,clientHeight:r,scrollLeft:o,scrollWidth:a,clientWidth:l}=this.el;return this.tuiScrollbar==="vertical"?e/(s-r):o/(a-l)}get compensation(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.el;return e*e/s>nn&&this.tuiScrollbar==="vertical"||r*r/o>nn&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?nn/e:nn/r}get thumb(){let e=this.compensation||this.view;return this.scrolled*(1-e)}get view(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.el;return this.tuiScrollbar==="vertical"?Math.ceil(e/s*100)/100:Math.ceil(r/o*100)/100}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},standalone:!0,features:[P([Hr])]});let n=t;return n})(),Ga=(()=>{let t=class t{constructor(){this.scrollRef=u(Ve).nativeElement,this.options=qe(u(We)),this.refresh$=u(Te).pipe(ve(300),C(()=>this.scrollbars),tt([!1,!1]),$((e,s)=>e[0]===s[0]&&e[1]===s[1]),ft(u(et)))}get scrollbars(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.scrollRef;return[Math.ceil(e/s*100)<100,Math.ceil(r/o*100)<100]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-scroll-controls"]],standalone:!0,features:[ct],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(s,r){s&1&&(lt(0,Wa,3,2,"ng-container",0),Is(1,"async")),s&2&&V("ngIf",As(1,1,r.refresh$))},dependencies:[li,Ns,Qa],styles:["[_nghost-%COMP%]{position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[Hi]},changeDetection:0});let n=t;return n})(),Ya="tui-scroll-into-view",Xa="tui-scrollable",xr=(()=>{let t=class t{constructor(){this.el=F(),this.isIOS=u(en),this.browserScrollRef=new ii(this.el),this.hidden=!1}get delegated(){return this.browserScrollRef.nativeElement!==this.el}onScrollable(e){this.browserScrollRef.nativeElement=e}scrollIntoView(e){var m;if(this.delegated)return;let{nativeElement:s}=this.browserScrollRef,{offsetTop:r,offsetLeft:o}=Bs(s,e),{clientHeight:a,clientWidth:l}=s,{offsetHeight:c,offsetWidth:h}=e,p=r+c/2-a/2,y=o+h/2-l/2;(m=s.scrollTo)==null||m.call(s,y,p)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(s,r){s&1&&_t("tui-scrollable.stop",function(a){return r.onScrollable(a.detail)})("tui-scroll-into-view.stop",function(a){return r.scrollIntoView(a.detail)}),s&2&&Kt("_native-hidden",!r.isIOS||r.hidden)},inputs:{hidden:"hidden"},standalone:!0,features:[P([{provide:Ve,useFactory:()=>u(t).browserScrollRef}]),ct],ngContentSelectors:Va,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(s,r){s&1&&(qt(),lt(0,Ka,1,0,"tui-scroll-controls",0),Ot(1,"div",1),Zt(2),It()),s&2&&(V("ngIf",!r.hidden&&!r.isIOS),rt(),Kt("t-content_delegated",r.delegated))},dependencies:[Ga,li],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}._native-hidden[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}._native-hidden[_nghost-%COMP%]::-webkit-scrollbar, ._native-hidden[_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-content[_ngcontent-%COMP%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-primary)}"],changeDetection:0});let n=t;return n})(),bu=(()=>{let t=class t{constructor(){this.el=F(),this.destroyRef=u(ne)}set tuiScrollIntoView(e){e&&ye(0).pipe(it(this.destroyRef)).subscribe(()=>{this.el.dispatchEvent(new CustomEvent(Ya,{bubbles:!0,detail:this.el}))})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},standalone:!0});let n=t;return n})();var _u=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollRef",""]],standalone:!0,features:[P([Q(Ve,ii)])]});let n=t;return n})(),Su=(()=>{let t=class t{constructor(){this.el=F()}ngOnInit(){this.el.dispatchEvent(new CustomEvent(Xa,{bubbles:!0,detail:this.el}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollable",""]],standalone:!0});let n=t;return n})();var Yt=class{supports(t){return t.includes(this.modifier)}unwrap(t){return t.split(".").filter(i=>!this.modifier.includes(i)).join(".")}},Ja=new dt("[GLOBAL_HANDLER]: Global event target handler",{factory:()=>{let n=u(_e);return t=>t==="body"?n.body:n.defaultView[t]||n.createElement("div")}}),tl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.handler=u(Ja),this.modifier=">"}addEventListener(e,s,r){return this.manager.addEventListener(this.handler(s.split(">")[0]),s.split(">")[1],r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),el=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(e){return e.includes(".")&&!this.unwrap(e).includes(".")}addEventListener(e,s,r){return e.addEventListener(this.unwrap(s),r,{once:s.includes(".once"),passive:s.includes(".passive"),capture:s.includes(".capture")}),()=>e.removeEventListener(this.unwrap(s),r,s.includes(".capture"))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),il=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.preventDefault(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),nl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier="resize"}supports(e){return e==="resize"}addEventListener(e,s,r){if(typeof ResizeObserver>"u"||!(e instanceof Element))return()=>{};let o=new ResizeObserver(a=>this.manager.getZone().run(()=>r(a)));return o.observe(e),()=>o.disconnect()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),sl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".self"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.target===o.currentTarget&&r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),as=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,s,r){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(s),r))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),rl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.stopPropagation(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ol=[as,tl,el,il,nl,sl,rl],Iu=ol.map(n=>({provide:Rs,multi:!0,useClass:n}));function Br(n){return(t,i,e)=>{let{value:s}=e;e.value=function(...r){n.apply(this,r)&&(as.ngZone?as.ngZone.run(()=>s.apply(this,r)):s.apply(this,r))}}}var jt=(()=>{let t=class t{constructor(){var e;this.control=u(Mi,{optional:!0,self:!0}),this.active$=u(kr),this.zone=u(et),this.el=F(),this.tuiActiveZoneParent=null,this.subActiveZones=[],this.directParentActiveZone=u(t,{skipSelf:!0,optional:!0}),this.tuiActiveZoneChange=this.active$.pipe(C(s=>!!s&&this.contains(s)),tt(!1),$(),Ti(1),ei(s=>{var r;!s&&typeof((r=this.control)==null?void 0:r.valueAccessor.onTouched)=="function"&&this.control.valueAccessor.onTouched()}),ft(this.zone)),(e=this.directParentActiveZone)==null||e.addSubActiveZone(this)}set tuiActiveZoneParentSetter(e){this.setZone(e)}ngOnDestroy(){var e,s;(e=this.directParentActiveZone)==null||e.removeSubActiveZone(this),(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this)}contains(e){return this.el.contains(e)||this.subActiveZones.some((s,r,o)=>o.indexOf(s)===r&&s.contains(e))}setZone(e){var s;(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this),e==null||e.addSubActiveZone(this),this.tuiActiveZoneParent=e}addSubActiveZone(e){this.subActiveZones=[...this.subActiveZones,e]}removeSubActiveZone(e){this.subActiveZones=Hs(this.subActiveZones,this.subActiveZones.indexOf(e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(s,r){s&1&&_t("mousedown.silent",function(){return 0},!1,we)},inputs:{tuiActiveZoneParentSetter:[0,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"],standalone:!0});let n=t;return Et([xt],n.prototype,"setZone",null),n})();var sn=class{},Mt=class extends sn{},Pt=class extends sn{};function Ur(n,t,i){return{provide:n,deps:[[new Re,new te,n],i],useFactory:bi(t)}}function bi(n){return(t,i)=>{var e;return((e=t==null?void 0:t.find)==null?void 0:e.call(t,s=>s!==i&&s.type===n))||i}}function on(n,t){return Ur(Mt,n,t)}function an(n,t){return Ur(Pt,n,t)}function zr(n){return Q(Mt,n,!0)}function Ge(n){return Q(Pt,n,!0)}var rn=class{};function ln(n){return Q(rn,n,!0)}var ue=class extends Tt{};function Ie(n){return Q(ue,n,!0)}var cn=(()=>{let t=class t{constructor(){this.destroyRef=u(ne),this.drivers=u(ue),this.vehicles=u(rn)}ngOnInit(){let e=this.vehicles.find(({type:s})=>s===this.type);Y(...this.drivers.filter(({type:s})=>s===this.type)).pipe($(),it(this.destroyRef)).subscribe(s=>{e==null||e.toggle(s)})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t});let n=t;return n})();var nh=(()=>{let t=class t extends Tt{constructor(){super(e=>this.stream$.subscribe(e)),this.media=u(Ks),this.sorted=Object.values(this.media).sort((e,s)=>e-s),this.invert=Object.keys(this.media).reduce((e,s)=>Ne(wt({},e),{[this.media[s]]:s}),{}),this.stream$=u(Lr).pipe(C(({width:e})=>this.sorted.find(s=>s>e)),C(e=>this.invert[e||this.sorted[this.sorted.length-1]]),$(),ft(u(et)),Di({bufferSize:1,refCount:!0}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ye=(()=>{let t=class t extends Tt{constructor(){let e=u(Te),s=u(et);super(r=>e.pipe(tt(null),C(()=>this.accessor.getPosition(this.el.getBoundingClientRect())),ui(s),ws(()=>this.accessor.getPosition(Bt))).subscribe(r)),this.el=F(),this.accessor=u(Mt)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),un=(()=>{let t=class t{constructor(){this.isWebkit=u(Rr),this.win=u(Ut)}correct(e){var s,r;return this.isWebkit?[e[0]+(((s=this.win.visualViewport)==null?void 0:s.offsetTop)??0),e[1]+(((r=this.win.visualViewport)==null?void 0:r.offsetLeft)??0)]:e}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ll=["viewContainer"],ls=class{},cl=(()=>{let t=class t{constructor(){this.refresh$=new Rt,this.pseudoInvalid=Ht(null),this.internal=Ht(u(os,{self:!0,optional:!0})),this.control=u(Mi,{self:!0}),this.destroyRef=u(ne),this.cdr=u(pt),this.transformer=u(ls,{optional:!0}),this.value=oe(()=>this.internal()),this.readOnly=Ht(!1),this.touched=Ht(!1),this.status=Ht(void 0),this.disabled=oe(()=>this.status()==="DISABLED"),this.interactive=oe(()=>!this.disabled()&&!this.readOnly()),this.invalid=oe(()=>this.pseudoInvalid()!==null?!!this.pseudoInvalid()&&this.interactive():this.interactive()&&this.touched()&&this.status()==="INVALID"),this.mode=oe(()=>this.readOnly()?"readonly":this.invalid()?"invalid":"valid"),this.onTouched=bn,this.onChange=bn,this.control.valueAccessor=this,this.refresh$.pipe(ke(0),tt(null),C(()=>this.control.control),ot(Ue),$(),ht(e=>Y(e.valueChanges,e.statusChanges)),it(this.destroyRef)).subscribe(()=>{this.update()})}set readOnlySetter(e){this.readOnly.set(e)}set invalidSetter(e){this.pseudoInvalid.set(e)}registerOnChange(e){this.refresh$.next(),this.onChange=s=>{s!==this.internal()&&(e(this.toControlValue(s)),this.internal.set(s),this.update())}}registerOnTouched(e){this.onTouched=()=>{e(),this.update()}}setDisabledState(){this.update()}writeValue(e){let s=this.control instanceof Ls?this.control.model:e;this.internal.set(this.fromControlValue(s)),this.update()}fromControlValue(e){return this.transformer?this.transformer.fromControlValue(e):e}toControlValue(e){return this.transformer?this.transformer.toControlValue(e):e}update(){var e,s;this.status.set((e=this.control.control)==null?void 0:e.status),this.touched.set(!!((s=this.control.control)!=null&&s.touched)),this.cdr.markForCheck()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,inputs:{readOnlySetter:[0,"readOnly","readOnlySetter"],invalidSetter:[0,"invalid","invalidSetter"]}});let n=t;return Et([xt],n.prototype,"fromControlValue",null),Et([xt],n.prototype,"toControlValue",null),n})();function vh(n){return Q(cl,n)}var $r=(()=>{let t=class t{constructor(){this.injector=u(ee),this.nothing=u(hn).attach(this)}addComponentChild(e){let s=e.createInjector(this.injector),r=this.vcr.createComponent(e.component,{injector:s});return r.changeDetectorRef.detectChanges(),r}addTemplateChild(e,s){return this.vcr.createEmbeddedView(e,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,viewQuery:function(s,r){if(s&1&&Cs(ll,5,ni),s&2){let o;He(o=xe())&&(r.vcr=o.first)}}});let n=t;return n})(),hn=(()=>{let t=class t{attach(e){this.host=e}add(e){return this.safeHost.addComponentChild(e)}remove({hostView:e}){e.destroyed||e.destroy()}addTemplate(e,s){return this.safeHost.addTemplateChild(e,s)}removeTemplate(e){e.destroyed||e.destroy()}get safeHost(){if(!this.host)throw new cs;return this.host}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function jr(n){return Q(hn,n)}var cs=class extends Error{constructor(){super("")}};var Wr=(()=>{let t=class t extends Tt{constructor(){super(e=>this.obscured$.subscribe(e)),this.el=F(),this.obscured$=u(Te).pipe(ve(100),C(()=>Pi(this.el)),tt(null),$(),ft(u(et)))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),dn=(()=>{let t=class t{constructor(){this.activeZone=u(jt,{optional:!0}),this.enabled$=new Rt,this.obscured$=u(Wr,{self:!0}).pipe(C(e=>!!(e!=null&&e.every(s=>{var r;return!((r=this.activeZone)!=null&&r.contains(s))})))),this.tuiObscured=this.enabled$.pipe(Ni(()=>this.obscured$))}set tuiObscuredEnabled(e){this.enabled$.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},standalone:!0,features:[P([Wr])]});let n=t;return n})();var hl=n=>({$implicit:n});function dl(n,t){if(n&1&&(Ot(0,"div",2),oi(1),It()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}var pl=["tuiDropdownHost"],fl=["*"],Xe=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ml=(()=>{let t=class t extends cn{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownDriver",""]],standalone:!0,features:[bt]});let n=t;return n})(),gl=Z(()=>wl),yl=new dt(""),Vr=(()=>{let t=class t extends hn{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Kr={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Ae=Se(Kr),vd=n=>({provide:Ae,deps:[[new te,vl],[new te,new Re,Ae]],useFactory:xi(n,Kr)}),vl=(()=>{let t=class t{constructor(){this.options=u(Ae,{skipSelf:!0}),this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[0,"tuiDropdownAlign","align"],appearance:[0,"tuiDropdownAppearance","appearance"],direction:[0,"tuiDropdownDirection","direction"],limitWidth:[0,"tuiDropdownLimitWidth","limitWidth"],minHeight:[0,"tuiDropdownMinHeight","minHeight"],maxHeight:[0,"tuiDropdownMaxHeight","maxHeight"],offset:[0,"tuiDropdownOffset","offset"]},standalone:!0,features:[P([Q(Ae,t)])]});let n=t;return n})(),pn=(()=>{let t=class t extends Mt{constructor(){super(...arguments),this.options=u(Ae),this.viewport=u(Ke),this.type="dropdown",this.accessor=bi("dropdown")(u(Pt),u(he,{optional:!0}))}getPosition({width:e,height:s}){var z;!e&&!s&&(this.previous=void 0);let r=((z=this.accessor)==null?void 0:z.getClientRect())??Bt,o=this.viewport.getClientRect(),{minHeight:a,align:l,direction:c,offset:h,limitWidth:p}=this.options,y={top:o.top-h,bottom:o.bottom+h,right:o.right-h,left:o.left+h},m=this.previous||c||"bottom",f={top:r.top-2*h-y.top,bottom:y.bottom-r.bottom-2*h},v=p==="fixed"?r.width:e,O=Math.max(r.right-v,h),k=r.left+ef.bottom?"top":"bottom";return f[m]>a&&c||f[m]>s?[R[m],R[l]]:(this.previous=B,[R[B],R[l]])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownPosition",""]],standalone:!0,features:[bt]});let n=t;return n})(),he=(()=>{let t=class t{constructor(){this.refresh$=new Rt,this.service=u(Vr),this.cdr=u(pt),this.sub=this.refresh$.pipe(ve(0),it()).subscribe(()=>{var e,s;(e=this.ref())==null||e.changeDetectorRef.detectChanges(),(s=this.ref())==null||s.changeDetectorRef.markForCheck()}),this.el=F(),this.type="dropdown",this.component=new Qt(u(gl),u(ee)),this.ref=Ht(null)}set tuiDropdown(e){this.content=e instanceof Lt?new En(e,this.cdr):e}get position(){return Cn(this.el)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){let s=this.ref();e&&this.content&&!s?this.ref.set(this.service.add(this.component)):!e&&s&&(this.ref.set(null),this.service.remove(s))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdown","",5,"ng-container",5,"ng-template"]],inputs:{tuiDropdown:"tuiDropdown"},exportAs:["tuiDropdown"],standalone:!0,features:[P([Ge(t),ln(t)]),se([ml,pn]),ie]});let n=t;return Et([xt],n.prototype,"position",null),n})(),wl=(()=>{let t=class t{constructor(){var e;this.el=F(),this.accessor=u(Pt),this.win=u(Ut),this.vvs=u(un),this.animation=qe(u(We)),this.options=u(Ae),this.directive=u(he),this.context=u(yl,{optional:!0}),this.theme=(e=this.directive.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme"),this.sub=u(Ye).pipe(Ei(()=>this.directive.el.isConnected),C(s=>this.directive.position==="fixed"?this.vvs.correct(s):s),C(([s,r])=>this.getStyles(s,r)),it()).subscribe({next:s=>Object.assign(this.el.style,s),complete:()=>this.close()}),this.close=()=>this.directive.toggle(!1)}getStyles(e,s){var B;let{right:r}=this.el.getBoundingClientRect(),{maxHeight:o,minHeight:a,offset:l,limitWidth:c}=this.options,{innerHeight:h}=this.win,p=(B=this.el.offsetParent)==null?void 0:B.getBoundingClientRect(),{position:y}=this.directive,m=this.accessor.getClientRect(),f=y==="fixed"?0:-((p==null?void 0:p.left)||0),v=y==="fixed"?0:-((p==null?void 0:p.top)||0);e+=v,s+=f;let O=r<=m.left||s>=m.right,R=sm.left&&e{let t=class t{constructor(){this.directive=u(he),this.el=F(),this.obscured=u(dn),this.dropdown=oe(()=>{var e;return(e=this.directive.ref())==null?void 0:e.location.nativeElement}),this.sub=Y(this.obscured.tuiObscured.pipe(ot(Boolean)),u(jt).tuiActiveZoneChange.pipe(ot(e=>!e)),ge(this.el,"focusin").pipe(C($e),ot(e=>!this.host.contains(e)||!this.directive.ref()))).pipe(Sn(u(pt)),it()).subscribe(()=>this.toggle(!1)),this.tuiDropdownEnabled=!0,this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new Ds,this.driver=u(Xe)}ngOnChanges(){this.drive()}toggle(e){this.focused&&!e&&this.host.focus({preventScroll:!0}),this.update(e)}onClick(e){!this.editable&&this.host.contains(e)&&this.update(!this.tuiDropdownOpen)}onArrow(e,s){!ci(e.target)||!this.host.contains(e.target)||!this.tuiDropdownEnabled||(e.preventDefault(),this.focusDropdown(s))}onEsc(e){e.preventDefault(),this.toggle(!1)}onKeydown({key:e,target:s,defaultPrevented:r}){r||!Js(e)||!this.editable||!this.focused||!De(s)||vn(s)&&s!==this.host||(this.update(!0),this.host.focus({preventScroll:!0}))}get host(){var r,o;let e=((r=this.dropdownHost)==null?void 0:r.nativeElement)||this.el,s=Ui(e)?e:In({initial:e,root:this.el});return((o=this.dropdownHost)==null?void 0:o.nativeElement)||s||this.el}get editable(){return vn(this.host)}get focused(){return pi(this.host)||pi(this.dropdown())}update(e){e&&!this.tuiDropdownEnabled||(this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e),this.drive())}drive(e=this.tuiDropdownOpen&&this.tuiDropdownEnabled){this.obscured.tuiObscuredEnabled=!!e,this.driver.next(!!e)}focusDropdown(e){let s=this.dropdown();if(!s){this.update(!0);return}let r=this.el.ownerDocument,o=s.appendChild(r.createElement("div")),l=In({initial:e?o:s,previous:e,root:s});o.remove(),l==null||l.focus()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdown","","tuiDropdownOpen",""],["","tuiDropdown","","tuiDropdownOpenChange",""]],contentQueries:function(s,r,o){if(s&1&&Ii(o,pl,5,ii),s&2){let a;He(a=xe())&&(r.dropdownHost=a.first)}},hostBindings:function(s,r){s&1&&_t("click",function(a){return r.onClick(a.target)})("keydown.arrowDown",function(a){return r.onArrow(a,!1)})("keydown.arrowUp",function(a){return r.onArrow(a,!0)})("keydown.silent.capture",function(a){return r.onEsc(a)},!1,we)("keydown.silent",function(a){return r.onKeydown(a)},!1,we)},inputs:{tuiDropdownEnabled:"tuiDropdownEnabled",tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0,features:[P([Xe,Ie(Xe)]),se([dn,{directive:jt,inputs:["tuiActiveZoneParent","tuiActiveZoneParent"],outputs:["tuiActiveZoneChange","tuiActiveZoneChange"]}]),ie]});let n=t;return Et([Br(_l)],n.prototype,"onEsc",null),n})();var _d=(()=>{let t=class t{constructor(){this.driver=u(Xe),this.tuiDropdownManual=!1}ngOnChanges(){this.driver.next(!!this.tuiDropdownManual)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},standalone:!0,features:[P([Xe,Ie(Xe)]),ie]});let n=t;return n})(),Sd=(()=>{let t=class t{constructor(){this.tuiDropdownOpenChange=new me(!1)}set tuiDropdownOpen(e){this.tuiDropdownOpenChange.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownOpen","",3,"tuiDropdown",""],["","tuiDropdownOpenChange","",3,"tuiDropdown",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0});let n=t;return n})();var Dd=(()=>{let t=class t extends Mt{constructor(){super(...arguments),this.options=u(Ae),this.viewport=u(Ke),this.vertical=u(pn),this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var k;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:s,width:r}=e,o=((k=this.vertical.accessor)==null?void 0:k.getClientRect())??Bt,a=this.viewport.getClientRect(),{direction:l,minHeight:c,offset:h}=this.options,p=this.options.align==="center"?"left":this.options.align,y={top:o.bottom-a.top,left:o.left-h-a.left,right:a.right-o.right-h,bottom:a.bottom-o.top},m={top:o.bottom-s+this.tuiDropdownSidedOffset+1,left:o.left-r-h,right:o.right+h,bottom:o.top-this.tuiDropdownSidedOffset-1},f=y.top>y.bottom?"top":"bottom",v=y.left>y.right?m.left:m.right,O=y[p]>r?m[p]:v;return y[this.previous]>c&&l||this.previous===f?[m[this.previous],O]:(this.previous=f,[m[f],O])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},standalone:!0,features:[P([pn,zr(t)]),bt]});let n=t;return n})();var Td=(()=>{let t=class t extends $r{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275cmp=at({type:t,selectors:[["tui-dropdowns"]],standalone:!0,features:[P([jr(Vr)]),bt,ct],ngContentSelectors:fl,decls:3,vars:0,consts:[["viewContainer",""]],template:function(s,r){s&1&&(qt(),Zt(0),Ci(1,null,0))},styles:["[_nghost-%COMP%]{display:block;height:100%;isolation:isolate}"],changeDetection:0});let n=t;return n})();var Sl=["tuiOption",""],qr=["*"],Dl=n=>({$implicit:n});function Tl(n,t){if(n&1&&(si(0),oi(1),ri()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}function El(n,t){n&1&&Zt(0)}function Cl(n,t){if(n&1&&(si(0),oi(1),ri()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}function Ol(n,t){if(n&1&&(Ot(0,"div",1),lt(1,Cl,2,1,"ng-container",2),It()),n&2){let i=be();rt(),V("polymorpheusOutlet",i.emptyContent||i.fallback())}}var Il=new dt("[TUI_OPTION_CONTENT]");var Al=new dt("[TUI_DATA_LIST_ACCESSOR]");function Ml(n){return Q(Al,n)}var Zr=new dt("[TUI_DATA_LIST_HOST]");var Pl=(()=>{let t=class t{constructor(){var e;this.isMobile=u(rs),this.el=F(),this.dataList=u(_s(()=>Nl),{optional:!0}),this.host=u(Zr,{optional:!0}),this.content=u(Il,{optional:!0}),this.dropdown=(e=u(he,{self:!0,optional:!0}))==null?void 0:e.ref,this.disabled=!1}ngOnDestroy(){var e;(e=this.dataList)==null||e.handleFocusLossIfNecessary(this.el)}onClick(){var e;(e=this.host)!=null&&e.handleOption&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove(){!this.isMobile&&!di(this.el)&&this.dataList&&this.el.focus({preventScroll:!0})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""],["label","tuiOption",""]],hostAttrs:["type","button","role","option"],hostVars:3,hostBindings:function(s,r){s&1&&_t("click",function(){return r.onClick()})("mousemove.silent",function(){return r.onMouseMove()}),s&2&&(re("disabled",r.disabled||null),Kt("_with-dropdown",r.dropdown==null?null:r.dropdown()))},inputs:{disabled:"disabled",value:"value"},standalone:!0,features:[se([qs]),ct],attrs:Sl,ngContentSelectors:qr,decls:3,vars:4,consts:[["t",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){if(s&1&&(qt(),lt(0,Tl,2,1,"ng-container",1)(1,El,1,0,"ng-template",null,0,Ms)),s&2){let o=Os(2);V("polymorpheusOutlet",r.content||o)("polymorpheusOutletContext",Be(2,Dl,o))}},dependencies:[ae],encapsulation:2,changeDetection:0});let n=t;return n})();function Fl(){var i;let n=["s","m","l"],t=(i=u(Zr,{optional:!0}))==null?void 0:i.size;return t&&n.includes(t)?t:"l"}var Nl=(()=>{let t=class t{constructor(){this.options=Us,this.el=F(),this.fallback=Ai(u(Ws)),this.empty=!0,this.size=Fl()}onKeyDownArrow(e,s){let{elements:r}=this;er(r.indexOf(e),r,s)}handleFocusLossIfNecessary(e=this.el){var s;pi(e)&&((s=this.origin)==null||s.focus({preventScroll:!0}))}ngAfterContentChecked(){this.empty=!this.el.querySelector("[tuiOption]")}getOptions(e=!1){return this.options.filter(({disabled:s})=>e||!s).map(({value:s})=>s).filter(Ue)}onFocusIn(e,s){!s.contains(e)&&!this.origin&&(this.origin=e)}noop(){}get elements(){return Array.from(this.el.querySelectorAll("a[tuiOption],button[tuiOption],input"))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-data-list"]],contentQueries:function(s,r,o){if(s&1&&Ii(o,Pl,5),s&2){let a;He(a=xe())&&(r.options=a)}},hostAttrs:["role","listbox"],hostVars:1,hostBindings:function(s,r){s&1&&_t("keydown.arrowDown.prevent",function(a){return r.onKeyDownArrow(a.target,1)})("keydown.arrowUp.prevent",function(a){return r.onKeyDownArrow(a.target,-1)})("wheel.silent.passive",function(){return r.handleFocusLossIfNecessary()})("mouseleave",function(a){return r.handleFocusLossIfNecessary(a.target)})("keydown.tab",function(){return r.handleFocusLossIfNecessary()})("keydown.shift.tab",function(){return r.handleFocusLossIfNecessary()})("focusin",function(a){return r.onFocusIn(a.relatedTarget,a.currentTarget)})("mousedown.prevent",function(){return r.noop()}),s&2&&re("data-size",r.size)},inputs:{emptyContent:"emptyContent",size:"size"},standalone:!0,features:[P([Ml(t)]),ct],ngContentSelectors:qr,decls:2,vars:1,consts:[["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(s,r){s&1&&(qt(),Zt(0),lt(1,Ol,2,1,"div",0)),s&2&&(rt(),V("ngIf",r.empty))},dependencies:[li,ae],styles:[`tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-tertiary)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-size=s]>.t-empty,tui-data-list[data-size=s] [tuiOption]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-size=s]>.t-empty:before,tui-data-list[data-size=s] [tuiOption]:before{font-size:1rem}tui-data-list[data-size=m]>.t-empty,tui-data-list[data-size=m] [tuiOption]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-size=l]>.t-empty,tui-data-list[data-size=l] [tuiOption]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-data-list>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0}tui-data-list [tuiOption]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;justify-content:space-between;text-align:left;color:var(--tui-text-primary);border-radius:var(--tui-radius-s);outline:none;cursor:pointer;background-clip:padding-box}tui-data-list [tuiOption]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}tui-data-list [tuiOption]:focus-within,tui-data-list [tuiOption]._with-dropdown{background-color:var(--tui-background-neutral-1)}tui-data-list [tuiOption]:before{margin-inline-end:.5rem}tui-data-list [tuiOption]:after{font-size:1rem;margin:0 -.75rem 0 auto;border-left:.5rem solid;border-right:.5rem solid}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-secondary);flex-direction:column;line-height:1rem}tui-data-list[data-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-border-normal)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0} +import{$ as ve,$a as se,$b as Ms,Aa as j,Ab as Cs,Ad as $e,Ae as We,B as ot,Bb as He,Bc as ks,Bd as yn,Ca as Ss,Cb as xe,Cd as Pi,Da as ne,Db as Os,Dd as Bs,Eb as oi,Ed as F,F as ys,Fa as Ds,Fc as Rs,Fd as vn,Ga as et,Gb as ai,Gd as wn,He as Ws,I as vs,Ia as ii,Ja as Ts,Jc as it,K as ke,Ke as Vs,L as $,La as Es,Lc as Ai,Ld as Us,M as ws,Me as Ks,Nd as bn,Ob as P,Od as Bt,Pa as we,Pb as ct,Pd as je,Qa as rt,Qb as Be,Qc as Mi,Qd as Fi,Qe as Ve,R as ti,Ra as gn,Sd as zs,T as Si,Ta as Lt,Te as Ke,U as Di,V as Ti,Vb as Is,Vc as Ls,Ve as qs,W as tt,Wb as As,X as ht,Y as Jt,Ya as ni,Z as Ei,Za as Ht,_ as ei,_a as bt,aa as bs,ba as M,ca as _s,d as Tt,da as N,db as lt,dd as Hs,eb as re,fb as V,fd as Se,g as Rt,ga as dt,gd as Z,h as me,hb as Kt,hc as pt,ja as u,kc as oe,kd as Ue,ke as Ut,l as Et,la as te,lc as Ps,le as Te,mb as Ot,md as Q,n as Ct,na as Re,nb as It,nc as _e,ne as $s,oa as ee,ob as Le,od as xt,oe as _n,pa as at,pb as si,pd as St,qb as ri,qd as xs,r as C,ra as T,rb as Ci,rd as ze,re as x,se as Ni,ub as Oi,ue as js,vb as _t,vc as Fs,wa as ie,wb as be,wc as li,we as Sn,x as ge,xb as qt,xe as ui,y as ye,yb as Zt,yc as Ns,yd as ci,ye as ft,z as Y,zb as Ii,zd as De}from"./chunk-SY4TDKKS.js";import{a as wt,b as Ne,c as gs,d as G}from"./chunk-HFDGAYQF.js";var Tn=new dt("POLYMORPHEUS_CONTEXT"),Qt=class{constructor(t,i){G(this,"component");G(this,"i");this.component=t,this.i=i}createInjector(t,i){return Ss.create({parent:this.i||t,providers:[{provide:Tn,useValue:i}]})}},ki=class{constructor(t){G(this,"$implicit");this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var En=(()=>{let t=class t{constructor(e=u(Lt,{self:!0}),s=u(pt)){G(this,"template");G(this,"cdr");G(this,"polymorpheus","");this.template=e,this.cdr=s}static ngTemplateContextGuard(e,s){return!0}check(){this.cdr.markForCheck()}};G(t,"\u0275fac",function(s){return new(s||t)(gn(Lt),gn(pt))}),G(t,"\u0275dir",T({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"],standalone:!0}));let n=t;return n})(),ae=(()=>{let t=class t{constructor(){G(this,"vcr",u(ni));G(this,"i",u(ee));G(this,"t",u(Lt));G(this,"c");G(this,"content","");G(this,"context")}static ngTemplateContextGuard(e,s){return!0}ngOnChanges({content:e}){var o;let s=this.getContext();if((o=this.c)==null||o.injector.get(pt).markForCheck(),!e)return;this.vcr.clear();let r=s&&new Proxy(s,{get:(a,l)=>{var c;return(c=this.getContext())==null?void 0:c[l]}});Zs(this.content)?this.process(this.content,r):(s instanceof ki&&s.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,r,{injector:this.i})}ngDoCheck(){Dn(this.content)&&this.content.check()}get template(){return Dn(this.content)?this.content.template:this.content instanceof Lt?this.content:this.t}getContext(){return eo(this.content)||Zs(this.content)?this.context:new ki(this.context&&typeof this.content=="function"?this.content(this.context):this.content)}process(e,s){let r=e.createInjector(this.i,s);this.c=this.vcr.createComponent(e.component,{injector:r})}};G(t,"\u0275fac",function(s){return new(s||t)}),G(t,"\u0275dir",T({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[0,"polymorpheusOutlet","content"],context:[0,"polymorpheusOutletContext","context"]},standalone:!0,features:[ie]}));let n=t;return n})();function Dn(n){return n instanceof En}function Zs(n){return n instanceof Qt}function eo(n){return Dn(n)||n instanceof Lt}var D=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(D||{}),zt="*";function L(n,t){return{type:D.Trigger,name:n,definitions:t,options:{}}}function _(n,t=null){return{type:D.Animate,styles:t,timings:n}}function Qs(n,t=null){return{type:D.Sequence,steps:n,options:t}}function d(n){return{type:D.Style,styles:n,offset:null}}function E(n,t,i=null){return{type:D.Transition,expr:n,animation:t,options:i}}function Ri(n=null){return{type:D.AnimateChild,options:n}}function W(n,t,i=null){return{type:D.Query,selector:n,animation:t,options:i}}function X(n,t){return{type:D.Stagger,timings:n,animation:t}}var le=class{constructor(t=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},hi=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let i=0,e=0,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==r&&this._onFinish()}),o.onDestroy(()=>{++e==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let i=t*this.totalTime;this.players.forEach(e=>{let s=e.totalTime?Math.min(1,i/e.totalTime):1;e.setPosition(s)})}getPosition(){let t=this.players.reduce((i,e)=>i===null||e.totalTime>i.totalTime?e:i,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let i=t=="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},Li="!";var S="{{duration}}ms ease-in-out",I={params:{duration:300}},nt=300,Gs=L("tuiParentAnimation",[E(":leave",[W(":scope > *",[Ri()],{optional:!0})])]),ec=L("tuiParentStop",[E(":enter",[])]),ic=L("tuiHost",[E(":enter",[d({overflow:"clip"}),W(":scope > *",[Ri()],{optional:!0})]),E(":leave",[W(":scope > *",[Ri()],{optional:!0})])]),nc=L("tuiHeightCollapse",[E(":enter",[d({height:0}),_(S,d({height:"*"}))],I),E(":leave",[d({height:"*"}),_(S,d({height:0}))],I)]),sc=L("tuiHeightCollapseList",[E("* => *",[W(":enter",[d({height:0}),X(nt,[_(S,d({height:"*"}))])],{optional:!0}),W(":leave",[d({height:"*"}),X(nt,[_(S,d({height:0}))])],{optional:!0})],I)]),rc=L("tuiWidthCollapse",[E(":enter",[d({width:0}),_(S,d({width:"*"}))],I),E(":leave",[d({width:"*"}),_(S,d({width:0}))],I)]),oc=L("tuiWidthCollapseList",[E("* => *",[W(":enter",[d({width:0}),X(nt,[_(S,d({width:"*"}))])],{optional:!0}),W(":leave",[d({width:"*"}),X(nt,[_(S,d({width:0}))])],{optional:!0})],I)]),Hi=L("tuiFadeIn",[E(":enter",[d({opacity:0}),_(S,d({opacity:1}))],I),E(":leave",[d({opacity:1}),_(S,d({opacity:0}))],I)]),ac=L("tuiFadeInList",[E("* => *",[W(":enter",[d({opacity:0}),X(nt,[_(S,d({opacity:1}))])],{optional:!0}),W(":leave",[d({opacity:1}),X(nt,[_(S,d({opacity:0}))])],{optional:!0})],I)]),lc=L("tuiFadeInTop",[E(":enter",[d({transform:"translateY(-10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(-10px)",opacity:0}))],I)]),cc=L("tuiFadeInBottom",[E(":enter",[d({transform:"translateY(10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(10px)",opacity:0}))],I)]),Ys=L("tuiDropdownAnimation",[E(":enter",[d({transform:"translateY(-10px)",opacity:0}),_(S,d({transform:"translateY(0)",opacity:1}))],I),E(":leave",[d({transform:"translateY(0)",opacity:1}),_(S,d({transform:"translateY(-10px)",opacity:0}))],I)]),uc=L("tuiScaleIn",[E(":enter",[d({transform:"scale(0)"}),_(S,d({transform:"scale(1)"}))],I),E(":leave",[d({transform:"scale(1)"}),_(S,d({transform:"scale(0)"}))],I)]),hc=L("tuiPop",[E(":enter",[d({transform:"scale(0)"}),_(S,d({transform:"scale(1.1)"})),_(S,d({transform:"scale(1)"}))],I),E(":leave",[d({transform:"scale(1)"}),_(S,d({transform:"scale(1.1)"})),_(S,d({transform:"scale(0)"}))],I)]),dc=L("tuiScaleInList",[E("* => *",[W(":enter",[d({transform:"scale(0)"}),X(nt,[_(S,d({transform:"scale(1)"}))])],{optional:!0}),W(":leave",[d({transform:"scale(1)"}),X(nt,[_(S,d({transform:"scale(0)"}))])],{optional:!0})],I)]),pc=L("tuiSlideIn",[E("* => left",[d({transform:"translateX(-100%)"}),_(S,d({transform:"translateX(0)"}))],I),E("left => *",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(-100%)"}))],I),E("* => right",[d({transform:"translateX(100%)"}),_(S,d({transform:"translateX(0)"}))],I),E("right => *",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(100%)"}))],I)]),fc=L("tuiSlideInLeft",[E(":enter",[d({transform:"translateX(-100%)"}),_(S,d({transform:"translateX(0)"}))],I),E(":leave",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(-100%)"}))],I)]),mc=L("tuiSlideInLeftList",[E("* => *",[W(":enter",[d({transform:"translateX(-100%)"}),X(nt,[_(S,d({transform:"translateX(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateX(0)"}),X(nt,[_(S,d({transform:"translateX(-100%)"}))])],{optional:!0})],I)]),gc=L("tuiSlideInRight",[E(":enter",[d({transform:"translateX(100%)"}),_(S,d({transform:"translateX(0)"}))],I),E(":leave",[d({transform:"translateX(0)"}),_(S,d({transform:"translateX(100%)"}))],I)]),yc=L("tuiSlideInRightList",[E("* => *",[W(":enter",[d({transform:"translateX(100%)"}),X(nt,[_(S,d({transform:"translateX(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateX(0)"}),X(nt,[_(S,d({transform:"translateX(100%)"}))])],{optional:!0})],I)]),vc=L("tuiSlideInTop",[E(":enter",[d({transform:"translate3d(0,{{start}},0)",pointerEvents:"none"}),_(S,d({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),E(":leave",[d({transform:"translate3d(0,{{end}},0)"}),_(S,d({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),wc=L("tuiSlideInTopList",[E("* => *",[W(":enter",[d({transform:"translateY(100%)"}),X(nt,[_(S,d({transform:"translateY(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateY(0)"}),X(nt,[_(S,d({transform:"translateY(100%)"}))])],{optional:!0})],I)]),bc=L("tuiSlideInBottom",[E(":enter",[d({transform:"translateY(-100%)"}),_(S,d({transform:"translateY(0)"}))],I),E(":leave",[d({transform:"translateY(0)"}),_(S,d({transform:"translateY(-100%)"}))],I)]),_c=L("tuiSlideInBottomList",[E("* => *",[W(":enter",[d({transform:"translateY(-100%)"}),X(nt,[_(S,d({transform:"translateY(0)"}))])],{optional:!0}),W(":leave",[d({transform:"translateY(0)"}),X(nt,[_(S,d({transform:"translateY(-100%)"}))])],{optional:!0})],I)]);function Cn(n){return!!n&&(io(n)||Cn(n.parentElement))}function io(n){var t;return((t=n.ownerDocument.defaultView)==null?void 0:t.getComputedStyle(n).getPropertyValue("position"))==="fixed"}var no=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];function Js(n=""){return n.length===1||no.includes(n)}function On(n,t="tui-hints"){var i;return!!((i=Pi(n))!=null&&i.some(e=>!e.closest(t)))}function xi(n,t){return(i,e)=>{let s=i||wt({},e||t);return Object.keys(n).forEach(r=>{s[r]=n[r]}),s}}var Xs={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function Ec(n,t="s"){return Xs[n]>Xs[t]}var so=300;function qe(n){return{value:"",params:{duration:ro(n)}}}function ro(n){return n&&so/n}function oo(n){return n.platform.startsWith("Mac")||n.platform==="iPhone"}var ao=/ipad|iphone|ipod/;function tr(n){return ao.test(n.userAgent.toLowerCase())||oo(n)&&n.maxTouchPoints>1}function Ic({ownerDocument:n}){var s,r,o,a,l,c,h,p;let t=n==null?void 0:n.defaultView,i=typeof t.safari<"u"&&((r=(s=t.safari)==null?void 0:s.pushNotification)==null?void 0:r.toString())==="[object SafariRemoteNotification]",e=!!((a=(o=t.navigator)==null?void 0:o.vendor)!=null&&a.includes("Apple"))&&!((c=(l=t.navigator)==null?void 0:l.userAgent)!=null&&c.includes("CriOS"))&&!((p=(h=t.navigator)==null?void 0:h.userAgent)!=null&&p.includes("FxiOS"));return i||e}function Bi({activeElement:n}){if(!(n!=null&&n.shadowRoot))return n;let t=n.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Fc(n){let t=Bi(n);De(t)&&t.blur()}function Ui(n){if(n.hasAttribute("disabled")||n.getAttribute("tabIndex")==="-1")return!1;if(De(n)&&n.isContentEditable||n.getAttribute("tabIndex")==="0")return!0;switch(n.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return n.hasAttribute("controls");case"INPUT":return n.getAttribute("type")!=="hidden";case"A":case"LINK":return n.hasAttribute("href");default:return!1}}function lo(n){return!n.hasAttribute("disabled")&&(n.getAttribute("tabIndex")==="-1"||Ui(n))}function In({initial:n,root:t,previous:i=!1,keyboard:e=!0}){if(!t.ownerDocument)return null;let s=e?Ui:lo,r=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,zs);for(r.currentNode=n;i?r.previousNode():r.nextNode();)if(De(r.currentNode)&&(n=r.currentNode),De(n)&&s(n))return n;return null}function di(n){return!!(n!=null&&n.ownerDocument)&&Bi(n.ownerDocument)===n&&n.ownerDocument.hasFocus()}function pi(n){var i;let t=(n==null?void 0:n.ownerDocument)&&Bi(n.ownerDocument);return!!t&&n.contains(t)&&!!((i=n.ownerDocument)!=null&&i.hasFocus())}function er(n,t,i){for(n+=i;n>=0&&n{let c=l.get("offset"),h=c==o,p=h&&a||new Map;l.forEach((y,m)=>{let f=m,v=y;if(m!=="offset")switch(f=n.normalizePropertyName(f,s),v){case Li:v=i.get(m);break;case zt:v=e.get(m);break;default:v=n.normalizeStyleValue(m,f,v,s);break}p.set(f,v)}),h||r.push(p),a=p,o=c}),s.length)throw Mo(s);return r}function Xn(n,t,i,e){switch(t){case"start":n.onStart(()=>e(i&&An(i,"start",n)));break;case"done":n.onDone(()=>e(i&&An(i,"done",n)));break;case"destroy":n.onDestroy(()=>e(i&&An(i,"destroy",n)));break}}function An(n,t,i){let e=i.totalTime,s=!!i.disabled,r=Jn(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function Jn(n,t,i,e,s="",r=0,o){return{element:n,triggerName:t,fromState:i,toState:e,phaseName:s,totalTime:r,disabled:!!o}}function yt(n,t,i){let e=n.get(t);return e||n.set(t,e=i),e}function nr(n){let t=n.indexOf(":"),i=n.substring(1,t),e=n.slice(t+1);return[i,e]}var zo=typeof document>"u"?null:document.documentElement;function ts(n){let t=n.parentNode||n.host||null;return t===zo?null:t}function $o(n){return n.substring(1,6)=="ebkit"}var Ee=null,sr=!1;function jo(n){Ee||(Ee=Wo()||{},sr=Ee.style?"WebkitAppearance"in Ee.style:!1);let t=!0;return Ee.style&&!$o(n)&&(t=n in Ee.style,!t&&sr&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ee.style)),t}function Wo(){return typeof document<"u"?document.body:null}function _r(n,t){for(;t;){if(t===n)return!0;t=ts(t)}return!1}function Sr(n,t,i){if(i)return Array.from(n.querySelectorAll(t));let e=n.querySelector(t);return e?[e]:[]}var Vo=(()=>{let t=class t{validateStyleProperty(e){return jo(e)}containsElement(e,s){return _r(e,s)}getParentElement(e){return ts(e)}query(e,s,r){return Sr(e,s,r)}computeStyle(e,s,r){return r||""}animate(e,s,r,o,a,l=[],c){return new le(r,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ss=class ss{};ss.NOOP=new Vo;var rr=ss,Rn=class{};var Ko=1e3,Dr="{{",qo="}}",Tr="ng-enter",Ln="ng-leave",zi="ng-trigger",Ki=".ng-trigger",or="ng-animating",Hn=".ng-animating";function Gt(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xn(parseFloat(t[1]),t[2])}function xn(n,t){switch(t){case"s":return n*Ko;default:return n}}function qi(n,t,i){return n.hasOwnProperty("duration")?n:Zo(n,t,i)}function Zo(n,t,i){let e=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(e);if(a===null)return t.push(ir(n)),{duration:0,delay:0,easing:""};s=xn(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=xn(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=t.length;s<0&&(t.push(co()),a=!0),r<0&&(t.push(uo()),a=!0),a&&t.splice(l,0,ir(n))}return{duration:s,delay:r,easing:o}}function Qo(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function $t(n,t,i){t.forEach((e,s)=>{let r=es(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=e})}function Oe(n,t){t.forEach((i,e)=>{let s=es(e);n.style[s]=""})}function fi(n){return Array.isArray(n)?n.length==1?n[0]:Qs(n):n}function Go(n,t,i){let e=t.params||{},s=Er(n);s.length&&s.forEach(r=>{e.hasOwnProperty(r)||i.push(ho(r))})}var Bn=new RegExp(`${Dr}\\s*(.+?)\\s*${qo}`,"g");function Er(n){let t=[];if(typeof n=="string"){let i;for(;i=Bn.exec(n);)t.push(i[1]);Bn.lastIndex=0}return t}function gi(n,t,i){let e=`${n}`,s=e.replace(Bn,(r,o)=>{let a=t[o];return a==null&&(i.push(po(o)),a=""),a.toString()});return s==e?n:s}var Yo=/-+([a-z0-9])/g;function es(n){return n.replace(Yo,(...t)=>t[1].toUpperCase())}function Xo(n,t){return n===0||t===0}function Jo(n,t,i){if(i.size&&t.length){let e=t[0],s=[];if(i.forEach((r,o)=>{e.has(o)||s.push(o),e.set(o,r)}),s.length)for(let r=1;ro.set(a,is(n,a)))}}return t}function gt(n,t,i){switch(t.type){case D.Trigger:return n.visitTrigger(t,i);case D.State:return n.visitState(t,i);case D.Transition:return n.visitTransition(t,i);case D.Sequence:return n.visitSequence(t,i);case D.Group:return n.visitGroup(t,i);case D.Animate:return n.visitAnimate(t,i);case D.Keyframes:return n.visitKeyframes(t,i);case D.Style:return n.visitStyle(t,i);case D.Reference:return n.visitReference(t,i);case D.AnimateChild:return n.visitAnimateChild(t,i);case D.AnimateRef:return n.visitAnimateRef(t,i);case D.Query:return n.visitQuery(t,i);case D.Stagger:return n.visitStagger(t,i);default:throw fo(t.type)}}function is(n,t){return window.getComputedStyle(n)[t]}var ta=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),ar=class extends Rn{normalizePropertyName(t,i){return es(t)}normalizeStyleValue(t,i,e,s){let r="",o=e.toString().trim();if(ta.has(i)&&e!==0&&e!=="0")if(typeof e=="number")r="px";else{let a=e.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(mo(t,e))}return o+r}};var Zi="*";function ea(n,t){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(e=>ia(e,i,t)):i.push(n),i}function ia(n,t,i){if(n[0]==":"){let l=na(n,i);if(typeof l=="function"){t.push(l);return}n=l}let e=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(e==null||e.length<4)return i.push(Oo(n)),t;let s=e[1],r=e[2],o=e[3];t.push(lr(s,o));let a=s==Zi&&o==Zi;r[0]=="<"&&!a&&t.push(lr(o,s))}function na(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,e)=>parseFloat(e)>parseFloat(i);case":decrement":return(i,e)=>parseFloat(e) *"}}var $i=new Set(["true","1"]),ji=new Set(["false","0"]);function lr(n,t){let i=$i.has(n)||ji.has(n),e=$i.has(t)||ji.has(t);return(s,r)=>{let o=n==Zi||n==s,a=t==Zi||t==r;return!o&&i&&typeof s=="boolean"&&(o=s?$i.has(n):ji.has(n)),!a&&e&&typeof r=="boolean"&&(a=r?$i.has(t):ji.has(t)),o&&a}}var Cr=":self",sa=new RegExp(`s*${Cr}s*,?`,"g");function Or(n,t,i,e){return new Un(n).build(t,i,e)}var cr="",Un=class{constructor(t){this._driver=t}build(t,i,e){let s=new zn(i);return this._resetContextStyleTimingState(s),gt(this,fi(t),s)}_resetContextStyleTimingState(t){t.currentQuerySelector=cr,t.collectedStyles=new Map,t.collectedStyles.set(cr,new Map),t.currentTime=0}visitTrigger(t,i){let e=i.queryCount=0,s=i.depCount=0,r=[],o=[];return t.name.charAt(0)=="@"&&i.errors.push(go()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==D.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==D.Transition){let l=this.visitTransition(a,i);e+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(yo())}),{type:D.Trigger,name:t.name,states:r,transitions:o,queryCount:e,depCount:s,options:null}}visitState(t,i){let e=this.visitStyle(t.styles,i),s=t.options&&t.options.params||null;if(e.containsDynamicStyles){let r=new Set,o=s||{};e.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Er(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&i.errors.push(vo(t.name,[...r.values()]))}return{type:D.State,name:t.name,style:e,options:s?{params:s}:null}}visitTransition(t,i){i.queryCount=0,i.depCount=0;let e=gt(this,fi(t.animation),i),s=ea(t.expr,i.errors);return{type:D.Transition,matchers:s,animation:e,queryCount:i.queryCount,depCount:i.depCount,options:Ce(t.options)}}visitSequence(t,i){return{type:D.Sequence,steps:t.steps.map(e=>gt(this,e,i)),options:Ce(t.options)}}visitGroup(t,i){let e=i.currentTime,s=0,r=t.steps.map(o=>{i.currentTime=e;let a=gt(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:D.Group,steps:r,options:Ce(t.options)}}visitAnimate(t,i){let e=la(t.timings,i.errors);i.currentAnimateTimings=e;let s,r=t.styles?t.styles:d({});if(r.type==D.Keyframes)s=this.visitKeyframes(r,i);else{let o=t.styles,a=!1;if(!o){a=!0;let c={};e.easing&&(c.easing=e.easing),o=d(c)}i.currentTime+=e.duration+e.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:D.Animate,timings:e,style:s,options:null}}visitStyle(t,i){let e=this._makeStyleAst(t,i);return this._validateStyleAst(e,i),e}_makeStyleAst(t,i){let e=[],s=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of s)typeof a=="string"?a===zt?e.push(a):i.errors.push(wo(a)):e.push(new Map(Object.entries(a)));let r=!1,o=null;return e.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Dr)>=0){r=!0;break}}}),{type:D.Style,styles:e,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,i){let e=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;e&&r>0&&(r-=e.duration+e.delay),t.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),h=c.get(l),p=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(i.errors.push(bo(l,h.startTime,h.endTime,r,s)),p=!1),r=h.startTime),p&&c.set(l,{startTime:r,endTime:s}),i.options&&Go(a,i.options,i.errors)})})}visitKeyframes(t,i){let e={type:D.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(_o()),e;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=t.steps.map(k=>{let R=this._makeStyleAst(k,i),B=R.offset!=null?R.offset:aa(R.styles),z=0;return B!=null&&(r++,z=R.offset=B),l=l||z<0||z>1,a=a||z0&&r{let B=y>0?R==m?1:y*R:o[R],z=B*O;i.currentTime=f+v.delay+z,v.duration=z,this._validateStyleAst(k,i),k.offset=B,e.styles.push(k)}),e}visitReference(t,i){return{type:D.Reference,animation:gt(this,fi(t.animation),i),options:Ce(t.options)}}visitAnimateChild(t,i){return i.depCount++,{type:D.AnimateChild,options:Ce(t.options)}}visitAnimateRef(t,i){return{type:D.AnimateRef,animation:this.visitReference(t.animation,i),options:Ce(t.options)}}visitQuery(t,i){let e=i.currentQuerySelector,s=t.options||{};i.queryCount++,i.currentQuery=t;let[r,o]=ra(t.selector);i.currentQuerySelector=e.length?e+" "+r:r,yt(i.collectedStyles,i.currentQuerySelector,new Map);let a=gt(this,fi(t.animation),i);return i.currentQuery=null,i.currentQuerySelector=e,{type:D.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Ce(t.options)}}visitStagger(t,i){i.currentQuery||i.errors.push(Eo());let e=t.timings==="full"?{duration:0,delay:0,easing:"full"}:qi(t.timings,i.errors,!0);return{type:D.Stagger,animation:gt(this,fi(t.animation),i),timings:e,options:null}}};function ra(n){let t=!!n.split(/\s*,\s*/).find(i=>i==Cr);return t&&(n=n.replace(sa,"")),n=n.replace(/@\*/g,Ki).replace(/@\w+/g,i=>Ki+"-"+i.slice(1)).replace(/:animating/g,Hn),[n,t]}function oa(n){return n?wt({},n):null}var zn=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function aa(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let e=i;t=parseFloat(e.get("offset")),e.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;t=parseFloat(i.get("offset")),i.delete("offset")}return t}function la(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=qi(n,t).duration;return Mn(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Mn(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=qi(i,t);return Mn(s.duration,s.delay,s.easing)}function Ce(n){return n?(n=wt({},n),n.params&&(n.params=oa(n.params))):n={},n}function Mn(n,t,i){return{duration:n,delay:t,easing:i}}function ns(n,t,i,e,s,r,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:i,postStyleProps:e,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var yi=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,i){let e=this._map.get(t);e||this._map.set(t,e=[]),e.push(...i)}has(t){return this._map.has(t)}clear(){this._map.clear()}},ca=1,ua=":enter",ha=new RegExp(ua,"g"),da=":leave",pa=new RegExp(da,"g");function Ir(n,t,i,e,s,r=new Map,o=new Map,a,l,c=[]){return new $n().buildKeyframes(n,t,i,e,s,r,o,a,l,c)}var $n=class{buildKeyframes(t,i,e,s,r,o,a,l,c,h=[]){c=c||new yi;let p=new jn(t,i,c,s,r,h,[]);p.options=l;let y=l.delay?Gt(l.delay):0;p.currentTimeline.delayNextStep(y),p.currentTimeline.setStyles([o],null,p.errors,l),gt(this,e,p);let m=p.timelines.filter(f=>f.containsAnimation());if(m.length&&a.size){let f;for(let v=m.length-1;v>=0;v--){let O=m[v];if(O.element===i){f=O;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,p.errors,l)}return m.length?m.map(f=>f.buildKeyframes()):[ns(i,[],[],[],0,y,"",!1)]}visitTrigger(t,i){}visitState(t,i){}visitTransition(t,i){}visitAnimateChild(t,i){let e=i.subInstructions.get(i.element);if(e){let s=i.createSubContext(t.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(e,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=t}visitAnimateRef(t,i){let e=i.createSubContext(t.options);e.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],i,e),this.visitReference(t.animation,e),i.transformIntoNewTimeline(e.currentTimeline.currentTime),i.previousNode=t}_applyAnimationRefDelays(t,i,e){for(let s of t){let r=s==null?void 0:s.delay;if(r){let o=typeof r=="number"?r:Gt(gi(r,(s==null?void 0:s.params)??{},i.errors));e.delayNextStep(o)}}}_visitSubInstructions(t,i,e){let r=i.currentTimeline.currentTime,o=e.duration!=null?Gt(e.duration):null,a=e.delay!=null?Gt(e.delay):null;return o!==0&&t.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,i){i.updateOptions(t.options,!0),gt(this,t.animation,i),i.previousNode=t}visitSequence(t,i){let e=i.subContextCount,s=i,r=t.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==D.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Qi);let o=Gt(r.delay);s.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>gt(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>e&&s.transformIntoNewTimeline()),i.previousNode=t}visitGroup(t,i){let e=[],s=i.currentTimeline.currentTime,r=t.options&&t.options.delay?Gt(t.options.delay):0;t.steps.forEach(o=>{let a=i.createSubContext(t.options);r&&a.delayNextStep(r),gt(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),e.push(a.currentTimeline)}),e.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=t}_visitTiming(t,i){if(t.dynamic){let e=t.strValue,s=i.params?gi(e,i.params,i.errors):e;return qi(s,i.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,i){let e=i.currentAnimateTimings=this._visitTiming(t.timings,i),s=i.currentTimeline;e.delay&&(i.incrementTime(e.delay),s.snapshotCurrentStyles());let r=t.style;r.type==D.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(e.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=t}visitStyle(t,i){let e=i.currentTimeline,s=i.currentAnimateTimings;!s&&e.hasCurrentStyleProperties()&&e.forwardFrame();let r=s&&s.easing||t.easing;t.isEmptyStep?e.applyEmptyStep(r):e.setStyles(t.styles,r,i.errors,i.options),i.previousNode=t}visitKeyframes(t,i){let e=i.currentAnimateTimings,s=i.currentTimeline.duration,r=e.duration,a=i.createSubContext().currentTimeline;a.easing=e.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=t}visitQuery(t,i){let e=i.currentTimeline.currentTime,s=t.options||{},r=s.delay?Gt(s.delay):0;r&&(i.previousNode.type===D.Style||e==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Qi);let o=e,a=i.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{i.currentQueryIndex=h;let p=i.createSubContext(t.options,c);r&&p.delayNextStep(r),c===i.element&&(l=p.currentTimeline),gt(this,t.animation,p),p.currentTimeline.applyStylesToKeyframe();let y=p.currentTimeline.currentTime;o=Math.max(o,y)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=t}visitStagger(t,i){let e=i.parentContext,s=i.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=e.currentStaggerTime;break}let h=i.currentTimeline;l&&h.delayNextStep(l);let p=h.currentTime;gt(this,t.animation,i),i.previousNode=t,e.currentStaggerTime=s.currentTime-p+(s.startTime-e.currentTimeline.startTime)}},Qi={},jn=class n{constructor(t,i,e,s,r,o,a,l){this._driver=t,this.element=i,this.subInstructions=e,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Gi(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,i){if(!t)return;let e=t,s=this.options;e.duration!=null&&(s.duration=Gt(e.duration)),e.delay!=null&&(s.delay=Gt(e.delay));let r=e.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=gi(r[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let i=this.options.params;if(i){let e=t.params={};Object.keys(i).forEach(s=>{e[s]=i[s]})}}return t}createSubContext(t=null,i,e){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,e||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Qi,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,i,e){let s={duration:i??t.duration,delay:this.currentTimeline.currentTime+(e??0)+t.delay,easing:""},r=new Wn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,i,e,s,r,o){let a=[];if(s&&a.push(this.element),t.length>0){t=t.replace(ha,"."+this._enterClassName),t=t.replace(pa,"."+this._leaveClassName);let l=e!=1,c=this._driver.query(this.element,t,l);e!==0&&(c=e<0?c.slice(c.length+e,c.length):c.slice(0,e)),a.push(...c)}return!r&&a.length==0&&o.push(Co(i)),a}},Gi=class n{constructor(t,i,e,s){this._driver=t,this.element=i,this.startTime=e,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+t),i&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,i){return this.applyStylesToKeyframe(),new n(this._driver,t,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ca,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,i){this._localTimelineStyles.set(t,i),this._globalTimelineStyles.set(t,i),this._styleSummary.set(t,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[i,e]of this._globalTimelineStyles)this._backFill.set(i,e||zt),this._currentKeyframe.set(i,zt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,i,e,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=fa(t,this._globalTimelineStyles);for(let[a,l]of o){let c=gi(l,r,e);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zt),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,i)=>{this._currentKeyframe.set(i,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,t)}))}snapshotCurrentStyles(){for(let[t,i]of this._localTimelineStyles)this._pendingStyles.set(t,i),this._updateStyle(t,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let i in this._currentKeyframe)t.push(i);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((i,e)=>{let s=this._styleSummary.get(e);(!s||i.time>s.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,i=new Set,e=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,p)=>{h===Li?t.add(p):h===zt&&i.add(p)}),e||c.set("offset",l/this.duration),s.push(c)});let r=[...t.values()],o=[...i.values()];if(e){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return ns(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Wn=class extends Gi{constructor(t,i,e,s,r,o,a=!1){super(t,i,o.delay),this.keyframes=e,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:i,duration:e,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=e+i,a=i/o,l=new Map(t[0]);l.set("offset",0),r.push(l);let c=new Map(t[0]);c.set("offset",ur(a)),r.push(c);let h=t.length-1;for(let p=1;p<=h;p++){let y=new Map(t[p]),m=y.get("offset"),f=i+m*e;y.set("offset",ur(f/o)),r.push(y)}e=o,i=0,s="",t=r}return ns(this.element,t,this.preStyleProps,this.postStyleProps,e,i,s,!0)}};function ur(n,t=3){let i=Math.pow(10,t-1);return Math.round(n*i)/i}function fa(n,t){let i=new Map,e;return n.forEach(s=>{if(s==="*"){e??(e=t.keys());for(let r of e)i.set(r,zt)}else for(let[r,o]of s)i.set(r,o)}),i}function hr(n,t,i,e,s,r,o,a,l,c,h,p,y){return{type:0,element:n,triggerName:t,isRemovalTransition:s,fromState:i,fromStyles:r,toState:e,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:p,errors:y}}var Pn={},Yi=class{constructor(t,i,e){this._triggerName=t,this.ast=i,this._stateStyles=e}match(t,i,e,s){return ma(this.ast.matchers,t,i,e,s)}buildStyles(t,i,e){let s=this._stateStyles.get("*");return t!==void 0&&(s=this._stateStyles.get(t==null?void 0:t.toString())||s),s?s.buildStyles(i,e):new Map}build(t,i,e,s,r,o,a,l,c,h){var Nt;let p=[],y=this.ast.options&&this.ast.options.params||Pn,m=a&&a.params||Pn,f=this.buildStyles(e,m,p),v=l&&l.params||Pn,O=this.buildStyles(s,v,p),k=new Set,R=new Map,B=new Map,z=s==="void",Fe={params:Ar(v,y),delay:(Nt=this.ast.options)==null?void 0:Nt.delay},Ft=h?[]:Ir(t,i,this.ast.animation,r,o,f,O,Fe,c,p),st=0;return Ft.forEach(Wt=>{st=Math.max(Wt.duration+Wt.delay,st)}),p.length?hr(i,this._triggerName,e,s,z,f,O,[],[],R,B,st,p):(Ft.forEach(Wt=>{let Vt=Wt.element,ds=yt(R,Vt,new Set);Wt.preStyleProps.forEach(pe=>ds.add(pe));let Je=yt(B,Vt,new Set);Wt.postStyleProps.forEach(pe=>Je.add(pe)),Vt!==i&&k.add(Vt)}),hr(i,this._triggerName,e,s,z,f,O,Ft,[...k.values()],R,B,st))}};function ma(n,t,i,e,s){return n.some(r=>r(t,i,e,s))}function Ar(n,t){let i=wt({},t);return Object.entries(n).forEach(([e,s])=>{s!=null&&(i[e]=s)}),i}var Vn=class{constructor(t,i,e){this.styles=t,this.defaultParams=i,this.normalizer=e}buildStyles(t,i){let e=new Map,s=Ar(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=gi(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),e.set(a,o)})}),e}};function ga(n,t,i){return new Kn(n,t,i)}var Kn=class{constructor(t,i,e){this.name=t,this.ast=i,this._normalizer=e,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Vn(s.style,r,e))}),dr(this.states,"true","1"),dr(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new Yi(t,s,this.states))}),this.fallbackTransition=ya(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,i,e,s){return this.transitionFactories.find(o=>o.match(t,i,e,s))||null}matchStyles(t,i,e){return this.fallbackTransition.buildStyles(t,i,e)}};function ya(n,t,i){let e=[(o,a)=>!0],s={type:D.Sequence,steps:[],options:null},r={type:D.Transition,animation:s,matchers:e,options:null,queryCount:0,depCount:0};return new Yi(n,r,t)}function dr(n,t,i){n.has(t)?n.has(i)||n.set(i,n.get(t)):n.has(i)&&n.set(t,n.get(i))}var va=new yi,qn=class{constructor(t,i,e){this.bodyNode=t,this._driver=i,this._normalizer=e,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,i){let e=[],s=[],r=Or(this._driver,i,e,s);if(e.length)throw Po(e);s.length&&void 0,this._animations.set(t,r)}_buildPlayer(t,i,e){let s=t.element,r=br(this._normalizer,t.keyframes,i,e);return this._driver.animate(s,r,t.duration,t.delay,t.easing,[],!0)}create(t,i,e={}){let s=[],r=this._animations.get(t),o,a=new Map;if(r?(o=Ir(this._driver,i,r,Tr,Ln,new Map,new Map,e,va,s),o.forEach(h=>{let p=yt(a,h.element,new Map);h.postStyleProps.forEach(y=>p.set(y,null))})):(s.push(Fo()),o=[]),s.length)throw No(s);a.forEach((h,p)=>{h.forEach((y,m)=>{h.set(m,this._driver.computeStyle(p,m,zt))})});let l=o.map(h=>{let p=a.get(h.element);return this._buildPlayer(h,new Map,p)}),c=ce(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let i=this._getPlayer(t);i.destroy(),this._playersById.delete(t);let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1)}_getPlayer(t){let i=this._playersById.get(t);if(!i)throw ko(t);return i}listen(t,i,e,s){let r=Jn(i,"","","");return Xn(this._getPlayer(t),e,r,s),()=>{}}command(t,i,e,s){if(e=="register"){this.register(t,s[0]);return}if(e=="create"){let o=s[0]||{};this.create(t,i,o);return}let r=this._getPlayer(t);switch(e){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t);break}}},pr="ng-animate-queued",wa=".ng-animate-queued",Fn="ng-animate-disabled",ba=".ng-animate-disabled",_a="ng-star-inserted",Sa=".ng-star-inserted",Da=[],Mr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ta={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},At="__ng_removed",vi=class{get params(){return this.options.params}constructor(t,i=""){this.namespaceId=i;let e=t&&t.hasOwnProperty("value"),s=e?t.value:t;if(this.value=Ca(s),e){let r=t,{value:o}=r,a=gs(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let i=t.params;if(i){let e=this.options.params;Object.keys(i).forEach(s=>{e[s]==null&&(e[s]=i[s])})}}},mi="void",Nn=new vi(mi),Zn=class{constructor(t,i,e){this.id=t,this.hostElement=i,this._engine=e,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Dt(i,this._hostClassName)}listen(t,i,e,s){if(!this._triggers.has(i))throw Ro(e,i);if(e==null||e.length==0)throw Lo(i);if(!Oa(e))throw Ho(e,i);let r=yt(this._elementListeners,t,[]),o={name:i,phase:e,callback:s};r.push(o);let a=yt(this._engine.statesByElement,t,new Map);return a.has(i)||(Dt(t,zi),Dt(t,zi+"-"+i),a.set(i,Nn)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(t,i){return this._triggers.has(t)?!1:(this._triggers.set(t,i),!0)}_getTrigger(t){let i=this._triggers.get(t);if(!i)throw xo(t);return i}trigger(t,i,e,s=!0){let r=this._getTrigger(i),o=new wi(this.id,i,t),a=this._engine.statesByElement.get(t);a||(Dt(t,zi),Dt(t,zi+"-"+i),this._engine.statesByElement.set(t,a=new Map));let l=a.get(i),c=new vi(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Nn),!(c.value===mi)&&l.value===c.value){if(!Ma(l.params,c.params)){let v=[],O=r.matchStyles(l.value,l.params,v),k=r.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Oe(t,O),$t(t,k)})}return}let y=yt(this._engine.playersByElement,t,[]);y.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let m=r.matchTransition(l.value,c.value,t,c.params),f=!1;if(!m){if(!s)return;m=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:m,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(Dt(t,pr),o.onStart(()=>{Ze(t,pr)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);let O=this._engine.playersByElement.get(t);if(O){let k=O.indexOf(o);k>=0&&O.splice(k,1)}}),this.players.push(o),y.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(i=>i.delete(t)),this._elementListeners.forEach((i,e)=>{this._elementListeners.set(e,i.filter(s=>s.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let i=this._engine.playersByElement.get(t);i&&(i.forEach(e=>e.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,i){let e=this._engine.driver.query(t,Ki,!0);e.forEach(s=>{if(s[At])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>e.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(t,i,e,s){let r=this._engine.statesByElement.get(t),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(t,c,mi,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,i,o),e&&ce(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let i=this._elementListeners.get(t),e=this._engine.statesByElement.get(t);if(i&&e){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=e.get(o)||Nn,h=new vi(mi),p=new wi(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:h,player:p,isFallbackTransition:!0})})}}removeNode(t,i){let e=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,i),this.triggerLeaveAnimation(t,i,!0))return;let s=!1;if(e.totalAnimations){let r=e.players.length?e.playersByQueriedElement.get(t):[];if(r&&r.length)s=!0;else{let o=t;for(;o=o.parentNode;)if(e.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)e.markElementAsRemoved(this.id,t,!1,i);else{let r=t[At];(!r||r===Mr)&&(e.afterFlush(()=>this.clearElementCache(t)),e.destroyInnerAnimations(t),e._onRemovalComplete(t,i))}}insertNode(t,i){Dt(t,this._hostClassName)}drainQueuedTransitions(t){let i=[];return this._queue.forEach(e=>{let s=e.player;if(s.destroyed)return;let r=e.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==e.triggerName){let l=Jn(r,e.triggerName,e.fromState.value,e.toState.value);l._data=t,Xn(e.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(e)}),this._queue=[],i.sort((e,s)=>{let r=e.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(e.element,s.element)?1:-1})}destroy(t){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Qn=class{_onRemovalComplete(t,i){this.onRemovalComplete(t,i)}constructor(t,i,e){this.bodyNode=t,this.driver=i,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(i=>{i.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,i){let e=new Zn(t,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(e,i):(this.newHostElements.set(i,e),this.collectEnterElement(i)),this._namespaceLookup[t]=e}_balanceNamespaceList(t,i){let e=this._namespaceList,s=this.namespacesByHostElement;if(e.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=e.indexOf(l);e.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||e.unshift(t)}else e.push(t);return s.set(i,t),t}register(t,i){let e=this._namespaceLookup[t];return e||(e=this.createNamespace(t,i)),e}registerTrigger(t,i,e){let s=this._namespaceLookup[t];s&&s.register(i,e)&&this.totalAnimations++}destroy(t,i){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let e=this._fetchNamespace(t);this.namespacesByHostElement.delete(e.hostElement);let s=this._namespaceList.indexOf(e);s>=0&&this._namespaceList.splice(s,1),e.destroy(i),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let i=new Set,e=this.statesByElement.get(t);if(e){for(let s of e.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(t,i,e,s){if(Wi(i)){let r=this._fetchNamespace(t);if(r)return r.trigger(i,e,s),!0}return!1}insertNode(t,i,e,s){if(!Wi(i))return;let r=i[At];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(i,e)}s&&this.collectEnterElement(i)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,i){i?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Dt(t,Fn)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ze(t,Fn))}removeNode(t,i,e){if(Wi(i)){let s=t?this._fetchNamespace(t):null;s?s.removeNode(i,e):this.markElementAsRemoved(t,i,!1,e);let r=this.namespacesByHostElement.get(i);r&&r.id!==t&&r.removeNode(i,e)}else this._onRemovalComplete(i,e)}markElementAsRemoved(t,i,e,s,r){this.collectedLeaveElements.push(i),i[At]={namespaceId:t,setForRemoval:s,hasAnimation:e,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,i,e,s,r){return Wi(i)?this._fetchNamespace(t).listen(i,e,s,r):()=>{}}_buildInstruction(t,i,e,s,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,e,s,t.fromState.options,t.toState.options,i,r)}destroyInnerAnimations(t){let i=this.driver.query(t,Ki,!0);i.forEach(e=>this.destroyActiveAnimationsForElement(e)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(t,Hn,!0),i.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(t){let i=this.playersByElement.get(t);i&&i.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(t){let i=this.playersByQueriedElement.get(t);i&&i.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ce(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;let i=t[At];if(i&&i.setForRemoval){if(t[At]=Mr,i.namespaceId){this.destroyInnerAnimations(t);let s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(e=t.classList)!=null&&e.contains(Fn)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ba,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(t=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,s)=>this._balanceNamespaceList(e,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;ee()),this._flushFns=[],this._whenQuietFns.length){let e=this._whenQuietFns;this._whenQuietFns=[],i.length?ce(i).onDone(()=>{e.forEach(s=>s())}):e.forEach(s=>s())}}reportError(t){throw Bo(t)}_flushAnimations(t,i){let e=new yi,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(g=>{h.add(g);let w=this.driver.query(g,wa,!0);for(let b=0;b{let b=Tr+v++;f.set(w,b),g.forEach(A=>Dt(A,b))});let O=[],k=new Set,R=new Set;for(let g=0;gk.add(A)):R.add(w))}let B=new Map,z=gr(y,Array.from(k));z.forEach((g,w)=>{let b=Ln+v++;B.set(w,b),g.forEach(A=>Dt(A,b))}),t.push(()=>{m.forEach((g,w)=>{let b=f.get(w);g.forEach(A=>Ze(A,b))}),z.forEach((g,w)=>{let b=B.get(w);g.forEach(A=>Ze(A,b))}),O.forEach(g=>{this.processLeaveNode(g)})});let Fe=[],Ft=[];for(let g=this._namespaceList.length-1;g>=0;g--)this._namespaceList[g].drainQueuedTransitions(i).forEach(b=>{let A=b.player,q=b.element;if(Fe.push(A),this.collectedEnterElements.length){let J=q[At];if(J&&J.setForMove){if(J.previousTriggersValues&&J.previousTriggersValues.has(b.triggerName)){let fe=J.previousTriggersValues.get(b.triggerName),vt=this.statesByElement.get(b.element);if(vt&&vt.has(b.triggerName)){let _i=vt.get(b.triggerName);_i.value=fe,vt.set(b.triggerName,_i)}}A.destroy();return}}let kt=!p||!this.driver.containsElement(p,q),ut=B.get(q),Xt=f.get(q),H=this._buildInstruction(b,e,Xt,ut,kt);if(H.errors&&H.errors.length){Ft.push(H);return}if(kt){A.onStart(()=>Oe(q,H.fromStyles)),A.onDestroy(()=>$t(q,H.toStyles)),s.push(A);return}if(b.isFallbackTransition){A.onStart(()=>Oe(q,H.fromStyles)),A.onDestroy(()=>$t(q,H.toStyles)),s.push(A);return}let ms=[];H.timelines.forEach(J=>{J.stretchStartingKeyframe=!0,this.disabledNodes.has(J.element)||ms.push(J)}),H.timelines=ms,e.append(q,H.timelines);let to={instruction:H,player:A,element:q};o.push(to),H.queriedElements.forEach(J=>yt(a,J,[]).push(A)),H.preStyleProps.forEach((J,fe)=>{if(J.size){let vt=l.get(fe);vt||l.set(fe,vt=new Set),J.forEach((_i,mn)=>vt.add(mn))}}),H.postStyleProps.forEach((J,fe)=>{let vt=c.get(fe);vt||c.set(fe,vt=new Set),J.forEach((_i,mn)=>vt.add(mn))})});if(Ft.length){let g=[];Ft.forEach(w=>{g.push(Uo(w.triggerName,w.errors))}),Fe.forEach(w=>w.destroy()),this.reportError(g)}let st=new Map,Nt=new Map;o.forEach(g=>{let w=g.element;e.has(w)&&(Nt.set(w,w),this._beforeAnimationBuild(g.player.namespaceId,g.instruction,st))}),s.forEach(g=>{let w=g.element;this._getPreviousPlayers(w,!1,g.namespaceId,g.triggerName,null).forEach(A=>{yt(st,w,[]).push(A),A.destroy()})});let Wt=O.filter(g=>yr(g,l,c)),Vt=new Map;mr(Vt,this.driver,R,c,zt).forEach(g=>{yr(g,l,c)&&Wt.push(g)});let Je=new Map;m.forEach((g,w)=>{mr(Je,this.driver,new Set(g),l,Li)}),Wt.forEach(g=>{let w=Vt.get(g),b=Je.get(g);Vt.set(g,new Map([...(w==null?void 0:w.entries())??[],...(b==null?void 0:b.entries())??[]]))});let pe=[],ps=[],fs={};o.forEach(g=>{let{element:w,player:b,instruction:A}=g;if(e.has(w)){if(h.has(w)){b.onDestroy(()=>$t(w,A.toStyles)),b.disabled=!0,b.overrideTotalTime(A.totalTime),s.push(b);return}let q=fs;if(Nt.size>1){let ut=w,Xt=[];for(;ut=ut.parentNode;){let H=Nt.get(ut);if(H){q=H;break}Xt.push(ut)}Xt.forEach(H=>Nt.set(H,q))}let kt=this._buildAnimation(b.namespaceId,A,st,r,Je,Vt);if(b.setRealPlayer(kt),q===fs)pe.push(b);else{let ut=this.playersByElement.get(q);ut&&ut.length&&(b.parentPlayer=ce(ut)),s.push(b)}}else Oe(w,A.fromStyles),b.onDestroy(()=>$t(w,A.toStyles)),ps.push(b),h.has(w)&&s.push(b)}),ps.forEach(g=>{let w=r.get(g.element);if(w&&w.length){let b=ce(w);g.setRealPlayer(b)}}),s.forEach(g=>{g.parentPlayer?g.syncPlayerEvents(g.parentPlayer):g.destroy()});for(let g=0;g!kt.destroyed);q.length?Ia(this,w,q):this.processLeaveNode(w)}return O.length=0,pe.forEach(g=>{this.players.push(g),g.onDone(()=>{g.destroy();let w=this.players.indexOf(g);this.players.splice(w,1)}),g.play()}),pe}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,i,e,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let l=!r||r==mi;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(e||s)&&(o=o.filter(a=>!(e&&e!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(t,i,e){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:t,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,h=c!==r,p=yt(e,c,[]);this._getPreviousPlayers(c,h,o,a,i.toState).forEach(m=>{let f=m.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),m.destroy(),p.push(m)})}Oe(r,i.fromStyles)}_buildAnimation(t,i,e,s,r,o){let a=i.triggerName,l=i.element,c=[],h=new Set,p=new Set,y=i.timelines.map(f=>{let v=f.element;h.add(v);let O=v[At];if(O&&O.removedBeforeQueried)return new le(f.duration,f.delay);let k=v!==l,R=Aa((e.get(v)||Da).map(st=>st.getRealPlayer())).filter(st=>{let Nt=st;return Nt.element?Nt.element===v:!1}),B=r.get(v),z=o.get(v),Fe=br(this._normalizer,f.keyframes,B,z),Ft=this._buildPlayer(f,Fe,R);if(f.subTimeline&&s&&p.add(v),k){let st=new wi(t,a,v);st.setRealPlayer(Ft),c.push(st)}return Ft});c.forEach(f=>{yt(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Ea(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>Dt(f,or));let m=ce(y);return m.onDestroy(()=>{h.forEach(f=>Ze(f,or)),$t(l,i.toStyles)}),p.forEach(f=>{yt(s,f,[]).push(m)}),m}_buildPlayer(t,i,e){return i.length>0?this.driver.animate(t.element,i,t.duration,t.delay,t.easing,e):new le(t.duration,t.delay)}},wi=class{constructor(t,i,e){this.namespaceId=t,this.triggerName=i,this.element=e,this._player=new le,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((i,e)=>{i.forEach(s=>Xn(t,e,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let i=this._player;i.triggerCallback&&t.onStart(()=>i.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,i){yt(this._queuedCallbacks,t,[]).push(i)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let i=this._player;i.triggerCallback&&i.triggerCallback(t)}};function Ea(n,t,i){let e=n.get(t);if(e){if(e.length){let s=e.indexOf(i);e.splice(s,1)}e.length==0&&n.delete(t)}return e}function Ca(n){return n??null}function Wi(n){return n&&n.nodeType===1}function Oa(n){return n=="start"||n=="done"}function fr(n,t){let i=n.style.display;return n.style.display=t??"none",i}function mr(n,t,i,e,s){let r=[];i.forEach(l=>r.push(fr(l)));let o=[];e.forEach((l,c)=>{let h=new Map;l.forEach(p=>{let y=t.computeStyle(c,p,s);h.set(p,y),(!y||y.length==0)&&(c[At]=Ta,o.push(c))}),n.set(c,h)});let a=0;return i.forEach(l=>fr(l,r[a++])),o}function gr(n,t){let i=new Map;if(n.forEach(a=>i.set(a,[])),t.length==0)return i;let e=1,s=new Set(t),r=new Map;function o(a){if(!a)return e;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=e:l=o(c),r.set(a,l),l}return t.forEach(a=>{let l=o(a);l!==e&&i.get(l).push(a)}),i}function Dt(n,t){var i;(i=n.classList)==null||i.add(t)}function Ze(n,t){var i;(i=n.classList)==null||i.remove(t)}function Ia(n,t,i){ce(i).onDone(()=>n.processLeaveNode(t))}function Aa(n){let t=[];return Pr(n,t),t}function Pr(n,t){for(let i=0;is.add(r)):t.set(n,e),i.delete(n),!0}var Xi=class{constructor(t,i,e){this._driver=i,this._normalizer=e,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Qn(t.body,i,e),this._timelineEngine=new qn(t.body,i,e),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(t,i,e,s,r){let o=t+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=Or(this._driver,r,l,c);if(l.length)throw Ao(s,l);c.length&&void 0,a=ga(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(t,i){this._transitionEngine.register(t,i)}destroy(t,i){this._transitionEngine.destroy(t,i)}onInsert(t,i,e,s){this._transitionEngine.insertNode(t,i,e,s)}onRemove(t,i,e){this._transitionEngine.removeNode(t,i,e)}disableAnimations(t,i){this._transitionEngine.markElementAsDisabled(t,i)}process(t,i,e,s){if(e.charAt(0)=="@"){let[r,o]=nr(e),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(t,i,e,s)}listen(t,i,e,s,r){if(e.charAt(0)=="@"){let[o,a]=nr(e);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(t,i,e,s,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Pa(n,t){let i=null,e=null;return Array.isArray(t)&&t.length?(i=kn(t[0]),t.length>1&&(e=kn(t[t.length-1]))):t instanceof Map&&(i=kn(t)),i||e?new Gn(n,i,e):null}var Qe=class Qe{constructor(t,i,e){this._element=t,this._startStyles=i,this._endStyles=e,this._state=0;let s=Qe.initialStylesByElement.get(t);s||Qe.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&$t(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&($t(this._element,this._initialStyles),this._endStyles&&($t(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Qe.initialStylesByElement.delete(this._element),this._startStyles&&(Oe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Oe(this._element,this._endStyles),this._endStyles=null),$t(this._element,this._initialStyles),this._state=3)}};Qe.initialStylesByElement=new WeakMap;var Gn=Qe;function kn(n){let t=null;return n.forEach((i,e)=>{Fa(e)&&(t=t||new Map,t.set(e,i))}),t}function Fa(n){return n==="display"||n==="position"}var Ji=class{constructor(t,i,e,s){this.element=t,this.keyframes=i,this.options=e,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=e.duration,this._delay=e.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let i=[];return t.forEach(e=>{i.push(Object.fromEntries(e))}),i}_triggerWebAnimation(t,i,e){return t.animate(this._convertKeyframesToObject(i),e)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((e,s)=>{s!=="offset"&&t.set(s,this._finished?e:is(this.element,s))}),this.currentSnapshot=t}triggerCallback(t){let i=t==="start"?this._onStartFns:this._onDoneFns;i.forEach(e=>e()),i.length=0}},vr=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,i){return _r(t,i)}getParentElement(t){return ts(t)}query(t,i,e){return Sr(t,i,e)}computeStyle(t,i,e){return is(t,i)}animate(t,i,e,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:e,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(m=>m instanceof Ji);Xo(e,s)&&h.forEach(m=>{m.currentSnapshot.forEach((f,v)=>c.set(v,f))});let p=Qo(i).map(m=>new Map(m));p=Jo(t,p,c);let y=Pa(t,p);return new Ji(t,p,l,y)}};var Vi="@",Fr="@.disabled",tn=class{constructor(t,i,e,s){this.namespaceId=t,this.delegate=i,this.engine=e,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var i,e;(e=(i=this.delegate).destroyNode)==null||e.call(i,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,i){this.delegate.appendChild(t,i),this.engine.onInsert(this.namespaceId,i,t,!1)}insertBefore(t,i,e,s=!0){this.delegate.insertBefore(t,i,e),this.engine.onInsert(this.namespaceId,i,t,s)}removeChild(t,i,e){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,e,s){this.delegate.setAttribute(t,i,e,s)}removeAttribute(t,i,e){this.delegate.removeAttribute(t,i,e)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,e,s){this.delegate.setStyle(t,i,e,s)}removeStyle(t,i,e){this.delegate.removeStyle(t,i,e)}setProperty(t,i,e){i.charAt(0)==Vi&&i==Fr?this.disableAnimations(t,!!e):this.delegate.setProperty(t,i,e)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,e){return this.delegate.listen(t,i,e)}disableAnimations(t,i){this.engine.disableAnimations(t,i)}},Yn=class extends tn{constructor(t,i,e,s,r){super(i,e,s,r),this.factory=t,this.namespaceId=i}setProperty(t,i,e){i.charAt(0)==Vi?i.charAt(1)=="."&&i==Fr?(e=e===void 0?!0:!!e,this.disableAnimations(t,e)):this.engine.process(this.namespaceId,t,i.slice(1),e):this.delegate.setProperty(t,i,e)}listen(t,i,e){if(i.charAt(0)==Vi){let s=Na(t),r=i.slice(1),o="";return r.charAt(0)!=Vi&&([r,o]=ka(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,e,a)})}return this.delegate.listen(t,i,e)}};function Na(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function ka(n){let t=n.indexOf("."),i=n.substring(0,t),e=n.slice(t+1);return[i,e]}var wr=class{constructor(t,i,e){this.delegate=t,this.engine=i,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{r==null||r.removeChild(null,s)}}createRenderer(t,i){var c;let e="",s=this.delegate.createRenderer(t,i);if(!t||!((c=i==null?void 0:i.data)!=null&&c.animation)){let h=this._rendererCache,p=h.get(s);if(!p){let y=()=>h.delete(s);p=new tn(e,s,this.engine,y),h.set(s,p)}return p}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,t);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,t,h.name,h)};return i.data.animation.forEach(a),new Yn(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,e){if(t>=0&&ti(e));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,e])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Ra=Z(()=>{let n={onRemovalComplete:()=>{}},t=new me(null),i=u(Xi,{optional:!0})||n,{onRemovalComplete:e=n.onRemovalComplete}=i;return i.onRemovalComplete=(s,r)=>{t.next(s),e.call(i,s,r)},t.pipe(ht(s=>ye(0).pipe(C(()=>null),tt(s))),Si())});function Nr(n,t=null){return yn(n).activeElement!==n&&!n.matches(":disabled")&&!(t!=null&&t.contains(n))}function La(n){return Y(x(n,"focusin").pipe(C(({target:t})=>t)),x(n,"focusout").pipe(ot(({target:t,relatedTarget:i})=>!!i&&Nr(t)),C(({relatedTarget:t})=>t)))}var kr=Z(()=>{let n=u(Ra),t=u(Ut),i=u(_e),e=x(t,"focusout",{capture:!0}),s=x(t,"focusin",{capture:!0}),r=x(t,"blur"),o=x(t,"mousedown"),a=x(t,"mouseup");return Y(e.pipe(Jt(o),ti({delay:()=>a}),bs(n),ot(([l,c])=>Nr($e(l),c)),C(([{relatedTarget:l}])=>l)),r.pipe(C(()=>i.activeElement),ot(l=>!!(l!=null&&l.matches("iframe")))),s.pipe(ht(l=>{let c=$e(l),h=yn(c);return h===i?Ct(c):La(h).pipe(tt(c))})),o.pipe(ht(l=>{let c=$e(l);return!i.activeElement||i.activeElement===i.body?Ct(c):e.pipe(vs(1),C(()=>c),Jt(ye(0)))}))).pipe($(),Si())}),Zc=Z(()=>{var n;return((n=u(_e).querySelector("base"))==null?void 0:n.href)??""}),Ha=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,xa=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,rs=Z(()=>Ha.test(u(_n).toLowerCase())||xa.test(u(_n).slice(0,4).toLowerCase())),en=Z(()=>tr(u($s))),Ba=Z(()=>u(rs)&&!u(en)),Rr=Z(()=>{var n;return!!((n=u(Ut))!=null&&n.webkitConvertPointFromNodeToPage)}),Qc=Z(()=>u(en)?"ios":u(Ba)?"android":"web"),Gc=Z(()=>{let n=u(Ut).matchMedia("(pointer: coarse)");return Ai(ge(n,"change").pipe(C(()=>n.matches)),{initialValue:n.matches})}),Ua=Z(()=>!!u(Ut).Cypress),za=Z(je),Yc=Z(()=>u(Ua)||u(za)),os=new dt("");function Xc(n){return{provide:os,useValue:n}}var Jc=Z(()=>ks(u(Ts))?new Range:{}),Lr=new dt("[TUI_WINDOW_SIZE]",{factory:()=>{let n=u(Ut);return x(n,"resize").pipe(tt(null),C(()=>{var s,r;let t=Math.max(n.document.documentElement.clientWidth||0,n.innerWidth||0,((s=n.visualViewport)==null?void 0:s.width)||0),i=Math.max(n.document.documentElement.clientHeight||0,n.innerHeight||0,((r=n.visualViewport)==null?void 0:r.height)||0),e={width:t,height:i,top:0,left:0,right:t,bottom:i,x:0,y:0};return Ne(wt({},e),{toJSON:()=>JSON.stringify(e)})}),Di({bufferSize:1,refCount:!0}))}});function $a(n,t){if(n&1&&(Ot(0,"div",3),Le(1,"div",4),It()),n&2){let i=be().ngIf,e=be();Kt("t-bar_has-horizontal",i[1]),V("@tuiFadeIn",e.options)}}function ja(n,t){if(n&1&&(Ot(0,"div",5),Le(1,"div",6),It()),n&2){let i=be().ngIf,e=be();Kt("t-bar_has-vertical",i[0]),V("@tuiFadeIn",e.options)}}function Wa(n,t){if(n&1&&(si(0),lt(1,$a,2,3,"div",1)(2,ja,2,3,"div",2),ri()),n&2){let i=t.ngIf;rt(),V("ngIf",i[0]),rt(),V("ngIf",i[1])}}var Va=["*"];function Ka(n,t){n&1&&Le(0,"tui-scroll-controls",2)}var Hr=(()=>{let t=class t extends Tt{constructor(){super(e=>this.scroll$.subscribe(e)),this.el=F(),this.element=u(Ve).nativeElement,this.scroll$=Y(x(this.el.parentElement,"mousedown").pipe(C(e=>this.getScrolled(e,.5,.5))),x(this.el,"mousedown").pipe(ui(u(et)),ht(e=>{let{ownerDocument:s}=this.el,r=this.el.getBoundingClientRect(),o=qa(e,r),a=Za(e,r);return x(s,"mousemove").pipe(C(l=>this.getScrolled(l,o,a)),Jt(x(s,"mouseup")))})))}getScrolled({clientY:e,clientX:s},r,o){let{offsetHeight:a,offsetWidth:l}=this.el,{top:c,left:h,width:p,height:y}=this.el.parentElement.getBoundingClientRect(),m=this.element.scrollHeight-y,f=this.element.scrollWidth-p,v=(e-c-a*r)/(y-a),O=(s-h-l*o)/(p-l);return[m*v,f*O]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function qa({clientY:n},{top:t,height:i}){return(n-t)/i}function Za({clientX:n},{left:t,width:i}){return(n-t)/i}var nn=24,Qa=(()=>{let t=class t{constructor(){this.el=u(Ve).nativeElement,this.style=F().style,this.scrollSub=u(Hr).pipe(it()).subscribe(([e,s])=>{this.el.style.scrollBehavior="auto",this.el.scrollTo({top:e,left:s}),this.el.style.scrollBehavior=""}),this.styleSub=Y(u(Te).pipe(ve(100)),js(this.el)).pipe(ui(u(et)),it()).subscribe(()=>{this.tuiScrollbar==="vertical"?(this.style.top=`${this.thumb*100}%`,this.style.height=`${this.view*100}%`):(this.style.left=`${this.thumb*100}%`,this.style.width=`${this.view*100}%`)}),this.tuiScrollbar="vertical"}get scrolled(){let{scrollTop:e,scrollHeight:s,clientHeight:r,scrollLeft:o,scrollWidth:a,clientWidth:l}=this.el;return this.tuiScrollbar==="vertical"?e/(s-r):o/(a-l)}get compensation(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.el;return e*e/s>nn&&this.tuiScrollbar==="vertical"||r*r/o>nn&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?nn/e:nn/r}get thumb(){let e=this.compensation||this.view;return this.scrolled*(1-e)}get view(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.el;return this.tuiScrollbar==="vertical"?Math.ceil(e/s*100)/100:Math.ceil(r/o*100)/100}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},standalone:!0,features:[P([Hr])]});let n=t;return n})(),Ga=(()=>{let t=class t{constructor(){this.scrollRef=u(Ve).nativeElement,this.options=qe(u(We)),this.refresh$=u(Te).pipe(ve(300),C(()=>this.scrollbars),tt([!1,!1]),$((e,s)=>e[0]===s[0]&&e[1]===s[1]),ft(u(et)))}get scrollbars(){let{clientHeight:e,scrollHeight:s,clientWidth:r,scrollWidth:o}=this.scrollRef;return[Math.ceil(e/s*100)<100,Math.ceil(r/o*100)<100]}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-scroll-controls"]],standalone:!0,features:[ct],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(s,r){s&1&&(lt(0,Wa,3,2,"ng-container",0),Is(1,"async")),s&2&&V("ngIf",As(1,1,r.refresh$))},dependencies:[li,Ns,Qa],styles:["[_nghost-%COMP%]{position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[Hi]},changeDetection:0});let n=t;return n})(),Ya="tui-scroll-into-view",Xa="tui-scrollable",xr=(()=>{let t=class t{constructor(){this.el=F(),this.isIOS=u(en),this.browserScrollRef=new ii(this.el),this.hidden=!1}get delegated(){return this.browserScrollRef.nativeElement!==this.el}onScrollable(e){this.browserScrollRef.nativeElement=e}scrollIntoView(e){var m;if(this.delegated)return;let{nativeElement:s}=this.browserScrollRef,{offsetTop:r,offsetLeft:o}=Bs(s,e),{clientHeight:a,clientWidth:l}=s,{offsetHeight:c,offsetWidth:h}=e,p=r+c/2-a/2,y=o+h/2-l/2;(m=s.scrollTo)==null||m.call(s,y,p)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(s,r){s&1&&_t("tui-scrollable.stop",function(a){return r.onScrollable(a.detail)})("tui-scroll-into-view.stop",function(a){return r.scrollIntoView(a.detail)}),s&2&&Kt("_native-hidden",!r.isIOS||r.hidden)},inputs:{hidden:"hidden"},standalone:!0,features:[P([{provide:Ve,useFactory:()=>u(t).browserScrollRef}]),ct],ngContentSelectors:Va,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(s,r){s&1&&(qt(),lt(0,Ka,1,0,"tui-scroll-controls",0),Ot(1,"div",1),Zt(2),It()),s&2&&(V("ngIf",!r.hidden&&!r.isIOS),rt(),Kt("t-content_delegated",r.delegated))},dependencies:[Ga,li],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}._native-hidden[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}._native-hidden[_nghost-%COMP%]::-webkit-scrollbar, ._native-hidden[_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-content[_ngcontent-%COMP%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-primary)}"],changeDetection:0});let n=t;return n})(),bu=(()=>{let t=class t{constructor(){this.el=F(),this.destroyRef=u(ne)}set tuiScrollIntoView(e){e&&ye(0).pipe(it(this.destroyRef)).subscribe(()=>{this.el.dispatchEvent(new CustomEvent(Ya,{bubbles:!0,detail:this.el}))})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},standalone:!0});let n=t;return n})();var _u=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollRef",""]],standalone:!0,features:[P([Q(Ve,ii)])]});let n=t;return n})(),Su=(()=>{let t=class t{constructor(){this.el=F()}ngOnInit(){this.el.dispatchEvent(new CustomEvent(Xa,{bubbles:!0,detail:this.el}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiScrollable",""]],standalone:!0});let n=t;return n})();var Yt=class{supports(t){return t.includes(this.modifier)}unwrap(t){return t.split(".").filter(i=>!this.modifier.includes(i)).join(".")}},Ja=new dt("[GLOBAL_HANDLER]: Global event target handler",{factory:()=>{let n=u(_e);return t=>t==="body"?n.body:n.defaultView[t]||n.createElement("div")}}),tl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.handler=u(Ja),this.modifier=">"}addEventListener(e,s,r){return this.manager.addEventListener(this.handler(s.split(">")[0]),s.split(">")[1],r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),el=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(e){return e.includes(".")&&!this.unwrap(e).includes(".")}addEventListener(e,s,r){return e.addEventListener(this.unwrap(s),r,{once:s.includes(".once"),passive:s.includes(".passive"),capture:s.includes(".capture")}),()=>e.removeEventListener(this.unwrap(s),r,s.includes(".capture"))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),il=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.preventDefault(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),nl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier="resize"}supports(e){return e==="resize"}addEventListener(e,s,r){if(typeof ResizeObserver>"u"||!(e instanceof Element))return()=>{};let o=new ResizeObserver(a=>this.manager.getZone().run(()=>r(a)));return o.observe(e),()=>o.disconnect()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),sl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".self"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.target===o.currentTarget&&r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),as=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,s,r){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(s),r))}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),rl=(()=>{let t=class t extends Yt{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(e,s,r){return this.manager.addEventListener(e,this.unwrap(s),o=>{o.stopPropagation(),r(o)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ol=[as,tl,el,il,nl,sl,rl],Iu=ol.map(n=>({provide:Rs,multi:!0,useClass:n}));function Br(n){return(t,i,e)=>{let{value:s}=e;e.value=function(...r){n.apply(this,r)&&(as.ngZone?as.ngZone.run(()=>s.apply(this,r)):s.apply(this,r))}}}var jt=(()=>{let t=class t{constructor(){var e;this.control=u(Mi,{optional:!0,self:!0}),this.active$=u(kr),this.zone=u(et),this.el=F(),this.tuiActiveZoneParent=null,this.subActiveZones=[],this.directParentActiveZone=u(t,{skipSelf:!0,optional:!0}),this.tuiActiveZoneChange=this.active$.pipe(C(s=>!!s&&this.contains(s)),tt(!1),$(),Ti(1),ei(s=>{var r;!s&&typeof((r=this.control)==null?void 0:r.valueAccessor.onTouched)=="function"&&this.control.valueAccessor.onTouched()}),ft(this.zone)),(e=this.directParentActiveZone)==null||e.addSubActiveZone(this)}set tuiActiveZoneParentSetter(e){this.setZone(e)}ngOnDestroy(){var e,s;(e=this.directParentActiveZone)==null||e.removeSubActiveZone(this),(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this)}contains(e){return this.el.contains(e)||this.subActiveZones.some((s,r,o)=>o.indexOf(s)===r&&s.contains(e))}setZone(e){var s;(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this),e==null||e.addSubActiveZone(this),this.tuiActiveZoneParent=e}addSubActiveZone(e){this.subActiveZones=[...this.subActiveZones,e]}removeSubActiveZone(e){this.subActiveZones=Hs(this.subActiveZones,this.subActiveZones.indexOf(e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(s,r){s&1&&_t("mousedown.silent",function(){return 0},!1,we)},inputs:{tuiActiveZoneParentSetter:[0,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"],standalone:!0});let n=t;return Et([xt],n.prototype,"setZone",null),n})();var sn=class{},Mt=class extends sn{},Pt=class extends sn{};function Ur(n,t,i){return{provide:n,deps:[[new Re,new te,n],i],useFactory:bi(t)}}function bi(n){return(t,i)=>{var e;return((e=t==null?void 0:t.find)==null?void 0:e.call(t,s=>s!==i&&s.type===n))||i}}function on(n,t){return Ur(Mt,n,t)}function an(n,t){return Ur(Pt,n,t)}function zr(n){return Q(Mt,n,!0)}function Ge(n){return Q(Pt,n,!0)}var rn=class{};function ln(n){return Q(rn,n,!0)}var ue=class extends Tt{};function Ie(n){return Q(ue,n,!0)}var cn=(()=>{let t=class t{constructor(){this.destroyRef=u(ne),this.drivers=u(ue),this.vehicles=u(rn)}ngOnInit(){let e=this.vehicles.find(({type:s})=>s===this.type);Y(...this.drivers.filter(({type:s})=>s===this.type)).pipe($(),it(this.destroyRef)).subscribe(s=>{e==null||e.toggle(s)})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t});let n=t;return n})();var nh=(()=>{let t=class t extends Tt{constructor(){super(e=>this.stream$.subscribe(e)),this.media=u(Ks),this.sorted=Object.values(this.media).sort((e,s)=>e-s),this.invert=Object.keys(this.media).reduce((e,s)=>Ne(wt({},e),{[this.media[s]]:s}),{}),this.stream$=u(Lr).pipe(C(({width:e})=>this.sorted.find(s=>s>e)),C(e=>this.invert[e||this.sorted[this.sorted.length-1]]),$(),ft(u(et)),Di({bufferSize:1,refCount:!0}))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ye=(()=>{let t=class t extends Tt{constructor(){let e=u(Te),s=u(et);super(r=>e.pipe(tt(null),C(()=>this.accessor.getPosition(this.el.getBoundingClientRect())),ui(s),ws(()=>this.accessor.getPosition(Bt))).subscribe(r)),this.el=F(),this.accessor=u(Mt)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),un=(()=>{let t=class t{constructor(){this.isWebkit=u(Rr),this.win=u(Ut)}correct(e){var s,r;return this.isWebkit?[e[0]+(((s=this.win.visualViewport)==null?void 0:s.offsetTop)??0),e[1]+(((r=this.win.visualViewport)==null?void 0:r.offsetLeft)??0)]:e}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ll=["viewContainer"],ls=class{},cl=(()=>{let t=class t{constructor(){this.refresh$=new Rt,this.pseudoInvalid=Ht(null),this.internal=Ht(u(os,{self:!0,optional:!0})),this.control=u(Mi,{self:!0}),this.destroyRef=u(ne),this.cdr=u(pt),this.transformer=u(ls,{optional:!0}),this.value=oe(()=>this.internal()),this.readOnly=Ht(!1),this.touched=Ht(!1),this.status=Ht(void 0),this.disabled=oe(()=>this.status()==="DISABLED"),this.interactive=oe(()=>!this.disabled()&&!this.readOnly()),this.invalid=oe(()=>this.pseudoInvalid()!==null?!!this.pseudoInvalid()&&this.interactive():this.interactive()&&this.touched()&&this.status()==="INVALID"),this.mode=oe(()=>this.readOnly()?"readonly":this.invalid()?"invalid":"valid"),this.onTouched=bn,this.onChange=bn,this.control.valueAccessor=this,this.refresh$.pipe(ke(0),tt(null),C(()=>this.control.control),ot(Ue),$(),ht(e=>Y(e.valueChanges,e.statusChanges)),it(this.destroyRef)).subscribe(()=>{this.update()})}set readOnlySetter(e){this.readOnly.set(e)}set invalidSetter(e){this.pseudoInvalid.set(e)}registerOnChange(e){this.refresh$.next(),this.onChange=s=>{s!==this.internal()&&(e(this.toControlValue(s)),this.internal.set(s),this.update())}}registerOnTouched(e){this.onTouched=()=>{e(),this.update()}}setDisabledState(){this.update()}writeValue(e){let s=this.control instanceof Ls?this.control.model:e;this.internal.set(this.fromControlValue(s)),this.update()}fromControlValue(e){return this.transformer?this.transformer.fromControlValue(e):e}toControlValue(e){return this.transformer?this.transformer.toControlValue(e):e}update(){var e,s;this.status.set((e=this.control.control)==null?void 0:e.status),this.touched.set(!!((s=this.control.control)!=null&&s.touched)),this.cdr.markForCheck()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,inputs:{readOnlySetter:[0,"readOnly","readOnlySetter"],invalidSetter:[0,"invalid","invalidSetter"]}});let n=t;return Et([xt],n.prototype,"fromControlValue",null),Et([xt],n.prototype,"toControlValue",null),n})();function vh(n){return Q(cl,n)}var $r=(()=>{let t=class t{constructor(){this.injector=u(ee),this.nothing=u(hn).attach(this)}addComponentChild(e){let s=e.createInjector(this.injector),r=this.vcr.createComponent(e.component,{injector:s});return r.changeDetectorRef.detectChanges(),r}addTemplateChild(e,s){return this.vcr.createEmbeddedView(e,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,viewQuery:function(s,r){if(s&1&&Cs(ll,5,ni),s&2){let o;He(o=xe())&&(r.vcr=o.first)}}});let n=t;return n})(),hn=(()=>{let t=class t{attach(e){this.host=e}add(e){return this.safeHost.addComponentChild(e)}remove({hostView:e}){e.destroyed||e.destroy()}addTemplate(e,s){return this.safeHost.addTemplateChild(e,s)}removeTemplate(e){e.destroyed||e.destroy()}get safeHost(){if(!this.host)throw new cs;return this.host}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function jr(n){return Q(hn,n)}var cs=class extends Error{constructor(){super("")}};var Wr=(()=>{let t=class t extends Tt{constructor(){super(e=>this.obscured$.subscribe(e)),this.el=F(),this.obscured$=u(Te).pipe(ve(100),C(()=>Pi(this.el)),tt(null),$(),ft(u(et)))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),dn=(()=>{let t=class t{constructor(){this.activeZone=u(jt,{optional:!0}),this.enabled$=new Rt,this.obscured$=u(Wr,{self:!0}).pipe(C(e=>!!(e!=null&&e.every(s=>{var r;return!((r=this.activeZone)!=null&&r.contains(s))})))),this.tuiObscured=this.enabled$.pipe(Ni(()=>this.obscured$))}set tuiObscuredEnabled(e){this.enabled$.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},standalone:!0,features:[P([Wr])]});let n=t;return n})();var hl=n=>({$implicit:n});function dl(n,t){if(n&1&&(Ot(0,"div",2),oi(1),It()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}var pl=["tuiDropdownHost"],fl=["*"],Xe=(()=>{let t=class t extends Rt{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),ml=(()=>{let t=class t extends cn{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownDriver",""]],standalone:!0,features:[bt]});let n=t;return n})(),gl=Z(()=>wl),yl=new dt(""),Vr=(()=>{let t=class t extends hn{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Kr={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Ae=Se(Kr),vd=n=>({provide:Ae,deps:[[new te,vl],[new te,new Re,Ae]],useFactory:xi(n,Kr)}),vl=(()=>{let t=class t{constructor(){this.options=u(Ae,{skipSelf:!0}),this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[0,"tuiDropdownAlign","align"],appearance:[0,"tuiDropdownAppearance","appearance"],direction:[0,"tuiDropdownDirection","direction"],limitWidth:[0,"tuiDropdownLimitWidth","limitWidth"],minHeight:[0,"tuiDropdownMinHeight","minHeight"],maxHeight:[0,"tuiDropdownMaxHeight","maxHeight"],offset:[0,"tuiDropdownOffset","offset"]},standalone:!0,features:[P([Q(Ae,t)])]});let n=t;return n})(),pn=(()=>{let t=class t extends Mt{constructor(){super(...arguments),this.options=u(Ae),this.viewport=u(Ke),this.type="dropdown",this.accessor=bi("dropdown")(u(Pt),u(he,{optional:!0}))}getPosition({width:e,height:s}){var z;!e&&!s&&(this.previous=void 0);let r=((z=this.accessor)==null?void 0:z.getClientRect())??Bt,o=this.viewport.getClientRect(),{minHeight:a,align:l,direction:c,offset:h,limitWidth:p}=this.options,y={top:o.top-h,bottom:o.bottom+h,right:o.right-h,left:o.left+h},m=this.previous||c||"bottom",f={top:r.top-2*h-y.top,bottom:y.bottom-r.bottom-2*h},v=p==="fixed"?r.width:e,O=Math.max(r.right-v,h),k=r.left+ef.bottom?"top":"bottom";return f[m]>a&&c||f[m]>s?[R[m],R[l]]:(this.previous=B,[R[B],R[l]])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownPosition",""]],standalone:!0,features:[bt]});let n=t;return n})(),he=(()=>{let t=class t{constructor(){this.refresh$=new Rt,this.service=u(Vr),this.cdr=u(pt),this.sub=this.refresh$.pipe(ve(0),it()).subscribe(()=>{var e,s;(e=this.ref())==null||e.changeDetectorRef.detectChanges(),(s=this.ref())==null||s.changeDetectorRef.markForCheck()}),this.el=F(),this.type="dropdown",this.component=new Qt(u(gl),u(ee)),this.ref=Ht(null)}set tuiDropdown(e){this.content=e instanceof Lt?new En(e,this.cdr):e}get position(){return Cn(this.el)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){let s=this.ref();e&&this.content&&!s?this.ref.set(this.service.add(this.component)):!e&&s&&(this.ref.set(null),this.service.remove(s))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdown","",5,"ng-container",5,"ng-template"]],inputs:{tuiDropdown:"tuiDropdown"},exportAs:["tuiDropdown"],standalone:!0,features:[P([Ge(t),ln(t)]),se([ml,pn]),ie]});let n=t;return Et([xt],n.prototype,"position",null),n})(),wl=(()=>{let t=class t{constructor(){var e;this.el=F(),this.accessor=u(Pt),this.win=u(Ut),this.vvs=u(un),this.animation=qe(u(We)),this.options=u(Ae),this.directive=u(he),this.context=u(yl,{optional:!0}),this.theme=(e=this.directive.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme"),this.sub=u(Ye).pipe(Ei(()=>this.directive.el.isConnected),C(s=>this.directive.position==="fixed"?this.vvs.correct(s):s),C(([s,r])=>this.getStyles(s,r)),it()).subscribe({next:s=>Object.assign(this.el.style,s),complete:()=>this.close()}),this.close=()=>this.directive.toggle(!1)}getStyles(e,s){var B;let{right:r}=this.el.getBoundingClientRect(),{maxHeight:o,minHeight:a,offset:l,limitWidth:c}=this.options,{innerHeight:h}=this.win,p=(B=this.el.offsetParent)==null?void 0:B.getBoundingClientRect(),{position:y}=this.directive,m=this.accessor.getClientRect(),f=y==="fixed"?0:-((p==null?void 0:p.left)||0),v=y==="fixed"?0:-((p==null?void 0:p.top)||0);e+=v,s+=f;let O=r<=m.left||s>=m.right,R=sm.left&&e{let t=class t{constructor(){this.directive=u(he),this.el=F(),this.obscured=u(dn),this.dropdown=oe(()=>{var e;return(e=this.directive.ref())==null?void 0:e.location.nativeElement}),this.sub=Y(this.obscured.tuiObscured.pipe(ot(Boolean)),u(jt).tuiActiveZoneChange.pipe(ot(e=>!e)),ge(this.el,"focusin").pipe(C($e),ot(e=>!this.host.contains(e)||!this.directive.ref()))).pipe(Sn(u(pt)),it()).subscribe(()=>this.toggle(!1)),this.tuiDropdownEnabled=!0,this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new Ds,this.driver=u(Xe)}ngOnChanges(){this.drive()}toggle(e){this.focused&&!e&&this.host.focus({preventScroll:!0}),this.update(e)}onClick(e){!this.editable&&this.host.contains(e)&&this.update(!this.tuiDropdownOpen)}onArrow(e,s){!ci(e.target)||!this.host.contains(e.target)||!this.tuiDropdownEnabled||(e.preventDefault(),this.focusDropdown(s))}onEsc(e){e.preventDefault(),this.toggle(!1)}onKeydown({key:e,target:s,defaultPrevented:r}){r||!Js(e)||!this.editable||!this.focused||!De(s)||vn(s)&&s!==this.host||(this.update(!0),this.host.focus({preventScroll:!0}))}get host(){var r,o;let e=((r=this.dropdownHost)==null?void 0:r.nativeElement)||this.el,s=Ui(e)?e:In({initial:e,root:this.el});return((o=this.dropdownHost)==null?void 0:o.nativeElement)||s||this.el}get editable(){return vn(this.host)}get focused(){return pi(this.host)||pi(this.dropdown())}update(e){e&&!this.tuiDropdownEnabled||(this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e),this.drive())}drive(e=this.tuiDropdownOpen&&this.tuiDropdownEnabled){this.obscured.tuiObscuredEnabled=!!e,this.driver.next(!!e)}focusDropdown(e){let s=this.dropdown();if(!s){this.update(!0);return}let r=this.el.ownerDocument,o=s.appendChild(r.createElement("div")),l=In({initial:e?o:s,previous:e,root:s});o.remove(),l==null||l.focus()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdown","","tuiDropdownOpen",""],["","tuiDropdown","","tuiDropdownOpenChange",""]],contentQueries:function(s,r,o){if(s&1&&Ii(o,pl,5,ii),s&2){let a;He(a=xe())&&(r.dropdownHost=a.first)}},hostBindings:function(s,r){s&1&&_t("click",function(a){return r.onClick(a.target)})("keydown.arrowDown",function(a){return r.onArrow(a,!1)})("keydown.arrowUp",function(a){return r.onArrow(a,!0)})("keydown.silent.capture",function(a){return r.onEsc(a)},!1,we)("keydown.silent",function(a){return r.onKeydown(a)},!1,we)},inputs:{tuiDropdownEnabled:"tuiDropdownEnabled",tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0,features:[P([Xe,Ie(Xe)]),se([dn,{directive:jt,inputs:["tuiActiveZoneParent","tuiActiveZoneParent"],outputs:["tuiActiveZoneChange","tuiActiveZoneChange"]}]),ie]});let n=t;return Et([Br(_l)],n.prototype,"onEsc",null),n})();var _d=(()=>{let t=class t{constructor(){this.driver=u(Xe),this.tuiDropdownManual=!1}ngOnChanges(){this.driver.next(!!this.tuiDropdownManual)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},standalone:!0,features:[P([Xe,Ie(Xe)]),ie]});let n=t;return n})(),Sd=(()=>{let t=class t{constructor(){this.tuiDropdownOpenChange=new me(!1)}set tuiDropdownOpen(e){this.tuiDropdownOpenChange.next(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiDropdownOpen","",3,"tuiDropdown",""],["","tuiDropdownOpenChange","",3,"tuiDropdown",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0});let n=t;return n})();var Dd=(()=>{let t=class t extends Mt{constructor(){super(...arguments),this.options=u(Ae),this.viewport=u(Ke),this.vertical=u(pn),this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var k;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:s,width:r}=e,o=((k=this.vertical.accessor)==null?void 0:k.getClientRect())??Bt,a=this.viewport.getClientRect(),{direction:l,minHeight:c,offset:h}=this.options,p=this.options.align==="center"?"left":this.options.align,y={top:o.bottom-a.top,left:o.left-h-a.left,right:a.right-o.right-h,bottom:a.bottom-o.top},m={top:o.bottom-s+this.tuiDropdownSidedOffset+1,left:o.left-r-h,right:o.right+h,bottom:o.top-this.tuiDropdownSidedOffset-1},f=y.top>y.bottom?"top":"bottom",v=y.left>y.right?m.left:m.right,O=y[p]>r?m[p]:v;return y[this.previous]>c&&l||this.previous===f?[m[this.previous],O]:(this.previous=f,[m[f],O])}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},standalone:!0,features:[P([pn,zr(t)]),bt]});let n=t;return n})();var Td=(()=>{let t=class t extends $r{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275cmp=at({type:t,selectors:[["tui-dropdowns"]],standalone:!0,features:[P([jr(Vr)]),bt,ct],ngContentSelectors:fl,decls:3,vars:0,consts:[["viewContainer",""]],template:function(s,r){s&1&&(qt(),Zt(0),Ci(1,null,0))},styles:["[_nghost-%COMP%]{display:block;height:100%;isolation:isolate}"],changeDetection:0});let n=t;return n})();var Sl=["tuiOption",""],qr=["*"],Dl=n=>({$implicit:n});function Tl(n,t){if(n&1&&(si(0),oi(1),ri()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}function El(n,t){n&1&&Zt(0)}function Cl(n,t){if(n&1&&(si(0),oi(1),ri()),n&2){let i=t.polymorpheusOutlet;rt(),ai(" ",i," ")}}function Ol(n,t){if(n&1&&(Ot(0,"div",1),lt(1,Cl,2,1,"ng-container",2),It()),n&2){let i=be();rt(),V("polymorpheusOutlet",i.emptyContent||i.fallback())}}var Il=new dt("[TUI_OPTION_CONTENT]");var Al=new dt("[TUI_DATA_LIST_ACCESSOR]");function Ml(n){return Q(Al,n)}var Zr=new dt("[TUI_DATA_LIST_HOST]");var Pl=(()=>{let t=class t{constructor(){var e;this.isMobile=u(rs),this.el=F(),this.dataList=u(_s(()=>Nl),{optional:!0}),this.host=u(Zr,{optional:!0}),this.content=u(Il,{optional:!0}),this.dropdown=(e=u(he,{self:!0,optional:!0}))==null?void 0:e.ref,this.disabled=!1}ngOnDestroy(){var e;(e=this.dataList)==null||e.handleFocusLossIfNecessary(this.el)}onClick(){var e;(e=this.host)!=null&&e.handleOption&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove(){!this.isMobile&&!di(this.el)&&this.dataList&&this.el.focus({preventScroll:!0})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""],["label","tuiOption",""]],hostAttrs:["type","button","role","option"],hostVars:3,hostBindings:function(s,r){s&1&&_t("click",function(){return r.onClick()})("mousemove.silent",function(){return r.onMouseMove()}),s&2&&(re("disabled",r.disabled||null),Kt("_with-dropdown",r.dropdown==null?null:r.dropdown()))},inputs:{disabled:"disabled",value:"value"},standalone:!0,features:[se([qs]),ct],attrs:Sl,ngContentSelectors:qr,decls:3,vars:4,consts:[["t",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){if(s&1&&(qt(),lt(0,Tl,2,1,"ng-container",1)(1,El,1,0,"ng-template",null,0,Ms)),s&2){let o=Os(2);V("polymorpheusOutlet",r.content||o)("polymorpheusOutletContext",Be(2,Dl,o))}},dependencies:[ae],encapsulation:2,changeDetection:0});let n=t;return n})();function Fl(){var i;let n=["s","m","l"],t=(i=u(Zr,{optional:!0}))==null?void 0:i.size;return t&&n.includes(t)?t:"l"}var Nl=(()=>{let t=class t{constructor(){this.options=Us,this.el=F(),this.fallback=Ai(u(Ws)),this.empty=!0,this.size=Fl()}onKeyDownArrow(e,s){let{elements:r}=this;er(r.indexOf(e),r,s)}handleFocusLossIfNecessary(e=this.el){var s;pi(e)&&((s=this.origin)==null||s.focus({preventScroll:!0}))}ngAfterContentChecked(){this.empty=!this.el.querySelector("[tuiOption]")}getOptions(e=!1){return this.options.filter(({disabled:s})=>e||!s).map(({value:s})=>s).filter(Ue)}onFocusIn(e,s){!s.contains(e)&&!this.origin&&(this.origin=e)}noop(){}get elements(){return Array.from(this.el.querySelectorAll("a[tuiOption],button[tuiOption],input"))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-data-list"]],contentQueries:function(s,r,o){if(s&1&&Ii(o,Pl,5),s&2){let a;He(a=xe())&&(r.options=a)}},hostAttrs:["role","listbox"],hostVars:1,hostBindings:function(s,r){s&1&&_t("keydown.arrowDown.prevent",function(a){return r.onKeyDownArrow(a.target,1)})("keydown.arrowUp.prevent",function(a){return r.onKeyDownArrow(a.target,-1)})("wheel.silent.passive",function(){return r.handleFocusLossIfNecessary()})("mouseleave",function(a){return r.handleFocusLossIfNecessary(a.target)})("keydown.tab",function(){return r.handleFocusLossIfNecessary()})("keydown.shift.tab",function(){return r.handleFocusLossIfNecessary()})("focusin",function(a){return r.onFocusIn(a.relatedTarget,a.currentTarget)})("mousedown.prevent",function(){return r.noop()}),s&2&&re("data-size",r.size)},inputs:{emptyContent:"emptyContent",size:"size"},standalone:!0,features:[P([Ml(t)]),ct],ngContentSelectors:qr,decls:2,vars:1,consts:[["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(s,r){s&1&&(qt(),Zt(0),lt(1,Ol,2,1,"div",0)),s&2&&(rt(),V("ngIf",r.empty))},dependencies:[li,ae],styles:[`tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-tertiary)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-size=s]>.t-empty,tui-data-list[data-size=s] [tuiOption]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-size=s]>.t-empty:before,tui-data-list[data-size=s] [tuiOption]:before{font-size:1rem}tui-data-list[data-size=m]>.t-empty,tui-data-list[data-size=m] [tuiOption]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-size=l]>.t-empty,tui-data-list[data-size=l] [tuiOption]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-data-list>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0}tui-data-list [tuiOption]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;justify-content:space-between;text-align:left;color:var(--tui-text-primary);border-radius:var(--tui-radius-s);outline:none;cursor:pointer;background-clip:padding-box}tui-data-list [tuiOption]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}tui-data-list [tuiOption]:focus-within,tui-data-list [tuiOption]._with-dropdown{background-color:var(--tui-background-neutral-1)}tui-data-list [tuiOption]:before{margin-inline-end:.5rem}tui-data-list [tuiOption]:after{font-size:1rem;margin:0 -.75rem 0 auto;border-left:.5rem solid;border-right:.5rem solid}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-secondary);flex-direction:column;line-height:1rem}tui-data-list[data-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-border-normal)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0} `],encapsulation:2,changeDetection:0});let n=t;return n})();var Kd=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(s,r){s&2&&re("data-label",r.label)},inputs:{label:"label"},standalone:!0});let n=t;return n})();function kl({currentTarget:n,relatedTarget:t}){return!ci(t)||!ci(n)||!n.contains(t)}var Me=(()=>{let t=class t extends Tt{constructor(){super(e=>this.stream$.subscribe(e)),this.el=F(),this.zone=u(et),this.stream$=Y(x(this.el,"mouseenter").pipe(C(Fi)),x(this.el,"mouseleave").pipe(C(je)),x(this.el,"mouseout").pipe(ot(kl),C(je))).pipe($(),ft(this.zone))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();var ip=(()=>{let t=class t{constructor(){this.tuiHoveredChange=u(Me)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},standalone:!0,features:[P([Me])]});let n=t;return n})();var Rl=["*"];function Ll(n,t){if(n&1&&Le(0,"span",1),n&2){let i=t.polymorpheusOutlet;V("innerHTML",i,Es)}}var Hl=n=>({$implicit:n});function xl(n,t){n&1&&Ci(0)}function Bl(n,t){if(n&1&&(Ot(0,"div",1),lt(1,xl,1,0,"ng-container",2),It()),n&2){let i=t.$implicit;V("@tuiParentAnimation",void 0)("tuiActiveZoneParent",i.activeZone||null),rt(),V("polymorpheusOutlet",i.component)("polymorpheusOutletContext",Be(4,Hl,i))}}var Ul=Z(()=>Vl),Yr=(()=>{let t=class t extends me{constructor(){super([])}add(e){this.next(this.value.concat(e))}remove(e){this.value.includes(e)&&this.next(this.value.filter(s=>s!==e))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),zl=(()=>{let t=class t extends cn{constructor(){super(...arguments),this.type="hint"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,standalone:!0,features:[bt]});let n=t;return n})(),Qr=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],Xr={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"@tui.circle-help"},Pe=Se(Xr),Pp=n=>({provide:Pe,deps:[[new te,$l],[new te,new Re,Pe]],useFactory:xi(n,Xr)}),$l=(()=>{let t=class t{constructor(){this.options=u(Pe,{skipSelf:!0}),this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon,this.change$=new Rt}ngOnChanges(){this.change$.next()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[0,"tuiHintContent","content"],direction:[0,"tuiHintDirection","direction"],appearance:[0,"tuiHintAppearance","appearance"],showDelay:[0,"tuiHintShowDelay","showDelay"],hideDelay:[0,"tuiHintHideDelay","hideDelay"]},standalone:!0,features:[P([Q(Pe,t)]),ie]});let n=t;return n})(),us=(()=>{let t=class t extends ue{constructor(){super(e=>this.stream$.subscribe(e)),this.hovered$=u(Me),this.options=u(Pe),this.visible=!1,this.toggle$=new Rt,this.stream$=Y(this.toggle$.pipe(ht(e=>Ct(e).pipe(ke(e?0:this.tuiHintHideDelay))),Jt(this.hovered$),ti()),this.hovered$.pipe(ht(e=>Ct(e).pipe(ke(e?this.tuiHintShowDelay:this.tuiHintHideDelay))),Jt(this.toggle$),ti())).pipe(ot(()=>this.enabled),C(e=>e&&(this.el.hasAttribute("tuiHintPointer")||!On(this.el))),ei(e=>{this.visible=e})),this.parent=u(t,{optional:!0,skipSelf:!0}),this.tuiHintShowDelay=this.options.showDelay,this.tuiHintHideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0,this.el=F()}toggle(e=!this.visible){var s;this.toggle$.next(e),(s=this.parent)==null||s.toggle(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay"},exportAs:["tuiHintHover"],standalone:!0,features:[P([Ie(t),Me]),bt]});let n=t;return n})(),de=8,fn=22,U=0,K=1,Jr=(()=>{let t=class t extends Mt{constructor(){super(...arguments),this.viewport=u(Ke),this.accessor=bi("hint")(u(Pt),u(hs)),this.points=Qr.reduce((e,s)=>Ne(wt({},e),{[s]:[0,0]}),{}),this.direction=u(Pe).direction,this.type="hint"}getPosition({width:e,height:s}){let r=this.accessor.getClientRect()??Bt,o=r.left+r.width/2,a=r.top+r.height/2;if(this.points["top-left"][U]=r.top-s-de,this.points["top-left"][K]=o-e+fn,this.points.top[U]=this.points["top-left"][U],this.points.top[K]=o-e/2,this.points["top-right"][U]=this.points["top-left"][U],this.points["top-right"][K]=o-fn,this.points["bottom-left"][U]=r.bottom+de,this.points["bottom-left"][K]=this.points["top-left"][K],this.points.bottom[U]=this.points["bottom-left"][U],this.points.bottom[K]=this.points.top[K],this.points["bottom-right"][U]=this.points["bottom-left"][U],this.points["bottom-right"][K]=this.points["top-right"][K],this.points["left-top"][U]=a-s+fn,this.points["left-top"][K]=r.left-e-de,this.points.left[U]=a-s/2,this.points.left[K]=this.points["left-top"][K],this.points["left-bottom"][U]=a-fn,this.points["left-bottom"][K]=this.points["left-top"][K],this.points["right-top"][U]=this.points["left-top"][U],this.points["right-top"][K]=r.right+de,this.points.right[U]=this.points.left[U],this.points.right[K]=this.points["right-top"][K],this.points["right-bottom"][U]=this.points["left-bottom"][U],this.points["right-bottom"][K]=this.points["right-top"][K],this.checkPosition(this.points[this.direction],e,s))return this.points[this.direction];let l=Qr.find(c=>this.checkPosition(this.points[c],e,s));return this.points[l||this.fallback]}get fallback(){return this.points.top[U]>this.viewport.getClientRect().bottom-this.points.bottom[U]?"top":"bottom"}checkPosition([e,s],r,o){let a=this.viewport.getClientRect();return e>de/4&&s>de/4&&e+o{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,inputs:{direction:[0,"tuiHintDirection","direction"]},standalone:!0,features:[bt]});let n=t;return n})(),hs=(()=>{let t=class t{constructor(){this.service=u(Yr),this.appearance=u(Pe).appearance,this.component=u(Qt),this.el=F(),this.activeZone=u(jt,{optional:!0}),this.type="hint"}set tuiHint(e){this.content=e,e||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){e&&this.content?this.service.add(this):this.service.remove(this)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{context:[0,"tuiHintContext","context"],appearance:[0,"tuiHintAppearance","appearance"],tuiHint:"tuiHint"},standalone:!0,features:[P([Ge(t),ln(t),{provide:Qt,deps:[Ul,ee],useClass:Qt}]),se([zl,{directive:us,inputs:["tuiHintHideDelay","tuiHintHideDelay","tuiHintShowDelay","tuiHintShowDelay"]},{directive:Jr,inputs:["tuiHintDirection","tuiHintDirection"]}])]});let n=t;return n})(),jl=(()=>{let t=class t extends us{constructor(){super(...arguments),this.currentRect=Bt}getClientRect(){return this.currentRect}onMove({clientX:e,clientY:s}){this.currentRect=wn(e,s)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(s,r){s&1&&_t("mousemove.silent",function(a){return r.onMove(a)})},standalone:!0,features:[P([Ge(t),Ie(t)]),bt]});let n=t;return n})(),Gr=4,Wl=[Ye,Me,on("hint",Jr),an("hint",hs)],Vl=(()=>{let t=class t{constructor(){var e;this.polymorpheus=u(Tn),this.el=F(),this.hover=u(us),this.vvs=u(un),this.viewport=u(Ke),this.appearance=this.polymorpheus.$implicit.appearance||((e=u(hs).el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme")),this.options=qe(u(We)),this.pointer=u(jl,{optional:!0}),this.accessor=u(Pt),u(Ye).pipe(Ei(()=>this.hover.el.isConnected),C(s=>this.vvs.correct(s)),it()).subscribe({next:([s,r])=>this.update(s,r),complete:()=>this.hover.toggle(!1)}),u(Me).pipe(it()).subscribe(s=>this.hover.toggle(s))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(e){(!e.closest("tui-hint")&&!this.hover.el.contains(e)||On(this.hover.el))&&this.hover.toggle(!1)}apply(e,s,r,o){this.el.style.top=e,this.el.style.left=s,this.el.style.setProperty("--top",r),this.el.style.setProperty("--left",o)}update(e,s){let{height:r,width:o}=this.el.getBoundingClientRect(),a=this.accessor.getClientRect(),l=this.viewport.getClientRect();if(a===Bt||!r||!o)return;let c=ze(s,Gr,l.width-o-Gr),[h,p]=this.vvs.correct([a.top+a.height/2-e,a.left+a.width/2-c]);this.apply(St(Math.round(e)),St(Math.round(c)),St(Math.round(ze(h,1,r-1))),St(Math.round(ze(p,1,o-1))))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-hint"]],hostVars:5,hostBindings:function(s,r){s&1&&_t("click",function(a){return r.onClick(a.target)},!1,we),s&2&&(Oi("@tuiFadeIn",r.options),re("data-appearance",r.appearance)("tuiTheme",r.appearance),Kt("_untouchable",r.pointer))},standalone:!0,features:[P(Wl),ct],ngContentSelectors:Rl,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(s,r){s&1&&(qt(),Zt(0),lt(1,Ll,1,1,"span",0)),s&2&&(rt(),V("polymorpheusOutlet",r.content)("polymorpheusOutletContext",r.context))},dependencies:[ae],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-status-negative)}[data-appearance=dark][_nghost-%COMP%]{background:var(--tui-background-accent-opposite-hover);color:var(--tui-background-base);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*=top]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[Hi]},changeDetection:0});let n=t;return Et([xt],n.prototype,"apply",null),n})(),Fp=(()=>{let t=class t extends ue{constructor(){super(e=>this.stream$.subscribe(e)),this.doc=u(_e),this.el=F(),this.id$=new me(""),this.stream$=this.id$.pipe($(),Ni(()=>ge(this.doc,"keydown",{capture:!0}),Ue),ht(()=>this.focused?Ct(!1):Y(x(this.doc,"keyup"),x(this.element,"blur")).pipe(C(()=>this.focused))),ys(e=>e?ye(1e3):Ct(null)),tt(!1),$(),Ti(1),ft(u(et))),this.type="hint"}set tuiHintDescribe(e){this.id$.next(e||"")}get element(){return this.doc.getElementById(this.id$.value||"")||this.el}get focused(){return di(this.element)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},standalone:!0,features:[P([Ie(t)]),bt]});let n=t;return Et([xt],n.prototype,"element",null),n})(),Np=(()=>{let t=class t extends Pt{constructor(){super(...arguments),this.type="hint"}getClientRect(){var e;return((e=this.tuiHintHost)==null?void 0:e.getBoundingClientRect())||Bt}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=j(t)))(r||t)}})(),t.\u0275dir=T({type:t,selectors:[["","tuiHint","","tuiHintHost",""]],inputs:{tuiHintHost:"tuiHintHost"},standalone:!0,features:[P([Ge(t)]),bt]});let n=t;return n})();var kp=(()=>{let t=class t{constructor(){this.hints$=u(Yr),this.destroyRef=u(ne),this.cdr=u(pt),this.hints=[]}ngOnInit(){this.hints$.pipe(it(this.destroyRef)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["tui-hints"]],hostAttrs:["aria-live","polite"],standalone:!0,features:[ct],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){s&1&<(0,Bl,2,6,"div",0),s&2&&V("ngForOf",r.hints)},dependencies:[Fs,jt,ae],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;height:0}"],data:{animation:[Gs]}});let n=t;return n})();var Kl=Se("@tui.chevron-down"),ql=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=at({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-chevron"],standalone:!0,features:[ct],decls:0,vars:0,template:function(s,r){},styles:[`[tuiChevron][tuiIcons]:after,tui-icon[tuiChevron]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;cursor:pointer}[tuiChevron][tuiIcons]._chevron-rotated:after,tui-icon[tuiChevron]._chevron-rotated:after{transform:rotate(180deg)} `],encapsulation:2,changeDetection:0});let n=t;return n})(),qp=(()=>{let t=class t{constructor(){this.el=F(),this.dropdown=u(he,{optional:!0}),this.nothing=xs(ql),this.toggle=Ps(()=>{var e;return this.el.classList.toggle("_chevron-rotated",this.chevron()||this.chevron()===""&&!!((e=this.dropdown)!=null&&e.ref()))}),this.chevron=Ht("")}set tuiChevron(e){this.chevron.set(e)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=T({type:t,selectors:[["","tuiChevron",""]],hostAttrs:["tuiChevron",""],inputs:{tuiChevron:"tuiChevron"},standalone:!0,features:[P([Q(Vs,Kl)])]});let n=t;return n})();export{Gs as a,ic as b,Tn as c,Qt as d,En as e,ae as f,Ec as g,ro as h,tr as i,Ic as j,Bi as k,Fc as l,In as m,di as n,pi as o,er as p,Vo as q,rr as r,Rn as s,ar as t,Xi as u,vr as v,wr as w,rs as x,en as y,Qc as z,Xc as A,Ga as B,xr as C,bu as D,_u as E,Su as F,Me as G,ip as H,nh as I,ls as J,cl as K,vh as L,Iu as M,gl as N,Ae as O,vd as P,he as Q,wl as R,bd as S,_d as T,Sd as U,Dd as V,Td as W,Ml as X,Zr as Y,Pl as Z,Fl as _,Nl as $,Kd as aa,Pp as ba,$l as ca,us as da,hs as ea,Vl as fa,Fp as ga,Np as ha,kp as ia,qp as ja}; diff --git a/chunk-M65T2WFK.js b/chunk-GXKQ5RYX.js similarity index 99% rename from chunk-M65T2WFK.js rename to chunk-GXKQ5RYX.js index bbc3a2723..28b2e5c3d 100644 --- a/chunk-M65T2WFK.js +++ b/chunk-GXKQ5RYX.js @@ -1,4 +1,4 @@ -import{Ob as l,Pb as u,We as c,cf as m,eb as s,ef as p,pa as n,qd as d,ra as o}from"./chunk-XSFATUKW.js";var g=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-title"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiTitle]{position:relative;display:flex;flex-direction:column;text-align:left;gap:.25rem;margin:0;font:var(--tui-font-text-ui-m)}[tuiTitle][data-size=s]{gap:.125rem;font:var(--tui-font-text-s)}[tuiTitle][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-xs)}[tuiTitle][data-size=m]{gap:.125rem;font:var(--tui-font-heading-5)}[tuiTitle][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiTitle][data-size=l]{gap:.5rem;font:var(--tui-font-heading-3)}[tuiTitle][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiSubtitle]{font:var(--tui-font-text-ui-s)} +import{Ob as l,Pb as u,We as c,cf as m,eb as s,ef as p,pa as n,qd as d,ra as o}from"./chunk-SY4TDKKS.js";var g=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-title"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiTitle]{position:relative;display:flex;flex-direction:column;text-align:left;gap:.25rem;margin:0;font:var(--tui-font-text-ui-m)}[tuiTitle][data-size=s]{gap:.125rem;font:var(--tui-font-text-s)}[tuiTitle][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-xs)}[tuiTitle][data-size=m]{gap:.125rem;font:var(--tui-font-heading-5)}[tuiTitle][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiTitle][data-size=l]{gap:.5rem;font:var(--tui-font-heading-3)}[tuiTitle][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiSubtitle]{font:var(--tui-font-text-ui-s)} `],encapsulation:2,changeDetection:0});let e=t;return e})(),b=(()=>{let t=class t{constructor(){this.nothing=d(g),this.size=""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiTitle",""]],hostAttrs:["tuiTitle",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-size",r.size||null)},inputs:{size:[0,"tuiTitle","size"]},standalone:!0});let e=t;return e})();var h=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-card"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiCardMedium],[tuiCardLarge]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;align-items:flex-start;flex-shrink:0;text-decoration:none;overscroll-behavior:contain}[tuiCardMedium][tuiTitle],[tuiCardLarge][tuiTitle],[tuiCardMedium] [tuiTitle]:not([tuiCell] *),[tuiCardLarge] [tuiTitle]:not([tuiCell] *){font-weight:700}[tuiCardMedium] [tuiTitle],[tuiCardLarge] [tuiTitle],[tuiCardMedium] [tuiSubtitle],[tuiCardLarge] [tuiSubtitle]{max-width:100%}[tuiCardMedium]>*,[tuiCardLarge]>*{scrollbar-width:none;-ms-overflow-style:none}[tuiCardMedium]>*::-webkit-scrollbar,[tuiCardLarge]>*::-webkit-scrollbar,[tuiCardMedium]>*::-webkit-scrollbar-thumb,[tuiCardLarge]>*::-webkit-scrollbar-thumb{display:none}[tuiCardMedium]{width:8.75rem;height:8.75rem;flex-direction:column;justify-content:space-between;padding:.75rem;border-radius:var(--tui-radius-l);box-sizing:border-box}[tuiCardMedium][tuiTitle]{padding:.625rem .75rem}[tuiCardMedium] [tuiTitle]{margin:-.125rem 0}[tuiCardMedium] [tuiSubtitle]{color:var(--tui-text-primary)}[tuiCardLarge][data-space]{--t-gap: .75rem;--t-radius: var(--tui-radius-l);--t-comp: -.25rem;--t-padding: .75rem;--t-dim: calc(var(--t-padding) + var(--t-comp));font:var(--tui-font-text-m);padding:var(--t-padding);border-radius:var(--t-radius);box-sizing:border-box}[tuiCardLarge][data-space][data-space=normal]{--t-radius: 1.5rem;--t-padding: 1.5rem;--t-gap: 1.5rem}[tuiCardLarge][data-space][data-space=compact]{--t-radius: 1rem;--t-padding: 1.25rem;--t-gap: 1.25rem}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader]){flex-direction:column;gap:var(--t-gap);align-items:stretch}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader])>:last-child:not([tuiCell]){margin-top:auto}[tuiCardLarge][data-space][tuiHeader]{padding:var(--t-dim) var(--t-dim) var(--t-dim) var(--t-padding)}[tuiCardLarge][data-space][tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space]>[tuiHeader]{margin:var(--t-comp) var(--t-comp) calc(1.5 * var(--t-comp)) 0}[tuiCardLarge][data-space]>[tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space] [tuiCell]{width:-webkit-fill-available;width:-moz-available;width:stretch;padding:.5rem;margin:-.5rem -.5rem -.75rem;border-radius:var(--tui-radius-l)}[tuiCardLarge][data-space]>[tuiLink]:last-child{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-bottom:var(--t-comp)} `],encapsulation:2,changeDetection:0});let e=t;return e})();var y=(()=>{let t=class t{constructor(){this.nothing=d(h),this.space="normal"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiCardLarge",""]],hostAttrs:["tuiCardLarge",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-space",r.space||"normal")},inputs:{space:[0,"tuiCardLarge","space"]},standalone:!0});let e=t;return e})();var v=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-header"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiHeader]{position:relative;display:flex;align-items:flex-start;box-sizing:content-box;color:var(--tui-text-primary);text-align:left}[tuiHeader] [tuiTitle]{flex-grow:2}[tuiHeader] [tuiAccessories]{display:flex;align-items:center;gap:.75rem}[tuiHeader] [tuiAccessories]:before{content:"\\200b";visibility:hidden}[tuiHeader] [tuiSubtitle]{font:var(--tui-font-text-m);color:var(--tui-text-secondary)}[tuiHeader] [tuiCaption]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);font-weight:500;text-transform:uppercase}[tuiHeader][data-size=xxl] [tuiTitle],[tuiHeader][data-size=xxl] [tuiAccessories]{font:var(--tui-font-heading-1)}[tuiHeader][data-size=xl] [tuiTitle],[tuiHeader][data-size=xl] [tuiAccessories]{font:var(--tui-font-heading-2)}[tuiHeader][data-size=l] [tuiTitle],[tuiHeader][data-size=l] [tuiAccessories]{font:var(--tui-font-heading-3)}[tuiHeader][data-size=m] [tuiTitle],[tuiHeader][data-size=m] [tuiAccessories]{font:var(--tui-font-heading-4)}[tuiHeader][data-size=s] [tuiTitle],[tuiHeader][data-size=s] [tuiAccessories]{font:var(--tui-font-heading-5)}[tuiHeader][data-size=xs] [tuiTitle],[tuiHeader][data-size=xs] [tuiAccessories]{font:var(--tui-font-heading-6)}[tuiHeader][data-size=xxs] [tuiTitle],[tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-text-xl)}[tuiHeader][data-size=xxl] [tuiSubtitle],[tuiHeader][data-size=xl] [tuiSubtitle],[tuiHeader][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-l)}tui-root._mobile [tuiHeader] [tuiAccessories]{gap:1rem}tui-root._mobile [tuiHeader][data-size=xxs] [tuiTitle],tui-root._mobile [tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-heading-6)} `],encapsulation:2,changeDetection:0});let e=t;return e})(),L=(()=>{let t=class t{constructor(){this.nothing=d(v),this.size="s"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiHeader",""]],hostAttrs:["tuiHeader",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-size",r.size||"s")},inputs:{size:[0,"tuiHeader","size"]},standalone:!0,features:[l([m({size:"s"}),c({size:"s"}),p({size:"m"})])]});let e=t;return e})();export{b as a,y as b,L as c}; diff --git a/chunk-IOVVBLZV.js b/chunk-IOVVBLZV.js new file mode 100644 index 000000000..87a65010d --- /dev/null +++ b/chunk-IOVVBLZV.js @@ -0,0 +1 @@ +import{b as a}from"./chunk-VQMQ7RRG.js";import"./chunk-AIAQHW2T.js";import"./chunk-YR2WX2SW.js";import"./chunk-JDRSJW3I.js";import"./chunk-GGY6MJXK.js";import"./chunk-UPKNOQ5B.js";import"./chunk-GXKQ5RYX.js";import"./chunk-SY4TDKKS.js";import"./chunk-HFDGAYQF.js";export{a as IotComponent}; diff --git a/chunk-FKFBZDNU.js b/chunk-JDRSJW3I.js similarity index 99% rename from chunk-FKFBZDNU.js rename to chunk-JDRSJW3I.js index 8e37fa188..a3d4e53b4 100644 --- a/chunk-FKFBZDNU.js +++ b/chunk-JDRSJW3I.js @@ -1,2 +1,2 @@ -import{G as K,ba as zt,ca as Ft,da as Ht,ea as Et,ga as Yt,ha as $t}from"./chunk-HYP3ZPSI.js";import{Ab as ft,B as it,Bb as $,Cb as N,Da as ct,Db as gt,Eb as _,Ga as Q,Gb as x,Ia as dt,Jc as vt,L as j,Ld as B,Ne as wt,Ob as S,Pb as L,Qa as r,Rb as _t,Ta as E,Td as Ot,Ud as It,Va as ut,Vb as G,W as nt,Wb as Z,We as At,X as ot,Ya as Y,cf as Nt,da as at,db as p,eb as b,fb as c,fd as yt,g as et,gb as g,hb as M,ja as m,jd as Ct,kd as bt,l as z,mb as h,nb as d,ob as y,od as X,pa as T,pb as O,qb as I,qd as Mt,r as F,ra as C,rd as Pt,s as H,sb as ht,te as Lt,ud as Tt,vb as W,vc as R,wb as l,wc as k,xa as rt,xb as pt,xe as St,ya as st,yb as mt,yc as xt,ye as Dt,za as lt,zb as q}from"./chunk-XSFATUKW.js";import{a as A,b as V}from"./chunk-HFDGAYQF.js";function Wt(t){let e=String(t),[n,i]=e.split("e-"),o=e;if(i){let[,a]=n.split("."),u=Number(i)+((a==null?void 0:a.length)||0);o=t.toFixed(u)}return o}function qt(t,e){let[,n=""]=Wt(t).split(".");return Ct(e)?n.slice(0,Math.max(0,e)):n}function Be(t,e={}){let{precision:n,decimalSeparator:i,thousandSeparator:o,decimalMode:a,rounding:u}=A(V(A({},wt),{decimalMode:"always",precision:1/0}),e),s=Number.isFinite(n)?Tt({value:t,precision:n,method:u}):t,f=String(Math.floor(Math.abs(s))),v=qt(s,n),U=Number(v)>0;if(Number.isFinite(n))if(a==="always"||U&&a==="pad"){let P=Math.max(n-v.length,0),Qt="0".repeat(P);v=`${v}${Qt}`}else v=v.replace(/0*$/,"");let jt=f.length%3,w=(t<0?It:"")+f.charAt(0);for(let P=1;P3&&(w+=o),w+=f.charAt(P);return v?w+i+v:w}function Ue(t){if(t==="")return"";let e=0;for(let a=0;a{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-cell"],standalone:!0,features:[L],decls:0,vars:0,template:function(o,a){},styles:[`[tuiCell]{--tui-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;box-sizing:content-box;isolation:isolate;color:var(--tui-text-primary);padding:var(--t-padding);min-height:var(--t-height)}[tuiCell]:disabled{pointer-events:none}[tuiCell] [tuiAccessories]{position:relative;display:flex;max-height:var(--t-height);align-items:center;align-self:stretch}[tuiCell] [tuiCellActions]{position:absolute;right:0;z-index:1;padding-right:inherit}[tuiCell] [tuiCellActions]~*{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}[tuiCell] [tuiCellActions] button,[tuiCell] [tuiCellActions] a{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:0}[tuiCell] [tuiCellActions] button:focus-visible,[tuiCell] [tuiCellActions] a:focus-visible{opacity:1}[tuiCell] [tuiSubtitle]{display:flex;align-items:center;gap:.25rem;color:var(--tui-text-secondary)}[tuiCell] [tuiTitle]{flex-shrink:7;margin-inline-end:auto;align-items:normal;text-align:left}[tuiCell] [tuiTitle]~[tuiTitle]{flex-shrink:3;margin-inline-end:0;text-align:right;align-items:flex-end}[tuiCell] [tuiTitle]~[tuiTitle][tuiFade]{align-items:flex-start}[tuiCell] tui-badge-notification[data-size=xs]{position:absolute;top:50%;transform:translateY(-50%);left:-.625rem}[tuiCell][data-size=s]{--t-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem}[tuiCell][data-size=s] [tuiTitle]{max-height:100%;font:var(--tui-font-text-ui-s);gap:0}[tuiCell][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=s]>*:not(:first-child),[tuiCell][data-size=s]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.5rem}[tuiCell][data-size=s]>tui-avatar,[tuiCell][data-size=s]>tui-avatar-stack tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 1.5rem;font:var(--tui-font-text-m);font-size:.5625rem}[tuiCell][data-size=m]{--t-height: calc(var(--tui-height-m) - .75rem);--t-padding: .375rem 1rem}[tuiCell][data-size=m] [tuiTitle]{font:var(--tui-font-text-ui-s);gap:.125rem}[tuiCell][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=m]>*:not(:first-child),[tuiCell][data-size=m]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.75rem}[tuiCell][data-size=m]>tui-avatar,[tuiCell][data-size=m]>tui-avatar-stack tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2rem}[tuiCell][data-size=l]{--t-height: calc(var(--tui-height-l) - 1rem);--t-padding: .5rem 1rem}[tuiCell][data-size=l]>*:not(:first-child),[tuiCell][data-size=l]>[tuiAccessories]>*:not(:first-child){margin-inline-start:1rem}[tuiCell][data-size=l]>tui-avatar,[tuiCell][data-size=l]>tui-avatar-stack tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}[tuiCell]:hover [tuiCellActions]~*{opacity:0}[tuiCell]:hover [tuiCellActions] button,[tuiCell]:hover [tuiCellActions] a{opacity:1}[tuiOption] [tuiCell],tui-primitive-textfield [tuiCell]{padding:0}@media (hover: hover) and (pointer: fine){a[tuiCell]:not([tuiSurface]):hover,button[tuiCell]:not([tuiSurface]):hover{background:var(--tui-background-neutral-1);cursor:pointer}} +import{G as K,ba as zt,ca as Ft,da as Ht,ea as Et,ga as Yt,ha as $t}from"./chunk-GGY6MJXK.js";import{Ab as ft,B as it,Bb as $,Cb as N,Da as ct,Db as gt,Eb as _,Ga as Q,Gb as x,Ia as dt,Jc as vt,L as j,Ld as B,Ne as wt,Ob as S,Pb as L,Qa as r,Rb as _t,Ta as E,Td as Ot,Ud as It,Va as ut,Vb as G,W as nt,Wb as Z,We as At,X as ot,Ya as Y,cf as Nt,da as at,db as p,eb as b,fb as c,fd as yt,g as et,gb as g,hb as M,ja as m,jd as Ct,kd as bt,l as z,mb as h,nb as d,ob as y,od as X,pa as T,pb as O,qb as I,qd as Mt,r as F,ra as C,rd as Pt,s as H,sb as ht,te as Lt,ud as Tt,vb as W,vc as R,wb as l,wc as k,xa as rt,xb as pt,xe as St,ya as st,yb as mt,yc as xt,ye as Dt,za as lt,zb as q}from"./chunk-SY4TDKKS.js";import{a as A,b as V}from"./chunk-HFDGAYQF.js";function Wt(t){let e=String(t),[n,i]=e.split("e-"),o=e;if(i){let[,a]=n.split("."),u=Number(i)+((a==null?void 0:a.length)||0);o=t.toFixed(u)}return o}function qt(t,e){let[,n=""]=Wt(t).split(".");return Ct(e)?n.slice(0,Math.max(0,e)):n}function Be(t,e={}){let{precision:n,decimalSeparator:i,thousandSeparator:o,decimalMode:a,rounding:u}=A(V(A({},wt),{decimalMode:"always",precision:1/0}),e),s=Number.isFinite(n)?Tt({value:t,precision:n,method:u}):t,f=String(Math.floor(Math.abs(s))),v=qt(s,n),U=Number(v)>0;if(Number.isFinite(n))if(a==="always"||U&&a==="pad"){let P=Math.max(n-v.length,0),Qt="0".repeat(P);v=`${v}${Qt}`}else v=v.replace(/0*$/,"");let jt=f.length%3,w=(t<0?It:"")+f.charAt(0);for(let P=1;P3&&(w+=o),w+=f.charAt(P);return v?w+i+v:w}function Ue(t){if(t==="")return"";let e=0;for(let a=0;a{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-cell"],standalone:!0,features:[L],decls:0,vars:0,template:function(o,a){},styles:[`[tuiCell]{--tui-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;box-sizing:content-box;isolation:isolate;color:var(--tui-text-primary);padding:var(--t-padding);min-height:var(--t-height)}[tuiCell]:disabled{pointer-events:none}[tuiCell] [tuiAccessories]{position:relative;display:flex;max-height:var(--t-height);align-items:center;align-self:stretch}[tuiCell] [tuiCellActions]{position:absolute;right:0;z-index:1;padding-right:inherit}[tuiCell] [tuiCellActions]~*{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}[tuiCell] [tuiCellActions] button,[tuiCell] [tuiCellActions] a{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:0}[tuiCell] [tuiCellActions] button:focus-visible,[tuiCell] [tuiCellActions] a:focus-visible{opacity:1}[tuiCell] [tuiSubtitle]{display:flex;align-items:center;gap:.25rem;color:var(--tui-text-secondary)}[tuiCell] [tuiTitle]{flex-shrink:7;margin-inline-end:auto;align-items:normal;text-align:left}[tuiCell] [tuiTitle]~[tuiTitle]{flex-shrink:3;margin-inline-end:0;text-align:right;align-items:flex-end}[tuiCell] [tuiTitle]~[tuiTitle][tuiFade]{align-items:flex-start}[tuiCell] tui-badge-notification[data-size=xs]{position:absolute;top:50%;transform:translateY(-50%);left:-.625rem}[tuiCell][data-size=s]{--t-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem}[tuiCell][data-size=s] [tuiTitle]{max-height:100%;font:var(--tui-font-text-ui-s);gap:0}[tuiCell][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=s]>*:not(:first-child),[tuiCell][data-size=s]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.5rem}[tuiCell][data-size=s]>tui-avatar,[tuiCell][data-size=s]>tui-avatar-stack tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 1.5rem;font:var(--tui-font-text-m);font-size:.5625rem}[tuiCell][data-size=m]{--t-height: calc(var(--tui-height-m) - .75rem);--t-padding: .375rem 1rem}[tuiCell][data-size=m] [tuiTitle]{font:var(--tui-font-text-ui-s);gap:.125rem}[tuiCell][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=m]>*:not(:first-child),[tuiCell][data-size=m]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.75rem}[tuiCell][data-size=m]>tui-avatar,[tuiCell][data-size=m]>tui-avatar-stack tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2rem}[tuiCell][data-size=l]{--t-height: calc(var(--tui-height-l) - 1rem);--t-padding: .5rem 1rem}[tuiCell][data-size=l]>*:not(:first-child),[tuiCell][data-size=l]>[tuiAccessories]>*:not(:first-child){margin-inline-start:1rem}[tuiCell][data-size=l]>tui-avatar,[tuiCell][data-size=l]>tui-avatar-stack tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}[tuiCell]:hover [tuiCellActions]~*{opacity:0}[tuiCell]:hover [tuiCellActions] button,[tuiCell]:hover [tuiCellActions] a{opacity:1}[tuiOption] [tuiCell],tui-primitive-textfield [tuiCell]{padding:0}@media (hover: hover) and (pointer: fine){a[tuiCell]:not([tuiSurface]):hover,button[tuiCell]:not([tuiSurface]):hover{background:var(--tui-background-neutral-1);cursor:pointer}} `],encapsulation:2,changeDetection:0});let t=e;return t})(),Ge=(()=>{let e=class e{constructor(){this.nothing=Mt(Gt),this.size=""}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiCell","",5,"ng-template"]],hostAttrs:["tuiCell",""],hostVars:1,hostBindings:function(o,a){o&2&&b("data-size",a.size||"l")},inputs:{size:[0,"tuiCell","size"]},standalone:!0,features:[S([Nt({size:"s"}),At({size:"s"})])]});let t=e;return t})();var Zt=65536,J=class{constructor(e){this.$implicit=e}},Rt=(()=>{let e=class e{constructor(){this.viewContainer=m(Y),this.templateRef=m(E)}set tuiRepeatTimesOf(i){let o=Math.floor(Pt(i,0,Zt)),{length:a}=this.viewContainer;i"dashed";var ge=()=>"solid";var ri=(()=>{let e=class e{constructor(){this.axisX="solid",this.axisXLabels=[],this.axisY="solid",this.axisYInset=!1,this.axisYLabels=[],this.axisYName="",this.axisYSecondaryInset=!1,this.axisYSecondaryLabels=[],this.axisYSecondaryName="",this.horizontalLines=0,this.horizontalLinesHandler=ge,this.verticalLines=0,this.verticalLinesHandler=fe}get hasXLabels(){return!!this.axisXLabels.length}get hasYLabels(){return!!this.axisYLabels.length&&!this.axisYInset||!!this.axisYName}get hasYSecondaryLabels(){return!!this.axisYSecondaryLabels.length&&!this.axisYSecondaryInset||!!this.axisYSecondaryName}fallback(i){return i||Ot}get centeredXLabels(){return this.axisY==="none"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["tui-axes"]],hostVars:2,hostBindings:function(o,a){o&2&&M("_centered",a.centeredXLabels)},inputs:{axisX:"axisX",axisXLabels:"axisXLabels",axisY:"axisY",axisYInset:"axisYInset",axisYLabels:"axisYLabels",axisYName:"axisYName",axisYSecondaryInset:"axisYSecondaryInset",axisYSecondaryLabels:"axisYSecondaryLabels",axisYSecondaryName:"axisYSecondaryName",horizontalLines:"horizontalLines",horizontalLinesHandler:"horizontalLinesHandler",verticalLines:"verticalLines",verticalLinesHandler:"verticalLinesHandler"},standalone:!0,features:[L],ngContentSelectors:Kt,decls:13,vars:11,consts:[["class","t-side",3,"t-side_padding",4,"ngIf"],[1,"t-wrapper"],[1,"t-grid"],[1,"t-vertical"],["automation-id","tui-axex__vertical-line","class","t-line t-line_vertical",3,"borderRightStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-horizontal"],["automation-id","tui-axex__horizontal-line","class","t-line",3,"borderTopStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["class","t-labels-y t-labels-y_inset",4,"ngIf"],["class","t-labels-y t-labels-y_inset t-labels-y_inset_secondary",4,"ngIf"],[1,"t-content"],["class","t-labels-x",4,"ngIf"],[1,"t-side"],["automation-id","tui-axex__axis-y-name","class","t-name t-name_primary",4,"ngIf"],["class","t-labels-y t-labels-y_primary",4,"ngIf"],["automation-id","tui-axex__axis-y-name",1,"t-name","t-name_primary"],[1,"t-labels-y","t-labels-y_primary"],["automation-id","tui-axex__axis-y-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-label",1,"t-label-y"],["automation-id","tui-axex__vertical-line",1,"t-line","t-line_vertical"],["automation-id","tui-axex__horizontal-line",1,"t-line"],[1,"t-labels-y","t-labels-y_inset"],[1,"t-labels-y","t-labels-y_inset","t-labels-y_inset_secondary"],["automation-id","tui-axex__axis-y-secondary-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-secondary-label",1,"t-label-y"],[1,"t-labels-x"],["automation-id","tui-axex__axis-x-label","class","t-label-x",3,"t-label-x_transparent",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-x-label",1,"t-label-x"],["class","t-labels-y t-labels-y_secondary",4,"ngIf"],["automation-id","tui-axex__axis-y-secondary-name","class","t-name",4,"ngIf"],[1,"t-labels-y","t-labels-y_secondary"],["automation-id","tui-axex__axis-y-secondary-name",1,"t-name"]],template:function(o,a){o&1&&(pt(),p(0,ie,3,4,"div",0),h(1,"div",1)(2,"div",2)(3,"div",3),p(4,ne,1,2,"div",4),d(),h(5,"div",5),p(6,oe,1,2,"div",6),d(),p(7,re,2,1,"div",7)(8,le,2,1,"div",8),h(9,"div",9),mt(10),d()(),p(11,de,2,1,"div",10),d(),p(12,me,3,4,"div",0)),o&2&&(c("ngIf",a.hasYLabels),r(2),g("border-bottom-style",a.axisX)("border-left-style",a.axisY),r(2),c("tuiRepeatTimesOf",a.verticalLines),r(2),c("tuiRepeatTimesOf",a.horizontalLines),r(),c("ngIf",a.axisYInset),r(),c("ngIf",a.axisYSecondaryInset),r(3),c("ngIf",a.hasXLabels),r(),c("ngIf",a.hasYSecondaryLabels))},dependencies:[k,R,Rt],styles:['[_nghost-%COMP%]{display:flex}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex:1;height:100%;flex-direction:column}.t-grid[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-border-normal);isolation:isolate}.t-horizontal[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}._centered[_nghost-%COMP%] .t-vertical[_ngcontent-%COMP%]:after{content:"";display:block;flex:1 0 1px}.t-line[_ngcontent-%COMP%]{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-border-normal)}._centered[_nghost-%COMP%] .t-line_vertical[_ngcontent-%COMP%]:first-child{flex:1 0 1px;pointer-events:none}.t-side[_ngcontent-%COMP%]{display:flex;align-items:stretch}.t-side_padding[_ngcontent-%COMP%]{padding-bottom:2rem}.t-name[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-secondary)}.t-name_primary[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-labels-y[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-secondary)}.t-labels-y_primary[_ngcontent-%COMP%]{text-align:right;padding-right:.75rem}.t-labels-y_secondary[_ngcontent-%COMP%]{padding-left:.75rem}.t-labels-y_transparent[_ngcontent-%COMP%]{border-color:transparent}.t-labels-y_inset[_ngcontent-%COMP%]{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary[_ngcontent-%COMP%]{left:auto;right:.25rem;text-align:right}.t-labels-x[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-secondary)}.t-label-x[_ngcontent-%COMP%]{height:.4375rem;border-left:1px solid var(--tui-border-normal);flex:1;margin-bottom:1.5625rem}.t-label-x[_ngcontent-%COMP%]:before{content:"";display:block;height:.5625rem}.t-label-x_transparent[_ngcontent-%COMP%]{border-color:transparent}._centered[_nghost-%COMP%] .t-label-x[_ngcontent-%COMP%]{height:2rem;text-align:center;border:none;margin:0}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:last-child:not(:first-child){flex:.5;text-align:right;border-left:none}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:nth-last-child(2){flex:.5}.t-label-y[_ngcontent-%COMP%]:first-child{margin-bottom:-.375rem}.t-label-y[_ngcontent-%COMP%]:last-child{margin-top:-.375rem}.t-content[_ngcontent-%COMP%]{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}'],changeDetection:0});let t=e;return t})();function _e(t,e){let n=e[0]-t[0],i=e[1]-t[1];return Math.atan2(i,n)}function xe(t,e){let n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n**2+i**2)}function kt(t,e,n,i=!1,o=.2){let a=e||t,u=n||t,s=_e(a,u)+(i?Math.PI:0),f=xe(a,u)*o,v=t[0]+Math.cos(s)*f,U=t[1]+Math.sin(s)*f;return[v,U]}function ve(t,e,n){let[i,o]=kt(t[e-1],t[e-2],t[e],!1,n),[a,u]=kt(t[e],t[e-1],t[e+1],!0,n);return`C ${i},${o} ${a},${u} ${t[e][0]},${t[e][1]}`}function ye(t){return`L ${t}`}var Ce=500;function Xt(t,e,n){return n?ve(t,e,n/Ce):ye([t[e][0],t[e][1]])}var tt=class{constructor(e){this.internalDirectiveInstance=e}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},Bt=(()=>{let e=class e{constructor(){m(Y).createEmbeddedView(m(E),new tt(this))}static ngTemplateContextGuard(i,o){return!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"},standalone:!0});let t=e;return t})();var be="tui_",Ut=(()=>{let e=class e{generate(){return`${be}${e.autoId++}${Date.now()}`}};e.autoId=0,e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Me=(t,e)=>({$implicit:t,index:e});function Pe(t,e){if(t&1&&y(0,"div",10),t&2){let n=e.$implicit,i=l(3);g("bottom",i.getBottom(n[1]),"%")("left",i.getLeft(n[0]),"%")}}function Te(t,e){if(t&1&&(O(0),p(1,Pe,1,4,"div",9),I()),t&2){let n=l(2);r(),c("ngForOf",n.value)}}function Oe(t,e){if(t&1){let n=ht();h(0,"div",14),G(1,"async"),W("mouseenter",function(){rt(n);let o=l().index,a=l(3);return st(a.onMouseEnter(o))}),y(2,"div",15)(3,"div",16,0),d()}if(t&2){let n=gt(4),i=l(),o=i.$implicit,a=i.index,u=l(2).tuiLet,s=l();g("left",s.getLeft(s.getX(a)),"%")("width",s.getWidth(a),"%"),M("t-column_hint_hovered",Z(1,20,s.drivers.get(a)))("t-column_hovered",u===a),c("tuiHint",(s.hintDirective==null?null:s.hintDirective.hint)||s.hintContent)("tuiHintContext",_t(22,Me,s.getImplicit(o),a))("tuiHintDescribe",s.isFocusable?s.getHintId(a):null)("tuiHintHost",n),r(2),g("left",s.getOffset(a),"%"),r(),g("bottom",s.getBottom(o[1]),"%")("left",s.getOffset(a),"%"),c("id",s.getHintId(a))("tabIndex",s.isFocusable?0:-1)}}function Ie(t,e){if(t&1&&y(0,"div",17),t&2){let n=l().$implicit,i=l(3);g("bottom",i.getBottom(n[1]),"%")}}function Le(t,e){if(t&1&&(O(0),p(1,Oe,5,25,"div",12)(2,Ie,1,2,"div",13),I()),t&2){let n=l(3);r(),c("ngIf",n.value.length>1||n.dots),r(),c("ngIf",n.isFocusable)}}function Se(t,e){if(t&1&&(O(0),p(1,Le,3,2,"ng-container",11),I()),t&2){let n=l(2);r(),c("ngForOf",n.value)}}function De(t,e){if(t&1&&(h(0,"div",20),_(1),d()),t&2){let n=l().ngIf,i=l(2);g("left",i.getLeft(n[0]),"%"),r(),x(" ",i.xStringify(n[0])," ")}}function we(t,e){if(t&1&&(h(0,"div",21),_(1),d()),t&2){let n=l().ngIf,i=l(2);g("bottom",i.getBottom(n[1]),"%"),r(),x(" ",i.yStringify(n[1])," ")}}function Ae(t,e){if(t&1&&(O(0),p(1,De,2,3,"div",18)(2,we,2,3,"div",19),I()),t&2){let n=l(2);r(),c("ngIf",n.xStringify),r(),c("ngIf",n.yStringify)}}function ze(t,e){if(t&1&&(O(0),lt(),h(1,"svg",2)(2,"defs")(3,"linearGradient",3),y(4,"stop",4)(5,"stop",5),d()(),y(6,"path",6)(7,"path",7),d(),p(8,Te,2,1,"ng-container",8)(9,Se,2,1,"ng-container",8)(10,Ae,3,2,"ng-container",8),I()),t&2){let n=e.tuiLet,i=l();r(),b("viewBox",i.viewBox),r(2),b("id",i.fillId),r(3),b("d",i.fillD)("fill",i.fill),r(),b("d",i.d),r(),c("ngIf",i.dots),r(),c("ngIf",i.hasHints),r(),c("ngIf",i.getHovered(n))}}var Fe={dots:!1,filled:!1,smoothingFactor:0},He=yt(Fe);var Ee=(()=>{let e=class e{constructor(){this.charts=B,this.chartsRef=B,this.renderer=m(ut),this.destroyRef=m(ct),this.zone=m(Q),this.hovered$=m(K)}ngAfterViewInit(){H([Ye(this.charts),this.hovered$]).pipe(it(i=>!i.some(Boolean)),St(this.zone),vt(this.destroyRef)).subscribe(()=>{this.charts.forEach(i=>i.onHovered(NaN))})}getContext(i,o){return this.computeContext(...this.charts.map(({value:a})=>a))[i]}raise(i,o){let a=this.charts.map(s=>s.value[i]),u=[...a].sort((s,f)=>s[1]-f[1]);this.charts.forEach(s=>s.onHovered(i)),this.chartsRef.forEach(({nativeElement:s},f)=>this.renderer.setStyle(s,"z-index",u.indexOf(a[f])))}computeContext(...i){return(i[0]||[]).map((o,a)=>i.map(u=>u[a]))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(o,a,u){if(o&1&&(q(u,Vt,4),q(u,Vt,4,dt)),o&2){let s;$(s=N())&&(a.charts=s),$(s=N())&&(a.chartsRef=s)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[S([K])]});let t=e;return z([X],t.prototype,"computeContext",null),t})();function Ye(t){return H(t.map(({drivers:e})=>Lt(e).pipe(F(n=>n.map(i=>i.pipe(nt(!1))))))).pipe(F(e=>e.reduce((n,i)=>n.concat(i),[])),ot(e=>H(e)),F(e=>e.some(Boolean)),j())}var Vt=(()=>{let e=class e{constructor(){this.zone=m(Q),this.options=m(He),this.hover$=new et,this.autoIdString=m(Ut).generate(),this.hintDirective=m(Ee,{optional:!0}),this.hintOptions=m(Ft,{optional:!0}),this.drivers=B,this.x=0,this.y=0,this.width=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.filled=this.options.filled,this.dots=this.options.dots,this.value=[]}set valueSetter(i){this.value=i.filter(o=>!o.some(Number.isNaN))}onHovered(i){this.hover$.next(i)}get hovered$(){return this.hover$.pipe(j(),Dt(this.zone))}get hintContent(){var i;return((i=this.hintOptions)==null?void 0:i.content)||""}get fillId(){return`tui-line-chart-${this.autoIdString}`}get fill(){return this.filled?`url(#${this.fillId})`:"none"}get viewBox(){return`${this.x} ${this.y} ${this.width} ${this.height}`}get d(){return this.getD(this.value,this.smoothingFactor)}get fillD(){return this.value.length?`${this.d}V ${this.y} H ${this.value[0][0]} V ${this.value[0][1]}`:this.d}get isFocusable(){return!this.hintDirective&&this.hasHints}get hasHints(){var i;return!!this.xStringify||!!this.yStringify||!!((i=this.hintDirective)!=null&&i.hint)||!!this.hintContent}onMouseLeave(){this.hintDirective||this.onHovered(NaN)}getX(i){return this.isSinglePoint?this.value[0][0]/2:i?(this.value[i-1][0]+this.value[i][0])/2:2*this.value[0][0]-this.getX(1)}getWidth(i){return 100*this.computeWidth(i)/this.width}getHintId(i){return`${this.autoIdString}_${i}`}getImplicit(i){var o;return((o=this.hintDirective)==null?void 0:o.getContext(this.value.indexOf(i),this))||i}getHovered(i){return bt(i)&&Number.isInteger(i)?this.value[i]:null}getBottom(i){return 100*(i-this.y)/this.height}getLeft(i){return 100*(i-this.x)/this.width}getOffset(i){return 100*(this.value[i][0]-this.getX(i))/this.computeWidth(i)}onMouseEnter(i){this.hintDirective?this.hintDirective.raise(i,this):this.onHovered(i)}get isSinglePoint(){return this.value.length===1}getD(i,o){return i.reduce((a,u,s)=>s?`${a} ${Xt(i,s,o)}`:`M ${u}`,"")}computeWidth(i){return i===this.value.length-1?2*(this.value[i][0]-this.getX(i)):this.getX(i+1)-this.getX(i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["tui-line-chart"]],viewQuery:function(o,a){if(o&1&&ft(Ht,5),o&2){let u;$(u=N())&&(a.drivers=u)}},hostBindings:function(o,a){o&1&&W("mouseleave",function(){return a.onMouseLeave()})},inputs:{x:"x",y:"y",width:"width",height:"height",smoothingFactor:"smoothingFactor",xStringify:"xStringify",yStringify:"yStringify",filled:"filled",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[S([],[zt({direction:"top",hideDelay:0})]),L],decls:2,vars:3,consts:[["hintHost",""],[4,"tuiLet"],["focusable","false","height","100%","preserveAspectRatio","none","width","100%","xmlns","http://www.w3.org/2000/svg",1,"t-svg"],["x1","0","x2","0","y1","1","y2","0"],["offset","0%","stop-color","currentColor","stop-opacity","0.5"],["offset","100%","stop-color","currentColor","stop-opacity","0"],["stroke","none"],["fill","none","stroke","currentColor","stroke-width","2","vector-effect","non-scaling-stroke"],[4,"ngIf"],["class","t-dot",3,"bottom","left",4,"ngFor","ngForOf"],[1,"t-dot"],[4,"ngFor","ngForOf"],["class","t-column",3,"t-column_hint_hovered","t-column_hovered","left","width","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter",4,"ngIf"],["class","t-line t-line_horizontal",3,"bottom",4,"ngIf"],[1,"t-column",3,"mouseenter","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-line","t-line_vertical"],[1,"t-host",3,"id","tabIndex"],[1,"t-line","t-line_horizontal"],["class","t-hint t-hint_x",3,"left",4,"ngIf"],["class","t-hint t-hint_y",3,"bottom",4,"ngIf"],[1,"t-hint","t-hint_x"],[1,"t-hint","t-hint_y"]],template:function(o,a){o&1&&(p(0,ze,11,8,"ng-container",1),G(1,"async")),o&2&&c("tuiLet",Z(1,1,a.hovered$))},dependencies:[Bt,xt,k,Et,Yt,$t,R],styles:['[_nghost-%COMP%]{display:flex;width:100%;height:100%;pointer-events:none}.t-svg[_ngcontent-%COMP%]{transform:scaleY(-1)}.t-column[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot[_ngcontent-%COMP%]{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem #0000001a;outline:none;pointer-events:none}.t-host[_ngcontent-%COMP%]:focus, .t-column_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%], .t-column[_ngcontent-%COMP%]:hover .t-host[_ngcontent-%COMP%], .t-column_hint_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%]{opacity:1}.t-line[_ngcontent-%COMP%]{position:absolute;opacity:0;background:var(--tui-border-normal)}.t-line_vertical[_ngcontent-%COMP%]{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal[_ngcontent-%COMP%]{z-index:-1;width:100%;height:1px}[style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%]{opacity:1}.t-hint[_ngcontent-%COMP%]{position:absolute;box-shadow:var(--tui-shadow-small);font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-text-primary);background:var(--tui-background-base);transform:translate3d(-50%,0,0)}.t-hint_x[_ngcontent-%COMP%]{bottom:0}.t-hint_y[_ngcontent-%COMP%]{left:0}'],changeDetection:0});let t=e;return z([X],t.prototype,"hovered$",null),z([X],t.prototype,"getD",null),t})();export{Be as a,Ue as b,Ut as c,Bt as d,Rt as e,Ge as f,ri as g,He as h,Ee as i,Ye as j,Vt as k}; diff --git a/chunk-OGZW3WSL.js b/chunk-LRHNK5IW.js similarity index 97% rename from chunk-OGZW3WSL.js rename to chunk-LRHNK5IW.js index c297f00f5..d69f21d4f 100644 --- a/chunk-OGZW3WSL.js +++ b/chunk-LRHNK5IW.js @@ -1,4 +1,4 @@ -import{a as ht,m as wt}from"./chunk-ZWLMTOCV.js";import{e as E,f as _}from"./chunk-WYE4JZFG.js";import{$ as j,C as lt,F as mt,O as L,P as B,Q as A,T as gt,V as ft,Y as vt,a as et,ba as yt,ea as M}from"./chunk-HYP3ZPSI.js";import{$a as P,Ab as z,Bb as T,Be as F,Cb as C,Da as V,Ed as dt,Jc as it,Ke as ut,Lc as nt,Ob as f,Pb as p,Qa as h,Ta as k,Ue as pt,We as D,Xe as ct,Za as q,bf as xt,cf as bt,db as w,eb as $,ef as Q,fb as l,fd as ot,gb as W,hb as y,hc as J,id as at,ja as r,kc as K,mb as x,md as rt,nb as b,nd as st,pa as d,pb as X,qb as Z,ra as v,rb as I,vb as H,wb as N,wc as Y,xb as u,xc as tt,y as U,yb as s,zb as S}from"./chunk-XSFATUKW.js";import{a as R,b as G}from"./chunk-HFDGAYQF.js";var _t=["wrapper"],Dt=["*"];function At(i,t){if(i&1&&(x(0,"tui-loader",4),I(1,5),b()),i&2){let c=N(2);l("overlay",!0)("showLoader",c.loading),h(),l("ngTemplateOutlet",c.content)}}function Mt(i,t){if(i&1&&(X(0),s(1),w(2,At,2,3,"tui-loader",3),Z()),i&2){let c=N();h(2),l("ngIf",c.async)("ngIfElse",c.content)}}var Ot=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiExpandContent",""]],standalone:!0});let i=t;return i})(),a={Idle:0,Loading:1,Prepared:2,Animated:3},kt=48;var ne=(()=>{let t=class t{constructor(){this.cdr=r(J),this.destroyRef=r(V),this.state=a.Idle,this.content=null,this.expanded=null,this.async=!1}set expandedSetter(n){if(this.expanded===null){this.expanded=n;return}if(this.state!==a.Idle){this.expanded=n,this.state=a.Animated;return}this.expanded=n,this.retrigger(this.async&&n?a.Loading:a.Animated)}get contentVisible(){return this.expanded||this.state!==a.Idle}get overflow(){return this.state!==a.Idle}get loading(){return!!this.expanded&&this.async&&this.state===a.Loading}get height(){let{expanded:n,state:e,contentWrapper:o}=this;return n&&e===a.Prepared||!n&&e===a.Animated?0:o&&(!n&&e===a.Prepared||n&&e===a.Animated)?o.nativeElement.offsetHeight:o&&n&&e===a.Loading?Math.max(o.nativeElement.offsetHeight,kt):null}onTransitionEnd({propertyName:n,pseudoElement:e}){n==="opacity"&&!e&&this.state===a.Animated&&(this.state=a.Idle)}onExpandLoaded(n){n.stopPropagation(),this.state===a.Loading&&this.retrigger(a.Animated)}retrigger(n){this.state=a.Prepared,U(0).pipe(it(this.destroyRef)).subscribe(()=>{this.state===a.Prepared&&(this.state=n,this.cdr.markForCheck())})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["tui-expand"]],contentQueries:function(e,o,m){if(e&1&&S(m,Ot,5,k),e&2){let g;T(g=C())&&(o.content=g.first)}},viewQuery:function(e,o){if(e&1&&z(_t,5),e&2){let m;T(m=C())&&(o.contentWrapper=m.first)}},hostVars:9,hostBindings:function(e,o){e&1&&H("transitionend.self",function(g){return o.onTransitionEnd(g)})("tui-expand-loaded",function(g){return o.onExpandLoaded(g)}),e&2&&($("aria-expanded",o.expanded),W("height",o.height,"px"),y("_expanded",o.expanded)("_overflow",o.overflow)("_loading",o.loading))},inputs:{async:"async",expandedSetter:[0,"expanded","expandedSetter"]},standalone:!0,features:[p],ngContentSelectors:Dt,decls:3,vars:3,consts:[["wrapper",""],[1,"t-wrapper"],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(e,o){e&1&&(u(),x(0,"div",1,0),w(2,Mt,3,2,"ng-container",2),b()),e&2&&(l("@tuiParentAnimation",void 0)("@.disabled",o.overflow),h(2),l("ngIf",o.contentVisible))},dependencies:[ht,Y,tt],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translateZ(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[et]},changeDetection:0});let i=t;return i})();var Nt={size:"m"},Pt=ot(Nt);function Tt(i){return st(Pt,i,Nt)}var It=["tuiNavigationAside",""],Ht=[[["header"]],"*",[["footer"]]],St=["header","*","footer"];var O=["*"];var zt=["tuiNavigationHeader",""],Et=["tuiNavigationLogo",""],Ft=["tuiNavigationMain",""],Lt=["tuiNavigationNav",""],Bt=(()=>{let t=class t{constructor(){this.expanded=q(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(e,o){e&2&&y("_expanded",o.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[f([D({size:"s",appearance:"flat"}),B({appearance:"dropdown-navigation",align:"right",offset:12})]),p],attrs:It,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(e,o){e&1&&(u(Ht),s(0),x(1,"tui-scrollbar",0)(2,"div",1),s(3,1),b()(),s(4,2))},dependencies:[lt,xt,mt],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} +import{a as ht,m as wt}from"./chunk-AIAQHW2T.js";import{$ as j,C as lt,F as mt,O as L,P as B,Q as A,T as gt,V as ft,Y as vt,a as et,ba as yt,ea as M}from"./chunk-GGY6MJXK.js";import{e as E,f as _}from"./chunk-UPKNOQ5B.js";import{$a as P,Ab as z,Bb as T,Be as F,Cb as C,Da as V,Ed as dt,Jc as it,Ke as ut,Lc as nt,Ob as f,Pb as p,Qa as h,Ta as k,Ue as pt,We as D,Xe as ct,Za as q,bf as xt,cf as bt,db as w,eb as $,ef as Q,fb as l,fd as ot,gb as W,hb as y,hc as J,id as at,ja as r,kc as K,mb as x,md as rt,nb as b,nd as st,pa as d,pb as X,qb as Z,ra as v,rb as I,vb as H,wb as N,wc as Y,xb as u,xc as tt,y as U,yb as s,zb as S}from"./chunk-SY4TDKKS.js";import{a as R,b as G}from"./chunk-HFDGAYQF.js";var _t=["wrapper"],Dt=["*"];function At(i,t){if(i&1&&(x(0,"tui-loader",4),I(1,5),b()),i&2){let c=N(2);l("overlay",!0)("showLoader",c.loading),h(),l("ngTemplateOutlet",c.content)}}function Mt(i,t){if(i&1&&(X(0),s(1),w(2,At,2,3,"tui-loader",3),Z()),i&2){let c=N();h(2),l("ngIf",c.async)("ngIfElse",c.content)}}var Ot=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiExpandContent",""]],standalone:!0});let i=t;return i})(),a={Idle:0,Loading:1,Prepared:2,Animated:3},kt=48;var ne=(()=>{let t=class t{constructor(){this.cdr=r(J),this.destroyRef=r(V),this.state=a.Idle,this.content=null,this.expanded=null,this.async=!1}set expandedSetter(n){if(this.expanded===null){this.expanded=n;return}if(this.state!==a.Idle){this.expanded=n,this.state=a.Animated;return}this.expanded=n,this.retrigger(this.async&&n?a.Loading:a.Animated)}get contentVisible(){return this.expanded||this.state!==a.Idle}get overflow(){return this.state!==a.Idle}get loading(){return!!this.expanded&&this.async&&this.state===a.Loading}get height(){let{expanded:n,state:e,contentWrapper:o}=this;return n&&e===a.Prepared||!n&&e===a.Animated?0:o&&(!n&&e===a.Prepared||n&&e===a.Animated)?o.nativeElement.offsetHeight:o&&n&&e===a.Loading?Math.max(o.nativeElement.offsetHeight,kt):null}onTransitionEnd({propertyName:n,pseudoElement:e}){n==="opacity"&&!e&&this.state===a.Animated&&(this.state=a.Idle)}onExpandLoaded(n){n.stopPropagation(),this.state===a.Loading&&this.retrigger(a.Animated)}retrigger(n){this.state=a.Prepared,U(0).pipe(it(this.destroyRef)).subscribe(()=>{this.state===a.Prepared&&(this.state=n,this.cdr.markForCheck())})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["tui-expand"]],contentQueries:function(e,o,m){if(e&1&&S(m,Ot,5,k),e&2){let g;T(g=C())&&(o.content=g.first)}},viewQuery:function(e,o){if(e&1&&z(_t,5),e&2){let m;T(m=C())&&(o.contentWrapper=m.first)}},hostVars:9,hostBindings:function(e,o){e&1&&H("transitionend.self",function(g){return o.onTransitionEnd(g)})("tui-expand-loaded",function(g){return o.onExpandLoaded(g)}),e&2&&($("aria-expanded",o.expanded),W("height",o.height,"px"),y("_expanded",o.expanded)("_overflow",o.overflow)("_loading",o.loading))},inputs:{async:"async",expandedSetter:[0,"expanded","expandedSetter"]},standalone:!0,features:[p],ngContentSelectors:Dt,decls:3,vars:3,consts:[["wrapper",""],[1,"t-wrapper"],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(e,o){e&1&&(u(),x(0,"div",1,0),w(2,Mt,3,2,"ng-container",2),b()),e&2&&(l("@tuiParentAnimation",void 0)("@.disabled",o.overflow),h(2),l("ngIf",o.contentVisible))},dependencies:[ht,Y,tt],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translateZ(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[et]},changeDetection:0});let i=t;return i})();var Nt={size:"m"},Pt=ot(Nt);function Tt(i){return st(Pt,i,Nt)}var It=["tuiNavigationAside",""],Ht=[[["header"]],"*",[["footer"]]],St=["header","*","footer"];var O=["*"];var zt=["tuiNavigationHeader",""],Et=["tuiNavigationLogo",""],Ft=["tuiNavigationMain",""],Lt=["tuiNavigationNav",""],Bt=(()=>{let t=class t{constructor(){this.expanded=q(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(e,o){e&2&&y("_expanded",o.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[f([D({size:"s",appearance:"flat"}),B({appearance:"dropdown-navigation",align:"right",offset:12})]),p],attrs:It,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(e,o){e&1&&(u(Ht),s(0),x(1,"tui-scrollbar",0)(2,"div",1),s(3,1),b()(),s(4,2))},dependencies:[lt,xt,mt],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} `],encapsulation:2,changeDetection:0});let i=t;return i})();var jt=(()=>{let t=class t{constructor(){this.el=dt(),this.aside=r(Bt),this.dropdown=r(A,{optional:!0}),this.binding=at(M,"tuiHint",K(()=>{var n;return this.aside.expanded()||this.dropdown?"":(n=this.el.textContent)==null?void 0:n.trim()}))}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiHintAside",""]],standalone:!0,features:[f([yt({direction:"right"})]),P([M])]});let i=t;return i})(),qe=(()=>{let t=class t{constructor(){this.icon=r(F).check,this.icons=r(pt),this.link=r(E,{self:!0,optional:!0}),this.active=nt(r(_).isActiveChange),this.size="s"}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiAsideItem",""]],hostAttrs:["tuiButton","","tuiOption",""],hostVars:6,hostBindings:function(e,o){e&2&&y("_link",o.link)("_active",o.active())("_custom",o.icon!==o.icons.iconEnd)},standalone:!0,features:[f([rt(vt,t),Qt(),Rt()]),P([jt,gt,ft,ct,{directive:_,inputs:["routerLinkActiveOptions","routerLinkActiveOptions"]}])]});let i=t;return i})();function Qt(){return{provide:ut,useFactory:()=>{let{check:i,more:t}=r(F),c=r(j,{optional:!0})&&r(E,{self:!0,optional:!0})?i:"";return r(A,{self:!0,optional:!0})?t:c}}}function Rt(){return{provide:L,useFactory:()=>G(R({},r(L,{skipSelf:!0})),{offset:r(j,{optional:!0})?8:12})}}var $e=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["header","tuiNavigationHeader",""]],hostAttrs:["tuiTheme","dark"],standalone:!0,features:[f([bt({size:"s",appearance:"secondary"}),Tt({size:"xs"}),Q({size:"m",appearance:"primary"}),D({size:"s",appearance:"flat"}),B({appearance:"dropdown-navigation"})]),p],attrs:zt,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`header[tuiNavigationHeader]{--tui-text-action: var(--tui-text-primary);--tui-text-action-hover: var(--tui-text-primary);position:sticky;top:0;z-index:1;display:flex;height:3rem;width:100%;align-items:center;gap:.25rem;padding:.5rem;box-sizing:border-box;font:var(--tui-font-text-s);line-height:1rem;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}header[tuiNavigationHeader] [tuiNavigationLogo]{padding:0 .5rem;margin-inline-start:.25rem}header[tuiNavigationHeader] [tuiNavigationLogo] tui-icon{font-size:1rem}header[tuiNavigationHeader] [tuiButton],header[tuiNavigationHeader] [tuiBadge],header[tuiNavigationHeader] [tuiChip],header[tuiNavigationHeader] tui-badge,header[tuiNavigationHeader] tui-chip{max-width:8rem}header[tuiNavigationHeader] hr{width:2rem;margin:0 0 0 auto;border:none;visibility:hidden;flex-shrink:0}header[tuiNavigationHeader] hr~[tuiButton]{margin-right:.5rem}tui-dropdown[data-appearance=dropdown-navigation]{--tui-text-primary: #fff;--tui-background-neutral-1: rgba(255, 255, 255, .16);border:none;color:var(--tui-text-primary);background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)} `],encapsulation:2,changeDetection:0});let i=t;return i})(),We=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["","tuiNavigationLogo",""]],standalone:!0,features:[p],attrs:Et,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`[tuiNavigationLogo]{display:flex;align-items:center;gap:.5rem;overflow:hidden;white-space:nowrap;font-weight:700} `],encapsulation:2,changeDetection:0});let i=t;return i})(),Xe=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["main","tuiNavigationMain",""]],hostAttrs:["tuiNavigationMain",""],standalone:!0,features:[p],attrs:Ft,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`main[tuiNavigationMain]{transition-property:max-width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;flex:1;padding:0 1.25rem;isolation:isolate;box-sizing:border-box}main[tuiNavigationMain]:before{content:"";position:sticky;top:3rem;z-index:2;display:block;height:3rem;width:calc(100% + 2.5rem);pointer-events:none;margin:0 -1.25rem -3rem;border-radius:1.25rem 1.25rem 0 0;box-shadow:0 -1.25rem var(--tui-theme-color, #000)}main[tuiNavigationMain]>[tuiHeader]{margin:1rem 0 .5rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]{flex-direction:column;gap:1rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]>:last-child:not([tuiTitle]){margin-bottom:.25rem}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiTitle]{max-width:42rem;white-space:nowrap;gap:.375rem;overflow:hidden}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiSubtitle]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;word-break:break-word;font:var(--tui-font-text-s);overflow:hidden}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]{scrollbar-width:none;-ms-overflow-style:none;display:flex;gap:1rem;color:var(--tui-text-tertiary);font:var(--tui-font-text-s);white-space:nowrap;text-transform:none;overflow:auto}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar,main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar-thumb{display:none}main[tuiNavigationMain]>[tuiHeader] [tuiCaption] tui-icon{font-size:1rem;margin:.125rem 0;color:var(--tui-text-secondary)}main[tuiNavigationMain]>[tuiHeader] [tuiAccessories]{margin-inline-start:3rem;gap:.5rem!important}main[tuiNavigationMain]>a:first-child,main[tuiNavigationMain]>button:first-child,main[tuiNavigationMain]>tui-breadcrumbs:first-child{height:1.25rem;padding:0;margin-top:.875rem} diff --git a/chunk-OTLDIZVP.js b/chunk-OTLDIZVP.js new file mode 100644 index 000000000..b440fe49d --- /dev/null +++ b/chunk-OTLDIZVP.js @@ -0,0 +1,2 @@ +import{e as p}from"./chunk-UPKNOQ5B.js";import{a as u,b as g,c as h}from"./chunk-GXKQ5RYX.js";import{Ac as l,Eb as a,Jd as s,Pb as c,Qa as o,gb as t,mb as i,nb as n,pa as m}from"./chunk-SY4TDKKS.js";import"./chunk-HFDGAYQF.js";var T=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=m({type:e,selectors:[["lmb-common-page"]],standalone:!0,features:[c],decls:16,vars:8,consts:[["tuiHeader","l"],["tuiTitle",""],[1,"description"],[1,"row"],["routerLink","/dashboards","tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["routerLink","/theme","tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"]],template:function(r,x){r&1&&(i(0,"header",0)(1,"h2",1),a(2," Taiga Lumbermill "),n()(),i(3,"p",2),a(4,` This project contains a comprehensive set of ready-made templates, dashboards, and pages built using the Taiga UI component library. Our goal is to provide developers with a robust foundation for quickly creating beautiful and functional web applications. +`),n(),i(5,"div",3)(6,"div",4)(7,"div")(8,"header",5)(9,"h2",1),a(10," Dashboards "),n()()()(),i(11,"div",6)(12,"div")(13,"header",5)(14,"h2",1),a(15," Theme generator "),n()()()()()),r&2&&(t("margin-top","1.25rem"),o(),t("text-align","center"),o(8),t("text-align","center"),o(5),t("text-align","center"))},dependencies:[l,p,s,g,h,u],styles:[".description[_ngcontent-%COMP%]{margin-top:.75rem;font-size:.9rem;text-align:center;margin-left:auto;margin-right:auto;max-width:40rem}.row[_ngcontent-%COMP%]{display:flex;margin-top:1.25rem;gap:1.25rem;justify-content:space-between}@media (max-width: 800px){.row[_ngcontent-%COMP%]{flex-direction:column}}.card[_ngcontent-%COMP%]{flex-grow:1}@media (max-width: 800px){.card[_ngcontent-%COMP%]{width:100%}}"],changeDetection:0});let d=e;return d})();export{T as CommonPageComponent}; diff --git a/chunk-PEHBVIRA.js b/chunk-PEHBVIRA.js deleted file mode 100644 index 2152fccef..000000000 --- a/chunk-PEHBVIRA.js +++ /dev/null @@ -1 +0,0 @@ -import{b as a}from"./chunk-5TOW4V3M.js";import"./chunk-ZWLMTOCV.js";import"./chunk-FURPKULB.js";import"./chunk-WYE4JZFG.js";import"./chunk-FKFBZDNU.js";import"./chunk-HYP3ZPSI.js";import"./chunk-M65T2WFK.js";import"./chunk-XSFATUKW.js";import"./chunk-HFDGAYQF.js";export{a as IotComponent}; diff --git a/chunk-XSFATUKW.js b/chunk-SY4TDKKS.js similarity index 91% rename from chunk-XSFATUKW.js rename to chunk-SY4TDKKS.js index ffe2fd7e0..0f14e8fcb 100644 --- a/chunk-XSFATUKW.js +++ b/chunk-SY4TDKKS.js @@ -5,10 +5,10 @@ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` `+t.message,i,n,r),t[ty]=i,t[xo]=null,t}function uy(t,e,n,r=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==ry?t.slice(2):t;let i=ue(e);if(Array.isArray(e))i=e.map(ue).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ue(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ny,` `)}`}var HF=os(ns("Inject",t=>({token:t})),-1),lr=os(ns("Optional"),8),$F=os(ns("Self"),2),ei=os(ns("SkipSelf"),4);function hn(t,e){let n=t.hasOwnProperty(Ao);return n?t[Ao]:null}function cy(t,e,n){if(t.length!==e.length)return!1;for(let r=0;rArray.isArray(n)?ec(n,e):e(n))}function zf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function No(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dy(t,e){let n=[];for(let r=0;re;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function hy(t,e,n){let r=ti(t,e);return r>=0?t[r|1]=n:(r=~r,fy(t,r,e,n)),r}function ka(t,e){let n=ti(t,e);if(n>=0)return t[n|1]}function ti(t,e){return py(t,e,1)}function py(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(je(r))return!1;s=!0}}}}return je(r)||s}function je(t){return(t&1)===0}function Ey(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!je(s)&&(e+=Zd(o,i),i=""),r=s,o=o||!je(r);n++}return i!==""&&(e+=Zd(o,i)),e}function My(t){return t.map(_y).join(",")}function Ty(t){let e=[],n=[],r=1,i=2;for(;r{let e=Xf(t),n=j(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ke.Emulated,styles:t.styles||Ae,_:null,schemas:t.schemas||null,tView:null,id:""});eh(n);let r=t.dependencies;return n.directiveDefs=Kd(r,!1),n.pipeDefs=Kd(r,!0),n.id=Ny(n),n})}function Sy(t){return gt(t)||nc(t)}function Ay(t){return t!==null}function $t(t){return Xr(()=>({type:t.type,bootstrap:t.bootstrap||Ae,declarations:t.declarations||Ae,imports:t.imports||Ae,exports:t.exports||Ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Qd(t,e){if(t==null)return pt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=jt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==jt.None?[r,a]:r,e[o]=s):n[o]=r}return n}function R(t){return Xr(()=>{let e=Xf(t);return eh(e),e})}function ss(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function gt(t){return t[Yv]||null}function nc(t){return t[Zv]||null}function Kf(t){return t[Qv]||null}function xy(t){let e=gt(t)||nc(t)||Kf(t);return e!==null?e.standalone:!1}function Jf(t,e){let n=t[Kv]||null;if(!n&&e===!0)throw new Error(`Type ${ue(t)} does not have '\u0275mod' property.`);return n}function Xf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||pt,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qd(t.inputs,e),outputs:Qd(t.outputs),debugInfo:null}}function eh(t){var e;(e=t.features)==null||e.forEach(n=>n(t))}function Kd(t,e){if(!t)return null;let n=e?Kf:Sy;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(Ay)}function Ny(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function as(t){return{\u0275providers:t}}function Oy(...t){return{\u0275providers:th(!0,t),\u0275fromNgModule:!0}}function th(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return ec(e,s=>{let a=s;tu(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&nh(i,o),n}function nh(t,e){for(let n=0;n{e(o,r)})}}function tu(t,e,n,r){if(t=te(t),!t)return!1;let i=null,o=zd(t),s=!o&>(t);if(!o&&!s){let u=t.ngModule;if(o=zd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)tu(c,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{ec(o.imports,l=>{tu(l,e,n,r)&&(c||(c=[]),c.push(l))})}finally{}c!==void 0&&nh(c,e)}if(!a){let c=hn(i)||(()=>new i);e({provide:i,useFactory:c,deps:Ae},i),e({provide:Wf,useValue:i,multi:!0},i),e({provide:Gr,useValue:()=>N(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;rc(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function rc(t,e){for(let n of t)Uf(n)&&(n=n.\u0275providers),Array.isArray(n)?rc(n,e):e(n)}var Ry=B({provide:String,useValue:B});function rh(t){return t!==null&&typeof t=="object"&&Ry in t}function Fy(t){return!!(t&&t.useExisting)}function Py(t){return!!(t&&t.useFactory)}function Xn(t){return typeof t=="function"}function ky(t){return!!t.useClass}var us=new m(""),Co={},Ly={},La;function cs(){return La===void 0&&(La=new Oo),La}var Ne=class{},qr=class extends Ne{get destroyed(){return this._destroyed}constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ru(e,s=>this.processProvider(s)),this.records.set(Gf,Wn(void 0,this)),i.has("environment")&&this.records.set(Ne,Wn(void 0,this));let o=this.records.get(us);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Wf,Ae,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=P(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=kt(this),r=me(void 0),i;try{return e()}finally{kt(n),me(r)}}get(e,n=zr,r=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Wd))return e[Wd](this);r=is(r);let i,o=kt(this),s=me(void 0);try{if(!(r&L.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=Hy(e)&&rs(e);c&&this.injectableDefInScope(c)?u=Wn(nu(e),Co):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&L.Self?cs():this.parent;return n=r&L.Optional&&n===zr?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[xo]=a[xo]||[]).unshift(ue(e)),o)throw a;return ay(a,e,"R3InjectorError",this.source)}else throw a}finally{me(s),kt(o)}}resolveInjectorInitializers(){let e=P(null),n=kt(this),r=me(void 0),i;try{let o=this.get(Gr,Ae,L.Self);for(let s of o)s()}finally{kt(n),me(r),P(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(ue(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(e){e=te(e);let n=Xn(e)?e:te(e&&e.provide),r=jy(e);if(!Xn(e)&&e.multi===!0){let i=this.records.get(n);i||(i=Wn(void 0,Co,!0),i.factory=()=>Xa(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=P(null);try{return n.value===Co&&(n.value=Ly,n.value=n.factory()),typeof n.value=="object"&&n.value&&Uy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=te(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function nu(t){let e=rs(t),n=e!==null?e.factory:hn(t);if(n!==null)return n;if(t instanceof m)throw new _(204,!1);if(t instanceof Function)return Vy(t);throw new _(204,!1)}function Vy(t){if(t.length>0)throw new _(204,!1);let n=Wv(t);return n!==null?()=>n.factory(t):()=>new t}function jy(t){if(rh(t))return Wn(void 0,t.useValue);{let e=ih(t);return Wn(e,Co)}}function ih(t,e,n){let r;if(Xn(t)){let i=te(t);return hn(i)||nu(i)}else if(rh(t))r=()=>te(t.useValue);else if(Py(t))r=()=>t.useFactory(...Xa(t.deps||[]));else if(Fy(t))r=()=>N(te(t.useExisting));else{let i=te(t&&(t.useClass||t.provide));if(By(t))r=()=>new i(...Xa(t.deps));else return hn(i)||nu(i)}return r}function Wn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function By(t){return!!t.deps}function Uy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Hy(t){return typeof t=="function"||typeof t=="object"&&t instanceof m}function ru(t,e){for(let n of t)Array.isArray(n)?ru(n,e):n&&Uf(n)?ru(n.\u0275providers,e):e(n)}function ic(t,e){t instanceof qr&&t.assertNotDestroyed();let n,r=kt(t),i=me(void 0);try{return e()}finally{kt(r),me(i)}}function oh(){return Hf()!==void 0||iy()!=null}function dr(t){if(!oh())throw new _(-203,!1)}function $y(t){return typeof t=="function"}var tt=0,T=1,M=2,oe=3,Be=4,De=5,er=6,Qn=7,re=8,tr=9,Je=10,z=11,Yr=12,Jd=13,fr=14,_e=15,pn=16,qn=17,Ue=18,ls=19,sh=20,Lt=21,Kn=22,xe=23,G=25,oc=1;var gn=7,Ro=8,nr=9,ie=10,Fo=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Fo||{});function Vt(t){return Array.isArray(t)&&typeof t[oc]=="object"}function Et(t){return Array.isArray(t)&&t[oc]===!0}function sc(t){return(t.flags&4)!==0}function ds(t){return t.componentOffset>-1}function fs(t){return(t.flags&1)===1}function mt(t){return!!t.template}function iu(t){return(t[M]&512)!==0}var ou=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ah(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function zt(){return uh}function uh(t){return t.type.prototype.ngOnChanges&&(t.setInput=Gy),zy}zt.ngInherit=!0;function zy(){let t=lh(this),e=t==null?void 0:t.current;if(e){let n=t.previous;if(n===pt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Gy(t,e,n,r,i){let o=this.declaredInputs[r],s=lh(t)||Wy(t,{previous:pt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new ou(c&&c.currentValue,n,u===pt),ah(t,e,i,n)}var ch="__ngSimpleChanges__";function lh(t){return t[ch]||null}function Wy(t,e){return t[ch]=e}var Xd=null;var Ze=function(t,e,n){Xd!=null&&Xd(t,e,n)},dh="svg",qy="math";function Xe(t){for(;Array.isArray(t);)t=t[tt];return t}function Yy(t){for(;Array.isArray(t);){if(typeof t[oc]=="object")return t;t=t[tt]}return null}function fh(t,e){return Xe(e[t])}function Re(t,e){return Xe(e[t.index])}function ac(t,e){return t.data[e]}function wn(t,e){return t[e]}function Gt(t,e){let n=e[t];return Vt(n)?n:n[tt]}function Zy(t){return(t[M]&4)===4}function uc(t){return(t[M]&128)===128}function Qy(t){return Et(t[oe])}function Bt(t,e){return e==null?null:t[e]}function hh(t){t[qn]=0}function ph(t){t[M]&1024||(t[M]|=1024,uc(t)&&hs(t))}function Ky(t,e){for(;t>0;)e=e[fr],t--;return e}function Zr(t){var e;return!!(t[M]&9216||(e=t[xe])!=null&&e.dirty)}function su(t){var e;(e=t[Je].changeDetectionScheduler)==null||e.notify(7),t[M]&64&&(t[M]|=1024),Zr(t)&&hs(t)}function hs(t){var n;(n=t[Je].changeDetectionScheduler)==null||n.notify(0);let e=mn(t);for(;e!==null&&!(e[M]&8192||(e[M]|=8192,!uc(e)));)e=mn(e)}function gh(t,e){if((t[M]&256)===256)throw new _(911,!1);t[Lt]===null&&(t[Lt]=[]),t[Lt].push(e)}function Jy(t,e){if(t[Lt]===null)return;let n=t[Lt].indexOf(e);n!==-1&&t[Lt].splice(n,1)}function mn(t){let e=t[oe];return Et(e)?e[oe]:e}var O={lFrame:Th(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mh=!1;function Xy(){return O.lFrame.elementDepthCount}function eD(){O.lFrame.elementDepthCount++}function tD(){O.lFrame.elementDepthCount--}function vh(){return O.bindingsEnabled}function yh(){return O.skipHydrationRootTNode!==null}function nD(t){return O.skipHydrationRootTNode===t}function rD(){O.skipHydrationRootTNode=null}function w(){return O.lFrame.lView}function H(){return O.lFrame.tView}function zF(t){return O.lFrame.contextLView=t,t[re]}function GF(t){return O.lFrame.contextLView=null,t}function ne(){let t=Dh();for(;t!==null&&t.type===64;)t=t.parent;return t}function Dh(){return O.lFrame.currentTNode}function iD(){let t=O.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Wt(t,e){let n=O.lFrame;n.currentTNode=t,n.isParent=e}function cc(){return O.lFrame.isParent}function lc(){O.lFrame.isParent=!1}function Eh(){return O.lFrame.contextLView}function bh(){return mh}function ef(t){mh=t}function nt(){let t=O.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function oD(){return O.lFrame.bindingIndex}function sD(t){return O.lFrame.bindingIndex=t}function qt(){return O.lFrame.bindingIndex++}function Ih(t){let e=O.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function aD(){return O.lFrame.inI18n}function uD(t,e){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=t,au(e)}function cD(){return O.lFrame.currentDirectiveIndex}function au(t){O.lFrame.currentDirectiveIndex=t}function wh(t){let e=O.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ch(){return O.lFrame.currentQueryIndex}function dc(t){O.lFrame.currentQueryIndex=t}function lD(t){let e=t[T];return e.type===2?e.declTNode:e.type===1?t[De]:null}function _h(t,e,n){if(n&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&L.Host);)if(i=lD(o),i===null||(o=o[fr],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=O.lFrame=Mh();return r.currentTNode=e,r.lView=t,!0}function fc(t){let e=Mh(),n=t[T];O.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Mh(){let t=O.lFrame,e=t===null?null:t.child;return e===null?Th(t):e}function Th(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Sh(){let t=O.lFrame;return O.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ah=Sh;function hc(){let t=Sh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dD(t){return(O.lFrame.contextLView=Ky(t,O.lFrame.contextLView))[re]}function bt(){return O.lFrame.selectedIndex}function vn(t){O.lFrame.selectedIndex=t}function ni(){let t=O.lFrame;return ac(t.tView,t.selectedIndex)}function WF(){O.lFrame.currentNamespace=dh}function fD(){return O.lFrame.currentNamespace}var xh=!0;function ps(){return xh}function gs(t){xh=t}function hD(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=uh(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,o))}function ms(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[qn]+=65536),(a>14>16&&(t[M]&3)===e&&(t[M]+=16384,tf(a,o)):tf(a,o)}var Jn=-1,yn=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function gD(t){return t instanceof yn}function mD(t){return(t.flags&8)!==0}function vD(t){return(t.flags&16)!==0}var ja={},uu=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=is(r);let i=this.injector.get(e,ja,r);return i!==ja||n===ja?i:this.parentInjector.get(e,n,r)}};function Oh(t){return t!==Jn}function Po(t){return t&32767}function yD(t){return t>>16}function ko(t,e){let n=yD(t),r=e;for(;n>0;)r=r[fr],n--;return r}var cu=!0;function Lo(t){let e=cu;return cu=t,e}var DD=256,Rh=DD-1,Fh=5,ED=0,Qe={};function bD(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty($r)&&(r=n[$r]),r==null&&(r=n[$r]=ED++);let i=r&Rh,o=1<>Fh)]|=o}function Vo(t,e){let n=Ph(t,e);if(n!==-1)return n;let r=e[T];r.firstCreatePass&&(t.injectorIndex=e.length,Ba(r.data,t),Ba(e,null),Ba(r.blueprint,null));let i=pc(t,e),o=t.injectorIndex;if(Oh(i)){let s=Po(i),a=ko(i,e),u=a[T].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Ba(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ph(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function pc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=Bh(i),r===null)return Jn;if(n++,i=i[fr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Jn}function lu(t,e,n){bD(t,e,n)}function ID(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+l,h=i?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&&mt(f)&&f.type===n)return u}return null}function Dn(t,e,n,r){let i=t[n],o=e.data;if(gD(i)){let s=i;s.resolving&&Xv(Jv(o[n]));let a=Lo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?me(s.injectImpl):null,l=_h(t,r,L.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&hD(n,o[n],e)}finally{c!==null&&me(c),Lo(a),s.resolving=!1,Ah()}}return i}function CD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty($r)?t[$r]:void 0;return typeof e=="number"?e>=0?e&Rh:_D:e}function nf(t,e,n){let r=1<>Fh)]&r)}function rf(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var dn=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Vh(this._tNode,this._lView,e,is(r),n)}};function _D(){return new dn(ne(),w())}function Cn(t){return Xr(()=>{let e=t.prototype.constructor,n=e[Ao]||du(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Ao]||du(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function du(t){return Vf(t)?()=>{let e=du(te(t));return e&&e()}:hn(t)}function MD(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[M]&2048&&!(s[M]&512);){let a=jh(o,s,n,r|L.Self,Qe);if(a!==Qe)return a;let u=o.parent;if(!u){let c=s[sh];if(c){let l=c.get(n,Qe,r);if(l!==Qe)return l}u=Bh(s),s=s[fr]}o=u}return i}function Bh(t){let e=t[T],n=e.type;return n===2?e.declTNode:n===1?t[De]:null}function TD(t){return ID(ne(),t)}function of(t,e=null,n=null,r){let i=Uh(t,e,n,r);return i.resolveInjectorInitializers(),i}function Uh(t,e=null,n=null,r,i=new Set){let o=[n||Ae,Oy(t)];return r=r||(typeof t=="object"?void 0:ue(t)),new qr(o,e||cs(),r||null,i)}var ln=class ln{static create(e,n){if(Array.isArray(e))return of({name:""},n,e,"");{let r=e.name??"";return of({name:r},e.parent,e.providers,r)}}};ln.THROW_IF_NOT_FOUND=zr,ln.NULL=new Oo,ln.\u0275prov=A({token:ln,providedIn:"any",factory:()=>N(Gf)}),ln.__NG_ELEMENT_ID__=-1;var He=ln;var SD=new m("");SD.__NG_ELEMENT_ID__=t=>{let e=ne();if(e===null)throw new _(204,!1);if(e.type&2)return e.value;if(t&L.Optional)return null;throw new _(204,!1)};var AD="ngOriginalError";function Ua(t){return t[AD]}var $e=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xD,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),fu=class extends $e{constructor(e){super(),this._lView=e}onDestroy(e){return gh(this._lView,e),()=>Jy(this._lView,e)}};function xD(){return new fu(w())}var _n=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Un(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var hu=class extends ge{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,oh()&&(this.destroyRef=g($e,{optional:!0})??void 0,this.pendingTasks=g(_n,{optional:!0})??void 0)}emit(e){let n=P(null);try{super.next(e)}finally{P(n)}}subscribe(e,n,r){var u,c,l;let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let d=e;i=(u=d.next)==null?void 0:u.bind(d),o=(c=d.error)==null?void 0:c.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof W&&e.add(a),a}wrapInTimeout(e){return n=>{var i;let r=(i=this.pendingTasks)==null?void 0:i.add();setTimeout(()=>{var o;e(n),r!==void 0&&((o=this.pendingTasks)==null||o.remove(r))})}}},ee=hu;function jo(...t){}function Hh(t){let e,n;function r(){t=jo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function sf(t){return queueMicrotask(()=>t()),()=>{t=jo}}var $=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,RD(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new _(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,ND,jo,jo);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},ND={};function gc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function OD(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Hh(()=>{t.callbackScheduled=!1,pu(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1})}),pu(t))}function RD(t){let e=()=>{OD(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(FD(a))return n.invokeTask(i,o,s,a);try{return af(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),uf(t)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return af(t),n.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!PD(a)&&e(),uf(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,pu(t),gc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function pu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function af(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function uf(t){t._nesting--,gc(t)}var gu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}};function FD(t){return $h(t,"__ignore_ng_zone__")}function PD(t){return $h(t,"__scheduler_tick__")}function $h(t,e){var n,r;return!Array.isArray(t)||t.length!==1?!1:((r=(n=t[0])==null?void 0:n.data)==null?void 0:r[e])===!0}var et=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Ua(e);for(;n&&Ua(n);)n=Ua(n);return n||null}},kD=new m("",{providedIn:"root",factory:()=>{let t=g($),e=g(et);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function cf(t,e){return Lf(t,e)}function LD(t){return Lf(kf,t)}var qF=(cf.required=LD,cf);function VD(){return hr(ne(),w())}function hr(t,e){return new J(Re(t,e))}var J=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=VD;let t=e;return t})();function jD(t){return t instanceof J?t.nativeElement:t}function BD(){return this._results[Symbol.iterator]()}var Qr=class t{get changes(){return this._changes??(this._changes=new ee)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=BD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=ly(e);(this._changesDetected=!cy(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){var e;this.dirty=!0,(e=this._onDirty)==null||e.call(this)}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zh(t){return(t.flags&128)===128}var Gh=new Map,UD=0;function HD(){return UD++}function $D(t){Gh.set(t[ls],t)}function zD(t){Gh.delete(t[ls])}var lf="__ngContext__";function Ut(t,e){Vt(e)?(t[lf]=e[ls],$D(e)):t[lf]=e}function Wh(t){return Yh(t[Yr])}function qh(t){return Yh(t[Be])}function Yh(t){for(;t!==null&&!Et(t);)t=t[Be];return t}var mu;function Zh(t){mu=t}function Qh(){if(mu!==void 0)return mu;if(typeof document<"u")return document;throw new _(210,!1)}var mc=new m("",{providedIn:"root",factory:()=>GD}),GD="ng",vc=new m(""),rt=new m("",{providedIn:"platform",factory:()=>"unknown"});var YF=new m(""),yc=new m("",{providedIn:"root",factory:()=>{var t,e;return((e=(t=Qh().body)==null?void 0:t.querySelector("[ngCspNonce]"))==null?void 0:e.getAttribute("ngCspNonce"))||null}});var WD="h",qD="b";var YD=()=>null;function Dc(t,e,n=!1){return YD(t,e,n)}var Kh=!1,ZD=new m("",{providedIn:"root",factory:()=>Kh});var Do;function QD(){if(Do===void 0&&(Do=null,ht.trustedTypes))try{Do=ht.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Do}function vs(t){var e;return((e=QD())==null?void 0:e.createHTML(t))||t}var Eo;function Jh(){if(Eo===void 0&&(Eo=null,ht.trustedTypes))try{Eo=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Eo}function df(t){var e;return((e=Jh())==null?void 0:e.createHTML(t))||t}function ff(t){var e;return((e=Jh())==null?void 0:e.createScriptURL(t))||t}var Bo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pf})`}};function pr(t){return t instanceof Bo?t.changingThisBreaksApplicationSecurity:t}function ys(t,e){let n=KD(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${Pf})`)}return n===e}function KD(t){return t instanceof Bo&&t.getTypeName()||null}function JD(t){let e=new yu(t);return XD()?new vu(e):e}var vu=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){var n;e=""+e;try{let r=new window.DOMParser().parseFromString(vs(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):((n=r.firstChild)==null||n.remove(),r)}catch{return null}}},yu=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=vs(e),n}};function XD(){try{return!!new window.DOMParser().parseFromString(vs(""),"text/html")}catch{return!1}}var eE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ec(t){return t=String(t),t.match(eE)?t:"unsafe:"+t}function It(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function ri(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Xh=It("area,br,col,hr,img,wbr"),ep=It("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),tp=It("rp,rt"),tE=ri(tp,ep),nE=ri(ep,It("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),rE=ri(tp,It("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hf=ri(Xh,nE,rE,tE),np=It("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iE=It("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),oE=It("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),sE=ri(np,iE,oE),aE=It("script,style,template"),Du=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=lE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=cE(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=pf(e).toLowerCase();if(!hf.hasOwnProperty(n))return this.sanitizedSomething=!0,!aE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=pf(e).toLowerCase();hf.hasOwnProperty(n)&&!Xh.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(gf(e))}};function uE(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function cE(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw rp(e);return e}function lE(t){let e=t.firstChild;if(e&&uE(t,e))throw rp(e);return e}function pf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function rp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var dE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fE=/([^\#-~ |!])/g;function gf(t){return t.replace(/&/g,"&").replace(dE,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(fE,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var bo;function ip(t,e){let n=null;try{bo=bo||JD(t);let r=e?String(e):"";n=bo.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=bo.getInertBodyElement(r)}while(r!==o);let a=new Du().sanitizeChildren(mf(n)||n);return vs(a)}finally{if(n){let r=mf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function mf(t){return"content"in t&&hE(t)?t.content:null}function hE(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var ii=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ii||{});function ZF(t){let e=Ic();return e?df(e.sanitize(ii.HTML,t)||""):ys(t,"HTML")?df(pr(t)):ip(Qh(),fn(t))}function bc(t){let e=Ic();return e?e.sanitize(ii.URL,t)||"":ys(t,"URL")?pr(t):Ec(fn(t))}function pE(t){let e=Ic();if(e)return ff(e.sanitize(ii.RESOURCE_URL,t)||"");if(ys(t,"ResourceURL"))return ff(pr(t));throw new _(904,!1)}function gE(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?pE:bc}function QF(t,e,n){return gE(e,n)(t)}function Ic(){let t=w();return t&&t[Je].sanitizer}var mE=/^>|^->||--!>|)/g,yE="\u200B$1\u200B";function DE(t){return t.replace(mE,e=>e.replace(vE,yE))}function KF(t){return t.ownerDocument.defaultView}function JF(t){return t.ownerDocument}function op(t){return t instanceof Function?t():t}function EE(t){return(t??g(He)).get(rt)==="browser"}var vt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(vt||{}),bE;function wc(t,e){return bE(t,e)}function Yn(t,e,n,r,i){if(r!=null){let o,s=!1;Et(r)?o=r:Vt(r)&&(s=!0,r=r[tt]);let a=Xe(r);t===0&&n!==null?i==null?lp(e,n,a):Uo(e,n,a,i||null,!0):t===1&&n!==null?Uo(e,n,a,i||null,!0):t===2?PE(e,a,s):t===3&&e.destroyNode(a),o!=null&&LE(e,t,o,n,i)}}function IE(t,e){return t.createText(e)}function wE(t,e,n){t.setValue(e,n)}function CE(t,e){return t.createComment(DE(e))}function sp(t,e,n){return t.createElement(e,n)}function _E(t,e){ap(t,e),e[tt]=null,e[De]=null}function ME(t,e,n,r,i,o){r[tt]=i,r[De]=e,bs(t,r,n,1,i,o)}function ap(t,e){var n;(n=e[Je].changeDetectionScheduler)==null||n.notify(8),bs(t,e,e[z],2,null,null)}function TE(t){let e=t[Yr];if(!e)return Ha(t[T],t);for(;e;){let n=null;if(Vt(e))n=e[Yr];else{let r=e[ie];r&&(n=r)}if(!n){for(;e&&!e[Be]&&e!==t;)Vt(e)&&Ha(e[T],e),e=e[oe];e===null&&(e=t),Vt(e)&&Ha(e[T],e),n=e&&e[Be]}e=n}}function SE(t,e,n,r){let i=ie+r,o=n.length;r>0&&(n[i-1][Be]=e),r0&&(t[n-1][Be]=r[Be]);let o=No(t,ie+e);_E(r[T],r);let s=o[Ue];s!==null&&s.detachView(o[T]),r[oe]=null,r[Be]=null,r[M]&=-129}return r}function Ds(t,e){if(!(e[M]&256)){let n=e[z];n.destroyNode&&bs(t,e,n,3,null,null),TE(e)}}function Ha(t,e){if(e[M]&256)return;let n=P(null);try{e[M]&=-129,e[M]|=256,e[xe]&&po(e[xe]),xE(t,e),AE(t,e),e[T].type===1&&e[z].destroy();let r=e[pn];if(r!==null&&Et(e[oe])){r!==e[oe]&&Cc(r,e);let i=e[Ue];i!==null&&i.detachView(t)}zD(e)}finally{P(n)}}function AE(t,e){let n=t.cleanup,r=e[Qn];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(e[Qn]=null);let i=e[Lt];if(i!==null){e[Lt]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===Ke.None||o===Ke.Emulated)return null}return Re(r,n)}}function Uo(t,e,n,r,i){t.insertBefore(e,n,r,i)}function lp(t,e,n){t.appendChild(e,n)}function vf(t,e,n,r,i){r!==null?Uo(t,e,n,r,i):lp(t,e,n)}function dp(t,e){return t.parentNode(e)}function OE(t,e){return t.nextSibling(e)}function fp(t,e,n){return FE(t,e,n)}function RE(t,e,n){return t.type&40?Re(t,n):null}var FE=RE,yf;function Es(t,e,n,r){let i=cp(t,r,e),o=e[z],s=r.parent||e[De],a=fp(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;uG&&vp(t,e,G,!1),Ze(s?2:0,i),n(r,i)}finally{vn(o),Ze(s?3:1,i)}}function Mc(t,e,n){if(sc(e)){let r=P(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function WE(t,e,n,r){let i=Mp(e);i.push(n),t.firstCreatePass&&Tp(t).push(r,i.length-1)}function qE(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return yh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Df(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??(r={});let a,u=jt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?Ef(r,n,c,a,u):Ef(r,n,c,a)}return r}function Ef(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function YE(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function XE(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;ds(n)&&sb(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||Vo(n,e),Ut(r,e);let s=n.initialInputs;for(let a=i;a{hs(t.lView)},consumerOnSignalRead(){this.lView[xe]=this}});function Eb(t){let e=t[xe]??Object.create(bb);return e.lView=t,e}var bb=j(S({},Gn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=mn(t.lView);for(;e&&!Rp(e[T]);)e=mn(e);e&&ph(e)},consumerOnSignalRead(){this.lView[xe]=this}});function Rp(t){return t.type!==2}var Ib=100;function Fp(t,e=!0,n=0){var s,a,u;let r=t[Je],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{wb(t,n)}catch(c){throw e&&Sp(t,c),c}finally{o||((a=i.end)==null||a.call(i),(u=r.inlineEffectRunner)==null||u.flush())}}function wb(t,e){let n=bh();try{ef(!0),wu(t,e);let r=0;for(;Zr(t);){if(r===Ib)throw new _(103,!1);r++,wu(t,1)}}finally{ef(n)}}function Cb(t,e,n,r){var l;let i=e[M];if((i&256)===256)return;let o=!1,s=!1;!o&&((l=e[Je].inlineEffectRunner)==null||l.flush()),fc(e);let a=!0,u=null,c=null;o||(Rp(t)?(c=mb(e),u=Ur(c)):Td()===null?(a=!1,c=Eb(e),u=Ur(c)):e[xe]&&(po(e[xe]),e[xe]=null));try{hh(e),sD(t.bindingStartIndex),n!==null&&Ep(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&_o(e,p,null)}else{let p=t.preOrderHooks;p!==null&&Mo(e,p,0,null),Va(e,0)}if(s||_b(e),Pp(e,0),t.contentQueries!==null&&_p(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&_o(e,p)}else{let p=t.contentHooks;p!==null&&Mo(e,p,1),Va(e,1)}BE(t,e);let h=t.components;h!==null&&Lp(e,h,0);let f=t.viewQuery;if(f!==null&&Iu(2,f,r),!o)if(d){let p=t.viewCheckHooks;p!==null&&_o(e,p)}else{let p=t.viewHooks;p!==null&&Mo(e,p,2),Va(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Kn]){for(let p of e[Kn])p();e[Kn]=null}o||(e[M]&=-73)}catch(d){throw o||hs(e),d}finally{c!==null&&(fo(c,u),a&&yb(c)),hc()}}function Pp(t,e){for(let n=Wh(t);n!==null;n=qh(n))for(let r=ie;r-1&&(Kr(e,r),No(n,r))}this._attachedToViewContainer=!1}Ds(this._lView[T],this._lView)}onDestroy(e){gh(this._lView,e)}markForCheck(){Rc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){su(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,Fp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=iu(this._lView),n=this._lView[pn];n!==null&&!e&&Cc(n,this._lView),ap(this._lView[T],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=e;let n=iu(this._lView),r=this._lView[pn];r!==null&&!n&&up(r,this._lView),su(this._lView)}},yt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Ab;let t=e;return t})(),Tb=yt,Sb=class extends Tb{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var e;return((e=this._declarationTContainer.tView)==null?void 0:e.ssrId)||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=si(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new En(i)}};function Ab(){return _s(ne(),w())}function _s(t,e){return t.type&4?new Sb(e,t,hr(t,e)):null}var tP=new RegExp(`^(\\d+)*(${qD}|${WD})*(.*)`);var xb=()=>null;function ir(t,e){return xb(t,e)}var or=class{},Fc=new m("",{providedIn:"root",factory:()=>!1});var Vp=new m(""),Cu=class{},$o=class{};function Nb(t){let e=Error(`No component factory found for ${ue(t)}.`);return e[Ob]=t,e}var Ob="ngComponent";var _u=class{resolveComponentFactory(e){throw Nb(e)}},Yc=class Yc{};Yc.NULL=new _u;var sr=Yc,ar=class{},gr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Rb();let t=e;return t})();function Rb(){let t=w(),e=ne(),n=Gt(e.index,t);return(Vt(n)?n:t)[z]}var Fb=(()=>{let e=class e{};e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var bf=new Set;function ze(t){var e;bf.has(t)||(bf.add(t),(e=performance==null?void 0:performance.mark)==null||e.call(performance,"mark_feature_usage",{detail:{feature:t}}))}var ve=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ve||{}),Pb={destroy(){}};function kb(t,e){!e&&dr(kb);let n=(e==null?void 0:e.injector)??g(He);return EE(n)?(ze("NgAfterNextRender"),Vb(t,n,!0,(e==null?void 0:e.phase)??ve.MixedReadWrite)):Pb}function Lb(t,e){if(t instanceof Function)switch(e){case ve.EarlyRead:return{earlyRead:t};case ve.Write:return{write:t};case ve.MixedReadWrite:return{mixedReadWrite:t};case ve.Read:return{read:t}}return t}function Vb(t,e,n,r){let i=Lb(t,r),o=e.get(Pc),s=o.handler??(o.handler=new Tu),a=[],u=[],c=()=>{for(let f of u)s.unregister(f);l()},l=e.get($e).onDestroy(c),d=0,h=(f,p)=>{if(!p)return;let D=n?(...v)=>(d--,d<1&&c(),p(...v)):p,y=ic(e,()=>new Mu(f,a,D));s.register(y),u.push(y),d++};return h(ve.EarlyRead,i.earlyRead),h(ve.Write,i.write),h(ve.MixedReadWrite,i.mixedReadWrite),h(ve.Read,i.read),{destroy:c}}var Mu=class{constructor(e,n,r){var i;this.phase=e,this.pipelinedArgs=n,this.callbackFn=r,this.zone=g($),this.errorHandler=g(et,{optional:!0}),(i=g(or,{optional:!0}))==null||i.notify(6)}invoke(){var e;try{let n=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,n)}catch(n){(e=this.errorHandler)==null||e.handleError(n)}}},Tu=class{constructor(){this.executingCallbacks=!1,this.buckets={[ve.EarlyRead]:new Set,[ve.Write]:new Set,[ve.MixedReadWrite]:new Set,[ve.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Pc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var r;this.executeInternalCallbacks(),(r=this.handler)==null||r.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of r)i()}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function zo(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&gp(t,n,o.join(" "))}}function Gb(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=qb;let t=e;return t})();function qb(){let t=ne();return Bp(t,w())}var Yb=ot,jp=class extends Yb{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return hr(this._hostTNode,this._hostLView)}get injector(){return new dn(this._hostTNode,this._hostLView)}get parentInjector(){let e=pc(this._hostTNode,this._hostLView);if(Oh(e)){let n=ko(e,this._hostLView),r=Po(e),i=n[T].data[r+8];return new dn(i,n)}else return new dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=wf(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-ie}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ir(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,rr(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!$y(e),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?e:new bn(gt(e)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let D=(s?c:this.parentInjector).get(Ne,null);D&&(o=D)}let l=gt(u.componentType??{}),d=ir(this._lContainer,(l==null?void 0:l.id)??null),h=(d==null?void 0:d.firstChild)??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,rr(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(Qy(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[oe],c=new jp(u,u[De],u[oe]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return ai(s,i,o,r),e.attachToViewContainerRef(),zf($a(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=wf(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Kr(this._lContainer,n);r&&(No($a(this._lContainer),n),Ds(r[T],r))}detach(e){let n=this._adjustIndex(e,-1),r=Kr(this._lContainer,n);return r&&No($a(this._lContainer),n)!=null?new En(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function wf(t){return t[Ro]}function $a(t){return t[Ro]||(t[Ro]=[])}function Bp(t,e){let n,r=e[t.index];return Et(r)?n=r:(n=Cp(r,e,null,t),e[t.index]=n,Cs(e,n)),Qb(n,e,t,r),new jp(n,t,e)}function Zb(t,e){let n=t[z],r=n.createComment(""),i=Re(e,t),o=dp(n,i);return Uo(n,o,r,OE(n,i),!1),r}var Qb=Xb,Kb=()=>!1;function Jb(t,e,n){return Kb(t,e,n)}function Xb(t,e,n,r){if(t[gn])return;let i;n.type&8?i=Xe(r):i=Zb(e,n),t[gn]=i}var Au=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},xu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=ie;de.trim())}function $p(t,e,n){t.queries===null&&(t.queries=new Nu),t.queries.track(new Ou(e,n))}function uI(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function kc(t,e){return t.queries.getByIndex(e)}function cI(t,e){let n=t[T],r=kc(n,e);return r.crossesNgTemplate?Ru(n,t,e,[]):Up(n,t,r,e)}function Ms(t){return typeof t=="function"&&t[Ve]!==void 0}function st(t,e){ze("NgSignals");let n=jd(t),r=n[Ve];return e!=null&&e.equal&&(r.equal=e.equal),n.set=i=>vo(r,i),n.update=i=>Bd(r,i),n.asReadonly=lI.bind(n),n}function lI(){let t=this[Ve];if(t.readonlyFn===void 0){let e=()=>this();e[Ve]=t,t.readonlyFn=e}return t.readonlyFn}function zp(t){return Ms(t)&&typeof t.set=="function"}function dI(t){return Object.getPrototypeOf(t.prototype).constructor}function le(t){let e=dI(t.type),n=!0,r=[t];for(;e;){let i;if(mt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new _(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=Io(t.inputs),s.inputTransforms=Io(t.inputTransforms),s.declaredInputs=Io(t.declaredInputs),s.outputs=Io(t.outputs);let a=i.hostBindings;a&&mI(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&pI(t,u),c&&gI(t,c),fI(t,i),zv(t.outputs,i.outputs),mt(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Wr(i.hostAttrs,n=Wr(n,i.hostAttrs))}}function Io(t){return t===pt?{}:t===Ae?[]:t}function pI(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function gI(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function mI(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function at(t){let e=n=>{let r=(Array.isArray(t)?t:t()).map(i=>typeof i=="function"?{directive:te(i),inputs:pt,outputs:pt}:{directive:te(i.directive),inputs:Cf(i.inputs),outputs:Cf(i.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=Gp,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return e.ngInherit=!0,e}function Gp(t,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives){let i=nc(r.directive);vI(i.declaredInputs,r.inputs),Gp(i,e,n),n.set(i,r),e.push(i)}}function Cf(t){if(t===void 0||t.length===0)return pt;let e={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Pu=class extends Fu{constructor(e){super(),this.moduleType=e}create(e){return new qo(this.moduleType,e,[])}};var Yo=class extends Dt{constructor(e){super(),this.componentFactoryResolver=new Go(this),this.instance=null;let n=new qr([...e.providers,{provide:Dt,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],e.parent||cs(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function DI(t,e,n=null){return new Yo({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function qp(t){return bI(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function EI(t,e){if(Array.isArray(t))for(let n=0;n>17&32767}function AI(t){return(t&2)==2}function xI(t,e){return t&131071|e<<17}function ku(t){return t|2}function cr(t){return(t&131068)>>2}function za(t,e){return t&-131069|e<<2}function NI(t){return(t&1)===1}function Lu(t){return t|1}function OI(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=In(s),u=cr(s);t[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ti(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=In(t[a+1]);t[r+1]=wo(h,a),h!==0&&(t[h+1]=za(t[h+1],r)),t[a+1]=xI(t[a+1],r)}else t[r+1]=wo(a,0),a!==0&&(t[a+1]=za(t[a+1],r)),a=r;else t[r+1]=wo(u,0),a===0?a=r:t[u+1]=za(t[u+1],r),u=r;c&&(t[r+1]=ku(t[r+1])),_f(t,l,r,!0),_f(t,l,r,!1),RI(e,l,t,r,o),s=wo(a,u),o?e.classBindings=s:e.styleBindings=s}function RI(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&ti(o,e)>=0&&(n[r+1]=Lu(n[r+1]))}function _f(t,e,n,r){let i=t[n+1],o=e===null,s=r?In(i):cr(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];FI(u,e)&&(a=!0,t[s+1]=r?Lu(c):ku(c)),s=r?In(c):cr(c)}a&&(t[n+1]=r?ku(i):Lu(i))}function FI(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ti(t,e)>=0:!1}function Yt(t,e,n){let r=w(),i=qt();if(ce(r,i,e)){let o=H(),s=ni();ws(o,s,r,t,e,r[z],n,!1)}return Yt}function Mf(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";Nc(t,n,o[s],s,r)}function wt(t,e,n){return Zp(t,e,n,!1),wt}function Zt(t,e){return Zp(t,e,null,!0),Zt}function Zp(t,e,n,r){let i=w(),o=H(),s=Ih(2);if(o.firstUpdatePass&&kI(o,t,s,r),e!==it&&ce(i,s,e)){let a=o.data[bt()];UI(o,a,i,i[z],t,i[s+1]=HI(e,n),r,s)}}function PI(t,e){return e>=t.expandoStartIndex}function kI(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[bt()],s=PI(t,n);$I(o,r)&&e===null&&!s&&(e=!1),e=LI(i,o,e,r),OI(i,o,e,n,s,r)}}function LI(t,e,n,r){let i=wh(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Ga(null,t,e,n,r),n=Jr(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Ga(i,t,e,n,r),o===null){let u=VI(t,e,r);u!==void 0&&Array.isArray(u)&&(u=Ga(null,t,e,u[1],r),u=Jr(u,e.attrs,r),jI(t,e,r,u))}else o=BI(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function VI(t,e,n){let r=n?e.classBindings:e.styleBindings;if(cr(r)!==0)return t[In(r)]}function jI(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[In(i)]=r}function BI(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===it&&(h=d?Ae:void 0);let f=d?ka(h,r):l===r?h:void 0;if(c&&!Qo(f)&&(f=ka(u,r)),Qo(f)&&(a=f,s))return a;let p=t[i+1];i=s?In(p):cr(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=ka(u,r))}return a}function Qo(t){return t!==void 0}function HI(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ue(pr(t)))),t}function $I(t,e){return(t.flags&(e?8:16))!==0}var Vu=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function Wa(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function zI(t,e,n){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let c=t.at(o),l=e[o],d=Wa(o,c,o,l,n);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let h=t.at(s),f=e[u],p=Wa(s,h,u,f,n);if(p!==0){p<0&&t.updateValue(s,f),s--,u--;continue}let D=n(o,c),y=n(s,h),v=n(o,l);if(Object.is(v,y)){let V=n(u,f);Object.is(V,D)?(t.swap(o,s),t.updateValue(s,f),u--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(r??(r=new Ko),i??(i=Af(t,o,s,n)),ju(t,r,o,v))t.updateValue(o,l),o++,s++;else if(i.has(v))r.set(D,t.detach(o)),s--;else{let V=t.create(o,e[o]);t.attach(o,V),o++,s++}}for(;o<=u;)Sf(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),c=u.next();for(;!c.done&&o<=s;){let l=t.at(o),d=c.value,h=Wa(o,l,o,d,n);if(h!==0)h<0&&t.updateValue(o,d),o++,c=u.next();else{r??(r=new Ko),i??(i=Af(t,o,s,n));let f=n(o,d);if(ju(t,r,o,f))t.updateValue(o,d),o++,s++,c=u.next();else if(!i.has(f))t.attach(o,t.create(o,d)),o++,s++,c=u.next();else{let p=n(o,l);r.set(p,t.detach(o)),s--}}}for(;!c.done;)Sf(t,r,n,t.length,c.value),c=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r==null||r.forEach(u=>{t.destroy(u)})}function ju(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Sf(t,e,n,r,i){if(ju(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function Af(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var Ko=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function rP(t,e){ze("NgControlFlow");let n=w(),r=qt(),i=n[r]!==it?n[r]:-1,o=i!==-1?Jo(n,G+i):void 0,s=0;if(ce(n,r,t)){let a=P(null);try{if(o!==void 0&&Np(o,s),t!==-1){let u=G+t,c=Jo(n,u),l=$u(n[T],u),d=ir(c,l.tView.ssrId),h=si(n,l,e,{dehydratedView:d});ai(c,h,s,rr(l,d))}}finally{P(a)}}else if(o!==void 0){let a=xp(o,s);a!==void 0&&(a[re]=e)}}var Bu=class{constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ie}};function iP(t){return t}var Uu=class{constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function oP(t,e,n,r,i,o,s,a,u,c,l,d,h){ze("NgControlFlow");let f=w(),p=H(),D=u!==void 0,y=w(),v=a?s.bind(y[_e][re]):s,V=new Uu(D,v);y[G+t]=V,Zo(f,p,t+1,e,n,r,i,Bt(p.consts,o)),D&&Zo(f,p,t+2,u,c,l,d,Bt(p.consts,h))}var Hu=class extends Vu{constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ie}at(e){return this.getLView(e)[re].$implicit}attach(e,n){let r=n[er];this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length),ai(this.lContainer,n,e,rr(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length-1),GI(this.lContainer,e)}create(e,n){var o;let r=ir(this.lContainer,this.templateTNode.tView.ssrId),i=si(this.hostLView,this.templateTNode,new Bu(this.lContainer,n,e),{dehydratedView:r});return(o=this.operationsCounter)==null||o.recordCreate(),i}destroy(e){var n;Ds(e[T],e),(n=this.operationsCounter)==null||n.recordDestroy()}updateValue(e,n){this.getLView(e)[re].$implicit=n}reset(){var e;this.needsIndexUpdate=!1,(e=this.operationsCounter)==null||e.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(gs(!0),sp(r,i,fD()));function ZI(t,e,n,r,i){let o=e.consts,s=Bt(o,r),a=Mn(e,t,8,"ng-container",s);s!==null&&zo(a,s,!0);let u=Bt(o,i);return xc(e,n,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function mr(t,e,n){let r=w(),i=H(),o=t+G,s=i.firstCreatePass?ZI(o,i,r,e,n):i.data[o];Wt(s,!0);let a=KI(i,r,s,t);return r[o]=a,ps()&&Es(i,r,a,s),Ut(a,r),fs(s)&&(Tc(i,r,s),Mc(i,s,r)),n!=null&&Sc(r,s),mr}function vr(){let t=ne(),e=H();return cc()?lc():(t=t.parent,Wt(t,!1)),e.firstCreatePass&&(ms(e,t),sc(t)&&e.queries.elementEnd(t)),vr}function QI(t,e,n){return mr(t,e,n),vr(),QI}var KI=(t,e,n,r)=>(gs(!0),CE(e[z],""));function aP(){return w()}function JI(t,e,n){let r=w(),i=qt();if(ce(r,i,e)){let o=H(),s=ni();ws(o,s,r,t,e,r[z],n,!0)}return JI}function XI(t,e,n){let r=w(),i=qt();if(ce(r,i,e)){let o=H(),s=ni(),a=wh(o.data),u=db(a,s,r);ws(o,s,r,t,e,u,n,!0)}return XI}var cn=void 0;function ew(t){let e=t,n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var tw=["en",[["a","p"],["AM","PM"],cn],[["AM","PM"],cn,cn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],cn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],cn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",cn,"{1} 'at' {0}",cn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ew],qa={};function Uc(t){let e=nw(t),n=xf(e);if(n)return n;let r=e.split("-")[0];if(n=xf(r),n)return n;if(r==="en")return tw;throw new _(701,!1)}function xf(t){return t in qa||(qa[t]=ht.ng&&ht.ng.common&&ht.ng.common.locales&&ht.ng.common.locales[t]),qa[t]}var yr=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(yr||{});function nw(t){return t.toLowerCase().replace(/_/g,"-")}var Xo="en-US";var rw=Xo;function iw(t){typeof t=="string"&&(rw=t.toLowerCase().replace(/_/g,"-"))}var ow=(t,e,n)=>{};function Sn(t,e,n,r){let i=w(),o=H(),s=ne();return Qp(o,i,i[z],s,t,e,r),Sn}function sw(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function Qp(t,e,n,r,i,o,s){let a=fs(r),c=t.firstCreatePass&&Tp(t),l=e[re],d=Mp(e),h=!0;if(r.type&3||s){let D=Re(r,e),y=s?s(D):D,v=d.length,V=s?k=>s(Xe(k[r.index])):r.index,K=null;if(!s&&a&&(K=sw(t,e,i,r.index)),K!==null){let k=K.__ngLastListenerFn__||K;k.__ngNextListenerFn__=o,K.__ngLastListenerFn__=o,h=!1}else{o=Of(r,e,l,o),ow(D,i,o);let k=n.listen(y,i,o);d.push(o,k),c&&c.push(i,V,v,v+1)}}else o=Of(r,e,l,o);let f=r.outputs,p;if(h&&f!==null&&(p=f[i])){let D=p.length;if(D)for(let y=0;y-1?Gt(t.index,e):e;Rc(s,5);let a=Nf(e,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Nf(e,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function Ss(t=1){return dD(t)}function aw(t,e){let n=null,r=by(t);for(let i=0;i=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function fP(t){let e=Eh();return wn(e,G+t)}function Xp(t,e=""){let n=w(),r=H(),i=t+G,o=r.firstCreatePass?Mn(r,i,1,e,null):r.data[i],s=cw(r,n,o,e,t);n[i]=s,ps()&&Es(r,n,s,o),Wt(o,!1)}var cw=(t,e,n,r,i)=>(gs(!0),IE(e[z],r));function $c(t){return zc("",t,""),$c}function zc(t,e,n){let r=w(),i=TI(r,t,e,n);return i!==it&&Ap(r,bt(),i),zc}function lw(t,e,n,r,i){let o=w(),s=SI(o,t,e,n,r,i);return s!==it&&Ap(o,bt(),s),lw}function dw(t,e,n){zp(e)&&(e=e());let r=w(),i=qt();if(ce(r,i,e)){let o=H(),s=ni();ws(o,s,r,t,e,r[z],n,!1)}return dw}function hP(t,e){let n=zp(t);return n&&t.set(e),n}function fw(t,e){let n=w(),r=H(),i=ne();return Qp(r,n,n[z],i,t,e),fw}var eg={};function hw(t){let e=H(),n=w(),r=t+G,i=Mn(e,r,128,null,null);return Wt(i,!1),Hc(e,n,r,eg),hw}function pP(t){ze("NgLet");let e=H(),n=w(),r=bt();return Hc(e,n,r,t),t}function gP(t){let e=Eh(),n=wn(e,G+t);if(n===eg)throw new _(314,!1);return n}function pw(t,e,n){let r=H();if(r.firstCreatePass){let i=mt(t);zu(n,r.data,r.blueprint,i,!0),zu(e,r.data,r.blueprint,i,!1)}}function zu(t,e,n,r,i){if(t=te(t),Array.isArray(t))for(let o=0;o>20;if(Xn(t)||!t.multi){let f=new yn(c,i,x),p=Za(u,e,i?l:l+h,d);p===-1?(lu(Vo(a,s),o,u),Ya(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Za(u,e,l+h,d),p=Za(u,e,l,l+h),D=f>=0&&n[f],y=p>=0&&n[p];if(i&&!y||!i&&!D){lu(Vo(a,s),o,u);let v=vw(i?mw:gw,n.length,i,r,c);!i&&y&&(n[p].providerFactory=v),Ya(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(v),s.push(v)}else{let v=tg(n[i?p:f],c,!i&&r);Ya(o,t,f>-1?f:p,v)}!i&&r&&y&&n[p].componentProviders++}}}function Ya(t,e,n,r){let i=Xn(e),o=ky(e);if(i||o){let u=(o?te(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function tg(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Za(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>pw(r,i?i(t):t,e)}}var yw=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=th(!1,r.type),o=i.length>0?DI([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=A({token:e,providedIn:"environment",factory:()=>new e(N(Ne))});let t=e;return t})();function be(t){ze("NgStandalone"),t.getStandaloneInjector=e=>e.get(yw).getOrCreateStandaloneInjector(t)}function mP(t,e,n,r){return ng(w(),nt(),t,e,n,r)}function vP(t,e,n,r,i){return rg(w(),nt(),t,e,n,r,i)}function yP(t,e,n,r,i,o,s){return ig(w(),nt(),t,e,n,r,i,o,s)}function DP(t,e,n,r,i,o,s,a){let u=nt()+t,c=w(),l=Lc(c,u,n,r,i,o);return ce(c,u+4,s)||l?Tn(c,u+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):Yp(c,u+5)}function EP(t,e,n,r,i,o,s,a,u){let c=nt()+t,l=w(),d=Lc(l,c,n,r,i,o);return ur(l,c+4,s,a)||d?Tn(l,c+6,u?e.call(u,n,r,i,o,s,a):e(n,r,i,o,s,a)):Yp(l,c+6)}function ui(t,e){let n=t[e];return n===it?void 0:n}function ng(t,e,n,r,i,o){let s=e+n;return ce(t,s,i)?Tn(t,s+1,o?r.call(o,i):r(i)):ui(t,s+1)}function rg(t,e,n,r,i,o,s){let a=e+n;return ur(t,a,i,o)?Tn(t,a+2,s?r.call(s,i,o):r(i,o)):ui(t,a+2)}function Dw(t,e,n,r,i,o,s,a){let u=e+n;return II(t,u,i,o,s)?Tn(t,u+3,a?r.call(a,i,o,s):r(i,o,s)):ui(t,u+3)}function ig(t,e,n,r,i,o,s,a,u){let c=e+n;return Lc(t,c,i,o,s,a)?Tn(t,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):ui(t,c+4)}function Ew(t,e,n,r,i,o){let s=e+n,a=!1;for(let u=0;u=0;n--){let r=e[n];if(t===r.name)return r}}function IP(t,e,n){let r=t+G,i=w(),o=wn(i,r);return ci(i,r)?ng(i,nt(),e,o.transform,n,o):o.transform(n)}function wP(t,e,n,r){let i=t+G,o=w(),s=wn(o,i);return ci(o,i)?rg(o,nt(),e,s.transform,n,r,s):s.transform(n,r)}function CP(t,e,n,r,i){let o=t+G,s=w(),a=wn(s,o);return ci(s,o)?Dw(s,nt(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function _P(t,e,n,r,i,o){let s=t+G,a=w(),u=wn(a,s);return ci(a,s)?ig(a,nt(),e,u.transform,n,r,i,o,u):u.transform(n,r,i,o)}function MP(t,e,n){let r=t+G,i=w(),o=wn(i,r);return ci(i,r)?Ew(i,nt(),e,o.transform,n,o):o.transform.apply(o,n)}function ci(t,e){return t[T].data[e].pure}function TP(t,e){return _s(t,e)}var og=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var sg=new m("");function Dr(t){return!!t&&typeof t.then=="function"}function Gc(t){return!!t&&typeof t.subscribe=="function"}var Iw=new m(""),ag=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=g(Iw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(Dr(s))r.push(s);else if(Gc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ug=new m("");function ww(){Vd(()=>{throw new _(600,!1)})}function Cw(t){return t.isBoundToModule}var _w=10;function Mw(t,e,n){try{let r=n();return Dr(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var li=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(kD),this.afterRenderEffectManager=g(Pc),this.zonelessEnabled=g(Fc),this.externalTestViews=new Set,this.beforeRender=new ge,this.afterTick=new ge,this.componentTypes=[],this.components=[],this.isStable=g(_n).hasPendingTasks.pipe(U(r=>!r)),this._injector=g(Ne)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof $o;if(!this._injector.get(ag).done){let f=!o&&xy(r),p=!1;throw new _(405,p)}let a;o?a=r:a=this._injector.get(sr).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Cw(a)?void 0:this._injector.get(Dt),c=i||a.selector,l=a.create(He.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get(sg,null);return h==null||h.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Qa(this.components,l),h==null||h.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new _(101,!1);let i=P(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,P(i),this.afterTick.next()}}detectChangesInAttachedViews(r){var a,u;let i=null;this._injector.destroyed||(i=this._injector.get(ar,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;o<_w;){let c=o===0;if(r||!c){this.beforeRender.next(c);for(let{_lView:l,notifyErrorHandler:d}of this._views)Tw(l,d,c,this.zonelessEnabled)}else(a=i==null?void 0:i.begin)==null||a.call(i),(u=i==null?void 0:i.end)==null||u.call(i);if(o++,s.executeInternalCallbacks(),!this.allViews.some(({_lView:l})=>Zr(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>Zr(l))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Qa(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(ug,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Qa(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new _(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Qa(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Tw(t,e,n,r){if(!n&&!Zr(t))return;Fp(t,e,n&&!r?0:1)}var Wu=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},SP=(()=>{let e=class e{compileModuleSync(r){return new Pu(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=Jf(r),s=op(o.declarations).reduce((a,u)=>{let c=gt(u);return c&&a.push(new bn(c)),a},[]);return new Wu(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Sw=(()=>{let e=class e{constructor(){this.zone=g($),this.changeDetectionScheduler=g(or),this.applicationRef=g(li)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Aw=new m("",{factory:()=>!1});function cg({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??(t=()=>new $(lg())),[{provide:$,useFactory:t},{provide:Gr,multi:!0,useFactory:()=>{let n=g(Sw,{optional:!0});return()=>n.initialize()}},{provide:Gr,multi:!0,useFactory:()=>{let n=g(xw);return()=>{n.initialize()}}},e===!0?{provide:Vp,useValue:!0}:[]]}function AP(t){let e=t==null?void 0:t.ignoreChangesOutsideZone,n=cg({ngZoneFactory:()=>{let r=lg(t);return r.shouldCoalesceEventChangeDetection&&ze("NgZone_CoalesceEvent"),new $(r)},ignoreChangesOutsideZone:e});return as([{provide:Aw,useValue:!0},{provide:Fc,useValue:!1},n])}function lg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(t==null?void 0:t.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(t==null?void 0:t.runCoalescing)??!1}}var xw=(()=>{let e=class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=g($),this.pendingTasks=g(_n)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),r??(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Nw=(()=>{let e=class e{constructor(){this.appRef=g(li),this.taskService=g(_n),this.ngZone=g($),this.zonelessEnabled=g(Fc),this.disableScheduling=g(Vp,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof gu||!this.zoneIsDefined))}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?sf:Hh;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&$.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){var r;if(this.shouldRefreshViews=!1,this.runningTick=!1,(r=this.cancelScheduledCallback)==null||r.call(this),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ow(){return typeof $localize<"u"&&$localize.locale||Xo}var As=new m("",{providedIn:"root",factory:()=>g(As,L.Optional|L.SkipSelf)||Ow()});var dg=new m("");var So=null;function Rw(t=[],e){return He.create({name:e,providers:[{provide:us,useValue:"platform"},{provide:dg,useValue:new Set([()=>So=null])},...t]})}function Fw(t=[]){if(So)return So;let e=Rw(t);return So=e,ww(),Pw(e),e}function Pw(t){let e=t.get(vc,null);e==null||e.forEach(n=>n())}var Er=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=kw;let t=e;return t})();function kw(t){return Lw(ne(),w(),(t&16)===16)}function Lw(t,e,n){if(ds(t)&&!n){let r=Gt(t.index,e);return new En(r,r)}else if(t.type&175){let r=e[_e];return new En(r,e)}return null}var qu=class{constructor(){}supports(e){return qp(e)}create(e){return new Yu(e)}},Vw=(t,e)=>e,Yu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Vw}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new Zu(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new es),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new es),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Zu=class{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Qu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},es=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Qu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Rf(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||Ff()),deps:[[e,new ei,new lr]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new _(901,!1)}};e.\u0275prov=A({token:e,providedIn:"root",factory:Ff});let t=e;return t})();function fg(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=Fw(r),o=[cg({}),{provide:or,useExisting:Nw},...n||[]],a=new Yo({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get($);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(et,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),h=i.get(dg);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),Mw(c,u,()=>{let f=a.get(ag);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(As,Xo);iw(p||Xo);let D=a.get(li);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}var hg=new m("");function qc(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function An(t,e){ze("NgSignals");let n=Pd(t);return e!=null&&e.equal&&(n[Ve].equal=e.equal),n}function Ie(t){let e=P(null);try{return t()}finally{P(e)}}var jw=new m("",{providedIn:"root",factory:()=>g(Bw)}),Bw=(()=>{let e=class e{};e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new Ku});let t=e;return t})(),Ku=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(_n),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(e){let n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}},Ju=class{constructor(e,n,r,i,o,s){this.scheduler=e,this.effectFn=n,this.creationZone=r,this.injector=o,this.watcher=Ud(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i==null?void 0:i.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(n){let r=this.injector.get(et,null,{optional:!0});r==null||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var e;this.watcher.destroy(),(e=this.unregisterOnDestroy)==null||e.call(this)}};function di(t,e){var s;ze("NgSignals"),!(e!=null&&e.injector)&&dr(di);let n=(e==null?void 0:e.injector)??g(He),r=(e==null?void 0:e.manualCleanup)!==!0?n.get($e):null,i=new Ju(n.get(jw),t,typeof Zone>"u"?null:Zone.current,r,n,(e==null?void 0:e.allowSignalWrites)??!1),o=n.get(Er,null,{optional:!0});return!o||!(o._lView[M]&8)?i.watcher.notify():((s=o._lView)[Kn]??(s[Kn]=[])).push(i.watcher.notify),i}function pg(t,e){let n=gt(t),r=e.elementInjector||cs();return new bn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}function xP(t){let e=gt(t);if(!e)return null;let n=new bn(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var wg=null;function Mt(){return wg}function Cg(t){wg??(wg=t)}var xs=class{};var q=new m(""),il=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:()=>g(Hw),providedIn:"platform"});let t=e;return t})(),KP=new m(""),Hw=(()=>{let e=class e extends il{constructor(){super(),this._doc=g(q),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mt().getBaseHref(this._doc)}onPopState(r){let i=Mt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Mt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function ol(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function gg(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function Ct(t){return t&&t[0]!=="?"?"?"+t:t}var Rs=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:()=>g($w),providedIn:"root"});let t=e;return t})(),_g=new m(""),$w=(()=>{let e=class e extends Rs{constructor(r,i){var o;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??((o=g(q).location)==null?void 0:o.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return ol(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Ct(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Ct(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Ct(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};e.\u0275fac=function(i){return new(i||e)(N(il),N(_g,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),JP=(()=>{let e=class e extends Rs{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(r){let i=ol(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Ct(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Ct(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};e.\u0275fac=function(i){return new(i||e)(N(il),N(_g,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),zw=(()=>{let e=class e{constructor(r){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=qw(gg(mg(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var r;(r=this._urlChangeSubscription)==null||r.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+Ct(i))}normalize(r){return e.stripTrailingSlash(Ww(this._basePath,mg(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ct(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ct(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){var i,o;(o=(i=this._locationStrategy).historyGo)==null||o.call(i,r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var o;let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&((o=this._urlChangeSubscription)==null||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};e.normalizeQueryParams=Ct,e.joinWithSlash=ol,e.stripTrailingSlash=gg,e.\u0275fac=function(i){return new(i||e)(N(Rs))},e.\u0275prov=A({token:e,factory:()=>Gw(),providedIn:"root"});let t=e;return t})();function Gw(){return new zw(N(Rs))}function Ww(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function mg(t){return t.replace(/\/index.html$/,"")}function qw(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}var Mg=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Mg||{});var _t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function fi(t,e){let n=Uc(t),r=n[yr.NumberSymbols][e];if(typeof r>"u"){if(e===_t.CurrencyDecimal)return n[yr.NumberSymbols][_t.Decimal];if(e===_t.CurrencyGroup)return n[yr.NumberSymbols][_t.Group]}return r}function Yw(t,e){return Uc(t)[yr.NumberFormats][e]}var Zw=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vg=22,Ns=".",hi="0",Qw=";",Kw=",",Zc="#";function Jw(t,e,n,r,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=fi(n,_t.Infinity);else{let c=nC(t);s&&(c=tC(c));let l=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){let V=o.match(Zw);if(V===null)throw new Error(`${o} is not a valid digit info`);let K=V[1],k=V[3],we=V[5];K!=null&&(l=Qc(K)),k!=null&&(d=Qc(k)),we!=null?h=Qc(we):k!=null&&d>h&&(h=d)}rC(c,d,h);let f=c.digits,p=c.integerLen,D=c.exponent,y=[];for(u=f.every(V=>!V);p0?y=f.splice(p,f.length):(y=f,f=[0]);let v=[];for(f.length>=e.lgSize&&v.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)v.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(fi(n,r)),y.length&&(a+=fi(n,i)+y.join("")),D&&(a+=fi(n,_t.Exponential)+"+"+D)}return t<0&&!u?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function Xw(t,e,n){let r=Yw(e,Mg.Decimal),i=eC(r,fi(e,_t.MinusSign));return Jw(t,i,e,_t.Group,_t.Decimal,n)}function eC(t,e="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(Qw),i=r[0],o=r[1],s=i.indexOf(Ns)!==-1?i.split(Ns):[i.substring(0,i.lastIndexOf(hi)+1),i.substring(i.lastIndexOf(hi)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Zc));for(let l=0;l-1&&(e=e.replace(Ns,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===hi;o++);if(o===(a=e.length))r=[0],i=1;else{for(a--;e.charAt(a)===hi;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(e.charAt(o))}return i>vg&&(r=r.splice(0,vg-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function rC(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i=c?p.pop():u=!1),h>=10?1:0},0);l&&(r.unshift(l),t.integerLen++)}function Qc(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function Fs(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Kc=/\s+/,yg=[],XP=(()=>{let e=class e{constructor(r,i){this._ngEl=r,this._renderer=i,this.initialClasses=yg,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Kc):yg}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Kc):r}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let i of r)this._updateState(i,!0);else if(r!=null)for(let i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){let o=this.stateMap.get(r);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){r=r.trim(),r.length>0&&r.split(Kc).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(x(J),x(gr))},e.\u0275dir=R({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})(),ek=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(r){return r.ngComponentOutletNgModule!==void 0||r.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(r){return r.ngComponentOutlet!==void 0||r.ngComponentOutletContent!==void 0||r.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(r)}ngOnChanges(r){var i;if(this._needToReCreateComponentInstance(r)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let o=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(r)&&((i=this._moduleRef)==null||i.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Wp(this.ngComponentOutletNgModule,Dg(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Dg(o)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:o,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let r of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(r,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){var r;(r=this._moduleRef)==null||r.destroy()}_applyInputStateDiff(r){for(let[i,o]of this._inputsUsed)o?(r.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(r.setInput(i,void 0),this._inputsUsed.delete(i))}};e.\u0275fac=function(i){return new(i||e)(x(ot))},e.\u0275dir=R({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[zt]});let t=e;return t})();function Dg(t){return t.get(Dt).injector}var Jc=class{constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},iC=(()=>{let e=class e{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Jc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),Eg(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Eg(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(x(ot),x(yt),x(Wc))},e.\u0275dir=R({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Eg(t,e){t.context.$implicit=e.item}var oC=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Xc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){bg("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){bg("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(x(ot),x(yt))},e.\u0275dir=R({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Xc=class{constructor(){this.$implicit=null,this.ngIf=null}};function bg(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ue(e)}'.`)}var Os=class{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Ps=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){let i=r===this._ngSwitch;return this._lastCasesMatched||(this._lastCasesMatched=i),this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(let i of this._defaultViews)i.enforceState(r)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),Tg=(()=>{let e=class e{constructor(r,i,o){this.ngSwitch=o,o._addCase(),this._view=new Os(r,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(x(ot),x(yt),x(Ps,9))},e.\u0275dir=R({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),Sg=(()=>{let e=class e{constructor(r,i,o){o._addDefault(new Os(r,i))}};e.\u0275fac=function(i){return new(i||e)(x(ot),x(yt),x(Ps,9))},e.\u0275dir=R({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var tk=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(r,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(x(ot))},e.\u0275dir=R({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[zt]});let t=e;return t})();function Ag(t,e){return new _(2100,!1)}var el=class{createSubscription(e,n){return Ie(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){Ie(()=>e.unsubscribe())}},tl=class{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}},sC=new tl,aC=new el,nk=(()=>{let e=class e{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(Dr(r))return sC;if(Gc(r))return aC;throw Ag(e,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){var o;r===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&((o=this._ref)==null||o.markForCheck()))}};e.\u0275fac=function(i){return new(i||e)(x(Er,16))},e.\u0275pipe=ss({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var rk=(()=>{let e=class e{constructor(r){this._locale=r}transform(r,i,o){if(!uC(r))return null;o||(o=this._locale);try{let s=cC(r);return Xw(s,o,i)}catch(s){throw Ag(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(x(As,16))},e.\u0275pipe=ss({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})();function uC(t){return!(t==null||t===""||t!==t)}function cC(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var lC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({});let t=e;return t})(),sl="browser",dC="server";function fC(t){return t===sl}function ks(t){return t===dC}var ik=(()=>{let e=class e{};e.\u0275prov=A({token:e,providedIn:"root",factory:()=>fC(g(rt))?new nl(g(q),window):new rl});let t=e;return t})(),nl=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=hC(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function hC(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}var rl=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},br=class{};var gi=class{},Vs=class{},Tt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var ul=class{encodeKey(e){return xg(e)}encodeValue(e){return xg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function gC(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var mC=/%(\d[a-f0-9])/gi,vC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xg(t){return encodeURIComponent(t).replace(mC,(e,n)=>vC[n]??e)}function Ls(t){return`${t}`}var Kt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ul,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=gC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Ls):[Ls(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ls(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Ls(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var cl=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function yC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ng(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Og(t){return typeof Blob<"u"&&t instanceof Blob}function Rg(t){return typeof FormData<"u"&&t instanceof FormData}function DC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var pi=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(yC(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??(this.headers=new Tt),this.context??(this.context=new cl),!this.params)this.params=new Kt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},Jt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Jt||{}),mi=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new Tt,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},js=class t extends mi{constructor(e={}){super(e),this.type=Jt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vi=class t extends mi{constructor(e={}){super(e),this.type=Jt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Qt=class extends mi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Lg=200,EC=204;function al(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var bC=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof pi)s=r;else{let c;o.headers instanceof Tt?c=o.headers:c=new Tt(o.headers);let l;o.params&&(o.params instanceof Kt?l=o.params:l=new Kt({fromObject:o.params})),s=new pi(r,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=Le(s).pipe(Ma(c=>this.handler.handle(c)));if(r instanceof pi||o.observe==="events")return a;let u=a.pipe(qe(c=>c instanceof vi));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(U(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(U(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new Kt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,al(o,i))}post(r,i,o={}){return this.request("POST",r,al(o,i))}put(r,i,o={}){return this.request("PUT",r,al(o,i))}};e.\u0275fac=function(i){return new(i||e)(N(gi))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),IC=/^\)\]\}',?\n/,wC="X-Request-URL";function Fg(t){if(t.url)return t.url;let e=wC.toLocaleLowerCase();return t.headers.get(e)}var CC=(()=>{let e=class e{constructor(){var r;this.fetchImpl=((r=g(ll,{optional:!0}))==null?void 0:r.fetch)??fetch.bind(globalThis),this.ngZone=g($)}handle(r){return new I(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(dl,s=>i.error(new Qt({error:s}))),()=>o.abort()})}doRequest(r,i,o){return Nr(this,null,function*(){let s=this.createRequestInit(r),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,S({signal:i},s)));_C(p),o.next({type:Jt.Sent}),a=yield p}catch(p){o.error(new Qt({error:p,status:p.status??0,statusText:p.statusText,url:r.urlWithParams,headers:p.headers}));return}let u=new Tt(a.headers),c=a.statusText,l=Fg(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&o.next(new js({headers:u,status:d,statusText:c,url:l})),a.body){let p=a.headers.get("content-length"),D=[],y=a.body.getReader(),v=0,V,K,k=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Nr(this,null,function*(){for(;;){let{done:se,value:he}=yield y.read();if(se)break;if(D.push(he),v+=he.length,r.reportProgress){K=r.responseType==="text"?(K??"")+(V??(V=new TextDecoder)).decode(he,{stream:!0}):void 0;let ut=()=>o.next({type:Jt.DownloadProgress,total:p?+p:void 0,loaded:v,partialText:K});k?k.run(ut):ut()}}}));let we=this.concatChunks(D,v);try{let se=a.headers.get("Content-Type")??"";h=this.parseBody(r,we,se)}catch(se){o.error(new Qt({error:se,headers:new Tt(a.headers),status:a.status,statusText:a.statusText,url:Fg(a)??r.urlWithParams}));return}}d===0&&(d=h?Lg:0),d>=200&&d<300?(o.next(new vi({body:h,headers:u,status:d,statusText:c,url:l})),o.complete()):o.error(new Qt({error:h,headers:u,status:d,statusText:c,url:l}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(IC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),ll=class{};function dl(){}function _C(t){t.then(dl,dl)}function MC(t,e){return e(t)}function TC(t,e,n){return(r,i)=>ic(n,()=>e(r,o=>t(o,i)))}var Vg=new m(""),SC=new m(""),AC=new m("",{providedIn:"root",factory:()=>!0});var Pg=(()=>{let e=class e extends gi{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=g(_n),this.contributeToStability=g(AC)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Vg),...this.injector.get(SC,[])]));this.chain=i.reduceRight((o,s)=>TC(o,s,this.injector),MC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(so(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(N(Vs),N(Ne))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();var xC=/^\)\]\}',?\n/;function NC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var kg=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new _(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?ae(i.\u0275loadImpl()):Le(null)).pipe(Ft(()=>new I(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((y,v)=>a.setRequestHeader(y,v.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let y=r.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(r.responseType){let y=r.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let u=r.serializeBody(),c=null,l=()=>{if(c!==null)return c;let y=a.statusText||"OK",v=new Tt(a.getAllResponseHeaders()),V=NC(a)||r.url;return c=new js({headers:v,status:a.status,statusText:y,url:V}),c},d=()=>{let{headers:y,status:v,statusText:V,url:K}=l(),k=null;v!==EC&&(k=typeof a.response>"u"?a.responseText:a.response),v===0&&(v=k?Lg:0);let we=v>=200&&v<300;if(r.responseType==="json"&&typeof k=="string"){let se=k;k=k.replace(xC,"");try{k=k!==""?JSON.parse(k):null}catch(he){k=se,we&&(we=!1,k={error:he,text:k})}}we?(s.next(new vi({body:k,headers:y,status:v,statusText:V,url:K||void 0})),s.complete()):s.error(new Qt({error:k,headers:y,status:v,statusText:V,url:K||void 0}))},h=y=>{let{url:v}=l(),V=new Qt({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:v||void 0});s.error(V)},f=!1,p=y=>{f||(s.next(l()),f=!0);let v={type:Jt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),r.responseType==="text"&&a.responseText&&(v.partialText=a.responseText),s.next(v)},D=y=>{let v={type:Jt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),s.next(v)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",p),u!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(u),s.next({type:Jt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",p),u!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(N(br))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),jg=new m(""),OC="XSRF-TOKEN",RC=new m("",{providedIn:"root",factory:()=>OC}),FC="X-XSRF-TOKEN",PC=new m("",{providedIn:"root",factory:()=>FC}),Bs=class{},kC=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fs(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(N(q),N(rt),N(RC))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();function LC(t,e){let n=t.url.toLowerCase();if(!g(jg)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=g(Bs).getToken(),i=g(PC);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function yk(...t){let e=[bC,kg,Pg,{provide:gi,useExisting:Pg},{provide:Vs,useFactory:()=>g(CC,{optional:!0})??g(kg)},{provide:Vg,useValue:LC,multi:!0},{provide:jg,useValue:!0},{provide:Bs,useClass:kC}];for(let n of t)e.push(...n.\u0275providers);return as(e)}var pl=class extends xs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},gl=class t extends pl{static makeCurrent(){Cg(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=VC();return n==null?null:jC(n)}resetBaseElement(){yi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Fs(document.cookie,e)}},yi=null;function VC(){return yi=yi||document.querySelector("base"),yi?yi.getAttribute("href"):null}function jC(t){return new URL(t,document.baseURI).pathname}var BC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Us=new m(""),$g=(()=>{let e=class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new _(5101,!1);return this._eventNameToPlugin.set(r,i),i}};e.\u0275fac=function(i){return new(i||e)(N(Us),N($))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Di=class{constructor(e){this._doc=e}},fl="ng-app-id",zg=(()=>{let e=class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ks(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll(`style[${fl}="${this.appId}"]`);if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(fl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(fl,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var u;let o=this.getStyleElement(r,i),s=this.styleRef,a=(u=s.get(i))==null?void 0:u.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(N(q),N(mc),N(yc,8),N(rt))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),hl={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"},vl=/%COMP%/g,Gg="%COMP%",UC=`_nghost-${Gg}`,HC=`_ngcontent-${Gg}`,$C=!0,zC=new m("",{providedIn:"root",factory:()=>$C});function GC(t){return HC.replace(vl,t)}function WC(t){return UC.replace(vl,t)}function Wg(t,e){return e.map(n=>n.replace(vl,t))}var Bg=(()=>{let e=class e{constructor(r,i,o,s,a,u,c,l=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ks(u),this.defaultRenderer=new Ei(r,a,c,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ke.ShadowDom&&(i=j(S({},i),{encapsulation:Ke.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Hs?o.applyToHost(r):o instanceof bi&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Ke.Emulated:s=new Hs(c,l,i,this.appId,d,a,u,h);break;case Ke.ShadowDom:return new ml(c,l,r,i,a,u,this.nonce,h);default:s=new bi(c,l,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(N($g),N(zg),N(mc),N(zC),N(q),N(rt),N($),N(yc))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Ei=class{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(hl[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(Ug(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(Ug(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=hl[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=hl[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(vt.DashCase|vt.Important)?e.style.setProperty(n,r,i&vt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&vt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=Mt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function Ug(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ml=class extends Ei{constructor(e,n,r,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Wg(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bi=class extends Ei{constructor(e,n,r,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?Wg(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Hs=class extends bi{constructor(e,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(e,n,r,o,s,a,u,c),this.contentAttr=GC(c),this.hostAttr=WC(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},qC=(()=>{let e=class e extends Di{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),YC=(()=>{let e=class e extends Di{constructor(r){super(r),this.delegate=g(hg,{optional:!0})}supports(r){return this.delegate?this.delegate.supports(r):!1}addEventListener(r,i,o){return this.delegate.addEventListener(r,i,o)}removeEventListener(r,i,o){return this.delegate.removeEventListener(r,i,o)}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Hg=["alt","control","meta","shift"],ZC={"\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"},QC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KC=(()=>{let e=class e extends Di{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Hg.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(r,i){let o=ZC[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Hg.forEach(a=>{if(a!==o){let u=QC[a];u(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();function $k(t,e){return fg(S({rootComponent:t},JC(e)))}function JC(t){return{appProviders:[...r0,...(t==null?void 0:t.providers)??[]],platformProviders:n0}}function XC(){gl.makeCurrent()}function e0(){return new et}function t0(){return Zh(document),document}var n0=[{provide:rt,useValue:sl},{provide:vc,useValue:XC,multi:!0},{provide:q,useFactory:t0,deps:[]}];var r0=[{provide:us,useValue:"root"},{provide:et,useFactory:e0,deps:[]},{provide:Us,useClass:qC,multi:!0,deps:[q,$,rt]},{provide:Us,useClass:KC,multi:!0,deps:[q]},{provide:Us,useClass:YC,multi:!0},Bg,zg,$g,{provide:ar,useExisting:Bg},{provide:br,useClass:BC,deps:[]},[]];var zk=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ii(t){t||(dr(Ii),t=g($e));let e=new I(n=>t.onDestroy(n.next.bind(n)));return n=>n.pipe(Pt(e))}function i0(t,e){!(e!=null&&e.injector)&&dr(i0);let n=(e==null?void 0:e.injector)??g(He),r=new sn(1),i=di(()=>{let o;try{o=t()}catch(s){Ie(()=>r.error(s));return}Ie(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get($e).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function o0(t,e){var a;let n=!(e!=null&&e.manualCleanup);n&&!(e!=null&&e.injector)&&dr(o0);let r=n?((a=e==null?void 0:e.injector)==null?void 0:a.get($e))??g($e):null,i=s0(e==null?void 0:e.equal),o;e!=null&&e.requireSync?o=st({kind:0},{equal:i}):o=st({kind:1,value:e==null?void 0:e.initialValue},{equal:i});let s=t.subscribe({next:u=>o.set({kind:1,value:u}),error:u=>{if(e!=null&&e.rejectErrors)throw u;o.set({kind:2,error:u})}});if(e!=null&&e.requireSync&&o().kind===0)throw new _(601,!1);return r==null||r.onDestroy(s.unsubscribe.bind(s)),An(()=>{let u=o();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new _(601,!1)}},{equal:e==null?void 0:e.equal})}function s0(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}var nm=(()=>{let e=class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};e.\u0275fac=function(i){return new(i||e)(x(gr),x(J))},e.\u0275dir=R({type:e});let t=e;return t})(),Ks=(()=>{let e=class e extends nm{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,features:[le]});let t=e;return t})(),Mr=new m(""),a0={provide:Mr,useExisting:Oe(()=>u0),multi:!0},u0=(()=>{let e=class e extends Ks{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Z([a0]),le]});let t=e;return t})(),c0={provide:Mr,useExisting:Oe(()=>rm),multi:!0};function l0(){let t=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var d0=new m(""),rm=(()=>{let e=class e extends nm{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!l0())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};e.\u0275fac=function(i){return new(i||e)(x(gr),x(J),x(d0,8))},e.\u0275dir=R({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Sn("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Z([c0]),le]});let t=e;return t})();function zs(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var Ai=new m(""),Dl=new m("");function f0(t){return e=>{if(zs(e.value)||zs(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(zs(e.value)||zs(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function qg(t){return null}function im(t){return t!=null}function om(t){return Dr(t)?ae(t):t}function sm(t){let e={};return t.forEach(n=>{e=n!=null?S(S({},e),n):e}),Object.keys(e).length===0?null:e}function am(t,e){return e.map(n=>n(t))}function p0(t){return!t.validate}function um(t){return t.map(e=>p0(e)?e:n=>e.validate(n))}function g0(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(n){return sm(am(n,e))}}function El(t){return t!=null?g0(um(t)):null}function m0(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(n){let r=am(n,e).map(om);return Ca(r).pipe(U(sm))}}function bl(t){return t!=null?m0(um(t)):null}function Yg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function cm(t){return t._rawValidators}function lm(t){return t._rawAsyncValidators}function yl(t){return t?Array.isArray(t)?t:[t]:[]}function Gs(t,e){return Array.isArray(t)?t.includes(e):t===e}function Zg(t,e){let n=yl(e);return yl(t).forEach(i=>{Gs(n,i)||n.push(i)}),n}function Qg(t,e){return yl(e).filter(n=>!Gs(t,n))}var Ws=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=El(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=bl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Cr=class extends Ws{get formDirective(){return null}get path(){return null}},xn=class extends Ws{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},qs=class{constructor(e){this._cd=e}get isTouched(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._touched)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.touched)}get isUntouched(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.untouched)}get isPristine(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._pristine)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.pristine)}get isDirty(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.dirty)}get isValid(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._status)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.valid)}get isInvalid(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.invalid)}get isPending(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.pending)}get isSubmitted(){var e,n,r;return(n=(e=this._cd)==null?void 0:e._submitted)==null||n.call(e),!!((r=this._cd)!=null&&r.submitted)}},v0={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},p1=j(S({},v0),{"[class.ng-submitted]":"isSubmitted"}),g1=(()=>{let e=class e extends qs{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(x(xn,2))},e.\u0275dir=R({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Zt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[le]});let t=e;return t})(),m1=(()=>{let e=class e extends qs{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(x(Cr,10))},e.\u0275dir=R({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Zt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[le]});let t=e;return t})();var wi="VALID",$s="INVALID",Ir="PENDING",Ci="DISABLED",_r=class{},Ys=class extends _r{constructor(e,n){super(),this.value=e,this.source=n}},Mi=class extends _r{constructor(e,n){super(),this.pristine=e,this.source=n}},Ti=class extends _r{constructor(e,n){super(),this.touched=e,this.source=n}},wr=class extends _r{constructor(e,n){super(),this.status=e,this.source=n}};function Il(t){return(Js(t)?t.validators:t)||null}function y0(t){return Array.isArray(t)?El(t):t||null}function wl(t,e){return(Js(e)?e.asyncValidators:t)||null}function D0(t){return Array.isArray(t)?bl(t):t||null}function Js(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function dm(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function fm(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new _(1002,"")})}var Si=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=An(()=>this.statusReactive()),this.statusReactive=st(void 0),this._pristine=An(()=>this.pristineReactive()),this.pristineReactive=st(!0),this._touched=An(()=>this.touchedReactive()),this.touchedReactive=st(!1),this._events=new ge,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Ie(this.statusReactive)}set status(e){Ie(()=>this.statusReactive.set(e))}get valid(){return this.status===wi}get invalid(){return this.status===$s}get pending(){return this.status==Ir}get disabled(){return this.status===Ci}get enabled(){return this.status!==Ci}get pristine(){return Ie(this.pristineReactive)}set pristine(e){Ie(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Ie(this.touchedReactive)}set touched(e){Ie(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Zg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Zg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Qg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Qg(e,this._rawAsyncValidators))}hasValidator(e){return Gs(this._rawValidators,e)}hasAsyncValidator(e){return Gs(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Ti(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new Ti(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Mi(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Mi(!0,r))}markAsPending(e={}){this.status=Ir;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new wr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(j(S({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Ci,this.errors=null,this._forEachChild(i=>{i.disable(j(S({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ys(this.value,r)),this._events.next(new wr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=wi,this._forEachChild(r=>{r.enable(j(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wi||this.status===Ir)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ys(this.value,n)),this._events.next(new wr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(j(S({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ci:wi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=Ir,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=om(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){var e;if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=((e=this._hasOwnPendingAsyncValidator)==null?void 0:e.emitEvent)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new wr(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Ci:this.errors?$s:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ir)?Ir:this._anyControlsHaveStatus($s)?$s:wi}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Mi(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ti(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Js(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=y0(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=D0(this._rawAsyncValidators)}},Zs=class extends Si{constructor(e,n,r){super(Il(n),wl(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){fm(this,!0,e),Object.keys(e).forEach(r=>{dm(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var xi=new m("CallSetDisabledState",{providedIn:"root",factory:()=>Xs}),Xs="always";function E0(t,e){return[...e.path,t]}function Cl(t,e,n=Xs){var r,i;hm(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&((i=(r=e.valueAccessor).setDisabledState)==null||i.call(r,t.disabled)),w0(t,e),_0(t,e),C0(t,e),b0(t,e)}function Kg(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),I0(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Qs(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function b0(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function hm(t,e){let n=cm(t);e.validator!==null?t.setValidators(Yg(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=lm(t);e.asyncValidator!==null?t.setAsyncValidators(Yg(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Qs(e._rawValidators,i),Qs(e._rawAsyncValidators,i)}function I0(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=cm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=lm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Qs(e._rawValidators,r),Qs(e._rawAsyncValidators,r),n}function w0(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&pm(t,e)})}function C0(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&pm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function pm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _0(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function M0(t,e){t==null,hm(t,e)}function gm(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function T0(t){return Object.getPrototypeOf(t.constructor)===Ks}function S0(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function mm(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===rm?n=o:T0(o)?r=o:i=o}),i||r||n||null}var A0={provide:Cr,useExisting:Oe(()=>x0)},_i=Promise.resolve(),x0=(()=>{let e=class e extends Cr{get submitted(){return Ie(this.submittedReactive)}constructor(r,i,o){super(),this.callSetDisabledState=o,this._submitted=An(()=>this.submittedReactive()),this.submittedReactive=st(!1),this._directives=new Set,this.ngSubmit=new ee,this.form=new Zs({},El(r),bl(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(r){_i.then(()=>{let i=this._findContainer(r.path);r.control=i.registerControl(r.name,r.control),Cl(r.control,r,this.callSetDisabledState),r.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(r)})}getControl(r){return this.form.get(r.path)}removeControl(r){_i.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name),this._directives.delete(r)})}addFormGroup(r){_i.then(()=>{let i=this._findContainer(r.path),o=new Zs({});M0(o,r),i.registerControl(r.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(r){_i.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name)})}getFormGroup(r){return this.form.get(r.path)}updateModel(r,i){_i.then(()=>{this.form.get(r.path).setValue(i)})}setValue(r){this.control.setValue(r)}onSubmit(r){var i;return this.submittedReactive.set(!0),S0(this.form,this._directives),this.ngSubmit.emit(r),((i=r==null?void 0:r.target)==null?void 0:i.method)==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(r){return r.pop(),r.length?this.form.get(r):this.form}};e.\u0275fac=function(i){return new(i||e)(x(Ai,10),x(Dl,10),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&Sn("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Z([A0]),le]});let t=e;return t})();function Jg(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Xg(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var N0=class extends Si{constructor(e=null,n,r){super(Il(n),wl(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Js(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Xg(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Jg(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Jg(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Xg(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var O0={provide:xn,useExisting:Oe(()=>R0)},em=Promise.resolve(),R0=(()=>{let e=class e extends xn{constructor(r,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new N0,this._registered=!1,this.name="",this.update=new ee,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=mm(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),gm(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Cl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){em.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&qc(i);em.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?E0(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(x(Cr,9),x(Ai,10),x(Dl,10),x(Mr,10),x(Er,8),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Z([O0]),le,zt]});let t=e;return t})(),y1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),F0={provide:Mr,useExisting:Oe(()=>P0),multi:!0},P0=(()=>{let e=class e extends Ks{writeValue(r){let i=r??"";this.setProperty("value",i)}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Z([F0]),le]});let t=e;return t})();var k0={provide:Mr,useExisting:Oe(()=>L0),multi:!0},L0=(()=>{let e=class e extends Ks{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Z([k0]),le]});let t=e;return t})(),vm=new m(""),V0={provide:xn,useExisting:Oe(()=>j0)},j0=(()=>{let e=class e extends xn{set isDisabled(r){}constructor(r,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new ee,this._ngModelWarningSent=!1,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=mm(this,o)}ngOnChanges(r){if(this._isControlChanged(r)){let i=r.form.previousValue;i&&Kg(i,this,!1),Cl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}gm(r,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kg(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_isControlChanged(r){return r.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(x(Ai,10),x(Dl,10),x(Mr,10),x(vm,8),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Z([V0]),le,zt]});let t=e;return t})();function ym(t){return typeof t=="number"?t:parseFloat(t)}var Dm=(()=>{let e=class e{constructor(){this._validator=qg}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):qg,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,features:[zt]});let t=e;return t})(),B0={provide:Ai,useExisting:Oe(()=>U0),multi:!0},U0=(()=>{let e=class e extends Dm{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=r=>ym(r),this.createValidator=r=>h0(r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[Z([B0]),le]});let t=e;return t})(),H0={provide:Ai,useExisting:Oe(()=>$0),multi:!0},$0=(()=>{let e=class e extends Dm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=r=>ym(r),this.createValidator=r=>f0(r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[Z([H0]),le]});let t=e;return t})();var Em=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({});let t=e;return t})(),tm=class extends Si{constructor(e,n,r){super(Il(n),wl(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){fm(this,!1,e),e.forEach((r,i)=>{dm(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var D1=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:xi,useValue:r.callSetDisabledState??Xs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({imports:[Em]});let t=e;return t})(),E1=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:vm,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:xi,useValue:r.callSetDisabledState??Xs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({imports:[Em]});let t=e;return t})();function C1(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}var _1=(t,e)=>t.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi,e);function Q(t){return de(()=>t)}function de(t){return new m("",{factory:t})}function _l(t){return typeof t=="string"}function z0(t,e,n,r={self:!0}){let i=Ms(n)?n:st(n),o=g(t,r),s=o[`${e.toString()}Change`],a;return di(()=>{var c,l;let u=i();a!==u&&(Ms(o[e])?o[e].set(u):o[e]=u,(c=o.ngOnChanges)==null||c.call(o,{}),(l=s==null?void 0:s.emit)==null||l.call(s,u),a=u)},{allowSignalWrites:!0}),i}function Im(t){let e=[];return t.find((n,r,i)=>(e=i,!0)),e}function M1(t){return typeof t=="number"}function Ml(t){return t!=null}function T1(t,e,n){return t===null?e===null:e===null?!1:n(t,e)}function Tl(t,e,n=!1){return{provide:t,useExisting:e,multi:n}}function Nn(t,e,n){return{provide:t,deps:[[new lr,new ei,t]],useFactory:r=>S(S({},r||n),e)}}function G0(t){let e=[],n=!1,r;return function(...o){return n&&e.length===o.length&&o.every((a,u)=>a===e[u])||(e=o,r=t.apply(this,o),n=!0),r}}function bm(t,e,n=!0){return function(){let i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function W0(t,e,n){if(typeof t=="function"){let u=e;if(u.kind==="getter")return bm(t,u.name);if(u.kind==="method")return G0(t);throw new ea}let{get:r,enumerable:i,value:o}=n,s=e;if(r)return{configurable:!0,enumerable:i,get:bm(r,s,i)};if(typeof o!="function")throw new ea;let a=o;return{configurable:!0,enumerable:i,get(){let u=[],c=!1,l,d=(...h)=>(c&&u.length===h.length&&h.every((p,D)=>p===u[D])||(u=h,l=a.apply(this,h),c=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var ea=class extends Error{constructor(){super("")}};function S1(t){return`${t}px`}var q0=de(()=>{let t=new Map;return g($e).onDestroy(()=>t.forEach(e=>e.destroy())),t});function Ge(t){let e=g(q0),n=g(Ne);e.has(t)||e.set(t,pg(t,{environmentInjector:n}))}var wm={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},O1=new Qr,R1=[],F1=()=>{},P1=j(S({},wm),{toJSON:()=>wm}),k1=()=>!1,L1=()=>!0;function Y0(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}var V1=(t,e)=>t===e||Y0(t,e);var j1={acceptNode(t){return"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},Ni="\xA0",Cm="\u2013";var B1="-",U1="\u2212",H1="+";var $1="4.0.0-rc.7";function On(t,e,n){return Math.min(n,Math.max(e,t))}function Oi(t,e,n){return t>=e&&t=n?n:Math.round(t)}var Z0=292;function na(t,e,n){if(t===1/0)return t;e=Math.min(e,Z0);let r=`${t}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+e}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-e}`}function Q0(t,e=0){return na(t,e,Math.round)}function K0(t,e=0){return na(t,e,Math.ceil)}function J0(t,e=0){return na(t,e,Math.floor)}function X0(t,e=0){return na(t,e,Math.trunc)}function W1({value:t,precision:e,method:n}){switch(n){case"round":return Q0(t,e);case"ceil":return K0(t,e);case"floor":return J0(t,e);default:return X0(t,e)}}function q1(...t){return t.reduce((e,n)=>e+n,0)}function K1(t,e,n){return n&&nt?e:t}var J1=7;var Tr=12,ra=1,Sl=0,Al=11,xl=0,Nl=9999,ia=`${Ni}${Cm}${Ni}`,e_=1e3,t_=60,n_=60,r_=24,i_=e_*t_,o_=i_*n_,X1=o_*r_,Ol=10,s_=2*Ol+ia.length,oa={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},St={January:0,February:1,March:2,April:3,May:4,June:5,July:6,August:7,September:8,October:9,November:10,December:11},Fe=class t{constructor(e){this.year=e}static isValidYear(e){return Number.isInteger(e)&&Oi(e,xl,Nl+1)}static isLeapYear(e){return e%400===0||e%4===0&&e%100!==0}static getAbsoluteLeapYears(e){return Math.ceil(e/400)+(Math.ceil(e/4)-Math.ceil(e/100))}static lengthBetween(e,n){return n.year-e.year}static normalizeYearPart(e){return ta(e,xl,Nl)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return t.isLeapYear(this.year)}get absoluteLeapYears(){return t.getAbsoluteLeapYears(this.year)}yearBefore({year:e}){return this.year=e}yearAfter({year:e}){return this.year>e}append({year:e=0}){let n=this.year+e;return new t(n)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}toJSON(){return this.formattedYear}},Te=class t extends Fe{constructor(e,n){super(e),this.month=n}static isValidMonth(e,n){return Fe.isValidYear(e)&&t.isValidMonthPart(n)}static getMonthDaysCount(e,n){switch(e){case St.February:return n?29:28;case St.April:case St.June:case St.September:case St.November:return 30;default:return 31}}static currentLocal(){let e=new Date;return new t(e.getFullYear(),e.getMonth())}static currentUtc(){let e=new Date;return new t(e.getUTCFullYear(),e.getUTCMonth())}static lengthBetween(e,n){let r=e.month+e.year*12;return n.month+n.year*12-r}static normalizeMonthPart(e){return ta(e,Sl,Al)}static isValidMonthPart(e){return Number.isInteger(e)&&Oi(e,Sl,Al+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:e=0,month:n=0}){let r=(this.year+e)*Tr+this.month+n;return new t(Math.floor(r/Tr),r%Tr)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}},Sr=class t extends Te{constructor(e,n,r){super(e,n),this.day=r}static fromLocalNativeDate(e){return new t(e.getFullYear(),e.getMonth(),e.getDate())}static fromUtcNativeDate(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}static isValidDay(e,n,r){return Te.isValidMonth(e,n)&&Number.isInteger(r)&&Oi(r,ra,Te.getMonthDaysCount(n,Fe.isLeapYear(e))+1)}static currentLocal(){let e=new Date,n=e.getFullYear(),r=e.getMonth(),i=e.getDate();return new t(n,r,i)}static currentUtc(){let e=new Date,n=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate();return new t(n,r,i)}static normalizeOf(e,n,r){let i=Fe.normalizeYearPart(e),o=Te.normalizeMonthPart(n),s=t.normalizeDayPart(r,o,i);return new t(i,o,s)}static lengthBetween(e,n){return Math.round((n.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(e,n="DMY"){switch(n){case"YMD":return{day:parseInt(e.slice(8,10),10),month:parseInt(e.slice(5,7),10)-1,year:parseInt(e.slice(0,4),10)};case"MDY":return{day:parseInt(e.slice(3,5),10),month:parseInt(e.slice(0,2),10)-1,year:parseInt(e.slice(6,10),10)};case"DMY":default:return{day:parseInt(e.slice(0,2),10),month:parseInt(e.slice(3,5),10)-1,year:parseInt(e.slice(6,10),10)}}}static normalizeParse(e,n="DMY"){let{day:r,month:i,year:o}=this.parseRawDateString(e,n);return t.normalizeOf(o,i,r)}static jsonParse(e){let{day:n,month:r,year:i}=this.parseRawDateString(e,"YMD");if(!Te.isValidMonth(i,r)||!Number.isInteger(n)||!Oi(n,ra,Te.getMonthDaysCount(r,Fe.isLeapYear(i))+1))throw new Rl(i,r,n);return new t(i,r,n)}static normalizeDayPart(e,n,r){let i=Te.getMonthDaysCount(n,Fe.isLeapYear(r));return ta(e,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let e=this.dayOfWeek(!1);return e===oa.Saturday||e===oa.Sunday}dayOfWeek(e=!0){let n=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return n<0?6:n}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,n){return e!==null&&this.dayBefore(e)?e:n!==null&&this.dayAfter(n)?n:this}append({year:e=0,month:n=0,day:r=0}){let i=(this.year+e)*Tr+this.month+n,o=Math.floor(i/Tr),s=i%Tr,a=Math.min(this.day,Te.getMonthDaysCount(s,Fe.isLeapYear(o)))+r;for(;a>Te.getMonthDaysCount(s,Fe.isLeapYear(o));)a-=Te.getMonthDaysCount(s,Fe.isLeapYear(o)),s===St.December?(o++,s=St.January):s++;for(;aMm}),Sm=new m("[TUI_LANGUAGE]",{factory:()=>Le(g(Tm))}),h_=new m("[TUI_LANGUAGE_LOADER]"),p_=new m("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var Pl=new m("[WA_WINDOW]",{factory:()=>{let{defaultView:t}=g(q);if(!t)throw new Error("Window is not available");return t}}),fe=Pl,fL=new m("[WA_ANIMATION_FRAME]",{factory:()=>{let{requestAnimationFrame:t,cancelAnimationFrame:e}=g(fe);return new I(r=>{let i=NaN,o=s=>{r.next(s),i=t(o)};return i=t(o),()=>{e(i)}}).pipe(un())}});var hL=new m("[WA_CACHES]",{factory:()=>g(fe).caches});var pL=new m("[WA_CRYPTO]",{factory:()=>g(fe).crypto});var gL=new m("[WA_CSS]",{factory:()=>g(fe).CSS??{escape:t=>t,supports:()=>!1}});var mL=new m("[WA_HISTORY]",{factory:()=>g(fe).history});var g_=new m("[WA_LOCAL_STORAGE]",{factory:()=>g(fe).localStorage}),vL=g_,yL=new m("[WA_LOCATION]",{factory:()=>g(fe).location});var Am=new m("[WA_NAVIGATOR]",{factory:()=>g(fe).navigator}),xm=Am,DL=new m("[WA_MEDIA_DEVICES]",{factory:()=>g(xm).mediaDevices});var EL=new m("[WA_NETWORK_INFORMATION]",{factory:()=>g(Am).connection||null});var bL=new m("[WA_PAGE_VISIBILITY]",{factory:()=>{let t=g(q);return dt(t,"visibilitychange").pipe(on(0),U(()=>t.visibilityState!=="hidden"),io(),ao({refCount:!1,bufferSize:1}))}});var IL=new m("[WA_PERFORMANCE]",{factory:()=>g(fe).performance});var wL=new m("[WA_SCREEN]",{factory:()=>g(fe).screen});var CL=new m("[WA_SESSION_STORAGE]",{factory:()=>g(fe).sessionStorage});var _L=new m("[WA_SPEECH_RECOGNITION]: [SPEECH_RECOGNITION]",{factory:()=>{let t=g(fe);return t.speechRecognition||t.webkitSpeechRecognition||null}});var ML=new m("[WA_SPEECH_SYNTHESIS]",{factory:()=>g(fe).speechSynthesis});var TL=new m("[WA_USER_AGENT]",{factory:()=>g(xm).userAgent});function Rn(t){return()=>g(Sm).pipe(U(e=>e[t]))}function BL(t){return new I(e=>{if(!(t!=null&&t.valueChanges))throw new kl;return t.valueChanges.pipe(on(t.value)).subscribe(e)})}var kl=class extends Error{constructor(){super("")}};function At(t,e,n={}){return dt(t,e,n)}function UL(t,e=Boolean){return Or(Ft(n=>e(n)?t(n):Se))}function HL(t){return t.changes.pipe(on(null),U(()=>Im(t)))}function $L(t){return At(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function zL(t){return Or(Pt(_a.pipe(Ii(t),Lr(()=>Se),Ot(null))))}function GL(t){return Vr(()=>t.markForCheck())}function m_(t){return e=>new I(n=>e.subscribe({next:r=>t.run(()=>n.next(r)),error:r=>t.run(()=>n.error(r)),complete:()=>t.run(()=>n.complete())}))}function Ll(t){return e=>new I(n=>t.runOutsideAngular(()=>e.subscribe(n)))}function WL(t){return Or(Ll(t),m_(t))}var v_=de(()=>{var t,e;return((e=(t=g(q).defaultView)==null?void 0:t.matchMedia)==null?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)??!1}),rV=de(()=>g(v_)?0:1),y_=Q("assets/taiga-ui/icons");var D_={check:"@tui.check",close:"@tui.x",error:"@tui.circle-alert",more:"@tui.chevron-right"},iV=Q(D_);var E_={mode:"DMY",separator:"."},oV=Q(Le(E_));var sV=Q(t=>t.isWeekend?"weekend":"weekday"),aV=Q(oa.Monday),uV=de(Rn("months")),cV=de(Rn("close")),lV=de(Rn("nothingFoundMessage")),dV=de(Rn("defaultErrorMessage")),fV=de(Rn("spinTexts")),hV=de(Rn("shortWeekDays")),sa=Q(""),aa=Q(""),b_=Q({});var I_=de(()=>{let t=g(y_);return e=>!e||e.includes("/")?e:`${t}/${e.replace("@tui.","").split(".").join("/")}.svg`});function ua(){let t=g(b_),e=g(I_);return n=>t[n]||e(n)}var pV=Q({mobile:768,desktopSmall:1024,desktopLarge:1280}),Om={precision:NaN,decimalSeparator:",",thousandSeparator:Ni,rounding:"truncate",decimalMode:"pad"},Nm=Q(Le(Om));function gV(t){return{provide:Nm,deps:[[new lr,new ei,Nm]],useFactory:e=>(e||Le(Om)).pipe(U(n=>S(S({},n),t)))}}var mV=de(()=>new J(g(q).documentElement)),vV=de(()=>{let t=g(q);return zn(At(t,"selectionchange"),At(t,"mouseup"),At(t,"mousedown").pipe(Ft(()=>At(t,"mousemove").pipe(Pt(At(t,"mouseup"))))),At(t,"keydown"),At(t,"keyup")).pipe(un())}),yV=Q({decrement:"@tui.chevron-left",increment:"@tui.chevron-right"}),DV=Q("Taiga UI"),EV=de(()=>{let t=g(Pl);return{type:"viewport",getClientRect(){let e={top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight,x:0,y:0};return j(S({},e),{toJSON:()=>JSON.stringify(e)})}}});var Rm=(()=>{let e=class e{constructor(){this.resolver=ua(),this.icon=g(sa,{self:!0,optional:!0})||g(aa,{self:!0,optional:!0})||"",this.background=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["tui-icon"]],hostVars:4,hostBindings:function(i,o){i&2&&wt("--t-mask","url("+o.resolver(o.icon)+")")("--t-mask-bg",o.background?"url("+o.resolver(o.background)+")":null)},inputs:{icon:"icon",background:"background"},standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`tui-icon{position:relative;display:inline-block;width:1em;height:1em;font-size:1.5rem;flex-shrink:0;vertical-align:middle;box-sizing:border-box;-webkit-mask:var(--t-mask-bg) no-repeat center / contain;mask:var(--t-mask-bg) no-repeat center / contain}tui-icon:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor} -`],encapsulation:2,changeDetection:0});let t=e;return t})();function FV(t,e){try{return t.contains(e)||!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}catch{return!1}}function w_(t){return t.matches("input")}function C_(t){return t.matches("textarea")}function __(t){return w_(t)||C_(t)}function PV(t){return!!t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function M_(t){return!!t&&t instanceof t.ownerDocument.defaultView.HTMLElement}function kV(t){return t.composedPath()[0]}function T_(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}function LV(t){let{ownerDocument:e}=t;if(!(e!=null&&e.defaultView)||!t.getBoundingClientRect)return null;let{innerWidth:n,innerHeight:r}=e.defaultView,i=T_(t),o=t.getBoundingClientRect();if(o.width===0&&o.height===0)return null;let s=On(Math.round(o.left)+2,0,n),a=On(Math.round(o.top)+2,0,r),u=On(Math.round(o.right)-2,0,n),c=On(Math.round(o.bottom)-2,0,r),l=On(Math.round(o.left+o.width/2),0,n),d=On(Math.round(o.top+o.height/2),0,r),f=[i.elementFromPoint(l,a),i.elementFromPoint(l,c),i.elementFromPoint(s,d),i.elementFromPoint(u,d)].filter(Ml);if(!f.length)return[];let p=f.filter(D=>!t.contains(D)&&!D.contains(t));return p.length===4?p:null}function VV(t,e){let{offsetTop:n,offsetLeft:r,offsetParent:i}=e;for(;M_(i)&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Fm(){return g(J).nativeElement}function jV(t){return __(t)&&!t.readOnly||!!t.isContentEditable}function BV(t=0,e=0){let n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return j(S({},n),{toJSON:()=>n})}function UV(t){return"explicitOriginalTarget"in t?(t==null?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?t.pointerId===-1:"detail"in t&&"webkitForce"in t?(t==null?void 0:t.detail)===0:!1}var S_={appearance:""},Pm=Q(S_);function Ar(t){return Tl(Pm,t)}var A_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-appearance"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiAppearance]{transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;-webkit-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem}[tuiAppearance]:focus-visible:not([data-focus=false]){outline-color:var(--tui-border-focus)}[tuiAppearance][data-focus=true]{outline-color:var(--tui-border-focus)}[tuiAppearance]:disabled:not([data-state]),[tuiAppearance][data-state=disabled]{pointer-events:none;opacity:var(--tui-disabled-opacity)} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),x_=(()=>{let e=class e{constructor(){this.nothing=Ge(A_),this.tuiAppearance=g(Pm).appearance,this.tuiAppearanceState=null,this.tuiAppearanceFocus=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["","tuiAppearance",""]],hostAttrs:["tuiAppearance",""],hostVars:3,hostBindings:function(i,o){i&2&&Ee("data-appearance",o.tuiAppearance)("data-state",o.tuiAppearanceState)("data-focus",o.tuiAppearanceFocus)},inputs:{tuiAppearance:"tuiAppearance",tuiAppearanceState:"tuiAppearanceState",tuiAppearanceFocus:"tuiAppearanceFocus"},standalone:!0});let t=e;return t})();var xr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,standalone:!0,features:[at([{directive:x_,inputs:["tuiAppearance","appearance","tuiAppearanceState","tuiAppearanceState","tuiAppearanceFocus","tuiAppearanceFocus"]}])]});let t=e;return t})();var N_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-icons"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiIcons]:before,[tuiIcons]:after{font-size:1.5rem}[tuiIcons]._icon-start:before,[tuiIcons]._icon-end:after{content:"";width:1em;height:1em;flex-shrink:0;background:currentColor;-webkit-mask:var(--t-mask-start) no-repeat center / contain;mask:var(--t-mask-start) no-repeat center / contain}[tuiIcons]._icon-end:after{-webkit-mask:var(--t-mask-end) no-repeat center / contain;mask:var(--t-mask-end) no-repeat center / contain} +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var ul=class{encodeKey(e){return xg(e)}encodeValue(e){return xg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function gC(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var mC=/%(\d[a-f0-9])/gi,vC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xg(t){return encodeURIComponent(t).replace(mC,(e,n)=>vC[n]??e)}function Ls(t){return`${t}`}var Kt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ul,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=gC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Ls):[Ls(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Ls(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Ls(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var cl=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function yC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ng(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Og(t){return typeof Blob<"u"&&t instanceof Blob}function Rg(t){return typeof FormData<"u"&&t instanceof FormData}function DC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var pi=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(yC(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??(this.headers=new Tt),this.context??(this.context=new cl),!this.params)this.params=new Kt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},Jt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Jt||{}),mi=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new Tt,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},js=class t extends mi{constructor(e={}){super(e),this.type=Jt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vi=class t extends mi{constructor(e={}){super(e),this.type=Jt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Qt=class extends mi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Lg=200,EC=204;function al(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var bC=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof pi)s=r;else{let c;o.headers instanceof Tt?c=o.headers:c=new Tt(o.headers);let l;o.params&&(o.params instanceof Kt?l=o.params:l=new Kt({fromObject:o.params})),s=new pi(r,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=Le(s).pipe(Ma(c=>this.handler.handle(c)));if(r instanceof pi||o.observe==="events")return a;let u=a.pipe(qe(c=>c instanceof vi));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(U(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(U(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new Kt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,al(o,i))}post(r,i,o={}){return this.request("POST",r,al(o,i))}put(r,i,o={}){return this.request("PUT",r,al(o,i))}};e.\u0275fac=function(i){return new(i||e)(N(gi))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),IC=/^\)\]\}',?\n/,wC="X-Request-URL";function Fg(t){if(t.url)return t.url;let e=wC.toLocaleLowerCase();return t.headers.get(e)}var CC=(()=>{let e=class e{constructor(){var r;this.fetchImpl=((r=g(ll,{optional:!0}))==null?void 0:r.fetch)??fetch.bind(globalThis),this.ngZone=g($)}handle(r){return new I(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(dl,s=>i.error(new Qt({error:s}))),()=>o.abort()})}doRequest(r,i,o){return Nr(this,null,function*(){let s=this.createRequestInit(r),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,S({signal:i},s)));_C(p),o.next({type:Jt.Sent}),a=yield p}catch(p){o.error(new Qt({error:p,status:p.status??0,statusText:p.statusText,url:r.urlWithParams,headers:p.headers}));return}let u=new Tt(a.headers),c=a.statusText,l=Fg(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&o.next(new js({headers:u,status:d,statusText:c,url:l})),a.body){let p=a.headers.get("content-length"),D=[],y=a.body.getReader(),v=0,V,K,k=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Nr(this,null,function*(){for(;;){let{done:se,value:he}=yield y.read();if(se)break;if(D.push(he),v+=he.length,r.reportProgress){K=r.responseType==="text"?(K??"")+(V??(V=new TextDecoder)).decode(he,{stream:!0}):void 0;let ut=()=>o.next({type:Jt.DownloadProgress,total:p?+p:void 0,loaded:v,partialText:K});k?k.run(ut):ut()}}}));let we=this.concatChunks(D,v);try{let se=a.headers.get("Content-Type")??"";h=this.parseBody(r,we,se)}catch(se){o.error(new Qt({error:se,headers:new Tt(a.headers),status:a.status,statusText:a.statusText,url:Fg(a)??r.urlWithParams}));return}}d===0&&(d=h?Lg:0),d>=200&&d<300?(o.next(new vi({body:h,headers:u,status:d,statusText:c,url:l})),o.complete()):o.error(new Qt({error:h,headers:u,status:d,statusText:c,url:l}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(IC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),ll=class{};function dl(){}function _C(t){t.then(dl,dl)}function MC(t,e){return e(t)}function TC(t,e,n){return(r,i)=>ic(n,()=>e(r,o=>t(o,i)))}var Vg=new m(""),SC=new m(""),AC=new m("",{providedIn:"root",factory:()=>!0});var Pg=(()=>{let e=class e extends gi{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=g(_n),this.contributeToStability=g(AC)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Vg),...this.injector.get(SC,[])]));this.chain=i.reduceRight((o,s)=>TC(o,s,this.injector),MC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(so(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(N(Vs),N(Ne))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();var xC=/^\)\]\}',?\n/;function NC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var kg=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new _(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?ae(i.\u0275loadImpl()):Le(null)).pipe(Ft(()=>new I(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((y,v)=>a.setRequestHeader(y,v.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let y=r.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(r.responseType){let y=r.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let u=r.serializeBody(),c=null,l=()=>{if(c!==null)return c;let y=a.statusText||"OK",v=new Tt(a.getAllResponseHeaders()),V=NC(a)||r.url;return c=new js({headers:v,status:a.status,statusText:y,url:V}),c},d=()=>{let{headers:y,status:v,statusText:V,url:K}=l(),k=null;v!==EC&&(k=typeof a.response>"u"?a.responseText:a.response),v===0&&(v=k?Lg:0);let we=v>=200&&v<300;if(r.responseType==="json"&&typeof k=="string"){let se=k;k=k.replace(xC,"");try{k=k!==""?JSON.parse(k):null}catch(he){k=se,we&&(we=!1,k={error:he,text:k})}}we?(s.next(new vi({body:k,headers:y,status:v,statusText:V,url:K||void 0})),s.complete()):s.error(new Qt({error:k,headers:y,status:v,statusText:V,url:K||void 0}))},h=y=>{let{url:v}=l(),V=new Qt({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:v||void 0});s.error(V)},f=!1,p=y=>{f||(s.next(l()),f=!0);let v={type:Jt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),r.responseType==="text"&&a.responseText&&(v.partialText=a.responseText),s.next(v)},D=y=>{let v={type:Jt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),s.next(v)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",p),u!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(u),s.next({type:Jt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",p),u!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(N(br))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),jg=new m(""),OC="XSRF-TOKEN",RC=new m("",{providedIn:"root",factory:()=>OC}),FC="X-XSRF-TOKEN",PC=new m("",{providedIn:"root",factory:()=>FC}),Bs=class{},kC=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=Fs(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(N(q),N(rt),N(RC))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();function LC(t,e){let n=t.url.toLowerCase();if(!g(jg)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=g(Bs).getToken(),i=g(PC);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function yk(...t){let e=[bC,kg,Pg,{provide:gi,useExisting:Pg},{provide:Vs,useFactory:()=>g(CC,{optional:!0})??g(kg)},{provide:Vg,useValue:LC,multi:!0},{provide:jg,useValue:!0},{provide:Bs,useClass:kC}];for(let n of t)e.push(...n.\u0275providers);return as(e)}var pl=class extends xs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},gl=class t extends pl{static makeCurrent(){Cg(new t)}onAndCancel(e,n,r){return e.addEventListener(n,r),()=>{e.removeEventListener(n,r)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=VC();return n==null?null:jC(n)}resetBaseElement(){yi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Fs(document.cookie,e)}},yi=null;function VC(){return yi=yi||document.querySelector("base"),yi?yi.getAttribute("href"):null}function jC(t){return new URL(t,document.baseURI).pathname}var BC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Us=new m(""),$g=(()=>{let e=class e{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new _(5101,!1);return this._eventNameToPlugin.set(r,i),i}};e.\u0275fac=function(i){return new(i||e)(N(Us),N($))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Di=class{constructor(e){this._doc=e}},fl="ng-app-id",zg=(()=>{let e=class e{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ks(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll(`style[${fl}="${this.appId}"]`);if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(fl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(fl,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var u;let o=this.getStyleElement(r,i),s=this.styleRef,a=(u=s.get(i))==null?void 0:u.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(N(q),N(mc),N(yc,8),N(rt))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),hl={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"},vl=/%COMP%/g,Gg="%COMP%",UC=`_nghost-${Gg}`,HC=`_ngcontent-${Gg}`,$C=!0,zC=new m("",{providedIn:"root",factory:()=>$C});function GC(t){return HC.replace(vl,t)}function WC(t){return UC.replace(vl,t)}function Wg(t,e){return e.map(n=>n.replace(vl,t))}var Bg=(()=>{let e=class e{constructor(r,i,o,s,a,u,c,l=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ks(u),this.defaultRenderer=new Ei(r,a,c,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ke.ShadowDom&&(i=j(S({},i),{encapsulation:Ke.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Hs?o.applyToHost(r):o instanceof bi&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Ke.Emulated:s=new Hs(c,l,i,this.appId,d,a,u,h);break;case Ke.ShadowDom:return new ml(c,l,r,i,a,u,this.nonce,h);default:s=new bi(c,l,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(N($g),N(zg),N(mc),N(zC),N(q),N(rt),N($),N(yc))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Ei=class{constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(hl[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(Ug(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(Ug(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=hl[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=hl[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(vt.DashCase|vt.Important)?e.style.setProperty(n,r,i&vt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&vt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r){if(typeof e=="string"&&(e=Mt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(r))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function Ug(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ml=class extends Ei{constructor(e,n,r,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Wg(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bi=class extends Ei{constructor(e,n,r,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?Wg(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Hs=class extends bi{constructor(e,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(e,n,r,o,s,a,u,c),this.contentAttr=GC(c),this.hostAttr=WC(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},qC=(()=>{let e=class e extends Di{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),YC=(()=>{let e=class e extends Di{constructor(r){super(r),this.delegate=g(hg,{optional:!0})}supports(r){return this.delegate?this.delegate.supports(r):!1}addEventListener(r,i,o){return this.delegate.addEventListener(r,i,o)}removeEventListener(r,i,o){return this.delegate.removeEventListener(r,i,o)}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})(),Hg=["alt","control","meta","shift"],ZC={"\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"},QC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KC=(()=>{let e=class e extends Di{constructor(r){super(r)}supports(r){return e.parseEventName(r)!=null}addEventListener(r,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Hg.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(r,i){let o=ZC[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Hg.forEach(a=>{if(a!==o){let u=QC[a];u(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{e.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let t=e;return t})();function $k(t,e){return fg(S({rootComponent:t},JC(e)))}function JC(t){return{appProviders:[...r0,...(t==null?void 0:t.providers)??[]],platformProviders:n0}}function XC(){gl.makeCurrent()}function e0(){return new et}function t0(){return Zh(document),document}var n0=[{provide:rt,useValue:sl},{provide:vc,useValue:XC,multi:!0},{provide:q,useFactory:t0,deps:[]}];var r0=[{provide:us,useValue:"root"},{provide:et,useFactory:e0,deps:[]},{provide:Us,useClass:qC,multi:!0,deps:[q,$,rt]},{provide:Us,useClass:KC,multi:!0,deps:[q]},{provide:Us,useClass:YC,multi:!0},Bg,zg,$g,{provide:ar,useExisting:Bg},{provide:br,useClass:BC,deps:[]},[]];var zk=(()=>{let e=class e{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};e.\u0275fac=function(i){return new(i||e)(N(q))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ii(t){t||(dr(Ii),t=g($e));let e=new I(n=>t.onDestroy(n.next.bind(n)));return n=>n.pipe(Pt(e))}function i0(t,e){!(e!=null&&e.injector)&&dr(i0);let n=(e==null?void 0:e.injector)??g(He),r=new sn(1),i=di(()=>{let o;try{o=t()}catch(s){Ie(()=>r.error(s));return}Ie(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get($e).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function o0(t,e){var a;let n=!(e!=null&&e.manualCleanup);n&&!(e!=null&&e.injector)&&dr(o0);let r=n?((a=e==null?void 0:e.injector)==null?void 0:a.get($e))??g($e):null,i=s0(e==null?void 0:e.equal),o;e!=null&&e.requireSync?o=st({kind:0},{equal:i}):o=st({kind:1,value:e==null?void 0:e.initialValue},{equal:i});let s=t.subscribe({next:u=>o.set({kind:1,value:u}),error:u=>{if(e!=null&&e.rejectErrors)throw u;o.set({kind:2,error:u})}});if(e!=null&&e.requireSync&&o().kind===0)throw new _(601,!1);return r==null||r.onDestroy(s.unsubscribe.bind(s)),An(()=>{let u=o();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new _(601,!1)}},{equal:e==null?void 0:e.equal})}function s0(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}var nm=(()=>{let e=class e{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};e.\u0275fac=function(i){return new(i||e)(x(gr),x(J))},e.\u0275dir=R({type:e});let t=e;return t})(),Ks=(()=>{let e=class e extends nm{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,features:[le]});let t=e;return t})(),Mr=new m(""),a0={provide:Mr,useExisting:Oe(()=>u0),multi:!0},u0=(()=>{let e=class e extends Ks{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Z([a0]),le]});let t=e;return t})(),c0={provide:Mr,useExisting:Oe(()=>rm),multi:!0};function l0(){let t=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var d0=new m(""),rm=(()=>{let e=class e extends nm{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!l0())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};e.\u0275fac=function(i){return new(i||e)(x(gr),x(J),x(d0,8))},e.\u0275dir=R({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Sn("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Z([c0]),le]});let t=e;return t})();function zs(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var Ai=new m(""),Dl=new m("");function f0(t){return e=>{if(zs(e.value)||zs(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(zs(e.value)||zs(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function qg(t){return null}function im(t){return t!=null}function om(t){return Dr(t)?ae(t):t}function sm(t){let e={};return t.forEach(n=>{e=n!=null?S(S({},e),n):e}),Object.keys(e).length===0?null:e}function am(t,e){return e.map(n=>n(t))}function p0(t){return!t.validate}function um(t){return t.map(e=>p0(e)?e:n=>e.validate(n))}function g0(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(n){return sm(am(n,e))}}function El(t){return t!=null?g0(um(t)):null}function m0(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(n){let r=am(n,e).map(om);return Ca(r).pipe(U(sm))}}function bl(t){return t!=null?m0(um(t)):null}function Yg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function cm(t){return t._rawValidators}function lm(t){return t._rawAsyncValidators}function yl(t){return t?Array.isArray(t)?t:[t]:[]}function Gs(t,e){return Array.isArray(t)?t.includes(e):t===e}function Zg(t,e){let n=yl(e);return yl(t).forEach(i=>{Gs(n,i)||n.push(i)}),n}function Qg(t,e){return yl(e).filter(n=>!Gs(t,n))}var Ws=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=El(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=bl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Cr=class extends Ws{get formDirective(){return null}get path(){return null}},xn=class extends Ws{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},qs=class{constructor(e){this._cd=e}get isTouched(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._touched)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.touched)}get isUntouched(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.untouched)}get isPristine(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._pristine)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.pristine)}get isDirty(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.dirty)}get isValid(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._status)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.valid)}get isInvalid(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.invalid)}get isPending(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.pending)}get isSubmitted(){var e,n,r;return(n=(e=this._cd)==null?void 0:e._submitted)==null||n.call(e),!!((r=this._cd)!=null&&r.submitted)}},v0={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},p1=j(S({},v0),{"[class.ng-submitted]":"isSubmitted"}),g1=(()=>{let e=class e extends qs{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(x(xn,2))},e.\u0275dir=R({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Zt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[le]});let t=e;return t})(),m1=(()=>{let e=class e extends qs{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(x(Cr,10))},e.\u0275dir=R({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Zt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[le]});let t=e;return t})();var wi="VALID",$s="INVALID",Ir="PENDING",Ci="DISABLED",_r=class{},Ys=class extends _r{constructor(e,n){super(),this.value=e,this.source=n}},Mi=class extends _r{constructor(e,n){super(),this.pristine=e,this.source=n}},Ti=class extends _r{constructor(e,n){super(),this.touched=e,this.source=n}},wr=class extends _r{constructor(e,n){super(),this.status=e,this.source=n}};function Il(t){return(Js(t)?t.validators:t)||null}function y0(t){return Array.isArray(t)?El(t):t||null}function wl(t,e){return(Js(e)?e.asyncValidators:t)||null}function D0(t){return Array.isArray(t)?bl(t):t||null}function Js(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function dm(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function fm(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new _(1002,"")})}var Si=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=An(()=>this.statusReactive()),this.statusReactive=st(void 0),this._pristine=An(()=>this.pristineReactive()),this.pristineReactive=st(!0),this._touched=An(()=>this.touchedReactive()),this.touchedReactive=st(!1),this._events=new ge,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Ie(this.statusReactive)}set status(e){Ie(()=>this.statusReactive.set(e))}get valid(){return this.status===wi}get invalid(){return this.status===$s}get pending(){return this.status==Ir}get disabled(){return this.status===Ci}get enabled(){return this.status!==Ci}get pristine(){return Ie(this.pristineReactive)}set pristine(e){Ie(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Ie(this.touchedReactive)}set touched(e){Ie(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Zg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Zg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Qg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Qg(e,this._rawAsyncValidators))}hasValidator(e){return Gs(this._rawValidators,e)}hasAsyncValidator(e){return Gs(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Ti(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new Ti(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Mi(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Mi(!0,r))}markAsPending(e={}){this.status=Ir;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new wr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(j(S({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Ci,this.errors=null,this._forEachChild(i=>{i.disable(j(S({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ys(this.value,r)),this._events.next(new wr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=wi,this._forEachChild(r=>{r.enable(j(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wi||this.status===Ir)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ys(this.value,n)),this._events.next(new wr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(j(S({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ci:wi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=Ir,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=om(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){var e;if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=((e=this._hasOwnPendingAsyncValidator)==null?void 0:e.emitEvent)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new wr(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Ci:this.errors?$s:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ir)?Ir:this._anyControlsHaveStatus($s)?$s:wi}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Mi(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ti(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Js(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=y0(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=D0(this._rawAsyncValidators)}},Zs=class extends Si{constructor(e,n,r){super(Il(n),wl(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){fm(this,!0,e),Object.keys(e).forEach(r=>{dm(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var xi=new m("CallSetDisabledState",{providedIn:"root",factory:()=>Xs}),Xs="always";function E0(t,e){return[...e.path,t]}function Cl(t,e,n=Xs){var r,i;hm(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&((i=(r=e.valueAccessor).setDisabledState)==null||i.call(r,t.disabled)),w0(t,e),_0(t,e),C0(t,e),b0(t,e)}function Kg(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),I0(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Qs(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function b0(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function hm(t,e){let n=cm(t);e.validator!==null?t.setValidators(Yg(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=lm(t);e.asyncValidator!==null?t.setAsyncValidators(Yg(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Qs(e._rawValidators,i),Qs(e._rawAsyncValidators,i)}function I0(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=cm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=lm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Qs(e._rawValidators,r),Qs(e._rawAsyncValidators,r),n}function w0(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&pm(t,e)})}function C0(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&pm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function pm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _0(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function M0(t,e){t==null,hm(t,e)}function gm(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function T0(t){return Object.getPrototypeOf(t.constructor)===Ks}function S0(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function mm(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===rm?n=o:T0(o)?r=o:i=o}),i||r||n||null}var A0={provide:Cr,useExisting:Oe(()=>x0)},_i=Promise.resolve(),x0=(()=>{let e=class e extends Cr{get submitted(){return Ie(this.submittedReactive)}constructor(r,i,o){super(),this.callSetDisabledState=o,this._submitted=An(()=>this.submittedReactive()),this.submittedReactive=st(!1),this._directives=new Set,this.ngSubmit=new ee,this.form=new Zs({},El(r),bl(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(r){_i.then(()=>{let i=this._findContainer(r.path);r.control=i.registerControl(r.name,r.control),Cl(r.control,r,this.callSetDisabledState),r.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(r)})}getControl(r){return this.form.get(r.path)}removeControl(r){_i.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name),this._directives.delete(r)})}addFormGroup(r){_i.then(()=>{let i=this._findContainer(r.path),o=new Zs({});M0(o,r),i.registerControl(r.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(r){_i.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name)})}getFormGroup(r){return this.form.get(r.path)}updateModel(r,i){_i.then(()=>{this.form.get(r.path).setValue(i)})}setValue(r){this.control.setValue(r)}onSubmit(r){var i;return this.submittedReactive.set(!0),S0(this.form,this._directives),this.ngSubmit.emit(r),((i=r==null?void 0:r.target)==null?void 0:i.method)==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(r){return r.pop(),r.length?this.form.get(r):this.form}};e.\u0275fac=function(i){return new(i||e)(x(Ai,10),x(Dl,10),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&Sn("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Z([A0]),le]});let t=e;return t})();function Jg(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Xg(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var N0=class extends Si{constructor(e=null,n,r){super(Il(n),wl(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Js(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Xg(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Jg(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Jg(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Xg(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var O0={provide:xn,useExisting:Oe(()=>R0)},em=Promise.resolve(),R0=(()=>{let e=class e extends xn{constructor(r,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new N0,this._registered=!1,this.name="",this.update=new ee,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=mm(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),gm(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Cl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){em.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&qc(i);em.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?E0(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(x(Cr,9),x(Ai,10),x(Dl,10),x(Mr,10),x(Er,8),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Z([O0]),le,zt]});let t=e;return t})(),y1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),F0={provide:Mr,useExisting:Oe(()=>P0),multi:!0},P0=(()=>{let e=class e extends Ks{writeValue(r){let i=r??"";this.setProperty("value",i)}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Z([F0]),le]});let t=e;return t})();var k0={provide:Mr,useExisting:Oe(()=>L0),multi:!0},L0=(()=>{let e=class e extends Ks{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&Sn("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Z([k0]),le]});let t=e;return t})(),vm=new m(""),V0={provide:xn,useExisting:Oe(()=>j0)},j0=(()=>{let e=class e extends xn{set isDisabled(r){}constructor(r,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new ee,this._ngModelWarningSent=!1,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=mm(this,o)}ngOnChanges(r){if(this._isControlChanged(r)){let i=r.form.previousValue;i&&Kg(i,this,!1),Cl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}gm(r,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kg(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_isControlChanged(r){return r.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(x(Ai,10),x(Dl,10),x(Mr,10),x(vm,8),x(xi,8))},e.\u0275dir=R({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Z([V0]),le,zt]});let t=e;return t})();function ym(t){return typeof t=="number"?t:parseFloat(t)}var Dm=(()=>{let e=class e{constructor(){this._validator=qg}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):qg,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,features:[zt]});let t=e;return t})(),B0={provide:Ai,useExisting:Oe(()=>U0),multi:!0},U0=(()=>{let e=class e extends Dm{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=r=>ym(r),this.createValidator=r=>h0(r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[Z([B0]),le]});let t=e;return t})(),H0={provide:Ai,useExisting:Oe(()=>$0),multi:!0},$0=(()=>{let e=class e extends Dm{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=r=>ym(r),this.createValidator=r=>f0(r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Cn(e)))(o||e)}})(),e.\u0275dir=R({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[Z([H0]),le]});let t=e;return t})();var Em=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({});let t=e;return t})(),tm=class extends Si{constructor(e,n,r){super(Il(n),wl(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){fm(this,!1,e),e.forEach((r,i)=>{dm(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var D1=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:xi,useValue:r.callSetDisabledState??Xs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({imports:[Em]});let t=e;return t})(),E1=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:vm,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:xi,useValue:r.callSetDisabledState??Xs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Ht({imports:[Em]});let t=e;return t})();function C1(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}var _1=(t,e)=>t.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi,e);function Q(t){return de(()=>t)}function de(t){return new m("",{factory:t})}function _l(t){return typeof t=="string"}function z0(t,e,n,r={self:!0}){let i=Ms(n)?n:st(n),o=g(t,r),s=o[`${e.toString()}Change`],a;return di(()=>{var c,l;let u=i();a!==u&&(Ms(o[e])?o[e].set(u):o[e]=u,(c=o.ngOnChanges)==null||c.call(o,{}),(l=s==null?void 0:s.emit)==null||l.call(s,u),a=u)},{allowSignalWrites:!0}),i}function Im(t){let e=[];return t.find((n,r,i)=>(e=i,!0)),e}function M1(t){return typeof t=="number"}function Ml(t){return t!=null}function T1(t,e,n){return t===null?e===null:e===null?!1:n(t,e)}function Tl(t,e,n=!1){return{provide:t,useExisting:e,multi:n}}function Nn(t,e,n){return{provide:t,deps:[[new lr,new ei,t]],useFactory:r=>S(S({},r||n),e)}}function G0(t){let e=[],n=!1,r;return function(...o){return n&&e.length===o.length&&o.every((a,u)=>a===e[u])||(e=o,r=t.apply(this,o),n=!0),r}}function bm(t,e,n=!0){return function(){let i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function W0(t,e,n){if(typeof t=="function"){let u=e;if(u.kind==="getter")return bm(t,u.name);if(u.kind==="method")return G0(t);throw new ea}let{get:r,enumerable:i,value:o}=n,s=e;if(r)return{configurable:!0,enumerable:i,get:bm(r,s,i)};if(typeof o!="function")throw new ea;let a=o;return{configurable:!0,enumerable:i,get(){let u=[],c=!1,l,d=(...h)=>(c&&u.length===h.length&&h.every((p,D)=>p===u[D])||(u=h,l=a.apply(this,h),c=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var ea=class extends Error{constructor(){super("")}};function S1(t){return`${t}px`}var q0=de(()=>{let t=new Map;return g($e).onDestroy(()=>t.forEach(e=>e.destroy())),t});function Ge(t){let e=g(q0),n=g(Ne);e.has(t)||e.set(t,pg(t,{environmentInjector:n}))}var Y0={appearance:""},wm=Q(Y0);function Tr(t){return Tl(wm,t)}var Z0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-appearance"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiAppearance]{transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;-webkit-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem}[tuiAppearance]:focus-visible:not([data-focus=false]){outline-color:var(--tui-border-focus)}[tuiAppearance][data-focus=true]{outline-color:var(--tui-border-focus)}[tuiAppearance]:disabled:not([data-state]),[tuiAppearance][data-state=disabled]{pointer-events:none;opacity:var(--tui-disabled-opacity)} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),Q0=(()=>{let e=class e{constructor(){this.nothing=Ge(Z0),this.tuiAppearance=g(wm).appearance,this.tuiAppearanceState=null,this.tuiAppearanceFocus=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["","tuiAppearance",""]],hostAttrs:["tuiAppearance",""],hostVars:3,hostBindings:function(i,o){i&2&&Ee("data-appearance",o.tuiAppearance)("data-state",o.tuiAppearanceState)("data-focus",o.tuiAppearanceFocus)},inputs:{tuiAppearance:"tuiAppearance",tuiAppearanceState:"tuiAppearanceState",tuiAppearanceFocus:"tuiAppearanceFocus"},standalone:!0});let t=e;return t})();var Sr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,standalone:!0,features:[at([{directive:Q0,inputs:["tuiAppearance","appearance","tuiAppearanceState","tuiAppearanceState","tuiAppearanceFocus","tuiAppearanceFocus"]}])]});let t=e;return t})();var Cm={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},j1=new Qr,B1=[],U1=()=>{},H1=j(S({},Cm),{toJSON:()=>Cm}),$1=()=>!1,z1=()=>!0;function K0(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}var G1=(t,e)=>t===e||K0(t,e);var W1={acceptNode(t){return"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},Ni="\xA0",_m="\u2013";var q1="-",Y1="\u2212",Z1="+";var Q1="4.0.0-rc.7";function On(t,e,n){return Math.min(n,Math.max(e,t))}function Oi(t,e,n){return t>=e&&t=n?n:Math.round(t)}var J0=292;function na(t,e,n){if(t===1/0)return t;e=Math.min(e,J0);let r=`${t}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+e}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-e}`}function X0(t,e=0){return na(t,e,Math.round)}function e_(t,e=0){return na(t,e,Math.ceil)}function t_(t,e=0){return na(t,e,Math.floor)}function n_(t,e=0){return na(t,e,Math.trunc)}function X1({value:t,precision:e,method:n}){switch(n){case"round":return X0(t,e);case"ceil":return e_(t,e);case"floor":return t_(t,e);default:return n_(t,e)}}function eL(...t){return t.reduce((e,n)=>e+n,0)}function iL(t,e,n){return n&&nt?e:t}var oL=7;var Ar=12,ra=1,Al=0,xl=11,Nl=0,Ol=9999,ia=`${Ni}${_m}${Ni}`,r_=1e3,i_=60,o_=60,s_=24,a_=r_*i_,u_=a_*o_,sL=u_*s_,Rl=10,c_=2*Rl+ia.length,oa={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},St={January:0,February:1,March:2,April:3,May:4,June:5,July:6,August:7,September:8,October:9,November:10,December:11},Fe=class t{constructor(e){this.year=e}static isValidYear(e){return Number.isInteger(e)&&Oi(e,Nl,Ol+1)}static isLeapYear(e){return e%400===0||e%4===0&&e%100!==0}static getAbsoluteLeapYears(e){return Math.ceil(e/400)+(Math.ceil(e/4)-Math.ceil(e/100))}static lengthBetween(e,n){return n.year-e.year}static normalizeYearPart(e){return ta(e,Nl,Ol)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return t.isLeapYear(this.year)}get absoluteLeapYears(){return t.getAbsoluteLeapYears(this.year)}yearBefore({year:e}){return this.year=e}yearAfter({year:e}){return this.year>e}append({year:e=0}){let n=this.year+e;return new t(n)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}toJSON(){return this.formattedYear}},Te=class t extends Fe{constructor(e,n){super(e),this.month=n}static isValidMonth(e,n){return Fe.isValidYear(e)&&t.isValidMonthPart(n)}static getMonthDaysCount(e,n){switch(e){case St.February:return n?29:28;case St.April:case St.June:case St.September:case St.November:return 30;default:return 31}}static currentLocal(){let e=new Date;return new t(e.getFullYear(),e.getMonth())}static currentUtc(){let e=new Date;return new t(e.getUTCFullYear(),e.getUTCMonth())}static lengthBetween(e,n){let r=e.month+e.year*12;return n.month+n.year*12-r}static normalizeMonthPart(e){return ta(e,Al,xl)}static isValidMonthPart(e){return Number.isInteger(e)&&Oi(e,Al,xl+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:e=0,month:n=0}){let r=(this.year+e)*Ar+this.month+n;return new t(Math.floor(r/Ar),r%Ar)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}},xr=class t extends Te{constructor(e,n,r){super(e,n),this.day=r}static fromLocalNativeDate(e){return new t(e.getFullYear(),e.getMonth(),e.getDate())}static fromUtcNativeDate(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}static isValidDay(e,n,r){return Te.isValidMonth(e,n)&&Number.isInteger(r)&&Oi(r,ra,Te.getMonthDaysCount(n,Fe.isLeapYear(e))+1)}static currentLocal(){let e=new Date,n=e.getFullYear(),r=e.getMonth(),i=e.getDate();return new t(n,r,i)}static currentUtc(){let e=new Date,n=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate();return new t(n,r,i)}static normalizeOf(e,n,r){let i=Fe.normalizeYearPart(e),o=Te.normalizeMonthPart(n),s=t.normalizeDayPart(r,o,i);return new t(i,o,s)}static lengthBetween(e,n){return Math.round((n.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(e,n="DMY"){switch(n){case"YMD":return{day:parseInt(e.slice(8,10),10),month:parseInt(e.slice(5,7),10)-1,year:parseInt(e.slice(0,4),10)};case"MDY":return{day:parseInt(e.slice(3,5),10),month:parseInt(e.slice(0,2),10)-1,year:parseInt(e.slice(6,10),10)};case"DMY":default:return{day:parseInt(e.slice(0,2),10),month:parseInt(e.slice(3,5),10)-1,year:parseInt(e.slice(6,10),10)}}}static normalizeParse(e,n="DMY"){let{day:r,month:i,year:o}=this.parseRawDateString(e,n);return t.normalizeOf(o,i,r)}static jsonParse(e){let{day:n,month:r,year:i}=this.parseRawDateString(e,"YMD");if(!Te.isValidMonth(i,r)||!Number.isInteger(n)||!Oi(n,ra,Te.getMonthDaysCount(r,Fe.isLeapYear(i))+1))throw new Fl(i,r,n);return new t(i,r,n)}static normalizeDayPart(e,n,r){let i=Te.getMonthDaysCount(n,Fe.isLeapYear(r));return ta(e,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let e=this.dayOfWeek(!1);return e===oa.Saturday||e===oa.Sunday}dayOfWeek(e=!0){let n=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return n<0?6:n}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,n){return e!==null&&this.dayBefore(e)?e:n!==null&&this.dayAfter(n)?n:this}append({year:e=0,month:n=0,day:r=0}){let i=(this.year+e)*Ar+this.month+n,o=Math.floor(i/Ar),s=i%Ar,a=Math.min(this.day,Te.getMonthDaysCount(s,Fe.isLeapYear(o)))+r;for(;a>Te.getMonthDaysCount(s,Fe.isLeapYear(o));)a-=Te.getMonthDaysCount(s,Fe.isLeapYear(o)),s===St.December?(o++,s=St.January):s++;for(;aTm}),Am=new m("[TUI_LANGUAGE]",{factory:()=>Le(g(Sm))}),m_=new m("[TUI_LANGUAGE_LOADER]"),v_=new m("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var kl=new m("[WA_WINDOW]",{factory:()=>{let{defaultView:t}=g(q);if(!t)throw new Error("Window is not available");return t}}),fe=kl,DL=new m("[WA_ANIMATION_FRAME]",{factory:()=>{let{requestAnimationFrame:t,cancelAnimationFrame:e}=g(fe);return new I(r=>{let i=NaN,o=s=>{r.next(s),i=t(o)};return i=t(o),()=>{e(i)}}).pipe(un())}});var EL=new m("[WA_CACHES]",{factory:()=>g(fe).caches});var bL=new m("[WA_CRYPTO]",{factory:()=>g(fe).crypto});var IL=new m("[WA_CSS]",{factory:()=>g(fe).CSS??{escape:t=>t,supports:()=>!1}});var wL=new m("[WA_HISTORY]",{factory:()=>g(fe).history});var y_=new m("[WA_LOCAL_STORAGE]",{factory:()=>g(fe).localStorage}),CL=y_,_L=new m("[WA_LOCATION]",{factory:()=>g(fe).location});var xm=new m("[WA_NAVIGATOR]",{factory:()=>g(fe).navigator}),Nm=xm,ML=new m("[WA_MEDIA_DEVICES]",{factory:()=>g(Nm).mediaDevices});var TL=new m("[WA_NETWORK_INFORMATION]",{factory:()=>g(xm).connection||null});var SL=new m("[WA_PAGE_VISIBILITY]",{factory:()=>{let t=g(q);return dt(t,"visibilitychange").pipe(on(0),U(()=>t.visibilityState!=="hidden"),io(),ao({refCount:!1,bufferSize:1}))}});var AL=new m("[WA_PERFORMANCE]",{factory:()=>g(fe).performance});var xL=new m("[WA_SCREEN]",{factory:()=>g(fe).screen});var NL=new m("[WA_SESSION_STORAGE]",{factory:()=>g(fe).sessionStorage});var OL=new m("[WA_SPEECH_RECOGNITION]: [SPEECH_RECOGNITION]",{factory:()=>{let t=g(fe);return t.speechRecognition||t.webkitSpeechRecognition||null}});var RL=new m("[WA_SPEECH_SYNTHESIS]",{factory:()=>g(fe).speechSynthesis});var FL=new m("[WA_USER_AGENT]",{factory:()=>g(Nm).userAgent});function Rn(t){return()=>g(Am).pipe(U(e=>e[t]))}function qL(t){return new I(e=>{if(!(t!=null&&t.valueChanges))throw new Ll;return t.valueChanges.pipe(on(t.value)).subscribe(e)})}var Ll=class extends Error{constructor(){super("")}};function At(t,e,n={}){return dt(t,e,n)}function YL(t,e=Boolean){return Or(Ft(n=>e(n)?t(n):Se))}function ZL(t){return t.changes.pipe(on(null),U(()=>Im(t)))}function QL(t){return At(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function KL(t){return Or(Pt(_a.pipe(Ii(t),Lr(()=>Se),Ot(null))))}function JL(t){return Vr(()=>t.markForCheck())}function D_(t){return e=>new I(n=>e.subscribe({next:r=>t.run(()=>n.next(r)),error:r=>t.run(()=>n.error(r)),complete:()=>t.run(()=>n.complete())}))}function Vl(t){return e=>new I(n=>t.runOutsideAngular(()=>e.subscribe(n)))}function XL(t){return Or(Vl(t),D_(t))}var E_=de(()=>{var t,e;return((e=(t=g(q).defaultView)==null?void 0:t.matchMedia)==null?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)??!1}),lV=de(()=>g(E_)?0:1),b_=Q("assets/taiga-ui/icons");var I_={check:"@tui.check",close:"@tui.x",error:"@tui.circle-alert",more:"@tui.chevron-right"},dV=Q(I_);var w_={mode:"DMY",separator:"."},fV=Q(Le(w_));var hV=Q(t=>t.isWeekend?"weekend":"weekday"),pV=Q(oa.Monday),gV=de(Rn("months")),mV=de(Rn("close")),vV=de(Rn("nothingFoundMessage")),yV=de(Rn("defaultErrorMessage")),DV=de(Rn("spinTexts")),EV=de(Rn("shortWeekDays")),sa=Q(""),aa=Q(""),C_=Q({});var __=de(()=>{let t=g(b_);return e=>!e||e.includes("/")?e:`${t}/${e.replace("@tui.","").split(".").join("/")}.svg`});function ua(){let t=g(C_),e=g(__);return n=>t[n]||e(n)}var bV=Q({mobile:768,desktopSmall:1024,desktopLarge:1280}),Rm={precision:NaN,decimalSeparator:",",thousandSeparator:Ni,rounding:"truncate",decimalMode:"pad"},Om=Q(Le(Rm));function IV(t){return{provide:Om,deps:[[new lr,new ei,Om]],useFactory:e=>(e||Le(Rm)).pipe(U(n=>S(S({},n),t)))}}var wV=de(()=>new J(g(q).documentElement)),CV=de(()=>{let t=g(q);return zn(At(t,"selectionchange"),At(t,"mouseup"),At(t,"mousedown").pipe(Ft(()=>At(t,"mousemove").pipe(Pt(At(t,"mouseup"))))),At(t,"keydown"),At(t,"keyup")).pipe(un())}),_V=Q({decrement:"@tui.chevron-left",increment:"@tui.chevron-right"}),MV=Q("Taiga UI"),TV=de(()=>{let t=g(kl);return{type:"viewport",getClientRect(){let e={top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight,x:0,y:0};return j(S({},e),{toJSON:()=>JSON.stringify(e)})}}});var Fm=(()=>{let e=class e{constructor(){this.resolver=ua(),this.icon=g(sa,{self:!0,optional:!0})||g(aa,{self:!0,optional:!0})||"",this.background=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["tui-icon"]],hostVars:4,hostBindings:function(i,o){i&2&&wt("--t-mask","url("+o.resolver(o.icon)+")")("--t-mask-bg",o.background?"url("+o.resolver(o.background)+")":null)},inputs:{icon:"icon",background:"background"},standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`tui-icon{position:relative;display:inline-block;width:1em;height:1em;font-size:1.5rem;flex-shrink:0;vertical-align:middle;box-sizing:border-box;-webkit-mask:var(--t-mask-bg) no-repeat center / contain;mask:var(--t-mask-bg) no-repeat center / contain}tui-icon:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor} +`],encapsulation:2,changeDetection:0});let t=e;return t})();function UV(t,e){try{return t.contains(e)||!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}catch{return!1}}function M_(t){return t.matches("input")}function T_(t){return t.matches("textarea")}function S_(t){return M_(t)||T_(t)}function HV(t){return!!t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function A_(t){return!!t&&t instanceof t.ownerDocument.defaultView.HTMLElement}function $V(t){return t.composedPath()[0]}function x_(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}function zV(t){let{ownerDocument:e}=t;if(!(e!=null&&e.defaultView)||!t.getBoundingClientRect)return null;let{innerWidth:n,innerHeight:r}=e.defaultView,i=x_(t),o=t.getBoundingClientRect();if(o.width===0&&o.height===0)return null;let s=On(Math.round(o.left)+2,0,n),a=On(Math.round(o.top)+2,0,r),u=On(Math.round(o.right)-2,0,n),c=On(Math.round(o.bottom)-2,0,r),l=On(Math.round(o.left+o.width/2),0,n),d=On(Math.round(o.top+o.height/2),0,r),f=[i.elementFromPoint(l,a),i.elementFromPoint(l,c),i.elementFromPoint(s,d),i.elementFromPoint(u,d)].filter(Ml);if(!f.length)return[];let p=f.filter(D=>!t.contains(D)&&!D.contains(t));return p.length===4?p:null}function GV(t,e){let{offsetTop:n,offsetLeft:r,offsetParent:i}=e;for(;A_(i)&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Pm(){return g(J).nativeElement}function WV(t){return S_(t)&&!t.readOnly||!!t.isContentEditable}function qV(t=0,e=0){let n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return j(S({},n),{toJSON:()=>n})}function YV(t){return"explicitOriginalTarget"in t?(t==null?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?t.pointerId===-1:"detail"in t&&"webkitForce"in t?(t==null?void 0:t.detail)===0:!1}var N_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-icons"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiIcons]:before,[tuiIcons]:after{font-size:1.5rem}[tuiIcons]._icon-start:before,[tuiIcons]._icon-end:after{content:"";width:1em;height:1em;flex-shrink:0;background:currentColor;-webkit-mask:var(--t-mask-start) no-repeat center / contain;mask:var(--t-mask-start) no-repeat center / contain}[tuiIcons]._icon-end:after{-webkit-mask:var(--t-mask-end) no-repeat center / contain;mask:var(--t-mask-end) no-repeat center / contain} `],encapsulation:2,changeDetection:0});let t=e;return t})(),O_=(()=>{let e=class e{constructor(){this.nothing=Ge(N_),this.resolver=ua(),this.iconStart=g(sa,{self:!0,optional:!0})||"",this.iconEnd=g(aa,{self:!0,optional:!0})||""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,hostAttrs:["tuiIcons",""],hostVars:8,hostBindings:function(i,o){i&2&&(wt("--t-mask-start","url("+o.resolver(o.iconStart)+")")("--t-mask-end","url("+o.resolver(o.iconEnd)+")"),Zt("_icon-start",o.iconStart)("_icon-end",o.iconEnd))},inputs:{iconStart:"iconStart",iconEnd:"iconEnd"},standalone:!0});let t=e;return t})(),ca=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,standalone:!0,features:[at([{directive:O_,inputs:["iconStart","iconStart","iconEnd","iconEnd"]}])]});let t=e;return t})();var Lm={appearance:"primary",size:"l"},jl=Q(Lm);function pj(t){return Nn(jl,t,Lm)}var R_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-button"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiButton],[tuiIconButton]{--t-gap: .125rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));height:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-svg,[tuiIconButton]>tui-svg,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>tui-avatar,[tuiIconButton]>tui-avatar,[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton]._icon-start:before,[tuiIconButton]._icon-start:before,[tuiButton]._icon-end:after,[tuiIconButton]._icon-end:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-svg,[tuiIconButton][data-size=xs] tui-svg,[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-svg,[tuiIconButton][data-size=s] tui-svg,[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton][data-size=l],[tuiIconButton][data-size=l]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-padding: 0 1.25rem;--t-gap: .25rem;--t-margin: -.25rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=l]:after,[tuiIconButton][data-size=l]:after{margin-inline-start:.25rem;margin-inline-end:-.25rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiIconButton]{gap:0;width:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton]._icon-start:after{display:none} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),gj=(()=>{let e=class e{constructor(){this.options=g(jl),this.nothing=Ge(R_),this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["a","tuiButton",""],["button","tuiButton",""],["a","tuiIconButton",""],["button","tuiIconButton",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[Z([Ar(jl)]),at([xr,ca])]});let t=e;return t})();var F_=typeof MutationObserver<"u"?MutationObserver:class{observe(){}disconnect(){}takeRecords(){return[]}},Bl=new m("[WA_MUTATION_OBSERVER_INIT]"),P_=Bl;var Ul=(()=>{let e=class e extends I{constructor(){let r=g(J).nativeElement,i=g(P_);super(o=>{let s=new F_(a=>{o.next(a)});return s.observe(r,i),()=>{s.disconnect()}})}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275prov",A({token:e,factory:e.\u0275fac}));let t=e;return t})();var k_=typeof ResizeObserver<"u"?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},L_="content-box",Hl=L_,V_=new m("[WA_RESIZE_OPTION_BOX]",{providedIn:"root",factory:()=>Hl}),Vm=V_,Ri=(()=>{let e=class e extends I{constructor(){let r=g(J).nativeElement,i=g(Vm);super(o=>{let s=new k_(a=>o.next(a));return s.observe(r,{box:i}),()=>{s.disconnect()}})}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275prov",A({token:e,factory:e.\u0275fac}));let t=e;return t})(),Nj=(()=>{let e=class e{constructor(){We(this,"waResizeObserver",g(Ri));We(this,"box",Hl)}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275dir",R({type:e,selectors:[["","waResizeObserver",""]],inputs:{waResizeBox:[0,"box","waResizeBox"]},outputs:{waResizeObserver:"waResizeObserver"},standalone:!0,features:[Z([Ri,{provide:Vm,useFactory:()=>g(J).nativeElement.getAttribute("waResizeBox")||Hl}])]}));let t=e;return t})();var Oj=new m("[WA_RESIZE_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!g(fe).ResizeObserver});var $l=1,j_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-fade-styles"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%));mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));-webkit-mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset));mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom;mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),Qj=(()=>{let e=class e{constructor(){this.lineHeight=null,this.size="1.5em",this.offset="0em",this.orientation="horizontal";let r=Fm();Ge(j_),zn(g(Ri),g(Ul),dt(r,"scroll")).pipe(Ll(g($)),Ii()).subscribe(()=>{r.classList.toggle("_start",!!r.scrollLeft||!!r.scrollTop),r.classList.toggle("_end",this.isEnd(r))})}isEnd(r){return this.orientation==="vertical"?Math.round(r.scrollTop)r.clientHeight+4*$l}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["","tuiFade",""]],hostVars:9,hostBindings:function(i,o){i&2&&(Ee("data-orientation",o.orientation),wt("line-height",o.lineHeight)("--line-height",o.lineHeight)("--fade-size",o.size)("--fade-offset",o.offset))},inputs:{lineHeight:[0,"tuiFadeHeight","lineHeight"],size:[0,"tuiFadeSize","size"],offset:[0,"tuiFadeOffset","offset"],orientation:[0,"tuiFade","orientation"]},standalone:!0,features:[Z([Ri,Ul,{provide:Bl,useValue:{characterData:!0,subtree:!0}}])]});let t=e;return t})();var B_=["*"];function U_(t,e){if(t&1&&Ts(0,"img",5),t&2){let n=Ss();Yt("src",n.value,bc)}}function H_(t,e){if(t&1&&Ts(0,"tui-icon",6),t&2){let n=Ss();Yt("icon",n.value.toString())}}function $_(t,e){if(t&1&&(mr(0),Xp(1),vr()),t&2){let n=Ss();oi(),$c(n.value)}}function z_(t,e){t&1&&(mr(0),Jp(1),vr())}var jm={appearance:"",round:!0,size:"l"},zl=Q(jm);function lB(t){return Nn(zl,t,jm)}var dB=(()=>{let e=class e{constructor(){this.options=g(zl),this.size=this.options.size,this.round=this.options.round}get safeSrc(){var r;return((r=this.src)==null?void 0:r.toString())??""}get value(){return this.src||""}get svg(){return _l(this.value)&&this.value.endsWith(".svg")}get type(){return this.value&&!_l(this.value)?"img":this.value.startsWith("@tui.")?"icon":this.value.length>0&&this.value.length<3?"text":this.value.length?"img":"content"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["tui-avatar"],["button","tuiAvatar",""],["a","tuiAvatar",""]],hostVars:6,hostBindings:function(i,o){i&2&&(Ee("data-size",o.size)("data-type",o.type),Zt("_round",o.round)("_svg",o.svg))},inputs:{size:"size",round:"round",src:"src"},standalone:!0,features:[Z([Ar(zl)]),at([xr]),be],ngContentSelectors:B_,decls:5,vars:4,consts:[[3,"ngSwitch"],["alt","","loading","lazy",3,"src",4,"ngSwitchCase"],[3,"icon",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["alt","","loading","lazy",3,"src"],[3,"icon"]],template:function(i,o){i&1&&(Kp(),mr(0,0),Vc(1,U_,1,1,"img",1)(2,H_,1,1,"tui-icon",2)(3,$_,2,1,"ng-container",3)(4,z_,2,0,"ng-container",4),vr()),i&2&&(Yt("ngSwitch",o.type),oi(),Yt("ngSwitchCase","img"),oi(),Yt("ngSwitchCase","icon"),oi(),Yt("ngSwitchCase","text"))},dependencies:[Ps,Tg,Sg,Rm],styles:['[_nghost-%COMP%]{--t-size: 3.5rem;--t-radius: .75rem;position:relative;display:inline-flex;flex-shrink:0;width:var(--t-size);height:var(--t-size);align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;opacity:.999}[data-size=xs][_nghost-%COMP%]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-xs);font-weight:700}[data-size=xs][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-size:.5625rem}[data-size=s][_nghost-%COMP%]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-s);font-weight:700}[data-size=s][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-xs);font-weight:700}[data-size=m][_nghost-%COMP%]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-l);font-weight:700}[data-size=m][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-weight:700}[data-size=l][_nghost-%COMP%]{--t-size: var(--tui-height-l);--t-radius: .75rem;font:var(--tui-font-heading-5)}[data-size=l][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-l);font-weight:700}[data-size=xl][_nghost-%COMP%]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-3)}[data-size=xl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-4)}[data-size=xxl][_nghost-%COMP%]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[data-size=xxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-size=xxxl][_nghost-%COMP%]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-2)}[data-size=xxxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-type=img][_nghost-%COMP%]:not(._svg){background:transparent}[data-type=icon][_nghost-%COMP%]:before{content:""}._round[_nghost-%COMP%]{--t-radius: calc(var(--t-size) / 2)}._svg[_nghost-%COMP%] img[_ngcontent-%COMP%]{padding:20%}[_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60%;height:60%}[_nghost-%COMP%] img, [_nghost-%COMP%] picture, [_nghost-%COMP%] video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;box-sizing:border-box}'],changeDetection:0});let t=e;return t})();var Bm={appearance:"",size:"l"},Gl=Q(Bm);function IB(t){return Nn(Gl,t,Bm)}var G_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-badge"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`tui-badge,[tuiBadge]{--t-gap: 0rem;--t-icon-size: 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));border-radius:6rem;background:#959595;color:var(--tui-background-base);padding:var(--t-padding);height:var(--t-size);min-width:var(--t-size);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font:var(--tui-font-text-s)}tui-badge>img,[tuiBadge]>img,tui-badge>tui-svg,[tuiBadge]>tui-svg,tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge>tui-avatar,[tuiBadge]>tui-avatar,tui-badge>tui-badge,[tuiBadge]>tui-badge,tui-badge>[tuiBadge],[tuiBadge]>[tuiBadge],tui-badge>[tuiRadio],[tuiBadge]>[tuiRadio],tui-badge>[tuiSwitch],[tuiBadge]>[tuiSwitch],tui-badge>[tuiCheckbox],[tuiBadge]>[tuiCheckbox],tui-badge._icon-start:before,[tuiBadge]._icon-start:before,tui-badge._icon-end:after,[tuiBadge]._icon-end:after{margin:var(--t-margin)}tui-badge[tuiStatus]:before,[tuiBadge][tuiStatus]:before{width:.375rem;height:.375rem}tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge[tuiIcons]:before,[tuiBadge][tuiIcons]:before,tui-badge[tuiIcons]:after,[tuiBadge][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-badge[data-appearance=error],[tuiBadge][data-appearance=error]{--t-status: var(--tui-status-negative)}tui-badge[data-appearance=success],[tuiBadge][data-appearance=success]{--t-status: var(--tui-status-positive)}tui-badge[data-appearance=warning],[tuiBadge][data-appearance=warning]{--t-status: var(--tui-status-warning)}tui-badge[data-appearance=info],[tuiBadge][data-appearance=info]{--t-status: var(--tui-status-info)}tui-badge[data-appearance=neutral],[tuiBadge][data-appearance=neutral]{--t-status: var(--tui-status-neutral)}tui-badge[tuiStatus][data-appearance=error]:before,[tuiBadge][tuiStatus][data-appearance=error]:before,tui-badge[tuiStatus][data-appearance=success]:before,[tuiBadge][tuiStatus][data-appearance=success]:before,tui-badge[tuiStatus][data-appearance=warning]:before,[tuiBadge][tuiStatus][data-appearance=warning]:before,tui-badge[tuiStatus][data-appearance=info]:before,[tuiBadge][tuiStatus][data-appearance=info]:before,tui-badge[tuiStatus][data-appearance=neutral]:before,[tuiBadge][tuiStatus][data-appearance=neutral]:before{content:""}tui-badge[data-size=s],[tuiBadge][data-size=s]{--t-padding: 0 .3125rem;--t-size: 1rem;--t-icon-size: .625rem;--t-margin: -.125rem}tui-badge[data-size=s][tuiStatus]:before,[tuiBadge][data-size=s][tuiStatus]:before{width:.25rem;height:.25rem;margin-inline-end:-.125rem}tui-badge[data-size=m],[tuiBadge][data-size=m]{--t-padding: 0 .375rem;--t-size: 1.25rem;--t-icon-size: .75rem;--t-margin: -.125rem}tui-badge[data-size=l],[tuiBadge][data-size=l]{--t-padding: 0 .5rem;--t-size: var(--tui-height-xs);--t-margin: -.25rem}tui-badge[data-size=l][tuiStatus]:before,[tuiBadge][data-size=l][tuiStatus]:before{margin-inline-end:-.25rem}tui-badge[data-size=xl],[tuiBadge][data-size=xl]{--t-margin: -.25rem;--t-padding: 0 .75rem;--t-size: var(--tui-height-s);font:var(--tui-font-text-m)}tui-badge[data-size=xl][tuiStatus]:before,[tuiBadge][data-size=xl][tuiStatus]:before{width:.5rem;height:.5rem;margin-inline-end:-.125rem}tui-badge[tuiAppearance][data-appearance=error],[tuiBadge][tuiAppearance][data-appearance=error],tui-badge[tuiAppearance][data-appearance=success],[tuiBadge][tuiAppearance][data-appearance=success],tui-badge[tuiAppearance][data-appearance=warning],[tuiBadge][tuiAppearance][data-appearance=warning],tui-badge[tuiAppearance][data-appearance=info],[tuiBadge][tuiAppearance][data-appearance=info],tui-badge[tuiAppearance][data-appearance=neutral],[tuiBadge][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}img[tuiBadge]{padding:0;width:var(--t-size)}tui-icon[tuiBadge]{--t-margin: 0 !important;-webkit-mask:none;mask:none;height:var(--t-size);width:var(--t-size)}tui-icon[tuiBadge][data-size=s]:after{-webkit-mask-size:.625rem;mask-size:.625rem}tui-icon[tuiBadge][data-size=m]:after{-webkit-mask-size:.75rem;mask-size:.75rem}tui-icon[tuiBadge][data-size=l]:after,tui-icon[tuiBadge][data-size=xl]:after{-webkit-mask-size:1rem;mask-size:1rem} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),wB=(()=>{let e=class e{constructor(){this.nothing=Ge(G_),this.size=g(Gl).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["tui-badge"],["","tuiBadge",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[Z([Ar(Gl)]),at([xr,ca])]});let t=e;return t})();export{W as a,X as b,Or as c,I as d,Ea as e,ba as f,ge as g,Un as h,iv as i,ov as j,Se as k,AM as l,ae as m,Le as n,sv as o,av as p,an as q,U as r,gv as s,ke as t,Rr as u,rn as v,vv as w,dt as x,ft as y,zn as z,_a as A,qe as B,Cv as C,Lr as D,Ma as E,_v as F,Mv as G,Ot as H,Rt as I,Ta as J,Tv as K,io as L,so as M,Id as N,Aa as O,xv as P,Nv as Q,wd as R,Ov as S,un as T,ao as U,Rv as V,on as W,Ft as X,Pt as Y,Cd as Z,Vr as _,Fv as $,Pv as aa,_ as ba,Oe as ca,A as da,Ht as ea,UF as fa,m as ga,L as ha,N as ia,g as ja,HF as ka,lr as la,$F as ma,ei as na,Gf as oa,ye as pa,$t as qa,R as ra,ss as sa,as as ta,Ne as ua,ic as va,zt as wa,zF as xa,GF as ya,WF as za,Cn as Aa,TD as Ba,He as Ca,$e as Da,_n as Ea,ee as Fa,$ as Ga,qF as Ha,J as Ia,rt as Ja,YF as Ka,ZF as La,bc as Ma,QF as Na,KF as Oa,JF as Pa,oi as Qa,x as Ra,XF as Sa,yt as Ta,ar as Ua,gr as Va,ze as Wa,kb as Xa,ot as Ya,st as Za,le as _a,at as $a,yI as ab,Fu as bb,DI as cb,Vc as db,Ee as eb,Yt as fb,wt as gb,Zt as hb,rP as ib,iP as jb,oP as kb,sP as lb,jc as mb,Bc as nb,Ts as ob,mr as pb,vr as qb,QI as rb,aP as sb,JI as tb,XI as ub,Sn as vb,Ss as wb,Kp as xb,Jp as yb,uP as zb,cP as Ab,lP as Bb,dP as Cb,fP as Db,Xp as Eb,$c as Fb,zc as Gb,lw as Hb,dw as Ib,hP as Jb,fw as Kb,hw as Lb,pP as Mb,gP as Nb,Z as Ob,be as Pb,mP as Qb,vP as Rb,yP as Sb,DP as Tb,EP as Ub,bP as Vb,IP as Wb,wP as Xb,CP as Yb,_P as Zb,MP as _b,TP as $b,og as ac,Dr as bc,Iw as cc,ug as dc,li as ec,SP as fc,AP as gc,Er as hc,Wc as ic,qc as jc,An as kc,di as lc,xP as mc,q as nc,KP as oc,Rs as pc,$w as qc,JP as rc,zw as sc,XP as tc,ek as uc,iC as vc,oC as wc,tk as xc,nk as yc,rk as zc,lC as Ac,fC as Bc,ik as Cc,bC as Dc,yk as Ec,Us as Fc,Bg as Gc,$k as Hc,zk as Ic,Ii as Jc,i0 as Kc,o0 as Lc,Mr as Mc,u0 as Nc,rm as Oc,Ai as Pc,xn as Qc,g1 as Rc,m1 as Sc,x0 as Tc,N0 as Uc,R0 as Vc,y1 as Wc,P0 as Xc,L0 as Yc,j0 as Zc,U0 as _c,$0 as $c,tm as ad,D1 as bd,E1 as cd,C1 as dd,_1 as ed,Q as fd,de as gd,_l as hd,z0 as id,M1 as jd,Ml as kd,T1 as ld,Tl as md,Nn as nd,W0 as od,S1 as pd,Ge as qd,On as rd,Oi as sd,Q0 as td,W1 as ud,q1 as vd,FV as wd,w_ as xd,PV as yd,M_ as zd,kV as Ad,T_ as Bd,LV as Cd,VV as Dd,Fm as Ed,jV as Fd,BV as Gd,UV as Hd,Ar as Id,x_ as Jd,xr as Kd,O1 as Ld,R1 as Md,F1 as Nd,P1 as Od,k1 as Pd,L1 as Qd,V1 as Rd,j1 as Sd,Ni as Td,B1 as Ud,U1 as Vd,H1 as Wd,$1 as Xd,K1 as Yd,J1 as Zd,xl as _d,Nl as $d,ia as ae,Ol as be,s_ as ce,Fe as de,Te as ee,Sr as fe,Fl as ge,_m as he,eL as ie,tL as je,Pl as ke,fL as le,vL as me,Am as ne,TL as oe,Rn as pe,BL as qe,At as re,UL as se,HL as te,$L as ue,zL as ve,GL as we,Ll as xe,WL as ye,v_ as ze,rV as Ae,iV as Be,E_ as Ce,oV as De,sV as Ee,aV as Fe,uV as Ge,lV as He,fV as Ie,hV as Je,aa as Ke,ua as Le,pV as Me,Om as Ne,Nm as Oe,gV as Pe,mV as Qe,yV as Re,DV as Se,EV as Te,O_ as Ue,ca as Ve,pj as We,gj as Xe,Rm as Ye,Ri as Ze,Nj as _e,Bl as $e,Ul as af,Qj as bf,lB as cf,dB as df,IB as ef,wB as ff}; +`],encapsulation:2,changeDetection:0});let t=e;return t})(),gj=(()=>{let e=class e{constructor(){this.options=g(jl),this.nothing=Ge(R_),this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["a","tuiButton",""],["button","tuiButton",""],["a","tuiIconButton",""],["button","tuiIconButton",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[Z([Tr(jl)]),at([Sr,ca])]});let t=e;return t})();var F_=typeof MutationObserver<"u"?MutationObserver:class{observe(){}disconnect(){}takeRecords(){return[]}},Bl=new m("[WA_MUTATION_OBSERVER_INIT]"),P_=Bl;var Ul=(()=>{let e=class e extends I{constructor(){let r=g(J).nativeElement,i=g(P_);super(o=>{let s=new F_(a=>{o.next(a)});return s.observe(r,i),()=>{s.disconnect()}})}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275prov",A({token:e,factory:e.\u0275fac}));let t=e;return t})();var k_=typeof ResizeObserver<"u"?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},L_="content-box",Hl=L_,V_=new m("[WA_RESIZE_OPTION_BOX]",{providedIn:"root",factory:()=>Hl}),Vm=V_,Ri=(()=>{let e=class e extends I{constructor(){let r=g(J).nativeElement,i=g(Vm);super(o=>{let s=new k_(a=>o.next(a));return s.observe(r,{box:i}),()=>{s.disconnect()}})}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275prov",A({token:e,factory:e.\u0275fac}));let t=e;return t})(),Nj=(()=>{let e=class e{constructor(){We(this,"waResizeObserver",g(Ri));We(this,"box",Hl)}};We(e,"\u0275fac",function(i){return new(i||e)}),We(e,"\u0275dir",R({type:e,selectors:[["","waResizeObserver",""]],inputs:{waResizeBox:[0,"box","waResizeBox"]},outputs:{waResizeObserver:"waResizeObserver"},standalone:!0,features:[Z([Ri,{provide:Vm,useFactory:()=>g(J).nativeElement.getAttribute("waResizeBox")||Hl}])]}));let t=e;return t})();var Oj=new m("[WA_RESIZE_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!g(fe).ResizeObserver});var $l=1,j_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-fade-styles"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%));mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));-webkit-mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset));mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom;mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),Qj=(()=>{let e=class e{constructor(){this.lineHeight=null,this.size="1.5em",this.offset="0em",this.orientation="horizontal";let r=Pm();Ge(j_),zn(g(Ri),g(Ul),dt(r,"scroll")).pipe(Vl(g($)),Ii()).subscribe(()=>{r.classList.toggle("_start",!!r.scrollLeft||!!r.scrollTop),r.classList.toggle("_end",this.isEnd(r))})}isEnd(r){return this.orientation==="vertical"?Math.round(r.scrollTop)r.clientHeight+4*$l}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["","tuiFade",""]],hostVars:9,hostBindings:function(i,o){i&2&&(Ee("data-orientation",o.orientation),wt("line-height",o.lineHeight)("--line-height",o.lineHeight)("--fade-size",o.size)("--fade-offset",o.offset))},inputs:{lineHeight:[0,"tuiFadeHeight","lineHeight"],size:[0,"tuiFadeSize","size"],offset:[0,"tuiFadeOffset","offset"],orientation:[0,"tuiFade","orientation"]},standalone:!0,features:[Z([Ri,Ul,{provide:Bl,useValue:{characterData:!0,subtree:!0}}])]});let t=e;return t})();var B_=["*"];function U_(t,e){if(t&1&&Ts(0,"img",5),t&2){let n=Ss();Yt("src",n.value,bc)}}function H_(t,e){if(t&1&&Ts(0,"tui-icon",6),t&2){let n=Ss();Yt("icon",n.value.toString())}}function $_(t,e){if(t&1&&(mr(0),Xp(1),vr()),t&2){let n=Ss();oi(),$c(n.value)}}function z_(t,e){t&1&&(mr(0),Jp(1),vr())}var jm={appearance:"",round:!0,size:"l"},zl=Q(jm);function lB(t){return Nn(zl,t,jm)}var dB=(()=>{let e=class e{constructor(){this.options=g(zl),this.size=this.options.size,this.round=this.options.round}get safeSrc(){var r;return((r=this.src)==null?void 0:r.toString())??""}get value(){return this.src||""}get svg(){return _l(this.value)&&this.value.endsWith(".svg")}get type(){return this.value&&!_l(this.value)?"img":this.value.startsWith("@tui.")?"icon":this.value.length>0&&this.value.length<3?"text":this.value.length?"img":"content"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["tui-avatar"],["button","tuiAvatar",""],["a","tuiAvatar",""]],hostVars:6,hostBindings:function(i,o){i&2&&(Ee("data-size",o.size)("data-type",o.type),Zt("_round",o.round)("_svg",o.svg))},inputs:{size:"size",round:"round",src:"src"},standalone:!0,features:[Z([Tr(zl)]),at([Sr]),be],ngContentSelectors:B_,decls:5,vars:4,consts:[[3,"ngSwitch"],["alt","","loading","lazy",3,"src",4,"ngSwitchCase"],[3,"icon",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["alt","","loading","lazy",3,"src"],[3,"icon"]],template:function(i,o){i&1&&(Kp(),mr(0,0),Vc(1,U_,1,1,"img",1)(2,H_,1,1,"tui-icon",2)(3,$_,2,1,"ng-container",3)(4,z_,2,0,"ng-container",4),vr()),i&2&&(Yt("ngSwitch",o.type),oi(),Yt("ngSwitchCase","img"),oi(),Yt("ngSwitchCase","icon"),oi(),Yt("ngSwitchCase","text"))},dependencies:[Ps,Tg,Sg,Fm],styles:['[_nghost-%COMP%]{--t-size: 3.5rem;--t-radius: .75rem;position:relative;display:inline-flex;flex-shrink:0;width:var(--t-size);height:var(--t-size);align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;opacity:.999}[data-size=xs][_nghost-%COMP%]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-xs);font-weight:700}[data-size=xs][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-size:.5625rem}[data-size=s][_nghost-%COMP%]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-s);font-weight:700}[data-size=s][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-xs);font-weight:700}[data-size=m][_nghost-%COMP%]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-l);font-weight:700}[data-size=m][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-weight:700}[data-size=l][_nghost-%COMP%]{--t-size: var(--tui-height-l);--t-radius: .75rem;font:var(--tui-font-heading-5)}[data-size=l][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-l);font-weight:700}[data-size=xl][_nghost-%COMP%]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-3)}[data-size=xl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-4)}[data-size=xxl][_nghost-%COMP%]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[data-size=xxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-size=xxxl][_nghost-%COMP%]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-2)}[data-size=xxxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-type=img][_nghost-%COMP%]:not(._svg){background:transparent}[data-type=icon][_nghost-%COMP%]:before{content:""}._round[_nghost-%COMP%]{--t-radius: calc(var(--t-size) / 2)}._svg[_nghost-%COMP%] img[_ngcontent-%COMP%]{padding:20%}[_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60%;height:60%}[_nghost-%COMP%] img, [_nghost-%COMP%] picture, [_nghost-%COMP%] video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;box-sizing:border-box}'],changeDetection:0});let t=e;return t})();var Bm={appearance:"",size:"l"},Gl=Q(Bm);function IB(t){return Nn(Gl,t,Bm)}var G_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ye({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-badge"],standalone:!0,features:[be],decls:0,vars:0,template:function(i,o){},styles:[`tui-badge,[tuiBadge]{--t-gap: 0rem;--t-icon-size: 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));border-radius:6rem;background:#959595;color:var(--tui-background-base);padding:var(--t-padding);height:var(--t-size);min-width:var(--t-size);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font:var(--tui-font-text-s)}tui-badge>img,[tuiBadge]>img,tui-badge>tui-svg,[tuiBadge]>tui-svg,tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge>tui-avatar,[tuiBadge]>tui-avatar,tui-badge>tui-badge,[tuiBadge]>tui-badge,tui-badge>[tuiBadge],[tuiBadge]>[tuiBadge],tui-badge>[tuiRadio],[tuiBadge]>[tuiRadio],tui-badge>[tuiSwitch],[tuiBadge]>[tuiSwitch],tui-badge>[tuiCheckbox],[tuiBadge]>[tuiCheckbox],tui-badge._icon-start:before,[tuiBadge]._icon-start:before,tui-badge._icon-end:after,[tuiBadge]._icon-end:after{margin:var(--t-margin)}tui-badge[tuiStatus]:before,[tuiBadge][tuiStatus]:before{width:.375rem;height:.375rem}tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge[tuiIcons]:before,[tuiBadge][tuiIcons]:before,tui-badge[tuiIcons]:after,[tuiBadge][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-badge[data-appearance=error],[tuiBadge][data-appearance=error]{--t-status: var(--tui-status-negative)}tui-badge[data-appearance=success],[tuiBadge][data-appearance=success]{--t-status: var(--tui-status-positive)}tui-badge[data-appearance=warning],[tuiBadge][data-appearance=warning]{--t-status: var(--tui-status-warning)}tui-badge[data-appearance=info],[tuiBadge][data-appearance=info]{--t-status: var(--tui-status-info)}tui-badge[data-appearance=neutral],[tuiBadge][data-appearance=neutral]{--t-status: var(--tui-status-neutral)}tui-badge[tuiStatus][data-appearance=error]:before,[tuiBadge][tuiStatus][data-appearance=error]:before,tui-badge[tuiStatus][data-appearance=success]:before,[tuiBadge][tuiStatus][data-appearance=success]:before,tui-badge[tuiStatus][data-appearance=warning]:before,[tuiBadge][tuiStatus][data-appearance=warning]:before,tui-badge[tuiStatus][data-appearance=info]:before,[tuiBadge][tuiStatus][data-appearance=info]:before,tui-badge[tuiStatus][data-appearance=neutral]:before,[tuiBadge][tuiStatus][data-appearance=neutral]:before{content:""}tui-badge[data-size=s],[tuiBadge][data-size=s]{--t-padding: 0 .3125rem;--t-size: 1rem;--t-icon-size: .625rem;--t-margin: -.125rem}tui-badge[data-size=s][tuiStatus]:before,[tuiBadge][data-size=s][tuiStatus]:before{width:.25rem;height:.25rem;margin-inline-end:-.125rem}tui-badge[data-size=m],[tuiBadge][data-size=m]{--t-padding: 0 .375rem;--t-size: 1.25rem;--t-icon-size: .75rem;--t-margin: -.125rem}tui-badge[data-size=l],[tuiBadge][data-size=l]{--t-padding: 0 .5rem;--t-size: var(--tui-height-xs);--t-margin: -.25rem}tui-badge[data-size=l][tuiStatus]:before,[tuiBadge][data-size=l][tuiStatus]:before{margin-inline-end:-.25rem}tui-badge[data-size=xl],[tuiBadge][data-size=xl]{--t-margin: -.25rem;--t-padding: 0 .75rem;--t-size: var(--tui-height-s);font:var(--tui-font-text-m)}tui-badge[data-size=xl][tuiStatus]:before,[tuiBadge][data-size=xl][tuiStatus]:before{width:.5rem;height:.5rem;margin-inline-end:-.125rem}tui-badge[tuiAppearance][data-appearance=error],[tuiBadge][tuiAppearance][data-appearance=error],tui-badge[tuiAppearance][data-appearance=success],[tuiBadge][tuiAppearance][data-appearance=success],tui-badge[tuiAppearance][data-appearance=warning],[tuiBadge][tuiAppearance][data-appearance=warning],tui-badge[tuiAppearance][data-appearance=info],[tuiBadge][tuiAppearance][data-appearance=info],tui-badge[tuiAppearance][data-appearance=neutral],[tuiBadge][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}img[tuiBadge]{padding:0;width:var(--t-size)}tui-icon[tuiBadge]{--t-margin: 0 !important;-webkit-mask:none;mask:none;height:var(--t-size);width:var(--t-size)}tui-icon[tuiBadge][data-size=s]:after{-webkit-mask-size:.625rem;mask-size:.625rem}tui-icon[tuiBadge][data-size=m]:after{-webkit-mask-size:.75rem;mask-size:.75rem}tui-icon[tuiBadge][data-size=l]:after,tui-icon[tuiBadge][data-size=xl]:after{-webkit-mask-size:1rem;mask-size:1rem} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),wB=(()=>{let e=class e{constructor(){this.nothing=Ge(G_),this.size=g(Gl).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=R({type:e,selectors:[["tui-badge"],["","tuiBadge",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ee("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[Z([Tr(Gl)]),at([Sr,ca])]});let t=e;return t})();export{W as a,X as b,Or as c,I as d,Ea as e,ba as f,ge as g,Un as h,iv as i,ov as j,Se as k,AM as l,ae as m,Le as n,sv as o,av as p,an as q,U as r,gv as s,ke as t,Rr as u,rn as v,vv as w,dt as x,ft as y,zn as z,_a as A,qe as B,Cv as C,Lr as D,Ma as E,_v as F,Mv as G,Ot as H,Rt as I,Ta as J,Tv as K,io as L,so as M,Id as N,Aa as O,xv as P,Nv as Q,wd as R,Ov as S,un as T,ao as U,Rv as V,on as W,Ft as X,Pt as Y,Cd as Z,Vr as _,Fv as $,Pv as aa,_ as ba,Oe as ca,A as da,Ht as ea,UF as fa,m as ga,L as ha,N as ia,g as ja,HF as ka,lr as la,$F as ma,ei as na,Gf as oa,ye as pa,$t as qa,R as ra,ss as sa,as as ta,Ne as ua,ic as va,zt as wa,zF as xa,GF as ya,WF as za,Cn as Aa,TD as Ba,He as Ca,$e as Da,_n as Ea,ee as Fa,$ as Ga,qF as Ha,J as Ia,rt as Ja,YF as Ka,ZF as La,bc as Ma,QF as Na,KF as Oa,JF as Pa,oi as Qa,x as Ra,XF as Sa,yt as Ta,ar as Ua,gr as Va,ze as Wa,kb as Xa,ot as Ya,st as Za,le as _a,at as $a,yI as ab,Fu as bb,DI as cb,Vc as db,Ee as eb,Yt as fb,wt as gb,Zt as hb,rP as ib,iP as jb,oP as kb,sP as lb,jc as mb,Bc as nb,Ts as ob,mr as pb,vr as qb,QI as rb,aP as sb,JI as tb,XI as ub,Sn as vb,Ss as wb,Kp as xb,Jp as yb,uP as zb,cP as Ab,lP as Bb,dP as Cb,fP as Db,Xp as Eb,$c as Fb,zc as Gb,lw as Hb,dw as Ib,hP as Jb,fw as Kb,hw as Lb,pP as Mb,gP as Nb,Z as Ob,be as Pb,mP as Qb,vP as Rb,yP as Sb,DP as Tb,EP as Ub,bP as Vb,IP as Wb,wP as Xb,CP as Yb,_P as Zb,MP as _b,TP as $b,og as ac,Dr as bc,Iw as cc,ug as dc,li as ec,SP as fc,AP as gc,Er as hc,Wc as ic,qc as jc,An as kc,di as lc,xP as mc,q as nc,KP as oc,Rs as pc,$w as qc,JP as rc,zw as sc,XP as tc,ek as uc,iC as vc,oC as wc,tk as xc,nk as yc,rk as zc,lC as Ac,fC as Bc,ik as Cc,bC as Dc,yk as Ec,Us as Fc,Bg as Gc,$k as Hc,zk as Ic,Ii as Jc,i0 as Kc,o0 as Lc,Mr as Mc,u0 as Nc,rm as Oc,Ai as Pc,xn as Qc,g1 as Rc,m1 as Sc,x0 as Tc,N0 as Uc,R0 as Vc,y1 as Wc,P0 as Xc,L0 as Yc,j0 as Zc,U0 as _c,$0 as $c,tm as ad,D1 as bd,E1 as cd,C1 as dd,_1 as ed,Q as fd,de as gd,_l as hd,z0 as id,M1 as jd,Ml as kd,T1 as ld,Tl as md,Nn as nd,W0 as od,S1 as pd,Ge as qd,On as rd,Oi as sd,X0 as td,X1 as ud,eL as vd,UV as wd,M_ as xd,HV as yd,A_ as zd,$V as Ad,x_ as Bd,zV as Cd,GV as Dd,Pm as Ed,WV as Fd,qV as Gd,YV as Hd,Tr as Id,Q0 as Jd,Sr as Kd,j1 as Ld,B1 as Md,U1 as Nd,H1 as Od,$1 as Pd,z1 as Qd,G1 as Rd,W1 as Sd,Ni as Td,q1 as Ud,Y1 as Vd,Z1 as Wd,Q1 as Xd,iL as Yd,oL as Zd,Nl as _d,Ol as $d,ia as ae,Rl as be,c_ as ce,Fe as de,Te as ee,xr as fe,Pl as ge,Mm as he,aL as ie,uL as je,kl as ke,DL as le,CL as me,xm as ne,FL as oe,Rn as pe,qL as qe,At as re,YL as se,ZL as te,QL as ue,KL as ve,JL as we,Vl as xe,XL as ye,E_ as ze,lV as Ae,dV as Be,w_ as Ce,fV as De,hV as Ee,pV as Fe,gV as Ge,vV as He,DV as Ie,EV as Je,aa as Ke,ua as Le,bV as Me,Rm as Ne,Om as Oe,IV as Pe,wV as Qe,_V as Re,MV as Se,TV as Te,O_ as Ue,ca as Ve,pj as We,gj as Xe,Fm as Ye,Ri as Ze,Nj as _e,Bl as $e,Ul as af,Qj as bf,lB as cf,dB as df,IB as ef,wB as ff}; diff --git a/chunk-WYE4JZFG.js b/chunk-UPKNOQ5B.js similarity index 99% rename from chunk-WYE4JZFG.js rename to chunk-UPKNOQ5B.js index 5c0a551f8..7e11d5684 100644 --- a/chunk-WYE4JZFG.js +++ b/chunk-UPKNOQ5B.js @@ -1 +1 @@ -import{Aa as be,B as Y,Ba as Ur,Bb as Br,Ca as Ie,Cb as Vr,Cc as tn,D as et,E as rt,Ea as xr,Fa as it,Ga as Ae,H as Re,I as nt,Ia as Me,Ic as en,J as yr,M as Ht,N as G,Na as Pr,O as we,P as Rr,Pb as Hr,Ra as $,S as wr,Sa as Nr,Va as De,W as Sr,X as j,Xa as jr,Y as br,Ya as $r,_ as b,a as pr,ab as Lr,ac as Wr,ba as I,bb as kr,bc as Gr,c as gr,cb as Te,cc as Oe,da as S,dc as Ee,e as me,ea as Ir,eb as zr,ec as Qr,f as Ce,fa as Ar,fc as Qt,g as H,ga as T,h as U,ha as Se,hc as Kt,ia as q,ja as g,jc as Zt,k as W,la as Mr,m as A,mc as Kr,n as f,na as Dr,nc as Zr,o as mt,ob as Fr,oc as Yr,p as vr,pa as Tr,pc as Rt,q as mr,qa as Or,qc as Xr,r as y,ra as Wt,rc as Jr,s as Vt,sc as wt,t as D,ta as Er,u as Ct,ua as yt,v as Cr,va as z,vb as _r,w as ye,wa as Gt,zb as qr}from"./chunk-XSFATUKW.js";import{a as h,b as M}from"./chunk-HFDGAYQF.js";var v="primary",$t=Symbol("RouteTitle"),je=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function lt(e){return new je(e)}function Kn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.lengthr[s]===n)}else return e===t}function gn(e){return e.length>0?e[e.length-1]:null}function Z(e){return vr(e)?e:Gr(e)?A(Promise.resolve(e)):f(e)}var Yn={exact:mn,subset:Cn},vn={exact:Xn,subset:Jn,ignored:()=>!0};function rn(e,t,i){return Yn[i.paths](e.root,t.root,i.matrixParams)&&vn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Xn(e,t){return F(e,t)}function mn(e,t,i){if(!J(e.segments,t.segments)||!Jt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!mn(e.children[r],t.children[r],i))return!1;return!0}function Jn(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>pn(e[i],t[i]))}function Cn(e,t,i){return yn(e,t,t.segments,i)}function yn(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!J(n,i)||t.hasChildren()||!Jt(n,i,r))}else if(e.segments.length===i.length){if(!J(e.segments,i)||!Jt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!Cn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!J(e.segments,n)||!Jt(e.segments,n,r)||!e.children[v]?!1:yn(e.children[v],t,s,r)}}function Jt(e,t,i){return t.every((r,n)=>vn[i](e[n].parameters,r.parameters))}var V=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return ri.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return te(this)}},X=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??(this._parameterMap=lt(this.parameters)),this._parameterMap}toString(){return wn(this)}};function ti(e,t){return J(e,t)&&e.every((i,r)=>F(i.parameters,t[r].parameters))}function J(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function ei(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===v&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==v&&(i=i.concat(t(n,r)))}),i}var Lt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>new ht,providedIn:"root"});let e=t;return e})(),ht=class{parse(t){let i=new ke(t);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${St(t.root,!0)}`,r=si(t.queryParams),n=typeof t.fragment=="string"?`#${ni(t.fragment)}`:"";return`${i}${r}${n}`}},ri=new ht;function te(e){return e.segments.map(t=>wn(t)).join("/")}function St(e,t){if(!e.hasChildren())return te(e);if(t){let i=e.children[v]?St(e.children[v],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==v&&r.push(`${n}:${St(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=ei(e,(r,n)=>n===v?[St(e.children[v],!1)]:[`${n}:${St(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[v]!=null?`${te(e)}/${i[0]}`:`${te(e)}/(${i.join("//")})`}}function Rn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yt(e){return Rn(e).replace(/%3B/gi,";")}function ni(e){return encodeURI(e)}function Le(e){return Rn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ee(e){return decodeURIComponent(e)}function nn(e){return ee(e.replace(/\+/g,"%20"))}function wn(e){return`${Le(e.path)}${ii(e.parameters)}`}function ii(e){return Object.entries(e).map(([t,i])=>`;${Le(t)}=${Le(i)}`).join("")}function si(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${Yt(i)}=${Yt(n)}`).join("&"):`${Yt(i)}=${Yt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var oi=/^[^\/()?;#]+/;function Ue(e){let t=e.match(oi);return t?t[0]:""}var ai=/^[^\/()?;=#]+/;function ui(e){let t=e.match(ai);return t?t[0]:""}var ci=/^[^=?&#]+/;function li(e){let t=e.match(ci);return t?t[0]:""}var hi=/^[^&#]+/;function di(e){let t=e.match(hi);return t?t[0]:""}var ke=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[v]=new m(t,i)),r}parseSegment(){let t=Ue(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new X(ee(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=ui(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=Ue(this.remaining);n&&(r=n,this.capture(r))}t[ee(i)]=ee(r)}parseQueryParam(t){let i=li(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=di(this.remaining);o&&(r=o,this.capture(r))}let n=nn(i),s=nn(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ue(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new I(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=v);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[v]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Sn(e){return e.segments.length>0?new m([],{[v]:e}):e}function bn(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=bn(n);if(r===v&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return fi(i)}function fi(e){if(e.numberOfChildren===1&&e.children[v]){let t=e.children[v];return new m(e.segments.concat(t.segments),t.children)}return e}function tt(e){return e instanceof V}function pi(e,t,i=null,r=null){let n=In(e);return An(n,t,i,r)}function In(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=Sn(r);return t??n}function An(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return xe(n,n,n,i,r);let s=gi(t);if(s.toRoot())return xe(n,n,new m([],{}),i,r);let o=vi(s,n,e),a=o.processChildren?At(o.segmentGroup,o.index,s.commands):Dn(o.segmentGroup,o.index,s.commands);return xe(n,o.segmentGroup,a,i,r)}function re(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Tt(e){return typeof e=="object"&&e!=null&&e.outlets}function xe(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=Mn(e,t,i);let a=Sn(bn(o));return new V(a,s,n)}function Mn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=Mn(s,t,i)}),new m(e.segments,r)}var ne=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&re(r[0]))throw new I(4003,!1);let n=r.find(Tt);if(n&&n!==gn(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ne(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new ne(i,t,r)}var at=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function vi(e,t,i){if(e.isAbsolute)return new at(t,!0,0);if(!i)return new at(t,!1,NaN);if(i.parent===null)return new at(i,!0,0);let r=re(e.commands[0])?0:1,n=i.segments.length-1+r;return mi(i,n,e.numberOfDoubleDots)}function mi(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new I(4005,!1);n=r.segments.length}return new at(r,!1,n-s)}function Ci(e){return Tt(e[0])?e[0].outlets:{[v]:e}}function Dn(e,t,i){if(e??(e=new m([],{})),e.segments.length===0&&e.hasChildren())return At(e,t,i);let r=yi(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndexs!==v)&&e.children[v]&&e.numberOfChildren===1&&e.children[v].segments.length===0){let s=At(e.children[v],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=Dn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function yi(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n=i.length)return s;let o=e.segments[n],a=i[r];if(Tt(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!on(c,u,o))return s;r+=2}else{if(!on(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function ze(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=ze(new m([],{}),0,r))}),t}function sn(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function on(e,t,i){return e==i.path&&F(t,i.parameters)}var Mt="imperative",w=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(w||{}),x=class{constructor(t,i){this.id=t,this.url=i}},dt=class extends x{constructor(t,i,r="imperative",n=null){super(t,i),this.type=w.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends x{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=w.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(E||{}),ie=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ie||{}),B=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationSkipped}},Ot=class extends x{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=w.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},se=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_e=class extends x{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=w.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Be=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ve=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},He=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},We=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ge=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qe=class{constructor(t){this.snapshot=t,this.type=w.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ke=class{constructor(t){this.snapshot=t,this.type=w.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oe=class{constructor(t,i,r){this.routerEvent=t,this.position=i,this.anchor=r,this.type=w.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Et=class{},ft=class{constructor(t,i){this.url=t,this.navigationBehaviorOptions=i}};function wi(e,t){return e.providers&&!e._injector&&(e._injector=Te(e.providers,t,`Route: ${e.path}`)),e._injector??t}function L(e){return e.outlet||v}function Si(e,t){let i=e.filter(r=>L(r)===t);return i.push(...e.filter(r=>L(r)!==t)),i}function kt(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){let r=i.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var Ze=class{get injector(){var t;return kt((t=this.route)==null?void 0:t.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new zt(this.rootInjector),this.attachRef=null}},zt=(()=>{let t=class t{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new Ze(this.rootInjector),this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)(q(yt))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ae=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Ye(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=Ye(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Xe(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Xe(t,this._root).map(i=>i.value)}};function Ye(e,t){if(e===t.value)return t;for(let i of t.children){let r=Ye(e,i);if(r)return r}return null}function Xe(e,t){if(e===t.value)return[t];for(let i of t.children){let r=Xe(e,i);if(r.length)return r.unshift(t),r}return[]}var O=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function ot(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var ue=class extends ae{constructor(t,i){super(t),this.snapshot=i,ar(this,t)}toString(){return this.snapshot.toString()}};function Tn(e){let t=bi(e),i=new U([new X("",{})]),r=new U({}),n=new U({}),s=new U({}),o=new U(""),a=new K(i,r,s,o,n,v,e,t.root);return a.snapshot=t.root,new ue(new O(a,[]),t)}function bi(e){let t={},i={},r={},n="",s=new ut([],t,r,n,i,v,e,null,{});return new le("",new O(s,[]))}var K=class{constructor(t,i,r,n,s,o,a,c){var u;this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=((u=this.dataSubject)==null?void 0:u.pipe(y(l=>l[$t])))??f(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}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._paramMap=this.params.pipe(y(t=>lt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(y(t=>lt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ce(e,t,i="emptyOnly"){var s;let r,{routeConfig:n}=e;return t!==null&&(i==="always"||(n==null?void 0:n.path)===""||!t.component&&!((s=t.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n==null?void 0:n.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&En(n)&&(r.resolve[$t]=n.title),r}var ut=class{get title(){var t;return(t=this.data)==null?void 0:t[$t]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,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??(this._paramMap=lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},le=class extends ae{constructor(t,i){super(i),this.url=t,ar(this,i)}toString(){return On(this._root)}};function ar(e,t){t.value._routerState=e,t.children.forEach(i=>ar(e,i))}function On(e){let t=e.children.length>0?` { ${e.children.map(On).join(", ")} } `:"";return`${e.value}${t}`}function Pe(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,F(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),F(t.params,i.params)||e.paramsSubject.next(i.params),Zn(t.url,i.url)||e.urlSubject.next(i.url),F(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Je(e,t){let i=F(e.params,t.params)&&ti(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Je(e.parent,t.parent))}function En(e){return typeof e.title=="string"||e.title===null}var Ii=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=v,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=g(zt),this.location=g($r),this.changeDetector=g(Kt),this.inputBinder=g(pe,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var n;return((n=this.parentContexts.getContext(r))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){var s;this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),(s=this.inputBinder)==null||s.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){var l;if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new tr(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gt]});let e=t;return e})(),tr=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===K?this.route:t===zt?this.childContexts:this.parent.get(t,i)}},pe=new T(""),an=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){var n;(n=this.outletDataSubscriptions.get(r))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:n}=r,s=Vt([n.queryParams,n.params,n.data]).pipe(j(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?f(c):Promise.resolve(c)))).subscribe(o=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(r);return}let a=Kr(n.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(r,s)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Ai(e,t,i){let r=Ut(e,t._root,i?i._root:void 0);return new ue(r,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=Mi(e,t,i);return new O(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let r=Di(t.value),n=t.children.map(s=>Ut(e,s));return new O(r,n)}}function Mi(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Ut(e,r,n);return Ut(e,r)})}function Di(e){return new K(new U(e.url),new U(e.params),new U(e.queryParams),new U(e.fragment),new U(e.data),e.outlet,e.component,e)}var xt=class{constructor(t,i){this.redirectTo=t,this.navigationBehaviorOptions=i}},Un="ngNavigationCancelingError";function he(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=tt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=xn(!1,E.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function xn(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[Un]=!0,i.cancellationCode=t,i}function Ti(e){return Pn(e)&&tt(e.url)}function Pn(e){return!!e&&e[Un]}var Oi=(e,t,i,r)=>y(n=>(new er(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),er=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),Pe(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Ke(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Ge(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(Pe(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Pe(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=n,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,r)}},de=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ct=class{constructor(t,i){this.component=t,this.route=i}};function Ei(e,t,i){let r=e._root,n=t?t._root:null;return bt(r,n,i,[r.value])}function Ui(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function gt(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!Ar(e)?e:t.get(e):r}function bt(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=ot(t);return e.children.forEach(o=>{xi(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Dt(a,i.getContext(o),n)),n}function xi(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Pi(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new de(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?bt(e,t,a?a.children:null,r,n):bt(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new ct(a.outlet.component,o))}else o&&Dt(t,a,n),n.canActivateChecks.push(new de(r)),s.component?bt(e,null,a?a.children:null,r,n):bt(e,null,i,r,n);return n}function Pi(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!J(e.url,t.url);case"pathParamsOrQueryParamsChange":return!J(e.url,t.url)||!F(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Je(e,t)||!F(e.queryParams,t.queryParams);case"paramsChange":default:return!Je(e,t)}}function Dt(e,t,i){let r=ot(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?Dt(o,t.children.getContext(s),i):Dt(o,null,i):Dt(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new ct(t.outlet.component,n)):i.canDeactivateChecks.push(new ct(null,n)):i.canDeactivateChecks.push(new ct(null,n))}function Ft(e){return typeof e=="function"}function Ni(e){return typeof e=="boolean"}function ji(e){return e&&Ft(e.canLoad)}function $i(e){return e&&Ft(e.canActivate)}function Li(e){return e&&Ft(e.canActivateChild)}function ki(e){return e&&Ft(e.canDeactivate)}function zi(e){return e&&Ft(e.canMatch)}function Nn(e){return e instanceof mr||(e==null?void 0:e.name)==="EmptyError"}var Xt=Symbol("INITIAL_VALUE");function pt(){return j(e=>Vt(e.map(t=>t.pipe(nt(1),Sr(Xt)))).pipe(y(t=>{for(let i of t)if(i!==!0){if(i===Xt)return Xt;if(i===!1||Fi(i))return i}return!0}),Y(t=>t!==Xt),nt(1)))}function Fi(e){return tt(e)||e instanceof xt}function _i(e,t){return D(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(M(h({},i),{guardsResult:!0})):qi(o,r,n,e).pipe(D(a=>a&&Ni(a)?Bi(r,s,e,t):f(a)),y(a=>M(h({},i),{guardsResult:a})))})}function qi(e,t,i,r){return A(e).pipe(D(n=>Qi(n.component,n.route,i,t,r)),G(n=>n!==!0,!0))}function Bi(e,t,i,r){return A(t).pipe(rt(n=>Cr(Hi(n.route.parent,r),Vi(n.route,r),Gi(e,n.path,i),Wi(e,n.route,i))),G(n=>n!==!0,!0))}function Vi(e,t){return e!==null&&t&&t(new Qe(e)),f(!0)}function Hi(e,t){return e!==null&&t&&t(new We(e)),f(!0)}function Wi(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let n=r.map(s=>ye(()=>{let o=kt(t)??i,a=gt(s,o),c=$i(a)?a.canActivate(t,e):z(o,()=>a(t,e));return Z(c).pipe(G())}));return f(n).pipe(pt())}function Gi(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>Ui(o)).filter(o=>o!==null).map(o=>ye(()=>{let a=o.guards.map(c=>{let u=kt(o.node)??i,l=gt(c,u),p=Li(l)?l.canActivateChild(r,e):z(u,()=>l(r,e));return Z(p).pipe(G())});return f(a).pipe(pt())}));return f(s).pipe(pt())}function Qi(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=kt(t)??n,u=gt(a,c),l=ki(u)?u.canDeactivate(e,t,i,r):z(c,()=>u(e,t,i,r));return Z(l).pipe(G())});return f(o).pipe(pt())}function Ki(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return f(!0);let s=n.map(o=>{let a=gt(o,e),c=ji(a)?a.canLoad(t,i):z(e,()=>a(t,i));return Z(c)});return f(s).pipe(pt(),jn(r))}function jn(e){return gr(b(t=>{if(typeof t!="boolean")throw he(e,t)}),y(t=>t===!0))}function Zi(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return f(!0);let s=n.map(o=>{let a=gt(o,e),c=zi(a)?a.canMatch(t,i):z(e,()=>a(t,i));return Z(c)});return f(s).pipe(pt(),jn(r))}var Pt=class{constructor(t){this.segmentGroup=t||null}},Nt=class extends Error{constructor(t){super(),this.urlTree=t}};function st(e){return mt(new Pt(e))}function Yi(e){return mt(new I(4e3,!1))}function Xi(e){return mt(xn(!1,E.GuardRejected))}var rr=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return f(r);if(n.numberOfChildren>1||!n.children[v])return Yi(`${t.redirectTo}`);n=n.children[v]}}applyRedirectCommands(t,i,r,n,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,params:C,data:R,title:P}=n,N=z(s,()=>a({params:C,data:R,queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,title:P}));if(N instanceof V)throw new Nt(N);i=N}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i[0]==="/")throw new Nt(o);return o}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path[0]===":"?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new I(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ji(e,t,i,r,n){let s=ur(e,t,i);return s.matched?(r=wi(t,r),Zi(r,t,i,n).pipe(y(o=>o===!0?s:h({},nr)))):f(s)}function ur(e,t,i){if(t.path==="**")return ts(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},nr):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Kn)(i,e,t);if(!n)return h({},nr);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function ts(e){return{matched:!0,parameters:e.length>0?gn(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function un(e,t,i,r){return i.length>0&&ns(e,i,r)?{segmentGroup:new m(t,rs(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&is(e,i,r)?{segmentGroup:new m(e.segments,es(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function es(e,t,i,r){let n={};for(let s of i)if(ge(e,t,s)&&!r[L(s)]){let o=new m([],{});n[L(s)]=o}return h(h({},r),n)}function rs(e,t){let i={};i[v]=t;for(let r of e)if(r.path===""&&L(r)!==v){let n=new m([],{});i[L(r)]=n}return i}function ns(e,t,i){return i.some(r=>ge(e,t,r)&&L(r)!==v)}function is(e,t,i){return i.some(r=>ge(e,t,r))}function ge(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function ss(e,t,i,r){return L(e)!==r&&(r===v||!ge(t,i,e))?!1:ur(t,e,i).matched}function os(e,t,i){return t.length===0&&!e.children[i]}var ir=class{};function as(e,t,i,r,n,s,o="emptyOnly"){return new sr(e,t,i,r,n,o,s).recognize()}var us=31,sr=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new rr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=un(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(y(({children:i,rootSnapshot:r})=>{let n=new O(r,i),s=new le("",n),o=pi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(t){let i=new ut([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),v,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,v,i).pipe(y(r=>({children:r,rootSnapshot:i})),et(r=>{if(r instanceof Nt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pt?this.noMatchError(r):r}))}processSegmentGroup(t,i,r,n,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r,s):this.processSegment(t,i,r,r.segments,n,!0,s).pipe(y(o=>o instanceof O?[o]:[]))}processChildren(t,i,r,n){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return A(s).pipe(rt(o=>{let a=r.children[o],c=Si(i,o);return this.processSegmentGroup(t,c,a,o,n)}),wr((o,a)=>(o.push(...a),o)),Re(null),Rr(),D(o=>{if(o===null)return st(r);let a=$n(o);return cs(a),f(a)}))}processSegment(t,i,r,n,s,o,a){return A(i).pipe(rt(c=>this.processSegmentAgainstRoute(c._injector??t,i,c,r,n,s,o,a).pipe(et(u=>{if(u instanceof Pt)return f(null);throw u}))),G(c=>!!c),et(c=>{if(Nn(c))return os(r,n,s)?f(new ir):st(r);throw c}))}processSegmentAgainstRoute(t,i,r,n,s,o,a,c){return ss(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o,c):st(n):st(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:d}=ur(i,n,s);if(!c)return st(i);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>us&&(this.allowRedirects=!1));let C=new ut(s,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(n),L(n),n.component??n._loadedComponent??null,n,ln(n)),R=ce(C,a,this.paramsInheritanceStrategy);C.params=Object.freeze(R.params),C.data=Object.freeze(R.data);let P=this.applyRedirects.applyRedirectCommands(l,n.redirectTo,p,C,t);return this.applyRedirects.lineralizeSegments(n,P).pipe(D(N=>this.processSegment(t,r,i,N.concat(d),o,!1,a)))}matchSegmentAgainstRoute(t,i,r,n,s,o){let a=Ji(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),a.pipe(j(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(j(({routes:u})=>{let l=r._loadedInjector??t,{parameters:p,consumedSegments:d,remainingSegments:C}=c,R=new ut(d,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(r),L(r),r.component??r._loadedComponent??null,r,ln(r)),P=ce(R,o,this.paramsInheritanceStrategy);R.params=Object.freeze(P.params),R.data=Object.freeze(P.data);let{segmentGroup:N,slicedSegments:vt}=un(i,d,C,u);if(vt.length===0&&N.hasChildren())return this.processChildren(l,u,N,R).pipe(y(Bt=>new O(R,Bt)));if(u.length===0&&vt.length===0)return f(new O(R,[]));let ve=L(r)===s;return this.processSegment(l,u,N,vt,ve?v:s,!0,R).pipe(y(Bt=>new O(R,Bt instanceof O?[Bt]:[])))}))):st(i)))}getChildConfig(t,i,r){return i.children?f({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ki(t,i,r,this.urlSerializer).pipe(D(n=>n?this.configLoader.loadChildren(t,i).pipe(b(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Xi(i))):f({routes:[],injector:t})}};function cs(e){e.sort((t,i)=>t.value.outlet===v?-1:i.value.outlet===v?1:t.value.outlet.localeCompare(i.value.outlet))}function ls(e){let t=e.value.routeConfig;return t&&t.path===""}function $n(e){let t=[],i=new Set;for(let r of e){if(!ls(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=$n(r.children);t.push(new O(r.value,n))}return t.filter(r=>!i.has(r))}function cn(e){return e.data||{}}function ln(e){return e.resolve||{}}function hs(e,t,i,r,n,s){return D(o=>as(e,t,i,r,o.extractedUrl,n,s).pipe(y(({state:a,tree:c})=>M(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function ds(e,t){return D(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return f(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of Ln(c))o.add(u);let a=0;return A(o).pipe(rt(c=>s.has(c)?fs(c,r,e,t):(c.data=ce(c,c.parent,e).resolve,f(void 0))),b(()=>a++),we(1),D(c=>a===o.size?f(i):W))})}function Ln(e){let t=e.children.map(i=>Ln(i)).flat();return[e,...t]}function fs(e,t,i,r){let n=e.routeConfig,s=e._resolve;return(n==null?void 0:n.title)!==void 0&&!En(n)&&(s[$t]=n.title),ps(s,e,t,r).pipe(y(o=>(e._resolvedData=o,e.data=ce(e,e.parent,i).resolve,null)))}function ps(e,t,i,r){let n=$e(e);if(n.length===0)return f({});let s={};return A(n).pipe(D(o=>gs(e[o],t,i,r).pipe(G(),b(a=>{if(a instanceof xt)throw he(new ht,a);s[o]=a}))),we(1),yr(s),et(o=>Nn(o)?W:mt(o)))}function gs(e,t,i,r){let n=kt(t)??r,s=gt(e,n),o=s.resolve?s.resolve(t,i):z(n,()=>s(t,i));return Z(o)}function Ne(e){return j(t=>{let i=e(t);return i?A(i).pipe(y(()=>t)):f(t)})}var kn=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===v);return n}getResolvedTitleForRoute(r){return r.data[$t]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(vs),providedIn:"root"});let e=t;return e})(),vs=(()=>{let t=class t extends kn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(q(en))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_t=new T("",{providedIn:"root",factory:()=>({})}),ms=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Tr({type:t,selectors:[["ng-component"]],standalone:!0,features:[Hr],decls:1,vars:0,template:function(n,s){n&1&&Fr(0,"router-outlet")},dependencies:[Ii],encapsulation:2});let e=t;return e})();function cr(e){let t=e.children&&e.children.map(cr),i=t?M(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==v&&(i.component=ms),i}var jt=new T(""),lr=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Qt)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return f(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=Z(r.loadComponent()).pipe(y(zn),b(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),Ht(()=>{this.componentLoaders.delete(r)})),s=new Ce(n,()=>new H).pipe(me());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=Cs(n,this.compiler,r,this.onLoadEndListener).pipe(Ht(()=>{this.childrenLoaders.delete(n)})),a=new Ce(o,()=>new H).pipe(me());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Cs(e,t,i,r){return Z(e.loadChildren()).pipe(y(zn),D(n=>n instanceof kr||Array.isArray(n)?f(n):A(t.compileModuleAsync(n))),y(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(jt,[],{optional:!0,self:!0}).flat()),{routes:o.map(cr),injector:s}}))}function ys(e){return e&&typeof e=="object"&&"default"in e}function zn(e){return ys(e)?e.default:e}var hr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Rs),providedIn:"root"});let e=t;return e})(),Rs=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Fn=new T(""),_n=new T("");function ws(e,t,i){let r=e.get(_n),n=e.get(Zr);return e.get(Ae).runOutsideAngular(()=>{if(!n.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=n.startViewTransition(()=>(s(),Ss(e))),{onViewTransitionCreated:c}=r;return c&&z(e,()=>c({transition:a,from:t,to:i})),o})}function Ss(e){return new Promise(t=>{jr({read:()=>setTimeout(t)},{injector:e})})}var bs=new T(""),dr=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=g(lr),this.environmentInjector=g(yt),this.urlSerializer=g(Lt),this.rootContexts=g(zt),this.location=g(wt),this.inputBindingEnabled=g(pe,{optional:!0})!==null,this.titleStrategy=g(kn),this.options=g(_t,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(hr),this.createViewTransition=g(Fn,{optional:!0}),this.navigationErrorHandler=g(bs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let r=s=>this.events.next(new Ve(s)),n=s=>this.events.next(new He(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var s;let n=++this.navigationId;(s=this.transitions)==null||s.next(M(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new U({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Mt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),y(o=>M(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),j(o=>{let a=!1,c=!1;return f(o).pipe(j(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),W;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&p!=="reload"){let d="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.rawUrl),d,ie.IgnoredSameUrlNavigation)),u.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return f(u).pipe(j(d=>{var R,P;let C=(R=this.transitions)==null?void 0:R.getValue();return this.events.next(new dt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),C!==((P=this.transitions)==null?void 0:P.getValue())?W:Promise.resolve(d)}),hs(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),b(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let C=new se(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(C)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:C,source:R,restoredState:P,extras:N}=u,vt=new dt(d,this.urlSerializer.serialize(C),R,P);this.events.next(vt);let ve=Tn(this.rootComponentType).snapshot;return this.currentTransition=o=M(h({},u),{targetSnapshot:ve,urlAfterRedirects:C,extras:M(h({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=C,f(o)}else{let d="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.extractedUrl),d,ie.IgnoredByUrlHandlingStrategy)),u.resolve(!1),W}}),b(u=>{let l=new Fe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),y(u=>(this.currentTransition=o=M(h({},u),{guards:Ei(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),_i(this.environmentInjector,u=>this.events.next(u)),b(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw he(this.urlSerializer,u.guardsResult);let l=new _e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Y(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",E.GuardRejected),!1)),Ne(u=>{if(u.guards.canActivateChecks.length)return f(u).pipe(b(l=>{let p=new qe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),j(l=>{let p=!1;return f(l).pipe(ds(this.paramsInheritanceStrategy,this.environmentInjector),b({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",E.NoDataFromResolver)}}))}),b(l=>{let p=new Be(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Ne(u=>{let l=p=>{var C;let d=[];(C=p.routeConfig)!=null&&C.loadComponent&&!p.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(p.routeConfig).pipe(b(R=>{p.component=R}),y(()=>{})));for(let R of p.children)d.push(...l(R));return d};return Vt(l(u.targetSnapshot.root)).pipe(Re(null),nt(1))}),Ne(()=>this.afterPreactivation()),j(()=>{var d;let{currentSnapshot:u,targetSnapshot:l}=o,p=(d=this.createViewTransition)==null?void 0:d.call(this,this.environmentInjector,u.root,l.root);return p?A(p).pipe(y(()=>o)):f(o)}),y(u=>{let l=Ai(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=M(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),b(()=>{this.events.next(new Et)}),Oi(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),nt(1),b({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),br(this.transitionAbortSubject.pipe(b(u=>{throw u}))),Ht(()=>{var u;!a&&!c&&this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),((u=this.currentTransition)==null?void 0:u.id)===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(u=>{if(c=!0,Pn(u))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Ti(u)?this.events.next(new ft(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let p=z(this.environmentInjector,()=>{var d;return(d=this.navigationErrorHandler)==null?void 0:d.call(this,l)});if(p instanceof xt){let{message:d,cancellationCode:C}=he(this.urlSerializer,p);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),d,C)),this.events.next(new ft(p.redirectTo,p.navigationBehaviorOptions))}else{this.events.next(l);let d=r.errorHandler(u);o.resolve(!!d)}}catch(p){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(p)}}return W}))}))}cancelNavigationTransition(r,n,s){let o=new B(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){var r,n;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var s,o,a;let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=((s=this.currentNavigation)==null?void 0:s.targetBrowserUrl)??((o=this.currentNavigation)==null?void 0:o.extractedUrl);return r.toString()!==(n==null?void 0:n.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Is(e){return e!==Mt}var As=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Ms),providedIn:"root"});let e=t;return e})(),or=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},Ms=(()=>{let t=class t extends or{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=be(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Ds),providedIn:"root"});let e=t;return e})(),Ds=(()=>{let t=class t extends qn{constructor(){super(...arguments),this.location=g(wt),this.urlSerializer=g(Lt),this.options=g(_t,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(hr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Tn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((r=this.restoredState())==null?void 0:r.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof dt)this.stateMemento=this.createStateMemento();else if(r instanceof Q)this.rawUrlTree=n.initialUrl;else if(r instanceof se){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??s,n)}}else r instanceof Et?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):r instanceof B&&(r.code===E.GuardRejected||r.code===E.NoDataFromResolver)?this.restoreHistory(n):r instanceof Ot?this.restoreHistory(n,!0):r instanceof k&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=r instanceof V?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=be(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),It=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(It||{});function Bn(e,t){e.events.pipe(Y(i=>i instanceof k||i instanceof B||i instanceof Ot||i instanceof Q),y(i=>i instanceof k||i instanceof Q?It.COMPLETE:(i instanceof B?i.code===E.Redirect||i.code===E.SupersededByNewNavigation:!1)?It.REDIRECTING:It.FAILED),Y(i=>i!==It.REDIRECTING),nt(1)).subscribe(()=>{t()})}function Ts(e){throw e}var Os={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r;this.disposed=!1,this.console=g(Wr),this.stateManager=g(qn),this.options=g(_t,{optional:!0})||{},this.pendingTasks=g(xr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(dr),this.urlSerializer=g(Lt),this.location=g(wt),this.urlHandlingStrategy=g(hr),this._events=new H,this.errorHandler=this.options.errorHandler||Ts,this.navigated=!1,this.routeReuseStrategy=g(As),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((r=g(jt,{optional:!0}))==null?void 0:r.flat())??[],this.componentInputBindingEnabled=!!g(pe,{optional:!0}),this.eventsSubscription=new pr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof B&&n.code!==E.Redirect&&n.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof k)this.navigated=!0;else if(n instanceof ft){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),u=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Is(s.source)},a);this.scheduleNavigation(c,Mt,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}xs(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Mt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)}))}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s!=null&&s.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(cr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let d;try{let C=s?s.snapshot:this.routerState.snapshot.root;d=In(C)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),d=this.currentUrlTree.root}return An(d,r,p,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=tt(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Mt,null,n)}navigate(r,n={skipLocationChange:!1}){return Us(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},Os):n===!1?s=h({},Es):s=n,tt(r))return rn(this.currentUrlTree,r,s);let o=this.parseUrl(r);return rn(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((d,C)=>{c=d,u=C});let p=this.pendingTasks.add();return Bn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Us(e){for(let t=0;t{let t=class t{constructor(r,n,s,o,a,c){var l;this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=(l=a.nativeElement.tagName)==null?void 0:l.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(p=>{p instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(tt(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){var r;(r=this.subscription)==null||r.unsubscribe()}updateHref(){var s;let r=this.urlTree;this.href=r!==null&&this.locationStrategy?(s=this.locationStrategy)==null?void 0:s.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:Pr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.routerLinkInput===null?null:tt(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})}};t.\u0275fac=function(n){return new(n||t)($(_),$(K),Ur("tabindex"),$(De),$(Me),$(Rt))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&_r("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&zr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Zt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Zt],replaceUrl:[2,"replaceUrl","replaceUrl",Zt],routerLink:"routerLink"},standalone:!0,features:[Lr,Gt]});let e=t;return e})(),mo=(()=>{let t=class t{get isActive(){return this._isActive}constructor(r,n,s,o,a){this.router=r,this.element=n,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new it,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Ct()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;(n=this.linkInputChangesSubscription)==null||n.unsubscribe();let r=[...this.links.toArray(),this.link].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=A(r).pipe(Ct()).subscribe(s=>{this._isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(r){let n=Array.isArray(r)?r:r.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(r){this.update()}ngOnDestroy(){var r;this.routerEventsSubscription.unsubscribe(),(r=this.linkInputChangesSubscription)==null||r.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(n=>{r?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let n=Ps(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?r.isActive(o,n):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};t.\u0275fac=function(n){return new(n||t)($(_),$(Me),$(De),$(Kt),$(hn,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,s,o){if(n&1&&qr(o,hn,5),n&2){let a;Br(a=Vr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Gt]});let e=t;return e})();function Ps(e){return!!e.paths}var fe=class{};var Ns=(()=>{let t=class t{constructor(r,n,s,o,a){this.router=r,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Y(r=>r instanceof k),rt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,n){let s=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Te(o.providers,r,`Route: ${o.path}`));let a=o._injector??r,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return A(s).pipe(Ct())}preloadConfig(r,n){return this.preloadingStrategy.preload(n,()=>{let s;n.loadChildren&&n.canLoad===void 0?s=this.loader.loadChildren(r,n):s=f(null);let o=s.pipe(D(a=>a===null?f(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return A([o,a]).pipe(Ct())}else return o})}};t.\u0275fac=function(n){return new(n||t)(q(_),q(Qt),q(yt),q(fe),q(lr))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vn=new T(""),js=(()=>{let t=class t{constructor(r,n,s,o,a={}){this.urlSerializer=r,this.transitions=n,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||(a.scrollPositionRestoration="disabled"),a.anchorScrolling||(a.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(r=>{r instanceof dt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof k?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof Q&&r.code===ie.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof oe&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new oe(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){var r,n;(r=this.routerEventsSubscription)==null||r.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}};t.\u0275fac=function(n){Nr()},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Co(e,...t){return Er([{provide:jt,multi:!0,useValue:e},[],{provide:K,useFactory:Hn,deps:[_]},{provide:Ee,multi:!0,useFactory:Wn},t.map(i=>i.\u0275providers)])}function Hn(e){return e.routerState.root}function qt(e,t){return{\u0275kind:e,\u0275providers:t}}function Wn(){let e=g(Ie);return t=>{var s,o;let i=e.get(Qr);if(t!==i.components[0])return;let r=e.get(_),n=e.get(Gn);e.get(fr)===1&&r.initialNavigation(),(s=e.get(Qn,null,Se.Optional))==null||s.setUpPreloading(),(o=e.get(Vn,null,Se.Optional))==null||o.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Gn=new T("",{factory:()=>new H}),fr=new T("",{providedIn:"root",factory:()=>1});function $s(){return qt(2,[{provide:fr,useValue:0},{provide:Oe,multi:!0,deps:[Ie],useFactory:t=>{let i=t.get(Yr,Promise.resolve());return()=>i.then(()=>new Promise(r=>{let n=t.get(_),s=t.get(Gn);Bn(n,()=>{r(!0)}),t.get(dr).afterPreactivation=()=>(r(!0),s.closed?f(void 0):s),n.initialNavigation()}))}}])}function Ls(){return qt(3,[{provide:Oe,multi:!0,useFactory:()=>{let t=g(_);return()=>{t.setUpLocationChangeListener()}}},{provide:fr,useValue:2}])}var Qn=new T("");function ks(e){return qt(0,[{provide:Qn,useExisting:Ns},{provide:fe,useExisting:e}])}function zs(){return qt(8,[an,{provide:pe,useExisting:an}])}function Fs(e){let t=[{provide:Fn,useValue:ws},{provide:_n,useValue:h({skipNextTransition:!!(e!=null&&e.skipInitialTransition)},e)}];return qt(9,t)}var dn=new T("ROUTER_FORROOT_GUARD"),_s=[wt,{provide:Lt,useClass:ht},_,zt,{provide:K,useFactory:Hn,deps:[_]},lr,[]],yo=(()=>{let t=class t{constructor(r){}static forRoot(r,n){return{ngModule:t,providers:[_s,[],{provide:jt,multi:!0,useValue:r},{provide:dn,useFactory:Hs,deps:[[_,new Mr,new Dr]]},{provide:_t,useValue:n||{}},n!=null&&n.useHash?Bs():Vs(),qs(),n!=null&&n.preloadingStrategy?ks(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?Ws(n):[],n!=null&&n.bindToComponentInputs?zs().\u0275providers:[],n!=null&&n.enableViewTransitions?Fs().\u0275providers:[],Gs()]}}static forChild(r){return{ngModule:t,providers:[{provide:jt,multi:!0,useValue:r}]}}};t.\u0275fac=function(n){return new(n||t)(q(dn,8))},t.\u0275mod=Or({type:t}),t.\u0275inj=Ir({});let e=t;return e})();function qs(){return{provide:Vn,useFactory:()=>{let e=g(tn),t=g(Ae),i=g(_t),r=g(dr),n=g(Lt);return i.scrollOffset&&e.setOffset(i.scrollOffset),new js(n,r,e,t,i)}}}function Bs(){return{provide:Rt,useClass:Jr}}function Vs(){return{provide:Rt,useClass:Xr}}function Hs(e){return"guarded"}function Ws(e){return[e.initialNavigation==="disabled"?Ls().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$s().\u0275providers:[]]}var fn=new T("");function Gs(){return[{provide:fn,useFactory:Wn},{provide:Ee,multi:!0,useExisting:fn}]}export{Ke as a,K as b,Ii as c,_ as d,hn as e,mo as f,Co as g,yo as h}; +import{Aa as be,B as Y,Ba as Ur,Bb as Br,Ca as Ie,Cb as Vr,Cc as tn,D as et,E as rt,Ea as xr,Fa as it,Ga as Ae,H as Re,I as nt,Ia as Me,Ic as en,J as yr,M as Ht,N as G,Na as Pr,O as we,P as Rr,Pb as Hr,Ra as $,S as wr,Sa as Nr,Va as De,W as Sr,X as j,Xa as jr,Y as br,Ya as $r,_ as b,a as pr,ab as Lr,ac as Wr,ba as I,bb as kr,bc as Gr,c as gr,cb as Te,cc as Oe,da as S,dc as Ee,e as me,ea as Ir,eb as zr,ec as Qr,f as Ce,fa as Ar,fc as Qt,g as H,ga as T,h as U,ha as Se,hc as Kt,ia as q,ja as g,jc as Zt,k as W,la as Mr,m as A,mc as Kr,n as f,na as Dr,nc as Zr,o as mt,ob as Fr,oc as Yr,p as vr,pa as Tr,pc as Rt,q as mr,qa as Or,qc as Xr,r as y,ra as Wt,rc as Jr,s as Vt,sc as wt,t as D,ta as Er,u as Ct,ua as yt,v as Cr,va as z,vb as _r,w as ye,wa as Gt,zb as qr}from"./chunk-SY4TDKKS.js";import{a as h,b as M}from"./chunk-HFDGAYQF.js";var v="primary",$t=Symbol("RouteTitle"),je=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function lt(e){return new je(e)}function Kn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.lengthr[s]===n)}else return e===t}function gn(e){return e.length>0?e[e.length-1]:null}function Z(e){return vr(e)?e:Gr(e)?A(Promise.resolve(e)):f(e)}var Yn={exact:mn,subset:Cn},vn={exact:Xn,subset:Jn,ignored:()=>!0};function rn(e,t,i){return Yn[i.paths](e.root,t.root,i.matrixParams)&&vn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Xn(e,t){return F(e,t)}function mn(e,t,i){if(!J(e.segments,t.segments)||!Jt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!mn(e.children[r],t.children[r],i))return!1;return!0}function Jn(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>pn(e[i],t[i]))}function Cn(e,t,i){return yn(e,t,t.segments,i)}function yn(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!J(n,i)||t.hasChildren()||!Jt(n,i,r))}else if(e.segments.length===i.length){if(!J(e.segments,i)||!Jt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!Cn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!J(e.segments,n)||!Jt(e.segments,n,r)||!e.children[v]?!1:yn(e.children[v],t,s,r)}}function Jt(e,t,i){return t.every((r,n)=>vn[i](e[n].parameters,r.parameters))}var V=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){return ri.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return te(this)}},X=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??(this._parameterMap=lt(this.parameters)),this._parameterMap}toString(){return wn(this)}};function ti(e,t){return J(e,t)&&e.every((i,r)=>F(i.parameters,t[r].parameters))}function J(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function ei(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===v&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==v&&(i=i.concat(t(n,r)))}),i}var Lt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>new ht,providedIn:"root"});let e=t;return e})(),ht=class{parse(t){let i=new ke(t);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${St(t.root,!0)}`,r=si(t.queryParams),n=typeof t.fragment=="string"?`#${ni(t.fragment)}`:"";return`${i}${r}${n}`}},ri=new ht;function te(e){return e.segments.map(t=>wn(t)).join("/")}function St(e,t){if(!e.hasChildren())return te(e);if(t){let i=e.children[v]?St(e.children[v],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==v&&r.push(`${n}:${St(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=ei(e,(r,n)=>n===v?[St(e.children[v],!1)]:[`${n}:${St(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[v]!=null?`${te(e)}/${i[0]}`:`${te(e)}/(${i.join("//")})`}}function Rn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yt(e){return Rn(e).replace(/%3B/gi,";")}function ni(e){return encodeURI(e)}function Le(e){return Rn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ee(e){return decodeURIComponent(e)}function nn(e){return ee(e.replace(/\+/g,"%20"))}function wn(e){return`${Le(e.path)}${ii(e.parameters)}`}function ii(e){return Object.entries(e).map(([t,i])=>`;${Le(t)}=${Le(i)}`).join("")}function si(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${Yt(i)}=${Yt(n)}`).join("&"):`${Yt(i)}=${Yt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var oi=/^[^\/()?;#]+/;function Ue(e){let t=e.match(oi);return t?t[0]:""}var ai=/^[^\/()?;=#]+/;function ui(e){let t=e.match(ai);return t?t[0]:""}var ci=/^[^=?&#]+/;function li(e){let t=e.match(ci);return t?t[0]:""}var hi=/^[^&#]+/;function di(e){let t=e.match(hi);return t?t[0]:""}var ke=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[v]=new m(t,i)),r}parseSegment(){let t=Ue(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new X(ee(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=ui(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=Ue(this.remaining);n&&(r=n,this.capture(r))}t[ee(i)]=ee(r)}parseQueryParam(t){let i=li(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=di(this.remaining);o&&(r=o,this.capture(r))}let n=nn(i),s=nn(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ue(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new I(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=v);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[v]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Sn(e){return e.segments.length>0?new m([],{[v]:e}):e}function bn(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=bn(n);if(r===v&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return fi(i)}function fi(e){if(e.numberOfChildren===1&&e.children[v]){let t=e.children[v];return new m(e.segments.concat(t.segments),t.children)}return e}function tt(e){return e instanceof V}function pi(e,t,i=null,r=null){let n=In(e);return An(n,t,i,r)}function In(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=Sn(r);return t??n}function An(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return xe(n,n,n,i,r);let s=gi(t);if(s.toRoot())return xe(n,n,new m([],{}),i,r);let o=vi(s,n,e),a=o.processChildren?At(o.segmentGroup,o.index,s.commands):Dn(o.segmentGroup,o.index,s.commands);return xe(n,o.segmentGroup,a,i,r)}function re(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Tt(e){return typeof e=="object"&&e!=null&&e.outlets}function xe(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=Mn(e,t,i);let a=Sn(bn(o));return new V(a,s,n)}function Mn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=Mn(s,t,i)}),new m(e.segments,r)}var ne=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&re(r[0]))throw new I(4003,!1);let n=r.find(Tt);if(n&&n!==gn(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ne(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new ne(i,t,r)}var at=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function vi(e,t,i){if(e.isAbsolute)return new at(t,!0,0);if(!i)return new at(t,!1,NaN);if(i.parent===null)return new at(i,!0,0);let r=re(e.commands[0])?0:1,n=i.segments.length-1+r;return mi(i,n,e.numberOfDoubleDots)}function mi(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new I(4005,!1);n=r.segments.length}return new at(r,!1,n-s)}function Ci(e){return Tt(e[0])?e[0].outlets:{[v]:e}}function Dn(e,t,i){if(e??(e=new m([],{})),e.segments.length===0&&e.hasChildren())return At(e,t,i);let r=yi(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndexs!==v)&&e.children[v]&&e.numberOfChildren===1&&e.children[v].segments.length===0){let s=At(e.children[v],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=Dn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function yi(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n=i.length)return s;let o=e.segments[n],a=i[r];if(Tt(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!on(c,u,o))return s;r+=2}else{if(!on(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function ze(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=ze(new m([],{}),0,r))}),t}function sn(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function on(e,t,i){return e==i.path&&F(t,i.parameters)}var Mt="imperative",w=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(w||{}),x=class{constructor(t,i){this.id=t,this.url=i}},dt=class extends x{constructor(t,i,r="imperative",n=null){super(t,i),this.type=w.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends x{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=w.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(E||{}),ie=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ie||{}),B=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=w.NavigationSkipped}},Ot=class extends x{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=w.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},se=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_e=class extends x{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=w.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Be=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=w.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ve=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},He=class{constructor(t){this.route=t,this.type=w.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},We=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ge=class{constructor(t){this.snapshot=t,this.type=w.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qe=class{constructor(t){this.snapshot=t,this.type=w.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ke=class{constructor(t){this.snapshot=t,this.type=w.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oe=class{constructor(t,i,r){this.routerEvent=t,this.position=i,this.anchor=r,this.type=w.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Et=class{},ft=class{constructor(t,i){this.url=t,this.navigationBehaviorOptions=i}};function wi(e,t){return e.providers&&!e._injector&&(e._injector=Te(e.providers,t,`Route: ${e.path}`)),e._injector??t}function L(e){return e.outlet||v}function Si(e,t){let i=e.filter(r=>L(r)===t);return i.push(...e.filter(r=>L(r)!==t)),i}function kt(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let i=e.parent;i;i=i.parent){let r=i.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var Ze=class{get injector(){var t;return kt((t=this.route)==null?void 0:t.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new zt(this.rootInjector),this.attachRef=null}},zt=(()=>{let t=class t{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new Ze(this.rootInjector),this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)(q(yt))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ae=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Ye(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=Ye(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=Xe(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Xe(t,this._root).map(i=>i.value)}};function Ye(e,t){if(e===t.value)return t;for(let i of t.children){let r=Ye(e,i);if(r)return r}return null}function Xe(e,t){if(e===t.value)return[t];for(let i of t.children){let r=Xe(e,i);if(r.length)return r.unshift(t),r}return[]}var O=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function ot(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var ue=class extends ae{constructor(t,i){super(t),this.snapshot=i,ar(this,t)}toString(){return this.snapshot.toString()}};function Tn(e){let t=bi(e),i=new U([new X("",{})]),r=new U({}),n=new U({}),s=new U({}),o=new U(""),a=new K(i,r,s,o,n,v,e,t.root);return a.snapshot=t.root,new ue(new O(a,[]),t)}function bi(e){let t={},i={},r={},n="",s=new ut([],t,r,n,i,v,e,null,{});return new le("",new O(s,[]))}var K=class{constructor(t,i,r,n,s,o,a,c){var u;this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=((u=this.dataSubject)==null?void 0:u.pipe(y(l=>l[$t])))??f(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}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._paramMap=this.params.pipe(y(t=>lt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(y(t=>lt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ce(e,t,i="emptyOnly"){var s;let r,{routeConfig:n}=e;return t!==null&&(i==="always"||(n==null?void 0:n.path)===""||!t.component&&!((s=t.routeConfig)!=null&&s.loadComponent))?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n==null?void 0:n.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&En(n)&&(r.resolve[$t]=n.title),r}var ut=class{get title(){var t;return(t=this.data)==null?void 0:t[$t]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,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??(this._paramMap=lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=lt(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},le=class extends ae{constructor(t,i){super(i),this.url=t,ar(this,i)}toString(){return On(this._root)}};function ar(e,t){t.value._routerState=e,t.children.forEach(i=>ar(e,i))}function On(e){let t=e.children.length>0?` { ${e.children.map(On).join(", ")} } `:"";return`${e.value}${t}`}function Pe(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,F(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),F(t.params,i.params)||e.paramsSubject.next(i.params),Zn(t.url,i.url)||e.urlSubject.next(i.url),F(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Je(e,t){let i=F(e.params,t.params)&&ti(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Je(e.parent,t.parent))}function En(e){return typeof e.title=="string"||e.title===null}var Ii=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=v,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=g(zt),this.location=g($r),this.changeDetector=g(Kt),this.inputBinder=g(pe,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var n;return((n=this.parentContexts.getContext(r))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){var s;this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),(s=this.inputBinder)==null||s.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){var l;if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new tr(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gt]});let e=t;return e})(),tr=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===K?this.route:t===zt?this.childContexts:this.parent.get(t,i)}},pe=new T(""),an=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){var n;(n=this.outletDataSubscriptions.get(r))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:n}=r,s=Vt([n.queryParams,n.params,n.data]).pipe(j(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?f(c):Promise.resolve(c)))).subscribe(o=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(r);return}let a=Kr(n.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(r,s)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Ai(e,t,i){let r=Ut(e,t._root,i?i._root:void 0);return new ue(r,t)}function Ut(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=Mi(e,t,i);return new O(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Ut(e,a)),o}}let r=Di(t.value),n=t.children.map(s=>Ut(e,s));return new O(r,n)}}function Mi(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Ut(e,r,n);return Ut(e,r)})}function Di(e){return new K(new U(e.url),new U(e.params),new U(e.queryParams),new U(e.fragment),new U(e.data),e.outlet,e.component,e)}var xt=class{constructor(t,i){this.redirectTo=t,this.navigationBehaviorOptions=i}},Un="ngNavigationCancelingError";function he(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=tt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=xn(!1,E.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function xn(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[Un]=!0,i.cancellationCode=t,i}function Ti(e){return Pn(e)&&tt(e.url)}function Pn(e){return!!e&&e[Un]}var Oi=(e,t,i,r)=>y(n=>(new er(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),er=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),Pe(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Ke(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Ge(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(Pe(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),Pe(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=n,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,r)}},de=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ct=class{constructor(t,i){this.component=t,this.route=i}};function Ei(e,t,i){let r=e._root,n=t?t._root:null;return bt(r,n,i,[r.value])}function Ui(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function gt(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!Ar(e)?e:t.get(e):r}function bt(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=ot(t);return e.children.forEach(o=>{xi(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Dt(a,i.getContext(o),n)),n}function xi(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Pi(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new de(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?bt(e,t,a?a.children:null,r,n):bt(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new ct(a.outlet.component,o))}else o&&Dt(t,a,n),n.canActivateChecks.push(new de(r)),s.component?bt(e,null,a?a.children:null,r,n):bt(e,null,i,r,n);return n}function Pi(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!J(e.url,t.url);case"pathParamsOrQueryParamsChange":return!J(e.url,t.url)||!F(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Je(e,t)||!F(e.queryParams,t.queryParams);case"paramsChange":default:return!Je(e,t)}}function Dt(e,t,i){let r=ot(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?Dt(o,t.children.getContext(s),i):Dt(o,null,i):Dt(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new ct(t.outlet.component,n)):i.canDeactivateChecks.push(new ct(null,n)):i.canDeactivateChecks.push(new ct(null,n))}function Ft(e){return typeof e=="function"}function Ni(e){return typeof e=="boolean"}function ji(e){return e&&Ft(e.canLoad)}function $i(e){return e&&Ft(e.canActivate)}function Li(e){return e&&Ft(e.canActivateChild)}function ki(e){return e&&Ft(e.canDeactivate)}function zi(e){return e&&Ft(e.canMatch)}function Nn(e){return e instanceof mr||(e==null?void 0:e.name)==="EmptyError"}var Xt=Symbol("INITIAL_VALUE");function pt(){return j(e=>Vt(e.map(t=>t.pipe(nt(1),Sr(Xt)))).pipe(y(t=>{for(let i of t)if(i!==!0){if(i===Xt)return Xt;if(i===!1||Fi(i))return i}return!0}),Y(t=>t!==Xt),nt(1)))}function Fi(e){return tt(e)||e instanceof xt}function _i(e,t){return D(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?f(M(h({},i),{guardsResult:!0})):qi(o,r,n,e).pipe(D(a=>a&&Ni(a)?Bi(r,s,e,t):f(a)),y(a=>M(h({},i),{guardsResult:a})))})}function qi(e,t,i,r){return A(e).pipe(D(n=>Qi(n.component,n.route,i,t,r)),G(n=>n!==!0,!0))}function Bi(e,t,i,r){return A(t).pipe(rt(n=>Cr(Hi(n.route.parent,r),Vi(n.route,r),Gi(e,n.path,i),Wi(e,n.route,i))),G(n=>n!==!0,!0))}function Vi(e,t){return e!==null&&t&&t(new Qe(e)),f(!0)}function Hi(e,t){return e!==null&&t&&t(new We(e)),f(!0)}function Wi(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let n=r.map(s=>ye(()=>{let o=kt(t)??i,a=gt(s,o),c=$i(a)?a.canActivate(t,e):z(o,()=>a(t,e));return Z(c).pipe(G())}));return f(n).pipe(pt())}function Gi(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>Ui(o)).filter(o=>o!==null).map(o=>ye(()=>{let a=o.guards.map(c=>{let u=kt(o.node)??i,l=gt(c,u),p=Li(l)?l.canActivateChild(r,e):z(u,()=>l(r,e));return Z(p).pipe(G())});return f(a).pipe(pt())}));return f(s).pipe(pt())}function Qi(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(a=>{let c=kt(t)??n,u=gt(a,c),l=ki(u)?u.canDeactivate(e,t,i,r):z(c,()=>u(e,t,i,r));return Z(l).pipe(G())});return f(o).pipe(pt())}function Ki(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return f(!0);let s=n.map(o=>{let a=gt(o,e),c=ji(a)?a.canLoad(t,i):z(e,()=>a(t,i));return Z(c)});return f(s).pipe(pt(),jn(r))}function jn(e){return gr(b(t=>{if(typeof t!="boolean")throw he(e,t)}),y(t=>t===!0))}function Zi(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return f(!0);let s=n.map(o=>{let a=gt(o,e),c=zi(a)?a.canMatch(t,i):z(e,()=>a(t,i));return Z(c)});return f(s).pipe(pt(),jn(r))}var Pt=class{constructor(t){this.segmentGroup=t||null}},Nt=class extends Error{constructor(t){super(),this.urlTree=t}};function st(e){return mt(new Pt(e))}function Yi(e){return mt(new I(4e3,!1))}function Xi(e){return mt(xn(!1,E.GuardRejected))}var rr=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return f(r);if(n.numberOfChildren>1||!n.children[v])return Yi(`${t.redirectTo}`);n=n.children[v]}}applyRedirectCommands(t,i,r,n,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,params:C,data:R,title:P}=n,N=z(s,()=>a({params:C,data:R,queryParams:c,fragment:u,routeConfig:l,url:p,outlet:d,title:P}));if(N instanceof V)throw new Nt(N);i=N}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i[0]==="/")throw new Nt(o);return o}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path[0]===":"?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new I(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ji(e,t,i,r,n){let s=ur(e,t,i);return s.matched?(r=wi(t,r),Zi(r,t,i,n).pipe(y(o=>o===!0?s:h({},nr)))):f(s)}function ur(e,t,i){if(t.path==="**")return ts(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},nr):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Kn)(i,e,t);if(!n)return h({},nr);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function ts(e){return{matched:!0,parameters:e.length>0?gn(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function un(e,t,i,r){return i.length>0&&ns(e,i,r)?{segmentGroup:new m(t,rs(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&is(e,i,r)?{segmentGroup:new m(e.segments,es(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function es(e,t,i,r){let n={};for(let s of i)if(ge(e,t,s)&&!r[L(s)]){let o=new m([],{});n[L(s)]=o}return h(h({},r),n)}function rs(e,t){let i={};i[v]=t;for(let r of e)if(r.path===""&&L(r)!==v){let n=new m([],{});i[L(r)]=n}return i}function ns(e,t,i){return i.some(r=>ge(e,t,r)&&L(r)!==v)}function is(e,t,i){return i.some(r=>ge(e,t,r))}function ge(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function ss(e,t,i,r){return L(e)!==r&&(r===v||!ge(t,i,e))?!1:ur(t,e,i).matched}function os(e,t,i){return t.length===0&&!e.children[i]}var ir=class{};function as(e,t,i,r,n,s,o="emptyOnly"){return new sr(e,t,i,r,n,o,s).recognize()}var us=31,sr=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new rr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=un(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(y(({children:i,rootSnapshot:r})=>{let n=new O(r,i),s=new le("",n),o=pi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(t){let i=new ut([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),v,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,v,i).pipe(y(r=>({children:r,rootSnapshot:i})),et(r=>{if(r instanceof Nt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Pt?this.noMatchError(r):r}))}processSegmentGroup(t,i,r,n,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r,s):this.processSegment(t,i,r,r.segments,n,!0,s).pipe(y(o=>o instanceof O?[o]:[]))}processChildren(t,i,r,n){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return A(s).pipe(rt(o=>{let a=r.children[o],c=Si(i,o);return this.processSegmentGroup(t,c,a,o,n)}),wr((o,a)=>(o.push(...a),o)),Re(null),Rr(),D(o=>{if(o===null)return st(r);let a=$n(o);return cs(a),f(a)}))}processSegment(t,i,r,n,s,o,a){return A(i).pipe(rt(c=>this.processSegmentAgainstRoute(c._injector??t,i,c,r,n,s,o,a).pipe(et(u=>{if(u instanceof Pt)return f(null);throw u}))),G(c=>!!c),et(c=>{if(Nn(c))return os(r,n,s)?f(new ir):st(r);throw c}))}processSegmentAgainstRoute(t,i,r,n,s,o,a,c){return ss(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o,c):st(n):st(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:d}=ur(i,n,s);if(!c)return st(i);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>us&&(this.allowRedirects=!1));let C=new ut(s,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(n),L(n),n.component??n._loadedComponent??null,n,ln(n)),R=ce(C,a,this.paramsInheritanceStrategy);C.params=Object.freeze(R.params),C.data=Object.freeze(R.data);let P=this.applyRedirects.applyRedirectCommands(l,n.redirectTo,p,C,t);return this.applyRedirects.lineralizeSegments(n,P).pipe(D(N=>this.processSegment(t,r,i,N.concat(d),o,!1,a)))}matchSegmentAgainstRoute(t,i,r,n,s,o){let a=Ji(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),a.pipe(j(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(j(({routes:u})=>{let l=r._loadedInjector??t,{parameters:p,consumedSegments:d,remainingSegments:C}=c,R=new ut(d,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(r),L(r),r.component??r._loadedComponent??null,r,ln(r)),P=ce(R,o,this.paramsInheritanceStrategy);R.params=Object.freeze(P.params),R.data=Object.freeze(P.data);let{segmentGroup:N,slicedSegments:vt}=un(i,d,C,u);if(vt.length===0&&N.hasChildren())return this.processChildren(l,u,N,R).pipe(y(Bt=>new O(R,Bt)));if(u.length===0&&vt.length===0)return f(new O(R,[]));let ve=L(r)===s;return this.processSegment(l,u,N,vt,ve?v:s,!0,R).pipe(y(Bt=>new O(R,Bt instanceof O?[Bt]:[])))}))):st(i)))}getChildConfig(t,i,r){return i.children?f({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ki(t,i,r,this.urlSerializer).pipe(D(n=>n?this.configLoader.loadChildren(t,i).pipe(b(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Xi(i))):f({routes:[],injector:t})}};function cs(e){e.sort((t,i)=>t.value.outlet===v?-1:i.value.outlet===v?1:t.value.outlet.localeCompare(i.value.outlet))}function ls(e){let t=e.value.routeConfig;return t&&t.path===""}function $n(e){let t=[],i=new Set;for(let r of e){if(!ls(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=$n(r.children);t.push(new O(r.value,n))}return t.filter(r=>!i.has(r))}function cn(e){return e.data||{}}function ln(e){return e.resolve||{}}function hs(e,t,i,r,n,s){return D(o=>as(e,t,i,r,o.extractedUrl,n,s).pipe(y(({state:a,tree:c})=>M(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function ds(e,t){return D(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return f(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of Ln(c))o.add(u);let a=0;return A(o).pipe(rt(c=>s.has(c)?fs(c,r,e,t):(c.data=ce(c,c.parent,e).resolve,f(void 0))),b(()=>a++),we(1),D(c=>a===o.size?f(i):W))})}function Ln(e){let t=e.children.map(i=>Ln(i)).flat();return[e,...t]}function fs(e,t,i,r){let n=e.routeConfig,s=e._resolve;return(n==null?void 0:n.title)!==void 0&&!En(n)&&(s[$t]=n.title),ps(s,e,t,r).pipe(y(o=>(e._resolvedData=o,e.data=ce(e,e.parent,i).resolve,null)))}function ps(e,t,i,r){let n=$e(e);if(n.length===0)return f({});let s={};return A(n).pipe(D(o=>gs(e[o],t,i,r).pipe(G(),b(a=>{if(a instanceof xt)throw he(new ht,a);s[o]=a}))),we(1),yr(s),et(o=>Nn(o)?W:mt(o)))}function gs(e,t,i,r){let n=kt(t)??r,s=gt(e,n),o=s.resolve?s.resolve(t,i):z(n,()=>s(t,i));return Z(o)}function Ne(e){return j(t=>{let i=e(t);return i?A(i).pipe(y(()=>t)):f(t)})}var kn=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===v);return n}getResolvedTitleForRoute(r){return r.data[$t]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(vs),providedIn:"root"});let e=t;return e})(),vs=(()=>{let t=class t extends kn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(q(en))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_t=new T("",{providedIn:"root",factory:()=>({})}),ms=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Tr({type:t,selectors:[["ng-component"]],standalone:!0,features:[Hr],decls:1,vars:0,template:function(n,s){n&1&&Fr(0,"router-outlet")},dependencies:[Ii],encapsulation:2});let e=t;return e})();function cr(e){let t=e.children&&e.children.map(cr),i=t?M(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==v&&(i.component=ms),i}var jt=new T(""),lr=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Qt)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return f(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=Z(r.loadComponent()).pipe(y(zn),b(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),Ht(()=>{this.componentLoaders.delete(r)})),s=new Ce(n,()=>new H).pipe(me());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=Cs(n,this.compiler,r,this.onLoadEndListener).pipe(Ht(()=>{this.childrenLoaders.delete(n)})),a=new Ce(o,()=>new H).pipe(me());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Cs(e,t,i,r){return Z(e.loadChildren()).pipe(y(zn),D(n=>n instanceof kr||Array.isArray(n)?f(n):A(t.compileModuleAsync(n))),y(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(jt,[],{optional:!0,self:!0}).flat()),{routes:o.map(cr),injector:s}}))}function ys(e){return e&&typeof e=="object"&&"default"in e}function zn(e){return ys(e)?e.default:e}var hr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Rs),providedIn:"root"});let e=t;return e})(),Rs=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Fn=new T(""),_n=new T("");function ws(e,t,i){let r=e.get(_n),n=e.get(Zr);return e.get(Ae).runOutsideAngular(()=>{if(!n.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=n.startViewTransition(()=>(s(),Ss(e))),{onViewTransitionCreated:c}=r;return c&&z(e,()=>c({transition:a,from:t,to:i})),o})}function Ss(e){return new Promise(t=>{jr({read:()=>setTimeout(t)},{injector:e})})}var bs=new T(""),dr=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=g(lr),this.environmentInjector=g(yt),this.urlSerializer=g(Lt),this.rootContexts=g(zt),this.location=g(wt),this.inputBindingEnabled=g(pe,{optional:!0})!==null,this.titleStrategy=g(kn),this.options=g(_t,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(hr),this.createViewTransition=g(Fn,{optional:!0}),this.navigationErrorHandler=g(bs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let r=s=>this.events.next(new Ve(s)),n=s=>this.events.next(new He(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var s;let n=++this.navigationId;(s=this.transitions)==null||s.next(M(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new U({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Mt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),y(o=>M(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),j(o=>{let a=!1,c=!1;return f(o).pipe(j(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),W;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&p!=="reload"){let d="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.rawUrl),d,ie.IgnoredSameUrlNavigation)),u.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return f(u).pipe(j(d=>{var R,P;let C=(R=this.transitions)==null?void 0:R.getValue();return this.events.next(new dt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),C!==((P=this.transitions)==null?void 0:P.getValue())?W:Promise.resolve(d)}),hs(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),b(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let C=new se(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(C)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:C,source:R,restoredState:P,extras:N}=u,vt=new dt(d,this.urlSerializer.serialize(C),R,P);this.events.next(vt);let ve=Tn(this.rootComponentType).snapshot;return this.currentTransition=o=M(h({},u),{targetSnapshot:ve,urlAfterRedirects:C,extras:M(h({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=C,f(o)}else{let d="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.extractedUrl),d,ie.IgnoredByUrlHandlingStrategy)),u.resolve(!1),W}}),b(u=>{let l=new Fe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),y(u=>(this.currentTransition=o=M(h({},u),{guards:Ei(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),_i(this.environmentInjector,u=>this.events.next(u)),b(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw he(this.urlSerializer,u.guardsResult);let l=new _e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Y(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",E.GuardRejected),!1)),Ne(u=>{if(u.guards.canActivateChecks.length)return f(u).pipe(b(l=>{let p=new qe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),j(l=>{let p=!1;return f(l).pipe(ds(this.paramsInheritanceStrategy,this.environmentInjector),b({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",E.NoDataFromResolver)}}))}),b(l=>{let p=new Be(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Ne(u=>{let l=p=>{var C;let d=[];(C=p.routeConfig)!=null&&C.loadComponent&&!p.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(p.routeConfig).pipe(b(R=>{p.component=R}),y(()=>{})));for(let R of p.children)d.push(...l(R));return d};return Vt(l(u.targetSnapshot.root)).pipe(Re(null),nt(1))}),Ne(()=>this.afterPreactivation()),j(()=>{var d;let{currentSnapshot:u,targetSnapshot:l}=o,p=(d=this.createViewTransition)==null?void 0:d.call(this,this.environmentInjector,u.root,l.root);return p?A(p).pipe(y(()=>o)):f(o)}),y(u=>{let l=Ai(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=M(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),b(()=>{this.events.next(new Et)}),Oi(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),nt(1),b({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),br(this.transitionAbortSubject.pipe(b(u=>{throw u}))),Ht(()=>{var u;!a&&!c&&this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),((u=this.currentTransition)==null?void 0:u.id)===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(u=>{if(c=!0,Pn(u))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Ti(u)?this.events.next(new ft(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let p=z(this.environmentInjector,()=>{var d;return(d=this.navigationErrorHandler)==null?void 0:d.call(this,l)});if(p instanceof xt){let{message:d,cancellationCode:C}=he(this.urlSerializer,p);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),d,C)),this.events.next(new ft(p.redirectTo,p.navigationBehaviorOptions))}else{this.events.next(l);let d=r.errorHandler(u);o.resolve(!!d)}}catch(p){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(p)}}return W}))}))}cancelNavigationTransition(r,n,s){let o=new B(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){var r,n;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var s,o,a;let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=((s=this.currentNavigation)==null?void 0:s.targetBrowserUrl)??((o=this.currentNavigation)==null?void 0:o.extractedUrl);return r.toString()!==(n==null?void 0:n.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Is(e){return e!==Mt}var As=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Ms),providedIn:"root"});let e=t;return e})(),or=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},Ms=(()=>{let t=class t extends or{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=be(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:()=>g(Ds),providedIn:"root"});let e=t;return e})(),Ds=(()=>{let t=class t extends qn{constructor(){super(...arguments),this.location=g(wt),this.urlSerializer=g(Lt),this.options=g(_t,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(hr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Tn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((r=this.restoredState())==null?void 0:r.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof dt)this.stateMemento=this.createStateMemento();else if(r instanceof Q)this.rawUrlTree=n.initialUrl;else if(r instanceof se){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??s,n)}}else r instanceof Et?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):r instanceof B&&(r.code===E.GuardRejected||r.code===E.NoDataFromResolver)?this.restoreHistory(n):r instanceof Ot?this.restoreHistory(n,!0):r instanceof k&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=r instanceof V?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=be(t)))(s||t)}})(),t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),It=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(It||{});function Bn(e,t){e.events.pipe(Y(i=>i instanceof k||i instanceof B||i instanceof Ot||i instanceof Q),y(i=>i instanceof k||i instanceof Q?It.COMPLETE:(i instanceof B?i.code===E.Redirect||i.code===E.SupersededByNewNavigation:!1)?It.REDIRECTING:It.FAILED),Y(i=>i!==It.REDIRECTING),nt(1)).subscribe(()=>{t()})}function Ts(e){throw e}var Os={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},_=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r;this.disposed=!1,this.console=g(Wr),this.stateManager=g(qn),this.options=g(_t,{optional:!0})||{},this.pendingTasks=g(xr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(dr),this.urlSerializer=g(Lt),this.location=g(wt),this.urlHandlingStrategy=g(hr),this._events=new H,this.errorHandler=this.options.errorHandler||Ts,this.navigated=!1,this.routeReuseStrategy=g(As),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((r=g(jt,{optional:!0}))==null?void 0:r.flat())??[],this.componentInputBindingEnabled=!!g(pe,{optional:!0}),this.eventsSubscription=new pr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof B&&n.code!==E.Redirect&&n.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof k)this.navigated=!0;else if(n instanceof ft){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),u=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Is(s.source)},a);this.scheduleNavigation(c,Mt,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}xs(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Mt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)}))}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s!=null&&s.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(cr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let d;try{let C=s?s.snapshot:this.routerState.snapshot.root;d=In(C)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),d=this.currentUrlTree.root}return An(d,r,p,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=tt(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Mt,null,n)}navigate(r,n={skipLocationChange:!1}){return Us(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},Os):n===!1?s=h({},Es):s=n,tt(r))return rn(this.currentUrlTree,r,s);let o=this.parseUrl(r);return rn(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((d,C)=>{c=d,u=C});let p=this.pendingTasks.add();return Bn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Us(e){for(let t=0;t{let t=class t{constructor(r,n,s,o,a,c){var l;this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=(l=a.nativeElement.tagName)==null?void 0:l.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(p=>{p instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(tt(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){var r;(r=this.subscription)==null||r.unsubscribe()}updateHref(){var s;let r=this.urlTree;this.href=r!==null&&this.locationStrategy?(s=this.locationStrategy)==null?void 0:s.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:Pr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.routerLinkInput===null?null:tt(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})}};t.\u0275fac=function(n){return new(n||t)($(_),$(K),Ur("tabindex"),$(De),$(Me),$(Rt))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&_r("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&zr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Zt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Zt],replaceUrl:[2,"replaceUrl","replaceUrl",Zt],routerLink:"routerLink"},standalone:!0,features:[Lr,Gt]});let e=t;return e})(),mo=(()=>{let t=class t{get isActive(){return this._isActive}constructor(r,n,s,o,a){this.router=r,this.element=n,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new it,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Ct()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;(n=this.linkInputChangesSubscription)==null||n.unsubscribe();let r=[...this.links.toArray(),this.link].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=A(r).pipe(Ct()).subscribe(s=>{this._isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(r){let n=Array.isArray(r)?r:r.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(r){this.update()}ngOnDestroy(){var r;this.routerEventsSubscription.unsubscribe(),(r=this.linkInputChangesSubscription)==null||r.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(n=>{r?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let n=Ps(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?r.isActive(o,n):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};t.\u0275fac=function(n){return new(n||t)($(_),$(Me),$(De),$(Kt),$(hn,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,s,o){if(n&1&&qr(o,hn,5),n&2){let a;Br(a=Vr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Gt]});let e=t;return e})();function Ps(e){return!!e.paths}var fe=class{};var Ns=(()=>{let t=class t{constructor(r,n,s,o,a){this.router=r,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Y(r=>r instanceof k),rt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,n){let s=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Te(o.providers,r,`Route: ${o.path}`));let a=o._injector??r,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return A(s).pipe(Ct())}preloadConfig(r,n){return this.preloadingStrategy.preload(n,()=>{let s;n.loadChildren&&n.canLoad===void 0?s=this.loader.loadChildren(r,n):s=f(null);let o=s.pipe(D(a=>a===null?f(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return A([o,a]).pipe(Ct())}else return o})}};t.\u0275fac=function(n){return new(n||t)(q(_),q(Qt),q(yt),q(fe),q(lr))},t.\u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vn=new T(""),js=(()=>{let t=class t{constructor(r,n,s,o,a={}){this.urlSerializer=r,this.transitions=n,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||(a.scrollPositionRestoration="disabled"),a.anchorScrolling||(a.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(r=>{r instanceof dt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof k?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof Q&&r.code===ie.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof oe&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new oe(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){var r,n;(r=this.routerEventsSubscription)==null||r.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}};t.\u0275fac=function(n){Nr()},t.\u0275prov=S({token:t,factory:t.\u0275fac});let e=t;return e})();function Co(e,...t){return Er([{provide:jt,multi:!0,useValue:e},[],{provide:K,useFactory:Hn,deps:[_]},{provide:Ee,multi:!0,useFactory:Wn},t.map(i=>i.\u0275providers)])}function Hn(e){return e.routerState.root}function qt(e,t){return{\u0275kind:e,\u0275providers:t}}function Wn(){let e=g(Ie);return t=>{var s,o;let i=e.get(Qr);if(t!==i.components[0])return;let r=e.get(_),n=e.get(Gn);e.get(fr)===1&&r.initialNavigation(),(s=e.get(Qn,null,Se.Optional))==null||s.setUpPreloading(),(o=e.get(Vn,null,Se.Optional))==null||o.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Gn=new T("",{factory:()=>new H}),fr=new T("",{providedIn:"root",factory:()=>1});function $s(){return qt(2,[{provide:fr,useValue:0},{provide:Oe,multi:!0,deps:[Ie],useFactory:t=>{let i=t.get(Yr,Promise.resolve());return()=>i.then(()=>new Promise(r=>{let n=t.get(_),s=t.get(Gn);Bn(n,()=>{r(!0)}),t.get(dr).afterPreactivation=()=>(r(!0),s.closed?f(void 0):s),n.initialNavigation()}))}}])}function Ls(){return qt(3,[{provide:Oe,multi:!0,useFactory:()=>{let t=g(_);return()=>{t.setUpLocationChangeListener()}}},{provide:fr,useValue:2}])}var Qn=new T("");function ks(e){return qt(0,[{provide:Qn,useExisting:Ns},{provide:fe,useExisting:e}])}function zs(){return qt(8,[an,{provide:pe,useExisting:an}])}function Fs(e){let t=[{provide:Fn,useValue:ws},{provide:_n,useValue:h({skipNextTransition:!!(e!=null&&e.skipInitialTransition)},e)}];return qt(9,t)}var dn=new T("ROUTER_FORROOT_GUARD"),_s=[wt,{provide:Lt,useClass:ht},_,zt,{provide:K,useFactory:Hn,deps:[_]},lr,[]],yo=(()=>{let t=class t{constructor(r){}static forRoot(r,n){return{ngModule:t,providers:[_s,[],{provide:jt,multi:!0,useValue:r},{provide:dn,useFactory:Hs,deps:[[_,new Mr,new Dr]]},{provide:_t,useValue:n||{}},n!=null&&n.useHash?Bs():Vs(),qs(),n!=null&&n.preloadingStrategy?ks(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?Ws(n):[],n!=null&&n.bindToComponentInputs?zs().\u0275providers:[],n!=null&&n.enableViewTransitions?Fs().\u0275providers:[],Gs()]}}static forChild(r){return{ngModule:t,providers:[{provide:jt,multi:!0,useValue:r}]}}};t.\u0275fac=function(n){return new(n||t)(q(dn,8))},t.\u0275mod=Or({type:t}),t.\u0275inj=Ir({});let e=t;return e})();function qs(){return{provide:Vn,useFactory:()=>{let e=g(tn),t=g(Ae),i=g(_t),r=g(dr),n=g(Lt);return i.scrollOffset&&e.setOffset(i.scrollOffset),new js(n,r,e,t,i)}}}function Bs(){return{provide:Rt,useClass:Jr}}function Vs(){return{provide:Rt,useClass:Xr}}function Hs(e){return"guarded"}function Ws(e){return[e.initialNavigation==="disabled"?Ls().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$s().\u0275providers:[]]}var fn=new T("");function Gs(){return[{provide:fn,useFactory:Wn},{provide:Ee,multi:!0,useExisting:fn}]}export{Ke as a,K as b,Ii as c,_ as d,hn as e,mo as f,Co as g,yo as h}; diff --git a/chunk-5TOW4V3M.js b/chunk-VQMQ7RRG.js similarity index 85% rename from chunk-5TOW4V3M.js rename to chunk-VQMQ7RRG.js index 779732a79..97e85f006 100644 --- a/chunk-5TOW4V3M.js +++ b/chunk-VQMQ7RRG.js @@ -1,11 +1,11 @@ -import{a as vo,b as Ea,c as wn,d as Co,e as yo,f as ka,g as Pn,h as In,i as Fa,j as Dn,k as Sn,l as Aa,n as Va}from"./chunk-ZWLMTOCV.js";import{a as wa}from"./chunk-FURPKULB.js";import{a as _n,b as sa,c as vn,d as Fe,e as go,f as Ra,g as En,h as Na,i as za,j as bo,k as Mi}from"./chunk-FKFBZDNU.js";import{$ as ve,A as ha,C as Cn,D as yn,F as fa,G as xi,H as fo,J as ga,K as _a,L as bn,P as va,Q as Ti,R as Ze,S as _e,U as Ca,X as _o,Y as ya,Z as qt,_ as ba,aa as xa,ba as Ta,c as ra,ca as de,d as gn,da as xn,e as aa,ea as Tn,f as ut,fa as Ma,g as la,ga as Mn,ha as Oa,i as ca,m as ua,n as da,o as pa,x as Qe,y as ma}from"./chunk-HYP3ZPSI.js";import{a as Pa,b as _t,c as La}from"./chunk-M65T2WFK.js";import{$a as ze,$b as J,$d as uo,A as mr,Aa as U,Ab as ct,Ac as z,B as re,Bb as Q,Bc as Er,Be as un,C as $i,Ca as br,Cb as Z,Ce as dn,Da as fe,Db as V,Dc as kr,De as pn,Eb as T,Ed as bt,Ee as Kr,Fa as q,Fb as Qt,Fe as mn,Ga as Dt,Gb as F,Ge as hn,Hb as _i,Hd as zr,I as hr,Ia as St,Ib as Bt,Id as ln,Ie as qr,Ja as xr,Jb as kt,Jc as ft,Jd as X,Je as Jr,K as Ne,Kb as jt,Kd as Ge,L as zt,Lb as oo,Ld as ge,Le as ta,Ma as io,Mb as ro,Mc as Fr,Md as Hr,Nb as ao,Nc as tn,Nd as lo,Ne as ea,Ob as k,Oc as Ue,Oe as ia,Pa as Tr,Pb as P,Pc as Ar,Pd as ce,Pe as na,Q as fr,Qa as c,Qb as Tt,Qc as se,Ra as lt,Rb as Ki,Rc as Ft,Rd as Br,Re as oa,Sb as vi,Sc as en,Ta as Qi,Tb as wr,Tc as Vr,U as Wi,Ub as Pr,Uc as Ee,Ud as jr,Vb as S,Vc as Mt,Vd as Ur,Ve as fn,W as he,Wb as L,Wc as nn,X as Gi,Xa as Mr,Xb as so,Xd as $r,Xe as ue,Y as fi,Ya as Or,Yb as xe,Yc as Rr,Yd as Wr,Ye as W,Z as gr,Za as Zi,Zb as qi,Zc as $e,Zd as cn,_a as H,_b as Te,_d as co,_e as Ia,a as sr,ab as no,ad as We,ae as po,b as lr,bd as At,be as Ye,ca as Yi,cd as Me,ce as Gr,cf as Da,d as Hi,da as K,db as _,de as Yr,df as On,ea as at,eb as B,ed as on,ee as Ct,f as cr,fb as u,fd as tt,fe as G,ff as Sa,g as xt,ga as dt,gb as w,gd as yt,ge as mo,h as eo,hb as N,hc as Zt,hd as Ci,he as Ot,i as ur,ia as Yt,ib as Xi,ic as Ir,ie as Nt,j as dr,ja as h,jb as He,jc as Dr,jd as rn,je as Kt,k as Bi,ka as _r,kb as Be,kd as Ut,ke as yi,l as et,la as gi,lb as je,ld as le,m as pr,ma as vr,mb as p,md as gt,n as Rt,nb as m,nc as Se,nd as Xt,ne as Qr,oa as Cr,ob as x,od as ot,p as ji,pa as M,pb as pt,qa as st,qb as mt,qd as ke,qe as Zr,r as it,ra as D,rb as Et,rd as an,re as ho,s as mi,sa as Lt,sb as A,sd as Lr,tb as Ht,tc as Sr,td as Nr,vb as O,vc as nt,vd as sn,ve as Xr,wa as be,wb as g,wc as Y,we as $t,x as hi,xa as C,xb as ht,xc as Ji,xe as bi,y as Ui,ya as y,yb as j,yc as $,z as me,za as yr,zb as ae}from"./chunk-XSFATUKW.js";import{a as zi,b as to,c as ar,e as Le}from"./chunk-HFDGAYQF.js";var Ce=(()=>{let e=class e{transform(t,i,...o){return i(t,...o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMapper",type:e,pure:!0,standalone:!0});let n=e;return n})();var Ha=(()=>{let e=class e{transform(t){return sa(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiAutoColor",type:e,pure:!0,standalone:!0});let n=e;return n})();var oc=(n,e)=>{let r=new Date(n.year,n.month,1).getDay();return r>=e?r-e:cn-(e-r)},rc=({month:n,rowIndex:e,colIndex:r,firstDayOfWeek:t})=>{let i=e*cn+r-oc(n,t)+1;return i>n.daysCount&&(i-=n.daysCount,n=n.append({month:1})),i<=0&&(n=n.append({month:-1}),i=n.daysCount+i),new G(n.year,n.month,i)},ac=6,Ba=(()=>{let e=class e{constructor(){this.firstDayOfWeek=h(mn),this.currentMonth=null,this.currentSheet=[]}transform(t,i=!1){var a;if((a=this.currentMonth)!=null&&a.monthSame(t))return this.currentSheet;let o=[];for(let s=0;sE.yearE.year>R.year||E.month>R.month;if(!(v(f)&&!i)){if(b(f)&&!i)break;l.push(f)}}o.push(l)}return this.currentSheet=o.filter(s=>s.length),this.currentMonth=t,this.currentSheet}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiCalendarSheet",type:e,pure:!0,standalone:!0});let n=e;return n})();var ja=(()=>{let e=class e{constructor(){this.months$=h(hn)}transform({month:t}){return this.months$.pipe(it(i=>i[t]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMonth",type:e,pure:!0,standalone:!0});let n=e;return n})();function sc(n){let e=n.length-1;return[n[e],...n.slice(0,e)]}var Ua=(()=>{let e=class e{constructor(){this.firstDayOfWeekIndex=h(mn)}transform(t){return t.pipe(it(sc),it(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiOrderWeekDays",type:e,pure:!0,standalone:!0});let n=e;return n})();var cc={appearance:"link",pseudo:!1},$a=tt(cc);var uc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]._icon-start:before,[tuiLink][tuiIcons]._icon-end:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),kn=(()=>{let e=class e{constructor(){this.nothing=ke(uc),this.pseudo=h($a).pseudo}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostAttrs:["tuiLink",""],hostVars:2,hostBindings:function(i,o){i&2&&w("text-decoration-line",o.pseudo?"underline":null)},inputs:{pseudo:"pseudo"},standalone:!0,features:[k([ln($a)]),ze([Ge,fn])]});let n=e;return n})();var pc=["*"];function mc(n,e){if(n&1){let r=A();pt(0),p(1,"button",1),O("click",function(){C(r);let i=g();return y(i.onLeftClick())}),T(2),m(),p(3,"span",2),j(4),m(),p(5,"button",3),O("click",function(){C(r);let i=g();return y(i.onRightClick())}),T(6),m(),mt()}if(n&2){let r=e.ngIf,t=g();c(),N("t-hidden",t.leftComputedDisabled),u("iconStart",t.icons.decrement)("tabIndex",t.focusable?0:-1),c(),F(" ",r[0]," "),c(3),N("t-hidden",t.rightComputedDisabled),u("iconStart",t.icons.increment)("tabIndex",t.focusable?0:-1),c(),F(" ",r[1]," ")}}var Wa=(()=>{let e=class e{constructor(){this.icons=h(oa),this.spinTexts$=h(qr),this.focusable=!0,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new q,this.rightClick=new q}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}get leftComputedDisabled(){return this.disabled||this.leftDisabled}get rightComputedDisabled(){return this.disabled||this.rightDisabled}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-spin-button"]],hostBindings:function(i,o){i&1&&O("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return o.onLeftClick()})("keydown.arrowRight.prevent",function(){return o.onRightClick()})},inputs:{focusable:"focusable",disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},standalone:!0,features:[P],ngContentSelectors:pc,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"]],template:function(i,o){i&1&&(ht(),_(0,mc,7,10,"ng-container",0),S(1,"async")),i&2&&u("ngIf",L(1,1,o.spinTexts$))},dependencies:[ue,Y,$],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:700}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0});let n=e;return n})();var hc=(n,e,r,t,i)=>[n,e,r,t,i];function fc(n,e){if(n&1&&x(0,"div",3),n&2){let r=e.$implicit;u("textContent",r)}}function gc(n,e){if(n&1&&x(0,"div",12),n&2){let r=g().ngIf;w("background",(r==null?null:r[1])||"")}}function _c(n,e){if(n&1&&(p(0,"div",11),x(1,"div",12),_(2,gc,1,2,"div",13),m()),n&2){let r=e.ngIf;c(),w("background",r==null?null:r[0]),c(),u("ngIf",r.length>1)}}function vc(n,e){if(n&1){let r=A();p(0,"div",8),O("click",function(){C(r);let i=g().tuiLet,o=g(4);return y(o.onItemClick(i))})("tuiHoveredChange",function(i){C(r);let o=g().tuiLet,a=g(4);return y(a.onItemHovered(i&&o))}),p(1,"div",9),S(2,"tuiMapper"),T(3),_(4,_c,3,3,"div",10),S(5,"tuiMapper"),m()()}if(n&2){let r=g().tuiLet,t=g(4);N("t-cell_disabled",t.disabledItemHandler(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r))("t-cell_unavailable",t.itemIsUnavailable(r)),B("data-range",t.getItemRange(r)),c(),N("t-item_unavailable",t.itemIsUnavailable(r)),B("data-type",so(2,14,r,t.dayTypeHandler)),c(2),F(" ",r.day," "),c(),u("ngIf",Te(5,17,wr(23,hc,r,t.toMarkers,t.itemIsToday(r),!!t.getItemRange(r),t.markerHandler)))}}function Cc(n,e){if(n&1&&(pt(0),_(1,vc,6,29,"div",7),mt()),n&2){let r=e.tuiLet,t=g(4);c(),u("ngIf",!t.itemIsUnavailable(r)||t.showAdjacent)}}function yc(n,e){if(n&1&&(pt(0),_(1,Cc,2,1,"ng-container",2),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g().tuiLet;c(),u("tuiLet",i[t][r])}}function bc(n,e){if(n&1&&(p(0,"div",5),_(1,yc,2,1,"ng-container",6),m()),n&2){let r=e.$implicit,t=g().tuiLet;c(),u("tuiRepeatTimesOf",t[r].length)}}function xc(n,e){if(n&1&&(p(0,"div"),_(1,bc,2,1,"div",4),m()),n&2){let r=e.tuiLet;c(),u("tuiRepeatTimesOf",r.length)}}function Tc(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Mc(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){C(r);let i=g();return y(i.onYearClick())}),T(1),m()}if(n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Oc(n,e){if(n&1){let r=A();p(0,"div",4),O("click",function(){let i=C(r).tuiLet,o=g(3);return y(o.yearClick.emit(i))})("tuiHoveredChange",function(i){let o=C(r).tuiLet,a=g(3);return y(a.onItemHovered(i,o))}),p(1,"div",5),T(2),m()()}if(n&2){let r=e.tuiLet,t=g(3);N("t-cell_disabled",t.isDisabled(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r)),u("tuiScrollIntoView",t.scrollItemIntoView(r)),B("data-range",t.getItemRange(r)),c(2),Qt(r)}}function wc(n,e){if(n&1&&(pt(0),_(1,Oc,3,9,"div",3),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g();c(),u("tuiLet",i.getItem(t,r))}}function Pc(n,e){n&1&&(p(0,"div",1),_(1,wc,2,1,"ng-container",2),m()),n&2&&(c(),u("tuiRepeatTimesOf",4))}function Ic(n,e){if(n&1){let r=A();p(0,"tui-scrollbar",2)(1,"tui-calendar-year",3),O("yearClick",function(i){C(r);let o=g();return y(o.onPickerYearClick(i))}),m()()}if(n&2){let r=g();c(),u("initialItem",r.month.year)("max",r.computedMax.year)("min",r.computedMin.year)("value",r.value)}}function Dc(n,e){if(n&1){let r=A();p(0,"tui-calendar-spin",4),O("valueChange",function(i){C(r);let o=g();return y(o.onPaginationValueChange(i))})("yearClick",function(){C(r);let i=g();return y(i.onPaginationYearClick())}),m(),p(1,"tui-calendar-sheet",5),S(2,"tuiMapper"),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("hoveredItemChange",function(i){C(r);let o=g();return y(o.onHoveredItemChange(i))}),m()}if(n&2){let r=g();u("max",r.computedMaxViewedMonth)("min",r.computedMinViewedMonth)("value",r.month),c(),u("disabledItemHandler",qi(2,9,r.disabledItemHandler,r.disabledItemHandlerMapper,r.computedMin,r.computedMax))("hoveredItem",r.hoveredItem)("markerHandler",r.markerHandler)("month",r.month)("showAdjacent",r.showAdjacent)("value",r.value)}}var Sc=(()=>{let e=class e{constructor(){this.today=G.currentLocal(),this.unorderedWeekDays$=h(Jr),this.dayTypeHandler=h(Kr),this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new q,this.dayClick=new q,this.toMarkers=(t,i,o,a)=>{if(i||o)return null;let s=a==null?void 0:a(t);return s!=null&&s.length?s:null}}itemIsInterval(t){let{value:i,hoveredItem:o}=this;if(!(i instanceof Ot))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(t)&&i.to.dayAfter(t);if(o===null)return!1;let a=Ot.sort(i.from,o);return a.from.daySameOrBefore(t)&&a.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i?i instanceof G?i.daySame(t)?"single":null:i instanceof Ot?i.from.daySame(t)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayBefore(i.from)&&i.isSingleDay?"start":i.to.daySame(t)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayAfter(i.from)&&i.isSingleDay?"end":i.isSingleDay&&i.from.daySame(t)?"single":null:i.find(a=>a.daySame(t))?"single":null:null}get isSingleDayRange(){return this.value instanceof Ot&&this.value.isSingleDay}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-sheet"]],hostVars:2,hostBindings:function(i,o){i&2&&N("_single",o.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},standalone:!0,features:[P],decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"t-cell",3,"textContent"],["automation-id","tui-calendar-sheet__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__cell","class","t-cell",3,"t-cell_disabled","t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange",4,"ngIf"],["automation-id","tui-calendar-sheet__cell",1,"t-cell",3,"click","tuiHoveredChange"],["automation-id","tui-calendar-sheet__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"background",4,"ngIf"]],template:function(i,o){i&1&&(p(0,"div",0),_(1,fc,1,1,"div",1),S(2,"tuiOrderWeekDays"),S(3,"async"),m(),_(4,xc,2,1,"div",2),S(5,"tuiCalendarSheet")),i&2&&(c(),u("ngForOf",L(3,4,L(2,2,o.unorderedWeekDays$))),c(3),u("tuiLet",so(5,6,o.month,!0)))},dependencies:[z,nt,Y,$,Fe,Ce,go,fo,Ba,Ua],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background:var(--tui-text-primary)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.1875rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range=start]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}[data-type=weekday][_ngcontent-%COMP%]{color:var(--tui-text-primary)}[data-type=weekend][_ngcontent-%COMP%]{color:var(--tui-text-negative)}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0});let n=e;return n})(),Ec=(()=>{let e=class e{constructor(){this.value=Ct.currentLocal(),this.min=Nt,this.max=Kt,this.valueChange=new q,this.yearClick=new q}onYearClick(){this.yearClick.next(this.value)}append(t){let i=this.value.append(t);this.min.monthSameOrAfter(i)?this.updateValue(this.min):this.updateValue(this.max.monthSameOrBefore(i)?this.max:i)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-spin"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},standalone:!0,features:[P],decls:7,vars:10,consts:[["button",""],[3,"leftClick","rightClick","focusable","leftDisabled","rightDisabled"],[4,"ngIf","ngIfElse"],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tabIndex","-1","tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-spin-button",1),O("leftClick",function(){return C(a),y(o.append({month:-1}))})("rightClick",function(){return C(a),y(o.append({month:1}))}),T(1),S(2,"tuiMonth"),S(3,"async"),_(4,Tc,2,1,"ng-container",2)(5,Mc,2,1,"ng-template",null,0,J),m()}if(i&2){let a=V(6);u("focusable",!1)("leftDisabled",o.value.monthSameOrBefore(o.min))("rightDisabled",o.value.monthSameOrAfter(o.max)),c(),F(" ",L(3,8,L(2,6,o.value))," "),c(3),u("ngIf",o.min.year===o.max.year)("ngIfElse",a)}},dependencies:[Wa,kn,ja,Y,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let n=e;return n})(),Ga=100,Ya=4,kc=(()=>{let e=class e{constructor(){this.hoveredItem=null,this.currentYear=Ct.currentLocal().year,this.value=null,this.initialItem=this.currentYear,this.min=co,this.max=uo,this.disabledItemHandler=ce,this.yearClick=new q}isDisabled(t){return this.max&&this.maxt||this.disabledItemHandler(t)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i===null?null:i instanceof Yr?i.year===t?"single":null:rn(i)?i===t?"single":null:i instanceof mo?i.from.year===t&&!i.from.yearSame(i.to)||o!==null&&o>i.from.year&&i.from.year===t&&i.from.yearSame(i.to)||o!==null&&o===t&&oi.from.year&&i.from.yearSame(i.to)?"end":i.from.yearSame(i.to)&&i.from.year===t?"single":null:i.find(a=>a.year===t)?"single":null}itemIsInterval(t){let{value:i,hoveredItem:o}=this;return this.isRange(i)?i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Lr(t,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=t&&i.to.year>t:!1}onItemHovered(t,i){this.updateHoveredItem(t,i)}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Ya)}isRange(t){return t instanceof mo}scrollItemIntoView(t){return this.initialItem===t}getItem(t,i){return t*Ya+i+this.calculatedMin}itemIsToday(t){return this.currentYear===t}get calculatedMin(){let t=this.initialItem-Ga,i=this.min??co;return i>t?i:t}get calculatedMax(){let t=this.initialItem+Ga,i=this.max??uo;return i .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0});let n=e;return n})(),Ke=(()=>{let e=class e{constructor(){this.day=null,this.view="month",this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.min=Nt,this.max=Kt,this.minViewedMonth=Nt,this.maxViewedMonth=Kt,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=null,this.dayClick=new q,this.monthChange=new q,this.hoveredItemChange=new q,this.disabledItemHandlerMapper=(t,i,o)=>a=>a.dayBefore(i)||a.dayAfter(o)||t(a)}set value(t){this.day=t,this.showAdjacent&&t instanceof G&&(this.month=t)}set initialView(t){this.view=t}get value(){return this.day}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}get computedMin(){return this.min??Nt}get computedMax(){return this.max??Kt}get computedMinViewedMonth(){let t=this.computedMin,i=this.minViewedMonth??Nt;return i.monthSameOrAfter(t)?i:t}get computedMaxViewedMonth(){let t=this.computedMax,i=this.maxViewedMonth??Kt;return i.monthSameOrBefore(t)?i:t}get isInYearView(){return this.view==="year"}onPaginationYearClick(){this.view="year"}onPickerYearClick(t){this.view="month",this.updateViewedMonth(new Ct(t,this.month.month))}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value",initialView:"initialView"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},standalone:!0,features:[P],decls:3,vars:2,consts:[["calendar",""],["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"yearClick","initialItem","max","min","value"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"valueChange","yearClick","max","min","value"],["automation-id","tui-calendar__calendar",3,"dayClick","hoveredItemChange","disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value"]],template:function(i,o){if(i&1&&_(0,Ic,2,4,"tui-scrollbar",1)(1,Dc,3,14,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.isInYearView)("ngIfElse",a)}},dependencies:[Y,Cn,kc,Ec,Sc,Ce],styles:["[_nghost-%COMP%]{display:block;min-height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0});let n=e;return n})();function Oi(n,e=0){return Ac(n)?Number(n):e}function Ac(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Qa(n){return n instanceof St?n.nativeElement:n}var Vc={size:"m",collapsed:!1,rounded:!0,orientation:"horizontal"},Rc=tt(Vc);var Lc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`.tui-group{position:relative;display:flex;isolation:isolate;--t-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-radius);border-bottom-left-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-radius);border-top-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit} +import{a as vo,b as Ea,c as wn,d as Co,e as yo,f as ka,g as Pn,h as In,i as Fa,j as Dn,k as Sn,l as Aa,n as Va}from"./chunk-AIAQHW2T.js";import{a as wa}from"./chunk-YR2WX2SW.js";import{a as _n,b as sa,c as vn,d as Fe,e as go,f as Ra,g as En,h as Na,i as za,j as bo,k as Mi}from"./chunk-JDRSJW3I.js";import{$ as ve,A as ha,C as Cn,D as yn,F as fa,G as xi,H as fo,J as ga,K as _a,L as bn,P as va,Q as Ti,R as Ze,S as _e,U as Ca,X as _o,Y as ya,Z as qt,_ as ba,aa as xa,ba as Ta,c as ra,ca as de,d as gn,da as xn,e as aa,ea as Tn,f as ut,fa as Ma,g as la,ga as Mn,ha as Oa,i as ca,m as ua,n as da,o as pa,x as Qe,y as ma}from"./chunk-GGY6MJXK.js";import{a as Pa,b as _t,c as La}from"./chunk-GXKQ5RYX.js";import{$a as ze,$b as J,$d as uo,A as mr,Aa as U,Ab as ct,Ac as z,B as re,Bb as Q,Bc as Er,Be as un,C as $i,Ca as br,Cb as Z,Ce as dn,Da as fe,Db as V,Dc as kr,De as pn,Eb as x,Ed as bt,Ee as Kr,Fa as q,Fb as Qt,Fe as mn,Ga as Dt,Gb as F,Ge as hn,Hb as _i,Hd as zr,I as hr,Ia as St,Ib as Bt,Id as ln,Ie as qr,Ja as xr,Jb as kt,Jc as ft,Jd as X,Je as Jr,K as Ne,Kb as jt,Kd as Ge,L as zt,Lb as oo,Ld as ge,Le as ta,Ma as io,Mb as ro,Mc as Fr,Md as Hr,Nb as ao,Nc as tn,Nd as lo,Ne as ea,Ob as k,Oc as Ue,Oe as ia,Pa as Tr,Pb as P,Pc as Ar,Pd as ce,Pe as na,Q as fr,Qa as c,Qb as Tt,Qc as se,Ra as lt,Rb as Ki,Rc as Ft,Rd as Br,Re as oa,Sb as vi,Sc as en,Ta as Qi,Tb as wr,Tc as Vr,U as Wi,Ub as Pr,Uc as Ee,Ud as jr,Vb as S,Vc as Mt,Vd as Ur,Ve as fn,W as he,Wb as L,Wc as nn,X as Gi,Xa as Mr,Xb as so,Xd as $r,Xe as ue,Y as fi,Ya as Or,Yb as xe,Yc as Rr,Yd as Wr,Ye as W,Z as gr,Za as Zi,Zb as qi,Zc as $e,Zd as cn,_a as H,_b as Te,_d as co,_e as Ia,a as sr,ab as no,ad as We,ae as po,b as lr,bd as At,be as Ye,ca as Yi,cd as Me,ce as Gr,cf as Da,d as Hi,da as K,db as _,de as Yr,df as On,ea as at,eb as B,ed as on,ee as Ct,f as cr,fb as u,fd as tt,fe as G,ff as Sa,g as xt,ga as dt,gb as w,gd as yt,ge as mo,h as eo,hb as N,hc as Zt,hd as Ci,he as Ot,i as ur,ia as Yt,ib as Xi,ic as Ir,ie as Nt,j as dr,ja as h,jb as He,jc as Dr,jd as rn,je as Kt,k as Bi,ka as _r,kb as Be,kd as Ut,ke as yi,l as et,la as gi,lb as je,ld as le,m as pr,ma as vr,mb as p,md as gt,n as Rt,nb as m,nc as Se,nd as Xt,ne as Qr,oa as Cr,ob as M,od as ot,p as ji,pa as T,pb as pt,qa as st,qb as mt,qd as ke,qe as Zr,r as it,ra as D,rb as Et,rd as an,re as ho,s as mi,sa as Lt,sb as A,sd as Lr,tb as Ht,tc as Sr,td as Nr,vb as O,vc as nt,vd as sn,ve as Xr,wa as be,wb as g,wc as Y,we as $t,x as hi,xa as C,xb as ht,xc as Ji,xe as bi,y as Ui,ya as y,yb as j,yc as $,z as me,za as yr,zb as ae}from"./chunk-SY4TDKKS.js";import{a as zi,b as to,c as ar,e as Le}from"./chunk-HFDGAYQF.js";var Ce=(()=>{let e=class e{transform(t,i,...o){return i(t,...o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMapper",type:e,pure:!0,standalone:!0});let n=e;return n})();var Ha=(()=>{let e=class e{transform(t){return sa(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiAutoColor",type:e,pure:!0,standalone:!0});let n=e;return n})();var oc=(n,e)=>{let r=new Date(n.year,n.month,1).getDay();return r>=e?r-e:cn-(e-r)},rc=({month:n,rowIndex:e,colIndex:r,firstDayOfWeek:t})=>{let i=e*cn+r-oc(n,t)+1;return i>n.daysCount&&(i-=n.daysCount,n=n.append({month:1})),i<=0&&(n=n.append({month:-1}),i=n.daysCount+i),new G(n.year,n.month,i)},ac=6,Ba=(()=>{let e=class e{constructor(){this.firstDayOfWeek=h(mn),this.currentMonth=null,this.currentSheet=[]}transform(t,i=!1){var a;if((a=this.currentMonth)!=null&&a.monthSame(t))return this.currentSheet;let o=[];for(let s=0;sE.yearE.year>R.year||E.month>R.month;if(!(v(f)&&!i)){if(b(f)&&!i)break;l.push(f)}}o.push(l)}return this.currentSheet=o.filter(s=>s.length),this.currentMonth=t,this.currentSheet}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiCalendarSheet",type:e,pure:!0,standalone:!0});let n=e;return n})();var ja=(()=>{let e=class e{constructor(){this.months$=h(hn)}transform({month:t}){return this.months$.pipe(it(i=>i[t]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMonth",type:e,pure:!0,standalone:!0});let n=e;return n})();function sc(n){let e=n.length-1;return[n[e],...n.slice(0,e)]}var Ua=(()=>{let e=class e{constructor(){this.firstDayOfWeekIndex=h(mn)}transform(t){return t.pipe(it(sc),it(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiOrderWeekDays",type:e,pure:!0,standalone:!0});let n=e;return n})();var cc={appearance:"link",pseudo:!1},$a=tt(cc);var uc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]._icon-start:before,[tuiLink][tuiIcons]._icon-end:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} +`],encapsulation:2,changeDetection:0});let n=e;return n})(),kn=(()=>{let e=class e{constructor(){this.nothing=ke(uc),this.pseudo=h($a).pseudo}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostAttrs:["tuiLink",""],hostVars:2,hostBindings:function(i,o){i&2&&w("text-decoration-line",o.pseudo?"underline":null)},inputs:{pseudo:"pseudo"},standalone:!0,features:[k([ln($a)]),ze([Ge,fn])]});let n=e;return n})();var pc=["*"];function mc(n,e){if(n&1){let r=A();pt(0),p(1,"button",1),O("click",function(){C(r);let i=g();return y(i.onLeftClick())}),x(2),m(),p(3,"span",2),j(4),m(),p(5,"button",3),O("click",function(){C(r);let i=g();return y(i.onRightClick())}),x(6),m(),mt()}if(n&2){let r=e.ngIf,t=g();c(),N("t-hidden",t.leftComputedDisabled),u("iconStart",t.icons.decrement)("tabIndex",t.focusable?0:-1),c(),F(" ",r[0]," "),c(3),N("t-hidden",t.rightComputedDisabled),u("iconStart",t.icons.increment)("tabIndex",t.focusable?0:-1),c(),F(" ",r[1]," ")}}var Wa=(()=>{let e=class e{constructor(){this.icons=h(oa),this.spinTexts$=h(qr),this.focusable=!0,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new q,this.rightClick=new q}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}get leftComputedDisabled(){return this.disabled||this.leftDisabled}get rightComputedDisabled(){return this.disabled||this.rightDisabled}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-spin-button"]],hostBindings:function(i,o){i&1&&O("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return o.onLeftClick()})("keydown.arrowRight.prevent",function(){return o.onRightClick()})},inputs:{focusable:"focusable",disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},standalone:!0,features:[P],ngContentSelectors:pc,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"]],template:function(i,o){i&1&&(ht(),_(0,mc,7,10,"ng-container",0),S(1,"async")),i&2&&u("ngIf",L(1,1,o.spinTexts$))},dependencies:[ue,Y,$],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:700}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0});let n=e;return n})();var hc=(n,e,r,t,i)=>[n,e,r,t,i];function fc(n,e){if(n&1&&M(0,"div",3),n&2){let r=e.$implicit;u("textContent",r)}}function gc(n,e){if(n&1&&M(0,"div",12),n&2){let r=g().ngIf;w("background",(r==null?null:r[1])||"")}}function _c(n,e){if(n&1&&(p(0,"div",11),M(1,"div",12),_(2,gc,1,2,"div",13),m()),n&2){let r=e.ngIf;c(),w("background",r==null?null:r[0]),c(),u("ngIf",r.length>1)}}function vc(n,e){if(n&1){let r=A();p(0,"div",8),O("click",function(){C(r);let i=g().tuiLet,o=g(4);return y(o.onItemClick(i))})("tuiHoveredChange",function(i){C(r);let o=g().tuiLet,a=g(4);return y(a.onItemHovered(i&&o))}),p(1,"div",9),S(2,"tuiMapper"),x(3),_(4,_c,3,3,"div",10),S(5,"tuiMapper"),m()()}if(n&2){let r=g().tuiLet,t=g(4);N("t-cell_disabled",t.disabledItemHandler(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r))("t-cell_unavailable",t.itemIsUnavailable(r)),B("data-range",t.getItemRange(r)),c(),N("t-item_unavailable",t.itemIsUnavailable(r)),B("data-type",so(2,14,r,t.dayTypeHandler)),c(2),F(" ",r.day," "),c(),u("ngIf",Te(5,17,wr(23,hc,r,t.toMarkers,t.itemIsToday(r),!!t.getItemRange(r),t.markerHandler)))}}function Cc(n,e){if(n&1&&(pt(0),_(1,vc,6,29,"div",7),mt()),n&2){let r=e.tuiLet,t=g(4);c(),u("ngIf",!t.itemIsUnavailable(r)||t.showAdjacent)}}function yc(n,e){if(n&1&&(pt(0),_(1,Cc,2,1,"ng-container",2),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g().tuiLet;c(),u("tuiLet",i[t][r])}}function bc(n,e){if(n&1&&(p(0,"div",5),_(1,yc,2,1,"ng-container",6),m()),n&2){let r=e.$implicit,t=g().tuiLet;c(),u("tuiRepeatTimesOf",t[r].length)}}function xc(n,e){if(n&1&&(p(0,"div"),_(1,bc,2,1,"div",4),m()),n&2){let r=e.tuiLet;c(),u("tuiRepeatTimesOf",r.length)}}function Tc(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Mc(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){C(r);let i=g();return y(i.onYearClick())}),x(1),m()}if(n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Oc(n,e){if(n&1){let r=A();p(0,"div",4),O("click",function(){let i=C(r).tuiLet,o=g(3);return y(o.yearClick.emit(i))})("tuiHoveredChange",function(i){let o=C(r).tuiLet,a=g(3);return y(a.onItemHovered(i,o))}),p(1,"div",5),x(2),m()()}if(n&2){let r=e.tuiLet,t=g(3);N("t-cell_disabled",t.isDisabled(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r)),u("tuiScrollIntoView",t.scrollItemIntoView(r)),B("data-range",t.getItemRange(r)),c(2),Qt(r)}}function wc(n,e){if(n&1&&(pt(0),_(1,Oc,3,9,"div",3),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g();c(),u("tuiLet",i.getItem(t,r))}}function Pc(n,e){n&1&&(p(0,"div",1),_(1,wc,2,1,"ng-container",2),m()),n&2&&(c(),u("tuiRepeatTimesOf",4))}function Ic(n,e){if(n&1){let r=A();p(0,"tui-scrollbar",2)(1,"tui-calendar-year",3),O("yearClick",function(i){C(r);let o=g();return y(o.onPickerYearClick(i))}),m()()}if(n&2){let r=g();c(),u("initialItem",r.month.year)("max",r.computedMax.year)("min",r.computedMin.year)("value",r.value)}}function Dc(n,e){if(n&1){let r=A();p(0,"tui-calendar-spin",4),O("valueChange",function(i){C(r);let o=g();return y(o.onPaginationValueChange(i))})("yearClick",function(){C(r);let i=g();return y(i.onPaginationYearClick())}),m(),p(1,"tui-calendar-sheet",5),S(2,"tuiMapper"),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("hoveredItemChange",function(i){C(r);let o=g();return y(o.onHoveredItemChange(i))}),m()}if(n&2){let r=g();u("max",r.computedMaxViewedMonth)("min",r.computedMinViewedMonth)("value",r.month),c(),u("disabledItemHandler",qi(2,9,r.disabledItemHandler,r.disabledItemHandlerMapper,r.computedMin,r.computedMax))("hoveredItem",r.hoveredItem)("markerHandler",r.markerHandler)("month",r.month)("showAdjacent",r.showAdjacent)("value",r.value)}}var Sc=(()=>{let e=class e{constructor(){this.today=G.currentLocal(),this.unorderedWeekDays$=h(Jr),this.dayTypeHandler=h(Kr),this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new q,this.dayClick=new q,this.toMarkers=(t,i,o,a)=>{if(i||o)return null;let s=a==null?void 0:a(t);return s!=null&&s.length?s:null}}itemIsInterval(t){let{value:i,hoveredItem:o}=this;if(!(i instanceof Ot))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(t)&&i.to.dayAfter(t);if(o===null)return!1;let a=Ot.sort(i.from,o);return a.from.daySameOrBefore(t)&&a.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i?i instanceof G?i.daySame(t)?"single":null:i instanceof Ot?i.from.daySame(t)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayBefore(i.from)&&i.isSingleDay?"start":i.to.daySame(t)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayAfter(i.from)&&i.isSingleDay?"end":i.isSingleDay&&i.from.daySame(t)?"single":null:i.find(a=>a.daySame(t))?"single":null:null}get isSingleDayRange(){return this.value instanceof Ot&&this.value.isSingleDay}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-calendar-sheet"]],hostVars:2,hostBindings:function(i,o){i&2&&N("_single",o.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},standalone:!0,features:[P],decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"t-cell",3,"textContent"],["automation-id","tui-calendar-sheet__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__cell","class","t-cell",3,"t-cell_disabled","t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange",4,"ngIf"],["automation-id","tui-calendar-sheet__cell",1,"t-cell",3,"click","tuiHoveredChange"],["automation-id","tui-calendar-sheet__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"background",4,"ngIf"]],template:function(i,o){i&1&&(p(0,"div",0),_(1,fc,1,1,"div",1),S(2,"tuiOrderWeekDays"),S(3,"async"),m(),_(4,xc,2,1,"div",2),S(5,"tuiCalendarSheet")),i&2&&(c(),u("ngForOf",L(3,4,L(2,2,o.unorderedWeekDays$))),c(3),u("tuiLet",so(5,6,o.month,!0)))},dependencies:[z,nt,Y,$,Fe,Ce,go,fo,Ba,Ua],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background:var(--tui-text-primary)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.1875rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range=start]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}[data-type=weekday][_ngcontent-%COMP%]{color:var(--tui-text-primary)}[data-type=weekend][_ngcontent-%COMP%]{color:var(--tui-text-negative)}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0});let n=e;return n})(),Ec=(()=>{let e=class e{constructor(){this.value=Ct.currentLocal(),this.min=Nt,this.max=Kt,this.valueChange=new q,this.yearClick=new q}onYearClick(){this.yearClick.next(this.value)}append(t){let i=this.value.append(t);this.min.monthSameOrAfter(i)?this.updateValue(this.min):this.updateValue(this.max.monthSameOrBefore(i)?this.max:i)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-calendar-spin"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},standalone:!0,features:[P],decls:7,vars:10,consts:[["button",""],[3,"leftClick","rightClick","focusable","leftDisabled","rightDisabled"],[4,"ngIf","ngIfElse"],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tabIndex","-1","tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-spin-button",1),O("leftClick",function(){return C(a),y(o.append({month:-1}))})("rightClick",function(){return C(a),y(o.append({month:1}))}),x(1),S(2,"tuiMonth"),S(3,"async"),_(4,Tc,2,1,"ng-container",2)(5,Mc,2,1,"ng-template",null,0,J),m()}if(i&2){let a=V(6);u("focusable",!1)("leftDisabled",o.value.monthSameOrBefore(o.min))("rightDisabled",o.value.monthSameOrAfter(o.max)),c(),F(" ",L(3,8,L(2,6,o.value))," "),c(3),u("ngIf",o.min.year===o.max.year)("ngIfElse",a)}},dependencies:[Wa,kn,ja,Y,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let n=e;return n})(),Ga=100,Ya=4,kc=(()=>{let e=class e{constructor(){this.hoveredItem=null,this.currentYear=Ct.currentLocal().year,this.value=null,this.initialItem=this.currentYear,this.min=co,this.max=uo,this.disabledItemHandler=ce,this.yearClick=new q}isDisabled(t){return this.max&&this.maxt||this.disabledItemHandler(t)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i===null?null:i instanceof Yr?i.year===t?"single":null:rn(i)?i===t?"single":null:i instanceof mo?i.from.year===t&&!i.from.yearSame(i.to)||o!==null&&o>i.from.year&&i.from.year===t&&i.from.yearSame(i.to)||o!==null&&o===t&&oi.from.year&&i.from.yearSame(i.to)?"end":i.from.yearSame(i.to)&&i.from.year===t?"single":null:i.find(a=>a.year===t)?"single":null}itemIsInterval(t){let{value:i,hoveredItem:o}=this;return this.isRange(i)?i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Lr(t,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=t&&i.to.year>t:!1}onItemHovered(t,i){this.updateHoveredItem(t,i)}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Ya)}isRange(t){return t instanceof mo}scrollItemIntoView(t){return this.initialItem===t}getItem(t,i){return t*Ya+i+this.calculatedMin}itemIsToday(t){return this.currentYear===t}get calculatedMin(){let t=this.initialItem-Ga,i=this.min??co;return i>t?i:t}get calculatedMax(){let t=this.initialItem+Ga,i=this.max??uo;return i .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0});let n=e;return n})(),Ke=(()=>{let e=class e{constructor(){this.day=null,this.view="month",this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.min=Nt,this.max=Kt,this.minViewedMonth=Nt,this.maxViewedMonth=Kt,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=null,this.dayClick=new q,this.monthChange=new q,this.hoveredItemChange=new q,this.disabledItemHandlerMapper=(t,i,o)=>a=>a.dayBefore(i)||a.dayAfter(o)||t(a)}set value(t){this.day=t,this.showAdjacent&&t instanceof G&&(this.month=t)}set initialView(t){this.view=t}get value(){return this.day}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}get computedMin(){return this.min??Nt}get computedMax(){return this.max??Kt}get computedMinViewedMonth(){let t=this.computedMin,i=this.minViewedMonth??Nt;return i.monthSameOrAfter(t)?i:t}get computedMaxViewedMonth(){let t=this.computedMax,i=this.maxViewedMonth??Kt;return i.monthSameOrBefore(t)?i:t}get isInYearView(){return this.view==="year"}onPaginationYearClick(){this.view="year"}onPickerYearClick(t){this.view="month",this.updateViewedMonth(new Ct(t,this.month.month))}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value",initialView:"initialView"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},standalone:!0,features:[P],decls:3,vars:2,consts:[["calendar",""],["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"yearClick","initialItem","max","min","value"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"valueChange","yearClick","max","min","value"],["automation-id","tui-calendar__calendar",3,"dayClick","hoveredItemChange","disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value"]],template:function(i,o){if(i&1&&_(0,Ic,2,4,"tui-scrollbar",1)(1,Dc,3,14,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.isInYearView)("ngIfElse",a)}},dependencies:[Y,Cn,kc,Ec,Sc,Ce],styles:["[_nghost-%COMP%]{display:block;min-height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0});let n=e;return n})();function Oi(n,e=0){return Ac(n)?Number(n):e}function Ac(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Qa(n){return n instanceof St?n.nativeElement:n}var Vc={size:"m",collapsed:!1,rounded:!0,orientation:"horizontal"},Rc=tt(Vc);var Lc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`.tui-group{position:relative;display:flex;isolation:isolate;--t-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-radius);border-bottom-left-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-radius);border-top-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit} `],encapsulation:2,changeDetection:0});let n=e;return n})(),Fn=(()=>{let e=class e{constructor(){this.options=h(Rc),this.nothing=ke(Lc),this.orientation=this.options.orientation,this.collapsed=this.options.collapsed,this.rounded=this.options.rounded,this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:10,hostBindings:function(i,o){i&2&&N("tui-group_orientation_horizontal",o.orientation==="horizontal")("tui-group_orientation_vertical",o.orientation==="vertical")("tui-group_radius_large",o.size==="l")("tui-group_collapsed",o.collapsed)("tui-group_rounded",o.rounded)},inputs:{orientation:"orientation",collapsed:"collapsed",rounded:"rounded",size:"size"},standalone:!0});let n=e;return n})();var An=(()=>{let e=class e{constructor(){this.destroyRef=h(fe),this.zone=h(Dt),this.host=bt(),this.tuiNativeValidator="Invalid"}validate(t){return this.control=t,Ui(0).pipe(bi(this.zone),Xr(this.destroyRef)).subscribe(()=>this.handleValidation()),null}handleValidation(){var t,i,o,a;(a=(o=this.el).setCustomValidity)==null||a.call(o,(t=this.control)!=null&&t.touched&&((i=this.control)!=null&&i.invalid)?this.tuiNativeValidator:"")}get el(){return this.host.querySelector("input,textarea,select")||this.host}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiNativeValidator",""]],hostBindings:function(i,o){i&1&&O("blur",function(){return o.handleValidation()})},inputs:{tuiNativeValidator:"tuiNativeValidator"},standalone:!0,features:[k([gt(Ar,e,!0)])]});let n=e;return n})();var xo={appearance:"textfield",size:"l",cleaner:!0},Xa=tt({appearance:Zi(xo.appearance),size:Zi(xo.size),cleaner:Zi(xo.cleaner)});function Ka(n){let{anchorOffset:e=0,focusOffset:r=0}=n.ownerDocument.getSelection()||{},t=Math.min(e,r),i=Math.max(e,r);return[t,i]}function Nc(n,[e,r]){var t,i;let o=n.ownerDocument,a=o.createRange();a.setStart(n.firstChild||n,Math.min(e,((t=n.textContent)===null||t===void 0?void 0:t.length)||0)),a.setEnd(n.lastChild||n,Math.min(r,((i=n.textContent)===null||i===void 0?void 0:i.length)||0));let s=o.getSelection();s&&(s.removeAllRanges(),s.addRange(a))}var To=class{constructor(e){this.element=e,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,` `)}set value(e){this.element.innerHTML=e.replace(/\n$/,` `)}get selectionStart(){return Ka(this.element)[0]}get selectionEnd(){return Ka(this.element)[1]}setSelectionRange(e,r){Nc(this.element,[e||0,r||0])}select(){this.setSelectionRange(0,this.value.length)}};function zc(n){let e=new To(n);return new Proxy(n,{get(r,t){if(t in e)return e[t];let i=r[t];return typeof i=="function"?i.bind(r):i},set(r,t,i,o){return Reflect.set(t in e?e:r,t,i,o)}})}var es=n=>n.isContentEditable?zc(n):n.querySelector("input,textarea")||n,te={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},Mo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,"historyUndo"))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,"historyRedo"))}updateHistory(e){if(!this.now){this.now=e;return}let r=this.now.value!==e.value,t=this.now.selection.some((i,o)=>i!==e.selection[o]);!r&&!t||(r&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,r){this.now=e,this.updateElementState(e,{inputType:r,data:null})}};function Hc(n,...e){return e.every(({value:r})=>r===n.value)}function Bc(n,...e){return e.every(({value:r,selection:t})=>r===n.value&&t[0]===n.selection[0]&&t[1]===n.selection[1])}function jc({value:n,selection:e},r,t){let[i,o]=e,a=typeof t=="function"?t({value:n,selection:e}):t;return{value:n,selection:a==="replace"?[i,i+r.length]:[i,o]}}function Nn(n){return typeof n=="string"}function qa(n,e,r,t){let i="";for(let o=e.length;o{let i=e[t];return Nn(i)?r===i:r.match(i)}):e.test(n)}function Uc(n,e,r){let t=null,i=null,o=Array.from(n.value).reduce((s,l,d)=>{let f=qa(e,s,l,r),v=s+f,b=e[v.length];return Nn(b)?v+b:l.match(b)?(t===null&&d>=n.selection[0]&&(t=v.length),i===null&&d>=n.selection[1]&&(i=v.length),v+l):v},""),a=qa(e,o,"",r);return{value:is(o+a,e)?o+a:o,selection:[t??o.length,i??o.length]}}function $c({value:n,selection:e},r){let[t,i]=e,o=t,a=i;return{value:Array.from(n).reduce((l,d,f)=>{let v=l+d;return t===f&&(o=l.length),i===f&&(a=l.length),v.match(r)?v:l},""),selection:[o,a]}}function Vn(n,e,r=null){if(is(n.value,e))return n;let{value:t,selection:i}=Array.isArray(e)?Uc(n,e,r):$c(n,e);return{selection:i,value:Array.isArray(e)?t.slice(0,e.length):t}}function Ja(n,e){if(!Array.isArray(e))return n;let[r,t]=n.selection,i=[],o=Array.from(n.value).reduce((a,s,l)=>{let d=e[l];return l===r&&i.push(a.length),l===t&&i.push(a.length),Nn(d)&&d===s?a:a+s},"");return i.length<2&&i.push(...new Array(2-i.length).fill(o.length)),{value:o,selection:[i[0],i[1]]}}var Ii=class{constructor(e,r){this.initialElementState=e,this.maskOptions=r,this.value="",this.selection=[0,0];let{value:t,selection:i}=Vn(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=t,this.selection=i}addCharacters([e,r],t){let{value:i}=this,o=this.getMaskExpression({value:i.slice(0,e)+t+i.slice(r),selection:[e+t.length,e+t.length]}),a={value:i,selection:[e,r]},s=Ja(a,o),[l,d]=jc(s,t,this.maskOptions.overwriteMode).selection,f=s.value.slice(0,l)+t,v=f.length,b=Vn({value:f+s.value.slice(d),selection:[v,v]},o,a);if(i.slice(0,l)===Vn({value:f,selection:[v,v]},o,a).value||Bc(this,b))throw new Error("Invalid mask value");this.value=b.value,this.selection=b.selection}deleteCharacters([e,r]){if(e===r||!r)return;let{value:t}=this,i=this.getMaskExpression({value:t.slice(0,e)+t.slice(r),selection:[e,e]}),o={value:t,selection:[e,r]},a=Ja(o,i),[s,l]=a.selection,d=a.value.slice(0,s)+a.value.slice(l),f=Vn({value:d,selection:[s,s]},i,o);this.value=f.value,this.selection=f.selection}getMaskExpression(e){let{mask:r}=this.maskOptions;return typeof r=="function"?r(e):r}},Oo=class{constructor(e){this.element=e,this.listeners=[]}listen(e,r,t){let i=r;this.element.addEventListener(e,i,t),this.listeners.push(()=>this.element.removeEventListener(e,i))}destroy(){this.listeners.forEach(e=>e())}},Jt={CTRL:1,ALT:2,SHIFT:4,META:8},wi={Y:89,Z:90};function Pi(n,e,r){return n.ctrlKey===!!(e&Jt.CTRL)&&n.altKey===!!(e&Jt.ALT)&&n.shiftKey===!!(e&Jt.SHIFT)&&n.metaKey===!!(e&Jt.META)&&n.keyCode===r}function Wc(n){return Pi(n,Jt.CTRL,wi.Y)||Pi(n,Jt.CTRL|Jt.SHIFT,wi.Z)||Pi(n,Jt.META|Jt.SHIFT,wi.Z)}function Gc(n){return Pi(n,Jt.CTRL,wi.Z)||Pi(n,Jt.META,wi.Z)}function zn(n,e){var r;let t=n.value;if(typeof e=="string")n.value=e;else{let[i,o]=e.selection;n.value=e.value,n.matches(":focus")&&((r=n.setSelectionRange)===null||r===void 0||r.call(n,i,o))}n.value!==t&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function Yc({value:n,selection:e},r){let[t,i]=e;if(t!==i)return[t,i];let o=r?n.slice(t).indexOf(` `)+1||n.length:n.slice(0,i).lastIndexOf(` `)+1;return[r?t:o,r?o:i]}function Qc({value:n,selection:e},r){let[t,i]=e;return t!==i?[t,i]:(r?[t,i+1]:[t-1,i]).map(a=>Math.min(Math.max(a,0),n.length))}var Zc=/\s+$/g,Xc=/^\s+/g,ts=/\s/;function Kc({value:n,selection:e},r){let[t,i]=e;if(t!==i)return[t,i];if(r){let l=n.slice(t),[d]=l.match(Xc)||[""],f=l.trimStart().search(ts);return[t,f!==-1?t+d.length+f:n.length]}let o=n.slice(0,i),[a]=o.match(Zc)||[""],s=o.trimEnd().split("").reverse().findIndex(l=>l.match(ts));return[s!==-1?i-a.length-s:0,i]}function Rn(n=[]){return(e,...r)=>n.reduce((t,i)=>Object.assign(Object.assign({},t),i(t,...r)),e)}function qe(n,e){let r=Object.assign(Object.assign({},te),e),t=Rn(r.preprocessors),i=Rn(r.postprocessors),o=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:a}=t({elementState:o,data:""},"validation"),s=new Ii(a,r),{value:l,selection:d}=i(s,o);return typeof n=="string"?l:{value:l,selection:d}}var Ln=class extends Mo{constructor(e,r){super(),this.element=e,this.maskitoOptions=r,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new Oo(this.element),this.options=Object.assign(Object.assign({},te),this.maskitoOptions),this.preprocessor=Rn(this.options.preprocessors),this.postprocessor=Rn(this.options.postprocessors),this.teardowns=this.options.plugins.map(t=>t(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen("keydown",t=>{if(Wc(t))return t.preventDefault(),this.redo();if(Gc(t))return t.preventDefault(),this.undo()}),this.eventListener.listen("beforeinput",t=>{var i;let o=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"historyUndo":return t.preventDefault(),this.undo();case"historyRedo":return t.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:o,selection:Qc(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:t,isForward:o,selection:Kc(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:t,isForward:o,selection:Yc(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertReplacementText":return;case"insertLineBreak":case"insertParagraph":return this.handleEnter(t);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(t,t.data||((i=t.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"))||"")}}),this.eventListener.listen("input",({inputType:t})=>{t!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:e,selectionStart:r,selectionEnd:t}=this.element;return{value:e,selection:[r||0,t||0]}}get maxLength(){let{maxLength:e}=this.element;return e===-1?1/0:e}destroy(){this.eventListener.destroy(),this.teardowns.forEach(e=>e==null?void 0:e())}updateElementState({value:e,selection:r},t={inputType:"insertText",data:null}){let i=this.elementState.value;this.updateValue(e),this.updateSelectionRange(r),i!==e&&this.dispatchInputEvent(t)}updateSelectionRange([e,r]){var t;let{element:i}=this;i.matches(":focus")&&(i.selectionStart!==e||i.selectionEnd!==r)&&((t=i.setSelectionRange)===null||t===void 0||t.call(i,e,r))}updateValue(e){this.element.value=e}ensureValueFitsMask(){this.updateElementState(qe(this.elementState,this.options))}dispatchInputEvent(e={inputType:"insertText",data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},e),{bubbles:!0,cancelable:!1})))}handleDelete({event:e,selection:r,isForward:t,force:i=!1}){let o={value:this.elementState.value,selection:r},[a,s]=o.selection,{elementState:l}=this.preprocessor({elementState:o,data:""},t?"deleteForward":"deleteBackward"),d=new Ii(l,this.options),[f,v]=l.selection;d.deleteCharacters([f,v]);let b=this.postprocessor(d,o);if(!(o.value.slice(0,a)+o.value.slice(s)===b.value&&!i&&!this.element.isContentEditable)){if(e.preventDefault(),Hc(o,l,d,b))return this.updateSelectionRange(t?[v,v]:[f,f]);this.updateElementState(b,{inputType:e.inputType,data:null}),this.updateHistory(b)}}handleInsert(e,r){let t=this.elementState,{elementState:i,data:o=r}=this.preprocessor({data:r,elementState:t},"insert"),a=new Ii(i,this.options);try{a.addCharacters(i.selection,o)}catch{return e.preventDefault()}let[s,l]=i.selection,d=t.value.slice(0,s)+r+t.value.slice(l),f=this.postprocessor(a,t);if(f.value.length>this.maxLength)return e.preventDefault();(d!==f.value||this.element.isContentEditable)&&(e.preventDefault(),this.updateElementState(f,{data:r,inputType:e.inputType}),this.updateHistory(f))}handleEnter(e){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(e,` -`)}};var wo=(()=>{let e=class e{constructor(){return this.nativeElement=bt(),new St(this.nativeElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiElement",""]],exportAs:["elementRef"],standalone:!0});let n=e;return n})();var ns=(()=>{let e=class e{constructor(){this.el=bt(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new q,this.pausedChange=new q,this.volumeChange=new q}set playbackRateSetter(t){this.updatePlaybackRate(t)}set currentTime(t){Math.abs(t-this.currentTime)>.05&&(this.el.currentTime=t)}set paused(t){var i,o,a,s;t?(o=(i=this.el).pause)==null||o.call(i):((s=(a=this.el).play)==null||s.call(a),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(t){this.pausedChange.emit(t),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(t){this.playbackRate=t,this.el.playbackRate=this.playbackRate}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(i,o){i&1&&O("durationchange",function(){return 0})("ended",function(){return o.onPausedChange(!0)})("pause",function(){return o.onPausedChange(!0)})("play",function(){return o.onPausedChange(!1)})("volumechange",function(){return o.onVolumeChange()})("timeupdate",function(){return o.onCurrentTimeChange()})("seeking",function(){return o.onCurrentTimeChange()})("seeked",function(){return o.onCurrentTimeChange()}),i&2&&Ht("volume",o.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let n=e;return n})();var os=(()=>{let e=class e{transform(t,i,...o){return t.filter(a=>i(a,...o))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiFilter",type:e,pure:!0,standalone:!0});let n=e;return n})();var qc=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],Jc=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],rs=(()=>{let e=class e{constructor(){this.tuiSlot="top"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let n=e;return n})(),as=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-badged-content"]],standalone:!0,features:[P],ngContentSelectors:Jc,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(i,o){if(i&1){let a=A();ht(qc),j(0),p(1,"div",2,0),O("waResizeObserver",function(){return C(a),y(0)}),j(3,1),p(4,"div",3),j(5,2),m()(),p(6,"div",4,1),O("waResizeObserver",function(){return C(a),y(0)}),j(8,3),p(9,"div",3),j(10,4),m()()}if(i&2){let a=V(2),s=V(7);c(),w("--t-badge-height",a.offsetHeight,"px"),c(5),w("--t-badge-height",s.offsetHeight,"px")}},dependencies:[Ia],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let n=e;return n})();var tu={appearance:"whiteblock",size:"l"},ss=tt(tu);var eu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiBlock]{position:relative;display:inline-flex;gap:1rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock][data-size=l]{gap:.75rem;font:var(--tui-font-text-m);padding:var(--tui-padding-l);--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l)}[tuiBlock][data-size=l] [tuiTooltip]{margin:.25rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),Hn=(()=>{let e=class e{constructor(){this.nothing=ke(eu),this.size=h(ss).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["label","tuiBlock",""],["input","tuiBlock",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,se,5),i&2){let s;Q(s=Z())&&(o.control=s.first)}},hostAttrs:["tuiBlock",""],hostVars:3,hostBindings:function(i,o){i&2&&(B("data-size",o.size||"l"),N("_disabled",!!(o.control!=null&&o.control.disabled)))},inputs:{size:[0,"tuiBlock","size"]},standalone:!0,features:[k([ln(ss),Da({size:"s"})]),ze([An,Ge,fn])]});let n=e;return n})();var cs=(n,e,r,t)=>[n,e,r,t,!1],us=(n,e,r,t)=>[n,e,r,t,!0],iu=(n,e,r,t,i,o)=>[n,e,r,t,i,o];function nu(n,e){if(n&1){let r=A();p(0,"tui-calendar",3),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),S(4,"tuiMapper"),jt("hoveredItemChange",function(i){C(r);let o=g();return kt(o.hoveredItem,i)||(o.hoveredItem=i),y(i)}),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i.append({month:-1})))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m()}if(n&2){let r=g();u("disabledItemHandler",r.calculatedDisabledItemHandler)("markerHandler",r.markerHandler)("max",Te(1,9,vi(29,cs,r.max,r.capsMapper,r.value,r.maxLength)))("min",Te(2,15,vi(34,us,r.min,r.capsMapper,r.value,r.maxLength)))("minViewedMonth",xe(3,21,r.defaultViewedMonth,r.monthOffset,1))("month",xe(4,25,r.defaultViewedMonth,r.monthOffset,1))("showAdjacent",!1)("value",r.value),Bt("hoveredItem",r.hoveredItem)}}function ou(n,e){if(n&1&&x(0,"tui-icon",8),n&2){let r=g(3);w("font-size",1,"rem"),u("icon",r.icons.check)}}function ru(n,e){if(n&1){let r=A();p(0,"button",6),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.onItemSelect(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),T(1),_(2,ou,1,3,"tui-icon",7),m()}if(n&2){let r=e.$implicit,t=g(2);B("aria-checked",t.isItemActive(r)),c(),F(" ",r," "),c(),u("ngIf",t.isItemActive(r))}}function au(n,e){if(n&1&&(p(0,"tui-data-list",4),_(1,ru,3,3,"button",5),S(2,"async"),S(3,"tuiMapper"),m()),n&2){let r=g();w("flex",1),c(),u("ngForOf",Te(3,5,Pr(12,iu,r.items,r.mapper,r.min,r.max,r.minLength,L(2,3,r.otherDateText$))))}}var su=(n,e,r,t)=>{if(!(e!=null&&e.isSingleDay)||!r)return t?n||Nt:n||Kt;let i=Object.fromEntries(Object.entries(r).map(([a,s])=>[a,-s])),o=e.from.append(t?i:r).append({day:t?1:-1});return t?o.dayBefore(n||Nt)?n||Nt:o:n&&o.dayAfter(n)?n:o},Di=(()=>{let e=class e{constructor(){var t;this.otherDateText$=h(ka),this.icons=h(un),this.cdr=h(Zt),this.previousValue=null,this.hoveredItem=null,this.capsMapper=su,this.defaultViewedMonth=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.min=Nt,this.max=Kt,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new q,this.selectedActivePeriod=null,this.monthOffset=(i,o)=>i.append({month:o}),this.mapper=(i,o,a,s,l)=>[...i.filter(d=>(s===null||d.range.from.append(s).daySameOrBefore(d.range.to))&&(o===null||d.range.to.daySameOrAfter(o))&&(a===null||d.range.from.daySameOrBefore(a))),l||""],(t=h(Ea,{optional:!0}))==null||t.pipe($t(this.cdr),ft()).subscribe(i=>{this.value=i})}ngOnChanges(){var t;this.defaultViewedMonth=((t=this.value)==null?void 0:t.from)||this.defaultViewedMonth}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}onEsc(t){var i;t.key!=="Escape"||!((i=this.value)!=null&&i.isSingleDay)||(t.stopPropagation(),this.value=this.previousValue)}isItemActive(t){let{activePeriod:i}=this;return Ci(t)&&i===null||i===t}onItemSelect(t){Ci(t)?this.activePeriod!==null&&(this.selectedActivePeriod=null,this.updateValue(null)):(this.selectedActivePeriod=t,this.updateValue(t.range.dayLimit(this.min,this.max)))}onMonthChange(t){this.defaultViewedMonth=t}onDayClick(t){var i;this.previousValue=this.value,this.selectedActivePeriod=null,(i=this.value)!=null&&i.isSingleDay?this.updateValue(Ot.sort(this.value.from,t)):this.value=new Ot(t,t)}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}calculateDisabledItemHandler(t,i,o){return a=>{if(!(i!=null&&i.isSingleDay)||!o)return t(a);let s=Object.fromEntries(Object.entries(o).map(([v,b])=>[v,-b])),l=i.from.append(s).append({day:1}),d=i.from.append(o).append({day:-1});return l.dayBefore(a)&&d.dayAfter(a)||t(a)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-range"]],hostBindings:function(i,o){i&1&&O("keydown.capture",function(s){return o.onEsc(s)},!1,Tr)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[be,P],decls:7,vars:37,consts:[["presets",""],["automation-id","tui-calendar-range__calendar",1,"t-calendar",3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem"],[3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent",4,"ngIf","ngIfElse"],[3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem"],["automation-id","tui-calendar-range__menu","role","menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent"],["automation-id","tui-calendar-range__checkmark",3,"icon","font-size",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",3,"icon"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-calendar",1),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),jt("hoveredItemChange",function(l){return C(a),kt(o.hoveredItem,l)||(o.hoveredItem=l),y(l)}),O("dayClick",function(l){return C(a),y(o.onDayClick(l))})("monthChange",function(l){return C(a),y(o.onMonthChange(l))})("mousedown.prevent.silent",function(){return C(a),y(0)}),m(),_(4,nu,5,39,"tui-calendar",2)(5,au,4,19,"ng-template",null,0,J)}if(i&2){let a=V(6);u("disabledItemHandler",o.calculatedDisabledItemHandler)("markerHandler",o.markerHandler)("max",Te(1,11,vi(27,cs,o.max,o.capsMapper,o.value,o.maxLength)))("maxViewedMonth",o.items.length?null:xe(2,17,o.defaultViewedMonth,o.monthOffset,-1))("min",Te(3,21,vi(32,us,o.min,o.capsMapper,o.value,o.maxLength)))("month",o.defaultViewedMonth)("showAdjacent",!!o.items.length)("value",o.value),Bt("hoveredItem",o.hoveredItem),c(4),u("ngIf",!o.items.length)("ngIfElse",a)}},dependencies:[$,Y,nt,Ce,Ke,ve,qt,W],styles:["[_nghost-%COMP%]{display:flex;min-width:30rem}.t-calendar[_ngcontent-%COMP%]{border-right:1px solid var(--tui-border-normal)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateDisabledItemHandler",null),n})();var cu=["type","checkbox","tuiCheckbox",""],uu={size:"m",appearance:n=>n.checked||n.indeterminate?"primary":"whiteblock",icons:{checked:()=>"@tui.check",indeterminate:()=>"@tui.minus"}},du=tt(uu);var Bn=(()=>{let e=class e{constructor(){this.appearance=h(X),this.options=h(du),this.resolver=ta(),this.destroyRef=h(fe),this.el=bt(),this.size=this.options.size,this.control=h(se,{optional:!0,self:!0})}ngOnInit(){var t;(t=this.control)!=null&&t.valueChanges&&Zr(this.control).pipe(ft(this.destroyRef)).subscribe(i=>{let o=this.control instanceof Mt&&i===null?this.control.model:i;this.el.indeterminate=o===null})}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}getIcon(t){let i=this.options.icons[t],o=Ci(i)?i:i(this.size);return`url(${this.resolver(o)})`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","type","checkbox","tuiCheckbox",""]],hostVars:8,hostBindings:function(i,o){i&2&&(Ht("disabled",!o.control||o.control.disabled),B("data-size",o.size),w("--t-checked",o.getIcon("checked"))("--t-indeterminate",o.getIcon("indeterminate")),N("_readonly",!o.control))},inputs:{size:"size"},standalone:!0,features:[ze([Ge,An]),P],attrs:cu,decls:0,vars:0,template:function(i,o){},styles:[`[_nghost-%COMP%]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);width:var(--t-size);height:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[_nghost-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:currentColor;-webkit-mask:url('data:image/svg+xml,') center / 100%;mask:url('data:image/svg+xml,') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[_nghost-%COMP%]:disabled._readonly{opacity:1}[_nghost-%COMP%]:checked:before, [_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-checked);mask-image:var(--t-checked);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate);mask-image:var(--t-indeterminate)}[data-size=s][_nghost-%COMP%]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}`],changeDetection:0});let n=e;return n})();function mu(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function hu(n,e){if(n&1){let r=A();p(0,"button",5,1),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.itemClick.emit(i))}),p(2,"span",6),_(3,mu,2,1,"ng-container",7),m()()}if(n&2){let r=e.$implicit,t=V(1),i=g(2);u("disabled",i.disabledItemHandler(r))("value",r),c(3),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function fu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,hu,4,4,"button",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function gu(n,e){n&1&&x(0,"tui-loader",8)}var _u=["labels",""];function vu(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Cu(n,e){if(n&1){let r=A();p(0,"button",7,1),O("click",function(){let i=C(r).$implicit,o=g(3);return y(o.itemClick.emit(i))}),_(2,vu,2,1,"ng-container",8),m()}if(n&2){let r=e.$implicit,t=V(1),i=g(3);u("disabled",i.disabledItemHandler(r))("value",r),c(2),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function yu(n,e){if(n&1&&(p(0,"tui-opt-group",5),_(1,Cu,3,4,"button",6),m()),n&2){let r=e.$implicit,t=e.index,i=g(2);u("label",i.labels[t]),c(),u("ngForOf",r)}}function bu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,yu,2,2,"tui-opt-group",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function xu(n,e){n&1&&x(0,"tui-loader",9)}var Tu="[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}",Po=(()=>{let e=class e{constructor(){this.itemsHandlers=h(Fa),this.optionsQuery=ge,this.items=[],this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=ba(),this.itemClick=new q,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:i}){return{$implicit:t,active:da(i)}}getOptions(t=!1){return this.optionsQuery.filter(({disabled:i})=>t||!i).map(({value:i})=>i).filter(Ut)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(i,o){if(i&1&&ct(qt,5),i&2){let a;Q(a=Z())&&(o.optionsQuery=a)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"},standalone:!0,features:[k([_o(e)]),P],decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(i,o){if(i&1&&_(0,fu,2,3,"tui-data-list",2)(1,gu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,Y,nt,wo,vo,ut],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0});let n=e;return n})(),ds=(()=>{let e=class e extends Po{constructor(){super(...arguments),this.items=[],this.labels=[]}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-data-list-wrapper","labels",""]],inputs:{items:"items",labels:"labels"},standalone:!0,features:[k([_o(e)]),H,P],attrs:_u,decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-loader"]],template:function(i,o){if(i&1&&_(0,bu,2,3,"tui-data-list",2)(1,xu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,xa,Y,nt,wo,ut,vo],styles:[Tu],changeDetection:0});let n=e;return n})();var Je=(()=>{let e=class e{constructor(){this.elementRef=h(St).nativeElement,this.ngZone=h(Dt),this.maskedElement=null,this.options=null,this.elementPredicate=es;let t=h(Ue,{self:!0,optional:!0});if(t){let i=t.writeValue.bind(t);t.writeValue=o=>{i(this.options?qe(String(o??""),this.options):o)}}}ngOnChanges(){return Le(this,null,function*(){var a;let{elementPredicate:t,options:i}=this;if((a=this.maskedElement)==null||a.destroy(),!i)return;let o=yield t(this.elementRef);this.elementPredicate===t&&this.ngZone.runOutsideAngular(()=>{this.maskedElement=new Ln(o,i)})})}ngOnDestroy(){var t;(t=this.maskedElement)==null||t.destroy()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","maskito",""]],inputs:{options:[0,"maskito","options"],elementPredicate:[0,"maskitoElement","elementPredicate"]},standalone:!0,features:[be]});let n=e;return n})();function Oe(n,e,r){let t=Math.min(Number(r),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(t):t}function _s(n){return n.replaceAll(/\W/g,"").length}function ps(n,{day:e,month:r,year:t}={}){let i=new Date(n);return e&&i.setDate(i.getDate()+e),r&&i.setMonth(i.getMonth()+r),t&&i.setFullYear(i.getFullYear()+t),i}var vs=n=>{var e,r,t;return{day:((e=n.match(/d/g))===null||e===void 0?void 0:e.length)||0,month:((r=n.match(/m/g))===null||r===void 0?void 0:r.length)||0,year:((t=n.match(/y/g))===null||t===void 0?void 0:t.length)||0}};function Cs(n){return{day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0"),hours:String(n.getHours()).padStart(2,"0"),minutes:String(n.getMinutes()).padStart(2,"0"),seconds:String(n.getSeconds()).padStart(2,"0"),milliseconds:String(n.getMilliseconds()).padStart(3,"0")}}function Ou(n,e){let r=_s(e),[t=""]=n.match(new RegExp(`(\\D*\\d){${r}}`))||[];return t}function ko(n,e){return n.length!r.match(/^0+$/))}function Ei(n,e,r){let t=_s(e);return n.replace(r,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${t}}`,"g"))||[]}function ki(n,e){let r=e.replaceAll(/[^dmy]/g,""),t=n.replaceAll(/\D+/g,""),i={day:t.slice(r.indexOf("d"),r.lastIndexOf("d")+1),month:t.slice(r.indexOf("m"),r.lastIndexOf("m")+1),year:t.slice(r.indexOf("y"),r.lastIndexOf("y")+1)};return Object.fromEntries(Object.entries(i).filter(([o,a])=>!!a).sort(([o],[a])=>e.toLowerCase().indexOf(o[0])>e.toLowerCase().indexOf(a[0])?1:-1))}function Fo(n,e){var r,t,i,o,a,s,l;let d=((r=n.year)===null||r===void 0?void 0:r.length)===2?`20${n.year}`:n.year,f=new Date(Number(d??"0"),Number((t=n.month)!==null&&t!==void 0?t:"1")-1,Number((i=n.day)!==null&&i!==void 0?i:"1"),Number((o=e==null?void 0:e.hours)!==null&&o!==void 0?o:"0"),Number((a=e==null?void 0:e.minutes)!==null&&a!==void 0?a:"0"),Number((s=e==null?void 0:e.seconds)!==null&&s!==void 0?s:"0"),Number((l=e==null?void 0:e.milliseconds)!==null&&l!==void 0?l:"0"));return f.setFullYear(Number(d??"0")),f}var ys=", ";function ti({day:n,month:e,year:r,hours:t,minutes:i,seconds:o,milliseconds:a},{dateMode:s,dateTimeSeparator:l=ys,timeMode:d}){var f;let v=((f=s.match(/y/g))===null||f===void 0?void 0:f.length)===2?r==null?void 0:r.slice(-2):r;return(s+(d?l+d:"")).replaceAll(/d+/g,n??"").replaceAll(/m+/g,e??"").replaceAll(/y+/g,v??"").replaceAll(/H+/g,t??"").replaceAll("MSS",a??"").replaceAll(/M+/g,i??"").replaceAll(/S+/g,o??"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}var bs={day:31,month:12,year:9999},wu=[".",",","\u0431","\u044E"],Pu=new Date("0001-01-01"),xs=new Date("9999-12-31");var Iu=[":","."];var So="\xA0",Du="\u200B",Un="\u2013",Ao="\u2014",Si="-",jn="\u2212",Vo="\u30FC";function Su({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:r,offset:t,selection:[i,o]}){let a=ki(n,e),s=Object.entries(a),l={};for(let[v,b]of s){let E=ti(l,{dateMode:e}),R=bs[v],rt=E.length&&r.length,vt=t+E.length+rt+vs(e)[v],Pt=vt>=i&&vt===o;if(Pt&&Number(b)>Number(R))return{validatedDateString:"",updatedSelection:[i,o]};if(Pt&&Number(b)<1)return{validatedDateString:"",updatedSelection:[i,o]};l[v]=b}let d=ti(l,{dateMode:e}),f=d.length-n.length;return{validatedDateString:d,updatedSelection:[i+f,o+f]}}var Ts=/[\\^$.*+?()[\]{}|]/g,Eu=new RegExp(Ts.source);function wt(n){return n&&Eu.test(n)?n.replaceAll(Ts,"\\$&"):n}function ee(n,{prefix:e,postfix:r}){var t,i;let o=new RegExp(`^${wt(e)}`),a=new RegExp(`${wt(r)}$`),[s=""]=(t=n.match(o))!==null&&t!==void 0?t:[],[l=""]=(i=n.match(a))!==null&&i!==void 0?i:[],d=n.replace(o,"").replace(a,"");return{extractedPrefix:s,extractedPostfix:l,cleanValue:d}}function ku(n,e){let r="";for(let t=0;tString.fromCharCode(e.charCodeAt(0)-65248))}function Ms({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:r,uniteFn:t}){return({value:i,selection:o})=>{var a;let[s,l]=o,{dateStrings:d,restPart:f=""}=r(i),v=[],b=0;d.forEach(R=>{let rt=ki(R,n),Pt=Object.entries(rt).reduce((It,[Gt,pe])=>{let{validatedSegmentValue:rr,prefixedZeroesCount:pi}=Eo(pe,`${bs[Gt]}`);return b+=pi,Object.assign(Object.assign({},It),{[Gt]:rr})},{});v.push(ti(Pt,{dateMode:n}))});let E=t(v,i)+(!((a=d[d.length-1])===null||a===void 0)&&a.endsWith(e)?e:"")+f;return b&&E.slice(l+b,l+b+e.length)===e&&(b+=e.length),{selection:[s+b,l+b],value:E}}}function Fu({dateModeTemplate:n,firstDateEndSeparator:e,dateSegmentSeparator:r,pseudoFirstDateEndSeparators:t}){return({elementState:i,data:o})=>{let{value:a,selection:s}=i,l=Ou(a,n),d=t.filter(v=>!e.includes(v)&&v!==r),f=new RegExp(`[${d.join("")}]`,"gi");return{elementState:{selection:s,value:l&&a.length>l.length?l+a.slice(l.length).replace(/^[\D\s]*/,e):a},data:o.replace(f,e)}}}function Ro(){return({elementState:n,data:e})=>{let{value:r,selection:t}=n;return{elementState:{selection:t,value:ms(r)},data:ms(e)}}}function Au(n,e){let r=vs(e);return Object.fromEntries(Object.entries(n).map(([t,i])=>{let o=r[t];return[t,i.length===o&&i.match(/^0+$/)?"1".padStart(o,"0"):i]}))}function Os({dateModeTemplate:n,min:e=Pu,max:r=xs,rangeSeparator:t="",dateSegmentSeparator:i="."}){return({value:o,selection:a})=>{let s=t&&o.endsWith(t),l=Ei(o,n,t),d="";for(let f of l){d+=d?t:"";let v=ki(f,n);if(!ko(f,n)){let R=Au(v,n),rt=ti(R,{dateMode:n}),vt=f.endsWith(i)?i:"";d+=rt+vt;continue}let b=Fo(v),E=Oe(b,e,r);d+=ti(Cs(E),{dateMode:n})}return{selection:a,value:d+(s?t:"")}}}function ws({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r="",dateTimeSeparator:t=ys}){return({elementState:i,data:o})=>{let a=r?new RegExp(`${r}|-`):t,s=o.split(a),l=o.includes(t)?[s[0]]:s;if(l.every(d=>d.trim().split(/\D/).filter(Boolean).length===n.split(e).length)){let d=l.map(f=>Vu(f,n,e)).join(r);return{elementState:i,data:`${d}${o.includes(t)&&t+s[1]||""}`}}return{elementState:i,data:o}}}function Vu(n,e,r){let t=n.split(/\D/).filter(Boolean),i=e.split(r);return t.map((a,s)=>s===i.length-1?a:a.padStart(i[s].length,"0")).join(r)}function Ru(n){let e=new RegExp(`${wt(n)}$`);return n?({value:r,selection:t},i)=>{if(!r&&!i.value.endsWith(n))return{value:r,selection:t};if(!r.endsWith(n)&&!i.value.endsWith(n))return{selection:t,value:r+n};let o=i.value.replace(e,""),a=i.selection[1]>=o.length,s=ku(o,r);return{selection:t,value:Array.from(n).reverse().reduce((l,d,f)=>{let v=l.length-1-f,b=s[v]===d&&a;return l[v]!==d||b?l.slice(0,v+1)+d+l.slice(v+1):l},r)}}:ei}function Lu(n){return n?({value:e,selection:r},t)=>{if(e.startsWith(n)||!e&&!t.value.startsWith(n))return{value:e,selection:r};let[i,o]=r,a=Array.from(n).reduce((l,d,f)=>l[f]===d?l:l.slice(0,f)+d+l.slice(f),e),s=a.length-e.length;return{selection:[i+s,o+s],value:a}}:ei}function Ps({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r=""}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t;if(i===e)return{elementState:t,data:a[0]===o.length?i:""};let s=i.replaceAll(new RegExp(`[^\\d${wt(e)}${r}]`,"g"),"");if(!s)return{elementState:t,data:""};let[l,d]=a,f=d+i.length,v=o.slice(0,l)+s+o.slice(f),b=Ei(v,n,r),E="",R=!!r&&v.includes(r);for(let vt of b){let{validatedDateString:Pt,updatedSelection:It}=Su({dateString:vt,dateModeTemplate:n,dateSegmentsSeparator:e,offset:E.length,selection:[l,f]});if(vt&&!Pt)return{elementState:t,data:""};f=It[1],E+=R&&!E?Pt+r:Pt}let rt=E.slice(l,f);return{elementState:{selection:a,value:E.slice(0,l)+rt.split(e).map(vt=>"0".repeat(vt.length)).join(e)+E.slice(f)},data:rt}}}function Lo(n,e,r){return(t,i)=>{let o=()=>e(t,i);return t.addEventListener(n,o,r),()=>t.removeEventListener(n,o,r)}}function Is(n){return e=>{let r=e.ownerDocument,t=0,i=()=>t++,o=()=>{t=Math.max(--t,0)},a=()=>{if(!e.matches(":focus"))return;if(t)return r.addEventListener("mouseup",a,{once:!0,passive:!0});let s=e.selectionStart||0,l=e.selectionEnd||0,[d,f]=n(e.value,[s,l]);(d>s||f{r.removeEventListener("selectionchange",a),r.removeEventListener("mousedown",i),r.removeEventListener("mouseup",o)}}}function Ds(){return({elementState:n},e)=>{let{value:r,selection:t}=n;if(!r||Nu(r,t))return{elementState:n};let[i,o]=t,a=r.slice(i,o).replaceAll(/\d/g,"0"),s=r.slice(0,i)+a+r.slice(o);return e==="validation"||e==="insert"&&i===o?{elementState:{selection:t,value:s}}:{elementState:{selection:e==="deleteBackward"||e==="insert"?[i,i]:[o,o],value:s}}}}function Nu(n,[e,r]){return r===n.length}function Ss({mode:n,separator:e=".",max:r,min:t}){let i=n.split("/").join(e);return Object.assign(Object.assign({},te),{mask:Array.from(i).map(o=>e.includes(o)?o:/\d/),overwriteMode:"replace",preprocessors:[Ro(),Ds(),ws({dateModeTemplate:i,dateSegmentsSeparator:e}),Ps({dateModeTemplate:i,dateSegmentsSeparator:e})],postprocessors:[Ms({dateModeTemplate:i,dateSegmentSeparator:e,splitFn:o=>({dateStrings:[o]}),uniteFn:([o])=>o}),Os({min:t,max:r,dateModeTemplate:i,dateSegmentSeparator:e})]})}var zu=[Si,Un,Ao,jn,Vo];function Hu({dateModeTemplate:n,rangeSeparator:e,minLength:r,maxLength:t,max:i=xs}){return Do(r)&&Do(t)?ei:({value:o,selection:a})=>{let s=Ei(o,n,e);if(s.length!==2||s.some(R=>!ko(R,n)))return{value:o,selection:a};let[l,d]=s.map(R=>Fo(ki(R,n))),f=ps(l,Object.assign(Object.assign({},r),{day:(r==null?void 0:r.day)&&r.day-1})),v=Do(t)?i:ps(l,Object.assign(Object.assign({},t),{day:(t==null?void 0:t.day)&&t.day-1})),b=Oe(d,f,i),E=b>v?v:b;return{selection:a,value:s[0]+e+ti(Cs(E),{dateMode:n})}}}function Bu({dateModeTemplate:n,rangeSeparator:e}){return({value:r,selection:t})=>{let i=Ei(r,n,e),o=i.length===2&&i.every(b=>ko(b,n)),[a,s]=t,l=a>=r.length,d=a===0&&s>=r.length;if(!(l||d)||!o)return{value:r,selection:t};let[f,v]=i.map(b=>Fo(ki(b,n)));return{selection:t,value:f>v?i.reverse().join(e):r}}}function Es({mode:n,min:e,max:r,minLength:t,maxLength:i,dateSeparator:o=".",rangeSeparator:a=`${So}${Un}${So}`}){let s=n.split("/").join(o),l=Array.from(s).map(d=>o.includes(d)?d:/\d/);return Object.assign(Object.assign({},te),{mask:[...l,...Array.from(a),...l],overwriteMode:"replace",preprocessors:[Ro(),Fu({dateModeTemplate:s,dateSegmentSeparator:o,firstDateEndSeparator:a,pseudoFirstDateEndSeparators:zu}),Ds(),ws({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o}),Ps({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o})],postprocessors:[Ms({dateModeTemplate:s,dateSegmentSeparator:o,splitFn:d=>({dateStrings:Ei(d,s,a)}),uniteFn:(d,f)=>d.reduce((v,b,E)=>v+b+(!E&&f.includes(a)?a:""),"")}),Os({min:e,max:r,dateModeTemplate:s,rangeSeparator:a,dateSegmentSeparator:o}),Hu({dateModeTemplate:s,minLength:t,maxLength:i,max:r,rangeSeparator:a}),Bu({dateModeTemplate:s,rangeSeparator:a})]})}var r0=new RegExp(`[${Iu.map(wt).join("")}]$`);function ju({prefix:n,postfix:e}){return({elementState:r,data:t})=>{let{cleanValue:i}=ee(t,{prefix:n,postfix:e});return{elementState:r,data:i}}}function ks({decimalSeparator:n,isNegativeAllowed:e,precision:r,thousandSeparator:t,prefix:i,postfix:o,decimalPseudoSeparators:a=[],pseudoMinuses:s=[],minusSign:l}){let d=hs(i),f="\\d",v=e?`[${l}${s.map(rt=>`\\${rt}`).join("")}]?`:"",b=t?`[${f}${wt(t).replaceAll(/\s/g,"\\s")}]*`:`[${f}]*`,E=r>0?`([${wt(n)}${a.map(wt).join("")}]${f}{0,${Number.isFinite(r)?r:""}})?`:"",R=hs(o);return new RegExp(`^${d}${v}${b}${E}${R}$`)}function hs(n){return n?`${n.split("").map(e=>`${wt(e)}?`).join("")}`:""}function Ae(n,e="."){let r=!!n.match(new RegExp(`^\\D*[${jn}\\${Si}${Un}${Ao}${Vo}]`)),t=wt(e),i=n.replaceAll(new RegExp(`${t}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${t}]`,"g"),"").replace(e,".");return i?Number((r?Si:"")+i):NaN}function Uu(n){let e=String(n),[r,t]=e.split("e-"),i=e;if(t){let[,o]=r.split("."),a=Number(t)+((o==null?void 0:o.length)||0);i=n.toFixed(a)}return i}function Fs(n,{decimalSeparator:e,thousandSeparator:r}){let[t="",i=""]=n.split(e),[,o="",a=""]=t.match(new RegExp(`([^\\d${wt(r)}]+)?(.*)`))||[];return{minus:o,integerPart:a,decimalPart:i}}function $u({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:r=wu}){return r.filter(t=>t!==e&&t!==n)}function Wu({decimalSeparator:n,precision:e,decimalZeroPadding:r,prefix:t,postfix:i}){return e<=0||!r?ei:({value:o,selection:a})=>{let{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(o,{prefix:t,postfix:i});if(Number.isNaN(Ae(s,n)))return{value:o,selection:a};let[f,v=""]=s.split(n);return{value:l+f+n+v.padEnd(e,"0")+d,selection:a}}}function Gu({prefix:n,postfix:e,decimalSeparator:r,thousandSeparator:t}){return({value:i,selection:o})=>{let[a]=o,{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(i,{prefix:n,postfix:e}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:r,thousandSeparator:t}),E=!v&&!b&&s.includes(r);return!v&&!Number(b)&&a===(f+l).length||E?{selection:o,value:l+f+d}:{value:i,selection:o}}}function Yu({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:t,postfix:i,minusSign:o}){let a=!0,s=ks({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:o});return({elementState:l,data:d})=>{if(!a)return{elementState:l,data:d};a=!1;let{value:f,selection:v}=l,[b,E]=v,{extractedPrefix:R,cleanValue:rt,extractedPostfix:vt}=ee(f,{prefix:t,postfix:i}),Pt=qe({selection:[Math.max(b-R.length,0),Oe(E-R.length,0,rt.length)],value:rt},{mask:s}),[It,Gt]=Pt.selection;return{elementState:{selection:[It+R.length,Gt+R.length],value:R+Pt.value+vt},data:d}}}function Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=a=>{let s=wt(e);return a.replace(new RegExp(`^(\\D+)?[0${s}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${s}]+(?=[1-9])`),"$1")},o=(a,s)=>{let l=a.slice(0,s),d=a.slice(s).startsWith("0");return l.length-i(l).length+(d?1:0)};return({value:a,selection:s})=>{let[l,d]=s,{cleanValue:f,extractedPrefix:v,extractedPostfix:b}=ee(a,{prefix:r,postfix:t}),E=f.includes(n),[R,rt=""]=f.split(n),vt=i(R);if(R===vt)return{value:a,selection:s};let Pt=l-o(a,l),It=d-o(a,d);return{value:v+vt+(E?n:"")+rt+b,selection:[Math.max(Pt,0),Math.max(It,0)]}}}function Zu({min:n,max:e,decimalSeparator:r,minusSign:t}){return({value:i,selection:o})=>{let a=Ae(i,r),s=a>0?Math.min(a,e):Math.max(a,n);if(a&&s!==a){let l=`${s}`.replace(".",r).replace(Si,t);return{value:l,selection:[l.length,l.length]}}return{value:i,selection:o}}}function Xu({decimalSeparator:n,thousandSeparator:e,decimalZeroPadding:r}){return({elementState:t,data:i},o)=>{let{value:a,selection:s}=t,[l,d]=s,f=a.slice(l,d),v=r?[n,e]:[e],b=r&&l>a.indexOf(n)&&!!f.match(/^0+$/gi);return o!=="deleteBackward"&&o!=="deleteForward"||!v.includes(f)&&!b?{elementState:t,data:i}:{elementState:{value:a,selection:o==="deleteForward"?[d,d]:[l,l]},data:i}}}function Ku({decimalSeparator:n,precision:e,prefix:r,postfix:t}){let i=new RegExp(`^\\D*${wt(n)}`);return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f}=ee(s,{prefix:r,postfix:t}),[v,b]=l,E=Oe(v-f.length,0,d.length),R=Oe(b-f.length,0,d.length);if(e<=0||d.slice(0,E).includes(n)||d.slice(R).includes(n)||!a.match(i))return{elementState:o,data:a};let rt=d.slice(0,E).match(/\d+/);return{elementState:o,data:rt?a:`0${a}`}}}function fs({validCharacter:n,pseudoCharacters:e,prefix:r,postfix:t}){let i=new RegExp(`[${e.join("")}]`,"gi");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPostfix:f,extractedPrefix:v}=ee(s,{prefix:r,postfix:t});return{elementState:{selection:l,value:v+d.replace(i,n)+f},data:a.replace(i,n)}}}function qu({decimalSeparator:n,prefix:e,postfix:r}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t,[s,l]=a,{cleanValue:d}=ee(o,{prefix:e,postfix:r});return{elementState:t,data:!d.includes(n)||o.slice(s,l+1).includes(n)?i:i.replaceAll(new RegExp(wt(n),"gi"),"")}}}function Ju({thousandSeparator:n,decimalSeparator:e,prefix:r,postfix:t}){if(!n)return ei;let i=(...o)=>o.every(a=>/\s/.test(a));return({value:o,selection:a})=>{let{cleanValue:s,extractedPostfix:l,extractedPrefix:d}=ee(o,{prefix:r,postfix:t}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:e,thousandSeparator:n}),[E,R]=a,[rt,vt]=a,Pt=Array.from(v).reduceRight((It,Gt,pe)=>{let pi=!(!pe&&Gt===n)&&It.length&&(It.length+1)%4===0;return pi&&(Gt===n||i(Gt,n))?n+It:Gt===n&&!pi?(pe&&pe<=E&&rt--,pe&&pe<=R&&vt--,It):pi?(pe<=E&&rt++,pe<=R&&vt++,Gt+n+It):Gt+It},"");return{value:d+f+Pt+(s.includes(e)?e:"")+b+l,selection:[rt,vt]}}}function td({precision:n,decimalSeparator:e,prefix:r,postfix:t}){if(n>0)return ei;let i=new RegExp(`${wt(e)}.*$`,"g");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f,extractedPostfix:v}=ee(s,{prefix:r,postfix:t}),[b,E]=l,R=f+d.replace(i,"")+v;return{elementState:{selection:[Math.min(b,R.length),Math.min(E,R.length)],value:R},data:a.replace(i,"")}}}var gs=[0,0];function ed({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t});return Lo("blur",o=>{let a=i({value:o.value,selection:gs},{value:"",selection:gs}).value;zn(o,a)},{capture:!0})}function id({min:n,max:e,decimalSeparator:r}){return Lo("blur",(t,i)=>{let o=Ae(t.value,r),a=Oe(o,n,e);!Number.isNaN(o)&&o!==a&&zn(t,qe(Uu(a),i))},{capture:!0})}function nd({decimalSeparator:n,prefix:e,postfix:r}){return Lo("blur",t=>{let{cleanValue:i,extractedPostfix:o,extractedPrefix:a}=ee(t.value,{prefix:e,postfix:r}),s=a+i.replace(new RegExp(`^(\\D+)?${wt(n)}`),`$10${n}`)+o;zn(t,s)},{capture:!0})}function As({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:r=0,thousandSeparator:t=So,decimalSeparator:i=".",decimalPseudoSeparators:o,decimalZeroPadding:a=!1,prefix:s="",postfix:l="",minusSign:d=jn}={}){let f=[Si,Un,Ao,Vo,jn].filter(E=>E!==t&&E!==i&&E!==d),v=$u({decimalSeparator:i,thousandSeparator:t,decimalPseudoSeparators:o}),b=s.endsWith(i)&&r>0?`${s}${Du}`:s;return Object.assign(Object.assign({},te),{mask:ks({decimalSeparator:i,precision:r,thousandSeparator:t,prefix:b,postfix:l,isNegativeAllowed:e<0,minusSign:d}),preprocessors:[Ro(),Yu({decimalSeparator:i,decimalPseudoSeparators:v,pseudoMinuses:f,prefix:b,postfix:l,minusSign:d}),ju({prefix:b,postfix:l}),fs({validCharacter:d,pseudoCharacters:f,prefix:b,postfix:l}),fs({validCharacter:i,pseudoCharacters:v,prefix:b,postfix:l}),Ku({decimalSeparator:i,precision:r,prefix:b,postfix:l}),Xu({decimalSeparator:i,decimalZeroPadding:a,thousandSeparator:t}),td({precision:r,decimalSeparator:i,prefix:b,postfix:l}),qu({decimalSeparator:i,prefix:b,postfix:l})],postprocessors:[Zu({decimalSeparator:i,min:e,max:n,minusSign:d}),Lu(b),Ru(l),Ju({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),Wu({decimalSeparator:i,decimalZeroPadding:a,precision:r,prefix:b,postfix:l}),Gu({prefix:b,postfix:l,decimalSeparator:i,thousandSeparator:t})],plugins:[ed({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),nd({decimalSeparator:i,prefix:b,postfix:l}),id({min:e,max:n,decimalSeparator:i})],overwriteMode:a?({value:E,selection:[R]})=>R<=E.indexOf(i)?"shift":"replace":"shift"})}var od=["type","range","tuiSlider",""];var rd=7;function Vs(n,e){let r=n.findIndex((o,a)=>a&&e(o)),t=n[r-1]||n[0],i=n[r]||n[n.length-1];return[t,i]}function ad(n,e){let[[r,t],[i,o]]=Vs(e,([l,d])=>n<=l),a=(n-r)/(i-r),s=(o-t)*a+t;return Nr(s,rd)}function sd(n,e){let[[r,t],[i,o]]=Vs(e,([s,l])=>n<=l),a=(n-t)/(o-t)||0;return(i-r)*a+r}var ld={size:"m",trackColor:"var(--tui-background-neutral-2)"},cd=tt(ld);var No=(()=>{let e=class e{constructor(){var t;this.injector=h(Cr),this.control=h(se,{self:!0,optional:!0}),this.options=h(cd),this.size=this.options.size,this.segments=1,this.el=bt(),this.control instanceof Mt&&((t=this.control.valueChanges)==null||t.pipe($t(h(Zt)),hr(1)).subscribe())}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get min(){return Number(this.el.min)}get max(){return Number(this.el.max||100)}get value(){return!this.hasKeySteps&&this.control instanceof Mt?this.control.viewModel:Number(this.el.value)||0}set value(t){this.el.value=`${t}`}get segmentWidth(){return 100/Math.max(1,this.segments)}get hasKeySteps(){return!!this.injector.get(ud,null)}get step(){return Number(this.el.step)||1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","type","range","tuiSlider",""]],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(){return 0}),i&2&&(B("data-size",o.size),w("--tui-slider-track-color",o.options.trackColor)("--tui-slider-fill-ratio",o.valueRatio)("--tui-slider-segment-width",o.segmentWidth,"%"))},inputs:{size:"size",segments:"segments"},standalone:!0,features:[P],attrs:od,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{position:relative;display:block;width:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]::-webkit-slider-container{border-radius:inherit}[data-size=m][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}[data-size=s][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[data-size=m][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[data-size=s][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=m][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[_nghost-%COMP%]::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}'],changeDetection:0});let n=e;return et([ot],n.prototype,"hasKeySteps",null),n})(),ud=(()=>{let e=class e extends _a{constructor(){super(...arguments),this.slider=h(Yi(()=>No))}writeValue(t){if(t===null)return;let i=an(t,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.onChange(ad(this.slider.valueRatio*100,this.keySteps))}transformToNativeValue(t){let{min:i,max:o}=this.slider;return sd(t,this.keySteps)*(o-i)/100+i}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(i,o){i&1&&O("blur",function(){return o.onTouched()})("input",function(){return o.updateControlValue()})("change",function(){return o.updateControlValue()}),i&2&&(Ht("disabled",o.disabled()),B("aria-valuenow",o.value())("aria-valuemin",o.min)("aria-valuemax",o.max))},inputs:{keySteps:"keySteps"},standalone:!0,features:[k([ha(0)]),H]});let n=e;return n})();var dd=["tuiProgressLabel",""],pd=[[["progress"]],[["tui-progress-circle"]],"*"],md=["progress","tui-progress-circle","*"],hd={color:null,size:"m"},fd=tt(hd);var Rs=(()=>{let e=class e{constructor(){this.options=h(fd),this.animationDelay$=Rt(!0).pipe(Ne(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(i,o){i&2&&(B("data-size",o.size),w("--tui-progress-color",o.color)("--progress-ratio",o.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[P],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(i,o){i&1&&(x(0,"progress",0),yr(),p(1,"svg",1),x(2,"circle",2)(3,"circle",3),S(4,"async"),m()),i&2&&(u("max",o.max)("value",o.value),c(3),N("t-progress_filled",L(4,4,o.animationDelay$)))},dependencies:[$],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let n=e;return n})(),Ls=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[P],attrs:dd,ngContentSelectors:md,decls:4,vars:0,consts:[[1,"t-label"]],template:function(i,o){i&1&&(ht(pd),j(0),j(1,1),p(2,"span",0),j(3,2),m())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let n=e;return n})();var $n={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"};var zo=1.5,gd=2.5;function Ns(n,e=!1,r=!1,t=!1,i="m"){let o=i==="s"?0:.25,a=0;return n&&(a+=zo+o),e&&(a+=zo+o),r&&(a+=zo+o),t&&(a+=gd+o),a}var B0=`?v=${$r}`;var _d=/^((?!chrome|android).)*safari/i;function zs(n){return ca(n)||_d.test(n.userAgent.toLowerCase())}var j0=va({limitWidth:"fixed",align:"right"});var X0=tt({AD:"+376###-###",AE:"+971-##-###-####",AF:"+93##-###-####",AG:"+1(268) ###-####",AI:"+1(264) ###-####",AL:"+355(###) ###-###",AM:"+374##-###-###",AO:"+244(###) ###-###",AR:"+54(###) ####-####",AT:"+43(###) ###-####",AU:"+61#-####-####",AW:"+297###-####",AZ:"+994##-###-##-##",BA:"+387 ###-####-##",BB:"+1(246) ###-####",BD:"+880##-###-###",BE:"+32(###) ###-###",BF:"+226##-##-####",BG:"+359(###) ###-###",BH:"+973####-####",BI:"+257##-##-####",BJ:"+229##-##-####",BL:"+590 ## ## ## ## ##",BM:"+1(441) ###-####",BN:"+673###-####",BO:"+591#-###-####",BQ:"+599-###-####",BR:"+55(##) ####-####",BS:"+1(242) ###-####",BT:"+975#-###-###",BW:"+267##-###-###",BY:"+375(##) ###-##-##",BZ:"+501###-####",CA:"+1(###) ###-####",CD:"+243(###) ###-###",CF:"+236-##-##-####",CG:"+242##-###-####",CH:"+41##-###-####",CI:"+225##-##-###-###",CL:"+56#-####-####",CM:"+237#####-####",CN:"+86(###) ####-####",CO:"+57(###) ###-####",CR:"+506####-####",CU:"+53#-###-####",CV:"+238(###) ##-##",CW:"+5999-###-####",CY:"+357##-###-###",CZ:"+420(###) ###-###",DE:"+49(###) ###-###-##",DJ:"+253##-##-##-##",DK:"+45##-##-##-##",DM:"+1(767) ###-####",DO:"+1(###) ###-####",DZ:"+213##-###-####",EC:"+593##-###-####",EE:"+372####-####",EG:"+20(###) ###-####",ER:"+291#-###-###",ES:"+34(###) ###-###",ET:"+251##-###-####",FI:"+358(###) ###-##-##",FJ:"+679##-#####",FK:"+500#####",FM:"+691###-####",FR:"+33 ## ## ## ## ##",GA:"+241##-##-##-##",GB:"+44##-####-####",GD:"+1(473) ###-####",GE:"+995(###) ###-###",GF:"+594 ## ## ## ## ##",GH:"+233(###) ###-###",GI:"+350###-#####",GL:"+299##-##-##",GM:"+220(###) ##-##",GN:"+224##-###-###",GP:"+590 ## ## ## ## ##",GQ:"+240##-###-####",GR:"+30(###) ###-####",GT:"+502#-###-####",GW:"+245#-######",GY:"+592###-####",HK:"+852####-####",HN:"+504####-####",HR:"+385##-###-####",HT:"+509##-##-####",HU:"+36(###) ###-###",ID:"+62(###) ###-##-###",IE:"+353(###) ###-###",IL:"+972##-###-####",IN:"+91(####) ###-###",IQ:"+964(###) ###-####",IR:"+98(###) ###-####",IS:"+354###-####",IT:"+39(###) ####-###",JM:"+1(876) ###-####",JO:"+962#-####-####",JP:"+81-##-####-####",KE:"+254###-######",KG:"+996(###) ###-###",KH:"+855##-###-###",KM:"+269##-#####",KN:"+1(869) ###-####",KP:"+850####-#############",KR:"+82##-###-####",KW:"+965####-####",KY:"+1(345) ###-####",KZ:"+7(###) ###-##-##",LA:"+856##-##-###-###",LB:"+961##-###-###",LC:"+1(758) ###-####",LI:"+423(###) ###-####",LK:"+94##-###-####",LR:"+231##-###-###",LS:"+266#-###-####",LT:"+370(###) ##-###",LU:"+352(###) ###-###",LV:"+371##-###-###",LY:"+218##-###-####",MA:"+212##-####-###",MC:"+377###-###-###",MD:"+373####-####",ME:"+382##-###-###",MF:"+590 ## ## ## ## ##",MG:"+261##-##-#####",MK:"+389##-###-###",ML:"+223##-##-####",MM:"+95##-###-###",MN:"+976##-##-####",MO:"+853####-####",MQ:"+596 ## ## ## ## ##",MR:"+222##-##-####",MS:"+1(664) ###-####",MT:"+356####-####",MU:"+230####-####",MV:"+960###-####",MW:"+265#-####-####",MX:"+52(###) ###-####",MY:"+60(###) ###-###",MZ:"+258##-###-###",NA:"+264##-###-####",NC:"+687 ### ###",NE:"+227##-##-####",NG:"+234(###) ###-####",NI:"+505####-####",NL:"+31##-###-####",NO:"+47(###) ##-###",NP:"+977##-###-###",NZ:"+64(###) ###-####",OM:"+968##-###-###",PA:"+507###-####",PE:"+51(###) ###-###",PF:"+689 ## ## ## ##",PG:"+675(###) ##-###",PH:"+63(###) ###-####",PK:"+92(###) ###-####",PL:"+48(###) ###-###",PT:"+351##-###-####",PW:"+680###-####",PY:"+595(###) ###-###",QA:"+974####-####",RE:"+262 ## ## ## ## ##",RO:"+40##-###-####",RS:"+381##-###-####",RU:"+7### ###-##-##",RW:"+250(###) ###-###",SA:"+966#-####-####",SB:"+677###-####",SC:"+248#-###-###",SD:"+249##-###-####",SE:"+46##-###-####",SG:"+65####-####",SH:"+290####",SI:"+386##-###-###",SK:"+421(###) ###-###",SL:"+232##-######",SM:"+378####-######",SN:"+221##-###-####",SO:"+252##-###-###",SR:"+597###-####",ST:"+239##-#####",SV:"+503##-##-####",SX:"+1(721) ###-####",SY:"+963##-####-###",SZ:"+268##-##-####",TC:"+1(649) ###-####",TD:"+235##-##-##-##",TG:"+228##-###-###",TH:"+66##-###-####",TJ:"+992##-###-####",TL:"+670###-#####",TM:"+993#-###-####",TN:"+216##-###-###",TO:"+676#####",TR:"+90(###) ###-####",TT:"+1(868) ###-####",TW:"+886#-####-####",TZ:"+255##-###-####",UA:"+380(##) ###-##-##",UG:"+256(###) ###-###",US:"+1(###) ###-####",UY:"+598#-###-##-##",UZ:"+998##-###-####",VC:"+1(784) ###-####",VE:"+58(###) ###-####",VG:"+1(284)###-####",VN:"+84(###) ####-###",VU:"+678##-#####",WS:"+685##-####",XK:"+383##-###-###",YE:"+967###-###-###",YT:"+262 ## ## ## ## ##",ZA:"+27##-###-####",ZM:"+260##-###-####",ZW:"+263#-######",VA:"+39 #### ###-####",WF:"+681 ## ##-##",VI:"+1(340) ###-####",JE:"+44(####) ######",AC:"+247###-####",TV:"+686###-####",TK:"+690###-####",TA:"+290###-####",SS:"+211### ###-###",SJ:"+47 ## ##-##-##",PS:"+970 #### ###-###",PR:"+1(###) ###-####",PM:"+508 ### ##-##-##",NU:"+683 ###-####",NR:"+674 ###-####",NF:"+672##-####",MP:"+1(670) ###-####",MH:"+692 ###-####",KI:"+686 ####-####",IO:"+246 ### ####",IM:"+44(####) ######",GU:"+1(###) ###-###",GG:"+44(###) ###-####",FO:"+298 ######",EH:"+212 #### #####",CX:"+61 # ####-####",CK:"+682 ## ###",CC:"+61 # ####-####",AX:"+358 ## ###-####",AS:"+1(###) ###-####"}),Ho=new dt("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function we(n){return gt(Ho,n)}var Hs=new dt("[TUI_FONTS_READY]",{factory:()=>{var n;return pr(((n=h(Se).fonts)==null?void 0:n.ready)||Bi).pipe(Wi({bufferSize:1,refCount:!1}))}}),K0=tt({}),q0=yt(()=>zs(h(Qr))),J0=yt(()=>!!h(yi).chrome),t_=yt(()=>{var n;return typeof((n=h(yi))==null?void 0:n.mozCancelFullScreen)<"u"}),e_=yt(()=>h(yi).location.host.endsWith("stackblitz.io")),i_=new dt("[TUI_MONTH_FORMATTER]");var n_=new dt("[TUI_SANITIZER]"),Bs=tt("textfield"),Fi=new dt("[TUI_TEXTFIELD_HOST]");function ye(n){return gt(Fi,n)}var o_=yt(()=>h(yi).matchMedia("(any-pointer: coarse)").matches),js=new dt("[TUI_VALUE_ACCESSOR]");var vd="tui_interactive_",Bo=(()=>{let e=class e{constructor(){this.focusVisible=!1,this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new q,this.focusVisibleChange=new q,this.autoIdString=`${vd}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocused(){return!this.computedDisabled&&(this.pseudoFocus??this.focused)}get computedFocusVisible(){return!this.computedDisabled&&(this.pseudoFocus??this.focusVisible)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}};e.autoId=0,e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:7,hostBindings:function(i,o){i&2&&(B("data-focused",o.pseudoFocus),N("_disabled",o.computedDisabled)("_focused",o.computedFocused)("_focus-visible",o.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}});let n=e;return n})(),Ve=(()=>{let e=class e extends Bo{constructor(){super(),this.ngControl=h(se,{optional:!0}),this.refresh$=new xt,this.onTouched=lo,this.onChange=lo,this.fallbackValue=this.getFallbackValue(),this.destroyRef=h(fe),this.cdr=h(Zt),this.valueTransformer=h(ga,{optional:!0}),this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){return this.previousInternalValue??this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){return this.rawValue??this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t;return((t=this.controlName)==null?void 0:t.toString())??null}get controlName(){var t,i;return((i=(t=this.ngControl)==null?void 0:t.name)==null?void 0:i.toString())??null}ngOnInit(){this.refresh$.pipe(Ne(0),he(null),it(()=>{var t;return(t=this.ngControl)==null?void 0:t.control}),re(Ut),zt(),Gi(t=>me(t.valueChanges,t.statusChanges)),ft(this.destroyRef)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=i=>{t(this.toControlValue(i))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){let i=this.ngControl instanceof Mt&&this.previousInternalValue===void 0?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(i))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,i){return t===i}get rawValue(){let{ngControl:t}=this;if(t===null)return;let i=t instanceof Mt&&this.previousInternalValue===void 0?t.viewModel:t.value;return this.fromControlValue(i)}safeNgControlData(t,i){return(this.ngControl&&t(this.ngControl))??i}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:4,hostBindings:function(i,o){i&2&&N("_readonly",o.readOnly)("_invalid",o.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[H]});let n=e;return n})();function ii(n){return gt(Ve,n)}var Pe=(()=>{let e=class e{constructor(){this.host=h(Ve,{optional:!0})}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var t;return((t=this.host.value)==null?void 0:t.toString())||""}process(t){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e});let n=e;return n})(),ie=(()=>{let e=class e{constructor(){this.change$=new xt}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,features:[be]});let n=e;return n})();var ni=(()=>{let e=class e extends Ve{getFallbackValue(){return null}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();var Wn=(()=>{let e=class e{constructor(){var t;this.el=bt(),this.host=h(_e,{self:!0}),this.external=h(Ca,{optional:!0}),this.host.driver.pipe(zt(),ft()).subscribe(i=>{var o;return(o=this.external)==null?void 0:o.tuiDropdownOpenChange.next(i)}),(t=this.external)==null||t.tuiDropdownOpenChange.pipe(zt(),ft()).subscribe(i=>{var o;i&&((o=ua({initial:this.el,root:this.el}))==null||o.focus()),this.host.toggle(i)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiDropdownOpenMonitor",""]],standalone:!0});let n=e;return n})();var jo=class{constructor(e,r,t,i,o,a,s,l,d,f,v,b,E){this.change$=e,this.options=r,this.legacyAppearance=t,this.appearanceDirective=i,this.cleanerDirective=o,this.customContentDirective=a,this.iconDirective=s,this.iconLeftDirective=l,this.labelOutsideDirective=d,this.sizeDirective=f,this.prefixDirective=v,this.postfixDirective=b,this.fillerDirective=E}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconStart(){return this.iconLeftDirective.iconStart}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}},Us={iconCleaner:"@tui.x",hintOnDisabled:!1},Uo=tt(Us);var $s=yt(()=>new Cd),Cd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.appearance=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[0,"tuiTextfieldAppearance","appearance"]},features:[k([gt($s,e)]),H]});let n=e;return n})(),$o=yt(()=>new yd),yd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.cleaner=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[0,"tuiTextfieldCleaner","cleaner"]},features:[k([gt($o,e)]),H]});let n=e;return n})(),Ws=yt(()=>new bd),bd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[0,"tuiTextfieldCustomContent","customContent"]},features:[k([gt(Ws,e)]),H]});let n=e;return n})(),Gs=yt(()=>new Ai),Ai=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.filler=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[0,"tuiTextfieldFiller","filler"]},features:[k([gt(Gs,e)]),H]});let n=e;return n})(),Ys=yt(()=>new Vi),Vi=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[0,"tuiTextfieldIcon","icon"]},features:[k([gt(Ys,e)]),H]});let n=e;return n})(),Qs=yt(()=>new xd),xd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconStart:[0,"tuiTextfieldIconLeft","iconStart"]},features:[k([gt(Qs,e)]),H]});let n=e;return n})(),Zs=yt(()=>new Td),Td=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.labelOutside=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[0,"tuiTextfieldLabelOutside","labelOutside"]},features:[k([gt(Zs,e)]),H]});let n=e;return n})(),Xs=yt(()=>new Wo),Wo=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.postfix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[0,"tuiTextfieldPostfix","postfix"]},features:[k([gt(Xs,e)]),H]});let n=e;return n})(),Ks=yt(()=>new Go),Go=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.prefix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[0,"tuiTextfieldPrefix","prefix"]},features:[k([gt(Ks,e)]),H]});let n=e;return n})(),ne=yt(()=>new Md),Md=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.size="l"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[0,"tuiTextfieldSize","size"]},features:[k([gt(ne,e)]),H]});let n=e;return n})(),Ie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})(),oi=new dt("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ri=[{provide:oi,deps:[Zt,Uo,Bs,$s,$o,Ws,Ys,Qs,Zs,ne,Ks,Xs,Gs],useFactory:(n,e,r,...t)=>{let i=me(...t.map(({change$:o})=>o||mr)).pipe($t(n),ft());return i.subscribe(),new jo(i,e,r,...t)}}];var Od={provide:js,deps:[[new gi,new vr,Fr]],useFactory:lr},ri=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiValueAccessor",""]],features:[k([Od])]});let n=e;return n})(),ai=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();var qs=(()=>{let e=class e{constructor(){this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(i,o){i&2&&(B("data-appearance",o.appearance)("data-state",o.interactiveState),N("_invalid",o.computedInvalid)("_focused",o.computedFocused)("_no-hover",o.noHover)("_no-active",o.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"}});let n=e;return n})(),Gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();function Pd(n,e){if(n&1&&x(0,"tui-icon",2),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Id(n,e){n&1&&Et(0)}var Dd={iconSmall:"@tui.chevron-down",iconLarge:"@tui.chevron-down"},Sd=tt(Dd);var Yo=(()=>{let e=class e{constructor(){this.control=h(Ve,{optional:!0}),this.textfieldSize=h(ne),this.options=h(Sd),this.directive=h(_e,{optional:!0})}get rotated(){var t;return((t=this.directive)==null?void 0:t.tuiDropdownOpen)||!!this.control.pseudoOpen||!1}get small(){return!la(this.textfieldSize.size)}get arrowIcon(){return this.small?this.options.iconSmall:this.options.iconLarge}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-arrow"]],hostVars:4,hostBindings:function(i,o){i&2&&N("_rotated",o.rotated)("_small",o.small)},standalone:!0,features:[P],decls:3,vars:4,consts:[[3,"icon",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"icon"]],template:function(i,o){i&1&&(_(0,Pd,1,1,"tui-icon",0)(1,Id,1,0,"ng-container",1),S(2,"async")),i&2&&(u("polymorpheusOutlet",o.arrowIcon),c(),u("ngIf",L(2,2,o.directive==null?null:o.directive.tuiDropdownOpenChange)))},dependencies:[ut,Y,$,W],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),Js=new gn(Yo),Ed={interactive:Js,disabled:Js},kd=tt(Ed);function Fd(n,e){if(n&1&&x(0,"tui-icon",3),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}var el=(()=>{let e=class e extends de{constructor(){super(...arguments),this.isMobile=h(Qe),this.describeId=""}get computedAppearance(){return this.appearance||""}stopOnMobile(t){var i;this.isMobile&&(t.preventDefault(),t.stopPropagation()),(i=this.driver$)==null||i.toggle()}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-tooltip"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.driver$=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("mousedown",function(s){return o.stopOnMobile(s)}),i&2&&B("data-appearance",o.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[H],decls:4,vars:11,consts:[["driver","tuiHintHover"],["automation-id","tui-tooltip__icon","tuiAppearance","icon",1,"t-tooltip-icon",3,"tuiAppearanceState","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["class","t-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-icon",3,"icon"]],template:function(i,o){if(i&1&&(p(0,"span",1,0),S(2,"async"),_(3,Fd,1,1,"tui-icon",2),m()),i&2){let a=V(1);u("tuiAppearanceState",L(2,9,a)?"hover":null)("tuiHint",o.content)("tuiHintAppearance",o.computedAppearance)("tuiHintContext",o.context)("tuiHintDescribe",o.describeId)("tuiHintDirection",o.direction)("tuiHintHideDelay",o.hideDelay)("tuiHintShowDelay",o.showDelay),c(3),u("polymorpheusOutlet",o.icon)}},dependencies:[W,ut,X,Tn,Mn,$],styles:["[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-text-negative)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),il=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W,Ma]});let n=e;return n})();var Vd=["pre"],Rd=["focusableElement"],Ld=[[["input"]],[["select"]],[["tuiContent"]],"*"],Nd=["input","select","tuiContent","*"],Qo=n=>({$implicit:n});function zd(n,e){n&1&&Et(0)}function Hd(n,e){n&1&&Et(0)}function Bd(n,e){n&1&&(p(0,"div",17),j(1,2),m())}function jd(n,e){if(n&1&&x(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Ud(n,e){if(n&1&&(p(0,"div",18),_(1,jd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconLeftContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function $d(n,e){if(n&1&&(p(0,"label",21),j(1,3),m()),n&2){let r=g();N("t-placeholder_raised",r.placeholderRaised),u("for",r.computedId)}}function Wd(n,e){if(n&1&&x(0,"tui-icon",24),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Gd(n,e){if(n&1&&(p(0,"div",22),_(1,Wd,1,1,"tui-icon",23),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.controller.customContent)}}function Yd(n,e){if(n&1&&x(0,"tui-icon",27),n&2){let r=e.polymorpheusOutlet;w("border","0.25rem solid transparent"),u("icon",r.toString())}}function Qd(n,e){if(n&1){let r=A();p(0,"span",25),O("click.stop",function(){C(r);let i=g();return y(i.clear())}),_(1,Yd,1,3,"tui-icon",26),m()}if(n&2){let r=g();c(),u("polymorpheusOutlet",r.iconCleaner||r.controller.options.iconCleaner)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function Zd(n,e){if(n&1&&x(0,"tui-tooltip",28),n&2){let r=g();u("content",r.hintOptions==null?null:r.hintOptions.content)("describeId",r.computedId)}}function Xd(n,e){if(n&1&&x(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Kd(n,e){if(n&1&&(p(0,"div",29),_(1,Xd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}var qd=["tuiTextfieldLegacy",""],Jd=(()=>{let e=class e{constructor(){this.textfield=h(Ho),this.fontsReady$=h(Hs),this.prefix$=new eo(""),this.pre$=me(this.fontsReady$,this.prefix$).pipe(Ne(0),re(()=>{var t;return!!((t=this.pre)!=null&&t.nativeElement.isConnected)}),it(()=>{var t;return((t=this.pre)==null?void 0:t.nativeElement.offsetWidth)||0}),zt())}ngDoCheck(){this.prefix$.next(this.prefix)}get isContextTable(){return this.textfield.appearance==="table"}get filler(){let{focused:t,placeholder:i,exampleText:o,value:a,textfield:s}=this;return i&&o?"":t?o||s.filler.slice(a.length):""}get value(){return this.textfield.value}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}get placeholder(){var t;return((t=this.textfield.nativeFocusableElement)==null?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-value-decoration"]],viewQuery:function(i,o){if(i&1&&ct(Vd,7,St),i&2){let a;Q(a=Z())&&(o.pre=a.first)}},hostVars:4,hostBindings:function(i,o){i&1&&O("animationstart",function(){return o.ngDoCheck()}),i&2&&N("_table",o.isContextTable)("_filler",o.filler)},decls:5,vars:4,consts:[["pre",""],[1,"t-prefix",3,"textContent"],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(i,o){i&1&&x(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),i&2&&(u("textContent",o.prefix),c(2),u("textContent",o.value),c(),u("textContent",o.filler),c(),u("textContent",o.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-tertiary);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-primary)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']});let n=e;return n})(),tp={s:1.25,m:1.75,l:2.25},Vt=(()=>{let e=class e extends Bo{constructor(){super(...arguments),this.legacyOptions=h(Uo),this.el=bt(),this.options=h(Xa),this.controller=h(oi),this.hintOptions=h(de,{optional:!0}),this.autofilled=!1,this.editable=!0,this.iconCleaner=this.legacyOptions.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.value="",this.valueChange=new q}get prefix(){return this.controller.prefix}get postfix(){return this.controller.postfix}get filler(){return this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return pa(this.el)}get appearance(){return this.options.appearance()==="table"?"table":this.controller.appearance}onModelChange(t){this.updateValue(t)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!((t=this.content)!=null&&t.length)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Ns(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var o;let i=(((o=this.nativeFocusableElement)==null?void 0:o.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!i}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconStart}get showHint(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&(this.legacyOptions.hintOnDisabled||!this.computedDisabled)}get name(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return hi(t,"scroll").pipe(it(()=>-1*Math.max(t.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){let{nativeFocusableElement:i}=this;!i||t.target===i||(t.preventDefault(),i.focus())}onAutofilled(t){this.updateAutofilled(t)}detectRetargetFromLabel(t){zr(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return tp[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.content=s)}},viewQuery:function(i,o){if(i&1&&ct(Rd,5),i&2){let a;Q(a=Z())&&(o.focusableElement=a.first)}},hostVars:15,hostBindings:function(i,o){i&1&&O("focusin",function(){return o.onFocused(!0)})("focusout",function(){return o.onFocused(!1)}),i&2&&(B("data-size",o.size),w("--border-start",o.borderStart,"rem")("--border-end",o.borderEnd,"rem"),N("_autofilled",o.autofilled)("_label-outside",o.options.appearance()==="table"||o.controller.labelOutside)("_readonly",o.readOnly)("_invalid",o.computedInvalid)("_hidden",o.inputHidden))},inputs:{editable:"editable",iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},features:[k([we(e),Ri]),H],ngContentSelectors:Nd,decls:24,vars:37,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"ngModelChange","disabled","id","ngModel","readOnly","tabIndex"],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["tuiAppearance","icon",3,"icon",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiAppearance","icon",3,"icon"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"icon"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"icon","border",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"icon"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,o){if(i&1){let a=A();ht(Ld),_(0,zd,1,0,"ng-container",2),S(1,"async"),_(2,Hd,1,0,"ng-container",2),S(3,"async"),p(4,"div",3),S(5,"async"),O("click.prevent.silent",function(l){return C(a),y(o.detectRetargetFromLabel(l))})("mousedown",function(l){return C(a),y(o.onMouseDown(l))}),j(6),j(7,1),p(8,"input",4,0),O("ngModelChange",function(l){return C(a),y(o.onModelChange(l))}),m(),_(10,Bd,2,0,"div",5),p(11,"div",6),_(12,Ud,2,4,"div",7),p(13,"div",8),_(14,$d,2,3,"label",9),p(15,"div",10),x(16,"tui-value-decoration",11,1),S(18,"async"),m()(),p(19,"div",12),_(20,Gd,2,1,"div",13)(21,Qd,2,4,"span",14)(22,Zd,1,2,"tui-tooltip",15)(23,Kd,2,4,"div",16),m()()()}if(i&2){let a=V(9),s=V(17);u("ngIf",L(1,29,o.content==null?null:o.content.changes)),c(2),u("ngIf",L(3,31,o.hintOptions==null?null:o.hintOptions.change$)),c(2),w("--text-indent",L(5,33,s.pre$),"px"),u("active",o.pseudoActive)("appearance",o.appearance)("disabled",o.disabled)("focus",o.computedFocused)("hover",o.pseudoHover)("invalid",o.computedInvalid)("readOnly",o.readOnly),c(4),u("disabled",o.computedDisabled)("id",o.id)("ngModel",o.value)("readOnly",o.readOnly||!o.editable)("tabIndex",o.computedFocusable?0:-1),B("aria-invalid",o.computedInvalid)("name",o.name),c(2),u("ngIf",o.inputHidden),c(2),u("ngIf",o.iconLeftContent),c(2),u("ngIf",o.hasPlaceholder),c(2),w("text-indent",L(18,35,o.getIndent$(a)),"px"),N("t-has-value",o.value),c(4),u("ngIf",o.hasCustomContent),c(),u("ngIf",o.hasCleaner),c(),u("ngIf",o.showHint),c(),u("ngIf",o.iconContent)}},dependencies:[Y,Ue,Ft,Mt,ut,qs,el,W,X,Jd,$],styles:['[_nghost-%COMP%]{position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){.t-input[_ngcontent-%COMP%]:active{font-size:1rem}}.t-input[inputMode=none][_ngcontent-%COMP%]{caret-color:transparent}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-text-negative)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-tertiary)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border:.25rem solid transparent}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.125rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size=s]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}[data-size=s][_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0});let n=e;return et([ot],n.prototype,"getIndent$",null),n})(),li=(()=>{let e=class e extends Pe{constructor(){super(...arguments),this.host=h(Vt)}get readOnly(){return this.host.readOnly||!this.host.editable}onValueChange(t){this.host.onModelChange(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-primitive-textfield"]],features:[k([ye(e)]),H]});let n=e;return n})(),nl=(()=>{let e=class e{constructor(){this.el=bt(),this.idService=h(vn),this.controller=h(oi),this.host=h(Fi),this.host.process(this.el)}get id(){return this.el.id||this.idService.generate()}get inputMode(){return this.el.inputMode||this.host.inputMode}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","tuiTextfieldLegacy",""],["textarea","tuiTextfieldLegacy",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(s){return o.host.onValueChange(s.target.value)}),i&2&&(Ht("tabIndex",o.host.focusable?0:-1)("readOnly",o.host.readOnly)("value",o.host.value),B("id",o.id)("inputMode",o.inputMode)("aria-invalid",o.host.invalid)("disabled",o.host.disabled||null))},features:[k([Ri])],attrs:qd,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){[_nghost-%COMP%]:active{font-size:1rem}}[inputMode=none][_nghost-%COMP%]{caret-color:transparent}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0});let n=e;return n})(),De=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,At,Gn,il,W]});let n=e;return n})();var ep=["*",[["input"]],[["tuiContent"]]],ip=["*","input","tuiContent"];function np(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function op(n,e){if(n&1&&(p(0,"div",6),_(1,np,2,1,"ng-container",7),m()),n&2){g();let r=V(9);c(),u("polymorpheusOutlet",r)}}function rp(n,e){if(n&1){let r=A();p(0,"section",8)(1,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),T(2," + "),m(),p(3,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(-i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),T(4," - "),m()()}if(n&2){let r=g(),t=V(1);c(),u("appearance",t.appearance)("disabled",!r.canIncrement)("iconStart",r.icons.up),c(2),u("appearance",t.appearance)("disabled",!r.canDecrement)("iconStart",r.icons.down)}}function ap(n,e){n&1&&Et(0)}function sp(n,e){n&1&&j(0,2)}var rl={icons:{up:"@tui.plus",down:"@tui.minus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0},al=tt(rl);function sl(n){return Xt(al,n,rl)}var lp=18,cp=new dt(""),ll=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isIOS=h(ma),this.textfieldSize=h(ne),this.options=h(al),this.unfinishedValue="",this.polymorpheusValueContent=ge,this.valueTransformer=h(cp,{optional:!0}),this.numberFormat=ea,this.controller=h(oi),this.numberFormat$=h(ia).pipe($t(this.cdr),ft()).subscribe(t=>{this.numberFormat=t}),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":this.precision?"decimal":"numeric"}get calculatedMaxLength(){let i=!!this.precision&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0,o=this.numberFormat.thousandSeparator.repeat(5).length;return lp+i+o}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}onValueChange(t){let i=Ae(t,this.numberFormat.decimalSeparator);if(this.unfinishedValue=null,Number.isNaN(i)){this.value=null;return}if(this.isNativeValueNotFinished){this.unfinishedValue=t,this.cdr.markForCheck();return}ithis.computedMax||(this.value=i)}writeValue(t){super.writeValue(t),this.nativeValue=this.formattedValue}get size(){return this.textfieldSize.size}get icons(){return this.options.icons}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get isNegativeAllowed(){return this.computedMin<0}get formattedValue(){return this.value!==null?this.getFormattedValue(this.value||0):""}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax:t[d.length,rt.length-f.length])]})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-number"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.polymorpheusValueContent=s)}},viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("keydown.arrowDown",function(){return o.onArrow(-o.step)})("keydown.arrowUp",function(){return o.onArrow(o.step)}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",step:"step"},features:[k([we(e),ii(e),Ri]),H],ngContentSelectors:ip,decls:10,vars:14,consts:[["textfield",""],["valueContent",""],["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value"],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tabindex","-1","tuiIconButton","","type","button",1,"t-button",3,"click.prevent","mousedown.prevent","appearance","disabled","iconStart"]],template:function(i,o){if(i&1){let a=A();ht(ep),p(0,"tui-primitive-textfield",2,0),O("focusedChange",function(l){return C(a),y(o.onFocused(l))})("valueChange",function(l){return C(a),y(o.onValueChange(l))}),j(2),j(3,1,["ngProjectAs","input",5,["input"]]),_(4,op,2,1,"div",3),m(),_(5,rp,5,6,"section",4)(6,ap,1,0,"ng-container",5),S(7,"async"),_(8,sp,1,0,"ng-template",null,1,J)}i&2&&(u("disabled",o.computedDisabled)("focusable",o.focusable)("invalid",o.computedInvalid)("maskito",o.mask)("pseudoActive",o.pseudoActive)("pseudoFocus",o.computedFocused)("pseudoHover",o.pseudoHover)("readOnly",o.readOnly)("value",o.computedValue),c(4),u("ngIf",o.polymorpheusValueContent.length),c(),u("ngIf",o.step),c(),u("ngIf",L(7,12,o.polymorpheusValueContent.changes)))},dependencies:[Y,Je,Vt,li,Go,Wo,ut,ri,ue,$],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMin",null),et([ot],n.prototype,"computeMax",null),et([ot],n.prototype,"calculateMask",null),n})(),cl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-number"]],features:[k([ye(e)]),H]});let n=e;return n})(),ul=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,ai]});let n=e;return n})();function up(n,e){if(n&1&&x(0,"tui-icon",3),n&2){let r=g();u("icon",r.icons.check)("tuiScrollIntoView",!0)}}function dp(n,e){n&1&&x(0,"span",4)}var pp=(()=>{let e=class e{constructor(){this.host=h(ya),this.el=bt(),this.changeDetection$=new xt,this.abstractControl=h(Ve,{optional:!0}),this.control=h(se),this.option=h(qt),this.dataList=h(ve,{optional:!0}),this.icons=h(un),this.context=h(ra),this.selected$=me(this.changeDetection$,this.control.valueChanges||Bi,ho(this.el,"animationstart")).pipe(he(null),it(()=>this.selected),zt())}ngOnInit(){Promise.resolve().then(()=>{var t,i;Ut(this.option.value)&&!this.option.disabled&&((i=(t=this.host).checkOption)==null||i.call(t,this.option.value))})}ngDoCheck(){this.changeDetection$.next()}get value(){var t;return((t=this.abstractControl)==null?void 0:t.value)??this.control.value}get matcher(){return this.host.identityMatcher||Br}get selected(){return Ut(this.option.value)&&Ut(this.value)&&this.matcher(this.value,this.option.value)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[["dummy",""],[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"icon","tuiScrollIntoView",4,"ngIf","ngIfElse"],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"icon","tuiScrollIntoView"],[1,"t-dummy"]],template:function(i,o){if(i&1&&(Et(0,1),_(1,up,1,2,"tui-icon",2),S(2,"async"),_(3,dp,1,0,"ng-template",null,0,J)),i&2){let a=V(4);u("ngTemplateOutlet",o.context.$implicit),c(),u("ngIf",L(2,3,o.selected$))("ngIfElse",a)}},dependencies:[Y,Ji,yn,W,$],styles:['@keyframes _ngcontent-%COMP%_retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:_ngcontent-%COMP%_retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin-inline-start:auto;width:1.75rem;border:.25rem solid transparent;border-inline-start-width:.5rem}tui-data-list[data-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.375rem}tui-data-list[data-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0});let n=e;return n})(),mp=new gn(pp),dl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W]});let n=e;return n})();var hp={valueContent:""},qC=tt(hp);var ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,dl,Yo,Gn,Ie,Ze,ve,qt,Po,ds]});let n=e;return n})();var gp=["*",[["input"]]],_p=["*","input"],vp=n=>({$implicit:n});function Cp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",5),O("focusedChange",function(i){C(r);let o=g();return y(o.onFocused(i))})("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("focusable",t.computedFocusable)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoFocus",t.pseudoFocus)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue)}}function yp(n,e){if(n&1){let r=A();p(0,"tui-icon",8),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function bp(n,e){n&1&&x(0,"input",9)}function xp(n,e){if(n&1&&_(0,yp,1,5,"tui-icon",6)(1,bp,1,0,"input",7),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(3,vp,r.size)),c(),u("ngIf",r.nativePicker)}}function Tp(n,e){if(n&1){let r=A();p(0,"div",12),O("mousedown.prevent.silent",function(){return C(r),y(0)}),p(1,"button",13),O("click",function(){C(r);let i=g(2);return y(i.onDayClick(i.items[0].day))}),T(2),m()()}if(n&2){let r=g(2);c(2),F(" ",r.items[0]," ")}}function Mp(n,e){if(n&1){let r=A();p(0,"tui-calendar",10),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m(),_(1,Tp,3,1,"div",11)}if(n&2){let r=g();u("disabledItemHandler",r.disabledItemHandler)("markerHandler",r.markerHandler)("max",r.computedMax)("min",r.computedMin)("month",r.computedActiveYearMonth)("value",r.value),c(),u("ngIf",r.items.length===1)}}var Zo=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}get format(){return this.host.dateFormat}onValueChange(t){t||(this.host.nativeValue=""),this.host.onValueChange(t)}process(t){t.inputMode="numeric"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date",3,"multiple",""]],features:[k([ye(e)]),H]});let n=e;return n})(),Op=(()=>{let e=class e{constructor(){this.host=h(Fi)}get value(){return this.host.value.length===Ye?G.normalizeParse(this.host.value,this.host.format.mode).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?G.normalizeParse(t,"YMD").toString(this.host.format.mode):"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(i,o){i&1&&O("change",function(s){return o.onChange(s.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),i&2&&Ht("tabIndex",-1)("value",o.value)("max",o.max)("min",o.min)},features:[k([ye(Zo)])]});let n=e;return n})(),hl=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.options=h(In),this.textfieldSize=h(ne),this.mobileCalendar=h(Dn,{optional:!0}),this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.defaultActiveYearMonth=Ct.currentLocal(),this.dateFormat=dn,this.open=!1,this.dateTexts$=h(Pn),this.valueTransformer=h(Co,{optional:!0}),this.isMobile=h(Qe),this.filler$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t})}get computedMin(){return this.min??this.options.min}get computedMax(){return this.max??this.options.max}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get computedValue(){let{value:t,nativeValue:i,activeItem:o}=this;return o?String(o):t?t.toString(this.dateFormat.mode,this.dateFormat.separator):i}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length!==Ye?null:G.normalizeParse(t,this.dateFormat.mode)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get nativePicker(){return this.options.nativePicker&&!!this.mobileCalendar&&this.isMobile}get calendarIcon(){return this.options.icon}get computedActiveYearMonth(){var t;return this.items[0]&&((t=this.value)!=null&&t.daySame(this.items[0].day))?this.items[0].displayDay:this.month||this.value||Wr(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get computedMask(){return this.activeItem?te:this.computeMaskOptions(this.dateFormat.mode,this.dateFormat.separator,this.computedMin,this.computedMax)}get activeItem(){let{value:t}=this;return t&&this.items.find(i=>i.day.daySame(t))||null}onClick(){!this.isMobile&&this.interactive&&(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onIconClick(){this.isMobile&&this.interactive&&(this.open=!0)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}computeMaskOptions(t,i,o,a){return Ss({separator:i,mode:$n[t],min:o.toLocalNativeDate(),max:a.toLocalNativeDate()})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-date",3,"multiple",""]],viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[k([we(e),bn(e),ii(e),wn(Co),Sn]),H],ngContentSelectors:_p,decls:7,vars:7,consts:[["iconContent",""],["dropdown","polymorpheus"],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],[3,"polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar",3,"dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","month","value"],["class","t-button",3,"mousedown.prevent.silent",4,"ngIf"],[1,"t-button",3,"mousedown.prevent.silent"],["tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();ht(gp),p(0,"div",2),O("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Cp,3,11,"tui-primitive-textfield",3),S(2,"async"),_(3,xp,2,5,"ng-template",null,0,J)(5,Mp,2,7,"ng-template",4,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive&&!o.nativePicker)("tuiDropdownOpen",o.open&&o.interactive&&!o.nativePicker),c(),u("tuiLet",L(2,5,o.filler$)),c(4),u("polymorpheus",o.type)}},dependencies:[Y,Je,ut,aa,Ke,kn,Vt,li,ri,Fe,Vi,Ai,Wn,X,W,Ti,_e,Op,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMaskOptions",null),n})(),fl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,Ke,De,ai,Ie,W,Ze]});let n=e;return n})();var wp=["*",[["input"]]],Pp=["*","input"],gl=n=>({$implicit:n});function Ip(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Dp(n,e){if(n&1&&(p(0,"div",6),_(1,Ip,2,1,"ng-container",7),m()),n&2){let r=g(2);c(),u("polymorpheusOutlet",r.computedContent)("polymorpheusOutletContext",Tt(2,gl,r.value))}}function Sp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",4),O("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),_(3,Dp,2,4,"div",5),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoActive",t.pseudoActive)("pseudoFocus",t.innerPseudoFocused)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedRangeFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue),c(3),u("ngIf",t.showValueTemplate)}}function Ep(n,e){if(n&1){let r=A();p(0,"tui-icon",9),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function kp(n,e){if(n&1&&_(0,Ep,1,5,"tui-icon",8),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(2,gl,r.size))}}function Fp(n,e){if(n&1){let r=A();p(0,"tui-calendar-range",10),O("valueChange",function(i){C(r);let o=g();return y(o.onRangeChange(i))}),m()}if(n&2){let r=g();u("defaultViewedMonth",r.defaultViewedMonth)("disabledItemHandler",r.disabledItemHandler)("items",r.items)("markerHandler",r.markerHandler)("max",r.max)("maxLength",r.maxLength)("min",r.min)("minLength",r.minLength)("value",r.value)}}var _l=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isMobile=h(Qe),this.mobileCalendar=h(Dn,{optional:!0}),this.options=h(In),this.textfieldSize=h(ne),this.dateTexts$=h(Pn),this.valueTransformer=h(yo,{optional:!0}),this.dateFiller$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat=dn,this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t}),this.selectedActivePeriod=null,this.disabledItemHandler=ce,this.markerHandler=null,this.defaultViewedMonth=Ct.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get computedExampleText(){var t,i;return this.items.length&&((i=(t=this.textfield)==null?void 0:t.nativeFocusableElement)==null?void 0:i.placeholder)||""}get computedValue(){let{value:t,nativeValue:i,activePeriod:o}=this;return o?String(o):t?t.getFormattedDayRange(this.dateFormat.mode,this.dateFormat.separator):i}onClick(){!this.isMobile&&this.interactive&&this.toggle()}ngAfterViewChecked(){this.calendarRange&&(this.calendarRange.selectedActivePeriod=this.selectedActivePeriod,this.calendarRange.cdr.markForCheck())}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length===Gr?Ot.normalizeParse(t,this.dateFormat.mode):null,this.value||(this.selectedActivePeriod=null)}onRangeChange(t){var i;this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t,this.selectedActivePeriod=((i=this.calendarRange)==null?void 0:i.selectedActivePeriod)??null}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get computedMask(){return this.activePeriod?te:this.calculateMask(this.dateFormat.mode,this.dateFormat.separator,this.min,this.max,this.minLength,this.maxLength)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}get showValueTemplate(){return Ut(this.value)&&!this.focused}get computedContent(){var t;return((t=this.activePeriod)==null?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return this.pseudoFocus===!1?!1:this.open||this.computedFocused?!0:null}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.isMobile&&this.interactive&&this.onOpenChange(!0)}onOpenChange(t){this.open=t}onActiveZone(t){this.updateFocused(t),!t&&!this.itemSelected&&(this.nativeValue.length===Ye||this.nativeValue.length===Ye+po.length)&&(this.value=Ot.normalizeParse(this.nativeValue,this.dateFormat.mode))}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}get itemSelected(){return this.items.findIndex(t=>String(t)===this.nativeValue)!==-1}calculateMask(t,i,o,a,s,l){return Es({dateSeparator:i,mode:$n[t],min:(o||Nt).toLocalNativeDate(),max:(a||Kt).toLocalNativeDate(),minLength:s||{},maxLength:l||{}})}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${po}${t}`}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-date-range"]],viewQuery:function(i,o){if(i&1&&(ct(Vt,5),ct(Di,5)),i&2){let a;Q(a=Z())&&(o.textfield=a.first),Q(a=Z())&&(o.calendarRange=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[k([we(e),bn(e),ii(e),wn(yo),Sn]),H],ngContentSelectors:Pp,decls:7,vars:6,consts:[["iconContent",""],["dropdown",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiActiveZoneChange","tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],[3,"valueChange","defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value"]],template:function(i,o){if(i&1){let a=A();ht(wp),p(0,"div",2),O("tuiActiveZoneChange",function(l){return C(a),y(o.onActiveZone(l))})("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Sp,4,12,"tui-primitive-textfield",3),S(2,"async"),_(3,kp,1,4,"ng-template",null,0,J)(5,Fp,1,9,"ng-template",null,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive)("tuiDropdownOpen",o.open&&o.interactive),c(),u("tuiLet",L(2,4,o.dateFiller$))}},dependencies:[Y,Je,Fe,ut,Vt,li,Vi,Ai,Di,ri,Wn,W,X,Ti,_e,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateMask",null),n})(),vl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}process(t){t.inputMode="numeric"}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.placeholder=this.host.computedExampleText)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date-range"]],features:[k([ye(e)]),H]});let n=e;return n})(),Cl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,Di,ai,W,Ze]});let n=e;return n})();var Ap=[{id:"1",date:"17.07.2024"}],yl=(()=>{let e=class e{constructor(){this.progress$=Ui(300,200).pipe(it(t=>t+30),he(30),gr(t=>t<=100)),this.schedule=Ap}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Rp(n,e){if(n&1&&(p(0,"tui-input-date",5),T(1," cleaning time "),x(2,"input",8),m()),n&2){let r=e.$implicit,t=e.$index,i=g();u("ariaValueMin",i.now)("formControl",r)("min",i.now)("readOnly",t==0)}}function Lp(n,e){if(n&1&&(p(0,"label",9)(1,"span",10),T(2),m(),x(3,"tui-progress-circle",11),S(4,"async"),m()),n&2){let r=e.ngIf,t=g();w("margin-bottom","auto"),c(2),F("",r,"%"),c(),w("color",L(4,7,t.color$)),u("max",100)("value",r)}}var xl=(()=>{let e=class e{constructor(){this.cleaningService=h(yl),this.now=G.currentLocal(),this.forms=new We(this.cleaningService.schedule.map(t=>new Ee(new G(G.parseRawDateString(t.date).year,G.parseRawDateString(t.date).month,G.parseRawDateString(t.date).day)))),this.color$=this.cleaningService.progress$.pipe(it(t=>t<33?"var(--tui-status-negative)":t<66?"var(--tui-status-warning)":"var(--tui-background-accent-1)"))}addNew(){this.forms.push(new Ee)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-cleaning"]],standalone:!0,features:[P],decls:12,vars:5,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"timetable"],[1,"list"],[1,"input-date",3,"ariaValueMin","formControl","min","readOnly"],["tuiProgressLabel","",3,"margin-bottom",4,"ngIf"],["appearance","primary","tuiButton","",1,"add-button",3,"click"],["tuiTextfieldLegacy",""],["tuiProgressLabel",""],[1,"percent"],["size","s",3,"max","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Cleaning schedule "),m()(),p(4,"div",3)(5,"div",4),Be(6,Rp,3,4,"tui-input-date",5,He),m(),_(8,Lp,5,9,"label",6),S(9,"async"),m(),p(10,"button",7),O("click",function(){return o.addNew()}),T(11," Add "),m()()),i&2&&(c(2),w("text-align","center"),c(4),je(o.forms.controls),c(2),u("ngIf",L(9,3,o.cleaningService.progress$)))},dependencies:[$,z,Y,At,Ft,Me,$e,X,ue,_t,fl,hl,Zo,nl,Rs,Ls],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;height:100%;background-color:var(--tui-background-base)}.add-button[_ngcontent-%COMP%]{max-width:7rem}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.percent[_ngcontent-%COMP%]{font:var(--tui-font-text-m)}tui-progress-circle[_ngcontent-%COMP%]{transition:color 2s}.input-date[_ngcontent-%COMP%]{width:10rem}.timetable[_ngcontent-%COMP%]{display:flex;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Np=[{name:"Room temperature \u0421\xB0",value:32},{name:"Water temperature",value:0},{name:"Air humidity, %",value:10}],Tl=(()=>{let e=class e{constructor(){this.climateControlData=Np}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zp(n,e){if(n&1){let r=A();p(0,"tui-input-number",5),jt("ngModelChange",function(i){let o=C(r).$implicit;return kt(o.value,i)||(o.value=i),y(i)}),T(1),m()}if(n&2){let r=e.$implicit;Bt("ngModel",r.value),c(),F(" ",r.name," ")}}var Ml=(()=>{let e=class e{constructor(){this.climateControlService=h(Tl).climateControlData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-climate-control"]],standalone:!0,features:[k([na({precision:0}),sl({step:1})]),P],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"group"],[3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Climate control "),m()(),p(4,"div",3),_(5,zp,2,2,"tui-input-number",4),m()()),i&2&&(c(2),w("text-align","center"),c(3),u("ngForOf",o.climateControlService))},dependencies:[z,nt,At,Ft,Mt,X,_t,ul,ll,cl],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;background-color:var(--tui-background-base);height:100%}.card[tuiCardLarge][_ngcontent-%COMP%] .group[_ngcontent-%COMP%]:last-child{display:flex;margin-top:0;flex-direction:column;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Xo;try{Xo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Xo=!1}var Li=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Er(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Xo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(Yt(xr))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var oe=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(oe||{}),Xn,Re;function Ol(){if(Re==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Re=!1,Re;if("scrollBehavior"in document.documentElement.style)Re=!0;else{let n=Element.prototype.scrollTo;n?Re=!/\{\s*\[native code\]\s*\}/.test(n.toString()):Re=!1}}return Re}function ci(){if(typeof document!="object"||!document)return oe.NORMAL;if(Xn==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",n.appendChild(r),document.body.appendChild(n),Xn=oe.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Xn=n.scrollLeft===0?oe.NEGATED:oe.INVERTED),n.remove()}return Xn}var Bp=new dt("cdk-dir-doc",{providedIn:"root",factory:jp});function jp(){return h(Se)}var Up=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function $p(n){let e=(n==null?void 0:n.toLowerCase())||"";return e==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Up.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Kn=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new q,t){let i=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=$p(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(Yt(Bp,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ko=class{};function wl(n){return n&&typeof n.connect=="function"&&!(n instanceof cr)}var qn=class extends Ko{constructor(e){super(),this._data=e}connect(){return ji(this._data)?this._data:Rt(this._data)}disconnect(){}},Ni=function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n}(Ni||{}),qo=new dt("_ViewRepeater");var Jn=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,r,t,i,o){e.forEachOperation((a,s,l)=>{let d,f;if(a.previousIndex==null){let v=()=>t(a,s,l);d=this._insertView(v,l,r,i(a)),f=d?Ni.INSERTED:Ni.REPLACED}else l==null?(this._detachAndCacheView(s,r),f=Ni.REMOVED):(d=this._moveView(s,l,r,i(a)),f=Ni.MOVED);o&&o({context:d==null?void 0:d.context,operation:f,record:a})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,r,t,i){let o=this._insertViewFromCache(r,t);if(o){o.context.$implicit=i;return}let a=e();return t.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(e,r){let t=r.detach(e);this._maybeCacheView(t,r)}_moveView(e,r,t,i){let o=t.get(e);return t.move(o,r),o.context.$implicit=i,o}_maybeCacheView(e,r){if(this._viewCache.length0?o/this._itemSize:0;if(r.end>i){let l=Math.ceil(t/this._itemSize),d=Math.max(0,Math.min(a,i-l));a!=d&&(a=d,o=d*this._itemSize,r.start=Math.floor(a)),r.end=Math.max(0,Math.min(i,r.start+l))}let s=o-r.start*this._itemSize;if(s0&&(r.end=Math.min(i,r.end+d),r.start=Math.max(0,Math.floor(a-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(r),this._viewport.setRenderedContentOffset(this._itemSize*r.start),this._scrolledIndexChange.next(Math.floor(a))}};function Qp(n){return n._scrollStrategy}var Sl=(()=>{let e=class e{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Jo(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Oi(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Oi(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Oi(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[k([{provide:Dl,useFactory:Qp,deps:[Yi(()=>e)]}]),be]});let n=e;return n})(),Zp=20,tr=(()=>{let e=class e{constructor(t,i,o){this._ngZone=t,this._platform=i,this._scrolled=new xt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Zp){return this._platform.isBrowser?new Hi(i=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe($i(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Rt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(re(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let o=Qa(i),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return hi(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(Yt(Dt),Yt(Li),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),El=(()=>{let e=class e{constructor(t,i,o,a){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=o,this.dir=a,this._destroyed=new xt,this._elementScrolled=new Hi(s=>this.ngZone.runOutsideAngular(()=>hi(this.elementRef.nativeElement,"scroll").pipe(fi(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),o&&ci()!=oe.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),ci()==oe.INVERTED?t.left=t.right:ci()==oe.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;Ol()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:i:t=="end"&&(t=s?i:o),s&&ci()==oe.INVERTED?t==i?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&ci()==oe.NEGATED?t==i?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==i?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),Xp=20,Kp=(()=>{let e=class e{constructor(t,i,o){this._platform=t,this._change=new xt,this._changeListener=a=>{this._change.next(a)},this._document=o,i.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=Xp){return t>0?this._change.pipe($i(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(Yt(Li),Yt(Dt),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Pl=new dt("VIRTUAL_SCROLLABLE"),qp=(()=>{let e=class e extends El{constructor(t,i,o,a){super(t,i,o,a)}measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();function Jp(n,e){return n.start==e.start&&n.end==e.end}var tm=typeof requestAnimationFrame<"u"?dr:ur,er=(()=>{let e=class e extends qp{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,i,o,a,s,l,d,f){super(t,l,o,s),this.elementRef=t,this._changeDetectorRef=i,this._scrollStrategy=a,this.scrollable=f,this._platform=h(Li),this._detachedSubject=new xt,this._renderedRangeSubject=new xt,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new Hi(v=>this._scrollStrategy.scrolledIndexChange.subscribe(b=>Promise.resolve().then(()=>this.ngZone.run(()=>v.next(b))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=sr.EMPTY,this._injector=h(br),this._isDestroyed=!1,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(he(null),$i(0,tm),fi(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(fi(this._detachedSubject)).subscribe(i=>{let o=i.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){Jp(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let o=this.dir&&this.dir.value=="rtl",a=this.orientation=="horizontal",s=a?"X":"Y",d=`translate${s}(${Number((a&&o?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(d+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,i="auto"){let o={behavior:i};this.orientation==="horizontal"?o.start=t:o.top=t,this.scrollable.scrollTo(o)}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i)}measureScrollOffset(t){let i;return this.scrollable==this?i=o=>super.measureScrollOffset(o):i=o=>this.scrollable.measureScrollOffset(o),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var f;let i,o="left",a="right",s=((f=this.dir)==null?void 0:f.value)=="rtl";t=="start"?i=s?a:o:t=="end"?i=s?o:a:t?i=t:i=this.orientation==="horizontal"?"left":"top";let l=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-l}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,Mr(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(Zt),lt(Dt),lt(Dl,8),lt(Kn,8),lt(tr),lt(Kp),lt(Pl,8))},e.\u0275cmp=M({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,o){if(i&1&&ct(Gp,7),i&2){let a;Q(a=Z())&&(o._contentWrapper=a.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,o){i&2&&N("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Dr]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[k([{provide:El,useFactory:(t,i)=>t||i,deps:[[new gi,new _r(Pl)],e]}]),no,H,P],ngContentSelectors:Yp,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,o){i&1&&(ht(),p(0,"div",1,0),j(2),m(),x(3,"div",2)),i&2&&(c(3),w("width",o._totalContentWidth)("height",o._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let n=e;return n})();function Il(n,e,r){let t=r;if(!t.getBoundingClientRect)return 0;let i=t.getBoundingClientRect();return n==="horizontal"?e==="start"?i.left:i.right:e==="start"?i.top:i.bottom}var kl=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,wl(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new qn(ji(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(i,o)=>t(i+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Oi(t)}constructor(t,i,o,a,s,l){this._viewContainerRef=t,this._template=i,this._differs=o,this._viewRepeater=a,this._viewport=s,this.viewChange=new xt,this._dataSourceChanges=new xt,this.dataStream=this._dataSourceChanges.pipe(he(null),fr(),Gi(([d,f])=>this._changeDataSource(d,f)),Wi(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new xt,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(fi(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let o=t.start-this._renderedRange.start,a=t.end-t.start,s,l;for(let d=0;d-1;d--){let f=this._viewContainerRef.get(d+o);if(f&&f.rootNodes.length){l=f.rootNodes[f.rootNodes.length-1];break}}return s&&l?Il(i,"end",l)-Il(i,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=!0)}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Rt()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=t,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(a,s,l)=>this._getEmbeddedViewArgs(a,l),a=>a.item),t.forEachIdentityChange(a=>{let s=this._viewContainerRef.get(a.currentIndex);s.context.$implicit=a.item});let i=this._data.length,o=this._viewContainerRef.length;for(;o--;){let a=this._viewContainerRef.get(o);a.context.index=this._renderedRange.start+o,a.context.count=i,this._updateComputedContextProperties(a.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,i){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}};e.\u0275fac=function(i){return new(i||e)(lt(Or),lt(Qi),lt(Ir),lt(qo),lt(er,4),lt(Dt))},e.\u0275dir=D({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[k([{provide:qo,useClass:Jn}])]});let n=e;return n})();var ui=[{name:"Misha Zhem",img:"./example.png",status:"online"},{name:"Oleg B.",img:"OB",status:"online"},{name:"Andrey M.",img:"AM",status:"online"},{name:"Misha Zhem3",img:"./example.png",status:"online"},{name:"Vladimir D.",img:"VD",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Misha Zhem2",img:"./example.png",status:"online"},{name:"Misha Zhem4",img:"./example.png",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Andrey M.",img:"AM",status:"online"}],di=[{name:"Misha Zhem4",img:"./example.png",status:"online",last:"9:12 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1},{name:"Misha Zhem2",img:"./example.png",status:"online",last:"8:45 PM",took:!1},{name:"Misha Zhem",img:"./example.png",status:"online",last:"1:10 PM",took:!1},{name:"Misha Zhem3",img:"./example.png",status:"online",last:"11:05 AM",took:!0},{name:"Gleb H.",img:"GH",status:"online",last:"1:15 AM",took:!1},{name:"Vladimir D.",img:"VD",status:"online",last:"3:15 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1}],em={contacts:ui.concat(ui,ui,ui,ui,ui),recent:di.concat(di,di,di,di,di)},Fl=(()=>{let e=class e{constructor(){this.contactsData=em}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function im(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){let i=C(r).$index,o=g();return y(o.activeTab=i)}),p(1,"header",4)(2,"h2",5),T(3),m()()()}if(n&2){let r=e.$implicit;c(2),w("text-align","center"),c(),F(" ",r," ")}}function nm(n,e){if(n&1&&(p(0,"div",8),x(1,"tui-avatar",9),S(2,"tuiAutoColor"),p(3,"div",5),T(4),p(5,"div",10),T(6),m()(),p(7,"button",11),T(8," Call "),m()()),n&2){let r=e.$implicit;c(),w("background",L(2,5,r.img)),u("src",r.img),c(3),F(" ",r.name," "),c(2),Qt(r.status)}}function om(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,nm,9,7,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.contacts)}}function rm(n,e){if(n&1&&(p(0,"div",8)(1,"tui-badged-content"),x(2,"tui-avatar",12),S(3,"tuiAutoColor"),x(4,"tui-icon",13),m(),p(5,"div",5),T(6),p(7,"div",10),T(8),m()(),p(9,"div",10),T(10),m()()),n&2){let r=e.$implicit;c(2),w("background",L(3,8,r.img)),u("src",r.img),c(2),u("appearance",r.took?"error":"success")("icon",r.took?"@tui.arrow-down-left":"@tui.arrow-up-right"),c(2),F(" ",r.name," "),c(2),Qt(r.status),c(2),Qt(r.last)}}function am(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,rm,11,10,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.recent)}}var Al=(()=>{let e=class e{constructor(){this.contactsService=h(Fl).contactsData,this.tabs=["Contacts","Recent"],this.activeTab=0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-contacts"]],standalone:!0,features:[P],decls:6,vars:2,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],[3,"activeItemIndex"],["tuiTab",""],["tuiTab","",3,"click"],["tuiHeader",""],["tuiTitle",""],["itemSize","57","tuiScrollable","",1,"contacts-list","viewport","tui-zero-scrollbar"],["tuiCell","l",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiCell","l"],[3,"src"],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.phone","tuiIconButton",""],[1,"avatar",3,"src"],["size","s","tuiBadge","","tuiSlot","top",3,"appearance","icon"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"tui-tabs",1),Be(2,im,4,3,"button",2,He),m(),_(4,om,3,1,"tui-scrollbar")(5,am,3,1,"tui-scrollbar"),m()),i&2&&(c(),u("activeItemIndex",o.activeTab),c(),je(o.tabs),c(2),Xi(o.activeTab===0?4:5))},dependencies:[Sl,kl,er,z,X,Ha,On,Sa,rs,as,ue,_t,Ra,W,fa,Cn,Aa,Va],styles:["tui-tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0;border-radius:0;box-shadow:0 1px var(--tui-border-normal)}.viewport[_ngcontent-%COMP%]{height:12.5rem}tui-badged-content[_ngcontent-%COMP%] tui-avatar[_ngcontent-%COMP%]{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}"],changeDetection:0});let n=e;return n})();var sm=[{name:"Open the door",img:"@tui.door-open"},{name:"Play music",img:"@tui.speaker"},{name:"Call security",img:"@tui.shield-alert"},{name:"Turn up the heat",img:"@tui.heater"},{name:"Turn on the kettle",img:"@tui.coffee"}],Vl=(()=>{let e=class e{constructor(){this.controlPanelData=sm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function lm(n,e){if(n&1&&(p(0,"button",1)(1,"aside",2),x(2,"tui-avatar",3),m(),p(3,"h3",4),T(4),m()()),n&2){let r=e.$implicit;c(2),w("color","var(--tui-background-accent-opposite)"),u("src",r.img),c(2),F(" ",r.name," ")}}var Rl=(()=>{let e=class e{constructor(){this.controlPanelService=h(Vl).controlPanelData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-small-card"]],standalone:!0,features:[P],decls:1,vars:1,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated","class","button-card",4,"ngFor","ngForOf"],["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card"],["tuiAccessories",""],["appearance","","size","l",3,"src"],[1,"text"]],template:function(i,o){i&1&&_(0,lm,5,4,"button",0),i&2&&u("ngForOf",o.controlPanelService)},dependencies:[z,nt,On,_t,La,wa],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;gap:.625rem;align-items:center;justify-content:space-around}@media (max-width: 50rem) and (min-width: 31.35rem){[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.text[_ngcontent-%COMP%]{font:var(--tui-font-heading-6);margin-top:1rem;margin-bottom:1rem}[tuiHeader][_ngcontent-%COMP%] [tuiAccessories][_ngcontent-%COMP%]{gap:0}.button-card[_ngcontent-%COMP%]{display:flex;max-width:max-content;align-items:center;padding-right:1.75rem;gap:1rem}@media (max-width: 50rem){.button-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}}@media (max-width: 31.25rem){.button-card[_ngcontent-%COMP%]{width:calc(100vw - 5.5rem);max-width:calc(100vw - 5.5rem);flex-shrink:0}}.button-card[_ngcontent-%COMP%]:last-child{grid-column-end:3;grid-column-start:1}"],changeDetection:0});let n=e;return n})();function cm(n,e){if(n&1&&x(0,"div",1),n&2){let r=e.$implicit,t=e.index,i=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",i.getHeight(r),"%")}}var Ll=(()=>{let e=class e{constructor(){this.value=[],this.size="m"}getHeight(t){return 100*t/this.getSum(this.value)}getSum(t){return sn(...t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-bar"]],hostVars:1,hostBindings:function(i,o){i&2&&B("data-size",o.size)},inputs:{value:"value",size:"size"},standalone:!0,features:[P],decls:1,vars:1,consts:[["automation-id","tui-bar__bar",3,"background","height",4,"ngFor","ngForOf"],["automation-id","tui-bar__bar"]],template:function(i,o){i&1&&_(0,cm,1,4,"div",0),i&2&&u("ngForOf",o.value)},dependencies:[nt],styles:["[_nghost-%COMP%]{display:flex;min-width:.125rem;flex-direction:column-reverse;border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l);overflow:hidden}[data-size=l][_nghost-%COMP%]{width:1rem;max-width:1rem;margin:0 .1875rem}[data-size=m][_nghost-%COMP%]{width:.5rem;max-width:.5rem;margin:0 .1875rem}[data-size=s][_nghost-%COMP%]{width:.25rem;max-width:.5rem;margin:0 .125rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getSum",null),n})();var um=["*"],dm=(n,e)=>({$implicit:n,index:e,flexible:!1}),pm=(n,e)=>({$implicit:n,index:e,flexible:!0});function mm(n,e){if(n&1&&Et(0,5),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,dm,r,t))}}function hm(n,e){if(n&1&&(pt(0),_(1,mm,1,5,"ng-container",4),mt()),n&2){let r=g();c(),u("ngForOf",r.computedValue)}}function fm(n,e){if(n&1&&(p(0,"div",7),Et(1,5),m()),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);c(),u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,pm,r,t))}}function gm(n,e){if(n&1&&_(0,fm,2,5,"div",6),n&2){let r=g();u("ngForOf",r.computedValue)}}function _m(n,e){if(n&1&&x(0,"tui-bar",8),n&2){let r=e.flexible,t=e.index,i=e.$implicit,o=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",o.getHeight(i),"%"),N("t-bar_flexible",r)("t-bar_negative",i<0),u("size",o.computedSize)("value",o.computedSegments)}}var vm=100,Cm=[],ym=[1],Nl=(()=>{let e=class e{constructor(){this.value=[],this.size="m",this.collapsed=!1}get computedValue(){return this.collapsed?ym:this.value}get computedSegments(){return this.collapsed?this.value:Cm}get computedSize(){return this.size||"m"}getHeight(t){return Math.abs(vm*t/this.getLargest(this.computedValue))}getLargest(t){return t.some(i=>i>0)?t.reduce((i,o)=>i>o?i:o,0):Math.abs(t.reduce((i,o)=>i({$implicit:n});function xm(n,e){if(n&1){let r=A();p(0,"div",2),S(1,"async"),O("mouseenter.once",function(){return C(r),y(0)}),p(2,"div",3),S(3,"tuiMapper"),x(4,"div",4,0)(6,"tui-bar-set",5),m()()}if(n&2){let r=e.$implicit,t=e.index,i=V(5),o=g();N("t-wrapper_hoverable",!!o.hintContent)("t-wrapper_hovered",L(1,15,o.drivers.get(t))),u("tuiHint",o.hintContent)("tuiHintContext",Tt(22,bm,t))("tuiHintDescribe",o.getHintId(t))("tuiHintHost",i),c(2),w("height",qi(3,17,r,o.percentMapper,o.collapsed,o.computedMax),"%"),c(4),u("collapsed",o.collapsed)("id",o.getHintId(t))("size",o.size)("tabIndex",o.hintContent?0:-1)("value",r)}}var zl=(()=>{let e=class e{constructor(){this.hintOptions=h(de,{optional:!0}),this.autoIdString=h(vn).generate(),this.drivers=ge,this.value=[],this.max=NaN,this.size="m",this.collapsed=!1,this.percentMapper=(t,i,o)=>100*(i?sn(...t):Math.max(...t))/o}get transposed(){return this.transpose(this.value)}get computedMax(){return this.max||this.getMax(this.value,this.collapsed)}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}getHintId(t){return`${this.autoIdString}_${t}`}transpose(t){return t.reduce((i,o)=>o.map((a,s)=>[...i[s]||[],o[s]]),[])}getMax(t,i){return i?Math.max(...t.reduce((o,a)=>o.map((s,l)=>s+a[l]))):t.reduce((o,a)=>Math.max(...a,o),0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-bar-chart"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.drivers=a)}},inputs:{value:"value",max:"max",size:"size",collapsed:"collapsed"},standalone:!0,features:[k([],[Ta({direction:"top"})]),P],decls:1,vars:1,consts:[["hintHost",""],["class","t-wrapper",3,"t-wrapper_hoverable","t-wrapper_hovered","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter.once",4,"ngFor","ngForOf"],[1,"t-wrapper",3,"mouseenter.once","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-container"],[1,"t-host"],[1,"t-set",3,"collapsed","id","size","tabIndex","value"]],template:function(i,o){i&1&&_(0,xm,7,24,"div",1),i&2&&u("ngForOf",o.transposed)},dependencies:[nt,Tn,Mn,Oa,Ce,$,Nl],styles:["[_nghost-%COMP%]{display:flex;flex:1;height:100%}.t-wrapper[_ngcontent-%COMP%]{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable[_ngcontent-%COMP%]{cursor:pointer}.t-wrapper_hoverable[_ngcontent-%COMP%]:hover, .t-wrapper_hoverable.t-wrapper_hovered[_ngcontent-%COMP%]{background-color:#0000000d}.t-container[_ngcontent-%COMP%]{flex:1}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;right:50%}.t-set[_ngcontent-%COMP%]{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--tui-border-focus)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"transpose",null),et([ot],n.prototype,"getMax",null),n})();var Tm=n=>({$implicit:n});function Mm(n,e){if(n&1&&x(0,"tui-line-chart",2),n&2){let r=e.$implicit,t=e.first,i=g(),o=V(2);w("z-index",i.zIndex),u("dots",i.dots)("height",i.height)("smoothingFactor",i.smoothingFactor)("tuiHintContent",i.hintContent?o:"")("value",r)("width",t?i.firstWidth:i.getWidth(r[0][0]))("x",t?0:i.getX(r[0][0]))("xStringify",i.xStringify?i.daysStringify:null)("y",i.y)("yStringify",i.yStringify)}}function Om(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function wm(n,e){if(n&1&&_(0,Om,2,1,"ng-container",3),n&2){let r=e.$implicit,t=g();u("polymorpheusOutlet",t.hintContent)("polymorpheusOutletContext",Tt(2,Tm,t.getHintContext(r[0],t.value)))}}function Hl(n,e){return n.find(([r])=>r.daySame(e))||[e,NaN]}var ir=(()=>{let e=class e{constructor(){this.charts=ge,this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi)}ngAfterContentInit(){mi([...this.charts.map(({charts:t})=>bo(t)),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t){return this.getMap(...this.charts.map(({value:i})=>i)).get(String(t))||[]}raise(t){let i=this.charts.map(({value:a})=>Hl(a,t)).filter(([a,s])=>!Number.isNaN(s)),o=[...i].sort((a,s)=>a[1]-s[1]);this.charts.forEach((a,s)=>{a.onHovered(t),a.zIndex=Math.max(o.indexOf(i[s]),0)})}getMap(...t){return(t[0]||[]).reduce((i,[o])=>i.set(String(o),t.map(a=>Hl(a,o))),new Map)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,nr,4),i&2){let s;Q(s=Z())&&(o.charts=s)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[k([xi])]});let n=e;return et([ot],n.prototype,"getMap",null),n})(),Pm=[NaN,NaN],nr=(()=>{let e=class e{constructor(){this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi),this.options=h(Na),this.hintDirective=h(ir,{optional:!0}),this.charts=ge,this.y=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.dots=this.options.dots,this.zIndex=0,this.value=[],this.daysStringify=t=>this.xStringify?this.xStringify(this.getDay(t)):""}set valueSetter(t){if(!t.length){this.value=[];return}let i=t[0][0],o=[...t],a=G.lengthBetween(i,t[t.length-1][0])+1;this.value=Array.from({length:a},(s,l)=>{let d=i.append({day:l}),f=d.daySame(o[0][0])?o.shift():null,v=f?f[1]:NaN;return[d,v]})}ngAfterViewInit(){mi([bo(this.charts),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.onHovered(NaN)})}onHovered(t){if(rn(t)){this.charts.forEach(s=>s.onHovered(NaN));return}let i=Ct.lengthBetween(this.value[0][0],t),o=G.lengthBetween(this.value[0][0],t)+this.value[0][0].day-1,a=this.charts.get(i);this.charts.forEach(s=>{s===a?a.onHovered(a.value.findIndex(l=>l[0]===o)):s.onHovered(NaN)})}get months(){return this.value.length?this.breakMonths(this.value):Hr}get firstWidth(){return this.months.length*this.value[0][0].daysCount}get hint(){var t;return((t=this.hintDirective)==null?void 0:t.hint)??this.hintContent}getHintContext(t,i){return i[t-i[0][0].day+1]}getX(t){let i=this.getDay(t),a=Ct.lengthBetween(this.value[0][0],i)*i.daysCount;return t-a}raise(t,{value:i}){let o=i[t][0],a=this.getDay(o);this.hintDirective?this.hintDirective.raise(a):this.onHovered(a)}getWidth(t){return this.getDay(t).daysCount*this.months.length}getContext(t,{value:i}){let o=i[t][0];return this.hintDirective?this.hintDirective.getContext(this.getDay(o)):this.getHintContext(o,this.value)}breakMonths(t){let i=t[0][0].day-1;return Array.from({length:Ct.lengthBetween(t[0][0],t[t.length-1][0])+1},(o,a)=>a+t[0][0].month+t[0][0].year*12).map(o=>t.map(([{month:a,year:s},l],d)=>a+s*12===o?[d+i,l]:null).filter(Ut)).map((o,a,s)=>a===s.length-1?o:[...o,s[a+1].find(l=>!Number.isNaN(l[1]))||Pm])}getDay(t){return this.value[t-this.value[0][0].day+1][0]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-line-days-chart"]],viewQuery:function(i,o){if(i&1&&ct(Mi,5),i&2){let a;Q(a=Z())&&(o.charts=a)}},hostVars:2,hostBindings:function(i,o){i&2&&w("z-index",o.zIndex)},inputs:{y:"y",height:"height",smoothingFactor:"smoothingFactor",hintContent:"hintContent",xStringify:"xStringify",yStringify:"yStringify",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[k([xi,{provide:za,useExisting:e}]),P],decls:3,vars:1,consts:[["hint",""],["class","t-chart",3,"dots","height","smoothingFactor","zIndex","tuiHintContent","value","width","x","xStringify","y","yStringify",4,"ngFor","ngForOf"],[1,"t-chart",3,"dots","height","smoothingFactor","tuiHintContent","value","width","x","xStringify","y","yStringify"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,o){i&1&&_(0,Mm,1,12,"tui-line-chart",1)(1,wm,1,4,"ng-template",null,0,J),i&2&&u("ngForOf",o.months)},dependencies:[Mi,nt,de,ut],styles:["[_nghost-%COMP%]{display:block}.t-chart[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getHintContext",null),et([ot],n.prototype,"breakMonths",null),n})();var Im={value:[[1e3,8e3,4e3,3e3,4e3],[6e3,2e3,4500,7e3,5e3]],labelsX:["Jan 2021","Feb","Mar"],labelsY:["0","10 000"]},Bl=(()=>{let e=class e{constructor(){this.costData=Im}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jl=(()=>{let e=class e{constructor(){this.costService=h(Bl).costData,this.hint=({$implicit:t})=>this.costService.value.reduce((i,o)=>`${i}$${_n(o[t])} -`,"").trim()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-cost"]],standalone:!0,features:[P],decls:15,vars:7,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","s"],["tuiTitle","s"],[1,"legend"],[1,"item"],[1,"name"],[1,"flex"],[1,"axes",3,"axisXLabels","axisYLabels"],[3,"max","tuiHintContent","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"div")(2,"header",1)(3,"h3",2),T(4," Utility costs "),m()(),p(5,"p",3)(6,"span",4)(7,"small",5),T(8,"Electricity bills"),m()(),p(9,"span",4)(10,"small",5),T(11,"Light bills"),m()()(),p(12,"div",6)(13,"tui-axes",7),x(14,"tui-bar-chart",8),m()()()()),i&2&&(c(3),w("text-align","center"),c(10),u("axisXLabels",o.costService.labelsX)("axisYLabels",o.costService.labelsY),c(),u("max",1e4)("tuiHintContent",o.hint)("value",o.costService.value))},dependencies:[z,At,X,En,zl,_t,de,ml],styles:['.axes[_ngcontent-%COMP%]{min-height:18.75rem;width:100%;--tui-chart-categorical-00: var(--tui-background-accent-1);--tui-chart-categorical-01: var(--tui-chart-categorical-12)}.flex[_ngcontent-%COMP%]{display:flex;width:100%}.select[_ngcontent-%COMP%]{max-width:20rem}.card[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--tui-background-base)}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:last-child{color:var(--tui-chart-categorical-12)}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}'],changeDetection:0});let n=e;return n})();var Ul=(()=>{let e=class e{generateRandomData({from:t,to:i},o){return new Array(G.lengthBetween(t,i)+1).fill(0).reduce((a,s,l)=>[...a,[t.append({day:l}),Math.max((l?a[l-1][1]:o)+Math.random()*10-5,0)]],[]).filter(([a])=>a.dayOfWeek()<5)}random(t){return[this.generateRandomData(t,100)]}onlyMondays(t){return t.filter(i=>!i.dayOfWeek()).map(String)}even(t){return t.filter((i,o)=>!(o%2))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Dm(n,e){n&1&&(p(0,"span",8)(1,"small",9),T(2,"Electricity bills"),m()())}function Sm(n,e){if(n&1&&(x(0,"tui-line-days-chart",13),S(1,"tuiFilter")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(1,2,r,t.filter,t.range))}}function Em(n,e){if(n&1&&(pt(0),_(1,Sm,2,6,"tui-line-days-chart",12),mt()),n&2){let r=g(2);c(),u("ngForOf",r.days)}}function km(n,e){if(n&1&&(x(0,"tui-line-chart",15),S(1,"tuiFilter"),S(2,"tuiMapper")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(2,7,xe(1,3,r,t.filter,t.range),t.toNumbers,t.range))("width",t.getWidth(t.range))}}function Fm(n,e){if(n&1&&_(0,km,3,11,"tui-line-chart",14),n&2){let r=g(2);u("ngForOf",r.days)}}function Am(n,e){if(n&1&&(p(0,"tui-axes",10),_(1,Em,2,1,"ng-container",11)(2,Fm,1,1,"ng-template",null,1,J),m()),n&2){let r=e.ngIf,t=V(3),i=g(),o=V(10);u("axisXLabels",r)("horizontalLines",4)("tuiLineChartHint",o)("verticalLines",r.length),c(),u("ngIf",i.getWidth(i.show)>90)("ngIfElse",t)}}function Vm(n,e){if(n&1&&(p(0,"div",8)(1,"span",17),T(2),m()()),n&2){let r=e.$implicit;c(2),F("$",r[1].toFixed(0),"")}}function Rm(n,e){if(n&1&&(p(0,"div",16)(1,"strong"),T(2),m()(),p(3,"div"),_(4,Vm,3,1,"div",6),m()),n&2){let r=e.$implicit,t=g();c(2),Qt(t.getDate(r[0][0],t.range.from)),c(2),u("ngForOf",r)}}var $l=(()=>{let e=class e{constructor(){this.electricityService=h(Ul),this.months$=h(hn),this.show=new Ot(G.currentLocal(),G.currentLocal().append({month:3})),this.days=this.electricityService.random(this.show),this.maxLength={month:4},this.filter=([t],{from:i,to:o})=>t.daySameOrAfter(i)&&t.daySameOrBefore(o),this.toNumbers=(t,{from:i})=>t.map(([o,a])=>[G.lengthBetween(i,o),a])}get range(){return this.computeRange(this.show)}getWidth({from:t,to:i}){return G.lengthBetween(t,i)}getDate(t,i){return t instanceof G?t:i.append({day:t})}labels({from:t,to:i}){let o=G.lengthBetween(t,i);if(o>90)return this.months$.pipe(it(d=>Array.from({length:Ct.lengthBetween(t,i)+1},(f,v)=>d[t.append({month:v}).month])));let a=Array.from({length:o},(d,f)=>t.append({day:f})),s=this.electricityService.onlyMondays(a),l=a.map(String);return o>60?Rt(this.electricityService.even(s)):o>14?Rt(s):o>7?Rt(this.electricityService.even(l)):Rt(l)}onDataChange(t){this.days=this.electricityService.random(t)}computeRange(t){let{from:i,to:o}=t,a=G.lengthBetween(i,o),s=i.dayOfWeek(),l=o.dayOfWeek(),d=s?i.append({day:7-s}):i,f=l?o.append({day:7-l}):o,v=G.lengthBetween(d,f);return a>90?t:a>60?new Ot(d,f.append({day:v%14})):a>14?new Ot(d,f):new Ot(i,o.append({day:a%2}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-electricity"]],standalone:!0,features:[P],decls:11,vars:6,consts:[["hint",""],["line",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],[1,"controls"],[3,"ngModelChange","maxLength","ngModel"],[1,"legend","tui-space_top-0"],["class","item",4,"ngFor","ngForOf"],["class","axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines",4,"ngIf"],[1,"item"],[1,"name"],[1,"axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines"],[4,"ngIf","ngIfElse"],["class","chart",3,"height","value",4,"ngFor","ngForOf"],[1,"chart",3,"height","value"],["class","chart",3,"height","value","width",4,"ngFor","ngForOf"],[1,"chart",3,"height","value","width"],[1,"tui-space_bottom-2"],[1,"value"]],template:function(i,o){if(i&1){let a=A();p(0,"div",2)(1,"div")(2,"p",3)(3,"tui-input-date-range",4),jt("ngModelChange",function(l){return C(a),kt(o.show,l)||(o.show=l),y(l)}),O("ngModelChange",function(l){return C(a),y(o.onDataChange(l))}),T(4," Data "),m()(),p(5,"p",5),_(6,Dm,3,0,"span",6),m(),_(7,Am,4,6,"tui-axes",7),S(8,"async"),m(),_(9,Rm,5,2,"ng-template",null,0,J),m()}i&2&&(c(3),u("maxLength",o.maxLength),Bt("ngModel",o.show),c(3),u("ngForOf",o.days),c(),u("ngIf",L(8,4,o.labels(o.show))))},dependencies:[$,z,nt,Y,At,Ft,Mt,X,En,_t,os,Cl,_l,vl,Mi,nr,ir,Ce],styles:['.card[_ngcontent-%COMP%]{background-color:var(--tui-background-base)}.axes[_ngcontent-%COMP%]{height:12.5rem}.controls[_ngcontent-%COMP%]{display:flex}.controls[_ngcontent-%COMP%] tui-input-date-range[_ngcontent-%COMP%]{flex:1}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.value[_ngcontent-%COMP%]{color:var(--tui-background-base)}.chart[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);position:absolute;top:0;left:0;width:100%;height:100%}'],changeDetection:0});let n=e;return n})();var Lm=[{room:"Kitchen",state:!0},{room:"Bedroom",state:!1},{room:"Bathroom",state:!0}],Wl=(()=>{let e=class e{constructor(){this.lightingData=Lm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Nm=n=>({checked:n}),zm=n=>({hidden:n});function Hm(n,e){if(n&1&&(p(0,"label",5)(1,"div",6),x(2,"input",7),T(3),m(),x(4,"tui-icon",8),m()),n&2){let r=e.$implicit,t=e.index,i=g();u("ngClass",Tt(8,Nm,r.value)),c(2),w("display","none"),u("formControl",r),c(),F(" ",i.lightingService[t].room," "),c(),w("color","var(--tui-chart-categorical-12)"),u("ngClass",Tt(10,zm,!r.value))}}var Gl=(()=>{let e=class e{constructor(){this.lightingService=h(Wl).lightingData,this.lightingForm=new We(this.lightingService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-lighting"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",3,"ngClass",4,"ngFor","ngForOf"],["tuiBlock","",3,"ngClass"],[1,"title-room"],["tuiCheckbox","","type","checkbox",3,"formControl"],["alt","","icon","@tui.lightbulb",1,"light-svg",3,"ngClass"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Lighting "),m()(),p(4,"form",3),_(5,Hm,5,12,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.lightingForm.controls))},dependencies:[z,Sr,nt,At,nn,tn,Ft,en,Vr,Me,$e,X,Hn,_t,Bn,Fn,W,Pa],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;flex-shrink:0;text-align:center;height:100%;background-color:var(--tui-background-base)}.light-svg[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;margin-left:auto}.title-room[_ngcontent-%COMP%]{display:flex;height:1.875rem;align-items:center}.checked[_ngcontent-%COMP%]{background-color:var(--tui-status-warning-pale)}.hidden[_ngcontent-%COMP%]{display:none}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Bm=[{name:"Against All Odds",logo:"./music/against.jpg",performer:"Tiko Tiko",src:"./music/AgainstAllOdds.mp3",length:208},{name:"Howling at the Moon",logo:"./music/howling.avif",performer:"D Fine Us",src:"./music/HowlingAtTheMoon.mp3",length:195}],Yl=(()=>{let e=class e{constructor(){this.tracks=Bm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function or(n){return Math.floor(Math.random()*n)}var Ql=(()=>{let e=class e{constructor(){this.tracks=h(Yl).tracks,this.activeIndex=0,this.time=0,this.volume=1,this.repeat=!1,this.shuffle=!1,this.paused=!0}nextTrack(t){this.time=0,!this.repeat&&(this.activeIndex=this.shuffle?or(this.tracks.length):(this.activeIndex+1)%this.tracks.length,setTimeout(()=>Le(this,null,function*(){return t.play()}),1))}previousTrack(t){if(this.time=0,this.repeat)return;let i=this.activeIndex-1<0?this.tracks.length-1:this.activeIndex-1;this.activeIndex=this.shuffle?or(this.tracks.length):i,setTimeout(()=>Le(this,null,function*(){return t.play()}),1)}getMinutes(t){return(t/60<=9?"0":"")+Math.trunc(t/60).toString()}getSeconds(t){return t=Math.trunc(t),(t%60<=9?"0":"")+(t%60).toString()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-music"]],standalone:!0,features:[P],decls:30,vars:23,consts:[["audio",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"logo",3,"src"],[1,"tui-space_top-4","tui-space_bottom-2"],[1,"tui-space_top-0","tui-space_bottom-0"],["tuiMedia","",3,"currentTimeChange","pausedChange","volumeChange","ended","src","currentTime","paused","volume"],["size","m","tuiSlider","","type","range",3,"ngModelChange","max","ngModel"],[1,"duration"],[1,"buttons"],["appearance","icon","iconStart","@tui.shuffle","tuiIconButton","",3,"click","tuiAppearanceState"],["appearance","icon","iconStart","@tui.skip-back","tuiIconButton","",3,"click"],["appearance","icon","tuiIconButton","",3,"click","iconStart"],["appearance","icon","iconStart","@tui.skip-forward","tuiIconButton","",3,"click"],["appearance","icon","iconStart","@tui.repeat","tuiIconButton","",3,"click","tuiAppearanceState"],[1,"volume"],["icon","@tui.volume-1"],["max","1","size","m","step","0.01","tuiSlider","","type","range",3,"ngModelChange","ngModel"],["icon","@tui.volume-2"]],template:function(i,o){if(i&1){let a=A();p(0,"div",1)(1,"header",2)(2,"h2",3),T(3," Music "),m()(),p(4,"div",4),x(5,"img",5),p(6,"h2",6),T(7),m(),p(8,"p",7),T(9),m()(),p(10,"audio",8,0),jt("currentTimeChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)})("pausedChange",function(l){return C(a),kt(o.paused,l)||(o.paused=l),y(l)})("volumeChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),O("ended",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(12,"div")(13,"input",9),jt("ngModelChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)}),m(),p(14,"div",10)(15,"p",7),T(16),m(),p(17,"p",7),T(18),m()()(),p(19,"div",11)(20,"button",12),O("click",function(){return C(a),y(o.shuffle=!o.shuffle)}),m(),p(21,"button",13),O("click",function(){C(a);let l=V(11);return y(o.previousTrack(l))}),m(),p(22,"button",14),O("click",function(){return C(a),y(o.paused=!o.paused)}),m(),p(23,"button",15),O("click",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(24,"button",16),O("click",function(){return C(a),y(o.repeat=!o.repeat)}),m()(),x(25,"hr"),p(26,"div",17),x(27,"tui-icon",18),p(28,"input",19),jt("ngModelChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),m(),x(29,"tui-icon",20),m()()}if(i&2){let a=V(11);c(2),w("text-align","center"),c(3),u("src",o.tracks[o.activeIndex].logo,io),c(2),F(" ",o.tracks[o.activeIndex].name," "),c(),w("color","var(--tui-text-primary)"),c(),F(" ",o.tracks[o.activeIndex].performer," "),c(),u("src",o.tracks[o.activeIndex].src,io),Bt("currentTime",o.time)("paused",o.paused)("volume",o.volume),c(3),u("max",a.duration),Bt("ngModel",o.time),c(3),_i("",o.getMinutes(o.time),":",o.getSeconds(o.time),""),c(2),_i(" ",o.getMinutes(o.tracks[o.activeIndex].length),":",o.getSeconds(o.tracks[o.activeIndex].length)," "),c(2),u("tuiAppearanceState",o.shuffle?"active":null),c(2),u("iconStart",o.paused?"@tui.circle-play":"@tui.circle-stop"),c(2),u("tuiAppearanceState",o.repeat?"active":null),c(4),w("color","var(--tui-status-info)"),Bt("ngModel",o.volume)}},dependencies:[z,At,Ue,Rr,Ft,Mt,Me,X,ue,_t,W,ns,No],styles:[".duration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--tui-text-primary)}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.volume[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.logo[_ngcontent-%COMP%]{border-radius:.5rem;width:9rem;height:9rem}"],changeDetection:0});let n=e;return n})();var jm=[{name:"Alarm system",state:!0},{name:"Close the curtains",state:!1},{name:"Video monitoring",state:!0},{name:"Enable gas sensor notification",state:!1}],Zl=(()=>{let e=class e{constructor(){this.safetyData=jm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Um(n,e){if(n&1&&(p(0,"label",5),T(1),x(2,"input",6),m()),n&2){let r=e.$implicit,t=e.index,i=g();c(),F(" ",i.safetyService[t].name," "),c(),w("margin-left","auto"),u("formControl",r)}}var Xl=(()=>{let e=class e{constructor(){this.safetyService=h(Zl).safetyData,this.safetyForm=new We(this.safetyService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-safety"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",4,"ngFor","ngForOf"],["tuiBlock",""],["tuiCheckbox","","type","checkbox",3,"formControl"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Safety "),m()(),p(4,"form",3),_(5,Um,3,4,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.safetyForm.controls))},dependencies:[z,nt,Me,nn,tn,Ft,en,$e,X,Hn,_t,Bn,Fn],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;height:100%;background-color:var(--tui-background-base)}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Kl=[1003,1006,1030,1087,1135],ql=[1009,1063,1180,1183,1186,1189,1192,1195,1198,1201,1204,1240,1243,1246,1249,1252,1276],Jl=[1066,1069,1072,1114,1117,1147,1168,1171,1204,1210,1213,1216,1219,1222,1225,1237,1255,1258,1261,1264,1273,1279,1282],tc=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],ec=new dt("",{factory:()=>"1df6860ee44f43d693d113704242207"});var ic=(()=>{let e=class e{constructor(){this.http=h(kr),this.KEY=h(ec)}getWeather(){return this.http.get("https://api.weatherapi.com/v1/forecast.json",{params:{key:this.KEY,q:"London",api:"yes",days:"3"}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $m(n,e){if(n&1&&(p(0,"div",15),x(1,"tui-icon",16),p(2,"div",5)(3,"p",9),T(4),m(),p(5,"p",9),T(6),m()()()),n&2){let r=e.$index;g();let t=ao(1),i=g();c(),u("icon",i.getSmallImage(t[r].day.condition.code)),c(),w("align-items","center"),c(),w("font-weight","600"),c(),F(" ",i.getWeekDay(t[r].date)," "),c(2),_i(" ",t[r].day.mintemp_c,"\xB0/",t[r].day.maxtemp_c,"\xB0 ")}}function Wm(n,e){if(n&1&&(oo(0)(1),p(2,"div",1)(3,"header",2)(4,"h2",3),T(5," Weather "),m()(),p(6,"div",4)(7,"div",5)(8,"h3",6),T(9),m(),p(10,"h1",7),T(11),m(),p(12,"div",8)(13,"p",9)(14,"span"),T(15),m(),T(16," \xB0/ "),p(17,"span"),T(18),m(),T(19," \xB0 "),m(),p(20,"div",10),x(21,"tui-icon",11),T(22),m(),p(23,"div",10),x(24,"tui-icon",12),T(25),m()(),p(26,"p",13),T(27),m()()(),p(28,"div",14),Be(29,$m,7,8,"div",15,He),m()()),n&2){let r=g(),t=ao(0),i=t.current;c();let o=ro(t.forecast.forecastday);c(),w("background-image",r.getImage(i.condition.code)),c(2),w("color","var(--tui-text-primary-on-accent-1)")("text-align","center"),c(5),F(" ",t.location.name," "),c(2),F("",i.temp_c,"\xB0"),c(2),w("display","flex"),c(),w("font-weight","600"),c(),Qt(i.dewpoint_c),c(2),w("font-weight","600"),c(),Qt(i.heatindex_c),c(4),F(" ",i.wind_kph,"km/h "),c(3),F(" ",i.humidity,"% "),c(2),F(" ",i.condition.text," "),c(2),je(o)}}var nc=(()=>{let e=class e{constructor(){this.weatherService=h(ic),this.info$=this.weatherService.getWeather()}getWeekDay(t){let i=t.split("-"),o=new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10));return tc[o.getDay()]}getTypeOfWeather(t){return Kl.includes(t)?"clouds":ql.includes(t)?"rain":Jl.includes(t)?"snow":"sun"}getSmallImage(t){let i=this.getTypeOfWeather(t);return i==="snow"?"@tui.snowflake":i==="rain"?"@tui.droplet":i==="clouds"?"@tui.cloud":"@tui.sun"}getImage(t){return`url(./weather/${this.getTypeOfWeather(t)}.jpg)`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-weather"]],standalone:!0,features:[P],decls:3,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card",3,"background-image"],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"left-side"],["tuiTitle","",1,"tui-text_body-m"],[1,"tui-space_top-3","tui-space_bottom-3"],[1,"description"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"indicator"],["icon","@tui.wind"],["icon","@tui.droplets"],[1,"tui-space_top-0","tui-space_bottom-0","tui-text_body-s"],[1,"list-days"],[1,"card-small"],[1,"card-icon",3,"icon"]],template:function(i,o){if(i&1&&(oo(0),S(1,"async"),_(2,Wm,31,20,"div",0)),i&2){let a=ro(L(1,1,o.info$));c(2),Xi(a?2:-1)}},dependencies:[$,z,X,_t,W],styles:[".indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1rem}.card[_ngcontent-%COMP%]{background-position:center;overflow:hidden;box-shadow:inset 0 10rem 10rem 10rem #00000086;color:var(--tui-text-primary-on-accent-1)}.info[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.left-side[_ngcontent-%COMP%]{display:flex;flex-direction:column}.description[_ngcontent-%COMP%]{display:flex;gap:.625rem}.list-days[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.card-small[_ngcontent-%COMP%]{display:flex;align-items:center}.card-icon[_ngcontent-%COMP%]{width:2rem;height:2rem}"],changeDetection:0});let n=e;return n})();var FM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["app-iot"]],standalone:!0,features:[P],decls:24,vars:0,consts:[[1,"tiles"],[1,"column"],[1,"row"],[1,"grow"]],template:function(i,o){i&1&&(p(0,"div",0),x(1,"lmb-small-card"),p(2,"div",1)(3,"div",2)(4,"div",3),x(5,"lmb-safety"),m(),p(6,"div",3),x(7,"lmb-electricity"),m(),p(8,"div",3),x(9,"lmb-climate-control"),m()(),p(10,"div",2)(11,"div",3),x(12,"lmb-lighting"),m(),p(13,"div",3),x(14,"lmb-cost"),m(),p(15,"div",3),x(16,"lmb-cleaning"),m()(),p(17,"div",2)(18,"div",3),x(19,"lmb-weather"),m(),p(20,"div",3),x(21,"lmb-music"),m(),p(22,"div",3),x(23,"lmb-contacts"),m()()()())},dependencies:[xl,Ml,z,Al,Rl,jl,$l,Gl,Ql,Xl,nc],styles:[".tiles[_ngcontent-%COMP%]{gap:1rem;padding-top:1.25rem}.grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let n=e;return n})();export{Ce as a,FM as b}; +`)}};var wo=(()=>{let e=class e{constructor(){return this.nativeElement=bt(),new St(this.nativeElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiElement",""]],exportAs:["elementRef"],standalone:!0});let n=e;return n})();var ns=(()=>{let e=class e{constructor(){this.el=bt(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new q,this.pausedChange=new q,this.volumeChange=new q}set playbackRateSetter(t){this.updatePlaybackRate(t)}set currentTime(t){Math.abs(t-this.currentTime)>.05&&(this.el.currentTime=t)}set paused(t){var i,o,a,s;t?(o=(i=this.el).pause)==null||o.call(i):((s=(a=this.el).play)==null||s.call(a),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(t){this.pausedChange.emit(t),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(t){this.playbackRate=t,this.el.playbackRate=this.playbackRate}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(i,o){i&1&&O("durationchange",function(){return 0})("ended",function(){return o.onPausedChange(!0)})("pause",function(){return o.onPausedChange(!0)})("play",function(){return o.onPausedChange(!1)})("volumechange",function(){return o.onVolumeChange()})("timeupdate",function(){return o.onCurrentTimeChange()})("seeking",function(){return o.onCurrentTimeChange()})("seeked",function(){return o.onCurrentTimeChange()}),i&2&&Ht("volume",o.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let n=e;return n})();var os=(()=>{let e=class e{transform(t,i,...o){return t.filter(a=>i(a,...o))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiFilter",type:e,pure:!0,standalone:!0});let n=e;return n})();var qc=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],Jc=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],rs=(()=>{let e=class e{constructor(){this.tuiSlot="top"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let n=e;return n})(),as=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-badged-content"]],standalone:!0,features:[P],ngContentSelectors:Jc,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(i,o){if(i&1){let a=A();ht(qc),j(0),p(1,"div",2,0),O("waResizeObserver",function(){return C(a),y(0)}),j(3,1),p(4,"div",3),j(5,2),m()(),p(6,"div",4,1),O("waResizeObserver",function(){return C(a),y(0)}),j(8,3),p(9,"div",3),j(10,4),m()()}if(i&2){let a=V(2),s=V(7);c(),w("--t-badge-height",a.offsetHeight,"px"),c(5),w("--t-badge-height",s.offsetHeight,"px")}},dependencies:[Ia],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let n=e;return n})();var tu={appearance:"whiteblock",size:"l"},ss=tt(tu);var eu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiBlock]{position:relative;display:inline-flex;gap:1rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock][data-size=l]{gap:.75rem;font:var(--tui-font-text-m);padding:var(--tui-padding-l);--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l)}[tuiBlock][data-size=l] [tuiTooltip]{margin:.25rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} +`],encapsulation:2,changeDetection:0});let n=e;return n})(),Hn=(()=>{let e=class e{constructor(){this.nothing=ke(eu),this.size=h(ss).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["label","tuiBlock",""],["input","tuiBlock",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,se,5),i&2){let s;Q(s=Z())&&(o.control=s.first)}},hostAttrs:["tuiBlock",""],hostVars:3,hostBindings:function(i,o){i&2&&(B("data-size",o.size||"l"),N("_disabled",!!(o.control!=null&&o.control.disabled)))},inputs:{size:[0,"tuiBlock","size"]},standalone:!0,features:[k([ln(ss),Da({size:"s"})]),ze([An,Ge,fn])]});let n=e;return n})();var cs=(n,e,r,t)=>[n,e,r,t,!1],us=(n,e,r,t)=>[n,e,r,t,!0],iu=(n,e,r,t,i,o)=>[n,e,r,t,i,o];function nu(n,e){if(n&1){let r=A();p(0,"tui-calendar",3),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),S(4,"tuiMapper"),jt("hoveredItemChange",function(i){C(r);let o=g();return kt(o.hoveredItem,i)||(o.hoveredItem=i),y(i)}),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i.append({month:-1})))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m()}if(n&2){let r=g();u("disabledItemHandler",r.calculatedDisabledItemHandler)("markerHandler",r.markerHandler)("max",Te(1,9,vi(29,cs,r.max,r.capsMapper,r.value,r.maxLength)))("min",Te(2,15,vi(34,us,r.min,r.capsMapper,r.value,r.maxLength)))("minViewedMonth",xe(3,21,r.defaultViewedMonth,r.monthOffset,1))("month",xe(4,25,r.defaultViewedMonth,r.monthOffset,1))("showAdjacent",!1)("value",r.value),Bt("hoveredItem",r.hoveredItem)}}function ou(n,e){if(n&1&&M(0,"tui-icon",8),n&2){let r=g(3);w("font-size",1,"rem"),u("icon",r.icons.check)}}function ru(n,e){if(n&1){let r=A();p(0,"button",6),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.onItemSelect(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),x(1),_(2,ou,1,3,"tui-icon",7),m()}if(n&2){let r=e.$implicit,t=g(2);B("aria-checked",t.isItemActive(r)),c(),F(" ",r," "),c(),u("ngIf",t.isItemActive(r))}}function au(n,e){if(n&1&&(p(0,"tui-data-list",4),_(1,ru,3,3,"button",5),S(2,"async"),S(3,"tuiMapper"),m()),n&2){let r=g();w("flex",1),c(),u("ngForOf",Te(3,5,Pr(12,iu,r.items,r.mapper,r.min,r.max,r.minLength,L(2,3,r.otherDateText$))))}}var su=(n,e,r,t)=>{if(!(e!=null&&e.isSingleDay)||!r)return t?n||Nt:n||Kt;let i=Object.fromEntries(Object.entries(r).map(([a,s])=>[a,-s])),o=e.from.append(t?i:r).append({day:t?1:-1});return t?o.dayBefore(n||Nt)?n||Nt:o:n&&o.dayAfter(n)?n:o},Di=(()=>{let e=class e{constructor(){var t;this.otherDateText$=h(ka),this.icons=h(un),this.cdr=h(Zt),this.previousValue=null,this.hoveredItem=null,this.capsMapper=su,this.defaultViewedMonth=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.min=Nt,this.max=Kt,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new q,this.selectedActivePeriod=null,this.monthOffset=(i,o)=>i.append({month:o}),this.mapper=(i,o,a,s,l)=>[...i.filter(d=>(s===null||d.range.from.append(s).daySameOrBefore(d.range.to))&&(o===null||d.range.to.daySameOrAfter(o))&&(a===null||d.range.from.daySameOrBefore(a))),l||""],(t=h(Ea,{optional:!0}))==null||t.pipe($t(this.cdr),ft()).subscribe(i=>{this.value=i})}ngOnChanges(){var t;this.defaultViewedMonth=((t=this.value)==null?void 0:t.from)||this.defaultViewedMonth}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}onEsc(t){var i;t.key!=="Escape"||!((i=this.value)!=null&&i.isSingleDay)||(t.stopPropagation(),this.value=this.previousValue)}isItemActive(t){let{activePeriod:i}=this;return Ci(t)&&i===null||i===t}onItemSelect(t){Ci(t)?this.activePeriod!==null&&(this.selectedActivePeriod=null,this.updateValue(null)):(this.selectedActivePeriod=t,this.updateValue(t.range.dayLimit(this.min,this.max)))}onMonthChange(t){this.defaultViewedMonth=t}onDayClick(t){var i;this.previousValue=this.value,this.selectedActivePeriod=null,(i=this.value)!=null&&i.isSingleDay?this.updateValue(Ot.sort(this.value.from,t)):this.value=new Ot(t,t)}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}calculateDisabledItemHandler(t,i,o){return a=>{if(!(i!=null&&i.isSingleDay)||!o)return t(a);let s=Object.fromEntries(Object.entries(o).map(([v,b])=>[v,-b])),l=i.from.append(s).append({day:1}),d=i.from.append(o).append({day:-1});return l.dayBefore(a)&&d.dayAfter(a)||t(a)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-calendar-range"]],hostBindings:function(i,o){i&1&&O("keydown.capture",function(s){return o.onEsc(s)},!1,Tr)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[be,P],decls:7,vars:37,consts:[["presets",""],["automation-id","tui-calendar-range__calendar",1,"t-calendar",3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem"],[3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent",4,"ngIf","ngIfElse"],[3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem"],["automation-id","tui-calendar-range__menu","role","menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent"],["automation-id","tui-calendar-range__checkmark",3,"icon","font-size",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",3,"icon"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-calendar",1),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),jt("hoveredItemChange",function(l){return C(a),kt(o.hoveredItem,l)||(o.hoveredItem=l),y(l)}),O("dayClick",function(l){return C(a),y(o.onDayClick(l))})("monthChange",function(l){return C(a),y(o.onMonthChange(l))})("mousedown.prevent.silent",function(){return C(a),y(0)}),m(),_(4,nu,5,39,"tui-calendar",2)(5,au,4,19,"ng-template",null,0,J)}if(i&2){let a=V(6);u("disabledItemHandler",o.calculatedDisabledItemHandler)("markerHandler",o.markerHandler)("max",Te(1,11,vi(27,cs,o.max,o.capsMapper,o.value,o.maxLength)))("maxViewedMonth",o.items.length?null:xe(2,17,o.defaultViewedMonth,o.monthOffset,-1))("min",Te(3,21,vi(32,us,o.min,o.capsMapper,o.value,o.maxLength)))("month",o.defaultViewedMonth)("showAdjacent",!!o.items.length)("value",o.value),Bt("hoveredItem",o.hoveredItem),c(4),u("ngIf",!o.items.length)("ngIfElse",a)}},dependencies:[$,Y,nt,Ce,Ke,ve,qt,W],styles:["[_nghost-%COMP%]{display:flex;min-width:30rem}.t-calendar[_ngcontent-%COMP%]{border-right:1px solid var(--tui-border-normal)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateDisabledItemHandler",null),n})();var cu=["type","checkbox","tuiCheckbox",""],uu={size:"m",appearance:n=>n.checked||n.indeterminate?"primary":"whiteblock",icons:{checked:()=>"@tui.check",indeterminate:()=>"@tui.minus"}},du=tt(uu);var Bn=(()=>{let e=class e{constructor(){this.appearance=h(X),this.options=h(du),this.resolver=ta(),this.destroyRef=h(fe),this.el=bt(),this.size=this.options.size,this.control=h(se,{optional:!0,self:!0})}ngOnInit(){var t;(t=this.control)!=null&&t.valueChanges&&Zr(this.control).pipe(ft(this.destroyRef)).subscribe(i=>{let o=this.control instanceof Mt&&i===null?this.control.model:i;this.el.indeterminate=o===null})}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}getIcon(t){let i=this.options.icons[t],o=Ci(i)?i:i(this.size);return`url(${this.resolver(o)})`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["input","type","checkbox","tuiCheckbox",""]],hostVars:8,hostBindings:function(i,o){i&2&&(Ht("disabled",!o.control||o.control.disabled),B("data-size",o.size),w("--t-checked",o.getIcon("checked"))("--t-indeterminate",o.getIcon("indeterminate")),N("_readonly",!o.control))},inputs:{size:"size"},standalone:!0,features:[ze([Ge,An]),P],attrs:cu,decls:0,vars:0,template:function(i,o){},styles:[`[_nghost-%COMP%]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);width:var(--t-size);height:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[_nghost-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:currentColor;-webkit-mask:url('data:image/svg+xml,') center / 100%;mask:url('data:image/svg+xml,') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[_nghost-%COMP%]:disabled._readonly{opacity:1}[_nghost-%COMP%]:checked:before, [_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-checked);mask-image:var(--t-checked);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate);mask-image:var(--t-indeterminate)}[data-size=s][_nghost-%COMP%]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}`],changeDetection:0});let n=e;return n})();function mu(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function hu(n,e){if(n&1){let r=A();p(0,"button",5,1),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.itemClick.emit(i))}),p(2,"span",6),_(3,mu,2,1,"ng-container",7),m()()}if(n&2){let r=e.$implicit,t=V(1),i=g(2);u("disabled",i.disabledItemHandler(r))("value",r),c(3),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function fu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,hu,4,4,"button",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function gu(n,e){n&1&&M(0,"tui-loader",8)}var _u=["labels",""];function vu(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Cu(n,e){if(n&1){let r=A();p(0,"button",7,1),O("click",function(){let i=C(r).$implicit,o=g(3);return y(o.itemClick.emit(i))}),_(2,vu,2,1,"ng-container",8),m()}if(n&2){let r=e.$implicit,t=V(1),i=g(3);u("disabled",i.disabledItemHandler(r))("value",r),c(2),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function yu(n,e){if(n&1&&(p(0,"tui-opt-group",5),_(1,Cu,3,4,"button",6),m()),n&2){let r=e.$implicit,t=e.index,i=g(2);u("label",i.labels[t]),c(),u("ngForOf",r)}}function bu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,yu,2,2,"tui-opt-group",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function xu(n,e){n&1&&M(0,"tui-loader",9)}var Tu="[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}",Po=(()=>{let e=class e{constructor(){this.itemsHandlers=h(Fa),this.optionsQuery=ge,this.items=[],this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=ba(),this.itemClick=new q,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:i}){return{$implicit:t,active:da(i)}}getOptions(t=!1){return this.optionsQuery.filter(({disabled:i})=>t||!i).map(({value:i})=>i).filter(Ut)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(i,o){if(i&1&&ct(qt,5),i&2){let a;Q(a=Z())&&(o.optionsQuery=a)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"},standalone:!0,features:[k([_o(e)]),P],decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(i,o){if(i&1&&_(0,fu,2,3,"tui-data-list",2)(1,gu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,Y,nt,wo,vo,ut],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0});let n=e;return n})(),ds=(()=>{let e=class e extends Po{constructor(){super(...arguments),this.items=[],this.labels=[]}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-data-list-wrapper","labels",""]],inputs:{items:"items",labels:"labels"},standalone:!0,features:[k([_o(e)]),H,P],attrs:_u,decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-loader"]],template:function(i,o){if(i&1&&_(0,bu,2,3,"tui-data-list",2)(1,xu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,xa,Y,nt,wo,ut,vo],styles:[Tu],changeDetection:0});let n=e;return n})();var Je=(()=>{let e=class e{constructor(){this.elementRef=h(St).nativeElement,this.ngZone=h(Dt),this.maskedElement=null,this.options=null,this.elementPredicate=es;let t=h(Ue,{self:!0,optional:!0});if(t){let i=t.writeValue.bind(t);t.writeValue=o=>{i(this.options?qe(String(o??""),this.options):o)}}}ngOnChanges(){return Le(this,null,function*(){var a;let{elementPredicate:t,options:i}=this;if((a=this.maskedElement)==null||a.destroy(),!i)return;let o=yield t(this.elementRef);this.elementPredicate===t&&this.ngZone.runOutsideAngular(()=>{this.maskedElement=new Ln(o,i)})})}ngOnDestroy(){var t;(t=this.maskedElement)==null||t.destroy()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","maskito",""]],inputs:{options:[0,"maskito","options"],elementPredicate:[0,"maskitoElement","elementPredicate"]},standalone:!0,features:[be]});let n=e;return n})();function Oe(n,e,r){let t=Math.min(Number(r),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(t):t}function _s(n){return n.replaceAll(/\W/g,"").length}function ps(n,{day:e,month:r,year:t}={}){let i=new Date(n);return e&&i.setDate(i.getDate()+e),r&&i.setMonth(i.getMonth()+r),t&&i.setFullYear(i.getFullYear()+t),i}var vs=n=>{var e,r,t;return{day:((e=n.match(/d/g))===null||e===void 0?void 0:e.length)||0,month:((r=n.match(/m/g))===null||r===void 0?void 0:r.length)||0,year:((t=n.match(/y/g))===null||t===void 0?void 0:t.length)||0}};function Cs(n){return{day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0"),hours:String(n.getHours()).padStart(2,"0"),minutes:String(n.getMinutes()).padStart(2,"0"),seconds:String(n.getSeconds()).padStart(2,"0"),milliseconds:String(n.getMilliseconds()).padStart(3,"0")}}function Ou(n,e){let r=_s(e),[t=""]=n.match(new RegExp(`(\\D*\\d){${r}}`))||[];return t}function ko(n,e){return n.length!r.match(/^0+$/))}function Ei(n,e,r){let t=_s(e);return n.replace(r,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${t}}`,"g"))||[]}function ki(n,e){let r=e.replaceAll(/[^dmy]/g,""),t=n.replaceAll(/\D+/g,""),i={day:t.slice(r.indexOf("d"),r.lastIndexOf("d")+1),month:t.slice(r.indexOf("m"),r.lastIndexOf("m")+1),year:t.slice(r.indexOf("y"),r.lastIndexOf("y")+1)};return Object.fromEntries(Object.entries(i).filter(([o,a])=>!!a).sort(([o],[a])=>e.toLowerCase().indexOf(o[0])>e.toLowerCase().indexOf(a[0])?1:-1))}function Fo(n,e){var r,t,i,o,a,s,l;let d=((r=n.year)===null||r===void 0?void 0:r.length)===2?`20${n.year}`:n.year,f=new Date(Number(d??"0"),Number((t=n.month)!==null&&t!==void 0?t:"1")-1,Number((i=n.day)!==null&&i!==void 0?i:"1"),Number((o=e==null?void 0:e.hours)!==null&&o!==void 0?o:"0"),Number((a=e==null?void 0:e.minutes)!==null&&a!==void 0?a:"0"),Number((s=e==null?void 0:e.seconds)!==null&&s!==void 0?s:"0"),Number((l=e==null?void 0:e.milliseconds)!==null&&l!==void 0?l:"0"));return f.setFullYear(Number(d??"0")),f}var ys=", ";function ti({day:n,month:e,year:r,hours:t,minutes:i,seconds:o,milliseconds:a},{dateMode:s,dateTimeSeparator:l=ys,timeMode:d}){var f;let v=((f=s.match(/y/g))===null||f===void 0?void 0:f.length)===2?r==null?void 0:r.slice(-2):r;return(s+(d?l+d:"")).replaceAll(/d+/g,n??"").replaceAll(/m+/g,e??"").replaceAll(/y+/g,v??"").replaceAll(/H+/g,t??"").replaceAll("MSS",a??"").replaceAll(/M+/g,i??"").replaceAll(/S+/g,o??"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}var bs={day:31,month:12,year:9999},wu=[".",",","\u0431","\u044E"],Pu=new Date("0001-01-01"),xs=new Date("9999-12-31");var Iu=[":","."];var So="\xA0",Du="\u200B",Un="\u2013",Ao="\u2014",Si="-",jn="\u2212",Vo="\u30FC";function Su({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:r,offset:t,selection:[i,o]}){let a=ki(n,e),s=Object.entries(a),l={};for(let[v,b]of s){let E=ti(l,{dateMode:e}),R=bs[v],rt=E.length&&r.length,vt=t+E.length+rt+vs(e)[v],Pt=vt>=i&&vt===o;if(Pt&&Number(b)>Number(R))return{validatedDateString:"",updatedSelection:[i,o]};if(Pt&&Number(b)<1)return{validatedDateString:"",updatedSelection:[i,o]};l[v]=b}let d=ti(l,{dateMode:e}),f=d.length-n.length;return{validatedDateString:d,updatedSelection:[i+f,o+f]}}var Ts=/[\\^$.*+?()[\]{}|]/g,Eu=new RegExp(Ts.source);function wt(n){return n&&Eu.test(n)?n.replaceAll(Ts,"\\$&"):n}function ee(n,{prefix:e,postfix:r}){var t,i;let o=new RegExp(`^${wt(e)}`),a=new RegExp(`${wt(r)}$`),[s=""]=(t=n.match(o))!==null&&t!==void 0?t:[],[l=""]=(i=n.match(a))!==null&&i!==void 0?i:[],d=n.replace(o,"").replace(a,"");return{extractedPrefix:s,extractedPostfix:l,cleanValue:d}}function ku(n,e){let r="";for(let t=0;tString.fromCharCode(e.charCodeAt(0)-65248))}function Ms({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:r,uniteFn:t}){return({value:i,selection:o})=>{var a;let[s,l]=o,{dateStrings:d,restPart:f=""}=r(i),v=[],b=0;d.forEach(R=>{let rt=ki(R,n),Pt=Object.entries(rt).reduce((It,[Gt,pe])=>{let{validatedSegmentValue:rr,prefixedZeroesCount:pi}=Eo(pe,`${bs[Gt]}`);return b+=pi,Object.assign(Object.assign({},It),{[Gt]:rr})},{});v.push(ti(Pt,{dateMode:n}))});let E=t(v,i)+(!((a=d[d.length-1])===null||a===void 0)&&a.endsWith(e)?e:"")+f;return b&&E.slice(l+b,l+b+e.length)===e&&(b+=e.length),{selection:[s+b,l+b],value:E}}}function Fu({dateModeTemplate:n,firstDateEndSeparator:e,dateSegmentSeparator:r,pseudoFirstDateEndSeparators:t}){return({elementState:i,data:o})=>{let{value:a,selection:s}=i,l=Ou(a,n),d=t.filter(v=>!e.includes(v)&&v!==r),f=new RegExp(`[${d.join("")}]`,"gi");return{elementState:{selection:s,value:l&&a.length>l.length?l+a.slice(l.length).replace(/^[\D\s]*/,e):a},data:o.replace(f,e)}}}function Ro(){return({elementState:n,data:e})=>{let{value:r,selection:t}=n;return{elementState:{selection:t,value:ms(r)},data:ms(e)}}}function Au(n,e){let r=vs(e);return Object.fromEntries(Object.entries(n).map(([t,i])=>{let o=r[t];return[t,i.length===o&&i.match(/^0+$/)?"1".padStart(o,"0"):i]}))}function Os({dateModeTemplate:n,min:e=Pu,max:r=xs,rangeSeparator:t="",dateSegmentSeparator:i="."}){return({value:o,selection:a})=>{let s=t&&o.endsWith(t),l=Ei(o,n,t),d="";for(let f of l){d+=d?t:"";let v=ki(f,n);if(!ko(f,n)){let R=Au(v,n),rt=ti(R,{dateMode:n}),vt=f.endsWith(i)?i:"";d+=rt+vt;continue}let b=Fo(v),E=Oe(b,e,r);d+=ti(Cs(E),{dateMode:n})}return{selection:a,value:d+(s?t:"")}}}function ws({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r="",dateTimeSeparator:t=ys}){return({elementState:i,data:o})=>{let a=r?new RegExp(`${r}|-`):t,s=o.split(a),l=o.includes(t)?[s[0]]:s;if(l.every(d=>d.trim().split(/\D/).filter(Boolean).length===n.split(e).length)){let d=l.map(f=>Vu(f,n,e)).join(r);return{elementState:i,data:`${d}${o.includes(t)&&t+s[1]||""}`}}return{elementState:i,data:o}}}function Vu(n,e,r){let t=n.split(/\D/).filter(Boolean),i=e.split(r);return t.map((a,s)=>s===i.length-1?a:a.padStart(i[s].length,"0")).join(r)}function Ru(n){let e=new RegExp(`${wt(n)}$`);return n?({value:r,selection:t},i)=>{if(!r&&!i.value.endsWith(n))return{value:r,selection:t};if(!r.endsWith(n)&&!i.value.endsWith(n))return{selection:t,value:r+n};let o=i.value.replace(e,""),a=i.selection[1]>=o.length,s=ku(o,r);return{selection:t,value:Array.from(n).reverse().reduce((l,d,f)=>{let v=l.length-1-f,b=s[v]===d&&a;return l[v]!==d||b?l.slice(0,v+1)+d+l.slice(v+1):l},r)}}:ei}function Lu(n){return n?({value:e,selection:r},t)=>{if(e.startsWith(n)||!e&&!t.value.startsWith(n))return{value:e,selection:r};let[i,o]=r,a=Array.from(n).reduce((l,d,f)=>l[f]===d?l:l.slice(0,f)+d+l.slice(f),e),s=a.length-e.length;return{selection:[i+s,o+s],value:a}}:ei}function Ps({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r=""}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t;if(i===e)return{elementState:t,data:a[0]===o.length?i:""};let s=i.replaceAll(new RegExp(`[^\\d${wt(e)}${r}]`,"g"),"");if(!s)return{elementState:t,data:""};let[l,d]=a,f=d+i.length,v=o.slice(0,l)+s+o.slice(f),b=Ei(v,n,r),E="",R=!!r&&v.includes(r);for(let vt of b){let{validatedDateString:Pt,updatedSelection:It}=Su({dateString:vt,dateModeTemplate:n,dateSegmentsSeparator:e,offset:E.length,selection:[l,f]});if(vt&&!Pt)return{elementState:t,data:""};f=It[1],E+=R&&!E?Pt+r:Pt}let rt=E.slice(l,f);return{elementState:{selection:a,value:E.slice(0,l)+rt.split(e).map(vt=>"0".repeat(vt.length)).join(e)+E.slice(f)},data:rt}}}function Lo(n,e,r){return(t,i)=>{let o=()=>e(t,i);return t.addEventListener(n,o,r),()=>t.removeEventListener(n,o,r)}}function Is(n){return e=>{let r=e.ownerDocument,t=0,i=()=>t++,o=()=>{t=Math.max(--t,0)},a=()=>{if(!e.matches(":focus"))return;if(t)return r.addEventListener("mouseup",a,{once:!0,passive:!0});let s=e.selectionStart||0,l=e.selectionEnd||0,[d,f]=n(e.value,[s,l]);(d>s||f{r.removeEventListener("selectionchange",a),r.removeEventListener("mousedown",i),r.removeEventListener("mouseup",o)}}}function Ds(){return({elementState:n},e)=>{let{value:r,selection:t}=n;if(!r||Nu(r,t))return{elementState:n};let[i,o]=t,a=r.slice(i,o).replaceAll(/\d/g,"0"),s=r.slice(0,i)+a+r.slice(o);return e==="validation"||e==="insert"&&i===o?{elementState:{selection:t,value:s}}:{elementState:{selection:e==="deleteBackward"||e==="insert"?[i,i]:[o,o],value:s}}}}function Nu(n,[e,r]){return r===n.length}function Ss({mode:n,separator:e=".",max:r,min:t}){let i=n.split("/").join(e);return Object.assign(Object.assign({},te),{mask:Array.from(i).map(o=>e.includes(o)?o:/\d/),overwriteMode:"replace",preprocessors:[Ro(),Ds(),ws({dateModeTemplate:i,dateSegmentsSeparator:e}),Ps({dateModeTemplate:i,dateSegmentsSeparator:e})],postprocessors:[Ms({dateModeTemplate:i,dateSegmentSeparator:e,splitFn:o=>({dateStrings:[o]}),uniteFn:([o])=>o}),Os({min:t,max:r,dateModeTemplate:i,dateSegmentSeparator:e})]})}var zu=[Si,Un,Ao,jn,Vo];function Hu({dateModeTemplate:n,rangeSeparator:e,minLength:r,maxLength:t,max:i=xs}){return Do(r)&&Do(t)?ei:({value:o,selection:a})=>{let s=Ei(o,n,e);if(s.length!==2||s.some(R=>!ko(R,n)))return{value:o,selection:a};let[l,d]=s.map(R=>Fo(ki(R,n))),f=ps(l,Object.assign(Object.assign({},r),{day:(r==null?void 0:r.day)&&r.day-1})),v=Do(t)?i:ps(l,Object.assign(Object.assign({},t),{day:(t==null?void 0:t.day)&&t.day-1})),b=Oe(d,f,i),E=b>v?v:b;return{selection:a,value:s[0]+e+ti(Cs(E),{dateMode:n})}}}function Bu({dateModeTemplate:n,rangeSeparator:e}){return({value:r,selection:t})=>{let i=Ei(r,n,e),o=i.length===2&&i.every(b=>ko(b,n)),[a,s]=t,l=a>=r.length,d=a===0&&s>=r.length;if(!(l||d)||!o)return{value:r,selection:t};let[f,v]=i.map(b=>Fo(ki(b,n)));return{selection:t,value:f>v?i.reverse().join(e):r}}}function Es({mode:n,min:e,max:r,minLength:t,maxLength:i,dateSeparator:o=".",rangeSeparator:a=`${So}${Un}${So}`}){let s=n.split("/").join(o),l=Array.from(s).map(d=>o.includes(d)?d:/\d/);return Object.assign(Object.assign({},te),{mask:[...l,...Array.from(a),...l],overwriteMode:"replace",preprocessors:[Ro(),Fu({dateModeTemplate:s,dateSegmentSeparator:o,firstDateEndSeparator:a,pseudoFirstDateEndSeparators:zu}),Ds(),ws({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o}),Ps({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o})],postprocessors:[Ms({dateModeTemplate:s,dateSegmentSeparator:o,splitFn:d=>({dateStrings:Ei(d,s,a)}),uniteFn:(d,f)=>d.reduce((v,b,E)=>v+b+(!E&&f.includes(a)?a:""),"")}),Os({min:e,max:r,dateModeTemplate:s,rangeSeparator:a,dateSegmentSeparator:o}),Hu({dateModeTemplate:s,minLength:t,maxLength:i,max:r,rangeSeparator:a}),Bu({dateModeTemplate:s,rangeSeparator:a})]})}var r0=new RegExp(`[${Iu.map(wt).join("")}]$`);function ju({prefix:n,postfix:e}){return({elementState:r,data:t})=>{let{cleanValue:i}=ee(t,{prefix:n,postfix:e});return{elementState:r,data:i}}}function ks({decimalSeparator:n,isNegativeAllowed:e,precision:r,thousandSeparator:t,prefix:i,postfix:o,decimalPseudoSeparators:a=[],pseudoMinuses:s=[],minusSign:l}){let d=hs(i),f="\\d",v=e?`[${l}${s.map(rt=>`\\${rt}`).join("")}]?`:"",b=t?`[${f}${wt(t).replaceAll(/\s/g,"\\s")}]*`:`[${f}]*`,E=r>0?`([${wt(n)}${a.map(wt).join("")}]${f}{0,${Number.isFinite(r)?r:""}})?`:"",R=hs(o);return new RegExp(`^${d}${v}${b}${E}${R}$`)}function hs(n){return n?`${n.split("").map(e=>`${wt(e)}?`).join("")}`:""}function Ae(n,e="."){let r=!!n.match(new RegExp(`^\\D*[${jn}\\${Si}${Un}${Ao}${Vo}]`)),t=wt(e),i=n.replaceAll(new RegExp(`${t}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${t}]`,"g"),"").replace(e,".");return i?Number((r?Si:"")+i):NaN}function Uu(n){let e=String(n),[r,t]=e.split("e-"),i=e;if(t){let[,o]=r.split("."),a=Number(t)+((o==null?void 0:o.length)||0);i=n.toFixed(a)}return i}function Fs(n,{decimalSeparator:e,thousandSeparator:r}){let[t="",i=""]=n.split(e),[,o="",a=""]=t.match(new RegExp(`([^\\d${wt(r)}]+)?(.*)`))||[];return{minus:o,integerPart:a,decimalPart:i}}function $u({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:r=wu}){return r.filter(t=>t!==e&&t!==n)}function Wu({decimalSeparator:n,precision:e,decimalZeroPadding:r,prefix:t,postfix:i}){return e<=0||!r?ei:({value:o,selection:a})=>{let{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(o,{prefix:t,postfix:i});if(Number.isNaN(Ae(s,n)))return{value:o,selection:a};let[f,v=""]=s.split(n);return{value:l+f+n+v.padEnd(e,"0")+d,selection:a}}}function Gu({prefix:n,postfix:e,decimalSeparator:r,thousandSeparator:t}){return({value:i,selection:o})=>{let[a]=o,{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(i,{prefix:n,postfix:e}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:r,thousandSeparator:t}),E=!v&&!b&&s.includes(r);return!v&&!Number(b)&&a===(f+l).length||E?{selection:o,value:l+f+d}:{value:i,selection:o}}}function Yu({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:t,postfix:i,minusSign:o}){let a=!0,s=ks({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:o});return({elementState:l,data:d})=>{if(!a)return{elementState:l,data:d};a=!1;let{value:f,selection:v}=l,[b,E]=v,{extractedPrefix:R,cleanValue:rt,extractedPostfix:vt}=ee(f,{prefix:t,postfix:i}),Pt=qe({selection:[Math.max(b-R.length,0),Oe(E-R.length,0,rt.length)],value:rt},{mask:s}),[It,Gt]=Pt.selection;return{elementState:{selection:[It+R.length,Gt+R.length],value:R+Pt.value+vt},data:d}}}function Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=a=>{let s=wt(e);return a.replace(new RegExp(`^(\\D+)?[0${s}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${s}]+(?=[1-9])`),"$1")},o=(a,s)=>{let l=a.slice(0,s),d=a.slice(s).startsWith("0");return l.length-i(l).length+(d?1:0)};return({value:a,selection:s})=>{let[l,d]=s,{cleanValue:f,extractedPrefix:v,extractedPostfix:b}=ee(a,{prefix:r,postfix:t}),E=f.includes(n),[R,rt=""]=f.split(n),vt=i(R);if(R===vt)return{value:a,selection:s};let Pt=l-o(a,l),It=d-o(a,d);return{value:v+vt+(E?n:"")+rt+b,selection:[Math.max(Pt,0),Math.max(It,0)]}}}function Zu({min:n,max:e,decimalSeparator:r,minusSign:t}){return({value:i,selection:o})=>{let a=Ae(i,r),s=a>0?Math.min(a,e):Math.max(a,n);if(a&&s!==a){let l=`${s}`.replace(".",r).replace(Si,t);return{value:l,selection:[l.length,l.length]}}return{value:i,selection:o}}}function Xu({decimalSeparator:n,thousandSeparator:e,decimalZeroPadding:r}){return({elementState:t,data:i},o)=>{let{value:a,selection:s}=t,[l,d]=s,f=a.slice(l,d),v=r?[n,e]:[e],b=r&&l>a.indexOf(n)&&!!f.match(/^0+$/gi);return o!=="deleteBackward"&&o!=="deleteForward"||!v.includes(f)&&!b?{elementState:t,data:i}:{elementState:{value:a,selection:o==="deleteForward"?[d,d]:[l,l]},data:i}}}function Ku({decimalSeparator:n,precision:e,prefix:r,postfix:t}){let i=new RegExp(`^\\D*${wt(n)}`);return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f}=ee(s,{prefix:r,postfix:t}),[v,b]=l,E=Oe(v-f.length,0,d.length),R=Oe(b-f.length,0,d.length);if(e<=0||d.slice(0,E).includes(n)||d.slice(R).includes(n)||!a.match(i))return{elementState:o,data:a};let rt=d.slice(0,E).match(/\d+/);return{elementState:o,data:rt?a:`0${a}`}}}function fs({validCharacter:n,pseudoCharacters:e,prefix:r,postfix:t}){let i=new RegExp(`[${e.join("")}]`,"gi");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPostfix:f,extractedPrefix:v}=ee(s,{prefix:r,postfix:t});return{elementState:{selection:l,value:v+d.replace(i,n)+f},data:a.replace(i,n)}}}function qu({decimalSeparator:n,prefix:e,postfix:r}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t,[s,l]=a,{cleanValue:d}=ee(o,{prefix:e,postfix:r});return{elementState:t,data:!d.includes(n)||o.slice(s,l+1).includes(n)?i:i.replaceAll(new RegExp(wt(n),"gi"),"")}}}function Ju({thousandSeparator:n,decimalSeparator:e,prefix:r,postfix:t}){if(!n)return ei;let i=(...o)=>o.every(a=>/\s/.test(a));return({value:o,selection:a})=>{let{cleanValue:s,extractedPostfix:l,extractedPrefix:d}=ee(o,{prefix:r,postfix:t}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:e,thousandSeparator:n}),[E,R]=a,[rt,vt]=a,Pt=Array.from(v).reduceRight((It,Gt,pe)=>{let pi=!(!pe&&Gt===n)&&It.length&&(It.length+1)%4===0;return pi&&(Gt===n||i(Gt,n))?n+It:Gt===n&&!pi?(pe&&pe<=E&&rt--,pe&&pe<=R&&vt--,It):pi?(pe<=E&&rt++,pe<=R&&vt++,Gt+n+It):Gt+It},"");return{value:d+f+Pt+(s.includes(e)?e:"")+b+l,selection:[rt,vt]}}}function td({precision:n,decimalSeparator:e,prefix:r,postfix:t}){if(n>0)return ei;let i=new RegExp(`${wt(e)}.*$`,"g");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f,extractedPostfix:v}=ee(s,{prefix:r,postfix:t}),[b,E]=l,R=f+d.replace(i,"")+v;return{elementState:{selection:[Math.min(b,R.length),Math.min(E,R.length)],value:R},data:a.replace(i,"")}}}var gs=[0,0];function ed({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t});return Lo("blur",o=>{let a=i({value:o.value,selection:gs},{value:"",selection:gs}).value;zn(o,a)},{capture:!0})}function id({min:n,max:e,decimalSeparator:r}){return Lo("blur",(t,i)=>{let o=Ae(t.value,r),a=Oe(o,n,e);!Number.isNaN(o)&&o!==a&&zn(t,qe(Uu(a),i))},{capture:!0})}function nd({decimalSeparator:n,prefix:e,postfix:r}){return Lo("blur",t=>{let{cleanValue:i,extractedPostfix:o,extractedPrefix:a}=ee(t.value,{prefix:e,postfix:r}),s=a+i.replace(new RegExp(`^(\\D+)?${wt(n)}`),`$10${n}`)+o;zn(t,s)},{capture:!0})}function As({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:r=0,thousandSeparator:t=So,decimalSeparator:i=".",decimalPseudoSeparators:o,decimalZeroPadding:a=!1,prefix:s="",postfix:l="",minusSign:d=jn}={}){let f=[Si,Un,Ao,Vo,jn].filter(E=>E!==t&&E!==i&&E!==d),v=$u({decimalSeparator:i,thousandSeparator:t,decimalPseudoSeparators:o}),b=s.endsWith(i)&&r>0?`${s}${Du}`:s;return Object.assign(Object.assign({},te),{mask:ks({decimalSeparator:i,precision:r,thousandSeparator:t,prefix:b,postfix:l,isNegativeAllowed:e<0,minusSign:d}),preprocessors:[Ro(),Yu({decimalSeparator:i,decimalPseudoSeparators:v,pseudoMinuses:f,prefix:b,postfix:l,minusSign:d}),ju({prefix:b,postfix:l}),fs({validCharacter:d,pseudoCharacters:f,prefix:b,postfix:l}),fs({validCharacter:i,pseudoCharacters:v,prefix:b,postfix:l}),Ku({decimalSeparator:i,precision:r,prefix:b,postfix:l}),Xu({decimalSeparator:i,decimalZeroPadding:a,thousandSeparator:t}),td({precision:r,decimalSeparator:i,prefix:b,postfix:l}),qu({decimalSeparator:i,prefix:b,postfix:l})],postprocessors:[Zu({decimalSeparator:i,min:e,max:n,minusSign:d}),Lu(b),Ru(l),Ju({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),Wu({decimalSeparator:i,decimalZeroPadding:a,precision:r,prefix:b,postfix:l}),Gu({prefix:b,postfix:l,decimalSeparator:i,thousandSeparator:t})],plugins:[ed({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),nd({decimalSeparator:i,prefix:b,postfix:l}),id({min:e,max:n,decimalSeparator:i})],overwriteMode:a?({value:E,selection:[R]})=>R<=E.indexOf(i)?"shift":"replace":"shift"})}var od=["type","range","tuiSlider",""];var rd=7;function Vs(n,e){let r=n.findIndex((o,a)=>a&&e(o)),t=n[r-1]||n[0],i=n[r]||n[n.length-1];return[t,i]}function ad(n,e){let[[r,t],[i,o]]=Vs(e,([l,d])=>n<=l),a=(n-r)/(i-r),s=(o-t)*a+t;return Nr(s,rd)}function sd(n,e){let[[r,t],[i,o]]=Vs(e,([s,l])=>n<=l),a=(n-t)/(o-t)||0;return(i-r)*a+r}var ld={size:"m",trackColor:"var(--tui-background-neutral-2)"},cd=tt(ld);var No=(()=>{let e=class e{constructor(){var t;this.injector=h(Cr),this.control=h(se,{self:!0,optional:!0}),this.options=h(cd),this.size=this.options.size,this.segments=1,this.el=bt(),this.control instanceof Mt&&((t=this.control.valueChanges)==null||t.pipe($t(h(Zt)),hr(1)).subscribe())}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get min(){return Number(this.el.min)}get max(){return Number(this.el.max||100)}get value(){return!this.hasKeySteps&&this.control instanceof Mt?this.control.viewModel:Number(this.el.value)||0}set value(t){this.el.value=`${t}`}get segmentWidth(){return 100/Math.max(1,this.segments)}get hasKeySteps(){return!!this.injector.get(ud,null)}get step(){return Number(this.el.step)||1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["input","type","range","tuiSlider",""]],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(){return 0}),i&2&&(B("data-size",o.size),w("--tui-slider-track-color",o.options.trackColor)("--tui-slider-fill-ratio",o.valueRatio)("--tui-slider-segment-width",o.segmentWidth,"%"))},inputs:{size:"size",segments:"segments"},standalone:!0,features:[P],attrs:od,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{position:relative;display:block;width:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]::-webkit-slider-container{border-radius:inherit}[data-size=m][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}[data-size=s][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[data-size=m][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[data-size=s][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=m][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[_nghost-%COMP%]::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}'],changeDetection:0});let n=e;return et([ot],n.prototype,"hasKeySteps",null),n})(),ud=(()=>{let e=class e extends _a{constructor(){super(...arguments),this.slider=h(Yi(()=>No))}writeValue(t){if(t===null)return;let i=an(t,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.onChange(ad(this.slider.valueRatio*100,this.keySteps))}transformToNativeValue(t){let{min:i,max:o}=this.slider;return sd(t,this.keySteps)*(o-i)/100+i}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(i,o){i&1&&O("blur",function(){return o.onTouched()})("input",function(){return o.updateControlValue()})("change",function(){return o.updateControlValue()}),i&2&&(Ht("disabled",o.disabled()),B("aria-valuenow",o.value())("aria-valuemin",o.min)("aria-valuemax",o.max))},inputs:{keySteps:"keySteps"},standalone:!0,features:[k([ha(0)]),H]});let n=e;return n})();var dd=["tuiProgressLabel",""],pd=[[["progress"]],[["tui-progress-circle"]],"*"],md=["progress","tui-progress-circle","*"],hd={color:null,size:"m"},fd=tt(hd);var Rs=(()=>{let e=class e{constructor(){this.options=h(fd),this.animationDelay$=Rt(!0).pipe(Ne(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(i,o){i&2&&(B("data-size",o.size),w("--tui-progress-color",o.color)("--progress-ratio",o.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[P],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(i,o){i&1&&(M(0,"progress",0),yr(),p(1,"svg",1),M(2,"circle",2)(3,"circle",3),S(4,"async"),m()),i&2&&(u("max",o.max)("value",o.value),c(3),N("t-progress_filled",L(4,4,o.animationDelay$)))},dependencies:[$],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let n=e;return n})(),Ls=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[P],attrs:dd,ngContentSelectors:md,decls:4,vars:0,consts:[[1,"t-label"]],template:function(i,o){i&1&&(ht(pd),j(0),j(1,1),p(2,"span",0),j(3,2),m())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let n=e;return n})();var $n={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"};var zo=1.5,gd=2.5;function Ns(n,e=!1,r=!1,t=!1,i="m"){let o=i==="s"?0:.25,a=0;return n&&(a+=zo+o),e&&(a+=zo+o),r&&(a+=zo+o),t&&(a+=gd+o),a}var B0=`?v=${$r}`;var _d=/^((?!chrome|android).)*safari/i;function zs(n){return ca(n)||_d.test(n.userAgent.toLowerCase())}var j0=va({limitWidth:"fixed",align:"right"});var X0=tt({AD:"+376###-###",AE:"+971-##-###-####",AF:"+93##-###-####",AG:"+1(268) ###-####",AI:"+1(264) ###-####",AL:"+355(###) ###-###",AM:"+374##-###-###",AO:"+244(###) ###-###",AR:"+54(###) ####-####",AT:"+43(###) ###-####",AU:"+61#-####-####",AW:"+297###-####",AZ:"+994##-###-##-##",BA:"+387 ###-####-##",BB:"+1(246) ###-####",BD:"+880##-###-###",BE:"+32(###) ###-###",BF:"+226##-##-####",BG:"+359(###) ###-###",BH:"+973####-####",BI:"+257##-##-####",BJ:"+229##-##-####",BL:"+590 ## ## ## ## ##",BM:"+1(441) ###-####",BN:"+673###-####",BO:"+591#-###-####",BQ:"+599-###-####",BR:"+55(##) ####-####",BS:"+1(242) ###-####",BT:"+975#-###-###",BW:"+267##-###-###",BY:"+375(##) ###-##-##",BZ:"+501###-####",CA:"+1(###) ###-####",CD:"+243(###) ###-###",CF:"+236-##-##-####",CG:"+242##-###-####",CH:"+41##-###-####",CI:"+225##-##-###-###",CL:"+56#-####-####",CM:"+237#####-####",CN:"+86(###) ####-####",CO:"+57(###) ###-####",CR:"+506####-####",CU:"+53#-###-####",CV:"+238(###) ##-##",CW:"+5999-###-####",CY:"+357##-###-###",CZ:"+420(###) ###-###",DE:"+49(###) ###-###-##",DJ:"+253##-##-##-##",DK:"+45##-##-##-##",DM:"+1(767) ###-####",DO:"+1(###) ###-####",DZ:"+213##-###-####",EC:"+593##-###-####",EE:"+372####-####",EG:"+20(###) ###-####",ER:"+291#-###-###",ES:"+34(###) ###-###",ET:"+251##-###-####",FI:"+358(###) ###-##-##",FJ:"+679##-#####",FK:"+500#####",FM:"+691###-####",FR:"+33 ## ## ## ## ##",GA:"+241##-##-##-##",GB:"+44##-####-####",GD:"+1(473) ###-####",GE:"+995(###) ###-###",GF:"+594 ## ## ## ## ##",GH:"+233(###) ###-###",GI:"+350###-#####",GL:"+299##-##-##",GM:"+220(###) ##-##",GN:"+224##-###-###",GP:"+590 ## ## ## ## ##",GQ:"+240##-###-####",GR:"+30(###) ###-####",GT:"+502#-###-####",GW:"+245#-######",GY:"+592###-####",HK:"+852####-####",HN:"+504####-####",HR:"+385##-###-####",HT:"+509##-##-####",HU:"+36(###) ###-###",ID:"+62(###) ###-##-###",IE:"+353(###) ###-###",IL:"+972##-###-####",IN:"+91(####) ###-###",IQ:"+964(###) ###-####",IR:"+98(###) ###-####",IS:"+354###-####",IT:"+39(###) ####-###",JM:"+1(876) ###-####",JO:"+962#-####-####",JP:"+81-##-####-####",KE:"+254###-######",KG:"+996(###) ###-###",KH:"+855##-###-###",KM:"+269##-#####",KN:"+1(869) ###-####",KP:"+850####-#############",KR:"+82##-###-####",KW:"+965####-####",KY:"+1(345) ###-####",KZ:"+7(###) ###-##-##",LA:"+856##-##-###-###",LB:"+961##-###-###",LC:"+1(758) ###-####",LI:"+423(###) ###-####",LK:"+94##-###-####",LR:"+231##-###-###",LS:"+266#-###-####",LT:"+370(###) ##-###",LU:"+352(###) ###-###",LV:"+371##-###-###",LY:"+218##-###-####",MA:"+212##-####-###",MC:"+377###-###-###",MD:"+373####-####",ME:"+382##-###-###",MF:"+590 ## ## ## ## ##",MG:"+261##-##-#####",MK:"+389##-###-###",ML:"+223##-##-####",MM:"+95##-###-###",MN:"+976##-##-####",MO:"+853####-####",MQ:"+596 ## ## ## ## ##",MR:"+222##-##-####",MS:"+1(664) ###-####",MT:"+356####-####",MU:"+230####-####",MV:"+960###-####",MW:"+265#-####-####",MX:"+52(###) ###-####",MY:"+60(###) ###-###",MZ:"+258##-###-###",NA:"+264##-###-####",NC:"+687 ### ###",NE:"+227##-##-####",NG:"+234(###) ###-####",NI:"+505####-####",NL:"+31##-###-####",NO:"+47(###) ##-###",NP:"+977##-###-###",NZ:"+64(###) ###-####",OM:"+968##-###-###",PA:"+507###-####",PE:"+51(###) ###-###",PF:"+689 ## ## ## ##",PG:"+675(###) ##-###",PH:"+63(###) ###-####",PK:"+92(###) ###-####",PL:"+48(###) ###-###",PT:"+351##-###-####",PW:"+680###-####",PY:"+595(###) ###-###",QA:"+974####-####",RE:"+262 ## ## ## ## ##",RO:"+40##-###-####",RS:"+381##-###-####",RU:"+7### ###-##-##",RW:"+250(###) ###-###",SA:"+966#-####-####",SB:"+677###-####",SC:"+248#-###-###",SD:"+249##-###-####",SE:"+46##-###-####",SG:"+65####-####",SH:"+290####",SI:"+386##-###-###",SK:"+421(###) ###-###",SL:"+232##-######",SM:"+378####-######",SN:"+221##-###-####",SO:"+252##-###-###",SR:"+597###-####",ST:"+239##-#####",SV:"+503##-##-####",SX:"+1(721) ###-####",SY:"+963##-####-###",SZ:"+268##-##-####",TC:"+1(649) ###-####",TD:"+235##-##-##-##",TG:"+228##-###-###",TH:"+66##-###-####",TJ:"+992##-###-####",TL:"+670###-#####",TM:"+993#-###-####",TN:"+216##-###-###",TO:"+676#####",TR:"+90(###) ###-####",TT:"+1(868) ###-####",TW:"+886#-####-####",TZ:"+255##-###-####",UA:"+380(##) ###-##-##",UG:"+256(###) ###-###",US:"+1(###) ###-####",UY:"+598#-###-##-##",UZ:"+998##-###-####",VC:"+1(784) ###-####",VE:"+58(###) ###-####",VG:"+1(284)###-####",VN:"+84(###) ####-###",VU:"+678##-#####",WS:"+685##-####",XK:"+383##-###-###",YE:"+967###-###-###",YT:"+262 ## ## ## ## ##",ZA:"+27##-###-####",ZM:"+260##-###-####",ZW:"+263#-######",VA:"+39 #### ###-####",WF:"+681 ## ##-##",VI:"+1(340) ###-####",JE:"+44(####) ######",AC:"+247###-####",TV:"+686###-####",TK:"+690###-####",TA:"+290###-####",SS:"+211### ###-###",SJ:"+47 ## ##-##-##",PS:"+970 #### ###-###",PR:"+1(###) ###-####",PM:"+508 ### ##-##-##",NU:"+683 ###-####",NR:"+674 ###-####",NF:"+672##-####",MP:"+1(670) ###-####",MH:"+692 ###-####",KI:"+686 ####-####",IO:"+246 ### ####",IM:"+44(####) ######",GU:"+1(###) ###-###",GG:"+44(###) ###-####",FO:"+298 ######",EH:"+212 #### #####",CX:"+61 # ####-####",CK:"+682 ## ###",CC:"+61 # ####-####",AX:"+358 ## ###-####",AS:"+1(###) ###-####"}),Ho=new dt("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function we(n){return gt(Ho,n)}var Hs=new dt("[TUI_FONTS_READY]",{factory:()=>{var n;return pr(((n=h(Se).fonts)==null?void 0:n.ready)||Bi).pipe(Wi({bufferSize:1,refCount:!1}))}}),K0=tt({}),q0=yt(()=>zs(h(Qr))),J0=yt(()=>!!h(yi).chrome),t_=yt(()=>{var n;return typeof((n=h(yi))==null?void 0:n.mozCancelFullScreen)<"u"}),e_=yt(()=>h(yi).location.host.endsWith("stackblitz.io")),i_=new dt("[TUI_MONTH_FORMATTER]");var n_=new dt("[TUI_SANITIZER]"),Bs=tt("textfield"),Fi=new dt("[TUI_TEXTFIELD_HOST]");function ye(n){return gt(Fi,n)}var o_=yt(()=>h(yi).matchMedia("(any-pointer: coarse)").matches),js=new dt("[TUI_VALUE_ACCESSOR]");var vd="tui_interactive_",Bo=(()=>{let e=class e{constructor(){this.focusVisible=!1,this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new q,this.focusVisibleChange=new q,this.autoIdString=`${vd}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocused(){return!this.computedDisabled&&(this.pseudoFocus??this.focused)}get computedFocusVisible(){return!this.computedDisabled&&(this.pseudoFocus??this.focusVisible)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}};e.autoId=0,e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:7,hostBindings:function(i,o){i&2&&(B("data-focused",o.pseudoFocus),N("_disabled",o.computedDisabled)("_focused",o.computedFocused)("_focus-visible",o.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}});let n=e;return n})(),Ve=(()=>{let e=class e extends Bo{constructor(){super(),this.ngControl=h(se,{optional:!0}),this.refresh$=new xt,this.onTouched=lo,this.onChange=lo,this.fallbackValue=this.getFallbackValue(),this.destroyRef=h(fe),this.cdr=h(Zt),this.valueTransformer=h(ga,{optional:!0}),this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){return this.previousInternalValue??this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){return this.rawValue??this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t;return((t=this.controlName)==null?void 0:t.toString())??null}get controlName(){var t,i;return((i=(t=this.ngControl)==null?void 0:t.name)==null?void 0:i.toString())??null}ngOnInit(){this.refresh$.pipe(Ne(0),he(null),it(()=>{var t;return(t=this.ngControl)==null?void 0:t.control}),re(Ut),zt(),Gi(t=>me(t.valueChanges,t.statusChanges)),ft(this.destroyRef)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=i=>{t(this.toControlValue(i))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){let i=this.ngControl instanceof Mt&&this.previousInternalValue===void 0?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(i))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,i){return t===i}get rawValue(){let{ngControl:t}=this;if(t===null)return;let i=t instanceof Mt&&this.previousInternalValue===void 0?t.viewModel:t.value;return this.fromControlValue(i)}safeNgControlData(t,i){return(this.ngControl&&t(this.ngControl))??i}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:4,hostBindings:function(i,o){i&2&&N("_readonly",o.readOnly)("_invalid",o.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[H]});let n=e;return n})();function ii(n){return gt(Ve,n)}var Pe=(()=>{let e=class e{constructor(){this.host=h(Ve,{optional:!0})}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var t;return((t=this.host.value)==null?void 0:t.toString())||""}process(t){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e});let n=e;return n})(),ie=(()=>{let e=class e{constructor(){this.change$=new xt}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,features:[be]});let n=e;return n})();var ni=(()=>{let e=class e extends Ve{getFallbackValue(){return null}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();var Wn=(()=>{let e=class e{constructor(){var t;this.el=bt(),this.host=h(_e,{self:!0}),this.external=h(Ca,{optional:!0}),this.host.driver.pipe(zt(),ft()).subscribe(i=>{var o;return(o=this.external)==null?void 0:o.tuiDropdownOpenChange.next(i)}),(t=this.external)==null||t.tuiDropdownOpenChange.pipe(zt(),ft()).subscribe(i=>{var o;i&&((o=ua({initial:this.el,root:this.el}))==null||o.focus()),this.host.toggle(i)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiDropdownOpenMonitor",""]],standalone:!0});let n=e;return n})();var jo=class{constructor(e,r,t,i,o,a,s,l,d,f,v,b,E){this.change$=e,this.options=r,this.legacyAppearance=t,this.appearanceDirective=i,this.cleanerDirective=o,this.customContentDirective=a,this.iconDirective=s,this.iconLeftDirective=l,this.labelOutsideDirective=d,this.sizeDirective=f,this.prefixDirective=v,this.postfixDirective=b,this.fillerDirective=E}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconStart(){return this.iconLeftDirective.iconStart}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}},Us={iconCleaner:"@tui.x",hintOnDisabled:!1},Uo=tt(Us);var $s=yt(()=>new Cd),Cd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.appearance=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[0,"tuiTextfieldAppearance","appearance"]},features:[k([gt($s,e)]),H]});let n=e;return n})(),$o=yt(()=>new yd),yd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.cleaner=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[0,"tuiTextfieldCleaner","cleaner"]},features:[k([gt($o,e)]),H]});let n=e;return n})(),Ws=yt(()=>new bd),bd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[0,"tuiTextfieldCustomContent","customContent"]},features:[k([gt(Ws,e)]),H]});let n=e;return n})(),Gs=yt(()=>new Ai),Ai=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.filler=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[0,"tuiTextfieldFiller","filler"]},features:[k([gt(Gs,e)]),H]});let n=e;return n})(),Ys=yt(()=>new Vi),Vi=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[0,"tuiTextfieldIcon","icon"]},features:[k([gt(Ys,e)]),H]});let n=e;return n})(),Qs=yt(()=>new xd),xd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconStart:[0,"tuiTextfieldIconLeft","iconStart"]},features:[k([gt(Qs,e)]),H]});let n=e;return n})(),Zs=yt(()=>new Td),Td=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.labelOutside=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[0,"tuiTextfieldLabelOutside","labelOutside"]},features:[k([gt(Zs,e)]),H]});let n=e;return n})(),Xs=yt(()=>new Wo),Wo=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.postfix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[0,"tuiTextfieldPostfix","postfix"]},features:[k([gt(Xs,e)]),H]});let n=e;return n})(),Ks=yt(()=>new Go),Go=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.prefix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[0,"tuiTextfieldPrefix","prefix"]},features:[k([gt(Ks,e)]),H]});let n=e;return n})(),ne=yt(()=>new Md),Md=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.size="l"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[0,"tuiTextfieldSize","size"]},features:[k([gt(ne,e)]),H]});let n=e;return n})(),Ie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})(),oi=new dt("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ri=[{provide:oi,deps:[Zt,Uo,Bs,$s,$o,Ws,Ys,Qs,Zs,ne,Ks,Xs,Gs],useFactory:(n,e,r,...t)=>{let i=me(...t.map(({change$:o})=>o||mr)).pipe($t(n),ft());return i.subscribe(),new jo(i,e,r,...t)}}];var Od={provide:js,deps:[[new gi,new vr,Fr]],useFactory:lr},ri=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiValueAccessor",""]],features:[k([Od])]});let n=e;return n})(),ai=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();var qs=(()=>{let e=class e{constructor(){this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(i,o){i&2&&(B("data-appearance",o.appearance)("data-state",o.interactiveState),N("_invalid",o.computedInvalid)("_focused",o.computedFocused)("_no-hover",o.noHover)("_no-active",o.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"}});let n=e;return n})(),Gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();function Pd(n,e){if(n&1&&M(0,"tui-icon",2),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Id(n,e){n&1&&Et(0)}var Dd={iconSmall:"@tui.chevron-down",iconLarge:"@tui.chevron-down"},Sd=tt(Dd);var Yo=(()=>{let e=class e{constructor(){this.control=h(Ve,{optional:!0}),this.textfieldSize=h(ne),this.options=h(Sd),this.directive=h(_e,{optional:!0})}get rotated(){var t;return((t=this.directive)==null?void 0:t.tuiDropdownOpen)||!!this.control.pseudoOpen||!1}get small(){return!la(this.textfieldSize.size)}get arrowIcon(){return this.small?this.options.iconSmall:this.options.iconLarge}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-arrow"]],hostVars:4,hostBindings:function(i,o){i&2&&N("_rotated",o.rotated)("_small",o.small)},standalone:!0,features:[P],decls:3,vars:4,consts:[[3,"icon",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"icon"]],template:function(i,o){i&1&&(_(0,Pd,1,1,"tui-icon",0)(1,Id,1,0,"ng-container",1),S(2,"async")),i&2&&(u("polymorpheusOutlet",o.arrowIcon),c(),u("ngIf",L(2,2,o.directive==null?null:o.directive.tuiDropdownOpenChange)))},dependencies:[ut,Y,$,W],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),Js=new gn(Yo),Ed={interactive:Js,disabled:Js},kd=tt(Ed);function Fd(n,e){if(n&1&&M(0,"tui-icon",3),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}var el=(()=>{let e=class e extends de{constructor(){super(...arguments),this.isMobile=h(Qe),this.describeId=""}get computedAppearance(){return this.appearance||""}stopOnMobile(t){var i;this.isMobile&&(t.preventDefault(),t.stopPropagation()),(i=this.driver$)==null||i.toggle()}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-tooltip"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.driver$=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("mousedown",function(s){return o.stopOnMobile(s)}),i&2&&B("data-appearance",o.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[H],decls:4,vars:11,consts:[["driver","tuiHintHover"],["automation-id","tui-tooltip__icon","tuiAppearance","icon",1,"t-tooltip-icon",3,"tuiAppearanceState","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["class","t-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-icon",3,"icon"]],template:function(i,o){if(i&1&&(p(0,"span",1,0),S(2,"async"),_(3,Fd,1,1,"tui-icon",2),m()),i&2){let a=V(1);u("tuiAppearanceState",L(2,9,a)?"hover":null)("tuiHint",o.content)("tuiHintAppearance",o.computedAppearance)("tuiHintContext",o.context)("tuiHintDescribe",o.describeId)("tuiHintDirection",o.direction)("tuiHintHideDelay",o.hideDelay)("tuiHintShowDelay",o.showDelay),c(3),u("polymorpheusOutlet",o.icon)}},dependencies:[W,ut,X,Tn,Mn,$],styles:["[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-primary)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-text-negative)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),il=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W,Ma]});let n=e;return n})();var Vd=["pre"],Rd=["focusableElement"],Ld=[[["input"]],[["select"]],[["tuiContent"]],"*"],Nd=["input","select","tuiContent","*"],Qo=n=>({$implicit:n});function zd(n,e){n&1&&Et(0)}function Hd(n,e){n&1&&Et(0)}function Bd(n,e){n&1&&(p(0,"div",17),j(1,2),m())}function jd(n,e){if(n&1&&M(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Ud(n,e){if(n&1&&(p(0,"div",18),_(1,jd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconLeftContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function $d(n,e){if(n&1&&(p(0,"label",21),j(1,3),m()),n&2){let r=g();N("t-placeholder_raised",r.placeholderRaised),u("for",r.computedId)}}function Wd(n,e){if(n&1&&M(0,"tui-icon",24),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Gd(n,e){if(n&1&&(p(0,"div",22),_(1,Wd,1,1,"tui-icon",23),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.controller.customContent)}}function Yd(n,e){if(n&1&&M(0,"tui-icon",27),n&2){let r=e.polymorpheusOutlet;w("border","0.25rem solid transparent"),u("icon",r.toString())}}function Qd(n,e){if(n&1){let r=A();p(0,"span",25),O("click.stop",function(){C(r);let i=g();return y(i.clear())}),_(1,Yd,1,3,"tui-icon",26),m()}if(n&2){let r=g();c(),u("polymorpheusOutlet",r.iconCleaner||r.controller.options.iconCleaner)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function Zd(n,e){if(n&1&&M(0,"tui-tooltip",28),n&2){let r=g();u("content",r.hintOptions==null?null:r.hintOptions.content)("describeId",r.computedId)}}function Xd(n,e){if(n&1&&M(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Kd(n,e){if(n&1&&(p(0,"div",29),_(1,Xd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}var qd=["tuiTextfieldLegacy",""],Jd=(()=>{let e=class e{constructor(){this.textfield=h(Ho),this.fontsReady$=h(Hs),this.prefix$=new eo(""),this.pre$=me(this.fontsReady$,this.prefix$).pipe(Ne(0),re(()=>{var t;return!!((t=this.pre)!=null&&t.nativeElement.isConnected)}),it(()=>{var t;return((t=this.pre)==null?void 0:t.nativeElement.offsetWidth)||0}),zt())}ngDoCheck(){this.prefix$.next(this.prefix)}get isContextTable(){return this.textfield.appearance==="table"}get filler(){let{focused:t,placeholder:i,exampleText:o,value:a,textfield:s}=this;return i&&o?"":t?o||s.filler.slice(a.length):""}get value(){return this.textfield.value}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}get placeholder(){var t;return((t=this.textfield.nativeFocusableElement)==null?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-value-decoration"]],viewQuery:function(i,o){if(i&1&&ct(Vd,7,St),i&2){let a;Q(a=Z())&&(o.pre=a.first)}},hostVars:4,hostBindings:function(i,o){i&1&&O("animationstart",function(){return o.ngDoCheck()}),i&2&&N("_table",o.isContextTable)("_filler",o.filler)},decls:5,vars:4,consts:[["pre",""],[1,"t-prefix",3,"textContent"],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(i,o){i&1&&M(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),i&2&&(u("textContent",o.prefix),c(2),u("textContent",o.value),c(),u("textContent",o.filler),c(),u("textContent",o.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-tertiary);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-primary)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']});let n=e;return n})(),tp={s:1.25,m:1.75,l:2.25},Vt=(()=>{let e=class e extends Bo{constructor(){super(...arguments),this.legacyOptions=h(Uo),this.el=bt(),this.options=h(Xa),this.controller=h(oi),this.hintOptions=h(de,{optional:!0}),this.autofilled=!1,this.editable=!0,this.iconCleaner=this.legacyOptions.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.value="",this.valueChange=new q}get prefix(){return this.controller.prefix}get postfix(){return this.controller.postfix}get filler(){return this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return pa(this.el)}get appearance(){return this.options.appearance()==="table"?"table":this.controller.appearance}onModelChange(t){this.updateValue(t)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!((t=this.content)!=null&&t.length)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Ns(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var o;let i=(((o=this.nativeFocusableElement)==null?void 0:o.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!i}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconStart}get showHint(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&(this.legacyOptions.hintOnDisabled||!this.computedDisabled)}get name(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return hi(t,"scroll").pipe(it(()=>-1*Math.max(t.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){let{nativeFocusableElement:i}=this;!i||t.target===i||(t.preventDefault(),i.focus())}onAutofilled(t){this.updateAutofilled(t)}detectRetargetFromLabel(t){zr(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return tp[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.content=s)}},viewQuery:function(i,o){if(i&1&&ct(Rd,5),i&2){let a;Q(a=Z())&&(o.focusableElement=a.first)}},hostVars:15,hostBindings:function(i,o){i&1&&O("focusin",function(){return o.onFocused(!0)})("focusout",function(){return o.onFocused(!1)}),i&2&&(B("data-size",o.size),w("--border-start",o.borderStart,"rem")("--border-end",o.borderEnd,"rem"),N("_autofilled",o.autofilled)("_label-outside",o.options.appearance()==="table"||o.controller.labelOutside)("_readonly",o.readOnly)("_invalid",o.computedInvalid)("_hidden",o.inputHidden))},inputs:{editable:"editable",iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},features:[k([we(e),Ri]),H],ngContentSelectors:Nd,decls:24,vars:37,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"ngModelChange","disabled","id","ngModel","readOnly","tabIndex"],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["tuiAppearance","icon",3,"icon",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiAppearance","icon",3,"icon"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"icon"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"icon","border",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"icon"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,o){if(i&1){let a=A();ht(Ld),_(0,zd,1,0,"ng-container",2),S(1,"async"),_(2,Hd,1,0,"ng-container",2),S(3,"async"),p(4,"div",3),S(5,"async"),O("click.prevent.silent",function(l){return C(a),y(o.detectRetargetFromLabel(l))})("mousedown",function(l){return C(a),y(o.onMouseDown(l))}),j(6),j(7,1),p(8,"input",4,0),O("ngModelChange",function(l){return C(a),y(o.onModelChange(l))}),m(),_(10,Bd,2,0,"div",5),p(11,"div",6),_(12,Ud,2,4,"div",7),p(13,"div",8),_(14,$d,2,3,"label",9),p(15,"div",10),M(16,"tui-value-decoration",11,1),S(18,"async"),m()(),p(19,"div",12),_(20,Gd,2,1,"div",13)(21,Qd,2,4,"span",14)(22,Zd,1,2,"tui-tooltip",15)(23,Kd,2,4,"div",16),m()()()}if(i&2){let a=V(9),s=V(17);u("ngIf",L(1,29,o.content==null?null:o.content.changes)),c(2),u("ngIf",L(3,31,o.hintOptions==null?null:o.hintOptions.change$)),c(2),w("--text-indent",L(5,33,s.pre$),"px"),u("active",o.pseudoActive)("appearance",o.appearance)("disabled",o.disabled)("focus",o.computedFocused)("hover",o.pseudoHover)("invalid",o.computedInvalid)("readOnly",o.readOnly),c(4),u("disabled",o.computedDisabled)("id",o.id)("ngModel",o.value)("readOnly",o.readOnly||!o.editable)("tabIndex",o.computedFocusable?0:-1),B("aria-invalid",o.computedInvalid)("name",o.name),c(2),u("ngIf",o.inputHidden),c(2),u("ngIf",o.iconLeftContent),c(2),u("ngIf",o.hasPlaceholder),c(2),w("text-indent",L(18,35,o.getIndent$(a)),"px"),N("t-has-value",o.value),c(4),u("ngIf",o.hasCustomContent),c(),u("ngIf",o.hasCleaner),c(),u("ngIf",o.showHint),c(),u("ngIf",o.iconContent)}},dependencies:[Y,Ue,Ft,Mt,ut,qs,el,W,X,Jd,$],styles:['[_nghost-%COMP%]{position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){.t-input[_ngcontent-%COMP%]:active{font-size:1rem}}.t-input[inputMode=none][_ngcontent-%COMP%]{caret-color:transparent}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-text-negative)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-tertiary)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto;border:.25rem solid transparent}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.125rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size=s]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}[data-size=s][_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0});let n=e;return et([ot],n.prototype,"getIndent$",null),n})(),li=(()=>{let e=class e extends Pe{constructor(){super(...arguments),this.host=h(Vt)}get readOnly(){return this.host.readOnly||!this.host.editable}onValueChange(t){this.host.onModelChange(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-primitive-textfield"]],features:[k([ye(e)]),H]});let n=e;return n})(),nl=(()=>{let e=class e{constructor(){this.el=bt(),this.idService=h(vn),this.controller=h(oi),this.host=h(Fi),this.host.process(this.el)}get id(){return this.el.id||this.idService.generate()}get inputMode(){return this.el.inputMode||this.host.inputMode}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["input","tuiTextfieldLegacy",""],["textarea","tuiTextfieldLegacy",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(s){return o.host.onValueChange(s.target.value)}),i&2&&(Ht("tabIndex",o.host.focusable?0:-1)("readOnly",o.host.readOnly)("value",o.host.value),B("id",o.id)("inputMode",o.inputMode)("aria-invalid",o.host.invalid)("disabled",o.host.disabled||null))},features:[k([Ri])],attrs:qd,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){[_nghost-%COMP%]:active{font-size:1rem}}[inputMode=none][_nghost-%COMP%]{caret-color:transparent}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0});let n=e;return n})(),De=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,At,Gn,il,W]});let n=e;return n})();var ep=["*",[["input"]],[["tuiContent"]]],ip=["*","input","tuiContent"];function np(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function op(n,e){if(n&1&&(p(0,"div",6),_(1,np,2,1,"ng-container",7),m()),n&2){g();let r=V(9);c(),u("polymorpheusOutlet",r)}}function rp(n,e){if(n&1){let r=A();p(0,"section",8)(1,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),x(2," + "),m(),p(3,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(-i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),x(4," - "),m()()}if(n&2){let r=g(),t=V(1);c(),u("appearance",t.appearance)("disabled",!r.canIncrement)("iconStart",r.icons.up),c(2),u("appearance",t.appearance)("disabled",!r.canDecrement)("iconStart",r.icons.down)}}function ap(n,e){n&1&&Et(0)}function sp(n,e){n&1&&j(0,2)}var rl={icons:{up:"@tui.plus",down:"@tui.minus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0},al=tt(rl);function sl(n){return Xt(al,n,rl)}var lp=18,cp=new dt(""),ll=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isIOS=h(ma),this.textfieldSize=h(ne),this.options=h(al),this.unfinishedValue="",this.polymorpheusValueContent=ge,this.valueTransformer=h(cp,{optional:!0}),this.numberFormat=ea,this.controller=h(oi),this.numberFormat$=h(ia).pipe($t(this.cdr),ft()).subscribe(t=>{this.numberFormat=t}),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":this.precision?"decimal":"numeric"}get calculatedMaxLength(){let i=!!this.precision&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0,o=this.numberFormat.thousandSeparator.repeat(5).length;return lp+i+o}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}onValueChange(t){let i=Ae(t,this.numberFormat.decimalSeparator);if(this.unfinishedValue=null,Number.isNaN(i)){this.value=null;return}if(this.isNativeValueNotFinished){this.unfinishedValue=t,this.cdr.markForCheck();return}ithis.computedMax||(this.value=i)}writeValue(t){super.writeValue(t),this.nativeValue=this.formattedValue}get size(){return this.textfieldSize.size}get icons(){return this.options.icons}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get isNegativeAllowed(){return this.computedMin<0}get formattedValue(){return this.value!==null?this.getFormattedValue(this.value||0):""}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax:t[d.length,rt.length-f.length])]})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-input-number"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.polymorpheusValueContent=s)}},viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("keydown.arrowDown",function(){return o.onArrow(-o.step)})("keydown.arrowUp",function(){return o.onArrow(o.step)}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",step:"step"},features:[k([we(e),ii(e),Ri]),H],ngContentSelectors:ip,decls:10,vars:14,consts:[["textfield",""],["valueContent",""],["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value"],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tabindex","-1","tuiIconButton","","type","button",1,"t-button",3,"click.prevent","mousedown.prevent","appearance","disabled","iconStart"]],template:function(i,o){if(i&1){let a=A();ht(ep),p(0,"tui-primitive-textfield",2,0),O("focusedChange",function(l){return C(a),y(o.onFocused(l))})("valueChange",function(l){return C(a),y(o.onValueChange(l))}),j(2),j(3,1,["ngProjectAs","input",5,["input"]]),_(4,op,2,1,"div",3),m(),_(5,rp,5,6,"section",4)(6,ap,1,0,"ng-container",5),S(7,"async"),_(8,sp,1,0,"ng-template",null,1,J)}i&2&&(u("disabled",o.computedDisabled)("focusable",o.focusable)("invalid",o.computedInvalid)("maskito",o.mask)("pseudoActive",o.pseudoActive)("pseudoFocus",o.computedFocused)("pseudoHover",o.pseudoHover)("readOnly",o.readOnly)("value",o.computedValue),c(4),u("ngIf",o.polymorpheusValueContent.length),c(),u("ngIf",o.step),c(),u("ngIf",L(7,12,o.polymorpheusValueContent.changes)))},dependencies:[Y,Je,Vt,li,Go,Wo,ut,ri,ue,$],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMin",null),et([ot],n.prototype,"computeMax",null),et([ot],n.prototype,"calculateMask",null),n})(),cl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-number"]],features:[k([ye(e)]),H]});let n=e;return n})(),ul=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,ai]});let n=e;return n})();function up(n,e){if(n&1&&M(0,"tui-icon",3),n&2){let r=g();u("icon",r.icons.check)("tuiScrollIntoView",!0)}}function dp(n,e){n&1&&M(0,"span",4)}var pp=(()=>{let e=class e{constructor(){this.host=h(ya),this.el=bt(),this.changeDetection$=new xt,this.abstractControl=h(Ve,{optional:!0}),this.control=h(se),this.option=h(qt),this.dataList=h(ve,{optional:!0}),this.icons=h(un),this.context=h(ra),this.selected$=me(this.changeDetection$,this.control.valueChanges||Bi,ho(this.el,"animationstart")).pipe(he(null),it(()=>this.selected),zt())}ngOnInit(){Promise.resolve().then(()=>{var t,i;Ut(this.option.value)&&!this.option.disabled&&((i=(t=this.host).checkOption)==null||i.call(t,this.option.value))})}ngDoCheck(){this.changeDetection$.next()}get value(){var t;return((t=this.abstractControl)==null?void 0:t.value)??this.control.value}get matcher(){return this.host.identityMatcher||Br}get selected(){return Ut(this.option.value)&&Ut(this.value)&&this.matcher(this.value,this.option.value)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[["dummy",""],[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"icon","tuiScrollIntoView",4,"ngIf","ngIfElse"],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"icon","tuiScrollIntoView"],[1,"t-dummy"]],template:function(i,o){if(i&1&&(Et(0,1),_(1,up,1,2,"tui-icon",2),S(2,"async"),_(3,dp,1,0,"ng-template",null,0,J)),i&2){let a=V(4);u("ngTemplateOutlet",o.context.$implicit),c(),u("ngIf",L(2,3,o.selected$))("ngIfElse",a)}},dependencies:[Y,Ji,yn,W,$],styles:['@keyframes _ngcontent-%COMP%_retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:_ngcontent-%COMP%_retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin-inline-start:auto;width:1.75rem;border:.25rem solid transparent;border-inline-start-width:.5rem}tui-data-list[data-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.375rem}tui-data-list[data-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0});let n=e;return n})(),mp=new gn(pp),dl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W]});let n=e;return n})();var hp={valueContent:""},qC=tt(hp);var ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,dl,Yo,Gn,Ie,Ze,ve,qt,Po,ds]});let n=e;return n})();var gp=["*",[["input"]]],_p=["*","input"],vp=n=>({$implicit:n});function Cp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",5),O("focusedChange",function(i){C(r);let o=g();return y(o.onFocused(i))})("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("focusable",t.computedFocusable)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoFocus",t.pseudoFocus)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue)}}function yp(n,e){if(n&1){let r=A();p(0,"tui-icon",8),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function bp(n,e){n&1&&M(0,"input",9)}function xp(n,e){if(n&1&&_(0,yp,1,5,"tui-icon",6)(1,bp,1,0,"input",7),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(3,vp,r.size)),c(),u("ngIf",r.nativePicker)}}function Tp(n,e){if(n&1){let r=A();p(0,"div",12),O("mousedown.prevent.silent",function(){return C(r),y(0)}),p(1,"button",13),O("click",function(){C(r);let i=g(2);return y(i.onDayClick(i.items[0].day))}),x(2),m()()}if(n&2){let r=g(2);c(2),F(" ",r.items[0]," ")}}function Mp(n,e){if(n&1){let r=A();p(0,"tui-calendar",10),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m(),_(1,Tp,3,1,"div",11)}if(n&2){let r=g();u("disabledItemHandler",r.disabledItemHandler)("markerHandler",r.markerHandler)("max",r.computedMax)("min",r.computedMin)("month",r.computedActiveYearMonth)("value",r.value),c(),u("ngIf",r.items.length===1)}}var Zo=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}get format(){return this.host.dateFormat}onValueChange(t){t||(this.host.nativeValue=""),this.host.onValueChange(t)}process(t){t.inputMode="numeric"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date",3,"multiple",""]],features:[k([ye(e)]),H]});let n=e;return n})(),Op=(()=>{let e=class e{constructor(){this.host=h(Fi)}get value(){return this.host.value.length===Ye?G.normalizeParse(this.host.value,this.host.format.mode).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?G.normalizeParse(t,"YMD").toString(this.host.format.mode):"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(i,o){i&1&&O("change",function(s){return o.onChange(s.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),i&2&&Ht("tabIndex",-1)("value",o.value)("max",o.max)("min",o.min)},features:[k([ye(Zo)])]});let n=e;return n})(),hl=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.options=h(In),this.textfieldSize=h(ne),this.mobileCalendar=h(Dn,{optional:!0}),this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.defaultActiveYearMonth=Ct.currentLocal(),this.dateFormat=dn,this.open=!1,this.dateTexts$=h(Pn),this.valueTransformer=h(Co,{optional:!0}),this.isMobile=h(Qe),this.filler$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t})}get computedMin(){return this.min??this.options.min}get computedMax(){return this.max??this.options.max}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get computedValue(){let{value:t,nativeValue:i,activeItem:o}=this;return o?String(o):t?t.toString(this.dateFormat.mode,this.dateFormat.separator):i}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length!==Ye?null:G.normalizeParse(t,this.dateFormat.mode)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get nativePicker(){return this.options.nativePicker&&!!this.mobileCalendar&&this.isMobile}get calendarIcon(){return this.options.icon}get computedActiveYearMonth(){var t;return this.items[0]&&((t=this.value)!=null&&t.daySame(this.items[0].day))?this.items[0].displayDay:this.month||this.value||Wr(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get computedMask(){return this.activeItem?te:this.computeMaskOptions(this.dateFormat.mode,this.dateFormat.separator,this.computedMin,this.computedMax)}get activeItem(){let{value:t}=this;return t&&this.items.find(i=>i.day.daySame(t))||null}onClick(){!this.isMobile&&this.interactive&&(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onIconClick(){this.isMobile&&this.interactive&&(this.open=!0)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}computeMaskOptions(t,i,o,a){return Ss({separator:i,mode:$n[t],min:o.toLocalNativeDate(),max:a.toLocalNativeDate()})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-input-date",3,"multiple",""]],viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[k([we(e),bn(e),ii(e),wn(Co),Sn]),H],ngContentSelectors:_p,decls:7,vars:7,consts:[["iconContent",""],["dropdown","polymorpheus"],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],[3,"polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar",3,"dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","month","value"],["class","t-button",3,"mousedown.prevent.silent",4,"ngIf"],[1,"t-button",3,"mousedown.prevent.silent"],["tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();ht(gp),p(0,"div",2),O("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Cp,3,11,"tui-primitive-textfield",3),S(2,"async"),_(3,xp,2,5,"ng-template",null,0,J)(5,Mp,2,7,"ng-template",4,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive&&!o.nativePicker)("tuiDropdownOpen",o.open&&o.interactive&&!o.nativePicker),c(),u("tuiLet",L(2,5,o.filler$)),c(4),u("polymorpheus",o.type)}},dependencies:[Y,Je,ut,aa,Ke,kn,Vt,li,ri,Fe,Vi,Ai,Wn,X,W,Ti,_e,Op,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMaskOptions",null),n})(),fl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,Ke,De,ai,Ie,W,Ze]});let n=e;return n})();var wp=["*",[["input"]]],Pp=["*","input"],gl=n=>({$implicit:n});function Ip(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Dp(n,e){if(n&1&&(p(0,"div",6),_(1,Ip,2,1,"ng-container",7),m()),n&2){let r=g(2);c(),u("polymorpheusOutlet",r.computedContent)("polymorpheusOutletContext",Tt(2,gl,r.value))}}function Sp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",4),O("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),_(3,Dp,2,4,"div",5),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoActive",t.pseudoActive)("pseudoFocus",t.innerPseudoFocused)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedRangeFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue),c(3),u("ngIf",t.showValueTemplate)}}function Ep(n,e){if(n&1){let r=A();p(0,"tui-icon",9),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function kp(n,e){if(n&1&&_(0,Ep,1,5,"tui-icon",8),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(2,gl,r.size))}}function Fp(n,e){if(n&1){let r=A();p(0,"tui-calendar-range",10),O("valueChange",function(i){C(r);let o=g();return y(o.onRangeChange(i))}),m()}if(n&2){let r=g();u("defaultViewedMonth",r.defaultViewedMonth)("disabledItemHandler",r.disabledItemHandler)("items",r.items)("markerHandler",r.markerHandler)("max",r.max)("maxLength",r.maxLength)("min",r.min)("minLength",r.minLength)("value",r.value)}}var _l=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isMobile=h(Qe),this.mobileCalendar=h(Dn,{optional:!0}),this.options=h(In),this.textfieldSize=h(ne),this.dateTexts$=h(Pn),this.valueTransformer=h(yo,{optional:!0}),this.dateFiller$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat=dn,this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t}),this.selectedActivePeriod=null,this.disabledItemHandler=ce,this.markerHandler=null,this.defaultViewedMonth=Ct.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get computedExampleText(){var t,i;return this.items.length&&((i=(t=this.textfield)==null?void 0:t.nativeFocusableElement)==null?void 0:i.placeholder)||""}get computedValue(){let{value:t,nativeValue:i,activePeriod:o}=this;return o?String(o):t?t.getFormattedDayRange(this.dateFormat.mode,this.dateFormat.separator):i}onClick(){!this.isMobile&&this.interactive&&this.toggle()}ngAfterViewChecked(){this.calendarRange&&(this.calendarRange.selectedActivePeriod=this.selectedActivePeriod,this.calendarRange.cdr.markForCheck())}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length===Gr?Ot.normalizeParse(t,this.dateFormat.mode):null,this.value||(this.selectedActivePeriod=null)}onRangeChange(t){var i;this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t,this.selectedActivePeriod=((i=this.calendarRange)==null?void 0:i.selectedActivePeriod)??null}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get computedMask(){return this.activePeriod?te:this.calculateMask(this.dateFormat.mode,this.dateFormat.separator,this.min,this.max,this.minLength,this.maxLength)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}get showValueTemplate(){return Ut(this.value)&&!this.focused}get computedContent(){var t;return((t=this.activePeriod)==null?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return this.pseudoFocus===!1?!1:this.open||this.computedFocused?!0:null}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.isMobile&&this.interactive&&this.onOpenChange(!0)}onOpenChange(t){this.open=t}onActiveZone(t){this.updateFocused(t),!t&&!this.itemSelected&&(this.nativeValue.length===Ye||this.nativeValue.length===Ye+po.length)&&(this.value=Ot.normalizeParse(this.nativeValue,this.dateFormat.mode))}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}get itemSelected(){return this.items.findIndex(t=>String(t)===this.nativeValue)!==-1}calculateMask(t,i,o,a,s,l){return Es({dateSeparator:i,mode:$n[t],min:(o||Nt).toLocalNativeDate(),max:(a||Kt).toLocalNativeDate(),minLength:s||{},maxLength:l||{}})}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${po}${t}`}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=T({type:e,selectors:[["tui-input-date-range"]],viewQuery:function(i,o){if(i&1&&(ct(Vt,5),ct(Di,5)),i&2){let a;Q(a=Z())&&(o.textfield=a.first),Q(a=Z())&&(o.calendarRange=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[k([we(e),bn(e),ii(e),wn(yo),Sn]),H],ngContentSelectors:Pp,decls:7,vars:6,consts:[["iconContent",""],["dropdown",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiActiveZoneChange","tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],[3,"valueChange","defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value"]],template:function(i,o){if(i&1){let a=A();ht(wp),p(0,"div",2),O("tuiActiveZoneChange",function(l){return C(a),y(o.onActiveZone(l))})("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Sp,4,12,"tui-primitive-textfield",3),S(2,"async"),_(3,kp,1,4,"ng-template",null,0,J)(5,Fp,1,9,"ng-template",null,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive)("tuiDropdownOpen",o.open&&o.interactive),c(),u("tuiLet",L(2,4,o.dateFiller$))}},dependencies:[Y,Je,Fe,ut,Vt,li,Vi,Ai,Di,ri,Wn,W,X,Ti,_e,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateMask",null),n})(),vl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}process(t){t.inputMode="numeric"}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.placeholder=this.host.computedExampleText)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date-range"]],features:[k([ye(e)]),H]});let n=e;return n})(),Cl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,Di,ai,W,Ze]});let n=e;return n})();var Ap=[{id:"1",date:"17.07.2024"}],yl=(()=>{let e=class e{constructor(){this.progress$=Ui(300,200).pipe(it(t=>t+30),he(30),gr(t=>t<=100)),this.schedule=Ap}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Rp(n,e){if(n&1&&(p(0,"tui-input-date",5),x(1," cleaning time "),M(2,"input",8),m()),n&2){let r=e.$implicit,t=e.$index,i=g();u("ariaValueMin",i.now)("formControl",r)("min",i.now)("readOnly",t==0)}}function Lp(n,e){if(n&1&&(p(0,"label",9)(1,"span",10),x(2),m(),M(3,"tui-progress-circle",11),S(4,"async"),m()),n&2){let r=e.ngIf,t=g();w("margin-bottom","auto"),c(2),F("",r,"%"),c(),w("color",L(4,7,t.color$)),u("max",100)("value",r)}}var xl=(()=>{let e=class e{constructor(){this.cleaningService=h(yl),this.now=G.currentLocal(),this.forms=new We(this.cleaningService.schedule.map(t=>new Ee(new G(G.parseRawDateString(t.date).year,G.parseRawDateString(t.date).month,G.parseRawDateString(t.date).day)))),this.color$=this.cleaningService.progress$.pipe(it(t=>t<33?"var(--tui-status-negative)":t<66?"var(--tui-status-warning)":"var(--tui-background-accent-1)"))}addNew(){this.forms.push(new Ee)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-cleaning"]],standalone:!0,features:[P],decls:12,vars:5,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"timetable"],[1,"list"],[1,"input-date",3,"ariaValueMin","formControl","min","readOnly"],["tuiProgressLabel","",3,"margin-bottom",4,"ngIf"],["appearance","primary","tuiButton","",1,"add-button",3,"click"],["tuiTextfieldLegacy",""],["tuiProgressLabel",""],[1,"percent"],["size","s",3,"max","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),x(3," Cleaning schedule "),m()(),p(4,"div",3)(5,"div",4),Be(6,Rp,3,4,"tui-input-date",5,He),m(),_(8,Lp,5,9,"label",6),S(9,"async"),m(),p(10,"button",7),O("click",function(){return o.addNew()}),x(11," Add "),m()()),i&2&&(c(2),w("text-align","center"),c(4),je(o.forms.controls),c(2),u("ngIf",L(9,3,o.cleaningService.progress$)))},dependencies:[$,z,Y,At,Ft,Me,$e,X,ue,_t,fl,hl,Zo,nl,Rs,Ls],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;height:100%;background-color:var(--tui-background-base)}.add-button[_ngcontent-%COMP%]{max-width:7rem}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.percent[_ngcontent-%COMP%]{font:var(--tui-font-text-m)}tui-progress-circle[_ngcontent-%COMP%]{transition:color 2s}.input-date[_ngcontent-%COMP%]{width:10rem}.timetable[_ngcontent-%COMP%]{display:flex;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Np=[{name:"Room temperature \u0421\xB0",value:32},{name:"Water temperature",value:0},{name:"Air humidity, %",value:10}],Tl=(()=>{let e=class e{constructor(){this.climateControlData=Np}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zp(n,e){if(n&1){let r=A();p(0,"tui-input-number",5),jt("ngModelChange",function(i){let o=C(r).$implicit;return kt(o.value,i)||(o.value=i),y(i)}),x(1),m()}if(n&2){let r=e.$implicit;Bt("ngModel",r.value),c(),F(" ",r.name," ")}}var Ml=(()=>{let e=class e{constructor(){this.climateControlService=h(Tl).climateControlData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-climate-control"]],standalone:!0,features:[k([na({precision:0}),sl({step:1})]),P],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"group"],[3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),x(3," Climate control "),m()(),p(4,"div",3),_(5,zp,2,2,"tui-input-number",4),m()()),i&2&&(c(2),w("text-align","center"),c(3),u("ngForOf",o.climateControlService))},dependencies:[z,nt,At,Ft,Mt,X,_t,ul,ll,cl],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;background-color:var(--tui-background-base);height:100%}.card[tuiCardLarge][_ngcontent-%COMP%] .group[_ngcontent-%COMP%]:last-child{display:flex;margin-top:0;flex-direction:column;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Xo;try{Xo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Xo=!1}var Li=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Er(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Xo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(Yt(xr))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var oe=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(oe||{}),Xn,Re;function Ol(){if(Re==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Re=!1,Re;if("scrollBehavior"in document.documentElement.style)Re=!0;else{let n=Element.prototype.scrollTo;n?Re=!/\{\s*\[native code\]\s*\}/.test(n.toString()):Re=!1}}return Re}function ci(){if(typeof document!="object"||!document)return oe.NORMAL;if(Xn==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",n.appendChild(r),document.body.appendChild(n),Xn=oe.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Xn=n.scrollLeft===0?oe.NEGATED:oe.INVERTED),n.remove()}return Xn}var Bp=new dt("cdk-dir-doc",{providedIn:"root",factory:jp});function jp(){return h(Se)}var Up=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function $p(n){let e=(n==null?void 0:n.toLowerCase())||"";return e==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Up.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Kn=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new q,t){let i=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=$p(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(Yt(Bp,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ko=class{};function wl(n){return n&&typeof n.connect=="function"&&!(n instanceof cr)}var qn=class extends Ko{constructor(e){super(),this._data=e}connect(){return ji(this._data)?this._data:Rt(this._data)}disconnect(){}},Ni=function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n}(Ni||{}),qo=new dt("_ViewRepeater");var Jn=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,r,t,i,o){e.forEachOperation((a,s,l)=>{let d,f;if(a.previousIndex==null){let v=()=>t(a,s,l);d=this._insertView(v,l,r,i(a)),f=d?Ni.INSERTED:Ni.REPLACED}else l==null?(this._detachAndCacheView(s,r),f=Ni.REMOVED):(d=this._moveView(s,l,r,i(a)),f=Ni.MOVED);o&&o({context:d==null?void 0:d.context,operation:f,record:a})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,r,t,i){let o=this._insertViewFromCache(r,t);if(o){o.context.$implicit=i;return}let a=e();return t.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(e,r){let t=r.detach(e);this._maybeCacheView(t,r)}_moveView(e,r,t,i){let o=t.get(e);return t.move(o,r),o.context.$implicit=i,o}_maybeCacheView(e,r){if(this._viewCache.length0?o/this._itemSize:0;if(r.end>i){let l=Math.ceil(t/this._itemSize),d=Math.max(0,Math.min(a,i-l));a!=d&&(a=d,o=d*this._itemSize,r.start=Math.floor(a)),r.end=Math.max(0,Math.min(i,r.start+l))}let s=o-r.start*this._itemSize;if(s0&&(r.end=Math.min(i,r.end+d),r.start=Math.max(0,Math.floor(a-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(r),this._viewport.setRenderedContentOffset(this._itemSize*r.start),this._scrolledIndexChange.next(Math.floor(a))}};function Qp(n){return n._scrollStrategy}var Sl=(()=>{let e=class e{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Jo(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Oi(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Oi(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Oi(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[k([{provide:Dl,useFactory:Qp,deps:[Yi(()=>e)]}]),be]});let n=e;return n})(),Zp=20,tr=(()=>{let e=class e{constructor(t,i,o){this._ngZone=t,this._platform=i,this._scrolled=new xt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Zp){return this._platform.isBrowser?new Hi(i=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe($i(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Rt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(re(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let o=Qa(i),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return hi(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(Yt(Dt),Yt(Li),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),El=(()=>{let e=class e{constructor(t,i,o,a){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=o,this.dir=a,this._destroyed=new xt,this._elementScrolled=new Hi(s=>this.ngZone.runOutsideAngular(()=>hi(this.elementRef.nativeElement,"scroll").pipe(fi(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),o&&ci()!=oe.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),ci()==oe.INVERTED?t.left=t.right:ci()==oe.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;Ol()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:i:t=="end"&&(t=s?i:o),s&&ci()==oe.INVERTED?t==i?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&ci()==oe.NEGATED?t==i?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==i?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),Xp=20,Kp=(()=>{let e=class e{constructor(t,i,o){this._platform=t,this._change=new xt,this._changeListener=a=>{this._change.next(a)},this._document=o,i.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=Xp){return t>0?this._change.pipe($i(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(Yt(Li),Yt(Dt),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Pl=new dt("VIRTUAL_SCROLLABLE"),qp=(()=>{let e=class e extends El{constructor(t,i,o,a){super(t,i,o,a)}measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();function Jp(n,e){return n.start==e.start&&n.end==e.end}var tm=typeof requestAnimationFrame<"u"?dr:ur,er=(()=>{let e=class e extends qp{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,i,o,a,s,l,d,f){super(t,l,o,s),this.elementRef=t,this._changeDetectorRef=i,this._scrollStrategy=a,this.scrollable=f,this._platform=h(Li),this._detachedSubject=new xt,this._renderedRangeSubject=new xt,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new Hi(v=>this._scrollStrategy.scrolledIndexChange.subscribe(b=>Promise.resolve().then(()=>this.ngZone.run(()=>v.next(b))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=sr.EMPTY,this._injector=h(br),this._isDestroyed=!1,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(he(null),$i(0,tm),fi(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(fi(this._detachedSubject)).subscribe(i=>{let o=i.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){Jp(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let o=this.dir&&this.dir.value=="rtl",a=this.orientation=="horizontal",s=a?"X":"Y",d=`translate${s}(${Number((a&&o?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(d+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,i="auto"){let o={behavior:i};this.orientation==="horizontal"?o.start=t:o.top=t,this.scrollable.scrollTo(o)}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i)}measureScrollOffset(t){let i;return this.scrollable==this?i=o=>super.measureScrollOffset(o):i=o=>this.scrollable.measureScrollOffset(o),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var f;let i,o="left",a="right",s=((f=this.dir)==null?void 0:f.value)=="rtl";t=="start"?i=s?a:o:t=="end"?i=s?o:a:t?i=t:i=this.orientation==="horizontal"?"left":"top";let l=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-l}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,Mr(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(Zt),lt(Dt),lt(Dl,8),lt(Kn,8),lt(tr),lt(Kp),lt(Pl,8))},e.\u0275cmp=T({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,o){if(i&1&&ct(Gp,7),i&2){let a;Q(a=Z())&&(o._contentWrapper=a.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,o){i&2&&N("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Dr]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[k([{provide:El,useFactory:(t,i)=>t||i,deps:[[new gi,new _r(Pl)],e]}]),no,H,P],ngContentSelectors:Yp,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,o){i&1&&(ht(),p(0,"div",1,0),j(2),m(),M(3,"div",2)),i&2&&(c(3),w("width",o._totalContentWidth)("height",o._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let n=e;return n})();function Il(n,e,r){let t=r;if(!t.getBoundingClientRect)return 0;let i=t.getBoundingClientRect();return n==="horizontal"?e==="start"?i.left:i.right:e==="start"?i.top:i.bottom}var kl=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,wl(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new qn(ji(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(i,o)=>t(i+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Oi(t)}constructor(t,i,o,a,s,l){this._viewContainerRef=t,this._template=i,this._differs=o,this._viewRepeater=a,this._viewport=s,this.viewChange=new xt,this._dataSourceChanges=new xt,this.dataStream=this._dataSourceChanges.pipe(he(null),fr(),Gi(([d,f])=>this._changeDataSource(d,f)),Wi(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new xt,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(fi(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let o=t.start-this._renderedRange.start,a=t.end-t.start,s,l;for(let d=0;d-1;d--){let f=this._viewContainerRef.get(d+o);if(f&&f.rootNodes.length){l=f.rootNodes[f.rootNodes.length-1];break}}return s&&l?Il(i,"end",l)-Il(i,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=!0)}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Rt()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=t,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(a,s,l)=>this._getEmbeddedViewArgs(a,l),a=>a.item),t.forEachIdentityChange(a=>{let s=this._viewContainerRef.get(a.currentIndex);s.context.$implicit=a.item});let i=this._data.length,o=this._viewContainerRef.length;for(;o--;){let a=this._viewContainerRef.get(o);a.context.index=this._renderedRange.start+o,a.context.count=i,this._updateComputedContextProperties(a.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,i){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}};e.\u0275fac=function(i){return new(i||e)(lt(Or),lt(Qi),lt(Ir),lt(qo),lt(er,4),lt(Dt))},e.\u0275dir=D({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[k([{provide:qo,useClass:Jn}])]});let n=e;return n})();var ui=[{name:"Misha Zhem",img:"./example.png",status:"online"},{name:"Oleg B.",img:"OB",status:"online"},{name:"Andrey M.",img:"AM",status:"online"},{name:"Misha Zhem3",img:"./example.png",status:"online"},{name:"Vladimir D.",img:"VD",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Misha Zhem2",img:"./example.png",status:"online"},{name:"Misha Zhem4",img:"./example.png",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Andrey M.",img:"AM",status:"online"}],di=[{name:"Misha Zhem4",img:"./example.png",status:"online",last:"9:12 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1},{name:"Misha Zhem2",img:"./example.png",status:"online",last:"8:45 PM",took:!1},{name:"Misha Zhem",img:"./example.png",status:"online",last:"1:10 PM",took:!1},{name:"Misha Zhem3",img:"./example.png",status:"online",last:"11:05 AM",took:!0},{name:"Gleb H.",img:"GH",status:"online",last:"1:15 AM",took:!1},{name:"Vladimir D.",img:"VD",status:"online",last:"3:15 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1}],em={contacts:ui.concat(ui,ui,ui,ui,ui),recent:di.concat(di,di,di,di,di)},Fl=(()=>{let e=class e{constructor(){this.contactsData=em}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function im(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){let i=C(r).$index,o=g();return y(o.activeTab=i)}),p(1,"header",4)(2,"h2",5),x(3),m()()()}if(n&2){let r=e.$implicit;c(2),w("text-align","center"),c(),F(" ",r," ")}}function nm(n,e){if(n&1&&(p(0,"div",8),M(1,"tui-avatar",9),S(2,"tuiAutoColor"),p(3,"div",5),x(4),p(5,"div",10),x(6),m()(),p(7,"button",11),x(8," Call "),m()()),n&2){let r=e.$implicit;c(),w("background",L(2,5,r.img)),u("src",r.img),c(3),F(" ",r.name," "),c(2),Qt(r.status)}}function om(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,nm,9,7,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.contacts)}}function rm(n,e){if(n&1&&(p(0,"div",8)(1,"tui-badged-content"),M(2,"tui-avatar",12),S(3,"tuiAutoColor"),M(4,"tui-icon",13),m(),p(5,"div",5),x(6),p(7,"div",10),x(8),m()(),p(9,"div",10),x(10),m()()),n&2){let r=e.$implicit;c(2),w("background",L(3,8,r.img)),u("src",r.img),c(2),u("appearance",r.took?"error":"success")("icon",r.took?"@tui.arrow-down-left":"@tui.arrow-up-right"),c(2),F(" ",r.name," "),c(2),Qt(r.status),c(2),Qt(r.last)}}function am(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,rm,11,10,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.recent)}}var Al=(()=>{let e=class e{constructor(){this.contactsService=h(Fl).contactsData,this.tabs=["Contacts","Recent"],this.activeTab=0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-contacts"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],[3,"activeItemIndex"],["tuiTab",""],["tuiTab","",3,"click"],["tuiHeader",""],["tuiTitle",""],["itemSize","57","tuiScrollable","",1,"contacts-list","viewport","tui-zero-scrollbar"],["tuiCell","l",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiCell","l"],[3,"src"],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.phone","tuiIconButton",""],[1,"avatar",3,"src"],["size","s","tuiBadge","","tuiSlot","top",3,"appearance","icon"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"tui-tabs",1),Be(2,im,4,3,"button",2,He),m(),_(4,om,3,1,"tui-scrollbar")(5,am,3,1,"tui-scrollbar"),m()),i&2&&(w("height","100%"),c(),u("activeItemIndex",o.activeTab),c(),je(o.tabs),c(2),Xi(o.activeTab===0?4:5))},dependencies:[Sl,kl,er,z,X,Ha,On,Sa,rs,as,ue,_t,Ra,W,fa,Cn,Aa,Va],styles:["tui-tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0;border-radius:0;box-shadow:0 1px var(--tui-border-normal)}tui-scrollbar[_ngcontent-%COMP%], .viewport[_ngcontent-%COMP%]{height:100%;min-height:12rem}tui-badged-content[_ngcontent-%COMP%] tui-avatar[_ngcontent-%COMP%]{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}"],changeDetection:0});let n=e;return n})();var sm=[{name:"Open the door",img:"@tui.door-open"},{name:"Play music",img:"@tui.speaker"},{name:"Call security",img:"@tui.shield-alert"},{name:"Turn up the heat",img:"@tui.heater"},{name:"Turn on the kettle",img:"@tui.coffee"}],Vl=(()=>{let e=class e{constructor(){this.controlPanelData=sm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function lm(n,e){if(n&1&&(p(0,"button",1)(1,"aside",2),M(2,"tui-avatar",3),m(),p(3,"h2",4),x(4),m()()),n&2){let r=e.$implicit;c(2),w("color","var(--tui-background-accent-opposite)"),u("src",r.img),c(2),F(" ",r.name," ")}}var Rl=(()=>{let e=class e{constructor(){this.controlPanelService=h(Vl).controlPanelData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-small-card"]],standalone:!0,features:[P],decls:1,vars:1,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated","class","button-card",4,"ngFor","ngForOf"],["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card"],["tuiAccessories",""],["appearance","","size","l",3,"src"],[1,"text"]],template:function(i,o){i&1&&_(0,lm,5,4,"button",0),i&2&&u("ngForOf",o.controlPanelService)},dependencies:[z,nt,On,_t,La,wa],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;gap:.625rem;align-items:center;justify-content:space-around}@media (max-width: 50rem) and (min-width: 31.35rem){[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.text[_ngcontent-%COMP%]{font:var(--tui-font-heading-6);margin-top:1rem;margin-bottom:1rem}[tuiHeader][_ngcontent-%COMP%] [tuiAccessories][_ngcontent-%COMP%]{gap:0}.button-card[_ngcontent-%COMP%]{display:flex;max-width:max-content;align-items:center;padding-right:1.75rem;gap:1rem}@media (max-width: 50rem){.button-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}}@media (max-width: 31.25rem){.button-card[_ngcontent-%COMP%]{width:calc(100vw - 5.5rem);max-width:calc(100vw - 5.5rem);flex-shrink:0}}.button-card[_ngcontent-%COMP%]:last-child{grid-column-end:3;grid-column-start:1}"],changeDetection:0});let n=e;return n})();function cm(n,e){if(n&1&&M(0,"div",1),n&2){let r=e.$implicit,t=e.index,i=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",i.getHeight(r),"%")}}var Ll=(()=>{let e=class e{constructor(){this.value=[],this.size="m"}getHeight(t){return 100*t/this.getSum(this.value)}getSum(t){return sn(...t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-bar"]],hostVars:1,hostBindings:function(i,o){i&2&&B("data-size",o.size)},inputs:{value:"value",size:"size"},standalone:!0,features:[P],decls:1,vars:1,consts:[["automation-id","tui-bar__bar",3,"background","height",4,"ngFor","ngForOf"],["automation-id","tui-bar__bar"]],template:function(i,o){i&1&&_(0,cm,1,4,"div",0),i&2&&u("ngForOf",o.value)},dependencies:[nt],styles:["[_nghost-%COMP%]{display:flex;min-width:.125rem;flex-direction:column-reverse;border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l);overflow:hidden}[data-size=l][_nghost-%COMP%]{width:1rem;max-width:1rem;margin:0 .1875rem}[data-size=m][_nghost-%COMP%]{width:.5rem;max-width:.5rem;margin:0 .1875rem}[data-size=s][_nghost-%COMP%]{width:.25rem;max-width:.5rem;margin:0 .125rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getSum",null),n})();var um=["*"],dm=(n,e)=>({$implicit:n,index:e,flexible:!1}),pm=(n,e)=>({$implicit:n,index:e,flexible:!0});function mm(n,e){if(n&1&&Et(0,5),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,dm,r,t))}}function hm(n,e){if(n&1&&(pt(0),_(1,mm,1,5,"ng-container",4),mt()),n&2){let r=g();c(),u("ngForOf",r.computedValue)}}function fm(n,e){if(n&1&&(p(0,"div",7),Et(1,5),m()),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);c(),u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,pm,r,t))}}function gm(n,e){if(n&1&&_(0,fm,2,5,"div",6),n&2){let r=g();u("ngForOf",r.computedValue)}}function _m(n,e){if(n&1&&M(0,"tui-bar",8),n&2){let r=e.flexible,t=e.index,i=e.$implicit,o=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",o.getHeight(i),"%"),N("t-bar_flexible",r)("t-bar_negative",i<0),u("size",o.computedSize)("value",o.computedSegments)}}var vm=100,Cm=[],ym=[1],Nl=(()=>{let e=class e{constructor(){this.value=[],this.size="m",this.collapsed=!1}get computedValue(){return this.collapsed?ym:this.value}get computedSegments(){return this.collapsed?this.value:Cm}get computedSize(){return this.size||"m"}getHeight(t){return Math.abs(vm*t/this.getLargest(this.computedValue))}getLargest(t){return t.some(i=>i>0)?t.reduce((i,o)=>i>o?i:o,0):Math.abs(t.reduce((i,o)=>i({$implicit:n});function xm(n,e){if(n&1){let r=A();p(0,"div",2),S(1,"async"),O("mouseenter.once",function(){return C(r),y(0)}),p(2,"div",3),S(3,"tuiMapper"),M(4,"div",4,0)(6,"tui-bar-set",5),m()()}if(n&2){let r=e.$implicit,t=e.index,i=V(5),o=g();N("t-wrapper_hoverable",!!o.hintContent)("t-wrapper_hovered",L(1,15,o.drivers.get(t))),u("tuiHint",o.hintContent)("tuiHintContext",Tt(22,bm,t))("tuiHintDescribe",o.getHintId(t))("tuiHintHost",i),c(2),w("height",qi(3,17,r,o.percentMapper,o.collapsed,o.computedMax),"%"),c(4),u("collapsed",o.collapsed)("id",o.getHintId(t))("size",o.size)("tabIndex",o.hintContent?0:-1)("value",r)}}var zl=(()=>{let e=class e{constructor(){this.hintOptions=h(de,{optional:!0}),this.autoIdString=h(vn).generate(),this.drivers=ge,this.value=[],this.max=NaN,this.size="m",this.collapsed=!1,this.percentMapper=(t,i,o)=>100*(i?sn(...t):Math.max(...t))/o}get transposed(){return this.transpose(this.value)}get computedMax(){return this.max||this.getMax(this.value,this.collapsed)}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}getHintId(t){return`${this.autoIdString}_${t}`}transpose(t){return t.reduce((i,o)=>o.map((a,s)=>[...i[s]||[],o[s]]),[])}getMax(t,i){return i?Math.max(...t.reduce((o,a)=>o.map((s,l)=>s+a[l]))):t.reduce((o,a)=>Math.max(...a,o),0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-bar-chart"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.drivers=a)}},inputs:{value:"value",max:"max",size:"size",collapsed:"collapsed"},standalone:!0,features:[k([],[Ta({direction:"top"})]),P],decls:1,vars:1,consts:[["hintHost",""],["class","t-wrapper",3,"t-wrapper_hoverable","t-wrapper_hovered","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter.once",4,"ngFor","ngForOf"],[1,"t-wrapper",3,"mouseenter.once","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-container"],[1,"t-host"],[1,"t-set",3,"collapsed","id","size","tabIndex","value"]],template:function(i,o){i&1&&_(0,xm,7,24,"div",1),i&2&&u("ngForOf",o.transposed)},dependencies:[nt,Tn,Mn,Oa,Ce,$,Nl],styles:["[_nghost-%COMP%]{display:flex;flex:1;height:100%}.t-wrapper[_ngcontent-%COMP%]{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable[_ngcontent-%COMP%]{cursor:pointer}.t-wrapper_hoverable[_ngcontent-%COMP%]:hover, .t-wrapper_hoverable.t-wrapper_hovered[_ngcontent-%COMP%]{background-color:#0000000d}.t-container[_ngcontent-%COMP%]{flex:1}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;right:50%}.t-set[_ngcontent-%COMP%]{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--tui-border-focus)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"transpose",null),et([ot],n.prototype,"getMax",null),n})();var Tm=n=>({$implicit:n});function Mm(n,e){if(n&1&&M(0,"tui-line-chart",2),n&2){let r=e.$implicit,t=e.first,i=g(),o=V(2);w("z-index",i.zIndex),u("dots",i.dots)("height",i.height)("smoothingFactor",i.smoothingFactor)("tuiHintContent",i.hintContent?o:"")("value",r)("width",t?i.firstWidth:i.getWidth(r[0][0]))("x",t?0:i.getX(r[0][0]))("xStringify",i.xStringify?i.daysStringify:null)("y",i.y)("yStringify",i.yStringify)}}function Om(n,e){if(n&1&&(pt(0),x(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function wm(n,e){if(n&1&&_(0,Om,2,1,"ng-container",3),n&2){let r=e.$implicit,t=g();u("polymorpheusOutlet",t.hintContent)("polymorpheusOutletContext",Tt(2,Tm,t.getHintContext(r[0],t.value)))}}function Hl(n,e){return n.find(([r])=>r.daySame(e))||[e,NaN]}var ir=(()=>{let e=class e{constructor(){this.charts=ge,this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi)}ngAfterContentInit(){mi([...this.charts.map(({charts:t})=>bo(t)),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t){return this.getMap(...this.charts.map(({value:i})=>i)).get(String(t))||[]}raise(t){let i=this.charts.map(({value:a})=>Hl(a,t)).filter(([a,s])=>!Number.isNaN(s)),o=[...i].sort((a,s)=>a[1]-s[1]);this.charts.forEach((a,s)=>{a.onHovered(t),a.zIndex=Math.max(o.indexOf(i[s]),0)})}getMap(...t){return(t[0]||[]).reduce((i,[o])=>i.set(String(o),t.map(a=>Hl(a,o))),new Map)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,nr,4),i&2){let s;Q(s=Z())&&(o.charts=s)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[k([xi])]});let n=e;return et([ot],n.prototype,"getMap",null),n})(),Pm=[NaN,NaN],nr=(()=>{let e=class e{constructor(){this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi),this.options=h(Na),this.hintDirective=h(ir,{optional:!0}),this.charts=ge,this.y=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.dots=this.options.dots,this.zIndex=0,this.value=[],this.daysStringify=t=>this.xStringify?this.xStringify(this.getDay(t)):""}set valueSetter(t){if(!t.length){this.value=[];return}let i=t[0][0],o=[...t],a=G.lengthBetween(i,t[t.length-1][0])+1;this.value=Array.from({length:a},(s,l)=>{let d=i.append({day:l}),f=d.daySame(o[0][0])?o.shift():null,v=f?f[1]:NaN;return[d,v]})}ngAfterViewInit(){mi([bo(this.charts),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.onHovered(NaN)})}onHovered(t){if(rn(t)){this.charts.forEach(s=>s.onHovered(NaN));return}let i=Ct.lengthBetween(this.value[0][0],t),o=G.lengthBetween(this.value[0][0],t)+this.value[0][0].day-1,a=this.charts.get(i);this.charts.forEach(s=>{s===a?a.onHovered(a.value.findIndex(l=>l[0]===o)):s.onHovered(NaN)})}get months(){return this.value.length?this.breakMonths(this.value):Hr}get firstWidth(){return this.months.length*this.value[0][0].daysCount}get hint(){var t;return((t=this.hintDirective)==null?void 0:t.hint)??this.hintContent}getHintContext(t,i){return i[t-i[0][0].day+1]}getX(t){let i=this.getDay(t),a=Ct.lengthBetween(this.value[0][0],i)*i.daysCount;return t-a}raise(t,{value:i}){let o=i[t][0],a=this.getDay(o);this.hintDirective?this.hintDirective.raise(a):this.onHovered(a)}getWidth(t){return this.getDay(t).daysCount*this.months.length}getContext(t,{value:i}){let o=i[t][0];return this.hintDirective?this.hintDirective.getContext(this.getDay(o)):this.getHintContext(o,this.value)}breakMonths(t){let i=t[0][0].day-1;return Array.from({length:Ct.lengthBetween(t[0][0],t[t.length-1][0])+1},(o,a)=>a+t[0][0].month+t[0][0].year*12).map(o=>t.map(([{month:a,year:s},l],d)=>a+s*12===o?[d+i,l]:null).filter(Ut)).map((o,a,s)=>a===s.length-1?o:[...o,s[a+1].find(l=>!Number.isNaN(l[1]))||Pm])}getDay(t){return this.value[t-this.value[0][0].day+1][0]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["tui-line-days-chart"]],viewQuery:function(i,o){if(i&1&&ct(Mi,5),i&2){let a;Q(a=Z())&&(o.charts=a)}},hostVars:2,hostBindings:function(i,o){i&2&&w("z-index",o.zIndex)},inputs:{y:"y",height:"height",smoothingFactor:"smoothingFactor",hintContent:"hintContent",xStringify:"xStringify",yStringify:"yStringify",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[k([xi,{provide:za,useExisting:e}]),P],decls:3,vars:1,consts:[["hint",""],["class","t-chart",3,"dots","height","smoothingFactor","zIndex","tuiHintContent","value","width","x","xStringify","y","yStringify",4,"ngFor","ngForOf"],[1,"t-chart",3,"dots","height","smoothingFactor","tuiHintContent","value","width","x","xStringify","y","yStringify"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,o){i&1&&_(0,Mm,1,12,"tui-line-chart",1)(1,wm,1,4,"ng-template",null,0,J),i&2&&u("ngForOf",o.months)},dependencies:[Mi,nt,de,ut],styles:["[_nghost-%COMP%]{display:block}.t-chart[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getHintContext",null),et([ot],n.prototype,"breakMonths",null),n})();var Im={value:[[1e3,8e3,4e3,3e3,4e3],[6e3,2e3,4500,7e3,5e3]],labelsX:["Jan 2021","Feb","Mar"],labelsY:["0","10 000"]},Bl=(()=>{let e=class e{constructor(){this.costData=Im}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jl=(()=>{let e=class e{constructor(){this.costService=h(Bl).costData,this.hint=({$implicit:t})=>this.costService.value.reduce((i,o)=>`${i}$${_n(o[t])} +`,"").trim()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-cost"]],standalone:!0,features:[P],decls:15,vars:7,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","s"],["tuiTitle","s"],[1,"legend"],[1,"item"],[1,"name"],[1,"flex"],[1,"axes",3,"axisXLabels","axisYLabels"],[3,"max","tuiHintContent","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"div")(2,"header",1)(3,"h2",2),x(4," Utility costs "),m()(),p(5,"p",3)(6,"span",4)(7,"small",5),x(8,"Electricity bills"),m()(),p(9,"span",4)(10,"small",5),x(11,"Light bills"),m()()(),p(12,"div",6)(13,"tui-axes",7),M(14,"tui-bar-chart",8),m()()()()),i&2&&(c(3),w("text-align","center"),c(10),u("axisXLabels",o.costService.labelsX)("axisYLabels",o.costService.labelsY),c(),u("max",1e4)("tuiHintContent",o.hint)("value",o.costService.value))},dependencies:[z,At,X,En,zl,_t,de,ml],styles:['.axes[_ngcontent-%COMP%]{min-height:18.75rem;width:100%;--tui-chart-categorical-00: var(--tui-background-accent-1);--tui-chart-categorical-01: var(--tui-chart-categorical-12)}.flex[_ngcontent-%COMP%]{display:flex;width:100%}.select[_ngcontent-%COMP%]{max-width:20rem}.card[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--tui-background-base)}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:last-child{color:var(--tui-chart-categorical-12)}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}'],changeDetection:0});let n=e;return n})();var Ul=(()=>{let e=class e{generateRandomData({from:t,to:i},o){return new Array(G.lengthBetween(t,i)+1).fill(0).reduce((a,s,l)=>[...a,[t.append({day:l}),Math.max((l?a[l-1][1]:o)+Math.random()*10-5,0)]],[]).filter(([a])=>a.dayOfWeek()<5)}random(t){return[this.generateRandomData(t,100)]}onlyMondays(t){return t.filter(i=>!i.dayOfWeek()).map(String)}even(t){return t.filter((i,o)=>!(o%2))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Dm(n,e){n&1&&(p(0,"span",8)(1,"small",9),x(2,"Electricity bills"),m()())}function Sm(n,e){if(n&1&&(M(0,"tui-line-days-chart",13),S(1,"tuiFilter")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(1,2,r,t.filter,t.range))}}function Em(n,e){if(n&1&&(pt(0),_(1,Sm,2,6,"tui-line-days-chart",12),mt()),n&2){let r=g(2);c(),u("ngForOf",r.days)}}function km(n,e){if(n&1&&(M(0,"tui-line-chart",15),S(1,"tuiFilter"),S(2,"tuiMapper")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(2,7,xe(1,3,r,t.filter,t.range),t.toNumbers,t.range))("width",t.getWidth(t.range))}}function Fm(n,e){if(n&1&&_(0,km,3,11,"tui-line-chart",14),n&2){let r=g(2);u("ngForOf",r.days)}}function Am(n,e){if(n&1&&(p(0,"tui-axes",10),_(1,Em,2,1,"ng-container",11)(2,Fm,1,1,"ng-template",null,1,J),m()),n&2){let r=e.ngIf,t=V(3),i=g(),o=V(10);u("axisXLabels",r)("horizontalLines",4)("tuiLineChartHint",o)("verticalLines",r.length),c(),u("ngIf",i.getWidth(i.show)>90)("ngIfElse",t)}}function Vm(n,e){if(n&1&&(p(0,"div",8)(1,"span",17),x(2),m()()),n&2){let r=e.$implicit;c(2),F("$",r[1].toFixed(0),"")}}function Rm(n,e){if(n&1&&(p(0,"div",16)(1,"strong"),x(2),m()(),p(3,"div"),_(4,Vm,3,1,"div",6),m()),n&2){let r=e.$implicit,t=g();c(2),Qt(t.getDate(r[0][0],t.range.from)),c(2),u("ngForOf",r)}}var $l=(()=>{let e=class e{constructor(){this.electricityService=h(Ul),this.months$=h(hn),this.show=new Ot(G.currentLocal(),G.currentLocal().append({month:3})),this.days=this.electricityService.random(this.show),this.maxLength={month:4},this.filter=([t],{from:i,to:o})=>t.daySameOrAfter(i)&&t.daySameOrBefore(o),this.toNumbers=(t,{from:i})=>t.map(([o,a])=>[G.lengthBetween(i,o),a])}get range(){return this.computeRange(this.show)}getWidth({from:t,to:i}){return G.lengthBetween(t,i)}getDate(t,i){return t instanceof G?t:i.append({day:t})}labels({from:t,to:i}){let o=G.lengthBetween(t,i);if(o>90)return this.months$.pipe(it(d=>Array.from({length:Ct.lengthBetween(t,i)+1},(f,v)=>d[t.append({month:v}).month])));let a=Array.from({length:o},(d,f)=>t.append({day:f})),s=this.electricityService.onlyMondays(a),l=a.map(String);return o>60?Rt(this.electricityService.even(s)):o>14?Rt(s):o>7?Rt(this.electricityService.even(l)):Rt(l)}onDataChange(t){this.days=this.electricityService.random(t)}computeRange(t){let{from:i,to:o}=t,a=G.lengthBetween(i,o),s=i.dayOfWeek(),l=o.dayOfWeek(),d=s?i.append({day:7-s}):i,f=l?o.append({day:7-l}):o,v=G.lengthBetween(d,f);return a>90?t:a>60?new Ot(d,f.append({day:v%14})):a>14?new Ot(d,f):new Ot(i,o.append({day:a%2}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-electricity"]],standalone:!0,features:[P],decls:11,vars:6,consts:[["hint",""],["line",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],[1,"controls"],[3,"ngModelChange","maxLength","ngModel"],[1,"legend","tui-space_top-0"],["class","item",4,"ngFor","ngForOf"],["class","axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines",4,"ngIf"],[1,"item"],[1,"name"],[1,"axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines"],[4,"ngIf","ngIfElse"],["class","chart",3,"height","value",4,"ngFor","ngForOf"],[1,"chart",3,"height","value"],["class","chart",3,"height","value","width",4,"ngFor","ngForOf"],[1,"chart",3,"height","value","width"],[1,"tui-space_bottom-2"],[1,"value"]],template:function(i,o){if(i&1){let a=A();p(0,"div",2)(1,"p",3)(2,"tui-input-date-range",4),jt("ngModelChange",function(l){return C(a),kt(o.show,l)||(o.show=l),y(l)}),O("ngModelChange",function(l){return C(a),y(o.onDataChange(l))}),x(3," Data "),m()(),p(4,"div")(5,"p",5),_(6,Dm,3,0,"span",6),m(),_(7,Am,4,6,"tui-axes",7),S(8,"async"),m(),_(9,Rm,5,2,"ng-template",null,0,J),m()}i&2&&(c(2),u("maxLength",o.maxLength),Bt("ngModel",o.show),c(4),u("ngForOf",o.days),c(),u("ngIf",L(8,4,o.labels(o.show))))},dependencies:[$,z,nt,Y,At,Ft,Mt,X,En,_t,os,Cl,_l,vl,Mi,nr,ir,Ce],styles:['.card[_ngcontent-%COMP%]{background-color:var(--tui-background-base);height:100%}.axes[_ngcontent-%COMP%]{height:12.5rem}.controls[_ngcontent-%COMP%]{display:flex}.controls[_ngcontent-%COMP%] tui-input-date-range[_ngcontent-%COMP%]{flex:1}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.value[_ngcontent-%COMP%]{color:var(--tui-background-base)}.chart[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);position:absolute;top:0;left:0;width:100%;height:100%}'],changeDetection:0});let n=e;return n})();var Lm=[{room:"Kitchen",state:!0},{room:"Bedroom",state:!1},{room:"Bathroom",state:!0}],Wl=(()=>{let e=class e{constructor(){this.lightingData=Lm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Nm=n=>({checked:n}),zm=n=>({hidden:n});function Hm(n,e){if(n&1&&(p(0,"label",5)(1,"div",6),M(2,"input",7),x(3),m(),M(4,"tui-icon",8),m()),n&2){let r=e.$implicit,t=e.index,i=g();u("ngClass",Tt(8,Nm,r.value)),c(2),w("display","none"),u("formControl",r),c(),F(" ",i.lightingService[t].room," "),c(),w("color","var(--tui-chart-categorical-12)"),u("ngClass",Tt(10,zm,!r.value))}}var Gl=(()=>{let e=class e{constructor(){this.lightingService=h(Wl).lightingData,this.lightingForm=new We(this.lightingService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-lighting"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",3,"ngClass",4,"ngFor","ngForOf"],["tuiBlock","",3,"ngClass"],[1,"title-room"],["tuiCheckbox","","type","checkbox",3,"formControl"],["alt","","icon","@tui.lightbulb",1,"light-svg",3,"ngClass"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),x(3," Lighting "),m()(),p(4,"form",3),_(5,Hm,5,12,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.lightingForm.controls))},dependencies:[z,Sr,nt,At,nn,tn,Ft,en,Vr,Me,$e,X,Hn,_t,Bn,Fn,W,Pa],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;flex-shrink:0;text-align:center;height:100%;background-color:var(--tui-background-base)}.light-svg[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;margin-left:auto}.title-room[_ngcontent-%COMP%]{display:flex;height:1.875rem;align-items:center}.checked[_ngcontent-%COMP%]{background-color:var(--tui-status-warning-pale)}.hidden[_ngcontent-%COMP%]{display:none}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Bm=[{name:"Against All Odds",logo:"./music/against.jpg",performer:"Tiko Tiko",src:"./music/AgainstAllOdds.mp3",length:208},{name:"Howling at the Moon",logo:"./music/howling.avif",performer:"D Fine Us",src:"./music/HowlingAtTheMoon.mp3",length:195}],Yl=(()=>{let e=class e{constructor(){this.tracks=Bm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function or(n){return Math.floor(Math.random()*n)}var Ql=(()=>{let e=class e{constructor(){this.tracks=h(Yl).tracks,this.activeIndex=0,this.time=0,this.volume=1,this.repeat=!1,this.shuffle=!1,this.paused=!0}nextTrack(t){this.time=0,!this.repeat&&(this.activeIndex=this.shuffle?or(this.tracks.length):(this.activeIndex+1)%this.tracks.length,setTimeout(()=>Le(this,null,function*(){return t.play()}),1))}previousTrack(t){if(this.time=0,this.repeat)return;let i=this.activeIndex-1<0?this.tracks.length-1:this.activeIndex-1;this.activeIndex=this.shuffle?or(this.tracks.length):i,setTimeout(()=>Le(this,null,function*(){return t.play()}),1)}getMinutes(t){return(t/60<=9?"0":"")+Math.trunc(t/60).toString()}getSeconds(t){return t=Math.trunc(t),(t%60<=9?"0":"")+(t%60).toString()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-music"]],standalone:!0,features:[P],decls:30,vars:23,consts:[["audio",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"logo",3,"src"],[1,"tui-space_top-4","tui-space_bottom-2"],[1,"tui-space_top-0","tui-space_bottom-0"],["tuiMedia","",3,"currentTimeChange","pausedChange","volumeChange","ended","src","currentTime","paused","volume"],["size","m","tuiSlider","","type","range",3,"ngModelChange","max","ngModel"],[1,"duration"],[1,"buttons"],["appearance","icon","iconStart","@tui.shuffle","tuiIconButton","",3,"click","tuiAppearanceState"],["appearance","icon","iconStart","@tui.skip-back","tuiIconButton","",3,"click"],["appearance","icon","tuiIconButton","",3,"click","iconStart"],["appearance","icon","iconStart","@tui.skip-forward","tuiIconButton","",3,"click"],["appearance","icon","iconStart","@tui.repeat","tuiIconButton","",3,"click","tuiAppearanceState"],[1,"volume"],["icon","@tui.volume-1"],["max","1","size","m","step","0.01","tuiSlider","","type","range",3,"ngModelChange","ngModel"],["icon","@tui.volume-2"]],template:function(i,o){if(i&1){let a=A();p(0,"div",1)(1,"header",2)(2,"h2",3),x(3," Music "),m()(),p(4,"div",4),M(5,"img",5),p(6,"h2",6),x(7),m(),p(8,"p",7),x(9),m()(),p(10,"audio",8,0),jt("currentTimeChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)})("pausedChange",function(l){return C(a),kt(o.paused,l)||(o.paused=l),y(l)})("volumeChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),O("ended",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(12,"div")(13,"input",9),jt("ngModelChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)}),m(),p(14,"div",10)(15,"p",7),x(16),m(),p(17,"p",7),x(18),m()()(),p(19,"div",11)(20,"button",12),O("click",function(){return C(a),y(o.shuffle=!o.shuffle)}),m(),p(21,"button",13),O("click",function(){C(a);let l=V(11);return y(o.previousTrack(l))}),m(),p(22,"button",14),O("click",function(){return C(a),y(o.paused=!o.paused)}),m(),p(23,"button",15),O("click",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(24,"button",16),O("click",function(){return C(a),y(o.repeat=!o.repeat)}),m()(),M(25,"hr"),p(26,"div",17),M(27,"tui-icon",18),p(28,"input",19),jt("ngModelChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),m(),M(29,"tui-icon",20),m()()}if(i&2){let a=V(11);c(2),w("text-align","center"),c(3),u("src",o.tracks[o.activeIndex].logo,io),c(2),F(" ",o.tracks[o.activeIndex].name," "),c(),w("color","var(--tui-text-primary)"),c(),F(" ",o.tracks[o.activeIndex].performer," "),c(),u("src",o.tracks[o.activeIndex].src,io),Bt("currentTime",o.time)("paused",o.paused)("volume",o.volume),c(3),u("max",a.duration),Bt("ngModel",o.time),c(3),_i("",o.getMinutes(o.time),":",o.getSeconds(o.time),""),c(2),_i(" ",o.getMinutes(o.tracks[o.activeIndex].length),":",o.getSeconds(o.tracks[o.activeIndex].length)," "),c(2),u("tuiAppearanceState",o.shuffle?"active":null),c(2),u("iconStart",o.paused?"@tui.circle-play":"@tui.circle-stop"),c(2),u("tuiAppearanceState",o.repeat?"active":null),c(4),w("color","var(--tui-status-info)"),Bt("ngModel",o.volume)}},dependencies:[z,At,Ue,Rr,Ft,Mt,Me,X,ue,_t,W,ns,No],styles:[".card[_ngcontent-%COMP%]{height:100%}.duration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--tui-text-primary)}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.volume[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.info[_ngcontent-%COMP%]{display:flex;margin-top:1rem;flex-direction:column;align-items:center}.logo[_ngcontent-%COMP%]{border-radius:.5rem;width:9rem;height:9rem}"],changeDetection:0});let n=e;return n})();var jm=[{name:"Alarm system",state:!0},{name:"Close the curtains",state:!1},{name:"Video monitoring",state:!0},{name:"Enable gas sensor notification",state:!1}],Zl=(()=>{let e=class e{constructor(){this.safetyData=jm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Um(n,e){if(n&1&&(p(0,"label",5),x(1),M(2,"input",6),m()),n&2){let r=e.$implicit,t=e.index,i=g();c(),F(" ",i.safetyService[t].name," "),c(),w("margin-left","auto"),u("formControl",r)}}var Xl=(()=>{let e=class e{constructor(){this.safetyService=h(Zl).safetyData,this.safetyForm=new We(this.safetyService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-safety"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",4,"ngFor","ngForOf"],["tuiBlock",""],["tuiCheckbox","","type","checkbox",3,"formControl"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),x(3," Safety "),m()(),p(4,"form",3),_(5,Um,3,4,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.safetyForm.controls))},dependencies:[z,nt,Me,nn,tn,Ft,en,$e,X,Hn,_t,Bn,Fn],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;height:100%;background-color:var(--tui-background-base)}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Kl=[1003,1006,1030,1087,1135],ql=[1009,1063,1180,1183,1186,1189,1192,1195,1198,1201,1204,1240,1243,1246,1249,1252,1276],Jl=[1066,1069,1072,1114,1117,1147,1168,1171,1204,1210,1213,1216,1219,1222,1225,1237,1255,1258,1261,1264,1273,1279,1282],tc=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],ec=new dt("",{factory:()=>"1df6860ee44f43d693d113704242207"});var ic=(()=>{let e=class e{constructor(){this.http=h(kr),this.KEY=h(ec)}getWeather(){return this.http.get("https://api.weatherapi.com/v1/forecast.json",{params:{key:this.KEY,q:"London",api:"yes",days:"3"}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $m(n,e){if(n&1&&(p(0,"div",15),M(1,"tui-icon",16),p(2,"div",5)(3,"p",9),x(4),m(),p(5,"p",9),x(6),m()()()),n&2){let r=e.$index;g();let t=ao(1),i=g();c(),u("icon",i.getSmallImage(t[r].day.condition.code)),c(),w("align-items","center"),c(),w("font-weight","600"),c(),F(" ",i.getWeekDay(t[r].date)," "),c(2),_i(" ",t[r].day.mintemp_c,"\xB0/",t[r].day.maxtemp_c,"\xB0 ")}}function Wm(n,e){if(n&1&&(oo(0)(1),p(2,"div",1)(3,"header",2)(4,"h2",3),x(5," Weather "),m()(),p(6,"div",4)(7,"div",5)(8,"h2",6),x(9),m(),p(10,"h1",7),x(11),m(),p(12,"div",8)(13,"p",9)(14,"span"),x(15),m(),x(16," \xB0/ "),p(17,"span"),x(18),m(),x(19," \xB0 "),m(),p(20,"div",10),M(21,"tui-icon",11),x(22),m(),p(23,"div",10),M(24,"tui-icon",12),x(25),m()(),p(26,"p",13),x(27),m()()(),p(28,"div",14),Be(29,$m,7,8,"div",15,He),m()()),n&2){let r=g(),t=ao(0),i=t.current;c();let o=ro(t.forecast.forecastday);c(),w("background-image",r.getImage(i.condition.code)),c(2),w("color","var(--tui-text-primary-on-accent-1)")("text-align","center"),c(5),F(" ",t.location.name," "),c(2),F("",i.temp_c,"\xB0"),c(2),w("display","flex"),c(),w("font-weight","600"),c(),Qt(i.dewpoint_c),c(2),w("font-weight","600"),c(),Qt(i.heatindex_c),c(4),F(" ",i.wind_kph,"km/h "),c(3),F(" ",i.humidity,"% "),c(2),F(" ",i.condition.text," "),c(2),je(o)}}var nc=(()=>{let e=class e{constructor(){this.weatherService=h(ic),this.info$=this.weatherService.getWeather()}getWeekDay(t){let i=t.split("-"),o=new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10));return tc[o.getDay()]}getTypeOfWeather(t){return Kl.includes(t)?"clouds":ql.includes(t)?"rain":Jl.includes(t)?"snow":"sun"}getSmallImage(t){let i=this.getTypeOfWeather(t);return i==="snow"?"@tui.snowflake":i==="rain"?"@tui.droplet":i==="clouds"?"@tui.cloud":"@tui.sun"}getImage(t){return`url(./weather/${this.getTypeOfWeather(t)}.jpg)`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["lmb-weather"]],standalone:!0,features:[P],decls:3,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card",3,"background-image"],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"left-side"],["tuiTitle","",1,"tui-text_body-m"],[1,"tui-space_top-3","tui-space_bottom-3"],[1,"description"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"indicator"],["icon","@tui.wind"],["icon","@tui.droplets"],[1,"tui-space_top-0","tui-space_bottom-0","tui-text_body-s"],[1,"list-days"],[1,"card-small"],[1,"card-icon",3,"icon"]],template:function(i,o){if(i&1&&(oo(0),S(1,"async"),_(2,Wm,31,20,"div",0)),i&2){let a=ro(L(1,1,o.info$));c(2),Xi(a?2:-1)}},dependencies:[$,z,X,_t,W],styles:[".indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1rem}.card[_ngcontent-%COMP%]{background-position:center;overflow:hidden;box-shadow:inset 0 10rem 10rem 10rem #00000086;color:var(--tui-text-primary-on-accent-1)}.info[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.left-side[_ngcontent-%COMP%]{display:flex;flex-direction:column}.description[_ngcontent-%COMP%]{display:flex;gap:.625rem}.list-days[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.card-small[_ngcontent-%COMP%]{display:flex;align-items:center}.card-icon[_ngcontent-%COMP%]{width:2rem;height:2rem}"],changeDetection:0});let n=e;return n})();var FM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=T({type:e,selectors:[["app-iot"]],standalone:!0,features:[P],decls:16,vars:0,consts:[[1,"tiles"],[1,"top"],[1,"under-top"],[1,"bottom"],[1,"control"],[1,"middle"],[1,"column"],[1,"grow"]],template:function(i,o){i&1&&(p(0,"div",0),M(1,"lmb-small-card"),p(2,"div",1),M(3,"lmb-electricity"),p(4,"div",2),M(5,"lmb-contacts")(6,"lmb-cleaning"),m()(),p(7,"div",3),M(8,"lmb-safety")(9,"lmb-cost")(10,"lmb-climate-control",4),m(),p(11,"div",5)(12,"div",6),M(13,"lmb-lighting",7)(14,"lmb-weather",7),m(),M(15,"lmb-music"),m()())},dependencies:[xl,Ml,z,Al,Rl,jl,$l,Gl,Ql,Xl,nc],styles:[".tiles[_ngcontent-%COMP%]{gap:1rem;padding-top:1.25rem}.top[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:19fr 20fr;gap:1rem}@media (max-width: 1100px){.top[_ngcontent-%COMP%]{grid-template-columns:20fr}}.under-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:11fr 9fr;gap:1rem;min-height:25rem}@media (max-width: 580px){.under-top[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.middle[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:9fr 15fr;gap:1rem}@media (max-width: 920px){.middle[_ngcontent-%COMP%]{grid-template-columns:1fr}}.bottom[_ngcontent-%COMP%]{display:grid;padding-top:1.25rem;grid-template-columns:8fr 15fr 8fr;gap:1rem}@media (max-width: 950px){.bottom[_ngcontent-%COMP%]{grid-template-columns:8fr 15fr}}@media (max-width: 750px){.bottom[_ngcontent-%COMP%]{display:flex;flex-direction:column}}.grow[_ngcontent-%COMP%]{width:100%}.column[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:space-between;flex-direction:column}@media (max-width: 920px){.column[_ngcontent-%COMP%]{flex-direction:row}}@media (max-width: 750px){.column[_ngcontent-%COMP%]{flex-direction:column}}"],changeDetection:0});let n=e;return n})();export{Ce as a,FM as b}; diff --git a/chunk-XTWZO72V.js b/chunk-XTWZO72V.js new file mode 100644 index 000000000..3f1f08dd2 --- /dev/null +++ b/chunk-XTWZO72V.js @@ -0,0 +1 @@ +import{e as M,g as B}from"./chunk-LRHNK5IW.js";import"./chunk-AIAQHW2T.js";import"./chunk-GGY6MJXK.js";import{a as N,b,c as D,d as E,e as A}from"./chunk-UPKNOQ5B.js";import{Ac as x,B as f,Eb as s,Gb as y,Lb as C,Pb as L,Qa as c,Vb as R,W as v,Wb as S,Ye as F,fb as g,gb as T,ja as u,mb as o,nb as a,ob as r,pa as h,r as l,yc as k}from"./chunk-SY4TDKKS.js";import"./chunk-HFDGAYQF.js";var G=(()=>{let e=class e{constructor(){var i;this.activatedRoute=u(b),this.data$=u(E).events.pipe(f(t=>t instanceof N),l(t=>{var n;return(n=t.snapshot.firstChild)==null?void 0:n.data.title}),v((i=this.activatedRoute.snapshot.firstChild)==null?void 0:i.data.title))}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h({type:e,selectors:[["lmb-dashboards"]],standalone:!0,features:[L],decls:12,vars:6,consts:[["tuiNavigationNav",""],[3,"routerLink"],["icon","@tui.chevron-left"],["tuiNavigationLogo",""],["tuiFade",""]],template:function(t,n){if(t&1&&(o(0,"nav",0),C(1),R(2,"async"),o(3,"a",1),r(4,"tui-icon",2),s(5," Back "),a(),s(6," / "),o(7,"span",3)(8,"span",4),s(9),a()(),r(10,"hr"),a(),r(11,"router-outlet")),t&2){let p;T("position","sticky");let m=(p=S(2,4,n.data$))!==null&&p!==void 0?p:"";c(3),g("routerLink",m?"/dashboards":"/"),c(6),y("",m," dashboard")}},dependencies:[k,x,A,D,F,M,B],encapsulation:2,changeDetection:0});let d=e;return d})();export{G as DashboardsComponent}; diff --git a/chunk-FURPKULB.js b/chunk-YR2WX2SW.js similarity index 97% rename from chunk-FURPKULB.js rename to chunk-YR2WX2SW.js index f093c90bf..77a235ba6 100644 --- a/chunk-FURPKULB.js +++ b/chunk-YR2WX2SW.js @@ -1,2 +1,2 @@ -import{Pb as c,eb as u,pa as o,qd as s,ra as n}from"./chunk-XSFATUKW.js";var d=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-surface-styles"],standalone:!0,features:[c],decls:0,vars:0,template:function(e,i){},styles:[`[data-surface]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--tui-gap: .25rem;position:relative;box-sizing:border-box;background:none no-repeat;background-size:cover;overflow:hidden;isolation:isolate;-webkit-appearance:none;appearance:none;border:0;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background,border-radius,box-shadow,transform,-webkit-backdrop-filter,-webkit-mask!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform,-webkit-backdrop-filter,-webkit-mask!important}[data-surface]:focus-visible{outline-color:var(--tui-border-focus)}@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)){[data-surface]:before{mix-blend-mode:multiply}}button[data-surface]{cursor:pointer}[data-surface]:before,[data-surface]:after,[tuiSurfaceLayer]:before,[tuiSurfaceLayer]:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";z-index:-1;border-radius:inherit;pointer-events:none;background-size:cover;background-repeat:no-repeat;transition-property:opacity,transform,-webkit-backdrop-filter;transition-property:opacity,backdrop-filter,transform;transition-property:opacity,backdrop-filter,transform,-webkit-backdrop-filter}[tuiSurfaceLayer]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;position:absolute!important;z-index:-1;object-fit:cover;border-radius:inherit;box-sizing:border-box;transition-property:box-shadow,filter,padding}input[tuiSurfaceLayer]+[tuiSurfaceLayer]{will-change:padding;background-clip:content-box;overflow:clip;overflow-clip-margin:content-box}input[tuiSurfaceLayer]:checked+[tuiSurfaceLayer]{padding:var(--tui-gap)}input[tuiSurfaceLayer]:focus-visible+[tuiSurfaceLayer]{padding:var(--tui-gap)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]+[tuiSurfaceLayer]{padding:var(--tui-gap)}}input[tuiSurfaceLayer]{color:var(--tui-background-accent-2);-webkit-appearance:none;appearance:none;margin:0;border-radius:inherit;outline:none;box-shadow:inset 0 0,inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked{box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:focus-visible{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked:focus-visible{filter:brightness(.7);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}[data-surface]:hover input[tuiSurfaceLayer]:checked{filter:brightness(.9);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}}[tuiSurface][data-surface=elevated]{box-shadow:var(--tui-shadow-small);background-color:var(--tui-background-elevation-1)}button[tuiSurface][data-surface=elevated]:active,a[tuiSurface][data-surface=elevated]:active{box-shadow:var(--tui-shadow-small);transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=elevated]:hover,a[tuiSurface][data-surface=elevated]:hover{box-shadow:var(--tui-shadow-small-hover);transform:translate3d(0,-.25rem,0);background:var(--tui-background-elevation-1)}}[tuiSurface][data-surface=flat]{background-color:var(--tui-background-neutral-1)}button[tuiSurface][data-surface=flat]:active,a[tuiSurface][data-surface=flat]:active{transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=flat]:hover,a[tuiSurface][data-surface=flat]:hover{transform:scale(1.15)}} +import{Pb as c,eb as u,pa as o,qd as s,ra as n}from"./chunk-SY4TDKKS.js";var d=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-surface-styles"],standalone:!0,features:[c],decls:0,vars:0,template:function(e,i){},styles:[`[data-surface]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--tui-gap: .25rem;position:relative;box-sizing:border-box;background:none no-repeat;background-size:cover;overflow:hidden;isolation:isolate;-webkit-appearance:none;appearance:none;border:0;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background,border-radius,box-shadow,transform,-webkit-backdrop-filter,-webkit-mask!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform,-webkit-backdrop-filter,-webkit-mask!important}[data-surface]:focus-visible{outline-color:var(--tui-border-focus)}@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)){[data-surface]:before{mix-blend-mode:multiply}}button[data-surface]{cursor:pointer}[data-surface]:before,[data-surface]:after,[tuiSurfaceLayer]:before,[tuiSurfaceLayer]:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";z-index:-1;border-radius:inherit;pointer-events:none;background-size:cover;background-repeat:no-repeat;transition-property:opacity,transform,-webkit-backdrop-filter;transition-property:opacity,backdrop-filter,transform;transition-property:opacity,backdrop-filter,transform,-webkit-backdrop-filter}[tuiSurfaceLayer]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;position:absolute!important;z-index:-1;object-fit:cover;border-radius:inherit;box-sizing:border-box;transition-property:box-shadow,filter,padding}input[tuiSurfaceLayer]+[tuiSurfaceLayer]{will-change:padding;background-clip:content-box;overflow:clip;overflow-clip-margin:content-box}input[tuiSurfaceLayer]:checked+[tuiSurfaceLayer]{padding:var(--tui-gap)}input[tuiSurfaceLayer]:focus-visible+[tuiSurfaceLayer]{padding:var(--tui-gap)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]+[tuiSurfaceLayer]{padding:var(--tui-gap)}}input[tuiSurfaceLayer]{color:var(--tui-background-accent-2);-webkit-appearance:none;appearance:none;margin:0;border-radius:inherit;outline:none;box-shadow:inset 0 0,inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked{box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:focus-visible{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked:focus-visible{filter:brightness(.7);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}[data-surface]:hover input[tuiSurfaceLayer]:checked{filter:brightness(.9);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}}[tuiSurface][data-surface=elevated]{box-shadow:var(--tui-shadow-small);background-color:var(--tui-background-elevation-1)}button[tuiSurface][data-surface=elevated]:active,a[tuiSurface][data-surface=elevated]:active{box-shadow:var(--tui-shadow-small);transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=elevated]:hover,a[tuiSurface][data-surface=elevated]:hover{box-shadow:var(--tui-shadow-small-hover);transform:translate3d(0,-.25rem,0);background:var(--tui-background-elevation-1)}}[tuiSurface][data-surface=flat]{background-color:var(--tui-background-neutral-1)}button[tuiSurface][data-surface=flat]:active,a[tuiSurface][data-surface=flat]:active{transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=flat]:hover,a[tuiSurface][data-surface=flat]:hover{transform:scale(1.15)}} `],encapsulation:2,changeDetection:0});let a=t;return a})(),l=(()=>{let t=class t{constructor(){this.nothing=s(d),this.tuiSurface=""}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n({type:t,selectors:[["","tuiSurface",""]],hostAttrs:["tuiSurface",""],hostVars:1,hostBindings:function(e,i){e&2&&u("data-surface",i.tuiSurface)},inputs:{tuiSurface:"tuiSurface"},standalone:!0});let a=t;return a})();export{l as a}; diff --git a/index.html b/index.html index d40035374..a269dfb28 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-4NAMIQTI.js b/main-RMK3CEJT.js similarity index 76% rename from main-4NAMIQTI.js rename to main-RMK3CEJT.js index 14afe9cc7..4cb0dd51c 100644 --- a/main-4NAMIQTI.js +++ b/main-RMK3CEJT.js @@ -1,3 +1,3 @@ -import{a as se}from"./chunk-5TOW4V3M.js";import{a as fe,b as Oe,c as ye,d as be,e as Te,f as Me}from"./chunk-OGZW3WSL.js";import"./chunk-ZWLMTOCV.js";import"./chunk-FURPKULB.js";import{c as Ht,g as Ut,h as G}from"./chunk-WYE4JZFG.js";import"./chunk-FKFBZDNU.js";import{$ as ge,B as J,E as le,I as Q,M as ce,Q as ue,S as pe,W as de,Z as me,a as jt,b as Vt,c as dt,f as mt,h as Qt,ia as he,ja as _e,k as te,l as ee,m as ie,q as ne,r as L,s as X,t as oe,u as K,v as re,w as ae,x as Z,z as gt}from"./chunk-HYP3ZPSI.js";import"./chunk-M65T2WFK.js";import{$a as It,$b as ut,Ac as N,Ae as Xt,Ca as bt,Db as at,Eb as c,Ec as Bt,Ed as q,Fb as kt,G as Ot,Ga as Tt,Gb as R,Gc as Rt,Hc as Lt,Ib as st,Jb as lt,Ka as nt,Kb as ct,Lc as $t,Oa as Mt,Ob as $,Pb as _,Qa as p,Se as Kt,Ua as Pt,Vb as C,Wa as xt,Wb as T,Xb as At,Xe as Zt,Ye as Jt,b as _t,bf as ve,da as E,db as m,eb as A,fb as u,fd as v,ff as Ce,gb as b,gc as Nt,gd as Y,h as H,hb as j,hc as Ft,ia as U,ja as l,jb as wt,k as vt,kb as Dt,lb as St,mb as r,me as Gt,n as z,nb as a,nc as S,oa as yt,ob as d,pa as h,pb as ot,qb as rt,r as y,ra as k,rb as V,s as Ct,sb as B,uc as zt,vb as f,vc as W,wb as g,wc as M,wd as pt,we as Yt,xa as I,xb as Et,ya as w,yb as D,yc as O,zd as Wt,ze as qt}from"./chunk-XSFATUKW.js";import{a as it,e as F}from"./chunk-HFDGAYQF.js";var Le={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},He={status:"info",icon:({$implicit:t})=>Le[t],size:"m"},Pe=v(He);function Ge(t,e){if(t&1&&(V(0,3),C(1,"tuiMapper")),t&2){let s=e.$implicit,n=g(2);u("ngComponentOutlet",s.component.component)("ngComponentOutletInjector",At(1,2,s,n.mapper))}}function Ye(t,e){if(t&1&&(r(0,"div",1),m(1,Ge,2,5,"ng-container",2),a()),t&2){let s=e.$implicit;u("@tuiParentAnimation",void 0),p(),u("ngForOf",s)}}var qe={autoClose:3e3,label:"",closeable:!0,data:void 0},Ui=Y(()=>it(it({},qe),l(Pe))),ji=Y(()=>l(Z)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Xe=v(new H([])),Ke=Y(()=>Ct([z(new Map),l(Xe)]).pipe(y(([t,e])=>(t.forEach((s,n)=>t.set(n,[])),e.forEach(s=>{let n=s.component.component,i=t.get(n)||[];t.set(n,[...i,s])}),Array.from(t.values())))));var Ie=(()=>{let e=class e{constructor(){this.injector=l(yt),this.alerts$=l(Ke),this.trackBy=_t,this.mapper=n=>bt.create({providers:[{provide:dt,useValue:n}],parent:this.injector})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-alerts"]],standalone:!0,features:[_],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(i,o){i&1&&(m(0,Ye,2,2,"div",0),C(1,"async")),i&2&&u("ngForOf",T(1,2,o.alerts$))("ngForTrackBy",o.trackBy)},dependencies:[N,zt,W,O,se],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} -`],encapsulation:2,data:{animation:[jt]}});let t=e;return t})();var we=(()=>{let e=class e{constructor(){this.doc=l(S),this.el=q(),this.activeElement=te(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){ee(this.doc),Promise.resolve().then(()=>{Wt(this.activeElement)&&this.activeElement.focus()})}onBlur(){this.el.removeAttribute("tabIndex")}onFocusIn(n){var i;pt(this.el,n)||(i=ie({initial:this.el,root:this.el}))==null||i.focus()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=k({type:e,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(i,o){i&1&&f("blur",function(){return o.onBlur()})("focusin.silent",function(ht){return o.onFocusIn(ht.target)},!1,Mt)},standalone:!0});let t=e;return t})();function Ze(t,e){t&1&&V(0)}function Je(t,e){if(t&1&&(r(0,"section",3),m(1,Ze,1,0,"ng-container",4),d(2,"tui-scroll-controls",5),a()),t&2){let s=e.$implicit,n=g().ngIf;j("t-dialog_closing",!n.length),u("@tuiHost",void 0),A("aria-labelledby",s.id),p(),u("polymorpheusOutlet",s.component)("polymorpheusOutletContext",s)}}function Qe(t,e){if(t&1&&(ot(0),m(1,Je,3,6,"section",1),d(2,"div",2),rt()),t&2){let s=e.ngIf;p(),u("ngForOf",s),p(),b("opacity",s.length)}}var ft=v(new H([])),ti={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Pn=v(vt),xn=v(ti);var In=new Error("Required dialog was dismissed");var De=(()=>{let e=class e{constructor(){this.el=q(),this.dialogs$=l(ft)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-dialogs"]],hostBindings:function(i,o){i&1&&f("keydown.silent",function(){return o.el.scrollTop=o.el.scrollHeight/2})},standalone:!0,features:[_],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(i,o){i&1&&(m(0,Qe,3,3,"ng-container",0),C(1,"async")),i&2&&u("ngIf",T(1,1,o.dialogs$))},dependencies:[N,W,M,O,mt,we,J,le],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:auto;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[Vt]}});let t=e;return t})();var Se=(()=>{let e=class e{constructor(){this.tuiPlatform=l(gt,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=k({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,o){i&2&&A("data-platform",o.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[$([{provide:gt,useFactory:()=>l(e).tuiPlatform}])]});let t=e;return t})();var ii=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],ni=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function oi(t,e){t&1&&d(0,"tui-scroll-controls",2)}var Ee=(()=>{let e=class e{constructor(){var n;this.reducedMotion=l(qt),this.duration=Qt(l(Xt)),this.isMobileRes=$t(l(Q).pipe(y(i=>i==="mobile"),Yt(l(Ft)))),this.scrollbars$=l(Z)?z(!1):l(ft).pipe(y(({length:i})=>!i),Ot(0)),(n=l(S).defaultView)==null||n.document.documentElement.setAttribute("data-tui-theme",l(Kt).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.0.0-rc.7"],hostVars:6,hostBindings:function(i,o){i&1&&f("touchstart.passive.silent",function(){return 0}),i&2&&(b("--tui-duration",o.duration,"ms"),j("_reduced-motion",o.reducedMotion)("_mobile",o.isMobileRes()))},standalone:!0,features:[It([Se]),_],ngContentSelectors:ni,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,o){i&1&&(Et(ii),m(0,oi,1,0,"tui-scroll-controls",0),C(1,"async"),r(2,"tui-dropdowns")(3,"div",1),D(4),a(),D(5,1),d(6,"tui-dialogs"),D(7,2),d(8,"tui-alerts"),D(9,3),a(),D(10,4),d(11,"tui-hints"),D(12,5)),i&2&&u("ngIf",T(1,1,o.scrollbars$))},dependencies:[M,O,de,De,Ie,he,J],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;-webkit-tap-highlight-color:transparent}tui-root:before{position:fixed;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-background-base)}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} -`],encapsulation:2});let t=e;return t})();var ri=v("data-tui-theme"),tt=(()=>{let e=class e{constructor(){this.storage=l(Gt),this.key=l(ri),this.themes=["light","dark"]}get theme(){let n=this.storage.getItem(this.key);return n===null?(this.storage.setItem(this.key,"light"),"light"):n}set theme(n){this.storage.setItem(this.key,n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ai(t,e){t&1&&d(0,"tui-icon",14),t&2&&b("font-size",1,"em")("margin-left",.5,"rem")}function si(t,e){if(t&1){let s=B();r(0,"button",12),f("click",function(){let i=I(s).$implicit,o=g(2);return w(o.chooseTheme(i))}),c(1),m(2,ai,1,4,"tui-icon",13),a()}if(t&2){let s=e.$implicit,n=g(2);u("value",s),p(),R(" ",s," "),p(),u("ngIf",n.themeService.theme===s)}}function li(t,e){if(t&1&&(r(0,"tui-data-list",10),Dt(1,si,3,3,"button",11,wt),a()),t&2){let s=g();p(),St(s.themeService.themes)}}function ci(t,e){t&1&&(r(0,"tui-data-list",10)(1,"button",26),c(2,"Account"),a(),r(3,"button",26),c(4,"Notifications"),a(),r(5,"button",26),c(6,"Privacy"),a()())}function ui(t,e){if(t&1){let s=B();r(0,"aside",15)(1,"header")(2,"button",16)(3,"span",6),c(4,"A very very long product name"),a()()(),r(5,"button",17),c(6," Search "),a(),r(7,"a",18),c(8," Groups "),a(),r(9,"button",19),ct("tuiDropdownOpenChange",function(i){I(s);let o=g();return lt(o.open,i)||(o.open=i),w(i)}),f("click",function(){I(s);let i=g();return w(i.submenu=i.expanded&&!i.submenu)}),c(10," Settings "),m(11,ci,7,0,"ng-template",null,1,ut),a(),r(13,"tui-expand",20)(14,"button",21),c(15,"Account"),a(),r(16,"button",21),c(17,"Notifications"),a(),r(18,"button",21),c(19,"Privacy"),a()(),r(20,"button",22)(21,"span",6),c(22,"By default ellipsis is used but you can use fade too"),a()(),d(23,"hr"),r(24,"button",23),c(25," Add "),a(),r(26,"footer")(27,"button",24),c(28," Favorites "),a(),r(29,"button",25),f("click",function(){I(s);let i=g();return w(i.expanded=!i.expanded)}),c(30),a()()()}if(t&2){let s=at(12),n=g();u("tuiNavigationAside",n.expanded),p(9),u("tuiAppearanceState",n.open?"hover":null)("tuiChevron",n.expanded&&n.submenu)("tuiDropdown",s)("tuiDropdownEnabled",!n.expanded),st("tuiDropdownOpen",n.open),p(4),u("expanded",n.expanded&&n.submenu),p(16),u("iconStart",n.expanded?"@tui.chevron-left":"@tui.chevron-right"),p(),R(" ",n.expanded?"Collapse":"Expand"," ")}}var ke=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.mobile$=l(Q).pipe(y(n=>n==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(n){this.themeService.theme=n,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[_],decls:20,vars:8,consts:[["products",""],["dropdown",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","tuiAsideItem",""],["iconStart","@tui.search","tuiAsideItem",""],["iconStart","@tui.users","tuiAsideItem",""],["iconStart","@tui.settings","tuiAsideItem","",3,"tuiDropdownOpenChange","click","tuiAppearanceState","tuiChevron","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],[3,"expanded"],["tuiButton",""],["iconStart","@tui.heart","tuiAsideItem",""],["iconStart","@tui.plus","tuiAsideItem",""],["iconStart","@tui.star","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"],["tuiOption",""]],template:function(i,o){if(i&1){let x=B();r(0,"header",2)(1,"button",3),c(2," Menu "),a(),r(3,"span",4),d(4,"tui-icon",5),r(5,"span",6),c(6,"A very very long product name"),a(),r(7,"tui-badge"),c(8,"Test"),a()(),r(9,"button",7),ct("tuiDropdownOpenChange",function(et){return I(x),lt(o.openTheme,et)||(o.openTheme=et),w(et)}),r(10,"span",6),c(11),a(),m(12,li,3,0,"ng-template",null,0,ut),a(),d(14,"hr"),a(),r(15,"div"),m(16,ui,31,9,"aside",8),C(17,"async"),r(18,"main",9),d(19,"router-outlet"),a()()}if(i&2){let x=at(13);p(9),u("tuiDropdown",x),st("tuiDropdownOpen",o.openTheme),p(2),kt(o.themeService.theme),p(4),b("display","flex"),p(),u("ngIf",!T(17,6,o.mobile$))}},dependencies:[N,M,O,G,Ht,Ce,Zt,_e,ge,me,ue,pe,fe,ve,Jt,be,Te,Me,Oe,ye],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var Ae=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[_],decls:2,vars:1,template:function(i,o){i&1&&(r(0,"tui-root"),d(1,"app-navigation"),a()),i&2&&A("tuiTheme",o.themeService.theme)},dependencies:[ke,G,Ee],encapsulation:2,changeDetection:0});let t=e;return t})();var pi=(()=>{let e=class e extends K{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(U(S),U(L),U(X))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function di(){return new oe}function mi(t,e,s){return new ae(t,e,s)}var Ne=[{provide:X,useFactory:di},{provide:K,useClass:pi},{provide:Pt,useFactory:mi,deps:[Rt,K,Tt]}],gi=[{provide:L,useFactory:()=>new re},{provide:nt,useValue:"BrowserAnimations"},...Ne],Xo=[{provide:L,useClass:ne},{provide:nt,useValue:"NoopAnimations"},...Ne];function Fe(){return xt("NgEagerAnimations"),[...gi]}var ze=[{path:"dashboards",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-BQLPYTT5.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-E54VESK4.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-PEHBVIRA.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-VB2RI7JU.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"**",redirectTo:"dashboards"}];var Be={providers:[Fe(),Nt({eventCoalescing:!0}),Ut(ze),Bt(),ce]};Lt(Ae,Be).catch(t=>console.error(t)); +import{a as se}from"./chunk-VQMQ7RRG.js";import{a as fe,b as Oe,c as ye,d as be,e as Te,f as Me}from"./chunk-LRHNK5IW.js";import"./chunk-AIAQHW2T.js";import"./chunk-YR2WX2SW.js";import"./chunk-JDRSJW3I.js";import{$ as ge,B as J,E as le,I as Q,M as ce,Q as ue,S as pe,W as me,Z as de,a as jt,b as Vt,c as mt,f as dt,h as Qt,ia as he,ja as _e,k as te,l as ee,m as ie,q as ne,r as L,s as X,t as oe,u as K,v as re,w as ae,x as Z,z as gt}from"./chunk-GGY6MJXK.js";import{c as Ht,g as Ut,h as G}from"./chunk-UPKNOQ5B.js";import"./chunk-GXKQ5RYX.js";import{$a as It,$b as ut,Ac as F,Ae as Xt,Ca as bt,Db as at,Eb as c,Ec as Bt,Ed as q,Fb as kt,G as Ot,Ga as Tt,Gb as R,Gc as Rt,Hc as Lt,Ib as st,Jb as lt,Ka as nt,Kb as ct,Lc as $t,Oa as Mt,Ob as $,Pb as _,Qa as p,Se as Kt,Ua as Pt,Vb as C,Wa as xt,Wb as T,Xb as At,Xe as Zt,Ye as Jt,b as _t,bf as ve,da as k,db as d,eb as N,fb as u,fd as v,ff as Ce,gb as b,gc as Nt,gd as Y,h as H,hb as j,hc as Ft,ia as U,ja as l,jb as wt,k as vt,kb as Dt,lb as St,mb as r,me as Gt,n as z,nb as a,nc as S,oa as yt,ob as m,pa as h,pb as ot,qb as rt,r as y,ra as A,rb as V,s as Ct,sb as B,uc as zt,vb as f,vc as W,wb as g,wc as M,wd as pt,we as Yt,xa as I,xb as Et,ya as w,yb as D,yc as O,zd as Wt,ze as qt}from"./chunk-SY4TDKKS.js";import{a as it,e as E}from"./chunk-HFDGAYQF.js";var Le={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},He={status:"info",icon:({$implicit:t})=>Le[t],size:"m"},Pe=v(He);function Ge(t,e){if(t&1&&(V(0,3),C(1,"tuiMapper")),t&2){let s=e.$implicit,n=g(2);u("ngComponentOutlet",s.component.component)("ngComponentOutletInjector",At(1,2,s,n.mapper))}}function Ye(t,e){if(t&1&&(r(0,"div",1),d(1,Ge,2,5,"ng-container",2),a()),t&2){let s=e.$implicit;u("@tuiParentAnimation",void 0),p(),u("ngForOf",s)}}var qe={autoClose:3e3,label:"",closeable:!0,data:void 0},Ui=Y(()=>it(it({},qe),l(Pe))),ji=Y(()=>l(Z)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Xe=v(new H([])),Ke=Y(()=>Ct([z(new Map),l(Xe)]).pipe(y(([t,e])=>(t.forEach((s,n)=>t.set(n,[])),e.forEach(s=>{let n=s.component.component,i=t.get(n)||[];t.set(n,[...i,s])}),Array.from(t.values())))));var Ie=(()=>{let e=class e{constructor(){this.injector=l(yt),this.alerts$=l(Ke),this.trackBy=_t,this.mapper=n=>bt.create({providers:[{provide:mt,useValue:n}],parent:this.injector})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-alerts"]],standalone:!0,features:[_],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(i,o){i&1&&(d(0,Ye,2,2,"div",0),C(1,"async")),i&2&&u("ngForOf",T(1,2,o.alerts$))("ngForTrackBy",o.trackBy)},dependencies:[F,zt,W,O,se],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} +`],encapsulation:2,data:{animation:[jt]}});let t=e;return t})();var we=(()=>{let e=class e{constructor(){this.doc=l(S),this.el=q(),this.activeElement=te(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){ee(this.doc),Promise.resolve().then(()=>{Wt(this.activeElement)&&this.activeElement.focus()})}onBlur(){this.el.removeAttribute("tabIndex")}onFocusIn(n){var i;pt(this.el,n)||(i=ie({initial:this.el,root:this.el}))==null||i.focus()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=A({type:e,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(i,o){i&1&&f("blur",function(){return o.onBlur()})("focusin.silent",function(ht){return o.onFocusIn(ht.target)},!1,Mt)},standalone:!0});let t=e;return t})();function Ze(t,e){t&1&&V(0)}function Je(t,e){if(t&1&&(r(0,"section",3),d(1,Ze,1,0,"ng-container",4),m(2,"tui-scroll-controls",5),a()),t&2){let s=e.$implicit,n=g().ngIf;j("t-dialog_closing",!n.length),u("@tuiHost",void 0),N("aria-labelledby",s.id),p(),u("polymorpheusOutlet",s.component)("polymorpheusOutletContext",s)}}function Qe(t,e){if(t&1&&(ot(0),d(1,Je,3,6,"section",1),m(2,"div",2),rt()),t&2){let s=e.ngIf;p(),u("ngForOf",s),p(),b("opacity",s.length)}}var ft=v(new H([])),ti={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Pn=v(vt),xn=v(ti);var In=new Error("Required dialog was dismissed");var De=(()=>{let e=class e{constructor(){this.el=q(),this.dialogs$=l(ft)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-dialogs"]],hostBindings:function(i,o){i&1&&f("keydown.silent",function(){return o.el.scrollTop=o.el.scrollHeight/2})},standalone:!0,features:[_],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(i,o){i&1&&(d(0,Qe,3,3,"ng-container",0),C(1,"async")),i&2&&u("ngIf",T(1,1,o.dialogs$))},dependencies:[F,W,M,O,dt,we,J,le],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:auto;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[Vt]}});let t=e;return t})();var Se=(()=>{let e=class e{constructor(){this.tuiPlatform=l(gt,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=A({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,o){i&2&&N("data-platform",o.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[$([{provide:gt,useFactory:()=>l(e).tuiPlatform}])]});let t=e;return t})();var ii=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],ni=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function oi(t,e){t&1&&m(0,"tui-scroll-controls",2)}var Ee=(()=>{let e=class e{constructor(){var n;this.reducedMotion=l(qt),this.duration=Qt(l(Xt)),this.isMobileRes=$t(l(Q).pipe(y(i=>i==="mobile"),Yt(l(Ft)))),this.scrollbars$=l(Z)?z(!1):l(ft).pipe(y(({length:i})=>!i),Ot(0)),(n=l(S).defaultView)==null||n.document.documentElement.setAttribute("data-tui-theme",l(Kt).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.0.0-rc.7"],hostVars:6,hostBindings:function(i,o){i&1&&f("touchstart.passive.silent",function(){return 0}),i&2&&(b("--tui-duration",o.duration,"ms"),j("_reduced-motion",o.reducedMotion)("_mobile",o.isMobileRes()))},standalone:!0,features:[It([Se]),_],ngContentSelectors:ni,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,o){i&1&&(Et(ii),d(0,oi,1,0,"tui-scroll-controls",0),C(1,"async"),r(2,"tui-dropdowns")(3,"div",1),D(4),a(),D(5,1),m(6,"tui-dialogs"),D(7,2),m(8,"tui-alerts"),D(9,3),a(),D(10,4),m(11,"tui-hints"),D(12,5)),i&2&&u("ngIf",T(1,1,o.scrollbars$))},dependencies:[M,O,me,De,Ie,he,J],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;-webkit-tap-highlight-color:transparent}tui-root:before{position:fixed;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-background-base)}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} +`],encapsulation:2});let t=e;return t})();var ri=v("data-tui-theme"),tt=(()=>{let e=class e{constructor(){this.storage=l(Gt),this.key=l(ri),this.themes=["light","dark"]}get theme(){let n=this.storage.getItem(this.key);return n===null?(this.storage.setItem(this.key,"light"),"light"):n}set theme(n){this.storage.setItem(this.key,n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ai(t,e){t&1&&m(0,"tui-icon",14),t&2&&b("font-size",1,"em")("margin-left",.5,"rem")}function si(t,e){if(t&1){let s=B();r(0,"button",12),f("click",function(){let i=I(s).$implicit,o=g(2);return w(o.chooseTheme(i))}),c(1),d(2,ai,1,4,"tui-icon",13),a()}if(t&2){let s=e.$implicit,n=g(2);u("value",s),p(),R(" ",s," "),p(),u("ngIf",n.themeService.theme===s)}}function li(t,e){if(t&1&&(r(0,"tui-data-list",10),Dt(1,si,3,3,"button",11,wt),a()),t&2){let s=g();p(),St(s.themeService.themes)}}function ci(t,e){t&1&&(r(0,"tui-data-list",10)(1,"button",26),c(2,"Account"),a(),r(3,"button",26),c(4,"Notifications"),a(),r(5,"button",26),c(6,"Privacy"),a()())}function ui(t,e){if(t&1){let s=B();r(0,"aside",15)(1,"header")(2,"button",16)(3,"span",6),c(4,"A very very long product name"),a()()(),r(5,"button",17),c(6," Search "),a(),r(7,"a",18),c(8," Groups "),a(),r(9,"button",19),ct("tuiDropdownOpenChange",function(i){I(s);let o=g();return lt(o.open,i)||(o.open=i),w(i)}),f("click",function(){I(s);let i=g();return w(i.submenu=i.expanded&&!i.submenu)}),c(10," Settings "),d(11,ci,7,0,"ng-template",null,1,ut),a(),r(13,"tui-expand",20)(14,"button",21),c(15,"Account"),a(),r(16,"button",21),c(17,"Notifications"),a(),r(18,"button",21),c(19,"Privacy"),a()(),r(20,"button",22)(21,"span",6),c(22,"By default ellipsis is used but you can use fade too"),a()(),m(23,"hr"),r(24,"button",23),c(25," Add "),a(),r(26,"footer")(27,"button",24),c(28," Favorites "),a(),r(29,"button",25),f("click",function(){I(s);let i=g();return w(i.expanded=!i.expanded)}),c(30),a()()()}if(t&2){let s=at(12),n=g();u("tuiNavigationAside",n.expanded),p(9),u("tuiAppearanceState",n.open?"hover":null)("tuiChevron",n.expanded&&n.submenu)("tuiDropdown",s)("tuiDropdownEnabled",!n.expanded),st("tuiDropdownOpen",n.open),p(4),u("expanded",n.expanded&&n.submenu),p(16),u("iconStart",n.expanded?"@tui.chevron-left":"@tui.chevron-right"),p(),R(" ",n.expanded?"Collapse":"Expand"," ")}}var ke=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.mobile$=l(Q).pipe(y(n=>n==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(n){this.themeService.theme=n,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[_],decls:20,vars:8,consts:[["products",""],["dropdown",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","tuiAsideItem",""],["iconStart","@tui.search","tuiAsideItem",""],["iconStart","@tui.users","tuiAsideItem",""],["iconStart","@tui.settings","tuiAsideItem","",3,"tuiDropdownOpenChange","click","tuiAppearanceState","tuiChevron","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],[3,"expanded"],["tuiButton",""],["iconStart","@tui.heart","tuiAsideItem",""],["iconStart","@tui.plus","tuiAsideItem",""],["iconStart","@tui.star","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"],["tuiOption",""]],template:function(i,o){if(i&1){let x=B();r(0,"header",2)(1,"button",3),c(2," Menu "),a(),r(3,"span",4),m(4,"tui-icon",5),r(5,"span",6),c(6,"A very very long product name"),a(),r(7,"tui-badge"),c(8,"Test"),a()(),r(9,"button",7),ct("tuiDropdownOpenChange",function(et){return I(x),lt(o.openTheme,et)||(o.openTheme=et),w(et)}),r(10,"span",6),c(11),a(),d(12,li,3,0,"ng-template",null,0,ut),a(),m(14,"hr"),a(),r(15,"div"),d(16,ui,31,9,"aside",8),C(17,"async"),r(18,"main",9),m(19,"router-outlet"),a()()}if(i&2){let x=at(13);p(9),u("tuiDropdown",x),st("tuiDropdownOpen",o.openTheme),p(2),kt(o.themeService.theme),p(4),b("display","flex"),p(),u("ngIf",!T(17,6,o.mobile$))}},dependencies:[F,M,O,G,Ht,Ce,Zt,_e,ge,de,ue,pe,fe,ve,Jt,be,Te,Me,Oe,ye],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var Ae=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[_],decls:2,vars:1,template:function(i,o){i&1&&(r(0,"tui-root"),m(1,"app-navigation"),a()),i&2&&N("tuiTheme",o.themeService.theme)},dependencies:[ke,G,Ee],encapsulation:2,changeDetection:0});let t=e;return t})();var pi=(()=>{let e=class e extends K{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(U(S),U(L),U(X))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();function mi(){return new oe}function di(t,e,s){return new ae(t,e,s)}var Ne=[{provide:X,useFactory:mi},{provide:K,useClass:pi},{provide:Pt,useFactory:di,deps:[Rt,K,Tt]}],gi=[{provide:L,useFactory:()=>new re},{provide:nt,useValue:"BrowserAnimations"},...Ne],Xo=[{provide:L,useClass:ne},{provide:nt,useValue:"NoopAnimations"},...Ne];function Fe(){return xt("NgEagerAnimations"),[...gi]}var ze=[{path:"dashboards",loadComponent:()=>E(void 0,null,function*(){return import("./chunk-XTWZO72V.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>E(void 0,null,function*(){return import("./chunk-BNVWNJYJ.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>E(void 0,null,function*(){return import("./chunk-IOVVBLZV.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>E(void 0,null,function*(){return import("./chunk-DCGDNVNZ.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"",loadComponent:()=>E(void 0,null,function*(){return import("./chunk-OTLDIZVP.js").then(t=>t.CommonPageComponent)})},{path:"**",redirectTo:"dashboards"}];var Be={providers:[Fe(),Nt({eventCoalescing:!0}),Ut(ze),Bt(),ce]};Lt(Ae,Be).catch(t=>console.error(t));